]> git.saurik.com Git - wxWidgets.git/blame - configure
no message
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
10f2d63a
VZ
36
37
38
39
40# Guess values for system-dependent variables and create Makefiles.
d6a55c4b 41# Generated automatically using autoconf version 2.13
10f2d63a
VZ
42# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
43#
44# This configure script is free software; the Free Software Foundation
45# gives unlimited permission to copy, distribute and modify it.
46
47# Defaults:
48ac_help=
49ac_default_prefix=/usr/local
50# Any additions from configure.in:
51ac_help="$ac_help
52--enable-gui use GUI classes"
53ac_help="$ac_help
54 --with-gtk use GTK+"
55ac_help="$ac_help
56 --with-motif use Motif/Lesstif"
57ac_help="$ac_help
58 --with-wine use WINE"
59ac_help="$ac_help
60 --with-cygwin use Cygwin for MS-Windows"
61ac_help="$ac_help
62 --with-mingw use GCC Minimal MS-Windows"
e07802fc
VZ
63ac_help="$ac_help
64 --with-pm use OS/2 Presentation Manager"
10f2d63a
VZ
65ac_help="$ac_help
66 --with-gtk-prefix=PFX Prefix where GTK is installed"
67ac_help="$ac_help
68 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
69ac_help="$ac_help
10f2d63a
VZ
70--with-libpng use libpng (PNG image format)"
71ac_help="$ac_help
72--with-libjpeg use libjpeg (JPEG file format)"
73ac_help="$ac_help
c7a2bf27
RR
74--with-libtiff use libtiff (TIFF file format)"
75ac_help="$ac_help
10f2d63a
VZ
76--with-opengl use OpenGL (or Mesa)"
77ac_help="$ac_help
b12915c1
VZ
78--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
79ac_help="$ac_help
80--with-zlib use zlib for LZW compression"
81ac_help="$ac_help
10f2d63a
VZ
82--with-odbc use the IODBC and wxODBC classes"
83ac_help="$ac_help
84--enable-shared create shared library code"
85ac_help="$ac_help
00cf1208
RR
86--enable-burnt_name create set name in shared library "
87ac_help="$ac_help
10f2d63a
VZ
88--enable-optimise create optimised code"
89ac_help="$ac_help
90--enable-debug same as debug_flag and debug_info"
91ac_help="$ac_help
92--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
93ac_help="$ac_help
94--enable-debug_info create code with debugging information"
95ac_help="$ac_help
96--enable-debug_gdb create code with extra GDB debugging information"
97ac_help="$ac_help
98--enable-debug_cntxt use wxDebugContext"
99ac_help="$ac_help
100--enable-mem_tracing create code with memory tracing"
101ac_help="$ac_help
102--enable-profile create code with profiling information"
103ac_help="$ac_help
104--enable-no_rtti create code without RTTI information"
105ac_help="$ac_help
106--enable-no_exceptions create code without exceptions information"
107ac_help="$ac_help
108--enable-permissive compile code disregarding strict ANSI"
109ac_help="$ac_help
110--enable-no_deps create code without dependency information"
111ac_help="$ac_help
112--enable-intl use internationalization system"
113ac_help="$ac_help
114--enable-config use wxConfig (and derived) classes"
115ac_help="$ac_help
116--enable-sockets use socket/network classes"
117ac_help="$ac_help
118--enable-dialupman use dialup network classes"
119ac_help="$ac_help
120--enable-ipc use interprocess communication (wxSocket etc.)"
121ac_help="$ac_help
122--enable-apple_ieee use the Apple IEEE codec"
123ac_help="$ac_help
124--enable-timedate use date/time classes"
125ac_help="$ac_help
126--enable-wave use wxWave class"
127ac_help="$ac_help
128--enable-fraction use wxFraction class"
129ac_help="$ac_help
130--enable-dynlib use wxLibrary class for DLL loading"
131ac_help="$ac_help
132--enable-longlong use wxLongLong class"
133ac_help="$ac_help
134--enable-log use logging system"
135ac_help="$ac_help
136--enable-streams use wxStream etc classes"
137ac_help="$ac_help
138--enable-file use wxFile classes"
139ac_help="$ac_help
140--enable-textfile use wxTextFile classes"
141ac_help="$ac_help
142--enable-unicode compile wxString with Unicode support"
143ac_help="$ac_help
144--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
145ac_help="$ac_help
146--enable-wxprintfv use wxWindows implementation of vprintf()"
147ac_help="$ac_help
148--enable-joystick compile in joystick support (Linux only)"
149ac_help="$ac_help
150--enable-std_iostreams use standard C++ stream classes"
151ac_help="$ac_help
24528b0c
VS
152--enable-filesystem use virtual file systems classes"
153ac_help="$ac_help
10f2d63a
VZ
154--enable-fs_inet use virtual HTTP/FTP filesystems"
155ac_help="$ac_help
156--enable-fs_zip use virtual ZIP filesystems"
157ac_help="$ac_help
158--enable-zipstream use wxZipInputStream"
159ac_help="$ac_help
160--enable-threads use threads"
161ac_help="$ac_help
162--enable-serial use class serialization"
163ac_help="$ac_help
164--enable-docview use document view architecture"
165ac_help="$ac_help
166--enable-help use help (using external browser at present)"
167ac_help="$ac_help
168--enable-constraints use layout-constraints system"
169ac_help="$ac_help
170--enable-printarch use printing architecture"
171ac_help="$ac_help
172--enable-mdi use multiple document interface architecture"
173ac_help="$ac_help
174--enable-postscript use wxPostscriptDC device context (default for gtk+)"
175ac_help="$ac_help
176--enable-prologio use Prolog IO library"
177ac_help="$ac_help
178--enable-resources use wxWindows resources"
179ac_help="$ac_help
180--enable-xresources use X resources for save (default for gtk+)"
181ac_help="$ac_help
182--enable-clipboard use wxClipboard classes"
183ac_help="$ac_help
184--enable-dnd use Drag'n'Drop classes"
185ac_help="$ac_help
186--enable-wxtree make wxTree library"
187ac_help="$ac_help
188--enable-controls use all usual controls"
189ac_help="$ac_help
190--enable-accel use accelerators"
191ac_help="$ac_help
192--enable-caret use wxCaret class"
193ac_help="$ac_help
194--enable-bmpbutton use wxBitmapButton class"
195ac_help="$ac_help
196--enable-checkbox use wxCheckBox class"
197ac_help="$ac_help
198--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
199ac_help="$ac_help
200--enable-choice use wxChoice class"
201ac_help="$ac_help
202--enable-combobox use wxComboBox classes"
203ac_help="$ac_help
204--enable-gauge use wxGauge class"
205ac_help="$ac_help
206--enable-grid use wxGrid class"
207ac_help="$ac_help
208--enable-newgrid use new wxGrid class"
209ac_help="$ac_help
210--enable-imaglist use wxImageList class"
211ac_help="$ac_help
212--enable-listbox use wxListBox class"
213ac_help="$ac_help
214--enable-listctrl use wxListCtrl class"
215ac_help="$ac_help
216--enable-notebook use wxNotebook class"
217ac_help="$ac_help
218--enable-radiobox use wxRadioBox class"
219ac_help="$ac_help
220--enable-radiobtn use wxRadioButton class"
221ac_help="$ac_help
222--enable-sash use wxSashWindow class"
223ac_help="$ac_help
224--enable-scrollbar use wxScrollBar class and scrollable windows"
225ac_help="$ac_help
226--enable-slider use wxSlider class"
227ac_help="$ac_help
228--enable-spinbtn use wxSpinButton class"
229ac_help="$ac_help
56cfaa52
RR
230--enable-spinctrl use wxSpinCtrl class"
231ac_help="$ac_help
10f2d63a
VZ
232--enable-splitter use wxSplitterWindow class"
233ac_help="$ac_help
234--enable-statbmp use wxStaticBitmap class"
235ac_help="$ac_help
236--enable-statbox use wxStaticBox class"
237ac_help="$ac_help
238--enable-statline use wxStaticLine class"
239ac_help="$ac_help
240--enable-statusbar use wxStatusBar class"
241ac_help="$ac_help
242--enable-tabdialog use wxTabControl class"
243ac_help="$ac_help
244--enable-toolbar use wxToolBar class"
245ac_help="$ac_help
360d6699
VZ
246--enable-tbarnative use native wxToolBar class"
247ac_help="$ac_help
248--enable-tbarsmpl use wxToolBarSimple class"
249ac_help="$ac_help
10f2d63a
VZ
250--enable-treectrl use wxTreeCtrl class"
251ac_help="$ac_help
252--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
253ac_help="$ac_help
254--enable-dirdlg use wxDirDialog"
255ac_help="$ac_help
256--enable-textdlg use wxTextDialog"
257ac_help="$ac_help
258--enable-tipdlg use startup tips"
259ac_help="$ac_help
260--enable-progressdlg use wxProgressDialog"
261ac_help="$ac_help
262--enable-miniframe use wxMiniFrame class"
263ac_help="$ac_help
264--enable-html use wxHTML sub-library"
265ac_help="$ac_help
266--enable-tooltips use wxToolTip class"
267ac_help="$ac_help
268--enable-splines use spline drawing code"
269ac_help="$ac_help
270--enable-validators use wxValidator and derived classes"
271ac_help="$ac_help
272--enable-busyinfo use wxBusyInfo"
273ac_help="$ac_help
9b33fe02
VZ
274--enable-plot use wxPlot"
275ac_help="$ac_help
10f2d63a
VZ
276--enable-gif use gif images (GIF file format)"
277ac_help="$ac_help
278--enable-pcx use pcx images (PCX file format)"
279ac_help="$ac_help
280--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
281ac_help="$ac_help
282 --with-x use the X Window System"
10f2d63a
VZ
283
284# Initialize some variables set by options.
285# The variables have the same names as the options, with
286# dashes changed to underlines.
287build=NONE
288cache_file=./config.cache
289exec_prefix=NONE
290host=NONE
291no_create=
292nonopt=NONE
293no_recursion=
294prefix=NONE
295program_prefix=NONE
296program_suffix=NONE
297program_transform_name=s,x,x,
298silent=
299site=
300srcdir=
301target=NONE
302verbose=
303x_includes=NONE
304x_libraries=NONE
305bindir='${exec_prefix}/bin'
306sbindir='${exec_prefix}/sbin'
307libexecdir='${exec_prefix}/libexec'
308datadir='${prefix}/share'
309sysconfdir='${prefix}/etc'
310sharedstatedir='${prefix}/com'
311localstatedir='${prefix}/var'
312libdir='${exec_prefix}/lib'
313includedir='${prefix}/include'
314oldincludedir='/usr/include'
315infodir='${prefix}/info'
316mandir='${prefix}/man'
317
318# Initialize some other variables.
319subdirs=
320MFLAGS= MAKEFLAGS=
321SHELL=${CONFIG_SHELL-/bin/sh}
322# Maximum number of lines to put in a shell here document.
323ac_max_here_lines=12
324
325ac_prev=
326for ac_option
327do
328
329 # If the previous option needs an argument, assign it.
330 if test -n "$ac_prev"; then
331 eval "$ac_prev=\$ac_option"
332 ac_prev=
333 continue
334 fi
335
336 case "$ac_option" in
337 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
338 *) ac_optarg= ;;
339 esac
340
341 # Accept the important Cygnus configure options, so we can diagnose typos.
342
343 case "$ac_option" in
344
345 -bindir | --bindir | --bindi | --bind | --bin | --bi)
346 ac_prev=bindir ;;
347 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
348 bindir="$ac_optarg" ;;
349
350 -build | --build | --buil | --bui | --bu)
351 ac_prev=build ;;
352 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
353 build="$ac_optarg" ;;
354
355 -cache-file | --cache-file | --cache-fil | --cache-fi \
356 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
357 ac_prev=cache_file ;;
358 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
359 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
360 cache_file="$ac_optarg" ;;
361
362 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
363 ac_prev=datadir ;;
364 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
365 | --da=*)
366 datadir="$ac_optarg" ;;
367
368 -disable-* | --disable-*)
369 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
373 fi
374 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
375 eval "enable_${ac_feature}=no" ;;
376
377 -enable-* | --enable-*)
378 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
382 fi
383 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
384 case "$ac_option" in
385 *=*) ;;
386 *) ac_optarg=yes ;;
387 esac
388 eval "enable_${ac_feature}='$ac_optarg'" ;;
389
390 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
391 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
392 | --exec | --exe | --ex)
393 ac_prev=exec_prefix ;;
394 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
395 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
396 | --exec=* | --exe=* | --ex=*)
397 exec_prefix="$ac_optarg" ;;
398
399 -gas | --gas | --ga | --g)
400 # Obsolete; use --with-gas.
401 with_gas=yes ;;
402
403 -help | --help | --hel | --he)
404 # Omit some internal or obsolete options to make the list less imposing.
405 # This message is too long to be a string in the A/UX 3.1 sh.
406 cat << EOF
407Usage: configure [options] [host]
408Options: [defaults in brackets after descriptions]
409Configuration:
410 --cache-file=FILE cache test results in FILE
411 --help print this message
412 --no-create do not create output files
413 --quiet, --silent do not print \`checking...' messages
414 --version print the version of autoconf that created configure
415Directory and file names:
416 --prefix=PREFIX install architecture-independent files in PREFIX
417 [$ac_default_prefix]
418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
419 [same as prefix]
420 --bindir=DIR user executables in DIR [EPREFIX/bin]
421 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
422 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
423 --datadir=DIR read-only architecture-independent data in DIR
424 [PREFIX/share]
425 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
426 --sharedstatedir=DIR modifiable architecture-independent data in DIR
427 [PREFIX/com]
428 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
429 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
430 --includedir=DIR C header files in DIR [PREFIX/include]
431 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
432 --infodir=DIR info documentation in DIR [PREFIX/info]
433 --mandir=DIR man documentation in DIR [PREFIX/man]
434 --srcdir=DIR find the sources in DIR [configure dir or ..]
435 --program-prefix=PREFIX prepend PREFIX to installed program names
436 --program-suffix=SUFFIX append SUFFIX to installed program names
437 --program-transform-name=PROGRAM
438 run sed PROGRAM on installed program names
439EOF
440 cat << EOF
441Host type:
442 --build=BUILD configure for building on BUILD [BUILD=HOST]
443 --host=HOST configure for HOST [guessed]
444 --target=TARGET configure for TARGET [TARGET=HOST]
445Features and packages:
446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
450 --x-includes=DIR X include files are in DIR
451 --x-libraries=DIR X library files are in DIR
452EOF
453 if test -n "$ac_help"; then
454 echo "--enable and --with options recognized:$ac_help"
455 fi
456 exit 0 ;;
457
458 -host | --host | --hos | --ho)
459 ac_prev=host ;;
460 -host=* | --host=* | --hos=* | --ho=*)
461 host="$ac_optarg" ;;
462
463 -includedir | --includedir | --includedi | --included | --include \
464 | --includ | --inclu | --incl | --inc)
465 ac_prev=includedir ;;
466 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
467 | --includ=* | --inclu=* | --incl=* | --inc=*)
468 includedir="$ac_optarg" ;;
469
470 -infodir | --infodir | --infodi | --infod | --info | --inf)
471 ac_prev=infodir ;;
472 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
473 infodir="$ac_optarg" ;;
474
475 -libdir | --libdir | --libdi | --libd)
476 ac_prev=libdir ;;
477 -libdir=* | --libdir=* | --libdi=* | --libd=*)
478 libdir="$ac_optarg" ;;
479
480 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
481 | --libexe | --libex | --libe)
482 ac_prev=libexecdir ;;
483 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
484 | --libexe=* | --libex=* | --libe=*)
485 libexecdir="$ac_optarg" ;;
486
487 -localstatedir | --localstatedir | --localstatedi | --localstated \
488 | --localstate | --localstat | --localsta | --localst \
489 | --locals | --local | --loca | --loc | --lo)
490 ac_prev=localstatedir ;;
491 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
492 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
493 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
494 localstatedir="$ac_optarg" ;;
495
496 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
497 ac_prev=mandir ;;
498 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
499 mandir="$ac_optarg" ;;
500
501 -nfp | --nfp | --nf)
502 # Obsolete; use --without-fp.
503 with_fp=no ;;
504
505 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
506 | --no-cr | --no-c)
507 no_create=yes ;;
508
509 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
510 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
511 no_recursion=yes ;;
512
513 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
514 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
515 | --oldin | --oldi | --old | --ol | --o)
516 ac_prev=oldincludedir ;;
517 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
518 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
519 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
520 oldincludedir="$ac_optarg" ;;
521
522 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
523 ac_prev=prefix ;;
524 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
525 prefix="$ac_optarg" ;;
526
527 -program-prefix | --program-prefix | --program-prefi | --program-pref \
528 | --program-pre | --program-pr | --program-p)
529 ac_prev=program_prefix ;;
530 -program-prefix=* | --program-prefix=* | --program-prefi=* \
531 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
532 program_prefix="$ac_optarg" ;;
533
534 -program-suffix | --program-suffix | --program-suffi | --program-suff \
535 | --program-suf | --program-su | --program-s)
536 ac_prev=program_suffix ;;
537 -program-suffix=* | --program-suffix=* | --program-suffi=* \
538 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
539 program_suffix="$ac_optarg" ;;
540
541 -program-transform-name | --program-transform-name \
542 | --program-transform-nam | --program-transform-na \
543 | --program-transform-n | --program-transform- \
544 | --program-transform | --program-transfor \
545 | --program-transfo | --program-transf \
546 | --program-trans | --program-tran \
547 | --progr-tra | --program-tr | --program-t)
548 ac_prev=program_transform_name ;;
549 -program-transform-name=* | --program-transform-name=* \
550 | --program-transform-nam=* | --program-transform-na=* \
551 | --program-transform-n=* | --program-transform-=* \
552 | --program-transform=* | --program-transfor=* \
553 | --program-transfo=* | --program-transf=* \
554 | --program-trans=* | --program-tran=* \
555 | --progr-tra=* | --program-tr=* | --program-t=*)
556 program_transform_name="$ac_optarg" ;;
557
558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
559 | -silent | --silent | --silen | --sile | --sil)
560 silent=yes ;;
561
562 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
563 ac_prev=sbindir ;;
564 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
565 | --sbi=* | --sb=*)
566 sbindir="$ac_optarg" ;;
567
568 -sharedstatedir | --sharedstatedir | --sharedstatedi \
569 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
570 | --sharedst | --shareds | --shared | --share | --shar \
571 | --sha | --sh)
572 ac_prev=sharedstatedir ;;
573 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
574 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
575 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
576 | --sha=* | --sh=*)
577 sharedstatedir="$ac_optarg" ;;
578
579 -site | --site | --sit)
580 ac_prev=site ;;
581 -site=* | --site=* | --sit=*)
582 site="$ac_optarg" ;;
583
584 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
585 ac_prev=srcdir ;;
586 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
587 srcdir="$ac_optarg" ;;
588
589 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
590 | --syscon | --sysco | --sysc | --sys | --sy)
591 ac_prev=sysconfdir ;;
592 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
593 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
594 sysconfdir="$ac_optarg" ;;
595
596 -target | --target | --targe | --targ | --tar | --ta | --t)
597 ac_prev=target ;;
598 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
599 target="$ac_optarg" ;;
600
601 -v | -verbose | --verbose | --verbos | --verbo | --verb)
602 verbose=yes ;;
603
604 -version | --version | --versio | --versi | --vers)
d6a55c4b 605 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
606 exit 0 ;;
607
608 -with-* | --with-*)
609 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
610 # Reject names that are not valid shell variable names.
611 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
612 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
613 fi
614 ac_package=`echo $ac_package| sed 's/-/_/g'`
615 case "$ac_option" in
616 *=*) ;;
617 *) ac_optarg=yes ;;
618 esac
619 eval "with_${ac_package}='$ac_optarg'" ;;
620
621 -without-* | --without-*)
622 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
623 # Reject names that are not valid shell variable names.
624 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
625 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
626 fi
627 ac_package=`echo $ac_package| sed 's/-/_/g'`
628 eval "with_${ac_package}=no" ;;
629
630 --x)
631 # Obsolete; use --with-x.
632 with_x=yes ;;
633
634 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
635 | --x-incl | --x-inc | --x-in | --x-i)
636 ac_prev=x_includes ;;
637 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
638 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
639 x_includes="$ac_optarg" ;;
640
641 -x-libraries | --x-libraries | --x-librarie | --x-librari \
642 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
643 ac_prev=x_libraries ;;
644 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
645 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
646 x_libraries="$ac_optarg" ;;
647
648 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
649 ;;
650
651 *)
652 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
653 echo "configure: warning: $ac_option: invalid host type" 1>&2
654 fi
655 if test "x$nonopt" != xNONE; then
656 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
657 fi
658 nonopt="$ac_option"
659 ;;
660
661 esac
662done
663
664if test -n "$ac_prev"; then
665 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
666fi
667
668trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
669
670# File descriptor usage:
671# 0 standard input
672# 1 file creation
673# 2 errors and warnings
674# 3 some systems may open it to /dev/tty
675# 4 used on the Kubota Titan
676# 6 checking for... messages and results
677# 5 compiler messages saved in config.log
678if test "$silent" = yes; then
679 exec 6>/dev/null
680else
681 exec 6>&1
682fi
683exec 5>./config.log
684
685echo "\
686This file contains any messages produced by compilers while
687running configure, to aid debugging if configure makes a mistake.
688" 1>&5
689
690# Strip out --no-create and --no-recursion so they do not pile up.
691# Also quote any args containing shell metacharacters.
692ac_configure_args=
693for ac_arg
694do
695 case "$ac_arg" in
696 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
697 | --no-cr | --no-c) ;;
698 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
699 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
700 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
701 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
702 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
703 esac
704done
705
706# NLS nuisances.
707# Only set these to C if already set. These must not be set unconditionally
708# because not all systems understand e.g. LANG=C (notably SCO).
709# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
710# Non-C LC_CTYPE values break the ctype check.
711if test "${LANG+set}" = set; then LANG=C; export LANG; fi
712if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
713if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
714if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
715
716# confdefs.h avoids OS command line length limits that DEFS can exceed.
717rm -rf conftest* confdefs.h
718# AIX cpp loses on an empty file, so make sure it contains at least a newline.
719echo > confdefs.h
720
721# A filename unique to this package, relative to the directory that
722# configure is in, which we can look for to find out if srcdir is correct.
723ac_unique_file=wx-config.in
724
725# Find the source files, if location was not specified.
726if test -z "$srcdir"; then
727 ac_srcdir_defaulted=yes
728 # Try the directory containing this script, then its parent.
729 ac_prog=$0
730 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
731 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
732 srcdir=$ac_confdir
733 if test ! -r $srcdir/$ac_unique_file; then
734 srcdir=..
735 fi
736else
737 ac_srcdir_defaulted=no
738fi
739if test ! -r $srcdir/$ac_unique_file; then
740 if test "$ac_srcdir_defaulted" = yes; then
741 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
742 else
743 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
744 fi
745fi
746srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
747
748# Prefer explicitly selected file to automatically selected ones.
749if test -z "$CONFIG_SITE"; then
750 if test "x$prefix" != xNONE; then
751 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
752 else
753 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
754 fi
755fi
756for ac_site_file in $CONFIG_SITE; do
757 if test -r "$ac_site_file"; then
758 echo "loading site script $ac_site_file"
759 . "$ac_site_file"
760 fi
761done
762
763if test -r "$cache_file"; then
764 echo "loading cache $cache_file"
765 . $cache_file
766else
767 echo "creating cache $cache_file"
768 > $cache_file
769fi
770
771ac_ext=c
772# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
773ac_cpp='$CPP $CPPFLAGS'
774ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
775ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
776cross_compiling=$ac_cv_prog_cc_cross
777
778ac_exeext=
779ac_objext=o
780if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
781 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
782 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
783 ac_n= ac_c='
784' ac_t=' '
785 else
786 ac_n=-n ac_c= ac_t=
787 fi
788else
789 ac_n= ac_c='\c' ac_t=
790fi
791
792
793
7c66a493
VZ
794ac_aux_dir=
795for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
796 if test -f $ac_dir/install-sh; then
797 ac_aux_dir=$ac_dir
798 ac_install_sh="$ac_aux_dir/install-sh -c"
799 break
800 elif test -f $ac_dir/install.sh; then
801 ac_aux_dir=$ac_dir
802 ac_install_sh="$ac_aux_dir/install.sh -c"
803 break
804 fi
805done
806if test -z "$ac_aux_dir"; then
807 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
808fi
809ac_config_guess=$ac_aux_dir/config.guess
810ac_config_sub=$ac_aux_dir/config.sub
811ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
812
813
814# Do some error checking and defaulting for the host and target type.
815# The inputs are:
816# configure --host=HOST --target=TARGET --build=BUILD NONOPT
817#
818# The rules are:
819# 1. You are not allowed to specify --host, --target, and nonopt at the
820# same time.
821# 2. Host defaults to nonopt.
822# 3. If nonopt is not specified, then host defaults to the current host,
823# as determined by config.guess.
824# 4. Target and build default to nonopt.
825# 5. If nonopt is not specified, then target and build default to host.
826
827# The aliases save the names the user supplied, while $host etc.
828# will get canonicalized.
829case $host---$target---$nonopt in
830NONE---*---* | *---NONE---* | *---*---NONE) ;;
831*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
832esac
833
834
835# Make sure we can run config.sub.
836if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
837else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
838fi
839
840echo $ac_n "checking host system type""... $ac_c" 1>&6
24528b0c 841echo "configure:842: checking host system type" >&5
7c66a493
VZ
842
843host_alias=$host
844case "$host_alias" in
845NONE)
846 case $nonopt in
847 NONE)
848 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
849 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
850 fi ;;
851 *) host_alias=$nonopt ;;
852 esac ;;
853esac
854
855host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
856host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
857host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
858host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
859echo "$ac_t""$host" 1>&6
860
861echo $ac_n "checking target system type""... $ac_c" 1>&6
24528b0c 862echo "configure:863: checking target system type" >&5
7c66a493
VZ
863
864target_alias=$target
865case "$target_alias" in
866NONE)
867 case $nonopt in
868 NONE) target_alias=$host_alias ;;
869 *) target_alias=$nonopt ;;
870 esac ;;
871esac
872
873target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
874target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
875target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
876target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
877echo "$ac_t""$target" 1>&6
878
879echo $ac_n "checking build system type""... $ac_c" 1>&6
24528b0c 880echo "configure:881: checking build system type" >&5
7c66a493
VZ
881
882build_alias=$build
883case "$build_alias" in
884NONE)
885 case $nonopt in
886 NONE) build_alias=$host_alias ;;
887 *) build_alias=$nonopt ;;
888 esac ;;
889esac
890
891build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
892build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
893build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
894build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
895echo "$ac_t""$build" 1>&6
896
897test "$host_alias" != "$target_alias" &&
898 test "$program_prefix$program_suffix$program_transform_name" = \
899 NONENONEs,x,x, &&
900 program_prefix=${target_alias}-
901
902
10f2d63a
VZ
903
904WX_MAJOR_VERSION_NUMBER=2
905WX_MINOR_VERSION_NUMBER=1
cc977e5f 906WX_RELEASE_NUMBER=14
10f2d63a
VZ
907
908WX_INTERFACE_AGE=0
909WX_BINARY_AGE=0
910
911WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
912
913WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
914WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
915WX_REVISION=$WX_INTERFACE_AGE
916WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
917
918
919USE_UNIX=1
920USE_WIN32=0
b12915c1
VZ
921USE_BEOS=0
922
10f2d63a
VZ
923USE_LINUX=
924USE_SGI=
925USE_HPUX=
926USE_SYSV=
927USE_SVR4=
928USE_AIX=
929USE_SUN=
930USE_SOLARIS=
931USE_SUNOS=
932USE_ALPHA=
933USE_OSF=
934USE_BSD=
935USE_FREEBSD=
936USE_VMS=
937USE_ULTRIX=
938USE_CYGWIN=
939USE_MINGW=
940USE_DATA_GENERAL=
941
ab9b9eab
VZ
942NEEDS_D_REENTRANT_FOR_R_FUNCS=0
943
e07802fc 944ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
945
946DEFAULT_wxUSE_GTK=0
947DEFAULT_wxUSE_MOTIF=0
948DEFAULT_wxUSE_MSW=0
949DEFAULT_wxUSE_WINE=0
e07802fc 950DEFAULT_wxUSE_PM=0
10f2d63a
VZ
951
952DEFAULT_DEFAULT_wxUSE_GTK=0
953DEFAULT_DEFAULT_wxUSE_MOTIF=0
954DEFAULT_DEFAULT_wxUSE_MSW=0
955DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 956DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 957
d6a55c4b
VZ
958PROGRAM_EXT=
959
10f2d63a
VZ
960case "${host}" in
961 *-hp-hpux* )
962 USE_HPUX=1
963 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 964 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
965 cat >> confdefs.h <<\EOF
966#define __HPUX__ 1
967EOF
968
969 ;;
970 *-*-linux* )
971 USE_LINUX=1
972 cat >> confdefs.h <<\EOF
973#define __LINUX__ 1
974EOF
975
976 TMP=`uname -m`
977 if test "x$TMP" = "xalpha"; then
978 USE_ALPHA=1
979 cat >> confdefs.h <<\EOF
980#define __ALPHA__ 1
981EOF
982
983 fi
984 DEFAULT_DEFAULT_wxUSE_GTK=1
985 ;;
986 *-*-irix5* | *-*-irix6* )
987 USE_SGI=1
988 USE_SVR4=1
989 cat >> confdefs.h <<\EOF
990#define __SGI__ 1
991EOF
992
993 cat >> confdefs.h <<\EOF
994#define __SVR4__ 1
995EOF
996
997 DEFAULT_DEFAULT_wxUSE_MOTIF=1
998 ;;
999 *-*-solaris2* )
1000 USE_SUN=1
1001 USE_SOLARIS=1
1002 USE_SVR4=1
1003 cat >> confdefs.h <<\EOF
1004#define __SUN__ 1
1005EOF
1006
1007 cat >> confdefs.h <<\EOF
1008#define __SOLARIS__ 1
1009EOF
1010
1011 cat >> confdefs.h <<\EOF
1012#define __SVR4__ 1
1013EOF
1014
1015 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1016 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1017 ;;
1018 *-*-sunos4* )
1019 USE_SUN=1
1020 USE_SUNOS=1
1021 USE_BSD=1
1022 cat >> confdefs.h <<\EOF
1023#define __SUN__ 1
1024EOF
1025
1026 cat >> confdefs.h <<\EOF
1027#define __SUNOS__ 1
1028EOF
1029
1030 cat >> confdefs.h <<\EOF
1031#define __BSD__ 1
1032EOF
1033
1034 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1035 ;;
1036 *-*-freebsd* | *-*-netbsd*)
1037 USE_BSD=1
1038 USE_FREEBSD=1
1039 cat >> confdefs.h <<\EOF
1040#define __FREEBSD__ 1
1041EOF
1042
1043 cat >> confdefs.h <<\EOF
1044#define __BSD__ 1
1045EOF
1046
1047 DEFAULT_DEFAULT_wxUSE_GTK=1
1048 ;;
1049 *-*-osf* )
1050 USE_ALPHA=1
1051 USE_OSF=1
1052 cat >> confdefs.h <<\EOF
1053#define __ALPHA__ 1
1054EOF
1055
1056 cat >> confdefs.h <<\EOF
1057#define __OSF__ 1
1058EOF
1059
1060 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1061 ;;
1062 *-*-dgux5* )
1063 USE_ALPHA=1
1064 USE_SVR4=1
1065 cat >> confdefs.h <<\EOF
1066#define __ALPHA__ 1
1067EOF
1068
1069 cat >> confdefs.h <<\EOF
1070#define __SVR4__ 1
1071EOF
1072
1073 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1074 ;;
1075 *-*-sysv5* )
1076 USE_SYSV=1
1077 USE_SVR4=1
1078 cat >> confdefs.h <<\EOF
1079#define __SYSV__ 1
1080EOF
1081
1082 cat >> confdefs.h <<\EOF
1083#define __SVR4__ 1
1084EOF
1085
1086 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1087 ;;
1088 *-*-aix* )
1089 USE_AIX=1
1090 USE_SYSV=1
1091 USE_SVR4=1
1092 cat >> confdefs.h <<\EOF
1093#define __AIX__ 1
1094EOF
1095
1096 cat >> confdefs.h <<\EOF
1097#define __SYSV__ 1
1098EOF
1099
1100 cat >> confdefs.h <<\EOF
1101#define __SVR4__ 1
1102EOF
1103
1104 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1105 ;;
1106
7eef8db2 1107 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1108 USE_UNIX=0
1109 USE_WIN32=1
1110 cat >> confdefs.h <<\EOF
1111#define __WIN32__ 1
1112EOF
1113
1114 cat >> confdefs.h <<\EOF
1115#define __WIN95__ 1
1116EOF
1117
1118 cat >> confdefs.h <<\EOF
1119#define __WINDOWS__ 1
1120EOF
1121
1122 cat >> confdefs.h <<\EOF
1123#define __GNUWIN32__ 1
1124EOF
1125
1126 cat >> confdefs.h <<\EOF
1127#define STRICT 1
1128EOF
1129
1130 cat >> confdefs.h <<\EOF
1131#define WINVER 0x0400
1132EOF
1133
cf27ef00 1134 PROGRAM_EXT=".exe"
10f2d63a
VZ
1135 DEFAULT_DEFAULT_wxUSE_MSW=1
1136 ;;
1137
1138 *-pc-os2_emx )
1139 cat >> confdefs.h <<\EOF
1140#define __EMX__ 1
1141EOF
1142
cf27ef00 1143 PROGRAM_EXT=".exe"
e07802fc 1144 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1145 ;;
1146
b12915c1
VZ
1147 *-*-beos* )
1148 USE_BEOS=1
1149 cat >> confdefs.h <<\EOF
1150#define __BEOS__ 1
1151EOF
1152
1153 ;;
1154
10f2d63a
VZ
1155 *)
1156 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1157esac
1158
1159if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1160 wxUSE_UNIX=yes
1161 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1162#define __UNIX__ 1
1163EOF
1164
b12915c1
VZ
1165
1166 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1167 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1168fi
1169
1170if test "$USE_BEOS" = 1; then
1171 SRC_SUBDIRS="$SRC_SUBDIRS be"
1172 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1173fi
1174
1175if test "$USE_LINUX" = 1; then
1176 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
24528b0c 1177echo "configure:1178: checking for gettext in -lc" >&5
10f2d63a
VZ
1178ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1179if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1181else
1182 ac_save_LIBS="$LIBS"
1183LIBS="-lc $LIBS"
1184cat > conftest.$ac_ext <<EOF
24528b0c 1185#line 1186 "configure"
10f2d63a
VZ
1186#include "confdefs.h"
1187/* Override any gcc2 internal prototype to avoid an error. */
1188/* We use char because int might match the return type of a gcc2
1189 builtin and then its argument prototype would still apply. */
1190char gettext();
1191
1192int main() {
1193gettext()
1194; return 0; }
1195EOF
24528b0c 1196if { (eval echo configure:1197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1197 rm -rf conftest*
1198 eval "ac_cv_lib_$ac_lib_var=yes"
1199else
1200 echo "configure: failed program was:" >&5
1201 cat conftest.$ac_ext >&5
1202 rm -rf conftest*
1203 eval "ac_cv_lib_$ac_lib_var=no"
1204fi
1205rm -f conftest*
1206LIBS="$ac_save_LIBS"
1207
1208fi
1209if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1210 echo "$ac_t""yes" 1>&6
1211 cat >> confdefs.h <<\EOF
1212#define wxHAVE_GLIBC2 1
1213EOF
1214
1215else
1216 echo "$ac_t""no" 1>&6
1217fi
1218
1219fi
1220
1221
1222
1223
1224 wx_arg_cache_file="configarg.cache"
1225 echo "loading argument cache $wx_arg_cache_file"
1226 rm -f ${wx_arg_cache_file}.tmp
1227 touch ${wx_arg_cache_file}.tmp
1228 touch ${wx_arg_cache_file}
1229
1230
1231DEBUG_CONFIGURE=0
1232if test $DEBUG_CONFIGURE = 1; then
1233 DEFAULT_wxUSE_THREADS=yes
1234
1235 DEFAULT_wxUSE_SHARED=yes
00cf1208 1236 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1237 DEFAULT_wxUSE_OPTIMISE=yes
1238 DEFAULT_wxUSE_PROFILE=no
1239 DEFAULT_wxUSE_NO_DEPS=no
1240 DEFAULT_wxUSE_NO_RTTI=no
1241 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1242 DEFAULT_wxUSE_PERMISSIVE=no
1243 DEFAULT_wxUSE_DEBUG_FLAG=yes
1244 DEFAULT_wxUSE_DEBUG_INFO=yes
1245 DEFAULT_wxUSE_DEBUG_GDB=yes
1246 DEFAULT_wxUSE_MEM_TRACING=no
1247 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1248 DEFAULT_wxUSE_DMALLOC=no
1249 DEFAULT_wxUSE_APPLE_IEEE=no
1250
1251 DEFAULT_wxUSE_LOG=yes
1252
1253 DEFAULT_wxUSE_GUI=yes
1254
1255 DEFAULT_wxUSE_ZLIB=no
1256 DEFAULT_wxUSE_LIBPNG=no
1257 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1258 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a
VZ
1259 DEFAULT_wxUSE_ODBC=no
1260
1261 DEFAULT_wxUSE_STD_IOSTREAM=no
1262 DEFAULT_wxUSE_FILE=no
1263 DEFAULT_wxUSE_TEXTFILE=no
1264 DEFAULT_wxUSE_TIMEDATE=no
1265 DEFAULT_wxUSE_WAVE=no
1266 DEFAULT_wxUSE_INTL=no
1267 DEFAULT_wxUSE_CONFIG=no
1268 DEFAULT_wxUSE_STREAMS=no
1269 DEFAULT_wxUSE_SOCKETS=no
1270 DEFAULT_wxUSE_DIALUP_MANAGER=no
1271 DEFAULT_wxUSE_SERIAL=no
1272 DEFAULT_wxUSE_JOYSTICK=no
1273 DEFAULT_wxUSE_DYNLIB_CLASS=no
1274 DEFAULT_wxUSE_LONGLONG=no
1275
1276 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1277 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1278 DEFAULT_wxUSE_POSTSCRIPT=no
1279
1280 DEFAULT_wxUSE_X_RESOURCES=no
1281 DEFAULT_wxUSE_CLIPBOARD=no
1282 DEFAULT_wxUSE_TOOLTIPS=no
1283 DEFAULT_wxUSE_DRAG_AND_DROP=no
1284 DEFAULT_wxUSE_SPLINES=no
1285
1286 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1287 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1288 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1289
1290 DEFAULT_wxUSE_PROLOGIO=no
1291 DEFAULT_wxUSE_RESOURCES=no
1292 DEFAULT_wxUSE_CONSTRAINTS=no
1293 DEFAULT_wxUSE_IPC=no
1294 DEFAULT_wxUSE_HELP=no
1295 DEFAULT_wxUSE_WXTREE=no
1296 DEFAULT_wxUSE_METAFILE=no
1297
1298 DEFAULT_wxUSE_COMMONDLGS=no
1299 DEFAULT_wxUSE_DIRDLG=no
1300 DEFAULT_wxUSE_TEXTDLG=no
1301 DEFAULT_wxUSE_STARTUP_TIPS=no
1302 DEFAULT_wxUSE_PROGRESSDLG=no
1303 DEFAULT_wxUSE_MINIFRAME=no
1304 DEFAULT_wxUSE_HTML=no
24528b0c 1305 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1306 DEFAULT_wxUSE_FS_INET=no
1307 DEFAULT_wxUSE_FS_ZIP=no
1308 DEFAULT_wxUSE_BUSYINFO=no
1309 DEFAULT_wxUSE_ZIPSTREAM=no
1310 DEFAULT_wxUSE_VALIDATORS=yes
1311
1312 DEFAULT_wxUSE_ACCEL=no
1313 DEFAULT_wxUSE_CARET=no
1314 DEFAULT_wxUSE_BMPBUTTON=no
1315 DEFAULT_wxUSE_CHECKBOX=no
1316 DEFAULT_wxUSE_CHECKLST=no
1317 DEFAULT_wxUSE_CHOICE=yes
1318 DEFAULT_wxUSE_COMBOBOX=no
1319 DEFAULT_wxUSE_GAUGE=no
1320 DEFAULT_wxUSE_GRID=no
1321 DEFAULT_wxUSE_NEW_GRID=no
1322 DEFAULT_wxUSE_IMAGLIST=no
1323 DEFAULT_wxUSE_LISTBOX=no
1324 DEFAULT_wxUSE_LISTCTRL=no
1325 DEFAULT_wxUSE_NOTEBOOK=no
9b33fe02 1326 DEFAULT_wxUSE_PLOT=no
10f2d63a
VZ
1327 DEFAULT_wxUSE_RADIOBOX=no
1328 DEFAULT_wxUSE_RADIOBTN=no
1329 DEFAULT_wxUSE_SASH=no
1330 DEFAULT_wxUSE_SCROLLBAR=no
1331 DEFAULT_wxUSE_SLIDER=no
1332 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1333 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1334 DEFAULT_wxUSE_SPLITTER=no
1335 DEFAULT_wxUSE_STATBMP=no
1336 DEFAULT_wxUSE_STATBOX=no
1337 DEFAULT_wxUSE_STATLINE=no
1338 DEFAULT_wxUSE_STATUSBAR=yes
1339 DEFAULT_wxUSE_TABDIALOG=no
1340 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1341 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1342 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1343 DEFAULT_wxUSE_TREECTRL=no
1344
1345 DEFAULT_wxUSE_UNICODE=no
1346 DEFAULT_wxUSE_WCSRTOMBS=no
1347
1348 DEFAULT_wxUSE_GIF=no
1349 DEFAULT_wxUSE_PCX=no
1350 DEFAULT_wxUSE_PNM=no
1351else
1352 DEFAULT_wxUSE_THREADS=yes
1353
1354 DEFAULT_wxUSE_SHARED=yes
00cf1208 1355 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1356 DEFAULT_wxUSE_OPTIMISE=yes
1357 DEFAULT_wxUSE_PROFILE=no
1358 DEFAULT_wxUSE_NO_DEPS=no
1359 DEFAULT_wxUSE_NO_RTTI=no
1360 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1361 DEFAULT_wxUSE_PERMISSIVE=no
1362 DEFAULT_wxUSE_DEBUG_FLAG=no
1363 DEFAULT_wxUSE_DEBUG_INFO=no
1364 DEFAULT_wxUSE_DEBUG_GDB=no
1365 DEFAULT_wxUSE_MEM_TRACING=no
1366 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1367 DEFAULT_wxUSE_DMALLOC=no
1368 DEFAULT_wxUSE_APPLE_IEEE=yes
1369
1370 DEFAULT_wxUSE_LOG=yes
1371
1372 DEFAULT_wxUSE_GUI=yes
1373
1374 DEFAULT_wxUSE_ZLIB=yes
1375 DEFAULT_wxUSE_LIBPNG=yes
1376 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1377 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1378 DEFAULT_wxUSE_ODBC=no
10f2d63a
VZ
1379
1380 DEFAULT_wxUSE_STD_IOSTREAM=no
1381 DEFAULT_wxUSE_FILE=yes
1382 DEFAULT_wxUSE_TEXTFILE=yes
1383 DEFAULT_wxUSE_TIMEDATE=yes
1384 DEFAULT_wxUSE_WAVE=no
1385 DEFAULT_wxUSE_INTL=yes
1386 DEFAULT_wxUSE_CONFIG=yes
1387 DEFAULT_wxUSE_STREAMS=yes
1388 DEFAULT_wxUSE_SOCKETS=yes
1389 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1390 DEFAULT_wxUSE_SERIAL=yes
1391 DEFAULT_wxUSE_JOYSTICK=yes
1392 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1393 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1394
1395 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1396 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1397 DEFAULT_wxUSE_POSTSCRIPT=yes
1398
1399 DEFAULT_wxUSE_X_RESOURCES=no
1400 DEFAULT_wxUSE_CLIPBOARD=yes
1401 DEFAULT_wxUSE_TOOLTIPS=yes
1402 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1403 DEFAULT_wxUSE_SPLINES=yes
1404
1405 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1406 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1407 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1408
1409 DEFAULT_wxUSE_PROLOGIO=yes
1410 DEFAULT_wxUSE_RESOURCES=yes
1411 DEFAULT_wxUSE_CONSTRAINTS=yes
1412 DEFAULT_wxUSE_IPC=yes
1413 DEFAULT_wxUSE_HELP=yes
1414 DEFAULT_wxUSE_WXTREE=yes
1415 DEFAULT_wxUSE_METAFILE=yes
1416
1417 DEFAULT_wxUSE_COMMONDLGS=yes
1418 DEFAULT_wxUSE_DIRDLG=yes
1419 DEFAULT_wxUSE_TEXTDLG=yes
1420 DEFAULT_wxUSE_STARTUP_TIPS=yes
1421 DEFAULT_wxUSE_PROGRESSDLG=yes
1422 DEFAULT_wxUSE_MINIFRAME=yes
1423 DEFAULT_wxUSE_HTML=yes
24528b0c 1424 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1425 DEFAULT_wxUSE_FS_INET=yes
1426 DEFAULT_wxUSE_FS_ZIP=yes
1427 DEFAULT_wxUSE_BUSYINFO=yes
1428 DEFAULT_wxUSE_ZIPSTREAM=yes
1429 DEFAULT_wxUSE_VALIDATORS=yes
1430
1431 DEFAULT_wxUSE_ACCEL=yes
1432 DEFAULT_wxUSE_CARET=yes
1433 DEFAULT_wxUSE_BMPBUTTON=yes
1434 DEFAULT_wxUSE_CHECKBOX=yes
1435 DEFAULT_wxUSE_CHECKLST=yes
1436 DEFAULT_wxUSE_CHOICE=yes
1437 DEFAULT_wxUSE_COMBOBOX=yes
1438 DEFAULT_wxUSE_GAUGE=yes
1439 DEFAULT_wxUSE_GRID=yes
cc977e5f 1440 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1441 DEFAULT_wxUSE_IMAGLIST=yes
1442 DEFAULT_wxUSE_LISTBOX=yes
1443 DEFAULT_wxUSE_LISTCTRL=yes
1444 DEFAULT_wxUSE_NOTEBOOK=yes
9b33fe02 1445 DEFAULT_wxUSE_PLOT=yes
10f2d63a
VZ
1446 DEFAULT_wxUSE_RADIOBOX=yes
1447 DEFAULT_wxUSE_RADIOBTN=yes
1448 DEFAULT_wxUSE_SASH=yes
1449 DEFAULT_wxUSE_SCROLLBAR=yes
1450 DEFAULT_wxUSE_SLIDER=yes
1451 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1452 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1453 DEFAULT_wxUSE_SPLITTER=yes
1454 DEFAULT_wxUSE_STATBMP=yes
1455 DEFAULT_wxUSE_STATBOX=yes
1456 DEFAULT_wxUSE_STATLINE=yes
1457 DEFAULT_wxUSE_STATUSBAR=yes
1458 DEFAULT_wxUSE_TABDIALOG=no
1459 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1460 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1461 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1462 DEFAULT_wxUSE_TREECTRL=yes
1463
1464 DEFAULT_wxUSE_UNICODE=no
1465 DEFAULT_wxUSE_WCSRTOMBS=no
1466
1467 DEFAULT_wxUSE_GIF=yes
1468 DEFAULT_wxUSE_PCX=yes
1469 DEFAULT_wxUSE_PNM=yes
1470fi
1471
1472
1473
1474for toolkit in `echo $ALL_TOOLKITS`; do
1475 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1476 if test "x$LINE" != x ; then
1477 has_toolkit_in_cache=1
1478 eval "DEFAULT_$LINE"
1479 eval "CACHE_$toolkit=1"
1480 fi
1481done
1482
1483
1484
1485 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
24528b0c 1486echo "configure:1487: checking "for --enable-gui"" >&5
10f2d63a
VZ
1487 no_cache=0
1488 # Check whether --enable-gui or --disable-gui was given.
1489if test "${enable_gui+set}" = set; then
1490 enableval="$enable_gui"
1491
1492 if test "$enableval" = yes; then
1493 ac_cv_use_gui='wxUSE_GUI=yes'
1494 else
1495 ac_cv_use_gui='wxUSE_GUI=no'
1496 fi
1497
1498else
1499
1500 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1501 if test "x$LINE" != x ; then
1502 eval "DEFAULT_$LINE"
1503 else
1504 no_cache=1
1505 fi
1506
1507 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1508
1509fi
1510
1511
1512 eval "$ac_cv_use_gui"
1513 if test "$no_cache" != 1; then
1514 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1515 fi
1516
1517 if test "$wxUSE_GUI" = yes; then
1518 echo "$ac_t""yes" 1>&6
1519 else
1520 echo "$ac_t""no" 1>&6
1521 fi
1522
1523
b12915c1 1524if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1525
1526# Check whether --with-gtk or --without-gtk was given.
1527if test "${with_gtk+set}" = set; then
1528 withval="$with_gtk"
1529 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1530fi
1531
1532# Check whether --with-motif or --without-motif was given.
1533if test "${with_motif+set}" = set; then
1534 withval="$with_motif"
1535 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1536fi
1537
1538# Check whether --with-wine or --without-wine was given.
1539if test "${with_wine+set}" = set; then
1540 withval="$with_wine"
1541 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1542fi
1543
1544# Check whether --with-cygwin or --without-cygwin was given.
1545if test "${with_cygwin+set}" = set; then
1546 withval="$with_cygwin"
1547 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1548fi
1549
1550# Check whether --with-mingw or --without-mingw was given.
1551if test "${with_mingw+set}" = set; then
1552 withval="$with_mingw"
1553 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1554fi
1555
e07802fc
VZ
1556# Check whether --with-pm or --without-pm was given.
1557if test "${with_pm+set}" = set; then
1558 withval="$with_pm"
1559 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1560fi
1561
10f2d63a
VZ
1562
1563# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1564if test "${with_gtk_prefix+set}" = set; then
1565 withval="$with_gtk_prefix"
1566 gtk_config_prefix="$withval"
1567else
1568 gtk_config_prefix=""
1569fi
1570
1571# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1572if test "${with_gtk_exec_prefix+set}" = set; then
1573 withval="$with_gtk_exec_prefix"
1574 gtk_config_exec_prefix="$withval"
1575else
1576 gtk_config_exec_prefix=""
1577fi
1578
1579
1580
b12915c1 1581 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
24528b0c 1582echo "configure:1583: checking "for --with-libpng"" >&5
10f2d63a 1583 no_cache=0
b12915c1
VZ
1584 # Check whether --with-libpng or --without-libpng was given.
1585if test "${with_libpng+set}" = set; then
1586 withval="$with_libpng"
10f2d63a
VZ
1587
1588 if test "$withval" = yes; then
b12915c1 1589 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
10f2d63a 1590 else
b12915c1 1591 ac_cv_use_libpng='wxUSE_LIBPNG=no'
10f2d63a
VZ
1592 fi
1593
1594else
1595
b12915c1 1596 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1597 if test "x$LINE" != x ; then
1598 eval "DEFAULT_$LINE"
1599 else
1600 no_cache=1
1601 fi
1602
b12915c1 1603 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1604
1605fi
1606
1607
b12915c1 1608 eval "$ac_cv_use_libpng"
10f2d63a 1609 if test "$no_cache" != 1; then
b12915c1 1610 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1611 fi
1612
b12915c1 1613 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a
VZ
1614 echo "$ac_t""yes" 1>&6
1615 else
1616 echo "$ac_t""no" 1>&6
1617 fi
1618
1619
b12915c1 1620 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
24528b0c 1621echo "configure:1622: checking "for --with-libjpeg"" >&5
10f2d63a 1622 no_cache=0
b12915c1
VZ
1623 # Check whether --with-libjpeg or --without-libjpeg was given.
1624if test "${with_libjpeg+set}" = set; then
1625 withval="$with_libjpeg"
10f2d63a
VZ
1626
1627 if test "$withval" = yes; then
b12915c1 1628 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
10f2d63a 1629 else
b12915c1 1630 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
10f2d63a
VZ
1631 fi
1632
1633else
1634
b12915c1 1635 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1636 if test "x$LINE" != x ; then
1637 eval "DEFAULT_$LINE"
1638 else
1639 no_cache=1
1640 fi
1641
b12915c1 1642 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1643
1644fi
1645
1646
b12915c1 1647 eval "$ac_cv_use_libjpeg"
10f2d63a 1648 if test "$no_cache" != 1; then
b12915c1 1649 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1650 fi
1651
b12915c1 1652 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a
VZ
1653 echo "$ac_t""yes" 1>&6
1654 else
1655 echo "$ac_t""no" 1>&6
1656 fi
1657
1658
b12915c1 1659 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
24528b0c 1660echo "configure:1661: checking "for --with-libtiff"" >&5
10f2d63a 1661 no_cache=0
b12915c1
VZ
1662 # Check whether --with-libtiff or --without-libtiff was given.
1663if test "${with_libtiff+set}" = set; then
1664 withval="$with_libtiff"
10f2d63a
VZ
1665
1666 if test "$withval" = yes; then
b12915c1 1667 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
10f2d63a 1668 else
b12915c1 1669 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
10f2d63a
VZ
1670 fi
1671
1672else
1673
b12915c1 1674 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1675 if test "x$LINE" != x ; then
1676 eval "DEFAULT_$LINE"
1677 else
1678 no_cache=1
1679 fi
1680
b12915c1 1681 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1682
1683fi
1684
1685
b12915c1 1686 eval "$ac_cv_use_libtiff"
10f2d63a 1687 if test "$no_cache" != 1; then
b12915c1 1688 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1689 fi
1690
b12915c1 1691 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a
VZ
1692 echo "$ac_t""yes" 1>&6
1693 else
1694 echo "$ac_t""no" 1>&6
1695 fi
1696
1697
b12915c1 1698 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
24528b0c 1699echo "configure:1700: checking "for --with-opengl"" >&5
10f2d63a 1700 no_cache=0
b12915c1
VZ
1701 # Check whether --with-opengl or --without-opengl was given.
1702if test "${with_opengl+set}" = set; then
1703 withval="$with_opengl"
10f2d63a
VZ
1704
1705 if test "$withval" = yes; then
b12915c1 1706 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1707 else
b12915c1 1708 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1709 fi
1710
1711else
1712
b12915c1 1713 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1714 if test "x$LINE" != x ; then
1715 eval "DEFAULT_$LINE"
1716 else
1717 no_cache=1
1718 fi
1719
b12915c1 1720 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1721
1722fi
1723
1724
b12915c1 1725 eval "$ac_cv_use_opengl"
10f2d63a 1726 if test "$no_cache" != 1; then
b12915c1 1727 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1728 fi
1729
b12915c1 1730 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1731 echo "$ac_t""yes" 1>&6
1732 else
1733 echo "$ac_t""no" 1>&6
1734 fi
1735
1736
b12915c1
VZ
1737fi
1738
1739
1740 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
24528b0c 1741echo "configure:1742: checking "for --with-dmalloc"" >&5
c7a2bf27 1742 no_cache=0
b12915c1
VZ
1743 # Check whether --with-dmalloc or --without-dmalloc was given.
1744if test "${with_dmalloc+set}" = set; then
1745 withval="$with_dmalloc"
c7a2bf27
RR
1746
1747 if test "$withval" = yes; then
b12915c1 1748 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1749 else
b12915c1 1750 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1751 fi
1752
1753else
1754
b12915c1 1755 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1756 if test "x$LINE" != x ; then
1757 eval "DEFAULT_$LINE"
1758 else
1759 no_cache=1
1760 fi
1761
b12915c1 1762 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1763
1764fi
1765
1766
b12915c1 1767 eval "$ac_cv_use_dmalloc"
c7a2bf27 1768 if test "$no_cache" != 1; then
b12915c1 1769 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1770 fi
1771
b12915c1 1772 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1773 echo "$ac_t""yes" 1>&6
1774 else
1775 echo "$ac_t""no" 1>&6
1776 fi
1777
1778
b12915c1 1779 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
24528b0c 1780echo "configure:1781: checking "for --with-zlib"" >&5
10f2d63a 1781 no_cache=0
b12915c1
VZ
1782 # Check whether --with-zlib or --without-zlib was given.
1783if test "${with_zlib+set}" = set; then
1784 withval="$with_zlib"
10f2d63a
VZ
1785
1786 if test "$withval" = yes; then
b12915c1 1787 ac_cv_use_zlib='wxUSE_ZLIB=yes'
10f2d63a 1788 else
b12915c1 1789 ac_cv_use_zlib='wxUSE_ZLIB=no'
10f2d63a
VZ
1790 fi
1791
1792else
1793
b12915c1 1794 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1795 if test "x$LINE" != x ; then
1796 eval "DEFAULT_$LINE"
1797 else
1798 no_cache=1
1799 fi
1800
b12915c1 1801 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1802
1803fi
1804
1805
b12915c1 1806 eval "$ac_cv_use_zlib"
10f2d63a 1807 if test "$no_cache" != 1; then
b12915c1 1808 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1809 fi
1810
b12915c1 1811 if test "$wxUSE_ZLIB" = yes; then
10f2d63a
VZ
1812 echo "$ac_t""yes" 1>&6
1813 else
1814 echo "$ac_t""no" 1>&6
1815 fi
1816
1817
1818 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
24528b0c 1819echo "configure:1820: checking "for --with-odbc"" >&5
10f2d63a
VZ
1820 no_cache=0
1821 # Check whether --with-odbc or --without-odbc was given.
1822if test "${with_odbc+set}" = set; then
1823 withval="$with_odbc"
1824
1825 if test "$withval" = yes; then
1826 ac_cv_use_odbc='wxUSE_ODBC=yes'
1827 else
1828 ac_cv_use_odbc='wxUSE_ODBC=no'
1829 fi
1830
1831else
1832
1833 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1834 if test "x$LINE" != x ; then
1835 eval "DEFAULT_$LINE"
1836 else
1837 no_cache=1
1838 fi
1839
1840 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1841
1842fi
1843
1844
1845 eval "$ac_cv_use_odbc"
1846 if test "$no_cache" != 1; then
1847 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1848 fi
1849
1850 if test "$wxUSE_ODBC" = yes; then
1851 echo "$ac_t""yes" 1>&6
1852 else
1853 echo "$ac_t""no" 1>&6
1854 fi
1855
1856
1857
1858
1859
1860 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
24528b0c 1861echo "configure:1862: checking "for --enable-shared"" >&5
10f2d63a
VZ
1862 no_cache=0
1863 # Check whether --enable-shared or --disable-shared was given.
1864if test "${enable_shared+set}" = set; then
1865 enableval="$enable_shared"
1866
1867 if test "$enableval" = yes; then
1868 ac_cv_use_shared='wxUSE_SHARED=yes'
1869 else
1870 ac_cv_use_shared='wxUSE_SHARED=no'
1871 fi
1872
1873else
1874
1875 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1876 if test "x$LINE" != x ; then
1877 eval "DEFAULT_$LINE"
1878 else
1879 no_cache=1
1880 fi
1881
1882 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1883
1884fi
1885
1886
1887 eval "$ac_cv_use_shared"
1888 if test "$no_cache" != 1; then
1889 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1890 fi
1891
1892 if test "$wxUSE_SHARED" = yes; then
1893 echo "$ac_t""yes" 1>&6
1894 else
1895 echo "$ac_t""no" 1>&6
1896 fi
1897
1898
00cf1208 1899 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
24528b0c 1900echo "configure:1901: checking "for --enable-burnt_name"" >&5
00cf1208
RR
1901 no_cache=0
1902 # Check whether --enable-burnt_name or --disable-burnt_name was given.
1903if test "${enable_burnt_name+set}" = set; then
1904 enableval="$enable_burnt_name"
1905
1906 if test "$enableval" = yes; then
1907 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
1908 else
1909 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
1910 fi
1911
1912else
1913
1914 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
1915 if test "x$LINE" != x ; then
1916 eval "DEFAULT_$LINE"
1917 else
1918 no_cache=1
1919 fi
1920
1921 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
1922
1923fi
1924
1925
1926 eval "$ac_cv_use_burnt_name"
1927 if test "$no_cache" != 1; then
1928 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
1929 fi
1930
1931 if test "$wxUSE_BURNT_NAME" = yes; then
1932 echo "$ac_t""yes" 1>&6
1933 else
1934 echo "$ac_t""no" 1>&6
1935 fi
1936
1937
10f2d63a 1938 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
24528b0c 1939echo "configure:1940: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1940 no_cache=0
1941 # Check whether --enable-optimise or --disable-optimise was given.
1942if test "${enable_optimise+set}" = set; then
1943 enableval="$enable_optimise"
1944
1945 if test "$enableval" = yes; then
1946 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1947 else
1948 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1949 fi
1950
1951else
1952
1953 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1954 if test "x$LINE" != x ; then
1955 eval "DEFAULT_$LINE"
1956 else
1957 no_cache=1
1958 fi
1959
1960 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1961
1962fi
1963
1964
1965 eval "$ac_cv_use_optimise"
1966 if test "$no_cache" != 1; then
1967 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1968 fi
1969
1970 if test "$wxUSE_OPTIMISE" = yes; then
1971 echo "$ac_t""yes" 1>&6
1972 else
1973 echo "$ac_t""no" 1>&6
1974 fi
1975
1976
1977 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
24528b0c 1978echo "configure:1979: checking "for --enable-debug"" >&5
10f2d63a
VZ
1979 no_cache=0
1980 # Check whether --enable-debug or --disable-debug was given.
1981if test "${enable_debug+set}" = set; then
1982 enableval="$enable_debug"
1983
1984 if test "$enableval" = yes; then
1985 ac_cv_use_debug='wxUSE_DEBUG=yes'
1986 else
1987 ac_cv_use_debug='wxUSE_DEBUG=no'
1988 fi
1989
1990else
1991
1992 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1993 if test "x$LINE" != x ; then
1994 eval "DEFAULT_$LINE"
1995 else
1996 no_cache=1
1997 fi
1998
1999 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2000
2001fi
2002
2003
2004 eval "$ac_cv_use_debug"
2005 if test "$no_cache" != 1; then
2006 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2007 fi
2008
2009 if test "$wxUSE_DEBUG" = yes; then
2010 echo "$ac_t""yes" 1>&6
2011 else
2012 echo "$ac_t""no" 1>&6
2013 fi
2014
2015
2016if test "$wxUSE_DEBUG" = "yes"; then
2017 DEFAULT_wxUSE_DEBUG_FLAG=yes
2018 DEFAULT_wxUSE_DEBUG_INFO=yes
2019elif test "$wxUSE_DEBUG" = "no"; then
2020 DEFAULT_wxUSE_DEBUG_FLAG=no
2021 DEFAULT_wxUSE_DEBUG_INFO=no
2022fi
2023
2024
2025 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
24528b0c 2026echo "configure:2027: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2027 no_cache=0
2028 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2029if test "${enable_debug_flag+set}" = set; then
2030 enableval="$enable_debug_flag"
2031
2032 if test "$enableval" = yes; then
2033 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2034 else
2035 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2036 fi
2037
2038else
2039
2040 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2041 if test "x$LINE" != x ; then
2042 eval "DEFAULT_$LINE"
2043 else
2044 no_cache=1
2045 fi
2046
2047 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2048
2049fi
2050
2051
2052 eval "$ac_cv_use_debug_flag"
2053 if test "$no_cache" != 1; then
2054 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2055 fi
2056
2057 if test "$wxUSE_DEBUG_FLAG" = yes; then
2058 echo "$ac_t""yes" 1>&6
2059 else
2060 echo "$ac_t""no" 1>&6
2061 fi
2062
2063
2064 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
24528b0c 2065echo "configure:2066: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2066 no_cache=0
2067 # Check whether --enable-debug_info or --disable-debug_info was given.
2068if test "${enable_debug_info+set}" = set; then
2069 enableval="$enable_debug_info"
2070
2071 if test "$enableval" = yes; then
2072 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2073 else
2074 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2075 fi
2076
2077else
2078
2079 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2080 if test "x$LINE" != x ; then
2081 eval "DEFAULT_$LINE"
2082 else
2083 no_cache=1
2084 fi
2085
2086 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2087
2088fi
2089
2090
2091 eval "$ac_cv_use_debug_info"
2092 if test "$no_cache" != 1; then
2093 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2094 fi
2095
2096 if test "$wxUSE_DEBUG_INFO" = yes; then
2097 echo "$ac_t""yes" 1>&6
2098 else
2099 echo "$ac_t""no" 1>&6
2100 fi
2101
2102
2103 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
24528b0c 2104echo "configure:2105: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2105 no_cache=0
2106 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2107if test "${enable_debug_gdb+set}" = set; then
2108 enableval="$enable_debug_gdb"
2109
2110 if test "$enableval" = yes; then
2111 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2112 else
2113 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2114 fi
2115
2116else
2117
2118 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2119 if test "x$LINE" != x ; then
2120 eval "DEFAULT_$LINE"
2121 else
2122 no_cache=1
2123 fi
2124
2125 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2126
2127fi
2128
2129
2130 eval "$ac_cv_use_debug_gdb"
2131 if test "$no_cache" != 1; then
2132 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2133 fi
2134
2135 if test "$wxUSE_DEBUG_GDB" = yes; then
2136 echo "$ac_t""yes" 1>&6
2137 else
2138 echo "$ac_t""no" 1>&6
2139 fi
2140
2141
2142 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
24528b0c 2143echo "configure:2144: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2144 no_cache=0
2145 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2146if test "${enable_debug_cntxt+set}" = set; then
2147 enableval="$enable_debug_cntxt"
2148
2149 if test "$enableval" = yes; then
2150 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2151 else
2152 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2153 fi
2154
2155else
2156
2157 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2158 if test "x$LINE" != x ; then
2159 eval "DEFAULT_$LINE"
2160 else
2161 no_cache=1
2162 fi
2163
2164 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2165
2166fi
2167
2168
2169 eval "$ac_cv_use_debug_cntxt"
2170 if test "$no_cache" != 1; then
2171 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2172 fi
2173
2174 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2175 echo "$ac_t""yes" 1>&6
2176 else
2177 echo "$ac_t""no" 1>&6
2178 fi
2179
2180
2181 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
24528b0c 2182echo "configure:2183: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2183 no_cache=0
2184 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2185if test "${enable_mem_tracing+set}" = set; then
2186 enableval="$enable_mem_tracing"
2187
2188 if test "$enableval" = yes; then
2189 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2190 else
2191 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2192 fi
2193
2194else
2195
2196 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2197 if test "x$LINE" != x ; then
2198 eval "DEFAULT_$LINE"
2199 else
2200 no_cache=1
2201 fi
2202
2203 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2204
2205fi
2206
2207
2208 eval "$ac_cv_use_mem_tracing"
2209 if test "$no_cache" != 1; then
2210 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2211 fi
2212
2213 if test "$wxUSE_MEM_TRACING" = yes; then
2214 echo "$ac_t""yes" 1>&6
2215 else
2216 echo "$ac_t""no" 1>&6
2217 fi
2218
2219
2220 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
24528b0c 2221echo "configure:2222: checking "for --enable-profile"" >&5
10f2d63a
VZ
2222 no_cache=0
2223 # Check whether --enable-profile or --disable-profile was given.
2224if test "${enable_profile+set}" = set; then
2225 enableval="$enable_profile"
2226
2227 if test "$enableval" = yes; then
2228 ac_cv_use_profile='wxUSE_PROFILE=yes'
2229 else
2230 ac_cv_use_profile='wxUSE_PROFILE=no'
2231 fi
2232
2233else
2234
2235 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2236 if test "x$LINE" != x ; then
2237 eval "DEFAULT_$LINE"
2238 else
2239 no_cache=1
2240 fi
2241
2242 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2243
2244fi
2245
2246
2247 eval "$ac_cv_use_profile"
2248 if test "$no_cache" != 1; then
2249 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2250 fi
2251
2252 if test "$wxUSE_PROFILE" = yes; then
2253 echo "$ac_t""yes" 1>&6
2254 else
2255 echo "$ac_t""no" 1>&6
2256 fi
2257
2258
2259 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
24528b0c 2260echo "configure:2261: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2261 no_cache=0
2262 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2263if test "${enable_no_rtti+set}" = set; then
2264 enableval="$enable_no_rtti"
2265
2266 if test "$enableval" = yes; then
2267 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2268 else
2269 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2270 fi
2271
2272else
2273
2274 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2275 if test "x$LINE" != x ; then
2276 eval "DEFAULT_$LINE"
2277 else
2278 no_cache=1
2279 fi
2280
2281 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2282
2283fi
2284
2285
2286 eval "$ac_cv_use_no_rtti"
2287 if test "$no_cache" != 1; then
2288 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2289 fi
2290
2291 if test "$wxUSE_NO_RTTI" = yes; then
2292 echo "$ac_t""yes" 1>&6
2293 else
2294 echo "$ac_t""no" 1>&6
2295 fi
2296
2297
2298 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
24528b0c 2299echo "configure:2300: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2300 no_cache=0
2301 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2302if test "${enable_no_exceptions+set}" = set; then
2303 enableval="$enable_no_exceptions"
2304
2305 if test "$enableval" = yes; then
2306 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2307 else
2308 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2309 fi
2310
2311else
2312
2313 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2314 if test "x$LINE" != x ; then
2315 eval "DEFAULT_$LINE"
2316 else
2317 no_cache=1
2318 fi
2319
2320 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2321
2322fi
2323
2324
2325 eval "$ac_cv_use_no_exceptions"
2326 if test "$no_cache" != 1; then
2327 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2328 fi
2329
2330 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2331 echo "$ac_t""yes" 1>&6
2332 else
2333 echo "$ac_t""no" 1>&6
2334 fi
2335
2336
2337 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
24528b0c 2338echo "configure:2339: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2339 no_cache=0
2340 # Check whether --enable-permissive or --disable-permissive was given.
2341if test "${enable_permissive+set}" = set; then
2342 enableval="$enable_permissive"
2343
2344 if test "$enableval" = yes; then
2345 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2346 else
2347 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2348 fi
2349
2350else
2351
2352 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2353 if test "x$LINE" != x ; then
2354 eval "DEFAULT_$LINE"
2355 else
2356 no_cache=1
2357 fi
2358
2359 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2360
2361fi
2362
2363
2364 eval "$ac_cv_use_permissive"
2365 if test "$no_cache" != 1; then
2366 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2367 fi
2368
2369 if test "$wxUSE_PERMISSIVE" = yes; then
2370 echo "$ac_t""yes" 1>&6
2371 else
2372 echo "$ac_t""no" 1>&6
2373 fi
2374
2375
2376 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
24528b0c 2377echo "configure:2378: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2378 no_cache=0
2379 # Check whether --enable-no_deps or --disable-no_deps was given.
2380if test "${enable_no_deps+set}" = set; then
2381 enableval="$enable_no_deps"
2382
2383 if test "$enableval" = yes; then
2384 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2385 else
2386 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2387 fi
2388
2389else
2390
2391 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2392 if test "x$LINE" != x ; then
2393 eval "DEFAULT_$LINE"
2394 else
2395 no_cache=1
2396 fi
2397
2398 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2399
2400fi
2401
2402
2403 eval "$ac_cv_use_no_deps"
2404 if test "$no_cache" != 1; then
2405 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2406 fi
2407
2408 if test "$wxUSE_NO_DEPS" = yes; then
2409 echo "$ac_t""yes" 1>&6
2410 else
2411 echo "$ac_t""no" 1>&6
2412 fi
2413
2414
2415
2416
2417 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
24528b0c 2418echo "configure:2419: checking "for --enable-intl"" >&5
10f2d63a
VZ
2419 no_cache=0
2420 # Check whether --enable-intl or --disable-intl was given.
2421if test "${enable_intl+set}" = set; then
2422 enableval="$enable_intl"
2423
2424 if test "$enableval" = yes; then
2425 ac_cv_use_intl='wxUSE_INTL=yes'
2426 else
2427 ac_cv_use_intl='wxUSE_INTL=no'
2428 fi
2429
2430else
2431
2432 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2433 if test "x$LINE" != x ; then
2434 eval "DEFAULT_$LINE"
2435 else
2436 no_cache=1
2437 fi
2438
2439 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2440
2441fi
2442
2443
2444 eval "$ac_cv_use_intl"
2445 if test "$no_cache" != 1; then
2446 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2447 fi
2448
2449 if test "$wxUSE_INTL" = yes; then
2450 echo "$ac_t""yes" 1>&6
2451 else
2452 echo "$ac_t""no" 1>&6
2453 fi
2454
2455
2456 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
24528b0c 2457echo "configure:2458: checking "for --enable-config"" >&5
10f2d63a
VZ
2458 no_cache=0
2459 # Check whether --enable-config or --disable-config was given.
2460if test "${enable_config+set}" = set; then
2461 enableval="$enable_config"
2462
2463 if test "$enableval" = yes; then
2464 ac_cv_use_config='wxUSE_CONFIG=yes'
2465 else
2466 ac_cv_use_config='wxUSE_CONFIG=no'
2467 fi
2468
2469else
2470
2471 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2472 if test "x$LINE" != x ; then
2473 eval "DEFAULT_$LINE"
2474 else
2475 no_cache=1
2476 fi
2477
2478 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2479
2480fi
2481
2482
2483 eval "$ac_cv_use_config"
2484 if test "$no_cache" != 1; then
2485 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2486 fi
2487
2488 if test "$wxUSE_CONFIG" = yes; then
2489 echo "$ac_t""yes" 1>&6
2490 else
2491 echo "$ac_t""no" 1>&6
2492 fi
2493
2494
b12915c1
VZ
2495if test "$wxUSE_GUI" = "yes"; then
2496
10f2d63a 2497 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
24528b0c 2498echo "configure:2499: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2499 no_cache=0
2500 # Check whether --enable-sockets or --disable-sockets was given.
2501if test "${enable_sockets+set}" = set; then
2502 enableval="$enable_sockets"
2503
2504 if test "$enableval" = yes; then
2505 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2506 else
2507 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2508 fi
2509
2510else
2511
2512 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2513 if test "x$LINE" != x ; then
2514 eval "DEFAULT_$LINE"
2515 else
2516 no_cache=1
2517 fi
2518
2519 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2520
2521fi
2522
2523
2524 eval "$ac_cv_use_sockets"
2525 if test "$no_cache" != 1; then
2526 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2527 fi
2528
2529 if test "$wxUSE_SOCKETS" = yes; then
2530 echo "$ac_t""yes" 1>&6
2531 else
2532 echo "$ac_t""no" 1>&6
2533 fi
2534
b12915c1
VZ
2535else
2536wxUSE_SOCKETS=no
2537fi
2538
10f2d63a
VZ
2539
2540 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
24528b0c 2541echo "configure:2542: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2542 no_cache=0
2543 # Check whether --enable-dialupman or --disable-dialupman was given.
2544if test "${enable_dialupman+set}" = set; then
2545 enableval="$enable_dialupman"
2546
2547 if test "$enableval" = yes; then
2548 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2549 else
2550 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2551 fi
2552
2553else
2554
2555 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2556 if test "x$LINE" != x ; then
2557 eval "DEFAULT_$LINE"
2558 else
2559 no_cache=1
2560 fi
2561
2562 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2563
2564fi
2565
2566
2567 eval "$ac_cv_use_dialupman"
2568 if test "$no_cache" != 1; then
2569 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2570 fi
2571
2572 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2573 echo "$ac_t""yes" 1>&6
2574 else
2575 echo "$ac_t""no" 1>&6
2576 fi
2577
2578
2579 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
24528b0c 2580echo "configure:2581: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2581 no_cache=0
2582 # Check whether --enable-ipc or --disable-ipc was given.
2583if test "${enable_ipc+set}" = set; then
2584 enableval="$enable_ipc"
2585
2586 if test "$enableval" = yes; then
2587 ac_cv_use_ipc='wxUSE_IPC=yes'
2588 else
2589 ac_cv_use_ipc='wxUSE_IPC=no'
2590 fi
2591
2592else
2593
2594 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2595 if test "x$LINE" != x ; then
2596 eval "DEFAULT_$LINE"
2597 else
2598 no_cache=1
2599 fi
2600
2601 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2602
2603fi
2604
2605
2606 eval "$ac_cv_use_ipc"
2607 if test "$no_cache" != 1; then
2608 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2609 fi
2610
2611 if test "$wxUSE_IPC" = yes; then
2612 echo "$ac_t""yes" 1>&6
2613 else
2614 echo "$ac_t""no" 1>&6
2615 fi
2616
2617
2618 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
24528b0c 2619echo "configure:2620: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2620 no_cache=0
2621 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2622if test "${enable_apple_ieee+set}" = set; then
2623 enableval="$enable_apple_ieee"
2624
2625 if test "$enableval" = yes; then
2626 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2627 else
2628 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2629 fi
2630
2631else
2632
2633 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2634 if test "x$LINE" != x ; then
2635 eval "DEFAULT_$LINE"
2636 else
2637 no_cache=1
2638 fi
2639
2640 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2641
2642fi
2643
2644
2645 eval "$ac_cv_use_apple_ieee"
2646 if test "$no_cache" != 1; then
2647 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2648 fi
2649
2650 if test "$wxUSE_APPLE_IEEE" = yes; then
2651 echo "$ac_t""yes" 1>&6
2652 else
2653 echo "$ac_t""no" 1>&6
2654 fi
2655
2656
2657 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
24528b0c 2658echo "configure:2659: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2659 no_cache=0
2660 # Check whether --enable-timedate or --disable-timedate was given.
2661if test "${enable_timedate+set}" = set; then
2662 enableval="$enable_timedate"
2663
2664 if test "$enableval" = yes; then
2665 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2666 else
2667 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2668 fi
2669
2670else
2671
2672 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2673 if test "x$LINE" != x ; then
2674 eval "DEFAULT_$LINE"
2675 else
2676 no_cache=1
2677 fi
2678
2679 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2680
2681fi
2682
2683
2684 eval "$ac_cv_use_timedate"
2685 if test "$no_cache" != 1; then
2686 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2687 fi
2688
2689 if test "$wxUSE_TIMEDATE" = yes; then
2690 echo "$ac_t""yes" 1>&6
2691 else
2692 echo "$ac_t""no" 1>&6
2693 fi
2694
2695
2696 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
24528b0c 2697echo "configure:2698: checking "for --enable-wave"" >&5
10f2d63a
VZ
2698 no_cache=0
2699 # Check whether --enable-wave or --disable-wave was given.
2700if test "${enable_wave+set}" = set; then
2701 enableval="$enable_wave"
2702
2703 if test "$enableval" = yes; then
2704 ac_cv_use_wave='wxUSE_WAVE=yes'
2705 else
2706 ac_cv_use_wave='wxUSE_WAVE=no'
2707 fi
2708
2709else
2710
2711 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2712 if test "x$LINE" != x ; then
2713 eval "DEFAULT_$LINE"
2714 else
2715 no_cache=1
2716 fi
2717
2718 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2719
2720fi
2721
2722
2723 eval "$ac_cv_use_wave"
2724 if test "$no_cache" != 1; then
2725 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2726 fi
2727
2728 if test "$wxUSE_WAVE" = yes; then
2729 echo "$ac_t""yes" 1>&6
2730 else
2731 echo "$ac_t""no" 1>&6
2732 fi
2733
2734
2735 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
24528b0c 2736echo "configure:2737: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2737 no_cache=0
2738 # Check whether --enable-fraction or --disable-fraction was given.
2739if test "${enable_fraction+set}" = set; then
2740 enableval="$enable_fraction"
2741
2742 if test "$enableval" = yes; then
2743 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2744 else
2745 ac_cv_use_fraction='wxUSE_FRACTION=no'
2746 fi
2747
2748else
2749
2750 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2751 if test "x$LINE" != x ; then
2752 eval "DEFAULT_$LINE"
2753 else
2754 no_cache=1
2755 fi
2756
2757 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2758
2759fi
2760
2761
2762 eval "$ac_cv_use_fraction"
2763 if test "$no_cache" != 1; then
2764 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2765 fi
2766
2767 if test "$wxUSE_FRACTION" = yes; then
2768 echo "$ac_t""yes" 1>&6
2769 else
2770 echo "$ac_t""no" 1>&6
2771 fi
2772
2773
2774 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
24528b0c 2775echo "configure:2776: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2776 no_cache=0
2777 # Check whether --enable-dynlib or --disable-dynlib was given.
2778if test "${enable_dynlib+set}" = set; then
2779 enableval="$enable_dynlib"
2780
2781 if test "$enableval" = yes; then
2782 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2783 else
2784 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2785 fi
2786
2787else
2788
2789 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2790 if test "x$LINE" != x ; then
2791 eval "DEFAULT_$LINE"
2792 else
2793 no_cache=1
2794 fi
2795
2796 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2797
2798fi
2799
2800
2801 eval "$ac_cv_use_dynlib"
2802 if test "$no_cache" != 1; then
2803 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2804 fi
2805
2806 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2807 echo "$ac_t""yes" 1>&6
2808 else
2809 echo "$ac_t""no" 1>&6
2810 fi
2811
2812
2813 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
24528b0c 2814echo "configure:2815: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2815 no_cache=0
2816 # Check whether --enable-longlong or --disable-longlong was given.
2817if test "${enable_longlong+set}" = set; then
2818 enableval="$enable_longlong"
2819
2820 if test "$enableval" = yes; then
2821 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2822 else
2823 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2824 fi
2825
2826else
2827
2828 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2829 if test "x$LINE" != x ; then
2830 eval "DEFAULT_$LINE"
2831 else
2832 no_cache=1
2833 fi
2834
2835 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2836
2837fi
2838
2839
2840 eval "$ac_cv_use_longlong"
2841 if test "$no_cache" != 1; then
2842 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2843 fi
2844
2845 if test "$wxUSE_LONGLONG" = yes; then
2846 echo "$ac_t""yes" 1>&6
2847 else
2848 echo "$ac_t""no" 1>&6
2849 fi
2850
2851
2852 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
24528b0c 2853echo "configure:2854: checking "for --enable-log"" >&5
10f2d63a
VZ
2854 no_cache=0
2855 # Check whether --enable-log or --disable-log was given.
2856if test "${enable_log+set}" = set; then
2857 enableval="$enable_log"
2858
2859 if test "$enableval" = yes; then
2860 ac_cv_use_log='wxUSE_LOG=yes'
2861 else
2862 ac_cv_use_log='wxUSE_LOG=no'
2863 fi
2864
2865else
2866
2867 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2868 if test "x$LINE" != x ; then
2869 eval "DEFAULT_$LINE"
2870 else
2871 no_cache=1
2872 fi
2873
2874 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2875
2876fi
2877
2878
2879 eval "$ac_cv_use_log"
2880 if test "$no_cache" != 1; then
2881 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2882 fi
2883
2884 if test "$wxUSE_LOG" = yes; then
2885 echo "$ac_t""yes" 1>&6
2886 else
2887 echo "$ac_t""no" 1>&6
2888 fi
2889
2890
2891 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
24528b0c 2892echo "configure:2893: checking "for --enable-streams"" >&5
10f2d63a
VZ
2893 no_cache=0
2894 # Check whether --enable-streams or --disable-streams was given.
2895if test "${enable_streams+set}" = set; then
2896 enableval="$enable_streams"
2897
2898 if test "$enableval" = yes; then
2899 ac_cv_use_streams='wxUSE_STREAMS=yes'
2900 else
2901 ac_cv_use_streams='wxUSE_STREAMS=no'
2902 fi
2903
2904else
2905
2906 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2907 if test "x$LINE" != x ; then
2908 eval "DEFAULT_$LINE"
2909 else
2910 no_cache=1
2911 fi
2912
2913 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2914
2915fi
2916
2917
2918 eval "$ac_cv_use_streams"
2919 if test "$no_cache" != 1; then
2920 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2921 fi
2922
2923 if test "$wxUSE_STREAMS" = yes; then
2924 echo "$ac_t""yes" 1>&6
2925 else
2926 echo "$ac_t""no" 1>&6
2927 fi
2928
2929
2930 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
24528b0c 2931echo "configure:2932: checking "for --enable-file"" >&5
10f2d63a
VZ
2932 no_cache=0
2933 # Check whether --enable-file or --disable-file was given.
2934if test "${enable_file+set}" = set; then
2935 enableval="$enable_file"
2936
2937 if test "$enableval" = yes; then
2938 ac_cv_use_file='wxUSE_FILE=yes'
2939 else
2940 ac_cv_use_file='wxUSE_FILE=no'
2941 fi
2942
2943else
2944
2945 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2946 if test "x$LINE" != x ; then
2947 eval "DEFAULT_$LINE"
2948 else
2949 no_cache=1
2950 fi
2951
2952 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2953
2954fi
2955
2956
2957 eval "$ac_cv_use_file"
2958 if test "$no_cache" != 1; then
2959 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2960 fi
2961
2962 if test "$wxUSE_FILE" = yes; then
2963 echo "$ac_t""yes" 1>&6
2964 else
2965 echo "$ac_t""no" 1>&6
2966 fi
2967
2968
2969 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
24528b0c 2970echo "configure:2971: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2971 no_cache=0
2972 # Check whether --enable-textfile or --disable-textfile was given.
2973if test "${enable_textfile+set}" = set; then
2974 enableval="$enable_textfile"
2975
2976 if test "$enableval" = yes; then
2977 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2978 else
2979 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2980 fi
2981
2982else
2983
2984 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
2991 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2992
2993fi
2994
2995
2996 eval "$ac_cv_use_textfile"
2997 if test "$no_cache" != 1; then
2998 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2999 fi
3000
3001 if test "$wxUSE_TEXTFILE" = yes; then
3002 echo "$ac_t""yes" 1>&6
3003 else
3004 echo "$ac_t""no" 1>&6
3005 fi
3006
3007
3008 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
24528b0c 3009echo "configure:3010: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3010 no_cache=0
3011 # Check whether --enable-unicode or --disable-unicode was given.
3012if test "${enable_unicode+set}" = set; then
3013 enableval="$enable_unicode"
3014
3015 if test "$enableval" = yes; then
3016 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3017 else
3018 ac_cv_use_unicode='wxUSE_UNICODE=no'
3019 fi
3020
3021else
3022
3023 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3024 if test "x$LINE" != x ; then
3025 eval "DEFAULT_$LINE"
3026 else
3027 no_cache=1
3028 fi
3029
3030 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3031
3032fi
3033
3034
3035 eval "$ac_cv_use_unicode"
3036 if test "$no_cache" != 1; then
3037 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3038 fi
3039
3040 if test "$wxUSE_UNICODE" = yes; then
3041 echo "$ac_t""yes" 1>&6
3042 else
3043 echo "$ac_t""no" 1>&6
3044 fi
3045
3046
3047 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
24528b0c 3048echo "configure:3049: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3049 no_cache=0
3050 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3051if test "${enable_wcsrtombs+set}" = set; then
3052 enableval="$enable_wcsrtombs"
3053
3054 if test "$enableval" = yes; then
3055 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3056 else
3057 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3058 fi
3059
3060else
3061
3062 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3063 if test "x$LINE" != x ; then
3064 eval "DEFAULT_$LINE"
3065 else
3066 no_cache=1
3067 fi
3068
3069 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3070
3071fi
3072
3073
3074 eval "$ac_cv_use_wcsrtombs"
3075 if test "$no_cache" != 1; then
3076 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3077 fi
3078
3079 if test "$wxUSE_WCSRTOMBS" = yes; then
3080 echo "$ac_t""yes" 1>&6
3081 else
3082 echo "$ac_t""no" 1>&6
3083 fi
3084
3085
3086 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
24528b0c 3087echo "configure:3088: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3088 no_cache=0
3089 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3090if test "${enable_wxprintfv+set}" = set; then
3091 enableval="$enable_wxprintfv"
3092
3093 if test "$enableval" = yes; then
3094 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3095 else
3096 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3097 fi
3098
3099else
3100
3101 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3102 if test "x$LINE" != x ; then
3103 eval "DEFAULT_$LINE"
3104 else
3105 no_cache=1
3106 fi
3107
3108 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3109
3110fi
3111
3112
3113 eval "$ac_cv_use_wxprintfv"
3114 if test "$no_cache" != 1; then
3115 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3116 fi
3117
3118 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3119 echo "$ac_t""yes" 1>&6
3120 else
3121 echo "$ac_t""no" 1>&6
3122 fi
3123
3124
3125 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
24528b0c 3126echo "configure:3127: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3127 no_cache=0
3128 # Check whether --enable-joystick or --disable-joystick was given.
3129if test "${enable_joystick+set}" = set; then
3130 enableval="$enable_joystick"
3131
3132 if test "$enableval" = yes; then
3133 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3134 else
3135 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3136 fi
3137
3138else
3139
3140 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3141 if test "x$LINE" != x ; then
3142 eval "DEFAULT_$LINE"
3143 else
3144 no_cache=1
3145 fi
3146
3147 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3148
3149fi
3150
3151
3152 eval "$ac_cv_use_joystick"
3153 if test "$no_cache" != 1; then
3154 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3155 fi
3156
3157 if test "$wxUSE_JOYSTICK" = yes; then
3158 echo "$ac_t""yes" 1>&6
3159 else
3160 echo "$ac_t""no" 1>&6
3161 fi
3162
3163
3164 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
24528b0c 3165echo "configure:3166: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3166 no_cache=0
3167 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3168if test "${enable_std_iostreams+set}" = set; then
3169 enableval="$enable_std_iostreams"
3170
3171 if test "$enableval" = yes; then
3172 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3173 else
3174 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3175 fi
3176
3177else
3178
3179 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3180 if test "x$LINE" != x ; then
3181 eval "DEFAULT_$LINE"
3182 else
3183 no_cache=1
3184 fi
3185
3186 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3187
3188fi
3189
3190
3191 eval "$ac_cv_use_std_iostreams"
3192 if test "$no_cache" != 1; then
3193 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3194 fi
3195
3196 if test "$wxUSE_STD_IOSTREAM" = yes; then
3197 echo "$ac_t""yes" 1>&6
3198 else
3199 echo "$ac_t""no" 1>&6
3200 fi
3201
3202
24528b0c
VS
3203 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
3204echo "configure:3205: checking "for --enable-filesystem"" >&5
3205 no_cache=0
3206 # Check whether --enable-filesystem or --disable-filesystem was given.
3207if test "${enable_filesystem+set}" = set; then
3208 enableval="$enable_filesystem"
3209
3210 if test "$enableval" = yes; then
3211 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3212 else
3213 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3214 fi
3215
3216else
3217
3218 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3219 if test "x$LINE" != x ; then
3220 eval "DEFAULT_$LINE"
3221 else
3222 no_cache=1
3223 fi
3224
3225 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3226
3227fi
3228
3229
3230 eval "$ac_cv_use_filesystem"
3231 if test "$no_cache" != 1; then
3232 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3233 fi
3234
3235 if test "$wxUSE_FILESYSTEM" = yes; then
3236 echo "$ac_t""yes" 1>&6
3237 else
3238 echo "$ac_t""no" 1>&6
3239 fi
3240
3241
10f2d63a 3242 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
24528b0c 3243echo "configure:3244: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3244 no_cache=0
3245 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3246if test "${enable_fs_inet+set}" = set; then
3247 enableval="$enable_fs_inet"
3248
3249 if test "$enableval" = yes; then
3250 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3251 else
3252 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3253 fi
3254
3255else
3256
3257 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3258 if test "x$LINE" != x ; then
3259 eval "DEFAULT_$LINE"
3260 else
3261 no_cache=1
3262 fi
3263
3264 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3265
3266fi
3267
3268
3269 eval "$ac_cv_use_fs_inet"
3270 if test "$no_cache" != 1; then
3271 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3272 fi
3273
3274 if test "$wxUSE_FS_INET" = yes; then
3275 echo "$ac_t""yes" 1>&6
3276 else
3277 echo "$ac_t""no" 1>&6
3278 fi
3279
3280
3281 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
24528b0c 3282echo "configure:3283: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3283 no_cache=0
3284 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3285if test "${enable_fs_zip+set}" = set; then
3286 enableval="$enable_fs_zip"
3287
3288 if test "$enableval" = yes; then
3289 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3290 else
3291 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3292 fi
3293
3294else
3295
3296 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3297 if test "x$LINE" != x ; then
3298 eval "DEFAULT_$LINE"
3299 else
3300 no_cache=1
3301 fi
3302
3303 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3304
3305fi
3306
3307
3308 eval "$ac_cv_use_fs_zip"
3309 if test "$no_cache" != 1; then
3310 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3311 fi
3312
3313 if test "$wxUSE_FS_ZIP" = yes; then
3314 echo "$ac_t""yes" 1>&6
3315 else
3316 echo "$ac_t""no" 1>&6
3317 fi
3318
3319
3320 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
24528b0c 3321echo "configure:3322: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3322 no_cache=0
3323 # Check whether --enable-zipstream or --disable-zipstream was given.
3324if test "${enable_zipstream+set}" = set; then
3325 enableval="$enable_zipstream"
3326
3327 if test "$enableval" = yes; then
3328 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3329 else
3330 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3331 fi
3332
3333else
3334
3335 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3336 if test "x$LINE" != x ; then
3337 eval "DEFAULT_$LINE"
3338 else
3339 no_cache=1
3340 fi
3341
3342 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3343
3344fi
3345
3346
3347 eval "$ac_cv_use_zipstream"
3348 if test "$no_cache" != 1; then
3349 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3350 fi
3351
3352 if test "$wxUSE_ZIPSTREAM" = yes; then
3353 echo "$ac_t""yes" 1>&6
3354 else
3355 echo "$ac_t""no" 1>&6
3356 fi
3357
3358
3359
3360
3361 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
24528b0c 3362echo "configure:3363: checking "for --enable-threads"" >&5
10f2d63a
VZ
3363 no_cache=0
3364 # Check whether --enable-threads or --disable-threads was given.
3365if test "${enable_threads+set}" = set; then
3366 enableval="$enable_threads"
3367
3368 if test "$enableval" = yes; then
3369 ac_cv_use_threads='wxUSE_THREADS=yes'
3370 else
3371 ac_cv_use_threads='wxUSE_THREADS=no'
3372 fi
3373
3374else
3375
3376 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3377 if test "x$LINE" != x ; then
3378 eval "DEFAULT_$LINE"
3379 else
3380 no_cache=1
3381 fi
3382
3383 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3384
3385fi
3386
3387
3388 eval "$ac_cv_use_threads"
3389 if test "$no_cache" != 1; then
3390 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3391 fi
3392
3393 if test "$wxUSE_THREADS" = yes; then
3394 echo "$ac_t""yes" 1>&6
3395 else
3396 echo "$ac_t""no" 1>&6
3397 fi
3398
3399
3400 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
24528b0c 3401echo "configure:3402: checking "for --enable-serial"" >&5
10f2d63a
VZ
3402 no_cache=0
3403 # Check whether --enable-serial or --disable-serial was given.
3404if test "${enable_serial+set}" = set; then
3405 enableval="$enable_serial"
3406
3407 if test "$enableval" = yes; then
3408 ac_cv_use_serial='wxUSE_SERIAL=yes'
3409 else
3410 ac_cv_use_serial='wxUSE_SERIAL=no'
3411 fi
3412
3413else
3414
3415 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3416 if test "x$LINE" != x ; then
3417 eval "DEFAULT_$LINE"
3418 else
3419 no_cache=1
3420 fi
3421
3422 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3423
3424fi
3425
3426
3427 eval "$ac_cv_use_serial"
3428 if test "$no_cache" != 1; then
3429 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3430 fi
3431
3432 if test "$wxUSE_SERIAL" = yes; then
3433 echo "$ac_t""yes" 1>&6
3434 else
3435 echo "$ac_t""no" 1>&6
3436 fi
3437
3438
b12915c1
VZ
3439if test "$wxUSE_GUI" = "yes"; then
3440
10f2d63a
VZ
3441
3442
3443 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
24528b0c 3444echo "configure:3445: checking "for --enable-docview"" >&5
10f2d63a
VZ
3445 no_cache=0
3446 # Check whether --enable-docview or --disable-docview was given.
3447if test "${enable_docview+set}" = set; then
3448 enableval="$enable_docview"
3449
3450 if test "$enableval" = yes; then
3451 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3452 else
3453 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3454 fi
3455
3456else
3457
3458 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3459 if test "x$LINE" != x ; then
3460 eval "DEFAULT_$LINE"
3461 else
3462 no_cache=1
3463 fi
3464
3465 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3466
3467fi
3468
3469
3470 eval "$ac_cv_use_docview"
3471 if test "$no_cache" != 1; then
3472 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3473 fi
3474
3475 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3476 echo "$ac_t""yes" 1>&6
3477 else
3478 echo "$ac_t""no" 1>&6
3479 fi
3480
3481
3482 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
24528b0c 3483echo "configure:3484: checking "for --enable-help"" >&5
10f2d63a
VZ
3484 no_cache=0
3485 # Check whether --enable-help or --disable-help was given.
3486if test "${enable_help+set}" = set; then
3487 enableval="$enable_help"
3488
3489 if test "$enableval" = yes; then
3490 ac_cv_use_help='wxUSE_HELP=yes'
3491 else
3492 ac_cv_use_help='wxUSE_HELP=no'
3493 fi
3494
3495else
3496
3497 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3498 if test "x$LINE" != x ; then
3499 eval "DEFAULT_$LINE"
3500 else
3501 no_cache=1
3502 fi
3503
3504 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3505
3506fi
3507
3508
3509 eval "$ac_cv_use_help"
3510 if test "$no_cache" != 1; then
3511 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3512 fi
3513
3514 if test "$wxUSE_HELP" = yes; then
3515 echo "$ac_t""yes" 1>&6
3516 else
3517 echo "$ac_t""no" 1>&6
3518 fi
3519
3520
3521 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
24528b0c 3522echo "configure:3523: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3523 no_cache=0
3524 # Check whether --enable-constraints or --disable-constraints was given.
3525if test "${enable_constraints+set}" = set; then
3526 enableval="$enable_constraints"
3527
3528 if test "$enableval" = yes; then
3529 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3530 else
3531 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3532 fi
3533
3534else
3535
3536 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3537 if test "x$LINE" != x ; then
3538 eval "DEFAULT_$LINE"
3539 else
3540 no_cache=1
3541 fi
3542
3543 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3544
3545fi
3546
3547
3548 eval "$ac_cv_use_constraints"
3549 if test "$no_cache" != 1; then
3550 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3551 fi
3552
3553 if test "$wxUSE_CONSTRAINTS" = yes; then
3554 echo "$ac_t""yes" 1>&6
3555 else
3556 echo "$ac_t""no" 1>&6
3557 fi
3558
3559
3560 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
24528b0c 3561echo "configure:3562: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3562 no_cache=0
3563 # Check whether --enable-printarch or --disable-printarch was given.
3564if test "${enable_printarch+set}" = set; then
3565 enableval="$enable_printarch"
3566
3567 if test "$enableval" = yes; then
3568 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3569 else
3570 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3571 fi
3572
3573else
3574
3575 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3576 if test "x$LINE" != x ; then
3577 eval "DEFAULT_$LINE"
3578 else
3579 no_cache=1
3580 fi
3581
3582 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3583
3584fi
3585
3586
3587 eval "$ac_cv_use_printarch"
3588 if test "$no_cache" != 1; then
3589 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3590 fi
3591
3592 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3593 echo "$ac_t""yes" 1>&6
3594 else
3595 echo "$ac_t""no" 1>&6
3596 fi
3597
3598
3599 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
24528b0c 3600echo "configure:3601: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3601 no_cache=0
3602 # Check whether --enable-mdi or --disable-mdi was given.
3603if test "${enable_mdi+set}" = set; then
3604 enableval="$enable_mdi"
3605
3606 if test "$enableval" = yes; then
3607 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3608 else
3609 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3610 fi
3611
3612else
3613
3614 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3615 if test "x$LINE" != x ; then
3616 eval "DEFAULT_$LINE"
3617 else
3618 no_cache=1
3619 fi
3620
3621 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3622
3623fi
3624
3625
3626 eval "$ac_cv_use_mdi"
3627 if test "$no_cache" != 1; then
3628 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3629 fi
3630
3631 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3632 echo "$ac_t""yes" 1>&6
3633 else
3634 echo "$ac_t""no" 1>&6
3635 fi
3636
3637
3638
3639 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
24528b0c 3640echo "configure:3641: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3641 no_cache=0
3642 # Check whether --enable-postscript or --disable-postscript was given.
3643if test "${enable_postscript+set}" = set; then
3644 enableval="$enable_postscript"
3645
3646 if test "$enableval" = yes; then
3647 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3648 else
3649 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3650 fi
3651
3652else
3653
3654 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3655 if test "x$LINE" != x ; then
3656 eval "DEFAULT_$LINE"
3657 else
3658 no_cache=1
3659 fi
3660
3661 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3662
3663fi
3664
3665
3666 eval "$ac_cv_use_postscript"
3667 if test "$no_cache" != 1; then
3668 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3669 fi
3670
3671 if test "$wxUSE_POSTSCRIPT" = yes; then
3672 echo "$ac_t""yes" 1>&6
3673 else
3674 echo "$ac_t""no" 1>&6
3675 fi
3676
3677
3678
3679
3680 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
24528b0c 3681echo "configure:3682: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3682 no_cache=0
3683 # Check whether --enable-prologio or --disable-prologio was given.
3684if test "${enable_prologio+set}" = set; then
3685 enableval="$enable_prologio"
3686
3687 if test "$enableval" = yes; then
3688 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3689 else
3690 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3691 fi
3692
3693else
3694
3695 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3696 if test "x$LINE" != x ; then
3697 eval "DEFAULT_$LINE"
3698 else
3699 no_cache=1
3700 fi
3701
3702 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3703
3704fi
3705
3706
3707 eval "$ac_cv_use_prologio"
3708 if test "$no_cache" != 1; then
3709 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3710 fi
3711
3712 if test "$wxUSE_PROLOGIO" = yes; then
3713 echo "$ac_t""yes" 1>&6
3714 else
3715 echo "$ac_t""no" 1>&6
3716 fi
3717
3718
3719 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
24528b0c 3720echo "configure:3721: checking "for --enable-resources"" >&5
10f2d63a
VZ
3721 no_cache=0
3722 # Check whether --enable-resources or --disable-resources was given.
3723if test "${enable_resources+set}" = set; then
3724 enableval="$enable_resources"
3725
3726 if test "$enableval" = yes; then
3727 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3728 else
3729 ac_cv_use_resources='wxUSE_RESOURCES=no'
3730 fi
3731
3732else
3733
3734 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3735 if test "x$LINE" != x ; then
3736 eval "DEFAULT_$LINE"
3737 else
3738 no_cache=1
3739 fi
3740
3741 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3742
3743fi
3744
3745
3746 eval "$ac_cv_use_resources"
3747 if test "$no_cache" != 1; then
3748 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3749 fi
3750
3751 if test "$wxUSE_RESOURCES" = yes; then
3752 echo "$ac_t""yes" 1>&6
3753 else
3754 echo "$ac_t""no" 1>&6
3755 fi
3756
3757
3758
3759 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
24528b0c 3760echo "configure:3761: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3761 no_cache=0
3762 # Check whether --enable-xresources or --disable-xresources was given.
3763if test "${enable_xresources+set}" = set; then
3764 enableval="$enable_xresources"
3765
3766 if test "$enableval" = yes; then
3767 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3768 else
3769 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3770 fi
3771
3772else
3773
3774 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3775 if test "x$LINE" != x ; then
3776 eval "DEFAULT_$LINE"
3777 else
3778 no_cache=1
3779 fi
3780
3781 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3782
3783fi
3784
3785
3786 eval "$ac_cv_use_xresources"
3787 if test "$no_cache" != 1; then
3788 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3789 fi
3790
3791 if test "$wxUSE_X_RESOURCES" = yes; then
3792 echo "$ac_t""yes" 1>&6
3793 else
3794 echo "$ac_t""no" 1>&6
3795 fi
3796
3797
3798
3799
3800 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
24528b0c 3801echo "configure:3802: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3802 no_cache=0
3803 # Check whether --enable-clipboard or --disable-clipboard was given.
3804if test "${enable_clipboard+set}" = set; then
3805 enableval="$enable_clipboard"
3806
3807 if test "$enableval" = yes; then
3808 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3809 else
3810 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3811 fi
3812
3813else
3814
3815 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3816 if test "x$LINE" != x ; then
3817 eval "DEFAULT_$LINE"
3818 else
3819 no_cache=1
3820 fi
3821
3822 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3823
3824fi
3825
3826
3827 eval "$ac_cv_use_clipboard"
3828 if test "$no_cache" != 1; then
3829 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3830 fi
3831
3832 if test "$wxUSE_CLIPBOARD" = yes; then
3833 echo "$ac_t""yes" 1>&6
3834 else
3835 echo "$ac_t""no" 1>&6
3836 fi
3837
3838
3839 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
24528b0c 3840echo "configure:3841: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3841 no_cache=0
3842 # Check whether --enable-dnd or --disable-dnd was given.
3843if test "${enable_dnd+set}" = set; then
3844 enableval="$enable_dnd"
3845
3846 if test "$enableval" = yes; then
3847 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3848 else
3849 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3850 fi
3851
3852else
3853
3854 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3855 if test "x$LINE" != x ; then
3856 eval "DEFAULT_$LINE"
3857 else
3858 no_cache=1
3859 fi
3860
3861 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3862
3863fi
3864
3865
3866 eval "$ac_cv_use_dnd"
3867 if test "$no_cache" != 1; then
3868 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3869 fi
3870
3871 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3872 echo "$ac_t""yes" 1>&6
3873 else
3874 echo "$ac_t""no" 1>&6
3875 fi
3876
3877
3878
3879 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
24528b0c 3880echo "configure:3881: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3881 no_cache=0
3882 # Check whether --enable-wxtree or --disable-wxtree was given.
3883if test "${enable_wxtree+set}" = set; then
3884 enableval="$enable_wxtree"
3885
3886 if test "$enableval" = yes; then
3887 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3888 else
3889 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3890 fi
3891
3892else
3893
3894 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3895 if test "x$LINE" != x ; then
3896 eval "DEFAULT_$LINE"
3897 else
3898 no_cache=1
3899 fi
3900
3901 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3902
3903fi
3904
3905
3906 eval "$ac_cv_use_wxtree"
3907 if test "$no_cache" != 1; then
3908 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3909 fi
3910
3911 if test "$wxUSE_WXTREE" = yes; then
3912 echo "$ac_t""yes" 1>&6
3913 else
3914 echo "$ac_t""no" 1>&6
3915 fi
3916
3917
3918
3919
3920 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
24528b0c 3921echo "configure:3922: checking "for --enable-controls"" >&5
10f2d63a
VZ
3922 no_cache=0
3923 # Check whether --enable-controls or --disable-controls was given.
3924if test "${enable_controls+set}" = set; then
3925 enableval="$enable_controls"
3926
3927 if test "$enableval" = yes; then
3928 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3929 else
3930 ac_cv_use_controls='wxUSE_CONTROLS=no'
3931 fi
3932
3933else
3934
3935 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3936 if test "x$LINE" != x ; then
3937 eval "DEFAULT_$LINE"
3938 else
3939 no_cache=1
3940 fi
3941
3942 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3943
3944fi
3945
3946
3947 eval "$ac_cv_use_controls"
3948 if test "$no_cache" != 1; then
3949 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3950 fi
3951
3952 if test "$wxUSE_CONTROLS" = yes; then
3953 echo "$ac_t""yes" 1>&6
3954 else
3955 echo "$ac_t""no" 1>&6
3956 fi
3957
3958
3959if test "$wxUSE_CONTROLS" = "yes"; then
3960 DEFAULT_wxUSE_ACCEL=yes
3961 DEFAULT_wxUSE_CARET=yes
3962 DEFAULT_wxUSE_COMBOBOX=yes
3963 DEFAULT_wxUSE_BMPBUTTON=yes
3964 DEFAULT_wxUSE_CHECKBOX=yes
3965 DEFAULT_wxUSE_CHECKLISTBOX=yes
3966 DEFAULT_wxUSE_CHOICE=yes
3967 DEFAULT_wxUSE_GAUGE=yes
3968 DEFAULT_wxUSE_GRID=yes
cc977e5f 3969 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
3970 DEFAULT_wxUSE_IMAGLIST=yes
3971 DEFAULT_wxUSE_LISTBOX=yes
3972 DEFAULT_wxUSE_LISTCTRL=yes
3973 DEFAULT_wxUSE_NOTEBOOK=yes
3974 DEFAULT_wxUSE_RADIOBOX=yes
3975 DEFAULT_wxUSE_RADIOBTN=yes
3976 DEFAULT_wxUSE_SASH=yes
3977 DEFAULT_wxUSE_SCROLLBAR=yes
3978 DEFAULT_wxUSE_SLIDER=yes
3979 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 3980 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
3981 DEFAULT_wxUSE_SPLITTER=yes
3982 DEFAULT_wxUSE_STATBMP=yes
3983 DEFAULT_wxUSE_STATBOX=yes
3984 DEFAULT_wxUSE_STATLINE=yes
3985 DEFAULT_wxUSE_STATUSBAR=yes
3986 DEFAULT_wxUSE_TAB_DIALOG=yes
3987 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
3988 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3989 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
3990 DEFAULT_wxUSE_TOOLTIPS=yes
3991 DEFAULT_wxUSE_TREECTRL=yes
3992elif test "$wxUSE_CONTROLS" = "no"; then
3993 DEFAULT_wxUSE_ACCEL=no
3994 DEFAULT_wxUSE_CARET=no
3995 DEFAULT_wxUSE_COMBOBOX=no
3996 DEFAULT_wxUSE_BMPBUTTON=no
3997 DEFAULT_wxUSE_CHECKBOX=no
3998 DEFAULT_wxUSE_CHECKLISTBOX=no
3999 DEFAULT_wxUSE_CHOICE=no
4000 DEFAULT_wxUSE_GAUGE=no
4001 DEFAULT_wxUSE_GRID=no
4002 DEFAULT_wxUSE_NEW_GRID=no
4003 DEFAULT_wxUSE_IMAGLIST=no
4004 DEFAULT_wxUSE_LISTBOX=no
4005 DEFAULT_wxUSE_LISTCTRL=no
4006 DEFAULT_wxUSE_NOTEBOOK=no
4007 DEFAULT_wxUSE_RADIOBOX=no
4008 DEFAULT_wxUSE_RADIOBTN=no
4009 DEFAULT_wxUSE_SASH=no
4010 DEFAULT_wxUSE_SCROLLBAR=no
4011 DEFAULT_wxUSE_SLIDER=no
4012 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4013 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4014 DEFAULT_wxUSE_SPLITTER=no
4015 DEFAULT_wxUSE_STATBMP=no
4016 DEFAULT_wxUSE_STATBOX=no
4017 DEFAULT_wxUSE_STATLINE=no
4018 DEFAULT_wxUSE_STATUSBAR=no
4019 DEFAULT_wxUSE_TAB_DIALOG=no
4020 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4021 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4022 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4023 DEFAULT_wxUSE_TOOLTIPS=no
4024 DEFAULT_wxUSE_TREECTRL=no
4025fi
4026
4027
4028 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
24528b0c 4029echo "configure:4030: checking "for --enable-accel"" >&5
10f2d63a
VZ
4030 no_cache=0
4031 # Check whether --enable-accel or --disable-accel was given.
4032if test "${enable_accel+set}" = set; then
4033 enableval="$enable_accel"
4034
4035 if test "$enableval" = yes; then
4036 ac_cv_use_accel='wxUSE_ACCEL=yes'
4037 else
4038 ac_cv_use_accel='wxUSE_ACCEL=no'
4039 fi
4040
4041else
4042
4043 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4044 if test "x$LINE" != x ; then
4045 eval "DEFAULT_$LINE"
4046 else
4047 no_cache=1
4048 fi
4049
4050 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4051
4052fi
4053
4054
4055 eval "$ac_cv_use_accel"
4056 if test "$no_cache" != 1; then
4057 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4058 fi
4059
4060 if test "$wxUSE_ACCEL" = yes; then
4061 echo "$ac_t""yes" 1>&6
4062 else
4063 echo "$ac_t""no" 1>&6
4064 fi
4065
4066
4067 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
24528b0c 4068echo "configure:4069: checking "for --enable-caret"" >&5
10f2d63a
VZ
4069 no_cache=0
4070 # Check whether --enable-caret or --disable-caret was given.
4071if test "${enable_caret+set}" = set; then
4072 enableval="$enable_caret"
4073
4074 if test "$enableval" = yes; then
4075 ac_cv_use_caret='wxUSE_CARET=yes'
4076 else
4077 ac_cv_use_caret='wxUSE_CARET=no'
4078 fi
4079
4080else
4081
4082 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4083 if test "x$LINE" != x ; then
4084 eval "DEFAULT_$LINE"
4085 else
4086 no_cache=1
4087 fi
4088
4089 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4090
4091fi
4092
4093
4094 eval "$ac_cv_use_caret"
4095 if test "$no_cache" != 1; then
4096 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4097 fi
4098
4099 if test "$wxUSE_CARET" = yes; then
4100 echo "$ac_t""yes" 1>&6
4101 else
4102 echo "$ac_t""no" 1>&6
4103 fi
4104
4105
4106 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
24528b0c 4107echo "configure:4108: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4108 no_cache=0
4109 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4110if test "${enable_bmpbutton+set}" = set; then
4111 enableval="$enable_bmpbutton"
4112
4113 if test "$enableval" = yes; then
4114 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4115 else
4116 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4117 fi
4118
4119else
4120
4121 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4122 if test "x$LINE" != x ; then
4123 eval "DEFAULT_$LINE"
4124 else
4125 no_cache=1
4126 fi
4127
4128 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4129
4130fi
4131
4132
4133 eval "$ac_cv_use_bmpbutton"
4134 if test "$no_cache" != 1; then
4135 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4136 fi
4137
4138 if test "$wxUSE_BMPBUTTON" = yes; then
4139 echo "$ac_t""yes" 1>&6
4140 else
4141 echo "$ac_t""no" 1>&6
4142 fi
4143
4144
4145 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
24528b0c 4146echo "configure:4147: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4147 no_cache=0
4148 # Check whether --enable-checkbox or --disable-checkbox was given.
4149if test "${enable_checkbox+set}" = set; then
4150 enableval="$enable_checkbox"
4151
4152 if test "$enableval" = yes; then
4153 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4154 else
4155 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4156 fi
4157
4158else
4159
4160 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4161 if test "x$LINE" != x ; then
4162 eval "DEFAULT_$LINE"
4163 else
4164 no_cache=1
4165 fi
4166
4167 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4168
4169fi
4170
4171
4172 eval "$ac_cv_use_checkbox"
4173 if test "$no_cache" != 1; then
4174 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4175 fi
4176
4177 if test "$wxUSE_CHECKBOX" = yes; then
4178 echo "$ac_t""yes" 1>&6
4179 else
4180 echo "$ac_t""no" 1>&6
4181 fi
4182
4183
4184 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
24528b0c 4185echo "configure:4186: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4186 no_cache=0
4187 # Check whether --enable-checklst or --disable-checklst was given.
4188if test "${enable_checklst+set}" = set; then
4189 enableval="$enable_checklst"
4190
4191 if test "$enableval" = yes; then
4192 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4193 else
4194 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4195 fi
4196
4197else
4198
4199 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4200 if test "x$LINE" != x ; then
4201 eval "DEFAULT_$LINE"
4202 else
4203 no_cache=1
4204 fi
4205
4206 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4207
4208fi
4209
4210
4211 eval "$ac_cv_use_checklst"
4212 if test "$no_cache" != 1; then
4213 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4214 fi
4215
4216 if test "$wxUSE_CHECKLST" = yes; then
4217 echo "$ac_t""yes" 1>&6
4218 else
4219 echo "$ac_t""no" 1>&6
4220 fi
4221
4222
4223 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
24528b0c 4224echo "configure:4225: checking "for --enable-choice"" >&5
10f2d63a
VZ
4225 no_cache=0
4226 # Check whether --enable-choice or --disable-choice was given.
4227if test "${enable_choice+set}" = set; then
4228 enableval="$enable_choice"
4229
4230 if test "$enableval" = yes; then
4231 ac_cv_use_choice='wxUSE_CHOICE=yes'
4232 else
4233 ac_cv_use_choice='wxUSE_CHOICE=no'
4234 fi
4235
4236else
4237
4238 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4239 if test "x$LINE" != x ; then
4240 eval "DEFAULT_$LINE"
4241 else
4242 no_cache=1
4243 fi
4244
4245 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4246
4247fi
4248
4249
4250 eval "$ac_cv_use_choice"
4251 if test "$no_cache" != 1; then
4252 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4253 fi
4254
4255 if test "$wxUSE_CHOICE" = yes; then
4256 echo "$ac_t""yes" 1>&6
4257 else
4258 echo "$ac_t""no" 1>&6
4259 fi
4260
4261
4262 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
24528b0c 4263echo "configure:4264: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4264 no_cache=0
4265 # Check whether --enable-combobox or --disable-combobox was given.
4266if test "${enable_combobox+set}" = set; then
4267 enableval="$enable_combobox"
4268
4269 if test "$enableval" = yes; then
4270 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4271 else
4272 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4273 fi
4274
4275else
4276
4277 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4278 if test "x$LINE" != x ; then
4279 eval "DEFAULT_$LINE"
4280 else
4281 no_cache=1
4282 fi
4283
4284 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4285
4286fi
4287
4288
4289 eval "$ac_cv_use_combobox"
4290 if test "$no_cache" != 1; then
4291 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4292 fi
4293
4294 if test "$wxUSE_COMBOBOX" = yes; then
4295 echo "$ac_t""yes" 1>&6
4296 else
4297 echo "$ac_t""no" 1>&6
4298 fi
4299
4300
4301 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
24528b0c 4302echo "configure:4303: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4303 no_cache=0
4304 # Check whether --enable-gauge or --disable-gauge was given.
4305if test "${enable_gauge+set}" = set; then
4306 enableval="$enable_gauge"
4307
4308 if test "$enableval" = yes; then
4309 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4310 else
4311 ac_cv_use_gauge='wxUSE_GAUGE=no'
4312 fi
4313
4314else
4315
4316 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4317 if test "x$LINE" != x ; then
4318 eval "DEFAULT_$LINE"
4319 else
4320 no_cache=1
4321 fi
4322
4323 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4324
4325fi
4326
4327
4328 eval "$ac_cv_use_gauge"
4329 if test "$no_cache" != 1; then
4330 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4331 fi
4332
4333 if test "$wxUSE_GAUGE" = yes; then
4334 echo "$ac_t""yes" 1>&6
4335 else
4336 echo "$ac_t""no" 1>&6
4337 fi
4338
4339
4340 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
24528b0c 4341echo "configure:4342: checking "for --enable-grid"" >&5
10f2d63a
VZ
4342 no_cache=0
4343 # Check whether --enable-grid or --disable-grid was given.
4344if test "${enable_grid+set}" = set; then
4345 enableval="$enable_grid"
4346
4347 if test "$enableval" = yes; then
4348 ac_cv_use_grid='wxUSE_GRID=yes'
4349 else
4350 ac_cv_use_grid='wxUSE_GRID=no'
4351 fi
4352
4353else
4354
4355 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4356 if test "x$LINE" != x ; then
4357 eval "DEFAULT_$LINE"
4358 else
4359 no_cache=1
4360 fi
4361
4362 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4363
4364fi
4365
4366
4367 eval "$ac_cv_use_grid"
4368 if test "$no_cache" != 1; then
4369 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4370 fi
4371
4372 if test "$wxUSE_GRID" = yes; then
4373 echo "$ac_t""yes" 1>&6
4374 else
4375 echo "$ac_t""no" 1>&6
4376 fi
4377
4378
4379 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
24528b0c 4380echo "configure:4381: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4381 no_cache=0
4382 # Check whether --enable-newgrid or --disable-newgrid was given.
4383if test "${enable_newgrid+set}" = set; then
4384 enableval="$enable_newgrid"
4385
4386 if test "$enableval" = yes; then
4387 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4388 else
4389 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4390 fi
4391
4392else
4393
4394 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4395 if test "x$LINE" != x ; then
4396 eval "DEFAULT_$LINE"
4397 else
4398 no_cache=1
4399 fi
4400
4401 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4402
4403fi
4404
4405
4406 eval "$ac_cv_use_newgrid"
4407 if test "$no_cache" != 1; then
4408 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4409 fi
4410
4411 if test "$wxUSE_NEW_GRID" = yes; then
4412 echo "$ac_t""yes" 1>&6
4413 else
4414 echo "$ac_t""no" 1>&6
4415 fi
4416
4417
4418 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
24528b0c 4419echo "configure:4420: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4420 no_cache=0
4421 # Check whether --enable-imaglist or --disable-imaglist was given.
4422if test "${enable_imaglist+set}" = set; then
4423 enableval="$enable_imaglist"
4424
4425 if test "$enableval" = yes; then
4426 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4427 else
4428 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4429 fi
4430
4431else
4432
4433 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4434 if test "x$LINE" != x ; then
4435 eval "DEFAULT_$LINE"
4436 else
4437 no_cache=1
4438 fi
4439
4440 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4441
4442fi
4443
4444
4445 eval "$ac_cv_use_imaglist"
4446 if test "$no_cache" != 1; then
4447 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4448 fi
4449
4450 if test "$wxUSE_IMAGLIST" = yes; then
4451 echo "$ac_t""yes" 1>&6
4452 else
4453 echo "$ac_t""no" 1>&6
4454 fi
4455
4456
4457 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
24528b0c 4458echo "configure:4459: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4459 no_cache=0
4460 # Check whether --enable-listbox or --disable-listbox was given.
4461if test "${enable_listbox+set}" = set; then
4462 enableval="$enable_listbox"
4463
4464 if test "$enableval" = yes; then
4465 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4466 else
4467 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4468 fi
4469
4470else
4471
4472 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4473 if test "x$LINE" != x ; then
4474 eval "DEFAULT_$LINE"
4475 else
4476 no_cache=1
4477 fi
4478
4479 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4480
4481fi
4482
4483
4484 eval "$ac_cv_use_listbox"
4485 if test "$no_cache" != 1; then
4486 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4487 fi
4488
4489 if test "$wxUSE_LISTBOX" = yes; then
4490 echo "$ac_t""yes" 1>&6
4491 else
4492 echo "$ac_t""no" 1>&6
4493 fi
4494
4495
4496 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
24528b0c 4497echo "configure:4498: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4498 no_cache=0
4499 # Check whether --enable-listctrl or --disable-listctrl was given.
4500if test "${enable_listctrl+set}" = set; then
4501 enableval="$enable_listctrl"
4502
4503 if test "$enableval" = yes; then
4504 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4505 else
4506 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4507 fi
4508
4509else
4510
4511 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
4518 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4519
4520fi
4521
4522
4523 eval "$ac_cv_use_listctrl"
4524 if test "$no_cache" != 1; then
4525 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4526 fi
4527
4528 if test "$wxUSE_LISTCTRL" = yes; then
4529 echo "$ac_t""yes" 1>&6
4530 else
4531 echo "$ac_t""no" 1>&6
4532 fi
4533
4534
4535 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
24528b0c 4536echo "configure:4537: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4537 no_cache=0
4538 # Check whether --enable-notebook or --disable-notebook was given.
4539if test "${enable_notebook+set}" = set; then
4540 enableval="$enable_notebook"
4541
4542 if test "$enableval" = yes; then
4543 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4544 else
4545 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4546 fi
4547
4548else
4549
4550 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4551 if test "x$LINE" != x ; then
4552 eval "DEFAULT_$LINE"
4553 else
4554 no_cache=1
4555 fi
4556
4557 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4558
4559fi
4560
4561
4562 eval "$ac_cv_use_notebook"
4563 if test "$no_cache" != 1; then
4564 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4565 fi
4566
4567 if test "$wxUSE_NOTEBOOK" = yes; then
4568 echo "$ac_t""yes" 1>&6
4569 else
4570 echo "$ac_t""no" 1>&6
4571 fi
4572
4573
4574 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
24528b0c 4575echo "configure:4576: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4576 no_cache=0
4577 # Check whether --enable-radiobox or --disable-radiobox was given.
4578if test "${enable_radiobox+set}" = set; then
4579 enableval="$enable_radiobox"
4580
4581 if test "$enableval" = yes; then
4582 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4583 else
4584 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4585 fi
4586
4587else
4588
4589 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4590 if test "x$LINE" != x ; then
4591 eval "DEFAULT_$LINE"
4592 else
4593 no_cache=1
4594 fi
4595
4596 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4597
4598fi
4599
4600
4601 eval "$ac_cv_use_radiobox"
4602 if test "$no_cache" != 1; then
4603 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4604 fi
4605
4606 if test "$wxUSE_RADIOBOX" = yes; then
4607 echo "$ac_t""yes" 1>&6
4608 else
4609 echo "$ac_t""no" 1>&6
4610 fi
4611
4612
4613 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
24528b0c 4614echo "configure:4615: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4615 no_cache=0
4616 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4617if test "${enable_radiobtn+set}" = set; then
4618 enableval="$enable_radiobtn"
4619
4620 if test "$enableval" = yes; then
4621 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4622 else
4623 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4624 fi
4625
4626else
4627
4628 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4629 if test "x$LINE" != x ; then
4630 eval "DEFAULT_$LINE"
4631 else
4632 no_cache=1
4633 fi
4634
4635 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4636
4637fi
4638
4639
4640 eval "$ac_cv_use_radiobtn"
4641 if test "$no_cache" != 1; then
4642 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4643 fi
4644
4645 if test "$wxUSE_RADIOBTN" = yes; then
4646 echo "$ac_t""yes" 1>&6
4647 else
4648 echo "$ac_t""no" 1>&6
4649 fi
4650
4651
4652 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
24528b0c 4653echo "configure:4654: checking "for --enable-sash"" >&5
10f2d63a
VZ
4654 no_cache=0
4655 # Check whether --enable-sash or --disable-sash was given.
4656if test "${enable_sash+set}" = set; then
4657 enableval="$enable_sash"
4658
4659 if test "$enableval" = yes; then
4660 ac_cv_use_sash='wxUSE_SASH=yes'
4661 else
4662 ac_cv_use_sash='wxUSE_SASH=no'
4663 fi
4664
4665else
4666
4667 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4668 if test "x$LINE" != x ; then
4669 eval "DEFAULT_$LINE"
4670 else
4671 no_cache=1
4672 fi
4673
4674 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4675
4676fi
4677
4678
4679 eval "$ac_cv_use_sash"
4680 if test "$no_cache" != 1; then
4681 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4682 fi
4683
4684 if test "$wxUSE_SASH" = yes; then
4685 echo "$ac_t""yes" 1>&6
4686 else
4687 echo "$ac_t""no" 1>&6
4688 fi
4689
4690
4691 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
24528b0c 4692echo "configure:4693: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4693 no_cache=0
4694 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4695if test "${enable_scrollbar+set}" = set; then
4696 enableval="$enable_scrollbar"
4697
4698 if test "$enableval" = yes; then
4699 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4700 else
4701 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4702 fi
4703
4704else
4705
4706 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4707 if test "x$LINE" != x ; then
4708 eval "DEFAULT_$LINE"
4709 else
4710 no_cache=1
4711 fi
4712
4713 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4714
4715fi
4716
4717
4718 eval "$ac_cv_use_scrollbar"
4719 if test "$no_cache" != 1; then
4720 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4721 fi
4722
4723 if test "$wxUSE_SCROLLBAR" = yes; then
4724 echo "$ac_t""yes" 1>&6
4725 else
4726 echo "$ac_t""no" 1>&6
4727 fi
4728
4729
4730 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
24528b0c 4731echo "configure:4732: checking "for --enable-slider"" >&5
10f2d63a
VZ
4732 no_cache=0
4733 # Check whether --enable-slider or --disable-slider was given.
4734if test "${enable_slider+set}" = set; then
4735 enableval="$enable_slider"
4736
4737 if test "$enableval" = yes; then
4738 ac_cv_use_slider='wxUSE_SLIDER=yes'
4739 else
4740 ac_cv_use_slider='wxUSE_SLIDER=no'
4741 fi
4742
4743else
4744
4745 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4746 if test "x$LINE" != x ; then
4747 eval "DEFAULT_$LINE"
4748 else
4749 no_cache=1
4750 fi
4751
4752 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4753
4754fi
4755
4756
4757 eval "$ac_cv_use_slider"
4758 if test "$no_cache" != 1; then
4759 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4760 fi
4761
4762 if test "$wxUSE_SLIDER" = yes; then
4763 echo "$ac_t""yes" 1>&6
4764 else
4765 echo "$ac_t""no" 1>&6
4766 fi
4767
4768
4769 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
24528b0c 4770echo "configure:4771: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4771 no_cache=0
4772 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4773if test "${enable_spinbtn+set}" = set; then
4774 enableval="$enable_spinbtn"
4775
4776 if test "$enableval" = yes; then
4777 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4778 else
4779 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4780 fi
4781
4782else
4783
4784 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4785 if test "x$LINE" != x ; then
4786 eval "DEFAULT_$LINE"
4787 else
4788 no_cache=1
4789 fi
4790
4791 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4792
4793fi
4794
4795
4796 eval "$ac_cv_use_spinbtn"
4797 if test "$no_cache" != 1; then
4798 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4799 fi
4800
4801 if test "$wxUSE_SPINBTN" = yes; then
4802 echo "$ac_t""yes" 1>&6
4803 else
4804 echo "$ac_t""no" 1>&6
4805 fi
4806
4807
56cfaa52 4808 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
24528b0c 4809echo "configure:4810: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4810 no_cache=0
4811 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4812if test "${enable_spinctrl+set}" = set; then
4813 enableval="$enable_spinctrl"
4814
4815 if test "$enableval" = yes; then
4816 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4817 else
4818 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4819 fi
4820
4821else
4822
4823 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4824 if test "x$LINE" != x ; then
4825 eval "DEFAULT_$LINE"
4826 else
4827 no_cache=1
4828 fi
4829
4830 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4831
4832fi
4833
4834
4835 eval "$ac_cv_use_spinctrl"
4836 if test "$no_cache" != 1; then
4837 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4838 fi
4839
4840 if test "$wxUSE_SPINCTRL" = yes; then
4841 echo "$ac_t""yes" 1>&6
4842 else
4843 echo "$ac_t""no" 1>&6
4844 fi
4845
4846
10f2d63a 4847 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
24528b0c 4848echo "configure:4849: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4849 no_cache=0
4850 # Check whether --enable-splitter or --disable-splitter was given.
4851if test "${enable_splitter+set}" = set; then
4852 enableval="$enable_splitter"
4853
4854 if test "$enableval" = yes; then
4855 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4856 else
4857 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4858 fi
4859
4860else
4861
4862 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4863 if test "x$LINE" != x ; then
4864 eval "DEFAULT_$LINE"
4865 else
4866 no_cache=1
4867 fi
4868
4869 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4870
4871fi
4872
4873
4874 eval "$ac_cv_use_splitter"
4875 if test "$no_cache" != 1; then
4876 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4877 fi
4878
4879 if test "$wxUSE_SPLITTER" = yes; then
4880 echo "$ac_t""yes" 1>&6
4881 else
4882 echo "$ac_t""no" 1>&6
4883 fi
4884
4885
4886 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
24528b0c 4887echo "configure:4888: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4888 no_cache=0
4889 # Check whether --enable-statbmp or --disable-statbmp was given.
4890if test "${enable_statbmp+set}" = set; then
4891 enableval="$enable_statbmp"
4892
4893 if test "$enableval" = yes; then
4894 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4895 else
4896 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4897 fi
4898
4899else
4900
4901 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4902 if test "x$LINE" != x ; then
4903 eval "DEFAULT_$LINE"
4904 else
4905 no_cache=1
4906 fi
4907
4908 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4909
4910fi
4911
4912
4913 eval "$ac_cv_use_statbmp"
4914 if test "$no_cache" != 1; then
4915 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4916 fi
4917
4918 if test "$wxUSE_STATBMP" = yes; then
4919 echo "$ac_t""yes" 1>&6
4920 else
4921 echo "$ac_t""no" 1>&6
4922 fi
4923
4924
4925 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
24528b0c 4926echo "configure:4927: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4927 no_cache=0
4928 # Check whether --enable-statbox or --disable-statbox was given.
4929if test "${enable_statbox+set}" = set; then
4930 enableval="$enable_statbox"
4931
4932 if test "$enableval" = yes; then
4933 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4934 else
4935 ac_cv_use_statbox='wxUSE_STATBOX=no'
4936 fi
4937
4938else
4939
4940 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4948
4949fi
4950
4951
4952 eval "$ac_cv_use_statbox"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_STATBOX" = yes; then
4958 echo "$ac_t""yes" 1>&6
4959 else
4960 echo "$ac_t""no" 1>&6
4961 fi
4962
4963
4964 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
24528b0c 4965echo "configure:4966: checking "for --enable-statline"" >&5
10f2d63a
VZ
4966 no_cache=0
4967 # Check whether --enable-statline or --disable-statline was given.
4968if test "${enable_statline+set}" = set; then
4969 enableval="$enable_statline"
4970
4971 if test "$enableval" = yes; then
4972 ac_cv_use_statline='wxUSE_STATLINE=yes'
4973 else
4974 ac_cv_use_statline='wxUSE_STATLINE=no'
4975 fi
4976
4977else
4978
4979 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4980 if test "x$LINE" != x ; then
4981 eval "DEFAULT_$LINE"
4982 else
4983 no_cache=1
4984 fi
4985
4986 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4987
4988fi
4989
4990
4991 eval "$ac_cv_use_statline"
4992 if test "$no_cache" != 1; then
4993 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4994 fi
4995
4996 if test "$wxUSE_STATLINE" = yes; then
4997 echo "$ac_t""yes" 1>&6
4998 else
4999 echo "$ac_t""no" 1>&6
5000 fi
5001
5002
5003 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
24528b0c 5004echo "configure:5005: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5005 no_cache=0
5006 # Check whether --enable-statusbar or --disable-statusbar was given.
5007if test "${enable_statusbar+set}" = set; then
5008 enableval="$enable_statusbar"
5009
5010 if test "$enableval" = yes; then
5011 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5012 else
5013 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5014 fi
5015
5016else
5017
5018 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5019 if test "x$LINE" != x ; then
5020 eval "DEFAULT_$LINE"
5021 else
5022 no_cache=1
5023 fi
5024
5025 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5026
5027fi
5028
5029
5030 eval "$ac_cv_use_statusbar"
5031 if test "$no_cache" != 1; then
5032 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5033 fi
5034
5035 if test "$wxUSE_STATUSBAR" = yes; then
5036 echo "$ac_t""yes" 1>&6
5037 else
5038 echo "$ac_t""no" 1>&6
5039 fi
5040
5041
5042 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
24528b0c 5043echo "configure:5044: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5044 no_cache=0
5045 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5046if test "${enable_tabdialog+set}" = set; then
5047 enableval="$enable_tabdialog"
5048
5049 if test "$enableval" = yes; then
5050 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5051 else
5052 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5053 fi
5054
5055else
5056
5057 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5058 if test "x$LINE" != x ; then
5059 eval "DEFAULT_$LINE"
5060 else
5061 no_cache=1
5062 fi
5063
5064 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5065
5066fi
5067
5068
5069 eval "$ac_cv_use_tabdialog"
5070 if test "$no_cache" != 1; then
5071 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5072 fi
5073
5074 if test "$wxUSE_TABDIALOG" = yes; then
5075 echo "$ac_t""yes" 1>&6
5076 else
5077 echo "$ac_t""no" 1>&6
5078 fi
5079
5080
5081 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
24528b0c 5082echo "configure:5083: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5083 no_cache=0
5084 # Check whether --enable-toolbar or --disable-toolbar was given.
5085if test "${enable_toolbar+set}" = set; then
5086 enableval="$enable_toolbar"
5087
5088 if test "$enableval" = yes; then
5089 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5090 else
5091 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5092 fi
5093
5094else
5095
5096 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5097 if test "x$LINE" != x ; then
5098 eval "DEFAULT_$LINE"
5099 else
5100 no_cache=1
5101 fi
5102
5103 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5104
5105fi
5106
5107
5108 eval "$ac_cv_use_toolbar"
5109 if test "$no_cache" != 1; then
5110 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5111 fi
5112
5113 if test "$wxUSE_TOOLBAR" = yes; then
5114 echo "$ac_t""yes" 1>&6
5115 else
5116 echo "$ac_t""no" 1>&6
5117 fi
5118
5119
360d6699 5120 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
24528b0c 5121echo "configure:5122: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5122 no_cache=0
5123 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5124if test "${enable_tbarnative+set}" = set; then
5125 enableval="$enable_tbarnative"
5126
5127 if test "$enableval" = yes; then
5128 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5129 else
5130 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5131 fi
5132
5133else
5134
5135 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5136 if test "x$LINE" != x ; then
5137 eval "DEFAULT_$LINE"
5138 else
5139 no_cache=1
5140 fi
5141
5142 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5143
5144fi
5145
5146
5147 eval "$ac_cv_use_tbarnative"
5148 if test "$no_cache" != 1; then
5149 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5150 fi
5151
5152 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5153 echo "$ac_t""yes" 1>&6
5154 else
5155 echo "$ac_t""no" 1>&6
5156 fi
5157
5158
5159 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
24528b0c 5160echo "configure:5161: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5161 no_cache=0
5162 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5163if test "${enable_tbarsmpl+set}" = set; then
5164 enableval="$enable_tbarsmpl"
5165
5166 if test "$enableval" = yes; then
5167 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5168 else
5169 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5170 fi
5171
5172else
5173
5174 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5175 if test "x$LINE" != x ; then
5176 eval "DEFAULT_$LINE"
5177 else
5178 no_cache=1
5179 fi
5180
5181 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5182
5183fi
5184
5185
5186 eval "$ac_cv_use_tbarsmpl"
5187 if test "$no_cache" != 1; then
5188 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5189 fi
5190
5191 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5192 echo "$ac_t""yes" 1>&6
5193 else
5194 echo "$ac_t""no" 1>&6
5195 fi
5196
5197
10f2d63a 5198 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
24528b0c 5199echo "configure:5200: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5200 no_cache=0
5201 # Check whether --enable-treectrl or --disable-treectrl was given.
5202if test "${enable_treectrl+set}" = set; then
5203 enableval="$enable_treectrl"
5204
5205 if test "$enableval" = yes; then
5206 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5207 else
5208 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5209 fi
5210
5211else
5212
5213 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5214 if test "x$LINE" != x ; then
5215 eval "DEFAULT_$LINE"
5216 else
5217 no_cache=1
5218 fi
5219
5220 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5221
5222fi
5223
5224
5225 eval "$ac_cv_use_treectrl"
5226 if test "$no_cache" != 1; then
5227 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5228 fi
5229
5230 if test "$wxUSE_TREECTRL" = yes; then
5231 echo "$ac_t""yes" 1>&6
5232 else
5233 echo "$ac_t""no" 1>&6
5234 fi
5235
5236
5237
5238
5239 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
24528b0c 5240echo "configure:5241: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5241 no_cache=0
5242 # Check whether --enable-commondlg or --disable-commondlg was given.
5243if test "${enable_commondlg+set}" = set; then
5244 enableval="$enable_commondlg"
5245
5246 if test "$enableval" = yes; then
5247 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5248 else
5249 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5250 fi
5251
5252else
5253
5254 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5255 if test "x$LINE" != x ; then
5256 eval "DEFAULT_$LINE"
5257 else
5258 no_cache=1
5259 fi
5260
5261 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5262
5263fi
5264
5265
5266 eval "$ac_cv_use_commondlg"
5267 if test "$no_cache" != 1; then
5268 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5269 fi
5270
5271 if test "$wxUSE_COMMONDLGS" = yes; then
5272 echo "$ac_t""yes" 1>&6
5273 else
5274 echo "$ac_t""no" 1>&6
5275 fi
5276
5277
5278 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
24528b0c 5279echo "configure:5280: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5280 no_cache=0
5281 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5282if test "${enable_dirdlg+set}" = set; then
5283 enableval="$enable_dirdlg"
5284
5285 if test "$enableval" = yes; then
5286 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5287 else
5288 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5289 fi
5290
5291else
5292
5293 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5294 if test "x$LINE" != x ; then
5295 eval "DEFAULT_$LINE"
5296 else
5297 no_cache=1
5298 fi
5299
5300 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5301
5302fi
5303
5304
5305 eval "$ac_cv_use_dirdlg"
5306 if test "$no_cache" != 1; then
5307 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5308 fi
5309
5310 if test "$wxUSE_DIRDLG" = yes; then
5311 echo "$ac_t""yes" 1>&6
5312 else
5313 echo "$ac_t""no" 1>&6
5314 fi
5315
5316
5317 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
24528b0c 5318echo "configure:5319: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5319 no_cache=0
5320 # Check whether --enable-textdlg or --disable-textdlg was given.
5321if test "${enable_textdlg+set}" = set; then
5322 enableval="$enable_textdlg"
5323
5324 if test "$enableval" = yes; then
5325 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5326 else
5327 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5328 fi
5329
5330else
5331
5332 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5333 if test "x$LINE" != x ; then
5334 eval "DEFAULT_$LINE"
5335 else
5336 no_cache=1
5337 fi
5338
5339 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5340
5341fi
5342
5343
5344 eval "$ac_cv_use_textdlg"
5345 if test "$no_cache" != 1; then
5346 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5347 fi
5348
5349 if test "$wxUSE_TEXTDLG" = yes; then
5350 echo "$ac_t""yes" 1>&6
5351 else
5352 echo "$ac_t""no" 1>&6
5353 fi
5354
5355
5356 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
24528b0c 5357echo "configure:5358: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5358 no_cache=0
5359 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5360if test "${enable_tipdlg+set}" = set; then
5361 enableval="$enable_tipdlg"
5362
5363 if test "$enableval" = yes; then
5364 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5365 else
5366 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5367 fi
5368
5369else
5370
5371 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5372 if test "x$LINE" != x ; then
5373 eval "DEFAULT_$LINE"
5374 else
5375 no_cache=1
5376 fi
5377
5378 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5379
5380fi
5381
5382
5383 eval "$ac_cv_use_tipdlg"
5384 if test "$no_cache" != 1; then
5385 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5386 fi
5387
5388 if test "$wxUSE_STARTUP_TIPS" = yes; then
5389 echo "$ac_t""yes" 1>&6
5390 else
5391 echo "$ac_t""no" 1>&6
5392 fi
5393
5394
5395 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
24528b0c 5396echo "configure:5397: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5397 no_cache=0
5398 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5399if test "${enable_progressdlg+set}" = set; then
5400 enableval="$enable_progressdlg"
5401
5402 if test "$enableval" = yes; then
5403 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5404 else
5405 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5406 fi
5407
5408else
5409
5410 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5411 if test "x$LINE" != x ; then
5412 eval "DEFAULT_$LINE"
5413 else
5414 no_cache=1
5415 fi
5416
5417 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5418
5419fi
5420
5421
5422 eval "$ac_cv_use_progressdlg"
5423 if test "$no_cache" != 1; then
5424 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5425 fi
5426
5427 if test "$wxUSE_PROGRESSDLG" = yes; then
5428 echo "$ac_t""yes" 1>&6
5429 else
5430 echo "$ac_t""no" 1>&6
5431 fi
5432
5433
5434 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
24528b0c 5435echo "configure:5436: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5436 no_cache=0
5437 # Check whether --enable-miniframe or --disable-miniframe was given.
5438if test "${enable_miniframe+set}" = set; then
5439 enableval="$enable_miniframe"
5440
5441 if test "$enableval" = yes; then
5442 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5443 else
5444 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5445 fi
5446
5447else
5448
5449 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5450 if test "x$LINE" != x ; then
5451 eval "DEFAULT_$LINE"
5452 else
5453 no_cache=1
5454 fi
5455
5456 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5457
5458fi
5459
5460
5461 eval "$ac_cv_use_miniframe"
5462 if test "$no_cache" != 1; then
5463 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5464 fi
5465
5466 if test "$wxUSE_MINIFRAME" = yes; then
5467 echo "$ac_t""yes" 1>&6
5468 else
5469 echo "$ac_t""no" 1>&6
5470 fi
5471
5472
5473 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
24528b0c 5474echo "configure:5475: checking "for --enable-html"" >&5
10f2d63a
VZ
5475 no_cache=0
5476 # Check whether --enable-html or --disable-html was given.
5477if test "${enable_html+set}" = set; then
5478 enableval="$enable_html"
5479
5480 if test "$enableval" = yes; then
5481 ac_cv_use_html='wxUSE_HTML=yes'
5482 else
5483 ac_cv_use_html='wxUSE_HTML=no'
5484 fi
5485
5486else
5487
5488 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5489 if test "x$LINE" != x ; then
5490 eval "DEFAULT_$LINE"
5491 else
5492 no_cache=1
5493 fi
5494
5495 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5496
5497fi
5498
5499
5500 eval "$ac_cv_use_html"
5501 if test "$no_cache" != 1; then
5502 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5503 fi
5504
5505 if test "$wxUSE_HTML" = yes; then
5506 echo "$ac_t""yes" 1>&6
5507 else
5508 echo "$ac_t""no" 1>&6
5509 fi
5510
5511
5512 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
24528b0c 5513echo "configure:5514: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5514 no_cache=0
5515 # Check whether --enable-tooltips or --disable-tooltips was given.
5516if test "${enable_tooltips+set}" = set; then
5517 enableval="$enable_tooltips"
5518
5519 if test "$enableval" = yes; then
5520 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5521 else
5522 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5523 fi
5524
5525else
5526
5527 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5528 if test "x$LINE" != x ; then
5529 eval "DEFAULT_$LINE"
5530 else
5531 no_cache=1
5532 fi
5533
5534 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5535
5536fi
5537
5538
5539 eval "$ac_cv_use_tooltips"
5540 if test "$no_cache" != 1; then
5541 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5542 fi
5543
5544 if test "$wxUSE_TOOLTIPS" = yes; then
5545 echo "$ac_t""yes" 1>&6
5546 else
5547 echo "$ac_t""no" 1>&6
5548 fi
5549
5550
5551 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
24528b0c 5552echo "configure:5553: checking "for --enable-splines"" >&5
10f2d63a
VZ
5553 no_cache=0
5554 # Check whether --enable-splines or --disable-splines was given.
5555if test "${enable_splines+set}" = set; then
5556 enableval="$enable_splines"
5557
5558 if test "$enableval" = yes; then
5559 ac_cv_use_splines='wxUSE_SPLINES=yes'
5560 else
5561 ac_cv_use_splines='wxUSE_SPLINES=no'
5562 fi
5563
5564else
5565
5566 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5567 if test "x$LINE" != x ; then
5568 eval "DEFAULT_$LINE"
5569 else
5570 no_cache=1
5571 fi
5572
5573 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5574
5575fi
5576
5577
5578 eval "$ac_cv_use_splines"
5579 if test "$no_cache" != 1; then
5580 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5581 fi
5582
5583 if test "$wxUSE_SPLINES" = yes; then
5584 echo "$ac_t""yes" 1>&6
5585 else
5586 echo "$ac_t""no" 1>&6
5587 fi
5588
5589
5590 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
24528b0c 5591echo "configure:5592: checking "for --enable-validators"" >&5
10f2d63a
VZ
5592 no_cache=0
5593 # Check whether --enable-validators or --disable-validators was given.
5594if test "${enable_validators+set}" = set; then
5595 enableval="$enable_validators"
5596
5597 if test "$enableval" = yes; then
5598 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5599 else
5600 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5601 fi
5602
5603else
5604
5605 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5606 if test "x$LINE" != x ; then
5607 eval "DEFAULT_$LINE"
5608 else
5609 no_cache=1
5610 fi
5611
5612 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5613
5614fi
5615
5616
5617 eval "$ac_cv_use_validators"
5618 if test "$no_cache" != 1; then
5619 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5620 fi
5621
5622 if test "$wxUSE_VALIDATORS" = yes; then
5623 echo "$ac_t""yes" 1>&6
5624 else
5625 echo "$ac_t""no" 1>&6
5626 fi
5627
5628
5629 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
24528b0c 5630echo "configure:5631: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5631 no_cache=0
5632 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5633if test "${enable_busyinfo+set}" = set; then
5634 enableval="$enable_busyinfo"
5635
5636 if test "$enableval" = yes; then
5637 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5638 else
5639 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5640 fi
5641
5642else
5643
5644 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5645 if test "x$LINE" != x ; then
5646 eval "DEFAULT_$LINE"
5647 else
5648 no_cache=1
5649 fi
5650
5651 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5652
5653fi
5654
5655
5656 eval "$ac_cv_use_busyinfo"
5657 if test "$no_cache" != 1; then
5658 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5659 fi
5660
5661 if test "$wxUSE_BUSYINFO" = yes; then
5662 echo "$ac_t""yes" 1>&6
5663 else
5664 echo "$ac_t""no" 1>&6
5665 fi
5666
5667
9b33fe02 5668 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
24528b0c 5669echo "configure:5670: checking "for --enable-plot"" >&5
9b33fe02
VZ
5670 no_cache=0
5671 # Check whether --enable-plot or --disable-plot was given.
5672if test "${enable_plot+set}" = set; then
5673 enableval="$enable_plot"
5674
5675 if test "$enableval" = yes; then
5676 ac_cv_use_plot='wxUSE_PLOT=yes'
5677 else
5678 ac_cv_use_plot='wxUSE_PLOT=no'
5679 fi
5680
5681else
5682
5683 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5684 if test "x$LINE" != x ; then
5685 eval "DEFAULT_$LINE"
5686 else
5687 no_cache=1
5688 fi
5689
5690 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5691
5692fi
5693
5694
5695 eval "$ac_cv_use_plot"
5696 if test "$no_cache" != 1; then
5697 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5698 fi
5699
5700 if test "$wxUSE_PLOT" = yes; then
5701 echo "$ac_t""yes" 1>&6
5702 else
5703 echo "$ac_t""no" 1>&6
5704 fi
5705
5706
10f2d63a
VZ
5707
5708
5709 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
24528b0c 5710echo "configure:5711: checking "for --enable-gif"" >&5
10f2d63a
VZ
5711 no_cache=0
5712 # Check whether --enable-gif or --disable-gif was given.
5713if test "${enable_gif+set}" = set; then
5714 enableval="$enable_gif"
5715
5716 if test "$enableval" = yes; then
5717 ac_cv_use_gif='wxUSE_GIF=yes'
5718 else
5719 ac_cv_use_gif='wxUSE_GIF=no'
5720 fi
5721
5722else
5723
5724 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5725 if test "x$LINE" != x ; then
5726 eval "DEFAULT_$LINE"
5727 else
5728 no_cache=1
5729 fi
5730
5731 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5732
5733fi
5734
5735
5736 eval "$ac_cv_use_gif"
5737 if test "$no_cache" != 1; then
5738 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5739 fi
5740
5741 if test "$wxUSE_GIF" = yes; then
5742 echo "$ac_t""yes" 1>&6
5743 else
5744 echo "$ac_t""no" 1>&6
5745 fi
5746
5747
5748 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
24528b0c 5749echo "configure:5750: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5750 no_cache=0
5751 # Check whether --enable-pcx or --disable-pcx was given.
5752if test "${enable_pcx+set}" = set; then
5753 enableval="$enable_pcx"
5754
5755 if test "$enableval" = yes; then
5756 ac_cv_use_pcx='wxUSE_PCX=yes'
5757 else
5758 ac_cv_use_pcx='wxUSE_PCX=no'
5759 fi
5760
5761else
5762
5763 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5764 if test "x$LINE" != x ; then
5765 eval "DEFAULT_$LINE"
5766 else
5767 no_cache=1
5768 fi
5769
5770 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5771
5772fi
5773
5774
5775 eval "$ac_cv_use_pcx"
5776 if test "$no_cache" != 1; then
5777 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5778 fi
5779
5780 if test "$wxUSE_PCX" = yes; then
5781 echo "$ac_t""yes" 1>&6
5782 else
5783 echo "$ac_t""no" 1>&6
5784 fi
5785
5786
5787 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
24528b0c 5788echo "configure:5789: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5789 no_cache=0
5790 # Check whether --enable-pnm or --disable-pnm was given.
5791if test "${enable_pnm+set}" = set; then
5792 enableval="$enable_pnm"
5793
5794 if test "$enableval" = yes; then
5795 ac_cv_use_pnm='wxUSE_PNM=yes'
5796 else
5797 ac_cv_use_pnm='wxUSE_PNM=no'
5798 fi
5799
5800else
5801
5802 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5803 if test "x$LINE" != x ; then
5804 eval "DEFAULT_$LINE"
5805 else
5806 no_cache=1
5807 fi
5808
5809 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5810
5811fi
5812
5813
5814 eval "$ac_cv_use_pnm"
5815 if test "$no_cache" != 1; then
5816 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5817 fi
5818
5819 if test "$wxUSE_PNM" = yes; then
5820 echo "$ac_t""yes" 1>&6
5821 else
5822 echo "$ac_t""no" 1>&6
5823 fi
5824
5825
b12915c1
VZ
5826fi
5827
10f2d63a
VZ
5828
5829 echo "saving argument cache $wx_arg_cache_file"
5830 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5831
5832
5833
5834echo $ac_n "checking for toolkit""... $ac_c" 1>&6
24528b0c 5835echo "configure:5836: checking for toolkit" >&5
10f2d63a
VZ
5836
5837if test "$wxUSE_GUI" = "yes"; then
5838
b12915c1
VZ
5839if test "$USE_BEOS" = 1; then
5840 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5841fi
5842
10f2d63a
VZ
5843if test "$TOOLKIT_GIVEN" = 1; then
5844 for toolkit in `echo $ALL_TOOLKITS`; do
5845 var=wxUSE_$toolkit
5846 eval "value=\$${var}"
5847 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5848 done
5849else
5850 for toolkit in `echo $ALL_TOOLKITS`; do
5851 if test "$has_toolkit_in_cache" != 1; then
5852 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5853 else
5854 var=DEFAULT_wxUSE_$toolkit
5855 fi
5856 eval "wxUSE_$toolkit=\$${var}"
5857 done
5858fi
5859
ec14dd32 5860NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 5861
ec14dd32
VZ
5862case "${host}" in
5863 *-pc-os2_emx )
5864 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5865 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5866 LEX_STEM="lexyy"
5867 ;;
5868 *)
5869 PATH_IFS=':'
5870 LEX_STEM="lex.yy"
5871 ;;
5872esac
10f2d63a
VZ
5873
5874case "$NUM_TOOLKITS" in
5875 1)
5876 ;;
5877 0)
5878 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5879 ;;
5880 *)
5881 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5882esac
5883
5884for toolkit in `echo $ALL_TOOLKITS`; do
5885 var=wxUSE_$toolkit
5886 eval "value=\$${var}"
5887 if test "x$value" != x; then
5888 cache_var=CACHE_$toolkit
5889 eval "cache=\$${cache_var}"
5890 if test "$cache" = 1; then
5891 echo "$var=$value" >> ${wx_arg_cache_file}
5892 fi
5893 if test "$value" = 1; then
5894 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5895 fi
5896 fi
5897done
5898
5899else
cf27ef00 5900 PATH_IFS=':'
10f2d63a
VZ
5901 echo "$ac_t""base only" 1>&6
5902fi
5903
5904
5905cat > confcache <<\EOF
5906# This file is a shell script that caches the results of configure
5907# tests run on this system so they can be shared between configure
5908# scripts and configure runs. It is not useful on other systems.
5909# If it contains results you don't want to keep, you may remove or edit it.
5910#
5911# By default, configure uses ./config.cache as the cache file,
5912# creating it if it does not exist already. You can give configure
5913# the --cache-file=FILE option to use a different cache file; that is
5914# what configure does when it calls configure scripts in
5915# subdirectories, so they share the cache.
5916# Giving --cache-file=/dev/null disables caching, for debugging configure.
5917# config.status only pays attention to the cache file if you give it the
5918# --recheck option to rerun configure.
5919#
5920EOF
5921# The following way of writing the cache mishandles newlines in values,
5922# but we know of no workaround that is simple, portable, and efficient.
5923# So, don't put newlines in cache variables' values.
5924# Ultrix sh set writes to stderr and can't be redirected directly,
5925# and sets the high bit in the cache file unless we assign to the vars.
5926(set) 2>&1 |
5927 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5928 *ac_space=\ *)
5929 # `set' does not quote correctly, so add quotes (double-quote substitution
5930 # turns \\\\ into \\, and sed turns \\ into \).
5931 sed -n \
5932 -e "s/'/'\\\\''/g" \
5933 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5934 ;;
5935 *)
5936 # `set' quotes correctly as required by POSIX, so do not add quotes.
5937 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5938 ;;
5939 esac >> confcache
5940if cmp -s $cache_file confcache; then
5941 :
5942else
5943 if test -w $cache_file; then
5944 echo "updating cache $cache_file"
5945 cat confcache > $cache_file
5946 else
5947 echo "not updating unwritable cache $cache_file"
5948 fi
5949fi
5950rm -f confcache
5951
5952
5953if eval "test $host != $build"; then
5954 if eval "test $host_alias != NONE"; then
5955 CC=$host_alias-gcc
5956 CXX=$host_alias-c++
5957 AR=$host_alias-ar
5958 RANLIB=$host_alias-ranlib
5959 DLLTOOL=$host_alias-dlltool
5960 LD=$host_alias-ld
5961 NM=$host_alias-nm
5962 STRIP=$host_alias-strip
5963 fi
5964fi
5965
5966# Extract the first word of "gcc", so it can be a program name with args.
5967set dummy gcc; ac_word=$2
5968echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24528b0c 5969echo "configure:5970: checking for $ac_word" >&5
10f2d63a
VZ
5970if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5971 echo $ac_n "(cached) $ac_c" 1>&6
5972else
5973 if test -n "$CC"; then
5974 ac_cv_prog_CC="$CC" # Let the user override the test.
5975else
5976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5977 ac_dummy="$PATH"
5978 for ac_dir in $ac_dummy; do
5979 test -z "$ac_dir" && ac_dir=.
5980 if test -f $ac_dir/$ac_word; then
5981 ac_cv_prog_CC="gcc"
5982 break
5983 fi
5984 done
5985 IFS="$ac_save_ifs"
5986fi
5987fi
5988CC="$ac_cv_prog_CC"
5989if test -n "$CC"; then
5990 echo "$ac_t""$CC" 1>&6
5991else
5992 echo "$ac_t""no" 1>&6
5993fi
5994
5995if test -z "$CC"; then
5996 # Extract the first word of "cc", so it can be a program name with args.
5997set dummy cc; ac_word=$2
5998echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24528b0c 5999echo "configure:6000: checking for $ac_word" >&5
10f2d63a
VZ
6000if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6001 echo $ac_n "(cached) $ac_c" 1>&6
6002else
6003 if test -n "$CC"; then
6004 ac_cv_prog_CC="$CC" # Let the user override the test.
6005else
6006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6007 ac_prog_rejected=no
6008 ac_dummy="$PATH"
6009 for ac_dir in $ac_dummy; do
6010 test -z "$ac_dir" && ac_dir=.
6011 if test -f $ac_dir/$ac_word; then
6012 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6013 ac_prog_rejected=yes
6014 continue
6015 fi
6016 ac_cv_prog_CC="cc"
6017 break
6018 fi
6019 done
6020 IFS="$ac_save_ifs"
6021if test $ac_prog_rejected = yes; then
6022 # We found a bogon in the path, so make sure we never use it.
6023 set dummy $ac_cv_prog_CC
6024 shift
6025 if test $# -gt 0; then
6026 # We chose a different compiler from the bogus one.
6027 # However, it has the same basename, so the bogon will be chosen
6028 # first if we set CC to just the basename; use the full file name.
6029 shift
6030 set dummy "$ac_dir/$ac_word" "$@"
6031 shift
6032 ac_cv_prog_CC="$@"
6033 fi
6034fi
6035fi
6036fi
6037CC="$ac_cv_prog_CC"
6038if test -n "$CC"; then
6039 echo "$ac_t""$CC" 1>&6
6040else
6041 echo "$ac_t""no" 1>&6
6042fi
6043
6044 if test -z "$CC"; then
6045 case "`uname -s`" in
6046 *win32* | *WIN32*)
6047 # Extract the first word of "cl", so it can be a program name with args.
6048set dummy cl; ac_word=$2
6049echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24528b0c 6050echo "configure:6051: checking for $ac_word" >&5
10f2d63a
VZ
6051if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6052 echo $ac_n "(cached) $ac_c" 1>&6
6053else
6054 if test -n "$CC"; then
6055 ac_cv_prog_CC="$CC" # Let the user override the test.
6056else
6057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6058 ac_dummy="$PATH"
6059 for ac_dir in $ac_dummy; do
6060 test -z "$ac_dir" && ac_dir=.
6061 if test -f $ac_dir/$ac_word; then
6062 ac_cv_prog_CC="cl"
6063 break
6064 fi
6065 done
6066 IFS="$ac_save_ifs"
6067fi
6068fi
6069CC="$ac_cv_prog_CC"
6070if test -n "$CC"; then
6071 echo "$ac_t""$CC" 1>&6
6072else
6073 echo "$ac_t""no" 1>&6
6074fi
6075 ;;
6076 esac
6077 fi
6078 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6079fi
6080
6081echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
24528b0c 6082echo "configure:6083: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6083
6084ac_ext=c
6085# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6086ac_cpp='$CPP $CPPFLAGS'
6087ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6088ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6089cross_compiling=$ac_cv_prog_cc_cross
6090
6091cat > conftest.$ac_ext << EOF
6092
24528b0c 6093#line 6094 "configure"
10f2d63a
VZ
6094#include "confdefs.h"
6095
6096main(){return(0);}
6097EOF
24528b0c 6098if { (eval echo configure:6099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6099 ac_cv_prog_cc_works=yes
6100 # If we can't run a trivial program, we are probably using a cross compiler.
6101 if (./conftest; exit) 2>/dev/null; then
6102 ac_cv_prog_cc_cross=no
6103 else
6104 ac_cv_prog_cc_cross=yes
6105 fi
6106else
6107 echo "configure: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6109 ac_cv_prog_cc_works=no
6110fi
6111rm -fr conftest*
6112ac_ext=c
6113# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6114ac_cpp='$CPP $CPPFLAGS'
6115ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6116ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6117cross_compiling=$ac_cv_prog_cc_cross
6118
6119echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6120if test $ac_cv_prog_cc_works = no; then
6121 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6122fi
6123echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
24528b0c 6124echo "configure:6125: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6125echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6126cross_compiling=$ac_cv_prog_cc_cross
6127
6128echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
24528b0c 6129echo "configure:6130: checking whether we are using GNU C" >&5
10f2d63a
VZ
6130if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6131 echo $ac_n "(cached) $ac_c" 1>&6
6132else
6133 cat > conftest.c <<EOF
6134#ifdef __GNUC__
6135 yes;
6136#endif
6137EOF
24528b0c 6138if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6139 ac_cv_prog_gcc=yes
6140else
6141 ac_cv_prog_gcc=no
6142fi
6143fi
6144
6145echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6146
6147if test $ac_cv_prog_gcc = yes; then
6148 GCC=yes
6149else
6150 GCC=
6151fi
6152
6153ac_test_CFLAGS="${CFLAGS+set}"
6154ac_save_CFLAGS="$CFLAGS"
6155CFLAGS=
6156echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
24528b0c 6157echo "configure:6158: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6158if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6159 echo $ac_n "(cached) $ac_c" 1>&6
6160else
6161 echo 'void f(){}' > conftest.c
6162if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6163 ac_cv_prog_cc_g=yes
6164else
6165 ac_cv_prog_cc_g=no
6166fi
6167rm -f conftest*
6168
6169fi
6170
6171echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6172if test "$ac_test_CFLAGS" = set; then
6173 CFLAGS="$ac_save_CFLAGS"
6174elif test $ac_cv_prog_cc_g = yes; then
6175 if test "$GCC" = yes; then
6176 CFLAGS="-g -O2"
6177 else
6178 CFLAGS="-g"
6179 fi
6180else
6181 if test "$GCC" = yes; then
6182 CFLAGS="-O2"
6183 else
6184 CFLAGS=
6185 fi
6186fi
6187
6188
6189CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6190
6191echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
24528b0c 6192echo "configure:6193: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6193# On Suns, sometimes $CPP names a directory.
6194if test -n "$CPP" && test -d "$CPP"; then
6195 CPP=
6196fi
6197if test -z "$CPP"; then
6198if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6200else
6201 # This must be in double quotes, not single quotes, because CPP may get
6202 # substituted into the Makefile and "${CC-cc}" will confuse make.
6203 CPP="${CC-cc} -E"
6204 # On the NeXT, cc -E runs the code through the compiler's parser,
6205 # not just through cpp.
6206 cat > conftest.$ac_ext <<EOF
24528b0c 6207#line 6208 "configure"
10f2d63a
VZ
6208#include "confdefs.h"
6209#include <assert.h>
6210Syntax Error
6211EOF
6212ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 6213{ (eval echo configure:6214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6214ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6215if test -z "$ac_err"; then
6216 :
6217else
6218 echo "$ac_err" >&5
6219 echo "configure: failed program was:" >&5
6220 cat conftest.$ac_ext >&5
6221 rm -rf conftest*
6222 CPP="${CC-cc} -E -traditional-cpp"
6223 cat > conftest.$ac_ext <<EOF
24528b0c 6224#line 6225 "configure"
10f2d63a
VZ
6225#include "confdefs.h"
6226#include <assert.h>
6227Syntax Error
6228EOF
6229ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 6230{ (eval echo configure:6231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6231ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6232if test -z "$ac_err"; then
6233 :
6234else
6235 echo "$ac_err" >&5
6236 echo "configure: failed program was:" >&5
6237 cat conftest.$ac_ext >&5
6238 rm -rf conftest*
6239 CPP="${CC-cc} -nologo -E"
6240 cat > conftest.$ac_ext <<EOF
24528b0c 6241#line 6242 "configure"
10f2d63a
VZ
6242#include "confdefs.h"
6243#include <assert.h>
6244Syntax Error
6245EOF
6246ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 6247{ (eval echo configure:6248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6248ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6249if test -z "$ac_err"; then
6250 :
6251else
6252 echo "$ac_err" >&5
6253 echo "configure: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6255 rm -rf conftest*
6256 CPP=/lib/cpp
6257fi
6258rm -f conftest*
6259fi
6260rm -f conftest*
6261fi
6262rm -f conftest*
6263 ac_cv_prog_CPP="$CPP"
6264fi
6265 CPP="$ac_cv_prog_CPP"
6266else
6267 ac_cv_prog_CPP="$CPP"
6268fi
6269echo "$ac_t""$CPP" 1>&6
6270
6271
6272if test $ac_cv_prog_gcc = yes; then
6273 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
24528b0c 6274echo "configure:6275: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6275if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6276 echo $ac_n "(cached) $ac_c" 1>&6
6277else
6278 ac_pattern="Autoconf.*'x'"
6279 cat > conftest.$ac_ext <<EOF
24528b0c 6280#line 6281 "configure"
10f2d63a
VZ
6281#include "confdefs.h"
6282#include <sgtty.h>
6283Autoconf TIOCGETP
6284EOF
6285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6286 egrep "$ac_pattern" >/dev/null 2>&1; then
6287 rm -rf conftest*
6288 ac_cv_prog_gcc_traditional=yes
6289else
6290 rm -rf conftest*
6291 ac_cv_prog_gcc_traditional=no
6292fi
6293rm -f conftest*
6294
6295
6296 if test $ac_cv_prog_gcc_traditional = no; then
6297 cat > conftest.$ac_ext <<EOF
24528b0c 6298#line 6299 "configure"
10f2d63a
VZ
6299#include "confdefs.h"
6300#include <termio.h>
6301Autoconf TCGETA
6302EOF
6303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6304 egrep "$ac_pattern" >/dev/null 2>&1; then
6305 rm -rf conftest*
6306 ac_cv_prog_gcc_traditional=yes
6307fi
6308rm -f conftest*
6309
6310 fi
6311fi
6312
6313echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6314 if test $ac_cv_prog_gcc_traditional = yes; then
6315 CC="$CC -traditional"
6316 fi
6317fi
6318
6319
6320
6321ac_ext=C
6322# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6323ac_cpp='$CXXCPP $CPPFLAGS'
6324ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6325ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6326cross_compiling=$ac_cv_prog_cxx_cross
6327
6328
6329for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6330do
6331# Extract the first word of "$ac_prog", so it can be a program name with args.
6332set dummy $ac_prog; ac_word=$2
6333echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24528b0c 6334echo "configure:6335: checking for $ac_word" >&5
10f2d63a
VZ
6335if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6336 echo $ac_n "(cached) $ac_c" 1>&6
6337else
6338 if test -n "$CXX"; then
6339 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6340else
6341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6342 ac_dummy="$PATH"
6343 for ac_dir in $ac_dummy; do
6344 test -z "$ac_dir" && ac_dir=.
6345 if test -f $ac_dir/$ac_word; then
6346 ac_cv_prog_CXX="$ac_prog"
6347 break
6348 fi
6349 done
6350 IFS="$ac_save_ifs"
6351fi
6352fi
6353CXX="$ac_cv_prog_CXX"
6354if test -n "$CXX"; then
6355 echo "$ac_t""$CXX" 1>&6
6356else
6357 echo "$ac_t""no" 1>&6
6358fi
6359
6360test -n "$CXX" && break
6361done
6362test -n "$CXX" || CXX="gcc"
6363
6364
6365echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
24528b0c 6366echo "configure:6367: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6367
6368ac_ext=C
6369# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6370ac_cpp='$CXXCPP $CPPFLAGS'
6371ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6372ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6373cross_compiling=$ac_cv_prog_cxx_cross
6374
6375cat > conftest.$ac_ext << EOF
6376
24528b0c 6377#line 6378 "configure"
10f2d63a
VZ
6378#include "confdefs.h"
6379
6380int main(){return(0);}
6381EOF
24528b0c 6382if { (eval echo configure:6383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6383 ac_cv_prog_cxx_works=yes
6384 # If we can't run a trivial program, we are probably using a cross compiler.
6385 if (./conftest; exit) 2>/dev/null; then
6386 ac_cv_prog_cxx_cross=no
6387 else
6388 ac_cv_prog_cxx_cross=yes
6389 fi
6390else
6391 echo "configure: failed program was:" >&5
6392 cat conftest.$ac_ext >&5
6393 ac_cv_prog_cxx_works=no
6394fi
6395rm -fr conftest*
6396ac_ext=C
6397# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6398ac_cpp='$CXXCPP $CPPFLAGS'
6399ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6400ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6401cross_compiling=$ac_cv_prog_cxx_cross
6402
6403echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6404if test $ac_cv_prog_cxx_works = no; then
6405 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6406fi
6407echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
24528b0c 6408echo "configure:6409: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6409echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6410cross_compiling=$ac_cv_prog_cxx_cross
6411
6412echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
24528b0c 6413echo "configure:6414: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6414if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6415 echo $ac_n "(cached) $ac_c" 1>&6
6416else
6417 cat > conftest.C <<EOF
6418#ifdef __GNUC__
6419 yes;
6420#endif
6421EOF
24528b0c 6422if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6423 ac_cv_prog_gxx=yes
6424else
6425 ac_cv_prog_gxx=no
6426fi
6427fi
6428
6429echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6430
6431if test $ac_cv_prog_gxx = yes; then
6432 GXX=yes
6433else
6434 GXX=
6435fi
6436
6437ac_test_CXXFLAGS="${CXXFLAGS+set}"
6438ac_save_CXXFLAGS="$CXXFLAGS"
6439CXXFLAGS=
6440echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
24528b0c 6441echo "configure:6442: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6442if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6444else
6445 echo 'void f(){}' > conftest.cc
6446if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6447 ac_cv_prog_cxx_g=yes
6448else
6449 ac_cv_prog_cxx_g=no
6450fi
6451rm -f conftest*
6452
6453fi
6454
6455echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6456if test "$ac_test_CXXFLAGS" = set; then
6457 CXXFLAGS="$ac_save_CXXFLAGS"
6458elif test $ac_cv_prog_cxx_g = yes; then
6459 if test "$GXX" = yes; then
6460 CXXFLAGS="-g -O2"
6461 else
6462 CXXFLAGS="-g"
6463 fi
6464else
6465 if test "$GXX" = yes; then
6466 CXXFLAGS="-O2"
6467 else
6468 CXXFLAGS=
6469 fi
6470fi
6471
6472
6473echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
24528b0c 6474echo "configure:6475: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6475if test -z "$CXXCPP"; then
6476if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6477 echo $ac_n "(cached) $ac_c" 1>&6
6478else
6479 ac_ext=C
6480# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6481ac_cpp='$CXXCPP $CPPFLAGS'
6482ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6483ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6484cross_compiling=$ac_cv_prog_cxx_cross
6485 CXXCPP="${CXX-g++} -E"
6486 cat > conftest.$ac_ext <<EOF
24528b0c 6487#line 6488 "configure"
10f2d63a
VZ
6488#include "confdefs.h"
6489#include <stdlib.h>
6490EOF
6491ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 6492{ (eval echo configure:6493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6493ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6494if test -z "$ac_err"; then
6495 :
6496else
6497 echo "$ac_err" >&5
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6500 rm -rf conftest*
6501 CXXCPP=/lib/cpp
6502fi
6503rm -f conftest*
6504 ac_cv_prog_CXXCPP="$CXXCPP"
6505ac_ext=C
6506# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6507ac_cpp='$CXXCPP $CPPFLAGS'
6508ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6509ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6510cross_compiling=$ac_cv_prog_cxx_cross
6511fi
6512fi
6513CXXCPP="$ac_cv_prog_CXXCPP"
6514echo "$ac_t""$CXXCPP" 1>&6
6515
6516
6517CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6518
6519ac_ext=c
6520# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6521ac_cpp='$CPP $CPPFLAGS'
6522ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6523ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6524cross_compiling=$ac_cv_prog_cc_cross
6525
6526
6527# Extract the first word of "ranlib", so it can be a program name with args.
6528set dummy ranlib; ac_word=$2
6529echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24528b0c 6530echo "configure:6531: checking for $ac_word" >&5
10f2d63a
VZ
6531if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6533else
6534 if test -n "$RANLIB"; then
6535 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6536else
6537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6538 ac_dummy="$PATH"
6539 for ac_dir in $ac_dummy; do
6540 test -z "$ac_dir" && ac_dir=.
6541 if test -f $ac_dir/$ac_word; then
6542 ac_cv_prog_RANLIB="ranlib"
6543 break
6544 fi
6545 done
6546 IFS="$ac_save_ifs"
6547 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6548fi
6549fi
6550RANLIB="$ac_cv_prog_RANLIB"
6551if test -n "$RANLIB"; then
6552 echo "$ac_t""$RANLIB" 1>&6
6553else
6554 echo "$ac_t""no" 1>&6
6555fi
6556
6557
6558# Extract the first word of "ar", so it can be a program name with args.
6559set dummy ar; ac_word=$2
6560echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24528b0c 6561echo "configure:6562: checking for $ac_word" >&5
10f2d63a
VZ
6562if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6563 echo $ac_n "(cached) $ac_c" 1>&6
6564else
6565 if test -n "$AR"; then
6566 ac_cv_prog_AR="$AR" # Let the user override the test.
6567else
6568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6569 ac_dummy="$PATH"
6570 for ac_dir in $ac_dummy; do
6571 test -z "$ac_dir" && ac_dir=.
6572 if test -f $ac_dir/$ac_word; then
6573 ac_cv_prog_AR="ar"
6574 break
6575 fi
6576 done
6577 IFS="$ac_save_ifs"
6578 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6579fi
6580fi
6581AR="$ac_cv_prog_AR"
6582if test -n "$AR"; then
6583 echo "$ac_t""$AR" 1>&6
6584else
6585 echo "$ac_t""no" 1>&6
6586fi
6587
6588
6589# Find a good install program. We prefer a C program (faster),
6590# so one script is as good as another. But avoid the broken or
6591# incompatible versions:
6592# SysV /etc/install, /usr/sbin/install
6593# SunOS /usr/etc/install
6594# IRIX /sbin/install
6595# AIX /bin/install
6596# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6597# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6598# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6599# ./install, which can be erroneously created by make from ./install.sh.
6600echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
24528b0c 6601echo "configure:6602: checking for a BSD compatible install" >&5
10f2d63a
VZ
6602if test -z "$INSTALL"; then
6603if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6604 echo $ac_n "(cached) $ac_c" 1>&6
6605else
6606 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6607 for ac_dir in $PATH; do
6608 # Account for people who put trailing slashes in PATH elements.
6609 case "$ac_dir/" in
6610 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6611 *)
6612 # OSF1 and SCO ODT 3.0 have their own names for install.
6613 # Don't use installbsd from OSF since it installs stuff as root
6614 # by default.
6615 for ac_prog in ginstall scoinst install; do
6616 if test -f $ac_dir/$ac_prog; then
6617 if test $ac_prog = install &&
6618 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6619 # AIX install. It has an incompatible calling convention.
6620 :
6621 else
6622 ac_cv_path_install="$ac_dir/$ac_prog -c"
6623 break 2
6624 fi
6625 fi
6626 done
6627 ;;
6628 esac
6629 done
6630 IFS="$ac_save_IFS"
6631
6632fi
6633 if test "${ac_cv_path_install+set}" = set; then
6634 INSTALL="$ac_cv_path_install"
6635 else
6636 # As a last resort, use the slow shell script. We don't cache a
6637 # path for INSTALL within a source directory, because that will
6638 # break other packages using the cache if that directory is
6639 # removed, or if the path is relative.
6640 INSTALL="$ac_install_sh"
6641 fi
6642fi
6643echo "$ac_t""$INSTALL" 1>&6
6644
6645# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6646# It thinks the first close brace ends the variable substitution.
6647test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6648
6649test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6650
6651test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6652
6653
6654# Extract the first word of "strip", so it can be a program name with args.
6655set dummy strip; ac_word=$2
6656echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24528b0c 6657echo "configure:6658: checking for $ac_word" >&5
10f2d63a
VZ
6658if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6659 echo $ac_n "(cached) $ac_c" 1>&6
6660else
6661 if test -n "$STRIP"; then
6662 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6663else
6664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6665 ac_dummy="$PATH"
6666 for ac_dir in $ac_dummy; do
6667 test -z "$ac_dir" && ac_dir=.
6668 if test -f $ac_dir/$ac_word; then
6669 ac_cv_prog_STRIP="strip"
6670 break
6671 fi
6672 done
6673 IFS="$ac_save_ifs"
6674 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6675fi
6676fi
6677STRIP="$ac_cv_prog_STRIP"
6678if test -n "$STRIP"; then
6679 echo "$ac_t""$STRIP" 1>&6
6680else
6681 echo "$ac_t""no" 1>&6
6682fi
6683
6684
6685echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
24528b0c 6686echo "configure:6687: checking "make for VPATH support"" >&5
10f2d63a
VZ
6687cat - << EOF > confMake
6688check : file
6689 cp \$? \$@
6690 cp \$? final_file
6691EOF
6692
6693if test ! -d sub ; then
6694 mkdir sub
6695fi
6696echo dummy > sub/file
6697${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6698RESULT=$?
6699rm -f sub/file check final_file confMake
6700rmdir sub
6701if test "$RESULT" = 0; then
6702 echo "$ac_t""yes" 1>&6
6703else
6704 echo "$ac_t""no" 1>&6
6705 { echo "configure: error: You need a make-utility that is able to use the variable
6706VPATH correctly.
6707If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6708fi
6709
6710for ac_prog in 'bison -y' byacc
6711do
6712# Extract the first word of "$ac_prog", so it can be a program name with args.
6713set dummy $ac_prog; ac_word=$2
6714echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24528b0c 6715echo "configure:6716: checking for $ac_word" >&5
10f2d63a
VZ
6716if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6717 echo $ac_n "(cached) $ac_c" 1>&6
6718else
6719 if test -n "$YACC"; then
6720 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6721else
6722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6723 ac_dummy="$PATH"
6724 for ac_dir in $ac_dummy; do
6725 test -z "$ac_dir" && ac_dir=.
6726 if test -f $ac_dir/$ac_word; then
6727 ac_cv_prog_YACC="$ac_prog"
6728 break
6729 fi
6730 done
6731 IFS="$ac_save_ifs"
6732fi
6733fi
6734YACC="$ac_cv_prog_YACC"
6735if test -n "$YACC"; then
6736 echo "$ac_t""$YACC" 1>&6
6737else
6738 echo "$ac_t""no" 1>&6
6739fi
6740
6741test -n "$YACC" && break
6742done
6743test -n "$YACC" || YACC="yacc"
6744
6745
6746# Extract the first word of "flex", so it can be a program name with args.
6747set dummy flex; ac_word=$2
6748echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24528b0c 6749echo "configure:6750: checking for $ac_word" >&5
10f2d63a
VZ
6750if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6751 echo $ac_n "(cached) $ac_c" 1>&6
6752else
6753 if test -n "$LEX"; then
6754 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6755else
6756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6757 ac_dummy="$PATH"
6758 for ac_dir in $ac_dummy; do
6759 test -z "$ac_dir" && ac_dir=.
6760 if test -f $ac_dir/$ac_word; then
6761 ac_cv_prog_LEX="flex"
6762 break
6763 fi
6764 done
6765 IFS="$ac_save_ifs"
6766 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6767fi
6768fi
6769LEX="$ac_cv_prog_LEX"
6770if test -n "$LEX"; then
6771 echo "$ac_t""$LEX" 1>&6
6772else
6773 echo "$ac_t""no" 1>&6
6774fi
6775
6776if test -z "$LEXLIB"
6777then
6778 case "$LEX" in
6779 flex*) ac_lib=fl ;;
6780 *) ac_lib=l ;;
6781 esac
6782 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
24528b0c 6783echo "configure:6784: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6784ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6785if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6786 echo $ac_n "(cached) $ac_c" 1>&6
6787else
6788 ac_save_LIBS="$LIBS"
6789LIBS="-l$ac_lib $LIBS"
6790cat > conftest.$ac_ext <<EOF
24528b0c 6791#line 6792 "configure"
10f2d63a
VZ
6792#include "confdefs.h"
6793/* Override any gcc2 internal prototype to avoid an error. */
6794/* We use char because int might match the return type of a gcc2
6795 builtin and then its argument prototype would still apply. */
6796char yywrap();
6797
6798int main() {
6799yywrap()
6800; return 0; }
6801EOF
24528b0c 6802if { (eval echo configure:6803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6803 rm -rf conftest*
6804 eval "ac_cv_lib_$ac_lib_var=yes"
6805else
6806 echo "configure: failed program was:" >&5
6807 cat conftest.$ac_ext >&5
6808 rm -rf conftest*
6809 eval "ac_cv_lib_$ac_lib_var=no"
6810fi
6811rm -f conftest*
6812LIBS="$ac_save_LIBS"
6813
6814fi
6815if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6816 echo "$ac_t""yes" 1>&6
6817 LEXLIB="-l$ac_lib"
6818else
6819 echo "$ac_t""no" 1>&6
6820fi
6821
6822fi
6823
6824
6825echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
24528b0c 6826echo "configure:6827: checking whether ln -s works" >&5
10f2d63a
VZ
6827if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6828 echo $ac_n "(cached) $ac_c" 1>&6
6829else
6830 rm -f conftestdata
6831if ln -s X conftestdata 2>/dev/null
6832then
6833 rm -f conftestdata
6834 ac_cv_prog_LN_S="ln -s"
6835else
6836 ac_cv_prog_LN_S=ln
6837fi
6838fi
6839LN_S="$ac_cv_prog_LN_S"
6840if test "$ac_cv_prog_LN_S" = "ln -s"; then
6841 echo "$ac_t""yes" 1>&6
6842else
6843 echo "$ac_t""no" 1>&6
6844fi
6845
6846
6847
6848SEARCH_INCLUDE="\
6849 /usr/local/include \
6850 \
6851 /usr/Motif-1.2/include \
6852 /usr/Motif-2.1/include \
6853 \
6854 /usr/include/Motif1.2 \
6855 /opt/xpm/include/X11 \
6856 /opt/GBxpm/include/ \
6857 /opt/GBxpm/X11/include/ \
6858 \
6859 /usr/Motif1.2/include \
6860 /usr/dt/include \
afc31813
VZ
6861 /usr/openwin/include \
6862 \
10f2d63a
VZ
6863 /usr/include/Xm \
6864 \
6865 /usr/X11R6/include \
afc31813 6866 /usr/X11R6.4/include \
10f2d63a
VZ
6867 /usr/X11R5/include \
6868 /usr/X11R4/include \
6869 \
10f2d63a
VZ
6870 /usr/include/X11R6 \
6871 /usr/include/X11R5 \
6872 /usr/include/X11R4 \
6873 \
6874 /usr/local/X11R6/include \
6875 /usr/local/X11R5/include \
6876 /usr/local/X11R4/include \
6877 \
6878 /usr/local/include/X11R6 \
6879 /usr/local/include/X11R5 \
6880 /usr/local/include/X11R4 \
6881 \
6882 /usr/X11/include \
6883 /usr/include/X11 \
6884 /usr/local/X11/include \
6885 /usr/local/include/X11 \
6886 \
6887 /usr/X386/include \
6888 /usr/x386/include \
6889 /usr/XFree86/include/X11 \
6890 \
cf27ef00 6891 X:/XFree86/include \
ec14dd32
VZ
6892 X:/XFree86/include/X11 \
6893 \
10f2d63a
VZ
6894 /usr/include/gtk \
6895 /usr/local/include/gtk \
6896 /usr/include/glib \
6897 /usr/local/include/glib \
6898 \
6899 /usr/include/qt \
6900 /usr/local/include/qt \
6901 \
6902 /usr/include/windows \
6903 /usr/include/wine \
6904 /usr/local/include/wine \
6905 \
6906 /usr/unsupported/include \
6907 /usr/athena/include \
6908 /usr/local/x11r5/include \
6909 /usr/lpp/Xamples/include \
6910 \
10f2d63a 6911 /usr/openwin/share/include \
928b5c08
VZ
6912 \
6913 /usr/include"
10f2d63a
VZ
6914
6915SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6916
6917
6918cat > confcache <<\EOF
6919# This file is a shell script that caches the results of configure
6920# tests run on this system so they can be shared between configure
6921# scripts and configure runs. It is not useful on other systems.
6922# If it contains results you don't want to keep, you may remove or edit it.
6923#
6924# By default, configure uses ./config.cache as the cache file,
6925# creating it if it does not exist already. You can give configure
6926# the --cache-file=FILE option to use a different cache file; that is
6927# what configure does when it calls configure scripts in
6928# subdirectories, so they share the cache.
6929# Giving --cache-file=/dev/null disables caching, for debugging configure.
6930# config.status only pays attention to the cache file if you give it the
6931# --recheck option to rerun configure.
6932#
6933EOF
6934# The following way of writing the cache mishandles newlines in values,
6935# but we know of no workaround that is simple, portable, and efficient.
6936# So, don't put newlines in cache variables' values.
6937# Ultrix sh set writes to stderr and can't be redirected directly,
6938# and sets the high bit in the cache file unless we assign to the vars.
6939(set) 2>&1 |
6940 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6941 *ac_space=\ *)
6942 # `set' does not quote correctly, so add quotes (double-quote substitution
6943 # turns \\\\ into \\, and sed turns \\ into \).
6944 sed -n \
6945 -e "s/'/'\\\\''/g" \
6946 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6947 ;;
6948 *)
6949 # `set' quotes correctly as required by POSIX, so do not add quotes.
6950 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6951 ;;
6952 esac >> confcache
6953if cmp -s $cache_file confcache; then
6954 :
6955else
6956 if test -w $cache_file; then
6957 echo "updating cache $cache_file"
6958 cat confcache > $cache_file
6959 else
6960 echo "not updating unwritable cache $cache_file"
6961 fi
6962fi
6963rm -f confcache
6964
6965
6966
dad6c0ea
VZ
6967AFMINSTALL=
6968
10f2d63a
VZ
6969if test "$wxUSE_GUI" = "yes"; then
6970
dad6c0ea
VZ
6971USE_GUI=1
6972
10f2d63a
VZ
6973TOOLKIT=
6974TOOLKIT_INCLUDE=
6975
6976GUIOBJS=
6977COMMONOBJS=
6978GENERICOBJS=
6979
6980GUI_TK_LIBRARY=
6981GUI_TK_LINK=
6982
6983WXGTK12=
13111b2a 6984WXGTK13=
10f2d63a
VZ
6985
6986WXWINE=
6987
10f2d63a
VZ
6988if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6989 if test "$cross_compiling" = "yes" ; then
6990 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6991 else
6992 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
24528b0c 6993echo "configure:6994: checking for Windows headers" >&5
10f2d63a
VZ
6994
6995ac_find_includes=
6996for ac_dir in $SEARCH_INCLUDE;
6997 do
6998 if test -f "$ac_dir/windows.h"; then
6999 ac_find_includes=$ac_dir
7000 break
7001 fi
7002 done
7003
7004 if test "$ac_find_includes" != "" ; then
7005 echo "$ac_t""found $ac_find_includes" 1>&6
7006 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7007 else
7008 echo "$ac_t""no" 1>&6
7009 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7010 fi
7011 fi
7012
7013 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7014 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7015
7016 if test "$wxUSE_MINGW" = 1; then
7017 LDFLAGS="$LDFLAGS -mwindows"
7018 fi
7019
7020 TOOLKIT=MSW
7021
7022 GUIOBJS="\$(MSW_GUIOBJS)"
7023 GUIHEADERS="\$(MSW_HEADERS)"
7024 COMMONOBJS="\$(MSW_COMMONOBJS)"
7025 GENERICOBJS="\$(MSW_GENERICOBJS)"
7026 UNIXOBJS=
7027 GUIDIST=MSW_DIST
10f2d63a
VZ
7028fi
7029
7030if test "$wxUSE_GTK" = 1; then
7031
7032 if test x$gtk_config_exec_prefix != x ; then
7033 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7034 if test x${GTK_CONFIG+set} != xset ; then
7035 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7036 fi
7037 fi
7038 if test x$gtk_config_prefix != x ; then
7039 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7040 if test x${GTK_CONFIG+set} != xset ; then
7041 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7042 fi
7043 fi
7044
7045 # Extract the first word of "gtk-config", so it can be a program name with args.
7046set dummy gtk-config; ac_word=$2
7047echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24528b0c 7048echo "configure:7049: checking for $ac_word" >&5
10f2d63a
VZ
7049if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7051else
7052 case "$GTK_CONFIG" in
7053 /*)
7054 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7055 ;;
7056 ?:/*)
7057 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7058 ;;
7059 *)
7060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7061 ac_dummy="$PATH"
7062 for ac_dir in $ac_dummy; do
7063 test -z "$ac_dir" && ac_dir=.
7064 if test -f $ac_dir/$ac_word; then
7065 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7066 break
7067 fi
7068 done
7069 IFS="$ac_save_ifs"
7070 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7071 ;;
7072esac
7073fi
7074GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7075if test -n "$GTK_CONFIG"; then
7076 echo "$ac_t""$GTK_CONFIG" 1>&6
7077else
7078 echo "$ac_t""no" 1>&6
7079fi
7080
04165bec 7081 min_gtk_version=1.2.3
10f2d63a 7082 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
24528b0c 7083echo "configure:7084: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7084 no_gtk=""
7085 if test "$GTK_CONFIG" != "no" ; then
7086 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7087 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7088 ac_save_CFLAGS="$CFLAGS"
7089 ac_save_LIBS="$LIBS"
7090 CFLAGS="$CFLAGS $GTK_CFLAGS"
7091 LIBS="$LIBS $GTK_LIBS"
7092 if test "$cross_compiling" = yes; then
7093 echo $ac_n "cross compiling; assumed OK... $ac_c"
7094else
7095 cat > conftest.$ac_ext <<EOF
24528b0c 7096#line 7097 "configure"
10f2d63a
VZ
7097#include "confdefs.h"
7098
7099#include <gtk/gtk.h>
f49f2b0c 7100#include <gtk/gtkfeatures.h>
10f2d63a
VZ
7101#include <stdio.h>
7102
7103int
7104main ()
7105{
7106 int major, minor, micro;
7107
7108 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7109 printf("%s, bad version string\n", "$min_gtk_version");
7110 exit(1);
7111 }
7112
f49f2b0c
RR
7113 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7114 (GTK_MINOR_VERSION != gtk_minor_version) ||
7115 (GTK_MICRO_VERSION != gtk_micro_version)) {
7116 printf("Headers vs. library version mismatch!\n");
7117 exit(1);
7118 }
7119
10f2d63a
VZ
7120 if (gtk_minor_version == 1) return FALSE;
7121
7122 return !((gtk_major_version > major) ||
7123 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7124 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7125}
7126
7127EOF
24528b0c 7128if { (eval echo configure:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7129then
7130 :
7131else
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7134 rm -fr conftest*
7135 no_gtk=yes
7136fi
7137rm -fr conftest*
7138fi
7139
7140 CFLAGS="$ac_save_CFLAGS"
7141 LIBS="$ac_save_LIBS"
7142 else
7143 no_gtk=yes
7144 fi
7145 if test "x$no_gtk" = x ; then
7146 echo "$ac_t""yes" 1>&6
7147 WXGTK12=1
7148 else
7149 echo "$ac_t""no" 1>&6
7150 GTK_CFLAGS=""
7151 GTK_LIBS=""
7e99ad86 7152 :
10f2d63a
VZ
7153 fi
7154
7155
7156
7157
7e99ad86
VZ
7158 if test "$WXGTK12" != 1; then
7159 { echo "configure: error:
7160 Please check that gtk-config is in path, the directory
7161 where GTK+ libraries are installed (returned by
7162 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7163 equivalent variable and GTK+ is version 1.2.3 or above.
7164 " 1>&2; exit 1; }
7165 fi
7166
7167
10f2d63a 7168 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7169
7170
7171 GUI_TK_LIBRARY="$GTK_LIBS"
7172
10f2d63a
VZ
7173 TOOLKIT=GTK
7174
dad6c0ea
VZ
7175 AFMINSTALL=afminstall
7176
10f2d63a
VZ
7177 GUIOBJS="\$(GTK_GUIOBJS)"
7178 GUIHEADERS="\$(GTK_HEADERS)"
7179 COMMONOBJS="\$(GTK_COMMONOBJS)"
7180 GENERICOBJS="\$(GTK_GENERICOBJS)"
7181 GUIDEPS="\$(GTK_GUIDEPS)"
7182 COMMONDEPS="\$(GTK_COMMONDEPS)"
7183 GENERICDEPS="\$(GTK_GENERICDEPS)"
7184 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7185 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7186 GUIDIST=GTK_DIST
7ec2881a 7187
2224580a 7188 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
24528b0c 7189echo "configure:7190: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7190ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7191if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7192 echo $ac_n "(cached) $ac_c" 1>&6
7193else
7194 ac_save_LIBS="$LIBS"
7195LIBS="-lgdk $LIBS"
7196cat > conftest.$ac_ext <<EOF
24528b0c 7197#line 7198 "configure"
7ec2881a
RR
7198#include "confdefs.h"
7199/* Override any gcc2 internal prototype to avoid an error. */
7200/* We use char because int might match the return type of a gcc2
7201 builtin and then its argument prototype would still apply. */
7202char gdk_im_open();
7203
7204int main() {
7205gdk_im_open()
7206; return 0; }
7207EOF
24528b0c 7208if { (eval echo configure:7209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7209 rm -rf conftest*
7210 eval "ac_cv_lib_$ac_lib_var=yes"
7211else
7212 echo "configure: failed program was:" >&5
7213 cat conftest.$ac_ext >&5
7214 rm -rf conftest*
7215 eval "ac_cv_lib_$ac_lib_var=no"
7216fi
7217rm -f conftest*
7218LIBS="$ac_save_LIBS"
7219
7220fi
7221if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7222 echo "$ac_t""yes" 1>&6
7223 cat >> confdefs.h <<\EOF
7224#define HAVE_XIM 1
7225EOF
7226
7227else
7228 echo "$ac_t""no" 1>&6
7229fi
7230
10f2d63a
VZ
7231fi
7232
7233if test "$wxUSE_WINE" = 1; then
7234 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
24528b0c 7235echo "configure:7236: checking for WINE includes" >&5
10f2d63a
VZ
7236
7237ac_find_includes=
7238for ac_dir in $SEARCH_INCLUDE;
7239 do
7240 if test -f "$ac_dir/windows.h"; then
7241 ac_find_includes=$ac_dir
7242 break
7243 fi
7244 done
7245
7246 if test "$ac_find_includes" != "" ; then
7247 echo "$ac_t""found $ac_find_includes" 1>&6
7248 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7249 else
7250 echo "$ac_t""no" 1>&6
7251 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7252 fi
7253
7254 XPM_LINK=""
7255 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
24528b0c 7256echo "configure:7257: checking for Xpm library" >&5
10f2d63a
VZ
7257
7258ac_find_libraries=
7259for ac_dir in $SEARCH_LIB;
7260 do
7261 for ac_extension in a so sl; do
7262 if test -f "$ac_dir/libXpm.$ac_extension"; then
7263 ac_find_libraries=$ac_dir
7264 break 2
7265 fi
7266 done
7267 done
7268
7269 if test "$ac_find_libraries" != "" ; then
7270 GUI_TK_LIBRARY="-L$ac_find_libraries"
7271 XPM_LINK="-lXpm"
7272 cat >> confdefs.h <<\EOF
7273#define wxHAVE_LIB_XPM 1
7274EOF
7275
7276 echo "$ac_t""found at $ac_find_libraries" 1>&6
7277 else
7278 echo "$ac_t""no" 1>&6
7279 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7280 fi
7281
7282 MESA_LINK=""
7283 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
24528b0c 7284echo "configure:7285: checking for Mesa library" >&5
10f2d63a
VZ
7285
7286ac_find_libraries=
7287for ac_dir in $SEARCH_LIB;
7288 do
7289 for ac_extension in a so sl; do
7290 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7291 ac_find_libraries=$ac_dir
7292 break 2
7293 fi
7294 done
7295 done
7296
7297 if test "$ac_find_libraries" != "" ; then
7298 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7299 MESA_LINK="-lMesaGL"
7300 echo "$ac_t""found at $ac_find_libraries" 1>&6
7301 else
7302 { echo "configure: error: no" 1>&2; exit 1; }
7303 fi
7304
7305 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7306 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7307 WXWINE=1
7308 TOOLKIT=MSW
7309
7310 GUIHEADERS="\$(MSW_HEADERS)"
7311 GUIOBJS="\$(MSW_GUIOBJS)"
7312 COMMONOBJS="\$(MSW_COMMONOBJS)"
7313 GENERICOBJS="\$(MSW_GENERICOBJS)"
7314 GUIDEPS="\$(MSW_GUIDEPS)"
7315 COMMONDEPS="\$(MSW_COMMONDEPS)"
7316 GENERICDEPS="\$(MSW_GENERICDEPS)"
7317 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7318 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7319 GUIDIST=MSW_DIST
7320fi
7321
7322if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7323 # If we find X, set shell vars x_includes and x_libraries to the
7324# paths, otherwise set no_x=yes.
7325# Uses ac_ vars as temps to allow command line to override cache and checks.
7326# --without-x overrides everything else, but does not touch the cache.
7327echo $ac_n "checking for X""... $ac_c" 1>&6
24528b0c 7328echo "configure:7329: checking for X" >&5
ab9b9eab
VZ
7329
7330# Check whether --with-x or --without-x was given.
7331if test "${with_x+set}" = set; then
7332 withval="$with_x"
7333 :
7334fi
ba337fe7 7335
ab9b9eab
VZ
7336# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7337if test "x$with_x" = xno; then
7338 # The user explicitly disabled X.
7339 have_x=disabled
7340else
7341 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7342 # Both variables are already set.
7343 have_x=yes
7344 else
7345if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7346 echo $ac_n "(cached) $ac_c" 1>&6
7347else
7348 # One or both of the vars are not set, and there is no cached value.
7349ac_x_includes=NO ac_x_libraries=NO
7350rm -fr conftestdir
7351if mkdir conftestdir; then
7352 cd conftestdir
7353 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7354 cat > Imakefile <<'EOF'
7355acfindx:
7356 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7357EOF
7358 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7359 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7360 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7361 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7362 for ac_extension in a so sl; do
ab9b9eab
VZ
7363 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7364 test -f $ac_im_libdir/libX11.$ac_extension; then
7365 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7366 fi
7367 done
ab9b9eab
VZ
7368 # Screen out bogus values from the imake configuration. They are
7369 # bogus both because they are the default anyway, and because
7370 # using them would break gcc on systems where it needs fixed includes.
7371 case "$ac_im_incroot" in
7372 /usr/include) ;;
7373 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7374 esac
7375 case "$ac_im_usrlibdir" in
7376 /usr/lib | /lib) ;;
7377 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7378 esac
ba337fe7 7379 fi
ab9b9eab
VZ
7380 cd ..
7381 rm -fr conftestdir
7382fi
10f2d63a 7383
ab9b9eab
VZ
7384if test "$ac_x_includes" = NO; then
7385 # Guess where to find include files, by looking for this one X11 .h file.
7386 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7387
ab9b9eab
VZ
7388 # First, try using that file with no special directory specified.
7389cat > conftest.$ac_ext <<EOF
24528b0c 7390#line 7391 "configure"
ab9b9eab
VZ
7391#include "confdefs.h"
7392#include <$x_direct_test_include>
7393EOF
7394ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 7395{ (eval echo configure:7396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7396ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7397if test -z "$ac_err"; then
7398 rm -rf conftest*
7399 # We can compile using X headers with no special include directory.
7400ac_x_includes=
7401else
7402 echo "$ac_err" >&5
7403 echo "configure: failed program was:" >&5
7404 cat conftest.$ac_ext >&5
7405 rm -rf conftest*
7406 # Look for the header file in a standard set of common directories.
7407# Check X11 before X11Rn because it is often a symlink to the current release.
7408 for ac_dir in \
7409 /usr/X11/include \
7410 /usr/X11R6/include \
7411 /usr/X11R5/include \
7412 /usr/X11R4/include \
7413 \
7414 /usr/include/X11 \
7415 /usr/include/X11R6 \
7416 /usr/include/X11R5 \
7417 /usr/include/X11R4 \
7418 \
7419 /usr/local/X11/include \
7420 /usr/local/X11R6/include \
7421 /usr/local/X11R5/include \
7422 /usr/local/X11R4/include \
7423 \
7424 /usr/local/include/X11 \
7425 /usr/local/include/X11R6 \
7426 /usr/local/include/X11R5 \
7427 /usr/local/include/X11R4 \
7428 \
7429 /usr/X386/include \
7430 /usr/x386/include \
7431 /usr/XFree86/include/X11 \
7432 \
7433 /usr/include \
7434 /usr/local/include \
7435 /usr/unsupported/include \
7436 /usr/athena/include \
7437 /usr/local/x11r5/include \
7438 /usr/lpp/Xamples/include \
7439 \
7440 /usr/openwin/include \
7441 /usr/openwin/share/include \
7442 ; \
10f2d63a 7443 do
ab9b9eab
VZ
7444 if test -r "$ac_dir/$x_direct_test_include"; then
7445 ac_x_includes=$ac_dir
10f2d63a
VZ
7446 break
7447 fi
7448 done
ab9b9eab
VZ
7449fi
7450rm -f conftest*
7451fi # $ac_x_includes = NO
10f2d63a 7452
ab9b9eab
VZ
7453if test "$ac_x_libraries" = NO; then
7454 # Check for the libraries.
10f2d63a 7455
ab9b9eab
VZ
7456 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7457 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7458
ab9b9eab
VZ
7459 # See if we find them without any special options.
7460 # Don't add to $LIBS permanently.
7461 ac_save_LIBS="$LIBS"
7462 LIBS="-l$x_direct_test_library $LIBS"
7463cat > conftest.$ac_ext <<EOF
24528b0c 7464#line 7465 "configure"
ab9b9eab 7465#include "confdefs.h"
10f2d63a 7466
ab9b9eab
VZ
7467int main() {
7468${x_direct_test_function}()
7469; return 0; }
7470EOF
24528b0c 7471if { (eval echo configure:7472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7472 rm -rf conftest*
7473 LIBS="$ac_save_LIBS"
7474# We can link X programs with no special library path.
7475ac_x_libraries=
7476else
7477 echo "configure: failed program was:" >&5
7478 cat conftest.$ac_ext >&5
7479 rm -rf conftest*
7480 LIBS="$ac_save_LIBS"
7481# First see if replacing the include by lib works.
7482# Check X11 before X11Rn because it is often a symlink to the current release.
7483for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7484 /usr/X11/lib \
7485 /usr/X11R6/lib \
7486 /usr/X11R5/lib \
7487 /usr/X11R4/lib \
7488 \
7489 /usr/lib/X11 \
7490 /usr/lib/X11R6 \
7491 /usr/lib/X11R5 \
7492 /usr/lib/X11R4 \
7493 \
7494 /usr/local/X11/lib \
7495 /usr/local/X11R6/lib \
7496 /usr/local/X11R5/lib \
7497 /usr/local/X11R4/lib \
7498 \
7499 /usr/local/lib/X11 \
7500 /usr/local/lib/X11R6 \
7501 /usr/local/lib/X11R5 \
7502 /usr/local/lib/X11R4 \
7503 \
7504 /usr/X386/lib \
7505 /usr/x386/lib \
7506 /usr/XFree86/lib/X11 \
7507 \
7508 /usr/lib \
7509 /usr/local/lib \
7510 /usr/unsupported/lib \
7511 /usr/athena/lib \
7512 /usr/local/x11r5/lib \
7513 /usr/lpp/Xamples/lib \
7514 /lib/usr/lib/X11 \
7515 \
7516 /usr/openwin/lib \
7517 /usr/openwin/share/lib \
7518 ; \
7519do
7520 for ac_extension in a so sl; do
7521 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7522 ac_x_libraries=$ac_dir
7523 break 2
10f2d63a 7524 fi
10f2d63a 7525 done
ab9b9eab
VZ
7526done
7527fi
7528rm -f conftest*
7529fi # $ac_x_libraries = NO
10f2d63a 7530
ab9b9eab
VZ
7531if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7532 # Didn't find X anywhere. Cache the known absence of X.
7533 ac_cv_have_x="have_x=no"
7534else
7535 # Record where we found X for the cache.
7536 ac_cv_have_x="have_x=yes \
7537 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7538fi
7539fi
10f2d63a 7540 fi
ab9b9eab
VZ
7541 eval "$ac_cv_have_x"
7542fi # $with_x != no
10f2d63a 7543
ab9b9eab
VZ
7544if test "$have_x" != yes; then
7545 echo "$ac_t""$have_x" 1>&6
7546 no_x=yes
7547else
7548 # If each of the values was on the command line, it overrides each guess.
7549 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7550 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7551 # Update the cache value to reflect the command line values.
7552 ac_cv_have_x="have_x=yes \
7553 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7554 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7555fi
10f2d63a 7556
ab9b9eab
VZ
7557if test "$no_x" = yes; then
7558 # Not all programs may use this symbol, but it does not hurt to define it.
7559 cat >> confdefs.h <<\EOF
7560#define X_DISPLAY_MISSING 1
7561EOF
10f2d63a 7562
ab9b9eab
VZ
7563 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7564else
7565 if test -n "$x_includes"; then
7566 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7567 fi
7568
ab9b9eab
VZ
7569 # It would also be nice to do this for all -L options, not just this one.
7570 if test -n "$x_libraries"; then
7571 X_LIBS="$X_LIBS -L$x_libraries"
7572 # For Solaris; some versions of Sun CC require a space after -R and
7573 # others require no space. Words are not sufficient . . . .
7574 case "`(uname -sr) 2>/dev/null`" in
7575 "SunOS 5"*)
7576 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
24528b0c 7577echo "configure:7578: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7578 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7579 cat > conftest.$ac_ext <<EOF
24528b0c 7580#line 7581 "configure"
ab9b9eab 7581#include "confdefs.h"
10f2d63a 7582
ab9b9eab 7583int main() {
788deba1 7584
ab9b9eab
VZ
7585; return 0; }
7586EOF
24528b0c 7587if { (eval echo configure:7588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7588 rm -rf conftest*
7589 ac_R_nospace=yes
7590else
7591 echo "configure: failed program was:" >&5
7592 cat conftest.$ac_ext >&5
7593 rm -rf conftest*
7594 ac_R_nospace=no
7595fi
7596rm -f conftest*
7597 if test $ac_R_nospace = yes; then
7598 echo "$ac_t""no" 1>&6
7599 X_LIBS="$X_LIBS -R$x_libraries"
7600 else
7601 LIBS="$ac_xsave_LIBS -R $x_libraries"
7602 cat > conftest.$ac_ext <<EOF
24528b0c 7603#line 7604 "configure"
ab9b9eab 7604#include "confdefs.h"
788deba1 7605
ab9b9eab
VZ
7606int main() {
7607
7608; return 0; }
7609EOF
24528b0c 7610if { (eval echo configure:7611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7611 rm -rf conftest*
7612 ac_R_space=yes
7613else
7614 echo "configure: failed program was:" >&5
7615 cat conftest.$ac_ext >&5
7616 rm -rf conftest*
7617 ac_R_space=no
7618fi
7619rm -f conftest*
7620 if test $ac_R_space = yes; then
7621 echo "$ac_t""yes" 1>&6
7622 X_LIBS="$X_LIBS -R $x_libraries"
7623 else
7624 echo "$ac_t""neither works" 1>&6
7625 fi
7626 fi
7627 LIBS="$ac_xsave_LIBS"
7628 esac
7629 fi
7630
7631 # Check for system-dependent libraries X programs must link with.
7632 # Do this before checking for the system-independent R6 libraries
7633 # (-lICE), since we may need -lsocket or whatever for X linking.
7634
7635 if test "$ISC" = yes; then
7636 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7637 else
7638 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7639 # libraries were built with DECnet support. And karl@cs.umb.edu says
7640 # the Alpha needs dnet_stub (dnet does not exist).
7641 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
24528b0c 7642echo "configure:7643: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7643ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7644if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
7646else
7647 ac_save_LIBS="$LIBS"
7648LIBS="-ldnet $LIBS"
7649cat > conftest.$ac_ext <<EOF
24528b0c 7650#line 7651 "configure"
ab9b9eab
VZ
7651#include "confdefs.h"
7652/* Override any gcc2 internal prototype to avoid an error. */
7653/* We use char because int might match the return type of a gcc2
7654 builtin and then its argument prototype would still apply. */
7655char dnet_ntoa();
7656
7657int main() {
7658dnet_ntoa()
7659; return 0; }
7660EOF
24528b0c 7661if { (eval echo configure:7662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7662 rm -rf conftest*
7663 eval "ac_cv_lib_$ac_lib_var=yes"
7664else
7665 echo "configure: failed program was:" >&5
7666 cat conftest.$ac_ext >&5
7667 rm -rf conftest*
7668 eval "ac_cv_lib_$ac_lib_var=no"
7669fi
7670rm -f conftest*
7671LIBS="$ac_save_LIBS"
7672
7673fi
7674if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7675 echo "$ac_t""yes" 1>&6
7676 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7677else
7678 echo "$ac_t""no" 1>&6
7679fi
7680
7681 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7682 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
24528b0c 7683echo "configure:7684: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7684ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7685if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7686 echo $ac_n "(cached) $ac_c" 1>&6
7687else
7688 ac_save_LIBS="$LIBS"
7689LIBS="-ldnet_stub $LIBS"
7690cat > conftest.$ac_ext <<EOF
24528b0c 7691#line 7692 "configure"
ab9b9eab
VZ
7692#include "confdefs.h"
7693/* Override any gcc2 internal prototype to avoid an error. */
7694/* We use char because int might match the return type of a gcc2
7695 builtin and then its argument prototype would still apply. */
7696char dnet_ntoa();
7697
7698int main() {
7699dnet_ntoa()
7700; return 0; }
7701EOF
24528b0c 7702if { (eval echo configure:7703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7703 rm -rf conftest*
7704 eval "ac_cv_lib_$ac_lib_var=yes"
7705else
7706 echo "configure: failed program was:" >&5
7707 cat conftest.$ac_ext >&5
7708 rm -rf conftest*
7709 eval "ac_cv_lib_$ac_lib_var=no"
7710fi
7711rm -f conftest*
7712LIBS="$ac_save_LIBS"
7713
7714fi
7715if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7716 echo "$ac_t""yes" 1>&6
7717 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7718else
7719 echo "$ac_t""no" 1>&6
7720fi
7721
7722 fi
7723
7724 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7725 # to get the SysV transport functions.
7726 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7727 # needs -lnsl.
7728 # The nsl library prevents programs from opening the X display
7729 # on Irix 5.2, according to dickey@clark.net.
7730 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
24528b0c 7731echo "configure:7732: checking for gethostbyname" >&5
ab9b9eab
VZ
7732if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7734else
7735 cat > conftest.$ac_ext <<EOF
24528b0c 7736#line 7737 "configure"
ab9b9eab
VZ
7737#include "confdefs.h"
7738/* System header to define __stub macros and hopefully few prototypes,
7739 which can conflict with char gethostbyname(); below. */
7740#include <assert.h>
7741/* Override any gcc2 internal prototype to avoid an error. */
7742/* We use char because int might match the return type of a gcc2
7743 builtin and then its argument prototype would still apply. */
7744char gethostbyname();
7745
7746int main() {
7747
7748/* The GNU C library defines this for functions which it implements
7749 to always fail with ENOSYS. Some functions are actually named
7750 something starting with __ and the normal name is an alias. */
7751#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7752choke me
7753#else
d6a55c4b 7754gethostbyname();
ab9b9eab
VZ
7755#endif
7756
7757; return 0; }
7758EOF
24528b0c 7759if { (eval echo configure:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7760 rm -rf conftest*
7761 eval "ac_cv_func_gethostbyname=yes"
7762else
7763 echo "configure: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7765 rm -rf conftest*
7766 eval "ac_cv_func_gethostbyname=no"
7767fi
7768rm -f conftest*
7769fi
7770
7771if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7772 echo "$ac_t""yes" 1>&6
7773 :
7774else
7775 echo "$ac_t""no" 1>&6
7776fi
7777
7778 if test $ac_cv_func_gethostbyname = no; then
7779 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
24528b0c 7780echo "configure:7781: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7781ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7782if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7783 echo $ac_n "(cached) $ac_c" 1>&6
7784else
7785 ac_save_LIBS="$LIBS"
7786LIBS="-lnsl $LIBS"
7787cat > conftest.$ac_ext <<EOF
24528b0c 7788#line 7789 "configure"
ab9b9eab
VZ
7789#include "confdefs.h"
7790/* Override any gcc2 internal prototype to avoid an error. */
7791/* We use char because int might match the return type of a gcc2
7792 builtin and then its argument prototype would still apply. */
7793char gethostbyname();
7794
7795int main() {
7796gethostbyname()
7797; return 0; }
7798EOF
24528b0c 7799if { (eval echo configure:7800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7800 rm -rf conftest*
7801 eval "ac_cv_lib_$ac_lib_var=yes"
7802else
7803 echo "configure: failed program was:" >&5
7804 cat conftest.$ac_ext >&5
7805 rm -rf conftest*
7806 eval "ac_cv_lib_$ac_lib_var=no"
7807fi
7808rm -f conftest*
7809LIBS="$ac_save_LIBS"
7810
7811fi
7812if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7813 echo "$ac_t""yes" 1>&6
7814 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7815else
7816 echo "$ac_t""no" 1>&6
7817fi
7818
7819 fi
7820
7821 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7822 # socket/setsockopt and other routines are undefined under SCO ODT
7823 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7824 # on later versions), says simon@lia.di.epfl.ch: it contains
7825 # gethostby* variants that don't use the nameserver (or something).
7826 # -lsocket must be given before -lnsl if both are needed.
7827 # We assume that if connect needs -lnsl, so does gethostbyname.
7828 echo $ac_n "checking for connect""... $ac_c" 1>&6
24528b0c 7829echo "configure:7830: checking for connect" >&5
ab9b9eab
VZ
7830if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7831 echo $ac_n "(cached) $ac_c" 1>&6
7832else
7833 cat > conftest.$ac_ext <<EOF
24528b0c 7834#line 7835 "configure"
ab9b9eab
VZ
7835#include "confdefs.h"
7836/* System header to define __stub macros and hopefully few prototypes,
7837 which can conflict with char connect(); below. */
7838#include <assert.h>
7839/* Override any gcc2 internal prototype to avoid an error. */
7840/* We use char because int might match the return type of a gcc2
7841 builtin and then its argument prototype would still apply. */
7842char connect();
7843
7844int main() {
7845
7846/* The GNU C library defines this for functions which it implements
7847 to always fail with ENOSYS. Some functions are actually named
7848 something starting with __ and the normal name is an alias. */
7849#if defined (__stub_connect) || defined (__stub___connect)
7850choke me
7851#else
d6a55c4b 7852connect();
ab9b9eab
VZ
7853#endif
7854
7855; return 0; }
7856EOF
24528b0c 7857if { (eval echo configure:7858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7858 rm -rf conftest*
7859 eval "ac_cv_func_connect=yes"
7860else
7861 echo "configure: failed program was:" >&5
7862 cat conftest.$ac_ext >&5
7863 rm -rf conftest*
7864 eval "ac_cv_func_connect=no"
7865fi
7866rm -f conftest*
7867fi
7868
7869if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7870 echo "$ac_t""yes" 1>&6
7871 :
7872else
7873 echo "$ac_t""no" 1>&6
7874fi
7875
7876 if test $ac_cv_func_connect = no; then
7877 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
24528b0c 7878echo "configure:7879: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7879ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7880if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7881 echo $ac_n "(cached) $ac_c" 1>&6
7882else
7883 ac_save_LIBS="$LIBS"
7884LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7885cat > conftest.$ac_ext <<EOF
24528b0c 7886#line 7887 "configure"
ab9b9eab
VZ
7887#include "confdefs.h"
7888/* Override any gcc2 internal prototype to avoid an error. */
7889/* We use char because int might match the return type of a gcc2
7890 builtin and then its argument prototype would still apply. */
7891char connect();
7892
7893int main() {
7894connect()
7895; return 0; }
7896EOF
24528b0c 7897if { (eval echo configure:7898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7898 rm -rf conftest*
7899 eval "ac_cv_lib_$ac_lib_var=yes"
7900else
7901 echo "configure: failed program was:" >&5
7902 cat conftest.$ac_ext >&5
7903 rm -rf conftest*
7904 eval "ac_cv_lib_$ac_lib_var=no"
7905fi
7906rm -f conftest*
7907LIBS="$ac_save_LIBS"
7908
7909fi
7910if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7911 echo "$ac_t""yes" 1>&6
7912 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7913else
7914 echo "$ac_t""no" 1>&6
7915fi
7916
7917 fi
7918
7919 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7920 echo $ac_n "checking for remove""... $ac_c" 1>&6
24528b0c 7921echo "configure:7922: checking for remove" >&5
ab9b9eab
VZ
7922if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7923 echo $ac_n "(cached) $ac_c" 1>&6
7924else
7925 cat > conftest.$ac_ext <<EOF
24528b0c 7926#line 7927 "configure"
ab9b9eab
VZ
7927#include "confdefs.h"
7928/* System header to define __stub macros and hopefully few prototypes,
7929 which can conflict with char remove(); below. */
7930#include <assert.h>
7931/* Override any gcc2 internal prototype to avoid an error. */
7932/* We use char because int might match the return type of a gcc2
7933 builtin and then its argument prototype would still apply. */
7934char remove();
7935
7936int main() {
7937
7938/* The GNU C library defines this for functions which it implements
7939 to always fail with ENOSYS. Some functions are actually named
7940 something starting with __ and the normal name is an alias. */
7941#if defined (__stub_remove) || defined (__stub___remove)
7942choke me
7943#else
d6a55c4b 7944remove();
ab9b9eab
VZ
7945#endif
7946
7947; return 0; }
7948EOF
24528b0c 7949if { (eval echo configure:7950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7950 rm -rf conftest*
7951 eval "ac_cv_func_remove=yes"
7952else
7953 echo "configure: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7955 rm -rf conftest*
7956 eval "ac_cv_func_remove=no"
7957fi
7958rm -f conftest*
7959fi
7960
7961if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7962 echo "$ac_t""yes" 1>&6
7963 :
7964else
7965 echo "$ac_t""no" 1>&6
7966fi
7967
7968 if test $ac_cv_func_remove = no; then
7969 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
24528b0c 7970echo "configure:7971: checking for remove in -lposix" >&5
ab9b9eab
VZ
7971ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7972if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7973 echo $ac_n "(cached) $ac_c" 1>&6
7974else
7975 ac_save_LIBS="$LIBS"
7976LIBS="-lposix $LIBS"
7977cat > conftest.$ac_ext <<EOF
24528b0c 7978#line 7979 "configure"
ab9b9eab
VZ
7979#include "confdefs.h"
7980/* Override any gcc2 internal prototype to avoid an error. */
7981/* We use char because int might match the return type of a gcc2
7982 builtin and then its argument prototype would still apply. */
7983char remove();
7984
7985int main() {
7986remove()
7987; return 0; }
7988EOF
24528b0c 7989if { (eval echo configure:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7990 rm -rf conftest*
7991 eval "ac_cv_lib_$ac_lib_var=yes"
7992else
7993 echo "configure: failed program was:" >&5
7994 cat conftest.$ac_ext >&5
7995 rm -rf conftest*
7996 eval "ac_cv_lib_$ac_lib_var=no"
7997fi
7998rm -f conftest*
7999LIBS="$ac_save_LIBS"
8000
8001fi
8002if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8003 echo "$ac_t""yes" 1>&6
8004 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8005else
8006 echo "$ac_t""no" 1>&6
8007fi
8008
8009 fi
8010
8011 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8012 echo $ac_n "checking for shmat""... $ac_c" 1>&6
24528b0c 8013echo "configure:8014: checking for shmat" >&5
ab9b9eab
VZ
8014if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8015 echo $ac_n "(cached) $ac_c" 1>&6
8016else
8017 cat > conftest.$ac_ext <<EOF
24528b0c 8018#line 8019 "configure"
ab9b9eab
VZ
8019#include "confdefs.h"
8020/* System header to define __stub macros and hopefully few prototypes,
8021 which can conflict with char shmat(); below. */
8022#include <assert.h>
8023/* Override any gcc2 internal prototype to avoid an error. */
8024/* We use char because int might match the return type of a gcc2
8025 builtin and then its argument prototype would still apply. */
8026char shmat();
8027
8028int main() {
8029
8030/* The GNU C library defines this for functions which it implements
8031 to always fail with ENOSYS. Some functions are actually named
8032 something starting with __ and the normal name is an alias. */
8033#if defined (__stub_shmat) || defined (__stub___shmat)
8034choke me
8035#else
d6a55c4b 8036shmat();
ab9b9eab
VZ
8037#endif
8038
8039; return 0; }
8040EOF
24528b0c 8041if { (eval echo configure:8042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8042 rm -rf conftest*
8043 eval "ac_cv_func_shmat=yes"
8044else
8045 echo "configure: failed program was:" >&5
8046 cat conftest.$ac_ext >&5
8047 rm -rf conftest*
8048 eval "ac_cv_func_shmat=no"
8049fi
8050rm -f conftest*
8051fi
8052
8053if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8054 echo "$ac_t""yes" 1>&6
8055 :
8056else
8057 echo "$ac_t""no" 1>&6
8058fi
8059
8060 if test $ac_cv_func_shmat = no; then
8061 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
24528b0c 8062echo "configure:8063: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8063ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8064if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8065 echo $ac_n "(cached) $ac_c" 1>&6
8066else
8067 ac_save_LIBS="$LIBS"
8068LIBS="-lipc $LIBS"
8069cat > conftest.$ac_ext <<EOF
24528b0c 8070#line 8071 "configure"
ab9b9eab
VZ
8071#include "confdefs.h"
8072/* Override any gcc2 internal prototype to avoid an error. */
8073/* We use char because int might match the return type of a gcc2
8074 builtin and then its argument prototype would still apply. */
8075char shmat();
8076
8077int main() {
8078shmat()
8079; return 0; }
8080EOF
24528b0c 8081if { (eval echo configure:8082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8082 rm -rf conftest*
8083 eval "ac_cv_lib_$ac_lib_var=yes"
8084else
8085 echo "configure: failed program was:" >&5
8086 cat conftest.$ac_ext >&5
8087 rm -rf conftest*
8088 eval "ac_cv_lib_$ac_lib_var=no"
8089fi
8090rm -f conftest*
8091LIBS="$ac_save_LIBS"
8092
8093fi
8094if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8095 echo "$ac_t""yes" 1>&6
8096 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8097else
8098 echo "$ac_t""no" 1>&6
8099fi
8100
8101 fi
8102 fi
8103
8104 # Check for libraries that X11R6 Xt/Xaw programs need.
8105 ac_save_LDFLAGS="$LDFLAGS"
8106 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8107 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8108 # check for ICE first), but we must link in the order -lSM -lICE or
8109 # we get undefined symbols. So assume we have SM if we have ICE.
8110 # These have to be linked with before -lX11, unlike the other
8111 # libraries we check for below, so use a different variable.
8112 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8113 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
24528b0c 8114echo "configure:8115: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8115ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8116if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8117 echo $ac_n "(cached) $ac_c" 1>&6
8118else
8119 ac_save_LIBS="$LIBS"
8120LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8121cat > conftest.$ac_ext <<EOF
24528b0c 8122#line 8123 "configure"
ab9b9eab
VZ
8123#include "confdefs.h"
8124/* Override any gcc2 internal prototype to avoid an error. */
8125/* We use char because int might match the return type of a gcc2
8126 builtin and then its argument prototype would still apply. */
8127char IceConnectionNumber();
8128
8129int main() {
8130IceConnectionNumber()
8131; return 0; }
8132EOF
24528b0c 8133if { (eval echo configure:8134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8134 rm -rf conftest*
8135 eval "ac_cv_lib_$ac_lib_var=yes"
8136else
8137 echo "configure: failed program was:" >&5
8138 cat conftest.$ac_ext >&5
8139 rm -rf conftest*
8140 eval "ac_cv_lib_$ac_lib_var=no"
8141fi
8142rm -f conftest*
8143LIBS="$ac_save_LIBS"
8144
8145fi
8146if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8147 echo "$ac_t""yes" 1>&6
8148 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8149else
8150 echo "$ac_t""no" 1>&6
8151fi
8152
8153 LDFLAGS="$ac_save_LDFLAGS"
8154
8155fi
8156
8157
8158 if test "$no_x" = "yes"; then
8159 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8160 fi
8161
8162 GUI_TK_LIBRARY="$X_LIBS"
8163 TOOLKIT_INCLUDE="$X_CFLAGS"
8164
dad6c0ea
VZ
8165 AFMINSTALL=afminstall
8166
ab9b9eab 8167
cd6d6d5b
VZ
8168 COMPILED_X_PROGRAM=0
8169
ab9b9eab 8170 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
24528b0c 8171echo "configure:8172: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8172
8173ac_find_includes=
8174for ac_dir in $SEARCH_INCLUDE;
8175 do
8176 if test -f "$ac_dir/Xm/Xm.h"; then
8177 ac_find_includes=$ac_dir
8178 break
8179 fi
8180 done
8181
8182 if test "$ac_find_includes" != "" ; then
8183 echo "$ac_t""found $ac_find_includes" 1>&6
8184 else
cd6d6d5b 8185 cat > conftest.$ac_ext <<EOF
24528b0c 8186#line 8187 "configure"
cd6d6d5b
VZ
8187#include "confdefs.h"
8188
8189 #include <Xm/Xm.h>
8190
8191int main() {
8192
8193 int version;
8194
8195 version = xmUseVersion;
8196
8197; return 0; }
8198EOF
24528b0c 8199if { (eval echo configure:8200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8200 rm -rf conftest*
8201
8202 echo "$ac_t""found in default search path" 1>&6
8203 COMPILED_X_PROGRAM=1
8204
8205else
8206 echo "configure: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8208 rm -rf conftest*
8209
8210 echo "$ac_t""no" 1>&6
8211 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8212
8213
8214fi
8215rm -f conftest*
ab9b9eab
VZ
8216 fi
8217
cd6d6d5b
VZ
8218 if test "$COMPILED_X_PROGRAM" = 0; then
8219 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
24528b0c 8220echo "configure:8221: checking for Motif/Lesstif library" >&5
cd6d6d5b 8221
ab9b9eab
VZ
8222ac_find_libraries=
8223for ac_dir in $SEARCH_LIB;
8224 do
8225 for ac_extension in a so sl; do
8226 if test -f "$ac_dir/libXm.$ac_extension"; then
8227 ac_find_libraries=$ac_dir
8228 break 2
8229 fi
8230 done
8231 done
8232
cd6d6d5b
VZ
8233 if test "$ac_find_libraries" != "" ; then
8234
ab9b9eab
VZ
8235 ac_path_to_include=$ac_find_includes
8236 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8237 result=$?
8238 if test $result = 0; then
8239 ac_path_to_include=""
8240 else
8241 ac_path_to_include="-I$ac_find_includes"
8242 fi
8243
cd6d6d5b 8244
ab9b9eab
VZ
8245 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8246 result=$?
8247 if test $result = 0; then
8248 ac_path_to_link=""
8249 else
8250 ac_path_to_link="-L$ac_find_libraries"
8251 fi
8252
8253
cd6d6d5b
VZ
8254 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8255 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8256 echo "$ac_t""found at $ac_find_libraries" 1>&6
8257 else
8258 cat > conftest.$ac_ext <<EOF
24528b0c 8259#line 8260 "configure"
cd6d6d5b 8260#include "confdefs.h"
ab9b9eab 8261
cd6d6d5b
VZ
8262 #include <Xm/Xm.h>
8263
8264int main() {
ab9b9eab 8265
cd6d6d5b 8266 int version;
ab9b9eab 8267
cd6d6d5b
VZ
8268 version = xmUseVersion;
8269
8270; return 0; }
8271EOF
24528b0c 8272if { (eval echo configure:8273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8273 rm -rf conftest*
8274
8275 echo "$ac_t""found in default search path" 1>&6
8276 COMPILED_X_PROGRAM=1
8277
8278else
8279 echo "configure: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8281 rm -rf conftest*
8282
8283 echo "$ac_t""no" 1>&6
8284 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8285
8286
8287fi
8288rm -f conftest*
8289 fi
ab9b9eab
VZ
8290 fi
8291
cd6d6d5b 8292
ab9b9eab
VZ
8293 XPM_LINK=""
8294 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
24528b0c 8295echo "configure:8296: checking for Xpm library" >&5
ab9b9eab
VZ
8296
8297ac_find_libraries=
8298for ac_dir in $SEARCH_LIB;
8299 do
8300 for ac_extension in a so sl; do
8301 if test -f "$ac_dir/libXpm.$ac_extension"; then
8302 ac_find_libraries=$ac_dir
8303 break 2
8304 fi
8305 done
8306 done
8307
8308 if test "$ac_find_libraries" != "" ; then
8309
8310 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8311 result=$?
8312 if test $result = 0; then
8313 ac_path_to_link=""
8314 else
8315 ac_path_to_link="-L$ac_find_libraries"
8316 fi
8317
8318 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8319 XPM_LINK="-lXpm "
8320 cat >> confdefs.h <<\EOF
8321#define wxHAVE_LIB_XPM 1
8322EOF
8323
8324 echo "$ac_t""found at $ac_find_libraries" 1>&6
8325 else
cd6d6d5b 8326 cat > conftest.$ac_ext <<EOF
24528b0c 8327#line 8328 "configure"
cd6d6d5b
VZ
8328#include "confdefs.h"
8329
8330 #include <X11/xpm.h>
8331
8332int main() {
8333
8334 int version;
8335
8336 version = XpmLibraryVersion();
8337
8338; return 0; }
8339EOF
24528b0c 8340if { (eval echo configure:8341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8341 rm -rf conftest*
8342
3ace2e6d
SN
8343 XPM_LINK="-lXpm "
8344 cat >> confdefs.h <<\EOF
8345#define wxHAVE_LIB_XPM 1
8346EOF
8347
8348 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
8349 COMPILED_X_PROGRAM=0
8350
8351else
8352 echo "configure: failed program was:" >&5
8353 cat conftest.$ac_ext >&5
8354 rm -rf conftest*
8355
8356 echo "$ac_t""no" 1>&6
8357 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8358
8359
8360fi
8361rm -f conftest*
ab9b9eab
VZ
8362 fi
8363
8364 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8365 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8366 TOOLKIT=MOTIF
8367
8368 GUIHEADERS="\$(MOTIF_HEADERS)"
8369 GUIOBJS="\$(MOTIF_GUIOBJS)"
8370 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8371 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8372 GUIDEPS="\$(MOTIF_GUIDEPS)"
8373 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8374 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8375 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8376 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8377 GUIDIST=MOTIF_DIST
8378fi
8379
e07802fc
VZ
8380if test "$wxUSE_PM" = 1; then
8381 TOOLKIT=PM
8382
8383 GUIOBJS="\$(PM_GUIOBJS)"
8384 GUIHEADERS="\$(PM_HEADERS)"
8385 COMMONOBJS="\$(PM_COMMONOBJS)"
8386 GENERICOBJS="\$(PM_GENERICOBJS)"
8387 GUIDEPS="\$(PM_GUIDEPS)"
8388 COMMONDEPS="\$(PM_COMMONDEPS)"
8389 GENERICDEPS="\$(PM_GENERICDEPS)"
8390 UNIXOBJS=
8391 UNIXDEPS=
8392 GUIDIST=GTK_DIST
8393fi
8394
8395if test "$TOOLKIT" != "PM" ; then
ec14dd32 8396 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8397else
8398 TOOLKIT_DIR="os2"
8399fi
10f2d63a 8400
2224580a 8401 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 8402
2224580a 8403 WX_LIBRARY="wx_${TOOLKIT_DIR}"
10f2d63a 8404
3fcdd07b
VZ
8405 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS)"
8406
b089607b 8407 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
8408 if test "$wxUSE_ODBC" = "yes" ; then
8409 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8410 fi
3fcdd07b
VZ
8411 fi
8412
d9d8273d 8413 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 8414 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
8415 fi
8416 if test "$wxUSE_LIBTIFF" = "yes" ; then
8417 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8418 fi
8419 if test "$wxUSE_LIBPNG" = "yes" ; then
8420 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8421 fi
8422 if test "$wxUSE_ZLIB" = "yes" ; then
8423 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8424 fi
10f2d63a 8425 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
2224580a
VZ
8426
8427 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8428 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8429 RPM_SPEC="wx\$(TOOLKIT).spec"
8430
8431 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8432 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 8433else
dad6c0ea
VZ
8434 USE_GUI=0
8435
07eb77a6
RL
8436 TOOLKIT_DIR="base"
8437 TOOLKIT_DEF="-D__WXBASE__"
8438
2224580a
VZ
8439 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8440 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
10f2d63a
VZ
8441
8442 WX_LIBRARY="wxbase"
2224580a
VZ
8443
8444 PORT_FILES="src/files.lst"
8445 RPM_FILES="src/rpmfiles.lst"
8446 RPM_SPEC="wxBase.spec"
8447
8448 GUIDIST="BASE_DIST"
8449 DISTDIR="wxBase"
10f2d63a
VZ
8450fi
8451
8452WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8453
8454WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8455
8456WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8457
8458WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8459WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8460WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8461
8462SHARED_LD=
8463PIC_FLAG=
8464WX_ALL=
8465WX_ALL_INSTALLED=
1d62a8b4 8466BURNT_LIBRARY_NAME=
10f2d63a 8467
b12915c1 8468
10f2d63a
VZ
8469if test "$wxUSE_SHARED" = "yes"; then
8470 case "${host}" in
8471 *-hp-hpux* )
8472 if test "$GCC" = yes ; then
69ffe1d2 8473 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8474 PIC_FLAG="-fPIC"
8475 else
8476 SHARED_LD="${CXX} -b -o"
8477 PIC_FLAG="+Z"
8478 fi
8479 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8480 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8481 ;;
b12915c1
VZ
8482
8483 *-*-linux* )
10f2d63a
VZ
8484 SHARED_LD="${CC} -shared -o"
8485 PIC_FLAG="-fPIC"
8486 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8487 WX_ALL="CREATE_LINKS"
00cf1208 8488 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 8489 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
00cf1208
RR
8490 fi
8491 ;;
10f2d63a
VZ
8492 *-*-irix5* | *-*-irix6* )
8493 if test "$GCC" = yes ; then
8494 SHARED_LD="${CC} -shared -o"
8495 PIC_FLAG="-fPIC"
8496 else
8497 SHARED_LD="${CXX} -shared -o"
8498 fi
8499 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8500 WX_ALL="CREATE_LINKS"
8501 ;;
8502 *-*-solaris2* )
8503 if test "$GCC" = yes ; then
8504 SHARED_LD="${CC} -shared -o"
8505 PIC_FLAG="-fPIC"
8506 else
8507 SHARED_LD="${CXX} -G -o"
8508 PIC_FLAG="-KPIC"
8509 fi
8510 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8511 WX_ALL="CREATE_LINKS"
8512 ;;
8513 *-*-sunos4* )
8514 SHARED_LD="${CC} -shared -o"
8515 PIC_FLAG="-fPIC"
8516 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8517 WX_ALL="CREATE_LINKS"
8518 ;;
8519 *-*-freebsd* | *-*-netbsd*)
8520 SHARED_LD="${CC} -shared -o"
8521 PIC_FLAG="-fPIC"
8522 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8523 WX_ALL="CREATE_LINKS"
8524 ;;
8525 *-*-osf* )
8526 SHARED_LD="${CXX} -shared -o"
8527 PIC_FLAG="-fPIC"
8528 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8529 WX_ALL="CREATE_LINKS"
8530 ;;
8531 *-*-dgux5* )
8532 SHARED_LD="${CXX} -shared -o"
8533 PIC_FLAG="-fPIC"
8534 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8535 WX_ALL="CREATE_LINKS"
8536 ;;
8537 *-*-sysv5* )
8538 SHARED_LD="${CC} -shared -o"
8539 PIC_FLAG="-fPIC"
8540 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8541 WX_ALL="CREATE_LINKS"
8542 ;;
8543 *-*-aix* )
8544 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8545 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8546 ;;
8547 *-*-cygwin32* )
8548 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8549 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8550 ;;
b12915c1 8551 *-*-mingw32* )
10f2d63a
VZ
8552 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8553 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8554 ;;
8555 *-pc-os2_emx )
e07802fc
VZ
8556 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8557 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 8558 ;;
b12915c1 8559 *-*-beos* )
e2b8b066 8560 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
8561 PIC_FLAG="-fPIC"
8562 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8563 WX_ALL="CREATE_LINKS"
8564 ;;
10f2d63a
VZ
8565 *)
8566 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8567 esac
8568
8569 if test "x$WX_TARGET_LIBRARY" = "x"; then
8570 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8571 fi
8572else
8573 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8574 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8575fi
8576
8577
8578for ac_hdr in strings.h
8579do
8580ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8581echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24528b0c 8582echo "configure:8583: checking for $ac_hdr" >&5
10f2d63a
VZ
8583if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8584 echo $ac_n "(cached) $ac_c" 1>&6
8585else
8586 cat > conftest.$ac_ext <<EOF
24528b0c 8587#line 8588 "configure"
10f2d63a
VZ
8588#include "confdefs.h"
8589#include <$ac_hdr>
8590EOF
8591ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 8592{ (eval echo configure:8593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8593ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8594if test -z "$ac_err"; then
8595 rm -rf conftest*
8596 eval "ac_cv_header_$ac_safe=yes"
8597else
8598 echo "$ac_err" >&5
8599 echo "configure: failed program was:" >&5
8600 cat conftest.$ac_ext >&5
8601 rm -rf conftest*
8602 eval "ac_cv_header_$ac_safe=no"
8603fi
8604rm -f conftest*
8605fi
8606if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8607 echo "$ac_t""yes" 1>&6
8608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8609 cat >> confdefs.h <<EOF
8610#define $ac_tr_hdr 1
8611EOF
8612
8613else
8614 echo "$ac_t""no" 1>&6
8615fi
8616done
8617
8618for ac_hdr in unistd.h
8619do
8620ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8621echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24528b0c 8622echo "configure:8623: checking for $ac_hdr" >&5
10f2d63a
VZ
8623if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8624 echo $ac_n "(cached) $ac_c" 1>&6
8625else
8626 cat > conftest.$ac_ext <<EOF
24528b0c 8627#line 8628 "configure"
10f2d63a
VZ
8628#include "confdefs.h"
8629#include <$ac_hdr>
8630EOF
8631ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 8632{ (eval echo configure:8633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8633ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8634if test -z "$ac_err"; then
8635 rm -rf conftest*
8636 eval "ac_cv_header_$ac_safe=yes"
8637else
8638 echo "$ac_err" >&5
8639 echo "configure: failed program was:" >&5
8640 cat conftest.$ac_ext >&5
8641 rm -rf conftest*
8642 eval "ac_cv_header_$ac_safe=no"
8643fi
8644rm -f conftest*
8645fi
8646if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8647 echo "$ac_t""yes" 1>&6
8648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8649 cat >> confdefs.h <<EOF
8650#define $ac_tr_hdr 1
8651EOF
8652
8653else
8654 echo "$ac_t""no" 1>&6
8655fi
8656done
8657
8658for ac_hdr in wchar.h
8659do
8660ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8661echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24528b0c 8662echo "configure:8663: checking for $ac_hdr" >&5
10f2d63a
VZ
8663if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8664 echo $ac_n "(cached) $ac_c" 1>&6
8665else
8666 cat > conftest.$ac_ext <<EOF
24528b0c 8667#line 8668 "configure"
10f2d63a
VZ
8668#include "confdefs.h"
8669#include <$ac_hdr>
8670EOF
8671ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 8672{ (eval echo configure:8673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8673ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8674if test -z "$ac_err"; then
8675 rm -rf conftest*
8676 eval "ac_cv_header_$ac_safe=yes"
8677else
8678 echo "$ac_err" >&5
8679 echo "configure: failed program was:" >&5
8680 cat conftest.$ac_ext >&5
8681 rm -rf conftest*
8682 eval "ac_cv_header_$ac_safe=no"
8683fi
8684rm -f conftest*
8685fi
8686if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8687 echo "$ac_t""yes" 1>&6
8688 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8689 cat >> confdefs.h <<EOF
8690#define $ac_tr_hdr 1
8691EOF
8692
8693else
8694 echo "$ac_t""no" 1>&6
8695fi
8696done
8697
8698for ac_hdr in wcstr.h
8699do
8700ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8701echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24528b0c 8702echo "configure:8703: checking for $ac_hdr" >&5
10f2d63a
VZ
8703if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8704 echo $ac_n "(cached) $ac_c" 1>&6
8705else
8706 cat > conftest.$ac_ext <<EOF
24528b0c 8707#line 8708 "configure"
10f2d63a
VZ
8708#include "confdefs.h"
8709#include <$ac_hdr>
8710EOF
8711ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 8712{ (eval echo configure:8713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8713ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8714if test -z "$ac_err"; then
8715 rm -rf conftest*
8716 eval "ac_cv_header_$ac_safe=yes"
8717else
8718 echo "$ac_err" >&5
8719 echo "configure: failed program was:" >&5
8720 cat conftest.$ac_ext >&5
8721 rm -rf conftest*
8722 eval "ac_cv_header_$ac_safe=no"
8723fi
8724rm -f conftest*
8725fi
8726if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8727 echo "$ac_t""yes" 1>&6
8728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8729 cat >> confdefs.h <<EOF
8730#define $ac_tr_hdr 1
8731EOF
8732
8733else
8734 echo "$ac_t""no" 1>&6
8735fi
8736done
8737
8738for ac_hdr in fnmatch.h
8739do
8740ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8741echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24528b0c 8742echo "configure:8743: checking for $ac_hdr" >&5
10f2d63a
VZ
8743if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8744 echo $ac_n "(cached) $ac_c" 1>&6
8745else
8746 cat > conftest.$ac_ext <<EOF
24528b0c 8747#line 8748 "configure"
10f2d63a
VZ
8748#include "confdefs.h"
8749#include <$ac_hdr>
8750EOF
8751ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 8752{ (eval echo configure:8753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8753ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8754if test -z "$ac_err"; then
8755 rm -rf conftest*
8756 eval "ac_cv_header_$ac_safe=yes"
8757else
8758 echo "$ac_err" >&5
8759 echo "configure: failed program was:" >&5
8760 cat conftest.$ac_ext >&5
8761 rm -rf conftest*
8762 eval "ac_cv_header_$ac_safe=no"
8763fi
8764rm -f conftest*
8765fi
8766if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8767 echo "$ac_t""yes" 1>&6
8768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8769 cat >> confdefs.h <<EOF
8770#define $ac_tr_hdr 1
8771EOF
8772
8773else
8774 echo "$ac_t""no" 1>&6
8775fi
8776done
8777
8778
8779if test "$wxUSE_GUI" = "yes"; then
8780 for ac_hdr in X11/XKBlib.h
8781do
8782ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8783echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24528b0c 8784echo "configure:8785: checking for $ac_hdr" >&5
10f2d63a
VZ
8785if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6
8787else
8788 cat > conftest.$ac_ext <<EOF
24528b0c 8789#line 8790 "configure"
10f2d63a
VZ
8790#include "confdefs.h"
8791#include <$ac_hdr>
8792EOF
8793ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 8794{ (eval echo configure:8795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8795ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8796if test -z "$ac_err"; then
8797 rm -rf conftest*
8798 eval "ac_cv_header_$ac_safe=yes"
8799else
8800 echo "$ac_err" >&5
8801 echo "configure: failed program was:" >&5
8802 cat conftest.$ac_ext >&5
8803 rm -rf conftest*
8804 eval "ac_cv_header_$ac_safe=no"
8805fi
8806rm -f conftest*
8807fi
8808if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8809 echo "$ac_t""yes" 1>&6
8810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8811 cat >> confdefs.h <<EOF
8812#define $ac_tr_hdr 1
8813EOF
8814
8815else
8816 echo "$ac_t""no" 1>&6
8817fi
8818done
8819
8820fi
8821
8822
8823echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
24528b0c 8824echo "configure:8825: checking for ANSI C header files" >&5
10f2d63a
VZ
8825if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8826 echo $ac_n "(cached) $ac_c" 1>&6
8827else
8828 cat > conftest.$ac_ext <<EOF
24528b0c 8829#line 8830 "configure"
10f2d63a
VZ
8830#include "confdefs.h"
8831#include <stdlib.h>
8832#include <stdarg.h>
8833#include <string.h>
8834#include <float.h>
8835EOF
8836ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 8837{ (eval echo configure:8838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8838ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8839if test -z "$ac_err"; then
8840 rm -rf conftest*
8841 ac_cv_header_stdc=yes
8842else
8843 echo "$ac_err" >&5
8844 echo "configure: failed program was:" >&5
8845 cat conftest.$ac_ext >&5
8846 rm -rf conftest*
8847 ac_cv_header_stdc=no
8848fi
8849rm -f conftest*
8850
8851if test $ac_cv_header_stdc = yes; then
8852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8853cat > conftest.$ac_ext <<EOF
24528b0c 8854#line 8855 "configure"
10f2d63a
VZ
8855#include "confdefs.h"
8856#include <string.h>
8857EOF
8858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8859 egrep "memchr" >/dev/null 2>&1; then
8860 :
8861else
8862 rm -rf conftest*
8863 ac_cv_header_stdc=no
8864fi
8865rm -f conftest*
8866
8867fi
8868
8869if test $ac_cv_header_stdc = yes; then
8870 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8871cat > conftest.$ac_ext <<EOF
24528b0c 8872#line 8873 "configure"
10f2d63a
VZ
8873#include "confdefs.h"
8874#include <stdlib.h>
8875EOF
8876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8877 egrep "free" >/dev/null 2>&1; then
8878 :
8879else
8880 rm -rf conftest*
8881 ac_cv_header_stdc=no
8882fi
8883rm -f conftest*
8884
8885fi
8886
8887if test $ac_cv_header_stdc = yes; then
8888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8889if test "$cross_compiling" = yes; then
8890 :
8891else
8892 cat > conftest.$ac_ext <<EOF
24528b0c 8893#line 8894 "configure"
10f2d63a
VZ
8894#include "confdefs.h"
8895#include <ctype.h>
8896#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8897#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8898#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8899int main () { int i; for (i = 0; i < 256; i++)
8900if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8901exit (0); }
8902
8903EOF
24528b0c 8904if { (eval echo configure:8905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8905then
8906 :
8907else
8908 echo "configure: failed program was:" >&5
8909 cat conftest.$ac_ext >&5
8910 rm -fr conftest*
8911 ac_cv_header_stdc=no
8912fi
8913rm -fr conftest*
8914fi
8915
8916fi
8917fi
8918
8919echo "$ac_t""$ac_cv_header_stdc" 1>&6
8920if test $ac_cv_header_stdc = yes; then
8921 cat >> confdefs.h <<\EOF
8922#define STDC_HEADERS 1
8923EOF
8924
8925fi
8926
8927echo $ac_n "checking for mode_t""... $ac_c" 1>&6
24528b0c 8928echo "configure:8929: checking for mode_t" >&5
10f2d63a
VZ
8929if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8930 echo $ac_n "(cached) $ac_c" 1>&6
8931else
8932 cat > conftest.$ac_ext <<EOF
24528b0c 8933#line 8934 "configure"
10f2d63a
VZ
8934#include "confdefs.h"
8935#include <sys/types.h>
8936#if STDC_HEADERS
8937#include <stdlib.h>
8938#include <stddef.h>
8939#endif
8940EOF
8941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8942 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8943 rm -rf conftest*
8944 ac_cv_type_mode_t=yes
8945else
8946 rm -rf conftest*
8947 ac_cv_type_mode_t=no
8948fi
8949rm -f conftest*
8950
8951fi
8952echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8953if test $ac_cv_type_mode_t = no; then
8954 cat >> confdefs.h <<\EOF
8955#define mode_t int
8956EOF
8957
8958fi
8959
8960echo $ac_n "checking for off_t""... $ac_c" 1>&6
24528b0c 8961echo "configure:8962: checking for off_t" >&5
10f2d63a
VZ
8962if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8963 echo $ac_n "(cached) $ac_c" 1>&6
8964else
8965 cat > conftest.$ac_ext <<EOF
24528b0c 8966#line 8967 "configure"
10f2d63a
VZ
8967#include "confdefs.h"
8968#include <sys/types.h>
8969#if STDC_HEADERS
8970#include <stdlib.h>
8971#include <stddef.h>
8972#endif
8973EOF
8974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8975 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8976 rm -rf conftest*
8977 ac_cv_type_off_t=yes
8978else
8979 rm -rf conftest*
8980 ac_cv_type_off_t=no
8981fi
8982rm -f conftest*
8983
8984fi
8985echo "$ac_t""$ac_cv_type_off_t" 1>&6
8986if test $ac_cv_type_off_t = no; then
8987 cat >> confdefs.h <<\EOF
8988#define off_t long
8989EOF
8990
8991fi
8992
8993echo $ac_n "checking for pid_t""... $ac_c" 1>&6
24528b0c 8994echo "configure:8995: checking for pid_t" >&5
10f2d63a
VZ
8995if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8996 echo $ac_n "(cached) $ac_c" 1>&6
8997else
8998 cat > conftest.$ac_ext <<EOF
24528b0c 8999#line 9000 "configure"
10f2d63a
VZ
9000#include "confdefs.h"
9001#include <sys/types.h>
9002#if STDC_HEADERS
9003#include <stdlib.h>
9004#include <stddef.h>
9005#endif
9006EOF
9007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9008 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9009 rm -rf conftest*
9010 ac_cv_type_pid_t=yes
9011else
9012 rm -rf conftest*
9013 ac_cv_type_pid_t=no
9014fi
9015rm -f conftest*
9016
9017fi
9018echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9019if test $ac_cv_type_pid_t = no; then
9020 cat >> confdefs.h <<\EOF
9021#define pid_t int
9022EOF
9023
9024fi
9025
9026echo $ac_n "checking for size_t""... $ac_c" 1>&6
24528b0c 9027echo "configure:9028: checking for size_t" >&5
10f2d63a
VZ
9028if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9029 echo $ac_n "(cached) $ac_c" 1>&6
9030else
9031 cat > conftest.$ac_ext <<EOF
24528b0c 9032#line 9033 "configure"
10f2d63a
VZ
9033#include "confdefs.h"
9034#include <sys/types.h>
9035#if STDC_HEADERS
9036#include <stdlib.h>
9037#include <stddef.h>
9038#endif
9039EOF
9040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9041 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9042 rm -rf conftest*
9043 ac_cv_type_size_t=yes
9044else
9045 rm -rf conftest*
9046 ac_cv_type_size_t=no
9047fi
9048rm -f conftest*
9049
9050fi
9051echo "$ac_t""$ac_cv_type_size_t" 1>&6
9052if test $ac_cv_type_size_t = no; then
9053 cat >> confdefs.h <<\EOF
9054#define size_t unsigned
9055EOF
9056
9057fi
9058
9059echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
24528b0c 9060echo "configure:9061: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
9061if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9062 echo $ac_n "(cached) $ac_c" 1>&6
9063else
9064 cat > conftest.$ac_ext <<EOF
24528b0c 9065#line 9066 "configure"
10f2d63a
VZ
9066#include "confdefs.h"
9067#include <sys/types.h>
9068EOF
9069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9070 egrep "uid_t" >/dev/null 2>&1; then
9071 rm -rf conftest*
9072 ac_cv_type_uid_t=yes
9073else
9074 rm -rf conftest*
9075 ac_cv_type_uid_t=no
9076fi
9077rm -f conftest*
9078
9079fi
9080
9081echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9082if test $ac_cv_type_uid_t = no; then
9083 cat >> confdefs.h <<\EOF
9084#define uid_t int
9085EOF
9086
9087 cat >> confdefs.h <<\EOF
9088#define gid_t int
9089EOF
9090
9091fi
9092
9093
9094
b12915c1 9095echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
24528b0c 9096echo "configure:9097: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
9097if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9098 echo $ac_n "(cached) $ac_c" 1>&6
9099else
9100
9101 cat > conftest.$ac_ext <<EOF
24528b0c 9102#line 9103 "configure"
b12915c1
VZ
9103#include "confdefs.h"
9104#include <pwd.h>
9105int main() {
9106
9107 char *p;
9108 struct passwd *pw;
9109 p = pw->pw_gecos;
9110
9111; return 0; }
9112EOF
24528b0c 9113if { (eval echo configure:9114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
9114 rm -rf conftest*
9115
9116 wx_cv_struct_pw_gecos=yes
9117 cat >> confdefs.h <<\EOF
9118#define HAVE_PW_GECOS 1
9119EOF
9120
9121
9122else
9123 echo "configure: failed program was:" >&5
9124 cat conftest.$ac_ext >&5
9125 rm -rf conftest*
9126
9127 wx_cv_struct_pw_gecos=no
9128
9129
9130fi
9131rm -f conftest*
9132
9133
9134fi
9135
9136echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9137
10f2d63a
VZ
9138
9139echo $ac_n "checking for working const""... $ac_c" 1>&6
24528b0c 9140echo "configure:9141: checking for working const" >&5
10f2d63a
VZ
9141if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9142 echo $ac_n "(cached) $ac_c" 1>&6
9143else
9144 cat > conftest.$ac_ext <<EOF
24528b0c 9145#line 9146 "configure"
10f2d63a
VZ
9146#include "confdefs.h"
9147
9148int main() {
9149
9150/* Ultrix mips cc rejects this. */
24528b0c 9151typedef int charset[2]; const charset x;
10f2d63a
VZ
9152/* SunOS 4.1.1 cc rejects this. */
9153char const *const *ccp;
9154char **p;
9155/* NEC SVR4.0.2 mips cc rejects this. */
9156struct point {int x, y;};
9157static struct point const zero = {0,0};
9158/* AIX XL C 1.02.0.0 rejects this.
9159 It does not let you subtract one const X* pointer from another in an arm
9160 of an if-expression whose if-part is not a constant expression */
9161const char *g = "string";
9162ccp = &g + (g ? g-g : 0);
9163/* HPUX 7.0 cc rejects these. */
9164++ccp;
9165p = (char**) ccp;
9166ccp = (char const *const *) p;
9167{ /* SCO 3.2v4 cc rejects this. */
9168 char *t;
9169 char const *s = 0 ? (char *) 0 : (char const *) 0;
9170
9171 *t++ = 0;
9172}
9173{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9174 int x[] = {25, 17};
9175 const int *foo = &x[0];
9176 ++foo;
9177}
9178{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9179 typedef const int *iptr;
9180 iptr p = 0;
9181 ++p;
9182}
9183{ /* AIX XL C 1.02.0.0 rejects this saying
9184 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9185 struct s { int j; const int *ap[3]; };
9186 struct s *b; b->j = 5;
9187}
9188{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9189 const int foo = 10;
9190}
9191
9192; return 0; }
9193EOF
24528b0c 9194if { (eval echo configure:9195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9195 rm -rf conftest*
9196 ac_cv_c_const=yes
9197else
9198 echo "configure: failed program was:" >&5
9199 cat conftest.$ac_ext >&5
9200 rm -rf conftest*
9201 ac_cv_c_const=no
9202fi
9203rm -f conftest*
9204fi
9205
9206echo "$ac_t""$ac_cv_c_const" 1>&6
9207if test $ac_cv_c_const = no; then
9208 cat >> confdefs.h <<\EOF
9209#define const
9210EOF
9211
9212fi
9213
9214echo $ac_n "checking for inline""... $ac_c" 1>&6
24528b0c 9215echo "configure:9216: checking for inline" >&5
10f2d63a
VZ
9216if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9217 echo $ac_n "(cached) $ac_c" 1>&6
9218else
9219 ac_cv_c_inline=no
9220for ac_kw in inline __inline__ __inline; do
9221 cat > conftest.$ac_ext <<EOF
24528b0c 9222#line 9223 "configure"
10f2d63a
VZ
9223#include "confdefs.h"
9224
9225int main() {
24528b0c 9226} $ac_kw foo() {
10f2d63a
VZ
9227; return 0; }
9228EOF
24528b0c 9229if { (eval echo configure:9230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9230 rm -rf conftest*
9231 ac_cv_c_inline=$ac_kw; break
9232else
9233 echo "configure: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9235fi
9236rm -f conftest*
9237done
9238
9239fi
9240
9241echo "$ac_t""$ac_cv_c_inline" 1>&6
9242case "$ac_cv_c_inline" in
9243 inline | yes) ;;
9244 no) cat >> confdefs.h <<\EOF
9245#define inline
9246EOF
9247 ;;
9248 *) cat >> confdefs.h <<EOF
9249#define inline $ac_cv_c_inline
9250EOF
9251 ;;
9252esac
9253
9254
9255echo $ac_n "checking size of char""... $ac_c" 1>&6
24528b0c 9256echo "configure:9257: checking size of char" >&5
10f2d63a
VZ
9257if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9259else
9260 if test "$cross_compiling" = yes; then
9261 ac_cv_sizeof_char=1
9262else
9263 cat > conftest.$ac_ext <<EOF
24528b0c 9264#line 9265 "configure"
10f2d63a
VZ
9265#include "confdefs.h"
9266#include <stdio.h>
9267main()
9268{
9269 FILE *f=fopen("conftestval", "w");
9270 if (!f) exit(1);
9271 fprintf(f, "%d\n", sizeof(char));
9272 exit(0);
9273}
9274EOF
24528b0c 9275if { (eval echo configure:9276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9276then
9277 ac_cv_sizeof_char=`cat conftestval`
9278else
9279 echo "configure: failed program was:" >&5
9280 cat conftest.$ac_ext >&5
9281 rm -fr conftest*
9282 ac_cv_sizeof_char=0
9283fi
9284rm -fr conftest*
9285fi
9286
9287fi
9288echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9289cat >> confdefs.h <<EOF
9290#define SIZEOF_CHAR $ac_cv_sizeof_char
9291EOF
9292
9293
9294echo $ac_n "checking size of short""... $ac_c" 1>&6
24528b0c 9295echo "configure:9296: checking size of short" >&5
10f2d63a
VZ
9296if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9297 echo $ac_n "(cached) $ac_c" 1>&6
9298else
9299 if test "$cross_compiling" = yes; then
9300 ac_cv_sizeof_short=2
9301else
9302 cat > conftest.$ac_ext <<EOF
24528b0c 9303#line 9304 "configure"
10f2d63a
VZ
9304#include "confdefs.h"
9305#include <stdio.h>
9306main()
9307{
9308 FILE *f=fopen("conftestval", "w");
9309 if (!f) exit(1);
9310 fprintf(f, "%d\n", sizeof(short));
9311 exit(0);
9312}
9313EOF
24528b0c 9314if { (eval echo configure:9315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9315then
9316 ac_cv_sizeof_short=`cat conftestval`
9317else
9318 echo "configure: failed program was:" >&5
9319 cat conftest.$ac_ext >&5
9320 rm -fr conftest*
9321 ac_cv_sizeof_short=0
9322fi
9323rm -fr conftest*
9324fi
9325
9326fi
9327echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9328cat >> confdefs.h <<EOF
9329#define SIZEOF_SHORT $ac_cv_sizeof_short
9330EOF
9331
9332
9333echo $ac_n "checking size of int *""... $ac_c" 1>&6
24528b0c 9334echo "configure:9335: checking size of int *" >&5
10f2d63a
VZ
9335if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9336 echo $ac_n "(cached) $ac_c" 1>&6
9337else
9338 if test "$cross_compiling" = yes; then
9339 ac_cv_sizeof_int_p=4
9340else
9341 cat > conftest.$ac_ext <<EOF
24528b0c 9342#line 9343 "configure"
10f2d63a
VZ
9343#include "confdefs.h"
9344#include <stdio.h>
9345main()
9346{
9347 FILE *f=fopen("conftestval", "w");
9348 if (!f) exit(1);
9349 fprintf(f, "%d\n", sizeof(int *));
9350 exit(0);
9351}
9352EOF
24528b0c 9353if { (eval echo configure:9354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9354then
9355 ac_cv_sizeof_int_p=`cat conftestval`
9356else
9357 echo "configure: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9359 rm -fr conftest*
9360 ac_cv_sizeof_int_p=0
9361fi
9362rm -fr conftest*
9363fi
9364
9365fi
9366echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9367cat >> confdefs.h <<EOF
9368#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9369EOF
9370
9371
9372echo $ac_n "checking size of int""... $ac_c" 1>&6
24528b0c 9373echo "configure:9374: checking size of int" >&5
10f2d63a
VZ
9374if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9375 echo $ac_n "(cached) $ac_c" 1>&6
9376else
9377 if test "$cross_compiling" = yes; then
9378 ac_cv_sizeof_int=4
9379else
9380 cat > conftest.$ac_ext <<EOF
24528b0c 9381#line 9382 "configure"
10f2d63a
VZ
9382#include "confdefs.h"
9383#include <stdio.h>
9384main()
9385{
9386 FILE *f=fopen("conftestval", "w");
9387 if (!f) exit(1);
9388 fprintf(f, "%d\n", sizeof(int));
9389 exit(0);
9390}
9391EOF
24528b0c 9392if { (eval echo configure:9393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9393then
9394 ac_cv_sizeof_int=`cat conftestval`
9395else
9396 echo "configure: failed program was:" >&5
9397 cat conftest.$ac_ext >&5
9398 rm -fr conftest*
9399 ac_cv_sizeof_int=0
9400fi
9401rm -fr conftest*
9402fi
9403
9404fi
9405echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9406cat >> confdefs.h <<EOF
9407#define SIZEOF_INT $ac_cv_sizeof_int
9408EOF
9409
9410
9411echo $ac_n "checking size of long""... $ac_c" 1>&6
24528b0c 9412echo "configure:9413: checking size of long" >&5
10f2d63a
VZ
9413if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9414 echo $ac_n "(cached) $ac_c" 1>&6
9415else
9416 if test "$cross_compiling" = yes; then
9417 ac_cv_sizeof_long=4
9418else
9419 cat > conftest.$ac_ext <<EOF
24528b0c 9420#line 9421 "configure"
10f2d63a
VZ
9421#include "confdefs.h"
9422#include <stdio.h>
9423main()
9424{
9425 FILE *f=fopen("conftestval", "w");
9426 if (!f) exit(1);
9427 fprintf(f, "%d\n", sizeof(long));
9428 exit(0);
9429}
9430EOF
24528b0c 9431if { (eval echo configure:9432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9432then
9433 ac_cv_sizeof_long=`cat conftestval`
9434else
9435 echo "configure: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9437 rm -fr conftest*
9438 ac_cv_sizeof_long=0
9439fi
9440rm -fr conftest*
9441fi
9442
9443fi
9444echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9445cat >> confdefs.h <<EOF
9446#define SIZEOF_LONG $ac_cv_sizeof_long
9447EOF
9448
9449
9450echo $ac_n "checking size of long long""... $ac_c" 1>&6
24528b0c 9451echo "configure:9452: checking size of long long" >&5
10f2d63a
VZ
9452if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9453 echo $ac_n "(cached) $ac_c" 1>&6
9454else
9455 if test "$cross_compiling" = yes; then
9456 ac_cv_sizeof_long_long=0
9457else
9458 cat > conftest.$ac_ext <<EOF
24528b0c 9459#line 9460 "configure"
10f2d63a
VZ
9460#include "confdefs.h"
9461#include <stdio.h>
9462main()
9463{
9464 FILE *f=fopen("conftestval", "w");
9465 if (!f) exit(1);
9466 fprintf(f, "%d\n", sizeof(long long));
9467 exit(0);
9468}
9469EOF
24528b0c 9470if { (eval echo configure:9471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9471then
9472 ac_cv_sizeof_long_long=`cat conftestval`
9473else
9474 echo "configure: failed program was:" >&5
9475 cat conftest.$ac_ext >&5
9476 rm -fr conftest*
9477 ac_cv_sizeof_long_long=0
9478fi
9479rm -fr conftest*
9480fi
9481
9482fi
9483echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9484cat >> confdefs.h <<EOF
9485#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9486EOF
9487
9488
9489
9490echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
24528b0c 9491echo "configure:9492: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9492if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9493 echo $ac_n "(cached) $ac_c" 1>&6
9494else
9495 ac_cv_c_bigendian=unknown
9496# See if sys/param.h defines the BYTE_ORDER macro.
9497cat > conftest.$ac_ext <<EOF
24528b0c 9498#line 9499 "configure"
10f2d63a
VZ
9499#include "confdefs.h"
9500#include <sys/types.h>
9501#include <sys/param.h>
9502int main() {
9503
9504#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9505 bogus endian macros
9506#endif
9507; return 0; }
9508EOF
24528b0c 9509if { (eval echo configure:9510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9510 rm -rf conftest*
9511 # It does; now see whether it defined to BIG_ENDIAN or not.
9512cat > conftest.$ac_ext <<EOF
24528b0c 9513#line 9514 "configure"
10f2d63a
VZ
9514#include "confdefs.h"
9515#include <sys/types.h>
9516#include <sys/param.h>
9517int main() {
9518
9519#if BYTE_ORDER != BIG_ENDIAN
9520 not big endian
9521#endif
9522; return 0; }
9523EOF
24528b0c 9524if { (eval echo configure:9525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9525 rm -rf conftest*
9526 ac_cv_c_bigendian=yes
9527else
9528 echo "configure: failed program was:" >&5
9529 cat conftest.$ac_ext >&5
9530 rm -rf conftest*
9531 ac_cv_c_bigendian=no
9532fi
9533rm -f conftest*
9534else
9535 echo "configure: failed program was:" >&5
9536 cat conftest.$ac_ext >&5
9537fi
9538rm -f conftest*
9539if test $ac_cv_c_bigendian = unknown; then
9540if test "$cross_compiling" = yes; then
9541 ac_cv_c_bigendian=unknown
9542else
9543 cat > conftest.$ac_ext <<EOF
24528b0c 9544#line 9545 "configure"
10f2d63a
VZ
9545#include "confdefs.h"
9546main () {
9547 /* Are we little or big endian? From Harbison&Steele. */
9548 union
9549 {
9550 long l;
9551 char c[sizeof (long)];
9552 } u;
9553 u.l = 1;
9554 exit (u.c[sizeof (long) - 1] == 1);
9555}
9556EOF
24528b0c 9557if { (eval echo configure:9558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9558then
9559 ac_cv_c_bigendian=no
9560else
9561 echo "configure: failed program was:" >&5
9562 cat conftest.$ac_ext >&5
9563 rm -fr conftest*
9564 ac_cv_c_bigendian=yes
9565fi
9566rm -fr conftest*
9567fi
9568
9569fi
9570fi
9571
9572echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9573if test $ac_cv_c_bigendian = unknown; then
9574 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
9575fi
9576if test $ac_cv_c_bigendian = yes; then
9577 cat >> confdefs.h <<\EOF
9578#define WORDS_BIGENDIAN 1
9579EOF
9580
9581fi
9582
9583
9584
9585 if test "$cross_compiling" = "yes"; then
9586 cat >> confdefs.h <<\EOF
9587#define wxUSE_IOSTREAMH 1
9588EOF
9589
9590 else
9591
9592 ac_ext=C
9593# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9594ac_cpp='$CXXCPP $CPPFLAGS'
9595ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9596ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9597cross_compiling=$ac_cv_prog_cxx_cross
9598
9599
9600 for ac_hdr in iostream
9601do
9602ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9603echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24528b0c 9604echo "configure:9605: checking for $ac_hdr" >&5
10f2d63a
VZ
9605if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9606 echo $ac_n "(cached) $ac_c" 1>&6
9607else
9608 cat > conftest.$ac_ext <<EOF
24528b0c 9609#line 9610 "configure"
10f2d63a
VZ
9610#include "confdefs.h"
9611#include <$ac_hdr>
9612EOF
9613ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 9614{ (eval echo configure:9615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9615ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9616if test -z "$ac_err"; then
9617 rm -rf conftest*
9618 eval "ac_cv_header_$ac_safe=yes"
9619else
9620 echo "$ac_err" >&5
9621 echo "configure: failed program was:" >&5
9622 cat conftest.$ac_ext >&5
9623 rm -rf conftest*
9624 eval "ac_cv_header_$ac_safe=no"
9625fi
9626rm -f conftest*
9627fi
9628if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9629 echo "$ac_t""yes" 1>&6
9630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9631 cat >> confdefs.h <<EOF
9632#define $ac_tr_hdr 1
9633EOF
9634
9635else
9636 echo "$ac_t""no" 1>&6
9637fi
9638done
9639
9640
9641 if test "x$HAVE_IOSTREAM" = x ; then
9642 cat >> confdefs.h <<\EOF
9643#define wxUSE_IOSTREAMH 1
9644EOF
9645
9646 else
9647 :
9648 fi
9649
9650 ac_ext=c
9651# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9652ac_cpp='$CPP $CPPFLAGS'
9653ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9654ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9655cross_compiling=$ac_cv_prog_cc_cross
9656
9657 fi
9658
9659
9660
9661 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
24528b0c 9662echo "configure:9663: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9663if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9664 echo $ac_n "(cached) $ac_c" 1>&6
9665else
9666
9667
9668 ac_ext=C
9669# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9670ac_cpp='$CXXCPP $CPPFLAGS'
9671ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9672ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9673cross_compiling=$ac_cv_prog_cxx_cross
9674
9675
9676 cat > conftest.$ac_ext <<EOF
24528b0c 9677#line 9678 "configure"
10f2d63a
VZ
9678#include "confdefs.h"
9679
9680
9681int main() {
9682
9683 bool b = true;
9684
9685 return 0;
9686
9687; return 0; }
9688EOF
24528b0c 9689if { (eval echo configure:9690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9690 rm -rf conftest*
9691
9692 cat >> confdefs.h <<\EOF
9693#define HAVE_BOOL 1
9694EOF
9695
9696 wx_cv_cpp_bool=yes
9697
9698else
9699 echo "configure: failed program was:" >&5
9700 cat conftest.$ac_ext >&5
9701 rm -rf conftest*
9702
9703 wx_cv_cpp_bool=no
9704
9705
9706fi
9707rm -f conftest*
9708
9709 ac_ext=c
9710# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9711ac_cpp='$CPP $CPPFLAGS'
9712ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9713ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9714cross_compiling=$ac_cv_prog_cc_cross
9715
9716
9717fi
9718
9719echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9720
9721 if test "$wx_cv_cpp_bool" = "yes"; then
9722 cat >> confdefs.h <<\EOF
9723#define HAVE_BOOL 1
9724EOF
9725
9726 fi
9727
9728
9729
10f2d63a 9730echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
24528b0c 9731echo "configure:9732: checking if you need GNU extensions" >&5
10f2d63a
VZ
9732if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9733 echo $ac_n "(cached) $ac_c" 1>&6
9734else
9735
9736 cat > conftest.$ac_ext <<EOF
24528b0c 9737#line 9738 "configure"
10f2d63a
VZ
9738#include "confdefs.h"
9739#include <features.h>
9740int main() {
9741
9742
9743#ifndef __GNU_LIBRARY__
9744 Compile error wanted
9745#endif
9746
9747
9748; return 0; }
9749EOF
24528b0c 9750if { (eval echo configure:9751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9751 rm -rf conftest*
9752 wx_cv_gnu_extensions=yes
9753else
9754 echo "configure: failed program was:" >&5
9755 cat conftest.$ac_ext >&5
9756 rm -rf conftest*
9757 wx_cv_gnu_extensions=no
9758fi
9759rm -f conftest*
9760
9761fi
9762
9763
9764echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9765if test "$wx_cv_gnu_extensions" = "yes"; then
9766 cat >> confdefs.h <<EOF
9767#define _GNU_SOURCE 1
9768EOF
9769
9770fi
9771
9772
9773
9774echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
24528b0c 9775echo "configure:9776: checking for wcslen in -lc" >&5
10f2d63a
VZ
9776ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9777if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9778 echo $ac_n "(cached) $ac_c" 1>&6
9779else
9780 ac_save_LIBS="$LIBS"
9781LIBS="-lc $LIBS"
9782cat > conftest.$ac_ext <<EOF
24528b0c 9783#line 9784 "configure"
10f2d63a
VZ
9784#include "confdefs.h"
9785/* Override any gcc2 internal prototype to avoid an error. */
9786/* We use char because int might match the return type of a gcc2
9787 builtin and then its argument prototype would still apply. */
9788char wcslen();
9789
9790int main() {
9791wcslen()
9792; return 0; }
9793EOF
24528b0c 9794if { (eval echo configure:9795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9795 rm -rf conftest*
9796 eval "ac_cv_lib_$ac_lib_var=yes"
9797else
9798 echo "configure: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9800 rm -rf conftest*
9801 eval "ac_cv_lib_$ac_lib_var=no"
9802fi
9803rm -f conftest*
9804LIBS="$ac_save_LIBS"
9805
9806fi
9807if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9808 echo "$ac_t""yes" 1>&6
9809
9810 cat >> confdefs.h <<\EOF
9811#define HAVE_WCSLEN 1
9812EOF
9813
9814 WCHAR_LINK=""
9815
9816else
9817 echo "$ac_t""no" 1>&6
9818
9819 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
24528b0c 9820echo "configure:9821: checking for wcslen in -lw" >&5
10f2d63a
VZ
9821ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9822if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9823 echo $ac_n "(cached) $ac_c" 1>&6
9824else
9825 ac_save_LIBS="$LIBS"
9826LIBS="-lw $LIBS"
9827cat > conftest.$ac_ext <<EOF
24528b0c 9828#line 9829 "configure"
10f2d63a
VZ
9829#include "confdefs.h"
9830/* Override any gcc2 internal prototype to avoid an error. */
9831/* We use char because int might match the return type of a gcc2
9832 builtin and then its argument prototype would still apply. */
9833char wcslen();
9834
9835int main() {
9836wcslen()
9837; return 0; }
9838EOF
24528b0c 9839if { (eval echo configure:9840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9840 rm -rf conftest*
9841 eval "ac_cv_lib_$ac_lib_var=yes"
9842else
9843 echo "configure: failed program was:" >&5
9844 cat conftest.$ac_ext >&5
9845 rm -rf conftest*
9846 eval "ac_cv_lib_$ac_lib_var=no"
9847fi
9848rm -f conftest*
9849LIBS="$ac_save_LIBS"
9850
9851fi
9852if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9853 echo "$ac_t""yes" 1>&6
9854
9855 cat >> confdefs.h <<\EOF
9856#define HAVE_WCSLEN 1
9857EOF
9858
9859 WCHAR_LINK="-lw"
9860
9861else
9862 echo "$ac_t""no" 1>&6
9863fi
9864
9865
9866fi
9867
9868
9869echo $ac_n "checking for vprintf""... $ac_c" 1>&6
24528b0c 9870echo "configure:9871: checking for vprintf" >&5
10f2d63a
VZ
9871if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9872 echo $ac_n "(cached) $ac_c" 1>&6
9873else
9874 cat > conftest.$ac_ext <<EOF
24528b0c 9875#line 9876 "configure"
10f2d63a
VZ
9876#include "confdefs.h"
9877/* System header to define __stub macros and hopefully few prototypes,
9878 which can conflict with char vprintf(); below. */
9879#include <assert.h>
9880/* Override any gcc2 internal prototype to avoid an error. */
9881/* We use char because int might match the return type of a gcc2
9882 builtin and then its argument prototype would still apply. */
9883char vprintf();
9884
9885int main() {
9886
9887/* The GNU C library defines this for functions which it implements
9888 to always fail with ENOSYS. Some functions are actually named
9889 something starting with __ and the normal name is an alias. */
9890#if defined (__stub_vprintf) || defined (__stub___vprintf)
9891choke me
9892#else
d6a55c4b 9893vprintf();
10f2d63a
VZ
9894#endif
9895
9896; return 0; }
9897EOF
24528b0c 9898if { (eval echo configure:9899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9899 rm -rf conftest*
9900 eval "ac_cv_func_vprintf=yes"
9901else
9902 echo "configure: failed program was:" >&5
9903 cat conftest.$ac_ext >&5
9904 rm -rf conftest*
9905 eval "ac_cv_func_vprintf=no"
9906fi
9907rm -f conftest*
9908fi
9909
9910if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9911 echo "$ac_t""yes" 1>&6
9912 cat >> confdefs.h <<\EOF
9913#define HAVE_VPRINTF 1
9914EOF
9915
9916else
9917 echo "$ac_t""no" 1>&6
9918fi
9919
9920if test "$ac_cv_func_vprintf" != yes; then
9921echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
24528b0c 9922echo "configure:9923: checking for _doprnt" >&5
10f2d63a
VZ
9923if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9924 echo $ac_n "(cached) $ac_c" 1>&6
9925else
9926 cat > conftest.$ac_ext <<EOF
24528b0c 9927#line 9928 "configure"
10f2d63a
VZ
9928#include "confdefs.h"
9929/* System header to define __stub macros and hopefully few prototypes,
9930 which can conflict with char _doprnt(); below. */
9931#include <assert.h>
9932/* Override any gcc2 internal prototype to avoid an error. */
9933/* We use char because int might match the return type of a gcc2
9934 builtin and then its argument prototype would still apply. */
9935char _doprnt();
9936
9937int main() {
9938
9939/* The GNU C library defines this for functions which it implements
9940 to always fail with ENOSYS. Some functions are actually named
9941 something starting with __ and the normal name is an alias. */
9942#if defined (__stub__doprnt) || defined (__stub____doprnt)
9943choke me
9944#else
d6a55c4b 9945_doprnt();
10f2d63a
VZ
9946#endif
9947
9948; return 0; }
9949EOF
24528b0c 9950if { (eval echo configure:9951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9951 rm -rf conftest*
9952 eval "ac_cv_func__doprnt=yes"
9953else
9954 echo "configure: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9956 rm -rf conftest*
9957 eval "ac_cv_func__doprnt=no"
9958fi
9959rm -f conftest*
9960fi
9961
9962if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9963 echo "$ac_t""yes" 1>&6
9964 cat >> confdefs.h <<\EOF
9965#define HAVE_DOPRNT 1
9966EOF
9967
9968else
9969 echo "$ac_t""no" 1>&6
9970fi
9971
9972fi
9973
9974
9975for ac_func in vsnprintf
9976do
9977echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24528b0c 9978echo "configure:9979: checking for $ac_func" >&5
10f2d63a
VZ
9979if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9980 echo $ac_n "(cached) $ac_c" 1>&6
9981else
9982 cat > conftest.$ac_ext <<EOF
24528b0c 9983#line 9984 "configure"
10f2d63a
VZ
9984#include "confdefs.h"
9985/* System header to define __stub macros and hopefully few prototypes,
9986 which can conflict with char $ac_func(); below. */
9987#include <assert.h>
9988/* Override any gcc2 internal prototype to avoid an error. */
9989/* We use char because int might match the return type of a gcc2
9990 builtin and then its argument prototype would still apply. */
9991char $ac_func();
9992
9993int main() {
9994
9995/* The GNU C library defines this for functions which it implements
9996 to always fail with ENOSYS. Some functions are actually named
9997 something starting with __ and the normal name is an alias. */
9998#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9999choke me
10000#else
d6a55c4b 10001$ac_func();
10f2d63a
VZ
10002#endif
10003
10004; return 0; }
10005EOF
24528b0c 10006if { (eval echo configure:10007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10007 rm -rf conftest*
10008 eval "ac_cv_func_$ac_func=yes"
10009else
10010 echo "configure: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10012 rm -rf conftest*
10013 eval "ac_cv_func_$ac_func=no"
10014fi
10015rm -f conftest*
10016fi
10017
10018if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10019 echo "$ac_t""yes" 1>&6
10020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10021 cat >> confdefs.h <<EOF
10022#define $ac_tr_func 1
10023EOF
10024 cat >> confdefs.h <<\EOF
10025#define HAVE_VSNPRINTF 1
10026EOF
10027
10028else
10029 echo "$ac_t""no" 1>&6
10030echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10031
10032fi
10033done
10034
10035
10036
10037ac_ext=C
10038# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10039ac_cpp='$CXXCPP $CPPFLAGS'
10040ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10041ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10042cross_compiling=$ac_cv_prog_cxx_cross
10043
10044
10045echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
24528b0c 10046echo "configure:10047: checking for vsscanf" >&5
10f2d63a
VZ
10047if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10048 echo $ac_n "(cached) $ac_c" 1>&6
10049else
10050
10051 if test "$cross_compiling" = yes; then
10052 wx_cv_func_vsscanf=no
10053
10054else
10055 cat > conftest.$ac_ext <<EOF
24528b0c 10056#line 10057 "configure"
10f2d63a
VZ
10057#include "confdefs.h"
10058#ifdef __cplusplus
10059extern "C" void exit(int);
10060#endif
10061
10062 #include <stdio.h>
10063 #include <stdarg.h>
10064
10065 int try_vsscanf(const char *format, ...)
10066 {
10067 va_list ap;
10068 va_start(ap, format);
10069
10070 vsscanf("17", format, ap);
10071
10072 va_end(ap);
10073 }
10074
10075 int main()
10076 {
10077 int i;
10078 try_vsscanf("%d", &i);
10079 return i == 17 ? 0 : 1;
10080 }
10081
10082EOF
24528b0c 10083if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10084then
10085
10086 cat >> confdefs.h <<\EOF
10087#define HAVE_VSSCANF 1
10088EOF
10089
10090 wx_cv_func_vsscanf=yes
10091
10092else
10093 echo "configure: failed program was:" >&5
10094 cat conftest.$ac_ext >&5
10095 rm -fr conftest*
10096 wx_cv_func_vsscanf=no
10097fi
10098rm -fr conftest*
10099fi
10100
10101
10102fi
10103
10104echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10105
10106ac_ext=c
10107# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10108ac_cpp='$CPP $CPPFLAGS'
10109ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10110ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10111cross_compiling=$ac_cv_prog_cc_cross
10112
10113
b089607b 10114if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10115
10116for ac_func in vfork
10117do
10118echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24528b0c 10119echo "configure:10120: checking for $ac_func" >&5
10f2d63a
VZ
10120if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10121 echo $ac_n "(cached) $ac_c" 1>&6
10122else
10123 cat > conftest.$ac_ext <<EOF
24528b0c 10124#line 10125 "configure"
10f2d63a
VZ
10125#include "confdefs.h"
10126/* System header to define __stub macros and hopefully few prototypes,
10127 which can conflict with char $ac_func(); below. */
10128#include <assert.h>
10129/* Override any gcc2 internal prototype to avoid an error. */
10130/* We use char because int might match the return type of a gcc2
10131 builtin and then its argument prototype would still apply. */
10132char $ac_func();
10133
10134int main() {
10135
10136/* The GNU C library defines this for functions which it implements
10137 to always fail with ENOSYS. Some functions are actually named
10138 something starting with __ and the normal name is an alias. */
10139#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10140choke me
10141#else
d6a55c4b 10142$ac_func();
10f2d63a
VZ
10143#endif
10144
10145; return 0; }
10146EOF
24528b0c 10147if { (eval echo configure:10148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
10148 rm -rf conftest*
10149 eval "ac_cv_func_$ac_func=yes"
10150else
10151 echo "configure: failed program was:" >&5
10152 cat conftest.$ac_ext >&5
10153 rm -rf conftest*
10154 eval "ac_cv_func_$ac_func=no"
10155fi
10156rm -f conftest*
10157fi
10158
10159if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10160 echo "$ac_t""yes" 1>&6
10161 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10162 cat >> confdefs.h <<EOF
10163#define $ac_tr_func 1
10164EOF
10165
10166else
10167 echo "$ac_t""no" 1>&6
10168fi
10169done
10170
10171
10172for ac_func in timegm
10173do
10174echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24528b0c 10175echo "configure:10176: checking for $ac_func" >&5
270a909e
VZ
10176if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10177 echo $ac_n "(cached) $ac_c" 1>&6
10178else
10179 cat > conftest.$ac_ext <<EOF
24528b0c 10180#line 10181 "configure"
270a909e
VZ
10181#include "confdefs.h"
10182/* System header to define __stub macros and hopefully few prototypes,
10183 which can conflict with char $ac_func(); below. */
10184#include <assert.h>
10185/* Override any gcc2 internal prototype to avoid an error. */
10186/* We use char because int might match the return type of a gcc2
10187 builtin and then its argument prototype would still apply. */
10188char $ac_func();
10189
10190int main() {
10191
10192/* The GNU C library defines this for functions which it implements
10193 to always fail with ENOSYS. Some functions are actually named
10194 something starting with __ and the normal name is an alias. */
10195#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10196choke me
10197#else
d6a55c4b 10198$ac_func();
270a909e
VZ
10199#endif
10200
10201; return 0; }
10202EOF
24528b0c 10203if { (eval echo configure:10204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10204 rm -rf conftest*
10205 eval "ac_cv_func_$ac_func=yes"
10206else
10207 echo "configure: failed program was:" >&5
10208 cat conftest.$ac_ext >&5
10209 rm -rf conftest*
10210 eval "ac_cv_func_$ac_func=no"
10211fi
10212rm -f conftest*
10213fi
10214
10215if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10216 echo "$ac_t""yes" 1>&6
10217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10218 cat >> confdefs.h <<EOF
10219#define $ac_tr_func 1
10220EOF
10221
10222else
10223 echo "$ac_t""no" 1>&6
10224fi
10225done
10226
10227
b12915c1
VZ
10228HAVE_SOME_SLEEP_FUNC=0
10229if test "$USE_BEOS" = 1; then
10230 cat >> confdefs.h <<\EOF
10231#define HAVE_SLEEP 1
10232EOF
10233
10234 HAVE_SOME_SLEEP_FUNC=1
10235fi
10236
10237if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10238 POSIX4_LINK=
10239 for ac_func in nanosleep
10f2d63a
VZ
10240do
10241echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24528b0c 10242echo "configure:10243: checking for $ac_func" >&5
10f2d63a
VZ
10243if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10244 echo $ac_n "(cached) $ac_c" 1>&6
10245else
10246 cat > conftest.$ac_ext <<EOF
24528b0c 10247#line 10248 "configure"
10f2d63a
VZ
10248#include "confdefs.h"
10249/* System header to define __stub macros and hopefully few prototypes,
10250 which can conflict with char $ac_func(); below. */
10251#include <assert.h>
10252/* Override any gcc2 internal prototype to avoid an error. */
10253/* We use char because int might match the return type of a gcc2
10254 builtin and then its argument prototype would still apply. */
10255char $ac_func();
10256
10257int main() {
10258
10259/* The GNU C library defines this for functions which it implements
10260 to always fail with ENOSYS. Some functions are actually named
10261 something starting with __ and the normal name is an alias. */
10262#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10263choke me
10264#else
d6a55c4b 10265$ac_func();
10f2d63a
VZ
10266#endif
10267
10268; return 0; }
10269EOF
24528b0c 10270if { (eval echo configure:10271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10271 rm -rf conftest*
10272 eval "ac_cv_func_$ac_func=yes"
10273else
10274 echo "configure: failed program was:" >&5
10275 cat conftest.$ac_ext >&5
10276 rm -rf conftest*
10277 eval "ac_cv_func_$ac_func=no"
10278fi
10279rm -f conftest*
10280fi
10281
10282if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10283 echo "$ac_t""yes" 1>&6
10284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10285 cat >> confdefs.h <<EOF
10286#define $ac_tr_func 1
10287EOF
10288 cat >> confdefs.h <<\EOF
10289#define HAVE_NANOSLEEP 1
10290EOF
10291
10292else
10293 echo "$ac_t""no" 1>&6
10294echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
24528b0c 10295echo "configure:10296: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
10296ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10297if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10298 echo $ac_n "(cached) $ac_c" 1>&6
10299else
10300 ac_save_LIBS="$LIBS"
10301LIBS="-lposix4 $LIBS"
10302cat > conftest.$ac_ext <<EOF
24528b0c 10303#line 10304 "configure"
10f2d63a
VZ
10304#include "confdefs.h"
10305/* Override any gcc2 internal prototype to avoid an error. */
10306/* We use char because int might match the return type of a gcc2
10307 builtin and then its argument prototype would still apply. */
10308char nanosleep();
10309
10310int main() {
10311nanosleep()
10312; return 0; }
10313EOF
24528b0c 10314if { (eval echo configure:10315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10315 rm -rf conftest*
10316 eval "ac_cv_lib_$ac_lib_var=yes"
10317else
10318 echo "configure: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 rm -rf conftest*
10321 eval "ac_cv_lib_$ac_lib_var=no"
10322fi
10323rm -f conftest*
10324LIBS="$ac_save_LIBS"
10325
10326fi
10327if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10328 echo "$ac_t""yes" 1>&6
10329
b12915c1 10330 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10331#define HAVE_NANOSLEEP 1
10332EOF
10333
b12915c1
VZ
10334 POSIX4_LINK="-lposix4"
10335
10f2d63a
VZ
10336else
10337 echo "$ac_t""no" 1>&6
10338
b12915c1 10339 for ac_func in usleep
10f2d63a
VZ
10340do
10341echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24528b0c 10342echo "configure:10343: checking for $ac_func" >&5
10f2d63a
VZ
10343if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10344 echo $ac_n "(cached) $ac_c" 1>&6
10345else
10346 cat > conftest.$ac_ext <<EOF
24528b0c 10347#line 10348 "configure"
10f2d63a
VZ
10348#include "confdefs.h"
10349/* System header to define __stub macros and hopefully few prototypes,
10350 which can conflict with char $ac_func(); below. */
10351#include <assert.h>
10352/* Override any gcc2 internal prototype to avoid an error. */
10353/* We use char because int might match the return type of a gcc2
10354 builtin and then its argument prototype would still apply. */
10355char $ac_func();
10356
10357int main() {
10358
10359/* The GNU C library defines this for functions which it implements
10360 to always fail with ENOSYS. Some functions are actually named
10361 something starting with __ and the normal name is an alias. */
10362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10363choke me
10364#else
d6a55c4b 10365$ac_func();
10f2d63a
VZ
10366#endif
10367
10368; return 0; }
10369EOF
24528b0c 10370if { (eval echo configure:10371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10371 rm -rf conftest*
10372 eval "ac_cv_func_$ac_func=yes"
10373else
10374 echo "configure: failed program was:" >&5
10375 cat conftest.$ac_ext >&5
10376 rm -rf conftest*
10377 eval "ac_cv_func_$ac_func=no"
10378fi
10379rm -f conftest*
10380fi
10381
10382if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10383 echo "$ac_t""yes" 1>&6
10384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10385 cat >> confdefs.h <<EOF
10386#define $ac_tr_func 1
10387EOF
b12915c1 10388
10f2d63a
VZ
10389else
10390 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10391fi
10392done
10393
b12915c1
VZ
10394 echo "configure: warning: wxSleep() function will not work" 1>&2
10395
10396
10f2d63a
VZ
10397fi
10398
b12915c1
VZ
10399
10400
10f2d63a
VZ
10401fi
10402done
10403
b12915c1 10404fi
10f2d63a
VZ
10405
10406for ac_func in uname gethostname
10407do
10408echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24528b0c 10409echo "configure:10410: checking for $ac_func" >&5
10f2d63a
VZ
10410if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10411 echo $ac_n "(cached) $ac_c" 1>&6
10412else
10413 cat > conftest.$ac_ext <<EOF
24528b0c 10414#line 10415 "configure"
10f2d63a
VZ
10415#include "confdefs.h"
10416/* System header to define __stub macros and hopefully few prototypes,
10417 which can conflict with char $ac_func(); below. */
10418#include <assert.h>
10419/* Override any gcc2 internal prototype to avoid an error. */
10420/* We use char because int might match the return type of a gcc2
10421 builtin and then its argument prototype would still apply. */
10422char $ac_func();
10423
10424int main() {
10425
10426/* The GNU C library defines this for functions which it implements
10427 to always fail with ENOSYS. Some functions are actually named
10428 something starting with __ and the normal name is an alias. */
10429#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10430choke me
10431#else
d6a55c4b 10432$ac_func();
10f2d63a
VZ
10433#endif
10434
10435; return 0; }
10436EOF
24528b0c 10437if { (eval echo configure:10438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10438 rm -rf conftest*
10439 eval "ac_cv_func_$ac_func=yes"
10440else
10441 echo "configure: failed program was:" >&5
10442 cat conftest.$ac_ext >&5
10443 rm -rf conftest*
10444 eval "ac_cv_func_$ac_func=no"
10445fi
10446rm -f conftest*
10447fi
10448
10449if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10450 echo "$ac_t""yes" 1>&6
10451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10452 cat >> confdefs.h <<EOF
10453#define $ac_tr_func 1
10454EOF
10455 break
10456else
10457 echo "$ac_t""no" 1>&6
10458fi
10459done
10460
10461
10462for ac_func in strtok_r
10463do
10464echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24528b0c 10465echo "configure:10466: checking for $ac_func" >&5
10f2d63a
VZ
10466if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10467 echo $ac_n "(cached) $ac_c" 1>&6
10468else
10469 cat > conftest.$ac_ext <<EOF
24528b0c 10470#line 10471 "configure"
10f2d63a
VZ
10471#include "confdefs.h"
10472/* System header to define __stub macros and hopefully few prototypes,
10473 which can conflict with char $ac_func(); below. */
10474#include <assert.h>
10475/* Override any gcc2 internal prototype to avoid an error. */
10476/* We use char because int might match the return type of a gcc2
10477 builtin and then its argument prototype would still apply. */
10478char $ac_func();
10479
10480int main() {
10481
10482/* The GNU C library defines this for functions which it implements
10483 to always fail with ENOSYS. Some functions are actually named
10484 something starting with __ and the normal name is an alias. */
10485#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10486choke me
10487#else
d6a55c4b 10488$ac_func();
10f2d63a
VZ
10489#endif
10490
10491; return 0; }
10492EOF
24528b0c 10493if { (eval echo configure:10494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10494 rm -rf conftest*
10495 eval "ac_cv_func_$ac_func=yes"
10496else
10497 echo "configure: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10499 rm -rf conftest*
10500 eval "ac_cv_func_$ac_func=no"
10501fi
10502rm -f conftest*
10503fi
10504
10505if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10506 echo "$ac_t""yes" 1>&6
10507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10508 cat >> confdefs.h <<EOF
10509#define $ac_tr_func 1
10510EOF
10511
10512else
10513 echo "$ac_t""no" 1>&6
10514fi
10515done
10516
10517
c63c7106 10518INET_LINK=
10f2d63a
VZ
10519for ac_func in inet_addr
10520do
10521echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24528b0c 10522echo "configure:10523: checking for $ac_func" >&5
10f2d63a
VZ
10523if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10524 echo $ac_n "(cached) $ac_c" 1>&6
10525else
10526 cat > conftest.$ac_ext <<EOF
24528b0c 10527#line 10528 "configure"
10f2d63a
VZ
10528#include "confdefs.h"
10529/* System header to define __stub macros and hopefully few prototypes,
10530 which can conflict with char $ac_func(); below. */
10531#include <assert.h>
10532/* Override any gcc2 internal prototype to avoid an error. */
10533/* We use char because int might match the return type of a gcc2
10534 builtin and then its argument prototype would still apply. */
10535char $ac_func();
10536
10537int main() {
10538
10539/* The GNU C library defines this for functions which it implements
10540 to always fail with ENOSYS. Some functions are actually named
10541 something starting with __ and the normal name is an alias. */
10542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10543choke me
10544#else
d6a55c4b 10545$ac_func();
10f2d63a
VZ
10546#endif
10547
10548; return 0; }
10549EOF
24528b0c 10550if { (eval echo configure:10551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10551 rm -rf conftest*
10552 eval "ac_cv_func_$ac_func=yes"
10553else
10554 echo "configure: failed program was:" >&5
10555 cat conftest.$ac_ext >&5
10556 rm -rf conftest*
10557 eval "ac_cv_func_$ac_func=no"
10558fi
10559rm -f conftest*
10560fi
10561
10562if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10563 echo "$ac_t""yes" 1>&6
10564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10565 cat >> confdefs.h <<EOF
10566#define $ac_tr_func 1
10567EOF
c63c7106
VZ
10568 cat >> confdefs.h <<\EOF
10569#define HAVE_INET_ADDR 1
10570EOF
10571
10f2d63a
VZ
10572else
10573 echo "$ac_t""no" 1>&6
c63c7106 10574echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
24528b0c 10575echo "configure:10576: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10576ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10577if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10578 echo $ac_n "(cached) $ac_c" 1>&6
10579else
10580 ac_save_LIBS="$LIBS"
10581LIBS="-lnsl $LIBS"
10582cat > conftest.$ac_ext <<EOF
24528b0c 10583#line 10584 "configure"
c63c7106
VZ
10584#include "confdefs.h"
10585/* Override any gcc2 internal prototype to avoid an error. */
10586/* We use char because int might match the return type of a gcc2
10587 builtin and then its argument prototype would still apply. */
10588char inet_addr();
10589
10590int main() {
10591inet_addr()
10592; return 0; }
10593EOF
24528b0c 10594if { (eval echo configure:10595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10595 rm -rf conftest*
10596 eval "ac_cv_lib_$ac_lib_var=yes"
10597else
10598 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5
10600 rm -rf conftest*
10601 eval "ac_cv_lib_$ac_lib_var=no"
10602fi
10603rm -f conftest*
10604LIBS="$ac_save_LIBS"
10605
10606fi
10607if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10608 echo "$ac_t""yes" 1>&6
10609 INET_LINK="nsl"
10610else
10611 echo "$ac_t""no" 1>&6
10612echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
24528b0c 10613echo "configure:10614: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10614ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10615if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10616 echo $ac_n "(cached) $ac_c" 1>&6
10617else
10618 ac_save_LIBS="$LIBS"
10619LIBS="-lresolv $LIBS"
10620cat > conftest.$ac_ext <<EOF
24528b0c 10621#line 10622 "configure"
c63c7106
VZ
10622#include "confdefs.h"
10623/* Override any gcc2 internal prototype to avoid an error. */
10624/* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
10626char inet_addr();
10627
10628int main() {
10629inet_addr()
10630; return 0; }
10631EOF
24528b0c 10632if { (eval echo configure:10633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10633 rm -rf conftest*
10634 eval "ac_cv_lib_$ac_lib_var=yes"
10635else
10636 echo "configure: failed program was:" >&5
10637 cat conftest.$ac_ext >&5
10638 rm -rf conftest*
10639 eval "ac_cv_lib_$ac_lib_var=no"
10640fi
10641rm -f conftest*
10642LIBS="$ac_save_LIBS"
10643
10644fi
10645if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10646 echo "$ac_t""yes" 1>&6
10647 INET_LINK="resolv"
10648
10649else
10650 echo "$ac_t""no" 1>&6
10651fi
10652
10653
10654fi
10655
10656
10657
10f2d63a
VZ
10658fi
10659done
10660
c63c7106 10661
10f2d63a
VZ
10662for ac_func in inet_aton
10663do
10664echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24528b0c 10665echo "configure:10666: checking for $ac_func" >&5
10f2d63a
VZ
10666if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10667 echo $ac_n "(cached) $ac_c" 1>&6
10668else
10669 cat > conftest.$ac_ext <<EOF
24528b0c 10670#line 10671 "configure"
10f2d63a
VZ
10671#include "confdefs.h"
10672/* System header to define __stub macros and hopefully few prototypes,
10673 which can conflict with char $ac_func(); below. */
10674#include <assert.h>
10675/* Override any gcc2 internal prototype to avoid an error. */
10676/* We use char because int might match the return type of a gcc2
10677 builtin and then its argument prototype would still apply. */
10678char $ac_func();
10679
10680int main() {
10681
10682/* The GNU C library defines this for functions which it implements
10683 to always fail with ENOSYS. Some functions are actually named
10684 something starting with __ and the normal name is an alias. */
10685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10686choke me
10687#else
d6a55c4b 10688$ac_func();
10f2d63a
VZ
10689#endif
10690
10691; return 0; }
10692EOF
24528b0c 10693if { (eval echo configure:10694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10694 rm -rf conftest*
10695 eval "ac_cv_func_$ac_func=yes"
10696else
10697 echo "configure: failed program was:" >&5
10698 cat conftest.$ac_ext >&5
10699 rm -rf conftest*
10700 eval "ac_cv_func_$ac_func=no"
10701fi
10702rm -f conftest*
10703fi
10704
10705if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10706 echo "$ac_t""yes" 1>&6
10707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10708 cat >> confdefs.h <<EOF
10709#define $ac_tr_func 1
10710EOF
c63c7106
VZ
10711 cat >> confdefs.h <<\EOF
10712#define HAVE_INET_ATON 1
10713EOF
10714
10f2d63a
VZ
10715else
10716 echo "$ac_t""no" 1>&6
c63c7106 10717 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
24528b0c 10718echo "configure:10719: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10719ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10720if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10721 echo $ac_n "(cached) $ac_c" 1>&6
10722else
10723 ac_save_LIBS="$LIBS"
c63c7106 10724LIBS="-l$INET_LINK $LIBS"
10f2d63a 10725cat > conftest.$ac_ext <<EOF
24528b0c 10726#line 10727 "configure"
10f2d63a
VZ
10727#include "confdefs.h"
10728/* Override any gcc2 internal prototype to avoid an error. */
10729/* We use char because int might match the return type of a gcc2
10730 builtin and then its argument prototype would still apply. */
10731char inet_aton();
10732
10733int main() {
10734inet_aton()
10735; return 0; }
10736EOF
24528b0c 10737if { (eval echo configure:10738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10738 rm -rf conftest*
10739 eval "ac_cv_lib_$ac_lib_var=yes"
10740else
10741 echo "configure: failed program was:" >&5
10742 cat conftest.$ac_ext >&5
10743 rm -rf conftest*
10744 eval "ac_cv_lib_$ac_lib_var=no"
10745fi
10746rm -f conftest*
10747LIBS="$ac_save_LIBS"
10748
10749fi
10750if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10751 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10752 cat >> confdefs.h <<\EOF
10753#define HAVE_INET_ATON 1
10f2d63a
VZ
10754EOF
10755
10f2d63a
VZ
10756else
10757 echo "$ac_t""no" 1>&6
10758fi
10759
c63c7106
VZ
10760
10761fi
10762done
10763
10764
10765if test "x$INET_LINK" != "x"; then
10766 cat >> confdefs.h <<\EOF
10767#define HAVE_INET_ADDR 1
10768EOF
10769
10770 INET_LINK="-l$INET_LINK"
10771fi
10f2d63a
VZ
10772
10773fi
10774
10775
10776cat > confcache <<\EOF
10777# This file is a shell script that caches the results of configure
10778# tests run on this system so they can be shared between configure
10779# scripts and configure runs. It is not useful on other systems.
10780# If it contains results you don't want to keep, you may remove or edit it.
10781#
10782# By default, configure uses ./config.cache as the cache file,
10783# creating it if it does not exist already. You can give configure
10784# the --cache-file=FILE option to use a different cache file; that is
10785# what configure does when it calls configure scripts in
10786# subdirectories, so they share the cache.
10787# Giving --cache-file=/dev/null disables caching, for debugging configure.
10788# config.status only pays attention to the cache file if you give it the
10789# --recheck option to rerun configure.
10790#
10791EOF
10792# The following way of writing the cache mishandles newlines in values,
10793# but we know of no workaround that is simple, portable, and efficient.
10794# So, don't put newlines in cache variables' values.
10795# Ultrix sh set writes to stderr and can't be redirected directly,
10796# and sets the high bit in the cache file unless we assign to the vars.
10797(set) 2>&1 |
10798 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10799 *ac_space=\ *)
10800 # `set' does not quote correctly, so add quotes (double-quote substitution
10801 # turns \\\\ into \\, and sed turns \\ into \).
10802 sed -n \
10803 -e "s/'/'\\\\''/g" \
10804 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10805 ;;
10806 *)
10807 # `set' quotes correctly as required by POSIX, so do not add quotes.
10808 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10809 ;;
10810 esac >> confcache
10811if cmp -s $cache_file confcache; then
10812 :
10813else
10814 if test -w $cache_file; then
10815 echo "updating cache $cache_file"
10816 cat confcache > $cache_file
10817 else
10818 echo "not updating unwritable cache $cache_file"
10819 fi
10820fi
10821rm -f confcache
10822
10823
10824
b089607b 10825if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10826
10827
10828THREADS_LINK=""
10829THREADS_OBJ=""
10830
10831if test "$wxUSE_THREADS" = "yes" ; then
10832 if test "$wxUSE_WINE" = 1 ; then
10833 echo "configure: warning: Threads are not supported under WINE" 1>&2
10834 wxUSE_THREADS="no"
b12915c1
VZ
10835 elif test "$USE_BEOS" = 1; then
10836 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10837 wxUSE_THREADS="no"
10f2d63a
VZ
10838 fi
10839fi
10840
10841if test "$wxUSE_THREADS" = "yes" ; then
10842
10843 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
24528b0c 10844echo "configure:10845: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10845ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10846if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10847 echo $ac_n "(cached) $ac_c" 1>&6
10848else
10849 ac_save_LIBS="$LIBS"
10850LIBS="-lpthread $LIBS"
10851cat > conftest.$ac_ext <<EOF
24528b0c 10852#line 10853 "configure"
10f2d63a
VZ
10853#include "confdefs.h"
10854/* Override any gcc2 internal prototype to avoid an error. */
10855/* We use char because int might match the return type of a gcc2
10856 builtin and then its argument prototype would still apply. */
10857char pthread_create();
10858
10859int main() {
10860pthread_create()
10861; return 0; }
10862EOF
24528b0c 10863if { (eval echo configure:10864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10864 rm -rf conftest*
10865 eval "ac_cv_lib_$ac_lib_var=yes"
10866else
10867 echo "configure: failed program was:" >&5
10868 cat conftest.$ac_ext >&5
10869 rm -rf conftest*
10870 eval "ac_cv_lib_$ac_lib_var=no"
10871fi
10872rm -f conftest*
10873LIBS="$ac_save_LIBS"
10874
10875fi
10876if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10877 echo "$ac_t""yes" 1>&6
10878
10879 THREADS_OBJ="threadpsx.lo"
10880 THREADS_LINK="pthread"
10881
10882else
10883 echo "$ac_t""no" 1>&6
10884
10885 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
24528b0c 10886echo "configure:10887: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10887ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10888if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10889 echo $ac_n "(cached) $ac_c" 1>&6
10890else
10891 ac_save_LIBS="$LIBS"
10892LIBS="-lc_r $LIBS"
10893cat > conftest.$ac_ext <<EOF
24528b0c 10894#line 10895 "configure"
10f2d63a
VZ
10895#include "confdefs.h"
10896/* Override any gcc2 internal prototype to avoid an error. */
10897/* We use char because int might match the return type of a gcc2
10898 builtin and then its argument prototype would still apply. */
10899char pthread_create();
10900
10901int main() {
10902pthread_create()
10903; return 0; }
10904EOF
24528b0c 10905if { (eval echo configure:10906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10906 rm -rf conftest*
10907 eval "ac_cv_lib_$ac_lib_var=yes"
10908else
10909 echo "configure: failed program was:" >&5
10910 cat conftest.$ac_ext >&5
10911 rm -rf conftest*
10912 eval "ac_cv_lib_$ac_lib_var=no"
10913fi
10914rm -f conftest*
10915LIBS="$ac_save_LIBS"
10916
10917fi
10918if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10919 echo "$ac_t""yes" 1>&6
10920
10921 THREADS_OBJ="threadpsx.lo"
10922 THREADS_LINK="c_r"
10923
10924else
10925 echo "$ac_t""no" 1>&6
10926
10927 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10928echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
24528b0c 10929echo "configure:10930: checking for sys/prctl.h" >&5
10f2d63a
VZ
10930if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10931 echo $ac_n "(cached) $ac_c" 1>&6
10932else
10933 cat > conftest.$ac_ext <<EOF
24528b0c 10934#line 10935 "configure"
10f2d63a
VZ
10935#include "confdefs.h"
10936#include <sys/prctl.h>
10937EOF
10938ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 10939{ (eval echo configure:10940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10940ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10941if test -z "$ac_err"; then
10942 rm -rf conftest*
10943 eval "ac_cv_header_$ac_safe=yes"
10944else
10945 echo "$ac_err" >&5
10946 echo "configure: failed program was:" >&5
10947 cat conftest.$ac_ext >&5
10948 rm -rf conftest*
10949 eval "ac_cv_header_$ac_safe=no"
10950fi
10951rm -f conftest*
10952fi
10953if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10954 echo "$ac_t""yes" 1>&6
10955
10956 THREADS_OBJ="threadsgi.lo"
10957
10958else
10959 echo "$ac_t""no" 1>&6
10960fi
10961
10962
10963fi
10964
10965
10966fi
10967
10968
10969 if test -z "$THREADS_OBJ" ; then
10970 wxUSE_THREADS=no
10971 echo "configure: warning: No thread support on this system" 1>&2
10972 fi
10973fi
10974
10975if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
10976 for ac_func in thr_setconcurrency
10977do
10978echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24528b0c 10979echo "configure:10980: checking for $ac_func" >&5
70846f0a
VZ
10980if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10981 echo $ac_n "(cached) $ac_c" 1>&6
10982else
10983 cat > conftest.$ac_ext <<EOF
24528b0c 10984#line 10985 "configure"
70846f0a
VZ
10985#include "confdefs.h"
10986/* System header to define __stub macros and hopefully few prototypes,
10987 which can conflict with char $ac_func(); below. */
10988#include <assert.h>
10989/* Override any gcc2 internal prototype to avoid an error. */
10990/* We use char because int might match the return type of a gcc2
10991 builtin and then its argument prototype would still apply. */
10992char $ac_func();
10993
10994int main() {
10995
10996/* The GNU C library defines this for functions which it implements
10997 to always fail with ENOSYS. Some functions are actually named
10998 something starting with __ and the normal name is an alias. */
10999#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11000choke me
11001#else
d6a55c4b 11002$ac_func();
70846f0a
VZ
11003#endif
11004
11005; return 0; }
11006EOF
24528b0c 11007if { (eval echo configure:11008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
11008 rm -rf conftest*
11009 eval "ac_cv_func_$ac_func=yes"
11010else
11011 echo "configure: failed program was:" >&5
11012 cat conftest.$ac_ext >&5
11013 rm -rf conftest*
11014 eval "ac_cv_func_$ac_func=no"
11015fi
11016rm -f conftest*
11017fi
11018
11019if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11020 echo "$ac_t""yes" 1>&6
11021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11022 cat >> confdefs.h <<EOF
11023#define $ac_tr_func 1
11024EOF
11025
11026else
11027 echo "$ac_t""no" 1>&6
11028fi
11029done
11030
11031
10f2d63a
VZ
11032
11033 for ac_hdr in sched.h
11034do
11035ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11036echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24528b0c 11037echo "configure:11038: checking for $ac_hdr" >&5
10f2d63a
VZ
11038if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11039 echo $ac_n "(cached) $ac_c" 1>&6
11040else
11041 cat > conftest.$ac_ext <<EOF
24528b0c 11042#line 11043 "configure"
10f2d63a
VZ
11043#include "confdefs.h"
11044#include <$ac_hdr>
11045EOF
11046ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 11047{ (eval echo configure:11048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11048ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11049if test -z "$ac_err"; then
11050 rm -rf conftest*
11051 eval "ac_cv_header_$ac_safe=yes"
11052else
11053 echo "$ac_err" >&5
11054 echo "configure: failed program was:" >&5
11055 cat conftest.$ac_ext >&5
11056 rm -rf conftest*
11057 eval "ac_cv_header_$ac_safe=no"
11058fi
11059rm -f conftest*
11060fi
11061if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11062 echo "$ac_t""yes" 1>&6
11063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11064 cat >> confdefs.h <<EOF
11065#define $ac_tr_hdr 1
11066EOF
11067
11068else
11069 echo "$ac_t""no" 1>&6
11070fi
11071done
11072
11073
11074 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
24528b0c 11075echo "configure:11076: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
11076ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11077if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11078 echo $ac_n "(cached) $ac_c" 1>&6
11079else
11080 ac_save_LIBS="$LIBS"
11081LIBS="-l$THREADS_LINK $LIBS"
11082cat > conftest.$ac_ext <<EOF
24528b0c 11083#line 11084 "configure"
10f2d63a
VZ
11084#include "confdefs.h"
11085/* Override any gcc2 internal prototype to avoid an error. */
11086/* We use char because int might match the return type of a gcc2
11087 builtin and then its argument prototype would still apply. */
11088char sched_yield();
11089
11090int main() {
11091sched_yield()
11092; return 0; }
11093EOF
24528b0c 11094if { (eval echo configure:11095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11095 rm -rf conftest*
11096 eval "ac_cv_lib_$ac_lib_var=yes"
11097else
11098 echo "configure: failed program was:" >&5
11099 cat conftest.$ac_ext >&5
11100 rm -rf conftest*
11101 eval "ac_cv_lib_$ac_lib_var=no"
11102fi
11103rm -f conftest*
11104LIBS="$ac_save_LIBS"
11105
11106fi
11107if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11108 echo "$ac_t""yes" 1>&6
11109 cat >> confdefs.h <<\EOF
11110#define HAVE_SCHED_YIELD 1
11111EOF
11112
11113else
11114 echo "$ac_t""no" 1>&6
11115echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
24528b0c 11116echo "configure:11117: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
11117ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11118if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11119 echo $ac_n "(cached) $ac_c" 1>&6
11120else
11121 ac_save_LIBS="$LIBS"
11122LIBS="-l"posix4" $LIBS"
11123cat > conftest.$ac_ext <<EOF
24528b0c 11124#line 11125 "configure"
10f2d63a
VZ
11125#include "confdefs.h"
11126/* Override any gcc2 internal prototype to avoid an error. */
11127/* We use char because int might match the return type of a gcc2
11128 builtin and then its argument prototype would still apply. */
11129char sched_yield();
11130
11131int main() {
11132sched_yield()
11133; return 0; }
11134EOF
24528b0c 11135if { (eval echo configure:11136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11136 rm -rf conftest*
11137 eval "ac_cv_lib_$ac_lib_var=yes"
11138else
11139 echo "configure: failed program was:" >&5
11140 cat conftest.$ac_ext >&5
11141 rm -rf conftest*
11142 eval "ac_cv_lib_$ac_lib_var=no"
11143fi
11144rm -f conftest*
11145LIBS="$ac_save_LIBS"
11146
11147fi
11148if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11149 echo "$ac_t""yes" 1>&6
11150 cat >> confdefs.h <<\EOF
11151#define HAVE_SCHED_YIELD 1
11152EOF
11153 POSIX4_LINK="-lposix4"
11154else
11155 echo "$ac_t""no" 1>&6
11156echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11157
11158fi
11159
11160
11161fi
11162
11163
11164 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
24528b0c 11165echo "configure:11166: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
11166ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11167if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11168 echo $ac_n "(cached) $ac_c" 1>&6
11169else
11170 ac_save_LIBS="$LIBS"
11171LIBS="-l$THREADS_LINK $LIBS"
11172cat > conftest.$ac_ext <<EOF
24528b0c 11173#line 11174 "configure"
10f2d63a
VZ
11174#include "confdefs.h"
11175/* Override any gcc2 internal prototype to avoid an error. */
11176/* We use char because int might match the return type of a gcc2
11177 builtin and then its argument prototype would still apply. */
11178char pthread_attr_getschedpolicy();
11179
11180int main() {
11181pthread_attr_getschedpolicy()
11182; return 0; }
11183EOF
24528b0c 11184if { (eval echo configure:11185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11185 rm -rf conftest*
11186 eval "ac_cv_lib_$ac_lib_var=yes"
11187else
11188 echo "configure: failed program was:" >&5
11189 cat conftest.$ac_ext >&5
11190 rm -rf conftest*
11191 eval "ac_cv_lib_$ac_lib_var=no"
11192fi
11193rm -f conftest*
11194LIBS="$ac_save_LIBS"
11195
11196fi
11197if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11198 echo "$ac_t""yes" 1>&6
11199 cat >> confdefs.h <<\EOF
11200#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11201EOF
11202
11203else
11204 echo "$ac_t""no" 1>&6
11205echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
24528b0c 11206echo "configure:11207: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
11207ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11208if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11209 echo $ac_n "(cached) $ac_c" 1>&6
11210else
11211 ac_save_LIBS="$LIBS"
11212LIBS="-l"posix4" $LIBS"
11213cat > conftest.$ac_ext <<EOF
24528b0c 11214#line 11215 "configure"
10f2d63a
VZ
11215#include "confdefs.h"
11216/* Override any gcc2 internal prototype to avoid an error. */
11217/* We use char because int might match the return type of a gcc2
11218 builtin and then its argument prototype would still apply. */
11219char pthread_attr_getschedpolicy();
11220
11221int main() {
11222pthread_attr_getschedpolicy()
11223; return 0; }
11224EOF
24528b0c 11225if { (eval echo configure:11226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11226 rm -rf conftest*
11227 eval "ac_cv_lib_$ac_lib_var=yes"
11228else
11229 echo "configure: failed program was:" >&5
11230 cat conftest.$ac_ext >&5
11231 rm -rf conftest*
11232 eval "ac_cv_lib_$ac_lib_var=no"
11233fi
11234rm -f conftest*
11235LIBS="$ac_save_LIBS"
11236
11237fi
11238if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11239 echo "$ac_t""yes" 1>&6
11240 cat >> confdefs.h <<\EOF
11241#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11242EOF
11243 POSIX4_LINK="-lposix4"
11244else
11245 echo "$ac_t""no" 1>&6
11246echo "configure: warning: Setting thread priority will not work" 1>&2
11247
11248fi
11249
11250
11251fi
11252
11253
11254 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
24528b0c 11255echo "configure:11256: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
11256ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11257if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11258 echo $ac_n "(cached) $ac_c" 1>&6
11259else
11260 ac_save_LIBS="$LIBS"
11261LIBS="-l$THREADS_LINK $LIBS"
11262cat > conftest.$ac_ext <<EOF
24528b0c 11263#line 11264 "configure"
10f2d63a
VZ
11264#include "confdefs.h"
11265/* Override any gcc2 internal prototype to avoid an error. */
11266/* We use char because int might match the return type of a gcc2
11267 builtin and then its argument prototype would still apply. */
11268char pthread_cancel();
11269
11270int main() {
11271pthread_cancel()
11272; return 0; }
11273EOF
24528b0c 11274if { (eval echo configure:11275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11275 rm -rf conftest*
11276 eval "ac_cv_lib_$ac_lib_var=yes"
11277else
11278 echo "configure: failed program was:" >&5
11279 cat conftest.$ac_ext >&5
11280 rm -rf conftest*
11281 eval "ac_cv_lib_$ac_lib_var=no"
11282fi
11283rm -f conftest*
11284LIBS="$ac_save_LIBS"
11285
11286fi
11287if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11288 echo "$ac_t""yes" 1>&6
11289 cat >> confdefs.h <<\EOF
11290#define HAVE_PTHREAD_CANCEL 1
11291EOF
11292
11293else
11294 echo "$ac_t""no" 1>&6
11295echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11296fi
11297
11298
11299 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
24528b0c 11300echo "configure:11301: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
11301if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11303else
11304
11305 cat > conftest.$ac_ext <<EOF
24528b0c 11306#line 11307 "configure"
10f2d63a
VZ
11307#include "confdefs.h"
11308#include <pthread.h>
11309int main() {
11310
11311 pthread_cleanup_push(NULL, NULL);
11312 pthread_cleanup_pop(0);
11313
11314; return 0; }
11315EOF
24528b0c 11316if { (eval echo configure:11317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11317 rm -rf conftest*
11318
11319 wx_cv_func_pthread_cleanup_push=yes
11320 cat >> confdefs.h <<\EOF
11321#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11322EOF
11323
11324
11325else
11326 echo "configure: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11328 rm -rf conftest*
11329
11330 wx_cv_func_pthread_cleanup_push=no
11331
11332fi
11333rm -f conftest*
11334
11335fi
11336
11337echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11338
11339 THREADS_LINK="-l$THREADS_LINK"
11340fi
11341
11342fi
11343
11344if test "$wxUSE_THREADS" = "yes"; then
11345 cat >> confdefs.h <<\EOF
11346#define wxUSE_THREADS 1
11347EOF
11348
11349
11350 CFLAGS="${CFLAGS} -D_REENTRANT"
11351 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11352
11353 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11354else
11355 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11356 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
24528b0c 11357echo "configure:11358: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11358 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11359 CFLAGS="${CFLAGS} -D_REENTRANT"
11360 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11361 echo "$ac_t""yes" 1>&6
11362 else
11363 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11364 fi
11365 fi
11366fi
11367
13111b2a
VZ
11368if test "$WXGTK13" = 1 ; then
11369 cat >> confdefs.h <<EOF
11370#define __WXGTK13__ $WXGTK13
11371EOF
11372
11373 WXGTK12=1
11374fi
11375
10f2d63a
VZ
11376if test "$WXGTK12" = 1 ; then
11377 cat >> confdefs.h <<EOF
11378#define __WXGTK12__ $WXGTK12
11379EOF
11380
11381fi
11382
11383if test "$WXWINE" = 1 ; then
11384 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11385fi
11386
11387if test "$wxUSE_CYGWIN" = 1 ; then
11388 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11389fi
11390
11391WXDEBUG=
11392
11393if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11394 WXDEBUG="-g"
11395 wxUSE_OPTIMISE=no
11396fi
11397
11398if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11399 wxUSE_DEBUG_INFO=yes
11400 WXDEBUG="-ggdb"
11401fi
11402
11403if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11404 cat >> confdefs.h <<\EOF
11405#define WXDEBUG 1
11406EOF
11407
11408 WXDEBUG_DEFINE="-D__WXDEBUG__"
11409else
11410 if test "$wxUSE_GTK" = 1 ; then
11411 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11412 fi
11413fi
11414
11415if test "$wxUSE_MEM_TRACING" = "yes" ; then
11416 cat >> confdefs.h <<\EOF
11417#define wxUSE_MEMORY_TRACING 1
11418EOF
11419
11420 cat >> confdefs.h <<\EOF
11421#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
11422EOF
11423
11424 cat >> confdefs.h <<\EOF
11425#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
11426EOF
11427
11428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11429fi
11430
11431if test "$wxUSE_DMALLOC" = "yes" ; then
11432 DMALLOC_LINK="-ldmalloc"
11433fi
11434
11435PROFILE=
11436if test "$wxUSE_PROFILE" = "yes" ; then
11437 PROFILE="-pg"
11438fi
11439
11440DEP_INFO_FLAGS=
caa2c79b 11441CODE_GEN_FLAGS=
10f2d63a
VZ
11442if test "$GCC" = yes ; then
11443 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 11444 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
11445 fi
11446 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 11447 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
11448 fi
11449 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 11450 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
11451 fi
11452 if test "$wxUSE_NO_DEPS" = "no" ; then
11453 DEP_INFO_FLAGS="-MMD"
11454 fi
11455fi
11456
11457
11458CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11459CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11460if test "$wxUSE_OPTIMISE" = "no" ; then
11461 OPTIMISE=
11462else
11463 if test "$GCC" = yes ; then
11464 OPTIMISE="-O2"
11465 case "${host}" in
11466 i586-*-*|i686-*-* )
11467 OPTIMISE="${OPTIMISE} "
11468 ;;
11469 esac
11470 else
11471 OPTIMISE="-O"
11472 fi
11473fi
11474
11475
11476ZLIB_INCLUDE=
11477if test "$wxUSE_ZLIB" = "yes" ; then
11478 cat >> confdefs.h <<\EOF
11479#define wxUSE_ZLIB 1
11480EOF
11481
11482 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11483fi
11484
11485PNG_INCLUDE=
11486if test "$wxUSE_LIBPNG" = "yes" ; then
11487 cat >> confdefs.h <<\EOF
11488#define wxUSE_LIBPNG 1
11489EOF
11490
11491 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11493fi
11494
11495JPEG_INCLUDE=
11496if test "$wxUSE_LIBJPEG" = "yes" ; then
11497 cat >> confdefs.h <<\EOF
11498#define wxUSE_LIBJPEG 1
11499EOF
11500
11501 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11502fi
11503
c7a2bf27
RR
11504TIFF_INCLUDE=
11505if test "$wxUSE_LIBTIFF" = "yes" ; then
11506 cat >> confdefs.h <<\EOF
11507#define wxUSE_LIBTIFF 1
11508EOF
11509
11510 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11511fi
11512
10f2d63a
VZ
11513if test "$wxUSE_OPENGL" = "yes"; then
11514 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11515echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
24528b0c 11516echo "configure:11517: checking for GL/gl.h" >&5
10f2d63a
VZ
11517if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11518 echo $ac_n "(cached) $ac_c" 1>&6
11519else
11520 cat > conftest.$ac_ext <<EOF
24528b0c 11521#line 11522 "configure"
10f2d63a
VZ
11522#include "confdefs.h"
11523#include <GL/gl.h>
11524EOF
11525ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 11526{ (eval echo configure:11527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11527ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11528if test -z "$ac_err"; then
11529 rm -rf conftest*
11530 eval "ac_cv_header_$ac_safe=yes"
11531else
11532 echo "$ac_err" >&5
11533 echo "configure: failed program was:" >&5
11534 cat conftest.$ac_ext >&5
11535 rm -rf conftest*
11536 eval "ac_cv_header_$ac_safe=no"
11537fi
11538rm -f conftest*
11539fi
11540if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11541 echo "$ac_t""yes" 1>&6
11542
11543 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
24528b0c 11544echo "configure:11545: checking for glInitNames in -lGL" >&5
10f2d63a
VZ
11545ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
11546if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11547 echo $ac_n "(cached) $ac_c" 1>&6
11548else
11549 ac_save_LIBS="$LIBS"
11550LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
11551cat > conftest.$ac_ext <<EOF
24528b0c 11552#line 11553 "configure"
10f2d63a
VZ
11553#include "confdefs.h"
11554/* Override any gcc2 internal prototype to avoid an error. */
11555/* We use char because int might match the return type of a gcc2
11556 builtin and then its argument prototype would still apply. */
11557char glInitNames();
11558
11559int main() {
11560glInitNames()
11561; return 0; }
11562EOF
24528b0c 11563if { (eval echo configure:11564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11564 rm -rf conftest*
11565 eval "ac_cv_lib_$ac_lib_var=yes"
11566else
11567 echo "configure: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11569 rm -rf conftest*
11570 eval "ac_cv_lib_$ac_lib_var=no"
11571fi
11572rm -f conftest*
11573LIBS="$ac_save_LIBS"
11574
11575fi
11576if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11577 echo "$ac_t""yes" 1>&6
11578
11579 OPENGL_LINK="-lGL"
11580 cat >> confdefs.h <<\EOF
11581#define wxUSE_OPENGL 1
11582EOF
11583
11584 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11585
11586else
11587 echo "$ac_t""no" 1>&6
11588
11589 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
24528b0c 11590echo "configure:11591: checking for glInitNames in -lMesaGL" >&5
10f2d63a
VZ
11591ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11592if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11593 echo $ac_n "(cached) $ac_c" 1>&6
11594else
11595 ac_save_LIBS="$LIBS"
11596LIBS="-lMesaGL $LIBS"
11597cat > conftest.$ac_ext <<EOF
24528b0c 11598#line 11599 "configure"
10f2d63a
VZ
11599#include "confdefs.h"
11600/* Override any gcc2 internal prototype to avoid an error. */
11601/* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11603char glInitNames();
11604
11605int main() {
11606glInitNames()
11607; return 0; }
11608EOF
24528b0c 11609if { (eval echo configure:11610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11610 rm -rf conftest*
11611 eval "ac_cv_lib_$ac_lib_var=yes"
11612else
11613 echo "configure: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11615 rm -rf conftest*
11616 eval "ac_cv_lib_$ac_lib_var=no"
11617fi
11618rm -f conftest*
11619LIBS="$ac_save_LIBS"
11620
11621fi
11622if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11623 echo "$ac_t""yes" 1>&6
11624
11625 OPENGL_LINK="-lMesaGL"
11626 cat >> confdefs.h <<\EOF
11627#define wxUSE_OPENGL 1
11628EOF
11629
11630 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11631
11632else
11633 echo "$ac_t""no" 1>&6
11634wxUSE_OPENGL=0
11635fi
11636
11637
11638fi
11639
11640
11641else
11642 echo "$ac_t""no" 1>&6
11643wxUSE_OPENGL=0
11644fi
11645
11646fi
11647
11648
11649if test "$wxUSE_GUI" = "yes"; then
11650 cat >> confdefs.h <<\EOF
11651#define wxUSE_GUI 1
11652EOF
11653
11654
11655 else
11656 cat >> confdefs.h <<\EOF
11657#define wxUSE_NOGUI 1
11658EOF
11659
11660fi
11661
11662
11663if test "$wxUSE_UNIX" = "yes"; then
11664 cat >> confdefs.h <<\EOF
11665#define wxUSE_UNIX 1
11666EOF
11667
11668fi
11669
11670
11671if test "$wxUSE_APPLE_IEEE" = "yes"; then
11672 cat >> confdefs.h <<\EOF
11673#define wxUSE_APPLE_IEEE 1
11674EOF
11675
11676fi
11677
10f2d63a
VZ
11678if test "$wxUSE_WAVE" = "yes"; then
11679 cat >> confdefs.h <<\EOF
11680#define wxUSE_WAVE 1
11681EOF
11682
11683fi
11684
11685if test "$wxUSE_FILE" = "yes"; then
11686 cat >> confdefs.h <<\EOF
11687#define wxUSE_FILE 1
11688EOF
11689
11690fi
11691
24528b0c
VS
11692if test "$wxUSE_FILESYSTEM" = "yes"; then
11693 cat >> confdefs.h <<\EOF
11694#define wxUSE_FILESYSTEM 1
11695EOF
11696
11697fi
11698
10f2d63a
VZ
11699if test "$wxUSE_FS_INET" = "yes"; then
11700 cat >> confdefs.h <<\EOF
11701#define wxUSE_FS_INET 1
11702EOF
11703
11704fi
11705
11706if test "$wxUSE_FS_ZIP" = "yes"; then
11707 cat >> confdefs.h <<\EOF
11708#define wxUSE_FS_ZIP 1
11709EOF
11710
11711fi
11712
11713if test "$wxUSE_ZIPSTREAM" = "yes"; then
11714 cat >> confdefs.h <<\EOF
11715#define wxUSE_ZIPSTREAM 1
11716EOF
11717
11718fi
11719
11720if test "$wxUSE_BUSYINFO" = "yes"; then
11721 cat >> confdefs.h <<\EOF
11722#define wxUSE_BUSYINFO 1
11723EOF
11724
11725fi
11726
11727if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11728 cat >> confdefs.h <<\EOF
11729#define wxUSE_STD_IOSTREAM 1
11730EOF
11731
11732fi
11733
11734if test "$wxUSE_TEXTFILE" = "yes"; then
11735 if test "$wxUSE_FILE" != "yes"; then
11736 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11737 else
11738 cat >> confdefs.h <<\EOF
11739#define wxUSE_TEXTFILE 1
11740EOF
11741
11742 fi
11743fi
11744
11745if test "$wxUSE_CONFIG" = "yes" ; then
11746 if test "$wxUSE_TEXTFILE" != "yes"; then
11747 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11748 else
11749 cat >> confdefs.h <<\EOF
11750#define wxUSE_CONFIG 1
11751EOF
11752
11753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11754 fi
11755fi
11756
11757if test "$wxUSE_INTL" = "yes" ; then
11758 if test "$wxUSE_FILE" != "yes"; then
11759 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11760 else
11761 cat >> confdefs.h <<\EOF
11762#define wxUSE_INTL 1
11763EOF
11764
11765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11766 fi
11767fi
11768
11769if test "$wxUSE_LOG" = "yes"; then
11770 cat >> confdefs.h <<\EOF
11771#define wxUSE_LOG 1
11772EOF
11773
11774fi
11775
11776if test "$wxUSE_LONGLONG" = "yes"; then
11777 cat >> confdefs.h <<\EOF
11778#define wxUSE_LONGLONG 1
11779EOF
11780
11781fi
11782
9b33fe02
VZ
11783if test "$wxUSE_PLOT" = "yes"; then
11784 cat >> confdefs.h <<\EOF
11785#define wxUSE_PLOT 1
11786EOF
11787
11788fi
11789
10f2d63a
VZ
11790if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11791 cat >> confdefs.h <<\EOF
11792#define wxUSE_DIALUP_MANAGER 1
11793EOF
11794
70f7a477 11795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
11796fi
11797
11798if test "$wxUSE_STREAMS" = "yes" ; then
11799 cat >> confdefs.h <<\EOF
11800#define wxUSE_STREAMS 1
11801EOF
11802
11803fi
11804
10f2d63a 11805
afc31813 11806if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
11807 for ac_func in strptime
11808do
11809echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24528b0c 11810echo "configure:11811: checking for $ac_func" >&5
83307f33
VZ
11811if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11812 echo $ac_n "(cached) $ac_c" 1>&6
11813else
11814 cat > conftest.$ac_ext <<EOF
24528b0c 11815#line 11816 "configure"
83307f33
VZ
11816#include "confdefs.h"
11817/* System header to define __stub macros and hopefully few prototypes,
11818 which can conflict with char $ac_func(); below. */
11819#include <assert.h>
11820/* Override any gcc2 internal prototype to avoid an error. */
11821/* We use char because int might match the return type of a gcc2
11822 builtin and then its argument prototype would still apply. */
11823char $ac_func();
11824
11825int main() {
11826
11827/* The GNU C library defines this for functions which it implements
11828 to always fail with ENOSYS. Some functions are actually named
11829 something starting with __ and the normal name is an alias. */
11830#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11831choke me
11832#else
d6a55c4b 11833$ac_func();
83307f33
VZ
11834#endif
11835
11836; return 0; }
11837EOF
24528b0c 11838if { (eval echo configure:11839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
11839 rm -rf conftest*
11840 eval "ac_cv_func_$ac_func=yes"
11841else
11842 echo "configure: failed program was:" >&5
11843 cat conftest.$ac_ext >&5
11844 rm -rf conftest*
11845 eval "ac_cv_func_$ac_func=no"
11846fi
11847rm -f conftest*
11848fi
11849
11850if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11851 echo "$ac_t""yes" 1>&6
11852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11853 cat >> confdefs.h <<EOF
11854#define $ac_tr_func 1
11855EOF
11856
11857else
11858 echo "$ac_t""no" 1>&6
11859fi
11860done
11861
11862
360d6699 11863 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
24528b0c 11864echo "configure:11865: checking for timezone variable in <time.h>" >&5
360d6699
VZ
11865if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11866 echo $ac_n "(cached) $ac_c" 1>&6
11867else
11868
11869 cat > conftest.$ac_ext <<EOF
24528b0c 11870#line 11871 "configure"
360d6699
VZ
11871#include "confdefs.h"
11872
11873 #include <time.h>
11874
11875int main() {
11876
11877 int tz;
11878 tz = __timezone;
11879
11880; return 0; }
11881EOF
24528b0c 11882if { (eval echo configure:11883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11883 rm -rf conftest*
11884
11885 wx_cv_var_timezone=__timezone
11886
11887else
11888 echo "configure: failed program was:" >&5
11889 cat conftest.$ac_ext >&5
11890 rm -rf conftest*
11891
11892 cat > conftest.$ac_ext <<EOF
24528b0c 11893#line 11894 "configure"
360d6699
VZ
11894#include "confdefs.h"
11895
11896 #include <time.h>
11897
11898int main() {
11899
11900 int tz;
11901 tz = _timezone;
11902
11903; return 0; }
11904EOF
24528b0c 11905if { (eval echo configure:11906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11906 rm -rf conftest*
11907
11908 wx_cv_var_timezone=_timezone
11909
5357c8e8
VZ
11910else
11911 echo "configure: failed program was:" >&5
11912 cat conftest.$ac_ext >&5
11913 rm -rf conftest*
11914
11915 cat > conftest.$ac_ext <<EOF
24528b0c 11916#line 11917 "configure"
5357c8e8
VZ
11917#include "confdefs.h"
11918
11919 #include <time.h>
11920
11921int main() {
11922
11923 int tz;
11924 tz = timezone;
11925
11926; return 0; }
11927EOF
24528b0c 11928if { (eval echo configure:11929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
11929 rm -rf conftest*
11930
11931 wx_cv_var_timezone=timezone
11932
360d6699
VZ
11933else
11934 echo "configure: failed program was:" >&5
11935 cat conftest.$ac_ext >&5
11936 rm -rf conftest*
11937 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
11938
11939fi
11940rm -f conftest*
11941
360d6699
VZ
11942
11943fi
11944rm -f conftest*
11945
11946
11947fi
11948rm -f conftest*
11949
11950
11951fi
11952
11953echo "$ac_t""$wx_cv_var_timezone" 1>&6
11954
11955 cat >> confdefs.h <<EOF
11956#define WX_TIMEZONE $wx_cv_var_timezone
11957EOF
11958
11959
3fcdd07b 11960 for ac_func in localtime
afc31813
VZ
11961do
11962echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24528b0c 11963echo "configure:11964: checking for $ac_func" >&5
afc31813
VZ
11964if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11965 echo $ac_n "(cached) $ac_c" 1>&6
11966else
11967 cat > conftest.$ac_ext <<EOF
24528b0c 11968#line 11969 "configure"
10f2d63a 11969#include "confdefs.h"
afc31813
VZ
11970/* System header to define __stub macros and hopefully few prototypes,
11971 which can conflict with char $ac_func(); below. */
11972#include <assert.h>
11973/* Override any gcc2 internal prototype to avoid an error. */
11974/* We use char because int might match the return type of a gcc2
11975 builtin and then its argument prototype would still apply. */
11976char $ac_func();
11977
10f2d63a 11978int main() {
afc31813
VZ
11979
11980/* The GNU C library defines this for functions which it implements
11981 to always fail with ENOSYS. Some functions are actually named
11982 something starting with __ and the normal name is an alias. */
11983#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11984choke me
11985#else
d6a55c4b 11986$ac_func();
afc31813
VZ
11987#endif
11988
10f2d63a
VZ
11989; return 0; }
11990EOF
24528b0c 11991if { (eval echo configure:11992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 11992 rm -rf conftest*
afc31813 11993 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
11994else
11995 echo "configure: failed program was:" >&5
11996 cat conftest.$ac_ext >&5
11997 rm -rf conftest*
afc31813
VZ
11998 eval "ac_cv_func_$ac_func=no"
11999fi
12000rm -f conftest*
12001fi
12002
12003if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12004 echo "$ac_t""yes" 1>&6
12005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12006 cat >> confdefs.h <<EOF
12007#define $ac_tr_func 1
12008EOF
3fcdd07b 12009
afc31813
VZ
12010else
12011 echo "$ac_t""no" 1>&6
12012fi
12013done
12014
12015
0470b1e6
VZ
12016 if test "$ac_cv_func_localtime" = "yes"; then
12017 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
24528b0c 12018echo "configure:12019: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
12019if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
12020 echo $ac_n "(cached) $ac_c" 1>&6
12021else
12022
12023 cat > conftest.$ac_ext <<EOF
24528b0c 12024#line 12025 "configure"
0470b1e6
VZ
12025#include "confdefs.h"
12026
12027 #include <time.h>
12028
12029int main() {
12030
12031 struct tm tm;
12032 tm.tm_gmtoff++;
12033
12034; return 0; }
12035EOF
24528b0c 12036if { (eval echo configure:12037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
12037 rm -rf conftest*
12038
f03a98d8 12039 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
12040 cat >> confdefs.h <<\EOF
12041#define WX_GMTOFF_IN_TM 1
12042EOF
12043
12044
12045else
12046 echo "configure: failed program was:" >&5
12047 cat conftest.$ac_ext >&5
12048 rm -rf conftest*
12049 wx_cv_struct_tm_has_gmtoff=no
12050
12051fi
12052rm -f conftest*
12053
12054fi
12055
12056echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
12057 fi
12058
12059 for ac_func in gettimeofday ftime
12060do
12061echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24528b0c 12062echo "configure:12063: checking for $ac_func" >&5
3fcdd07b
VZ
12063if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12064 echo $ac_n "(cached) $ac_c" 1>&6
12065else
12066 cat > conftest.$ac_ext <<EOF
24528b0c 12067#line 12068 "configure"
3fcdd07b
VZ
12068#include "confdefs.h"
12069/* System header to define __stub macros and hopefully few prototypes,
12070 which can conflict with char $ac_func(); below. */
12071#include <assert.h>
12072/* Override any gcc2 internal prototype to avoid an error. */
12073/* We use char because int might match the return type of a gcc2
12074 builtin and then its argument prototype would still apply. */
12075char $ac_func();
12076
12077int main() {
12078
12079/* The GNU C library defines this for functions which it implements
12080 to always fail with ENOSYS. Some functions are actually named
12081 something starting with __ and the normal name is an alias. */
12082#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12083choke me
12084#else
d6a55c4b 12085$ac_func();
3fcdd07b
VZ
12086#endif
12087
12088; return 0; }
12089EOF
24528b0c 12090if { (eval echo configure:12091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
12091 rm -rf conftest*
12092 eval "ac_cv_func_$ac_func=yes"
12093else
12094 echo "configure: failed program was:" >&5
12095 cat conftest.$ac_ext >&5
12096 rm -rf conftest*
12097 eval "ac_cv_func_$ac_func=no"
12098fi
12099rm -f conftest*
12100fi
12101
12102if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12103 echo "$ac_t""yes" 1>&6
12104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12105 cat >> confdefs.h <<EOF
12106#define $ac_tr_func 1
12107EOF
12108 break
12109else
12110 echo "$ac_t""no" 1>&6
12111fi
12112done
12113
12114
12115 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 12116 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
24528b0c 12117echo "configure:12118: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
12118if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12119 echo $ac_n "(cached) $ac_c" 1>&6
12120else
12121
12122
12123 ac_ext=C
12124# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12125ac_cpp='$CXXCPP $CPPFLAGS'
12126ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12127ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12128cross_compiling=$ac_cv_prog_cxx_cross
12129
12130
12131 cat > conftest.$ac_ext <<EOF
24528b0c 12132#line 12133 "configure"
10f2d63a 12133#include "confdefs.h"
afc31813
VZ
12134
12135 #include <sys/time.h>
12136 #include <unistd.h>
12137
10f2d63a 12138int main() {
afc31813
VZ
12139
12140 struct timeval tv;
12141 struct timezone tz;
12142 gettimeofday(&tv, &tz);
12143
10f2d63a
VZ
12144; return 0; }
12145EOF
24528b0c 12146if { (eval echo configure:12147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12147 rm -rf conftest*
afc31813 12148 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
12149else
12150 echo "configure: failed program was:" >&5
12151 cat conftest.$ac_ext >&5
12152 rm -rf conftest*
12153 cat > conftest.$ac_ext <<EOF
24528b0c 12154#line 12155 "configure"
10f2d63a 12155#include "confdefs.h"
afc31813
VZ
12156
12157 #include <sys/time.h>
12158 #include <unistd.h>
12159
10f2d63a 12160int main() {
afc31813
VZ
12161
12162 struct timeval tv;
12163 gettimeofday(&tv);
12164
10f2d63a
VZ
12165; return 0; }
12166EOF
24528b0c 12167if { (eval echo configure:12168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12168 rm -rf conftest*
afc31813 12169 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
12170else
12171 echo "configure: failed program was:" >&5
12172 cat conftest.$ac_ext >&5
12173 rm -rf conftest*
afc31813
VZ
12174 wx_cv_func_gettimeofday_has_2_args=unknown
12175
10f2d63a
VZ
12176fi
12177rm -f conftest*
afc31813 12178
10f2d63a
VZ
12179fi
12180rm -f conftest*
afc31813 12181 ac_ext=c
10f2d63a
VZ
12182# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12183ac_cpp='$CPP $CPPFLAGS'
12184ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12185ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12186cross_compiling=$ac_cv_prog_cc_cross
12187
afc31813
VZ
12188
12189fi
12190
12191echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 12192
afc31813
VZ
12193 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12194 cat >> confdefs.h <<\EOF
12195#define WX_GETTIMEOFDAY_NO_TZ 1
12196EOF
12197
12198 fi
12199 fi
12200
12201 cat >> confdefs.h <<\EOF
12202#define wxUSE_TIMEDATE 1
12203EOF
12204
12205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12206fi
12207
12208
b089607b
VZ
12209if test "$TOOLKIT" != "MSW"; then
12210
afc31813 12211if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 12212 echo $ac_n "checking for socket""... $ac_c" 1>&6
24528b0c 12213echo "configure:12214: checking for socket" >&5
c63c7106
VZ
12214if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12215 echo $ac_n "(cached) $ac_c" 1>&6
12216else
12217 cat > conftest.$ac_ext <<EOF
24528b0c 12218#line 12219 "configure"
c63c7106
VZ
12219#include "confdefs.h"
12220/* System header to define __stub macros and hopefully few prototypes,
12221 which can conflict with char socket(); below. */
12222#include <assert.h>
12223/* Override any gcc2 internal prototype to avoid an error. */
12224/* We use char because int might match the return type of a gcc2
12225 builtin and then its argument prototype would still apply. */
12226char socket();
12227
12228int main() {
12229
12230/* The GNU C library defines this for functions which it implements
12231 to always fail with ENOSYS. Some functions are actually named
12232 something starting with __ and the normal name is an alias. */
12233#if defined (__stub_socket) || defined (__stub___socket)
12234choke me
12235#else
d6a55c4b 12236socket();
c63c7106
VZ
12237#endif
12238
12239; return 0; }
12240EOF
24528b0c 12241if { (eval echo configure:12242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12242 rm -rf conftest*
12243 eval "ac_cv_func_socket=yes"
12244else
12245 echo "configure: failed program was:" >&5
12246 cat conftest.$ac_ext >&5
12247 rm -rf conftest*
12248 eval "ac_cv_func_socket=no"
12249fi
12250rm -f conftest*
12251fi
12252
12253if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12254 echo "$ac_t""yes" 1>&6
12255 :
12256else
12257 echo "$ac_t""no" 1>&6
12258echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
24528b0c 12259echo "configure:12260: checking for socket in -lsocket" >&5
c63c7106
VZ
12260ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12261if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12262 echo $ac_n "(cached) $ac_c" 1>&6
12263else
12264 ac_save_LIBS="$LIBS"
12265LIBS="-lsocket $LIBS"
12266cat > conftest.$ac_ext <<EOF
24528b0c 12267#line 12268 "configure"
c63c7106
VZ
12268#include "confdefs.h"
12269/* Override any gcc2 internal prototype to avoid an error. */
12270/* We use char because int might match the return type of a gcc2
12271 builtin and then its argument prototype would still apply. */
12272char socket();
12273
12274int main() {
12275socket()
12276; return 0; }
12277EOF
24528b0c 12278if { (eval echo configure:12279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12279 rm -rf conftest*
12280 eval "ac_cv_lib_$ac_lib_var=yes"
12281else
12282 echo "configure: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12284 rm -rf conftest*
12285 eval "ac_cv_lib_$ac_lib_var=no"
12286fi
12287rm -f conftest*
12288LIBS="$ac_save_LIBS"
12289
12290fi
12291if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12292 echo "$ac_t""yes" 1>&6
12293 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
12294else
12295 echo "$ac_t""no" 1>&6
afc31813
VZ
12296
12297 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12298 wxUSE_SOCKETS=no
12299
12300
c63c7106
VZ
12301fi
12302
12303
12304fi
12305
10f2d63a
VZ
12306fi
12307
b089607b
VZ
12308fi
12309
afc31813 12310if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 12311 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
24528b0c 12312echo "configure:12313: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
12313if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12314 echo $ac_n "(cached) $ac_c" 1>&6
12315else
12316
12317
12318 ac_ext=C
afc31813
VZ
12319# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12320ac_cpp='$CXXCPP $CPPFLAGS'
12321ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12322ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12323cross_compiling=$ac_cv_prog_cxx_cross
12324
51a9faba
VZ
12325
12326 cat > conftest.$ac_ext <<EOF
24528b0c 12327#line 12328 "configure"
afc31813 12328#include "confdefs.h"
51a9faba 12329
3ace2e6d 12330 #include <sys/types.h>
51a9faba
VZ
12331 #include <sys/socket.h>
12332
afc31813 12333int main() {
51a9faba
VZ
12334
12335 socklen_t len;
12336 getsockname(0, 0, &len);
12337
afc31813
VZ
12338; return 0; }
12339EOF
24528b0c 12340if { (eval echo configure:12341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12341 rm -rf conftest*
51a9faba 12342 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
12343else
12344 echo "configure: failed program was:" >&5
12345 cat conftest.$ac_ext >&5
12346 rm -rf conftest*
12347 cat > conftest.$ac_ext <<EOF
24528b0c 12348#line 12349 "configure"
afc31813 12349#include "confdefs.h"
51a9faba 12350
3ace2e6d 12351 #include <sys/types.h>
51a9faba
VZ
12352 #include <sys/socket.h>
12353
afc31813 12354int main() {
51a9faba
VZ
12355
12356 size_t len;
12357 getsockname(0, 0, &len);
12358
afc31813
VZ
12359; return 0; }
12360EOF
24528b0c 12361if { (eval echo configure:12362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12362 rm -rf conftest*
51a9faba 12363 wx_cv_type_getsockname3=size_t
afc31813
VZ
12364else
12365 echo "configure: failed program was:" >&5
12366 cat conftest.$ac_ext >&5
12367 rm -rf conftest*
12368 cat > conftest.$ac_ext <<EOF
24528b0c 12369#line 12370 "configure"
afc31813 12370#include "confdefs.h"
51a9faba 12371
3ace2e6d 12372 #include <sys/types.h>
51a9faba
VZ
12373 #include <sys/socket.h>
12374
afc31813 12375int main() {
51a9faba
VZ
12376
12377 int len;
12378 getsockname(0, 0, &len);
12379
afc31813
VZ
12380; return 0; }
12381EOF
24528b0c 12382if { (eval echo configure:12383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12383 rm -rf conftest*
51a9faba 12384 wx_cv_type_getsockname3=int
afc31813
VZ
12385else
12386 echo "configure: failed program was:" >&5
12387 cat conftest.$ac_ext >&5
3ace2e6d
SN
12388 rm -rf conftest*
12389 wx_cv_type_getsockname3=unknown
12390
afc31813
VZ
12391fi
12392rm -f conftest*
51a9faba 12393
afc31813
VZ
12394fi
12395rm -f conftest*
51a9faba 12396
afc31813
VZ
12397fi
12398rm -f conftest*
51a9faba
VZ
12399
12400 ac_ext=c
afc31813
VZ
12401# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12402ac_cpp='$CPP $CPPFLAGS'
12403ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12404ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12405cross_compiling=$ac_cv_prog_cc_cross
12406
51a9faba
VZ
12407
12408fi
12409
12410echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12411
12412 if test "$wx_cv_type_getsockname3" = "unknown"; then
12413 wxUSE_SOCKETS=no
12414 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12415 else
12416 cat >> confdefs.h <<EOF
12417#define SOCKLEN_T $wx_cv_type_getsockname3
12418EOF
12419
12420 fi
12421fi
afc31813 12422
51a9faba 12423if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
12424 cat >> confdefs.h <<\EOF
12425#define wxUSE_SOCKETS 1
12426EOF
12427
70f7a477 12428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
12429 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12430fi
12431
10f2d63a 12432
b089607b
VZ
12433if test "$TOOLKIT" != "MSW"; then
12434
10f2d63a
VZ
12435if test "$wxUSE_JOYSTICK" = 1; then
12436 for ac_hdr in linux/joystick.h
12437do
12438ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12439echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24528b0c 12440echo "configure:12441: checking for $ac_hdr" >&5
10f2d63a
VZ
12441if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12442 echo $ac_n "(cached) $ac_c" 1>&6
12443else
12444 cat > conftest.$ac_ext <<EOF
24528b0c 12445#line 12446 "configure"
10f2d63a
VZ
12446#include "confdefs.h"
12447#include <$ac_hdr>
12448EOF
12449ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 12450{ (eval echo configure:12451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12451ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12452if test -z "$ac_err"; then
12453 rm -rf conftest*
12454 eval "ac_cv_header_$ac_safe=yes"
12455else
12456 echo "$ac_err" >&5
12457 echo "configure: failed program was:" >&5
12458 cat conftest.$ac_ext >&5
12459 rm -rf conftest*
12460 eval "ac_cv_header_$ac_safe=no"
12461fi
12462rm -f conftest*
12463fi
12464if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12465 echo "$ac_t""yes" 1>&6
12466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12467 cat >> confdefs.h <<EOF
12468#define $ac_tr_hdr 1
12469EOF
12470
12471else
12472 echo "$ac_t""no" 1>&6
12473fi
12474done
12475
b089607b
VZ
12476 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
12477 wxUSE_JOYSTICK=0
12478 echo "configure: warning: Joystick not supported yb this system" 1>&2
12479 fi
12480fi
12481
12482fi
12483
12484if test "$wxUSE_JOYSTICK" = 1; then
10f2d63a
VZ
12485 cat >> confdefs.h <<\EOF
12486#define wxUSE_JOYSTICK 1
12487EOF
12488
12489 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
12490fi
12491
12492
b089607b
VZ
12493if test "$TOOLKIT" != "MSW"; then
12494
10f2d63a
VZ
12495HAVE_DL_FUNCS=0
12496HAVE_SHL_FUNCS=0
12497if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12498 for ac_func in dlopen
12499do
12500echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24528b0c 12501echo "configure:12502: checking for $ac_func" >&5
10f2d63a
VZ
12502if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12503 echo $ac_n "(cached) $ac_c" 1>&6
12504else
12505 cat > conftest.$ac_ext <<EOF
24528b0c 12506#line 12507 "configure"
10f2d63a
VZ
12507#include "confdefs.h"
12508/* System header to define __stub macros and hopefully few prototypes,
12509 which can conflict with char $ac_func(); below. */
12510#include <assert.h>
12511/* Override any gcc2 internal prototype to avoid an error. */
12512/* We use char because int might match the return type of a gcc2
12513 builtin and then its argument prototype would still apply. */
12514char $ac_func();
12515
12516int main() {
12517
12518/* The GNU C library defines this for functions which it implements
12519 to always fail with ENOSYS. Some functions are actually named
12520 something starting with __ and the normal name is an alias. */
12521#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12522choke me
12523#else
d6a55c4b 12524$ac_func();
10f2d63a
VZ
12525#endif
12526
12527; return 0; }
12528EOF
24528b0c 12529if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12530 rm -rf conftest*
12531 eval "ac_cv_func_$ac_func=yes"
12532else
12533 echo "configure: failed program was:" >&5
12534 cat conftest.$ac_ext >&5
12535 rm -rf conftest*
12536 eval "ac_cv_func_$ac_func=no"
12537fi
12538rm -f conftest*
12539fi
12540
12541if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12542 echo "$ac_t""yes" 1>&6
12543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12544 cat >> confdefs.h <<EOF
12545#define $ac_tr_func 1
12546EOF
12547
12548 cat >> confdefs.h <<\EOF
12549#define HAVE_DLOPEN 1
12550EOF
12551
12552 HAVE_DL_FUNCS=1
12553
12554else
12555 echo "$ac_t""no" 1>&6
12556echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
24528b0c 12557echo "configure:12558: checking for dlopen in -ldl" >&5
10f2d63a
VZ
12558ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12559if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12560 echo $ac_n "(cached) $ac_c" 1>&6
12561else
12562 ac_save_LIBS="$LIBS"
12563LIBS="-ldl $LIBS"
12564cat > conftest.$ac_ext <<EOF
24528b0c 12565#line 12566 "configure"
10f2d63a
VZ
12566#include "confdefs.h"
12567/* Override any gcc2 internal prototype to avoid an error. */
12568/* We use char because int might match the return type of a gcc2
12569 builtin and then its argument prototype would still apply. */
12570char dlopen();
12571
12572int main() {
12573dlopen()
12574; return 0; }
12575EOF
24528b0c 12576if { (eval echo configure:12577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12577 rm -rf conftest*
12578 eval "ac_cv_lib_$ac_lib_var=yes"
12579else
12580 echo "configure: failed program was:" >&5
12581 cat conftest.$ac_ext >&5
12582 rm -rf conftest*
12583 eval "ac_cv_lib_$ac_lib_var=no"
12584fi
12585rm -f conftest*
12586LIBS="$ac_save_LIBS"
12587
12588fi
12589if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12590 echo "$ac_t""yes" 1>&6
12591
12592 cat >> confdefs.h <<\EOF
12593#define HAVE_DLOPEN 1
12594EOF
12595
12596 HAVE_DL_FUNCS=1
12597 LIBS="$LIBS -ldl"
12598
12599else
12600 echo "$ac_t""no" 1>&6
12601
12602 for ac_func in shl_load
12603do
12604echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24528b0c 12605echo "configure:12606: checking for $ac_func" >&5
10f2d63a
VZ
12606if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12607 echo $ac_n "(cached) $ac_c" 1>&6
12608else
12609 cat > conftest.$ac_ext <<EOF
24528b0c 12610#line 12611 "configure"
10f2d63a
VZ
12611#include "confdefs.h"
12612/* System header to define __stub macros and hopefully few prototypes,
12613 which can conflict with char $ac_func(); below. */
12614#include <assert.h>
12615/* Override any gcc2 internal prototype to avoid an error. */
12616/* We use char because int might match the return type of a gcc2
12617 builtin and then its argument prototype would still apply. */
12618char $ac_func();
12619
12620int main() {
12621
12622/* The GNU C library defines this for functions which it implements
12623 to always fail with ENOSYS. Some functions are actually named
12624 something starting with __ and the normal name is an alias. */
12625#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12626choke me
12627#else
d6a55c4b 12628$ac_func();
10f2d63a
VZ
12629#endif
12630
12631; return 0; }
12632EOF
24528b0c 12633if { (eval echo configure:12634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12634 rm -rf conftest*
12635 eval "ac_cv_func_$ac_func=yes"
12636else
12637 echo "configure: failed program was:" >&5
12638 cat conftest.$ac_ext >&5
12639 rm -rf conftest*
12640 eval "ac_cv_func_$ac_func=no"
12641fi
12642rm -f conftest*
12643fi
12644
12645if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12646 echo "$ac_t""yes" 1>&6
12647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12648 cat >> confdefs.h <<EOF
12649#define $ac_tr_func 1
12650EOF
12651
12652 cat >> confdefs.h <<\EOF
12653#define HAVE_SHL_LOAD 1
12654EOF
12655
12656 HAVE_SHL_FUNCS=1
12657
12658else
12659 echo "$ac_t""no" 1>&6
12660fi
12661done
12662
12663
12664fi
12665
12666
12667fi
12668done
12669
12670
12671 if test "$HAVE_DL_FUNCS" = 0; then
12672 if test "$HAVE_SHL_FUNCS" = 0; then
12673 if test "$USE_UNIX" = 1; then
b12915c1 12674 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
12675 wxUSE_DYNLIB_CLASS=no
12676 else
b12915c1 12677 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
12678 fi
12679 fi
12680 fi
12681fi
12682
b089607b
VZ
12683fi
12684
10f2d63a 12685if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 12686 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12687#define wxUSE_DYNLIB_CLASS 1
12688EOF
12689
b12915c1
VZ
12690else
12691 wxUSE_ODBC=no
12692 wxUSE_SERIAL=no
10f2d63a
VZ
12693fi
12694
12695
12696if test "$wxUSE_UNICODE" = "yes" ; then
12697 cat >> confdefs.h <<\EOF
12698#define wxUSE_UNICODE 1
12699EOF
12700
12701fi
12702
12703if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12704 cat >> confdefs.h <<\EOF
12705#define wxUSE_WCSRTOMBS 1
12706EOF
12707
12708fi
12709
12710if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12711 cat >> confdefs.h <<\EOF
12712#define wxUSE_EXPERIMENTAL_PRINTF 1
12713EOF
12714
12715fi
12716
12717
b12915c1
VZ
12718if test "$wxUSE_SERIAL" = "yes" ; then
12719 cat >> confdefs.h <<\EOF
12720#define wxUSE_SERIAL 1
12721EOF
12722
12723fi
12724
12725
10f2d63a
VZ
12726IODBC_C_SRC=""
12727if test "$wxUSE_ODBC" = "yes" ; then
12728 cat >> confdefs.h <<\EOF
12729#define wxUSE_ODBC 1
12730EOF
12731
12732 WXODBCFLAG="-D_IODBC_"
12733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12734 IODBCOBJS="\$(IODBC_OBJS)"
12735else
12736 IODBCOBJS=
12737fi
12738
12739
12740if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12741 cat >> confdefs.h <<\EOF
12742#define wxUSE_POSTSCRIPT 1
12743EOF
12744
12745fi
12746
12747cat >> confdefs.h <<\EOF
12748#define wxUSE_AFM_FOR_POSTSCRIPT 1
12749EOF
12750
12751
12752cat >> confdefs.h <<\EOF
12753#define wxUSE_NORMALIZED_PS_FONTS 1
12754EOF
12755
12756
12757
12758if test "$wxUSE_CONSTRAINTS" = "yes"; then
12759 cat >> confdefs.h <<\EOF
12760#define wxUSE_CONSTRAINTS 1
12761EOF
12762
12763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12764fi
12765
12766if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12767 cat >> confdefs.h <<\EOF
12768#define wxUSE_MDI_ARCHITECTURE 1
12769EOF
12770
12771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12772fi
12773
12774if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12775 cat >> confdefs.h <<\EOF
12776#define wxUSE_DOC_VIEW_ARCHITECTURE 1
12777EOF
12778
12779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12780 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12781 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12782 fi
12783fi
12784
12785if test "$wxUSE_HELP" = "yes"; then
12786 cat >> confdefs.h <<\EOF
12787#define wxUSE_HELP 1
12788EOF
12789
12790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12791fi
12792
12793if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12794 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12795 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12796 else
12797 cat >> confdefs.h <<\EOF
12798#define wxUSE_PRINTING_ARCHITECTURE 1
12799EOF
12800
12801 fi
12802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12803fi
12804
12805if test "$wxUSE_PROLOGIO" = "yes" ; then
12806 cat >> confdefs.h <<\EOF
12807#define wxUSE_PROLOGIO 1
12808EOF
12809
12810fi
12811
12812if test "$wxUSE_RESOURCES" = "yes" ; then
12813 if test "$wxUSE_PROLOGIO" = "yes" ; then
12814 cat >> confdefs.h <<\EOF
12815#define wxUSE_RESOURCES 1
12816EOF
12817
12818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12819 else
12820 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12821 fi
12822fi
12823
12824if test "$wxUSE_X_RESOURCES" = "yes"; then
12825 cat >> confdefs.h <<\EOF
12826#define wxUSE_X_RESOURCES 1
12827EOF
12828
12829fi
12830
12831
12832if test "$wxUSE_IPC" = "yes"; then
12833 cat >> confdefs.h <<\EOF
12834#define wxUSE_IPC 1
12835EOF
12836
12837fi
12838
12839if test "$wxUSE_CLIPBOARD" = "yes"; then
12840 cat >> confdefs.h <<\EOF
12841#define wxUSE_CLIPBOARD 1
12842EOF
12843
12844fi
12845
12846if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12847 if test "$wxUSE_GTK" = 1; then
12848 if test "$WXGTK12" != 1; then
12849 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12850 wxUSE_DRAG_AND_DROP=no
12851 fi
12852 fi
12853
12854 if test "$wxUSE_MOTIF" = 1; then
12855 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12856 wxUSE_DRAG_AND_DROP=no
12857 fi
12858
12859 if test "$USE_WIN32" = 1; then
12860 for ac_hdr in ole2.h
12861do
12862ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12863echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24528b0c 12864echo "configure:12865: checking for $ac_hdr" >&5
10f2d63a
VZ
12865if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12866 echo $ac_n "(cached) $ac_c" 1>&6
12867else
12868 cat > conftest.$ac_ext <<EOF
24528b0c 12869#line 12870 "configure"
10f2d63a
VZ
12870#include "confdefs.h"
12871#include <$ac_hdr>
12872EOF
12873ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24528b0c 12874{ (eval echo configure:12875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12875ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12876if test -z "$ac_err"; then
12877 rm -rf conftest*
12878 eval "ac_cv_header_$ac_safe=yes"
12879else
12880 echo "$ac_err" >&5
12881 echo "configure: failed program was:" >&5
12882 cat conftest.$ac_ext >&5
12883 rm -rf conftest*
12884 eval "ac_cv_header_$ac_safe=no"
12885fi
12886rm -f conftest*
12887fi
12888if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12889 echo "$ac_t""yes" 1>&6
12890 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12891 cat >> confdefs.h <<EOF
12892#define $ac_tr_hdr 1
12893EOF
12894
12895else
12896 echo "$ac_t""no" 1>&6
12897fi
12898done
12899
12900 if test "x$HAVE_OLE2_H" = x ; then
12901 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12902 wxUSE_DRAG_AND_DROP=no
12903 fi
12904 fi
12905
12906 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12907 cat >> confdefs.h <<\EOF
12908#define wxUSE_DRAG_AND_DROP 1
12909EOF
12910
12911 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12912 fi
12913
12914fi
12915
12916if test "$wxUSE_SPLINES" = "yes" ; then
12917 cat >> confdefs.h <<\EOF
12918#define wxUSE_SPLINES 1
12919EOF
12920
12921fi
12922
12923
12924if test "$wxUSE_ACCEL" = "yes"; then
12925 cat >> confdefs.h <<\EOF
12926#define wxUSE_ACCEL 1
12927EOF
12928
12929fi
12930
12931if test "$wxUSE_CARET" = "yes"; then
12932 cat >> confdefs.h <<\EOF
12933#define wxUSE_CARET 1
12934EOF
12935
12936 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12937fi
12938
12939if test "$wxUSE_COMBOBOX" = "yes"; then
12940 cat >> confdefs.h <<\EOF
12941#define wxUSE_COMBOBOX 1
12942EOF
12943
12944fi
12945
12946if test "$wxUSE_CHOICE" = "yes"; then
12947 cat >> confdefs.h <<\EOF
12948#define wxUSE_CHOICE 1
12949EOF
12950
12951fi
12952
12953if test "$wxUSE_BMPBUTTON" = "yes"; then
12954 cat >> confdefs.h <<\EOF
12955#define wxUSE_BMPBUTTON 1
12956EOF
12957
12958fi
12959
12960if test "$wxUSE_CHECKBOX" = "yes"; then
12961 cat >> confdefs.h <<\EOF
12962#define wxUSE_CHECKBOX 1
12963EOF
12964
12965fi
12966
12967if test "$wxUSE_CHECKLST" = "yes"; then
12968 cat >> confdefs.h <<\EOF
12969#define wxUSE_CHECKLISTBOX 1
12970EOF
12971
12972 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12973fi
12974
12975if test "$wxUSE_GAUGE" = "yes"; then
12976 cat >> confdefs.h <<\EOF
12977#define wxUSE_GAUGE 1
12978EOF
12979
12980fi
12981
d6a55c4b
VZ
12982if test "$wxUSE_NEW_GRID" = "yes"; then
12983 wxUSE_GRID="yes"
10f2d63a 12984 cat >> confdefs.h <<\EOF
d6a55c4b 12985#define wxUSE_NEW_GRID 1
10f2d63a
VZ
12986EOF
12987
d6a55c4b 12988 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
12989fi
12990
d6a55c4b 12991if test "$wxUSE_GRID" = "yes"; then
10f2d63a 12992 cat >> confdefs.h <<\EOF
d6a55c4b 12993#define wxUSE_GRID 1
10f2d63a
VZ
12994EOF
12995
d6a55c4b 12996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
12997fi
12998
12999if test "$wxUSE_IMAGLIST" = "yes"; then
13000 cat >> confdefs.h <<\EOF
13001#define wxUSE_IMAGLIST 1
13002EOF
13003
13004fi
13005
13006if test "$wxUSE_LISTBOX" = "yes"; then
13007 cat >> confdefs.h <<\EOF
13008#define wxUSE_LISTBOX 1
13009EOF
13010
13011fi
13012
13013if test "$wxUSE_LISTCTRL" = "yes"; then
13014 if test "$wxUSE_IMAGLIST" = "yes"; then
13015 cat >> confdefs.h <<\EOF
13016#define wxUSE_LISTCTRL 1
13017EOF
13018
13019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
13020 else
13021 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
13022 fi
13023fi
13024
13025if test "$wxUSE_NOTEBOOK" = "yes"; then
13026 cat >> confdefs.h <<\EOF
13027#define wxUSE_NOTEBOOK 1
13028EOF
13029
13030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
13031fi
13032
13033if test "$wxUSE_RADIOBOX" = "yes"; then
13034 cat >> confdefs.h <<\EOF
13035#define wxUSE_RADIOBOX 1
13036EOF
13037
13038fi
13039
13040if test "$wxUSE_RADIOBTN" = "yes"; then
13041 cat >> confdefs.h <<\EOF
13042#define wxUSE_RADIOBTN 1
13043EOF
13044
13045fi
13046
13047if test "$wxUSE_SASH" = "yes"; then
13048 cat >> confdefs.h <<\EOF
13049#define wxUSE_SASH 1
13050EOF
13051
13052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
13053fi
13054
13055if test "$wxUSE_SCROLLBAR" = "yes"; then
13056 cat >> confdefs.h <<\EOF
13057#define wxUSE_SCROLLBAR 1
13058EOF
13059
741a9306 13060 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
13061fi
13062
13063if test "$wxUSE_SLIDER" = "yes"; then
13064 cat >> confdefs.h <<\EOF
13065#define wxUSE_SLIDER 1
13066EOF
13067
13068fi
13069
13070if test "$wxUSE_SPINBTN" = "yes"; then
13071 cat >> confdefs.h <<\EOF
13072#define wxUSE_SPINBTN 1
13073EOF
13074
13075fi
13076
56cfaa52
RR
13077if test "$wxUSE_SPINCTRL" = "yes"; then
13078 cat >> confdefs.h <<\EOF
13079#define wxUSE_SPINCTRL 1
13080EOF
13081
13082fi
13083
10f2d63a
VZ
13084if test "$wxUSE_SPLITTER" = "yes"; then
13085 cat >> confdefs.h <<\EOF
13086#define wxUSE_SPLITTER 1
13087EOF
13088
13089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
13090fi
13091
13092if test "$wxUSE_STATBMP" = "yes"; then
13093 cat >> confdefs.h <<\EOF
13094#define wxUSE_STATBMP 1
13095EOF
13096
13097fi
13098
13099if test "$wxUSE_STATBOX" = "yes"; then
13100 cat >> confdefs.h <<\EOF
13101#define wxUSE_STATBOX 1
13102EOF
13103
13104fi
13105
13106if test "$wxUSE_STATLINE" = "yes"; then
13107 if test "$wxUSE_WINE" = 1 ; then
13108 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
13109 else
13110 cat >> confdefs.h <<\EOF
13111#define wxUSE_STATLINE 1
13112EOF
13113
13114 fi
13115fi
13116
13117if test "$wxUSE_STATUSBAR" = "yes"; then
13118 cat >> confdefs.h <<\EOF
13119#define wxUSE_STATUSBAR 1
13120EOF
13121
2286341c
VZ
13122
13123 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
13124fi
13125
13126if test "$wxUSE_TABDIALOG" = "yes"; then
13127 cat >> confdefs.h <<\EOF
13128#define wxUSE_TAB_DIALOG 1
13129EOF
13130
13131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
13132fi
13133
360d6699
VZ
13134if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
13135 cat >> confdefs.h <<\EOF
13136#define wxUSE_TOOLBAR_SIMPLE 1
13137EOF
13138
13139 wxUSE_TOOLBAR="yes"
13140fi
13141
10f2d63a
VZ
13142if test "$wxUSE_TOOLBAR" = "yes"; then
13143 cat >> confdefs.h <<\EOF
13144#define wxUSE_TOOLBAR 1
13145EOF
13146
360d6699
VZ
13147
13148 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
13149 wxUSE_TOOLBAR_NATIVE="yes"
13150 fi
13151
10f2d63a
VZ
13152 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
13153fi
13154
360d6699
VZ
13155if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
13156 cat >> confdefs.h <<\EOF
13157#define wxUSE_TOOLBAR_NATIVE 1
13158EOF
13159
13160fi
13161
10f2d63a
VZ
13162if test "$wxUSE_TOOLTIPS" = "yes"; then
13163 if test "$wxUSE_MOTIF" = 1; then
13164 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13165 else
13166 if test "$wxUSE_WINE" = 1; then
13167 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13168 else
13169 cat >> confdefs.h <<\EOF
13170#define wxUSE_TOOLTIPS 1
13171EOF
13172
13173 fi
13174 fi
13175fi
13176
13177if test "$wxUSE_TREECTRL" = "yes"; then
13178 if test "$wxUSE_IMAGLIST" = "yes"; then
13179 cat >> confdefs.h <<\EOF
13180#define wxUSE_TREECTRL 1
13181EOF
13182
13183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13184 else
13185 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13186 fi
13187fi
13188
13189
13190
13191if test "$wxUSE_METAFILE" = "yes"; then
13192 cat >> confdefs.h <<\EOF
13193#define wxUSE_METAFILE 1
13194EOF
13195
13196fi
13197
13198if test "$wxUSE_DIRDLG" = "yes"; then
13199 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13200 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13201 else
13202 if test "$wxUSE_TREECTRL" != "yes"; then
13203 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13204 else
13205 cat >> confdefs.h <<\EOF
13206#define wxUSE_DIRDLG 1
13207EOF
13208
13209 fi
13210 fi
13211fi
13212
13213if test "$wxUSE_TEXTDLG" = "yes"; then
13214 cat >> confdefs.h <<\EOF
13215#define wxUSE_TEXTDLG 1
13216EOF
13217
13218fi
13219
13220if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13221 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13222 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13223 else
13224 cat >> confdefs.h <<\EOF
13225#define wxUSE_STARTUP_TIPS 1
13226EOF
13227
13228 fi
13229fi
13230
13231if test "$wxUSE_PROGRESSDLG" = "yes"; then
13232 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13233 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13234 else
13235 cat >> confdefs.h <<\EOF
13236#define wxUSE_PROGRESSDLG 1
13237EOF
13238
13239 fi
13240fi
13241
13242if test "$wxUSE_MINIFRAME" = "yes"; then
13243 cat >> confdefs.h <<\EOF
13244#define wxUSE_MINIFRAME 1
13245EOF
13246
13247 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13248fi
13249
13250if test "$wxUSE_HTML" = "yes"; then
13251 cat >> confdefs.h <<\EOF
13252#define wxUSE_HTML 1
13253EOF
13254
13255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13256 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13257fi
13258
13259if test "$wxUSE_VALIDATORS" = "yes"; then
13260 cat >> confdefs.h <<\EOF
13261#define wxUSE_VALIDATORS 1
13262EOF
13263
13264 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13265fi
13266
13267if test "$wxUSE_GIF" = "yes" ; then
13268 cat >> confdefs.h <<\EOF
13269#define wxUSE_GIF 1
13270EOF
13271
13272fi
13273
13274if test "$wxUSE_PCX" = "yes" ; then
13275 cat >> confdefs.h <<\EOF
13276#define wxUSE_PCX 1
13277EOF
13278
13279fi
13280
13281if test "$wxUSE_PNM" = "yes" ; then
13282 cat >> confdefs.h <<\EOF
13283#define wxUSE_PNM 1
13284EOF
13285
13286fi
13287
13288
aaa37c0d
VZ
13289OSINFO=`uname -s -r -m`
13290OSINFO="\"$OSINFO\""
13291cat >> confdefs.h <<EOF
13292#define WXWIN_OS_DESCRIPTION $OSINFO
13293EOF
13294
13295
13296
10f2d63a
VZ
13297GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
13298
c63c7106 13299EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a
VZ
13300if test "$wxUSE_GUI" = "yes"; then
13301 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
13302fi
13303
13304LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13305
c7a2bf27 13306INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
13307
13308if test "$GXX" = yes ; then
13309 CXXWARNINGS="-Wall"
d6a55c4b 13310 fi
10f2d63a
VZ
13311EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13312
13313CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13314CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13315
e694c22c
VZ
13316LDFLAGS="$LDFLAGS $PROFILE"
13317
10f2d63a
VZ
13318if test "$wxUSE_GUI" = "yes"; then
13319
70f7a477
VZ
13320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs drawing dynamic \
13321 font fractal image minimal richedit"
b12915c1 13322
88d3a15c 13323 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
13324else
13325 SAMPLES_SUBDIRS=""
13326fi
13327
ec14dd32
VZ
13328SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13329
13330
13331
10f2d63a
VZ
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
1d62a8b4 13384
e694c22c 13385
b12915c1 13386
2224580a
VZ
13387
13388
13389
13390
dad6c0ea
VZ
13391
13392
caa2c79b 13393
10f2d63a
VZ
13394
13395
13396echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
24528b0c 13397echo "configure:13398: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
13398set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13399if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13400 echo $ac_n "(cached) $ac_c" 1>&6
13401else
13402 cat > conftestmake <<\EOF
13403all:
13404 @echo 'ac_maketemp="${MAKE}"'
13405EOF
13406# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13407eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13408if test -n "$ac_maketemp"; then
13409 eval ac_cv_prog_make_${ac_make}_set=yes
13410else
13411 eval ac_cv_prog_make_${ac_make}_set=no
13412fi
13413rm -f conftestmake
13414fi
13415if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13416 echo "$ac_t""yes" 1>&6
13417 SET_MAKE=
13418else
13419 echo "$ac_t""no" 1>&6
13420 SET_MAKE="MAKE=${MAKE-make}"
13421fi
13422
13423
00cf1208
RR
13424if test -d include; then
13425 if test -d include/wx; then
13426 if test -d include/wx/${TOOLKIT_DIR}; then
13427 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
13428 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
13429 fi
13430 fi
13431 fi
13432fi
13433
10f2d63a
VZ
13434
13435
2224580a
VZ
13436if test "$wxUSE_GUI" = "yes"; then
13437 echo $ac_n "checking glcanvas subdirectory to use""... $ac_c" 1>&6
24528b0c 13438echo "configure:13439: checking glcanvas subdirectory to use" >&5
2224580a
VZ
13439if eval "test \"`echo '$''{'wx_cv_path_glcanvas'+set}'`\" = set"; then
13440 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13441else
2224580a
VZ
13442
13443 if test "${TOOLKIT_DIR}" = "msw" ; then
13444 wx_cv_path_glcanvas="win"
13445 else
13446 wx_cv_path_glcanvas="${TOOLKIT_DIR}"
13447 fi
13448
10f2d63a
VZ
13449fi
13450
2224580a
VZ
13451echo "$ac_t""$wx_cv_path_glcanvas" 1>&6
13452
ec90f5e5 13453 GL_TOOLKIT_DIR=$wx_cv_path_glcanvas
2224580a
VZ
13454
13455
ec90f5e5 13456 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
2224580a
VZ
13457 subdirs="demos samples utils"
13458
13459fi
10f2d63a
VZ
13460
13461trap '' 1 2 15
13462cat > confcache <<\EOF
13463# This file is a shell script that caches the results of configure
13464# tests run on this system so they can be shared between configure
13465# scripts and configure runs. It is not useful on other systems.
13466# If it contains results you don't want to keep, you may remove or edit it.
13467#
13468# By default, configure uses ./config.cache as the cache file,
13469# creating it if it does not exist already. You can give configure
13470# the --cache-file=FILE option to use a different cache file; that is
13471# what configure does when it calls configure scripts in
13472# subdirectories, so they share the cache.
13473# Giving --cache-file=/dev/null disables caching, for debugging configure.
13474# config.status only pays attention to the cache file if you give it the
13475# --recheck option to rerun configure.
13476#
13477EOF
13478# The following way of writing the cache mishandles newlines in values,
13479# but we know of no workaround that is simple, portable, and efficient.
13480# So, don't put newlines in cache variables' values.
13481# Ultrix sh set writes to stderr and can't be redirected directly,
13482# and sets the high bit in the cache file unless we assign to the vars.
13483(set) 2>&1 |
13484 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13485 *ac_space=\ *)
13486 # `set' does not quote correctly, so add quotes (double-quote substitution
13487 # turns \\\\ into \\, and sed turns \\ into \).
13488 sed -n \
13489 -e "s/'/'\\\\''/g" \
13490 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13491 ;;
13492 *)
13493 # `set' quotes correctly as required by POSIX, so do not add quotes.
13494 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13495 ;;
13496 esac >> confcache
13497if cmp -s $cache_file confcache; then
13498 :
13499else
13500 if test -w $cache_file; then
13501 echo "updating cache $cache_file"
13502 cat confcache > $cache_file
13503 else
13504 echo "not updating unwritable cache $cache_file"
13505 fi
13506fi
13507rm -f confcache
13508
13509trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13510
13511test "x$prefix" = xNONE && prefix=$ac_default_prefix
13512# Let make expand exec_prefix.
13513test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13514
13515# Any assignment to VPATH causes Sun make to only execute
13516# the first set of double-colon rules, so remove it if not needed.
13517# If there is a colon in the path, we need to keep it.
13518if test "x$srcdir" = x.; then
13519 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13520fi
13521
13522trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13523
13524DEFS=-DHAVE_CONFIG_H
13525
13526# Without the "./", some shells look in PATH for config.status.
13527: ${CONFIG_STATUS=./config.status}
13528
13529echo creating $CONFIG_STATUS
13530rm -f $CONFIG_STATUS
13531cat > $CONFIG_STATUS <<EOF
13532#! /bin/sh
13533# Generated automatically by configure.
13534# Run this file to recreate the current configuration.
13535# This directory was configured as follows,
13536# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13537#
13538# $0 $ac_configure_args
13539#
13540# Compiler output produced by configure, useful for debugging
13541# configure, is in ./config.log if it exists.
13542
13543ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13544for ac_option
13545do
13546 case "\$ac_option" in
13547 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13548 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13549 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13550 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
d6a55c4b 13551 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
13552 exit 0 ;;
13553 -help | --help | --hel | --he | --h)
13554 echo "\$ac_cs_usage"; exit 0 ;;
13555 *) echo "\$ac_cs_usage"; exit 1 ;;
13556 esac
13557done
13558
13559ac_given_srcdir=$srcdir
13560ac_given_INSTALL="$INSTALL"
13561
13562trap 'rm -fr `echo "
13563 wx-config
13564 src/make.env
13565 src/makeprog.env
13566 src/makelib.env
13567 Makefile
10f2d63a
VZ
13568 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13569EOF
13570cat >> $CONFIG_STATUS <<EOF
13571
13572# Protect against being on the right side of a sed subst in config.status.
13573sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13574 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13575$ac_vpsub
13576$extrasub
13577s%@SHELL@%$SHELL%g
13578s%@CFLAGS@%$CFLAGS%g
13579s%@CPPFLAGS@%$CPPFLAGS%g
13580s%@CXXFLAGS@%$CXXFLAGS%g
13581s%@FFLAGS@%$FFLAGS%g
13582s%@DEFS@%$DEFS%g
13583s%@LDFLAGS@%$LDFLAGS%g
13584s%@LIBS@%$LIBS%g
13585s%@exec_prefix@%$exec_prefix%g
13586s%@prefix@%$prefix%g
13587s%@program_transform_name@%$program_transform_name%g
13588s%@bindir@%$bindir%g
13589s%@sbindir@%$sbindir%g
13590s%@libexecdir@%$libexecdir%g
13591s%@datadir@%$datadir%g
13592s%@sysconfdir@%$sysconfdir%g
13593s%@sharedstatedir@%$sharedstatedir%g
13594s%@localstatedir@%$localstatedir%g
13595s%@libdir@%$libdir%g
13596s%@includedir@%$includedir%g
13597s%@oldincludedir@%$oldincludedir%g
13598s%@infodir@%$infodir%g
13599s%@mandir@%$mandir%g
7c66a493
VZ
13600s%@host@%$host%g
13601s%@host_alias@%$host_alias%g
13602s%@host_cpu@%$host_cpu%g
13603s%@host_vendor@%$host_vendor%g
13604s%@host_os@%$host_os%g
13605s%@target@%$target%g
13606s%@target_alias@%$target_alias%g
13607s%@target_cpu@%$target_cpu%g
13608s%@target_vendor@%$target_vendor%g
13609s%@target_os@%$target_os%g
13610s%@build@%$build%g
13611s%@build_alias@%$build_alias%g
13612s%@build_cpu@%$build_cpu%g
13613s%@build_vendor@%$build_vendor%g
13614s%@build_os@%$build_os%g
10f2d63a
VZ
13615s%@CC@%$CC%g
13616s%@CPP@%$CPP%g
13617s%@CXX@%$CXX%g
13618s%@CXXCPP@%$CXXCPP%g
13619s%@RANLIB@%$RANLIB%g
13620s%@AR@%$AR%g
13621s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13622s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13623s%@INSTALL_DATA@%$INSTALL_DATA%g
13624s%@STRIP@%$STRIP%g
13625s%@YACC@%$YACC%g
13626s%@LEX@%$LEX%g
13627s%@LEXLIB@%$LEXLIB%g
13628s%@LN_S@%$LN_S%g
13629s%@GTK_CONFIG@%$GTK_CONFIG%g
13630s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13631s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
13632s%@X_CFLAGS@%$X_CFLAGS%g
13633s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13634s%@X_LIBS@%$X_LIBS%g
13635s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
13636s%@LEX_STEM@%$LEX_STEM%g
13637s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
13638s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13639s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13640s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13641s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13642s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13643s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13644s%@WX_LIBRARY@%$WX_LIBRARY%g
13645s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13646s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13647s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13648s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13649s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13650s%@WX_ALL@%$WX_ALL%g
13651s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13652s%@SHARED_LD@%$SHARED_LD%g
13653s%@PIC_FLAG@%$PIC_FLAG%g
13654s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 13655s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 13656s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
10f2d63a 13657s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
13658s%@USE_GUI@%$USE_GUI%g
13659s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
13660s%@TOOLKIT@%$TOOLKIT%g
13661s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13662s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13663s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13664s%@GUIHEADERS@%$GUIHEADERS%g
13665s%@GUIOBJS@%$GUIOBJS%g
13666s%@COMMONOBJS@%$COMMONOBJS%g
13667s%@GENERICOBJS@%$GENERICOBJS%g
13668s%@GUIDEPS@%$GUIDEPS%g
13669s%@COMMONDEPS@%$COMMONDEPS%g
13670s%@GENERICDEPS@%$GENERICDEPS%g
13671s%@IODBCOBJS@%$IODBCOBJS%g
13672s%@UNIXOBJS@%$UNIXOBJS%g
13673s%@UNIXDEPS@%$UNIXDEPS%g
13674s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13675s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 13676s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
13677s%@PORT_FILES@%$PORT_FILES%g
13678s%@DISTDIR@%$DISTDIR%g
13679s%@RPM_SPEC@%$RPM_SPEC%g
13680s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
13681s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13682s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13683s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13684s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13685s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13686s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13687s%@EXTRA_LIBS@%$EXTRA_LIBS%g
b12915c1 13688s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a
VZ
13689s%@LD_LIBS@%$LD_LIBS%g
13690s%@SET_MAKE@%$SET_MAKE%g
13691s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
2224580a 13692s%@subdirs@%$subdirs%g
10f2d63a
VZ
13693
13694CEOF
13695EOF
13696
13697cat >> $CONFIG_STATUS <<\EOF
13698
13699# Split the substitutions into bite-sized pieces for seds with
13700# small command number limits, like on Digital OSF/1 and HP-UX.
13701ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13702ac_file=1 # Number of current file.
13703ac_beg=1 # First line for current file.
13704ac_end=$ac_max_sed_cmds # Line after last line for current file.
13705ac_more_lines=:
13706ac_sed_cmds=""
13707while $ac_more_lines; do
13708 if test $ac_beg -gt 1; then
13709 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13710 else
13711 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13712 fi
13713 if test ! -s conftest.s$ac_file; then
13714 ac_more_lines=false
13715 rm -f conftest.s$ac_file
13716 else
13717 if test -z "$ac_sed_cmds"; then
13718 ac_sed_cmds="sed -f conftest.s$ac_file"
13719 else
13720 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13721 fi
13722 ac_file=`expr $ac_file + 1`
13723 ac_beg=$ac_end
13724 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13725 fi
13726done
13727if test -z "$ac_sed_cmds"; then
13728 ac_sed_cmds=cat
13729fi
13730EOF
13731
13732cat >> $CONFIG_STATUS <<EOF
13733
13734CONFIG_FILES=\${CONFIG_FILES-"wx-config
13735 src/make.env
13736 src/makeprog.env
13737 src/makelib.env
13738 Makefile
10f2d63a
VZ
13739 "}
13740EOF
13741cat >> $CONFIG_STATUS <<\EOF
13742for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13743 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13744 case "$ac_file" in
13745 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13746 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13747 *) ac_file_in="${ac_file}.in" ;;
13748 esac
13749
13750 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13751
13752 # Remove last slash and all that follows it. Not all systems have dirname.
13753 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13754 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13755 # The file is in a subdirectory.
13756 test ! -d "$ac_dir" && mkdir "$ac_dir"
13757 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13758 # A "../" for each directory in $ac_dir_suffix.
13759 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13760 else
13761 ac_dir_suffix= ac_dots=
13762 fi
13763
13764 case "$ac_given_srcdir" in
13765 .) srcdir=.
13766 if test -z "$ac_dots"; then top_srcdir=.
13767 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13768 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13769 *) # Relative path.
13770 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13771 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13772 esac
13773
13774 case "$ac_given_INSTALL" in
13775 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13776 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13777 esac
13778
13779 echo creating "$ac_file"
13780 rm -f "$ac_file"
13781 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13782 case "$ac_file" in
13783 *Makefile*) ac_comsub="1i\\
13784# $configure_input" ;;
13785 *) ac_comsub= ;;
13786 esac
13787
13788 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13789 sed -e "$ac_comsub
13790s%@configure_input@%$configure_input%g
13791s%@srcdir@%$srcdir%g
13792s%@top_srcdir@%$top_srcdir%g
13793s%@INSTALL@%$INSTALL%g
13794" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13795fi; done
13796rm -f conftest.s*
13797
13798# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13799# NAME is the cpp macro being defined and VALUE is the value it is being given.
13800#
13801# ac_d sets the value in "#define NAME VALUE" lines.
13802ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13803ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13804ac_dC='\3'
13805ac_dD='%g'
13806# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13807ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13808ac_uB='\([ ]\)%\1#\2define\3'
13809ac_uC=' '
13810ac_uD='\4%g'
13811# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13812ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13813ac_eB='$%\1#\2define\3'
13814ac_eC=' '
13815ac_eD='%g'
13816
13817if test "${CONFIG_HEADERS+set}" != set; then
13818EOF
13819cat >> $CONFIG_STATUS <<EOF
13820 CONFIG_HEADERS="setup.h:setup.h.in"
13821EOF
13822cat >> $CONFIG_STATUS <<\EOF
13823fi
13824for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13825 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13826 case "$ac_file" in
13827 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13828 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13829 *) ac_file_in="${ac_file}.in" ;;
13830 esac
13831
13832 echo creating $ac_file
13833
13834 rm -f conftest.frag conftest.in conftest.out
13835 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13836 cat $ac_file_inputs > conftest.in
13837
13838EOF
13839
13840# Transform confdefs.h into a sed script conftest.vals that substitutes
13841# the proper values into config.h.in to produce config.h. And first:
13842# Protect against being on the right side of a sed subst in config.status.
13843# Protect against being in an unquoted here document in config.status.
13844rm -f conftest.vals
13845cat > conftest.hdr <<\EOF
13846s/[\\&%]/\\&/g
13847s%[\\$`]%\\&%g
13848s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13849s%ac_d%ac_u%gp
13850s%ac_u%ac_e%gp
13851EOF
13852sed -n -f conftest.hdr confdefs.h > conftest.vals
13853rm -f conftest.hdr
13854
13855# This sed command replaces #undef with comments. This is necessary, for
13856# example, in the case of _POSIX_SOURCE, which is predefined and required
13857# on some systems where configure will not decide to define it.
13858cat >> conftest.vals <<\EOF
13859s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13860EOF
13861
13862# Break up conftest.vals because some shells have a limit on
13863# the size of here documents, and old seds have small limits too.
13864
13865rm -f conftest.tail
13866while :
13867do
13868 ac_lines=`grep -c . conftest.vals`
13869 # grep -c gives empty output for an empty file on some AIX systems.
13870 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13871 # Write a limited-size here document to conftest.frag.
13872 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13873 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13874 echo 'CEOF
13875 sed -f conftest.frag conftest.in > conftest.out
13876 rm -f conftest.in
13877 mv conftest.out conftest.in
13878' >> $CONFIG_STATUS
13879 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13880 rm -f conftest.vals
13881 mv conftest.tail conftest.vals
13882done
13883rm -f conftest.vals
13884
13885cat >> $CONFIG_STATUS <<\EOF
13886 rm -f conftest.frag conftest.h
13887 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13888 cat conftest.in >> conftest.h
13889 rm -f conftest.in
13890 if cmp -s $ac_file conftest.h 2>/dev/null; then
13891 echo "$ac_file is unchanged"
13892 rm -f conftest.h
13893 else
13894 # Remove last slash and all that follows it. Not all systems have dirname.
13895 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13896 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13897 # The file is in a subdirectory.
13898 test ! -d "$ac_dir" && mkdir "$ac_dir"
13899 fi
13900 rm -f $ac_file
13901 mv conftest.h $ac_file
13902 fi
13903fi; done
13904
13905EOF
13906cat >> $CONFIG_STATUS <<EOF
13907
13908 TOOLKIT_DIR="${TOOLKIT_DIR}"
07eb77a6 13909 LN_S="${LN_S}"
10f2d63a
VZ
13910
13911
13912EOF
13913cat >> $CONFIG_STATUS <<\EOF
13914
13915 chmod +x wx-config
07eb77a6
RL
13916 mv wx-config wx${TOOLKIT_DIR}-config
13917 ${LN_S} wx${TOOLKIT_DIR}-config wx-config
00cf1208
RR
13918
13919
13920 if test ! -d lib; then
13921 mkdir lib
13922 fi
13923 if test ! -d lib/wx; then
13924 mkdir lib/wx
13925 fi
13926 if test ! -d lib/wx/include; then
13927 mkdir lib/wx/include
13928 fi
13929 if test ! -d lib/wx/include/wx; then
13930 mkdir lib/wx/include/wx
13931 fi
13932 if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then
13933 mkdir lib/wx/include/wx/${TOOLKIT_DIR}
13934 fi
13935 if test -f setup.h; then
13936 cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h
13937 fi
07eb77a6 13938
00cf1208 13939
10f2d63a
VZ
13940 if test ! -d include; then
13941 mkdir include
13942 fi
13943 if test ! -d include/wx; then
13944 mkdir include/wx
13945 fi
13946 if test ! -d include/wx/${TOOLKIT_DIR}; then
13947 mkdir include/wx/${TOOLKIT_DIR}
13948 fi
afc31813
VZ
13949 if test -f setup.h; then
13950 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13951 fi
00cf1208 13952
10f2d63a
VZ
13953
13954exit 0
13955EOF
13956chmod +x $CONFIG_STATUS
13957rm -fr confdefs* $ac_clean_files
13958test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13959
2224580a
VZ
13960if test "$no_recursion" != yes; then
13961
13962 # Remove --cache-file and --srcdir arguments so they do not pile up.
13963 ac_sub_configure_args=
13964 ac_prev=
13965 for ac_arg in $ac_configure_args; do
13966 if test -n "$ac_prev"; then
13967 ac_prev=
13968 continue
13969 fi
13970 case "$ac_arg" in
13971 -cache-file | --cache-file | --cache-fil | --cache-fi \
13972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13973 ac_prev=cache_file ;;
13974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13976 ;;
13977 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13978 ac_prev=srcdir ;;
13979 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13980 ;;
13981 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
13982 esac
13983 done
13984
13985 for ac_config_dir in demos samples utils; do
13986
13987 # Do not complain, so a configure script can configure whichever
13988 # parts of a large source tree are present.
13989 if test ! -d $srcdir/$ac_config_dir; then
13990 continue
13991 fi
13992
13993 echo configuring in $ac_config_dir
13994
13995 case "$srcdir" in
13996 .) ;;
13997 *)
13998 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
13999 else
14000 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
14001 fi
14002 ;;
14003 esac
14004
14005 ac_popdir=`pwd`
14006 cd $ac_config_dir
14007
14008 # A "../" for each directory in /$ac_config_dir.
14009 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
14010
14011 case "$srcdir" in
14012 .) # No --srcdir option. We are building in place.
14013 ac_sub_srcdir=$srcdir ;;
14014 /*) # Absolute path.
14015 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
14016 *) # Relative path.
14017 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
14018 esac
14019
14020 # Check for guested configure; otherwise get Cygnus style configure.
14021 if test -f $ac_sub_srcdir/configure; then
14022 ac_sub_configure=$ac_sub_srcdir/configure
14023 elif test -f $ac_sub_srcdir/configure.in; then
14024 ac_sub_configure=$ac_configure
14025 else
14026 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
14027 ac_sub_configure=
14028 fi
14029
14030 # The recursion is here.
14031 if test -n "$ac_sub_configure"; then
14032
14033 # Make the cache file name correct relative to the subdirectory.
14034 case "$cache_file" in
14035 /*) ac_sub_cache_file=$cache_file ;;
14036 *) # Relative path.
14037 ac_sub_cache_file="$ac_dots$cache_file" ;;
14038 esac
14039 case "$ac_given_INSTALL" in
14040 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14041 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14042 esac
14043
14044 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
14045 # The eval makes quoting arguments work.
14046 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
14047 then :
14048 else
14049 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
14050 fi
14051 fi
14052
14053 cd $ac_popdir
14054 done
14055fi
14056
10f2d63a 14057