]> git.saurik.com Git - wxWidgets.git/blame - configure
Updated version to 2.3.2 so apps can test for differences in new merged source
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
6
7
8
703e0a69
VZ
9
10
1e487827 11
1e487827 12
698dcdb6
VZ
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# Configure paths for GTK+
43# Owen Taylor 97-11-3
44
45
46# Guess values for system-dependent variables and create Makefiles.
47# Generated automatically using autoconf version 2.13
48# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
49#
50# This configure script is free software; the Free Software Foundation
51# gives unlimited permission to copy, distribute and modify it.
52
53# Defaults:
54ac_help=
55ac_default_prefix=/usr/local
56# Any additions from configure.in:
57ac_help="$ac_help
58--enable-gui use GUI classes"
1e6feb95
VZ
59ac_help="$ac_help
60--enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
61ac_help="$ac_help
62 --with-gtk use GTK+"
63ac_help="$ac_help
64 --with-motif use Motif/Lesstif"
65ac_help="$ac_help
66 --with-mac use Mac OS X"
67ac_help="$ac_help
68 --with-wine use WINE"
69ac_help="$ac_help
70 --with-cygwin use Cygwin for MS-Windows"
71ac_help="$ac_help
72 --with-mingw use GCC Minimal MS-Windows"
73ac_help="$ac_help
74 --with-pm use OS/2 Presentation Manager"
1e6feb95
VZ
75ac_help="$ac_help
76 --with-mgl use MGL"
698dcdb6
VZ
77ac_help="$ac_help
78 --with-gtk-prefix=PFX Prefix where GTK is installed"
79ac_help="$ac_help
80 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
81ac_help="$ac_help
82--with-libpng use libpng (PNG image format)"
83ac_help="$ac_help
84--with-libjpeg use libjpeg (JPEG file format)"
85ac_help="$ac_help
86--with-libtiff use libtiff (TIFF file format)"
87ac_help="$ac_help
88--with-freetype use freetype (font rasterizer)"
89ac_help="$ac_help
90--with-opengl use OpenGL (or Mesa)"
91ac_help="$ac_help
92--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
93ac_help="$ac_help
94--with-zlib use zlib for LZW compression"
95ac_help="$ac_help
96--with-odbc use the IODBC and wxODBC classes"
97ac_help="$ac_help
98--enable-shared create shared library code"
99ac_help="$ac_help
100--enable-burnt_name create set name in shared library "
101ac_help="$ac_help
102--enable-optimise create optimised code"
103ac_help="$ac_help
104--enable-debug same as debug_flag and debug_info"
105ac_help="$ac_help
106--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
107ac_help="$ac_help
108--enable-debug_info create code with debugging information"
109ac_help="$ac_help
110--enable-debug_gdb create code with extra GDB debugging information"
111ac_help="$ac_help
112--enable-debug_cntxt use wxDebugContext"
113ac_help="$ac_help
114--enable-mem_tracing create code with memory tracing"
115ac_help="$ac_help
116--enable-profile create code with profiling information"
117ac_help="$ac_help
118--enable-no_rtti create code without RTTI information"
119ac_help="$ac_help
120--enable-no_exceptions create code without exceptions information"
121ac_help="$ac_help
122--enable-permissive compile code disregarding strict ANSI"
123ac_help="$ac_help
124--enable-no_deps create code without dependency information"
125ac_help="$ac_help
126--enable-intl use internationalization system"
127ac_help="$ac_help
128--enable-config use wxConfig (and derived) classes"
129ac_help="$ac_help
130--enable-sockets use socket/network classes"
131ac_help="$ac_help
132--enable-ipc use interprocess communication (wxSocket etc.)"
133ac_help="$ac_help
1e6feb95
VZ
134--enable-cmdline use wxCmdLineParser class"
135ac_help="$ac_help
136--enable-datetime use wxDateTime class"
137ac_help="$ac_help
138--enable-timedate use obsolete wxDate/wxTime classes"
139ac_help="$ac_help
140--enable-stopwatch use wxStopWatch class"
141ac_help="$ac_help
698dcdb6
VZ
142--enable-dialupman use dialup network classes"
143ac_help="$ac_help
144--enable-apple_ieee use the Apple IEEE codec"
145ac_help="$ac_help
1e6feb95 146--enable-timer use wxTimer class"
698dcdb6
VZ
147ac_help="$ac_help
148--enable-wave use wxWave class"
149ac_help="$ac_help
150--enable-fraction use wxFraction class"
151ac_help="$ac_help
152--enable-dynlib use wxLibrary class for DLL loading"
153ac_help="$ac_help
154--enable-longlong use wxLongLong class"
155ac_help="$ac_help
156--enable-geometry use geometry class"
157ac_help="$ac_help
158--enable-log use logging system"
159ac_help="$ac_help
160--enable-streams use wxStream etc classes"
161ac_help="$ac_help
162--enable-file use wxFile classes"
163ac_help="$ac_help
1e6feb95
VZ
164--enable-ffile use wxFFile classes"
165ac_help="$ac_help
698dcdb6
VZ
166--enable-textfile use wxTextFile classes"
167ac_help="$ac_help
1e6feb95
VZ
168--enable-fontmap use font encodings conversion classes"
169ac_help="$ac_help
698dcdb6
VZ
170--enable-unicode compile wxString with Unicode support"
171ac_help="$ac_help
172--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
173ac_help="$ac_help
174--enable-wxprintfv use wxWindows implementation of vprintf()"
175ac_help="$ac_help
176--enable-std_iostreams use standard C++ stream classes"
177ac_help="$ac_help
178--enable-filesystem use virtual file systems classes"
179ac_help="$ac_help
180--enable-fs_inet use virtual HTTP/FTP filesystems"
181ac_help="$ac_help
182--enable-fs_zip use virtual ZIP filesystems"
183ac_help="$ac_help
184--enable-zipstream use wxZipInputStream"
185ac_help="$ac_help
186--enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
187ac_help="$ac_help
188--enable-snglinst use wxSingleInstanceChecker class"
189ac_help="$ac_help
1e6feb95
VZ
190--enable-mimetypes use wxMimeTypesManager"
191ac_help="$ac_help
698dcdb6
VZ
192--enable-threads use threads"
193ac_help="$ac_help
194--enable-serial use class serialization"
195ac_help="$ac_help
196--enable-docview use document view architecture"
197ac_help="$ac_help
198--enable-help use help (using external browser at present)"
199ac_help="$ac_help
200--enable-constraints use layout-constraints system"
201ac_help="$ac_help
202--enable-printarch use printing architecture"
203ac_help="$ac_help
204--enable-mdi use multiple document interface architecture"
205ac_help="$ac_help
1e6feb95
VZ
206--enable-loggui use standard GUI logger"
207ac_help="$ac_help
208--enable-logwin use wxLogWindow"
209ac_help="$ac_help
698dcdb6
VZ
210--enable-postscript use wxPostscriptDC device context (default for gtk+)"
211ac_help="$ac_help
212--enable-prologio use Prolog IO library"
213ac_help="$ac_help
214--enable-resources use wxWindows resources"
215ac_help="$ac_help
216--enable-xresources use X resources for save (default for gtk+)"
217ac_help="$ac_help
218--enable-clipboard use wxClipboard classes"
219ac_help="$ac_help
220--enable-dnd use Drag'n'Drop classes"
221ac_help="$ac_help
222--enable-metafile use win32 metafiles"
223ac_help="$ac_help
224--enable-wxtree make wxTree library"
225ac_help="$ac_help
226--enable-controls use all usual controls"
227ac_help="$ac_help
228--enable-accel use accelerators"
229ac_help="$ac_help
1e6feb95 230--enable-button use wxButton class"
698dcdb6
VZ
231ac_help="$ac_help
232--enable-bmpbutton use wxBitmapButton class"
233ac_help="$ac_help
1e6feb95
VZ
234--enable-calendar use wxCalendarCtrl class"
235ac_help="$ac_help
236--enable-caret use wxCaret class"
237ac_help="$ac_help
698dcdb6
VZ
238--enable-checkbox use wxCheckBox class"
239ac_help="$ac_help
240--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
241ac_help="$ac_help
242--enable-choice use wxChoice class"
243ac_help="$ac_help
244--enable-combobox use wxComboBox classes"
245ac_help="$ac_help
246--enable-gauge use wxGauge class"
247ac_help="$ac_help
248--enable-grid use wxGrid class"
249ac_help="$ac_help
250--enable-newgrid use new wxGrid class"
251ac_help="$ac_help
252--enable-imaglist use wxImageList class"
253ac_help="$ac_help
254--enable-listbox use wxListBox class"
255ac_help="$ac_help
256--enable-listctrl use wxListCtrl class"
257ac_help="$ac_help
258--enable-notebook use wxNotebook class"
259ac_help="$ac_help
260--enable-radiobox use wxRadioBox class"
261ac_help="$ac_help
262--enable-radiobtn use wxRadioButton class"
263ac_help="$ac_help
264--enable-sash use wxSashWindow class"
265ac_help="$ac_help
266--enable-scrollbar use wxScrollBar class and scrollable windows"
267ac_help="$ac_help
268--enable-slider use wxSlider class"
269ac_help="$ac_help
270--enable-spinbtn use wxSpinButton class"
271ac_help="$ac_help
272--enable-spinctrl use wxSpinCtrl class"
273ac_help="$ac_help
274--enable-splitter use wxSplitterWindow class"
275ac_help="$ac_help
276--enable-statbmp use wxStaticBitmap class"
277ac_help="$ac_help
278--enable-statbox use wxStaticBox class"
279ac_help="$ac_help
280--enable-statline use wxStaticLine class"
281ac_help="$ac_help
1e6feb95
VZ
282--enable-stattext use wxStaticText class"
283ac_help="$ac_help
698dcdb6
VZ
284--enable-statusbar use wxStatusBar class"
285ac_help="$ac_help
286--enable-tabdialog use wxTabControl class"
287ac_help="$ac_help
1e6feb95
VZ
288--enable-textctrl use wxTextCtrl class"
289ac_help="$ac_help
698dcdb6
VZ
290--enable-togglebtn use wxToggleButton class"
291ac_help="$ac_help
292--enable-toolbar use wxToolBar class"
293ac_help="$ac_help
294--enable-tbarnative use native wxToolBar class"
295ac_help="$ac_help
296--enable-tbarsmpl use wxToolBarSimple class"
297ac_help="$ac_help
298--enable-treectrl use wxTreeCtrl class"
299ac_help="$ac_help
300--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
301ac_help="$ac_help
1e6feb95
VZ
302--enable-choicedlg use wxChoiceDialog"
303ac_help="$ac_help
304--enable-coldlg use wxColourDialog"
305ac_help="$ac_help
306--enable-filedlg use wxFileDialog"
307ac_help="$ac_help
308--enable-fontdlg use wxFontDialog"
309ac_help="$ac_help
698dcdb6
VZ
310--enable-dirdlg use wxDirDialog"
311ac_help="$ac_help
1e6feb95
VZ
312--enable-msgdlg use wxMessageDialog"
313ac_help="$ac_help
314--enable-numberdlg use wxNumberEntryDialog"
315ac_help="$ac_help
698dcdb6
VZ
316--enable-textdlg use wxTextDialog"
317ac_help="$ac_help
318--enable-tipdlg use startup tips"
319ac_help="$ac_help
320--enable-progressdlg use wxProgressDialog"
321ac_help="$ac_help
1e6feb95
VZ
322--enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
323ac_help="$ac_help
698dcdb6
VZ
324--enable-miniframe use wxMiniFrame class"
325ac_help="$ac_help
326--enable-html use wxHTML sub-library"
327ac_help="$ac_help
328--enable-tooltips use wxToolTip class"
329ac_help="$ac_help
330--enable-splines use spline drawing code"
331ac_help="$ac_help
332--enable-validators use wxValidator and derived classes"
333ac_help="$ac_help
334--enable-busyinfo use wxBusyInfo"
335ac_help="$ac_help
336--enable-joystick compile in joystick support (Linux only)"
337ac_help="$ac_help
1e6feb95
VZ
338--enable-metafiles use wxMetaFile (Windows only)"
339ac_help="$ac_help
698dcdb6
VZ
340--enable-image use wxImage class"
341ac_help="$ac_help
342--enable-gif use gif images (GIF file format)"
343ac_help="$ac_help
344--enable-pcx use pcx images (PCX file format)"
345ac_help="$ac_help
346--enable-pnm use pnm images (PNM file format)"
347ac_help="$ac_help
348--enable-xpm use xpm images (XPM file format)"
349ac_help="$ac_help
350 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
351ac_help="$ac_help
352 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
353ac_help="$ac_help
354 --disable-gtktest Do not try to compile and run a test GTK program"
355ac_help="$ac_help
356 --with-x use the X Window System"
10f2d63a
VZ
357
358# Initialize some variables set by options.
359# The variables have the same names as the options, with
360# dashes changed to underlines.
698dcdb6
VZ
361build=NONE
362cache_file=./config.cache
10f2d63a 363exec_prefix=NONE
698dcdb6 364host=NONE
10f2d63a 365no_create=
698dcdb6 366nonopt=NONE
10f2d63a
VZ
367no_recursion=
368prefix=NONE
369program_prefix=NONE
370program_suffix=NONE
371program_transform_name=s,x,x,
372silent=
373site=
374srcdir=
698dcdb6 375target=NONE
10f2d63a
VZ
376verbose=
377x_includes=NONE
378x_libraries=NONE
379bindir='${exec_prefix}/bin'
380sbindir='${exec_prefix}/sbin'
381libexecdir='${exec_prefix}/libexec'
382datadir='${prefix}/share'
383sysconfdir='${prefix}/etc'
384sharedstatedir='${prefix}/com'
385localstatedir='${prefix}/var'
386libdir='${exec_prefix}/lib'
387includedir='${prefix}/include'
388oldincludedir='/usr/include'
389infodir='${prefix}/info'
390mandir='${prefix}/man'
391
698dcdb6
VZ
392# Initialize some other variables.
393subdirs=
394MFLAGS= MAKEFLAGS=
395SHELL=${CONFIG_SHELL-/bin/sh}
396# Maximum number of lines to put in a shell here document.
397ac_max_here_lines=12
10f2d63a
VZ
398
399ac_prev=
400for ac_option
401do
698dcdb6 402
10f2d63a
VZ
403 # If the previous option needs an argument, assign it.
404 if test -n "$ac_prev"; then
405 eval "$ac_prev=\$ac_option"
406 ac_prev=
407 continue
408 fi
409
698dcdb6
VZ
410 case "$ac_option" in
411 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
412 *) ac_optarg= ;;
413 esac
10f2d63a
VZ
414
415 # Accept the important Cygnus configure options, so we can diagnose typos.
416
698dcdb6 417 case "$ac_option" in
10f2d63a
VZ
418
419 -bindir | --bindir | --bindi | --bind | --bin | --bi)
420 ac_prev=bindir ;;
421 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 422 bindir="$ac_optarg" ;;
10f2d63a
VZ
423
424 -build | --build | --buil | --bui | --bu)
698dcdb6 425 ac_prev=build ;;
10f2d63a 426 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 427 build="$ac_optarg" ;;
10f2d63a
VZ
428
429 -cache-file | --cache-file | --cache-fil | --cache-fi \
430 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
431 ac_prev=cache_file ;;
432 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
433 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 434 cache_file="$ac_optarg" ;;
10f2d63a
VZ
435
436 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
437 ac_prev=datadir ;;
438 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
439 | --da=*)
698dcdb6 440 datadir="$ac_optarg" ;;
10f2d63a
VZ
441
442 -disable-* | --disable-*)
698dcdb6 443 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 444 # Reject names that are not valid shell variable names.
698dcdb6
VZ
445 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
446 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
447 fi
448 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
449 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
450
451 -enable-* | --enable-*)
698dcdb6 452 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 453 # Reject names that are not valid shell variable names.
698dcdb6
VZ
454 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
455 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
456 fi
457 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
458 case "$ac_option" in
459 *=*) ;;
10f2d63a
VZ
460 *) ac_optarg=yes ;;
461 esac
698dcdb6 462 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
463
464 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
465 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
466 | --exec | --exe | --ex)
467 ac_prev=exec_prefix ;;
468 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
469 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
470 | --exec=* | --exe=* | --ex=*)
698dcdb6 471 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
472
473 -gas | --gas | --ga | --g)
474 # Obsolete; use --with-gas.
475 with_gas=yes ;;
476
698dcdb6
VZ
477 -help | --help | --hel | --he)
478 # Omit some internal or obsolete options to make the list less imposing.
479 # This message is too long to be a string in the A/UX 3.1 sh.
480 cat << EOF
481Usage: configure [options] [host]
482Options: [defaults in brackets after descriptions]
483Configuration:
484 --cache-file=FILE cache test results in FILE
485 --help print this message
486 --no-create do not create output files
487 --quiet, --silent do not print \`checking...' messages
488 --version print the version of autoconf that created configure
489Directory and file names:
490 --prefix=PREFIX install architecture-independent files in PREFIX
491 [$ac_default_prefix]
492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
493 [same as prefix]
494 --bindir=DIR user executables in DIR [EPREFIX/bin]
495 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
496 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
497 --datadir=DIR read-only architecture-independent data in DIR
498 [PREFIX/share]
499 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
500 --sharedstatedir=DIR modifiable architecture-independent data in DIR
501 [PREFIX/com]
502 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
503 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
504 --includedir=DIR C header files in DIR [PREFIX/include]
505 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
506 --infodir=DIR info documentation in DIR [PREFIX/info]
507 --mandir=DIR man documentation in DIR [PREFIX/man]
508 --srcdir=DIR find the sources in DIR [configure dir or ..]
509 --program-prefix=PREFIX prepend PREFIX to installed program names
510 --program-suffix=SUFFIX append SUFFIX to installed program names
511 --program-transform-name=PROGRAM
512 run sed PROGRAM on installed program names
513EOF
514 cat << EOF
515Host type:
516 --build=BUILD configure for building on BUILD [BUILD=HOST]
517 --host=HOST configure for HOST [guessed]
518 --target=TARGET configure for TARGET [TARGET=HOST]
519Features and packages:
520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
524 --x-includes=DIR X include files are in DIR
525 --x-libraries=DIR X library files are in DIR
526EOF
527 if test -n "$ac_help"; then
528 echo "--enable and --with options recognized:$ac_help"
529 fi
530 exit 0 ;;
10f2d63a
VZ
531
532 -host | --host | --hos | --ho)
698dcdb6 533 ac_prev=host ;;
10f2d63a 534 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 535 host="$ac_optarg" ;;
10f2d63a
VZ
536
537 -includedir | --includedir | --includedi | --included | --include \
538 | --includ | --inclu | --incl | --inc)
539 ac_prev=includedir ;;
540 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
541 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 542 includedir="$ac_optarg" ;;
10f2d63a
VZ
543
544 -infodir | --infodir | --infodi | --infod | --info | --inf)
545 ac_prev=infodir ;;
546 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 547 infodir="$ac_optarg" ;;
10f2d63a
VZ
548
549 -libdir | --libdir | --libdi | --libd)
550 ac_prev=libdir ;;
551 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 552 libdir="$ac_optarg" ;;
10f2d63a
VZ
553
554 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
555 | --libexe | --libex | --libe)
556 ac_prev=libexecdir ;;
557 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
558 | --libexe=* | --libex=* | --libe=*)
698dcdb6 559 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
560
561 -localstatedir | --localstatedir | --localstatedi | --localstated \
562 | --localstate | --localstat | --localsta | --localst \
563 | --locals | --local | --loca | --loc | --lo)
564 ac_prev=localstatedir ;;
565 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
566 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
567 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 568 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
569
570 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
571 ac_prev=mandir ;;
572 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 573 mandir="$ac_optarg" ;;
10f2d63a
VZ
574
575 -nfp | --nfp | --nf)
576 # Obsolete; use --without-fp.
577 with_fp=no ;;
578
579 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
580 | --no-cr | --no-c)
581 no_create=yes ;;
582
583 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
584 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
585 no_recursion=yes ;;
586
587 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
588 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
589 | --oldin | --oldi | --old | --ol | --o)
590 ac_prev=oldincludedir ;;
591 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
592 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
593 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 594 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
595
596 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
597 ac_prev=prefix ;;
598 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 599 prefix="$ac_optarg" ;;
10f2d63a
VZ
600
601 -program-prefix | --program-prefix | --program-prefi | --program-pref \
602 | --program-pre | --program-pr | --program-p)
603 ac_prev=program_prefix ;;
604 -program-prefix=* | --program-prefix=* | --program-prefi=* \
605 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 606 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
607
608 -program-suffix | --program-suffix | --program-suffi | --program-suff \
609 | --program-suf | --program-su | --program-s)
610 ac_prev=program_suffix ;;
611 -program-suffix=* | --program-suffix=* | --program-suffi=* \
612 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 613 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
614
615 -program-transform-name | --program-transform-name \
616 | --program-transform-nam | --program-transform-na \
617 | --program-transform-n | --program-transform- \
618 | --program-transform | --program-transfor \
619 | --program-transfo | --program-transf \
620 | --program-trans | --program-tran \
621 | --progr-tra | --program-tr | --program-t)
622 ac_prev=program_transform_name ;;
623 -program-transform-name=* | --program-transform-name=* \
624 | --program-transform-nam=* | --program-transform-na=* \
625 | --program-transform-n=* | --program-transform-=* \
626 | --program-transform=* | --program-transfor=* \
627 | --program-transfo=* | --program-transf=* \
628 | --program-trans=* | --program-tran=* \
629 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 630 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
631
632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
633 | -silent | --silent | --silen | --sile | --sil)
634 silent=yes ;;
635
636 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
637 ac_prev=sbindir ;;
638 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
639 | --sbi=* | --sb=*)
698dcdb6 640 sbindir="$ac_optarg" ;;
10f2d63a
VZ
641
642 -sharedstatedir | --sharedstatedir | --sharedstatedi \
643 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
644 | --sharedst | --shareds | --shared | --share | --shar \
645 | --sha | --sh)
646 ac_prev=sharedstatedir ;;
647 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
648 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
649 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
650 | --sha=* | --sh=*)
698dcdb6 651 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
652
653 -site | --site | --sit)
654 ac_prev=site ;;
655 -site=* | --site=* | --sit=*)
698dcdb6 656 site="$ac_optarg" ;;
10f2d63a
VZ
657
658 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
659 ac_prev=srcdir ;;
660 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 661 srcdir="$ac_optarg" ;;
10f2d63a
VZ
662
663 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
664 | --syscon | --sysco | --sysc | --sys | --sy)
665 ac_prev=sysconfdir ;;
666 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
667 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 668 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
669
670 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 671 ac_prev=target ;;
10f2d63a 672 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 673 target="$ac_optarg" ;;
10f2d63a
VZ
674
675 -v | -verbose | --verbose | --verbos | --verbo | --verb)
676 verbose=yes ;;
677
698dcdb6
VZ
678 -version | --version | --versio | --versi | --vers)
679 echo "configure generated by autoconf version 2.13"
680 exit 0 ;;
10f2d63a
VZ
681
682 -with-* | --with-*)
698dcdb6 683 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 684 # Reject names that are not valid shell variable names.
698dcdb6
VZ
685 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
686 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
687 fi
10f2d63a 688 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
689 case "$ac_option" in
690 *=*) ;;
10f2d63a
VZ
691 *) ac_optarg=yes ;;
692 esac
698dcdb6 693 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
694
695 -without-* | --without-*)
698dcdb6 696 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 697 # Reject names that are not valid shell variable names.
698dcdb6
VZ
698 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
699 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
700 fi
701 ac_package=`echo $ac_package| sed 's/-/_/g'`
702 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
703
704 --x)
705 # Obsolete; use --with-x.
706 with_x=yes ;;
707
708 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
709 | --x-incl | --x-inc | --x-in | --x-i)
710 ac_prev=x_includes ;;
711 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
712 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 713 x_includes="$ac_optarg" ;;
10f2d63a
VZ
714
715 -x-libraries | --x-libraries | --x-librarie | --x-librari \
716 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
717 ac_prev=x_libraries ;;
718 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
719 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 720 x_libraries="$ac_optarg" ;;
10f2d63a 721
698dcdb6 722 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
723 ;;
724
725 *)
698dcdb6
VZ
726 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
727 echo "configure: warning: $ac_option: invalid host type" 1>&2
728 fi
729 if test "x$nonopt" != xNONE; then
730 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
731 fi
732 nonopt="$ac_option"
10f2d63a
VZ
733 ;;
734
735 esac
736done
737
738if test -n "$ac_prev"; then
698dcdb6
VZ
739 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
740fi
741
742trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
743
744# File descriptor usage:
745# 0 standard input
746# 1 file creation
747# 2 errors and warnings
748# 3 some systems may open it to /dev/tty
749# 4 used on the Kubota Titan
750# 6 checking for... messages and results
751# 5 compiler messages saved in config.log
752if test "$silent" = yes; then
753 exec 6>/dev/null
754else
755 exec 6>&1
10f2d63a 756fi
698dcdb6
VZ
757exec 5>./config.log
758
759echo "\
760This file contains any messages produced by compilers while
761running configure, to aid debugging if configure makes a mistake.
762" 1>&5
10f2d63a 763
698dcdb6
VZ
764# Strip out --no-create and --no-recursion so they do not pile up.
765# Also quote any args containing shell metacharacters.
766ac_configure_args=
767for ac_arg
10f2d63a 768do
698dcdb6
VZ
769 case "$ac_arg" in
770 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
771 | --no-cr | --no-c) ;;
772 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
773 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
774 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
775 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
776 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
777 esac
778done
779
698dcdb6
VZ
780# NLS nuisances.
781# Only set these to C if already set. These must not be set unconditionally
782# because not all systems understand e.g. LANG=C (notably SCO).
783# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
784# Non-C LC_CTYPE values break the ctype check.
785if test "${LANG+set}" = set; then LANG=C; export LANG; fi
786if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
787if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
788if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 789
698dcdb6
VZ
790# confdefs.h avoids OS command line length limits that DEFS can exceed.
791rm -rf conftest* confdefs.h
792# AIX cpp loses on an empty file, so make sure it contains at least a newline.
793echo > confdefs.h
10f2d63a 794
698dcdb6
VZ
795# A filename unique to this package, relative to the directory that
796# configure is in, which we can look for to find out if srcdir is correct.
797ac_unique_file=wx-config.in
10f2d63a
VZ
798
799# Find the source files, if location was not specified.
800if test -z "$srcdir"; then
801 ac_srcdir_defaulted=yes
802 # Try the directory containing this script, then its parent.
803 ac_prog=$0
698dcdb6 804 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
805 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
806 srcdir=$ac_confdir
807 if test ! -r $srcdir/$ac_unique_file; then
808 srcdir=..
809 fi
810else
811 ac_srcdir_defaulted=no
812fi
813if test ! -r $srcdir/$ac_unique_file; then
814 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 815 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 816 else
698dcdb6 817 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
818 fi
819fi
698dcdb6 820srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
821
822# Prefer explicitly selected file to automatically selected ones.
823if test -z "$CONFIG_SITE"; then
824 if test "x$prefix" != xNONE; then
825 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
826 else
827 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
828 fi
829fi
830for ac_site_file in $CONFIG_SITE; do
831 if test -r "$ac_site_file"; then
698dcdb6 832 echo "loading site script $ac_site_file"
10f2d63a
VZ
833 . "$ac_site_file"
834 fi
835done
836
837if test -r "$cache_file"; then
698dcdb6
VZ
838 echo "loading cache $cache_file"
839 . $cache_file
10f2d63a 840else
698dcdb6
VZ
841 echo "creating cache $cache_file"
842 > $cache_file
10f2d63a
VZ
843fi
844
845ac_ext=c
698dcdb6 846# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 847ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
848ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
849ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
850cross_compiling=$ac_cv_prog_cc_cross
851
852ac_exeext=
853ac_objext=o
854if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
855 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
856 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
857 ac_n= ac_c='
858' ac_t=' '
859 else
860 ac_n=-n ac_c= ac_t=
861 fi
10f2d63a 862else
698dcdb6 863 ac_n= ac_c='\c' ac_t=
10f2d63a 864fi
698dcdb6
VZ
865
866
10f2d63a 867
7c66a493
VZ
868ac_aux_dir=
869for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
870 if test -f $ac_dir/install-sh; then
871 ac_aux_dir=$ac_dir
872 ac_install_sh="$ac_aux_dir/install-sh -c"
873 break
874 elif test -f $ac_dir/install.sh; then
875 ac_aux_dir=$ac_dir
876 ac_install_sh="$ac_aux_dir/install.sh -c"
877 break
878 fi
879done
880if test -z "$ac_aux_dir"; then
698dcdb6 881 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 882fi
698dcdb6
VZ
883ac_config_guess=$ac_aux_dir/config.guess
884ac_config_sub=$ac_aux_dir/config.sub
885ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 886
698dcdb6
VZ
887
888# Do some error checking and defaulting for the host and target type.
889# The inputs are:
890# configure --host=HOST --target=TARGET --build=BUILD NONOPT
891#
892# The rules are:
893# 1. You are not allowed to specify --host, --target, and nonopt at the
894# same time.
895# 2. Host defaults to nonopt.
896# 3. If nonopt is not specified, then host defaults to the current host,
897# as determined by config.guess.
898# 4. Target and build default to nonopt.
899# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
900
901# The aliases save the names the user supplied, while $host etc.
902# will get canonicalized.
698dcdb6
VZ
903case $host---$target---$nonopt in
904NONE---*---* | *---NONE---* | *---*---NONE) ;;
905*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
906esac
907
908
909# Make sure we can run config.sub.
910if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
911else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
912fi
913
914echo $ac_n "checking host system type""... $ac_c" 1>&6
1e6feb95 915echo "configure:916: checking host system type" >&5
698dcdb6
VZ
916
917host_alias=$host
918case "$host_alias" in
919NONE)
920 case $nonopt in
921 NONE)
922 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
923 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
924 fi ;;
925 *) host_alias=$nonopt ;;
926 esac ;;
927esac
928
929host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
930host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
931host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
932host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
933echo "$ac_t""$host" 1>&6
934
935echo $ac_n "checking target system type""... $ac_c" 1>&6
1e6feb95 936echo "configure:937: checking target system type" >&5
698dcdb6
VZ
937
938target_alias=$target
939case "$target_alias" in
940NONE)
941 case $nonopt in
942 NONE) target_alias=$host_alias ;;
943 *) target_alias=$nonopt ;;
944 esac ;;
945esac
946
947target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
948target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
949target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
950target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
951echo "$ac_t""$target" 1>&6
952
953echo $ac_n "checking build system type""... $ac_c" 1>&6
1e6feb95 954echo "configure:955: checking build system type" >&5
698dcdb6
VZ
955
956build_alias=$build
957case "$build_alias" in
958NONE)
959 case $nonopt in
960 NONE) build_alias=$host_alias ;;
961 *) build_alias=$nonopt ;;
962 esac ;;
963esac
964
965build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
966build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
967build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
968build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
969echo "$ac_t""$build" 1>&6
970
971test "$host_alias" != "$target_alias" &&
7c66a493
VZ
972 test "$program_prefix$program_suffix$program_transform_name" = \
973 NONENONEs,x,x, &&
974 program_prefix=${target_alias}-
975
698dcdb6
VZ
976
977
10f2d63a 978WX_MAJOR_VERSION_NUMBER=2
37d403aa 979WX_MINOR_VERSION_NUMBER=3
665bbe97 980WX_RELEASE_NUMBER=1
10f2d63a 981
10f2d63a 982WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 983WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c
RL
984
985WX_CURRENT=0
986WX_REVISION=0
987WX_AGE=0
988
698dcdb6
VZ
989
990
10f2d63a
VZ
991USE_UNIX=1
992USE_WIN32=0
b12915c1 993USE_BEOS=0
1216f52d 994USE_MAC=0
b12915c1 995
10f2d63a
VZ
996USE_LINUX=
997USE_SGI=
998USE_HPUX=
999USE_SYSV=
1000USE_SVR4=
1001USE_AIX=
1002USE_SUN=
1003USE_SOLARIS=
1004USE_SUNOS=
1005USE_ALPHA=
1006USE_OSF=
1007USE_BSD=
1008USE_FREEBSD=
95c8801c 1009USE_OPENBSD=
f6bcfd97 1010USE_NETBSD=
10f2d63a
VZ
1011USE_VMS=
1012USE_ULTRIX=
1013USE_CYGWIN=
1014USE_MINGW=
1015USE_DATA_GENERAL=
1016
ab9b9eab
VZ
1017NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1018
1e6feb95 1019ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
10f2d63a
VZ
1020
1021DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1022DEFAULT_wxUSE_MAC=0
1023DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1024DEFAULT_wxUSE_MOTIF=0
1025DEFAULT_wxUSE_MSW=0
e07802fc 1026DEFAULT_wxUSE_PM=0
1e6feb95 1027DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1028
1029DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1030DEFAULT_DEFAULT_wxUSE_MAC=0
1031DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1032DEFAULT_DEFAULT_wxUSE_MOTIF=0
1033DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1034DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1035DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1036
d6a55c4b
VZ
1037PROGRAM_EXT=
1038
10f2d63a
VZ
1039case "${host}" in
1040 *-hp-hpux* )
1041 USE_HPUX=1
1042 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1043 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
698dcdb6 1044 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1045#define __HPUX__ 1
1046EOF
1047
1048 ;;
1049 *-*-linux* )
1050 USE_LINUX=1
698dcdb6 1051 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1052#define __LINUX__ 1
1053EOF
1054
1055 TMP=`uname -m`
1056 if test "x$TMP" = "xalpha"; then
1057 USE_ALPHA=1
698dcdb6 1058 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1059#define __ALPHA__ 1
1060EOF
1061
1062 fi
1063 DEFAULT_DEFAULT_wxUSE_GTK=1
1064 ;;
1065 *-*-irix5* | *-*-irix6* )
1066 USE_SGI=1
1067 USE_SVR4=1
698dcdb6 1068 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1069#define __SGI__ 1
1070EOF
1071
698dcdb6 1072 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1073#define __SVR4__ 1
1074EOF
1075
1076 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1077 ;;
1078 *-*-solaris2* )
1079 USE_SUN=1
1080 USE_SOLARIS=1
1081 USE_SVR4=1
698dcdb6 1082 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1083#define __SUN__ 1
1084EOF
1085
698dcdb6 1086 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1087#define __SOLARIS__ 1
1088EOF
1089
698dcdb6 1090 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1091#define __SVR4__ 1
1092EOF
1093
1094 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1095 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1096 ;;
1097 *-*-sunos4* )
1098 USE_SUN=1
1099 USE_SUNOS=1
1100 USE_BSD=1
698dcdb6 1101 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1102#define __SUN__ 1
1103EOF
1104
698dcdb6 1105 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1106#define __SUNOS__ 1
1107EOF
1108
698dcdb6 1109 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1110#define __BSD__ 1
1111EOF
1112
1113 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1114 ;;
f6bcfd97 1115 *-*-freebsd*)
10f2d63a
VZ
1116 USE_BSD=1
1117 USE_FREEBSD=1
698dcdb6 1118 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1119#define __FREEBSD__ 1
1120EOF
1121
698dcdb6 1122 cat >> confdefs.h <<\EOF
10f2d63a 1123#define __BSD__ 1
95c8801c
VS
1124EOF
1125
1126 DEFAULT_DEFAULT_wxUSE_GTK=1
1127 ;;
1128 *-*-openbsd*)
1129 USE_BSD=1
1130 USE_OPENBSD=1
698dcdb6 1131 cat >> confdefs.h <<\EOF
95c8801c
VS
1132#define __FREEBSD__ 1
1133EOF
1134
698dcdb6 1135 cat >> confdefs.h <<\EOF
95c8801c 1136#define __OPENBSD__ 1
f6bcfd97
BP
1137EOF
1138
1139 DEFAULT_DEFAULT_wxUSE_GTK=1
1140 ;;
1141 *-*-netbsd*)
1142 USE_BSD=1
1143 USE_NETBSD=1
698dcdb6 1144 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1145#define __FREEBSD__ 1
1146EOF
1147
698dcdb6 1148 cat >> confdefs.h <<\EOF
f6bcfd97 1149#define __NETBSD__ 1
10f2d63a
VZ
1150EOF
1151
1152 DEFAULT_DEFAULT_wxUSE_GTK=1
1153 ;;
1154 *-*-osf* )
1155 USE_ALPHA=1
1156 USE_OSF=1
698dcdb6 1157 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1158#define __ALPHA__ 1
1159EOF
1160
698dcdb6 1161 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1162#define __OSF__ 1
1163EOF
1164
1165 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1166 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1167 ;;
1168 *-*-dgux5* )
1169 USE_ALPHA=1
1170 USE_SVR4=1
698dcdb6 1171 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1172#define __ALPHA__ 1
1173EOF
1174
698dcdb6 1175 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1176#define __SVR4__ 1
1177EOF
1178
1179 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1180 ;;
1181 *-*-sysv5* )
1182 USE_SYSV=1
1183 USE_SVR4=1
698dcdb6 1184 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1185#define __SYSV__ 1
1186EOF
1187
698dcdb6 1188 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1189#define __SVR4__ 1
1190EOF
1191
1192 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1193 ;;
1194 *-*-aix* )
1195 USE_AIX=1
1196 USE_SYSV=1
1197 USE_SVR4=1
698dcdb6 1198 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1199#define __AIX__ 1
1200EOF
1201
698dcdb6 1202 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1203#define __SYSV__ 1
1204EOF
1205
698dcdb6 1206 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1207#define __SVR4__ 1
1208EOF
1209
1210 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1211 ;;
1212
1c8183e2 1213 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1214 USE_UNIX=0
1215 USE_WIN32=1
698dcdb6 1216 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1217#define __WIN32__ 1
1218EOF
1219
698dcdb6 1220 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1221#define __WIN95__ 1
1222EOF
1223
698dcdb6 1224 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1225#define __WINDOWS__ 1
1226EOF
1227
698dcdb6 1228 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1229#define __GNUWIN32__ 1
1230EOF
1231
698dcdb6 1232 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1233#define STRICT 1
1234EOF
1235
698dcdb6 1236 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1237#define WINVER 0x0400
1238EOF
1239
cf27ef00 1240 PROGRAM_EXT=".exe"
10f2d63a
VZ
1241 DEFAULT_DEFAULT_wxUSE_MSW=1
1242 ;;
1243
1244 *-pc-os2_emx )
698dcdb6 1245 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1246#define __EMX__ 1
1247EOF
1248
cf27ef00 1249 PROGRAM_EXT=".exe"
e07802fc 1250 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1251 ;;
1252
b4085ce6
GD
1253 *-*-darwin* )
1254 USE_BSD=1
1255 USE_MAC=1
698dcdb6 1256 cat >> confdefs.h <<\EOF
b4085ce6
GD
1257#define __MAC__ 1
1258EOF
1259
698dcdb6 1260 cat >> confdefs.h <<\EOF
b4085ce6
GD
1261#define __BSD__ 1
1262EOF
1263
698dcdb6 1264 cat >> confdefs.h <<\EOF
b4085ce6
GD
1265#define __UNIX__ 1
1266EOF
1267
1268 DEFAULT_DEFAULT_wxUSE_MAC=1
1269 ;;
1270
b12915c1
VZ
1271 *-*-beos* )
1272 USE_BEOS=1
698dcdb6 1273 cat >> confdefs.h <<\EOF
b12915c1
VZ
1274#define __BEOS__ 1
1275EOF
1276
1277 ;;
1278
10f2d63a 1279 *)
698dcdb6 1280 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1281esac
1282
1283if test "$USE_UNIX" = 1 ; then
b12915c1 1284 wxUSE_UNIX=yes
698dcdb6 1285 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1286#define __UNIX__ 1
1287EOF
1288
698dcdb6 1289
b12915c1
VZ
1290 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1291 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1292fi
1293
1294if test "$USE_BEOS" = 1; then
1295 SRC_SUBDIRS="$SRC_SUBDIRS be"
1296 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1297fi
1298
1299if test "$USE_LINUX" = 1; then
698dcdb6 1300 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1e6feb95 1301echo "configure:1302: checking for gettext in -lc" >&5
698dcdb6
VZ
1302ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1303if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 1305else
698dcdb6
VZ
1306 ac_save_LIBS="$LIBS"
1307LIBS="-lc $LIBS"
1308cat > conftest.$ac_ext <<EOF
1e6feb95 1309#line 1310 "configure"
698dcdb6
VZ
1310#include "confdefs.h"
1311/* Override any gcc2 internal prototype to avoid an error. */
1312/* We use char because int might match the return type of a gcc2
1313 builtin and then its argument prototype would still apply. */
1314char gettext();
10f2d63a 1315
698dcdb6
VZ
1316int main() {
1317gettext()
1318; return 0; }
1319EOF
1e6feb95 1320if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
1321 rm -rf conftest*
1322 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 1323else
698dcdb6
VZ
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1326 rm -rf conftest*
1327 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 1328fi
698dcdb6
VZ
1329rm -f conftest*
1330LIBS="$ac_save_LIBS"
10f2d63a
VZ
1331
1332fi
698dcdb6
VZ
1333if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1334 echo "$ac_t""yes" 1>&6
1335 cat >> confdefs.h <<\EOF
1336#define wxHAVE_GLIBC2 1
1337EOF
10f2d63a
VZ
1338
1339else
698dcdb6 1340 echo "$ac_t""no" 1>&6
10f2d63a
VZ
1341fi
1342
1343fi
1344
1e487827 1345
1e487827 1346
6232543b 1347
10f2d63a
VZ
1348 wx_arg_cache_file="configarg.cache"
1349 echo "loading argument cache $wx_arg_cache_file"
1350 rm -f ${wx_arg_cache_file}.tmp
1351 touch ${wx_arg_cache_file}.tmp
1352 touch ${wx_arg_cache_file}
698dcdb6 1353
10f2d63a
VZ
1354
1355DEBUG_CONFIGURE=0
1356if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1357 DEFAULT_wxUSE_UNIVERSAL=no
1358
10f2d63a
VZ
1359 DEFAULT_wxUSE_THREADS=yes
1360
1361 DEFAULT_wxUSE_SHARED=yes
00cf1208 1362 DEFAULT_wxUSE_BURNT_NAME=no
1e6feb95 1363 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1364 DEFAULT_wxUSE_PROFILE=no
1365 DEFAULT_wxUSE_NO_DEPS=no
1366 DEFAULT_wxUSE_NO_RTTI=no
1367 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1368 DEFAULT_wxUSE_PERMISSIVE=no
1369 DEFAULT_wxUSE_DEBUG_FLAG=yes
1370 DEFAULT_wxUSE_DEBUG_INFO=yes
1371 DEFAULT_wxUSE_DEBUG_GDB=yes
1372 DEFAULT_wxUSE_MEM_TRACING=no
1373 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1374 DEFAULT_wxUSE_DMALLOC=no
1375 DEFAULT_wxUSE_APPLE_IEEE=no
1376
1377 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1378 DEFAULT_wxUSE_LOGWINDOW=no
1379 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1380
1381 DEFAULT_wxUSE_GUI=yes
1e6feb95 1382 DEFAULT_wxUSE_CONTROLS=no
10f2d63a
VZ
1383
1384 DEFAULT_wxUSE_ZLIB=no
1385 DEFAULT_wxUSE_LIBPNG=no
1386 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1387 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1388 DEFAULT_wxUSE_ODBC=no
3fed1840 1389 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1390 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1391
eb4efbdc 1392 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1393 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1394 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1395 DEFAULT_wxUSE_CMDLINE_PARSER=no
1396 DEFAULT_wxUSE_DATETIME=no
1397 DEFAULT_wxUSE_TIMEDATE=no
1398 DEFAULT_wxUSE_TIMER=no
1399 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1400 DEFAULT_wxUSE_FILE=no
1e6feb95 1401 DEFAULT_wxUSE_FFILE=no
10f2d63a 1402 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1403 DEFAULT_wxUSE_WAVE=no
1404 DEFAULT_wxUSE_INTL=no
1405 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1406 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1407 DEFAULT_wxUSE_STREAMS=no
1408 DEFAULT_wxUSE_SOCKETS=no
1409 DEFAULT_wxUSE_DIALUP_MANAGER=no
1410 DEFAULT_wxUSE_SERIAL=no
1411 DEFAULT_wxUSE_JOYSTICK=no
1412 DEFAULT_wxUSE_DYNLIB_CLASS=no
1413 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1414 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1415
1416 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1417 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1418 DEFAULT_wxUSE_POSTSCRIPT=no
1419
1420 DEFAULT_wxUSE_X_RESOURCES=no
1421 DEFAULT_wxUSE_CLIPBOARD=no
1422 DEFAULT_wxUSE_TOOLTIPS=no
1423 DEFAULT_wxUSE_DRAG_AND_DROP=no
1424 DEFAULT_wxUSE_SPLINES=no
1425
1426 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1427 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1428 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1429
1430 DEFAULT_wxUSE_PROLOGIO=no
1431 DEFAULT_wxUSE_RESOURCES=no
1432 DEFAULT_wxUSE_CONSTRAINTS=no
1433 DEFAULT_wxUSE_IPC=no
1434 DEFAULT_wxUSE_HELP=no
1435 DEFAULT_wxUSE_WXTREE=no
1436 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1437 DEFAULT_wxUSE_MIMETYPE=no
10f2d63a
VZ
1438
1439 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1440 DEFAULT_wxUSE_CHOICEDLG=no
1441 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1442 DEFAULT_wxUSE_DIRDLG=no
1e6feb95
VZ
1443 DEFAULT_wxUSE_FILEDLG=no
1444 DEFAULT_wxUSE_FONTDLG=no
1445 DEFAULT_wxUSE_MSGDLG=no
1446 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a
VZ
1447 DEFAULT_wxUSE_TEXTDLG=no
1448 DEFAULT_wxUSE_STARTUP_TIPS=no
1449 DEFAULT_wxUSE_PROGRESSDLG=no
1e6feb95 1450 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1451 DEFAULT_wxUSE_MINIFRAME=no
1452 DEFAULT_wxUSE_HTML=no
24528b0c 1453 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1454 DEFAULT_wxUSE_FS_INET=no
1455 DEFAULT_wxUSE_FS_ZIP=no
1456 DEFAULT_wxUSE_BUSYINFO=no
1457 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1458 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1459
1460 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1461 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1462 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1463 DEFAULT_wxUSE_CALCTRL=no
1464 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1465 DEFAULT_wxUSE_CHECKBOX=no
1466 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1467 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1468 DEFAULT_wxUSE_COMBOBOX=no
1469 DEFAULT_wxUSE_GAUGE=no
1470 DEFAULT_wxUSE_GRID=no
1471 DEFAULT_wxUSE_NEW_GRID=no
1472 DEFAULT_wxUSE_IMAGLIST=no
1473 DEFAULT_wxUSE_LISTBOX=no
1474 DEFAULT_wxUSE_LISTCTRL=no
1475 DEFAULT_wxUSE_NOTEBOOK=no
1476 DEFAULT_wxUSE_RADIOBOX=no
1477 DEFAULT_wxUSE_RADIOBTN=no
1478 DEFAULT_wxUSE_SASH=no
1479 DEFAULT_wxUSE_SCROLLBAR=no
1480 DEFAULT_wxUSE_SLIDER=no
1481 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1482 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1483 DEFAULT_wxUSE_SPLITTER=no
1484 DEFAULT_wxUSE_STATBMP=no
1485 DEFAULT_wxUSE_STATBOX=no
1486 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1487 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1488 DEFAULT_wxUSE_STATUSBAR=yes
1489 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1490 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1491 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1492 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1493 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1494 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1495 DEFAULT_wxUSE_TREECTRL=no
1496
1497 DEFAULT_wxUSE_UNICODE=no
1498 DEFAULT_wxUSE_WCSRTOMBS=no
1499
0046ff7c 1500 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1501 DEFAULT_wxUSE_GIF=no
1502 DEFAULT_wxUSE_PCX=no
1503 DEFAULT_wxUSE_PNM=no
0046ff7c 1504 DEFAULT_wxUSE_XPM=no
10f2d63a 1505else
1e6feb95
VZ
1506 DEFAULT_wxUSE_UNIVERSAL=no
1507
10f2d63a
VZ
1508 DEFAULT_wxUSE_THREADS=yes
1509
1510 DEFAULT_wxUSE_SHARED=yes
00cf1208 1511 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1512 DEFAULT_wxUSE_OPTIMISE=yes
1513 DEFAULT_wxUSE_PROFILE=no
1514 DEFAULT_wxUSE_NO_DEPS=no
1515 DEFAULT_wxUSE_NO_RTTI=no
1516 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1517 DEFAULT_wxUSE_PERMISSIVE=no
1518 DEFAULT_wxUSE_DEBUG_FLAG=no
1519 DEFAULT_wxUSE_DEBUG_INFO=no
1520 DEFAULT_wxUSE_DEBUG_GDB=no
1521 DEFAULT_wxUSE_MEM_TRACING=no
1522 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1523 DEFAULT_wxUSE_DMALLOC=no
1524 DEFAULT_wxUSE_APPLE_IEEE=yes
1525
1526 DEFAULT_wxUSE_LOG=yes
1527
1528 DEFAULT_wxUSE_GUI=yes
1529
1530 DEFAULT_wxUSE_ZLIB=yes
1531 DEFAULT_wxUSE_LIBPNG=yes
1532 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1533 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1534 DEFAULT_wxUSE_ODBC=no
3fed1840 1535 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1536 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1537
eb4efbdc 1538 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1539 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1540 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1541 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1542 DEFAULT_wxUSE_DATETIME=yes
1543 DEFAULT_wxUSE_TIMEDATE=no
1544 DEFAULT_wxUSE_TIMER=yes
1545 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1546 DEFAULT_wxUSE_FILE=yes
1e6feb95 1547 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1548 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1549 DEFAULT_wxUSE_WAVE=no
1550 DEFAULT_wxUSE_INTL=yes
1551 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1552 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1553 DEFAULT_wxUSE_STREAMS=yes
1554 DEFAULT_wxUSE_SOCKETS=yes
1555 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1556 DEFAULT_wxUSE_SERIAL=yes
1557 DEFAULT_wxUSE_JOYSTICK=yes
1558 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1559 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1560 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1561
1562 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1563 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1564 DEFAULT_wxUSE_POSTSCRIPT=yes
1565
1566 DEFAULT_wxUSE_X_RESOURCES=no
1567 DEFAULT_wxUSE_CLIPBOARD=yes
1568 DEFAULT_wxUSE_TOOLTIPS=yes
1569 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1570 DEFAULT_wxUSE_SPLINES=yes
1571
1572 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1573 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1574 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1575
1576 DEFAULT_wxUSE_PROLOGIO=yes
1577 DEFAULT_wxUSE_RESOURCES=yes
1578 DEFAULT_wxUSE_CONSTRAINTS=yes
1579 DEFAULT_wxUSE_IPC=yes
1580 DEFAULT_wxUSE_HELP=yes
1581 DEFAULT_wxUSE_WXTREE=yes
1582 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1583 DEFAULT_wxUSE_MIMETYPE=yes
10f2d63a
VZ
1584
1585 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1586 DEFAULT_wxUSE_CHOICEDLG=yes
1587 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1588 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95
VZ
1589 DEFAULT_wxUSE_FILEDLG=yes
1590 DEFAULT_wxUSE_FONTDLG=yes
1591 DEFAULT_wxUSE_MSGDLG=yes
1592 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a
VZ
1593 DEFAULT_wxUSE_TEXTDLG=yes
1594 DEFAULT_wxUSE_STARTUP_TIPS=yes
1595 DEFAULT_wxUSE_PROGRESSDLG=yes
1e6feb95 1596 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1597 DEFAULT_wxUSE_MINIFRAME=yes
1598 DEFAULT_wxUSE_HTML=yes
24528b0c 1599 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1600 DEFAULT_wxUSE_FS_INET=yes
1601 DEFAULT_wxUSE_FS_ZIP=yes
1602 DEFAULT_wxUSE_BUSYINFO=yes
1603 DEFAULT_wxUSE_ZIPSTREAM=yes
1604 DEFAULT_wxUSE_VALIDATORS=yes
1605
1606 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1607 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1608 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1609 DEFAULT_wxUSE_CALCTRL=yes
1610 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1611 DEFAULT_wxUSE_CHECKBOX=yes
1612 DEFAULT_wxUSE_CHECKLST=yes
1613 DEFAULT_wxUSE_CHOICE=yes
1614 DEFAULT_wxUSE_COMBOBOX=yes
1615 DEFAULT_wxUSE_GAUGE=yes
1616 DEFAULT_wxUSE_GRID=yes
cc977e5f 1617 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1618 DEFAULT_wxUSE_IMAGLIST=yes
1619 DEFAULT_wxUSE_LISTBOX=yes
1620 DEFAULT_wxUSE_LISTCTRL=yes
1621 DEFAULT_wxUSE_NOTEBOOK=yes
1622 DEFAULT_wxUSE_RADIOBOX=yes
1623 DEFAULT_wxUSE_RADIOBTN=yes
1624 DEFAULT_wxUSE_SASH=yes
1625 DEFAULT_wxUSE_SCROLLBAR=yes
1626 DEFAULT_wxUSE_SLIDER=yes
1627 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1628 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1629 DEFAULT_wxUSE_SPLITTER=yes
1630 DEFAULT_wxUSE_STATBMP=yes
1631 DEFAULT_wxUSE_STATBOX=yes
1632 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1633 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1634 DEFAULT_wxUSE_STATUSBAR=yes
1635 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1636 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1637 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1638 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1639 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1640 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1641 DEFAULT_wxUSE_TREECTRL=yes
1642
1643 DEFAULT_wxUSE_UNICODE=no
1644 DEFAULT_wxUSE_WCSRTOMBS=no
1645
0046ff7c 1646 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1647 DEFAULT_wxUSE_GIF=yes
1648 DEFAULT_wxUSE_PCX=yes
1649 DEFAULT_wxUSE_PNM=yes
0046ff7c 1650 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1651fi
1652
698dcdb6
VZ
1653
1654
10f2d63a
VZ
1655for toolkit in `echo $ALL_TOOLKITS`; do
1656 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1657 if test "x$LINE" != x ; then
1658 has_toolkit_in_cache=1
1659 eval "DEFAULT_$LINE"
1660 eval "CACHE_$toolkit=1"
1661 fi
1662done
1663
698dcdb6
VZ
1664
1665
1666 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1e6feb95 1667echo "configure:1668: checking for --enable-gui" >&5
10f2d63a
VZ
1668 no_cache=0
1669 # Check whether --enable-gui or --disable-gui was given.
1670if test "${enable_gui+set}" = set; then
1671 enableval="$enable_gui"
698dcdb6 1672
10f2d63a
VZ
1673 if test "$enableval" = yes; then
1674 ac_cv_use_gui='wxUSE_GUI=yes'
1675 else
1676 ac_cv_use_gui='wxUSE_GUI=no'
1677 fi
698dcdb6 1678
10f2d63a 1679else
698dcdb6 1680
10f2d63a
VZ
1681 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1682 if test "x$LINE" != x ; then
1683 eval "DEFAULT_$LINE"
1684 else
1685 no_cache=1
1686 fi
1687
1688 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1689
1690fi
10f2d63a
VZ
1691
1692
1693 eval "$ac_cv_use_gui"
1694 if test "$no_cache" != 1; then
1695 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1696 fi
1697
1698 if test "$wxUSE_GUI" = yes; then
698dcdb6 1699 echo "$ac_t""yes" 1>&6
10f2d63a 1700 else
698dcdb6 1701 echo "$ac_t""no" 1>&6
10f2d63a 1702 fi
698dcdb6 1703
10f2d63a 1704
b12915c1 1705if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1706
1e6feb95
VZ
1707
1708 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1709echo "configure:1710: checking for --enable-universal" >&5
1710 no_cache=0
1711 # Check whether --enable-universal or --disable-universal was given.
1712if test "${enable_universal+set}" = set; then
1713 enableval="$enable_universal"
1714
1715 if test "$enableval" = yes; then
1716 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1717 else
1718 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1719 fi
1720
1721else
1722
1723 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1724 if test "x$LINE" != x ; then
1725 eval "DEFAULT_$LINE"
1726 else
1727 no_cache=1
1728 fi
1729
1730 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1731
1732fi
1733
1734
1735 eval "$ac_cv_use_universal"
1736 if test "$no_cache" != 1; then
1737 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1738 fi
1739
1740 if test "$wxUSE_UNIVERSAL" = yes; then
1741 echo "$ac_t""yes" 1>&6
1742 else
1743 echo "$ac_t""no" 1>&6
1744 fi
1745
10f2d63a
VZ
1746# Check whether --with-gtk or --without-gtk was given.
1747if test "${with_gtk+set}" = set; then
1748 withval="$with_gtk"
1749 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1750fi
10f2d63a
VZ
1751
1752# Check whether --with-motif or --without-motif was given.
1753if test "${with_motif+set}" = set; then
1754 withval="$with_motif"
1755 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1756fi
10f2d63a 1757
b4085ce6
GD
1758# Check whether --with-mac or --without-mac was given.
1759if test "${with_mac+set}" = set; then
1760 withval="$with_mac"
1761 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1762fi
b4085ce6 1763
10f2d63a
VZ
1764# Check whether --with-wine or --without-wine was given.
1765if test "${with_wine+set}" = set; then
1766 withval="$with_wine"
1767 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1768fi
10f2d63a
VZ
1769
1770# Check whether --with-cygwin or --without-cygwin was given.
1771if test "${with_cygwin+set}" = set; then
1772 withval="$with_cygwin"
1773 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1774fi
10f2d63a
VZ
1775
1776# Check whether --with-mingw or --without-mingw was given.
1777if test "${with_mingw+set}" = set; then
1778 withval="$with_mingw"
1779 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
698dcdb6 1780fi
10f2d63a 1781
e07802fc
VZ
1782# Check whether --with-pm or --without-pm was given.
1783if test "${with_pm+set}" = set; then
1784 withval="$with_pm"
1785 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1786fi
1787
1e6feb95
VZ
1788# Check whether --with-mgl or --without-mgl was given.
1789if test "${with_mgl+set}" = set; then
1790 withval="$with_mgl"
1791 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1792fi
1793
10f2d63a
VZ
1794
1795# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1796if test "${with_gtk_prefix+set}" = set; then
1797 withval="$with_gtk_prefix"
1798 gtk_config_prefix="$withval"
1799else
1800 gtk_config_prefix=""
698dcdb6 1801fi
10f2d63a
VZ
1802
1803# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1804if test "${with_gtk_exec_prefix+set}" = set; then
1805 withval="$with_gtk_exec_prefix"
1806 gtk_config_exec_prefix="$withval"
1807else
1808 gtk_config_exec_prefix=""
698dcdb6
VZ
1809fi
1810
703e0a69 1811
1e487827 1812
698dcdb6 1813 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1e6feb95 1814echo "configure:1815: checking for --with-libpng" >&5
698dcdb6
VZ
1815 no_cache=0
1816 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1817if test "${with_libpng+set}" = set; then
1818 withval="$with_libpng"
698dcdb6 1819
10f2d63a 1820 if test "$withval" = yes; then
b12915c1 1821 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1822 elif test "$withval" = no; then
b12915c1 1823 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1824 elif test "$withval" = sys; then
1825 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1826 else
698dcdb6 1827 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1828 fi
698dcdb6 1829
10f2d63a 1830else
698dcdb6 1831
b12915c1 1832 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1833 if test "x$LINE" != x ; then
1834 eval "DEFAULT_$LINE"
1835 else
1836 no_cache=1
1837 fi
1838
b12915c1 1839 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1840
1841fi
10f2d63a
VZ
1842
1843
b12915c1 1844 eval "$ac_cv_use_libpng"
10f2d63a 1845 if test "$no_cache" != 1; then
b12915c1 1846 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1847 fi
1848
b12915c1 1849 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1850 echo "$ac_t""yes" 1>&6
422107f9 1851 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1852 echo "$ac_t""no" 1>&6
422107f9 1853 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1854 echo "$ac_t""system version" 1>&6
422107f9 1855 else
698dcdb6 1856 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1857 fi
698dcdb6 1858
10f2d63a 1859
698dcdb6 1860 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1e6feb95 1861echo "configure:1862: checking for --with-libjpeg" >&5
10f2d63a 1862 no_cache=0
698dcdb6 1863 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1864if test "${with_libjpeg+set}" = set; then
1865 withval="$with_libjpeg"
698dcdb6 1866
10f2d63a 1867 if test "$withval" = yes; then
b12915c1 1868 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1869 elif test "$withval" = no; then
b12915c1 1870 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1871 elif test "$withval" = sys; then
1872 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1873 else
698dcdb6 1874 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1875 fi
698dcdb6 1876
10f2d63a 1877else
698dcdb6 1878
b12915c1 1879 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1880 if test "x$LINE" != x ; then
1881 eval "DEFAULT_$LINE"
1882 else
1883 no_cache=1
1884 fi
1885
b12915c1 1886 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1887
1888fi
10f2d63a
VZ
1889
1890
b12915c1 1891 eval "$ac_cv_use_libjpeg"
10f2d63a 1892 if test "$no_cache" != 1; then
b12915c1 1893 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1894 fi
1895
b12915c1 1896 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1897 echo "$ac_t""yes" 1>&6
422107f9 1898 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1899 echo "$ac_t""no" 1>&6
422107f9 1900 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1901 echo "$ac_t""system version" 1>&6
422107f9 1902 else
698dcdb6 1903 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1904 fi
698dcdb6 1905
10f2d63a 1906
698dcdb6 1907 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1e6feb95 1908echo "configure:1909: checking for --with-libtiff" >&5
10f2d63a 1909 no_cache=0
698dcdb6 1910 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1911if test "${with_libtiff+set}" = set; then
1912 withval="$with_libtiff"
698dcdb6 1913
10f2d63a 1914 if test "$withval" = yes; then
b12915c1 1915 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1916 elif test "$withval" = no; then
b12915c1 1917 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1918 elif test "$withval" = sys; then
1919 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1920 else
698dcdb6 1921 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1922 fi
698dcdb6 1923
10f2d63a 1924else
698dcdb6 1925
b12915c1 1926 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1927 if test "x$LINE" != x ; then
1928 eval "DEFAULT_$LINE"
1929 else
1930 no_cache=1
1931 fi
1932
b12915c1 1933 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1934
1935fi
10f2d63a
VZ
1936
1937
b12915c1 1938 eval "$ac_cv_use_libtiff"
10f2d63a 1939 if test "$no_cache" != 1; then
b12915c1 1940 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1941 fi
1942
b12915c1 1943 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1944 echo "$ac_t""yes" 1>&6
0dcf9893 1945 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1946 echo "$ac_t""no" 1>&6
0dcf9893 1947 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1948 echo "$ac_t""system version" 1>&6
0dcf9893 1949 else
698dcdb6 1950 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1951 fi
698dcdb6 1952
10f2d63a 1953
698dcdb6 1954 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1e6feb95 1955echo "configure:1956: checking for --with-freetype" >&5
3fed1840 1956 no_cache=0
698dcdb6 1957 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
1958if test "${with_freetype+set}" = set; then
1959 withval="$with_freetype"
698dcdb6 1960
3fed1840
RR
1961 if test "$withval" = yes; then
1962 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1963 elif test "$withval" = no; then
1964 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1965 elif test "$withval" = sys; then
1966 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1967 else
698dcdb6 1968 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1969 fi
698dcdb6 1970
3fed1840 1971else
698dcdb6 1972
3fed1840
RR
1973 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1974 if test "x$LINE" != x ; then
1975 eval "DEFAULT_$LINE"
1976 else
1977 no_cache=1
1978 fi
1979
1980 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
1981
1982fi
3fed1840
RR
1983
1984
1985 eval "$ac_cv_use_freetype"
1986 if test "$no_cache" != 1; then
1987 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1988 fi
1989
1990 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 1991 echo "$ac_t""yes" 1>&6
3fed1840 1992 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 1993 echo "$ac_t""no" 1>&6
3fed1840 1994 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 1995 echo "$ac_t""system version" 1>&6
3fed1840 1996 else
698dcdb6 1997 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1998 fi
698dcdb6 1999
3fed1840 2000
698dcdb6 2001 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
1e6feb95 2002echo "configure:2003: checking for --with-opengl" >&5
10f2d63a 2003 no_cache=0
698dcdb6 2004 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2005if test "${with_opengl+set}" = set; then
2006 withval="$with_opengl"
698dcdb6 2007
10f2d63a 2008 if test "$withval" = yes; then
b12915c1 2009 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2010 else
b12915c1 2011 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2012 fi
698dcdb6 2013
10f2d63a 2014else
698dcdb6 2015
b12915c1 2016 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2017 if test "x$LINE" != x ; then
2018 eval "DEFAULT_$LINE"
2019 else
2020 no_cache=1
2021 fi
2022
b12915c1 2023 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2024
2025fi
10f2d63a
VZ
2026
2027
b12915c1 2028 eval "$ac_cv_use_opengl"
10f2d63a 2029 if test "$no_cache" != 1; then
b12915c1 2030 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2031 fi
2032
b12915c1 2033 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2034 echo "$ac_t""yes" 1>&6
10f2d63a 2035 else
698dcdb6 2036 echo "$ac_t""no" 1>&6
10f2d63a 2037 fi
698dcdb6 2038
10f2d63a 2039
b12915c1
VZ
2040fi
2041
1e487827 2042
698dcdb6 2043 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
1e6feb95 2044echo "configure:2045: checking for --with-dmalloc" >&5
698dcdb6
VZ
2045 no_cache=0
2046 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2047if test "${with_dmalloc+set}" = set; then
2048 withval="$with_dmalloc"
698dcdb6 2049
c7a2bf27 2050 if test "$withval" = yes; then
b12915c1 2051 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2052 else
b12915c1 2053 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2054 fi
698dcdb6 2055
c7a2bf27 2056else
698dcdb6 2057
b12915c1 2058 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2059 if test "x$LINE" != x ; then
2060 eval "DEFAULT_$LINE"
2061 else
2062 no_cache=1
2063 fi
2064
b12915c1 2065 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2066
2067fi
c7a2bf27
RR
2068
2069
b12915c1 2070 eval "$ac_cv_use_dmalloc"
c7a2bf27 2071 if test "$no_cache" != 1; then
b12915c1 2072 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2073 fi
2074
b12915c1 2075 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2076 echo "$ac_t""yes" 1>&6
c7a2bf27 2077 else
698dcdb6 2078 echo "$ac_t""no" 1>&6
c7a2bf27 2079 fi
698dcdb6 2080
c7a2bf27 2081
698dcdb6 2082 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
1e6feb95 2083echo "configure:2084: checking for --with-zlib" >&5
10f2d63a 2084 no_cache=0
698dcdb6 2085 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2086if test "${with_zlib+set}" = set; then
2087 withval="$with_zlib"
698dcdb6 2088
10f2d63a 2089 if test "$withval" = yes; then
b12915c1 2090 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2091 elif test "$withval" = no; then
b12915c1 2092 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2093 elif test "$withval" = sys; then
2094 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2095 else
698dcdb6 2096 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2097 fi
698dcdb6 2098
10f2d63a 2099else
698dcdb6 2100
b12915c1 2101 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2102 if test "x$LINE" != x ; then
2103 eval "DEFAULT_$LINE"
2104 else
2105 no_cache=1
2106 fi
2107
b12915c1 2108 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2109
2110fi
10f2d63a
VZ
2111
2112
b12915c1 2113 eval "$ac_cv_use_zlib"
10f2d63a 2114 if test "$no_cache" != 1; then
b12915c1 2115 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2116 fi
2117
b12915c1 2118 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2119 echo "$ac_t""yes" 1>&6
422107f9 2120 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2121 echo "$ac_t""no" 1>&6
422107f9 2122 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2123 echo "$ac_t""system version" 1>&6
422107f9 2124 else
698dcdb6 2125 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2126 fi
698dcdb6 2127
10f2d63a 2128
698dcdb6 2129 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
1e6feb95 2130echo "configure:2131: checking for --with-odbc" >&5
10f2d63a 2131 no_cache=0
698dcdb6 2132 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2133if test "${with_odbc+set}" = set; then
2134 withval="$with_odbc"
698dcdb6 2135
10f2d63a
VZ
2136 if test "$withval" = yes; then
2137 ac_cv_use_odbc='wxUSE_ODBC=yes'
2138 else
2139 ac_cv_use_odbc='wxUSE_ODBC=no'
2140 fi
698dcdb6 2141
10f2d63a 2142else
698dcdb6 2143
10f2d63a
VZ
2144 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2145 if test "x$LINE" != x ; then
2146 eval "DEFAULT_$LINE"
2147 else
2148 no_cache=1
2149 fi
2150
2151 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2152
2153fi
10f2d63a
VZ
2154
2155
2156 eval "$ac_cv_use_odbc"
2157 if test "$no_cache" != 1; then
2158 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2159 fi
2160
2161 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2162 echo "$ac_t""yes" 1>&6
10f2d63a 2163 else
698dcdb6 2164 echo "$ac_t""no" 1>&6
10f2d63a 2165 fi
698dcdb6
VZ
2166
2167
10f2d63a 2168
698dcdb6
VZ
2169
2170
2171 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
1e6feb95 2172echo "configure:2173: checking for --enable-shared" >&5
10f2d63a
VZ
2173 no_cache=0
2174 # Check whether --enable-shared or --disable-shared was given.
2175if test "${enable_shared+set}" = set; then
2176 enableval="$enable_shared"
698dcdb6 2177
10f2d63a
VZ
2178 if test "$enableval" = yes; then
2179 ac_cv_use_shared='wxUSE_SHARED=yes'
2180 else
2181 ac_cv_use_shared='wxUSE_SHARED=no'
2182 fi
698dcdb6 2183
10f2d63a 2184else
698dcdb6 2185
10f2d63a
VZ
2186 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2187 if test "x$LINE" != x ; then
2188 eval "DEFAULT_$LINE"
2189 else
2190 no_cache=1
2191 fi
2192
2193 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2194
2195fi
10f2d63a
VZ
2196
2197
2198 eval "$ac_cv_use_shared"
2199 if test "$no_cache" != 1; then
2200 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2201 fi
2202
2203 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2204 echo "$ac_t""yes" 1>&6
10f2d63a 2205 else
698dcdb6 2206 echo "$ac_t""no" 1>&6
10f2d63a 2207 fi
698dcdb6 2208
10f2d63a 2209
698dcdb6 2210 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
1e6feb95 2211echo "configure:2212: checking for --enable-burnt_name" >&5
00cf1208
RR
2212 no_cache=0
2213 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2214if test "${enable_burnt_name+set}" = set; then
2215 enableval="$enable_burnt_name"
698dcdb6 2216
00cf1208
RR
2217 if test "$enableval" = yes; then
2218 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2219 else
2220 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2221 fi
698dcdb6 2222
00cf1208 2223else
698dcdb6 2224
00cf1208
RR
2225 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2226 if test "x$LINE" != x ; then
2227 eval "DEFAULT_$LINE"
2228 else
2229 no_cache=1
2230 fi
2231
2232 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
698dcdb6
VZ
2233
2234fi
00cf1208
RR
2235
2236
2237 eval "$ac_cv_use_burnt_name"
2238 if test "$no_cache" != 1; then
2239 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2240 fi
2241
2242 if test "$wxUSE_BURNT_NAME" = yes; then
698dcdb6 2243 echo "$ac_t""yes" 1>&6
00cf1208 2244 else
698dcdb6 2245 echo "$ac_t""no" 1>&6
00cf1208 2246 fi
698dcdb6 2247
00cf1208 2248
698dcdb6 2249 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
1e6feb95 2250echo "configure:2251: checking for --enable-optimise" >&5
10f2d63a
VZ
2251 no_cache=0
2252 # Check whether --enable-optimise or --disable-optimise was given.
2253if test "${enable_optimise+set}" = set; then
2254 enableval="$enable_optimise"
698dcdb6 2255
10f2d63a
VZ
2256 if test "$enableval" = yes; then
2257 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2258 else
2259 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2260 fi
698dcdb6 2261
10f2d63a 2262else
698dcdb6 2263
10f2d63a
VZ
2264 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2265 if test "x$LINE" != x ; then
2266 eval "DEFAULT_$LINE"
2267 else
2268 no_cache=1
2269 fi
2270
2271 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2272
2273fi
10f2d63a
VZ
2274
2275
2276 eval "$ac_cv_use_optimise"
2277 if test "$no_cache" != 1; then
2278 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2279 fi
2280
2281 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2282 echo "$ac_t""yes" 1>&6
10f2d63a 2283 else
698dcdb6 2284 echo "$ac_t""no" 1>&6
10f2d63a 2285 fi
698dcdb6 2286
10f2d63a 2287
698dcdb6 2288 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
1e6feb95 2289echo "configure:2290: checking for --enable-debug" >&5
10f2d63a
VZ
2290 no_cache=0
2291 # Check whether --enable-debug or --disable-debug was given.
2292if test "${enable_debug+set}" = set; then
2293 enableval="$enable_debug"
698dcdb6 2294
10f2d63a
VZ
2295 if test "$enableval" = yes; then
2296 ac_cv_use_debug='wxUSE_DEBUG=yes'
2297 else
2298 ac_cv_use_debug='wxUSE_DEBUG=no'
2299 fi
698dcdb6 2300
10f2d63a 2301else
698dcdb6 2302
10f2d63a
VZ
2303 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2304 if test "x$LINE" != x ; then
2305 eval "DEFAULT_$LINE"
2306 else
2307 no_cache=1
2308 fi
2309
2310 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2311
2312fi
10f2d63a
VZ
2313
2314
2315 eval "$ac_cv_use_debug"
2316 if test "$no_cache" != 1; then
2317 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2318 fi
2319
2320 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2321 echo "$ac_t""yes" 1>&6
10f2d63a 2322 else
698dcdb6 2323 echo "$ac_t""no" 1>&6
10f2d63a 2324 fi
698dcdb6 2325
10f2d63a
VZ
2326
2327if test "$wxUSE_DEBUG" = "yes"; then
2328 DEFAULT_wxUSE_DEBUG_FLAG=yes
2329 DEFAULT_wxUSE_DEBUG_INFO=yes
2330elif test "$wxUSE_DEBUG" = "no"; then
2331 DEFAULT_wxUSE_DEBUG_FLAG=no
2332 DEFAULT_wxUSE_DEBUG_INFO=no
2333fi
2334
698dcdb6
VZ
2335
2336 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
1e6feb95 2337echo "configure:2338: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2338 no_cache=0
2339 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2340if test "${enable_debug_flag+set}" = set; then
2341 enableval="$enable_debug_flag"
698dcdb6 2342
10f2d63a
VZ
2343 if test "$enableval" = yes; then
2344 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2345 else
2346 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2347 fi
698dcdb6 2348
10f2d63a 2349else
698dcdb6 2350
10f2d63a
VZ
2351 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2352 if test "x$LINE" != x ; then
2353 eval "DEFAULT_$LINE"
2354 else
2355 no_cache=1
2356 fi
2357
2358 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2359
2360fi
10f2d63a
VZ
2361
2362
2363 eval "$ac_cv_use_debug_flag"
2364 if test "$no_cache" != 1; then
2365 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2366 fi
2367
2368 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2369 echo "$ac_t""yes" 1>&6
10f2d63a 2370 else
698dcdb6 2371 echo "$ac_t""no" 1>&6
10f2d63a 2372 fi
698dcdb6 2373
10f2d63a 2374
698dcdb6 2375 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
1e6feb95 2376echo "configure:2377: checking for --enable-debug_info" >&5
10f2d63a
VZ
2377 no_cache=0
2378 # Check whether --enable-debug_info or --disable-debug_info was given.
2379if test "${enable_debug_info+set}" = set; then
2380 enableval="$enable_debug_info"
698dcdb6 2381
10f2d63a
VZ
2382 if test "$enableval" = yes; then
2383 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2384 else
2385 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2386 fi
698dcdb6 2387
10f2d63a 2388else
698dcdb6 2389
10f2d63a
VZ
2390 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2391 if test "x$LINE" != x ; then
2392 eval "DEFAULT_$LINE"
2393 else
2394 no_cache=1
2395 fi
2396
2397 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2398
2399fi
10f2d63a
VZ
2400
2401
2402 eval "$ac_cv_use_debug_info"
2403 if test "$no_cache" != 1; then
2404 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2405 fi
2406
2407 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2408 echo "$ac_t""yes" 1>&6
10f2d63a 2409 else
698dcdb6 2410 echo "$ac_t""no" 1>&6
10f2d63a 2411 fi
698dcdb6 2412
10f2d63a 2413
698dcdb6 2414 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
1e6feb95 2415echo "configure:2416: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2416 no_cache=0
2417 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2418if test "${enable_debug_gdb+set}" = set; then
2419 enableval="$enable_debug_gdb"
698dcdb6 2420
10f2d63a
VZ
2421 if test "$enableval" = yes; then
2422 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2423 else
2424 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2425 fi
698dcdb6 2426
10f2d63a 2427else
698dcdb6 2428
10f2d63a
VZ
2429 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2430 if test "x$LINE" != x ; then
2431 eval "DEFAULT_$LINE"
2432 else
2433 no_cache=1
2434 fi
2435
2436 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2437
2438fi
10f2d63a
VZ
2439
2440
2441 eval "$ac_cv_use_debug_gdb"
2442 if test "$no_cache" != 1; then
2443 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2444 fi
2445
2446 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2447 echo "$ac_t""yes" 1>&6
10f2d63a 2448 else
698dcdb6 2449 echo "$ac_t""no" 1>&6
10f2d63a 2450 fi
698dcdb6 2451
10f2d63a 2452
698dcdb6 2453 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
1e6feb95 2454echo "configure:2455: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2455 no_cache=0
2456 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2457if test "${enable_debug_cntxt+set}" = set; then
2458 enableval="$enable_debug_cntxt"
698dcdb6 2459
10f2d63a
VZ
2460 if test "$enableval" = yes; then
2461 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2462 else
2463 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2464 fi
698dcdb6 2465
10f2d63a 2466else
698dcdb6 2467
10f2d63a
VZ
2468 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2476
2477fi
10f2d63a
VZ
2478
2479
2480 eval "$ac_cv_use_debug_cntxt"
2481 if test "$no_cache" != 1; then
2482 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2483 fi
2484
2485 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2486 echo "$ac_t""yes" 1>&6
10f2d63a 2487 else
698dcdb6 2488 echo "$ac_t""no" 1>&6
10f2d63a 2489 fi
698dcdb6 2490
10f2d63a 2491
698dcdb6 2492 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
1e6feb95 2493echo "configure:2494: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2494 no_cache=0
2495 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2496if test "${enable_mem_tracing+set}" = set; then
2497 enableval="$enable_mem_tracing"
698dcdb6 2498
10f2d63a
VZ
2499 if test "$enableval" = yes; then
2500 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2501 else
2502 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2503 fi
698dcdb6 2504
10f2d63a 2505else
698dcdb6 2506
10f2d63a
VZ
2507 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2508 if test "x$LINE" != x ; then
2509 eval "DEFAULT_$LINE"
2510 else
2511 no_cache=1
2512 fi
2513
2514 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2515
2516fi
10f2d63a
VZ
2517
2518
2519 eval "$ac_cv_use_mem_tracing"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2525 echo "$ac_t""yes" 1>&6
10f2d63a 2526 else
698dcdb6 2527 echo "$ac_t""no" 1>&6
10f2d63a 2528 fi
698dcdb6 2529
10f2d63a 2530
698dcdb6 2531 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
1e6feb95 2532echo "configure:2533: checking for --enable-profile" >&5
10f2d63a
VZ
2533 no_cache=0
2534 # Check whether --enable-profile or --disable-profile was given.
2535if test "${enable_profile+set}" = set; then
2536 enableval="$enable_profile"
698dcdb6 2537
10f2d63a
VZ
2538 if test "$enableval" = yes; then
2539 ac_cv_use_profile='wxUSE_PROFILE=yes'
2540 else
2541 ac_cv_use_profile='wxUSE_PROFILE=no'
2542 fi
698dcdb6 2543
10f2d63a 2544else
698dcdb6 2545
10f2d63a
VZ
2546 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2547 if test "x$LINE" != x ; then
2548 eval "DEFAULT_$LINE"
2549 else
2550 no_cache=1
2551 fi
2552
2553 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2554
2555fi
10f2d63a
VZ
2556
2557
2558 eval "$ac_cv_use_profile"
2559 if test "$no_cache" != 1; then
2560 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2561 fi
2562
2563 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2564 echo "$ac_t""yes" 1>&6
10f2d63a 2565 else
698dcdb6 2566 echo "$ac_t""no" 1>&6
10f2d63a 2567 fi
698dcdb6 2568
10f2d63a 2569
698dcdb6 2570 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
1e6feb95 2571echo "configure:2572: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2572 no_cache=0
2573 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2574if test "${enable_no_rtti+set}" = set; then
2575 enableval="$enable_no_rtti"
698dcdb6 2576
10f2d63a
VZ
2577 if test "$enableval" = yes; then
2578 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2579 else
2580 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2581 fi
698dcdb6 2582
10f2d63a 2583else
698dcdb6 2584
10f2d63a
VZ
2585 LINE=`grep "wxUSE_NO_RTTI" ${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_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2593
2594fi
10f2d63a
VZ
2595
2596
2597 eval "$ac_cv_use_no_rtti"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2603 echo "$ac_t""yes" 1>&6
10f2d63a 2604 else
698dcdb6 2605 echo "$ac_t""no" 1>&6
10f2d63a 2606 fi
698dcdb6 2607
10f2d63a 2608
698dcdb6 2609 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
1e6feb95 2610echo "configure:2611: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2611 no_cache=0
2612 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2613if test "${enable_no_exceptions+set}" = set; then
2614 enableval="$enable_no_exceptions"
698dcdb6 2615
10f2d63a
VZ
2616 if test "$enableval" = yes; then
2617 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2618 else
2619 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2620 fi
698dcdb6 2621
10f2d63a 2622else
698dcdb6 2623
10f2d63a
VZ
2624 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2625 if test "x$LINE" != x ; then
2626 eval "DEFAULT_$LINE"
2627 else
2628 no_cache=1
2629 fi
2630
2631 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2632
2633fi
10f2d63a
VZ
2634
2635
2636 eval "$ac_cv_use_no_exceptions"
2637 if test "$no_cache" != 1; then
2638 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2639 fi
2640
2641 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2642 echo "$ac_t""yes" 1>&6
10f2d63a 2643 else
698dcdb6 2644 echo "$ac_t""no" 1>&6
10f2d63a 2645 fi
698dcdb6 2646
10f2d63a 2647
698dcdb6 2648 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
1e6feb95 2649echo "configure:2650: checking for --enable-permissive" >&5
10f2d63a
VZ
2650 no_cache=0
2651 # Check whether --enable-permissive or --disable-permissive was given.
2652if test "${enable_permissive+set}" = set; then
2653 enableval="$enable_permissive"
698dcdb6 2654
10f2d63a
VZ
2655 if test "$enableval" = yes; then
2656 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2657 else
2658 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2659 fi
698dcdb6 2660
10f2d63a 2661else
698dcdb6 2662
10f2d63a
VZ
2663 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2664 if test "x$LINE" != x ; then
2665 eval "DEFAULT_$LINE"
2666 else
2667 no_cache=1
2668 fi
2669
2670 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2671
2672fi
10f2d63a
VZ
2673
2674
2675 eval "$ac_cv_use_permissive"
2676 if test "$no_cache" != 1; then
2677 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2678 fi
2679
2680 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2681 echo "$ac_t""yes" 1>&6
10f2d63a 2682 else
698dcdb6 2683 echo "$ac_t""no" 1>&6
10f2d63a 2684 fi
698dcdb6 2685
10f2d63a 2686
698dcdb6 2687 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
1e6feb95 2688echo "configure:2689: checking for --enable-no_deps" >&5
10f2d63a
VZ
2689 no_cache=0
2690 # Check whether --enable-no_deps or --disable-no_deps was given.
2691if test "${enable_no_deps+set}" = set; then
2692 enableval="$enable_no_deps"
698dcdb6 2693
10f2d63a
VZ
2694 if test "$enableval" = yes; then
2695 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2696 else
2697 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2698 fi
698dcdb6 2699
10f2d63a 2700else
698dcdb6 2701
10f2d63a
VZ
2702 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2703 if test "x$LINE" != x ; then
2704 eval "DEFAULT_$LINE"
2705 else
2706 no_cache=1
2707 fi
2708
2709 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2710
2711fi
10f2d63a
VZ
2712
2713
2714 eval "$ac_cv_use_no_deps"
2715 if test "$no_cache" != 1; then
2716 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2717 fi
2718
2719 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2720 echo "$ac_t""yes" 1>&6
10f2d63a 2721 else
698dcdb6 2722 echo "$ac_t""no" 1>&6
10f2d63a 2723 fi
698dcdb6
VZ
2724
2725
10f2d63a 2726
698dcdb6
VZ
2727
2728 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
1e6feb95 2729echo "configure:2730: checking for --enable-intl" >&5
10f2d63a
VZ
2730 no_cache=0
2731 # Check whether --enable-intl or --disable-intl was given.
2732if test "${enable_intl+set}" = set; then
2733 enableval="$enable_intl"
698dcdb6 2734
10f2d63a
VZ
2735 if test "$enableval" = yes; then
2736 ac_cv_use_intl='wxUSE_INTL=yes'
2737 else
2738 ac_cv_use_intl='wxUSE_INTL=no'
2739 fi
698dcdb6 2740
10f2d63a 2741else
698dcdb6 2742
10f2d63a
VZ
2743 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2744 if test "x$LINE" != x ; then
2745 eval "DEFAULT_$LINE"
2746 else
2747 no_cache=1
2748 fi
2749
2750 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2751
2752fi
10f2d63a
VZ
2753
2754
2755 eval "$ac_cv_use_intl"
2756 if test "$no_cache" != 1; then
2757 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2758 fi
2759
2760 if test "$wxUSE_INTL" = yes; then
698dcdb6 2761 echo "$ac_t""yes" 1>&6
10f2d63a 2762 else
698dcdb6 2763 echo "$ac_t""no" 1>&6
10f2d63a 2764 fi
698dcdb6 2765
10f2d63a 2766
698dcdb6 2767 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
1e6feb95 2768echo "configure:2769: checking for --enable-config" >&5
10f2d63a
VZ
2769 no_cache=0
2770 # Check whether --enable-config or --disable-config was given.
2771if test "${enable_config+set}" = set; then
2772 enableval="$enable_config"
698dcdb6 2773
10f2d63a
VZ
2774 if test "$enableval" = yes; then
2775 ac_cv_use_config='wxUSE_CONFIG=yes'
2776 else
2777 ac_cv_use_config='wxUSE_CONFIG=no'
2778 fi
698dcdb6 2779
10f2d63a 2780else
698dcdb6 2781
10f2d63a
VZ
2782 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2783 if test "x$LINE" != x ; then
2784 eval "DEFAULT_$LINE"
2785 else
2786 no_cache=1
2787 fi
2788
2789 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
2790
2791fi
10f2d63a
VZ
2792
2793
2794 eval "$ac_cv_use_config"
2795 if test "$no_cache" != 1; then
2796 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2797 fi
2798
2799 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 2800 echo "$ac_t""yes" 1>&6
10f2d63a 2801 else
698dcdb6 2802 echo "$ac_t""no" 1>&6
10f2d63a 2803 fi
698dcdb6
VZ
2804
2805
b12915c1 2806
698dcdb6 2807 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
1e6feb95 2808echo "configure:2809: checking for --enable-sockets" >&5
10f2d63a
VZ
2809 no_cache=0
2810 # Check whether --enable-sockets or --disable-sockets was given.
2811if test "${enable_sockets+set}" = set; then
2812 enableval="$enable_sockets"
698dcdb6 2813
10f2d63a
VZ
2814 if test "$enableval" = yes; then
2815 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2816 else
2817 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2818 fi
698dcdb6 2819
10f2d63a 2820else
698dcdb6 2821
10f2d63a
VZ
2822 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2823 if test "x$LINE" != x ; then
2824 eval "DEFAULT_$LINE"
2825 else
2826 no_cache=1
2827 fi
2828
2829 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
2830
2831fi
10f2d63a
VZ
2832
2833
2834 eval "$ac_cv_use_sockets"
2835 if test "$no_cache" != 1; then
2836 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2837 fi
2838
2839 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 2840 echo "$ac_t""yes" 1>&6
10f2d63a 2841 else
698dcdb6 2842 echo "$ac_t""no" 1>&6
10f2d63a 2843 fi
698dcdb6 2844
b12915c1 2845
698dcdb6
VZ
2846
2847 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
1e6feb95 2848echo "configure:2849: checking for --enable-ipc" >&5
10f2d63a 2849 no_cache=0
eb4efbdc
VZ
2850 # Check whether --enable-ipc or --disable-ipc was given.
2851if test "${enable_ipc+set}" = set; then
2852 enableval="$enable_ipc"
698dcdb6 2853
10f2d63a 2854 if test "$enableval" = yes; then
eb4efbdc 2855 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2856 else
eb4efbdc 2857 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 2858 fi
698dcdb6 2859
10f2d63a 2860else
698dcdb6 2861
eb4efbdc 2862 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2863 if test "x$LINE" != x ; then
2864 eval "DEFAULT_$LINE"
2865 else
2866 no_cache=1
2867 fi
2868
eb4efbdc 2869 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
2870
2871fi
10f2d63a
VZ
2872
2873
eb4efbdc 2874 eval "$ac_cv_use_ipc"
10f2d63a 2875 if test "$no_cache" != 1; then
eb4efbdc 2876 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2877 fi
2878
eb4efbdc 2879 if test "$wxUSE_IPC" = yes; then
698dcdb6 2880 echo "$ac_t""yes" 1>&6
10f2d63a 2881 else
698dcdb6 2882 echo "$ac_t""no" 1>&6
10f2d63a 2883 fi
698dcdb6
VZ
2884
2885
eb4efbdc 2886
1e6feb95
VZ
2887 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
2888echo "configure:2889: checking for --enable-cmdline" >&5
2889 no_cache=0
2890 # Check whether --enable-cmdline or --disable-cmdline was given.
2891if test "${enable_cmdline+set}" = set; then
2892 enableval="$enable_cmdline"
2893
2894 if test "$enableval" = yes; then
2895 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
2896 else
2897 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
2898 fi
2899
2900else
2901
2902 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
2903 if test "x$LINE" != x ; then
2904 eval "DEFAULT_$LINE"
2905 else
2906 no_cache=1
2907 fi
2908
2909 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
2910
2911fi
2912
2913
2914 eval "$ac_cv_use_cmdline"
2915 if test "$no_cache" != 1; then
2916 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
2917 fi
2918
2919 if test "$wxUSE_CMDLINE_PARSER" = yes; then
2920 echo "$ac_t""yes" 1>&6
2921 else
2922 echo "$ac_t""no" 1>&6
2923 fi
2924
2925
2926 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
2927echo "configure:2928: checking for --enable-datetime" >&5
2928 no_cache=0
2929 # Check whether --enable-datetime or --disable-datetime was given.
2930if test "${enable_datetime+set}" = set; then
2931 enableval="$enable_datetime"
2932
2933 if test "$enableval" = yes; then
2934 ac_cv_use_datetime='wxUSE_DATETIME=yes'
2935 else
2936 ac_cv_use_datetime='wxUSE_DATETIME=no'
2937 fi
2938
2939else
2940
2941 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
2942 if test "x$LINE" != x ; then
2943 eval "DEFAULT_$LINE"
2944 else
2945 no_cache=1
2946 fi
2947
2948 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
2949
2950fi
2951
2952
2953 eval "$ac_cv_use_datetime"
2954 if test "$no_cache" != 1; then
2955 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
2956 fi
2957
2958 if test "$wxUSE_DATETIME" = yes; then
2959 echo "$ac_t""yes" 1>&6
2960 else
2961 echo "$ac_t""no" 1>&6
2962 fi
2963
2964
2965 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
2966echo "configure:2967: checking for --enable-timedate" >&5
2967 no_cache=0
2968 # Check whether --enable-timedate or --disable-timedate was given.
2969if test "${enable_timedate+set}" = set; then
2970 enableval="$enable_timedate"
2971
2972 if test "$enableval" = yes; then
2973 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2974 else
2975 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2976 fi
2977
2978else
2979
2980 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2981 if test "x$LINE" != x ; then
2982 eval "DEFAULT_$LINE"
2983 else
2984 no_cache=1
2985 fi
2986
2987 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2988
2989fi
2990
2991
2992 eval "$ac_cv_use_timedate"
2993 if test "$no_cache" != 1; then
2994 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2995 fi
2996
2997 if test "$wxUSE_TIMEDATE" = yes; then
2998 echo "$ac_t""yes" 1>&6
2999 else
3000 echo "$ac_t""no" 1>&6
3001 fi
3002
3003
3004 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3005echo "configure:3006: checking for --enable-stopwatch" >&5
3006 no_cache=0
3007 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3008if test "${enable_stopwatch+set}" = set; then
3009 enableval="$enable_stopwatch"
3010
3011 if test "$enableval" = yes; then
3012 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3013 else
3014 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3015 fi
3016
3017else
3018
3019 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3020 if test "x$LINE" != x ; then
3021 eval "DEFAULT_$LINE"
3022 else
3023 no_cache=1
3024 fi
3025
3026 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3027
3028fi
3029
3030
3031 eval "$ac_cv_use_stopwatch"
3032 if test "$no_cache" != 1; then
3033 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3034 fi
3035
3036 if test "$wxUSE_STOPWATCH" = yes; then
3037 echo "$ac_t""yes" 1>&6
3038 else
3039 echo "$ac_t""no" 1>&6
3040 fi
3041
3042
698dcdb6 3043 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
1e6feb95 3044echo "configure:3045: checking for --enable-dialupman" >&5
10f2d63a 3045 no_cache=0
eb4efbdc
VZ
3046 # Check whether --enable-dialupman or --disable-dialupman was given.
3047if test "${enable_dialupman+set}" = set; then
3048 enableval="$enable_dialupman"
698dcdb6 3049
10f2d63a 3050 if test "$enableval" = yes; then
eb4efbdc 3051 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3052 else
eb4efbdc 3053 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3054 fi
698dcdb6 3055
10f2d63a 3056else
698dcdb6 3057
eb4efbdc 3058 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3059 if test "x$LINE" != x ; then
3060 eval "DEFAULT_$LINE"
3061 else
3062 no_cache=1
3063 fi
3064
eb4efbdc 3065 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3066
3067fi
10f2d63a
VZ
3068
3069
eb4efbdc 3070 eval "$ac_cv_use_dialupman"
10f2d63a 3071 if test "$no_cache" != 1; then
eb4efbdc 3072 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3073 fi
3074
eb4efbdc 3075 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3076 echo "$ac_t""yes" 1>&6
10f2d63a 3077 else
698dcdb6 3078 echo "$ac_t""no" 1>&6
10f2d63a 3079 fi
698dcdb6 3080
10f2d63a 3081
698dcdb6 3082 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
1e6feb95 3083echo "configure:3084: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3084 no_cache=0
3085 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3086if test "${enable_apple_ieee+set}" = set; then
3087 enableval="$enable_apple_ieee"
698dcdb6 3088
10f2d63a
VZ
3089 if test "$enableval" = yes; then
3090 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3091 else
3092 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3093 fi
698dcdb6 3094
10f2d63a 3095else
698dcdb6 3096
10f2d63a
VZ
3097 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3098 if test "x$LINE" != x ; then
3099 eval "DEFAULT_$LINE"
3100 else
3101 no_cache=1
3102 fi
3103
3104 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3105
3106fi
10f2d63a
VZ
3107
3108
3109 eval "$ac_cv_use_apple_ieee"
3110 if test "$no_cache" != 1; then
3111 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3112 fi
3113
3114 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3115 echo "$ac_t""yes" 1>&6
10f2d63a 3116 else
698dcdb6 3117 echo "$ac_t""no" 1>&6
10f2d63a 3118 fi
698dcdb6 3119
10f2d63a 3120
1e6feb95
VZ
3121 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3122echo "configure:3123: checking for --enable-timer" >&5
10f2d63a 3123 no_cache=0
1e6feb95
VZ
3124 # Check whether --enable-timer or --disable-timer was given.
3125if test "${enable_timer+set}" = set; then
3126 enableval="$enable_timer"
698dcdb6 3127
10f2d63a 3128 if test "$enableval" = yes; then
1e6feb95 3129 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3130 else
1e6feb95 3131 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3132 fi
698dcdb6 3133
10f2d63a 3134else
698dcdb6 3135
1e6feb95 3136 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3137 if test "x$LINE" != x ; then
3138 eval "DEFAULT_$LINE"
3139 else
3140 no_cache=1
3141 fi
3142
1e6feb95 3143 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3144
3145fi
10f2d63a
VZ
3146
3147
1e6feb95 3148 eval "$ac_cv_use_timer"
10f2d63a 3149 if test "$no_cache" != 1; then
1e6feb95 3150 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3151 fi
3152
1e6feb95 3153 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3154 echo "$ac_t""yes" 1>&6
10f2d63a 3155 else
698dcdb6 3156 echo "$ac_t""no" 1>&6
10f2d63a 3157 fi
698dcdb6 3158
10f2d63a 3159
698dcdb6 3160 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
1e6feb95 3161echo "configure:3162: checking for --enable-wave" >&5
10f2d63a
VZ
3162 no_cache=0
3163 # Check whether --enable-wave or --disable-wave was given.
3164if test "${enable_wave+set}" = set; then
3165 enableval="$enable_wave"
698dcdb6 3166
10f2d63a
VZ
3167 if test "$enableval" = yes; then
3168 ac_cv_use_wave='wxUSE_WAVE=yes'
3169 else
3170 ac_cv_use_wave='wxUSE_WAVE=no'
3171 fi
698dcdb6 3172
10f2d63a 3173else
698dcdb6 3174
10f2d63a
VZ
3175 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3176 if test "x$LINE" != x ; then
3177 eval "DEFAULT_$LINE"
3178 else
3179 no_cache=1
3180 fi
3181
3182 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3183
3184fi
10f2d63a
VZ
3185
3186
3187 eval "$ac_cv_use_wave"
3188 if test "$no_cache" != 1; then
3189 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3190 fi
3191
3192 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3193 echo "$ac_t""yes" 1>&6
10f2d63a 3194 else
698dcdb6 3195 echo "$ac_t""no" 1>&6
10f2d63a 3196 fi
698dcdb6 3197
10f2d63a 3198
698dcdb6 3199 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
1e6feb95 3200echo "configure:3201: checking for --enable-fraction" >&5
10f2d63a
VZ
3201 no_cache=0
3202 # Check whether --enable-fraction or --disable-fraction was given.
3203if test "${enable_fraction+set}" = set; then
3204 enableval="$enable_fraction"
698dcdb6 3205
10f2d63a
VZ
3206 if test "$enableval" = yes; then
3207 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3208 else
3209 ac_cv_use_fraction='wxUSE_FRACTION=no'
3210 fi
698dcdb6 3211
10f2d63a 3212else
698dcdb6 3213
10f2d63a
VZ
3214 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3215 if test "x$LINE" != x ; then
3216 eval "DEFAULT_$LINE"
3217 else
3218 no_cache=1
3219 fi
3220
3221 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3222
3223fi
10f2d63a
VZ
3224
3225
3226 eval "$ac_cv_use_fraction"
3227 if test "$no_cache" != 1; then
3228 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3229 fi
3230
3231 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3232 echo "$ac_t""yes" 1>&6
10f2d63a 3233 else
698dcdb6 3234 echo "$ac_t""no" 1>&6
10f2d63a 3235 fi
698dcdb6 3236
10f2d63a 3237
698dcdb6 3238 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
1e6feb95 3239echo "configure:3240: checking for --enable-dynlib" >&5
10f2d63a
VZ
3240 no_cache=0
3241 # Check whether --enable-dynlib or --disable-dynlib was given.
3242if test "${enable_dynlib+set}" = set; then
3243 enableval="$enable_dynlib"
698dcdb6 3244
10f2d63a
VZ
3245 if test "$enableval" = yes; then
3246 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3247 else
3248 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3249 fi
698dcdb6 3250
10f2d63a 3251else
698dcdb6 3252
10f2d63a
VZ
3253 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3254 if test "x$LINE" != x ; then
3255 eval "DEFAULT_$LINE"
3256 else
3257 no_cache=1
3258 fi
3259
3260 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3261
3262fi
10f2d63a
VZ
3263
3264
3265 eval "$ac_cv_use_dynlib"
3266 if test "$no_cache" != 1; then
3267 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3268 fi
3269
3270 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3271 echo "$ac_t""yes" 1>&6
10f2d63a 3272 else
698dcdb6 3273 echo "$ac_t""no" 1>&6
10f2d63a 3274 fi
698dcdb6 3275
10f2d63a 3276
698dcdb6 3277 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
1e6feb95 3278echo "configure:3279: checking for --enable-longlong" >&5
10f2d63a
VZ
3279 no_cache=0
3280 # Check whether --enable-longlong or --disable-longlong was given.
3281if test "${enable_longlong+set}" = set; then
3282 enableval="$enable_longlong"
698dcdb6 3283
10f2d63a
VZ
3284 if test "$enableval" = yes; then
3285 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3286 else
3287 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3288 fi
698dcdb6 3289
10f2d63a 3290else
698dcdb6 3291
10f2d63a
VZ
3292 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3293 if test "x$LINE" != x ; then
3294 eval "DEFAULT_$LINE"
3295 else
3296 no_cache=1
3297 fi
3298
3299 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3300
3301fi
10f2d63a
VZ
3302
3303
3304 eval "$ac_cv_use_longlong"
3305 if test "$no_cache" != 1; then
3306 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3307 fi
3308
3309 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3310 echo "$ac_t""yes" 1>&6
10f2d63a 3311 else
698dcdb6 3312 echo "$ac_t""no" 1>&6
10f2d63a 3313 fi
698dcdb6 3314
10f2d63a 3315
698dcdb6 3316 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
1e6feb95 3317echo "configure:3318: checking for --enable-geometry" >&5
e8f65ba6
RR
3318 no_cache=0
3319 # Check whether --enable-geometry or --disable-geometry was given.
3320if test "${enable_geometry+set}" = set; then
3321 enableval="$enable_geometry"
698dcdb6 3322
e8f65ba6
RR
3323 if test "$enableval" = yes; then
3324 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3325 else
3326 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3327 fi
698dcdb6 3328
e8f65ba6 3329else
698dcdb6 3330
e8f65ba6
RR
3331 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3332 if test "x$LINE" != x ; then
3333 eval "DEFAULT_$LINE"
3334 else
3335 no_cache=1
3336 fi
3337
3338 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3339
3340fi
e8f65ba6
RR
3341
3342
3343 eval "$ac_cv_use_geometry"
3344 if test "$no_cache" != 1; then
3345 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3346 fi
3347
3348 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3349 echo "$ac_t""yes" 1>&6
e8f65ba6 3350 else
698dcdb6 3351 echo "$ac_t""no" 1>&6
e8f65ba6 3352 fi
698dcdb6 3353
e8f65ba6 3354
698dcdb6 3355 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
1e6feb95 3356echo "configure:3357: checking for --enable-log" >&5
10f2d63a
VZ
3357 no_cache=0
3358 # Check whether --enable-log or --disable-log was given.
3359if test "${enable_log+set}" = set; then
3360 enableval="$enable_log"
698dcdb6 3361
10f2d63a
VZ
3362 if test "$enableval" = yes; then
3363 ac_cv_use_log='wxUSE_LOG=yes'
3364 else
3365 ac_cv_use_log='wxUSE_LOG=no'
3366 fi
698dcdb6 3367
10f2d63a 3368else
698dcdb6 3369
10f2d63a
VZ
3370 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3371 if test "x$LINE" != x ; then
3372 eval "DEFAULT_$LINE"
3373 else
3374 no_cache=1
3375 fi
3376
3377 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3378
3379fi
10f2d63a
VZ
3380
3381
3382 eval "$ac_cv_use_log"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_LOG" = yes; then
698dcdb6 3388 echo "$ac_t""yes" 1>&6
10f2d63a 3389 else
698dcdb6 3390 echo "$ac_t""no" 1>&6
10f2d63a 3391 fi
698dcdb6 3392
10f2d63a 3393
698dcdb6 3394 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
1e6feb95 3395echo "configure:3396: checking for --enable-streams" >&5
10f2d63a
VZ
3396 no_cache=0
3397 # Check whether --enable-streams or --disable-streams was given.
3398if test "${enable_streams+set}" = set; then
3399 enableval="$enable_streams"
698dcdb6 3400
10f2d63a
VZ
3401 if test "$enableval" = yes; then
3402 ac_cv_use_streams='wxUSE_STREAMS=yes'
3403 else
3404 ac_cv_use_streams='wxUSE_STREAMS=no'
3405 fi
698dcdb6 3406
10f2d63a 3407else
698dcdb6 3408
10f2d63a
VZ
3409 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3410 if test "x$LINE" != x ; then
3411 eval "DEFAULT_$LINE"
3412 else
3413 no_cache=1
3414 fi
3415
3416 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3417
3418fi
10f2d63a
VZ
3419
3420
3421 eval "$ac_cv_use_streams"
3422 if test "$no_cache" != 1; then
3423 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3424 fi
3425
3426 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3427 echo "$ac_t""yes" 1>&6
10f2d63a 3428 else
698dcdb6 3429 echo "$ac_t""no" 1>&6
10f2d63a 3430 fi
698dcdb6 3431
10f2d63a 3432
698dcdb6 3433 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
1e6feb95 3434echo "configure:3435: checking for --enable-file" >&5
10f2d63a
VZ
3435 no_cache=0
3436 # Check whether --enable-file or --disable-file was given.
3437if test "${enable_file+set}" = set; then
3438 enableval="$enable_file"
698dcdb6 3439
10f2d63a
VZ
3440 if test "$enableval" = yes; then
3441 ac_cv_use_file='wxUSE_FILE=yes'
3442 else
3443 ac_cv_use_file='wxUSE_FILE=no'
3444 fi
698dcdb6 3445
10f2d63a 3446else
698dcdb6 3447
10f2d63a
VZ
3448 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3456
3457fi
10f2d63a
VZ
3458
3459
3460 eval "$ac_cv_use_file"
3461 if test "$no_cache" != 1; then
3462 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3463 fi
3464
3465 if test "$wxUSE_FILE" = yes; then
698dcdb6 3466 echo "$ac_t""yes" 1>&6
10f2d63a 3467 else
698dcdb6 3468 echo "$ac_t""no" 1>&6
10f2d63a 3469 fi
698dcdb6 3470
10f2d63a 3471
1e6feb95
VZ
3472 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3473echo "configure:3474: checking for --enable-ffile" >&5
10f2d63a 3474 no_cache=0
1e6feb95
VZ
3475 # Check whether --enable-ffile or --disable-ffile was given.
3476if test "${enable_ffile+set}" = set; then
3477 enableval="$enable_ffile"
698dcdb6 3478
10f2d63a 3479 if test "$enableval" = yes; then
1e6feb95 3480 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3481 else
1e6feb95 3482 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3483 fi
698dcdb6 3484
10f2d63a 3485else
698dcdb6 3486
1e6feb95 3487 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3488 if test "x$LINE" != x ; then
3489 eval "DEFAULT_$LINE"
3490 else
3491 no_cache=1
3492 fi
3493
1e6feb95 3494 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3495
3496fi
10f2d63a
VZ
3497
3498
1e6feb95 3499 eval "$ac_cv_use_ffile"
10f2d63a 3500 if test "$no_cache" != 1; then
1e6feb95 3501 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3502 fi
3503
1e6feb95 3504 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3505 echo "$ac_t""yes" 1>&6
10f2d63a 3506 else
698dcdb6 3507 echo "$ac_t""no" 1>&6
10f2d63a 3508 fi
698dcdb6 3509
10f2d63a 3510
1e6feb95
VZ
3511 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3512echo "configure:3513: checking for --enable-textfile" >&5
10f2d63a 3513 no_cache=0
1e6feb95
VZ
3514 # Check whether --enable-textfile or --disable-textfile was given.
3515if test "${enable_textfile+set}" = set; then
3516 enableval="$enable_textfile"
698dcdb6 3517
10f2d63a 3518 if test "$enableval" = yes; then
1e6feb95 3519 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3520 else
1e6feb95 3521 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3522 fi
698dcdb6 3523
10f2d63a 3524else
698dcdb6 3525
1e6feb95 3526 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3527 if test "x$LINE" != x ; then
3528 eval "DEFAULT_$LINE"
3529 else
3530 no_cache=1
3531 fi
3532
1e6feb95 3533 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3534
3535fi
10f2d63a
VZ
3536
3537
1e6feb95 3538 eval "$ac_cv_use_textfile"
10f2d63a 3539 if test "$no_cache" != 1; then
1e6feb95 3540 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3541 fi
3542
1e6feb95 3543 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3544 echo "$ac_t""yes" 1>&6
10f2d63a 3545 else
698dcdb6 3546 echo "$ac_t""no" 1>&6
10f2d63a 3547 fi
698dcdb6 3548
10f2d63a 3549
1e6feb95
VZ
3550 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3551echo "configure:3552: checking for --enable-fontmap" >&5
10f2d63a 3552 no_cache=0
1e6feb95
VZ
3553 # Check whether --enable-fontmap or --disable-fontmap was given.
3554if test "${enable_fontmap+set}" = set; then
3555 enableval="$enable_fontmap"
698dcdb6 3556
10f2d63a 3557 if test "$enableval" = yes; then
1e6feb95 3558 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3559 else
1e6feb95 3560 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3561 fi
698dcdb6 3562
10f2d63a 3563else
698dcdb6 3564
1e6feb95 3565 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
1e6feb95 3572 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3573
3574fi
10f2d63a
VZ
3575
3576
1e6feb95 3577 eval "$ac_cv_use_fontmap"
10f2d63a 3578 if test "$no_cache" != 1; then
1e6feb95 3579 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3580 fi
3581
1e6feb95 3582 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3583 echo "$ac_t""yes" 1>&6
10f2d63a 3584 else
698dcdb6 3585 echo "$ac_t""no" 1>&6
10f2d63a 3586 fi
698dcdb6 3587
10f2d63a 3588
1e6feb95
VZ
3589 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3590echo "configure:3591: checking for --enable-unicode" >&5
10f2d63a 3591 no_cache=0
1e6feb95
VZ
3592 # Check whether --enable-unicode or --disable-unicode was given.
3593if test "${enable_unicode+set}" = set; then
3594 enableval="$enable_unicode"
3595
3596 if test "$enableval" = yes; then
3597 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3598 else
3599 ac_cv_use_unicode='wxUSE_UNICODE=no'
3600 fi
3601
3602else
3603
3604 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3605 if test "x$LINE" != x ; then
3606 eval "DEFAULT_$LINE"
3607 else
3608 no_cache=1
3609 fi
3610
3611 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3612
3613fi
3614
3615
3616 eval "$ac_cv_use_unicode"
3617 if test "$no_cache" != 1; then
3618 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3619 fi
3620
3621 if test "$wxUSE_UNICODE" = yes; then
3622 echo "$ac_t""yes" 1>&6
3623 else
3624 echo "$ac_t""no" 1>&6
3625 fi
3626
3627
3628 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3629echo "configure:3630: checking for --enable-wcsrtombs" >&5
3630 no_cache=0
3631 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3632if test "${enable_wcsrtombs+set}" = set; then
3633 enableval="$enable_wcsrtombs"
3634
3635 if test "$enableval" = yes; then
3636 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3637 else
3638 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3639 fi
3640
3641else
3642
3643 LINE=`grep "wxUSE_WCSRTOMBS" ${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_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3651
3652fi
3653
3654
3655 eval "$ac_cv_use_wcsrtombs"
3656 if test "$no_cache" != 1; then
3657 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3658 fi
3659
3660 if test "$wxUSE_WCSRTOMBS" = yes; then
3661 echo "$ac_t""yes" 1>&6
3662 else
3663 echo "$ac_t""no" 1>&6
3664 fi
3665
3666
3667 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3668echo "configure:3669: checking for --enable-wxprintfv" >&5
3669 no_cache=0
3670 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3671if test "${enable_wxprintfv+set}" = set; then
3672 enableval="$enable_wxprintfv"
3673
3674 if test "$enableval" = yes; then
10f2d63a
VZ
3675 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3676 else
3677 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3678 fi
698dcdb6 3679
10f2d63a 3680else
698dcdb6 3681
10f2d63a
VZ
3682 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3683 if test "x$LINE" != x ; then
3684 eval "DEFAULT_$LINE"
3685 else
3686 no_cache=1
3687 fi
3688
3689 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3690
3691fi
10f2d63a
VZ
3692
3693
3694 eval "$ac_cv_use_wxprintfv"
3695 if test "$no_cache" != 1; then
3696 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3697 fi
3698
3699 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3700 echo "$ac_t""yes" 1>&6
10f2d63a 3701 else
698dcdb6 3702 echo "$ac_t""no" 1>&6
10f2d63a 3703 fi
698dcdb6 3704
10f2d63a 3705
698dcdb6 3706 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
1e6feb95 3707echo "configure:3708: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3708 no_cache=0
3709 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3710if test "${enable_std_iostreams+set}" = set; then
3711 enableval="$enable_std_iostreams"
698dcdb6 3712
10f2d63a
VZ
3713 if test "$enableval" = yes; then
3714 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3715 else
3716 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3717 fi
698dcdb6 3718
10f2d63a 3719else
698dcdb6 3720
10f2d63a
VZ
3721 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3722 if test "x$LINE" != x ; then
3723 eval "DEFAULT_$LINE"
3724 else
3725 no_cache=1
3726 fi
3727
3728 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3729
3730fi
10f2d63a
VZ
3731
3732
3733 eval "$ac_cv_use_std_iostreams"
3734 if test "$no_cache" != 1; then
3735 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3736 fi
3737
3738 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3739 echo "$ac_t""yes" 1>&6
10f2d63a 3740 else
698dcdb6 3741 echo "$ac_t""no" 1>&6
10f2d63a 3742 fi
698dcdb6 3743
10f2d63a 3744
698dcdb6 3745 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
1e6feb95 3746echo "configure:3747: checking for --enable-filesystem" >&5
24528b0c
VS
3747 no_cache=0
3748 # Check whether --enable-filesystem or --disable-filesystem was given.
3749if test "${enable_filesystem+set}" = set; then
3750 enableval="$enable_filesystem"
698dcdb6 3751
24528b0c
VS
3752 if test "$enableval" = yes; then
3753 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3754 else
3755 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3756 fi
698dcdb6 3757
24528b0c 3758else
698dcdb6 3759
24528b0c
VS
3760 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3768
3769fi
24528b0c
VS
3770
3771
3772 eval "$ac_cv_use_filesystem"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3778 echo "$ac_t""yes" 1>&6
24528b0c 3779 else
698dcdb6 3780 echo "$ac_t""no" 1>&6
24528b0c 3781 fi
698dcdb6 3782
24528b0c 3783
698dcdb6 3784 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
1e6feb95 3785echo "configure:3786: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3786 no_cache=0
3787 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3788if test "${enable_fs_inet+set}" = set; then
3789 enableval="$enable_fs_inet"
698dcdb6 3790
10f2d63a
VZ
3791 if test "$enableval" = yes; then
3792 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3793 else
3794 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3795 fi
698dcdb6 3796
10f2d63a 3797else
698dcdb6 3798
10f2d63a
VZ
3799 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3800 if test "x$LINE" != x ; then
3801 eval "DEFAULT_$LINE"
3802 else
3803 no_cache=1
3804 fi
3805
3806 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3807
3808fi
10f2d63a
VZ
3809
3810
3811 eval "$ac_cv_use_fs_inet"
3812 if test "$no_cache" != 1; then
3813 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3814 fi
3815
3816 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3817 echo "$ac_t""yes" 1>&6
10f2d63a 3818 else
698dcdb6 3819 echo "$ac_t""no" 1>&6
10f2d63a 3820 fi
698dcdb6 3821
10f2d63a 3822
698dcdb6 3823 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
1e6feb95 3824echo "configure:3825: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3825 no_cache=0
3826 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3827if test "${enable_fs_zip+set}" = set; then
3828 enableval="$enable_fs_zip"
698dcdb6 3829
10f2d63a
VZ
3830 if test "$enableval" = yes; then
3831 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3832 else
3833 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3834 fi
698dcdb6 3835
10f2d63a 3836else
698dcdb6 3837
10f2d63a
VZ
3838 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3839 if test "x$LINE" != x ; then
3840 eval "DEFAULT_$LINE"
3841 else
3842 no_cache=1
3843 fi
3844
3845 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
3846
3847fi
10f2d63a
VZ
3848
3849
3850 eval "$ac_cv_use_fs_zip"
3851 if test "$no_cache" != 1; then
3852 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3853 fi
3854
3855 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 3856 echo "$ac_t""yes" 1>&6
10f2d63a 3857 else
698dcdb6 3858 echo "$ac_t""no" 1>&6
10f2d63a 3859 fi
698dcdb6 3860
10f2d63a 3861
698dcdb6 3862 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
1e6feb95 3863echo "configure:3864: checking for --enable-zipstream" >&5
10f2d63a
VZ
3864 no_cache=0
3865 # Check whether --enable-zipstream or --disable-zipstream was given.
3866if test "${enable_zipstream+set}" = set; then
3867 enableval="$enable_zipstream"
698dcdb6 3868
10f2d63a
VZ
3869 if test "$enableval" = yes; then
3870 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3871 else
3872 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3873 fi
698dcdb6 3874
10f2d63a 3875else
698dcdb6 3876
10f2d63a
VZ
3877 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3878 if test "x$LINE" != x ; then
3879 eval "DEFAULT_$LINE"
3880 else
3881 no_cache=1
3882 fi
3883
3884 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
3885
3886fi
10f2d63a
VZ
3887
3888
3889 eval "$ac_cv_use_zipstream"
3890 if test "$no_cache" != 1; then
3891 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3892 fi
3893
3894 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 3895 echo "$ac_t""yes" 1>&6
10f2d63a 3896 else
698dcdb6 3897 echo "$ac_t""no" 1>&6
10f2d63a 3898 fi
698dcdb6 3899
10f2d63a 3900
698dcdb6
VZ
3901
3902 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
1e6feb95 3903echo "configure:3904: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
3904 no_cache=0
3905 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3906if test "${enable_catch_segvs+set}" = set; then
3907 enableval="$enable_catch_segvs"
698dcdb6 3908
eb4efbdc
VZ
3909 if test "$enableval" = yes; then
3910 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3911 else
3912 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3913 fi
698dcdb6 3914
eb4efbdc 3915else
698dcdb6 3916
eb4efbdc
VZ
3917 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3918 if test "x$LINE" != x ; then
3919 eval "DEFAULT_$LINE"
3920 else
3921 no_cache=1
3922 fi
3923
3924 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
3925
3926fi
eb4efbdc
VZ
3927
3928
3929 eval "$ac_cv_use_catch_segvs"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 3935 echo "$ac_t""yes" 1>&6
eb4efbdc 3936 else
698dcdb6 3937 echo "$ac_t""no" 1>&6
eb4efbdc 3938 fi
698dcdb6 3939
eb4efbdc 3940
698dcdb6 3941 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
1e6feb95 3942echo "configure:3943: checking for --enable-snglinst" >&5
4f3c5f06
VZ
3943 no_cache=0
3944 # Check whether --enable-snglinst or --disable-snglinst was given.
3945if test "${enable_snglinst+set}" = set; then
3946 enableval="$enable_snglinst"
698dcdb6 3947
4f3c5f06
VZ
3948 if test "$enableval" = yes; then
3949 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
3950 else
3951 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
3952 fi
698dcdb6 3953
4f3c5f06 3954else
698dcdb6 3955
4f3c5f06
VZ
3956 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
3957 if test "x$LINE" != x ; then
3958 eval "DEFAULT_$LINE"
3959 else
3960 no_cache=1
3961 fi
3962
3963 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
3964
3965fi
4f3c5f06
VZ
3966
3967
3968 eval "$ac_cv_use_snglinst"
3969 if test "$no_cache" != 1; then
3970 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
3971 fi
3972
3973 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 3974 echo "$ac_t""yes" 1>&6
4f3c5f06 3975 else
698dcdb6 3976 echo "$ac_t""no" 1>&6
4f3c5f06 3977 fi
698dcdb6
VZ
3978
3979
eb4efbdc 3980
1e6feb95
VZ
3981 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
3982echo "configure:3983: checking for --enable-mimetype" >&5
3983 no_cache=0
3984 # Check whether --enable-mimetype or --disable-mimetype was given.
3985if test "${enable_mimetype+set}" = set; then
3986 enableval="$enable_mimetype"
3987
3988 if test "$enableval" = yes; then
3989 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
3990 else
3991 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
3992 fi
3993
3994else
3995
3996 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
3997 if test "x$LINE" != x ; then
3998 eval "DEFAULT_$LINE"
3999 else
4000 no_cache=1
4001 fi
4002
4003 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4004
4005fi
4006
4007
4008 eval "$ac_cv_use_mimetype"
4009 if test "$no_cache" != 1; then
4010 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4011 fi
4012
4013 if test "$wxUSE_MIMETYPE" = yes; then
4014 echo "$ac_t""yes" 1>&6
4015 else
4016 echo "$ac_t""no" 1>&6
4017 fi
4018
4019
4020
698dcdb6
VZ
4021
4022 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
1e6feb95 4023echo "configure:4024: checking for --enable-threads" >&5
10f2d63a
VZ
4024 no_cache=0
4025 # Check whether --enable-threads or --disable-threads was given.
4026if test "${enable_threads+set}" = set; then
4027 enableval="$enable_threads"
698dcdb6 4028
10f2d63a
VZ
4029 if test "$enableval" = yes; then
4030 ac_cv_use_threads='wxUSE_THREADS=yes'
4031 else
4032 ac_cv_use_threads='wxUSE_THREADS=no'
4033 fi
698dcdb6 4034
10f2d63a 4035else
698dcdb6 4036
10f2d63a
VZ
4037 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4038 if test "x$LINE" != x ; then
4039 eval "DEFAULT_$LINE"
4040 else
4041 no_cache=1
4042 fi
4043
4044 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4045
4046fi
10f2d63a
VZ
4047
4048
4049 eval "$ac_cv_use_threads"
4050 if test "$no_cache" != 1; then
4051 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4052 fi
4053
4054 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4055 echo "$ac_t""yes" 1>&6
10f2d63a 4056 else
698dcdb6 4057 echo "$ac_t""no" 1>&6
10f2d63a 4058 fi
698dcdb6 4059
10f2d63a 4060
698dcdb6 4061 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
1e6feb95 4062echo "configure:4063: checking for --enable-serial" >&5
10f2d63a
VZ
4063 no_cache=0
4064 # Check whether --enable-serial or --disable-serial was given.
4065if test "${enable_serial+set}" = set; then
4066 enableval="$enable_serial"
698dcdb6 4067
10f2d63a
VZ
4068 if test "$enableval" = yes; then
4069 ac_cv_use_serial='wxUSE_SERIAL=yes'
4070 else
4071 ac_cv_use_serial='wxUSE_SERIAL=no'
4072 fi
698dcdb6 4073
10f2d63a 4074else
698dcdb6 4075
10f2d63a
VZ
4076 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4077 if test "x$LINE" != x ; then
4078 eval "DEFAULT_$LINE"
4079 else
4080 no_cache=1
4081 fi
4082
4083 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4084
4085fi
10f2d63a
VZ
4086
4087
4088 eval "$ac_cv_use_serial"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4094 echo "$ac_t""yes" 1>&6
10f2d63a 4095 else
698dcdb6 4096 echo "$ac_t""no" 1>&6
10f2d63a 4097 fi
698dcdb6 4098
10f2d63a 4099
b12915c1
VZ
4100if test "$wxUSE_GUI" = "yes"; then
4101
698dcdb6
VZ
4102
4103
4104 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
1e6feb95 4105echo "configure:4106: checking for --enable-docview" >&5
10f2d63a
VZ
4106 no_cache=0
4107 # Check whether --enable-docview or --disable-docview was given.
4108if test "${enable_docview+set}" = set; then
4109 enableval="$enable_docview"
698dcdb6 4110
10f2d63a
VZ
4111 if test "$enableval" = yes; then
4112 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4113 else
4114 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4115 fi
698dcdb6 4116
10f2d63a 4117else
698dcdb6 4118
10f2d63a
VZ
4119 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4120 if test "x$LINE" != x ; then
4121 eval "DEFAULT_$LINE"
4122 else
4123 no_cache=1
4124 fi
4125
4126 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4127
4128fi
10f2d63a
VZ
4129
4130
4131 eval "$ac_cv_use_docview"
4132 if test "$no_cache" != 1; then
4133 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4134 fi
4135
4136 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4137 echo "$ac_t""yes" 1>&6
10f2d63a 4138 else
698dcdb6 4139 echo "$ac_t""no" 1>&6
10f2d63a 4140 fi
698dcdb6 4141
10f2d63a 4142
698dcdb6 4143 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
1e6feb95 4144echo "configure:4145: checking for --enable-help" >&5
10f2d63a
VZ
4145 no_cache=0
4146 # Check whether --enable-help or --disable-help was given.
4147if test "${enable_help+set}" = set; then
4148 enableval="$enable_help"
698dcdb6 4149
10f2d63a
VZ
4150 if test "$enableval" = yes; then
4151 ac_cv_use_help='wxUSE_HELP=yes'
4152 else
4153 ac_cv_use_help='wxUSE_HELP=no'
4154 fi
698dcdb6 4155
10f2d63a 4156else
698dcdb6 4157
10f2d63a
VZ
4158 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4159 if test "x$LINE" != x ; then
4160 eval "DEFAULT_$LINE"
4161 else
4162 no_cache=1
4163 fi
4164
4165 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4166
4167fi
10f2d63a
VZ
4168
4169
4170 eval "$ac_cv_use_help"
4171 if test "$no_cache" != 1; then
4172 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4173 fi
4174
4175 if test "$wxUSE_HELP" = yes; then
698dcdb6 4176 echo "$ac_t""yes" 1>&6
10f2d63a 4177 else
698dcdb6 4178 echo "$ac_t""no" 1>&6
10f2d63a 4179 fi
698dcdb6 4180
10f2d63a 4181
698dcdb6 4182 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
1e6feb95 4183echo "configure:4184: checking for --enable-constraints" >&5
10f2d63a
VZ
4184 no_cache=0
4185 # Check whether --enable-constraints or --disable-constraints was given.
4186if test "${enable_constraints+set}" = set; then
4187 enableval="$enable_constraints"
698dcdb6 4188
10f2d63a
VZ
4189 if test "$enableval" = yes; then
4190 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4191 else
4192 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4193 fi
698dcdb6 4194
10f2d63a 4195else
698dcdb6 4196
10f2d63a
VZ
4197 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4198 if test "x$LINE" != x ; then
4199 eval "DEFAULT_$LINE"
4200 else
4201 no_cache=1
4202 fi
4203
4204 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4205
4206fi
10f2d63a
VZ
4207
4208
4209 eval "$ac_cv_use_constraints"
4210 if test "$no_cache" != 1; then
4211 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4212 fi
4213
4214 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4215 echo "$ac_t""yes" 1>&6
10f2d63a 4216 else
698dcdb6 4217 echo "$ac_t""no" 1>&6
10f2d63a 4218 fi
698dcdb6 4219
10f2d63a 4220
698dcdb6 4221 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
1e6feb95 4222echo "configure:4223: checking for --enable-printarch" >&5
10f2d63a
VZ
4223 no_cache=0
4224 # Check whether --enable-printarch or --disable-printarch was given.
4225if test "${enable_printarch+set}" = set; then
4226 enableval="$enable_printarch"
698dcdb6 4227
10f2d63a
VZ
4228 if test "$enableval" = yes; then
4229 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4230 else
4231 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4232 fi
698dcdb6 4233
10f2d63a 4234else
698dcdb6 4235
10f2d63a
VZ
4236 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4237 if test "x$LINE" != x ; then
4238 eval "DEFAULT_$LINE"
4239 else
4240 no_cache=1
4241 fi
4242
4243 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4244
4245fi
10f2d63a
VZ
4246
4247
4248 eval "$ac_cv_use_printarch"
4249 if test "$no_cache" != 1; then
4250 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4251 fi
4252
4253 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4254 echo "$ac_t""yes" 1>&6
10f2d63a 4255 else
698dcdb6 4256 echo "$ac_t""no" 1>&6
10f2d63a 4257 fi
698dcdb6 4258
10f2d63a 4259
698dcdb6 4260 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
1e6feb95 4261echo "configure:4262: checking for --enable-mdi" >&5
10f2d63a
VZ
4262 no_cache=0
4263 # Check whether --enable-mdi or --disable-mdi was given.
4264if test "${enable_mdi+set}" = set; then
4265 enableval="$enable_mdi"
698dcdb6 4266
10f2d63a
VZ
4267 if test "$enableval" = yes; then
4268 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4269 else
4270 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4271 fi
698dcdb6 4272
10f2d63a 4273else
698dcdb6 4274
10f2d63a
VZ
4275 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4276 if test "x$LINE" != x ; then
4277 eval "DEFAULT_$LINE"
4278 else
4279 no_cache=1
4280 fi
4281
4282 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4283
4284fi
10f2d63a
VZ
4285
4286
4287 eval "$ac_cv_use_mdi"
4288 if test "$no_cache" != 1; then
4289 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4290 fi
4291
4292 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4293 echo "$ac_t""yes" 1>&6
10f2d63a 4294 else
698dcdb6 4295 echo "$ac_t""no" 1>&6
10f2d63a 4296 fi
698dcdb6
VZ
4297
4298
1e6feb95
VZ
4299 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4300echo "configure:4301: checking for --enable-loggui" >&5
4301 no_cache=0
4302 # Check whether --enable-loggui or --disable-loggui was given.
4303if test "${enable_loggui+set}" = set; then
4304 enableval="$enable_loggui"
4305
4306 if test "$enableval" = yes; then
4307 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4308 else
4309 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4310 fi
4311
4312else
4313
4314 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4315 if test "x$LINE" != x ; then
4316 eval "DEFAULT_$LINE"
4317 else
4318 no_cache=1
4319 fi
4320
4321 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4322
4323fi
4324
4325
4326 eval "$ac_cv_use_loggui"
4327 if test "$no_cache" != 1; then
4328 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4329 fi
4330
4331 if test "$wxUSE_LOGGUI" = yes; then
4332 echo "$ac_t""yes" 1>&6
4333 else
4334 echo "$ac_t""no" 1>&6
4335 fi
4336
4337
4338 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4339echo "configure:4340: checking for --enable-logwin" >&5
4340 no_cache=0
4341 # Check whether --enable-logwin or --disable-logwin was given.
4342if test "${enable_logwin+set}" = set; then
4343 enableval="$enable_logwin"
4344
4345 if test "$enableval" = yes; then
4346 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4347 else
4348 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4349 fi
4350
4351else
4352
4353 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4354 if test "x$LINE" != x ; then
4355 eval "DEFAULT_$LINE"
4356 else
4357 no_cache=1
4358 fi
4359
4360 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4361
4362fi
4363
4364
4365 eval "$ac_cv_use_logwin"
4366 if test "$no_cache" != 1; then
4367 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4368 fi
4369
4370 if test "$wxUSE_LOGWINDOW" = yes; then
4371 echo "$ac_t""yes" 1>&6
4372 else
4373 echo "$ac_t""no" 1>&6
4374 fi
4375
4376
10f2d63a 4377
698dcdb6 4378 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
1e6feb95 4379echo "configure:4380: checking for --enable-postscript" >&5
10f2d63a
VZ
4380 no_cache=0
4381 # Check whether --enable-postscript or --disable-postscript was given.
4382if test "${enable_postscript+set}" = set; then
4383 enableval="$enable_postscript"
698dcdb6 4384
10f2d63a
VZ
4385 if test "$enableval" = yes; then
4386 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4387 else
4388 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4389 fi
698dcdb6 4390
10f2d63a 4391else
698dcdb6 4392
10f2d63a
VZ
4393 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4401
4402fi
10f2d63a
VZ
4403
4404
4405 eval "$ac_cv_use_postscript"
4406 if test "$no_cache" != 1; then
4407 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4408 fi
4409
4410 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4411 echo "$ac_t""yes" 1>&6
10f2d63a 4412 else
698dcdb6 4413 echo "$ac_t""no" 1>&6
10f2d63a 4414 fi
698dcdb6
VZ
4415
4416
4417
10f2d63a 4418
1e6feb95 4419
698dcdb6 4420 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
1e6feb95 4421echo "configure:4422: checking for --enable-prologio" >&5
10f2d63a
VZ
4422 no_cache=0
4423 # Check whether --enable-prologio or --disable-prologio was given.
4424if test "${enable_prologio+set}" = set; then
4425 enableval="$enable_prologio"
698dcdb6 4426
10f2d63a
VZ
4427 if test "$enableval" = yes; then
4428 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4429 else
4430 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4431 fi
698dcdb6 4432
10f2d63a 4433else
698dcdb6 4434
10f2d63a
VZ
4435 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4436 if test "x$LINE" != x ; then
4437 eval "DEFAULT_$LINE"
4438 else
4439 no_cache=1
4440 fi
4441
4442 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4443
4444fi
10f2d63a
VZ
4445
4446
4447 eval "$ac_cv_use_prologio"
4448 if test "$no_cache" != 1; then
4449 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4450 fi
4451
4452 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4453 echo "$ac_t""yes" 1>&6
10f2d63a 4454 else
698dcdb6 4455 echo "$ac_t""no" 1>&6
10f2d63a 4456 fi
698dcdb6 4457
10f2d63a 4458
698dcdb6 4459 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
1e6feb95 4460echo "configure:4461: checking for --enable-resources" >&5
10f2d63a
VZ
4461 no_cache=0
4462 # Check whether --enable-resources or --disable-resources was given.
4463if test "${enable_resources+set}" = set; then
4464 enableval="$enable_resources"
698dcdb6 4465
10f2d63a
VZ
4466 if test "$enableval" = yes; then
4467 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4468 else
4469 ac_cv_use_resources='wxUSE_RESOURCES=no'
4470 fi
698dcdb6 4471
10f2d63a 4472else
698dcdb6 4473
10f2d63a
VZ
4474 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4475 if test "x$LINE" != x ; then
4476 eval "DEFAULT_$LINE"
4477 else
4478 no_cache=1
4479 fi
4480
4481 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4482
4483fi
10f2d63a
VZ
4484
4485
4486 eval "$ac_cv_use_resources"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4492 echo "$ac_t""yes" 1>&6
10f2d63a 4493 else
698dcdb6 4494 echo "$ac_t""no" 1>&6
10f2d63a 4495 fi
698dcdb6 4496
10f2d63a 4497
698dcdb6
VZ
4498
4499 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
1e6feb95 4500echo "configure:4501: checking for --enable-xresources" >&5
10f2d63a
VZ
4501 no_cache=0
4502 # Check whether --enable-xresources or --disable-xresources was given.
4503if test "${enable_xresources+set}" = set; then
4504 enableval="$enable_xresources"
698dcdb6 4505
10f2d63a
VZ
4506 if test "$enableval" = yes; then
4507 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4508 else
4509 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4510 fi
698dcdb6 4511
10f2d63a 4512else
698dcdb6 4513
10f2d63a
VZ
4514 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4515 if test "x$LINE" != x ; then
4516 eval "DEFAULT_$LINE"
4517 else
4518 no_cache=1
4519 fi
4520
4521 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4522
4523fi
10f2d63a
VZ
4524
4525
4526 eval "$ac_cv_use_xresources"
4527 if test "$no_cache" != 1; then
4528 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4529 fi
4530
4531 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4532 echo "$ac_t""yes" 1>&6
10f2d63a 4533 else
698dcdb6 4534 echo "$ac_t""no" 1>&6
10f2d63a 4535 fi
698dcdb6
VZ
4536
4537
10f2d63a 4538
698dcdb6
VZ
4539
4540 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
1e6feb95 4541echo "configure:4542: checking for --enable-clipboard" >&5
10f2d63a
VZ
4542 no_cache=0
4543 # Check whether --enable-clipboard or --disable-clipboard was given.
4544if test "${enable_clipboard+set}" = set; then
4545 enableval="$enable_clipboard"
698dcdb6 4546
10f2d63a
VZ
4547 if test "$enableval" = yes; then
4548 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4549 else
4550 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4551 fi
698dcdb6 4552
10f2d63a 4553else
698dcdb6 4554
10f2d63a
VZ
4555 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4556 if test "x$LINE" != x ; then
4557 eval "DEFAULT_$LINE"
4558 else
4559 no_cache=1
4560 fi
4561
4562 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4563
4564fi
10f2d63a
VZ
4565
4566
4567 eval "$ac_cv_use_clipboard"
4568 if test "$no_cache" != 1; then
4569 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4570 fi
4571
4572 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4573 echo "$ac_t""yes" 1>&6
10f2d63a 4574 else
698dcdb6 4575 echo "$ac_t""no" 1>&6
10f2d63a 4576 fi
698dcdb6 4577
10f2d63a 4578
698dcdb6 4579 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
1e6feb95 4580echo "configure:4581: checking for --enable-dnd" >&5
10f2d63a
VZ
4581 no_cache=0
4582 # Check whether --enable-dnd or --disable-dnd was given.
4583if test "${enable_dnd+set}" = set; then
4584 enableval="$enable_dnd"
698dcdb6 4585
10f2d63a
VZ
4586 if test "$enableval" = yes; then
4587 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4588 else
4589 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4590 fi
698dcdb6 4591
10f2d63a 4592else
698dcdb6 4593
10f2d63a
VZ
4594 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4595 if test "x$LINE" != x ; then
4596 eval "DEFAULT_$LINE"
4597 else
4598 no_cache=1
4599 fi
4600
4601 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4602
4603fi
10f2d63a
VZ
4604
4605
4606 eval "$ac_cv_use_dnd"
4607 if test "$no_cache" != 1; then
4608 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4609 fi
4610
4611 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4612 echo "$ac_t""yes" 1>&6
10f2d63a 4613 else
698dcdb6 4614 echo "$ac_t""no" 1>&6
10f2d63a 4615 fi
698dcdb6 4616
10f2d63a 4617
698dcdb6 4618 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
1e6feb95 4619echo "configure:4620: checking for --enable-metafile" >&5
b64f0a5f
RL
4620 no_cache=0
4621 # Check whether --enable-metafile or --disable-metafile was given.
4622if test "${enable_metafile+set}" = set; then
4623 enableval="$enable_metafile"
698dcdb6 4624
b64f0a5f
RL
4625 if test "$enableval" = yes; then
4626 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4627 else
4628 ac_cv_use_metafile='wxUSE_METAFILE=no'
4629 fi
698dcdb6 4630
b64f0a5f 4631else
698dcdb6 4632
b64f0a5f
RL
4633 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4634 if test "x$LINE" != x ; then
4635 eval "DEFAULT_$LINE"
4636 else
4637 no_cache=1
4638 fi
4639
4640 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4641
4642fi
b64f0a5f
RL
4643
4644
4645 eval "$ac_cv_use_metafile"
4646 if test "$no_cache" != 1; then
4647 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4648 fi
4649
4650 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4651 echo "$ac_t""yes" 1>&6
b64f0a5f 4652 else
698dcdb6 4653 echo "$ac_t""no" 1>&6
b64f0a5f 4654 fi
698dcdb6
VZ
4655
4656
10f2d63a 4657
698dcdb6 4658 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
1e6feb95 4659echo "configure:4660: checking for --enable-wxtree" >&5
10f2d63a
VZ
4660 no_cache=0
4661 # Check whether --enable-wxtree or --disable-wxtree was given.
4662if test "${enable_wxtree+set}" = set; then
4663 enableval="$enable_wxtree"
698dcdb6 4664
10f2d63a
VZ
4665 if test "$enableval" = yes; then
4666 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4667 else
4668 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4669 fi
698dcdb6 4670
10f2d63a 4671else
698dcdb6 4672
10f2d63a
VZ
4673 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4674 if test "x$LINE" != x ; then
4675 eval "DEFAULT_$LINE"
4676 else
4677 no_cache=1
4678 fi
4679
4680 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
698dcdb6
VZ
4681
4682fi
10f2d63a
VZ
4683
4684
4685 eval "$ac_cv_use_wxtree"
4686 if test "$no_cache" != 1; then
4687 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4688 fi
4689
4690 if test "$wxUSE_WXTREE" = yes; then
698dcdb6 4691 echo "$ac_t""yes" 1>&6
10f2d63a 4692 else
698dcdb6 4693 echo "$ac_t""no" 1>&6
10f2d63a 4694 fi
698dcdb6 4695
10f2d63a 4696
698dcdb6
VZ
4697
4698
4699 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
1e6feb95 4700echo "configure:4701: checking for --enable-controls" >&5
10f2d63a
VZ
4701 no_cache=0
4702 # Check whether --enable-controls or --disable-controls was given.
4703if test "${enable_controls+set}" = set; then
4704 enableval="$enable_controls"
698dcdb6 4705
10f2d63a
VZ
4706 if test "$enableval" = yes; then
4707 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4708 else
4709 ac_cv_use_controls='wxUSE_CONTROLS=no'
4710 fi
698dcdb6 4711
10f2d63a 4712else
698dcdb6 4713
10f2d63a
VZ
4714 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4715 if test "x$LINE" != x ; then
4716 eval "DEFAULT_$LINE"
4717 else
4718 no_cache=1
4719 fi
4720
4721 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
4722
4723fi
10f2d63a
VZ
4724
4725
4726 eval "$ac_cv_use_controls"
4727 if test "$no_cache" != 1; then
4728 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4729 fi
4730
4731 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 4732 echo "$ac_t""yes" 1>&6
10f2d63a 4733 else
698dcdb6 4734 echo "$ac_t""no" 1>&6
10f2d63a 4735 fi
698dcdb6 4736
10f2d63a
VZ
4737
4738if test "$wxUSE_CONTROLS" = "yes"; then
4739 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
4740 DEFAULT_wxUSE_BMPBUTTON=yes
4741 DEFAULT_wxUSE_BUTTON=yes
4742 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
4743 DEFAULT_wxUSE_CARET=yes
4744 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
4745 DEFAULT_wxUSE_CHECKBOX=yes
4746 DEFAULT_wxUSE_CHECKLISTBOX=yes
4747 DEFAULT_wxUSE_CHOICE=yes
4748 DEFAULT_wxUSE_GAUGE=yes
4749 DEFAULT_wxUSE_GRID=yes
cc977e5f 4750 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4751 DEFAULT_wxUSE_IMAGLIST=yes
4752 DEFAULT_wxUSE_LISTBOX=yes
4753 DEFAULT_wxUSE_LISTCTRL=yes
4754 DEFAULT_wxUSE_NOTEBOOK=yes
4755 DEFAULT_wxUSE_RADIOBOX=yes
4756 DEFAULT_wxUSE_RADIOBTN=yes
4757 DEFAULT_wxUSE_SASH=yes
4758 DEFAULT_wxUSE_SCROLLBAR=yes
4759 DEFAULT_wxUSE_SLIDER=yes
4760 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4761 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4762 DEFAULT_wxUSE_SPLITTER=yes
4763 DEFAULT_wxUSE_STATBMP=yes
4764 DEFAULT_wxUSE_STATBOX=yes
4765 DEFAULT_wxUSE_STATLINE=yes
4766 DEFAULT_wxUSE_STATUSBAR=yes
4767 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 4768 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 4769 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4770 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4771 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4772 DEFAULT_wxUSE_TOOLTIPS=yes
4773 DEFAULT_wxUSE_TREECTRL=yes
4774elif test "$wxUSE_CONTROLS" = "no"; then
4775 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
4776 DEFAULT_wxUSE_BMPBUTTON=no
4777 DEFAULT_wxUSE_BUTTON=no
4778 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
4779 DEFAULT_wxUSE_CARET=no
4780 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
4781 DEFAULT_wxUSE_CHECKBOX=no
4782 DEFAULT_wxUSE_CHECKLISTBOX=no
4783 DEFAULT_wxUSE_CHOICE=no
4784 DEFAULT_wxUSE_GAUGE=no
4785 DEFAULT_wxUSE_GRID=no
4786 DEFAULT_wxUSE_NEW_GRID=no
4787 DEFAULT_wxUSE_IMAGLIST=no
4788 DEFAULT_wxUSE_LISTBOX=no
4789 DEFAULT_wxUSE_LISTCTRL=no
4790 DEFAULT_wxUSE_NOTEBOOK=no
4791 DEFAULT_wxUSE_RADIOBOX=no
4792 DEFAULT_wxUSE_RADIOBTN=no
4793 DEFAULT_wxUSE_SASH=no
4794 DEFAULT_wxUSE_SCROLLBAR=no
4795 DEFAULT_wxUSE_SLIDER=no
4796 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4797 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4798 DEFAULT_wxUSE_SPLITTER=no
4799 DEFAULT_wxUSE_STATBMP=no
4800 DEFAULT_wxUSE_STATBOX=no
4801 DEFAULT_wxUSE_STATLINE=no
4802 DEFAULT_wxUSE_STATUSBAR=no
4803 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 4804 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 4805 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4806 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4807 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4808 DEFAULT_wxUSE_TOOLTIPS=no
4809 DEFAULT_wxUSE_TREECTRL=no
4810fi
4811
698dcdb6
VZ
4812
4813 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
1e6feb95 4814echo "configure:4815: checking for --enable-accel" >&5
10f2d63a
VZ
4815 no_cache=0
4816 # Check whether --enable-accel or --disable-accel was given.
4817if test "${enable_accel+set}" = set; then
4818 enableval="$enable_accel"
698dcdb6 4819
10f2d63a
VZ
4820 if test "$enableval" = yes; then
4821 ac_cv_use_accel='wxUSE_ACCEL=yes'
4822 else
4823 ac_cv_use_accel='wxUSE_ACCEL=no'
4824 fi
698dcdb6 4825
10f2d63a 4826else
698dcdb6 4827
10f2d63a
VZ
4828 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4829 if test "x$LINE" != x ; then
4830 eval "DEFAULT_$LINE"
4831 else
4832 no_cache=1
4833 fi
4834
4835 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
4836
4837fi
10f2d63a
VZ
4838
4839
4840 eval "$ac_cv_use_accel"
4841 if test "$no_cache" != 1; then
4842 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4843 fi
4844
4845 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 4846 echo "$ac_t""yes" 1>&6
10f2d63a 4847 else
698dcdb6 4848 echo "$ac_t""no" 1>&6
10f2d63a 4849 fi
698dcdb6 4850
10f2d63a 4851
1e6feb95
VZ
4852 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
4853echo "configure:4854: checking for --enable-button" >&5
10f2d63a 4854 no_cache=0
1e6feb95
VZ
4855 # Check whether --enable-button or --disable-button was given.
4856if test "${enable_button+set}" = set; then
4857 enableval="$enable_button"
698dcdb6 4858
10f2d63a 4859 if test "$enableval" = yes; then
1e6feb95 4860 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 4861 else
1e6feb95 4862 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 4863 fi
698dcdb6 4864
10f2d63a 4865else
698dcdb6 4866
1e6feb95 4867 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
4868 if test "x$LINE" != x ; then
4869 eval "DEFAULT_$LINE"
4870 else
4871 no_cache=1
4872 fi
4873
1e6feb95 4874 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
4875
4876fi
10f2d63a
VZ
4877
4878
1e6feb95 4879 eval "$ac_cv_use_button"
10f2d63a 4880 if test "$no_cache" != 1; then
1e6feb95 4881 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4882 fi
4883
1e6feb95 4884 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 4885 echo "$ac_t""yes" 1>&6
10f2d63a 4886 else
698dcdb6 4887 echo "$ac_t""no" 1>&6
10f2d63a 4888 fi
698dcdb6 4889
10f2d63a 4890
698dcdb6 4891 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
1e6feb95 4892echo "configure:4893: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
4893 no_cache=0
4894 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4895if test "${enable_bmpbutton+set}" = set; then
4896 enableval="$enable_bmpbutton"
698dcdb6 4897
10f2d63a
VZ
4898 if test "$enableval" = yes; then
4899 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4900 else
4901 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4902 fi
698dcdb6 4903
10f2d63a 4904else
698dcdb6 4905
10f2d63a
VZ
4906 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4907 if test "x$LINE" != x ; then
4908 eval "DEFAULT_$LINE"
4909 else
4910 no_cache=1
4911 fi
4912
4913 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
4914
4915fi
10f2d63a
VZ
4916
4917
4918 eval "$ac_cv_use_bmpbutton"
4919 if test "$no_cache" != 1; then
4920 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4921 fi
4922
4923 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 4924 echo "$ac_t""yes" 1>&6
10f2d63a 4925 else
698dcdb6 4926 echo "$ac_t""no" 1>&6
10f2d63a 4927 fi
698dcdb6 4928
10f2d63a 4929
1e6feb95
VZ
4930 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
4931echo "configure:4932: checking for --enable-calendar" >&5
4932 no_cache=0
4933 # Check whether --enable-calendar or --disable-calendar was given.
4934if test "${enable_calendar+set}" = set; then
4935 enableval="$enable_calendar"
4936
4937 if test "$enableval" = yes; then
4938 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
4939 else
4940 ac_cv_use_calendar='wxUSE_CALCTRL=no'
4941 fi
4942
4943else
4944
4945 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
4946 if test "x$LINE" != x ; then
4947 eval "DEFAULT_$LINE"
4948 else
4949 no_cache=1
4950 fi
4951
4952 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
4953
4954fi
4955
4956
4957 eval "$ac_cv_use_calendar"
4958 if test "$no_cache" != 1; then
4959 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
4960 fi
4961
4962 if test "$wxUSE_CALCTRL" = yes; then
4963 echo "$ac_t""yes" 1>&6
4964 else
4965 echo "$ac_t""no" 1>&6
4966 fi
4967
4968
4969 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
4970echo "configure:4971: checking for --enable-caret" >&5
4971 no_cache=0
4972 # Check whether --enable-caret or --disable-caret was given.
4973if test "${enable_caret+set}" = set; then
4974 enableval="$enable_caret"
4975
4976 if test "$enableval" = yes; then
4977 ac_cv_use_caret='wxUSE_CARET=yes'
4978 else
4979 ac_cv_use_caret='wxUSE_CARET=no'
4980 fi
4981
4982else
4983
4984 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4985 if test "x$LINE" != x ; then
4986 eval "DEFAULT_$LINE"
4987 else
4988 no_cache=1
4989 fi
4990
4991 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4992
4993fi
4994
4995
4996 eval "$ac_cv_use_caret"
4997 if test "$no_cache" != 1; then
4998 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4999 fi
5000
5001 if test "$wxUSE_CARET" = yes; then
5002 echo "$ac_t""yes" 1>&6
5003 else
5004 echo "$ac_t""no" 1>&6
5005 fi
5006
5007
698dcdb6 5008 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
1e6feb95 5009echo "configure:5010: checking for --enable-checkbox" >&5
10f2d63a
VZ
5010 no_cache=0
5011 # Check whether --enable-checkbox or --disable-checkbox was given.
5012if test "${enable_checkbox+set}" = set; then
5013 enableval="$enable_checkbox"
698dcdb6 5014
10f2d63a
VZ
5015 if test "$enableval" = yes; then
5016 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5017 else
5018 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5019 fi
698dcdb6 5020
10f2d63a 5021else
698dcdb6 5022
10f2d63a
VZ
5023 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5024 if test "x$LINE" != x ; then
5025 eval "DEFAULT_$LINE"
5026 else
5027 no_cache=1
5028 fi
5029
5030 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5031
5032fi
10f2d63a
VZ
5033
5034
5035 eval "$ac_cv_use_checkbox"
5036 if test "$no_cache" != 1; then
5037 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5038 fi
5039
5040 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5041 echo "$ac_t""yes" 1>&6
10f2d63a 5042 else
698dcdb6 5043 echo "$ac_t""no" 1>&6
10f2d63a 5044 fi
698dcdb6 5045
10f2d63a 5046
698dcdb6 5047 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
1e6feb95 5048echo "configure:5049: checking for --enable-checklst" >&5
10f2d63a
VZ
5049 no_cache=0
5050 # Check whether --enable-checklst or --disable-checklst was given.
5051if test "${enable_checklst+set}" = set; then
5052 enableval="$enable_checklst"
698dcdb6 5053
10f2d63a
VZ
5054 if test "$enableval" = yes; then
5055 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5056 else
5057 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5058 fi
698dcdb6 5059
10f2d63a 5060else
698dcdb6 5061
10f2d63a
VZ
5062 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5063 if test "x$LINE" != x ; then
5064 eval "DEFAULT_$LINE"
5065 else
5066 no_cache=1
5067 fi
5068
5069 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5070
5071fi
10f2d63a
VZ
5072
5073
5074 eval "$ac_cv_use_checklst"
5075 if test "$no_cache" != 1; then
5076 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5077 fi
5078
5079 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5080 echo "$ac_t""yes" 1>&6
10f2d63a 5081 else
698dcdb6 5082 echo "$ac_t""no" 1>&6
10f2d63a 5083 fi
698dcdb6 5084
10f2d63a 5085
698dcdb6 5086 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
1e6feb95 5087echo "configure:5088: checking for --enable-choice" >&5
10f2d63a
VZ
5088 no_cache=0
5089 # Check whether --enable-choice or --disable-choice was given.
5090if test "${enable_choice+set}" = set; then
5091 enableval="$enable_choice"
698dcdb6 5092
10f2d63a
VZ
5093 if test "$enableval" = yes; then
5094 ac_cv_use_choice='wxUSE_CHOICE=yes'
5095 else
5096 ac_cv_use_choice='wxUSE_CHOICE=no'
5097 fi
698dcdb6 5098
10f2d63a 5099else
698dcdb6 5100
10f2d63a
VZ
5101 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5102 if test "x$LINE" != x ; then
5103 eval "DEFAULT_$LINE"
5104 else
5105 no_cache=1
5106 fi
5107
5108 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5109
5110fi
10f2d63a
VZ
5111
5112
5113 eval "$ac_cv_use_choice"
5114 if test "$no_cache" != 1; then
5115 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5116 fi
5117
5118 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5119 echo "$ac_t""yes" 1>&6
10f2d63a 5120 else
698dcdb6 5121 echo "$ac_t""no" 1>&6
10f2d63a 5122 fi
698dcdb6 5123
10f2d63a 5124
698dcdb6 5125 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
1e6feb95 5126echo "configure:5127: checking for --enable-combobox" >&5
10f2d63a
VZ
5127 no_cache=0
5128 # Check whether --enable-combobox or --disable-combobox was given.
5129if test "${enable_combobox+set}" = set; then
5130 enableval="$enable_combobox"
698dcdb6 5131
10f2d63a
VZ
5132 if test "$enableval" = yes; then
5133 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5134 else
5135 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5136 fi
698dcdb6 5137
10f2d63a 5138else
698dcdb6 5139
10f2d63a
VZ
5140 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5141 if test "x$LINE" != x ; then
5142 eval "DEFAULT_$LINE"
5143 else
5144 no_cache=1
5145 fi
5146
5147 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5148
5149fi
10f2d63a
VZ
5150
5151
5152 eval "$ac_cv_use_combobox"
5153 if test "$no_cache" != 1; then
5154 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5155 fi
5156
5157 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5158 echo "$ac_t""yes" 1>&6
10f2d63a 5159 else
698dcdb6 5160 echo "$ac_t""no" 1>&6
10f2d63a 5161 fi
698dcdb6 5162
10f2d63a 5163
698dcdb6 5164 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
1e6feb95 5165echo "configure:5166: checking for --enable-gauge" >&5
10f2d63a
VZ
5166 no_cache=0
5167 # Check whether --enable-gauge or --disable-gauge was given.
5168if test "${enable_gauge+set}" = set; then
5169 enableval="$enable_gauge"
698dcdb6 5170
10f2d63a
VZ
5171 if test "$enableval" = yes; then
5172 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5173 else
5174 ac_cv_use_gauge='wxUSE_GAUGE=no'
5175 fi
698dcdb6 5176
10f2d63a 5177else
698dcdb6 5178
10f2d63a
VZ
5179 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5180 if test "x$LINE" != x ; then
5181 eval "DEFAULT_$LINE"
5182 else
5183 no_cache=1
5184 fi
5185
5186 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5187
5188fi
10f2d63a
VZ
5189
5190
5191 eval "$ac_cv_use_gauge"
5192 if test "$no_cache" != 1; then
5193 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5194 fi
5195
5196 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5197 echo "$ac_t""yes" 1>&6
10f2d63a 5198 else
698dcdb6 5199 echo "$ac_t""no" 1>&6
10f2d63a 5200 fi
698dcdb6 5201
10f2d63a 5202
698dcdb6 5203 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
1e6feb95 5204echo "configure:5205: checking for --enable-grid" >&5
10f2d63a
VZ
5205 no_cache=0
5206 # Check whether --enable-grid or --disable-grid was given.
5207if test "${enable_grid+set}" = set; then
5208 enableval="$enable_grid"
698dcdb6 5209
10f2d63a
VZ
5210 if test "$enableval" = yes; then
5211 ac_cv_use_grid='wxUSE_GRID=yes'
5212 else
5213 ac_cv_use_grid='wxUSE_GRID=no'
5214 fi
698dcdb6 5215
10f2d63a 5216else
698dcdb6 5217
10f2d63a
VZ
5218 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5219 if test "x$LINE" != x ; then
5220 eval "DEFAULT_$LINE"
5221 else
5222 no_cache=1
5223 fi
5224
5225 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5226
5227fi
10f2d63a
VZ
5228
5229
5230 eval "$ac_cv_use_grid"
5231 if test "$no_cache" != 1; then
5232 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5233 fi
5234
5235 if test "$wxUSE_GRID" = yes; then
698dcdb6 5236 echo "$ac_t""yes" 1>&6
10f2d63a 5237 else
698dcdb6 5238 echo "$ac_t""no" 1>&6
10f2d63a 5239 fi
698dcdb6 5240
10f2d63a 5241
698dcdb6 5242 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
1e6feb95 5243echo "configure:5244: checking for --enable-newgrid" >&5
10f2d63a
VZ
5244 no_cache=0
5245 # Check whether --enable-newgrid or --disable-newgrid was given.
5246if test "${enable_newgrid+set}" = set; then
5247 enableval="$enable_newgrid"
698dcdb6 5248
10f2d63a
VZ
5249 if test "$enableval" = yes; then
5250 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5251 else
5252 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5253 fi
698dcdb6 5254
10f2d63a 5255else
698dcdb6 5256
10f2d63a
VZ
5257 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5258 if test "x$LINE" != x ; then
5259 eval "DEFAULT_$LINE"
5260 else
5261 no_cache=1
5262 fi
5263
5264 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5265
5266fi
10f2d63a
VZ
5267
5268
5269 eval "$ac_cv_use_newgrid"
5270 if test "$no_cache" != 1; then
5271 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5272 fi
5273
5274 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5275 echo "$ac_t""yes" 1>&6
10f2d63a 5276 else
698dcdb6 5277 echo "$ac_t""no" 1>&6
10f2d63a 5278 fi
698dcdb6 5279
10f2d63a 5280
698dcdb6 5281 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
1e6feb95 5282echo "configure:5283: checking for --enable-imaglist" >&5
10f2d63a
VZ
5283 no_cache=0
5284 # Check whether --enable-imaglist or --disable-imaglist was given.
5285if test "${enable_imaglist+set}" = set; then
5286 enableval="$enable_imaglist"
698dcdb6 5287
10f2d63a
VZ
5288 if test "$enableval" = yes; then
5289 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5290 else
5291 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5292 fi
698dcdb6 5293
10f2d63a 5294else
698dcdb6 5295
10f2d63a
VZ
5296 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5297 if test "x$LINE" != x ; then
5298 eval "DEFAULT_$LINE"
5299 else
5300 no_cache=1
5301 fi
5302
5303 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5304
5305fi
10f2d63a
VZ
5306
5307
5308 eval "$ac_cv_use_imaglist"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5314 echo "$ac_t""yes" 1>&6
10f2d63a 5315 else
698dcdb6 5316 echo "$ac_t""no" 1>&6
10f2d63a 5317 fi
698dcdb6 5318
10f2d63a 5319
698dcdb6 5320 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
1e6feb95 5321echo "configure:5322: checking for --enable-listbox" >&5
10f2d63a
VZ
5322 no_cache=0
5323 # Check whether --enable-listbox or --disable-listbox was given.
5324if test "${enable_listbox+set}" = set; then
5325 enableval="$enable_listbox"
698dcdb6 5326
10f2d63a
VZ
5327 if test "$enableval" = yes; then
5328 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5329 else
5330 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5331 fi
698dcdb6 5332
10f2d63a 5333else
698dcdb6 5334
10f2d63a
VZ
5335 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5336 if test "x$LINE" != x ; then
5337 eval "DEFAULT_$LINE"
5338 else
5339 no_cache=1
5340 fi
5341
5342 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5343
5344fi
10f2d63a
VZ
5345
5346
5347 eval "$ac_cv_use_listbox"
5348 if test "$no_cache" != 1; then
5349 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5350 fi
5351
5352 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5353 echo "$ac_t""yes" 1>&6
10f2d63a 5354 else
698dcdb6 5355 echo "$ac_t""no" 1>&6
10f2d63a 5356 fi
698dcdb6 5357
10f2d63a 5358
698dcdb6 5359 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
1e6feb95 5360echo "configure:5361: checking for --enable-listctrl" >&5
10f2d63a
VZ
5361 no_cache=0
5362 # Check whether --enable-listctrl or --disable-listctrl was given.
5363if test "${enable_listctrl+set}" = set; then
5364 enableval="$enable_listctrl"
698dcdb6 5365
10f2d63a
VZ
5366 if test "$enableval" = yes; then
5367 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5368 else
5369 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5370 fi
698dcdb6 5371
10f2d63a 5372else
698dcdb6 5373
10f2d63a
VZ
5374 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5375 if test "x$LINE" != x ; then
5376 eval "DEFAULT_$LINE"
5377 else
5378 no_cache=1
5379 fi
5380
5381 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5382
5383fi
10f2d63a
VZ
5384
5385
5386 eval "$ac_cv_use_listctrl"
5387 if test "$no_cache" != 1; then
5388 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5389 fi
5390
5391 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5392 echo "$ac_t""yes" 1>&6
10f2d63a 5393 else
698dcdb6 5394 echo "$ac_t""no" 1>&6
10f2d63a 5395 fi
698dcdb6 5396
10f2d63a 5397
698dcdb6 5398 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
1e6feb95 5399echo "configure:5400: checking for --enable-notebook" >&5
10f2d63a
VZ
5400 no_cache=0
5401 # Check whether --enable-notebook or --disable-notebook was given.
5402if test "${enable_notebook+set}" = set; then
5403 enableval="$enable_notebook"
698dcdb6 5404
10f2d63a
VZ
5405 if test "$enableval" = yes; then
5406 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5407 else
5408 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5409 fi
698dcdb6 5410
10f2d63a 5411else
698dcdb6 5412
10f2d63a
VZ
5413 LINE=`grep "wxUSE_NOTEBOOK" ${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_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5421
5422fi
10f2d63a
VZ
5423
5424
5425 eval "$ac_cv_use_notebook"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5431 echo "$ac_t""yes" 1>&6
10f2d63a 5432 else
698dcdb6 5433 echo "$ac_t""no" 1>&6
10f2d63a 5434 fi
698dcdb6 5435
10f2d63a 5436
698dcdb6 5437 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
1e6feb95 5438echo "configure:5439: checking for --enable-radiobox" >&5
10f2d63a
VZ
5439 no_cache=0
5440 # Check whether --enable-radiobox or --disable-radiobox was given.
5441if test "${enable_radiobox+set}" = set; then
5442 enableval="$enable_radiobox"
698dcdb6 5443
10f2d63a
VZ
5444 if test "$enableval" = yes; then
5445 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5446 else
5447 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5448 fi
698dcdb6 5449
10f2d63a 5450else
698dcdb6 5451
10f2d63a
VZ
5452 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5453 if test "x$LINE" != x ; then
5454 eval "DEFAULT_$LINE"
5455 else
5456 no_cache=1
5457 fi
5458
5459 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5460
5461fi
10f2d63a
VZ
5462
5463
5464 eval "$ac_cv_use_radiobox"
5465 if test "$no_cache" != 1; then
5466 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5467 fi
5468
5469 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5470 echo "$ac_t""yes" 1>&6
10f2d63a 5471 else
698dcdb6 5472 echo "$ac_t""no" 1>&6
10f2d63a 5473 fi
698dcdb6 5474
10f2d63a 5475
698dcdb6 5476 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
1e6feb95 5477echo "configure:5478: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5478 no_cache=0
5479 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5480if test "${enable_radiobtn+set}" = set; then
5481 enableval="$enable_radiobtn"
698dcdb6 5482
10f2d63a
VZ
5483 if test "$enableval" = yes; then
5484 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5485 else
5486 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5487 fi
698dcdb6 5488
10f2d63a 5489else
698dcdb6 5490
10f2d63a
VZ
5491 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5499
5500fi
10f2d63a
VZ
5501
5502
5503 eval "$ac_cv_use_radiobtn"
5504 if test "$no_cache" != 1; then
5505 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5506 fi
5507
5508 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5509 echo "$ac_t""yes" 1>&6
10f2d63a 5510 else
698dcdb6 5511 echo "$ac_t""no" 1>&6
10f2d63a 5512 fi
698dcdb6 5513
10f2d63a 5514
698dcdb6 5515 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
1e6feb95 5516echo "configure:5517: checking for --enable-sash" >&5
10f2d63a
VZ
5517 no_cache=0
5518 # Check whether --enable-sash or --disable-sash was given.
5519if test "${enable_sash+set}" = set; then
5520 enableval="$enable_sash"
698dcdb6 5521
10f2d63a
VZ
5522 if test "$enableval" = yes; then
5523 ac_cv_use_sash='wxUSE_SASH=yes'
5524 else
5525 ac_cv_use_sash='wxUSE_SASH=no'
5526 fi
698dcdb6 5527
10f2d63a 5528else
698dcdb6 5529
10f2d63a
VZ
5530 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5531 if test "x$LINE" != x ; then
5532 eval "DEFAULT_$LINE"
5533 else
5534 no_cache=1
5535 fi
5536
5537 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5538
5539fi
10f2d63a
VZ
5540
5541
5542 eval "$ac_cv_use_sash"
5543 if test "$no_cache" != 1; then
5544 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5545 fi
5546
5547 if test "$wxUSE_SASH" = yes; then
698dcdb6 5548 echo "$ac_t""yes" 1>&6
10f2d63a 5549 else
698dcdb6 5550 echo "$ac_t""no" 1>&6
10f2d63a 5551 fi
698dcdb6 5552
10f2d63a 5553
698dcdb6 5554 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
1e6feb95 5555echo "configure:5556: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5556 no_cache=0
5557 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5558if test "${enable_scrollbar+set}" = set; then
5559 enableval="$enable_scrollbar"
698dcdb6 5560
10f2d63a
VZ
5561 if test "$enableval" = yes; then
5562 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5563 else
5564 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5565 fi
698dcdb6 5566
10f2d63a 5567else
698dcdb6 5568
10f2d63a
VZ
5569 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5570 if test "x$LINE" != x ; then
5571 eval "DEFAULT_$LINE"
5572 else
5573 no_cache=1
5574 fi
5575
5576 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5577
5578fi
10f2d63a
VZ
5579
5580
5581 eval "$ac_cv_use_scrollbar"
5582 if test "$no_cache" != 1; then
5583 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5584 fi
5585
5586 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5587 echo "$ac_t""yes" 1>&6
10f2d63a 5588 else
698dcdb6 5589 echo "$ac_t""no" 1>&6
10f2d63a 5590 fi
698dcdb6 5591
10f2d63a 5592
698dcdb6 5593 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
1e6feb95 5594echo "configure:5595: checking for --enable-slider" >&5
10f2d63a
VZ
5595 no_cache=0
5596 # Check whether --enable-slider or --disable-slider was given.
5597if test "${enable_slider+set}" = set; then
5598 enableval="$enable_slider"
698dcdb6 5599
10f2d63a
VZ
5600 if test "$enableval" = yes; then
5601 ac_cv_use_slider='wxUSE_SLIDER=yes'
5602 else
5603 ac_cv_use_slider='wxUSE_SLIDER=no'
5604 fi
698dcdb6 5605
10f2d63a 5606else
698dcdb6 5607
10f2d63a
VZ
5608 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5609 if test "x$LINE" != x ; then
5610 eval "DEFAULT_$LINE"
5611 else
5612 no_cache=1
5613 fi
5614
5615 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5616
5617fi
10f2d63a
VZ
5618
5619
5620 eval "$ac_cv_use_slider"
5621 if test "$no_cache" != 1; then
5622 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5623 fi
5624
5625 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5626 echo "$ac_t""yes" 1>&6
10f2d63a 5627 else
698dcdb6 5628 echo "$ac_t""no" 1>&6
10f2d63a 5629 fi
698dcdb6 5630
10f2d63a 5631
698dcdb6 5632 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
1e6feb95 5633echo "configure:5634: checking for --enable-spinbtn" >&5
10f2d63a
VZ
5634 no_cache=0
5635 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5636if test "${enable_spinbtn+set}" = set; then
5637 enableval="$enable_spinbtn"
698dcdb6 5638
10f2d63a
VZ
5639 if test "$enableval" = yes; then
5640 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5641 else
5642 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5643 fi
698dcdb6 5644
10f2d63a 5645else
698dcdb6 5646
10f2d63a
VZ
5647 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5648 if test "x$LINE" != x ; then
5649 eval "DEFAULT_$LINE"
5650 else
5651 no_cache=1
5652 fi
5653
5654 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
5655
5656fi
10f2d63a
VZ
5657
5658
5659 eval "$ac_cv_use_spinbtn"
5660 if test "$no_cache" != 1; then
5661 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5662 fi
5663
5664 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 5665 echo "$ac_t""yes" 1>&6
10f2d63a 5666 else
698dcdb6 5667 echo "$ac_t""no" 1>&6
10f2d63a 5668 fi
698dcdb6 5669
10f2d63a 5670
698dcdb6 5671 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
1e6feb95 5672echo "configure:5673: checking for --enable-spinctrl" >&5
56cfaa52
RR
5673 no_cache=0
5674 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5675if test "${enable_spinctrl+set}" = set; then
5676 enableval="$enable_spinctrl"
698dcdb6 5677
56cfaa52
RR
5678 if test "$enableval" = yes; then
5679 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5680 else
5681 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5682 fi
698dcdb6 5683
56cfaa52 5684else
698dcdb6 5685
56cfaa52
RR
5686 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5687 if test "x$LINE" != x ; then
5688 eval "DEFAULT_$LINE"
5689 else
5690 no_cache=1
5691 fi
5692
5693 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
5694
5695fi
56cfaa52
RR
5696
5697
5698 eval "$ac_cv_use_spinctrl"
5699 if test "$no_cache" != 1; then
5700 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5701 fi
5702
5703 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 5704 echo "$ac_t""yes" 1>&6
56cfaa52 5705 else
698dcdb6 5706 echo "$ac_t""no" 1>&6
56cfaa52 5707 fi
698dcdb6 5708
56cfaa52 5709
698dcdb6 5710 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
1e6feb95 5711echo "configure:5712: checking for --enable-splitter" >&5
10f2d63a
VZ
5712 no_cache=0
5713 # Check whether --enable-splitter or --disable-splitter was given.
5714if test "${enable_splitter+set}" = set; then
5715 enableval="$enable_splitter"
698dcdb6 5716
10f2d63a
VZ
5717 if test "$enableval" = yes; then
5718 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5719 else
5720 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5721 fi
698dcdb6 5722
10f2d63a 5723else
698dcdb6 5724
10f2d63a
VZ
5725 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5726 if test "x$LINE" != x ; then
5727 eval "DEFAULT_$LINE"
5728 else
5729 no_cache=1
5730 fi
5731
5732 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
5733
5734fi
10f2d63a
VZ
5735
5736
5737 eval "$ac_cv_use_splitter"
5738 if test "$no_cache" != 1; then
5739 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5740 fi
5741
5742 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 5743 echo "$ac_t""yes" 1>&6
10f2d63a 5744 else
698dcdb6 5745 echo "$ac_t""no" 1>&6
10f2d63a 5746 fi
698dcdb6 5747
10f2d63a 5748
698dcdb6 5749 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
1e6feb95 5750echo "configure:5751: checking for --enable-statbmp" >&5
10f2d63a
VZ
5751 no_cache=0
5752 # Check whether --enable-statbmp or --disable-statbmp was given.
5753if test "${enable_statbmp+set}" = set; then
5754 enableval="$enable_statbmp"
698dcdb6 5755
10f2d63a
VZ
5756 if test "$enableval" = yes; then
5757 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5758 else
5759 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5760 fi
698dcdb6 5761
10f2d63a 5762else
698dcdb6 5763
10f2d63a
VZ
5764 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5765 if test "x$LINE" != x ; then
5766 eval "DEFAULT_$LINE"
5767 else
5768 no_cache=1
5769 fi
5770
5771 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
5772
5773fi
10f2d63a
VZ
5774
5775
5776 eval "$ac_cv_use_statbmp"
5777 if test "$no_cache" != 1; then
5778 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5779 fi
5780
5781 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 5782 echo "$ac_t""yes" 1>&6
10f2d63a 5783 else
698dcdb6 5784 echo "$ac_t""no" 1>&6
10f2d63a 5785 fi
698dcdb6 5786
10f2d63a 5787
698dcdb6 5788 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
1e6feb95 5789echo "configure:5790: checking for --enable-statbox" >&5
10f2d63a
VZ
5790 no_cache=0
5791 # Check whether --enable-statbox or --disable-statbox was given.
5792if test "${enable_statbox+set}" = set; then
5793 enableval="$enable_statbox"
698dcdb6 5794
10f2d63a
VZ
5795 if test "$enableval" = yes; then
5796 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5797 else
5798 ac_cv_use_statbox='wxUSE_STATBOX=no'
5799 fi
698dcdb6 5800
10f2d63a 5801else
698dcdb6 5802
10f2d63a
VZ
5803 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5804 if test "x$LINE" != x ; then
5805 eval "DEFAULT_$LINE"
5806 else
5807 no_cache=1
5808 fi
5809
5810 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
5811
5812fi
10f2d63a
VZ
5813
5814
5815 eval "$ac_cv_use_statbox"
5816 if test "$no_cache" != 1; then
5817 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5818 fi
5819
5820 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 5821 echo "$ac_t""yes" 1>&6
10f2d63a 5822 else
698dcdb6 5823 echo "$ac_t""no" 1>&6
10f2d63a 5824 fi
698dcdb6 5825
10f2d63a 5826
698dcdb6 5827 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
1e6feb95 5828echo "configure:5829: checking for --enable-statline" >&5
10f2d63a
VZ
5829 no_cache=0
5830 # Check whether --enable-statline or --disable-statline was given.
5831if test "${enable_statline+set}" = set; then
5832 enableval="$enable_statline"
698dcdb6 5833
10f2d63a
VZ
5834 if test "$enableval" = yes; then
5835 ac_cv_use_statline='wxUSE_STATLINE=yes'
5836 else
5837 ac_cv_use_statline='wxUSE_STATLINE=no'
5838 fi
698dcdb6 5839
10f2d63a 5840else
698dcdb6 5841
10f2d63a
VZ
5842 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5843 if test "x$LINE" != x ; then
5844 eval "DEFAULT_$LINE"
5845 else
5846 no_cache=1
5847 fi
5848
5849 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
5850
5851fi
10f2d63a
VZ
5852
5853
5854 eval "$ac_cv_use_statline"
5855 if test "$no_cache" != 1; then
5856 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5857 fi
5858
5859 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 5860 echo "$ac_t""yes" 1>&6
10f2d63a 5861 else
698dcdb6 5862 echo "$ac_t""no" 1>&6
10f2d63a 5863 fi
698dcdb6 5864
10f2d63a 5865
1e6feb95
VZ
5866 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
5867echo "configure:5868: checking for --enable-stattext" >&5
5868 no_cache=0
5869 # Check whether --enable-stattext or --disable-stattext was given.
5870if test "${enable_stattext+set}" = set; then
5871 enableval="$enable_stattext"
5872
5873 if test "$enableval" = yes; then
5874 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
5875 else
5876 ac_cv_use_stattext='wxUSE_STATTEXT=no'
5877 fi
5878
5879else
5880
5881 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
5882 if test "x$LINE" != x ; then
5883 eval "DEFAULT_$LINE"
5884 else
5885 no_cache=1
5886 fi
5887
5888 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
5889
5890fi
5891
5892
5893 eval "$ac_cv_use_stattext"
5894 if test "$no_cache" != 1; then
5895 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
5896 fi
5897
5898 if test "$wxUSE_STATTEXT" = yes; then
5899 echo "$ac_t""yes" 1>&6
5900 else
5901 echo "$ac_t""no" 1>&6
5902 fi
5903
5904
698dcdb6 5905 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
1e6feb95 5906echo "configure:5907: checking for --enable-statusbar" >&5
10f2d63a
VZ
5907 no_cache=0
5908 # Check whether --enable-statusbar or --disable-statusbar was given.
5909if test "${enable_statusbar+set}" = set; then
5910 enableval="$enable_statusbar"
698dcdb6 5911
10f2d63a
VZ
5912 if test "$enableval" = yes; then
5913 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5914 else
5915 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5916 fi
698dcdb6 5917
10f2d63a 5918else
698dcdb6 5919
10f2d63a
VZ
5920 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5921 if test "x$LINE" != x ; then
5922 eval "DEFAULT_$LINE"
5923 else
5924 no_cache=1
5925 fi
5926
5927 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
5928
5929fi
10f2d63a
VZ
5930
5931
5932 eval "$ac_cv_use_statusbar"
5933 if test "$no_cache" != 1; then
5934 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5935 fi
5936
5937 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 5938 echo "$ac_t""yes" 1>&6
10f2d63a 5939 else
698dcdb6 5940 echo "$ac_t""no" 1>&6
10f2d63a 5941 fi
698dcdb6 5942
10f2d63a 5943
698dcdb6 5944 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
1e6feb95 5945echo "configure:5946: checking for --enable-tabdialog" >&5
10f2d63a
VZ
5946 no_cache=0
5947 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5948if test "${enable_tabdialog+set}" = set; then
5949 enableval="$enable_tabdialog"
698dcdb6 5950
10f2d63a
VZ
5951 if test "$enableval" = yes; then
5952 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5953 else
5954 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5955 fi
698dcdb6 5956
10f2d63a 5957else
698dcdb6 5958
10f2d63a
VZ
5959 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5960 if test "x$LINE" != x ; then
5961 eval "DEFAULT_$LINE"
5962 else
5963 no_cache=1
5964 fi
5965
5966 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
5967
5968fi
10f2d63a
VZ
5969
5970
5971 eval "$ac_cv_use_tabdialog"
5972 if test "$no_cache" != 1; then
5973 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5974 fi
5975
5976 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 5977 echo "$ac_t""yes" 1>&6
10f2d63a 5978 else
698dcdb6 5979 echo "$ac_t""no" 1>&6
10f2d63a 5980 fi
698dcdb6 5981
10f2d63a 5982
1e6feb95
VZ
5983 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
5984echo "configure:5985: checking for --enable-textctrl" >&5
5985 no_cache=0
5986 # Check whether --enable-textctrl or --disable-textctrl was given.
5987if test "${enable_textctrl+set}" = set; then
5988 enableval="$enable_textctrl"
5989
5990 if test "$enableval" = yes; then
5991 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
5992 else
5993 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
5994 fi
5995
5996else
5997
5998 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
5999 if test "x$LINE" != x ; then
6000 eval "DEFAULT_$LINE"
6001 else
6002 no_cache=1
6003 fi
6004
6005 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6006
6007fi
6008
6009
6010 eval "$ac_cv_use_textctrl"
6011 if test "$no_cache" != 1; then
6012 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6013 fi
6014
6015 if test "$wxUSE_TEXTCTRL" = yes; then
6016 echo "$ac_t""yes" 1>&6
6017 else
6018 echo "$ac_t""no" 1>&6
6019 fi
6020
6021
698dcdb6 6022 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
1e6feb95 6023echo "configure:6024: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6024 no_cache=0
6025 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6026if test "${enable_togglebtn+set}" = set; then
6027 enableval="$enable_togglebtn"
698dcdb6 6028
1db8dc4a
VZ
6029 if test "$enableval" = yes; then
6030 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6031 else
6032 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6033 fi
698dcdb6 6034
1db8dc4a 6035else
698dcdb6 6036
1db8dc4a
VZ
6037 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6038 if test "x$LINE" != x ; then
6039 eval "DEFAULT_$LINE"
6040 else
6041 no_cache=1
6042 fi
6043
6044 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6045
6046fi
1db8dc4a
VZ
6047
6048
6049 eval "$ac_cv_use_togglebtn"
6050 if test "$no_cache" != 1; then
6051 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6052 fi
6053
6054 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6055 echo "$ac_t""yes" 1>&6
1db8dc4a 6056 else
698dcdb6 6057 echo "$ac_t""no" 1>&6
1db8dc4a 6058 fi
698dcdb6 6059
1db8dc4a 6060
698dcdb6 6061 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
1e6feb95 6062echo "configure:6063: checking for --enable-toolbar" >&5
10f2d63a
VZ
6063 no_cache=0
6064 # Check whether --enable-toolbar or --disable-toolbar was given.
6065if test "${enable_toolbar+set}" = set; then
6066 enableval="$enable_toolbar"
698dcdb6 6067
10f2d63a
VZ
6068 if test "$enableval" = yes; then
6069 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6070 else
6071 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6072 fi
698dcdb6 6073
10f2d63a 6074else
698dcdb6 6075
10f2d63a
VZ
6076 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6077 if test "x$LINE" != x ; then
6078 eval "DEFAULT_$LINE"
6079 else
6080 no_cache=1
6081 fi
6082
6083 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6084
6085fi
10f2d63a
VZ
6086
6087
6088 eval "$ac_cv_use_toolbar"
6089 if test "$no_cache" != 1; then
6090 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6091 fi
6092
6093 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6094 echo "$ac_t""yes" 1>&6
10f2d63a 6095 else
698dcdb6 6096 echo "$ac_t""no" 1>&6
10f2d63a 6097 fi
698dcdb6 6098
10f2d63a 6099
698dcdb6 6100 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
1e6feb95 6101echo "configure:6102: checking for --enable-tbarnative" >&5
360d6699
VZ
6102 no_cache=0
6103 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6104if test "${enable_tbarnative+set}" = set; then
6105 enableval="$enable_tbarnative"
698dcdb6 6106
360d6699
VZ
6107 if test "$enableval" = yes; then
6108 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6109 else
6110 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6111 fi
698dcdb6 6112
360d6699 6113else
698dcdb6 6114
360d6699
VZ
6115 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6116 if test "x$LINE" != x ; then
6117 eval "DEFAULT_$LINE"
6118 else
6119 no_cache=1
6120 fi
6121
6122 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6123
6124fi
360d6699
VZ
6125
6126
6127 eval "$ac_cv_use_tbarnative"
6128 if test "$no_cache" != 1; then
6129 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6130 fi
6131
6132 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6133 echo "$ac_t""yes" 1>&6
360d6699 6134 else
698dcdb6 6135 echo "$ac_t""no" 1>&6
360d6699 6136 fi
698dcdb6 6137
360d6699 6138
698dcdb6 6139 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
1e6feb95 6140echo "configure:6141: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6141 no_cache=0
6142 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6143if test "${enable_tbarsmpl+set}" = set; then
6144 enableval="$enable_tbarsmpl"
698dcdb6 6145
360d6699
VZ
6146 if test "$enableval" = yes; then
6147 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6148 else
6149 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6150 fi
698dcdb6 6151
360d6699 6152else
698dcdb6 6153
360d6699
VZ
6154 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6155 if test "x$LINE" != x ; then
6156 eval "DEFAULT_$LINE"
6157 else
6158 no_cache=1
6159 fi
6160
6161 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6162
6163fi
360d6699
VZ
6164
6165
6166 eval "$ac_cv_use_tbarsmpl"
6167 if test "$no_cache" != 1; then
6168 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6169 fi
6170
6171 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6172 echo "$ac_t""yes" 1>&6
360d6699 6173 else
698dcdb6 6174 echo "$ac_t""no" 1>&6
360d6699 6175 fi
698dcdb6 6176
360d6699 6177
698dcdb6 6178 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
1e6feb95 6179echo "configure:6180: checking for --enable-treectrl" >&5
10f2d63a
VZ
6180 no_cache=0
6181 # Check whether --enable-treectrl or --disable-treectrl was given.
6182if test "${enable_treectrl+set}" = set; then
6183 enableval="$enable_treectrl"
698dcdb6 6184
10f2d63a
VZ
6185 if test "$enableval" = yes; then
6186 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6187 else
6188 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6189 fi
698dcdb6 6190
10f2d63a 6191else
698dcdb6 6192
10f2d63a
VZ
6193 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6194 if test "x$LINE" != x ; then
6195 eval "DEFAULT_$LINE"
6196 else
6197 no_cache=1
6198 fi
6199
6200 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6201
6202fi
10f2d63a
VZ
6203
6204
1e6feb95
VZ
6205 eval "$ac_cv_use_treectrl"
6206 if test "$no_cache" != 1; then
6207 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6208 fi
6209
6210 if test "$wxUSE_TREECTRL" = yes; then
6211 echo "$ac_t""yes" 1>&6
6212 else
6213 echo "$ac_t""no" 1>&6
6214 fi
6215
6216
6217
6218
6219 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6220echo "configure:6221: checking for --enable-commondlg" >&5
6221 no_cache=0
6222 # Check whether --enable-commondlg or --disable-commondlg was given.
6223if test "${enable_commondlg+set}" = set; then
6224 enableval="$enable_commondlg"
6225
6226 if test "$enableval" = yes; then
6227 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6228 else
6229 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6230 fi
6231
6232else
6233
6234 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6235 if test "x$LINE" != x ; then
6236 eval "DEFAULT_$LINE"
6237 else
6238 no_cache=1
6239 fi
6240
6241 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6242
6243fi
6244
6245
6246 eval "$ac_cv_use_commondlg"
6247 if test "$no_cache" != 1; then
6248 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6249 fi
6250
6251 if test "$wxUSE_COMMONDLGS" = yes; then
6252 echo "$ac_t""yes" 1>&6
6253 else
6254 echo "$ac_t""no" 1>&6
6255 fi
6256
6257
6258 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6259echo "configure:6260: checking for --enable-choicedlg" >&5
6260 no_cache=0
6261 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6262if test "${enable_choicedlg+set}" = set; then
6263 enableval="$enable_choicedlg"
6264
6265 if test "$enableval" = yes; then
6266 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6267 else
6268 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6269 fi
6270
6271else
6272
6273 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6274 if test "x$LINE" != x ; then
6275 eval "DEFAULT_$LINE"
6276 else
6277 no_cache=1
6278 fi
6279
6280 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6281
6282fi
6283
6284
6285 eval "$ac_cv_use_choicedlg"
6286 if test "$no_cache" != 1; then
6287 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6288 fi
6289
6290 if test "$wxUSE_CHOICEDLG" = yes; then
6291 echo "$ac_t""yes" 1>&6
6292 else
6293 echo "$ac_t""no" 1>&6
6294 fi
6295
6296
6297 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6298echo "configure:6299: checking for --enable-coldlg" >&5
6299 no_cache=0
6300 # Check whether --enable-coldlg or --disable-coldlg was given.
6301if test "${enable_coldlg+set}" = set; then
6302 enableval="$enable_coldlg"
6303
6304 if test "$enableval" = yes; then
6305 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6306 else
6307 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6308 fi
6309
6310else
6311
6312 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6313 if test "x$LINE" != x ; then
6314 eval "DEFAULT_$LINE"
6315 else
6316 no_cache=1
6317 fi
6318
6319 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6320
6321fi
6322
6323
6324 eval "$ac_cv_use_coldlg"
6325 if test "$no_cache" != 1; then
6326 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6327 fi
6328
6329 if test "$wxUSE_COLOURDLG" = yes; then
6330 echo "$ac_t""yes" 1>&6
6331 else
6332 echo "$ac_t""no" 1>&6
6333 fi
6334
6335
6336 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6337echo "configure:6338: checking for --enable-filedlg" >&5
6338 no_cache=0
6339 # Check whether --enable-filedlg or --disable-filedlg was given.
6340if test "${enable_filedlg+set}" = set; then
6341 enableval="$enable_filedlg"
6342
6343 if test "$enableval" = yes; then
6344 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6345 else
6346 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6347 fi
6348
6349else
6350
6351 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6352 if test "x$LINE" != x ; then
6353 eval "DEFAULT_$LINE"
6354 else
6355 no_cache=1
6356 fi
6357
6358 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6359
6360fi
6361
6362
6363 eval "$ac_cv_use_filedlg"
6364 if test "$no_cache" != 1; then
6365 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6366 fi
6367
6368 if test "$wxUSE_FILEDLG" = yes; then
6369 echo "$ac_t""yes" 1>&6
6370 else
6371 echo "$ac_t""no" 1>&6
6372 fi
6373
6374
6375 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6376echo "configure:6377: checking for --enable-fontdlg" >&5
6377 no_cache=0
6378 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6379if test "${enable_fontdlg+set}" = set; then
6380 enableval="$enable_fontdlg"
6381
6382 if test "$enableval" = yes; then
6383 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6384 else
6385 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6386 fi
6387
6388else
6389
6390 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6391 if test "x$LINE" != x ; then
6392 eval "DEFAULT_$LINE"
6393 else
6394 no_cache=1
6395 fi
6396
6397 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6398
6399fi
6400
6401
6402 eval "$ac_cv_use_fontdlg"
6403 if test "$no_cache" != 1; then
6404 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6405 fi
6406
6407 if test "$wxUSE_FONTDLG" = yes; then
6408 echo "$ac_t""yes" 1>&6
6409 else
6410 echo "$ac_t""no" 1>&6
6411 fi
6412
6413
6414 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6415echo "configure:6416: checking for --enable-dirdlg" >&5
6416 no_cache=0
6417 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6418if test "${enable_dirdlg+set}" = set; then
6419 enableval="$enable_dirdlg"
6420
6421 if test "$enableval" = yes; then
6422 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6423 else
6424 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6425 fi
6426
6427else
6428
6429 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6430 if test "x$LINE" != x ; then
6431 eval "DEFAULT_$LINE"
6432 else
6433 no_cache=1
6434 fi
6435
6436 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6437
6438fi
6439
6440
6441 eval "$ac_cv_use_dirdlg"
10f2d63a 6442 if test "$no_cache" != 1; then
1e6feb95 6443 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6444 fi
6445
1e6feb95 6446 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6447 echo "$ac_t""yes" 1>&6
10f2d63a 6448 else
698dcdb6 6449 echo "$ac_t""no" 1>&6
10f2d63a 6450 fi
698dcdb6
VZ
6451
6452
1e6feb95
VZ
6453 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6454echo "configure:6455: checking for --enable-msgdlg" >&5
10f2d63a 6455 no_cache=0
1e6feb95
VZ
6456 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6457if test "${enable_msgdlg+set}" = set; then
6458 enableval="$enable_msgdlg"
698dcdb6 6459
10f2d63a 6460 if test "$enableval" = yes; then
1e6feb95 6461 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6462 else
1e6feb95 6463 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6464 fi
698dcdb6 6465
10f2d63a 6466else
698dcdb6 6467
1e6feb95 6468 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6469 if test "x$LINE" != x ; then
6470 eval "DEFAULT_$LINE"
6471 else
6472 no_cache=1
6473 fi
6474
1e6feb95 6475 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6476
6477fi
10f2d63a
VZ
6478
6479
1e6feb95 6480 eval "$ac_cv_use_msgdlg"
10f2d63a 6481 if test "$no_cache" != 1; then
1e6feb95 6482 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6483 fi
6484
1e6feb95 6485 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6486 echo "$ac_t""yes" 1>&6
10f2d63a 6487 else
698dcdb6 6488 echo "$ac_t""no" 1>&6
10f2d63a 6489 fi
698dcdb6 6490
10f2d63a 6491
1e6feb95
VZ
6492 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6493echo "configure:6494: checking for --enable-numberdlg" >&5
10f2d63a 6494 no_cache=0
1e6feb95
VZ
6495 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6496if test "${enable_numberdlg+set}" = set; then
6497 enableval="$enable_numberdlg"
698dcdb6 6498
10f2d63a 6499 if test "$enableval" = yes; then
1e6feb95 6500 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6501 else
1e6feb95 6502 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6503 fi
698dcdb6 6504
10f2d63a 6505else
698dcdb6 6506
1e6feb95 6507 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6508 if test "x$LINE" != x ; then
6509 eval "DEFAULT_$LINE"
6510 else
6511 no_cache=1
6512 fi
6513
1e6feb95 6514 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6515
6516fi
10f2d63a
VZ
6517
6518
1e6feb95 6519 eval "$ac_cv_use_numberdlg"
10f2d63a 6520 if test "$no_cache" != 1; then
1e6feb95 6521 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6522 fi
6523
1e6feb95 6524 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6525 echo "$ac_t""yes" 1>&6
10f2d63a 6526 else
698dcdb6 6527 echo "$ac_t""no" 1>&6
10f2d63a 6528 fi
698dcdb6 6529
10f2d63a 6530
698dcdb6 6531 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
1e6feb95 6532echo "configure:6533: checking for --enable-textdlg" >&5
10f2d63a
VZ
6533 no_cache=0
6534 # Check whether --enable-textdlg or --disable-textdlg was given.
6535if test "${enable_textdlg+set}" = set; then
6536 enableval="$enable_textdlg"
698dcdb6 6537
10f2d63a
VZ
6538 if test "$enableval" = yes; then
6539 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6540 else
6541 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6542 fi
698dcdb6 6543
10f2d63a 6544else
698dcdb6 6545
10f2d63a
VZ
6546 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6547 if test "x$LINE" != x ; then
6548 eval "DEFAULT_$LINE"
6549 else
6550 no_cache=1
6551 fi
6552
6553 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
6554
6555fi
10f2d63a
VZ
6556
6557
6558 eval "$ac_cv_use_textdlg"
6559 if test "$no_cache" != 1; then
6560 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6561 fi
6562
6563 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 6564 echo "$ac_t""yes" 1>&6
10f2d63a 6565 else
698dcdb6 6566 echo "$ac_t""no" 1>&6
10f2d63a 6567 fi
698dcdb6 6568
10f2d63a 6569
698dcdb6 6570 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
1e6feb95 6571echo "configure:6572: checking for --enable-tipdlg" >&5
10f2d63a
VZ
6572 no_cache=0
6573 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6574if test "${enable_tipdlg+set}" = set; then
6575 enableval="$enable_tipdlg"
698dcdb6 6576
10f2d63a
VZ
6577 if test "$enableval" = yes; then
6578 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6579 else
6580 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6581 fi
698dcdb6 6582
10f2d63a 6583else
698dcdb6 6584
10f2d63a
VZ
6585 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6586 if test "x$LINE" != x ; then
6587 eval "DEFAULT_$LINE"
6588 else
6589 no_cache=1
6590 fi
6591
6592 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
6593
6594fi
10f2d63a
VZ
6595
6596
6597 eval "$ac_cv_use_tipdlg"
6598 if test "$no_cache" != 1; then
6599 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6600 fi
6601
6602 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 6603 echo "$ac_t""yes" 1>&6
10f2d63a 6604 else
698dcdb6 6605 echo "$ac_t""no" 1>&6
10f2d63a 6606 fi
698dcdb6 6607
10f2d63a 6608
698dcdb6 6609 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
1e6feb95 6610echo "configure:6611: checking for --enable-progressdlg" >&5
10f2d63a
VZ
6611 no_cache=0
6612 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6613if test "${enable_progressdlg+set}" = set; then
6614 enableval="$enable_progressdlg"
698dcdb6 6615
10f2d63a
VZ
6616 if test "$enableval" = yes; then
6617 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6618 else
6619 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6620 fi
698dcdb6 6621
10f2d63a 6622else
698dcdb6 6623
10f2d63a
VZ
6624 LINE=`grep "wxUSE_PROGRESSDLG" ${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_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
6632
6633fi
10f2d63a
VZ
6634
6635
6636 eval "$ac_cv_use_progressdlg"
6637 if test "$no_cache" != 1; then
6638 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6639 fi
6640
6641 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 6642 echo "$ac_t""yes" 1>&6
10f2d63a 6643 else
698dcdb6 6644 echo "$ac_t""no" 1>&6
10f2d63a 6645 fi
698dcdb6 6646
10f2d63a 6647
1e6feb95
VZ
6648 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
6649echo "configure:6650: checking for --enable-menus" >&5
6650 no_cache=0
6651 # Check whether --enable-menus or --disable-menus was given.
6652if test "${enable_menus+set}" = set; then
6653 enableval="$enable_menus"
6654
6655 if test "$enableval" = yes; then
6656 ac_cv_use_menus='wxUSE_MENUS=yes'
6657 else
6658 ac_cv_use_menus='wxUSE_MENUS=no'
6659 fi
6660
6661else
6662
6663 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
6664 if test "x$LINE" != x ; then
6665 eval "DEFAULT_$LINE"
6666 else
6667 no_cache=1
6668 fi
6669
6670 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
6671
6672fi
6673
6674
6675 eval "$ac_cv_use_menus"
6676 if test "$no_cache" != 1; then
6677 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
6678 fi
6679
6680 if test "$wxUSE_MENUS" = yes; then
6681 echo "$ac_t""yes" 1>&6
6682 else
6683 echo "$ac_t""no" 1>&6
6684 fi
6685
6686
698dcdb6 6687 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
1e6feb95 6688echo "configure:6689: checking for --enable-miniframe" >&5
10f2d63a
VZ
6689 no_cache=0
6690 # Check whether --enable-miniframe or --disable-miniframe was given.
6691if test "${enable_miniframe+set}" = set; then
6692 enableval="$enable_miniframe"
698dcdb6 6693
10f2d63a
VZ
6694 if test "$enableval" = yes; then
6695 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
6696 else
6697 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
6698 fi
698dcdb6 6699
10f2d63a 6700else
698dcdb6 6701
10f2d63a
VZ
6702 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
6703 if test "x$LINE" != x ; then
6704 eval "DEFAULT_$LINE"
6705 else
6706 no_cache=1
6707 fi
6708
6709 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
6710
6711fi
10f2d63a
VZ
6712
6713
6714 eval "$ac_cv_use_miniframe"
6715 if test "$no_cache" != 1; then
6716 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
6717 fi
6718
6719 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 6720 echo "$ac_t""yes" 1>&6
10f2d63a 6721 else
698dcdb6 6722 echo "$ac_t""no" 1>&6
10f2d63a 6723 fi
698dcdb6 6724
10f2d63a 6725
698dcdb6 6726 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
1e6feb95 6727echo "configure:6728: checking for --enable-html" >&5
10f2d63a
VZ
6728 no_cache=0
6729 # Check whether --enable-html or --disable-html was given.
6730if test "${enable_html+set}" = set; then
6731 enableval="$enable_html"
698dcdb6 6732
10f2d63a
VZ
6733 if test "$enableval" = yes; then
6734 ac_cv_use_html='wxUSE_HTML=yes'
6735 else
6736 ac_cv_use_html='wxUSE_HTML=no'
6737 fi
698dcdb6 6738
10f2d63a 6739else
698dcdb6 6740
10f2d63a
VZ
6741 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6742 if test "x$LINE" != x ; then
6743 eval "DEFAULT_$LINE"
6744 else
6745 no_cache=1
6746 fi
6747
6748 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
698dcdb6
VZ
6749
6750fi
10f2d63a
VZ
6751
6752
6753 eval "$ac_cv_use_html"
6754 if test "$no_cache" != 1; then
6755 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6756 fi
6757
6758 if test "$wxUSE_HTML" = yes; then
698dcdb6 6759 echo "$ac_t""yes" 1>&6
10f2d63a 6760 else
698dcdb6 6761 echo "$ac_t""no" 1>&6
10f2d63a 6762 fi
698dcdb6 6763
10f2d63a 6764
698dcdb6 6765 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
1e6feb95 6766echo "configure:6767: checking for --enable-tooltips" >&5
10f2d63a
VZ
6767 no_cache=0
6768 # Check whether --enable-tooltips or --disable-tooltips was given.
6769if test "${enable_tooltips+set}" = set; then
6770 enableval="$enable_tooltips"
698dcdb6 6771
10f2d63a
VZ
6772 if test "$enableval" = yes; then
6773 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
6774 else
6775 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
6776 fi
698dcdb6 6777
10f2d63a 6778else
698dcdb6 6779
10f2d63a
VZ
6780 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
6781 if test "x$LINE" != x ; then
6782 eval "DEFAULT_$LINE"
6783 else
6784 no_cache=1
6785 fi
6786
6787 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
6788
6789fi
10f2d63a
VZ
6790
6791
6792 eval "$ac_cv_use_tooltips"
6793 if test "$no_cache" != 1; then
6794 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
6795 fi
6796
6797 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 6798 echo "$ac_t""yes" 1>&6
10f2d63a 6799 else
698dcdb6 6800 echo "$ac_t""no" 1>&6
10f2d63a 6801 fi
698dcdb6 6802
10f2d63a 6803
698dcdb6 6804 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
1e6feb95 6805echo "configure:6806: checking for --enable-splines" >&5
10f2d63a
VZ
6806 no_cache=0
6807 # Check whether --enable-splines or --disable-splines was given.
6808if test "${enable_splines+set}" = set; then
6809 enableval="$enable_splines"
698dcdb6 6810
10f2d63a
VZ
6811 if test "$enableval" = yes; then
6812 ac_cv_use_splines='wxUSE_SPLINES=yes'
6813 else
6814 ac_cv_use_splines='wxUSE_SPLINES=no'
6815 fi
698dcdb6 6816
10f2d63a 6817else
698dcdb6 6818
10f2d63a
VZ
6819 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
6820 if test "x$LINE" != x ; then
6821 eval "DEFAULT_$LINE"
6822 else
6823 no_cache=1
6824 fi
6825
6826 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
6827
6828fi
10f2d63a
VZ
6829
6830
6831 eval "$ac_cv_use_splines"
6832 if test "$no_cache" != 1; then
6833 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
6834 fi
6835
6836 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 6837 echo "$ac_t""yes" 1>&6
10f2d63a 6838 else
698dcdb6 6839 echo "$ac_t""no" 1>&6
10f2d63a 6840 fi
698dcdb6 6841
10f2d63a 6842
698dcdb6 6843 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
1e6feb95 6844echo "configure:6845: checking for --enable-validators" >&5
10f2d63a
VZ
6845 no_cache=0
6846 # Check whether --enable-validators or --disable-validators was given.
6847if test "${enable_validators+set}" = set; then
6848 enableval="$enable_validators"
698dcdb6 6849
10f2d63a
VZ
6850 if test "$enableval" = yes; then
6851 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
6852 else
6853 ac_cv_use_validators='wxUSE_VALIDATORS=no'
6854 fi
698dcdb6 6855
10f2d63a 6856else
698dcdb6 6857
10f2d63a
VZ
6858 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
6859 if test "x$LINE" != x ; then
6860 eval "DEFAULT_$LINE"
6861 else
6862 no_cache=1
6863 fi
6864
6865 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
6866
6867fi
10f2d63a
VZ
6868
6869
6870 eval "$ac_cv_use_validators"
6871 if test "$no_cache" != 1; then
6872 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
6873 fi
6874
6875 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 6876 echo "$ac_t""yes" 1>&6
10f2d63a 6877 else
698dcdb6 6878 echo "$ac_t""no" 1>&6
10f2d63a 6879 fi
698dcdb6 6880
10f2d63a 6881
698dcdb6 6882 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
1e6feb95 6883echo "configure:6884: checking for --enable-busyinfo" >&5
10f2d63a
VZ
6884 no_cache=0
6885 # Check whether --enable-busyinfo or --disable-busyinfo was given.
6886if test "${enable_busyinfo+set}" = set; then
6887 enableval="$enable_busyinfo"
698dcdb6 6888
10f2d63a
VZ
6889 if test "$enableval" = yes; then
6890 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
6891 else
6892 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
6893 fi
698dcdb6 6894
10f2d63a 6895else
698dcdb6 6896
10f2d63a
VZ
6897 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
6898 if test "x$LINE" != x ; then
6899 eval "DEFAULT_$LINE"
6900 else
6901 no_cache=1
6902 fi
6903
6904 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
6905
6906fi
10f2d63a
VZ
6907
6908
6909 eval "$ac_cv_use_busyinfo"
6910 if test "$no_cache" != 1; then
6911 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
6912 fi
6913
6914 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 6915 echo "$ac_t""yes" 1>&6
10f2d63a 6916 else
698dcdb6 6917 echo "$ac_t""no" 1>&6
10f2d63a 6918 fi
698dcdb6 6919
10f2d63a 6920
698dcdb6 6921 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
1e6feb95 6922echo "configure:6923: checking for --enable-joystick" >&5
f6bcfd97
BP
6923 no_cache=0
6924 # Check whether --enable-joystick or --disable-joystick was given.
6925if test "${enable_joystick+set}" = set; then
6926 enableval="$enable_joystick"
698dcdb6 6927
f6bcfd97
BP
6928 if test "$enableval" = yes; then
6929 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
6930 else
6931 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
6932 fi
698dcdb6 6933
f6bcfd97 6934else
698dcdb6 6935
f6bcfd97
BP
6936 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
6937 if test "x$LINE" != x ; then
6938 eval "DEFAULT_$LINE"
6939 else
6940 no_cache=1
6941 fi
6942
6943 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
6944
6945fi
f6bcfd97
BP
6946
6947
6948 eval "$ac_cv_use_joystick"
6949 if test "$no_cache" != 1; then
6950 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
6951 fi
6952
6953 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 6954 echo "$ac_t""yes" 1>&6
f6bcfd97 6955 else
698dcdb6 6956 echo "$ac_t""no" 1>&6
f6bcfd97 6957 fi
698dcdb6
VZ
6958
6959
1e6feb95
VZ
6960 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
6961echo "configure:6962: checking for --enable-metafile" >&5
6962 no_cache=0
6963 # Check whether --enable-metafile or --disable-metafile was given.
6964if test "${enable_metafile+set}" = set; then
6965 enableval="$enable_metafile"
6966
6967 if test "$enableval" = yes; then
6968 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6969 else
6970 ac_cv_use_metafile='wxUSE_METAFILE=no'
6971 fi
6972
6973else
6974
6975 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6976 if test "x$LINE" != x ; then
6977 eval "DEFAULT_$LINE"
6978 else
6979 no_cache=1
6980 fi
6981
6982 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6983
6984fi
6985
6986
6987 eval "$ac_cv_use_metafile"
6988 if test "$no_cache" != 1; then
6989 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6990 fi
6991
6992 if test "$wxUSE_METAFILE" = yes; then
6993 echo "$ac_t""yes" 1>&6
6994 else
6995 echo "$ac_t""no" 1>&6
6996 fi
6997
6998
10f2d63a 6999
698dcdb6
VZ
7000
7001 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
1e6feb95 7002echo "configure:7003: checking for --enable-image" >&5
0046ff7c
VS
7003 no_cache=0
7004 # Check whether --enable-image or --disable-image was given.
7005if test "${enable_image+set}" = set; then
7006 enableval="$enable_image"
698dcdb6 7007
0046ff7c
VS
7008 if test "$enableval" = yes; then
7009 ac_cv_use_image='wxUSE_IMAGE=yes'
7010 else
7011 ac_cv_use_image='wxUSE_IMAGE=no'
7012 fi
698dcdb6 7013
0046ff7c 7014else
698dcdb6 7015
0046ff7c
VS
7016 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7017 if test "x$LINE" != x ; then
7018 eval "DEFAULT_$LINE"
7019 else
7020 no_cache=1
7021 fi
7022
7023 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7024
7025fi
0046ff7c
VS
7026
7027
7028 eval "$ac_cv_use_image"
7029 if test "$no_cache" != 1; then
7030 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7031 fi
7032
7033 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7034 echo "$ac_t""yes" 1>&6
0046ff7c 7035 else
698dcdb6 7036 echo "$ac_t""no" 1>&6
0046ff7c 7037 fi
698dcdb6 7038
0046ff7c 7039
698dcdb6 7040 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
1e6feb95 7041echo "configure:7042: checking for --enable-gif" >&5
10f2d63a
VZ
7042 no_cache=0
7043 # Check whether --enable-gif or --disable-gif was given.
7044if test "${enable_gif+set}" = set; then
7045 enableval="$enable_gif"
698dcdb6 7046
10f2d63a
VZ
7047 if test "$enableval" = yes; then
7048 ac_cv_use_gif='wxUSE_GIF=yes'
7049 else
7050 ac_cv_use_gif='wxUSE_GIF=no'
7051 fi
698dcdb6 7052
10f2d63a 7053else
698dcdb6 7054
10f2d63a
VZ
7055 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7056 if test "x$LINE" != x ; then
7057 eval "DEFAULT_$LINE"
7058 else
7059 no_cache=1
7060 fi
7061
7062 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7063
7064fi
10f2d63a
VZ
7065
7066
7067 eval "$ac_cv_use_gif"
7068 if test "$no_cache" != 1; then
7069 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7070 fi
7071
7072 if test "$wxUSE_GIF" = yes; then
698dcdb6 7073 echo "$ac_t""yes" 1>&6
10f2d63a 7074 else
698dcdb6 7075 echo "$ac_t""no" 1>&6
10f2d63a 7076 fi
698dcdb6 7077
10f2d63a 7078
698dcdb6 7079 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
1e6feb95 7080echo "configure:7081: checking for --enable-pcx" >&5
10f2d63a
VZ
7081 no_cache=0
7082 # Check whether --enable-pcx or --disable-pcx was given.
7083if test "${enable_pcx+set}" = set; then
7084 enableval="$enable_pcx"
698dcdb6 7085
10f2d63a
VZ
7086 if test "$enableval" = yes; then
7087 ac_cv_use_pcx='wxUSE_PCX=yes'
7088 else
7089 ac_cv_use_pcx='wxUSE_PCX=no'
7090 fi
698dcdb6 7091
10f2d63a 7092else
698dcdb6 7093
10f2d63a
VZ
7094 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7095 if test "x$LINE" != x ; then
7096 eval "DEFAULT_$LINE"
7097 else
7098 no_cache=1
7099 fi
7100
7101 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7102
7103fi
10f2d63a
VZ
7104
7105
7106 eval "$ac_cv_use_pcx"
7107 if test "$no_cache" != 1; then
7108 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7109 fi
7110
7111 if test "$wxUSE_PCX" = yes; then
698dcdb6 7112 echo "$ac_t""yes" 1>&6
10f2d63a 7113 else
698dcdb6 7114 echo "$ac_t""no" 1>&6
10f2d63a 7115 fi
698dcdb6 7116
10f2d63a 7117
698dcdb6 7118 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
1e6feb95 7119echo "configure:7120: checking for --enable-pnm" >&5
10f2d63a
VZ
7120 no_cache=0
7121 # Check whether --enable-pnm or --disable-pnm was given.
7122if test "${enable_pnm+set}" = set; then
7123 enableval="$enable_pnm"
698dcdb6 7124
10f2d63a
VZ
7125 if test "$enableval" = yes; then
7126 ac_cv_use_pnm='wxUSE_PNM=yes'
7127 else
7128 ac_cv_use_pnm='wxUSE_PNM=no'
7129 fi
698dcdb6 7130
10f2d63a 7131else
698dcdb6 7132
10f2d63a
VZ
7133 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7134 if test "x$LINE" != x ; then
7135 eval "DEFAULT_$LINE"
7136 else
7137 no_cache=1
7138 fi
7139
7140 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7141
7142fi
10f2d63a
VZ
7143
7144
7145 eval "$ac_cv_use_pnm"
7146 if test "$no_cache" != 1; then
7147 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7148 fi
7149
7150 if test "$wxUSE_PNM" = yes; then
698dcdb6 7151 echo "$ac_t""yes" 1>&6
10f2d63a 7152 else
698dcdb6 7153 echo "$ac_t""no" 1>&6
10f2d63a 7154 fi
698dcdb6 7155
10f2d63a 7156
698dcdb6 7157 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
1e6feb95 7158echo "configure:7159: checking for --enable-pnm" >&5
0046ff7c
VS
7159 no_cache=0
7160 # Check whether --enable-pnm or --disable-pnm was given.
7161if test "${enable_pnm+set}" = set; then
7162 enableval="$enable_pnm"
698dcdb6 7163
0046ff7c
VS
7164 if test "$enableval" = yes; then
7165 ac_cv_use_pnm='wxUSE_XPM=yes'
7166 else
7167 ac_cv_use_pnm='wxUSE_XPM=no'
7168 fi
698dcdb6 7169
0046ff7c 7170else
698dcdb6 7171
0046ff7c
VS
7172 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7173 if test "x$LINE" != x ; then
7174 eval "DEFAULT_$LINE"
7175 else
7176 no_cache=1
7177 fi
7178
7179 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7180
7181fi
0046ff7c
VS
7182
7183
7184 eval "$ac_cv_use_pnm"
7185 if test "$no_cache" != 1; then
7186 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7187 fi
7188
7189 if test "$wxUSE_XPM" = yes; then
698dcdb6 7190 echo "$ac_t""yes" 1>&6
0046ff7c 7191 else
698dcdb6 7192 echo "$ac_t""no" 1>&6
0046ff7c 7193 fi
698dcdb6 7194
0046ff7c 7195
b12915c1
VZ
7196fi
7197
698dcdb6 7198
10f2d63a
VZ
7199 echo "saving argument cache $wx_arg_cache_file"
7200 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7201
10f2d63a 7202
698dcdb6
VZ
7203
7204echo $ac_n "checking for toolkit""... $ac_c" 1>&6
1e6feb95 7205echo "configure:7206: checking for toolkit" >&5
10f2d63a
VZ
7206
7207if test "$wxUSE_GUI" = "yes"; then
7208
b12915c1 7209if test "$USE_BEOS" = 1; then
698dcdb6 7210 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
b12915c1
VZ
7211fi
7212
10f2d63a
VZ
7213if test "$TOOLKIT_GIVEN" = 1; then
7214 for toolkit in `echo $ALL_TOOLKITS`; do
7215 var=wxUSE_$toolkit
7216 eval "value=\$${var}"
7217 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7218 done
7219else
7220 for toolkit in `echo $ALL_TOOLKITS`; do
7221 if test "$has_toolkit_in_cache" != 1; then
7222 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7223 else
7224 var=DEFAULT_wxUSE_$toolkit
7225 fi
7226 eval "wxUSE_$toolkit=\$${var}"
7227 done
7228fi
7229
1e6feb95 7230NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
cf27ef00 7231
ec14dd32
VZ
7232case "${host}" in
7233 *-pc-os2_emx )
7234 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7235 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7236 LEX_STEM="lexyy"
7237 ;;
7238 *)
7239 PATH_IFS=':'
7240 LEX_STEM="lex.yy"
7241 ;;
7242esac
10f2d63a
VZ
7243
7244case "$NUM_TOOLKITS" in
7245 1)
7246 ;;
7247 0)
698dcdb6 7248 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
10f2d63a
VZ
7249 ;;
7250 *)
698dcdb6 7251 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
10f2d63a
VZ
7252esac
7253
7254for toolkit in `echo $ALL_TOOLKITS`; do
7255 var=wxUSE_$toolkit
7256 eval "value=\$${var}"
7257 if test "x$value" != x; then
7258 cache_var=CACHE_$toolkit
7259 eval "cache=\$${cache_var}"
7260 if test "$cache" = 1; then
7261 echo "$var=$value" >> ${wx_arg_cache_file}
7262 fi
7263 if test "$value" = 1; then
698dcdb6 7264 echo "$ac_t""`echo $toolkit | tr [A-Z] [a-z]`" 1>&6
10f2d63a
VZ
7265 fi
7266 fi
7267done
7268
7269else
cf27ef00 7270 PATH_IFS=':'
698dcdb6 7271 echo "$ac_t""base only" 1>&6
10f2d63a
VZ
7272fi
7273
698dcdb6
VZ
7274
7275cat > confcache <<\EOF
10f2d63a
VZ
7276# This file is a shell script that caches the results of configure
7277# tests run on this system so they can be shared between configure
698dcdb6
VZ
7278# scripts and configure runs. It is not useful on other systems.
7279# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7280#
698dcdb6
VZ
7281# By default, configure uses ./config.cache as the cache file,
7282# creating it if it does not exist already. You can give configure
7283# the --cache-file=FILE option to use a different cache file; that is
7284# what configure does when it calls configure scripts in
7285# subdirectories, so they share the cache.
7286# Giving --cache-file=/dev/null disables caching, for debugging configure.
7287# config.status only pays attention to the cache file if you give it the
7288# --recheck option to rerun configure.
10f2d63a 7289#
698dcdb6 7290EOF
10f2d63a
VZ
7291# The following way of writing the cache mishandles newlines in values,
7292# but we know of no workaround that is simple, portable, and efficient.
7293# So, don't put newlines in cache variables' values.
7294# Ultrix sh set writes to stderr and can't be redirected directly,
7295# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7296(set) 2>&1 |
7297 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7298 *ac_space=\ *)
7299 # `set' does not quote correctly, so add quotes (double-quote substitution
7300 # turns \\\\ into \\, and sed turns \\ into \).
7301 sed -n \
7302 -e "s/'/'\\\\''/g" \
7303 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7304 ;;
7305 *)
7306 # `set' quotes correctly as required by POSIX, so do not add quotes.
7307 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7308 ;;
7309 esac >> confcache
7310if cmp -s $cache_file confcache; then
7311 :
7312else
10f2d63a 7313 if test -w $cache_file; then
698dcdb6
VZ
7314 echo "updating cache $cache_file"
7315 cat confcache > $cache_file
10f2d63a
VZ
7316 else
7317 echo "not updating unwritable cache $cache_file"
7318 fi
7319fi
7320rm -f confcache
7321
698dcdb6 7322
e59890c3 7323if test "$build" != "$host" ; then
10f2d63a
VZ
7324 CC=$host_alias-gcc
7325 CXX=$host_alias-c++
7326 AR=$host_alias-ar
7327 RANLIB=$host_alias-ranlib
7328 DLLTOOL=$host_alias-dlltool
32832908 7329 RESCOMP=$host_alias-windres
10f2d63a
VZ
7330 LD=$host_alias-ld
7331 NM=$host_alias-nm
7332 STRIP=$host_alias-strip
10f2d63a
VZ
7333fi
7334
698dcdb6 7335# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7336set dummy gcc; ac_word=$2
698dcdb6 7337echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1e6feb95 7338echo "configure:7339: checking for $ac_word" >&5
698dcdb6
VZ
7339if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7340 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7341else
7342 if test -n "$CC"; then
7343 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7344else
698dcdb6
VZ
7345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7346 ac_dummy="$PATH"
7347 for ac_dir in $ac_dummy; do
7348 test -z "$ac_dir" && ac_dir=.
7349 if test -f $ac_dir/$ac_word; then
7350 ac_cv_prog_CC="gcc"
7351 break
7352 fi
7353 done
7354 IFS="$ac_save_ifs"
10f2d63a 7355fi
6232543b 7356fi
698dcdb6 7357CC="$ac_cv_prog_CC"
6232543b 7358if test -n "$CC"; then
698dcdb6 7359 echo "$ac_t""$CC" 1>&6
1e487827 7360else
698dcdb6 7361 echo "$ac_t""no" 1>&6
1e487827 7362fi
6232543b 7363
1e487827
VS
7364if test -z "$CC"; then
7365 # Extract the first word of "cc", so it can be a program name with args.
7366set dummy cc; ac_word=$2
698dcdb6 7367echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1e6feb95 7368echo "configure:7369: checking for $ac_word" >&5
698dcdb6
VZ
7369if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7371else
7372 if test -n "$CC"; then
7373 ac_cv_prog_CC="$CC" # Let the user override the test.
7374else
698dcdb6 7375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7376 ac_prog_rejected=no
698dcdb6
VZ
7377 ac_dummy="$PATH"
7378 for ac_dir in $ac_dummy; do
7379 test -z "$ac_dir" && ac_dir=.
7380 if test -f $ac_dir/$ac_word; then
7381 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7382 ac_prog_rejected=yes
7383 continue
7384 fi
7385 ac_cv_prog_CC="cc"
7386 break
7387 fi
7388 done
7389 IFS="$ac_save_ifs"
1e487827
VS
7390if test $ac_prog_rejected = yes; then
7391 # We found a bogon in the path, so make sure we never use it.
7392 set dummy $ac_cv_prog_CC
7393 shift
698dcdb6 7394 if test $# -gt 0; then
1e487827
VS
7395 # We chose a different compiler from the bogus one.
7396 # However, it has the same basename, so the bogon will be chosen
7397 # first if we set CC to just the basename; use the full file name.
7398 shift
698dcdb6 7399 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7400 shift
7401 ac_cv_prog_CC="$@"
703e0a69 7402 fi
1e487827
VS
7403fi
7404fi
7405fi
698dcdb6 7406CC="$ac_cv_prog_CC"
1e487827 7407if test -n "$CC"; then
698dcdb6 7408 echo "$ac_t""$CC" 1>&6
703e0a69 7409else
698dcdb6 7410 echo "$ac_t""no" 1>&6
703e0a69 7411fi
1e487827 7412
698dcdb6
VZ
7413 if test -z "$CC"; then
7414 case "`uname -s`" in
7415 *win32* | *WIN32*)
7416 # Extract the first word of "cl", so it can be a program name with args.
7417set dummy cl; ac_word=$2
7418echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1e6feb95 7419echo "configure:7420: checking for $ac_word" >&5
698dcdb6
VZ
7420if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7421 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7422else
7423 if test -n "$CC"; then
7424 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7425else
698dcdb6
VZ
7426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7427 ac_dummy="$PATH"
7428 for ac_dir in $ac_dummy; do
7429 test -z "$ac_dir" && ac_dir=.
7430 if test -f $ac_dir/$ac_word; then
7431 ac_cv_prog_CC="cl"
7432 break
7433 fi
7434 done
7435 IFS="$ac_save_ifs"
703e0a69 7436fi
1e487827 7437fi
698dcdb6 7438CC="$ac_cv_prog_CC"
1e487827 7439if test -n "$CC"; then
698dcdb6 7440 echo "$ac_t""$CC" 1>&6
1e487827 7441else
698dcdb6 7442 echo "$ac_t""no" 1>&6
1e487827 7443fi
698dcdb6
VZ
7444 ;;
7445 esac
7446 fi
7447 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
7448fi
7449
698dcdb6 7450echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1e6feb95 7451echo "configure:7452: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 7452
698dcdb6
VZ
7453ac_ext=c
7454# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7455ac_cpp='$CPP $CPPFLAGS'
7456ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7457ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7458cross_compiling=$ac_cv_prog_cc_cross
6232543b 7459
698dcdb6 7460cat > conftest.$ac_ext << EOF
1e487827 7461
1e6feb95 7462#line 7463 "configure"
1e487827
VS
7463#include "confdefs.h"
7464
698dcdb6
VZ
7465main(){return(0);}
7466EOF
1e6feb95 7467if { (eval echo configure:7468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7468 ac_cv_prog_cc_works=yes
7469 # If we can't run a trivial program, we are probably using a cross compiler.
7470 if (./conftest; exit) 2>/dev/null; then
7471 ac_cv_prog_cc_cross=no
7472 else
7473 ac_cv_prog_cc_cross=yes
7474 fi
7475else
7476 echo "configure: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7478 ac_cv_prog_cc_works=no
7479fi
7480rm -fr conftest*
7481ac_ext=c
7482# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7483ac_cpp='$CPP $CPPFLAGS'
7484ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7485ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7486cross_compiling=$ac_cv_prog_cc_cross
7487
7488echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7489if test $ac_cv_prog_cc_works = no; then
7490 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7491fi
7492echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1e6feb95 7493echo "configure:7494: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
7494echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7495cross_compiling=$ac_cv_prog_cc_cross
7496
7497echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1e6feb95 7498echo "configure:7499: checking whether we are using GNU C" >&5
698dcdb6
VZ
7499if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7500 echo $ac_n "(cached) $ac_c" 1>&6
7501else
7502 cat > conftest.c <<EOF
7503#ifdef __GNUC__
7504 yes;
1e487827 7505#endif
698dcdb6 7506EOF
1e6feb95 7507if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
7508 ac_cv_prog_gcc=yes
7509else
7510 ac_cv_prog_gcc=no
7511fi
7512fi
1e487827 7513
698dcdb6 7514echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 7515
698dcdb6
VZ
7516if test $ac_cv_prog_gcc = yes; then
7517 GCC=yes
7518else
7519 GCC=
7520fi
1e487827 7521
698dcdb6
VZ
7522ac_test_CFLAGS="${CFLAGS+set}"
7523ac_save_CFLAGS="$CFLAGS"
7524CFLAGS=
7525echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1e6feb95 7526echo "configure:7527: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
7527if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7528 echo $ac_n "(cached) $ac_c" 1>&6
7529else
7530 echo 'void f(){}' > conftest.c
7531if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
7532 ac_cv_prog_cc_g=yes
7533else
698dcdb6 7534 ac_cv_prog_cc_g=no
10f2d63a 7535fi
698dcdb6
VZ
7536rm -f conftest*
7537
10f2d63a 7538fi
698dcdb6
VZ
7539
7540echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 7541if test "$ac_test_CFLAGS" = set; then
698dcdb6 7542 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
7543elif test $ac_cv_prog_cc_g = yes; then
7544 if test "$GCC" = yes; then
7545 CFLAGS="-g -O2"
7546 else
7547 CFLAGS="-g"
7548 fi
7549else
7550 if test "$GCC" = yes; then
7551 CFLAGS="-O2"
7552 else
7553 CFLAGS=
7554 fi
7555fi
7556
7557
7558CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7559
698dcdb6 7560echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1e6feb95 7561echo "configure:7562: checking how to run the C preprocessor" >&5
10f2d63a
VZ
7562# On Suns, sometimes $CPP names a directory.
7563if test -n "$CPP" && test -d "$CPP"; then
7564 CPP=
7565fi
7566if test -z "$CPP"; then
698dcdb6
VZ
7567if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7568 echo $ac_n "(cached) $ac_c" 1>&6
7569else
7570 # This must be in double quotes, not single quotes, because CPP may get
7571 # substituted into the Makefile and "${CC-cc}" will confuse make.
7572 CPP="${CC-cc} -E"
10f2d63a 7573 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
7574 # not just through cpp.
7575 cat > conftest.$ac_ext <<EOF
1e6feb95 7576#line 7577 "configure"
10f2d63a
VZ
7577#include "confdefs.h"
7578#include <assert.h>
698dcdb6
VZ
7579Syntax Error
7580EOF
7581ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 7582{ (eval echo configure:7583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7583ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7584if test -z "$ac_err"; then
10f2d63a
VZ
7585 :
7586else
698dcdb6
VZ
7587 echo "$ac_err" >&5
7588 echo "configure: failed program was:" >&5
10f2d63a 7589 cat conftest.$ac_ext >&5
698dcdb6
VZ
7590 rm -rf conftest*
7591 CPP="${CC-cc} -E -traditional-cpp"
7592 cat > conftest.$ac_ext <<EOF
1e6feb95 7593#line 7594 "configure"
10f2d63a 7594#include "confdefs.h"
698dcdb6
VZ
7595#include <assert.h>
7596Syntax Error
7597EOF
7598ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 7599{ (eval echo configure:7600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7600ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7601if test -z "$ac_err"; then
7602 :
10f2d63a 7603else
698dcdb6
VZ
7604 echo "$ac_err" >&5
7605 echo "configure: failed program was:" >&5
10f2d63a 7606 cat conftest.$ac_ext >&5
698dcdb6
VZ
7607 rm -rf conftest*
7608 CPP="${CC-cc} -nologo -E"
7609 cat > conftest.$ac_ext <<EOF
1e6feb95 7610#line 7611 "configure"
10f2d63a
VZ
7611#include "confdefs.h"
7612#include <assert.h>
698dcdb6
VZ
7613Syntax Error
7614EOF
7615ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 7616{ (eval echo configure:7617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7617ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7618if test -z "$ac_err"; then
10f2d63a
VZ
7619 :
7620else
698dcdb6
VZ
7621 echo "$ac_err" >&5
7622 echo "configure: failed program was:" >&5
10f2d63a 7623 cat conftest.$ac_ext >&5
698dcdb6
VZ
7624 rm -rf conftest*
7625 CPP=/lib/cpp
10f2d63a 7626fi
698dcdb6 7627rm -f conftest*
10f2d63a 7628fi
698dcdb6 7629rm -f conftest*
703e0a69 7630fi
698dcdb6
VZ
7631rm -f conftest*
7632 ac_cv_prog_CPP="$CPP"
7633fi
7634 CPP="$ac_cv_prog_CPP"
10f2d63a 7635else
698dcdb6 7636 ac_cv_prog_CPP="$CPP"
10f2d63a 7637fi
698dcdb6 7638echo "$ac_t""$CPP" 1>&6
10f2d63a
VZ
7639
7640
698dcdb6
VZ
7641if test $ac_cv_prog_gcc = yes; then
7642 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1e6feb95 7643echo "configure:7644: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
7644if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7646else
7647 ac_pattern="Autoconf.*'x'"
698dcdb6 7648 cat > conftest.$ac_ext <<EOF
1e6feb95 7649#line 7650 "configure"
10f2d63a
VZ
7650#include "confdefs.h"
7651#include <sgtty.h>
7652Autoconf TIOCGETP
698dcdb6 7653EOF
10f2d63a
VZ
7654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7655 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 7656 rm -rf conftest*
10f2d63a
VZ
7657 ac_cv_prog_gcc_traditional=yes
7658else
698dcdb6 7659 rm -rf conftest*
10f2d63a
VZ
7660 ac_cv_prog_gcc_traditional=no
7661fi
7662rm -f conftest*
7663
698dcdb6 7664
10f2d63a 7665 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 7666 cat > conftest.$ac_ext <<EOF
1e6feb95 7667#line 7668 "configure"
10f2d63a
VZ
7668#include "confdefs.h"
7669#include <termio.h>
7670Autoconf TCGETA
698dcdb6 7671EOF
10f2d63a
VZ
7672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7673 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 7674 rm -rf conftest*
10f2d63a
VZ
7675 ac_cv_prog_gcc_traditional=yes
7676fi
7677rm -f conftest*
7678
7679 fi
7680fi
698dcdb6
VZ
7681
7682echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
7683 if test $ac_cv_prog_gcc_traditional = yes; then
7684 CC="$CC -traditional"
7685 fi
7686fi
7687
703e0a69 7688
698dcdb6
VZ
7689
7690ac_ext=C
7691# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 7692ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
7693ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7694ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7695cross_compiling=$ac_cv_prog_cxx_cross
7696
7697
7698for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
7699do
7700# Extract the first word of "$ac_prog", so it can be a program name with args.
7701set dummy $ac_prog; ac_word=$2
7702echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1e6feb95 7703echo "configure:7704: checking for $ac_word" >&5
698dcdb6
VZ
7704if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
7705 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7706else
7707 if test -n "$CXX"; then
7708 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7709else
698dcdb6
VZ
7710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7711 ac_dummy="$PATH"
7712 for ac_dir in $ac_dummy; do
7713 test -z "$ac_dir" && ac_dir=.
7714 if test -f $ac_dir/$ac_word; then
7715 ac_cv_prog_CXX="$ac_prog"
7716 break
7717 fi
7718 done
7719 IFS="$ac_save_ifs"
10f2d63a
VZ
7720fi
7721fi
698dcdb6 7722CXX="$ac_cv_prog_CXX"
10f2d63a 7723if test -n "$CXX"; then
698dcdb6 7724 echo "$ac_t""$CXX" 1>&6
10f2d63a 7725else
698dcdb6 7726 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7727fi
7728
698dcdb6 7729test -n "$CXX" && break
10f2d63a 7730done
698dcdb6 7731test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
7732
7733
698dcdb6 7734echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1e6feb95 7735echo "configure:7736: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 7736
698dcdb6
VZ
7737ac_ext=C
7738# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7739ac_cpp='$CXXCPP $CPPFLAGS'
7740ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7741ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7742cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 7743
698dcdb6
VZ
7744cat > conftest.$ac_ext << EOF
7745
1e6feb95 7746#line 7747 "configure"
10f2d63a
VZ
7747#include "confdefs.h"
7748
698dcdb6
VZ
7749int main(){return(0);}
7750EOF
1e6feb95 7751if { (eval echo configure:7752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7752 ac_cv_prog_cxx_works=yes
7753 # If we can't run a trivial program, we are probably using a cross compiler.
7754 if (./conftest; exit) 2>/dev/null; then
7755 ac_cv_prog_cxx_cross=no
7756 else
7757 ac_cv_prog_cxx_cross=yes
7758 fi
7759else
7760 echo "configure: failed program was:" >&5
7761 cat conftest.$ac_ext >&5
7762 ac_cv_prog_cxx_works=no
7763fi
7764rm -fr conftest*
7765ac_ext=C
7766# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7767ac_cpp='$CXXCPP $CPPFLAGS'
7768ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7769ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7770cross_compiling=$ac_cv_prog_cxx_cross
7771
7772echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
7773if test $ac_cv_prog_cxx_works = no; then
7774 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
7775fi
7776echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1e6feb95 7777echo "configure:7778: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
7778echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
7779cross_compiling=$ac_cv_prog_cxx_cross
7780
7781echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1e6feb95 7782echo "configure:7783: checking whether we are using GNU C++" >&5
698dcdb6
VZ
7783if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
7784 echo $ac_n "(cached) $ac_c" 1>&6
7785else
7786 cat > conftest.C <<EOF
7787#ifdef __GNUC__
7788 yes;
10f2d63a 7789#endif
698dcdb6 7790EOF
1e6feb95 7791if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
7792 ac_cv_prog_gxx=yes
7793else
7794 ac_cv_prog_gxx=no
7795fi
7796fi
10f2d63a 7797
698dcdb6 7798echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 7799
698dcdb6
VZ
7800if test $ac_cv_prog_gxx = yes; then
7801 GXX=yes
7802else
7803 GXX=
7804fi
10f2d63a 7805
698dcdb6
VZ
7806ac_test_CXXFLAGS="${CXXFLAGS+set}"
7807ac_save_CXXFLAGS="$CXXFLAGS"
7808CXXFLAGS=
7809echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1e6feb95 7810echo "configure:7811: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
7811if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
7812 echo $ac_n "(cached) $ac_c" 1>&6
7813else
7814 echo 'void f(){}' > conftest.cc
7815if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
7816 ac_cv_prog_cxx_g=yes
7817else
698dcdb6 7818 ac_cv_prog_cxx_g=no
10f2d63a 7819fi
698dcdb6
VZ
7820rm -f conftest*
7821
10f2d63a 7822fi
698dcdb6
VZ
7823
7824echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 7825if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 7826 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
7827elif test $ac_cv_prog_cxx_g = yes; then
7828 if test "$GXX" = yes; then
7829 CXXFLAGS="-g -O2"
7830 else
7831 CXXFLAGS="-g"
7832 fi
7833else
7834 if test "$GXX" = yes; then
7835 CXXFLAGS="-O2"
7836 else
7837 CXXFLAGS=
7838 fi
7839fi
7840
7841
698dcdb6 7842echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1e6feb95 7843echo "configure:7844: checking how to run the C++ preprocessor" >&5
1e487827 7844if test -z "$CXXCPP"; then
698dcdb6
VZ
7845if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
7846 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 7847else
698dcdb6
VZ
7848 ac_ext=C
7849# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7850ac_cpp='$CXXCPP $CPPFLAGS'
7851ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7852ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7853cross_compiling=$ac_cv_prog_cxx_cross
7854 CXXCPP="${CXX-g++} -E"
7855 cat > conftest.$ac_ext <<EOF
1e6feb95 7856#line 7857 "configure"
1e487827 7857#include "confdefs.h"
698dcdb6
VZ
7858#include <stdlib.h>
7859EOF
7860ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 7861{ (eval echo configure:7862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7862ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7863if test -z "$ac_err"; then
1e487827
VS
7864 :
7865else
698dcdb6
VZ
7866 echo "$ac_err" >&5
7867 echo "configure: failed program was:" >&5
1e487827 7868 cat conftest.$ac_ext >&5
698dcdb6
VZ
7869 rm -rf conftest*
7870 CXXCPP=/lib/cpp
1e487827 7871fi
698dcdb6
VZ
7872rm -f conftest*
7873 ac_cv_prog_CXXCPP="$CXXCPP"
7874ac_ext=C
7875# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7876ac_cpp='$CXXCPP $CPPFLAGS'
7877ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7878ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7879cross_compiling=$ac_cv_prog_cxx_cross
1e487827 7880fi
1e487827 7881fi
698dcdb6
VZ
7882CXXCPP="$ac_cv_prog_CXXCPP"
7883echo "$ac_t""$CXXCPP" 1>&6
1e487827 7884
10f2d63a
VZ
7885
7886CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
7887
7888ac_ext=c
698dcdb6 7889# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 7890ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
7891ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7892ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7893cross_compiling=$ac_cv_prog_cc_cross
7894
7895
7896# Extract the first word of "ranlib", so it can be a program name with args.
7897set dummy ranlib; ac_word=$2
7898echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1e6feb95 7899echo "configure:7900: checking for $ac_word" >&5
698dcdb6
VZ
7900if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
7901 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7902else
7903 if test -n "$RANLIB"; then
7904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7905else
698dcdb6
VZ
7906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7907 ac_dummy="$PATH"
7908 for ac_dir in $ac_dummy; do
7909 test -z "$ac_dir" && ac_dir=.
7910 if test -f $ac_dir/$ac_word; then
7911 ac_cv_prog_RANLIB="ranlib"
7912 break
7913 fi
7914 done
7915 IFS="$ac_save_ifs"
7916 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
7917fi
7918fi
698dcdb6 7919RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 7920if test -n "$RANLIB"; then
698dcdb6 7921 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 7922else
698dcdb6 7923 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7924fi
7925
7926
7927# Extract the first word of "ar", so it can be a program name with args.
7928set dummy ar; ac_word=$2
698dcdb6 7929echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1e6feb95 7930echo "configure:7931: checking for $ac_word" >&5
698dcdb6
VZ
7931if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
7932 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7933else
7934 if test -n "$AR"; then
7935 ac_cv_prog_AR="$AR" # Let the user override the test.
7936else
698dcdb6
VZ
7937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7938 ac_dummy="$PATH"
7939 for ac_dir in $ac_dummy; do
7940 test -z "$ac_dir" && ac_dir=.
7941 if test -f $ac_dir/$ac_word; then
7942 ac_cv_prog_AR="ar"
7943 break
7944 fi
7945 done
7946 IFS="$ac_save_ifs"
10f2d63a
VZ
7947 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
7948fi
7949fi
698dcdb6 7950AR="$ac_cv_prog_AR"
10f2d63a 7951if test -n "$AR"; then
698dcdb6 7952 echo "$ac_t""$AR" 1>&6
10f2d63a 7953else
698dcdb6 7954 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7955fi
7956
698dcdb6 7957
10f2d63a
VZ
7958# Find a good install program. We prefer a C program (faster),
7959# so one script is as good as another. But avoid the broken or
7960# incompatible versions:
7961# SysV /etc/install, /usr/sbin/install
7962# SunOS /usr/etc/install
7963# IRIX /sbin/install
7964# AIX /bin/install
7965# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7966# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7967# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7968# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 7969echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1e6feb95 7970echo "configure:7971: checking for a BSD compatible install" >&5
10f2d63a 7971if test -z "$INSTALL"; then
698dcdb6
VZ
7972if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
7973 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 7974else
698dcdb6 7975 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
7976 for ac_dir in $PATH; do
7977 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
7978 case "$ac_dir/" in
7979 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
7980 *)
7981 # OSF1 and SCO ODT 3.0 have their own names for install.
7982 # Don't use installbsd from OSF since it installs stuff as root
7983 # by default.
7984 for ac_prog in ginstall scoinst install; do
698dcdb6 7985 if test -f $ac_dir/$ac_prog; then
10f2d63a 7986 if test $ac_prog = install &&
698dcdb6 7987 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
7988 # AIX install. It has an incompatible calling convention.
7989 :
7990 else
7991 ac_cv_path_install="$ac_dir/$ac_prog -c"
7992 break 2
7993 fi
7994 fi
7995 done
7996 ;;
7997 esac
7998 done
698dcdb6 7999 IFS="$ac_save_IFS"
10f2d63a
VZ
8000
8001fi
8002 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8003 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8004 else
8005 # As a last resort, use the slow shell script. We don't cache a
8006 # path for INSTALL within a source directory, because that will
8007 # break other packages using the cache if that directory is
8008 # removed, or if the path is relative.
698dcdb6 8009 INSTALL="$ac_install_sh"
10f2d63a
VZ
8010 fi
8011fi
698dcdb6 8012echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8013
8014# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8015# It thinks the first close brace ends the variable substitution.
8016test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8017
698dcdb6 8018test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8019
8020test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8021
698dcdb6 8022
10f2d63a
VZ
8023# Extract the first word of "strip", so it can be a program name with args.
8024set dummy strip; ac_word=$2
698dcdb6 8025echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1e6feb95 8026echo "configure:8027: checking for $ac_word" >&5
698dcdb6
VZ
8027if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8028 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8029else
8030 if test -n "$STRIP"; then
8031 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8032else
698dcdb6
VZ
8033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8034 ac_dummy="$PATH"
8035 for ac_dir in $ac_dummy; do
8036 test -z "$ac_dir" && ac_dir=.
8037 if test -f $ac_dir/$ac_word; then
8038 ac_cv_prog_STRIP="strip"
8039 break
8040 fi
8041 done
8042 IFS="$ac_save_ifs"
10f2d63a
VZ
8043 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8044fi
8045fi
698dcdb6 8046STRIP="$ac_cv_prog_STRIP"
10f2d63a 8047if test -n "$STRIP"; then
698dcdb6 8048 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8049else
698dcdb6 8050 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8051fi
8052
698dcdb6
VZ
8053
8054echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
1e6feb95 8055echo "configure:8056: checking make for VPATH support" >&5
10f2d63a
VZ
8056cat - << EOF > confMake
8057check : file
8058 cp \$? \$@
8059 cp \$? final_file
8060EOF
8061
8062if test ! -d sub ; then
8063 mkdir sub
8064fi
8065echo dummy > sub/file
f6bcfd97 8066${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8067RESULT=$?
8068rm -f sub/file check final_file confMake
8069rmdir sub
8070if test "$RESULT" = 0; then
698dcdb6 8071 echo "$ac_t""yes" 1>&6
10f2d63a 8072else
698dcdb6
VZ
8073 echo "$ac_t""no" 1>&6
8074 { echo "configure: error:
1e487827
VS
8075You need a make-utility that is able to use the variable
8076VPATH correctly.
8077If your version of make does not support VPATH correctly,
8078please install GNU-make (possibly as gmake), and start
8079configure with the following command:
8080export MAKE=gmake; ./configure for sh-type shells
8081setenv MAKE gmake; ./configure for csh-type shells
8082Also please do remember to use gmake in this case every time
8083you are trying to compile.
698dcdb6 8084" 1>&2; exit 1; }
10f2d63a
VZ
8085fi
8086
8087for ac_prog in 'bison -y' byacc
8088do
698dcdb6 8089# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8090set dummy $ac_prog; ac_word=$2
698dcdb6 8091echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1e6feb95 8092echo "configure:8093: checking for $ac_word" >&5
698dcdb6
VZ
8093if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8094 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8095else
8096 if test -n "$YACC"; then
8097 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8098else
698dcdb6
VZ
8099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8100 ac_dummy="$PATH"
8101 for ac_dir in $ac_dummy; do
8102 test -z "$ac_dir" && ac_dir=.
8103 if test -f $ac_dir/$ac_word; then
8104 ac_cv_prog_YACC="$ac_prog"
8105 break
8106 fi
8107 done
8108 IFS="$ac_save_ifs"
10f2d63a
VZ
8109fi
8110fi
698dcdb6 8111YACC="$ac_cv_prog_YACC"
10f2d63a 8112if test -n "$YACC"; then
698dcdb6 8113 echo "$ac_t""$YACC" 1>&6
10f2d63a 8114else
698dcdb6 8115 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8116fi
8117
698dcdb6 8118test -n "$YACC" && break
10f2d63a
VZ
8119done
8120test -n "$YACC" || YACC="yacc"
8121
698dcdb6
VZ
8122
8123# Extract the first word of "flex", so it can be a program name with args.
8124set dummy flex; ac_word=$2
8125echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1e6feb95 8126echo "configure:8127: checking for $ac_word" >&5
698dcdb6
VZ
8127if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8128 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8129else
8130 if test -n "$LEX"; then
8131 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8132else
698dcdb6
VZ
8133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8134 ac_dummy="$PATH"
8135 for ac_dir in $ac_dummy; do
8136 test -z "$ac_dir" && ac_dir=.
8137 if test -f $ac_dir/$ac_word; then
8138 ac_cv_prog_LEX="flex"
8139 break
8140 fi
8141 done
8142 IFS="$ac_save_ifs"
8143 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8144fi
8145fi
698dcdb6 8146LEX="$ac_cv_prog_LEX"
10f2d63a 8147if test -n "$LEX"; then
698dcdb6 8148 echo "$ac_t""$LEX" 1>&6
10f2d63a 8149else
698dcdb6 8150 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8151fi
8152
8153if test -z "$LEXLIB"
8154then
698dcdb6
VZ
8155 case "$LEX" in
8156 flex*) ac_lib=fl ;;
8157 *) ac_lib=l ;;
8158 esac
8159 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1e6feb95 8160echo "configure:8161: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8161ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8162if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8163 echo $ac_n "(cached) $ac_c" 1>&6
8164else
8165 ac_save_LIBS="$LIBS"
8166LIBS="-l$ac_lib $LIBS"
8167cat > conftest.$ac_ext <<EOF
1e6feb95 8168#line 8169 "configure"
10f2d63a
VZ
8169#include "confdefs.h"
8170/* Override any gcc2 internal prototype to avoid an error. */
8171/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8172 builtin and then its argument prototype would still apply. */
8173char yywrap();
10f2d63a 8174
698dcdb6
VZ
8175int main() {
8176yywrap()
8177; return 0; }
8178EOF
1e6feb95 8179if { (eval echo configure:8180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8180 rm -rf conftest*
8181 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8182else
698dcdb6
VZ
8183 echo "configure: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8185 rm -rf conftest*
8186 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8187fi
698dcdb6
VZ
8188rm -f conftest*
8189LIBS="$ac_save_LIBS"
8190
10f2d63a 8191fi
698dcdb6
VZ
8192if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8193 echo "$ac_t""yes" 1>&6
8194 LEXLIB="-l$ac_lib"
8195else
8196 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8197fi
8198
8199fi
8200
8201
698dcdb6 8202echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1e6feb95 8203echo "configure:8204: checking whether ln -s works" >&5
698dcdb6
VZ
8204if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8205 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8206else
698dcdb6
VZ
8207 rm -f conftestdata
8208if ln -s X conftestdata 2>/dev/null
8209then
8210 rm -f conftestdata
8211 ac_cv_prog_LN_S="ln -s"
10f2d63a 8212else
698dcdb6 8213 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8214fi
8215fi
698dcdb6
VZ
8216LN_S="$ac_cv_prog_LN_S"
8217if test "$ac_cv_prog_LN_S" = "ln -s"; then
8218 echo "$ac_t""yes" 1>&6
10f2d63a 8219else
698dcdb6 8220 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8221fi
8222
8223
8224
8225SEARCH_INCLUDE="\
8226 /usr/local/include \
8227 \
8228 /usr/Motif-1.2/include \
8229 /usr/Motif-2.1/include \
8230 \
8231 /usr/include/Motif1.2 \
8232 /opt/xpm/include/X11 \
8233 /opt/GBxpm/include/ \
8234 /opt/GBxpm/X11/include/ \
8235 \
8236 /usr/Motif1.2/include \
8237 /usr/dt/include \
afc31813
VZ
8238 /usr/openwin/include \
8239 \
10f2d63a
VZ
8240 /usr/include/Xm \
8241 \
8242 /usr/X11R6/include \
afc31813 8243 /usr/X11R6.4/include \
10f2d63a
VZ
8244 /usr/X11R5/include \
8245 /usr/X11R4/include \
8246 \
10f2d63a
VZ
8247 /usr/include/X11R6 \
8248 /usr/include/X11R5 \
8249 /usr/include/X11R4 \
8250 \
8251 /usr/local/X11R6/include \
8252 /usr/local/X11R5/include \
8253 /usr/local/X11R4/include \
8254 \
8255 /usr/local/include/X11R6 \
8256 /usr/local/include/X11R5 \
8257 /usr/local/include/X11R4 \
8258 \
8259 /usr/X11/include \
8260 /usr/include/X11 \
8261 /usr/local/X11/include \
8262 /usr/local/include/X11 \
8263 \
8264 /usr/X386/include \
8265 /usr/x386/include \
8266 /usr/XFree86/include/X11 \
8267 \
cf27ef00 8268 X:/XFree86/include \
ec14dd32
VZ
8269 X:/XFree86/include/X11 \
8270 \
10f2d63a
VZ
8271 /usr/include/gtk \
8272 /usr/local/include/gtk \
8273 /usr/include/glib \
8274 /usr/local/include/glib \
8275 \
8276 /usr/include/qt \
8277 /usr/local/include/qt \
8278 \
8279 /usr/include/windows \
8280 /usr/include/wine \
8281 /usr/local/include/wine \
8282 \
8283 /usr/unsupported/include \
8284 /usr/athena/include \
8285 /usr/local/x11r5/include \
8286 /usr/lpp/Xamples/include \
8287 \
10f2d63a 8288 /usr/openwin/share/include \
928b5c08
VZ
8289 \
8290 /usr/include"
10f2d63a
VZ
8291
8292SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8293
698dcdb6
VZ
8294
8295cat > confcache <<\EOF
10f2d63a
VZ
8296# This file is a shell script that caches the results of configure
8297# tests run on this system so they can be shared between configure
698dcdb6
VZ
8298# scripts and configure runs. It is not useful on other systems.
8299# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8300#
698dcdb6
VZ
8301# By default, configure uses ./config.cache as the cache file,
8302# creating it if it does not exist already. You can give configure
8303# the --cache-file=FILE option to use a different cache file; that is
8304# what configure does when it calls configure scripts in
8305# subdirectories, so they share the cache.
8306# Giving --cache-file=/dev/null disables caching, for debugging configure.
8307# config.status only pays attention to the cache file if you give it the
8308# --recheck option to rerun configure.
10f2d63a 8309#
698dcdb6 8310EOF
10f2d63a
VZ
8311# The following way of writing the cache mishandles newlines in values,
8312# but we know of no workaround that is simple, portable, and efficient.
8313# So, don't put newlines in cache variables' values.
8314# Ultrix sh set writes to stderr and can't be redirected directly,
8315# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8316(set) 2>&1 |
8317 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8318 *ac_space=\ *)
8319 # `set' does not quote correctly, so add quotes (double-quote substitution
8320 # turns \\\\ into \\, and sed turns \\ into \).
8321 sed -n \
8322 -e "s/'/'\\\\''/g" \
8323 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8324 ;;
8325 *)
8326 # `set' quotes correctly as required by POSIX, so do not add quotes.
8327 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8328 ;;
8329 esac >> confcache
8330if cmp -s $cache_file confcache; then
8331 :
8332else
10f2d63a 8333 if test -w $cache_file; then
698dcdb6
VZ
8334 echo "updating cache $cache_file"
8335 cat confcache > $cache_file
10f2d63a
VZ
8336 else
8337 echo "not updating unwritable cache $cache_file"
8338 fi
8339fi
8340rm -f confcache
8341
698dcdb6
VZ
8342
8343
dad6c0ea
VZ
8344AFMINSTALL=
8345
10f2d63a 8346if test "$wxUSE_GUI" = "yes"; then
1e6feb95 8347 USE_GUI=1
10f2d63a 8348
1e6feb95
VZ
8349 TOOLKIT=
8350 TOOLKIT_INCLUDE=
10f2d63a 8351
1e6feb95
VZ
8352 GUI_TK_LIBRARY=
8353 GUI_TK_LINK=
10f2d63a 8354
1e6feb95
VZ
8355 WXGTK12=
8356 WXGTK127=
8357 WXGTK20=
10f2d63a 8358
1e6feb95 8359 WXWINE=
10f2d63a 8360
1e6feb95
VZ
8361 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8362 if test "$cross_compiling" = "yes" ; then
8363 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
8364 else
8365 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
8366echo "configure:8367: checking for Windows headers" >&5
8367
10f2d63a
VZ
8368ac_find_includes=
8369for ac_dir in $SEARCH_INCLUDE;
8370 do
8371 if test -f "$ac_dir/windows.h"; then
8372 ac_find_includes=$ac_dir
8373 break
8374 fi
8375 done
8376
1e6feb95
VZ
8377 if test "$ac_find_includes" != "" ; then
8378 echo "$ac_t""found $ac_find_includes" 1>&6
8379 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
8380 else
8381 echo "$ac_t""no" 1>&6
8382 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8383 fi
10f2d63a 8384 fi
10f2d63a 8385
1e6feb95
VZ
8386 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8387 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
f6bcfd97 8388
1e6feb95
VZ
8389 if test "$wxUSE_ODBC" = "yes" ; then
8390 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8391 fi
10f2d63a 8392
1e6feb95
VZ
8393 if test "$wxUSE_MINGW" = 1; then
8394 LDFLAGS="$LDFLAGS -mwindows"
8395 fi
32832908 8396
1e6feb95
VZ
8397 TOOLKIT=MSW
8398 GUIDIST=MSW_DIST
32832908 8399
1e6feb95
VZ
8400 RCINCSWITCH="--include-dir"
8401 RCDEFSWITCH="--define"
8402 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8403 RCINPUTSWITCH="-i"
8404 RCOUTPUTSWITCH="-o"
8405 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
32832908 8406
1e6feb95
VZ
8407 RESPROGRAM="\$(RES_PROGRAM)"
8408 fi
10f2d63a 8409
1e6feb95
VZ
8410 if test "$wxUSE_GTK" = 1; then
8411 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
8412if test "${with_gtk_prefix+set}" = set; then
8413 withval="$with_gtk_prefix"
8414 gtk_config_prefix="$withval"
8415else
8416 gtk_config_prefix=""
698dcdb6 8417fi
6f72b082
OK
8418
8419# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8420if test "${with_gtk_exec_prefix+set}" = set; then
8421 withval="$with_gtk_exec_prefix"
8422 gtk_config_exec_prefix="$withval"
8423else
8424 gtk_config_exec_prefix=""
698dcdb6
VZ
8425fi
8426
6f72b082
OK
8427# Check whether --enable-gtktest or --disable-gtktest was given.
8428if test "${enable_gtktest+set}" = set; then
8429 enableval="$enable_gtktest"
698dcdb6 8430 :
6f72b082
OK
8431else
8432 enable_gtktest=yes
698dcdb6
VZ
8433fi
8434
6f72b082
OK
8435
8436 for module in . gthread
8437 do
8438 case "$module" in
698dcdb6 8439 gthread)
6f72b082
OK
8440 gtk_config_args="$gtk_config_args gthread"
8441 ;;
8442 esac
8443 done
8444
8445 if test x$gtk_config_exec_prefix != x ; then
8446 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8447 if test x${GTK_CONFIG_2_0+set} != xset ; then
8448 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8449 fi
8450 fi
8451 if test x$gtk_config_prefix != x ; then
8452 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8453 if test x${GTK_CONFIG_2_0+set} != xset ; then
8454 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8455 fi
8456 fi
8457
8458 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8459set dummy gtk-config-2.0; ac_word=$2
698dcdb6 8460echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1e6feb95 8461echo "configure:8462: checking for $ac_word" >&5
698dcdb6
VZ
8462if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8463 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 8464else
698dcdb6
VZ
8465 case "$GTK_CONFIG_2_0" in
8466 /*)
6f72b082
OK
8467 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8468 ;;
698dcdb6
VZ
8469 ?:/*)
8470 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8471 ;;
6f72b082 8472 *)
698dcdb6
VZ
8473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8474 ac_dummy="$PATH"
8475 for ac_dir in $ac_dummy; do
8476 test -z "$ac_dir" && ac_dir=.
8477 if test -f $ac_dir/$ac_word; then
8478 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8479 break
8480 fi
8481 done
8482 IFS="$ac_save_ifs"
6f72b082
OK
8483 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8484 ;;
8485esac
8486fi
698dcdb6 8487GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 8488if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 8489 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 8490else
698dcdb6 8491 echo "$ac_t""no" 1>&6
6f72b082
OK
8492fi
8493
8494 min_gtk_version=1.3.1
698dcdb6 8495 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1e6feb95 8496echo "configure:8497: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
8497 no_gtk=""
8498 if test "$GTK_CONFIG_2_0" = "no" ; then
8499 no_gtk=yes
8500 else
8501 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8502 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8503 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8504 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8505 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8506 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8507 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8508 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8509 if test "x$enable_gtktest" = "xyes" ; then
8510 ac_save_CFLAGS="$CFLAGS"
8511 ac_save_LIBS="$LIBS"
8512 CFLAGS="$CFLAGS $GTK_CFLAGS"
8513 LIBS="$GTK_LIBS $LIBS"
8514 rm -f conf.gtktest
8515 if test "$cross_compiling" = yes; then
8516 echo $ac_n "cross compiling; assumed OK... $ac_c"
8517else
698dcdb6 8518 cat > conftest.$ac_ext <<EOF
1e6feb95 8519#line 8520 "configure"
6f72b082
OK
8520#include "confdefs.h"
8521
8522#include <gtk/gtk.h>
8523#include <stdio.h>
8524#include <stdlib.h>
8525
698dcdb6 8526int
6f72b082
OK
8527main ()
8528{
8529 int major, minor, micro;
8530 char *tmp_version;
8531
8532 system ("touch conf.gtktest");
8533
8534 /* HP/UX 9 (%@#!) writes to sscanf strings */
8535 tmp_version = g_strdup("$min_gtk_version");
8536 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8537 printf("%s, bad version string\n", "$min_gtk_version");
8538 exit(1);
8539 }
8540
8541 if ((gtk_major_version != $gtk_config_major_version) ||
8542 (gtk_minor_version != $gtk_config_minor_version) ||
8543 (gtk_micro_version != $gtk_config_micro_version))
8544 {
698dcdb6 8545 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
8546 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8547 gtk_major_version, gtk_minor_version, gtk_micro_version);
8548 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8549 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8550 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8551 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8552 printf("*** required on your system.\n");
8553 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8554 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8555 printf("*** before re-running configure\n");
698dcdb6 8556 }
6f72b082
OK
8557#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8558 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8559 (gtk_minor_version != GTK_MINOR_VERSION) ||
8560 (gtk_micro_version != GTK_MICRO_VERSION))
8561 {
8562 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8563 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
8564 printf("*** library (version %d.%d.%d)\n",
8565 gtk_major_version, gtk_minor_version, gtk_micro_version);
8566 }
8567#endif /* defined (GTK_MAJOR_VERSION) ... */
8568 else
8569 {
8570 if ((gtk_major_version > major) ||
8571 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8572 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8573 {
8574 return 0;
8575 }
8576 else
8577 {
8578 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8579 gtk_major_version, gtk_minor_version, gtk_micro_version);
8580 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8581 major, minor, micro);
8582 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8583 printf("***\n");
8584 printf("*** If you have already installed a sufficiently new version, this error\n");
8585 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
8586 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8587 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
8588 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
8589 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8590 printf("*** so that the correct libraries are found at run-time))\n");
8591 }
8592 }
8593 return 1;
8594}
8595
698dcdb6 8596EOF
1e6feb95 8597if { (eval echo configure:8598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 8598then
6f72b082
OK
8599 :
8600else
698dcdb6
VZ
8601 echo "configure: failed program was:" >&5
8602 cat conftest.$ac_ext >&5
8603 rm -fr conftest*
8604 no_gtk=yes
6f72b082 8605fi
698dcdb6 8606rm -fr conftest*
6f72b082 8607fi
698dcdb6 8608
6f72b082
OK
8609 CFLAGS="$ac_save_CFLAGS"
8610 LIBS="$ac_save_LIBS"
8611 fi
8612 fi
8613 if test "x$no_gtk" = x ; then
698dcdb6
VZ
8614 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8615 WXGTK20=1
6f72b082 8616 else
698dcdb6 8617 echo "$ac_t""no" 1>&6
6f72b082
OK
8618 if test "$GTK_CONFIG_2_0" = "no" ; then
8619 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
8620 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8621 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
8622 echo "*** full path to gtk-config-2.0."
8623 else
8624 if test -f conf.gtktest ; then
8625 :
8626 else
8627 echo "*** Could not run GTK test program, checking why..."
8628 CFLAGS="$CFLAGS $GTK_CFLAGS"
8629 LIBS="$LIBS $GTK_LIBS"
698dcdb6 8630 cat > conftest.$ac_ext <<EOF
1e6feb95 8631#line 8632 "configure"
6f72b082
OK
8632#include "confdefs.h"
8633
8634#include <gtk/gtk.h>
8635#include <stdio.h>
8636
698dcdb6
VZ
8637int main() {
8638 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8639; return 0; }
8640EOF
1e6feb95 8641if { (eval echo configure:8642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 8642 rm -rf conftest*
6f72b082
OK
8643 echo "*** The test program compiled, but did not run. This usually means"
8644 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8645 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8646 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8647 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8648 echo "*** is required on your system"
8649 echo "***"
8650 echo "*** If you have an old version installed, it is best to remove it, although"
8651 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8652 echo "***"
8653 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8654 echo "*** came with the system with the command"
8655 echo "***"
698dcdb6 8656 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 8657else
698dcdb6
VZ
8658 echo "configure: failed program was:" >&5
8659 cat conftest.$ac_ext >&5
8660 rm -rf conftest*
8661 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
8662 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8663 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 8664 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 8665fi
698dcdb6 8666rm -f conftest*
6f72b082
OK
8667 CFLAGS="$ac_save_CFLAGS"
8668 LIBS="$ac_save_LIBS"
8669 fi
8670 fi
8671 GTK_CFLAGS=""
8672 GTK_LIBS=""
698dcdb6 8673
1e6feb95 8674
10f2d63a
VZ
8675 if test x$gtk_config_exec_prefix != x ; then
8676 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8677 if test x${GTK_CONFIG+set} != xset ; then
8678 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8679 fi
8680 fi
8681 if test x$gtk_config_prefix != x ; then
8682 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8683 if test x${GTK_CONFIG+set} != xset ; then
8684 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8685 fi
8686 fi
8687
8688 # Extract the first word of "gtk-config", so it can be a program name with args.
8689set dummy gtk-config; ac_word=$2
698dcdb6 8690echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1e6feb95 8691echo "configure:8692: checking for $ac_word" >&5
698dcdb6
VZ
8692if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8693 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 8694else
698dcdb6
VZ
8695 case "$GTK_CONFIG" in
8696 /*)
f6bcfd97
BP
8697 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8698 ;;
698dcdb6
VZ
8699 ?:/*)
8700 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8701 ;;
f6bcfd97 8702 *)
698dcdb6
VZ
8703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8704 ac_dummy="$PATH"
8705 for ac_dir in $ac_dummy; do
8706 test -z "$ac_dir" && ac_dir=.
8707 if test -f $ac_dir/$ac_word; then
8708 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8709 break
8710 fi
8711 done
8712 IFS="$ac_save_ifs"
f6bcfd97
BP
8713 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8714 ;;
8715esac
8716fi
698dcdb6 8717GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 8718if test -n "$GTK_CONFIG"; then
698dcdb6 8719 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 8720else
698dcdb6 8721 echo "$ac_t""no" 1>&6
f6bcfd97
BP
8722fi
8723
8724 min_gtk_version=1.2.7
698dcdb6 8725 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1e6feb95 8726echo "configure:8727: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
8727 no_gtk=""
8728 if test "$GTK_CONFIG" != "no" ; then
8729 GTK_CFLAGS=`$GTK_CONFIG --cflags`
8730 GTK_LIBS=`$GTK_CONFIG --libs gthread`
8731 ac_save_CFLAGS="$CFLAGS"
8732 ac_save_LIBS="$LIBS"
8733 CFLAGS="$CFLAGS $GTK_CFLAGS"
8734 LIBS="$LIBS $GTK_LIBS"
8735 if test "$cross_compiling" = yes; then
8736 echo $ac_n "cross compiling; assumed OK... $ac_c"
8737else
698dcdb6 8738 cat > conftest.$ac_ext <<EOF
1e6feb95 8739#line 8740 "configure"
f6bcfd97
BP
8740#include "confdefs.h"
8741
8742#include <gtk/gtk.h>
8743#include <gtk/gtkfeatures.h>
8744#include <stdio.h>
8745#include <stdlib.h>
8746
8747int
8748main ()
8749{
8750 int major, minor, micro;
8751
8752 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8753 printf("%s, bad version string\n", "$min_gtk_version");
8754 exit(1);
8755 }
8756
8757 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8758 (GTK_MINOR_VERSION != gtk_minor_version) ||
8759 (GTK_MICRO_VERSION != gtk_micro_version)) {
8760 printf("Headers vs. library version mismatch!\n");
8761 exit(1);
8762 }
8763
8764 if (gtk_minor_version == 1) return FALSE;
8765
8766 return !((gtk_major_version > major) ||
8767 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8768 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8769}
8770
698dcdb6 8771EOF
1e6feb95 8772if { (eval echo configure:8773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 8773then
f6bcfd97
BP
8774 :
8775else
698dcdb6
VZ
8776 echo "configure: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8778 rm -fr conftest*
8779 no_gtk=yes
f6bcfd97 8780fi
698dcdb6 8781rm -fr conftest*
f6bcfd97 8782fi
698dcdb6 8783
f6bcfd97
BP
8784 CFLAGS="$ac_save_CFLAGS"
8785 LIBS="$ac_save_LIBS"
8786 else
8787 no_gtk=yes
8788 fi
8789 if test "x$no_gtk" = x ; then
698dcdb6 8790 echo "$ac_t""yes" 1>&6
f6bcfd97
BP
8791 WXGTK127=1
8792 else
698dcdb6 8793 echo "$ac_t""no" 1>&6
f6bcfd97
BP
8794 GTK_CFLAGS=""
8795 GTK_LIBS=""
8796 :
8797 fi
698dcdb6
VZ
8798
8799
f6bcfd97 8800
1e6feb95 8801
f6bcfd97
BP
8802 if test x$gtk_config_exec_prefix != x ; then
8803 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8804 if test x${GTK_CONFIG+set} != xset ; then
8805 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8806 fi
8807 fi
8808 if test x$gtk_config_prefix != x ; then
8809 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8810 if test x${GTK_CONFIG+set} != xset ; then
8811 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8812 fi
8813 fi
8814
8815 # Extract the first word of "gtk-config", so it can be a program name with args.
8816set dummy gtk-config; ac_word=$2
698dcdb6 8817echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1e6feb95 8818echo "configure:8819: checking for $ac_word" >&5
698dcdb6
VZ
8819if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8820 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8821else
698dcdb6
VZ
8822 case "$GTK_CONFIG" in
8823 /*)
10f2d63a
VZ
8824 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8825 ;;
698dcdb6
VZ
8826 ?:/*)
8827 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8828 ;;
10f2d63a 8829 *)
698dcdb6
VZ
8830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8831 ac_dummy="$PATH"
8832 for ac_dir in $ac_dummy; do
8833 test -z "$ac_dir" && ac_dir=.
8834 if test -f $ac_dir/$ac_word; then
8835 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8836 break
8837 fi
8838 done
8839 IFS="$ac_save_ifs"
10f2d63a
VZ
8840 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8841 ;;
8842esac
8843fi
698dcdb6 8844GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 8845if test -n "$GTK_CONFIG"; then
698dcdb6 8846 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 8847else
698dcdb6 8848 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8849fi
8850
04165bec 8851 min_gtk_version=1.2.3
698dcdb6 8852 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1e6feb95 8853echo "configure:8854: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
8854 no_gtk=""
8855 if test "$GTK_CONFIG" != "no" ; then
8856 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 8857 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
8858 ac_save_CFLAGS="$CFLAGS"
8859 ac_save_LIBS="$LIBS"
8860 CFLAGS="$CFLAGS $GTK_CFLAGS"
8861 LIBS="$LIBS $GTK_LIBS"
8862 if test "$cross_compiling" = yes; then
8863 echo $ac_n "cross compiling; assumed OK... $ac_c"
8864else
698dcdb6 8865 cat > conftest.$ac_ext <<EOF
1e6feb95 8866#line 8867 "configure"
10f2d63a
VZ
8867#include "confdefs.h"
8868
8869#include <gtk/gtk.h>
f49f2b0c 8870#include <gtk/gtkfeatures.h>
10f2d63a 8871#include <stdio.h>
32832908 8872#include <stdlib.h>
10f2d63a
VZ
8873
8874int
8875main ()
8876{
8877 int major, minor, micro;
8878
8879 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8880 printf("%s, bad version string\n", "$min_gtk_version");
8881 exit(1);
8882 }
8883
f49f2b0c
RR
8884 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8885 (GTK_MINOR_VERSION != gtk_minor_version) ||
8886 (GTK_MICRO_VERSION != gtk_micro_version)) {
8887 printf("Headers vs. library version mismatch!\n");
8888 exit(1);
8889 }
8890
10f2d63a
VZ
8891 if (gtk_minor_version == 1) return FALSE;
8892
8893 return !((gtk_major_version > major) ||
8894 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8895 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8896}
8897
698dcdb6 8898EOF
1e6feb95 8899if { (eval echo configure:8900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 8900then
10f2d63a
VZ
8901 :
8902else
698dcdb6
VZ
8903 echo "configure: failed program was:" >&5
8904 cat conftest.$ac_ext >&5
8905 rm -fr conftest*
8906 no_gtk=yes
10f2d63a 8907fi
698dcdb6 8908rm -fr conftest*
10f2d63a 8909fi
698dcdb6 8910
10f2d63a
VZ
8911 CFLAGS="$ac_save_CFLAGS"
8912 LIBS="$ac_save_LIBS"
8913 else
8914 no_gtk=yes
8915 fi
8916 if test "x$no_gtk" = x ; then
698dcdb6 8917 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
8918 WXGTK12=1
8919 else
698dcdb6 8920 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8921 GTK_CFLAGS=""
8922 GTK_LIBS=""
7e99ad86 8923 :
10f2d63a 8924 fi
698dcdb6
VZ
8925
8926
10f2d63a 8927
1e6feb95 8928
6f72b082 8929 fi
698dcdb6
VZ
8930
8931
1e487827 8932 rm -f conf.gtktest
703e0a69 8933
698dcdb6 8934
1e6feb95
VZ
8935 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
8936 { echo "configure: error:
8937 Please check that gtk-config is in path, the directory
8938 where GTK+ libraries are installed (returned by
8939 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
8940 equivalent variable and GTK+ is version 1.2.3 or above.
8941 " 1>&2; exit 1; }
8942 fi
698dcdb6 8943
1e6feb95 8944 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a 8945
1e6feb95
VZ
8946
8947 GUI_TK_LIBRARY="$GTK_LIBS"
698dcdb6 8948
1e6feb95
VZ
8949
8950 AFMINSTALL=afminstall
8951 TOOLKIT=GTK
8952 GUIDIST=GTK_DIST
7ec2881a 8953
1e6feb95
VZ
8954 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
8955echo "configure:8956: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
8956ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
8957if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8958 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 8959else
698dcdb6 8960 ac_save_LIBS="$LIBS"
7ec2881a 8961LIBS="-lgdk $LIBS"
698dcdb6 8962cat > conftest.$ac_ext <<EOF
1e6feb95 8963#line 8964 "configure"
7ec2881a
RR
8964#include "confdefs.h"
8965/* Override any gcc2 internal prototype to avoid an error. */
8966/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8967 builtin and then its argument prototype would still apply. */
8968char gdk_im_open();
8969
8970int main() {
8971gdk_im_open()
8972; return 0; }
8973EOF
1e6feb95 8974if { (eval echo configure:8975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8975 rm -rf conftest*
8976 eval "ac_cv_lib_$ac_lib_var=yes"
8977else
8978 echo "configure: failed program was:" >&5
8979 cat conftest.$ac_ext >&5
8980 rm -rf conftest*
8981 eval "ac_cv_lib_$ac_lib_var=no"
8982fi
8983rm -f conftest*
8984LIBS="$ac_save_LIBS"
8985
8986fi
8987if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8988 echo "$ac_t""yes" 1>&6
8989 cat >> confdefs.h <<\EOF
7ec2881a
RR
8990#define HAVE_XIM 1
8991EOF
8992
698dcdb6
VZ
8993else
8994 echo "$ac_t""no" 1>&6
7ec2881a
RR
8995fi
8996
1e6feb95 8997 fi
10f2d63a 8998
1e6feb95
VZ
8999 if test "$wxUSE_MGL" = 1; then
9000
9001 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9002echo "configure:9003: checking for SciTech MGL library" >&5
9003 if test "x$MGL_ROOT" = x ; then
9004 echo "$ac_t""not found" 1>&6
9005 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9006 else
9007 echo "$ac_t""$MGL_ROOT" 1>&6
9008 fi
9009
9010 MGL_OS=linux/gcc/glibc
9011 MGL_LIB_TYPE=""
9012
9013 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9014 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9015 MGL_LIB_TYPE=debug
9016 fi
9017 fi
9018 if test "x$MGL_LIB_TYPE" = x ; then
9019 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9020 MGL_LIB_TYPE=release
9021 else
9022 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9023 fi
9024 fi
9025
9026 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9027 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9028
9029 AFMINSTALL=afminstall
9030 TOOLKIT=MGL
9031 GUIDIST=MGL_DIST
9032 fi
9033
9034 if test "$wxUSE_WINE" = 1; then
9035 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9036echo "configure:9037: checking for WINE includes" >&5
9037
10f2d63a
VZ
9038ac_find_includes=
9039for ac_dir in $SEARCH_INCLUDE;
9040 do
9041 if test -f "$ac_dir/windows.h"; then
9042 ac_find_includes=$ac_dir
9043 break
9044 fi
9045 done
9046
1e6feb95
VZ
9047 if test "$ac_find_includes" != "" ; then
9048 echo "$ac_t""found $ac_find_includes" 1>&6
9049 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9050 else
9051 echo "$ac_t""no" 1>&6
9052 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9053 fi
10f2d63a 9054
1e6feb95
VZ
9055 XPM_LINK=""
9056 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9057echo "configure:9058: checking for Xpm library" >&5
9058
10f2d63a
VZ
9059ac_find_libraries=
9060for ac_dir in $SEARCH_LIB;
9061 do
9062 for ac_extension in a so sl; do
9063 if test -f "$ac_dir/libXpm.$ac_extension"; then
9064 ac_find_libraries=$ac_dir
9065 break 2
9066 fi
9067 done
9068 done
9069
1e6feb95
VZ
9070 if test "$ac_find_libraries" != "" ; then
9071 GUI_TK_LIBRARY="-L$ac_find_libraries"
9072 XPM_LINK="-lXpm"
9073 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9074#define wxHAVE_LIB_XPM 1
9075EOF
9076
1e6feb95
VZ
9077 echo "$ac_t""found at $ac_find_libraries" 1>&6
9078 else
9079 echo "$ac_t""no" 1>&6
9080 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9081 fi
10f2d63a 9082
1e6feb95
VZ
9083 MESA_LINK=""
9084 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9085echo "configure:9086: checking for Mesa library" >&5
9086
10f2d63a
VZ
9087ac_find_libraries=
9088for ac_dir in $SEARCH_LIB;
9089 do
9090 for ac_extension in a so sl; do
9091 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9092 ac_find_libraries=$ac_dir
9093 break 2
9094 fi
9095 done
9096 done
9097
1e6feb95
VZ
9098 if test "$ac_find_libraries" != "" ; then
9099 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9100 MESA_LINK="-lMesaGL"
9101 echo "$ac_t""found at $ac_find_libraries" 1>&6
9102 else
9103 { echo "configure: error: no" 1>&2; exit 1; }
9104 fi
10f2d63a 9105
1e6feb95
VZ
9106 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9107 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9108 WXWINE=1
9109 TOOLKIT=MSW
9110 GUIDIST=MSW_DIST
9111 fi
698dcdb6 9112
1e6feb95
VZ
9113
9114 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9115# paths, otherwise set no_x=yes.
9116# Uses ac_ vars as temps to allow command line to override cache and checks.
9117# --without-x overrides everything else, but does not touch the cache.
9118echo $ac_n "checking for X""... $ac_c" 1>&6
1e6feb95 9119echo "configure:9120: checking for X" >&5
ab9b9eab
VZ
9120
9121# Check whether --with-x or --without-x was given.
9122if test "${with_x+set}" = set; then
9123 withval="$with_x"
698dcdb6
VZ
9124 :
9125fi
ba337fe7 9126
ab9b9eab
VZ
9127# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9128if test "x$with_x" = xno; then
9129 # The user explicitly disabled X.
9130 have_x=disabled
9131else
9132 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9133 # Both variables are already set.
9134 have_x=yes
9135 else
698dcdb6
VZ
9136if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9137 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9138else
9139 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9140ac_x_includes=NO ac_x_libraries=NO
9141rm -fr conftestdir
9142if mkdir conftestdir; then
9143 cd conftestdir
ab9b9eab 9144 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9145 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9146acfindx:
9147 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9148EOF
9149 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9150 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9151 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9152 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9153 for ac_extension in a so sl; do
ab9b9eab 9154 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9155 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9156 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9157 fi
9158 done
ab9b9eab
VZ
9159 # Screen out bogus values from the imake configuration. They are
9160 # bogus both because they are the default anyway, and because
9161 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9162 case "$ac_im_incroot" in
ab9b9eab 9163 /usr/include) ;;
698dcdb6 9164 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9165 esac
698dcdb6 9166 case "$ac_im_usrlibdir" in
ab9b9eab 9167 /usr/lib | /lib) ;;
698dcdb6 9168 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9169 esac
ba337fe7 9170 fi
ab9b9eab 9171 cd ..
698dcdb6 9172 rm -fr conftestdir
ab9b9eab 9173fi
10f2d63a 9174
698dcdb6
VZ
9175if test "$ac_x_includes" = NO; then
9176 # Guess where to find include files, by looking for this one X11 .h file.
9177 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9178
ab9b9eab 9179 # First, try using that file with no special directory specified.
698dcdb6 9180cat > conftest.$ac_ext <<EOF
1e6feb95 9181#line 9182 "configure"
ab9b9eab 9182#include "confdefs.h"
698dcdb6
VZ
9183#include <$x_direct_test_include>
9184EOF
9185ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 9186{ (eval echo configure:9187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9187ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9188if test -z "$ac_err"; then
9189 rm -rf conftest*
ab9b9eab
VZ
9190 # We can compile using X headers with no special include directory.
9191ac_x_includes=
9192else
698dcdb6
VZ
9193 echo "$ac_err" >&5
9194 echo "configure: failed program was:" >&5
ab9b9eab 9195 cat conftest.$ac_ext >&5
698dcdb6
VZ
9196 rm -rf conftest*
9197 # Look for the header file in a standard set of common directories.
9198# Check X11 before X11Rn because it is often a symlink to the current release.
9199 for ac_dir in \
9200 /usr/X11/include \
9201 /usr/X11R6/include \
9202 /usr/X11R5/include \
9203 /usr/X11R4/include \
9204 \
9205 /usr/include/X11 \
9206 /usr/include/X11R6 \
9207 /usr/include/X11R5 \
9208 /usr/include/X11R4 \
9209 \
9210 /usr/local/X11/include \
9211 /usr/local/X11R6/include \
9212 /usr/local/X11R5/include \
9213 /usr/local/X11R4/include \
9214 \
9215 /usr/local/include/X11 \
9216 /usr/local/include/X11R6 \
9217 /usr/local/include/X11R5 \
9218 /usr/local/include/X11R4 \
9219 \
9220 /usr/X386/include \
9221 /usr/x386/include \
9222 /usr/XFree86/include/X11 \
9223 \
9224 /usr/include \
9225 /usr/local/include \
9226 /usr/unsupported/include \
9227 /usr/athena/include \
9228 /usr/local/x11r5/include \
9229 /usr/lpp/Xamples/include \
9230 \
9231 /usr/openwin/include \
9232 /usr/openwin/share/include \
9233 ; \
9234 do
9235 if test -r "$ac_dir/$x_direct_test_include"; then
9236 ac_x_includes=$ac_dir
9237 break
9238 fi
9239 done
ab9b9eab 9240fi
698dcdb6
VZ
9241rm -f conftest*
9242fi # $ac_x_includes = NO
10f2d63a 9243
698dcdb6 9244if test "$ac_x_libraries" = NO; then
ab9b9eab 9245 # Check for the libraries.
698dcdb6
VZ
9246
9247 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9248 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9249
ab9b9eab
VZ
9250 # See if we find them without any special options.
9251 # Don't add to $LIBS permanently.
698dcdb6
VZ
9252 ac_save_LIBS="$LIBS"
9253 LIBS="-l$x_direct_test_library $LIBS"
9254cat > conftest.$ac_ext <<EOF
1e6feb95 9255#line 9256 "configure"
ab9b9eab 9256#include "confdefs.h"
698dcdb6
VZ
9257
9258int main() {
9259${x_direct_test_function}()
9260; return 0; }
9261EOF
1e6feb95 9262if { (eval echo configure:9263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9263 rm -rf conftest*
9264 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
9265# We can link X programs with no special library path.
9266ac_x_libraries=
9267else
698dcdb6
VZ
9268 echo "configure: failed program was:" >&5
9269 cat conftest.$ac_ext >&5
9270 rm -rf conftest*
9271 LIBS="$ac_save_LIBS"
9272# First see if replacing the include by lib works.
9273# Check X11 before X11Rn because it is often a symlink to the current release.
9274for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9275 /usr/X11/lib \
9276 /usr/X11R6/lib \
9277 /usr/X11R5/lib \
9278 /usr/X11R4/lib \
9279 \
9280 /usr/lib/X11 \
9281 /usr/lib/X11R6 \
9282 /usr/lib/X11R5 \
9283 /usr/lib/X11R4 \
9284 \
9285 /usr/local/X11/lib \
9286 /usr/local/X11R6/lib \
9287 /usr/local/X11R5/lib \
9288 /usr/local/X11R4/lib \
9289 \
9290 /usr/local/lib/X11 \
9291 /usr/local/lib/X11R6 \
9292 /usr/local/lib/X11R5 \
9293 /usr/local/lib/X11R4 \
9294 \
9295 /usr/X386/lib \
9296 /usr/x386/lib \
9297 /usr/XFree86/lib/X11 \
9298 \
9299 /usr/lib \
9300 /usr/local/lib \
9301 /usr/unsupported/lib \
9302 /usr/athena/lib \
9303 /usr/local/x11r5/lib \
9304 /usr/lpp/Xamples/lib \
9305 /lib/usr/lib/X11 \
9306 \
9307 /usr/openwin/lib \
9308 /usr/openwin/share/lib \
9309 ; \
ab9b9eab
VZ
9310do
9311 for ac_extension in a so sl; do
698dcdb6 9312 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
9313 ac_x_libraries=$ac_dir
9314 break 2
10f2d63a 9315 fi
10f2d63a 9316 done
ab9b9eab
VZ
9317done
9318fi
698dcdb6
VZ
9319rm -f conftest*
9320fi # $ac_x_libraries = NO
10f2d63a 9321
698dcdb6 9322if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
9323 # Didn't find X anywhere. Cache the known absence of X.
9324 ac_cv_have_x="have_x=no"
9325else
9326 # Record where we found X for the cache.
9327 ac_cv_have_x="have_x=yes \
9328 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9329fi
9330fi
10f2d63a 9331 fi
ab9b9eab
VZ
9332 eval "$ac_cv_have_x"
9333fi # $with_x != no
10f2d63a 9334
ab9b9eab 9335if test "$have_x" != yes; then
698dcdb6 9336 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
9337 no_x=yes
9338else
9339 # If each of the values was on the command line, it overrides each guess.
9340 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9341 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9342 # Update the cache value to reflect the command line values.
9343 ac_cv_have_x="have_x=yes \
9344 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 9345 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 9346fi
10f2d63a 9347
ab9b9eab
VZ
9348if test "$no_x" = yes; then
9349 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 9350 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
9351#define X_DISPLAY_MISSING 1
9352EOF
10f2d63a 9353
ab9b9eab
VZ
9354 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9355else
9356 if test -n "$x_includes"; then
9357 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
9358 fi
9359
ab9b9eab
VZ
9360 # It would also be nice to do this for all -L options, not just this one.
9361 if test -n "$x_libraries"; then
9362 X_LIBS="$X_LIBS -L$x_libraries"
9363 # For Solaris; some versions of Sun CC require a space after -R and
9364 # others require no space. Words are not sufficient . . . .
698dcdb6 9365 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 9366 "SunOS 5"*)
698dcdb6 9367 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1e6feb95 9368echo "configure:9369: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
9369 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9370 cat > conftest.$ac_ext <<EOF
1e6feb95 9371#line 9372 "configure"
ab9b9eab 9372#include "confdefs.h"
10f2d63a 9373
698dcdb6 9374int main() {
788deba1 9375
698dcdb6
VZ
9376; return 0; }
9377EOF
1e6feb95 9378if { (eval echo configure:9379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9379 rm -rf conftest*
ab9b9eab
VZ
9380 ac_R_nospace=yes
9381else
698dcdb6
VZ
9382 echo "configure: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9384 rm -rf conftest*
9385 ac_R_nospace=no
ab9b9eab 9386fi
698dcdb6 9387rm -f conftest*
ab9b9eab 9388 if test $ac_R_nospace = yes; then
698dcdb6 9389 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9390 X_LIBS="$X_LIBS -R$x_libraries"
9391 else
9392 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 9393 cat > conftest.$ac_ext <<EOF
1e6feb95 9394#line 9395 "configure"
ab9b9eab 9395#include "confdefs.h"
788deba1 9396
698dcdb6 9397int main() {
ab9b9eab 9398
698dcdb6
VZ
9399; return 0; }
9400EOF
1e6feb95 9401if { (eval echo configure:9402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9402 rm -rf conftest*
ab9b9eab
VZ
9403 ac_R_space=yes
9404else
698dcdb6
VZ
9405 echo "configure: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9407 rm -rf conftest*
9408 ac_R_space=no
ab9b9eab 9409fi
698dcdb6 9410rm -f conftest*
ab9b9eab 9411 if test $ac_R_space = yes; then
698dcdb6 9412 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
9413 X_LIBS="$X_LIBS -R $x_libraries"
9414 else
698dcdb6 9415 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
9416 fi
9417 fi
698dcdb6 9418 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
9419 esac
9420 fi
9421
9422 # Check for system-dependent libraries X programs must link with.
9423 # Do this before checking for the system-independent R6 libraries
9424 # (-lICE), since we may need -lsocket or whatever for X linking.
9425
9426 if test "$ISC" = yes; then
9427 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9428 else
698dcdb6
VZ
9429 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9430 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 9431 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 9432 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1e6feb95 9433echo "configure:9434: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
9434ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9435if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9436 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9437else
698dcdb6 9438 ac_save_LIBS="$LIBS"
ab9b9eab 9439LIBS="-ldnet $LIBS"
698dcdb6 9440cat > conftest.$ac_ext <<EOF
1e6feb95 9441#line 9442 "configure"
ab9b9eab
VZ
9442#include "confdefs.h"
9443/* Override any gcc2 internal prototype to avoid an error. */
9444/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9445 builtin and then its argument prototype would still apply. */
9446char dnet_ntoa();
9447
9448int main() {
9449dnet_ntoa()
9450; return 0; }
9451EOF
1e6feb95 9452if { (eval echo configure:9453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9453 rm -rf conftest*
9454 eval "ac_cv_lib_$ac_lib_var=yes"
9455else
9456 echo "configure: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9458 rm -rf conftest*
9459 eval "ac_cv_lib_$ac_lib_var=no"
9460fi
9461rm -f conftest*
9462LIBS="$ac_save_LIBS"
9463
9464fi
9465if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9466 echo "$ac_t""yes" 1>&6
ab9b9eab 9467 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
9468else
9469 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9470fi
9471
9472 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 9473 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1e6feb95 9474echo "configure:9475: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
9475ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9476if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9477 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9478else
698dcdb6 9479 ac_save_LIBS="$LIBS"
ab9b9eab 9480LIBS="-ldnet_stub $LIBS"
698dcdb6 9481cat > conftest.$ac_ext <<EOF
1e6feb95 9482#line 9483 "configure"
ab9b9eab
VZ
9483#include "confdefs.h"
9484/* Override any gcc2 internal prototype to avoid an error. */
9485/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9486 builtin and then its argument prototype would still apply. */
9487char dnet_ntoa();
9488
9489int main() {
9490dnet_ntoa()
9491; return 0; }
9492EOF
1e6feb95 9493if { (eval echo configure:9494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9494 rm -rf conftest*
9495 eval "ac_cv_lib_$ac_lib_var=yes"
9496else
9497 echo "configure: failed program was:" >&5
9498 cat conftest.$ac_ext >&5
9499 rm -rf conftest*
9500 eval "ac_cv_lib_$ac_lib_var=no"
9501fi
9502rm -f conftest*
9503LIBS="$ac_save_LIBS"
9504
9505fi
9506if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9507 echo "$ac_t""yes" 1>&6
ab9b9eab 9508 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
9509else
9510 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9511fi
9512
9513 fi
9514
9515 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9516 # to get the SysV transport functions.
698dcdb6 9517 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
9518 # needs -lnsl.
9519 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
9520 # on Irix 5.2, according to dickey@clark.net.
9521 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1e6feb95 9522echo "configure:9523: checking for gethostbyname" >&5
698dcdb6
VZ
9523if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
9525else
9526 cat > conftest.$ac_ext <<EOF
1e6feb95 9527#line 9528 "configure"
ab9b9eab
VZ
9528#include "confdefs.h"
9529/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9530 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
9531#include <assert.h>
9532/* Override any gcc2 internal prototype to avoid an error. */
9533/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9534 builtin and then its argument prototype would still apply. */
9535char gethostbyname();
9536
9537int main() {
ab9b9eab
VZ
9538
9539/* The GNU C library defines this for functions which it implements
9540 to always fail with ENOSYS. Some functions are actually named
9541 something starting with __ and the normal name is an alias. */
9542#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9543choke me
9544#else
698dcdb6 9545gethostbyname();
ab9b9eab
VZ
9546#endif
9547
698dcdb6
VZ
9548; return 0; }
9549EOF
1e6feb95 9550if { (eval echo configure:9551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9551 rm -rf conftest*
9552 eval "ac_cv_func_gethostbyname=yes"
9553else
9554 echo "configure: failed program was:" >&5
9555 cat conftest.$ac_ext >&5
9556 rm -rf conftest*
9557 eval "ac_cv_func_gethostbyname=no"
9558fi
9559rm -f conftest*
9560fi
9561
9562if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
9563 echo "$ac_t""yes" 1>&6
9564 :
9565else
9566 echo "$ac_t""no" 1>&6
9567fi
ab9b9eab
VZ
9568
9569 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 9570 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1e6feb95 9571echo "configure:9572: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
9572ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
9573if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9574 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9575else
698dcdb6 9576 ac_save_LIBS="$LIBS"
ab9b9eab 9577LIBS="-lnsl $LIBS"
698dcdb6 9578cat > conftest.$ac_ext <<EOF
1e6feb95 9579#line 9580 "configure"
ab9b9eab
VZ
9580#include "confdefs.h"
9581/* Override any gcc2 internal prototype to avoid an error. */
9582/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9583 builtin and then its argument prototype would still apply. */
9584char gethostbyname();
6232543b 9585
698dcdb6
VZ
9586int main() {
9587gethostbyname()
9588; return 0; }
9589EOF
1e6feb95 9590if { (eval echo configure:9591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9591 rm -rf conftest*
9592 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 9593else
698dcdb6
VZ
9594 echo "configure: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9596 rm -rf conftest*
9597 eval "ac_cv_lib_$ac_lib_var=no"
9598fi
9599rm -f conftest*
9600LIBS="$ac_save_LIBS"
1e487827 9601
698dcdb6
VZ
9602fi
9603if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9604 echo "$ac_t""yes" 1>&6
9605 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9606else
9607 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9608fi
9609
9610 fi
9611
9612 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9613 # socket/setsockopt and other routines are undefined under SCO ODT
9614 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
9615 # on later versions), says simon@lia.di.epfl.ch: it contains
9616 # gethostby* variants that don't use the nameserver (or something).
9617 # -lsocket must be given before -lnsl if both are needed.
9618 # We assume that if connect needs -lnsl, so does gethostbyname.
9619 echo $ac_n "checking for connect""... $ac_c" 1>&6
1e6feb95 9620echo "configure:9621: checking for connect" >&5
698dcdb6
VZ
9621if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
9622 echo $ac_n "(cached) $ac_c" 1>&6
9623else
9624 cat > conftest.$ac_ext <<EOF
1e6feb95 9625#line 9626 "configure"
ab9b9eab
VZ
9626#include "confdefs.h"
9627/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9628 which can conflict with char connect(); below. */
ab9b9eab
VZ
9629#include <assert.h>
9630/* Override any gcc2 internal prototype to avoid an error. */
9631/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9632 builtin and then its argument prototype would still apply. */
9633char connect();
9634
9635int main() {
ab9b9eab
VZ
9636
9637/* The GNU C library defines this for functions which it implements
9638 to always fail with ENOSYS. Some functions are actually named
9639 something starting with __ and the normal name is an alias. */
9640#if defined (__stub_connect) || defined (__stub___connect)
9641choke me
9642#else
698dcdb6 9643connect();
ab9b9eab
VZ
9644#endif
9645
698dcdb6
VZ
9646; return 0; }
9647EOF
1e6feb95 9648if { (eval echo configure:9649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9649 rm -rf conftest*
9650 eval "ac_cv_func_connect=yes"
9651else
9652 echo "configure: failed program was:" >&5
9653 cat conftest.$ac_ext >&5
9654 rm -rf conftest*
9655 eval "ac_cv_func_connect=no"
9656fi
9657rm -f conftest*
9658fi
9659
9660if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
9661 echo "$ac_t""yes" 1>&6
9662 :
9663else
9664 echo "$ac_t""no" 1>&6
9665fi
ab9b9eab
VZ
9666
9667 if test $ac_cv_func_connect = no; then
698dcdb6 9668 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1e6feb95 9669echo "configure:9670: checking for connect in -lsocket" >&5
698dcdb6
VZ
9670ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
9671if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9672 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9673else
698dcdb6 9674 ac_save_LIBS="$LIBS"
ab9b9eab 9675LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 9676cat > conftest.$ac_ext <<EOF
1e6feb95 9677#line 9678 "configure"
ab9b9eab
VZ
9678#include "confdefs.h"
9679/* Override any gcc2 internal prototype to avoid an error. */
9680/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9681 builtin and then its argument prototype would still apply. */
9682char connect();
9683
9684int main() {
9685connect()
9686; return 0; }
9687EOF
1e6feb95 9688if { (eval echo configure:9689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9689 rm -rf conftest*
9690 eval "ac_cv_lib_$ac_lib_var=yes"
9691else
9692 echo "configure: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
9694 rm -rf conftest*
9695 eval "ac_cv_lib_$ac_lib_var=no"
9696fi
9697rm -f conftest*
9698LIBS="$ac_save_LIBS"
9699
9700fi
9701if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9702 echo "$ac_t""yes" 1>&6
ab9b9eab 9703 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
9704else
9705 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9706fi
9707
9708 fi
9709
698dcdb6
VZ
9710 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
9711 echo $ac_n "checking for remove""... $ac_c" 1>&6
1e6feb95 9712echo "configure:9713: checking for remove" >&5
698dcdb6
VZ
9713if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
9714 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9715else
698dcdb6 9716 cat > conftest.$ac_ext <<EOF
1e6feb95 9717#line 9718 "configure"
ab9b9eab
VZ
9718#include "confdefs.h"
9719/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9720 which can conflict with char remove(); below. */
ab9b9eab
VZ
9721#include <assert.h>
9722/* Override any gcc2 internal prototype to avoid an error. */
9723/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9724 builtin and then its argument prototype would still apply. */
9725char remove();
9726
9727int main() {
ab9b9eab
VZ
9728
9729/* The GNU C library defines this for functions which it implements
9730 to always fail with ENOSYS. Some functions are actually named
9731 something starting with __ and the normal name is an alias. */
9732#if defined (__stub_remove) || defined (__stub___remove)
9733choke me
9734#else
698dcdb6 9735remove();
ab9b9eab
VZ
9736#endif
9737
698dcdb6
VZ
9738; return 0; }
9739EOF
1e6feb95 9740if { (eval echo configure:9741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9741 rm -rf conftest*
9742 eval "ac_cv_func_remove=yes"
9743else
9744 echo "configure: failed program was:" >&5
9745 cat conftest.$ac_ext >&5
9746 rm -rf conftest*
9747 eval "ac_cv_func_remove=no"
9748fi
9749rm -f conftest*
9750fi
9751
9752if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
9753 echo "$ac_t""yes" 1>&6
9754 :
9755else
9756 echo "$ac_t""no" 1>&6
9757fi
ab9b9eab
VZ
9758
9759 if test $ac_cv_func_remove = no; then
698dcdb6 9760 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1e6feb95 9761echo "configure:9762: checking for remove in -lposix" >&5
698dcdb6
VZ
9762ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
9763if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9764 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9765else
698dcdb6 9766 ac_save_LIBS="$LIBS"
ab9b9eab 9767LIBS="-lposix $LIBS"
698dcdb6 9768cat > conftest.$ac_ext <<EOF
1e6feb95 9769#line 9770 "configure"
ab9b9eab
VZ
9770#include "confdefs.h"
9771/* Override any gcc2 internal prototype to avoid an error. */
9772/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9773 builtin and then its argument prototype would still apply. */
9774char remove();
9775
9776int main() {
9777remove()
9778; return 0; }
9779EOF
1e6feb95 9780if { (eval echo configure:9781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9781 rm -rf conftest*
9782 eval "ac_cv_lib_$ac_lib_var=yes"
9783else
9784 echo "configure: failed program was:" >&5
9785 cat conftest.$ac_ext >&5
9786 rm -rf conftest*
9787 eval "ac_cv_lib_$ac_lib_var=no"
9788fi
9789rm -f conftest*
9790LIBS="$ac_save_LIBS"
9791
9792fi
9793if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9794 echo "$ac_t""yes" 1>&6
ab9b9eab 9795 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
9796else
9797 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9798fi
9799
9800 fi
9801
9802 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 9803 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1e6feb95 9804echo "configure:9805: checking for shmat" >&5
698dcdb6
VZ
9805if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
9806 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9807else
698dcdb6 9808 cat > conftest.$ac_ext <<EOF
1e6feb95 9809#line 9810 "configure"
ab9b9eab
VZ
9810#include "confdefs.h"
9811/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9812 which can conflict with char shmat(); below. */
ab9b9eab
VZ
9813#include <assert.h>
9814/* Override any gcc2 internal prototype to avoid an error. */
9815/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9816 builtin and then its argument prototype would still apply. */
9817char shmat();
9818
9819int main() {
ab9b9eab
VZ
9820
9821/* The GNU C library defines this for functions which it implements
9822 to always fail with ENOSYS. Some functions are actually named
9823 something starting with __ and the normal name is an alias. */
9824#if defined (__stub_shmat) || defined (__stub___shmat)
9825choke me
9826#else
698dcdb6 9827shmat();
ab9b9eab
VZ
9828#endif
9829
698dcdb6
VZ
9830; return 0; }
9831EOF
1e6feb95 9832if { (eval echo configure:9833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9833 rm -rf conftest*
9834 eval "ac_cv_func_shmat=yes"
9835else
9836 echo "configure: failed program was:" >&5
9837 cat conftest.$ac_ext >&5
9838 rm -rf conftest*
9839 eval "ac_cv_func_shmat=no"
9840fi
9841rm -f conftest*
9842fi
9843
9844if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
9845 echo "$ac_t""yes" 1>&6
9846 :
9847else
9848 echo "$ac_t""no" 1>&6
9849fi
ab9b9eab
VZ
9850
9851 if test $ac_cv_func_shmat = no; then
698dcdb6 9852 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1e6feb95 9853echo "configure:9854: checking for shmat in -lipc" >&5
698dcdb6
VZ
9854ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
9855if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9856 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9857else
698dcdb6 9858 ac_save_LIBS="$LIBS"
ab9b9eab 9859LIBS="-lipc $LIBS"
698dcdb6 9860cat > conftest.$ac_ext <<EOF
1e6feb95 9861#line 9862 "configure"
ab9b9eab
VZ
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
698dcdb6
VZ
9865 builtin and then its argument prototype would still apply. */
9866char shmat();
9867
9868int main() {
9869shmat()
9870; return 0; }
9871EOF
1e6feb95 9872if { (eval echo configure:9873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9873 rm -rf conftest*
9874 eval "ac_cv_lib_$ac_lib_var=yes"
9875else
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"
9880fi
9881rm -f conftest*
9882LIBS="$ac_save_LIBS"
9883
9884fi
9885if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9886 echo "$ac_t""yes" 1>&6
ab9b9eab 9887 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
9888else
9889 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9890fi
9891
9892 fi
9893 fi
9894
9895 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 9896 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
9897 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9898 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9899 # check for ICE first), but we must link in the order -lSM -lICE or
9900 # we get undefined symbols. So assume we have SM if we have ICE.
9901 # These have to be linked with before -lX11, unlike the other
9902 # libraries we check for below, so use a different variable.
698dcdb6
VZ
9903 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
9904 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1e6feb95 9905echo "configure:9906: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
9906ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
9907if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9908 echo $ac_n "(cached) $ac_c" 1>&6
9909else
9910 ac_save_LIBS="$LIBS"
ab9b9eab 9911LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 9912cat > conftest.$ac_ext <<EOF
1e6feb95 9913#line 9914 "configure"
ab9b9eab
VZ
9914#include "confdefs.h"
9915/* Override any gcc2 internal prototype to avoid an error. */
9916/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9917 builtin and then its argument prototype would still apply. */
9918char IceConnectionNumber();
9919
9920int main() {
9921IceConnectionNumber()
9922; return 0; }
9923EOF
1e6feb95 9924if { (eval echo configure:9925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9925 rm -rf conftest*
9926 eval "ac_cv_lib_$ac_lib_var=yes"
9927else
9928 echo "configure: failed program was:" >&5
9929 cat conftest.$ac_ext >&5
9930 rm -rf conftest*
9931 eval "ac_cv_lib_$ac_lib_var=no"
9932fi
9933rm -f conftest*
9934LIBS="$ac_save_LIBS"
9935
9936fi
9937if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9938 echo "$ac_t""yes" 1>&6
ab9b9eab 9939 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
9940else
9941 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9942fi
9943
698dcdb6 9944 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
9945
9946fi
9947
1e6feb95
VZ
9948 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9949 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 9950
1e6feb95
VZ
9951 if test "$wxUSE_MOTIF" = 1; then
9952 if test "$no_x" = "yes"; then
9953 { echo "configure: error: X11 not found" 1>&2; exit 1; }
9954 fi
ab9b9eab 9955
1e6feb95
VZ
9956 GUI_TK_LIBRARY="$X_LIBS"
9957 TOOLKIT_INCLUDE="$X_CFLAGS"
ab9b9eab 9958
1e6feb95 9959 AFMINSTALL=afminstall
dad6c0ea 9960
1e6feb95
VZ
9961
9962 COMPILED_X_PROGRAM=0
cd6d6d5b 9963
1e6feb95
VZ
9964 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
9965echo "configure:9966: checking for Motif/Lesstif headers" >&5
9966
ab9b9eab
VZ
9967ac_find_includes=
9968for ac_dir in $SEARCH_INCLUDE;
9969 do
9970 if test -f "$ac_dir/Xm/Xm.h"; then
9971 ac_find_includes=$ac_dir
9972 break
9973 fi
9974 done
9975
1e6feb95
VZ
9976 if test "$ac_find_includes" != "" ; then
9977 echo "$ac_t""found $ac_find_includes" 1>&6
9978 else
9979 cat > conftest.$ac_ext <<EOF
9980#line 9981 "configure"
cd6d6d5b
VZ
9981#include "confdefs.h"
9982
1e6feb95
VZ
9983 #include <Xm/Xm.h>
9984
698dcdb6 9985int main() {
cd6d6d5b 9986
1e6feb95 9987 int version;
cd6d6d5b 9988
1e6feb95
VZ
9989 version = xmUseVersion;
9990
698dcdb6
VZ
9991; return 0; }
9992EOF
1e6feb95 9993if { (eval echo configure:9994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
9994 rm -rf conftest*
9995
1e6feb95
VZ
9996 echo "$ac_t""found in default search path" 1>&6
9997 COMPILED_X_PROGRAM=1
9998
cd6d6d5b 9999else
698dcdb6
VZ
10000 echo "configure: failed program was:" >&5
10001 cat conftest.$ac_ext >&5
10002 rm -rf conftest*
10003
1e6feb95
VZ
10004 echo "$ac_t""no" 1>&6
10005 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10006
698dcdb6 10007
cd6d6d5b 10008fi
698dcdb6 10009rm -f conftest*
1e6feb95 10010 fi
ab9b9eab 10011
1e6feb95
VZ
10012 if test "$COMPILED_X_PROGRAM" = 0; then
10013 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10014echo "configure:10015: checking for Motif/Lesstif library" >&5
10015
ab9b9eab
VZ
10016ac_find_libraries=
10017for ac_dir in $SEARCH_LIB;
10018 do
10019 for ac_extension in a so sl; do
10020 if test -f "$ac_dir/libXm.$ac_extension"; then
10021 ac_find_libraries=$ac_dir
10022 break 2
10023 fi
10024 done
10025 done
10026
1e6feb95
VZ
10027 if test "$ac_find_libraries" != "" ; then
10028
ab9b9eab
VZ
10029 ac_path_to_include=$ac_find_includes
10030 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10031 result=$?
10032 if test $result = 0; then
10033 ac_path_to_include=""
10034 else
10035 ac_path_to_include="-I$ac_find_includes"
10036 fi
10037
1e6feb95 10038
ab9b9eab
VZ
10039 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10040 result=$?
10041 if test $result = 0; then
10042 ac_path_to_link=""
10043 else
10044 ac_path_to_link="-L$ac_find_libraries"
10045 fi
10046
698dcdb6 10047
1e6feb95
VZ
10048 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10049 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10050 echo "$ac_t""found at $ac_find_libraries" 1>&6
10051 else
10052 cat > conftest.$ac_ext <<EOF
10053#line 10054 "configure"
cd6d6d5b 10054#include "confdefs.h"
ab9b9eab 10055
1e6feb95
VZ
10056 #include <Xm/Xm.h>
10057
698dcdb6 10058int main() {
ab9b9eab 10059
1e6feb95 10060 int version;
ab9b9eab 10061
1e6feb95
VZ
10062 version = xmUseVersion;
10063
698dcdb6
VZ
10064; return 0; }
10065EOF
1e6feb95 10066if { (eval echo configure:10067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10067 rm -rf conftest*
10068
1e6feb95
VZ
10069 echo "$ac_t""found in default search path" 1>&6
10070 COMPILED_X_PROGRAM=1
10071
cd6d6d5b 10072else
698dcdb6
VZ
10073 echo "configure: failed program was:" >&5
10074 cat conftest.$ac_ext >&5
10075 rm -rf conftest*
10076
1e6feb95
VZ
10077 echo "$ac_t""no" 1>&6
10078 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10079
698dcdb6 10080
cd6d6d5b 10081fi
698dcdb6 10082rm -f conftest*
1e6feb95 10083 fi
cd6d6d5b 10084 fi
ab9b9eab 10085
1e6feb95
VZ
10086
10087 XPM_LINK=""
10088 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10089echo "configure:10090: checking for Xpm library" >&5
10090
ab9b9eab
VZ
10091ac_find_libraries=
10092for ac_dir in $SEARCH_LIB;
10093 do
10094 for ac_extension in a so sl; do
10095 if test -f "$ac_dir/libXpm.$ac_extension"; then
10096 ac_find_libraries=$ac_dir
10097 break 2
10098 fi
10099 done
10100 done
10101
1e6feb95
VZ
10102 if test "$ac_find_libraries" != "" ; then
10103
ab9b9eab
VZ
10104 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10105 result=$?
10106 if test $result = 0; then
10107 ac_path_to_link=""
10108 else
10109 ac_path_to_link="-L$ac_find_libraries"
10110 fi
10111
1e6feb95
VZ
10112 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10113 XPM_LINK="-lXpm "
10114 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10115#define wxHAVE_LIB_XPM 1
10116EOF
10117
1e6feb95
VZ
10118 echo "$ac_t""found at $ac_find_libraries" 1>&6
10119 else
10120 cat > conftest.$ac_ext <<EOF
10121#line 10122 "configure"
cd6d6d5b
VZ
10122#include "confdefs.h"
10123
1e6feb95
VZ
10124 #include <X11/xpm.h>
10125
698dcdb6 10126int main() {
cd6d6d5b 10127
1e6feb95 10128 int version;
cd6d6d5b 10129
1e6feb95
VZ
10130 version = XpmLibraryVersion();
10131
698dcdb6
VZ
10132; return 0; }
10133EOF
1e6feb95 10134if { (eval echo configure:10135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10135 rm -rf conftest*
10136
1e6feb95
VZ
10137 XPM_LINK="-lXpm "
10138 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10139#define wxHAVE_LIB_XPM 1
10140EOF
10141
1e6feb95
VZ
10142 echo "$ac_t""found in default search path" 1>&6
10143 COMPILED_X_PROGRAM=0
10144
cd6d6d5b 10145else
698dcdb6
VZ
10146 echo "configure: failed program was:" >&5
10147 cat conftest.$ac_ext >&5
10148 rm -rf conftest*
10149
1e6feb95
VZ
10150 echo "$ac_t""no" 1>&6
10151 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10152
698dcdb6 10153
cd6d6d5b 10154fi
698dcdb6 10155rm -f conftest*
1e6feb95
VZ
10156 fi
10157
10158 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10159 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10160 TOOLKIT=MOTIF
10161 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10162 fi
10163
1e6feb95
VZ
10164 if test "$wxUSE_MAC" = 1; then
10165 TOOLKIT=MAC
10166 GUIDIST=MACX_DIST
10167 fi
10f2d63a 10168
1e6feb95
VZ
10169 if test "$wxUSE_PM" = 1; then
10170 TOOLKIT=PM
10171 GUIDIST=GTK_DIST
10172 fi
b4085ce6 10173
1e6feb95
VZ
10174 if test "$TOOLKIT" != "PM" ; then
10175 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10176 else
10177 TOOLKIT_DIR="os2"
10178 fi
e07802fc 10179
1e6feb95 10180 TOOLKIT_NAME="${TOOLKIT_DIR}"
10f2d63a 10181
1e6feb95
VZ
10182 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10183
10184 if test "$TOOLKIT_NAME" = "motif"; then
10185 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10186 fi
10187
10188 if test "$wxUSE_UNIVERSAL" = "yes"; then
10189 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10190 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10191 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10192 SETUPH_DIR="univ"
f6bcfd97 10193 else
1e6feb95
VZ
10194 SETUPH_DIR="${TOOLKIT_DIR}"
10195 fi
10196
10197 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10198 TOOLKIT_NAME="${TOOLKIT_NAME}d"
f6bcfd97
BP
10199 fi
10200
2224580a 10201 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
1e6feb95
VZ
10202 if test "$wxUSE_UNIVERSAL" = "yes"; then
10203 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10204 fi
10f2d63a 10205
f6bcfd97 10206 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 10207
1e6feb95
VZ
10208 if test "$wxUSE_UNIVERSAL" = "yes"; then
10209 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10210 else
10211 ALL_OBJECTS="\$(GUIOBJS)"
10212 fi
10213
10214 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10215
10216 if test "$TOOLKIT" != "MSW"; then
10217 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10218 fi
10219
10220 if test "$wxUSE_HTML" = "yes"; then
10221 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10222 fi
3fcdd07b 10223
1e6feb95
VZ
10224 if test "$TOOLKIT" != "MSW"; then
10225 if test "$wxUSE_ODBC" = "yes" ; then
10226 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10227 fi
3fcdd07b
VZ
10228 fi
10229
d9d8273d 10230 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10231 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10232 fi
10233 if test "$wxUSE_LIBTIFF" = "yes" ; then
10234 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10235 fi
10236 if test "$wxUSE_LIBPNG" = "yes" ; then
10237 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10238 fi
10239 if test "$wxUSE_ZLIB" = "yes" ; then
10240 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10241 fi
3fed1840
RR
10242 if test "$wxUSE_FREETYPE" = "yes" ; then
10243 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10244 fi
2224580a 10245
1e6feb95
VZ
10246 if test "$wxUSE_UNIVERSAL" = "yes"; then
10247 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10248 else
10249 ALL_DEPFILES="\$(GUIDEPS)"
10250 fi
10251
10252 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10253
10254 if test "$TOOLKIT" != "MSW"; then
10255 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10256 fi
10257
10258 if test "$wxUSE_HTML" = "yes"; then
10259 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10260 fi
10261
10262 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
10263 if test "$wxUSE_UNIVERSAL" = "yes"; then
10264 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10265 fi
2224580a
VZ
10266 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10267 RPM_SPEC="wx\$(TOOLKIT).spec"
10268
10269 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10270 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 10271else
dad6c0ea
VZ
10272 USE_GUI=0
10273
f6bcfd97
BP
10274 TOOLKIT_DIR="base"
10275
10276 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10277 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10278 else
10279 TOOLKIT_NAME="${TOOLKIT_DIR}"
10280 fi
10281
07eb77a6
RL
10282 TOOLKIT_DEF="-D__WXBASE__"
10283
b4085ce6
GD
10284 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10285 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 10286
a20b6d3a
VZ
10287 if test "$wxUSE_ZLIB" = "yes" ; then
10288 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10289 fi
10290
f6bcfd97 10291 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
10292
10293 PORT_FILES="src/files.lst"
10294 RPM_FILES="src/rpmfiles.lst"
10295 RPM_SPEC="wxBase.spec"
10296
10297 GUIDIST="BASE_DIST"
10298 DISTDIR="wxBase"
10f2d63a
VZ
10299fi
10300
10301WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 10302WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
10303
10304WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 10305WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
10306
10307WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 10308WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
10309
10310WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10311WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10312WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
10313WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10314WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10315WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
10316
10317SHARED_LD=
10318PIC_FLAG=
10319WX_ALL=
10320WX_ALL_INSTALLED=
1d62a8b4 10321BURNT_LIBRARY_NAME=
f6bcfd97 10322WX_TARGET_LIBRARY_SONAME=
10f2d63a 10323
698dcdb6 10324
10f2d63a
VZ
10325if test "$wxUSE_SHARED" = "yes"; then
10326 case "${host}" in
10327 *-hp-hpux* )
10328 if test "$GCC" = yes ; then
69ffe1d2 10329 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
10330 PIC_FLAG="-fPIC"
10331 else
f6bcfd97
BP
10332 LDFLAGS="-L/usr/lib"
10333
10f2d63a
VZ
10334 SHARED_LD="${CXX} -b -o"
10335 PIC_FLAG="+Z"
10336 fi
f6bcfd97
BP
10337 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10338 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 10339 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 10340 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
10341 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10342 else
10343 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10344 fi
10f2d63a 10345 ;;
b12915c1
VZ
10346
10347 *-*-linux* )
10f2d63a
VZ
10348 SHARED_LD="${CC} -shared -o"
10349 PIC_FLAG="-fPIC"
00cf1208 10350 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 10351 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 10352 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 10353 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 10354 fi
c661ecca
RR
10355 if test "$wxUSE_OPENGL" = "yes"; then
10356 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10357 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10358 else
10359 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10360 WX_ALL="CREATE_LINKS"
422107f9 10361 fi
00cf1208 10362 ;;
10f2d63a
VZ
10363 *-*-irix5* | *-*-irix6* )
10364 if test "$GCC" = yes ; then
10365 SHARED_LD="${CC} -shared -o"
10366 PIC_FLAG="-fPIC"
10367 else
10368 SHARED_LD="${CXX} -shared -o"
10369 fi
c661ecca
RR
10370 if test "$wxUSE_OPENGL" = "yes"; then
10371 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10372 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10373 else
10374 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10375 WX_ALL="CREATE_LINKS"
422107f9 10376 fi
10f2d63a
VZ
10377 ;;
10378 *-*-solaris2* )
10379 if test "$GCC" = yes ; then
10380 SHARED_LD="${CC} -shared -o"
10381 PIC_FLAG="-fPIC"
f6bcfd97
BP
10382
10383 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
10384 else
10385 SHARED_LD="${CXX} -G -o"
10386 PIC_FLAG="-KPIC"
10387 fi
c661ecca
RR
10388 if test "$wxUSE_OPENGL" = "yes"; then
10389 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10390 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10391 else
10392 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10393 WX_ALL="CREATE_LINKS"
10394 fi
10f2d63a
VZ
10395 ;;
10396 *-*-sunos4* )
10397 SHARED_LD="${CC} -shared -o"
10398 PIC_FLAG="-fPIC"
10399 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10400 WX_ALL="CREATE_LINKS"
10401 ;;
95c8801c 10402 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10f2d63a
VZ
10403 SHARED_LD="${CC} -shared -o"
10404 PIC_FLAG="-fPIC"
37d403aa
JS
10405 if test "$wxUSE_OPENGL" = "yes"; then
10406 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10407 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10408 else
10409 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10410 WX_ALL="CREATE_LINKS"
10411 fi
10f2d63a 10412 ;;
b4085ce6 10413 *-*-darwin* )
ea5999b9
GD
10414 SHARED_LD="${CXX} -dynamiclib -o"
10415 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
10416 if test "$wxUSE_OPENGL" = "yes"; then
10417 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10418 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10419 else
10420 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10421 WX_ALL="CREATE_LINKS"
10422 fi
1e6feb95
VZ
10423 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10424 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10425 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10426 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10427 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10428 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10429 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10430 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10431 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 10432 ;;
10f2d63a
VZ
10433 *-*-osf* )
10434 SHARED_LD="${CXX} -shared -o"
10435 PIC_FLAG="-fPIC"
10436 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10437 WX_ALL="CREATE_LINKS"
10438 ;;
10439 *-*-dgux5* )
10440 SHARED_LD="${CXX} -shared -o"
10441 PIC_FLAG="-fPIC"
10442 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10443 WX_ALL="CREATE_LINKS"
10444 ;;
10445 *-*-sysv5* )
10446 SHARED_LD="${CC} -shared -o"
10447 PIC_FLAG="-fPIC"
10448 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10449 WX_ALL="CREATE_LINKS"
10450 ;;
10451 *-*-aix* )
10452 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10453 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10454 ;;
1c8183e2 10455 *-*-cygwin* )
10f2d63a 10456 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10457 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10458 if test "$wxUSE_OPENGL" = "yes"; then
10459 WX_ALL_INSTALLED="preinstall_gl"
10460 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10461 else
10462 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10463 fi
10f2d63a 10464 ;;
b12915c1 10465 *-*-mingw32* )
10f2d63a 10466 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10467 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10468 if test "$wxUSE_OPENGL" = "yes"; then
10469 WX_ALL_INSTALLED="preinstall_gl"
10470 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10471 else
10472 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10473 fi
10f2d63a
VZ
10474 ;;
10475 *-pc-os2_emx )
e07802fc
VZ
10476 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10477 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 10478 ;;
b12915c1 10479 *-*-beos* )
e2b8b066 10480 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
10481 PIC_FLAG="-fPIC"
10482 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10483 WX_ALL="CREATE_LINKS"
10484 ;;
10f2d63a 10485 *)
698dcdb6 10486 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
10487 esac
10488
10489 if test "x$WX_TARGET_LIBRARY" = "x"; then
10490 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 10491 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 10492 fi
3711412e 10493 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
10494else
10495 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10496 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10497
10498 if test "$wxUSE_OPENGL" = "yes"; then
10499 WX_ALL_INSTALLED="preinstall_gl"
10500 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10501 else
10502 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10503 fi
10504
10505 if test "$wxUSE_GUI" = "no"; then
10506 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10507 fi
10508
3711412e 10509 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
10510fi
10511
698dcdb6
VZ
10512
10513for ac_hdr in strings.h
10f2d63a 10514do
698dcdb6
VZ
10515ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10516echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1e6feb95 10517echo "configure:10518: checking for $ac_hdr" >&5
698dcdb6
VZ
10518if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10519 echo $ac_n "(cached) $ac_c" 1>&6
10520else
10521 cat > conftest.$ac_ext <<EOF
1e6feb95 10522#line 10523 "configure"
10f2d63a 10523#include "confdefs.h"
698dcdb6
VZ
10524#include <$ac_hdr>
10525EOF
10526ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 10527{ (eval echo configure:10528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10528ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10529if test -z "$ac_err"; then
10530 rm -rf conftest*
10531 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10532else
698dcdb6
VZ
10533 echo "$ac_err" >&5
10534 echo "configure: failed program was:" >&5
10f2d63a 10535 cat conftest.$ac_ext >&5
698dcdb6
VZ
10536 rm -rf conftest*
10537 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10538fi
698dcdb6 10539rm -f conftest*
10f2d63a 10540fi
698dcdb6
VZ
10541if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10542 echo "$ac_t""yes" 1>&6
10543 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10544 cat >> confdefs.h <<EOF
10545#define $ac_tr_hdr 1
10f2d63a 10546EOF
698dcdb6
VZ
10547
10548else
10549 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10550fi
10551done
10552
698dcdb6 10553for ac_hdr in stdlib.h
9cfadba2 10554do
698dcdb6
VZ
10555ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10556echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1e6feb95 10557echo "configure:10558: checking for $ac_hdr" >&5
698dcdb6
VZ
10558if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10559 echo $ac_n "(cached) $ac_c" 1>&6
10560else
10561 cat > conftest.$ac_ext <<EOF
1e6feb95 10562#line 10563 "configure"
9cfadba2 10563#include "confdefs.h"
698dcdb6
VZ
10564#include <$ac_hdr>
10565EOF
10566ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 10567{ (eval echo configure:10568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10568ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10569if test -z "$ac_err"; then
10570 rm -rf conftest*
10571 eval "ac_cv_header_$ac_safe=yes"
6232543b 10572else
698dcdb6
VZ
10573 echo "$ac_err" >&5
10574 echo "configure: failed program was:" >&5
9cfadba2 10575 cat conftest.$ac_ext >&5
698dcdb6
VZ
10576 rm -rf conftest*
10577 eval "ac_cv_header_$ac_safe=no"
9cfadba2 10578fi
698dcdb6 10579rm -f conftest*
9cfadba2 10580fi
698dcdb6
VZ
10581if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10582 echo "$ac_t""yes" 1>&6
10583 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10584 cat >> confdefs.h <<EOF
10585#define $ac_tr_hdr 1
9cfadba2 10586EOF
698dcdb6
VZ
10587
10588else
10589 echo "$ac_t""no" 1>&6
9cfadba2
VZ
10590fi
10591done
10f2d63a 10592
698dcdb6 10593for ac_hdr in unistd.h
10f2d63a 10594do
698dcdb6
VZ
10595ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10596echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1e6feb95 10597echo "configure:10598: checking for $ac_hdr" >&5
698dcdb6
VZ
10598if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10599 echo $ac_n "(cached) $ac_c" 1>&6
10600else
10601 cat > conftest.$ac_ext <<EOF
1e6feb95 10602#line 10603 "configure"
10f2d63a 10603#include "confdefs.h"
698dcdb6
VZ
10604#include <$ac_hdr>
10605EOF
10606ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 10607{ (eval echo configure:10608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10608ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10609if test -z "$ac_err"; then
10610 rm -rf conftest*
10611 eval "ac_cv_header_$ac_safe=yes"
6232543b 10612else
698dcdb6
VZ
10613 echo "$ac_err" >&5
10614 echo "configure: failed program was:" >&5
10f2d63a 10615 cat conftest.$ac_ext >&5
698dcdb6
VZ
10616 rm -rf conftest*
10617 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10618fi
698dcdb6 10619rm -f conftest*
10f2d63a 10620fi
698dcdb6
VZ
10621if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10622 echo "$ac_t""yes" 1>&6
10623 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10624 cat >> confdefs.h <<EOF
10625#define $ac_tr_hdr 1
10f2d63a 10626EOF
698dcdb6
VZ
10627
10628else
10629 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10630fi
10631done
10632
698dcdb6 10633for ac_hdr in wchar.h
10f2d63a 10634do
698dcdb6
VZ
10635ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10636echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1e6feb95 10637echo "configure:10638: checking for $ac_hdr" >&5
698dcdb6
VZ
10638if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10639 echo $ac_n "(cached) $ac_c" 1>&6
10640else
10641 cat > conftest.$ac_ext <<EOF
1e6feb95 10642#line 10643 "configure"
10f2d63a 10643#include "confdefs.h"
698dcdb6
VZ
10644#include <$ac_hdr>
10645EOF
10646ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 10647{ (eval echo configure:10648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10648ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10649if test -z "$ac_err"; then
10650 rm -rf conftest*
10651 eval "ac_cv_header_$ac_safe=yes"
6f72b082 10652else
698dcdb6
VZ
10653 echo "$ac_err" >&5
10654 echo "configure: failed program was:" >&5
6f72b082 10655 cat conftest.$ac_ext >&5
698dcdb6
VZ
10656 rm -rf conftest*
10657 eval "ac_cv_header_$ac_safe=no"
6f72b082 10658fi
698dcdb6 10659rm -f conftest*
6f72b082 10660fi
698dcdb6
VZ
10661if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10662 echo "$ac_t""yes" 1>&6
10663 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10664 cat >> confdefs.h <<EOF
10665#define $ac_tr_hdr 1
6f72b082 10666EOF
698dcdb6
VZ
10667
10668else
10669 echo "$ac_t""no" 1>&6
6f72b082
OK
10670fi
10671done
10672
698dcdb6 10673for ac_hdr in wcstr.h
6f72b082 10674do
698dcdb6
VZ
10675ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10676echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1e6feb95 10677echo "configure:10678: checking for $ac_hdr" >&5
698dcdb6
VZ
10678if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10679 echo $ac_n "(cached) $ac_c" 1>&6
10680else
10681 cat > conftest.$ac_ext <<EOF
1e6feb95 10682#line 10683 "configure"
6f72b082 10683#include "confdefs.h"
698dcdb6
VZ
10684#include <$ac_hdr>
10685EOF
10686ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 10687{ (eval echo configure:10688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10688ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10689if test -z "$ac_err"; then
10690 rm -rf conftest*
10691 eval "ac_cv_header_$ac_safe=yes"
6f72b082 10692else
698dcdb6
VZ
10693 echo "$ac_err" >&5
10694 echo "configure: failed program was:" >&5
6f72b082 10695 cat conftest.$ac_ext >&5
698dcdb6
VZ
10696 rm -rf conftest*
10697 eval "ac_cv_header_$ac_safe=no"
6f72b082 10698fi
698dcdb6 10699rm -f conftest*
6f72b082 10700fi
698dcdb6
VZ
10701if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10702 echo "$ac_t""yes" 1>&6
10703 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10704 cat >> confdefs.h <<EOF
10705#define $ac_tr_hdr 1
6f72b082 10706EOF
698dcdb6
VZ
10707
10708else
10709 echo "$ac_t""no" 1>&6
6f72b082
OK
10710fi
10711done
10712
698dcdb6 10713for ac_hdr in fnmatch.h
6f72b082 10714do
698dcdb6
VZ
10715ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10716echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1e6feb95 10717echo "configure:10718: checking for $ac_hdr" >&5
698dcdb6
VZ
10718if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10719 echo $ac_n "(cached) $ac_c" 1>&6
10720else
10721 cat > conftest.$ac_ext <<EOF
1e6feb95 10722#line 10723 "configure"
6f72b082 10723#include "confdefs.h"
698dcdb6
VZ
10724#include <$ac_hdr>
10725EOF
10726ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 10727{ (eval echo configure:10728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10728ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10729if test -z "$ac_err"; then
10730 rm -rf conftest*
10731 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10732else
698dcdb6
VZ
10733 echo "$ac_err" >&5
10734 echo "configure: failed program was:" >&5
10f2d63a 10735 cat conftest.$ac_ext >&5
698dcdb6
VZ
10736 rm -rf conftest*
10737 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10738fi
698dcdb6 10739rm -f conftest*
10f2d63a 10740fi
698dcdb6
VZ
10741if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10742 echo "$ac_t""yes" 1>&6
10743 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10744 cat >> confdefs.h <<EOF
10745#define $ac_tr_hdr 1
10f2d63a 10746EOF
698dcdb6
VZ
10747
10748else
10749 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10750fi
10751done
10752
698dcdb6 10753for ac_hdr in iconv.h
0fb0dd83 10754do
698dcdb6
VZ
10755ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10756echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1e6feb95 10757echo "configure:10758: checking for $ac_hdr" >&5
698dcdb6
VZ
10758if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10759 echo $ac_n "(cached) $ac_c" 1>&6
10760else
10761 cat > conftest.$ac_ext <<EOF
1e6feb95 10762#line 10763 "configure"
0fb0dd83 10763#include "confdefs.h"
698dcdb6
VZ
10764#include <$ac_hdr>
10765EOF
10766ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 10767{ (eval echo configure:10768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10768ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10769if test -z "$ac_err"; then
10770 rm -rf conftest*
10771 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 10772else
698dcdb6
VZ
10773 echo "$ac_err" >&5
10774 echo "configure: failed program was:" >&5
0fb0dd83 10775 cat conftest.$ac_ext >&5
698dcdb6
VZ
10776 rm -rf conftest*
10777 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 10778fi
698dcdb6 10779rm -f conftest*
0fb0dd83 10780fi
698dcdb6
VZ
10781if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10782 echo "$ac_t""yes" 1>&6
10783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10784 cat >> confdefs.h <<EOF
10785#define $ac_tr_hdr 1
0fb0dd83 10786EOF
698dcdb6
VZ
10787
10788else
10789 echo "$ac_t""no" 1>&6
0fb0dd83
RR
10790fi
10791done
10792
698dcdb6 10793for ac_hdr in langinfo.h
1f8ae82f 10794do
698dcdb6
VZ
10795ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10796echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1e6feb95 10797echo "configure:10798: checking for $ac_hdr" >&5
698dcdb6
VZ
10798if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10799 echo $ac_n "(cached) $ac_c" 1>&6
10800else
10801 cat > conftest.$ac_ext <<EOF
1e6feb95 10802#line 10803 "configure"
1f8ae82f 10803#include "confdefs.h"
698dcdb6
VZ
10804#include <$ac_hdr>
10805EOF
10806ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 10807{ (eval echo configure:10808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10808ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10809if test -z "$ac_err"; then
10810 rm -rf conftest*
10811 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 10812else
698dcdb6
VZ
10813 echo "$ac_err" >&5
10814 echo "configure: failed program was:" >&5
1f8ae82f 10815 cat conftest.$ac_ext >&5
698dcdb6
VZ
10816 rm -rf conftest*
10817 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 10818fi
698dcdb6 10819rm -f conftest*
1f8ae82f 10820fi
698dcdb6
VZ
10821if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10822 echo "$ac_t""yes" 1>&6
10823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10824 cat >> confdefs.h <<EOF
10825#define $ac_tr_hdr 1
1f8ae82f 10826EOF
698dcdb6
VZ
10827
10828else
10829 echo "$ac_t""no" 1>&6
1f8ae82f
GD
10830fi
10831done
10832
698dcdb6 10833
73fd4a60
VZ
10834if test "$wxUSE_GUI" = "yes"; then
10835 if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 10836 for ac_hdr in X11/XKBlib.h
10f2d63a 10837do
698dcdb6
VZ
10838ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10839echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1e6feb95 10840echo "configure:10841: checking for $ac_hdr" >&5
698dcdb6
VZ
10841if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10842 echo $ac_n "(cached) $ac_c" 1>&6
10843else
10844 cat > conftest.$ac_ext <<EOF
1e6feb95 10845#line 10846 "configure"
10f2d63a 10846#include "confdefs.h"
698dcdb6
VZ
10847#include <$ac_hdr>
10848EOF
10849ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 10850{ (eval echo configure:10851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10851ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10852if test -z "$ac_err"; then
10853 rm -rf conftest*
10854 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10855else
698dcdb6
VZ
10856 echo "$ac_err" >&5
10857 echo "configure: failed program was:" >&5
10f2d63a 10858 cat conftest.$ac_ext >&5
698dcdb6
VZ
10859 rm -rf conftest*
10860 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10861fi
698dcdb6 10862rm -f conftest*
10f2d63a 10863fi
698dcdb6
VZ
10864if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10865 echo "$ac_t""yes" 1>&6
10866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10867 cat >> confdefs.h <<EOF
10868#define $ac_tr_hdr 1
10f2d63a 10869EOF
698dcdb6
VZ
10870
10871else
10872 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10873fi
10874done
10875
73fd4a60 10876 fi
10f2d63a
VZ
10877fi
10878
698dcdb6
VZ
10879
10880echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1e6feb95 10881echo "configure:10882: checking for ANSI C header files" >&5
698dcdb6
VZ
10882if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
10883 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10884else
698dcdb6 10885 cat > conftest.$ac_ext <<EOF
1e6feb95 10886#line 10887 "configure"
10f2d63a
VZ
10887#include "confdefs.h"
10888#include <stdlib.h>
10889#include <stdarg.h>
10890#include <string.h>
10891#include <float.h>
698dcdb6
VZ
10892EOF
10893ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 10894{ (eval echo configure:10895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10895ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10896if test -z "$ac_err"; then
10897 rm -rf conftest*
10f2d63a
VZ
10898 ac_cv_header_stdc=yes
10899else
698dcdb6
VZ
10900 echo "$ac_err" >&5
10901 echo "configure: failed program was:" >&5
10f2d63a 10902 cat conftest.$ac_ext >&5
698dcdb6 10903 rm -rf conftest*
10f2d63a
VZ
10904 ac_cv_header_stdc=no
10905fi
698dcdb6 10906rm -f conftest*
10f2d63a
VZ
10907
10908if test $ac_cv_header_stdc = yes; then
10909 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 10910cat > conftest.$ac_ext <<EOF
1e6feb95 10911#line 10912 "configure"
10f2d63a
VZ
10912#include "confdefs.h"
10913#include <string.h>
698dcdb6 10914EOF
10f2d63a
VZ
10915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10916 egrep "memchr" >/dev/null 2>&1; then
10917 :
10918else
698dcdb6 10919 rm -rf conftest*
10f2d63a
VZ
10920 ac_cv_header_stdc=no
10921fi
10922rm -f conftest*
10923
10924fi
10925
10926if test $ac_cv_header_stdc = yes; then
10927 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 10928cat > conftest.$ac_ext <<EOF
1e6feb95 10929#line 10930 "configure"
10f2d63a
VZ
10930#include "confdefs.h"
10931#include <stdlib.h>
698dcdb6 10932EOF
10f2d63a
VZ
10933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10934 egrep "free" >/dev/null 2>&1; then
10935 :
10936else
698dcdb6 10937 rm -rf conftest*
10f2d63a
VZ
10938 ac_cv_header_stdc=no
10939fi
10940rm -f conftest*
10941
10942fi
10943
10944if test $ac_cv_header_stdc = yes; then
10945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 10946if test "$cross_compiling" = yes; then
10f2d63a
VZ
10947 :
10948else
698dcdb6 10949 cat > conftest.$ac_ext <<EOF
1e6feb95 10950#line 10951 "configure"
10f2d63a
VZ
10951#include "confdefs.h"
10952#include <ctype.h>
698dcdb6
VZ
10953#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10954#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 10955#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
10956int main () { int i; for (i = 0; i < 256; i++)
10957if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10958exit (0); }
10959
10960EOF
1e6feb95 10961if { (eval echo configure:10962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10962then
10f2d63a
VZ
10963 :
10964else
698dcdb6
VZ
10965 echo "configure: failed program was:" >&5
10966 cat conftest.$ac_ext >&5
10967 rm -fr conftest*
10968 ac_cv_header_stdc=no
10f2d63a 10969fi
698dcdb6 10970rm -fr conftest*
10f2d63a 10971fi
698dcdb6 10972
10f2d63a
VZ
10973fi
10974fi
1e487827 10975
698dcdb6
VZ
10976echo "$ac_t""$ac_cv_header_stdc" 1>&6
10977if test $ac_cv_header_stdc = yes; then
10978 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10979#define STDC_HEADERS 1
10980EOF
10981
10982fi
10983
698dcdb6 10984echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1e6feb95 10985echo "configure:10986: checking for mode_t" >&5
698dcdb6
VZ
10986if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
10987 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 10988else
698dcdb6 10989 cat > conftest.$ac_ext <<EOF
1e6feb95 10990#line 10991 "configure"
1e487827 10991#include "confdefs.h"
698dcdb6
VZ
10992#include <sys/types.h>
10993#if STDC_HEADERS
10994#include <stdlib.h>
10995#include <stddef.h>
10996#endif
10997EOF
10998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10999 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11000 rm -rf conftest*
10f2d63a
VZ
11001 ac_cv_type_mode_t=yes
11002else
698dcdb6
VZ
11003 rm -rf conftest*
11004 ac_cv_type_mode_t=no
703e0a69 11005fi
698dcdb6 11006rm -f conftest*
1e487827 11007
698dcdb6
VZ
11008fi
11009echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11010if test $ac_cv_type_mode_t = no; then
11011 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11012#define mode_t int
11013EOF
11014
11015fi
11016
698dcdb6 11017echo $ac_n "checking for off_t""... $ac_c" 1>&6
1e6feb95 11018echo "configure:11019: checking for off_t" >&5
698dcdb6
VZ
11019if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11020 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11021else
698dcdb6 11022 cat > conftest.$ac_ext <<EOF
1e6feb95 11023#line 11024 "configure"
10f2d63a 11024#include "confdefs.h"
698dcdb6
VZ
11025#include <sys/types.h>
11026#if STDC_HEADERS
11027#include <stdlib.h>
11028#include <stddef.h>
11029#endif
11030EOF
11031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11032 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11033 rm -rf conftest*
10f2d63a
VZ
11034 ac_cv_type_off_t=yes
11035else
698dcdb6
VZ
11036 rm -rf conftest*
11037 ac_cv_type_off_t=no
703e0a69 11038fi
698dcdb6 11039rm -f conftest*
1e487827 11040
698dcdb6
VZ
11041fi
11042echo "$ac_t""$ac_cv_type_off_t" 1>&6
11043if test $ac_cv_type_off_t = no; then
11044 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11045#define off_t long
11046EOF
11047
11048fi
11049
698dcdb6 11050echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1e6feb95 11051echo "configure:11052: checking for pid_t" >&5
698dcdb6
VZ
11052if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11053 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11054else
698dcdb6 11055 cat > conftest.$ac_ext <<EOF
1e6feb95 11056#line 11057 "configure"
10f2d63a 11057#include "confdefs.h"
698dcdb6
VZ
11058#include <sys/types.h>
11059#if STDC_HEADERS
11060#include <stdlib.h>
11061#include <stddef.h>
11062#endif
11063EOF
11064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11065 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11066 rm -rf conftest*
10f2d63a
VZ
11067 ac_cv_type_pid_t=yes
11068else
698dcdb6
VZ
11069 rm -rf conftest*
11070 ac_cv_type_pid_t=no
703e0a69 11071fi
698dcdb6 11072rm -f conftest*
1e487827 11073
698dcdb6
VZ
11074fi
11075echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11076if test $ac_cv_type_pid_t = no; then
11077 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11078#define pid_t int
11079EOF
11080
11081fi
11082
698dcdb6 11083echo $ac_n "checking for size_t""... $ac_c" 1>&6
1e6feb95 11084echo "configure:11085: checking for size_t" >&5
698dcdb6
VZ
11085if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11086 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11087else
698dcdb6 11088 cat > conftest.$ac_ext <<EOF
1e6feb95 11089#line 11090 "configure"
10f2d63a 11090#include "confdefs.h"
698dcdb6
VZ
11091#include <sys/types.h>
11092#if STDC_HEADERS
11093#include <stdlib.h>
11094#include <stddef.h>
11095#endif
11096EOF
11097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11098 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11099 rm -rf conftest*
10f2d63a
VZ
11100 ac_cv_type_size_t=yes
11101else
698dcdb6
VZ
11102 rm -rf conftest*
11103 ac_cv_type_size_t=no
703e0a69 11104fi
698dcdb6 11105rm -f conftest*
1e487827 11106
698dcdb6
VZ
11107fi
11108echo "$ac_t""$ac_cv_type_size_t" 1>&6
11109if test $ac_cv_type_size_t = no; then
11110 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11111#define size_t unsigned
11112EOF
11113
11114fi
11115
698dcdb6 11116echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1e6feb95 11117echo "configure:11118: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
11118if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11119 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11120else
698dcdb6 11121 cat > conftest.$ac_ext <<EOF
1e6feb95 11122#line 11123 "configure"
10f2d63a
VZ
11123#include "confdefs.h"
11124#include <sys/types.h>
698dcdb6 11125EOF
10f2d63a
VZ
11126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11127 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 11128 rm -rf conftest*
10f2d63a
VZ
11129 ac_cv_type_uid_t=yes
11130else
698dcdb6 11131 rm -rf conftest*
10f2d63a
VZ
11132 ac_cv_type_uid_t=no
11133fi
11134rm -f conftest*
11135
11136fi
1e487827 11137
698dcdb6
VZ
11138echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11139if test $ac_cv_type_uid_t = no; then
11140 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11141#define uid_t int
11142EOF
11143
698dcdb6 11144 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11145#define gid_t int
11146EOF
11147
11148fi
11149
1e487827 11150
698dcdb6 11151echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
1e6feb95 11152echo "configure:11153: checking for wchar_t" >&5
698dcdb6
VZ
11153if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11154 echo $ac_n "(cached) $ac_c" 1>&6
11155else
11156
11157 cat > conftest.$ac_ext <<EOF
1e6feb95 11158#line 11159 "configure"
0046ff7c
VS
11159#include "confdefs.h"
11160#include <wchar.h>
698dcdb6 11161int main() {
0046ff7c 11162
d836ee96
VZ
11163 wchar_t wc, *ws;
11164 wc = L'a';
11165 ws = L"Hello, world!";
698dcdb6
VZ
11166
11167; return 0; }
11168EOF
1e6feb95 11169if { (eval echo configure:11170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11170 rm -rf conftest*
1f8ae82f
GD
11171 wx_cv_type_wchar_t=yes
11172else
698dcdb6
VZ
11173 echo "configure: failed program was:" >&5
11174 cat conftest.$ac_ext >&5
11175 rm -rf conftest*
11176 cat > conftest.$ac_ext <<EOF
1e6feb95 11177#line 11178 "configure"
1f8ae82f
GD
11178#include "confdefs.h"
11179#include <stdlib.h>
698dcdb6 11180int main() {
1f8ae82f 11181
d836ee96
VZ
11182 wchar_t wc, *ws;
11183 wc = L'a';
11184 ws = L"Hello, world!";
698dcdb6
VZ
11185
11186; return 0; }
11187EOF
1e6feb95 11188if { (eval echo configure:11189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11189 rm -rf conftest*
0046ff7c
VS
11190 wx_cv_type_wchar_t=yes
11191else
698dcdb6
VZ
11192 echo "configure: failed program was:" >&5
11193 cat conftest.$ac_ext >&5
11194 rm -rf conftest*
11195 wx_cv_type_wchar_t=no
0046ff7c 11196fi
698dcdb6 11197rm -f conftest*
d836ee96 11198
6232543b 11199fi
698dcdb6 11200rm -f conftest*
703e0a69 11201
1e487827 11202fi
698dcdb6
VZ
11203
11204echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
11205
11206if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 11207 cat >> confdefs.h <<\EOF
0046ff7c
VS
11208#define wxUSE_WCHAR_T 1
11209EOF
11210
11211fi
11212
19af3b06
VZ
11213
11214ac_ext=C
11215# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11216ac_cpp='$CXXCPP $CPPFLAGS'
11217ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11218ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11219cross_compiling=$ac_cv_prog_cxx_cross
11220
d836ee96 11221echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
1e6feb95 11222echo "configure:11223: checking if size_t is unsigned int" >&5
d836ee96
VZ
11223if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11224 echo $ac_n "(cached) $ac_c" 1>&6
11225else
dd2c8b7c 11226 cat > conftest.$ac_ext <<EOF
1e6feb95 11227#line 11228 "configure"
d836ee96
VZ
11228#include "confdefs.h"
11229#include <stddef.h>
11230int main() {
11231
dd2c8b7c
VZ
11232 return 0; }
11233
d836ee96 11234 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
11235
11236 int bar() {
d836ee96
VZ
11237
11238; return 0; }
11239EOF
1e6feb95 11240if { (eval echo configure:11241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11241 rm -rf conftest*
11242 wx_cv_size_t_is_uint=no
11243else
11244 echo "configure: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11246 rm -rf conftest*
11247 wx_cv_size_t_is_uint=yes
11248
11249fi
11250rm -f conftest*
11251
11252fi
11253
11254echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11255
11256if test "$wx_cv_size_t_is_uint" = "yes"; then
11257 cat >> confdefs.h <<\EOF
11258#define wxSIZE_T_IS_UINT 1
11259EOF
11260
11261else
11262 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
1e6feb95 11263echo "configure:11264: checking if size_t is unsigned long" >&5
d836ee96
VZ
11264if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11265 echo $ac_n "(cached) $ac_c" 1>&6
11266else
11267 cat > conftest.$ac_ext <<EOF
1e6feb95 11268#line 11269 "configure"
d836ee96
VZ
11269#include "confdefs.h"
11270#include <stddef.h>
11271int main() {
11272
dd2c8b7c
VZ
11273 return 0; }
11274
d836ee96 11275 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
11276
11277 int bar() {
d836ee96
VZ
11278
11279; return 0; }
11280EOF
1e6feb95 11281if { (eval echo configure:11282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11282 rm -rf conftest*
11283 wx_cv_size_t_is_ulong=no
11284else
11285 echo "configure: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11287 rm -rf conftest*
11288 wx_cv_size_t_is_ulong=yes
11289
11290fi
11291rm -f conftest*
11292
11293fi
11294
11295echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11296
11297 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11298 cat >> confdefs.h <<\EOF
11299#define wxSIZE_T_IS_ULONG 1
11300EOF
11301
11302 fi
11303fi
11304
19af3b06
VZ
11305ac_ext=c
11306# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11307ac_cpp='$CPP $CPPFLAGS'
11308ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11309ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11310cross_compiling=$ac_cv_prog_cc_cross
11311
11312
1e487827 11313
698dcdb6 11314echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
1e6feb95 11315echo "configure:11316: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
11316if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11317 echo $ac_n "(cached) $ac_c" 1>&6
11318else
11319
11320 cat > conftest.$ac_ext <<EOF
1e6feb95 11321#line 11322 "configure"
b12915c1
VZ
11322#include "confdefs.h"
11323#include <pwd.h>
698dcdb6 11324int main() {
b12915c1
VZ
11325
11326 char *p;
11327 struct passwd *pw;
11328 p = pw->pw_gecos;
698dcdb6
VZ
11329
11330; return 0; }
11331EOF
1e6feb95 11332if { (eval echo configure:11333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11333 rm -rf conftest*
11334
b12915c1 11335 wx_cv_struct_pw_gecos=yes
698dcdb6 11336
b12915c1 11337else
698dcdb6
VZ
11338 echo "configure: failed program was:" >&5
11339 cat conftest.$ac_ext >&5
11340 rm -rf conftest*
11341
b12915c1 11342 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
11343
11344
6232543b 11345fi
698dcdb6
VZ
11346rm -f conftest*
11347
703e0a69 11348
1e487827 11349fi
698dcdb6
VZ
11350
11351echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 11352
bd3277fe 11353if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 11354 cat >> confdefs.h <<\EOF
bd3277fe
VZ
11355#define HAVE_PW_GECOS 1
11356EOF
11357
11358fi
11359
698dcdb6
VZ
11360
11361echo $ac_n "checking for working const""... $ac_c" 1>&6
1e6feb95 11362echo "configure:11363: checking for working const" >&5
698dcdb6
VZ
11363if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11364 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11365else
698dcdb6 11366 cat > conftest.$ac_ext <<EOF
1e6feb95 11367#line 11368 "configure"
10f2d63a 11368#include "confdefs.h"
698dcdb6
VZ
11369
11370int main() {
11371
11372/* Ultrix mips cc rejects this. */
11373typedef int charset[2]; const charset x;
11374/* SunOS 4.1.1 cc rejects this. */
11375char const *const *ccp;
11376char **p;
11377/* NEC SVR4.0.2 mips cc rejects this. */
11378struct point {int x, y;};
11379static struct point const zero = {0,0};
11380/* AIX XL C 1.02.0.0 rejects this.
11381 It does not let you subtract one const X* pointer from another in an arm
11382 of an if-expression whose if-part is not a constant expression */
11383const char *g = "string";
11384ccp = &g + (g ? g-g : 0);
11385/* HPUX 7.0 cc rejects these. */
11386++ccp;
11387p = (char**) ccp;
11388ccp = (char const *const *) p;
11389{ /* SCO 3.2v4 cc rejects this. */
11390 char *t;
11391 char const *s = 0 ? (char *) 0 : (char const *) 0;
11392
11393 *t++ = 0;
10f2d63a 11394}
698dcdb6
VZ
11395{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11396 int x[] = {25, 17};
11397 const int *foo = &x[0];
11398 ++foo;
703e0a69 11399}
698dcdb6
VZ
11400{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11401 typedef const int *iptr;
11402 iptr p = 0;
11403 ++p;
6232543b 11404}
698dcdb6
VZ
11405{ /* AIX XL C 1.02.0.0 rejects this saying
11406 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11407 struct s { int j; const int *ap[3]; };
11408 struct s *b; b->j = 5;
1e487827 11409}
698dcdb6
VZ
11410{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11411 const int foo = 10;
11412}
11413
11414; return 0; }
11415EOF
1e6feb95 11416if { (eval echo configure:11417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11417 rm -rf conftest*
10f2d63a
VZ
11418 ac_cv_c_const=yes
11419else
698dcdb6
VZ
11420 echo "configure: failed program was:" >&5
11421 cat conftest.$ac_ext >&5
11422 rm -rf conftest*
11423 ac_cv_c_const=no
10f2d63a 11424fi
698dcdb6 11425rm -f conftest*
10f2d63a 11426fi
1e487827 11427
698dcdb6
VZ
11428echo "$ac_t""$ac_cv_c_const" 1>&6
11429if test $ac_cv_c_const = no; then
11430 cat >> confdefs.h <<\EOF
11431#define const
10f2d63a
VZ
11432EOF
11433
11434fi
11435
698dcdb6 11436echo $ac_n "checking for inline""... $ac_c" 1>&6
1e6feb95 11437echo "configure:11438: checking for inline" >&5
698dcdb6
VZ
11438if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11439 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11440else
11441 ac_cv_c_inline=no
11442for ac_kw in inline __inline__ __inline; do
698dcdb6 11443 cat > conftest.$ac_ext <<EOF
1e6feb95 11444#line 11445 "configure"
10f2d63a
VZ
11445#include "confdefs.h"
11446
698dcdb6
VZ
11447int main() {
11448} $ac_kw foo() {
11449; return 0; }
11450EOF
1e6feb95 11451if { (eval echo configure:11452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11452 rm -rf conftest*
10f2d63a
VZ
11453 ac_cv_c_inline=$ac_kw; break
11454else
698dcdb6
VZ
11455 echo "configure: failed program was:" >&5
11456 cat conftest.$ac_ext >&5
10f2d63a 11457fi
698dcdb6 11458rm -f conftest*
10f2d63a
VZ
11459done
11460
11461fi
698dcdb6
VZ
11462
11463echo "$ac_t""$ac_cv_c_inline" 1>&6
11464case "$ac_cv_c_inline" in
10f2d63a 11465 inline | yes) ;;
698dcdb6
VZ
11466 no) cat >> confdefs.h <<\EOF
11467#define inline
10f2d63a
VZ
11468EOF
11469 ;;
698dcdb6 11470 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
11471#define inline $ac_cv_c_inline
11472EOF
11473 ;;
11474esac
11475
698dcdb6
VZ
11476
11477echo $ac_n "checking size of char""... $ac_c" 1>&6
1e6feb95 11478echo "configure:11479: checking size of char" >&5
698dcdb6
VZ
11479if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11480 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 11481else
1e487827 11482 if test "$cross_compiling" = yes; then
698dcdb6 11483 ac_cv_sizeof_char=1
1e487827 11484else
698dcdb6 11485 cat > conftest.$ac_ext <<EOF
1e6feb95 11486#line 11487 "configure"
1e487827 11487#include "confdefs.h"
698dcdb6
VZ
11488#include <stdio.h>
11489main()
1e487827 11490{
698dcdb6
VZ
11491 FILE *f=fopen("conftestval", "w");
11492 if (!f) exit(1);
11493 fprintf(f, "%d\n", sizeof(char));
11494 exit(0);
1e487827 11495}
698dcdb6 11496EOF
1e6feb95 11497if { (eval echo configure:11498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11498then
11499 ac_cv_sizeof_char=`cat conftestval`
1e487827 11500else
698dcdb6
VZ
11501 echo "configure: failed program was:" >&5
11502 cat conftest.$ac_ext >&5
11503 rm -fr conftest*
1e487827
VS
11504 ac_cv_sizeof_char=0
11505fi
698dcdb6 11506rm -fr conftest*
1e487827 11507fi
10f2d63a 11508
1e487827 11509fi
698dcdb6
VZ
11510echo "$ac_t""$ac_cv_sizeof_char" 1>&6
11511cat >> confdefs.h <<EOF
11512#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 11513EOF
6232543b 11514
703e0a69 11515
698dcdb6 11516echo $ac_n "checking size of short""... $ac_c" 1>&6
1e6feb95 11517echo "configure:11518: checking size of short" >&5
698dcdb6
VZ
11518if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11519 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11520else
1e487827 11521 if test "$cross_compiling" = yes; then
698dcdb6 11522 ac_cv_sizeof_short=2
1e487827 11523else
698dcdb6 11524 cat > conftest.$ac_ext <<EOF
1e6feb95 11525#line 11526 "configure"
1e487827 11526#include "confdefs.h"
698dcdb6
VZ
11527#include <stdio.h>
11528main()
1e487827 11529{
698dcdb6
VZ
11530 FILE *f=fopen("conftestval", "w");
11531 if (!f) exit(1);
11532 fprintf(f, "%d\n", sizeof(short));
11533 exit(0);
1e487827 11534}
698dcdb6 11535EOF
1e6feb95 11536if { (eval echo configure:11537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11537then
11538 ac_cv_sizeof_short=`cat conftestval`
1e487827 11539else
698dcdb6
VZ
11540 echo "configure: failed program was:" >&5
11541 cat conftest.$ac_ext >&5
11542 rm -fr conftest*
11543 ac_cv_sizeof_short=0
1e487827 11544fi
698dcdb6 11545rm -fr conftest*
1e487827 11546fi
698dcdb6 11547
1e487827 11548fi
698dcdb6
VZ
11549echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11550cat >> confdefs.h <<EOF
11551#define SIZEOF_SHORT $ac_cv_sizeof_short
11552EOF
11553
11554
11555echo $ac_n "checking size of int *""... $ac_c" 1>&6
1e6feb95 11556echo "configure:11557: checking size of int *" >&5
698dcdb6
VZ
11557if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
11558 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11559else
11560 if test "$cross_compiling" = yes; then
698dcdb6 11561 ac_cv_sizeof_int_p=4
10f2d63a 11562else
698dcdb6 11563 cat > conftest.$ac_ext <<EOF
1e6feb95 11564#line 11565 "configure"
10f2d63a 11565#include "confdefs.h"
698dcdb6
VZ
11566#include <stdio.h>
11567main()
10f2d63a 11568{
698dcdb6
VZ
11569 FILE *f=fopen("conftestval", "w");
11570 if (!f) exit(1);
11571 fprintf(f, "%d\n", sizeof(int *));
11572 exit(0);
10f2d63a 11573}
698dcdb6 11574EOF
1e6feb95 11575if { (eval echo configure:11576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11576then
11577 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 11578else
698dcdb6
VZ
11579 echo "configure: failed program was:" >&5
11580 cat conftest.$ac_ext >&5
11581 rm -fr conftest*
11582 ac_cv_sizeof_int_p=0
6232543b 11583fi
698dcdb6 11584rm -fr conftest*
1e487827 11585fi
698dcdb6 11586
1e487827 11587fi
698dcdb6
VZ
11588echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
11589cat >> confdefs.h <<EOF
11590#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
11591EOF
11592
698dcdb6
VZ
11593
11594echo $ac_n "checking size of int""... $ac_c" 1>&6
1e6feb95 11595echo "configure:11596: checking size of int" >&5
698dcdb6
VZ
11596if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11597 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11598else
11599 if test "$cross_compiling" = yes; then
698dcdb6 11600 ac_cv_sizeof_int=4
703e0a69 11601else
698dcdb6 11602 cat > conftest.$ac_ext <<EOF
1e6feb95 11603#line 11604 "configure"
1e487827 11604#include "confdefs.h"
698dcdb6
VZ
11605#include <stdio.h>
11606main()
1e487827 11607{
698dcdb6
VZ
11608 FILE *f=fopen("conftestval", "w");
11609 if (!f) exit(1);
11610 fprintf(f, "%d\n", sizeof(int));
11611 exit(0);
1e487827 11612}
698dcdb6 11613EOF
1e6feb95 11614if { (eval echo configure:11615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11615then
11616 ac_cv_sizeof_int=`cat conftestval`
11617else
11618 echo "configure: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11620 rm -fr conftest*
11621 ac_cv_sizeof_int=0
703e0a69 11622fi
698dcdb6
VZ
11623rm -fr conftest*
11624fi
11625
11626fi
11627echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11628cat >> confdefs.h <<EOF
11629#define SIZEOF_INT $ac_cv_sizeof_int
11630EOF
11631
11632
11633echo $ac_n "checking size of long""... $ac_c" 1>&6
1e6feb95 11634echo "configure:11635: checking size of long" >&5
698dcdb6
VZ
11635if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11636 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11637else
11638 if test "$cross_compiling" = yes; then
698dcdb6 11639 ac_cv_sizeof_long=4
10f2d63a 11640else
698dcdb6 11641 cat > conftest.$ac_ext <<EOF
1e6feb95 11642#line 11643 "configure"
10f2d63a 11643#include "confdefs.h"
698dcdb6
VZ
11644#include <stdio.h>
11645main()
10f2d63a 11646{
698dcdb6
VZ
11647 FILE *f=fopen("conftestval", "w");
11648 if (!f) exit(1);
11649 fprintf(f, "%d\n", sizeof(long));
11650 exit(0);
10f2d63a 11651}
698dcdb6 11652EOF
1e6feb95 11653if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11654then
11655 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 11656else
698dcdb6
VZ
11657 echo "configure: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11659 rm -fr conftest*
11660 ac_cv_sizeof_long=0
10f2d63a 11661fi
698dcdb6 11662rm -fr conftest*
10f2d63a 11663fi
698dcdb6 11664
10f2d63a 11665fi
698dcdb6
VZ
11666echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11667cat >> confdefs.h <<EOF
11668#define SIZEOF_LONG $ac_cv_sizeof_long
11669EOF
11670
11671
11672echo $ac_n "checking size of long long""... $ac_c" 1>&6
1e6feb95 11673echo "configure:11674: checking size of long long" >&5
698dcdb6
VZ
11674if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
11675 echo $ac_n "(cached) $ac_c" 1>&6
11676else
11677 if test "$cross_compiling" = yes; then
11678 ac_cv_sizeof_long_long=0
11679else
11680 cat > conftest.$ac_ext <<EOF
1e6feb95 11681#line 11682 "configure"
698dcdb6
VZ
11682#include "confdefs.h"
11683#include <stdio.h>
11684main()
11685{
11686 FILE *f=fopen("conftestval", "w");
11687 if (!f) exit(1);
11688 fprintf(f, "%d\n", sizeof(long long));
11689 exit(0);
11690}
11691EOF
1e6feb95 11692if { (eval echo configure:11693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11693then
11694 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 11695else
698dcdb6
VZ
11696 echo "configure: failed program was:" >&5
11697 cat conftest.$ac_ext >&5
11698 rm -fr conftest*
6232543b
VS
11699 ac_cv_sizeof_long_long=0
11700fi
698dcdb6
VZ
11701rm -fr conftest*
11702fi
11703
703e0a69 11704fi
698dcdb6
VZ
11705echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
11706cat >> confdefs.h <<EOF
10f2d63a
VZ
11707#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11708EOF
11709
1e487827 11710
698dcdb6
VZ
11711
11712echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
1e6feb95 11713echo "configure:11714: checking size of wchar_t" >&5
698dcdb6
VZ
11714if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
11715 echo $ac_n "(cached) $ac_c" 1>&6
11716else
11717
b93d0d08
VS
11718 if test "$cross_compiling" = yes; then
11719 wx_cv_sizeof_wchar_t=4
1e6feb95 11720
b93d0d08 11721else
698dcdb6 11722 cat > conftest.$ac_ext <<EOF
1e6feb95 11723#line 11724 "configure"
b93d0d08
VS
11724#include "confdefs.h"
11725
1e6feb95
VZ
11726 #ifdef HAVE_WCHAR_H
11727 # include <wchar.h>
11728 #endif
11729 #ifdef HAVE_STDLIB_H
11730 # include <stdlib.h>
11731 #endif
11732 #include <stdio.h>
11733 int main()
11734 {
11735 FILE *f=fopen("conftestval", "w");
11736 if (!f) exit(1);
11737 fprintf(f, "%i", sizeof(wchar_t));
11738 exit(0);
11739 }
698dcdb6
VZ
11740
11741EOF
1e6feb95 11742if { (eval echo configure:11743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11743then
b93d0d08
VS
11744 wx_cv_sizeof_wchar_t=`cat conftestval`
11745else
698dcdb6
VZ
11746 echo "configure: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11748 rm -fr conftest*
11749 wx_cv_sizeof_wchar_t=0
b93d0d08 11750fi
698dcdb6 11751rm -fr conftest*
b93d0d08
VS
11752fi
11753
698dcdb6 11754
b93d0d08
VS
11755fi
11756
698dcdb6
VZ
11757echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
11758
11759cat >> confdefs.h <<EOF
28c6addc 11760#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
11761EOF
11762
698dcdb6
VZ
11763
11764
11765echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1e6feb95 11766echo "configure:11767: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
11767if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11768 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11769else
11770 ac_cv_c_bigendian=unknown
11771# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 11772cat > conftest.$ac_ext <<EOF
1e6feb95 11773#line 11774 "configure"
10f2d63a
VZ
11774#include "confdefs.h"
11775#include <sys/types.h>
11776#include <sys/param.h>
698dcdb6 11777int main() {
10f2d63a
VZ
11778
11779#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11780 bogus endian macros
11781#endif
698dcdb6
VZ
11782; return 0; }
11783EOF
1e6feb95 11784if { (eval echo configure:11785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11785 rm -rf conftest*
10f2d63a 11786 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 11787cat > conftest.$ac_ext <<EOF
1e6feb95 11788#line 11789 "configure"
10f2d63a
VZ
11789#include "confdefs.h"
11790#include <sys/types.h>
11791#include <sys/param.h>
698dcdb6 11792int main() {
10f2d63a
VZ
11793
11794#if BYTE_ORDER != BIG_ENDIAN
11795 not big endian
11796#endif
698dcdb6
VZ
11797; return 0; }
11798EOF
1e6feb95 11799if { (eval echo configure:11800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11800 rm -rf conftest*
10f2d63a
VZ
11801 ac_cv_c_bigendian=yes
11802else
698dcdb6
VZ
11803 echo "configure: failed program was:" >&5
11804 cat conftest.$ac_ext >&5
11805 rm -rf conftest*
11806 ac_cv_c_bigendian=no
10f2d63a 11807fi
698dcdb6 11808rm -f conftest*
10f2d63a 11809else
698dcdb6
VZ
11810 echo "configure: failed program was:" >&5
11811 cat conftest.$ac_ext >&5
10f2d63a 11812fi
698dcdb6 11813rm -f conftest*
10f2d63a
VZ
11814if test $ac_cv_c_bigendian = unknown; then
11815if test "$cross_compiling" = yes; then
11816 ac_cv_c_bigendian=unknown
11817else
698dcdb6 11818 cat > conftest.$ac_ext <<EOF
1e6feb95 11819#line 11820 "configure"
10f2d63a
VZ
11820#include "confdefs.h"
11821main () {
11822 /* Are we little or big endian? From Harbison&Steele. */
11823 union
11824 {
11825 long l;
11826 char c[sizeof (long)];
11827 } u;
11828 u.l = 1;
11829 exit (u.c[sizeof (long) - 1] == 1);
11830}
698dcdb6 11831EOF
1e6feb95 11832if { (eval echo configure:11833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11833then
10f2d63a
VZ
11834 ac_cv_c_bigendian=no
11835else
698dcdb6
VZ
11836 echo "configure: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
11838 rm -fr conftest*
11839 ac_cv_c_bigendian=yes
10f2d63a 11840fi
698dcdb6 11841rm -fr conftest*
10f2d63a 11842fi
698dcdb6 11843
10f2d63a
VZ
11844fi
11845fi
698dcdb6
VZ
11846
11847echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 11848if test $ac_cv_c_bigendian = unknown; then
698dcdb6 11849 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
10f2d63a
VZ
11850fi
11851if test $ac_cv_c_bigendian = yes; then
698dcdb6 11852 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11853#define WORDS_BIGENDIAN 1
11854EOF
11855
11856fi
11857
698dcdb6
VZ
11858
11859
10f2d63a 11860 if test "$cross_compiling" = "yes"; then
698dcdb6 11861 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11862#define wxUSE_IOSTREAMH 1
11863EOF
11864
11865 else
698dcdb6
VZ
11866
11867 ac_ext=C
11868# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 11869ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
11870ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11871ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11872cross_compiling=$ac_cv_prog_cxx_cross
11873
703e0a69 11874
698dcdb6 11875 for ac_hdr in iostream
10f2d63a 11876do
698dcdb6
VZ
11877ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11878echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1e6feb95 11879echo "configure:11880: checking for $ac_hdr" >&5
698dcdb6
VZ
11880if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11881 echo $ac_n "(cached) $ac_c" 1>&6
11882else
11883 cat > conftest.$ac_ext <<EOF
1e6feb95 11884#line 11885 "configure"
10f2d63a 11885#include "confdefs.h"
698dcdb6
VZ
11886#include <$ac_hdr>
11887EOF
11888ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 11889{ (eval echo configure:11890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11890ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11891if test -z "$ac_err"; then
11892 rm -rf conftest*
11893 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11894else
698dcdb6
VZ
11895 echo "$ac_err" >&5
11896 echo "configure: failed program was:" >&5
10f2d63a 11897 cat conftest.$ac_ext >&5
698dcdb6
VZ
11898 rm -rf conftest*
11899 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11900fi
698dcdb6 11901rm -f conftest*
10f2d63a 11902fi
698dcdb6
VZ
11903if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11904 echo "$ac_t""yes" 1>&6
11905 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11906 cat >> confdefs.h <<EOF
11907#define $ac_tr_hdr 1
10f2d63a 11908EOF
698dcdb6
VZ
11909
11910else
11911 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11912fi
11913done
11914
698dcdb6 11915
57fe5ed0
VZ
11916 if test "$ac_cv_header_iostream" = "yes" ; then
11917 :
11918 else
698dcdb6 11919 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11920#define wxUSE_IOSTREAMH 1
11921EOF
11922
10f2d63a
VZ
11923 fi
11924
11925 ac_ext=c
698dcdb6 11926# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 11927ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
11928ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11929ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11930cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
11931
11932 fi
11933
703e0a69 11934
698dcdb6
VZ
11935
11936 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
1e6feb95 11937echo "configure:11938: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
11938if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11939 echo $ac_n "(cached) $ac_c" 1>&6
11940else
11941
11942
11943 ac_ext=C
11944# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 11945ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
11946ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11947ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11948cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 11949
698dcdb6
VZ
11950
11951 cat > conftest.$ac_ext <<EOF
1e6feb95 11952#line 11953 "configure"
10f2d63a
VZ
11953#include "confdefs.h"
11954
698dcdb6
VZ
11955
11956int main() {
10f2d63a
VZ
11957
11958 bool b = true;
11959
11960 return 0;
698dcdb6
VZ
11961
11962; return 0; }
11963EOF
1e6feb95 11964if { (eval echo configure:11965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11965 rm -rf conftest*
11966
10f2d63a 11967 wx_cv_cpp_bool=yes
698dcdb6 11968
10f2d63a 11969else
698dcdb6
VZ
11970 echo "configure: failed program was:" >&5
11971 cat conftest.$ac_ext >&5
11972 rm -rf conftest*
11973
10f2d63a 11974 wx_cv_cpp_bool=no
698dcdb6
VZ
11975
11976
10f2d63a 11977fi
698dcdb6 11978rm -f conftest*
10f2d63a
VZ
11979
11980 ac_ext=c
698dcdb6 11981# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 11982ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
11983ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11984ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11985cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 11986
698dcdb6 11987
10f2d63a 11988fi
698dcdb6
VZ
11989
11990echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
11991
11992 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 11993 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11994#define HAVE_BOOL 1
11995EOF
11996
11997 fi
11998
1e487827 11999
698dcdb6
VZ
12000
12001echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
1e6feb95 12002echo "configure:12003: checking if you need GNU extensions" >&5
698dcdb6
VZ
12003if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
12004 echo $ac_n "(cached) $ac_c" 1>&6
12005else
12006
12007 cat > conftest.$ac_ext <<EOF
1e6feb95 12008#line 12009 "configure"
10f2d63a
VZ
12009#include "confdefs.h"
12010#include <features.h>
698dcdb6
VZ
12011int main() {
12012
10f2d63a
VZ
12013
12014#ifndef __GNU_LIBRARY__
12015 Compile error wanted
12016#endif
12017
698dcdb6
VZ
12018
12019; return 0; }
12020EOF
1e6feb95 12021if { (eval echo configure:12022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12022 rm -rf conftest*
10f2d63a
VZ
12023 wx_cv_gnu_extensions=yes
12024else
698dcdb6
VZ
12025 echo "configure: failed program was:" >&5
12026 cat conftest.$ac_ext >&5
12027 rm -rf conftest*
12028 wx_cv_gnu_extensions=no
10f2d63a 12029fi
698dcdb6 12030rm -f conftest*
10f2d63a
VZ
12031
12032fi
12033
698dcdb6
VZ
12034
12035echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
10f2d63a 12036if test "$wx_cv_gnu_extensions" = "yes"; then
698dcdb6 12037 cat >> confdefs.h <<EOF
10f2d63a
VZ
12038#define _GNU_SOURCE 1
12039EOF
12040
12041fi
12042
698dcdb6
VZ
12043
12044
12045echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
1e6feb95 12046echo "configure:12047: checking for wcslen in -lc" >&5
698dcdb6
VZ
12047ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12048if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12049 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12050else
698dcdb6 12051 ac_save_LIBS="$LIBS"
10f2d63a 12052LIBS="-lc $LIBS"
698dcdb6 12053cat > conftest.$ac_ext <<EOF
1e6feb95 12054#line 12055 "configure"
10f2d63a
VZ
12055#include "confdefs.h"
12056/* Override any gcc2 internal prototype to avoid an error. */
12057/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12058 builtin and then its argument prototype would still apply. */
12059char wcslen();
12060
12061int main() {
12062wcslen()
12063; return 0; }
12064EOF
1e6feb95 12065if { (eval echo configure:12066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12066 rm -rf conftest*
12067 eval "ac_cv_lib_$ac_lib_var=yes"
12068else
12069 echo "configure: failed program was:" >&5
12070 cat conftest.$ac_ext >&5
12071 rm -rf conftest*
12072 eval "ac_cv_lib_$ac_lib_var=no"
12073fi
12074rm -f conftest*
12075LIBS="$ac_save_LIBS"
12076
12077fi
12078if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12079 echo "$ac_t""yes" 1>&6
12080
12081 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12082#define HAVE_WCSLEN 1
12083EOF
12084
12085 WCHAR_LINK=""
698dcdb6 12086
10f2d63a 12087else
698dcdb6 12088 echo "$ac_t""no" 1>&6
10f2d63a 12089
698dcdb6 12090 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
1e6feb95 12091echo "configure:12092: checking for wcslen in -lw" >&5
698dcdb6
VZ
12092ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12093if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12094 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12095else
698dcdb6 12096 ac_save_LIBS="$LIBS"
10f2d63a 12097LIBS="-lw $LIBS"
698dcdb6 12098cat > conftest.$ac_ext <<EOF
1e6feb95 12099#line 12100 "configure"
10f2d63a
VZ
12100#include "confdefs.h"
12101/* Override any gcc2 internal prototype to avoid an error. */
12102/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12103 builtin and then its argument prototype would still apply. */
12104char wcslen();
12105
12106int main() {
12107wcslen()
12108; return 0; }
12109EOF
1e6feb95 12110if { (eval echo configure:12111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12111 rm -rf conftest*
12112 eval "ac_cv_lib_$ac_lib_var=yes"
12113else
12114 echo "configure: failed program was:" >&5
12115 cat conftest.$ac_ext >&5
12116 rm -rf conftest*
12117 eval "ac_cv_lib_$ac_lib_var=no"
12118fi
12119rm -f conftest*
12120LIBS="$ac_save_LIBS"
12121
12122fi
12123if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12124 echo "$ac_t""yes" 1>&6
12125
12126 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12127#define HAVE_WCSLEN 1
12128EOF
12129
12130 WCHAR_LINK="-lw"
698dcdb6
VZ
12131
12132else
12133 echo "$ac_t""no" 1>&6
6232543b 12134fi
10f2d63a 12135
698dcdb6 12136
1e487827 12137fi
703e0a69 12138
698dcdb6
VZ
12139
12140echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1e6feb95 12141echo "configure:12142: checking for vprintf" >&5
698dcdb6
VZ
12142if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12143 echo $ac_n "(cached) $ac_c" 1>&6
12144else
12145 cat > conftest.$ac_ext <<EOF
1e6feb95 12146#line 12147 "configure"
10f2d63a
VZ
12147#include "confdefs.h"
12148/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12149 which can conflict with char vprintf(); below. */
10f2d63a
VZ
12150#include <assert.h>
12151/* Override any gcc2 internal prototype to avoid an error. */
12152/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12153 builtin and then its argument prototype would still apply. */
12154char vprintf();
12155
12156int main() {
10f2d63a
VZ
12157
12158/* The GNU C library defines this for functions which it implements
12159 to always fail with ENOSYS. Some functions are actually named
12160 something starting with __ and the normal name is an alias. */
698dcdb6 12161#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
12162choke me
12163#else
698dcdb6 12164vprintf();
10f2d63a
VZ
12165#endif
12166
698dcdb6
VZ
12167; return 0; }
12168EOF
1e6feb95 12169if { (eval echo configure:12170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12170 rm -rf conftest*
12171 eval "ac_cv_func_vprintf=yes"
12172else
12173 echo "configure: failed program was:" >&5
12174 cat conftest.$ac_ext >&5
12175 rm -rf conftest*
12176 eval "ac_cv_func_vprintf=no"
12177fi
12178rm -f conftest*
12179fi
12180
12181if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12182 echo "$ac_t""yes" 1>&6
12183 cat >> confdefs.h <<\EOF
12184#define HAVE_VPRINTF 1
12185EOF
12186
12187else
12188 echo "$ac_t""no" 1>&6
12189fi
12190
12191if test "$ac_cv_func_vprintf" != yes; then
12192echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1e6feb95 12193echo "configure:12194: checking for _doprnt" >&5
698dcdb6
VZ
12194if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12195 echo $ac_n "(cached) $ac_c" 1>&6
12196else
12197 cat > conftest.$ac_ext <<EOF
1e6feb95 12198#line 12199 "configure"
10f2d63a
VZ
12199#include "confdefs.h"
12200/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12201 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
12202#include <assert.h>
12203/* Override any gcc2 internal prototype to avoid an error. */
12204/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12205 builtin and then its argument prototype would still apply. */
12206char _doprnt();
12207
12208int main() {
10f2d63a
VZ
12209
12210/* The GNU C library defines this for functions which it implements
12211 to always fail with ENOSYS. Some functions are actually named
12212 something starting with __ and the normal name is an alias. */
12213#if defined (__stub__doprnt) || defined (__stub____doprnt)
12214choke me
12215#else
698dcdb6 12216_doprnt();
10f2d63a
VZ
12217#endif
12218
698dcdb6
VZ
12219; return 0; }
12220EOF
1e6feb95 12221if { (eval echo configure:12222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12222 rm -rf conftest*
12223 eval "ac_cv_func__doprnt=yes"
12224else
12225 echo "configure: failed program was:" >&5
12226 cat conftest.$ac_ext >&5
12227 rm -rf conftest*
12228 eval "ac_cv_func__doprnt=no"
12229fi
12230rm -f conftest*
12231fi
12232
12233if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12234 echo "$ac_t""yes" 1>&6
12235 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12236#define HAVE_DOPRNT 1
12237EOF
12238
698dcdb6
VZ
12239else
12240 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12241fi
12242
12243fi
12244
1e487827 12245
698dcdb6
VZ
12246
12247
12248
12249
12250
12251echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
1e6feb95 12252echo "configure:12253: checking for vsnprintf" >&5
698dcdb6
VZ
12253if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12254 echo $ac_n "(cached) $ac_c" 1>&6
12255else
12256
12257 cat > conftest.$ac_ext <<EOF
1e6feb95 12258#line 12259 "configure"
f6bcfd97
BP
12259#include "confdefs.h"
12260
12261 #include <stdio.h>
698dcdb6
VZ
12262 #include <stdarg.h>
12263
12264int main() {
10f2d63a 12265
f6bcfd97 12266 int wx_test_vsnprintf(const char *, ...);
10f2d63a 12267
f6bcfd97
BP
12268 wx_test_vsnprintf("%s");
12269 return 0;
12270 }
12271
12272 int wx_test_vsnprintf(const char *fmt, ...)
12273 {
12274 char *s;
12275
12276 va_list argp;
12277 va_start(argp, fmt);
12278 vsnprintf(s, 42, fmt, argp);
12279 va_end(argp);
698dcdb6
VZ
12280
12281; return 0; }
12282EOF
1e6feb95 12283if { (eval echo configure:12284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12284 rm -rf conftest*
12285
f6bcfd97 12286 wx_cv_func_vsnprintf=yes
698dcdb6 12287
10f2d63a 12288else
698dcdb6
VZ
12289 echo "configure: failed program was:" >&5
12290 cat conftest.$ac_ext >&5
12291 rm -rf conftest*
12292
12293 cat > conftest.$ac_ext <<EOF
1e6feb95 12294#line 12295 "configure"
c521c494
RL
12295#include "confdefs.h"
12296
12297 #include <stdio.h>
12298 #include <stdarg.h>
698dcdb6
VZ
12299
12300int main() {
c521c494
RL
12301
12302 int wx_test_vsnprintf(const char *, ...);
12303
12304 wx_test_vsnprintf("%s");
12305 return 0;
12306 }
12307
12308 int wx_test_vsnprintf(const char *fmt, ...)
12309 {
12310 char *s;
12311
12312 va_list argp;
12313 va_start(argp, fmt);
12314 _vsnprintf(s, 42, fmt, argp);
12315 va_end(argp);
698dcdb6
VZ
12316
12317; return 0; }
12318EOF
1e6feb95 12319if { (eval echo configure:12320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12320 rm -rf conftest*
12321
c521c494 12322 wx_cv_func_vsnprintf=yes
698dcdb6 12323
c521c494 12324else
698dcdb6
VZ
12325 echo "configure: failed program was:" >&5
12326 cat conftest.$ac_ext >&5
12327 rm -rf conftest*
12328
c521c494 12329 wx_cv_func_vsnprintf=no
698dcdb6 12330
10f2d63a 12331fi
698dcdb6
VZ
12332rm -f conftest*
12333
6232543b 12334fi
698dcdb6 12335rm -f conftest*
703e0a69 12336
1e487827 12337fi
698dcdb6
VZ
12338
12339echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 12340
9d8deca0 12341if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 12342 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12343#define HAVE_VSNPRINTF 1
12344EOF
12345
12346else
698dcdb6 12347 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
12348fi
12349
698dcdb6 12350echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
1e6feb95 12351echo "configure:12352: checking for vsscanf" >&5
698dcdb6
VZ
12352if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12353 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12354else
698dcdb6
VZ
12355
12356 cat > conftest.$ac_ext <<EOF
1e6feb95 12357#line 12358 "configure"
10f2d63a 12358#include "confdefs.h"
10f2d63a 12359
f6bcfd97
BP
12360 #include <stdio.h>
12361 #include <stdarg.h>
698dcdb6
VZ
12362
12363int main() {
10f2d63a 12364
f6bcfd97 12365 int wx_test_vsscanf(const char *, ...);
10f2d63a 12366
f6bcfd97
BP
12367 wx_test_vsscanf("%d");
12368 return 0;
10f2d63a
VZ
12369 }
12370
f6bcfd97 12371 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 12372 {
f6bcfd97
BP
12373 va_list argp;
12374 va_start(argp, fmt);
12375 vsscanf("42", fmt, argp);
12376 va_end(argp);
698dcdb6
VZ
12377
12378; return 0; }
12379EOF
1e6feb95 12380if { (eval echo configure:12381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12381 rm -rf conftest*
12382
f6bcfd97 12383 wx_cv_func_vsscanf=yes
698dcdb6 12384
10f2d63a 12385else
698dcdb6
VZ
12386 echo "configure: failed program was:" >&5
12387 cat conftest.$ac_ext >&5
12388 rm -rf conftest*
12389
f6bcfd97 12390 wx_cv_func_vsscanf=no
698dcdb6 12391
6232543b 12392fi
698dcdb6 12393rm -f conftest*
703e0a69 12394
1e487827 12395fi
698dcdb6
VZ
12396
12397echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 12398
9d8deca0 12399if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 12400 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12401#define HAVE_VSSCANF 1
12402EOF
12403
12404fi
12405
95c8801c
VS
12406if test "$TOOLKIT" != "MSW"; then
12407
12408
12409
698dcdb6
VZ
12410ac_ext=C
12411# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12412ac_cpp='$CXXCPP $CPPFLAGS'
12413ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12414ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12415cross_compiling=$ac_cv_prog_cxx_cross
12416
12417echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
1e6feb95 12418echo "configure:12419: checking if iconv() takes char**" >&5
698dcdb6
VZ
12419if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12420 echo $ac_n "(cached) $ac_c" 1>&6
12421else
12422
12423 cat > conftest.$ac_ext <<EOF
1e6feb95 12424#line 12425 "configure"
95c8801c
VS
12425#include "confdefs.h"
12426#include <iconv.h>
698dcdb6 12427int main() {
95c8801c
VS
12428
12429 char **inbuf, **outbuf;
19af3b06
VZ
12430 iconv_t cd;
12431 size_t insz, outsz;
12432 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
12433
12434; return 0; }
12435EOF
1e6feb95 12436if { (eval echo configure:12437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12437 rm -rf conftest*
95c8801c
VS
12438 wx_cv_iconv_takes_char=yes
12439else
698dcdb6
VZ
12440 echo "configure: failed program was:" >&5
12441 cat conftest.$ac_ext >&5
12442 rm -rf conftest*
12443 wx_cv_iconv_takes_char=no
95c8801c 12444fi
698dcdb6 12445rm -f conftest*
95c8801c
VS
12446
12447fi
698dcdb6
VZ
12448
12449echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 12450ac_ext=c
698dcdb6 12451# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12452ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12453ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12454ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12455cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12456
95c8801c 12457if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 12458 cat >> confdefs.h <<\EOF
95c8801c
VS
12459#define WX_ICONV_TAKES_CHAR 1
12460EOF
12461
12462fi
10f2d63a 12463
1e487827 12464
698dcdb6
VZ
12465if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12466 for ac_func in sigaction
eb4efbdc 12467do
698dcdb6 12468echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 12469echo "configure:12470: checking for $ac_func" >&5
698dcdb6
VZ
12470if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12471 echo $ac_n "(cached) $ac_c" 1>&6
12472else
12473 cat > conftest.$ac_ext <<EOF
1e6feb95 12474#line 12475 "configure"
eb4efbdc
VZ
12475#include "confdefs.h"
12476/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12477 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
12478#include <assert.h>
12479/* Override any gcc2 internal prototype to avoid an error. */
12480/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12481 builtin and then its argument prototype would still apply. */
12482char $ac_func();
12483
12484int main() {
eb4efbdc
VZ
12485
12486/* The GNU C library defines this for functions which it implements
12487 to always fail with ENOSYS. Some functions are actually named
12488 something starting with __ and the normal name is an alias. */
12489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12490choke me
12491#else
698dcdb6 12492$ac_func();
eb4efbdc
VZ
12493#endif
12494
698dcdb6 12495; return 0; }
eb4efbdc 12496EOF
1e6feb95 12497if { (eval echo configure:12498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12498 rm -rf conftest*
12499 eval "ac_cv_func_$ac_func=yes"
12500else
12501 echo "configure: failed program was:" >&5
12502 cat conftest.$ac_ext >&5
12503 rm -rf conftest*
12504 eval "ac_cv_func_$ac_func=no"
12505fi
12506rm -f conftest*
12507fi
eb4efbdc 12508
698dcdb6
VZ
12509if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12510 echo "$ac_t""yes" 1>&6
12511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12512 cat >> confdefs.h <<EOF
12513#define $ac_tr_func 1
12514EOF
12515
12516else
12517 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
12518fi
12519done
12520
698dcdb6 12521
eb4efbdc 12522 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 12523 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
12524 wxUSE_ON_FATAL_EXCEPTION=no
12525 fi
f6bcfd97
BP
12526
12527 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
12528
12529 ac_ext=C
12530# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12531ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12532ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12533ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12534cross_compiling=$ac_cv_prog_cxx_cross
6232543b 12535
1e487827 12536
698dcdb6 12537 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
1e6feb95 12538echo "configure:12539: checking for sa_handler type" >&5
698dcdb6
VZ
12539if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12540 echo $ac_n "(cached) $ac_c" 1>&6
12541else
12542
12543 cat > conftest.$ac_ext <<EOF
1e6feb95 12544#line 12545 "configure"
f6bcfd97
BP
12545#include "confdefs.h"
12546#include <signal.h>
698dcdb6 12547int main() {
f6bcfd97
BP
12548
12549 extern void testSigHandler(int);
12550
12551 struct sigaction sa;
12552 sa.sa_handler = testSigHandler;
698dcdb6
VZ
12553
12554; return 0; }
12555EOF
1e6feb95 12556if { (eval echo configure:12557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12557 rm -rf conftest*
12558
f6bcfd97 12559 wx_cv_type_sa_handler=int
698dcdb6 12560
f6bcfd97 12561else
698dcdb6
VZ
12562 echo "configure: failed program was:" >&5
12563 cat conftest.$ac_ext >&5
12564 rm -rf conftest*
12565
f6bcfd97 12566 wx_cv_type_sa_handler=void
698dcdb6 12567
6232543b 12568fi
698dcdb6
VZ
12569rm -f conftest*
12570
1e487827 12571fi
698dcdb6
VZ
12572
12573echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
12574
12575 ac_ext=c
698dcdb6 12576# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 12577ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12578ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12579ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12580cross_compiling=$ac_cv_prog_cc_cross
12581
703e0a69 12582
698dcdb6 12583 cat >> confdefs.h <<EOF
f6bcfd97
BP
12584#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
12585EOF
12586
12587 fi
eb4efbdc
VZ
12588fi
12589
10f2d63a
VZ
12590for ac_func in vfork
12591do
698dcdb6 12592echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 12593echo "configure:12594: checking for $ac_func" >&5
698dcdb6
VZ
12594if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12595 echo $ac_n "(cached) $ac_c" 1>&6
12596else
12597 cat > conftest.$ac_ext <<EOF
1e6feb95 12598#line 12599 "configure"
10f2d63a
VZ
12599#include "confdefs.h"
12600/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12601 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
12602#include <assert.h>
12603/* Override any gcc2 internal prototype to avoid an error. */
12604/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12605 builtin and then its argument prototype would still apply. */
12606char $ac_func();
12607
12608int main() {
10f2d63a
VZ
12609
12610/* The GNU C library defines this for functions which it implements
12611 to always fail with ENOSYS. Some functions are actually named
12612 something starting with __ and the normal name is an alias. */
12613#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12614choke me
12615#else
698dcdb6 12616$ac_func();
10f2d63a
VZ
12617#endif
12618
698dcdb6 12619; return 0; }
10f2d63a 12620EOF
1e6feb95 12621if { (eval echo configure:12622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12622 rm -rf conftest*
12623 eval "ac_cv_func_$ac_func=yes"
12624else
12625 echo "configure: failed program was:" >&5
12626 cat conftest.$ac_ext >&5
12627 rm -rf conftest*
12628 eval "ac_cv_func_$ac_func=no"
12629fi
12630rm -f conftest*
12631fi
270a909e 12632
698dcdb6
VZ
12633if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12634 echo "$ac_t""yes" 1>&6
12635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12636 cat >> confdefs.h <<EOF
12637#define $ac_tr_func 1
12638EOF
12639
12640else
12641 echo "$ac_t""no" 1>&6
270a909e
VZ
12642fi
12643done
12644
1e487827 12645
698dcdb6
VZ
12646if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
12647 for ac_func in fcntl flock
4f3c5f06 12648do
698dcdb6 12649echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 12650echo "configure:12651: checking for $ac_func" >&5
698dcdb6
VZ
12651if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12652 echo $ac_n "(cached) $ac_c" 1>&6
12653else
12654 cat > conftest.$ac_ext <<EOF
1e6feb95 12655#line 12656 "configure"
4f3c5f06
VZ
12656#include "confdefs.h"
12657/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12658 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
12659#include <assert.h>
12660/* Override any gcc2 internal prototype to avoid an error. */
12661/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12662 builtin and then its argument prototype would still apply. */
12663char $ac_func();
12664
12665int main() {
4f3c5f06
VZ
12666
12667/* The GNU C library defines this for functions which it implements
12668 to always fail with ENOSYS. Some functions are actually named
12669 something starting with __ and the normal name is an alias. */
12670#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12671choke me
12672#else
698dcdb6 12673$ac_func();
4f3c5f06
VZ
12674#endif
12675
698dcdb6
VZ
12676; return 0; }
12677EOF
1e6feb95 12678if { (eval echo configure:12679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12679 rm -rf conftest*
12680 eval "ac_cv_func_$ac_func=yes"
12681else
12682 echo "configure: failed program was:" >&5
12683 cat conftest.$ac_ext >&5
12684 rm -rf conftest*
12685 eval "ac_cv_func_$ac_func=no"
12686fi
12687rm -f conftest*
12688fi
12689
12690if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12691 echo "$ac_t""yes" 1>&6
12692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12693 cat >> confdefs.h <<EOF
12694#define $ac_tr_func 1
4f3c5f06
VZ
12695EOF
12696 break
698dcdb6
VZ
12697else
12698 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
12699fi
12700done
12701
698dcdb6 12702
4f3c5f06 12703 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 12704 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
12705 wxUSE_SNGLINST_CHECKER=no
12706 fi
12707fi
12708
270a909e
VZ
12709for ac_func in timegm
12710do
698dcdb6 12711echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 12712echo "configure:12713: checking for $ac_func" >&5
698dcdb6
VZ
12713if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12714 echo $ac_n "(cached) $ac_c" 1>&6
12715else
12716 cat > conftest.$ac_ext <<EOF
1e6feb95 12717#line 12718 "configure"
270a909e
VZ
12718#include "confdefs.h"
12719/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12720 which can conflict with char $ac_func(); below. */
270a909e
VZ
12721#include <assert.h>
12722/* Override any gcc2 internal prototype to avoid an error. */
12723/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12724 builtin and then its argument prototype would still apply. */
12725char $ac_func();
12726
12727int main() {
270a909e
VZ
12728
12729/* The GNU C library defines this for functions which it implements
12730 to always fail with ENOSYS. Some functions are actually named
12731 something starting with __ and the normal name is an alias. */
12732#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12733choke me
12734#else
698dcdb6 12735$ac_func();
270a909e
VZ
12736#endif
12737
698dcdb6 12738; return 0; }
270a909e 12739EOF
1e6feb95 12740if { (eval echo configure:12741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12741 rm -rf conftest*
12742 eval "ac_cv_func_$ac_func=yes"
12743else
12744 echo "configure: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 rm -rf conftest*
12747 eval "ac_cv_func_$ac_func=no"
12748fi
12749rm -f conftest*
12750fi
10f2d63a 12751
698dcdb6
VZ
12752if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12753 echo "$ac_t""yes" 1>&6
12754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12755 cat >> confdefs.h <<EOF
12756#define $ac_tr_func 1
12757EOF
12758
12759else
12760 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12761fi
12762done
12763
698dcdb6 12764
8fd0d89b
VZ
12765for ac_func in putenv setenv
12766do
698dcdb6 12767echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 12768echo "configure:12769: checking for $ac_func" >&5
698dcdb6
VZ
12769if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12770 echo $ac_n "(cached) $ac_c" 1>&6
12771else
12772 cat > conftest.$ac_ext <<EOF
1e6feb95 12773#line 12774 "configure"
8fd0d89b
VZ
12774#include "confdefs.h"
12775/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12776 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
12777#include <assert.h>
12778/* Override any gcc2 internal prototype to avoid an error. */
12779/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12780 builtin and then its argument prototype would still apply. */
12781char $ac_func();
12782
12783int main() {
8fd0d89b
VZ
12784
12785/* The GNU C library defines this for functions which it implements
12786 to always fail with ENOSYS. Some functions are actually named
12787 something starting with __ and the normal name is an alias. */
12788#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12789choke me
12790#else
698dcdb6 12791$ac_func();
8fd0d89b
VZ
12792#endif
12793
698dcdb6
VZ
12794; return 0; }
12795EOF
1e6feb95 12796if { (eval echo configure:12797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12797 rm -rf conftest*
12798 eval "ac_cv_func_$ac_func=yes"
12799else
12800 echo "configure: failed program was:" >&5
12801 cat conftest.$ac_ext >&5
12802 rm -rf conftest*
12803 eval "ac_cv_func_$ac_func=no"
12804fi
12805rm -f conftest*
12806fi
12807
12808if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12809 echo "$ac_t""yes" 1>&6
12810 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12811 cat >> confdefs.h <<EOF
12812#define $ac_tr_func 1
8fd0d89b
VZ
12813EOF
12814 break
698dcdb6
VZ
12815else
12816 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
12817fi
12818done
12819
698dcdb6 12820
b12915c1
VZ
12821HAVE_SOME_SLEEP_FUNC=0
12822if test "$USE_BEOS" = 1; then
698dcdb6 12823 cat >> confdefs.h <<\EOF
b12915c1
VZ
12824#define HAVE_SLEEP 1
12825EOF
12826
12827 HAVE_SOME_SLEEP_FUNC=1
12828fi
12829
b4085ce6 12830if test "$USE_MAC" = 1; then
698dcdb6 12831 cat >> confdefs.h <<\EOF
b4085ce6
GD
12832#define HAVE_USLEEP 1
12833EOF
12834
12835 HAVE_SOME_SLEEP_FUNC=1
12836fi
12837
b12915c1
VZ
12838if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
12839 POSIX4_LINK=
698dcdb6 12840 for ac_func in nanosleep
10f2d63a 12841do
698dcdb6 12842echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 12843echo "configure:12844: checking for $ac_func" >&5
698dcdb6
VZ
12844if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12845 echo $ac_n "(cached) $ac_c" 1>&6
12846else
12847 cat > conftest.$ac_ext <<EOF
1e6feb95 12848#line 12849 "configure"
10f2d63a
VZ
12849#include "confdefs.h"
12850/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12851 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
12852#include <assert.h>
12853/* Override any gcc2 internal prototype to avoid an error. */
12854/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12855 builtin and then its argument prototype would still apply. */
12856char $ac_func();
12857
12858int main() {
10f2d63a
VZ
12859
12860/* The GNU C library defines this for functions which it implements
12861 to always fail with ENOSYS. Some functions are actually named
12862 something starting with __ and the normal name is an alias. */
12863#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12864choke me
12865#else
698dcdb6 12866$ac_func();
10f2d63a
VZ
12867#endif
12868
698dcdb6
VZ
12869; return 0; }
12870EOF
1e6feb95 12871if { (eval echo configure:12872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12872 rm -rf conftest*
12873 eval "ac_cv_func_$ac_func=yes"
12874else
12875 echo "configure: failed program was:" >&5
12876 cat conftest.$ac_ext >&5
12877 rm -rf conftest*
12878 eval "ac_cv_func_$ac_func=no"
12879fi
12880rm -f conftest*
12881fi
12882
12883if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12884 echo "$ac_t""yes" 1>&6
12885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12886 cat >> confdefs.h <<EOF
12887#define $ac_tr_func 1
12888EOF
12889 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12890#define HAVE_NANOSLEEP 1
12891EOF
12892
12893else
698dcdb6
VZ
12894 echo "$ac_t""no" 1>&6
12895echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1e6feb95 12896echo "configure:12897: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
12897ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
12898if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12899 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12900else
698dcdb6 12901 ac_save_LIBS="$LIBS"
10f2d63a 12902LIBS="-lposix4 $LIBS"
698dcdb6 12903cat > conftest.$ac_ext <<EOF
1e6feb95 12904#line 12905 "configure"
10f2d63a
VZ
12905#include "confdefs.h"
12906/* Override any gcc2 internal prototype to avoid an error. */
12907/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12908 builtin and then its argument prototype would still apply. */
12909char nanosleep();
12910
12911int main() {
12912nanosleep()
12913; return 0; }
12914EOF
1e6feb95 12915if { (eval echo configure:12916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12916 rm -rf conftest*
12917 eval "ac_cv_lib_$ac_lib_var=yes"
12918else
12919 echo "configure: failed program was:" >&5
12920 cat conftest.$ac_ext >&5
12921 rm -rf conftest*
12922 eval "ac_cv_lib_$ac_lib_var=no"
12923fi
12924rm -f conftest*
12925LIBS="$ac_save_LIBS"
12926
12927fi
12928if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12929 echo "$ac_t""yes" 1>&6
12930
12931 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12932#define HAVE_NANOSLEEP 1
12933EOF
12934
b12915c1 12935 POSIX4_LINK="-lposix4"
698dcdb6 12936
10f2d63a 12937else
698dcdb6 12938 echo "$ac_t""no" 1>&6
10f2d63a 12939
698dcdb6 12940 for ac_func in usleep
10f2d63a 12941do
698dcdb6 12942echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 12943echo "configure:12944: checking for $ac_func" >&5
698dcdb6
VZ
12944if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12945 echo $ac_n "(cached) $ac_c" 1>&6
12946else
12947 cat > conftest.$ac_ext <<EOF
1e6feb95 12948#line 12949 "configure"
10f2d63a
VZ
12949#include "confdefs.h"
12950/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12951 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
12952#include <assert.h>
12953/* Override any gcc2 internal prototype to avoid an error. */
12954/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12955 builtin and then its argument prototype would still apply. */
12956char $ac_func();
12957
12958int main() {
10f2d63a
VZ
12959
12960/* The GNU C library defines this for functions which it implements
12961 to always fail with ENOSYS. Some functions are actually named
12962 something starting with __ and the normal name is an alias. */
12963#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12964choke me
12965#else
698dcdb6 12966$ac_func();
10f2d63a
VZ
12967#endif
12968
698dcdb6
VZ
12969; return 0; }
12970EOF
1e6feb95 12971if { (eval echo configure:12972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12972 rm -rf conftest*
12973 eval "ac_cv_func_$ac_func=yes"
12974else
12975 echo "configure: failed program was:" >&5
12976 cat conftest.$ac_ext >&5
12977 rm -rf conftest*
12978 eval "ac_cv_func_$ac_func=no"
12979fi
12980rm -f conftest*
12981fi
12982
12983if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12984 echo "$ac_t""yes" 1>&6
12985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12986 cat >> confdefs.h <<EOF
12987#define $ac_tr_func 1
12988EOF
12989 cat >> confdefs.h <<\EOF
b4085ce6
GD
12990#define HAVE_USLEEP 1
12991EOF
12992
10f2d63a 12993else
698dcdb6
VZ
12994 echo "$ac_t""no" 1>&6
12995echo "configure: warning: wxSleep() function will not work" 1>&2
12996
10f2d63a
VZ
12997fi
12998done
12999
698dcdb6
VZ
13000
13001
10f2d63a
VZ
13002fi
13003
698dcdb6
VZ
13004
13005
10f2d63a
VZ
13006fi
13007done
13008
b12915c1 13009fi
10f2d63a
VZ
13010
13011for ac_func in uname gethostname
13012do
698dcdb6 13013echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 13014echo "configure:13015: checking for $ac_func" >&5
698dcdb6
VZ
13015if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13016 echo $ac_n "(cached) $ac_c" 1>&6
13017else
13018 cat > conftest.$ac_ext <<EOF
1e6feb95 13019#line 13020 "configure"
10f2d63a
VZ
13020#include "confdefs.h"
13021/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13022 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13023#include <assert.h>
13024/* Override any gcc2 internal prototype to avoid an error. */
13025/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13026 builtin and then its argument prototype would still apply. */
13027char $ac_func();
13028
13029int main() {
10f2d63a
VZ
13030
13031/* The GNU C library defines this for functions which it implements
13032 to always fail with ENOSYS. Some functions are actually named
13033 something starting with __ and the normal name is an alias. */
13034#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13035choke me
13036#else
698dcdb6 13037$ac_func();
10f2d63a
VZ
13038#endif
13039
698dcdb6
VZ
13040; return 0; }
13041EOF
1e6feb95 13042if { (eval echo configure:13043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13043 rm -rf conftest*
13044 eval "ac_cv_func_$ac_func=yes"
13045else
13046 echo "configure: failed program was:" >&5
13047 cat conftest.$ac_ext >&5
13048 rm -rf conftest*
13049 eval "ac_cv_func_$ac_func=no"
13050fi
13051rm -f conftest*
13052fi
13053
13054if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13055 echo "$ac_t""yes" 1>&6
13056 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13057 cat >> confdefs.h <<EOF
13058#define $ac_tr_func 1
10f2d63a
VZ
13059EOF
13060 break
698dcdb6
VZ
13061else
13062 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13063fi
13064done
13065
698dcdb6
VZ
13066
13067
13068ac_ext=C
13069# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13070ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13071ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13072ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13073cross_compiling=$ac_cv_prog_cxx_cross
13074
6098c7f9 13075
10f2d63a
VZ
13076for ac_func in strtok_r
13077do
698dcdb6 13078echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 13079echo "configure:13080: checking for $ac_func" >&5
698dcdb6
VZ
13080if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13081 echo $ac_n "(cached) $ac_c" 1>&6
13082else
13083 cat > conftest.$ac_ext <<EOF
1e6feb95 13084#line 13085 "configure"
10f2d63a
VZ
13085#include "confdefs.h"
13086/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13087 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13088#include <assert.h>
13089/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
13090#ifdef __cplusplus
13091extern "C"
13092#endif
10f2d63a 13093/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13094 builtin and then its argument prototype would still apply. */
13095char $ac_func();
13096
13097int main() {
10f2d63a
VZ
13098
13099/* The GNU C library defines this for functions which it implements
13100 to always fail with ENOSYS. Some functions are actually named
13101 something starting with __ and the normal name is an alias. */
13102#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13103choke me
13104#else
698dcdb6 13105$ac_func();
10f2d63a
VZ
13106#endif
13107
698dcdb6 13108; return 0; }
10f2d63a 13109EOF
1e6feb95 13110if { (eval echo configure:13111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13111 rm -rf conftest*
13112 eval "ac_cv_func_$ac_func=yes"
13113else
13114 echo "configure: failed program was:" >&5
13115 cat conftest.$ac_ext >&5
13116 rm -rf conftest*
13117 eval "ac_cv_func_$ac_func=no"
13118fi
13119rm -f conftest*
13120fi
10f2d63a 13121
698dcdb6
VZ
13122if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13123 echo "$ac_t""yes" 1>&6
13124 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13125 cat >> confdefs.h <<EOF
13126#define $ac_tr_func 1
13127EOF
13128
13129else
13130 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13131fi
13132done
13133
698dcdb6 13134
6098c7f9 13135ac_ext=c
698dcdb6 13136# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13137ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13138ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13139ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13140cross_compiling=$ac_cv_prog_cc_cross
6232543b 13141
1e487827 13142
698dcdb6 13143INET_LINK=
10f2d63a
VZ
13144for ac_func in inet_addr
13145do
698dcdb6 13146echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 13147echo "configure:13148: checking for $ac_func" >&5
698dcdb6
VZ
13148if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13149 echo $ac_n "(cached) $ac_c" 1>&6
13150else
13151 cat > conftest.$ac_ext <<EOF
1e6feb95 13152#line 13153 "configure"
10f2d63a
VZ
13153#include "confdefs.h"
13154/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
13155 which can conflict with char $ac_func(); below. */
13156#include <assert.h>
13157/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 13158/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13159 builtin and then its argument prototype would still apply. */
13160char $ac_func();
13161
13162int main() {
10f2d63a
VZ
13163
13164/* The GNU C library defines this for functions which it implements
13165 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
13166 something starting with __ and the normal name is an alias. */
13167#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13168choke me
13169#else
698dcdb6 13170$ac_func();
1e487827 13171#endif
703e0a69 13172
698dcdb6
VZ
13173; return 0; }
13174EOF
1e6feb95 13175if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13176 rm -rf conftest*
13177 eval "ac_cv_func_$ac_func=yes"
13178else
13179 echo "configure: failed program was:" >&5
13180 cat conftest.$ac_ext >&5
13181 rm -rf conftest*
13182 eval "ac_cv_func_$ac_func=no"
13183fi
13184rm -f conftest*
13185fi
13186
13187if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13188 echo "$ac_t""yes" 1>&6
13189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13190 cat >> confdefs.h <<EOF
13191#define $ac_tr_func 1
13192EOF
13193 cat >> confdefs.h <<\EOF
c63c7106
VZ
13194#define HAVE_INET_ADDR 1
13195EOF
13196
10f2d63a 13197else
698dcdb6
VZ
13198 echo "$ac_t""no" 1>&6
13199echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
1e6feb95 13200echo "configure:13201: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
13201ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13202if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13203 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13204else
698dcdb6 13205 ac_save_LIBS="$LIBS"
c63c7106 13206LIBS="-lnsl $LIBS"
698dcdb6 13207cat > conftest.$ac_ext <<EOF
1e6feb95 13208#line 13209 "configure"
c63c7106
VZ
13209#include "confdefs.h"
13210/* Override any gcc2 internal prototype to avoid an error. */
13211/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13212 builtin and then its argument prototype would still apply. */
13213char inet_addr();
13214
13215int main() {
13216inet_addr()
13217; return 0; }
13218EOF
1e6feb95 13219if { (eval echo configure:13220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13220 rm -rf conftest*
13221 eval "ac_cv_lib_$ac_lib_var=yes"
13222else
13223 echo "configure: failed program was:" >&5
13224 cat conftest.$ac_ext >&5
13225 rm -rf conftest*
13226 eval "ac_cv_lib_$ac_lib_var=no"
13227fi
13228rm -f conftest*
13229LIBS="$ac_save_LIBS"
13230
13231fi
13232if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13233 echo "$ac_t""yes" 1>&6
c63c7106
VZ
13234 INET_LINK="nsl"
13235else
698dcdb6
VZ
13236 echo "$ac_t""no" 1>&6
13237echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
1e6feb95 13238echo "configure:13239: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
13239ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13240if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13241 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13242else
698dcdb6 13243 ac_save_LIBS="$LIBS"
c63c7106 13244LIBS="-lresolv $LIBS"
698dcdb6 13245cat > conftest.$ac_ext <<EOF
1e6feb95 13246#line 13247 "configure"
c63c7106
VZ
13247#include "confdefs.h"
13248/* Override any gcc2 internal prototype to avoid an error. */
13249/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13250 builtin and then its argument prototype would still apply. */
13251char inet_addr();
13252
13253int main() {
13254inet_addr()
13255; return 0; }
13256EOF
1e6feb95 13257if { (eval echo configure:13258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13258 rm -rf conftest*
13259 eval "ac_cv_lib_$ac_lib_var=yes"
13260else
13261 echo "configure: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13263 rm -rf conftest*
13264 eval "ac_cv_lib_$ac_lib_var=no"
13265fi
13266rm -f conftest*
13267LIBS="$ac_save_LIBS"
c63c7106 13268
6232543b 13269fi
698dcdb6
VZ
13270if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13271 echo "$ac_t""yes" 1>&6
13272 INET_LINK="resolv"
13273
13274else
13275 echo "$ac_t""no" 1>&6
13276fi
c63c7106 13277
698dcdb6 13278
1e487827 13279fi
703e0a69 13280
698dcdb6
VZ
13281
13282
10f2d63a
VZ
13283fi
13284done
13285
698dcdb6 13286
10f2d63a
VZ
13287for ac_func in inet_aton
13288do
698dcdb6 13289echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 13290echo "configure:13291: checking for $ac_func" >&5
698dcdb6
VZ
13291if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13292 echo $ac_n "(cached) $ac_c" 1>&6
13293else
13294 cat > conftest.$ac_ext <<EOF
1e6feb95 13295#line 13296 "configure"
10f2d63a
VZ
13296#include "confdefs.h"
13297/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13298 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13299#include <assert.h>
13300/* Override any gcc2 internal prototype to avoid an error. */
13301/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13302 builtin and then its argument prototype would still apply. */
13303char $ac_func();
13304
13305int main() {
10f2d63a
VZ
13306
13307/* The GNU C library defines this for functions which it implements
13308 to always fail with ENOSYS. Some functions are actually named
13309 something starting with __ and the normal name is an alias. */
13310#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13311choke me
13312#else
698dcdb6 13313$ac_func();
10f2d63a
VZ
13314#endif
13315
698dcdb6
VZ
13316; return 0; }
13317EOF
1e6feb95 13318if { (eval echo configure:13319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13319 rm -rf conftest*
13320 eval "ac_cv_func_$ac_func=yes"
13321else
13322 echo "configure: failed program was:" >&5
13323 cat conftest.$ac_ext >&5
13324 rm -rf conftest*
13325 eval "ac_cv_func_$ac_func=no"
13326fi
13327rm -f conftest*
13328fi
13329
13330if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13331 echo "$ac_t""yes" 1>&6
13332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13333 cat >> confdefs.h <<EOF
13334#define $ac_tr_func 1
13335EOF
13336 cat >> confdefs.h <<\EOF
c63c7106
VZ
13337#define HAVE_INET_ATON 1
13338EOF
13339
10f2d63a 13340else
698dcdb6
VZ
13341 echo "$ac_t""no" 1>&6
13342 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
1e6feb95 13343echo "configure:13344: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
13344ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13345if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13346 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13347else
698dcdb6 13348 ac_save_LIBS="$LIBS"
c63c7106 13349LIBS="-l$INET_LINK $LIBS"
698dcdb6 13350cat > conftest.$ac_ext <<EOF
1e6feb95 13351#line 13352 "configure"
10f2d63a
VZ
13352#include "confdefs.h"
13353/* Override any gcc2 internal prototype to avoid an error. */
13354/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13355 builtin and then its argument prototype would still apply. */
13356char inet_aton();
13357
13358int main() {
13359inet_aton()
13360; return 0; }
13361EOF
1e6feb95 13362if { (eval echo configure:13363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13363 rm -rf conftest*
13364 eval "ac_cv_lib_$ac_lib_var=yes"
13365else
13366 echo "configure: failed program was:" >&5
13367 cat conftest.$ac_ext >&5
13368 rm -rf conftest*
13369 eval "ac_cv_lib_$ac_lib_var=no"
13370fi
13371rm -f conftest*
13372LIBS="$ac_save_LIBS"
13373
13374fi
13375if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13376 echo "$ac_t""yes" 1>&6
13377 cat >> confdefs.h <<\EOF
c63c7106 13378#define HAVE_INET_ATON 1
10f2d63a
VZ
13379EOF
13380
698dcdb6
VZ
13381else
13382 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13383fi
13384
698dcdb6 13385
c63c7106
VZ
13386fi
13387done
13388
698dcdb6 13389
c63c7106 13390if test "x$INET_LINK" != "x"; then
698dcdb6 13391 cat >> confdefs.h <<\EOF
c63c7106
VZ
13392#define HAVE_INET_ADDR 1
13393EOF
13394
13395 INET_LINK="-l$INET_LINK"
13396fi
10f2d63a
VZ
13397
13398fi
13399
698dcdb6
VZ
13400
13401cat > confcache <<\EOF
10f2d63a
VZ
13402# This file is a shell script that caches the results of configure
13403# tests run on this system so they can be shared between configure
698dcdb6
VZ
13404# scripts and configure runs. It is not useful on other systems.
13405# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 13406#
698dcdb6
VZ
13407# By default, configure uses ./config.cache as the cache file,
13408# creating it if it does not exist already. You can give configure
13409# the --cache-file=FILE option to use a different cache file; that is
13410# what configure does when it calls configure scripts in
13411# subdirectories, so they share the cache.
13412# Giving --cache-file=/dev/null disables caching, for debugging configure.
13413# config.status only pays attention to the cache file if you give it the
13414# --recheck option to rerun configure.
10f2d63a 13415#
698dcdb6 13416EOF
10f2d63a
VZ
13417# The following way of writing the cache mishandles newlines in values,
13418# but we know of no workaround that is simple, portable, and efficient.
13419# So, don't put newlines in cache variables' values.
13420# Ultrix sh set writes to stderr and can't be redirected directly,
13421# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
13422(set) 2>&1 |
13423 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13424 *ac_space=\ *)
13425 # `set' does not quote correctly, so add quotes (double-quote substitution
13426 # turns \\\\ into \\, and sed turns \\ into \).
13427 sed -n \
13428 -e "s/'/'\\\\''/g" \
13429 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13430 ;;
13431 *)
13432 # `set' quotes correctly as required by POSIX, so do not add quotes.
13433 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13434 ;;
13435 esac >> confcache
13436if cmp -s $cache_file confcache; then
13437 :
13438else
10f2d63a 13439 if test -w $cache_file; then
698dcdb6
VZ
13440 echo "updating cache $cache_file"
13441 cat confcache > $cache_file
10f2d63a
VZ
13442 else
13443 echo "not updating unwritable cache $cache_file"
13444 fi
13445fi
13446rm -f confcache
13447
698dcdb6
VZ
13448
13449
b089607b 13450if test "$TOOLKIT" != "MSW"; then
10f2d63a 13451
698dcdb6 13452
10f2d63a
VZ
13453THREADS_LINK=""
13454THREADS_OBJ=""
13455
13456if test "$wxUSE_THREADS" = "yes" ; then
13457 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 13458 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 13459 wxUSE_THREADS="no"
b12915c1 13460 elif test "$USE_BEOS" = 1; then
698dcdb6 13461 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 13462 wxUSE_THREADS="no"
10f2d63a
VZ
13463 fi
13464fi
13465
13466if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 13467
186837b0 13468 if test "$USE_AIX" = 1; then
f6bcfd97
BP
13469 THREADS_LIB=pthreads
13470 else
13471 THREADS_LIB=pthread
13472 fi
13473
698dcdb6 13474 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
1e6feb95 13475echo "configure:13476: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
13476ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13477if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13478 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13479else
698dcdb6 13480 ac_save_LIBS="$LIBS"
f6bcfd97 13481LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 13482cat > conftest.$ac_ext <<EOF
1e6feb95 13483#line 13484 "configure"
10f2d63a
VZ
13484#include "confdefs.h"
13485/* Override any gcc2 internal prototype to avoid an error. */
13486/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13487 builtin and then its argument prototype would still apply. */
13488char pthread_create();
13489
13490int main() {
13491pthread_create()
13492; return 0; }
13493EOF
1e6feb95 13494if { (eval echo configure:13495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13495 rm -rf conftest*
13496 eval "ac_cv_lib_$ac_lib_var=yes"
13497else
13498 echo "configure: failed program was:" >&5
13499 cat conftest.$ac_ext >&5
13500 rm -rf conftest*
13501 eval "ac_cv_lib_$ac_lib_var=no"
13502fi
13503rm -f conftest*
13504LIBS="$ac_save_LIBS"
10f2d63a 13505
698dcdb6
VZ
13506fi
13507if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13508 echo "$ac_t""yes" 1>&6
13509
10f2d63a 13510 THREADS_OBJ="threadpsx.lo"
f6bcfd97 13511 THREADS_LINK=$THREADS_LIB
698dcdb6 13512
10f2d63a 13513else
698dcdb6 13514 echo "$ac_t""no" 1>&6
10f2d63a 13515
698dcdb6 13516 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
1e6feb95 13517echo "configure:13518: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
13518ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13519if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13520 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13521else
698dcdb6 13522 ac_save_LIBS="$LIBS"
10f2d63a 13523LIBS="-lc_r $LIBS"
698dcdb6 13524cat > conftest.$ac_ext <<EOF
1e6feb95 13525#line 13526 "configure"
10f2d63a
VZ
13526#include "confdefs.h"
13527/* Override any gcc2 internal prototype to avoid an error. */
13528/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13529 builtin and then its argument prototype would still apply. */
13530char pthread_create();
13531
13532int main() {
13533pthread_create()
13534; return 0; }
13535EOF
1e6feb95 13536if { (eval echo configure:13537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13537 rm -rf conftest*
13538 eval "ac_cv_lib_$ac_lib_var=yes"
13539else
13540 echo "configure: failed program was:" >&5
13541 cat conftest.$ac_ext >&5
13542 rm -rf conftest*
13543 eval "ac_cv_lib_$ac_lib_var=no"
13544fi
13545rm -f conftest*
13546LIBS="$ac_save_LIBS"
10f2d63a 13547
698dcdb6
VZ
13548fi
13549if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13550 echo "$ac_t""yes" 1>&6
13551
10f2d63a
VZ
13552 THREADS_OBJ="threadpsx.lo"
13553 THREADS_LINK="c_r"
698dcdb6 13554
10f2d63a 13555else
698dcdb6 13556 echo "$ac_t""no" 1>&6
10f2d63a 13557
698dcdb6
VZ
13558 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
13559echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
1e6feb95 13560echo "configure:13561: checking for sys/prctl.h" >&5
698dcdb6
VZ
13561if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13562 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13563else
698dcdb6 13564 cat > conftest.$ac_ext <<EOF
1e6feb95 13565#line 13566 "configure"
10f2d63a
VZ
13566#include "confdefs.h"
13567#include <sys/prctl.h>
698dcdb6
VZ
13568EOF
13569ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 13570{ (eval echo configure:13571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13571ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13572if test -z "$ac_err"; then
13573 rm -rf conftest*
13574 eval "ac_cv_header_$ac_safe=yes"
1e487827 13575else
698dcdb6
VZ
13576 echo "$ac_err" >&5
13577 echo "configure: failed program was:" >&5
10f2d63a 13578 cat conftest.$ac_ext >&5
698dcdb6
VZ
13579 rm -rf conftest*
13580 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13581fi
698dcdb6 13582rm -f conftest*
10f2d63a 13583fi
698dcdb6
VZ
13584if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13585 echo "$ac_t""yes" 1>&6
13586
1f8ae82f 13587 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
13588
13589else
13590 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13591fi
13592
698dcdb6 13593
6232543b 13594fi
10f2d63a 13595
698dcdb6 13596
1e487827 13597fi
703e0a69 13598
698dcdb6 13599
10f2d63a
VZ
13600 if test -z "$THREADS_OBJ" ; then
13601 wxUSE_THREADS=no
698dcdb6 13602 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
13603 fi
13604fi
13605
13606if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 13607 for ac_func in thr_setconcurrency
70846f0a 13608do
698dcdb6 13609echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 13610echo "configure:13611: checking for $ac_func" >&5
698dcdb6
VZ
13611if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13612 echo $ac_n "(cached) $ac_c" 1>&6
13613else
13614 cat > conftest.$ac_ext <<EOF
1e6feb95 13615#line 13616 "configure"
70846f0a
VZ
13616#include "confdefs.h"
13617/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13618 which can conflict with char $ac_func(); below. */
70846f0a
VZ
13619#include <assert.h>
13620/* Override any gcc2 internal prototype to avoid an error. */
13621/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13622 builtin and then its argument prototype would still apply. */
13623char $ac_func();
13624
13625int main() {
70846f0a
VZ
13626
13627/* The GNU C library defines this for functions which it implements
13628 to always fail with ENOSYS. Some functions are actually named
13629 something starting with __ and the normal name is an alias. */
13630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13631choke me
13632#else
698dcdb6 13633$ac_func();
70846f0a
VZ
13634#endif
13635
698dcdb6 13636; return 0; }
70846f0a 13637EOF
1e6feb95 13638if { (eval echo configure:13639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13639 rm -rf conftest*
13640 eval "ac_cv_func_$ac_func=yes"
13641else
13642 echo "configure: failed program was:" >&5
13643 cat conftest.$ac_ext >&5
13644 rm -rf conftest*
13645 eval "ac_cv_func_$ac_func=no"
13646fi
13647rm -f conftest*
13648fi
70846f0a 13649
698dcdb6
VZ
13650if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13651 echo "$ac_t""yes" 1>&6
13652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13653 cat >> confdefs.h <<EOF
13654#define $ac_tr_func 1
13655EOF
13656
13657else
13658 echo "$ac_t""no" 1>&6
70846f0a
VZ
13659fi
13660done
13661
698dcdb6
VZ
13662
13663
13664 for ac_hdr in sched.h
10f2d63a 13665do
698dcdb6
VZ
13666ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13667echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1e6feb95 13668echo "configure:13669: checking for $ac_hdr" >&5
698dcdb6
VZ
13669if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13670 echo $ac_n "(cached) $ac_c" 1>&6
13671else
13672 cat > conftest.$ac_ext <<EOF
1e6feb95 13673#line 13674 "configure"
10f2d63a 13674#include "confdefs.h"
698dcdb6
VZ
13675#include <$ac_hdr>
13676EOF
13677ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 13678{ (eval echo configure:13679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13679ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13680if test -z "$ac_err"; then
13681 rm -rf conftest*
13682 eval "ac_cv_header_$ac_safe=yes"
1e487827 13683else
698dcdb6
VZ
13684 echo "$ac_err" >&5
13685 echo "configure: failed program was:" >&5
10f2d63a 13686 cat conftest.$ac_ext >&5
698dcdb6
VZ
13687 rm -rf conftest*
13688 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13689fi
698dcdb6 13690rm -f conftest*
10f2d63a 13691fi
698dcdb6
VZ
13692if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13693 echo "$ac_t""yes" 1>&6
13694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13695 cat >> confdefs.h <<EOF
13696#define $ac_tr_hdr 1
10f2d63a 13697EOF
698dcdb6
VZ
13698
13699else
13700 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13701fi
13702done
13703
698dcdb6
VZ
13704
13705 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
1e6feb95 13706echo "configure:13707: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
13707ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
13708if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13709 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13710else
698dcdb6 13711 ac_save_LIBS="$LIBS"
10f2d63a 13712LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13713cat > conftest.$ac_ext <<EOF
1e6feb95 13714#line 13715 "configure"
10f2d63a
VZ
13715#include "confdefs.h"
13716/* Override any gcc2 internal prototype to avoid an error. */
13717/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13718 builtin and then its argument prototype would still apply. */
13719char sched_yield();
13720
13721int main() {
13722sched_yield()
13723; return 0; }
13724EOF
1e6feb95 13725if { (eval echo configure:13726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13726 rm -rf conftest*
13727 eval "ac_cv_lib_$ac_lib_var=yes"
13728else
13729 echo "configure: failed program was:" >&5
13730 cat conftest.$ac_ext >&5
13731 rm -rf conftest*
13732 eval "ac_cv_lib_$ac_lib_var=no"
13733fi
13734rm -f conftest*
13735LIBS="$ac_save_LIBS"
13736
13737fi
13738if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13739 echo "$ac_t""yes" 1>&6
13740 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13741#define HAVE_SCHED_YIELD 1
13742EOF
13743
13744else
698dcdb6
VZ
13745 echo "$ac_t""no" 1>&6
13746echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
1e6feb95 13747echo "configure:13748: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
13748ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
13749if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13750 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13751else
698dcdb6 13752 ac_save_LIBS="$LIBS"
1e487827 13753LIBS="-lposix4 $LIBS"
698dcdb6 13754cat > conftest.$ac_ext <<EOF
1e6feb95 13755#line 13756 "configure"
10f2d63a
VZ
13756#include "confdefs.h"
13757/* Override any gcc2 internal prototype to avoid an error. */
13758/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13759 builtin and then its argument prototype would still apply. */
13760char sched_yield();
13761
13762int main() {
13763sched_yield()
13764; return 0; }
13765EOF
1e6feb95 13766if { (eval echo configure:13767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13767 rm -rf conftest*
13768 eval "ac_cv_lib_$ac_lib_var=yes"
13769else
13770 echo "configure: failed program was:" >&5
13771 cat conftest.$ac_ext >&5
13772 rm -rf conftest*
13773 eval "ac_cv_lib_$ac_lib_var=no"
13774fi
13775rm -f conftest*
13776LIBS="$ac_save_LIBS"
13777
13778fi
13779if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13780 echo "$ac_t""yes" 1>&6
13781 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13782#define HAVE_SCHED_YIELD 1
13783EOF
13784 POSIX4_LINK="-lposix4"
13785else
698dcdb6
VZ
13786 echo "$ac_t""no" 1>&6
13787echo "configure: warning: wxThread::Yield will not work properly" 1>&2
13788
6232543b 13789fi
10f2d63a 13790
698dcdb6 13791
1e487827 13792fi
703e0a69 13793
698dcdb6 13794
f6bcfd97 13795 HAVE_PRIOR_FUNCS=0
698dcdb6 13796 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
1e6feb95 13797echo "configure:13798: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
13798ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
13799if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13800 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13801else
698dcdb6 13802 ac_save_LIBS="$LIBS"
10f2d63a 13803LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13804cat > conftest.$ac_ext <<EOF
1e6feb95 13805#line 13806 "configure"
10f2d63a
VZ
13806#include "confdefs.h"
13807/* Override any gcc2 internal prototype to avoid an error. */
13808/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13809 builtin and then its argument prototype would still apply. */
13810char pthread_attr_getschedpolicy();
13811
13812int main() {
13813pthread_attr_getschedpolicy()
13814; return 0; }
13815EOF
1e6feb95 13816if { (eval echo configure:13817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13817 rm -rf conftest*
13818 eval "ac_cv_lib_$ac_lib_var=yes"
13819else
13820 echo "configure: failed program was:" >&5
13821 cat conftest.$ac_ext >&5
13822 rm -rf conftest*
13823 eval "ac_cv_lib_$ac_lib_var=no"
13824fi
13825rm -f conftest*
13826LIBS="$ac_save_LIBS"
13827
13828fi
13829if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13830 echo "$ac_t""yes" 1>&6
13831 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
1e6feb95 13832echo "configure:13833: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
13833ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
13834if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13835 echo $ac_n "(cached) $ac_c" 1>&6
13836else
13837 ac_save_LIBS="$LIBS"
f6bcfd97 13838LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13839cat > conftest.$ac_ext <<EOF
1e6feb95 13840#line 13841 "configure"
f6bcfd97
BP
13841#include "confdefs.h"
13842/* Override any gcc2 internal prototype to avoid an error. */
13843/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13844 builtin and then its argument prototype would still apply. */
13845char pthread_attr_setschedparam();
13846
13847int main() {
13848pthread_attr_setschedparam()
13849; return 0; }
13850EOF
1e6feb95 13851if { (eval echo configure:13852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13852 rm -rf conftest*
13853 eval "ac_cv_lib_$ac_lib_var=yes"
13854else
13855 echo "configure: failed program was:" >&5
13856 cat conftest.$ac_ext >&5
13857 rm -rf conftest*
13858 eval "ac_cv_lib_$ac_lib_var=no"
13859fi
13860rm -f conftest*
13861LIBS="$ac_save_LIBS"
13862
13863fi
13864if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13865 echo "$ac_t""yes" 1>&6
13866 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
1e6feb95 13867echo "configure:13868: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
13868ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13869if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13870 echo $ac_n "(cached) $ac_c" 1>&6
13871else
13872 ac_save_LIBS="$LIBS"
f6bcfd97 13873LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13874cat > conftest.$ac_ext <<EOF
1e6feb95 13875#line 13876 "configure"
f6bcfd97
BP
13876#include "confdefs.h"
13877/* Override any gcc2 internal prototype to avoid an error. */
13878/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13879 builtin and then its argument prototype would still apply. */
13880char sched_get_priority_max();
13881
13882int main() {
13883sched_get_priority_max()
13884; return 0; }
13885EOF
1e6feb95 13886if { (eval echo configure:13887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13887 rm -rf conftest*
13888 eval "ac_cv_lib_$ac_lib_var=yes"
13889else
13890 echo "configure: failed program was:" >&5
13891 cat conftest.$ac_ext >&5
13892 rm -rf conftest*
13893 eval "ac_cv_lib_$ac_lib_var=no"
13894fi
13895rm -f conftest*
13896LIBS="$ac_save_LIBS"
13897
13898fi
13899if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13900 echo "$ac_t""yes" 1>&6
f6bcfd97 13901 HAVE_PRIOR_FUNCS=1
10f2d63a 13902else
698dcdb6
VZ
13903 echo "$ac_t""no" 1>&6
13904echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
1e6feb95 13905echo "configure:13906: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
13906ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13907if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13908 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 13909else
698dcdb6 13910 ac_save_LIBS="$LIBS"
1e487827 13911LIBS="-lposix4 $LIBS"
698dcdb6 13912cat > conftest.$ac_ext <<EOF
1e6feb95 13913#line 13914 "configure"
10f2d63a 13914#include "confdefs.h"
6232543b 13915/* Override any gcc2 internal prototype to avoid an error. */
6232543b 13916/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13917 builtin and then its argument prototype would still apply. */
13918char sched_get_priority_max();
13919
13920int main() {
13921sched_get_priority_max()
13922; return 0; }
13923EOF
1e6feb95 13924if { (eval echo configure:13925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13925 rm -rf conftest*
13926 eval "ac_cv_lib_$ac_lib_var=yes"
13927else
13928 echo "configure: failed program was:" >&5
13929 cat conftest.$ac_ext >&5
13930 rm -rf conftest*
13931 eval "ac_cv_lib_$ac_lib_var=no"
13932fi
13933rm -f conftest*
13934LIBS="$ac_save_LIBS"
10f2d63a 13935
698dcdb6
VZ
13936fi
13937if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13938 echo "$ac_t""yes" 1>&6
13939
f6bcfd97
BP
13940 HAVE_PRIOR_FUNCS=1
13941 POSIX4_LINK="-lposix4"
698dcdb6
VZ
13942
13943else
13944 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13945fi
13946
698dcdb6 13947
10f2d63a
VZ
13948fi
13949
698dcdb6
VZ
13950
13951else
13952 echo "$ac_t""no" 1>&6
6232543b 13953fi
10f2d63a 13954
698dcdb6
VZ
13955
13956else
13957 echo "$ac_t""no" 1>&6
1e487827 13958fi
703e0a69 13959
698dcdb6 13960
f6bcfd97 13961 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 13962 cat >> confdefs.h <<\EOF
f6bcfd97
BP
13963#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
13964EOF
13965
13966 else
698dcdb6 13967 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
13968 fi
13969
698dcdb6 13970 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
1e6feb95 13971echo "configure:13972: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
13972ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
13973if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13974 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13975else
698dcdb6 13976 ac_save_LIBS="$LIBS"
10f2d63a 13977LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13978cat > conftest.$ac_ext <<EOF
1e6feb95 13979#line 13980 "configure"
10f2d63a
VZ
13980#include "confdefs.h"
13981/* Override any gcc2 internal prototype to avoid an error. */
13982/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13983 builtin and then its argument prototype would still apply. */
13984char pthread_cancel();
13985
13986int main() {
13987pthread_cancel()
13988; return 0; }
13989EOF
1e6feb95 13990if { (eval echo configure:13991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13991 rm -rf conftest*
13992 eval "ac_cv_lib_$ac_lib_var=yes"
13993else
13994 echo "configure: failed program was:" >&5
13995 cat conftest.$ac_ext >&5
13996 rm -rf conftest*
13997 eval "ac_cv_lib_$ac_lib_var=no"
13998fi
13999rm -f conftest*
14000LIBS="$ac_save_LIBS"
14001
14002fi
14003if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14004 echo "$ac_t""yes" 1>&6
14005 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14006#define HAVE_PTHREAD_CANCEL 1
14007EOF
14008
14009else
698dcdb6
VZ
14010 echo "$ac_t""no" 1>&6
14011echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
14012fi
14013
1e487827 14014
698dcdb6 14015 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
1e6feb95 14016echo "configure:14017: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
14017if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14018 echo $ac_n "(cached) $ac_c" 1>&6
14019else
14020
14021 cat > conftest.$ac_ext <<EOF
1e6feb95 14022#line 14023 "configure"
10f2d63a
VZ
14023#include "confdefs.h"
14024#include <pthread.h>
698dcdb6 14025int main() {
10f2d63a
VZ
14026
14027 pthread_cleanup_push(NULL, NULL);
14028 pthread_cleanup_pop(0);
698dcdb6
VZ
14029
14030; return 0; }
14031EOF
1e6feb95 14032if { (eval echo configure:14033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14033 rm -rf conftest*
14034
10f2d63a 14035 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 14036
10f2d63a 14037else
698dcdb6
VZ
14038 echo "configure: failed program was:" >&5
14039 cat conftest.$ac_ext >&5
14040 rm -rf conftest*
14041
10f2d63a 14042 wx_cv_func_pthread_cleanup_push=no
698dcdb6 14043
6232543b 14044fi
698dcdb6
VZ
14045rm -f conftest*
14046
1e487827 14047fi
698dcdb6
VZ
14048
14049echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 14050
d9b9876f 14051 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 14052 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14053#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14054EOF
14055
14056 fi
14057
698dcdb6
VZ
14058
14059 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
1e6feb95 14060echo "configure:14061: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
14061if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14062 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 14063else
698dcdb6
VZ
14064
14065 cat > conftest.$ac_ext <<EOF
1e6feb95 14066#line 14067 "configure"
d9b9876f
VZ
14067#include "confdefs.h"
14068#include <pthread.h>
698dcdb6 14069int main() {
d9b9876f
VZ
14070
14071 pthread_mutexattr_t attr;
14072 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
14073
14074; return 0; }
14075EOF
1e6feb95 14076if { (eval echo configure:14077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14077 rm -rf conftest*
14078
d9b9876f 14079 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 14080
d9b9876f 14081else
698dcdb6
VZ
14082 echo "configure: failed program was:" >&5
14083 cat conftest.$ac_ext >&5
14084 rm -rf conftest*
14085
d9b9876f 14086 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
14087
14088
6232543b 14089fi
698dcdb6
VZ
14090rm -f conftest*
14091
1e487827 14092fi
698dcdb6
VZ
14093
14094echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
14095
14096 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 14097 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14098#define HAVE_PTHREAD_MUTEXATTR_T 1
14099EOF
14100
14101 else
698dcdb6 14102 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
1e6feb95 14103echo "configure:14104: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
14104if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14105 echo $ac_n "(cached) $ac_c" 1>&6
14106else
14107
14108 cat > conftest.$ac_ext <<EOF
1e6feb95 14109#line 14110 "configure"
d9b9876f
VZ
14110#include "confdefs.h"
14111#include <pthread.h>
698dcdb6 14112int main() {
d9b9876f
VZ
14113
14114 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
14115
14116; return 0; }
14117EOF
1e6feb95 14118if { (eval echo configure:14119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14119 rm -rf conftest*
14120
d9b9876f 14121 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 14122
d9b9876f 14123else
698dcdb6
VZ
14124 echo "configure: failed program was:" >&5
14125 cat conftest.$ac_ext >&5
14126 rm -rf conftest*
14127
d9b9876f 14128 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
14129
14130
6232543b 14131fi
698dcdb6
VZ
14132rm -f conftest*
14133
1e487827 14134fi
698dcdb6
VZ
14135
14136echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 14137 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 14138 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14139#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14140EOF
14141
14142 else
698dcdb6 14143 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
14144 fi
14145 fi
14146
10f2d63a 14147 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
14148
14149 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14150 CFLAGS="${CFLAGS} -mt"
14151 CXXFLAGS="${CXXFLAGS} -mt"
14152 LDFLAGS="${LDFLAGS} -mt"
14153 fi
10f2d63a
VZ
14154fi
14155
14156fi
14157
14158if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 14159 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14160#define wxUSE_THREADS 1
14161EOF
14162
698dcdb6 14163
2c6025bc 14164 if test "$wxUSE_MAC" = "0"; then
10f2d63a 14165 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
14166 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14167 fi
10f2d63a
VZ
14168
14169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14170else
14171 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 14172 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
1e6feb95 14173echo "configure:14174: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
14174 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14175 CFLAGS="${CFLAGS} -D_REENTRANT"
14176 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
698dcdb6 14177 echo "$ac_t""yes" 1>&6
ab9b9eab 14178 else
698dcdb6 14179 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14180 fi
14181 fi
14182fi
14183
6f72b082 14184if test "$WXGTK20" = 1 ; then
698dcdb6 14185 cat >> confdefs.h <<EOF
6f72b082 14186#define __WXGTK20__ $WXGTK20
13111b2a
VZ
14187EOF
14188
14189 WXGTK12=1
14190fi
14191
10f2d63a 14192if test "$WXGTK12" = 1 ; then
698dcdb6 14193 cat >> confdefs.h <<EOF
10f2d63a
VZ
14194#define __WXGTK12__ $WXGTK12
14195EOF
14196
14197fi
14198
f6bcfd97 14199if test "$WXGTK127" = 1 ; then
698dcdb6 14200 cat >> confdefs.h <<EOF
f6bcfd97
BP
14201#define __WXGTK127__ $WXGTK127
14202EOF
14203
14204fi
14205
10f2d63a
VZ
14206if test "$WXWINE" = 1 ; then
14207 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14208fi
14209
b4085ce6 14210if test "$wxUSE_MAC" = 1 ; then
2c6025bc 14211 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
ea5999b9 14212 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
0c451ef3 14213 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings"
2f51a9ec
GD
14214 # Extract the first word of "Rez", so it can be a program name with args.
14215set dummy Rez; ac_word=$2
698dcdb6 14216echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1e6feb95 14217echo "configure:14218: checking for $ac_word" >&5
698dcdb6
VZ
14218if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14219 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14220else
14221 if test -n "$REZ"; then
14222 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14223else
698dcdb6
VZ
14224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14225 ac_dummy="$PATH"
14226 for ac_dir in $ac_dummy; do
14227 test -z "$ac_dir" && ac_dir=.
14228 if test -f $ac_dir/$ac_word; then
14229 ac_cv_prog_REZ="Rez"
14230 break
14231 fi
14232 done
14233 IFS="$ac_save_ifs"
2f51a9ec
GD
14234 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14235fi
14236fi
698dcdb6 14237REZ="$ac_cv_prog_REZ"
2f51a9ec 14238if test -n "$REZ"; then
698dcdb6 14239 echo "$ac_t""$REZ" 1>&6
2f51a9ec 14240else
698dcdb6 14241 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14242fi
14243
14244 # Extract the first word of "Derez", so it can be a program name with args.
14245set dummy Derez; ac_word=$2
698dcdb6 14246echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1e6feb95 14247echo "configure:14248: checking for $ac_word" >&5
698dcdb6
VZ
14248if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14249 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14250else
14251 if test -n "$DEREZ"; then
14252 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14253else
698dcdb6
VZ
14254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14255 ac_dummy="$PATH"
14256 for ac_dir in $ac_dummy; do
14257 test -z "$ac_dir" && ac_dir=.
14258 if test -f $ac_dir/$ac_word; then
14259 ac_cv_prog_DEREZ="Derez"
14260 break
14261 fi
14262 done
14263 IFS="$ac_save_ifs"
2f51a9ec
GD
14264 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14265fi
14266fi
698dcdb6 14267DEREZ="$ac_cv_prog_DEREZ"
2f51a9ec 14268if test -n "$DEREZ"; then
698dcdb6 14269 echo "$ac_t""$DEREZ" 1>&6
2f51a9ec 14270else
698dcdb6 14271 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14272fi
14273
14274 RESCOMP=${REZ}
14275 REZFLAGS="-d __UNIX__ -useDF"
14276 DEREZFLAGS="Carbon.r -useDF"
14277 RESFLAGS="Carbon.r -t APPL"
14278 LIBWXMACRES="\$(LIBWX_MACRES)"
14279 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
b4085ce6
GD
14280fi
14281
10f2d63a
VZ
14282if test "$wxUSE_CYGWIN" = 1 ; then
14283 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14284fi
14285
14286WXDEBUG=
14287
14288if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14289 WXDEBUG="-g"
14290 wxUSE_OPTIMISE=no
14291fi
14292
14293if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14294 wxUSE_DEBUG_INFO=yes
14295 WXDEBUG="-ggdb"
14296fi
14297
14298if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 14299 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14300#define WXDEBUG 1
14301EOF
14302
14303 WXDEBUG_DEFINE="-D__WXDEBUG__"
14304else
14305 if test "$wxUSE_GTK" = 1 ; then
14306 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14307 fi
14308fi
14309
14310if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 14311 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14312#define wxUSE_MEMORY_TRACING 1
14313EOF
14314
698dcdb6 14315 cat >> confdefs.h <<\EOF
10f2d63a 14316#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
14317EOF
14318
698dcdb6 14319 cat >> confdefs.h <<\EOF
47c13eb7 14320#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
14321EOF
14322
14323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14324fi
14325
14326if test "$wxUSE_DMALLOC" = "yes" ; then
14327 DMALLOC_LINK="-ldmalloc"
14328fi
14329
14330PROFILE=
14331if test "$wxUSE_PROFILE" = "yes" ; then
14332 PROFILE="-pg"
14333fi
14334
14335DEP_INFO_FLAGS=
caa2c79b 14336CODE_GEN_FLAGS=
0f3f1cbc 14337CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
14338if test "$GCC" = yes ; then
14339 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 14340 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
14341 fi
14342 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 14343 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
14344 fi
14345 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 14346 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
14347 fi
14348 if test "$wxUSE_NO_DEPS" = "no" ; then
14349 DEP_INFO_FLAGS="-MMD"
14350 fi
14351fi
14352
698dcdb6 14353
10f2d63a
VZ
14354CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14355CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14356if test "$wxUSE_OPTIMISE" = "no" ; then
14357 OPTIMISE=
14358else
14359 if test "$GCC" = yes ; then
14360 OPTIMISE="-O2"
14361 case "${host}" in
14362 i586-*-*|i686-*-* )
14363 OPTIMISE="${OPTIMISE} "
14364 ;;
14365 esac
14366 else
14367 OPTIMISE="-O"
14368 fi
14369fi
14370
698dcdb6 14371
10f2d63a 14372ZLIB_INCLUDE=
422107f9 14373if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 14374 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14375#define wxUSE_ZLIB 1
14376EOF
14377
422107f9
VZ
14378 if test "$wxUSE_ZLIB" = "yes" ; then
14379 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14380 else
14381 ZLIB_LINK=
698dcdb6
VZ
14382 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14383echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
1e6feb95 14384echo "configure:14385: checking for zlib.h" >&5
698dcdb6
VZ
14385if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14386 echo $ac_n "(cached) $ac_c" 1>&6
14387else
14388 cat > conftest.$ac_ext <<EOF
1e6feb95 14389#line 14390 "configure"
422107f9
VZ
14390#include "confdefs.h"
14391#include <zlib.h>
698dcdb6
VZ
14392EOF
14393ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 14394{ (eval echo configure:14395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14395ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14396if test -z "$ac_err"; then
14397 rm -rf conftest*
14398 eval "ac_cv_header_$ac_safe=yes"
422107f9 14399else
698dcdb6
VZ
14400 echo "$ac_err" >&5
14401 echo "configure: failed program was:" >&5
422107f9 14402 cat conftest.$ac_ext >&5
698dcdb6
VZ
14403 rm -rf conftest*
14404 eval "ac_cv_header_$ac_safe=no"
422107f9 14405fi
698dcdb6 14406rm -f conftest*
422107f9 14407fi
698dcdb6
VZ
14408if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14409 echo "$ac_t""yes" 1>&6
14410 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1e6feb95 14411echo "configure:14412: checking for deflate in -lz" >&5
698dcdb6
VZ
14412ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14413if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14414 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14415else
698dcdb6 14416 ac_save_LIBS="$LIBS"
422107f9 14417LIBS="-lz $LIBS"
698dcdb6 14418cat > conftest.$ac_ext <<EOF
1e6feb95 14419#line 14420 "configure"
422107f9
VZ
14420#include "confdefs.h"
14421/* Override any gcc2 internal prototype to avoid an error. */
14422/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14423 builtin and then its argument prototype would still apply. */
14424char deflate();
14425
14426int main() {
14427deflate()
14428; return 0; }
14429EOF
1e6feb95 14430if { (eval echo configure:14431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14431 rm -rf conftest*
14432 eval "ac_cv_lib_$ac_lib_var=yes"
14433else
14434 echo "configure: failed program was:" >&5
14435 cat conftest.$ac_ext >&5
14436 rm -rf conftest*
14437 eval "ac_cv_lib_$ac_lib_var=no"
14438fi
14439rm -f conftest*
14440LIBS="$ac_save_LIBS"
14441
14442fi
14443if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14444 echo "$ac_t""yes" 1>&6
422107f9 14445 ZLIB_LINK="-lz"
698dcdb6
VZ
14446else
14447 echo "$ac_t""no" 1>&6
422107f9
VZ
14448fi
14449
698dcdb6
VZ
14450else
14451 echo "$ac_t""no" 1>&6
422107f9
VZ
14452fi
14453
14454 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 14455 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
14456 fi
14457 fi
10f2d63a
VZ
14458fi
14459
14460PNG_INCLUDE=
422107f9 14461if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 14462 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14463#define wxUSE_LIBPNG 1
14464EOF
14465
41fd4136 14466 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 14467 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
14468 wxUSE_LIBPNG=yes
14469 fi
14470
14471 if test "$wxUSE_LIBPNG" = "yes" ; then
14472 PNG_INCLUDE="-I\${top_srcdir}/src/png"
14473 else
14474 PNG_LINK=
698dcdb6
VZ
14475 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
14476echo $ac_n "checking for png.h""... $ac_c" 1>&6
1e6feb95 14477echo "configure:14478: checking for png.h" >&5
698dcdb6
VZ
14478if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14479 echo $ac_n "(cached) $ac_c" 1>&6
14480else
14481 cat > conftest.$ac_ext <<EOF
1e6feb95 14482#line 14483 "configure"
422107f9
VZ
14483#include "confdefs.h"
14484#include <png.h>
698dcdb6
VZ
14485EOF
14486ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 14487{ (eval echo configure:14488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14488ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14489if test -z "$ac_err"; then
14490 rm -rf conftest*
14491 eval "ac_cv_header_$ac_safe=yes"
422107f9 14492else
698dcdb6
VZ
14493 echo "$ac_err" >&5
14494 echo "configure: failed program was:" >&5
422107f9 14495 cat conftest.$ac_ext >&5
698dcdb6
VZ
14496 rm -rf conftest*
14497 eval "ac_cv_header_$ac_safe=no"
422107f9 14498fi
698dcdb6 14499rm -f conftest*
422107f9 14500fi
698dcdb6
VZ
14501if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14502 echo "$ac_t""yes" 1>&6
14503 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
1e6feb95 14504echo "configure:14505: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
14505ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
14506if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14507 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14508else
698dcdb6 14509 ac_save_LIBS="$LIBS"
422107f9 14510LIBS="-lpng -lz -lm $LIBS"
698dcdb6 14511cat > conftest.$ac_ext <<EOF
1e6feb95 14512#line 14513 "configure"
422107f9
VZ
14513#include "confdefs.h"
14514/* Override any gcc2 internal prototype to avoid an error. */
14515/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14516 builtin and then its argument prototype would still apply. */
14517char png_check_sig();
14518
14519int main() {
14520png_check_sig()
14521; return 0; }
14522EOF
1e6feb95 14523if { (eval echo configure:14524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14524 rm -rf conftest*
14525 eval "ac_cv_lib_$ac_lib_var=yes"
14526else
14527 echo "configure: failed program was:" >&5
14528 cat conftest.$ac_ext >&5
14529 rm -rf conftest*
14530 eval "ac_cv_lib_$ac_lib_var=no"
14531fi
14532rm -f conftest*
14533LIBS="$ac_save_LIBS"
14534
14535fi
14536if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14537 echo "$ac_t""yes" 1>&6
422107f9 14538 PNG_LINK="-lpng"
698dcdb6
VZ
14539else
14540 echo "$ac_t""no" 1>&6
422107f9
VZ
14541fi
14542
698dcdb6
VZ
14543
14544else
14545 echo "$ac_t""no" 1>&6
422107f9
VZ
14546fi
14547
14548 if test "x$PNG_LINK" = "x" ; then
698dcdb6 14549 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
14550 fi
14551 fi
14552
10f2d63a
VZ
14553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
14554fi
14555
14556JPEG_INCLUDE=
422107f9 14557if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 14558 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14559#define wxUSE_LIBJPEG 1
14560EOF
14561
422107f9
VZ
14562 if test "$wxUSE_LIBJPEG" = "yes" ; then
14563 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
14564 else
14565 JPEG_LINK=
698dcdb6
VZ
14566 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
14567echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
1e6feb95 14568echo "configure:14569: checking for jpeglib.h" >&5
698dcdb6
VZ
14569if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14570 echo $ac_n "(cached) $ac_c" 1>&6
14571else
14572 cat > conftest.$ac_ext <<EOF
1e6feb95 14573#line 14574 "configure"
422107f9
VZ
14574#include "confdefs.h"
14575#include <jpeglib.h>
698dcdb6
VZ
14576EOF
14577ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 14578{ (eval echo configure:14579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14579ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14580if test -z "$ac_err"; then
14581 rm -rf conftest*
14582 eval "ac_cv_header_$ac_safe=yes"
6232543b 14583else
698dcdb6
VZ
14584 echo "$ac_err" >&5
14585 echo "configure: failed program was:" >&5
422107f9 14586 cat conftest.$ac_ext >&5
698dcdb6
VZ
14587 rm -rf conftest*
14588 eval "ac_cv_header_$ac_safe=no"
422107f9 14589fi
698dcdb6 14590rm -f conftest*
422107f9 14591fi
698dcdb6
VZ
14592if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14593 echo "$ac_t""yes" 1>&6
14594 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
1e6feb95 14595echo "configure:14596: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
14596ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
14597if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14598 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14599else
698dcdb6 14600 ac_save_LIBS="$LIBS"
422107f9 14601LIBS="-ljpeg $LIBS"
698dcdb6 14602cat > conftest.$ac_ext <<EOF
1e6feb95 14603#line 14604 "configure"
422107f9
VZ
14604#include "confdefs.h"
14605/* Override any gcc2 internal prototype to avoid an error. */
14606/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14607 builtin and then its argument prototype would still apply. */
14608char jpeg_read_header();
14609
14610int main() {
14611jpeg_read_header()
14612; return 0; }
14613EOF
1e6feb95 14614if { (eval echo configure:14615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14615 rm -rf conftest*
14616 eval "ac_cv_lib_$ac_lib_var=yes"
14617else
14618 echo "configure: failed program was:" >&5
14619 cat conftest.$ac_ext >&5
14620 rm -rf conftest*
14621 eval "ac_cv_lib_$ac_lib_var=no"
14622fi
14623rm -f conftest*
14624LIBS="$ac_save_LIBS"
14625
14626fi
14627if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14628 echo "$ac_t""yes" 1>&6
422107f9 14629 JPEG_LINK="-ljpeg"
698dcdb6
VZ
14630else
14631 echo "$ac_t""no" 1>&6
422107f9
VZ
14632fi
14633
698dcdb6
VZ
14634else
14635 echo "$ac_t""no" 1>&6
422107f9
VZ
14636fi
14637
14638 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 14639 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
14640 fi
14641 fi
10f2d63a
VZ
14642fi
14643
c7a2bf27 14644TIFF_INCLUDE=
0dcf9893 14645if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 14646 cat >> confdefs.h <<\EOF
c7a2bf27
RR
14647#define wxUSE_LIBTIFF 1
14648EOF
14649
665bbe97 14650 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
14651 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
14652 else
14653 TIFF_LINK=
698dcdb6
VZ
14654 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
14655echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
1e6feb95 14656echo "configure:14657: checking for tiffio.h" >&5
698dcdb6
VZ
14657if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14658 echo $ac_n "(cached) $ac_c" 1>&6
14659else
14660 cat > conftest.$ac_ext <<EOF
1e6feb95 14661#line 14662 "configure"
0dcf9893
VZ
14662#include "confdefs.h"
14663#include <tiffio.h>
698dcdb6
VZ
14664EOF
14665ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 14666{ (eval echo configure:14667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14667ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14668if test -z "$ac_err"; then
14669 rm -rf conftest*
14670 eval "ac_cv_header_$ac_safe=yes"
1e487827 14671else
698dcdb6
VZ
14672 echo "$ac_err" >&5
14673 echo "configure: failed program was:" >&5
0dcf9893 14674 cat conftest.$ac_ext >&5
698dcdb6
VZ
14675 rm -rf conftest*
14676 eval "ac_cv_header_$ac_safe=no"
0dcf9893 14677fi
698dcdb6 14678rm -f conftest*
0dcf9893 14679fi
698dcdb6
VZ
14680if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14681 echo "$ac_t""yes" 1>&6
14682 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
1e6feb95 14683echo "configure:14684: checking for TIFFError in -ltiff" >&5
698dcdb6
VZ
14684ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
14685if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14686 echo $ac_n "(cached) $ac_c" 1>&6
0dcf9893 14687else
698dcdb6 14688 ac_save_LIBS="$LIBS"
0dcf9893 14689LIBS="-ltiff -lm $LIBS"
698dcdb6 14690cat > conftest.$ac_ext <<EOF
1e6feb95 14691#line 14692 "configure"
0dcf9893
VZ
14692#include "confdefs.h"
14693/* Override any gcc2 internal prototype to avoid an error. */
14694/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14695 builtin and then its argument prototype would still apply. */
14696char TIFFError();
14697
14698int main() {
14699TIFFError()
14700; return 0; }
14701EOF
1e6feb95 14702if { (eval echo configure:14703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14703 rm -rf conftest*
14704 eval "ac_cv_lib_$ac_lib_var=yes"
14705else
14706 echo "configure: failed program was:" >&5
14707 cat conftest.$ac_ext >&5
14708 rm -rf conftest*
14709 eval "ac_cv_lib_$ac_lib_var=no"
14710fi
14711rm -f conftest*
14712LIBS="$ac_save_LIBS"
14713
14714fi
14715if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14716 echo "$ac_t""yes" 1>&6
0dcf9893 14717 TIFF_LINK="-ltiff"
698dcdb6
VZ
14718else
14719 echo "$ac_t""no" 1>&6
0dcf9893
VZ
14720fi
14721
698dcdb6
VZ
14722else
14723 echo "$ac_t""no" 1>&6
0dcf9893
VZ
14724fi
14725
14726 if test "x$TIFF_LINK" = "x" ; then
698dcdb6 14727 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
0dcf9893
VZ
14728 fi
14729 fi
c7a2bf27
RR
14730fi
14731
3fed1840
RR
14732FREETYPE_INCLUDE=
14733if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
698dcdb6 14734 cat >> confdefs.h <<\EOF
3fed1840
RR
14735#define wxUSE_FREETYPE 1
14736EOF
14737
14738 if test "$wxUSE_FREETYPE" = "yes" ; then
14739 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
14740 else
14741 FREETYPE_LINK=
698dcdb6
VZ
14742 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
14743echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
1e6feb95 14744echo "configure:14745: checking for freetype.h" >&5
698dcdb6
VZ
14745if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14746 echo $ac_n "(cached) $ac_c" 1>&6
14747else
14748 cat > conftest.$ac_ext <<EOF
1e6feb95 14749#line 14750 "configure"
3fed1840
RR
14750#include "confdefs.h"
14751#include <freetype.h>
698dcdb6
VZ
14752EOF
14753ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 14754{ (eval echo configure:14755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14755ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14756if test -z "$ac_err"; then
14757 rm -rf conftest*
14758 eval "ac_cv_header_$ac_safe=yes"
3fed1840 14759else
698dcdb6
VZ
14760 echo "$ac_err" >&5
14761 echo "configure: failed program was:" >&5
3fed1840 14762 cat conftest.$ac_ext >&5
698dcdb6
VZ
14763 rm -rf conftest*
14764 eval "ac_cv_header_$ac_safe=no"
3fed1840 14765fi
698dcdb6 14766rm -f conftest*
3fed1840 14767fi
698dcdb6
VZ
14768if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14769 echo "$ac_t""yes" 1>&6
14770 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
1e6feb95 14771echo "configure:14772: checking for FT_Render_Glyph in -lfreetype" >&5
698dcdb6
VZ
14772ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
14773if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14774 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 14775else
698dcdb6 14776 ac_save_LIBS="$LIBS"
3fed1840 14777LIBS="-lfreetype -lm $LIBS"
698dcdb6 14778cat > conftest.$ac_ext <<EOF
1e6feb95 14779#line 14780 "configure"
3fed1840
RR
14780#include "confdefs.h"
14781/* Override any gcc2 internal prototype to avoid an error. */
14782/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14783 builtin and then its argument prototype would still apply. */
14784char FT_Render_Glyph();
14785
14786int main() {
14787FT_Render_Glyph()
14788; return 0; }
14789EOF
1e6feb95 14790if { (eval echo configure:14791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14791 rm -rf conftest*
14792 eval "ac_cv_lib_$ac_lib_var=yes"
14793else
14794 echo "configure: failed program was:" >&5
14795 cat conftest.$ac_ext >&5
14796 rm -rf conftest*
14797 eval "ac_cv_lib_$ac_lib_var=no"
14798fi
14799rm -f conftest*
14800LIBS="$ac_save_LIBS"
14801
14802fi
14803if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14804 echo "$ac_t""yes" 1>&6
3fed1840 14805 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
14806else
14807 echo "$ac_t""no" 1>&6
3fed1840
RR
14808fi
14809
698dcdb6
VZ
14810
14811else
14812 echo "$ac_t""no" 1>&6
3fed1840
RR
14813fi
14814
14815 if test "x$FREETYPE_LINK" = "x" ; then
698dcdb6 14816 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
3fed1840
RR
14817 fi
14818 fi
14819fi
14820
10f2d63a 14821if test "$wxUSE_OPENGL" = "yes"; then
698dcdb6
VZ
14822 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14823echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
1e6feb95 14824echo "configure:14825: checking for GL/gl.h" >&5
698dcdb6
VZ
14825if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14826 echo $ac_n "(cached) $ac_c" 1>&6
14827else
14828 cat > conftest.$ac_ext <<EOF
1e6feb95 14829#line 14830 "configure"
10f2d63a
VZ
14830#include "confdefs.h"
14831#include <GL/gl.h>
698dcdb6
VZ
14832EOF
14833ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 14834{ (eval echo configure:14835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14835ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14836if test -z "$ac_err"; then
14837 rm -rf conftest*
14838 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 14839else
698dcdb6
VZ
14840 echo "$ac_err" >&5
14841 echo "configure: failed program was:" >&5
10f2d63a 14842 cat conftest.$ac_ext >&5
698dcdb6
VZ
14843 rm -rf conftest*
14844 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14845fi
698dcdb6 14846rm -f conftest*
10f2d63a 14847fi
698dcdb6
VZ
14848if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14849 echo "$ac_t""yes" 1>&6
14850
14851 cat >> confdefs.h <<\EOF
bdad4e7e
RR
14852#define wxUSE_OPENGL 1
14853EOF
14854
698dcdb6 14855 cat >> confdefs.h <<\EOF
bdad4e7e
RR
14856#define wxUSE_GLCANVAS 1
14857EOF
14858
698dcdb6 14859 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
1e6feb95 14860echo "configure:14861: checking for glFlush in -lGL" >&5
698dcdb6
VZ
14861ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
14862if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14863 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14864else
698dcdb6 14865 ac_save_LIBS="$LIBS"
bdad4e7e 14866LIBS="-lGL $LIBS"
698dcdb6 14867cat > conftest.$ac_ext <<EOF
1e6feb95 14868#line 14869 "configure"
10f2d63a
VZ
14869#include "confdefs.h"
14870/* Override any gcc2 internal prototype to avoid an error. */
14871/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14872 builtin and then its argument prototype would still apply. */
14873char glFlush();
6232543b 14874
698dcdb6
VZ
14875int main() {
14876glFlush()
14877; return 0; }
14878EOF
1e6feb95 14879if { (eval echo configure:14880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14880 rm -rf conftest*
14881 eval "ac_cv_lib_$ac_lib_var=yes"
14882else
14883 echo "configure: failed program was:" >&5
14884 cat conftest.$ac_ext >&5
14885 rm -rf conftest*
14886 eval "ac_cv_lib_$ac_lib_var=no"
14887fi
14888rm -f conftest*
14889LIBS="$ac_save_LIBS"
1e487827 14890
698dcdb6
VZ
14891fi
14892if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14893 echo "$ac_t""yes" 1>&6
14894
14895 OPENGL_LINK="-lGL -lGLU"
14896
10f2d63a 14897else
698dcdb6 14898 echo "$ac_t""no" 1>&6
10f2d63a 14899
698dcdb6 14900 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
1e6feb95 14901echo "configure:14902: checking for glFlush in -lMesaGL" >&5
698dcdb6
VZ
14902ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
14903if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14904 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14905else
698dcdb6 14906 ac_save_LIBS="$LIBS"
10f2d63a 14907LIBS="-lMesaGL $LIBS"
698dcdb6 14908cat > conftest.$ac_ext <<EOF
1e6feb95 14909#line 14910 "configure"
10f2d63a
VZ
14910#include "confdefs.h"
14911/* Override any gcc2 internal prototype to avoid an error. */
14912/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14913 builtin and then its argument prototype would still apply. */
14914char glFlush();
14915
14916int main() {
14917glFlush()
14918; return 0; }
14919EOF
1e6feb95 14920if { (eval echo configure:14921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14921 rm -rf conftest*
14922 eval "ac_cv_lib_$ac_lib_var=yes"
14923else
14924 echo "configure: failed program was:" >&5
14925 cat conftest.$ac_ext >&5
14926 rm -rf conftest*
14927 eval "ac_cv_lib_$ac_lib_var=no"
14928fi
14929rm -f conftest*
14930LIBS="$ac_save_LIBS"
10f2d63a 14931
698dcdb6
VZ
14932fi
14933if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14934 echo "$ac_t""yes" 1>&6
14935
f6bcfd97 14936 OPENGL_LINK="-lMesaGL -lMesaGLU"
698dcdb6
VZ
14937
14938else
14939 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14940fi
14941
698dcdb6 14942
10f2d63a
VZ
14943fi
14944
698dcdb6 14945
10f2d63a 14946else
698dcdb6
VZ
14947 echo "$ac_t""no" 1>&6
14948wxUSE_OPENGL=0
10f2d63a
VZ
14949fi
14950
14951fi
14952
698dcdb6 14953
10f2d63a 14954if test "$wxUSE_GUI" = "yes"; then
698dcdb6 14955 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14956#define wxUSE_GUI 1
14957EOF
14958
698dcdb6 14959
10f2d63a 14960 else
698dcdb6 14961 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14962#define wxUSE_NOGUI 1
14963EOF
14964
14965fi
14966
698dcdb6 14967
10f2d63a 14968if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 14969 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14970#define wxUSE_UNIX 1
14971EOF
14972
14973fi
14974
698dcdb6 14975
10f2d63a 14976if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 14977 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14978#define wxUSE_APPLE_IEEE 1
14979EOF
14980
14981fi
14982
1e6feb95
VZ
14983if test "$wxUSE_TIMER" = "yes"; then
14984 cat >> confdefs.h <<\EOF
14985#define wxUSE_TIMER 1
14986EOF
14987
14988fi
14989
10f2d63a 14990if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 14991 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14992#define wxUSE_WAVE 1
14993EOF
14994
14995fi
14996
1e6feb95
VZ
14997if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
14998 cat >> confdefs.h <<\EOF
14999#define wxUSE_CMDLINE_PARSER 1
15000EOF
15001
15002fi
15003
15004if test "$wxUSE_STOPWATCH" = "yes"; then
15005 cat >> confdefs.h <<\EOF
15006#define wxUSE_STOPWATCH 1
15007EOF
15008
15009fi
15010
15011if test "$wxUSE_DATETIME" = "yes"; then
15012 cat >> confdefs.h <<\EOF
15013#define wxUSE_DATETIME 1
15014EOF
15015
15016fi
15017
15018if test "$wxUSE_TIMEDATE" = "yes"; then
15019 cat >> confdefs.h <<\EOF
15020#define wxUSE_TIMEDATE 1
15021EOF
15022
15023fi
15024
10f2d63a 15025if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15026 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15027#define wxUSE_FILE 1
15028EOF
15029
15030fi
15031
1e6feb95
VZ
15032if test "$wxUSE_FFILE" = "yes"; then
15033 cat >> confdefs.h <<\EOF
15034#define wxUSE_FFILE 1
15035EOF
15036
15037fi
15038
24528b0c 15039if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15040 cat >> confdefs.h <<\EOF
24528b0c
VS
15041#define wxUSE_FILESYSTEM 1
15042EOF
15043
15044fi
15045
10f2d63a 15046if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15047 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15048#define wxUSE_FS_INET 1
15049EOF
15050
15051fi
15052
15053if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15054 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15055#define wxUSE_FS_ZIP 1
15056EOF
15057
15058fi
15059
15060if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15061 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15062#define wxUSE_ZIPSTREAM 1
15063EOF
15064
15065fi
15066
eb4efbdc 15067if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15068 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15069#define wxUSE_ON_FATAL_EXCEPTION 1
15070EOF
15071
15072fi
15073
4f3c5f06 15074if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15075 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15076#define wxUSE_SNGLINST_CHECKER 1
15077EOF
15078
15079fi
15080
10f2d63a 15081if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 15082 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15083#define wxUSE_BUSYINFO 1
15084EOF
15085
15086fi
15087
15088if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 15089 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15090#define wxUSE_STD_IOSTREAM 1
15091EOF
15092
15093fi
15094
15095if test "$wxUSE_TEXTFILE" = "yes"; then
15096 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15097 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15098 else
698dcdb6 15099 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15100#define wxUSE_TEXTFILE 1
15101EOF
15102
15103 fi
15104fi
15105
15106if test "$wxUSE_CONFIG" = "yes" ; then
15107 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 15108 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 15109 else
698dcdb6 15110 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15111#define wxUSE_CONFIG 1
15112EOF
15113
15114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15115 fi
15116fi
15117
15118if test "$wxUSE_INTL" = "yes" ; then
15119 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15120 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15121 else
698dcdb6 15122 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15123#define wxUSE_INTL 1
15124EOF
15125
15126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 15127 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
15128 fi
15129fi
15130
15131if test "$wxUSE_LOG" = "yes"; then
698dcdb6 15132 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15133#define wxUSE_LOG 1
15134EOF
15135
15136fi
15137
15138if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 15139 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15140#define wxUSE_LONGLONG 1
15141EOF
15142
15143fi
15144
e8f65ba6 15145if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 15146 cat >> confdefs.h <<\EOF
e8f65ba6
RR
15147#define wxUSE_GEOMETRY 1
15148EOF
15149
15150fi
15151
10f2d63a 15152if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 15153 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15154#define wxUSE_DIALUP_MANAGER 1
15155EOF
15156
70f7a477 15157 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
15158fi
15159
15160if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 15161 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15162#define wxUSE_STREAMS 1
15163EOF
15164
15165fi
15166
1e487827 15167
1e6feb95 15168if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 15169 for ac_func in strptime
83307f33 15170do
698dcdb6 15171echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 15172echo "configure:15173: checking for $ac_func" >&5
698dcdb6
VZ
15173if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15174 echo $ac_n "(cached) $ac_c" 1>&6
15175else
15176 cat > conftest.$ac_ext <<EOF
1e6feb95 15177#line 15178 "configure"
83307f33
VZ
15178#include "confdefs.h"
15179/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15180 which can conflict with char $ac_func(); below. */
83307f33
VZ
15181#include <assert.h>
15182/* Override any gcc2 internal prototype to avoid an error. */
15183/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15184 builtin and then its argument prototype would still apply. */
15185char $ac_func();
15186
15187int main() {
83307f33
VZ
15188
15189/* The GNU C library defines this for functions which it implements
15190 to always fail with ENOSYS. Some functions are actually named
15191 something starting with __ and the normal name is an alias. */
15192#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15193choke me
15194#else
698dcdb6 15195$ac_func();
83307f33
VZ
15196#endif
15197
698dcdb6 15198; return 0; }
83307f33 15199EOF
1e6feb95 15200if { (eval echo configure:15201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15201 rm -rf conftest*
15202 eval "ac_cv_func_$ac_func=yes"
15203else
15204 echo "configure: failed program was:" >&5
15205 cat conftest.$ac_ext >&5
15206 rm -rf conftest*
15207 eval "ac_cv_func_$ac_func=no"
15208fi
15209rm -f conftest*
15210fi
83307f33 15211
698dcdb6
VZ
15212if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15213 echo "$ac_t""yes" 1>&6
15214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15215 cat >> confdefs.h <<EOF
15216#define $ac_tr_func 1
15217EOF
15218
15219else
15220 echo "$ac_t""no" 1>&6
83307f33
VZ
15221fi
15222done
15223
1e487827 15224
698dcdb6 15225 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
1e6feb95 15226echo "configure:15227: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
15227if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15228 echo $ac_n "(cached) $ac_c" 1>&6
15229else
15230
15231 cat > conftest.$ac_ext <<EOF
1e6feb95 15232#line 15233 "configure"
360d6699
VZ
15233#include "confdefs.h"
15234
b4085ce6 15235 #include <time.h>
698dcdb6
VZ
15236
15237int main() {
360d6699
VZ
15238
15239 int tz;
15240 tz = __timezone;
698dcdb6
VZ
15241
15242; return 0; }
15243EOF
1e6feb95 15244if { (eval echo configure:15245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15245 rm -rf conftest*
15246
360d6699 15247 wx_cv_var_timezone=__timezone
698dcdb6 15248
360d6699 15249else
698dcdb6
VZ
15250 echo "configure: failed program was:" >&5
15251 cat conftest.$ac_ext >&5
15252 rm -rf conftest*
15253
15254 cat > conftest.$ac_ext <<EOF
1e6feb95 15255#line 15256 "configure"
360d6699
VZ
15256#include "confdefs.h"
15257
b4085ce6 15258 #include <time.h>
698dcdb6
VZ
15259
15260int main() {
360d6699
VZ
15261
15262 int tz;
15263 tz = _timezone;
698dcdb6
VZ
15264
15265; return 0; }
15266EOF
1e6feb95 15267if { (eval echo configure:15268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15268 rm -rf conftest*
15269
360d6699 15270 wx_cv_var_timezone=_timezone
698dcdb6 15271
5357c8e8 15272else
698dcdb6
VZ
15273 echo "configure: failed program was:" >&5
15274 cat conftest.$ac_ext >&5
15275 rm -rf conftest*
15276
15277 cat > conftest.$ac_ext <<EOF
1e6feb95 15278#line 15279 "configure"
5357c8e8
VZ
15279#include "confdefs.h"
15280
b4085ce6 15281 #include <time.h>
698dcdb6
VZ
15282
15283int main() {
5357c8e8
VZ
15284
15285 int tz;
15286 tz = timezone;
698dcdb6
VZ
15287
15288; return 0; }
15289EOF
1e6feb95 15290if { (eval echo configure:15291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15291 rm -rf conftest*
15292
5357c8e8 15293 wx_cv_var_timezone=timezone
698dcdb6 15294
360d6699 15295else
698dcdb6
VZ
15296 echo "configure: failed program was:" >&5
15297 cat conftest.$ac_ext >&5
15298 rm -rf conftest*
15299 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15300
360d6699 15301fi
698dcdb6
VZ
15302rm -f conftest*
15303
15304
360d6699 15305fi
698dcdb6
VZ
15306rm -f conftest*
15307
15308
6232543b 15309fi
698dcdb6
VZ
15310rm -f conftest*
15311
15312
1e487827 15313fi
703e0a69 15314
698dcdb6
VZ
15315echo "$ac_t""$wx_cv_var_timezone" 1>&6
15316
15317 cat >> confdefs.h <<EOF
360d6699
VZ
15318#define WX_TIMEZONE $wx_cv_var_timezone
15319EOF
15320
698dcdb6
VZ
15321
15322 for ac_func in localtime
afc31813 15323do
698dcdb6 15324echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 15325echo "configure:15326: checking for $ac_func" >&5
698dcdb6
VZ
15326if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15327 echo $ac_n "(cached) $ac_c" 1>&6
15328else
15329 cat > conftest.$ac_ext <<EOF
1e6feb95 15330#line 15331 "configure"
10f2d63a 15331#include "confdefs.h"
afc31813 15332/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15333 which can conflict with char $ac_func(); below. */
afc31813
VZ
15334#include <assert.h>
15335/* Override any gcc2 internal prototype to avoid an error. */
15336/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15337 builtin and then its argument prototype would still apply. */
15338char $ac_func();
15339
15340int main() {
afc31813
VZ
15341
15342/* The GNU C library defines this for functions which it implements
15343 to always fail with ENOSYS. Some functions are actually named
15344 something starting with __ and the normal name is an alias. */
15345#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15346choke me
15347#else
698dcdb6 15348$ac_func();
afc31813
VZ
15349#endif
15350
698dcdb6 15351; return 0; }
10f2d63a 15352EOF
1e6feb95 15353if { (eval echo configure:15354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15354 rm -rf conftest*
15355 eval "ac_cv_func_$ac_func=yes"
15356else
15357 echo "configure: failed program was:" >&5
15358 cat conftest.$ac_ext >&5
15359 rm -rf conftest*
15360 eval "ac_cv_func_$ac_func=no"
15361fi
15362rm -f conftest*
15363fi
afc31813 15364
698dcdb6
VZ
15365if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15366 echo "$ac_t""yes" 1>&6
15367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15368 cat >> confdefs.h <<EOF
15369#define $ac_tr_func 1
15370EOF
15371
15372else
15373 echo "$ac_t""no" 1>&6
afc31813
VZ
15374fi
15375done
15376
1e487827 15377
698dcdb6
VZ
15378 if test "$ac_cv_func_localtime" = "yes"; then
15379 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
1e6feb95 15380echo "configure:15381: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
15381if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15382 echo $ac_n "(cached) $ac_c" 1>&6
15383else
15384
15385 cat > conftest.$ac_ext <<EOF
1e6feb95 15386#line 15387 "configure"
0470b1e6
VZ
15387#include "confdefs.h"
15388
b4085ce6 15389 #include <time.h>
698dcdb6
VZ
15390
15391int main() {
0470b1e6
VZ
15392
15393 struct tm tm;
15394 tm.tm_gmtoff++;
698dcdb6
VZ
15395
15396; return 0; }
15397EOF
1e6feb95 15398if { (eval echo configure:15399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15399 rm -rf conftest*
15400
f03a98d8 15401 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 15402
0470b1e6 15403else
698dcdb6
VZ
15404 echo "configure: failed program was:" >&5
15405 cat conftest.$ac_ext >&5
15406 rm -rf conftest*
15407 wx_cv_struct_tm_has_gmtoff=no
15408
0470b1e6 15409fi
698dcdb6
VZ
15410rm -f conftest*
15411
1e487827 15412fi
698dcdb6
VZ
15413
15414echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
15415 fi
15416
15417 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 15418 cat >> confdefs.h <<\EOF
6232543b
VS
15419#define WX_GMTOFF_IN_TM 1
15420EOF
0470b1e6 15421
3fcdd07b
VZ
15422 fi
15423
698dcdb6 15424 for ac_func in gettimeofday ftime
3fcdd07b 15425do
698dcdb6 15426echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 15427echo "configure:15428: checking for $ac_func" >&5
698dcdb6
VZ
15428if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15429 echo $ac_n "(cached) $ac_c" 1>&6
15430else
15431 cat > conftest.$ac_ext <<EOF
1e6feb95 15432#line 15433 "configure"
3fcdd07b
VZ
15433#include "confdefs.h"
15434/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15435 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
15436#include <assert.h>
15437/* Override any gcc2 internal prototype to avoid an error. */
15438/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15439 builtin and then its argument prototype would still apply. */
15440char $ac_func();
15441
15442int main() {
3fcdd07b
VZ
15443
15444/* The GNU C library defines this for functions which it implements
15445 to always fail with ENOSYS. Some functions are actually named
15446 something starting with __ and the normal name is an alias. */
15447#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15448choke me
15449#else
698dcdb6 15450$ac_func();
3fcdd07b
VZ
15451#endif
15452
698dcdb6
VZ
15453; return 0; }
15454EOF
1e6feb95 15455if { (eval echo configure:15456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15456 rm -rf conftest*
15457 eval "ac_cv_func_$ac_func=yes"
15458else
15459 echo "configure: failed program was:" >&5
15460 cat conftest.$ac_ext >&5
15461 rm -rf conftest*
15462 eval "ac_cv_func_$ac_func=no"
15463fi
15464rm -f conftest*
15465fi
15466
15467if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15468 echo "$ac_t""yes" 1>&6
15469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15470 cat >> confdefs.h <<EOF
15471#define $ac_tr_func 1
3fcdd07b
VZ
15472EOF
15473 break
698dcdb6
VZ
15474else
15475 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
15476fi
15477done
15478
afc31813 15479
698dcdb6
VZ
15480 if test "$ac_cv_func_gettimeofday" = "yes"; then
15481 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
1e6feb95 15482echo "configure:15483: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
15483if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
15484 echo $ac_n "(cached) $ac_c" 1>&6
15485else
15486
15487
15488 ac_ext=C
15489# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 15490ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
15491ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15492ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15493cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 15494
698dcdb6
VZ
15495
15496 cat > conftest.$ac_ext <<EOF
1e6feb95 15497#line 15498 "configure"
10f2d63a 15498#include "confdefs.h"
afc31813
VZ
15499
15500 #include <sys/time.h>
15501 #include <unistd.h>
698dcdb6
VZ
15502
15503int main() {
afc31813
VZ
15504
15505 struct timeval tv;
15506 struct timezone tz;
15507 gettimeofday(&tv, &tz);
698dcdb6
VZ
15508
15509; return 0; }
15510EOF
1e6feb95 15511if { (eval echo configure:15512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15512 rm -rf conftest*
afc31813 15513 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 15514else
698dcdb6
VZ
15515 echo "configure: failed program was:" >&5
15516 cat conftest.$ac_ext >&5
15517 rm -rf conftest*
15518 cat > conftest.$ac_ext <<EOF
1e6feb95 15519#line 15520 "configure"
10f2d63a 15520#include "confdefs.h"
afc31813
VZ
15521
15522 #include <sys/time.h>
15523 #include <unistd.h>
698dcdb6
VZ
15524
15525int main() {
afc31813
VZ
15526
15527 struct timeval tv;
15528 gettimeofday(&tv);
698dcdb6
VZ
15529
15530; return 0; }
15531EOF
1e6feb95 15532if { (eval echo configure:15533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15533 rm -rf conftest*
afc31813 15534 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 15535else
698dcdb6
VZ
15536 echo "configure: failed program was:" >&5
15537 cat conftest.$ac_ext >&5
15538 rm -rf conftest*
15539 wx_cv_func_gettimeofday_has_2_args=unknown
15540
10f2d63a 15541fi
698dcdb6
VZ
15542rm -f conftest*
15543
10f2d63a 15544fi
698dcdb6 15545rm -f conftest*
afc31813 15546 ac_ext=c
698dcdb6 15547# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 15548ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
15549ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15550ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15551cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 15552
698dcdb6 15553
afc31813 15554fi
698dcdb6
VZ
15555
15556echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 15557
afc31813 15558 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 15559 cat >> confdefs.h <<\EOF
afc31813
VZ
15560#define WX_GETTIMEOFDAY_NO_TZ 1
15561EOF
15562
15563 fi
15564 fi
15565
698dcdb6 15566 cat >> confdefs.h <<\EOF
afc31813
VZ
15567#define wxUSE_TIMEDATE 1
15568EOF
15569
15570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
15571fi
15572
698dcdb6 15573
b089607b
VZ
15574if test "$TOOLKIT" != "MSW"; then
15575
afc31813 15576if test "$wxUSE_SOCKETS" = "yes"; then
698dcdb6 15577 echo $ac_n "checking for socket""... $ac_c" 1>&6
1e6feb95 15578echo "configure:15579: checking for socket" >&5
698dcdb6
VZ
15579if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
15580 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15581else
698dcdb6 15582 cat > conftest.$ac_ext <<EOF
1e6feb95 15583#line 15584 "configure"
c63c7106
VZ
15584#include "confdefs.h"
15585/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15586 which can conflict with char socket(); below. */
c63c7106
VZ
15587#include <assert.h>
15588/* Override any gcc2 internal prototype to avoid an error. */
15589/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15590 builtin and then its argument prototype would still apply. */
15591char socket();
15592
15593int main() {
c63c7106
VZ
15594
15595/* The GNU C library defines this for functions which it implements
15596 to always fail with ENOSYS. Some functions are actually named
15597 something starting with __ and the normal name is an alias. */
15598#if defined (__stub_socket) || defined (__stub___socket)
15599choke me
15600#else
698dcdb6 15601socket();
c63c7106
VZ
15602#endif
15603
698dcdb6
VZ
15604; return 0; }
15605EOF
1e6feb95 15606if { (eval echo configure:15607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15607 rm -rf conftest*
15608 eval "ac_cv_func_socket=yes"
15609else
15610 echo "configure: failed program was:" >&5
15611 cat conftest.$ac_ext >&5
15612 rm -rf conftest*
15613 eval "ac_cv_func_socket=no"
15614fi
15615rm -f conftest*
15616fi
15617
15618if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
15619 echo "$ac_t""yes" 1>&6
c63c7106
VZ
15620 :
15621else
698dcdb6
VZ
15622 echo "$ac_t""no" 1>&6
15623echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1e6feb95 15624echo "configure:15625: checking for socket in -lsocket" >&5
698dcdb6
VZ
15625ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
15626if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15627 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15628else
698dcdb6 15629 ac_save_LIBS="$LIBS"
c63c7106 15630LIBS="-lsocket $LIBS"
698dcdb6 15631cat > conftest.$ac_ext <<EOF
1e6feb95 15632#line 15633 "configure"
c63c7106
VZ
15633#include "confdefs.h"
15634/* Override any gcc2 internal prototype to avoid an error. */
15635/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15636 builtin and then its argument prototype would still apply. */
15637char socket();
15638
15639int main() {
15640socket()
15641; return 0; }
15642EOF
1e6feb95 15643if { (eval echo configure:15644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15644 rm -rf conftest*
15645 eval "ac_cv_lib_$ac_lib_var=yes"
15646else
15647 echo "configure: failed program was:" >&5
15648 cat conftest.$ac_ext >&5
15649 rm -rf conftest*
15650 eval "ac_cv_lib_$ac_lib_var=no"
15651fi
15652rm -f conftest*
15653LIBS="$ac_save_LIBS"
15654
15655fi
15656if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15657 echo "$ac_t""yes" 1>&6
c63c7106 15658 INET_LINK="$INET_LINK -lsocket"
c63c7106 15659else
698dcdb6 15660 echo "$ac_t""no" 1>&6
afc31813 15661
698dcdb6 15662 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
afc31813 15663 wxUSE_SOCKETS=no
698dcdb6
VZ
15664
15665
10f2d63a
VZ
15666fi
15667
698dcdb6 15668
6232543b 15669fi
b089607b 15670
1e487827 15671fi
afc31813 15672
51a9faba 15673
698dcdb6
VZ
15674if test "$wxUSE_SOCKETS" = "yes" ; then
15675 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
1e6feb95 15676echo "configure:15677: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
15677if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
15678 echo $ac_n "(cached) $ac_c" 1>&6
15679else
15680
15681
15682 ac_ext=C
15683# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 15684ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
15685ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15686ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15687cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 15688
698dcdb6
VZ
15689
15690 cat > conftest.$ac_ext <<EOF
1e6feb95 15691#line 15692 "configure"
afc31813 15692#include "confdefs.h"
51a9faba 15693
3ace2e6d 15694 #include <sys/types.h>
51a9faba 15695 #include <sys/socket.h>
698dcdb6
VZ
15696
15697int main() {
51a9faba
VZ
15698
15699 socklen_t len;
15700 getsockname(0, 0, &len);
698dcdb6
VZ
15701
15702; return 0; }
15703EOF
1e6feb95 15704if { (eval echo configure:15705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15705 rm -rf conftest*
51a9faba 15706 wx_cv_type_getsockname3=socklen_t
afc31813 15707else
698dcdb6
VZ
15708 echo "configure: failed program was:" >&5
15709 cat conftest.$ac_ext >&5
15710 rm -rf conftest*
15711 cat > conftest.$ac_ext <<EOF
1e6feb95 15712#line 15713 "configure"
afc31813 15713#include "confdefs.h"
51a9faba 15714
3ace2e6d 15715 #include <sys/types.h>
51a9faba 15716 #include <sys/socket.h>
698dcdb6
VZ
15717
15718int main() {
51a9faba
VZ
15719
15720 size_t len;
15721 getsockname(0, 0, &len);
698dcdb6
VZ
15722
15723; return 0; }
15724EOF
1e6feb95 15725if { (eval echo configure:15726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15726 rm -rf conftest*
51a9faba 15727 wx_cv_type_getsockname3=size_t
afc31813 15728else
698dcdb6
VZ
15729 echo "configure: failed program was:" >&5
15730 cat conftest.$ac_ext >&5
15731 rm -rf conftest*
15732 cat > conftest.$ac_ext <<EOF
1e6feb95 15733#line 15734 "configure"
afc31813 15734#include "confdefs.h"
51a9faba 15735
3ace2e6d 15736 #include <sys/types.h>
51a9faba 15737 #include <sys/socket.h>
698dcdb6
VZ
15738
15739int main() {
51a9faba
VZ
15740
15741 int len;
15742 getsockname(0, 0, &len);
698dcdb6
VZ
15743
15744; return 0; }
15745EOF
1e6feb95 15746if { (eval echo configure:15747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15747 rm -rf conftest*
51a9faba 15748 wx_cv_type_getsockname3=int
afc31813 15749else
698dcdb6
VZ
15750 echo "configure: failed program was:" >&5
15751 cat conftest.$ac_ext >&5
15752 rm -rf conftest*
15753 wx_cv_type_getsockname3=unknown
15754
afc31813 15755fi
698dcdb6
VZ
15756rm -f conftest*
15757
afc31813 15758fi
698dcdb6
VZ
15759rm -f conftest*
15760
afc31813 15761fi
698dcdb6 15762rm -f conftest*
51a9faba
VZ
15763
15764 ac_ext=c
698dcdb6 15765# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 15766ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
15767ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15768ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15769cross_compiling=$ac_cv_prog_cc_cross
afc31813 15770
698dcdb6 15771
51a9faba 15772fi
698dcdb6
VZ
15773
15774echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba
VZ
15775
15776 if test "$wx_cv_type_getsockname3" = "unknown"; then
15777 wxUSE_SOCKETS=no
698dcdb6 15778 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
51a9faba 15779 else
698dcdb6 15780 cat >> confdefs.h <<EOF
51a9faba
VZ
15781#define SOCKLEN_T $wx_cv_type_getsockname3
15782EOF
15783
15784 fi
15785fi
afc31813 15786
c521c494
RL
15787fi
15788
51a9faba 15789if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 15790 cat >> confdefs.h <<\EOF
afc31813
VZ
15791#define wxUSE_SOCKETS 1
15792EOF
15793
70f7a477 15794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
15795 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
15796fi
15797
698dcdb6 15798
dc3d889d
VZ
15799if test "$wxUSE_GUI" = "yes"; then
15800
b089607b
VZ
15801if test "$TOOLKIT" != "MSW"; then
15802
ceded8b9 15803if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 15804 for ac_hdr in linux/joystick.h
10f2d63a 15805do
698dcdb6
VZ
15806ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15807echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1e6feb95 15808echo "configure:15809: checking for $ac_hdr" >&5
698dcdb6
VZ
15809if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15810 echo $ac_n "(cached) $ac_c" 1>&6
15811else
15812 cat > conftest.$ac_ext <<EOF
1e6feb95 15813#line 15814 "configure"
10f2d63a 15814#include "confdefs.h"
698dcdb6
VZ
15815#include <$ac_hdr>
15816EOF
15817ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 15818{ (eval echo configure:15819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15819ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15820if test -z "$ac_err"; then
15821 rm -rf conftest*
15822 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15823else
698dcdb6
VZ
15824 echo "$ac_err" >&5
15825 echo "configure: failed program was:" >&5
10f2d63a 15826 cat conftest.$ac_ext >&5
698dcdb6
VZ
15827 rm -rf conftest*
15828 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15829fi
698dcdb6 15830rm -f conftest*
10f2d63a 15831fi
698dcdb6
VZ
15832if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15833 echo "$ac_t""yes" 1>&6
15834 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15835 cat >> confdefs.h <<EOF
15836#define $ac_tr_hdr 1
10f2d63a 15837EOF
698dcdb6
VZ
15838
15839else
15840 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15841fi
15842done
15843
b089607b 15844 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 15845 wxUSE_JOYSTICK=no
698dcdb6 15846 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
15847 fi
15848fi
15849
15850fi
15851
ceded8b9 15852if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 15853 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15854#define wxUSE_JOYSTICK 1
15855EOF
15856
15857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
15858fi
15859
dc3d889d
VZ
15860fi
15861
698dcdb6 15862
b089607b
VZ
15863if test "$TOOLKIT" != "MSW"; then
15864
10f2d63a
VZ
15865HAVE_DL_FUNCS=0
15866HAVE_SHL_FUNCS=0
15867if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
b4085ce6
GD
15868 if test "$USE_MAC" = 1; then
15869 HAVE_DL_FUNCS=1
15870 else
698dcdb6 15871 for ac_func in dlopen
10f2d63a 15872do
698dcdb6 15873echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 15874echo "configure:15875: checking for $ac_func" >&5
698dcdb6
VZ
15875if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15876 echo $ac_n "(cached) $ac_c" 1>&6
15877else
15878 cat > conftest.$ac_ext <<EOF
1e6feb95 15879#line 15880 "configure"
10f2d63a
VZ
15880#include "confdefs.h"
15881/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15882 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
15883#include <assert.h>
15884/* Override any gcc2 internal prototype to avoid an error. */
15885/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15886 builtin and then its argument prototype would still apply. */
15887char $ac_func();
15888
15889int main() {
10f2d63a
VZ
15890
15891/* The GNU C library defines this for functions which it implements
15892 to always fail with ENOSYS. Some functions are actually named
15893 something starting with __ and the normal name is an alias. */
15894#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15895choke me
15896#else
698dcdb6 15897$ac_func();
10f2d63a
VZ
15898#endif
15899
698dcdb6
VZ
15900; return 0; }
15901EOF
1e6feb95 15902if { (eval echo configure:15903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15903 rm -rf conftest*
15904 eval "ac_cv_func_$ac_func=yes"
15905else
15906 echo "configure: failed program was:" >&5
15907 cat conftest.$ac_ext >&5
15908 rm -rf conftest*
15909 eval "ac_cv_func_$ac_func=no"
15910fi
15911rm -f conftest*
15912fi
15913
15914if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15915 echo "$ac_t""yes" 1>&6
15916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15917 cat >> confdefs.h <<EOF
15918#define $ac_tr_func 1
15919EOF
15920
15921 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15922#define HAVE_DLOPEN 1
15923EOF
15924
15925 HAVE_DL_FUNCS=1
698dcdb6 15926
10f2d63a 15927else
698dcdb6
VZ
15928 echo "$ac_t""no" 1>&6
15929echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1e6feb95 15930echo "configure:15931: checking for dlopen in -ldl" >&5
698dcdb6
VZ
15931ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
15932if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15933 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15934else
698dcdb6 15935 ac_save_LIBS="$LIBS"
10f2d63a 15936LIBS="-ldl $LIBS"
698dcdb6 15937cat > conftest.$ac_ext <<EOF
1e6feb95 15938#line 15939 "configure"
10f2d63a
VZ
15939#include "confdefs.h"
15940/* Override any gcc2 internal prototype to avoid an error. */
15941/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15942 builtin and then its argument prototype would still apply. */
15943char dlopen();
15944
15945int main() {
15946dlopen()
15947; return 0; }
15948EOF
1e6feb95 15949if { (eval echo configure:15950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15950 rm -rf conftest*
15951 eval "ac_cv_lib_$ac_lib_var=yes"
15952else
15953 echo "configure: failed program was:" >&5
15954 cat conftest.$ac_ext >&5
15955 rm -rf conftest*
15956 eval "ac_cv_lib_$ac_lib_var=no"
15957fi
15958rm -f conftest*
15959LIBS="$ac_save_LIBS"
15960
15961fi
15962if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15963 echo "$ac_t""yes" 1>&6
15964
15965 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15966#define HAVE_DLOPEN 1
15967EOF
15968
15969 HAVE_DL_FUNCS=1
15970 LIBS="$LIBS -ldl"
698dcdb6 15971
10f2d63a 15972else
698dcdb6 15973 echo "$ac_t""no" 1>&6
10f2d63a 15974
698dcdb6 15975 for ac_func in shl_load
10f2d63a 15976do
698dcdb6 15977echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 15978echo "configure:15979: checking for $ac_func" >&5
698dcdb6
VZ
15979if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15980 echo $ac_n "(cached) $ac_c" 1>&6
15981else
15982 cat > conftest.$ac_ext <<EOF
1e6feb95 15983#line 15984 "configure"
10f2d63a
VZ
15984#include "confdefs.h"
15985/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15986 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
15987#include <assert.h>
15988/* Override any gcc2 internal prototype to avoid an error. */
15989/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15990 builtin and then its argument prototype would still apply. */
15991char $ac_func();
15992
15993int main() {
10f2d63a
VZ
15994
15995/* The GNU C library defines this for functions which it implements
15996 to always fail with ENOSYS. Some functions are actually named
15997 something starting with __ and the normal name is an alias. */
15998#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15999choke me
16000#else
698dcdb6 16001$ac_func();
10f2d63a
VZ
16002#endif
16003
698dcdb6
VZ
16004; return 0; }
16005EOF
1e6feb95 16006if { (eval echo configure:16007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16007 rm -rf conftest*
16008 eval "ac_cv_func_$ac_func=yes"
16009else
16010 echo "configure: failed program was:" >&5
16011 cat conftest.$ac_ext >&5
16012 rm -rf conftest*
16013 eval "ac_cv_func_$ac_func=no"
16014fi
16015rm -f conftest*
16016fi
16017
16018if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16019 echo "$ac_t""yes" 1>&6
16020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16021 cat >> confdefs.h <<EOF
16022#define $ac_tr_func 1
16023EOF
16024
16025 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16026#define HAVE_SHL_LOAD 1
16027EOF
16028
16029 HAVE_SHL_FUNCS=1
698dcdb6 16030
10f2d63a 16031else
698dcdb6
VZ
16032 echo "$ac_t""no" 1>&6
16033echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
1e6feb95 16034echo "configure:16035: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16035ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16036if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16037 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16038else
698dcdb6 16039 ac_save_LIBS="$LIBS"
f6bcfd97 16040LIBS="-lshl_load $LIBS"
698dcdb6 16041cat > conftest.$ac_ext <<EOF
1e6feb95 16042#line 16043 "configure"
f6bcfd97
BP
16043#include "confdefs.h"
16044/* Override any gcc2 internal prototype to avoid an error. */
16045/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16046 builtin and then its argument prototype would still apply. */
16047char dld();
16048
16049int main() {
16050dld()
16051; return 0; }
16052EOF
1e6feb95 16053if { (eval echo configure:16054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16054 rm -rf conftest*
16055 eval "ac_cv_lib_$ac_lib_var=yes"
16056else
16057 echo "configure: failed program was:" >&5
16058 cat conftest.$ac_ext >&5
16059 rm -rf conftest*
16060 eval "ac_cv_lib_$ac_lib_var=no"
16061fi
16062rm -f conftest*
16063LIBS="$ac_save_LIBS"
f6bcfd97 16064
698dcdb6
VZ
16065fi
16066if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16067 echo "$ac_t""yes" 1>&6
16068
f6bcfd97
BP
16069 HAVE_SHL_FUNCS=1
16070 LIBS="$LIBS -ldld"
698dcdb6
VZ
16071
16072else
16073 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16074fi
16075
698dcdb6 16076
10f2d63a
VZ
16077fi
16078done
16079
698dcdb6 16080
10f2d63a
VZ
16081fi
16082
698dcdb6 16083
10f2d63a
VZ
16084fi
16085done
16086
1e487827 16087
698dcdb6
VZ
16088 if test "$HAVE_DL_FUNCS" = 1; then
16089 for ac_func in dlerror
f6bcfd97 16090do
698dcdb6 16091echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1e6feb95 16092echo "configure:16093: checking for $ac_func" >&5
698dcdb6
VZ
16093if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16094 echo $ac_n "(cached) $ac_c" 1>&6
16095else
16096 cat > conftest.$ac_ext <<EOF
1e6feb95 16097#line 16098 "configure"
f6bcfd97
BP
16098#include "confdefs.h"
16099/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16100 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
16101#include <assert.h>
16102/* Override any gcc2 internal prototype to avoid an error. */
16103/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16104 builtin and then its argument prototype would still apply. */
16105char $ac_func();
16106
16107int main() {
f6bcfd97
BP
16108
16109/* The GNU C library defines this for functions which it implements
16110 to always fail with ENOSYS. Some functions are actually named
16111 something starting with __ and the normal name is an alias. */
16112#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16113choke me
16114#else
698dcdb6 16115$ac_func();
f6bcfd97
BP
16116#endif
16117
698dcdb6
VZ
16118; return 0; }
16119EOF
1e6feb95 16120if { (eval echo configure:16121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16121 rm -rf conftest*
16122 eval "ac_cv_func_$ac_func=yes"
16123else
16124 echo "configure: failed program was:" >&5
16125 cat conftest.$ac_ext >&5
16126 rm -rf conftest*
16127 eval "ac_cv_func_$ac_func=no"
16128fi
16129rm -f conftest*
16130fi
16131
16132if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16133 echo "$ac_t""yes" 1>&6
16134 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16135 cat >> confdefs.h <<EOF
16136#define $ac_tr_func 1
16137EOF
16138 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16139#define HAVE_DLERROR 1
16140EOF
16141
16142else
698dcdb6
VZ
16143 echo "$ac_t""no" 1>&6
16144echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
1e6feb95 16145echo "configure:16146: checking for dlerror in -ldl" >&5
698dcdb6
VZ
16146ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16147if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16148 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16149else
698dcdb6 16150 ac_save_LIBS="$LIBS"
f6bcfd97 16151LIBS="-ldl $LIBS"
698dcdb6 16152cat > conftest.$ac_ext <<EOF
1e6feb95 16153#line 16154 "configure"
f6bcfd97
BP
16154#include "confdefs.h"
16155/* Override any gcc2 internal prototype to avoid an error. */
16156/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16157 builtin and then its argument prototype would still apply. */
16158char dlerror();
16159
16160int main() {
16161dlerror()
16162; return 0; }
16163EOF
1e6feb95 16164if { (eval echo configure:16165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16165 rm -rf conftest*
16166 eval "ac_cv_lib_$ac_lib_var=yes"
16167else
16168 echo "configure: failed program was:" >&5
16169 cat conftest.$ac_ext >&5
16170 rm -rf conftest*
16171 eval "ac_cv_lib_$ac_lib_var=no"
16172fi
16173rm -f conftest*
16174LIBS="$ac_save_LIBS"
16175
16176fi
16177if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16178 echo "$ac_t""yes" 1>&6
16179 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16180#define HAVE_DLERROR 1
16181EOF
16182
698dcdb6
VZ
16183else
16184 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16185fi
16186
16187fi
16188done
16189
16190 fi
b4085ce6 16191 fi
f6bcfd97 16192
10f2d63a
VZ
16193 if test "$HAVE_DL_FUNCS" = 0; then
16194 if test "$HAVE_SHL_FUNCS" = 0; then
16195 if test "$USE_UNIX" = 1; then
698dcdb6 16196 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
16197 wxUSE_DYNLIB_CLASS=no
16198 else
698dcdb6 16199 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
16200 fi
16201 fi
16202 fi
16203fi
16204
b089607b
VZ
16205fi
16206
10f2d63a 16207if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 16208 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16209#define wxUSE_DYNLIB_CLASS 1
16210EOF
16211
b12915c1
VZ
16212else
16213 wxUSE_ODBC=no
16214 wxUSE_SERIAL=no
10f2d63a
VZ
16215fi
16216
698dcdb6 16217
1e6feb95
VZ
16218if test "$wxUSE_FONTMAP" = "yes" ; then
16219 cat >> confdefs.h <<\EOF
16220#define wxUSE_FONTMAP 1
16221EOF
16222
16223fi
16224
10f2d63a 16225if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 16226 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16227#define wxUSE_UNICODE 1
16228EOF
16229
16230fi
16231
16232if test "$wxUSE_WCSRTOMBS" = "yes" ; then
698dcdb6 16233 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16234#define wxUSE_WCSRTOMBS 1
16235EOF
16236
16237fi
16238
16239if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 16240 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16241#define wxUSE_EXPERIMENTAL_PRINTF 1
16242EOF
16243
16244fi
16245
698dcdb6 16246
b12915c1 16247if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 16248 cat >> confdefs.h <<\EOF
b12915c1
VZ
16249#define wxUSE_SERIAL 1
16250EOF
16251
16252fi
16253
698dcdb6 16254
10f2d63a
VZ
16255IODBC_C_SRC=""
16256if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 16257 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16258#define wxUSE_ODBC 1
16259EOF
16260
16261 WXODBCFLAG="-D_IODBC_"
16262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
16263fi
16264
698dcdb6 16265
10f2d63a 16266if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 16267 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16268#define wxUSE_POSTSCRIPT 1
16269EOF
16270
16271fi
16272
698dcdb6 16273cat >> confdefs.h <<\EOF
10f2d63a
VZ
16274#define wxUSE_AFM_FOR_POSTSCRIPT 1
16275EOF
16276
698dcdb6
VZ
16277
16278cat >> confdefs.h <<\EOF
10f2d63a
VZ
16279#define wxUSE_NORMALIZED_PS_FONTS 1
16280EOF
16281
698dcdb6
VZ
16282
16283
10f2d63a 16284if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 16285 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16286#define wxUSE_CONSTRAINTS 1
16287EOF
16288
16289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16290fi
16291
16292if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
698dcdb6 16293 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16294#define wxUSE_MDI_ARCHITECTURE 1
16295EOF
16296
16297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16298fi
16299
16300if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 16301 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16302#define wxUSE_DOC_VIEW_ARCHITECTURE 1
16303EOF
16304
16305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16306 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16307 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16308 fi
16309fi
16310
16311if test "$wxUSE_HELP" = "yes"; then
698dcdb6 16312 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16313#define wxUSE_HELP 1
16314EOF
16315
16316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
16317fi
16318
16319if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16320 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 16321 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 16322 else
698dcdb6 16323 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16324#define wxUSE_PRINTING_ARCHITECTURE 1
16325EOF
16326
16327 fi
16328 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16329fi
16330
16331if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 16332 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16333#define wxUSE_PROLOGIO 1
16334EOF
16335
16336fi
16337
16338if test "$wxUSE_RESOURCES" = "yes" ; then
16339 if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 16340 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16341#define wxUSE_RESOURCES 1
16342EOF
16343
16344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
16345 else
698dcdb6 16346 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
10f2d63a
VZ
16347 fi
16348fi
16349
16350if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 16351 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16352#define wxUSE_X_RESOURCES 1
16353EOF
16354
16355fi
16356
698dcdb6 16357
10f2d63a 16358if test "$wxUSE_IPC" = "yes"; then
eb4efbdc 16359 if test "$wxUSE_SOCKETS" != "yes"; then
698dcdb6 16360 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
eb4efbdc
VZ
16361 fi
16362
698dcdb6 16363 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16364#define wxUSE_IPC 1
16365EOF
16366
16367fi
16368
16369if test "$wxUSE_CLIPBOARD" = "yes"; then
698dcdb6 16370 cat >> confdefs.h <<\EOF
10f2d63a 16371#define wxUSE_CLIPBOARD 1
1e6feb95
VZ
16372EOF
16373
16374 cat >> confdefs.h <<\EOF
16375#define wxUSE_DATAOBJ 1
10f2d63a
VZ
16376EOF
16377
16378fi
16379
16380if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
16381 if test "$wxUSE_GTK" = 1; then
16382 if test "$WXGTK12" != 1; then
698dcdb6 16383 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
16384 wxUSE_DRAG_AND_DROP=no
16385 fi
16386 fi
16387
16388 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 16389 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
10f2d63a
VZ
16390 wxUSE_DRAG_AND_DROP=no
16391 fi
16392
2c6025bc 16393 if test "$wxUSE_MAC" = 1; then
698dcdb6 16394 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
2c6025bc
GD
16395 wxUSE_DRAG_AND_DROP=no
16396 fi
16397
10f2d63a 16398 if test "$USE_WIN32" = 1; then
698dcdb6
VZ
16399
16400 for ac_hdr in ole2.h
10f2d63a 16401do
698dcdb6
VZ
16402ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16403echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1e6feb95 16404echo "configure:16405: checking for $ac_hdr" >&5
698dcdb6
VZ
16405if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16406 echo $ac_n "(cached) $ac_c" 1>&6
16407else
16408 cat > conftest.$ac_ext <<EOF
1e6feb95 16409#line 16410 "configure"
10f2d63a 16410#include "confdefs.h"
698dcdb6
VZ
16411#include <$ac_hdr>
16412EOF
16413ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1e6feb95 16414{ (eval echo configure:16415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16415ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16416if test -z "$ac_err"; then
16417 rm -rf conftest*
16418 eval "ac_cv_header_$ac_safe=yes"
1e487827 16419else
698dcdb6
VZ
16420 echo "$ac_err" >&5
16421 echo "configure: failed program was:" >&5
10f2d63a 16422 cat conftest.$ac_ext >&5
698dcdb6
VZ
16423 rm -rf conftest*
16424 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16425fi
698dcdb6 16426rm -f conftest*
10f2d63a 16427fi
698dcdb6
VZ
16428if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16429 echo "$ac_t""yes" 1>&6
16430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16431 cat >> confdefs.h <<EOF
16432#define $ac_tr_hdr 1
10f2d63a 16433EOF
698dcdb6
VZ
16434
16435else
16436 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16437fi
16438done
16439
698dcdb6 16440
57fe5ed0 16441 if test "$ac_cv_header_ole2_h" = "yes" ; then
c521c494 16442 if test "$GCC" = yes ; then
b64f0a5f
RL
16443 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
16444 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 16445 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f
RL
16446 LIBS="$LIBS -lole32 -luuid"
16447
16448 if test "$wxUSE_METAFILE" = "yes"; then
698dcdb6 16449 cat >> confdefs.h <<\EOF
b64f0a5f
RL
16450#define wxUSE_METAFILE 1
16451EOF
16452
698dcdb6 16453 cat >> confdefs.h <<\EOF
b64f0a5f
RL
16454#define wxUSE_ENH_METAFILE 1
16455EOF
16456
16457 fi
c521c494
RL
16458 fi
16459 else
698dcdb6 16460 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
10f2d63a
VZ
16461 wxUSE_DRAG_AND_DROP=no
16462 fi
16463 fi
16464
16465 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 16466 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16467#define wxUSE_DRAG_AND_DROP 1
16468EOF
16469
16470 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
16471 fi
16472
16473fi
16474
16475if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 16476 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16477#define wxUSE_SPLINES 1
16478EOF
16479
16480fi
16481
698dcdb6 16482
1e6feb95
VZ
16483USES_CONTROLS=0
16484if test "$wxUSE_CONTROLS" = "yes"; then
16485 USES_CONTROLS=1
16486fi
16487
10f2d63a 16488if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 16489 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16490#define wxUSE_ACCEL 1
16491EOF
16492
1e6feb95
VZ
16493 USES_CONTROLS=1
16494fi
16495
16496if test "$wxUSE_BUTTON" = "yes"; then
16497 cat >> confdefs.h <<\EOF
16498#define wxUSE_BUTTON 1
16499EOF
16500
16501 USES_CONTROLS=1
16502fi
16503
16504if test "$wxUSE_BMPBUTTON" = "yes"; then
16505 cat >> confdefs.h <<\EOF
16506#define wxUSE_BMPBUTTON 1
16507EOF
16508
16509 USES_CONTROLS=1
16510fi
16511
16512if test "$wxUSE_CALCTRL" = "yes"; then
16513 cat >> confdefs.h <<\EOF
16514#define wxUSE_CALENDARCTRL 1
16515EOF
16516
16517 USES_CONTROLS=1
16518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
16519fi
16520
16521if test "$wxUSE_CARET" = "yes"; then
698dcdb6 16522 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16523#define wxUSE_CARET 1
16524EOF
16525
1e6feb95 16526 USES_CONTROLS=1
10f2d63a
VZ
16527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
16528fi
16529
16530if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 16531 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16532#define wxUSE_COMBOBOX 1
16533EOF
16534
1e6feb95 16535 USES_CONTROLS=1
10f2d63a
VZ
16536fi
16537
16538if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 16539 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16540#define wxUSE_CHOICE 1
16541EOF
16542
1e6feb95 16543 USES_CONTROLS=1
10f2d63a
VZ
16544fi
16545
16546if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 16547 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16548#define wxUSE_CHECKBOX 1
16549EOF
16550
1e6feb95 16551 USES_CONTROLS=1
10f2d63a
VZ
16552fi
16553
16554if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 16555 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16556#define wxUSE_CHECKLISTBOX 1
16557EOF
16558
1e6feb95 16559 USES_CONTROLS=1
10f2d63a
VZ
16560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
16561fi
16562
16563if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 16564 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16565#define wxUSE_GAUGE 1
16566EOF
16567
1e6feb95 16568 USES_CONTROLS=1
10f2d63a
VZ
16569fi
16570
d6a55c4b
VZ
16571if test "$wxUSE_NEW_GRID" = "yes"; then
16572 wxUSE_GRID="yes"
698dcdb6 16573 cat >> confdefs.h <<\EOF
d6a55c4b 16574#define wxUSE_NEW_GRID 1
10f2d63a
VZ
16575EOF
16576
1e6feb95 16577 USES_CONTROLS=1
d6a55c4b 16578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
16579fi
16580
d6a55c4b 16581if test "$wxUSE_GRID" = "yes"; then
698dcdb6 16582 cat >> confdefs.h <<\EOF
d6a55c4b 16583#define wxUSE_GRID 1
10f2d63a
VZ
16584EOF
16585
1e6feb95 16586 USES_CONTROLS=1
d6a55c4b 16587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
16588fi
16589
16590if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 16591 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16592#define wxUSE_IMAGLIST 1
16593EOF
16594
16595fi
16596
16597if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 16598 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16599#define wxUSE_LISTBOX 1
16600EOF
16601
1e6feb95 16602 USES_CONTROLS=1
10f2d63a
VZ
16603fi
16604
16605if test "$wxUSE_LISTCTRL" = "yes"; then
16606 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 16607 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16608#define wxUSE_LISTCTRL 1
16609EOF
16610
1e6feb95 16611 USES_CONTROLS=1
10f2d63a
VZ
16612 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
16613 else
698dcdb6 16614 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
16615 fi
16616fi
16617
16618if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 16619 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16620#define wxUSE_NOTEBOOK 1
16621EOF
16622
1e6feb95 16623 USES_CONTROLS=1
10f2d63a
VZ
16624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
16625fi
16626
16627if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 16628 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16629#define wxUSE_RADIOBOX 1
16630EOF
16631
1e6feb95 16632 USES_CONTROLS=1
10f2d63a
VZ
16633fi
16634
16635if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 16636 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16637#define wxUSE_RADIOBTN 1
16638EOF
16639
1e6feb95 16640 USES_CONTROLS=1
10f2d63a
VZ
16641fi
16642
16643if test "$wxUSE_SASH" = "yes"; then
698dcdb6 16644 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16645#define wxUSE_SASH 1
16646EOF
16647
16648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
16649fi
16650
16651if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 16652 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16653#define wxUSE_SCROLLBAR 1
16654EOF
16655
1e6feb95 16656 USES_CONTROLS=1
741a9306 16657 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
16658fi
16659
16660if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 16661 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16662#define wxUSE_SLIDER 1
16663EOF
16664
1e6feb95 16665 USES_CONTROLS=1
10f2d63a
VZ
16666fi
16667
16668if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 16669 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16670#define wxUSE_SPINBTN 1
16671EOF
16672
1e6feb95 16673 USES_CONTROLS=1
10f2d63a
VZ
16674fi
16675
56cfaa52 16676if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 16677 cat >> confdefs.h <<\EOF
56cfaa52
RR
16678#define wxUSE_SPINCTRL 1
16679EOF
16680
1e6feb95 16681 USES_CONTROLS=1
56cfaa52
RR
16682fi
16683
10f2d63a 16684if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 16685 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16686#define wxUSE_SPLITTER 1
16687EOF
16688
16689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
16690fi
16691
16692if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 16693 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16694#define wxUSE_STATBMP 1
16695EOF
16696
1e6feb95 16697 USES_CONTROLS=1
10f2d63a
VZ
16698fi
16699
16700if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 16701 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16702#define wxUSE_STATBOX 1
16703EOF
16704
1e6feb95
VZ
16705 USES_CONTROLS=1
16706fi
16707
16708if test "$wxUSE_STATTEXT" = "yes"; then
16709 cat >> confdefs.h <<\EOF
16710#define wxUSE_STATTEXT 1
16711EOF
16712
16713 USES_CONTROLS=1
10f2d63a
VZ
16714fi
16715
16716if test "$wxUSE_STATLINE" = "yes"; then
16717 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 16718 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 16719 else
698dcdb6 16720 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16721#define wxUSE_STATLINE 1
16722EOF
16723
1e6feb95 16724 USES_CONTROLS=1
10f2d63a
VZ
16725 fi
16726fi
16727
16728if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 16729 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16730#define wxUSE_STATUSBAR 1
16731EOF
16732
1e6feb95 16733 USES_CONTROLS=1
698dcdb6 16734
2286341c 16735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
16736fi
16737
16738if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 16739 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16740#define wxUSE_TAB_DIALOG 1
16741EOF
16742
16743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
16744fi
16745
1e6feb95
VZ
16746if test "$wxUSE_TEXTCTRL" = "yes"; then
16747 cat >> confdefs.h <<\EOF
16748#define wxUSE_TEXTCTRL 1
16749EOF
16750
16751 USES_CONTROLS=1
16752 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
16753fi
16754
1db8dc4a 16755if test "$wxUSE_TOGGLEBTN" = "yes"; then
a45d7ab7
GD
16756 if test "$wxUSE_MAC" = 1; then
16757 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
16758 wxUSE_TOGGLEBTN=no
16759 fi
16760
16761 if test "$wxUSE_TOGGLEBTN" = "yes"; then
16762 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
16763#define wxUSE_TOGGLEBTN 1
16764EOF
16765
1e6feb95 16766 USES_CONTROLS=1
a45d7ab7 16767 fi
1db8dc4a
VZ
16768fi
16769
360d6699 16770if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 16771 cat >> confdefs.h <<\EOF
360d6699
VZ
16772#define wxUSE_TOOLBAR_SIMPLE 1
16773EOF
16774
16775 wxUSE_TOOLBAR="yes"
1e6feb95 16776 USES_CONTROLS=1
360d6699
VZ
16777fi
16778
10f2d63a 16779if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 16780 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16781#define wxUSE_TOOLBAR 1
16782EOF
16783
1e6feb95 16784 USES_CONTROLS=1
698dcdb6 16785
360d6699
VZ
16786 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
16787 wxUSE_TOOLBAR_NATIVE="yes"
16788 fi
16789
1e6feb95
VZ
16790 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
16791 cat >> confdefs.h <<\EOF
360d6699
VZ
16792#define wxUSE_TOOLBAR_NATIVE 1
16793EOF
16794
1e6feb95
VZ
16795 USES_CONTROLS=1
16796 fi
16797
16798 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
16799fi
16800
10f2d63a
VZ
16801if test "$wxUSE_TOOLTIPS" = "yes"; then
16802 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 16803 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
16804 else
16805 if test "$wxUSE_WINE" = 1; then
698dcdb6 16806 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 16807 else
698dcdb6 16808 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16809#define wxUSE_TOOLTIPS 1
16810EOF
16811
16812 fi
16813 fi
16814fi
16815
16816if test "$wxUSE_TREECTRL" = "yes"; then
16817 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 16818 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16819#define wxUSE_TREECTRL 1
16820EOF
16821
1e6feb95 16822 USES_CONTROLS=1
10f2d63a
VZ
16823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
16824 else
698dcdb6 16825 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
16826 fi
16827fi
16828
1e6feb95
VZ
16829if test "$USES_CONTROLS" = 1; then
16830 cat >> confdefs.h <<\EOF
16831#define wxUSE_CONTROLS 1
10f2d63a
VZ
16832EOF
16833
10f2d63a
VZ
16834fi
16835
1e6feb95
VZ
16836
16837
16838if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 16839 cat >> confdefs.h <<\EOF
1e6feb95 16840#define wxUSE_MENUS 1
10f2d63a
VZ
16841EOF
16842
1e6feb95 16843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
16844fi
16845
1e6feb95
VZ
16846if test "$wxUSE_METAFILE" = "yes"; then
16847 cat >> confdefs.h <<\EOF
16848#define wxUSE_METAFILE 1
10f2d63a
VZ
16849EOF
16850
10f2d63a
VZ
16851fi
16852
1e6feb95
VZ
16853if test "$wxUSE_MIMETYPE" = "yes"; then
16854 cat >> confdefs.h <<\EOF
16855#define wxUSE_MIMETYPE 1
10f2d63a
VZ
16856EOF
16857
10f2d63a
VZ
16858fi
16859
16860if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 16861 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16862#define wxUSE_MINIFRAME 1
16863EOF
16864
16865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
16866fi
16867
16868if test "$wxUSE_HTML" = "yes"; then
698dcdb6 16869 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16870#define wxUSE_HTML 1
16871EOF
16872
16873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
16874 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
16875fi
16876
16877if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 16878 cat >> confdefs.h <<\EOF
1e487827
VS
16879#define wxUSE_VALIDATORS 1
16880EOF
703e0a69 16881
698dcdb6
VZ
16882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
16883fi
16884
16885if test "$wxUSE_IMAGE" = "yes" ; then
16886 cat >> confdefs.h <<\EOF
16887#define wxUSE_IMAGE 1
16888EOF
16889
16890fi
16891
16892if test "$wxUSE_GIF" = "yes" ; then
16893 cat >> confdefs.h <<\EOF
16894#define wxUSE_GIF 1
16895EOF
16896
16897fi
16898
16899if test "$wxUSE_PCX" = "yes" ; then
16900 cat >> confdefs.h <<\EOF
16901#define wxUSE_PCX 1
16902EOF
16903
16904fi
16905
16906if test "$wxUSE_PNM" = "yes" ; then
16907 cat >> confdefs.h <<\EOF
16908#define wxUSE_PNM 1
16909EOF
16910
16911fi
16912
16913if test "$wxUSE_XPM" = "yes" ; then
16914 cat >> confdefs.h <<\EOF
16915#define wxUSE_XPM 1
16916EOF
16917
16918fi
16919
16920
1e6feb95
VZ
16921if test "$wxUSE_CHOICEDLG" = "yes"; then
16922 cat >> confdefs.h <<\EOF
16923#define wxUSE_CHOICEDLG 1
16924EOF
16925
16926fi
16927
16928if test "$wxUSE_COLOURDLG" = "yes"; then
16929 cat >> confdefs.h <<\EOF
16930#define wxUSE_COLOURDLG 1
16931EOF
16932
16933fi
16934
16935if test "$wxUSE_FILEDLG" = "yes"; then
16936 cat >> confdefs.h <<\EOF
16937#define wxUSE_FILEDLG 1
16938EOF
16939
16940fi
16941
16942if test "$wxUSE_FONTDLG" = "yes"; then
16943 cat >> confdefs.h <<\EOF
16944#define wxUSE_FONTDLG 1
16945EOF
16946
16947fi
16948
16949if test "$wxUSE_DIRDLG" = "yes"; then
16950 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16951 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
16952 else
16953 if test "$wxUSE_TREECTRL" != "yes"; then
16954 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
16955 else
16956 cat >> confdefs.h <<\EOF
16957#define wxUSE_DIRDLG 1
16958EOF
16959
16960 fi
16961 fi
16962fi
16963
16964if test "$wxUSE_MSGDLG" = "yes"; then
16965 cat >> confdefs.h <<\EOF
16966#define wxUSE_MSGDLG 1
16967EOF
16968
16969fi
16970
16971if test "$wxUSE_NUMBERDLG" = "yes"; then
16972 cat >> confdefs.h <<\EOF
16973#define wxUSE_NUMBERDLG 1
16974EOF
16975
16976fi
16977
16978if test "$wxUSE_PROGRESSDLG" = "yes"; then
16979 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16980 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
16981 else
16982 cat >> confdefs.h <<\EOF
16983#define wxUSE_PROGRESSDLG 1
16984EOF
16985
16986 fi
16987fi
16988
16989if test "$wxUSE_STARTUP_TIPS" = "yes"; then
16990 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16991 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
16992 else
16993 cat >> confdefs.h <<\EOF
16994#define wxUSE_STARTUP_TIPS 1
16995EOF
16996
16997 fi
16998fi
16999
17000if test "$wxUSE_TEXTDLG" = "yes"; then
17001 cat >> confdefs.h <<\EOF
17002#define wxUSE_TEXTDLG 1
17003EOF
17004
17005fi
17006
17007
698dcdb6
VZ
17008if test "$cross_compiling" = "yes"; then
17009 OSINFO="\"$host\""
17010else
17011 OSINFO=`uname -s -r -m`
17012 OSINFO="\"$OSINFO\""
17013fi
17014
17015cat >> confdefs.h <<EOF
17016#define WXWIN_OS_DESCRIPTION $OSINFO
17017EOF
17018
17019
17020
17021GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17022OPENGL_LIBS="$OPENGL_LINK"
17023
17024EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17025if test "$USE_MAC" = 1 ; then
17026 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17027fi
17028if test "$wxUSE_GUI" = "yes"; then
17029 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17030fi
17031
17032LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17033
17034INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17035
17036if test "$wxUSE_GTK" = 1; then
17037 WXCONFIG_INCLUDE=""
17038else
17039 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17040fi
17041
17042if test "$GXX" = yes ; then
17043 CXXWARNINGS="-Wall"
17044 fi
17045EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17046
17047CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17048CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17049
17050LDFLAGS="$LDFLAGS $PROFILE"
17051
17052if test "$wxUSE_GUI" = "yes"; then
17053
17054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
1e6feb95
VZ
17055 drawing dynamic event font fractal image \
17056 minimal richedit widgets"
17057
17058 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17060 fi
698dcdb6
VZ
17061
17062 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17063else
17064 SAMPLES_SUBDIRS=""
17065fi
17066
17067SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
32832908
VZ
17135
17136
17137
17138
17139
17140
17141
2224580a 17142
dad6c0ea 17143
f6bcfd97
BP
17144
17145
17146
2f51a9ec
GD
17147
17148
17149
17150
17151
17152
f6bcfd97 17153
dad6c0ea 17154
caa2c79b 17155
3711412e 17156
1e6feb95
VZ
17157
17158
0f3f1cbc 17159
10f2d63a
VZ
17160
17161
698dcdb6 17162echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1e6feb95 17163echo "configure:17164: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
17164set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17165if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17166 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17167else
698dcdb6 17168 cat > conftestmake <<\EOF
10f2d63a
VZ
17169all:
17170 @echo 'ac_maketemp="${MAKE}"'
17171EOF
17172# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 17173eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
17174if test -n "$ac_maketemp"; then
17175 eval ac_cv_prog_make_${ac_make}_set=yes
17176else
17177 eval ac_cv_prog_make_${ac_make}_set=no
17178fi
698dcdb6 17179rm -f conftestmake
10f2d63a
VZ
17180fi
17181if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 17182 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
17183 SET_MAKE=
17184else
698dcdb6 17185 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17186 SET_MAKE="MAKE=${MAKE-make}"
17187fi
17188
698dcdb6 17189
00cf1208
RR
17190if test -d include; then
17191 if test -d include/wx; then
1e6feb95
VZ
17192 if test -d include/wx/${SETUPH_DIR}; then
17193 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17194 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
00cf1208
RR
17195 fi
17196 fi
17197 fi
17198fi
665bbe97 17199
698dcdb6 17200
10f2d63a 17201
2224580a 17202if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 17203 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
17204 wx_cv_path_ifs=$PATH_IFS
17205 wx_cv_program_ext=$PROGRAM_EXT
17206 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 17207 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27
VS
17208 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17209 wx_cv_target_library wx_cv_target_libtype
698dcdb6 17210 subdirs="demos samples utils contrib"
2224580a
VZ
17211
17212fi
10f2d63a 17213
698dcdb6
VZ
17214trap '' 1 2 15
17215cat > confcache <<\EOF
10f2d63a
VZ
17216# This file is a shell script that caches the results of configure
17217# tests run on this system so they can be shared between configure
698dcdb6
VZ
17218# scripts and configure runs. It is not useful on other systems.
17219# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 17220#
698dcdb6
VZ
17221# By default, configure uses ./config.cache as the cache file,
17222# creating it if it does not exist already. You can give configure
17223# the --cache-file=FILE option to use a different cache file; that is
17224# what configure does when it calls configure scripts in
17225# subdirectories, so they share the cache.
17226# Giving --cache-file=/dev/null disables caching, for debugging configure.
17227# config.status only pays attention to the cache file if you give it the
17228# --recheck option to rerun configure.
10f2d63a 17229#
698dcdb6 17230EOF
10f2d63a
VZ
17231# The following way of writing the cache mishandles newlines in values,
17232# but we know of no workaround that is simple, portable, and efficient.
17233# So, don't put newlines in cache variables' values.
17234# Ultrix sh set writes to stderr and can't be redirected directly,
17235# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
17236(set) 2>&1 |
17237 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17238 *ac_space=\ *)
17239 # `set' does not quote correctly, so add quotes (double-quote substitution
17240 # turns \\\\ into \\, and sed turns \\ into \).
17241 sed -n \
17242 -e "s/'/'\\\\''/g" \
17243 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17244 ;;
17245 *)
17246 # `set' quotes correctly as required by POSIX, so do not add quotes.
17247 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17248 ;;
17249 esac >> confcache
17250if cmp -s $cache_file confcache; then
17251 :
17252else
10f2d63a 17253 if test -w $cache_file; then
698dcdb6
VZ
17254 echo "updating cache $cache_file"
17255 cat confcache > $cache_file
10f2d63a
VZ
17256 else
17257 echo "not updating unwritable cache $cache_file"
17258 fi
17259fi
17260rm -f confcache
17261
698dcdb6
VZ
17262trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17263
10f2d63a
VZ
17264test "x$prefix" = xNONE && prefix=$ac_default_prefix
17265# Let make expand exec_prefix.
17266test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17267
698dcdb6
VZ
17268# Any assignment to VPATH causes Sun make to only execute
17269# the first set of double-colon rules, so remove it if not needed.
17270# If there is a colon in the path, we need to keep it.
10f2d63a 17271if test "x$srcdir" = x.; then
698dcdb6 17272 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
17273fi
17274
698dcdb6
VZ
17275trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17276
10f2d63a
VZ
17277DEFS=-DHAVE_CONFIG_H
17278
698dcdb6 17279# Without the "./", some shells look in PATH for config.status.
10f2d63a 17280: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
17281
17282echo creating $CONFIG_STATUS
17283rm -f $CONFIG_STATUS
17284cat > $CONFIG_STATUS <<EOF
17285#! /bin/sh
10f2d63a
VZ
17286# Generated automatically by configure.
17287# Run this file to recreate the current configuration.
698dcdb6
VZ
17288# This directory was configured as follows,
17289# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17290#
17291# $0 $ac_configure_args
17292#
10f2d63a 17293# Compiler output produced by configure, useful for debugging
698dcdb6 17294# configure, is in ./config.log if it exists.
1e487827 17295
698dcdb6
VZ
17296ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17297for ac_option
10f2d63a 17298do
698dcdb6 17299 case "\$ac_option" in
10f2d63a 17300 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
17301 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17302 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17303 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17304 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17305 exit 0 ;;
17306 -help | --help | --hel | --he | --h)
17307 echo "\$ac_cs_usage"; exit 0 ;;
17308 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
17309 esac
17310done
17311
698dcdb6
VZ
17312ac_given_srcdir=$srcdir
17313ac_given_INSTALL="$INSTALL"
703e0a69 17314
698dcdb6
VZ
17315trap 'rm -fr `echo "
17316 wx-config
17317 src/make.env
17318 src/makeprog.env
17319 src/makelib.env
17320 Makefile
17321 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 17322EOF
698dcdb6 17323cat >> $CONFIG_STATUS <<EOF
1e487827 17324
698dcdb6
VZ
17325# Protect against being on the right side of a sed subst in config.status.
17326sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17327 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17328$ac_vpsub
17329$extrasub
17330s%@SHELL@%$SHELL%g
17331s%@CFLAGS@%$CFLAGS%g
17332s%@CPPFLAGS@%$CPPFLAGS%g
17333s%@CXXFLAGS@%$CXXFLAGS%g
17334s%@FFLAGS@%$FFLAGS%g
17335s%@DEFS@%$DEFS%g
17336s%@LDFLAGS@%$LDFLAGS%g
17337s%@LIBS@%$LIBS%g
17338s%@exec_prefix@%$exec_prefix%g
17339s%@prefix@%$prefix%g
17340s%@program_transform_name@%$program_transform_name%g
17341s%@bindir@%$bindir%g
17342s%@sbindir@%$sbindir%g
17343s%@libexecdir@%$libexecdir%g
17344s%@datadir@%$datadir%g
17345s%@sysconfdir@%$sysconfdir%g
17346s%@sharedstatedir@%$sharedstatedir%g
17347s%@localstatedir@%$localstatedir%g
17348s%@libdir@%$libdir%g
17349s%@includedir@%$includedir%g
17350s%@oldincludedir@%$oldincludedir%g
17351s%@infodir@%$infodir%g
17352s%@mandir@%$mandir%g
17353s%@host@%$host%g
17354s%@host_alias@%$host_alias%g
17355s%@host_cpu@%$host_cpu%g
17356s%@host_vendor@%$host_vendor%g
17357s%@host_os@%$host_os%g
17358s%@target@%$target%g
17359s%@target_alias@%$target_alias%g
17360s%@target_cpu@%$target_cpu%g
17361s%@target_vendor@%$target_vendor%g
17362s%@target_os@%$target_os%g
17363s%@build@%$build%g
17364s%@build_alias@%$build_alias%g
17365s%@build_cpu@%$build_cpu%g
17366s%@build_vendor@%$build_vendor%g
17367s%@build_os@%$build_os%g
17368s%@CC@%$CC%g
17369s%@CPP@%$CPP%g
17370s%@CXX@%$CXX%g
17371s%@CXXCPP@%$CXXCPP%g
17372s%@RANLIB@%$RANLIB%g
17373s%@AR@%$AR%g
17374s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17375s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17376s%@INSTALL_DATA@%$INSTALL_DATA%g
17377s%@STRIP@%$STRIP%g
17378s%@YACC@%$YACC%g
17379s%@LEX@%$LEX%g
17380s%@LEXLIB@%$LEXLIB%g
17381s%@LN_S@%$LN_S%g
17382s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
17383s%@GTK_CONFIG@%$GTK_CONFIG%g
17384s%@GTK_CFLAGS@%$GTK_CFLAGS%g
17385s%@GTK_LIBS@%$GTK_LIBS%g
17386s%@X_CFLAGS@%$X_CFLAGS%g
17387s%@X_PRE_LIBS@%$X_PRE_LIBS%g
17388s%@X_LIBS@%$X_LIBS%g
17389s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
17390s%@REZ@%$REZ%g
17391s%@DEREZ@%$DEREZ%g
17392s%@LEX_STEM@%$LEX_STEM%g
17393s%@PATH_IFS@%$PATH_IFS%g
17394s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
17395s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
17396s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
17397s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
17398s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
17399s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
17400s%@WX_LIBRARY@%$WX_LIBRARY%g
17401s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
17402s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
17403s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
17404s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
17405s%@PROGRAM_EXT@%$PROGRAM_EXT%g
17406s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
17407s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
17408s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
17409s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
17410s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
17411s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
17412s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
17413s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
17414s%@WX_ALL@%$WX_ALL%g
17415s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
17416s%@SHARED_LD@%$SHARED_LD%g
17417s%@PIC_FLAG@%$PIC_FLAG%g
17418s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
17419s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
17420s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
17421s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
17422s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
17423s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
17424s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
17425s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
17426s%@USE_GUI@%$USE_GUI%g
17427s%@AFMINSTALL@%$AFMINSTALL%g
1e6feb95 17428s%@SETUPH_DIR@%$SETUPH_DIR%g
698dcdb6
VZ
17429s%@TOOLKIT@%$TOOLKIT%g
17430s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
17431s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
17432s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
17433s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
1e6feb95 17434s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
698dcdb6
VZ
17435s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
17436s%@ALL_OBJECTS@%$ALL_OBJECTS%g
17437s%@ALL_DEPFILES@%$ALL_DEPFILES%g
17438s%@GUIDIST@%$GUIDIST%g
17439s%@PORT_FILES@%$PORT_FILES%g
17440s%@DISTDIR@%$DISTDIR%g
17441s%@RPM_SPEC@%$RPM_SPEC%g
17442s%@RPM_FILES@%$RPM_FILES%g
17443s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
17444s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
17445s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
17446s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
17447s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
17448s%@USER_SUBDIRS@%$USER_SUBDIRS%g
17449s%@EXTRA_LIBS@%$EXTRA_LIBS%g
17450s%@OPENGL_LIBS@%$OPENGL_LIBS%g
17451s%@EXTRADEFS@%$EXTRADEFS%g
17452s%@LD_LIBS@%$LD_LIBS%g
17453s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
17454s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
17455s%@RESPROGRAM@%$RESPROGRAM%g
17456s%@RESCOMP@%$RESCOMP%g
17457s%@RESFLAGS@%$RESFLAGS%g
17458s%@REZFLAGS@%$REZFLAGS%g
17459s%@DEREZFLAGS@%$DEREZFLAGS%g
17460s%@LIBWXMACRES@%$LIBWXMACRES%g
17461s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
17462s%@DLLTOOL@%$DLLTOOL%g
17463s%@AS@%$AS%g
17464s%@NM@%$NM%g
17465s%@LD@%$LD%g
17466s%@MAKEINFO@%$MAKEINFO%g
17467s%@SET_MAKE@%$SET_MAKE%g
17468s%@subdirs@%$subdirs%g
1e487827 17469
1e487827 17470CEOF
1e487827
VS
17471EOF
17472
698dcdb6
VZ
17473cat >> $CONFIG_STATUS <<\EOF
17474
17475# Split the substitutions into bite-sized pieces for seds with
17476# small command number limits, like on Digital OSF/1 and HP-UX.
17477ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17478ac_file=1 # Number of current file.
17479ac_beg=1 # First line for current file.
17480ac_end=$ac_max_sed_cmds # Line after last line for current file.
17481ac_more_lines=:
17482ac_sed_cmds=""
17483while $ac_more_lines; do
17484 if test $ac_beg -gt 1; then
17485 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17486 else
17487 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17488 fi
17489 if test ! -s conftest.s$ac_file; then
17490 ac_more_lines=false
17491 rm -f conftest.s$ac_file
17492 else
17493 if test -z "$ac_sed_cmds"; then
17494 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 17495 else
698dcdb6 17496 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 17497 fi
698dcdb6
VZ
17498 ac_file=`expr $ac_file + 1`
17499 ac_beg=$ac_end
17500 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 17501 fi
698dcdb6
VZ
17502done
17503if test -z "$ac_sed_cmds"; then
17504 ac_sed_cmds=cat
17505fi
17506EOF
10f2d63a 17507
698dcdb6
VZ
17508cat >> $CONFIG_STATUS <<EOF
17509
17510CONFIG_FILES=\${CONFIG_FILES-"wx-config
17511 src/make.env
17512 src/makeprog.env
17513 src/makelib.env
17514 Makefile
17515 "}
10f2d63a 17516EOF
698dcdb6
VZ
17517cat >> $CONFIG_STATUS <<\EOF
17518for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 17519 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
17520 case "$ac_file" in
17521 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17522 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17523 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
17524 esac
17525
698dcdb6 17526 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 17527
698dcdb6
VZ
17528 # Remove last slash and all that follows it. Not all systems have dirname.
17529 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17530 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17531 # The file is in a subdirectory.
17532 test ! -d "$ac_dir" && mkdir "$ac_dir"
17533 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 17534 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 17535 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
17536 else
17537 ac_dir_suffix= ac_dots=
17538 fi
17539
698dcdb6
VZ
17540 case "$ac_given_srcdir" in
17541 .) srcdir=.
17542 if test -z "$ac_dots"; then top_srcdir=.
17543 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17544 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 17545 *) # Relative path.
698dcdb6
VZ
17546 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17547 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
17548 esac
17549
698dcdb6
VZ
17550 case "$ac_given_INSTALL" in
17551 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17552 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
17553 esac
17554
698dcdb6
VZ
17555 echo creating "$ac_file"
17556 rm -f "$ac_file"
17557 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17558 case "$ac_file" in
17559 *Makefile*) ac_comsub="1i\\
17560# $configure_input" ;;
17561 *) ac_comsub= ;;
17562 esac
10f2d63a 17563
698dcdb6
VZ
17564 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17565 sed -e "$ac_comsub
17566s%@configure_input@%$configure_input%g
17567s%@srcdir@%$srcdir%g
17568s%@top_srcdir@%$top_srcdir%g
17569s%@INSTALL@%$INSTALL%g
17570" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17571fi; done
17572rm -f conftest.s*
10f2d63a
VZ
17573
17574# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17575# NAME is the cpp macro being defined and VALUE is the value it is being given.
17576#
17577# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
17578ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17579ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17580ac_dC='\3'
17581ac_dD='%g'
17582# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17583ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17584ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 17585ac_uC=' '
698dcdb6
VZ
17586ac_uD='\4%g'
17587# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17588ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17589ac_eB='$%\1#\2define\3'
17590ac_eC=' '
17591ac_eD='%g'
10f2d63a 17592
698dcdb6
VZ
17593if test "${CONFIG_HEADERS+set}" != set; then
17594EOF
17595cat >> $CONFIG_STATUS <<EOF
17596 CONFIG_HEADERS="setup.h:setup.h.in"
17597EOF
17598cat >> $CONFIG_STATUS <<\EOF
17599fi
17600for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 17601 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
17602 case "$ac_file" in
17603 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17604 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17605 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
17606 esac
17607
698dcdb6
VZ
17608 echo creating $ac_file
17609
17610 rm -f conftest.frag conftest.in conftest.out
17611 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17612 cat $ac_file_inputs > conftest.in
17613
17614EOF
17615
17616# Transform confdefs.h into a sed script conftest.vals that substitutes
17617# the proper values into config.h.in to produce config.h. And first:
17618# Protect against being on the right side of a sed subst in config.status.
17619# Protect against being in an unquoted here document in config.status.
17620rm -f conftest.vals
17621cat > conftest.hdr <<\EOF
17622s/[\\&%]/\\&/g
17623s%[\\$`]%\\&%g
17624s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17625s%ac_d%ac_u%gp
17626s%ac_u%ac_e%gp
17627EOF
17628sed -n -f conftest.hdr confdefs.h > conftest.vals
17629rm -f conftest.hdr
10f2d63a
VZ
17630
17631# This sed command replaces #undef with comments. This is necessary, for
17632# example, in the case of _POSIX_SOURCE, which is predefined and required
17633# on some systems where configure will not decide to define it.
698dcdb6
VZ
17634cat >> conftest.vals <<\EOF
17635s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
17636EOF
17637
698dcdb6
VZ
17638# Break up conftest.vals because some shells have a limit on
17639# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
17640
17641rm -f conftest.tail
698dcdb6 17642while :
10f2d63a 17643do
698dcdb6
VZ
17644 ac_lines=`grep -c . conftest.vals`
17645 # grep -c gives empty output for an empty file on some AIX systems.
17646 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17647 # Write a limited-size here document to conftest.frag.
17648 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17649 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 17650 echo 'CEOF
698dcdb6
VZ
17651 sed -f conftest.frag conftest.in > conftest.out
17652 rm -f conftest.in
17653 mv conftest.out conftest.in
17654' >> $CONFIG_STATUS
17655 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17656 rm -f conftest.vals
17657 mv conftest.tail conftest.vals
10f2d63a 17658done
698dcdb6
VZ
17659rm -f conftest.vals
17660
17661cat >> $CONFIG_STATUS <<\EOF
17662 rm -f conftest.frag conftest.h
17663 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17664 cat conftest.in >> conftest.h
17665 rm -f conftest.in
17666 if cmp -s $ac_file conftest.h 2>/dev/null; then
17667 echo "$ac_file is unchanged"
17668 rm -f conftest.h
10f2d63a 17669 else
698dcdb6
VZ
17670 # Remove last slash and all that follows it. Not all systems have dirname.
17671 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 17672 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
17673 # The file is in a subdirectory.
17674 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 17675 fi
698dcdb6
VZ
17676 rm -f $ac_file
17677 mv conftest.h $ac_file
10f2d63a 17678 fi
698dcdb6
VZ
17679fi; done
17680
10f2d63a 17681EOF
698dcdb6 17682cat >> $CONFIG_STATUS <<EOF
10f2d63a 17683
1e6feb95 17684 SETUPH_DIR="${SETUPH_DIR}"
698dcdb6
VZ
17685 TOOLKIT_NAME="${TOOLKIT_NAME}"
17686 LN_S="${LN_S}"
17687
17688
17689EOF
17690cat >> $CONFIG_STATUS <<\EOF
10f2d63a 17691
6ef41520 17692 if test ! -f wx${TOOLKIT_NAME}-config; then
991a5759
VZ
17693 chmod +x wx-config
17694 mv wx-config wx${TOOLKIT_NAME}-config
17695 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
17696 fi
665bbe97 17697
698dcdb6 17698
00cf1208
RR
17699 if test ! -d lib; then
17700 mkdir lib
17701 fi
17702 if test ! -d lib/wx; then
17703 mkdir lib/wx
17704 fi
17705 if test ! -d lib/wx/include; then
17706 mkdir lib/wx/include
17707 fi
17708 if test ! -d lib/wx/include/wx; then
17709 mkdir lib/wx/include/wx
17710 fi
f6bcfd97
BP
17711 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
17712 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
17713 fi
17714 if test -f setup.h; then
066b00aa 17715 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 17716 fi
07eb77a6 17717
698dcdb6 17718
10f2d63a
VZ
17719 if test ! -d include; then
17720 mkdir include
17721 fi
17722 if test ! -d include/wx; then
17723 mkdir include/wx
17724 fi
1e6feb95
VZ
17725 if test ! -d include/wx/${SETUPH_DIR}; then
17726 mkdir include/wx/${SETUPH_DIR}
10f2d63a 17727 fi
afc31813 17728 if test -f setup.h; then
1e6feb95 17729 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
afc31813 17730 fi
665bbe97 17731
698dcdb6
VZ
17732
17733exit 0
10f2d63a
VZ
17734EOF
17735chmod +x $CONFIG_STATUS
698dcdb6
VZ
17736rm -fr confdefs* $ac_clean_files
17737test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 17738
2224580a
VZ
17739if test "$no_recursion" != yes; then
17740
17741 # Remove --cache-file and --srcdir arguments so they do not pile up.
17742 ac_sub_configure_args=
17743 ac_prev=
17744 for ac_arg in $ac_configure_args; do
17745 if test -n "$ac_prev"; then
17746 ac_prev=
17747 continue
17748 fi
698dcdb6 17749 case "$ac_arg" in
2224580a
VZ
17750 -cache-file | --cache-file | --cache-fil | --cache-fi \
17751 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17752 ac_prev=cache_file ;;
17753 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 17754 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
17755 ;;
17756 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17757 ac_prev=srcdir ;;
17758 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17759 ;;
17760 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17761 esac
17762 done
17763
698dcdb6 17764 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
17765
17766 # Do not complain, so a configure script can configure whichever
17767 # parts of a large source tree are present.
698dcdb6
VZ
17768 if test ! -d $srcdir/$ac_config_dir; then
17769 continue
17770 fi
17771
17772 echo configuring in $ac_config_dir
2224580a 17773
698dcdb6 17774 case "$srcdir" in
2224580a
VZ
17775 .) ;;
17776 *)
698dcdb6
VZ
17777 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
17778 else
17779 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
17780 fi
17781 ;;
2224580a
VZ
17782 esac
17783
17784 ac_popdir=`pwd`
698dcdb6 17785 cd $ac_config_dir
2224580a 17786
698dcdb6
VZ
17787 # A "../" for each directory in /$ac_config_dir.
17788 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 17789
698dcdb6 17790 case "$srcdir" in
2224580a
VZ
17791 .) # No --srcdir option. We are building in place.
17792 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
17793 /*) # Absolute path.
17794 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 17795 *) # Relative path.
698dcdb6 17796 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
17797 esac
17798
17799 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
17800 if test -f $ac_sub_srcdir/configure; then
17801 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
17802 elif test -f $ac_sub_srcdir/configure.in; then
17803 ac_sub_configure=$ac_configure
17804 else
698dcdb6 17805 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
17806 ac_sub_configure=
17807 fi
17808
17809 # The recursion is here.
17810 if test -n "$ac_sub_configure"; then
698dcdb6 17811
2224580a 17812 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
17813 case "$cache_file" in
17814 /*) ac_sub_cache_file=$cache_file ;;
2224580a 17815 *) # Relative path.
698dcdb6 17816 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 17817 esac
698dcdb6
VZ
17818 case "$ac_given_INSTALL" in
17819 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17820 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17821 esac
2224580a 17822
698dcdb6 17823 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 17824 # The eval makes quoting arguments work.
698dcdb6
VZ
17825 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
17826 then :
17827 else
17828 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
17829 fi
2224580a
VZ
17830 fi
17831
17832 cd $ac_popdir
17833 done
17834fi
17835
698dcdb6 17836