]> git.saurik.com Git - wxWidgets.git/blame - configure
patch for using system libz
[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 36
c733b222
VZ
37
38
10f2d63a
VZ
39
40
41
42# Guess values for system-dependent variables and create Makefiles.
d6a55c4b 43# Generated automatically using autoconf version 2.13
10f2d63a
VZ
44# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
45#
46# This configure script is free software; the Free Software Foundation
47# gives unlimited permission to copy, distribute and modify it.
48
49# Defaults:
50ac_help=
51ac_default_prefix=/usr/local
52# Any additions from configure.in:
53ac_help="$ac_help
54--enable-gui use GUI classes"
55ac_help="$ac_help
56 --with-gtk use GTK+"
57ac_help="$ac_help
58 --with-motif use Motif/Lesstif"
59ac_help="$ac_help
60 --with-wine use WINE"
61ac_help="$ac_help
62 --with-cygwin use Cygwin for MS-Windows"
63ac_help="$ac_help
64 --with-mingw use GCC Minimal MS-Windows"
e07802fc
VZ
65ac_help="$ac_help
66 --with-pm use OS/2 Presentation Manager"
10f2d63a
VZ
67ac_help="$ac_help
68 --with-gtk-prefix=PFX Prefix where GTK is installed"
69ac_help="$ac_help
70 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
71ac_help="$ac_help
10f2d63a
VZ
72--with-libpng use libpng (PNG image format)"
73ac_help="$ac_help
74--with-libjpeg use libjpeg (JPEG file format)"
75ac_help="$ac_help
c7a2bf27
RR
76--with-libtiff use libtiff (TIFF file format)"
77ac_help="$ac_help
10f2d63a
VZ
78--with-opengl use OpenGL (or Mesa)"
79ac_help="$ac_help
b12915c1
VZ
80--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
81ac_help="$ac_help
82--with-zlib use zlib for LZW compression"
83ac_help="$ac_help
10f2d63a
VZ
84--with-odbc use the IODBC and wxODBC classes"
85ac_help="$ac_help
86--enable-shared create shared library code"
87ac_help="$ac_help
00cf1208
RR
88--enable-burnt_name create set name in shared library "
89ac_help="$ac_help
10f2d63a
VZ
90--enable-optimise create optimised code"
91ac_help="$ac_help
92--enable-debug same as debug_flag and debug_info"
93ac_help="$ac_help
94--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
95ac_help="$ac_help
96--enable-debug_info create code with debugging information"
97ac_help="$ac_help
98--enable-debug_gdb create code with extra GDB debugging information"
99ac_help="$ac_help
100--enable-debug_cntxt use wxDebugContext"
101ac_help="$ac_help
102--enable-mem_tracing create code with memory tracing"
103ac_help="$ac_help
104--enable-profile create code with profiling information"
105ac_help="$ac_help
106--enable-no_rtti create code without RTTI information"
107ac_help="$ac_help
108--enable-no_exceptions create code without exceptions information"
109ac_help="$ac_help
110--enable-permissive compile code disregarding strict ANSI"
111ac_help="$ac_help
112--enable-no_deps create code without dependency information"
113ac_help="$ac_help
114--enable-intl use internationalization system"
115ac_help="$ac_help
116--enable-config use wxConfig (and derived) classes"
117ac_help="$ac_help
118--enable-sockets use socket/network classes"
119ac_help="$ac_help
120--enable-dialupman use dialup network classes"
121ac_help="$ac_help
122--enable-ipc use interprocess communication (wxSocket etc.)"
123ac_help="$ac_help
124--enable-apple_ieee use the Apple IEEE codec"
125ac_help="$ac_help
126--enable-timedate use date/time classes"
127ac_help="$ac_help
128--enable-wave use wxWave class"
129ac_help="$ac_help
130--enable-fraction use wxFraction class"
131ac_help="$ac_help
132--enable-dynlib use wxLibrary class for DLL loading"
133ac_help="$ac_help
134--enable-longlong use wxLongLong class"
135ac_help="$ac_help
136--enable-log use logging system"
137ac_help="$ac_help
138--enable-streams use wxStream etc classes"
139ac_help="$ac_help
140--enable-file use wxFile classes"
141ac_help="$ac_help
142--enable-textfile use wxTextFile classes"
143ac_help="$ac_help
144--enable-unicode compile wxString with Unicode support"
145ac_help="$ac_help
146--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
147ac_help="$ac_help
148--enable-wxprintfv use wxWindows implementation of vprintf()"
149ac_help="$ac_help
150--enable-joystick compile in joystick support (Linux only)"
151ac_help="$ac_help
152--enable-std_iostreams use standard C++ stream classes"
153ac_help="$ac_help
24528b0c
VS
154--enable-filesystem use virtual file systems classes"
155ac_help="$ac_help
10f2d63a
VZ
156--enable-fs_inet use virtual HTTP/FTP filesystems"
157ac_help="$ac_help
158--enable-fs_zip use virtual ZIP filesystems"
159ac_help="$ac_help
160--enable-zipstream use wxZipInputStream"
161ac_help="$ac_help
162--enable-threads use threads"
163ac_help="$ac_help
164--enable-serial use class serialization"
165ac_help="$ac_help
166--enable-docview use document view architecture"
167ac_help="$ac_help
168--enable-help use help (using external browser at present)"
169ac_help="$ac_help
170--enable-constraints use layout-constraints system"
171ac_help="$ac_help
172--enable-printarch use printing architecture"
173ac_help="$ac_help
174--enable-mdi use multiple document interface architecture"
175ac_help="$ac_help
176--enable-postscript use wxPostscriptDC device context (default for gtk+)"
177ac_help="$ac_help
178--enable-prologio use Prolog IO library"
179ac_help="$ac_help
180--enable-resources use wxWindows resources"
181ac_help="$ac_help
182--enable-xresources use X resources for save (default for gtk+)"
183ac_help="$ac_help
184--enable-clipboard use wxClipboard classes"
185ac_help="$ac_help
186--enable-dnd use Drag'n'Drop classes"
187ac_help="$ac_help
188--enable-wxtree make wxTree library"
189ac_help="$ac_help
190--enable-controls use all usual controls"
191ac_help="$ac_help
192--enable-accel use accelerators"
193ac_help="$ac_help
194--enable-caret use wxCaret class"
195ac_help="$ac_help
196--enable-bmpbutton use wxBitmapButton class"
197ac_help="$ac_help
198--enable-checkbox use wxCheckBox class"
199ac_help="$ac_help
200--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
201ac_help="$ac_help
202--enable-choice use wxChoice class"
203ac_help="$ac_help
204--enable-combobox use wxComboBox classes"
205ac_help="$ac_help
206--enable-gauge use wxGauge class"
207ac_help="$ac_help
208--enable-grid use wxGrid class"
209ac_help="$ac_help
210--enable-newgrid use new wxGrid class"
211ac_help="$ac_help
212--enable-imaglist use wxImageList class"
213ac_help="$ac_help
214--enable-listbox use wxListBox class"
215ac_help="$ac_help
216--enable-listctrl use wxListCtrl class"
217ac_help="$ac_help
218--enable-notebook use wxNotebook class"
219ac_help="$ac_help
220--enable-radiobox use wxRadioBox class"
221ac_help="$ac_help
222--enable-radiobtn use wxRadioButton class"
223ac_help="$ac_help
224--enable-sash use wxSashWindow class"
225ac_help="$ac_help
226--enable-scrollbar use wxScrollBar class and scrollable windows"
227ac_help="$ac_help
228--enable-slider use wxSlider class"
229ac_help="$ac_help
230--enable-spinbtn use wxSpinButton class"
231ac_help="$ac_help
56cfaa52
RR
232--enable-spinctrl use wxSpinCtrl class"
233ac_help="$ac_help
10f2d63a
VZ
234--enable-splitter use wxSplitterWindow class"
235ac_help="$ac_help
236--enable-statbmp use wxStaticBitmap class"
237ac_help="$ac_help
238--enable-statbox use wxStaticBox class"
239ac_help="$ac_help
240--enable-statline use wxStaticLine class"
241ac_help="$ac_help
242--enable-statusbar use wxStatusBar class"
243ac_help="$ac_help
244--enable-tabdialog use wxTabControl class"
245ac_help="$ac_help
246--enable-toolbar use wxToolBar class"
247ac_help="$ac_help
360d6699
VZ
248--enable-tbarnative use native wxToolBar class"
249ac_help="$ac_help
250--enable-tbarsmpl use wxToolBarSimple class"
251ac_help="$ac_help
10f2d63a
VZ
252--enable-treectrl use wxTreeCtrl class"
253ac_help="$ac_help
254--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
255ac_help="$ac_help
256--enable-dirdlg use wxDirDialog"
257ac_help="$ac_help
258--enable-textdlg use wxTextDialog"
259ac_help="$ac_help
260--enable-tipdlg use startup tips"
261ac_help="$ac_help
262--enable-progressdlg use wxProgressDialog"
263ac_help="$ac_help
264--enable-miniframe use wxMiniFrame class"
265ac_help="$ac_help
266--enable-html use wxHTML sub-library"
267ac_help="$ac_help
268--enable-tooltips use wxToolTip class"
269ac_help="$ac_help
270--enable-splines use spline drawing code"
271ac_help="$ac_help
272--enable-validators use wxValidator and derived classes"
273ac_help="$ac_help
274--enable-busyinfo use wxBusyInfo"
275ac_help="$ac_help
9b33fe02
VZ
276--enable-plot use wxPlot"
277ac_help="$ac_help
10f2d63a
VZ
278--enable-gif use gif images (GIF file format)"
279ac_help="$ac_help
280--enable-pcx use pcx images (PCX file format)"
281ac_help="$ac_help
282--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
283ac_help="$ac_help
284 --with-x use the X Window System"
10f2d63a
VZ
285
286# Initialize some variables set by options.
287# The variables have the same names as the options, with
288# dashes changed to underlines.
289build=NONE
290cache_file=./config.cache
291exec_prefix=NONE
292host=NONE
293no_create=
294nonopt=NONE
295no_recursion=
296prefix=NONE
297program_prefix=NONE
298program_suffix=NONE
299program_transform_name=s,x,x,
300silent=
301site=
302srcdir=
303target=NONE
304verbose=
305x_includes=NONE
306x_libraries=NONE
307bindir='${exec_prefix}/bin'
308sbindir='${exec_prefix}/sbin'
309libexecdir='${exec_prefix}/libexec'
310datadir='${prefix}/share'
311sysconfdir='${prefix}/etc'
312sharedstatedir='${prefix}/com'
313localstatedir='${prefix}/var'
314libdir='${exec_prefix}/lib'
315includedir='${prefix}/include'
316oldincludedir='/usr/include'
317infodir='${prefix}/info'
318mandir='${prefix}/man'
319
320# Initialize some other variables.
321subdirs=
322MFLAGS= MAKEFLAGS=
323SHELL=${CONFIG_SHELL-/bin/sh}
324# Maximum number of lines to put in a shell here document.
325ac_max_here_lines=12
326
327ac_prev=
328for ac_option
329do
330
331 # If the previous option needs an argument, assign it.
332 if test -n "$ac_prev"; then
333 eval "$ac_prev=\$ac_option"
334 ac_prev=
335 continue
336 fi
337
338 case "$ac_option" in
339 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
340 *) ac_optarg= ;;
341 esac
342
343 # Accept the important Cygnus configure options, so we can diagnose typos.
344
345 case "$ac_option" in
346
347 -bindir | --bindir | --bindi | --bind | --bin | --bi)
348 ac_prev=bindir ;;
349 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
350 bindir="$ac_optarg" ;;
351
352 -build | --build | --buil | --bui | --bu)
353 ac_prev=build ;;
354 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
355 build="$ac_optarg" ;;
356
357 -cache-file | --cache-file | --cache-fil | --cache-fi \
358 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
359 ac_prev=cache_file ;;
360 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
361 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
362 cache_file="$ac_optarg" ;;
363
364 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
365 ac_prev=datadir ;;
366 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
367 | --da=*)
368 datadir="$ac_optarg" ;;
369
370 -disable-* | --disable-*)
371 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
375 fi
376 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
377 eval "enable_${ac_feature}=no" ;;
378
379 -enable-* | --enable-*)
380 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
384 fi
385 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
386 case "$ac_option" in
387 *=*) ;;
388 *) ac_optarg=yes ;;
389 esac
390 eval "enable_${ac_feature}='$ac_optarg'" ;;
391
392 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
393 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
394 | --exec | --exe | --ex)
395 ac_prev=exec_prefix ;;
396 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
397 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
398 | --exec=* | --exe=* | --ex=*)
399 exec_prefix="$ac_optarg" ;;
400
401 -gas | --gas | --ga | --g)
402 # Obsolete; use --with-gas.
403 with_gas=yes ;;
404
405 -help | --help | --hel | --he)
406 # Omit some internal or obsolete options to make the list less imposing.
407 # This message is too long to be a string in the A/UX 3.1 sh.
408 cat << EOF
409Usage: configure [options] [host]
410Options: [defaults in brackets after descriptions]
411Configuration:
412 --cache-file=FILE cache test results in FILE
413 --help print this message
414 --no-create do not create output files
415 --quiet, --silent do not print \`checking...' messages
416 --version print the version of autoconf that created configure
417Directory and file names:
418 --prefix=PREFIX install architecture-independent files in PREFIX
419 [$ac_default_prefix]
420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
421 [same as prefix]
422 --bindir=DIR user executables in DIR [EPREFIX/bin]
423 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
424 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
425 --datadir=DIR read-only architecture-independent data in DIR
426 [PREFIX/share]
427 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
428 --sharedstatedir=DIR modifiable architecture-independent data in DIR
429 [PREFIX/com]
430 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
431 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
432 --includedir=DIR C header files in DIR [PREFIX/include]
433 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
434 --infodir=DIR info documentation in DIR [PREFIX/info]
435 --mandir=DIR man documentation in DIR [PREFIX/man]
436 --srcdir=DIR find the sources in DIR [configure dir or ..]
437 --program-prefix=PREFIX prepend PREFIX to installed program names
438 --program-suffix=SUFFIX append SUFFIX to installed program names
439 --program-transform-name=PROGRAM
440 run sed PROGRAM on installed program names
441EOF
442 cat << EOF
443Host type:
444 --build=BUILD configure for building on BUILD [BUILD=HOST]
445 --host=HOST configure for HOST [guessed]
446 --target=TARGET configure for TARGET [TARGET=HOST]
447Features and packages:
448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
452 --x-includes=DIR X include files are in DIR
453 --x-libraries=DIR X library files are in DIR
454EOF
455 if test -n "$ac_help"; then
456 echo "--enable and --with options recognized:$ac_help"
457 fi
458 exit 0 ;;
459
460 -host | --host | --hos | --ho)
461 ac_prev=host ;;
462 -host=* | --host=* | --hos=* | --ho=*)
463 host="$ac_optarg" ;;
464
465 -includedir | --includedir | --includedi | --included | --include \
466 | --includ | --inclu | --incl | --inc)
467 ac_prev=includedir ;;
468 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
469 | --includ=* | --inclu=* | --incl=* | --inc=*)
470 includedir="$ac_optarg" ;;
471
472 -infodir | --infodir | --infodi | --infod | --info | --inf)
473 ac_prev=infodir ;;
474 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
475 infodir="$ac_optarg" ;;
476
477 -libdir | --libdir | --libdi | --libd)
478 ac_prev=libdir ;;
479 -libdir=* | --libdir=* | --libdi=* | --libd=*)
480 libdir="$ac_optarg" ;;
481
482 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
483 | --libexe | --libex | --libe)
484 ac_prev=libexecdir ;;
485 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
486 | --libexe=* | --libex=* | --libe=*)
487 libexecdir="$ac_optarg" ;;
488
489 -localstatedir | --localstatedir | --localstatedi | --localstated \
490 | --localstate | --localstat | --localsta | --localst \
491 | --locals | --local | --loca | --loc | --lo)
492 ac_prev=localstatedir ;;
493 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
494 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
495 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
496 localstatedir="$ac_optarg" ;;
497
498 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
499 ac_prev=mandir ;;
500 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
501 mandir="$ac_optarg" ;;
502
503 -nfp | --nfp | --nf)
504 # Obsolete; use --without-fp.
505 with_fp=no ;;
506
507 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
508 | --no-cr | --no-c)
509 no_create=yes ;;
510
511 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
512 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
513 no_recursion=yes ;;
514
515 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
516 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
517 | --oldin | --oldi | --old | --ol | --o)
518 ac_prev=oldincludedir ;;
519 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
520 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
521 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
522 oldincludedir="$ac_optarg" ;;
523
524 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
525 ac_prev=prefix ;;
526 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
527 prefix="$ac_optarg" ;;
528
529 -program-prefix | --program-prefix | --program-prefi | --program-pref \
530 | --program-pre | --program-pr | --program-p)
531 ac_prev=program_prefix ;;
532 -program-prefix=* | --program-prefix=* | --program-prefi=* \
533 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
534 program_prefix="$ac_optarg" ;;
535
536 -program-suffix | --program-suffix | --program-suffi | --program-suff \
537 | --program-suf | --program-su | --program-s)
538 ac_prev=program_suffix ;;
539 -program-suffix=* | --program-suffix=* | --program-suffi=* \
540 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
541 program_suffix="$ac_optarg" ;;
542
543 -program-transform-name | --program-transform-name \
544 | --program-transform-nam | --program-transform-na \
545 | --program-transform-n | --program-transform- \
546 | --program-transform | --program-transfor \
547 | --program-transfo | --program-transf \
548 | --program-trans | --program-tran \
549 | --progr-tra | --program-tr | --program-t)
550 ac_prev=program_transform_name ;;
551 -program-transform-name=* | --program-transform-name=* \
552 | --program-transform-nam=* | --program-transform-na=* \
553 | --program-transform-n=* | --program-transform-=* \
554 | --program-transform=* | --program-transfor=* \
555 | --program-transfo=* | --program-transf=* \
556 | --program-trans=* | --program-tran=* \
557 | --progr-tra=* | --program-tr=* | --program-t=*)
558 program_transform_name="$ac_optarg" ;;
559
560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
561 | -silent | --silent | --silen | --sile | --sil)
562 silent=yes ;;
563
564 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
565 ac_prev=sbindir ;;
566 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
567 | --sbi=* | --sb=*)
568 sbindir="$ac_optarg" ;;
569
570 -sharedstatedir | --sharedstatedir | --sharedstatedi \
571 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
572 | --sharedst | --shareds | --shared | --share | --shar \
573 | --sha | --sh)
574 ac_prev=sharedstatedir ;;
575 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
576 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
577 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
578 | --sha=* | --sh=*)
579 sharedstatedir="$ac_optarg" ;;
580
581 -site | --site | --sit)
582 ac_prev=site ;;
583 -site=* | --site=* | --sit=*)
584 site="$ac_optarg" ;;
585
586 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
587 ac_prev=srcdir ;;
588 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
589 srcdir="$ac_optarg" ;;
590
591 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
592 | --syscon | --sysco | --sysc | --sys | --sy)
593 ac_prev=sysconfdir ;;
594 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
595 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
596 sysconfdir="$ac_optarg" ;;
597
598 -target | --target | --targe | --targ | --tar | --ta | --t)
599 ac_prev=target ;;
600 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
601 target="$ac_optarg" ;;
602
603 -v | -verbose | --verbose | --verbos | --verbo | --verb)
604 verbose=yes ;;
605
606 -version | --version | --versio | --versi | --vers)
d6a55c4b 607 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
608 exit 0 ;;
609
610 -with-* | --with-*)
611 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
612 # Reject names that are not valid shell variable names.
613 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
614 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
615 fi
616 ac_package=`echo $ac_package| sed 's/-/_/g'`
617 case "$ac_option" in
618 *=*) ;;
619 *) ac_optarg=yes ;;
620 esac
621 eval "with_${ac_package}='$ac_optarg'" ;;
622
623 -without-* | --without-*)
624 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
625 # Reject names that are not valid shell variable names.
626 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
627 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
628 fi
629 ac_package=`echo $ac_package| sed 's/-/_/g'`
630 eval "with_${ac_package}=no" ;;
631
632 --x)
633 # Obsolete; use --with-x.
634 with_x=yes ;;
635
636 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
637 | --x-incl | --x-inc | --x-in | --x-i)
638 ac_prev=x_includes ;;
639 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
640 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
641 x_includes="$ac_optarg" ;;
642
643 -x-libraries | --x-libraries | --x-librarie | --x-librari \
644 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
645 ac_prev=x_libraries ;;
646 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
647 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
648 x_libraries="$ac_optarg" ;;
649
650 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
651 ;;
652
653 *)
654 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
655 echo "configure: warning: $ac_option: invalid host type" 1>&2
656 fi
657 if test "x$nonopt" != xNONE; then
658 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
659 fi
660 nonopt="$ac_option"
661 ;;
662
663 esac
664done
665
666if test -n "$ac_prev"; then
667 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
668fi
669
670trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
671
672# File descriptor usage:
673# 0 standard input
674# 1 file creation
675# 2 errors and warnings
676# 3 some systems may open it to /dev/tty
677# 4 used on the Kubota Titan
678# 6 checking for... messages and results
679# 5 compiler messages saved in config.log
680if test "$silent" = yes; then
681 exec 6>/dev/null
682else
683 exec 6>&1
684fi
685exec 5>./config.log
686
687echo "\
688This file contains any messages produced by compilers while
689running configure, to aid debugging if configure makes a mistake.
690" 1>&5
691
692# Strip out --no-create and --no-recursion so they do not pile up.
693# Also quote any args containing shell metacharacters.
694ac_configure_args=
695for ac_arg
696do
697 case "$ac_arg" in
698 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
699 | --no-cr | --no-c) ;;
700 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
701 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
702 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
703 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
704 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
705 esac
706done
707
708# NLS nuisances.
709# Only set these to C if already set. These must not be set unconditionally
710# because not all systems understand e.g. LANG=C (notably SCO).
711# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
712# Non-C LC_CTYPE values break the ctype check.
713if test "${LANG+set}" = set; then LANG=C; export LANG; fi
714if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
715if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
716if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
717
718# confdefs.h avoids OS command line length limits that DEFS can exceed.
719rm -rf conftest* confdefs.h
720# AIX cpp loses on an empty file, so make sure it contains at least a newline.
721echo > confdefs.h
722
723# A filename unique to this package, relative to the directory that
724# configure is in, which we can look for to find out if srcdir is correct.
725ac_unique_file=wx-config.in
726
727# Find the source files, if location was not specified.
728if test -z "$srcdir"; then
729 ac_srcdir_defaulted=yes
730 # Try the directory containing this script, then its parent.
731 ac_prog=$0
732 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
733 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
734 srcdir=$ac_confdir
735 if test ! -r $srcdir/$ac_unique_file; then
736 srcdir=..
737 fi
738else
739 ac_srcdir_defaulted=no
740fi
741if test ! -r $srcdir/$ac_unique_file; then
742 if test "$ac_srcdir_defaulted" = yes; then
743 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
744 else
745 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
746 fi
747fi
748srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
749
750# Prefer explicitly selected file to automatically selected ones.
751if test -z "$CONFIG_SITE"; then
752 if test "x$prefix" != xNONE; then
753 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
754 else
755 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
756 fi
757fi
758for ac_site_file in $CONFIG_SITE; do
759 if test -r "$ac_site_file"; then
760 echo "loading site script $ac_site_file"
761 . "$ac_site_file"
762 fi
763done
764
765if test -r "$cache_file"; then
766 echo "loading cache $cache_file"
767 . $cache_file
768else
769 echo "creating cache $cache_file"
770 > $cache_file
771fi
772
773ac_ext=c
774# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775ac_cpp='$CPP $CPPFLAGS'
776ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778cross_compiling=$ac_cv_prog_cc_cross
779
780ac_exeext=
781ac_objext=o
782if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
783 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
784 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
785 ac_n= ac_c='
786' ac_t=' '
787 else
788 ac_n=-n ac_c= ac_t=
789 fi
790else
791 ac_n= ac_c='\c' ac_t=
792fi
793
794
795
7c66a493
VZ
796ac_aux_dir=
797for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
798 if test -f $ac_dir/install-sh; then
799 ac_aux_dir=$ac_dir
800 ac_install_sh="$ac_aux_dir/install-sh -c"
801 break
802 elif test -f $ac_dir/install.sh; then
803 ac_aux_dir=$ac_dir
804 ac_install_sh="$ac_aux_dir/install.sh -c"
805 break
806 fi
807done
808if test -z "$ac_aux_dir"; then
809 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
810fi
811ac_config_guess=$ac_aux_dir/config.guess
812ac_config_sub=$ac_aux_dir/config.sub
813ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
814
815
816# Do some error checking and defaulting for the host and target type.
817# The inputs are:
818# configure --host=HOST --target=TARGET --build=BUILD NONOPT
819#
820# The rules are:
821# 1. You are not allowed to specify --host, --target, and nonopt at the
822# same time.
823# 2. Host defaults to nonopt.
824# 3. If nonopt is not specified, then host defaults to the current host,
825# as determined by config.guess.
826# 4. Target and build default to nonopt.
827# 5. If nonopt is not specified, then target and build default to host.
828
829# The aliases save the names the user supplied, while $host etc.
830# will get canonicalized.
831case $host---$target---$nonopt in
832NONE---*---* | *---NONE---* | *---*---NONE) ;;
833*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
834esac
835
836
837# Make sure we can run config.sub.
838if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
839else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
840fi
841
842echo $ac_n "checking host system type""... $ac_c" 1>&6
c733b222 843echo "configure:844: checking host system type" >&5
7c66a493
VZ
844
845host_alias=$host
846case "$host_alias" in
847NONE)
848 case $nonopt in
849 NONE)
850 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
851 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
852 fi ;;
853 *) host_alias=$nonopt ;;
854 esac ;;
855esac
856
857host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
858host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
859host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
860host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
861echo "$ac_t""$host" 1>&6
862
863echo $ac_n "checking target system type""... $ac_c" 1>&6
c733b222 864echo "configure:865: checking target system type" >&5
7c66a493
VZ
865
866target_alias=$target
867case "$target_alias" in
868NONE)
869 case $nonopt in
870 NONE) target_alias=$host_alias ;;
871 *) target_alias=$nonopt ;;
872 esac ;;
873esac
874
875target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
876target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
877target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
878target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
879echo "$ac_t""$target" 1>&6
880
881echo $ac_n "checking build system type""... $ac_c" 1>&6
c733b222 882echo "configure:883: checking build system type" >&5
7c66a493
VZ
883
884build_alias=$build
885case "$build_alias" in
886NONE)
887 case $nonopt in
888 NONE) build_alias=$host_alias ;;
889 *) build_alias=$nonopt ;;
890 esac ;;
891esac
892
893build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
894build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
895build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
896build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
897echo "$ac_t""$build" 1>&6
898
899test "$host_alias" != "$target_alias" &&
900 test "$program_prefix$program_suffix$program_transform_name" = \
901 NONENONEs,x,x, &&
902 program_prefix=${target_alias}-
903
904
10f2d63a
VZ
905
906WX_MAJOR_VERSION_NUMBER=2
907WX_MINOR_VERSION_NUMBER=1
cc977e5f 908WX_RELEASE_NUMBER=14
10f2d63a
VZ
909
910WX_INTERFACE_AGE=0
911WX_BINARY_AGE=0
912
913WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
914
915WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
916WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
917WX_REVISION=$WX_INTERFACE_AGE
918WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
919
920
921USE_UNIX=1
922USE_WIN32=0
b12915c1
VZ
923USE_BEOS=0
924
10f2d63a
VZ
925USE_LINUX=
926USE_SGI=
927USE_HPUX=
928USE_SYSV=
929USE_SVR4=
930USE_AIX=
931USE_SUN=
932USE_SOLARIS=
933USE_SUNOS=
934USE_ALPHA=
935USE_OSF=
936USE_BSD=
937USE_FREEBSD=
938USE_VMS=
939USE_ULTRIX=
940USE_CYGWIN=
941USE_MINGW=
942USE_DATA_GENERAL=
943
ab9b9eab
VZ
944NEEDS_D_REENTRANT_FOR_R_FUNCS=0
945
e07802fc 946ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
947
948DEFAULT_wxUSE_GTK=0
949DEFAULT_wxUSE_MOTIF=0
950DEFAULT_wxUSE_MSW=0
951DEFAULT_wxUSE_WINE=0
e07802fc 952DEFAULT_wxUSE_PM=0
10f2d63a
VZ
953
954DEFAULT_DEFAULT_wxUSE_GTK=0
955DEFAULT_DEFAULT_wxUSE_MOTIF=0
956DEFAULT_DEFAULT_wxUSE_MSW=0
957DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 958DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 959
d6a55c4b
VZ
960PROGRAM_EXT=
961
10f2d63a
VZ
962case "${host}" in
963 *-hp-hpux* )
964 USE_HPUX=1
965 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 966 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
967 cat >> confdefs.h <<\EOF
968#define __HPUX__ 1
969EOF
970
971 ;;
972 *-*-linux* )
973 USE_LINUX=1
974 cat >> confdefs.h <<\EOF
975#define __LINUX__ 1
976EOF
977
978 TMP=`uname -m`
979 if test "x$TMP" = "xalpha"; then
980 USE_ALPHA=1
981 cat >> confdefs.h <<\EOF
982#define __ALPHA__ 1
983EOF
984
985 fi
986 DEFAULT_DEFAULT_wxUSE_GTK=1
987 ;;
988 *-*-irix5* | *-*-irix6* )
989 USE_SGI=1
990 USE_SVR4=1
991 cat >> confdefs.h <<\EOF
992#define __SGI__ 1
993EOF
994
995 cat >> confdefs.h <<\EOF
996#define __SVR4__ 1
997EOF
998
999 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1000 ;;
1001 *-*-solaris2* )
1002 USE_SUN=1
1003 USE_SOLARIS=1
1004 USE_SVR4=1
1005 cat >> confdefs.h <<\EOF
1006#define __SUN__ 1
1007EOF
1008
1009 cat >> confdefs.h <<\EOF
1010#define __SOLARIS__ 1
1011EOF
1012
1013 cat >> confdefs.h <<\EOF
1014#define __SVR4__ 1
1015EOF
1016
1017 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1018 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1019 ;;
1020 *-*-sunos4* )
1021 USE_SUN=1
1022 USE_SUNOS=1
1023 USE_BSD=1
1024 cat >> confdefs.h <<\EOF
1025#define __SUN__ 1
1026EOF
1027
1028 cat >> confdefs.h <<\EOF
1029#define __SUNOS__ 1
1030EOF
1031
1032 cat >> confdefs.h <<\EOF
1033#define __BSD__ 1
1034EOF
1035
1036 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1037 ;;
1038 *-*-freebsd* | *-*-netbsd*)
1039 USE_BSD=1
1040 USE_FREEBSD=1
1041 cat >> confdefs.h <<\EOF
1042#define __FREEBSD__ 1
1043EOF
1044
1045 cat >> confdefs.h <<\EOF
1046#define __BSD__ 1
1047EOF
1048
1049 DEFAULT_DEFAULT_wxUSE_GTK=1
1050 ;;
1051 *-*-osf* )
1052 USE_ALPHA=1
1053 USE_OSF=1
1054 cat >> confdefs.h <<\EOF
1055#define __ALPHA__ 1
1056EOF
1057
1058 cat >> confdefs.h <<\EOF
1059#define __OSF__ 1
1060EOF
1061
1062 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1063 ;;
1064 *-*-dgux5* )
1065 USE_ALPHA=1
1066 USE_SVR4=1
1067 cat >> confdefs.h <<\EOF
1068#define __ALPHA__ 1
1069EOF
1070
1071 cat >> confdefs.h <<\EOF
1072#define __SVR4__ 1
1073EOF
1074
1075 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1076 ;;
1077 *-*-sysv5* )
1078 USE_SYSV=1
1079 USE_SVR4=1
1080 cat >> confdefs.h <<\EOF
1081#define __SYSV__ 1
1082EOF
1083
1084 cat >> confdefs.h <<\EOF
1085#define __SVR4__ 1
1086EOF
1087
1088 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1089 ;;
1090 *-*-aix* )
1091 USE_AIX=1
1092 USE_SYSV=1
1093 USE_SVR4=1
1094 cat >> confdefs.h <<\EOF
1095#define __AIX__ 1
1096EOF
1097
1098 cat >> confdefs.h <<\EOF
1099#define __SYSV__ 1
1100EOF
1101
1102 cat >> confdefs.h <<\EOF
1103#define __SVR4__ 1
1104EOF
1105
1106 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1107 ;;
1108
7eef8db2 1109 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1110 USE_UNIX=0
1111 USE_WIN32=1
1112 cat >> confdefs.h <<\EOF
1113#define __WIN32__ 1
1114EOF
1115
1116 cat >> confdefs.h <<\EOF
1117#define __WIN95__ 1
1118EOF
1119
1120 cat >> confdefs.h <<\EOF
1121#define __WINDOWS__ 1
1122EOF
1123
1124 cat >> confdefs.h <<\EOF
1125#define __GNUWIN32__ 1
1126EOF
1127
1128 cat >> confdefs.h <<\EOF
1129#define STRICT 1
1130EOF
1131
1132 cat >> confdefs.h <<\EOF
1133#define WINVER 0x0400
1134EOF
1135
cf27ef00 1136 PROGRAM_EXT=".exe"
10f2d63a
VZ
1137 DEFAULT_DEFAULT_wxUSE_MSW=1
1138 ;;
1139
1140 *-pc-os2_emx )
1141 cat >> confdefs.h <<\EOF
1142#define __EMX__ 1
1143EOF
1144
cf27ef00 1145 PROGRAM_EXT=".exe"
e07802fc 1146 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1147 ;;
1148
b12915c1
VZ
1149 *-*-beos* )
1150 USE_BEOS=1
1151 cat >> confdefs.h <<\EOF
1152#define __BEOS__ 1
1153EOF
1154
1155 ;;
1156
10f2d63a
VZ
1157 *)
1158 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1159esac
1160
1161if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1162 wxUSE_UNIX=yes
1163 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1164#define __UNIX__ 1
1165EOF
1166
b12915c1
VZ
1167
1168 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1169 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1170fi
1171
1172if test "$USE_BEOS" = 1; then
1173 SRC_SUBDIRS="$SRC_SUBDIRS be"
1174 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1175fi
1176
1177if test "$USE_LINUX" = 1; then
1178 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
c733b222 1179echo "configure:1180: checking for gettext in -lc" >&5
10f2d63a
VZ
1180ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1181if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1183else
1184 ac_save_LIBS="$LIBS"
1185LIBS="-lc $LIBS"
1186cat > conftest.$ac_ext <<EOF
c733b222 1187#line 1188 "configure"
10f2d63a
VZ
1188#include "confdefs.h"
1189/* Override any gcc2 internal prototype to avoid an error. */
1190/* We use char because int might match the return type of a gcc2
1191 builtin and then its argument prototype would still apply. */
1192char gettext();
1193
1194int main() {
1195gettext()
1196; return 0; }
1197EOF
c733b222 1198if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1199 rm -rf conftest*
1200 eval "ac_cv_lib_$ac_lib_var=yes"
1201else
1202 echo "configure: failed program was:" >&5
1203 cat conftest.$ac_ext >&5
1204 rm -rf conftest*
1205 eval "ac_cv_lib_$ac_lib_var=no"
1206fi
1207rm -f conftest*
1208LIBS="$ac_save_LIBS"
1209
1210fi
1211if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1212 echo "$ac_t""yes" 1>&6
1213 cat >> confdefs.h <<\EOF
1214#define wxHAVE_GLIBC2 1
1215EOF
1216
1217else
1218 echo "$ac_t""no" 1>&6
1219fi
1220
1221fi
1222
1223
1224
1225
1226 wx_arg_cache_file="configarg.cache"
1227 echo "loading argument cache $wx_arg_cache_file"
1228 rm -f ${wx_arg_cache_file}.tmp
1229 touch ${wx_arg_cache_file}.tmp
1230 touch ${wx_arg_cache_file}
1231
1232
1233DEBUG_CONFIGURE=0
1234if test $DEBUG_CONFIGURE = 1; then
1235 DEFAULT_wxUSE_THREADS=yes
1236
1237 DEFAULT_wxUSE_SHARED=yes
00cf1208 1238 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1239 DEFAULT_wxUSE_OPTIMISE=yes
1240 DEFAULT_wxUSE_PROFILE=no
1241 DEFAULT_wxUSE_NO_DEPS=no
1242 DEFAULT_wxUSE_NO_RTTI=no
1243 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1244 DEFAULT_wxUSE_PERMISSIVE=no
1245 DEFAULT_wxUSE_DEBUG_FLAG=yes
1246 DEFAULT_wxUSE_DEBUG_INFO=yes
1247 DEFAULT_wxUSE_DEBUG_GDB=yes
1248 DEFAULT_wxUSE_MEM_TRACING=no
1249 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1250 DEFAULT_wxUSE_DMALLOC=no
1251 DEFAULT_wxUSE_APPLE_IEEE=no
1252
1253 DEFAULT_wxUSE_LOG=yes
1254
1255 DEFAULT_wxUSE_GUI=yes
1256
1257 DEFAULT_wxUSE_ZLIB=no
1258 DEFAULT_wxUSE_LIBPNG=no
1259 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1260 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a
VZ
1261 DEFAULT_wxUSE_ODBC=no
1262
1263 DEFAULT_wxUSE_STD_IOSTREAM=no
1264 DEFAULT_wxUSE_FILE=no
1265 DEFAULT_wxUSE_TEXTFILE=no
1266 DEFAULT_wxUSE_TIMEDATE=no
1267 DEFAULT_wxUSE_WAVE=no
1268 DEFAULT_wxUSE_INTL=no
1269 DEFAULT_wxUSE_CONFIG=no
1270 DEFAULT_wxUSE_STREAMS=no
1271 DEFAULT_wxUSE_SOCKETS=no
1272 DEFAULT_wxUSE_DIALUP_MANAGER=no
1273 DEFAULT_wxUSE_SERIAL=no
1274 DEFAULT_wxUSE_JOYSTICK=no
1275 DEFAULT_wxUSE_DYNLIB_CLASS=no
1276 DEFAULT_wxUSE_LONGLONG=no
1277
1278 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1279 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1280 DEFAULT_wxUSE_POSTSCRIPT=no
1281
1282 DEFAULT_wxUSE_X_RESOURCES=no
1283 DEFAULT_wxUSE_CLIPBOARD=no
1284 DEFAULT_wxUSE_TOOLTIPS=no
1285 DEFAULT_wxUSE_DRAG_AND_DROP=no
1286 DEFAULT_wxUSE_SPLINES=no
1287
1288 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1289 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1290 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1291
1292 DEFAULT_wxUSE_PROLOGIO=no
1293 DEFAULT_wxUSE_RESOURCES=no
1294 DEFAULT_wxUSE_CONSTRAINTS=no
1295 DEFAULT_wxUSE_IPC=no
1296 DEFAULT_wxUSE_HELP=no
1297 DEFAULT_wxUSE_WXTREE=no
1298 DEFAULT_wxUSE_METAFILE=no
1299
1300 DEFAULT_wxUSE_COMMONDLGS=no
1301 DEFAULT_wxUSE_DIRDLG=no
1302 DEFAULT_wxUSE_TEXTDLG=no
1303 DEFAULT_wxUSE_STARTUP_TIPS=no
1304 DEFAULT_wxUSE_PROGRESSDLG=no
1305 DEFAULT_wxUSE_MINIFRAME=no
1306 DEFAULT_wxUSE_HTML=no
24528b0c 1307 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1308 DEFAULT_wxUSE_FS_INET=no
1309 DEFAULT_wxUSE_FS_ZIP=no
1310 DEFAULT_wxUSE_BUSYINFO=no
1311 DEFAULT_wxUSE_ZIPSTREAM=no
1312 DEFAULT_wxUSE_VALIDATORS=yes
1313
1314 DEFAULT_wxUSE_ACCEL=no
1315 DEFAULT_wxUSE_CARET=no
1316 DEFAULT_wxUSE_BMPBUTTON=no
1317 DEFAULT_wxUSE_CHECKBOX=no
1318 DEFAULT_wxUSE_CHECKLST=no
1319 DEFAULT_wxUSE_CHOICE=yes
1320 DEFAULT_wxUSE_COMBOBOX=no
1321 DEFAULT_wxUSE_GAUGE=no
1322 DEFAULT_wxUSE_GRID=no
1323 DEFAULT_wxUSE_NEW_GRID=no
1324 DEFAULT_wxUSE_IMAGLIST=no
1325 DEFAULT_wxUSE_LISTBOX=no
1326 DEFAULT_wxUSE_LISTCTRL=no
1327 DEFAULT_wxUSE_NOTEBOOK=no
9b33fe02 1328 DEFAULT_wxUSE_PLOT=no
10f2d63a
VZ
1329 DEFAULT_wxUSE_RADIOBOX=no
1330 DEFAULT_wxUSE_RADIOBTN=no
1331 DEFAULT_wxUSE_SASH=no
1332 DEFAULT_wxUSE_SCROLLBAR=no
1333 DEFAULT_wxUSE_SLIDER=no
1334 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1335 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1336 DEFAULT_wxUSE_SPLITTER=no
1337 DEFAULT_wxUSE_STATBMP=no
1338 DEFAULT_wxUSE_STATBOX=no
1339 DEFAULT_wxUSE_STATLINE=no
1340 DEFAULT_wxUSE_STATUSBAR=yes
1341 DEFAULT_wxUSE_TABDIALOG=no
1342 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1343 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1344 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1345 DEFAULT_wxUSE_TREECTRL=no
1346
1347 DEFAULT_wxUSE_UNICODE=no
1348 DEFAULT_wxUSE_WCSRTOMBS=no
1349
1350 DEFAULT_wxUSE_GIF=no
1351 DEFAULT_wxUSE_PCX=no
1352 DEFAULT_wxUSE_PNM=no
1353else
1354 DEFAULT_wxUSE_THREADS=yes
1355
1356 DEFAULT_wxUSE_SHARED=yes
00cf1208 1357 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1358 DEFAULT_wxUSE_OPTIMISE=yes
1359 DEFAULT_wxUSE_PROFILE=no
1360 DEFAULT_wxUSE_NO_DEPS=no
1361 DEFAULT_wxUSE_NO_RTTI=no
1362 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1363 DEFAULT_wxUSE_PERMISSIVE=no
1364 DEFAULT_wxUSE_DEBUG_FLAG=no
1365 DEFAULT_wxUSE_DEBUG_INFO=no
1366 DEFAULT_wxUSE_DEBUG_GDB=no
1367 DEFAULT_wxUSE_MEM_TRACING=no
1368 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1369 DEFAULT_wxUSE_DMALLOC=no
1370 DEFAULT_wxUSE_APPLE_IEEE=yes
1371
1372 DEFAULT_wxUSE_LOG=yes
1373
1374 DEFAULT_wxUSE_GUI=yes
1375
1376 DEFAULT_wxUSE_ZLIB=yes
1377 DEFAULT_wxUSE_LIBPNG=yes
1378 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1379 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1380 DEFAULT_wxUSE_ODBC=no
10f2d63a
VZ
1381
1382 DEFAULT_wxUSE_STD_IOSTREAM=no
1383 DEFAULT_wxUSE_FILE=yes
1384 DEFAULT_wxUSE_TEXTFILE=yes
1385 DEFAULT_wxUSE_TIMEDATE=yes
1386 DEFAULT_wxUSE_WAVE=no
1387 DEFAULT_wxUSE_INTL=yes
1388 DEFAULT_wxUSE_CONFIG=yes
1389 DEFAULT_wxUSE_STREAMS=yes
1390 DEFAULT_wxUSE_SOCKETS=yes
1391 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1392 DEFAULT_wxUSE_SERIAL=yes
1393 DEFAULT_wxUSE_JOYSTICK=yes
1394 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1395 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1396
1397 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1398 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1399 DEFAULT_wxUSE_POSTSCRIPT=yes
1400
1401 DEFAULT_wxUSE_X_RESOURCES=no
1402 DEFAULT_wxUSE_CLIPBOARD=yes
1403 DEFAULT_wxUSE_TOOLTIPS=yes
1404 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1405 DEFAULT_wxUSE_SPLINES=yes
1406
1407 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1408 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1409 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1410
1411 DEFAULT_wxUSE_PROLOGIO=yes
1412 DEFAULT_wxUSE_RESOURCES=yes
1413 DEFAULT_wxUSE_CONSTRAINTS=yes
1414 DEFAULT_wxUSE_IPC=yes
1415 DEFAULT_wxUSE_HELP=yes
1416 DEFAULT_wxUSE_WXTREE=yes
1417 DEFAULT_wxUSE_METAFILE=yes
1418
1419 DEFAULT_wxUSE_COMMONDLGS=yes
1420 DEFAULT_wxUSE_DIRDLG=yes
1421 DEFAULT_wxUSE_TEXTDLG=yes
1422 DEFAULT_wxUSE_STARTUP_TIPS=yes
1423 DEFAULT_wxUSE_PROGRESSDLG=yes
1424 DEFAULT_wxUSE_MINIFRAME=yes
1425 DEFAULT_wxUSE_HTML=yes
24528b0c 1426 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1427 DEFAULT_wxUSE_FS_INET=yes
1428 DEFAULT_wxUSE_FS_ZIP=yes
1429 DEFAULT_wxUSE_BUSYINFO=yes
1430 DEFAULT_wxUSE_ZIPSTREAM=yes
1431 DEFAULT_wxUSE_VALIDATORS=yes
1432
1433 DEFAULT_wxUSE_ACCEL=yes
1434 DEFAULT_wxUSE_CARET=yes
1435 DEFAULT_wxUSE_BMPBUTTON=yes
1436 DEFAULT_wxUSE_CHECKBOX=yes
1437 DEFAULT_wxUSE_CHECKLST=yes
1438 DEFAULT_wxUSE_CHOICE=yes
1439 DEFAULT_wxUSE_COMBOBOX=yes
1440 DEFAULT_wxUSE_GAUGE=yes
1441 DEFAULT_wxUSE_GRID=yes
cc977e5f 1442 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1443 DEFAULT_wxUSE_IMAGLIST=yes
1444 DEFAULT_wxUSE_LISTBOX=yes
1445 DEFAULT_wxUSE_LISTCTRL=yes
1446 DEFAULT_wxUSE_NOTEBOOK=yes
9b33fe02 1447 DEFAULT_wxUSE_PLOT=yes
10f2d63a
VZ
1448 DEFAULT_wxUSE_RADIOBOX=yes
1449 DEFAULT_wxUSE_RADIOBTN=yes
1450 DEFAULT_wxUSE_SASH=yes
1451 DEFAULT_wxUSE_SCROLLBAR=yes
1452 DEFAULT_wxUSE_SLIDER=yes
1453 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1454 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1455 DEFAULT_wxUSE_SPLITTER=yes
1456 DEFAULT_wxUSE_STATBMP=yes
1457 DEFAULT_wxUSE_STATBOX=yes
1458 DEFAULT_wxUSE_STATLINE=yes
1459 DEFAULT_wxUSE_STATUSBAR=yes
1460 DEFAULT_wxUSE_TABDIALOG=no
1461 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1462 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1463 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1464 DEFAULT_wxUSE_TREECTRL=yes
1465
1466 DEFAULT_wxUSE_UNICODE=no
1467 DEFAULT_wxUSE_WCSRTOMBS=no
1468
1469 DEFAULT_wxUSE_GIF=yes
1470 DEFAULT_wxUSE_PCX=yes
1471 DEFAULT_wxUSE_PNM=yes
1472fi
1473
1474
1475
1476for toolkit in `echo $ALL_TOOLKITS`; do
1477 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1478 if test "x$LINE" != x ; then
1479 has_toolkit_in_cache=1
1480 eval "DEFAULT_$LINE"
1481 eval "CACHE_$toolkit=1"
1482 fi
1483done
1484
1485
1486
1487 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
c733b222 1488echo "configure:1489: checking "for --enable-gui"" >&5
10f2d63a
VZ
1489 no_cache=0
1490 # Check whether --enable-gui or --disable-gui was given.
1491if test "${enable_gui+set}" = set; then
1492 enableval="$enable_gui"
1493
1494 if test "$enableval" = yes; then
1495 ac_cv_use_gui='wxUSE_GUI=yes'
1496 else
1497 ac_cv_use_gui='wxUSE_GUI=no'
1498 fi
1499
1500else
1501
1502 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1503 if test "x$LINE" != x ; then
1504 eval "DEFAULT_$LINE"
1505 else
1506 no_cache=1
1507 fi
1508
1509 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1510
1511fi
1512
1513
1514 eval "$ac_cv_use_gui"
1515 if test "$no_cache" != 1; then
1516 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1517 fi
1518
1519 if test "$wxUSE_GUI" = yes; then
1520 echo "$ac_t""yes" 1>&6
1521 else
1522 echo "$ac_t""no" 1>&6
1523 fi
1524
1525
b12915c1 1526if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1527
1528# Check whether --with-gtk or --without-gtk was given.
1529if test "${with_gtk+set}" = set; then
1530 withval="$with_gtk"
1531 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1532fi
1533
1534# Check whether --with-motif or --without-motif was given.
1535if test "${with_motif+set}" = set; then
1536 withval="$with_motif"
1537 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1538fi
1539
1540# Check whether --with-wine or --without-wine was given.
1541if test "${with_wine+set}" = set; then
1542 withval="$with_wine"
1543 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1544fi
1545
1546# Check whether --with-cygwin or --without-cygwin was given.
1547if test "${with_cygwin+set}" = set; then
1548 withval="$with_cygwin"
1549 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1550fi
1551
1552# Check whether --with-mingw or --without-mingw was given.
1553if test "${with_mingw+set}" = set; then
1554 withval="$with_mingw"
1555 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1556fi
1557
e07802fc
VZ
1558# Check whether --with-pm or --without-pm was given.
1559if test "${with_pm+set}" = set; then
1560 withval="$with_pm"
1561 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1562fi
1563
10f2d63a
VZ
1564
1565# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1566if test "${with_gtk_prefix+set}" = set; then
1567 withval="$with_gtk_prefix"
1568 gtk_config_prefix="$withval"
1569else
1570 gtk_config_prefix=""
1571fi
1572
1573# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1574if test "${with_gtk_exec_prefix+set}" = set; then
1575 withval="$with_gtk_exec_prefix"
1576 gtk_config_exec_prefix="$withval"
1577else
1578 gtk_config_exec_prefix=""
1579fi
1580
1581
1582
b12915c1 1583 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
c733b222 1584echo "configure:1585: checking "for --with-libpng"" >&5
10f2d63a 1585 no_cache=0
b12915c1
VZ
1586 # Check whether --with-libpng or --without-libpng was given.
1587if test "${with_libpng+set}" = set; then
1588 withval="$with_libpng"
10f2d63a
VZ
1589
1590 if test "$withval" = yes; then
b12915c1 1591 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
10f2d63a 1592 else
b12915c1 1593 ac_cv_use_libpng='wxUSE_LIBPNG=no'
10f2d63a
VZ
1594 fi
1595
1596else
1597
b12915c1 1598 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1599 if test "x$LINE" != x ; then
1600 eval "DEFAULT_$LINE"
1601 else
1602 no_cache=1
1603 fi
1604
b12915c1 1605 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1606
1607fi
1608
1609
b12915c1 1610 eval "$ac_cv_use_libpng"
10f2d63a 1611 if test "$no_cache" != 1; then
b12915c1 1612 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1613 fi
1614
b12915c1 1615 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a
VZ
1616 echo "$ac_t""yes" 1>&6
1617 else
1618 echo "$ac_t""no" 1>&6
1619 fi
1620
1621
b12915c1 1622 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
c733b222 1623echo "configure:1624: checking "for --with-libjpeg"" >&5
10f2d63a 1624 no_cache=0
b12915c1
VZ
1625 # Check whether --with-libjpeg or --without-libjpeg was given.
1626if test "${with_libjpeg+set}" = set; then
1627 withval="$with_libjpeg"
10f2d63a
VZ
1628
1629 if test "$withval" = yes; then
b12915c1 1630 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
10f2d63a 1631 else
b12915c1 1632 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
10f2d63a
VZ
1633 fi
1634
1635else
1636
b12915c1 1637 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1638 if test "x$LINE" != x ; then
1639 eval "DEFAULT_$LINE"
1640 else
1641 no_cache=1
1642 fi
1643
b12915c1 1644 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1645
1646fi
1647
1648
b12915c1 1649 eval "$ac_cv_use_libjpeg"
10f2d63a 1650 if test "$no_cache" != 1; then
b12915c1 1651 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1652 fi
1653
b12915c1 1654 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a
VZ
1655 echo "$ac_t""yes" 1>&6
1656 else
1657 echo "$ac_t""no" 1>&6
1658 fi
1659
1660
b12915c1 1661 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
c733b222 1662echo "configure:1663: checking "for --with-libtiff"" >&5
10f2d63a 1663 no_cache=0
b12915c1
VZ
1664 # Check whether --with-libtiff or --without-libtiff was given.
1665if test "${with_libtiff+set}" = set; then
1666 withval="$with_libtiff"
10f2d63a
VZ
1667
1668 if test "$withval" = yes; then
b12915c1 1669 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
10f2d63a 1670 else
b12915c1 1671 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
10f2d63a
VZ
1672 fi
1673
1674else
1675
b12915c1 1676 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1677 if test "x$LINE" != x ; then
1678 eval "DEFAULT_$LINE"
1679 else
1680 no_cache=1
1681 fi
1682
b12915c1 1683 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1684
1685fi
1686
1687
b12915c1 1688 eval "$ac_cv_use_libtiff"
10f2d63a 1689 if test "$no_cache" != 1; then
b12915c1 1690 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1691 fi
1692
b12915c1 1693 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a
VZ
1694 echo "$ac_t""yes" 1>&6
1695 else
1696 echo "$ac_t""no" 1>&6
1697 fi
1698
1699
b12915c1 1700 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
c733b222 1701echo "configure:1702: checking "for --with-opengl"" >&5
10f2d63a 1702 no_cache=0
b12915c1
VZ
1703 # Check whether --with-opengl or --without-opengl was given.
1704if test "${with_opengl+set}" = set; then
1705 withval="$with_opengl"
10f2d63a
VZ
1706
1707 if test "$withval" = yes; then
b12915c1 1708 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1709 else
b12915c1 1710 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1711 fi
1712
1713else
1714
b12915c1 1715 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1716 if test "x$LINE" != x ; then
1717 eval "DEFAULT_$LINE"
1718 else
1719 no_cache=1
1720 fi
1721
b12915c1 1722 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1723
1724fi
1725
1726
b12915c1 1727 eval "$ac_cv_use_opengl"
10f2d63a 1728 if test "$no_cache" != 1; then
b12915c1 1729 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1730 fi
1731
b12915c1 1732 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1733 echo "$ac_t""yes" 1>&6
1734 else
1735 echo "$ac_t""no" 1>&6
1736 fi
1737
1738
b12915c1
VZ
1739fi
1740
1741
1742 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
c733b222 1743echo "configure:1744: checking "for --with-dmalloc"" >&5
c7a2bf27 1744 no_cache=0
b12915c1
VZ
1745 # Check whether --with-dmalloc or --without-dmalloc was given.
1746if test "${with_dmalloc+set}" = set; then
1747 withval="$with_dmalloc"
c7a2bf27
RR
1748
1749 if test "$withval" = yes; then
b12915c1 1750 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1751 else
b12915c1 1752 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1753 fi
1754
1755else
1756
b12915c1 1757 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1758 if test "x$LINE" != x ; then
1759 eval "DEFAULT_$LINE"
1760 else
1761 no_cache=1
1762 fi
1763
b12915c1 1764 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1765
1766fi
1767
1768
b12915c1 1769 eval "$ac_cv_use_dmalloc"
c7a2bf27 1770 if test "$no_cache" != 1; then
b12915c1 1771 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1772 fi
1773
b12915c1 1774 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1775 echo "$ac_t""yes" 1>&6
1776 else
1777 echo "$ac_t""no" 1>&6
1778 fi
1779
1780
b12915c1 1781 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
c733b222 1782echo "configure:1783: checking "for --with-zlib"" >&5
10f2d63a 1783 no_cache=0
b12915c1
VZ
1784 # Check whether --with-zlib or --without-zlib was given.
1785if test "${with_zlib+set}" = set; then
1786 withval="$with_zlib"
10f2d63a
VZ
1787
1788 if test "$withval" = yes; then
b12915c1 1789 ac_cv_use_zlib='wxUSE_ZLIB=yes'
c733b222
VZ
1790 elif test "$withval" = sys; then
1791 ac_cv_use_zlib='wxUSE_ZLIB=sys'
10f2d63a 1792 else
b12915c1 1793 ac_cv_use_zlib='wxUSE_ZLIB=no'
10f2d63a
VZ
1794 fi
1795
1796else
1797
b12915c1 1798 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1799 if test "x$LINE" != x ; then
1800 eval "DEFAULT_$LINE"
1801 else
1802 no_cache=1
1803 fi
1804
b12915c1 1805 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1806
1807fi
1808
1809
b12915c1 1810 eval "$ac_cv_use_zlib"
10f2d63a 1811 if test "$no_cache" != 1; then
b12915c1 1812 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1813 fi
1814
b12915c1 1815 if test "$wxUSE_ZLIB" = yes; then
10f2d63a 1816 echo "$ac_t""yes" 1>&6
c733b222 1817 elif test "$wxUSE_ZLIB" = no; then
10f2d63a 1818 echo "$ac_t""no" 1>&6
c733b222
VZ
1819 else
1820 echo "$ac_t""system version" 1>&6
10f2d63a
VZ
1821 fi
1822
1823
1824 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
c733b222 1825echo "configure:1826: checking "for --with-odbc"" >&5
10f2d63a
VZ
1826 no_cache=0
1827 # Check whether --with-odbc or --without-odbc was given.
1828if test "${with_odbc+set}" = set; then
1829 withval="$with_odbc"
1830
1831 if test "$withval" = yes; then
1832 ac_cv_use_odbc='wxUSE_ODBC=yes'
1833 else
1834 ac_cv_use_odbc='wxUSE_ODBC=no'
1835 fi
1836
1837else
1838
1839 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1840 if test "x$LINE" != x ; then
1841 eval "DEFAULT_$LINE"
1842 else
1843 no_cache=1
1844 fi
1845
1846 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1847
1848fi
1849
1850
1851 eval "$ac_cv_use_odbc"
1852 if test "$no_cache" != 1; then
1853 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1854 fi
1855
1856 if test "$wxUSE_ODBC" = yes; then
1857 echo "$ac_t""yes" 1>&6
1858 else
1859 echo "$ac_t""no" 1>&6
1860 fi
1861
1862
1863
1864
1865
1866 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
c733b222 1867echo "configure:1868: checking "for --enable-shared"" >&5
10f2d63a
VZ
1868 no_cache=0
1869 # Check whether --enable-shared or --disable-shared was given.
1870if test "${enable_shared+set}" = set; then
1871 enableval="$enable_shared"
1872
1873 if test "$enableval" = yes; then
1874 ac_cv_use_shared='wxUSE_SHARED=yes'
1875 else
1876 ac_cv_use_shared='wxUSE_SHARED=no'
1877 fi
1878
1879else
1880
1881 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1882 if test "x$LINE" != x ; then
1883 eval "DEFAULT_$LINE"
1884 else
1885 no_cache=1
1886 fi
1887
1888 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1889
1890fi
1891
1892
1893 eval "$ac_cv_use_shared"
1894 if test "$no_cache" != 1; then
1895 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1896 fi
1897
1898 if test "$wxUSE_SHARED" = yes; then
1899 echo "$ac_t""yes" 1>&6
1900 else
1901 echo "$ac_t""no" 1>&6
1902 fi
1903
1904
00cf1208 1905 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
c733b222 1906echo "configure:1907: checking "for --enable-burnt_name"" >&5
00cf1208
RR
1907 no_cache=0
1908 # Check whether --enable-burnt_name or --disable-burnt_name was given.
1909if test "${enable_burnt_name+set}" = set; then
1910 enableval="$enable_burnt_name"
1911
1912 if test "$enableval" = yes; then
1913 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
1914 else
1915 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
1916 fi
1917
1918else
1919
1920 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
1921 if test "x$LINE" != x ; then
1922 eval "DEFAULT_$LINE"
1923 else
1924 no_cache=1
1925 fi
1926
1927 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
1928
1929fi
1930
1931
1932 eval "$ac_cv_use_burnt_name"
1933 if test "$no_cache" != 1; then
1934 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
1935 fi
1936
1937 if test "$wxUSE_BURNT_NAME" = yes; then
1938 echo "$ac_t""yes" 1>&6
1939 else
1940 echo "$ac_t""no" 1>&6
1941 fi
1942
1943
10f2d63a 1944 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
c733b222 1945echo "configure:1946: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1946 no_cache=0
1947 # Check whether --enable-optimise or --disable-optimise was given.
1948if test "${enable_optimise+set}" = set; then
1949 enableval="$enable_optimise"
1950
1951 if test "$enableval" = yes; then
1952 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1953 else
1954 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1955 fi
1956
1957else
1958
1959 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1960 if test "x$LINE" != x ; then
1961 eval "DEFAULT_$LINE"
1962 else
1963 no_cache=1
1964 fi
1965
1966 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1967
1968fi
1969
1970
1971 eval "$ac_cv_use_optimise"
1972 if test "$no_cache" != 1; then
1973 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1974 fi
1975
1976 if test "$wxUSE_OPTIMISE" = yes; then
1977 echo "$ac_t""yes" 1>&6
1978 else
1979 echo "$ac_t""no" 1>&6
1980 fi
1981
1982
1983 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
c733b222 1984echo "configure:1985: checking "for --enable-debug"" >&5
10f2d63a
VZ
1985 no_cache=0
1986 # Check whether --enable-debug or --disable-debug was given.
1987if test "${enable_debug+set}" = set; then
1988 enableval="$enable_debug"
1989
1990 if test "$enableval" = yes; then
1991 ac_cv_use_debug='wxUSE_DEBUG=yes'
1992 else
1993 ac_cv_use_debug='wxUSE_DEBUG=no'
1994 fi
1995
1996else
1997
1998 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1999 if test "x$LINE" != x ; then
2000 eval "DEFAULT_$LINE"
2001 else
2002 no_cache=1
2003 fi
2004
2005 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2006
2007fi
2008
2009
2010 eval "$ac_cv_use_debug"
2011 if test "$no_cache" != 1; then
2012 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2013 fi
2014
2015 if test "$wxUSE_DEBUG" = yes; then
2016 echo "$ac_t""yes" 1>&6
2017 else
2018 echo "$ac_t""no" 1>&6
2019 fi
2020
2021
2022if test "$wxUSE_DEBUG" = "yes"; then
2023 DEFAULT_wxUSE_DEBUG_FLAG=yes
2024 DEFAULT_wxUSE_DEBUG_INFO=yes
2025elif test "$wxUSE_DEBUG" = "no"; then
2026 DEFAULT_wxUSE_DEBUG_FLAG=no
2027 DEFAULT_wxUSE_DEBUG_INFO=no
2028fi
2029
2030
2031 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
c733b222 2032echo "configure:2033: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2033 no_cache=0
2034 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2035if test "${enable_debug_flag+set}" = set; then
2036 enableval="$enable_debug_flag"
2037
2038 if test "$enableval" = yes; then
2039 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2040 else
2041 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2042 fi
2043
2044else
2045
2046 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2047 if test "x$LINE" != x ; then
2048 eval "DEFAULT_$LINE"
2049 else
2050 no_cache=1
2051 fi
2052
2053 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2054
2055fi
2056
2057
2058 eval "$ac_cv_use_debug_flag"
2059 if test "$no_cache" != 1; then
2060 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2061 fi
2062
2063 if test "$wxUSE_DEBUG_FLAG" = yes; then
2064 echo "$ac_t""yes" 1>&6
2065 else
2066 echo "$ac_t""no" 1>&6
2067 fi
2068
2069
2070 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
c733b222 2071echo "configure:2072: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2072 no_cache=0
2073 # Check whether --enable-debug_info or --disable-debug_info was given.
2074if test "${enable_debug_info+set}" = set; then
2075 enableval="$enable_debug_info"
2076
2077 if test "$enableval" = yes; then
2078 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2079 else
2080 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2081 fi
2082
2083else
2084
2085 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2086 if test "x$LINE" != x ; then
2087 eval "DEFAULT_$LINE"
2088 else
2089 no_cache=1
2090 fi
2091
2092 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2093
2094fi
2095
2096
2097 eval "$ac_cv_use_debug_info"
2098 if test "$no_cache" != 1; then
2099 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2100 fi
2101
2102 if test "$wxUSE_DEBUG_INFO" = yes; then
2103 echo "$ac_t""yes" 1>&6
2104 else
2105 echo "$ac_t""no" 1>&6
2106 fi
2107
2108
2109 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
c733b222 2110echo "configure:2111: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2111 no_cache=0
2112 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2113if test "${enable_debug_gdb+set}" = set; then
2114 enableval="$enable_debug_gdb"
2115
2116 if test "$enableval" = yes; then
2117 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2118 else
2119 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2120 fi
2121
2122else
2123
2124 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2125 if test "x$LINE" != x ; then
2126 eval "DEFAULT_$LINE"
2127 else
2128 no_cache=1
2129 fi
2130
2131 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2132
2133fi
2134
2135
2136 eval "$ac_cv_use_debug_gdb"
2137 if test "$no_cache" != 1; then
2138 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2139 fi
2140
2141 if test "$wxUSE_DEBUG_GDB" = yes; then
2142 echo "$ac_t""yes" 1>&6
2143 else
2144 echo "$ac_t""no" 1>&6
2145 fi
2146
2147
2148 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
c733b222 2149echo "configure:2150: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2150 no_cache=0
2151 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2152if test "${enable_debug_cntxt+set}" = set; then
2153 enableval="$enable_debug_cntxt"
2154
2155 if test "$enableval" = yes; then
2156 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2157 else
2158 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2159 fi
2160
2161else
2162
2163 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2164 if test "x$LINE" != x ; then
2165 eval "DEFAULT_$LINE"
2166 else
2167 no_cache=1
2168 fi
2169
2170 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2171
2172fi
2173
2174
2175 eval "$ac_cv_use_debug_cntxt"
2176 if test "$no_cache" != 1; then
2177 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2178 fi
2179
2180 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2181 echo "$ac_t""yes" 1>&6
2182 else
2183 echo "$ac_t""no" 1>&6
2184 fi
2185
2186
2187 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
c733b222 2188echo "configure:2189: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2189 no_cache=0
2190 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2191if test "${enable_mem_tracing+set}" = set; then
2192 enableval="$enable_mem_tracing"
2193
2194 if test "$enableval" = yes; then
2195 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2196 else
2197 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2198 fi
2199
2200else
2201
2202 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2203 if test "x$LINE" != x ; then
2204 eval "DEFAULT_$LINE"
2205 else
2206 no_cache=1
2207 fi
2208
2209 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2210
2211fi
2212
2213
2214 eval "$ac_cv_use_mem_tracing"
2215 if test "$no_cache" != 1; then
2216 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2217 fi
2218
2219 if test "$wxUSE_MEM_TRACING" = yes; then
2220 echo "$ac_t""yes" 1>&6
2221 else
2222 echo "$ac_t""no" 1>&6
2223 fi
2224
2225
2226 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
c733b222 2227echo "configure:2228: checking "for --enable-profile"" >&5
10f2d63a
VZ
2228 no_cache=0
2229 # Check whether --enable-profile or --disable-profile was given.
2230if test "${enable_profile+set}" = set; then
2231 enableval="$enable_profile"
2232
2233 if test "$enableval" = yes; then
2234 ac_cv_use_profile='wxUSE_PROFILE=yes'
2235 else
2236 ac_cv_use_profile='wxUSE_PROFILE=no'
2237 fi
2238
2239else
2240
2241 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2242 if test "x$LINE" != x ; then
2243 eval "DEFAULT_$LINE"
2244 else
2245 no_cache=1
2246 fi
2247
2248 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2249
2250fi
2251
2252
2253 eval "$ac_cv_use_profile"
2254 if test "$no_cache" != 1; then
2255 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2256 fi
2257
2258 if test "$wxUSE_PROFILE" = yes; then
2259 echo "$ac_t""yes" 1>&6
2260 else
2261 echo "$ac_t""no" 1>&6
2262 fi
2263
2264
2265 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
c733b222 2266echo "configure:2267: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2267 no_cache=0
2268 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2269if test "${enable_no_rtti+set}" = set; then
2270 enableval="$enable_no_rtti"
2271
2272 if test "$enableval" = yes; then
2273 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2274 else
2275 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2276 fi
2277
2278else
2279
2280 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2281 if test "x$LINE" != x ; then
2282 eval "DEFAULT_$LINE"
2283 else
2284 no_cache=1
2285 fi
2286
2287 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2288
2289fi
2290
2291
2292 eval "$ac_cv_use_no_rtti"
2293 if test "$no_cache" != 1; then
2294 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2295 fi
2296
2297 if test "$wxUSE_NO_RTTI" = yes; then
2298 echo "$ac_t""yes" 1>&6
2299 else
2300 echo "$ac_t""no" 1>&6
2301 fi
2302
2303
2304 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
c733b222 2305echo "configure:2306: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2306 no_cache=0
2307 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2308if test "${enable_no_exceptions+set}" = set; then
2309 enableval="$enable_no_exceptions"
2310
2311 if test "$enableval" = yes; then
2312 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2313 else
2314 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2315 fi
2316
2317else
2318
2319 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2320 if test "x$LINE" != x ; then
2321 eval "DEFAULT_$LINE"
2322 else
2323 no_cache=1
2324 fi
2325
2326 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2327
2328fi
2329
2330
2331 eval "$ac_cv_use_no_exceptions"
2332 if test "$no_cache" != 1; then
2333 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2334 fi
2335
2336 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2337 echo "$ac_t""yes" 1>&6
2338 else
2339 echo "$ac_t""no" 1>&6
2340 fi
2341
2342
2343 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
c733b222 2344echo "configure:2345: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2345 no_cache=0
2346 # Check whether --enable-permissive or --disable-permissive was given.
2347if test "${enable_permissive+set}" = set; then
2348 enableval="$enable_permissive"
2349
2350 if test "$enableval" = yes; then
2351 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2352 else
2353 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2354 fi
2355
2356else
2357
2358 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2359 if test "x$LINE" != x ; then
2360 eval "DEFAULT_$LINE"
2361 else
2362 no_cache=1
2363 fi
2364
2365 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2366
2367fi
2368
2369
2370 eval "$ac_cv_use_permissive"
2371 if test "$no_cache" != 1; then
2372 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2373 fi
2374
2375 if test "$wxUSE_PERMISSIVE" = yes; then
2376 echo "$ac_t""yes" 1>&6
2377 else
2378 echo "$ac_t""no" 1>&6
2379 fi
2380
2381
2382 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
c733b222 2383echo "configure:2384: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2384 no_cache=0
2385 # Check whether --enable-no_deps or --disable-no_deps was given.
2386if test "${enable_no_deps+set}" = set; then
2387 enableval="$enable_no_deps"
2388
2389 if test "$enableval" = yes; then
2390 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2391 else
2392 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2393 fi
2394
2395else
2396
2397 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2398 if test "x$LINE" != x ; then
2399 eval "DEFAULT_$LINE"
2400 else
2401 no_cache=1
2402 fi
2403
2404 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2405
2406fi
2407
2408
2409 eval "$ac_cv_use_no_deps"
2410 if test "$no_cache" != 1; then
2411 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2412 fi
2413
2414 if test "$wxUSE_NO_DEPS" = yes; then
2415 echo "$ac_t""yes" 1>&6
2416 else
2417 echo "$ac_t""no" 1>&6
2418 fi
2419
2420
2421
2422
2423 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
c733b222 2424echo "configure:2425: checking "for --enable-intl"" >&5
10f2d63a
VZ
2425 no_cache=0
2426 # Check whether --enable-intl or --disable-intl was given.
2427if test "${enable_intl+set}" = set; then
2428 enableval="$enable_intl"
2429
2430 if test "$enableval" = yes; then
2431 ac_cv_use_intl='wxUSE_INTL=yes'
2432 else
2433 ac_cv_use_intl='wxUSE_INTL=no'
2434 fi
2435
2436else
2437
2438 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2439 if test "x$LINE" != x ; then
2440 eval "DEFAULT_$LINE"
2441 else
2442 no_cache=1
2443 fi
2444
2445 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2446
2447fi
2448
2449
2450 eval "$ac_cv_use_intl"
2451 if test "$no_cache" != 1; then
2452 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2453 fi
2454
2455 if test "$wxUSE_INTL" = yes; then
2456 echo "$ac_t""yes" 1>&6
2457 else
2458 echo "$ac_t""no" 1>&6
2459 fi
2460
2461
2462 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
c733b222 2463echo "configure:2464: checking "for --enable-config"" >&5
10f2d63a
VZ
2464 no_cache=0
2465 # Check whether --enable-config or --disable-config was given.
2466if test "${enable_config+set}" = set; then
2467 enableval="$enable_config"
2468
2469 if test "$enableval" = yes; then
2470 ac_cv_use_config='wxUSE_CONFIG=yes'
2471 else
2472 ac_cv_use_config='wxUSE_CONFIG=no'
2473 fi
2474
2475else
2476
2477 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2478 if test "x$LINE" != x ; then
2479 eval "DEFAULT_$LINE"
2480 else
2481 no_cache=1
2482 fi
2483
2484 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2485
2486fi
2487
2488
2489 eval "$ac_cv_use_config"
2490 if test "$no_cache" != 1; then
2491 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2492 fi
2493
2494 if test "$wxUSE_CONFIG" = yes; then
2495 echo "$ac_t""yes" 1>&6
2496 else
2497 echo "$ac_t""no" 1>&6
2498 fi
2499
2500
b12915c1
VZ
2501if test "$wxUSE_GUI" = "yes"; then
2502
10f2d63a 2503 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
c733b222 2504echo "configure:2505: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2505 no_cache=0
2506 # Check whether --enable-sockets or --disable-sockets was given.
2507if test "${enable_sockets+set}" = set; then
2508 enableval="$enable_sockets"
2509
2510 if test "$enableval" = yes; then
2511 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2512 else
2513 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2514 fi
2515
2516else
2517
2518 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2519 if test "x$LINE" != x ; then
2520 eval "DEFAULT_$LINE"
2521 else
2522 no_cache=1
2523 fi
2524
2525 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2526
2527fi
2528
2529
2530 eval "$ac_cv_use_sockets"
2531 if test "$no_cache" != 1; then
2532 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2533 fi
2534
2535 if test "$wxUSE_SOCKETS" = yes; then
2536 echo "$ac_t""yes" 1>&6
2537 else
2538 echo "$ac_t""no" 1>&6
2539 fi
2540
b12915c1
VZ
2541else
2542wxUSE_SOCKETS=no
2543fi
2544
10f2d63a
VZ
2545
2546 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
c733b222 2547echo "configure:2548: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2548 no_cache=0
2549 # Check whether --enable-dialupman or --disable-dialupman was given.
2550if test "${enable_dialupman+set}" = set; then
2551 enableval="$enable_dialupman"
2552
2553 if test "$enableval" = yes; then
2554 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2555 else
2556 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2557 fi
2558
2559else
2560
2561 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2562 if test "x$LINE" != x ; then
2563 eval "DEFAULT_$LINE"
2564 else
2565 no_cache=1
2566 fi
2567
2568 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2569
2570fi
2571
2572
2573 eval "$ac_cv_use_dialupman"
2574 if test "$no_cache" != 1; then
2575 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2576 fi
2577
2578 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2579 echo "$ac_t""yes" 1>&6
2580 else
2581 echo "$ac_t""no" 1>&6
2582 fi
2583
2584
2585 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
c733b222 2586echo "configure:2587: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2587 no_cache=0
2588 # Check whether --enable-ipc or --disable-ipc was given.
2589if test "${enable_ipc+set}" = set; then
2590 enableval="$enable_ipc"
2591
2592 if test "$enableval" = yes; then
2593 ac_cv_use_ipc='wxUSE_IPC=yes'
2594 else
2595 ac_cv_use_ipc='wxUSE_IPC=no'
2596 fi
2597
2598else
2599
2600 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2601 if test "x$LINE" != x ; then
2602 eval "DEFAULT_$LINE"
2603 else
2604 no_cache=1
2605 fi
2606
2607 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2608
2609fi
2610
2611
2612 eval "$ac_cv_use_ipc"
2613 if test "$no_cache" != 1; then
2614 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2615 fi
2616
2617 if test "$wxUSE_IPC" = yes; then
2618 echo "$ac_t""yes" 1>&6
2619 else
2620 echo "$ac_t""no" 1>&6
2621 fi
2622
2623
2624 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
c733b222 2625echo "configure:2626: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2626 no_cache=0
2627 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2628if test "${enable_apple_ieee+set}" = set; then
2629 enableval="$enable_apple_ieee"
2630
2631 if test "$enableval" = yes; then
2632 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2633 else
2634 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2635 fi
2636
2637else
2638
2639 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2640 if test "x$LINE" != x ; then
2641 eval "DEFAULT_$LINE"
2642 else
2643 no_cache=1
2644 fi
2645
2646 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2647
2648fi
2649
2650
2651 eval "$ac_cv_use_apple_ieee"
2652 if test "$no_cache" != 1; then
2653 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2654 fi
2655
2656 if test "$wxUSE_APPLE_IEEE" = yes; then
2657 echo "$ac_t""yes" 1>&6
2658 else
2659 echo "$ac_t""no" 1>&6
2660 fi
2661
2662
2663 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
c733b222 2664echo "configure:2665: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2665 no_cache=0
2666 # Check whether --enable-timedate or --disable-timedate was given.
2667if test "${enable_timedate+set}" = set; then
2668 enableval="$enable_timedate"
2669
2670 if test "$enableval" = yes; then
2671 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2672 else
2673 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2674 fi
2675
2676else
2677
2678 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2679 if test "x$LINE" != x ; then
2680 eval "DEFAULT_$LINE"
2681 else
2682 no_cache=1
2683 fi
2684
2685 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2686
2687fi
2688
2689
2690 eval "$ac_cv_use_timedate"
2691 if test "$no_cache" != 1; then
2692 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2693 fi
2694
2695 if test "$wxUSE_TIMEDATE" = yes; then
2696 echo "$ac_t""yes" 1>&6
2697 else
2698 echo "$ac_t""no" 1>&6
2699 fi
2700
2701
2702 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
c733b222 2703echo "configure:2704: checking "for --enable-wave"" >&5
10f2d63a
VZ
2704 no_cache=0
2705 # Check whether --enable-wave or --disable-wave was given.
2706if test "${enable_wave+set}" = set; then
2707 enableval="$enable_wave"
2708
2709 if test "$enableval" = yes; then
2710 ac_cv_use_wave='wxUSE_WAVE=yes'
2711 else
2712 ac_cv_use_wave='wxUSE_WAVE=no'
2713 fi
2714
2715else
2716
2717 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2718 if test "x$LINE" != x ; then
2719 eval "DEFAULT_$LINE"
2720 else
2721 no_cache=1
2722 fi
2723
2724 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2725
2726fi
2727
2728
2729 eval "$ac_cv_use_wave"
2730 if test "$no_cache" != 1; then
2731 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2732 fi
2733
2734 if test "$wxUSE_WAVE" = yes; then
2735 echo "$ac_t""yes" 1>&6
2736 else
2737 echo "$ac_t""no" 1>&6
2738 fi
2739
2740
2741 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
c733b222 2742echo "configure:2743: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2743 no_cache=0
2744 # Check whether --enable-fraction or --disable-fraction was given.
2745if test "${enable_fraction+set}" = set; then
2746 enableval="$enable_fraction"
2747
2748 if test "$enableval" = yes; then
2749 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2750 else
2751 ac_cv_use_fraction='wxUSE_FRACTION=no'
2752 fi
2753
2754else
2755
2756 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2757 if test "x$LINE" != x ; then
2758 eval "DEFAULT_$LINE"
2759 else
2760 no_cache=1
2761 fi
2762
2763 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2764
2765fi
2766
2767
2768 eval "$ac_cv_use_fraction"
2769 if test "$no_cache" != 1; then
2770 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2771 fi
2772
2773 if test "$wxUSE_FRACTION" = yes; then
2774 echo "$ac_t""yes" 1>&6
2775 else
2776 echo "$ac_t""no" 1>&6
2777 fi
2778
2779
2780 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
c733b222 2781echo "configure:2782: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2782 no_cache=0
2783 # Check whether --enable-dynlib or --disable-dynlib was given.
2784if test "${enable_dynlib+set}" = set; then
2785 enableval="$enable_dynlib"
2786
2787 if test "$enableval" = yes; then
2788 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2789 else
2790 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2791 fi
2792
2793else
2794
2795 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2796 if test "x$LINE" != x ; then
2797 eval "DEFAULT_$LINE"
2798 else
2799 no_cache=1
2800 fi
2801
2802 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2803
2804fi
2805
2806
2807 eval "$ac_cv_use_dynlib"
2808 if test "$no_cache" != 1; then
2809 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2810 fi
2811
2812 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2813 echo "$ac_t""yes" 1>&6
2814 else
2815 echo "$ac_t""no" 1>&6
2816 fi
2817
2818
2819 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
c733b222 2820echo "configure:2821: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2821 no_cache=0
2822 # Check whether --enable-longlong or --disable-longlong was given.
2823if test "${enable_longlong+set}" = set; then
2824 enableval="$enable_longlong"
2825
2826 if test "$enableval" = yes; then
2827 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2828 else
2829 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2830 fi
2831
2832else
2833
2834 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2835 if test "x$LINE" != x ; then
2836 eval "DEFAULT_$LINE"
2837 else
2838 no_cache=1
2839 fi
2840
2841 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2842
2843fi
2844
2845
2846 eval "$ac_cv_use_longlong"
2847 if test "$no_cache" != 1; then
2848 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2849 fi
2850
2851 if test "$wxUSE_LONGLONG" = yes; then
2852 echo "$ac_t""yes" 1>&6
2853 else
2854 echo "$ac_t""no" 1>&6
2855 fi
2856
2857
2858 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
c733b222 2859echo "configure:2860: checking "for --enable-log"" >&5
10f2d63a
VZ
2860 no_cache=0
2861 # Check whether --enable-log or --disable-log was given.
2862if test "${enable_log+set}" = set; then
2863 enableval="$enable_log"
2864
2865 if test "$enableval" = yes; then
2866 ac_cv_use_log='wxUSE_LOG=yes'
2867 else
2868 ac_cv_use_log='wxUSE_LOG=no'
2869 fi
2870
2871else
2872
2873 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2874 if test "x$LINE" != x ; then
2875 eval "DEFAULT_$LINE"
2876 else
2877 no_cache=1
2878 fi
2879
2880 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2881
2882fi
2883
2884
2885 eval "$ac_cv_use_log"
2886 if test "$no_cache" != 1; then
2887 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2888 fi
2889
2890 if test "$wxUSE_LOG" = yes; then
2891 echo "$ac_t""yes" 1>&6
2892 else
2893 echo "$ac_t""no" 1>&6
2894 fi
2895
2896
2897 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
c733b222 2898echo "configure:2899: checking "for --enable-streams"" >&5
10f2d63a
VZ
2899 no_cache=0
2900 # Check whether --enable-streams or --disable-streams was given.
2901if test "${enable_streams+set}" = set; then
2902 enableval="$enable_streams"
2903
2904 if test "$enableval" = yes; then
2905 ac_cv_use_streams='wxUSE_STREAMS=yes'
2906 else
2907 ac_cv_use_streams='wxUSE_STREAMS=no'
2908 fi
2909
2910else
2911
2912 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2913 if test "x$LINE" != x ; then
2914 eval "DEFAULT_$LINE"
2915 else
2916 no_cache=1
2917 fi
2918
2919 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2920
2921fi
2922
2923
2924 eval "$ac_cv_use_streams"
2925 if test "$no_cache" != 1; then
2926 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2927 fi
2928
2929 if test "$wxUSE_STREAMS" = yes; then
2930 echo "$ac_t""yes" 1>&6
2931 else
2932 echo "$ac_t""no" 1>&6
2933 fi
2934
2935
2936 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
c733b222 2937echo "configure:2938: checking "for --enable-file"" >&5
10f2d63a
VZ
2938 no_cache=0
2939 # Check whether --enable-file or --disable-file was given.
2940if test "${enable_file+set}" = set; then
2941 enableval="$enable_file"
2942
2943 if test "$enableval" = yes; then
2944 ac_cv_use_file='wxUSE_FILE=yes'
2945 else
2946 ac_cv_use_file='wxUSE_FILE=no'
2947 fi
2948
2949else
2950
2951 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2952 if test "x$LINE" != x ; then
2953 eval "DEFAULT_$LINE"
2954 else
2955 no_cache=1
2956 fi
2957
2958 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2959
2960fi
2961
2962
2963 eval "$ac_cv_use_file"
2964 if test "$no_cache" != 1; then
2965 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2966 fi
2967
2968 if test "$wxUSE_FILE" = yes; then
2969 echo "$ac_t""yes" 1>&6
2970 else
2971 echo "$ac_t""no" 1>&6
2972 fi
2973
2974
2975 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
c733b222 2976echo "configure:2977: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2977 no_cache=0
2978 # Check whether --enable-textfile or --disable-textfile was given.
2979if test "${enable_textfile+set}" = set; then
2980 enableval="$enable_textfile"
2981
2982 if test "$enableval" = yes; then
2983 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2984 else
2985 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2986 fi
2987
2988else
2989
2990 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2991 if test "x$LINE" != x ; then
2992 eval "DEFAULT_$LINE"
2993 else
2994 no_cache=1
2995 fi
2996
2997 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2998
2999fi
3000
3001
3002 eval "$ac_cv_use_textfile"
3003 if test "$no_cache" != 1; then
3004 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3005 fi
3006
3007 if test "$wxUSE_TEXTFILE" = yes; then
3008 echo "$ac_t""yes" 1>&6
3009 else
3010 echo "$ac_t""no" 1>&6
3011 fi
3012
3013
3014 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
c733b222 3015echo "configure:3016: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3016 no_cache=0
3017 # Check whether --enable-unicode or --disable-unicode was given.
3018if test "${enable_unicode+set}" = set; then
3019 enableval="$enable_unicode"
3020
3021 if test "$enableval" = yes; then
3022 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3023 else
3024 ac_cv_use_unicode='wxUSE_UNICODE=no'
3025 fi
3026
3027else
3028
3029 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3030 if test "x$LINE" != x ; then
3031 eval "DEFAULT_$LINE"
3032 else
3033 no_cache=1
3034 fi
3035
3036 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3037
3038fi
3039
3040
3041 eval "$ac_cv_use_unicode"
3042 if test "$no_cache" != 1; then
3043 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3044 fi
3045
3046 if test "$wxUSE_UNICODE" = yes; then
3047 echo "$ac_t""yes" 1>&6
3048 else
3049 echo "$ac_t""no" 1>&6
3050 fi
3051
3052
3053 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
c733b222 3054echo "configure:3055: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3055 no_cache=0
3056 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3057if test "${enable_wcsrtombs+set}" = set; then
3058 enableval="$enable_wcsrtombs"
3059
3060 if test "$enableval" = yes; then
3061 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3062 else
3063 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3064 fi
3065
3066else
3067
3068 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3069 if test "x$LINE" != x ; then
3070 eval "DEFAULT_$LINE"
3071 else
3072 no_cache=1
3073 fi
3074
3075 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3076
3077fi
3078
3079
3080 eval "$ac_cv_use_wcsrtombs"
3081 if test "$no_cache" != 1; then
3082 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3083 fi
3084
3085 if test "$wxUSE_WCSRTOMBS" = yes; then
3086 echo "$ac_t""yes" 1>&6
3087 else
3088 echo "$ac_t""no" 1>&6
3089 fi
3090
3091
3092 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
c733b222 3093echo "configure:3094: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3094 no_cache=0
3095 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3096if test "${enable_wxprintfv+set}" = set; then
3097 enableval="$enable_wxprintfv"
3098
3099 if test "$enableval" = yes; then
3100 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3101 else
3102 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3103 fi
3104
3105else
3106
3107 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3108 if test "x$LINE" != x ; then
3109 eval "DEFAULT_$LINE"
3110 else
3111 no_cache=1
3112 fi
3113
3114 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3115
3116fi
3117
3118
3119 eval "$ac_cv_use_wxprintfv"
3120 if test "$no_cache" != 1; then
3121 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3122 fi
3123
3124 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3125 echo "$ac_t""yes" 1>&6
3126 else
3127 echo "$ac_t""no" 1>&6
3128 fi
3129
3130
3131 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
c733b222 3132echo "configure:3133: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3133 no_cache=0
3134 # Check whether --enable-joystick or --disable-joystick was given.
3135if test "${enable_joystick+set}" = set; then
3136 enableval="$enable_joystick"
3137
3138 if test "$enableval" = yes; then
3139 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3140 else
3141 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3142 fi
3143
3144else
3145
3146 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3147 if test "x$LINE" != x ; then
3148 eval "DEFAULT_$LINE"
3149 else
3150 no_cache=1
3151 fi
3152
3153 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3154
3155fi
3156
3157
3158 eval "$ac_cv_use_joystick"
3159 if test "$no_cache" != 1; then
3160 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3161 fi
3162
3163 if test "$wxUSE_JOYSTICK" = yes; then
3164 echo "$ac_t""yes" 1>&6
3165 else
3166 echo "$ac_t""no" 1>&6
3167 fi
3168
3169
3170 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
c733b222 3171echo "configure:3172: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3172 no_cache=0
3173 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3174if test "${enable_std_iostreams+set}" = set; then
3175 enableval="$enable_std_iostreams"
3176
3177 if test "$enableval" = yes; then
3178 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3179 else
3180 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3181 fi
3182
3183else
3184
3185 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3186 if test "x$LINE" != x ; then
3187 eval "DEFAULT_$LINE"
3188 else
3189 no_cache=1
3190 fi
3191
3192 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3193
3194fi
3195
3196
3197 eval "$ac_cv_use_std_iostreams"
3198 if test "$no_cache" != 1; then
3199 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3200 fi
3201
3202 if test "$wxUSE_STD_IOSTREAM" = yes; then
3203 echo "$ac_t""yes" 1>&6
3204 else
3205 echo "$ac_t""no" 1>&6
3206 fi
3207
3208
24528b0c 3209 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
c733b222 3210echo "configure:3211: checking "for --enable-filesystem"" >&5
24528b0c
VS
3211 no_cache=0
3212 # Check whether --enable-filesystem or --disable-filesystem was given.
3213if test "${enable_filesystem+set}" = set; then
3214 enableval="$enable_filesystem"
3215
3216 if test "$enableval" = yes; then
3217 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3218 else
3219 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3220 fi
3221
3222else
3223
3224 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3225 if test "x$LINE" != x ; then
3226 eval "DEFAULT_$LINE"
3227 else
3228 no_cache=1
3229 fi
3230
3231 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3232
3233fi
3234
3235
3236 eval "$ac_cv_use_filesystem"
3237 if test "$no_cache" != 1; then
3238 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3239 fi
3240
3241 if test "$wxUSE_FILESYSTEM" = yes; then
3242 echo "$ac_t""yes" 1>&6
3243 else
3244 echo "$ac_t""no" 1>&6
3245 fi
3246
3247
10f2d63a 3248 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
c733b222 3249echo "configure:3250: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3250 no_cache=0
3251 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3252if test "${enable_fs_inet+set}" = set; then
3253 enableval="$enable_fs_inet"
3254
3255 if test "$enableval" = yes; then
3256 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3257 else
3258 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3259 fi
3260
3261else
3262
3263 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3264 if test "x$LINE" != x ; then
3265 eval "DEFAULT_$LINE"
3266 else
3267 no_cache=1
3268 fi
3269
3270 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3271
3272fi
3273
3274
3275 eval "$ac_cv_use_fs_inet"
3276 if test "$no_cache" != 1; then
3277 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3278 fi
3279
3280 if test "$wxUSE_FS_INET" = yes; then
3281 echo "$ac_t""yes" 1>&6
3282 else
3283 echo "$ac_t""no" 1>&6
3284 fi
3285
3286
3287 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
c733b222 3288echo "configure:3289: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3289 no_cache=0
3290 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3291if test "${enable_fs_zip+set}" = set; then
3292 enableval="$enable_fs_zip"
3293
3294 if test "$enableval" = yes; then
3295 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3296 else
3297 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3298 fi
3299
3300else
3301
3302 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3303 if test "x$LINE" != x ; then
3304 eval "DEFAULT_$LINE"
3305 else
3306 no_cache=1
3307 fi
3308
3309 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3310
3311fi
3312
3313
3314 eval "$ac_cv_use_fs_zip"
3315 if test "$no_cache" != 1; then
3316 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3317 fi
3318
3319 if test "$wxUSE_FS_ZIP" = yes; then
3320 echo "$ac_t""yes" 1>&6
3321 else
3322 echo "$ac_t""no" 1>&6
3323 fi
3324
3325
3326 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
c733b222 3327echo "configure:3328: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3328 no_cache=0
3329 # Check whether --enable-zipstream or --disable-zipstream was given.
3330if test "${enable_zipstream+set}" = set; then
3331 enableval="$enable_zipstream"
3332
3333 if test "$enableval" = yes; then
3334 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3335 else
3336 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3337 fi
3338
3339else
3340
3341 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3342 if test "x$LINE" != x ; then
3343 eval "DEFAULT_$LINE"
3344 else
3345 no_cache=1
3346 fi
3347
3348 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3349
3350fi
3351
3352
3353 eval "$ac_cv_use_zipstream"
3354 if test "$no_cache" != 1; then
3355 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3356 fi
3357
3358 if test "$wxUSE_ZIPSTREAM" = yes; then
3359 echo "$ac_t""yes" 1>&6
3360 else
3361 echo "$ac_t""no" 1>&6
3362 fi
3363
3364
3365
3366
3367 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
c733b222 3368echo "configure:3369: checking "for --enable-threads"" >&5
10f2d63a
VZ
3369 no_cache=0
3370 # Check whether --enable-threads or --disable-threads was given.
3371if test "${enable_threads+set}" = set; then
3372 enableval="$enable_threads"
3373
3374 if test "$enableval" = yes; then
3375 ac_cv_use_threads='wxUSE_THREADS=yes'
3376 else
3377 ac_cv_use_threads='wxUSE_THREADS=no'
3378 fi
3379
3380else
3381
3382 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3383 if test "x$LINE" != x ; then
3384 eval "DEFAULT_$LINE"
3385 else
3386 no_cache=1
3387 fi
3388
3389 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3390
3391fi
3392
3393
3394 eval "$ac_cv_use_threads"
3395 if test "$no_cache" != 1; then
3396 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3397 fi
3398
3399 if test "$wxUSE_THREADS" = yes; then
3400 echo "$ac_t""yes" 1>&6
3401 else
3402 echo "$ac_t""no" 1>&6
3403 fi
3404
3405
3406 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
c733b222 3407echo "configure:3408: checking "for --enable-serial"" >&5
10f2d63a
VZ
3408 no_cache=0
3409 # Check whether --enable-serial or --disable-serial was given.
3410if test "${enable_serial+set}" = set; then
3411 enableval="$enable_serial"
3412
3413 if test "$enableval" = yes; then
3414 ac_cv_use_serial='wxUSE_SERIAL=yes'
3415 else
3416 ac_cv_use_serial='wxUSE_SERIAL=no'
3417 fi
3418
3419else
3420
3421 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3422 if test "x$LINE" != x ; then
3423 eval "DEFAULT_$LINE"
3424 else
3425 no_cache=1
3426 fi
3427
3428 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3429
3430fi
3431
3432
3433 eval "$ac_cv_use_serial"
3434 if test "$no_cache" != 1; then
3435 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3436 fi
3437
3438 if test "$wxUSE_SERIAL" = yes; then
3439 echo "$ac_t""yes" 1>&6
3440 else
3441 echo "$ac_t""no" 1>&6
3442 fi
3443
3444
b12915c1
VZ
3445if test "$wxUSE_GUI" = "yes"; then
3446
10f2d63a
VZ
3447
3448
3449 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
c733b222 3450echo "configure:3451: checking "for --enable-docview"" >&5
10f2d63a
VZ
3451 no_cache=0
3452 # Check whether --enable-docview or --disable-docview was given.
3453if test "${enable_docview+set}" = set; then
3454 enableval="$enable_docview"
3455
3456 if test "$enableval" = yes; then
3457 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3458 else
3459 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3460 fi
3461
3462else
3463
3464 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3465 if test "x$LINE" != x ; then
3466 eval "DEFAULT_$LINE"
3467 else
3468 no_cache=1
3469 fi
3470
3471 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3472
3473fi
3474
3475
3476 eval "$ac_cv_use_docview"
3477 if test "$no_cache" != 1; then
3478 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3479 fi
3480
3481 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3482 echo "$ac_t""yes" 1>&6
3483 else
3484 echo "$ac_t""no" 1>&6
3485 fi
3486
3487
3488 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
c733b222 3489echo "configure:3490: checking "for --enable-help"" >&5
10f2d63a
VZ
3490 no_cache=0
3491 # Check whether --enable-help or --disable-help was given.
3492if test "${enable_help+set}" = set; then
3493 enableval="$enable_help"
3494
3495 if test "$enableval" = yes; then
3496 ac_cv_use_help='wxUSE_HELP=yes'
3497 else
3498 ac_cv_use_help='wxUSE_HELP=no'
3499 fi
3500
3501else
3502
3503 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3504 if test "x$LINE" != x ; then
3505 eval "DEFAULT_$LINE"
3506 else
3507 no_cache=1
3508 fi
3509
3510 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3511
3512fi
3513
3514
3515 eval "$ac_cv_use_help"
3516 if test "$no_cache" != 1; then
3517 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3518 fi
3519
3520 if test "$wxUSE_HELP" = yes; then
3521 echo "$ac_t""yes" 1>&6
3522 else
3523 echo "$ac_t""no" 1>&6
3524 fi
3525
3526
3527 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
c733b222 3528echo "configure:3529: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3529 no_cache=0
3530 # Check whether --enable-constraints or --disable-constraints was given.
3531if test "${enable_constraints+set}" = set; then
3532 enableval="$enable_constraints"
3533
3534 if test "$enableval" = yes; then
3535 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3536 else
3537 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3538 fi
3539
3540else
3541
3542 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3543 if test "x$LINE" != x ; then
3544 eval "DEFAULT_$LINE"
3545 else
3546 no_cache=1
3547 fi
3548
3549 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3550
3551fi
3552
3553
3554 eval "$ac_cv_use_constraints"
3555 if test "$no_cache" != 1; then
3556 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3557 fi
3558
3559 if test "$wxUSE_CONSTRAINTS" = yes; then
3560 echo "$ac_t""yes" 1>&6
3561 else
3562 echo "$ac_t""no" 1>&6
3563 fi
3564
3565
3566 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
c733b222 3567echo "configure:3568: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3568 no_cache=0
3569 # Check whether --enable-printarch or --disable-printarch was given.
3570if test "${enable_printarch+set}" = set; then
3571 enableval="$enable_printarch"
3572
3573 if test "$enableval" = yes; then
3574 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3575 else
3576 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3577 fi
3578
3579else
3580
3581 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3582 if test "x$LINE" != x ; then
3583 eval "DEFAULT_$LINE"
3584 else
3585 no_cache=1
3586 fi
3587
3588 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3589
3590fi
3591
3592
3593 eval "$ac_cv_use_printarch"
3594 if test "$no_cache" != 1; then
3595 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3596 fi
3597
3598 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3599 echo "$ac_t""yes" 1>&6
3600 else
3601 echo "$ac_t""no" 1>&6
3602 fi
3603
3604
3605 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
c733b222 3606echo "configure:3607: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3607 no_cache=0
3608 # Check whether --enable-mdi or --disable-mdi was given.
3609if test "${enable_mdi+set}" = set; then
3610 enableval="$enable_mdi"
3611
3612 if test "$enableval" = yes; then
3613 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3614 else
3615 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3616 fi
3617
3618else
3619
3620 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3621 if test "x$LINE" != x ; then
3622 eval "DEFAULT_$LINE"
3623 else
3624 no_cache=1
3625 fi
3626
3627 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3628
3629fi
3630
3631
3632 eval "$ac_cv_use_mdi"
3633 if test "$no_cache" != 1; then
3634 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3635 fi
3636
3637 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3638 echo "$ac_t""yes" 1>&6
3639 else
3640 echo "$ac_t""no" 1>&6
3641 fi
3642
3643
3644
3645 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
c733b222 3646echo "configure:3647: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3647 no_cache=0
3648 # Check whether --enable-postscript or --disable-postscript was given.
3649if test "${enable_postscript+set}" = set; then
3650 enableval="$enable_postscript"
3651
3652 if test "$enableval" = yes; then
3653 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3654 else
3655 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3656 fi
3657
3658else
3659
3660 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3661 if test "x$LINE" != x ; then
3662 eval "DEFAULT_$LINE"
3663 else
3664 no_cache=1
3665 fi
3666
3667 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3668
3669fi
3670
3671
3672 eval "$ac_cv_use_postscript"
3673 if test "$no_cache" != 1; then
3674 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3675 fi
3676
3677 if test "$wxUSE_POSTSCRIPT" = yes; then
3678 echo "$ac_t""yes" 1>&6
3679 else
3680 echo "$ac_t""no" 1>&6
3681 fi
3682
3683
3684
3685
3686 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
c733b222 3687echo "configure:3688: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3688 no_cache=0
3689 # Check whether --enable-prologio or --disable-prologio was given.
3690if test "${enable_prologio+set}" = set; then
3691 enableval="$enable_prologio"
3692
3693 if test "$enableval" = yes; then
3694 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3695 else
3696 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3697 fi
3698
3699else
3700
3701 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3702 if test "x$LINE" != x ; then
3703 eval "DEFAULT_$LINE"
3704 else
3705 no_cache=1
3706 fi
3707
3708 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3709
3710fi
3711
3712
3713 eval "$ac_cv_use_prologio"
3714 if test "$no_cache" != 1; then
3715 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3716 fi
3717
3718 if test "$wxUSE_PROLOGIO" = yes; then
3719 echo "$ac_t""yes" 1>&6
3720 else
3721 echo "$ac_t""no" 1>&6
3722 fi
3723
3724
3725 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
c733b222 3726echo "configure:3727: checking "for --enable-resources"" >&5
10f2d63a
VZ
3727 no_cache=0
3728 # Check whether --enable-resources or --disable-resources was given.
3729if test "${enable_resources+set}" = set; then
3730 enableval="$enable_resources"
3731
3732 if test "$enableval" = yes; then
3733 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3734 else
3735 ac_cv_use_resources='wxUSE_RESOURCES=no'
3736 fi
3737
3738else
3739
3740 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3741 if test "x$LINE" != x ; then
3742 eval "DEFAULT_$LINE"
3743 else
3744 no_cache=1
3745 fi
3746
3747 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3748
3749fi
3750
3751
3752 eval "$ac_cv_use_resources"
3753 if test "$no_cache" != 1; then
3754 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3755 fi
3756
3757 if test "$wxUSE_RESOURCES" = yes; then
3758 echo "$ac_t""yes" 1>&6
3759 else
3760 echo "$ac_t""no" 1>&6
3761 fi
3762
3763
3764
3765 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
c733b222 3766echo "configure:3767: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3767 no_cache=0
3768 # Check whether --enable-xresources or --disable-xresources was given.
3769if test "${enable_xresources+set}" = set; then
3770 enableval="$enable_xresources"
3771
3772 if test "$enableval" = yes; then
3773 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3774 else
3775 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3776 fi
3777
3778else
3779
3780 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3781 if test "x$LINE" != x ; then
3782 eval "DEFAULT_$LINE"
3783 else
3784 no_cache=1
3785 fi
3786
3787 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3788
3789fi
3790
3791
3792 eval "$ac_cv_use_xresources"
3793 if test "$no_cache" != 1; then
3794 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3795 fi
3796
3797 if test "$wxUSE_X_RESOURCES" = yes; then
3798 echo "$ac_t""yes" 1>&6
3799 else
3800 echo "$ac_t""no" 1>&6
3801 fi
3802
3803
3804
3805
3806 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
c733b222 3807echo "configure:3808: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3808 no_cache=0
3809 # Check whether --enable-clipboard or --disable-clipboard was given.
3810if test "${enable_clipboard+set}" = set; then
3811 enableval="$enable_clipboard"
3812
3813 if test "$enableval" = yes; then
3814 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3815 else
3816 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3817 fi
3818
3819else
3820
3821 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3822 if test "x$LINE" != x ; then
3823 eval "DEFAULT_$LINE"
3824 else
3825 no_cache=1
3826 fi
3827
3828 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3829
3830fi
3831
3832
3833 eval "$ac_cv_use_clipboard"
3834 if test "$no_cache" != 1; then
3835 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3836 fi
3837
3838 if test "$wxUSE_CLIPBOARD" = yes; then
3839 echo "$ac_t""yes" 1>&6
3840 else
3841 echo "$ac_t""no" 1>&6
3842 fi
3843
3844
3845 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
c733b222 3846echo "configure:3847: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3847 no_cache=0
3848 # Check whether --enable-dnd or --disable-dnd was given.
3849if test "${enable_dnd+set}" = set; then
3850 enableval="$enable_dnd"
3851
3852 if test "$enableval" = yes; then
3853 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3854 else
3855 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3856 fi
3857
3858else
3859
3860 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3861 if test "x$LINE" != x ; then
3862 eval "DEFAULT_$LINE"
3863 else
3864 no_cache=1
3865 fi
3866
3867 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3868
3869fi
3870
3871
3872 eval "$ac_cv_use_dnd"
3873 if test "$no_cache" != 1; then
3874 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3875 fi
3876
3877 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3878 echo "$ac_t""yes" 1>&6
3879 else
3880 echo "$ac_t""no" 1>&6
3881 fi
3882
3883
3884
3885 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
c733b222 3886echo "configure:3887: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3887 no_cache=0
3888 # Check whether --enable-wxtree or --disable-wxtree was given.
3889if test "${enable_wxtree+set}" = set; then
3890 enableval="$enable_wxtree"
3891
3892 if test "$enableval" = yes; then
3893 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3894 else
3895 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3896 fi
3897
3898else
3899
3900 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3901 if test "x$LINE" != x ; then
3902 eval "DEFAULT_$LINE"
3903 else
3904 no_cache=1
3905 fi
3906
3907 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3908
3909fi
3910
3911
3912 eval "$ac_cv_use_wxtree"
3913 if test "$no_cache" != 1; then
3914 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3915 fi
3916
3917 if test "$wxUSE_WXTREE" = yes; then
3918 echo "$ac_t""yes" 1>&6
3919 else
3920 echo "$ac_t""no" 1>&6
3921 fi
3922
3923
3924
3925
3926 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
c733b222 3927echo "configure:3928: checking "for --enable-controls"" >&5
10f2d63a
VZ
3928 no_cache=0
3929 # Check whether --enable-controls or --disable-controls was given.
3930if test "${enable_controls+set}" = set; then
3931 enableval="$enable_controls"
3932
3933 if test "$enableval" = yes; then
3934 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3935 else
3936 ac_cv_use_controls='wxUSE_CONTROLS=no'
3937 fi
3938
3939else
3940
3941 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3942 if test "x$LINE" != x ; then
3943 eval "DEFAULT_$LINE"
3944 else
3945 no_cache=1
3946 fi
3947
3948 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3949
3950fi
3951
3952
3953 eval "$ac_cv_use_controls"
3954 if test "$no_cache" != 1; then
3955 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3956 fi
3957
3958 if test "$wxUSE_CONTROLS" = yes; then
3959 echo "$ac_t""yes" 1>&6
3960 else
3961 echo "$ac_t""no" 1>&6
3962 fi
3963
3964
3965if test "$wxUSE_CONTROLS" = "yes"; then
3966 DEFAULT_wxUSE_ACCEL=yes
3967 DEFAULT_wxUSE_CARET=yes
3968 DEFAULT_wxUSE_COMBOBOX=yes
3969 DEFAULT_wxUSE_BMPBUTTON=yes
3970 DEFAULT_wxUSE_CHECKBOX=yes
3971 DEFAULT_wxUSE_CHECKLISTBOX=yes
3972 DEFAULT_wxUSE_CHOICE=yes
3973 DEFAULT_wxUSE_GAUGE=yes
3974 DEFAULT_wxUSE_GRID=yes
cc977e5f 3975 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
3976 DEFAULT_wxUSE_IMAGLIST=yes
3977 DEFAULT_wxUSE_LISTBOX=yes
3978 DEFAULT_wxUSE_LISTCTRL=yes
3979 DEFAULT_wxUSE_NOTEBOOK=yes
3980 DEFAULT_wxUSE_RADIOBOX=yes
3981 DEFAULT_wxUSE_RADIOBTN=yes
3982 DEFAULT_wxUSE_SASH=yes
3983 DEFAULT_wxUSE_SCROLLBAR=yes
3984 DEFAULT_wxUSE_SLIDER=yes
3985 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 3986 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
3987 DEFAULT_wxUSE_SPLITTER=yes
3988 DEFAULT_wxUSE_STATBMP=yes
3989 DEFAULT_wxUSE_STATBOX=yes
3990 DEFAULT_wxUSE_STATLINE=yes
3991 DEFAULT_wxUSE_STATUSBAR=yes
3992 DEFAULT_wxUSE_TAB_DIALOG=yes
3993 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
3994 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3995 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
3996 DEFAULT_wxUSE_TOOLTIPS=yes
3997 DEFAULT_wxUSE_TREECTRL=yes
3998elif test "$wxUSE_CONTROLS" = "no"; then
3999 DEFAULT_wxUSE_ACCEL=no
4000 DEFAULT_wxUSE_CARET=no
4001 DEFAULT_wxUSE_COMBOBOX=no
4002 DEFAULT_wxUSE_BMPBUTTON=no
4003 DEFAULT_wxUSE_CHECKBOX=no
4004 DEFAULT_wxUSE_CHECKLISTBOX=no
4005 DEFAULT_wxUSE_CHOICE=no
4006 DEFAULT_wxUSE_GAUGE=no
4007 DEFAULT_wxUSE_GRID=no
4008 DEFAULT_wxUSE_NEW_GRID=no
4009 DEFAULT_wxUSE_IMAGLIST=no
4010 DEFAULT_wxUSE_LISTBOX=no
4011 DEFAULT_wxUSE_LISTCTRL=no
4012 DEFAULT_wxUSE_NOTEBOOK=no
4013 DEFAULT_wxUSE_RADIOBOX=no
4014 DEFAULT_wxUSE_RADIOBTN=no
4015 DEFAULT_wxUSE_SASH=no
4016 DEFAULT_wxUSE_SCROLLBAR=no
4017 DEFAULT_wxUSE_SLIDER=no
4018 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4019 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4020 DEFAULT_wxUSE_SPLITTER=no
4021 DEFAULT_wxUSE_STATBMP=no
4022 DEFAULT_wxUSE_STATBOX=no
4023 DEFAULT_wxUSE_STATLINE=no
4024 DEFAULT_wxUSE_STATUSBAR=no
4025 DEFAULT_wxUSE_TAB_DIALOG=no
4026 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4027 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4028 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4029 DEFAULT_wxUSE_TOOLTIPS=no
4030 DEFAULT_wxUSE_TREECTRL=no
4031fi
4032
4033
4034 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
c733b222 4035echo "configure:4036: checking "for --enable-accel"" >&5
10f2d63a
VZ
4036 no_cache=0
4037 # Check whether --enable-accel or --disable-accel was given.
4038if test "${enable_accel+set}" = set; then
4039 enableval="$enable_accel"
4040
4041 if test "$enableval" = yes; then
4042 ac_cv_use_accel='wxUSE_ACCEL=yes'
4043 else
4044 ac_cv_use_accel='wxUSE_ACCEL=no'
4045 fi
4046
4047else
4048
4049 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4050 if test "x$LINE" != x ; then
4051 eval "DEFAULT_$LINE"
4052 else
4053 no_cache=1
4054 fi
4055
4056 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4057
4058fi
4059
4060
4061 eval "$ac_cv_use_accel"
4062 if test "$no_cache" != 1; then
4063 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4064 fi
4065
4066 if test "$wxUSE_ACCEL" = yes; then
4067 echo "$ac_t""yes" 1>&6
4068 else
4069 echo "$ac_t""no" 1>&6
4070 fi
4071
4072
4073 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
c733b222 4074echo "configure:4075: checking "for --enable-caret"" >&5
10f2d63a
VZ
4075 no_cache=0
4076 # Check whether --enable-caret or --disable-caret was given.
4077if test "${enable_caret+set}" = set; then
4078 enableval="$enable_caret"
4079
4080 if test "$enableval" = yes; then
4081 ac_cv_use_caret='wxUSE_CARET=yes'
4082 else
4083 ac_cv_use_caret='wxUSE_CARET=no'
4084 fi
4085
4086else
4087
4088 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4089 if test "x$LINE" != x ; then
4090 eval "DEFAULT_$LINE"
4091 else
4092 no_cache=1
4093 fi
4094
4095 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4096
4097fi
4098
4099
4100 eval "$ac_cv_use_caret"
4101 if test "$no_cache" != 1; then
4102 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4103 fi
4104
4105 if test "$wxUSE_CARET" = yes; then
4106 echo "$ac_t""yes" 1>&6
4107 else
4108 echo "$ac_t""no" 1>&6
4109 fi
4110
4111
4112 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
c733b222 4113echo "configure:4114: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4114 no_cache=0
4115 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4116if test "${enable_bmpbutton+set}" = set; then
4117 enableval="$enable_bmpbutton"
4118
4119 if test "$enableval" = yes; then
4120 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4121 else
4122 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4123 fi
4124
4125else
4126
4127 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4128 if test "x$LINE" != x ; then
4129 eval "DEFAULT_$LINE"
4130 else
4131 no_cache=1
4132 fi
4133
4134 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4135
4136fi
4137
4138
4139 eval "$ac_cv_use_bmpbutton"
4140 if test "$no_cache" != 1; then
4141 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4142 fi
4143
4144 if test "$wxUSE_BMPBUTTON" = yes; then
4145 echo "$ac_t""yes" 1>&6
4146 else
4147 echo "$ac_t""no" 1>&6
4148 fi
4149
4150
4151 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
c733b222 4152echo "configure:4153: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4153 no_cache=0
4154 # Check whether --enable-checkbox or --disable-checkbox was given.
4155if test "${enable_checkbox+set}" = set; then
4156 enableval="$enable_checkbox"
4157
4158 if test "$enableval" = yes; then
4159 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4160 else
4161 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4162 fi
4163
4164else
4165
4166 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4167 if test "x$LINE" != x ; then
4168 eval "DEFAULT_$LINE"
4169 else
4170 no_cache=1
4171 fi
4172
4173 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4174
4175fi
4176
4177
4178 eval "$ac_cv_use_checkbox"
4179 if test "$no_cache" != 1; then
4180 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4181 fi
4182
4183 if test "$wxUSE_CHECKBOX" = yes; then
4184 echo "$ac_t""yes" 1>&6
4185 else
4186 echo "$ac_t""no" 1>&6
4187 fi
4188
4189
4190 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
c733b222 4191echo "configure:4192: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4192 no_cache=0
4193 # Check whether --enable-checklst or --disable-checklst was given.
4194if test "${enable_checklst+set}" = set; then
4195 enableval="$enable_checklst"
4196
4197 if test "$enableval" = yes; then
4198 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4199 else
4200 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4201 fi
4202
4203else
4204
4205 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4206 if test "x$LINE" != x ; then
4207 eval "DEFAULT_$LINE"
4208 else
4209 no_cache=1
4210 fi
4211
4212 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4213
4214fi
4215
4216
4217 eval "$ac_cv_use_checklst"
4218 if test "$no_cache" != 1; then
4219 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4220 fi
4221
4222 if test "$wxUSE_CHECKLST" = yes; then
4223 echo "$ac_t""yes" 1>&6
4224 else
4225 echo "$ac_t""no" 1>&6
4226 fi
4227
4228
4229 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
c733b222 4230echo "configure:4231: checking "for --enable-choice"" >&5
10f2d63a
VZ
4231 no_cache=0
4232 # Check whether --enable-choice or --disable-choice was given.
4233if test "${enable_choice+set}" = set; then
4234 enableval="$enable_choice"
4235
4236 if test "$enableval" = yes; then
4237 ac_cv_use_choice='wxUSE_CHOICE=yes'
4238 else
4239 ac_cv_use_choice='wxUSE_CHOICE=no'
4240 fi
4241
4242else
4243
4244 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4245 if test "x$LINE" != x ; then
4246 eval "DEFAULT_$LINE"
4247 else
4248 no_cache=1
4249 fi
4250
4251 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4252
4253fi
4254
4255
4256 eval "$ac_cv_use_choice"
4257 if test "$no_cache" != 1; then
4258 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4259 fi
4260
4261 if test "$wxUSE_CHOICE" = yes; then
4262 echo "$ac_t""yes" 1>&6
4263 else
4264 echo "$ac_t""no" 1>&6
4265 fi
4266
4267
4268 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
c733b222 4269echo "configure:4270: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4270 no_cache=0
4271 # Check whether --enable-combobox or --disable-combobox was given.
4272if test "${enable_combobox+set}" = set; then
4273 enableval="$enable_combobox"
4274
4275 if test "$enableval" = yes; then
4276 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4277 else
4278 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4279 fi
4280
4281else
4282
4283 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4284 if test "x$LINE" != x ; then
4285 eval "DEFAULT_$LINE"
4286 else
4287 no_cache=1
4288 fi
4289
4290 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4291
4292fi
4293
4294
4295 eval "$ac_cv_use_combobox"
4296 if test "$no_cache" != 1; then
4297 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4298 fi
4299
4300 if test "$wxUSE_COMBOBOX" = yes; then
4301 echo "$ac_t""yes" 1>&6
4302 else
4303 echo "$ac_t""no" 1>&6
4304 fi
4305
4306
4307 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
c733b222 4308echo "configure:4309: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4309 no_cache=0
4310 # Check whether --enable-gauge or --disable-gauge was given.
4311if test "${enable_gauge+set}" = set; then
4312 enableval="$enable_gauge"
4313
4314 if test "$enableval" = yes; then
4315 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4316 else
4317 ac_cv_use_gauge='wxUSE_GAUGE=no'
4318 fi
4319
4320else
4321
4322 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4323 if test "x$LINE" != x ; then
4324 eval "DEFAULT_$LINE"
4325 else
4326 no_cache=1
4327 fi
4328
4329 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4330
4331fi
4332
4333
4334 eval "$ac_cv_use_gauge"
4335 if test "$no_cache" != 1; then
4336 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4337 fi
4338
4339 if test "$wxUSE_GAUGE" = yes; then
4340 echo "$ac_t""yes" 1>&6
4341 else
4342 echo "$ac_t""no" 1>&6
4343 fi
4344
4345
4346 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
c733b222 4347echo "configure:4348: checking "for --enable-grid"" >&5
10f2d63a
VZ
4348 no_cache=0
4349 # Check whether --enable-grid or --disable-grid was given.
4350if test "${enable_grid+set}" = set; then
4351 enableval="$enable_grid"
4352
4353 if test "$enableval" = yes; then
4354 ac_cv_use_grid='wxUSE_GRID=yes'
4355 else
4356 ac_cv_use_grid='wxUSE_GRID=no'
4357 fi
4358
4359else
4360
4361 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4362 if test "x$LINE" != x ; then
4363 eval "DEFAULT_$LINE"
4364 else
4365 no_cache=1
4366 fi
4367
4368 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4369
4370fi
4371
4372
4373 eval "$ac_cv_use_grid"
4374 if test "$no_cache" != 1; then
4375 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4376 fi
4377
4378 if test "$wxUSE_GRID" = yes; then
4379 echo "$ac_t""yes" 1>&6
4380 else
4381 echo "$ac_t""no" 1>&6
4382 fi
4383
4384
4385 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
c733b222 4386echo "configure:4387: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4387 no_cache=0
4388 # Check whether --enable-newgrid or --disable-newgrid was given.
4389if test "${enable_newgrid+set}" = set; then
4390 enableval="$enable_newgrid"
4391
4392 if test "$enableval" = yes; then
4393 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4394 else
4395 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4396 fi
4397
4398else
4399
4400 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4401 if test "x$LINE" != x ; then
4402 eval "DEFAULT_$LINE"
4403 else
4404 no_cache=1
4405 fi
4406
4407 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4408
4409fi
4410
4411
4412 eval "$ac_cv_use_newgrid"
4413 if test "$no_cache" != 1; then
4414 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4415 fi
4416
4417 if test "$wxUSE_NEW_GRID" = yes; then
4418 echo "$ac_t""yes" 1>&6
4419 else
4420 echo "$ac_t""no" 1>&6
4421 fi
4422
4423
4424 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
c733b222 4425echo "configure:4426: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4426 no_cache=0
4427 # Check whether --enable-imaglist or --disable-imaglist was given.
4428if test "${enable_imaglist+set}" = set; then
4429 enableval="$enable_imaglist"
4430
4431 if test "$enableval" = yes; then
4432 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4433 else
4434 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4435 fi
4436
4437else
4438
4439 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4440 if test "x$LINE" != x ; then
4441 eval "DEFAULT_$LINE"
4442 else
4443 no_cache=1
4444 fi
4445
4446 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4447
4448fi
4449
4450
4451 eval "$ac_cv_use_imaglist"
4452 if test "$no_cache" != 1; then
4453 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4454 fi
4455
4456 if test "$wxUSE_IMAGLIST" = yes; then
4457 echo "$ac_t""yes" 1>&6
4458 else
4459 echo "$ac_t""no" 1>&6
4460 fi
4461
4462
4463 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
c733b222 4464echo "configure:4465: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4465 no_cache=0
4466 # Check whether --enable-listbox or --disable-listbox was given.
4467if test "${enable_listbox+set}" = set; then
4468 enableval="$enable_listbox"
4469
4470 if test "$enableval" = yes; then
4471 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4472 else
4473 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4474 fi
4475
4476else
4477
4478 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4479 if test "x$LINE" != x ; then
4480 eval "DEFAULT_$LINE"
4481 else
4482 no_cache=1
4483 fi
4484
4485 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4486
4487fi
4488
4489
4490 eval "$ac_cv_use_listbox"
4491 if test "$no_cache" != 1; then
4492 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4493 fi
4494
4495 if test "$wxUSE_LISTBOX" = yes; then
4496 echo "$ac_t""yes" 1>&6
4497 else
4498 echo "$ac_t""no" 1>&6
4499 fi
4500
4501
4502 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
c733b222 4503echo "configure:4504: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4504 no_cache=0
4505 # Check whether --enable-listctrl or --disable-listctrl was given.
4506if test "${enable_listctrl+set}" = set; then
4507 enableval="$enable_listctrl"
4508
4509 if test "$enableval" = yes; then
4510 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4511 else
4512 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4513 fi
4514
4515else
4516
4517 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4518 if test "x$LINE" != x ; then
4519 eval "DEFAULT_$LINE"
4520 else
4521 no_cache=1
4522 fi
4523
4524 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4525
4526fi
4527
4528
4529 eval "$ac_cv_use_listctrl"
4530 if test "$no_cache" != 1; then
4531 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4532 fi
4533
4534 if test "$wxUSE_LISTCTRL" = yes; then
4535 echo "$ac_t""yes" 1>&6
4536 else
4537 echo "$ac_t""no" 1>&6
4538 fi
4539
4540
4541 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
c733b222 4542echo "configure:4543: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4543 no_cache=0
4544 # Check whether --enable-notebook or --disable-notebook was given.
4545if test "${enable_notebook+set}" = set; then
4546 enableval="$enable_notebook"
4547
4548 if test "$enableval" = yes; then
4549 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4550 else
4551 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4552 fi
4553
4554else
4555
4556 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4557 if test "x$LINE" != x ; then
4558 eval "DEFAULT_$LINE"
4559 else
4560 no_cache=1
4561 fi
4562
4563 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4564
4565fi
4566
4567
4568 eval "$ac_cv_use_notebook"
4569 if test "$no_cache" != 1; then
4570 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4571 fi
4572
4573 if test "$wxUSE_NOTEBOOK" = yes; then
4574 echo "$ac_t""yes" 1>&6
4575 else
4576 echo "$ac_t""no" 1>&6
4577 fi
4578
4579
4580 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
c733b222 4581echo "configure:4582: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4582 no_cache=0
4583 # Check whether --enable-radiobox or --disable-radiobox was given.
4584if test "${enable_radiobox+set}" = set; then
4585 enableval="$enable_radiobox"
4586
4587 if test "$enableval" = yes; then
4588 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4589 else
4590 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4591 fi
4592
4593else
4594
4595 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4596 if test "x$LINE" != x ; then
4597 eval "DEFAULT_$LINE"
4598 else
4599 no_cache=1
4600 fi
4601
4602 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4603
4604fi
4605
4606
4607 eval "$ac_cv_use_radiobox"
4608 if test "$no_cache" != 1; then
4609 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4610 fi
4611
4612 if test "$wxUSE_RADIOBOX" = yes; then
4613 echo "$ac_t""yes" 1>&6
4614 else
4615 echo "$ac_t""no" 1>&6
4616 fi
4617
4618
4619 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
c733b222 4620echo "configure:4621: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4621 no_cache=0
4622 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4623if test "${enable_radiobtn+set}" = set; then
4624 enableval="$enable_radiobtn"
4625
4626 if test "$enableval" = yes; then
4627 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4628 else
4629 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4630 fi
4631
4632else
4633
4634 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4635 if test "x$LINE" != x ; then
4636 eval "DEFAULT_$LINE"
4637 else
4638 no_cache=1
4639 fi
4640
4641 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4642
4643fi
4644
4645
4646 eval "$ac_cv_use_radiobtn"
4647 if test "$no_cache" != 1; then
4648 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4649 fi
4650
4651 if test "$wxUSE_RADIOBTN" = yes; then
4652 echo "$ac_t""yes" 1>&6
4653 else
4654 echo "$ac_t""no" 1>&6
4655 fi
4656
4657
4658 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
c733b222 4659echo "configure:4660: checking "for --enable-sash"" >&5
10f2d63a
VZ
4660 no_cache=0
4661 # Check whether --enable-sash or --disable-sash was given.
4662if test "${enable_sash+set}" = set; then
4663 enableval="$enable_sash"
4664
4665 if test "$enableval" = yes; then
4666 ac_cv_use_sash='wxUSE_SASH=yes'
4667 else
4668 ac_cv_use_sash='wxUSE_SASH=no'
4669 fi
4670
4671else
4672
4673 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4674 if test "x$LINE" != x ; then
4675 eval "DEFAULT_$LINE"
4676 else
4677 no_cache=1
4678 fi
4679
4680 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4681
4682fi
4683
4684
4685 eval "$ac_cv_use_sash"
4686 if test "$no_cache" != 1; then
4687 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4688 fi
4689
4690 if test "$wxUSE_SASH" = yes; then
4691 echo "$ac_t""yes" 1>&6
4692 else
4693 echo "$ac_t""no" 1>&6
4694 fi
4695
4696
4697 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
c733b222 4698echo "configure:4699: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4699 no_cache=0
4700 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4701if test "${enable_scrollbar+set}" = set; then
4702 enableval="$enable_scrollbar"
4703
4704 if test "$enableval" = yes; then
4705 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4706 else
4707 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4708 fi
4709
4710else
4711
4712 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4713 if test "x$LINE" != x ; then
4714 eval "DEFAULT_$LINE"
4715 else
4716 no_cache=1
4717 fi
4718
4719 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4720
4721fi
4722
4723
4724 eval "$ac_cv_use_scrollbar"
4725 if test "$no_cache" != 1; then
4726 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4727 fi
4728
4729 if test "$wxUSE_SCROLLBAR" = yes; then
4730 echo "$ac_t""yes" 1>&6
4731 else
4732 echo "$ac_t""no" 1>&6
4733 fi
4734
4735
4736 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
c733b222 4737echo "configure:4738: checking "for --enable-slider"" >&5
10f2d63a
VZ
4738 no_cache=0
4739 # Check whether --enable-slider or --disable-slider was given.
4740if test "${enable_slider+set}" = set; then
4741 enableval="$enable_slider"
4742
4743 if test "$enableval" = yes; then
4744 ac_cv_use_slider='wxUSE_SLIDER=yes'
4745 else
4746 ac_cv_use_slider='wxUSE_SLIDER=no'
4747 fi
4748
4749else
4750
4751 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4752 if test "x$LINE" != x ; then
4753 eval "DEFAULT_$LINE"
4754 else
4755 no_cache=1
4756 fi
4757
4758 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4759
4760fi
4761
4762
4763 eval "$ac_cv_use_slider"
4764 if test "$no_cache" != 1; then
4765 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4766 fi
4767
4768 if test "$wxUSE_SLIDER" = yes; then
4769 echo "$ac_t""yes" 1>&6
4770 else
4771 echo "$ac_t""no" 1>&6
4772 fi
4773
4774
4775 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
c733b222 4776echo "configure:4777: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4777 no_cache=0
4778 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4779if test "${enable_spinbtn+set}" = set; then
4780 enableval="$enable_spinbtn"
4781
4782 if test "$enableval" = yes; then
4783 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4784 else
4785 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4786 fi
4787
4788else
4789
4790 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4791 if test "x$LINE" != x ; then
4792 eval "DEFAULT_$LINE"
4793 else
4794 no_cache=1
4795 fi
4796
4797 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4798
4799fi
4800
4801
4802 eval "$ac_cv_use_spinbtn"
4803 if test "$no_cache" != 1; then
4804 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4805 fi
4806
4807 if test "$wxUSE_SPINBTN" = yes; then
4808 echo "$ac_t""yes" 1>&6
4809 else
4810 echo "$ac_t""no" 1>&6
4811 fi
4812
4813
56cfaa52 4814 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
c733b222 4815echo "configure:4816: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4816 no_cache=0
4817 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4818if test "${enable_spinctrl+set}" = set; then
4819 enableval="$enable_spinctrl"
4820
4821 if test "$enableval" = yes; then
4822 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4823 else
4824 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4825 fi
4826
4827else
4828
4829 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4830 if test "x$LINE" != x ; then
4831 eval "DEFAULT_$LINE"
4832 else
4833 no_cache=1
4834 fi
4835
4836 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4837
4838fi
4839
4840
4841 eval "$ac_cv_use_spinctrl"
4842 if test "$no_cache" != 1; then
4843 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4844 fi
4845
4846 if test "$wxUSE_SPINCTRL" = yes; then
4847 echo "$ac_t""yes" 1>&6
4848 else
4849 echo "$ac_t""no" 1>&6
4850 fi
4851
4852
10f2d63a 4853 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
c733b222 4854echo "configure:4855: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4855 no_cache=0
4856 # Check whether --enable-splitter or --disable-splitter was given.
4857if test "${enable_splitter+set}" = set; then
4858 enableval="$enable_splitter"
4859
4860 if test "$enableval" = yes; then
4861 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4862 else
4863 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4864 fi
4865
4866else
4867
4868 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4869 if test "x$LINE" != x ; then
4870 eval "DEFAULT_$LINE"
4871 else
4872 no_cache=1
4873 fi
4874
4875 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4876
4877fi
4878
4879
4880 eval "$ac_cv_use_splitter"
4881 if test "$no_cache" != 1; then
4882 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4883 fi
4884
4885 if test "$wxUSE_SPLITTER" = yes; then
4886 echo "$ac_t""yes" 1>&6
4887 else
4888 echo "$ac_t""no" 1>&6
4889 fi
4890
4891
4892 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
c733b222 4893echo "configure:4894: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4894 no_cache=0
4895 # Check whether --enable-statbmp or --disable-statbmp was given.
4896if test "${enable_statbmp+set}" = set; then
4897 enableval="$enable_statbmp"
4898
4899 if test "$enableval" = yes; then
4900 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4901 else
4902 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4903 fi
4904
4905else
4906
4907 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4908 if test "x$LINE" != x ; then
4909 eval "DEFAULT_$LINE"
4910 else
4911 no_cache=1
4912 fi
4913
4914 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4915
4916fi
4917
4918
4919 eval "$ac_cv_use_statbmp"
4920 if test "$no_cache" != 1; then
4921 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4922 fi
4923
4924 if test "$wxUSE_STATBMP" = yes; then
4925 echo "$ac_t""yes" 1>&6
4926 else
4927 echo "$ac_t""no" 1>&6
4928 fi
4929
4930
4931 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
c733b222 4932echo "configure:4933: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4933 no_cache=0
4934 # Check whether --enable-statbox or --disable-statbox was given.
4935if test "${enable_statbox+set}" = set; then
4936 enableval="$enable_statbox"
4937
4938 if test "$enableval" = yes; then
4939 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4940 else
4941 ac_cv_use_statbox='wxUSE_STATBOX=no'
4942 fi
4943
4944else
4945
4946 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4947 if test "x$LINE" != x ; then
4948 eval "DEFAULT_$LINE"
4949 else
4950 no_cache=1
4951 fi
4952
4953 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4954
4955fi
4956
4957
4958 eval "$ac_cv_use_statbox"
4959 if test "$no_cache" != 1; then
4960 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4961 fi
4962
4963 if test "$wxUSE_STATBOX" = yes; then
4964 echo "$ac_t""yes" 1>&6
4965 else
4966 echo "$ac_t""no" 1>&6
4967 fi
4968
4969
4970 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
c733b222 4971echo "configure:4972: checking "for --enable-statline"" >&5
10f2d63a
VZ
4972 no_cache=0
4973 # Check whether --enable-statline or --disable-statline was given.
4974if test "${enable_statline+set}" = set; then
4975 enableval="$enable_statline"
4976
4977 if test "$enableval" = yes; then
4978 ac_cv_use_statline='wxUSE_STATLINE=yes'
4979 else
4980 ac_cv_use_statline='wxUSE_STATLINE=no'
4981 fi
4982
4983else
4984
4985 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4986 if test "x$LINE" != x ; then
4987 eval "DEFAULT_$LINE"
4988 else
4989 no_cache=1
4990 fi
4991
4992 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4993
4994fi
4995
4996
4997 eval "$ac_cv_use_statline"
4998 if test "$no_cache" != 1; then
4999 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5000 fi
5001
5002 if test "$wxUSE_STATLINE" = yes; then
5003 echo "$ac_t""yes" 1>&6
5004 else
5005 echo "$ac_t""no" 1>&6
5006 fi
5007
5008
5009 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
c733b222 5010echo "configure:5011: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5011 no_cache=0
5012 # Check whether --enable-statusbar or --disable-statusbar was given.
5013if test "${enable_statusbar+set}" = set; then
5014 enableval="$enable_statusbar"
5015
5016 if test "$enableval" = yes; then
5017 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5018 else
5019 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5020 fi
5021
5022else
5023
5024 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5025 if test "x$LINE" != x ; then
5026 eval "DEFAULT_$LINE"
5027 else
5028 no_cache=1
5029 fi
5030
5031 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5032
5033fi
5034
5035
5036 eval "$ac_cv_use_statusbar"
5037 if test "$no_cache" != 1; then
5038 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5039 fi
5040
5041 if test "$wxUSE_STATUSBAR" = yes; then
5042 echo "$ac_t""yes" 1>&6
5043 else
5044 echo "$ac_t""no" 1>&6
5045 fi
5046
5047
5048 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
c733b222 5049echo "configure:5050: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5050 no_cache=0
5051 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5052if test "${enable_tabdialog+set}" = set; then
5053 enableval="$enable_tabdialog"
5054
5055 if test "$enableval" = yes; then
5056 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5057 else
5058 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5059 fi
5060
5061else
5062
5063 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5064 if test "x$LINE" != x ; then
5065 eval "DEFAULT_$LINE"
5066 else
5067 no_cache=1
5068 fi
5069
5070 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5071
5072fi
5073
5074
5075 eval "$ac_cv_use_tabdialog"
5076 if test "$no_cache" != 1; then
5077 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5078 fi
5079
5080 if test "$wxUSE_TABDIALOG" = yes; then
5081 echo "$ac_t""yes" 1>&6
5082 else
5083 echo "$ac_t""no" 1>&6
5084 fi
5085
5086
5087 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
c733b222 5088echo "configure:5089: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5089 no_cache=0
5090 # Check whether --enable-toolbar or --disable-toolbar was given.
5091if test "${enable_toolbar+set}" = set; then
5092 enableval="$enable_toolbar"
5093
5094 if test "$enableval" = yes; then
5095 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5096 else
5097 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5098 fi
5099
5100else
5101
5102 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5103 if test "x$LINE" != x ; then
5104 eval "DEFAULT_$LINE"
5105 else
5106 no_cache=1
5107 fi
5108
5109 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5110
5111fi
5112
5113
5114 eval "$ac_cv_use_toolbar"
5115 if test "$no_cache" != 1; then
5116 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5117 fi
5118
5119 if test "$wxUSE_TOOLBAR" = yes; then
5120 echo "$ac_t""yes" 1>&6
5121 else
5122 echo "$ac_t""no" 1>&6
5123 fi
5124
5125
360d6699 5126 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
c733b222 5127echo "configure:5128: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5128 no_cache=0
5129 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5130if test "${enable_tbarnative+set}" = set; then
5131 enableval="$enable_tbarnative"
5132
5133 if test "$enableval" = yes; then
5134 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5135 else
5136 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5137 fi
5138
5139else
5140
5141 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5142 if test "x$LINE" != x ; then
5143 eval "DEFAULT_$LINE"
5144 else
5145 no_cache=1
5146 fi
5147
5148 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5149
5150fi
5151
5152
5153 eval "$ac_cv_use_tbarnative"
5154 if test "$no_cache" != 1; then
5155 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5156 fi
5157
5158 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5159 echo "$ac_t""yes" 1>&6
5160 else
5161 echo "$ac_t""no" 1>&6
5162 fi
5163
5164
5165 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
c733b222 5166echo "configure:5167: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5167 no_cache=0
5168 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5169if test "${enable_tbarsmpl+set}" = set; then
5170 enableval="$enable_tbarsmpl"
5171
5172 if test "$enableval" = yes; then
5173 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5174 else
5175 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5176 fi
5177
5178else
5179
5180 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5181 if test "x$LINE" != x ; then
5182 eval "DEFAULT_$LINE"
5183 else
5184 no_cache=1
5185 fi
5186
5187 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5188
5189fi
5190
5191
5192 eval "$ac_cv_use_tbarsmpl"
5193 if test "$no_cache" != 1; then
5194 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5195 fi
5196
5197 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5198 echo "$ac_t""yes" 1>&6
5199 else
5200 echo "$ac_t""no" 1>&6
5201 fi
5202
5203
10f2d63a 5204 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
c733b222 5205echo "configure:5206: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5206 no_cache=0
5207 # Check whether --enable-treectrl or --disable-treectrl was given.
5208if test "${enable_treectrl+set}" = set; then
5209 enableval="$enable_treectrl"
5210
5211 if test "$enableval" = yes; then
5212 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5213 else
5214 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5215 fi
5216
5217else
5218
5219 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5220 if test "x$LINE" != x ; then
5221 eval "DEFAULT_$LINE"
5222 else
5223 no_cache=1
5224 fi
5225
5226 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5227
5228fi
5229
5230
5231 eval "$ac_cv_use_treectrl"
5232 if test "$no_cache" != 1; then
5233 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5234 fi
5235
5236 if test "$wxUSE_TREECTRL" = yes; then
5237 echo "$ac_t""yes" 1>&6
5238 else
5239 echo "$ac_t""no" 1>&6
5240 fi
5241
5242
5243
5244
5245 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
c733b222 5246echo "configure:5247: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5247 no_cache=0
5248 # Check whether --enable-commondlg or --disable-commondlg was given.
5249if test "${enable_commondlg+set}" = set; then
5250 enableval="$enable_commondlg"
5251
5252 if test "$enableval" = yes; then
5253 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5254 else
5255 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5256 fi
5257
5258else
5259
5260 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5261 if test "x$LINE" != x ; then
5262 eval "DEFAULT_$LINE"
5263 else
5264 no_cache=1
5265 fi
5266
5267 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5268
5269fi
5270
5271
5272 eval "$ac_cv_use_commondlg"
5273 if test "$no_cache" != 1; then
5274 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5275 fi
5276
5277 if test "$wxUSE_COMMONDLGS" = yes; then
5278 echo "$ac_t""yes" 1>&6
5279 else
5280 echo "$ac_t""no" 1>&6
5281 fi
5282
5283
5284 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
c733b222 5285echo "configure:5286: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5286 no_cache=0
5287 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5288if test "${enable_dirdlg+set}" = set; then
5289 enableval="$enable_dirdlg"
5290
5291 if test "$enableval" = yes; then
5292 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5293 else
5294 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5295 fi
5296
5297else
5298
5299 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5300 if test "x$LINE" != x ; then
5301 eval "DEFAULT_$LINE"
5302 else
5303 no_cache=1
5304 fi
5305
5306 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5307
5308fi
5309
5310
5311 eval "$ac_cv_use_dirdlg"
5312 if test "$no_cache" != 1; then
5313 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5314 fi
5315
5316 if test "$wxUSE_DIRDLG" = yes; then
5317 echo "$ac_t""yes" 1>&6
5318 else
5319 echo "$ac_t""no" 1>&6
5320 fi
5321
5322
5323 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
c733b222 5324echo "configure:5325: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5325 no_cache=0
5326 # Check whether --enable-textdlg or --disable-textdlg was given.
5327if test "${enable_textdlg+set}" = set; then
5328 enableval="$enable_textdlg"
5329
5330 if test "$enableval" = yes; then
5331 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5332 else
5333 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5334 fi
5335
5336else
5337
5338 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5339 if test "x$LINE" != x ; then
5340 eval "DEFAULT_$LINE"
5341 else
5342 no_cache=1
5343 fi
5344
5345 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5346
5347fi
5348
5349
5350 eval "$ac_cv_use_textdlg"
5351 if test "$no_cache" != 1; then
5352 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5353 fi
5354
5355 if test "$wxUSE_TEXTDLG" = yes; then
5356 echo "$ac_t""yes" 1>&6
5357 else
5358 echo "$ac_t""no" 1>&6
5359 fi
5360
5361
5362 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
c733b222 5363echo "configure:5364: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5364 no_cache=0
5365 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5366if test "${enable_tipdlg+set}" = set; then
5367 enableval="$enable_tipdlg"
5368
5369 if test "$enableval" = yes; then
5370 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5371 else
5372 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5373 fi
5374
5375else
5376
5377 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5378 if test "x$LINE" != x ; then
5379 eval "DEFAULT_$LINE"
5380 else
5381 no_cache=1
5382 fi
5383
5384 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5385
5386fi
5387
5388
5389 eval "$ac_cv_use_tipdlg"
5390 if test "$no_cache" != 1; then
5391 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5392 fi
5393
5394 if test "$wxUSE_STARTUP_TIPS" = yes; then
5395 echo "$ac_t""yes" 1>&6
5396 else
5397 echo "$ac_t""no" 1>&6
5398 fi
5399
5400
5401 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
c733b222 5402echo "configure:5403: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5403 no_cache=0
5404 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5405if test "${enable_progressdlg+set}" = set; then
5406 enableval="$enable_progressdlg"
5407
5408 if test "$enableval" = yes; then
5409 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5410 else
5411 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5412 fi
5413
5414else
5415
5416 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5417 if test "x$LINE" != x ; then
5418 eval "DEFAULT_$LINE"
5419 else
5420 no_cache=1
5421 fi
5422
5423 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5424
5425fi
5426
5427
5428 eval "$ac_cv_use_progressdlg"
5429 if test "$no_cache" != 1; then
5430 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5431 fi
5432
5433 if test "$wxUSE_PROGRESSDLG" = yes; then
5434 echo "$ac_t""yes" 1>&6
5435 else
5436 echo "$ac_t""no" 1>&6
5437 fi
5438
5439
5440 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
c733b222 5441echo "configure:5442: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5442 no_cache=0
5443 # Check whether --enable-miniframe or --disable-miniframe was given.
5444if test "${enable_miniframe+set}" = set; then
5445 enableval="$enable_miniframe"
5446
5447 if test "$enableval" = yes; then
5448 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5449 else
5450 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5451 fi
5452
5453else
5454
5455 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5456 if test "x$LINE" != x ; then
5457 eval "DEFAULT_$LINE"
5458 else
5459 no_cache=1
5460 fi
5461
5462 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5463
5464fi
5465
5466
5467 eval "$ac_cv_use_miniframe"
5468 if test "$no_cache" != 1; then
5469 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5470 fi
5471
5472 if test "$wxUSE_MINIFRAME" = yes; then
5473 echo "$ac_t""yes" 1>&6
5474 else
5475 echo "$ac_t""no" 1>&6
5476 fi
5477
5478
5479 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
c733b222 5480echo "configure:5481: checking "for --enable-html"" >&5
10f2d63a
VZ
5481 no_cache=0
5482 # Check whether --enable-html or --disable-html was given.
5483if test "${enable_html+set}" = set; then
5484 enableval="$enable_html"
5485
5486 if test "$enableval" = yes; then
5487 ac_cv_use_html='wxUSE_HTML=yes'
5488 else
5489 ac_cv_use_html='wxUSE_HTML=no'
5490 fi
5491
5492else
5493
5494 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5495 if test "x$LINE" != x ; then
5496 eval "DEFAULT_$LINE"
5497 else
5498 no_cache=1
5499 fi
5500
5501 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5502
5503fi
5504
5505
5506 eval "$ac_cv_use_html"
5507 if test "$no_cache" != 1; then
5508 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5509 fi
5510
5511 if test "$wxUSE_HTML" = yes; then
5512 echo "$ac_t""yes" 1>&6
5513 else
5514 echo "$ac_t""no" 1>&6
5515 fi
5516
5517
5518 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
c733b222 5519echo "configure:5520: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5520 no_cache=0
5521 # Check whether --enable-tooltips or --disable-tooltips was given.
5522if test "${enable_tooltips+set}" = set; then
5523 enableval="$enable_tooltips"
5524
5525 if test "$enableval" = yes; then
5526 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5527 else
5528 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5529 fi
5530
5531else
5532
5533 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5534 if test "x$LINE" != x ; then
5535 eval "DEFAULT_$LINE"
5536 else
5537 no_cache=1
5538 fi
5539
5540 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5541
5542fi
5543
5544
5545 eval "$ac_cv_use_tooltips"
5546 if test "$no_cache" != 1; then
5547 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5548 fi
5549
5550 if test "$wxUSE_TOOLTIPS" = yes; then
5551 echo "$ac_t""yes" 1>&6
5552 else
5553 echo "$ac_t""no" 1>&6
5554 fi
5555
5556
5557 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
c733b222 5558echo "configure:5559: checking "for --enable-splines"" >&5
10f2d63a
VZ
5559 no_cache=0
5560 # Check whether --enable-splines or --disable-splines was given.
5561if test "${enable_splines+set}" = set; then
5562 enableval="$enable_splines"
5563
5564 if test "$enableval" = yes; then
5565 ac_cv_use_splines='wxUSE_SPLINES=yes'
5566 else
5567 ac_cv_use_splines='wxUSE_SPLINES=no'
5568 fi
5569
5570else
5571
5572 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5573 if test "x$LINE" != x ; then
5574 eval "DEFAULT_$LINE"
5575 else
5576 no_cache=1
5577 fi
5578
5579 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5580
5581fi
5582
5583
5584 eval "$ac_cv_use_splines"
5585 if test "$no_cache" != 1; then
5586 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5587 fi
5588
5589 if test "$wxUSE_SPLINES" = yes; then
5590 echo "$ac_t""yes" 1>&6
5591 else
5592 echo "$ac_t""no" 1>&6
5593 fi
5594
5595
5596 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
c733b222 5597echo "configure:5598: checking "for --enable-validators"" >&5
10f2d63a
VZ
5598 no_cache=0
5599 # Check whether --enable-validators or --disable-validators was given.
5600if test "${enable_validators+set}" = set; then
5601 enableval="$enable_validators"
5602
5603 if test "$enableval" = yes; then
5604 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5605 else
5606 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5607 fi
5608
5609else
5610
5611 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5612 if test "x$LINE" != x ; then
5613 eval "DEFAULT_$LINE"
5614 else
5615 no_cache=1
5616 fi
5617
5618 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5619
5620fi
5621
5622
5623 eval "$ac_cv_use_validators"
5624 if test "$no_cache" != 1; then
5625 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5626 fi
5627
5628 if test "$wxUSE_VALIDATORS" = yes; then
5629 echo "$ac_t""yes" 1>&6
5630 else
5631 echo "$ac_t""no" 1>&6
5632 fi
5633
5634
5635 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
c733b222 5636echo "configure:5637: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5637 no_cache=0
5638 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5639if test "${enable_busyinfo+set}" = set; then
5640 enableval="$enable_busyinfo"
5641
5642 if test "$enableval" = yes; then
5643 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5644 else
5645 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5646 fi
5647
5648else
5649
5650 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5651 if test "x$LINE" != x ; then
5652 eval "DEFAULT_$LINE"
5653 else
5654 no_cache=1
5655 fi
5656
5657 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5658
5659fi
5660
5661
5662 eval "$ac_cv_use_busyinfo"
5663 if test "$no_cache" != 1; then
5664 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5665 fi
5666
5667 if test "$wxUSE_BUSYINFO" = yes; then
5668 echo "$ac_t""yes" 1>&6
5669 else
5670 echo "$ac_t""no" 1>&6
5671 fi
5672
5673
9b33fe02 5674 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
c733b222 5675echo "configure:5676: checking "for --enable-plot"" >&5
9b33fe02
VZ
5676 no_cache=0
5677 # Check whether --enable-plot or --disable-plot was given.
5678if test "${enable_plot+set}" = set; then
5679 enableval="$enable_plot"
5680
5681 if test "$enableval" = yes; then
5682 ac_cv_use_plot='wxUSE_PLOT=yes'
5683 else
5684 ac_cv_use_plot='wxUSE_PLOT=no'
5685 fi
5686
5687else
5688
5689 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5690 if test "x$LINE" != x ; then
5691 eval "DEFAULT_$LINE"
5692 else
5693 no_cache=1
5694 fi
5695
5696 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5697
5698fi
5699
5700
5701 eval "$ac_cv_use_plot"
5702 if test "$no_cache" != 1; then
5703 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5704 fi
5705
5706 if test "$wxUSE_PLOT" = yes; then
5707 echo "$ac_t""yes" 1>&6
5708 else
5709 echo "$ac_t""no" 1>&6
5710 fi
5711
5712
10f2d63a
VZ
5713
5714
5715 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
c733b222 5716echo "configure:5717: checking "for --enable-gif"" >&5
10f2d63a
VZ
5717 no_cache=0
5718 # Check whether --enable-gif or --disable-gif was given.
5719if test "${enable_gif+set}" = set; then
5720 enableval="$enable_gif"
5721
5722 if test "$enableval" = yes; then
5723 ac_cv_use_gif='wxUSE_GIF=yes'
5724 else
5725 ac_cv_use_gif='wxUSE_GIF=no'
5726 fi
5727
5728else
5729
5730 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5731 if test "x$LINE" != x ; then
5732 eval "DEFAULT_$LINE"
5733 else
5734 no_cache=1
5735 fi
5736
5737 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5738
5739fi
5740
5741
5742 eval "$ac_cv_use_gif"
5743 if test "$no_cache" != 1; then
5744 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5745 fi
5746
5747 if test "$wxUSE_GIF" = yes; then
5748 echo "$ac_t""yes" 1>&6
5749 else
5750 echo "$ac_t""no" 1>&6
5751 fi
5752
5753
5754 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
c733b222 5755echo "configure:5756: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5756 no_cache=0
5757 # Check whether --enable-pcx or --disable-pcx was given.
5758if test "${enable_pcx+set}" = set; then
5759 enableval="$enable_pcx"
5760
5761 if test "$enableval" = yes; then
5762 ac_cv_use_pcx='wxUSE_PCX=yes'
5763 else
5764 ac_cv_use_pcx='wxUSE_PCX=no'
5765 fi
5766
5767else
5768
5769 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5770 if test "x$LINE" != x ; then
5771 eval "DEFAULT_$LINE"
5772 else
5773 no_cache=1
5774 fi
5775
5776 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5777
5778fi
5779
5780
5781 eval "$ac_cv_use_pcx"
5782 if test "$no_cache" != 1; then
5783 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5784 fi
5785
5786 if test "$wxUSE_PCX" = yes; then
5787 echo "$ac_t""yes" 1>&6
5788 else
5789 echo "$ac_t""no" 1>&6
5790 fi
5791
5792
5793 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
c733b222 5794echo "configure:5795: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5795 no_cache=0
5796 # Check whether --enable-pnm or --disable-pnm was given.
5797if test "${enable_pnm+set}" = set; then
5798 enableval="$enable_pnm"
5799
5800 if test "$enableval" = yes; then
5801 ac_cv_use_pnm='wxUSE_PNM=yes'
5802 else
5803 ac_cv_use_pnm='wxUSE_PNM=no'
5804 fi
5805
5806else
5807
5808 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5809 if test "x$LINE" != x ; then
5810 eval "DEFAULT_$LINE"
5811 else
5812 no_cache=1
5813 fi
5814
5815 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5816
5817fi
5818
5819
5820 eval "$ac_cv_use_pnm"
5821 if test "$no_cache" != 1; then
5822 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5823 fi
5824
5825 if test "$wxUSE_PNM" = yes; then
5826 echo "$ac_t""yes" 1>&6
5827 else
5828 echo "$ac_t""no" 1>&6
5829 fi
5830
5831
b12915c1
VZ
5832fi
5833
10f2d63a
VZ
5834
5835 echo "saving argument cache $wx_arg_cache_file"
5836 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5837
5838
5839
5840echo $ac_n "checking for toolkit""... $ac_c" 1>&6
c733b222 5841echo "configure:5842: checking for toolkit" >&5
10f2d63a
VZ
5842
5843if test "$wxUSE_GUI" = "yes"; then
5844
b12915c1
VZ
5845if test "$USE_BEOS" = 1; then
5846 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5847fi
5848
10f2d63a
VZ
5849if test "$TOOLKIT_GIVEN" = 1; then
5850 for toolkit in `echo $ALL_TOOLKITS`; do
5851 var=wxUSE_$toolkit
5852 eval "value=\$${var}"
5853 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5854 done
5855else
5856 for toolkit in `echo $ALL_TOOLKITS`; do
5857 if test "$has_toolkit_in_cache" != 1; then
5858 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5859 else
5860 var=DEFAULT_wxUSE_$toolkit
5861 fi
5862 eval "wxUSE_$toolkit=\$${var}"
5863 done
5864fi
5865
ec14dd32 5866NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 5867
ec14dd32
VZ
5868case "${host}" in
5869 *-pc-os2_emx )
5870 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5871 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5872 LEX_STEM="lexyy"
5873 ;;
5874 *)
5875 PATH_IFS=':'
5876 LEX_STEM="lex.yy"
5877 ;;
5878esac
10f2d63a
VZ
5879
5880case "$NUM_TOOLKITS" in
5881 1)
5882 ;;
5883 0)
5884 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5885 ;;
5886 *)
5887 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5888esac
5889
5890for toolkit in `echo $ALL_TOOLKITS`; do
5891 var=wxUSE_$toolkit
5892 eval "value=\$${var}"
5893 if test "x$value" != x; then
5894 cache_var=CACHE_$toolkit
5895 eval "cache=\$${cache_var}"
5896 if test "$cache" = 1; then
5897 echo "$var=$value" >> ${wx_arg_cache_file}
5898 fi
5899 if test "$value" = 1; then
5900 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5901 fi
5902 fi
5903done
5904
5905else
cf27ef00 5906 PATH_IFS=':'
10f2d63a
VZ
5907 echo "$ac_t""base only" 1>&6
5908fi
5909
5910
5911cat > confcache <<\EOF
5912# This file is a shell script that caches the results of configure
5913# tests run on this system so they can be shared between configure
5914# scripts and configure runs. It is not useful on other systems.
5915# If it contains results you don't want to keep, you may remove or edit it.
5916#
5917# By default, configure uses ./config.cache as the cache file,
5918# creating it if it does not exist already. You can give configure
5919# the --cache-file=FILE option to use a different cache file; that is
5920# what configure does when it calls configure scripts in
5921# subdirectories, so they share the cache.
5922# Giving --cache-file=/dev/null disables caching, for debugging configure.
5923# config.status only pays attention to the cache file if you give it the
5924# --recheck option to rerun configure.
5925#
5926EOF
5927# The following way of writing the cache mishandles newlines in values,
5928# but we know of no workaround that is simple, portable, and efficient.
5929# So, don't put newlines in cache variables' values.
5930# Ultrix sh set writes to stderr and can't be redirected directly,
5931# and sets the high bit in the cache file unless we assign to the vars.
5932(set) 2>&1 |
5933 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5934 *ac_space=\ *)
5935 # `set' does not quote correctly, so add quotes (double-quote substitution
5936 # turns \\\\ into \\, and sed turns \\ into \).
5937 sed -n \
5938 -e "s/'/'\\\\''/g" \
5939 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5940 ;;
5941 *)
5942 # `set' quotes correctly as required by POSIX, so do not add quotes.
5943 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5944 ;;
5945 esac >> confcache
5946if cmp -s $cache_file confcache; then
5947 :
5948else
5949 if test -w $cache_file; then
5950 echo "updating cache $cache_file"
5951 cat confcache > $cache_file
5952 else
5953 echo "not updating unwritable cache $cache_file"
5954 fi
5955fi
5956rm -f confcache
5957
5958
5959if eval "test $host != $build"; then
5960 if eval "test $host_alias != NONE"; then
5961 CC=$host_alias-gcc
5962 CXX=$host_alias-c++
5963 AR=$host_alias-ar
5964 RANLIB=$host_alias-ranlib
5965 DLLTOOL=$host_alias-dlltool
5966 LD=$host_alias-ld
5967 NM=$host_alias-nm
5968 STRIP=$host_alias-strip
5969 fi
5970fi
5971
5972# Extract the first word of "gcc", so it can be a program name with args.
5973set dummy gcc; ac_word=$2
5974echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c733b222 5975echo "configure:5976: checking for $ac_word" >&5
10f2d63a
VZ
5976if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5977 echo $ac_n "(cached) $ac_c" 1>&6
5978else
5979 if test -n "$CC"; then
5980 ac_cv_prog_CC="$CC" # Let the user override the test.
5981else
5982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5983 ac_dummy="$PATH"
5984 for ac_dir in $ac_dummy; do
5985 test -z "$ac_dir" && ac_dir=.
5986 if test -f $ac_dir/$ac_word; then
5987 ac_cv_prog_CC="gcc"
5988 break
5989 fi
5990 done
5991 IFS="$ac_save_ifs"
5992fi
5993fi
5994CC="$ac_cv_prog_CC"
5995if test -n "$CC"; then
5996 echo "$ac_t""$CC" 1>&6
5997else
5998 echo "$ac_t""no" 1>&6
5999fi
6000
6001if test -z "$CC"; then
6002 # Extract the first word of "cc", so it can be a program name with args.
6003set dummy cc; ac_word=$2
6004echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c733b222 6005echo "configure:6006: checking for $ac_word" >&5
10f2d63a
VZ
6006if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6007 echo $ac_n "(cached) $ac_c" 1>&6
6008else
6009 if test -n "$CC"; then
6010 ac_cv_prog_CC="$CC" # Let the user override the test.
6011else
6012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6013 ac_prog_rejected=no
6014 ac_dummy="$PATH"
6015 for ac_dir in $ac_dummy; do
6016 test -z "$ac_dir" && ac_dir=.
6017 if test -f $ac_dir/$ac_word; then
6018 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6019 ac_prog_rejected=yes
6020 continue
6021 fi
6022 ac_cv_prog_CC="cc"
6023 break
6024 fi
6025 done
6026 IFS="$ac_save_ifs"
6027if test $ac_prog_rejected = yes; then
6028 # We found a bogon in the path, so make sure we never use it.
6029 set dummy $ac_cv_prog_CC
6030 shift
6031 if test $# -gt 0; then
6032 # We chose a different compiler from the bogus one.
6033 # However, it has the same basename, so the bogon will be chosen
6034 # first if we set CC to just the basename; use the full file name.
6035 shift
6036 set dummy "$ac_dir/$ac_word" "$@"
6037 shift
6038 ac_cv_prog_CC="$@"
6039 fi
6040fi
6041fi
6042fi
6043CC="$ac_cv_prog_CC"
6044if test -n "$CC"; then
6045 echo "$ac_t""$CC" 1>&6
6046else
6047 echo "$ac_t""no" 1>&6
6048fi
6049
6050 if test -z "$CC"; then
6051 case "`uname -s`" in
6052 *win32* | *WIN32*)
6053 # Extract the first word of "cl", so it can be a program name with args.
6054set dummy cl; ac_word=$2
6055echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c733b222 6056echo "configure:6057: checking for $ac_word" >&5
10f2d63a
VZ
6057if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6058 echo $ac_n "(cached) $ac_c" 1>&6
6059else
6060 if test -n "$CC"; then
6061 ac_cv_prog_CC="$CC" # Let the user override the test.
6062else
6063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6064 ac_dummy="$PATH"
6065 for ac_dir in $ac_dummy; do
6066 test -z "$ac_dir" && ac_dir=.
6067 if test -f $ac_dir/$ac_word; then
6068 ac_cv_prog_CC="cl"
6069 break
6070 fi
6071 done
6072 IFS="$ac_save_ifs"
6073fi
6074fi
6075CC="$ac_cv_prog_CC"
6076if test -n "$CC"; then
6077 echo "$ac_t""$CC" 1>&6
6078else
6079 echo "$ac_t""no" 1>&6
6080fi
6081 ;;
6082 esac
6083 fi
6084 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6085fi
6086
6087echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
c733b222 6088echo "configure:6089: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6089
6090ac_ext=c
6091# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6092ac_cpp='$CPP $CPPFLAGS'
6093ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6094ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6095cross_compiling=$ac_cv_prog_cc_cross
6096
6097cat > conftest.$ac_ext << EOF
6098
c733b222 6099#line 6100 "configure"
10f2d63a
VZ
6100#include "confdefs.h"
6101
6102main(){return(0);}
6103EOF
c733b222 6104if { (eval echo configure:6105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6105 ac_cv_prog_cc_works=yes
6106 # If we can't run a trivial program, we are probably using a cross compiler.
6107 if (./conftest; exit) 2>/dev/null; then
6108 ac_cv_prog_cc_cross=no
6109 else
6110 ac_cv_prog_cc_cross=yes
6111 fi
6112else
6113 echo "configure: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6115 ac_cv_prog_cc_works=no
6116fi
6117rm -fr conftest*
6118ac_ext=c
6119# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6120ac_cpp='$CPP $CPPFLAGS'
6121ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6122ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6123cross_compiling=$ac_cv_prog_cc_cross
6124
6125echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6126if test $ac_cv_prog_cc_works = no; then
6127 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6128fi
6129echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
c733b222 6130echo "configure:6131: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6131echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6132cross_compiling=$ac_cv_prog_cc_cross
6133
6134echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
c733b222 6135echo "configure:6136: checking whether we are using GNU C" >&5
10f2d63a
VZ
6136if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6137 echo $ac_n "(cached) $ac_c" 1>&6
6138else
6139 cat > conftest.c <<EOF
6140#ifdef __GNUC__
6141 yes;
6142#endif
6143EOF
c733b222 6144if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6145 ac_cv_prog_gcc=yes
6146else
6147 ac_cv_prog_gcc=no
6148fi
6149fi
6150
6151echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6152
6153if test $ac_cv_prog_gcc = yes; then
6154 GCC=yes
6155else
6156 GCC=
6157fi
6158
6159ac_test_CFLAGS="${CFLAGS+set}"
6160ac_save_CFLAGS="$CFLAGS"
6161CFLAGS=
6162echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
c733b222 6163echo "configure:6164: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6164if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6165 echo $ac_n "(cached) $ac_c" 1>&6
6166else
6167 echo 'void f(){}' > conftest.c
6168if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6169 ac_cv_prog_cc_g=yes
6170else
6171 ac_cv_prog_cc_g=no
6172fi
6173rm -f conftest*
6174
6175fi
6176
6177echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6178if test "$ac_test_CFLAGS" = set; then
6179 CFLAGS="$ac_save_CFLAGS"
6180elif test $ac_cv_prog_cc_g = yes; then
6181 if test "$GCC" = yes; then
6182 CFLAGS="-g -O2"
6183 else
6184 CFLAGS="-g"
6185 fi
6186else
6187 if test "$GCC" = yes; then
6188 CFLAGS="-O2"
6189 else
6190 CFLAGS=
6191 fi
6192fi
6193
6194
6195CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6196
6197echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
c733b222 6198echo "configure:6199: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6199# On Suns, sometimes $CPP names a directory.
6200if test -n "$CPP" && test -d "$CPP"; then
6201 CPP=
6202fi
6203if test -z "$CPP"; then
6204if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6
6206else
6207 # This must be in double quotes, not single quotes, because CPP may get
6208 # substituted into the Makefile and "${CC-cc}" will confuse make.
6209 CPP="${CC-cc} -E"
6210 # On the NeXT, cc -E runs the code through the compiler's parser,
6211 # not just through cpp.
6212 cat > conftest.$ac_ext <<EOF
c733b222 6213#line 6214 "configure"
10f2d63a
VZ
6214#include "confdefs.h"
6215#include <assert.h>
6216Syntax Error
6217EOF
6218ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 6219{ (eval echo configure:6220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6220ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6221if test -z "$ac_err"; then
6222 :
6223else
6224 echo "$ac_err" >&5
6225 echo "configure: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6227 rm -rf conftest*
6228 CPP="${CC-cc} -E -traditional-cpp"
6229 cat > conftest.$ac_ext <<EOF
c733b222 6230#line 6231 "configure"
10f2d63a
VZ
6231#include "confdefs.h"
6232#include <assert.h>
6233Syntax Error
6234EOF
6235ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 6236{ (eval echo configure:6237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6237ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6238if test -z "$ac_err"; then
6239 :
6240else
6241 echo "$ac_err" >&5
6242 echo "configure: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6244 rm -rf conftest*
6245 CPP="${CC-cc} -nologo -E"
6246 cat > conftest.$ac_ext <<EOF
c733b222 6247#line 6248 "configure"
10f2d63a
VZ
6248#include "confdefs.h"
6249#include <assert.h>
6250Syntax Error
6251EOF
6252ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 6253{ (eval echo configure:6254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6254ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6255if test -z "$ac_err"; then
6256 :
6257else
6258 echo "$ac_err" >&5
6259 echo "configure: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6261 rm -rf conftest*
6262 CPP=/lib/cpp
6263fi
6264rm -f conftest*
6265fi
6266rm -f conftest*
6267fi
6268rm -f conftest*
6269 ac_cv_prog_CPP="$CPP"
6270fi
6271 CPP="$ac_cv_prog_CPP"
6272else
6273 ac_cv_prog_CPP="$CPP"
6274fi
6275echo "$ac_t""$CPP" 1>&6
6276
6277
6278if test $ac_cv_prog_gcc = yes; then
6279 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
c733b222 6280echo "configure:6281: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6281if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6282 echo $ac_n "(cached) $ac_c" 1>&6
6283else
6284 ac_pattern="Autoconf.*'x'"
6285 cat > conftest.$ac_ext <<EOF
c733b222 6286#line 6287 "configure"
10f2d63a
VZ
6287#include "confdefs.h"
6288#include <sgtty.h>
6289Autoconf TIOCGETP
6290EOF
6291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6292 egrep "$ac_pattern" >/dev/null 2>&1; then
6293 rm -rf conftest*
6294 ac_cv_prog_gcc_traditional=yes
6295else
6296 rm -rf conftest*
6297 ac_cv_prog_gcc_traditional=no
6298fi
6299rm -f conftest*
6300
6301
6302 if test $ac_cv_prog_gcc_traditional = no; then
6303 cat > conftest.$ac_ext <<EOF
c733b222 6304#line 6305 "configure"
10f2d63a
VZ
6305#include "confdefs.h"
6306#include <termio.h>
6307Autoconf TCGETA
6308EOF
6309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6310 egrep "$ac_pattern" >/dev/null 2>&1; then
6311 rm -rf conftest*
6312 ac_cv_prog_gcc_traditional=yes
6313fi
6314rm -f conftest*
6315
6316 fi
6317fi
6318
6319echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6320 if test $ac_cv_prog_gcc_traditional = yes; then
6321 CC="$CC -traditional"
6322 fi
6323fi
6324
6325
6326
6327ac_ext=C
6328# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6329ac_cpp='$CXXCPP $CPPFLAGS'
6330ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6331ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6332cross_compiling=$ac_cv_prog_cxx_cross
6333
6334
6335for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6336do
6337# Extract the first word of "$ac_prog", so it can be a program name with args.
6338set dummy $ac_prog; ac_word=$2
6339echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c733b222 6340echo "configure:6341: checking for $ac_word" >&5
10f2d63a
VZ
6341if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6342 echo $ac_n "(cached) $ac_c" 1>&6
6343else
6344 if test -n "$CXX"; then
6345 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6346else
6347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6348 ac_dummy="$PATH"
6349 for ac_dir in $ac_dummy; do
6350 test -z "$ac_dir" && ac_dir=.
6351 if test -f $ac_dir/$ac_word; then
6352 ac_cv_prog_CXX="$ac_prog"
6353 break
6354 fi
6355 done
6356 IFS="$ac_save_ifs"
6357fi
6358fi
6359CXX="$ac_cv_prog_CXX"
6360if test -n "$CXX"; then
6361 echo "$ac_t""$CXX" 1>&6
6362else
6363 echo "$ac_t""no" 1>&6
6364fi
6365
6366test -n "$CXX" && break
6367done
6368test -n "$CXX" || CXX="gcc"
6369
6370
6371echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
c733b222 6372echo "configure:6373: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6373
6374ac_ext=C
6375# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6376ac_cpp='$CXXCPP $CPPFLAGS'
6377ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6378ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6379cross_compiling=$ac_cv_prog_cxx_cross
6380
6381cat > conftest.$ac_ext << EOF
6382
c733b222 6383#line 6384 "configure"
10f2d63a
VZ
6384#include "confdefs.h"
6385
6386int main(){return(0);}
6387EOF
c733b222 6388if { (eval echo configure:6389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6389 ac_cv_prog_cxx_works=yes
6390 # If we can't run a trivial program, we are probably using a cross compiler.
6391 if (./conftest; exit) 2>/dev/null; then
6392 ac_cv_prog_cxx_cross=no
6393 else
6394 ac_cv_prog_cxx_cross=yes
6395 fi
6396else
6397 echo "configure: failed program was:" >&5
6398 cat conftest.$ac_ext >&5
6399 ac_cv_prog_cxx_works=no
6400fi
6401rm -fr conftest*
6402ac_ext=C
6403# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6404ac_cpp='$CXXCPP $CPPFLAGS'
6405ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6406ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6407cross_compiling=$ac_cv_prog_cxx_cross
6408
6409echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6410if test $ac_cv_prog_cxx_works = no; then
6411 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6412fi
6413echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
c733b222 6414echo "configure:6415: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6415echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6416cross_compiling=$ac_cv_prog_cxx_cross
6417
6418echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
c733b222 6419echo "configure:6420: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6420if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6421 echo $ac_n "(cached) $ac_c" 1>&6
6422else
6423 cat > conftest.C <<EOF
6424#ifdef __GNUC__
6425 yes;
6426#endif
6427EOF
c733b222 6428if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6429 ac_cv_prog_gxx=yes
6430else
6431 ac_cv_prog_gxx=no
6432fi
6433fi
6434
6435echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6436
6437if test $ac_cv_prog_gxx = yes; then
6438 GXX=yes
6439else
6440 GXX=
6441fi
6442
6443ac_test_CXXFLAGS="${CXXFLAGS+set}"
6444ac_save_CXXFLAGS="$CXXFLAGS"
6445CXXFLAGS=
6446echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
c733b222 6447echo "configure:6448: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6448if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6449 echo $ac_n "(cached) $ac_c" 1>&6
6450else
6451 echo 'void f(){}' > conftest.cc
6452if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6453 ac_cv_prog_cxx_g=yes
6454else
6455 ac_cv_prog_cxx_g=no
6456fi
6457rm -f conftest*
6458
6459fi
6460
6461echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6462if test "$ac_test_CXXFLAGS" = set; then
6463 CXXFLAGS="$ac_save_CXXFLAGS"
6464elif test $ac_cv_prog_cxx_g = yes; then
6465 if test "$GXX" = yes; then
6466 CXXFLAGS="-g -O2"
6467 else
6468 CXXFLAGS="-g"
6469 fi
6470else
6471 if test "$GXX" = yes; then
6472 CXXFLAGS="-O2"
6473 else
6474 CXXFLAGS=
6475 fi
6476fi
6477
6478
6479echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
c733b222 6480echo "configure:6481: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6481if test -z "$CXXCPP"; then
6482if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6483 echo $ac_n "(cached) $ac_c" 1>&6
6484else
6485 ac_ext=C
6486# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6487ac_cpp='$CXXCPP $CPPFLAGS'
6488ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6489ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6490cross_compiling=$ac_cv_prog_cxx_cross
6491 CXXCPP="${CXX-g++} -E"
6492 cat > conftest.$ac_ext <<EOF
c733b222 6493#line 6494 "configure"
10f2d63a
VZ
6494#include "confdefs.h"
6495#include <stdlib.h>
6496EOF
6497ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 6498{ (eval echo configure:6499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6499ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6500if test -z "$ac_err"; then
6501 :
6502else
6503 echo "$ac_err" >&5
6504 echo "configure: failed program was:" >&5
6505 cat conftest.$ac_ext >&5
6506 rm -rf conftest*
6507 CXXCPP=/lib/cpp
6508fi
6509rm -f conftest*
6510 ac_cv_prog_CXXCPP="$CXXCPP"
6511ac_ext=C
6512# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6513ac_cpp='$CXXCPP $CPPFLAGS'
6514ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6515ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6516cross_compiling=$ac_cv_prog_cxx_cross
6517fi
6518fi
6519CXXCPP="$ac_cv_prog_CXXCPP"
6520echo "$ac_t""$CXXCPP" 1>&6
6521
6522
6523CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6524
6525ac_ext=c
6526# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6527ac_cpp='$CPP $CPPFLAGS'
6528ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6529ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6530cross_compiling=$ac_cv_prog_cc_cross
6531
6532
6533# Extract the first word of "ranlib", so it can be a program name with args.
6534set dummy ranlib; ac_word=$2
6535echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c733b222 6536echo "configure:6537: checking for $ac_word" >&5
10f2d63a
VZ
6537if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6538 echo $ac_n "(cached) $ac_c" 1>&6
6539else
6540 if test -n "$RANLIB"; then
6541 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6542else
6543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6544 ac_dummy="$PATH"
6545 for ac_dir in $ac_dummy; do
6546 test -z "$ac_dir" && ac_dir=.
6547 if test -f $ac_dir/$ac_word; then
6548 ac_cv_prog_RANLIB="ranlib"
6549 break
6550 fi
6551 done
6552 IFS="$ac_save_ifs"
6553 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6554fi
6555fi
6556RANLIB="$ac_cv_prog_RANLIB"
6557if test -n "$RANLIB"; then
6558 echo "$ac_t""$RANLIB" 1>&6
6559else
6560 echo "$ac_t""no" 1>&6
6561fi
6562
6563
6564# Extract the first word of "ar", so it can be a program name with args.
6565set dummy ar; ac_word=$2
6566echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c733b222 6567echo "configure:6568: checking for $ac_word" >&5
10f2d63a
VZ
6568if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6570else
6571 if test -n "$AR"; then
6572 ac_cv_prog_AR="$AR" # Let the user override the test.
6573else
6574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6575 ac_dummy="$PATH"
6576 for ac_dir in $ac_dummy; do
6577 test -z "$ac_dir" && ac_dir=.
6578 if test -f $ac_dir/$ac_word; then
6579 ac_cv_prog_AR="ar"
6580 break
6581 fi
6582 done
6583 IFS="$ac_save_ifs"
6584 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6585fi
6586fi
6587AR="$ac_cv_prog_AR"
6588if test -n "$AR"; then
6589 echo "$ac_t""$AR" 1>&6
6590else
6591 echo "$ac_t""no" 1>&6
6592fi
6593
6594
6595# Find a good install program. We prefer a C program (faster),
6596# so one script is as good as another. But avoid the broken or
6597# incompatible versions:
6598# SysV /etc/install, /usr/sbin/install
6599# SunOS /usr/etc/install
6600# IRIX /sbin/install
6601# AIX /bin/install
6602# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6603# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6604# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6605# ./install, which can be erroneously created by make from ./install.sh.
6606echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
c733b222 6607echo "configure:6608: checking for a BSD compatible install" >&5
10f2d63a
VZ
6608if test -z "$INSTALL"; then
6609if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6610 echo $ac_n "(cached) $ac_c" 1>&6
6611else
6612 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6613 for ac_dir in $PATH; do
6614 # Account for people who put trailing slashes in PATH elements.
6615 case "$ac_dir/" in
6616 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6617 *)
6618 # OSF1 and SCO ODT 3.0 have their own names for install.
6619 # Don't use installbsd from OSF since it installs stuff as root
6620 # by default.
6621 for ac_prog in ginstall scoinst install; do
6622 if test -f $ac_dir/$ac_prog; then
6623 if test $ac_prog = install &&
6624 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6625 # AIX install. It has an incompatible calling convention.
6626 :
6627 else
6628 ac_cv_path_install="$ac_dir/$ac_prog -c"
6629 break 2
6630 fi
6631 fi
6632 done
6633 ;;
6634 esac
6635 done
6636 IFS="$ac_save_IFS"
6637
6638fi
6639 if test "${ac_cv_path_install+set}" = set; then
6640 INSTALL="$ac_cv_path_install"
6641 else
6642 # As a last resort, use the slow shell script. We don't cache a
6643 # path for INSTALL within a source directory, because that will
6644 # break other packages using the cache if that directory is
6645 # removed, or if the path is relative.
6646 INSTALL="$ac_install_sh"
6647 fi
6648fi
6649echo "$ac_t""$INSTALL" 1>&6
6650
6651# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6652# It thinks the first close brace ends the variable substitution.
6653test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6654
6655test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6656
6657test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6658
6659
6660# Extract the first word of "strip", so it can be a program name with args.
6661set dummy strip; ac_word=$2
6662echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c733b222 6663echo "configure:6664: checking for $ac_word" >&5
10f2d63a
VZ
6664if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6666else
6667 if test -n "$STRIP"; then
6668 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6669else
6670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6671 ac_dummy="$PATH"
6672 for ac_dir in $ac_dummy; do
6673 test -z "$ac_dir" && ac_dir=.
6674 if test -f $ac_dir/$ac_word; then
6675 ac_cv_prog_STRIP="strip"
6676 break
6677 fi
6678 done
6679 IFS="$ac_save_ifs"
6680 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6681fi
6682fi
6683STRIP="$ac_cv_prog_STRIP"
6684if test -n "$STRIP"; then
6685 echo "$ac_t""$STRIP" 1>&6
6686else
6687 echo "$ac_t""no" 1>&6
6688fi
6689
6690
6691echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
c733b222 6692echo "configure:6693: checking "make for VPATH support"" >&5
10f2d63a
VZ
6693cat - << EOF > confMake
6694check : file
6695 cp \$? \$@
6696 cp \$? final_file
6697EOF
6698
6699if test ! -d sub ; then
6700 mkdir sub
6701fi
6702echo dummy > sub/file
6703${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6704RESULT=$?
6705rm -f sub/file check final_file confMake
6706rmdir sub
6707if test "$RESULT" = 0; then
6708 echo "$ac_t""yes" 1>&6
6709else
6710 echo "$ac_t""no" 1>&6
6711 { echo "configure: error: You need a make-utility that is able to use the variable
6712VPATH correctly.
6713If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6714fi
6715
6716for ac_prog in 'bison -y' byacc
6717do
6718# Extract the first word of "$ac_prog", so it can be a program name with args.
6719set dummy $ac_prog; ac_word=$2
6720echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c733b222 6721echo "configure:6722: checking for $ac_word" >&5
10f2d63a
VZ
6722if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6723 echo $ac_n "(cached) $ac_c" 1>&6
6724else
6725 if test -n "$YACC"; then
6726 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6727else
6728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6729 ac_dummy="$PATH"
6730 for ac_dir in $ac_dummy; do
6731 test -z "$ac_dir" && ac_dir=.
6732 if test -f $ac_dir/$ac_word; then
6733 ac_cv_prog_YACC="$ac_prog"
6734 break
6735 fi
6736 done
6737 IFS="$ac_save_ifs"
6738fi
6739fi
6740YACC="$ac_cv_prog_YACC"
6741if test -n "$YACC"; then
6742 echo "$ac_t""$YACC" 1>&6
6743else
6744 echo "$ac_t""no" 1>&6
6745fi
6746
6747test -n "$YACC" && break
6748done
6749test -n "$YACC" || YACC="yacc"
6750
6751
6752# Extract the first word of "flex", so it can be a program name with args.
6753set dummy flex; ac_word=$2
6754echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c733b222 6755echo "configure:6756: checking for $ac_word" >&5
10f2d63a
VZ
6756if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6757 echo $ac_n "(cached) $ac_c" 1>&6
6758else
6759 if test -n "$LEX"; then
6760 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6761else
6762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6763 ac_dummy="$PATH"
6764 for ac_dir in $ac_dummy; do
6765 test -z "$ac_dir" && ac_dir=.
6766 if test -f $ac_dir/$ac_word; then
6767 ac_cv_prog_LEX="flex"
6768 break
6769 fi
6770 done
6771 IFS="$ac_save_ifs"
6772 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6773fi
6774fi
6775LEX="$ac_cv_prog_LEX"
6776if test -n "$LEX"; then
6777 echo "$ac_t""$LEX" 1>&6
6778else
6779 echo "$ac_t""no" 1>&6
6780fi
6781
6782if test -z "$LEXLIB"
6783then
6784 case "$LEX" in
6785 flex*) ac_lib=fl ;;
6786 *) ac_lib=l ;;
6787 esac
6788 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
c733b222 6789echo "configure:6790: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6790ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6791if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6792 echo $ac_n "(cached) $ac_c" 1>&6
6793else
6794 ac_save_LIBS="$LIBS"
6795LIBS="-l$ac_lib $LIBS"
6796cat > conftest.$ac_ext <<EOF
c733b222 6797#line 6798 "configure"
10f2d63a
VZ
6798#include "confdefs.h"
6799/* Override any gcc2 internal prototype to avoid an error. */
6800/* We use char because int might match the return type of a gcc2
6801 builtin and then its argument prototype would still apply. */
6802char yywrap();
6803
6804int main() {
6805yywrap()
6806; return 0; }
6807EOF
c733b222 6808if { (eval echo configure:6809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6809 rm -rf conftest*
6810 eval "ac_cv_lib_$ac_lib_var=yes"
6811else
6812 echo "configure: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6814 rm -rf conftest*
6815 eval "ac_cv_lib_$ac_lib_var=no"
6816fi
6817rm -f conftest*
6818LIBS="$ac_save_LIBS"
6819
6820fi
6821if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6822 echo "$ac_t""yes" 1>&6
6823 LEXLIB="-l$ac_lib"
6824else
6825 echo "$ac_t""no" 1>&6
6826fi
6827
6828fi
6829
6830
6831echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
c733b222 6832echo "configure:6833: checking whether ln -s works" >&5
10f2d63a
VZ
6833if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6834 echo $ac_n "(cached) $ac_c" 1>&6
6835else
6836 rm -f conftestdata
6837if ln -s X conftestdata 2>/dev/null
6838then
6839 rm -f conftestdata
6840 ac_cv_prog_LN_S="ln -s"
6841else
6842 ac_cv_prog_LN_S=ln
6843fi
6844fi
6845LN_S="$ac_cv_prog_LN_S"
6846if test "$ac_cv_prog_LN_S" = "ln -s"; then
6847 echo "$ac_t""yes" 1>&6
6848else
6849 echo "$ac_t""no" 1>&6
6850fi
6851
6852
6853
6854SEARCH_INCLUDE="\
6855 /usr/local/include \
6856 \
6857 /usr/Motif-1.2/include \
6858 /usr/Motif-2.1/include \
6859 \
6860 /usr/include/Motif1.2 \
6861 /opt/xpm/include/X11 \
6862 /opt/GBxpm/include/ \
6863 /opt/GBxpm/X11/include/ \
6864 \
6865 /usr/Motif1.2/include \
6866 /usr/dt/include \
afc31813
VZ
6867 /usr/openwin/include \
6868 \
10f2d63a
VZ
6869 /usr/include/Xm \
6870 \
6871 /usr/X11R6/include \
afc31813 6872 /usr/X11R6.4/include \
10f2d63a
VZ
6873 /usr/X11R5/include \
6874 /usr/X11R4/include \
6875 \
10f2d63a
VZ
6876 /usr/include/X11R6 \
6877 /usr/include/X11R5 \
6878 /usr/include/X11R4 \
6879 \
6880 /usr/local/X11R6/include \
6881 /usr/local/X11R5/include \
6882 /usr/local/X11R4/include \
6883 \
6884 /usr/local/include/X11R6 \
6885 /usr/local/include/X11R5 \
6886 /usr/local/include/X11R4 \
6887 \
6888 /usr/X11/include \
6889 /usr/include/X11 \
6890 /usr/local/X11/include \
6891 /usr/local/include/X11 \
6892 \
6893 /usr/X386/include \
6894 /usr/x386/include \
6895 /usr/XFree86/include/X11 \
6896 \
cf27ef00 6897 X:/XFree86/include \
ec14dd32
VZ
6898 X:/XFree86/include/X11 \
6899 \
10f2d63a
VZ
6900 /usr/include/gtk \
6901 /usr/local/include/gtk \
6902 /usr/include/glib \
6903 /usr/local/include/glib \
6904 \
6905 /usr/include/qt \
6906 /usr/local/include/qt \
6907 \
6908 /usr/include/windows \
6909 /usr/include/wine \
6910 /usr/local/include/wine \
6911 \
6912 /usr/unsupported/include \
6913 /usr/athena/include \
6914 /usr/local/x11r5/include \
6915 /usr/lpp/Xamples/include \
6916 \
10f2d63a 6917 /usr/openwin/share/include \
928b5c08
VZ
6918 \
6919 /usr/include"
10f2d63a
VZ
6920
6921SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6922
6923
6924cat > confcache <<\EOF
6925# This file is a shell script that caches the results of configure
6926# tests run on this system so they can be shared between configure
6927# scripts and configure runs. It is not useful on other systems.
6928# If it contains results you don't want to keep, you may remove or edit it.
6929#
6930# By default, configure uses ./config.cache as the cache file,
6931# creating it if it does not exist already. You can give configure
6932# the --cache-file=FILE option to use a different cache file; that is
6933# what configure does when it calls configure scripts in
6934# subdirectories, so they share the cache.
6935# Giving --cache-file=/dev/null disables caching, for debugging configure.
6936# config.status only pays attention to the cache file if you give it the
6937# --recheck option to rerun configure.
6938#
6939EOF
6940# The following way of writing the cache mishandles newlines in values,
6941# but we know of no workaround that is simple, portable, and efficient.
6942# So, don't put newlines in cache variables' values.
6943# Ultrix sh set writes to stderr and can't be redirected directly,
6944# and sets the high bit in the cache file unless we assign to the vars.
6945(set) 2>&1 |
6946 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6947 *ac_space=\ *)
6948 # `set' does not quote correctly, so add quotes (double-quote substitution
6949 # turns \\\\ into \\, and sed turns \\ into \).
6950 sed -n \
6951 -e "s/'/'\\\\''/g" \
6952 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6953 ;;
6954 *)
6955 # `set' quotes correctly as required by POSIX, so do not add quotes.
6956 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6957 ;;
6958 esac >> confcache
6959if cmp -s $cache_file confcache; then
6960 :
6961else
6962 if test -w $cache_file; then
6963 echo "updating cache $cache_file"
6964 cat confcache > $cache_file
6965 else
6966 echo "not updating unwritable cache $cache_file"
6967 fi
6968fi
6969rm -f confcache
6970
6971
6972
dad6c0ea
VZ
6973AFMINSTALL=
6974
10f2d63a
VZ
6975if test "$wxUSE_GUI" = "yes"; then
6976
dad6c0ea
VZ
6977USE_GUI=1
6978
10f2d63a
VZ
6979TOOLKIT=
6980TOOLKIT_INCLUDE=
6981
6982GUIOBJS=
6983COMMONOBJS=
6984GENERICOBJS=
6985
6986GUI_TK_LIBRARY=
6987GUI_TK_LINK=
6988
6989WXGTK12=
13111b2a 6990WXGTK13=
10f2d63a
VZ
6991
6992WXWINE=
6993
10f2d63a
VZ
6994if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6995 if test "$cross_compiling" = "yes" ; then
6996 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6997 else
6998 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
c733b222 6999echo "configure:7000: checking for Windows headers" >&5
10f2d63a
VZ
7000
7001ac_find_includes=
7002for ac_dir in $SEARCH_INCLUDE;
7003 do
7004 if test -f "$ac_dir/windows.h"; then
7005 ac_find_includes=$ac_dir
7006 break
7007 fi
7008 done
7009
7010 if test "$ac_find_includes" != "" ; then
7011 echo "$ac_t""found $ac_find_includes" 1>&6
7012 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7013 else
7014 echo "$ac_t""no" 1>&6
7015 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7016 fi
7017 fi
7018
7019 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7020 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7021
7022 if test "$wxUSE_MINGW" = 1; then
7023 LDFLAGS="$LDFLAGS -mwindows"
7024 fi
7025
7026 TOOLKIT=MSW
7027
7028 GUIOBJS="\$(MSW_GUIOBJS)"
7029 GUIHEADERS="\$(MSW_HEADERS)"
7030 COMMONOBJS="\$(MSW_COMMONOBJS)"
7031 GENERICOBJS="\$(MSW_GENERICOBJS)"
7032 UNIXOBJS=
7033 GUIDIST=MSW_DIST
10f2d63a
VZ
7034fi
7035
7036if test "$wxUSE_GTK" = 1; then
7037
7038 if test x$gtk_config_exec_prefix != x ; then
7039 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7040 if test x${GTK_CONFIG+set} != xset ; then
7041 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7042 fi
7043 fi
7044 if test x$gtk_config_prefix != x ; then
7045 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7046 if test x${GTK_CONFIG+set} != xset ; then
7047 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7048 fi
7049 fi
7050
7051 # Extract the first word of "gtk-config", so it can be a program name with args.
7052set dummy gtk-config; ac_word=$2
7053echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c733b222 7054echo "configure:7055: checking for $ac_word" >&5
10f2d63a
VZ
7055if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7056 echo $ac_n "(cached) $ac_c" 1>&6
7057else
7058 case "$GTK_CONFIG" in
7059 /*)
7060 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7061 ;;
7062 ?:/*)
7063 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7064 ;;
7065 *)
7066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7067 ac_dummy="$PATH"
7068 for ac_dir in $ac_dummy; do
7069 test -z "$ac_dir" && ac_dir=.
7070 if test -f $ac_dir/$ac_word; then
7071 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7072 break
7073 fi
7074 done
7075 IFS="$ac_save_ifs"
7076 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7077 ;;
7078esac
7079fi
7080GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7081if test -n "$GTK_CONFIG"; then
7082 echo "$ac_t""$GTK_CONFIG" 1>&6
7083else
7084 echo "$ac_t""no" 1>&6
7085fi
7086
04165bec 7087 min_gtk_version=1.2.3
10f2d63a 7088 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
c733b222 7089echo "configure:7090: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7090 no_gtk=""
7091 if test "$GTK_CONFIG" != "no" ; then
7092 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7093 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7094 ac_save_CFLAGS="$CFLAGS"
7095 ac_save_LIBS="$LIBS"
7096 CFLAGS="$CFLAGS $GTK_CFLAGS"
7097 LIBS="$LIBS $GTK_LIBS"
7098 if test "$cross_compiling" = yes; then
7099 echo $ac_n "cross compiling; assumed OK... $ac_c"
7100else
7101 cat > conftest.$ac_ext <<EOF
c733b222 7102#line 7103 "configure"
10f2d63a
VZ
7103#include "confdefs.h"
7104
7105#include <gtk/gtk.h>
f49f2b0c 7106#include <gtk/gtkfeatures.h>
10f2d63a
VZ
7107#include <stdio.h>
7108
7109int
7110main ()
7111{
7112 int major, minor, micro;
7113
7114 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7115 printf("%s, bad version string\n", "$min_gtk_version");
7116 exit(1);
7117 }
7118
f49f2b0c
RR
7119 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7120 (GTK_MINOR_VERSION != gtk_minor_version) ||
7121 (GTK_MICRO_VERSION != gtk_micro_version)) {
7122 printf("Headers vs. library version mismatch!\n");
7123 exit(1);
7124 }
7125
10f2d63a
VZ
7126 if (gtk_minor_version == 1) return FALSE;
7127
7128 return !((gtk_major_version > major) ||
7129 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7130 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7131}
7132
7133EOF
c733b222 7134if { (eval echo configure:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7135then
7136 :
7137else
7138 echo "configure: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7140 rm -fr conftest*
7141 no_gtk=yes
7142fi
7143rm -fr conftest*
7144fi
7145
7146 CFLAGS="$ac_save_CFLAGS"
7147 LIBS="$ac_save_LIBS"
7148 else
7149 no_gtk=yes
7150 fi
7151 if test "x$no_gtk" = x ; then
7152 echo "$ac_t""yes" 1>&6
7153 WXGTK12=1
7154 else
7155 echo "$ac_t""no" 1>&6
7156 GTK_CFLAGS=""
7157 GTK_LIBS=""
7e99ad86 7158 :
10f2d63a
VZ
7159 fi
7160
7161
7162
7163
7e99ad86
VZ
7164 if test "$WXGTK12" != 1; then
7165 { echo "configure: error:
7166 Please check that gtk-config is in path, the directory
7167 where GTK+ libraries are installed (returned by
7168 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7169 equivalent variable and GTK+ is version 1.2.3 or above.
7170 " 1>&2; exit 1; }
7171 fi
7172
7173
10f2d63a 7174 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7175
7176
7177 GUI_TK_LIBRARY="$GTK_LIBS"
7178
10f2d63a
VZ
7179 TOOLKIT=GTK
7180
dad6c0ea
VZ
7181 AFMINSTALL=afminstall
7182
10f2d63a
VZ
7183 GUIOBJS="\$(GTK_GUIOBJS)"
7184 GUIHEADERS="\$(GTK_HEADERS)"
7185 COMMONOBJS="\$(GTK_COMMONOBJS)"
7186 GENERICOBJS="\$(GTK_GENERICOBJS)"
7187 GUIDEPS="\$(GTK_GUIDEPS)"
7188 COMMONDEPS="\$(GTK_COMMONDEPS)"
7189 GENERICDEPS="\$(GTK_GENERICDEPS)"
7190 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7191 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7192 GUIDIST=GTK_DIST
7ec2881a 7193
2224580a 7194 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
c733b222 7195echo "configure:7196: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7196ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7197if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7198 echo $ac_n "(cached) $ac_c" 1>&6
7199else
7200 ac_save_LIBS="$LIBS"
7201LIBS="-lgdk $LIBS"
7202cat > conftest.$ac_ext <<EOF
c733b222 7203#line 7204 "configure"
7ec2881a
RR
7204#include "confdefs.h"
7205/* Override any gcc2 internal prototype to avoid an error. */
7206/* We use char because int might match the return type of a gcc2
7207 builtin and then its argument prototype would still apply. */
7208char gdk_im_open();
7209
7210int main() {
7211gdk_im_open()
7212; return 0; }
7213EOF
c733b222 7214if { (eval echo configure:7215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7215 rm -rf conftest*
7216 eval "ac_cv_lib_$ac_lib_var=yes"
7217else
7218 echo "configure: failed program was:" >&5
7219 cat conftest.$ac_ext >&5
7220 rm -rf conftest*
7221 eval "ac_cv_lib_$ac_lib_var=no"
7222fi
7223rm -f conftest*
7224LIBS="$ac_save_LIBS"
7225
7226fi
7227if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7228 echo "$ac_t""yes" 1>&6
7229 cat >> confdefs.h <<\EOF
7230#define HAVE_XIM 1
7231EOF
7232
7233else
7234 echo "$ac_t""no" 1>&6
7235fi
7236
10f2d63a
VZ
7237fi
7238
7239if test "$wxUSE_WINE" = 1; then
7240 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
c733b222 7241echo "configure:7242: checking for WINE includes" >&5
10f2d63a
VZ
7242
7243ac_find_includes=
7244for ac_dir in $SEARCH_INCLUDE;
7245 do
7246 if test -f "$ac_dir/windows.h"; then
7247 ac_find_includes=$ac_dir
7248 break
7249 fi
7250 done
7251
7252 if test "$ac_find_includes" != "" ; then
7253 echo "$ac_t""found $ac_find_includes" 1>&6
7254 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7255 else
7256 echo "$ac_t""no" 1>&6
7257 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7258 fi
7259
7260 XPM_LINK=""
7261 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
c733b222 7262echo "configure:7263: checking for Xpm library" >&5
10f2d63a
VZ
7263
7264ac_find_libraries=
7265for ac_dir in $SEARCH_LIB;
7266 do
7267 for ac_extension in a so sl; do
7268 if test -f "$ac_dir/libXpm.$ac_extension"; then
7269 ac_find_libraries=$ac_dir
7270 break 2
7271 fi
7272 done
7273 done
7274
7275 if test "$ac_find_libraries" != "" ; then
7276 GUI_TK_LIBRARY="-L$ac_find_libraries"
7277 XPM_LINK="-lXpm"
7278 cat >> confdefs.h <<\EOF
7279#define wxHAVE_LIB_XPM 1
7280EOF
7281
7282 echo "$ac_t""found at $ac_find_libraries" 1>&6
7283 else
7284 echo "$ac_t""no" 1>&6
7285 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7286 fi
7287
7288 MESA_LINK=""
7289 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
c733b222 7290echo "configure:7291: checking for Mesa library" >&5
10f2d63a
VZ
7291
7292ac_find_libraries=
7293for ac_dir in $SEARCH_LIB;
7294 do
7295 for ac_extension in a so sl; do
7296 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7297 ac_find_libraries=$ac_dir
7298 break 2
7299 fi
7300 done
7301 done
7302
7303 if test "$ac_find_libraries" != "" ; then
7304 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7305 MESA_LINK="-lMesaGL"
7306 echo "$ac_t""found at $ac_find_libraries" 1>&6
7307 else
7308 { echo "configure: error: no" 1>&2; exit 1; }
7309 fi
7310
7311 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7312 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7313 WXWINE=1
7314 TOOLKIT=MSW
7315
7316 GUIHEADERS="\$(MSW_HEADERS)"
7317 GUIOBJS="\$(MSW_GUIOBJS)"
7318 COMMONOBJS="\$(MSW_COMMONOBJS)"
7319 GENERICOBJS="\$(MSW_GENERICOBJS)"
7320 GUIDEPS="\$(MSW_GUIDEPS)"
7321 COMMONDEPS="\$(MSW_COMMONDEPS)"
7322 GENERICDEPS="\$(MSW_GENERICDEPS)"
7323 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7324 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7325 GUIDIST=MSW_DIST
7326fi
7327
7328if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7329 # If we find X, set shell vars x_includes and x_libraries to the
7330# paths, otherwise set no_x=yes.
7331# Uses ac_ vars as temps to allow command line to override cache and checks.
7332# --without-x overrides everything else, but does not touch the cache.
7333echo $ac_n "checking for X""... $ac_c" 1>&6
c733b222 7334echo "configure:7335: checking for X" >&5
ab9b9eab
VZ
7335
7336# Check whether --with-x or --without-x was given.
7337if test "${with_x+set}" = set; then
7338 withval="$with_x"
7339 :
7340fi
ba337fe7 7341
ab9b9eab
VZ
7342# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7343if test "x$with_x" = xno; then
7344 # The user explicitly disabled X.
7345 have_x=disabled
7346else
7347 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7348 # Both variables are already set.
7349 have_x=yes
7350 else
7351if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7352 echo $ac_n "(cached) $ac_c" 1>&6
7353else
7354 # One or both of the vars are not set, and there is no cached value.
7355ac_x_includes=NO ac_x_libraries=NO
7356rm -fr conftestdir
7357if mkdir conftestdir; then
7358 cd conftestdir
7359 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7360 cat > Imakefile <<'EOF'
7361acfindx:
7362 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7363EOF
7364 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7365 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7366 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7367 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7368 for ac_extension in a so sl; do
ab9b9eab
VZ
7369 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7370 test -f $ac_im_libdir/libX11.$ac_extension; then
7371 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7372 fi
7373 done
ab9b9eab
VZ
7374 # Screen out bogus values from the imake configuration. They are
7375 # bogus both because they are the default anyway, and because
7376 # using them would break gcc on systems where it needs fixed includes.
7377 case "$ac_im_incroot" in
7378 /usr/include) ;;
7379 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7380 esac
7381 case "$ac_im_usrlibdir" in
7382 /usr/lib | /lib) ;;
7383 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7384 esac
ba337fe7 7385 fi
ab9b9eab
VZ
7386 cd ..
7387 rm -fr conftestdir
7388fi
10f2d63a 7389
ab9b9eab
VZ
7390if test "$ac_x_includes" = NO; then
7391 # Guess where to find include files, by looking for this one X11 .h file.
7392 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7393
ab9b9eab
VZ
7394 # First, try using that file with no special directory specified.
7395cat > conftest.$ac_ext <<EOF
c733b222 7396#line 7397 "configure"
ab9b9eab
VZ
7397#include "confdefs.h"
7398#include <$x_direct_test_include>
7399EOF
7400ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 7401{ (eval echo configure:7402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7402ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7403if test -z "$ac_err"; then
7404 rm -rf conftest*
7405 # We can compile using X headers with no special include directory.
7406ac_x_includes=
7407else
7408 echo "$ac_err" >&5
7409 echo "configure: failed program was:" >&5
7410 cat conftest.$ac_ext >&5
7411 rm -rf conftest*
7412 # Look for the header file in a standard set of common directories.
7413# Check X11 before X11Rn because it is often a symlink to the current release.
7414 for ac_dir in \
7415 /usr/X11/include \
7416 /usr/X11R6/include \
7417 /usr/X11R5/include \
7418 /usr/X11R4/include \
7419 \
7420 /usr/include/X11 \
7421 /usr/include/X11R6 \
7422 /usr/include/X11R5 \
7423 /usr/include/X11R4 \
7424 \
7425 /usr/local/X11/include \
7426 /usr/local/X11R6/include \
7427 /usr/local/X11R5/include \
7428 /usr/local/X11R4/include \
7429 \
7430 /usr/local/include/X11 \
7431 /usr/local/include/X11R6 \
7432 /usr/local/include/X11R5 \
7433 /usr/local/include/X11R4 \
7434 \
7435 /usr/X386/include \
7436 /usr/x386/include \
7437 /usr/XFree86/include/X11 \
7438 \
7439 /usr/include \
7440 /usr/local/include \
7441 /usr/unsupported/include \
7442 /usr/athena/include \
7443 /usr/local/x11r5/include \
7444 /usr/lpp/Xamples/include \
7445 \
7446 /usr/openwin/include \
7447 /usr/openwin/share/include \
7448 ; \
10f2d63a 7449 do
ab9b9eab
VZ
7450 if test -r "$ac_dir/$x_direct_test_include"; then
7451 ac_x_includes=$ac_dir
10f2d63a
VZ
7452 break
7453 fi
7454 done
ab9b9eab
VZ
7455fi
7456rm -f conftest*
7457fi # $ac_x_includes = NO
10f2d63a 7458
ab9b9eab
VZ
7459if test "$ac_x_libraries" = NO; then
7460 # Check for the libraries.
10f2d63a 7461
ab9b9eab
VZ
7462 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7463 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7464
ab9b9eab
VZ
7465 # See if we find them without any special options.
7466 # Don't add to $LIBS permanently.
7467 ac_save_LIBS="$LIBS"
7468 LIBS="-l$x_direct_test_library $LIBS"
7469cat > conftest.$ac_ext <<EOF
c733b222 7470#line 7471 "configure"
ab9b9eab 7471#include "confdefs.h"
10f2d63a 7472
ab9b9eab
VZ
7473int main() {
7474${x_direct_test_function}()
7475; return 0; }
7476EOF
c733b222 7477if { (eval echo configure:7478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7478 rm -rf conftest*
7479 LIBS="$ac_save_LIBS"
7480# We can link X programs with no special library path.
7481ac_x_libraries=
7482else
7483 echo "configure: failed program was:" >&5
7484 cat conftest.$ac_ext >&5
7485 rm -rf conftest*
7486 LIBS="$ac_save_LIBS"
7487# First see if replacing the include by lib works.
7488# Check X11 before X11Rn because it is often a symlink to the current release.
7489for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7490 /usr/X11/lib \
7491 /usr/X11R6/lib \
7492 /usr/X11R5/lib \
7493 /usr/X11R4/lib \
7494 \
7495 /usr/lib/X11 \
7496 /usr/lib/X11R6 \
7497 /usr/lib/X11R5 \
7498 /usr/lib/X11R4 \
7499 \
7500 /usr/local/X11/lib \
7501 /usr/local/X11R6/lib \
7502 /usr/local/X11R5/lib \
7503 /usr/local/X11R4/lib \
7504 \
7505 /usr/local/lib/X11 \
7506 /usr/local/lib/X11R6 \
7507 /usr/local/lib/X11R5 \
7508 /usr/local/lib/X11R4 \
7509 \
7510 /usr/X386/lib \
7511 /usr/x386/lib \
7512 /usr/XFree86/lib/X11 \
7513 \
7514 /usr/lib \
7515 /usr/local/lib \
7516 /usr/unsupported/lib \
7517 /usr/athena/lib \
7518 /usr/local/x11r5/lib \
7519 /usr/lpp/Xamples/lib \
7520 /lib/usr/lib/X11 \
7521 \
7522 /usr/openwin/lib \
7523 /usr/openwin/share/lib \
7524 ; \
7525do
7526 for ac_extension in a so sl; do
7527 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7528 ac_x_libraries=$ac_dir
7529 break 2
10f2d63a 7530 fi
10f2d63a 7531 done
ab9b9eab
VZ
7532done
7533fi
7534rm -f conftest*
7535fi # $ac_x_libraries = NO
10f2d63a 7536
ab9b9eab
VZ
7537if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7538 # Didn't find X anywhere. Cache the known absence of X.
7539 ac_cv_have_x="have_x=no"
7540else
7541 # Record where we found X for the cache.
7542 ac_cv_have_x="have_x=yes \
7543 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7544fi
7545fi
10f2d63a 7546 fi
ab9b9eab
VZ
7547 eval "$ac_cv_have_x"
7548fi # $with_x != no
10f2d63a 7549
ab9b9eab
VZ
7550if test "$have_x" != yes; then
7551 echo "$ac_t""$have_x" 1>&6
7552 no_x=yes
7553else
7554 # If each of the values was on the command line, it overrides each guess.
7555 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7556 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7557 # Update the cache value to reflect the command line values.
7558 ac_cv_have_x="have_x=yes \
7559 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7560 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7561fi
10f2d63a 7562
ab9b9eab
VZ
7563if test "$no_x" = yes; then
7564 # Not all programs may use this symbol, but it does not hurt to define it.
7565 cat >> confdefs.h <<\EOF
7566#define X_DISPLAY_MISSING 1
7567EOF
10f2d63a 7568
ab9b9eab
VZ
7569 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7570else
7571 if test -n "$x_includes"; then
7572 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7573 fi
7574
ab9b9eab
VZ
7575 # It would also be nice to do this for all -L options, not just this one.
7576 if test -n "$x_libraries"; then
7577 X_LIBS="$X_LIBS -L$x_libraries"
7578 # For Solaris; some versions of Sun CC require a space after -R and
7579 # others require no space. Words are not sufficient . . . .
7580 case "`(uname -sr) 2>/dev/null`" in
7581 "SunOS 5"*)
7582 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
c733b222 7583echo "configure:7584: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7584 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7585 cat > conftest.$ac_ext <<EOF
c733b222 7586#line 7587 "configure"
ab9b9eab 7587#include "confdefs.h"
10f2d63a 7588
ab9b9eab 7589int main() {
788deba1 7590
ab9b9eab
VZ
7591; return 0; }
7592EOF
c733b222 7593if { (eval echo configure:7594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7594 rm -rf conftest*
7595 ac_R_nospace=yes
7596else
7597 echo "configure: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7599 rm -rf conftest*
7600 ac_R_nospace=no
7601fi
7602rm -f conftest*
7603 if test $ac_R_nospace = yes; then
7604 echo "$ac_t""no" 1>&6
7605 X_LIBS="$X_LIBS -R$x_libraries"
7606 else
7607 LIBS="$ac_xsave_LIBS -R $x_libraries"
7608 cat > conftest.$ac_ext <<EOF
c733b222 7609#line 7610 "configure"
ab9b9eab 7610#include "confdefs.h"
788deba1 7611
ab9b9eab
VZ
7612int main() {
7613
7614; return 0; }
7615EOF
c733b222 7616if { (eval echo configure:7617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7617 rm -rf conftest*
7618 ac_R_space=yes
7619else
7620 echo "configure: failed program was:" >&5
7621 cat conftest.$ac_ext >&5
7622 rm -rf conftest*
7623 ac_R_space=no
7624fi
7625rm -f conftest*
7626 if test $ac_R_space = yes; then
7627 echo "$ac_t""yes" 1>&6
7628 X_LIBS="$X_LIBS -R $x_libraries"
7629 else
7630 echo "$ac_t""neither works" 1>&6
7631 fi
7632 fi
7633 LIBS="$ac_xsave_LIBS"
7634 esac
7635 fi
7636
7637 # Check for system-dependent libraries X programs must link with.
7638 # Do this before checking for the system-independent R6 libraries
7639 # (-lICE), since we may need -lsocket or whatever for X linking.
7640
7641 if test "$ISC" = yes; then
7642 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7643 else
7644 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7645 # libraries were built with DECnet support. And karl@cs.umb.edu says
7646 # the Alpha needs dnet_stub (dnet does not exist).
7647 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
c733b222 7648echo "configure:7649: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7649ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7650if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7651 echo $ac_n "(cached) $ac_c" 1>&6
7652else
7653 ac_save_LIBS="$LIBS"
7654LIBS="-ldnet $LIBS"
7655cat > conftest.$ac_ext <<EOF
c733b222 7656#line 7657 "configure"
ab9b9eab
VZ
7657#include "confdefs.h"
7658/* Override any gcc2 internal prototype to avoid an error. */
7659/* We use char because int might match the return type of a gcc2
7660 builtin and then its argument prototype would still apply. */
7661char dnet_ntoa();
7662
7663int main() {
7664dnet_ntoa()
7665; return 0; }
7666EOF
c733b222 7667if { (eval echo configure:7668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7668 rm -rf conftest*
7669 eval "ac_cv_lib_$ac_lib_var=yes"
7670else
7671 echo "configure: failed program was:" >&5
7672 cat conftest.$ac_ext >&5
7673 rm -rf conftest*
7674 eval "ac_cv_lib_$ac_lib_var=no"
7675fi
7676rm -f conftest*
7677LIBS="$ac_save_LIBS"
7678
7679fi
7680if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7681 echo "$ac_t""yes" 1>&6
7682 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7683else
7684 echo "$ac_t""no" 1>&6
7685fi
7686
7687 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7688 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
c733b222 7689echo "configure:7690: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7690ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7691if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7692 echo $ac_n "(cached) $ac_c" 1>&6
7693else
7694 ac_save_LIBS="$LIBS"
7695LIBS="-ldnet_stub $LIBS"
7696cat > conftest.$ac_ext <<EOF
c733b222 7697#line 7698 "configure"
ab9b9eab
VZ
7698#include "confdefs.h"
7699/* Override any gcc2 internal prototype to avoid an error. */
7700/* We use char because int might match the return type of a gcc2
7701 builtin and then its argument prototype would still apply. */
7702char dnet_ntoa();
7703
7704int main() {
7705dnet_ntoa()
7706; return 0; }
7707EOF
c733b222 7708if { (eval echo configure:7709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7709 rm -rf conftest*
7710 eval "ac_cv_lib_$ac_lib_var=yes"
7711else
7712 echo "configure: failed program was:" >&5
7713 cat conftest.$ac_ext >&5
7714 rm -rf conftest*
7715 eval "ac_cv_lib_$ac_lib_var=no"
7716fi
7717rm -f conftest*
7718LIBS="$ac_save_LIBS"
7719
7720fi
7721if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7722 echo "$ac_t""yes" 1>&6
7723 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7724else
7725 echo "$ac_t""no" 1>&6
7726fi
7727
7728 fi
7729
7730 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7731 # to get the SysV transport functions.
7732 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7733 # needs -lnsl.
7734 # The nsl library prevents programs from opening the X display
7735 # on Irix 5.2, according to dickey@clark.net.
7736 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
c733b222 7737echo "configure:7738: checking for gethostbyname" >&5
ab9b9eab
VZ
7738if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7740else
7741 cat > conftest.$ac_ext <<EOF
c733b222 7742#line 7743 "configure"
ab9b9eab
VZ
7743#include "confdefs.h"
7744/* System header to define __stub macros and hopefully few prototypes,
7745 which can conflict with char gethostbyname(); below. */
7746#include <assert.h>
7747/* Override any gcc2 internal prototype to avoid an error. */
7748/* We use char because int might match the return type of a gcc2
7749 builtin and then its argument prototype would still apply. */
7750char gethostbyname();
7751
7752int main() {
7753
7754/* The GNU C library defines this for functions which it implements
7755 to always fail with ENOSYS. Some functions are actually named
7756 something starting with __ and the normal name is an alias. */
7757#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7758choke me
7759#else
d6a55c4b 7760gethostbyname();
ab9b9eab
VZ
7761#endif
7762
7763; return 0; }
7764EOF
c733b222 7765if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7766 rm -rf conftest*
7767 eval "ac_cv_func_gethostbyname=yes"
7768else
7769 echo "configure: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7771 rm -rf conftest*
7772 eval "ac_cv_func_gethostbyname=no"
7773fi
7774rm -f conftest*
7775fi
7776
7777if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7778 echo "$ac_t""yes" 1>&6
7779 :
7780else
7781 echo "$ac_t""no" 1>&6
7782fi
7783
7784 if test $ac_cv_func_gethostbyname = no; then
7785 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
c733b222 7786echo "configure:7787: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7787ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7788if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7789 echo $ac_n "(cached) $ac_c" 1>&6
7790else
7791 ac_save_LIBS="$LIBS"
7792LIBS="-lnsl $LIBS"
7793cat > conftest.$ac_ext <<EOF
c733b222 7794#line 7795 "configure"
ab9b9eab
VZ
7795#include "confdefs.h"
7796/* Override any gcc2 internal prototype to avoid an error. */
7797/* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7799char gethostbyname();
7800
7801int main() {
7802gethostbyname()
7803; return 0; }
7804EOF
c733b222 7805if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7806 rm -rf conftest*
7807 eval "ac_cv_lib_$ac_lib_var=yes"
7808else
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7811 rm -rf conftest*
7812 eval "ac_cv_lib_$ac_lib_var=no"
7813fi
7814rm -f conftest*
7815LIBS="$ac_save_LIBS"
7816
7817fi
7818if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7819 echo "$ac_t""yes" 1>&6
7820 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7821else
7822 echo "$ac_t""no" 1>&6
7823fi
7824
7825 fi
7826
7827 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7828 # socket/setsockopt and other routines are undefined under SCO ODT
7829 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7830 # on later versions), says simon@lia.di.epfl.ch: it contains
7831 # gethostby* variants that don't use the nameserver (or something).
7832 # -lsocket must be given before -lnsl if both are needed.
7833 # We assume that if connect needs -lnsl, so does gethostbyname.
7834 echo $ac_n "checking for connect""... $ac_c" 1>&6
c733b222 7835echo "configure:7836: checking for connect" >&5
ab9b9eab
VZ
7836if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7837 echo $ac_n "(cached) $ac_c" 1>&6
7838else
7839 cat > conftest.$ac_ext <<EOF
c733b222 7840#line 7841 "configure"
ab9b9eab
VZ
7841#include "confdefs.h"
7842/* System header to define __stub macros and hopefully few prototypes,
7843 which can conflict with char connect(); below. */
7844#include <assert.h>
7845/* Override any gcc2 internal prototype to avoid an error. */
7846/* We use char because int might match the return type of a gcc2
7847 builtin and then its argument prototype would still apply. */
7848char connect();
7849
7850int main() {
7851
7852/* The GNU C library defines this for functions which it implements
7853 to always fail with ENOSYS. Some functions are actually named
7854 something starting with __ and the normal name is an alias. */
7855#if defined (__stub_connect) || defined (__stub___connect)
7856choke me
7857#else
d6a55c4b 7858connect();
ab9b9eab
VZ
7859#endif
7860
7861; return 0; }
7862EOF
c733b222 7863if { (eval echo configure:7864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7864 rm -rf conftest*
7865 eval "ac_cv_func_connect=yes"
7866else
7867 echo "configure: failed program was:" >&5
7868 cat conftest.$ac_ext >&5
7869 rm -rf conftest*
7870 eval "ac_cv_func_connect=no"
7871fi
7872rm -f conftest*
7873fi
7874
7875if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7876 echo "$ac_t""yes" 1>&6
7877 :
7878else
7879 echo "$ac_t""no" 1>&6
7880fi
7881
7882 if test $ac_cv_func_connect = no; then
7883 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
c733b222 7884echo "configure:7885: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7885ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7886if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7887 echo $ac_n "(cached) $ac_c" 1>&6
7888else
7889 ac_save_LIBS="$LIBS"
7890LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7891cat > conftest.$ac_ext <<EOF
c733b222 7892#line 7893 "configure"
ab9b9eab
VZ
7893#include "confdefs.h"
7894/* Override any gcc2 internal prototype to avoid an error. */
7895/* We use char because int might match the return type of a gcc2
7896 builtin and then its argument prototype would still apply. */
7897char connect();
7898
7899int main() {
7900connect()
7901; return 0; }
7902EOF
c733b222 7903if { (eval echo configure:7904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7904 rm -rf conftest*
7905 eval "ac_cv_lib_$ac_lib_var=yes"
7906else
7907 echo "configure: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7909 rm -rf conftest*
7910 eval "ac_cv_lib_$ac_lib_var=no"
7911fi
7912rm -f conftest*
7913LIBS="$ac_save_LIBS"
7914
7915fi
7916if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7917 echo "$ac_t""yes" 1>&6
7918 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7919else
7920 echo "$ac_t""no" 1>&6
7921fi
7922
7923 fi
7924
7925 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7926 echo $ac_n "checking for remove""... $ac_c" 1>&6
c733b222 7927echo "configure:7928: checking for remove" >&5
ab9b9eab
VZ
7928if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7929 echo $ac_n "(cached) $ac_c" 1>&6
7930else
7931 cat > conftest.$ac_ext <<EOF
c733b222 7932#line 7933 "configure"
ab9b9eab
VZ
7933#include "confdefs.h"
7934/* System header to define __stub macros and hopefully few prototypes,
7935 which can conflict with char remove(); below. */
7936#include <assert.h>
7937/* Override any gcc2 internal prototype to avoid an error. */
7938/* We use char because int might match the return type of a gcc2
7939 builtin and then its argument prototype would still apply. */
7940char remove();
7941
7942int main() {
7943
7944/* The GNU C library defines this for functions which it implements
7945 to always fail with ENOSYS. Some functions are actually named
7946 something starting with __ and the normal name is an alias. */
7947#if defined (__stub_remove) || defined (__stub___remove)
7948choke me
7949#else
d6a55c4b 7950remove();
ab9b9eab
VZ
7951#endif
7952
7953; return 0; }
7954EOF
c733b222 7955if { (eval echo configure:7956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7956 rm -rf conftest*
7957 eval "ac_cv_func_remove=yes"
7958else
7959 echo "configure: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7961 rm -rf conftest*
7962 eval "ac_cv_func_remove=no"
7963fi
7964rm -f conftest*
7965fi
7966
7967if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7968 echo "$ac_t""yes" 1>&6
7969 :
7970else
7971 echo "$ac_t""no" 1>&6
7972fi
7973
7974 if test $ac_cv_func_remove = no; then
7975 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
c733b222 7976echo "configure:7977: checking for remove in -lposix" >&5
ab9b9eab
VZ
7977ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7978if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7979 echo $ac_n "(cached) $ac_c" 1>&6
7980else
7981 ac_save_LIBS="$LIBS"
7982LIBS="-lposix $LIBS"
7983cat > conftest.$ac_ext <<EOF
c733b222 7984#line 7985 "configure"
ab9b9eab
VZ
7985#include "confdefs.h"
7986/* Override any gcc2 internal prototype to avoid an error. */
7987/* We use char because int might match the return type of a gcc2
7988 builtin and then its argument prototype would still apply. */
7989char remove();
7990
7991int main() {
7992remove()
7993; return 0; }
7994EOF
c733b222 7995if { (eval echo configure:7996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7996 rm -rf conftest*
7997 eval "ac_cv_lib_$ac_lib_var=yes"
7998else
7999 echo "configure: failed program was:" >&5
8000 cat conftest.$ac_ext >&5
8001 rm -rf conftest*
8002 eval "ac_cv_lib_$ac_lib_var=no"
8003fi
8004rm -f conftest*
8005LIBS="$ac_save_LIBS"
8006
8007fi
8008if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8009 echo "$ac_t""yes" 1>&6
8010 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8011else
8012 echo "$ac_t""no" 1>&6
8013fi
8014
8015 fi
8016
8017 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8018 echo $ac_n "checking for shmat""... $ac_c" 1>&6
c733b222 8019echo "configure:8020: checking for shmat" >&5
ab9b9eab
VZ
8020if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8021 echo $ac_n "(cached) $ac_c" 1>&6
8022else
8023 cat > conftest.$ac_ext <<EOF
c733b222 8024#line 8025 "configure"
ab9b9eab
VZ
8025#include "confdefs.h"
8026/* System header to define __stub macros and hopefully few prototypes,
8027 which can conflict with char shmat(); below. */
8028#include <assert.h>
8029/* Override any gcc2 internal prototype to avoid an error. */
8030/* We use char because int might match the return type of a gcc2
8031 builtin and then its argument prototype would still apply. */
8032char shmat();
8033
8034int main() {
8035
8036/* The GNU C library defines this for functions which it implements
8037 to always fail with ENOSYS. Some functions are actually named
8038 something starting with __ and the normal name is an alias. */
8039#if defined (__stub_shmat) || defined (__stub___shmat)
8040choke me
8041#else
d6a55c4b 8042shmat();
ab9b9eab
VZ
8043#endif
8044
8045; return 0; }
8046EOF
c733b222 8047if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8048 rm -rf conftest*
8049 eval "ac_cv_func_shmat=yes"
8050else
8051 echo "configure: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8053 rm -rf conftest*
8054 eval "ac_cv_func_shmat=no"
8055fi
8056rm -f conftest*
8057fi
8058
8059if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8060 echo "$ac_t""yes" 1>&6
8061 :
8062else
8063 echo "$ac_t""no" 1>&6
8064fi
8065
8066 if test $ac_cv_func_shmat = no; then
8067 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
c733b222 8068echo "configure:8069: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8069ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8070if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8071 echo $ac_n "(cached) $ac_c" 1>&6
8072else
8073 ac_save_LIBS="$LIBS"
8074LIBS="-lipc $LIBS"
8075cat > conftest.$ac_ext <<EOF
c733b222 8076#line 8077 "configure"
ab9b9eab
VZ
8077#include "confdefs.h"
8078/* Override any gcc2 internal prototype to avoid an error. */
8079/* We use char because int might match the return type of a gcc2
8080 builtin and then its argument prototype would still apply. */
8081char shmat();
8082
8083int main() {
8084shmat()
8085; return 0; }
8086EOF
c733b222 8087if { (eval echo configure:8088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8088 rm -rf conftest*
8089 eval "ac_cv_lib_$ac_lib_var=yes"
8090else
8091 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5
8093 rm -rf conftest*
8094 eval "ac_cv_lib_$ac_lib_var=no"
8095fi
8096rm -f conftest*
8097LIBS="$ac_save_LIBS"
8098
8099fi
8100if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8101 echo "$ac_t""yes" 1>&6
8102 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8103else
8104 echo "$ac_t""no" 1>&6
8105fi
8106
8107 fi
8108 fi
8109
8110 # Check for libraries that X11R6 Xt/Xaw programs need.
8111 ac_save_LDFLAGS="$LDFLAGS"
8112 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8113 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8114 # check for ICE first), but we must link in the order -lSM -lICE or
8115 # we get undefined symbols. So assume we have SM if we have ICE.
8116 # These have to be linked with before -lX11, unlike the other
8117 # libraries we check for below, so use a different variable.
8118 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8119 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
c733b222 8120echo "configure:8121: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8121ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8122if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8123 echo $ac_n "(cached) $ac_c" 1>&6
8124else
8125 ac_save_LIBS="$LIBS"
8126LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8127cat > conftest.$ac_ext <<EOF
c733b222 8128#line 8129 "configure"
ab9b9eab
VZ
8129#include "confdefs.h"
8130/* Override any gcc2 internal prototype to avoid an error. */
8131/* We use char because int might match the return type of a gcc2
8132 builtin and then its argument prototype would still apply. */
8133char IceConnectionNumber();
8134
8135int main() {
8136IceConnectionNumber()
8137; return 0; }
8138EOF
c733b222 8139if { (eval echo configure:8140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8140 rm -rf conftest*
8141 eval "ac_cv_lib_$ac_lib_var=yes"
8142else
8143 echo "configure: failed program was:" >&5
8144 cat conftest.$ac_ext >&5
8145 rm -rf conftest*
8146 eval "ac_cv_lib_$ac_lib_var=no"
8147fi
8148rm -f conftest*
8149LIBS="$ac_save_LIBS"
8150
8151fi
8152if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8153 echo "$ac_t""yes" 1>&6
8154 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8155else
8156 echo "$ac_t""no" 1>&6
8157fi
8158
8159 LDFLAGS="$ac_save_LDFLAGS"
8160
8161fi
8162
8163
8164 if test "$no_x" = "yes"; then
8165 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8166 fi
8167
8168 GUI_TK_LIBRARY="$X_LIBS"
8169 TOOLKIT_INCLUDE="$X_CFLAGS"
8170
dad6c0ea
VZ
8171 AFMINSTALL=afminstall
8172
ab9b9eab 8173
cd6d6d5b
VZ
8174 COMPILED_X_PROGRAM=0
8175
ab9b9eab 8176 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
c733b222 8177echo "configure:8178: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8178
8179ac_find_includes=
8180for ac_dir in $SEARCH_INCLUDE;
8181 do
8182 if test -f "$ac_dir/Xm/Xm.h"; then
8183 ac_find_includes=$ac_dir
8184 break
8185 fi
8186 done
8187
8188 if test "$ac_find_includes" != "" ; then
8189 echo "$ac_t""found $ac_find_includes" 1>&6
8190 else
cd6d6d5b 8191 cat > conftest.$ac_ext <<EOF
c733b222 8192#line 8193 "configure"
cd6d6d5b
VZ
8193#include "confdefs.h"
8194
8195 #include <Xm/Xm.h>
8196
8197int main() {
8198
8199 int version;
8200
8201 version = xmUseVersion;
8202
8203; return 0; }
8204EOF
c733b222 8205if { (eval echo configure:8206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8206 rm -rf conftest*
8207
8208 echo "$ac_t""found in default search path" 1>&6
8209 COMPILED_X_PROGRAM=1
8210
8211else
8212 echo "configure: failed program was:" >&5
8213 cat conftest.$ac_ext >&5
8214 rm -rf conftest*
8215
8216 echo "$ac_t""no" 1>&6
8217 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8218
8219
8220fi
8221rm -f conftest*
ab9b9eab
VZ
8222 fi
8223
cd6d6d5b
VZ
8224 if test "$COMPILED_X_PROGRAM" = 0; then
8225 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
c733b222 8226echo "configure:8227: checking for Motif/Lesstif library" >&5
cd6d6d5b 8227
ab9b9eab
VZ
8228ac_find_libraries=
8229for ac_dir in $SEARCH_LIB;
8230 do
8231 for ac_extension in a so sl; do
8232 if test -f "$ac_dir/libXm.$ac_extension"; then
8233 ac_find_libraries=$ac_dir
8234 break 2
8235 fi
8236 done
8237 done
8238
cd6d6d5b
VZ
8239 if test "$ac_find_libraries" != "" ; then
8240
ab9b9eab
VZ
8241 ac_path_to_include=$ac_find_includes
8242 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8243 result=$?
8244 if test $result = 0; then
8245 ac_path_to_include=""
8246 else
8247 ac_path_to_include="-I$ac_find_includes"
8248 fi
8249
cd6d6d5b 8250
ab9b9eab
VZ
8251 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8252 result=$?
8253 if test $result = 0; then
8254 ac_path_to_link=""
8255 else
8256 ac_path_to_link="-L$ac_find_libraries"
8257 fi
8258
8259
cd6d6d5b
VZ
8260 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8261 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8262 echo "$ac_t""found at $ac_find_libraries" 1>&6
8263 else
8264 cat > conftest.$ac_ext <<EOF
c733b222 8265#line 8266 "configure"
cd6d6d5b 8266#include "confdefs.h"
ab9b9eab 8267
cd6d6d5b
VZ
8268 #include <Xm/Xm.h>
8269
8270int main() {
ab9b9eab 8271
cd6d6d5b 8272 int version;
ab9b9eab 8273
cd6d6d5b
VZ
8274 version = xmUseVersion;
8275
8276; return 0; }
8277EOF
c733b222 8278if { (eval echo configure:8279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8279 rm -rf conftest*
8280
8281 echo "$ac_t""found in default search path" 1>&6
8282 COMPILED_X_PROGRAM=1
8283
8284else
8285 echo "configure: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8287 rm -rf conftest*
8288
8289 echo "$ac_t""no" 1>&6
8290 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8291
8292
8293fi
8294rm -f conftest*
8295 fi
ab9b9eab
VZ
8296 fi
8297
cd6d6d5b 8298
ab9b9eab
VZ
8299 XPM_LINK=""
8300 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
c733b222 8301echo "configure:8302: checking for Xpm library" >&5
ab9b9eab
VZ
8302
8303ac_find_libraries=
8304for ac_dir in $SEARCH_LIB;
8305 do
8306 for ac_extension in a so sl; do
8307 if test -f "$ac_dir/libXpm.$ac_extension"; then
8308 ac_find_libraries=$ac_dir
8309 break 2
8310 fi
8311 done
8312 done
8313
8314 if test "$ac_find_libraries" != "" ; then
8315
8316 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8317 result=$?
8318 if test $result = 0; then
8319 ac_path_to_link=""
8320 else
8321 ac_path_to_link="-L$ac_find_libraries"
8322 fi
8323
8324 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8325 XPM_LINK="-lXpm "
8326 cat >> confdefs.h <<\EOF
8327#define wxHAVE_LIB_XPM 1
8328EOF
8329
8330 echo "$ac_t""found at $ac_find_libraries" 1>&6
8331 else
cd6d6d5b 8332 cat > conftest.$ac_ext <<EOF
c733b222 8333#line 8334 "configure"
cd6d6d5b
VZ
8334#include "confdefs.h"
8335
8336 #include <X11/xpm.h>
8337
8338int main() {
8339
8340 int version;
8341
8342 version = XpmLibraryVersion();
8343
8344; return 0; }
8345EOF
c733b222 8346if { (eval echo configure:8347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8347 rm -rf conftest*
8348
c733b222
VZ
8349 XPM_LINK="-lXpm "
8350 cat >> confdefs.h <<\EOF
3ace2e6d
SN
8351#define wxHAVE_LIB_XPM 1
8352EOF
8353
8354 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
8355 COMPILED_X_PROGRAM=0
8356
8357else
8358 echo "configure: failed program was:" >&5
8359 cat conftest.$ac_ext >&5
8360 rm -rf conftest*
8361
8362 echo "$ac_t""no" 1>&6
8363 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8364
8365
8366fi
8367rm -f conftest*
ab9b9eab
VZ
8368 fi
8369
8370 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8371 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8372 TOOLKIT=MOTIF
8373
8374 GUIHEADERS="\$(MOTIF_HEADERS)"
8375 GUIOBJS="\$(MOTIF_GUIOBJS)"
8376 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8377 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8378 GUIDEPS="\$(MOTIF_GUIDEPS)"
8379 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8380 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8381 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8382 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8383 GUIDIST=MOTIF_DIST
8384fi
8385
e07802fc
VZ
8386if test "$wxUSE_PM" = 1; then
8387 TOOLKIT=PM
8388
8389 GUIOBJS="\$(PM_GUIOBJS)"
8390 GUIHEADERS="\$(PM_HEADERS)"
8391 COMMONOBJS="\$(PM_COMMONOBJS)"
8392 GENERICOBJS="\$(PM_GENERICOBJS)"
8393 GUIDEPS="\$(PM_GUIDEPS)"
8394 COMMONDEPS="\$(PM_COMMONDEPS)"
8395 GENERICDEPS="\$(PM_GENERICDEPS)"
8396 UNIXOBJS=
8397 UNIXDEPS=
8398 GUIDIST=GTK_DIST
8399fi
8400
8401if test "$TOOLKIT" != "PM" ; then
ec14dd32 8402 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8403else
8404 TOOLKIT_DIR="os2"
8405fi
10f2d63a 8406
2224580a 8407 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 8408
2224580a 8409 WX_LIBRARY="wx_${TOOLKIT_DIR}"
10f2d63a 8410
3fcdd07b
VZ
8411 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS)"
8412
b089607b 8413 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
8414 if test "$wxUSE_ODBC" = "yes" ; then
8415 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8416 fi
3fcdd07b
VZ
8417 fi
8418
d9d8273d 8419 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 8420 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
8421 fi
8422 if test "$wxUSE_LIBTIFF" = "yes" ; then
8423 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8424 fi
8425 if test "$wxUSE_LIBPNG" = "yes" ; then
8426 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8427 fi
8428 if test "$wxUSE_ZLIB" = "yes" ; then
8429 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8430 fi
10f2d63a 8431 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
2224580a
VZ
8432
8433 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8434 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8435 RPM_SPEC="wx\$(TOOLKIT).spec"
8436
8437 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8438 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 8439else
dad6c0ea
VZ
8440 USE_GUI=0
8441
07eb77a6
RL
8442 TOOLKIT_DIR="base"
8443 TOOLKIT_DEF="-D__WXBASE__"
8444
2224580a
VZ
8445 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8446 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
10f2d63a
VZ
8447
8448 WX_LIBRARY="wxbase"
2224580a
VZ
8449
8450 PORT_FILES="src/files.lst"
8451 RPM_FILES="src/rpmfiles.lst"
8452 RPM_SPEC="wxBase.spec"
8453
8454 GUIDIST="BASE_DIST"
8455 DISTDIR="wxBase"
10f2d63a
VZ
8456fi
8457
8458WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8459
8460WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8461
8462WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8463
8464WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8465WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8466WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8467
8468SHARED_LD=
8469PIC_FLAG=
8470WX_ALL=
8471WX_ALL_INSTALLED=
1d62a8b4 8472BURNT_LIBRARY_NAME=
10f2d63a 8473
b12915c1 8474
10f2d63a
VZ
8475if test "$wxUSE_SHARED" = "yes"; then
8476 case "${host}" in
8477 *-hp-hpux* )
8478 if test "$GCC" = yes ; then
69ffe1d2 8479 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8480 PIC_FLAG="-fPIC"
8481 else
8482 SHARED_LD="${CXX} -b -o"
8483 PIC_FLAG="+Z"
8484 fi
8485 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8486 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8487 ;;
b12915c1
VZ
8488
8489 *-*-linux* )
10f2d63a
VZ
8490 SHARED_LD="${CC} -shared -o"
8491 PIC_FLAG="-fPIC"
8492 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8493 WX_ALL="CREATE_LINKS"
00cf1208 8494 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 8495 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
00cf1208
RR
8496 fi
8497 ;;
10f2d63a
VZ
8498 *-*-irix5* | *-*-irix6* )
8499 if test "$GCC" = yes ; then
8500 SHARED_LD="${CC} -shared -o"
8501 PIC_FLAG="-fPIC"
8502 else
8503 SHARED_LD="${CXX} -shared -o"
8504 fi
8505 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8506 WX_ALL="CREATE_LINKS"
8507 ;;
8508 *-*-solaris2* )
8509 if test "$GCC" = yes ; then
8510 SHARED_LD="${CC} -shared -o"
8511 PIC_FLAG="-fPIC"
8512 else
8513 SHARED_LD="${CXX} -G -o"
8514 PIC_FLAG="-KPIC"
8515 fi
8516 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8517 WX_ALL="CREATE_LINKS"
8518 ;;
8519 *-*-sunos4* )
8520 SHARED_LD="${CC} -shared -o"
8521 PIC_FLAG="-fPIC"
8522 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8523 WX_ALL="CREATE_LINKS"
8524 ;;
8525 *-*-freebsd* | *-*-netbsd*)
8526 SHARED_LD="${CC} -shared -o"
8527 PIC_FLAG="-fPIC"
8528 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8529 WX_ALL="CREATE_LINKS"
8530 ;;
8531 *-*-osf* )
8532 SHARED_LD="${CXX} -shared -o"
8533 PIC_FLAG="-fPIC"
8534 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8535 WX_ALL="CREATE_LINKS"
8536 ;;
8537 *-*-dgux5* )
8538 SHARED_LD="${CXX} -shared -o"
8539 PIC_FLAG="-fPIC"
8540 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8541 WX_ALL="CREATE_LINKS"
8542 ;;
8543 *-*-sysv5* )
8544 SHARED_LD="${CC} -shared -o"
8545 PIC_FLAG="-fPIC"
8546 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8547 WX_ALL="CREATE_LINKS"
8548 ;;
8549 *-*-aix* )
8550 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8551 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8552 ;;
8553 *-*-cygwin32* )
8554 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8555 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8556 ;;
b12915c1 8557 *-*-mingw32* )
10f2d63a
VZ
8558 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8559 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8560 ;;
8561 *-pc-os2_emx )
e07802fc
VZ
8562 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8563 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 8564 ;;
b12915c1 8565 *-*-beos* )
e2b8b066 8566 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
8567 PIC_FLAG="-fPIC"
8568 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8569 WX_ALL="CREATE_LINKS"
8570 ;;
10f2d63a
VZ
8571 *)
8572 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8573 esac
8574
8575 if test "x$WX_TARGET_LIBRARY" = "x"; then
8576 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8577 fi
8578else
8579 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8580 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8581fi
8582
8583
8584for ac_hdr in strings.h
8585do
8586ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8587echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c733b222 8588echo "configure:8589: checking for $ac_hdr" >&5
10f2d63a
VZ
8589if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8590 echo $ac_n "(cached) $ac_c" 1>&6
8591else
8592 cat > conftest.$ac_ext <<EOF
c733b222 8593#line 8594 "configure"
10f2d63a
VZ
8594#include "confdefs.h"
8595#include <$ac_hdr>
8596EOF
8597ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 8598{ (eval echo configure:8599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8599ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8600if test -z "$ac_err"; then
8601 rm -rf conftest*
8602 eval "ac_cv_header_$ac_safe=yes"
8603else
8604 echo "$ac_err" >&5
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8607 rm -rf conftest*
8608 eval "ac_cv_header_$ac_safe=no"
8609fi
8610rm -f conftest*
8611fi
8612if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8613 echo "$ac_t""yes" 1>&6
8614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8615 cat >> confdefs.h <<EOF
8616#define $ac_tr_hdr 1
8617EOF
8618
8619else
8620 echo "$ac_t""no" 1>&6
8621fi
8622done
8623
8624for ac_hdr in unistd.h
8625do
8626ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8627echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c733b222 8628echo "configure:8629: checking for $ac_hdr" >&5
10f2d63a
VZ
8629if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8630 echo $ac_n "(cached) $ac_c" 1>&6
8631else
8632 cat > conftest.$ac_ext <<EOF
c733b222 8633#line 8634 "configure"
10f2d63a
VZ
8634#include "confdefs.h"
8635#include <$ac_hdr>
8636EOF
8637ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 8638{ (eval echo configure:8639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8639ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8640if test -z "$ac_err"; then
8641 rm -rf conftest*
8642 eval "ac_cv_header_$ac_safe=yes"
8643else
8644 echo "$ac_err" >&5
8645 echo "configure: failed program was:" >&5
8646 cat conftest.$ac_ext >&5
8647 rm -rf conftest*
8648 eval "ac_cv_header_$ac_safe=no"
8649fi
8650rm -f conftest*
8651fi
8652if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8653 echo "$ac_t""yes" 1>&6
8654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8655 cat >> confdefs.h <<EOF
8656#define $ac_tr_hdr 1
8657EOF
8658
8659else
8660 echo "$ac_t""no" 1>&6
8661fi
8662done
8663
8664for ac_hdr in wchar.h
8665do
8666ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8667echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c733b222 8668echo "configure:8669: checking for $ac_hdr" >&5
10f2d63a
VZ
8669if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8670 echo $ac_n "(cached) $ac_c" 1>&6
8671else
8672 cat > conftest.$ac_ext <<EOF
c733b222 8673#line 8674 "configure"
10f2d63a
VZ
8674#include "confdefs.h"
8675#include <$ac_hdr>
8676EOF
8677ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 8678{ (eval echo configure:8679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8679ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8680if test -z "$ac_err"; then
8681 rm -rf conftest*
8682 eval "ac_cv_header_$ac_safe=yes"
8683else
8684 echo "$ac_err" >&5
8685 echo "configure: failed program was:" >&5
8686 cat conftest.$ac_ext >&5
8687 rm -rf conftest*
8688 eval "ac_cv_header_$ac_safe=no"
8689fi
8690rm -f conftest*
8691fi
8692if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8693 echo "$ac_t""yes" 1>&6
8694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8695 cat >> confdefs.h <<EOF
8696#define $ac_tr_hdr 1
8697EOF
8698
8699else
8700 echo "$ac_t""no" 1>&6
8701fi
8702done
8703
8704for ac_hdr in wcstr.h
8705do
8706ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8707echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c733b222 8708echo "configure:8709: checking for $ac_hdr" >&5
10f2d63a
VZ
8709if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8710 echo $ac_n "(cached) $ac_c" 1>&6
8711else
8712 cat > conftest.$ac_ext <<EOF
c733b222 8713#line 8714 "configure"
10f2d63a
VZ
8714#include "confdefs.h"
8715#include <$ac_hdr>
8716EOF
8717ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 8718{ (eval echo configure:8719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8719ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8720if test -z "$ac_err"; then
8721 rm -rf conftest*
8722 eval "ac_cv_header_$ac_safe=yes"
8723else
8724 echo "$ac_err" >&5
8725 echo "configure: failed program was:" >&5
8726 cat conftest.$ac_ext >&5
8727 rm -rf conftest*
8728 eval "ac_cv_header_$ac_safe=no"
8729fi
8730rm -f conftest*
8731fi
8732if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8733 echo "$ac_t""yes" 1>&6
8734 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8735 cat >> confdefs.h <<EOF
8736#define $ac_tr_hdr 1
8737EOF
8738
8739else
8740 echo "$ac_t""no" 1>&6
8741fi
8742done
8743
8744for ac_hdr in fnmatch.h
8745do
8746ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8747echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c733b222 8748echo "configure:8749: checking for $ac_hdr" >&5
10f2d63a
VZ
8749if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8750 echo $ac_n "(cached) $ac_c" 1>&6
8751else
8752 cat > conftest.$ac_ext <<EOF
c733b222 8753#line 8754 "configure"
10f2d63a
VZ
8754#include "confdefs.h"
8755#include <$ac_hdr>
8756EOF
8757ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 8758{ (eval echo configure:8759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8759ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8760if test -z "$ac_err"; then
8761 rm -rf conftest*
8762 eval "ac_cv_header_$ac_safe=yes"
8763else
8764 echo "$ac_err" >&5
8765 echo "configure: failed program was:" >&5
8766 cat conftest.$ac_ext >&5
8767 rm -rf conftest*
8768 eval "ac_cv_header_$ac_safe=no"
8769fi
8770rm -f conftest*
8771fi
8772if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8773 echo "$ac_t""yes" 1>&6
8774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8775 cat >> confdefs.h <<EOF
8776#define $ac_tr_hdr 1
8777EOF
8778
8779else
8780 echo "$ac_t""no" 1>&6
8781fi
8782done
8783
8784
8785if test "$wxUSE_GUI" = "yes"; then
8786 for ac_hdr in X11/XKBlib.h
8787do
8788ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8789echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c733b222 8790echo "configure:8791: checking for $ac_hdr" >&5
10f2d63a
VZ
8791if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8792 echo $ac_n "(cached) $ac_c" 1>&6
8793else
8794 cat > conftest.$ac_ext <<EOF
c733b222 8795#line 8796 "configure"
10f2d63a
VZ
8796#include "confdefs.h"
8797#include <$ac_hdr>
8798EOF
8799ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 8800{ (eval echo configure:8801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8801ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8802if test -z "$ac_err"; then
8803 rm -rf conftest*
8804 eval "ac_cv_header_$ac_safe=yes"
8805else
8806 echo "$ac_err" >&5
8807 echo "configure: failed program was:" >&5
8808 cat conftest.$ac_ext >&5
8809 rm -rf conftest*
8810 eval "ac_cv_header_$ac_safe=no"
8811fi
8812rm -f conftest*
8813fi
8814if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8815 echo "$ac_t""yes" 1>&6
8816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8817 cat >> confdefs.h <<EOF
8818#define $ac_tr_hdr 1
8819EOF
8820
8821else
8822 echo "$ac_t""no" 1>&6
8823fi
8824done
8825
8826fi
8827
8828
8829echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
c733b222 8830echo "configure:8831: checking for ANSI C header files" >&5
10f2d63a
VZ
8831if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8832 echo $ac_n "(cached) $ac_c" 1>&6
8833else
8834 cat > conftest.$ac_ext <<EOF
c733b222 8835#line 8836 "configure"
10f2d63a
VZ
8836#include "confdefs.h"
8837#include <stdlib.h>
8838#include <stdarg.h>
8839#include <string.h>
8840#include <float.h>
8841EOF
8842ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 8843{ (eval echo configure:8844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8844ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8845if test -z "$ac_err"; then
8846 rm -rf conftest*
8847 ac_cv_header_stdc=yes
8848else
8849 echo "$ac_err" >&5
8850 echo "configure: failed program was:" >&5
8851 cat conftest.$ac_ext >&5
8852 rm -rf conftest*
8853 ac_cv_header_stdc=no
8854fi
8855rm -f conftest*
8856
8857if test $ac_cv_header_stdc = yes; then
8858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8859cat > conftest.$ac_ext <<EOF
c733b222 8860#line 8861 "configure"
10f2d63a
VZ
8861#include "confdefs.h"
8862#include <string.h>
8863EOF
8864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8865 egrep "memchr" >/dev/null 2>&1; then
8866 :
8867else
8868 rm -rf conftest*
8869 ac_cv_header_stdc=no
8870fi
8871rm -f conftest*
8872
8873fi
8874
8875if test $ac_cv_header_stdc = yes; then
8876 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8877cat > conftest.$ac_ext <<EOF
c733b222 8878#line 8879 "configure"
10f2d63a
VZ
8879#include "confdefs.h"
8880#include <stdlib.h>
8881EOF
8882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8883 egrep "free" >/dev/null 2>&1; then
8884 :
8885else
8886 rm -rf conftest*
8887 ac_cv_header_stdc=no
8888fi
8889rm -f conftest*
8890
8891fi
8892
8893if test $ac_cv_header_stdc = yes; then
8894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8895if test "$cross_compiling" = yes; then
8896 :
8897else
8898 cat > conftest.$ac_ext <<EOF
c733b222 8899#line 8900 "configure"
10f2d63a
VZ
8900#include "confdefs.h"
8901#include <ctype.h>
8902#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8903#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8904#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8905int main () { int i; for (i = 0; i < 256; i++)
8906if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8907exit (0); }
8908
8909EOF
c733b222 8910if { (eval echo configure:8911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8911then
8912 :
8913else
8914 echo "configure: failed program was:" >&5
8915 cat conftest.$ac_ext >&5
8916 rm -fr conftest*
8917 ac_cv_header_stdc=no
8918fi
8919rm -fr conftest*
8920fi
8921
8922fi
8923fi
8924
8925echo "$ac_t""$ac_cv_header_stdc" 1>&6
8926if test $ac_cv_header_stdc = yes; then
8927 cat >> confdefs.h <<\EOF
8928#define STDC_HEADERS 1
8929EOF
8930
8931fi
8932
8933echo $ac_n "checking for mode_t""... $ac_c" 1>&6
c733b222 8934echo "configure:8935: checking for mode_t" >&5
10f2d63a
VZ
8935if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8937else
8938 cat > conftest.$ac_ext <<EOF
c733b222 8939#line 8940 "configure"
10f2d63a
VZ
8940#include "confdefs.h"
8941#include <sys/types.h>
8942#if STDC_HEADERS
8943#include <stdlib.h>
8944#include <stddef.h>
8945#endif
8946EOF
8947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8948 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8949 rm -rf conftest*
8950 ac_cv_type_mode_t=yes
8951else
8952 rm -rf conftest*
8953 ac_cv_type_mode_t=no
8954fi
8955rm -f conftest*
8956
8957fi
8958echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8959if test $ac_cv_type_mode_t = no; then
8960 cat >> confdefs.h <<\EOF
8961#define mode_t int
8962EOF
8963
8964fi
8965
8966echo $ac_n "checking for off_t""... $ac_c" 1>&6
c733b222 8967echo "configure:8968: checking for off_t" >&5
10f2d63a
VZ
8968if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8969 echo $ac_n "(cached) $ac_c" 1>&6
8970else
8971 cat > conftest.$ac_ext <<EOF
c733b222 8972#line 8973 "configure"
10f2d63a
VZ
8973#include "confdefs.h"
8974#include <sys/types.h>
8975#if STDC_HEADERS
8976#include <stdlib.h>
8977#include <stddef.h>
8978#endif
8979EOF
8980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8981 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8982 rm -rf conftest*
8983 ac_cv_type_off_t=yes
8984else
8985 rm -rf conftest*
8986 ac_cv_type_off_t=no
8987fi
8988rm -f conftest*
8989
8990fi
8991echo "$ac_t""$ac_cv_type_off_t" 1>&6
8992if test $ac_cv_type_off_t = no; then
8993 cat >> confdefs.h <<\EOF
8994#define off_t long
8995EOF
8996
8997fi
8998
8999echo $ac_n "checking for pid_t""... $ac_c" 1>&6
c733b222 9000echo "configure:9001: checking for pid_t" >&5
10f2d63a
VZ
9001if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9002 echo $ac_n "(cached) $ac_c" 1>&6
9003else
9004 cat > conftest.$ac_ext <<EOF
c733b222 9005#line 9006 "configure"
10f2d63a
VZ
9006#include "confdefs.h"
9007#include <sys/types.h>
9008#if STDC_HEADERS
9009#include <stdlib.h>
9010#include <stddef.h>
9011#endif
9012EOF
9013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9014 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9015 rm -rf conftest*
9016 ac_cv_type_pid_t=yes
9017else
9018 rm -rf conftest*
9019 ac_cv_type_pid_t=no
9020fi
9021rm -f conftest*
9022
9023fi
9024echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9025if test $ac_cv_type_pid_t = no; then
9026 cat >> confdefs.h <<\EOF
9027#define pid_t int
9028EOF
9029
9030fi
9031
9032echo $ac_n "checking for size_t""... $ac_c" 1>&6
c733b222 9033echo "configure:9034: checking for size_t" >&5
10f2d63a
VZ
9034if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9035 echo $ac_n "(cached) $ac_c" 1>&6
9036else
9037 cat > conftest.$ac_ext <<EOF
c733b222 9038#line 9039 "configure"
10f2d63a
VZ
9039#include "confdefs.h"
9040#include <sys/types.h>
9041#if STDC_HEADERS
9042#include <stdlib.h>
9043#include <stddef.h>
9044#endif
9045EOF
9046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9047 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9048 rm -rf conftest*
9049 ac_cv_type_size_t=yes
9050else
9051 rm -rf conftest*
9052 ac_cv_type_size_t=no
9053fi
9054rm -f conftest*
9055
9056fi
9057echo "$ac_t""$ac_cv_type_size_t" 1>&6
9058if test $ac_cv_type_size_t = no; then
9059 cat >> confdefs.h <<\EOF
9060#define size_t unsigned
9061EOF
9062
9063fi
9064
9065echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
c733b222 9066echo "configure:9067: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
9067if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9068 echo $ac_n "(cached) $ac_c" 1>&6
9069else
9070 cat > conftest.$ac_ext <<EOF
c733b222 9071#line 9072 "configure"
10f2d63a
VZ
9072#include "confdefs.h"
9073#include <sys/types.h>
9074EOF
9075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9076 egrep "uid_t" >/dev/null 2>&1; then
9077 rm -rf conftest*
9078 ac_cv_type_uid_t=yes
9079else
9080 rm -rf conftest*
9081 ac_cv_type_uid_t=no
9082fi
9083rm -f conftest*
9084
9085fi
9086
9087echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9088if test $ac_cv_type_uid_t = no; then
9089 cat >> confdefs.h <<\EOF
9090#define uid_t int
9091EOF
9092
9093 cat >> confdefs.h <<\EOF
9094#define gid_t int
9095EOF
9096
9097fi
9098
9099
9100
b12915c1 9101echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
c733b222 9102echo "configure:9103: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
9103if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9104 echo $ac_n "(cached) $ac_c" 1>&6
9105else
9106
9107 cat > conftest.$ac_ext <<EOF
c733b222 9108#line 9109 "configure"
b12915c1
VZ
9109#include "confdefs.h"
9110#include <pwd.h>
9111int main() {
9112
9113 char *p;
9114 struct passwd *pw;
9115 p = pw->pw_gecos;
9116
9117; return 0; }
9118EOF
c733b222 9119if { (eval echo configure:9120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
9120 rm -rf conftest*
9121
9122 wx_cv_struct_pw_gecos=yes
9123 cat >> confdefs.h <<\EOF
9124#define HAVE_PW_GECOS 1
9125EOF
9126
9127
9128else
9129 echo "configure: failed program was:" >&5
9130 cat conftest.$ac_ext >&5
9131 rm -rf conftest*
9132
9133 wx_cv_struct_pw_gecos=no
9134
9135
9136fi
9137rm -f conftest*
9138
9139
9140fi
9141
9142echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9143
10f2d63a
VZ
9144
9145echo $ac_n "checking for working const""... $ac_c" 1>&6
c733b222 9146echo "configure:9147: checking for working const" >&5
10f2d63a
VZ
9147if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9148 echo $ac_n "(cached) $ac_c" 1>&6
9149else
9150 cat > conftest.$ac_ext <<EOF
c733b222 9151#line 9152 "configure"
10f2d63a
VZ
9152#include "confdefs.h"
9153
9154int main() {
9155
9156/* Ultrix mips cc rejects this. */
24528b0c 9157typedef int charset[2]; const charset x;
10f2d63a
VZ
9158/* SunOS 4.1.1 cc rejects this. */
9159char const *const *ccp;
9160char **p;
9161/* NEC SVR4.0.2 mips cc rejects this. */
9162struct point {int x, y;};
9163static struct point const zero = {0,0};
9164/* AIX XL C 1.02.0.0 rejects this.
9165 It does not let you subtract one const X* pointer from another in an arm
9166 of an if-expression whose if-part is not a constant expression */
9167const char *g = "string";
9168ccp = &g + (g ? g-g : 0);
9169/* HPUX 7.0 cc rejects these. */
9170++ccp;
9171p = (char**) ccp;
9172ccp = (char const *const *) p;
9173{ /* SCO 3.2v4 cc rejects this. */
9174 char *t;
9175 char const *s = 0 ? (char *) 0 : (char const *) 0;
9176
9177 *t++ = 0;
9178}
9179{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9180 int x[] = {25, 17};
9181 const int *foo = &x[0];
9182 ++foo;
9183}
9184{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9185 typedef const int *iptr;
9186 iptr p = 0;
9187 ++p;
9188}
9189{ /* AIX XL C 1.02.0.0 rejects this saying
9190 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9191 struct s { int j; const int *ap[3]; };
9192 struct s *b; b->j = 5;
9193}
9194{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9195 const int foo = 10;
9196}
9197
9198; return 0; }
9199EOF
c733b222 9200if { (eval echo configure:9201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9201 rm -rf conftest*
9202 ac_cv_c_const=yes
9203else
9204 echo "configure: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9206 rm -rf conftest*
9207 ac_cv_c_const=no
9208fi
9209rm -f conftest*
9210fi
9211
9212echo "$ac_t""$ac_cv_c_const" 1>&6
9213if test $ac_cv_c_const = no; then
9214 cat >> confdefs.h <<\EOF
9215#define const
9216EOF
9217
9218fi
9219
9220echo $ac_n "checking for inline""... $ac_c" 1>&6
c733b222 9221echo "configure:9222: checking for inline" >&5
10f2d63a
VZ
9222if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9223 echo $ac_n "(cached) $ac_c" 1>&6
9224else
9225 ac_cv_c_inline=no
9226for ac_kw in inline __inline__ __inline; do
9227 cat > conftest.$ac_ext <<EOF
c733b222 9228#line 9229 "configure"
10f2d63a
VZ
9229#include "confdefs.h"
9230
9231int main() {
24528b0c 9232} $ac_kw foo() {
10f2d63a
VZ
9233; return 0; }
9234EOF
c733b222 9235if { (eval echo configure:9236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9236 rm -rf conftest*
9237 ac_cv_c_inline=$ac_kw; break
9238else
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9241fi
9242rm -f conftest*
9243done
9244
9245fi
9246
9247echo "$ac_t""$ac_cv_c_inline" 1>&6
9248case "$ac_cv_c_inline" in
9249 inline | yes) ;;
9250 no) cat >> confdefs.h <<\EOF
9251#define inline
9252EOF
9253 ;;
9254 *) cat >> confdefs.h <<EOF
9255#define inline $ac_cv_c_inline
9256EOF
9257 ;;
9258esac
9259
9260
9261echo $ac_n "checking size of char""... $ac_c" 1>&6
c733b222 9262echo "configure:9263: checking size of char" >&5
10f2d63a
VZ
9263if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9264 echo $ac_n "(cached) $ac_c" 1>&6
9265else
9266 if test "$cross_compiling" = yes; then
9267 ac_cv_sizeof_char=1
9268else
9269 cat > conftest.$ac_ext <<EOF
c733b222 9270#line 9271 "configure"
10f2d63a
VZ
9271#include "confdefs.h"
9272#include <stdio.h>
9273main()
9274{
9275 FILE *f=fopen("conftestval", "w");
9276 if (!f) exit(1);
9277 fprintf(f, "%d\n", sizeof(char));
9278 exit(0);
9279}
9280EOF
c733b222 9281if { (eval echo configure:9282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9282then
9283 ac_cv_sizeof_char=`cat conftestval`
9284else
9285 echo "configure: failed program was:" >&5
9286 cat conftest.$ac_ext >&5
9287 rm -fr conftest*
9288 ac_cv_sizeof_char=0
9289fi
9290rm -fr conftest*
9291fi
9292
9293fi
9294echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9295cat >> confdefs.h <<EOF
9296#define SIZEOF_CHAR $ac_cv_sizeof_char
9297EOF
9298
9299
9300echo $ac_n "checking size of short""... $ac_c" 1>&6
c733b222 9301echo "configure:9302: checking size of short" >&5
10f2d63a
VZ
9302if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9303 echo $ac_n "(cached) $ac_c" 1>&6
9304else
9305 if test "$cross_compiling" = yes; then
9306 ac_cv_sizeof_short=2
9307else
9308 cat > conftest.$ac_ext <<EOF
c733b222 9309#line 9310 "configure"
10f2d63a
VZ
9310#include "confdefs.h"
9311#include <stdio.h>
9312main()
9313{
9314 FILE *f=fopen("conftestval", "w");
9315 if (!f) exit(1);
9316 fprintf(f, "%d\n", sizeof(short));
9317 exit(0);
9318}
9319EOF
c733b222 9320if { (eval echo configure:9321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9321then
9322 ac_cv_sizeof_short=`cat conftestval`
9323else
9324 echo "configure: failed program was:" >&5
9325 cat conftest.$ac_ext >&5
9326 rm -fr conftest*
9327 ac_cv_sizeof_short=0
9328fi
9329rm -fr conftest*
9330fi
9331
9332fi
9333echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9334cat >> confdefs.h <<EOF
9335#define SIZEOF_SHORT $ac_cv_sizeof_short
9336EOF
9337
9338
9339echo $ac_n "checking size of int *""... $ac_c" 1>&6
c733b222 9340echo "configure:9341: checking size of int *" >&5
10f2d63a
VZ
9341if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9342 echo $ac_n "(cached) $ac_c" 1>&6
9343else
9344 if test "$cross_compiling" = yes; then
9345 ac_cv_sizeof_int_p=4
9346else
9347 cat > conftest.$ac_ext <<EOF
c733b222 9348#line 9349 "configure"
10f2d63a
VZ
9349#include "confdefs.h"
9350#include <stdio.h>
9351main()
9352{
9353 FILE *f=fopen("conftestval", "w");
9354 if (!f) exit(1);
9355 fprintf(f, "%d\n", sizeof(int *));
9356 exit(0);
9357}
9358EOF
c733b222 9359if { (eval echo configure:9360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9360then
9361 ac_cv_sizeof_int_p=`cat conftestval`
9362else
9363 echo "configure: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9365 rm -fr conftest*
9366 ac_cv_sizeof_int_p=0
9367fi
9368rm -fr conftest*
9369fi
9370
9371fi
9372echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9373cat >> confdefs.h <<EOF
9374#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9375EOF
9376
9377
9378echo $ac_n "checking size of int""... $ac_c" 1>&6
c733b222 9379echo "configure:9380: checking size of int" >&5
10f2d63a
VZ
9380if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9381 echo $ac_n "(cached) $ac_c" 1>&6
9382else
9383 if test "$cross_compiling" = yes; then
9384 ac_cv_sizeof_int=4
9385else
9386 cat > conftest.$ac_ext <<EOF
c733b222 9387#line 9388 "configure"
10f2d63a
VZ
9388#include "confdefs.h"
9389#include <stdio.h>
9390main()
9391{
9392 FILE *f=fopen("conftestval", "w");
9393 if (!f) exit(1);
9394 fprintf(f, "%d\n", sizeof(int));
9395 exit(0);
9396}
9397EOF
c733b222 9398if { (eval echo configure:9399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9399then
9400 ac_cv_sizeof_int=`cat conftestval`
9401else
9402 echo "configure: failed program was:" >&5
9403 cat conftest.$ac_ext >&5
9404 rm -fr conftest*
9405 ac_cv_sizeof_int=0
9406fi
9407rm -fr conftest*
9408fi
9409
9410fi
9411echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9412cat >> confdefs.h <<EOF
9413#define SIZEOF_INT $ac_cv_sizeof_int
9414EOF
9415
9416
9417echo $ac_n "checking size of long""... $ac_c" 1>&6
c733b222 9418echo "configure:9419: checking size of long" >&5
10f2d63a
VZ
9419if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9420 echo $ac_n "(cached) $ac_c" 1>&6
9421else
9422 if test "$cross_compiling" = yes; then
9423 ac_cv_sizeof_long=4
9424else
9425 cat > conftest.$ac_ext <<EOF
c733b222 9426#line 9427 "configure"
10f2d63a
VZ
9427#include "confdefs.h"
9428#include <stdio.h>
9429main()
9430{
9431 FILE *f=fopen("conftestval", "w");
9432 if (!f) exit(1);
9433 fprintf(f, "%d\n", sizeof(long));
9434 exit(0);
9435}
9436EOF
c733b222 9437if { (eval echo configure:9438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9438then
9439 ac_cv_sizeof_long=`cat conftestval`
9440else
9441 echo "configure: failed program was:" >&5
9442 cat conftest.$ac_ext >&5
9443 rm -fr conftest*
9444 ac_cv_sizeof_long=0
9445fi
9446rm -fr conftest*
9447fi
9448
9449fi
9450echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9451cat >> confdefs.h <<EOF
9452#define SIZEOF_LONG $ac_cv_sizeof_long
9453EOF
9454
9455
9456echo $ac_n "checking size of long long""... $ac_c" 1>&6
c733b222 9457echo "configure:9458: checking size of long long" >&5
10f2d63a
VZ
9458if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9459 echo $ac_n "(cached) $ac_c" 1>&6
9460else
9461 if test "$cross_compiling" = yes; then
9462 ac_cv_sizeof_long_long=0
9463else
9464 cat > conftest.$ac_ext <<EOF
c733b222 9465#line 9466 "configure"
10f2d63a
VZ
9466#include "confdefs.h"
9467#include <stdio.h>
9468main()
9469{
9470 FILE *f=fopen("conftestval", "w");
9471 if (!f) exit(1);
9472 fprintf(f, "%d\n", sizeof(long long));
9473 exit(0);
9474}
9475EOF
c733b222 9476if { (eval echo configure:9477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9477then
9478 ac_cv_sizeof_long_long=`cat conftestval`
9479else
9480 echo "configure: failed program was:" >&5
9481 cat conftest.$ac_ext >&5
9482 rm -fr conftest*
9483 ac_cv_sizeof_long_long=0
9484fi
9485rm -fr conftest*
9486fi
9487
9488fi
9489echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9490cat >> confdefs.h <<EOF
9491#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9492EOF
9493
9494
9495
9496echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
c733b222 9497echo "configure:9498: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9498if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9499 echo $ac_n "(cached) $ac_c" 1>&6
9500else
9501 ac_cv_c_bigendian=unknown
9502# See if sys/param.h defines the BYTE_ORDER macro.
9503cat > conftest.$ac_ext <<EOF
c733b222 9504#line 9505 "configure"
10f2d63a
VZ
9505#include "confdefs.h"
9506#include <sys/types.h>
9507#include <sys/param.h>
9508int main() {
9509
9510#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9511 bogus endian macros
9512#endif
9513; return 0; }
9514EOF
c733b222 9515if { (eval echo configure:9516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9516 rm -rf conftest*
9517 # It does; now see whether it defined to BIG_ENDIAN or not.
9518cat > conftest.$ac_ext <<EOF
c733b222 9519#line 9520 "configure"
10f2d63a
VZ
9520#include "confdefs.h"
9521#include <sys/types.h>
9522#include <sys/param.h>
9523int main() {
9524
9525#if BYTE_ORDER != BIG_ENDIAN
9526 not big endian
9527#endif
9528; return 0; }
9529EOF
c733b222 9530if { (eval echo configure:9531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9531 rm -rf conftest*
9532 ac_cv_c_bigendian=yes
9533else
9534 echo "configure: failed program was:" >&5
9535 cat conftest.$ac_ext >&5
9536 rm -rf conftest*
9537 ac_cv_c_bigendian=no
9538fi
9539rm -f conftest*
9540else
9541 echo "configure: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9543fi
9544rm -f conftest*
9545if test $ac_cv_c_bigendian = unknown; then
9546if test "$cross_compiling" = yes; then
9547 ac_cv_c_bigendian=unknown
9548else
9549 cat > conftest.$ac_ext <<EOF
c733b222 9550#line 9551 "configure"
10f2d63a
VZ
9551#include "confdefs.h"
9552main () {
9553 /* Are we little or big endian? From Harbison&Steele. */
9554 union
9555 {
9556 long l;
9557 char c[sizeof (long)];
9558 } u;
9559 u.l = 1;
9560 exit (u.c[sizeof (long) - 1] == 1);
9561}
9562EOF
c733b222 9563if { (eval echo configure:9564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9564then
9565 ac_cv_c_bigendian=no
9566else
9567 echo "configure: failed program was:" >&5
9568 cat conftest.$ac_ext >&5
9569 rm -fr conftest*
9570 ac_cv_c_bigendian=yes
9571fi
9572rm -fr conftest*
9573fi
9574
9575fi
9576fi
9577
9578echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9579if test $ac_cv_c_bigendian = unknown; then
9580 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
9581fi
9582if test $ac_cv_c_bigendian = yes; then
9583 cat >> confdefs.h <<\EOF
9584#define WORDS_BIGENDIAN 1
9585EOF
9586
9587fi
9588
9589
9590
9591 if test "$cross_compiling" = "yes"; then
9592 cat >> confdefs.h <<\EOF
9593#define wxUSE_IOSTREAMH 1
9594EOF
9595
9596 else
9597
9598 ac_ext=C
9599# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9600ac_cpp='$CXXCPP $CPPFLAGS'
9601ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9602ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9603cross_compiling=$ac_cv_prog_cxx_cross
9604
9605
9606 for ac_hdr in iostream
9607do
9608ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9609echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c733b222 9610echo "configure:9611: checking for $ac_hdr" >&5
10f2d63a
VZ
9611if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9612 echo $ac_n "(cached) $ac_c" 1>&6
9613else
9614 cat > conftest.$ac_ext <<EOF
c733b222 9615#line 9616 "configure"
10f2d63a
VZ
9616#include "confdefs.h"
9617#include <$ac_hdr>
9618EOF
9619ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 9620{ (eval echo configure:9621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9621ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9622if test -z "$ac_err"; then
9623 rm -rf conftest*
9624 eval "ac_cv_header_$ac_safe=yes"
9625else
9626 echo "$ac_err" >&5
9627 echo "configure: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9629 rm -rf conftest*
9630 eval "ac_cv_header_$ac_safe=no"
9631fi
9632rm -f conftest*
9633fi
9634if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9635 echo "$ac_t""yes" 1>&6
9636 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9637 cat >> confdefs.h <<EOF
9638#define $ac_tr_hdr 1
9639EOF
9640
9641else
9642 echo "$ac_t""no" 1>&6
9643fi
9644done
9645
9646
9647 if test "x$HAVE_IOSTREAM" = x ; then
9648 cat >> confdefs.h <<\EOF
9649#define wxUSE_IOSTREAMH 1
9650EOF
9651
9652 else
9653 :
9654 fi
9655
9656 ac_ext=c
9657# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9658ac_cpp='$CPP $CPPFLAGS'
9659ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9660ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9661cross_compiling=$ac_cv_prog_cc_cross
9662
9663 fi
9664
9665
9666
9667 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
c733b222 9668echo "configure:9669: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9669if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9670 echo $ac_n "(cached) $ac_c" 1>&6
9671else
9672
9673
9674 ac_ext=C
9675# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9676ac_cpp='$CXXCPP $CPPFLAGS'
9677ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9678ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9679cross_compiling=$ac_cv_prog_cxx_cross
9680
9681
9682 cat > conftest.$ac_ext <<EOF
c733b222 9683#line 9684 "configure"
10f2d63a
VZ
9684#include "confdefs.h"
9685
9686
9687int main() {
9688
9689 bool b = true;
9690
9691 return 0;
9692
9693; return 0; }
9694EOF
c733b222 9695if { (eval echo configure:9696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9696 rm -rf conftest*
9697
9698 cat >> confdefs.h <<\EOF
9699#define HAVE_BOOL 1
9700EOF
9701
9702 wx_cv_cpp_bool=yes
9703
9704else
9705 echo "configure: failed program was:" >&5
9706 cat conftest.$ac_ext >&5
9707 rm -rf conftest*
9708
9709 wx_cv_cpp_bool=no
9710
9711
9712fi
9713rm -f conftest*
9714
9715 ac_ext=c
9716# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9717ac_cpp='$CPP $CPPFLAGS'
9718ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9719ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9720cross_compiling=$ac_cv_prog_cc_cross
9721
9722
9723fi
9724
9725echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9726
9727 if test "$wx_cv_cpp_bool" = "yes"; then
9728 cat >> confdefs.h <<\EOF
9729#define HAVE_BOOL 1
9730EOF
9731
9732 fi
9733
9734
9735
10f2d63a 9736echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
c733b222 9737echo "configure:9738: checking if you need GNU extensions" >&5
10f2d63a
VZ
9738if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9739 echo $ac_n "(cached) $ac_c" 1>&6
9740else
9741
9742 cat > conftest.$ac_ext <<EOF
c733b222 9743#line 9744 "configure"
10f2d63a
VZ
9744#include "confdefs.h"
9745#include <features.h>
9746int main() {
9747
9748
9749#ifndef __GNU_LIBRARY__
9750 Compile error wanted
9751#endif
9752
9753
9754; return 0; }
9755EOF
c733b222 9756if { (eval echo configure:9757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9757 rm -rf conftest*
9758 wx_cv_gnu_extensions=yes
9759else
9760 echo "configure: failed program was:" >&5
9761 cat conftest.$ac_ext >&5
9762 rm -rf conftest*
9763 wx_cv_gnu_extensions=no
9764fi
9765rm -f conftest*
9766
9767fi
9768
9769
9770echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9771if test "$wx_cv_gnu_extensions" = "yes"; then
9772 cat >> confdefs.h <<EOF
9773#define _GNU_SOURCE 1
9774EOF
9775
9776fi
9777
9778
9779
9780echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
c733b222 9781echo "configure:9782: checking for wcslen in -lc" >&5
10f2d63a
VZ
9782ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9783if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9784 echo $ac_n "(cached) $ac_c" 1>&6
9785else
9786 ac_save_LIBS="$LIBS"
9787LIBS="-lc $LIBS"
9788cat > conftest.$ac_ext <<EOF
c733b222 9789#line 9790 "configure"
10f2d63a
VZ
9790#include "confdefs.h"
9791/* Override any gcc2 internal prototype to avoid an error. */
9792/* We use char because int might match the return type of a gcc2
9793 builtin and then its argument prototype would still apply. */
9794char wcslen();
9795
9796int main() {
9797wcslen()
9798; return 0; }
9799EOF
c733b222 9800if { (eval echo configure:9801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9801 rm -rf conftest*
9802 eval "ac_cv_lib_$ac_lib_var=yes"
9803else
9804 echo "configure: failed program was:" >&5
9805 cat conftest.$ac_ext >&5
9806 rm -rf conftest*
9807 eval "ac_cv_lib_$ac_lib_var=no"
9808fi
9809rm -f conftest*
9810LIBS="$ac_save_LIBS"
9811
9812fi
9813if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9814 echo "$ac_t""yes" 1>&6
9815
9816 cat >> confdefs.h <<\EOF
9817#define HAVE_WCSLEN 1
9818EOF
9819
9820 WCHAR_LINK=""
9821
9822else
9823 echo "$ac_t""no" 1>&6
9824
9825 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
c733b222 9826echo "configure:9827: checking for wcslen in -lw" >&5
10f2d63a
VZ
9827ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9828if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
9830else
9831 ac_save_LIBS="$LIBS"
9832LIBS="-lw $LIBS"
9833cat > conftest.$ac_ext <<EOF
c733b222 9834#line 9835 "configure"
10f2d63a
VZ
9835#include "confdefs.h"
9836/* Override any gcc2 internal prototype to avoid an error. */
9837/* We use char because int might match the return type of a gcc2
9838 builtin and then its argument prototype would still apply. */
9839char wcslen();
9840
9841int main() {
9842wcslen()
9843; return 0; }
9844EOF
c733b222 9845if { (eval echo configure:9846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9846 rm -rf conftest*
9847 eval "ac_cv_lib_$ac_lib_var=yes"
9848else
9849 echo "configure: failed program was:" >&5
9850 cat conftest.$ac_ext >&5
9851 rm -rf conftest*
9852 eval "ac_cv_lib_$ac_lib_var=no"
9853fi
9854rm -f conftest*
9855LIBS="$ac_save_LIBS"
9856
9857fi
9858if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9859 echo "$ac_t""yes" 1>&6
9860
9861 cat >> confdefs.h <<\EOF
9862#define HAVE_WCSLEN 1
9863EOF
9864
9865 WCHAR_LINK="-lw"
9866
9867else
9868 echo "$ac_t""no" 1>&6
9869fi
9870
9871
9872fi
9873
9874
9875echo $ac_n "checking for vprintf""... $ac_c" 1>&6
c733b222 9876echo "configure:9877: checking for vprintf" >&5
10f2d63a
VZ
9877if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9878 echo $ac_n "(cached) $ac_c" 1>&6
9879else
9880 cat > conftest.$ac_ext <<EOF
c733b222 9881#line 9882 "configure"
10f2d63a
VZ
9882#include "confdefs.h"
9883/* System header to define __stub macros and hopefully few prototypes,
9884 which can conflict with char vprintf(); below. */
9885#include <assert.h>
9886/* Override any gcc2 internal prototype to avoid an error. */
9887/* We use char because int might match the return type of a gcc2
9888 builtin and then its argument prototype would still apply. */
9889char vprintf();
9890
9891int main() {
9892
9893/* The GNU C library defines this for functions which it implements
9894 to always fail with ENOSYS. Some functions are actually named
9895 something starting with __ and the normal name is an alias. */
9896#if defined (__stub_vprintf) || defined (__stub___vprintf)
9897choke me
9898#else
d6a55c4b 9899vprintf();
10f2d63a
VZ
9900#endif
9901
9902; return 0; }
9903EOF
c733b222 9904if { (eval echo configure:9905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9905 rm -rf conftest*
9906 eval "ac_cv_func_vprintf=yes"
9907else
9908 echo "configure: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9910 rm -rf conftest*
9911 eval "ac_cv_func_vprintf=no"
9912fi
9913rm -f conftest*
9914fi
9915
9916if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9917 echo "$ac_t""yes" 1>&6
9918 cat >> confdefs.h <<\EOF
9919#define HAVE_VPRINTF 1
9920EOF
9921
9922else
9923 echo "$ac_t""no" 1>&6
9924fi
9925
9926if test "$ac_cv_func_vprintf" != yes; then
9927echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
c733b222 9928echo "configure:9929: checking for _doprnt" >&5
10f2d63a
VZ
9929if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9930 echo $ac_n "(cached) $ac_c" 1>&6
9931else
9932 cat > conftest.$ac_ext <<EOF
c733b222 9933#line 9934 "configure"
10f2d63a
VZ
9934#include "confdefs.h"
9935/* System header to define __stub macros and hopefully few prototypes,
9936 which can conflict with char _doprnt(); below. */
9937#include <assert.h>
9938/* Override any gcc2 internal prototype to avoid an error. */
9939/* We use char because int might match the return type of a gcc2
9940 builtin and then its argument prototype would still apply. */
9941char _doprnt();
9942
9943int main() {
9944
9945/* The GNU C library defines this for functions which it implements
9946 to always fail with ENOSYS. Some functions are actually named
9947 something starting with __ and the normal name is an alias. */
9948#if defined (__stub__doprnt) || defined (__stub____doprnt)
9949choke me
9950#else
d6a55c4b 9951_doprnt();
10f2d63a
VZ
9952#endif
9953
9954; return 0; }
9955EOF
c733b222 9956if { (eval echo configure:9957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9957 rm -rf conftest*
9958 eval "ac_cv_func__doprnt=yes"
9959else
9960 echo "configure: failed program was:" >&5
9961 cat conftest.$ac_ext >&5
9962 rm -rf conftest*
9963 eval "ac_cv_func__doprnt=no"
9964fi
9965rm -f conftest*
9966fi
9967
9968if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9969 echo "$ac_t""yes" 1>&6
9970 cat >> confdefs.h <<\EOF
9971#define HAVE_DOPRNT 1
9972EOF
9973
9974else
9975 echo "$ac_t""no" 1>&6
9976fi
9977
9978fi
9979
9980
9981for ac_func in vsnprintf
9982do
9983echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c733b222 9984echo "configure:9985: checking for $ac_func" >&5
10f2d63a
VZ
9985if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9986 echo $ac_n "(cached) $ac_c" 1>&6
9987else
9988 cat > conftest.$ac_ext <<EOF
c733b222 9989#line 9990 "configure"
10f2d63a
VZ
9990#include "confdefs.h"
9991/* System header to define __stub macros and hopefully few prototypes,
9992 which can conflict with char $ac_func(); below. */
9993#include <assert.h>
9994/* Override any gcc2 internal prototype to avoid an error. */
9995/* We use char because int might match the return type of a gcc2
9996 builtin and then its argument prototype would still apply. */
9997char $ac_func();
9998
9999int main() {
10000
10001/* The GNU C library defines this for functions which it implements
10002 to always fail with ENOSYS. Some functions are actually named
10003 something starting with __ and the normal name is an alias. */
10004#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10005choke me
10006#else
d6a55c4b 10007$ac_func();
10f2d63a
VZ
10008#endif
10009
10010; return 0; }
10011EOF
c733b222 10012if { (eval echo configure:10013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10013 rm -rf conftest*
10014 eval "ac_cv_func_$ac_func=yes"
10015else
10016 echo "configure: failed program was:" >&5
10017 cat conftest.$ac_ext >&5
10018 rm -rf conftest*
10019 eval "ac_cv_func_$ac_func=no"
10020fi
10021rm -f conftest*
10022fi
10023
10024if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10025 echo "$ac_t""yes" 1>&6
10026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10027 cat >> confdefs.h <<EOF
10028#define $ac_tr_func 1
10029EOF
10030 cat >> confdefs.h <<\EOF
10031#define HAVE_VSNPRINTF 1
10032EOF
10033
10034else
10035 echo "$ac_t""no" 1>&6
10036echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10037
10038fi
10039done
10040
10041
10042
10043ac_ext=C
10044# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10045ac_cpp='$CXXCPP $CPPFLAGS'
10046ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10047ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10048cross_compiling=$ac_cv_prog_cxx_cross
10049
10050
10051echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
c733b222 10052echo "configure:10053: checking for vsscanf" >&5
10f2d63a
VZ
10053if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10054 echo $ac_n "(cached) $ac_c" 1>&6
10055else
10056
10057 if test "$cross_compiling" = yes; then
10058 wx_cv_func_vsscanf=no
10059
10060else
10061 cat > conftest.$ac_ext <<EOF
c733b222 10062#line 10063 "configure"
10f2d63a
VZ
10063#include "confdefs.h"
10064#ifdef __cplusplus
10065extern "C" void exit(int);
10066#endif
10067
10068 #include <stdio.h>
10069 #include <stdarg.h>
10070
10071 int try_vsscanf(const char *format, ...)
10072 {
10073 va_list ap;
10074 va_start(ap, format);
10075
10076 vsscanf("17", format, ap);
10077
10078 va_end(ap);
10079 }
10080
10081 int main()
10082 {
10083 int i;
10084 try_vsscanf("%d", &i);
10085 return i == 17 ? 0 : 1;
10086 }
10087
10088EOF
c733b222 10089if { (eval echo configure:10090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10090then
10091
10092 cat >> confdefs.h <<\EOF
10093#define HAVE_VSSCANF 1
10094EOF
10095
10096 wx_cv_func_vsscanf=yes
10097
10098else
10099 echo "configure: failed program was:" >&5
10100 cat conftest.$ac_ext >&5
10101 rm -fr conftest*
10102 wx_cv_func_vsscanf=no
10103fi
10104rm -fr conftest*
10105fi
10106
10107
10108fi
10109
10110echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10111
10112ac_ext=c
10113# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10114ac_cpp='$CPP $CPPFLAGS'
10115ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10116ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10117cross_compiling=$ac_cv_prog_cc_cross
10118
10119
b089607b 10120if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10121
10122for ac_func in vfork
10123do
10124echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c733b222 10125echo "configure:10126: checking for $ac_func" >&5
10f2d63a
VZ
10126if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10127 echo $ac_n "(cached) $ac_c" 1>&6
10128else
10129 cat > conftest.$ac_ext <<EOF
c733b222 10130#line 10131 "configure"
10f2d63a
VZ
10131#include "confdefs.h"
10132/* System header to define __stub macros and hopefully few prototypes,
10133 which can conflict with char $ac_func(); below. */
10134#include <assert.h>
10135/* Override any gcc2 internal prototype to avoid an error. */
10136/* We use char because int might match the return type of a gcc2
10137 builtin and then its argument prototype would still apply. */
10138char $ac_func();
10139
10140int main() {
10141
10142/* The GNU C library defines this for functions which it implements
10143 to always fail with ENOSYS. Some functions are actually named
10144 something starting with __ and the normal name is an alias. */
10145#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10146choke me
10147#else
d6a55c4b 10148$ac_func();
10f2d63a
VZ
10149#endif
10150
10151; return 0; }
10152EOF
c733b222 10153if { (eval echo configure:10154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
10154 rm -rf conftest*
10155 eval "ac_cv_func_$ac_func=yes"
10156else
10157 echo "configure: failed program was:" >&5
10158 cat conftest.$ac_ext >&5
10159 rm -rf conftest*
10160 eval "ac_cv_func_$ac_func=no"
10161fi
10162rm -f conftest*
10163fi
10164
10165if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10166 echo "$ac_t""yes" 1>&6
10167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10168 cat >> confdefs.h <<EOF
10169#define $ac_tr_func 1
10170EOF
10171
10172else
10173 echo "$ac_t""no" 1>&6
10174fi
10175done
10176
10177
10178for ac_func in timegm
10179do
10180echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c733b222 10181echo "configure:10182: checking for $ac_func" >&5
270a909e
VZ
10182if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10183 echo $ac_n "(cached) $ac_c" 1>&6
10184else
10185 cat > conftest.$ac_ext <<EOF
c733b222 10186#line 10187 "configure"
270a909e
VZ
10187#include "confdefs.h"
10188/* System header to define __stub macros and hopefully few prototypes,
10189 which can conflict with char $ac_func(); below. */
10190#include <assert.h>
10191/* Override any gcc2 internal prototype to avoid an error. */
10192/* We use char because int might match the return type of a gcc2
10193 builtin and then its argument prototype would still apply. */
10194char $ac_func();
10195
10196int main() {
10197
10198/* The GNU C library defines this for functions which it implements
10199 to always fail with ENOSYS. Some functions are actually named
10200 something starting with __ and the normal name is an alias. */
10201#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10202choke me
10203#else
d6a55c4b 10204$ac_func();
270a909e
VZ
10205#endif
10206
10207; return 0; }
10208EOF
c733b222 10209if { (eval echo configure:10210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10210 rm -rf conftest*
10211 eval "ac_cv_func_$ac_func=yes"
10212else
10213 echo "configure: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10215 rm -rf conftest*
10216 eval "ac_cv_func_$ac_func=no"
10217fi
10218rm -f conftest*
10219fi
10220
10221if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10222 echo "$ac_t""yes" 1>&6
10223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10224 cat >> confdefs.h <<EOF
10225#define $ac_tr_func 1
10226EOF
10227
10228else
10229 echo "$ac_t""no" 1>&6
10230fi
10231done
10232
10233
b12915c1
VZ
10234HAVE_SOME_SLEEP_FUNC=0
10235if test "$USE_BEOS" = 1; then
10236 cat >> confdefs.h <<\EOF
10237#define HAVE_SLEEP 1
10238EOF
10239
10240 HAVE_SOME_SLEEP_FUNC=1
10241fi
10242
10243if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10244 POSIX4_LINK=
10245 for ac_func in nanosleep
10f2d63a
VZ
10246do
10247echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c733b222 10248echo "configure:10249: checking for $ac_func" >&5
10f2d63a
VZ
10249if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10250 echo $ac_n "(cached) $ac_c" 1>&6
10251else
10252 cat > conftest.$ac_ext <<EOF
c733b222 10253#line 10254 "configure"
10f2d63a
VZ
10254#include "confdefs.h"
10255/* System header to define __stub macros and hopefully few prototypes,
10256 which can conflict with char $ac_func(); below. */
10257#include <assert.h>
10258/* Override any gcc2 internal prototype to avoid an error. */
10259/* We use char because int might match the return type of a gcc2
10260 builtin and then its argument prototype would still apply. */
10261char $ac_func();
10262
10263int main() {
10264
10265/* The GNU C library defines this for functions which it implements
10266 to always fail with ENOSYS. Some functions are actually named
10267 something starting with __ and the normal name is an alias. */
10268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10269choke me
10270#else
d6a55c4b 10271$ac_func();
10f2d63a
VZ
10272#endif
10273
10274; return 0; }
10275EOF
c733b222 10276if { (eval echo configure:10277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10277 rm -rf conftest*
10278 eval "ac_cv_func_$ac_func=yes"
10279else
10280 echo "configure: failed program was:" >&5
10281 cat conftest.$ac_ext >&5
10282 rm -rf conftest*
10283 eval "ac_cv_func_$ac_func=no"
10284fi
10285rm -f conftest*
10286fi
10287
10288if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10289 echo "$ac_t""yes" 1>&6
10290 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10291 cat >> confdefs.h <<EOF
10292#define $ac_tr_func 1
10293EOF
10294 cat >> confdefs.h <<\EOF
10295#define HAVE_NANOSLEEP 1
10296EOF
10297
10298else
10299 echo "$ac_t""no" 1>&6
10300echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
c733b222 10301echo "configure:10302: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
10302ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10303if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10304 echo $ac_n "(cached) $ac_c" 1>&6
10305else
10306 ac_save_LIBS="$LIBS"
10307LIBS="-lposix4 $LIBS"
10308cat > conftest.$ac_ext <<EOF
c733b222 10309#line 10310 "configure"
10f2d63a
VZ
10310#include "confdefs.h"
10311/* Override any gcc2 internal prototype to avoid an error. */
10312/* We use char because int might match the return type of a gcc2
10313 builtin and then its argument prototype would still apply. */
10314char nanosleep();
10315
10316int main() {
10317nanosleep()
10318; return 0; }
10319EOF
c733b222 10320if { (eval echo configure:10321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10321 rm -rf conftest*
10322 eval "ac_cv_lib_$ac_lib_var=yes"
10323else
10324 echo "configure: failed program was:" >&5
10325 cat conftest.$ac_ext >&5
10326 rm -rf conftest*
10327 eval "ac_cv_lib_$ac_lib_var=no"
10328fi
10329rm -f conftest*
10330LIBS="$ac_save_LIBS"
10331
10332fi
10333if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10334 echo "$ac_t""yes" 1>&6
10335
b12915c1 10336 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10337#define HAVE_NANOSLEEP 1
10338EOF
10339
b12915c1
VZ
10340 POSIX4_LINK="-lposix4"
10341
10f2d63a
VZ
10342else
10343 echo "$ac_t""no" 1>&6
10344
b12915c1 10345 for ac_func in usleep
10f2d63a
VZ
10346do
10347echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c733b222 10348echo "configure:10349: checking for $ac_func" >&5
10f2d63a
VZ
10349if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10350 echo $ac_n "(cached) $ac_c" 1>&6
10351else
10352 cat > conftest.$ac_ext <<EOF
c733b222 10353#line 10354 "configure"
10f2d63a
VZ
10354#include "confdefs.h"
10355/* System header to define __stub macros and hopefully few prototypes,
10356 which can conflict with char $ac_func(); below. */
10357#include <assert.h>
10358/* Override any gcc2 internal prototype to avoid an error. */
10359/* We use char because int might match the return type of a gcc2
10360 builtin and then its argument prototype would still apply. */
10361char $ac_func();
10362
10363int main() {
10364
10365/* The GNU C library defines this for functions which it implements
10366 to always fail with ENOSYS. Some functions are actually named
10367 something starting with __ and the normal name is an alias. */
10368#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10369choke me
10370#else
d6a55c4b 10371$ac_func();
10f2d63a
VZ
10372#endif
10373
10374; return 0; }
10375EOF
c733b222 10376if { (eval echo configure:10377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10377 rm -rf conftest*
10378 eval "ac_cv_func_$ac_func=yes"
10379else
10380 echo "configure: failed program was:" >&5
10381 cat conftest.$ac_ext >&5
10382 rm -rf conftest*
10383 eval "ac_cv_func_$ac_func=no"
10384fi
10385rm -f conftest*
10386fi
10387
10388if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10389 echo "$ac_t""yes" 1>&6
10390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10391 cat >> confdefs.h <<EOF
10392#define $ac_tr_func 1
10393EOF
b12915c1 10394
10f2d63a
VZ
10395else
10396 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10397fi
10398done
10399
b12915c1
VZ
10400 echo "configure: warning: wxSleep() function will not work" 1>&2
10401
10402
10f2d63a
VZ
10403fi
10404
b12915c1
VZ
10405
10406
10f2d63a
VZ
10407fi
10408done
10409
b12915c1 10410fi
10f2d63a
VZ
10411
10412for ac_func in uname gethostname
10413do
10414echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c733b222 10415echo "configure:10416: checking for $ac_func" >&5
10f2d63a
VZ
10416if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10417 echo $ac_n "(cached) $ac_c" 1>&6
10418else
10419 cat > conftest.$ac_ext <<EOF
c733b222 10420#line 10421 "configure"
10f2d63a
VZ
10421#include "confdefs.h"
10422/* System header to define __stub macros and hopefully few prototypes,
10423 which can conflict with char $ac_func(); below. */
10424#include <assert.h>
10425/* Override any gcc2 internal prototype to avoid an error. */
10426/* We use char because int might match the return type of a gcc2
10427 builtin and then its argument prototype would still apply. */
10428char $ac_func();
10429
10430int main() {
10431
10432/* The GNU C library defines this for functions which it implements
10433 to always fail with ENOSYS. Some functions are actually named
10434 something starting with __ and the normal name is an alias. */
10435#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10436choke me
10437#else
d6a55c4b 10438$ac_func();
10f2d63a
VZ
10439#endif
10440
10441; return 0; }
10442EOF
c733b222 10443if { (eval echo configure:10444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10444 rm -rf conftest*
10445 eval "ac_cv_func_$ac_func=yes"
10446else
10447 echo "configure: failed program was:" >&5
10448 cat conftest.$ac_ext >&5
10449 rm -rf conftest*
10450 eval "ac_cv_func_$ac_func=no"
10451fi
10452rm -f conftest*
10453fi
10454
10455if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10456 echo "$ac_t""yes" 1>&6
10457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10458 cat >> confdefs.h <<EOF
10459#define $ac_tr_func 1
10460EOF
10461 break
10462else
10463 echo "$ac_t""no" 1>&6
10464fi
10465done
10466
10467
10468for ac_func in strtok_r
10469do
10470echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c733b222 10471echo "configure:10472: checking for $ac_func" >&5
10f2d63a
VZ
10472if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10473 echo $ac_n "(cached) $ac_c" 1>&6
10474else
10475 cat > conftest.$ac_ext <<EOF
c733b222 10476#line 10477 "configure"
10f2d63a
VZ
10477#include "confdefs.h"
10478/* System header to define __stub macros and hopefully few prototypes,
10479 which can conflict with char $ac_func(); below. */
10480#include <assert.h>
10481/* Override any gcc2 internal prototype to avoid an error. */
10482/* We use char because int might match the return type of a gcc2
10483 builtin and then its argument prototype would still apply. */
10484char $ac_func();
10485
10486int main() {
10487
10488/* The GNU C library defines this for functions which it implements
10489 to always fail with ENOSYS. Some functions are actually named
10490 something starting with __ and the normal name is an alias. */
10491#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10492choke me
10493#else
d6a55c4b 10494$ac_func();
10f2d63a
VZ
10495#endif
10496
10497; return 0; }
10498EOF
c733b222 10499if { (eval echo configure:10500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10500 rm -rf conftest*
10501 eval "ac_cv_func_$ac_func=yes"
10502else
10503 echo "configure: failed program was:" >&5
10504 cat conftest.$ac_ext >&5
10505 rm -rf conftest*
10506 eval "ac_cv_func_$ac_func=no"
10507fi
10508rm -f conftest*
10509fi
10510
10511if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10512 echo "$ac_t""yes" 1>&6
10513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10514 cat >> confdefs.h <<EOF
10515#define $ac_tr_func 1
10516EOF
10517
10518else
10519 echo "$ac_t""no" 1>&6
10520fi
10521done
10522
10523
c63c7106 10524INET_LINK=
10f2d63a
VZ
10525for ac_func in inet_addr
10526do
10527echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c733b222 10528echo "configure:10529: checking for $ac_func" >&5
10f2d63a
VZ
10529if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10530 echo $ac_n "(cached) $ac_c" 1>&6
10531else
10532 cat > conftest.$ac_ext <<EOF
c733b222 10533#line 10534 "configure"
10f2d63a
VZ
10534#include "confdefs.h"
10535/* System header to define __stub macros and hopefully few prototypes,
10536 which can conflict with char $ac_func(); below. */
10537#include <assert.h>
10538/* Override any gcc2 internal prototype to avoid an error. */
10539/* We use char because int might match the return type of a gcc2
10540 builtin and then its argument prototype would still apply. */
10541char $ac_func();
10542
10543int main() {
10544
10545/* The GNU C library defines this for functions which it implements
10546 to always fail with ENOSYS. Some functions are actually named
10547 something starting with __ and the normal name is an alias. */
10548#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10549choke me
10550#else
d6a55c4b 10551$ac_func();
10f2d63a
VZ
10552#endif
10553
10554; return 0; }
10555EOF
c733b222 10556if { (eval echo configure:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10557 rm -rf conftest*
10558 eval "ac_cv_func_$ac_func=yes"
10559else
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562 rm -rf conftest*
10563 eval "ac_cv_func_$ac_func=no"
10564fi
10565rm -f conftest*
10566fi
10567
10568if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10569 echo "$ac_t""yes" 1>&6
10570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10571 cat >> confdefs.h <<EOF
10572#define $ac_tr_func 1
10573EOF
c63c7106
VZ
10574 cat >> confdefs.h <<\EOF
10575#define HAVE_INET_ADDR 1
10576EOF
10577
10f2d63a
VZ
10578else
10579 echo "$ac_t""no" 1>&6
c63c7106 10580echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
c733b222 10581echo "configure:10582: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10582ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10583if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10584 echo $ac_n "(cached) $ac_c" 1>&6
10585else
10586 ac_save_LIBS="$LIBS"
10587LIBS="-lnsl $LIBS"
10588cat > conftest.$ac_ext <<EOF
c733b222 10589#line 10590 "configure"
c63c7106
VZ
10590#include "confdefs.h"
10591/* Override any gcc2 internal prototype to avoid an error. */
10592/* We use char because int might match the return type of a gcc2
10593 builtin and then its argument prototype would still apply. */
10594char inet_addr();
10595
10596int main() {
10597inet_addr()
10598; return 0; }
10599EOF
c733b222 10600if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10601 rm -rf conftest*
10602 eval "ac_cv_lib_$ac_lib_var=yes"
10603else
10604 echo "configure: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10606 rm -rf conftest*
10607 eval "ac_cv_lib_$ac_lib_var=no"
10608fi
10609rm -f conftest*
10610LIBS="$ac_save_LIBS"
10611
10612fi
10613if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10614 echo "$ac_t""yes" 1>&6
10615 INET_LINK="nsl"
10616else
10617 echo "$ac_t""no" 1>&6
10618echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
c733b222 10619echo "configure:10620: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10620ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10621if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10622 echo $ac_n "(cached) $ac_c" 1>&6
10623else
10624 ac_save_LIBS="$LIBS"
10625LIBS="-lresolv $LIBS"
10626cat > conftest.$ac_ext <<EOF
c733b222 10627#line 10628 "configure"
c63c7106
VZ
10628#include "confdefs.h"
10629/* Override any gcc2 internal prototype to avoid an error. */
10630/* We use char because int might match the return type of a gcc2
10631 builtin and then its argument prototype would still apply. */
10632char inet_addr();
10633
10634int main() {
10635inet_addr()
10636; return 0; }
10637EOF
c733b222 10638if { (eval echo configure:10639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10639 rm -rf conftest*
10640 eval "ac_cv_lib_$ac_lib_var=yes"
10641else
10642 echo "configure: failed program was:" >&5
10643 cat conftest.$ac_ext >&5
10644 rm -rf conftest*
10645 eval "ac_cv_lib_$ac_lib_var=no"
10646fi
10647rm -f conftest*
10648LIBS="$ac_save_LIBS"
10649
10650fi
10651if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10652 echo "$ac_t""yes" 1>&6
10653 INET_LINK="resolv"
10654
10655else
10656 echo "$ac_t""no" 1>&6
10657fi
10658
10659
10660fi
10661
10662
10663
10f2d63a
VZ
10664fi
10665done
10666
c63c7106 10667
10f2d63a
VZ
10668for ac_func in inet_aton
10669do
10670echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c733b222 10671echo "configure:10672: checking for $ac_func" >&5
10f2d63a
VZ
10672if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10673 echo $ac_n "(cached) $ac_c" 1>&6
10674else
10675 cat > conftest.$ac_ext <<EOF
c733b222 10676#line 10677 "configure"
10f2d63a
VZ
10677#include "confdefs.h"
10678/* System header to define __stub macros and hopefully few prototypes,
10679 which can conflict with char $ac_func(); below. */
10680#include <assert.h>
10681/* Override any gcc2 internal prototype to avoid an error. */
10682/* We use char because int might match the return type of a gcc2
10683 builtin and then its argument prototype would still apply. */
10684char $ac_func();
10685
10686int main() {
10687
10688/* The GNU C library defines this for functions which it implements
10689 to always fail with ENOSYS. Some functions are actually named
10690 something starting with __ and the normal name is an alias. */
10691#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10692choke me
10693#else
d6a55c4b 10694$ac_func();
10f2d63a
VZ
10695#endif
10696
10697; return 0; }
10698EOF
c733b222 10699if { (eval echo configure:10700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10700 rm -rf conftest*
10701 eval "ac_cv_func_$ac_func=yes"
10702else
10703 echo "configure: failed program was:" >&5
10704 cat conftest.$ac_ext >&5
10705 rm -rf conftest*
10706 eval "ac_cv_func_$ac_func=no"
10707fi
10708rm -f conftest*
10709fi
10710
10711if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10712 echo "$ac_t""yes" 1>&6
10713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10714 cat >> confdefs.h <<EOF
10715#define $ac_tr_func 1
10716EOF
c63c7106
VZ
10717 cat >> confdefs.h <<\EOF
10718#define HAVE_INET_ATON 1
10719EOF
10720
10f2d63a
VZ
10721else
10722 echo "$ac_t""no" 1>&6
c63c7106 10723 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
c733b222 10724echo "configure:10725: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10725ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10726if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10727 echo $ac_n "(cached) $ac_c" 1>&6
10728else
10729 ac_save_LIBS="$LIBS"
c63c7106 10730LIBS="-l$INET_LINK $LIBS"
10f2d63a 10731cat > conftest.$ac_ext <<EOF
c733b222 10732#line 10733 "configure"
10f2d63a
VZ
10733#include "confdefs.h"
10734/* Override any gcc2 internal prototype to avoid an error. */
10735/* We use char because int might match the return type of a gcc2
10736 builtin and then its argument prototype would still apply. */
10737char inet_aton();
10738
10739int main() {
10740inet_aton()
10741; return 0; }
10742EOF
c733b222 10743if { (eval echo configure:10744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10744 rm -rf conftest*
10745 eval "ac_cv_lib_$ac_lib_var=yes"
10746else
10747 echo "configure: failed program was:" >&5
10748 cat conftest.$ac_ext >&5
10749 rm -rf conftest*
10750 eval "ac_cv_lib_$ac_lib_var=no"
10751fi
10752rm -f conftest*
10753LIBS="$ac_save_LIBS"
10754
10755fi
10756if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10757 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10758 cat >> confdefs.h <<\EOF
10759#define HAVE_INET_ATON 1
10f2d63a
VZ
10760EOF
10761
10f2d63a
VZ
10762else
10763 echo "$ac_t""no" 1>&6
10764fi
10765
c63c7106
VZ
10766
10767fi
10768done
10769
10770
10771if test "x$INET_LINK" != "x"; then
10772 cat >> confdefs.h <<\EOF
10773#define HAVE_INET_ADDR 1
10774EOF
10775
10776 INET_LINK="-l$INET_LINK"
10777fi
10f2d63a
VZ
10778
10779fi
10780
10781
10782cat > confcache <<\EOF
10783# This file is a shell script that caches the results of configure
10784# tests run on this system so they can be shared between configure
10785# scripts and configure runs. It is not useful on other systems.
10786# If it contains results you don't want to keep, you may remove or edit it.
10787#
10788# By default, configure uses ./config.cache as the cache file,
10789# creating it if it does not exist already. You can give configure
10790# the --cache-file=FILE option to use a different cache file; that is
10791# what configure does when it calls configure scripts in
10792# subdirectories, so they share the cache.
10793# Giving --cache-file=/dev/null disables caching, for debugging configure.
10794# config.status only pays attention to the cache file if you give it the
10795# --recheck option to rerun configure.
10796#
10797EOF
10798# The following way of writing the cache mishandles newlines in values,
10799# but we know of no workaround that is simple, portable, and efficient.
10800# So, don't put newlines in cache variables' values.
10801# Ultrix sh set writes to stderr and can't be redirected directly,
10802# and sets the high bit in the cache file unless we assign to the vars.
10803(set) 2>&1 |
10804 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10805 *ac_space=\ *)
10806 # `set' does not quote correctly, so add quotes (double-quote substitution
10807 # turns \\\\ into \\, and sed turns \\ into \).
10808 sed -n \
10809 -e "s/'/'\\\\''/g" \
10810 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10811 ;;
10812 *)
10813 # `set' quotes correctly as required by POSIX, so do not add quotes.
10814 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10815 ;;
10816 esac >> confcache
10817if cmp -s $cache_file confcache; then
10818 :
10819else
10820 if test -w $cache_file; then
10821 echo "updating cache $cache_file"
10822 cat confcache > $cache_file
10823 else
10824 echo "not updating unwritable cache $cache_file"
10825 fi
10826fi
10827rm -f confcache
10828
10829
10830
b089607b 10831if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10832
10833
10834THREADS_LINK=""
10835THREADS_OBJ=""
10836
10837if test "$wxUSE_THREADS" = "yes" ; then
10838 if test "$wxUSE_WINE" = 1 ; then
10839 echo "configure: warning: Threads are not supported under WINE" 1>&2
10840 wxUSE_THREADS="no"
b12915c1
VZ
10841 elif test "$USE_BEOS" = 1; then
10842 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10843 wxUSE_THREADS="no"
10f2d63a
VZ
10844 fi
10845fi
10846
10847if test "$wxUSE_THREADS" = "yes" ; then
10848
10849 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
c733b222 10850echo "configure:10851: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10851ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10852if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10853 echo $ac_n "(cached) $ac_c" 1>&6
10854else
10855 ac_save_LIBS="$LIBS"
10856LIBS="-lpthread $LIBS"
10857cat > conftest.$ac_ext <<EOF
c733b222 10858#line 10859 "configure"
10f2d63a
VZ
10859#include "confdefs.h"
10860/* Override any gcc2 internal prototype to avoid an error. */
10861/* We use char because int might match the return type of a gcc2
10862 builtin and then its argument prototype would still apply. */
10863char pthread_create();
10864
10865int main() {
10866pthread_create()
10867; return 0; }
10868EOF
c733b222 10869if { (eval echo configure:10870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10870 rm -rf conftest*
10871 eval "ac_cv_lib_$ac_lib_var=yes"
10872else
10873 echo "configure: failed program was:" >&5
10874 cat conftest.$ac_ext >&5
10875 rm -rf conftest*
10876 eval "ac_cv_lib_$ac_lib_var=no"
10877fi
10878rm -f conftest*
10879LIBS="$ac_save_LIBS"
10880
10881fi
10882if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10883 echo "$ac_t""yes" 1>&6
10884
10885 THREADS_OBJ="threadpsx.lo"
10886 THREADS_LINK="pthread"
10887
10888else
10889 echo "$ac_t""no" 1>&6
10890
10891 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
c733b222 10892echo "configure:10893: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10893ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10894if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10895 echo $ac_n "(cached) $ac_c" 1>&6
10896else
10897 ac_save_LIBS="$LIBS"
10898LIBS="-lc_r $LIBS"
10899cat > conftest.$ac_ext <<EOF
c733b222 10900#line 10901 "configure"
10f2d63a
VZ
10901#include "confdefs.h"
10902/* Override any gcc2 internal prototype to avoid an error. */
10903/* We use char because int might match the return type of a gcc2
10904 builtin and then its argument prototype would still apply. */
10905char pthread_create();
10906
10907int main() {
10908pthread_create()
10909; return 0; }
10910EOF
c733b222 10911if { (eval echo configure:10912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10912 rm -rf conftest*
10913 eval "ac_cv_lib_$ac_lib_var=yes"
10914else
10915 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10917 rm -rf conftest*
10918 eval "ac_cv_lib_$ac_lib_var=no"
10919fi
10920rm -f conftest*
10921LIBS="$ac_save_LIBS"
10922
10923fi
10924if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10925 echo "$ac_t""yes" 1>&6
10926
10927 THREADS_OBJ="threadpsx.lo"
10928 THREADS_LINK="c_r"
10929
10930else
10931 echo "$ac_t""no" 1>&6
10932
10933 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10934echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
c733b222 10935echo "configure:10936: checking for sys/prctl.h" >&5
10f2d63a
VZ
10936if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10937 echo $ac_n "(cached) $ac_c" 1>&6
10938else
10939 cat > conftest.$ac_ext <<EOF
c733b222 10940#line 10941 "configure"
10f2d63a
VZ
10941#include "confdefs.h"
10942#include <sys/prctl.h>
10943EOF
10944ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 10945{ (eval echo configure:10946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10946ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10947if test -z "$ac_err"; then
10948 rm -rf conftest*
10949 eval "ac_cv_header_$ac_safe=yes"
10950else
10951 echo "$ac_err" >&5
10952 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10954 rm -rf conftest*
10955 eval "ac_cv_header_$ac_safe=no"
10956fi
10957rm -f conftest*
10958fi
10959if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10960 echo "$ac_t""yes" 1>&6
10961
10962 THREADS_OBJ="threadsgi.lo"
10963
10964else
10965 echo "$ac_t""no" 1>&6
10966fi
10967
10968
10969fi
10970
10971
10972fi
10973
10974
10975 if test -z "$THREADS_OBJ" ; then
10976 wxUSE_THREADS=no
10977 echo "configure: warning: No thread support on this system" 1>&2
10978 fi
10979fi
10980
10981if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
10982 for ac_func in thr_setconcurrency
10983do
10984echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c733b222 10985echo "configure:10986: checking for $ac_func" >&5
70846f0a
VZ
10986if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10987 echo $ac_n "(cached) $ac_c" 1>&6
10988else
10989 cat > conftest.$ac_ext <<EOF
c733b222 10990#line 10991 "configure"
70846f0a
VZ
10991#include "confdefs.h"
10992/* System header to define __stub macros and hopefully few prototypes,
10993 which can conflict with char $ac_func(); below. */
10994#include <assert.h>
10995/* Override any gcc2 internal prototype to avoid an error. */
10996/* We use char because int might match the return type of a gcc2
10997 builtin and then its argument prototype would still apply. */
10998char $ac_func();
10999
11000int main() {
11001
11002/* The GNU C library defines this for functions which it implements
11003 to always fail with ENOSYS. Some functions are actually named
11004 something starting with __ and the normal name is an alias. */
11005#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11006choke me
11007#else
d6a55c4b 11008$ac_func();
70846f0a
VZ
11009#endif
11010
11011; return 0; }
11012EOF
c733b222 11013if { (eval echo configure:11014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
11014 rm -rf conftest*
11015 eval "ac_cv_func_$ac_func=yes"
11016else
11017 echo "configure: failed program was:" >&5
11018 cat conftest.$ac_ext >&5
11019 rm -rf conftest*
11020 eval "ac_cv_func_$ac_func=no"
11021fi
11022rm -f conftest*
11023fi
11024
11025if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11026 echo "$ac_t""yes" 1>&6
11027 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11028 cat >> confdefs.h <<EOF
11029#define $ac_tr_func 1
11030EOF
11031
11032else
11033 echo "$ac_t""no" 1>&6
11034fi
11035done
11036
11037
10f2d63a
VZ
11038
11039 for ac_hdr in sched.h
11040do
11041ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11042echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c733b222 11043echo "configure:11044: checking for $ac_hdr" >&5
10f2d63a
VZ
11044if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11045 echo $ac_n "(cached) $ac_c" 1>&6
11046else
11047 cat > conftest.$ac_ext <<EOF
c733b222 11048#line 11049 "configure"
10f2d63a
VZ
11049#include "confdefs.h"
11050#include <$ac_hdr>
11051EOF
11052ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 11053{ (eval echo configure:11054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11054ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11055if test -z "$ac_err"; then
11056 rm -rf conftest*
11057 eval "ac_cv_header_$ac_safe=yes"
11058else
11059 echo "$ac_err" >&5
11060 echo "configure: failed program was:" >&5
11061 cat conftest.$ac_ext >&5
11062 rm -rf conftest*
11063 eval "ac_cv_header_$ac_safe=no"
11064fi
11065rm -f conftest*
11066fi
11067if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11068 echo "$ac_t""yes" 1>&6
11069 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11070 cat >> confdefs.h <<EOF
11071#define $ac_tr_hdr 1
11072EOF
11073
11074else
11075 echo "$ac_t""no" 1>&6
11076fi
11077done
11078
11079
11080 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
c733b222 11081echo "configure:11082: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
11082ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11083if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11084 echo $ac_n "(cached) $ac_c" 1>&6
11085else
11086 ac_save_LIBS="$LIBS"
11087LIBS="-l$THREADS_LINK $LIBS"
11088cat > conftest.$ac_ext <<EOF
c733b222 11089#line 11090 "configure"
10f2d63a
VZ
11090#include "confdefs.h"
11091/* Override any gcc2 internal prototype to avoid an error. */
11092/* We use char because int might match the return type of a gcc2
11093 builtin and then its argument prototype would still apply. */
11094char sched_yield();
11095
11096int main() {
11097sched_yield()
11098; return 0; }
11099EOF
c733b222 11100if { (eval echo configure:11101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11101 rm -rf conftest*
11102 eval "ac_cv_lib_$ac_lib_var=yes"
11103else
11104 echo "configure: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11106 rm -rf conftest*
11107 eval "ac_cv_lib_$ac_lib_var=no"
11108fi
11109rm -f conftest*
11110LIBS="$ac_save_LIBS"
11111
11112fi
11113if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11114 echo "$ac_t""yes" 1>&6
11115 cat >> confdefs.h <<\EOF
11116#define HAVE_SCHED_YIELD 1
11117EOF
11118
11119else
11120 echo "$ac_t""no" 1>&6
11121echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
c733b222 11122echo "configure:11123: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
11123ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11124if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11125 echo $ac_n "(cached) $ac_c" 1>&6
11126else
11127 ac_save_LIBS="$LIBS"
11128LIBS="-l"posix4" $LIBS"
11129cat > conftest.$ac_ext <<EOF
c733b222 11130#line 11131 "configure"
10f2d63a
VZ
11131#include "confdefs.h"
11132/* Override any gcc2 internal prototype to avoid an error. */
11133/* We use char because int might match the return type of a gcc2
11134 builtin and then its argument prototype would still apply. */
11135char sched_yield();
11136
11137int main() {
11138sched_yield()
11139; return 0; }
11140EOF
c733b222 11141if { (eval echo configure:11142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11142 rm -rf conftest*
11143 eval "ac_cv_lib_$ac_lib_var=yes"
11144else
11145 echo "configure: failed program was:" >&5
11146 cat conftest.$ac_ext >&5
11147 rm -rf conftest*
11148 eval "ac_cv_lib_$ac_lib_var=no"
11149fi
11150rm -f conftest*
11151LIBS="$ac_save_LIBS"
11152
11153fi
11154if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11155 echo "$ac_t""yes" 1>&6
11156 cat >> confdefs.h <<\EOF
11157#define HAVE_SCHED_YIELD 1
11158EOF
11159 POSIX4_LINK="-lposix4"
11160else
11161 echo "$ac_t""no" 1>&6
11162echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11163
11164fi
11165
11166
11167fi
11168
11169
11170 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
c733b222 11171echo "configure:11172: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
11172ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11173if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11174 echo $ac_n "(cached) $ac_c" 1>&6
11175else
11176 ac_save_LIBS="$LIBS"
11177LIBS="-l$THREADS_LINK $LIBS"
11178cat > conftest.$ac_ext <<EOF
c733b222 11179#line 11180 "configure"
10f2d63a
VZ
11180#include "confdefs.h"
11181/* Override any gcc2 internal prototype to avoid an error. */
11182/* We use char because int might match the return type of a gcc2
11183 builtin and then its argument prototype would still apply. */
11184char pthread_attr_getschedpolicy();
11185
11186int main() {
11187pthread_attr_getschedpolicy()
11188; return 0; }
11189EOF
c733b222 11190if { (eval echo configure:11191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11191 rm -rf conftest*
11192 eval "ac_cv_lib_$ac_lib_var=yes"
11193else
11194 echo "configure: failed program was:" >&5
11195 cat conftest.$ac_ext >&5
11196 rm -rf conftest*
11197 eval "ac_cv_lib_$ac_lib_var=no"
11198fi
11199rm -f conftest*
11200LIBS="$ac_save_LIBS"
11201
11202fi
11203if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11204 echo "$ac_t""yes" 1>&6
11205 cat >> confdefs.h <<\EOF
11206#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11207EOF
11208
11209else
11210 echo "$ac_t""no" 1>&6
11211echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
c733b222 11212echo "configure:11213: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
11213ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11214if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11215 echo $ac_n "(cached) $ac_c" 1>&6
11216else
11217 ac_save_LIBS="$LIBS"
11218LIBS="-l"posix4" $LIBS"
11219cat > conftest.$ac_ext <<EOF
c733b222 11220#line 11221 "configure"
10f2d63a
VZ
11221#include "confdefs.h"
11222/* Override any gcc2 internal prototype to avoid an error. */
11223/* We use char because int might match the return type of a gcc2
11224 builtin and then its argument prototype would still apply. */
11225char pthread_attr_getschedpolicy();
11226
11227int main() {
11228pthread_attr_getschedpolicy()
11229; return 0; }
11230EOF
c733b222 11231if { (eval echo configure:11232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11232 rm -rf conftest*
11233 eval "ac_cv_lib_$ac_lib_var=yes"
11234else
11235 echo "configure: failed program was:" >&5
11236 cat conftest.$ac_ext >&5
11237 rm -rf conftest*
11238 eval "ac_cv_lib_$ac_lib_var=no"
11239fi
11240rm -f conftest*
11241LIBS="$ac_save_LIBS"
11242
11243fi
11244if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11245 echo "$ac_t""yes" 1>&6
11246 cat >> confdefs.h <<\EOF
11247#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11248EOF
11249 POSIX4_LINK="-lposix4"
11250else
11251 echo "$ac_t""no" 1>&6
11252echo "configure: warning: Setting thread priority will not work" 1>&2
11253
11254fi
11255
11256
11257fi
11258
11259
11260 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
c733b222 11261echo "configure:11262: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
11262ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11263if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11264 echo $ac_n "(cached) $ac_c" 1>&6
11265else
11266 ac_save_LIBS="$LIBS"
11267LIBS="-l$THREADS_LINK $LIBS"
11268cat > conftest.$ac_ext <<EOF
c733b222 11269#line 11270 "configure"
10f2d63a
VZ
11270#include "confdefs.h"
11271/* Override any gcc2 internal prototype to avoid an error. */
11272/* We use char because int might match the return type of a gcc2
11273 builtin and then its argument prototype would still apply. */
11274char pthread_cancel();
11275
11276int main() {
11277pthread_cancel()
11278; return 0; }
11279EOF
c733b222 11280if { (eval echo configure:11281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11281 rm -rf conftest*
11282 eval "ac_cv_lib_$ac_lib_var=yes"
11283else
11284 echo "configure: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11286 rm -rf conftest*
11287 eval "ac_cv_lib_$ac_lib_var=no"
11288fi
11289rm -f conftest*
11290LIBS="$ac_save_LIBS"
11291
11292fi
11293if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11294 echo "$ac_t""yes" 1>&6
11295 cat >> confdefs.h <<\EOF
11296#define HAVE_PTHREAD_CANCEL 1
11297EOF
11298
11299else
11300 echo "$ac_t""no" 1>&6
11301echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11302fi
11303
11304
11305 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
c733b222 11306echo "configure:11307: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
11307if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11308 echo $ac_n "(cached) $ac_c" 1>&6
11309else
11310
11311 cat > conftest.$ac_ext <<EOF
c733b222 11312#line 11313 "configure"
10f2d63a
VZ
11313#include "confdefs.h"
11314#include <pthread.h>
11315int main() {
11316
11317 pthread_cleanup_push(NULL, NULL);
11318 pthread_cleanup_pop(0);
11319
11320; return 0; }
11321EOF
c733b222 11322if { (eval echo configure:11323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11323 rm -rf conftest*
11324
11325 wx_cv_func_pthread_cleanup_push=yes
11326 cat >> confdefs.h <<\EOF
11327#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11328EOF
11329
11330
11331else
11332 echo "configure: failed program was:" >&5
11333 cat conftest.$ac_ext >&5
11334 rm -rf conftest*
11335
11336 wx_cv_func_pthread_cleanup_push=no
11337
11338fi
11339rm -f conftest*
11340
11341fi
11342
11343echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11344
11345 THREADS_LINK="-l$THREADS_LINK"
11346fi
11347
11348fi
11349
11350if test "$wxUSE_THREADS" = "yes"; then
11351 cat >> confdefs.h <<\EOF
11352#define wxUSE_THREADS 1
11353EOF
11354
11355
11356 CFLAGS="${CFLAGS} -D_REENTRANT"
11357 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11358
11359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11360else
11361 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11362 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
c733b222 11363echo "configure:11364: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11364 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11365 CFLAGS="${CFLAGS} -D_REENTRANT"
11366 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11367 echo "$ac_t""yes" 1>&6
11368 else
11369 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11370 fi
11371 fi
11372fi
11373
13111b2a
VZ
11374if test "$WXGTK13" = 1 ; then
11375 cat >> confdefs.h <<EOF
11376#define __WXGTK13__ $WXGTK13
11377EOF
11378
11379 WXGTK12=1
11380fi
11381
10f2d63a
VZ
11382if test "$WXGTK12" = 1 ; then
11383 cat >> confdefs.h <<EOF
11384#define __WXGTK12__ $WXGTK12
11385EOF
11386
11387fi
11388
11389if test "$WXWINE" = 1 ; then
11390 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11391fi
11392
11393if test "$wxUSE_CYGWIN" = 1 ; then
11394 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11395fi
11396
11397WXDEBUG=
11398
11399if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11400 WXDEBUG="-g"
11401 wxUSE_OPTIMISE=no
11402fi
11403
11404if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11405 wxUSE_DEBUG_INFO=yes
11406 WXDEBUG="-ggdb"
11407fi
11408
11409if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11410 cat >> confdefs.h <<\EOF
11411#define WXDEBUG 1
11412EOF
11413
11414 WXDEBUG_DEFINE="-D__WXDEBUG__"
11415else
11416 if test "$wxUSE_GTK" = 1 ; then
11417 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11418 fi
11419fi
11420
11421if test "$wxUSE_MEM_TRACING" = "yes" ; then
11422 cat >> confdefs.h <<\EOF
11423#define wxUSE_MEMORY_TRACING 1
11424EOF
11425
11426 cat >> confdefs.h <<\EOF
11427#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
11428EOF
11429
11430 cat >> confdefs.h <<\EOF
11431#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
11432EOF
11433
11434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11435fi
11436
11437if test "$wxUSE_DMALLOC" = "yes" ; then
11438 DMALLOC_LINK="-ldmalloc"
11439fi
11440
11441PROFILE=
11442if test "$wxUSE_PROFILE" = "yes" ; then
11443 PROFILE="-pg"
11444fi
11445
11446DEP_INFO_FLAGS=
caa2c79b 11447CODE_GEN_FLAGS=
10f2d63a
VZ
11448if test "$GCC" = yes ; then
11449 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 11450 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
11451 fi
11452 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 11453 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
11454 fi
11455 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 11456 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
11457 fi
11458 if test "$wxUSE_NO_DEPS" = "no" ; then
11459 DEP_INFO_FLAGS="-MMD"
11460 fi
11461fi
11462
11463
11464CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11465CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11466if test "$wxUSE_OPTIMISE" = "no" ; then
11467 OPTIMISE=
11468else
11469 if test "$GCC" = yes ; then
11470 OPTIMISE="-O2"
11471 case "${host}" in
11472 i586-*-*|i686-*-* )
11473 OPTIMISE="${OPTIMISE} "
11474 ;;
11475 esac
11476 else
11477 OPTIMISE="-O"
11478 fi
11479fi
11480
11481
11482ZLIB_INCLUDE=
c733b222 11483if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
10f2d63a
VZ
11484 cat >> confdefs.h <<\EOF
11485#define wxUSE_ZLIB 1
11486EOF
11487
c733b222
VZ
11488 if test "$wxUSE_ZLIB" = "yes" ; then
11489 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11490 else
11491 ZLIB_LINK=
11492 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11493echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11494echo "configure:11495: checking for zlib.h" >&5
11495if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11496 echo $ac_n "(cached) $ac_c" 1>&6
11497else
11498 cat > conftest.$ac_ext <<EOF
11499#line 11500 "configure"
11500#include "confdefs.h"
11501#include <zlib.h>
11502EOF
11503ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11504{ (eval echo configure:11505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11505ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11506if test -z "$ac_err"; then
11507 rm -rf conftest*
11508 eval "ac_cv_header_$ac_safe=yes"
11509else
11510 echo "$ac_err" >&5
11511 echo "configure: failed program was:" >&5
11512 cat conftest.$ac_ext >&5
11513 rm -rf conftest*
11514 eval "ac_cv_header_$ac_safe=no"
11515fi
11516rm -f conftest*
11517fi
11518if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11519 echo "$ac_t""yes" 1>&6
11520 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11521echo "configure:11522: checking for deflate in -lz" >&5
11522ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11523if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11524 echo $ac_n "(cached) $ac_c" 1>&6
11525else
11526 ac_save_LIBS="$LIBS"
11527LIBS="-lz $LIBS"
11528cat > conftest.$ac_ext <<EOF
11529#line 11530 "configure"
11530#include "confdefs.h"
11531/* Override any gcc2 internal prototype to avoid an error. */
11532/* We use char because int might match the return type of a gcc2
11533 builtin and then its argument prototype would still apply. */
11534char deflate();
11535
11536int main() {
11537deflate()
11538; return 0; }
11539EOF
11540if { (eval echo configure:11541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11541 rm -rf conftest*
11542 eval "ac_cv_lib_$ac_lib_var=yes"
11543else
11544 echo "configure: failed program was:" >&5
11545 cat conftest.$ac_ext >&5
11546 rm -rf conftest*
11547 eval "ac_cv_lib_$ac_lib_var=no"
11548fi
11549rm -f conftest*
11550LIBS="$ac_save_LIBS"
11551
11552fi
11553if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11554 echo "$ac_t""yes" 1>&6
11555 ZLIB_LINK="-lz"
11556else
11557 echo "$ac_t""no" 1>&6
11558fi
11559
11560else
11561 echo "$ac_t""no" 1>&6
11562fi
11563
11564
11565 if test "x$ZLIB_LINK" = "x" ; then
11566 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
11567 fi
11568 fi
10f2d63a
VZ
11569fi
11570
11571PNG_INCLUDE=
11572if test "$wxUSE_LIBPNG" = "yes" ; then
11573 cat >> confdefs.h <<\EOF
11574#define wxUSE_LIBPNG 1
11575EOF
11576
11577 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11579fi
11580
11581JPEG_INCLUDE=
11582if test "$wxUSE_LIBJPEG" = "yes" ; then
11583 cat >> confdefs.h <<\EOF
11584#define wxUSE_LIBJPEG 1
11585EOF
11586
11587 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11588fi
11589
c7a2bf27
RR
11590TIFF_INCLUDE=
11591if test "$wxUSE_LIBTIFF" = "yes" ; then
11592 cat >> confdefs.h <<\EOF
11593#define wxUSE_LIBTIFF 1
11594EOF
11595
11596 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11597fi
11598
10f2d63a
VZ
11599if test "$wxUSE_OPENGL" = "yes"; then
11600 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11601echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
c733b222 11602echo "configure:11603: checking for GL/gl.h" >&5
10f2d63a
VZ
11603if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11604 echo $ac_n "(cached) $ac_c" 1>&6
11605else
11606 cat > conftest.$ac_ext <<EOF
c733b222 11607#line 11608 "configure"
10f2d63a
VZ
11608#include "confdefs.h"
11609#include <GL/gl.h>
11610EOF
11611ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 11612{ (eval echo configure:11613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11613ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11614if test -z "$ac_err"; then
11615 rm -rf conftest*
11616 eval "ac_cv_header_$ac_safe=yes"
11617else
11618 echo "$ac_err" >&5
11619 echo "configure: failed program was:" >&5
11620 cat conftest.$ac_ext >&5
11621 rm -rf conftest*
11622 eval "ac_cv_header_$ac_safe=no"
11623fi
11624rm -f conftest*
11625fi
11626if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11627 echo "$ac_t""yes" 1>&6
11628
11629 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
c733b222 11630echo "configure:11631: checking for glInitNames in -lGL" >&5
10f2d63a
VZ
11631ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
11632if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11633 echo $ac_n "(cached) $ac_c" 1>&6
11634else
11635 ac_save_LIBS="$LIBS"
11636LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
11637cat > conftest.$ac_ext <<EOF
c733b222 11638#line 11639 "configure"
10f2d63a
VZ
11639#include "confdefs.h"
11640/* Override any gcc2 internal prototype to avoid an error. */
11641/* We use char because int might match the return type of a gcc2
11642 builtin and then its argument prototype would still apply. */
11643char glInitNames();
11644
11645int main() {
11646glInitNames()
11647; return 0; }
11648EOF
c733b222 11649if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11650 rm -rf conftest*
11651 eval "ac_cv_lib_$ac_lib_var=yes"
11652else
11653 echo "configure: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11655 rm -rf conftest*
11656 eval "ac_cv_lib_$ac_lib_var=no"
11657fi
11658rm -f conftest*
11659LIBS="$ac_save_LIBS"
11660
11661fi
11662if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11663 echo "$ac_t""yes" 1>&6
11664
11665 OPENGL_LINK="-lGL"
11666 cat >> confdefs.h <<\EOF
11667#define wxUSE_OPENGL 1
11668EOF
11669
11670 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11671
11672else
11673 echo "$ac_t""no" 1>&6
11674
11675 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
c733b222 11676echo "configure:11677: checking for glInitNames in -lMesaGL" >&5
10f2d63a
VZ
11677ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11678if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11679 echo $ac_n "(cached) $ac_c" 1>&6
11680else
11681 ac_save_LIBS="$LIBS"
11682LIBS="-lMesaGL $LIBS"
11683cat > conftest.$ac_ext <<EOF
c733b222 11684#line 11685 "configure"
10f2d63a
VZ
11685#include "confdefs.h"
11686/* Override any gcc2 internal prototype to avoid an error. */
11687/* We use char because int might match the return type of a gcc2
11688 builtin and then its argument prototype would still apply. */
11689char glInitNames();
11690
11691int main() {
11692glInitNames()
11693; return 0; }
11694EOF
c733b222 11695if { (eval echo configure:11696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11696 rm -rf conftest*
11697 eval "ac_cv_lib_$ac_lib_var=yes"
11698else
11699 echo "configure: failed program was:" >&5
11700 cat conftest.$ac_ext >&5
11701 rm -rf conftest*
11702 eval "ac_cv_lib_$ac_lib_var=no"
11703fi
11704rm -f conftest*
11705LIBS="$ac_save_LIBS"
11706
11707fi
11708if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11709 echo "$ac_t""yes" 1>&6
11710
11711 OPENGL_LINK="-lMesaGL"
11712 cat >> confdefs.h <<\EOF
11713#define wxUSE_OPENGL 1
11714EOF
11715
11716 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11717
11718else
11719 echo "$ac_t""no" 1>&6
11720wxUSE_OPENGL=0
11721fi
11722
11723
11724fi
11725
11726
11727else
11728 echo "$ac_t""no" 1>&6
11729wxUSE_OPENGL=0
11730fi
11731
11732fi
11733
11734
11735if test "$wxUSE_GUI" = "yes"; then
11736 cat >> confdefs.h <<\EOF
11737#define wxUSE_GUI 1
11738EOF
11739
11740
11741 else
11742 cat >> confdefs.h <<\EOF
11743#define wxUSE_NOGUI 1
11744EOF
11745
11746fi
11747
11748
11749if test "$wxUSE_UNIX" = "yes"; then
11750 cat >> confdefs.h <<\EOF
11751#define wxUSE_UNIX 1
11752EOF
11753
11754fi
11755
11756
11757if test "$wxUSE_APPLE_IEEE" = "yes"; then
11758 cat >> confdefs.h <<\EOF
11759#define wxUSE_APPLE_IEEE 1
11760EOF
11761
11762fi
11763
10f2d63a
VZ
11764if test "$wxUSE_WAVE" = "yes"; then
11765 cat >> confdefs.h <<\EOF
11766#define wxUSE_WAVE 1
11767EOF
11768
11769fi
11770
11771if test "$wxUSE_FILE" = "yes"; then
11772 cat >> confdefs.h <<\EOF
11773#define wxUSE_FILE 1
11774EOF
11775
11776fi
11777
24528b0c
VS
11778if test "$wxUSE_FILESYSTEM" = "yes"; then
11779 cat >> confdefs.h <<\EOF
11780#define wxUSE_FILESYSTEM 1
11781EOF
11782
11783fi
11784
10f2d63a
VZ
11785if test "$wxUSE_FS_INET" = "yes"; then
11786 cat >> confdefs.h <<\EOF
11787#define wxUSE_FS_INET 1
11788EOF
11789
11790fi
11791
11792if test "$wxUSE_FS_ZIP" = "yes"; then
11793 cat >> confdefs.h <<\EOF
11794#define wxUSE_FS_ZIP 1
11795EOF
11796
11797fi
11798
11799if test "$wxUSE_ZIPSTREAM" = "yes"; then
11800 cat >> confdefs.h <<\EOF
11801#define wxUSE_ZIPSTREAM 1
11802EOF
11803
11804fi
11805
11806if test "$wxUSE_BUSYINFO" = "yes"; then
11807 cat >> confdefs.h <<\EOF
11808#define wxUSE_BUSYINFO 1
11809EOF
11810
11811fi
11812
11813if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11814 cat >> confdefs.h <<\EOF
11815#define wxUSE_STD_IOSTREAM 1
11816EOF
11817
11818fi
11819
11820if test "$wxUSE_TEXTFILE" = "yes"; then
11821 if test "$wxUSE_FILE" != "yes"; then
11822 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11823 else
11824 cat >> confdefs.h <<\EOF
11825#define wxUSE_TEXTFILE 1
11826EOF
11827
11828 fi
11829fi
11830
11831if test "$wxUSE_CONFIG" = "yes" ; then
11832 if test "$wxUSE_TEXTFILE" != "yes"; then
11833 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11834 else
11835 cat >> confdefs.h <<\EOF
11836#define wxUSE_CONFIG 1
11837EOF
11838
11839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11840 fi
11841fi
11842
11843if test "$wxUSE_INTL" = "yes" ; then
11844 if test "$wxUSE_FILE" != "yes"; then
11845 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11846 else
11847 cat >> confdefs.h <<\EOF
11848#define wxUSE_INTL 1
11849EOF
11850
11851 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11852 fi
11853fi
11854
11855if test "$wxUSE_LOG" = "yes"; then
11856 cat >> confdefs.h <<\EOF
11857#define wxUSE_LOG 1
11858EOF
11859
11860fi
11861
11862if test "$wxUSE_LONGLONG" = "yes"; then
11863 cat >> confdefs.h <<\EOF
11864#define wxUSE_LONGLONG 1
11865EOF
11866
11867fi
11868
9b33fe02
VZ
11869if test "$wxUSE_PLOT" = "yes"; then
11870 cat >> confdefs.h <<\EOF
11871#define wxUSE_PLOT 1
11872EOF
11873
11874fi
11875
10f2d63a
VZ
11876if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11877 cat >> confdefs.h <<\EOF
11878#define wxUSE_DIALUP_MANAGER 1
11879EOF
11880
70f7a477 11881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
11882fi
11883
11884if test "$wxUSE_STREAMS" = "yes" ; then
11885 cat >> confdefs.h <<\EOF
11886#define wxUSE_STREAMS 1
11887EOF
11888
11889fi
11890
10f2d63a 11891
afc31813 11892if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
11893 for ac_func in strptime
11894do
11895echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c733b222 11896echo "configure:11897: checking for $ac_func" >&5
83307f33
VZ
11897if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11898 echo $ac_n "(cached) $ac_c" 1>&6
11899else
11900 cat > conftest.$ac_ext <<EOF
c733b222 11901#line 11902 "configure"
83307f33
VZ
11902#include "confdefs.h"
11903/* System header to define __stub macros and hopefully few prototypes,
11904 which can conflict with char $ac_func(); below. */
11905#include <assert.h>
11906/* Override any gcc2 internal prototype to avoid an error. */
11907/* We use char because int might match the return type of a gcc2
11908 builtin and then its argument prototype would still apply. */
11909char $ac_func();
11910
11911int main() {
11912
11913/* The GNU C library defines this for functions which it implements
11914 to always fail with ENOSYS. Some functions are actually named
11915 something starting with __ and the normal name is an alias. */
11916#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11917choke me
11918#else
d6a55c4b 11919$ac_func();
83307f33
VZ
11920#endif
11921
11922; return 0; }
11923EOF
c733b222 11924if { (eval echo configure:11925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
11925 rm -rf conftest*
11926 eval "ac_cv_func_$ac_func=yes"
11927else
11928 echo "configure: failed program was:" >&5
11929 cat conftest.$ac_ext >&5
11930 rm -rf conftest*
11931 eval "ac_cv_func_$ac_func=no"
11932fi
11933rm -f conftest*
11934fi
11935
11936if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11937 echo "$ac_t""yes" 1>&6
11938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11939 cat >> confdefs.h <<EOF
11940#define $ac_tr_func 1
11941EOF
11942
11943else
11944 echo "$ac_t""no" 1>&6
11945fi
11946done
11947
11948
360d6699 11949 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
c733b222 11950echo "configure:11951: checking for timezone variable in <time.h>" >&5
360d6699
VZ
11951if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11952 echo $ac_n "(cached) $ac_c" 1>&6
11953else
11954
11955 cat > conftest.$ac_ext <<EOF
c733b222 11956#line 11957 "configure"
360d6699
VZ
11957#include "confdefs.h"
11958
11959 #include <time.h>
11960
11961int main() {
11962
11963 int tz;
11964 tz = __timezone;
11965
11966; return 0; }
11967EOF
c733b222 11968if { (eval echo configure:11969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11969 rm -rf conftest*
11970
11971 wx_cv_var_timezone=__timezone
11972
11973else
11974 echo "configure: failed program was:" >&5
11975 cat conftest.$ac_ext >&5
11976 rm -rf conftest*
11977
11978 cat > conftest.$ac_ext <<EOF
c733b222 11979#line 11980 "configure"
360d6699
VZ
11980#include "confdefs.h"
11981
11982 #include <time.h>
11983
11984int main() {
11985
11986 int tz;
11987 tz = _timezone;
11988
11989; return 0; }
11990EOF
c733b222 11991if { (eval echo configure:11992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11992 rm -rf conftest*
11993
11994 wx_cv_var_timezone=_timezone
11995
5357c8e8
VZ
11996else
11997 echo "configure: failed program was:" >&5
11998 cat conftest.$ac_ext >&5
11999 rm -rf conftest*
12000
12001 cat > conftest.$ac_ext <<EOF
c733b222 12002#line 12003 "configure"
5357c8e8
VZ
12003#include "confdefs.h"
12004
12005 #include <time.h>
12006
12007int main() {
12008
12009 int tz;
12010 tz = timezone;
12011
12012; return 0; }
12013EOF
c733b222 12014if { (eval echo configure:12015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
12015 rm -rf conftest*
12016
12017 wx_cv_var_timezone=timezone
12018
360d6699
VZ
12019else
12020 echo "configure: failed program was:" >&5
12021 cat conftest.$ac_ext >&5
12022 rm -rf conftest*
12023 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
12024
12025fi
12026rm -f conftest*
12027
360d6699
VZ
12028
12029fi
12030rm -f conftest*
12031
12032
12033fi
12034rm -f conftest*
12035
12036
12037fi
12038
12039echo "$ac_t""$wx_cv_var_timezone" 1>&6
12040
12041 cat >> confdefs.h <<EOF
12042#define WX_TIMEZONE $wx_cv_var_timezone
12043EOF
12044
12045
3fcdd07b 12046 for ac_func in localtime
afc31813
VZ
12047do
12048echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c733b222 12049echo "configure:12050: checking for $ac_func" >&5
afc31813
VZ
12050if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12051 echo $ac_n "(cached) $ac_c" 1>&6
12052else
12053 cat > conftest.$ac_ext <<EOF
c733b222 12054#line 12055 "configure"
10f2d63a 12055#include "confdefs.h"
afc31813
VZ
12056/* System header to define __stub macros and hopefully few prototypes,
12057 which can conflict with char $ac_func(); below. */
12058#include <assert.h>
12059/* Override any gcc2 internal prototype to avoid an error. */
12060/* We use char because int might match the return type of a gcc2
12061 builtin and then its argument prototype would still apply. */
12062char $ac_func();
12063
10f2d63a 12064int main() {
afc31813
VZ
12065
12066/* The GNU C library defines this for functions which it implements
12067 to always fail with ENOSYS. Some functions are actually named
12068 something starting with __ and the normal name is an alias. */
12069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12070choke me
12071#else
d6a55c4b 12072$ac_func();
afc31813
VZ
12073#endif
12074
10f2d63a
VZ
12075; return 0; }
12076EOF
c733b222 12077if { (eval echo configure:12078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 12078 rm -rf conftest*
afc31813 12079 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
12080else
12081 echo "configure: failed program was:" >&5
12082 cat conftest.$ac_ext >&5
12083 rm -rf conftest*
afc31813
VZ
12084 eval "ac_cv_func_$ac_func=no"
12085fi
12086rm -f conftest*
12087fi
12088
12089if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12090 echo "$ac_t""yes" 1>&6
12091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12092 cat >> confdefs.h <<EOF
12093#define $ac_tr_func 1
12094EOF
3fcdd07b 12095
afc31813
VZ
12096else
12097 echo "$ac_t""no" 1>&6
12098fi
12099done
12100
12101
0470b1e6
VZ
12102 if test "$ac_cv_func_localtime" = "yes"; then
12103 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
c733b222 12104echo "configure:12105: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
12105if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
12106 echo $ac_n "(cached) $ac_c" 1>&6
12107else
12108
12109 cat > conftest.$ac_ext <<EOF
c733b222 12110#line 12111 "configure"
0470b1e6
VZ
12111#include "confdefs.h"
12112
12113 #include <time.h>
12114
12115int main() {
12116
12117 struct tm tm;
12118 tm.tm_gmtoff++;
12119
12120; return 0; }
12121EOF
c733b222 12122if { (eval echo configure:12123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
12123 rm -rf conftest*
12124
f03a98d8 12125 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
12126 cat >> confdefs.h <<\EOF
12127#define WX_GMTOFF_IN_TM 1
12128EOF
12129
12130
12131else
12132 echo "configure: failed program was:" >&5
12133 cat conftest.$ac_ext >&5
12134 rm -rf conftest*
12135 wx_cv_struct_tm_has_gmtoff=no
12136
12137fi
12138rm -f conftest*
12139
12140fi
12141
12142echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
12143 fi
12144
12145 for ac_func in gettimeofday ftime
12146do
12147echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c733b222 12148echo "configure:12149: checking for $ac_func" >&5
3fcdd07b
VZ
12149if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12150 echo $ac_n "(cached) $ac_c" 1>&6
12151else
12152 cat > conftest.$ac_ext <<EOF
c733b222 12153#line 12154 "configure"
3fcdd07b
VZ
12154#include "confdefs.h"
12155/* System header to define __stub macros and hopefully few prototypes,
12156 which can conflict with char $ac_func(); below. */
12157#include <assert.h>
12158/* Override any gcc2 internal prototype to avoid an error. */
12159/* We use char because int might match the return type of a gcc2
12160 builtin and then its argument prototype would still apply. */
12161char $ac_func();
12162
12163int main() {
12164
12165/* The GNU C library defines this for functions which it implements
12166 to always fail with ENOSYS. Some functions are actually named
12167 something starting with __ and the normal name is an alias. */
12168#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12169choke me
12170#else
d6a55c4b 12171$ac_func();
3fcdd07b
VZ
12172#endif
12173
12174; return 0; }
12175EOF
c733b222 12176if { (eval echo configure:12177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
12177 rm -rf conftest*
12178 eval "ac_cv_func_$ac_func=yes"
12179else
12180 echo "configure: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12182 rm -rf conftest*
12183 eval "ac_cv_func_$ac_func=no"
12184fi
12185rm -f conftest*
12186fi
12187
12188if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12189 echo "$ac_t""yes" 1>&6
12190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12191 cat >> confdefs.h <<EOF
12192#define $ac_tr_func 1
12193EOF
12194 break
12195else
12196 echo "$ac_t""no" 1>&6
12197fi
12198done
12199
12200
12201 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 12202 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
c733b222 12203echo "configure:12204: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
12204if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12205 echo $ac_n "(cached) $ac_c" 1>&6
12206else
12207
12208
12209 ac_ext=C
12210# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12211ac_cpp='$CXXCPP $CPPFLAGS'
12212ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12213ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12214cross_compiling=$ac_cv_prog_cxx_cross
12215
12216
12217 cat > conftest.$ac_ext <<EOF
c733b222 12218#line 12219 "configure"
10f2d63a 12219#include "confdefs.h"
afc31813
VZ
12220
12221 #include <sys/time.h>
12222 #include <unistd.h>
12223
10f2d63a 12224int main() {
afc31813
VZ
12225
12226 struct timeval tv;
12227 struct timezone tz;
12228 gettimeofday(&tv, &tz);
12229
10f2d63a
VZ
12230; return 0; }
12231EOF
c733b222 12232if { (eval echo configure:12233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12233 rm -rf conftest*
afc31813 12234 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
12235else
12236 echo "configure: failed program was:" >&5
12237 cat conftest.$ac_ext >&5
12238 rm -rf conftest*
12239 cat > conftest.$ac_ext <<EOF
c733b222 12240#line 12241 "configure"
10f2d63a 12241#include "confdefs.h"
afc31813
VZ
12242
12243 #include <sys/time.h>
12244 #include <unistd.h>
12245
10f2d63a 12246int main() {
afc31813
VZ
12247
12248 struct timeval tv;
12249 gettimeofday(&tv);
12250
10f2d63a
VZ
12251; return 0; }
12252EOF
c733b222 12253if { (eval echo configure:12254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12254 rm -rf conftest*
afc31813 12255 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
12256else
12257 echo "configure: failed program was:" >&5
12258 cat conftest.$ac_ext >&5
12259 rm -rf conftest*
afc31813
VZ
12260 wx_cv_func_gettimeofday_has_2_args=unknown
12261
10f2d63a
VZ
12262fi
12263rm -f conftest*
afc31813 12264
10f2d63a
VZ
12265fi
12266rm -f conftest*
afc31813 12267 ac_ext=c
10f2d63a
VZ
12268# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12269ac_cpp='$CPP $CPPFLAGS'
12270ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12271ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12272cross_compiling=$ac_cv_prog_cc_cross
12273
afc31813
VZ
12274
12275fi
12276
12277echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 12278
afc31813
VZ
12279 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12280 cat >> confdefs.h <<\EOF
12281#define WX_GETTIMEOFDAY_NO_TZ 1
12282EOF
12283
12284 fi
12285 fi
12286
12287 cat >> confdefs.h <<\EOF
12288#define wxUSE_TIMEDATE 1
12289EOF
12290
12291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12292fi
12293
12294
b089607b
VZ
12295if test "$TOOLKIT" != "MSW"; then
12296
afc31813 12297if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 12298 echo $ac_n "checking for socket""... $ac_c" 1>&6
c733b222 12299echo "configure:12300: checking for socket" >&5
c63c7106
VZ
12300if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12301 echo $ac_n "(cached) $ac_c" 1>&6
12302else
12303 cat > conftest.$ac_ext <<EOF
c733b222 12304#line 12305 "configure"
c63c7106
VZ
12305#include "confdefs.h"
12306/* System header to define __stub macros and hopefully few prototypes,
12307 which can conflict with char socket(); below. */
12308#include <assert.h>
12309/* Override any gcc2 internal prototype to avoid an error. */
12310/* We use char because int might match the return type of a gcc2
12311 builtin and then its argument prototype would still apply. */
12312char socket();
12313
12314int main() {
12315
12316/* The GNU C library defines this for functions which it implements
12317 to always fail with ENOSYS. Some functions are actually named
12318 something starting with __ and the normal name is an alias. */
12319#if defined (__stub_socket) || defined (__stub___socket)
12320choke me
12321#else
d6a55c4b 12322socket();
c63c7106
VZ
12323#endif
12324
12325; return 0; }
12326EOF
c733b222 12327if { (eval echo configure:12328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12328 rm -rf conftest*
12329 eval "ac_cv_func_socket=yes"
12330else
12331 echo "configure: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12333 rm -rf conftest*
12334 eval "ac_cv_func_socket=no"
12335fi
12336rm -f conftest*
12337fi
12338
12339if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12340 echo "$ac_t""yes" 1>&6
12341 :
12342else
12343 echo "$ac_t""no" 1>&6
12344echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
c733b222 12345echo "configure:12346: checking for socket in -lsocket" >&5
c63c7106
VZ
12346ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12347if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12348 echo $ac_n "(cached) $ac_c" 1>&6
12349else
12350 ac_save_LIBS="$LIBS"
12351LIBS="-lsocket $LIBS"
12352cat > conftest.$ac_ext <<EOF
c733b222 12353#line 12354 "configure"
c63c7106
VZ
12354#include "confdefs.h"
12355/* Override any gcc2 internal prototype to avoid an error. */
12356/* We use char because int might match the return type of a gcc2
12357 builtin and then its argument prototype would still apply. */
12358char socket();
12359
12360int main() {
12361socket()
12362; return 0; }
12363EOF
c733b222 12364if { (eval echo configure:12365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12365 rm -rf conftest*
12366 eval "ac_cv_lib_$ac_lib_var=yes"
12367else
12368 echo "configure: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 rm -rf conftest*
12371 eval "ac_cv_lib_$ac_lib_var=no"
12372fi
12373rm -f conftest*
12374LIBS="$ac_save_LIBS"
12375
12376fi
12377if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12378 echo "$ac_t""yes" 1>&6
12379 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
12380else
12381 echo "$ac_t""no" 1>&6
afc31813
VZ
12382
12383 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12384 wxUSE_SOCKETS=no
12385
12386
c63c7106
VZ
12387fi
12388
12389
12390fi
12391
10f2d63a
VZ
12392fi
12393
b089607b
VZ
12394fi
12395
afc31813 12396if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 12397 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
c733b222 12398echo "configure:12399: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
12399if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12400 echo $ac_n "(cached) $ac_c" 1>&6
12401else
12402
12403
12404 ac_ext=C
afc31813
VZ
12405# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12406ac_cpp='$CXXCPP $CPPFLAGS'
12407ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12408ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12409cross_compiling=$ac_cv_prog_cxx_cross
12410
51a9faba
VZ
12411
12412 cat > conftest.$ac_ext <<EOF
c733b222 12413#line 12414 "configure"
afc31813 12414#include "confdefs.h"
51a9faba 12415
3ace2e6d 12416 #include <sys/types.h>
51a9faba
VZ
12417 #include <sys/socket.h>
12418
afc31813 12419int main() {
51a9faba
VZ
12420
12421 socklen_t len;
12422 getsockname(0, 0, &len);
12423
afc31813
VZ
12424; return 0; }
12425EOF
c733b222 12426if { (eval echo configure:12427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12427 rm -rf conftest*
51a9faba 12428 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
12429else
12430 echo "configure: failed program was:" >&5
12431 cat conftest.$ac_ext >&5
12432 rm -rf conftest*
12433 cat > conftest.$ac_ext <<EOF
c733b222 12434#line 12435 "configure"
afc31813 12435#include "confdefs.h"
51a9faba 12436
3ace2e6d 12437 #include <sys/types.h>
51a9faba
VZ
12438 #include <sys/socket.h>
12439
afc31813 12440int main() {
51a9faba
VZ
12441
12442 size_t len;
12443 getsockname(0, 0, &len);
12444
afc31813
VZ
12445; return 0; }
12446EOF
c733b222 12447if { (eval echo configure:12448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12448 rm -rf conftest*
51a9faba 12449 wx_cv_type_getsockname3=size_t
afc31813
VZ
12450else
12451 echo "configure: failed program was:" >&5
12452 cat conftest.$ac_ext >&5
12453 rm -rf conftest*
12454 cat > conftest.$ac_ext <<EOF
c733b222 12455#line 12456 "configure"
afc31813 12456#include "confdefs.h"
51a9faba 12457
3ace2e6d 12458 #include <sys/types.h>
51a9faba
VZ
12459 #include <sys/socket.h>
12460
afc31813 12461int main() {
51a9faba
VZ
12462
12463 int len;
12464 getsockname(0, 0, &len);
12465
afc31813
VZ
12466; return 0; }
12467EOF
c733b222 12468if { (eval echo configure:12469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12469 rm -rf conftest*
51a9faba 12470 wx_cv_type_getsockname3=int
afc31813
VZ
12471else
12472 echo "configure: failed program was:" >&5
12473 cat conftest.$ac_ext >&5
3ace2e6d
SN
12474 rm -rf conftest*
12475 wx_cv_type_getsockname3=unknown
12476
afc31813
VZ
12477fi
12478rm -f conftest*
51a9faba 12479
afc31813
VZ
12480fi
12481rm -f conftest*
51a9faba 12482
afc31813
VZ
12483fi
12484rm -f conftest*
51a9faba
VZ
12485
12486 ac_ext=c
afc31813
VZ
12487# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12488ac_cpp='$CPP $CPPFLAGS'
12489ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12490ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12491cross_compiling=$ac_cv_prog_cc_cross
12492
51a9faba
VZ
12493
12494fi
12495
12496echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12497
12498 if test "$wx_cv_type_getsockname3" = "unknown"; then
12499 wxUSE_SOCKETS=no
12500 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12501 else
12502 cat >> confdefs.h <<EOF
12503#define SOCKLEN_T $wx_cv_type_getsockname3
12504EOF
12505
12506 fi
12507fi
afc31813 12508
51a9faba 12509if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
12510 cat >> confdefs.h <<\EOF
12511#define wxUSE_SOCKETS 1
12512EOF
12513
70f7a477 12514 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
12515 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12516fi
12517
10f2d63a 12518
b089607b
VZ
12519if test "$TOOLKIT" != "MSW"; then
12520
10f2d63a
VZ
12521if test "$wxUSE_JOYSTICK" = 1; then
12522 for ac_hdr in linux/joystick.h
12523do
12524ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12525echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c733b222 12526echo "configure:12527: checking for $ac_hdr" >&5
10f2d63a
VZ
12527if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12528 echo $ac_n "(cached) $ac_c" 1>&6
12529else
12530 cat > conftest.$ac_ext <<EOF
c733b222 12531#line 12532 "configure"
10f2d63a
VZ
12532#include "confdefs.h"
12533#include <$ac_hdr>
12534EOF
12535ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 12536{ (eval echo configure:12537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12537ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12538if test -z "$ac_err"; then
12539 rm -rf conftest*
12540 eval "ac_cv_header_$ac_safe=yes"
12541else
12542 echo "$ac_err" >&5
12543 echo "configure: failed program was:" >&5
12544 cat conftest.$ac_ext >&5
12545 rm -rf conftest*
12546 eval "ac_cv_header_$ac_safe=no"
12547fi
12548rm -f conftest*
12549fi
12550if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12551 echo "$ac_t""yes" 1>&6
12552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12553 cat >> confdefs.h <<EOF
12554#define $ac_tr_hdr 1
12555EOF
12556
12557else
12558 echo "$ac_t""no" 1>&6
12559fi
12560done
12561
b089607b
VZ
12562 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
12563 wxUSE_JOYSTICK=0
12564 echo "configure: warning: Joystick not supported yb this system" 1>&2
12565 fi
12566fi
12567
12568fi
12569
12570if test "$wxUSE_JOYSTICK" = 1; then
10f2d63a
VZ
12571 cat >> confdefs.h <<\EOF
12572#define wxUSE_JOYSTICK 1
12573EOF
12574
12575 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
12576fi
12577
12578
b089607b
VZ
12579if test "$TOOLKIT" != "MSW"; then
12580
10f2d63a
VZ
12581HAVE_DL_FUNCS=0
12582HAVE_SHL_FUNCS=0
12583if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12584 for ac_func in dlopen
12585do
12586echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c733b222 12587echo "configure:12588: checking for $ac_func" >&5
10f2d63a
VZ
12588if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12589 echo $ac_n "(cached) $ac_c" 1>&6
12590else
12591 cat > conftest.$ac_ext <<EOF
c733b222 12592#line 12593 "configure"
10f2d63a
VZ
12593#include "confdefs.h"
12594/* System header to define __stub macros and hopefully few prototypes,
12595 which can conflict with char $ac_func(); below. */
12596#include <assert.h>
12597/* Override any gcc2 internal prototype to avoid an error. */
12598/* We use char because int might match the return type of a gcc2
12599 builtin and then its argument prototype would still apply. */
12600char $ac_func();
12601
12602int main() {
12603
12604/* The GNU C library defines this for functions which it implements
12605 to always fail with ENOSYS. Some functions are actually named
12606 something starting with __ and the normal name is an alias. */
12607#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12608choke me
12609#else
d6a55c4b 12610$ac_func();
10f2d63a
VZ
12611#endif
12612
12613; return 0; }
12614EOF
c733b222 12615if { (eval echo configure:12616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12616 rm -rf conftest*
12617 eval "ac_cv_func_$ac_func=yes"
12618else
12619 echo "configure: failed program was:" >&5
12620 cat conftest.$ac_ext >&5
12621 rm -rf conftest*
12622 eval "ac_cv_func_$ac_func=no"
12623fi
12624rm -f conftest*
12625fi
12626
12627if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12628 echo "$ac_t""yes" 1>&6
12629 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12630 cat >> confdefs.h <<EOF
12631#define $ac_tr_func 1
12632EOF
12633
12634 cat >> confdefs.h <<\EOF
12635#define HAVE_DLOPEN 1
12636EOF
12637
12638 HAVE_DL_FUNCS=1
12639
12640else
12641 echo "$ac_t""no" 1>&6
12642echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
c733b222 12643echo "configure:12644: checking for dlopen in -ldl" >&5
10f2d63a
VZ
12644ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12645if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12646 echo $ac_n "(cached) $ac_c" 1>&6
12647else
12648 ac_save_LIBS="$LIBS"
12649LIBS="-ldl $LIBS"
12650cat > conftest.$ac_ext <<EOF
c733b222 12651#line 12652 "configure"
10f2d63a
VZ
12652#include "confdefs.h"
12653/* Override any gcc2 internal prototype to avoid an error. */
12654/* We use char because int might match the return type of a gcc2
12655 builtin and then its argument prototype would still apply. */
12656char dlopen();
12657
12658int main() {
12659dlopen()
12660; return 0; }
12661EOF
c733b222 12662if { (eval echo configure:12663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12663 rm -rf conftest*
12664 eval "ac_cv_lib_$ac_lib_var=yes"
12665else
12666 echo "configure: failed program was:" >&5
12667 cat conftest.$ac_ext >&5
12668 rm -rf conftest*
12669 eval "ac_cv_lib_$ac_lib_var=no"
12670fi
12671rm -f conftest*
12672LIBS="$ac_save_LIBS"
12673
12674fi
12675if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12676 echo "$ac_t""yes" 1>&6
12677
12678 cat >> confdefs.h <<\EOF
12679#define HAVE_DLOPEN 1
12680EOF
12681
12682 HAVE_DL_FUNCS=1
12683 LIBS="$LIBS -ldl"
12684
12685else
12686 echo "$ac_t""no" 1>&6
12687
12688 for ac_func in shl_load
12689do
12690echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c733b222 12691echo "configure:12692: checking for $ac_func" >&5
10f2d63a
VZ
12692if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12693 echo $ac_n "(cached) $ac_c" 1>&6
12694else
12695 cat > conftest.$ac_ext <<EOF
c733b222 12696#line 12697 "configure"
10f2d63a
VZ
12697#include "confdefs.h"
12698/* System header to define __stub macros and hopefully few prototypes,
12699 which can conflict with char $ac_func(); below. */
12700#include <assert.h>
12701/* Override any gcc2 internal prototype to avoid an error. */
12702/* We use char because int might match the return type of a gcc2
12703 builtin and then its argument prototype would still apply. */
12704char $ac_func();
12705
12706int main() {
12707
12708/* The GNU C library defines this for functions which it implements
12709 to always fail with ENOSYS. Some functions are actually named
12710 something starting with __ and the normal name is an alias. */
12711#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12712choke me
12713#else
d6a55c4b 12714$ac_func();
10f2d63a
VZ
12715#endif
12716
12717; return 0; }
12718EOF
c733b222 12719if { (eval echo configure:12720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12720 rm -rf conftest*
12721 eval "ac_cv_func_$ac_func=yes"
12722else
12723 echo "configure: failed program was:" >&5
12724 cat conftest.$ac_ext >&5
12725 rm -rf conftest*
12726 eval "ac_cv_func_$ac_func=no"
12727fi
12728rm -f conftest*
12729fi
12730
12731if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12732 echo "$ac_t""yes" 1>&6
12733 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12734 cat >> confdefs.h <<EOF
12735#define $ac_tr_func 1
12736EOF
12737
12738 cat >> confdefs.h <<\EOF
12739#define HAVE_SHL_LOAD 1
12740EOF
12741
12742 HAVE_SHL_FUNCS=1
12743
12744else
12745 echo "$ac_t""no" 1>&6
12746fi
12747done
12748
12749
12750fi
12751
12752
12753fi
12754done
12755
12756
12757 if test "$HAVE_DL_FUNCS" = 0; then
12758 if test "$HAVE_SHL_FUNCS" = 0; then
12759 if test "$USE_UNIX" = 1; then
b12915c1 12760 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
12761 wxUSE_DYNLIB_CLASS=no
12762 else
b12915c1 12763 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
12764 fi
12765 fi
12766 fi
12767fi
12768
b089607b
VZ
12769fi
12770
10f2d63a 12771if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 12772 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12773#define wxUSE_DYNLIB_CLASS 1
12774EOF
12775
b12915c1
VZ
12776else
12777 wxUSE_ODBC=no
12778 wxUSE_SERIAL=no
10f2d63a
VZ
12779fi
12780
12781
12782if test "$wxUSE_UNICODE" = "yes" ; then
12783 cat >> confdefs.h <<\EOF
12784#define wxUSE_UNICODE 1
12785EOF
12786
12787fi
12788
12789if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12790 cat >> confdefs.h <<\EOF
12791#define wxUSE_WCSRTOMBS 1
12792EOF
12793
12794fi
12795
12796if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12797 cat >> confdefs.h <<\EOF
12798#define wxUSE_EXPERIMENTAL_PRINTF 1
12799EOF
12800
12801fi
12802
12803
b12915c1
VZ
12804if test "$wxUSE_SERIAL" = "yes" ; then
12805 cat >> confdefs.h <<\EOF
12806#define wxUSE_SERIAL 1
12807EOF
12808
12809fi
12810
12811
10f2d63a
VZ
12812IODBC_C_SRC=""
12813if test "$wxUSE_ODBC" = "yes" ; then
12814 cat >> confdefs.h <<\EOF
12815#define wxUSE_ODBC 1
12816EOF
12817
12818 WXODBCFLAG="-D_IODBC_"
12819 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12820 IODBCOBJS="\$(IODBC_OBJS)"
12821else
12822 IODBCOBJS=
12823fi
12824
12825
12826if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12827 cat >> confdefs.h <<\EOF
12828#define wxUSE_POSTSCRIPT 1
12829EOF
12830
12831fi
12832
12833cat >> confdefs.h <<\EOF
12834#define wxUSE_AFM_FOR_POSTSCRIPT 1
12835EOF
12836
12837
12838cat >> confdefs.h <<\EOF
12839#define wxUSE_NORMALIZED_PS_FONTS 1
12840EOF
12841
12842
12843
12844if test "$wxUSE_CONSTRAINTS" = "yes"; then
12845 cat >> confdefs.h <<\EOF
12846#define wxUSE_CONSTRAINTS 1
12847EOF
12848
12849 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12850fi
12851
12852if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12853 cat >> confdefs.h <<\EOF
12854#define wxUSE_MDI_ARCHITECTURE 1
12855EOF
12856
12857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12858fi
12859
12860if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12861 cat >> confdefs.h <<\EOF
12862#define wxUSE_DOC_VIEW_ARCHITECTURE 1
12863EOF
12864
12865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12866 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12867 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12868 fi
12869fi
12870
12871if test "$wxUSE_HELP" = "yes"; then
12872 cat >> confdefs.h <<\EOF
12873#define wxUSE_HELP 1
12874EOF
12875
12876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12877fi
12878
12879if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12880 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12881 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12882 else
12883 cat >> confdefs.h <<\EOF
12884#define wxUSE_PRINTING_ARCHITECTURE 1
12885EOF
12886
12887 fi
12888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12889fi
12890
12891if test "$wxUSE_PROLOGIO" = "yes" ; then
12892 cat >> confdefs.h <<\EOF
12893#define wxUSE_PROLOGIO 1
12894EOF
12895
12896fi
12897
12898if test "$wxUSE_RESOURCES" = "yes" ; then
12899 if test "$wxUSE_PROLOGIO" = "yes" ; then
12900 cat >> confdefs.h <<\EOF
12901#define wxUSE_RESOURCES 1
12902EOF
12903
12904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12905 else
12906 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12907 fi
12908fi
12909
12910if test "$wxUSE_X_RESOURCES" = "yes"; then
12911 cat >> confdefs.h <<\EOF
12912#define wxUSE_X_RESOURCES 1
12913EOF
12914
12915fi
12916
12917
12918if test "$wxUSE_IPC" = "yes"; then
12919 cat >> confdefs.h <<\EOF
12920#define wxUSE_IPC 1
12921EOF
12922
12923fi
12924
12925if test "$wxUSE_CLIPBOARD" = "yes"; then
12926 cat >> confdefs.h <<\EOF
12927#define wxUSE_CLIPBOARD 1
12928EOF
12929
12930fi
12931
12932if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12933 if test "$wxUSE_GTK" = 1; then
12934 if test "$WXGTK12" != 1; then
12935 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12936 wxUSE_DRAG_AND_DROP=no
12937 fi
12938 fi
12939
12940 if test "$wxUSE_MOTIF" = 1; then
12941 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12942 wxUSE_DRAG_AND_DROP=no
12943 fi
12944
12945 if test "$USE_WIN32" = 1; then
12946 for ac_hdr in ole2.h
12947do
12948ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12949echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c733b222 12950echo "configure:12951: checking for $ac_hdr" >&5
10f2d63a
VZ
12951if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12952 echo $ac_n "(cached) $ac_c" 1>&6
12953else
12954 cat > conftest.$ac_ext <<EOF
c733b222 12955#line 12956 "configure"
10f2d63a
VZ
12956#include "confdefs.h"
12957#include <$ac_hdr>
12958EOF
12959ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c733b222 12960{ (eval echo configure:12961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12961ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12962if test -z "$ac_err"; then
12963 rm -rf conftest*
12964 eval "ac_cv_header_$ac_safe=yes"
12965else
12966 echo "$ac_err" >&5
12967 echo "configure: failed program was:" >&5
12968 cat conftest.$ac_ext >&5
12969 rm -rf conftest*
12970 eval "ac_cv_header_$ac_safe=no"
12971fi
12972rm -f conftest*
12973fi
12974if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12975 echo "$ac_t""yes" 1>&6
12976 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12977 cat >> confdefs.h <<EOF
12978#define $ac_tr_hdr 1
12979EOF
12980
12981else
12982 echo "$ac_t""no" 1>&6
12983fi
12984done
12985
12986 if test "x$HAVE_OLE2_H" = x ; then
12987 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12988 wxUSE_DRAG_AND_DROP=no
12989 fi
12990 fi
12991
12992 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12993 cat >> confdefs.h <<\EOF
12994#define wxUSE_DRAG_AND_DROP 1
12995EOF
12996
12997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12998 fi
12999
13000fi
13001
13002if test "$wxUSE_SPLINES" = "yes" ; then
13003 cat >> confdefs.h <<\EOF
13004#define wxUSE_SPLINES 1
13005EOF
13006
13007fi
13008
13009
13010if test "$wxUSE_ACCEL" = "yes"; then
13011 cat >> confdefs.h <<\EOF
13012#define wxUSE_ACCEL 1
13013EOF
13014
13015fi
13016
13017if test "$wxUSE_CARET" = "yes"; then
13018 cat >> confdefs.h <<\EOF
13019#define wxUSE_CARET 1
13020EOF
13021
13022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
13023fi
13024
13025if test "$wxUSE_COMBOBOX" = "yes"; then
13026 cat >> confdefs.h <<\EOF
13027#define wxUSE_COMBOBOX 1
13028EOF
13029
13030fi
13031
13032if test "$wxUSE_CHOICE" = "yes"; then
13033 cat >> confdefs.h <<\EOF
13034#define wxUSE_CHOICE 1
13035EOF
13036
13037fi
13038
13039if test "$wxUSE_BMPBUTTON" = "yes"; then
13040 cat >> confdefs.h <<\EOF
13041#define wxUSE_BMPBUTTON 1
13042EOF
13043
13044fi
13045
13046if test "$wxUSE_CHECKBOX" = "yes"; then
13047 cat >> confdefs.h <<\EOF
13048#define wxUSE_CHECKBOX 1
13049EOF
13050
13051fi
13052
13053if test "$wxUSE_CHECKLST" = "yes"; then
13054 cat >> confdefs.h <<\EOF
13055#define wxUSE_CHECKLISTBOX 1
13056EOF
13057
13058 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
13059fi
13060
13061if test "$wxUSE_GAUGE" = "yes"; then
13062 cat >> confdefs.h <<\EOF
13063#define wxUSE_GAUGE 1
13064EOF
13065
13066fi
13067
d6a55c4b
VZ
13068if test "$wxUSE_NEW_GRID" = "yes"; then
13069 wxUSE_GRID="yes"
10f2d63a 13070 cat >> confdefs.h <<\EOF
d6a55c4b 13071#define wxUSE_NEW_GRID 1
10f2d63a
VZ
13072EOF
13073
d6a55c4b 13074 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
13075fi
13076
d6a55c4b 13077if test "$wxUSE_GRID" = "yes"; then
10f2d63a 13078 cat >> confdefs.h <<\EOF
d6a55c4b 13079#define wxUSE_GRID 1
10f2d63a
VZ
13080EOF
13081
d6a55c4b 13082 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
13083fi
13084
13085if test "$wxUSE_IMAGLIST" = "yes"; then
13086 cat >> confdefs.h <<\EOF
13087#define wxUSE_IMAGLIST 1
13088EOF
13089
13090fi
13091
13092if test "$wxUSE_LISTBOX" = "yes"; then
13093 cat >> confdefs.h <<\EOF
13094#define wxUSE_LISTBOX 1
13095EOF
13096
13097fi
13098
13099if test "$wxUSE_LISTCTRL" = "yes"; then
13100 if test "$wxUSE_IMAGLIST" = "yes"; then
13101 cat >> confdefs.h <<\EOF
13102#define wxUSE_LISTCTRL 1
13103EOF
13104
13105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
13106 else
13107 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
13108 fi
13109fi
13110
13111if test "$wxUSE_NOTEBOOK" = "yes"; then
13112 cat >> confdefs.h <<\EOF
13113#define wxUSE_NOTEBOOK 1
13114EOF
13115
13116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
13117fi
13118
13119if test "$wxUSE_RADIOBOX" = "yes"; then
13120 cat >> confdefs.h <<\EOF
13121#define wxUSE_RADIOBOX 1
13122EOF
13123
13124fi
13125
13126if test "$wxUSE_RADIOBTN" = "yes"; then
13127 cat >> confdefs.h <<\EOF
13128#define wxUSE_RADIOBTN 1
13129EOF
13130
13131fi
13132
13133if test "$wxUSE_SASH" = "yes"; then
13134 cat >> confdefs.h <<\EOF
13135#define wxUSE_SASH 1
13136EOF
13137
13138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
13139fi
13140
13141if test "$wxUSE_SCROLLBAR" = "yes"; then
13142 cat >> confdefs.h <<\EOF
13143#define wxUSE_SCROLLBAR 1
13144EOF
13145
741a9306 13146 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
13147fi
13148
13149if test "$wxUSE_SLIDER" = "yes"; then
13150 cat >> confdefs.h <<\EOF
13151#define wxUSE_SLIDER 1
13152EOF
13153
13154fi
13155
13156if test "$wxUSE_SPINBTN" = "yes"; then
13157 cat >> confdefs.h <<\EOF
13158#define wxUSE_SPINBTN 1
13159EOF
13160
13161fi
13162
56cfaa52
RR
13163if test "$wxUSE_SPINCTRL" = "yes"; then
13164 cat >> confdefs.h <<\EOF
13165#define wxUSE_SPINCTRL 1
13166EOF
13167
13168fi
13169
10f2d63a
VZ
13170if test "$wxUSE_SPLITTER" = "yes"; then
13171 cat >> confdefs.h <<\EOF
13172#define wxUSE_SPLITTER 1
13173EOF
13174
13175 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
13176fi
13177
13178if test "$wxUSE_STATBMP" = "yes"; then
13179 cat >> confdefs.h <<\EOF
13180#define wxUSE_STATBMP 1
13181EOF
13182
13183fi
13184
13185if test "$wxUSE_STATBOX" = "yes"; then
13186 cat >> confdefs.h <<\EOF
13187#define wxUSE_STATBOX 1
13188EOF
13189
13190fi
13191
13192if test "$wxUSE_STATLINE" = "yes"; then
13193 if test "$wxUSE_WINE" = 1 ; then
13194 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
13195 else
13196 cat >> confdefs.h <<\EOF
13197#define wxUSE_STATLINE 1
13198EOF
13199
13200 fi
13201fi
13202
13203if test "$wxUSE_STATUSBAR" = "yes"; then
13204 cat >> confdefs.h <<\EOF
13205#define wxUSE_STATUSBAR 1
13206EOF
13207
2286341c
VZ
13208
13209 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
13210fi
13211
13212if test "$wxUSE_TABDIALOG" = "yes"; then
13213 cat >> confdefs.h <<\EOF
13214#define wxUSE_TAB_DIALOG 1
13215EOF
13216
13217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
13218fi
13219
360d6699
VZ
13220if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
13221 cat >> confdefs.h <<\EOF
13222#define wxUSE_TOOLBAR_SIMPLE 1
13223EOF
13224
13225 wxUSE_TOOLBAR="yes"
13226fi
13227
10f2d63a
VZ
13228if test "$wxUSE_TOOLBAR" = "yes"; then
13229 cat >> confdefs.h <<\EOF
13230#define wxUSE_TOOLBAR 1
13231EOF
13232
360d6699
VZ
13233
13234 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
13235 wxUSE_TOOLBAR_NATIVE="yes"
13236 fi
13237
10f2d63a
VZ
13238 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
13239fi
13240
360d6699
VZ
13241if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
13242 cat >> confdefs.h <<\EOF
13243#define wxUSE_TOOLBAR_NATIVE 1
13244EOF
13245
13246fi
13247
10f2d63a
VZ
13248if test "$wxUSE_TOOLTIPS" = "yes"; then
13249 if test "$wxUSE_MOTIF" = 1; then
13250 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13251 else
13252 if test "$wxUSE_WINE" = 1; then
13253 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13254 else
13255 cat >> confdefs.h <<\EOF
13256#define wxUSE_TOOLTIPS 1
13257EOF
13258
13259 fi
13260 fi
13261fi
13262
13263if test "$wxUSE_TREECTRL" = "yes"; then
13264 if test "$wxUSE_IMAGLIST" = "yes"; then
13265 cat >> confdefs.h <<\EOF
13266#define wxUSE_TREECTRL 1
13267EOF
13268
13269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13270 else
13271 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13272 fi
13273fi
13274
13275
13276
13277if test "$wxUSE_METAFILE" = "yes"; then
13278 cat >> confdefs.h <<\EOF
13279#define wxUSE_METAFILE 1
13280EOF
13281
13282fi
13283
13284if test "$wxUSE_DIRDLG" = "yes"; then
13285 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13286 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13287 else
13288 if test "$wxUSE_TREECTRL" != "yes"; then
13289 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13290 else
13291 cat >> confdefs.h <<\EOF
13292#define wxUSE_DIRDLG 1
13293EOF
13294
13295 fi
13296 fi
13297fi
13298
13299if test "$wxUSE_TEXTDLG" = "yes"; then
13300 cat >> confdefs.h <<\EOF
13301#define wxUSE_TEXTDLG 1
13302EOF
13303
13304fi
13305
13306if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13307 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13308 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13309 else
13310 cat >> confdefs.h <<\EOF
13311#define wxUSE_STARTUP_TIPS 1
13312EOF
13313
13314 fi
13315fi
13316
13317if test "$wxUSE_PROGRESSDLG" = "yes"; then
13318 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13319 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13320 else
13321 cat >> confdefs.h <<\EOF
13322#define wxUSE_PROGRESSDLG 1
13323EOF
13324
13325 fi
13326fi
13327
13328if test "$wxUSE_MINIFRAME" = "yes"; then
13329 cat >> confdefs.h <<\EOF
13330#define wxUSE_MINIFRAME 1
13331EOF
13332
13333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13334fi
13335
13336if test "$wxUSE_HTML" = "yes"; then
13337 cat >> confdefs.h <<\EOF
13338#define wxUSE_HTML 1
13339EOF
13340
13341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13342 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13343fi
13344
13345if test "$wxUSE_VALIDATORS" = "yes"; then
13346 cat >> confdefs.h <<\EOF
13347#define wxUSE_VALIDATORS 1
13348EOF
13349
13350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13351fi
13352
13353if test "$wxUSE_GIF" = "yes" ; then
13354 cat >> confdefs.h <<\EOF
13355#define wxUSE_GIF 1
13356EOF
13357
13358fi
13359
13360if test "$wxUSE_PCX" = "yes" ; then
13361 cat >> confdefs.h <<\EOF
13362#define wxUSE_PCX 1
13363EOF
13364
13365fi
13366
13367if test "$wxUSE_PNM" = "yes" ; then
13368 cat >> confdefs.h <<\EOF
13369#define wxUSE_PNM 1
13370EOF
13371
13372fi
13373
13374
aaa37c0d
VZ
13375OSINFO=`uname -s -r -m`
13376OSINFO="\"$OSINFO\""
13377cat >> confdefs.h <<EOF
13378#define WXWIN_OS_DESCRIPTION $OSINFO
13379EOF
13380
13381
13382
10f2d63a
VZ
13383GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
13384
c63c7106 13385EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a
VZ
13386if test "$wxUSE_GUI" = "yes"; then
13387 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
13388fi
13389
13390LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13391
c7a2bf27 13392INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
13393
13394if test "$GXX" = yes ; then
13395 CXXWARNINGS="-Wall"
d6a55c4b 13396 fi
10f2d63a
VZ
13397EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13398
13399CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13400CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13401
e694c22c
VZ
13402LDFLAGS="$LDFLAGS $PROFILE"
13403
10f2d63a
VZ
13404if test "$wxUSE_GUI" = "yes"; then
13405
70f7a477
VZ
13406 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs drawing dynamic \
13407 font fractal image minimal richedit"
b12915c1 13408
88d3a15c 13409 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
13410else
13411 SAMPLES_SUBDIRS=""
13412fi
13413
ec14dd32
VZ
13414SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13415
13416
13417
10f2d63a
VZ
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
1d62a8b4 13470
e694c22c 13471
b12915c1 13472
2224580a
VZ
13473
13474
13475
13476
dad6c0ea
VZ
13477
13478
caa2c79b 13479
10f2d63a
VZ
13480
13481
13482echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
c733b222 13483echo "configure:13484: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
13484set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13485if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13486 echo $ac_n "(cached) $ac_c" 1>&6
13487else
13488 cat > conftestmake <<\EOF
13489all:
13490 @echo 'ac_maketemp="${MAKE}"'
13491EOF
13492# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13493eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13494if test -n "$ac_maketemp"; then
13495 eval ac_cv_prog_make_${ac_make}_set=yes
13496else
13497 eval ac_cv_prog_make_${ac_make}_set=no
13498fi
13499rm -f conftestmake
13500fi
13501if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13502 echo "$ac_t""yes" 1>&6
13503 SET_MAKE=
13504else
13505 echo "$ac_t""no" 1>&6
13506 SET_MAKE="MAKE=${MAKE-make}"
13507fi
13508
13509
00cf1208
RR
13510if test -d include; then
13511 if test -d include/wx; then
13512 if test -d include/wx/${TOOLKIT_DIR}; then
13513 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
13514 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
13515 fi
13516 fi
13517 fi
13518fi
13519
10f2d63a
VZ
13520
13521
2224580a
VZ
13522if test "$wxUSE_GUI" = "yes"; then
13523 echo $ac_n "checking glcanvas subdirectory to use""... $ac_c" 1>&6
c733b222 13524echo "configure:13525: checking glcanvas subdirectory to use" >&5
2224580a
VZ
13525if eval "test \"`echo '$''{'wx_cv_path_glcanvas'+set}'`\" = set"; then
13526 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13527else
2224580a
VZ
13528
13529 if test "${TOOLKIT_DIR}" = "msw" ; then
13530 wx_cv_path_glcanvas="win"
13531 else
13532 wx_cv_path_glcanvas="${TOOLKIT_DIR}"
13533 fi
13534
10f2d63a
VZ
13535fi
13536
2224580a
VZ
13537echo "$ac_t""$wx_cv_path_glcanvas" 1>&6
13538
ec90f5e5 13539 GL_TOOLKIT_DIR=$wx_cv_path_glcanvas
2224580a
VZ
13540
13541
ec90f5e5 13542 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
2224580a
VZ
13543 subdirs="demos samples utils"
13544
13545fi
10f2d63a
VZ
13546
13547trap '' 1 2 15
13548cat > confcache <<\EOF
13549# This file is a shell script that caches the results of configure
13550# tests run on this system so they can be shared between configure
13551# scripts and configure runs. It is not useful on other systems.
13552# If it contains results you don't want to keep, you may remove or edit it.
13553#
13554# By default, configure uses ./config.cache as the cache file,
13555# creating it if it does not exist already. You can give configure
13556# the --cache-file=FILE option to use a different cache file; that is
13557# what configure does when it calls configure scripts in
13558# subdirectories, so they share the cache.
13559# Giving --cache-file=/dev/null disables caching, for debugging configure.
13560# config.status only pays attention to the cache file if you give it the
13561# --recheck option to rerun configure.
13562#
13563EOF
13564# The following way of writing the cache mishandles newlines in values,
13565# but we know of no workaround that is simple, portable, and efficient.
13566# So, don't put newlines in cache variables' values.
13567# Ultrix sh set writes to stderr and can't be redirected directly,
13568# and sets the high bit in the cache file unless we assign to the vars.
13569(set) 2>&1 |
13570 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13571 *ac_space=\ *)
13572 # `set' does not quote correctly, so add quotes (double-quote substitution
13573 # turns \\\\ into \\, and sed turns \\ into \).
13574 sed -n \
13575 -e "s/'/'\\\\''/g" \
13576 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13577 ;;
13578 *)
13579 # `set' quotes correctly as required by POSIX, so do not add quotes.
13580 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13581 ;;
13582 esac >> confcache
13583if cmp -s $cache_file confcache; then
13584 :
13585else
13586 if test -w $cache_file; then
13587 echo "updating cache $cache_file"
13588 cat confcache > $cache_file
13589 else
13590 echo "not updating unwritable cache $cache_file"
13591 fi
13592fi
13593rm -f confcache
13594
13595trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13596
13597test "x$prefix" = xNONE && prefix=$ac_default_prefix
13598# Let make expand exec_prefix.
13599test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13600
13601# Any assignment to VPATH causes Sun make to only execute
13602# the first set of double-colon rules, so remove it if not needed.
13603# If there is a colon in the path, we need to keep it.
13604if test "x$srcdir" = x.; then
13605 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13606fi
13607
13608trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13609
13610DEFS=-DHAVE_CONFIG_H
13611
13612# Without the "./", some shells look in PATH for config.status.
13613: ${CONFIG_STATUS=./config.status}
13614
13615echo creating $CONFIG_STATUS
13616rm -f $CONFIG_STATUS
13617cat > $CONFIG_STATUS <<EOF
13618#! /bin/sh
13619# Generated automatically by configure.
13620# Run this file to recreate the current configuration.
13621# This directory was configured as follows,
13622# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13623#
13624# $0 $ac_configure_args
13625#
13626# Compiler output produced by configure, useful for debugging
13627# configure, is in ./config.log if it exists.
13628
13629ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13630for ac_option
13631do
13632 case "\$ac_option" in
13633 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13634 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13635 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13636 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
d6a55c4b 13637 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
13638 exit 0 ;;
13639 -help | --help | --hel | --he | --h)
13640 echo "\$ac_cs_usage"; exit 0 ;;
13641 *) echo "\$ac_cs_usage"; exit 1 ;;
13642 esac
13643done
13644
13645ac_given_srcdir=$srcdir
13646ac_given_INSTALL="$INSTALL"
13647
13648trap 'rm -fr `echo "
13649 wx-config
13650 src/make.env
13651 src/makeprog.env
13652 src/makelib.env
13653 Makefile
10f2d63a
VZ
13654 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13655EOF
13656cat >> $CONFIG_STATUS <<EOF
13657
13658# Protect against being on the right side of a sed subst in config.status.
13659sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13660 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13661$ac_vpsub
13662$extrasub
13663s%@SHELL@%$SHELL%g
13664s%@CFLAGS@%$CFLAGS%g
13665s%@CPPFLAGS@%$CPPFLAGS%g
13666s%@CXXFLAGS@%$CXXFLAGS%g
13667s%@FFLAGS@%$FFLAGS%g
13668s%@DEFS@%$DEFS%g
13669s%@LDFLAGS@%$LDFLAGS%g
13670s%@LIBS@%$LIBS%g
13671s%@exec_prefix@%$exec_prefix%g
13672s%@prefix@%$prefix%g
13673s%@program_transform_name@%$program_transform_name%g
13674s%@bindir@%$bindir%g
13675s%@sbindir@%$sbindir%g
13676s%@libexecdir@%$libexecdir%g
13677s%@datadir@%$datadir%g
13678s%@sysconfdir@%$sysconfdir%g
13679s%@sharedstatedir@%$sharedstatedir%g
13680s%@localstatedir@%$localstatedir%g
13681s%@libdir@%$libdir%g
13682s%@includedir@%$includedir%g
13683s%@oldincludedir@%$oldincludedir%g
13684s%@infodir@%$infodir%g
13685s%@mandir@%$mandir%g
7c66a493
VZ
13686s%@host@%$host%g
13687s%@host_alias@%$host_alias%g
13688s%@host_cpu@%$host_cpu%g
13689s%@host_vendor@%$host_vendor%g
13690s%@host_os@%$host_os%g
13691s%@target@%$target%g
13692s%@target_alias@%$target_alias%g
13693s%@target_cpu@%$target_cpu%g
13694s%@target_vendor@%$target_vendor%g
13695s%@target_os@%$target_os%g
13696s%@build@%$build%g
13697s%@build_alias@%$build_alias%g
13698s%@build_cpu@%$build_cpu%g
13699s%@build_vendor@%$build_vendor%g
13700s%@build_os@%$build_os%g
10f2d63a
VZ
13701s%@CC@%$CC%g
13702s%@CPP@%$CPP%g
13703s%@CXX@%$CXX%g
13704s%@CXXCPP@%$CXXCPP%g
13705s%@RANLIB@%$RANLIB%g
13706s%@AR@%$AR%g
13707s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13708s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13709s%@INSTALL_DATA@%$INSTALL_DATA%g
13710s%@STRIP@%$STRIP%g
13711s%@YACC@%$YACC%g
13712s%@LEX@%$LEX%g
13713s%@LEXLIB@%$LEXLIB%g
13714s%@LN_S@%$LN_S%g
13715s%@GTK_CONFIG@%$GTK_CONFIG%g
13716s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13717s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
13718s%@X_CFLAGS@%$X_CFLAGS%g
13719s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13720s%@X_LIBS@%$X_LIBS%g
13721s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
13722s%@LEX_STEM@%$LEX_STEM%g
13723s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
13724s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13725s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13726s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13727s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13728s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13729s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13730s%@WX_LIBRARY@%$WX_LIBRARY%g
13731s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13732s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13733s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13734s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13735s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13736s%@WX_ALL@%$WX_ALL%g
13737s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13738s%@SHARED_LD@%$SHARED_LD%g
13739s%@PIC_FLAG@%$PIC_FLAG%g
13740s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 13741s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 13742s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
10f2d63a 13743s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
13744s%@USE_GUI@%$USE_GUI%g
13745s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
13746s%@TOOLKIT@%$TOOLKIT%g
13747s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13748s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13749s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13750s%@GUIHEADERS@%$GUIHEADERS%g
13751s%@GUIOBJS@%$GUIOBJS%g
13752s%@COMMONOBJS@%$COMMONOBJS%g
13753s%@GENERICOBJS@%$GENERICOBJS%g
13754s%@GUIDEPS@%$GUIDEPS%g
13755s%@COMMONDEPS@%$COMMONDEPS%g
13756s%@GENERICDEPS@%$GENERICDEPS%g
13757s%@IODBCOBJS@%$IODBCOBJS%g
13758s%@UNIXOBJS@%$UNIXOBJS%g
13759s%@UNIXDEPS@%$UNIXDEPS%g
13760s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13761s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 13762s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
13763s%@PORT_FILES@%$PORT_FILES%g
13764s%@DISTDIR@%$DISTDIR%g
13765s%@RPM_SPEC@%$RPM_SPEC%g
13766s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
13767s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13768s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13769s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13770s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13771s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13772s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13773s%@EXTRA_LIBS@%$EXTRA_LIBS%g
b12915c1 13774s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a
VZ
13775s%@LD_LIBS@%$LD_LIBS%g
13776s%@SET_MAKE@%$SET_MAKE%g
13777s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
2224580a 13778s%@subdirs@%$subdirs%g
10f2d63a
VZ
13779
13780CEOF
13781EOF
13782
13783cat >> $CONFIG_STATUS <<\EOF
13784
13785# Split the substitutions into bite-sized pieces for seds with
13786# small command number limits, like on Digital OSF/1 and HP-UX.
13787ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13788ac_file=1 # Number of current file.
13789ac_beg=1 # First line for current file.
13790ac_end=$ac_max_sed_cmds # Line after last line for current file.
13791ac_more_lines=:
13792ac_sed_cmds=""
13793while $ac_more_lines; do
13794 if test $ac_beg -gt 1; then
13795 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13796 else
13797 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13798 fi
13799 if test ! -s conftest.s$ac_file; then
13800 ac_more_lines=false
13801 rm -f conftest.s$ac_file
13802 else
13803 if test -z "$ac_sed_cmds"; then
13804 ac_sed_cmds="sed -f conftest.s$ac_file"
13805 else
13806 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13807 fi
13808 ac_file=`expr $ac_file + 1`
13809 ac_beg=$ac_end
13810 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13811 fi
13812done
13813if test -z "$ac_sed_cmds"; then
13814 ac_sed_cmds=cat
13815fi
13816EOF
13817
13818cat >> $CONFIG_STATUS <<EOF
13819
13820CONFIG_FILES=\${CONFIG_FILES-"wx-config
13821 src/make.env
13822 src/makeprog.env
13823 src/makelib.env
13824 Makefile
10f2d63a
VZ
13825 "}
13826EOF
13827cat >> $CONFIG_STATUS <<\EOF
13828for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13829 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13830 case "$ac_file" in
13831 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13832 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13833 *) ac_file_in="${ac_file}.in" ;;
13834 esac
13835
13836 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13837
13838 # Remove last slash and all that follows it. Not all systems have dirname.
13839 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13840 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13841 # The file is in a subdirectory.
13842 test ! -d "$ac_dir" && mkdir "$ac_dir"
13843 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13844 # A "../" for each directory in $ac_dir_suffix.
13845 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13846 else
13847 ac_dir_suffix= ac_dots=
13848 fi
13849
13850 case "$ac_given_srcdir" in
13851 .) srcdir=.
13852 if test -z "$ac_dots"; then top_srcdir=.
13853 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13854 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13855 *) # Relative path.
13856 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13857 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13858 esac
13859
13860 case "$ac_given_INSTALL" in
13861 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13862 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13863 esac
13864
13865 echo creating "$ac_file"
13866 rm -f "$ac_file"
13867 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13868 case "$ac_file" in
13869 *Makefile*) ac_comsub="1i\\
13870# $configure_input" ;;
13871 *) ac_comsub= ;;
13872 esac
13873
13874 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13875 sed -e "$ac_comsub
13876s%@configure_input@%$configure_input%g
13877s%@srcdir@%$srcdir%g
13878s%@top_srcdir@%$top_srcdir%g
13879s%@INSTALL@%$INSTALL%g
13880" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13881fi; done
13882rm -f conftest.s*
13883
13884# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13885# NAME is the cpp macro being defined and VALUE is the value it is being given.
13886#
13887# ac_d sets the value in "#define NAME VALUE" lines.
13888ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13889ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13890ac_dC='\3'
13891ac_dD='%g'
13892# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13893ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13894ac_uB='\([ ]\)%\1#\2define\3'
13895ac_uC=' '
13896ac_uD='\4%g'
13897# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13898ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13899ac_eB='$%\1#\2define\3'
13900ac_eC=' '
13901ac_eD='%g'
13902
13903if test "${CONFIG_HEADERS+set}" != set; then
13904EOF
13905cat >> $CONFIG_STATUS <<EOF
13906 CONFIG_HEADERS="setup.h:setup.h.in"
13907EOF
13908cat >> $CONFIG_STATUS <<\EOF
13909fi
13910for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13911 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13912 case "$ac_file" in
13913 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13914 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13915 *) ac_file_in="${ac_file}.in" ;;
13916 esac
13917
13918 echo creating $ac_file
13919
13920 rm -f conftest.frag conftest.in conftest.out
13921 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13922 cat $ac_file_inputs > conftest.in
13923
13924EOF
13925
13926# Transform confdefs.h into a sed script conftest.vals that substitutes
13927# the proper values into config.h.in to produce config.h. And first:
13928# Protect against being on the right side of a sed subst in config.status.
13929# Protect against being in an unquoted here document in config.status.
13930rm -f conftest.vals
13931cat > conftest.hdr <<\EOF
13932s/[\\&%]/\\&/g
13933s%[\\$`]%\\&%g
13934s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13935s%ac_d%ac_u%gp
13936s%ac_u%ac_e%gp
13937EOF
13938sed -n -f conftest.hdr confdefs.h > conftest.vals
13939rm -f conftest.hdr
13940
13941# This sed command replaces #undef with comments. This is necessary, for
13942# example, in the case of _POSIX_SOURCE, which is predefined and required
13943# on some systems where configure will not decide to define it.
13944cat >> conftest.vals <<\EOF
13945s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13946EOF
13947
13948# Break up conftest.vals because some shells have a limit on
13949# the size of here documents, and old seds have small limits too.
13950
13951rm -f conftest.tail
13952while :
13953do
13954 ac_lines=`grep -c . conftest.vals`
13955 # grep -c gives empty output for an empty file on some AIX systems.
13956 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13957 # Write a limited-size here document to conftest.frag.
13958 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13959 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13960 echo 'CEOF
13961 sed -f conftest.frag conftest.in > conftest.out
13962 rm -f conftest.in
13963 mv conftest.out conftest.in
13964' >> $CONFIG_STATUS
13965 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13966 rm -f conftest.vals
13967 mv conftest.tail conftest.vals
13968done
13969rm -f conftest.vals
13970
13971cat >> $CONFIG_STATUS <<\EOF
13972 rm -f conftest.frag conftest.h
13973 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13974 cat conftest.in >> conftest.h
13975 rm -f conftest.in
13976 if cmp -s $ac_file conftest.h 2>/dev/null; then
13977 echo "$ac_file is unchanged"
13978 rm -f conftest.h
13979 else
13980 # Remove last slash and all that follows it. Not all systems have dirname.
13981 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13982 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13983 # The file is in a subdirectory.
13984 test ! -d "$ac_dir" && mkdir "$ac_dir"
13985 fi
13986 rm -f $ac_file
13987 mv conftest.h $ac_file
13988 fi
13989fi; done
13990
13991EOF
13992cat >> $CONFIG_STATUS <<EOF
13993
13994 TOOLKIT_DIR="${TOOLKIT_DIR}"
07eb77a6 13995 LN_S="${LN_S}"
10f2d63a
VZ
13996
13997
13998EOF
13999cat >> $CONFIG_STATUS <<\EOF
14000
14001 chmod +x wx-config
07eb77a6
RL
14002 mv wx-config wx${TOOLKIT_DIR}-config
14003 ${LN_S} wx${TOOLKIT_DIR}-config wx-config
00cf1208
RR
14004
14005
14006 if test ! -d lib; then
14007 mkdir lib
14008 fi
14009 if test ! -d lib/wx; then
14010 mkdir lib/wx
14011 fi
14012 if test ! -d lib/wx/include; then
14013 mkdir lib/wx/include
14014 fi
14015 if test ! -d lib/wx/include/wx; then
14016 mkdir lib/wx/include/wx
14017 fi
14018 if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then
14019 mkdir lib/wx/include/wx/${TOOLKIT_DIR}
14020 fi
14021 if test -f setup.h; then
14022 cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h
14023 fi
07eb77a6 14024
00cf1208 14025
10f2d63a
VZ
14026 if test ! -d include; then
14027 mkdir include
14028 fi
14029 if test ! -d include/wx; then
14030 mkdir include/wx
14031 fi
14032 if test ! -d include/wx/${TOOLKIT_DIR}; then
14033 mkdir include/wx/${TOOLKIT_DIR}
14034 fi
afc31813
VZ
14035 if test -f setup.h; then
14036 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
14037 fi
00cf1208 14038
10f2d63a
VZ
14039
14040exit 0
14041EOF
14042chmod +x $CONFIG_STATUS
14043rm -fr confdefs* $ac_clean_files
14044test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14045
2224580a
VZ
14046if test "$no_recursion" != yes; then
14047
14048 # Remove --cache-file and --srcdir arguments so they do not pile up.
14049 ac_sub_configure_args=
14050 ac_prev=
14051 for ac_arg in $ac_configure_args; do
14052 if test -n "$ac_prev"; then
14053 ac_prev=
14054 continue
14055 fi
14056 case "$ac_arg" in
14057 -cache-file | --cache-file | --cache-fil | --cache-fi \
14058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14059 ac_prev=cache_file ;;
14060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
14062 ;;
14063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14064 ac_prev=srcdir ;;
14065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14066 ;;
14067 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
14068 esac
14069 done
14070
14071 for ac_config_dir in demos samples utils; do
14072
14073 # Do not complain, so a configure script can configure whichever
14074 # parts of a large source tree are present.
14075 if test ! -d $srcdir/$ac_config_dir; then
14076 continue
14077 fi
14078
14079 echo configuring in $ac_config_dir
14080
14081 case "$srcdir" in
14082 .) ;;
14083 *)
14084 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
14085 else
14086 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
14087 fi
14088 ;;
14089 esac
14090
14091 ac_popdir=`pwd`
14092 cd $ac_config_dir
14093
14094 # A "../" for each directory in /$ac_config_dir.
14095 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
14096
14097 case "$srcdir" in
14098 .) # No --srcdir option. We are building in place.
14099 ac_sub_srcdir=$srcdir ;;
14100 /*) # Absolute path.
14101 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
14102 *) # Relative path.
14103 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
14104 esac
14105
14106 # Check for guested configure; otherwise get Cygnus style configure.
14107 if test -f $ac_sub_srcdir/configure; then
14108 ac_sub_configure=$ac_sub_srcdir/configure
14109 elif test -f $ac_sub_srcdir/configure.in; then
14110 ac_sub_configure=$ac_configure
14111 else
14112 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
14113 ac_sub_configure=
14114 fi
14115
14116 # The recursion is here.
14117 if test -n "$ac_sub_configure"; then
14118
14119 # Make the cache file name correct relative to the subdirectory.
14120 case "$cache_file" in
14121 /*) ac_sub_cache_file=$cache_file ;;
14122 *) # Relative path.
14123 ac_sub_cache_file="$ac_dots$cache_file" ;;
14124 esac
14125 case "$ac_given_INSTALL" in
14126 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14127 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14128 esac
14129
14130 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
14131 # The eval makes quoting arguments work.
14132 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
14133 then :
14134 else
14135 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
14136 fi
14137 fi
14138
14139 cd $ac_popdir
14140 done
14141fi
14142
10f2d63a 14143