]> git.saurik.com Git - wxWidgets.git/blob - configure
CarbonEvents Added
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62 # Configure paths for GTK+
63 # Owen Taylor 1997-2001
64
65
66
67 # Configure paths for GTK+
68 # Owen Taylor 97-11-3
69
70
71
72
73
74
75
76
77 # Guess values for system-dependent variables and create Makefiles.
78 # Generated automatically using autoconf version 2.13
79 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
80 #
81 # This configure script is free software; the Free Software Foundation
82 # gives unlimited permission to copy, distribute and modify it.
83
84 # Defaults:
85 ac_help=
86 ac_default_prefix=/usr/local
87 # Any additions from configure.in:
88 ac_help="$ac_help
89 --enable-gui use GUI classes"
90 ac_help="$ac_help
91 --enable-universal use wxWindows GUI controls instead of native ones"
92 ac_help="$ac_help
93 --with-gtk use GTK+"
94 ac_help="$ac_help
95 --with-motif use Motif/Lesstif"
96 ac_help="$ac_help
97 --with-mac use Mac OS X"
98 ac_help="$ac_help
99 --with-wine use Wine"
100 ac_help="$ac_help
101 --with-msw use MS-Windows"
102 ac_help="$ac_help
103 --with-pm use OS/2 Presentation Manager"
104 ac_help="$ac_help
105 --with-mgl use SciTech MGL"
106 ac_help="$ac_help
107 --with-microwin use MicroWindows"
108 ac_help="$ac_help
109 --with-x11 use X11"
110 ac_help="$ac_help
111 --enable-nanox use NanoX"
112 ac_help="$ac_help
113 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
114 ac_help="$ac_help
115 --with-libpng use libpng (PNG image format)"
116 ac_help="$ac_help
117 --with-libjpeg use libjpeg (JPEG file format)"
118 ac_help="$ac_help
119 --with-libtiff use libtiff (TIFF file format)"
120 ac_help="$ac_help
121 --with-opengl use OpenGL (or Mesa)"
122 ac_help="$ac_help
123 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
124 ac_help="$ac_help
125 --with-regex enable support for wxRegEx class"
126 ac_help="$ac_help
127 --with-zlib use zlib for LZW compression"
128 ac_help="$ac_help
129 --with-odbc use the IODBC and wxODBC classes"
130 ac_help="$ac_help
131 --enable-shared create shared library code"
132 ac_help="$ac_help
133 --enable-soname set the DT_SONAME field in ELF shared libraries"
134 ac_help="$ac_help
135 --enable-optimise create optimised code"
136 ac_help="$ac_help
137 --enable-debug same as debug_flag and debug_info"
138 ac_help="$ac_help
139 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
140 ac_help="$ac_help
141 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
142 ac_help="$ac_help
143 --enable-debug_info create code with debugging information"
144 ac_help="$ac_help
145 --enable-debug_gdb create code with extra GDB debugging information"
146 ac_help="$ac_help
147 --enable-debug_cntxt use wxDebugContext"
148 ac_help="$ac_help
149 --enable-mem_tracing create code with memory tracing"
150 ac_help="$ac_help
151 --enable-profile create code with profiling information"
152 ac_help="$ac_help
153 --enable-no_rtti create code without RTTI information"
154 ac_help="$ac_help
155 --enable-no_exceptions create code without C++ exceptions handling"
156 ac_help="$ac_help
157 --enable-permissive compile code disregarding strict ANSI"
158 ac_help="$ac_help
159 --enable-no_deps create code without dependency information"
160 ac_help="$ac_help
161 --enable-compat20 enable wxWindows 2.0 compatibility"
162 ac_help="$ac_help
163 --enable-compat22 enable wxWindows 2.2 compatibility"
164 ac_help="$ac_help
165 --disable-compat24 disable wxWindows 2.4 compatibility"
166 ac_help="$ac_help
167 --enable-rpath=DIR output the rpath flag from wx-config"
168 ac_help="$ac_help
169 --enable-intl use internationalization system"
170 ac_help="$ac_help
171 --enable-config use wxConfig (and derived) classes"
172 ac_help="$ac_help
173 --enable-protocols use wxProtocol and derived classes"
174 ac_help="$ac_help
175 --enable-ftp use wxFTP (requires wxProtocol"
176 ac_help="$ac_help
177 --enable-http use wxHTTP (requires wxProtocol"
178 ac_help="$ac_help
179 --enable-fileproto use wxFileProto class (requires wxProtocol"
180 ac_help="$ac_help
181 --enable-sockets use socket/network classes"
182 ac_help="$ac_help
183 --enable-ole use OLE classes"
184 ac_help="$ac_help
185 --enable-dataobj use data object classes"
186 ac_help="$ac_help
187 --enable-ipc use interprocess communication (wxSocket etc.)"
188 ac_help="$ac_help
189 --enable-cmdline use wxCmdLineParser class"
190 ac_help="$ac_help
191 --enable-datetime use wxDateTime class"
192 ac_help="$ac_help
193 --enable-timedate use obsolete wxDate/wxTime classes"
194 ac_help="$ac_help
195 --enable-stopwatch use wxStopWatch class"
196 ac_help="$ac_help
197 --enable-dialupman use dialup network classes"
198 ac_help="$ac_help
199 --enable-apple_ieee use the Apple IEEE codec"
200 ac_help="$ac_help
201 --enable-timer use wxTimer class"
202 ac_help="$ac_help
203 --enable-wave use wxWave class"
204 ac_help="$ac_help
205 --enable-fraction use wxFraction class"
206 ac_help="$ac_help
207 --enable-dynlib use wxLibrary class for DLL loading"
208 ac_help="$ac_help
209 --enable-dynamicloader use (new) wxDynamicLibrary class"
210 ac_help="$ac_help
211 --enable-longlong use wxLongLong class"
212 ac_help="$ac_help
213 --enable-geometry use geometry class"
214 ac_help="$ac_help
215 --enable-log use logging system"
216 ac_help="$ac_help
217 --enable-streams use wxStream etc classes"
218 ac_help="$ac_help
219 --enable-file use wxFile classes"
220 ac_help="$ac_help
221 --enable-ffile use wxFFile classes"
222 ac_help="$ac_help
223 --enable-textbuf use wxTextBuffer class"
224 ac_help="$ac_help
225 --enable-textfile use wxTextFile class"
226 ac_help="$ac_help
227 --enable-fontmap use font encodings conversion classes"
228 ac_help="$ac_help
229 --enable-unicode compile wxString with Unicode support"
230 ac_help="$ac_help
231 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
232 ac_help="$ac_help
233 --enable-wxprintfv use wxWindows implementation of vprintf()"
234 ac_help="$ac_help
235 --enable-std_iostreams use standard C++ stream classes"
236 ac_help="$ac_help
237 --enable-filesystem use virtual file systems classes"
238 ac_help="$ac_help
239 --enable-fs_inet use virtual HTTP/FTP filesystems"
240 ac_help="$ac_help
241 --enable-fs_zip use virtual ZIP filesystems"
242 ac_help="$ac_help
243 --enable-zipstream use wxZipInputStream"
244 ac_help="$ac_help
245 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
246 ac_help="$ac_help
247 --enable-snglinst use wxSingleInstanceChecker class"
248 ac_help="$ac_help
249 --enable-mimetype use wxMimeTypesManager"
250 ac_help="$ac_help
251 --enable-sysoptions use wxSystemOptions"
252 ac_help="$ac_help
253 --enable-url use wxURL class"
254 ac_help="$ac_help
255 --enable-protocol use wxProtocol class"
256 ac_help="$ac_help
257 --enable-protocol-http HTTP support in wxProtocol"
258 ac_help="$ac_help
259 --enable-protocol-ftp FTP support in wxProtocol"
260 ac_help="$ac_help
261 --enable-protocol-file FILE support in wxProtocol"
262 ac_help="$ac_help
263 --enable-threads use threads"
264 ac_help="$ac_help
265 --enable-docview use document view architecture"
266 ac_help="$ac_help
267 --enable-help use help subsystem"
268 ac_help="$ac_help
269 --enable-mshtmlhelp use MS HTML Help (win32)"
270 ac_help="$ac_help
271 --enable-html use wxHTML sub-library"
272 ac_help="$ac_help
273 --enable-htmlhelp use wxHTML-based help"
274 ac_help="$ac_help
275 --enable-constraints use layout-constraints system"
276 ac_help="$ac_help
277 --enable-printarch use printing architecture"
278 ac_help="$ac_help
279 --enable-mdi use multiple document interface architecture"
280 ac_help="$ac_help
281 --enable-loggui use standard GUI logger"
282 ac_help="$ac_help
283 --enable-logwin use wxLogWindow"
284 ac_help="$ac_help
285 --enable-logdialog use wxLogDialog"
286 ac_help="$ac_help
287 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
288 ac_help="$ac_help
289 --enable-prologio use Prolog IO library"
290 ac_help="$ac_help
291 --enable-resources use wxWindows resources"
292 ac_help="$ac_help
293 --enable-xresources use X resources for save (default for gtk+)"
294 ac_help="$ac_help
295 --enable-clipboard use wxClipboard classes"
296 ac_help="$ac_help
297 --enable-dnd use Drag'n'Drop classes"
298 ac_help="$ac_help
299 --enable-metafile use win32 metafiles"
300 ac_help="$ac_help
301 --enable-treelayout use wxTreeLayout classes"
302 ac_help="$ac_help
303 --enable-controls use all usual controls"
304 ac_help="$ac_help
305 --enable-accel use accelerators"
306 ac_help="$ac_help
307 --enable-button use wxButton class"
308 ac_help="$ac_help
309 --enable-bmpbutton use wxBitmapButton class"
310 ac_help="$ac_help
311 --enable-calendar use wxCalendarCtrl class"
312 ac_help="$ac_help
313 --enable-caret use wxCaret class"
314 ac_help="$ac_help
315 --enable-checkbox use wxCheckBox class"
316 ac_help="$ac_help
317 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
318 ac_help="$ac_help
319 --enable-choice use wxChoice class"
320 ac_help="$ac_help
321 --enable-combobox use wxComboBox classes"
322 ac_help="$ac_help
323 --enable-gauge use wxGauge class"
324 ac_help="$ac_help
325 --enable-grid use wxGrid class"
326 ac_help="$ac_help
327 --enable-newgrid use new wxGrid class"
328 ac_help="$ac_help
329 --enable-imaglist use wxImageList class"
330 ac_help="$ac_help
331 --enable-listbox use wxListBox class"
332 ac_help="$ac_help
333 --enable-listctrl use wxListCtrl class"
334 ac_help="$ac_help
335 --enable-notebook use wxNotebook class"
336 ac_help="$ac_help
337 --enable-propsheet use wxPropertySheet class"
338 ac_help="$ac_help
339 --enable-radiobox use wxRadioBox class"
340 ac_help="$ac_help
341 --enable-radiobtn use wxRadioButton class"
342 ac_help="$ac_help
343 --enable-sash use wxSashWindow class"
344 ac_help="$ac_help
345 --enable-scrollbar use wxScrollBar class and scrollable windows"
346 ac_help="$ac_help
347 --enable-slider use wxSlider class"
348 ac_help="$ac_help
349 --enable-spinbtn use wxSpinButton class"
350 ac_help="$ac_help
351 --enable-spinctrl use wxSpinCtrl class"
352 ac_help="$ac_help
353 --enable-splitter use wxSplitterWindow class"
354 ac_help="$ac_help
355 --enable-statbmp use wxStaticBitmap class"
356 ac_help="$ac_help
357 --enable-statbox use wxStaticBox class"
358 ac_help="$ac_help
359 --enable-statline use wxStaticLine class"
360 ac_help="$ac_help
361 --enable-stattext use wxStaticText class"
362 ac_help="$ac_help
363 --enable-statusbar use wxStatusBar class"
364 ac_help="$ac_help
365 --enable-tabdialog use wxTabControl class"
366 ac_help="$ac_help
367 --enable-textctrl use wxTextCtrl class"
368 ac_help="$ac_help
369 --enable-togglebtn use wxToggleButton class"
370 ac_help="$ac_help
371 --enable-toolbar use wxToolBar class"
372 ac_help="$ac_help
373 --enable-tbarnative use native wxToolBar class"
374 ac_help="$ac_help
375 --enable-tbarsmpl use wxToolBarSimple class"
376 ac_help="$ac_help
377 --enable-treectrl use wxTreeCtrl class"
378 ac_help="$ac_help
379 --enable-tipwindow use wxTipWindow class"
380 ac_help="$ac_help
381 --enable-popupwin use wxPopUpWindow class"
382 ac_help="$ac_help
383 --enable-commondlg use all common dialogs"
384 ac_help="$ac_help
385 --enable-choicedlg use wxChoiceDialog"
386 ac_help="$ac_help
387 --enable-coldlg use wxColourDialog"
388 ac_help="$ac_help
389 --enable-filedlg use wxFileDialog"
390 ac_help="$ac_help
391 --enable-finddlg use wxFindReplaceDialog"
392 ac_help="$ac_help
393 --enable-fontdlg use wxFontDialog"
394 ac_help="$ac_help
395 --enable-dirdlg use wxDirDialog"
396 ac_help="$ac_help
397 --enable-msgdlg use wxMessageDialog"
398 ac_help="$ac_help
399 --enable-numberdlg use wxNumberEntryDialog"
400 ac_help="$ac_help
401 --enable-splash use wxSplashScreen"
402 ac_help="$ac_help
403 --enable-textdlg use wxTextDialog"
404 ac_help="$ac_help
405 --enable-tipdlg use startup tips"
406 ac_help="$ac_help
407 --enable-progressdlg use wxProgressDialog"
408 ac_help="$ac_help
409 --enable-wizarddlg use wxWizard"
410 ac_help="$ac_help
411 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
412 ac_help="$ac_help
413 --enable-miniframe use wxMiniFrame class"
414 ac_help="$ac_help
415 --enable-tooltips use wxToolTip class"
416 ac_help="$ac_help
417 --enable-splines use spline drawing code"
418 ac_help="$ac_help
419 --enable-validators use wxValidator and derived classes"
420 ac_help="$ac_help
421 --enable-busyinfo use wxBusyInfo"
422 ac_help="$ac_help
423 --enable-joystick use wxJoystick (Linux only)"
424 ac_help="$ac_help
425 --enable-metafiles use wxMetaFile (Windows only)"
426 ac_help="$ac_help
427 --enable-dragimage use wxDragImage"
428 ac_help="$ac_help
429 --enable-palette use wxPalette class"
430 ac_help="$ac_help
431 --enable-image use wxImage class"
432 ac_help="$ac_help
433 --enable-gif use gif images (GIF file format)"
434 ac_help="$ac_help
435 --enable-pcx use pcx images (PCX file format)"
436 ac_help="$ac_help
437 --enable-iff use iff images (IFF file format)"
438 ac_help="$ac_help
439 --enable-pnm use pnm images (PNM file format)"
440 ac_help="$ac_help
441 --enable-xpm use xpm images (XPM file format)"
442 ac_help="$ac_help
443 --enable-icocur use Windows ICO and CUR formats"
444 ac_help="$ac_help
445 --disable-largefile omit support for large files"
446 ac_help="$ac_help
447 --disable-gtktest do not try to compile and run a test GTK+ program"
448 ac_help="$ac_help
449 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
450 ac_help="$ac_help
451 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
452 ac_help="$ac_help
453 --disable-gtktest Do not try to compile and run a test GTK program"
454 ac_help="$ac_help
455 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
456 ac_help="$ac_help
457 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
458 ac_help="$ac_help
459 --disable-gtktest Do not try to compile and run a test GTK program"
460 ac_help="$ac_help
461 --with-x use the X Window System"
462 ac_help="$ac_help
463 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
464
465 # Initialize some variables set by options.
466 # The variables have the same names as the options, with
467 # dashes changed to underlines.
468 build=NONE
469 cache_file=./config.cache
470 exec_prefix=NONE
471 host=NONE
472 no_create=
473 nonopt=NONE
474 no_recursion=
475 prefix=NONE
476 program_prefix=NONE
477 program_suffix=NONE
478 program_transform_name=s,x,x,
479 silent=
480 site=
481 srcdir=
482 target=NONE
483 verbose=
484 x_includes=NONE
485 x_libraries=NONE
486 bindir='${exec_prefix}/bin'
487 sbindir='${exec_prefix}/sbin'
488 libexecdir='${exec_prefix}/libexec'
489 datadir='${prefix}/share'
490 sysconfdir='${prefix}/etc'
491 sharedstatedir='${prefix}/com'
492 localstatedir='${prefix}/var'
493 libdir='${exec_prefix}/lib'
494 includedir='${prefix}/include'
495 oldincludedir='/usr/include'
496 infodir='${prefix}/info'
497 mandir='${prefix}/man'
498
499 # Initialize some other variables.
500 subdirs=
501 MFLAGS= MAKEFLAGS=
502 SHELL=${CONFIG_SHELL-/bin/sh}
503 # Maximum number of lines to put in a shell here document.
504 ac_max_here_lines=12
505
506 ac_prev=
507 for ac_option
508 do
509
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
517 case "$ac_option" in
518 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
519 *) ac_optarg= ;;
520 esac
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case "$ac_option" in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir="$ac_optarg" ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build="$ac_optarg" ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file="$ac_optarg" ;;
542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir="$ac_optarg" ;;
548
549 -disable-* | --disable-*)
550 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
551 # Reject names that are not valid shell variable names.
552 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
553 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
554 fi
555 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
556 eval "enable_${ac_feature}=no" ;;
557
558 -enable-* | --enable-*)
559 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
560 # Reject names that are not valid shell variable names.
561 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
562 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
563 fi
564 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
565 case "$ac_option" in
566 *=*) ;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_${ac_feature}='$ac_optarg'" ;;
570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix="$ac_optarg" ;;
579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
584 -help | --help | --hel | --he)
585 # Omit some internal or obsolete options to make the list less imposing.
586 # This message is too long to be a string in the A/UX 3.1 sh.
587 cat << EOF
588 Usage: configure [options] [host]
589 Options: [defaults in brackets after descriptions]
590 Configuration:
591 --cache-file=FILE cache test results in FILE
592 --help print this message
593 --no-create do not create output files
594 --quiet, --silent do not print \`checking...' messages
595 --version print the version of autoconf that created configure
596 Directory and file names:
597 --prefix=PREFIX install architecture-independent files in PREFIX
598 [$ac_default_prefix]
599 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
600 [same as prefix]
601 --bindir=DIR user executables in DIR [EPREFIX/bin]
602 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
603 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
604 --datadir=DIR read-only architecture-independent data in DIR
605 [PREFIX/share]
606 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
607 --sharedstatedir=DIR modifiable architecture-independent data in DIR
608 [PREFIX/com]
609 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
610 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
611 --includedir=DIR C header files in DIR [PREFIX/include]
612 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
613 --infodir=DIR info documentation in DIR [PREFIX/info]
614 --mandir=DIR man documentation in DIR [PREFIX/man]
615 --srcdir=DIR find the sources in DIR [configure dir or ..]
616 --program-prefix=PREFIX prepend PREFIX to installed program names
617 --program-suffix=SUFFIX append SUFFIX to installed program names
618 --program-transform-name=PROGRAM
619 run sed PROGRAM on installed program names
620 EOF
621 cat << EOF
622 Host type:
623 --build=BUILD configure for building on BUILD [BUILD=HOST]
624 --host=HOST configure for HOST [guessed]
625 --target=TARGET configure for TARGET [TARGET=HOST]
626 Features and packages:
627 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
628 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
629 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
630 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
631 --x-includes=DIR X include files are in DIR
632 --x-libraries=DIR X library files are in DIR
633 EOF
634 if test -n "$ac_help"; then
635 echo "--enable and --with options recognized:$ac_help"
636 fi
637 exit 0 ;;
638
639 -host | --host | --hos | --ho)
640 ac_prev=host ;;
641 -host=* | --host=* | --hos=* | --ho=*)
642 host="$ac_optarg" ;;
643
644 -includedir | --includedir | --includedi | --included | --include \
645 | --includ | --inclu | --incl | --inc)
646 ac_prev=includedir ;;
647 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
648 | --includ=* | --inclu=* | --incl=* | --inc=*)
649 includedir="$ac_optarg" ;;
650
651 -infodir | --infodir | --infodi | --infod | --info | --inf)
652 ac_prev=infodir ;;
653 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
654 infodir="$ac_optarg" ;;
655
656 -libdir | --libdir | --libdi | --libd)
657 ac_prev=libdir ;;
658 -libdir=* | --libdir=* | --libdi=* | --libd=*)
659 libdir="$ac_optarg" ;;
660
661 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
662 | --libexe | --libex | --libe)
663 ac_prev=libexecdir ;;
664 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
665 | --libexe=* | --libex=* | --libe=*)
666 libexecdir="$ac_optarg" ;;
667
668 -localstatedir | --localstatedir | --localstatedi | --localstated \
669 | --localstate | --localstat | --localsta | --localst \
670 | --locals | --local | --loca | --loc | --lo)
671 ac_prev=localstatedir ;;
672 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
673 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
674 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
675 localstatedir="$ac_optarg" ;;
676
677 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
678 ac_prev=mandir ;;
679 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
680 mandir="$ac_optarg" ;;
681
682 -nfp | --nfp | --nf)
683 # Obsolete; use --without-fp.
684 with_fp=no ;;
685
686 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
687 | --no-cr | --no-c)
688 no_create=yes ;;
689
690 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
691 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
692 no_recursion=yes ;;
693
694 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
695 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
696 | --oldin | --oldi | --old | --ol | --o)
697 ac_prev=oldincludedir ;;
698 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
699 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
700 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
701 oldincludedir="$ac_optarg" ;;
702
703 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
704 ac_prev=prefix ;;
705 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
706 prefix="$ac_optarg" ;;
707
708 -program-prefix | --program-prefix | --program-prefi | --program-pref \
709 | --program-pre | --program-pr | --program-p)
710 ac_prev=program_prefix ;;
711 -program-prefix=* | --program-prefix=* | --program-prefi=* \
712 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
713 program_prefix="$ac_optarg" ;;
714
715 -program-suffix | --program-suffix | --program-suffi | --program-suff \
716 | --program-suf | --program-su | --program-s)
717 ac_prev=program_suffix ;;
718 -program-suffix=* | --program-suffix=* | --program-suffi=* \
719 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
720 program_suffix="$ac_optarg" ;;
721
722 -program-transform-name | --program-transform-name \
723 | --program-transform-nam | --program-transform-na \
724 | --program-transform-n | --program-transform- \
725 | --program-transform | --program-transfor \
726 | --program-transfo | --program-transf \
727 | --program-trans | --program-tran \
728 | --progr-tra | --program-tr | --program-t)
729 ac_prev=program_transform_name ;;
730 -program-transform-name=* | --program-transform-name=* \
731 | --program-transform-nam=* | --program-transform-na=* \
732 | --program-transform-n=* | --program-transform-=* \
733 | --program-transform=* | --program-transfor=* \
734 | --program-transfo=* | --program-transf=* \
735 | --program-trans=* | --program-tran=* \
736 | --progr-tra=* | --program-tr=* | --program-t=*)
737 program_transform_name="$ac_optarg" ;;
738
739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
740 | -silent | --silent | --silen | --sile | --sil)
741 silent=yes ;;
742
743 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
744 ac_prev=sbindir ;;
745 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
746 | --sbi=* | --sb=*)
747 sbindir="$ac_optarg" ;;
748
749 -sharedstatedir | --sharedstatedir | --sharedstatedi \
750 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
751 | --sharedst | --shareds | --shared | --share | --shar \
752 | --sha | --sh)
753 ac_prev=sharedstatedir ;;
754 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
755 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
756 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
757 | --sha=* | --sh=*)
758 sharedstatedir="$ac_optarg" ;;
759
760 -site | --site | --sit)
761 ac_prev=site ;;
762 -site=* | --site=* | --sit=*)
763 site="$ac_optarg" ;;
764
765 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
766 ac_prev=srcdir ;;
767 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
768 srcdir="$ac_optarg" ;;
769
770 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
771 | --syscon | --sysco | --sysc | --sys | --sy)
772 ac_prev=sysconfdir ;;
773 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
774 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
775 sysconfdir="$ac_optarg" ;;
776
777 -target | --target | --targe | --targ | --tar | --ta | --t)
778 ac_prev=target ;;
779 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
780 target="$ac_optarg" ;;
781
782 -v | -verbose | --verbose | --verbos | --verbo | --verb)
783 verbose=yes ;;
784
785 -version | --version | --versio | --versi | --vers)
786 echo "configure generated by autoconf version 2.13"
787 exit 0 ;;
788
789 -with-* | --with-*)
790 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
791 # Reject names that are not valid shell variable names.
792 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
793 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
794 fi
795 ac_package=`echo $ac_package| sed 's/-/_/g'`
796 case "$ac_option" in
797 *=*) ;;
798 *) ac_optarg=yes ;;
799 esac
800 eval "with_${ac_package}='$ac_optarg'" ;;
801
802 -without-* | --without-*)
803 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
804 # Reject names that are not valid shell variable names.
805 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
806 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
807 fi
808 ac_package=`echo $ac_package| sed 's/-/_/g'`
809 eval "with_${ac_package}=no" ;;
810
811 --x)
812 # Obsolete; use --with-x.
813 with_x=yes ;;
814
815 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
816 | --x-incl | --x-inc | --x-in | --x-i)
817 ac_prev=x_includes ;;
818 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
819 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
820 x_includes="$ac_optarg" ;;
821
822 -x-libraries | --x-libraries | --x-librarie | --x-librari \
823 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
824 ac_prev=x_libraries ;;
825 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
826 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
827 x_libraries="$ac_optarg" ;;
828
829 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
830 ;;
831
832 *)
833 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
834 echo "configure: warning: $ac_option: invalid host type" 1>&2
835 fi
836 if test "x$nonopt" != xNONE; then
837 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
838 fi
839 nonopt="$ac_option"
840 ;;
841
842 esac
843 done
844
845 if test -n "$ac_prev"; then
846 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
847 fi
848
849 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
850
851 # File descriptor usage:
852 # 0 standard input
853 # 1 file creation
854 # 2 errors and warnings
855 # 3 some systems may open it to /dev/tty
856 # 4 used on the Kubota Titan
857 # 6 checking for... messages and results
858 # 5 compiler messages saved in config.log
859 if test "$silent" = yes; then
860 exec 6>/dev/null
861 else
862 exec 6>&1
863 fi
864 exec 5>./config.log
865
866 echo "\
867 This file contains any messages produced by compilers while
868 running configure, to aid debugging if configure makes a mistake.
869 " 1>&5
870
871 # Strip out --no-create and --no-recursion so they do not pile up.
872 # Also quote any args containing shell metacharacters.
873 ac_configure_args=
874 for ac_arg
875 do
876 case "$ac_arg" in
877 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
878 | --no-cr | --no-c) ;;
879 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
880 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
881 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
882 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
883 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
884 esac
885 done
886
887 # NLS nuisances.
888 # Only set these to C if already set. These must not be set unconditionally
889 # because not all systems understand e.g. LANG=C (notably SCO).
890 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
891 # Non-C LC_CTYPE values break the ctype check.
892 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
893 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
894 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
895 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
896
897 # confdefs.h avoids OS command line length limits that DEFS can exceed.
898 rm -rf conftest* confdefs.h
899 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
900 echo > confdefs.h
901
902 # A filename unique to this package, relative to the directory that
903 # configure is in, which we can look for to find out if srcdir is correct.
904 ac_unique_file=wx-config.in
905
906 # Find the source files, if location was not specified.
907 if test -z "$srcdir"; then
908 ac_srcdir_defaulted=yes
909 # Try the directory containing this script, then its parent.
910 ac_prog=$0
911 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
912 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
913 srcdir=$ac_confdir
914 if test ! -r $srcdir/$ac_unique_file; then
915 srcdir=..
916 fi
917 else
918 ac_srcdir_defaulted=no
919 fi
920 if test ! -r $srcdir/$ac_unique_file; then
921 if test "$ac_srcdir_defaulted" = yes; then
922 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
923 else
924 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
925 fi
926 fi
927 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
928
929 # Prefer explicitly selected file to automatically selected ones.
930 if test -z "$CONFIG_SITE"; then
931 if test "x$prefix" != xNONE; then
932 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
933 else
934 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
935 fi
936 fi
937 for ac_site_file in $CONFIG_SITE; do
938 if test -r "$ac_site_file"; then
939 echo "loading site script $ac_site_file"
940 . "$ac_site_file"
941 fi
942 done
943
944 if test -r "$cache_file"; then
945 echo "loading cache $cache_file"
946 . $cache_file
947 else
948 echo "creating cache $cache_file"
949 > $cache_file
950 fi
951
952 ac_ext=c
953 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
954 ac_cpp='$CPP $CPPFLAGS'
955 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
956 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
957 cross_compiling=$ac_cv_prog_cc_cross
958
959 ac_exeext=
960 ac_objext=o
961 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
962 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
963 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
964 ac_n= ac_c='
965 ' ac_t=' '
966 else
967 ac_n=-n ac_c= ac_t=
968 fi
969 else
970 ac_n= ac_c='\c' ac_t=
971 fi
972
973
974
975 ac_aux_dir=
976 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
977 if test -f $ac_dir/install-sh; then
978 ac_aux_dir=$ac_dir
979 ac_install_sh="$ac_aux_dir/install-sh -c"
980 break
981 elif test -f $ac_dir/install.sh; then
982 ac_aux_dir=$ac_dir
983 ac_install_sh="$ac_aux_dir/install.sh -c"
984 break
985 fi
986 done
987 if test -z "$ac_aux_dir"; then
988 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
989 fi
990 ac_config_guess=$ac_aux_dir/config.guess
991 ac_config_sub=$ac_aux_dir/config.sub
992 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
993
994
995 # Do some error checking and defaulting for the host and target type.
996 # The inputs are:
997 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
998 #
999 # The rules are:
1000 # 1. You are not allowed to specify --host, --target, and nonopt at the
1001 # same time.
1002 # 2. Host defaults to nonopt.
1003 # 3. If nonopt is not specified, then host defaults to the current host,
1004 # as determined by config.guess.
1005 # 4. Target and build default to nonopt.
1006 # 5. If nonopt is not specified, then target and build default to host.
1007
1008 # The aliases save the names the user supplied, while $host etc.
1009 # will get canonicalized.
1010 case $host---$target---$nonopt in
1011 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1012 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1013 esac
1014
1015
1016 # Make sure we can run config.sub.
1017 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1018 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1019 fi
1020
1021 echo $ac_n "checking host system type""... $ac_c" 1>&6
1022 echo "configure:1023: checking host system type" >&5
1023
1024 host_alias=$host
1025 case "$host_alias" in
1026 NONE)
1027 case $nonopt in
1028 NONE)
1029 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1030 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1031 fi ;;
1032 *) host_alias=$nonopt ;;
1033 esac ;;
1034 esac
1035
1036 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1037 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1038 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1039 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1040 echo "$ac_t""$host" 1>&6
1041
1042 echo $ac_n "checking target system type""... $ac_c" 1>&6
1043 echo "configure:1044: checking target system type" >&5
1044
1045 target_alias=$target
1046 case "$target_alias" in
1047 NONE)
1048 case $nonopt in
1049 NONE) target_alias=$host_alias ;;
1050 *) target_alias=$nonopt ;;
1051 esac ;;
1052 esac
1053
1054 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1055 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1056 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1057 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1058 echo "$ac_t""$target" 1>&6
1059
1060 echo $ac_n "checking build system type""... $ac_c" 1>&6
1061 echo "configure:1062: checking build system type" >&5
1062
1063 build_alias=$build
1064 case "$build_alias" in
1065 NONE)
1066 case $nonopt in
1067 NONE) build_alias=$host_alias ;;
1068 *) build_alias=$nonopt ;;
1069 esac ;;
1070 esac
1071
1072 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1073 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1074 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1075 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1076 echo "$ac_t""$build" 1>&6
1077
1078 test "$host_alias" != "$target_alias" &&
1079 test "$program_prefix$program_suffix$program_transform_name" = \
1080 NONENONEs,x,x, &&
1081 program_prefix=${target_alias}-
1082
1083
1084
1085 WX_MAJOR_VERSION_NUMBER=2
1086 WX_MINOR_VERSION_NUMBER=5
1087 WX_RELEASE_NUMBER=0
1088
1089 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1090 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1091
1092 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1093
1094 WX_CURRENT=0
1095 WX_REVISION=0
1096 WX_AGE=0
1097
1098
1099
1100 USE_UNIX=1
1101 USE_WIN32=0
1102 USE_DOS=0
1103 USE_BEOS=0
1104 USE_MAC=0
1105
1106 USE_LINUX=
1107 USE_SGI=
1108 USE_HPUX=
1109 USE_SYSV=
1110 USE_SVR4=
1111 USE_AIX=
1112 USE_SUN=
1113 USE_SOLARIS=
1114 USE_SUNOS=
1115 USE_ALPHA=
1116 USE_OSF=
1117 USE_BSD=
1118 USE_DARWIN=
1119 USE_FREEBSD=
1120 USE_OPENBSD=
1121 USE_NETBSD=
1122 USE_VMS=
1123 USE_ULTRIX=
1124 USE_DATA_GENERAL=
1125
1126 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1127
1128 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1129
1130 DEFAULT_wxUSE_GTK=0
1131 DEFAULT_wxUSE_MAC=0
1132 DEFAULT_wxUSE_MGL=0
1133 DEFAULT_wxUSE_MICROWIN=0
1134 DEFAULT_wxUSE_MOTIF=0
1135 DEFAULT_wxUSE_MSW=0
1136 DEFAULT_wxUSE_PM=0
1137 DEFAULT_wxUSE_X11=0
1138
1139 DEFAULT_DEFAULT_wxUSE_GTK=0
1140 DEFAULT_DEFAULT_wxUSE_MAC=0
1141 DEFAULT_DEFAULT_wxUSE_MGL=0
1142 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1143 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1144 DEFAULT_DEFAULT_wxUSE_MSW=0
1145 DEFAULT_DEFAULT_wxUSE_PM=0
1146 DEFAULT_DEFAULT_wxUSE_X11=0
1147
1148 PROGRAM_EXT=
1149 SO_SUFFIX=so
1150
1151 case "${host}" in
1152 *-hp-hpux* )
1153 USE_HPUX=1
1154 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1155 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1156 SO_SUFFIX=sl
1157 cat >> confdefs.h <<\EOF
1158 #define __HPUX__ 1
1159 EOF
1160
1161 ;;
1162 *-*-linux* )
1163 USE_LINUX=1
1164 cat >> confdefs.h <<\EOF
1165 #define __LINUX__ 1
1166 EOF
1167
1168 TMP=`uname -m`
1169 if test "x$TMP" = "xalpha"; then
1170 USE_ALPHA=1
1171 cat >> confdefs.h <<\EOF
1172 #define __ALPHA__ 1
1173 EOF
1174
1175 fi
1176 DEFAULT_DEFAULT_wxUSE_GTK=1
1177 ;;
1178 *-*-irix5* | *-*-irix6* )
1179 USE_SGI=1
1180 USE_SVR4=1
1181 cat >> confdefs.h <<\EOF
1182 #define __SGI__ 1
1183 EOF
1184
1185 cat >> confdefs.h <<\EOF
1186 #define __SVR4__ 1
1187 EOF
1188
1189 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1190 ;;
1191 *-*-solaris2* )
1192 USE_SUN=1
1193 USE_SOLARIS=1
1194 USE_SVR4=1
1195 cat >> confdefs.h <<\EOF
1196 #define __SUN__ 1
1197 EOF
1198
1199 cat >> confdefs.h <<\EOF
1200 #define __SOLARIS__ 1
1201 EOF
1202
1203 cat >> confdefs.h <<\EOF
1204 #define __SVR4__ 1
1205 EOF
1206
1207 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1208 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1209 ;;
1210 *-*-sunos4* )
1211 USE_SUN=1
1212 USE_SUNOS=1
1213 USE_BSD=1
1214 cat >> confdefs.h <<\EOF
1215 #define __SUN__ 1
1216 EOF
1217
1218 cat >> confdefs.h <<\EOF
1219 #define __SUNOS__ 1
1220 EOF
1221
1222 cat >> confdefs.h <<\EOF
1223 #define __BSD__ 1
1224 EOF
1225
1226 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1227 ;;
1228 *-*-freebsd*)
1229 USE_BSD=1
1230 USE_FREEBSD=1
1231 cat >> confdefs.h <<\EOF
1232 #define __FREEBSD__ 1
1233 EOF
1234
1235 cat >> confdefs.h <<\EOF
1236 #define __BSD__ 1
1237 EOF
1238
1239 DEFAULT_DEFAULT_wxUSE_GTK=1
1240 ;;
1241 *-*-openbsd*)
1242 USE_BSD=1
1243 USE_OPENBSD=1
1244 cat >> confdefs.h <<\EOF
1245 #define __OPENBSD__ 1
1246 EOF
1247
1248 cat >> confdefs.h <<\EOF
1249 #define __BSD__ 1
1250 EOF
1251
1252 DEFAULT_DEFAULT_wxUSE_GTK=1
1253 ;;
1254 *-*-netbsd*)
1255 USE_BSD=1
1256 USE_NETBSD=1
1257 cat >> confdefs.h <<\EOF
1258 #define __NETBSD__ 1
1259 EOF
1260
1261 cat >> confdefs.h <<\EOF
1262 #define __BSD__ 1
1263 EOF
1264
1265 DEFAULT_DEFAULT_wxUSE_GTK=1
1266 ;;
1267 *-*-osf* )
1268 USE_ALPHA=1
1269 USE_OSF=1
1270 cat >> confdefs.h <<\EOF
1271 #define __ALPHA__ 1
1272 EOF
1273
1274 cat >> confdefs.h <<\EOF
1275 #define __OSF__ 1
1276 EOF
1277
1278 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1279 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1280 ;;
1281 *-*-dgux5* )
1282 USE_ALPHA=1
1283 USE_SVR4=1
1284 cat >> confdefs.h <<\EOF
1285 #define __ALPHA__ 1
1286 EOF
1287
1288 cat >> confdefs.h <<\EOF
1289 #define __SVR4__ 1
1290 EOF
1291
1292 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1293 ;;
1294 *-*-sysv5* )
1295 USE_SYSV=1
1296 USE_SVR4=1
1297 cat >> confdefs.h <<\EOF
1298 #define __SYSV__ 1
1299 EOF
1300
1301 cat >> confdefs.h <<\EOF
1302 #define __SVR4__ 1
1303 EOF
1304
1305 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1306 ;;
1307 *-*-aix* )
1308 USE_AIX=1
1309 USE_SYSV=1
1310 USE_SVR4=1
1311 SO_SUFFIX=a
1312 cat >> confdefs.h <<\EOF
1313 #define __AIX__ 1
1314 EOF
1315
1316 cat >> confdefs.h <<\EOF
1317 #define __SYSV__ 1
1318 EOF
1319
1320 cat >> confdefs.h <<\EOF
1321 #define __SVR4__ 1
1322 EOF
1323
1324 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1325 ;;
1326
1327 *-*-cygwin* | *-*-mingw32* )
1328 SO_SUFFIX=dll
1329 PROGRAM_EXT=".exe"
1330 RESCOMP=windres
1331 DEFAULT_DEFAULT_wxUSE_MSW=1
1332 ;;
1333
1334 *-pc-msdosdjgpp )
1335 USE_UNIX=0
1336 USE_DOS=1
1337 cat >> confdefs.h <<\EOF
1338 #define __DOS__ 1
1339 EOF
1340
1341 PROGRAM_EXT=".exe"
1342 DEFAULT_DEFAULT_wxUSE_MGL=1
1343 LIBS="$LIBS -lstdc++"
1344 ;;
1345
1346 *-pc-os2_emx | *-pc-os2-emx )
1347 cat >> confdefs.h <<\EOF
1348 #define __EMX__ 1
1349 EOF
1350
1351 PROGRAM_EXT=".exe"
1352 DEFAULT_DEFAULT_wxUSE_PM=1
1353 ;;
1354
1355 powerpc-*-darwin* )
1356 USE_BSD=1
1357 USE_DARWIN=1
1358 SO_SUFFIX=dylib
1359 cat >> confdefs.h <<\EOF
1360 #define __BSD__ 1
1361 EOF
1362
1363 cat >> confdefs.h <<\EOF
1364 #define __DARWIN__ 1
1365 EOF
1366
1367 cat >> confdefs.h <<\EOF
1368 #define __POWERPC__ 1
1369 EOF
1370
1371 DEFAULT_DEFAULT_wxUSE_MAC=1
1372 ;;
1373
1374 *-*-beos* )
1375 USE_BEOS=1
1376 cat >> confdefs.h <<\EOF
1377 #define __BEOS__ 1
1378 EOF
1379
1380 ;;
1381
1382 *)
1383 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1384 esac
1385
1386
1387
1388
1389 wx_arg_cache_file="configarg.cache"
1390 echo "loading argument cache $wx_arg_cache_file"
1391 rm -f ${wx_arg_cache_file}.tmp
1392 touch ${wx_arg_cache_file}.tmp
1393 touch ${wx_arg_cache_file}
1394
1395
1396 DEBUG_CONFIGURE=0
1397 if test $DEBUG_CONFIGURE = 1; then
1398 DEFAULT_wxUSE_UNIVERSAL=no
1399
1400 DEFAULT_wxUSE_NANOX=no
1401
1402 DEFAULT_wxUSE_THREADS=yes
1403
1404 DEFAULT_wxUSE_SHARED=yes
1405 DEFAULT_wxUSE_SONAME=no
1406 DEFAULT_wxUSE_OPTIMISE=no
1407 DEFAULT_wxUSE_PROFILE=no
1408 DEFAULT_wxUSE_NO_DEPS=no
1409 DEFAULT_wxUSE_NO_RTTI=no
1410 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1411 DEFAULT_wxUSE_PERMISSIVE=no
1412 DEFAULT_wxUSE_DEBUG_FLAG=yes
1413 DEFAULT_wxUSE_DEBUG_INFO=yes
1414 DEFAULT_wxUSE_DEBUG_GDB=yes
1415 DEFAULT_wxUSE_MEM_TRACING=no
1416 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1417 DEFAULT_wxUSE_DMALLOC=no
1418 DEFAULT_wxUSE_PRECOMP=no
1419 DEFAULT_wxUSE_APPLE_IEEE=no
1420
1421 DEFAULT_wxUSE_LOG=yes
1422 DEFAULT_wxUSE_LOGWINDOW=no
1423 DEFAULT_wxUSE_LOGGUI=no
1424 DEFAULT_wxUSE_LOGDIALOG=no
1425
1426 DEFAULT_wxUSE_GUI=yes
1427 DEFAULT_wxUSE_CONTROLS=no
1428
1429 DEFAULT_wxUSE_REGEX=no
1430 DEFAULT_wxUSE_ZLIB=no
1431 DEFAULT_wxUSE_LIBPNG=no
1432 DEFAULT_wxUSE_LIBJPEG=no
1433 DEFAULT_wxUSE_LIBTIFF=no
1434 DEFAULT_wxUSE_ODBC=no
1435 DEFAULT_wxUSE_OPENGL=no
1436
1437 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1438 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1439 DEFAULT_wxUSE_STD_IOSTREAM=no
1440 DEFAULT_wxUSE_CMDLINE_PARSER=no
1441 DEFAULT_wxUSE_DATETIME=no
1442 DEFAULT_wxUSE_TIMEDATE=no
1443 DEFAULT_wxUSE_TIMER=no
1444 DEFAULT_wxUSE_STOPWATCH=no
1445 DEFAULT_wxUSE_FILE=no
1446 DEFAULT_wxUSE_FFILE=no
1447 DEFAULT_wxUSE_TEXTBUFFER=no
1448 DEFAULT_wxUSE_TEXTFILE=no
1449 DEFAULT_wxUSE_WAVE=no
1450 DEFAULT_wxUSE_INTL=no
1451 DEFAULT_wxUSE_CONFIG=no
1452 DEFAULT_wxUSE_FONTMAP=no
1453 DEFAULT_wxUSE_STREAMS=no
1454 DEFAULT_wxUSE_SOCKETS=no
1455 DEFAULT_wxUSE_OLE=no
1456 DEFAULT_wxUSE_DATAOBJ=no
1457 DEFAULT_wxUSE_DIALUP_MANAGER=no
1458 DEFAULT_wxUSE_JOYSTICK=no
1459 DEFAULT_wxUSE_DYNLIB_CLASS=no
1460 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1461 DEFAULT_wxUSE_LONGLONG=no
1462 DEFAULT_wxUSE_GEOMETRY=no
1463
1464 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1465 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1466 DEFAULT_wxUSE_POSTSCRIPT=no
1467
1468 DEFAULT_wxUSE_X_RESOURCES=no
1469 DEFAULT_wxUSE_CLIPBOARD=no
1470 DEFAULT_wxUSE_TOOLTIPS=no
1471 DEFAULT_wxUSE_DRAG_AND_DROP=no
1472 DEFAULT_wxUSE_DRAGIMAGE=no
1473 DEFAULT_wxUSE_SPLINES=no
1474
1475 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1476 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1477 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1478
1479 DEFAULT_wxUSE_PROLOGIO=no
1480 DEFAULT_wxUSE_RESOURCES=no
1481 DEFAULT_wxUSE_CONSTRAINTS=no
1482 DEFAULT_wxUSE_IPC=no
1483 DEFAULT_wxUSE_HELP=no
1484 DEFAULT_wxUSE_MS_HTML_HELP=no
1485 DEFAULT_wxUSE_WXHTML_HELP=no
1486 DEFAULT_wxUSE_TREELAYOUT=no
1487 DEFAULT_wxUSE_METAFILE=no
1488 DEFAULT_wxUSE_MIMETYPE=no
1489 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1490 DEFAULT_wxUSE_PROTOCOL=no
1491 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1492 DEFAULT_wxUSE_PROTOCOL_FTP=no
1493 DEFAULT_wxUSE_PROTOCOL_FILE=no
1494 DEFAULT_wxUSE_URL=no
1495
1496 DEFAULT_wxUSE_COMMONDLGS=no
1497 DEFAULT_wxUSE_CHOICEDLG=no
1498 DEFAULT_wxUSE_COLOURDLG=no
1499 DEFAULT_wxUSE_DIRDLG=no
1500 DEFAULT_wxUSE_FILEDLG=no
1501 DEFAULT_wxUSE_FINDREPLDLG=no
1502 DEFAULT_wxUSE_FONTDLG=no
1503 DEFAULT_wxUSE_MSGDLG=no
1504 DEFAULT_wxUSE_NUMBERDLG=no
1505 DEFAULT_wxUSE_TEXTDLG=no
1506 DEFAULT_wxUSE_SPLASH=no
1507 DEFAULT_wxUSE_STARTUP_TIPS=no
1508 DEFAULT_wxUSE_PROGRESSDLG=no
1509 DEFAULT_wxUSE_WIZARDDLG=no
1510
1511 DEFAULT_wxUSE_MENUS=no
1512 DEFAULT_wxUSE_MINIFRAME=no
1513 DEFAULT_wxUSE_HTML=no
1514 DEFAULT_wxUSE_FILESYSTEM=no
1515 DEFAULT_wxUSE_FS_INET=no
1516 DEFAULT_wxUSE_FS_ZIP=no
1517 DEFAULT_wxUSE_BUSYINFO=no
1518 DEFAULT_wxUSE_ZIPSTREAM=no
1519 DEFAULT_wxUSE_VALIDATORS=no
1520
1521 DEFAULT_wxUSE_ACCEL=no
1522 DEFAULT_wxUSE_BUTTON=no
1523 DEFAULT_wxUSE_BMPBUTTON=no
1524 DEFAULT_wxUSE_CALCTRL=no
1525 DEFAULT_wxUSE_CARET=no
1526 DEFAULT_wxUSE_CHECKBOX=no
1527 DEFAULT_wxUSE_CHECKLST=no
1528 DEFAULT_wxUSE_CHOICE=no
1529 DEFAULT_wxUSE_COMBOBOX=no
1530 DEFAULT_wxUSE_GAUGE=no
1531 DEFAULT_wxUSE_GRID=no
1532 DEFAULT_wxUSE_NEW_GRID=no
1533 DEFAULT_wxUSE_IMAGLIST=no
1534 DEFAULT_wxUSE_LISTBOX=no
1535 DEFAULT_wxUSE_LISTCTRL=no
1536 DEFAULT_wxUSE_NOTEBOOK=no
1537 DEFAULT_wxUSE_PROPSHEET=no
1538 DEFAULT_wxUSE_RADIOBOX=no
1539 DEFAULT_wxUSE_RADIOBTN=no
1540 DEFAULT_wxUSE_SASH=no
1541 DEFAULT_wxUSE_SCROLLBAR=no
1542 DEFAULT_wxUSE_SLIDER=no
1543 DEFAULT_wxUSE_SPINBTN=no
1544 DEFAULT_wxUSE_SPINCTRL=no
1545 DEFAULT_wxUSE_SPLITTER=no
1546 DEFAULT_wxUSE_STATBMP=no
1547 DEFAULT_wxUSE_STATBOX=no
1548 DEFAULT_wxUSE_STATLINE=no
1549 DEFAULT_wxUSE_STATTEXT=no
1550 DEFAULT_wxUSE_STATUSBAR=yes
1551 DEFAULT_wxUSE_TABDIALOG=no
1552 DEFAULT_wxUSE_TEXTCTRL=no
1553 DEFAULT_wxUSE_TOGGLEBTN=no
1554 DEFAULT_wxUSE_TOOLBAR=no
1555 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1556 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1557 DEFAULT_wxUSE_TREECTRL=no
1558 DEFAULT_wxUSE_POPUPWIN=no
1559 DEFAULT_wxUSE_TIPWINDOW=no
1560
1561 DEFAULT_wxUSE_UNICODE=no
1562 DEFAULT_wxUSE_UNICODE_MSLU=no
1563 DEFAULT_wxUSE_WCSRTOMBS=no
1564
1565 DEFAULT_wxUSE_PALETTE=no
1566 DEFAULT_wxUSE_IMAGE=no
1567 DEFAULT_wxUSE_GIF=no
1568 DEFAULT_wxUSE_PCX=no
1569 DEFAULT_wxUSE_PNM=no
1570 DEFAULT_wxUSE_IFF=no
1571 DEFAULT_wxUSE_XPM=no
1572 DEFAULT_wxUSE_ICO_CUR=no
1573 else
1574 DEFAULT_wxUSE_UNIVERSAL=no
1575
1576 DEFAULT_wxUSE_NANOX=no
1577
1578 DEFAULT_wxUSE_THREADS=yes
1579
1580 DEFAULT_wxUSE_SHARED=yes
1581 DEFAULT_wxUSE_SONAME=no
1582 DEFAULT_wxUSE_OPTIMISE=yes
1583 DEFAULT_wxUSE_PROFILE=no
1584 DEFAULT_wxUSE_NO_DEPS=no
1585 DEFAULT_wxUSE_NO_RTTI=no
1586 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1587 DEFAULT_wxUSE_PERMISSIVE=no
1588 DEFAULT_wxUSE_DEBUG_FLAG=no
1589 DEFAULT_wxUSE_DEBUG_INFO=no
1590 DEFAULT_wxUSE_DEBUG_GDB=no
1591 DEFAULT_wxUSE_MEM_TRACING=no
1592 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1593 DEFAULT_wxUSE_DMALLOC=no
1594 DEFAULT_wxUSE_PRECOMP=no
1595 DEFAULT_wxUSE_APPLE_IEEE=yes
1596
1597 DEFAULT_wxUSE_LOG=yes
1598 DEFAULT_wxUSE_LOGWINDOW=yes
1599 DEFAULT_wxUSE_LOGGUI=yes
1600 DEFAULT_wxUSE_LOGDIALOG=yes
1601
1602 DEFAULT_wxUSE_GUI=yes
1603
1604 DEFAULT_wxUSE_REGEX=yes
1605 DEFAULT_wxUSE_ZLIB=yes
1606 DEFAULT_wxUSE_LIBPNG=yes
1607 DEFAULT_wxUSE_LIBJPEG=yes
1608 DEFAULT_wxUSE_LIBTIFF=yes
1609 DEFAULT_wxUSE_ODBC=no
1610 DEFAULT_wxUSE_OPENGL=no
1611
1612 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1613 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1614 DEFAULT_wxUSE_STD_IOSTREAM=no
1615 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1616 DEFAULT_wxUSE_DATETIME=yes
1617 DEFAULT_wxUSE_TIMEDATE=no
1618 DEFAULT_wxUSE_TIMER=yes
1619 DEFAULT_wxUSE_STOPWATCH=yes
1620 DEFAULT_wxUSE_FILE=yes
1621 DEFAULT_wxUSE_FFILE=yes
1622 DEFAULT_wxUSE_TEXTBUFFER=yes
1623 DEFAULT_wxUSE_TEXTFILE=yes
1624 DEFAULT_wxUSE_WAVE=no
1625 DEFAULT_wxUSE_INTL=yes
1626 DEFAULT_wxUSE_CONFIG=yes
1627 DEFAULT_wxUSE_FONTMAP=yes
1628 DEFAULT_wxUSE_STREAMS=yes
1629 DEFAULT_wxUSE_SOCKETS=yes
1630 DEFAULT_wxUSE_OLE=yes
1631 DEFAULT_wxUSE_DATAOBJ=yes
1632 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1633 DEFAULT_wxUSE_JOYSTICK=yes
1634 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1635 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1636 DEFAULT_wxUSE_LONGLONG=yes
1637 DEFAULT_wxUSE_GEOMETRY=yes
1638
1639 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1640 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1641 DEFAULT_wxUSE_POSTSCRIPT=yes
1642
1643 DEFAULT_wxUSE_X_RESOURCES=no
1644 DEFAULT_wxUSE_CLIPBOARD=yes
1645 DEFAULT_wxUSE_TOOLTIPS=yes
1646 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1647 DEFAULT_wxUSE_DRAGIMAGE=yes
1648 DEFAULT_wxUSE_SPLINES=yes
1649
1650 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1651 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1652 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1653
1654 DEFAULT_wxUSE_PROLOGIO=no
1655 DEFAULT_wxUSE_RESOURCES=no
1656 DEFAULT_wxUSE_CONSTRAINTS=yes
1657 DEFAULT_wxUSE_IPC=yes
1658 DEFAULT_wxUSE_HELP=yes
1659 DEFAULT_wxUSE_MS_HTML_HELP=yes
1660 DEFAULT_wxUSE_WXHTML_HELP=yes
1661 DEFAULT_wxUSE_TREELAYOUT=yes
1662 DEFAULT_wxUSE_METAFILE=yes
1663 DEFAULT_wxUSE_MIMETYPE=yes
1664 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1665 DEFAULT_wxUSE_PROTOCOL=yes
1666 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1667 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1668 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1669 DEFAULT_wxUSE_URL=yes
1670
1671 DEFAULT_wxUSE_COMMONDLGS=yes
1672 DEFAULT_wxUSE_CHOICEDLG=yes
1673 DEFAULT_wxUSE_COLOURDLG=yes
1674 DEFAULT_wxUSE_DIRDLG=yes
1675 DEFAULT_wxUSE_FILEDLG=yes
1676 DEFAULT_wxUSE_FINDREPLDLG=yes
1677 DEFAULT_wxUSE_FONTDLG=yes
1678 DEFAULT_wxUSE_MSGDLG=yes
1679 DEFAULT_wxUSE_NUMBERDLG=yes
1680 DEFAULT_wxUSE_TEXTDLG=yes
1681 DEFAULT_wxUSE_SPLASH=yes
1682 DEFAULT_wxUSE_STARTUP_TIPS=yes
1683 DEFAULT_wxUSE_PROGRESSDLG=yes
1684 DEFAULT_wxUSE_WIZARDDLG=yes
1685
1686 DEFAULT_wxUSE_MENUS=yes
1687 DEFAULT_wxUSE_MINIFRAME=yes
1688 DEFAULT_wxUSE_HTML=yes
1689 DEFAULT_wxUSE_FILESYSTEM=yes
1690 DEFAULT_wxUSE_FS_INET=yes
1691 DEFAULT_wxUSE_FS_ZIP=yes
1692 DEFAULT_wxUSE_BUSYINFO=yes
1693 DEFAULT_wxUSE_ZIPSTREAM=yes
1694 DEFAULT_wxUSE_VALIDATORS=yes
1695
1696 DEFAULT_wxUSE_ACCEL=yes
1697 DEFAULT_wxUSE_BUTTON=yes
1698 DEFAULT_wxUSE_BMPBUTTON=yes
1699 DEFAULT_wxUSE_CALCTRL=yes
1700 DEFAULT_wxUSE_CARET=yes
1701 DEFAULT_wxUSE_CHECKBOX=yes
1702 DEFAULT_wxUSE_CHECKLST=yes
1703 DEFAULT_wxUSE_CHOICE=yes
1704 DEFAULT_wxUSE_COMBOBOX=yes
1705 DEFAULT_wxUSE_GAUGE=yes
1706 DEFAULT_wxUSE_GRID=yes
1707 DEFAULT_wxUSE_NEW_GRID=yes
1708 DEFAULT_wxUSE_IMAGLIST=yes
1709 DEFAULT_wxUSE_LISTBOX=yes
1710 DEFAULT_wxUSE_LISTCTRL=yes
1711 DEFAULT_wxUSE_NOTEBOOK=yes
1712 DEFAULT_wxUSE_PROPSHEET=yes
1713 DEFAULT_wxUSE_RADIOBOX=yes
1714 DEFAULT_wxUSE_RADIOBTN=yes
1715 DEFAULT_wxUSE_SASH=yes
1716 DEFAULT_wxUSE_SCROLLBAR=yes
1717 DEFAULT_wxUSE_SLIDER=yes
1718 DEFAULT_wxUSE_SPINBTN=yes
1719 DEFAULT_wxUSE_SPINCTRL=yes
1720 DEFAULT_wxUSE_SPLITTER=yes
1721 DEFAULT_wxUSE_STATBMP=yes
1722 DEFAULT_wxUSE_STATBOX=yes
1723 DEFAULT_wxUSE_STATLINE=yes
1724 DEFAULT_wxUSE_STATTEXT=yes
1725 DEFAULT_wxUSE_STATUSBAR=yes
1726 DEFAULT_wxUSE_TABDIALOG=no
1727 DEFAULT_wxUSE_TEXTCTRL=yes
1728 DEFAULT_wxUSE_TOGGLEBTN=yes
1729 DEFAULT_wxUSE_TOOLBAR=yes
1730 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1731 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1732 DEFAULT_wxUSE_TREECTRL=yes
1733 DEFAULT_wxUSE_POPUPWIN=yes
1734 DEFAULT_wxUSE_TIPWINDOW=yes
1735
1736 DEFAULT_wxUSE_UNICODE=no
1737 DEFAULT_wxUSE_UNICODE_MSLU=yes
1738 DEFAULT_wxUSE_WCSRTOMBS=no
1739
1740 DEFAULT_wxUSE_PALETTE=yes
1741 DEFAULT_wxUSE_IMAGE=yes
1742 DEFAULT_wxUSE_GIF=yes
1743 DEFAULT_wxUSE_PCX=yes
1744 DEFAULT_wxUSE_IFF=no
1745 DEFAULT_wxUSE_PNM=yes
1746 DEFAULT_wxUSE_XPM=yes
1747 DEFAULT_wxUSE_ICO_CUR=yes
1748 fi
1749
1750
1751
1752 for toolkit in `echo $ALL_TOOLKITS`; do
1753 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1754 if test "x$LINE" != "x" ; then
1755 has_toolkit_in_cache=1
1756 eval "DEFAULT_$LINE"
1757 eval "CACHE_$toolkit=1"
1758 fi
1759 done
1760
1761
1762
1763 enablestring=
1764 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1765 echo "configure:1766: checking for --${enablestring:-enable}-gui" >&5
1766 no_cache=0
1767 # Check whether --enable-gui or --disable-gui was given.
1768 if test "${enable_gui+set}" = set; then
1769 enableval="$enable_gui"
1770
1771 if test "$enableval" = yes; then
1772 ac_cv_use_gui='wxUSE_GUI=yes'
1773 else
1774 ac_cv_use_gui='wxUSE_GUI=no'
1775 fi
1776
1777 else
1778
1779 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1780 if test "x$LINE" != x ; then
1781 eval "DEFAULT_$LINE"
1782 else
1783 no_cache=1
1784 fi
1785
1786 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1787
1788 fi
1789
1790
1791 eval "$ac_cv_use_gui"
1792 if test "$no_cache" != 1; then
1793 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1794 fi
1795
1796 if test "$wxUSE_GUI" = yes; then
1797 echo "$ac_t""yes" 1>&6
1798 else
1799 echo "$ac_t""no" 1>&6
1800 fi
1801
1802
1803 if test "$wxUSE_GUI" = "yes"; then
1804
1805
1806 enablestring=
1807 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1808 echo "configure:1809: checking for --${enablestring:-enable}-universal" >&5
1809 no_cache=0
1810 # Check whether --enable-universal or --disable-universal was given.
1811 if test "${enable_universal+set}" = set; then
1812 enableval="$enable_universal"
1813
1814 if test "$enableval" = yes; then
1815 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1816 else
1817 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1818 fi
1819
1820 else
1821
1822 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1823 if test "x$LINE" != x ; then
1824 eval "DEFAULT_$LINE"
1825 else
1826 no_cache=1
1827 fi
1828
1829 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1830
1831 fi
1832
1833
1834 eval "$ac_cv_use_universal"
1835 if test "$no_cache" != 1; then
1836 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1837 fi
1838
1839 if test "$wxUSE_UNIVERSAL" = yes; then
1840 echo "$ac_t""yes" 1>&6
1841 else
1842 echo "$ac_t""no" 1>&6
1843 fi
1844
1845 # Check whether --with-gtk or --without-gtk was given.
1846 if test "${with_gtk+set}" = set; then
1847 withval="$with_gtk"
1848 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1849 fi
1850
1851 # Check whether --with-motif or --without-motif was given.
1852 if test "${with_motif+set}" = set; then
1853 withval="$with_motif"
1854 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1855 fi
1856
1857 # Check whether --with-mac or --without-mac was given.
1858 if test "${with_mac+set}" = set; then
1859 withval="$with_mac"
1860 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1861 fi
1862
1863 # Check whether --with-wine or --without-wine was given.
1864 if test "${with_wine+set}" = set; then
1865 withval="$with_wine"
1866 wxUSE_WINE="$withval" CACHE_WINE=1
1867 fi
1868
1869 # Check whether --with-msw or --without-msw was given.
1870 if test "${with_msw+set}" = set; then
1871 withval="$with_msw"
1872 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1873 fi
1874
1875 # Check whether --with-pm or --without-pm was given.
1876 if test "${with_pm+set}" = set; then
1877 withval="$with_pm"
1878 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1879 fi
1880
1881 # Check whether --with-mgl or --without-mgl was given.
1882 if test "${with_mgl+set}" = set; then
1883 withval="$with_mgl"
1884 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1885 fi
1886
1887 # Check whether --with-microwin or --without-microwin was given.
1888 if test "${with_microwin+set}" = set; then
1889 withval="$with_microwin"
1890 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1891 fi
1892
1893 # Check whether --with-x11 or --without-x11 was given.
1894 if test "${with_x11+set}" = set; then
1895 withval="$with_x11"
1896 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1897 fi
1898
1899
1900 enablestring=
1901 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1902 echo "configure:1903: checking for --${enablestring:-enable}-nanox" >&5
1903 no_cache=0
1904 # Check whether --enable-nanox or --disable-nanox was given.
1905 if test "${enable_nanox+set}" = set; then
1906 enableval="$enable_nanox"
1907
1908 if test "$enableval" = yes; then
1909 ac_cv_use_nanox='wxUSE_NANOX=yes'
1910 else
1911 ac_cv_use_nanox='wxUSE_NANOX=no'
1912 fi
1913
1914 else
1915
1916 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1917 if test "x$LINE" != x ; then
1918 eval "DEFAULT_$LINE"
1919 else
1920 no_cache=1
1921 fi
1922
1923 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1924
1925 fi
1926
1927
1928 eval "$ac_cv_use_nanox"
1929 if test "$no_cache" != 1; then
1930 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1931 fi
1932
1933 if test "$wxUSE_NANOX" = yes; then
1934 echo "$ac_t""yes" 1>&6
1935 else
1936 echo "$ac_t""no" 1>&6
1937 fi
1938
1939
1940
1941 enablestring=
1942 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1943 echo "configure:1944: checking for --${enablestring:-enable}-gtk2" >&5
1944 no_cache=0
1945 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1946 if test "${enable_gtk2+set}" = set; then
1947 enableval="$enable_gtk2"
1948
1949 if test "$enableval" = yes; then
1950 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1951 else
1952 ac_cv_use_gtk2='wxUSE_GTK2=no'
1953 fi
1954
1955 else
1956
1957 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1958 if test "x$LINE" != x ; then
1959 eval "DEFAULT_$LINE"
1960 else
1961 no_cache=1
1962 fi
1963
1964 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1965
1966 fi
1967
1968
1969 eval "$ac_cv_use_gtk2"
1970 if test "$no_cache" != 1; then
1971 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1972 fi
1973
1974 if test "$wxUSE_GTK2" = yes; then
1975 echo "$ac_t""yes" 1>&6
1976 else
1977 echo "$ac_t""no" 1>&6
1978 fi
1979
1980
1981
1982 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1983 echo "configure:1984: checking for --with-libpng" >&5
1984 no_cache=0
1985 # Check whether --with-libpng or --without-libpng was given.
1986 if test "${with_libpng+set}" = set; then
1987 withval="$with_libpng"
1988
1989 if test "$withval" = yes; then
1990 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1991 elif test "$withval" = no; then
1992 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1993 elif test "$withval" = sys; then
1994 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1995 elif test "$withval" = builtin; then
1996 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1997 else
1998 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1999 fi
2000
2001 else
2002
2003 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2004 if test "x$LINE" != x ; then
2005 eval "DEFAULT_$LINE"
2006 else
2007 no_cache=1
2008 fi
2009
2010 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2011
2012 fi
2013
2014
2015 eval "$ac_cv_use_libpng"
2016 if test "$no_cache" != 1; then
2017 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2018 fi
2019
2020 if test "$wxUSE_LIBPNG" = yes; then
2021 echo "$ac_t""yes" 1>&6
2022 elif test "$wxUSE_LIBPNG" = no; then
2023 echo "$ac_t""no" 1>&6
2024 elif test "$wxUSE_LIBPNG" = sys; then
2025 echo "$ac_t""system version" 1>&6
2026 elif test "$wxUSE_LIBPNG" = builtin; then
2027 echo "$ac_t""builtin version" 1>&6
2028 else
2029 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2030 fi
2031
2032
2033 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2034 echo "configure:2035: checking for --with-libjpeg" >&5
2035 no_cache=0
2036 # Check whether --with-libjpeg or --without-libjpeg was given.
2037 if test "${with_libjpeg+set}" = set; then
2038 withval="$with_libjpeg"
2039
2040 if test "$withval" = yes; then
2041 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2042 elif test "$withval" = no; then
2043 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2044 elif test "$withval" = sys; then
2045 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2046 elif test "$withval" = builtin; then
2047 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2048 else
2049 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2050 fi
2051
2052 else
2053
2054 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2055 if test "x$LINE" != x ; then
2056 eval "DEFAULT_$LINE"
2057 else
2058 no_cache=1
2059 fi
2060
2061 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2062
2063 fi
2064
2065
2066 eval "$ac_cv_use_libjpeg"
2067 if test "$no_cache" != 1; then
2068 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2069 fi
2070
2071 if test "$wxUSE_LIBJPEG" = yes; then
2072 echo "$ac_t""yes" 1>&6
2073 elif test "$wxUSE_LIBJPEG" = no; then
2074 echo "$ac_t""no" 1>&6
2075 elif test "$wxUSE_LIBJPEG" = sys; then
2076 echo "$ac_t""system version" 1>&6
2077 elif test "$wxUSE_LIBJPEG" = builtin; then
2078 echo "$ac_t""builtin version" 1>&6
2079 else
2080 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2081 fi
2082
2083
2084 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2085 echo "configure:2086: checking for --with-libtiff" >&5
2086 no_cache=0
2087 # Check whether --with-libtiff or --without-libtiff was given.
2088 if test "${with_libtiff+set}" = set; then
2089 withval="$with_libtiff"
2090
2091 if test "$withval" = yes; then
2092 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2093 elif test "$withval" = no; then
2094 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2095 elif test "$withval" = sys; then
2096 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2097 elif test "$withval" = builtin; then
2098 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2099 else
2100 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2101 fi
2102
2103 else
2104
2105 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2106 if test "x$LINE" != x ; then
2107 eval "DEFAULT_$LINE"
2108 else
2109 no_cache=1
2110 fi
2111
2112 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2113
2114 fi
2115
2116
2117 eval "$ac_cv_use_libtiff"
2118 if test "$no_cache" != 1; then
2119 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2120 fi
2121
2122 if test "$wxUSE_LIBTIFF" = yes; then
2123 echo "$ac_t""yes" 1>&6
2124 elif test "$wxUSE_LIBTIFF" = no; then
2125 echo "$ac_t""no" 1>&6
2126 elif test "$wxUSE_LIBTIFF" = sys; then
2127 echo "$ac_t""system version" 1>&6
2128 elif test "$wxUSE_LIBTIFF" = builtin; then
2129 echo "$ac_t""builtin version" 1>&6
2130 else
2131 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2132 fi
2133
2134
2135 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2136 echo "configure:2137: checking for --with-opengl" >&5
2137 no_cache=0
2138 # Check whether --with-opengl or --without-opengl was given.
2139 if test "${with_opengl+set}" = set; then
2140 withval="$with_opengl"
2141
2142 if test "$withval" = yes; then
2143 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2144 else
2145 ac_cv_use_opengl='wxUSE_OPENGL=no'
2146 fi
2147
2148 else
2149
2150 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2151 if test "x$LINE" != x ; then
2152 eval "DEFAULT_$LINE"
2153 else
2154 no_cache=1
2155 fi
2156
2157 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2158
2159 fi
2160
2161
2162 eval "$ac_cv_use_opengl"
2163 if test "$no_cache" != 1; then
2164 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2165 fi
2166
2167 if test "$wxUSE_OPENGL" = yes; then
2168 echo "$ac_t""yes" 1>&6
2169 else
2170 echo "$ac_t""no" 1>&6
2171 fi
2172
2173
2174 fi
2175
2176
2177 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2178 echo "configure:2179: checking for --with-dmalloc" >&5
2179 no_cache=0
2180 # Check whether --with-dmalloc or --without-dmalloc was given.
2181 if test "${with_dmalloc+set}" = set; then
2182 withval="$with_dmalloc"
2183
2184 if test "$withval" = yes; then
2185 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2186 else
2187 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2188 fi
2189
2190 else
2191
2192 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2193 if test "x$LINE" != x ; then
2194 eval "DEFAULT_$LINE"
2195 else
2196 no_cache=1
2197 fi
2198
2199 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2200
2201 fi
2202
2203
2204 eval "$ac_cv_use_dmalloc"
2205 if test "$no_cache" != 1; then
2206 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2207 fi
2208
2209 if test "$wxUSE_DMALLOC" = yes; then
2210 echo "$ac_t""yes" 1>&6
2211 else
2212 echo "$ac_t""no" 1>&6
2213 fi
2214
2215
2216 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2217 echo "configure:2218: checking for --with-regex" >&5
2218 no_cache=0
2219 # Check whether --with-regex or --without-regex was given.
2220 if test "${with_regex+set}" = set; then
2221 withval="$with_regex"
2222
2223 if test "$withval" = yes; then
2224 ac_cv_use_regex='wxUSE_REGEX=yes'
2225 elif test "$withval" = no; then
2226 ac_cv_use_regex='wxUSE_REGEX=no'
2227 elif test "$withval" = sys; then
2228 ac_cv_use_regex='wxUSE_REGEX=sys'
2229 elif test "$withval" = builtin; then
2230 ac_cv_use_regex='wxUSE_REGEX=builtin'
2231 else
2232 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2233 fi
2234
2235 else
2236
2237 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2238 if test "x$LINE" != x ; then
2239 eval "DEFAULT_$LINE"
2240 else
2241 no_cache=1
2242 fi
2243
2244 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2245
2246 fi
2247
2248
2249 eval "$ac_cv_use_regex"
2250 if test "$no_cache" != 1; then
2251 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2252 fi
2253
2254 if test "$wxUSE_REGEX" = yes; then
2255 echo "$ac_t""yes" 1>&6
2256 elif test "$wxUSE_REGEX" = no; then
2257 echo "$ac_t""no" 1>&6
2258 elif test "$wxUSE_REGEX" = sys; then
2259 echo "$ac_t""system version" 1>&6
2260 elif test "$wxUSE_REGEX" = builtin; then
2261 echo "$ac_t""builtin version" 1>&6
2262 else
2263 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2264 fi
2265
2266
2267 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2268 echo "configure:2269: checking for --with-zlib" >&5
2269 no_cache=0
2270 # Check whether --with-zlib or --without-zlib was given.
2271 if test "${with_zlib+set}" = set; then
2272 withval="$with_zlib"
2273
2274 if test "$withval" = yes; then
2275 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2276 elif test "$withval" = no; then
2277 ac_cv_use_zlib='wxUSE_ZLIB=no'
2278 elif test "$withval" = sys; then
2279 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2280 elif test "$withval" = builtin; then
2281 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2282 else
2283 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2284 fi
2285
2286 else
2287
2288 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2289 if test "x$LINE" != x ; then
2290 eval "DEFAULT_$LINE"
2291 else
2292 no_cache=1
2293 fi
2294
2295 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2296
2297 fi
2298
2299
2300 eval "$ac_cv_use_zlib"
2301 if test "$no_cache" != 1; then
2302 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2303 fi
2304
2305 if test "$wxUSE_ZLIB" = yes; then
2306 echo "$ac_t""yes" 1>&6
2307 elif test "$wxUSE_ZLIB" = no; then
2308 echo "$ac_t""no" 1>&6
2309 elif test "$wxUSE_ZLIB" = sys; then
2310 echo "$ac_t""system version" 1>&6
2311 elif test "$wxUSE_ZLIB" = builtin; then
2312 echo "$ac_t""builtin version" 1>&6
2313 else
2314 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2315 fi
2316
2317
2318 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2319 echo "configure:2320: checking for --with-odbc" >&5
2320 no_cache=0
2321 # Check whether --with-odbc or --without-odbc was given.
2322 if test "${with_odbc+set}" = set; then
2323 withval="$with_odbc"
2324
2325 if test "$withval" = yes; then
2326 ac_cv_use_odbc='wxUSE_ODBC=yes'
2327 else
2328 ac_cv_use_odbc='wxUSE_ODBC=no'
2329 fi
2330
2331 else
2332
2333 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2334 if test "x$LINE" != x ; then
2335 eval "DEFAULT_$LINE"
2336 else
2337 no_cache=1
2338 fi
2339
2340 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2341
2342 fi
2343
2344
2345 eval "$ac_cv_use_odbc"
2346 if test "$no_cache" != 1; then
2347 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2348 fi
2349
2350 if test "$wxUSE_ODBC" = yes; then
2351 echo "$ac_t""yes" 1>&6
2352 else
2353 echo "$ac_t""no" 1>&6
2354 fi
2355
2356
2357
2358
2359 enablestring=
2360 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2361 echo "configure:2362: checking for --${enablestring:-enable}-shared" >&5
2362 no_cache=0
2363 # Check whether --enable-shared or --disable-shared was given.
2364 if test "${enable_shared+set}" = set; then
2365 enableval="$enable_shared"
2366
2367 if test "$enableval" = yes; then
2368 ac_cv_use_shared='wxUSE_SHARED=yes'
2369 else
2370 ac_cv_use_shared='wxUSE_SHARED=no'
2371 fi
2372
2373 else
2374
2375 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2376 if test "x$LINE" != x ; then
2377 eval "DEFAULT_$LINE"
2378 else
2379 no_cache=1
2380 fi
2381
2382 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2383
2384 fi
2385
2386
2387 eval "$ac_cv_use_shared"
2388 if test "$no_cache" != 1; then
2389 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2390 fi
2391
2392 if test "$wxUSE_SHARED" = yes; then
2393 echo "$ac_t""yes" 1>&6
2394 else
2395 echo "$ac_t""no" 1>&6
2396 fi
2397
2398
2399 enablestring=
2400 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2401 echo "configure:2402: checking for --${enablestring:-enable}-soname" >&5
2402 no_cache=0
2403 # Check whether --enable-soname or --disable-soname was given.
2404 if test "${enable_soname+set}" = set; then
2405 enableval="$enable_soname"
2406
2407 if test "$enableval" = yes; then
2408 ac_cv_use_soname='wxUSE_SONAME=yes'
2409 else
2410 ac_cv_use_soname='wxUSE_SONAME=no'
2411 fi
2412
2413 else
2414
2415 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2416 if test "x$LINE" != x ; then
2417 eval "DEFAULT_$LINE"
2418 else
2419 no_cache=1
2420 fi
2421
2422 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2423
2424 fi
2425
2426
2427 eval "$ac_cv_use_soname"
2428 if test "$no_cache" != 1; then
2429 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2430 fi
2431
2432 if test "$wxUSE_SONAME" = yes; then
2433 echo "$ac_t""yes" 1>&6
2434 else
2435 echo "$ac_t""no" 1>&6
2436 fi
2437
2438
2439 enablestring=
2440 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2441 echo "configure:2442: checking for --${enablestring:-enable}-optimise" >&5
2442 no_cache=0
2443 # Check whether --enable-optimise or --disable-optimise was given.
2444 if test "${enable_optimise+set}" = set; then
2445 enableval="$enable_optimise"
2446
2447 if test "$enableval" = yes; then
2448 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2449 else
2450 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2451 fi
2452
2453 else
2454
2455 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2456 if test "x$LINE" != x ; then
2457 eval "DEFAULT_$LINE"
2458 else
2459 no_cache=1
2460 fi
2461
2462 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2463
2464 fi
2465
2466
2467 eval "$ac_cv_use_optimise"
2468 if test "$no_cache" != 1; then
2469 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2470 fi
2471
2472 if test "$wxUSE_OPTIMISE" = yes; then
2473 echo "$ac_t""yes" 1>&6
2474 else
2475 echo "$ac_t""no" 1>&6
2476 fi
2477
2478
2479 enablestring=
2480 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2481 echo "configure:2482: checking for --${enablestring:-enable}-debug" >&5
2482 no_cache=0
2483 # Check whether --enable-debug or --disable-debug was given.
2484 if test "${enable_debug+set}" = set; then
2485 enableval="$enable_debug"
2486
2487 if test "$enableval" = yes; then
2488 ac_cv_use_debug='wxUSE_DEBUG=yes'
2489 else
2490 ac_cv_use_debug='wxUSE_DEBUG=no'
2491 fi
2492
2493 else
2494
2495 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2496 if test "x$LINE" != x ; then
2497 eval "DEFAULT_$LINE"
2498 else
2499 no_cache=1
2500 fi
2501
2502 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2503
2504 fi
2505
2506
2507 eval "$ac_cv_use_debug"
2508 if test "$no_cache" != 1; then
2509 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2510 fi
2511
2512 if test "$wxUSE_DEBUG" = yes; then
2513 echo "$ac_t""yes" 1>&6
2514 else
2515 echo "$ac_t""no" 1>&6
2516 fi
2517
2518
2519
2520 enablestring=
2521 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2522 echo "configure:2523: checking for --${enablestring:-enable}-precomp" >&5
2523 no_cache=0
2524 # Check whether --enable-precomp or --disable-precomp was given.
2525 if test "${enable_precomp+set}" = set; then
2526 enableval="$enable_precomp"
2527
2528 if test "$enableval" = yes; then
2529 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2530 else
2531 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2532 fi
2533
2534 else
2535
2536 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2537 if test "x$LINE" != x ; then
2538 eval "DEFAULT_$LINE"
2539 else
2540 no_cache=1
2541 fi
2542
2543 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2544
2545 fi
2546
2547
2548 eval "$ac_cv_use_precomp"
2549 if test "$no_cache" != 1; then
2550 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2551 fi
2552
2553 if test "$wxUSE_PRECOMP" = yes; then
2554 echo "$ac_t""yes" 1>&6
2555 else
2556 echo "$ac_t""no" 1>&6
2557 fi
2558
2559
2560 if test "$wxUSE_DEBUG" = "yes"; then
2561 DEFAULT_wxUSE_DEBUG_FLAG=yes
2562 DEFAULT_wxUSE_DEBUG_INFO=yes
2563 elif test "$wxUSE_DEBUG" = "no"; then
2564 DEFAULT_wxUSE_DEBUG_FLAG=no
2565 DEFAULT_wxUSE_DEBUG_INFO=no
2566 fi
2567
2568
2569 enablestring=
2570 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2571 echo "configure:2572: checking for --${enablestring:-enable}-debug_flag" >&5
2572 no_cache=0
2573 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2574 if test "${enable_debug_flag+set}" = set; then
2575 enableval="$enable_debug_flag"
2576
2577 if test "$enableval" = yes; then
2578 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2579 else
2580 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2581 fi
2582
2583 else
2584
2585 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2586 if test "x$LINE" != x ; then
2587 eval "DEFAULT_$LINE"
2588 else
2589 no_cache=1
2590 fi
2591
2592 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2593
2594 fi
2595
2596
2597 eval "$ac_cv_use_debug_flag"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxUSE_DEBUG_FLAG" = yes; then
2603 echo "$ac_t""yes" 1>&6
2604 else
2605 echo "$ac_t""no" 1>&6
2606 fi
2607
2608
2609 enablestring=
2610 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2611 echo "configure:2612: checking for --${enablestring:-enable}-debug_info" >&5
2612 no_cache=0
2613 # Check whether --enable-debug_info or --disable-debug_info was given.
2614 if test "${enable_debug_info+set}" = set; then
2615 enableval="$enable_debug_info"
2616
2617 if test "$enableval" = yes; then
2618 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2619 else
2620 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2621 fi
2622
2623 else
2624
2625 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2626 if test "x$LINE" != x ; then
2627 eval "DEFAULT_$LINE"
2628 else
2629 no_cache=1
2630 fi
2631
2632 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2633
2634 fi
2635
2636
2637 eval "$ac_cv_use_debug_info"
2638 if test "$no_cache" != 1; then
2639 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2640 fi
2641
2642 if test "$wxUSE_DEBUG_INFO" = yes; then
2643 echo "$ac_t""yes" 1>&6
2644 else
2645 echo "$ac_t""no" 1>&6
2646 fi
2647
2648
2649 enablestring=
2650 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2651 echo "configure:2652: checking for --${enablestring:-enable}-debug_gdb" >&5
2652 no_cache=0
2653 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2654 if test "${enable_debug_gdb+set}" = set; then
2655 enableval="$enable_debug_gdb"
2656
2657 if test "$enableval" = yes; then
2658 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2659 else
2660 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2661 fi
2662
2663 else
2664
2665 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2666 if test "x$LINE" != x ; then
2667 eval "DEFAULT_$LINE"
2668 else
2669 no_cache=1
2670 fi
2671
2672 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2673
2674 fi
2675
2676
2677 eval "$ac_cv_use_debug_gdb"
2678 if test "$no_cache" != 1; then
2679 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2680 fi
2681
2682 if test "$wxUSE_DEBUG_GDB" = yes; then
2683 echo "$ac_t""yes" 1>&6
2684 else
2685 echo "$ac_t""no" 1>&6
2686 fi
2687
2688
2689 enablestring=
2690 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2691 echo "configure:2692: checking for --${enablestring:-enable}-debug_cntxt" >&5
2692 no_cache=0
2693 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2694 if test "${enable_debug_cntxt+set}" = set; then
2695 enableval="$enable_debug_cntxt"
2696
2697 if test "$enableval" = yes; then
2698 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2699 else
2700 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2701 fi
2702
2703 else
2704
2705 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2706 if test "x$LINE" != x ; then
2707 eval "DEFAULT_$LINE"
2708 else
2709 no_cache=1
2710 fi
2711
2712 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2713
2714 fi
2715
2716
2717 eval "$ac_cv_use_debug_cntxt"
2718 if test "$no_cache" != 1; then
2719 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2720 fi
2721
2722 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2723 echo "$ac_t""yes" 1>&6
2724 else
2725 echo "$ac_t""no" 1>&6
2726 fi
2727
2728
2729 enablestring=
2730 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2731 echo "configure:2732: checking for --${enablestring:-enable}-mem_tracing" >&5
2732 no_cache=0
2733 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2734 if test "${enable_mem_tracing+set}" = set; then
2735 enableval="$enable_mem_tracing"
2736
2737 if test "$enableval" = yes; then
2738 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2739 else
2740 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2741 fi
2742
2743 else
2744
2745 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2746 if test "x$LINE" != x ; then
2747 eval "DEFAULT_$LINE"
2748 else
2749 no_cache=1
2750 fi
2751
2752 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2753
2754 fi
2755
2756
2757 eval "$ac_cv_use_mem_tracing"
2758 if test "$no_cache" != 1; then
2759 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2760 fi
2761
2762 if test "$wxUSE_MEM_TRACING" = yes; then
2763 echo "$ac_t""yes" 1>&6
2764 else
2765 echo "$ac_t""no" 1>&6
2766 fi
2767
2768
2769 enablestring=
2770 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2771 echo "configure:2772: checking for --${enablestring:-enable}-profile" >&5
2772 no_cache=0
2773 # Check whether --enable-profile or --disable-profile was given.
2774 if test "${enable_profile+set}" = set; then
2775 enableval="$enable_profile"
2776
2777 if test "$enableval" = yes; then
2778 ac_cv_use_profile='wxUSE_PROFILE=yes'
2779 else
2780 ac_cv_use_profile='wxUSE_PROFILE=no'
2781 fi
2782
2783 else
2784
2785 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2786 if test "x$LINE" != x ; then
2787 eval "DEFAULT_$LINE"
2788 else
2789 no_cache=1
2790 fi
2791
2792 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2793
2794 fi
2795
2796
2797 eval "$ac_cv_use_profile"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_PROFILE" = yes; then
2803 echo "$ac_t""yes" 1>&6
2804 else
2805 echo "$ac_t""no" 1>&6
2806 fi
2807
2808
2809 enablestring=
2810 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2811 echo "configure:2812: checking for --${enablestring:-enable}-no_rtti" >&5
2812 no_cache=0
2813 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2814 if test "${enable_no_rtti+set}" = set; then
2815 enableval="$enable_no_rtti"
2816
2817 if test "$enableval" = yes; then
2818 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2819 else
2820 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2821 fi
2822
2823 else
2824
2825 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2826 if test "x$LINE" != x ; then
2827 eval "DEFAULT_$LINE"
2828 else
2829 no_cache=1
2830 fi
2831
2832 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2833
2834 fi
2835
2836
2837 eval "$ac_cv_use_no_rtti"
2838 if test "$no_cache" != 1; then
2839 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2840 fi
2841
2842 if test "$wxUSE_NO_RTTI" = yes; then
2843 echo "$ac_t""yes" 1>&6
2844 else
2845 echo "$ac_t""no" 1>&6
2846 fi
2847
2848
2849 enablestring=
2850 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2851 echo "configure:2852: checking for --${enablestring:-enable}-no_exceptions" >&5
2852 no_cache=0
2853 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2854 if test "${enable_no_exceptions+set}" = set; then
2855 enableval="$enable_no_exceptions"
2856
2857 if test "$enableval" = yes; then
2858 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2859 else
2860 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2861 fi
2862
2863 else
2864
2865 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2866 if test "x$LINE" != x ; then
2867 eval "DEFAULT_$LINE"
2868 else
2869 no_cache=1
2870 fi
2871
2872 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2873
2874 fi
2875
2876
2877 eval "$ac_cv_use_no_exceptions"
2878 if test "$no_cache" != 1; then
2879 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2880 fi
2881
2882 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2883 echo "$ac_t""yes" 1>&6
2884 else
2885 echo "$ac_t""no" 1>&6
2886 fi
2887
2888
2889 enablestring=
2890 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2891 echo "configure:2892: checking for --${enablestring:-enable}-permissive" >&5
2892 no_cache=0
2893 # Check whether --enable-permissive or --disable-permissive was given.
2894 if test "${enable_permissive+set}" = set; then
2895 enableval="$enable_permissive"
2896
2897 if test "$enableval" = yes; then
2898 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2899 else
2900 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2901 fi
2902
2903 else
2904
2905 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2906 if test "x$LINE" != x ; then
2907 eval "DEFAULT_$LINE"
2908 else
2909 no_cache=1
2910 fi
2911
2912 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2913
2914 fi
2915
2916
2917 eval "$ac_cv_use_permissive"
2918 if test "$no_cache" != 1; then
2919 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2920 fi
2921
2922 if test "$wxUSE_PERMISSIVE" = yes; then
2923 echo "$ac_t""yes" 1>&6
2924 else
2925 echo "$ac_t""no" 1>&6
2926 fi
2927
2928
2929 enablestring=
2930 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2931 echo "configure:2932: checking for --${enablestring:-enable}-no_deps" >&5
2932 no_cache=0
2933 # Check whether --enable-no_deps or --disable-no_deps was given.
2934 if test "${enable_no_deps+set}" = set; then
2935 enableval="$enable_no_deps"
2936
2937 if test "$enableval" = yes; then
2938 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2939 else
2940 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2941 fi
2942
2943 else
2944
2945 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2946 if test "x$LINE" != x ; then
2947 eval "DEFAULT_$LINE"
2948 else
2949 no_cache=1
2950 fi
2951
2952 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2953
2954 fi
2955
2956
2957 eval "$ac_cv_use_no_deps"
2958 if test "$no_cache" != 1; then
2959 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2960 fi
2961
2962 if test "$wxUSE_NO_DEPS" = yes; then
2963 echo "$ac_t""yes" 1>&6
2964 else
2965 echo "$ac_t""no" 1>&6
2966 fi
2967
2968
2969
2970 enablestring=
2971 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2972 echo "configure:2973: checking for --${enablestring:-enable}-compat20" >&5
2973 no_cache=0
2974 # Check whether --enable-compat20 or --disable-compat20 was given.
2975 if test "${enable_compat20+set}" = set; then
2976 enableval="$enable_compat20"
2977
2978 if test "$enableval" = yes; then
2979 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2980 else
2981 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2982 fi
2983
2984 else
2985
2986 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2994
2995 fi
2996
2997
2998 eval "$ac_cv_use_compat20"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3004 echo "$ac_t""yes" 1>&6
3005 else
3006 echo "$ac_t""no" 1>&6
3007 fi
3008
3009
3010 enablestring=
3011 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3012 echo "configure:3013: checking for --${enablestring:-enable}-compat22" >&5
3013 no_cache=0
3014 # Check whether --enable-compat22 or --disable-compat22 was given.
3015 if test "${enable_compat22+set}" = set; then
3016 enableval="$enable_compat22"
3017
3018 if test "$enableval" = yes; then
3019 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3020 else
3021 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3022 fi
3023
3024 else
3025
3026 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3027 if test "x$LINE" != x ; then
3028 eval "DEFAULT_$LINE"
3029 else
3030 no_cache=1
3031 fi
3032
3033 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3034
3035 fi
3036
3037
3038 eval "$ac_cv_use_compat22"
3039 if test "$no_cache" != 1; then
3040 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3041 fi
3042
3043 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3044 echo "$ac_t""yes" 1>&6
3045 else
3046 echo "$ac_t""no" 1>&6
3047 fi
3048
3049
3050 enablestring=disable
3051 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3052 echo "configure:3053: checking for --${enablestring:-enable}-compat24" >&5
3053 no_cache=0
3054 # Check whether --enable-compat24 or --disable-compat24 was given.
3055 if test "${enable_compat24+set}" = set; then
3056 enableval="$enable_compat24"
3057
3058 if test "$enableval" = yes; then
3059 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3060 else
3061 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3062 fi
3063
3064 else
3065
3066 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3067 if test "x$LINE" != x ; then
3068 eval "DEFAULT_$LINE"
3069 else
3070 no_cache=1
3071 fi
3072
3073 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3074
3075 fi
3076
3077
3078 eval "$ac_cv_use_compat24"
3079 if test "$no_cache" != 1; then
3080 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3081 fi
3082
3083 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3084 echo "$ac_t""yes" 1>&6
3085 else
3086 echo "$ac_t""no" 1>&6
3087 fi
3088
3089
3090 # Check whether --enable-rpath or --disable-rpath was given.
3091 if test "${enable_rpath+set}" = set; then
3092 enableval="$enable_rpath"
3093 wxRPATH_DIR="$enableval"
3094 fi
3095
3096
3097 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3098 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3099 fi
3100
3101
3102
3103
3104 enablestring=
3105 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3106 echo "configure:3107: checking for --${enablestring:-enable}-intl" >&5
3107 no_cache=0
3108 # Check whether --enable-intl or --disable-intl was given.
3109 if test "${enable_intl+set}" = set; then
3110 enableval="$enable_intl"
3111
3112 if test "$enableval" = yes; then
3113 ac_cv_use_intl='wxUSE_INTL=yes'
3114 else
3115 ac_cv_use_intl='wxUSE_INTL=no'
3116 fi
3117
3118 else
3119
3120 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3121 if test "x$LINE" != x ; then
3122 eval "DEFAULT_$LINE"
3123 else
3124 no_cache=1
3125 fi
3126
3127 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3128
3129 fi
3130
3131
3132 eval "$ac_cv_use_intl"
3133 if test "$no_cache" != 1; then
3134 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3135 fi
3136
3137 if test "$wxUSE_INTL" = yes; then
3138 echo "$ac_t""yes" 1>&6
3139 else
3140 echo "$ac_t""no" 1>&6
3141 fi
3142
3143
3144 enablestring=
3145 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3146 echo "configure:3147: checking for --${enablestring:-enable}-config" >&5
3147 no_cache=0
3148 # Check whether --enable-config or --disable-config was given.
3149 if test "${enable_config+set}" = set; then
3150 enableval="$enable_config"
3151
3152 if test "$enableval" = yes; then
3153 ac_cv_use_config='wxUSE_CONFIG=yes'
3154 else
3155 ac_cv_use_config='wxUSE_CONFIG=no'
3156 fi
3157
3158 else
3159
3160 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3161 if test "x$LINE" != x ; then
3162 eval "DEFAULT_$LINE"
3163 else
3164 no_cache=1
3165 fi
3166
3167 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3168
3169 fi
3170
3171
3172 eval "$ac_cv_use_config"
3173 if test "$no_cache" != 1; then
3174 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3175 fi
3176
3177 if test "$wxUSE_CONFIG" = yes; then
3178 echo "$ac_t""yes" 1>&6
3179 else
3180 echo "$ac_t""no" 1>&6
3181 fi
3182
3183
3184
3185 enablestring=
3186 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3187 echo "configure:3188: checking for --${enablestring:-enable}-protocols" >&5
3188 no_cache=0
3189 # Check whether --enable-protocols or --disable-protocols was given.
3190 if test "${enable_protocols+set}" = set; then
3191 enableval="$enable_protocols"
3192
3193 if test "$enableval" = yes; then
3194 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3195 else
3196 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3197 fi
3198
3199 else
3200
3201 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3202 if test "x$LINE" != x ; then
3203 eval "DEFAULT_$LINE"
3204 else
3205 no_cache=1
3206 fi
3207
3208 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3209
3210 fi
3211
3212
3213 eval "$ac_cv_use_protocols"
3214 if test "$no_cache" != 1; then
3215 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3216 fi
3217
3218 if test "$wxUSE_PROTOCOL" = yes; then
3219 echo "$ac_t""yes" 1>&6
3220 else
3221 echo "$ac_t""no" 1>&6
3222 fi
3223
3224
3225 enablestring=
3226 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3227 echo "configure:3228: checking for --${enablestring:-enable}-ftp" >&5
3228 no_cache=0
3229 # Check whether --enable-ftp or --disable-ftp was given.
3230 if test "${enable_ftp+set}" = set; then
3231 enableval="$enable_ftp"
3232
3233 if test "$enableval" = yes; then
3234 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3235 else
3236 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3237 fi
3238
3239 else
3240
3241 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3242 if test "x$LINE" != x ; then
3243 eval "DEFAULT_$LINE"
3244 else
3245 no_cache=1
3246 fi
3247
3248 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3249
3250 fi
3251
3252
3253 eval "$ac_cv_use_ftp"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3259 echo "$ac_t""yes" 1>&6
3260 else
3261 echo "$ac_t""no" 1>&6
3262 fi
3263
3264
3265 enablestring=
3266 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3267 echo "configure:3268: checking for --${enablestring:-enable}-http" >&5
3268 no_cache=0
3269 # Check whether --enable-http or --disable-http was given.
3270 if test "${enable_http+set}" = set; then
3271 enableval="$enable_http"
3272
3273 if test "$enableval" = yes; then
3274 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3275 else
3276 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3277 fi
3278
3279 else
3280
3281 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3282 if test "x$LINE" != x ; then
3283 eval "DEFAULT_$LINE"
3284 else
3285 no_cache=1
3286 fi
3287
3288 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3289
3290 fi
3291
3292
3293 eval "$ac_cv_use_http"
3294 if test "$no_cache" != 1; then
3295 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3296 fi
3297
3298 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3299 echo "$ac_t""yes" 1>&6
3300 else
3301 echo "$ac_t""no" 1>&6
3302 fi
3303
3304
3305 enablestring=
3306 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3307 echo "configure:3308: checking for --${enablestring:-enable}-fileproto" >&5
3308 no_cache=0
3309 # Check whether --enable-fileproto or --disable-fileproto was given.
3310 if test "${enable_fileproto+set}" = set; then
3311 enableval="$enable_fileproto"
3312
3313 if test "$enableval" = yes; then
3314 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3315 else
3316 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3317 fi
3318
3319 else
3320
3321 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3322 if test "x$LINE" != x ; then
3323 eval "DEFAULT_$LINE"
3324 else
3325 no_cache=1
3326 fi
3327
3328 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3329
3330 fi
3331
3332
3333 eval "$ac_cv_use_fileproto"
3334 if test "$no_cache" != 1; then
3335 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3336 fi
3337
3338 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3339 echo "$ac_t""yes" 1>&6
3340 else
3341 echo "$ac_t""no" 1>&6
3342 fi
3343
3344
3345 enablestring=
3346 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3347 echo "configure:3348: checking for --${enablestring:-enable}-sockets" >&5
3348 no_cache=0
3349 # Check whether --enable-sockets or --disable-sockets was given.
3350 if test "${enable_sockets+set}" = set; then
3351 enableval="$enable_sockets"
3352
3353 if test "$enableval" = yes; then
3354 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3355 else
3356 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3357 fi
3358
3359 else
3360
3361 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3362 if test "x$LINE" != x ; then
3363 eval "DEFAULT_$LINE"
3364 else
3365 no_cache=1
3366 fi
3367
3368 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3369
3370 fi
3371
3372
3373 eval "$ac_cv_use_sockets"
3374 if test "$no_cache" != 1; then
3375 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3376 fi
3377
3378 if test "$wxUSE_SOCKETS" = yes; then
3379 echo "$ac_t""yes" 1>&6
3380 else
3381 echo "$ac_t""no" 1>&6
3382 fi
3383
3384
3385 enablestring=
3386 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3387 echo "configure:3388: checking for --${enablestring:-enable}-ole" >&5
3388 no_cache=0
3389 # Check whether --enable-ole or --disable-ole was given.
3390 if test "${enable_ole+set}" = set; then
3391 enableval="$enable_ole"
3392
3393 if test "$enableval" = yes; then
3394 ac_cv_use_ole='wxUSE_OLE=yes'
3395 else
3396 ac_cv_use_ole='wxUSE_OLE=no'
3397 fi
3398
3399 else
3400
3401 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3402 if test "x$LINE" != x ; then
3403 eval "DEFAULT_$LINE"
3404 else
3405 no_cache=1
3406 fi
3407
3408 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3409
3410 fi
3411
3412
3413 eval "$ac_cv_use_ole"
3414 if test "$no_cache" != 1; then
3415 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3416 fi
3417
3418 if test "$wxUSE_OLE" = yes; then
3419 echo "$ac_t""yes" 1>&6
3420 else
3421 echo "$ac_t""no" 1>&6
3422 fi
3423
3424
3425 enablestring=
3426 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3427 echo "configure:3428: checking for --${enablestring:-enable}-dataobj" >&5
3428 no_cache=0
3429 # Check whether --enable-dataobj or --disable-dataobj was given.
3430 if test "${enable_dataobj+set}" = set; then
3431 enableval="$enable_dataobj"
3432
3433 if test "$enableval" = yes; then
3434 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3435 else
3436 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3437 fi
3438
3439 else
3440
3441 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3442 if test "x$LINE" != x ; then
3443 eval "DEFAULT_$LINE"
3444 else
3445 no_cache=1
3446 fi
3447
3448 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3449
3450 fi
3451
3452
3453 eval "$ac_cv_use_dataobj"
3454 if test "$no_cache" != 1; then
3455 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3456 fi
3457
3458 if test "$wxUSE_DATAOBJ" = yes; then
3459 echo "$ac_t""yes" 1>&6
3460 else
3461 echo "$ac_t""no" 1>&6
3462 fi
3463
3464
3465
3466 enablestring=
3467 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3468 echo "configure:3469: checking for --${enablestring:-enable}-ipc" >&5
3469 no_cache=0
3470 # Check whether --enable-ipc or --disable-ipc was given.
3471 if test "${enable_ipc+set}" = set; then
3472 enableval="$enable_ipc"
3473
3474 if test "$enableval" = yes; then
3475 ac_cv_use_ipc='wxUSE_IPC=yes'
3476 else
3477 ac_cv_use_ipc='wxUSE_IPC=no'
3478 fi
3479
3480 else
3481
3482 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3483 if test "x$LINE" != x ; then
3484 eval "DEFAULT_$LINE"
3485 else
3486 no_cache=1
3487 fi
3488
3489 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3490
3491 fi
3492
3493
3494 eval "$ac_cv_use_ipc"
3495 if test "$no_cache" != 1; then
3496 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3497 fi
3498
3499 if test "$wxUSE_IPC" = yes; then
3500 echo "$ac_t""yes" 1>&6
3501 else
3502 echo "$ac_t""no" 1>&6
3503 fi
3504
3505
3506
3507 enablestring=
3508 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3509 echo "configure:3510: checking for --${enablestring:-enable}-cmdline" >&5
3510 no_cache=0
3511 # Check whether --enable-cmdline or --disable-cmdline was given.
3512 if test "${enable_cmdline+set}" = set; then
3513 enableval="$enable_cmdline"
3514
3515 if test "$enableval" = yes; then
3516 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3517 else
3518 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3519 fi
3520
3521 else
3522
3523 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3524 if test "x$LINE" != x ; then
3525 eval "DEFAULT_$LINE"
3526 else
3527 no_cache=1
3528 fi
3529
3530 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3531
3532 fi
3533
3534
3535 eval "$ac_cv_use_cmdline"
3536 if test "$no_cache" != 1; then
3537 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3538 fi
3539
3540 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3541 echo "$ac_t""yes" 1>&6
3542 else
3543 echo "$ac_t""no" 1>&6
3544 fi
3545
3546
3547 enablestring=
3548 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3549 echo "configure:3550: checking for --${enablestring:-enable}-datetime" >&5
3550 no_cache=0
3551 # Check whether --enable-datetime or --disable-datetime was given.
3552 if test "${enable_datetime+set}" = set; then
3553 enableval="$enable_datetime"
3554
3555 if test "$enableval" = yes; then
3556 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3557 else
3558 ac_cv_use_datetime='wxUSE_DATETIME=no'
3559 fi
3560
3561 else
3562
3563 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3571
3572 fi
3573
3574
3575 eval "$ac_cv_use_datetime"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_DATETIME" = yes; then
3581 echo "$ac_t""yes" 1>&6
3582 else
3583 echo "$ac_t""no" 1>&6
3584 fi
3585
3586
3587 enablestring=
3588 echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6
3589 echo "configure:3590: checking for --${enablestring:-enable}-timedate" >&5
3590 no_cache=0
3591 # Check whether --enable-timedate or --disable-timedate was given.
3592 if test "${enable_timedate+set}" = set; then
3593 enableval="$enable_timedate"
3594
3595 if test "$enableval" = yes; then
3596 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3597 else
3598 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3599 fi
3600
3601 else
3602
3603 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3604 if test "x$LINE" != x ; then
3605 eval "DEFAULT_$LINE"
3606 else
3607 no_cache=1
3608 fi
3609
3610 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3611
3612 fi
3613
3614
3615 eval "$ac_cv_use_timedate"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_TIMEDATE" = yes; then
3621 echo "$ac_t""yes" 1>&6
3622 else
3623 echo "$ac_t""no" 1>&6
3624 fi
3625
3626
3627 enablestring=
3628 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3629 echo "configure:3630: checking for --${enablestring:-enable}-stopwatch" >&5
3630 no_cache=0
3631 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3632 if test "${enable_stopwatch+set}" = set; then
3633 enableval="$enable_stopwatch"
3634
3635 if test "$enableval" = yes; then
3636 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3637 else
3638 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3639 fi
3640
3641 else
3642
3643 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3651
3652 fi
3653
3654
3655 eval "$ac_cv_use_stopwatch"
3656 if test "$no_cache" != 1; then
3657 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3658 fi
3659
3660 if test "$wxUSE_STOPWATCH" = yes; then
3661 echo "$ac_t""yes" 1>&6
3662 else
3663 echo "$ac_t""no" 1>&6
3664 fi
3665
3666
3667 enablestring=
3668 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3669 echo "configure:3670: checking for --${enablestring:-enable}-dialupman" >&5
3670 no_cache=0
3671 # Check whether --enable-dialupman or --disable-dialupman was given.
3672 if test "${enable_dialupman+set}" = set; then
3673 enableval="$enable_dialupman"
3674
3675 if test "$enableval" = yes; then
3676 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3677 else
3678 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3679 fi
3680
3681 else
3682
3683 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3691
3692 fi
3693
3694
3695 eval "$ac_cv_use_dialupman"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3701 echo "$ac_t""yes" 1>&6
3702 else
3703 echo "$ac_t""no" 1>&6
3704 fi
3705
3706
3707 enablestring=
3708 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3709 echo "configure:3710: checking for --${enablestring:-enable}-apple_ieee" >&5
3710 no_cache=0
3711 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3712 if test "${enable_apple_ieee+set}" = set; then
3713 enableval="$enable_apple_ieee"
3714
3715 if test "$enableval" = yes; then
3716 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3717 else
3718 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3719 fi
3720
3721 else
3722
3723 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3724 if test "x$LINE" != x ; then
3725 eval "DEFAULT_$LINE"
3726 else
3727 no_cache=1
3728 fi
3729
3730 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3731
3732 fi
3733
3734
3735 eval "$ac_cv_use_apple_ieee"
3736 if test "$no_cache" != 1; then
3737 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3738 fi
3739
3740 if test "$wxUSE_APPLE_IEEE" = yes; then
3741 echo "$ac_t""yes" 1>&6
3742 else
3743 echo "$ac_t""no" 1>&6
3744 fi
3745
3746
3747 enablestring=
3748 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3749 echo "configure:3750: checking for --${enablestring:-enable}-timer" >&5
3750 no_cache=0
3751 # Check whether --enable-timer or --disable-timer was given.
3752 if test "${enable_timer+set}" = set; then
3753 enableval="$enable_timer"
3754
3755 if test "$enableval" = yes; then
3756 ac_cv_use_timer='wxUSE_TIMER=yes'
3757 else
3758 ac_cv_use_timer='wxUSE_TIMER=no'
3759 fi
3760
3761 else
3762
3763 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3764 if test "x$LINE" != x ; then
3765 eval "DEFAULT_$LINE"
3766 else
3767 no_cache=1
3768 fi
3769
3770 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3771
3772 fi
3773
3774
3775 eval "$ac_cv_use_timer"
3776 if test "$no_cache" != 1; then
3777 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3778 fi
3779
3780 if test "$wxUSE_TIMER" = yes; then
3781 echo "$ac_t""yes" 1>&6
3782 else
3783 echo "$ac_t""no" 1>&6
3784 fi
3785
3786
3787 enablestring=
3788 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3789 echo "configure:3790: checking for --${enablestring:-enable}-wave" >&5
3790 no_cache=0
3791 # Check whether --enable-wave or --disable-wave was given.
3792 if test "${enable_wave+set}" = set; then
3793 enableval="$enable_wave"
3794
3795 if test "$enableval" = yes; then
3796 ac_cv_use_wave='wxUSE_WAVE=yes'
3797 else
3798 ac_cv_use_wave='wxUSE_WAVE=no'
3799 fi
3800
3801 else
3802
3803 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3804 if test "x$LINE" != x ; then
3805 eval "DEFAULT_$LINE"
3806 else
3807 no_cache=1
3808 fi
3809
3810 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3811
3812 fi
3813
3814
3815 eval "$ac_cv_use_wave"
3816 if test "$no_cache" != 1; then
3817 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3818 fi
3819
3820 if test "$wxUSE_WAVE" = yes; then
3821 echo "$ac_t""yes" 1>&6
3822 else
3823 echo "$ac_t""no" 1>&6
3824 fi
3825
3826
3827 enablestring=
3828 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3829 echo "configure:3830: checking for --${enablestring:-enable}-fraction" >&5
3830 no_cache=0
3831 # Check whether --enable-fraction or --disable-fraction was given.
3832 if test "${enable_fraction+set}" = set; then
3833 enableval="$enable_fraction"
3834
3835 if test "$enableval" = yes; then
3836 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3837 else
3838 ac_cv_use_fraction='wxUSE_FRACTION=no'
3839 fi
3840
3841 else
3842
3843 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3851
3852 fi
3853
3854
3855 eval "$ac_cv_use_fraction"
3856 if test "$no_cache" != 1; then
3857 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3858 fi
3859
3860 if test "$wxUSE_FRACTION" = yes; then
3861 echo "$ac_t""yes" 1>&6
3862 else
3863 echo "$ac_t""no" 1>&6
3864 fi
3865
3866
3867 enablestring=
3868 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3869 echo "configure:3870: checking for --${enablestring:-enable}-dynlib" >&5
3870 no_cache=0
3871 # Check whether --enable-dynlib or --disable-dynlib was given.
3872 if test "${enable_dynlib+set}" = set; then
3873 enableval="$enable_dynlib"
3874
3875 if test "$enableval" = yes; then
3876 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3877 else
3878 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3879 fi
3880
3881 else
3882
3883 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3891
3892 fi
3893
3894
3895 eval "$ac_cv_use_dynlib"
3896 if test "$no_cache" != 1; then
3897 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3898 fi
3899
3900 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3901 echo "$ac_t""yes" 1>&6
3902 else
3903 echo "$ac_t""no" 1>&6
3904 fi
3905
3906
3907 enablestring=
3908 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3909 echo "configure:3910: checking for --${enablestring:-enable}-dynamicloader" >&5
3910 no_cache=0
3911 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3912 if test "${enable_dynamicloader+set}" = set; then
3913 enableval="$enable_dynamicloader"
3914
3915 if test "$enableval" = yes; then
3916 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3917 else
3918 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3919 fi
3920
3921 else
3922
3923 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3924 if test "x$LINE" != x ; then
3925 eval "DEFAULT_$LINE"
3926 else
3927 no_cache=1
3928 fi
3929
3930 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3931
3932 fi
3933
3934
3935 eval "$ac_cv_use_dynamicloader"
3936 if test "$no_cache" != 1; then
3937 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3938 fi
3939
3940 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3941 echo "$ac_t""yes" 1>&6
3942 else
3943 echo "$ac_t""no" 1>&6
3944 fi
3945
3946
3947 enablestring=
3948 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3949 echo "configure:3950: checking for --${enablestring:-enable}-longlong" >&5
3950 no_cache=0
3951 # Check whether --enable-longlong or --disable-longlong was given.
3952 if test "${enable_longlong+set}" = set; then
3953 enableval="$enable_longlong"
3954
3955 if test "$enableval" = yes; then
3956 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3957 else
3958 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3959 fi
3960
3961 else
3962
3963 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3964 if test "x$LINE" != x ; then
3965 eval "DEFAULT_$LINE"
3966 else
3967 no_cache=1
3968 fi
3969
3970 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3971
3972 fi
3973
3974
3975 eval "$ac_cv_use_longlong"
3976 if test "$no_cache" != 1; then
3977 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3978 fi
3979
3980 if test "$wxUSE_LONGLONG" = yes; then
3981 echo "$ac_t""yes" 1>&6
3982 else
3983 echo "$ac_t""no" 1>&6
3984 fi
3985
3986
3987 enablestring=
3988 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3989 echo "configure:3990: checking for --${enablestring:-enable}-geometry" >&5
3990 no_cache=0
3991 # Check whether --enable-geometry or --disable-geometry was given.
3992 if test "${enable_geometry+set}" = set; then
3993 enableval="$enable_geometry"
3994
3995 if test "$enableval" = yes; then
3996 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3997 else
3998 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3999 fi
4000
4001 else
4002
4003 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4004 if test "x$LINE" != x ; then
4005 eval "DEFAULT_$LINE"
4006 else
4007 no_cache=1
4008 fi
4009
4010 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
4011
4012 fi
4013
4014
4015 eval "$ac_cv_use_geometry"
4016 if test "$no_cache" != 1; then
4017 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4018 fi
4019
4020 if test "$wxUSE_GEOMETRY" = yes; then
4021 echo "$ac_t""yes" 1>&6
4022 else
4023 echo "$ac_t""no" 1>&6
4024 fi
4025
4026
4027 enablestring=
4028 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
4029 echo "configure:4030: checking for --${enablestring:-enable}-log" >&5
4030 no_cache=0
4031 # Check whether --enable-log or --disable-log was given.
4032 if test "${enable_log+set}" = set; then
4033 enableval="$enable_log"
4034
4035 if test "$enableval" = yes; then
4036 ac_cv_use_log='wxUSE_LOG=yes'
4037 else
4038 ac_cv_use_log='wxUSE_LOG=no'
4039 fi
4040
4041 else
4042
4043 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4044 if test "x$LINE" != x ; then
4045 eval "DEFAULT_$LINE"
4046 else
4047 no_cache=1
4048 fi
4049
4050 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4051
4052 fi
4053
4054
4055 eval "$ac_cv_use_log"
4056 if test "$no_cache" != 1; then
4057 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4058 fi
4059
4060 if test "$wxUSE_LOG" = yes; then
4061 echo "$ac_t""yes" 1>&6
4062 else
4063 echo "$ac_t""no" 1>&6
4064 fi
4065
4066
4067 enablestring=
4068 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4069 echo "configure:4070: checking for --${enablestring:-enable}-streams" >&5
4070 no_cache=0
4071 # Check whether --enable-streams or --disable-streams was given.
4072 if test "${enable_streams+set}" = set; then
4073 enableval="$enable_streams"
4074
4075 if test "$enableval" = yes; then
4076 ac_cv_use_streams='wxUSE_STREAMS=yes'
4077 else
4078 ac_cv_use_streams='wxUSE_STREAMS=no'
4079 fi
4080
4081 else
4082
4083 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4084 if test "x$LINE" != x ; then
4085 eval "DEFAULT_$LINE"
4086 else
4087 no_cache=1
4088 fi
4089
4090 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4091
4092 fi
4093
4094
4095 eval "$ac_cv_use_streams"
4096 if test "$no_cache" != 1; then
4097 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4098 fi
4099
4100 if test "$wxUSE_STREAMS" = yes; then
4101 echo "$ac_t""yes" 1>&6
4102 else
4103 echo "$ac_t""no" 1>&6
4104 fi
4105
4106
4107 enablestring=
4108 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4109 echo "configure:4110: checking for --${enablestring:-enable}-file" >&5
4110 no_cache=0
4111 # Check whether --enable-file or --disable-file was given.
4112 if test "${enable_file+set}" = set; then
4113 enableval="$enable_file"
4114
4115 if test "$enableval" = yes; then
4116 ac_cv_use_file='wxUSE_FILE=yes'
4117 else
4118 ac_cv_use_file='wxUSE_FILE=no'
4119 fi
4120
4121 else
4122
4123 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4124 if test "x$LINE" != x ; then
4125 eval "DEFAULT_$LINE"
4126 else
4127 no_cache=1
4128 fi
4129
4130 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4131
4132 fi
4133
4134
4135 eval "$ac_cv_use_file"
4136 if test "$no_cache" != 1; then
4137 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4138 fi
4139
4140 if test "$wxUSE_FILE" = yes; then
4141 echo "$ac_t""yes" 1>&6
4142 else
4143 echo "$ac_t""no" 1>&6
4144 fi
4145
4146
4147 enablestring=
4148 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4149 echo "configure:4150: checking for --${enablestring:-enable}-ffile" >&5
4150 no_cache=0
4151 # Check whether --enable-ffile or --disable-ffile was given.
4152 if test "${enable_ffile+set}" = set; then
4153 enableval="$enable_ffile"
4154
4155 if test "$enableval" = yes; then
4156 ac_cv_use_ffile='wxUSE_FFILE=yes'
4157 else
4158 ac_cv_use_ffile='wxUSE_FFILE=no'
4159 fi
4160
4161 else
4162
4163 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4164 if test "x$LINE" != x ; then
4165 eval "DEFAULT_$LINE"
4166 else
4167 no_cache=1
4168 fi
4169
4170 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4171
4172 fi
4173
4174
4175 eval "$ac_cv_use_ffile"
4176 if test "$no_cache" != 1; then
4177 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4178 fi
4179
4180 if test "$wxUSE_FFILE" = yes; then
4181 echo "$ac_t""yes" 1>&6
4182 else
4183 echo "$ac_t""no" 1>&6
4184 fi
4185
4186
4187 enablestring=
4188 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4189 echo "configure:4190: checking for --${enablestring:-enable}-textbuf" >&5
4190 no_cache=0
4191 # Check whether --enable-textbuf or --disable-textbuf was given.
4192 if test "${enable_textbuf+set}" = set; then
4193 enableval="$enable_textbuf"
4194
4195 if test "$enableval" = yes; then
4196 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4197 else
4198 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4199 fi
4200
4201 else
4202
4203 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4204 if test "x$LINE" != x ; then
4205 eval "DEFAULT_$LINE"
4206 else
4207 no_cache=1
4208 fi
4209
4210 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4211
4212 fi
4213
4214
4215 eval "$ac_cv_use_textbuf"
4216 if test "$no_cache" != 1; then
4217 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4218 fi
4219
4220 if test "$wxUSE_TEXTBUFFER" = yes; then
4221 echo "$ac_t""yes" 1>&6
4222 else
4223 echo "$ac_t""no" 1>&6
4224 fi
4225
4226
4227 enablestring=
4228 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4229 echo "configure:4230: checking for --${enablestring:-enable}-textfile" >&5
4230 no_cache=0
4231 # Check whether --enable-textfile or --disable-textfile was given.
4232 if test "${enable_textfile+set}" = set; then
4233 enableval="$enable_textfile"
4234
4235 if test "$enableval" = yes; then
4236 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4237 else
4238 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4239 fi
4240
4241 else
4242
4243 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4244 if test "x$LINE" != x ; then
4245 eval "DEFAULT_$LINE"
4246 else
4247 no_cache=1
4248 fi
4249
4250 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4251
4252 fi
4253
4254
4255 eval "$ac_cv_use_textfile"
4256 if test "$no_cache" != 1; then
4257 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4258 fi
4259
4260 if test "$wxUSE_TEXTFILE" = yes; then
4261 echo "$ac_t""yes" 1>&6
4262 else
4263 echo "$ac_t""no" 1>&6
4264 fi
4265
4266
4267 enablestring=
4268 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4269 echo "configure:4270: checking for --${enablestring:-enable}-fontmap" >&5
4270 no_cache=0
4271 # Check whether --enable-fontmap or --disable-fontmap was given.
4272 if test "${enable_fontmap+set}" = set; then
4273 enableval="$enable_fontmap"
4274
4275 if test "$enableval" = yes; then
4276 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4277 else
4278 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4279 fi
4280
4281 else
4282
4283 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4284 if test "x$LINE" != x ; then
4285 eval "DEFAULT_$LINE"
4286 else
4287 no_cache=1
4288 fi
4289
4290 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4291
4292 fi
4293
4294
4295 eval "$ac_cv_use_fontmap"
4296 if test "$no_cache" != 1; then
4297 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4298 fi
4299
4300 if test "$wxUSE_FONTMAP" = yes; then
4301 echo "$ac_t""yes" 1>&6
4302 else
4303 echo "$ac_t""no" 1>&6
4304 fi
4305
4306
4307 enablestring=
4308 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4309 echo "configure:4310: checking for --${enablestring:-enable}-unicode" >&5
4310 no_cache=0
4311 # Check whether --enable-unicode or --disable-unicode was given.
4312 if test "${enable_unicode+set}" = set; then
4313 enableval="$enable_unicode"
4314
4315 if test "$enableval" = yes; then
4316 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4317 else
4318 ac_cv_use_unicode='wxUSE_UNICODE=no'
4319 fi
4320
4321 else
4322
4323 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4324 if test "x$LINE" != x ; then
4325 eval "DEFAULT_$LINE"
4326 else
4327 no_cache=1
4328 fi
4329
4330 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4331
4332 fi
4333
4334
4335 eval "$ac_cv_use_unicode"
4336 if test "$no_cache" != 1; then
4337 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4338 fi
4339
4340 if test "$wxUSE_UNICODE" = yes; then
4341 echo "$ac_t""yes" 1>&6
4342 else
4343 echo "$ac_t""no" 1>&6
4344 fi
4345
4346
4347 enablestring=
4348 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4349 echo "configure:4350: checking for --${enablestring:-enable}-mslu" >&5
4350 no_cache=0
4351 # Check whether --enable-mslu or --disable-mslu was given.
4352 if test "${enable_mslu+set}" = set; then
4353 enableval="$enable_mslu"
4354
4355 if test "$enableval" = yes; then
4356 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4357 else
4358 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4359 fi
4360
4361 else
4362
4363 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4364 if test "x$LINE" != x ; then
4365 eval "DEFAULT_$LINE"
4366 else
4367 no_cache=1
4368 fi
4369
4370 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4371
4372 fi
4373
4374
4375 eval "$ac_cv_use_mslu"
4376 if test "$no_cache" != 1; then
4377 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4378 fi
4379
4380 if test "$wxUSE_UNICODE_MSLU" = yes; then
4381 echo "$ac_t""yes" 1>&6
4382 else
4383 echo "$ac_t""no" 1>&6
4384 fi
4385
4386
4387 enablestring=
4388 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4389 echo "configure:4390: checking for --${enablestring:-enable}-wxprintfv" >&5
4390 no_cache=0
4391 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4392 if test "${enable_wxprintfv+set}" = set; then
4393 enableval="$enable_wxprintfv"
4394
4395 if test "$enableval" = yes; then
4396 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4397 else
4398 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4399 fi
4400
4401 else
4402
4403 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4404 if test "x$LINE" != x ; then
4405 eval "DEFAULT_$LINE"
4406 else
4407 no_cache=1
4408 fi
4409
4410 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4411
4412 fi
4413
4414
4415 eval "$ac_cv_use_wxprintfv"
4416 if test "$no_cache" != 1; then
4417 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4418 fi
4419
4420 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4421 echo "$ac_t""yes" 1>&6
4422 else
4423 echo "$ac_t""no" 1>&6
4424 fi
4425
4426
4427 enablestring=
4428 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4429 echo "configure:4430: checking for --${enablestring:-enable}-std_iostreams" >&5
4430 no_cache=0
4431 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4432 if test "${enable_std_iostreams+set}" = set; then
4433 enableval="$enable_std_iostreams"
4434
4435 if test "$enableval" = yes; then
4436 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4437 else
4438 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4439 fi
4440
4441 else
4442
4443 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4444 if test "x$LINE" != x ; then
4445 eval "DEFAULT_$LINE"
4446 else
4447 no_cache=1
4448 fi
4449
4450 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4451
4452 fi
4453
4454
4455 eval "$ac_cv_use_std_iostreams"
4456 if test "$no_cache" != 1; then
4457 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4458 fi
4459
4460 if test "$wxUSE_STD_IOSTREAM" = yes; then
4461 echo "$ac_t""yes" 1>&6
4462 else
4463 echo "$ac_t""no" 1>&6
4464 fi
4465
4466
4467 enablestring=
4468 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4469 echo "configure:4470: checking for --${enablestring:-enable}-filesystem" >&5
4470 no_cache=0
4471 # Check whether --enable-filesystem or --disable-filesystem was given.
4472 if test "${enable_filesystem+set}" = set; then
4473 enableval="$enable_filesystem"
4474
4475 if test "$enableval" = yes; then
4476 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4477 else
4478 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4479 fi
4480
4481 else
4482
4483 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4484 if test "x$LINE" != x ; then
4485 eval "DEFAULT_$LINE"
4486 else
4487 no_cache=1
4488 fi
4489
4490 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4491
4492 fi
4493
4494
4495 eval "$ac_cv_use_filesystem"
4496 if test "$no_cache" != 1; then
4497 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4498 fi
4499
4500 if test "$wxUSE_FILESYSTEM" = yes; then
4501 echo "$ac_t""yes" 1>&6
4502 else
4503 echo "$ac_t""no" 1>&6
4504 fi
4505
4506
4507 enablestring=
4508 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4509 echo "configure:4510: checking for --${enablestring:-enable}-fs_inet" >&5
4510 no_cache=0
4511 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4512 if test "${enable_fs_inet+set}" = set; then
4513 enableval="$enable_fs_inet"
4514
4515 if test "$enableval" = yes; then
4516 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4517 else
4518 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4519 fi
4520
4521 else
4522
4523 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4524 if test "x$LINE" != x ; then
4525 eval "DEFAULT_$LINE"
4526 else
4527 no_cache=1
4528 fi
4529
4530 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4531
4532 fi
4533
4534
4535 eval "$ac_cv_use_fs_inet"
4536 if test "$no_cache" != 1; then
4537 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4538 fi
4539
4540 if test "$wxUSE_FS_INET" = yes; then
4541 echo "$ac_t""yes" 1>&6
4542 else
4543 echo "$ac_t""no" 1>&6
4544 fi
4545
4546
4547 enablestring=
4548 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4549 echo "configure:4550: checking for --${enablestring:-enable}-fs_zip" >&5
4550 no_cache=0
4551 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4552 if test "${enable_fs_zip+set}" = set; then
4553 enableval="$enable_fs_zip"
4554
4555 if test "$enableval" = yes; then
4556 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4557 else
4558 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4559 fi
4560
4561 else
4562
4563 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4564 if test "x$LINE" != x ; then
4565 eval "DEFAULT_$LINE"
4566 else
4567 no_cache=1
4568 fi
4569
4570 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4571
4572 fi
4573
4574
4575 eval "$ac_cv_use_fs_zip"
4576 if test "$no_cache" != 1; then
4577 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4578 fi
4579
4580 if test "$wxUSE_FS_ZIP" = yes; then
4581 echo "$ac_t""yes" 1>&6
4582 else
4583 echo "$ac_t""no" 1>&6
4584 fi
4585
4586
4587 enablestring=
4588 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4589 echo "configure:4590: checking for --${enablestring:-enable}-zipstream" >&5
4590 no_cache=0
4591 # Check whether --enable-zipstream or --disable-zipstream was given.
4592 if test "${enable_zipstream+set}" = set; then
4593 enableval="$enable_zipstream"
4594
4595 if test "$enableval" = yes; then
4596 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4597 else
4598 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4599 fi
4600
4601 else
4602
4603 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4604 if test "x$LINE" != x ; then
4605 eval "DEFAULT_$LINE"
4606 else
4607 no_cache=1
4608 fi
4609
4610 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4611
4612 fi
4613
4614
4615 eval "$ac_cv_use_zipstream"
4616 if test "$no_cache" != 1; then
4617 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4618 fi
4619
4620 if test "$wxUSE_ZIPSTREAM" = yes; then
4621 echo "$ac_t""yes" 1>&6
4622 else
4623 echo "$ac_t""no" 1>&6
4624 fi
4625
4626
4627
4628 enablestring=
4629 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4630 echo "configure:4631: checking for --${enablestring:-enable}-catch_segvs" >&5
4631 no_cache=0
4632 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4633 if test "${enable_catch_segvs+set}" = set; then
4634 enableval="$enable_catch_segvs"
4635
4636 if test "$enableval" = yes; then
4637 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4638 else
4639 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4640 fi
4641
4642 else
4643
4644 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4645 if test "x$LINE" != x ; then
4646 eval "DEFAULT_$LINE"
4647 else
4648 no_cache=1
4649 fi
4650
4651 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4652
4653 fi
4654
4655
4656 eval "$ac_cv_use_catch_segvs"
4657 if test "$no_cache" != 1; then
4658 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4659 fi
4660
4661 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4662 echo "$ac_t""yes" 1>&6
4663 else
4664 echo "$ac_t""no" 1>&6
4665 fi
4666
4667
4668 enablestring=
4669 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4670 echo "configure:4671: checking for --${enablestring:-enable}-snglinst" >&5
4671 no_cache=0
4672 # Check whether --enable-snglinst or --disable-snglinst was given.
4673 if test "${enable_snglinst+set}" = set; then
4674 enableval="$enable_snglinst"
4675
4676 if test "$enableval" = yes; then
4677 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4678 else
4679 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4680 fi
4681
4682 else
4683
4684 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4685 if test "x$LINE" != x ; then
4686 eval "DEFAULT_$LINE"
4687 else
4688 no_cache=1
4689 fi
4690
4691 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4692
4693 fi
4694
4695
4696 eval "$ac_cv_use_snglinst"
4697 if test "$no_cache" != 1; then
4698 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4699 fi
4700
4701 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4702 echo "$ac_t""yes" 1>&6
4703 else
4704 echo "$ac_t""no" 1>&6
4705 fi
4706
4707
4708
4709 enablestring=
4710 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4711 echo "configure:4712: checking for --${enablestring:-enable}-mimetype" >&5
4712 no_cache=0
4713 # Check whether --enable-mimetype or --disable-mimetype was given.
4714 if test "${enable_mimetype+set}" = set; then
4715 enableval="$enable_mimetype"
4716
4717 if test "$enableval" = yes; then
4718 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4719 else
4720 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4721 fi
4722
4723 else
4724
4725 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4726 if test "x$LINE" != x ; then
4727 eval "DEFAULT_$LINE"
4728 else
4729 no_cache=1
4730 fi
4731
4732 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4733
4734 fi
4735
4736
4737 eval "$ac_cv_use_mimetype"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4740 fi
4741
4742 if test "$wxUSE_MIMETYPE" = yes; then
4743 echo "$ac_t""yes" 1>&6
4744 else
4745 echo "$ac_t""no" 1>&6
4746 fi
4747
4748
4749 enablestring=
4750 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4751 echo "configure:4752: checking for --${enablestring:-enable}-system_options" >&5
4752 no_cache=0
4753 # Check whether --enable-system_options or --disable-system_options was given.
4754 if test "${enable_system_options+set}" = set; then
4755 enableval="$enable_system_options"
4756
4757 if test "$enableval" = yes; then
4758 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4759 else
4760 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4761 fi
4762
4763 else
4764
4765 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4766 if test "x$LINE" != x ; then
4767 eval "DEFAULT_$LINE"
4768 else
4769 no_cache=1
4770 fi
4771
4772 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4773
4774 fi
4775
4776
4777 eval "$ac_cv_use_system_options"
4778 if test "$no_cache" != 1; then
4779 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4780 fi
4781
4782 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4783 echo "$ac_t""yes" 1>&6
4784 else
4785 echo "$ac_t""no" 1>&6
4786 fi
4787
4788
4789
4790 enablestring=
4791 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4792 echo "configure:4793: checking for --${enablestring:-enable}-url" >&5
4793 no_cache=0
4794 # Check whether --enable-url or --disable-url was given.
4795 if test "${enable_url+set}" = set; then
4796 enableval="$enable_url"
4797
4798 if test "$enableval" = yes; then
4799 ac_cv_use_url='wxUSE_URL=yes'
4800 else
4801 ac_cv_use_url='wxUSE_URL=no'
4802 fi
4803
4804 else
4805
4806 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4807 if test "x$LINE" != x ; then
4808 eval "DEFAULT_$LINE"
4809 else
4810 no_cache=1
4811 fi
4812
4813 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4814
4815 fi
4816
4817
4818 eval "$ac_cv_use_url"
4819 if test "$no_cache" != 1; then
4820 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4821 fi
4822
4823 if test "$wxUSE_URL" = yes; then
4824 echo "$ac_t""yes" 1>&6
4825 else
4826 echo "$ac_t""no" 1>&6
4827 fi
4828
4829
4830 enablestring=
4831 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4832 echo "configure:4833: checking for --${enablestring:-enable}-protocol" >&5
4833 no_cache=0
4834 # Check whether --enable-protocol or --disable-protocol was given.
4835 if test "${enable_protocol+set}" = set; then
4836 enableval="$enable_protocol"
4837
4838 if test "$enableval" = yes; then
4839 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4840 else
4841 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4842 fi
4843
4844 else
4845
4846 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4847 if test "x$LINE" != x ; then
4848 eval "DEFAULT_$LINE"
4849 else
4850 no_cache=1
4851 fi
4852
4853 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4854
4855 fi
4856
4857
4858 eval "$ac_cv_use_protocol"
4859 if test "$no_cache" != 1; then
4860 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4861 fi
4862
4863 if test "$wxUSE_PROTOCOL" = yes; then
4864 echo "$ac_t""yes" 1>&6
4865 else
4866 echo "$ac_t""no" 1>&6
4867 fi
4868
4869
4870 enablestring=
4871 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4872 echo "configure:4873: checking for --${enablestring:-enable}-protocol_http" >&5
4873 no_cache=0
4874 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4875 if test "${enable_protocol_http+set}" = set; then
4876 enableval="$enable_protocol_http"
4877
4878 if test "$enableval" = yes; then
4879 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4880 else
4881 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4882 fi
4883
4884 else
4885
4886 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4887 if test "x$LINE" != x ; then
4888 eval "DEFAULT_$LINE"
4889 else
4890 no_cache=1
4891 fi
4892
4893 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4894
4895 fi
4896
4897
4898 eval "$ac_cv_use_protocol_http"
4899 if test "$no_cache" != 1; then
4900 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4901 fi
4902
4903 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4904 echo "$ac_t""yes" 1>&6
4905 else
4906 echo "$ac_t""no" 1>&6
4907 fi
4908
4909
4910 enablestring=
4911 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4912 echo "configure:4913: checking for --${enablestring:-enable}-protocol_ftp" >&5
4913 no_cache=0
4914 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4915 if test "${enable_protocol_ftp+set}" = set; then
4916 enableval="$enable_protocol_ftp"
4917
4918 if test "$enableval" = yes; then
4919 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4920 else
4921 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4922 fi
4923
4924 else
4925
4926 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4927 if test "x$LINE" != x ; then
4928 eval "DEFAULT_$LINE"
4929 else
4930 no_cache=1
4931 fi
4932
4933 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4934
4935 fi
4936
4937
4938 eval "$ac_cv_use_protocol_ftp"
4939 if test "$no_cache" != 1; then
4940 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4941 fi
4942
4943 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4944 echo "$ac_t""yes" 1>&6
4945 else
4946 echo "$ac_t""no" 1>&6
4947 fi
4948
4949
4950 enablestring=
4951 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4952 echo "configure:4953: checking for --${enablestring:-enable}-protocol_file" >&5
4953 no_cache=0
4954 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4955 if test "${enable_protocol_file+set}" = set; then
4956 enableval="$enable_protocol_file"
4957
4958 if test "$enableval" = yes; then
4959 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4960 else
4961 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4962 fi
4963
4964 else
4965
4966 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4967 if test "x$LINE" != x ; then
4968 eval "DEFAULT_$LINE"
4969 else
4970 no_cache=1
4971 fi
4972
4973 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4974
4975 fi
4976
4977
4978 eval "$ac_cv_use_protocol_file"
4979 if test "$no_cache" != 1; then
4980 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4981 fi
4982
4983 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4984 echo "$ac_t""yes" 1>&6
4985 else
4986 echo "$ac_t""no" 1>&6
4987 fi
4988
4989
4990
4991
4992
4993 enablestring=
4994 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4995 echo "configure:4996: checking for --${enablestring:-enable}-threads" >&5
4996 no_cache=0
4997 # Check whether --enable-threads or --disable-threads was given.
4998 if test "${enable_threads+set}" = set; then
4999 enableval="$enable_threads"
5000
5001 if test "$enableval" = yes; then
5002 ac_cv_use_threads='wxUSE_THREADS=yes'
5003 else
5004 ac_cv_use_threads='wxUSE_THREADS=no'
5005 fi
5006
5007 else
5008
5009 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5010 if test "x$LINE" != x ; then
5011 eval "DEFAULT_$LINE"
5012 else
5013 no_cache=1
5014 fi
5015
5016 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5017
5018 fi
5019
5020
5021 eval "$ac_cv_use_threads"
5022 if test "$no_cache" != 1; then
5023 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5024 fi
5025
5026 if test "$wxUSE_THREADS" = yes; then
5027 echo "$ac_t""yes" 1>&6
5028 else
5029 echo "$ac_t""no" 1>&6
5030 fi
5031
5032
5033 if test "$wxUSE_GUI" = "yes"; then
5034
5035
5036
5037 enablestring=
5038 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5039 echo "configure:5040: checking for --${enablestring:-enable}-docview" >&5
5040 no_cache=0
5041 # Check whether --enable-docview or --disable-docview was given.
5042 if test "${enable_docview+set}" = set; then
5043 enableval="$enable_docview"
5044
5045 if test "$enableval" = yes; then
5046 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5047 else
5048 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5049 fi
5050
5051 else
5052
5053 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5061
5062 fi
5063
5064
5065 eval "$ac_cv_use_docview"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5071 echo "$ac_t""yes" 1>&6
5072 else
5073 echo "$ac_t""no" 1>&6
5074 fi
5075
5076
5077 enablestring=
5078 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5079 echo "configure:5080: checking for --${enablestring:-enable}-help" >&5
5080 no_cache=0
5081 # Check whether --enable-help or --disable-help was given.
5082 if test "${enable_help+set}" = set; then
5083 enableval="$enable_help"
5084
5085 if test "$enableval" = yes; then
5086 ac_cv_use_help='wxUSE_HELP=yes'
5087 else
5088 ac_cv_use_help='wxUSE_HELP=no'
5089 fi
5090
5091 else
5092
5093 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5094 if test "x$LINE" != x ; then
5095 eval "DEFAULT_$LINE"
5096 else
5097 no_cache=1
5098 fi
5099
5100 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5101
5102 fi
5103
5104
5105 eval "$ac_cv_use_help"
5106 if test "$no_cache" != 1; then
5107 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5108 fi
5109
5110 if test "$wxUSE_HELP" = yes; then
5111 echo "$ac_t""yes" 1>&6
5112 else
5113 echo "$ac_t""no" 1>&6
5114 fi
5115
5116
5117 enablestring=
5118 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5119 echo "configure:5120: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5120 no_cache=0
5121 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5122 if test "${enable_mshtmlhelp+set}" = set; then
5123 enableval="$enable_mshtmlhelp"
5124
5125 if test "$enableval" = yes; then
5126 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5127 else
5128 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5129 fi
5130
5131 else
5132
5133 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5134 if test "x$LINE" != x ; then
5135 eval "DEFAULT_$LINE"
5136 else
5137 no_cache=1
5138 fi
5139
5140 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5141
5142 fi
5143
5144
5145 eval "$ac_cv_use_mshtmlhelp"
5146 if test "$no_cache" != 1; then
5147 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5148 fi
5149
5150 if test "$wxUSE_MS_HTML_HELP" = yes; then
5151 echo "$ac_t""yes" 1>&6
5152 else
5153 echo "$ac_t""no" 1>&6
5154 fi
5155
5156
5157 enablestring=
5158 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5159 echo "configure:5160: checking for --${enablestring:-enable}-html" >&5
5160 no_cache=0
5161 # Check whether --enable-html or --disable-html was given.
5162 if test "${enable_html+set}" = set; then
5163 enableval="$enable_html"
5164
5165 if test "$enableval" = yes; then
5166 ac_cv_use_html='wxUSE_HTML=yes'
5167 else
5168 ac_cv_use_html='wxUSE_HTML=no'
5169 fi
5170
5171 else
5172
5173 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5174 if test "x$LINE" != x ; then
5175 eval "DEFAULT_$LINE"
5176 else
5177 no_cache=1
5178 fi
5179
5180 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5181
5182 fi
5183
5184
5185 eval "$ac_cv_use_html"
5186 if test "$no_cache" != 1; then
5187 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5188 fi
5189
5190 if test "$wxUSE_HTML" = yes; then
5191 echo "$ac_t""yes" 1>&6
5192 else
5193 echo "$ac_t""no" 1>&6
5194 fi
5195
5196
5197 enablestring=
5198 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5199 echo "configure:5200: checking for --${enablestring:-enable}-htmlhelp" >&5
5200 no_cache=0
5201 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5202 if test "${enable_htmlhelp+set}" = set; then
5203 enableval="$enable_htmlhelp"
5204
5205 if test "$enableval" = yes; then
5206 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5207 else
5208 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5209 fi
5210
5211 else
5212
5213 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5214 if test "x$LINE" != x ; then
5215 eval "DEFAULT_$LINE"
5216 else
5217 no_cache=1
5218 fi
5219
5220 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5221
5222 fi
5223
5224
5225 eval "$ac_cv_use_htmlhelp"
5226 if test "$no_cache" != 1; then
5227 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5228 fi
5229
5230 if test "$wxUSE_WXHTML_HELP" = yes; then
5231 echo "$ac_t""yes" 1>&6
5232 else
5233 echo "$ac_t""no" 1>&6
5234 fi
5235
5236
5237 enablestring=
5238 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5239 echo "configure:5240: checking for --${enablestring:-enable}-constraints" >&5
5240 no_cache=0
5241 # Check whether --enable-constraints or --disable-constraints was given.
5242 if test "${enable_constraints+set}" = set; then
5243 enableval="$enable_constraints"
5244
5245 if test "$enableval" = yes; then
5246 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5247 else
5248 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5249 fi
5250
5251 else
5252
5253 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5254 if test "x$LINE" != x ; then
5255 eval "DEFAULT_$LINE"
5256 else
5257 no_cache=1
5258 fi
5259
5260 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5261
5262 fi
5263
5264
5265 eval "$ac_cv_use_constraints"
5266 if test "$no_cache" != 1; then
5267 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5268 fi
5269
5270 if test "$wxUSE_CONSTRAINTS" = yes; then
5271 echo "$ac_t""yes" 1>&6
5272 else
5273 echo "$ac_t""no" 1>&6
5274 fi
5275
5276
5277 enablestring=
5278 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5279 echo "configure:5280: checking for --${enablestring:-enable}-printarch" >&5
5280 no_cache=0
5281 # Check whether --enable-printarch or --disable-printarch was given.
5282 if test "${enable_printarch+set}" = set; then
5283 enableval="$enable_printarch"
5284
5285 if test "$enableval" = yes; then
5286 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5287 else
5288 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5289 fi
5290
5291 else
5292
5293 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5294 if test "x$LINE" != x ; then
5295 eval "DEFAULT_$LINE"
5296 else
5297 no_cache=1
5298 fi
5299
5300 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5301
5302 fi
5303
5304
5305 eval "$ac_cv_use_printarch"
5306 if test "$no_cache" != 1; then
5307 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5308 fi
5309
5310 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5311 echo "$ac_t""yes" 1>&6
5312 else
5313 echo "$ac_t""no" 1>&6
5314 fi
5315
5316
5317 enablestring=
5318 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5319 echo "configure:5320: checking for --${enablestring:-enable}-mdi" >&5
5320 no_cache=0
5321 # Check whether --enable-mdi or --disable-mdi was given.
5322 if test "${enable_mdi+set}" = set; then
5323 enableval="$enable_mdi"
5324
5325 if test "$enableval" = yes; then
5326 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5327 else
5328 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5329 fi
5330
5331 else
5332
5333 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5334 if test "x$LINE" != x ; then
5335 eval "DEFAULT_$LINE"
5336 else
5337 no_cache=1
5338 fi
5339
5340 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5341
5342 fi
5343
5344
5345 eval "$ac_cv_use_mdi"
5346 if test "$no_cache" != 1; then
5347 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5348 fi
5349
5350 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5351 echo "$ac_t""yes" 1>&6
5352 else
5353 echo "$ac_t""no" 1>&6
5354 fi
5355
5356
5357 enablestring=
5358 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5359 echo "configure:5360: checking for --${enablestring:-enable}-loggui" >&5
5360 no_cache=0
5361 # Check whether --enable-loggui or --disable-loggui was given.
5362 if test "${enable_loggui+set}" = set; then
5363 enableval="$enable_loggui"
5364
5365 if test "$enableval" = yes; then
5366 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5367 else
5368 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5369 fi
5370
5371 else
5372
5373 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5374 if test "x$LINE" != x ; then
5375 eval "DEFAULT_$LINE"
5376 else
5377 no_cache=1
5378 fi
5379
5380 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5381
5382 fi
5383
5384
5385 eval "$ac_cv_use_loggui"
5386 if test "$no_cache" != 1; then
5387 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5388 fi
5389
5390 if test "$wxUSE_LOGGUI" = yes; then
5391 echo "$ac_t""yes" 1>&6
5392 else
5393 echo "$ac_t""no" 1>&6
5394 fi
5395
5396
5397 enablestring=
5398 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5399 echo "configure:5400: checking for --${enablestring:-enable}-logwin" >&5
5400 no_cache=0
5401 # Check whether --enable-logwin or --disable-logwin was given.
5402 if test "${enable_logwin+set}" = set; then
5403 enableval="$enable_logwin"
5404
5405 if test "$enableval" = yes; then
5406 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5407 else
5408 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5409 fi
5410
5411 else
5412
5413 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5421
5422 fi
5423
5424
5425 eval "$ac_cv_use_logwin"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_LOGWINDOW" = yes; then
5431 echo "$ac_t""yes" 1>&6
5432 else
5433 echo "$ac_t""no" 1>&6
5434 fi
5435
5436
5437 enablestring=
5438 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5439 echo "configure:5440: checking for --${enablestring:-enable}-logdialog" >&5
5440 no_cache=0
5441 # Check whether --enable-logdialog or --disable-logdialog was given.
5442 if test "${enable_logdialog+set}" = set; then
5443 enableval="$enable_logdialog"
5444
5445 if test "$enableval" = yes; then
5446 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5447 else
5448 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5449 fi
5450
5451 else
5452
5453 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5454 if test "x$LINE" != x ; then
5455 eval "DEFAULT_$LINE"
5456 else
5457 no_cache=1
5458 fi
5459
5460 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5461
5462 fi
5463
5464
5465 eval "$ac_cv_use_logdialog"
5466 if test "$no_cache" != 1; then
5467 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5468 fi
5469
5470 if test "$wxUSE_LOGDIALOG" = yes; then
5471 echo "$ac_t""yes" 1>&6
5472 else
5473 echo "$ac_t""no" 1>&6
5474 fi
5475
5476
5477
5478 enablestring=
5479 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5480 echo "configure:5481: checking for --${enablestring:-enable}-postscript" >&5
5481 no_cache=0
5482 # Check whether --enable-postscript or --disable-postscript was given.
5483 if test "${enable_postscript+set}" = set; then
5484 enableval="$enable_postscript"
5485
5486 if test "$enableval" = yes; then
5487 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5488 else
5489 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5490 fi
5491
5492 else
5493
5494 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5495 if test "x$LINE" != x ; then
5496 eval "DEFAULT_$LINE"
5497 else
5498 no_cache=1
5499 fi
5500
5501 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5502
5503 fi
5504
5505
5506 eval "$ac_cv_use_postscript"
5507 if test "$no_cache" != 1; then
5508 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5509 fi
5510
5511 if test "$wxUSE_POSTSCRIPT" = yes; then
5512 echo "$ac_t""yes" 1>&6
5513 else
5514 echo "$ac_t""no" 1>&6
5515 fi
5516
5517
5518
5519
5520
5521 enablestring=
5522 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5523 echo "configure:5524: checking for --${enablestring:-enable}-prologio" >&5
5524 no_cache=0
5525 # Check whether --enable-prologio or --disable-prologio was given.
5526 if test "${enable_prologio+set}" = set; then
5527 enableval="$enable_prologio"
5528
5529 if test "$enableval" = yes; then
5530 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5531 else
5532 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5533 fi
5534
5535 else
5536
5537 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5538 if test "x$LINE" != x ; then
5539 eval "DEFAULT_$LINE"
5540 else
5541 no_cache=1
5542 fi
5543
5544 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5545
5546 fi
5547
5548
5549 eval "$ac_cv_use_prologio"
5550 if test "$no_cache" != 1; then
5551 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5552 fi
5553
5554 if test "$wxUSE_PROLOGIO" = yes; then
5555 echo "$ac_t""yes" 1>&6
5556 else
5557 echo "$ac_t""no" 1>&6
5558 fi
5559
5560
5561 enablestring=
5562 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5563 echo "configure:5564: checking for --${enablestring:-enable}-resources" >&5
5564 no_cache=0
5565 # Check whether --enable-resources or --disable-resources was given.
5566 if test "${enable_resources+set}" = set; then
5567 enableval="$enable_resources"
5568
5569 if test "$enableval" = yes; then
5570 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5571 else
5572 ac_cv_use_resources='wxUSE_RESOURCES=no'
5573 fi
5574
5575 else
5576
5577 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5578 if test "x$LINE" != x ; then
5579 eval "DEFAULT_$LINE"
5580 else
5581 no_cache=1
5582 fi
5583
5584 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5585
5586 fi
5587
5588
5589 eval "$ac_cv_use_resources"
5590 if test "$no_cache" != 1; then
5591 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5592 fi
5593
5594 if test "$wxUSE_RESOURCES" = yes; then
5595 echo "$ac_t""yes" 1>&6
5596 else
5597 echo "$ac_t""no" 1>&6
5598 fi
5599
5600
5601
5602 enablestring=
5603 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5604 echo "configure:5605: checking for --${enablestring:-enable}-xresources" >&5
5605 no_cache=0
5606 # Check whether --enable-xresources or --disable-xresources was given.
5607 if test "${enable_xresources+set}" = set; then
5608 enableval="$enable_xresources"
5609
5610 if test "$enableval" = yes; then
5611 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5612 else
5613 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5614 fi
5615
5616 else
5617
5618 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5619 if test "x$LINE" != x ; then
5620 eval "DEFAULT_$LINE"
5621 else
5622 no_cache=1
5623 fi
5624
5625 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5626
5627 fi
5628
5629
5630 eval "$ac_cv_use_xresources"
5631 if test "$no_cache" != 1; then
5632 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5633 fi
5634
5635 if test "$wxUSE_X_RESOURCES" = yes; then
5636 echo "$ac_t""yes" 1>&6
5637 else
5638 echo "$ac_t""no" 1>&6
5639 fi
5640
5641
5642
5643
5644 enablestring=
5645 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5646 echo "configure:5647: checking for --${enablestring:-enable}-clipboard" >&5
5647 no_cache=0
5648 # Check whether --enable-clipboard or --disable-clipboard was given.
5649 if test "${enable_clipboard+set}" = set; then
5650 enableval="$enable_clipboard"
5651
5652 if test "$enableval" = yes; then
5653 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5654 else
5655 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5656 fi
5657
5658 else
5659
5660 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5661 if test "x$LINE" != x ; then
5662 eval "DEFAULT_$LINE"
5663 else
5664 no_cache=1
5665 fi
5666
5667 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5668
5669 fi
5670
5671
5672 eval "$ac_cv_use_clipboard"
5673 if test "$no_cache" != 1; then
5674 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5675 fi
5676
5677 if test "$wxUSE_CLIPBOARD" = yes; then
5678 echo "$ac_t""yes" 1>&6
5679 else
5680 echo "$ac_t""no" 1>&6
5681 fi
5682
5683
5684 enablestring=
5685 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5686 echo "configure:5687: checking for --${enablestring:-enable}-dnd" >&5
5687 no_cache=0
5688 # Check whether --enable-dnd or --disable-dnd was given.
5689 if test "${enable_dnd+set}" = set; then
5690 enableval="$enable_dnd"
5691
5692 if test "$enableval" = yes; then
5693 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5694 else
5695 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5696 fi
5697
5698 else
5699
5700 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5701 if test "x$LINE" != x ; then
5702 eval "DEFAULT_$LINE"
5703 else
5704 no_cache=1
5705 fi
5706
5707 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5708
5709 fi
5710
5711
5712 eval "$ac_cv_use_dnd"
5713 if test "$no_cache" != 1; then
5714 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5715 fi
5716
5717 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5718 echo "$ac_t""yes" 1>&6
5719 else
5720 echo "$ac_t""no" 1>&6
5721 fi
5722
5723
5724 enablestring=
5725 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5726 echo "configure:5727: checking for --${enablestring:-enable}-metafile" >&5
5727 no_cache=0
5728 # Check whether --enable-metafile or --disable-metafile was given.
5729 if test "${enable_metafile+set}" = set; then
5730 enableval="$enable_metafile"
5731
5732 if test "$enableval" = yes; then
5733 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5734 else
5735 ac_cv_use_metafile='wxUSE_METAFILE=no'
5736 fi
5737
5738 else
5739
5740 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5741 if test "x$LINE" != x ; then
5742 eval "DEFAULT_$LINE"
5743 else
5744 no_cache=1
5745 fi
5746
5747 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5748
5749 fi
5750
5751
5752 eval "$ac_cv_use_metafile"
5753 if test "$no_cache" != 1; then
5754 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5755 fi
5756
5757 if test "$wxUSE_METAFILE" = yes; then
5758 echo "$ac_t""yes" 1>&6
5759 else
5760 echo "$ac_t""no" 1>&6
5761 fi
5762
5763
5764
5765 enablestring=
5766 echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
5767 echo "configure:5768: checking for --${enablestring:-enable}-treelayout" >&5
5768 no_cache=0
5769 # Check whether --enable-treelayout or --disable-treelayout was given.
5770 if test "${enable_treelayout+set}" = set; then
5771 enableval="$enable_treelayout"
5772
5773 if test "$enableval" = yes; then
5774 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5775 else
5776 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5777 fi
5778
5779 else
5780
5781 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5782 if test "x$LINE" != x ; then
5783 eval "DEFAULT_$LINE"
5784 else
5785 no_cache=1
5786 fi
5787
5788 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5789
5790 fi
5791
5792
5793 eval "$ac_cv_use_treelayout"
5794 if test "$no_cache" != 1; then
5795 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5796 fi
5797
5798 if test "$wxUSE_TREELAYOUT" = yes; then
5799 echo "$ac_t""yes" 1>&6
5800 else
5801 echo "$ac_t""no" 1>&6
5802 fi
5803
5804
5805
5806
5807 enablestring=
5808 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5809 echo "configure:5810: checking for --${enablestring:-enable}-controls" >&5
5810 no_cache=0
5811 # Check whether --enable-controls or --disable-controls was given.
5812 if test "${enable_controls+set}" = set; then
5813 enableval="$enable_controls"
5814
5815 if test "$enableval" = yes; then
5816 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5817 else
5818 ac_cv_use_controls='wxUSE_CONTROLS=no'
5819 fi
5820
5821 else
5822
5823 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5824 if test "x$LINE" != x ; then
5825 eval "DEFAULT_$LINE"
5826 else
5827 no_cache=1
5828 fi
5829
5830 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5831
5832 fi
5833
5834
5835 eval "$ac_cv_use_controls"
5836 if test "$no_cache" != 1; then
5837 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5838 fi
5839
5840 if test "$wxUSE_CONTROLS" = yes; then
5841 echo "$ac_t""yes" 1>&6
5842 else
5843 echo "$ac_t""no" 1>&6
5844 fi
5845
5846
5847 if test "$wxUSE_CONTROLS" = "yes"; then
5848 DEFAULT_wxUSE_ACCEL=yes
5849 DEFAULT_wxUSE_BMPBUTTON=yes
5850 DEFAULT_wxUSE_BUTTON=yes
5851 DEFAULT_wxUSE_CALCTRL=no
5852 DEFAULT_wxUSE_CARET=yes
5853 DEFAULT_wxUSE_COMBOBOX=yes
5854 DEFAULT_wxUSE_CHECKBOX=yes
5855 DEFAULT_wxUSE_CHECKLISTBOX=yes
5856 DEFAULT_wxUSE_CHOICE=yes
5857 DEFAULT_wxUSE_GAUGE=yes
5858 DEFAULT_wxUSE_GRID=yes
5859 DEFAULT_wxUSE_NEW_GRID=yes
5860 DEFAULT_wxUSE_IMAGLIST=yes
5861 DEFAULT_wxUSE_LISTBOX=yes
5862 DEFAULT_wxUSE_LISTCTRL=yes
5863 DEFAULT_wxUSE_NOTEBOOK=yes
5864 DEFAULT_wxUSE_PROPSHEET=yes
5865 DEFAULT_wxUSE_RADIOBOX=yes
5866 DEFAULT_wxUSE_RADIOBTN=yes
5867 DEFAULT_wxUSE_SASH=yes
5868 DEFAULT_wxUSE_SCROLLBAR=yes
5869 DEFAULT_wxUSE_SLIDER=yes
5870 DEFAULT_wxUSE_SPINBTN=yes
5871 DEFAULT_wxUSE_SPINCTRL=yes
5872 DEFAULT_wxUSE_SPLITTER=yes
5873 DEFAULT_wxUSE_STATBMP=yes
5874 DEFAULT_wxUSE_STATBOX=yes
5875 DEFAULT_wxUSE_STATLINE=yes
5876 DEFAULT_wxUSE_STATUSBAR=yes
5877 DEFAULT_wxUSE_TAB_DIALOG=yes
5878 DEFAULT_wxUSE_TOGGLEBTN=yes
5879 DEFAULT_wxUSE_TOOLBAR=yes
5880 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5881 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5882 DEFAULT_wxUSE_TOOLTIPS=yes
5883 DEFAULT_wxUSE_TREECTRL=yes
5884 DEFAULT_wxUSE_POPUPWIN=yes
5885 DEFAULT_wxUSE_TIPWINDOW=yes
5886 elif test "$wxUSE_CONTROLS" = "no"; then
5887 DEFAULT_wxUSE_ACCEL=no
5888 DEFAULT_wxUSE_BMPBUTTON=no
5889 DEFAULT_wxUSE_BUTTON=no
5890 DEFAULT_wxUSE_CALCTRL=no
5891 DEFAULT_wxUSE_CARET=no
5892 DEFAULT_wxUSE_COMBOBOX=no
5893 DEFAULT_wxUSE_CHECKBOX=no
5894 DEFAULT_wxUSE_CHECKLISTBOX=no
5895 DEFAULT_wxUSE_CHOICE=no
5896 DEFAULT_wxUSE_GAUGE=no
5897 DEFAULT_wxUSE_GRID=no
5898 DEFAULT_wxUSE_NEW_GRID=no
5899 DEFAULT_wxUSE_IMAGLIST=no
5900 DEFAULT_wxUSE_LISTBOX=no
5901 DEFAULT_wxUSE_LISTCTRL=no
5902 DEFAULT_wxUSE_NOTEBOOK=no
5903 DEFAULT_wxUSE_PROPSHEET=no
5904 DEFAULT_wxUSE_RADIOBOX=no
5905 DEFAULT_wxUSE_RADIOBTN=no
5906 DEFAULT_wxUSE_SASH=no
5907 DEFAULT_wxUSE_SCROLLBAR=no
5908 DEFAULT_wxUSE_SLIDER=no
5909 DEFAULT_wxUSE_SPINBTN=no
5910 DEFAULT_wxUSE_SPINCTRL=no
5911 DEFAULT_wxUSE_SPLITTER=no
5912 DEFAULT_wxUSE_STATBMP=no
5913 DEFAULT_wxUSE_STATBOX=no
5914 DEFAULT_wxUSE_STATLINE=no
5915 DEFAULT_wxUSE_STATUSBAR=no
5916 DEFAULT_wxUSE_TAB_DIALOG=no
5917 DEFAULT_wxUSE_TOGGLEBTN=no
5918 DEFAULT_wxUSE_TOOLBAR=no
5919 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5920 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5921 DEFAULT_wxUSE_TOOLTIPS=no
5922 DEFAULT_wxUSE_TREECTRL=no
5923 DEFAULT_wxUSE_POPUPWIN=no
5924 DEFAULT_wxUSE_TIPWINDOW=no
5925 fi
5926
5927
5928 enablestring=
5929 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5930 echo "configure:5931: checking for --${enablestring:-enable}-accel" >&5
5931 no_cache=0
5932 # Check whether --enable-accel or --disable-accel was given.
5933 if test "${enable_accel+set}" = set; then
5934 enableval="$enable_accel"
5935
5936 if test "$enableval" = yes; then
5937 ac_cv_use_accel='wxUSE_ACCEL=yes'
5938 else
5939 ac_cv_use_accel='wxUSE_ACCEL=no'
5940 fi
5941
5942 else
5943
5944 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5945 if test "x$LINE" != x ; then
5946 eval "DEFAULT_$LINE"
5947 else
5948 no_cache=1
5949 fi
5950
5951 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5952
5953 fi
5954
5955
5956 eval "$ac_cv_use_accel"
5957 if test "$no_cache" != 1; then
5958 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5959 fi
5960
5961 if test "$wxUSE_ACCEL" = yes; then
5962 echo "$ac_t""yes" 1>&6
5963 else
5964 echo "$ac_t""no" 1>&6
5965 fi
5966
5967
5968 enablestring=
5969 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5970 echo "configure:5971: checking for --${enablestring:-enable}-button" >&5
5971 no_cache=0
5972 # Check whether --enable-button or --disable-button was given.
5973 if test "${enable_button+set}" = set; then
5974 enableval="$enable_button"
5975
5976 if test "$enableval" = yes; then
5977 ac_cv_use_button='wxUSE_BUTTON=yes'
5978 else
5979 ac_cv_use_button='wxUSE_BUTTON=no'
5980 fi
5981
5982 else
5983
5984 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5985 if test "x$LINE" != x ; then
5986 eval "DEFAULT_$LINE"
5987 else
5988 no_cache=1
5989 fi
5990
5991 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5992
5993 fi
5994
5995
5996 eval "$ac_cv_use_button"
5997 if test "$no_cache" != 1; then
5998 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5999 fi
6000
6001 if test "$wxUSE_BUTTON" = yes; then
6002 echo "$ac_t""yes" 1>&6
6003 else
6004 echo "$ac_t""no" 1>&6
6005 fi
6006
6007
6008 enablestring=
6009 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
6010 echo "configure:6011: checking for --${enablestring:-enable}-bmpbutton" >&5
6011 no_cache=0
6012 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6013 if test "${enable_bmpbutton+set}" = set; then
6014 enableval="$enable_bmpbutton"
6015
6016 if test "$enableval" = yes; then
6017 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6018 else
6019 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6020 fi
6021
6022 else
6023
6024 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6032
6033 fi
6034
6035
6036 eval "$ac_cv_use_bmpbutton"
6037 if test "$no_cache" != 1; then
6038 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6039 fi
6040
6041 if test "$wxUSE_BMPBUTTON" = yes; then
6042 echo "$ac_t""yes" 1>&6
6043 else
6044 echo "$ac_t""no" 1>&6
6045 fi
6046
6047
6048 enablestring=
6049 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
6050 echo "configure:6051: checking for --${enablestring:-enable}-calendar" >&5
6051 no_cache=0
6052 # Check whether --enable-calendar or --disable-calendar was given.
6053 if test "${enable_calendar+set}" = set; then
6054 enableval="$enable_calendar"
6055
6056 if test "$enableval" = yes; then
6057 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6058 else
6059 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6060 fi
6061
6062 else
6063
6064 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6065 if test "x$LINE" != x ; then
6066 eval "DEFAULT_$LINE"
6067 else
6068 no_cache=1
6069 fi
6070
6071 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6072
6073 fi
6074
6075
6076 eval "$ac_cv_use_calendar"
6077 if test "$no_cache" != 1; then
6078 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6079 fi
6080
6081 if test "$wxUSE_CALCTRL" = yes; then
6082 echo "$ac_t""yes" 1>&6
6083 else
6084 echo "$ac_t""no" 1>&6
6085 fi
6086
6087
6088 enablestring=
6089 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6090 echo "configure:6091: checking for --${enablestring:-enable}-caret" >&5
6091 no_cache=0
6092 # Check whether --enable-caret or --disable-caret was given.
6093 if test "${enable_caret+set}" = set; then
6094 enableval="$enable_caret"
6095
6096 if test "$enableval" = yes; then
6097 ac_cv_use_caret='wxUSE_CARET=yes'
6098 else
6099 ac_cv_use_caret='wxUSE_CARET=no'
6100 fi
6101
6102 else
6103
6104 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6105 if test "x$LINE" != x ; then
6106 eval "DEFAULT_$LINE"
6107 else
6108 no_cache=1
6109 fi
6110
6111 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6112
6113 fi
6114
6115
6116 eval "$ac_cv_use_caret"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_CARET" = yes; then
6122 echo "$ac_t""yes" 1>&6
6123 else
6124 echo "$ac_t""no" 1>&6
6125 fi
6126
6127
6128 enablestring=
6129 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6130 echo "configure:6131: checking for --${enablestring:-enable}-checkbox" >&5
6131 no_cache=0
6132 # Check whether --enable-checkbox or --disable-checkbox was given.
6133 if test "${enable_checkbox+set}" = set; then
6134 enableval="$enable_checkbox"
6135
6136 if test "$enableval" = yes; then
6137 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6138 else
6139 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6140 fi
6141
6142 else
6143
6144 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6145 if test "x$LINE" != x ; then
6146 eval "DEFAULT_$LINE"
6147 else
6148 no_cache=1
6149 fi
6150
6151 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6152
6153 fi
6154
6155
6156 eval "$ac_cv_use_checkbox"
6157 if test "$no_cache" != 1; then
6158 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6159 fi
6160
6161 if test "$wxUSE_CHECKBOX" = yes; then
6162 echo "$ac_t""yes" 1>&6
6163 else
6164 echo "$ac_t""no" 1>&6
6165 fi
6166
6167
6168 enablestring=
6169 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6170 echo "configure:6171: checking for --${enablestring:-enable}-checklst" >&5
6171 no_cache=0
6172 # Check whether --enable-checklst or --disable-checklst was given.
6173 if test "${enable_checklst+set}" = set; then
6174 enableval="$enable_checklst"
6175
6176 if test "$enableval" = yes; then
6177 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6178 else
6179 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6180 fi
6181
6182 else
6183
6184 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6185 if test "x$LINE" != x ; then
6186 eval "DEFAULT_$LINE"
6187 else
6188 no_cache=1
6189 fi
6190
6191 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6192
6193 fi
6194
6195
6196 eval "$ac_cv_use_checklst"
6197 if test "$no_cache" != 1; then
6198 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6199 fi
6200
6201 if test "$wxUSE_CHECKLST" = yes; then
6202 echo "$ac_t""yes" 1>&6
6203 else
6204 echo "$ac_t""no" 1>&6
6205 fi
6206
6207
6208 enablestring=
6209 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6210 echo "configure:6211: checking for --${enablestring:-enable}-choice" >&5
6211 no_cache=0
6212 # Check whether --enable-choice or --disable-choice was given.
6213 if test "${enable_choice+set}" = set; then
6214 enableval="$enable_choice"
6215
6216 if test "$enableval" = yes; then
6217 ac_cv_use_choice='wxUSE_CHOICE=yes'
6218 else
6219 ac_cv_use_choice='wxUSE_CHOICE=no'
6220 fi
6221
6222 else
6223
6224 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6225 if test "x$LINE" != x ; then
6226 eval "DEFAULT_$LINE"
6227 else
6228 no_cache=1
6229 fi
6230
6231 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6232
6233 fi
6234
6235
6236 eval "$ac_cv_use_choice"
6237 if test "$no_cache" != 1; then
6238 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6239 fi
6240
6241 if test "$wxUSE_CHOICE" = yes; then
6242 echo "$ac_t""yes" 1>&6
6243 else
6244 echo "$ac_t""no" 1>&6
6245 fi
6246
6247
6248 enablestring=
6249 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6250 echo "configure:6251: checking for --${enablestring:-enable}-combobox" >&5
6251 no_cache=0
6252 # Check whether --enable-combobox or --disable-combobox was given.
6253 if test "${enable_combobox+set}" = set; then
6254 enableval="$enable_combobox"
6255
6256 if test "$enableval" = yes; then
6257 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6258 else
6259 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6260 fi
6261
6262 else
6263
6264 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6265 if test "x$LINE" != x ; then
6266 eval "DEFAULT_$LINE"
6267 else
6268 no_cache=1
6269 fi
6270
6271 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6272
6273 fi
6274
6275
6276 eval "$ac_cv_use_combobox"
6277 if test "$no_cache" != 1; then
6278 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6279 fi
6280
6281 if test "$wxUSE_COMBOBOX" = yes; then
6282 echo "$ac_t""yes" 1>&6
6283 else
6284 echo "$ac_t""no" 1>&6
6285 fi
6286
6287
6288 enablestring=
6289 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6290 echo "configure:6291: checking for --${enablestring:-enable}-gauge" >&5
6291 no_cache=0
6292 # Check whether --enable-gauge or --disable-gauge was given.
6293 if test "${enable_gauge+set}" = set; then
6294 enableval="$enable_gauge"
6295
6296 if test "$enableval" = yes; then
6297 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6298 else
6299 ac_cv_use_gauge='wxUSE_GAUGE=no'
6300 fi
6301
6302 else
6303
6304 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6305 if test "x$LINE" != x ; then
6306 eval "DEFAULT_$LINE"
6307 else
6308 no_cache=1
6309 fi
6310
6311 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6312
6313 fi
6314
6315
6316 eval "$ac_cv_use_gauge"
6317 if test "$no_cache" != 1; then
6318 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6319 fi
6320
6321 if test "$wxUSE_GAUGE" = yes; then
6322 echo "$ac_t""yes" 1>&6
6323 else
6324 echo "$ac_t""no" 1>&6
6325 fi
6326
6327
6328 enablestring=
6329 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6330 echo "configure:6331: checking for --${enablestring:-enable}-grid" >&5
6331 no_cache=0
6332 # Check whether --enable-grid or --disable-grid was given.
6333 if test "${enable_grid+set}" = set; then
6334 enableval="$enable_grid"
6335
6336 if test "$enableval" = yes; then
6337 ac_cv_use_grid='wxUSE_GRID=yes'
6338 else
6339 ac_cv_use_grid='wxUSE_GRID=no'
6340 fi
6341
6342 else
6343
6344 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6345 if test "x$LINE" != x ; then
6346 eval "DEFAULT_$LINE"
6347 else
6348 no_cache=1
6349 fi
6350
6351 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6352
6353 fi
6354
6355
6356 eval "$ac_cv_use_grid"
6357 if test "$no_cache" != 1; then
6358 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6359 fi
6360
6361 if test "$wxUSE_GRID" = yes; then
6362 echo "$ac_t""yes" 1>&6
6363 else
6364 echo "$ac_t""no" 1>&6
6365 fi
6366
6367
6368 enablestring=
6369 echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6
6370 echo "configure:6371: checking for --${enablestring:-enable}-newgrid" >&5
6371 no_cache=0
6372 # Check whether --enable-newgrid or --disable-newgrid was given.
6373 if test "${enable_newgrid+set}" = set; then
6374 enableval="$enable_newgrid"
6375
6376 if test "$enableval" = yes; then
6377 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6378 else
6379 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6380 fi
6381
6382 else
6383
6384 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6385 if test "x$LINE" != x ; then
6386 eval "DEFAULT_$LINE"
6387 else
6388 no_cache=1
6389 fi
6390
6391 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6392
6393 fi
6394
6395
6396 eval "$ac_cv_use_newgrid"
6397 if test "$no_cache" != 1; then
6398 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6399 fi
6400
6401 if test "$wxUSE_NEW_GRID" = yes; then
6402 echo "$ac_t""yes" 1>&6
6403 else
6404 echo "$ac_t""no" 1>&6
6405 fi
6406
6407
6408 enablestring=
6409 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6410 echo "configure:6411: checking for --${enablestring:-enable}-imaglist" >&5
6411 no_cache=0
6412 # Check whether --enable-imaglist or --disable-imaglist was given.
6413 if test "${enable_imaglist+set}" = set; then
6414 enableval="$enable_imaglist"
6415
6416 if test "$enableval" = yes; then
6417 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6418 else
6419 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6420 fi
6421
6422 else
6423
6424 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6425 if test "x$LINE" != x ; then
6426 eval "DEFAULT_$LINE"
6427 else
6428 no_cache=1
6429 fi
6430
6431 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6432
6433 fi
6434
6435
6436 eval "$ac_cv_use_imaglist"
6437 if test "$no_cache" != 1; then
6438 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6439 fi
6440
6441 if test "$wxUSE_IMAGLIST" = yes; then
6442 echo "$ac_t""yes" 1>&6
6443 else
6444 echo "$ac_t""no" 1>&6
6445 fi
6446
6447
6448 enablestring=
6449 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6450 echo "configure:6451: checking for --${enablestring:-enable}-listbox" >&5
6451 no_cache=0
6452 # Check whether --enable-listbox or --disable-listbox was given.
6453 if test "${enable_listbox+set}" = set; then
6454 enableval="$enable_listbox"
6455
6456 if test "$enableval" = yes; then
6457 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6458 else
6459 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6460 fi
6461
6462 else
6463
6464 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6465 if test "x$LINE" != x ; then
6466 eval "DEFAULT_$LINE"
6467 else
6468 no_cache=1
6469 fi
6470
6471 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6472
6473 fi
6474
6475
6476 eval "$ac_cv_use_listbox"
6477 if test "$no_cache" != 1; then
6478 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6479 fi
6480
6481 if test "$wxUSE_LISTBOX" = yes; then
6482 echo "$ac_t""yes" 1>&6
6483 else
6484 echo "$ac_t""no" 1>&6
6485 fi
6486
6487
6488 enablestring=
6489 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6490 echo "configure:6491: checking for --${enablestring:-enable}-listctrl" >&5
6491 no_cache=0
6492 # Check whether --enable-listctrl or --disable-listctrl was given.
6493 if test "${enable_listctrl+set}" = set; then
6494 enableval="$enable_listctrl"
6495
6496 if test "$enableval" = yes; then
6497 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6498 else
6499 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6500 fi
6501
6502 else
6503
6504 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6505 if test "x$LINE" != x ; then
6506 eval "DEFAULT_$LINE"
6507 else
6508 no_cache=1
6509 fi
6510
6511 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6512
6513 fi
6514
6515
6516 eval "$ac_cv_use_listctrl"
6517 if test "$no_cache" != 1; then
6518 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6519 fi
6520
6521 if test "$wxUSE_LISTCTRL" = yes; then
6522 echo "$ac_t""yes" 1>&6
6523 else
6524 echo "$ac_t""no" 1>&6
6525 fi
6526
6527
6528 enablestring=
6529 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6530 echo "configure:6531: checking for --${enablestring:-enable}-notebook" >&5
6531 no_cache=0
6532 # Check whether --enable-notebook or --disable-notebook was given.
6533 if test "${enable_notebook+set}" = set; then
6534 enableval="$enable_notebook"
6535
6536 if test "$enableval" = yes; then
6537 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6538 else
6539 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6540 fi
6541
6542 else
6543
6544 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6552
6553 fi
6554
6555
6556 eval "$ac_cv_use_notebook"
6557 if test "$no_cache" != 1; then
6558 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6559 fi
6560
6561 if test "$wxUSE_NOTEBOOK" = yes; then
6562 echo "$ac_t""yes" 1>&6
6563 else
6564 echo "$ac_t""no" 1>&6
6565 fi
6566
6567
6568 enablestring=
6569 echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
6570 echo "configure:6571: checking for --${enablestring:-enable}-propsheet" >&5
6571 no_cache=0
6572 # Check whether --enable-propsheet or --disable-propsheet was given.
6573 if test "${enable_propsheet+set}" = set; then
6574 enableval="$enable_propsheet"
6575
6576 if test "$enableval" = yes; then
6577 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6578 else
6579 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6580 fi
6581
6582 else
6583
6584 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6585 if test "x$LINE" != x ; then
6586 eval "DEFAULT_$LINE"
6587 else
6588 no_cache=1
6589 fi
6590
6591 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6592
6593 fi
6594
6595
6596 eval "$ac_cv_use_propsheet"
6597 if test "$no_cache" != 1; then
6598 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6599 fi
6600
6601 if test "$wxUSE_PROPSHEET" = yes; then
6602 echo "$ac_t""yes" 1>&6
6603 else
6604 echo "$ac_t""no" 1>&6
6605 fi
6606
6607
6608 enablestring=
6609 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6610 echo "configure:6611: checking for --${enablestring:-enable}-radiobox" >&5
6611 no_cache=0
6612 # Check whether --enable-radiobox or --disable-radiobox was given.
6613 if test "${enable_radiobox+set}" = set; then
6614 enableval="$enable_radiobox"
6615
6616 if test "$enableval" = yes; then
6617 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6618 else
6619 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6620 fi
6621
6622 else
6623
6624 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6625 if test "x$LINE" != x ; then
6626 eval "DEFAULT_$LINE"
6627 else
6628 no_cache=1
6629 fi
6630
6631 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6632
6633 fi
6634
6635
6636 eval "$ac_cv_use_radiobox"
6637 if test "$no_cache" != 1; then
6638 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6639 fi
6640
6641 if test "$wxUSE_RADIOBOX" = yes; then
6642 echo "$ac_t""yes" 1>&6
6643 else
6644 echo "$ac_t""no" 1>&6
6645 fi
6646
6647
6648 enablestring=
6649 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6650 echo "configure:6651: checking for --${enablestring:-enable}-radiobtn" >&5
6651 no_cache=0
6652 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6653 if test "${enable_radiobtn+set}" = set; then
6654 enableval="$enable_radiobtn"
6655
6656 if test "$enableval" = yes; then
6657 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6658 else
6659 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6660 fi
6661
6662 else
6663
6664 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6665 if test "x$LINE" != x ; then
6666 eval "DEFAULT_$LINE"
6667 else
6668 no_cache=1
6669 fi
6670
6671 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6672
6673 fi
6674
6675
6676 eval "$ac_cv_use_radiobtn"
6677 if test "$no_cache" != 1; then
6678 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6679 fi
6680
6681 if test "$wxUSE_RADIOBTN" = yes; then
6682 echo "$ac_t""yes" 1>&6
6683 else
6684 echo "$ac_t""no" 1>&6
6685 fi
6686
6687
6688 enablestring=
6689 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6690 echo "configure:6691: checking for --${enablestring:-enable}-sash" >&5
6691 no_cache=0
6692 # Check whether --enable-sash or --disable-sash was given.
6693 if test "${enable_sash+set}" = set; then
6694 enableval="$enable_sash"
6695
6696 if test "$enableval" = yes; then
6697 ac_cv_use_sash='wxUSE_SASH=yes'
6698 else
6699 ac_cv_use_sash='wxUSE_SASH=no'
6700 fi
6701
6702 else
6703
6704 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6712
6713 fi
6714
6715
6716 eval "$ac_cv_use_sash"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_SASH" = yes; then
6722 echo "$ac_t""yes" 1>&6
6723 else
6724 echo "$ac_t""no" 1>&6
6725 fi
6726
6727
6728 enablestring=
6729 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6730 echo "configure:6731: checking for --${enablestring:-enable}-scrollbar" >&5
6731 no_cache=0
6732 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6733 if test "${enable_scrollbar+set}" = set; then
6734 enableval="$enable_scrollbar"
6735
6736 if test "$enableval" = yes; then
6737 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6738 else
6739 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6740 fi
6741
6742 else
6743
6744 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6745 if test "x$LINE" != x ; then
6746 eval "DEFAULT_$LINE"
6747 else
6748 no_cache=1
6749 fi
6750
6751 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6752
6753 fi
6754
6755
6756 eval "$ac_cv_use_scrollbar"
6757 if test "$no_cache" != 1; then
6758 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6759 fi
6760
6761 if test "$wxUSE_SCROLLBAR" = yes; then
6762 echo "$ac_t""yes" 1>&6
6763 else
6764 echo "$ac_t""no" 1>&6
6765 fi
6766
6767
6768 enablestring=
6769 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6770 echo "configure:6771: checking for --${enablestring:-enable}-slider" >&5
6771 no_cache=0
6772 # Check whether --enable-slider or --disable-slider was given.
6773 if test "${enable_slider+set}" = set; then
6774 enableval="$enable_slider"
6775
6776 if test "$enableval" = yes; then
6777 ac_cv_use_slider='wxUSE_SLIDER=yes'
6778 else
6779 ac_cv_use_slider='wxUSE_SLIDER=no'
6780 fi
6781
6782 else
6783
6784 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6785 if test "x$LINE" != x ; then
6786 eval "DEFAULT_$LINE"
6787 else
6788 no_cache=1
6789 fi
6790
6791 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6792
6793 fi
6794
6795
6796 eval "$ac_cv_use_slider"
6797 if test "$no_cache" != 1; then
6798 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6799 fi
6800
6801 if test "$wxUSE_SLIDER" = yes; then
6802 echo "$ac_t""yes" 1>&6
6803 else
6804 echo "$ac_t""no" 1>&6
6805 fi
6806
6807
6808 enablestring=
6809 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6810 echo "configure:6811: checking for --${enablestring:-enable}-spinbtn" >&5
6811 no_cache=0
6812 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6813 if test "${enable_spinbtn+set}" = set; then
6814 enableval="$enable_spinbtn"
6815
6816 if test "$enableval" = yes; then
6817 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6818 else
6819 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6820 fi
6821
6822 else
6823
6824 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6825 if test "x$LINE" != x ; then
6826 eval "DEFAULT_$LINE"
6827 else
6828 no_cache=1
6829 fi
6830
6831 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6832
6833 fi
6834
6835
6836 eval "$ac_cv_use_spinbtn"
6837 if test "$no_cache" != 1; then
6838 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6839 fi
6840
6841 if test "$wxUSE_SPINBTN" = yes; then
6842 echo "$ac_t""yes" 1>&6
6843 else
6844 echo "$ac_t""no" 1>&6
6845 fi
6846
6847
6848 enablestring=
6849 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6850 echo "configure:6851: checking for --${enablestring:-enable}-spinctrl" >&5
6851 no_cache=0
6852 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6853 if test "${enable_spinctrl+set}" = set; then
6854 enableval="$enable_spinctrl"
6855
6856 if test "$enableval" = yes; then
6857 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6858 else
6859 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6860 fi
6861
6862 else
6863
6864 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6865 if test "x$LINE" != x ; then
6866 eval "DEFAULT_$LINE"
6867 else
6868 no_cache=1
6869 fi
6870
6871 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6872
6873 fi
6874
6875
6876 eval "$ac_cv_use_spinctrl"
6877 if test "$no_cache" != 1; then
6878 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6879 fi
6880
6881 if test "$wxUSE_SPINCTRL" = yes; then
6882 echo "$ac_t""yes" 1>&6
6883 else
6884 echo "$ac_t""no" 1>&6
6885 fi
6886
6887
6888 enablestring=
6889 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6890 echo "configure:6891: checking for --${enablestring:-enable}-splitter" >&5
6891 no_cache=0
6892 # Check whether --enable-splitter or --disable-splitter was given.
6893 if test "${enable_splitter+set}" = set; then
6894 enableval="$enable_splitter"
6895
6896 if test "$enableval" = yes; then
6897 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6898 else
6899 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6900 fi
6901
6902 else
6903
6904 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6912
6913 fi
6914
6915
6916 eval "$ac_cv_use_splitter"
6917 if test "$no_cache" != 1; then
6918 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6919 fi
6920
6921 if test "$wxUSE_SPLITTER" = yes; then
6922 echo "$ac_t""yes" 1>&6
6923 else
6924 echo "$ac_t""no" 1>&6
6925 fi
6926
6927
6928 enablestring=
6929 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6930 echo "configure:6931: checking for --${enablestring:-enable}-statbmp" >&5
6931 no_cache=0
6932 # Check whether --enable-statbmp or --disable-statbmp was given.
6933 if test "${enable_statbmp+set}" = set; then
6934 enableval="$enable_statbmp"
6935
6936 if test "$enableval" = yes; then
6937 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6938 else
6939 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6940 fi
6941
6942 else
6943
6944 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6945 if test "x$LINE" != x ; then
6946 eval "DEFAULT_$LINE"
6947 else
6948 no_cache=1
6949 fi
6950
6951 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6952
6953 fi
6954
6955
6956 eval "$ac_cv_use_statbmp"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_STATBMP" = yes; then
6962 echo "$ac_t""yes" 1>&6
6963 else
6964 echo "$ac_t""no" 1>&6
6965 fi
6966
6967
6968 enablestring=
6969 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6970 echo "configure:6971: checking for --${enablestring:-enable}-statbox" >&5
6971 no_cache=0
6972 # Check whether --enable-statbox or --disable-statbox was given.
6973 if test "${enable_statbox+set}" = set; then
6974 enableval="$enable_statbox"
6975
6976 if test "$enableval" = yes; then
6977 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6978 else
6979 ac_cv_use_statbox='wxUSE_STATBOX=no'
6980 fi
6981
6982 else
6983
6984 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6985 if test "x$LINE" != x ; then
6986 eval "DEFAULT_$LINE"
6987 else
6988 no_cache=1
6989 fi
6990
6991 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6992
6993 fi
6994
6995
6996 eval "$ac_cv_use_statbox"
6997 if test "$no_cache" != 1; then
6998 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6999 fi
7000
7001 if test "$wxUSE_STATBOX" = yes; then
7002 echo "$ac_t""yes" 1>&6
7003 else
7004 echo "$ac_t""no" 1>&6
7005 fi
7006
7007
7008 enablestring=
7009 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
7010 echo "configure:7011: checking for --${enablestring:-enable}-statline" >&5
7011 no_cache=0
7012 # Check whether --enable-statline or --disable-statline was given.
7013 if test "${enable_statline+set}" = set; then
7014 enableval="$enable_statline"
7015
7016 if test "$enableval" = yes; then
7017 ac_cv_use_statline='wxUSE_STATLINE=yes'
7018 else
7019 ac_cv_use_statline='wxUSE_STATLINE=no'
7020 fi
7021
7022 else
7023
7024 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7032
7033 fi
7034
7035
7036 eval "$ac_cv_use_statline"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_STATLINE" = yes; then
7042 echo "$ac_t""yes" 1>&6
7043 else
7044 echo "$ac_t""no" 1>&6
7045 fi
7046
7047
7048 enablestring=
7049 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
7050 echo "configure:7051: checking for --${enablestring:-enable}-stattext" >&5
7051 no_cache=0
7052 # Check whether --enable-stattext or --disable-stattext was given.
7053 if test "${enable_stattext+set}" = set; then
7054 enableval="$enable_stattext"
7055
7056 if test "$enableval" = yes; then
7057 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7058 else
7059 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7060 fi
7061
7062 else
7063
7064 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7065 if test "x$LINE" != x ; then
7066 eval "DEFAULT_$LINE"
7067 else
7068 no_cache=1
7069 fi
7070
7071 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7072
7073 fi
7074
7075
7076 eval "$ac_cv_use_stattext"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_STATTEXT" = yes; then
7082 echo "$ac_t""yes" 1>&6
7083 else
7084 echo "$ac_t""no" 1>&6
7085 fi
7086
7087
7088 enablestring=
7089 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
7090 echo "configure:7091: checking for --${enablestring:-enable}-statusbar" >&5
7091 no_cache=0
7092 # Check whether --enable-statusbar or --disable-statusbar was given.
7093 if test "${enable_statusbar+set}" = set; then
7094 enableval="$enable_statusbar"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7098 else
7099 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7100 fi
7101
7102 else
7103
7104 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7112
7113 fi
7114
7115
7116 eval "$ac_cv_use_statusbar"
7117 if test "$no_cache" != 1; then
7118 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7119 fi
7120
7121 if test "$wxUSE_STATUSBAR" = yes; then
7122 echo "$ac_t""yes" 1>&6
7123 else
7124 echo "$ac_t""no" 1>&6
7125 fi
7126
7127
7128 enablestring=
7129 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7130 echo "configure:7131: checking for --${enablestring:-enable}-tabdialog" >&5
7131 no_cache=0
7132 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7133 if test "${enable_tabdialog+set}" = set; then
7134 enableval="$enable_tabdialog"
7135
7136 if test "$enableval" = yes; then
7137 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7138 else
7139 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7140 fi
7141
7142 else
7143
7144 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7152
7153 fi
7154
7155
7156 eval "$ac_cv_use_tabdialog"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_TABDIALOG" = yes; then
7162 echo "$ac_t""yes" 1>&6
7163 else
7164 echo "$ac_t""no" 1>&6
7165 fi
7166
7167
7168 enablestring=
7169 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7170 echo "configure:7171: checking for --${enablestring:-enable}-textctrl" >&5
7171 no_cache=0
7172 # Check whether --enable-textctrl or --disable-textctrl was given.
7173 if test "${enable_textctrl+set}" = set; then
7174 enableval="$enable_textctrl"
7175
7176 if test "$enableval" = yes; then
7177 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7178 else
7179 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7180 fi
7181
7182 else
7183
7184 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7185 if test "x$LINE" != x ; then
7186 eval "DEFAULT_$LINE"
7187 else
7188 no_cache=1
7189 fi
7190
7191 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7192
7193 fi
7194
7195
7196 eval "$ac_cv_use_textctrl"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_TEXTCTRL" = yes; then
7202 echo "$ac_t""yes" 1>&6
7203 else
7204 echo "$ac_t""no" 1>&6
7205 fi
7206
7207
7208 enablestring=
7209 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7210 echo "configure:7211: checking for --${enablestring:-enable}-togglebtn" >&5
7211 no_cache=0
7212 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7213 if test "${enable_togglebtn+set}" = set; then
7214 enableval="$enable_togglebtn"
7215
7216 if test "$enableval" = yes; then
7217 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7218 else
7219 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7220 fi
7221
7222 else
7223
7224 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7225 if test "x$LINE" != x ; then
7226 eval "DEFAULT_$LINE"
7227 else
7228 no_cache=1
7229 fi
7230
7231 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7232
7233 fi
7234
7235
7236 eval "$ac_cv_use_togglebtn"
7237 if test "$no_cache" != 1; then
7238 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7239 fi
7240
7241 if test "$wxUSE_TOGGLEBTN" = yes; then
7242 echo "$ac_t""yes" 1>&6
7243 else
7244 echo "$ac_t""no" 1>&6
7245 fi
7246
7247
7248 enablestring=
7249 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7250 echo "configure:7251: checking for --${enablestring:-enable}-toolbar" >&5
7251 no_cache=0
7252 # Check whether --enable-toolbar or --disable-toolbar was given.
7253 if test "${enable_toolbar+set}" = set; then
7254 enableval="$enable_toolbar"
7255
7256 if test "$enableval" = yes; then
7257 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7258 else
7259 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7260 fi
7261
7262 else
7263
7264 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7265 if test "x$LINE" != x ; then
7266 eval "DEFAULT_$LINE"
7267 else
7268 no_cache=1
7269 fi
7270
7271 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7272
7273 fi
7274
7275
7276 eval "$ac_cv_use_toolbar"
7277 if test "$no_cache" != 1; then
7278 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7279 fi
7280
7281 if test "$wxUSE_TOOLBAR" = yes; then
7282 echo "$ac_t""yes" 1>&6
7283 else
7284 echo "$ac_t""no" 1>&6
7285 fi
7286
7287
7288 enablestring=
7289 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7290 echo "configure:7291: checking for --${enablestring:-enable}-tbarnative" >&5
7291 no_cache=0
7292 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7293 if test "${enable_tbarnative+set}" = set; then
7294 enableval="$enable_tbarnative"
7295
7296 if test "$enableval" = yes; then
7297 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7298 else
7299 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7300 fi
7301
7302 else
7303
7304 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7305 if test "x$LINE" != x ; then
7306 eval "DEFAULT_$LINE"
7307 else
7308 no_cache=1
7309 fi
7310
7311 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7312
7313 fi
7314
7315
7316 eval "$ac_cv_use_tbarnative"
7317 if test "$no_cache" != 1; then
7318 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7319 fi
7320
7321 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7322 echo "$ac_t""yes" 1>&6
7323 else
7324 echo "$ac_t""no" 1>&6
7325 fi
7326
7327
7328 enablestring=
7329 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7330 echo "configure:7331: checking for --${enablestring:-enable}-tbarsmpl" >&5
7331 no_cache=0
7332 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7333 if test "${enable_tbarsmpl+set}" = set; then
7334 enableval="$enable_tbarsmpl"
7335
7336 if test "$enableval" = yes; then
7337 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7338 else
7339 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7340 fi
7341
7342 else
7343
7344 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7345 if test "x$LINE" != x ; then
7346 eval "DEFAULT_$LINE"
7347 else
7348 no_cache=1
7349 fi
7350
7351 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7352
7353 fi
7354
7355
7356 eval "$ac_cv_use_tbarsmpl"
7357 if test "$no_cache" != 1; then
7358 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7359 fi
7360
7361 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7362 echo "$ac_t""yes" 1>&6
7363 else
7364 echo "$ac_t""no" 1>&6
7365 fi
7366
7367
7368 enablestring=
7369 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7370 echo "configure:7371: checking for --${enablestring:-enable}-treectrl" >&5
7371 no_cache=0
7372 # Check whether --enable-treectrl or --disable-treectrl was given.
7373 if test "${enable_treectrl+set}" = set; then
7374 enableval="$enable_treectrl"
7375
7376 if test "$enableval" = yes; then
7377 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7378 else
7379 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7380 fi
7381
7382 else
7383
7384 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7385 if test "x$LINE" != x ; then
7386 eval "DEFAULT_$LINE"
7387 else
7388 no_cache=1
7389 fi
7390
7391 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7392
7393 fi
7394
7395
7396 eval "$ac_cv_use_treectrl"
7397 if test "$no_cache" != 1; then
7398 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7399 fi
7400
7401 if test "$wxUSE_TREECTRL" = yes; then
7402 echo "$ac_t""yes" 1>&6
7403 else
7404 echo "$ac_t""no" 1>&6
7405 fi
7406
7407
7408 enablestring=
7409 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7410 echo "configure:7411: checking for --${enablestring:-enable}-tipwindow" >&5
7411 no_cache=0
7412 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7413 if test "${enable_tipwindow+set}" = set; then
7414 enableval="$enable_tipwindow"
7415
7416 if test "$enableval" = yes; then
7417 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7418 else
7419 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7420 fi
7421
7422 else
7423
7424 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7425 if test "x$LINE" != x ; then
7426 eval "DEFAULT_$LINE"
7427 else
7428 no_cache=1
7429 fi
7430
7431 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7432
7433 fi
7434
7435
7436 eval "$ac_cv_use_tipwindow"
7437 if test "$no_cache" != 1; then
7438 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7439 fi
7440
7441 if test "$wxUSE_TIPWINDOW" = yes; then
7442 echo "$ac_t""yes" 1>&6
7443 else
7444 echo "$ac_t""no" 1>&6
7445 fi
7446
7447
7448 enablestring=
7449 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7450 echo "configure:7451: checking for --${enablestring:-enable}-popupwin" >&5
7451 no_cache=0
7452 # Check whether --enable-popupwin or --disable-popupwin was given.
7453 if test "${enable_popupwin+set}" = set; then
7454 enableval="$enable_popupwin"
7455
7456 if test "$enableval" = yes; then
7457 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7458 else
7459 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7460 fi
7461
7462 else
7463
7464 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7465 if test "x$LINE" != x ; then
7466 eval "DEFAULT_$LINE"
7467 else
7468 no_cache=1
7469 fi
7470
7471 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7472
7473 fi
7474
7475
7476 eval "$ac_cv_use_popupwin"
7477 if test "$no_cache" != 1; then
7478 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7479 fi
7480
7481 if test "$wxUSE_POPUPWIN" = yes; then
7482 echo "$ac_t""yes" 1>&6
7483 else
7484 echo "$ac_t""no" 1>&6
7485 fi
7486
7487
7488
7489
7490 enablestring=
7491 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7492 echo "configure:7493: checking for --${enablestring:-enable}-commondlg" >&5
7493 no_cache=0
7494 # Check whether --enable-commondlg or --disable-commondlg was given.
7495 if test "${enable_commondlg+set}" = set; then
7496 enableval="$enable_commondlg"
7497
7498 if test "$enableval" = yes; then
7499 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7500 else
7501 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7502 fi
7503
7504 else
7505
7506 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7507 if test "x$LINE" != x ; then
7508 eval "DEFAULT_$LINE"
7509 else
7510 no_cache=1
7511 fi
7512
7513 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7514
7515 fi
7516
7517
7518 eval "$ac_cv_use_commondlg"
7519 if test "$no_cache" != 1; then
7520 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7521 fi
7522
7523 if test "$wxUSE_COMMONDLGS" = yes; then
7524 echo "$ac_t""yes" 1>&6
7525 else
7526 echo "$ac_t""no" 1>&6
7527 fi
7528
7529
7530 enablestring=
7531 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7532 echo "configure:7533: checking for --${enablestring:-enable}-choicedlg" >&5
7533 no_cache=0
7534 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7535 if test "${enable_choicedlg+set}" = set; then
7536 enableval="$enable_choicedlg"
7537
7538 if test "$enableval" = yes; then
7539 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7540 else
7541 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7542 fi
7543
7544 else
7545
7546 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7547 if test "x$LINE" != x ; then
7548 eval "DEFAULT_$LINE"
7549 else
7550 no_cache=1
7551 fi
7552
7553 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7554
7555 fi
7556
7557
7558 eval "$ac_cv_use_choicedlg"
7559 if test "$no_cache" != 1; then
7560 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7561 fi
7562
7563 if test "$wxUSE_CHOICEDLG" = yes; then
7564 echo "$ac_t""yes" 1>&6
7565 else
7566 echo "$ac_t""no" 1>&6
7567 fi
7568
7569
7570 enablestring=
7571 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7572 echo "configure:7573: checking for --${enablestring:-enable}-coldlg" >&5
7573 no_cache=0
7574 # Check whether --enable-coldlg or --disable-coldlg was given.
7575 if test "${enable_coldlg+set}" = set; then
7576 enableval="$enable_coldlg"
7577
7578 if test "$enableval" = yes; then
7579 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7580 else
7581 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7582 fi
7583
7584 else
7585
7586 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7587 if test "x$LINE" != x ; then
7588 eval "DEFAULT_$LINE"
7589 else
7590 no_cache=1
7591 fi
7592
7593 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7594
7595 fi
7596
7597
7598 eval "$ac_cv_use_coldlg"
7599 if test "$no_cache" != 1; then
7600 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7601 fi
7602
7603 if test "$wxUSE_COLOURDLG" = yes; then
7604 echo "$ac_t""yes" 1>&6
7605 else
7606 echo "$ac_t""no" 1>&6
7607 fi
7608
7609
7610 enablestring=
7611 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7612 echo "configure:7613: checking for --${enablestring:-enable}-filedlg" >&5
7613 no_cache=0
7614 # Check whether --enable-filedlg or --disable-filedlg was given.
7615 if test "${enable_filedlg+set}" = set; then
7616 enableval="$enable_filedlg"
7617
7618 if test "$enableval" = yes; then
7619 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7620 else
7621 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7622 fi
7623
7624 else
7625
7626 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7627 if test "x$LINE" != x ; then
7628 eval "DEFAULT_$LINE"
7629 else
7630 no_cache=1
7631 fi
7632
7633 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7634
7635 fi
7636
7637
7638 eval "$ac_cv_use_filedlg"
7639 if test "$no_cache" != 1; then
7640 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7641 fi
7642
7643 if test "$wxUSE_FILEDLG" = yes; then
7644 echo "$ac_t""yes" 1>&6
7645 else
7646 echo "$ac_t""no" 1>&6
7647 fi
7648
7649
7650 enablestring=
7651 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7652 echo "configure:7653: checking for --${enablestring:-enable}-finddlg" >&5
7653 no_cache=0
7654 # Check whether --enable-finddlg or --disable-finddlg was given.
7655 if test "${enable_finddlg+set}" = set; then
7656 enableval="$enable_finddlg"
7657
7658 if test "$enableval" = yes; then
7659 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7660 else
7661 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7662 fi
7663
7664 else
7665
7666 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7667 if test "x$LINE" != x ; then
7668 eval "DEFAULT_$LINE"
7669 else
7670 no_cache=1
7671 fi
7672
7673 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7674
7675 fi
7676
7677
7678 eval "$ac_cv_use_finddlg"
7679 if test "$no_cache" != 1; then
7680 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7681 fi
7682
7683 if test "$wxUSE_FINDREPLDLG" = yes; then
7684 echo "$ac_t""yes" 1>&6
7685 else
7686 echo "$ac_t""no" 1>&6
7687 fi
7688
7689
7690 enablestring=
7691 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7692 echo "configure:7693: checking for --${enablestring:-enable}-fontdlg" >&5
7693 no_cache=0
7694 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7695 if test "${enable_fontdlg+set}" = set; then
7696 enableval="$enable_fontdlg"
7697
7698 if test "$enableval" = yes; then
7699 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7700 else
7701 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7702 fi
7703
7704 else
7705
7706 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7707 if test "x$LINE" != x ; then
7708 eval "DEFAULT_$LINE"
7709 else
7710 no_cache=1
7711 fi
7712
7713 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7714
7715 fi
7716
7717
7718 eval "$ac_cv_use_fontdlg"
7719 if test "$no_cache" != 1; then
7720 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7721 fi
7722
7723 if test "$wxUSE_FONTDLG" = yes; then
7724 echo "$ac_t""yes" 1>&6
7725 else
7726 echo "$ac_t""no" 1>&6
7727 fi
7728
7729
7730 enablestring=
7731 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7732 echo "configure:7733: checking for --${enablestring:-enable}-dirdlg" >&5
7733 no_cache=0
7734 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7735 if test "${enable_dirdlg+set}" = set; then
7736 enableval="$enable_dirdlg"
7737
7738 if test "$enableval" = yes; then
7739 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7740 else
7741 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7742 fi
7743
7744 else
7745
7746 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7747 if test "x$LINE" != x ; then
7748 eval "DEFAULT_$LINE"
7749 else
7750 no_cache=1
7751 fi
7752
7753 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7754
7755 fi
7756
7757
7758 eval "$ac_cv_use_dirdlg"
7759 if test "$no_cache" != 1; then
7760 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7761 fi
7762
7763 if test "$wxUSE_DIRDLG" = yes; then
7764 echo "$ac_t""yes" 1>&6
7765 else
7766 echo "$ac_t""no" 1>&6
7767 fi
7768
7769
7770 enablestring=
7771 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7772 echo "configure:7773: checking for --${enablestring:-enable}-msgdlg" >&5
7773 no_cache=0
7774 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7775 if test "${enable_msgdlg+set}" = set; then
7776 enableval="$enable_msgdlg"
7777
7778 if test "$enableval" = yes; then
7779 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7780 else
7781 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7782 fi
7783
7784 else
7785
7786 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7787 if test "x$LINE" != x ; then
7788 eval "DEFAULT_$LINE"
7789 else
7790 no_cache=1
7791 fi
7792
7793 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7794
7795 fi
7796
7797
7798 eval "$ac_cv_use_msgdlg"
7799 if test "$no_cache" != 1; then
7800 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7801 fi
7802
7803 if test "$wxUSE_MSGDLG" = yes; then
7804 echo "$ac_t""yes" 1>&6
7805 else
7806 echo "$ac_t""no" 1>&6
7807 fi
7808
7809
7810 enablestring=
7811 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7812 echo "configure:7813: checking for --${enablestring:-enable}-numberdlg" >&5
7813 no_cache=0
7814 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7815 if test "${enable_numberdlg+set}" = set; then
7816 enableval="$enable_numberdlg"
7817
7818 if test "$enableval" = yes; then
7819 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7820 else
7821 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7822 fi
7823
7824 else
7825
7826 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7827 if test "x$LINE" != x ; then
7828 eval "DEFAULT_$LINE"
7829 else
7830 no_cache=1
7831 fi
7832
7833 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7834
7835 fi
7836
7837
7838 eval "$ac_cv_use_numberdlg"
7839 if test "$no_cache" != 1; then
7840 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7841 fi
7842
7843 if test "$wxUSE_NUMBERDLG" = yes; then
7844 echo "$ac_t""yes" 1>&6
7845 else
7846 echo "$ac_t""no" 1>&6
7847 fi
7848
7849
7850 enablestring=
7851 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7852 echo "configure:7853: checking for --${enablestring:-enable}-splash" >&5
7853 no_cache=0
7854 # Check whether --enable-splash or --disable-splash was given.
7855 if test "${enable_splash+set}" = set; then
7856 enableval="$enable_splash"
7857
7858 if test "$enableval" = yes; then
7859 ac_cv_use_splash='wxUSE_SPLASH=yes'
7860 else
7861 ac_cv_use_splash='wxUSE_SPLASH=no'
7862 fi
7863
7864 else
7865
7866 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7867 if test "x$LINE" != x ; then
7868 eval "DEFAULT_$LINE"
7869 else
7870 no_cache=1
7871 fi
7872
7873 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7874
7875 fi
7876
7877
7878 eval "$ac_cv_use_splash"
7879 if test "$no_cache" != 1; then
7880 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7881 fi
7882
7883 if test "$wxUSE_SPLASH" = yes; then
7884 echo "$ac_t""yes" 1>&6
7885 else
7886 echo "$ac_t""no" 1>&6
7887 fi
7888
7889
7890 enablestring=
7891 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7892 echo "configure:7893: checking for --${enablestring:-enable}-textdlg" >&5
7893 no_cache=0
7894 # Check whether --enable-textdlg or --disable-textdlg was given.
7895 if test "${enable_textdlg+set}" = set; then
7896 enableval="$enable_textdlg"
7897
7898 if test "$enableval" = yes; then
7899 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7900 else
7901 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7902 fi
7903
7904 else
7905
7906 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7907 if test "x$LINE" != x ; then
7908 eval "DEFAULT_$LINE"
7909 else
7910 no_cache=1
7911 fi
7912
7913 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7914
7915 fi
7916
7917
7918 eval "$ac_cv_use_textdlg"
7919 if test "$no_cache" != 1; then
7920 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7921 fi
7922
7923 if test "$wxUSE_TEXTDLG" = yes; then
7924 echo "$ac_t""yes" 1>&6
7925 else
7926 echo "$ac_t""no" 1>&6
7927 fi
7928
7929
7930 enablestring=
7931 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7932 echo "configure:7933: checking for --${enablestring:-enable}-tipdlg" >&5
7933 no_cache=0
7934 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7935 if test "${enable_tipdlg+set}" = set; then
7936 enableval="$enable_tipdlg"
7937
7938 if test "$enableval" = yes; then
7939 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7940 else
7941 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7942 fi
7943
7944 else
7945
7946 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7947 if test "x$LINE" != x ; then
7948 eval "DEFAULT_$LINE"
7949 else
7950 no_cache=1
7951 fi
7952
7953 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7954
7955 fi
7956
7957
7958 eval "$ac_cv_use_tipdlg"
7959 if test "$no_cache" != 1; then
7960 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7961 fi
7962
7963 if test "$wxUSE_STARTUP_TIPS" = yes; then
7964 echo "$ac_t""yes" 1>&6
7965 else
7966 echo "$ac_t""no" 1>&6
7967 fi
7968
7969
7970 enablestring=
7971 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7972 echo "configure:7973: checking for --${enablestring:-enable}-progressdlg" >&5
7973 no_cache=0
7974 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7975 if test "${enable_progressdlg+set}" = set; then
7976 enableval="$enable_progressdlg"
7977
7978 if test "$enableval" = yes; then
7979 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7980 else
7981 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7982 fi
7983
7984 else
7985
7986 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7987 if test "x$LINE" != x ; then
7988 eval "DEFAULT_$LINE"
7989 else
7990 no_cache=1
7991 fi
7992
7993 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7994
7995 fi
7996
7997
7998 eval "$ac_cv_use_progressdlg"
7999 if test "$no_cache" != 1; then
8000 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8001 fi
8002
8003 if test "$wxUSE_PROGRESSDLG" = yes; then
8004 echo "$ac_t""yes" 1>&6
8005 else
8006 echo "$ac_t""no" 1>&6
8007 fi
8008
8009
8010 enablestring=
8011 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
8012 echo "configure:8013: checking for --${enablestring:-enable}-wizarddlg" >&5
8013 no_cache=0
8014 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8015 if test "${enable_wizarddlg+set}" = set; then
8016 enableval="$enable_wizarddlg"
8017
8018 if test "$enableval" = yes; then
8019 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8020 else
8021 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8022 fi
8023
8024 else
8025
8026 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8027 if test "x$LINE" != x ; then
8028 eval "DEFAULT_$LINE"
8029 else
8030 no_cache=1
8031 fi
8032
8033 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8034
8035 fi
8036
8037
8038 eval "$ac_cv_use_wizarddlg"
8039 if test "$no_cache" != 1; then
8040 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8041 fi
8042
8043 if test "$wxUSE_WIZARDDLG" = yes; then
8044 echo "$ac_t""yes" 1>&6
8045 else
8046 echo "$ac_t""no" 1>&6
8047 fi
8048
8049
8050
8051
8052 enablestring=
8053 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
8054 echo "configure:8055: checking for --${enablestring:-enable}-menus" >&5
8055 no_cache=0
8056 # Check whether --enable-menus or --disable-menus was given.
8057 if test "${enable_menus+set}" = set; then
8058 enableval="$enable_menus"
8059
8060 if test "$enableval" = yes; then
8061 ac_cv_use_menus='wxUSE_MENUS=yes'
8062 else
8063 ac_cv_use_menus='wxUSE_MENUS=no'
8064 fi
8065
8066 else
8067
8068 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8069 if test "x$LINE" != x ; then
8070 eval "DEFAULT_$LINE"
8071 else
8072 no_cache=1
8073 fi
8074
8075 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8076
8077 fi
8078
8079
8080 eval "$ac_cv_use_menus"
8081 if test "$no_cache" != 1; then
8082 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8083 fi
8084
8085 if test "$wxUSE_MENUS" = yes; then
8086 echo "$ac_t""yes" 1>&6
8087 else
8088 echo "$ac_t""no" 1>&6
8089 fi
8090
8091
8092 enablestring=
8093 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
8094 echo "configure:8095: checking for --${enablestring:-enable}-miniframe" >&5
8095 no_cache=0
8096 # Check whether --enable-miniframe or --disable-miniframe was given.
8097 if test "${enable_miniframe+set}" = set; then
8098 enableval="$enable_miniframe"
8099
8100 if test "$enableval" = yes; then
8101 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8102 else
8103 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8104 fi
8105
8106 else
8107
8108 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8116
8117 fi
8118
8119
8120 eval "$ac_cv_use_miniframe"
8121 if test "$no_cache" != 1; then
8122 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8123 fi
8124
8125 if test "$wxUSE_MINIFRAME" = yes; then
8126 echo "$ac_t""yes" 1>&6
8127 else
8128 echo "$ac_t""no" 1>&6
8129 fi
8130
8131
8132 enablestring=
8133 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8134 echo "configure:8135: checking for --${enablestring:-enable}-tooltips" >&5
8135 no_cache=0
8136 # Check whether --enable-tooltips or --disable-tooltips was given.
8137 if test "${enable_tooltips+set}" = set; then
8138 enableval="$enable_tooltips"
8139
8140 if test "$enableval" = yes; then
8141 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8142 else
8143 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8144 fi
8145
8146 else
8147
8148 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8149 if test "x$LINE" != x ; then
8150 eval "DEFAULT_$LINE"
8151 else
8152 no_cache=1
8153 fi
8154
8155 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8156
8157 fi
8158
8159
8160 eval "$ac_cv_use_tooltips"
8161 if test "$no_cache" != 1; then
8162 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8163 fi
8164
8165 if test "$wxUSE_TOOLTIPS" = yes; then
8166 echo "$ac_t""yes" 1>&6
8167 else
8168 echo "$ac_t""no" 1>&6
8169 fi
8170
8171
8172 enablestring=
8173 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8174 echo "configure:8175: checking for --${enablestring:-enable}-splines" >&5
8175 no_cache=0
8176 # Check whether --enable-splines or --disable-splines was given.
8177 if test "${enable_splines+set}" = set; then
8178 enableval="$enable_splines"
8179
8180 if test "$enableval" = yes; then
8181 ac_cv_use_splines='wxUSE_SPLINES=yes'
8182 else
8183 ac_cv_use_splines='wxUSE_SPLINES=no'
8184 fi
8185
8186 else
8187
8188 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8189 if test "x$LINE" != x ; then
8190 eval "DEFAULT_$LINE"
8191 else
8192 no_cache=1
8193 fi
8194
8195 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8196
8197 fi
8198
8199
8200 eval "$ac_cv_use_splines"
8201 if test "$no_cache" != 1; then
8202 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8203 fi
8204
8205 if test "$wxUSE_SPLINES" = yes; then
8206 echo "$ac_t""yes" 1>&6
8207 else
8208 echo "$ac_t""no" 1>&6
8209 fi
8210
8211
8212 enablestring=
8213 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8214 echo "configure:8215: checking for --${enablestring:-enable}-validators" >&5
8215 no_cache=0
8216 # Check whether --enable-validators or --disable-validators was given.
8217 if test "${enable_validators+set}" = set; then
8218 enableval="$enable_validators"
8219
8220 if test "$enableval" = yes; then
8221 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8222 else
8223 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8224 fi
8225
8226 else
8227
8228 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8229 if test "x$LINE" != x ; then
8230 eval "DEFAULT_$LINE"
8231 else
8232 no_cache=1
8233 fi
8234
8235 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8236
8237 fi
8238
8239
8240 eval "$ac_cv_use_validators"
8241 if test "$no_cache" != 1; then
8242 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8243 fi
8244
8245 if test "$wxUSE_VALIDATORS" = yes; then
8246 echo "$ac_t""yes" 1>&6
8247 else
8248 echo "$ac_t""no" 1>&6
8249 fi
8250
8251
8252 enablestring=
8253 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8254 echo "configure:8255: checking for --${enablestring:-enable}-busyinfo" >&5
8255 no_cache=0
8256 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8257 if test "${enable_busyinfo+set}" = set; then
8258 enableval="$enable_busyinfo"
8259
8260 if test "$enableval" = yes; then
8261 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8262 else
8263 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8264 fi
8265
8266 else
8267
8268 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8269 if test "x$LINE" != x ; then
8270 eval "DEFAULT_$LINE"
8271 else
8272 no_cache=1
8273 fi
8274
8275 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8276
8277 fi
8278
8279
8280 eval "$ac_cv_use_busyinfo"
8281 if test "$no_cache" != 1; then
8282 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8283 fi
8284
8285 if test "$wxUSE_BUSYINFO" = yes; then
8286 echo "$ac_t""yes" 1>&6
8287 else
8288 echo "$ac_t""no" 1>&6
8289 fi
8290
8291
8292 enablestring=
8293 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8294 echo "configure:8295: checking for --${enablestring:-enable}-joystick" >&5
8295 no_cache=0
8296 # Check whether --enable-joystick or --disable-joystick was given.
8297 if test "${enable_joystick+set}" = set; then
8298 enableval="$enable_joystick"
8299
8300 if test "$enableval" = yes; then
8301 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8302 else
8303 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8304 fi
8305
8306 else
8307
8308 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8309 if test "x$LINE" != x ; then
8310 eval "DEFAULT_$LINE"
8311 else
8312 no_cache=1
8313 fi
8314
8315 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8316
8317 fi
8318
8319
8320 eval "$ac_cv_use_joystick"
8321 if test "$no_cache" != 1; then
8322 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8323 fi
8324
8325 if test "$wxUSE_JOYSTICK" = yes; then
8326 echo "$ac_t""yes" 1>&6
8327 else
8328 echo "$ac_t""no" 1>&6
8329 fi
8330
8331
8332 enablestring=
8333 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8334 echo "configure:8335: checking for --${enablestring:-enable}-metafile" >&5
8335 no_cache=0
8336 # Check whether --enable-metafile or --disable-metafile was given.
8337 if test "${enable_metafile+set}" = set; then
8338 enableval="$enable_metafile"
8339
8340 if test "$enableval" = yes; then
8341 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8342 else
8343 ac_cv_use_metafile='wxUSE_METAFILE=no'
8344 fi
8345
8346 else
8347
8348 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8349 if test "x$LINE" != x ; then
8350 eval "DEFAULT_$LINE"
8351 else
8352 no_cache=1
8353 fi
8354
8355 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8356
8357 fi
8358
8359
8360 eval "$ac_cv_use_metafile"
8361 if test "$no_cache" != 1; then
8362 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8363 fi
8364
8365 if test "$wxUSE_METAFILE" = yes; then
8366 echo "$ac_t""yes" 1>&6
8367 else
8368 echo "$ac_t""no" 1>&6
8369 fi
8370
8371
8372 enablestring=
8373 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8374 echo "configure:8375: checking for --${enablestring:-enable}-dragimage" >&5
8375 no_cache=0
8376 # Check whether --enable-dragimage or --disable-dragimage was given.
8377 if test "${enable_dragimage+set}" = set; then
8378 enableval="$enable_dragimage"
8379
8380 if test "$enableval" = yes; then
8381 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8382 else
8383 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8384 fi
8385
8386 else
8387
8388 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8389 if test "x$LINE" != x ; then
8390 eval "DEFAULT_$LINE"
8391 else
8392 no_cache=1
8393 fi
8394
8395 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8396
8397 fi
8398
8399
8400 eval "$ac_cv_use_dragimage"
8401 if test "$no_cache" != 1; then
8402 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8403 fi
8404
8405 if test "$wxUSE_DRAGIMAGE" = yes; then
8406 echo "$ac_t""yes" 1>&6
8407 else
8408 echo "$ac_t""no" 1>&6
8409 fi
8410
8411
8412
8413
8414 enablestring=
8415 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8416 echo "configure:8417: checking for --${enablestring:-enable}-palette" >&5
8417 no_cache=0
8418 # Check whether --enable-palette or --disable-palette was given.
8419 if test "${enable_palette+set}" = set; then
8420 enableval="$enable_palette"
8421
8422 if test "$enableval" = yes; then
8423 ac_cv_use_palette='wxUSE_PALETTE=yes'
8424 else
8425 ac_cv_use_palette='wxUSE_PALETTE=no'
8426 fi
8427
8428 else
8429
8430 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8431 if test "x$LINE" != x ; then
8432 eval "DEFAULT_$LINE"
8433 else
8434 no_cache=1
8435 fi
8436
8437 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8438
8439 fi
8440
8441
8442 eval "$ac_cv_use_palette"
8443 if test "$no_cache" != 1; then
8444 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8445 fi
8446
8447 if test "$wxUSE_PALETTE" = yes; then
8448 echo "$ac_t""yes" 1>&6
8449 else
8450 echo "$ac_t""no" 1>&6
8451 fi
8452
8453
8454 enablestring=
8455 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8456 echo "configure:8457: checking for --${enablestring:-enable}-image" >&5
8457 no_cache=0
8458 # Check whether --enable-image or --disable-image was given.
8459 if test "${enable_image+set}" = set; then
8460 enableval="$enable_image"
8461
8462 if test "$enableval" = yes; then
8463 ac_cv_use_image='wxUSE_IMAGE=yes'
8464 else
8465 ac_cv_use_image='wxUSE_IMAGE=no'
8466 fi
8467
8468 else
8469
8470 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8471 if test "x$LINE" != x ; then
8472 eval "DEFAULT_$LINE"
8473 else
8474 no_cache=1
8475 fi
8476
8477 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8478
8479 fi
8480
8481
8482 eval "$ac_cv_use_image"
8483 if test "$no_cache" != 1; then
8484 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8485 fi
8486
8487 if test "$wxUSE_IMAGE" = yes; then
8488 echo "$ac_t""yes" 1>&6
8489 else
8490 echo "$ac_t""no" 1>&6
8491 fi
8492
8493
8494 enablestring=
8495 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8496 echo "configure:8497: checking for --${enablestring:-enable}-gif" >&5
8497 no_cache=0
8498 # Check whether --enable-gif or --disable-gif was given.
8499 if test "${enable_gif+set}" = set; then
8500 enableval="$enable_gif"
8501
8502 if test "$enableval" = yes; then
8503 ac_cv_use_gif='wxUSE_GIF=yes'
8504 else
8505 ac_cv_use_gif='wxUSE_GIF=no'
8506 fi
8507
8508 else
8509
8510 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8511 if test "x$LINE" != x ; then
8512 eval "DEFAULT_$LINE"
8513 else
8514 no_cache=1
8515 fi
8516
8517 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8518
8519 fi
8520
8521
8522 eval "$ac_cv_use_gif"
8523 if test "$no_cache" != 1; then
8524 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8525 fi
8526
8527 if test "$wxUSE_GIF" = yes; then
8528 echo "$ac_t""yes" 1>&6
8529 else
8530 echo "$ac_t""no" 1>&6
8531 fi
8532
8533
8534 enablestring=
8535 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8536 echo "configure:8537: checking for --${enablestring:-enable}-pcx" >&5
8537 no_cache=0
8538 # Check whether --enable-pcx or --disable-pcx was given.
8539 if test "${enable_pcx+set}" = set; then
8540 enableval="$enable_pcx"
8541
8542 if test "$enableval" = yes; then
8543 ac_cv_use_pcx='wxUSE_PCX=yes'
8544 else
8545 ac_cv_use_pcx='wxUSE_PCX=no'
8546 fi
8547
8548 else
8549
8550 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8551 if test "x$LINE" != x ; then
8552 eval "DEFAULT_$LINE"
8553 else
8554 no_cache=1
8555 fi
8556
8557 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8558
8559 fi
8560
8561
8562 eval "$ac_cv_use_pcx"
8563 if test "$no_cache" != 1; then
8564 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8565 fi
8566
8567 if test "$wxUSE_PCX" = yes; then
8568 echo "$ac_t""yes" 1>&6
8569 else
8570 echo "$ac_t""no" 1>&6
8571 fi
8572
8573
8574 enablestring=
8575 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8576 echo "configure:8577: checking for --${enablestring:-enable}-iff" >&5
8577 no_cache=0
8578 # Check whether --enable-iff or --disable-iff was given.
8579 if test "${enable_iff+set}" = set; then
8580 enableval="$enable_iff"
8581
8582 if test "$enableval" = yes; then
8583 ac_cv_use_iff='wxUSE_IFF=yes'
8584 else
8585 ac_cv_use_iff='wxUSE_IFF=no'
8586 fi
8587
8588 else
8589
8590 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8591 if test "x$LINE" != x ; then
8592 eval "DEFAULT_$LINE"
8593 else
8594 no_cache=1
8595 fi
8596
8597 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8598
8599 fi
8600
8601
8602 eval "$ac_cv_use_iff"
8603 if test "$no_cache" != 1; then
8604 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8605 fi
8606
8607 if test "$wxUSE_IFF" = yes; then
8608 echo "$ac_t""yes" 1>&6
8609 else
8610 echo "$ac_t""no" 1>&6
8611 fi
8612
8613
8614 enablestring=
8615 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8616 echo "configure:8617: checking for --${enablestring:-enable}-pnm" >&5
8617 no_cache=0
8618 # Check whether --enable-pnm or --disable-pnm was given.
8619 if test "${enable_pnm+set}" = set; then
8620 enableval="$enable_pnm"
8621
8622 if test "$enableval" = yes; then
8623 ac_cv_use_pnm='wxUSE_PNM=yes'
8624 else
8625 ac_cv_use_pnm='wxUSE_PNM=no'
8626 fi
8627
8628 else
8629
8630 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8631 if test "x$LINE" != x ; then
8632 eval "DEFAULT_$LINE"
8633 else
8634 no_cache=1
8635 fi
8636
8637 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8638
8639 fi
8640
8641
8642 eval "$ac_cv_use_pnm"
8643 if test "$no_cache" != 1; then
8644 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8645 fi
8646
8647 if test "$wxUSE_PNM" = yes; then
8648 echo "$ac_t""yes" 1>&6
8649 else
8650 echo "$ac_t""no" 1>&6
8651 fi
8652
8653
8654 enablestring=
8655 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8656 echo "configure:8657: checking for --${enablestring:-enable}-xpm" >&5
8657 no_cache=0
8658 # Check whether --enable-xpm or --disable-xpm was given.
8659 if test "${enable_xpm+set}" = set; then
8660 enableval="$enable_xpm"
8661
8662 if test "$enableval" = yes; then
8663 ac_cv_use_xpm='wxUSE_XPM=yes'
8664 else
8665 ac_cv_use_xpm='wxUSE_XPM=no'
8666 fi
8667
8668 else
8669
8670 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8671 if test "x$LINE" != x ; then
8672 eval "DEFAULT_$LINE"
8673 else
8674 no_cache=1
8675 fi
8676
8677 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8678
8679 fi
8680
8681
8682 eval "$ac_cv_use_xpm"
8683 if test "$no_cache" != 1; then
8684 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8685 fi
8686
8687 if test "$wxUSE_XPM" = yes; then
8688 echo "$ac_t""yes" 1>&6
8689 else
8690 echo "$ac_t""no" 1>&6
8691 fi
8692
8693
8694 enablestring=
8695 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8696 echo "configure:8697: checking for --${enablestring:-enable}-ico_cur" >&5
8697 no_cache=0
8698 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8699 if test "${enable_ico_cur+set}" = set; then
8700 enableval="$enable_ico_cur"
8701
8702 if test "$enableval" = yes; then
8703 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8704 else
8705 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8706 fi
8707
8708 else
8709
8710 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8711 if test "x$LINE" != x ; then
8712 eval "DEFAULT_$LINE"
8713 else
8714 no_cache=1
8715 fi
8716
8717 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8718
8719 fi
8720
8721
8722 eval "$ac_cv_use_ico_cur"
8723 if test "$no_cache" != 1; then
8724 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8725 fi
8726
8727 if test "$wxUSE_ICO_CUR" = yes; then
8728 echo "$ac_t""yes" 1>&6
8729 else
8730 echo "$ac_t""no" 1>&6
8731 fi
8732
8733
8734 fi
8735
8736 case "${host}" in
8737 *-pc-os2_emx | *-pc-os2-emx )
8738 PATH_IFS=';'
8739 LEX_STEM="lexyy"
8740 ;;
8741 *)
8742 PATH_IFS=':'
8743 LEX_STEM="lex.yy"
8744 ;;
8745 esac
8746
8747
8748
8749 echo "saving argument cache $wx_arg_cache_file"
8750 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8751
8752
8753
8754 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8755 echo "configure:8756: checking for toolkit" >&5
8756
8757 # In Wine, we need to default to MSW, not GTK or MOTIF
8758 if test "$wxUSE_WINE" = "yes"; then
8759 DEFAULT_DEFAULT_wxUSE_GTK=0
8760 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8761 DEFAULT_DEFAULT_wxUSE_MSW=1
8762 fi
8763
8764 if test "$wxUSE_GUI" = "yes"; then
8765
8766 if test "$USE_BEOS" = 1; then
8767 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8768 fi
8769
8770 if test "$TOOLKIT_GIVEN" = 1; then
8771 for toolkit in `echo $ALL_TOOLKITS`; do
8772 var=wxUSE_$toolkit
8773 eval "value=\$${var}"
8774 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8775 done
8776 else
8777 for toolkit in `echo $ALL_TOOLKITS`; do
8778 if test "$has_toolkit_in_cache" != 1; then
8779 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8780 else
8781 var=DEFAULT_wxUSE_$toolkit
8782 fi
8783 eval "wxUSE_$toolkit=\$${var}"
8784 done
8785 fi
8786
8787 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8788 + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8789
8790 case "${host}" in
8791 *-pc-os2_emx | *-pc-os2-emx )
8792 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8793 esac
8794
8795 case "$NUM_TOOLKITS" in
8796 1)
8797 ;;
8798 0)
8799 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8800 ;;
8801 *)
8802 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8803 esac
8804
8805 for toolkit in `echo $ALL_TOOLKITS`; do
8806 var=wxUSE_$toolkit
8807 eval "value=\$${var}"
8808 if test "x$value" != x; then
8809 cache_var=CACHE_$toolkit
8810 eval "cache=\$${cache_var}"
8811 if test "$cache" = 1; then
8812 echo "$var=$value" >> ${wx_arg_cache_file}
8813 fi
8814 if test "$value" = 1; then
8815 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8816 echo "$ac_t""$toolkit_echo" 1>&6
8817 fi
8818 fi
8819 done
8820 else
8821 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8822 fi
8823
8824 wants_win32=0
8825 doesnt_want_win32=0
8826 case "${host}" in
8827 *-*-cygwin*)
8828 if test "$wxUSE_MSW" = 1 ; then
8829 wants_win32=1
8830 else
8831 doesnt_want_win32=1
8832 fi
8833 ;;
8834 *-*-mingw*)
8835 wants_win32=1
8836 ;;
8837 esac
8838
8839 if test "$wxUSE_WINE" = "yes"; then
8840 wants_win32=1
8841 CC=winegcc
8842 CXX=wineg++
8843 RESCOMP=wrc
8844 fi
8845
8846 if test "$wants_win32" = 1 ; then
8847 USE_UNIX=0
8848 USE_WIN32=1
8849 cat >> confdefs.h <<\EOF
8850 #define __WIN32__ 1
8851 EOF
8852
8853 cat >> confdefs.h <<\EOF
8854 #define __WIN95__ 1
8855 EOF
8856
8857 cat >> confdefs.h <<\EOF
8858 #define __WINDOWS__ 1
8859 EOF
8860
8861 cat >> confdefs.h <<\EOF
8862 #define __GNUWIN32__ 1
8863 EOF
8864
8865 cat >> confdefs.h <<\EOF
8866 #define STRICT 1
8867 EOF
8868
8869 cat >> confdefs.h <<\EOF
8870 #define WINVER 0x0400
8871 EOF
8872
8873 fi
8874 if test "$doesnt_want_win32" = 1 ; then
8875 USE_UNIX=1
8876 USE_WIN32=0
8877 fi
8878
8879 if test "$USE_UNIX" = 1 ; then
8880 wxUSE_UNIX=yes
8881 cat >> confdefs.h <<\EOF
8882 #define __UNIX__ 1
8883 EOF
8884
8885 fi
8886
8887
8888 cat > confcache <<\EOF
8889 # This file is a shell script that caches the results of configure
8890 # tests run on this system so they can be shared between configure
8891 # scripts and configure runs. It is not useful on other systems.
8892 # If it contains results you don't want to keep, you may remove or edit it.
8893 #
8894 # By default, configure uses ./config.cache as the cache file,
8895 # creating it if it does not exist already. You can give configure
8896 # the --cache-file=FILE option to use a different cache file; that is
8897 # what configure does when it calls configure scripts in
8898 # subdirectories, so they share the cache.
8899 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8900 # config.status only pays attention to the cache file if you give it the
8901 # --recheck option to rerun configure.
8902 #
8903 EOF
8904 # The following way of writing the cache mishandles newlines in values,
8905 # but we know of no workaround that is simple, portable, and efficient.
8906 # So, don't put newlines in cache variables' values.
8907 # Ultrix sh set writes to stderr and can't be redirected directly,
8908 # and sets the high bit in the cache file unless we assign to the vars.
8909 (set) 2>&1 |
8910 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8911 *ac_space=\ *)
8912 # `set' does not quote correctly, so add quotes (double-quote substitution
8913 # turns \\\\ into \\, and sed turns \\ into \).
8914 sed -n \
8915 -e "s/'/'\\\\''/g" \
8916 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8917 ;;
8918 *)
8919 # `set' quotes correctly as required by POSIX, so do not add quotes.
8920 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8921 ;;
8922 esac >> confcache
8923 if cmp -s $cache_file confcache; then
8924 :
8925 else
8926 if test -w $cache_file; then
8927 echo "updating cache $cache_file"
8928 cat confcache > $cache_file
8929 else
8930 echo "not updating unwritable cache $cache_file"
8931 fi
8932 fi
8933 rm -f confcache
8934
8935
8936 if test "$build" != "$host" ; then
8937 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8938 CC=$host_alias-gcc
8939 CXX=$host_alias-c++
8940 AR=$host_alias-ar
8941 RANLIB=$host_alias-ranlib
8942 DLLTOOL=$host_alias-dlltool
8943 RESCOMP=$host_alias-windres
8944 LD=$host_alias-ld
8945 NM=$host_alias-nm
8946 STRIP=$host_alias-strip
8947 else
8948 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8949 fi
8950 fi
8951
8952 CFLAGS=${CFLAGS:=}
8953 # Extract the first word of "gcc", so it can be a program name with args.
8954 set dummy gcc; ac_word=$2
8955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8956 echo "configure:8957: checking for $ac_word" >&5
8957 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8958 echo $ac_n "(cached) $ac_c" 1>&6
8959 else
8960 if test -n "$CC"; then
8961 ac_cv_prog_CC="$CC" # Let the user override the test.
8962 else
8963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8964 ac_dummy="$PATH"
8965 for ac_dir in $ac_dummy; do
8966 test -z "$ac_dir" && ac_dir=.
8967 if test -f $ac_dir/$ac_word; then
8968 ac_cv_prog_CC="gcc"
8969 break
8970 fi
8971 done
8972 IFS="$ac_save_ifs"
8973 fi
8974 fi
8975 CC="$ac_cv_prog_CC"
8976 if test -n "$CC"; then
8977 echo "$ac_t""$CC" 1>&6
8978 else
8979 echo "$ac_t""no" 1>&6
8980 fi
8981
8982 if test -z "$CC"; then
8983 # Extract the first word of "cc", so it can be a program name with args.
8984 set dummy cc; ac_word=$2
8985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8986 echo "configure:8987: checking for $ac_word" >&5
8987 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8988 echo $ac_n "(cached) $ac_c" 1>&6
8989 else
8990 if test -n "$CC"; then
8991 ac_cv_prog_CC="$CC" # Let the user override the test.
8992 else
8993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8994 ac_prog_rejected=no
8995 ac_dummy="$PATH"
8996 for ac_dir in $ac_dummy; do
8997 test -z "$ac_dir" && ac_dir=.
8998 if test -f $ac_dir/$ac_word; then
8999 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
9000 ac_prog_rejected=yes
9001 continue
9002 fi
9003 ac_cv_prog_CC="cc"
9004 break
9005 fi
9006 done
9007 IFS="$ac_save_ifs"
9008 if test $ac_prog_rejected = yes; then
9009 # We found a bogon in the path, so make sure we never use it.
9010 set dummy $ac_cv_prog_CC
9011 shift
9012 if test $# -gt 0; then
9013 # We chose a different compiler from the bogus one.
9014 # However, it has the same basename, so the bogon will be chosen
9015 # first if we set CC to just the basename; use the full file name.
9016 shift
9017 set dummy "$ac_dir/$ac_word" "$@"
9018 shift
9019 ac_cv_prog_CC="$@"
9020 fi
9021 fi
9022 fi
9023 fi
9024 CC="$ac_cv_prog_CC"
9025 if test -n "$CC"; then
9026 echo "$ac_t""$CC" 1>&6
9027 else
9028 echo "$ac_t""no" 1>&6
9029 fi
9030
9031 if test -z "$CC"; then
9032 case "`uname -s`" in
9033 *win32* | *WIN32*)
9034 # Extract the first word of "cl", so it can be a program name with args.
9035 set dummy cl; ac_word=$2
9036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9037 echo "configure:9038: checking for $ac_word" >&5
9038 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9039 echo $ac_n "(cached) $ac_c" 1>&6
9040 else
9041 if test -n "$CC"; then
9042 ac_cv_prog_CC="$CC" # Let the user override the test.
9043 else
9044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9045 ac_dummy="$PATH"
9046 for ac_dir in $ac_dummy; do
9047 test -z "$ac_dir" && ac_dir=.
9048 if test -f $ac_dir/$ac_word; then
9049 ac_cv_prog_CC="cl"
9050 break
9051 fi
9052 done
9053 IFS="$ac_save_ifs"
9054 fi
9055 fi
9056 CC="$ac_cv_prog_CC"
9057 if test -n "$CC"; then
9058 echo "$ac_t""$CC" 1>&6
9059 else
9060 echo "$ac_t""no" 1>&6
9061 fi
9062 ;;
9063 esac
9064 fi
9065 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9066 fi
9067
9068 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9069 echo "configure:9070: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9070
9071 ac_ext=c
9072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9073 ac_cpp='$CPP $CPPFLAGS'
9074 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9075 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9076 cross_compiling=$ac_cv_prog_cc_cross
9077
9078 cat > conftest.$ac_ext << EOF
9079
9080 #line 9081 "configure"
9081 #include "confdefs.h"
9082
9083 main(){return(0);}
9084 EOF
9085 if { (eval echo configure:9086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9086 ac_cv_prog_cc_works=yes
9087 # If we can't run a trivial program, we are probably using a cross compiler.
9088 if (./conftest; exit) 2>/dev/null; then
9089 ac_cv_prog_cc_cross=no
9090 else
9091 ac_cv_prog_cc_cross=yes
9092 fi
9093 else
9094 echo "configure: failed program was:" >&5
9095 cat conftest.$ac_ext >&5
9096 ac_cv_prog_cc_works=no
9097 fi
9098 rm -fr conftest*
9099 ac_ext=c
9100 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9101 ac_cpp='$CPP $CPPFLAGS'
9102 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9103 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9104 cross_compiling=$ac_cv_prog_cc_cross
9105
9106 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9107 if test $ac_cv_prog_cc_works = no; then
9108 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9109 fi
9110 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9111 echo "configure:9112: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9112 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9113 cross_compiling=$ac_cv_prog_cc_cross
9114
9115 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9116 echo "configure:9117: checking whether we are using GNU C" >&5
9117 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9118 echo $ac_n "(cached) $ac_c" 1>&6
9119 else
9120 cat > conftest.c <<EOF
9121 #ifdef __GNUC__
9122 yes;
9123 #endif
9124 EOF
9125 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9126 ac_cv_prog_gcc=yes
9127 else
9128 ac_cv_prog_gcc=no
9129 fi
9130 fi
9131
9132 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9133
9134 if test $ac_cv_prog_gcc = yes; then
9135 GCC=yes
9136 else
9137 GCC=
9138 fi
9139
9140 ac_test_CFLAGS="${CFLAGS+set}"
9141 ac_save_CFLAGS="$CFLAGS"
9142 CFLAGS=
9143 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9144 echo "configure:9145: checking whether ${CC-cc} accepts -g" >&5
9145 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9146 echo $ac_n "(cached) $ac_c" 1>&6
9147 else
9148 echo 'void f(){}' > conftest.c
9149 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9150 ac_cv_prog_cc_g=yes
9151 else
9152 ac_cv_prog_cc_g=no
9153 fi
9154 rm -f conftest*
9155
9156 fi
9157
9158 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9159 if test "$ac_test_CFLAGS" = set; then
9160 CFLAGS="$ac_save_CFLAGS"
9161 elif test $ac_cv_prog_cc_g = yes; then
9162 if test "$GCC" = yes; then
9163 CFLAGS="-g -O2"
9164 else
9165 CFLAGS="-g"
9166 fi
9167 else
9168 if test "$GCC" = yes; then
9169 CFLAGS="-O2"
9170 else
9171 CFLAGS=
9172 fi
9173 fi
9174
9175
9176 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9177 echo "configure:9178: checking how to run the C preprocessor" >&5
9178 # On Suns, sometimes $CPP names a directory.
9179 if test -n "$CPP" && test -d "$CPP"; then
9180 CPP=
9181 fi
9182 if test -z "$CPP"; then
9183 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9184 echo $ac_n "(cached) $ac_c" 1>&6
9185 else
9186 # This must be in double quotes, not single quotes, because CPP may get
9187 # substituted into the Makefile and "${CC-cc}" will confuse make.
9188 CPP="${CC-cc} -E"
9189 # On the NeXT, cc -E runs the code through the compiler's parser,
9190 # not just through cpp.
9191 cat > conftest.$ac_ext <<EOF
9192 #line 9193 "configure"
9193 #include "confdefs.h"
9194 #include <assert.h>
9195 Syntax Error
9196 EOF
9197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9198 { (eval echo configure:9199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9200 if test -z "$ac_err"; then
9201 :
9202 else
9203 echo "$ac_err" >&5
9204 echo "configure: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9206 rm -rf conftest*
9207 CPP="${CC-cc} -E -traditional-cpp"
9208 cat > conftest.$ac_ext <<EOF
9209 #line 9210 "configure"
9210 #include "confdefs.h"
9211 #include <assert.h>
9212 Syntax Error
9213 EOF
9214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9215 { (eval echo configure:9216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9217 if test -z "$ac_err"; then
9218 :
9219 else
9220 echo "$ac_err" >&5
9221 echo "configure: failed program was:" >&5
9222 cat conftest.$ac_ext >&5
9223 rm -rf conftest*
9224 CPP="${CC-cc} -nologo -E"
9225 cat > conftest.$ac_ext <<EOF
9226 #line 9227 "configure"
9227 #include "confdefs.h"
9228 #include <assert.h>
9229 Syntax Error
9230 EOF
9231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9232 { (eval echo configure:9233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9234 if test -z "$ac_err"; then
9235 :
9236 else
9237 echo "$ac_err" >&5
9238 echo "configure: failed program was:" >&5
9239 cat conftest.$ac_ext >&5
9240 rm -rf conftest*
9241 CPP=/lib/cpp
9242 fi
9243 rm -f conftest*
9244 fi
9245 rm -f conftest*
9246 fi
9247 rm -f conftest*
9248 ac_cv_prog_CPP="$CPP"
9249 fi
9250 CPP="$ac_cv_prog_CPP"
9251 else
9252 ac_cv_prog_CPP="$CPP"
9253 fi
9254 echo "$ac_t""$CPP" 1>&6
9255
9256 if test $ac_cv_prog_gcc = yes; then
9257 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9258 echo "configure:9259: checking whether ${CC-cc} needs -traditional" >&5
9259 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9260 echo $ac_n "(cached) $ac_c" 1>&6
9261 else
9262 ac_pattern="Autoconf.*'x'"
9263 cat > conftest.$ac_ext <<EOF
9264 #line 9265 "configure"
9265 #include "confdefs.h"
9266 #include <sgtty.h>
9267 Autoconf TIOCGETP
9268 EOF
9269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9270 egrep "$ac_pattern" >/dev/null 2>&1; then
9271 rm -rf conftest*
9272 ac_cv_prog_gcc_traditional=yes
9273 else
9274 rm -rf conftest*
9275 ac_cv_prog_gcc_traditional=no
9276 fi
9277 rm -f conftest*
9278
9279
9280 if test $ac_cv_prog_gcc_traditional = no; then
9281 cat > conftest.$ac_ext <<EOF
9282 #line 9283 "configure"
9283 #include "confdefs.h"
9284 #include <termio.h>
9285 Autoconf TCGETA
9286 EOF
9287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9288 egrep "$ac_pattern" >/dev/null 2>&1; then
9289 rm -rf conftest*
9290 ac_cv_prog_gcc_traditional=yes
9291 fi
9292 rm -f conftest*
9293
9294 fi
9295 fi
9296
9297 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9298 if test $ac_cv_prog_gcc_traditional = yes; then
9299 CC="$CC -traditional"
9300 fi
9301 fi
9302
9303
9304
9305 ac_ext=C
9306 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9307 ac_cpp='$CXXCPP $CPPFLAGS'
9308 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9309 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9310 cross_compiling=$ac_cv_prog_cxx_cross
9311
9312
9313 CXXFLAGS=${CXXFLAGS:=}
9314 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9315 do
9316 # Extract the first word of "$ac_prog", so it can be a program name with args.
9317 set dummy $ac_prog; ac_word=$2
9318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9319 echo "configure:9320: checking for $ac_word" >&5
9320 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
9322 else
9323 if test -n "$CXX"; then
9324 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9325 else
9326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9327 ac_dummy="$PATH"
9328 for ac_dir in $ac_dummy; do
9329 test -z "$ac_dir" && ac_dir=.
9330 if test -f $ac_dir/$ac_word; then
9331 ac_cv_prog_CXX="$ac_prog"
9332 break
9333 fi
9334 done
9335 IFS="$ac_save_ifs"
9336 fi
9337 fi
9338 CXX="$ac_cv_prog_CXX"
9339 if test -n "$CXX"; then
9340 echo "$ac_t""$CXX" 1>&6
9341 else
9342 echo "$ac_t""no" 1>&6
9343 fi
9344
9345 test -n "$CXX" && break
9346 done
9347 test -n "$CXX" || CXX="gcc"
9348
9349
9350 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9351 echo "configure:9352: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9352
9353 ac_ext=C
9354 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9355 ac_cpp='$CXXCPP $CPPFLAGS'
9356 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9357 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9358 cross_compiling=$ac_cv_prog_cxx_cross
9359
9360 cat > conftest.$ac_ext << EOF
9361
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9364
9365 int main(){return(0);}
9366 EOF
9367 if { (eval echo configure:9368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9368 ac_cv_prog_cxx_works=yes
9369 # If we can't run a trivial program, we are probably using a cross compiler.
9370 if (./conftest; exit) 2>/dev/null; then
9371 ac_cv_prog_cxx_cross=no
9372 else
9373 ac_cv_prog_cxx_cross=yes
9374 fi
9375 else
9376 echo "configure: failed program was:" >&5
9377 cat conftest.$ac_ext >&5
9378 ac_cv_prog_cxx_works=no
9379 fi
9380 rm -fr conftest*
9381 ac_ext=C
9382 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9383 ac_cpp='$CXXCPP $CPPFLAGS'
9384 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9385 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9386 cross_compiling=$ac_cv_prog_cxx_cross
9387
9388 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9389 if test $ac_cv_prog_cxx_works = no; then
9390 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9391 fi
9392 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9393 echo "configure:9394: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9394 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9395 cross_compiling=$ac_cv_prog_cxx_cross
9396
9397 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9398 echo "configure:9399: checking whether we are using GNU C++" >&5
9399 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9400 echo $ac_n "(cached) $ac_c" 1>&6
9401 else
9402 cat > conftest.C <<EOF
9403 #ifdef __GNUC__
9404 yes;
9405 #endif
9406 EOF
9407 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9408 ac_cv_prog_gxx=yes
9409 else
9410 ac_cv_prog_gxx=no
9411 fi
9412 fi
9413
9414 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9415
9416 if test $ac_cv_prog_gxx = yes; then
9417 GXX=yes
9418 else
9419 GXX=
9420 fi
9421
9422 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9423 ac_save_CXXFLAGS="$CXXFLAGS"
9424 CXXFLAGS=
9425 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9426 echo "configure:9427: checking whether ${CXX-g++} accepts -g" >&5
9427 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9428 echo $ac_n "(cached) $ac_c" 1>&6
9429 else
9430 echo 'void f(){}' > conftest.cc
9431 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9432 ac_cv_prog_cxx_g=yes
9433 else
9434 ac_cv_prog_cxx_g=no
9435 fi
9436 rm -f conftest*
9437
9438 fi
9439
9440 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9441 if test "$ac_test_CXXFLAGS" = set; then
9442 CXXFLAGS="$ac_save_CXXFLAGS"
9443 elif test $ac_cv_prog_cxx_g = yes; then
9444 if test "$GXX" = yes; then
9445 CXXFLAGS="-g -O2"
9446 else
9447 CXXFLAGS="-g"
9448 fi
9449 else
9450 if test "$GXX" = yes; then
9451 CXXFLAGS="-O2"
9452 else
9453 CXXFLAGS=
9454 fi
9455 fi
9456
9457
9458 ac_ext=c
9459 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9460 ac_cpp='$CPP $CPPFLAGS'
9461 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9462 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9463 cross_compiling=$ac_cv_prog_cc_cross
9464
9465
9466 # Extract the first word of "ranlib", so it can be a program name with args.
9467 set dummy ranlib; ac_word=$2
9468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9469 echo "configure:9470: checking for $ac_word" >&5
9470 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9471 echo $ac_n "(cached) $ac_c" 1>&6
9472 else
9473 if test -n "$RANLIB"; then
9474 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9475 else
9476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9477 ac_dummy="$PATH"
9478 for ac_dir in $ac_dummy; do
9479 test -z "$ac_dir" && ac_dir=.
9480 if test -f $ac_dir/$ac_word; then
9481 ac_cv_prog_RANLIB="ranlib"
9482 break
9483 fi
9484 done
9485 IFS="$ac_save_ifs"
9486 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9487 fi
9488 fi
9489 RANLIB="$ac_cv_prog_RANLIB"
9490 if test -n "$RANLIB"; then
9491 echo "$ac_t""$RANLIB" 1>&6
9492 else
9493 echo "$ac_t""no" 1>&6
9494 fi
9495
9496
9497 # Extract the first word of "ar", so it can be a program name with args.
9498 set dummy ar; ac_word=$2
9499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9500 echo "configure:9501: checking for $ac_word" >&5
9501 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9502 echo $ac_n "(cached) $ac_c" 1>&6
9503 else
9504 if test -n "$AR"; then
9505 ac_cv_prog_AR="$AR" # Let the user override the test.
9506 else
9507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9508 ac_dummy="$PATH"
9509 for ac_dir in $ac_dummy; do
9510 test -z "$ac_dir" && ac_dir=.
9511 if test -f $ac_dir/$ac_word; then
9512 ac_cv_prog_AR="ar"
9513 break
9514 fi
9515 done
9516 IFS="$ac_save_ifs"
9517 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9518 fi
9519 fi
9520 AR="$ac_cv_prog_AR"
9521 if test -n "$AR"; then
9522 echo "$ac_t""$AR" 1>&6
9523 else
9524 echo "$ac_t""no" 1>&6
9525 fi
9526
9527
9528 # Find a good install program. We prefer a C program (faster),
9529 # so one script is as good as another. But avoid the broken or
9530 # incompatible versions:
9531 # SysV /etc/install, /usr/sbin/install
9532 # SunOS /usr/etc/install
9533 # IRIX /sbin/install
9534 # AIX /bin/install
9535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9538 # ./install, which can be erroneously created by make from ./install.sh.
9539 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9540 echo "configure:9541: checking for a BSD compatible install" >&5
9541 if test -z "$INSTALL"; then
9542 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9543 echo $ac_n "(cached) $ac_c" 1>&6
9544 else
9545 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9546 for ac_dir in $PATH; do
9547 # Account for people who put trailing slashes in PATH elements.
9548 case "$ac_dir/" in
9549 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9550 *)
9551 # OSF1 and SCO ODT 3.0 have their own names for install.
9552 # Don't use installbsd from OSF since it installs stuff as root
9553 # by default.
9554 for ac_prog in ginstall scoinst install; do
9555 if test -f $ac_dir/$ac_prog; then
9556 if test $ac_prog = install &&
9557 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9558 # AIX install. It has an incompatible calling convention.
9559 :
9560 else
9561 ac_cv_path_install="$ac_dir/$ac_prog -c"
9562 break 2
9563 fi
9564 fi
9565 done
9566 ;;
9567 esac
9568 done
9569 IFS="$ac_save_IFS"
9570
9571 fi
9572 if test "${ac_cv_path_install+set}" = set; then
9573 INSTALL="$ac_cv_path_install"
9574 else
9575 # As a last resort, use the slow shell script. We don't cache a
9576 # path for INSTALL within a source directory, because that will
9577 # break other packages using the cache if that directory is
9578 # removed, or if the path is relative.
9579 INSTALL="$ac_install_sh"
9580 fi
9581 fi
9582 echo "$ac_t""$INSTALL" 1>&6
9583
9584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9585 # It thinks the first close brace ends the variable substitution.
9586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9587
9588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9589
9590 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9591
9592
9593 case ${INSTALL} in
9594 /* ) # Absolute
9595 ;;
9596 *)
9597 INSTALL=`pwd`/${INSTALL} ;;
9598 esac
9599
9600
9601 case "${host}" in
9602
9603 powerpc-*-darwin* )
9604 INSTALL_PROGRAM="cp -fp"
9605 INSTALL_DATA="cp -fp"
9606 ;;
9607 *)
9608 ;;
9609 esac
9610
9611 # Extract the first word of "strip", so it can be a program name with args.
9612 set dummy strip; ac_word=$2
9613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9614 echo "configure:9615: checking for $ac_word" >&5
9615 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9616 echo $ac_n "(cached) $ac_c" 1>&6
9617 else
9618 if test -n "$STRIP"; then
9619 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9620 else
9621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9622 ac_dummy="$PATH"
9623 for ac_dir in $ac_dummy; do
9624 test -z "$ac_dir" && ac_dir=.
9625 if test -f $ac_dir/$ac_word; then
9626 ac_cv_prog_STRIP="strip"
9627 break
9628 fi
9629 done
9630 IFS="$ac_save_ifs"
9631 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9632 fi
9633 fi
9634 STRIP="$ac_cv_prog_STRIP"
9635 if test -n "$STRIP"; then
9636 echo "$ac_t""$STRIP" 1>&6
9637 else
9638 echo "$ac_t""no" 1>&6
9639 fi
9640
9641
9642 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9643 echo "configure:9644: checking if make is GNU make" >&5
9644 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9645 echo $ac_n "(cached) $ac_c" 1>&6
9646 else
9647
9648 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9649 egrep -s GNU > /dev/null); then
9650 wx_cv_prog_makeisgnu="yes"
9651 else
9652 wx_cv_prog_makeisgnu="no"
9653 fi
9654
9655 fi
9656
9657 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9658
9659 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9660 IF_GNU_MAKE=""
9661 else
9662 IF_GNU_MAKE="#"
9663 fi
9664
9665
9666
9667 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9668 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9669 echo "configure:9670: checking if make supports VPATH" >&5
9670 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9671 echo $ac_n "(cached) $ac_c" 1>&6
9672 else
9673
9674 cat - << EOF > confMake
9675 check : file
9676 cp \$? \$@
9677 cp \$? final_file
9678 EOF
9679
9680 if test ! -d sub ; then
9681 mkdir sub
9682 fi
9683 echo dummy > sub/file
9684 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9685 RESULT=$?
9686 rm -f sub/file check final_file confMake
9687 rmdir sub
9688 if test "$RESULT" = 0; then
9689 wx_cv_prog_makevpath="yes"
9690 else
9691 wx_cv_prog_makevpath="no"
9692 fi
9693
9694 fi
9695
9696 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9697
9698 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9699 { echo "configure: error:
9700 You need a make-utility that is able to use the variable
9701 VPATH correctly.
9702 If your version of make does not support VPATH correctly,
9703 please install GNU-make (possibly as gmake), and start
9704 configure with the following command:
9705 export MAKE=gmake; ./configure for sh-type shells
9706 setenv MAKE gmake; ./configure for csh-type shells
9707 Also please do remember to use gmake in this case every time
9708 you are trying to compile.
9709 " 1>&2; exit 1; }
9710 fi fi
9711 for ac_prog in 'bison -y' byacc
9712 do
9713 # Extract the first word of "$ac_prog", so it can be a program name with args.
9714 set dummy $ac_prog; ac_word=$2
9715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9716 echo "configure:9717: checking for $ac_word" >&5
9717 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9718 echo $ac_n "(cached) $ac_c" 1>&6
9719 else
9720 if test -n "$YACC"; then
9721 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9722 else
9723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9724 ac_dummy="$PATH"
9725 for ac_dir in $ac_dummy; do
9726 test -z "$ac_dir" && ac_dir=.
9727 if test -f $ac_dir/$ac_word; then
9728 ac_cv_prog_YACC="$ac_prog"
9729 break
9730 fi
9731 done
9732 IFS="$ac_save_ifs"
9733 fi
9734 fi
9735 YACC="$ac_cv_prog_YACC"
9736 if test -n "$YACC"; then
9737 echo "$ac_t""$YACC" 1>&6
9738 else
9739 echo "$ac_t""no" 1>&6
9740 fi
9741
9742 test -n "$YACC" && break
9743 done
9744 test -n "$YACC" || YACC="yacc"
9745
9746
9747 # Extract the first word of "flex", so it can be a program name with args.
9748 set dummy flex; ac_word=$2
9749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9750 echo "configure:9751: checking for $ac_word" >&5
9751 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9752 echo $ac_n "(cached) $ac_c" 1>&6
9753 else
9754 if test -n "$LEX"; then
9755 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9756 else
9757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9758 ac_dummy="$PATH"
9759 for ac_dir in $ac_dummy; do
9760 test -z "$ac_dir" && ac_dir=.
9761 if test -f $ac_dir/$ac_word; then
9762 ac_cv_prog_LEX="flex"
9763 break
9764 fi
9765 done
9766 IFS="$ac_save_ifs"
9767 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9768 fi
9769 fi
9770 LEX="$ac_cv_prog_LEX"
9771 if test -n "$LEX"; then
9772 echo "$ac_t""$LEX" 1>&6
9773 else
9774 echo "$ac_t""no" 1>&6
9775 fi
9776
9777 if test -z "$LEXLIB"
9778 then
9779 case "$LEX" in
9780 flex*) ac_lib=fl ;;
9781 *) ac_lib=l ;;
9782 esac
9783 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9784 echo "configure:9785: checking for yywrap in -l$ac_lib" >&5
9785 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9786 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9787 echo $ac_n "(cached) $ac_c" 1>&6
9788 else
9789 ac_save_LIBS="$LIBS"
9790 LIBS="-l$ac_lib $LIBS"
9791 cat > conftest.$ac_ext <<EOF
9792 #line 9793 "configure"
9793 #include "confdefs.h"
9794 /* Override any gcc2 internal prototype to avoid an error. */
9795 /* We use char because int might match the return type of a gcc2
9796 builtin and then its argument prototype would still apply. */
9797 char yywrap();
9798
9799 int main() {
9800 yywrap()
9801 ; return 0; }
9802 EOF
9803 if { (eval echo configure:9804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9804 rm -rf conftest*
9805 eval "ac_cv_lib_$ac_lib_var=yes"
9806 else
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9809 rm -rf conftest*
9810 eval "ac_cv_lib_$ac_lib_var=no"
9811 fi
9812 rm -f conftest*
9813 LIBS="$ac_save_LIBS"
9814
9815 fi
9816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9817 echo "$ac_t""yes" 1>&6
9818 LEXLIB="-l$ac_lib"
9819 else
9820 echo "$ac_t""no" 1>&6
9821 fi
9822
9823 fi
9824
9825
9826 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9827 echo "configure:9828: checking whether ln -s works" >&5
9828 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
9830 else
9831 rm -f conftestdata
9832 if ln -s X conftestdata 2>/dev/null
9833 then
9834 rm -f conftestdata
9835 ac_cv_prog_LN_S="ln -s"
9836 else
9837 ac_cv_prog_LN_S=ln
9838 fi
9839 fi
9840 LN_S="$ac_cv_prog_LN_S"
9841 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9842 echo "$ac_t""yes" 1>&6
9843 else
9844 echo "$ac_t""no" 1>&6
9845 fi
9846
9847
9848 case "${host}" in
9849 *-pc-os2_emx | *-pc-os2-emx )
9850 LIBS="$LIBS -lstdcpp"
9851 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9852 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9853 echo "configure:9854: checking for drand48 in -lcExt" >&5
9854 ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9856 echo $ac_n "(cached) $ac_c" 1>&6
9857 else
9858 ac_save_LIBS="$LIBS"
9859 LIBS="-lcExt $LIBS"
9860 cat > conftest.$ac_ext <<EOF
9861 #line 9862 "configure"
9862 #include "confdefs.h"
9863 /* Override any gcc2 internal prototype to avoid an error. */
9864 /* We use char because int might match the return type of a gcc2
9865 builtin and then its argument prototype would still apply. */
9866 char drand48();
9867
9868 int main() {
9869 drand48()
9870 ; return 0; }
9871 EOF
9872 if { (eval echo configure:9873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9873 rm -rf conftest*
9874 eval "ac_cv_lib_$ac_lib_var=yes"
9875 else
9876 echo "configure: failed program was:" >&5
9877 cat conftest.$ac_ext >&5
9878 rm -rf conftest*
9879 eval "ac_cv_lib_$ac_lib_var=no"
9880 fi
9881 rm -f conftest*
9882 LIBS="$ac_save_LIBS"
9883
9884 fi
9885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9886 echo "$ac_t""yes" 1>&6
9887 LIBS="$LIBS -lcExt"
9888 else
9889 echo "$ac_t""no" 1>&6
9890 fi
9891
9892 else
9893 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9894 fi
9895 ;;
9896 esac
9897
9898
9899 if test "$wxUSE_MAC" != 1; then
9900 for ac_hdr in strings.h
9901 do
9902 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9903 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9904 echo "configure:9905: checking for $ac_hdr" >&5
9905 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9906 echo $ac_n "(cached) $ac_c" 1>&6
9907 else
9908 cat > conftest.$ac_ext <<EOF
9909 #line 9910 "configure"
9910 #include "confdefs.h"
9911 #include <$ac_hdr>
9912 EOF
9913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9914 { (eval echo configure:9915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9916 if test -z "$ac_err"; then
9917 rm -rf conftest*
9918 eval "ac_cv_header_$ac_safe=yes"
9919 else
9920 echo "$ac_err" >&5
9921 echo "configure: failed program was:" >&5
9922 cat conftest.$ac_ext >&5
9923 rm -rf conftest*
9924 eval "ac_cv_header_$ac_safe=no"
9925 fi
9926 rm -f conftest*
9927 fi
9928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9929 echo "$ac_t""yes" 1>&6
9930 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9931 cat >> confdefs.h <<EOF
9932 #define $ac_tr_hdr 1
9933 EOF
9934
9935 else
9936 echo "$ac_t""no" 1>&6
9937 fi
9938 done
9939
9940 fi
9941
9942 for ac_hdr in stdlib.h
9943 do
9944 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9945 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9946 echo "configure:9947: checking for $ac_hdr" >&5
9947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9948 echo $ac_n "(cached) $ac_c" 1>&6
9949 else
9950 cat > conftest.$ac_ext <<EOF
9951 #line 9952 "configure"
9952 #include "confdefs.h"
9953 #include <$ac_hdr>
9954 EOF
9955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9956 { (eval echo configure:9957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9958 if test -z "$ac_err"; then
9959 rm -rf conftest*
9960 eval "ac_cv_header_$ac_safe=yes"
9961 else
9962 echo "$ac_err" >&5
9963 echo "configure: failed program was:" >&5
9964 cat conftest.$ac_ext >&5
9965 rm -rf conftest*
9966 eval "ac_cv_header_$ac_safe=no"
9967 fi
9968 rm -f conftest*
9969 fi
9970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9971 echo "$ac_t""yes" 1>&6
9972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9973 cat >> confdefs.h <<EOF
9974 #define $ac_tr_hdr 1
9975 EOF
9976
9977 else
9978 echo "$ac_t""no" 1>&6
9979 fi
9980 done
9981
9982 for ac_hdr in malloc.h
9983 do
9984 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9985 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9986 echo "configure:9987: checking for $ac_hdr" >&5
9987 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9988 echo $ac_n "(cached) $ac_c" 1>&6
9989 else
9990 cat > conftest.$ac_ext <<EOF
9991 #line 9992 "configure"
9992 #include "confdefs.h"
9993 #include <$ac_hdr>
9994 EOF
9995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9996 { (eval echo configure:9997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9998 if test -z "$ac_err"; then
9999 rm -rf conftest*
10000 eval "ac_cv_header_$ac_safe=yes"
10001 else
10002 echo "$ac_err" >&5
10003 echo "configure: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10005 rm -rf conftest*
10006 eval "ac_cv_header_$ac_safe=no"
10007 fi
10008 rm -f conftest*
10009 fi
10010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10011 echo "$ac_t""yes" 1>&6
10012 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10013 cat >> confdefs.h <<EOF
10014 #define $ac_tr_hdr 1
10015 EOF
10016
10017 else
10018 echo "$ac_t""no" 1>&6
10019 fi
10020 done
10021
10022 for ac_hdr in unistd.h
10023 do
10024 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10025 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10026 echo "configure:10027: checking for $ac_hdr" >&5
10027 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10028 echo $ac_n "(cached) $ac_c" 1>&6
10029 else
10030 cat > conftest.$ac_ext <<EOF
10031 #line 10032 "configure"
10032 #include "confdefs.h"
10033 #include <$ac_hdr>
10034 EOF
10035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10036 { (eval echo configure:10037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10038 if test -z "$ac_err"; then
10039 rm -rf conftest*
10040 eval "ac_cv_header_$ac_safe=yes"
10041 else
10042 echo "$ac_err" >&5
10043 echo "configure: failed program was:" >&5
10044 cat conftest.$ac_ext >&5
10045 rm -rf conftest*
10046 eval "ac_cv_header_$ac_safe=no"
10047 fi
10048 rm -f conftest*
10049 fi
10050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10051 echo "$ac_t""yes" 1>&6
10052 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10053 cat >> confdefs.h <<EOF
10054 #define $ac_tr_hdr 1
10055 EOF
10056
10057 else
10058 echo "$ac_t""no" 1>&6
10059 fi
10060 done
10061
10062 for ac_hdr in wchar.h
10063 do
10064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10066 echo "configure:10067: checking for $ac_hdr" >&5
10067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10068 echo $ac_n "(cached) $ac_c" 1>&6
10069 else
10070 cat > conftest.$ac_ext <<EOF
10071 #line 10072 "configure"
10072 #include "confdefs.h"
10073 #include <$ac_hdr>
10074 EOF
10075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10076 { (eval echo configure:10077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10078 if test -z "$ac_err"; then
10079 rm -rf conftest*
10080 eval "ac_cv_header_$ac_safe=yes"
10081 else
10082 echo "$ac_err" >&5
10083 echo "configure: failed program was:" >&5
10084 cat conftest.$ac_ext >&5
10085 rm -rf conftest*
10086 eval "ac_cv_header_$ac_safe=no"
10087 fi
10088 rm -f conftest*
10089 fi
10090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10091 echo "$ac_t""yes" 1>&6
10092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10093 cat >> confdefs.h <<EOF
10094 #define $ac_tr_hdr 1
10095 EOF
10096
10097 else
10098 echo "$ac_t""no" 1>&6
10099 fi
10100 done
10101
10102
10103 if test "$ac_cv_header_wchar_h" != "yes"; then
10104 for ac_hdr in wcstr.h
10105 do
10106 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10108 echo "configure:10109: checking for $ac_hdr" >&5
10109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10110 echo $ac_n "(cached) $ac_c" 1>&6
10111 else
10112 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 #include <$ac_hdr>
10116 EOF
10117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10118 { (eval echo configure:10119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10120 if test -z "$ac_err"; then
10121 rm -rf conftest*
10122 eval "ac_cv_header_$ac_safe=yes"
10123 else
10124 echo "$ac_err" >&5
10125 echo "configure: failed program was:" >&5
10126 cat conftest.$ac_ext >&5
10127 rm -rf conftest*
10128 eval "ac_cv_header_$ac_safe=no"
10129 fi
10130 rm -f conftest*
10131 fi
10132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10133 echo "$ac_t""yes" 1>&6
10134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10135 cat >> confdefs.h <<EOF
10136 #define $ac_tr_hdr 1
10137 EOF
10138
10139 else
10140 echo "$ac_t""no" 1>&6
10141 fi
10142 done
10143
10144 fi
10145
10146 for ac_hdr in fnmatch.h
10147 do
10148 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10149 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10150 echo "configure:10151: checking for $ac_hdr" >&5
10151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10152 echo $ac_n "(cached) $ac_c" 1>&6
10153 else
10154 cat > conftest.$ac_ext <<EOF
10155 #line 10156 "configure"
10156 #include "confdefs.h"
10157 #include <$ac_hdr>
10158 EOF
10159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10160 { (eval echo configure:10161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10162 if test -z "$ac_err"; then
10163 rm -rf conftest*
10164 eval "ac_cv_header_$ac_safe=yes"
10165 else
10166 echo "$ac_err" >&5
10167 echo "configure: failed program was:" >&5
10168 cat conftest.$ac_ext >&5
10169 rm -rf conftest*
10170 eval "ac_cv_header_$ac_safe=no"
10171 fi
10172 rm -f conftest*
10173 fi
10174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10175 echo "$ac_t""yes" 1>&6
10176 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10177 cat >> confdefs.h <<EOF
10178 #define $ac_tr_hdr 1
10179 EOF
10180
10181 else
10182 echo "$ac_t""no" 1>&6
10183 fi
10184 done
10185
10186
10187 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10188 for ac_func in fnmatch
10189 do
10190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10191 echo "configure:10192: checking for $ac_func" >&5
10192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10193 echo $ac_n "(cached) $ac_c" 1>&6
10194 else
10195 cat > conftest.$ac_ext <<EOF
10196 #line 10197 "configure"
10197 #include "confdefs.h"
10198 /* System header to define __stub macros and hopefully few prototypes,
10199 which can conflict with char $ac_func(); below. */
10200 #include <assert.h>
10201 /* Override any gcc2 internal prototype to avoid an error. */
10202 /* We use char because int might match the return type of a gcc2
10203 builtin and then its argument prototype would still apply. */
10204 char $ac_func();
10205
10206 int main() {
10207
10208 /* The GNU C library defines this for functions which it implements
10209 to always fail with ENOSYS. Some functions are actually named
10210 something starting with __ and the normal name is an alias. */
10211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10212 choke me
10213 #else
10214 $ac_func();
10215 #endif
10216
10217 ; return 0; }
10218 EOF
10219 if { (eval echo configure:10220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10220 rm -rf conftest*
10221 eval "ac_cv_func_$ac_func=yes"
10222 else
10223 echo "configure: failed program was:" >&5
10224 cat conftest.$ac_ext >&5
10225 rm -rf conftest*
10226 eval "ac_cv_func_$ac_func=no"
10227 fi
10228 rm -f conftest*
10229 fi
10230
10231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10232 echo "$ac_t""yes" 1>&6
10233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10234 cat >> confdefs.h <<EOF
10235 #define $ac_tr_func 1
10236 EOF
10237
10238 else
10239 echo "$ac_t""no" 1>&6
10240 fi
10241 done
10242
10243 fi
10244
10245 for ac_hdr in langinfo.h
10246 do
10247 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10248 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10249 echo "configure:10250: checking for $ac_hdr" >&5
10250 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10251 echo $ac_n "(cached) $ac_c" 1>&6
10252 else
10253 cat > conftest.$ac_ext <<EOF
10254 #line 10255 "configure"
10255 #include "confdefs.h"
10256 #include <$ac_hdr>
10257 EOF
10258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10259 { (eval echo configure:10260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10261 if test -z "$ac_err"; then
10262 rm -rf conftest*
10263 eval "ac_cv_header_$ac_safe=yes"
10264 else
10265 echo "$ac_err" >&5
10266 echo "configure: failed program was:" >&5
10267 cat conftest.$ac_ext >&5
10268 rm -rf conftest*
10269 eval "ac_cv_header_$ac_safe=no"
10270 fi
10271 rm -f conftest*
10272 fi
10273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10274 echo "$ac_t""yes" 1>&6
10275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10276 cat >> confdefs.h <<EOF
10277 #define $ac_tr_hdr 1
10278 EOF
10279
10280 else
10281 echo "$ac_t""no" 1>&6
10282 fi
10283 done
10284
10285
10286 if test "$wxUSE_GUI" = "yes"; then
10287 if test "$wxUSE_UNIX" = "yes"; then
10288 for ac_hdr in X11/XKBlib.h
10289 do
10290 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10292 echo "configure:10293: checking for $ac_hdr" >&5
10293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10294 echo $ac_n "(cached) $ac_c" 1>&6
10295 else
10296 cat > conftest.$ac_ext <<EOF
10297 #line 10298 "configure"
10298 #include "confdefs.h"
10299 #include <$ac_hdr>
10300 EOF
10301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10302 { (eval echo configure:10303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10304 if test -z "$ac_err"; then
10305 rm -rf conftest*
10306 eval "ac_cv_header_$ac_safe=yes"
10307 else
10308 echo "$ac_err" >&5
10309 echo "configure: failed program was:" >&5
10310 cat conftest.$ac_ext >&5
10311 rm -rf conftest*
10312 eval "ac_cv_header_$ac_safe=no"
10313 fi
10314 rm -f conftest*
10315 fi
10316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10317 echo "$ac_t""yes" 1>&6
10318 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10319 cat >> confdefs.h <<EOF
10320 #define $ac_tr_hdr 1
10321 EOF
10322
10323 else
10324 echo "$ac_t""no" 1>&6
10325 fi
10326 done
10327
10328 fi
10329 fi
10330
10331
10332 echo $ac_n "checking for working const""... $ac_c" 1>&6
10333 echo "configure:10334: checking for working const" >&5
10334 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10336 else
10337 cat > conftest.$ac_ext <<EOF
10338 #line 10339 "configure"
10339 #include "confdefs.h"
10340
10341 int main() {
10342
10343 /* Ultrix mips cc rejects this. */
10344 typedef int charset[2]; const charset x;
10345 /* SunOS 4.1.1 cc rejects this. */
10346 char const *const *ccp;
10347 char **p;
10348 /* NEC SVR4.0.2 mips cc rejects this. */
10349 struct point {int x, y;};
10350 static struct point const zero = {0,0};
10351 /* AIX XL C 1.02.0.0 rejects this.
10352 It does not let you subtract one const X* pointer from another in an arm
10353 of an if-expression whose if-part is not a constant expression */
10354 const char *g = "string";
10355 ccp = &g + (g ? g-g : 0);
10356 /* HPUX 7.0 cc rejects these. */
10357 ++ccp;
10358 p = (char**) ccp;
10359 ccp = (char const *const *) p;
10360 { /* SCO 3.2v4 cc rejects this. */
10361 char *t;
10362 char const *s = 0 ? (char *) 0 : (char const *) 0;
10363
10364 *t++ = 0;
10365 }
10366 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10367 int x[] = {25, 17};
10368 const int *foo = &x[0];
10369 ++foo;
10370 }
10371 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10372 typedef const int *iptr;
10373 iptr p = 0;
10374 ++p;
10375 }
10376 { /* AIX XL C 1.02.0.0 rejects this saying
10377 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10378 struct s { int j; const int *ap[3]; };
10379 struct s *b; b->j = 5;
10380 }
10381 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10382 const int foo = 10;
10383 }
10384
10385 ; return 0; }
10386 EOF
10387 if { (eval echo configure:10388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10388 rm -rf conftest*
10389 ac_cv_c_const=yes
10390 else
10391 echo "configure: failed program was:" >&5
10392 cat conftest.$ac_ext >&5
10393 rm -rf conftest*
10394 ac_cv_c_const=no
10395 fi
10396 rm -f conftest*
10397 fi
10398
10399 echo "$ac_t""$ac_cv_c_const" 1>&6
10400 if test $ac_cv_c_const = no; then
10401 cat >> confdefs.h <<\EOF
10402 #define const
10403 EOF
10404
10405 fi
10406
10407 echo $ac_n "checking for inline""... $ac_c" 1>&6
10408 echo "configure:10409: checking for inline" >&5
10409 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10411 else
10412 ac_cv_c_inline=no
10413 for ac_kw in inline __inline__ __inline; do
10414 cat > conftest.$ac_ext <<EOF
10415 #line 10416 "configure"
10416 #include "confdefs.h"
10417
10418 int main() {
10419 } $ac_kw foo() {
10420 ; return 0; }
10421 EOF
10422 if { (eval echo configure:10423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10423 rm -rf conftest*
10424 ac_cv_c_inline=$ac_kw; break
10425 else
10426 echo "configure: failed program was:" >&5
10427 cat conftest.$ac_ext >&5
10428 fi
10429 rm -f conftest*
10430 done
10431
10432 fi
10433
10434 echo "$ac_t""$ac_cv_c_inline" 1>&6
10435 case "$ac_cv_c_inline" in
10436 inline | yes) ;;
10437 no) cat >> confdefs.h <<\EOF
10438 #define inline
10439 EOF
10440 ;;
10441 *) cat >> confdefs.h <<EOF
10442 #define inline $ac_cv_c_inline
10443 EOF
10444 ;;
10445 esac
10446
10447
10448 echo $ac_n "checking size of char""... $ac_c" 1>&6
10449 echo "configure:10450: checking size of char" >&5
10450 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10451 echo $ac_n "(cached) $ac_c" 1>&6
10452 else
10453 if test "$cross_compiling" = yes; then
10454 ac_cv_sizeof_char=1
10455 else
10456 cat > conftest.$ac_ext <<EOF
10457 #line 10458 "configure"
10458 #include "confdefs.h"
10459 #include <stdio.h>
10460 main()
10461 {
10462 FILE *f=fopen("conftestval", "w");
10463 if (!f) exit(1);
10464 fprintf(f, "%d\n", sizeof(char));
10465 exit(0);
10466 }
10467 EOF
10468 if { (eval echo configure:10469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10469 then
10470 ac_cv_sizeof_char=`cat conftestval`
10471 else
10472 echo "configure: failed program was:" >&5
10473 cat conftest.$ac_ext >&5
10474 rm -fr conftest*
10475 ac_cv_sizeof_char=0
10476 fi
10477 rm -fr conftest*
10478 fi
10479
10480 fi
10481 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10482 cat >> confdefs.h <<EOF
10483 #define SIZEOF_CHAR $ac_cv_sizeof_char
10484 EOF
10485
10486
10487 echo $ac_n "checking size of short""... $ac_c" 1>&6
10488 echo "configure:10489: checking size of short" >&5
10489 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10490 echo $ac_n "(cached) $ac_c" 1>&6
10491 else
10492 if test "$cross_compiling" = yes; then
10493 ac_cv_sizeof_short=2
10494 else
10495 cat > conftest.$ac_ext <<EOF
10496 #line 10497 "configure"
10497 #include "confdefs.h"
10498 #include <stdio.h>
10499 main()
10500 {
10501 FILE *f=fopen("conftestval", "w");
10502 if (!f) exit(1);
10503 fprintf(f, "%d\n", sizeof(short));
10504 exit(0);
10505 }
10506 EOF
10507 if { (eval echo configure:10508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10508 then
10509 ac_cv_sizeof_short=`cat conftestval`
10510 else
10511 echo "configure: failed program was:" >&5
10512 cat conftest.$ac_ext >&5
10513 rm -fr conftest*
10514 ac_cv_sizeof_short=0
10515 fi
10516 rm -fr conftest*
10517 fi
10518
10519 fi
10520 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10521 cat >> confdefs.h <<EOF
10522 #define SIZEOF_SHORT $ac_cv_sizeof_short
10523 EOF
10524
10525
10526 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10527 echo "configure:10528: checking size of void *" >&5
10528 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10529 echo $ac_n "(cached) $ac_c" 1>&6
10530 else
10531 if test "$cross_compiling" = yes; then
10532 ac_cv_sizeof_void_p=4
10533 else
10534 cat > conftest.$ac_ext <<EOF
10535 #line 10536 "configure"
10536 #include "confdefs.h"
10537 #include <stdio.h>
10538 main()
10539 {
10540 FILE *f=fopen("conftestval", "w");
10541 if (!f) exit(1);
10542 fprintf(f, "%d\n", sizeof(void *));
10543 exit(0);
10544 }
10545 EOF
10546 if { (eval echo configure:10547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10547 then
10548 ac_cv_sizeof_void_p=`cat conftestval`
10549 else
10550 echo "configure: failed program was:" >&5
10551 cat conftest.$ac_ext >&5
10552 rm -fr conftest*
10553 ac_cv_sizeof_void_p=0
10554 fi
10555 rm -fr conftest*
10556 fi
10557
10558 fi
10559 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10560 cat >> confdefs.h <<EOF
10561 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10562 EOF
10563
10564
10565 echo $ac_n "checking size of int""... $ac_c" 1>&6
10566 echo "configure:10567: checking size of int" >&5
10567 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10568 echo $ac_n "(cached) $ac_c" 1>&6
10569 else
10570 if test "$cross_compiling" = yes; then
10571 ac_cv_sizeof_int=4
10572 else
10573 cat > conftest.$ac_ext <<EOF
10574 #line 10575 "configure"
10575 #include "confdefs.h"
10576 #include <stdio.h>
10577 main()
10578 {
10579 FILE *f=fopen("conftestval", "w");
10580 if (!f) exit(1);
10581 fprintf(f, "%d\n", sizeof(int));
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_int=`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_int=0
10593 fi
10594 rm -fr conftest*
10595 fi
10596
10597 fi
10598 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10599 cat >> confdefs.h <<EOF
10600 #define SIZEOF_INT $ac_cv_sizeof_int
10601 EOF
10602
10603
10604 echo $ac_n "checking size of long""... $ac_c" 1>&6
10605 echo "configure:10606: checking size of long" >&5
10606 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10607 echo $ac_n "(cached) $ac_c" 1>&6
10608 else
10609 if test "$cross_compiling" = yes; then
10610 ac_cv_sizeof_long=4
10611 else
10612 cat > conftest.$ac_ext <<EOF
10613 #line 10614 "configure"
10614 #include "confdefs.h"
10615 #include <stdio.h>
10616 main()
10617 {
10618 FILE *f=fopen("conftestval", "w");
10619 if (!f) exit(1);
10620 fprintf(f, "%d\n", sizeof(long));
10621 exit(0);
10622 }
10623 EOF
10624 if { (eval echo configure:10625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10625 then
10626 ac_cv_sizeof_long=`cat conftestval`
10627 else
10628 echo "configure: failed program was:" >&5
10629 cat conftest.$ac_ext >&5
10630 rm -fr conftest*
10631 ac_cv_sizeof_long=0
10632 fi
10633 rm -fr conftest*
10634 fi
10635
10636 fi
10637 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10638 cat >> confdefs.h <<EOF
10639 #define SIZEOF_LONG $ac_cv_sizeof_long
10640 EOF
10641
10642
10643
10644 case "${host}" in
10645 arm-*-linux* )
10646 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10647 echo "configure:10648: checking size of long long" >&5
10648 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10649 echo $ac_n "(cached) $ac_c" 1>&6
10650 else
10651 if test "$cross_compiling" = yes; then
10652 ac_cv_sizeof_long_long=8
10653 else
10654 cat > conftest.$ac_ext <<EOF
10655 #line 10656 "configure"
10656 #include "confdefs.h"
10657 #include <stdio.h>
10658 main()
10659 {
10660 FILE *f=fopen("conftestval", "w");
10661 if (!f) exit(1);
10662 fprintf(f, "%d\n", sizeof(long long));
10663 exit(0);
10664 }
10665 EOF
10666 if { (eval echo configure:10667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10667 then
10668 ac_cv_sizeof_long_long=`cat conftestval`
10669 else
10670 echo "configure: failed program was:" >&5
10671 cat conftest.$ac_ext >&5
10672 rm -fr conftest*
10673 ac_cv_sizeof_long_long=0
10674 fi
10675 rm -fr conftest*
10676 fi
10677
10678 fi
10679 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10680 cat >> confdefs.h <<EOF
10681 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10682 EOF
10683
10684
10685 ;;
10686 *-hp-hpux* )
10687 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10688 echo "configure:10689: checking size of long long" >&5
10689 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10690 echo $ac_n "(cached) $ac_c" 1>&6
10691 else
10692 if test "$cross_compiling" = yes; then
10693 ac_cv_sizeof_long_long=0
10694 else
10695 cat > conftest.$ac_ext <<EOF
10696 #line 10697 "configure"
10697 #include "confdefs.h"
10698 #include <stdio.h>
10699 main()
10700 {
10701 FILE *f=fopen("conftestval", "w");
10702 if (!f) exit(1);
10703 fprintf(f, "%d\n", sizeof(long long));
10704 exit(0);
10705 }
10706 EOF
10707 if { (eval echo configure:10708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10708 then
10709 ac_cv_sizeof_long_long=`cat conftestval`
10710 else
10711 echo "configure: failed program was:" >&5
10712 cat conftest.$ac_ext >&5
10713 rm -fr conftest*
10714 ac_cv_sizeof_long_long=0
10715 fi
10716 rm -fr conftest*
10717 fi
10718
10719 fi
10720 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10721 cat >> confdefs.h <<EOF
10722 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10723 EOF
10724
10725
10726 if test "$ac_cv_sizeof_long_long" != "0"; then
10727 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10728 fi
10729 ;;
10730 * )
10731 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10732 echo "configure:10733: checking size of long long" >&5
10733 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10734 echo $ac_n "(cached) $ac_c" 1>&6
10735 else
10736 if test "$cross_compiling" = yes; then
10737 ac_cv_sizeof_long_long=0
10738 else
10739 cat > conftest.$ac_ext <<EOF
10740 #line 10741 "configure"
10741 #include "confdefs.h"
10742 #include <stdio.h>
10743 main()
10744 {
10745 FILE *f=fopen("conftestval", "w");
10746 if (!f) exit(1);
10747 fprintf(f, "%d\n", sizeof(long long));
10748 exit(0);
10749 }
10750 EOF
10751 if { (eval echo configure:10752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10752 then
10753 ac_cv_sizeof_long_long=`cat conftestval`
10754 else
10755 echo "configure: failed program was:" >&5
10756 cat conftest.$ac_ext >&5
10757 rm -fr conftest*
10758 ac_cv_sizeof_long_long=0
10759 fi
10760 rm -fr conftest*
10761 fi
10762
10763 fi
10764 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10765 cat >> confdefs.h <<EOF
10766 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10767 EOF
10768
10769
10770 esac
10771
10772 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10773 echo "configure:10774: checking size of wchar_t" >&5
10774 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10775 echo $ac_n "(cached) $ac_c" 1>&6
10776 else
10777
10778 if test "$cross_compiling" = yes; then
10779
10780 case "${host}" in
10781 *-pc-msdosdjgpp )
10782 wx_cv_sizeof_wchar_t=0
10783 ;;
10784 * )
10785 wx_cv_sizeof_wchar_t=4
10786 ;;
10787 esac
10788
10789
10790 else
10791 cat > conftest.$ac_ext <<EOF
10792 #line 10793 "configure"
10793 #include "confdefs.h"
10794
10795 /* DJGPP only has fake wchar_t: */
10796 #ifdef __DJGPP__
10797 # error "fake wchar_t"
10798 #endif
10799 #ifdef HAVE_WCHAR_H
10800 # ifdef __CYGWIN__
10801 # include <stddef.h>
10802 # endif
10803 # include <wchar.h>
10804 #endif
10805 #ifdef HAVE_STDLIB_H
10806 # include <stdlib.h>
10807 #endif
10808 #include <stdio.h>
10809 int main()
10810 {
10811 FILE *f=fopen("conftestval", "w");
10812 if (!f) exit(1);
10813 fprintf(f, "%i", sizeof(wchar_t));
10814 exit(0);
10815 }
10816
10817 EOF
10818 if { (eval echo configure:10819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10819 then
10820 wx_cv_sizeof_wchar_t=`cat conftestval`
10821 else
10822 echo "configure: failed program was:" >&5
10823 cat conftest.$ac_ext >&5
10824 rm -fr conftest*
10825 wx_cv_sizeof_wchar_t=0
10826 fi
10827 rm -fr conftest*
10828 fi
10829
10830
10831 fi
10832
10833 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10834
10835 cat >> confdefs.h <<EOF
10836 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10837 EOF
10838
10839
10840 # Check whether --enable-largefile or --disable-largefile was given.
10841 if test "${enable_largefile+set}" = set; then
10842 enableval="$enable_largefile"
10843 :
10844 fi
10845
10846 if test "$enable_largefile" != no; then
10847 wx_largefile=no
10848
10849 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10850 echo "configure:10851: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10851 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10852 echo $ac_n "(cached) $ac_c" 1>&6
10853 else
10854
10855 cat > conftest.$ac_ext <<EOF
10856 #line 10857 "configure"
10857 #include "confdefs.h"
10858 #define _FILE_OFFSET_BITS 64
10859 #include <sys/types.h>
10860 int main() {
10861 typedef struct {
10862 unsigned int field: sizeof(off_t) == 8;
10863 } wxlf;
10864
10865 ; return 0; }
10866 EOF
10867 if { (eval echo configure:10868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10868 rm -rf conftest*
10869 ac_cv_sys_file_offset_bits=64
10870 else
10871 echo "configure: failed program was:" >&5
10872 cat conftest.$ac_ext >&5
10873 rm -rf conftest*
10874 ac_cv_sys_file_offset_bits=no
10875 fi
10876 rm -f conftest*
10877
10878
10879 fi
10880
10881 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10882
10883 if test "$ac_cv_sys_file_offset_bits" != no; then
10884 wx_largefile=yes
10885 cat >> confdefs.h <<EOF
10886 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10887 EOF
10888
10889 fi
10890
10891 if test "x$wx_largefile" != "xyes"; then
10892
10893 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10894 echo "configure:10895: checking for _LARGE_FILES value needed for large files" >&5
10895 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10896 echo $ac_n "(cached) $ac_c" 1>&6
10897 else
10898
10899 cat > conftest.$ac_ext <<EOF
10900 #line 10901 "configure"
10901 #include "confdefs.h"
10902 #define _LARGE_FILES 1
10903 #include <sys/types.h>
10904 int main() {
10905 typedef struct {
10906 unsigned int field: sizeof(off_t) == 8;
10907 } wxlf;
10908
10909 ; return 0; }
10910 EOF
10911 if { (eval echo configure:10912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10912 rm -rf conftest*
10913 ac_cv_sys_large_files=1
10914 else
10915 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10917 rm -rf conftest*
10918 ac_cv_sys_large_files=no
10919 fi
10920 rm -f conftest*
10921
10922
10923 fi
10924
10925 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10926
10927 if test "$ac_cv_sys_large_files" != no; then
10928 wx_largefile=yes
10929 cat >> confdefs.h <<EOF
10930 #define _LARGE_FILES $ac_cv_sys_large_files
10931 EOF
10932
10933 fi
10934
10935 fi
10936
10937 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10938 echo "configure:10939: checking if large file support is available" >&5
10939 if test "x$wx_largefile" = "xyes"; then
10940 cat >> confdefs.h <<\EOF
10941 #define HAVE_LARGEFILE_SUPPORT 1
10942 EOF
10943
10944 fi
10945 echo "$ac_t""$wx_largefile" 1>&6
10946 fi
10947
10948
10949 if test "x$wx_largefile" = "xyes"; then
10950 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10951 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10952 else
10953 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10954 fi
10955 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10956 fi
10957
10958 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10959 echo "configure:10960: checking whether byte ordering is bigendian" >&5
10960 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10961 echo $ac_n "(cached) $ac_c" 1>&6
10962 else
10963 ac_cv_c_bigendian=unknown
10964 # See if sys/param.h defines the BYTE_ORDER macro.
10965 cat > conftest.$ac_ext <<EOF
10966 #line 10967 "configure"
10967 #include "confdefs.h"
10968 #include <sys/types.h>
10969 #include <sys/param.h>
10970 int main() {
10971
10972 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10973 bogus endian macros
10974 #endif
10975 ; return 0; }
10976 EOF
10977 if { (eval echo configure:10978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10978 rm -rf conftest*
10979 # It does; now see whether it defined to BIG_ENDIAN or not.
10980 cat > conftest.$ac_ext <<EOF
10981 #line 10982 "configure"
10982 #include "confdefs.h"
10983 #include <sys/types.h>
10984 #include <sys/param.h>
10985 int main() {
10986
10987 #if BYTE_ORDER != BIG_ENDIAN
10988 not big endian
10989 #endif
10990 ; return 0; }
10991 EOF
10992 if { (eval echo configure:10993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10993 rm -rf conftest*
10994 ac_cv_c_bigendian=yes
10995 else
10996 echo "configure: failed program was:" >&5
10997 cat conftest.$ac_ext >&5
10998 rm -rf conftest*
10999 ac_cv_c_bigendian=no
11000 fi
11001 rm -f conftest*
11002 else
11003 echo "configure: failed program was:" >&5
11004 cat conftest.$ac_ext >&5
11005 fi
11006 rm -f conftest*
11007 if test $ac_cv_c_bigendian = unknown; then
11008 if test "$cross_compiling" = yes; then
11009 ac_cv_c_bigendian=unknown
11010 else
11011 cat > conftest.$ac_ext <<EOF
11012 #line 11013 "configure"
11013 #include "confdefs.h"
11014 main () {
11015 /* Are we little or big endian? From Harbison&Steele. */
11016 union
11017 {
11018 long l;
11019 char c[sizeof (long)];
11020 } u;
11021 u.l = 1;
11022 exit (u.c[sizeof (long) - 1] == 1);
11023 }
11024 EOF
11025 if { (eval echo configure:11026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11026 then
11027 ac_cv_c_bigendian=no
11028 else
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11031 rm -fr conftest*
11032 ac_cv_c_bigendian=yes
11033 fi
11034 rm -fr conftest*
11035 fi
11036
11037 fi
11038 fi
11039
11040 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11041 if test $ac_cv_c_bigendian = unknown; then
11042 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
11043 fi
11044 if test $ac_cv_c_bigendian = yes; then
11045 cat >> confdefs.h <<\EOF
11046 #define WORDS_BIGENDIAN 1
11047 EOF
11048
11049 fi
11050
11051
11052 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
11053 echo "configure:11054: checking how to run the C++ preprocessor" >&5
11054 if test -z "$CXXCPP"; then
11055 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11056 echo $ac_n "(cached) $ac_c" 1>&6
11057 else
11058 ac_ext=C
11059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11060 ac_cpp='$CXXCPP $CPPFLAGS'
11061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11063 cross_compiling=$ac_cv_prog_cxx_cross
11064 CXXCPP="${CXX-g++} -E"
11065 cat > conftest.$ac_ext <<EOF
11066 #line 11067 "configure"
11067 #include "confdefs.h"
11068 #include <stdlib.h>
11069 EOF
11070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11071 { (eval echo configure:11072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11073 if test -z "$ac_err"; then
11074 :
11075 else
11076 echo "$ac_err" >&5
11077 echo "configure: failed program was:" >&5
11078 cat conftest.$ac_ext >&5
11079 rm -rf conftest*
11080 CXXCPP=/lib/cpp
11081 fi
11082 rm -f conftest*
11083 ac_cv_prog_CXXCPP="$CXXCPP"
11084 ac_ext=C
11085 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11086 ac_cpp='$CXXCPP $CPPFLAGS'
11087 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11088 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11089 cross_compiling=$ac_cv_prog_cxx_cross
11090 fi
11091 fi
11092 CXXCPP="$ac_cv_prog_CXXCPP"
11093 echo "$ac_t""$CXXCPP" 1>&6
11094
11095
11096 if test "$cross_compiling" = "yes"; then
11097 cat >> confdefs.h <<\EOF
11098 #define wxUSE_IOSTREAMH 1
11099 EOF
11100
11101 else
11102
11103 ac_ext=C
11104 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11105 ac_cpp='$CXXCPP $CPPFLAGS'
11106 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11107 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11108 cross_compiling=$ac_cv_prog_cxx_cross
11109
11110
11111 for ac_hdr in iostream
11112 do
11113 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11114 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11115 echo "configure:11116: checking for $ac_hdr" >&5
11116 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11117 echo $ac_n "(cached) $ac_c" 1>&6
11118 else
11119 cat > conftest.$ac_ext <<EOF
11120 #line 11121 "configure"
11121 #include "confdefs.h"
11122 #include <$ac_hdr>
11123 EOF
11124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11125 { (eval echo configure:11126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11127 if test -z "$ac_err"; then
11128 rm -rf conftest*
11129 eval "ac_cv_header_$ac_safe=yes"
11130 else
11131 echo "$ac_err" >&5
11132 echo "configure: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11134 rm -rf conftest*
11135 eval "ac_cv_header_$ac_safe=no"
11136 fi
11137 rm -f conftest*
11138 fi
11139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11140 echo "$ac_t""yes" 1>&6
11141 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11142 cat >> confdefs.h <<EOF
11143 #define $ac_tr_hdr 1
11144 EOF
11145
11146 else
11147 echo "$ac_t""no" 1>&6
11148 fi
11149 done
11150
11151
11152 if test "$ac_cv_header_iostream" = "yes" ; then
11153 :
11154 else
11155 cat >> confdefs.h <<\EOF
11156 #define wxUSE_IOSTREAMH 1
11157 EOF
11158
11159 fi
11160
11161 ac_ext=c
11162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11163 ac_cpp='$CPP $CPPFLAGS'
11164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11166 cross_compiling=$ac_cv_prog_cc_cross
11167
11168 fi
11169
11170
11171
11172 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11173 echo "configure:11174: checking if C++ compiler supports bool" >&5
11174 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11175 echo $ac_n "(cached) $ac_c" 1>&6
11176 else
11177
11178
11179 ac_ext=C
11180 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11181 ac_cpp='$CXXCPP $CPPFLAGS'
11182 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11183 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11184 cross_compiling=$ac_cv_prog_cxx_cross
11185
11186
11187 cat > conftest.$ac_ext <<EOF
11188 #line 11189 "configure"
11189 #include "confdefs.h"
11190
11191
11192 int main() {
11193
11194 bool b = true;
11195
11196 return 0;
11197
11198 ; return 0; }
11199 EOF
11200 if { (eval echo configure:11201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11201 rm -rf conftest*
11202
11203 wx_cv_cpp_bool=yes
11204
11205 else
11206 echo "configure: failed program was:" >&5
11207 cat conftest.$ac_ext >&5
11208 rm -rf conftest*
11209
11210 wx_cv_cpp_bool=no
11211
11212
11213 fi
11214 rm -f conftest*
11215
11216 ac_ext=c
11217 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11218 ac_cpp='$CPP $CPPFLAGS'
11219 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11220 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11221 cross_compiling=$ac_cv_prog_cc_cross
11222
11223
11224 fi
11225
11226 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11227
11228 if test "$wx_cv_cpp_bool" = "yes"; then
11229 cat >> confdefs.h <<\EOF
11230 #define HAVE_BOOL 1
11231 EOF
11232
11233 fi
11234
11235
11236
11237 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11238 echo "configure:11239: checking if C++ compiler supports the explicit keyword" >&5
11239 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11240 echo $ac_n "(cached) $ac_c" 1>&6
11241 else
11242
11243
11244 ac_ext=C
11245 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11246 ac_cpp='$CXXCPP $CPPFLAGS'
11247 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11248 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11249 cross_compiling=$ac_cv_prog_cxx_cross
11250
11251
11252 cat > conftest.$ac_ext <<EOF
11253 #line 11254 "configure"
11254 #include "confdefs.h"
11255
11256 class Foo { public: explicit Foo(int) {} };
11257
11258 int main() {
11259
11260 return 0;
11261
11262 ; return 0; }
11263 EOF
11264 if { (eval echo configure:11265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11265 rm -rf conftest*
11266
11267 cat > conftest.$ac_ext <<EOF
11268 #line 11269 "configure"
11269 #include "confdefs.h"
11270
11271 class Foo { public: explicit Foo(int) {} };
11272 static void TakeFoo(const Foo& foo) { }
11273
11274 int main() {
11275
11276 TakeFoo(17);
11277 return 0;
11278
11279 ; return 0; }
11280 EOF
11281 if { (eval echo configure:11282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11282 rm -rf conftest*
11283 wx_cv_explicit=no
11284 else
11285 echo "configure: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11287 rm -rf conftest*
11288 wx_cv_explicit=yes
11289
11290 fi
11291 rm -f conftest*
11292
11293 else
11294 echo "configure: failed program was:" >&5
11295 cat conftest.$ac_ext >&5
11296 rm -rf conftest*
11297 wx_cv_explicit=no
11298
11299 fi
11300 rm -f conftest*
11301
11302 ac_ext=c
11303 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11304 ac_cpp='$CPP $CPPFLAGS'
11305 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11306 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11307 cross_compiling=$ac_cv_prog_cc_cross
11308
11309
11310 fi
11311
11312 echo "$ac_t""$wx_cv_explicit" 1>&6
11313
11314 if test "$wx_cv_explicit" = "yes"; then
11315 cat >> confdefs.h <<\EOF
11316 #define HAVE_EXPLICIT 1
11317 EOF
11318
11319 fi
11320
11321
11322
11323 SEARCH_INCLUDE="\
11324 /usr/local/include \
11325 \
11326 /usr/Motif-1.2/include \
11327 /usr/Motif-2.1/include \
11328 \
11329 /usr/include/Motif1.2 \
11330 /opt/xpm/include/X11 \
11331 /opt/GBxpm/include/ \
11332 /opt/GBxpm/X11/include/ \
11333 \
11334 /usr/Motif1.2/include \
11335 /usr/dt/include \
11336 /usr/openwin/include \
11337 \
11338 /usr/include/Xm \
11339 \
11340 /usr/X11R6/include \
11341 /usr/X11R6.4/include \
11342 /usr/X11R5/include \
11343 /usr/X11R4/include \
11344 \
11345 /usr/include/X11R6 \
11346 /usr/include/X11R5 \
11347 /usr/include/X11R4 \
11348 \
11349 /usr/local/X11R6/include \
11350 /usr/local/X11R5/include \
11351 /usr/local/X11R4/include \
11352 \
11353 /usr/local/include/X11R6 \
11354 /usr/local/include/X11R5 \
11355 /usr/local/include/X11R4 \
11356 \
11357 /usr/X11/include \
11358 /usr/include/X11 \
11359 /usr/local/X11/include \
11360 /usr/local/include/X11 \
11361 \
11362 /usr/X386/include \
11363 /usr/x386/include \
11364 /usr/XFree86/include/X11 \
11365 \
11366 X:/XFree86/include \
11367 X:/XFree86/include/X11 \
11368 \
11369 /usr/include/gtk \
11370 /usr/local/include/gtk \
11371 /usr/include/glib \
11372 /usr/local/include/glib \
11373 \
11374 /usr/include/qt \
11375 /usr/local/include/qt \
11376 \
11377 /usr/include/windows \
11378 /usr/include/wine \
11379 /usr/local/include/wine \
11380 \
11381 /usr/unsupported/include \
11382 /usr/athena/include \
11383 /usr/local/x11r5/include \
11384 /usr/lpp/Xamples/include \
11385 \
11386 /usr/openwin/share/include"
11387
11388 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11389
11390
11391 cat > confcache <<\EOF
11392 # This file is a shell script that caches the results of configure
11393 # tests run on this system so they can be shared between configure
11394 # scripts and configure runs. It is not useful on other systems.
11395 # If it contains results you don't want to keep, you may remove or edit it.
11396 #
11397 # By default, configure uses ./config.cache as the cache file,
11398 # creating it if it does not exist already. You can give configure
11399 # the --cache-file=FILE option to use a different cache file; that is
11400 # what configure does when it calls configure scripts in
11401 # subdirectories, so they share the cache.
11402 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11403 # config.status only pays attention to the cache file if you give it the
11404 # --recheck option to rerun configure.
11405 #
11406 EOF
11407 # The following way of writing the cache mishandles newlines in values,
11408 # but we know of no workaround that is simple, portable, and efficient.
11409 # So, don't put newlines in cache variables' values.
11410 # Ultrix sh set writes to stderr and can't be redirected directly,
11411 # and sets the high bit in the cache file unless we assign to the vars.
11412 (set) 2>&1 |
11413 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11414 *ac_space=\ *)
11415 # `set' does not quote correctly, so add quotes (double-quote substitution
11416 # turns \\\\ into \\, and sed turns \\ into \).
11417 sed -n \
11418 -e "s/'/'\\\\''/g" \
11419 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11420 ;;
11421 *)
11422 # `set' quotes correctly as required by POSIX, so do not add quotes.
11423 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11424 ;;
11425 esac >> confcache
11426 if cmp -s $cache_file confcache; then
11427 :
11428 else
11429 if test -w $cache_file; then
11430 echo "updating cache $cache_file"
11431 cat confcache > $cache_file
11432 else
11433 echo "not updating unwritable cache $cache_file"
11434 fi
11435 fi
11436 rm -f confcache
11437
11438
11439 if test "$USE_LINUX" = 1; then
11440 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11441 echo "configure:11442: checking for glibc 2.1 or later" >&5
11442 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11443 echo $ac_n "(cached) $ac_c" 1>&6
11444 else
11445
11446 cat > conftest.$ac_ext <<EOF
11447 #line 11448 "configure"
11448 #include "confdefs.h"
11449 #include <features.h>
11450 int main() {
11451
11452 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11453 #error not glibc2.1
11454 #endif
11455
11456 ; return 0; }
11457 EOF
11458 if { (eval echo configure:11459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11459 rm -rf conftest*
11460
11461 wx_cv_lib_glibc21=yes
11462
11463 else
11464 echo "configure: failed program was:" >&5
11465 cat conftest.$ac_ext >&5
11466 rm -rf conftest*
11467
11468 wx_cv_lib_glibc21=no
11469
11470
11471 fi
11472 rm -f conftest*
11473
11474 fi
11475
11476 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11477 if test "$wx_cv_lib_glibc21" = "yes"; then
11478 cat >> confdefs.h <<\EOF
11479 #define wxHAVE_GLIBC2 1
11480 EOF
11481
11482 fi
11483 fi
11484
11485 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11486 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11487 cat >> confdefs.h <<\EOF
11488 #define _GNU_SOURCE 1
11489 EOF
11490
11491 fi
11492 fi
11493
11494
11495
11496 REGEX_INCLUDE=
11497 if test "$wxUSE_REGEX" != "no"; then
11498 cat >> confdefs.h <<\EOF
11499 #define wxUSE_REGEX 1
11500 EOF
11501
11502
11503 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11504 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11505 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11506 echo "configure:11507: checking for regex.h" >&5
11507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11508 echo $ac_n "(cached) $ac_c" 1>&6
11509 else
11510 cat > conftest.$ac_ext <<EOF
11511 #line 11512 "configure"
11512 #include "confdefs.h"
11513 #include <regex.h>
11514 EOF
11515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11516 { (eval echo configure:11517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11518 if test -z "$ac_err"; then
11519 rm -rf conftest*
11520 eval "ac_cv_header_$ac_safe=yes"
11521 else
11522 echo "$ac_err" >&5
11523 echo "configure: failed program was:" >&5
11524 cat conftest.$ac_ext >&5
11525 rm -rf conftest*
11526 eval "ac_cv_header_$ac_safe=no"
11527 fi
11528 rm -f conftest*
11529 fi
11530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11531 echo "$ac_t""yes" 1>&6
11532 for ac_func in regcomp
11533 do
11534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11535 echo "configure:11536: checking for $ac_func" >&5
11536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11537 echo $ac_n "(cached) $ac_c" 1>&6
11538 else
11539 cat > conftest.$ac_ext <<EOF
11540 #line 11541 "configure"
11541 #include "confdefs.h"
11542 /* System header to define __stub macros and hopefully few prototypes,
11543 which can conflict with char $ac_func(); below. */
11544 #include <assert.h>
11545 /* Override any gcc2 internal prototype to avoid an error. */
11546 /* We use char because int might match the return type of a gcc2
11547 builtin and then its argument prototype would still apply. */
11548 char $ac_func();
11549
11550 int main() {
11551
11552 /* The GNU C library defines this for functions which it implements
11553 to always fail with ENOSYS. Some functions are actually named
11554 something starting with __ and the normal name is an alias. */
11555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11556 choke me
11557 #else
11558 $ac_func();
11559 #endif
11560
11561 ; return 0; }
11562 EOF
11563 if { (eval echo configure:11564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11564 rm -rf conftest*
11565 eval "ac_cv_func_$ac_func=yes"
11566 else
11567 echo "configure: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11569 rm -rf conftest*
11570 eval "ac_cv_func_$ac_func=no"
11571 fi
11572 rm -f conftest*
11573 fi
11574
11575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11576 echo "$ac_t""yes" 1>&6
11577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11578 cat >> confdefs.h <<EOF
11579 #define $ac_tr_func 1
11580 EOF
11581
11582 else
11583 echo "$ac_t""no" 1>&6
11584 fi
11585 done
11586
11587 else
11588 echo "$ac_t""no" 1>&6
11589 fi
11590
11591
11592 if test "x$ac_cv_func_regcomp" != "xyes"; then
11593 if test "$wxUSE_REGEX" = "sys" ; then
11594 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11595 else
11596 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11597 wxUSE_REGEX=builtin
11598 fi
11599 else
11600 wxUSE_REGEX=sys
11601 fi
11602 fi
11603
11604 if test "$wxUSE_REGEX" = "builtin" ; then
11605 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11606 fi
11607 fi
11608
11609
11610 ZLIB_INCLUDE=
11611 ZLIB_LINK=
11612 if test "$wxUSE_ZLIB" != "no" ; then
11613 cat >> confdefs.h <<\EOF
11614 #define wxUSE_ZLIB 1
11615 EOF
11616
11617
11618 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11619 if test "$USE_DARWIN" = 1; then
11620 system_zlib_h_ok="yes"
11621 else
11622 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11623 echo "configure:11624: checking for zlib.h >= 1.1.4" >&5
11624 if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11625 echo $ac_n "(cached) $ac_c" 1>&6
11626 else
11627 if test "$cross_compiling" = yes; then
11628 unset ac_cv_header_zlib_h
11629
11630 else
11631 cat > conftest.$ac_ext <<EOF
11632 #line 11633 "configure"
11633 #include "confdefs.h"
11634
11635 #include <zlib.h>
11636 #include <stdio.h>
11637
11638
11639 int main()
11640 {
11641 FILE *f=fopen("conftestval", "w");
11642 if (!f) exit(1);
11643 fprintf(f, "%s",
11644 ZLIB_VERSION[0] == '1' &&
11645 (ZLIB_VERSION[2] > '1' ||
11646 (ZLIB_VERSION[2] == '1' &&
11647 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11648 exit(0);
11649 }
11650
11651
11652 EOF
11653 if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11654 then
11655 ac_cv_header_zlib_h=`cat conftestval`
11656 else
11657 echo "configure: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11659 rm -fr conftest*
11660 ac_cv_header_zlib_h=no
11661 fi
11662 rm -fr conftest*
11663 fi
11664
11665
11666 fi
11667
11668 echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11669 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11670 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11671 echo "configure:11672: checking for zlib.h" >&5
11672 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11673 echo $ac_n "(cached) $ac_c" 1>&6
11674 else
11675 cat > conftest.$ac_ext <<EOF
11676 #line 11677 "configure"
11677 #include "confdefs.h"
11678 #include <zlib.h>
11679 EOF
11680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11681 { (eval echo configure:11682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11683 if test -z "$ac_err"; then
11684 rm -rf conftest*
11685 eval "ac_cv_header_$ac_safe=yes"
11686 else
11687 echo "$ac_err" >&5
11688 echo "configure: failed program was:" >&5
11689 cat conftest.$ac_ext >&5
11690 rm -rf conftest*
11691 eval "ac_cv_header_$ac_safe=no"
11692 fi
11693 rm -f conftest*
11694 fi
11695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11696 echo "$ac_t""yes" 1>&6
11697 :
11698 else
11699 echo "$ac_t""no" 1>&6
11700 fi
11701
11702
11703 system_zlib_h_ok=$ac_cv_header_zlib_h
11704 fi
11705
11706 if test "$system_zlib_h_ok" = "yes"; then
11707 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11708 echo "configure:11709: checking for deflate in -lz" >&5
11709 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11711 echo $ac_n "(cached) $ac_c" 1>&6
11712 else
11713 ac_save_LIBS="$LIBS"
11714 LIBS="-lz $LIBS"
11715 cat > conftest.$ac_ext <<EOF
11716 #line 11717 "configure"
11717 #include "confdefs.h"
11718 /* Override any gcc2 internal prototype to avoid an error. */
11719 /* We use char because int might match the return type of a gcc2
11720 builtin and then its argument prototype would still apply. */
11721 char deflate();
11722
11723 int main() {
11724 deflate()
11725 ; return 0; }
11726 EOF
11727 if { (eval echo configure:11728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11728 rm -rf conftest*
11729 eval "ac_cv_lib_$ac_lib_var=yes"
11730 else
11731 echo "configure: failed program was:" >&5
11732 cat conftest.$ac_ext >&5
11733 rm -rf conftest*
11734 eval "ac_cv_lib_$ac_lib_var=no"
11735 fi
11736 rm -f conftest*
11737 LIBS="$ac_save_LIBS"
11738
11739 fi
11740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11741 echo "$ac_t""yes" 1>&6
11742 ZLIB_LINK=" -lz"
11743 else
11744 echo "$ac_t""no" 1>&6
11745 fi
11746
11747 fi
11748
11749 if test "x$ZLIB_LINK" = "x" ; then
11750 if test "$wxUSE_ZLIB" = "sys" ; then
11751 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11752 else
11753 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11754 wxUSE_ZLIB=builtin
11755 fi
11756 else
11757 wxUSE_ZLIB=sys
11758 fi
11759 fi
11760
11761 if test "$wxUSE_ZLIB" = "builtin" ; then
11762 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11763 fi
11764 fi
11765
11766
11767 PNG_INCLUDE=
11768 PNG_LINK=
11769 if test "$wxUSE_LIBPNG" != "no" ; then
11770 cat >> confdefs.h <<\EOF
11771 #define wxUSE_LIBPNG 1
11772 EOF
11773
11774
11775 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11776 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11777 wxUSE_LIBPNG=sys
11778 fi
11779
11780 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11781 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11782 wxUSE_LIBPNG=builtin
11783 fi
11784
11785 if test "$wxUSE_MGL" != 1 ; then
11786 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11787 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11788 echo "configure:11789: checking for png.h > 0.90" >&5
11789 if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11790 echo $ac_n "(cached) $ac_c" 1>&6
11791 else
11792 if test "$cross_compiling" = yes; then
11793 unset ac_cv_header_png_h
11794
11795 else
11796 cat > conftest.$ac_ext <<EOF
11797 #line 11798 "configure"
11798 #include "confdefs.h"
11799
11800 #include <png.h>
11801 #include <stdio.h>
11802
11803 int main()
11804 {
11805 FILE *f=fopen("conftestval", "w");
11806 if (!f) exit(1);
11807 fprintf(f, "%s",
11808 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11809 exit(0);
11810 }
11811
11812 EOF
11813 if { (eval echo configure:11814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11814 then
11815 ac_cv_header_png_h=`cat conftestval`
11816 else
11817 echo "configure: failed program was:" >&5
11818 cat conftest.$ac_ext >&5
11819 rm -fr conftest*
11820 ac_cv_header_png_h=no
11821 fi
11822 rm -fr conftest*
11823 fi
11824
11825
11826 fi
11827
11828 echo "$ac_t""$ac_cv_header_png_h" 1>&6
11829 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11830 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11831 echo "configure:11832: checking for png.h" >&5
11832 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11833 echo $ac_n "(cached) $ac_c" 1>&6
11834 else
11835 cat > conftest.$ac_ext <<EOF
11836 #line 11837 "configure"
11837 #include "confdefs.h"
11838 #include <png.h>
11839 EOF
11840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11841 { (eval echo configure:11842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11843 if test -z "$ac_err"; then
11844 rm -rf conftest*
11845 eval "ac_cv_header_$ac_safe=yes"
11846 else
11847 echo "$ac_err" >&5
11848 echo "configure: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11850 rm -rf conftest*
11851 eval "ac_cv_header_$ac_safe=no"
11852 fi
11853 rm -f conftest*
11854 fi
11855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11856 echo "$ac_t""yes" 1>&6
11857 :
11858 else
11859 echo "$ac_t""no" 1>&6
11860 fi
11861
11862
11863 if test "$ac_cv_header_png_h" = "yes"; then
11864 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11865 echo "configure:11866: checking for png_check_sig in -lpng" >&5
11866 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11868 echo $ac_n "(cached) $ac_c" 1>&6
11869 else
11870 ac_save_LIBS="$LIBS"
11871 LIBS="-lpng -lz -lm $LIBS"
11872 cat > conftest.$ac_ext <<EOF
11873 #line 11874 "configure"
11874 #include "confdefs.h"
11875 /* Override any gcc2 internal prototype to avoid an error. */
11876 /* We use char because int might match the return type of a gcc2
11877 builtin and then its argument prototype would still apply. */
11878 char png_check_sig();
11879
11880 int main() {
11881 png_check_sig()
11882 ; return 0; }
11883 EOF
11884 if { (eval echo configure:11885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11885 rm -rf conftest*
11886 eval "ac_cv_lib_$ac_lib_var=yes"
11887 else
11888 echo "configure: failed program was:" >&5
11889 cat conftest.$ac_ext >&5
11890 rm -rf conftest*
11891 eval "ac_cv_lib_$ac_lib_var=no"
11892 fi
11893 rm -f conftest*
11894 LIBS="$ac_save_LIBS"
11895
11896 fi
11897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11898 echo "$ac_t""yes" 1>&6
11899 PNG_LINK=" -lpng"
11900 else
11901 echo "$ac_t""no" 1>&6
11902 fi
11903
11904 fi
11905
11906 if test "x$PNG_LINK" = "x" ; then
11907 if test "$wxUSE_LIBPNG" = "sys" ; then
11908 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11909 else
11910 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11911 wxUSE_LIBPNG=builtin
11912 fi
11913 else
11914 wxUSE_LIBPNG=sys
11915 fi
11916 fi
11917 fi
11918
11919 if test "$wxUSE_LIBPNG" = "builtin" ; then
11920 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11921 fi
11922
11923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11924 fi
11925
11926
11927 JPEG_INCLUDE=
11928 JPEG_LINK=
11929 if test "$wxUSE_LIBJPEG" != "no" ; then
11930 cat >> confdefs.h <<\EOF
11931 #define wxUSE_LIBJPEG 1
11932 EOF
11933
11934
11935 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11936 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11937 wxUSE_LIBJPEG=sys
11938 fi
11939
11940 if test "$wxUSE_MGL" != 1 ; then
11941 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11942 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11943 echo "configure:11944: checking for jpeglib.h" >&5
11944 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11945 echo $ac_n "(cached) $ac_c" 1>&6
11946 else
11947 cat > conftest.$ac_ext <<EOF
11948 #line 11949 "configure"
11949 #include "confdefs.h"
11950
11951 #undef HAVE_STDLIB_H
11952 #include <stdio.h>
11953 #include <jpeglib.h>
11954
11955 int main() {
11956
11957
11958 ; return 0; }
11959 EOF
11960 if { (eval echo configure:11961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11961 rm -rf conftest*
11962 ac_cv_header_jpeglib_h=yes
11963 else
11964 echo "configure: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11966 rm -rf conftest*
11967 ac_cv_header_jpeglib_h=no
11968
11969 fi
11970 rm -f conftest*
11971
11972 fi
11973
11974 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11975
11976 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11977 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11978 echo "configure:11979: checking for jpeg_read_header in -ljpeg" >&5
11979 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11981 echo $ac_n "(cached) $ac_c" 1>&6
11982 else
11983 ac_save_LIBS="$LIBS"
11984 LIBS="-ljpeg $LIBS"
11985 cat > conftest.$ac_ext <<EOF
11986 #line 11987 "configure"
11987 #include "confdefs.h"
11988 /* Override any gcc2 internal prototype to avoid an error. */
11989 /* We use char because int might match the return type of a gcc2
11990 builtin and then its argument prototype would still apply. */
11991 char jpeg_read_header();
11992
11993 int main() {
11994 jpeg_read_header()
11995 ; return 0; }
11996 EOF
11997 if { (eval echo configure:11998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11998 rm -rf conftest*
11999 eval "ac_cv_lib_$ac_lib_var=yes"
12000 else
12001 echo "configure: failed program was:" >&5
12002 cat conftest.$ac_ext >&5
12003 rm -rf conftest*
12004 eval "ac_cv_lib_$ac_lib_var=no"
12005 fi
12006 rm -f conftest*
12007 LIBS="$ac_save_LIBS"
12008
12009 fi
12010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12011 echo "$ac_t""yes" 1>&6
12012 JPEG_LINK=" -ljpeg"
12013 else
12014 echo "$ac_t""no" 1>&6
12015 fi
12016
12017 fi
12018
12019 if test "x$JPEG_LINK" = "x" ; then
12020 if test "$wxUSE_LIBJPEG" = "sys" ; then
12021 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
12022 else
12023 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
12024 wxUSE_LIBJPEG=builtin
12025 fi
12026 else
12027 wxUSE_LIBJPEG=sys
12028 fi
12029 fi
12030 fi
12031
12032 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12033 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12034 fi
12035 fi
12036
12037
12038 TIFF_INCLUDE=
12039 TIFF_LINK=
12040 TIFF_PREREQ_LINKS=-lm
12041 if test "$wxUSE_LIBTIFF" != "no" ; then
12042 cat >> confdefs.h <<\EOF
12043 #define wxUSE_LIBTIFF 1
12044 EOF
12045
12046
12047 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12048 if test "$wxUSE_LIBJPEG" = "sys"; then
12049 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12050 fi
12051 if test "$wxUSE_ZLIB" = "sys"; then
12052 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12053 fi
12054 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12055 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12056 echo "configure:12057: checking for tiffio.h" >&5
12057 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12058 echo $ac_n "(cached) $ac_c" 1>&6
12059 else
12060 cat > conftest.$ac_ext <<EOF
12061 #line 12062 "configure"
12062 #include "confdefs.h"
12063 #include <tiffio.h>
12064 EOF
12065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12066 { (eval echo configure:12067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12068 if test -z "$ac_err"; then
12069 rm -rf conftest*
12070 eval "ac_cv_header_$ac_safe=yes"
12071 else
12072 echo "$ac_err" >&5
12073 echo "configure: failed program was:" >&5
12074 cat conftest.$ac_ext >&5
12075 rm -rf conftest*
12076 eval "ac_cv_header_$ac_safe=no"
12077 fi
12078 rm -f conftest*
12079 fi
12080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12081 echo "$ac_t""yes" 1>&6
12082 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12083 echo "configure:12084: checking for TIFFError in -ltiff" >&5
12084 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12086 echo $ac_n "(cached) $ac_c" 1>&6
12087 else
12088 ac_save_LIBS="$LIBS"
12089 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12090 cat > conftest.$ac_ext <<EOF
12091 #line 12092 "configure"
12092 #include "confdefs.h"
12093 /* Override any gcc2 internal prototype to avoid an error. */
12094 /* We use char because int might match the return type of a gcc2
12095 builtin and then its argument prototype would still apply. */
12096 char TIFFError();
12097
12098 int main() {
12099 TIFFError()
12100 ; return 0; }
12101 EOF
12102 if { (eval echo configure:12103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12103 rm -rf conftest*
12104 eval "ac_cv_lib_$ac_lib_var=yes"
12105 else
12106 echo "configure: failed program was:" >&5
12107 cat conftest.$ac_ext >&5
12108 rm -rf conftest*
12109 eval "ac_cv_lib_$ac_lib_var=no"
12110 fi
12111 rm -f conftest*
12112 LIBS="$ac_save_LIBS"
12113
12114 fi
12115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12116 echo "$ac_t""yes" 1>&6
12117 TIFF_LINK=" -ltiff"
12118 else
12119 echo "$ac_t""no" 1>&6
12120 fi
12121
12122
12123 else
12124 echo "$ac_t""no" 1>&6
12125 fi
12126
12127
12128 if test "x$TIFF_LINK" = "x" ; then
12129 if test "$wxUSE_LIBTIFF" = "sys" ; then
12130 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12131 else
12132 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12133 wxUSE_LIBTIFF=builtin
12134 fi
12135 else
12136 wxUSE_LIBTIFF=sys
12137 fi
12138 fi
12139
12140 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12141 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12142 fi
12143 fi
12144
12145
12146 AFMINSTALL=
12147 WIN32INSTALL=
12148
12149 TOOLKIT=
12150 TOOLKIT_INCLUDE=
12151 WIDGET_SET=
12152
12153 if test "$USE_WIN32" = 1 ; then
12154 for ac_hdr in w32api.h
12155 do
12156 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12157 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12158 echo "configure:12159: checking for $ac_hdr" >&5
12159 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12160 echo $ac_n "(cached) $ac_c" 1>&6
12161 else
12162 cat > conftest.$ac_ext <<EOF
12163 #line 12164 "configure"
12164 #include "confdefs.h"
12165 #include <$ac_hdr>
12166 EOF
12167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12168 { (eval echo configure:12169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12170 if test -z "$ac_err"; then
12171 rm -rf conftest*
12172 eval "ac_cv_header_$ac_safe=yes"
12173 else
12174 echo "$ac_err" >&5
12175 echo "configure: failed program was:" >&5
12176 cat conftest.$ac_ext >&5
12177 rm -rf conftest*
12178 eval "ac_cv_header_$ac_safe=no"
12179 fi
12180 rm -f conftest*
12181 fi
12182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12183 echo "$ac_t""yes" 1>&6
12184 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12185 cat >> confdefs.h <<EOF
12186 #define $ac_tr_hdr 1
12187 EOF
12188
12189 else
12190 echo "$ac_t""no" 1>&6
12191 fi
12192 done
12193
12194 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12195 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12196 echo "configure:12197: checking for windows.h" >&5
12197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12198 echo $ac_n "(cached) $ac_c" 1>&6
12199 else
12200 cat > conftest.$ac_ext <<EOF
12201 #line 12202 "configure"
12202 #include "confdefs.h"
12203 #include <windows.h>
12204 EOF
12205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12206 { (eval echo configure:12207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12208 if test -z "$ac_err"; then
12209 rm -rf conftest*
12210 eval "ac_cv_header_$ac_safe=yes"
12211 else
12212 echo "$ac_err" >&5
12213 echo "configure: failed program was:" >&5
12214 cat conftest.$ac_ext >&5
12215 rm -rf conftest*
12216 eval "ac_cv_header_$ac_safe=no"
12217 fi
12218 rm -f conftest*
12219 fi
12220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12221 echo "$ac_t""yes" 1>&6
12222 :
12223 else
12224 echo "$ac_t""no" 1>&6
12225
12226 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12227
12228 fi
12229
12230
12231 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12232 echo "configure:12233: checking if w32api has good enough MSIE support" >&5
12233 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12234 echo $ac_n "(cached) $ac_c" 1>&6
12235 else
12236
12237 cat > conftest.$ac_ext <<EOF
12238 #line 12239 "configure"
12239 #include "confdefs.h"
12240 #include <w32api.h>
12241 int main() {
12242
12243 #define wxCHECK_W32API_VERSION( major, minor ) \
12244 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12245 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12246 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12247
12248 #if !wxCHECK_W32API_VERSION(1,1)
12249 #error You need w32api 1.1 or newer
12250 #endif
12251
12252 ; return 0; }
12253 EOF
12254 if { (eval echo configure:12255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12255 rm -rf conftest*
12256
12257 wx_cv_w32api_win32_ie=yes
12258
12259 else
12260 echo "configure: failed program was:" >&5
12261 cat conftest.$ac_ext >&5
12262 rm -rf conftest*
12263
12264 wx_cv_w32api_win32_ie=no
12265
12266 fi
12267 rm -f conftest*
12268
12269 fi
12270
12271 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12272 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12273 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12274 fi
12275
12276 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12277
12278 case "${host}" in
12279 *-*-cygwin* )
12280 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12281 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12282 esac
12283
12284 if test "$wxUSE_ODBC" = "yes" ; then
12285 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12286 fi
12287
12288 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12289 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12290
12291 WIN32INSTALL=win32install
12292 fi
12293
12294 if test "$USE_DARWIN" = 1; then
12295 if test "$wxUSE_PRECOMP" = "yes"; then
12296 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12297 else
12298 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12299 fi
12300 fi
12301
12302 if test "$wxUSE_GUI" = "yes"; then
12303 USE_GUI=1
12304
12305 GUI_TK_LIBRARY=
12306
12307 WXGTK12=
12308 WXGTK127=
12309 WXGTK20=
12310
12311 if test "$wxUSE_MSW" = 1 ; then
12312 TOOLKIT=MSW
12313 GUIDIST=MSW_DIST
12314
12315 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12316 fi
12317
12318 if test "$wxUSE_GTK" = 1; then
12319 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12320 echo "configure:12321: checking for GTK+ version" >&5
12321
12322 gtk_version_cached=1
12323 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12324 echo $ac_n "(cached) $ac_c" 1>&6
12325 else
12326
12327 gtk_version_cached=0
12328 echo "$ac_t""" 1>&6
12329
12330 GTK_MODULES=
12331 if test "$wxUSE_THREADS" = "yes"; then
12332 GTK_MODULES=gthread
12333 fi
12334
12335 wx_cv_lib_gtk=
12336 if test "x$wxUSE_GTK2" = "xyes"; then
12337 # Check whether --enable-gtktest or --disable-gtktest was given.
12338 if test "${enable_gtktest+set}" = set; then
12339 enableval="$enable_gtktest"
12340 :
12341 else
12342 enable_gtktest=yes
12343 fi
12344
12345
12346 pkg_config_args=gtk+-2.0
12347 for module in . $GTK_MODULES
12348 do
12349 case "$module" in
12350 gthread)
12351 pkg_config_args="$pkg_config_args gthread-2.0"
12352 ;;
12353 esac
12354 done
12355
12356 no_gtk=""
12357
12358 # Extract the first word of "pkg-config", so it can be a program name with args.
12359 set dummy pkg-config; ac_word=$2
12360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12361 echo "configure:12362: checking for $ac_word" >&5
12362 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12363 echo $ac_n "(cached) $ac_c" 1>&6
12364 else
12365 case "$PKG_CONFIG" in
12366 /*)
12367 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12368 ;;
12369 ?:/*)
12370 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12371 ;;
12372 *)
12373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12374 ac_dummy="$PATH"
12375 for ac_dir in $ac_dummy; do
12376 test -z "$ac_dir" && ac_dir=.
12377 if test -f $ac_dir/$ac_word; then
12378 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12379 break
12380 fi
12381 done
12382 IFS="$ac_save_ifs"
12383 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12384 ;;
12385 esac
12386 fi
12387 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12388 if test -n "$PKG_CONFIG"; then
12389 echo "$ac_t""$PKG_CONFIG" 1>&6
12390 else
12391 echo "$ac_t""no" 1>&6
12392 fi
12393
12394
12395 if test x$PKG_CONFIG != xno ; then
12396 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12397 :
12398 else
12399 echo *** pkg-config too old; version 0.7 or better required.
12400 no_gtk=yes
12401 PKG_CONFIG=no
12402 fi
12403 else
12404 no_gtk=yes
12405 fi
12406
12407 min_gtk_version=2.0.0
12408 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12409 echo "configure:12410: checking for GTK+ - version >= $min_gtk_version" >&5
12410
12411 if test x$PKG_CONFIG != xno ; then
12412 ## don't try to run the test against uninstalled libtool libs
12413 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12414 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12415 enable_gtktest=no
12416 fi
12417
12418 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12419 :
12420 else
12421 no_gtk=yes
12422 fi
12423 fi
12424
12425 if test x"$no_gtk" = x ; then
12426 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12427 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12428 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12429 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12430 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12431 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12432 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12433 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12434 if test "x$enable_gtktest" = "xyes" ; then
12435 ac_save_CFLAGS="$CFLAGS"
12436 ac_save_LIBS="$LIBS"
12437 CFLAGS="$CFLAGS $GTK_CFLAGS"
12438 LIBS="$GTK_LIBS $LIBS"
12439 rm -f conf.gtktest
12440 if test "$cross_compiling" = yes; then
12441 echo $ac_n "cross compiling; assumed OK... $ac_c"
12442 else
12443 cat > conftest.$ac_ext <<EOF
12444 #line 12445 "configure"
12445 #include "confdefs.h"
12446
12447 #include <gtk/gtk.h>
12448 #include <stdio.h>
12449 #include <stdlib.h>
12450
12451 int
12452 main ()
12453 {
12454 int major, minor, micro;
12455 char *tmp_version;
12456
12457 system ("touch conf.gtktest");
12458
12459 /* HP/UX 9 (%@#!) writes to sscanf strings */
12460 tmp_version = g_strdup("$min_gtk_version");
12461 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12462 printf("%s, bad version string\n", "$min_gtk_version");
12463 exit(1);
12464 }
12465
12466 if ((gtk_major_version != $gtk_config_major_version) ||
12467 (gtk_minor_version != $gtk_config_minor_version) ||
12468 (gtk_micro_version != $gtk_config_micro_version))
12469 {
12470 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12471 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12472 gtk_major_version, gtk_minor_version, gtk_micro_version);
12473 printf ("*** was found! If pkg-config was correct, then it is best\n");
12474 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12475 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12476 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12477 printf("*** required on your system.\n");
12478 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12479 printf("*** to point to the correct configuration files\n");
12480 }
12481 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12482 (gtk_minor_version != GTK_MINOR_VERSION) ||
12483 (gtk_micro_version != GTK_MICRO_VERSION))
12484 {
12485 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12486 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12487 printf("*** library (version %d.%d.%d)\n",
12488 gtk_major_version, gtk_minor_version, gtk_micro_version);
12489 }
12490 else
12491 {
12492 if ((gtk_major_version > major) ||
12493 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12494 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12495 {
12496 return 0;
12497 }
12498 else
12499 {
12500 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12501 gtk_major_version, gtk_minor_version, gtk_micro_version);
12502 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12503 major, minor, micro);
12504 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12505 printf("***\n");
12506 printf("*** If you have already installed a sufficiently new version, this error\n");
12507 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12508 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12509 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12510 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12511 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12512 printf("*** so that the correct libraries are found at run-time))\n");
12513 }
12514 }
12515 return 1;
12516 }
12517
12518 EOF
12519 if { (eval echo configure:12520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12520 then
12521 :
12522 else
12523 echo "configure: failed program was:" >&5
12524 cat conftest.$ac_ext >&5
12525 rm -fr conftest*
12526 no_gtk=yes
12527 fi
12528 rm -fr conftest*
12529 fi
12530
12531 CFLAGS="$ac_save_CFLAGS"
12532 LIBS="$ac_save_LIBS"
12533 fi
12534 fi
12535 if test "x$no_gtk" = x ; then
12536 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12537 wx_cv_lib_gtk=2.0
12538 else
12539 echo "$ac_t""no" 1>&6
12540 if test "$PKG_CONFIG" = "no" ; then
12541 echo "*** A new enough version of pkg-config was not found."
12542 echo "*** See http://pkgconfig.sourceforge.net"
12543 else
12544 if test -f conf.gtktest ; then
12545 :
12546 else
12547 echo "*** Could not run GTK+ test program, checking why..."
12548 ac_save_CFLAGS="$CFLAGS"
12549 ac_save_LIBS="$LIBS"
12550 CFLAGS="$CFLAGS $GTK_CFLAGS"
12551 LIBS="$LIBS $GTK_LIBS"
12552 cat > conftest.$ac_ext <<EOF
12553 #line 12554 "configure"
12554 #include "confdefs.h"
12555
12556 #include <gtk/gtk.h>
12557 #include <stdio.h>
12558
12559 int main() {
12560 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12561 ; return 0; }
12562 EOF
12563 if { (eval echo configure:12564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12564 rm -rf conftest*
12565 echo "*** The test program compiled, but did not run. This usually means"
12566 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12567 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12568 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12569 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12570 echo "*** is required on your system"
12571 echo "***"
12572 echo "*** If you have an old version installed, it is best to remove it, although"
12573 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12574 else
12575 echo "configure: failed program was:" >&5
12576 cat conftest.$ac_ext >&5
12577 rm -rf conftest*
12578 echo "*** The test program failed to compile or link. See the file config.log for the"
12579 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12580 fi
12581 rm -f conftest*
12582 CFLAGS="$ac_save_CFLAGS"
12583 LIBS="$ac_save_LIBS"
12584 fi
12585 fi
12586 GTK_CFLAGS=""
12587 GTK_LIBS=""
12588 :
12589 fi
12590
12591
12592 rm -f conf.gtktest
12593
12594 else
12595 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12596 if test "${with_gtk_prefix+set}" = set; then
12597 withval="$with_gtk_prefix"
12598 gtk_config_prefix="$withval"
12599 else
12600 gtk_config_prefix=""
12601 fi
12602
12603 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12604 if test "${with_gtk_exec_prefix+set}" = set; then
12605 withval="$with_gtk_exec_prefix"
12606 gtk_config_exec_prefix="$withval"
12607 else
12608 gtk_config_exec_prefix=""
12609 fi
12610
12611 # Check whether --enable-gtktest or --disable-gtktest was given.
12612 if test "${enable_gtktest+set}" = set; then
12613 enableval="$enable_gtktest"
12614 :
12615 else
12616 enable_gtktest=yes
12617 fi
12618
12619
12620 for module in . $GTK_MODULES
12621 do
12622 case "$module" in
12623 gthread)
12624 gtk_config_args="$gtk_config_args gthread"
12625 ;;
12626 esac
12627 done
12628
12629 if test x$gtk_config_exec_prefix != x ; then
12630 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12631 if test x${GTK_CONFIG+set} != xset ; then
12632 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12633 fi
12634 fi
12635 if test x$gtk_config_prefix != x ; then
12636 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12637 if test x${GTK_CONFIG+set} != xset ; then
12638 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12639 fi
12640 fi
12641
12642 # Extract the first word of "gtk-config", so it can be a program name with args.
12643 set dummy gtk-config; ac_word=$2
12644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12645 echo "configure:12646: checking for $ac_word" >&5
12646 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12647 echo $ac_n "(cached) $ac_c" 1>&6
12648 else
12649 case "$GTK_CONFIG" in
12650 /*)
12651 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12652 ;;
12653 ?:/*)
12654 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12655 ;;
12656 *)
12657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12658 ac_dummy="$PATH"
12659 for ac_dir in $ac_dummy; do
12660 test -z "$ac_dir" && ac_dir=.
12661 if test -f $ac_dir/$ac_word; then
12662 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12663 break
12664 fi
12665 done
12666 IFS="$ac_save_ifs"
12667 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12668 ;;
12669 esac
12670 fi
12671 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12672 if test -n "$GTK_CONFIG"; then
12673 echo "$ac_t""$GTK_CONFIG" 1>&6
12674 else
12675 echo "$ac_t""no" 1>&6
12676 fi
12677
12678 min_gtk_version=1.2.7
12679 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12680 echo "configure:12681: checking for GTK - version >= $min_gtk_version" >&5
12681 no_gtk=""
12682 if test "$GTK_CONFIG" = "no" ; then
12683 no_gtk=yes
12684 else
12685 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12686 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12687 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12688 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12689 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12690 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12691 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12692 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12693 if test "x$enable_gtktest" = "xyes" ; then
12694 ac_save_CFLAGS="$CFLAGS"
12695 ac_save_LIBS="$LIBS"
12696 CFLAGS="$CFLAGS $GTK_CFLAGS"
12697 LIBS="$GTK_LIBS $LIBS"
12698 rm -f conf.gtktest
12699 if test "$cross_compiling" = yes; then
12700 echo $ac_n "cross compiling; assumed OK... $ac_c"
12701 else
12702 cat > conftest.$ac_ext <<EOF
12703 #line 12704 "configure"
12704 #include "confdefs.h"
12705
12706 #include <gtk/gtk.h>
12707 #include <stdio.h>
12708 #include <stdlib.h>
12709
12710 int
12711 main ()
12712 {
12713 int major, minor, micro;
12714 char *tmp_version;
12715
12716 system ("touch conf.gtktest");
12717
12718 /* HP/UX 9 (%@#!) writes to sscanf strings */
12719 tmp_version = g_strdup("$min_gtk_version");
12720 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12721 printf("%s, bad version string\n", "$min_gtk_version");
12722 exit(1);
12723 }
12724
12725 if ((gtk_major_version != $gtk_config_major_version) ||
12726 (gtk_minor_version != $gtk_config_minor_version) ||
12727 (gtk_micro_version != $gtk_config_micro_version))
12728 {
12729 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12730 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12731 gtk_major_version, gtk_minor_version, gtk_micro_version);
12732 printf ("*** was found! If gtk-config was correct, then it is best\n");
12733 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12734 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12735 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12736 printf("*** required on your system.\n");
12737 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12738 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12739 printf("*** before re-running configure\n");
12740 }
12741 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12742 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12743 (gtk_minor_version != GTK_MINOR_VERSION) ||
12744 (gtk_micro_version != GTK_MICRO_VERSION))
12745 {
12746 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12747 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12748 printf("*** library (version %d.%d.%d)\n",
12749 gtk_major_version, gtk_minor_version, gtk_micro_version);
12750 }
12751 #endif /* defined (GTK_MAJOR_VERSION) ... */
12752 else
12753 {
12754 if ((gtk_major_version > major) ||
12755 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12756 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12757 {
12758 return 0;
12759 }
12760 else
12761 {
12762 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12763 gtk_major_version, gtk_minor_version, gtk_micro_version);
12764 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12765 major, minor, micro);
12766 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12767 printf("***\n");
12768 printf("*** If you have already installed a sufficiently new version, this error\n");
12769 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12770 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12771 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12772 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12773 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12774 printf("*** so that the correct libraries are found at run-time))\n");
12775 }
12776 }
12777 return 1;
12778 }
12779
12780 EOF
12781 if { (eval echo configure:12782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12782 then
12783 :
12784 else
12785 echo "configure: failed program was:" >&5
12786 cat conftest.$ac_ext >&5
12787 rm -fr conftest*
12788 no_gtk=yes
12789 fi
12790 rm -fr conftest*
12791 fi
12792
12793 CFLAGS="$ac_save_CFLAGS"
12794 LIBS="$ac_save_LIBS"
12795 fi
12796 fi
12797 if test "x$no_gtk" = x ; then
12798 echo "$ac_t""yes" 1>&6
12799 wx_cv_lib_gtk=1.2.7
12800 else
12801 echo "$ac_t""no" 1>&6
12802 if test "$GTK_CONFIG" = "no" ; then
12803 echo "*** The gtk-config script installed by GTK could not be found"
12804 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12805 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12806 echo "*** full path to gtk-config."
12807 else
12808 if test -f conf.gtktest ; then
12809 :
12810 else
12811 echo "*** Could not run GTK test program, checking why..."
12812 CFLAGS="$CFLAGS $GTK_CFLAGS"
12813 LIBS="$LIBS $GTK_LIBS"
12814 cat > conftest.$ac_ext <<EOF
12815 #line 12816 "configure"
12816 #include "confdefs.h"
12817
12818 #include <gtk/gtk.h>
12819 #include <stdio.h>
12820
12821 int main() {
12822 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12823 ; return 0; }
12824 EOF
12825 if { (eval echo configure:12826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12826 rm -rf conftest*
12827 echo "*** The test program compiled, but did not run. This usually means"
12828 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12829 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12830 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12831 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12832 echo "*** is required on your system"
12833 echo "***"
12834 echo "*** If you have an old version installed, it is best to remove it, although"
12835 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12836 echo "***"
12837 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12838 echo "*** came with the system with the command"
12839 echo "***"
12840 echo "*** rpm --erase --nodeps gtk gtk-devel"
12841 else
12842 echo "configure: failed program was:" >&5
12843 cat conftest.$ac_ext >&5
12844 rm -rf conftest*
12845 echo "*** The test program failed to compile or link. See the file config.log for the"
12846 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12847 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12848 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12849 fi
12850 rm -f conftest*
12851 CFLAGS="$ac_save_CFLAGS"
12852 LIBS="$ac_save_LIBS"
12853 fi
12854 fi
12855 GTK_CFLAGS=""
12856 GTK_LIBS=""
12857 :
12858 fi
12859
12860
12861 rm -f conf.gtktest
12862
12863
12864 if test -z "$wx_cv_lib_gtk"; then
12865 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12866 if test "${with_gtk_prefix+set}" = set; then
12867 withval="$with_gtk_prefix"
12868 gtk_config_prefix="$withval"
12869 else
12870 gtk_config_prefix=""
12871 fi
12872
12873 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12874 if test "${with_gtk_exec_prefix+set}" = set; then
12875 withval="$with_gtk_exec_prefix"
12876 gtk_config_exec_prefix="$withval"
12877 else
12878 gtk_config_exec_prefix=""
12879 fi
12880
12881 # Check whether --enable-gtktest or --disable-gtktest was given.
12882 if test "${enable_gtktest+set}" = set; then
12883 enableval="$enable_gtktest"
12884 :
12885 else
12886 enable_gtktest=yes
12887 fi
12888
12889
12890 for module in . $GTK_MODULES
12891 do
12892 case "$module" in
12893 gthread)
12894 gtk_config_args="$gtk_config_args gthread"
12895 ;;
12896 esac
12897 done
12898
12899 if test x$gtk_config_exec_prefix != x ; then
12900 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12901 if test x${GTK_CONFIG+set} != xset ; then
12902 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12903 fi
12904 fi
12905 if test x$gtk_config_prefix != x ; then
12906 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12907 if test x${GTK_CONFIG+set} != xset ; then
12908 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12909 fi
12910 fi
12911
12912 # Extract the first word of "gtk-config", so it can be a program name with args.
12913 set dummy gtk-config; ac_word=$2
12914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12915 echo "configure:12916: checking for $ac_word" >&5
12916 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12917 echo $ac_n "(cached) $ac_c" 1>&6
12918 else
12919 case "$GTK_CONFIG" in
12920 /*)
12921 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12922 ;;
12923 ?:/*)
12924 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12925 ;;
12926 *)
12927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12928 ac_dummy="$PATH"
12929 for ac_dir in $ac_dummy; do
12930 test -z "$ac_dir" && ac_dir=.
12931 if test -f $ac_dir/$ac_word; then
12932 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12933 break
12934 fi
12935 done
12936 IFS="$ac_save_ifs"
12937 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12938 ;;
12939 esac
12940 fi
12941 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12942 if test -n "$GTK_CONFIG"; then
12943 echo "$ac_t""$GTK_CONFIG" 1>&6
12944 else
12945 echo "$ac_t""no" 1>&6
12946 fi
12947
12948 min_gtk_version=1.2.3
12949 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12950 echo "configure:12951: checking for GTK - version >= $min_gtk_version" >&5
12951 no_gtk=""
12952 if test "$GTK_CONFIG" = "no" ; then
12953 no_gtk=yes
12954 else
12955 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12956 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12957 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12958 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12959 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12960 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12961 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12962 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12963 if test "x$enable_gtktest" = "xyes" ; then
12964 ac_save_CFLAGS="$CFLAGS"
12965 ac_save_LIBS="$LIBS"
12966 CFLAGS="$CFLAGS $GTK_CFLAGS"
12967 LIBS="$GTK_LIBS $LIBS"
12968 rm -f conf.gtktest
12969 if test "$cross_compiling" = yes; then
12970 echo $ac_n "cross compiling; assumed OK... $ac_c"
12971 else
12972 cat > conftest.$ac_ext <<EOF
12973 #line 12974 "configure"
12974 #include "confdefs.h"
12975
12976 #include <gtk/gtk.h>
12977 #include <stdio.h>
12978 #include <stdlib.h>
12979
12980 int
12981 main ()
12982 {
12983 int major, minor, micro;
12984 char *tmp_version;
12985
12986 system ("touch conf.gtktest");
12987
12988 /* HP/UX 9 (%@#!) writes to sscanf strings */
12989 tmp_version = g_strdup("$min_gtk_version");
12990 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12991 printf("%s, bad version string\n", "$min_gtk_version");
12992 exit(1);
12993 }
12994
12995 if ((gtk_major_version != $gtk_config_major_version) ||
12996 (gtk_minor_version != $gtk_config_minor_version) ||
12997 (gtk_micro_version != $gtk_config_micro_version))
12998 {
12999 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
13000 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13001 gtk_major_version, gtk_minor_version, gtk_micro_version);
13002 printf ("*** was found! If gtk-config was correct, then it is best\n");
13003 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13004 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13005 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13006 printf("*** required on your system.\n");
13007 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13008 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13009 printf("*** before re-running configure\n");
13010 }
13011 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13012 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13013 (gtk_minor_version != GTK_MINOR_VERSION) ||
13014 (gtk_micro_version != GTK_MICRO_VERSION))
13015 {
13016 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13017 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13018 printf("*** library (version %d.%d.%d)\n",
13019 gtk_major_version, gtk_minor_version, gtk_micro_version);
13020 }
13021 #endif /* defined (GTK_MAJOR_VERSION) ... */
13022 else
13023 {
13024 if ((gtk_major_version > major) ||
13025 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13026 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13027 {
13028 return 0;
13029 }
13030 else
13031 {
13032 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13033 gtk_major_version, gtk_minor_version, gtk_micro_version);
13034 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13035 major, minor, micro);
13036 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13037 printf("***\n");
13038 printf("*** If you have already installed a sufficiently new version, this error\n");
13039 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13040 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13041 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13042 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13043 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13044 printf("*** so that the correct libraries are found at run-time))\n");
13045 }
13046 }
13047 return 1;
13048 }
13049
13050 EOF
13051 if { (eval echo configure:13052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13052 then
13053 :
13054 else
13055 echo "configure: failed program was:" >&5
13056 cat conftest.$ac_ext >&5
13057 rm -fr conftest*
13058 no_gtk=yes
13059 fi
13060 rm -fr conftest*
13061 fi
13062
13063 CFLAGS="$ac_save_CFLAGS"
13064 LIBS="$ac_save_LIBS"
13065 fi
13066 fi
13067 if test "x$no_gtk" = x ; then
13068 echo "$ac_t""yes" 1>&6
13069 wx_cv_lib_gtk=1.2.3
13070 else
13071 echo "$ac_t""no" 1>&6
13072 if test "$GTK_CONFIG" = "no" ; then
13073 echo "*** The gtk-config script installed by GTK could not be found"
13074 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13075 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13076 echo "*** full path to gtk-config."
13077 else
13078 if test -f conf.gtktest ; then
13079 :
13080 else
13081 echo "*** Could not run GTK test program, checking why..."
13082 CFLAGS="$CFLAGS $GTK_CFLAGS"
13083 LIBS="$LIBS $GTK_LIBS"
13084 cat > conftest.$ac_ext <<EOF
13085 #line 13086 "configure"
13086 #include "confdefs.h"
13087
13088 #include <gtk/gtk.h>
13089 #include <stdio.h>
13090
13091 int main() {
13092 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13093 ; return 0; }
13094 EOF
13095 if { (eval echo configure:13096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13096 rm -rf conftest*
13097 echo "*** The test program compiled, but did not run. This usually means"
13098 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13099 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13100 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13101 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13102 echo "*** is required on your system"
13103 echo "***"
13104 echo "*** If you have an old version installed, it is best to remove it, although"
13105 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13106 echo "***"
13107 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13108 echo "*** came with the system with the command"
13109 echo "***"
13110 echo "*** rpm --erase --nodeps gtk gtk-devel"
13111 else
13112 echo "configure: failed program was:" >&5
13113 cat conftest.$ac_ext >&5
13114 rm -rf conftest*
13115 echo "*** The test program failed to compile or link. See the file config.log for the"
13116 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13117 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13118 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13119 fi
13120 rm -f conftest*
13121 CFLAGS="$ac_save_CFLAGS"
13122 LIBS="$ac_save_LIBS"
13123 fi
13124 fi
13125 GTK_CFLAGS=""
13126 GTK_LIBS=""
13127 :
13128 fi
13129
13130
13131 rm -f conf.gtktest
13132
13133 fi
13134 fi
13135
13136 if test -z "$wx_cv_lib_gtk"; then
13137 wx_cv_lib_gtk=none
13138 else
13139 wx_cv_cflags_gtk=$GTK_CFLAGS
13140 wx_cv_libs_gtk=$GTK_LIBS
13141 fi
13142
13143
13144 fi
13145
13146
13147 if test "$gtk_version_cached" = 1; then
13148 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13149 fi
13150
13151 case "$wx_cv_lib_gtk" in
13152 2.0) WXGTK20=1
13153 TOOLKIT_VERSION=2
13154 ;;
13155 1.2.7) WXGTK127=1
13156 WXGTK12=1
13157 ;;
13158 1.2.3) WXGTK12=1
13159 ;;
13160 *) { echo "configure: error:
13161 Please check that gtk-config is in path, the directory
13162 where GTK+ libraries are installed (returned by
13163 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13164 equivalent variable and GTK+ is version 1.2.3 or above.
13165 " 1>&2; exit 1; }
13166 ;;
13167 esac
13168
13169 if test "$WXGTK20" = 1; then
13170 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13171
13172 succeeded=no
13173
13174 if test -z "$PKG_CONFIG"; then
13175 # Extract the first word of "pkg-config", so it can be a program name with args.
13176 set dummy pkg-config; ac_word=$2
13177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13178 echo "configure:13179: checking for $ac_word" >&5
13179 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13180 echo $ac_n "(cached) $ac_c" 1>&6
13181 else
13182 case "$PKG_CONFIG" in
13183 /*)
13184 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13185 ;;
13186 ?:/*)
13187 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13188 ;;
13189 *)
13190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13191 ac_dummy="$PATH"
13192 for ac_dir in $ac_dummy; do
13193 test -z "$ac_dir" && ac_dir=.
13194 if test -f $ac_dir/$ac_word; then
13195 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13196 break
13197 fi
13198 done
13199 IFS="$ac_save_ifs"
13200 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13201 ;;
13202 esac
13203 fi
13204 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13205 if test -n "$PKG_CONFIG"; then
13206 echo "$ac_t""$PKG_CONFIG" 1>&6
13207 else
13208 echo "$ac_t""no" 1>&6
13209 fi
13210
13211 fi
13212
13213 if test "$PKG_CONFIG" = "no" ; then
13214 echo "*** The pkg-config script could not be found. Make sure it is"
13215 echo "*** in your path, or set the PKG_CONFIG environment variable"
13216 echo "*** to the full path to pkg-config."
13217 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13218 else
13219 PKG_CONFIG_MIN_VERSION=0.9.0
13220 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13221 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13222 echo "configure:13223: checking for pangoft2" >&5
13223
13224 if $PKG_CONFIG --exists "pangoft2" ; then
13225 echo "$ac_t""yes" 1>&6
13226 succeeded=yes
13227
13228 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13229 echo "configure:13230: checking PANGOFT2_CFLAGS" >&5
13230 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13231 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13232
13233 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13234 echo "configure:13235: checking PANGOFT2_LIBS" >&5
13235 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13236 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13237 else
13238 PANGOFT2_CFLAGS=""
13239 PANGOFT2_LIBS=""
13240 ## If we have a custom action on failure, don't print errors, but
13241 ## do set a variable so people can do so.
13242 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13243
13244 fi
13245
13246
13247
13248 else
13249 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13250 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13251 fi
13252 fi
13253
13254 if test $succeeded = yes; then
13255
13256 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13257 LIBS="$LIBS $PANGOFT2_LIBS"
13258
13259 else
13260
13261 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13262 wxUSE_PRINTING_ARCHITECTURE="no"
13263
13264
13265 fi
13266
13267 fi
13268 else
13269 if test "$wxUSE_UNICODE" = "yes"; then
13270 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13271 wxUSE_UNICODE=no
13272 fi
13273 fi
13274
13275 if test "$USE_DARWIN" != 1; then
13276 for ac_func in poll
13277 do
13278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13279 echo "configure:13280: checking for $ac_func" >&5
13280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13281 echo $ac_n "(cached) $ac_c" 1>&6
13282 else
13283 cat > conftest.$ac_ext <<EOF
13284 #line 13285 "configure"
13285 #include "confdefs.h"
13286 /* System header to define __stub macros and hopefully few prototypes,
13287 which can conflict with char $ac_func(); below. */
13288 #include <assert.h>
13289 /* Override any gcc2 internal prototype to avoid an error. */
13290 /* We use char because int might match the return type of a gcc2
13291 builtin and then its argument prototype would still apply. */
13292 char $ac_func();
13293
13294 int main() {
13295
13296 /* The GNU C library defines this for functions which it implements
13297 to always fail with ENOSYS. Some functions are actually named
13298 something starting with __ and the normal name is an alias. */
13299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13300 choke me
13301 #else
13302 $ac_func();
13303 #endif
13304
13305 ; return 0; }
13306 EOF
13307 if { (eval echo configure:13308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13308 rm -rf conftest*
13309 eval "ac_cv_func_$ac_func=yes"
13310 else
13311 echo "configure: failed program was:" >&5
13312 cat conftest.$ac_ext >&5
13313 rm -rf conftest*
13314 eval "ac_cv_func_$ac_func=no"
13315 fi
13316 rm -f conftest*
13317 fi
13318
13319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13320 echo "$ac_t""yes" 1>&6
13321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13322 cat >> confdefs.h <<EOF
13323 #define $ac_tr_func 1
13324 EOF
13325
13326 else
13327 echo "$ac_t""no" 1>&6
13328 fi
13329 done
13330
13331 fi
13332
13333 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13334 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13335
13336 AFMINSTALL=afminstall
13337 TOOLKIT=GTK
13338 GUIDIST=GTK_DIST
13339
13340 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13341 echo "configure:13342: checking for gdk_im_open in -lgdk" >&5
13342 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13344 echo $ac_n "(cached) $ac_c" 1>&6
13345 else
13346 ac_save_LIBS="$LIBS"
13347 LIBS="-lgdk $LIBS"
13348 cat > conftest.$ac_ext <<EOF
13349 #line 13350 "configure"
13350 #include "confdefs.h"
13351 /* Override any gcc2 internal prototype to avoid an error. */
13352 /* We use char because int might match the return type of a gcc2
13353 builtin and then its argument prototype would still apply. */
13354 char gdk_im_open();
13355
13356 int main() {
13357 gdk_im_open()
13358 ; return 0; }
13359 EOF
13360 if { (eval echo configure:13361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13361 rm -rf conftest*
13362 eval "ac_cv_lib_$ac_lib_var=yes"
13363 else
13364 echo "configure: failed program was:" >&5
13365 cat conftest.$ac_ext >&5
13366 rm -rf conftest*
13367 eval "ac_cv_lib_$ac_lib_var=no"
13368 fi
13369 rm -f conftest*
13370 LIBS="$ac_save_LIBS"
13371
13372 fi
13373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13374 echo "$ac_t""yes" 1>&6
13375 cat >> confdefs.h <<\EOF
13376 #define HAVE_XIM 1
13377 EOF
13378
13379 else
13380 echo "$ac_t""no" 1>&6
13381 fi
13382
13383 fi
13384
13385 if test "$wxUSE_MGL" = 1; then
13386 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13387 echo "configure:13388: checking for SciTech MGL library" >&5
13388 if test "x$MGL_ROOT" = x ; then
13389 echo "$ac_t""not found" 1>&6
13390 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13391 else
13392 echo "$ac_t""$MGL_ROOT" 1>&6
13393 fi
13394
13395 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13396 echo "configure:13397: checking for libmgl location" >&5
13397 case "${host}" in
13398 *-*-linux* )
13399 if test "x$wxUSE_SHARED" = xyes ; then
13400 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13401 else
13402 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13403 fi
13404 ;;
13405 *-pc-msdosdjgpp )
13406 mgl_os_candidates="dos32/dj2"
13407 ;;
13408 *)
13409 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13410 esac
13411
13412 mgl_lib_type=""
13413 mgl_os=""
13414
13415 for mgl_os_i in $mgl_os_candidates ; do
13416 if test "x$mgl_os" = x ; then
13417 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13418 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13419 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13420 mgl_lib_type=debug
13421 mgl_os=$mgl_os_i
13422 fi
13423 fi
13424 if test "x$mgl_lib_type" = x ; then
13425 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13426 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13427 mgl_lib_type=release
13428 mgl_os=$mgl_os_i
13429 fi
13430 fi
13431 fi
13432 done
13433
13434 if test "x$mgl_os" = x ; then
13435 echo "$ac_t""not found" 1>&6
13436 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13437 fi
13438 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13439
13440 wxUSE_UNIVERSAL="yes"
13441
13442 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13443 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13444
13445 AFMINSTALL=afminstall
13446 TOOLKIT=MGL
13447 GUIDIST=MGL_DIST
13448 fi
13449
13450 if test "$wxUSE_MICROWIN" = 1; then
13451 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13452 echo "configure:13453: checking for MicroWindows" >&5
13453 if test "x$MICROWINDOWS" = x ; then
13454 echo "$ac_t""not found" 1>&6
13455 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13456 else
13457 echo "$ac_t""$MICROWINDOWS" 1>&6
13458 fi
13459
13460 if test -f $MICROWINDOWS/lib/libmwin.a; then
13461 echo "$ac_t""MicroWindows' libraries found." 1>&6
13462 else
13463 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13464 fi
13465
13466 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13467 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13468
13469 wxUSE_UNIVERSAL="yes"
13470
13471 AFMINSTALL=afminstall
13472 TOOLKIT=MICROWIN
13473 GUIDIST=MICROWIN_DIST
13474
13475 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13476 fi
13477
13478 if test "$wxUSE_X11" = 1; then
13479 # If we find X, set shell vars x_includes and x_libraries to the
13480 # paths, otherwise set no_x=yes.
13481 # Uses ac_ vars as temps to allow command line to override cache and checks.
13482 # --without-x overrides everything else, but does not touch the cache.
13483 echo $ac_n "checking for X""... $ac_c" 1>&6
13484 echo "configure:13485: checking for X" >&5
13485
13486 # Check whether --with-x or --without-x was given.
13487 if test "${with_x+set}" = set; then
13488 withval="$with_x"
13489 :
13490 fi
13491
13492 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13493 if test "x$with_x" = xno; then
13494 # The user explicitly disabled X.
13495 have_x=disabled
13496 else
13497 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13498 # Both variables are already set.
13499 have_x=yes
13500 else
13501 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13502 echo $ac_n "(cached) $ac_c" 1>&6
13503 else
13504 # One or both of the vars are not set, and there is no cached value.
13505 ac_x_includes=NO ac_x_libraries=NO
13506 rm -fr conftestdir
13507 if mkdir conftestdir; then
13508 cd conftestdir
13509 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13510 cat > Imakefile <<'EOF'
13511 acfindx:
13512 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13513 EOF
13514 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13515 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13516 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13517 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13518 for ac_extension in a so sl; do
13519 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13520 test -f $ac_im_libdir/libX11.$ac_extension; then
13521 ac_im_usrlibdir=$ac_im_libdir; break
13522 fi
13523 done
13524 # Screen out bogus values from the imake configuration. They are
13525 # bogus both because they are the default anyway, and because
13526 # using them would break gcc on systems where it needs fixed includes.
13527 case "$ac_im_incroot" in
13528 /usr/include) ;;
13529 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13530 esac
13531 case "$ac_im_usrlibdir" in
13532 /usr/lib | /lib) ;;
13533 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13534 esac
13535 fi
13536 cd ..
13537 rm -fr conftestdir
13538 fi
13539
13540 if test "$ac_x_includes" = NO; then
13541 # Guess where to find include files, by looking for this one X11 .h file.
13542 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13543
13544 # First, try using that file with no special directory specified.
13545 cat > conftest.$ac_ext <<EOF
13546 #line 13547 "configure"
13547 #include "confdefs.h"
13548 #include <$x_direct_test_include>
13549 EOF
13550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13551 { (eval echo configure:13552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13553 if test -z "$ac_err"; then
13554 rm -rf conftest*
13555 # We can compile using X headers with no special include directory.
13556 ac_x_includes=
13557 else
13558 echo "$ac_err" >&5
13559 echo "configure: failed program was:" >&5
13560 cat conftest.$ac_ext >&5
13561 rm -rf conftest*
13562 # Look for the header file in a standard set of common directories.
13563 # Check X11 before X11Rn because it is often a symlink to the current release.
13564 for ac_dir in \
13565 /usr/X11/include \
13566 /usr/X11R6/include \
13567 /usr/X11R5/include \
13568 /usr/X11R4/include \
13569 \
13570 /usr/include/X11 \
13571 /usr/include/X11R6 \
13572 /usr/include/X11R5 \
13573 /usr/include/X11R4 \
13574 \
13575 /usr/local/X11/include \
13576 /usr/local/X11R6/include \
13577 /usr/local/X11R5/include \
13578 /usr/local/X11R4/include \
13579 \
13580 /usr/local/include/X11 \
13581 /usr/local/include/X11R6 \
13582 /usr/local/include/X11R5 \
13583 /usr/local/include/X11R4 \
13584 \
13585 /usr/X386/include \
13586 /usr/x386/include \
13587 /usr/XFree86/include/X11 \
13588 \
13589 /usr/include \
13590 /usr/local/include \
13591 /usr/unsupported/include \
13592 /usr/athena/include \
13593 /usr/local/x11r5/include \
13594 /usr/lpp/Xamples/include \
13595 \
13596 /usr/openwin/include \
13597 /usr/openwin/share/include \
13598 ; \
13599 do
13600 if test -r "$ac_dir/$x_direct_test_include"; then
13601 ac_x_includes=$ac_dir
13602 break
13603 fi
13604 done
13605 fi
13606 rm -f conftest*
13607 fi # $ac_x_includes = NO
13608
13609 if test "$ac_x_libraries" = NO; then
13610 # Check for the libraries.
13611
13612 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13613 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13614
13615 # See if we find them without any special options.
13616 # Don't add to $LIBS permanently.
13617 ac_save_LIBS="$LIBS"
13618 LIBS="-l$x_direct_test_library $LIBS"
13619 cat > conftest.$ac_ext <<EOF
13620 #line 13621 "configure"
13621 #include "confdefs.h"
13622
13623 int main() {
13624 ${x_direct_test_function}()
13625 ; return 0; }
13626 EOF
13627 if { (eval echo configure:13628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13628 rm -rf conftest*
13629 LIBS="$ac_save_LIBS"
13630 # We can link X programs with no special library path.
13631 ac_x_libraries=
13632 else
13633 echo "configure: failed program was:" >&5
13634 cat conftest.$ac_ext >&5
13635 rm -rf conftest*
13636 LIBS="$ac_save_LIBS"
13637 # First see if replacing the include by lib works.
13638 # Check X11 before X11Rn because it is often a symlink to the current release.
13639 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13640 /usr/X11/lib \
13641 /usr/X11R6/lib \
13642 /usr/X11R5/lib \
13643 /usr/X11R4/lib \
13644 \
13645 /usr/lib/X11 \
13646 /usr/lib/X11R6 \
13647 /usr/lib/X11R5 \
13648 /usr/lib/X11R4 \
13649 \
13650 /usr/local/X11/lib \
13651 /usr/local/X11R6/lib \
13652 /usr/local/X11R5/lib \
13653 /usr/local/X11R4/lib \
13654 \
13655 /usr/local/lib/X11 \
13656 /usr/local/lib/X11R6 \
13657 /usr/local/lib/X11R5 \
13658 /usr/local/lib/X11R4 \
13659 \
13660 /usr/X386/lib \
13661 /usr/x386/lib \
13662 /usr/XFree86/lib/X11 \
13663 \
13664 /usr/lib \
13665 /usr/local/lib \
13666 /usr/unsupported/lib \
13667 /usr/athena/lib \
13668 /usr/local/x11r5/lib \
13669 /usr/lpp/Xamples/lib \
13670 /lib/usr/lib/X11 \
13671 \
13672 /usr/openwin/lib \
13673 /usr/openwin/share/lib \
13674 ; \
13675 do
13676 for ac_extension in a so sl; do
13677 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13678 ac_x_libraries=$ac_dir
13679 break 2
13680 fi
13681 done
13682 done
13683 fi
13684 rm -f conftest*
13685 fi # $ac_x_libraries = NO
13686
13687 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13688 # Didn't find X anywhere. Cache the known absence of X.
13689 ac_cv_have_x="have_x=no"
13690 else
13691 # Record where we found X for the cache.
13692 ac_cv_have_x="have_x=yes \
13693 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13694 fi
13695 fi
13696 fi
13697 eval "$ac_cv_have_x"
13698 fi # $with_x != no
13699
13700 if test "$have_x" != yes; then
13701 echo "$ac_t""$have_x" 1>&6
13702 no_x=yes
13703 else
13704 # If each of the values was on the command line, it overrides each guess.
13705 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13706 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13707 # Update the cache value to reflect the command line values.
13708 ac_cv_have_x="have_x=yes \
13709 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13710 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13711 fi
13712
13713 if test "$no_x" = yes; then
13714 # Not all programs may use this symbol, but it does not hurt to define it.
13715 cat >> confdefs.h <<\EOF
13716 #define X_DISPLAY_MISSING 1
13717 EOF
13718
13719 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13720 else
13721 if test -n "$x_includes"; then
13722 X_CFLAGS="$X_CFLAGS -I$x_includes"
13723 fi
13724
13725 # It would also be nice to do this for all -L options, not just this one.
13726 if test -n "$x_libraries"; then
13727 X_LIBS="$X_LIBS -L$x_libraries"
13728 # For Solaris; some versions of Sun CC require a space after -R and
13729 # others require no space. Words are not sufficient . . . .
13730 case "`(uname -sr) 2>/dev/null`" in
13731 "SunOS 5"*)
13732 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13733 echo "configure:13734: checking whether -R must be followed by a space" >&5
13734 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13735 cat > conftest.$ac_ext <<EOF
13736 #line 13737 "configure"
13737 #include "confdefs.h"
13738
13739 int main() {
13740
13741 ; return 0; }
13742 EOF
13743 if { (eval echo configure:13744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13744 rm -rf conftest*
13745 ac_R_nospace=yes
13746 else
13747 echo "configure: failed program was:" >&5
13748 cat conftest.$ac_ext >&5
13749 rm -rf conftest*
13750 ac_R_nospace=no
13751 fi
13752 rm -f conftest*
13753 if test $ac_R_nospace = yes; then
13754 echo "$ac_t""no" 1>&6
13755 X_LIBS="$X_LIBS -R$x_libraries"
13756 else
13757 LIBS="$ac_xsave_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_space=yes
13769 else
13770 echo "configure: failed program was:" >&5
13771 cat conftest.$ac_ext >&5
13772 rm -rf conftest*
13773 ac_R_space=no
13774 fi
13775 rm -f conftest*
13776 if test $ac_R_space = yes; then
13777 echo "$ac_t""yes" 1>&6
13778 X_LIBS="$X_LIBS -R $x_libraries"
13779 else
13780 echo "$ac_t""neither works" 1>&6
13781 fi
13782 fi
13783 LIBS="$ac_xsave_LIBS"
13784 esac
13785 fi
13786
13787 # Check for system-dependent libraries X programs must link with.
13788 # Do this before checking for the system-independent R6 libraries
13789 # (-lICE), since we may need -lsocket or whatever for X linking.
13790
13791 if test "$ISC" = yes; then
13792 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13793 else
13794 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13795 # libraries were built with DECnet support. And karl@cs.umb.edu says
13796 # the Alpha needs dnet_stub (dnet does not exist).
13797 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13798 echo "configure:13799: checking for dnet_ntoa in -ldnet" >&5
13799 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13801 echo $ac_n "(cached) $ac_c" 1>&6
13802 else
13803 ac_save_LIBS="$LIBS"
13804 LIBS="-ldnet $LIBS"
13805 cat > conftest.$ac_ext <<EOF
13806 #line 13807 "configure"
13807 #include "confdefs.h"
13808 /* Override any gcc2 internal prototype to avoid an error. */
13809 /* We use char because int might match the return type of a gcc2
13810 builtin and then its argument prototype would still apply. */
13811 char dnet_ntoa();
13812
13813 int main() {
13814 dnet_ntoa()
13815 ; return 0; }
13816 EOF
13817 if { (eval echo configure:13818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13818 rm -rf conftest*
13819 eval "ac_cv_lib_$ac_lib_var=yes"
13820 else
13821 echo "configure: failed program was:" >&5
13822 cat conftest.$ac_ext >&5
13823 rm -rf conftest*
13824 eval "ac_cv_lib_$ac_lib_var=no"
13825 fi
13826 rm -f conftest*
13827 LIBS="$ac_save_LIBS"
13828
13829 fi
13830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13831 echo "$ac_t""yes" 1>&6
13832 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13833 else
13834 echo "$ac_t""no" 1>&6
13835 fi
13836
13837 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13838 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13839 echo "configure:13840: checking for dnet_ntoa in -ldnet_stub" >&5
13840 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13842 echo $ac_n "(cached) $ac_c" 1>&6
13843 else
13844 ac_save_LIBS="$LIBS"
13845 LIBS="-ldnet_stub $LIBS"
13846 cat > conftest.$ac_ext <<EOF
13847 #line 13848 "configure"
13848 #include "confdefs.h"
13849 /* Override any gcc2 internal prototype to avoid an error. */
13850 /* We use char because int might match the return type of a gcc2
13851 builtin and then its argument prototype would still apply. */
13852 char dnet_ntoa();
13853
13854 int main() {
13855 dnet_ntoa()
13856 ; return 0; }
13857 EOF
13858 if { (eval echo configure:13859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13859 rm -rf conftest*
13860 eval "ac_cv_lib_$ac_lib_var=yes"
13861 else
13862 echo "configure: failed program was:" >&5
13863 cat conftest.$ac_ext >&5
13864 rm -rf conftest*
13865 eval "ac_cv_lib_$ac_lib_var=no"
13866 fi
13867 rm -f conftest*
13868 LIBS="$ac_save_LIBS"
13869
13870 fi
13871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13872 echo "$ac_t""yes" 1>&6
13873 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13874 else
13875 echo "$ac_t""no" 1>&6
13876 fi
13877
13878 fi
13879
13880 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13881 # to get the SysV transport functions.
13882 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13883 # needs -lnsl.
13884 # The nsl library prevents programs from opening the X display
13885 # on Irix 5.2, according to dickey@clark.net.
13886 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13887 echo "configure:13888: checking for gethostbyname" >&5
13888 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13889 echo $ac_n "(cached) $ac_c" 1>&6
13890 else
13891 cat > conftest.$ac_ext <<EOF
13892 #line 13893 "configure"
13893 #include "confdefs.h"
13894 /* System header to define __stub macros and hopefully few prototypes,
13895 which can conflict with char gethostbyname(); below. */
13896 #include <assert.h>
13897 /* Override any gcc2 internal prototype to avoid an error. */
13898 /* We use char because int might match the return type of a gcc2
13899 builtin and then its argument prototype would still apply. */
13900 char gethostbyname();
13901
13902 int main() {
13903
13904 /* The GNU C library defines this for functions which it implements
13905 to always fail with ENOSYS. Some functions are actually named
13906 something starting with __ and the normal name is an alias. */
13907 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13908 choke me
13909 #else
13910 gethostbyname();
13911 #endif
13912
13913 ; return 0; }
13914 EOF
13915 if { (eval echo configure:13916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13916 rm -rf conftest*
13917 eval "ac_cv_func_gethostbyname=yes"
13918 else
13919 echo "configure: failed program was:" >&5
13920 cat conftest.$ac_ext >&5
13921 rm -rf conftest*
13922 eval "ac_cv_func_gethostbyname=no"
13923 fi
13924 rm -f conftest*
13925 fi
13926
13927 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13928 echo "$ac_t""yes" 1>&6
13929 :
13930 else
13931 echo "$ac_t""no" 1>&6
13932 fi
13933
13934 if test $ac_cv_func_gethostbyname = no; then
13935 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13936 echo "configure:13937: checking for gethostbyname in -lnsl" >&5
13937 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13939 echo $ac_n "(cached) $ac_c" 1>&6
13940 else
13941 ac_save_LIBS="$LIBS"
13942 LIBS="-lnsl $LIBS"
13943 cat > conftest.$ac_ext <<EOF
13944 #line 13945 "configure"
13945 #include "confdefs.h"
13946 /* Override any gcc2 internal prototype to avoid an error. */
13947 /* We use char because int might match the return type of a gcc2
13948 builtin and then its argument prototype would still apply. */
13949 char gethostbyname();
13950
13951 int main() {
13952 gethostbyname()
13953 ; return 0; }
13954 EOF
13955 if { (eval echo configure:13956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13956 rm -rf conftest*
13957 eval "ac_cv_lib_$ac_lib_var=yes"
13958 else
13959 echo "configure: failed program was:" >&5
13960 cat conftest.$ac_ext >&5
13961 rm -rf conftest*
13962 eval "ac_cv_lib_$ac_lib_var=no"
13963 fi
13964 rm -f conftest*
13965 LIBS="$ac_save_LIBS"
13966
13967 fi
13968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13969 echo "$ac_t""yes" 1>&6
13970 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13971 else
13972 echo "$ac_t""no" 1>&6
13973 fi
13974
13975 fi
13976
13977 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13978 # socket/setsockopt and other routines are undefined under SCO ODT
13979 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13980 # on later versions), says simon@lia.di.epfl.ch: it contains
13981 # gethostby* variants that don't use the nameserver (or something).
13982 # -lsocket must be given before -lnsl if both are needed.
13983 # We assume that if connect needs -lnsl, so does gethostbyname.
13984 echo $ac_n "checking for connect""... $ac_c" 1>&6
13985 echo "configure:13986: checking for connect" >&5
13986 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13987 echo $ac_n "(cached) $ac_c" 1>&6
13988 else
13989 cat > conftest.$ac_ext <<EOF
13990 #line 13991 "configure"
13991 #include "confdefs.h"
13992 /* System header to define __stub macros and hopefully few prototypes,
13993 which can conflict with char connect(); below. */
13994 #include <assert.h>
13995 /* Override any gcc2 internal prototype to avoid an error. */
13996 /* We use char because int might match the return type of a gcc2
13997 builtin and then its argument prototype would still apply. */
13998 char connect();
13999
14000 int main() {
14001
14002 /* The GNU C library defines this for functions which it implements
14003 to always fail with ENOSYS. Some functions are actually named
14004 something starting with __ and the normal name is an alias. */
14005 #if defined (__stub_connect) || defined (__stub___connect)
14006 choke me
14007 #else
14008 connect();
14009 #endif
14010
14011 ; return 0; }
14012 EOF
14013 if { (eval echo configure:14014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14014 rm -rf conftest*
14015 eval "ac_cv_func_connect=yes"
14016 else
14017 echo "configure: failed program was:" >&5
14018 cat conftest.$ac_ext >&5
14019 rm -rf conftest*
14020 eval "ac_cv_func_connect=no"
14021 fi
14022 rm -f conftest*
14023 fi
14024
14025 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14026 echo "$ac_t""yes" 1>&6
14027 :
14028 else
14029 echo "$ac_t""no" 1>&6
14030 fi
14031
14032 if test $ac_cv_func_connect = no; then
14033 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14034 echo "configure:14035: checking for connect in -lsocket" >&5
14035 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14037 echo $ac_n "(cached) $ac_c" 1>&6
14038 else
14039 ac_save_LIBS="$LIBS"
14040 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14041 cat > conftest.$ac_ext <<EOF
14042 #line 14043 "configure"
14043 #include "confdefs.h"
14044 /* Override any gcc2 internal prototype to avoid an error. */
14045 /* We use char because int might match the return type of a gcc2
14046 builtin and then its argument prototype would still apply. */
14047 char connect();
14048
14049 int main() {
14050 connect()
14051 ; return 0; }
14052 EOF
14053 if { (eval echo configure:14054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14054 rm -rf conftest*
14055 eval "ac_cv_lib_$ac_lib_var=yes"
14056 else
14057 echo "configure: failed program was:" >&5
14058 cat conftest.$ac_ext >&5
14059 rm -rf conftest*
14060 eval "ac_cv_lib_$ac_lib_var=no"
14061 fi
14062 rm -f conftest*
14063 LIBS="$ac_save_LIBS"
14064
14065 fi
14066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14067 echo "$ac_t""yes" 1>&6
14068 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14069 else
14070 echo "$ac_t""no" 1>&6
14071 fi
14072
14073 fi
14074
14075 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14076 echo $ac_n "checking for remove""... $ac_c" 1>&6
14077 echo "configure:14078: checking for remove" >&5
14078 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14079 echo $ac_n "(cached) $ac_c" 1>&6
14080 else
14081 cat > conftest.$ac_ext <<EOF
14082 #line 14083 "configure"
14083 #include "confdefs.h"
14084 /* System header to define __stub macros and hopefully few prototypes,
14085 which can conflict with char remove(); below. */
14086 #include <assert.h>
14087 /* Override any gcc2 internal prototype to avoid an error. */
14088 /* We use char because int might match the return type of a gcc2
14089 builtin and then its argument prototype would still apply. */
14090 char remove();
14091
14092 int main() {
14093
14094 /* The GNU C library defines this for functions which it implements
14095 to always fail with ENOSYS. Some functions are actually named
14096 something starting with __ and the normal name is an alias. */
14097 #if defined (__stub_remove) || defined (__stub___remove)
14098 choke me
14099 #else
14100 remove();
14101 #endif
14102
14103 ; return 0; }
14104 EOF
14105 if { (eval echo configure:14106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14106 rm -rf conftest*
14107 eval "ac_cv_func_remove=yes"
14108 else
14109 echo "configure: failed program was:" >&5
14110 cat conftest.$ac_ext >&5
14111 rm -rf conftest*
14112 eval "ac_cv_func_remove=no"
14113 fi
14114 rm -f conftest*
14115 fi
14116
14117 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14118 echo "$ac_t""yes" 1>&6
14119 :
14120 else
14121 echo "$ac_t""no" 1>&6
14122 fi
14123
14124 if test $ac_cv_func_remove = no; then
14125 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14126 echo "configure:14127: checking for remove in -lposix" >&5
14127 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14129 echo $ac_n "(cached) $ac_c" 1>&6
14130 else
14131 ac_save_LIBS="$LIBS"
14132 LIBS="-lposix $LIBS"
14133 cat > conftest.$ac_ext <<EOF
14134 #line 14135 "configure"
14135 #include "confdefs.h"
14136 /* Override any gcc2 internal prototype to avoid an error. */
14137 /* We use char because int might match the return type of a gcc2
14138 builtin and then its argument prototype would still apply. */
14139 char remove();
14140
14141 int main() {
14142 remove()
14143 ; return 0; }
14144 EOF
14145 if { (eval echo configure:14146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14146 rm -rf conftest*
14147 eval "ac_cv_lib_$ac_lib_var=yes"
14148 else
14149 echo "configure: failed program was:" >&5
14150 cat conftest.$ac_ext >&5
14151 rm -rf conftest*
14152 eval "ac_cv_lib_$ac_lib_var=no"
14153 fi
14154 rm -f conftest*
14155 LIBS="$ac_save_LIBS"
14156
14157 fi
14158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14159 echo "$ac_t""yes" 1>&6
14160 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14161 else
14162 echo "$ac_t""no" 1>&6
14163 fi
14164
14165 fi
14166
14167 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14168 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14169 echo "configure:14170: checking for shmat" >&5
14170 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14171 echo $ac_n "(cached) $ac_c" 1>&6
14172 else
14173 cat > conftest.$ac_ext <<EOF
14174 #line 14175 "configure"
14175 #include "confdefs.h"
14176 /* System header to define __stub macros and hopefully few prototypes,
14177 which can conflict with char shmat(); below. */
14178 #include <assert.h>
14179 /* Override any gcc2 internal prototype to avoid an error. */
14180 /* We use char because int might match the return type of a gcc2
14181 builtin and then its argument prototype would still apply. */
14182 char shmat();
14183
14184 int main() {
14185
14186 /* The GNU C library defines this for functions which it implements
14187 to always fail with ENOSYS. Some functions are actually named
14188 something starting with __ and the normal name is an alias. */
14189 #if defined (__stub_shmat) || defined (__stub___shmat)
14190 choke me
14191 #else
14192 shmat();
14193 #endif
14194
14195 ; return 0; }
14196 EOF
14197 if { (eval echo configure:14198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14198 rm -rf conftest*
14199 eval "ac_cv_func_shmat=yes"
14200 else
14201 echo "configure: failed program was:" >&5
14202 cat conftest.$ac_ext >&5
14203 rm -rf conftest*
14204 eval "ac_cv_func_shmat=no"
14205 fi
14206 rm -f conftest*
14207 fi
14208
14209 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14210 echo "$ac_t""yes" 1>&6
14211 :
14212 else
14213 echo "$ac_t""no" 1>&6
14214 fi
14215
14216 if test $ac_cv_func_shmat = no; then
14217 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14218 echo "configure:14219: checking for shmat in -lipc" >&5
14219 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14221 echo $ac_n "(cached) $ac_c" 1>&6
14222 else
14223 ac_save_LIBS="$LIBS"
14224 LIBS="-lipc $LIBS"
14225 cat > conftest.$ac_ext <<EOF
14226 #line 14227 "configure"
14227 #include "confdefs.h"
14228 /* Override any gcc2 internal prototype to avoid an error. */
14229 /* We use char because int might match the return type of a gcc2
14230 builtin and then its argument prototype would still apply. */
14231 char shmat();
14232
14233 int main() {
14234 shmat()
14235 ; return 0; }
14236 EOF
14237 if { (eval echo configure:14238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14238 rm -rf conftest*
14239 eval "ac_cv_lib_$ac_lib_var=yes"
14240 else
14241 echo "configure: failed program was:" >&5
14242 cat conftest.$ac_ext >&5
14243 rm -rf conftest*
14244 eval "ac_cv_lib_$ac_lib_var=no"
14245 fi
14246 rm -f conftest*
14247 LIBS="$ac_save_LIBS"
14248
14249 fi
14250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14251 echo "$ac_t""yes" 1>&6
14252 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14253 else
14254 echo "$ac_t""no" 1>&6
14255 fi
14256
14257 fi
14258 fi
14259
14260 # Check for libraries that X11R6 Xt/Xaw programs need.
14261 ac_save_LDFLAGS="$LDFLAGS"
14262 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14263 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14264 # check for ICE first), but we must link in the order -lSM -lICE or
14265 # we get undefined symbols. So assume we have SM if we have ICE.
14266 # These have to be linked with before -lX11, unlike the other
14267 # libraries we check for below, so use a different variable.
14268 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14269 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14270 echo "configure:14271: checking for IceConnectionNumber in -lICE" >&5
14271 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14273 echo $ac_n "(cached) $ac_c" 1>&6
14274 else
14275 ac_save_LIBS="$LIBS"
14276 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14277 cat > conftest.$ac_ext <<EOF
14278 #line 14279 "configure"
14279 #include "confdefs.h"
14280 /* Override any gcc2 internal prototype to avoid an error. */
14281 /* We use char because int might match the return type of a gcc2
14282 builtin and then its argument prototype would still apply. */
14283 char IceConnectionNumber();
14284
14285 int main() {
14286 IceConnectionNumber()
14287 ; return 0; }
14288 EOF
14289 if { (eval echo configure:14290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14290 rm -rf conftest*
14291 eval "ac_cv_lib_$ac_lib_var=yes"
14292 else
14293 echo "configure: failed program was:" >&5
14294 cat conftest.$ac_ext >&5
14295 rm -rf conftest*
14296 eval "ac_cv_lib_$ac_lib_var=no"
14297 fi
14298 rm -f conftest*
14299 LIBS="$ac_save_LIBS"
14300
14301 fi
14302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14303 echo "$ac_t""yes" 1>&6
14304 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14305 else
14306 echo "$ac_t""no" 1>&6
14307 fi
14308
14309 LDFLAGS="$ac_save_LDFLAGS"
14310
14311 fi
14312
14313
14314 if test "$no_x" = "yes"; then
14315 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14316 fi
14317
14318 GUI_TK_LIBRARY="$X_LIBS"
14319 TOOLKIT_INCLUDE="$X_CFLAGS"
14320 AFMINSTALL=afminstall
14321 COMPILED_X_PROGRAM=0
14322
14323 if test "$wxUSE_NANOX" = "yes"; then
14324 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14325 echo "configure:14326: checking for MicroWindows/NanoX distribution" >&5
14326 if test "x$MICROWIN" = x ; then
14327 echo "$ac_t""not found" 1>&6
14328 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14329 else
14330 echo "$ac_t""$MICROWIN" 1>&6
14331 cat >> confdefs.h <<\EOF
14332 #define wxUSE_NANOX 1
14333 EOF
14334
14335 fi
14336 fi
14337
14338 xpm_link=
14339 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14340 echo "configure:14341: checking for Xpm library" >&5
14341
14342 ac_find_libraries=
14343 for ac_dir in $SEARCH_LIB /usr/lib;
14344 do
14345 for ac_extension in a so sl dylib; do
14346 if test -f "$ac_dir/libXpm.$ac_extension"; then
14347 ac_find_libraries=$ac_dir
14348 break 2
14349 fi
14350 done
14351 done
14352
14353 if test "$ac_find_libraries" != "" ; then
14354
14355 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14356 result=$?
14357 if test $result = 0; then
14358 ac_path_to_link=""
14359 else
14360 ac_path_to_link=" -L$ac_find_libraries"
14361 fi
14362
14363 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14364 xpm_link=" -lXpm"
14365 cat >> confdefs.h <<\EOF
14366 #define wxHAVE_LIB_XPM 1
14367 EOF
14368
14369 echo "$ac_t""found at $ac_find_libraries" 1>&6
14370 else
14371 cat > conftest.$ac_ext <<EOF
14372 #line 14373 "configure"
14373 #include "confdefs.h"
14374
14375 #include <X11/xpm.h>
14376
14377 int main() {
14378
14379 int version;
14380 version = XpmLibraryVersion();
14381
14382 ; return 0; }
14383 EOF
14384 if { (eval echo configure:14385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14385 rm -rf conftest*
14386
14387 xpm_link=" -lXpm"
14388 cat >> confdefs.h <<\EOF
14389 #define wxHAVE_LIB_XPM 1
14390 EOF
14391
14392 echo "$ac_t""found in default search path" 1>&6
14393 COMPILED_X_PROGRAM=0
14394
14395 else
14396 echo "configure: failed program was:" >&5
14397 cat conftest.$ac_ext >&5
14398 rm -rf conftest*
14399
14400 echo "$ac_t""no" 1>&6
14401 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14402
14403
14404 fi
14405 rm -f conftest*
14406 fi
14407
14408 if test "$wxUSE_UNICODE" = "yes"; then
14409
14410 succeeded=no
14411
14412 if test -z "$PKG_CONFIG"; then
14413 # Extract the first word of "pkg-config", so it can be a program name with args.
14414 set dummy pkg-config; ac_word=$2
14415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14416 echo "configure:14417: checking for $ac_word" >&5
14417 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14418 echo $ac_n "(cached) $ac_c" 1>&6
14419 else
14420 case "$PKG_CONFIG" in
14421 /*)
14422 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14423 ;;
14424 ?:/*)
14425 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14426 ;;
14427 *)
14428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14429 ac_dummy="$PATH"
14430 for ac_dir in $ac_dummy; do
14431 test -z "$ac_dir" && ac_dir=.
14432 if test -f $ac_dir/$ac_word; then
14433 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14434 break
14435 fi
14436 done
14437 IFS="$ac_save_ifs"
14438 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14439 ;;
14440 esac
14441 fi
14442 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14443 if test -n "$PKG_CONFIG"; then
14444 echo "$ac_t""$PKG_CONFIG" 1>&6
14445 else
14446 echo "$ac_t""no" 1>&6
14447 fi
14448
14449 fi
14450
14451 if test "$PKG_CONFIG" = "no" ; then
14452 echo "*** The pkg-config script could not be found. Make sure it is"
14453 echo "*** in your path, or set the PKG_CONFIG environment variable"
14454 echo "*** to the full path to pkg-config."
14455 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14456 else
14457 PKG_CONFIG_MIN_VERSION=0.9.0
14458 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14459 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14460 echo "configure:14461: checking for pangox" >&5
14461
14462 if $PKG_CONFIG --exists "pangox" ; then
14463 echo "$ac_t""yes" 1>&6
14464 succeeded=yes
14465
14466 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14467 echo "configure:14468: checking PANGOX_CFLAGS" >&5
14468 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14469 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14470
14471 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14472 echo "configure:14473: checking PANGOX_LIBS" >&5
14473 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14474 echo "$ac_t""$PANGOX_LIBS" 1>&6
14475 else
14476 PANGOX_CFLAGS=""
14477 PANGOX_LIBS=""
14478 ## If we have a custom action on failure, don't print errors, but
14479 ## do set a variable so people can do so.
14480 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14481
14482 fi
14483
14484
14485
14486 else
14487 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14488 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14489 fi
14490 fi
14491
14492 if test $succeeded = yes; then
14493
14494 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14495 LIBS="$LIBS $PANGOX_LIBS"
14496
14497 else
14498
14499 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14500
14501
14502 fi
14503
14504
14505 succeeded=no
14506
14507 if test -z "$PKG_CONFIG"; then
14508 # Extract the first word of "pkg-config", so it can be a program name with args.
14509 set dummy pkg-config; ac_word=$2
14510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14511 echo "configure:14512: checking for $ac_word" >&5
14512 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14513 echo $ac_n "(cached) $ac_c" 1>&6
14514 else
14515 case "$PKG_CONFIG" in
14516 /*)
14517 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14518 ;;
14519 ?:/*)
14520 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14521 ;;
14522 *)
14523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14524 ac_dummy="$PATH"
14525 for ac_dir in $ac_dummy; do
14526 test -z "$ac_dir" && ac_dir=.
14527 if test -f $ac_dir/$ac_word; then
14528 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14529 break
14530 fi
14531 done
14532 IFS="$ac_save_ifs"
14533 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14534 ;;
14535 esac
14536 fi
14537 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14538 if test -n "$PKG_CONFIG"; then
14539 echo "$ac_t""$PKG_CONFIG" 1>&6
14540 else
14541 echo "$ac_t""no" 1>&6
14542 fi
14543
14544 fi
14545
14546 if test "$PKG_CONFIG" = "no" ; then
14547 echo "*** The pkg-config script could not be found. Make sure it is"
14548 echo "*** in your path, or set the PKG_CONFIG environment variable"
14549 echo "*** to the full path to pkg-config."
14550 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14551 else
14552 PKG_CONFIG_MIN_VERSION=0.9.0
14553 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14554 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14555 echo "configure:14556: checking for pangoft2" >&5
14556
14557 if $PKG_CONFIG --exists "pangoft2" ; then
14558 echo "$ac_t""yes" 1>&6
14559 succeeded=yes
14560
14561 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14562 echo "configure:14563: checking PANGOFT2_CFLAGS" >&5
14563 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14564 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14565
14566 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14567 echo "configure:14568: checking PANGOFT2_LIBS" >&5
14568 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14569 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14570 else
14571 PANGOFT2_CFLAGS=""
14572 PANGOFT2_LIBS=""
14573 ## If we have a custom action on failure, don't print errors, but
14574 ## do set a variable so people can do so.
14575 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14576
14577 fi
14578
14579
14580
14581 else
14582 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14583 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14584 fi
14585 fi
14586
14587 if test $succeeded = yes; then
14588
14589 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14590 LIBS="$LIBS $PANGOFT2_LIBS"
14591
14592 else
14593
14594 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14595 wxUSE_PRINTING_ARCHITECTURE="no"
14596
14597
14598 fi
14599
14600
14601 succeeded=no
14602
14603 if test -z "$PKG_CONFIG"; then
14604 # Extract the first word of "pkg-config", so it can be a program name with args.
14605 set dummy pkg-config; ac_word=$2
14606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14607 echo "configure:14608: checking for $ac_word" >&5
14608 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14609 echo $ac_n "(cached) $ac_c" 1>&6
14610 else
14611 case "$PKG_CONFIG" in
14612 /*)
14613 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14614 ;;
14615 ?:/*)
14616 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14617 ;;
14618 *)
14619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14620 ac_dummy="$PATH"
14621 for ac_dir in $ac_dummy; do
14622 test -z "$ac_dir" && ac_dir=.
14623 if test -f $ac_dir/$ac_word; then
14624 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14625 break
14626 fi
14627 done
14628 IFS="$ac_save_ifs"
14629 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14630 ;;
14631 esac
14632 fi
14633 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14634 if test -n "$PKG_CONFIG"; then
14635 echo "$ac_t""$PKG_CONFIG" 1>&6
14636 else
14637 echo "$ac_t""no" 1>&6
14638 fi
14639
14640 fi
14641
14642 if test "$PKG_CONFIG" = "no" ; then
14643 echo "*** The pkg-config script could not be found. Make sure it is"
14644 echo "*** in your path, or set the PKG_CONFIG environment variable"
14645 echo "*** to the full path to pkg-config."
14646 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14647 else
14648 PKG_CONFIG_MIN_VERSION=0.9.0
14649 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14650 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14651 echo "configure:14652: checking for pangoxft" >&5
14652
14653 if $PKG_CONFIG --exists "pangoxft" ; then
14654 echo "$ac_t""yes" 1>&6
14655 succeeded=yes
14656
14657 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14658 echo "configure:14659: checking PANGOXFT_CFLAGS" >&5
14659 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14660 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14661
14662 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14663 echo "configure:14664: checking PANGOXFT_LIBS" >&5
14664 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14665 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14666 else
14667 PANGOXFT_CFLAGS=""
14668 PANGOXFT_LIBS=""
14669 ## If we have a custom action on failure, don't print errors, but
14670 ## do set a variable so people can do so.
14671 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14672
14673 fi
14674
14675
14676
14677 else
14678 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14679 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14680 fi
14681 fi
14682
14683 if test $succeeded = yes; then
14684
14685 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14686 LIBS="$LIBS $PANGOXFT_LIBS"
14687
14688 else
14689
14690 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14691
14692
14693 fi
14694
14695 fi
14696
14697 wxUSE_UNIVERSAL="yes"
14698
14699 if test "$wxUSE_NANOX" = "yes"; then
14700 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14701 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"
14702 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14703 else
14704 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14705 fi
14706
14707 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14708 TOOLKIT=X11
14709 GUIDIST=X11_DIST
14710 fi
14711
14712 if test "$wxUSE_MOTIF" = 1; then
14713 if test "$no_x" = yes; then
14714 # Not all programs may use this symbol, but it does not hurt to define it.
14715 cat >> confdefs.h <<\EOF
14716 #define X_DISPLAY_MISSING 1
14717 EOF
14718
14719 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14720 else
14721 if test -n "$x_includes"; then
14722 X_CFLAGS="$X_CFLAGS -I$x_includes"
14723 fi
14724
14725 # It would also be nice to do this for all -L options, not just this one.
14726 if test -n "$x_libraries"; then
14727 X_LIBS="$X_LIBS -L$x_libraries"
14728 # For Solaris; some versions of Sun CC require a space after -R and
14729 # others require no space. Words are not sufficient . . . .
14730 case "`(uname -sr) 2>/dev/null`" in
14731 "SunOS 5"*)
14732 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14733 echo "configure:14734: checking whether -R must be followed by a space" >&5
14734 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14735 cat > conftest.$ac_ext <<EOF
14736 #line 14737 "configure"
14737 #include "confdefs.h"
14738
14739 int main() {
14740
14741 ; return 0; }
14742 EOF
14743 if { (eval echo configure:14744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14744 rm -rf conftest*
14745 ac_R_nospace=yes
14746 else
14747 echo "configure: failed program was:" >&5
14748 cat conftest.$ac_ext >&5
14749 rm -rf conftest*
14750 ac_R_nospace=no
14751 fi
14752 rm -f conftest*
14753 if test $ac_R_nospace = yes; then
14754 echo "$ac_t""no" 1>&6
14755 X_LIBS="$X_LIBS -R$x_libraries"
14756 else
14757 LIBS="$ac_xsave_LIBS -R $x_libraries"
14758 cat > conftest.$ac_ext <<EOF
14759 #line 14760 "configure"
14760 #include "confdefs.h"
14761
14762 int main() {
14763
14764 ; return 0; }
14765 EOF
14766 if { (eval echo configure:14767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14767 rm -rf conftest*
14768 ac_R_space=yes
14769 else
14770 echo "configure: failed program was:" >&5
14771 cat conftest.$ac_ext >&5
14772 rm -rf conftest*
14773 ac_R_space=no
14774 fi
14775 rm -f conftest*
14776 if test $ac_R_space = yes; then
14777 echo "$ac_t""yes" 1>&6
14778 X_LIBS="$X_LIBS -R $x_libraries"
14779 else
14780 echo "$ac_t""neither works" 1>&6
14781 fi
14782 fi
14783 LIBS="$ac_xsave_LIBS"
14784 esac
14785 fi
14786
14787 # Check for system-dependent libraries X programs must link with.
14788 # Do this before checking for the system-independent R6 libraries
14789 # (-lICE), since we may need -lsocket or whatever for X linking.
14790
14791 if test "$ISC" = yes; then
14792 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14793 else
14794 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14795 # libraries were built with DECnet support. And karl@cs.umb.edu says
14796 # the Alpha needs dnet_stub (dnet does not exist).
14797 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14798 echo "configure:14799: checking for dnet_ntoa in -ldnet" >&5
14799 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14801 echo $ac_n "(cached) $ac_c" 1>&6
14802 else
14803 ac_save_LIBS="$LIBS"
14804 LIBS="-ldnet $LIBS"
14805 cat > conftest.$ac_ext <<EOF
14806 #line 14807 "configure"
14807 #include "confdefs.h"
14808 /* Override any gcc2 internal prototype to avoid an error. */
14809 /* We use char because int might match the return type of a gcc2
14810 builtin and then its argument prototype would still apply. */
14811 char dnet_ntoa();
14812
14813 int main() {
14814 dnet_ntoa()
14815 ; return 0; }
14816 EOF
14817 if { (eval echo configure:14818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14818 rm -rf conftest*
14819 eval "ac_cv_lib_$ac_lib_var=yes"
14820 else
14821 echo "configure: failed program was:" >&5
14822 cat conftest.$ac_ext >&5
14823 rm -rf conftest*
14824 eval "ac_cv_lib_$ac_lib_var=no"
14825 fi
14826 rm -f conftest*
14827 LIBS="$ac_save_LIBS"
14828
14829 fi
14830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14831 echo "$ac_t""yes" 1>&6
14832 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14833 else
14834 echo "$ac_t""no" 1>&6
14835 fi
14836
14837 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14838 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14839 echo "configure:14840: checking for dnet_ntoa in -ldnet_stub" >&5
14840 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14842 echo $ac_n "(cached) $ac_c" 1>&6
14843 else
14844 ac_save_LIBS="$LIBS"
14845 LIBS="-ldnet_stub $LIBS"
14846 cat > conftest.$ac_ext <<EOF
14847 #line 14848 "configure"
14848 #include "confdefs.h"
14849 /* Override any gcc2 internal prototype to avoid an error. */
14850 /* We use char because int might match the return type of a gcc2
14851 builtin and then its argument prototype would still apply. */
14852 char dnet_ntoa();
14853
14854 int main() {
14855 dnet_ntoa()
14856 ; return 0; }
14857 EOF
14858 if { (eval echo configure:14859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14859 rm -rf conftest*
14860 eval "ac_cv_lib_$ac_lib_var=yes"
14861 else
14862 echo "configure: failed program was:" >&5
14863 cat conftest.$ac_ext >&5
14864 rm -rf conftest*
14865 eval "ac_cv_lib_$ac_lib_var=no"
14866 fi
14867 rm -f conftest*
14868 LIBS="$ac_save_LIBS"
14869
14870 fi
14871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14872 echo "$ac_t""yes" 1>&6
14873 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14874 else
14875 echo "$ac_t""no" 1>&6
14876 fi
14877
14878 fi
14879
14880 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14881 # to get the SysV transport functions.
14882 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14883 # needs -lnsl.
14884 # The nsl library prevents programs from opening the X display
14885 # on Irix 5.2, according to dickey@clark.net.
14886 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14887 echo "configure:14888: checking for gethostbyname" >&5
14888 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14889 echo $ac_n "(cached) $ac_c" 1>&6
14890 else
14891 cat > conftest.$ac_ext <<EOF
14892 #line 14893 "configure"
14893 #include "confdefs.h"
14894 /* System header to define __stub macros and hopefully few prototypes,
14895 which can conflict with char gethostbyname(); below. */
14896 #include <assert.h>
14897 /* Override any gcc2 internal prototype to avoid an error. */
14898 /* We use char because int might match the return type of a gcc2
14899 builtin and then its argument prototype would still apply. */
14900 char gethostbyname();
14901
14902 int main() {
14903
14904 /* The GNU C library defines this for functions which it implements
14905 to always fail with ENOSYS. Some functions are actually named
14906 something starting with __ and the normal name is an alias. */
14907 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14908 choke me
14909 #else
14910 gethostbyname();
14911 #endif
14912
14913 ; return 0; }
14914 EOF
14915 if { (eval echo configure:14916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14916 rm -rf conftest*
14917 eval "ac_cv_func_gethostbyname=yes"
14918 else
14919 echo "configure: failed program was:" >&5
14920 cat conftest.$ac_ext >&5
14921 rm -rf conftest*
14922 eval "ac_cv_func_gethostbyname=no"
14923 fi
14924 rm -f conftest*
14925 fi
14926
14927 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14928 echo "$ac_t""yes" 1>&6
14929 :
14930 else
14931 echo "$ac_t""no" 1>&6
14932 fi
14933
14934 if test $ac_cv_func_gethostbyname = no; then
14935 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14936 echo "configure:14937: checking for gethostbyname in -lnsl" >&5
14937 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14939 echo $ac_n "(cached) $ac_c" 1>&6
14940 else
14941 ac_save_LIBS="$LIBS"
14942 LIBS="-lnsl $LIBS"
14943 cat > conftest.$ac_ext <<EOF
14944 #line 14945 "configure"
14945 #include "confdefs.h"
14946 /* Override any gcc2 internal prototype to avoid an error. */
14947 /* We use char because int might match the return type of a gcc2
14948 builtin and then its argument prototype would still apply. */
14949 char gethostbyname();
14950
14951 int main() {
14952 gethostbyname()
14953 ; return 0; }
14954 EOF
14955 if { (eval echo configure:14956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14956 rm -rf conftest*
14957 eval "ac_cv_lib_$ac_lib_var=yes"
14958 else
14959 echo "configure: failed program was:" >&5
14960 cat conftest.$ac_ext >&5
14961 rm -rf conftest*
14962 eval "ac_cv_lib_$ac_lib_var=no"
14963 fi
14964 rm -f conftest*
14965 LIBS="$ac_save_LIBS"
14966
14967 fi
14968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14969 echo "$ac_t""yes" 1>&6
14970 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14971 else
14972 echo "$ac_t""no" 1>&6
14973 fi
14974
14975 fi
14976
14977 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14978 # socket/setsockopt and other routines are undefined under SCO ODT
14979 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14980 # on later versions), says simon@lia.di.epfl.ch: it contains
14981 # gethostby* variants that don't use the nameserver (or something).
14982 # -lsocket must be given before -lnsl if both are needed.
14983 # We assume that if connect needs -lnsl, so does gethostbyname.
14984 echo $ac_n "checking for connect""... $ac_c" 1>&6
14985 echo "configure:14986: checking for connect" >&5
14986 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14987 echo $ac_n "(cached) $ac_c" 1>&6
14988 else
14989 cat > conftest.$ac_ext <<EOF
14990 #line 14991 "configure"
14991 #include "confdefs.h"
14992 /* System header to define __stub macros and hopefully few prototypes,
14993 which can conflict with char connect(); below. */
14994 #include <assert.h>
14995 /* Override any gcc2 internal prototype to avoid an error. */
14996 /* We use char because int might match the return type of a gcc2
14997 builtin and then its argument prototype would still apply. */
14998 char connect();
14999
15000 int main() {
15001
15002 /* The GNU C library defines this for functions which it implements
15003 to always fail with ENOSYS. Some functions are actually named
15004 something starting with __ and the normal name is an alias. */
15005 #if defined (__stub_connect) || defined (__stub___connect)
15006 choke me
15007 #else
15008 connect();
15009 #endif
15010
15011 ; return 0; }
15012 EOF
15013 if { (eval echo configure:15014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15014 rm -rf conftest*
15015 eval "ac_cv_func_connect=yes"
15016 else
15017 echo "configure: failed program was:" >&5
15018 cat conftest.$ac_ext >&5
15019 rm -rf conftest*
15020 eval "ac_cv_func_connect=no"
15021 fi
15022 rm -f conftest*
15023 fi
15024
15025 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15026 echo "$ac_t""yes" 1>&6
15027 :
15028 else
15029 echo "$ac_t""no" 1>&6
15030 fi
15031
15032 if test $ac_cv_func_connect = no; then
15033 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15034 echo "configure:15035: checking for connect in -lsocket" >&5
15035 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15037 echo $ac_n "(cached) $ac_c" 1>&6
15038 else
15039 ac_save_LIBS="$LIBS"
15040 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15041 cat > conftest.$ac_ext <<EOF
15042 #line 15043 "configure"
15043 #include "confdefs.h"
15044 /* Override any gcc2 internal prototype to avoid an error. */
15045 /* We use char because int might match the return type of a gcc2
15046 builtin and then its argument prototype would still apply. */
15047 char connect();
15048
15049 int main() {
15050 connect()
15051 ; return 0; }
15052 EOF
15053 if { (eval echo configure:15054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15054 rm -rf conftest*
15055 eval "ac_cv_lib_$ac_lib_var=yes"
15056 else
15057 echo "configure: failed program was:" >&5
15058 cat conftest.$ac_ext >&5
15059 rm -rf conftest*
15060 eval "ac_cv_lib_$ac_lib_var=no"
15061 fi
15062 rm -f conftest*
15063 LIBS="$ac_save_LIBS"
15064
15065 fi
15066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15067 echo "$ac_t""yes" 1>&6
15068 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15069 else
15070 echo "$ac_t""no" 1>&6
15071 fi
15072
15073 fi
15074
15075 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15076 echo $ac_n "checking for remove""... $ac_c" 1>&6
15077 echo "configure:15078: checking for remove" >&5
15078 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15079 echo $ac_n "(cached) $ac_c" 1>&6
15080 else
15081 cat > conftest.$ac_ext <<EOF
15082 #line 15083 "configure"
15083 #include "confdefs.h"
15084 /* System header to define __stub macros and hopefully few prototypes,
15085 which can conflict with char remove(); below. */
15086 #include <assert.h>
15087 /* Override any gcc2 internal prototype to avoid an error. */
15088 /* We use char because int might match the return type of a gcc2
15089 builtin and then its argument prototype would still apply. */
15090 char remove();
15091
15092 int main() {
15093
15094 /* The GNU C library defines this for functions which it implements
15095 to always fail with ENOSYS. Some functions are actually named
15096 something starting with __ and the normal name is an alias. */
15097 #if defined (__stub_remove) || defined (__stub___remove)
15098 choke me
15099 #else
15100 remove();
15101 #endif
15102
15103 ; return 0; }
15104 EOF
15105 if { (eval echo configure:15106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15106 rm -rf conftest*
15107 eval "ac_cv_func_remove=yes"
15108 else
15109 echo "configure: failed program was:" >&5
15110 cat conftest.$ac_ext >&5
15111 rm -rf conftest*
15112 eval "ac_cv_func_remove=no"
15113 fi
15114 rm -f conftest*
15115 fi
15116
15117 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15118 echo "$ac_t""yes" 1>&6
15119 :
15120 else
15121 echo "$ac_t""no" 1>&6
15122 fi
15123
15124 if test $ac_cv_func_remove = no; then
15125 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15126 echo "configure:15127: checking for remove in -lposix" >&5
15127 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15129 echo $ac_n "(cached) $ac_c" 1>&6
15130 else
15131 ac_save_LIBS="$LIBS"
15132 LIBS="-lposix $LIBS"
15133 cat > conftest.$ac_ext <<EOF
15134 #line 15135 "configure"
15135 #include "confdefs.h"
15136 /* Override any gcc2 internal prototype to avoid an error. */
15137 /* We use char because int might match the return type of a gcc2
15138 builtin and then its argument prototype would still apply. */
15139 char remove();
15140
15141 int main() {
15142 remove()
15143 ; return 0; }
15144 EOF
15145 if { (eval echo configure:15146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15146 rm -rf conftest*
15147 eval "ac_cv_lib_$ac_lib_var=yes"
15148 else
15149 echo "configure: failed program was:" >&5
15150 cat conftest.$ac_ext >&5
15151 rm -rf conftest*
15152 eval "ac_cv_lib_$ac_lib_var=no"
15153 fi
15154 rm -f conftest*
15155 LIBS="$ac_save_LIBS"
15156
15157 fi
15158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15159 echo "$ac_t""yes" 1>&6
15160 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15161 else
15162 echo "$ac_t""no" 1>&6
15163 fi
15164
15165 fi
15166
15167 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15168 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15169 echo "configure:15170: checking for shmat" >&5
15170 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15171 echo $ac_n "(cached) $ac_c" 1>&6
15172 else
15173 cat > conftest.$ac_ext <<EOF
15174 #line 15175 "configure"
15175 #include "confdefs.h"
15176 /* System header to define __stub macros and hopefully few prototypes,
15177 which can conflict with char shmat(); below. */
15178 #include <assert.h>
15179 /* Override any gcc2 internal prototype to avoid an error. */
15180 /* We use char because int might match the return type of a gcc2
15181 builtin and then its argument prototype would still apply. */
15182 char shmat();
15183
15184 int main() {
15185
15186 /* The GNU C library defines this for functions which it implements
15187 to always fail with ENOSYS. Some functions are actually named
15188 something starting with __ and the normal name is an alias. */
15189 #if defined (__stub_shmat) || defined (__stub___shmat)
15190 choke me
15191 #else
15192 shmat();
15193 #endif
15194
15195 ; return 0; }
15196 EOF
15197 if { (eval echo configure:15198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15198 rm -rf conftest*
15199 eval "ac_cv_func_shmat=yes"
15200 else
15201 echo "configure: failed program was:" >&5
15202 cat conftest.$ac_ext >&5
15203 rm -rf conftest*
15204 eval "ac_cv_func_shmat=no"
15205 fi
15206 rm -f conftest*
15207 fi
15208
15209 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15210 echo "$ac_t""yes" 1>&6
15211 :
15212 else
15213 echo "$ac_t""no" 1>&6
15214 fi
15215
15216 if test $ac_cv_func_shmat = no; then
15217 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15218 echo "configure:15219: checking for shmat in -lipc" >&5
15219 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15221 echo $ac_n "(cached) $ac_c" 1>&6
15222 else
15223 ac_save_LIBS="$LIBS"
15224 LIBS="-lipc $LIBS"
15225 cat > conftest.$ac_ext <<EOF
15226 #line 15227 "configure"
15227 #include "confdefs.h"
15228 /* Override any gcc2 internal prototype to avoid an error. */
15229 /* We use char because int might match the return type of a gcc2
15230 builtin and then its argument prototype would still apply. */
15231 char shmat();
15232
15233 int main() {
15234 shmat()
15235 ; return 0; }
15236 EOF
15237 if { (eval echo configure:15238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15238 rm -rf conftest*
15239 eval "ac_cv_lib_$ac_lib_var=yes"
15240 else
15241 echo "configure: failed program was:" >&5
15242 cat conftest.$ac_ext >&5
15243 rm -rf conftest*
15244 eval "ac_cv_lib_$ac_lib_var=no"
15245 fi
15246 rm -f conftest*
15247 LIBS="$ac_save_LIBS"
15248
15249 fi
15250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15251 echo "$ac_t""yes" 1>&6
15252 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15253 else
15254 echo "$ac_t""no" 1>&6
15255 fi
15256
15257 fi
15258 fi
15259
15260 # Check for libraries that X11R6 Xt/Xaw programs need.
15261 ac_save_LDFLAGS="$LDFLAGS"
15262 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15263 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15264 # check for ICE first), but we must link in the order -lSM -lICE or
15265 # we get undefined symbols. So assume we have SM if we have ICE.
15266 # These have to be linked with before -lX11, unlike the other
15267 # libraries we check for below, so use a different variable.
15268 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15269 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15270 echo "configure:15271: checking for IceConnectionNumber in -lICE" >&5
15271 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15273 echo $ac_n "(cached) $ac_c" 1>&6
15274 else
15275 ac_save_LIBS="$LIBS"
15276 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15277 cat > conftest.$ac_ext <<EOF
15278 #line 15279 "configure"
15279 #include "confdefs.h"
15280 /* Override any gcc2 internal prototype to avoid an error. */
15281 /* We use char because int might match the return type of a gcc2
15282 builtin and then its argument prototype would still apply. */
15283 char IceConnectionNumber();
15284
15285 int main() {
15286 IceConnectionNumber()
15287 ; return 0; }
15288 EOF
15289 if { (eval echo configure:15290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15290 rm -rf conftest*
15291 eval "ac_cv_lib_$ac_lib_var=yes"
15292 else
15293 echo "configure: failed program was:" >&5
15294 cat conftest.$ac_ext >&5
15295 rm -rf conftest*
15296 eval "ac_cv_lib_$ac_lib_var=no"
15297 fi
15298 rm -f conftest*
15299 LIBS="$ac_save_LIBS"
15300
15301 fi
15302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15303 echo "$ac_t""yes" 1>&6
15304 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15305 else
15306 echo "$ac_t""no" 1>&6
15307 fi
15308
15309 LDFLAGS="$ac_save_LDFLAGS"
15310
15311 fi
15312
15313
15314 if test "$no_x" = "yes"; then
15315 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15316 fi
15317
15318 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15319 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15320 AFMINSTALL=afminstall
15321 COMPILED_X_PROGRAM=0
15322
15323 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15324 echo "configure:15325: checking for Motif/Lesstif headers" >&5
15325
15326 ac_find_includes=
15327 for ac_dir in $SEARCH_INCLUDE /usr/include;
15328 do
15329 if test -f "$ac_dir/Xm/Xm.h"; then
15330 ac_find_includes=$ac_dir
15331 break
15332 fi
15333 done
15334
15335 if test "$ac_find_includes" != "" ; then
15336 echo "$ac_t""found in $ac_find_includes" 1>&6
15337
15338 if test "x$ac_find_includes" = "x/usr/include"; then
15339 ac_path_to_include=""
15340 else
15341 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15342 result=$?
15343 if test $result = 0; then
15344 ac_path_to_include=""
15345 else
15346 ac_path_to_include=" -I$ac_find_includes"
15347 fi
15348 fi
15349
15350 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15351 else
15352 cat > conftest.$ac_ext <<EOF
15353 #line 15354 "configure"
15354 #include "confdefs.h"
15355
15356 #include <Xm/Xm.h>
15357
15358 int main() {
15359
15360 int version;
15361 version = xmUseVersion;
15362
15363 ; return 0; }
15364 EOF
15365 if { (eval echo configure:15366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15366 rm -rf conftest*
15367
15368 echo "$ac_t""found in default search path" 1>&6
15369 COMPILED_X_PROGRAM=1
15370
15371 else
15372 echo "configure: failed program was:" >&5
15373 cat conftest.$ac_ext >&5
15374 rm -rf conftest*
15375
15376 echo "$ac_t""no" 1>&6
15377 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15378
15379
15380 fi
15381 rm -f conftest*
15382 fi
15383
15384 if test "$COMPILED_X_PROGRAM" = 0; then
15385 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15386 echo "configure:15387: checking for Motif/Lesstif library" >&5
15387
15388 ac_find_libraries=
15389 for ac_dir in $SEARCH_LIB /usr/lib;
15390 do
15391 for ac_extension in a so sl dylib; do
15392 if test -f "$ac_dir/libXm.$ac_extension"; then
15393 ac_find_libraries=$ac_dir
15394 break 2
15395 fi
15396 done
15397 done
15398
15399 if test "$ac_find_libraries" != "" ; then
15400 echo "$ac_t""found at $ac_find_libraries" 1>&6
15401
15402
15403 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15404 result=$?
15405 if test $result = 0; then
15406 ac_path_to_link=""
15407 else
15408 ac_path_to_link=" -L$ac_find_libraries"
15409 fi
15410
15411 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15412 else
15413 save_CFLAGS=$CFLAGS
15414 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15415
15416 cat > conftest.$ac_ext <<EOF
15417 #line 15418 "configure"
15418 #include "confdefs.h"
15419
15420 #include <Xm/Xm.h>
15421
15422 int main() {
15423
15424 int version;
15425 version = xmUseVersion;
15426
15427 ; return 0; }
15428 EOF
15429 if { (eval echo configure:15430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15430 rm -rf conftest*
15431
15432 echo "$ac_t""found in default search path" 1>&6
15433 COMPILED_X_PROGRAM=1
15434
15435 else
15436 echo "configure: failed program was:" >&5
15437 cat conftest.$ac_ext >&5
15438 rm -rf conftest*
15439
15440 echo "$ac_t""no" 1>&6
15441 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15442
15443
15444 fi
15445 rm -f conftest*
15446
15447 CFLAGS=$save_CFLAGS
15448 fi
15449 fi
15450
15451 xpm_link=
15452 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15453 echo "configure:15454: checking for Xpm 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/libXpm.$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
15468 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15469 result=$?
15470 if test $result = 0; then
15471 ac_path_to_link=""
15472 else
15473 ac_path_to_link=" -L$ac_find_libraries"
15474 fi
15475
15476 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15477
15478 xpm_link=" -lXpm"
15479 cat >> confdefs.h <<\EOF
15480 #define wxHAVE_LIB_XPM 1
15481 EOF
15482
15483 echo "$ac_t""found at $ac_find_libraries" 1>&6
15484 else
15485 save_CFLAGS=$CFLAGS
15486 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15487
15488 cat > conftest.$ac_ext <<EOF
15489 #line 15490 "configure"
15490 #include "confdefs.h"
15491
15492 #include <X11/xpm.h>
15493
15494 int main() {
15495
15496 int version;
15497 version = XpmLibraryVersion();
15498
15499 ; return 0; }
15500 EOF
15501 if { (eval echo configure:15502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15502 rm -rf conftest*
15503
15504 xpm_link=" -lXpm"
15505 cat >> confdefs.h <<\EOF
15506 #define wxHAVE_LIB_XPM 1
15507 EOF
15508
15509 echo "$ac_t""found in default search path" 1>&6
15510 COMPILED_X_PROGRAM=0
15511
15512 else
15513 echo "configure: failed program was:" >&5
15514 cat conftest.$ac_ext >&5
15515 rm -rf conftest*
15516
15517 echo "$ac_t""no" 1>&6
15518 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15519
15520
15521 fi
15522 rm -f conftest*
15523
15524 CFLAGS=$save_CFLAGS
15525 fi
15526
15527 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15528 echo "configure:15529: checking if we need -lXp and/or -lSM -lICE" >&5
15529 libp_link=""
15530 libsm_ice_link=""
15531 libs_found=0
15532 for libp in "" " -lXp"; do
15533 if test "$libs_found" = "0"; then
15534 for libsm_ice in " -lSM -lICE"; do
15535 if test "$libs_found" = "0"; then
15536 save_LIBS="$LIBS"
15537 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15538 save_CFLAGS=$CFLAGS
15539 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15540
15541 cat > conftest.$ac_ext <<EOF
15542 #line 15543 "configure"
15543 #include "confdefs.h"
15544
15545 #include <Xm/Xm.h>
15546 #include <Xm/List.h>
15547
15548 int main() {
15549
15550 XmString string = NULL;
15551 Widget w = NULL;
15552 int position = 0;
15553 XmListAddItem(w, string, position);
15554
15555 ; return 0; }
15556 EOF
15557 if { (eval echo configure:15558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15558 rm -rf conftest*
15559
15560 libp_link="$libp"
15561 libsm_ice_link="$libsm_ice"
15562 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15563 libs_found=1
15564
15565 else
15566 echo "configure: failed program was:" >&5
15567 cat conftest.$ac_ext >&5
15568 rm -rf conftest*
15569
15570
15571 fi
15572 rm -f conftest*
15573
15574 LIBS="$save_LIBS"
15575 CFLAGS=$save_CFLAGS
15576 fi
15577 done
15578 fi
15579 done
15580
15581 if test "$libs_found" = "0"; then
15582 echo "$ac_t""can't find the right libraries" 1>&6
15583 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15584 fi
15585
15586 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15587 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
15588 TOOLKIT=MOTIF
15589 GUIDIST=MOTIF_DIST
15590 fi
15591
15592 if test "$wxUSE_MAC" = 1; then
15593 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15594
15595 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15596 TOOLKIT=MAC
15597 GUIDIST=MACX_DIST
15598 fi
15599
15600 if test "$wxUSE_PM" = 1; then
15601 TOOLKIT=PM
15602 GUIDIST=GTK_DIST
15603 echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2
15604 wxUSE_PROLOGIO="yes"
15605 wxUSE_RESOURCES="yes"
15606 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15607 wxUSE_THREADS="no"
15608 fi
15609
15610 if test "$TOOLKIT" = "PM" ; then
15611 TOOLKIT_DIR="os2"
15612 else
15613 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15614 fi
15615
15616 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15617
15618 if test "$wxUSE_UNIVERSAL" = "yes"; then
15619 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15620
15621 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15622 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15623
15624 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15625 if test "$wxUSE_X11" = 1; then
15626 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15627 else
15628 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15629 fi
15630 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15631 WIDGET_SET=univ
15632 else
15633 ALL_OBJECTS="\$(GUIOBJS)"
15634 ALL_SOURCES="\$(ALL_SOURCES)"
15635 ALL_HEADERS="\$(ALL_HEADERS)"
15636 fi
15637
15638 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15639
15640 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15641 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15642 fi
15643
15644 if test "$wxUSE_HTML" = "yes"; then
15645 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15646 fi
15647
15648 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15649 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15650 fi
15651 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15652 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15653 fi
15654 if test "$wxUSE_LIBPNG" = "builtin" ; then
15655 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15656 fi
15657
15658 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15659 DISTDIR="wx\$(TOOLKIT)"
15660 else
15661 USE_GUI=0
15662
15663 TOOLKIT_DIR="base"
15664
15665 if test "$USE_WIN32" = 1 ; then
15666 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15667 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15668
15669 TOOLKIT="MSW"
15670 else
15671 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15672 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15673 fi
15674
15675 ALL_SOURCES="\$(ALL_SOURCES)"
15676 ALL_HEADERS="\$(ALL_HEADERS)"
15677
15678 PORT_FILES="\${top_srcdir}/src/files.lst"
15679
15680 GUIDIST="BASE_DIST"
15681 DISTDIR="wxBase"
15682 fi
15683
15684
15685 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15686 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15687 fi
15688
15689 if test "$wxUSE_REGEX" = "builtin" ; then
15690 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15691 fi
15692 if test "$wxUSE_ZLIB" = "builtin" ; then
15693 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15694 fi
15695
15696
15697 if test "$wxUSE_OPENGL" = "yes"; then
15698 if test "$wxUSE_MAC" = 1; then
15699 OPENGL_LIBS="-framework OpenGL -framework AGL"
15700 elif test "$wxUSE_MSW" = 1; then
15701 OPENGL_LIBS="-lopengl32 -lglu32"
15702 else
15703 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15704 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15705 echo "configure:15706: checking for GL/gl.h" >&5
15706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15707 echo $ac_n "(cached) $ac_c" 1>&6
15708 else
15709 cat > conftest.$ac_ext <<EOF
15710 #line 15711 "configure"
15711 #include "confdefs.h"
15712 #include <GL/gl.h>
15713 EOF
15714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15715 { (eval echo configure:15716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15717 if test -z "$ac_err"; then
15718 rm -rf conftest*
15719 eval "ac_cv_header_$ac_safe=yes"
15720 else
15721 echo "$ac_err" >&5
15722 echo "configure: failed program was:" >&5
15723 cat conftest.$ac_ext >&5
15724 rm -rf conftest*
15725 eval "ac_cv_header_$ac_safe=no"
15726 fi
15727 rm -f conftest*
15728 fi
15729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15730 echo "$ac_t""yes" 1>&6
15731
15732 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15733 echo "configure:15734: checking for -lGL" >&5
15734
15735 ac_find_libraries=
15736 for ac_dir in $SEARCH_LIB /usr/lib;
15737 do
15738 for ac_extension in a so sl dylib; do
15739 if test -f "$ac_dir/libGL.$ac_extension"; then
15740 ac_find_libraries=$ac_dir
15741 break 2
15742 fi
15743 done
15744 done
15745
15746 if test "$ac_find_libraries" != "" ; then
15747
15748 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15749 result=$?
15750 if test $result = 0; then
15751 ac_path_to_link=""
15752 else
15753 ac_path_to_link=" -L$ac_find_libraries"
15754 fi
15755
15756 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15757 LDFLAGS_GL="$LDFLAGS"
15758 else
15759 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15760 fi
15761 OPENGL_LIBS="-lGL -lGLU"
15762 echo "$ac_t""yes" 1>&6
15763 else
15764 echo "$ac_t""no" 1>&6
15765 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15766 echo "configure:15767: checking for -lMesaGL" >&5
15767
15768 ac_find_libraries=
15769 for ac_dir in $SEARCH_LIB /usr/lib;
15770 do
15771 for ac_extension in a so sl dylib; do
15772 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15773 ac_find_libraries=$ac_dir
15774 break 2
15775 fi
15776 done
15777 done
15778
15779 if test "$ac_find_libraries" != "" ; then
15780
15781 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15782 result=$?
15783 if test $result = 0; then
15784 ac_path_to_link=""
15785 else
15786 ac_path_to_link=" -L$ac_find_libraries"
15787 fi
15788
15789 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15790 OPENGL_LIBS="-lMesaGL -lMesaGLU"
15791 echo "$ac_t""yes" 1>&6
15792 else
15793 echo "$ac_t""no" 1>&6
15794 fi
15795 fi
15796
15797 else
15798 echo "$ac_t""no" 1>&6
15799 fi
15800
15801
15802 if test "x$OPENGL_LIBS" = "x"; then
15803 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
15804 fi
15805 fi
15806
15807 if test "$wxUSE_OPENGL" = "yes"; then
15808 cat >> confdefs.h <<\EOF
15809 #define wxUSE_OPENGL 1
15810 EOF
15811
15812 cat >> confdefs.h <<\EOF
15813 #define wxUSE_GLCANVAS 1
15814 EOF
15815
15816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15817 fi
15818 fi
15819
15820 if test -z "$TOOLKIT_VPATH" ; then
15821 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15822 fi
15823
15824 if test -n "$TOOLKIT" ; then
15825 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15826 fi
15827
15828 lib_unicode_suffix=
15829 if test "$wxUSE_UNICODE" = "yes"; then
15830 lib_unicode_suffix=u
15831 fi
15832
15833 lib_debug_suffix=
15834 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15835 lib_debug_suffix=d
15836 fi
15837
15838 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15839
15840 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15841 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15842
15843 if test "$cross_compiling" = "yes"; then
15844 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15845 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15846 fi
15847
15848 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15849 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15850 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
15851
15852 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15853 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15854
15855 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15856 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15857 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15858 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15859
15860 case "${host}" in
15861 *-*-cygwin* | *-*-mingw32* )
15862
15863
15864
15865 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15866 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15867 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15868 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15869 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15870 else
15871 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15872 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15873 fi
15874 ;;
15875
15876 *-*-darwin* )
15877
15878 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15879 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15880
15881 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
15882 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15883 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
15884 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15885
15886 if test "$wxUSE_MAC" = 1; then
15887 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
15888 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
15889 fi
15890 ;;
15891 esac
15892
15893 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15894 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15895
15896 WXCONFIG_LIBS="-l${WX_LIBRARY}"
15897 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15898
15899 if test "$wxUSE_OPENGL" = "yes"; then
15900 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15901 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15902 fi
15903
15904
15905
15906 if test "$wxUSE_SHARED" = "yes"; then
15907 case "${host}" in
15908 *-pc-os2_emx | *-pc-os2-emx | \
15909 *-pc-msdosdjgpp )
15910 wxUSE_SHARED=no
15911 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
15912 ;;
15913 esac
15914 fi
15915
15916 if test "$wxUSE_SHARED" = "yes"; then
15917
15918 if test "$wxUSE_OPENGL" = "yes"; then
15919 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15920 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15921 else
15922 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15923 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15924 fi
15925
15926 if test "$GCC" = "yes"; then
15927 PIC_FLAG="-fPIC"
15928 fi
15929
15930
15931
15932 found_versioning=no
15933
15934
15935 if test $found_versioning = no ; then
15936 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
15937 echo "configure:15938: checking if the linker accepts --version-script" >&5
15938 if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
15939 echo $ac_n "(cached) $ac_c" 1>&6
15940 else
15941
15942 echo "VER_1 { *; };" >conftest.sym
15943 echo "int main() { return 0; }" >conftest.cpp
15944
15945 if { ac_try='
15946 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
15947 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:15948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
15948 if test -s conftest.stderr ; then
15949 wx_cv_version_script=no
15950 else
15951 wx_cv_version_script=yes
15952 fi
15953 else
15954 wx_cv_version_script=no
15955 fi
15956 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
15957
15958 fi
15959
15960 echo "$ac_t""$wx_cv_version_script" 1>&6
15961 if test $wx_cv_version_script = yes ; then
15962 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
15963 fi
15964 fi
15965
15966
15967 SHARED_LD="${CXX} -shared -o"
15968
15969 case "${host}" in
15970 *-hp-hpux* )
15971 if test "$GCC" = "yes"; then
15972 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
15973 else
15974 LDFLAGS="$LDFLAGS -L/usr/lib"
15975
15976 SHARED_LD="${CXX} -b -o"
15977 PIC_FLAG="+Z"
15978 fi
15979
15980 if test "$wxUSE_OPENGL" = "yes"; then
15981 WX_ALL_INSTALLED="preinstall_gl"
15982 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15983 else
15984 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15985 fi
15986 ;;
15987
15988 *-*-linux* )
15989 if test "$GCC" != "yes"; then
15990 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
15991 echo "configure:15992: checking for Intel compiler" >&5
15992 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15993 echo $ac_n "(cached) $ac_c" 1>&6
15994 else
15995
15996 cat > conftest.$ac_ext <<EOF
15997 #line 15998 "configure"
15998 #include "confdefs.h"
15999
16000 int main() {
16001
16002 #ifndef __INTEL_COMPILER
16003 #error Not icc
16004 #endif
16005
16006 ; return 0; }
16007 EOF
16008 if { (eval echo configure:16009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16009 rm -rf conftest*
16010 wx_cv_prog_icc=yes
16011 else
16012 echo "configure: failed program was:" >&5
16013 cat conftest.$ac_ext >&5
16014 rm -rf conftest*
16015 wx_cv_prog_icc=no
16016
16017 fi
16018 rm -f conftest*
16019
16020 fi
16021
16022 echo "$ac_t""$wx_cv_prog_icc" 1>&6
16023 if test "$wx_cv_prog_icc" = "yes"; then
16024 PIC_FLAG="-KPIC"
16025 fi
16026 fi
16027
16028 if test "$wxUSE_SONAME" = "yes" ; then
16029 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16030 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16031 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16032 fi
16033 ;;
16034
16035 *-*-solaris2* )
16036 if test "$GCC" = yes ; then
16037 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16038 else
16039 SHARED_LD="${CXX} -G -o"
16040 PIC_FLAG="-KPIC"
16041 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16042 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16043 fi
16044 ;;
16045
16046 *-*-darwin* )
16047 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16048 CFLAGS="$CFLAGS -fno-common"
16049 CXXFLAGS="$CXXFLAGS -fno-common"
16050 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16051 PIC_FLAG="-dynamic -fPIC"
16052 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16053 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16054 ;;
16055
16056 *-*-aix* )
16057 if test "$GCC" != "yes"; then
16058 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16059 set dummy makeC++SharedLib; ac_word=$2
16060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16061 echo "configure:16062: checking for $ac_word" >&5
16062 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16063 echo $ac_n "(cached) $ac_c" 1>&6
16064 else
16065 if test -n "$AIX_CXX_LD"; then
16066 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16067 else
16068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16069 ac_dummy="$PATH"
16070 for ac_dir in $ac_dummy; do
16071 test -z "$ac_dir" && ac_dir=.
16072 if test -f $ac_dir/$ac_word; then
16073 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16074 break
16075 fi
16076 done
16077 IFS="$ac_save_ifs"
16078 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16079 fi
16080 fi
16081 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16082 if test -n "$AIX_CXX_LD"; then
16083 echo "$ac_t""$AIX_CXX_LD" 1>&6
16084 else
16085 echo "$ac_t""no" 1>&6
16086 fi
16087
16088
16089 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16090 fi
16091 ;;
16092
16093 *-*-cygwin* | *-*-mingw32* )
16094 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16095
16096 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16097 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16098
16099 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16100
16101 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16102 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16103
16104 if test "$wxUSE_OPENGL" = "yes"; then
16105 LIBS="${LIBS} ${OPENGL_LIBS}"
16106 fi
16107 ;;
16108
16109 *-*-beos* )
16110 SHARED_LD="${LD} -shared -o"
16111 ;;
16112
16113 *-*-irix* )
16114 if test "$GCC" != "yes"; then
16115 PIC_FLAG="-KPIC"
16116 fi
16117 ;;
16118
16119 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16120 *-*-sunos4* | \
16121 *-*-osf* | \
16122 *-*-dgux5* | \
16123 *-*-sysv5* )
16124 ;;
16125
16126 *)
16127 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16128 esac
16129
16130 if test "x$WX_TARGET_LIBRARY" = "x"; then
16131 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16132 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16133 fi
16134
16135 WX_TARGET_LIBRARY_TYPE="so"
16136 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16137 fi
16138
16139 if test "$wxUSE_SHARED" = "no"; then
16140
16141 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16142 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16143 fi
16144
16145 if test "$wxUSE_MAC" = 1; then
16146 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16147 fi
16148
16149 if test "$wxUSE_OPENGL" = "yes"; then
16150 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16151 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16152 else
16153 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16154 fi
16155
16156 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16157 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16158
16159 WX_TARGET_LIBRARY_TYPE="a"
16160 INSTALL_LIBRARY='$(INSTALL_DATA)'
16161
16162 STATIC_FLAG="yes"
16163 else
16164 STATIC_FLAG="no"
16165 fi
16166
16167 MACRESCOMP="#"
16168 MACSETFILE="#"
16169 MACRESWXCONFIG="#"
16170 if test "$wxUSE_MAC" = 1; then
16171 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16172 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16173 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16174 # Extract the first word of "Rez", so it can be a program name with args.
16175 set dummy Rez; ac_word=$2
16176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16177 echo "configure:16178: checking for $ac_word" >&5
16178 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16179 echo $ac_n "(cached) $ac_c" 1>&6
16180 else
16181 if test -n "$RESCOMP"; then
16182 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16183 else
16184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16185 ac_dummy="$PATH"
16186 for ac_dir in $ac_dummy; do
16187 test -z "$ac_dir" && ac_dir=.
16188 if test -f $ac_dir/$ac_word; then
16189 ac_cv_prog_RESCOMP="Rez"
16190 break
16191 fi
16192 done
16193 IFS="$ac_save_ifs"
16194 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16195 fi
16196 fi
16197 RESCOMP="$ac_cv_prog_RESCOMP"
16198 if test -n "$RESCOMP"; then
16199 echo "$ac_t""$RESCOMP" 1>&6
16200 else
16201 echo "$ac_t""no" 1>&6
16202 fi
16203
16204 # Extract the first word of "DeRez", so it can be a program name with args.
16205 set dummy DeRez; ac_word=$2
16206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16207 echo "configure:16208: checking for $ac_word" >&5
16208 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16209 echo $ac_n "(cached) $ac_c" 1>&6
16210 else
16211 if test -n "$DEREZ"; then
16212 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16213 else
16214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16215 ac_dummy="$PATH"
16216 for ac_dir in $ac_dummy; do
16217 test -z "$ac_dir" && ac_dir=.
16218 if test -f $ac_dir/$ac_word; then
16219 ac_cv_prog_DEREZ="DeRez"
16220 break
16221 fi
16222 done
16223 IFS="$ac_save_ifs"
16224 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16225 fi
16226 fi
16227 DEREZ="$ac_cv_prog_DEREZ"
16228 if test -n "$DEREZ"; then
16229 echo "$ac_t""$DEREZ" 1>&6
16230 else
16231 echo "$ac_t""no" 1>&6
16232 fi
16233
16234 # Extract the first word of "SetFile", so it can be a program name with args.
16235 set dummy SetFile; ac_word=$2
16236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16237 echo "configure:16238: checking for $ac_word" >&5
16238 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16239 echo $ac_n "(cached) $ac_c" 1>&6
16240 else
16241 if test -n "$SETFILE"; then
16242 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16243 else
16244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16245 ac_dummy="$PATH"
16246 for ac_dir in $ac_dummy; do
16247 test -z "$ac_dir" && ac_dir=.
16248 if test -f $ac_dir/$ac_word; then
16249 ac_cv_prog_SETFILE="SetFile"
16250 break
16251 fi
16252 done
16253 IFS="$ac_save_ifs"
16254 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16255 fi
16256 fi
16257 SETFILE="$ac_cv_prog_SETFILE"
16258 if test -n "$SETFILE"; then
16259 echo "$ac_t""$SETFILE" 1>&6
16260 else
16261 echo "$ac_t""no" 1>&6
16262 fi
16263
16264 MACOSX_BUNDLE="bundle"
16265 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16266 MACSETFILE="\$(SETFILE)"
16267 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16268 else
16269 if test "$wxUSE_PM" = 1; then
16270 MACRESCOMP="emxbind -ep"
16271 fi
16272 fi
16273
16274
16275 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16276 echo "configure:16277: checking for ANSI C header files" >&5
16277 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16278 echo $ac_n "(cached) $ac_c" 1>&6
16279 else
16280 cat > conftest.$ac_ext <<EOF
16281 #line 16282 "configure"
16282 #include "confdefs.h"
16283 #include <stdlib.h>
16284 #include <stdarg.h>
16285 #include <string.h>
16286 #include <float.h>
16287 EOF
16288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16289 { (eval echo configure:16290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16291 if test -z "$ac_err"; then
16292 rm -rf conftest*
16293 ac_cv_header_stdc=yes
16294 else
16295 echo "$ac_err" >&5
16296 echo "configure: failed program was:" >&5
16297 cat conftest.$ac_ext >&5
16298 rm -rf conftest*
16299 ac_cv_header_stdc=no
16300 fi
16301 rm -f conftest*
16302
16303 if test $ac_cv_header_stdc = yes; then
16304 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16305 cat > conftest.$ac_ext <<EOF
16306 #line 16307 "configure"
16307 #include "confdefs.h"
16308 #include <string.h>
16309 EOF
16310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16311 egrep "memchr" >/dev/null 2>&1; then
16312 :
16313 else
16314 rm -rf conftest*
16315 ac_cv_header_stdc=no
16316 fi
16317 rm -f conftest*
16318
16319 fi
16320
16321 if test $ac_cv_header_stdc = yes; then
16322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16323 cat > conftest.$ac_ext <<EOF
16324 #line 16325 "configure"
16325 #include "confdefs.h"
16326 #include <stdlib.h>
16327 EOF
16328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16329 egrep "free" >/dev/null 2>&1; then
16330 :
16331 else
16332 rm -rf conftest*
16333 ac_cv_header_stdc=no
16334 fi
16335 rm -f conftest*
16336
16337 fi
16338
16339 if test $ac_cv_header_stdc = yes; then
16340 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16341 if test "$cross_compiling" = yes; then
16342 :
16343 else
16344 cat > conftest.$ac_ext <<EOF
16345 #line 16346 "configure"
16346 #include "confdefs.h"
16347 #include <ctype.h>
16348 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16349 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16351 int main () { int i; for (i = 0; i < 256; i++)
16352 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16353 exit (0); }
16354
16355 EOF
16356 if { (eval echo configure:16357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16357 then
16358 :
16359 else
16360 echo "configure: failed program was:" >&5
16361 cat conftest.$ac_ext >&5
16362 rm -fr conftest*
16363 ac_cv_header_stdc=no
16364 fi
16365 rm -fr conftest*
16366 fi
16367
16368 fi
16369 fi
16370
16371 echo "$ac_t""$ac_cv_header_stdc" 1>&6
16372 if test $ac_cv_header_stdc = yes; then
16373 cat >> confdefs.h <<\EOF
16374 #define STDC_HEADERS 1
16375 EOF
16376
16377 fi
16378
16379 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16380 echo "configure:16381: checking for mode_t" >&5
16381 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16382 echo $ac_n "(cached) $ac_c" 1>&6
16383 else
16384 cat > conftest.$ac_ext <<EOF
16385 #line 16386 "configure"
16386 #include "confdefs.h"
16387 #include <sys/types.h>
16388 #if STDC_HEADERS
16389 #include <stdlib.h>
16390 #include <stddef.h>
16391 #endif
16392 EOF
16393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16394 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16395 rm -rf conftest*
16396 ac_cv_type_mode_t=yes
16397 else
16398 rm -rf conftest*
16399 ac_cv_type_mode_t=no
16400 fi
16401 rm -f conftest*
16402
16403 fi
16404 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16405 if test $ac_cv_type_mode_t = no; then
16406 cat >> confdefs.h <<\EOF
16407 #define mode_t int
16408 EOF
16409
16410 fi
16411
16412 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16413 echo "configure:16414: checking for off_t" >&5
16414 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16415 echo $ac_n "(cached) $ac_c" 1>&6
16416 else
16417 cat > conftest.$ac_ext <<EOF
16418 #line 16419 "configure"
16419 #include "confdefs.h"
16420 #include <sys/types.h>
16421 #if STDC_HEADERS
16422 #include <stdlib.h>
16423 #include <stddef.h>
16424 #endif
16425 EOF
16426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16427 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16428 rm -rf conftest*
16429 ac_cv_type_off_t=yes
16430 else
16431 rm -rf conftest*
16432 ac_cv_type_off_t=no
16433 fi
16434 rm -f conftest*
16435
16436 fi
16437 echo "$ac_t""$ac_cv_type_off_t" 1>&6
16438 if test $ac_cv_type_off_t = no; then
16439 cat >> confdefs.h <<\EOF
16440 #define off_t long
16441 EOF
16442
16443 fi
16444
16445 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16446 echo "configure:16447: checking for pid_t" >&5
16447 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16448 echo $ac_n "(cached) $ac_c" 1>&6
16449 else
16450 cat > conftest.$ac_ext <<EOF
16451 #line 16452 "configure"
16452 #include "confdefs.h"
16453 #include <sys/types.h>
16454 #if STDC_HEADERS
16455 #include <stdlib.h>
16456 #include <stddef.h>
16457 #endif
16458 EOF
16459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16460 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16461 rm -rf conftest*
16462 ac_cv_type_pid_t=yes
16463 else
16464 rm -rf conftest*
16465 ac_cv_type_pid_t=no
16466 fi
16467 rm -f conftest*
16468
16469 fi
16470 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16471 if test $ac_cv_type_pid_t = no; then
16472 cat >> confdefs.h <<\EOF
16473 #define pid_t int
16474 EOF
16475
16476 fi
16477
16478 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16479 echo "configure:16480: checking for size_t" >&5
16480 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16481 echo $ac_n "(cached) $ac_c" 1>&6
16482 else
16483 cat > conftest.$ac_ext <<EOF
16484 #line 16485 "configure"
16485 #include "confdefs.h"
16486 #include <sys/types.h>
16487 #if STDC_HEADERS
16488 #include <stdlib.h>
16489 #include <stddef.h>
16490 #endif
16491 EOF
16492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16493 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16494 rm -rf conftest*
16495 ac_cv_type_size_t=yes
16496 else
16497 rm -rf conftest*
16498 ac_cv_type_size_t=no
16499 fi
16500 rm -f conftest*
16501
16502 fi
16503 echo "$ac_t""$ac_cv_type_size_t" 1>&6
16504 if test $ac_cv_type_size_t = no; then
16505 cat >> confdefs.h <<\EOF
16506 #define size_t unsigned
16507 EOF
16508
16509 fi
16510
16511 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16512 echo "configure:16513: checking for uid_t in sys/types.h" >&5
16513 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16514 echo $ac_n "(cached) $ac_c" 1>&6
16515 else
16516 cat > conftest.$ac_ext <<EOF
16517 #line 16518 "configure"
16518 #include "confdefs.h"
16519 #include <sys/types.h>
16520 EOF
16521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16522 egrep "uid_t" >/dev/null 2>&1; then
16523 rm -rf conftest*
16524 ac_cv_type_uid_t=yes
16525 else
16526 rm -rf conftest*
16527 ac_cv_type_uid_t=no
16528 fi
16529 rm -f conftest*
16530
16531 fi
16532
16533 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16534 if test $ac_cv_type_uid_t = no; then
16535 cat >> confdefs.h <<\EOF
16536 #define uid_t int
16537 EOF
16538
16539 cat >> confdefs.h <<\EOF
16540 #define gid_t int
16541 EOF
16542
16543 fi
16544
16545
16546
16547 ac_ext=C
16548 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16549 ac_cpp='$CXXCPP $CPPFLAGS'
16550 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16551 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16552 cross_compiling=$ac_cv_prog_cxx_cross
16553
16554 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16555 echo "configure:16556: checking if size_t is unsigned int" >&5
16556 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16557 echo $ac_n "(cached) $ac_c" 1>&6
16558 else
16559 cat > conftest.$ac_ext <<EOF
16560 #line 16561 "configure"
16561 #include "confdefs.h"
16562 #include <stddef.h>
16563 int main() {
16564
16565 return 0; }
16566
16567 struct Foo { void foo(size_t); void foo(unsigned int); };
16568
16569 int bar() {
16570
16571 ; return 0; }
16572 EOF
16573 if { (eval echo configure:16574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16574 rm -rf conftest*
16575 wx_cv_size_t_is_uint=no
16576 else
16577 echo "configure: failed program was:" >&5
16578 cat conftest.$ac_ext >&5
16579 rm -rf conftest*
16580 wx_cv_size_t_is_uint=yes
16581
16582 fi
16583 rm -f conftest*
16584
16585 fi
16586
16587 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16588
16589 if test "$wx_cv_size_t_is_uint" = "yes"; then
16590 cat >> confdefs.h <<\EOF
16591 #define wxSIZE_T_IS_UINT 1
16592 EOF
16593
16594 else
16595 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16596 echo "configure:16597: checking if size_t is unsigned long" >&5
16597 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16598 echo $ac_n "(cached) $ac_c" 1>&6
16599 else
16600 cat > conftest.$ac_ext <<EOF
16601 #line 16602 "configure"
16602 #include "confdefs.h"
16603 #include <stddef.h>
16604 int main() {
16605
16606 return 0; }
16607
16608 struct Foo { void foo(size_t); void foo(unsigned long); };
16609
16610 int bar() {
16611
16612 ; return 0; }
16613 EOF
16614 if { (eval echo configure:16615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16615 rm -rf conftest*
16616 wx_cv_size_t_is_ulong=no
16617 else
16618 echo "configure: failed program was:" >&5
16619 cat conftest.$ac_ext >&5
16620 rm -rf conftest*
16621 wx_cv_size_t_is_ulong=yes
16622
16623 fi
16624 rm -f conftest*
16625
16626 fi
16627
16628 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
16629
16630 if test "$wx_cv_size_t_is_ulong" = "yes"; then
16631 cat >> confdefs.h <<\EOF
16632 #define wxSIZE_T_IS_ULONG 1
16633 EOF
16634
16635 fi
16636 fi
16637
16638 ac_ext=c
16639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16640 ac_cpp='$CPP $CPPFLAGS'
16641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16642 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16643 cross_compiling=$ac_cv_prog_cc_cross
16644
16645
16646
16647 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
16648 echo "configure:16649: checking for pw_gecos in struct passwd" >&5
16649 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16650 echo $ac_n "(cached) $ac_c" 1>&6
16651 else
16652
16653 cat > conftest.$ac_ext <<EOF
16654 #line 16655 "configure"
16655 #include "confdefs.h"
16656 #include <pwd.h>
16657 int main() {
16658
16659 char *p;
16660 struct passwd *pw;
16661 p = pw->pw_gecos;
16662
16663 ; return 0; }
16664 EOF
16665 if { (eval echo configure:16666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16666 rm -rf conftest*
16667
16668 wx_cv_struct_pw_gecos=yes
16669
16670 else
16671 echo "configure: failed program was:" >&5
16672 cat conftest.$ac_ext >&5
16673 rm -rf conftest*
16674
16675 wx_cv_struct_pw_gecos=no
16676
16677
16678 fi
16679 rm -f conftest*
16680
16681
16682 fi
16683
16684 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
16685
16686 if test "$wx_cv_struct_pw_gecos" = "yes"; then
16687 cat >> confdefs.h <<\EOF
16688 #define HAVE_PW_GECOS 1
16689 EOF
16690
16691 fi
16692
16693
16694 if test "$wx_cv_sizeof_wchar_t" != "0"; then
16695 cat >> confdefs.h <<\EOF
16696 #define wxUSE_WCHAR_T 1
16697 EOF
16698
16699
16700 WCSLEN_FOUND=0
16701 WCHAR_LINK=
16702 for ac_func in wcslen
16703 do
16704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16705 echo "configure:16706: checking for $ac_func" >&5
16706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16707 echo $ac_n "(cached) $ac_c" 1>&6
16708 else
16709 cat > conftest.$ac_ext <<EOF
16710 #line 16711 "configure"
16711 #include "confdefs.h"
16712 /* System header to define __stub macros and hopefully few prototypes,
16713 which can conflict with char $ac_func(); below. */
16714 #include <assert.h>
16715 /* Override any gcc2 internal prototype to avoid an error. */
16716 /* We use char because int might match the return type of a gcc2
16717 builtin and then its argument prototype would still apply. */
16718 char $ac_func();
16719
16720 int main() {
16721
16722 /* The GNU C library defines this for functions which it implements
16723 to always fail with ENOSYS. Some functions are actually named
16724 something starting with __ and the normal name is an alias. */
16725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16726 choke me
16727 #else
16728 $ac_func();
16729 #endif
16730
16731 ; return 0; }
16732 EOF
16733 if { (eval echo configure:16734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16734 rm -rf conftest*
16735 eval "ac_cv_func_$ac_func=yes"
16736 else
16737 echo "configure: failed program was:" >&5
16738 cat conftest.$ac_ext >&5
16739 rm -rf conftest*
16740 eval "ac_cv_func_$ac_func=no"
16741 fi
16742 rm -f conftest*
16743 fi
16744
16745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16746 echo "$ac_t""yes" 1>&6
16747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16748 cat >> confdefs.h <<EOF
16749 #define $ac_tr_func 1
16750 EOF
16751 WCSLEN_FOUND=1
16752 else
16753 echo "$ac_t""no" 1>&6
16754 fi
16755 done
16756
16757
16758 if test "$WCSLEN_FOUND" = 0; then
16759 if test "$TOOLKIT" = "MSW"; then
16760 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
16761 echo "configure:16762: checking for wcslen in -lmsvcrt" >&5
16762 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16764 echo $ac_n "(cached) $ac_c" 1>&6
16765 else
16766 ac_save_LIBS="$LIBS"
16767 LIBS="-lmsvcrt $LIBS"
16768 cat > conftest.$ac_ext <<EOF
16769 #line 16770 "configure"
16770 #include "confdefs.h"
16771 /* Override any gcc2 internal prototype to avoid an error. */
16772 /* We use char because int might match the return type of a gcc2
16773 builtin and then its argument prototype would still apply. */
16774 char wcslen();
16775
16776 int main() {
16777 wcslen()
16778 ; return 0; }
16779 EOF
16780 if { (eval echo configure:16781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16781 rm -rf conftest*
16782 eval "ac_cv_lib_$ac_lib_var=yes"
16783 else
16784 echo "configure: failed program was:" >&5
16785 cat conftest.$ac_ext >&5
16786 rm -rf conftest*
16787 eval "ac_cv_lib_$ac_lib_var=no"
16788 fi
16789 rm -f conftest*
16790 LIBS="$ac_save_LIBS"
16791
16792 fi
16793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16794 echo "$ac_t""yes" 1>&6
16795 WCHAR_OK=1
16796 else
16797 echo "$ac_t""no" 1>&6
16798 fi
16799
16800 else
16801 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
16802 echo "configure:16803: checking for wcslen in -lw" >&5
16803 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16805 echo $ac_n "(cached) $ac_c" 1>&6
16806 else
16807 ac_save_LIBS="$LIBS"
16808 LIBS="-lw $LIBS"
16809 cat > conftest.$ac_ext <<EOF
16810 #line 16811 "configure"
16811 #include "confdefs.h"
16812 /* Override any gcc2 internal prototype to avoid an error. */
16813 /* We use char because int might match the return type of a gcc2
16814 builtin and then its argument prototype would still apply. */
16815 char wcslen();
16816
16817 int main() {
16818 wcslen()
16819 ; return 0; }
16820 EOF
16821 if { (eval echo configure:16822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16822 rm -rf conftest*
16823 eval "ac_cv_lib_$ac_lib_var=yes"
16824 else
16825 echo "configure: failed program was:" >&5
16826 cat conftest.$ac_ext >&5
16827 rm -rf conftest*
16828 eval "ac_cv_lib_$ac_lib_var=no"
16829 fi
16830 rm -f conftest*
16831 LIBS="$ac_save_LIBS"
16832
16833 fi
16834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16835 echo "$ac_t""yes" 1>&6
16836
16837 WCHAR_LINK=" -lw"
16838 WCSLEN_FOUND=1
16839
16840 else
16841 echo "$ac_t""no" 1>&6
16842 fi
16843
16844 fi
16845 fi
16846
16847 if test "$WCSLEN_FOUND" = 1; then
16848 cat >> confdefs.h <<\EOF
16849 #define HAVE_WCSLEN 1
16850 EOF
16851
16852 fi
16853
16854 for ac_func in wcsrtombs
16855 do
16856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16857 echo "configure:16858: checking for $ac_func" >&5
16858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16859 echo $ac_n "(cached) $ac_c" 1>&6
16860 else
16861 cat > conftest.$ac_ext <<EOF
16862 #line 16863 "configure"
16863 #include "confdefs.h"
16864 /* System header to define __stub macros and hopefully few prototypes,
16865 which can conflict with char $ac_func(); below. */
16866 #include <assert.h>
16867 /* Override any gcc2 internal prototype to avoid an error. */
16868 /* We use char because int might match the return type of a gcc2
16869 builtin and then its argument prototype would still apply. */
16870 char $ac_func();
16871
16872 int main() {
16873
16874 /* The GNU C library defines this for functions which it implements
16875 to always fail with ENOSYS. Some functions are actually named
16876 something starting with __ and the normal name is an alias. */
16877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16878 choke me
16879 #else
16880 $ac_func();
16881 #endif
16882
16883 ; return 0; }
16884 EOF
16885 if { (eval echo configure:16886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16886 rm -rf conftest*
16887 eval "ac_cv_func_$ac_func=yes"
16888 else
16889 echo "configure: failed program was:" >&5
16890 cat conftest.$ac_ext >&5
16891 rm -rf conftest*
16892 eval "ac_cv_func_$ac_func=no"
16893 fi
16894 rm -f conftest*
16895 fi
16896
16897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16898 echo "$ac_t""yes" 1>&6
16899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16900 cat >> confdefs.h <<EOF
16901 #define $ac_tr_func 1
16902 EOF
16903
16904 else
16905 echo "$ac_t""no" 1>&6
16906 fi
16907 done
16908
16909 else
16910 echo "configure: warning: Wide character support is unavailable" 1>&2
16911 fi
16912
16913
16914 ac_ext=C
16915 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16916 ac_cpp='$CXXCPP $CPPFLAGS'
16917 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16918 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16919 cross_compiling=$ac_cv_prog_cxx_cross
16920
16921
16922 for ac_func in vsnprintf
16923 do
16924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16925 echo "configure:16926: checking for $ac_func" >&5
16926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16927 echo $ac_n "(cached) $ac_c" 1>&6
16928 else
16929 cat > conftest.$ac_ext <<EOF
16930 #line 16931 "configure"
16931 #include "confdefs.h"
16932 /* System header to define __stub macros and hopefully few prototypes,
16933 which can conflict with char $ac_func(); below. */
16934 #include <assert.h>
16935 /* Override any gcc2 internal prototype to avoid an error. */
16936 #ifdef __cplusplus
16937 extern "C"
16938 #endif
16939 /* We use char because int might match the return type of a gcc2
16940 builtin and then its argument prototype would still apply. */
16941 char $ac_func();
16942
16943 int main() {
16944
16945 /* The GNU C library defines this for functions which it implements
16946 to always fail with ENOSYS. Some functions are actually named
16947 something starting with __ and the normal name is an alias. */
16948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16949 choke me
16950 #else
16951 $ac_func();
16952 #endif
16953
16954 ; return 0; }
16955 EOF
16956 if { (eval echo configure:16957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16957 rm -rf conftest*
16958 eval "ac_cv_func_$ac_func=yes"
16959 else
16960 echo "configure: failed program was:" >&5
16961 cat conftest.$ac_ext >&5
16962 rm -rf conftest*
16963 eval "ac_cv_func_$ac_func=no"
16964 fi
16965 rm -f conftest*
16966 fi
16967
16968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16969 echo "$ac_t""yes" 1>&6
16970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16971 cat >> confdefs.h <<EOF
16972 #define $ac_tr_func 1
16973 EOF
16974
16975 else
16976 echo "$ac_t""no" 1>&6
16977 fi
16978 done
16979
16980
16981 if test "$ac_cv_func_vsnprintf" = "yes"; then
16982 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
16983 echo "configure:16984: checking for vsnprintf declaration" >&5
16984 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
16985 echo $ac_n "(cached) $ac_c" 1>&6
16986 else
16987
16988 cat > conftest.$ac_ext <<EOF
16989 #line 16990 "configure"
16990 #include "confdefs.h"
16991
16992 #include <stdio.h>
16993 #include <stdarg.h>
16994
16995 int main() {
16996
16997 char *buf;
16998 va_list ap;
16999 vsnprintf(buf, 10u, "%s", ap);
17000
17001 ; return 0; }
17002 EOF
17003 if { (eval echo configure:17004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17004 rm -rf conftest*
17005 wx_cv_func_vsnprintf_decl=yes
17006 else
17007 echo "configure: failed program was:" >&5
17008 cat conftest.$ac_ext >&5
17009 rm -rf conftest*
17010 wx_cv_func_vsnprintf_decl=no
17011
17012 fi
17013 rm -f conftest*
17014
17015
17016 fi
17017
17018 echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17019
17020 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17021 cat >> confdefs.h <<\EOF
17022 #define HAVE_VSNPRINTF_DECL 1
17023 EOF
17024
17025 fi
17026 fi
17027
17028 if test "$wxUSE_UNICODE" = yes; then
17029 for ac_func in fputwc wprintf vswprintf
17030 do
17031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17032 echo "configure:17033: checking for $ac_func" >&5
17033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17034 echo $ac_n "(cached) $ac_c" 1>&6
17035 else
17036 cat > conftest.$ac_ext <<EOF
17037 #line 17038 "configure"
17038 #include "confdefs.h"
17039 /* System header to define __stub macros and hopefully few prototypes,
17040 which can conflict with char $ac_func(); below. */
17041 #include <assert.h>
17042 /* Override any gcc2 internal prototype to avoid an error. */
17043 #ifdef __cplusplus
17044 extern "C"
17045 #endif
17046 /* We use char because int might match the return type of a gcc2
17047 builtin and then its argument prototype would still apply. */
17048 char $ac_func();
17049
17050 int main() {
17051
17052 /* The GNU C library defines this for functions which it implements
17053 to always fail with ENOSYS. Some functions are actually named
17054 something starting with __ and the normal name is an alias. */
17055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17056 choke me
17057 #else
17058 $ac_func();
17059 #endif
17060
17061 ; return 0; }
17062 EOF
17063 if { (eval echo configure:17064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17064 rm -rf conftest*
17065 eval "ac_cv_func_$ac_func=yes"
17066 else
17067 echo "configure: failed program was:" >&5
17068 cat conftest.$ac_ext >&5
17069 rm -rf conftest*
17070 eval "ac_cv_func_$ac_func=no"
17071 fi
17072 rm -f conftest*
17073 fi
17074
17075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17076 echo "$ac_t""yes" 1>&6
17077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17078 cat >> confdefs.h <<EOF
17079 #define $ac_tr_func 1
17080 EOF
17081
17082 else
17083 echo "$ac_t""no" 1>&6
17084 fi
17085 done
17086
17087
17088 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17089 echo "configure:17090: checking for _vsnwprintf" >&5
17090 cat > conftest.$ac_ext <<EOF
17091 #line 17092 "configure"
17092 #include "confdefs.h"
17093 #include <wchar.h>
17094 int main() {
17095 &_vsnwprintf;
17096 ; return 0; }
17097 EOF
17098 if { (eval echo configure:17099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17099 rm -rf conftest*
17100 echo "$ac_t""yes" 1>&6
17101 cat >> confdefs.h <<\EOF
17102 #define HAVE__VSNWPRINTF 1
17103 EOF
17104
17105 else
17106 echo "configure: failed program was:" >&5
17107 cat conftest.$ac_ext >&5
17108 rm -rf conftest*
17109 echo "$ac_t""no" 1>&6
17110 fi
17111 rm -f conftest*;
17112 fi
17113
17114 ac_ext=c
17115 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17116 ac_cpp='$CPP $CPPFLAGS'
17117 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17118 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17119 cross_compiling=$ac_cv_prog_cc_cross
17120
17121
17122
17123
17124 if test "$TOOLKIT" != "MSW"; then
17125
17126
17127
17128 ac_ext=C
17129 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17130 ac_cpp='$CXXCPP $CPPFLAGS'
17131 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17132 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17133 cross_compiling=$ac_cv_prog_cxx_cross
17134
17135
17136
17137 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17138 if test "${with_libiconv_prefix+set}" = set; then
17139 withval="$with_libiconv_prefix"
17140
17141 for dir in `echo "$withval" | tr : ' '`; do
17142 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17143 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17144 done
17145
17146 fi
17147
17148
17149 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17150 echo "configure:17151: checking for iconv" >&5
17151 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17152 echo $ac_n "(cached) $ac_c" 1>&6
17153 else
17154
17155 am_cv_func_iconv="no, consider installing GNU libiconv"
17156 am_cv_lib_iconv=no
17157 cat > conftest.$ac_ext <<EOF
17158 #line 17159 "configure"
17159 #include "confdefs.h"
17160 #include <stdlib.h>
17161 #include <iconv.h>
17162 int main() {
17163 iconv_t cd = iconv_open("","");
17164 iconv(cd,NULL,NULL,NULL,NULL);
17165 iconv_close(cd);
17166 ; return 0; }
17167 EOF
17168 if { (eval echo configure:17169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17169 rm -rf conftest*
17170 am_cv_func_iconv=yes
17171 else
17172 echo "configure: failed program was:" >&5
17173 cat conftest.$ac_ext >&5
17174 fi
17175 rm -f conftest*
17176 if test "$am_cv_func_iconv" != yes; then
17177 am_save_LIBS="$LIBS"
17178 LIBS="$LIBS -liconv"
17179 cat > conftest.$ac_ext <<EOF
17180 #line 17181 "configure"
17181 #include "confdefs.h"
17182 #include <stdlib.h>
17183 #include <iconv.h>
17184 int main() {
17185 iconv_t cd = iconv_open("","");
17186 iconv(cd,NULL,NULL,NULL,NULL);
17187 iconv_close(cd);
17188 ; return 0; }
17189 EOF
17190 if { (eval echo configure:17191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17191 rm -rf conftest*
17192 am_cv_lib_iconv=yes
17193 am_cv_func_iconv=yes
17194 else
17195 echo "configure: failed program was:" >&5
17196 cat conftest.$ac_ext >&5
17197 fi
17198 rm -f conftest*
17199 LIBS="$am_save_LIBS"
17200 fi
17201
17202 fi
17203
17204 echo "$ac_t""$am_cv_func_iconv" 1>&6
17205 if test "$am_cv_func_iconv" = yes; then
17206 cat >> confdefs.h <<\EOF
17207 #define HAVE_ICONV 1
17208 EOF
17209
17210 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17211 echo "configure:17212: checking if iconv needs const" >&5
17212 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17213 echo $ac_n "(cached) $ac_c" 1>&6
17214 else
17215 cat > conftest.$ac_ext <<EOF
17216 #line 17217 "configure"
17217 #include "confdefs.h"
17218
17219 #include <stdlib.h>
17220 #include <iconv.h>
17221 extern
17222 #ifdef __cplusplus
17223 "C"
17224 #endif
17225 #if defined(__STDC__) || defined(__cplusplus)
17226 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17227 #else
17228 size_t iconv();
17229 #endif
17230
17231 int main() {
17232
17233 ; return 0; }
17234 EOF
17235 if { (eval echo configure:17236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17236 rm -rf conftest*
17237 wx_cv_func_iconv_const="no"
17238 else
17239 echo "configure: failed program was:" >&5
17240 cat conftest.$ac_ext >&5
17241 rm -rf conftest*
17242 wx_cv_func_iconv_const="yes"
17243
17244 fi
17245 rm -f conftest*
17246
17247 fi
17248
17249 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17250
17251 iconv_const=
17252 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17253 iconv_const="const"
17254 fi
17255
17256 cat >> confdefs.h <<EOF
17257 #define ICONV_CONST $iconv_const
17258 EOF
17259
17260 fi
17261 LIBICONV=
17262 if test "$am_cv_lib_iconv" = yes; then
17263 LIBICONV="-liconv"
17264 fi
17265
17266
17267 LIBS="$LIBICONV $LIBS"
17268 ac_ext=c
17269 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17270 ac_cpp='$CPP $CPPFLAGS'
17271 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17272 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17273 cross_compiling=$ac_cv_prog_cc_cross
17274
17275
17276 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17277 for ac_func in sigaction
17278 do
17279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17280 echo "configure:17281: checking for $ac_func" >&5
17281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17282 echo $ac_n "(cached) $ac_c" 1>&6
17283 else
17284 cat > conftest.$ac_ext <<EOF
17285 #line 17286 "configure"
17286 #include "confdefs.h"
17287 /* System header to define __stub macros and hopefully few prototypes,
17288 which can conflict with char $ac_func(); below. */
17289 #include <assert.h>
17290 /* Override any gcc2 internal prototype to avoid an error. */
17291 /* We use char because int might match the return type of a gcc2
17292 builtin and then its argument prototype would still apply. */
17293 char $ac_func();
17294
17295 int main() {
17296
17297 /* The GNU C library defines this for functions which it implements
17298 to always fail with ENOSYS. Some functions are actually named
17299 something starting with __ and the normal name is an alias. */
17300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17301 choke me
17302 #else
17303 $ac_func();
17304 #endif
17305
17306 ; return 0; }
17307 EOF
17308 if { (eval echo configure:17309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17309 rm -rf conftest*
17310 eval "ac_cv_func_$ac_func=yes"
17311 else
17312 echo "configure: failed program was:" >&5
17313 cat conftest.$ac_ext >&5
17314 rm -rf conftest*
17315 eval "ac_cv_func_$ac_func=no"
17316 fi
17317 rm -f conftest*
17318 fi
17319
17320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17321 echo "$ac_t""yes" 1>&6
17322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17323 cat >> confdefs.h <<EOF
17324 #define $ac_tr_func 1
17325 EOF
17326
17327 else
17328 echo "$ac_t""no" 1>&6
17329 fi
17330 done
17331
17332
17333 if test "$ac_cv_func_sigaction" = "no"; then
17334 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17335 wxUSE_ON_FATAL_EXCEPTION=no
17336 fi
17337
17338 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17339
17340 ac_ext=C
17341 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17342 ac_cpp='$CXXCPP $CPPFLAGS'
17343 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17344 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17345 cross_compiling=$ac_cv_prog_cxx_cross
17346
17347
17348 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17349 echo "configure:17350: checking for sa_handler type" >&5
17350 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17351 echo $ac_n "(cached) $ac_c" 1>&6
17352 else
17353
17354 cat > conftest.$ac_ext <<EOF
17355 #line 17356 "configure"
17356 #include "confdefs.h"
17357 #include <signal.h>
17358 int main() {
17359
17360 extern void testSigHandler(int);
17361
17362 struct sigaction sa;
17363 sa.sa_handler = testSigHandler;
17364
17365 ; return 0; }
17366 EOF
17367 if { (eval echo configure:17368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17368 rm -rf conftest*
17369
17370 wx_cv_type_sa_handler=int
17371
17372 else
17373 echo "configure: failed program was:" >&5
17374 cat conftest.$ac_ext >&5
17375 rm -rf conftest*
17376
17377 wx_cv_type_sa_handler=void
17378
17379 fi
17380 rm -f conftest*
17381
17382 fi
17383
17384 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17385
17386 ac_ext=c
17387 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17388 ac_cpp='$CPP $CPPFLAGS'
17389 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17390 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17391 cross_compiling=$ac_cv_prog_cc_cross
17392
17393
17394 cat >> confdefs.h <<EOF
17395 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17396 EOF
17397
17398 fi
17399 fi
17400
17401 for ac_func in mkstemp mktemp
17402 do
17403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17404 echo "configure:17405: checking for $ac_func" >&5
17405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17406 echo $ac_n "(cached) $ac_c" 1>&6
17407 else
17408 cat > conftest.$ac_ext <<EOF
17409 #line 17410 "configure"
17410 #include "confdefs.h"
17411 /* System header to define __stub macros and hopefully few prototypes,
17412 which can conflict with char $ac_func(); below. */
17413 #include <assert.h>
17414 /* Override any gcc2 internal prototype to avoid an error. */
17415 /* We use char because int might match the return type of a gcc2
17416 builtin and then its argument prototype would still apply. */
17417 char $ac_func();
17418
17419 int main() {
17420
17421 /* The GNU C library defines this for functions which it implements
17422 to always fail with ENOSYS. Some functions are actually named
17423 something starting with __ and the normal name is an alias. */
17424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17425 choke me
17426 #else
17427 $ac_func();
17428 #endif
17429
17430 ; return 0; }
17431 EOF
17432 if { (eval echo configure:17433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17433 rm -rf conftest*
17434 eval "ac_cv_func_$ac_func=yes"
17435 else
17436 echo "configure: failed program was:" >&5
17437 cat conftest.$ac_ext >&5
17438 rm -rf conftest*
17439 eval "ac_cv_func_$ac_func=no"
17440 fi
17441 rm -f conftest*
17442 fi
17443
17444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17445 echo "$ac_t""yes" 1>&6
17446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17447 cat >> confdefs.h <<EOF
17448 #define $ac_tr_func 1
17449 EOF
17450 break
17451 else
17452 echo "$ac_t""no" 1>&6
17453 fi
17454 done
17455
17456
17457 echo $ac_n "checking for statfs""... $ac_c" 1>&6
17458 echo "configure:17459: checking for statfs" >&5
17459 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17460 echo $ac_n "(cached) $ac_c" 1>&6
17461 else
17462 cat > conftest.$ac_ext <<EOF
17463 #line 17464 "configure"
17464 #include "confdefs.h"
17465
17466 #if defined(__BSD__)
17467 #include <sys/param.h>
17468 #include <sys/mount.h>
17469 #else
17470 #include <sys/vfs.h>
17471 #endif
17472
17473 int main() {
17474
17475 long l;
17476 struct statfs fs;
17477 statfs("/", &fs);
17478 l = fs.f_bsize;
17479 l += fs.f_blocks;
17480 l += fs.f_bavail;
17481
17482 ; return 0; }
17483 EOF
17484 if { (eval echo configure:17485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17485 rm -rf conftest*
17486
17487 wx_cv_func_statfs=yes
17488
17489 else
17490 echo "configure: failed program was:" >&5
17491 cat conftest.$ac_ext >&5
17492 rm -rf conftest*
17493
17494 wx_cv_func_statfs=no
17495
17496
17497 fi
17498 rm -f conftest*
17499
17500 fi
17501
17502 echo "$ac_t""$wx_cv_func_statfs" 1>&6
17503
17504 if test "$wx_cv_func_statfs" = "yes"; then
17505 wx_cv_type_statvfs_t="struct statfs"
17506 cat >> confdefs.h <<\EOF
17507 #define HAVE_STATFS 1
17508 EOF
17509
17510 else
17511 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17512 echo "configure:17513: checking for statvfs" >&5
17513 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17514 echo $ac_n "(cached) $ac_c" 1>&6
17515 else
17516 cat > conftest.$ac_ext <<EOF
17517 #line 17518 "configure"
17518 #include "confdefs.h"
17519
17520 #include <stddef.h>
17521 #include <sys/statvfs.h>
17522
17523 int main() {
17524
17525 statvfs("/", NULL);
17526
17527 ; return 0; }
17528 EOF
17529 if { (eval echo configure:17530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17530 rm -rf conftest*
17531 wx_cv_func_statvfs=yes
17532 else
17533 echo "configure: failed program was:" >&5
17534 cat conftest.$ac_ext >&5
17535 rm -rf conftest*
17536 wx_cv_func_statvfs=no
17537
17538 fi
17539 rm -f conftest*
17540
17541 fi
17542
17543 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17544
17545 if test "$wx_cv_func_statvfs" = "yes"; then
17546
17547 ac_ext=C
17548 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17549 ac_cpp='$CXXCPP $CPPFLAGS'
17550 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17551 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17552 cross_compiling=$ac_cv_prog_cxx_cross
17553
17554
17555 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17556 echo "configure:17557: checking for statvfs argument type" >&5
17557 if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17558 echo $ac_n "(cached) $ac_c" 1>&6
17559 else
17560 cat > conftest.$ac_ext <<EOF
17561 #line 17562 "configure"
17562 #include "confdefs.h"
17563
17564 #include <sys/statvfs.h>
17565
17566 int main() {
17567
17568 long l;
17569 statvfs_t fs;
17570 statvfs("/", &fs);
17571 l = fs.f_bsize;
17572 l += fs.f_blocks;
17573 l += fs.f_bavail;
17574
17575 ; return 0; }
17576 EOF
17577 if { (eval echo configure:17578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17578 rm -rf conftest*
17579 wx_cv_type_statvfs_t=statvfs_t
17580 else
17581 echo "configure: failed program was:" >&5
17582 cat conftest.$ac_ext >&5
17583 rm -rf conftest*
17584
17585 cat > conftest.$ac_ext <<EOF
17586 #line 17587 "configure"
17587 #include "confdefs.h"
17588
17589 #include <sys/statvfs.h>
17590
17591 int main() {
17592
17593 long l;
17594 struct statvfs fs;
17595 statvfs("/", &fs);
17596 l = fs.f_bsize;
17597 l += fs.f_blocks;
17598 l += fs.f_bavail;
17599
17600 ; return 0; }
17601 EOF
17602 if { (eval echo configure:17603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17603 rm -rf conftest*
17604 wx_cv_type_statvfs_t="struct statvfs"
17605 else
17606 echo "configure: failed program was:" >&5
17607 cat conftest.$ac_ext >&5
17608 rm -rf conftest*
17609 wx_cv_type_statvfs_t="unknown"
17610
17611 fi
17612 rm -f conftest*
17613
17614
17615 fi
17616 rm -f conftest*
17617
17618 fi
17619
17620 echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17621
17622 ac_ext=c
17623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17624 ac_cpp='$CPP $CPPFLAGS'
17625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17627 cross_compiling=$ac_cv_prog_cc_cross
17628
17629
17630 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17631 cat >> confdefs.h <<\EOF
17632 #define HAVE_STATVFS 1
17633 EOF
17634
17635 fi
17636 else
17637 wx_cv_type_statvfs_t="unknown"
17638 fi
17639 fi
17640
17641 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17642 cat >> confdefs.h <<EOF
17643 #define WX_STATFS_T $wx_cv_type_statvfs_t
17644 EOF
17645
17646 else
17647 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17648 fi
17649
17650 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17651 for ac_func in fcntl flock
17652 do
17653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17654 echo "configure:17655: checking for $ac_func" >&5
17655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17656 echo $ac_n "(cached) $ac_c" 1>&6
17657 else
17658 cat > conftest.$ac_ext <<EOF
17659 #line 17660 "configure"
17660 #include "confdefs.h"
17661 /* System header to define __stub macros and hopefully few prototypes,
17662 which can conflict with char $ac_func(); below. */
17663 #include <assert.h>
17664 /* Override any gcc2 internal prototype to avoid an error. */
17665 /* We use char because int might match the return type of a gcc2
17666 builtin and then its argument prototype would still apply. */
17667 char $ac_func();
17668
17669 int main() {
17670
17671 /* The GNU C library defines this for functions which it implements
17672 to always fail with ENOSYS. Some functions are actually named
17673 something starting with __ and the normal name is an alias. */
17674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17675 choke me
17676 #else
17677 $ac_func();
17678 #endif
17679
17680 ; return 0; }
17681 EOF
17682 if { (eval echo configure:17683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17683 rm -rf conftest*
17684 eval "ac_cv_func_$ac_func=yes"
17685 else
17686 echo "configure: failed program was:" >&5
17687 cat conftest.$ac_ext >&5
17688 rm -rf conftest*
17689 eval "ac_cv_func_$ac_func=no"
17690 fi
17691 rm -f conftest*
17692 fi
17693
17694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17695 echo "$ac_t""yes" 1>&6
17696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17697 cat >> confdefs.h <<EOF
17698 #define $ac_tr_func 1
17699 EOF
17700 break
17701 else
17702 echo "$ac_t""no" 1>&6
17703 fi
17704 done
17705
17706
17707 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
17708 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
17709 wxUSE_SNGLINST_CHECKER=no
17710 fi
17711 fi
17712
17713 for ac_func in timegm
17714 do
17715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17716 echo "configure:17717: checking for $ac_func" >&5
17717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17718 echo $ac_n "(cached) $ac_c" 1>&6
17719 else
17720 cat > conftest.$ac_ext <<EOF
17721 #line 17722 "configure"
17722 #include "confdefs.h"
17723 /* System header to define __stub macros and hopefully few prototypes,
17724 which can conflict with char $ac_func(); below. */
17725 #include <assert.h>
17726 /* Override any gcc2 internal prototype to avoid an error. */
17727 /* We use char because int might match the return type of a gcc2
17728 builtin and then its argument prototype would still apply. */
17729 char $ac_func();
17730
17731 int main() {
17732
17733 /* The GNU C library defines this for functions which it implements
17734 to always fail with ENOSYS. Some functions are actually named
17735 something starting with __ and the normal name is an alias. */
17736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17737 choke me
17738 #else
17739 $ac_func();
17740 #endif
17741
17742 ; return 0; }
17743 EOF
17744 if { (eval echo configure:17745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17745 rm -rf conftest*
17746 eval "ac_cv_func_$ac_func=yes"
17747 else
17748 echo "configure: failed program was:" >&5
17749 cat conftest.$ac_ext >&5
17750 rm -rf conftest*
17751 eval "ac_cv_func_$ac_func=no"
17752 fi
17753 rm -f conftest*
17754 fi
17755
17756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17757 echo "$ac_t""yes" 1>&6
17758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17759 cat >> confdefs.h <<EOF
17760 #define $ac_tr_func 1
17761 EOF
17762
17763 else
17764 echo "$ac_t""no" 1>&6
17765 fi
17766 done
17767
17768
17769 for ac_func in putenv setenv
17770 do
17771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17772 echo "configure:17773: checking for $ac_func" >&5
17773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17774 echo $ac_n "(cached) $ac_c" 1>&6
17775 else
17776 cat > conftest.$ac_ext <<EOF
17777 #line 17778 "configure"
17778 #include "confdefs.h"
17779 /* System header to define __stub macros and hopefully few prototypes,
17780 which can conflict with char $ac_func(); below. */
17781 #include <assert.h>
17782 /* Override any gcc2 internal prototype to avoid an error. */
17783 /* We use char because int might match the return type of a gcc2
17784 builtin and then its argument prototype would still apply. */
17785 char $ac_func();
17786
17787 int main() {
17788
17789 /* The GNU C library defines this for functions which it implements
17790 to always fail with ENOSYS. Some functions are actually named
17791 something starting with __ and the normal name is an alias. */
17792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17793 choke me
17794 #else
17795 $ac_func();
17796 #endif
17797
17798 ; return 0; }
17799 EOF
17800 if { (eval echo configure:17801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17801 rm -rf conftest*
17802 eval "ac_cv_func_$ac_func=yes"
17803 else
17804 echo "configure: failed program was:" >&5
17805 cat conftest.$ac_ext >&5
17806 rm -rf conftest*
17807 eval "ac_cv_func_$ac_func=no"
17808 fi
17809 rm -f conftest*
17810 fi
17811
17812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17813 echo "$ac_t""yes" 1>&6
17814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17815 cat >> confdefs.h <<EOF
17816 #define $ac_tr_func 1
17817 EOF
17818 break
17819 else
17820 echo "$ac_t""no" 1>&6
17821 fi
17822 done
17823
17824
17825 HAVE_SOME_SLEEP_FUNC=0
17826 if test "$USE_BEOS" = 1; then
17827 cat >> confdefs.h <<\EOF
17828 #define HAVE_SLEEP 1
17829 EOF
17830
17831 HAVE_SOME_SLEEP_FUNC=1
17832 fi
17833
17834 if test "$USE_DARWIN" = 1; then
17835 cat >> confdefs.h <<\EOF
17836 #define HAVE_USLEEP 1
17837 EOF
17838
17839 HAVE_SOME_SLEEP_FUNC=1
17840 fi
17841
17842 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17843 POSIX4_LINK=
17844 for ac_func in nanosleep
17845 do
17846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17847 echo "configure:17848: checking for $ac_func" >&5
17848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17849 echo $ac_n "(cached) $ac_c" 1>&6
17850 else
17851 cat > conftest.$ac_ext <<EOF
17852 #line 17853 "configure"
17853 #include "confdefs.h"
17854 /* System header to define __stub macros and hopefully few prototypes,
17855 which can conflict with char $ac_func(); below. */
17856 #include <assert.h>
17857 /* Override any gcc2 internal prototype to avoid an error. */
17858 /* We use char because int might match the return type of a gcc2
17859 builtin and then its argument prototype would still apply. */
17860 char $ac_func();
17861
17862 int main() {
17863
17864 /* The GNU C library defines this for functions which it implements
17865 to always fail with ENOSYS. Some functions are actually named
17866 something starting with __ and the normal name is an alias. */
17867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17868 choke me
17869 #else
17870 $ac_func();
17871 #endif
17872
17873 ; return 0; }
17874 EOF
17875 if { (eval echo configure:17876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17876 rm -rf conftest*
17877 eval "ac_cv_func_$ac_func=yes"
17878 else
17879 echo "configure: failed program was:" >&5
17880 cat conftest.$ac_ext >&5
17881 rm -rf conftest*
17882 eval "ac_cv_func_$ac_func=no"
17883 fi
17884 rm -f conftest*
17885 fi
17886
17887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17888 echo "$ac_t""yes" 1>&6
17889 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17890 cat >> confdefs.h <<EOF
17891 #define $ac_tr_func 1
17892 EOF
17893 cat >> confdefs.h <<\EOF
17894 #define HAVE_NANOSLEEP 1
17895 EOF
17896
17897 else
17898 echo "$ac_t""no" 1>&6
17899 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
17900 echo "configure:17901: checking for nanosleep in -lposix4" >&5
17901 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17903 echo $ac_n "(cached) $ac_c" 1>&6
17904 else
17905 ac_save_LIBS="$LIBS"
17906 LIBS="-lposix4 $LIBS"
17907 cat > conftest.$ac_ext <<EOF
17908 #line 17909 "configure"
17909 #include "confdefs.h"
17910 /* Override any gcc2 internal prototype to avoid an error. */
17911 /* We use char because int might match the return type of a gcc2
17912 builtin and then its argument prototype would still apply. */
17913 char nanosleep();
17914
17915 int main() {
17916 nanosleep()
17917 ; return 0; }
17918 EOF
17919 if { (eval echo configure:17920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17920 rm -rf conftest*
17921 eval "ac_cv_lib_$ac_lib_var=yes"
17922 else
17923 echo "configure: failed program was:" >&5
17924 cat conftest.$ac_ext >&5
17925 rm -rf conftest*
17926 eval "ac_cv_lib_$ac_lib_var=no"
17927 fi
17928 rm -f conftest*
17929 LIBS="$ac_save_LIBS"
17930
17931 fi
17932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17933 echo "$ac_t""yes" 1>&6
17934
17935 cat >> confdefs.h <<\EOF
17936 #define HAVE_NANOSLEEP 1
17937 EOF
17938
17939 POSIX4_LINK=" -lposix4"
17940
17941 else
17942 echo "$ac_t""no" 1>&6
17943
17944 for ac_func in usleep
17945 do
17946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17947 echo "configure:17948: checking for $ac_func" >&5
17948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17949 echo $ac_n "(cached) $ac_c" 1>&6
17950 else
17951 cat > conftest.$ac_ext <<EOF
17952 #line 17953 "configure"
17953 #include "confdefs.h"
17954 /* System header to define __stub macros and hopefully few prototypes,
17955 which can conflict with char $ac_func(); below. */
17956 #include <assert.h>
17957 /* Override any gcc2 internal prototype to avoid an error. */
17958 /* We use char because int might match the return type of a gcc2
17959 builtin and then its argument prototype would still apply. */
17960 char $ac_func();
17961
17962 int main() {
17963
17964 /* The GNU C library defines this for functions which it implements
17965 to always fail with ENOSYS. Some functions are actually named
17966 something starting with __ and the normal name is an alias. */
17967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17968 choke me
17969 #else
17970 $ac_func();
17971 #endif
17972
17973 ; return 0; }
17974 EOF
17975 if { (eval echo configure:17976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17976 rm -rf conftest*
17977 eval "ac_cv_func_$ac_func=yes"
17978 else
17979 echo "configure: failed program was:" >&5
17980 cat conftest.$ac_ext >&5
17981 rm -rf conftest*
17982 eval "ac_cv_func_$ac_func=no"
17983 fi
17984 rm -f conftest*
17985 fi
17986
17987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17988 echo "$ac_t""yes" 1>&6
17989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17990 cat >> confdefs.h <<EOF
17991 #define $ac_tr_func 1
17992 EOF
17993 cat >> confdefs.h <<\EOF
17994 #define HAVE_USLEEP 1
17995 EOF
17996
17997 else
17998 echo "$ac_t""no" 1>&6
17999 echo "configure: warning: wxSleep() function will not work" 1>&2
18000
18001 fi
18002 done
18003
18004
18005
18006 fi
18007
18008
18009
18010 fi
18011 done
18012
18013 fi
18014
18015 for ac_func in uname gethostname
18016 do
18017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18018 echo "configure:18019: checking for $ac_func" >&5
18019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18020 echo $ac_n "(cached) $ac_c" 1>&6
18021 else
18022 cat > conftest.$ac_ext <<EOF
18023 #line 18024 "configure"
18024 #include "confdefs.h"
18025 /* System header to define __stub macros and hopefully few prototypes,
18026 which can conflict with char $ac_func(); below. */
18027 #include <assert.h>
18028 /* Override any gcc2 internal prototype to avoid an error. */
18029 /* We use char because int might match the return type of a gcc2
18030 builtin and then its argument prototype would still apply. */
18031 char $ac_func();
18032
18033 int main() {
18034
18035 /* The GNU C library defines this for functions which it implements
18036 to always fail with ENOSYS. Some functions are actually named
18037 something starting with __ and the normal name is an alias. */
18038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18039 choke me
18040 #else
18041 $ac_func();
18042 #endif
18043
18044 ; return 0; }
18045 EOF
18046 if { (eval echo configure:18047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18047 rm -rf conftest*
18048 eval "ac_cv_func_$ac_func=yes"
18049 else
18050 echo "configure: failed program was:" >&5
18051 cat conftest.$ac_ext >&5
18052 rm -rf conftest*
18053 eval "ac_cv_func_$ac_func=no"
18054 fi
18055 rm -f conftest*
18056 fi
18057
18058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18059 echo "$ac_t""yes" 1>&6
18060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18061 cat >> confdefs.h <<EOF
18062 #define $ac_tr_func 1
18063 EOF
18064 break
18065 else
18066 echo "$ac_t""no" 1>&6
18067 fi
18068 done
18069
18070
18071
18072 ac_ext=C
18073 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18074 ac_cpp='$CXXCPP $CPPFLAGS'
18075 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18076 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18077 cross_compiling=$ac_cv_prog_cxx_cross
18078
18079
18080 for ac_func in strtok_r
18081 do
18082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18083 echo "configure:18084: checking for $ac_func" >&5
18084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18085 echo $ac_n "(cached) $ac_c" 1>&6
18086 else
18087 cat > conftest.$ac_ext <<EOF
18088 #line 18089 "configure"
18089 #include "confdefs.h"
18090 /* System header to define __stub macros and hopefully few prototypes,
18091 which can conflict with char $ac_func(); below. */
18092 #include <assert.h>
18093 /* Override any gcc2 internal prototype to avoid an error. */
18094 #ifdef __cplusplus
18095 extern "C"
18096 #endif
18097 /* We use char because int might match the return type of a gcc2
18098 builtin and then its argument prototype would still apply. */
18099 char $ac_func();
18100
18101 int main() {
18102
18103 /* The GNU C library defines this for functions which it implements
18104 to always fail with ENOSYS. Some functions are actually named
18105 something starting with __ and the normal name is an alias. */
18106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18107 choke me
18108 #else
18109 $ac_func();
18110 #endif
18111
18112 ; return 0; }
18113 EOF
18114 if { (eval echo configure:18115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18115 rm -rf conftest*
18116 eval "ac_cv_func_$ac_func=yes"
18117 else
18118 echo "configure: failed program was:" >&5
18119 cat conftest.$ac_ext >&5
18120 rm -rf conftest*
18121 eval "ac_cv_func_$ac_func=no"
18122 fi
18123 rm -f conftest*
18124 fi
18125
18126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18127 echo "$ac_t""yes" 1>&6
18128 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18129 cat >> confdefs.h <<EOF
18130 #define $ac_tr_func 1
18131 EOF
18132
18133 else
18134 echo "$ac_t""no" 1>&6
18135 fi
18136 done
18137
18138
18139 ac_ext=c
18140 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18141 ac_cpp='$CPP $CPPFLAGS'
18142 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18143 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18144 cross_compiling=$ac_cv_prog_cc_cross
18145
18146
18147 INET_LINK=
18148 for ac_func in inet_addr
18149 do
18150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18151 echo "configure:18152: checking for $ac_func" >&5
18152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18153 echo $ac_n "(cached) $ac_c" 1>&6
18154 else
18155 cat > conftest.$ac_ext <<EOF
18156 #line 18157 "configure"
18157 #include "confdefs.h"
18158 /* System header to define __stub macros and hopefully few prototypes,
18159 which can conflict with char $ac_func(); below. */
18160 #include <assert.h>
18161 /* Override any gcc2 internal prototype to avoid an error. */
18162 /* We use char because int might match the return type of a gcc2
18163 builtin and then its argument prototype would still apply. */
18164 char $ac_func();
18165
18166 int main() {
18167
18168 /* The GNU C library defines this for functions which it implements
18169 to always fail with ENOSYS. Some functions are actually named
18170 something starting with __ and the normal name is an alias. */
18171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18172 choke me
18173 #else
18174 $ac_func();
18175 #endif
18176
18177 ; return 0; }
18178 EOF
18179 if { (eval echo configure:18180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18180 rm -rf conftest*
18181 eval "ac_cv_func_$ac_func=yes"
18182 else
18183 echo "configure: failed program was:" >&5
18184 cat conftest.$ac_ext >&5
18185 rm -rf conftest*
18186 eval "ac_cv_func_$ac_func=no"
18187 fi
18188 rm -f conftest*
18189 fi
18190
18191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18192 echo "$ac_t""yes" 1>&6
18193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18194 cat >> confdefs.h <<EOF
18195 #define $ac_tr_func 1
18196 EOF
18197 cat >> confdefs.h <<\EOF
18198 #define HAVE_INET_ADDR 1
18199 EOF
18200
18201 else
18202 echo "$ac_t""no" 1>&6
18203 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18204 echo "configure:18205: checking for inet_addr in -lnsl" >&5
18205 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18207 echo $ac_n "(cached) $ac_c" 1>&6
18208 else
18209 ac_save_LIBS="$LIBS"
18210 LIBS="-lnsl $LIBS"
18211 cat > conftest.$ac_ext <<EOF
18212 #line 18213 "configure"
18213 #include "confdefs.h"
18214 /* Override any gcc2 internal prototype to avoid an error. */
18215 /* We use char because int might match the return type of a gcc2
18216 builtin and then its argument prototype would still apply. */
18217 char inet_addr();
18218
18219 int main() {
18220 inet_addr()
18221 ; return 0; }
18222 EOF
18223 if { (eval echo configure:18224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18224 rm -rf conftest*
18225 eval "ac_cv_lib_$ac_lib_var=yes"
18226 else
18227 echo "configure: failed program was:" >&5
18228 cat conftest.$ac_ext >&5
18229 rm -rf conftest*
18230 eval "ac_cv_lib_$ac_lib_var=no"
18231 fi
18232 rm -f conftest*
18233 LIBS="$ac_save_LIBS"
18234
18235 fi
18236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18237 echo "$ac_t""yes" 1>&6
18238 INET_LINK="nsl"
18239 else
18240 echo "$ac_t""no" 1>&6
18241 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18242 echo "configure:18243: checking for inet_addr in -lresolv" >&5
18243 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18245 echo $ac_n "(cached) $ac_c" 1>&6
18246 else
18247 ac_save_LIBS="$LIBS"
18248 LIBS="-lresolv $LIBS"
18249 cat > conftest.$ac_ext <<EOF
18250 #line 18251 "configure"
18251 #include "confdefs.h"
18252 /* Override any gcc2 internal prototype to avoid an error. */
18253 /* We use char because int might match the return type of a gcc2
18254 builtin and then its argument prototype would still apply. */
18255 char inet_addr();
18256
18257 int main() {
18258 inet_addr()
18259 ; return 0; }
18260 EOF
18261 if { (eval echo configure:18262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18262 rm -rf conftest*
18263 eval "ac_cv_lib_$ac_lib_var=yes"
18264 else
18265 echo "configure: failed program was:" >&5
18266 cat conftest.$ac_ext >&5
18267 rm -rf conftest*
18268 eval "ac_cv_lib_$ac_lib_var=no"
18269 fi
18270 rm -f conftest*
18271 LIBS="$ac_save_LIBS"
18272
18273 fi
18274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18275 echo "$ac_t""yes" 1>&6
18276 INET_LINK="resolv"
18277 else
18278 echo "$ac_t""no" 1>&6
18279 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18280 echo "configure:18281: checking for inet_addr in -lsocket" >&5
18281 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18283 echo $ac_n "(cached) $ac_c" 1>&6
18284 else
18285 ac_save_LIBS="$LIBS"
18286 LIBS="-lsocket $LIBS"
18287 cat > conftest.$ac_ext <<EOF
18288 #line 18289 "configure"
18289 #include "confdefs.h"
18290 /* Override any gcc2 internal prototype to avoid an error. */
18291 /* We use char because int might match the return type of a gcc2
18292 builtin and then its argument prototype would still apply. */
18293 char inet_addr();
18294
18295 int main() {
18296 inet_addr()
18297 ; return 0; }
18298 EOF
18299 if { (eval echo configure:18300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18300 rm -rf conftest*
18301 eval "ac_cv_lib_$ac_lib_var=yes"
18302 else
18303 echo "configure: failed program was:" >&5
18304 cat conftest.$ac_ext >&5
18305 rm -rf conftest*
18306 eval "ac_cv_lib_$ac_lib_var=no"
18307 fi
18308 rm -f conftest*
18309 LIBS="$ac_save_LIBS"
18310
18311 fi
18312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18313 echo "$ac_t""yes" 1>&6
18314 INET_LINK="socket"
18315
18316 else
18317 echo "$ac_t""no" 1>&6
18318 fi
18319
18320
18321 fi
18322
18323
18324 fi
18325
18326
18327
18328 fi
18329 done
18330
18331
18332 for ac_func in inet_aton
18333 do
18334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18335 echo "configure:18336: checking for $ac_func" >&5
18336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18337 echo $ac_n "(cached) $ac_c" 1>&6
18338 else
18339 cat > conftest.$ac_ext <<EOF
18340 #line 18341 "configure"
18341 #include "confdefs.h"
18342 /* System header to define __stub macros and hopefully few prototypes,
18343 which can conflict with char $ac_func(); below. */
18344 #include <assert.h>
18345 /* Override any gcc2 internal prototype to avoid an error. */
18346 /* We use char because int might match the return type of a gcc2
18347 builtin and then its argument prototype would still apply. */
18348 char $ac_func();
18349
18350 int main() {
18351
18352 /* The GNU C library defines this for functions which it implements
18353 to always fail with ENOSYS. Some functions are actually named
18354 something starting with __ and the normal name is an alias. */
18355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18356 choke me
18357 #else
18358 $ac_func();
18359 #endif
18360
18361 ; return 0; }
18362 EOF
18363 if { (eval echo configure:18364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18364 rm -rf conftest*
18365 eval "ac_cv_func_$ac_func=yes"
18366 else
18367 echo "configure: failed program was:" >&5
18368 cat conftest.$ac_ext >&5
18369 rm -rf conftest*
18370 eval "ac_cv_func_$ac_func=no"
18371 fi
18372 rm -f conftest*
18373 fi
18374
18375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18376 echo "$ac_t""yes" 1>&6
18377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18378 cat >> confdefs.h <<EOF
18379 #define $ac_tr_func 1
18380 EOF
18381 cat >> confdefs.h <<\EOF
18382 #define HAVE_INET_ATON 1
18383 EOF
18384
18385 else
18386 echo "$ac_t""no" 1>&6
18387 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18388 echo "configure:18389: checking for inet_aton in -l$INET_LINK" >&5
18389 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18391 echo $ac_n "(cached) $ac_c" 1>&6
18392 else
18393 ac_save_LIBS="$LIBS"
18394 LIBS="-l$INET_LINK $LIBS"
18395 cat > conftest.$ac_ext <<EOF
18396 #line 18397 "configure"
18397 #include "confdefs.h"
18398 /* Override any gcc2 internal prototype to avoid an error. */
18399 /* We use char because int might match the return type of a gcc2
18400 builtin and then its argument prototype would still apply. */
18401 char inet_aton();
18402
18403 int main() {
18404 inet_aton()
18405 ; return 0; }
18406 EOF
18407 if { (eval echo configure:18408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18408 rm -rf conftest*
18409 eval "ac_cv_lib_$ac_lib_var=yes"
18410 else
18411 echo "configure: failed program was:" >&5
18412 cat conftest.$ac_ext >&5
18413 rm -rf conftest*
18414 eval "ac_cv_lib_$ac_lib_var=no"
18415 fi
18416 rm -f conftest*
18417 LIBS="$ac_save_LIBS"
18418
18419 fi
18420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18421 echo "$ac_t""yes" 1>&6
18422 cat >> confdefs.h <<\EOF
18423 #define HAVE_INET_ATON 1
18424 EOF
18425
18426 else
18427 echo "$ac_t""no" 1>&6
18428 fi
18429
18430
18431 fi
18432 done
18433
18434
18435 if test "x$INET_LINK" != "x"; then
18436 cat >> confdefs.h <<\EOF
18437 #define HAVE_INET_ADDR 1
18438 EOF
18439
18440 INET_LINK=" -l$INET_LINK"
18441 fi
18442
18443 fi
18444
18445
18446 cat > confcache <<\EOF
18447 # This file is a shell script that caches the results of configure
18448 # tests run on this system so they can be shared between configure
18449 # scripts and configure runs. It is not useful on other systems.
18450 # If it contains results you don't want to keep, you may remove or edit it.
18451 #
18452 # By default, configure uses ./config.cache as the cache file,
18453 # creating it if it does not exist already. You can give configure
18454 # the --cache-file=FILE option to use a different cache file; that is
18455 # what configure does when it calls configure scripts in
18456 # subdirectories, so they share the cache.
18457 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18458 # config.status only pays attention to the cache file if you give it the
18459 # --recheck option to rerun configure.
18460 #
18461 EOF
18462 # The following way of writing the cache mishandles newlines in values,
18463 # but we know of no workaround that is simple, portable, and efficient.
18464 # So, don't put newlines in cache variables' values.
18465 # Ultrix sh set writes to stderr and can't be redirected directly,
18466 # and sets the high bit in the cache file unless we assign to the vars.
18467 (set) 2>&1 |
18468 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18469 *ac_space=\ *)
18470 # `set' does not quote correctly, so add quotes (double-quote substitution
18471 # turns \\\\ into \\, and sed turns \\ into \).
18472 sed -n \
18473 -e "s/'/'\\\\''/g" \
18474 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18475 ;;
18476 *)
18477 # `set' quotes correctly as required by POSIX, so do not add quotes.
18478 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18479 ;;
18480 esac >> confcache
18481 if cmp -s $cache_file confcache; then
18482 :
18483 else
18484 if test -w $cache_file; then
18485 echo "updating cache $cache_file"
18486 cat confcache > $cache_file
18487 else
18488 echo "not updating unwritable cache $cache_file"
18489 fi
18490 fi
18491 rm -f confcache
18492
18493
18494
18495 CPP_MT_FLAG=
18496 if test "$TOOLKIT" != "MSW"; then
18497
18498
18499 THREADS_LINK=
18500 THREADS_CFLAGS=
18501
18502 if test "$wxUSE_THREADS" = "yes" ; then
18503 if test "$USE_BEOS" = 1; then
18504 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18505 wxUSE_THREADS="no"
18506 fi
18507 fi
18508
18509 if test "$wxUSE_THREADS" = "yes" ; then
18510
18511
18512 THREAD_OPTS="-pthread"
18513 case "${host}" in
18514 *-*-solaris2* | *-*-sunos4* )
18515 if test "x$GCC" = "xyes"; then
18516 THREAD_OPTS="-pthreads $THREAD_OPTS"
18517 else
18518 THREAD_OPTS="-mt $THREAD_OPTS"
18519 fi
18520 ;;
18521 *-*-freebsd*)
18522 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18523 ;;
18524 *-*-darwin* | *-*-cygwin* )
18525 THREAD_OPTS=""
18526 ;;
18527 *-*-aix*)
18528 THREAD_OPTS="pthreads"
18529 ;;
18530 esac
18531
18532 THREAD_OPTS="$THREAD_OPTS pthread none"
18533
18534 THREADS_OK=no
18535 for flag in $THREAD_OPTS; do
18536 case $flag in
18537 none)
18538 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18539 echo "configure:18540: checking whether pthreads work without any flags" >&5
18540 ;;
18541
18542 -*)
18543 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18544 echo "configure:18545: checking whether pthreads work with $flag" >&5
18545 THREADS_CFLAGS="$flag"
18546 ;;
18547
18548 *)
18549 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18550 echo "configure:18551: checking for the pthreads library -l$flag" >&5
18551 THREADS_LINK="-l$flag"
18552 ;;
18553 esac
18554
18555 save_LIBS="$LIBS"
18556 save_CFLAGS="$CFLAGS"
18557 LIBS="$THREADS_LINK $LIBS"
18558 CFLAGS="$THREADS_CFLAGS $CFLAGS"
18559
18560 cat > conftest.$ac_ext <<EOF
18561 #line 18562 "configure"
18562 #include "confdefs.h"
18563 #include <pthread.h>
18564 int main() {
18565 pthread_create(0,0,0,0);
18566 ; return 0; }
18567 EOF
18568 if { (eval echo configure:18569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18569 rm -rf conftest*
18570 THREADS_OK=yes
18571 else
18572 echo "configure: failed program was:" >&5
18573 cat conftest.$ac_ext >&5
18574 fi
18575 rm -f conftest*
18576
18577 LIBS="$save_LIBS"
18578 CFLAGS="$save_CFLAGS"
18579
18580 echo "$ac_t""$THREADS_OK" 1>&6
18581 if test "x$THREADS_OK" = "xyes"; then
18582 break;
18583 fi
18584
18585 THREADS_LINK=""
18586 THREADS_CFLAGS=""
18587 done
18588
18589 if test "x$THREADS_OK" != "xyes"; then
18590 wxUSE_THREADS=no
18591 echo "configure: warning: No thread support on this system... disabled" 1>&2
18592 else
18593 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18594 LIBS="$THREADS_LINK $LIBS"
18595
18596 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
18597 echo "configure:18598: checking if more special flags are required for pthreads" >&5
18598 flag=no
18599 case "${host}" in
18600 *-aix*)
18601 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18602 flag="-D_THREAD_SAFE"
18603 ;;
18604 *-freebsd*)
18605 flag="-D_THREAD_SAFE"
18606 ;;
18607 *-hp-hpux* )
18608 flag="-D_REENTRANT"
18609 ;;
18610 *solaris* | alpha*-osf*)
18611 flag="-D_REENTRANT"
18612 ;;
18613 esac
18614 echo "$ac_t""${flag}" 1>&6
18615 if test "x$flag" != xno; then
18616 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
18617 fi
18618
18619 if test "x$THREADS_CFLAGS" != "x"; then
18620 CFLAGS="$CFLAGS $THREADS_CFLAGS"
18621 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18622 fi
18623 fi
18624 fi
18625
18626 if test "$wxUSE_THREADS" = "yes" ; then
18627 for ac_func in thr_setconcurrency
18628 do
18629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18630 echo "configure:18631: checking for $ac_func" >&5
18631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18632 echo $ac_n "(cached) $ac_c" 1>&6
18633 else
18634 cat > conftest.$ac_ext <<EOF
18635 #line 18636 "configure"
18636 #include "confdefs.h"
18637 /* System header to define __stub macros and hopefully few prototypes,
18638 which can conflict with char $ac_func(); below. */
18639 #include <assert.h>
18640 /* Override any gcc2 internal prototype to avoid an error. */
18641 /* We use char because int might match the return type of a gcc2
18642 builtin and then its argument prototype would still apply. */
18643 char $ac_func();
18644
18645 int main() {
18646
18647 /* The GNU C library defines this for functions which it implements
18648 to always fail with ENOSYS. Some functions are actually named
18649 something starting with __ and the normal name is an alias. */
18650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18651 choke me
18652 #else
18653 $ac_func();
18654 #endif
18655
18656 ; return 0; }
18657 EOF
18658 if { (eval echo configure:18659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18659 rm -rf conftest*
18660 eval "ac_cv_func_$ac_func=yes"
18661 else
18662 echo "configure: failed program was:" >&5
18663 cat conftest.$ac_ext >&5
18664 rm -rf conftest*
18665 eval "ac_cv_func_$ac_func=no"
18666 fi
18667 rm -f conftest*
18668 fi
18669
18670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18671 echo "$ac_t""yes" 1>&6
18672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18673 cat >> confdefs.h <<EOF
18674 #define $ac_tr_func 1
18675 EOF
18676
18677 else
18678 echo "$ac_t""no" 1>&6
18679 fi
18680 done
18681
18682
18683 for ac_hdr in sched.h
18684 do
18685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18687 echo "configure:18688: checking for $ac_hdr" >&5
18688 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18689 echo $ac_n "(cached) $ac_c" 1>&6
18690 else
18691 cat > conftest.$ac_ext <<EOF
18692 #line 18693 "configure"
18693 #include "confdefs.h"
18694 #include <$ac_hdr>
18695 EOF
18696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18697 { (eval echo configure:18698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18699 if test -z "$ac_err"; then
18700 rm -rf conftest*
18701 eval "ac_cv_header_$ac_safe=yes"
18702 else
18703 echo "$ac_err" >&5
18704 echo "configure: failed program was:" >&5
18705 cat conftest.$ac_ext >&5
18706 rm -rf conftest*
18707 eval "ac_cv_header_$ac_safe=no"
18708 fi
18709 rm -f conftest*
18710 fi
18711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18712 echo "$ac_t""yes" 1>&6
18713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18714 cat >> confdefs.h <<EOF
18715 #define $ac_tr_hdr 1
18716 EOF
18717
18718 else
18719 echo "$ac_t""no" 1>&6
18720 fi
18721 done
18722
18723 if test "$ac_cv_header_sched_h" = "yes"; then
18724 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
18725 echo "configure:18726: checking for sched_yield" >&5
18726 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18727 echo $ac_n "(cached) $ac_c" 1>&6
18728 else
18729 cat > conftest.$ac_ext <<EOF
18730 #line 18731 "configure"
18731 #include "confdefs.h"
18732 /* System header to define __stub macros and hopefully few prototypes,
18733 which can conflict with char sched_yield(); below. */
18734 #include <assert.h>
18735 /* Override any gcc2 internal prototype to avoid an error. */
18736 /* We use char because int might match the return type of a gcc2
18737 builtin and then its argument prototype would still apply. */
18738 char sched_yield();
18739
18740 int main() {
18741
18742 /* The GNU C library defines this for functions which it implements
18743 to always fail with ENOSYS. Some functions are actually named
18744 something starting with __ and the normal name is an alias. */
18745 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18746 choke me
18747 #else
18748 sched_yield();
18749 #endif
18750
18751 ; return 0; }
18752 EOF
18753 if { (eval echo configure:18754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18754 rm -rf conftest*
18755 eval "ac_cv_func_sched_yield=yes"
18756 else
18757 echo "configure: failed program was:" >&5
18758 cat conftest.$ac_ext >&5
18759 rm -rf conftest*
18760 eval "ac_cv_func_sched_yield=no"
18761 fi
18762 rm -f conftest*
18763 fi
18764
18765 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18766 echo "$ac_t""yes" 1>&6
18767 cat >> confdefs.h <<\EOF
18768 #define HAVE_SCHED_YIELD 1
18769 EOF
18770
18771 else
18772 echo "$ac_t""no" 1>&6
18773
18774 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
18775 echo "configure:18776: checking for sched_yield in -lposix4" >&5
18776 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18777 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18778 echo $ac_n "(cached) $ac_c" 1>&6
18779 else
18780 ac_save_LIBS="$LIBS"
18781 LIBS="-lposix4 $LIBS"
18782 cat > conftest.$ac_ext <<EOF
18783 #line 18784 "configure"
18784 #include "confdefs.h"
18785 /* Override any gcc2 internal prototype to avoid an error. */
18786 /* We use char because int might match the return type of a gcc2
18787 builtin and then its argument prototype would still apply. */
18788 char sched_yield();
18789
18790 int main() {
18791 sched_yield()
18792 ; return 0; }
18793 EOF
18794 if { (eval echo configure:18795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18795 rm -rf conftest*
18796 eval "ac_cv_lib_$ac_lib_var=yes"
18797 else
18798 echo "configure: failed program was:" >&5
18799 cat conftest.$ac_ext >&5
18800 rm -rf conftest*
18801 eval "ac_cv_lib_$ac_lib_var=no"
18802 fi
18803 rm -f conftest*
18804 LIBS="$ac_save_LIBS"
18805
18806 fi
18807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18808 echo "$ac_t""yes" 1>&6
18809 cat >> confdefs.h <<\EOF
18810 #define HAVE_SCHED_YIELD 1
18811 EOF
18812 POSIX4_LINK=" -lposix4"
18813 else
18814 echo "$ac_t""no" 1>&6
18815 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18816
18817 fi
18818
18819
18820
18821 fi
18822
18823 fi
18824
18825 HAVE_PRIOR_FUNCS=0
18826 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
18827 echo "configure:18828: checking for pthread_attr_getschedpolicy" >&5
18828 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18829 echo $ac_n "(cached) $ac_c" 1>&6
18830 else
18831 cat > conftest.$ac_ext <<EOF
18832 #line 18833 "configure"
18833 #include "confdefs.h"
18834 /* System header to define __stub macros and hopefully few prototypes,
18835 which can conflict with char pthread_attr_getschedpolicy(); below. */
18836 #include <assert.h>
18837 /* Override any gcc2 internal prototype to avoid an error. */
18838 /* We use char because int might match the return type of a gcc2
18839 builtin and then its argument prototype would still apply. */
18840 char pthread_attr_getschedpolicy();
18841
18842 int main() {
18843
18844 /* The GNU C library defines this for functions which it implements
18845 to always fail with ENOSYS. Some functions are actually named
18846 something starting with __ and the normal name is an alias. */
18847 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18848 choke me
18849 #else
18850 pthread_attr_getschedpolicy();
18851 #endif
18852
18853 ; return 0; }
18854 EOF
18855 if { (eval echo configure:18856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18856 rm -rf conftest*
18857 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
18858 else
18859 echo "configure: failed program was:" >&5
18860 cat conftest.$ac_ext >&5
18861 rm -rf conftest*
18862 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18863 fi
18864 rm -f conftest*
18865 fi
18866
18867 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18868 echo "$ac_t""yes" 1>&6
18869 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
18870 echo "configure:18871: checking for pthread_attr_setschedparam" >&5
18871 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
18872 echo $ac_n "(cached) $ac_c" 1>&6
18873 else
18874 cat > conftest.$ac_ext <<EOF
18875 #line 18876 "configure"
18876 #include "confdefs.h"
18877 /* System header to define __stub macros and hopefully few prototypes,
18878 which can conflict with char pthread_attr_setschedparam(); below. */
18879 #include <assert.h>
18880 /* Override any gcc2 internal prototype to avoid an error. */
18881 /* We use char because int might match the return type of a gcc2
18882 builtin and then its argument prototype would still apply. */
18883 char pthread_attr_setschedparam();
18884
18885 int main() {
18886
18887 /* The GNU C library defines this for functions which it implements
18888 to always fail with ENOSYS. Some functions are actually named
18889 something starting with __ and the normal name is an alias. */
18890 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
18891 choke me
18892 #else
18893 pthread_attr_setschedparam();
18894 #endif
18895
18896 ; return 0; }
18897 EOF
18898 if { (eval echo configure:18899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18899 rm -rf conftest*
18900 eval "ac_cv_func_pthread_attr_setschedparam=yes"
18901 else
18902 echo "configure: failed program was:" >&5
18903 cat conftest.$ac_ext >&5
18904 rm -rf conftest*
18905 eval "ac_cv_func_pthread_attr_setschedparam=no"
18906 fi
18907 rm -f conftest*
18908 fi
18909
18910 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18911 echo "$ac_t""yes" 1>&6
18912 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
18913 echo "configure:18914: checking for sched_get_priority_max" >&5
18914 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18915 echo $ac_n "(cached) $ac_c" 1>&6
18916 else
18917 cat > conftest.$ac_ext <<EOF
18918 #line 18919 "configure"
18919 #include "confdefs.h"
18920 /* System header to define __stub macros and hopefully few prototypes
18921 else
18922 echo "$ac_t""no" 1>&6
18923 which can conflict with char sched_get_priority_max(); below. */
18924 #include <assert.h>
18925 /* Override any gcc2 internal prototype to avoid an error. */
18926 /* We use char because int might match the return type of a gcc2
18927 builtin and then its argument prototype would still apply. */
18928 char sched_get_priority_max();
18929
18930 int main() {
18931
18932 /* The GNU C library defines this for functions which it implements
18933 to always fail with ENOSYS. Some functions are actually named
18934 something starting with __ and the normal name is an alias. */
18935 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18936 choke me
18937 #else
18938 sched_get_priority_max();
18939 #endif
18940
18941 ; return 0; }
18942 EOF
18943 if { (eval echo configure:18944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18944 rm -rf conftest*
18945 eval "ac_cv_func_sched_get_priority_max=yes"
18946 else
18947 echo "configure: failed program was:" >&5
18948 cat conftest.$ac_ext >&5
18949 rm -rf conftest*
18950 eval "ac_cv_func_sched_get_priority_max=no"
18951 fi
18952 rm -f conftest*
18953 fi
18954
18955 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18956 echo "$ac_t""yes" 1>&6
18957 HAVE_PRIOR_FUNCS=1
18958 else
18959 echo "$ac_t""no" 1>&6
18960 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
18961 echo "configure:18962: checking for sched_get_priority_max in -lposix4" >&5
18962 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18964 echo $ac_n "(cached) $ac_c" 1>&6
18965 else
18966 ac_save_LIBS="$LIBS"
18967 LIBS="-lposix4 $LIBS"
18968 cat > conftest.$ac_ext <<EOF
18969 #line 18970 "configure"
18970 #include "confdefs.h"
18971 /* Override any gcc2 internal prototype to avoid an error. */
18972 /* We use char because int might match the return type of a gcc2
18973 builtin and then its argument prototype would still apply. */
18974 char sched_get_priority_max();
18975
18976 int main() {
18977 sched_get_priority_max()
18978 ; return 0; }
18979 EOF
18980 if { (eval echo configure:18981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18981 rm -rf conftest*
18982 eval "ac_cv_lib_$ac_lib_var=yes"
18983 else
18984 echo "configure: failed program was:" >&5
18985 cat conftest.$ac_ext >&5
18986 rm -rf conftest*
18987 eval "ac_cv_lib_$ac_lib_var=no"
18988 fi
18989 rm -f conftest*
18990 LIBS="$ac_save_LIBS"
18991
18992 fi
18993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18994 echo "$ac_t""yes" 1>&6
18995
18996 HAVE_PRIOR_FUNCS=1
18997 POSIX4_LINK=" -lposix4"
18998
18999 else
19000 echo "$ac_t""no" 1>&6
19001 fi
19002
19003
19004 fi
19005
19006
19007 else
19008 echo "$ac_t""no" 1>&6
19009 fi
19010
19011
19012 fi
19013
19014
19015 if test "$HAVE_PRIOR_FUNCS" = 1; then
19016 cat >> confdefs.h <<\EOF
19017 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19018 EOF
19019
19020 else
19021 echo "configure: warning: Setting thread priority will not work" 1>&2
19022 fi
19023
19024 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19025 echo "configure:19026: checking for pthread_cancel" >&5
19026 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19027 echo $ac_n "(cached) $ac_c" 1>&6
19028 else
19029 cat > conftest.$ac_ext <<EOF
19030 #line 19031 "configure"
19031 #include "confdefs.h"
19032 /* System header to define __stub macros and hopefully few prototypes,
19033 which can conflict with char pthread_cancel(); below. */
19034 #include <assert.h>
19035 /* Override any gcc2 internal prototype to avoid an error. */
19036 /* We use char because int might match the return type of a gcc2
19037 builtin and then its argument prototype would still apply. */
19038 char pthread_cancel();
19039
19040 int main() {
19041
19042 /* The GNU C library defines this for functions which it implements
19043 to always fail with ENOSYS. Some functions are actually named
19044 something starting with __ and the normal name is an alias. */
19045 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19046 choke me
19047 #else
19048 pthread_cancel();
19049 #endif
19050
19051 ; return 0; }
19052 EOF
19053 if { (eval echo configure:19054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19054 rm -rf conftest*
19055 eval "ac_cv_func_pthread_cancel=yes"
19056 else
19057 echo "configure: failed program was:" >&5
19058 cat conftest.$ac_ext >&5
19059 rm -rf conftest*
19060 eval "ac_cv_func_pthread_cancel=no"
19061 fi
19062 rm -f conftest*
19063 fi
19064
19065 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19066 echo "$ac_t""yes" 1>&6
19067 cat >> confdefs.h <<\EOF
19068 #define HAVE_PTHREAD_CANCEL 1
19069 EOF
19070
19071 else
19072 echo "$ac_t""no" 1>&6
19073 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19074 fi
19075
19076
19077 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19078 echo "configure:19079: checking for pthread_cleanup_push/pop" >&5
19079 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19080 echo $ac_n "(cached) $ac_c" 1>&6
19081 else
19082
19083 cat > conftest.$ac_ext <<EOF
19084 #line 19085 "configure"
19085 #include "confdefs.h"
19086 #include <pthread.h>
19087 int main() {
19088
19089 pthread_cleanup_push(NULL, NULL);
19090 pthread_cleanup_pop(0);
19091
19092 ; return 0; }
19093 EOF
19094 if { (eval echo configure:19095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19095 rm -rf conftest*
19096
19097 wx_cv_func_pthread_cleanup_push=yes
19098
19099 else
19100 echo "configure: failed program was:" >&5
19101 cat conftest.$ac_ext >&5
19102 rm -rf conftest*
19103
19104 wx_cv_func_pthread_cleanup_push=no
19105
19106 fi
19107 rm -f conftest*
19108
19109 fi
19110
19111 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19112
19113 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19114 cat >> confdefs.h <<\EOF
19115 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19116 EOF
19117
19118 fi
19119
19120
19121 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19122 echo "configure:19123: checking for pthread_mutexattr_t" >&5
19123 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19124 echo $ac_n "(cached) $ac_c" 1>&6
19125 else
19126
19127 cat > conftest.$ac_ext <<EOF
19128 #line 19129 "configure"
19129 #include "confdefs.h"
19130 #include <pthread.h>
19131 int main() {
19132
19133 pthread_mutexattr_t attr;
19134 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19135
19136 ; return 0; }
19137 EOF
19138 if { (eval echo configure:19139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19139 rm -rf conftest*
19140
19141 wx_cv_type_pthread_mutexattr_t=yes
19142
19143 else
19144 echo "configure: failed program was:" >&5
19145 cat conftest.$ac_ext >&5
19146 rm -rf conftest*
19147
19148 wx_cv_type_pthread_mutexattr_t=no
19149
19150
19151 fi
19152 rm -f conftest*
19153
19154 fi
19155
19156 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19157
19158 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19159 cat >> confdefs.h <<\EOF
19160 #define HAVE_PTHREAD_MUTEXATTR_T 1
19161 EOF
19162
19163 else
19164 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19165 echo "configure:19166: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19166 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19167 echo $ac_n "(cached) $ac_c" 1>&6
19168 else
19169
19170 cat > conftest.$ac_ext <<EOF
19171 #line 19172 "configure"
19172 #include "confdefs.h"
19173 #include <pthread.h>
19174 int main() {
19175
19176 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19177
19178 ; return 0; }
19179 EOF
19180 if { (eval echo configure:19181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19181 rm -rf conftest*
19182
19183 wx_cv_type_pthread_rec_mutex_init=yes
19184
19185 else
19186 echo "configure: failed program was:" >&5
19187 cat conftest.$ac_ext >&5
19188 rm -rf conftest*
19189
19190 wx_cv_type_pthread_rec_mutex_init=no
19191
19192
19193 fi
19194 rm -f conftest*
19195
19196 fi
19197
19198 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19199 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19200 cat >> confdefs.h <<\EOF
19201 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19202 EOF
19203
19204 else
19205 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19206 fi
19207 fi
19208 fi
19209
19210 else
19211 if test "$wxUSE_THREADS" = "yes" ; then
19212 case "${host}" in
19213 *-*-mingw32* )
19214 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19215 echo "configure:19216: checking if compiler supports -mthreads" >&5
19216 if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19217 echo $ac_n "(cached) $ac_c" 1>&6
19218 else
19219
19220 CFLAGS_OLD="$CFLAGS"
19221 CFLAGS="$CFLAGS -mthreads"
19222 cat > conftest.$ac_ext <<EOF
19223 #line 19224 "configure"
19224 #include "confdefs.h"
19225
19226 int main() {
19227
19228 ; return 0; }
19229 EOF
19230 if { (eval echo configure:19231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19231 rm -rf conftest*
19232 wx_cv_cflags_mthread=yes
19233 else
19234 echo "configure: failed program was:" >&5
19235 cat conftest.$ac_ext >&5
19236 rm -rf conftest*
19237 wx_cv_cflags_mthread=no
19238
19239 fi
19240 rm -f conftest*
19241
19242
19243 fi
19244
19245 echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19246
19247 if test "$wx_cv_cflags_mthread" = "yes"; then
19248 CXXFLAGS="$CXXFLAGS -mthreads"
19249 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19250 LDFLAGS="$LDFLAGS -mthreads"
19251 else
19252 CFLAGS="$CFLAGS_OLD"
19253 fi
19254 ;;
19255 esac
19256 fi
19257 fi
19258
19259 if test "$wxUSE_THREADS" = "yes"; then
19260 cat >> confdefs.h <<\EOF
19261 #define wxUSE_THREADS 1
19262 EOF
19263
19264
19265 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19266 else
19267 if test "$ac_cv_func_strtok_r" = "yes"; then
19268 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19269 echo "configure:19270: checking if -D_REENTRANT is needed" >&5
19270 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19271 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19272 echo "$ac_t""yes" 1>&6
19273 else
19274 echo "$ac_t""no" 1>&6
19275 fi
19276 fi
19277 fi
19278
19279 if test "$WXGTK20" = 1 ; then
19280 cat >> confdefs.h <<EOF
19281 #define __WXGTK20__ $WXGTK20
19282 EOF
19283
19284 WXGTK12=1
19285 fi
19286
19287 if test "$WXGTK12" = 1 ; then
19288 cat >> confdefs.h <<EOF
19289 #define __WXGTK12__ $WXGTK12
19290 EOF
19291
19292 fi
19293
19294 if test "$WXGTK127" = 1 ; then
19295 cat >> confdefs.h <<EOF
19296 #define __WXGTK127__ $WXGTK127
19297 EOF
19298
19299 fi
19300
19301 WXDEBUG=
19302
19303 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19304 WXDEBUG="-g"
19305 wxUSE_OPTIMISE=no
19306 fi
19307
19308 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19309 wxUSE_DEBUG_INFO=yes
19310 WXDEBUG="-ggdb"
19311 fi
19312
19313 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19314 cat >> confdefs.h <<\EOF
19315 #define WXDEBUG 1
19316 EOF
19317
19318 WXDEBUG_DEFINE="-D__WXDEBUG__"
19319 else
19320 if test "$wxUSE_GTK" = 1 ; then
19321 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19322 fi
19323 fi
19324
19325 if test "$wxUSE_MEM_TRACING" = "yes" ; then
19326 cat >> confdefs.h <<\EOF
19327 #define wxUSE_MEMORY_TRACING 1
19328 EOF
19329
19330 cat >> confdefs.h <<\EOF
19331 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19332 EOF
19333
19334 cat >> confdefs.h <<\EOF
19335 #define wxUSE_DEBUG_NEW_ALWAYS 1
19336 EOF
19337
19338 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19339 fi
19340
19341 if test "$wxUSE_DMALLOC" = "yes" ; then
19342 DMALLOC_LIBS="-ldmalloc"
19343 fi
19344
19345 PROFILE=
19346 if test "$wxUSE_PROFILE" = "yes" ; then
19347 PROFILE=" -pg"
19348 fi
19349
19350 CODE_GEN_FLAGS=
19351 CODE_GEN_FLAGS_CXX=
19352 if test "$GCC" = "yes" ; then
19353 if test "$wxUSE_NO_RTTI" = "yes" ; then
19354 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19355 fi
19356 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19357 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19358 fi
19359 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19360 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19361 fi
19362 if test "$USE_WIN32" = 1 ; then
19363 # I'm not even really sure what this was ever added to solve,
19364 # but someone added it for mingw native builds, so I guess
19365 # they had a reason, right??
19366 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19367 fi
19368
19369 case "${host}" in
19370 powerpc*-*-aix* )
19371 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19372 ;;
19373 *-hppa* )
19374 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19375 ;;
19376 esac
19377 fi
19378
19379 if test "$wxUSE_OPTIMISE" = "no" ; then
19380 OPTIMISE=
19381 else
19382 if test "$GCC" = yes ; then
19383 OPTIMISE="-O2"
19384 case "${host}" in
19385 i586-*-*|i686-*-* )
19386 OPTIMISE="${OPTIMISE} "
19387 ;;
19388 esac
19389 else
19390 OPTIMISE="-O"
19391 fi
19392 fi
19393
19394
19395 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19396 cat >> confdefs.h <<\EOF
19397 #define WXWIN_COMPATIBILITY_2 1
19398 EOF
19399
19400
19401 WXWIN_COMPATIBILITY_2_2="yes"
19402 fi
19403
19404 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19405 cat >> confdefs.h <<\EOF
19406 #define WXWIN_COMPATIBILITY_2_2 1
19407 EOF
19408
19409
19410 WXWIN_COMPATIBILITY_2_4="yes"
19411 fi
19412
19413 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19414 cat >> confdefs.h <<\EOF
19415 #define WXWIN_COMPATIBILITY_2_4 1
19416 EOF
19417
19418 fi
19419
19420
19421 if test "$wxUSE_GUI" = "yes"; then
19422 cat >> confdefs.h <<\EOF
19423 #define wxUSE_GUI 1
19424 EOF
19425
19426
19427 else
19428 cat >> confdefs.h <<\EOF
19429 #define wxUSE_NOGUI 1
19430 EOF
19431
19432 fi
19433
19434
19435 if test "$wxUSE_UNIX" = "yes"; then
19436 cat >> confdefs.h <<\EOF
19437 #define wxUSE_UNIX 1
19438 EOF
19439
19440 fi
19441
19442
19443 if test "$wxUSE_APPLE_IEEE" = "yes"; then
19444 cat >> confdefs.h <<\EOF
19445 #define wxUSE_APPLE_IEEE 1
19446 EOF
19447
19448 fi
19449
19450 if test "$wxUSE_TIMER" = "yes"; then
19451 cat >> confdefs.h <<\EOF
19452 #define wxUSE_TIMER 1
19453 EOF
19454
19455 fi
19456
19457 if test "$wxUSE_WAVE" = "yes"; then
19458 cat >> confdefs.h <<\EOF
19459 #define wxUSE_WAVE 1
19460 EOF
19461
19462 fi
19463
19464 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19465 cat >> confdefs.h <<\EOF
19466 #define wxUSE_CMDLINE_PARSER 1
19467 EOF
19468
19469 fi
19470
19471 if test "$wxUSE_STOPWATCH" = "yes"; then
19472 cat >> confdefs.h <<\EOF
19473 #define wxUSE_STOPWATCH 1
19474 EOF
19475
19476 fi
19477
19478 if test "$wxUSE_DATETIME" = "yes"; then
19479 cat >> confdefs.h <<\EOF
19480 #define wxUSE_DATETIME 1
19481 EOF
19482
19483 fi
19484
19485 if test "$wxUSE_TIMEDATE" = "yes"; then
19486 cat >> confdefs.h <<\EOF
19487 #define wxUSE_TIMEDATE 1
19488 EOF
19489
19490 fi
19491
19492 if test "$wxUSE_FILE" = "yes"; then
19493 cat >> confdefs.h <<\EOF
19494 #define wxUSE_FILE 1
19495 EOF
19496
19497 fi
19498
19499 if test "$wxUSE_FFILE" = "yes"; then
19500 cat >> confdefs.h <<\EOF
19501 #define wxUSE_FFILE 1
19502 EOF
19503
19504 fi
19505
19506 if test "$wxUSE_FILESYSTEM" = "yes"; then
19507 cat >> confdefs.h <<\EOF
19508 #define wxUSE_FILESYSTEM 1
19509 EOF
19510
19511 fi
19512
19513 if test "$wxUSE_FS_INET" = "yes"; then
19514 cat >> confdefs.h <<\EOF
19515 #define wxUSE_FS_INET 1
19516 EOF
19517
19518 fi
19519
19520 if test "$wxUSE_FS_ZIP" = "yes"; then
19521 cat >> confdefs.h <<\EOF
19522 #define wxUSE_FS_ZIP 1
19523 EOF
19524
19525 fi
19526
19527 if test "$wxUSE_ZIPSTREAM" = "yes"; then
19528 cat >> confdefs.h <<\EOF
19529 #define wxUSE_ZIPSTREAM 1
19530 EOF
19531
19532 fi
19533
19534 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19535 cat >> confdefs.h <<\EOF
19536 #define wxUSE_ON_FATAL_EXCEPTION 1
19537 EOF
19538
19539 fi
19540
19541 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19542 cat >> confdefs.h <<\EOF
19543 #define wxUSE_SNGLINST_CHECKER 1
19544 EOF
19545
19546 fi
19547
19548 if test "$wxUSE_BUSYINFO" = "yes"; then
19549 cat >> confdefs.h <<\EOF
19550 #define wxUSE_BUSYINFO 1
19551 EOF
19552
19553 fi
19554
19555 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19556 cat >> confdefs.h <<\EOF
19557 #define wxUSE_STD_IOSTREAM 1
19558 EOF
19559
19560 fi
19561
19562 if test "$wxUSE_TEXTBUFFER" = "yes"; then
19563 cat >> confdefs.h <<\EOF
19564 #define wxUSE_TEXTBUFFER 1
19565 EOF
19566
19567 fi
19568
19569 if test "$wxUSE_TEXTFILE" = "yes"; then
19570 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19571 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19572 else
19573 cat >> confdefs.h <<\EOF
19574 #define wxUSE_TEXTFILE 1
19575 EOF
19576
19577 fi
19578 fi
19579
19580 if test "$wxUSE_CONFIG" = "yes" ; then
19581 if test "$wxUSE_TEXTFILE" != "yes"; then
19582 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19583 else
19584 cat >> confdefs.h <<\EOF
19585 #define wxUSE_CONFIG 1
19586 EOF
19587
19588 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19589 fi
19590 fi
19591
19592 if test "$wxUSE_INTL" = "yes" ; then
19593 if test "$wxUSE_FILE" != "yes"; then
19594 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
19595 else
19596 cat >> confdefs.h <<\EOF
19597 #define wxUSE_INTL 1
19598 EOF
19599
19600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
19601 GUIDIST="$GUIDIST INTL_DIST"
19602 fi
19603 fi
19604
19605 if test "$wxUSE_LOG" = "yes"; then
19606 cat >> confdefs.h <<\EOF
19607 #define wxUSE_LOG 1
19608 EOF
19609
19610
19611 if test "$wxUSE_LOGGUI" = "yes"; then
19612 cat >> confdefs.h <<\EOF
19613 #define wxUSE_LOGGUI 1
19614 EOF
19615
19616 fi
19617
19618 if test "$wxUSE_LOGWINDOW" = "yes"; then
19619 cat >> confdefs.h <<\EOF
19620 #define wxUSE_LOGWINDOW 1
19621 EOF
19622
19623 fi
19624
19625 if test "$wxUSE_LOGDIALOG" = "yes"; then
19626 cat >> confdefs.h <<\EOF
19627 #define wxUSE_LOG_DIALOG 1
19628 EOF
19629
19630 fi
19631 fi
19632
19633 if test "$wxUSE_LONGLONG" = "yes"; then
19634 cat >> confdefs.h <<\EOF
19635 #define wxUSE_LONGLONG 1
19636 EOF
19637
19638 fi
19639
19640 if test "$wxUSE_GEOMETRY" = "yes"; then
19641 cat >> confdefs.h <<\EOF
19642 #define wxUSE_GEOMETRY 1
19643 EOF
19644
19645 fi
19646
19647 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
19648 cat >> confdefs.h <<\EOF
19649 #define wxUSE_DIALUP_MANAGER 1
19650 EOF
19651
19652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
19653 fi
19654
19655 if test "$wxUSE_STREAMS" = "yes" ; then
19656 cat >> confdefs.h <<\EOF
19657 #define wxUSE_STREAMS 1
19658 EOF
19659
19660 fi
19661
19662
19663 if test "$wxUSE_DATETIME" = "yes"; then
19664 for ac_func in strptime
19665 do
19666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19667 echo "configure:19668: checking for $ac_func" >&5
19668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19669 echo $ac_n "(cached) $ac_c" 1>&6
19670 else
19671 cat > conftest.$ac_ext <<EOF
19672 #line 19673 "configure"
19673 #include "confdefs.h"
19674 /* System header to define __stub macros and hopefully few prototypes,
19675 which can conflict with char $ac_func(); below. */
19676 #include <assert.h>
19677 /* Override any gcc2 internal prototype to avoid an error. */
19678 /* We use char because int might match the return type of a gcc2
19679 builtin and then its argument prototype would still apply. */
19680 char $ac_func();
19681
19682 int main() {
19683
19684 /* The GNU C library defines this for functions which it implements
19685 to always fail with ENOSYS. Some functions are actually named
19686 something starting with __ and the normal name is an alias. */
19687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19688 choke me
19689 #else
19690 $ac_func();
19691 #endif
19692
19693 ; return 0; }
19694 EOF
19695 if { (eval echo configure:19696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19696 rm -rf conftest*
19697 eval "ac_cv_func_$ac_func=yes"
19698 else
19699 echo "configure: failed program was:" >&5
19700 cat conftest.$ac_ext >&5
19701 rm -rf conftest*
19702 eval "ac_cv_func_$ac_func=no"
19703 fi
19704 rm -f conftest*
19705 fi
19706
19707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19708 echo "$ac_t""yes" 1>&6
19709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19710 cat >> confdefs.h <<EOF
19711 #define $ac_tr_func 1
19712 EOF
19713
19714 else
19715 echo "$ac_t""no" 1>&6
19716 fi
19717 done
19718
19719
19720 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
19721 echo "configure:19722: checking for timezone variable in <time.h>" >&5
19722 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19723 echo $ac_n "(cached) $ac_c" 1>&6
19724 else
19725
19726 cat > conftest.$ac_ext <<EOF
19727 #line 19728 "configure"
19728 #include "confdefs.h"
19729
19730 #include <time.h>
19731
19732 int main() {
19733
19734 int tz;
19735 tz = timezone;
19736
19737 ; return 0; }
19738 EOF
19739 if { (eval echo configure:19740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19740 rm -rf conftest*
19741
19742 wx_cv_var_timezone=timezone
19743
19744 else
19745 echo "configure: failed program was:" >&5
19746 cat conftest.$ac_ext >&5
19747 rm -rf conftest*
19748
19749 cat > conftest.$ac_ext <<EOF
19750 #line 19751 "configure"
19751 #include "confdefs.h"
19752
19753 #include <time.h>
19754
19755 int main() {
19756
19757 int tz;
19758 tz = _timezone;
19759
19760 ; return 0; }
19761 EOF
19762 if { (eval echo configure:19763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19763 rm -rf conftest*
19764
19765 wx_cv_var_timezone=_timezone
19766
19767 else
19768 echo "configure: failed program was:" >&5
19769 cat conftest.$ac_ext >&5
19770 rm -rf conftest*
19771
19772 cat > conftest.$ac_ext <<EOF
19773 #line 19774 "configure"
19774 #include "confdefs.h"
19775
19776 #include <time.h>
19777
19778 int main() {
19779
19780 int tz;
19781 tz = __timezone;
19782
19783 ; return 0; }
19784 EOF
19785 if { (eval echo configure:19786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19786 rm -rf conftest*
19787
19788 wx_cv_var_timezone=__timezone
19789
19790 else
19791 echo "configure: failed program was:" >&5
19792 cat conftest.$ac_ext >&5
19793 rm -rf conftest*
19794
19795 if test "$USE_DOS" = 0 ; then
19796 echo "configure: warning: no timezone variable" 1>&2
19797 fi
19798
19799
19800 fi
19801 rm -f conftest*
19802
19803
19804 fi
19805 rm -f conftest*
19806
19807
19808 fi
19809 rm -f conftest*
19810
19811
19812 fi
19813
19814 echo "$ac_t""$wx_cv_var_timezone" 1>&6
19815
19816 if test "x$wx_cv_var_timezone" != x ; then
19817 cat >> confdefs.h <<EOF
19818 #define WX_TIMEZONE $wx_cv_var_timezone
19819 EOF
19820
19821 fi
19822
19823 for ac_func in localtime
19824 do
19825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19826 echo "configure:19827: checking for $ac_func" >&5
19827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19828 echo $ac_n "(cached) $ac_c" 1>&6
19829 else
19830 cat > conftest.$ac_ext <<EOF
19831 #line 19832 "configure"
19832 #include "confdefs.h"
19833 /* System header to define __stub macros and hopefully few prototypes,
19834 which can conflict with char $ac_func(); below. */
19835 #include <assert.h>
19836 /* Override any gcc2 internal prototype to avoid an error. */
19837 /* We use char because int might match the return type of a gcc2
19838 builtin and then its argument prototype would still apply. */
19839 char $ac_func();
19840
19841 int main() {
19842
19843 /* The GNU C library defines this for functions which it implements
19844 to always fail with ENOSYS. Some functions are actually named
19845 something starting with __ and the normal name is an alias. */
19846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19847 choke me
19848 #else
19849 $ac_func();
19850 #endif
19851
19852 ; return 0; }
19853 EOF
19854 if { (eval echo configure:19855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19855 rm -rf conftest*
19856 eval "ac_cv_func_$ac_func=yes"
19857 else
19858 echo "configure: failed program was:" >&5
19859 cat conftest.$ac_ext >&5
19860 rm -rf conftest*
19861 eval "ac_cv_func_$ac_func=no"
19862 fi
19863 rm -f conftest*
19864 fi
19865
19866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19867 echo "$ac_t""yes" 1>&6
19868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19869 cat >> confdefs.h <<EOF
19870 #define $ac_tr_func 1
19871 EOF
19872
19873 else
19874 echo "$ac_t""no" 1>&6
19875 fi
19876 done
19877
19878
19879 if test "$ac_cv_func_localtime" = "yes"; then
19880 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
19881 echo "configure:19882: checking for tm_gmtoff in struct tm" >&5
19882 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
19883 echo $ac_n "(cached) $ac_c" 1>&6
19884 else
19885
19886 cat > conftest.$ac_ext <<EOF
19887 #line 19888 "configure"
19888 #include "confdefs.h"
19889
19890 #include <time.h>
19891
19892 int main() {
19893
19894 struct tm tm;
19895 tm.tm_gmtoff++;
19896
19897 ; return 0; }
19898 EOF
19899 if { (eval echo configure:19900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19900 rm -rf conftest*
19901
19902 wx_cv_struct_tm_has_gmtoff=yes
19903
19904 else
19905 echo "configure: failed program was:" >&5
19906 cat conftest.$ac_ext >&5
19907 rm -rf conftest*
19908 wx_cv_struct_tm_has_gmtoff=no
19909
19910 fi
19911 rm -f conftest*
19912
19913 fi
19914
19915 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
19916 fi
19917
19918 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
19919 cat >> confdefs.h <<\EOF
19920 #define WX_GMTOFF_IN_TM 1
19921 EOF
19922
19923 fi
19924
19925 for ac_func in gettimeofday ftime
19926 do
19927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19928 echo "configure:19929: checking for $ac_func" >&5
19929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19930 echo $ac_n "(cached) $ac_c" 1>&6
19931 else
19932 cat > conftest.$ac_ext <<EOF
19933 #line 19934 "configure"
19934 #include "confdefs.h"
19935 /* System header to define __stub macros and hopefully few prototypes,
19936 which can conflict with char $ac_func(); below. */
19937 #include <assert.h>
19938 /* Override any gcc2 internal prototype to avoid an error. */
19939 /* We use char because int might match the return type of a gcc2
19940 builtin and then its argument prototype would still apply. */
19941 char $ac_func();
19942
19943 int main() {
19944
19945 /* The GNU C library defines this for functions which it implements
19946 to always fail with ENOSYS. Some functions are actually named
19947 something starting with __ and the normal name is an alias. */
19948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19949 choke me
19950 #else
19951 $ac_func();
19952 #endif
19953
19954 ; return 0; }
19955 EOF
19956 if { (eval echo configure:19957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19957 rm -rf conftest*
19958 eval "ac_cv_func_$ac_func=yes"
19959 else
19960 echo "configure: failed program was:" >&5
19961 cat conftest.$ac_ext >&5
19962 rm -rf conftest*
19963 eval "ac_cv_func_$ac_func=no"
19964 fi
19965 rm -f conftest*
19966 fi
19967
19968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19969 echo "$ac_t""yes" 1>&6
19970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19971 cat >> confdefs.h <<EOF
19972 #define $ac_tr_func 1
19973 EOF
19974 break
19975 else
19976 echo "$ac_t""no" 1>&6
19977 fi
19978 done
19979
19980
19981 if test "$ac_cv_func_gettimeofday" = "yes"; then
19982 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
19983 echo "configure:19984: checking whether gettimeofday takes two arguments" >&5
19984 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19985 echo $ac_n "(cached) $ac_c" 1>&6
19986 else
19987
19988
19989 ac_ext=C
19990 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19991 ac_cpp='$CXXCPP $CPPFLAGS'
19992 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19993 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19994 cross_compiling=$ac_cv_prog_cxx_cross
19995
19996
19997 cat > conftest.$ac_ext <<EOF
19998 #line 19999 "configure"
19999 #include "confdefs.h"
20000
20001 #include <sys/time.h>
20002 #include <unistd.h>
20003
20004 int main() {
20005
20006 struct timeval tv;
20007 gettimeofday(&tv, NULL);
20008
20009 ; return 0; }
20010 EOF
20011 if { (eval echo configure:20012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20012 rm -rf conftest*
20013 wx_cv_func_gettimeofday_has_2_args=yes
20014 else
20015 echo "configure: failed program was:" >&5
20016 cat conftest.$ac_ext >&5
20017 rm -rf conftest*
20018 cat > conftest.$ac_ext <<EOF
20019 #line 20020 "configure"
20020 #include "confdefs.h"
20021
20022 #include <sys/time.h>
20023 #include <unistd.h>
20024
20025 int main() {
20026
20027 struct timeval tv;
20028 gettimeofday(&tv);
20029
20030 ; return 0; }
20031 EOF
20032 if { (eval echo configure:20033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20033 rm -rf conftest*
20034 wx_cv_func_gettimeofday_has_2_args=no
20035 else
20036 echo "configure: failed program was:" >&5
20037 cat conftest.$ac_ext >&5
20038 rm -rf conftest*
20039
20040 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20041 wx_cv_func_gettimeofday_has_2_args=unknown
20042
20043
20044 fi
20045 rm -f conftest*
20046
20047 fi
20048 rm -f conftest*
20049 ac_ext=c
20050 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20051 ac_cpp='$CPP $CPPFLAGS'
20052 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20053 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20054 cross_compiling=$ac_cv_prog_cc_cross
20055
20056
20057 fi
20058
20059 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20060
20061 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20062 cat >> confdefs.h <<\EOF
20063 #define WX_GETTIMEOFDAY_NO_TZ 1
20064 EOF
20065
20066 fi
20067 fi
20068
20069 cat >> confdefs.h <<\EOF
20070 #define wxUSE_TIMEDATE 1
20071 EOF
20072
20073 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20074 fi
20075
20076
20077 if test "$wxUSE_SOCKETS" = "yes"; then
20078 if test "$wxUSE_MGL" = "1"; then
20079 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20080 wxUSE_SOCKETS="no"
20081 fi
20082 fi
20083
20084 if test "$wxUSE_SOCKETS" = "yes"; then
20085 if test "$TOOLKIT" != "MSW"; then
20086 echo $ac_n "checking for socket""... $ac_c" 1>&6
20087 echo "configure:20088: checking for socket" >&5
20088 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20089 echo $ac_n "(cached) $ac_c" 1>&6
20090 else
20091 cat > conftest.$ac_ext <<EOF
20092 #line 20093 "configure"
20093 #include "confdefs.h"
20094 /* System header to define __stub macros and hopefully few prototypes,
20095 which can conflict with char socket(); below. */
20096 #include <assert.h>
20097 /* Override any gcc2 internal prototype to avoid an error. */
20098 /* We use char because int might match the return type of a gcc2
20099 builtin and then its argument prototype would still apply. */
20100 char socket();
20101
20102 int main() {
20103
20104 /* The GNU C library defines this for functions which it implements
20105 to always fail with ENOSYS. Some functions are actually named
20106 something starting with __ and the normal name is an alias. */
20107 #if defined (__stub_socket) || defined (__stub___socket)
20108 choke me
20109 #else
20110 socket();
20111 #endif
20112
20113 ; return 0; }
20114 EOF
20115 if { (eval echo configure:20116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20116 rm -rf conftest*
20117 eval "ac_cv_func_socket=yes"
20118 else
20119 echo "configure: failed program was:" >&5
20120 cat conftest.$ac_ext >&5
20121 rm -rf conftest*
20122 eval "ac_cv_func_socket=no"
20123 fi
20124 rm -f conftest*
20125 fi
20126
20127 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20128 echo "$ac_t""yes" 1>&6
20129 :
20130 else
20131 echo "$ac_t""no" 1>&6
20132 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20133 echo "configure:20134: checking for socket in -lsocket" >&5
20134 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20136 echo $ac_n "(cached) $ac_c" 1>&6
20137 else
20138 ac_save_LIBS="$LIBS"
20139 LIBS="-lsocket $LIBS"
20140 cat > conftest.$ac_ext <<EOF
20141 #line 20142 "configure"
20142 #include "confdefs.h"
20143 /* Override any gcc2 internal prototype to avoid an error. */
20144 /* We use char because int might match the return type of a gcc2
20145 builtin and then its argument prototype would still apply. */
20146 char socket();
20147
20148 int main() {
20149 socket()
20150 ; return 0; }
20151 EOF
20152 if { (eval echo configure:20153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20153 rm -rf conftest*
20154 eval "ac_cv_lib_$ac_lib_var=yes"
20155 else
20156 echo "configure: failed program was:" >&5
20157 cat conftest.$ac_ext >&5
20158 rm -rf conftest*
20159 eval "ac_cv_lib_$ac_lib_var=no"
20160 fi
20161 rm -f conftest*
20162 LIBS="$ac_save_LIBS"
20163
20164 fi
20165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20166 echo "$ac_t""yes" 1>&6
20167 if test "$INET_LINK" != " -lsocket"; then
20168 INET_LINK="$INET_LINK -lsocket"
20169 fi
20170 else
20171 echo "$ac_t""no" 1>&6
20172
20173 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20174 wxUSE_SOCKETS=no
20175
20176
20177 fi
20178
20179
20180 fi
20181
20182 fi
20183 fi
20184
20185 if test "$wxUSE_SOCKETS" = "yes" ; then
20186 if test "$TOOLKIT" != "MSW"; then
20187 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20188 echo "configure:20189: checking what is the type of the third argument of getsockname" >&5
20189 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20190 echo $ac_n "(cached) $ac_c" 1>&6
20191 else
20192
20193
20194 ac_ext=C
20195 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20196 ac_cpp='$CXXCPP $CPPFLAGS'
20197 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20198 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20199 cross_compiling=$ac_cv_prog_cxx_cross
20200
20201
20202 cat > conftest.$ac_ext <<EOF
20203 #line 20204 "configure"
20204 #include "confdefs.h"
20205
20206 #include <sys/types.h>
20207 #include <sys/socket.h>
20208
20209 int main() {
20210
20211 socklen_t len;
20212 getsockname(0, 0, &len);
20213
20214 ; return 0; }
20215 EOF
20216 if { (eval echo configure:20217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20217 rm -rf conftest*
20218 wx_cv_type_getsockname3=socklen_t
20219 else
20220 echo "configure: failed program was:" >&5
20221 cat conftest.$ac_ext >&5
20222 rm -rf conftest*
20223 cat > conftest.$ac_ext <<EOF
20224 #line 20225 "configure"
20225 #include "confdefs.h"
20226
20227 #include <sys/types.h>
20228 #include <sys/socket.h>
20229
20230 int main() {
20231
20232 size_t len;
20233 getsockname(0, 0, &len);
20234
20235 ; return 0; }
20236 EOF
20237 if { (eval echo configure:20238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20238 rm -rf conftest*
20239 wx_cv_type_getsockname3=size_t
20240 else
20241 echo "configure: failed program was:" >&5
20242 cat conftest.$ac_ext >&5
20243 rm -rf conftest*
20244 cat > conftest.$ac_ext <<EOF
20245 #line 20246 "configure"
20246 #include "confdefs.h"
20247
20248 #include <sys/types.h>
20249 #include <sys/socket.h>
20250
20251 int main() {
20252
20253 int len;
20254 getsockname(0, 0, &len);
20255
20256 ; return 0; }
20257 EOF
20258 if { (eval echo configure:20259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20259 rm -rf conftest*
20260 wx_cv_type_getsockname3=int
20261 else
20262 echo "configure: failed program was:" >&5
20263 cat conftest.$ac_ext >&5
20264 rm -rf conftest*
20265 wx_cv_type_getsockname3=unknown
20266
20267 fi
20268 rm -f conftest*
20269
20270 fi
20271 rm -f conftest*
20272
20273 fi
20274 rm -f conftest*
20275
20276 ac_ext=c
20277 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20278 ac_cpp='$CPP $CPPFLAGS'
20279 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20280 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20281 cross_compiling=$ac_cv_prog_cc_cross
20282
20283
20284 fi
20285
20286 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20287
20288 if test "$wx_cv_type_getsockname3" = "unknown"; then
20289 wxUSE_SOCKETS=no
20290 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20291 else
20292 cat >> confdefs.h <<EOF
20293 #define SOCKLEN_T $wx_cv_type_getsockname3
20294 EOF
20295
20296 fi
20297 fi
20298 fi
20299
20300 if test "$wxUSE_SOCKETS" = "yes" ; then
20301 cat >> confdefs.h <<\EOF
20302 #define wxUSE_SOCKETS 1
20303 EOF
20304
20305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20306 fi
20307
20308
20309 if test "$wxUSE_GUI" = "yes"; then
20310
20311 if test "$TOOLKIT" = "MAC"; then
20312 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20313 wxUSE_JOYSTICK=no
20314 fi
20315 if test "$TOOLKIT" = "MOTIF"; then
20316 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20317 wxUSE_JOYSTICK=no
20318 fi
20319 if test "$TOOLKIT" = "X11"; then
20320 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20321 wxUSE_JOYSTICK=no
20322 fi
20323
20324 if test "$TOOLKIT" != "MSW"; then
20325 if test "$wxUSE_JOYSTICK" = "yes"; then
20326 for ac_hdr in linux/joystick.h
20327 do
20328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20330 echo "configure:20331: checking for $ac_hdr" >&5
20331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20332 echo $ac_n "(cached) $ac_c" 1>&6
20333 else
20334 cat > conftest.$ac_ext <<EOF
20335 #line 20336 "configure"
20336 #include "confdefs.h"
20337 #include <$ac_hdr>
20338 EOF
20339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20340 { (eval echo configure:20341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20342 if test -z "$ac_err"; then
20343 rm -rf conftest*
20344 eval "ac_cv_header_$ac_safe=yes"
20345 else
20346 echo "$ac_err" >&5
20347 echo "configure: failed program was:" >&5
20348 cat conftest.$ac_ext >&5
20349 rm -rf conftest*
20350 eval "ac_cv_header_$ac_safe=no"
20351 fi
20352 rm -f conftest*
20353 fi
20354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20355 echo "$ac_t""yes" 1>&6
20356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20357 cat >> confdefs.h <<EOF
20358 #define $ac_tr_hdr 1
20359 EOF
20360
20361 else
20362 echo "$ac_t""no" 1>&6
20363 fi
20364 done
20365
20366 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20367 wxUSE_JOYSTICK=no
20368 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20369 fi
20370 fi
20371 fi
20372
20373 if test "$wxUSE_JOYSTICK" = "yes"; then
20374 cat >> confdefs.h <<\EOF
20375 #define wxUSE_JOYSTICK 1
20376 EOF
20377
20378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20379 fi
20380 fi
20381
20382
20383 if test "$TOOLKIT" != "MSW"; then
20384
20385 HAVE_DL_FUNCS=0
20386 HAVE_SHL_FUNCS=0
20387 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20388 if test "$USE_DARWIN" = 1; then
20389 HAVE_DL_FUNCS=1
20390 else
20391 for ac_func in dlopen
20392 do
20393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20394 echo "configure:20395: checking for $ac_func" >&5
20395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20396 echo $ac_n "(cached) $ac_c" 1>&6
20397 else
20398 cat > conftest.$ac_ext <<EOF
20399 #line 20400 "configure"
20400 #include "confdefs.h"
20401 /* System header to define __stub macros and hopefully few prototypes,
20402 which can conflict with char $ac_func(); below. */
20403 #include <assert.h>
20404 /* Override any gcc2 internal prototype to avoid an error. */
20405 /* We use char because int might match the return type of a gcc2
20406 builtin and then its argument prototype would still apply. */
20407 char $ac_func();
20408
20409 int main() {
20410
20411 /* The GNU C library defines this for functions which it implements
20412 to always fail with ENOSYS. Some functions are actually named
20413 something starting with __ and the normal name is an alias. */
20414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20415 choke me
20416 #else
20417 $ac_func();
20418 #endif
20419
20420 ; return 0; }
20421 EOF
20422 if { (eval echo configure:20423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20423 rm -rf conftest*
20424 eval "ac_cv_func_$ac_func=yes"
20425 else
20426 echo "configure: failed program was:" >&5
20427 cat conftest.$ac_ext >&5
20428 rm -rf conftest*
20429 eval "ac_cv_func_$ac_func=no"
20430 fi
20431 rm -f conftest*
20432 fi
20433
20434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20435 echo "$ac_t""yes" 1>&6
20436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20437 cat >> confdefs.h <<EOF
20438 #define $ac_tr_func 1
20439 EOF
20440
20441 cat >> confdefs.h <<\EOF
20442 #define HAVE_DLOPEN 1
20443 EOF
20444
20445 HAVE_DL_FUNCS=1
20446
20447 else
20448 echo "$ac_t""no" 1>&6
20449 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20450 echo "configure:20451: checking for dlopen in -ldl" >&5
20451 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20453 echo $ac_n "(cached) $ac_c" 1>&6
20454 else
20455 ac_save_LIBS="$LIBS"
20456 LIBS="-ldl $LIBS"
20457 cat > conftest.$ac_ext <<EOF
20458 #line 20459 "configure"
20459 #include "confdefs.h"
20460 /* Override any gcc2 internal prototype to avoid an error. */
20461 /* We use char because int might match the return type of a gcc2
20462 builtin and then its argument prototype would still apply. */
20463 char dlopen();
20464
20465 int main() {
20466 dlopen()
20467 ; return 0; }
20468 EOF
20469 if { (eval echo configure:20470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20470 rm -rf conftest*
20471 eval "ac_cv_lib_$ac_lib_var=yes"
20472 else
20473 echo "configure: failed program was:" >&5
20474 cat conftest.$ac_ext >&5
20475 rm -rf conftest*
20476 eval "ac_cv_lib_$ac_lib_var=no"
20477 fi
20478 rm -f conftest*
20479 LIBS="$ac_save_LIBS"
20480
20481 fi
20482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20483 echo "$ac_t""yes" 1>&6
20484
20485 cat >> confdefs.h <<\EOF
20486 #define HAVE_DLOPEN 1
20487 EOF
20488
20489 HAVE_DL_FUNCS=1
20490 DL_LINK=" -ldl$DL_LINK"
20491
20492 else
20493 echo "$ac_t""no" 1>&6
20494
20495 for ac_func in shl_load
20496 do
20497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20498 echo "configure:20499: checking for $ac_func" >&5
20499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20500 echo $ac_n "(cached) $ac_c" 1>&6
20501 else
20502 cat > conftest.$ac_ext <<EOF
20503 #line 20504 "configure"
20504 #include "confdefs.h"
20505 /* System header to define __stub macros and hopefully few prototypes,
20506 which can conflict with char $ac_func(); below. */
20507 #include <assert.h>
20508 /* Override any gcc2 internal prototype to avoid an error. */
20509 /* We use char because int might match the return type of a gcc2
20510 builtin and then its argument prototype would still apply. */
20511 char $ac_func();
20512
20513 int main() {
20514
20515 /* The GNU C library defines this for functions which it implements
20516 to always fail with ENOSYS. Some functions are actually named
20517 something starting with __ and the normal name is an alias. */
20518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20519 choke me
20520 #else
20521 $ac_func();
20522 #endif
20523
20524 ; return 0; }
20525 EOF
20526 if { (eval echo configure:20527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20527 rm -rf conftest*
20528 eval "ac_cv_func_$ac_func=yes"
20529 else
20530 echo "configure: failed program was:" >&5
20531 cat conftest.$ac_ext >&5
20532 rm -rf conftest*
20533 eval "ac_cv_func_$ac_func=no"
20534 fi
20535 rm -f conftest*
20536 fi
20537
20538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20539 echo "$ac_t""yes" 1>&6
20540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20541 cat >> confdefs.h <<EOF
20542 #define $ac_tr_func 1
20543 EOF
20544
20545 cat >> confdefs.h <<\EOF
20546 #define HAVE_SHL_LOAD 1
20547 EOF
20548
20549 HAVE_SHL_FUNCS=1
20550
20551 else
20552 echo "$ac_t""no" 1>&6
20553 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20554 echo "configure:20555: checking for dld in -lshl_load" >&5
20555 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20557 echo $ac_n "(cached) $ac_c" 1>&6
20558 else
20559 ac_save_LIBS="$LIBS"
20560 LIBS="-lshl_load $LIBS"
20561 cat > conftest.$ac_ext <<EOF
20562 #line 20563 "configure"
20563 #include "confdefs.h"
20564 /* Override any gcc2 internal prototype to avoid an error. */
20565 /* We use char because int might match the return type of a gcc2
20566 builtin and then its argument prototype would still apply. */
20567 char dld();
20568
20569 int main() {
20570 dld()
20571 ; return 0; }
20572 EOF
20573 if { (eval echo configure:20574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20574 rm -rf conftest*
20575 eval "ac_cv_lib_$ac_lib_var=yes"
20576 else
20577 echo "configure: failed program was:" >&5
20578 cat conftest.$ac_ext >&5
20579 rm -rf conftest*
20580 eval "ac_cv_lib_$ac_lib_var=no"
20581 fi
20582 rm -f conftest*
20583 LIBS="$ac_save_LIBS"
20584
20585 fi
20586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20587 echo "$ac_t""yes" 1>&6
20588
20589 HAVE_SHL_FUNCS=1
20590 DL_LINK=" -ldld$DL_LINK"
20591
20592 else
20593 echo "$ac_t""no" 1>&6
20594 fi
20595
20596
20597 fi
20598 done
20599
20600
20601 fi
20602
20603
20604 fi
20605 done
20606
20607
20608 if test "$HAVE_DL_FUNCS" = 1; then
20609 for ac_func in dlerror
20610 do
20611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20612 echo "configure:20613: checking for $ac_func" >&5
20613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20614 echo $ac_n "(cached) $ac_c" 1>&6
20615 else
20616 cat > conftest.$ac_ext <<EOF
20617 #line 20618 "configure"
20618 #include "confdefs.h"
20619 /* System header to define __stub macros and hopefully few prototypes,
20620 which can conflict with char $ac_func(); below. */
20621 #include <assert.h>
20622 /* Override any gcc2 internal prototype to avoid an error. */
20623 /* We use char because int might match the return type of a gcc2
20624 builtin and then its argument prototype would still apply. */
20625 char $ac_func();
20626
20627 int main() {
20628
20629 /* The GNU C library defines this for functions which it implements
20630 to always fail with ENOSYS. Some functions are actually named
20631 something starting with __ and the normal name is an alias. */
20632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20633 choke me
20634 #else
20635 $ac_func();
20636 #endif
20637
20638 ; return 0; }
20639 EOF
20640 if { (eval echo configure:20641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20641 rm -rf conftest*
20642 eval "ac_cv_func_$ac_func=yes"
20643 else
20644 echo "configure: failed program was:" >&5
20645 cat conftest.$ac_ext >&5
20646 rm -rf conftest*
20647 eval "ac_cv_func_$ac_func=no"
20648 fi
20649 rm -f conftest*
20650 fi
20651
20652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20653 echo "$ac_t""yes" 1>&6
20654 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20655 cat >> confdefs.h <<EOF
20656 #define $ac_tr_func 1
20657 EOF
20658 cat >> confdefs.h <<\EOF
20659 #define HAVE_DLERROR 1
20660 EOF
20661
20662 else
20663 echo "$ac_t""no" 1>&6
20664 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
20665 echo "configure:20666: checking for dlerror in -ldl" >&5
20666 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20668 echo $ac_n "(cached) $ac_c" 1>&6
20669 else
20670 ac_save_LIBS="$LIBS"
20671 LIBS="-ldl $LIBS"
20672 cat > conftest.$ac_ext <<EOF
20673 #line 20674 "configure"
20674 #include "confdefs.h"
20675 /* Override any gcc2 internal prototype to avoid an error. */
20676 /* We use char because int might match the return type of a gcc2
20677 builtin and then its argument prototype would still apply. */
20678 char dlerror();
20679
20680 int main() {
20681 dlerror()
20682 ; return 0; }
20683 EOF
20684 if { (eval echo configure:20685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20685 rm -rf conftest*
20686 eval "ac_cv_lib_$ac_lib_var=yes"
20687 else
20688 echo "configure: failed program was:" >&5
20689 cat conftest.$ac_ext >&5
20690 rm -rf conftest*
20691 eval "ac_cv_lib_$ac_lib_var=no"
20692 fi
20693 rm -f conftest*
20694 LIBS="$ac_save_LIBS"
20695
20696 fi
20697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20698 echo "$ac_t""yes" 1>&6
20699 cat >> confdefs.h <<\EOF
20700 #define HAVE_DLERROR 1
20701 EOF
20702
20703 else
20704 echo "$ac_t""no" 1>&6
20705 fi
20706
20707 fi
20708 done
20709
20710 fi
20711 fi
20712
20713 if test "$HAVE_DL_FUNCS" = 0; then
20714 if test "$HAVE_SHL_FUNCS" = 0; then
20715 if test "$USE_UNIX" = 1; then
20716 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
20717 wxUSE_DYNAMIC_LOADER=no
20718 wxUSE_DYNLIB_CLASS=no
20719 else
20720 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
20721 fi
20722 fi
20723 fi
20724 fi
20725 fi
20726
20727 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
20728 cat >> confdefs.h <<\EOF
20729 #define wxUSE_DYNAMIC_LOADER 1
20730 EOF
20731
20732 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20733 cat >> confdefs.h <<\EOF
20734 #define wxUSE_DYNLIB_CLASS 1
20735 EOF
20736
20737 fi
20738
20739
20740 if test "$wxUSE_FONTMAP" = "yes" ; then
20741 cat >> confdefs.h <<\EOF
20742 #define wxUSE_FONTMAP 1
20743 EOF
20744
20745 fi
20746
20747 if test "$wxUSE_UNICODE" = "yes" ; then
20748 cat >> confdefs.h <<\EOF
20749 #define wxUSE_UNICODE 1
20750 EOF
20751
20752
20753 if test "$wxUSE_MSW" != 1; then
20754 wxUSE_UNICODE_MSLU=no
20755 fi
20756
20757 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
20758 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
20759 echo "configure:20760: checking for main in -lunicows" >&5
20760 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20762 echo $ac_n "(cached) $ac_c" 1>&6
20763 else
20764 ac_save_LIBS="$LIBS"
20765 LIBS="-lunicows $LIBS"
20766 cat > conftest.$ac_ext <<EOF
20767 #line 20768 "configure"
20768 #include "confdefs.h"
20769
20770 int main() {
20771 main()
20772 ; return 0; }
20773 EOF
20774 if { (eval echo configure:20775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20775 rm -rf conftest*
20776 eval "ac_cv_lib_$ac_lib_var=yes"
20777 else
20778 echo "configure: failed program was:" >&5
20779 cat conftest.$ac_ext >&5
20780 rm -rf conftest*
20781 eval "ac_cv_lib_$ac_lib_var=no"
20782 fi
20783 rm -f conftest*
20784 LIBS="$ac_save_LIBS"
20785
20786 fi
20787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20788 echo "$ac_t""yes" 1>&6
20789
20790 cat >> confdefs.h <<\EOF
20791 #define wxUSE_UNICODE_MSLU 1
20792 EOF
20793
20794
20795 else
20796 echo "$ac_t""no" 1>&6
20797
20798 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20799 Applications will only run on Windows NT/2000/XP!" 1>&2
20800 wxUSE_UNICODE_MSLU=no
20801
20802 fi
20803
20804 fi
20805 fi
20806
20807 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
20808 cat >> confdefs.h <<\EOF
20809 #define wxUSE_EXPERIMENTAL_PRINTF 1
20810 EOF
20811
20812 fi
20813
20814
20815
20816 IODBC_C_SRC=""
20817 if test "$wxUSE_ODBC" = "yes" ; then
20818 cat >> confdefs.h <<\EOF
20819 #define wxUSE_ODBC 1
20820 EOF
20821
20822 WXODBCFLAG="-D_IODBC_"
20823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
20824 fi
20825
20826
20827 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
20828 cat >> confdefs.h <<\EOF
20829 #define wxUSE_POSTSCRIPT 1
20830 EOF
20831
20832 fi
20833
20834 cat >> confdefs.h <<\EOF
20835 #define wxUSE_AFM_FOR_POSTSCRIPT 1
20836 EOF
20837
20838
20839 cat >> confdefs.h <<\EOF
20840 #define wxUSE_NORMALIZED_PS_FONTS 1
20841 EOF
20842
20843
20844
20845 if test "$wxUSE_CONSTRAINTS" = "yes"; then
20846 cat >> confdefs.h <<\EOF
20847 #define wxUSE_CONSTRAINTS 1
20848 EOF
20849
20850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
20851 fi
20852
20853 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20854
20855
20856 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20857 cat >> confdefs.h <<\EOF
20858 #define wxUSE_MDI_ARCHITECTURE 1
20859 EOF
20860
20861 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
20862 fi
20863 fi
20864
20865 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
20866 cat >> confdefs.h <<\EOF
20867 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
20868 EOF
20869
20870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
20871 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
20873 fi
20874 fi
20875
20876 if test "$wxUSE_HELP" = "yes"; then
20877 cat >> confdefs.h <<\EOF
20878 #define wxUSE_HELP 1
20879 EOF
20880
20881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
20882
20883 if test "$wxUSE_MSW" = 1; then
20884 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
20885 cat >> confdefs.h <<\EOF
20886 #define wxUSE_MS_HTML_HELP 1
20887 EOF
20888
20889 fi
20890 fi
20891
20892 if test "$wxUSE_WXHTML_HELP" = "yes"; then
20893 if test "$wxUSE_HTML" = "yes"; then
20894 cat >> confdefs.h <<\EOF
20895 #define wxUSE_WXHTML_HELP 1
20896 EOF
20897
20898 else
20899 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
20900 wxUSE_WXHTML_HELP=no
20901 fi
20902 fi
20903 fi
20904
20905 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20906 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20907 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
20908 else
20909 cat >> confdefs.h <<\EOF
20910 #define wxUSE_PRINTING_ARCHITECTURE 1
20911 EOF
20912
20913 fi
20914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
20915 fi
20916
20917 if test "$wxUSE_PROLOGIO" = "yes" ; then
20918 cat >> confdefs.h <<\EOF
20919 #define wxUSE_PROLOGIO 1
20920 EOF
20921
20922 ALL_OBJECTS="$ALL_OBJECTS parser.o"
20923 fi
20924
20925 if test "$wxUSE_RESOURCES" = "yes" ; then
20926 if test "$wxUSE_NANOX" = "yes"; then
20927 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
20928 else
20929 cat >> confdefs.h <<\EOF
20930 #define wxUSE_RESOURCES 1
20931 EOF
20932
20933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
20934 fi
20935 if test "$wxUSE_PROLOGIO" != "yes" ; then
20936 ALL_OBJECTS="$ALL_OBJECTS parser.o"
20937 fi
20938 fi
20939
20940 if test "$wxUSE_X_RESOURCES" = "yes"; then
20941 cat >> confdefs.h <<\EOF
20942 #define wxUSE_X_RESOURCES 1
20943 EOF
20944
20945 fi
20946
20947
20948 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
20949 -o "$wxUSE_CLIPBOARD" = "yes" \
20950 -o "$wxUSE_OLE" = "yes" \
20951 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
20952 for ac_hdr in ole2.h
20953 do
20954 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20955 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20956 echo "configure:20957: checking for $ac_hdr" >&5
20957 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20958 echo $ac_n "(cached) $ac_c" 1>&6
20959 else
20960 cat > conftest.$ac_ext <<EOF
20961 #line 20962 "configure"
20962 #include "confdefs.h"
20963 #include <$ac_hdr>
20964 EOF
20965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20966 { (eval echo configure:20967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20967 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20968 if test -z "$ac_err"; then
20969 rm -rf conftest*
20970 eval "ac_cv_header_$ac_safe=yes"
20971 else
20972 echo "$ac_err" >&5
20973 echo "configure: failed program was:" >&5
20974 cat conftest.$ac_ext >&5
20975 rm -rf conftest*
20976 eval "ac_cv_header_$ac_safe=no"
20977 fi
20978 rm -f conftest*
20979 fi
20980 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20981 echo "$ac_t""yes" 1>&6
20982 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20983 cat >> confdefs.h <<EOF
20984 #define $ac_tr_hdr 1
20985 EOF
20986
20987 else
20988 echo "$ac_t""no" 1>&6
20989 fi
20990 done
20991
20992
20993 if test "$ac_cv_header_ole2_h" = "yes" ; then
20994 if test "$GCC" = yes ; then
20995
20996 ac_ext=C
20997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20998 ac_cpp='$CXXCPP $CPPFLAGS'
20999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21001 cross_compiling=$ac_cv_prog_cxx_cross
21002
21003
21004 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
21005 echo "configure:21006: checking if g++ requires -fvtable-thunks" >&5
21006 cat > conftest.$ac_ext <<EOF
21007 #line 21008 "configure"
21008 #include "confdefs.h"
21009 #include <windows.h>
21010 #include <ole2.h>
21011 int main() {
21012
21013 ; return 0; }
21014 EOF
21015 if { (eval echo configure:21016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21016 rm -rf conftest*
21017 echo "$ac_t""no" 1>&6
21018 else
21019 echo "configure: failed program was:" >&5
21020 cat conftest.$ac_ext >&5
21021 rm -rf conftest*
21022 echo "$ac_t""yes" 1>&6
21023 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21024 fi
21025 rm -f conftest*
21026 ac_ext=c
21027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21028 ac_cpp='$CPP $CPPFLAGS'
21029 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21030 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21031 cross_compiling=$ac_cv_prog_cc_cross
21032
21033 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21034 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21035 cat >> confdefs.h <<\EOF
21036 #define wxUSE_OLE 1
21037 EOF
21038
21039
21040 fi
21041
21042 cat >> confdefs.h <<\EOF
21043 #define wxUSE_DATAOBJ 1
21044 EOF
21045
21046 else
21047 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21048
21049 wxUSE_CLIPBOARD=no
21050 wxUSE_DRAG_AND_DROP=no
21051 wxUSE_DATAOBJ=no
21052 wxUSE_OLE=no
21053 fi
21054
21055 if test "$wxUSE_METAFILE" = "yes"; then
21056 cat >> confdefs.h <<\EOF
21057 #define wxUSE_METAFILE 1
21058 EOF
21059
21060
21061 cat >> confdefs.h <<\EOF
21062 #define wxUSE_ENH_METAFILE 1
21063 EOF
21064
21065 fi
21066 fi
21067
21068 if test "$wxUSE_IPC" = "yes"; then
21069 if test "$wxUSE_SOCKETS" != "yes"; then
21070 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21071 fi
21072
21073 cat >> confdefs.h <<\EOF
21074 #define wxUSE_IPC 1
21075 EOF
21076
21077 fi
21078
21079 if test "$wxUSE_CLIPBOARD" = "yes"; then
21080 if test "$wxUSE_MGL" = 1; then
21081 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21082 wxUSE_CLIPBOARD=no
21083 fi
21084
21085 if test "$wxUSE_CLIPBOARD" = "yes"; then
21086 cat >> confdefs.h <<\EOF
21087 #define wxUSE_CLIPBOARD 1
21088 EOF
21089
21090
21091 cat >> confdefs.h <<\EOF
21092 #define wxUSE_DATAOBJ 1
21093 EOF
21094
21095 fi
21096 fi
21097
21098 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21099 if test "$wxUSE_GTK" = 1; then
21100 if test "$WXGTK12" != 1; then
21101 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21102 wxUSE_DRAG_AND_DROP=no
21103 fi
21104 fi
21105
21106 if test "$wxUSE_MOTIF" = 1; then
21107 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21108 wxUSE_DRAG_AND_DROP=no
21109 fi
21110
21111 if test "$wxUSE_X11" = 1; then
21112 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21113 wxUSE_DRAG_AND_DROP=no
21114 fi
21115
21116 if test "$wxUSE_MGL" = 1; then
21117 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21118 wxUSE_DRAG_AND_DROP=no
21119 fi
21120
21121 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21122 cat >> confdefs.h <<\EOF
21123 #define wxUSE_DRAG_AND_DROP 1
21124 EOF
21125
21126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21127 fi
21128
21129 fi
21130
21131 if test "$wxUSE_SPLINES" = "yes" ; then
21132 cat >> confdefs.h <<\EOF
21133 #define wxUSE_SPLINES 1
21134 EOF
21135
21136 fi
21137
21138
21139 USES_CONTROLS=0
21140 if test "$wxUSE_CONTROLS" = "yes"; then
21141 USES_CONTROLS=1
21142 fi
21143
21144 if test "$wxUSE_ACCEL" = "yes"; then
21145 cat >> confdefs.h <<\EOF
21146 #define wxUSE_ACCEL 1
21147 EOF
21148
21149 USES_CONTROLS=1
21150 fi
21151
21152 if test "$wxUSE_BUTTON" = "yes"; then
21153 cat >> confdefs.h <<\EOF
21154 #define wxUSE_BUTTON 1
21155 EOF
21156
21157 USES_CONTROLS=1
21158 fi
21159
21160 if test "$wxUSE_BMPBUTTON" = "yes"; then
21161 cat >> confdefs.h <<\EOF
21162 #define wxUSE_BMPBUTTON 1
21163 EOF
21164
21165 USES_CONTROLS=1
21166 fi
21167
21168 if test "$wxUSE_CALCTRL" = "yes"; then
21169 cat >> confdefs.h <<\EOF
21170 #define wxUSE_CALENDARCTRL 1
21171 EOF
21172
21173 USES_CONTROLS=1
21174 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21175 fi
21176
21177 if test "$wxUSE_CARET" = "yes"; then
21178 cat >> confdefs.h <<\EOF
21179 #define wxUSE_CARET 1
21180 EOF
21181
21182 USES_CONTROLS=1
21183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21184 fi
21185
21186 if test "$wxUSE_COMBOBOX" = "yes"; then
21187 cat >> confdefs.h <<\EOF
21188 #define wxUSE_COMBOBOX 1
21189 EOF
21190
21191 USES_CONTROLS=1
21192 fi
21193
21194 if test "$wxUSE_CHOICE" = "yes"; then
21195 cat >> confdefs.h <<\EOF
21196 #define wxUSE_CHOICE 1
21197 EOF
21198
21199 USES_CONTROLS=1
21200 fi
21201
21202 if test "$wxUSE_CHECKBOX" = "yes"; then
21203 cat >> confdefs.h <<\EOF
21204 #define wxUSE_CHECKBOX 1
21205 EOF
21206
21207 USES_CONTROLS=1
21208 fi
21209
21210 if test "$wxUSE_CHECKLST" = "yes"; then
21211 cat >> confdefs.h <<\EOF
21212 #define wxUSE_CHECKLISTBOX 1
21213 EOF
21214
21215 USES_CONTROLS=1
21216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21217 fi
21218
21219 if test "$wxUSE_GAUGE" = "yes"; then
21220 cat >> confdefs.h <<\EOF
21221 #define wxUSE_GAUGE 1
21222 EOF
21223
21224 USES_CONTROLS=1
21225 fi
21226
21227 if test "$wxUSE_NEW_GRID" = "yes"; then
21228 wxUSE_GRID="yes"
21229 cat >> confdefs.h <<\EOF
21230 #define wxUSE_NEW_GRID 1
21231 EOF
21232
21233 USES_CONTROLS=1
21234 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
21235 fi
21236
21237 if test "$wxUSE_GRID" = "yes"; then
21238 cat >> confdefs.h <<\EOF
21239 #define wxUSE_GRID 1
21240 EOF
21241
21242 USES_CONTROLS=1
21243 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21244 fi
21245
21246 if test "$wxUSE_IMAGLIST" = "yes"; then
21247 cat >> confdefs.h <<\EOF
21248 #define wxUSE_IMAGLIST 1
21249 EOF
21250
21251 fi
21252
21253 if test "$wxUSE_LISTBOX" = "yes"; then
21254 cat >> confdefs.h <<\EOF
21255 #define wxUSE_LISTBOX 1
21256 EOF
21257
21258 USES_CONTROLS=1
21259 fi
21260
21261 if test "$wxUSE_LISTCTRL" = "yes"; then
21262 if test "$wxUSE_IMAGLIST" = "yes"; then
21263 cat >> confdefs.h <<\EOF
21264 #define wxUSE_LISTCTRL 1
21265 EOF
21266
21267 USES_CONTROLS=1
21268 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21269 else
21270 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21271 fi
21272 fi
21273
21274 if test "$wxUSE_NOTEBOOK" = "yes"; then
21275 cat >> confdefs.h <<\EOF
21276 #define wxUSE_NOTEBOOK 1
21277 EOF
21278
21279 USES_CONTROLS=1
21280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21281 fi
21282
21283 if test "$wxUSE_PROPSHEET" = "yes"; then
21284 cat >> confdefs.h <<\EOF
21285 #define wxUSE_PROPSHEET 1
21286 EOF
21287
21288 USES_CONTROLS=1
21289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
21290 fi
21291
21292 if test "$wxUSE_RADIOBOX" = "yes"; then
21293 cat >> confdefs.h <<\EOF
21294 #define wxUSE_RADIOBOX 1
21295 EOF
21296
21297 USES_CONTROLS=1
21298 fi
21299
21300 if test "$wxUSE_RADIOBTN" = "yes"; then
21301 cat >> confdefs.h <<\EOF
21302 #define wxUSE_RADIOBTN 1
21303 EOF
21304
21305 USES_CONTROLS=1
21306 fi
21307
21308 if test "$wxUSE_SASH" = "yes"; then
21309 cat >> confdefs.h <<\EOF
21310 #define wxUSE_SASH 1
21311 EOF
21312
21313 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21314 fi
21315
21316 if test "$wxUSE_SCROLLBAR" = "yes"; then
21317 cat >> confdefs.h <<\EOF
21318 #define wxUSE_SCROLLBAR 1
21319 EOF
21320
21321 USES_CONTROLS=1
21322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21323 fi
21324
21325 if test "$wxUSE_SLIDER" = "yes"; then
21326 cat >> confdefs.h <<\EOF
21327 #define wxUSE_SLIDER 1
21328 EOF
21329
21330 USES_CONTROLS=1
21331 fi
21332
21333 if test "$wxUSE_SPINBTN" = "yes"; then
21334 cat >> confdefs.h <<\EOF
21335 #define wxUSE_SPINBTN 1
21336 EOF
21337
21338 USES_CONTROLS=1
21339 fi
21340
21341 if test "$wxUSE_SPINCTRL" = "yes"; then
21342 cat >> confdefs.h <<\EOF
21343 #define wxUSE_SPINCTRL 1
21344 EOF
21345
21346 USES_CONTROLS=1
21347 fi
21348
21349 if test "$wxUSE_SPLITTER" = "yes"; then
21350 cat >> confdefs.h <<\EOF
21351 #define wxUSE_SPLITTER 1
21352 EOF
21353
21354 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21355 fi
21356
21357 if test "$wxUSE_STATBMP" = "yes"; then
21358 cat >> confdefs.h <<\EOF
21359 #define wxUSE_STATBMP 1
21360 EOF
21361
21362 USES_CONTROLS=1
21363 fi
21364
21365 if test "$wxUSE_STATBOX" = "yes"; then
21366 cat >> confdefs.h <<\EOF
21367 #define wxUSE_STATBOX 1
21368 EOF
21369
21370 USES_CONTROLS=1
21371 fi
21372
21373 if test "$wxUSE_STATTEXT" = "yes"; then
21374 cat >> confdefs.h <<\EOF
21375 #define wxUSE_STATTEXT 1
21376 EOF
21377
21378 USES_CONTROLS=1
21379 fi
21380
21381 if test "$wxUSE_STATLINE" = "yes"; then
21382 cat >> confdefs.h <<\EOF
21383 #define wxUSE_STATLINE 1
21384 EOF
21385
21386 USES_CONTROLS=1
21387 fi
21388
21389 if test "$wxUSE_STATUSBAR" = "yes"; then
21390 cat >> confdefs.h <<\EOF
21391 #define wxUSE_STATUSBAR 1
21392 EOF
21393
21394 USES_CONTROLS=1
21395
21396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21397 fi
21398
21399 if test "$wxUSE_TABDIALOG" = "yes"; then
21400 cat >> confdefs.h <<\EOF
21401 #define wxUSE_TAB_DIALOG 1
21402 EOF
21403
21404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21405 fi
21406
21407 if test "$wxUSE_TEXTCTRL" = "yes"; then
21408 cat >> confdefs.h <<\EOF
21409 #define wxUSE_TEXTCTRL 1
21410 EOF
21411
21412 USES_CONTROLS=1
21413 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21414 fi
21415
21416 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21417 if test "$wxUSE_MAC" = 1; then
21418 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21419 wxUSE_TOGGLEBTN=no
21420 fi
21421 if test "$wxUSE_UNIVERSAL" = "yes"; then
21422 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21423 wxUSE_TOGGLEBTN=no
21424 fi
21425
21426 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21427 cat >> confdefs.h <<\EOF
21428 #define wxUSE_TOGGLEBTN 1
21429 EOF
21430
21431 USES_CONTROLS=1
21432 fi
21433 fi
21434
21435 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21436 cat >> confdefs.h <<\EOF
21437 #define wxUSE_TOOLBAR_SIMPLE 1
21438 EOF
21439
21440 wxUSE_TOOLBAR="yes"
21441 USES_CONTROLS=1
21442 fi
21443
21444 if test "$wxUSE_TOOLBAR" = "yes"; then
21445 cat >> confdefs.h <<\EOF
21446 #define wxUSE_TOOLBAR 1
21447 EOF
21448
21449 USES_CONTROLS=1
21450
21451 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21452 wxUSE_TOOLBAR_NATIVE="yes"
21453 fi
21454
21455 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21456 cat >> confdefs.h <<\EOF
21457 #define wxUSE_TOOLBAR_NATIVE 1
21458 EOF
21459
21460 USES_CONTROLS=1
21461 fi
21462
21463 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21464 fi
21465
21466 if test "$wxUSE_TOOLTIPS" = "yes"; then
21467 if test "$wxUSE_MOTIF" = 1; then
21468 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21469 else
21470 if test "$wxUSE_UNIVERSAL" = "yes"; then
21471 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21472 else
21473 cat >> confdefs.h <<\EOF
21474 #define wxUSE_TOOLTIPS 1
21475 EOF
21476
21477 fi
21478 fi
21479 fi
21480
21481 if test "$wxUSE_TREECTRL" = "yes"; then
21482 if test "$wxUSE_IMAGLIST" = "yes"; then
21483 cat >> confdefs.h <<\EOF
21484 #define wxUSE_TREECTRL 1
21485 EOF
21486
21487 USES_CONTROLS=1
21488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21489 else
21490 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21491 fi
21492 fi
21493
21494 if test "$wxUSE_POPUPWIN" = "yes"; then
21495 if test "$wxUSE_MAC" = 1; then
21496 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21497 else
21498 if test "$wxUSE_MOTIF" = 1; then
21499 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21500 else
21501 if test "$wxUSE_PM" = 1; then
21502 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21503 else
21504 cat >> confdefs.h <<\EOF
21505 #define wxUSE_POPUPWIN 1
21506 EOF
21507
21508
21509 USES_CONTROLS=1
21510 fi
21511 fi
21512 fi
21513 fi
21514
21515 if test "$wxUSE_TIPWINDOW" = "yes"; then
21516 if test "$wxUSE_PM" = 1; then
21517 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21518 else
21519 cat >> confdefs.h <<\EOF
21520 #define wxUSE_TIPWINDOW 1
21521 EOF
21522
21523 fi
21524 fi
21525
21526 if test "$USES_CONTROLS" = 1; then
21527 cat >> confdefs.h <<\EOF
21528 #define wxUSE_CONTROLS 1
21529 EOF
21530
21531 fi
21532
21533
21534 if test "$wxUSE_TREELAYOUT" = "yes"; then
21535 cat >> confdefs.h <<\EOF
21536 #define wxUSE_TREELAYOUT 1
21537 EOF
21538
21539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
21540 fi
21541
21542 if test "$wxUSE_DRAGIMAGE" = "yes"; then
21543 cat >> confdefs.h <<\EOF
21544 #define wxUSE_DRAGIMAGE 1
21545 EOF
21546
21547 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21548 fi
21549
21550 if test "$wxUSE_MENUS" = "yes"; then
21551 cat >> confdefs.h <<\EOF
21552 #define wxUSE_MENUS 1
21553 EOF
21554
21555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21556 fi
21557
21558 if test "$wxUSE_METAFILE" = "yes"; then
21559 cat >> confdefs.h <<\EOF
21560 #define wxUSE_METAFILE 1
21561 EOF
21562
21563 fi
21564
21565 if test "$wxUSE_MIMETYPE" = "yes"; then
21566 cat >> confdefs.h <<\EOF
21567 #define wxUSE_MIMETYPE 1
21568 EOF
21569
21570 fi
21571
21572 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21573 cat >> confdefs.h <<\EOF
21574 #define wxUSE_SYSTEM_OPTIONS 1
21575 EOF
21576
21577 if test "$TOOLKIT" = "MSW"; then
21578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21579 fi
21580
21581 fi
21582
21583 if test "$wxUSE_PROTOCOL" = "yes"; then
21584 if test "$wxUSE_SOCKETS" != "yes"; then
21585 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21586 wxUSE_PROTOCOL=no
21587 fi
21588
21589 if test "$wxUSE_PROTOCOL" = "yes"; then
21590 cat >> confdefs.h <<\EOF
21591 #define wxUSE_PROTOCOL 1
21592 EOF
21593
21594
21595 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21596 cat >> confdefs.h <<\EOF
21597 #define wxUSE_PROTOCOL_HTTP 1
21598 EOF
21599
21600 fi
21601 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21602 cat >> confdefs.h <<\EOF
21603 #define wxUSE_PROTOCOL_FTP 1
21604 EOF
21605
21606 fi
21607 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21608 cat >> confdefs.h <<\EOF
21609 #define wxUSE_PROTOCOL_FILE 1
21610 EOF
21611
21612 fi
21613 fi
21614 fi
21615
21616 if test "$wxUSE_URL" = "yes"; then
21617 if test "$wxUSE_PROTOCOL" != "yes"; then
21618 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21619 wxUSE_URL=no
21620 fi
21621 if test "$wxUSE_URL" = "yes"; then
21622 cat >> confdefs.h <<\EOF
21623 #define wxUSE_URL 1
21624 EOF
21625
21626 fi
21627 fi
21628
21629 if test "$wxUSE_MINIFRAME" = "yes"; then
21630 cat >> confdefs.h <<\EOF
21631 #define wxUSE_MINIFRAME 1
21632 EOF
21633
21634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21635 fi
21636
21637 if test "$wxUSE_HTML" = "yes"; then
21638 cat >> confdefs.h <<\EOF
21639 #define wxUSE_HTML 1
21640 EOF
21641
21642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21643 fi
21644
21645 if test "$wxUSE_VALIDATORS" = "yes"; then
21646 cat >> confdefs.h <<\EOF
21647 #define wxUSE_VALIDATORS 1
21648 EOF
21649
21650 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21651 fi
21652
21653 if test "$wxUSE_PALETTE" = "yes" ; then
21654 cat >> confdefs.h <<\EOF
21655 #define wxUSE_PALETTE 1
21656 EOF
21657
21658 fi
21659
21660 if test "$wxUSE_IMAGE" = "yes" ; then
21661 cat >> confdefs.h <<\EOF
21662 #define wxUSE_IMAGE 1
21663 EOF
21664
21665 fi
21666
21667 if test "$wxUSE_GIF" = "yes" ; then
21668 cat >> confdefs.h <<\EOF
21669 #define wxUSE_GIF 1
21670 EOF
21671
21672 fi
21673
21674 if test "$wxUSE_PCX" = "yes" ; then
21675 cat >> confdefs.h <<\EOF
21676 #define wxUSE_PCX 1
21677 EOF
21678
21679 fi
21680
21681 if test "$wxUSE_IFF" = "yes" ; then
21682 cat >> confdefs.h <<\EOF
21683 #define wxUSE_IFF 1
21684 EOF
21685
21686 fi
21687
21688 if test "$wxUSE_PNM" = "yes" ; then
21689 cat >> confdefs.h <<\EOF
21690 #define wxUSE_PNM 1
21691 EOF
21692
21693 fi
21694
21695 if test "$wxUSE_XPM" = "yes" ; then
21696 cat >> confdefs.h <<\EOF
21697 #define wxUSE_XPM 1
21698 EOF
21699
21700 fi
21701
21702 if test "$wxUSE_ICO_CUR" = "yes" ; then
21703 cat >> confdefs.h <<\EOF
21704 #define wxUSE_ICO_CUR 1
21705 EOF
21706
21707 fi
21708
21709 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21710 LIBS=" -lunicows $LIBS"
21711 fi
21712
21713
21714 if test "$wxUSE_CHOICEDLG" = "yes"; then
21715 cat >> confdefs.h <<\EOF
21716 #define wxUSE_CHOICEDLG 1
21717 EOF
21718
21719 fi
21720
21721 if test "$wxUSE_COLOURDLG" = "yes"; then
21722 cat >> confdefs.h <<\EOF
21723 #define wxUSE_COLOURDLG 1
21724 EOF
21725
21726 fi
21727
21728 if test "$wxUSE_FILEDLG" = "yes"; then
21729 cat >> confdefs.h <<\EOF
21730 #define wxUSE_FILEDLG 1
21731 EOF
21732
21733 fi
21734
21735 if test "$wxUSE_FINDREPLDLG" = "yes"; then
21736 cat >> confdefs.h <<\EOF
21737 #define wxUSE_FINDREPLDLG 1
21738 EOF
21739
21740 fi
21741
21742 if test "$wxUSE_FONTDLG" = "yes"; then
21743 cat >> confdefs.h <<\EOF
21744 #define wxUSE_FONTDLG 1
21745 EOF
21746
21747 fi
21748
21749 if test "$wxUSE_DIRDLG" = "yes"; then
21750 if test "$wxUSE_TREECTRL" != "yes"; then
21751 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
21752 else
21753 cat >> confdefs.h <<\EOF
21754 #define wxUSE_DIRDLG 1
21755 EOF
21756
21757 fi
21758 fi
21759
21760 if test "$wxUSE_MSGDLG" = "yes"; then
21761 cat >> confdefs.h <<\EOF
21762 #define wxUSE_MSGDLG 1
21763 EOF
21764
21765 fi
21766
21767 if test "$wxUSE_NUMBERDLG" = "yes"; then
21768 cat >> confdefs.h <<\EOF
21769 #define wxUSE_NUMBERDLG 1
21770 EOF
21771
21772 fi
21773
21774 if test "$wxUSE_PROGRESSDLG" = "yes"; then
21775 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21776 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
21777 else
21778 cat >> confdefs.h <<\EOF
21779 #define wxUSE_PROGRESSDLG 1
21780 EOF
21781
21782 fi
21783 fi
21784
21785 if test "$wxUSE_SPLASH" = "yes"; then
21786 cat >> confdefs.h <<\EOF
21787 #define wxUSE_SPLASH 1
21788 EOF
21789
21790 fi
21791
21792 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21793 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21794 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
21795 else
21796 cat >> confdefs.h <<\EOF
21797 #define wxUSE_STARTUP_TIPS 1
21798 EOF
21799
21800 fi
21801 fi
21802
21803 if test "$wxUSE_TEXTDLG" = "yes"; then
21804 cat >> confdefs.h <<\EOF
21805 #define wxUSE_TEXTDLG 1
21806 EOF
21807
21808 fi
21809
21810 if test "$wxUSE_WIZARDDLG" = "yes"; then
21811 cat >> confdefs.h <<\EOF
21812 #define wxUSE_WIZARDDLG 1
21813 EOF
21814
21815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21816 fi
21817
21818
21819 if test "$cross_compiling" = "yes"; then
21820 OSINFO="\"$host\""
21821 else
21822 OSINFO=`uname -s -r -m`
21823 OSINFO="\"$OSINFO\""
21824 fi
21825
21826 cat >> confdefs.h <<EOF
21827 #define WXWIN_OS_DESCRIPTION $OSINFO
21828 EOF
21829
21830
21831
21832 if test "x$prefix" != "xNONE"; then
21833 wxPREFIX=$prefix
21834 else
21835 wxPREFIX=$ac_default_prefix
21836 fi
21837
21838 cat >> confdefs.h <<EOF
21839 #define wxINSTALL_PREFIX "$wxPREFIX"
21840 EOF
21841
21842
21843 top_builddir=`pwd`
21844
21845
21846
21847
21848 if test "$wxUSE_MAC" = 1 ; then
21849 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21850 fi
21851
21852
21853 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
21854
21855 have_cos=0
21856 have_floor=0
21857 for ac_func in cos
21858 do
21859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21860 echo "configure:21861: checking for $ac_func" >&5
21861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21862 echo $ac_n "(cached) $ac_c" 1>&6
21863 else
21864 cat > conftest.$ac_ext <<EOF
21865 #line 21866 "configure"
21866 #include "confdefs.h"
21867 /* System header to define __stub macros and hopefully few prototypes,
21868 which can conflict with char $ac_func(); below. */
21869 #include <assert.h>
21870 /* Override any gcc2 internal prototype to avoid an error. */
21871 /* We use char because int might match the return type of a gcc2
21872 builtin and then its argument prototype would still apply. */
21873 char $ac_func();
21874
21875 int main() {
21876
21877 /* The GNU C library defines this for functions which it implements
21878 to always fail with ENOSYS. Some functions are actually named
21879 something starting with __ and the normal name is an alias. */
21880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21881 choke me
21882 #else
21883 $ac_func();
21884 #endif
21885
21886 ; return 0; }
21887 EOF
21888 if { (eval echo configure:21889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21889 rm -rf conftest*
21890 eval "ac_cv_func_$ac_func=yes"
21891 else
21892 echo "configure: failed program was:" >&5
21893 cat conftest.$ac_ext >&5
21894 rm -rf conftest*
21895 eval "ac_cv_func_$ac_func=no"
21896 fi
21897 rm -f conftest*
21898 fi
21899
21900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21901 echo "$ac_t""yes" 1>&6
21902 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21903 cat >> confdefs.h <<EOF
21904 #define $ac_tr_func 1
21905 EOF
21906 have_cos=1
21907 else
21908 echo "$ac_t""no" 1>&6
21909 fi
21910 done
21911
21912 for ac_func in floor
21913 do
21914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21915 echo "configure:21916: checking for $ac_func" >&5
21916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21917 echo $ac_n "(cached) $ac_c" 1>&6
21918 else
21919 cat > conftest.$ac_ext <<EOF
21920 #line 21921 "configure"
21921 #include "confdefs.h"
21922 /* System header to define __stub macros and hopefully few prototypes,
21923 which can conflict with char $ac_func(); below. */
21924 #include <assert.h>
21925 /* Override any gcc2 internal prototype to avoid an error. */
21926 /* We use char because int might match the return type of a gcc2
21927 builtin and then its argument prototype would still apply. */
21928 char $ac_func();
21929
21930 int main() {
21931
21932 /* The GNU C library defines this for functions which it implements
21933 to always fail with ENOSYS. Some functions are actually named
21934 something starting with __ and the normal name is an alias. */
21935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21936 choke me
21937 #else
21938 $ac_func();
21939 #endif
21940
21941 ; return 0; }
21942 EOF
21943 if { (eval echo configure:21944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21944 rm -rf conftest*
21945 eval "ac_cv_func_$ac_func=yes"
21946 else
21947 echo "configure: failed program was:" >&5
21948 cat conftest.$ac_ext >&5
21949 rm -rf conftest*
21950 eval "ac_cv_func_$ac_func=no"
21951 fi
21952 rm -f conftest*
21953 fi
21954
21955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21956 echo "$ac_t""yes" 1>&6
21957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21958 cat >> confdefs.h <<EOF
21959 #define $ac_tr_func 1
21960 EOF
21961 have_floor=1
21962 else
21963 echo "$ac_t""no" 1>&6
21964 fi
21965 done
21966
21967 echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
21968 echo "configure:21969: checking if floating point functions link without -lm" >&5
21969 if test "$have_cos" = 1 -a "$have_floor" = 1; then
21970 echo "$ac_t""yes" 1>&6
21971 else
21972 echo "$ac_t""no" 1>&6
21973 LIBS="$LIBS -lm"
21974 # use different functions to avoid configure caching
21975 have_sin=0
21976 have_ceil=0
21977 for ac_func in sin
21978 do
21979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21980 echo "configure:21981: checking for $ac_func" >&5
21981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21982 echo $ac_n "(cached) $ac_c" 1>&6
21983 else
21984 cat > conftest.$ac_ext <<EOF
21985 #line 21986 "configure"
21986 #include "confdefs.h"
21987 /* System header to define __stub macros and hopefully few prototypes,
21988 which can conflict with char $ac_func(); below. */
21989 #include <assert.h>
21990 /* Override any gcc2 internal prototype to avoid an error. */
21991 /* We use char because int might match the return type of a gcc2
21992 builtin and then its argument prototype would still apply. */
21993 char $ac_func();
21994
21995 int main() {
21996
21997 /* The GNU C library defines this for functions which it implements
21998 to always fail with ENOSYS. Some functions are actually named
21999 something starting with __ and the normal name is an alias. */
22000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22001 choke me
22002 #else
22003 $ac_func();
22004 #endif
22005
22006 ; return 0; }
22007 EOF
22008 if { (eval echo configure:22009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22009 rm -rf conftest*
22010 eval "ac_cv_func_$ac_func=yes"
22011 else
22012 echo "configure: failed program was:" >&5
22013 cat conftest.$ac_ext >&5
22014 rm -rf conftest*
22015 eval "ac_cv_func_$ac_func=no"
22016 fi
22017 rm -f conftest*
22018 fi
22019
22020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22021 echo "$ac_t""yes" 1>&6
22022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22023 cat >> confdefs.h <<EOF
22024 #define $ac_tr_func 1
22025 EOF
22026 have_sin=1
22027 else
22028 echo "$ac_t""no" 1>&6
22029 fi
22030 done
22031
22032 for ac_func in ceil
22033 do
22034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22035 echo "configure:22036: checking for $ac_func" >&5
22036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22037 echo $ac_n "(cached) $ac_c" 1>&6
22038 else
22039 cat > conftest.$ac_ext <<EOF
22040 #line 22041 "configure"
22041 #include "confdefs.h"
22042 /* System header to define __stub macros and hopefully few prototypes,
22043 which can conflict with char $ac_func(); below. */
22044 #include <assert.h>
22045 /* Override any gcc2 internal prototype to avoid an error. */
22046 /* We use char because int might match the return type of a gcc2
22047 builtin and then its argument prototype would still apply. */
22048 char $ac_func();
22049
22050 int main() {
22051
22052 /* The GNU C library defines this for functions which it implements
22053 to always fail with ENOSYS. Some functions are actually named
22054 something starting with __ and the normal name is an alias. */
22055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22056 choke me
22057 #else
22058 $ac_func();
22059 #endif
22060
22061 ; return 0; }
22062 EOF
22063 if { (eval echo configure:22064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22064 rm -rf conftest*
22065 eval "ac_cv_func_$ac_func=yes"
22066 else
22067 echo "configure: failed program was:" >&5
22068 cat conftest.$ac_ext >&5
22069 rm -rf conftest*
22070 eval "ac_cv_func_$ac_func=no"
22071 fi
22072 rm -f conftest*
22073 fi
22074
22075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22076 echo "$ac_t""yes" 1>&6
22077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22078 cat >> confdefs.h <<EOF
22079 #define $ac_tr_func 1
22080 EOF
22081 have_ceil=1
22082 else
22083 echo "$ac_t""no" 1>&6
22084 fi
22085 done
22086
22087 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22088 echo "configure:22089: checking if floating point functions link with -lm" >&5
22089 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22090 echo "$ac_t""yes" 1>&6
22091 else
22092 echo "$ac_t""no" 1>&6
22093 # not sure we should warn the user, crash, etc.
22094 fi
22095 fi
22096
22097 if test "$wxUSE_GUI" = "yes"; then
22098
22099 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22100
22101
22102 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22103 drawing dynamic erase event exec font image \
22104 minimal propsize rotate widgets"
22105
22106 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22107 else
22108 SAMPLES_SUBDIRS="console"
22109 fi
22110
22111
22112 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22113 -I\${top_srcdir}/include \
22114 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22115 $TOOLKIT_INCLUDE"
22116
22117 if test "$wxUSE_GTK" = 1; then
22118 WXCONFIG_INCLUDE=
22119 else
22120 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22121 fi
22122
22123 if test "$GXX" = yes ; then
22124 CXXWARNINGS="-Wall"
22125
22126 if test "$wxUSE_NO_DEPS" = "no" ; then
22127 CFLAGS="-MMD $CFLAGS"
22128 CXXFLAGS="-MMD $CXXFLAGS"
22129 fi
22130 fi
22131
22132 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22133
22134 CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22135 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22136 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22137 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22138
22139 LDFLAGS="$LDFLAGS $PROFILE"
22140
22141 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22243 echo "configure:22244: checking whether ${MAKE-make} sets \${MAKE}" >&5
22244 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22245 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22246 echo $ac_n "(cached) $ac_c" 1>&6
22247 else
22248 cat > conftestmake <<\EOF
22249 all:
22250 @echo 'ac_maketemp="${MAKE}"'
22251 EOF
22252 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22253 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22254 if test -n "$ac_maketemp"; then
22255 eval ac_cv_prog_make_${ac_make}_set=yes
22256 else
22257 eval ac_cv_prog_make_${ac_make}_set=no
22258 fi
22259 rm -f conftestmake
22260 fi
22261 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22262 echo "$ac_t""yes" 1>&6
22263 SET_MAKE=
22264 else
22265 echo "$ac_t""no" 1>&6
22266 SET_MAKE="MAKE=${MAKE-make}"
22267 fi
22268
22269
22270 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22271 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22272 fi
22273
22274
22275
22276 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22277 wx_cv_if_gnu_make=$IF_GNU_MAKE
22278 wx_cv_path_ifs=$PATH_IFS
22279 wx_cv_program_ext=$PROGRAM_EXT
22280 wx_cv_target_library=$WX_TARGET_LIBRARY
22281 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22282 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22283 wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22284 wx_cv_release=${WX_RELEASE}
22285 wx_cv_current=${WX_CURRENT}
22286 wx_cv_revision=${WX_REVISION}
22287 wx_cv_age=${WX_AGE}
22288 wx_cv_use_gui=${USE_GUI}
22289 wx_cv_use_resources=${wxUSE_RESOURCES}
22290 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22291 wx_cv_path_ifs wx_cv_program_ext \
22292 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22293 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22294 wx_cv_use_gui wx_cv_use_resources
22295
22296 subdirs="demos samples utils contrib"
22297
22298
22299 trap '' 1 2 15
22300 cat > confcache <<\EOF
22301 # This file is a shell script that caches the results of configure
22302 # tests run on this system so they can be shared between configure
22303 # scripts and configure runs. It is not useful on other systems.
22304 # If it contains results you don't want to keep, you may remove or edit it.
22305 #
22306 # By default, configure uses ./config.cache as the cache file,
22307 # creating it if it does not exist already. You can give configure
22308 # the --cache-file=FILE option to use a different cache file; that is
22309 # what configure does when it calls configure scripts in
22310 # subdirectories, so they share the cache.
22311 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22312 # config.status only pays attention to the cache file if you give it the
22313 # --recheck option to rerun configure.
22314 #
22315 EOF
22316 # The following way of writing the cache mishandles newlines in values,
22317 # but we know of no workaround that is simple, portable, and efficient.
22318 # So, don't put newlines in cache variables' values.
22319 # Ultrix sh set writes to stderr and can't be redirected directly,
22320 # and sets the high bit in the cache file unless we assign to the vars.
22321 (set) 2>&1 |
22322 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22323 *ac_space=\ *)
22324 # `set' does not quote correctly, so add quotes (double-quote substitution
22325 # turns \\\\ into \\, and sed turns \\ into \).
22326 sed -n \
22327 -e "s/'/'\\\\''/g" \
22328 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22329 ;;
22330 *)
22331 # `set' quotes correctly as required by POSIX, so do not add quotes.
22332 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22333 ;;
22334 esac >> confcache
22335 if cmp -s $cache_file confcache; then
22336 :
22337 else
22338 if test -w $cache_file; then
22339 echo "updating cache $cache_file"
22340 cat confcache > $cache_file
22341 else
22342 echo "not updating unwritable cache $cache_file"
22343 fi
22344 fi
22345 rm -f confcache
22346
22347 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22348
22349 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22350 # Let make expand exec_prefix.
22351 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22352
22353 # Any assignment to VPATH causes Sun make to only execute
22354 # the first set of double-colon rules, so remove it if not needed.
22355 # If there is a colon in the path, we need to keep it.
22356 if test "x$srcdir" = x.; then
22357 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22358 fi
22359
22360 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22361
22362 DEFS=-DHAVE_CONFIG_H
22363
22364 # Without the "./", some shells look in PATH for config.status.
22365 : ${CONFIG_STATUS=./config.status}
22366
22367 echo creating $CONFIG_STATUS
22368 rm -f $CONFIG_STATUS
22369 cat > $CONFIG_STATUS <<EOF
22370 #! /bin/sh
22371 # Generated automatically by configure.
22372 # Run this file to recreate the current configuration.
22373 # This directory was configured as follows,
22374 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22375 #
22376 # $0 $ac_configure_args
22377 #
22378 # Compiler output produced by configure, useful for debugging
22379 # configure, is in ./config.log if it exists.
22380
22381 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22382 for ac_option
22383 do
22384 case "\$ac_option" in
22385 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22386 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22387 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22388 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22389 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22390 exit 0 ;;
22391 -help | --help | --hel | --he | --h)
22392 echo "\$ac_cs_usage"; exit 0 ;;
22393 *) echo "\$ac_cs_usage"; exit 1 ;;
22394 esac
22395 done
22396
22397 ac_given_srcdir=$srcdir
22398 ac_given_INSTALL="$INSTALL"
22399
22400 trap 'rm -fr `echo "
22401 wx-config
22402 version-script
22403 src/make.env
22404 src/makeprog.env
22405 src/makelib.env
22406 Makefile
22407 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22408 EOF
22409 cat >> $CONFIG_STATUS <<EOF
22410
22411 # Protect against being on the right side of a sed subst in config.status.
22412 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22413 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22414 $ac_vpsub
22415 $extrasub
22416 s%@SHELL@%$SHELL%g
22417 s%@CFLAGS@%$CFLAGS%g
22418 s%@CPPFLAGS@%$CPPFLAGS%g
22419 s%@CXXFLAGS@%$CXXFLAGS%g
22420 s%@FFLAGS@%$FFLAGS%g
22421 s%@DEFS@%$DEFS%g
22422 s%@LDFLAGS@%$LDFLAGS%g
22423 s%@LIBS@%$LIBS%g
22424 s%@exec_prefix@%$exec_prefix%g
22425 s%@prefix@%$prefix%g
22426 s%@program_transform_name@%$program_transform_name%g
22427 s%@bindir@%$bindir%g
22428 s%@sbindir@%$sbindir%g
22429 s%@libexecdir@%$libexecdir%g
22430 s%@datadir@%$datadir%g
22431 s%@sysconfdir@%$sysconfdir%g
22432 s%@sharedstatedir@%$sharedstatedir%g
22433 s%@localstatedir@%$localstatedir%g
22434 s%@libdir@%$libdir%g
22435 s%@includedir@%$includedir%g
22436 s%@oldincludedir@%$oldincludedir%g
22437 s%@infodir@%$infodir%g
22438 s%@mandir@%$mandir%g
22439 s%@host@%$host%g
22440 s%@host_alias@%$host_alias%g
22441 s%@host_cpu@%$host_cpu%g
22442 s%@host_vendor@%$host_vendor%g
22443 s%@host_os@%$host_os%g
22444 s%@target@%$target%g
22445 s%@target_alias@%$target_alias%g
22446 s%@target_cpu@%$target_cpu%g
22447 s%@target_vendor@%$target_vendor%g
22448 s%@target_os@%$target_os%g
22449 s%@build@%$build%g
22450 s%@build_alias@%$build_alias%g
22451 s%@build_cpu@%$build_cpu%g
22452 s%@build_vendor@%$build_vendor%g
22453 s%@build_os@%$build_os%g
22454 s%@CC@%$CC%g
22455 s%@CPP@%$CPP%g
22456 s%@CXX@%$CXX%g
22457 s%@RANLIB@%$RANLIB%g
22458 s%@AR@%$AR%g
22459 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22460 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22461 s%@INSTALL_DATA@%$INSTALL_DATA%g
22462 s%@STRIP@%$STRIP%g
22463 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22464 s%@YACC@%$YACC%g
22465 s%@LEX@%$LEX%g
22466 s%@LEXLIB@%$LEXLIB%g
22467 s%@LN_S@%$LN_S%g
22468 s%@CXXCPP@%$CXXCPP%g
22469 s%@PKG_CONFIG@%$PKG_CONFIG%g
22470 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22471 s%@GTK_LIBS@%$GTK_LIBS%g
22472 s%@GTK_CONFIG@%$GTK_CONFIG%g
22473 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22474 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22475 s%@X_CFLAGS@%$X_CFLAGS%g
22476 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22477 s%@X_LIBS@%$X_LIBS%g
22478 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22479 s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22480 s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22481 s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22482 s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22483 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22484 s%@RESCOMP@%$RESCOMP%g
22485 s%@DEREZ@%$DEREZ%g
22486 s%@SETFILE@%$SETFILE%g
22487 s%@LIBICONV@%$LIBICONV%g
22488 s%@LEX_STEM@%$LEX_STEM%g
22489 s%@PATH_IFS@%$PATH_IFS%g
22490 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22491 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22492 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22493 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22494 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22495 s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22496 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22497 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22498 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22499 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22500 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22501 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22502 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22503 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22504 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22505 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22506 s%@WX_ALL@%$WX_ALL%g
22507 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22508 s%@SHARED_LD@%$SHARED_LD%g
22509 s%@PIC_FLAG@%$PIC_FLAG%g
22510 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22511 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22512 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22513 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22514 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22515 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22516 s%@STATIC_FLAG@%$STATIC_FLAG%g
22517 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22518 s%@USE_GUI@%$USE_GUI%g
22519 s%@AFMINSTALL@%$AFMINSTALL%g
22520 s%@WIN32INSTALL@%$WIN32INSTALL%g
22521 s%@TOOLKIT@%$TOOLKIT%g
22522 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22523 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22524 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22525 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22526 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22527 s%@top_builddir@%$top_builddir%g
22528 s%@cross_compiling@%$cross_compiling%g
22529 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22530 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22531 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22532 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22533 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22534 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22535 s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22536 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22537 s%@ALL_HEADERS@%$ALL_HEADERS%g
22538 s%@ALL_SOURCES@%$ALL_SOURCES%g
22539 s%@GUIDIST@%$GUIDIST%g
22540 s%@PORT_FILES@%$PORT_FILES%g
22541 s%@DISTDIR@%$DISTDIR%g
22542 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22543 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22544 s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22545 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22546 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22547 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22548 s%@EXTRADEFS@%$EXTRADEFS%g
22549 s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22550 s%@RESFLAGS@%$RESFLAGS%g
22551 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22552 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22553 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22554 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22555 s%@LIBWXMACRES@%$LIBWXMACRES%g
22556 s%@MACRESCOMP@%$MACRESCOMP%g
22557 s%@MACSETFILE@%$MACSETFILE%g
22558 s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22559 s%@GCC@%$GCC%g
22560 s%@DLLTOOL@%$DLLTOOL%g
22561 s%@AS@%$AS%g
22562 s%@NM@%$NM%g
22563 s%@LD@%$LD%g
22564 s%@MAKEINFO@%$MAKEINFO%g
22565 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22566 s%@SET_MAKE@%$SET_MAKE%g
22567 s%@subdirs@%$subdirs%g
22568
22569 CEOF
22570 EOF
22571
22572 cat >> $CONFIG_STATUS <<\EOF
22573
22574 # Split the substitutions into bite-sized pieces for seds with
22575 # small command number limits, like on Digital OSF/1 and HP-UX.
22576 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22577 ac_file=1 # Number of current file.
22578 ac_beg=1 # First line for current file.
22579 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22580 ac_more_lines=:
22581 ac_sed_cmds=""
22582 while $ac_more_lines; do
22583 if test $ac_beg -gt 1; then
22584 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22585 else
22586 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22587 fi
22588 if test ! -s conftest.s$ac_file; then
22589 ac_more_lines=false
22590 rm -f conftest.s$ac_file
22591 else
22592 if test -z "$ac_sed_cmds"; then
22593 ac_sed_cmds="sed -f conftest.s$ac_file"
22594 else
22595 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22596 fi
22597 ac_file=`expr $ac_file + 1`
22598 ac_beg=$ac_end
22599 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22600 fi
22601 done
22602 if test -z "$ac_sed_cmds"; then
22603 ac_sed_cmds=cat
22604 fi
22605 EOF
22606
22607 cat >> $CONFIG_STATUS <<EOF
22608
22609 CONFIG_FILES=\${CONFIG_FILES-"wx-config
22610 version-script
22611 src/make.env
22612 src/makeprog.env
22613 src/makelib.env
22614 Makefile
22615 "}
22616 EOF
22617 cat >> $CONFIG_STATUS <<\EOF
22618 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22619 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22620 case "$ac_file" in
22621 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22622 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22623 *) ac_file_in="${ac_file}.in" ;;
22624 esac
22625
22626 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22627
22628 # Remove last slash and all that follows it. Not all systems have dirname.
22629 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22630 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22631 # The file is in a subdirectory.
22632 test ! -d "$ac_dir" && mkdir "$ac_dir"
22633 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22634 # A "../" for each directory in $ac_dir_suffix.
22635 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22636 else
22637 ac_dir_suffix= ac_dots=
22638 fi
22639
22640 case "$ac_given_srcdir" in
22641 .) srcdir=.
22642 if test -z "$ac_dots"; then top_srcdir=.
22643 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22644 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22645 *) # Relative path.
22646 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22647 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22648 esac
22649
22650 case "$ac_given_INSTALL" in
22651 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22652 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22653 esac
22654
22655 echo creating "$ac_file"
22656 rm -f "$ac_file"
22657 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22658 case "$ac_file" in
22659 *Makefile*) ac_comsub="1i\\
22660 # $configure_input" ;;
22661 *) ac_comsub= ;;
22662 esac
22663
22664 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22665 sed -e "$ac_comsub
22666 s%@configure_input@%$configure_input%g
22667 s%@srcdir@%$srcdir%g
22668 s%@top_srcdir@%$top_srcdir%g
22669 s%@INSTALL@%$INSTALL%g
22670 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22671 fi; done
22672 rm -f conftest.s*
22673
22674 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22675 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22676 #
22677 # ac_d sets the value in "#define NAME VALUE" lines.
22678 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22679 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22680 ac_dC='\3'
22681 ac_dD='%g'
22682 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22683 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22684 ac_uB='\([ ]\)%\1#\2define\3'
22685 ac_uC=' '
22686 ac_uD='\4%g'
22687 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22688 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22689 ac_eB='$%\1#\2define\3'
22690 ac_eC=' '
22691 ac_eD='%g'
22692
22693 if test "${CONFIG_HEADERS+set}" != set; then
22694 EOF
22695 cat >> $CONFIG_STATUS <<EOF
22696 CONFIG_HEADERS="setup.h:setup.h.in"
22697 EOF
22698 cat >> $CONFIG_STATUS <<\EOF
22699 fi
22700 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22701 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22702 case "$ac_file" in
22703 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22704 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22705 *) ac_file_in="${ac_file}.in" ;;
22706 esac
22707
22708 echo creating $ac_file
22709
22710 rm -f conftest.frag conftest.in conftest.out
22711 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22712 cat $ac_file_inputs > conftest.in
22713
22714 EOF
22715
22716 # Transform confdefs.h into a sed script conftest.vals that substitutes
22717 # the proper values into config.h.in to produce config.h. And first:
22718 # Protect against being on the right side of a sed subst in config.status.
22719 # Protect against being in an unquoted here document in config.status.
22720 rm -f conftest.vals
22721 cat > conftest.hdr <<\EOF
22722 s/[\\&%]/\\&/g
22723 s%[\\$`]%\\&%g
22724 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22725 s%ac_d%ac_u%gp
22726 s%ac_u%ac_e%gp
22727 EOF
22728 sed -n -f conftest.hdr confdefs.h > conftest.vals
22729 rm -f conftest.hdr
22730
22731 # This sed command replaces #undef with comments. This is necessary, for
22732 # example, in the case of _POSIX_SOURCE, which is predefined and required
22733 # on some systems where configure will not decide to define it.
22734 cat >> conftest.vals <<\EOF
22735 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22736 EOF
22737
22738 # Break up conftest.vals because some shells have a limit on
22739 # the size of here documents, and old seds have small limits too.
22740
22741 rm -f conftest.tail
22742 while :
22743 do
22744 ac_lines=`grep -c . conftest.vals`
22745 # grep -c gives empty output for an empty file on some AIX systems.
22746 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22747 # Write a limited-size here document to conftest.frag.
22748 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22749 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22750 echo 'CEOF
22751 sed -f conftest.frag conftest.in > conftest.out
22752 rm -f conftest.in
22753 mv conftest.out conftest.in
22754 ' >> $CONFIG_STATUS
22755 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22756 rm -f conftest.vals
22757 mv conftest.tail conftest.vals
22758 done
22759 rm -f conftest.vals
22760
22761 cat >> $CONFIG_STATUS <<\EOF
22762 rm -f conftest.frag conftest.h
22763 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22764 cat conftest.in >> conftest.h
22765 rm -f conftest.in
22766 if cmp -s $ac_file conftest.h 2>/dev/null; then
22767 echo "$ac_file is unchanged"
22768 rm -f conftest.h
22769 else
22770 # Remove last slash and all that follows it. Not all systems have dirname.
22771 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22772 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22773 # The file is in a subdirectory.
22774 test ! -d "$ac_dir" && mkdir "$ac_dir"
22775 fi
22776 rm -f $ac_file
22777 mv conftest.h $ac_file
22778 fi
22779 fi; done
22780
22781 EOF
22782 cat >> $CONFIG_STATUS <<EOF
22783
22784 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22785 LN_S="${LN_S}"
22786
22787
22788 EOF
22789 cat >> $CONFIG_STATUS <<\EOF
22790
22791 if test ! -h wx-config; then
22792 chmod +x wx-config
22793 mv wx-config wx${TOOLCHAIN_NAME}-config
22794 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
22795 fi
22796
22797 if test ! -d lib; then
22798 mkdir lib
22799 fi
22800 if test ! -d lib/wx; then
22801 mkdir lib/wx
22802 fi
22803 if test ! -d lib/wx/include; then
22804 mkdir lib/wx/include
22805 fi
22806 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22807 mkdir lib/wx/include/${TOOLCHAIN_NAME}
22808 fi
22809 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
22810 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
22811 fi
22812 if test -f setup.h; then
22813 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
22814 fi
22815
22816 exit 0
22817 EOF
22818 chmod +x $CONFIG_STATUS
22819 rm -fr confdefs* $ac_clean_files
22820 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22821
22822 if test "$no_recursion" != yes; then
22823
22824 # Remove --cache-file and --srcdir arguments so they do not pile up.
22825 ac_sub_configure_args=
22826 ac_prev=
22827 for ac_arg in $ac_configure_args; do
22828 if test -n "$ac_prev"; then
22829 ac_prev=
22830 continue
22831 fi
22832 case "$ac_arg" in
22833 -cache-file | --cache-file | --cache-fil | --cache-fi \
22834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22835 ac_prev=cache_file ;;
22836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
22838 ;;
22839 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22840 ac_prev=srcdir ;;
22841 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22842 ;;
22843 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22844 esac
22845 done
22846
22847 for ac_config_dir in demos samples utils contrib; do
22848
22849 # Do not complain, so a configure script can configure whichever
22850 # parts of a large source tree are present.
22851 if test ! -d $srcdir/$ac_config_dir; then
22852 continue
22853 fi
22854
22855 echo configuring in $ac_config_dir
22856
22857 case "$srcdir" in
22858 .) ;;
22859 *)
22860 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
22861 else
22862 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
22863 fi
22864 ;;
22865 esac
22866
22867 ac_popdir=`pwd`
22868 cd $ac_config_dir
22869
22870 # A "../" for each directory in /$ac_config_dir.
22871 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
22872
22873 case "$srcdir" in
22874 .) # No --srcdir option. We are building in place.
22875 ac_sub_srcdir=$srcdir ;;
22876 /*) # Absolute path.
22877 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
22878 *) # Relative path.
22879 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
22880 esac
22881
22882 # Check for guested configure; otherwise get Cygnus style configure.
22883 if test -f $ac_sub_srcdir/configure; then
22884 ac_sub_configure=$ac_sub_srcdir/configure
22885 elif test -f $ac_sub_srcdir/configure.in; then
22886 ac_sub_configure=$ac_configure
22887 else
22888 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
22889 ac_sub_configure=
22890 fi
22891
22892 # The recursion is here.
22893 if test -n "$ac_sub_configure"; then
22894
22895 # Make the cache file name correct relative to the subdirectory.
22896 case "$cache_file" in
22897 /*) ac_sub_cache_file=$cache_file ;;
22898 *) # Relative path.
22899 ac_sub_cache_file="$ac_dots$cache_file" ;;
22900 esac
22901 case "$ac_given_INSTALL" in
22902 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22903 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22904 esac
22905
22906 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
22907 # The eval makes quoting arguments work.
22908 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
22909 then :
22910 else
22911 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
22912 fi
22913 fi
22914
22915 cd $ac_popdir
22916 done
22917 fi
22918
22919
22920 echo
22921 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
22922 echo ""
22923 echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
22924
22925 echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
22926 echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
22927 echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
22928
22929 echo " What level of wxWindows compatibility should be enabled?"
22930 echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
22931 echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
22932 echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
22933
22934 echo " Which libraries should wxWindows use?"
22935 echo " jpeg ${wxUSE_LIBJPEG-none}"
22936 echo " png ${wxUSE_LIBPNG-none}"
22937 echo " regex ${wxUSE_REGEX}"
22938 echo " tiff ${wxUSE_LIBTIFF-none}"
22939 echo " zlib ${wxUSE_ZLIB}"
22940
22941 echo ""
22942