]> git.saurik.com Git - wxWidgets.git/blame - configure
merged 2.2 branch
[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
422107f9
VZ
37
38
10f2d63a
VZ
39
40
41
42# Guess values for system-dependent variables and create Makefiles.
e8482f24 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
10f2d63a
VZ
120--enable-ipc use interprocess communication (wxSocket etc.)"
121ac_help="$ac_help
eb4efbdc
VZ
122--enable-dialupman use dialup network classes"
123ac_help="$ac_help
10f2d63a
VZ
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
10f2d63a
VZ
150--enable-std_iostreams use standard C++ stream classes"
151ac_help="$ac_help
24528b0c
VS
152--enable-filesystem use virtual file systems classes"
153ac_help="$ac_help
10f2d63a
VZ
154--enable-fs_inet use virtual HTTP/FTP filesystems"
155ac_help="$ac_help
156--enable-fs_zip use virtual ZIP filesystems"
157ac_help="$ac_help
158--enable-zipstream use wxZipInputStream"
159ac_help="$ac_help
eb4efbdc
VZ
160--enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
161ac_help="$ac_help
10f2d63a
VZ
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
f6bcfd97
BP
278--enable-joystick compile in joystick support (Linux only)"
279ac_help="$ac_help
10f2d63a
VZ
280--enable-gif use gif images (GIF file format)"
281ac_help="$ac_help
282--enable-pcx use pcx images (PCX file format)"
283ac_help="$ac_help
284--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
285ac_help="$ac_help
286 --with-x use the X Window System"
10f2d63a
VZ
287
288# Initialize some variables set by options.
289# The variables have the same names as the options, with
290# dashes changed to underlines.
291build=NONE
292cache_file=./config.cache
293exec_prefix=NONE
294host=NONE
295no_create=
296nonopt=NONE
297no_recursion=
298prefix=NONE
299program_prefix=NONE
300program_suffix=NONE
301program_transform_name=s,x,x,
302silent=
303site=
304srcdir=
305target=NONE
306verbose=
307x_includes=NONE
308x_libraries=NONE
309bindir='${exec_prefix}/bin'
310sbindir='${exec_prefix}/sbin'
311libexecdir='${exec_prefix}/libexec'
312datadir='${prefix}/share'
313sysconfdir='${prefix}/etc'
314sharedstatedir='${prefix}/com'
315localstatedir='${prefix}/var'
316libdir='${exec_prefix}/lib'
317includedir='${prefix}/include'
318oldincludedir='/usr/include'
319infodir='${prefix}/info'
320mandir='${prefix}/man'
321
322# Initialize some other variables.
323subdirs=
324MFLAGS= MAKEFLAGS=
325SHELL=${CONFIG_SHELL-/bin/sh}
326# Maximum number of lines to put in a shell here document.
327ac_max_here_lines=12
328
329ac_prev=
330for ac_option
331do
332
333 # If the previous option needs an argument, assign it.
334 if test -n "$ac_prev"; then
335 eval "$ac_prev=\$ac_option"
336 ac_prev=
337 continue
338 fi
339
340 case "$ac_option" in
341 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
342 *) ac_optarg= ;;
343 esac
344
345 # Accept the important Cygnus configure options, so we can diagnose typos.
346
347 case "$ac_option" in
348
349 -bindir | --bindir | --bindi | --bind | --bin | --bi)
350 ac_prev=bindir ;;
351 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
352 bindir="$ac_optarg" ;;
353
354 -build | --build | --buil | --bui | --bu)
355 ac_prev=build ;;
356 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
357 build="$ac_optarg" ;;
358
359 -cache-file | --cache-file | --cache-fil | --cache-fi \
360 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
361 ac_prev=cache_file ;;
362 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
363 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
364 cache_file="$ac_optarg" ;;
365
366 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
367 ac_prev=datadir ;;
368 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
369 | --da=*)
370 datadir="$ac_optarg" ;;
371
372 -disable-* | --disable-*)
373 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
377 fi
378 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
379 eval "enable_${ac_feature}=no" ;;
380
381 -enable-* | --enable-*)
382 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
385 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
386 fi
387 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
388 case "$ac_option" in
389 *=*) ;;
390 *) ac_optarg=yes ;;
391 esac
392 eval "enable_${ac_feature}='$ac_optarg'" ;;
393
394 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
395 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
396 | --exec | --exe | --ex)
397 ac_prev=exec_prefix ;;
398 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
399 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
400 | --exec=* | --exe=* | --ex=*)
401 exec_prefix="$ac_optarg" ;;
402
403 -gas | --gas | --ga | --g)
404 # Obsolete; use --with-gas.
405 with_gas=yes ;;
406
407 -help | --help | --hel | --he)
408 # Omit some internal or obsolete options to make the list less imposing.
409 # This message is too long to be a string in the A/UX 3.1 sh.
410 cat << EOF
411Usage: configure [options] [host]
412Options: [defaults in brackets after descriptions]
413Configuration:
414 --cache-file=FILE cache test results in FILE
415 --help print this message
416 --no-create do not create output files
417 --quiet, --silent do not print \`checking...' messages
418 --version print the version of autoconf that created configure
419Directory and file names:
420 --prefix=PREFIX install architecture-independent files in PREFIX
421 [$ac_default_prefix]
422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
423 [same as prefix]
424 --bindir=DIR user executables in DIR [EPREFIX/bin]
425 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
426 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
427 --datadir=DIR read-only architecture-independent data in DIR
428 [PREFIX/share]
429 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
430 --sharedstatedir=DIR modifiable architecture-independent data in DIR
431 [PREFIX/com]
432 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
433 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
434 --includedir=DIR C header files in DIR [PREFIX/include]
435 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
436 --infodir=DIR info documentation in DIR [PREFIX/info]
437 --mandir=DIR man documentation in DIR [PREFIX/man]
438 --srcdir=DIR find the sources in DIR [configure dir or ..]
439 --program-prefix=PREFIX prepend PREFIX to installed program names
440 --program-suffix=SUFFIX append SUFFIX to installed program names
441 --program-transform-name=PROGRAM
442 run sed PROGRAM on installed program names
443EOF
444 cat << EOF
445Host type:
446 --build=BUILD configure for building on BUILD [BUILD=HOST]
447 --host=HOST configure for HOST [guessed]
448 --target=TARGET configure for TARGET [TARGET=HOST]
449Features and packages:
450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
454 --x-includes=DIR X include files are in DIR
455 --x-libraries=DIR X library files are in DIR
456EOF
457 if test -n "$ac_help"; then
458 echo "--enable and --with options recognized:$ac_help"
459 fi
460 exit 0 ;;
461
462 -host | --host | --hos | --ho)
463 ac_prev=host ;;
464 -host=* | --host=* | --hos=* | --ho=*)
465 host="$ac_optarg" ;;
466
467 -includedir | --includedir | --includedi | --included | --include \
468 | --includ | --inclu | --incl | --inc)
469 ac_prev=includedir ;;
470 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
471 | --includ=* | --inclu=* | --incl=* | --inc=*)
472 includedir="$ac_optarg" ;;
473
474 -infodir | --infodir | --infodi | --infod | --info | --inf)
475 ac_prev=infodir ;;
476 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
477 infodir="$ac_optarg" ;;
478
479 -libdir | --libdir | --libdi | --libd)
480 ac_prev=libdir ;;
481 -libdir=* | --libdir=* | --libdi=* | --libd=*)
482 libdir="$ac_optarg" ;;
483
484 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
485 | --libexe | --libex | --libe)
486 ac_prev=libexecdir ;;
487 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
488 | --libexe=* | --libex=* | --libe=*)
489 libexecdir="$ac_optarg" ;;
490
491 -localstatedir | --localstatedir | --localstatedi | --localstated \
492 | --localstate | --localstat | --localsta | --localst \
493 | --locals | --local | --loca | --loc | --lo)
494 ac_prev=localstatedir ;;
495 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
496 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
497 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
498 localstatedir="$ac_optarg" ;;
499
500 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
501 ac_prev=mandir ;;
502 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
503 mandir="$ac_optarg" ;;
504
505 -nfp | --nfp | --nf)
506 # Obsolete; use --without-fp.
507 with_fp=no ;;
508
509 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
510 | --no-cr | --no-c)
511 no_create=yes ;;
512
513 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
514 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
515 no_recursion=yes ;;
516
517 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
518 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
519 | --oldin | --oldi | --old | --ol | --o)
520 ac_prev=oldincludedir ;;
521 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
522 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
523 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
524 oldincludedir="$ac_optarg" ;;
525
526 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
527 ac_prev=prefix ;;
528 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
529 prefix="$ac_optarg" ;;
530
531 -program-prefix | --program-prefix | --program-prefi | --program-pref \
532 | --program-pre | --program-pr | --program-p)
533 ac_prev=program_prefix ;;
534 -program-prefix=* | --program-prefix=* | --program-prefi=* \
535 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
536 program_prefix="$ac_optarg" ;;
537
538 -program-suffix | --program-suffix | --program-suffi | --program-suff \
539 | --program-suf | --program-su | --program-s)
540 ac_prev=program_suffix ;;
541 -program-suffix=* | --program-suffix=* | --program-suffi=* \
542 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
543 program_suffix="$ac_optarg" ;;
544
545 -program-transform-name | --program-transform-name \
546 | --program-transform-nam | --program-transform-na \
547 | --program-transform-n | --program-transform- \
548 | --program-transform | --program-transfor \
549 | --program-transfo | --program-transf \
550 | --program-trans | --program-tran \
551 | --progr-tra | --program-tr | --program-t)
552 ac_prev=program_transform_name ;;
553 -program-transform-name=* | --program-transform-name=* \
554 | --program-transform-nam=* | --program-transform-na=* \
555 | --program-transform-n=* | --program-transform-=* \
556 | --program-transform=* | --program-transfor=* \
557 | --program-transfo=* | --program-transf=* \
558 | --program-trans=* | --program-tran=* \
559 | --progr-tra=* | --program-tr=* | --program-t=*)
560 program_transform_name="$ac_optarg" ;;
561
562 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
563 | -silent | --silent | --silen | --sile | --sil)
564 silent=yes ;;
565
566 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
567 ac_prev=sbindir ;;
568 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
569 | --sbi=* | --sb=*)
570 sbindir="$ac_optarg" ;;
571
572 -sharedstatedir | --sharedstatedir | --sharedstatedi \
573 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
574 | --sharedst | --shareds | --shared | --share | --shar \
575 | --sha | --sh)
576 ac_prev=sharedstatedir ;;
577 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
578 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
579 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
580 | --sha=* | --sh=*)
581 sharedstatedir="$ac_optarg" ;;
582
583 -site | --site | --sit)
584 ac_prev=site ;;
585 -site=* | --site=* | --sit=*)
586 site="$ac_optarg" ;;
587
588 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
589 ac_prev=srcdir ;;
590 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
591 srcdir="$ac_optarg" ;;
592
593 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
594 | --syscon | --sysco | --sysc | --sys | --sy)
595 ac_prev=sysconfdir ;;
596 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
597 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
598 sysconfdir="$ac_optarg" ;;
599
600 -target | --target | --targe | --targ | --tar | --ta | --t)
601 ac_prev=target ;;
602 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
603 target="$ac_optarg" ;;
604
605 -v | -verbose | --verbose | --verbos | --verbo | --verb)
606 verbose=yes ;;
607
608 -version | --version | --versio | --versi | --vers)
e8482f24 609 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
610 exit 0 ;;
611
612 -with-* | --with-*)
613 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
614 # Reject names that are not valid shell variable names.
615 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
616 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
617 fi
618 ac_package=`echo $ac_package| sed 's/-/_/g'`
619 case "$ac_option" in
620 *=*) ;;
621 *) ac_optarg=yes ;;
622 esac
623 eval "with_${ac_package}='$ac_optarg'" ;;
624
625 -without-* | --without-*)
626 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
627 # Reject names that are not valid shell variable names.
628 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
629 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
630 fi
631 ac_package=`echo $ac_package| sed 's/-/_/g'`
632 eval "with_${ac_package}=no" ;;
633
634 --x)
635 # Obsolete; use --with-x.
636 with_x=yes ;;
637
638 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
639 | --x-incl | --x-inc | --x-in | --x-i)
640 ac_prev=x_includes ;;
641 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
642 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
643 x_includes="$ac_optarg" ;;
644
645 -x-libraries | --x-libraries | --x-librarie | --x-librari \
646 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
647 ac_prev=x_libraries ;;
648 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
649 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
650 x_libraries="$ac_optarg" ;;
651
652 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
653 ;;
654
655 *)
656 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
657 echo "configure: warning: $ac_option: invalid host type" 1>&2
658 fi
659 if test "x$nonopt" != xNONE; then
660 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
661 fi
662 nonopt="$ac_option"
663 ;;
664
665 esac
666done
667
668if test -n "$ac_prev"; then
669 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
670fi
671
672trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
673
674# File descriptor usage:
675# 0 standard input
676# 1 file creation
677# 2 errors and warnings
678# 3 some systems may open it to /dev/tty
679# 4 used on the Kubota Titan
680# 6 checking for... messages and results
681# 5 compiler messages saved in config.log
682if test "$silent" = yes; then
683 exec 6>/dev/null
684else
685 exec 6>&1
686fi
687exec 5>./config.log
688
689echo "\
690This file contains any messages produced by compilers while
691running configure, to aid debugging if configure makes a mistake.
692" 1>&5
693
694# Strip out --no-create and --no-recursion so they do not pile up.
695# Also quote any args containing shell metacharacters.
696ac_configure_args=
697for ac_arg
698do
699 case "$ac_arg" in
700 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
701 | --no-cr | --no-c) ;;
702 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
703 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
704 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
705 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
706 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
707 esac
708done
709
710# NLS nuisances.
711# Only set these to C if already set. These must not be set unconditionally
712# because not all systems understand e.g. LANG=C (notably SCO).
713# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
714# Non-C LC_CTYPE values break the ctype check.
715if test "${LANG+set}" = set; then LANG=C; export LANG; fi
716if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
717if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
718if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
719
720# confdefs.h avoids OS command line length limits that DEFS can exceed.
721rm -rf conftest* confdefs.h
722# AIX cpp loses on an empty file, so make sure it contains at least a newline.
723echo > confdefs.h
724
725# A filename unique to this package, relative to the directory that
726# configure is in, which we can look for to find out if srcdir is correct.
727ac_unique_file=wx-config.in
728
729# Find the source files, if location was not specified.
730if test -z "$srcdir"; then
731 ac_srcdir_defaulted=yes
732 # Try the directory containing this script, then its parent.
733 ac_prog=$0
734 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
735 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
736 srcdir=$ac_confdir
737 if test ! -r $srcdir/$ac_unique_file; then
738 srcdir=..
739 fi
740else
741 ac_srcdir_defaulted=no
742fi
743if test ! -r $srcdir/$ac_unique_file; then
744 if test "$ac_srcdir_defaulted" = yes; then
745 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
746 else
747 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
748 fi
749fi
750srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
751
752# Prefer explicitly selected file to automatically selected ones.
753if test -z "$CONFIG_SITE"; then
754 if test "x$prefix" != xNONE; then
755 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
756 else
757 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
758 fi
759fi
760for ac_site_file in $CONFIG_SITE; do
761 if test -r "$ac_site_file"; then
762 echo "loading site script $ac_site_file"
763 . "$ac_site_file"
764 fi
765done
766
767if test -r "$cache_file"; then
768 echo "loading cache $cache_file"
769 . $cache_file
770else
771 echo "creating cache $cache_file"
772 > $cache_file
773fi
774
775ac_ext=c
776# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
777ac_cpp='$CPP $CPPFLAGS'
778ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
779ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
780cross_compiling=$ac_cv_prog_cc_cross
781
782ac_exeext=
783ac_objext=o
784if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
785 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
786 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
787 ac_n= ac_c='
788' ac_t=' '
789 else
790 ac_n=-n ac_c= ac_t=
791 fi
792else
793 ac_n= ac_c='\c' ac_t=
794fi
795
796
797
7c66a493
VZ
798ac_aux_dir=
799for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
800 if test -f $ac_dir/install-sh; then
801 ac_aux_dir=$ac_dir
802 ac_install_sh="$ac_aux_dir/install-sh -c"
803 break
804 elif test -f $ac_dir/install.sh; then
805 ac_aux_dir=$ac_dir
806 ac_install_sh="$ac_aux_dir/install.sh -c"
807 break
808 fi
809done
810if test -z "$ac_aux_dir"; then
811 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
812fi
813ac_config_guess=$ac_aux_dir/config.guess
814ac_config_sub=$ac_aux_dir/config.sub
815ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
816
817
818# Do some error checking and defaulting for the host and target type.
819# The inputs are:
820# configure --host=HOST --target=TARGET --build=BUILD NONOPT
821#
822# The rules are:
823# 1. You are not allowed to specify --host, --target, and nonopt at the
824# same time.
825# 2. Host defaults to nonopt.
826# 3. If nonopt is not specified, then host defaults to the current host,
827# as determined by config.guess.
828# 4. Target and build default to nonopt.
829# 5. If nonopt is not specified, then target and build default to host.
830
831# The aliases save the names the user supplied, while $host etc.
832# will get canonicalized.
833case $host---$target---$nonopt in
834NONE---*---* | *---NONE---* | *---*---NONE) ;;
835*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
836esac
837
838
839# Make sure we can run config.sub.
840if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
841else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
842fi
843
844echo $ac_n "checking host system type""... $ac_c" 1>&6
eb4efbdc 845echo "configure:846: checking host system type" >&5
7c66a493
VZ
846
847host_alias=$host
848case "$host_alias" in
849NONE)
850 case $nonopt in
851 NONE)
852 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
853 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
854 fi ;;
855 *) host_alias=$nonopt ;;
856 esac ;;
857esac
858
859host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
860host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
861host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
862host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
863echo "$ac_t""$host" 1>&6
864
865echo $ac_n "checking target system type""... $ac_c" 1>&6
eb4efbdc 866echo "configure:867: checking target system type" >&5
7c66a493
VZ
867
868target_alias=$target
869case "$target_alias" in
870NONE)
871 case $nonopt in
872 NONE) target_alias=$host_alias ;;
873 *) target_alias=$nonopt ;;
874 esac ;;
875esac
876
877target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
878target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
879target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
880target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
881echo "$ac_t""$target" 1>&6
882
883echo $ac_n "checking build system type""... $ac_c" 1>&6
eb4efbdc 884echo "configure:885: checking build system type" >&5
7c66a493
VZ
885
886build_alias=$build
887case "$build_alias" in
888NONE)
889 case $nonopt in
890 NONE) build_alias=$host_alias ;;
891 *) build_alias=$nonopt ;;
892 esac ;;
893esac
894
895build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
896build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
897build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
898build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
899echo "$ac_t""$build" 1>&6
900
901test "$host_alias" != "$target_alias" &&
902 test "$program_prefix$program_suffix$program_transform_name" = \
903 NONENONEs,x,x, &&
904 program_prefix=${target_alias}-
905
906
10f2d63a
VZ
907
908WX_MAJOR_VERSION_NUMBER=2
f6bcfd97
BP
909WX_MINOR_VERSION_NUMBER=2
910WX_RELEASE_NUMBER=0
10f2d63a
VZ
911
912WX_INTERFACE_AGE=0
f6bcfd97 913WX_BINARY_AGE=1
10f2d63a
VZ
914
915WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
916
917WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
918WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
919WX_REVISION=$WX_INTERFACE_AGE
920WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
921
922
923USE_UNIX=1
924USE_WIN32=0
b12915c1
VZ
925USE_BEOS=0
926
10f2d63a
VZ
927USE_LINUX=
928USE_SGI=
929USE_HPUX=
930USE_SYSV=
931USE_SVR4=
932USE_AIX=
933USE_SUN=
934USE_SOLARIS=
935USE_SUNOS=
936USE_ALPHA=
937USE_OSF=
938USE_BSD=
939USE_FREEBSD=
f6bcfd97 940USE_NETBSD=
10f2d63a
VZ
941USE_VMS=
942USE_ULTRIX=
943USE_CYGWIN=
944USE_MINGW=
945USE_DATA_GENERAL=
946
ab9b9eab
VZ
947NEEDS_D_REENTRANT_FOR_R_FUNCS=0
948
e07802fc 949ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
950
951DEFAULT_wxUSE_GTK=0
952DEFAULT_wxUSE_MOTIF=0
953DEFAULT_wxUSE_MSW=0
954DEFAULT_wxUSE_WINE=0
e07802fc 955DEFAULT_wxUSE_PM=0
10f2d63a
VZ
956
957DEFAULT_DEFAULT_wxUSE_GTK=0
958DEFAULT_DEFAULT_wxUSE_MOTIF=0
959DEFAULT_DEFAULT_wxUSE_MSW=0
960DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 961DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 962
d6a55c4b
VZ
963PROGRAM_EXT=
964
10f2d63a
VZ
965case "${host}" in
966 *-hp-hpux* )
967 USE_HPUX=1
968 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 969 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
970 cat >> confdefs.h <<\EOF
971#define __HPUX__ 1
972EOF
973
974 ;;
975 *-*-linux* )
976 USE_LINUX=1
977 cat >> confdefs.h <<\EOF
978#define __LINUX__ 1
979EOF
980
981 TMP=`uname -m`
982 if test "x$TMP" = "xalpha"; then
983 USE_ALPHA=1
984 cat >> confdefs.h <<\EOF
985#define __ALPHA__ 1
986EOF
987
988 fi
989 DEFAULT_DEFAULT_wxUSE_GTK=1
990 ;;
991 *-*-irix5* | *-*-irix6* )
992 USE_SGI=1
993 USE_SVR4=1
994 cat >> confdefs.h <<\EOF
995#define __SGI__ 1
996EOF
997
998 cat >> confdefs.h <<\EOF
999#define __SVR4__ 1
1000EOF
1001
1002 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1003 ;;
1004 *-*-solaris2* )
1005 USE_SUN=1
1006 USE_SOLARIS=1
1007 USE_SVR4=1
1008 cat >> confdefs.h <<\EOF
1009#define __SUN__ 1
1010EOF
1011
1012 cat >> confdefs.h <<\EOF
1013#define __SOLARIS__ 1
1014EOF
1015
1016 cat >> confdefs.h <<\EOF
1017#define __SVR4__ 1
1018EOF
1019
1020 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1021 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1022 ;;
1023 *-*-sunos4* )
1024 USE_SUN=1
1025 USE_SUNOS=1
1026 USE_BSD=1
1027 cat >> confdefs.h <<\EOF
1028#define __SUN__ 1
1029EOF
1030
1031 cat >> confdefs.h <<\EOF
1032#define __SUNOS__ 1
1033EOF
1034
1035 cat >> confdefs.h <<\EOF
1036#define __BSD__ 1
1037EOF
1038
1039 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1040 ;;
f6bcfd97 1041 *-*-freebsd*)
10f2d63a
VZ
1042 USE_BSD=1
1043 USE_FREEBSD=1
1044 cat >> confdefs.h <<\EOF
1045#define __FREEBSD__ 1
1046EOF
1047
1048 cat >> confdefs.h <<\EOF
1049#define __BSD__ 1
f6bcfd97
BP
1050EOF
1051
1052 DEFAULT_DEFAULT_wxUSE_GTK=1
1053 ;;
1054 *-*-netbsd*)
1055 USE_BSD=1
1056 USE_NETBSD=1
1057 cat >> confdefs.h <<\EOF
1058#define __FREEBSD__ 1
1059EOF
1060
1061 cat >> confdefs.h <<\EOF
1062#define __NETBSD__ 1
10f2d63a
VZ
1063EOF
1064
1065 DEFAULT_DEFAULT_wxUSE_GTK=1
1066 ;;
1067 *-*-osf* )
1068 USE_ALPHA=1
1069 USE_OSF=1
1070 cat >> confdefs.h <<\EOF
1071#define __ALPHA__ 1
1072EOF
1073
1074 cat >> confdefs.h <<\EOF
1075#define __OSF__ 1
1076EOF
1077
1078 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1079 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1080 ;;
1081 *-*-dgux5* )
1082 USE_ALPHA=1
1083 USE_SVR4=1
1084 cat >> confdefs.h <<\EOF
1085#define __ALPHA__ 1
1086EOF
1087
1088 cat >> confdefs.h <<\EOF
1089#define __SVR4__ 1
1090EOF
1091
1092 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1093 ;;
1094 *-*-sysv5* )
1095 USE_SYSV=1
1096 USE_SVR4=1
1097 cat >> confdefs.h <<\EOF
1098#define __SYSV__ 1
1099EOF
1100
1101 cat >> confdefs.h <<\EOF
1102#define __SVR4__ 1
1103EOF
1104
1105 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1106 ;;
1107 *-*-aix* )
1108 USE_AIX=1
1109 USE_SYSV=1
1110 USE_SVR4=1
1111 cat >> confdefs.h <<\EOF
1112#define __AIX__ 1
1113EOF
1114
1115 cat >> confdefs.h <<\EOF
1116#define __SYSV__ 1
1117EOF
1118
1119 cat >> confdefs.h <<\EOF
1120#define __SVR4__ 1
1121EOF
1122
1123 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1124 ;;
1125
7eef8db2 1126 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1127 USE_UNIX=0
1128 USE_WIN32=1
1129 cat >> confdefs.h <<\EOF
1130#define __WIN32__ 1
1131EOF
1132
1133 cat >> confdefs.h <<\EOF
1134#define __WIN95__ 1
1135EOF
1136
1137 cat >> confdefs.h <<\EOF
1138#define __WINDOWS__ 1
1139EOF
1140
1141 cat >> confdefs.h <<\EOF
1142#define __GNUWIN32__ 1
1143EOF
1144
1145 cat >> confdefs.h <<\EOF
1146#define STRICT 1
1147EOF
1148
1149 cat >> confdefs.h <<\EOF
1150#define WINVER 0x0400
1151EOF
1152
cf27ef00 1153 PROGRAM_EXT=".exe"
10f2d63a
VZ
1154 DEFAULT_DEFAULT_wxUSE_MSW=1
1155 ;;
1156
1157 *-pc-os2_emx )
1158 cat >> confdefs.h <<\EOF
1159#define __EMX__ 1
1160EOF
1161
cf27ef00 1162 PROGRAM_EXT=".exe"
e07802fc 1163 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1164 ;;
1165
b12915c1
VZ
1166 *-*-beos* )
1167 USE_BEOS=1
1168 cat >> confdefs.h <<\EOF
1169#define __BEOS__ 1
1170EOF
1171
1172 ;;
1173
10f2d63a
VZ
1174 *)
1175 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1176esac
1177
1178if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1179 wxUSE_UNIX=yes
1180 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1181#define __UNIX__ 1
1182EOF
1183
b12915c1
VZ
1184
1185 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1186 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1187fi
1188
1189if test "$USE_BEOS" = 1; then
1190 SRC_SUBDIRS="$SRC_SUBDIRS be"
1191 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1192fi
1193
1194if test "$USE_LINUX" = 1; then
1195 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
f6bcfd97 1196echo "configure:1197: checking for gettext in -lc" >&5
10f2d63a
VZ
1197ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1198if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1200else
1201 ac_save_LIBS="$LIBS"
1202LIBS="-lc $LIBS"
1203cat > conftest.$ac_ext <<EOF
f6bcfd97 1204#line 1205 "configure"
10f2d63a
VZ
1205#include "confdefs.h"
1206/* Override any gcc2 internal prototype to avoid an error. */
1207/* We use char because int might match the return type of a gcc2
1208 builtin and then its argument prototype would still apply. */
1209char gettext();
1210
1211int main() {
1212gettext()
1213; return 0; }
1214EOF
f6bcfd97 1215if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1216 rm -rf conftest*
1217 eval "ac_cv_lib_$ac_lib_var=yes"
1218else
1219 echo "configure: failed program was:" >&5
1220 cat conftest.$ac_ext >&5
1221 rm -rf conftest*
1222 eval "ac_cv_lib_$ac_lib_var=no"
1223fi
1224rm -f conftest*
1225LIBS="$ac_save_LIBS"
1226
1227fi
1228if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1229 echo "$ac_t""yes" 1>&6
1230 cat >> confdefs.h <<\EOF
1231#define wxHAVE_GLIBC2 1
1232EOF
1233
1234else
1235 echo "$ac_t""no" 1>&6
1236fi
1237
1238fi
1239
1240
1241
1242
1243 wx_arg_cache_file="configarg.cache"
1244 echo "loading argument cache $wx_arg_cache_file"
1245 rm -f ${wx_arg_cache_file}.tmp
1246 touch ${wx_arg_cache_file}.tmp
1247 touch ${wx_arg_cache_file}
1248
1249
1250DEBUG_CONFIGURE=0
1251if test $DEBUG_CONFIGURE = 1; then
1252 DEFAULT_wxUSE_THREADS=yes
1253
1254 DEFAULT_wxUSE_SHARED=yes
00cf1208 1255 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1256 DEFAULT_wxUSE_OPTIMISE=yes
1257 DEFAULT_wxUSE_PROFILE=no
1258 DEFAULT_wxUSE_NO_DEPS=no
1259 DEFAULT_wxUSE_NO_RTTI=no
1260 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1261 DEFAULT_wxUSE_PERMISSIVE=no
1262 DEFAULT_wxUSE_DEBUG_FLAG=yes
1263 DEFAULT_wxUSE_DEBUG_INFO=yes
1264 DEFAULT_wxUSE_DEBUG_GDB=yes
1265 DEFAULT_wxUSE_MEM_TRACING=no
1266 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1267 DEFAULT_wxUSE_DMALLOC=no
1268 DEFAULT_wxUSE_APPLE_IEEE=no
1269
1270 DEFAULT_wxUSE_LOG=yes
1271
1272 DEFAULT_wxUSE_GUI=yes
1273
1274 DEFAULT_wxUSE_ZLIB=no
1275 DEFAULT_wxUSE_LIBPNG=no
1276 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1277 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1278 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1279 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1280
eb4efbdc 1281 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
10f2d63a
VZ
1282 DEFAULT_wxUSE_STD_IOSTREAM=no
1283 DEFAULT_wxUSE_FILE=no
1284 DEFAULT_wxUSE_TEXTFILE=no
1285 DEFAULT_wxUSE_TIMEDATE=no
1286 DEFAULT_wxUSE_WAVE=no
1287 DEFAULT_wxUSE_INTL=no
1288 DEFAULT_wxUSE_CONFIG=no
1289 DEFAULT_wxUSE_STREAMS=no
1290 DEFAULT_wxUSE_SOCKETS=no
1291 DEFAULT_wxUSE_DIALUP_MANAGER=no
1292 DEFAULT_wxUSE_SERIAL=no
1293 DEFAULT_wxUSE_JOYSTICK=no
1294 DEFAULT_wxUSE_DYNLIB_CLASS=no
1295 DEFAULT_wxUSE_LONGLONG=no
1296
1297 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1298 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1299 DEFAULT_wxUSE_POSTSCRIPT=no
1300
1301 DEFAULT_wxUSE_X_RESOURCES=no
1302 DEFAULT_wxUSE_CLIPBOARD=no
1303 DEFAULT_wxUSE_TOOLTIPS=no
1304 DEFAULT_wxUSE_DRAG_AND_DROP=no
1305 DEFAULT_wxUSE_SPLINES=no
1306
1307 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1308 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1309 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1310
1311 DEFAULT_wxUSE_PROLOGIO=no
1312 DEFAULT_wxUSE_RESOURCES=no
1313 DEFAULT_wxUSE_CONSTRAINTS=no
1314 DEFAULT_wxUSE_IPC=no
1315 DEFAULT_wxUSE_HELP=no
1316 DEFAULT_wxUSE_WXTREE=no
1317 DEFAULT_wxUSE_METAFILE=no
1318
1319 DEFAULT_wxUSE_COMMONDLGS=no
1320 DEFAULT_wxUSE_DIRDLG=no
1321 DEFAULT_wxUSE_TEXTDLG=no
1322 DEFAULT_wxUSE_STARTUP_TIPS=no
1323 DEFAULT_wxUSE_PROGRESSDLG=no
1324 DEFAULT_wxUSE_MINIFRAME=no
1325 DEFAULT_wxUSE_HTML=no
24528b0c 1326 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1327 DEFAULT_wxUSE_FS_INET=no
1328 DEFAULT_wxUSE_FS_ZIP=no
1329 DEFAULT_wxUSE_BUSYINFO=no
1330 DEFAULT_wxUSE_ZIPSTREAM=no
1331 DEFAULT_wxUSE_VALIDATORS=yes
1332
1333 DEFAULT_wxUSE_ACCEL=no
1334 DEFAULT_wxUSE_CARET=no
1335 DEFAULT_wxUSE_BMPBUTTON=no
1336 DEFAULT_wxUSE_CHECKBOX=no
1337 DEFAULT_wxUSE_CHECKLST=no
1338 DEFAULT_wxUSE_CHOICE=yes
1339 DEFAULT_wxUSE_COMBOBOX=no
1340 DEFAULT_wxUSE_GAUGE=no
1341 DEFAULT_wxUSE_GRID=no
1342 DEFAULT_wxUSE_NEW_GRID=no
1343 DEFAULT_wxUSE_IMAGLIST=no
1344 DEFAULT_wxUSE_LISTBOX=no
1345 DEFAULT_wxUSE_LISTCTRL=no
1346 DEFAULT_wxUSE_NOTEBOOK=no
9b33fe02 1347 DEFAULT_wxUSE_PLOT=no
10f2d63a
VZ
1348 DEFAULT_wxUSE_RADIOBOX=no
1349 DEFAULT_wxUSE_RADIOBTN=no
1350 DEFAULT_wxUSE_SASH=no
1351 DEFAULT_wxUSE_SCROLLBAR=no
1352 DEFAULT_wxUSE_SLIDER=no
1353 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1354 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1355 DEFAULT_wxUSE_SPLITTER=no
1356 DEFAULT_wxUSE_STATBMP=no
1357 DEFAULT_wxUSE_STATBOX=no
1358 DEFAULT_wxUSE_STATLINE=no
1359 DEFAULT_wxUSE_STATUSBAR=yes
1360 DEFAULT_wxUSE_TABDIALOG=no
1361 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1362 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1363 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1364 DEFAULT_wxUSE_TREECTRL=no
1365
1366 DEFAULT_wxUSE_UNICODE=no
1367 DEFAULT_wxUSE_WCSRTOMBS=no
1368
1369 DEFAULT_wxUSE_GIF=no
1370 DEFAULT_wxUSE_PCX=no
1371 DEFAULT_wxUSE_PNM=no
1372else
1373 DEFAULT_wxUSE_THREADS=yes
1374
1375 DEFAULT_wxUSE_SHARED=yes
00cf1208 1376 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1377 DEFAULT_wxUSE_OPTIMISE=yes
1378 DEFAULT_wxUSE_PROFILE=no
1379 DEFAULT_wxUSE_NO_DEPS=no
1380 DEFAULT_wxUSE_NO_RTTI=no
1381 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1382 DEFAULT_wxUSE_PERMISSIVE=no
1383 DEFAULT_wxUSE_DEBUG_FLAG=no
1384 DEFAULT_wxUSE_DEBUG_INFO=no
1385 DEFAULT_wxUSE_DEBUG_GDB=no
1386 DEFAULT_wxUSE_MEM_TRACING=no
1387 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1388 DEFAULT_wxUSE_DMALLOC=no
1389 DEFAULT_wxUSE_APPLE_IEEE=yes
1390
1391 DEFAULT_wxUSE_LOG=yes
1392
1393 DEFAULT_wxUSE_GUI=yes
1394
1395 DEFAULT_wxUSE_ZLIB=yes
1396 DEFAULT_wxUSE_LIBPNG=yes
1397 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1398 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1399 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1400 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1401
eb4efbdc 1402 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
10f2d63a
VZ
1403 DEFAULT_wxUSE_STD_IOSTREAM=no
1404 DEFAULT_wxUSE_FILE=yes
1405 DEFAULT_wxUSE_TEXTFILE=yes
1406 DEFAULT_wxUSE_TIMEDATE=yes
1407 DEFAULT_wxUSE_WAVE=no
1408 DEFAULT_wxUSE_INTL=yes
1409 DEFAULT_wxUSE_CONFIG=yes
1410 DEFAULT_wxUSE_STREAMS=yes
1411 DEFAULT_wxUSE_SOCKETS=yes
1412 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1413 DEFAULT_wxUSE_SERIAL=yes
1414 DEFAULT_wxUSE_JOYSTICK=yes
1415 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1416 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1417
1418 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1419 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1420 DEFAULT_wxUSE_POSTSCRIPT=yes
1421
1422 DEFAULT_wxUSE_X_RESOURCES=no
1423 DEFAULT_wxUSE_CLIPBOARD=yes
1424 DEFAULT_wxUSE_TOOLTIPS=yes
1425 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1426 DEFAULT_wxUSE_SPLINES=yes
1427
1428 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1429 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1430 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1431
1432 DEFAULT_wxUSE_PROLOGIO=yes
1433 DEFAULT_wxUSE_RESOURCES=yes
1434 DEFAULT_wxUSE_CONSTRAINTS=yes
1435 DEFAULT_wxUSE_IPC=yes
1436 DEFAULT_wxUSE_HELP=yes
1437 DEFAULT_wxUSE_WXTREE=yes
1438 DEFAULT_wxUSE_METAFILE=yes
1439
1440 DEFAULT_wxUSE_COMMONDLGS=yes
1441 DEFAULT_wxUSE_DIRDLG=yes
1442 DEFAULT_wxUSE_TEXTDLG=yes
1443 DEFAULT_wxUSE_STARTUP_TIPS=yes
1444 DEFAULT_wxUSE_PROGRESSDLG=yes
1445 DEFAULT_wxUSE_MINIFRAME=yes
1446 DEFAULT_wxUSE_HTML=yes
24528b0c 1447 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1448 DEFAULT_wxUSE_FS_INET=yes
1449 DEFAULT_wxUSE_FS_ZIP=yes
1450 DEFAULT_wxUSE_BUSYINFO=yes
1451 DEFAULT_wxUSE_ZIPSTREAM=yes
1452 DEFAULT_wxUSE_VALIDATORS=yes
1453
1454 DEFAULT_wxUSE_ACCEL=yes
1455 DEFAULT_wxUSE_CARET=yes
1456 DEFAULT_wxUSE_BMPBUTTON=yes
1457 DEFAULT_wxUSE_CHECKBOX=yes
1458 DEFAULT_wxUSE_CHECKLST=yes
1459 DEFAULT_wxUSE_CHOICE=yes
1460 DEFAULT_wxUSE_COMBOBOX=yes
1461 DEFAULT_wxUSE_GAUGE=yes
1462 DEFAULT_wxUSE_GRID=yes
cc977e5f 1463 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1464 DEFAULT_wxUSE_IMAGLIST=yes
1465 DEFAULT_wxUSE_LISTBOX=yes
1466 DEFAULT_wxUSE_LISTCTRL=yes
1467 DEFAULT_wxUSE_NOTEBOOK=yes
9b33fe02 1468 DEFAULT_wxUSE_PLOT=yes
10f2d63a
VZ
1469 DEFAULT_wxUSE_RADIOBOX=yes
1470 DEFAULT_wxUSE_RADIOBTN=yes
1471 DEFAULT_wxUSE_SASH=yes
1472 DEFAULT_wxUSE_SCROLLBAR=yes
1473 DEFAULT_wxUSE_SLIDER=yes
1474 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1475 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1476 DEFAULT_wxUSE_SPLITTER=yes
1477 DEFAULT_wxUSE_STATBMP=yes
1478 DEFAULT_wxUSE_STATBOX=yes
1479 DEFAULT_wxUSE_STATLINE=yes
1480 DEFAULT_wxUSE_STATUSBAR=yes
1481 DEFAULT_wxUSE_TABDIALOG=no
1482 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1483 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1484 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1485 DEFAULT_wxUSE_TREECTRL=yes
1486
1487 DEFAULT_wxUSE_UNICODE=no
1488 DEFAULT_wxUSE_WCSRTOMBS=no
1489
1490 DEFAULT_wxUSE_GIF=yes
1491 DEFAULT_wxUSE_PCX=yes
1492 DEFAULT_wxUSE_PNM=yes
1493fi
1494
1495
1496
1497for toolkit in `echo $ALL_TOOLKITS`; do
1498 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1499 if test "x$LINE" != x ; then
1500 has_toolkit_in_cache=1
1501 eval "DEFAULT_$LINE"
1502 eval "CACHE_$toolkit=1"
1503 fi
1504done
1505
1506
1507
1508 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
f6bcfd97 1509echo "configure:1510: checking "for --enable-gui"" >&5
10f2d63a
VZ
1510 no_cache=0
1511 # Check whether --enable-gui or --disable-gui was given.
1512if test "${enable_gui+set}" = set; then
1513 enableval="$enable_gui"
1514
1515 if test "$enableval" = yes; then
1516 ac_cv_use_gui='wxUSE_GUI=yes'
1517 else
1518 ac_cv_use_gui='wxUSE_GUI=no'
1519 fi
1520
1521else
1522
1523 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1524 if test "x$LINE" != x ; then
1525 eval "DEFAULT_$LINE"
1526 else
1527 no_cache=1
1528 fi
1529
1530 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1531
1532fi
1533
1534
1535 eval "$ac_cv_use_gui"
1536 if test "$no_cache" != 1; then
1537 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1538 fi
1539
1540 if test "$wxUSE_GUI" = yes; then
1541 echo "$ac_t""yes" 1>&6
1542 else
1543 echo "$ac_t""no" 1>&6
1544 fi
1545
1546
b12915c1 1547if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1548
1549# Check whether --with-gtk or --without-gtk was given.
1550if test "${with_gtk+set}" = set; then
1551 withval="$with_gtk"
1552 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1553fi
1554
1555# Check whether --with-motif or --without-motif was given.
1556if test "${with_motif+set}" = set; then
1557 withval="$with_motif"
1558 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1559fi
1560
1561# Check whether --with-wine or --without-wine was given.
1562if test "${with_wine+set}" = set; then
1563 withval="$with_wine"
1564 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1565fi
1566
1567# Check whether --with-cygwin or --without-cygwin was given.
1568if test "${with_cygwin+set}" = set; then
1569 withval="$with_cygwin"
1570 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1571fi
1572
1573# Check whether --with-mingw or --without-mingw was given.
1574if test "${with_mingw+set}" = set; then
1575 withval="$with_mingw"
1576 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1577fi
1578
e07802fc
VZ
1579# Check whether --with-pm or --without-pm was given.
1580if test "${with_pm+set}" = set; then
1581 withval="$with_pm"
1582 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1583fi
1584
10f2d63a
VZ
1585
1586# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1587if test "${with_gtk_prefix+set}" = set; then
1588 withval="$with_gtk_prefix"
1589 gtk_config_prefix="$withval"
1590else
1591 gtk_config_prefix=""
1592fi
1593
1594# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1595if test "${with_gtk_exec_prefix+set}" = set; then
1596 withval="$with_gtk_exec_prefix"
1597 gtk_config_exec_prefix="$withval"
1598else
1599 gtk_config_exec_prefix=""
1600fi
1601
1602
1603
b12915c1 1604 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
f6bcfd97 1605echo "configure:1606: checking "for --with-libpng"" >&5
10f2d63a 1606 no_cache=0
b12915c1
VZ
1607 # Check whether --with-libpng or --without-libpng was given.
1608if test "${with_libpng+set}" = set; then
1609 withval="$with_libpng"
10f2d63a
VZ
1610
1611 if test "$withval" = yes; then
b12915c1 1612 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1613 elif test "$withval" = no; then
b12915c1 1614 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1615 elif test "$withval" = sys; then
1616 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1617 else
1618 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1619 fi
1620
1621else
1622
b12915c1 1623 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1624 if test "x$LINE" != x ; then
1625 eval "DEFAULT_$LINE"
1626 else
1627 no_cache=1
1628 fi
1629
b12915c1 1630 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1631
1632fi
1633
1634
b12915c1 1635 eval "$ac_cv_use_libpng"
10f2d63a 1636 if test "$no_cache" != 1; then
b12915c1 1637 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1638 fi
1639
b12915c1 1640 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a 1641 echo "$ac_t""yes" 1>&6
422107f9 1642 elif test "$wxUSE_LIBPNG" = no; then
10f2d63a 1643 echo "$ac_t""no" 1>&6
422107f9
VZ
1644 elif test "$wxUSE_LIBPNG" = sys; then
1645 echo "$ac_t""system version" 1>&6
1646 else
1647 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1648 fi
1649
1650
b12915c1 1651 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
f6bcfd97 1652echo "configure:1653: checking "for --with-libjpeg"" >&5
10f2d63a 1653 no_cache=0
b12915c1
VZ
1654 # Check whether --with-libjpeg or --without-libjpeg was given.
1655if test "${with_libjpeg+set}" = set; then
1656 withval="$with_libjpeg"
10f2d63a
VZ
1657
1658 if test "$withval" = yes; then
b12915c1 1659 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1660 elif test "$withval" = no; then
b12915c1 1661 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1662 elif test "$withval" = sys; then
1663 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1664 else
1665 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1666 fi
1667
1668else
1669
b12915c1 1670 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1671 if test "x$LINE" != x ; then
1672 eval "DEFAULT_$LINE"
1673 else
1674 no_cache=1
1675 fi
1676
b12915c1 1677 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1678
1679fi
1680
1681
b12915c1 1682 eval "$ac_cv_use_libjpeg"
10f2d63a 1683 if test "$no_cache" != 1; then
b12915c1 1684 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1685 fi
1686
b12915c1 1687 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a 1688 echo "$ac_t""yes" 1>&6
422107f9 1689 elif test "$wxUSE_LIBJPEG" = no; then
10f2d63a 1690 echo "$ac_t""no" 1>&6
422107f9
VZ
1691 elif test "$wxUSE_LIBJPEG" = sys; then
1692 echo "$ac_t""system version" 1>&6
1693 else
1694 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1695 fi
1696
1697
b12915c1 1698 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
f6bcfd97 1699echo "configure:1700: checking "for --with-libtiff"" >&5
10f2d63a 1700 no_cache=0
b12915c1
VZ
1701 # Check whether --with-libtiff or --without-libtiff was given.
1702if test "${with_libtiff+set}" = set; then
1703 withval="$with_libtiff"
10f2d63a
VZ
1704
1705 if test "$withval" = yes; then
b12915c1 1706 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1707 elif test "$withval" = no; then
b12915c1 1708 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1709 elif test "$withval" = sys; then
1710 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1711 else
1712 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1713 fi
1714
1715else
1716
b12915c1 1717 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1718 if test "x$LINE" != x ; then
1719 eval "DEFAULT_$LINE"
1720 else
1721 no_cache=1
1722 fi
1723
b12915c1 1724 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1725
1726fi
1727
1728
b12915c1 1729 eval "$ac_cv_use_libtiff"
10f2d63a 1730 if test "$no_cache" != 1; then
b12915c1 1731 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1732 fi
1733
b12915c1 1734 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a 1735 echo "$ac_t""yes" 1>&6
0dcf9893 1736 elif test "$wxUSE_LIBTIFF" = no; then
10f2d63a 1737 echo "$ac_t""no" 1>&6
0dcf9893
VZ
1738 elif test "$wxUSE_LIBTIFF" = sys; then
1739 echo "$ac_t""system version" 1>&6
1740 else
1741 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1742 fi
1743
1744
b12915c1 1745 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
f6bcfd97 1746echo "configure:1747: checking "for --with-opengl"" >&5
10f2d63a 1747 no_cache=0
b12915c1
VZ
1748 # Check whether --with-opengl or --without-opengl was given.
1749if test "${with_opengl+set}" = set; then
1750 withval="$with_opengl"
10f2d63a
VZ
1751
1752 if test "$withval" = yes; then
b12915c1 1753 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1754 else
b12915c1 1755 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1756 fi
1757
1758else
1759
b12915c1 1760 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1761 if test "x$LINE" != x ; then
1762 eval "DEFAULT_$LINE"
1763 else
1764 no_cache=1
1765 fi
1766
b12915c1 1767 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1768
1769fi
1770
1771
b12915c1 1772 eval "$ac_cv_use_opengl"
10f2d63a 1773 if test "$no_cache" != 1; then
b12915c1 1774 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1775 fi
1776
b12915c1 1777 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1778 echo "$ac_t""yes" 1>&6
1779 else
1780 echo "$ac_t""no" 1>&6
1781 fi
1782
1783
b12915c1
VZ
1784fi
1785
1786
1787 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
f6bcfd97 1788echo "configure:1789: checking "for --with-dmalloc"" >&5
c7a2bf27 1789 no_cache=0
b12915c1
VZ
1790 # Check whether --with-dmalloc or --without-dmalloc was given.
1791if test "${with_dmalloc+set}" = set; then
1792 withval="$with_dmalloc"
c7a2bf27
RR
1793
1794 if test "$withval" = yes; then
b12915c1 1795 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1796 else
b12915c1 1797 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1798 fi
1799
1800else
1801
b12915c1 1802 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1803 if test "x$LINE" != x ; then
1804 eval "DEFAULT_$LINE"
1805 else
1806 no_cache=1
1807 fi
1808
b12915c1 1809 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1810
1811fi
1812
1813
b12915c1 1814 eval "$ac_cv_use_dmalloc"
c7a2bf27 1815 if test "$no_cache" != 1; then
b12915c1 1816 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1817 fi
1818
b12915c1 1819 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1820 echo "$ac_t""yes" 1>&6
1821 else
1822 echo "$ac_t""no" 1>&6
1823 fi
1824
1825
b12915c1 1826 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
f6bcfd97 1827echo "configure:1828: checking "for --with-zlib"" >&5
10f2d63a 1828 no_cache=0
b12915c1
VZ
1829 # Check whether --with-zlib or --without-zlib was given.
1830if test "${with_zlib+set}" = set; then
1831 withval="$with_zlib"
10f2d63a
VZ
1832
1833 if test "$withval" = yes; then
b12915c1 1834 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 1835 elif test "$withval" = no; then
b12915c1 1836 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
1837 elif test "$withval" = sys; then
1838 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1839 else
1840 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1841 fi
1842
1843else
1844
b12915c1 1845 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1846 if test "x$LINE" != x ; then
1847 eval "DEFAULT_$LINE"
1848 else
1849 no_cache=1
1850 fi
1851
b12915c1 1852 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1853
1854fi
1855
1856
b12915c1 1857 eval "$ac_cv_use_zlib"
10f2d63a 1858 if test "$no_cache" != 1; then
b12915c1 1859 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1860 fi
1861
b12915c1 1862 if test "$wxUSE_ZLIB" = yes; then
10f2d63a 1863 echo "$ac_t""yes" 1>&6
422107f9 1864 elif test "$wxUSE_ZLIB" = no; then
bdad4e7e 1865 echo "$ac_t""no" 1>&6
422107f9
VZ
1866 elif test "$wxUSE_ZLIB" = sys; then
1867 echo "$ac_t""system version" 1>&6
1868 else
1869 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1870 fi
1871
1872
1873 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
f6bcfd97 1874echo "configure:1875: checking "for --with-odbc"" >&5
10f2d63a
VZ
1875 no_cache=0
1876 # Check whether --with-odbc or --without-odbc was given.
1877if test "${with_odbc+set}" = set; then
1878 withval="$with_odbc"
1879
1880 if test "$withval" = yes; then
1881 ac_cv_use_odbc='wxUSE_ODBC=yes'
1882 else
1883 ac_cv_use_odbc='wxUSE_ODBC=no'
1884 fi
1885
1886else
1887
1888 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1889 if test "x$LINE" != x ; then
1890 eval "DEFAULT_$LINE"
1891 else
1892 no_cache=1
1893 fi
1894
1895 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1896
1897fi
1898
1899
1900 eval "$ac_cv_use_odbc"
1901 if test "$no_cache" != 1; then
1902 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1903 fi
1904
1905 if test "$wxUSE_ODBC" = yes; then
1906 echo "$ac_t""yes" 1>&6
1907 else
1908 echo "$ac_t""no" 1>&6
1909 fi
1910
1911
1912
1913
1914
1915 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
f6bcfd97 1916echo "configure:1917: checking "for --enable-shared"" >&5
10f2d63a
VZ
1917 no_cache=0
1918 # Check whether --enable-shared or --disable-shared was given.
1919if test "${enable_shared+set}" = set; then
1920 enableval="$enable_shared"
1921
1922 if test "$enableval" = yes; then
1923 ac_cv_use_shared='wxUSE_SHARED=yes'
1924 else
1925 ac_cv_use_shared='wxUSE_SHARED=no'
1926 fi
1927
1928else
1929
1930 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1931 if test "x$LINE" != x ; then
1932 eval "DEFAULT_$LINE"
1933 else
1934 no_cache=1
1935 fi
1936
1937 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1938
1939fi
1940
1941
1942 eval "$ac_cv_use_shared"
1943 if test "$no_cache" != 1; then
1944 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1945 fi
1946
1947 if test "$wxUSE_SHARED" = yes; then
1948 echo "$ac_t""yes" 1>&6
1949 else
1950 echo "$ac_t""no" 1>&6
1951 fi
1952
1953
00cf1208 1954 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
f6bcfd97 1955echo "configure:1956: checking "for --enable-burnt_name"" >&5
00cf1208
RR
1956 no_cache=0
1957 # Check whether --enable-burnt_name or --disable-burnt_name was given.
1958if test "${enable_burnt_name+set}" = set; then
1959 enableval="$enable_burnt_name"
1960
1961 if test "$enableval" = yes; then
1962 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
1963 else
1964 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
1965 fi
1966
1967else
1968
1969 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
1970 if test "x$LINE" != x ; then
1971 eval "DEFAULT_$LINE"
1972 else
1973 no_cache=1
1974 fi
1975
1976 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
1977
1978fi
1979
1980
1981 eval "$ac_cv_use_burnt_name"
1982 if test "$no_cache" != 1; then
1983 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
1984 fi
1985
1986 if test "$wxUSE_BURNT_NAME" = yes; then
1987 echo "$ac_t""yes" 1>&6
1988 else
1989 echo "$ac_t""no" 1>&6
1990 fi
1991
1992
10f2d63a 1993 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
f6bcfd97 1994echo "configure:1995: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1995 no_cache=0
1996 # Check whether --enable-optimise or --disable-optimise was given.
1997if test "${enable_optimise+set}" = set; then
1998 enableval="$enable_optimise"
1999
2000 if test "$enableval" = yes; then
2001 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2002 else
2003 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2004 fi
2005
2006else
2007
2008 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2009 if test "x$LINE" != x ; then
2010 eval "DEFAULT_$LINE"
2011 else
2012 no_cache=1
2013 fi
2014
2015 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2016
2017fi
2018
2019
2020 eval "$ac_cv_use_optimise"
2021 if test "$no_cache" != 1; then
2022 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2023 fi
2024
2025 if test "$wxUSE_OPTIMISE" = yes; then
2026 echo "$ac_t""yes" 1>&6
2027 else
2028 echo "$ac_t""no" 1>&6
2029 fi
2030
2031
2032 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
f6bcfd97 2033echo "configure:2034: checking "for --enable-debug"" >&5
10f2d63a
VZ
2034 no_cache=0
2035 # Check whether --enable-debug or --disable-debug was given.
2036if test "${enable_debug+set}" = set; then
2037 enableval="$enable_debug"
2038
2039 if test "$enableval" = yes; then
2040 ac_cv_use_debug='wxUSE_DEBUG=yes'
2041 else
2042 ac_cv_use_debug='wxUSE_DEBUG=no'
2043 fi
2044
2045else
2046
2047 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2048 if test "x$LINE" != x ; then
2049 eval "DEFAULT_$LINE"
2050 else
2051 no_cache=1
2052 fi
2053
2054 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2055
2056fi
2057
2058
2059 eval "$ac_cv_use_debug"
2060 if test "$no_cache" != 1; then
2061 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2062 fi
2063
2064 if test "$wxUSE_DEBUG" = yes; then
2065 echo "$ac_t""yes" 1>&6
2066 else
2067 echo "$ac_t""no" 1>&6
2068 fi
2069
2070
2071if test "$wxUSE_DEBUG" = "yes"; then
2072 DEFAULT_wxUSE_DEBUG_FLAG=yes
2073 DEFAULT_wxUSE_DEBUG_INFO=yes
2074elif test "$wxUSE_DEBUG" = "no"; then
2075 DEFAULT_wxUSE_DEBUG_FLAG=no
2076 DEFAULT_wxUSE_DEBUG_INFO=no
2077fi
2078
2079
2080 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
f6bcfd97 2081echo "configure:2082: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2082 no_cache=0
2083 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2084if test "${enable_debug_flag+set}" = set; then
2085 enableval="$enable_debug_flag"
2086
2087 if test "$enableval" = yes; then
2088 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2089 else
2090 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2091 fi
2092
2093else
2094
2095 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2096 if test "x$LINE" != x ; then
2097 eval "DEFAULT_$LINE"
2098 else
2099 no_cache=1
2100 fi
2101
2102 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2103
2104fi
2105
2106
2107 eval "$ac_cv_use_debug_flag"
2108 if test "$no_cache" != 1; then
2109 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2110 fi
2111
2112 if test "$wxUSE_DEBUG_FLAG" = yes; then
2113 echo "$ac_t""yes" 1>&6
2114 else
2115 echo "$ac_t""no" 1>&6
2116 fi
2117
2118
2119 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
f6bcfd97 2120echo "configure:2121: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2121 no_cache=0
2122 # Check whether --enable-debug_info or --disable-debug_info was given.
2123if test "${enable_debug_info+set}" = set; then
2124 enableval="$enable_debug_info"
2125
2126 if test "$enableval" = yes; then
2127 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2128 else
2129 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2130 fi
2131
2132else
2133
2134 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2135 if test "x$LINE" != x ; then
2136 eval "DEFAULT_$LINE"
2137 else
2138 no_cache=1
2139 fi
2140
2141 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2142
2143fi
2144
2145
2146 eval "$ac_cv_use_debug_info"
2147 if test "$no_cache" != 1; then
2148 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2149 fi
2150
2151 if test "$wxUSE_DEBUG_INFO" = yes; then
2152 echo "$ac_t""yes" 1>&6
2153 else
2154 echo "$ac_t""no" 1>&6
2155 fi
2156
2157
2158 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
f6bcfd97 2159echo "configure:2160: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2160 no_cache=0
2161 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2162if test "${enable_debug_gdb+set}" = set; then
2163 enableval="$enable_debug_gdb"
2164
2165 if test "$enableval" = yes; then
2166 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2167 else
2168 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2169 fi
2170
2171else
2172
2173 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2174 if test "x$LINE" != x ; then
2175 eval "DEFAULT_$LINE"
2176 else
2177 no_cache=1
2178 fi
2179
2180 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2181
2182fi
2183
2184
2185 eval "$ac_cv_use_debug_gdb"
2186 if test "$no_cache" != 1; then
2187 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2188 fi
2189
2190 if test "$wxUSE_DEBUG_GDB" = yes; then
2191 echo "$ac_t""yes" 1>&6
2192 else
2193 echo "$ac_t""no" 1>&6
2194 fi
2195
2196
2197 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
f6bcfd97 2198echo "configure:2199: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2199 no_cache=0
2200 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2201if test "${enable_debug_cntxt+set}" = set; then
2202 enableval="$enable_debug_cntxt"
2203
2204 if test "$enableval" = yes; then
2205 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2206 else
2207 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2208 fi
2209
2210else
2211
2212 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2213 if test "x$LINE" != x ; then
2214 eval "DEFAULT_$LINE"
2215 else
2216 no_cache=1
2217 fi
2218
2219 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2220
2221fi
2222
2223
2224 eval "$ac_cv_use_debug_cntxt"
2225 if test "$no_cache" != 1; then
2226 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2227 fi
2228
2229 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2230 echo "$ac_t""yes" 1>&6
2231 else
2232 echo "$ac_t""no" 1>&6
2233 fi
2234
2235
2236 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
f6bcfd97 2237echo "configure:2238: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2238 no_cache=0
2239 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2240if test "${enable_mem_tracing+set}" = set; then
2241 enableval="$enable_mem_tracing"
2242
2243 if test "$enableval" = yes; then
2244 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2245 else
2246 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2247 fi
2248
2249else
2250
2251 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2252 if test "x$LINE" != x ; then
2253 eval "DEFAULT_$LINE"
2254 else
2255 no_cache=1
2256 fi
2257
2258 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2259
2260fi
2261
2262
2263 eval "$ac_cv_use_mem_tracing"
2264 if test "$no_cache" != 1; then
2265 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2266 fi
2267
2268 if test "$wxUSE_MEM_TRACING" = yes; then
2269 echo "$ac_t""yes" 1>&6
2270 else
2271 echo "$ac_t""no" 1>&6
2272 fi
2273
2274
2275 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
f6bcfd97 2276echo "configure:2277: checking "for --enable-profile"" >&5
10f2d63a
VZ
2277 no_cache=0
2278 # Check whether --enable-profile or --disable-profile was given.
2279if test "${enable_profile+set}" = set; then
2280 enableval="$enable_profile"
2281
2282 if test "$enableval" = yes; then
2283 ac_cv_use_profile='wxUSE_PROFILE=yes'
2284 else
2285 ac_cv_use_profile='wxUSE_PROFILE=no'
2286 fi
2287
2288else
2289
2290 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2291 if test "x$LINE" != x ; then
2292 eval "DEFAULT_$LINE"
2293 else
2294 no_cache=1
2295 fi
2296
2297 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2298
2299fi
2300
2301
2302 eval "$ac_cv_use_profile"
2303 if test "$no_cache" != 1; then
2304 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2305 fi
2306
2307 if test "$wxUSE_PROFILE" = yes; then
2308 echo "$ac_t""yes" 1>&6
2309 else
2310 echo "$ac_t""no" 1>&6
2311 fi
2312
2313
2314 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
f6bcfd97 2315echo "configure:2316: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2316 no_cache=0
2317 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2318if test "${enable_no_rtti+set}" = set; then
2319 enableval="$enable_no_rtti"
2320
2321 if test "$enableval" = yes; then
2322 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2323 else
2324 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2325 fi
2326
2327else
2328
2329 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2330 if test "x$LINE" != x ; then
2331 eval "DEFAULT_$LINE"
2332 else
2333 no_cache=1
2334 fi
2335
2336 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2337
2338fi
2339
2340
2341 eval "$ac_cv_use_no_rtti"
2342 if test "$no_cache" != 1; then
2343 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2344 fi
2345
2346 if test "$wxUSE_NO_RTTI" = yes; then
2347 echo "$ac_t""yes" 1>&6
2348 else
2349 echo "$ac_t""no" 1>&6
2350 fi
2351
2352
2353 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
f6bcfd97 2354echo "configure:2355: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2355 no_cache=0
2356 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2357if test "${enable_no_exceptions+set}" = set; then
2358 enableval="$enable_no_exceptions"
2359
2360 if test "$enableval" = yes; then
2361 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2362 else
2363 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2364 fi
2365
2366else
2367
2368 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2369 if test "x$LINE" != x ; then
2370 eval "DEFAULT_$LINE"
2371 else
2372 no_cache=1
2373 fi
2374
2375 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2376
2377fi
2378
2379
2380 eval "$ac_cv_use_no_exceptions"
2381 if test "$no_cache" != 1; then
2382 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2383 fi
2384
2385 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2386 echo "$ac_t""yes" 1>&6
2387 else
2388 echo "$ac_t""no" 1>&6
2389 fi
2390
2391
2392 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
f6bcfd97 2393echo "configure:2394: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2394 no_cache=0
2395 # Check whether --enable-permissive or --disable-permissive was given.
2396if test "${enable_permissive+set}" = set; then
2397 enableval="$enable_permissive"
2398
2399 if test "$enableval" = yes; then
2400 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2401 else
2402 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2403 fi
2404
2405else
2406
2407 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2408 if test "x$LINE" != x ; then
2409 eval "DEFAULT_$LINE"
2410 else
2411 no_cache=1
2412 fi
2413
2414 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2415
2416fi
2417
2418
2419 eval "$ac_cv_use_permissive"
2420 if test "$no_cache" != 1; then
2421 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2422 fi
2423
2424 if test "$wxUSE_PERMISSIVE" = yes; then
2425 echo "$ac_t""yes" 1>&6
2426 else
2427 echo "$ac_t""no" 1>&6
2428 fi
2429
2430
2431 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
f6bcfd97 2432echo "configure:2433: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2433 no_cache=0
2434 # Check whether --enable-no_deps or --disable-no_deps was given.
2435if test "${enable_no_deps+set}" = set; then
2436 enableval="$enable_no_deps"
2437
2438 if test "$enableval" = yes; then
2439 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2440 else
2441 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2442 fi
2443
2444else
2445
2446 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2447 if test "x$LINE" != x ; then
2448 eval "DEFAULT_$LINE"
2449 else
2450 no_cache=1
2451 fi
2452
2453 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2454
2455fi
2456
2457
2458 eval "$ac_cv_use_no_deps"
2459 if test "$no_cache" != 1; then
2460 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2461 fi
2462
2463 if test "$wxUSE_NO_DEPS" = yes; then
2464 echo "$ac_t""yes" 1>&6
2465 else
2466 echo "$ac_t""no" 1>&6
2467 fi
2468
2469
2470
2471
2472 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
f6bcfd97 2473echo "configure:2474: checking "for --enable-intl"" >&5
10f2d63a
VZ
2474 no_cache=0
2475 # Check whether --enable-intl or --disable-intl was given.
2476if test "${enable_intl+set}" = set; then
2477 enableval="$enable_intl"
2478
2479 if test "$enableval" = yes; then
2480 ac_cv_use_intl='wxUSE_INTL=yes'
2481 else
2482 ac_cv_use_intl='wxUSE_INTL=no'
2483 fi
2484
2485else
2486
2487 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2488 if test "x$LINE" != x ; then
2489 eval "DEFAULT_$LINE"
2490 else
2491 no_cache=1
2492 fi
2493
2494 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2495
2496fi
2497
2498
2499 eval "$ac_cv_use_intl"
2500 if test "$no_cache" != 1; then
2501 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2502 fi
2503
2504 if test "$wxUSE_INTL" = yes; then
2505 echo "$ac_t""yes" 1>&6
2506 else
2507 echo "$ac_t""no" 1>&6
2508 fi
2509
2510
2511 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
f6bcfd97 2512echo "configure:2513: checking "for --enable-config"" >&5
10f2d63a
VZ
2513 no_cache=0
2514 # Check whether --enable-config or --disable-config was given.
2515if test "${enable_config+set}" = set; then
2516 enableval="$enable_config"
2517
2518 if test "$enableval" = yes; then
2519 ac_cv_use_config='wxUSE_CONFIG=yes'
2520 else
2521 ac_cv_use_config='wxUSE_CONFIG=no'
2522 fi
2523
2524else
2525
2526 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2527 if test "x$LINE" != x ; then
2528 eval "DEFAULT_$LINE"
2529 else
2530 no_cache=1
2531 fi
2532
2533 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2534
2535fi
2536
2537
2538 eval "$ac_cv_use_config"
2539 if test "$no_cache" != 1; then
2540 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2541 fi
2542
2543 if test "$wxUSE_CONFIG" = yes; then
2544 echo "$ac_t""yes" 1>&6
2545 else
2546 echo "$ac_t""no" 1>&6
2547 fi
2548
2549
b12915c1 2550
10f2d63a 2551 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
f6bcfd97 2552echo "configure:2553: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2553 no_cache=0
2554 # Check whether --enable-sockets or --disable-sockets was given.
2555if test "${enable_sockets+set}" = set; then
2556 enableval="$enable_sockets"
2557
2558 if test "$enableval" = yes; then
2559 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2560 else
2561 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2562 fi
2563
2564else
2565
2566 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2567 if test "x$LINE" != x ; then
2568 eval "DEFAULT_$LINE"
2569 else
2570 no_cache=1
2571 fi
2572
2573 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2574
2575fi
2576
2577
2578 eval "$ac_cv_use_sockets"
2579 if test "$no_cache" != 1; then
2580 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2581 fi
2582
2583 if test "$wxUSE_SOCKETS" = yes; then
2584 echo "$ac_t""yes" 1>&6
2585 else
2586 echo "$ac_t""no" 1>&6
2587 fi
2588
b12915c1 2589
10f2d63a 2590
eb4efbdc 2591 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
f6bcfd97 2592echo "configure:2593: checking "for --enable-ipc"" >&5
10f2d63a 2593 no_cache=0
eb4efbdc
VZ
2594 # Check whether --enable-ipc or --disable-ipc was given.
2595if test "${enable_ipc+set}" = set; then
2596 enableval="$enable_ipc"
10f2d63a
VZ
2597
2598 if test "$enableval" = yes; then
eb4efbdc 2599 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2600 else
eb4efbdc 2601 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a
VZ
2602 fi
2603
2604else
2605
eb4efbdc 2606 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2607 if test "x$LINE" != x ; then
2608 eval "DEFAULT_$LINE"
2609 else
2610 no_cache=1
2611 fi
2612
eb4efbdc 2613 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a
VZ
2614
2615fi
2616
2617
eb4efbdc 2618 eval "$ac_cv_use_ipc"
10f2d63a 2619 if test "$no_cache" != 1; then
eb4efbdc 2620 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2621 fi
2622
eb4efbdc 2623 if test "$wxUSE_IPC" = yes; then
10f2d63a
VZ
2624 echo "$ac_t""yes" 1>&6
2625 else
2626 echo "$ac_t""no" 1>&6
2627 fi
2628
2629
eb4efbdc
VZ
2630
2631 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
f6bcfd97 2632echo "configure:2633: checking "for --enable-dialupman"" >&5
10f2d63a 2633 no_cache=0
eb4efbdc
VZ
2634 # Check whether --enable-dialupman or --disable-dialupman was given.
2635if test "${enable_dialupman+set}" = set; then
2636 enableval="$enable_dialupman"
10f2d63a
VZ
2637
2638 if test "$enableval" = yes; then
eb4efbdc 2639 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 2640 else
eb4efbdc 2641 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a
VZ
2642 fi
2643
2644else
2645
eb4efbdc 2646 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
2647 if test "x$LINE" != x ; then
2648 eval "DEFAULT_$LINE"
2649 else
2650 no_cache=1
2651 fi
2652
eb4efbdc 2653 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a
VZ
2654
2655fi
2656
2657
eb4efbdc 2658 eval "$ac_cv_use_dialupman"
10f2d63a 2659 if test "$no_cache" != 1; then
eb4efbdc 2660 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2661 fi
2662
eb4efbdc 2663 if test "$wxUSE_DIALUP_MANAGER" = yes; then
10f2d63a
VZ
2664 echo "$ac_t""yes" 1>&6
2665 else
2666 echo "$ac_t""no" 1>&6
2667 fi
2668
2669
2670 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
f6bcfd97 2671echo "configure:2672: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2672 no_cache=0
2673 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2674if test "${enable_apple_ieee+set}" = set; then
2675 enableval="$enable_apple_ieee"
2676
2677 if test "$enableval" = yes; then
2678 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2679 else
2680 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2681 fi
2682
2683else
2684
2685 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2686 if test "x$LINE" != x ; then
2687 eval "DEFAULT_$LINE"
2688 else
2689 no_cache=1
2690 fi
2691
2692 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2693
2694fi
2695
2696
2697 eval "$ac_cv_use_apple_ieee"
2698 if test "$no_cache" != 1; then
2699 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2700 fi
2701
2702 if test "$wxUSE_APPLE_IEEE" = yes; then
2703 echo "$ac_t""yes" 1>&6
2704 else
2705 echo "$ac_t""no" 1>&6
2706 fi
2707
2708
2709 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
f6bcfd97 2710echo "configure:2711: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2711 no_cache=0
2712 # Check whether --enable-timedate or --disable-timedate was given.
2713if test "${enable_timedate+set}" = set; then
2714 enableval="$enable_timedate"
2715
2716 if test "$enableval" = yes; then
2717 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2718 else
2719 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2720 fi
2721
2722else
2723
2724 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2725 if test "x$LINE" != x ; then
2726 eval "DEFAULT_$LINE"
2727 else
2728 no_cache=1
2729 fi
2730
2731 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2732
2733fi
2734
2735
2736 eval "$ac_cv_use_timedate"
2737 if test "$no_cache" != 1; then
2738 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2739 fi
2740
2741 if test "$wxUSE_TIMEDATE" = yes; then
2742 echo "$ac_t""yes" 1>&6
2743 else
2744 echo "$ac_t""no" 1>&6
2745 fi
2746
2747
2748 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
f6bcfd97 2749echo "configure:2750: checking "for --enable-wave"" >&5
10f2d63a
VZ
2750 no_cache=0
2751 # Check whether --enable-wave or --disable-wave was given.
2752if test "${enable_wave+set}" = set; then
2753 enableval="$enable_wave"
2754
2755 if test "$enableval" = yes; then
2756 ac_cv_use_wave='wxUSE_WAVE=yes'
2757 else
2758 ac_cv_use_wave='wxUSE_WAVE=no'
2759 fi
2760
2761else
2762
2763 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2764 if test "x$LINE" != x ; then
2765 eval "DEFAULT_$LINE"
2766 else
2767 no_cache=1
2768 fi
2769
2770 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2771
2772fi
2773
2774
2775 eval "$ac_cv_use_wave"
2776 if test "$no_cache" != 1; then
2777 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2778 fi
2779
2780 if test "$wxUSE_WAVE" = yes; then
2781 echo "$ac_t""yes" 1>&6
2782 else
2783 echo "$ac_t""no" 1>&6
2784 fi
2785
2786
2787 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
f6bcfd97 2788echo "configure:2789: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2789 no_cache=0
2790 # Check whether --enable-fraction or --disable-fraction was given.
2791if test "${enable_fraction+set}" = set; then
2792 enableval="$enable_fraction"
2793
2794 if test "$enableval" = yes; then
2795 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2796 else
2797 ac_cv_use_fraction='wxUSE_FRACTION=no'
2798 fi
2799
2800else
2801
2802 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2803 if test "x$LINE" != x ; then
2804 eval "DEFAULT_$LINE"
2805 else
2806 no_cache=1
2807 fi
2808
2809 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2810
2811fi
2812
2813
2814 eval "$ac_cv_use_fraction"
2815 if test "$no_cache" != 1; then
2816 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2817 fi
2818
2819 if test "$wxUSE_FRACTION" = yes; then
2820 echo "$ac_t""yes" 1>&6
2821 else
2822 echo "$ac_t""no" 1>&6
2823 fi
2824
2825
2826 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
f6bcfd97 2827echo "configure:2828: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2828 no_cache=0
2829 # Check whether --enable-dynlib or --disable-dynlib was given.
2830if test "${enable_dynlib+set}" = set; then
2831 enableval="$enable_dynlib"
2832
2833 if test "$enableval" = yes; then
2834 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2835 else
2836 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2837 fi
2838
2839else
2840
2841 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2842 if test "x$LINE" != x ; then
2843 eval "DEFAULT_$LINE"
2844 else
2845 no_cache=1
2846 fi
2847
2848 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2849
2850fi
2851
2852
2853 eval "$ac_cv_use_dynlib"
2854 if test "$no_cache" != 1; then
2855 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2856 fi
2857
2858 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2859 echo "$ac_t""yes" 1>&6
2860 else
2861 echo "$ac_t""no" 1>&6
2862 fi
2863
2864
2865 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
f6bcfd97 2866echo "configure:2867: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2867 no_cache=0
2868 # Check whether --enable-longlong or --disable-longlong was given.
2869if test "${enable_longlong+set}" = set; then
2870 enableval="$enable_longlong"
2871
2872 if test "$enableval" = yes; then
2873 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2874 else
2875 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2876 fi
2877
2878else
2879
2880 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2881 if test "x$LINE" != x ; then
2882 eval "DEFAULT_$LINE"
2883 else
2884 no_cache=1
2885 fi
2886
2887 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2888
2889fi
2890
2891
2892 eval "$ac_cv_use_longlong"
2893 if test "$no_cache" != 1; then
2894 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2895 fi
2896
2897 if test "$wxUSE_LONGLONG" = yes; then
2898 echo "$ac_t""yes" 1>&6
2899 else
2900 echo "$ac_t""no" 1>&6
2901 fi
2902
2903
2904 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
f6bcfd97 2905echo "configure:2906: checking "for --enable-log"" >&5
10f2d63a
VZ
2906 no_cache=0
2907 # Check whether --enable-log or --disable-log was given.
2908if test "${enable_log+set}" = set; then
2909 enableval="$enable_log"
2910
2911 if test "$enableval" = yes; then
2912 ac_cv_use_log='wxUSE_LOG=yes'
2913 else
2914 ac_cv_use_log='wxUSE_LOG=no'
2915 fi
2916
2917else
2918
2919 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2920 if test "x$LINE" != x ; then
2921 eval "DEFAULT_$LINE"
2922 else
2923 no_cache=1
2924 fi
2925
2926 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2927
2928fi
2929
2930
2931 eval "$ac_cv_use_log"
2932 if test "$no_cache" != 1; then
2933 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2934 fi
2935
2936 if test "$wxUSE_LOG" = yes; then
2937 echo "$ac_t""yes" 1>&6
2938 else
2939 echo "$ac_t""no" 1>&6
2940 fi
2941
2942
2943 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
f6bcfd97 2944echo "configure:2945: checking "for --enable-streams"" >&5
10f2d63a
VZ
2945 no_cache=0
2946 # Check whether --enable-streams or --disable-streams was given.
2947if test "${enable_streams+set}" = set; then
2948 enableval="$enable_streams"
2949
2950 if test "$enableval" = yes; then
2951 ac_cv_use_streams='wxUSE_STREAMS=yes'
2952 else
2953 ac_cv_use_streams='wxUSE_STREAMS=no'
2954 fi
2955
2956else
2957
2958 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2959 if test "x$LINE" != x ; then
2960 eval "DEFAULT_$LINE"
2961 else
2962 no_cache=1
2963 fi
2964
2965 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2966
2967fi
2968
2969
2970 eval "$ac_cv_use_streams"
2971 if test "$no_cache" != 1; then
2972 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2973 fi
2974
2975 if test "$wxUSE_STREAMS" = yes; then
2976 echo "$ac_t""yes" 1>&6
2977 else
2978 echo "$ac_t""no" 1>&6
2979 fi
2980
2981
2982 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
f6bcfd97 2983echo "configure:2984: checking "for --enable-file"" >&5
10f2d63a
VZ
2984 no_cache=0
2985 # Check whether --enable-file or --disable-file was given.
2986if test "${enable_file+set}" = set; then
2987 enableval="$enable_file"
2988
2989 if test "$enableval" = yes; then
2990 ac_cv_use_file='wxUSE_FILE=yes'
2991 else
2992 ac_cv_use_file='wxUSE_FILE=no'
2993 fi
2994
2995else
2996
2997 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2998 if test "x$LINE" != x ; then
2999 eval "DEFAULT_$LINE"
3000 else
3001 no_cache=1
3002 fi
3003
3004 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3005
3006fi
3007
3008
3009 eval "$ac_cv_use_file"
3010 if test "$no_cache" != 1; then
3011 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3012 fi
3013
3014 if test "$wxUSE_FILE" = yes; then
3015 echo "$ac_t""yes" 1>&6
3016 else
3017 echo "$ac_t""no" 1>&6
3018 fi
3019
3020
3021 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
f6bcfd97 3022echo "configure:3023: checking "for --enable-textfile"" >&5
10f2d63a
VZ
3023 no_cache=0
3024 # Check whether --enable-textfile or --disable-textfile was given.
3025if test "${enable_textfile+set}" = set; then
3026 enableval="$enable_textfile"
3027
3028 if test "$enableval" = yes; then
3029 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3030 else
3031 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3032 fi
3033
3034else
3035
3036 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3037 if test "x$LINE" != x ; then
3038 eval "DEFAULT_$LINE"
3039 else
3040 no_cache=1
3041 fi
3042
3043 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3044
3045fi
3046
3047
3048 eval "$ac_cv_use_textfile"
3049 if test "$no_cache" != 1; then
3050 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3051 fi
3052
3053 if test "$wxUSE_TEXTFILE" = yes; then
3054 echo "$ac_t""yes" 1>&6
3055 else
3056 echo "$ac_t""no" 1>&6
3057 fi
3058
3059
3060 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
f6bcfd97 3061echo "configure:3062: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3062 no_cache=0
3063 # Check whether --enable-unicode or --disable-unicode was given.
3064if test "${enable_unicode+set}" = set; then
3065 enableval="$enable_unicode"
3066
3067 if test "$enableval" = yes; then
3068 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3069 else
3070 ac_cv_use_unicode='wxUSE_UNICODE=no'
3071 fi
3072
3073else
3074
3075 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3076 if test "x$LINE" != x ; then
3077 eval "DEFAULT_$LINE"
3078 else
3079 no_cache=1
3080 fi
3081
3082 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3083
3084fi
3085
3086
3087 eval "$ac_cv_use_unicode"
3088 if test "$no_cache" != 1; then
3089 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3090 fi
3091
3092 if test "$wxUSE_UNICODE" = yes; then
3093 echo "$ac_t""yes" 1>&6
3094 else
3095 echo "$ac_t""no" 1>&6
3096 fi
3097
3098
3099 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
f6bcfd97 3100echo "configure:3101: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3101 no_cache=0
3102 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3103if test "${enable_wcsrtombs+set}" = set; then
3104 enableval="$enable_wcsrtombs"
3105
3106 if test "$enableval" = yes; then
3107 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3108 else
3109 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3110 fi
3111
3112else
3113
3114 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3115 if test "x$LINE" != x ; then
3116 eval "DEFAULT_$LINE"
3117 else
3118 no_cache=1
3119 fi
3120
3121 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3122
3123fi
3124
3125
3126 eval "$ac_cv_use_wcsrtombs"
3127 if test "$no_cache" != 1; then
3128 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3129 fi
3130
3131 if test "$wxUSE_WCSRTOMBS" = yes; then
3132 echo "$ac_t""yes" 1>&6
3133 else
3134 echo "$ac_t""no" 1>&6
3135 fi
3136
3137
3138 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
f6bcfd97 3139echo "configure:3140: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3140 no_cache=0
3141 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3142if test "${enable_wxprintfv+set}" = set; then
3143 enableval="$enable_wxprintfv"
3144
3145 if test "$enableval" = yes; then
3146 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3147 else
3148 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3149 fi
3150
3151else
3152
3153 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3154 if test "x$LINE" != x ; then
3155 eval "DEFAULT_$LINE"
3156 else
3157 no_cache=1
3158 fi
3159
3160 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3161
3162fi
3163
3164
3165 eval "$ac_cv_use_wxprintfv"
3166 if test "$no_cache" != 1; then
3167 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3168 fi
3169
3170 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3171 echo "$ac_t""yes" 1>&6
3172 else
3173 echo "$ac_t""no" 1>&6
3174 fi
3175
3176
10f2d63a 3177 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
f6bcfd97 3178echo "configure:3179: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3179 no_cache=0
3180 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3181if test "${enable_std_iostreams+set}" = set; then
3182 enableval="$enable_std_iostreams"
3183
3184 if test "$enableval" = yes; then
3185 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3186 else
3187 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3188 fi
3189
3190else
3191
3192 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3193 if test "x$LINE" != x ; then
3194 eval "DEFAULT_$LINE"
3195 else
3196 no_cache=1
3197 fi
3198
3199 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3200
3201fi
3202
3203
3204 eval "$ac_cv_use_std_iostreams"
3205 if test "$no_cache" != 1; then
3206 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3207 fi
3208
3209 if test "$wxUSE_STD_IOSTREAM" = yes; then
3210 echo "$ac_t""yes" 1>&6
3211 else
3212 echo "$ac_t""no" 1>&6
3213 fi
3214
3215
24528b0c 3216 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
f6bcfd97 3217echo "configure:3218: checking "for --enable-filesystem"" >&5
24528b0c
VS
3218 no_cache=0
3219 # Check whether --enable-filesystem or --disable-filesystem was given.
3220if test "${enable_filesystem+set}" = set; then
3221 enableval="$enable_filesystem"
3222
3223 if test "$enableval" = yes; then
3224 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3225 else
3226 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3227 fi
3228
3229else
3230
3231 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3232 if test "x$LINE" != x ; then
3233 eval "DEFAULT_$LINE"
3234 else
3235 no_cache=1
3236 fi
3237
3238 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3239
3240fi
3241
3242
3243 eval "$ac_cv_use_filesystem"
3244 if test "$no_cache" != 1; then
3245 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3246 fi
3247
3248 if test "$wxUSE_FILESYSTEM" = yes; then
3249 echo "$ac_t""yes" 1>&6
3250 else
3251 echo "$ac_t""no" 1>&6
3252 fi
3253
3254
10f2d63a 3255 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
f6bcfd97 3256echo "configure:3257: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3257 no_cache=0
3258 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3259if test "${enable_fs_inet+set}" = set; then
3260 enableval="$enable_fs_inet"
3261
3262 if test "$enableval" = yes; then
3263 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3264 else
3265 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3266 fi
3267
3268else
3269
3270 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3271 if test "x$LINE" != x ; then
3272 eval "DEFAULT_$LINE"
3273 else
3274 no_cache=1
3275 fi
3276
3277 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3278
3279fi
3280
3281
3282 eval "$ac_cv_use_fs_inet"
3283 if test "$no_cache" != 1; then
3284 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3285 fi
3286
3287 if test "$wxUSE_FS_INET" = yes; then
3288 echo "$ac_t""yes" 1>&6
3289 else
3290 echo "$ac_t""no" 1>&6
3291 fi
3292
3293
3294 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
f6bcfd97 3295echo "configure:3296: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3296 no_cache=0
3297 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3298if test "${enable_fs_zip+set}" = set; then
3299 enableval="$enable_fs_zip"
3300
3301 if test "$enableval" = yes; then
3302 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3303 else
3304 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3305 fi
3306
3307else
3308
3309 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3310 if test "x$LINE" != x ; then
3311 eval "DEFAULT_$LINE"
3312 else
3313 no_cache=1
3314 fi
3315
3316 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3317
3318fi
3319
3320
3321 eval "$ac_cv_use_fs_zip"
3322 if test "$no_cache" != 1; then
3323 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3324 fi
3325
3326 if test "$wxUSE_FS_ZIP" = yes; then
3327 echo "$ac_t""yes" 1>&6
3328 else
3329 echo "$ac_t""no" 1>&6
3330 fi
3331
3332
3333 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
f6bcfd97 3334echo "configure:3335: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3335 no_cache=0
3336 # Check whether --enable-zipstream or --disable-zipstream was given.
3337if test "${enable_zipstream+set}" = set; then
3338 enableval="$enable_zipstream"
3339
3340 if test "$enableval" = yes; then
3341 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3342 else
3343 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3344 fi
3345
3346else
3347
3348 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3349 if test "x$LINE" != x ; then
3350 eval "DEFAULT_$LINE"
3351 else
3352 no_cache=1
3353 fi
3354
3355 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3356
3357fi
3358
3359
3360 eval "$ac_cv_use_zipstream"
3361 if test "$no_cache" != 1; then
3362 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3363 fi
3364
3365 if test "$wxUSE_ZIPSTREAM" = yes; then
3366 echo "$ac_t""yes" 1>&6
3367 else
3368 echo "$ac_t""no" 1>&6
3369 fi
3370
3371
3372
eb4efbdc 3373 echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6
f6bcfd97 3374echo "configure:3375: checking "for --enable-catch_segvs"" >&5
eb4efbdc
VZ
3375 no_cache=0
3376 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3377if test "${enable_catch_segvs+set}" = set; then
3378 enableval="$enable_catch_segvs"
3379
3380 if test "$enableval" = yes; then
3381 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3382 else
3383 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3384 fi
3385
3386else
3387
3388 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3389 if test "x$LINE" != x ; then
3390 eval "DEFAULT_$LINE"
3391 else
3392 no_cache=1
3393 fi
3394
3395 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3396
3397fi
3398
3399
3400 eval "$ac_cv_use_catch_segvs"
3401 if test "$no_cache" != 1; then
3402 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3403 fi
3404
3405 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3406 echo "$ac_t""yes" 1>&6
3407 else
3408 echo "$ac_t""no" 1>&6
3409 fi
3410
3411
3412
10f2d63a
VZ
3413
3414 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
f6bcfd97 3415echo "configure:3416: checking "for --enable-threads"" >&5
10f2d63a
VZ
3416 no_cache=0
3417 # Check whether --enable-threads or --disable-threads was given.
3418if test "${enable_threads+set}" = set; then
3419 enableval="$enable_threads"
3420
3421 if test "$enableval" = yes; then
3422 ac_cv_use_threads='wxUSE_THREADS=yes'
3423 else
3424 ac_cv_use_threads='wxUSE_THREADS=no'
3425 fi
3426
3427else
3428
3429 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3430 if test "x$LINE" != x ; then
3431 eval "DEFAULT_$LINE"
3432 else
3433 no_cache=1
3434 fi
3435
3436 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3437
3438fi
3439
3440
3441 eval "$ac_cv_use_threads"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_THREADS" = yes; then
3447 echo "$ac_t""yes" 1>&6
3448 else
3449 echo "$ac_t""no" 1>&6
3450 fi
3451
3452
3453 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
f6bcfd97 3454echo "configure:3455: checking "for --enable-serial"" >&5
10f2d63a
VZ
3455 no_cache=0
3456 # Check whether --enable-serial or --disable-serial was given.
3457if test "${enable_serial+set}" = set; then
3458 enableval="$enable_serial"
3459
3460 if test "$enableval" = yes; then
3461 ac_cv_use_serial='wxUSE_SERIAL=yes'
3462 else
3463 ac_cv_use_serial='wxUSE_SERIAL=no'
3464 fi
3465
3466else
3467
3468 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3469 if test "x$LINE" != x ; then
3470 eval "DEFAULT_$LINE"
3471 else
3472 no_cache=1
3473 fi
3474
3475 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3476
3477fi
3478
3479
3480 eval "$ac_cv_use_serial"
3481 if test "$no_cache" != 1; then
3482 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3483 fi
3484
3485 if test "$wxUSE_SERIAL" = yes; then
3486 echo "$ac_t""yes" 1>&6
3487 else
3488 echo "$ac_t""no" 1>&6
3489 fi
3490
3491
b12915c1
VZ
3492if test "$wxUSE_GUI" = "yes"; then
3493
10f2d63a
VZ
3494
3495
3496 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
f6bcfd97 3497echo "configure:3498: checking "for --enable-docview"" >&5
10f2d63a
VZ
3498 no_cache=0
3499 # Check whether --enable-docview or --disable-docview was given.
3500if test "${enable_docview+set}" = set; then
3501 enableval="$enable_docview"
3502
3503 if test "$enableval" = yes; then
3504 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3505 else
3506 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3507 fi
3508
3509else
3510
3511 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3512 if test "x$LINE" != x ; then
3513 eval "DEFAULT_$LINE"
3514 else
3515 no_cache=1
3516 fi
3517
3518 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3519
3520fi
3521
3522
3523 eval "$ac_cv_use_docview"
3524 if test "$no_cache" != 1; then
3525 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3526 fi
3527
3528 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3529 echo "$ac_t""yes" 1>&6
3530 else
3531 echo "$ac_t""no" 1>&6
3532 fi
3533
3534
3535 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
f6bcfd97 3536echo "configure:3537: checking "for --enable-help"" >&5
10f2d63a
VZ
3537 no_cache=0
3538 # Check whether --enable-help or --disable-help was given.
3539if test "${enable_help+set}" = set; then
3540 enableval="$enable_help"
3541
3542 if test "$enableval" = yes; then
3543 ac_cv_use_help='wxUSE_HELP=yes'
3544 else
3545 ac_cv_use_help='wxUSE_HELP=no'
3546 fi
3547
3548else
3549
3550 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3551 if test "x$LINE" != x ; then
3552 eval "DEFAULT_$LINE"
3553 else
3554 no_cache=1
3555 fi
3556
3557 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3558
3559fi
3560
3561
3562 eval "$ac_cv_use_help"
3563 if test "$no_cache" != 1; then
3564 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3565 fi
3566
3567 if test "$wxUSE_HELP" = yes; then
3568 echo "$ac_t""yes" 1>&6
3569 else
3570 echo "$ac_t""no" 1>&6
3571 fi
3572
3573
3574 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
f6bcfd97 3575echo "configure:3576: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3576 no_cache=0
3577 # Check whether --enable-constraints or --disable-constraints was given.
3578if test "${enable_constraints+set}" = set; then
3579 enableval="$enable_constraints"
3580
3581 if test "$enableval" = yes; then
3582 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3583 else
3584 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3585 fi
3586
3587else
3588
3589 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3590 if test "x$LINE" != x ; then
3591 eval "DEFAULT_$LINE"
3592 else
3593 no_cache=1
3594 fi
3595
3596 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3597
3598fi
3599
3600
3601 eval "$ac_cv_use_constraints"
3602 if test "$no_cache" != 1; then
3603 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3604 fi
3605
3606 if test "$wxUSE_CONSTRAINTS" = yes; then
3607 echo "$ac_t""yes" 1>&6
3608 else
3609 echo "$ac_t""no" 1>&6
3610 fi
3611
3612
3613 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
f6bcfd97 3614echo "configure:3615: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3615 no_cache=0
3616 # Check whether --enable-printarch or --disable-printarch was given.
3617if test "${enable_printarch+set}" = set; then
3618 enableval="$enable_printarch"
3619
3620 if test "$enableval" = yes; then
3621 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3622 else
3623 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3624 fi
3625
3626else
3627
3628 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3629 if test "x$LINE" != x ; then
3630 eval "DEFAULT_$LINE"
3631 else
3632 no_cache=1
3633 fi
3634
3635 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3636
3637fi
3638
3639
3640 eval "$ac_cv_use_printarch"
3641 if test "$no_cache" != 1; then
3642 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3643 fi
3644
3645 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3646 echo "$ac_t""yes" 1>&6
3647 else
3648 echo "$ac_t""no" 1>&6
3649 fi
3650
3651
3652 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
f6bcfd97 3653echo "configure:3654: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3654 no_cache=0
3655 # Check whether --enable-mdi or --disable-mdi was given.
3656if test "${enable_mdi+set}" = set; then
3657 enableval="$enable_mdi"
3658
3659 if test "$enableval" = yes; then
3660 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3661 else
3662 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3663 fi
3664
3665else
3666
3667 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3668 if test "x$LINE" != x ; then
3669 eval "DEFAULT_$LINE"
3670 else
3671 no_cache=1
3672 fi
3673
3674 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3675
3676fi
3677
3678
3679 eval "$ac_cv_use_mdi"
3680 if test "$no_cache" != 1; then
3681 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3682 fi
3683
3684 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3685 echo "$ac_t""yes" 1>&6
3686 else
3687 echo "$ac_t""no" 1>&6
3688 fi
3689
3690
3691
3692 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
f6bcfd97 3693echo "configure:3694: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3694 no_cache=0
3695 # Check whether --enable-postscript or --disable-postscript was given.
3696if test "${enable_postscript+set}" = set; then
3697 enableval="$enable_postscript"
3698
3699 if test "$enableval" = yes; then
3700 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3701 else
3702 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3703 fi
3704
3705else
3706
3707 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3708 if test "x$LINE" != x ; then
3709 eval "DEFAULT_$LINE"
3710 else
3711 no_cache=1
3712 fi
3713
3714 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3715
3716fi
3717
3718
3719 eval "$ac_cv_use_postscript"
3720 if test "$no_cache" != 1; then
3721 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3722 fi
3723
3724 if test "$wxUSE_POSTSCRIPT" = yes; then
3725 echo "$ac_t""yes" 1>&6
3726 else
3727 echo "$ac_t""no" 1>&6
3728 fi
3729
3730
3731
3732
3733 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
f6bcfd97 3734echo "configure:3735: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3735 no_cache=0
3736 # Check whether --enable-prologio or --disable-prologio was given.
3737if test "${enable_prologio+set}" = set; then
3738 enableval="$enable_prologio"
3739
3740 if test "$enableval" = yes; then
3741 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3742 else
3743 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3744 fi
3745
3746else
3747
3748 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3749 if test "x$LINE" != x ; then
3750 eval "DEFAULT_$LINE"
3751 else
3752 no_cache=1
3753 fi
3754
3755 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3756
3757fi
3758
3759
3760 eval "$ac_cv_use_prologio"
3761 if test "$no_cache" != 1; then
3762 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3763 fi
3764
3765 if test "$wxUSE_PROLOGIO" = yes; then
3766 echo "$ac_t""yes" 1>&6
3767 else
3768 echo "$ac_t""no" 1>&6
3769 fi
3770
3771
3772 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
f6bcfd97 3773echo "configure:3774: checking "for --enable-resources"" >&5
10f2d63a
VZ
3774 no_cache=0
3775 # Check whether --enable-resources or --disable-resources was given.
3776if test "${enable_resources+set}" = set; then
3777 enableval="$enable_resources"
3778
3779 if test "$enableval" = yes; then
3780 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3781 else
3782 ac_cv_use_resources='wxUSE_RESOURCES=no'
3783 fi
3784
3785else
3786
3787 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3788 if test "x$LINE" != x ; then
3789 eval "DEFAULT_$LINE"
3790 else
3791 no_cache=1
3792 fi
3793
3794 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3795
3796fi
3797
3798
3799 eval "$ac_cv_use_resources"
3800 if test "$no_cache" != 1; then
3801 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3802 fi
3803
3804 if test "$wxUSE_RESOURCES" = yes; then
3805 echo "$ac_t""yes" 1>&6
3806 else
3807 echo "$ac_t""no" 1>&6
3808 fi
3809
3810
3811
3812 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
f6bcfd97 3813echo "configure:3814: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3814 no_cache=0
3815 # Check whether --enable-xresources or --disable-xresources was given.
3816if test "${enable_xresources+set}" = set; then
3817 enableval="$enable_xresources"
3818
3819 if test "$enableval" = yes; then
3820 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3821 else
3822 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3823 fi
3824
3825else
3826
3827 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3828 if test "x$LINE" != x ; then
3829 eval "DEFAULT_$LINE"
3830 else
3831 no_cache=1
3832 fi
3833
3834 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3835
3836fi
3837
3838
3839 eval "$ac_cv_use_xresources"
3840 if test "$no_cache" != 1; then
3841 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3842 fi
3843
3844 if test "$wxUSE_X_RESOURCES" = yes; then
3845 echo "$ac_t""yes" 1>&6
3846 else
3847 echo "$ac_t""no" 1>&6
3848 fi
3849
3850
3851
3852
3853 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
f6bcfd97 3854echo "configure:3855: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3855 no_cache=0
3856 # Check whether --enable-clipboard or --disable-clipboard was given.
3857if test "${enable_clipboard+set}" = set; then
3858 enableval="$enable_clipboard"
3859
3860 if test "$enableval" = yes; then
3861 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3862 else
3863 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3864 fi
3865
3866else
3867
3868 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3869 if test "x$LINE" != x ; then
3870 eval "DEFAULT_$LINE"
3871 else
3872 no_cache=1
3873 fi
3874
3875 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3876
3877fi
3878
3879
3880 eval "$ac_cv_use_clipboard"
3881 if test "$no_cache" != 1; then
3882 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3883 fi
3884
3885 if test "$wxUSE_CLIPBOARD" = yes; then
3886 echo "$ac_t""yes" 1>&6
3887 else
3888 echo "$ac_t""no" 1>&6
3889 fi
3890
3891
3892 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
f6bcfd97 3893echo "configure:3894: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3894 no_cache=0
3895 # Check whether --enable-dnd or --disable-dnd was given.
3896if test "${enable_dnd+set}" = set; then
3897 enableval="$enable_dnd"
3898
3899 if test "$enableval" = yes; then
3900 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3901 else
3902 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3903 fi
3904
3905else
3906
3907 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3908 if test "x$LINE" != x ; then
3909 eval "DEFAULT_$LINE"
3910 else
3911 no_cache=1
3912 fi
3913
3914 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3915
3916fi
3917
3918
3919 eval "$ac_cv_use_dnd"
3920 if test "$no_cache" != 1; then
3921 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3922 fi
3923
3924 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3925 echo "$ac_t""yes" 1>&6
3926 else
3927 echo "$ac_t""no" 1>&6
3928 fi
3929
3930
3931
3932 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
f6bcfd97 3933echo "configure:3934: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3934 no_cache=0
3935 # Check whether --enable-wxtree or --disable-wxtree was given.
3936if test "${enable_wxtree+set}" = set; then
3937 enableval="$enable_wxtree"
3938
3939 if test "$enableval" = yes; then
3940 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3941 else
3942 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3943 fi
3944
3945else
3946
3947 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3948 if test "x$LINE" != x ; then
3949 eval "DEFAULT_$LINE"
3950 else
3951 no_cache=1
3952 fi
3953
3954 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3955
3956fi
3957
3958
3959 eval "$ac_cv_use_wxtree"
3960 if test "$no_cache" != 1; then
3961 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3962 fi
3963
3964 if test "$wxUSE_WXTREE" = yes; then
3965 echo "$ac_t""yes" 1>&6
3966 else
3967 echo "$ac_t""no" 1>&6
3968 fi
3969
3970
3971
3972
3973 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
f6bcfd97 3974echo "configure:3975: checking "for --enable-controls"" >&5
10f2d63a
VZ
3975 no_cache=0
3976 # Check whether --enable-controls or --disable-controls was given.
3977if test "${enable_controls+set}" = set; then
3978 enableval="$enable_controls"
3979
3980 if test "$enableval" = yes; then
3981 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3982 else
3983 ac_cv_use_controls='wxUSE_CONTROLS=no'
3984 fi
3985
3986else
3987
3988 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3989 if test "x$LINE" != x ; then
3990 eval "DEFAULT_$LINE"
3991 else
3992 no_cache=1
3993 fi
3994
3995 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3996
3997fi
3998
3999
4000 eval "$ac_cv_use_controls"
4001 if test "$no_cache" != 1; then
4002 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4003 fi
4004
4005 if test "$wxUSE_CONTROLS" = yes; then
4006 echo "$ac_t""yes" 1>&6
4007 else
4008 echo "$ac_t""no" 1>&6
4009 fi
4010
4011
4012if test "$wxUSE_CONTROLS" = "yes"; then
4013 DEFAULT_wxUSE_ACCEL=yes
4014 DEFAULT_wxUSE_CARET=yes
4015 DEFAULT_wxUSE_COMBOBOX=yes
4016 DEFAULT_wxUSE_BMPBUTTON=yes
4017 DEFAULT_wxUSE_CHECKBOX=yes
4018 DEFAULT_wxUSE_CHECKLISTBOX=yes
4019 DEFAULT_wxUSE_CHOICE=yes
4020 DEFAULT_wxUSE_GAUGE=yes
4021 DEFAULT_wxUSE_GRID=yes
cc977e5f 4022 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4023 DEFAULT_wxUSE_IMAGLIST=yes
4024 DEFAULT_wxUSE_LISTBOX=yes
4025 DEFAULT_wxUSE_LISTCTRL=yes
4026 DEFAULT_wxUSE_NOTEBOOK=yes
4027 DEFAULT_wxUSE_RADIOBOX=yes
4028 DEFAULT_wxUSE_RADIOBTN=yes
4029 DEFAULT_wxUSE_SASH=yes
4030 DEFAULT_wxUSE_SCROLLBAR=yes
4031 DEFAULT_wxUSE_SLIDER=yes
4032 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4033 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4034 DEFAULT_wxUSE_SPLITTER=yes
4035 DEFAULT_wxUSE_STATBMP=yes
4036 DEFAULT_wxUSE_STATBOX=yes
4037 DEFAULT_wxUSE_STATLINE=yes
4038 DEFAULT_wxUSE_STATUSBAR=yes
4039 DEFAULT_wxUSE_TAB_DIALOG=yes
4040 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4041 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4042 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4043 DEFAULT_wxUSE_TOOLTIPS=yes
4044 DEFAULT_wxUSE_TREECTRL=yes
4045elif test "$wxUSE_CONTROLS" = "no"; then
4046 DEFAULT_wxUSE_ACCEL=no
4047 DEFAULT_wxUSE_CARET=no
4048 DEFAULT_wxUSE_COMBOBOX=no
4049 DEFAULT_wxUSE_BMPBUTTON=no
4050 DEFAULT_wxUSE_CHECKBOX=no
4051 DEFAULT_wxUSE_CHECKLISTBOX=no
4052 DEFAULT_wxUSE_CHOICE=no
4053 DEFAULT_wxUSE_GAUGE=no
4054 DEFAULT_wxUSE_GRID=no
4055 DEFAULT_wxUSE_NEW_GRID=no
4056 DEFAULT_wxUSE_IMAGLIST=no
4057 DEFAULT_wxUSE_LISTBOX=no
4058 DEFAULT_wxUSE_LISTCTRL=no
4059 DEFAULT_wxUSE_NOTEBOOK=no
4060 DEFAULT_wxUSE_RADIOBOX=no
4061 DEFAULT_wxUSE_RADIOBTN=no
4062 DEFAULT_wxUSE_SASH=no
4063 DEFAULT_wxUSE_SCROLLBAR=no
4064 DEFAULT_wxUSE_SLIDER=no
4065 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4066 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4067 DEFAULT_wxUSE_SPLITTER=no
4068 DEFAULT_wxUSE_STATBMP=no
4069 DEFAULT_wxUSE_STATBOX=no
4070 DEFAULT_wxUSE_STATLINE=no
4071 DEFAULT_wxUSE_STATUSBAR=no
4072 DEFAULT_wxUSE_TAB_DIALOG=no
4073 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4074 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4075 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4076 DEFAULT_wxUSE_TOOLTIPS=no
4077 DEFAULT_wxUSE_TREECTRL=no
4078fi
4079
4080
4081 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
f6bcfd97 4082echo "configure:4083: checking "for --enable-accel"" >&5
10f2d63a
VZ
4083 no_cache=0
4084 # Check whether --enable-accel or --disable-accel was given.
4085if test "${enable_accel+set}" = set; then
4086 enableval="$enable_accel"
4087
4088 if test "$enableval" = yes; then
4089 ac_cv_use_accel='wxUSE_ACCEL=yes'
4090 else
4091 ac_cv_use_accel='wxUSE_ACCEL=no'
4092 fi
4093
4094else
4095
4096 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4097 if test "x$LINE" != x ; then
4098 eval "DEFAULT_$LINE"
4099 else
4100 no_cache=1
4101 fi
4102
4103 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4104
4105fi
4106
4107
4108 eval "$ac_cv_use_accel"
4109 if test "$no_cache" != 1; then
4110 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4111 fi
4112
4113 if test "$wxUSE_ACCEL" = yes; then
4114 echo "$ac_t""yes" 1>&6
4115 else
4116 echo "$ac_t""no" 1>&6
4117 fi
4118
4119
4120 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
f6bcfd97 4121echo "configure:4122: checking "for --enable-caret"" >&5
10f2d63a
VZ
4122 no_cache=0
4123 # Check whether --enable-caret or --disable-caret was given.
4124if test "${enable_caret+set}" = set; then
4125 enableval="$enable_caret"
4126
4127 if test "$enableval" = yes; then
4128 ac_cv_use_caret='wxUSE_CARET=yes'
4129 else
4130 ac_cv_use_caret='wxUSE_CARET=no'
4131 fi
4132
4133else
4134
4135 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4136 if test "x$LINE" != x ; then
4137 eval "DEFAULT_$LINE"
4138 else
4139 no_cache=1
4140 fi
4141
4142 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4143
4144fi
4145
4146
4147 eval "$ac_cv_use_caret"
4148 if test "$no_cache" != 1; then
4149 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4150 fi
4151
4152 if test "$wxUSE_CARET" = yes; then
4153 echo "$ac_t""yes" 1>&6
4154 else
4155 echo "$ac_t""no" 1>&6
4156 fi
4157
4158
4159 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
f6bcfd97 4160echo "configure:4161: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4161 no_cache=0
4162 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4163if test "${enable_bmpbutton+set}" = set; then
4164 enableval="$enable_bmpbutton"
4165
4166 if test "$enableval" = yes; then
4167 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4168 else
4169 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4170 fi
4171
4172else
4173
4174 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4175 if test "x$LINE" != x ; then
4176 eval "DEFAULT_$LINE"
4177 else
4178 no_cache=1
4179 fi
4180
4181 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4182
4183fi
4184
4185
4186 eval "$ac_cv_use_bmpbutton"
4187 if test "$no_cache" != 1; then
4188 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4189 fi
4190
4191 if test "$wxUSE_BMPBUTTON" = yes; then
4192 echo "$ac_t""yes" 1>&6
4193 else
4194 echo "$ac_t""no" 1>&6
4195 fi
4196
4197
4198 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
f6bcfd97 4199echo "configure:4200: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4200 no_cache=0
4201 # Check whether --enable-checkbox or --disable-checkbox was given.
4202if test "${enable_checkbox+set}" = set; then
4203 enableval="$enable_checkbox"
4204
4205 if test "$enableval" = yes; then
4206 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4207 else
4208 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4209 fi
4210
4211else
4212
4213 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4214 if test "x$LINE" != x ; then
4215 eval "DEFAULT_$LINE"
4216 else
4217 no_cache=1
4218 fi
4219
4220 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4221
4222fi
4223
4224
4225 eval "$ac_cv_use_checkbox"
4226 if test "$no_cache" != 1; then
4227 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4228 fi
4229
4230 if test "$wxUSE_CHECKBOX" = yes; then
4231 echo "$ac_t""yes" 1>&6
4232 else
4233 echo "$ac_t""no" 1>&6
4234 fi
4235
4236
4237 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
f6bcfd97 4238echo "configure:4239: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4239 no_cache=0
4240 # Check whether --enable-checklst or --disable-checklst was given.
4241if test "${enable_checklst+set}" = set; then
4242 enableval="$enable_checklst"
4243
4244 if test "$enableval" = yes; then
4245 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4246 else
4247 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4248 fi
4249
4250else
4251
4252 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4253 if test "x$LINE" != x ; then
4254 eval "DEFAULT_$LINE"
4255 else
4256 no_cache=1
4257 fi
4258
4259 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4260
4261fi
4262
4263
4264 eval "$ac_cv_use_checklst"
4265 if test "$no_cache" != 1; then
4266 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4267 fi
4268
4269 if test "$wxUSE_CHECKLST" = yes; then
4270 echo "$ac_t""yes" 1>&6
4271 else
4272 echo "$ac_t""no" 1>&6
4273 fi
4274
4275
4276 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
f6bcfd97 4277echo "configure:4278: checking "for --enable-choice"" >&5
10f2d63a
VZ
4278 no_cache=0
4279 # Check whether --enable-choice or --disable-choice was given.
4280if test "${enable_choice+set}" = set; then
4281 enableval="$enable_choice"
4282
4283 if test "$enableval" = yes; then
4284 ac_cv_use_choice='wxUSE_CHOICE=yes'
4285 else
4286 ac_cv_use_choice='wxUSE_CHOICE=no'
4287 fi
4288
4289else
4290
4291 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4292 if test "x$LINE" != x ; then
4293 eval "DEFAULT_$LINE"
4294 else
4295 no_cache=1
4296 fi
4297
4298 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4299
4300fi
4301
4302
4303 eval "$ac_cv_use_choice"
4304 if test "$no_cache" != 1; then
4305 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4306 fi
4307
4308 if test "$wxUSE_CHOICE" = yes; then
4309 echo "$ac_t""yes" 1>&6
4310 else
4311 echo "$ac_t""no" 1>&6
4312 fi
4313
4314
4315 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
f6bcfd97 4316echo "configure:4317: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4317 no_cache=0
4318 # Check whether --enable-combobox or --disable-combobox was given.
4319if test "${enable_combobox+set}" = set; then
4320 enableval="$enable_combobox"
4321
4322 if test "$enableval" = yes; then
4323 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4324 else
4325 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4326 fi
4327
4328else
4329
4330 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4331 if test "x$LINE" != x ; then
4332 eval "DEFAULT_$LINE"
4333 else
4334 no_cache=1
4335 fi
4336
4337 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4338
4339fi
4340
4341
4342 eval "$ac_cv_use_combobox"
4343 if test "$no_cache" != 1; then
4344 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4345 fi
4346
4347 if test "$wxUSE_COMBOBOX" = yes; then
4348 echo "$ac_t""yes" 1>&6
4349 else
4350 echo "$ac_t""no" 1>&6
4351 fi
4352
4353
4354 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
f6bcfd97 4355echo "configure:4356: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4356 no_cache=0
4357 # Check whether --enable-gauge or --disable-gauge was given.
4358if test "${enable_gauge+set}" = set; then
4359 enableval="$enable_gauge"
4360
4361 if test "$enableval" = yes; then
4362 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4363 else
4364 ac_cv_use_gauge='wxUSE_GAUGE=no'
4365 fi
4366
4367else
4368
4369 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4370 if test "x$LINE" != x ; then
4371 eval "DEFAULT_$LINE"
4372 else
4373 no_cache=1
4374 fi
4375
4376 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4377
4378fi
4379
4380
4381 eval "$ac_cv_use_gauge"
4382 if test "$no_cache" != 1; then
4383 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4384 fi
4385
4386 if test "$wxUSE_GAUGE" = yes; then
4387 echo "$ac_t""yes" 1>&6
4388 else
4389 echo "$ac_t""no" 1>&6
4390 fi
4391
4392
4393 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
f6bcfd97 4394echo "configure:4395: checking "for --enable-grid"" >&5
10f2d63a
VZ
4395 no_cache=0
4396 # Check whether --enable-grid or --disable-grid was given.
4397if test "${enable_grid+set}" = set; then
4398 enableval="$enable_grid"
4399
4400 if test "$enableval" = yes; then
4401 ac_cv_use_grid='wxUSE_GRID=yes'
4402 else
4403 ac_cv_use_grid='wxUSE_GRID=no'
4404 fi
4405
4406else
4407
4408 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4409 if test "x$LINE" != x ; then
4410 eval "DEFAULT_$LINE"
4411 else
4412 no_cache=1
4413 fi
4414
4415 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4416
4417fi
4418
4419
4420 eval "$ac_cv_use_grid"
4421 if test "$no_cache" != 1; then
4422 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4423 fi
4424
4425 if test "$wxUSE_GRID" = yes; then
4426 echo "$ac_t""yes" 1>&6
4427 else
4428 echo "$ac_t""no" 1>&6
4429 fi
4430
4431
4432 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
f6bcfd97 4433echo "configure:4434: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4434 no_cache=0
4435 # Check whether --enable-newgrid or --disable-newgrid was given.
4436if test "${enable_newgrid+set}" = set; then
4437 enableval="$enable_newgrid"
4438
4439 if test "$enableval" = yes; then
4440 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4441 else
4442 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4443 fi
4444
4445else
4446
4447 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4448 if test "x$LINE" != x ; then
4449 eval "DEFAULT_$LINE"
4450 else
4451 no_cache=1
4452 fi
4453
4454 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4455
4456fi
4457
4458
4459 eval "$ac_cv_use_newgrid"
4460 if test "$no_cache" != 1; then
4461 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4462 fi
4463
4464 if test "$wxUSE_NEW_GRID" = yes; then
4465 echo "$ac_t""yes" 1>&6
4466 else
4467 echo "$ac_t""no" 1>&6
4468 fi
4469
4470
4471 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
f6bcfd97 4472echo "configure:4473: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4473 no_cache=0
4474 # Check whether --enable-imaglist or --disable-imaglist was given.
4475if test "${enable_imaglist+set}" = set; then
4476 enableval="$enable_imaglist"
4477
4478 if test "$enableval" = yes; then
4479 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4480 else
4481 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4482 fi
4483
4484else
4485
4486 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4487 if test "x$LINE" != x ; then
4488 eval "DEFAULT_$LINE"
4489 else
4490 no_cache=1
4491 fi
4492
4493 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4494
4495fi
4496
4497
4498 eval "$ac_cv_use_imaglist"
4499 if test "$no_cache" != 1; then
4500 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4501 fi
4502
4503 if test "$wxUSE_IMAGLIST" = yes; then
4504 echo "$ac_t""yes" 1>&6
4505 else
4506 echo "$ac_t""no" 1>&6
4507 fi
4508
4509
4510 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
f6bcfd97 4511echo "configure:4512: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4512 no_cache=0
4513 # Check whether --enable-listbox or --disable-listbox was given.
4514if test "${enable_listbox+set}" = set; then
4515 enableval="$enable_listbox"
4516
4517 if test "$enableval" = yes; then
4518 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4519 else
4520 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4521 fi
4522
4523else
4524
4525 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4526 if test "x$LINE" != x ; then
4527 eval "DEFAULT_$LINE"
4528 else
4529 no_cache=1
4530 fi
4531
4532 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4533
4534fi
4535
4536
4537 eval "$ac_cv_use_listbox"
4538 if test "$no_cache" != 1; then
4539 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4540 fi
4541
4542 if test "$wxUSE_LISTBOX" = yes; then
4543 echo "$ac_t""yes" 1>&6
4544 else
4545 echo "$ac_t""no" 1>&6
4546 fi
4547
4548
4549 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
f6bcfd97 4550echo "configure:4551: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4551 no_cache=0
4552 # Check whether --enable-listctrl or --disable-listctrl was given.
4553if test "${enable_listctrl+set}" = set; then
4554 enableval="$enable_listctrl"
4555
4556 if test "$enableval" = yes; then
4557 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4558 else
4559 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4560 fi
4561
4562else
4563
4564 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4565 if test "x$LINE" != x ; then
4566 eval "DEFAULT_$LINE"
4567 else
4568 no_cache=1
4569 fi
4570
4571 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4572
4573fi
4574
4575
4576 eval "$ac_cv_use_listctrl"
4577 if test "$no_cache" != 1; then
4578 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4579 fi
4580
4581 if test "$wxUSE_LISTCTRL" = yes; then
4582 echo "$ac_t""yes" 1>&6
4583 else
4584 echo "$ac_t""no" 1>&6
4585 fi
4586
4587
4588 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
f6bcfd97 4589echo "configure:4590: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4590 no_cache=0
4591 # Check whether --enable-notebook or --disable-notebook was given.
4592if test "${enable_notebook+set}" = set; then
4593 enableval="$enable_notebook"
4594
4595 if test "$enableval" = yes; then
4596 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4597 else
4598 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4599 fi
4600
4601else
4602
4603 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4604 if test "x$LINE" != x ; then
4605 eval "DEFAULT_$LINE"
4606 else
4607 no_cache=1
4608 fi
4609
4610 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4611
4612fi
4613
4614
4615 eval "$ac_cv_use_notebook"
4616 if test "$no_cache" != 1; then
4617 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4618 fi
4619
4620 if test "$wxUSE_NOTEBOOK" = yes; then
4621 echo "$ac_t""yes" 1>&6
4622 else
4623 echo "$ac_t""no" 1>&6
4624 fi
4625
4626
4627 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
f6bcfd97 4628echo "configure:4629: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4629 no_cache=0
4630 # Check whether --enable-radiobox or --disable-radiobox was given.
4631if test "${enable_radiobox+set}" = set; then
4632 enableval="$enable_radiobox"
4633
4634 if test "$enableval" = yes; then
4635 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4636 else
4637 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4638 fi
4639
4640else
4641
4642 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4643 if test "x$LINE" != x ; then
4644 eval "DEFAULT_$LINE"
4645 else
4646 no_cache=1
4647 fi
4648
4649 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4650
4651fi
4652
4653
4654 eval "$ac_cv_use_radiobox"
4655 if test "$no_cache" != 1; then
4656 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4657 fi
4658
4659 if test "$wxUSE_RADIOBOX" = yes; then
4660 echo "$ac_t""yes" 1>&6
4661 else
4662 echo "$ac_t""no" 1>&6
4663 fi
4664
4665
4666 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
f6bcfd97 4667echo "configure:4668: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4668 no_cache=0
4669 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4670if test "${enable_radiobtn+set}" = set; then
4671 enableval="$enable_radiobtn"
4672
4673 if test "$enableval" = yes; then
4674 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4675 else
4676 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4677 fi
4678
4679else
4680
4681 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4682 if test "x$LINE" != x ; then
4683 eval "DEFAULT_$LINE"
4684 else
4685 no_cache=1
4686 fi
4687
4688 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4689
4690fi
4691
4692
4693 eval "$ac_cv_use_radiobtn"
4694 if test "$no_cache" != 1; then
4695 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4696 fi
4697
4698 if test "$wxUSE_RADIOBTN" = yes; then
4699 echo "$ac_t""yes" 1>&6
4700 else
4701 echo "$ac_t""no" 1>&6
4702 fi
4703
4704
4705 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
f6bcfd97 4706echo "configure:4707: checking "for --enable-sash"" >&5
10f2d63a
VZ
4707 no_cache=0
4708 # Check whether --enable-sash or --disable-sash was given.
4709if test "${enable_sash+set}" = set; then
4710 enableval="$enable_sash"
4711
4712 if test "$enableval" = yes; then
4713 ac_cv_use_sash='wxUSE_SASH=yes'
4714 else
4715 ac_cv_use_sash='wxUSE_SASH=no'
4716 fi
4717
4718else
4719
4720 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4721 if test "x$LINE" != x ; then
4722 eval "DEFAULT_$LINE"
4723 else
4724 no_cache=1
4725 fi
4726
4727 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4728
4729fi
4730
4731
4732 eval "$ac_cv_use_sash"
4733 if test "$no_cache" != 1; then
4734 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4735 fi
4736
4737 if test "$wxUSE_SASH" = yes; then
4738 echo "$ac_t""yes" 1>&6
4739 else
4740 echo "$ac_t""no" 1>&6
4741 fi
4742
4743
4744 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
f6bcfd97 4745echo "configure:4746: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4746 no_cache=0
4747 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4748if test "${enable_scrollbar+set}" = set; then
4749 enableval="$enable_scrollbar"
4750
4751 if test "$enableval" = yes; then
4752 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4753 else
4754 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4755 fi
4756
4757else
4758
4759 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4760 if test "x$LINE" != x ; then
4761 eval "DEFAULT_$LINE"
4762 else
4763 no_cache=1
4764 fi
4765
4766 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4767
4768fi
4769
4770
4771 eval "$ac_cv_use_scrollbar"
4772 if test "$no_cache" != 1; then
4773 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4774 fi
4775
4776 if test "$wxUSE_SCROLLBAR" = yes; then
4777 echo "$ac_t""yes" 1>&6
4778 else
4779 echo "$ac_t""no" 1>&6
4780 fi
4781
4782
4783 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
f6bcfd97 4784echo "configure:4785: checking "for --enable-slider"" >&5
10f2d63a
VZ
4785 no_cache=0
4786 # Check whether --enable-slider or --disable-slider was given.
4787if test "${enable_slider+set}" = set; then
4788 enableval="$enable_slider"
4789
4790 if test "$enableval" = yes; then
4791 ac_cv_use_slider='wxUSE_SLIDER=yes'
4792 else
4793 ac_cv_use_slider='wxUSE_SLIDER=no'
4794 fi
4795
4796else
4797
4798 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4799 if test "x$LINE" != x ; then
4800 eval "DEFAULT_$LINE"
4801 else
4802 no_cache=1
4803 fi
4804
4805 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4806
4807fi
4808
4809
4810 eval "$ac_cv_use_slider"
4811 if test "$no_cache" != 1; then
4812 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4813 fi
4814
4815 if test "$wxUSE_SLIDER" = yes; then
4816 echo "$ac_t""yes" 1>&6
4817 else
4818 echo "$ac_t""no" 1>&6
4819 fi
4820
4821
4822 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
f6bcfd97 4823echo "configure:4824: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4824 no_cache=0
4825 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4826if test "${enable_spinbtn+set}" = set; then
4827 enableval="$enable_spinbtn"
4828
4829 if test "$enableval" = yes; then
4830 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4831 else
4832 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4833 fi
4834
4835else
4836
4837 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4838 if test "x$LINE" != x ; then
4839 eval "DEFAULT_$LINE"
4840 else
4841 no_cache=1
4842 fi
4843
4844 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4845
4846fi
4847
4848
4849 eval "$ac_cv_use_spinbtn"
4850 if test "$no_cache" != 1; then
4851 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4852 fi
4853
4854 if test "$wxUSE_SPINBTN" = yes; then
4855 echo "$ac_t""yes" 1>&6
4856 else
4857 echo "$ac_t""no" 1>&6
4858 fi
4859
4860
56cfaa52 4861 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
f6bcfd97 4862echo "configure:4863: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4863 no_cache=0
4864 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4865if test "${enable_spinctrl+set}" = set; then
4866 enableval="$enable_spinctrl"
4867
4868 if test "$enableval" = yes; then
4869 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4870 else
4871 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4872 fi
4873
4874else
4875
4876 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4877 if test "x$LINE" != x ; then
4878 eval "DEFAULT_$LINE"
4879 else
4880 no_cache=1
4881 fi
4882
4883 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4884
4885fi
4886
4887
4888 eval "$ac_cv_use_spinctrl"
4889 if test "$no_cache" != 1; then
4890 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4891 fi
4892
4893 if test "$wxUSE_SPINCTRL" = yes; then
4894 echo "$ac_t""yes" 1>&6
4895 else
4896 echo "$ac_t""no" 1>&6
4897 fi
4898
4899
10f2d63a 4900 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
f6bcfd97 4901echo "configure:4902: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4902 no_cache=0
4903 # Check whether --enable-splitter or --disable-splitter was given.
4904if test "${enable_splitter+set}" = set; then
4905 enableval="$enable_splitter"
4906
4907 if test "$enableval" = yes; then
4908 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4909 else
4910 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4911 fi
4912
4913else
4914
4915 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4916 if test "x$LINE" != x ; then
4917 eval "DEFAULT_$LINE"
4918 else
4919 no_cache=1
4920 fi
4921
4922 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4923
4924fi
4925
4926
4927 eval "$ac_cv_use_splitter"
4928 if test "$no_cache" != 1; then
4929 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4930 fi
4931
4932 if test "$wxUSE_SPLITTER" = yes; then
4933 echo "$ac_t""yes" 1>&6
4934 else
4935 echo "$ac_t""no" 1>&6
4936 fi
4937
4938
4939 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
f6bcfd97 4940echo "configure:4941: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4941 no_cache=0
4942 # Check whether --enable-statbmp or --disable-statbmp was given.
4943if test "${enable_statbmp+set}" = set; then
4944 enableval="$enable_statbmp"
4945
4946 if test "$enableval" = yes; then
4947 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4948 else
4949 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4950 fi
4951
4952else
4953
4954 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4955 if test "x$LINE" != x ; then
4956 eval "DEFAULT_$LINE"
4957 else
4958 no_cache=1
4959 fi
4960
4961 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4962
4963fi
4964
4965
4966 eval "$ac_cv_use_statbmp"
4967 if test "$no_cache" != 1; then
4968 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4969 fi
4970
4971 if test "$wxUSE_STATBMP" = yes; then
4972 echo "$ac_t""yes" 1>&6
4973 else
4974 echo "$ac_t""no" 1>&6
4975 fi
4976
4977
4978 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
f6bcfd97 4979echo "configure:4980: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4980 no_cache=0
4981 # Check whether --enable-statbox or --disable-statbox was given.
4982if test "${enable_statbox+set}" = set; then
4983 enableval="$enable_statbox"
4984
4985 if test "$enableval" = yes; then
4986 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4987 else
4988 ac_cv_use_statbox='wxUSE_STATBOX=no'
4989 fi
4990
4991else
4992
4993 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4994 if test "x$LINE" != x ; then
4995 eval "DEFAULT_$LINE"
4996 else
4997 no_cache=1
4998 fi
4999
5000 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5001
5002fi
5003
5004
5005 eval "$ac_cv_use_statbox"
5006 if test "$no_cache" != 1; then
5007 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5008 fi
5009
5010 if test "$wxUSE_STATBOX" = yes; then
5011 echo "$ac_t""yes" 1>&6
5012 else
5013 echo "$ac_t""no" 1>&6
5014 fi
5015
5016
5017 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
f6bcfd97 5018echo "configure:5019: checking "for --enable-statline"" >&5
10f2d63a
VZ
5019 no_cache=0
5020 # Check whether --enable-statline or --disable-statline was given.
5021if test "${enable_statline+set}" = set; then
5022 enableval="$enable_statline"
5023
5024 if test "$enableval" = yes; then
5025 ac_cv_use_statline='wxUSE_STATLINE=yes'
5026 else
5027 ac_cv_use_statline='wxUSE_STATLINE=no'
5028 fi
5029
5030else
5031
5032 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5033 if test "x$LINE" != x ; then
5034 eval "DEFAULT_$LINE"
5035 else
5036 no_cache=1
5037 fi
5038
5039 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5040
5041fi
5042
5043
5044 eval "$ac_cv_use_statline"
5045 if test "$no_cache" != 1; then
5046 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5047 fi
5048
5049 if test "$wxUSE_STATLINE" = yes; then
5050 echo "$ac_t""yes" 1>&6
5051 else
5052 echo "$ac_t""no" 1>&6
5053 fi
5054
5055
5056 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
f6bcfd97 5057echo "configure:5058: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5058 no_cache=0
5059 # Check whether --enable-statusbar or --disable-statusbar was given.
5060if test "${enable_statusbar+set}" = set; then
5061 enableval="$enable_statusbar"
5062
5063 if test "$enableval" = yes; then
5064 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5065 else
5066 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5067 fi
5068
5069else
5070
5071 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5072 if test "x$LINE" != x ; then
5073 eval "DEFAULT_$LINE"
5074 else
5075 no_cache=1
5076 fi
5077
5078 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5079
5080fi
5081
5082
5083 eval "$ac_cv_use_statusbar"
5084 if test "$no_cache" != 1; then
5085 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5086 fi
5087
5088 if test "$wxUSE_STATUSBAR" = yes; then
5089 echo "$ac_t""yes" 1>&6
5090 else
5091 echo "$ac_t""no" 1>&6
5092 fi
5093
5094
5095 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
f6bcfd97 5096echo "configure:5097: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5097 no_cache=0
5098 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5099if test "${enable_tabdialog+set}" = set; then
5100 enableval="$enable_tabdialog"
5101
5102 if test "$enableval" = yes; then
5103 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5104 else
5105 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5106 fi
5107
5108else
5109
5110 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5111 if test "x$LINE" != x ; then
5112 eval "DEFAULT_$LINE"
5113 else
5114 no_cache=1
5115 fi
5116
5117 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5118
5119fi
5120
5121
5122 eval "$ac_cv_use_tabdialog"
5123 if test "$no_cache" != 1; then
5124 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5125 fi
5126
5127 if test "$wxUSE_TABDIALOG" = yes; then
5128 echo "$ac_t""yes" 1>&6
5129 else
5130 echo "$ac_t""no" 1>&6
5131 fi
5132
5133
5134 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
f6bcfd97 5135echo "configure:5136: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5136 no_cache=0
5137 # Check whether --enable-toolbar or --disable-toolbar was given.
5138if test "${enable_toolbar+set}" = set; then
5139 enableval="$enable_toolbar"
5140
5141 if test "$enableval" = yes; then
5142 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5143 else
5144 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5145 fi
5146
5147else
5148
5149 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5150 if test "x$LINE" != x ; then
5151 eval "DEFAULT_$LINE"
5152 else
5153 no_cache=1
5154 fi
5155
5156 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5157
5158fi
5159
5160
5161 eval "$ac_cv_use_toolbar"
5162 if test "$no_cache" != 1; then
5163 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5164 fi
5165
5166 if test "$wxUSE_TOOLBAR" = yes; then
5167 echo "$ac_t""yes" 1>&6
5168 else
5169 echo "$ac_t""no" 1>&6
5170 fi
5171
5172
360d6699 5173 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
f6bcfd97 5174echo "configure:5175: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5175 no_cache=0
5176 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5177if test "${enable_tbarnative+set}" = set; then
5178 enableval="$enable_tbarnative"
5179
5180 if test "$enableval" = yes; then
5181 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5182 else
5183 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5184 fi
5185
5186else
5187
5188 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5189 if test "x$LINE" != x ; then
5190 eval "DEFAULT_$LINE"
5191 else
5192 no_cache=1
5193 fi
5194
5195 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5196
5197fi
5198
5199
5200 eval "$ac_cv_use_tbarnative"
5201 if test "$no_cache" != 1; then
5202 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5203 fi
5204
5205 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5206 echo "$ac_t""yes" 1>&6
5207 else
5208 echo "$ac_t""no" 1>&6
5209 fi
5210
5211
5212 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
f6bcfd97 5213echo "configure:5214: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5214 no_cache=0
5215 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5216if test "${enable_tbarsmpl+set}" = set; then
5217 enableval="$enable_tbarsmpl"
5218
5219 if test "$enableval" = yes; then
5220 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5221 else
5222 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5223 fi
5224
5225else
5226
5227 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5228 if test "x$LINE" != x ; then
5229 eval "DEFAULT_$LINE"
5230 else
5231 no_cache=1
5232 fi
5233
5234 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5235
5236fi
5237
5238
5239 eval "$ac_cv_use_tbarsmpl"
5240 if test "$no_cache" != 1; then
5241 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5242 fi
5243
5244 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5245 echo "$ac_t""yes" 1>&6
5246 else
5247 echo "$ac_t""no" 1>&6
5248 fi
5249
5250
10f2d63a 5251 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
f6bcfd97 5252echo "configure:5253: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5253 no_cache=0
5254 # Check whether --enable-treectrl or --disable-treectrl was given.
5255if test "${enable_treectrl+set}" = set; then
5256 enableval="$enable_treectrl"
5257
5258 if test "$enableval" = yes; then
5259 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5260 else
5261 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5262 fi
5263
5264else
5265
5266 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5267 if test "x$LINE" != x ; then
5268 eval "DEFAULT_$LINE"
5269 else
5270 no_cache=1
5271 fi
5272
5273 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5274
5275fi
5276
5277
5278 eval "$ac_cv_use_treectrl"
5279 if test "$no_cache" != 1; then
5280 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5281 fi
5282
5283 if test "$wxUSE_TREECTRL" = yes; then
5284 echo "$ac_t""yes" 1>&6
5285 else
5286 echo "$ac_t""no" 1>&6
5287 fi
5288
5289
5290
5291
5292 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
f6bcfd97 5293echo "configure:5294: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5294 no_cache=0
5295 # Check whether --enable-commondlg or --disable-commondlg was given.
5296if test "${enable_commondlg+set}" = set; then
5297 enableval="$enable_commondlg"
5298
5299 if test "$enableval" = yes; then
5300 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5301 else
5302 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5303 fi
5304
5305else
5306
5307 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5308 if test "x$LINE" != x ; then
5309 eval "DEFAULT_$LINE"
5310 else
5311 no_cache=1
5312 fi
5313
5314 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5315
5316fi
5317
5318
5319 eval "$ac_cv_use_commondlg"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_COMMONDLGS" = yes; then
5325 echo "$ac_t""yes" 1>&6
5326 else
5327 echo "$ac_t""no" 1>&6
5328 fi
5329
5330
5331 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
f6bcfd97 5332echo "configure:5333: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5333 no_cache=0
5334 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5335if test "${enable_dirdlg+set}" = set; then
5336 enableval="$enable_dirdlg"
5337
5338 if test "$enableval" = yes; then
5339 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5340 else
5341 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5342 fi
5343
5344else
5345
5346 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5347 if test "x$LINE" != x ; then
5348 eval "DEFAULT_$LINE"
5349 else
5350 no_cache=1
5351 fi
5352
5353 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5354
5355fi
5356
5357
5358 eval "$ac_cv_use_dirdlg"
5359 if test "$no_cache" != 1; then
5360 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5361 fi
5362
5363 if test "$wxUSE_DIRDLG" = yes; then
5364 echo "$ac_t""yes" 1>&6
5365 else
5366 echo "$ac_t""no" 1>&6
5367 fi
5368
5369
5370 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
f6bcfd97 5371echo "configure:5372: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5372 no_cache=0
5373 # Check whether --enable-textdlg or --disable-textdlg was given.
5374if test "${enable_textdlg+set}" = set; then
5375 enableval="$enable_textdlg"
5376
5377 if test "$enableval" = yes; then
5378 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5379 else
5380 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5381 fi
5382
5383else
5384
5385 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5386 if test "x$LINE" != x ; then
5387 eval "DEFAULT_$LINE"
5388 else
5389 no_cache=1
5390 fi
5391
5392 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5393
5394fi
5395
5396
5397 eval "$ac_cv_use_textdlg"
5398 if test "$no_cache" != 1; then
5399 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5400 fi
5401
5402 if test "$wxUSE_TEXTDLG" = yes; then
5403 echo "$ac_t""yes" 1>&6
5404 else
5405 echo "$ac_t""no" 1>&6
5406 fi
5407
5408
5409 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
f6bcfd97 5410echo "configure:5411: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5411 no_cache=0
5412 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5413if test "${enable_tipdlg+set}" = set; then
5414 enableval="$enable_tipdlg"
5415
5416 if test "$enableval" = yes; then
5417 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5418 else
5419 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5420 fi
5421
5422else
5423
5424 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5425 if test "x$LINE" != x ; then
5426 eval "DEFAULT_$LINE"
5427 else
5428 no_cache=1
5429 fi
5430
5431 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5432
5433fi
5434
5435
5436 eval "$ac_cv_use_tipdlg"
5437 if test "$no_cache" != 1; then
5438 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5439 fi
5440
5441 if test "$wxUSE_STARTUP_TIPS" = yes; then
5442 echo "$ac_t""yes" 1>&6
5443 else
5444 echo "$ac_t""no" 1>&6
5445 fi
5446
5447
5448 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
f6bcfd97 5449echo "configure:5450: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5450 no_cache=0
5451 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5452if test "${enable_progressdlg+set}" = set; then
5453 enableval="$enable_progressdlg"
5454
5455 if test "$enableval" = yes; then
5456 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5457 else
5458 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5459 fi
5460
5461else
5462
5463 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5464 if test "x$LINE" != x ; then
5465 eval "DEFAULT_$LINE"
5466 else
5467 no_cache=1
5468 fi
5469
5470 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5471
5472fi
5473
5474
5475 eval "$ac_cv_use_progressdlg"
5476 if test "$no_cache" != 1; then
5477 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5478 fi
5479
5480 if test "$wxUSE_PROGRESSDLG" = yes; then
5481 echo "$ac_t""yes" 1>&6
5482 else
5483 echo "$ac_t""no" 1>&6
5484 fi
5485
5486
5487 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
f6bcfd97 5488echo "configure:5489: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5489 no_cache=0
5490 # Check whether --enable-miniframe or --disable-miniframe was given.
5491if test "${enable_miniframe+set}" = set; then
5492 enableval="$enable_miniframe"
5493
5494 if test "$enableval" = yes; then
5495 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5496 else
5497 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5498 fi
5499
5500else
5501
5502 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5503 if test "x$LINE" != x ; then
5504 eval "DEFAULT_$LINE"
5505 else
5506 no_cache=1
5507 fi
5508
5509 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5510
5511fi
5512
5513
5514 eval "$ac_cv_use_miniframe"
5515 if test "$no_cache" != 1; then
5516 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5517 fi
5518
5519 if test "$wxUSE_MINIFRAME" = yes; then
5520 echo "$ac_t""yes" 1>&6
5521 else
5522 echo "$ac_t""no" 1>&6
5523 fi
5524
5525
5526 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
f6bcfd97 5527echo "configure:5528: checking "for --enable-html"" >&5
10f2d63a
VZ
5528 no_cache=0
5529 # Check whether --enable-html or --disable-html was given.
5530if test "${enable_html+set}" = set; then
5531 enableval="$enable_html"
5532
5533 if test "$enableval" = yes; then
5534 ac_cv_use_html='wxUSE_HTML=yes'
5535 else
5536 ac_cv_use_html='wxUSE_HTML=no'
5537 fi
5538
5539else
5540
5541 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5542 if test "x$LINE" != x ; then
5543 eval "DEFAULT_$LINE"
5544 else
5545 no_cache=1
5546 fi
5547
5548 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5549
5550fi
5551
5552
5553 eval "$ac_cv_use_html"
5554 if test "$no_cache" != 1; then
5555 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5556 fi
5557
5558 if test "$wxUSE_HTML" = yes; then
5559 echo "$ac_t""yes" 1>&6
5560 else
5561 echo "$ac_t""no" 1>&6
5562 fi
5563
5564
5565 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
f6bcfd97 5566echo "configure:5567: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5567 no_cache=0
5568 # Check whether --enable-tooltips or --disable-tooltips was given.
5569if test "${enable_tooltips+set}" = set; then
5570 enableval="$enable_tooltips"
5571
5572 if test "$enableval" = yes; then
5573 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5574 else
5575 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5576 fi
5577
5578else
5579
5580 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5581 if test "x$LINE" != x ; then
5582 eval "DEFAULT_$LINE"
5583 else
5584 no_cache=1
5585 fi
5586
5587 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5588
5589fi
5590
5591
5592 eval "$ac_cv_use_tooltips"
5593 if test "$no_cache" != 1; then
5594 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5595 fi
5596
5597 if test "$wxUSE_TOOLTIPS" = yes; then
5598 echo "$ac_t""yes" 1>&6
5599 else
5600 echo "$ac_t""no" 1>&6
5601 fi
5602
5603
5604 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
f6bcfd97 5605echo "configure:5606: checking "for --enable-splines"" >&5
10f2d63a
VZ
5606 no_cache=0
5607 # Check whether --enable-splines or --disable-splines was given.
5608if test "${enable_splines+set}" = set; then
5609 enableval="$enable_splines"
5610
5611 if test "$enableval" = yes; then
5612 ac_cv_use_splines='wxUSE_SPLINES=yes'
5613 else
5614 ac_cv_use_splines='wxUSE_SPLINES=no'
5615 fi
5616
5617else
5618
5619 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5620 if test "x$LINE" != x ; then
5621 eval "DEFAULT_$LINE"
5622 else
5623 no_cache=1
5624 fi
5625
5626 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5627
5628fi
5629
5630
5631 eval "$ac_cv_use_splines"
5632 if test "$no_cache" != 1; then
5633 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5634 fi
5635
5636 if test "$wxUSE_SPLINES" = yes; then
5637 echo "$ac_t""yes" 1>&6
5638 else
5639 echo "$ac_t""no" 1>&6
5640 fi
5641
5642
5643 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
f6bcfd97 5644echo "configure:5645: checking "for --enable-validators"" >&5
10f2d63a
VZ
5645 no_cache=0
5646 # Check whether --enable-validators or --disable-validators was given.
5647if test "${enable_validators+set}" = set; then
5648 enableval="$enable_validators"
5649
5650 if test "$enableval" = yes; then
5651 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5652 else
5653 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5654 fi
5655
5656else
5657
5658 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5659 if test "x$LINE" != x ; then
5660 eval "DEFAULT_$LINE"
5661 else
5662 no_cache=1
5663 fi
5664
5665 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5666
5667fi
5668
5669
5670 eval "$ac_cv_use_validators"
5671 if test "$no_cache" != 1; then
5672 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5673 fi
5674
5675 if test "$wxUSE_VALIDATORS" = yes; then
5676 echo "$ac_t""yes" 1>&6
5677 else
5678 echo "$ac_t""no" 1>&6
5679 fi
5680
5681
5682 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
f6bcfd97 5683echo "configure:5684: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5684 no_cache=0
5685 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5686if test "${enable_busyinfo+set}" = set; then
5687 enableval="$enable_busyinfo"
5688
5689 if test "$enableval" = yes; then
5690 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5691 else
5692 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5693 fi
5694
5695else
5696
5697 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5698 if test "x$LINE" != x ; then
5699 eval "DEFAULT_$LINE"
5700 else
5701 no_cache=1
5702 fi
5703
5704 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5705
5706fi
5707
5708
5709 eval "$ac_cv_use_busyinfo"
5710 if test "$no_cache" != 1; then
5711 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5712 fi
5713
5714 if test "$wxUSE_BUSYINFO" = yes; then
5715 echo "$ac_t""yes" 1>&6
5716 else
5717 echo "$ac_t""no" 1>&6
5718 fi
5719
5720
9b33fe02 5721 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
f6bcfd97 5722echo "configure:5723: checking "for --enable-plot"" >&5
9b33fe02
VZ
5723 no_cache=0
5724 # Check whether --enable-plot or --disable-plot was given.
5725if test "${enable_plot+set}" = set; then
5726 enableval="$enable_plot"
5727
5728 if test "$enableval" = yes; then
5729 ac_cv_use_plot='wxUSE_PLOT=yes'
5730 else
5731 ac_cv_use_plot='wxUSE_PLOT=no'
5732 fi
5733
5734else
5735
5736 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5737 if test "x$LINE" != x ; then
5738 eval "DEFAULT_$LINE"
5739 else
5740 no_cache=1
5741 fi
5742
5743 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5744
5745fi
5746
5747
5748 eval "$ac_cv_use_plot"
5749 if test "$no_cache" != 1; then
5750 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5751 fi
5752
5753 if test "$wxUSE_PLOT" = yes; then
5754 echo "$ac_t""yes" 1>&6
5755 else
5756 echo "$ac_t""no" 1>&6
5757 fi
5758
5759
f6bcfd97
BP
5760 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
5761echo "configure:5762: checking "for --enable-joystick"" >&5
5762 no_cache=0
5763 # Check whether --enable-joystick or --disable-joystick was given.
5764if test "${enable_joystick+set}" = set; then
5765 enableval="$enable_joystick"
5766
5767 if test "$enableval" = yes; then
5768 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
5769 else
5770 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
5771 fi
5772
5773else
5774
5775 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
5776 if test "x$LINE" != x ; then
5777 eval "DEFAULT_$LINE"
5778 else
5779 no_cache=1
5780 fi
5781
5782 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
5783
5784fi
5785
5786
5787 eval "$ac_cv_use_joystick"
5788 if test "$no_cache" != 1; then
5789 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
5790 fi
5791
5792 if test "$wxUSE_JOYSTICK" = yes; then
5793 echo "$ac_t""yes" 1>&6
5794 else
5795 echo "$ac_t""no" 1>&6
5796 fi
5797
5798
10f2d63a
VZ
5799
5800
5801 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
f6bcfd97 5802echo "configure:5803: checking "for --enable-gif"" >&5
10f2d63a
VZ
5803 no_cache=0
5804 # Check whether --enable-gif or --disable-gif was given.
5805if test "${enable_gif+set}" = set; then
5806 enableval="$enable_gif"
5807
5808 if test "$enableval" = yes; then
5809 ac_cv_use_gif='wxUSE_GIF=yes'
5810 else
5811 ac_cv_use_gif='wxUSE_GIF=no'
5812 fi
5813
5814else
5815
5816 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5817 if test "x$LINE" != x ; then
5818 eval "DEFAULT_$LINE"
5819 else
5820 no_cache=1
5821 fi
5822
5823 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5824
5825fi
5826
5827
5828 eval "$ac_cv_use_gif"
5829 if test "$no_cache" != 1; then
5830 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5831 fi
5832
5833 if test "$wxUSE_GIF" = yes; then
5834 echo "$ac_t""yes" 1>&6
5835 else
5836 echo "$ac_t""no" 1>&6
5837 fi
5838
5839
5840 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
f6bcfd97 5841echo "configure:5842: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5842 no_cache=0
5843 # Check whether --enable-pcx or --disable-pcx was given.
5844if test "${enable_pcx+set}" = set; then
5845 enableval="$enable_pcx"
5846
5847 if test "$enableval" = yes; then
5848 ac_cv_use_pcx='wxUSE_PCX=yes'
5849 else
5850 ac_cv_use_pcx='wxUSE_PCX=no'
5851 fi
5852
5853else
5854
5855 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5856 if test "x$LINE" != x ; then
5857 eval "DEFAULT_$LINE"
5858 else
5859 no_cache=1
5860 fi
5861
5862 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5863
5864fi
5865
5866
5867 eval "$ac_cv_use_pcx"
5868 if test "$no_cache" != 1; then
5869 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5870 fi
5871
5872 if test "$wxUSE_PCX" = yes; then
5873 echo "$ac_t""yes" 1>&6
5874 else
5875 echo "$ac_t""no" 1>&6
5876 fi
5877
5878
5879 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
f6bcfd97 5880echo "configure:5881: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5881 no_cache=0
5882 # Check whether --enable-pnm or --disable-pnm was given.
5883if test "${enable_pnm+set}" = set; then
5884 enableval="$enable_pnm"
5885
5886 if test "$enableval" = yes; then
5887 ac_cv_use_pnm='wxUSE_PNM=yes'
5888 else
5889 ac_cv_use_pnm='wxUSE_PNM=no'
5890 fi
5891
5892else
5893
5894 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5895 if test "x$LINE" != x ; then
5896 eval "DEFAULT_$LINE"
5897 else
5898 no_cache=1
5899 fi
5900
5901 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5902
5903fi
5904
5905
5906 eval "$ac_cv_use_pnm"
5907 if test "$no_cache" != 1; then
5908 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5909 fi
5910
5911 if test "$wxUSE_PNM" = yes; then
5912 echo "$ac_t""yes" 1>&6
5913 else
5914 echo "$ac_t""no" 1>&6
5915 fi
5916
5917
b12915c1
VZ
5918fi
5919
10f2d63a
VZ
5920
5921 echo "saving argument cache $wx_arg_cache_file"
5922 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5923
5924
5925
5926echo $ac_n "checking for toolkit""... $ac_c" 1>&6
f6bcfd97 5927echo "configure:5928: checking for toolkit" >&5
10f2d63a
VZ
5928
5929if test "$wxUSE_GUI" = "yes"; then
5930
b12915c1
VZ
5931if test "$USE_BEOS" = 1; then
5932 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5933fi
5934
10f2d63a
VZ
5935if test "$TOOLKIT_GIVEN" = 1; then
5936 for toolkit in `echo $ALL_TOOLKITS`; do
5937 var=wxUSE_$toolkit
5938 eval "value=\$${var}"
5939 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5940 done
5941else
5942 for toolkit in `echo $ALL_TOOLKITS`; do
5943 if test "$has_toolkit_in_cache" != 1; then
5944 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5945 else
5946 var=DEFAULT_wxUSE_$toolkit
5947 fi
5948 eval "wxUSE_$toolkit=\$${var}"
5949 done
5950fi
5951
ec14dd32 5952NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 5953
ec14dd32
VZ
5954case "${host}" in
5955 *-pc-os2_emx )
5956 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5957 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5958 LEX_STEM="lexyy"
5959 ;;
5960 *)
5961 PATH_IFS=':'
5962 LEX_STEM="lex.yy"
5963 ;;
5964esac
10f2d63a
VZ
5965
5966case "$NUM_TOOLKITS" in
5967 1)
5968 ;;
5969 0)
5970 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5971 ;;
5972 *)
5973 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5974esac
5975
5976for toolkit in `echo $ALL_TOOLKITS`; do
5977 var=wxUSE_$toolkit
5978 eval "value=\$${var}"
5979 if test "x$value" != x; then
5980 cache_var=CACHE_$toolkit
5981 eval "cache=\$${cache_var}"
5982 if test "$cache" = 1; then
5983 echo "$var=$value" >> ${wx_arg_cache_file}
5984 fi
5985 if test "$value" = 1; then
5986 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5987 fi
5988 fi
5989done
5990
5991else
cf27ef00 5992 PATH_IFS=':'
10f2d63a
VZ
5993 echo "$ac_t""base only" 1>&6
5994fi
5995
5996
5997cat > confcache <<\EOF
5998# This file is a shell script that caches the results of configure
5999# tests run on this system so they can be shared between configure
6000# scripts and configure runs. It is not useful on other systems.
6001# If it contains results you don't want to keep, you may remove or edit it.
6002#
6003# By default, configure uses ./config.cache as the cache file,
6004# creating it if it does not exist already. You can give configure
6005# the --cache-file=FILE option to use a different cache file; that is
6006# what configure does when it calls configure scripts in
6007# subdirectories, so they share the cache.
6008# Giving --cache-file=/dev/null disables caching, for debugging configure.
6009# config.status only pays attention to the cache file if you give it the
6010# --recheck option to rerun configure.
6011#
6012EOF
6013# The following way of writing the cache mishandles newlines in values,
6014# but we know of no workaround that is simple, portable, and efficient.
6015# So, don't put newlines in cache variables' values.
6016# Ultrix sh set writes to stderr and can't be redirected directly,
6017# and sets the high bit in the cache file unless we assign to the vars.
6018(set) 2>&1 |
6019 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6020 *ac_space=\ *)
6021 # `set' does not quote correctly, so add quotes (double-quote substitution
6022 # turns \\\\ into \\, and sed turns \\ into \).
6023 sed -n \
6024 -e "s/'/'\\\\''/g" \
6025 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6026 ;;
6027 *)
6028 # `set' quotes correctly as required by POSIX, so do not add quotes.
6029 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6030 ;;
6031 esac >> confcache
6032if cmp -s $cache_file confcache; then
6033 :
6034else
6035 if test -w $cache_file; then
6036 echo "updating cache $cache_file"
6037 cat confcache > $cache_file
6038 else
6039 echo "not updating unwritable cache $cache_file"
6040 fi
6041fi
6042rm -f confcache
6043
6044
e59890c3 6045if test "$build" != "$host" ; then
10f2d63a
VZ
6046 CC=$host_alias-gcc
6047 CXX=$host_alias-c++
6048 AR=$host_alias-ar
6049 RANLIB=$host_alias-ranlib
6050 DLLTOOL=$host_alias-dlltool
32832908 6051 RESCOMP=$host_alias-windres
10f2d63a
VZ
6052 LD=$host_alias-ld
6053 NM=$host_alias-nm
6054 STRIP=$host_alias-strip
10f2d63a
VZ
6055fi
6056
6057# Extract the first word of "gcc", so it can be a program name with args.
6058set dummy gcc; ac_word=$2
6059echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f6bcfd97 6060echo "configure:6061: checking for $ac_word" >&5
10f2d63a
VZ
6061if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6062 echo $ac_n "(cached) $ac_c" 1>&6
6063else
6064 if test -n "$CC"; then
6065 ac_cv_prog_CC="$CC" # Let the user override the test.
6066else
6067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6068 ac_dummy="$PATH"
6069 for ac_dir in $ac_dummy; do
6070 test -z "$ac_dir" && ac_dir=.
6071 if test -f $ac_dir/$ac_word; then
6072 ac_cv_prog_CC="gcc"
6073 break
6074 fi
6075 done
6076 IFS="$ac_save_ifs"
6077fi
6078fi
6079CC="$ac_cv_prog_CC"
6080if test -n "$CC"; then
6081 echo "$ac_t""$CC" 1>&6
6082else
6083 echo "$ac_t""no" 1>&6
6084fi
6085
6086if test -z "$CC"; then
6087 # Extract the first word of "cc", so it can be a program name with args.
6088set dummy cc; ac_word=$2
6089echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f6bcfd97 6090echo "configure:6091: checking for $ac_word" >&5
10f2d63a
VZ
6091if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6092 echo $ac_n "(cached) $ac_c" 1>&6
6093else
6094 if test -n "$CC"; then
6095 ac_cv_prog_CC="$CC" # Let the user override the test.
6096else
6097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6098 ac_prog_rejected=no
6099 ac_dummy="$PATH"
6100 for ac_dir in $ac_dummy; do
6101 test -z "$ac_dir" && ac_dir=.
6102 if test -f $ac_dir/$ac_word; then
6103 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6104 ac_prog_rejected=yes
6105 continue
6106 fi
6107 ac_cv_prog_CC="cc"
6108 break
6109 fi
6110 done
6111 IFS="$ac_save_ifs"
6112if test $ac_prog_rejected = yes; then
6113 # We found a bogon in the path, so make sure we never use it.
6114 set dummy $ac_cv_prog_CC
6115 shift
6116 if test $# -gt 0; then
6117 # We chose a different compiler from the bogus one.
6118 # However, it has the same basename, so the bogon will be chosen
6119 # first if we set CC to just the basename; use the full file name.
6120 shift
6121 set dummy "$ac_dir/$ac_word" "$@"
6122 shift
6123 ac_cv_prog_CC="$@"
6124 fi
6125fi
6126fi
6127fi
6128CC="$ac_cv_prog_CC"
6129if test -n "$CC"; then
6130 echo "$ac_t""$CC" 1>&6
6131else
6132 echo "$ac_t""no" 1>&6
6133fi
6134
6135 if test -z "$CC"; then
6136 case "`uname -s`" in
6137 *win32* | *WIN32*)
6138 # Extract the first word of "cl", so it can be a program name with args.
6139set dummy cl; ac_word=$2
6140echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f6bcfd97 6141echo "configure:6142: checking for $ac_word" >&5
10f2d63a
VZ
6142if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6144else
6145 if test -n "$CC"; then
6146 ac_cv_prog_CC="$CC" # Let the user override the test.
6147else
6148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6149 ac_dummy="$PATH"
6150 for ac_dir in $ac_dummy; do
6151 test -z "$ac_dir" && ac_dir=.
6152 if test -f $ac_dir/$ac_word; then
6153 ac_cv_prog_CC="cl"
6154 break
6155 fi
6156 done
6157 IFS="$ac_save_ifs"
6158fi
6159fi
6160CC="$ac_cv_prog_CC"
6161if test -n "$CC"; then
6162 echo "$ac_t""$CC" 1>&6
6163else
6164 echo "$ac_t""no" 1>&6
6165fi
6166 ;;
6167 esac
6168 fi
6169 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6170fi
6171
6172echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
f6bcfd97 6173echo "configure:6174: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6174
6175ac_ext=c
6176# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6177ac_cpp='$CPP $CPPFLAGS'
6178ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6179ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6180cross_compiling=$ac_cv_prog_cc_cross
6181
6182cat > conftest.$ac_ext << EOF
6183
f6bcfd97 6184#line 6185 "configure"
10f2d63a
VZ
6185#include "confdefs.h"
6186
6187main(){return(0);}
6188EOF
f6bcfd97 6189if { (eval echo configure:6190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6190 ac_cv_prog_cc_works=yes
6191 # If we can't run a trivial program, we are probably using a cross compiler.
6192 if (./conftest; exit) 2>/dev/null; then
6193 ac_cv_prog_cc_cross=no
6194 else
6195 ac_cv_prog_cc_cross=yes
6196 fi
6197else
6198 echo "configure: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6200 ac_cv_prog_cc_works=no
6201fi
6202rm -fr conftest*
6203ac_ext=c
6204# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6205ac_cpp='$CPP $CPPFLAGS'
6206ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6207ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6208cross_compiling=$ac_cv_prog_cc_cross
6209
6210echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6211if test $ac_cv_prog_cc_works = no; then
6212 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6213fi
6214echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f6bcfd97 6215echo "configure:6216: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6216echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6217cross_compiling=$ac_cv_prog_cc_cross
6218
6219echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
f6bcfd97 6220echo "configure:6221: checking whether we are using GNU C" >&5
10f2d63a
VZ
6221if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6222 echo $ac_n "(cached) $ac_c" 1>&6
6223else
6224 cat > conftest.c <<EOF
6225#ifdef __GNUC__
6226 yes;
6227#endif
6228EOF
f6bcfd97 6229if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6230 ac_cv_prog_gcc=yes
6231else
6232 ac_cv_prog_gcc=no
6233fi
6234fi
6235
6236echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6237
6238if test $ac_cv_prog_gcc = yes; then
6239 GCC=yes
6240else
6241 GCC=
6242fi
6243
6244ac_test_CFLAGS="${CFLAGS+set}"
6245ac_save_CFLAGS="$CFLAGS"
6246CFLAGS=
6247echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
f6bcfd97 6248echo "configure:6249: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6249if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6250 echo $ac_n "(cached) $ac_c" 1>&6
6251else
6252 echo 'void f(){}' > conftest.c
6253if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6254 ac_cv_prog_cc_g=yes
6255else
6256 ac_cv_prog_cc_g=no
6257fi
6258rm -f conftest*
6259
6260fi
6261
6262echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6263if test "$ac_test_CFLAGS" = set; then
6264 CFLAGS="$ac_save_CFLAGS"
6265elif test $ac_cv_prog_cc_g = yes; then
6266 if test "$GCC" = yes; then
6267 CFLAGS="-g -O2"
6268 else
6269 CFLAGS="-g"
6270 fi
6271else
6272 if test "$GCC" = yes; then
6273 CFLAGS="-O2"
6274 else
6275 CFLAGS=
6276 fi
6277fi
6278
6279
6280CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6281
6282echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
f6bcfd97 6283echo "configure:6284: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6284# On Suns, sometimes $CPP names a directory.
6285if test -n "$CPP" && test -d "$CPP"; then
6286 CPP=
6287fi
6288if test -z "$CPP"; then
6289if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6290 echo $ac_n "(cached) $ac_c" 1>&6
6291else
6292 # This must be in double quotes, not single quotes, because CPP may get
6293 # substituted into the Makefile and "${CC-cc}" will confuse make.
6294 CPP="${CC-cc} -E"
6295 # On the NeXT, cc -E runs the code through the compiler's parser,
6296 # not just through cpp.
6297 cat > conftest.$ac_ext <<EOF
f6bcfd97 6298#line 6299 "configure"
10f2d63a
VZ
6299#include "confdefs.h"
6300#include <assert.h>
6301Syntax Error
6302EOF
6303ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 6304{ (eval echo configure:6305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6305ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6306if test -z "$ac_err"; then
6307 :
6308else
6309 echo "$ac_err" >&5
6310 echo "configure: failed program was:" >&5
6311 cat conftest.$ac_ext >&5
6312 rm -rf conftest*
6313 CPP="${CC-cc} -E -traditional-cpp"
6314 cat > conftest.$ac_ext <<EOF
f6bcfd97 6315#line 6316 "configure"
10f2d63a
VZ
6316#include "confdefs.h"
6317#include <assert.h>
6318Syntax Error
6319EOF
6320ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 6321{ (eval echo configure:6322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6322ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6323if test -z "$ac_err"; then
6324 :
6325else
6326 echo "$ac_err" >&5
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6329 rm -rf conftest*
6330 CPP="${CC-cc} -nologo -E"
6331 cat > conftest.$ac_ext <<EOF
f6bcfd97 6332#line 6333 "configure"
10f2d63a
VZ
6333#include "confdefs.h"
6334#include <assert.h>
6335Syntax Error
6336EOF
6337ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 6338{ (eval echo configure:6339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6339ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6340if test -z "$ac_err"; then
6341 :
6342else
6343 echo "$ac_err" >&5
6344 echo "configure: failed program was:" >&5
6345 cat conftest.$ac_ext >&5
6346 rm -rf conftest*
6347 CPP=/lib/cpp
6348fi
6349rm -f conftest*
6350fi
6351rm -f conftest*
6352fi
6353rm -f conftest*
6354 ac_cv_prog_CPP="$CPP"
6355fi
6356 CPP="$ac_cv_prog_CPP"
6357else
6358 ac_cv_prog_CPP="$CPP"
6359fi
6360echo "$ac_t""$CPP" 1>&6
6361
6362
6363if test $ac_cv_prog_gcc = yes; then
6364 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
f6bcfd97 6365echo "configure:6366: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6366if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6367 echo $ac_n "(cached) $ac_c" 1>&6
6368else
6369 ac_pattern="Autoconf.*'x'"
6370 cat > conftest.$ac_ext <<EOF
f6bcfd97 6371#line 6372 "configure"
10f2d63a
VZ
6372#include "confdefs.h"
6373#include <sgtty.h>
6374Autoconf TIOCGETP
6375EOF
6376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6377 egrep "$ac_pattern" >/dev/null 2>&1; then
6378 rm -rf conftest*
6379 ac_cv_prog_gcc_traditional=yes
6380else
6381 rm -rf conftest*
6382 ac_cv_prog_gcc_traditional=no
6383fi
6384rm -f conftest*
6385
6386
6387 if test $ac_cv_prog_gcc_traditional = no; then
6388 cat > conftest.$ac_ext <<EOF
f6bcfd97 6389#line 6390 "configure"
10f2d63a
VZ
6390#include "confdefs.h"
6391#include <termio.h>
6392Autoconf TCGETA
6393EOF
6394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6395 egrep "$ac_pattern" >/dev/null 2>&1; then
6396 rm -rf conftest*
6397 ac_cv_prog_gcc_traditional=yes
6398fi
6399rm -f conftest*
6400
6401 fi
6402fi
6403
6404echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6405 if test $ac_cv_prog_gcc_traditional = yes; then
6406 CC="$CC -traditional"
6407 fi
6408fi
6409
6410
6411
6412ac_ext=C
6413# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6414ac_cpp='$CXXCPP $CPPFLAGS'
6415ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6416ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6417cross_compiling=$ac_cv_prog_cxx_cross
6418
6419
6420for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6421do
6422# Extract the first word of "$ac_prog", so it can be a program name with args.
6423set dummy $ac_prog; ac_word=$2
6424echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f6bcfd97 6425echo "configure:6426: checking for $ac_word" >&5
10f2d63a
VZ
6426if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6427 echo $ac_n "(cached) $ac_c" 1>&6
6428else
6429 if test -n "$CXX"; then
6430 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6431else
6432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6433 ac_dummy="$PATH"
6434 for ac_dir in $ac_dummy; do
6435 test -z "$ac_dir" && ac_dir=.
6436 if test -f $ac_dir/$ac_word; then
6437 ac_cv_prog_CXX="$ac_prog"
6438 break
6439 fi
6440 done
6441 IFS="$ac_save_ifs"
6442fi
6443fi
6444CXX="$ac_cv_prog_CXX"
6445if test -n "$CXX"; then
6446 echo "$ac_t""$CXX" 1>&6
6447else
6448 echo "$ac_t""no" 1>&6
6449fi
6450
6451test -n "$CXX" && break
6452done
6453test -n "$CXX" || CXX="gcc"
6454
6455
6456echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
f6bcfd97 6457echo "configure:6458: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6458
6459ac_ext=C
6460# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6461ac_cpp='$CXXCPP $CPPFLAGS'
6462ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6463ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6464cross_compiling=$ac_cv_prog_cxx_cross
6465
6466cat > conftest.$ac_ext << EOF
6467
f6bcfd97 6468#line 6469 "configure"
10f2d63a
VZ
6469#include "confdefs.h"
6470
6471int main(){return(0);}
6472EOF
f6bcfd97 6473if { (eval echo configure:6474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6474 ac_cv_prog_cxx_works=yes
6475 # If we can't run a trivial program, we are probably using a cross compiler.
6476 if (./conftest; exit) 2>/dev/null; then
6477 ac_cv_prog_cxx_cross=no
6478 else
6479 ac_cv_prog_cxx_cross=yes
6480 fi
6481else
6482 echo "configure: failed program was:" >&5
6483 cat conftest.$ac_ext >&5
6484 ac_cv_prog_cxx_works=no
6485fi
6486rm -fr conftest*
6487ac_ext=C
6488# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6489ac_cpp='$CXXCPP $CPPFLAGS'
6490ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6491ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6492cross_compiling=$ac_cv_prog_cxx_cross
6493
6494echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6495if test $ac_cv_prog_cxx_works = no; then
6496 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6497fi
6498echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f6bcfd97 6499echo "configure:6500: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6500echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6501cross_compiling=$ac_cv_prog_cxx_cross
6502
6503echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
f6bcfd97 6504echo "configure:6505: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6505if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6506 echo $ac_n "(cached) $ac_c" 1>&6
6507else
6508 cat > conftest.C <<EOF
6509#ifdef __GNUC__
6510 yes;
6511#endif
6512EOF
f6bcfd97 6513if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6514 ac_cv_prog_gxx=yes
6515else
6516 ac_cv_prog_gxx=no
6517fi
6518fi
6519
6520echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6521
6522if test $ac_cv_prog_gxx = yes; then
6523 GXX=yes
6524else
6525 GXX=
6526fi
6527
6528ac_test_CXXFLAGS="${CXXFLAGS+set}"
6529ac_save_CXXFLAGS="$CXXFLAGS"
6530CXXFLAGS=
6531echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
f6bcfd97 6532echo "configure:6533: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6533if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6534 echo $ac_n "(cached) $ac_c" 1>&6
6535else
6536 echo 'void f(){}' > conftest.cc
6537if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6538 ac_cv_prog_cxx_g=yes
6539else
6540 ac_cv_prog_cxx_g=no
6541fi
6542rm -f conftest*
6543
6544fi
6545
6546echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6547if test "$ac_test_CXXFLAGS" = set; then
6548 CXXFLAGS="$ac_save_CXXFLAGS"
6549elif test $ac_cv_prog_cxx_g = yes; then
6550 if test "$GXX" = yes; then
6551 CXXFLAGS="-g -O2"
6552 else
6553 CXXFLAGS="-g"
6554 fi
6555else
6556 if test "$GXX" = yes; then
6557 CXXFLAGS="-O2"
6558 else
6559 CXXFLAGS=
6560 fi
6561fi
6562
6563
6564echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
f6bcfd97 6565echo "configure:6566: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6566if test -z "$CXXCPP"; then
6567if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6568 echo $ac_n "(cached) $ac_c" 1>&6
6569else
6570 ac_ext=C
6571# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6572ac_cpp='$CXXCPP $CPPFLAGS'
6573ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6574ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6575cross_compiling=$ac_cv_prog_cxx_cross
6576 CXXCPP="${CXX-g++} -E"
6577 cat > conftest.$ac_ext <<EOF
f6bcfd97 6578#line 6579 "configure"
10f2d63a
VZ
6579#include "confdefs.h"
6580#include <stdlib.h>
6581EOF
6582ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 6583{ (eval echo configure:6584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6584ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6585if test -z "$ac_err"; then
6586 :
6587else
6588 echo "$ac_err" >&5
6589 echo "configure: failed program was:" >&5
6590 cat conftest.$ac_ext >&5
6591 rm -rf conftest*
6592 CXXCPP=/lib/cpp
6593fi
6594rm -f conftest*
6595 ac_cv_prog_CXXCPP="$CXXCPP"
6596ac_ext=C
6597# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6598ac_cpp='$CXXCPP $CPPFLAGS'
6599ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6600ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6601cross_compiling=$ac_cv_prog_cxx_cross
6602fi
6603fi
6604CXXCPP="$ac_cv_prog_CXXCPP"
6605echo "$ac_t""$CXXCPP" 1>&6
6606
6607
6608CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6609
6610ac_ext=c
6611# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6612ac_cpp='$CPP $CPPFLAGS'
6613ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6614ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6615cross_compiling=$ac_cv_prog_cc_cross
6616
6617
6618# Extract the first word of "ranlib", so it can be a program name with args.
6619set dummy ranlib; ac_word=$2
6620echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f6bcfd97 6621echo "configure:6622: checking for $ac_word" >&5
10f2d63a
VZ
6622if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6623 echo $ac_n "(cached) $ac_c" 1>&6
6624else
6625 if test -n "$RANLIB"; then
6626 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6627else
6628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6629 ac_dummy="$PATH"
6630 for ac_dir in $ac_dummy; do
6631 test -z "$ac_dir" && ac_dir=.
6632 if test -f $ac_dir/$ac_word; then
6633 ac_cv_prog_RANLIB="ranlib"
6634 break
6635 fi
6636 done
6637 IFS="$ac_save_ifs"
6638 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6639fi
6640fi
6641RANLIB="$ac_cv_prog_RANLIB"
6642if test -n "$RANLIB"; then
6643 echo "$ac_t""$RANLIB" 1>&6
6644else
6645 echo "$ac_t""no" 1>&6
6646fi
6647
6648
6649# Extract the first word of "ar", so it can be a program name with args.
6650set dummy ar; ac_word=$2
6651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f6bcfd97 6652echo "configure:6653: checking for $ac_word" >&5
10f2d63a
VZ
6653if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6654 echo $ac_n "(cached) $ac_c" 1>&6
6655else
6656 if test -n "$AR"; then
6657 ac_cv_prog_AR="$AR" # Let the user override the test.
6658else
6659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6660 ac_dummy="$PATH"
6661 for ac_dir in $ac_dummy; do
6662 test -z "$ac_dir" && ac_dir=.
6663 if test -f $ac_dir/$ac_word; then
6664 ac_cv_prog_AR="ar"
6665 break
6666 fi
6667 done
6668 IFS="$ac_save_ifs"
6669 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6670fi
6671fi
6672AR="$ac_cv_prog_AR"
6673if test -n "$AR"; then
6674 echo "$ac_t""$AR" 1>&6
6675else
6676 echo "$ac_t""no" 1>&6
6677fi
6678
6679
6680# Find a good install program. We prefer a C program (faster),
6681# so one script is as good as another. But avoid the broken or
6682# incompatible versions:
6683# SysV /etc/install, /usr/sbin/install
6684# SunOS /usr/etc/install
6685# IRIX /sbin/install
6686# AIX /bin/install
6687# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6688# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6689# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6690# ./install, which can be erroneously created by make from ./install.sh.
6691echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
f6bcfd97 6692echo "configure:6693: checking for a BSD compatible install" >&5
10f2d63a
VZ
6693if test -z "$INSTALL"; then
6694if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6695 echo $ac_n "(cached) $ac_c" 1>&6
6696else
6697 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6698 for ac_dir in $PATH; do
6699 # Account for people who put trailing slashes in PATH elements.
6700 case "$ac_dir/" in
6701 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6702 *)
6703 # OSF1 and SCO ODT 3.0 have their own names for install.
6704 # Don't use installbsd from OSF since it installs stuff as root
6705 # by default.
6706 for ac_prog in ginstall scoinst install; do
6707 if test -f $ac_dir/$ac_prog; then
6708 if test $ac_prog = install &&
6709 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6710 # AIX install. It has an incompatible calling convention.
6711 :
6712 else
6713 ac_cv_path_install="$ac_dir/$ac_prog -c"
6714 break 2
6715 fi
6716 fi
6717 done
6718 ;;
6719 esac
6720 done
6721 IFS="$ac_save_IFS"
6722
6723fi
6724 if test "${ac_cv_path_install+set}" = set; then
6725 INSTALL="$ac_cv_path_install"
6726 else
6727 # As a last resort, use the slow shell script. We don't cache a
6728 # path for INSTALL within a source directory, because that will
6729 # break other packages using the cache if that directory is
6730 # removed, or if the path is relative.
6731 INSTALL="$ac_install_sh"
6732 fi
6733fi
6734echo "$ac_t""$INSTALL" 1>&6
6735
6736# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6737# It thinks the first close brace ends the variable substitution.
6738test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6739
6740test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6741
6742test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6743
6744
6745# Extract the first word of "strip", so it can be a program name with args.
6746set dummy strip; ac_word=$2
6747echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f6bcfd97 6748echo "configure:6749: checking for $ac_word" >&5
10f2d63a
VZ
6749if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6750 echo $ac_n "(cached) $ac_c" 1>&6
6751else
6752 if test -n "$STRIP"; then
6753 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6754else
6755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6756 ac_dummy="$PATH"
6757 for ac_dir in $ac_dummy; do
6758 test -z "$ac_dir" && ac_dir=.
6759 if test -f $ac_dir/$ac_word; then
6760 ac_cv_prog_STRIP="strip"
6761 break
6762 fi
6763 done
6764 IFS="$ac_save_ifs"
6765 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6766fi
6767fi
6768STRIP="$ac_cv_prog_STRIP"
6769if test -n "$STRIP"; then
6770 echo "$ac_t""$STRIP" 1>&6
6771else
6772 echo "$ac_t""no" 1>&6
6773fi
6774
6775
6776echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
f6bcfd97 6777echo "configure:6778: checking "make for VPATH support"" >&5
10f2d63a
VZ
6778cat - << EOF > confMake
6779check : file
6780 cp \$? \$@
6781 cp \$? final_file
6782EOF
6783
6784if test ! -d sub ; then
6785 mkdir sub
6786fi
6787echo dummy > sub/file
f6bcfd97 6788${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
6789RESULT=$?
6790rm -f sub/file check final_file confMake
6791rmdir sub
6792if test "$RESULT" = 0; then
6793 echo "$ac_t""yes" 1>&6
6794else
6795 echo "$ac_t""no" 1>&6
6796 { echo "configure: error: You need a make-utility that is able to use the variable
6797VPATH correctly.
6798If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6799fi
6800
6801for ac_prog in 'bison -y' byacc
6802do
6803# Extract the first word of "$ac_prog", so it can be a program name with args.
6804set dummy $ac_prog; ac_word=$2
6805echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f6bcfd97 6806echo "configure:6807: checking for $ac_word" >&5
10f2d63a
VZ
6807if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6808 echo $ac_n "(cached) $ac_c" 1>&6
6809else
6810 if test -n "$YACC"; then
6811 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6812else
6813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6814 ac_dummy="$PATH"
6815 for ac_dir in $ac_dummy; do
6816 test -z "$ac_dir" && ac_dir=.
6817 if test -f $ac_dir/$ac_word; then
6818 ac_cv_prog_YACC="$ac_prog"
6819 break
6820 fi
6821 done
6822 IFS="$ac_save_ifs"
6823fi
6824fi
6825YACC="$ac_cv_prog_YACC"
6826if test -n "$YACC"; then
6827 echo "$ac_t""$YACC" 1>&6
6828else
6829 echo "$ac_t""no" 1>&6
6830fi
6831
6832test -n "$YACC" && break
6833done
6834test -n "$YACC" || YACC="yacc"
6835
6836
6837# Extract the first word of "flex", so it can be a program name with args.
6838set dummy flex; ac_word=$2
6839echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f6bcfd97 6840echo "configure:6841: checking for $ac_word" >&5
10f2d63a
VZ
6841if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6842 echo $ac_n "(cached) $ac_c" 1>&6
6843else
6844 if test -n "$LEX"; then
6845 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6846else
6847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6848 ac_dummy="$PATH"
6849 for ac_dir in $ac_dummy; do
6850 test -z "$ac_dir" && ac_dir=.
6851 if test -f $ac_dir/$ac_word; then
6852 ac_cv_prog_LEX="flex"
6853 break
6854 fi
6855 done
6856 IFS="$ac_save_ifs"
6857 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6858fi
6859fi
6860LEX="$ac_cv_prog_LEX"
6861if test -n "$LEX"; then
6862 echo "$ac_t""$LEX" 1>&6
6863else
6864 echo "$ac_t""no" 1>&6
6865fi
6866
6867if test -z "$LEXLIB"
6868then
6869 case "$LEX" in
6870 flex*) ac_lib=fl ;;
6871 *) ac_lib=l ;;
6872 esac
6873 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
f6bcfd97 6874echo "configure:6875: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6875ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6876if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6877 echo $ac_n "(cached) $ac_c" 1>&6
6878else
6879 ac_save_LIBS="$LIBS"
6880LIBS="-l$ac_lib $LIBS"
6881cat > conftest.$ac_ext <<EOF
f6bcfd97 6882#line 6883 "configure"
10f2d63a
VZ
6883#include "confdefs.h"
6884/* Override any gcc2 internal prototype to avoid an error. */
6885/* We use char because int might match the return type of a gcc2
6886 builtin and then its argument prototype would still apply. */
6887char yywrap();
6888
6889int main() {
6890yywrap()
6891; return 0; }
6892EOF
f6bcfd97 6893if { (eval echo configure:6894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6894 rm -rf conftest*
6895 eval "ac_cv_lib_$ac_lib_var=yes"
6896else
6897 echo "configure: failed program was:" >&5
6898 cat conftest.$ac_ext >&5
6899 rm -rf conftest*
6900 eval "ac_cv_lib_$ac_lib_var=no"
6901fi
6902rm -f conftest*
6903LIBS="$ac_save_LIBS"
6904
6905fi
6906if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6907 echo "$ac_t""yes" 1>&6
6908 LEXLIB="-l$ac_lib"
6909else
6910 echo "$ac_t""no" 1>&6
6911fi
6912
6913fi
6914
6915
6916echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
f6bcfd97 6917echo "configure:6918: checking whether ln -s works" >&5
10f2d63a
VZ
6918if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6919 echo $ac_n "(cached) $ac_c" 1>&6
6920else
6921 rm -f conftestdata
6922if ln -s X conftestdata 2>/dev/null
6923then
6924 rm -f conftestdata
6925 ac_cv_prog_LN_S="ln -s"
6926else
6927 ac_cv_prog_LN_S=ln
6928fi
6929fi
6930LN_S="$ac_cv_prog_LN_S"
6931if test "$ac_cv_prog_LN_S" = "ln -s"; then
6932 echo "$ac_t""yes" 1>&6
6933else
6934 echo "$ac_t""no" 1>&6
6935fi
6936
6937
6938
6939SEARCH_INCLUDE="\
6940 /usr/local/include \
6941 \
6942 /usr/Motif-1.2/include \
6943 /usr/Motif-2.1/include \
6944 \
6945 /usr/include/Motif1.2 \
6946 /opt/xpm/include/X11 \
6947 /opt/GBxpm/include/ \
6948 /opt/GBxpm/X11/include/ \
6949 \
6950 /usr/Motif1.2/include \
6951 /usr/dt/include \
afc31813
VZ
6952 /usr/openwin/include \
6953 \
10f2d63a
VZ
6954 /usr/include/Xm \
6955 \
6956 /usr/X11R6/include \
afc31813 6957 /usr/X11R6.4/include \
10f2d63a
VZ
6958 /usr/X11R5/include \
6959 /usr/X11R4/include \
6960 \
10f2d63a
VZ
6961 /usr/include/X11R6 \
6962 /usr/include/X11R5 \
6963 /usr/include/X11R4 \
6964 \
6965 /usr/local/X11R6/include \
6966 /usr/local/X11R5/include \
6967 /usr/local/X11R4/include \
6968 \
6969 /usr/local/include/X11R6 \
6970 /usr/local/include/X11R5 \
6971 /usr/local/include/X11R4 \
6972 \
6973 /usr/X11/include \
6974 /usr/include/X11 \
6975 /usr/local/X11/include \
6976 /usr/local/include/X11 \
6977 \
6978 /usr/X386/include \
6979 /usr/x386/include \
6980 /usr/XFree86/include/X11 \
6981 \
cf27ef00 6982 X:/XFree86/include \
ec14dd32
VZ
6983 X:/XFree86/include/X11 \
6984 \
10f2d63a
VZ
6985 /usr/include/gtk \
6986 /usr/local/include/gtk \
6987 /usr/include/glib \
6988 /usr/local/include/glib \
6989 \
6990 /usr/include/qt \
6991 /usr/local/include/qt \
6992 \
6993 /usr/include/windows \
6994 /usr/include/wine \
6995 /usr/local/include/wine \
6996 \
6997 /usr/unsupported/include \
6998 /usr/athena/include \
6999 /usr/local/x11r5/include \
7000 /usr/lpp/Xamples/include \
7001 \
10f2d63a 7002 /usr/openwin/share/include \
928b5c08
VZ
7003 \
7004 /usr/include"
10f2d63a
VZ
7005
7006SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
7007
7008
7009cat > confcache <<\EOF
7010# This file is a shell script that caches the results of configure
7011# tests run on this system so they can be shared between configure
7012# scripts and configure runs. It is not useful on other systems.
7013# If it contains results you don't want to keep, you may remove or edit it.
7014#
7015# By default, configure uses ./config.cache as the cache file,
7016# creating it if it does not exist already. You can give configure
7017# the --cache-file=FILE option to use a different cache file; that is
7018# what configure does when it calls configure scripts in
7019# subdirectories, so they share the cache.
7020# Giving --cache-file=/dev/null disables caching, for debugging configure.
7021# config.status only pays attention to the cache file if you give it the
7022# --recheck option to rerun configure.
7023#
7024EOF
7025# The following way of writing the cache mishandles newlines in values,
7026# but we know of no workaround that is simple, portable, and efficient.
7027# So, don't put newlines in cache variables' values.
7028# Ultrix sh set writes to stderr and can't be redirected directly,
7029# and sets the high bit in the cache file unless we assign to the vars.
7030(set) 2>&1 |
7031 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7032 *ac_space=\ *)
7033 # `set' does not quote correctly, so add quotes (double-quote substitution
7034 # turns \\\\ into \\, and sed turns \\ into \).
7035 sed -n \
7036 -e "s/'/'\\\\''/g" \
7037 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7038 ;;
7039 *)
7040 # `set' quotes correctly as required by POSIX, so do not add quotes.
7041 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7042 ;;
7043 esac >> confcache
7044if cmp -s $cache_file confcache; then
7045 :
7046else
7047 if test -w $cache_file; then
7048 echo "updating cache $cache_file"
7049 cat confcache > $cache_file
7050 else
7051 echo "not updating unwritable cache $cache_file"
7052 fi
7053fi
7054rm -f confcache
7055
7056
7057
dad6c0ea
VZ
7058AFMINSTALL=
7059
10f2d63a
VZ
7060if test "$wxUSE_GUI" = "yes"; then
7061
dad6c0ea
VZ
7062USE_GUI=1
7063
10f2d63a
VZ
7064TOOLKIT=
7065TOOLKIT_INCLUDE=
7066
7067GUIOBJS=
7068COMMONOBJS=
7069GENERICOBJS=
7070
7071GUI_TK_LIBRARY=
7072GUI_TK_LINK=
7073
7074WXGTK12=
f6bcfd97 7075WXGTK127=
13111b2a 7076WXGTK13=
10f2d63a
VZ
7077
7078WXWINE=
7079
10f2d63a
VZ
7080if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7081 if test "$cross_compiling" = "yes" ; then
e59890c3 7082 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
10f2d63a
VZ
7083 else
7084 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
f6bcfd97 7085echo "configure:7086: checking for Windows headers" >&5
10f2d63a
VZ
7086
7087ac_find_includes=
7088for ac_dir in $SEARCH_INCLUDE;
7089 do
7090 if test -f "$ac_dir/windows.h"; then
7091 ac_find_includes=$ac_dir
7092 break
7093 fi
7094 done
7095
7096 if test "$ac_find_includes" != "" ; then
7097 echo "$ac_t""found $ac_find_includes" 1>&6
7098 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7099 else
7100 echo "$ac_t""no" 1>&6
7101 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7102 fi
7103 fi
7104
7105 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7106 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7107
f6bcfd97
BP
7108 if test "$wxUSE_ODBC" = "yes" ; then
7109 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7110 fi
7111
10f2d63a
VZ
7112 if test "$wxUSE_MINGW" = 1; then
7113 LDFLAGS="$LDFLAGS -mwindows"
7114 fi
7115
7116 TOOLKIT=MSW
7117
7118 GUIOBJS="\$(MSW_GUIOBJS)"
7119 GUIHEADERS="\$(MSW_HEADERS)"
7120 COMMONOBJS="\$(MSW_COMMONOBJS)"
7121 GENERICOBJS="\$(MSW_GENERICOBJS)"
7122 UNIXOBJS=
7123 GUIDIST=MSW_DIST
32832908
VZ
7124
7125 RCINCSWITCH="--include-dir"
7126 RCDEFSWITCH="--define"
7127 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7128 RCINPUTSWITCH="-i"
7129 RCOUTPUTSWITCH="-o"
7130 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7131
7132 RESPROGRAM="\$(RES_PROGRAM)"
7133
10f2d63a
VZ
7134fi
7135
7136if test "$wxUSE_GTK" = 1; then
7137
7138 if test x$gtk_config_exec_prefix != x ; then
7139 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7140 if test x${GTK_CONFIG+set} != xset ; then
7141 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7142 fi
7143 fi
7144 if test x$gtk_config_prefix != x ; then
7145 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7146 if test x${GTK_CONFIG+set} != xset ; then
7147 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7148 fi
7149 fi
7150
7151 # Extract the first word of "gtk-config", so it can be a program name with args.
7152set dummy gtk-config; ac_word=$2
7153echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f6bcfd97
BP
7154echo "configure:7155: checking for $ac_word" >&5
7155if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7156 echo $ac_n "(cached) $ac_c" 1>&6
7157else
7158 case "$GTK_CONFIG" in
7159 /*)
7160 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7161 ;;
7162 ?:/*)
7163 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7164 ;;
7165 *)
7166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7167 ac_dummy="$PATH"
7168 for ac_dir in $ac_dummy; do
7169 test -z "$ac_dir" && ac_dir=.
7170 if test -f $ac_dir/$ac_word; then
7171 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7172 break
7173 fi
7174 done
7175 IFS="$ac_save_ifs"
7176 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7177 ;;
7178esac
7179fi
7180GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7181if test -n "$GTK_CONFIG"; then
7182 echo "$ac_t""$GTK_CONFIG" 1>&6
7183else
7184 echo "$ac_t""no" 1>&6
7185fi
7186
7187 min_gtk_version=1.2.7
7188 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7189echo "configure:7190: checking for GTK - version >= $min_gtk_version" >&5
7190 no_gtk=""
7191 if test "$GTK_CONFIG" != "no" ; then
7192 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7193 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7194 ac_save_CFLAGS="$CFLAGS"
7195 ac_save_LIBS="$LIBS"
7196 CFLAGS="$CFLAGS $GTK_CFLAGS"
7197 LIBS="$LIBS $GTK_LIBS"
7198 if test "$cross_compiling" = yes; then
7199 echo $ac_n "cross compiling; assumed OK... $ac_c"
7200else
7201 cat > conftest.$ac_ext <<EOF
7202#line 7203 "configure"
7203#include "confdefs.h"
7204
7205#include <gtk/gtk.h>
7206#include <gtk/gtkfeatures.h>
7207#include <stdio.h>
7208#include <stdlib.h>
7209
7210int
7211main ()
7212{
7213 int major, minor, micro;
7214
7215 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7216 printf("%s, bad version string\n", "$min_gtk_version");
7217 exit(1);
7218 }
7219
7220 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7221 (GTK_MINOR_VERSION != gtk_minor_version) ||
7222 (GTK_MICRO_VERSION != gtk_micro_version)) {
7223 printf("Headers vs. library version mismatch!\n");
7224 exit(1);
7225 }
7226
7227 if (gtk_minor_version == 1) return FALSE;
7228
7229 return !((gtk_major_version > major) ||
7230 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7231 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7232}
7233
7234EOF
7235if { (eval echo configure:7236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7236then
7237 :
7238else
7239 echo "configure: failed program was:" >&5
7240 cat conftest.$ac_ext >&5
7241 rm -fr conftest*
7242 no_gtk=yes
7243fi
7244rm -fr conftest*
7245fi
7246
7247 CFLAGS="$ac_save_CFLAGS"
7248 LIBS="$ac_save_LIBS"
7249 else
7250 no_gtk=yes
7251 fi
7252 if test "x$no_gtk" = x ; then
7253 echo "$ac_t""yes" 1>&6
7254 WXGTK127=1
7255 else
7256 echo "$ac_t""no" 1>&6
7257 GTK_CFLAGS=""
7258 GTK_LIBS=""
7259 :
7260 fi
7261
7262
7263
7264
7265 if test x$gtk_config_exec_prefix != x ; then
7266 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7267 if test x${GTK_CONFIG+set} != xset ; then
7268 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7269 fi
7270 fi
7271 if test x$gtk_config_prefix != x ; then
7272 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7273 if test x${GTK_CONFIG+set} != xset ; then
7274 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7275 fi
7276 fi
7277
7278 # Extract the first word of "gtk-config", so it can be a program name with args.
7279set dummy gtk-config; ac_word=$2
7280echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7281echo "configure:7282: checking for $ac_word" >&5
10f2d63a
VZ
7282if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7283 echo $ac_n "(cached) $ac_c" 1>&6
7284else
7285 case "$GTK_CONFIG" in
7286 /*)
7287 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7288 ;;
7289 ?:/*)
7290 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7291 ;;
7292 *)
7293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7294 ac_dummy="$PATH"
7295 for ac_dir in $ac_dummy; do
7296 test -z "$ac_dir" && ac_dir=.
7297 if test -f $ac_dir/$ac_word; then
7298 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7299 break
7300 fi
7301 done
7302 IFS="$ac_save_ifs"
7303 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7304 ;;
7305esac
7306fi
7307GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7308if test -n "$GTK_CONFIG"; then
7309 echo "$ac_t""$GTK_CONFIG" 1>&6
7310else
7311 echo "$ac_t""no" 1>&6
7312fi
7313
04165bec 7314 min_gtk_version=1.2.3
10f2d63a 7315 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
f6bcfd97 7316echo "configure:7317: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7317 no_gtk=""
7318 if test "$GTK_CONFIG" != "no" ; then
7319 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7320 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7321 ac_save_CFLAGS="$CFLAGS"
7322 ac_save_LIBS="$LIBS"
7323 CFLAGS="$CFLAGS $GTK_CFLAGS"
7324 LIBS="$LIBS $GTK_LIBS"
7325 if test "$cross_compiling" = yes; then
7326 echo $ac_n "cross compiling; assumed OK... $ac_c"
7327else
7328 cat > conftest.$ac_ext <<EOF
f6bcfd97 7329#line 7330 "configure"
10f2d63a
VZ
7330#include "confdefs.h"
7331
7332#include <gtk/gtk.h>
f49f2b0c 7333#include <gtk/gtkfeatures.h>
10f2d63a 7334#include <stdio.h>
32832908 7335#include <stdlib.h>
10f2d63a
VZ
7336
7337int
7338main ()
7339{
7340 int major, minor, micro;
7341
7342 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7343 printf("%s, bad version string\n", "$min_gtk_version");
7344 exit(1);
7345 }
7346
f49f2b0c
RR
7347 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7348 (GTK_MINOR_VERSION != gtk_minor_version) ||
7349 (GTK_MICRO_VERSION != gtk_micro_version)) {
7350 printf("Headers vs. library version mismatch!\n");
7351 exit(1);
7352 }
7353
10f2d63a
VZ
7354 if (gtk_minor_version == 1) return FALSE;
7355
7356 return !((gtk_major_version > major) ||
7357 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7358 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7359}
7360
7361EOF
f6bcfd97 7362if { (eval echo configure:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7363then
7364 :
7365else
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7368 rm -fr conftest*
7369 no_gtk=yes
7370fi
7371rm -fr conftest*
7372fi
7373
7374 CFLAGS="$ac_save_CFLAGS"
7375 LIBS="$ac_save_LIBS"
7376 else
7377 no_gtk=yes
7378 fi
7379 if test "x$no_gtk" = x ; then
7380 echo "$ac_t""yes" 1>&6
7381 WXGTK12=1
7382 else
7383 echo "$ac_t""no" 1>&6
7384 GTK_CFLAGS=""
7385 GTK_LIBS=""
7e99ad86 7386 :
10f2d63a
VZ
7387 fi
7388
7389
7390
7391
7e99ad86
VZ
7392 if test "$WXGTK12" != 1; then
7393 { echo "configure: error:
7394 Please check that gtk-config is in path, the directory
7395 where GTK+ libraries are installed (returned by
7396 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7397 equivalent variable and GTK+ is version 1.2.3 or above.
7398 " 1>&2; exit 1; }
7399 fi
7400
7401
10f2d63a 7402 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7403
7404
7405 GUI_TK_LIBRARY="$GTK_LIBS"
7406
10f2d63a
VZ
7407 TOOLKIT=GTK
7408
dad6c0ea
VZ
7409 AFMINSTALL=afminstall
7410
10f2d63a
VZ
7411 GUIOBJS="\$(GTK_GUIOBJS)"
7412 GUIHEADERS="\$(GTK_HEADERS)"
7413 COMMONOBJS="\$(GTK_COMMONOBJS)"
7414 GENERICOBJS="\$(GTK_GENERICOBJS)"
7415 GUIDEPS="\$(GTK_GUIDEPS)"
7416 COMMONDEPS="\$(GTK_COMMONDEPS)"
7417 GENERICDEPS="\$(GTK_GENERICDEPS)"
7418 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7419 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7420 GUIDIST=GTK_DIST
7ec2881a 7421
2224580a 7422 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
f6bcfd97 7423echo "configure:7424: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7424ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7425if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7426 echo $ac_n "(cached) $ac_c" 1>&6
7427else
7428 ac_save_LIBS="$LIBS"
7429LIBS="-lgdk $LIBS"
7430cat > conftest.$ac_ext <<EOF
f6bcfd97 7431#line 7432 "configure"
7ec2881a
RR
7432#include "confdefs.h"
7433/* Override any gcc2 internal prototype to avoid an error. */
7434/* We use char because int might match the return type of a gcc2
7435 builtin and then its argument prototype would still apply. */
7436char gdk_im_open();
7437
7438int main() {
7439gdk_im_open()
7440; return 0; }
7441EOF
f6bcfd97 7442if { (eval echo configure:7443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7443 rm -rf conftest*
7444 eval "ac_cv_lib_$ac_lib_var=yes"
7445else
7446 echo "configure: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7448 rm -rf conftest*
7449 eval "ac_cv_lib_$ac_lib_var=no"
7450fi
7451rm -f conftest*
7452LIBS="$ac_save_LIBS"
7453
7454fi
7455if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7456 echo "$ac_t""yes" 1>&6
7457 cat >> confdefs.h <<\EOF
7458#define HAVE_XIM 1
7459EOF
7460
7461else
7462 echo "$ac_t""no" 1>&6
7463fi
7464
10f2d63a
VZ
7465fi
7466
7467if test "$wxUSE_WINE" = 1; then
7468 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
f6bcfd97 7469echo "configure:7470: checking for WINE includes" >&5
10f2d63a
VZ
7470
7471ac_find_includes=
7472for ac_dir in $SEARCH_INCLUDE;
7473 do
7474 if test -f "$ac_dir/windows.h"; then
7475 ac_find_includes=$ac_dir
7476 break
7477 fi
7478 done
7479
7480 if test "$ac_find_includes" != "" ; then
7481 echo "$ac_t""found $ac_find_includes" 1>&6
7482 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7483 else
7484 echo "$ac_t""no" 1>&6
7485 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7486 fi
7487
7488 XPM_LINK=""
7489 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
f6bcfd97 7490echo "configure:7491: checking for Xpm library" >&5
10f2d63a
VZ
7491
7492ac_find_libraries=
7493for ac_dir in $SEARCH_LIB;
7494 do
7495 for ac_extension in a so sl; do
7496 if test -f "$ac_dir/libXpm.$ac_extension"; then
7497 ac_find_libraries=$ac_dir
7498 break 2
7499 fi
7500 done
7501 done
7502
7503 if test "$ac_find_libraries" != "" ; then
7504 GUI_TK_LIBRARY="-L$ac_find_libraries"
7505 XPM_LINK="-lXpm"
7506 cat >> confdefs.h <<\EOF
7507#define wxHAVE_LIB_XPM 1
7508EOF
7509
7510 echo "$ac_t""found at $ac_find_libraries" 1>&6
7511 else
7512 echo "$ac_t""no" 1>&6
7513 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7514 fi
7515
7516 MESA_LINK=""
7517 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
f6bcfd97 7518echo "configure:7519: checking for Mesa library" >&5
10f2d63a
VZ
7519
7520ac_find_libraries=
7521for ac_dir in $SEARCH_LIB;
7522 do
7523 for ac_extension in a so sl; do
7524 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7525 ac_find_libraries=$ac_dir
7526 break 2
7527 fi
7528 done
7529 done
7530
7531 if test "$ac_find_libraries" != "" ; then
7532 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7533 MESA_LINK="-lMesaGL"
7534 echo "$ac_t""found at $ac_find_libraries" 1>&6
7535 else
7536 { echo "configure: error: no" 1>&2; exit 1; }
7537 fi
7538
8916026b 7539 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10f2d63a
VZ
7540 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7541 WXWINE=1
7542 TOOLKIT=MSW
7543
7544 GUIHEADERS="\$(MSW_HEADERS)"
7545 GUIOBJS="\$(MSW_GUIOBJS)"
7546 COMMONOBJS="\$(MSW_COMMONOBJS)"
7547 GENERICOBJS="\$(MSW_GENERICOBJS)"
7548 GUIDEPS="\$(MSW_GUIDEPS)"
7549 COMMONDEPS="\$(MSW_COMMONDEPS)"
7550 GENERICDEPS="\$(MSW_GENERICDEPS)"
7551 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7552 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7553 GUIDIST=MSW_DIST
7554fi
7555
7556if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7557 # If we find X, set shell vars x_includes and x_libraries to the
7558# paths, otherwise set no_x=yes.
7559# Uses ac_ vars as temps to allow command line to override cache and checks.
7560# --without-x overrides everything else, but does not touch the cache.
7561echo $ac_n "checking for X""... $ac_c" 1>&6
f6bcfd97 7562echo "configure:7563: checking for X" >&5
ab9b9eab
VZ
7563
7564# Check whether --with-x or --without-x was given.
7565if test "${with_x+set}" = set; then
7566 withval="$with_x"
7567 :
7568fi
ba337fe7 7569
ab9b9eab
VZ
7570# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7571if test "x$with_x" = xno; then
7572 # The user explicitly disabled X.
7573 have_x=disabled
7574else
7575 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7576 # Both variables are already set.
7577 have_x=yes
7578 else
7579if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7580 echo $ac_n "(cached) $ac_c" 1>&6
7581else
7582 # One or both of the vars are not set, and there is no cached value.
7583ac_x_includes=NO ac_x_libraries=NO
7584rm -fr conftestdir
7585if mkdir conftestdir; then
7586 cd conftestdir
7587 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7588 cat > Imakefile <<'EOF'
7589acfindx:
7590 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7591EOF
7592 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7593 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7594 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7595 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7596 for ac_extension in a so sl; do
ab9b9eab
VZ
7597 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7598 test -f $ac_im_libdir/libX11.$ac_extension; then
7599 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7600 fi
7601 done
ab9b9eab
VZ
7602 # Screen out bogus values from the imake configuration. They are
7603 # bogus both because they are the default anyway, and because
7604 # using them would break gcc on systems where it needs fixed includes.
7605 case "$ac_im_incroot" in
7606 /usr/include) ;;
7607 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7608 esac
7609 case "$ac_im_usrlibdir" in
7610 /usr/lib | /lib) ;;
7611 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7612 esac
ba337fe7 7613 fi
ab9b9eab
VZ
7614 cd ..
7615 rm -fr conftestdir
7616fi
10f2d63a 7617
ab9b9eab
VZ
7618if test "$ac_x_includes" = NO; then
7619 # Guess where to find include files, by looking for this one X11 .h file.
7620 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7621
ab9b9eab
VZ
7622 # First, try using that file with no special directory specified.
7623cat > conftest.$ac_ext <<EOF
f6bcfd97 7624#line 7625 "configure"
ab9b9eab
VZ
7625#include "confdefs.h"
7626#include <$x_direct_test_include>
7627EOF
7628ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 7629{ (eval echo configure:7630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7630ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7631if test -z "$ac_err"; then
7632 rm -rf conftest*
7633 # We can compile using X headers with no special include directory.
7634ac_x_includes=
7635else
7636 echo "$ac_err" >&5
7637 echo "configure: failed program was:" >&5
7638 cat conftest.$ac_ext >&5
7639 rm -rf conftest*
7640 # Look for the header file in a standard set of common directories.
7641# Check X11 before X11Rn because it is often a symlink to the current release.
7642 for ac_dir in \
7643 /usr/X11/include \
7644 /usr/X11R6/include \
7645 /usr/X11R5/include \
7646 /usr/X11R4/include \
7647 \
7648 /usr/include/X11 \
7649 /usr/include/X11R6 \
7650 /usr/include/X11R5 \
7651 /usr/include/X11R4 \
7652 \
7653 /usr/local/X11/include \
7654 /usr/local/X11R6/include \
7655 /usr/local/X11R5/include \
7656 /usr/local/X11R4/include \
7657 \
7658 /usr/local/include/X11 \
7659 /usr/local/include/X11R6 \
7660 /usr/local/include/X11R5 \
7661 /usr/local/include/X11R4 \
7662 \
7663 /usr/X386/include \
7664 /usr/x386/include \
7665 /usr/XFree86/include/X11 \
7666 \
7667 /usr/include \
7668 /usr/local/include \
7669 /usr/unsupported/include \
7670 /usr/athena/include \
7671 /usr/local/x11r5/include \
7672 /usr/lpp/Xamples/include \
7673 \
7674 /usr/openwin/include \
7675 /usr/openwin/share/include \
7676 ; \
10f2d63a 7677 do
ab9b9eab
VZ
7678 if test -r "$ac_dir/$x_direct_test_include"; then
7679 ac_x_includes=$ac_dir
10f2d63a
VZ
7680 break
7681 fi
7682 done
ab9b9eab
VZ
7683fi
7684rm -f conftest*
7685fi # $ac_x_includes = NO
10f2d63a 7686
ab9b9eab
VZ
7687if test "$ac_x_libraries" = NO; then
7688 # Check for the libraries.
10f2d63a 7689
ab9b9eab
VZ
7690 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7691 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7692
ab9b9eab
VZ
7693 # See if we find them without any special options.
7694 # Don't add to $LIBS permanently.
7695 ac_save_LIBS="$LIBS"
7696 LIBS="-l$x_direct_test_library $LIBS"
7697cat > conftest.$ac_ext <<EOF
f6bcfd97 7698#line 7699 "configure"
ab9b9eab 7699#include "confdefs.h"
10f2d63a 7700
ab9b9eab
VZ
7701int main() {
7702${x_direct_test_function}()
7703; return 0; }
7704EOF
f6bcfd97 7705if { (eval echo configure:7706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7706 rm -rf conftest*
7707 LIBS="$ac_save_LIBS"
7708# We can link X programs with no special library path.
7709ac_x_libraries=
7710else
7711 echo "configure: failed program was:" >&5
7712 cat conftest.$ac_ext >&5
7713 rm -rf conftest*
7714 LIBS="$ac_save_LIBS"
7715# First see if replacing the include by lib works.
7716# Check X11 before X11Rn because it is often a symlink to the current release.
7717for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7718 /usr/X11/lib \
7719 /usr/X11R6/lib \
7720 /usr/X11R5/lib \
7721 /usr/X11R4/lib \
7722 \
7723 /usr/lib/X11 \
7724 /usr/lib/X11R6 \
7725 /usr/lib/X11R5 \
7726 /usr/lib/X11R4 \
7727 \
7728 /usr/local/X11/lib \
7729 /usr/local/X11R6/lib \
7730 /usr/local/X11R5/lib \
7731 /usr/local/X11R4/lib \
7732 \
7733 /usr/local/lib/X11 \
7734 /usr/local/lib/X11R6 \
7735 /usr/local/lib/X11R5 \
7736 /usr/local/lib/X11R4 \
7737 \
7738 /usr/X386/lib \
7739 /usr/x386/lib \
7740 /usr/XFree86/lib/X11 \
7741 \
7742 /usr/lib \
7743 /usr/local/lib \
7744 /usr/unsupported/lib \
7745 /usr/athena/lib \
7746 /usr/local/x11r5/lib \
7747 /usr/lpp/Xamples/lib \
7748 /lib/usr/lib/X11 \
7749 \
7750 /usr/openwin/lib \
7751 /usr/openwin/share/lib \
7752 ; \
7753do
7754 for ac_extension in a so sl; do
7755 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7756 ac_x_libraries=$ac_dir
7757 break 2
10f2d63a 7758 fi
10f2d63a 7759 done
ab9b9eab
VZ
7760done
7761fi
7762rm -f conftest*
7763fi # $ac_x_libraries = NO
10f2d63a 7764
ab9b9eab
VZ
7765if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7766 # Didn't find X anywhere. Cache the known absence of X.
7767 ac_cv_have_x="have_x=no"
7768else
7769 # Record where we found X for the cache.
7770 ac_cv_have_x="have_x=yes \
7771 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7772fi
7773fi
10f2d63a 7774 fi
ab9b9eab
VZ
7775 eval "$ac_cv_have_x"
7776fi # $with_x != no
10f2d63a 7777
ab9b9eab
VZ
7778if test "$have_x" != yes; then
7779 echo "$ac_t""$have_x" 1>&6
7780 no_x=yes
7781else
7782 # If each of the values was on the command line, it overrides each guess.
7783 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7784 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7785 # Update the cache value to reflect the command line values.
7786 ac_cv_have_x="have_x=yes \
7787 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7788 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7789fi
10f2d63a 7790
ab9b9eab
VZ
7791if test "$no_x" = yes; then
7792 # Not all programs may use this symbol, but it does not hurt to define it.
7793 cat >> confdefs.h <<\EOF
7794#define X_DISPLAY_MISSING 1
7795EOF
10f2d63a 7796
ab9b9eab
VZ
7797 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7798else
7799 if test -n "$x_includes"; then
7800 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7801 fi
7802
ab9b9eab
VZ
7803 # It would also be nice to do this for all -L options, not just this one.
7804 if test -n "$x_libraries"; then
7805 X_LIBS="$X_LIBS -L$x_libraries"
7806 # For Solaris; some versions of Sun CC require a space after -R and
7807 # others require no space. Words are not sufficient . . . .
7808 case "`(uname -sr) 2>/dev/null`" in
7809 "SunOS 5"*)
7810 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
f6bcfd97 7811echo "configure:7812: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7812 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7813 cat > conftest.$ac_ext <<EOF
f6bcfd97 7814#line 7815 "configure"
ab9b9eab 7815#include "confdefs.h"
10f2d63a 7816
ab9b9eab 7817int main() {
788deba1 7818
ab9b9eab
VZ
7819; return 0; }
7820EOF
f6bcfd97 7821if { (eval echo configure:7822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7822 rm -rf conftest*
7823 ac_R_nospace=yes
7824else
7825 echo "configure: failed program was:" >&5
7826 cat conftest.$ac_ext >&5
7827 rm -rf conftest*
7828 ac_R_nospace=no
7829fi
7830rm -f conftest*
7831 if test $ac_R_nospace = yes; then
7832 echo "$ac_t""no" 1>&6
7833 X_LIBS="$X_LIBS -R$x_libraries"
7834 else
7835 LIBS="$ac_xsave_LIBS -R $x_libraries"
7836 cat > conftest.$ac_ext <<EOF
f6bcfd97 7837#line 7838 "configure"
ab9b9eab 7838#include "confdefs.h"
788deba1 7839
ab9b9eab
VZ
7840int main() {
7841
7842; return 0; }
7843EOF
f6bcfd97 7844if { (eval echo configure:7845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7845 rm -rf conftest*
7846 ac_R_space=yes
7847else
7848 echo "configure: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7850 rm -rf conftest*
7851 ac_R_space=no
7852fi
7853rm -f conftest*
7854 if test $ac_R_space = yes; then
7855 echo "$ac_t""yes" 1>&6
7856 X_LIBS="$X_LIBS -R $x_libraries"
7857 else
7858 echo "$ac_t""neither works" 1>&6
7859 fi
7860 fi
7861 LIBS="$ac_xsave_LIBS"
7862 esac
7863 fi
7864
7865 # Check for system-dependent libraries X programs must link with.
7866 # Do this before checking for the system-independent R6 libraries
7867 # (-lICE), since we may need -lsocket or whatever for X linking.
7868
7869 if test "$ISC" = yes; then
7870 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7871 else
7872 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7873 # libraries were built with DECnet support. And karl@cs.umb.edu says
7874 # the Alpha needs dnet_stub (dnet does not exist).
7875 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
f6bcfd97 7876echo "configure:7877: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7877ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7878if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7879 echo $ac_n "(cached) $ac_c" 1>&6
7880else
7881 ac_save_LIBS="$LIBS"
7882LIBS="-ldnet $LIBS"
7883cat > conftest.$ac_ext <<EOF
f6bcfd97 7884#line 7885 "configure"
ab9b9eab
VZ
7885#include "confdefs.h"
7886/* Override any gcc2 internal prototype to avoid an error. */
7887/* We use char because int might match the return type of a gcc2
7888 builtin and then its argument prototype would still apply. */
7889char dnet_ntoa();
7890
7891int main() {
7892dnet_ntoa()
7893; return 0; }
7894EOF
f6bcfd97 7895if { (eval echo configure:7896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7896 rm -rf conftest*
7897 eval "ac_cv_lib_$ac_lib_var=yes"
7898else
7899 echo "configure: failed program was:" >&5
7900 cat conftest.$ac_ext >&5
7901 rm -rf conftest*
7902 eval "ac_cv_lib_$ac_lib_var=no"
7903fi
7904rm -f conftest*
7905LIBS="$ac_save_LIBS"
7906
7907fi
7908if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7909 echo "$ac_t""yes" 1>&6
7910 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7911else
7912 echo "$ac_t""no" 1>&6
7913fi
7914
7915 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7916 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
f6bcfd97 7917echo "configure:7918: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7918ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7919if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7920 echo $ac_n "(cached) $ac_c" 1>&6
7921else
7922 ac_save_LIBS="$LIBS"
7923LIBS="-ldnet_stub $LIBS"
7924cat > conftest.$ac_ext <<EOF
f6bcfd97 7925#line 7926 "configure"
ab9b9eab
VZ
7926#include "confdefs.h"
7927/* Override any gcc2 internal prototype to avoid an error. */
7928/* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */
7930char dnet_ntoa();
7931
7932int main() {
7933dnet_ntoa()
7934; return 0; }
7935EOF
f6bcfd97 7936if { (eval echo configure:7937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7937 rm -rf conftest*
7938 eval "ac_cv_lib_$ac_lib_var=yes"
7939else
7940 echo "configure: failed program was:" >&5
7941 cat conftest.$ac_ext >&5
7942 rm -rf conftest*
7943 eval "ac_cv_lib_$ac_lib_var=no"
7944fi
7945rm -f conftest*
7946LIBS="$ac_save_LIBS"
7947
7948fi
7949if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7950 echo "$ac_t""yes" 1>&6
7951 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7952else
7953 echo "$ac_t""no" 1>&6
7954fi
7955
7956 fi
7957
7958 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7959 # to get the SysV transport functions.
7960 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7961 # needs -lnsl.
7962 # The nsl library prevents programs from opening the X display
7963 # on Irix 5.2, according to dickey@clark.net.
7964 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
f6bcfd97 7965echo "configure:7966: checking for gethostbyname" >&5
ab9b9eab
VZ
7966if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7967 echo $ac_n "(cached) $ac_c" 1>&6
7968else
7969 cat > conftest.$ac_ext <<EOF
f6bcfd97 7970#line 7971 "configure"
ab9b9eab
VZ
7971#include "confdefs.h"
7972/* System header to define __stub macros and hopefully few prototypes,
7973 which can conflict with char gethostbyname(); below. */
7974#include <assert.h>
7975/* Override any gcc2 internal prototype to avoid an error. */
7976/* We use char because int might match the return type of a gcc2
7977 builtin and then its argument prototype would still apply. */
7978char gethostbyname();
7979
7980int main() {
7981
7982/* The GNU C library defines this for functions which it implements
7983 to always fail with ENOSYS. Some functions are actually named
7984 something starting with __ and the normal name is an alias. */
7985#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7986choke me
7987#else
e8482f24 7988gethostbyname();
ab9b9eab
VZ
7989#endif
7990
7991; return 0; }
7992EOF
f6bcfd97 7993if { (eval echo configure:7994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7994 rm -rf conftest*
7995 eval "ac_cv_func_gethostbyname=yes"
7996else
7997 echo "configure: failed program was:" >&5
7998 cat conftest.$ac_ext >&5
7999 rm -rf conftest*
8000 eval "ac_cv_func_gethostbyname=no"
8001fi
8002rm -f conftest*
8003fi
8004
8005if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8006 echo "$ac_t""yes" 1>&6
8007 :
8008else
8009 echo "$ac_t""no" 1>&6
8010fi
8011
8012 if test $ac_cv_func_gethostbyname = no; then
8013 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
f6bcfd97 8014echo "configure:8015: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
8015ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8016if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8017 echo $ac_n "(cached) $ac_c" 1>&6
8018else
8019 ac_save_LIBS="$LIBS"
8020LIBS="-lnsl $LIBS"
8021cat > conftest.$ac_ext <<EOF
f6bcfd97 8022#line 8023 "configure"
ab9b9eab
VZ
8023#include "confdefs.h"
8024/* Override any gcc2 internal prototype to avoid an error. */
8025/* We use char because int might match the return type of a gcc2
8026 builtin and then its argument prototype would still apply. */
8027char gethostbyname();
8028
8029int main() {
8030gethostbyname()
8031; return 0; }
8032EOF
f6bcfd97 8033if { (eval echo configure:8034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8034 rm -rf conftest*
8035 eval "ac_cv_lib_$ac_lib_var=yes"
8036else
8037 echo "configure: failed program was:" >&5
8038 cat conftest.$ac_ext >&5
8039 rm -rf conftest*
8040 eval "ac_cv_lib_$ac_lib_var=no"
8041fi
8042rm -f conftest*
8043LIBS="$ac_save_LIBS"
8044
8045fi
8046if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8047 echo "$ac_t""yes" 1>&6
8048 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8049else
8050 echo "$ac_t""no" 1>&6
8051fi
8052
8053 fi
8054
8055 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8056 # socket/setsockopt and other routines are undefined under SCO ODT
8057 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8058 # on later versions), says simon@lia.di.epfl.ch: it contains
8059 # gethostby* variants that don't use the nameserver (or something).
8060 # -lsocket must be given before -lnsl if both are needed.
8061 # We assume that if connect needs -lnsl, so does gethostbyname.
8062 echo $ac_n "checking for connect""... $ac_c" 1>&6
f6bcfd97 8063echo "configure:8064: checking for connect" >&5
ab9b9eab
VZ
8064if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
8065 echo $ac_n "(cached) $ac_c" 1>&6
8066else
8067 cat > conftest.$ac_ext <<EOF
f6bcfd97 8068#line 8069 "configure"
ab9b9eab
VZ
8069#include "confdefs.h"
8070/* System header to define __stub macros and hopefully few prototypes,
8071 which can conflict with char connect(); below. */
8072#include <assert.h>
8073/* Override any gcc2 internal prototype to avoid an error. */
8074/* We use char because int might match the return type of a gcc2
8075 builtin and then its argument prototype would still apply. */
8076char connect();
8077
8078int main() {
8079
8080/* The GNU C library defines this for functions which it implements
8081 to always fail with ENOSYS. Some functions are actually named
8082 something starting with __ and the normal name is an alias. */
8083#if defined (__stub_connect) || defined (__stub___connect)
8084choke me
8085#else
e8482f24 8086connect();
ab9b9eab
VZ
8087#endif
8088
8089; return 0; }
8090EOF
f6bcfd97 8091if { (eval echo configure:8092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8092 rm -rf conftest*
8093 eval "ac_cv_func_connect=yes"
8094else
8095 echo "configure: failed program was:" >&5
8096 cat conftest.$ac_ext >&5
8097 rm -rf conftest*
8098 eval "ac_cv_func_connect=no"
8099fi
8100rm -f conftest*
8101fi
8102
8103if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8104 echo "$ac_t""yes" 1>&6
8105 :
8106else
8107 echo "$ac_t""no" 1>&6
8108fi
8109
8110 if test $ac_cv_func_connect = no; then
8111 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
f6bcfd97 8112echo "configure:8113: checking for connect in -lsocket" >&5
ab9b9eab
VZ
8113ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
8114if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8115 echo $ac_n "(cached) $ac_c" 1>&6
8116else
8117 ac_save_LIBS="$LIBS"
8118LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8119cat > conftest.$ac_ext <<EOF
f6bcfd97 8120#line 8121 "configure"
ab9b9eab
VZ
8121#include "confdefs.h"
8122/* Override any gcc2 internal prototype to avoid an error. */
8123/* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8125char connect();
8126
8127int main() {
8128connect()
8129; return 0; }
8130EOF
f6bcfd97 8131if { (eval echo configure:8132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8132 rm -rf conftest*
8133 eval "ac_cv_lib_$ac_lib_var=yes"
8134else
8135 echo "configure: failed program was:" >&5
8136 cat conftest.$ac_ext >&5
8137 rm -rf conftest*
8138 eval "ac_cv_lib_$ac_lib_var=no"
8139fi
8140rm -f conftest*
8141LIBS="$ac_save_LIBS"
8142
8143fi
8144if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8145 echo "$ac_t""yes" 1>&6
8146 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8147else
8148 echo "$ac_t""no" 1>&6
8149fi
8150
8151 fi
8152
8153 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
8154 echo $ac_n "checking for remove""... $ac_c" 1>&6
f6bcfd97 8155echo "configure:8156: checking for remove" >&5
ab9b9eab
VZ
8156if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
8157 echo $ac_n "(cached) $ac_c" 1>&6
8158else
8159 cat > conftest.$ac_ext <<EOF
f6bcfd97 8160#line 8161 "configure"
ab9b9eab
VZ
8161#include "confdefs.h"
8162/* System header to define __stub macros and hopefully few prototypes,
8163 which can conflict with char remove(); below. */
8164#include <assert.h>
8165/* Override any gcc2 internal prototype to avoid an error. */
8166/* We use char because int might match the return type of a gcc2
8167 builtin and then its argument prototype would still apply. */
8168char remove();
8169
8170int main() {
8171
8172/* The GNU C library defines this for functions which it implements
8173 to always fail with ENOSYS. Some functions are actually named
8174 something starting with __ and the normal name is an alias. */
8175#if defined (__stub_remove) || defined (__stub___remove)
8176choke me
8177#else
e8482f24 8178remove();
ab9b9eab
VZ
8179#endif
8180
8181; return 0; }
8182EOF
f6bcfd97 8183if { (eval echo configure:8184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8184 rm -rf conftest*
8185 eval "ac_cv_func_remove=yes"
8186else
8187 echo "configure: failed program was:" >&5
8188 cat conftest.$ac_ext >&5
8189 rm -rf conftest*
8190 eval "ac_cv_func_remove=no"
8191fi
8192rm -f conftest*
8193fi
8194
8195if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8196 echo "$ac_t""yes" 1>&6
8197 :
8198else
8199 echo "$ac_t""no" 1>&6
8200fi
8201
8202 if test $ac_cv_func_remove = no; then
8203 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
f6bcfd97 8204echo "configure:8205: checking for remove in -lposix" >&5
ab9b9eab
VZ
8205ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8206if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8207 echo $ac_n "(cached) $ac_c" 1>&6
8208else
8209 ac_save_LIBS="$LIBS"
8210LIBS="-lposix $LIBS"
8211cat > conftest.$ac_ext <<EOF
f6bcfd97 8212#line 8213 "configure"
ab9b9eab
VZ
8213#include "confdefs.h"
8214/* Override any gcc2 internal prototype to avoid an error. */
8215/* We use char because int might match the return type of a gcc2
8216 builtin and then its argument prototype would still apply. */
8217char remove();
8218
8219int main() {
8220remove()
8221; return 0; }
8222EOF
f6bcfd97 8223if { (eval echo configure:8224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8224 rm -rf conftest*
8225 eval "ac_cv_lib_$ac_lib_var=yes"
8226else
8227 echo "configure: failed program was:" >&5
8228 cat conftest.$ac_ext >&5
8229 rm -rf conftest*
8230 eval "ac_cv_lib_$ac_lib_var=no"
8231fi
8232rm -f conftest*
8233LIBS="$ac_save_LIBS"
8234
8235fi
8236if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8237 echo "$ac_t""yes" 1>&6
8238 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8239else
8240 echo "$ac_t""no" 1>&6
8241fi
8242
8243 fi
8244
8245 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8246 echo $ac_n "checking for shmat""... $ac_c" 1>&6
f6bcfd97 8247echo "configure:8248: checking for shmat" >&5
ab9b9eab
VZ
8248if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8249 echo $ac_n "(cached) $ac_c" 1>&6
8250else
8251 cat > conftest.$ac_ext <<EOF
f6bcfd97 8252#line 8253 "configure"
ab9b9eab
VZ
8253#include "confdefs.h"
8254/* System header to define __stub macros and hopefully few prototypes,
8255 which can conflict with char shmat(); below. */
8256#include <assert.h>
8257/* Override any gcc2 internal prototype to avoid an error. */
8258/* We use char because int might match the return type of a gcc2
8259 builtin and then its argument prototype would still apply. */
8260char shmat();
8261
8262int main() {
8263
8264/* The GNU C library defines this for functions which it implements
8265 to always fail with ENOSYS. Some functions are actually named
8266 something starting with __ and the normal name is an alias. */
8267#if defined (__stub_shmat) || defined (__stub___shmat)
8268choke me
8269#else
e8482f24 8270shmat();
ab9b9eab
VZ
8271#endif
8272
8273; return 0; }
8274EOF
f6bcfd97 8275if { (eval echo configure:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8276 rm -rf conftest*
8277 eval "ac_cv_func_shmat=yes"
8278else
8279 echo "configure: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8281 rm -rf conftest*
8282 eval "ac_cv_func_shmat=no"
8283fi
8284rm -f conftest*
8285fi
8286
8287if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8288 echo "$ac_t""yes" 1>&6
8289 :
8290else
8291 echo "$ac_t""no" 1>&6
8292fi
8293
8294 if test $ac_cv_func_shmat = no; then
8295 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
f6bcfd97 8296echo "configure:8297: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8297ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8298if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8299 echo $ac_n "(cached) $ac_c" 1>&6
8300else
8301 ac_save_LIBS="$LIBS"
8302LIBS="-lipc $LIBS"
8303cat > conftest.$ac_ext <<EOF
f6bcfd97 8304#line 8305 "configure"
ab9b9eab
VZ
8305#include "confdefs.h"
8306/* Override any gcc2 internal prototype to avoid an error. */
8307/* We use char because int might match the return type of a gcc2
8308 builtin and then its argument prototype would still apply. */
8309char shmat();
8310
8311int main() {
8312shmat()
8313; return 0; }
8314EOF
f6bcfd97 8315if { (eval echo configure:8316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8316 rm -rf conftest*
8317 eval "ac_cv_lib_$ac_lib_var=yes"
8318else
8319 echo "configure: failed program was:" >&5
8320 cat conftest.$ac_ext >&5
8321 rm -rf conftest*
8322 eval "ac_cv_lib_$ac_lib_var=no"
8323fi
8324rm -f conftest*
8325LIBS="$ac_save_LIBS"
8326
8327fi
8328if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8329 echo "$ac_t""yes" 1>&6
8330 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8331else
8332 echo "$ac_t""no" 1>&6
8333fi
8334
8335 fi
8336 fi
8337
8338 # Check for libraries that X11R6 Xt/Xaw programs need.
8339 ac_save_LDFLAGS="$LDFLAGS"
8340 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8341 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8342 # check for ICE first), but we must link in the order -lSM -lICE or
8343 # we get undefined symbols. So assume we have SM if we have ICE.
8344 # These have to be linked with before -lX11, unlike the other
8345 # libraries we check for below, so use a different variable.
8346 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8347 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
f6bcfd97 8348echo "configure:8349: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8349ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8350if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8351 echo $ac_n "(cached) $ac_c" 1>&6
8352else
8353 ac_save_LIBS="$LIBS"
8354LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8355cat > conftest.$ac_ext <<EOF
f6bcfd97 8356#line 8357 "configure"
ab9b9eab
VZ
8357#include "confdefs.h"
8358/* Override any gcc2 internal prototype to avoid an error. */
8359/* We use char because int might match the return type of a gcc2
8360 builtin and then its argument prototype would still apply. */
8361char IceConnectionNumber();
8362
8363int main() {
8364IceConnectionNumber()
8365; return 0; }
8366EOF
f6bcfd97 8367if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8368 rm -rf conftest*
8369 eval "ac_cv_lib_$ac_lib_var=yes"
8370else
8371 echo "configure: failed program was:" >&5
8372 cat conftest.$ac_ext >&5
8373 rm -rf conftest*
8374 eval "ac_cv_lib_$ac_lib_var=no"
8375fi
8376rm -f conftest*
8377LIBS="$ac_save_LIBS"
8378
8379fi
8380if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8381 echo "$ac_t""yes" 1>&6
8382 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8383else
8384 echo "$ac_t""no" 1>&6
8385fi
8386
8387 LDFLAGS="$ac_save_LDFLAGS"
8388
8389fi
8390
8391
8392 if test "$no_x" = "yes"; then
8393 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8394 fi
8395
8396 GUI_TK_LIBRARY="$X_LIBS"
8397 TOOLKIT_INCLUDE="$X_CFLAGS"
8398
dad6c0ea
VZ
8399 AFMINSTALL=afminstall
8400
ab9b9eab 8401
cd6d6d5b
VZ
8402 COMPILED_X_PROGRAM=0
8403
ab9b9eab 8404 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
f6bcfd97 8405echo "configure:8406: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8406
8407ac_find_includes=
8408for ac_dir in $SEARCH_INCLUDE;
8409 do
8410 if test -f "$ac_dir/Xm/Xm.h"; then
8411 ac_find_includes=$ac_dir
8412 break
8413 fi
8414 done
8415
8416 if test "$ac_find_includes" != "" ; then
8417 echo "$ac_t""found $ac_find_includes" 1>&6
8418 else
cd6d6d5b 8419 cat > conftest.$ac_ext <<EOF
f6bcfd97 8420#line 8421 "configure"
cd6d6d5b
VZ
8421#include "confdefs.h"
8422
8423 #include <Xm/Xm.h>
8424
8425int main() {
8426
8427 int version;
8428
8429 version = xmUseVersion;
8430
8431; return 0; }
8432EOF
f6bcfd97 8433if { (eval echo configure:8434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8434 rm -rf conftest*
8435
8436 echo "$ac_t""found in default search path" 1>&6
8437 COMPILED_X_PROGRAM=1
8438
8439else
8440 echo "configure: failed program was:" >&5
8441 cat conftest.$ac_ext >&5
8442 rm -rf conftest*
8443
8444 echo "$ac_t""no" 1>&6
8445 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8446
8447
8448fi
8449rm -f conftest*
ab9b9eab
VZ
8450 fi
8451
cd6d6d5b
VZ
8452 if test "$COMPILED_X_PROGRAM" = 0; then
8453 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
f6bcfd97 8454echo "configure:8455: checking for Motif/Lesstif library" >&5
cd6d6d5b 8455
ab9b9eab
VZ
8456ac_find_libraries=
8457for ac_dir in $SEARCH_LIB;
8458 do
8459 for ac_extension in a so sl; do
8460 if test -f "$ac_dir/libXm.$ac_extension"; then
8461 ac_find_libraries=$ac_dir
8462 break 2
8463 fi
8464 done
8465 done
8466
cd6d6d5b
VZ
8467 if test "$ac_find_libraries" != "" ; then
8468
ab9b9eab
VZ
8469 ac_path_to_include=$ac_find_includes
8470 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8471 result=$?
8472 if test $result = 0; then
8473 ac_path_to_include=""
8474 else
8475 ac_path_to_include="-I$ac_find_includes"
8476 fi
8477
cd6d6d5b 8478
ab9b9eab
VZ
8479 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8480 result=$?
8481 if test $result = 0; then
8482 ac_path_to_link=""
8483 else
8484 ac_path_to_link="-L$ac_find_libraries"
8485 fi
8486
8487
cd6d6d5b
VZ
8488 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8489 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8490 echo "$ac_t""found at $ac_find_libraries" 1>&6
8491 else
8492 cat > conftest.$ac_ext <<EOF
f6bcfd97 8493#line 8494 "configure"
cd6d6d5b 8494#include "confdefs.h"
ab9b9eab 8495
cd6d6d5b
VZ
8496 #include <Xm/Xm.h>
8497
8498int main() {
ab9b9eab 8499
cd6d6d5b 8500 int version;
ab9b9eab 8501
cd6d6d5b
VZ
8502 version = xmUseVersion;
8503
8504; return 0; }
8505EOF
f6bcfd97 8506if { (eval echo configure:8507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8507 rm -rf conftest*
8508
8509 echo "$ac_t""found in default search path" 1>&6
8510 COMPILED_X_PROGRAM=1
8511
8512else
8513 echo "configure: failed program was:" >&5
8514 cat conftest.$ac_ext >&5
8515 rm -rf conftest*
8516
8517 echo "$ac_t""no" 1>&6
8518 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8519
8520
8521fi
8522rm -f conftest*
8523 fi
ab9b9eab
VZ
8524 fi
8525
cd6d6d5b 8526
ab9b9eab
VZ
8527 XPM_LINK=""
8528 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
f6bcfd97 8529echo "configure:8530: checking for Xpm library" >&5
ab9b9eab
VZ
8530
8531ac_find_libraries=
8532for ac_dir in $SEARCH_LIB;
8533 do
8534 for ac_extension in a so sl; do
8535 if test -f "$ac_dir/libXpm.$ac_extension"; then
8536 ac_find_libraries=$ac_dir
8537 break 2
8538 fi
8539 done
8540 done
8541
8542 if test "$ac_find_libraries" != "" ; then
8543
8544 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8545 result=$?
8546 if test $result = 0; then
8547 ac_path_to_link=""
8548 else
8549 ac_path_to_link="-L$ac_find_libraries"
8550 fi
8551
8552 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8553 XPM_LINK="-lXpm "
8554 cat >> confdefs.h <<\EOF
8555#define wxHAVE_LIB_XPM 1
8556EOF
8557
8558 echo "$ac_t""found at $ac_find_libraries" 1>&6
8559 else
cd6d6d5b 8560 cat > conftest.$ac_ext <<EOF
f6bcfd97 8561#line 8562 "configure"
cd6d6d5b
VZ
8562#include "confdefs.h"
8563
8564 #include <X11/xpm.h>
8565
8566int main() {
8567
8568 int version;
8569
8570 version = XpmLibraryVersion();
8571
8572; return 0; }
8573EOF
f6bcfd97 8574if { (eval echo configure:8575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8575 rm -rf conftest*
8576
f6bcfd97
BP
8577 XPM_LINK="-lXpm "
8578 cat >> confdefs.h <<\EOF
3ace2e6d
SN
8579#define wxHAVE_LIB_XPM 1
8580EOF
8581
8582 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
8583 COMPILED_X_PROGRAM=0
8584
8585else
8586 echo "configure: failed program was:" >&5
8587 cat conftest.$ac_ext >&5
8588 rm -rf conftest*
8589
8590 echo "$ac_t""no" 1>&6
8591 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8592
8593
8594fi
8595rm -f conftest*
ab9b9eab
VZ
8596 fi
8597
8916026b 8598 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
ab9b9eab
VZ
8599 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8600 TOOLKIT=MOTIF
8601
8602 GUIHEADERS="\$(MOTIF_HEADERS)"
8603 GUIOBJS="\$(MOTIF_GUIOBJS)"
8604 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8605 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8606 GUIDEPS="\$(MOTIF_GUIDEPS)"
8607 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8608 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8609 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8610 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8611 GUIDIST=MOTIF_DIST
8612fi
8613
e07802fc
VZ
8614if test "$wxUSE_PM" = 1; then
8615 TOOLKIT=PM
8616
8617 GUIOBJS="\$(PM_GUIOBJS)"
8618 GUIHEADERS="\$(PM_HEADERS)"
8619 COMMONOBJS="\$(PM_COMMONOBJS)"
8620 GENERICOBJS="\$(PM_GENERICOBJS)"
8621 GUIDEPS="\$(PM_GUIDEPS)"
8622 COMMONDEPS="\$(PM_COMMONDEPS)"
8623 GENERICDEPS="\$(PM_GENERICDEPS)"
8624 UNIXOBJS=
8625 UNIXDEPS=
8626 GUIDIST=GTK_DIST
8627fi
8628
8629if test "$TOOLKIT" != "PM" ; then
ec14dd32 8630 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8631else
8632 TOOLKIT_DIR="os2"
8633fi
10f2d63a 8634
f6bcfd97
BP
8635 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
8636 TOOLKIT_NAME="${TOOLKIT_DIR}d"
8637 else
8638 TOOLKIT_NAME="${TOOLKIT_DIR}"
8639 fi
8640
2224580a 8641 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 8642
f6bcfd97 8643 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 8644
bdad4e7e 8645 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 8646
b089607b 8647 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
8648 if test "$wxUSE_ODBC" = "yes" ; then
8649 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8650 fi
3fcdd07b
VZ
8651 fi
8652
d9d8273d 8653 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 8654 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
8655 fi
8656 if test "$wxUSE_LIBTIFF" = "yes" ; then
8657 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8658 fi
8659 if test "$wxUSE_LIBPNG" = "yes" ; then
8660 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8661 fi
8662 if test "$wxUSE_ZLIB" = "yes" ; then
8663 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8664 fi
bdad4e7e 8665 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
8666
8667 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8668 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8669 RPM_SPEC="wx\$(TOOLKIT).spec"
8670
8671 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8672 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 8673else
dad6c0ea
VZ
8674 USE_GUI=0
8675
f6bcfd97
BP
8676 TOOLKIT_DIR="base"
8677
8678 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
8679 TOOLKIT_NAME="${TOOLKIT_DIR}d"
8680 else
8681 TOOLKIT_NAME="${TOOLKIT_DIR}"
8682 fi
8683
07eb77a6
RL
8684 TOOLKIT_DEF="-D__WXBASE__"
8685
2224580a
VZ
8686 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8687 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
10f2d63a 8688
a20b6d3a
VZ
8689 if test "$wxUSE_ZLIB" = "yes" ; then
8690 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8691 fi
8692
f6bcfd97 8693 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
8694
8695 PORT_FILES="src/files.lst"
8696 RPM_FILES="src/rpmfiles.lst"
8697 RPM_SPEC="wxBase.spec"
8698
8699 GUIDIST="BASE_DIST"
8700 DISTDIR="wxBase"
10f2d63a
VZ
8701fi
8702
8703WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 8704WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
8705
8706WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 8707WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
8708
8709WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 8710WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
8711
8712WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8713WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8714WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
8715WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
8716WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
8717WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
8718
8719SHARED_LD=
8720PIC_FLAG=
8721WX_ALL=
8722WX_ALL_INSTALLED=
1d62a8b4 8723BURNT_LIBRARY_NAME=
f6bcfd97 8724WX_TARGET_LIBRARY_SONAME=
10f2d63a 8725
b12915c1 8726
10f2d63a
VZ
8727if test "$wxUSE_SHARED" = "yes"; then
8728 case "${host}" in
8729 *-hp-hpux* )
8730 if test "$GCC" = yes ; then
69ffe1d2 8731 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8732 PIC_FLAG="-fPIC"
8733 else
f6bcfd97
BP
8734 LDFLAGS="-L/usr/lib"
8735
10f2d63a
VZ
8736 SHARED_LD="${CXX} -b -o"
8737 PIC_FLAG="+Z"
8738 fi
f6bcfd97
BP
8739 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
8740 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 8741 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 8742 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
8743 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
8744 else
8745 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
8746 fi
10f2d63a 8747 ;;
b12915c1
VZ
8748
8749 *-*-linux* )
10f2d63a
VZ
8750 SHARED_LD="${CC} -shared -o"
8751 PIC_FLAG="-fPIC"
00cf1208 8752 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 8753 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 8754 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 8755 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 8756 fi
c661ecca
RR
8757 if test "$wxUSE_OPENGL" = "yes"; then
8758 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8759 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8760 else
8761 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8762 WX_ALL="CREATE_LINKS"
422107f9 8763 fi
00cf1208 8764 ;;
10f2d63a
VZ
8765 *-*-irix5* | *-*-irix6* )
8766 if test "$GCC" = yes ; then
8767 SHARED_LD="${CC} -shared -o"
8768 PIC_FLAG="-fPIC"
8769 else
8770 SHARED_LD="${CXX} -shared -o"
8771 fi
c661ecca
RR
8772 if test "$wxUSE_OPENGL" = "yes"; then
8773 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8774 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8775 else
8776 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8777 WX_ALL="CREATE_LINKS"
422107f9 8778 fi
10f2d63a
VZ
8779 ;;
8780 *-*-solaris2* )
8781 if test "$GCC" = yes ; then
8782 SHARED_LD="${CC} -shared -o"
8783 PIC_FLAG="-fPIC"
f6bcfd97
BP
8784
8785 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
8786 else
8787 SHARED_LD="${CXX} -G -o"
8788 PIC_FLAG="-KPIC"
8789 fi
c661ecca
RR
8790 if test "$wxUSE_OPENGL" = "yes"; then
8791 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8792 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8793 else
8794 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8795 WX_ALL="CREATE_LINKS"
8796 fi
10f2d63a
VZ
8797 ;;
8798 *-*-sunos4* )
8799 SHARED_LD="${CC} -shared -o"
8800 PIC_FLAG="-fPIC"
8801 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8802 WX_ALL="CREATE_LINKS"
8803 ;;
8804 *-*-freebsd* | *-*-netbsd*)
8805 SHARED_LD="${CC} -shared -o"
8806 PIC_FLAG="-fPIC"
8807 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8808 WX_ALL="CREATE_LINKS"
8809 ;;
8810 *-*-osf* )
8811 SHARED_LD="${CXX} -shared -o"
8812 PIC_FLAG="-fPIC"
8813 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8814 WX_ALL="CREATE_LINKS"
8815 ;;
8816 *-*-dgux5* )
8817 SHARED_LD="${CXX} -shared -o"
8818 PIC_FLAG="-fPIC"
8819 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8820 WX_ALL="CREATE_LINKS"
8821 ;;
8822 *-*-sysv5* )
8823 SHARED_LD="${CC} -shared -o"
8824 PIC_FLAG="-fPIC"
8825 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8826 WX_ALL="CREATE_LINKS"
8827 ;;
8828 *-*-aix* )
8829 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8830 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8831 ;;
8832 *-*-cygwin32* )
8833 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8834 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
8835 if test "$wxUSE_OPENGL" = "yes"; then
8836 WX_ALL_INSTALLED="preinstall_gl"
8837 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
8838 else
8839 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8840 fi
10f2d63a 8841 ;;
b12915c1 8842 *-*-mingw32* )
10f2d63a 8843 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8844 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
8845 if test "$wxUSE_OPENGL" = "yes"; then
8846 WX_ALL_INSTALLED="preinstall_gl"
8847 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
8848 else
8849 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8850 fi
10f2d63a
VZ
8851 ;;
8852 *-pc-os2_emx )
e07802fc
VZ
8853 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8854 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 8855 ;;
b12915c1 8856 *-*-beos* )
e2b8b066 8857 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
8858 PIC_FLAG="-fPIC"
8859 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8860 WX_ALL="CREATE_LINKS"
8861 ;;
10f2d63a
VZ
8862 *)
8863 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8864 esac
8865
8866 if test "x$WX_TARGET_LIBRARY" = "x"; then
8867 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 8868 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 8869 fi
3711412e 8870 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
8871else
8872 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8873 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
8874
8875 if test "$wxUSE_OPENGL" = "yes"; then
8876 WX_ALL_INSTALLED="preinstall_gl"
8877 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
8878 else
8879 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8880 fi
8881
8882 if test "$wxUSE_GUI" = "no"; then
8883 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
8884 fi
8885
3711412e 8886 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
8887fi
8888
8889
8890for ac_hdr in strings.h
8891do
8892ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8893echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f6bcfd97 8894echo "configure:8895: checking for $ac_hdr" >&5
10f2d63a
VZ
8895if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8896 echo $ac_n "(cached) $ac_c" 1>&6
8897else
8898 cat > conftest.$ac_ext <<EOF
f6bcfd97 8899#line 8900 "configure"
10f2d63a
VZ
8900#include "confdefs.h"
8901#include <$ac_hdr>
8902EOF
8903ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 8904{ (eval echo configure:8905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8905ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8906if test -z "$ac_err"; then
8907 rm -rf conftest*
8908 eval "ac_cv_header_$ac_safe=yes"
8909else
8910 echo "$ac_err" >&5
8911 echo "configure: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8913 rm -rf conftest*
8914 eval "ac_cv_header_$ac_safe=no"
8915fi
8916rm -f conftest*
8917fi
8918if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8919 echo "$ac_t""yes" 1>&6
8920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8921 cat >> confdefs.h <<EOF
8922#define $ac_tr_hdr 1
8923EOF
8924
8925else
8926 echo "$ac_t""no" 1>&6
8927fi
8928done
8929
8930for ac_hdr in unistd.h
8931do
8932ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8933echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f6bcfd97 8934echo "configure:8935: checking for $ac_hdr" >&5
10f2d63a
VZ
8935if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8937else
8938 cat > conftest.$ac_ext <<EOF
f6bcfd97 8939#line 8940 "configure"
10f2d63a
VZ
8940#include "confdefs.h"
8941#include <$ac_hdr>
8942EOF
8943ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 8944{ (eval echo configure:8945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8945ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8946if test -z "$ac_err"; then
8947 rm -rf conftest*
8948 eval "ac_cv_header_$ac_safe=yes"
8949else
8950 echo "$ac_err" >&5
8951 echo "configure: failed program was:" >&5
8952 cat conftest.$ac_ext >&5
8953 rm -rf conftest*
8954 eval "ac_cv_header_$ac_safe=no"
8955fi
8956rm -f conftest*
8957fi
8958if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8959 echo "$ac_t""yes" 1>&6
8960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8961 cat >> confdefs.h <<EOF
8962#define $ac_tr_hdr 1
8963EOF
8964
8965else
8966 echo "$ac_t""no" 1>&6
8967fi
8968done
8969
8970for ac_hdr in wchar.h
8971do
8972ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8973echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f6bcfd97 8974echo "configure:8975: checking for $ac_hdr" >&5
10f2d63a
VZ
8975if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8976 echo $ac_n "(cached) $ac_c" 1>&6
8977else
8978 cat > conftest.$ac_ext <<EOF
f6bcfd97 8979#line 8980 "configure"
10f2d63a
VZ
8980#include "confdefs.h"
8981#include <$ac_hdr>
8982EOF
8983ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 8984{ (eval echo configure:8985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8985ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8986if test -z "$ac_err"; then
8987 rm -rf conftest*
8988 eval "ac_cv_header_$ac_safe=yes"
8989else
8990 echo "$ac_err" >&5
8991 echo "configure: failed program was:" >&5
8992 cat conftest.$ac_ext >&5
8993 rm -rf conftest*
8994 eval "ac_cv_header_$ac_safe=no"
8995fi
8996rm -f conftest*
8997fi
8998if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8999 echo "$ac_t""yes" 1>&6
9000 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9001 cat >> confdefs.h <<EOF
9002#define $ac_tr_hdr 1
9003EOF
9004
9005else
9006 echo "$ac_t""no" 1>&6
9007fi
9008done
9009
9010for ac_hdr in wcstr.h
9011do
9012ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9013echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f6bcfd97 9014echo "configure:9015: checking for $ac_hdr" >&5
10f2d63a
VZ
9015if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9016 echo $ac_n "(cached) $ac_c" 1>&6
9017else
9018 cat > conftest.$ac_ext <<EOF
f6bcfd97 9019#line 9020 "configure"
10f2d63a
VZ
9020#include "confdefs.h"
9021#include <$ac_hdr>
9022EOF
9023ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 9024{ (eval echo configure:9025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9025ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9026if test -z "$ac_err"; then
9027 rm -rf conftest*
9028 eval "ac_cv_header_$ac_safe=yes"
9029else
9030 echo "$ac_err" >&5
9031 echo "configure: failed program was:" >&5
9032 cat conftest.$ac_ext >&5
9033 rm -rf conftest*
9034 eval "ac_cv_header_$ac_safe=no"
9035fi
9036rm -f conftest*
9037fi
9038if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9039 echo "$ac_t""yes" 1>&6
9040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9041 cat >> confdefs.h <<EOF
9042#define $ac_tr_hdr 1
9043EOF
9044
9045else
9046 echo "$ac_t""no" 1>&6
9047fi
9048done
9049
9050for ac_hdr in fnmatch.h
9051do
9052ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9053echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f6bcfd97 9054echo "configure:9055: checking for $ac_hdr" >&5
10f2d63a
VZ
9055if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9056 echo $ac_n "(cached) $ac_c" 1>&6
9057else
9058 cat > conftest.$ac_ext <<EOF
f6bcfd97 9059#line 9060 "configure"
10f2d63a
VZ
9060#include "confdefs.h"
9061#include <$ac_hdr>
9062EOF
9063ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 9064{ (eval echo configure:9065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9065ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9066if test -z "$ac_err"; then
9067 rm -rf conftest*
9068 eval "ac_cv_header_$ac_safe=yes"
9069else
9070 echo "$ac_err" >&5
9071 echo "configure: failed program was:" >&5
9072 cat conftest.$ac_ext >&5
9073 rm -rf conftest*
9074 eval "ac_cv_header_$ac_safe=no"
9075fi
9076rm -f conftest*
9077fi
9078if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9079 echo "$ac_t""yes" 1>&6
9080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9081 cat >> confdefs.h <<EOF
9082#define $ac_tr_hdr 1
9083EOF
9084
9085else
9086 echo "$ac_t""no" 1>&6
9087fi
9088done
9089
9090
73fd4a60
VZ
9091if test "$wxUSE_GUI" = "yes"; then
9092 if test "$wxUSE_UNIX" = "yes"; then
9093 for ac_hdr in X11/XKBlib.h
10f2d63a
VZ
9094do
9095ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9096echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f6bcfd97 9097echo "configure:9098: checking for $ac_hdr" >&5
10f2d63a
VZ
9098if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9099 echo $ac_n "(cached) $ac_c" 1>&6
9100else
9101 cat > conftest.$ac_ext <<EOF
f6bcfd97 9102#line 9103 "configure"
10f2d63a
VZ
9103#include "confdefs.h"
9104#include <$ac_hdr>
9105EOF
9106ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 9107{ (eval echo configure:9108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9108ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9109if test -z "$ac_err"; then
9110 rm -rf conftest*
9111 eval "ac_cv_header_$ac_safe=yes"
9112else
9113 echo "$ac_err" >&5
9114 echo "configure: failed program was:" >&5
9115 cat conftest.$ac_ext >&5
9116 rm -rf conftest*
9117 eval "ac_cv_header_$ac_safe=no"
9118fi
9119rm -f conftest*
9120fi
9121if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9122 echo "$ac_t""yes" 1>&6
9123 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9124 cat >> confdefs.h <<EOF
9125#define $ac_tr_hdr 1
9126EOF
9127
9128else
9129 echo "$ac_t""no" 1>&6
9130fi
9131done
9132
73fd4a60 9133 fi
10f2d63a
VZ
9134fi
9135
9136
9137echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
f6bcfd97 9138echo "configure:9139: checking for ANSI C header files" >&5
10f2d63a
VZ
9139if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9140 echo $ac_n "(cached) $ac_c" 1>&6
9141else
9142 cat > conftest.$ac_ext <<EOF
f6bcfd97 9143#line 9144 "configure"
10f2d63a
VZ
9144#include "confdefs.h"
9145#include <stdlib.h>
9146#include <stdarg.h>
9147#include <string.h>
9148#include <float.h>
9149EOF
9150ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 9151{ (eval echo configure:9152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9152ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9153if test -z "$ac_err"; then
9154 rm -rf conftest*
9155 ac_cv_header_stdc=yes
9156else
9157 echo "$ac_err" >&5
9158 echo "configure: failed program was:" >&5
9159 cat conftest.$ac_ext >&5
9160 rm -rf conftest*
9161 ac_cv_header_stdc=no
9162fi
9163rm -f conftest*
9164
9165if test $ac_cv_header_stdc = yes; then
9166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9167cat > conftest.$ac_ext <<EOF
f6bcfd97 9168#line 9169 "configure"
10f2d63a
VZ
9169#include "confdefs.h"
9170#include <string.h>
9171EOF
9172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9173 egrep "memchr" >/dev/null 2>&1; then
9174 :
9175else
9176 rm -rf conftest*
9177 ac_cv_header_stdc=no
9178fi
9179rm -f conftest*
9180
9181fi
9182
9183if test $ac_cv_header_stdc = yes; then
9184 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9185cat > conftest.$ac_ext <<EOF
f6bcfd97 9186#line 9187 "configure"
10f2d63a
VZ
9187#include "confdefs.h"
9188#include <stdlib.h>
9189EOF
9190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9191 egrep "free" >/dev/null 2>&1; then
9192 :
9193else
9194 rm -rf conftest*
9195 ac_cv_header_stdc=no
9196fi
9197rm -f conftest*
9198
9199fi
9200
9201if test $ac_cv_header_stdc = yes; then
9202 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9203if test "$cross_compiling" = yes; then
9204 :
9205else
9206 cat > conftest.$ac_ext <<EOF
f6bcfd97 9207#line 9208 "configure"
10f2d63a
VZ
9208#include "confdefs.h"
9209#include <ctype.h>
9210#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9211#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9212#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9213int main () { int i; for (i = 0; i < 256; i++)
9214if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9215exit (0); }
9216
9217EOF
f6bcfd97 9218if { (eval echo configure:9219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9219then
9220 :
9221else
9222 echo "configure: failed program was:" >&5
9223 cat conftest.$ac_ext >&5
9224 rm -fr conftest*
9225 ac_cv_header_stdc=no
9226fi
9227rm -fr conftest*
9228fi
9229
9230fi
9231fi
9232
9233echo "$ac_t""$ac_cv_header_stdc" 1>&6
9234if test $ac_cv_header_stdc = yes; then
9235 cat >> confdefs.h <<\EOF
9236#define STDC_HEADERS 1
9237EOF
9238
9239fi
9240
9241echo $ac_n "checking for mode_t""... $ac_c" 1>&6
f6bcfd97 9242echo "configure:9243: checking for mode_t" >&5
10f2d63a
VZ
9243if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9244 echo $ac_n "(cached) $ac_c" 1>&6
9245else
9246 cat > conftest.$ac_ext <<EOF
f6bcfd97 9247#line 9248 "configure"
10f2d63a
VZ
9248#include "confdefs.h"
9249#include <sys/types.h>
9250#if STDC_HEADERS
9251#include <stdlib.h>
9252#include <stddef.h>
9253#endif
9254EOF
9255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9256 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9257 rm -rf conftest*
9258 ac_cv_type_mode_t=yes
9259else
9260 rm -rf conftest*
9261 ac_cv_type_mode_t=no
9262fi
9263rm -f conftest*
9264
9265fi
9266echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9267if test $ac_cv_type_mode_t = no; then
9268 cat >> confdefs.h <<\EOF
9269#define mode_t int
9270EOF
9271
9272fi
9273
9274echo $ac_n "checking for off_t""... $ac_c" 1>&6
f6bcfd97 9275echo "configure:9276: checking for off_t" >&5
10f2d63a
VZ
9276if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9277 echo $ac_n "(cached) $ac_c" 1>&6
9278else
9279 cat > conftest.$ac_ext <<EOF
f6bcfd97 9280#line 9281 "configure"
10f2d63a
VZ
9281#include "confdefs.h"
9282#include <sys/types.h>
9283#if STDC_HEADERS
9284#include <stdlib.h>
9285#include <stddef.h>
9286#endif
9287EOF
9288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9289 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9290 rm -rf conftest*
9291 ac_cv_type_off_t=yes
9292else
9293 rm -rf conftest*
9294 ac_cv_type_off_t=no
9295fi
9296rm -f conftest*
9297
9298fi
9299echo "$ac_t""$ac_cv_type_off_t" 1>&6
9300if test $ac_cv_type_off_t = no; then
9301 cat >> confdefs.h <<\EOF
9302#define off_t long
9303EOF
9304
9305fi
9306
9307echo $ac_n "checking for pid_t""... $ac_c" 1>&6
f6bcfd97 9308echo "configure:9309: checking for pid_t" >&5
10f2d63a
VZ
9309if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9310 echo $ac_n "(cached) $ac_c" 1>&6
9311else
9312 cat > conftest.$ac_ext <<EOF
f6bcfd97 9313#line 9314 "configure"
10f2d63a
VZ
9314#include "confdefs.h"
9315#include <sys/types.h>
9316#if STDC_HEADERS
9317#include <stdlib.h>
9318#include <stddef.h>
9319#endif
9320EOF
9321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9322 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9323 rm -rf conftest*
9324 ac_cv_type_pid_t=yes
9325else
9326 rm -rf conftest*
9327 ac_cv_type_pid_t=no
9328fi
9329rm -f conftest*
9330
9331fi
9332echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9333if test $ac_cv_type_pid_t = no; then
9334 cat >> confdefs.h <<\EOF
9335#define pid_t int
9336EOF
9337
9338fi
9339
9340echo $ac_n "checking for size_t""... $ac_c" 1>&6
f6bcfd97 9341echo "configure:9342: checking for size_t" >&5
10f2d63a
VZ
9342if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9343 echo $ac_n "(cached) $ac_c" 1>&6
9344else
9345 cat > conftest.$ac_ext <<EOF
f6bcfd97 9346#line 9347 "configure"
10f2d63a
VZ
9347#include "confdefs.h"
9348#include <sys/types.h>
9349#if STDC_HEADERS
9350#include <stdlib.h>
9351#include <stddef.h>
9352#endif
9353EOF
9354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9355 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9356 rm -rf conftest*
9357 ac_cv_type_size_t=yes
9358else
9359 rm -rf conftest*
9360 ac_cv_type_size_t=no
9361fi
9362rm -f conftest*
9363
9364fi
9365echo "$ac_t""$ac_cv_type_size_t" 1>&6
9366if test $ac_cv_type_size_t = no; then
9367 cat >> confdefs.h <<\EOF
9368#define size_t unsigned
9369EOF
9370
9371fi
9372
9373echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
f6bcfd97 9374echo "configure:9375: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
9375if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9376 echo $ac_n "(cached) $ac_c" 1>&6
9377else
9378 cat > conftest.$ac_ext <<EOF
f6bcfd97 9379#line 9380 "configure"
10f2d63a
VZ
9380#include "confdefs.h"
9381#include <sys/types.h>
9382EOF
9383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9384 egrep "uid_t" >/dev/null 2>&1; then
9385 rm -rf conftest*
9386 ac_cv_type_uid_t=yes
9387else
9388 rm -rf conftest*
9389 ac_cv_type_uid_t=no
9390fi
9391rm -f conftest*
9392
9393fi
9394
9395echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9396if test $ac_cv_type_uid_t = no; then
9397 cat >> confdefs.h <<\EOF
9398#define uid_t int
9399EOF
9400
9401 cat >> confdefs.h <<\EOF
9402#define gid_t int
9403EOF
9404
9405fi
9406
9407
9408
b12915c1 9409echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
f6bcfd97 9410echo "configure:9411: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
9411if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9412 echo $ac_n "(cached) $ac_c" 1>&6
9413else
9414
9415 cat > conftest.$ac_ext <<EOF
f6bcfd97 9416#line 9417 "configure"
b12915c1
VZ
9417#include "confdefs.h"
9418#include <pwd.h>
9419int main() {
9420
9421 char *p;
9422 struct passwd *pw;
9423 p = pw->pw_gecos;
9424
9425; return 0; }
9426EOF
f6bcfd97 9427if { (eval echo configure:9428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
9428 rm -rf conftest*
9429
9430 wx_cv_struct_pw_gecos=yes
b12915c1
VZ
9431
9432else
9433 echo "configure: failed program was:" >&5
9434 cat conftest.$ac_ext >&5
9435 rm -rf conftest*
9436
9437 wx_cv_struct_pw_gecos=no
9438
9439
9440fi
9441rm -f conftest*
9442
9443
9444fi
9445
9446echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9447
bd3277fe
VZ
9448if test "$wx_cv_struct_pw_gecos" = "yes"; then
9449 cat >> confdefs.h <<\EOF
9450#define HAVE_PW_GECOS 1
9451EOF
9452
9453fi
9454
10f2d63a
VZ
9455
9456echo $ac_n "checking for working const""... $ac_c" 1>&6
f6bcfd97 9457echo "configure:9458: checking for working const" >&5
10f2d63a
VZ
9458if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9459 echo $ac_n "(cached) $ac_c" 1>&6
9460else
9461 cat > conftest.$ac_ext <<EOF
f6bcfd97 9462#line 9463 "configure"
10f2d63a
VZ
9463#include "confdefs.h"
9464
9465int main() {
9466
9467/* Ultrix mips cc rejects this. */
8916026b 9468typedef int charset[2]; const charset x;
10f2d63a
VZ
9469/* SunOS 4.1.1 cc rejects this. */
9470char const *const *ccp;
9471char **p;
9472/* NEC SVR4.0.2 mips cc rejects this. */
9473struct point {int x, y;};
9474static struct point const zero = {0,0};
9475/* AIX XL C 1.02.0.0 rejects this.
9476 It does not let you subtract one const X* pointer from another in an arm
9477 of an if-expression whose if-part is not a constant expression */
9478const char *g = "string";
9479ccp = &g + (g ? g-g : 0);
9480/* HPUX 7.0 cc rejects these. */
9481++ccp;
9482p = (char**) ccp;
9483ccp = (char const *const *) p;
9484{ /* SCO 3.2v4 cc rejects this. */
9485 char *t;
9486 char const *s = 0 ? (char *) 0 : (char const *) 0;
9487
9488 *t++ = 0;
9489}
9490{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9491 int x[] = {25, 17};
9492 const int *foo = &x[0];
9493 ++foo;
9494}
9495{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9496 typedef const int *iptr;
9497 iptr p = 0;
9498 ++p;
9499}
9500{ /* AIX XL C 1.02.0.0 rejects this saying
9501 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9502 struct s { int j; const int *ap[3]; };
9503 struct s *b; b->j = 5;
9504}
9505{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9506 const int foo = 10;
9507}
9508
9509; return 0; }
9510EOF
f6bcfd97 9511if { (eval echo configure:9512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9512 rm -rf conftest*
9513 ac_cv_c_const=yes
9514else
9515 echo "configure: failed program was:" >&5
9516 cat conftest.$ac_ext >&5
9517 rm -rf conftest*
9518 ac_cv_c_const=no
9519fi
9520rm -f conftest*
9521fi
9522
9523echo "$ac_t""$ac_cv_c_const" 1>&6
9524if test $ac_cv_c_const = no; then
9525 cat >> confdefs.h <<\EOF
9526#define const
9527EOF
9528
9529fi
9530
9531echo $ac_n "checking for inline""... $ac_c" 1>&6
f6bcfd97 9532echo "configure:9533: checking for inline" >&5
10f2d63a
VZ
9533if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9534 echo $ac_n "(cached) $ac_c" 1>&6
9535else
9536 ac_cv_c_inline=no
9537for ac_kw in inline __inline__ __inline; do
9538 cat > conftest.$ac_ext <<EOF
f6bcfd97 9539#line 9540 "configure"
10f2d63a
VZ
9540#include "confdefs.h"
9541
9542int main() {
8916026b 9543} $ac_kw foo() {
10f2d63a
VZ
9544; return 0; }
9545EOF
f6bcfd97 9546if { (eval echo configure:9547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9547 rm -rf conftest*
9548 ac_cv_c_inline=$ac_kw; break
9549else
9550 echo "configure: failed program was:" >&5
9551 cat conftest.$ac_ext >&5
9552fi
9553rm -f conftest*
9554done
9555
9556fi
9557
9558echo "$ac_t""$ac_cv_c_inline" 1>&6
9559case "$ac_cv_c_inline" in
9560 inline | yes) ;;
9561 no) cat >> confdefs.h <<\EOF
9562#define inline
9563EOF
9564 ;;
9565 *) cat >> confdefs.h <<EOF
9566#define inline $ac_cv_c_inline
9567EOF
9568 ;;
9569esac
9570
9571
9572echo $ac_n "checking size of char""... $ac_c" 1>&6
f6bcfd97 9573echo "configure:9574: checking size of char" >&5
10f2d63a
VZ
9574if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9575 echo $ac_n "(cached) $ac_c" 1>&6
9576else
9577 if test "$cross_compiling" = yes; then
9578 ac_cv_sizeof_char=1
9579else
9580 cat > conftest.$ac_ext <<EOF
f6bcfd97 9581#line 9582 "configure"
10f2d63a
VZ
9582#include "confdefs.h"
9583#include <stdio.h>
9584main()
9585{
9586 FILE *f=fopen("conftestval", "w");
9587 if (!f) exit(1);
9588 fprintf(f, "%d\n", sizeof(char));
9589 exit(0);
9590}
9591EOF
f6bcfd97 9592if { (eval echo configure:9593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9593then
9594 ac_cv_sizeof_char=`cat conftestval`
9595else
9596 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9598 rm -fr conftest*
9599 ac_cv_sizeof_char=0
9600fi
9601rm -fr conftest*
9602fi
9603
9604fi
9605echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9606cat >> confdefs.h <<EOF
9607#define SIZEOF_CHAR $ac_cv_sizeof_char
9608EOF
9609
9610
9611echo $ac_n "checking size of short""... $ac_c" 1>&6
f6bcfd97 9612echo "configure:9613: checking size of short" >&5
10f2d63a
VZ
9613if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9614 echo $ac_n "(cached) $ac_c" 1>&6
9615else
9616 if test "$cross_compiling" = yes; then
9617 ac_cv_sizeof_short=2
9618else
9619 cat > conftest.$ac_ext <<EOF
f6bcfd97 9620#line 9621 "configure"
10f2d63a
VZ
9621#include "confdefs.h"
9622#include <stdio.h>
9623main()
9624{
9625 FILE *f=fopen("conftestval", "w");
9626 if (!f) exit(1);
9627 fprintf(f, "%d\n", sizeof(short));
9628 exit(0);
9629}
9630EOF
f6bcfd97 9631if { (eval echo configure:9632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9632then
9633 ac_cv_sizeof_short=`cat conftestval`
9634else
9635 echo "configure: failed program was:" >&5
9636 cat conftest.$ac_ext >&5
9637 rm -fr conftest*
9638 ac_cv_sizeof_short=0
9639fi
9640rm -fr conftest*
9641fi
9642
9643fi
9644echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9645cat >> confdefs.h <<EOF
9646#define SIZEOF_SHORT $ac_cv_sizeof_short
9647EOF
9648
9649
9650echo $ac_n "checking size of int *""... $ac_c" 1>&6
f6bcfd97 9651echo "configure:9652: checking size of int *" >&5
10f2d63a
VZ
9652if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9653 echo $ac_n "(cached) $ac_c" 1>&6
9654else
9655 if test "$cross_compiling" = yes; then
9656 ac_cv_sizeof_int_p=4
9657else
9658 cat > conftest.$ac_ext <<EOF
f6bcfd97 9659#line 9660 "configure"
10f2d63a
VZ
9660#include "confdefs.h"
9661#include <stdio.h>
9662main()
9663{
9664 FILE *f=fopen("conftestval", "w");
9665 if (!f) exit(1);
9666 fprintf(f, "%d\n", sizeof(int *));
9667 exit(0);
9668}
9669EOF
f6bcfd97 9670if { (eval echo configure:9671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9671then
9672 ac_cv_sizeof_int_p=`cat conftestval`
9673else
9674 echo "configure: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9676 rm -fr conftest*
9677 ac_cv_sizeof_int_p=0
9678fi
9679rm -fr conftest*
9680fi
9681
9682fi
9683echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9684cat >> confdefs.h <<EOF
9685#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9686EOF
9687
9688
9689echo $ac_n "checking size of int""... $ac_c" 1>&6
f6bcfd97 9690echo "configure:9691: checking size of int" >&5
10f2d63a
VZ
9691if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9692 echo $ac_n "(cached) $ac_c" 1>&6
9693else
9694 if test "$cross_compiling" = yes; then
9695 ac_cv_sizeof_int=4
9696else
9697 cat > conftest.$ac_ext <<EOF
f6bcfd97 9698#line 9699 "configure"
10f2d63a
VZ
9699#include "confdefs.h"
9700#include <stdio.h>
9701main()
9702{
9703 FILE *f=fopen("conftestval", "w");
9704 if (!f) exit(1);
9705 fprintf(f, "%d\n", sizeof(int));
9706 exit(0);
9707}
9708EOF
f6bcfd97 9709if { (eval echo configure:9710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9710then
9711 ac_cv_sizeof_int=`cat conftestval`
9712else
9713 echo "configure: failed program was:" >&5
9714 cat conftest.$ac_ext >&5
9715 rm -fr conftest*
9716 ac_cv_sizeof_int=0
9717fi
9718rm -fr conftest*
9719fi
9720
9721fi
9722echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9723cat >> confdefs.h <<EOF
9724#define SIZEOF_INT $ac_cv_sizeof_int
9725EOF
9726
9727
9728echo $ac_n "checking size of long""... $ac_c" 1>&6
f6bcfd97 9729echo "configure:9730: checking size of long" >&5
10f2d63a
VZ
9730if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9731 echo $ac_n "(cached) $ac_c" 1>&6
9732else
9733 if test "$cross_compiling" = yes; then
9734 ac_cv_sizeof_long=4
9735else
9736 cat > conftest.$ac_ext <<EOF
f6bcfd97 9737#line 9738 "configure"
10f2d63a
VZ
9738#include "confdefs.h"
9739#include <stdio.h>
9740main()
9741{
9742 FILE *f=fopen("conftestval", "w");
9743 if (!f) exit(1);
9744 fprintf(f, "%d\n", sizeof(long));
9745 exit(0);
9746}
9747EOF
f6bcfd97 9748if { (eval echo configure:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9749then
9750 ac_cv_sizeof_long=`cat conftestval`
9751else
9752 echo "configure: failed program was:" >&5
9753 cat conftest.$ac_ext >&5
9754 rm -fr conftest*
9755 ac_cv_sizeof_long=0
9756fi
9757rm -fr conftest*
9758fi
9759
9760fi
9761echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9762cat >> confdefs.h <<EOF
9763#define SIZEOF_LONG $ac_cv_sizeof_long
9764EOF
9765
9766
9767echo $ac_n "checking size of long long""... $ac_c" 1>&6
f6bcfd97 9768echo "configure:9769: checking size of long long" >&5
10f2d63a
VZ
9769if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9770 echo $ac_n "(cached) $ac_c" 1>&6
9771else
9772 if test "$cross_compiling" = yes; then
9773 ac_cv_sizeof_long_long=0
9774else
9775 cat > conftest.$ac_ext <<EOF
f6bcfd97 9776#line 9777 "configure"
10f2d63a
VZ
9777#include "confdefs.h"
9778#include <stdio.h>
9779main()
9780{
9781 FILE *f=fopen("conftestval", "w");
9782 if (!f) exit(1);
9783 fprintf(f, "%d\n", sizeof(long long));
9784 exit(0);
9785}
9786EOF
f6bcfd97 9787if { (eval echo configure:9788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9788then
9789 ac_cv_sizeof_long_long=`cat conftestval`
9790else
9791 echo "configure: failed program was:" >&5
9792 cat conftest.$ac_ext >&5
9793 rm -fr conftest*
9794 ac_cv_sizeof_long_long=0
9795fi
9796rm -fr conftest*
9797fi
9798
9799fi
9800echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9801cat >> confdefs.h <<EOF
9802#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9803EOF
9804
9805
9806
9807echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
f6bcfd97 9808echo "configure:9809: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9809if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9810 echo $ac_n "(cached) $ac_c" 1>&6
9811else
9812 ac_cv_c_bigendian=unknown
9813# See if sys/param.h defines the BYTE_ORDER macro.
9814cat > conftest.$ac_ext <<EOF
f6bcfd97 9815#line 9816 "configure"
10f2d63a
VZ
9816#include "confdefs.h"
9817#include <sys/types.h>
9818#include <sys/param.h>
9819int main() {
9820
9821#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9822 bogus endian macros
9823#endif
9824; return 0; }
9825EOF
f6bcfd97 9826if { (eval echo configure:9827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9827 rm -rf conftest*
9828 # It does; now see whether it defined to BIG_ENDIAN or not.
9829cat > conftest.$ac_ext <<EOF
f6bcfd97 9830#line 9831 "configure"
10f2d63a
VZ
9831#include "confdefs.h"
9832#include <sys/types.h>
9833#include <sys/param.h>
9834int main() {
9835
9836#if BYTE_ORDER != BIG_ENDIAN
9837 not big endian
9838#endif
9839; return 0; }
9840EOF
f6bcfd97 9841if { (eval echo configure:9842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9842 rm -rf conftest*
9843 ac_cv_c_bigendian=yes
9844else
9845 echo "configure: failed program was:" >&5
9846 cat conftest.$ac_ext >&5
9847 rm -rf conftest*
9848 ac_cv_c_bigendian=no
9849fi
9850rm -f conftest*
9851else
9852 echo "configure: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9854fi
9855rm -f conftest*
9856if test $ac_cv_c_bigendian = unknown; then
9857if test "$cross_compiling" = yes; then
9858 ac_cv_c_bigendian=unknown
9859else
9860 cat > conftest.$ac_ext <<EOF
f6bcfd97 9861#line 9862 "configure"
10f2d63a
VZ
9862#include "confdefs.h"
9863main () {
9864 /* Are we little or big endian? From Harbison&Steele. */
9865 union
9866 {
9867 long l;
9868 char c[sizeof (long)];
9869 } u;
9870 u.l = 1;
9871 exit (u.c[sizeof (long) - 1] == 1);
9872}
9873EOF
f6bcfd97 9874if { (eval echo configure:9875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9875then
9876 ac_cv_c_bigendian=no
9877else
9878 echo "configure: failed program was:" >&5
9879 cat conftest.$ac_ext >&5
9880 rm -fr conftest*
9881 ac_cv_c_bigendian=yes
9882fi
9883rm -fr conftest*
9884fi
9885
9886fi
9887fi
9888
9889echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9890if test $ac_cv_c_bigendian = unknown; then
9891 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
9892fi
9893if test $ac_cv_c_bigendian = yes; then
9894 cat >> confdefs.h <<\EOF
9895#define WORDS_BIGENDIAN 1
9896EOF
9897
9898fi
9899
9900
9901
9902 if test "$cross_compiling" = "yes"; then
9903 cat >> confdefs.h <<\EOF
9904#define wxUSE_IOSTREAMH 1
9905EOF
9906
9907 else
9908
9909 ac_ext=C
9910# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9911ac_cpp='$CXXCPP $CPPFLAGS'
9912ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9913ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9914cross_compiling=$ac_cv_prog_cxx_cross
9915
9916
9917 for ac_hdr in iostream
9918do
9919ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9920echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f6bcfd97 9921echo "configure:9922: checking for $ac_hdr" >&5
10f2d63a
VZ
9922if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9923 echo $ac_n "(cached) $ac_c" 1>&6
9924else
9925 cat > conftest.$ac_ext <<EOF
f6bcfd97 9926#line 9927 "configure"
10f2d63a
VZ
9927#include "confdefs.h"
9928#include <$ac_hdr>
9929EOF
9930ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 9931{ (eval echo configure:9932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9932ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9933if test -z "$ac_err"; then
9934 rm -rf conftest*
9935 eval "ac_cv_header_$ac_safe=yes"
9936else
9937 echo "$ac_err" >&5
9938 echo "configure: failed program was:" >&5
9939 cat conftest.$ac_ext >&5
9940 rm -rf conftest*
9941 eval "ac_cv_header_$ac_safe=no"
9942fi
9943rm -f conftest*
9944fi
9945if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9946 echo "$ac_t""yes" 1>&6
9947 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9948 cat >> confdefs.h <<EOF
9949#define $ac_tr_hdr 1
9950EOF
9951
9952else
9953 echo "$ac_t""no" 1>&6
9954fi
9955done
9956
9957
9958 if test "x$HAVE_IOSTREAM" = x ; then
9959 cat >> confdefs.h <<\EOF
9960#define wxUSE_IOSTREAMH 1
9961EOF
9962
9963 else
9964 :
9965 fi
9966
9967 ac_ext=c
9968# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9969ac_cpp='$CPP $CPPFLAGS'
9970ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9971ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9972cross_compiling=$ac_cv_prog_cc_cross
9973
9974 fi
9975
9976
9977
9978 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
f6bcfd97 9979echo "configure:9980: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9980if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9981 echo $ac_n "(cached) $ac_c" 1>&6
9982else
9983
9984
9985 ac_ext=C
9986# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9987ac_cpp='$CXXCPP $CPPFLAGS'
9988ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9989ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9990cross_compiling=$ac_cv_prog_cxx_cross
9991
9992
9993 cat > conftest.$ac_ext <<EOF
f6bcfd97 9994#line 9995 "configure"
10f2d63a
VZ
9995#include "confdefs.h"
9996
9997
9998int main() {
9999
10000 bool b = true;
10001
10002 return 0;
10003
10004; return 0; }
10005EOF
f6bcfd97 10006if { (eval echo configure:10007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10007 rm -rf conftest*
10008
10009 cat >> confdefs.h <<\EOF
10010#define HAVE_BOOL 1
10011EOF
10012
10013 wx_cv_cpp_bool=yes
10014
10015else
10016 echo "configure: failed program was:" >&5
10017 cat conftest.$ac_ext >&5
10018 rm -rf conftest*
10019
10020 wx_cv_cpp_bool=no
10021
10022
10023fi
10024rm -f conftest*
10025
10026 ac_ext=c
10027# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10028ac_cpp='$CPP $CPPFLAGS'
10029ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10030ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10031cross_compiling=$ac_cv_prog_cc_cross
10032
10033
10034fi
10035
10036echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10037
10038 if test "$wx_cv_cpp_bool" = "yes"; then
10039 cat >> confdefs.h <<\EOF
10040#define HAVE_BOOL 1
10041EOF
10042
10043 fi
10044
10045
10046
10f2d63a 10047echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
f6bcfd97 10048echo "configure:10049: checking if you need GNU extensions" >&5
10f2d63a
VZ
10049if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
10050 echo $ac_n "(cached) $ac_c" 1>&6
10051else
10052
10053 cat > conftest.$ac_ext <<EOF
f6bcfd97 10054#line 10055 "configure"
10f2d63a
VZ
10055#include "confdefs.h"
10056#include <features.h>
10057int main() {
10058
10059
10060#ifndef __GNU_LIBRARY__
10061 Compile error wanted
10062#endif
10063
10064
10065; return 0; }
10066EOF
f6bcfd97 10067if { (eval echo configure:10068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10068 rm -rf conftest*
10069 wx_cv_gnu_extensions=yes
10070else
10071 echo "configure: failed program was:" >&5
10072 cat conftest.$ac_ext >&5
10073 rm -rf conftest*
10074 wx_cv_gnu_extensions=no
10075fi
10076rm -f conftest*
10077
10078fi
10079
10080
10081echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
10082if test "$wx_cv_gnu_extensions" = "yes"; then
10083 cat >> confdefs.h <<EOF
10084#define _GNU_SOURCE 1
10085EOF
10086
10087fi
10088
10089
10090
10091echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
f6bcfd97 10092echo "configure:10093: checking for wcslen in -lc" >&5
10f2d63a
VZ
10093ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
10094if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10095 echo $ac_n "(cached) $ac_c" 1>&6
10096else
10097 ac_save_LIBS="$LIBS"
10098LIBS="-lc $LIBS"
10099cat > conftest.$ac_ext <<EOF
f6bcfd97 10100#line 10101 "configure"
10f2d63a
VZ
10101#include "confdefs.h"
10102/* Override any gcc2 internal prototype to avoid an error. */
10103/* We use char because int might match the return type of a gcc2
10104 builtin and then its argument prototype would still apply. */
10105char wcslen();
10106
10107int main() {
10108wcslen()
10109; return 0; }
10110EOF
f6bcfd97 10111if { (eval echo configure:10112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10112 rm -rf conftest*
10113 eval "ac_cv_lib_$ac_lib_var=yes"
10114else
10115 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10117 rm -rf conftest*
10118 eval "ac_cv_lib_$ac_lib_var=no"
10119fi
10120rm -f conftest*
10121LIBS="$ac_save_LIBS"
10122
10123fi
10124if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10125 echo "$ac_t""yes" 1>&6
10126
10127 cat >> confdefs.h <<\EOF
10128#define HAVE_WCSLEN 1
10129EOF
10130
10131 WCHAR_LINK=""
10132
10133else
10134 echo "$ac_t""no" 1>&6
10135
10136 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
f6bcfd97 10137echo "configure:10138: checking for wcslen in -lw" >&5
10f2d63a
VZ
10138ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
10139if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10140 echo $ac_n "(cached) $ac_c" 1>&6
10141else
10142 ac_save_LIBS="$LIBS"
10143LIBS="-lw $LIBS"
10144cat > conftest.$ac_ext <<EOF
f6bcfd97 10145#line 10146 "configure"
10f2d63a
VZ
10146#include "confdefs.h"
10147/* Override any gcc2 internal prototype to avoid an error. */
10148/* We use char because int might match the return type of a gcc2
10149 builtin and then its argument prototype would still apply. */
10150char wcslen();
10151
10152int main() {
10153wcslen()
10154; return 0; }
10155EOF
f6bcfd97 10156if { (eval echo configure:10157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10157 rm -rf conftest*
10158 eval "ac_cv_lib_$ac_lib_var=yes"
10159else
10160 echo "configure: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10162 rm -rf conftest*
10163 eval "ac_cv_lib_$ac_lib_var=no"
10164fi
10165rm -f conftest*
10166LIBS="$ac_save_LIBS"
10167
10168fi
10169if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10170 echo "$ac_t""yes" 1>&6
10171
10172 cat >> confdefs.h <<\EOF
10173#define HAVE_WCSLEN 1
10174EOF
10175
10176 WCHAR_LINK="-lw"
10177
10178else
10179 echo "$ac_t""no" 1>&6
10180fi
10181
10182
10183fi
10184
10185
10186echo $ac_n "checking for vprintf""... $ac_c" 1>&6
f6bcfd97 10187echo "configure:10188: checking for vprintf" >&5
10f2d63a
VZ
10188if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10189 echo $ac_n "(cached) $ac_c" 1>&6
10190else
10191 cat > conftest.$ac_ext <<EOF
f6bcfd97 10192#line 10193 "configure"
10f2d63a
VZ
10193#include "confdefs.h"
10194/* System header to define __stub macros and hopefully few prototypes,
10195 which can conflict with char vprintf(); below. */
10196#include <assert.h>
10197/* Override any gcc2 internal prototype to avoid an error. */
10198/* We use char because int might match the return type of a gcc2
10199 builtin and then its argument prototype would still apply. */
10200char vprintf();
10201
10202int main() {
10203
10204/* The GNU C library defines this for functions which it implements
10205 to always fail with ENOSYS. Some functions are actually named
10206 something starting with __ and the normal name is an alias. */
10207#if defined (__stub_vprintf) || defined (__stub___vprintf)
10208choke me
10209#else
e8482f24 10210vprintf();
10f2d63a
VZ
10211#endif
10212
10213; return 0; }
10214EOF
f6bcfd97 10215if { (eval echo configure:10216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10216 rm -rf conftest*
10217 eval "ac_cv_func_vprintf=yes"
10218else
10219 echo "configure: failed program was:" >&5
10220 cat conftest.$ac_ext >&5
10221 rm -rf conftest*
10222 eval "ac_cv_func_vprintf=no"
10223fi
10224rm -f conftest*
10225fi
10226
10227if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10228 echo "$ac_t""yes" 1>&6
10229 cat >> confdefs.h <<\EOF
10230#define HAVE_VPRINTF 1
10231EOF
10232
10233else
10234 echo "$ac_t""no" 1>&6
10235fi
10236
10237if test "$ac_cv_func_vprintf" != yes; then
10238echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
f6bcfd97 10239echo "configure:10240: checking for _doprnt" >&5
10f2d63a
VZ
10240if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10241 echo $ac_n "(cached) $ac_c" 1>&6
10242else
10243 cat > conftest.$ac_ext <<EOF
f6bcfd97 10244#line 10245 "configure"
10f2d63a
VZ
10245#include "confdefs.h"
10246/* System header to define __stub macros and hopefully few prototypes,
10247 which can conflict with char _doprnt(); below. */
10248#include <assert.h>
10249/* Override any gcc2 internal prototype to avoid an error. */
10250/* We use char because int might match the return type of a gcc2
10251 builtin and then its argument prototype would still apply. */
10252char _doprnt();
10253
10254int main() {
10255
10256/* The GNU C library defines this for functions which it implements
10257 to always fail with ENOSYS. Some functions are actually named
10258 something starting with __ and the normal name is an alias. */
10259#if defined (__stub__doprnt) || defined (__stub____doprnt)
10260choke me
10261#else
e8482f24 10262_doprnt();
10f2d63a
VZ
10263#endif
10264
10265; return 0; }
10266EOF
f6bcfd97 10267if { (eval echo configure:10268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10268 rm -rf conftest*
10269 eval "ac_cv_func__doprnt=yes"
10270else
10271 echo "configure: failed program was:" >&5
10272 cat conftest.$ac_ext >&5
10273 rm -rf conftest*
10274 eval "ac_cv_func__doprnt=no"
10275fi
10276rm -f conftest*
10277fi
10278
10279if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10280 echo "$ac_t""yes" 1>&6
10281 cat >> confdefs.h <<\EOF
10282#define HAVE_DOPRNT 1
10283EOF
10284
10285else
10286 echo "$ac_t""no" 1>&6
10287fi
10288
10289fi
10290
10291
10f2d63a 10292
f6bcfd97
BP
10293ac_ext=C
10294# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10295ac_cpp='$CXXCPP $CPPFLAGS'
10296ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10297ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10298cross_compiling=$ac_cv_prog_cxx_cross
10299
10300
10301
10302
10303echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
10304echo "configure:10305: checking for vsnprintf" >&5
10305if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
10306 echo $ac_n "(cached) $ac_c" 1>&6
10307else
10308
10309 cat > conftest.$ac_ext <<EOF
10310#line 10311 "configure"
10311#include "confdefs.h"
10312
10313 #include <stdio.h>
10314 #include <stdarg.h>
10315
10f2d63a
VZ
10316int main() {
10317
f6bcfd97 10318 int wx_test_vsnprintf(const char *, ...);
10f2d63a 10319
f6bcfd97
BP
10320 wx_test_vsnprintf("%s");
10321 return 0;
10322 }
10323
10324 int wx_test_vsnprintf(const char *fmt, ...)
10325 {
10326 char *s;
10327
10328 va_list argp;
10329 va_start(argp, fmt);
10330 vsnprintf(s, 42, fmt, argp);
10331 va_end(argp);
10332
10f2d63a
VZ
10333; return 0; }
10334EOF
f6bcfd97 10335if { (eval echo configure:10336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 10336 rm -rf conftest*
f6bcfd97
BP
10337
10338 cat >> confdefs.h <<\EOF
10339#define HAVE_VSNPRINTF 1
10340EOF
10341
10342 wx_cv_func_vsnprintf=yes
10343
10f2d63a
VZ
10344else
10345 echo "configure: failed program was:" >&5
10346 cat conftest.$ac_ext >&5
10347 rm -rf conftest*
f6bcfd97
BP
10348
10349 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10350 wx_cv_func_vsnprintf=no
10351
10f2d63a
VZ
10352fi
10353rm -f conftest*
10f2d63a 10354
10f2d63a 10355fi
10f2d63a 10356
f6bcfd97 10357echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a
VZ
10358
10359echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
f6bcfd97 10360echo "configure:10361: checking for vsscanf" >&5
10f2d63a
VZ
10361if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10362 echo $ac_n "(cached) $ac_c" 1>&6
10363else
10364
10f2d63a 10365 cat > conftest.$ac_ext <<EOF
f6bcfd97 10366#line 10367 "configure"
10f2d63a 10367#include "confdefs.h"
10f2d63a 10368
f6bcfd97
BP
10369 #include <stdio.h>
10370 #include <stdarg.h>
10371
10372int main() {
10f2d63a 10373
f6bcfd97 10374 int wx_test_vsscanf(const char *, ...);
10f2d63a 10375
f6bcfd97
BP
10376 wx_test_vsscanf("%d");
10377 return 0;
10f2d63a
VZ
10378 }
10379
f6bcfd97 10380 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 10381 {
f6bcfd97
BP
10382 va_list argp;
10383 va_start(argp, fmt);
10384 vsscanf("42", fmt, argp);
10385 va_end(argp);
10386
10387; return 0; }
10f2d63a 10388EOF
f6bcfd97
BP
10389if { (eval echo configure:10390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10390 rm -rf conftest*
10f2d63a 10391
f6bcfd97 10392 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10393#define HAVE_VSSCANF 1
10394EOF
10395
f6bcfd97
BP
10396 wx_cv_func_vsscanf=yes
10397
10f2d63a
VZ
10398else
10399 echo "configure: failed program was:" >&5
10400 cat conftest.$ac_ext >&5
f6bcfd97
BP
10401 rm -rf conftest*
10402
10403 wx_cv_func_vsscanf=no
10404
10f2d63a 10405fi
f6bcfd97 10406rm -f conftest*
10f2d63a
VZ
10407
10408fi
10409
10410echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10411
10412ac_ext=c
10413# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10414ac_cpp='$CPP $CPPFLAGS'
10415ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10416ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10417cross_compiling=$ac_cv_prog_cc_cross
10418
10419
b089607b 10420if test "$TOOLKIT" != "MSW"; then
10f2d63a 10421
eb4efbdc
VZ
10422if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
10423 for ac_func in sigaction
10424do
10425echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f6bcfd97 10426echo "configure:10427: checking for $ac_func" >&5
eb4efbdc
VZ
10427if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10428 echo $ac_n "(cached) $ac_c" 1>&6
10429else
10430 cat > conftest.$ac_ext <<EOF
f6bcfd97 10431#line 10432 "configure"
eb4efbdc
VZ
10432#include "confdefs.h"
10433/* System header to define __stub macros and hopefully few prototypes,
10434 which can conflict with char $ac_func(); below. */
10435#include <assert.h>
10436/* Override any gcc2 internal prototype to avoid an error. */
10437/* We use char because int might match the return type of a gcc2
10438 builtin and then its argument prototype would still apply. */
10439char $ac_func();
10440
10441int main() {
10442
10443/* The GNU C library defines this for functions which it implements
10444 to always fail with ENOSYS. Some functions are actually named
10445 something starting with __ and the normal name is an alias. */
10446#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10447choke me
10448#else
10449$ac_func();
10450#endif
10451
10452; return 0; }
10453EOF
f6bcfd97 10454if { (eval echo configure:10455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4efbdc
VZ
10455 rm -rf conftest*
10456 eval "ac_cv_func_$ac_func=yes"
10457else
10458 echo "configure: failed program was:" >&5
10459 cat conftest.$ac_ext >&5
10460 rm -rf conftest*
10461 eval "ac_cv_func_$ac_func=no"
10462fi
10463rm -f conftest*
10464fi
10465
10466if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10467 echo "$ac_t""yes" 1>&6
10468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10469 cat >> confdefs.h <<EOF
10470#define $ac_tr_func 1
10471EOF
10472
10473else
10474 echo "$ac_t""no" 1>&6
10475fi
10476done
10477
10478
10479 if test "$ac_cv_func_sigaction" = "no"; then
10480 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
10481 wxUSE_ON_FATAL_EXCEPTION=no
10482 fi
f6bcfd97
BP
10483
10484 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
10485
10486 ac_ext=C
10487# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10488ac_cpp='$CXXCPP $CPPFLAGS'
10489ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10490ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10491cross_compiling=$ac_cv_prog_cxx_cross
10492
10493
10494 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
10495echo "configure:10496: checking for sa_handler type" >&5
10496if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
10497 echo $ac_n "(cached) $ac_c" 1>&6
10498else
10499
10500 cat > conftest.$ac_ext <<EOF
10501#line 10502 "configure"
10502#include "confdefs.h"
10503#include <signal.h>
10504int main() {
10505
10506 extern void testSigHandler(int);
10507
10508 struct sigaction sa;
10509 sa.sa_handler = testSigHandler;
10510
10511; return 0; }
10512EOF
10513if { (eval echo configure:10514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10514 rm -rf conftest*
10515
10516 wx_cv_type_sa_handler=int
10517
10518else
10519 echo "configure: failed program was:" >&5
10520 cat conftest.$ac_ext >&5
10521 rm -rf conftest*
10522
10523 wx_cv_type_sa_handler=void
10524
10525fi
10526rm -f conftest*
10527
10528fi
10529
10530echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
10531
10532 ac_ext=c
10533# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10534ac_cpp='$CPP $CPPFLAGS'
10535ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10536ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10537cross_compiling=$ac_cv_prog_cc_cross
10538
10539
10540 cat >> confdefs.h <<EOF
10541#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
10542EOF
10543
10544 fi
eb4efbdc
VZ
10545fi
10546
10f2d63a
VZ
10547for ac_func in vfork
10548do
10549echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f6bcfd97 10550echo "configure:10551: checking for $ac_func" >&5
10f2d63a
VZ
10551if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10552 echo $ac_n "(cached) $ac_c" 1>&6
10553else
10554 cat > conftest.$ac_ext <<EOF
f6bcfd97 10555#line 10556 "configure"
10f2d63a
VZ
10556#include "confdefs.h"
10557/* System header to define __stub macros and hopefully few prototypes,
10558 which can conflict with char $ac_func(); below. */
10559#include <assert.h>
10560/* Override any gcc2 internal prototype to avoid an error. */
10561/* We use char because int might match the return type of a gcc2
10562 builtin and then its argument prototype would still apply. */
10563char $ac_func();
10564
10565int main() {
10566
10567/* The GNU C library defines this for functions which it implements
10568 to always fail with ENOSYS. Some functions are actually named
10569 something starting with __ and the normal name is an alias. */
10570#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10571choke me
10572#else
e8482f24 10573$ac_func();
10f2d63a
VZ
10574#endif
10575
10576; return 0; }
10577EOF
f6bcfd97 10578if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
10579 rm -rf conftest*
10580 eval "ac_cv_func_$ac_func=yes"
10581else
10582 echo "configure: failed program was:" >&5
10583 cat conftest.$ac_ext >&5
10584 rm -rf conftest*
10585 eval "ac_cv_func_$ac_func=no"
10586fi
10587rm -f conftest*
10588fi
10589
10590if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10591 echo "$ac_t""yes" 1>&6
10592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10593 cat >> confdefs.h <<EOF
10594#define $ac_tr_func 1
10595EOF
10596
10597else
10598 echo "$ac_t""no" 1>&6
10599fi
10600done
10601
10602
10603for ac_func in timegm
10604do
10605echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f6bcfd97 10606echo "configure:10607: checking for $ac_func" >&5
270a909e
VZ
10607if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10608 echo $ac_n "(cached) $ac_c" 1>&6
10609else
10610 cat > conftest.$ac_ext <<EOF
f6bcfd97 10611#line 10612 "configure"
270a909e
VZ
10612#include "confdefs.h"
10613/* System header to define __stub macros and hopefully few prototypes,
10614 which can conflict with char $ac_func(); below. */
10615#include <assert.h>
10616/* Override any gcc2 internal prototype to avoid an error. */
10617/* We use char because int might match the return type of a gcc2
10618 builtin and then its argument prototype would still apply. */
10619char $ac_func();
10620
10621int main() {
10622
10623/* The GNU C library defines this for functions which it implements
10624 to always fail with ENOSYS. Some functions are actually named
10625 something starting with __ and the normal name is an alias. */
10626#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10627choke me
10628#else
e8482f24 10629$ac_func();
270a909e
VZ
10630#endif
10631
10632; return 0; }
10633EOF
f6bcfd97 10634if { (eval echo configure:10635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10635 rm -rf conftest*
10636 eval "ac_cv_func_$ac_func=yes"
10637else
10638 echo "configure: failed program was:" >&5
10639 cat conftest.$ac_ext >&5
10640 rm -rf conftest*
10641 eval "ac_cv_func_$ac_func=no"
10642fi
10643rm -f conftest*
10644fi
10645
10646if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10647 echo "$ac_t""yes" 1>&6
10648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10649 cat >> confdefs.h <<EOF
10650#define $ac_tr_func 1
10651EOF
10652
10653else
10654 echo "$ac_t""no" 1>&6
10655fi
10656done
10657
10658
b12915c1
VZ
10659HAVE_SOME_SLEEP_FUNC=0
10660if test "$USE_BEOS" = 1; then
10661 cat >> confdefs.h <<\EOF
10662#define HAVE_SLEEP 1
10663EOF
10664
10665 HAVE_SOME_SLEEP_FUNC=1
10666fi
10667
10668if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10669 POSIX4_LINK=
10670 for ac_func in nanosleep
10f2d63a
VZ
10671do
10672echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f6bcfd97 10673echo "configure:10674: checking for $ac_func" >&5
10f2d63a
VZ
10674if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10675 echo $ac_n "(cached) $ac_c" 1>&6
10676else
10677 cat > conftest.$ac_ext <<EOF
f6bcfd97 10678#line 10679 "configure"
10f2d63a
VZ
10679#include "confdefs.h"
10680/* System header to define __stub macros and hopefully few prototypes,
10681 which can conflict with char $ac_func(); below. */
10682#include <assert.h>
10683/* Override any gcc2 internal prototype to avoid an error. */
10684/* We use char because int might match the return type of a gcc2
10685 builtin and then its argument prototype would still apply. */
10686char $ac_func();
10687
10688int main() {
10689
10690/* The GNU C library defines this for functions which it implements
10691 to always fail with ENOSYS. Some functions are actually named
10692 something starting with __ and the normal name is an alias. */
10693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10694choke me
10695#else
e8482f24 10696$ac_func();
10f2d63a
VZ
10697#endif
10698
10699; return 0; }
10700EOF
f6bcfd97 10701if { (eval echo configure:10702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10702 rm -rf conftest*
10703 eval "ac_cv_func_$ac_func=yes"
10704else
10705 echo "configure: failed program was:" >&5
10706 cat conftest.$ac_ext >&5
10707 rm -rf conftest*
10708 eval "ac_cv_func_$ac_func=no"
10709fi
10710rm -f conftest*
10711fi
10712
10713if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10714 echo "$ac_t""yes" 1>&6
10715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10716 cat >> confdefs.h <<EOF
10717#define $ac_tr_func 1
10718EOF
10719 cat >> confdefs.h <<\EOF
10720#define HAVE_NANOSLEEP 1
10721EOF
10722
10723else
10724 echo "$ac_t""no" 1>&6
10725echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
f6bcfd97 10726echo "configure:10727: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
10727ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10728if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10729 echo $ac_n "(cached) $ac_c" 1>&6
10730else
10731 ac_save_LIBS="$LIBS"
10732LIBS="-lposix4 $LIBS"
10733cat > conftest.$ac_ext <<EOF
f6bcfd97 10734#line 10735 "configure"
10f2d63a
VZ
10735#include "confdefs.h"
10736/* Override any gcc2 internal prototype to avoid an error. */
10737/* We use char because int might match the return type of a gcc2
10738 builtin and then its argument prototype would still apply. */
10739char nanosleep();
10740
10741int main() {
10742nanosleep()
10743; return 0; }
10744EOF
f6bcfd97 10745if { (eval echo configure:10746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10746 rm -rf conftest*
10747 eval "ac_cv_lib_$ac_lib_var=yes"
10748else
10749 echo "configure: failed program was:" >&5
10750 cat conftest.$ac_ext >&5
10751 rm -rf conftest*
10752 eval "ac_cv_lib_$ac_lib_var=no"
10753fi
10754rm -f conftest*
10755LIBS="$ac_save_LIBS"
10756
10757fi
10758if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10759 echo "$ac_t""yes" 1>&6
10760
b12915c1 10761 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10762#define HAVE_NANOSLEEP 1
10763EOF
10764
b12915c1
VZ
10765 POSIX4_LINK="-lposix4"
10766
10f2d63a
VZ
10767else
10768 echo "$ac_t""no" 1>&6
10769
b12915c1 10770 for ac_func in usleep
10f2d63a
VZ
10771do
10772echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f6bcfd97 10773echo "configure:10774: checking for $ac_func" >&5
10f2d63a
VZ
10774if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10775 echo $ac_n "(cached) $ac_c" 1>&6
10776else
10777 cat > conftest.$ac_ext <<EOF
f6bcfd97 10778#line 10779 "configure"
10f2d63a
VZ
10779#include "confdefs.h"
10780/* System header to define __stub macros and hopefully few prototypes,
10781 which can conflict with char $ac_func(); below. */
10782#include <assert.h>
10783/* Override any gcc2 internal prototype to avoid an error. */
10784/* We use char because int might match the return type of a gcc2
10785 builtin and then its argument prototype would still apply. */
10786char $ac_func();
10787
10788int main() {
10789
10790/* The GNU C library defines this for functions which it implements
10791 to always fail with ENOSYS. Some functions are actually named
10792 something starting with __ and the normal name is an alias. */
10793#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10794choke me
10795#else
e8482f24 10796$ac_func();
10f2d63a
VZ
10797#endif
10798
10799; return 0; }
10800EOF
f6bcfd97 10801if { (eval echo configure:10802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10802 rm -rf conftest*
10803 eval "ac_cv_func_$ac_func=yes"
10804else
10805 echo "configure: failed program was:" >&5
10806 cat conftest.$ac_ext >&5
10807 rm -rf conftest*
10808 eval "ac_cv_func_$ac_func=no"
10809fi
10810rm -f conftest*
10811fi
10812
10813if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10814 echo "$ac_t""yes" 1>&6
10815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10816 cat >> confdefs.h <<EOF
10817#define $ac_tr_func 1
10818EOF
b12915c1 10819
10f2d63a
VZ
10820else
10821 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10822fi
10823done
10824
b12915c1
VZ
10825 echo "configure: warning: wxSleep() function will not work" 1>&2
10826
10827
10f2d63a
VZ
10828fi
10829
b12915c1
VZ
10830
10831
10f2d63a
VZ
10832fi
10833done
10834
b12915c1 10835fi
10f2d63a
VZ
10836
10837for ac_func in uname gethostname
10838do
10839echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f6bcfd97 10840echo "configure:10841: checking for $ac_func" >&5
10f2d63a
VZ
10841if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10842 echo $ac_n "(cached) $ac_c" 1>&6
10843else
10844 cat > conftest.$ac_ext <<EOF
f6bcfd97 10845#line 10846 "configure"
10f2d63a
VZ
10846#include "confdefs.h"
10847/* System header to define __stub macros and hopefully few prototypes,
10848 which can conflict with char $ac_func(); below. */
10849#include <assert.h>
10850/* Override any gcc2 internal prototype to avoid an error. */
10851/* We use char because int might match the return type of a gcc2
10852 builtin and then its argument prototype would still apply. */
10853char $ac_func();
10854
10855int main() {
10856
10857/* The GNU C library defines this for functions which it implements
10858 to always fail with ENOSYS. Some functions are actually named
10859 something starting with __ and the normal name is an alias. */
10860#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10861choke me
10862#else
e8482f24 10863$ac_func();
10f2d63a
VZ
10864#endif
10865
10866; return 0; }
10867EOF
f6bcfd97 10868if { (eval echo configure:10869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10869 rm -rf conftest*
10870 eval "ac_cv_func_$ac_func=yes"
10871else
10872 echo "configure: failed program was:" >&5
10873 cat conftest.$ac_ext >&5
10874 rm -rf conftest*
10875 eval "ac_cv_func_$ac_func=no"
10876fi
10877rm -f conftest*
10878fi
10879
10880if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10881 echo "$ac_t""yes" 1>&6
10882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10883 cat >> confdefs.h <<EOF
10884#define $ac_tr_func 1
10885EOF
10886 break
10887else
10888 echo "$ac_t""no" 1>&6
10889fi
10890done
10891
10892
6098c7f9
VZ
10893
10894ac_ext=C
10895# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10896ac_cpp='$CXXCPP $CPPFLAGS'
10897ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10898ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10899cross_compiling=$ac_cv_prog_cxx_cross
10900
10901
10f2d63a
VZ
10902for ac_func in strtok_r
10903do
10904echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f6bcfd97 10905echo "configure:10906: checking for $ac_func" >&5
10f2d63a
VZ
10906if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10907 echo $ac_n "(cached) $ac_c" 1>&6
10908else
10909 cat > conftest.$ac_ext <<EOF
f6bcfd97 10910#line 10911 "configure"
10f2d63a
VZ
10911#include "confdefs.h"
10912/* System header to define __stub macros and hopefully few prototypes,
10913 which can conflict with char $ac_func(); below. */
10914#include <assert.h>
10915/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
10916#ifdef __cplusplus
10917extern "C"
10918#endif
10f2d63a
VZ
10919/* We use char because int might match the return type of a gcc2
10920 builtin and then its argument prototype would still apply. */
10921char $ac_func();
10922
10923int main() {
10924
10925/* The GNU C library defines this for functions which it implements
10926 to always fail with ENOSYS. Some functions are actually named
10927 something starting with __ and the normal name is an alias. */
10928#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10929choke me
10930#else
e8482f24 10931$ac_func();
10f2d63a
VZ
10932#endif
10933
10934; return 0; }
10935EOF
f6bcfd97 10936if { (eval echo configure:10937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10937 rm -rf conftest*
10938 eval "ac_cv_func_$ac_func=yes"
10939else
10940 echo "configure: failed program was:" >&5
10941 cat conftest.$ac_ext >&5
10942 rm -rf conftest*
10943 eval "ac_cv_func_$ac_func=no"
10944fi
10945rm -f conftest*
10946fi
10947
10948if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10949 echo "$ac_t""yes" 1>&6
10950 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10951 cat >> confdefs.h <<EOF
10952#define $ac_tr_func 1
10953EOF
10954
10955else
10956 echo "$ac_t""no" 1>&6
10957fi
10958done
10959
10960
6098c7f9
VZ
10961ac_ext=c
10962# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10963ac_cpp='$CPP $CPPFLAGS'
10964ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10965ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10966cross_compiling=$ac_cv_prog_cc_cross
10967
10968
c63c7106 10969INET_LINK=
10f2d63a
VZ
10970for ac_func in inet_addr
10971do
10972echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f6bcfd97 10973echo "configure:10974: checking for $ac_func" >&5
10f2d63a
VZ
10974if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10975 echo $ac_n "(cached) $ac_c" 1>&6
10976else
10977 cat > conftest.$ac_ext <<EOF
f6bcfd97 10978#line 10979 "configure"
10f2d63a
VZ
10979#include "confdefs.h"
10980/* System header to define __stub macros and hopefully few prototypes,
10981 which can conflict with char $ac_func(); below. */
10982#include <assert.h>
10983/* Override any gcc2 internal prototype to avoid an error. */
10984/* We use char because int might match the return type of a gcc2
10985 builtin and then its argument prototype would still apply. */
10986char $ac_func();
10987
10988int main() {
10989
10990/* The GNU C library defines this for functions which it implements
10991 to always fail with ENOSYS. Some functions are actually named
10992 something starting with __ and the normal name is an alias. */
10993#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10994choke me
10995#else
e8482f24 10996$ac_func();
10f2d63a
VZ
10997#endif
10998
10999; return 0; }
11000EOF
f6bcfd97 11001if { (eval echo configure:11002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11002 rm -rf conftest*
11003 eval "ac_cv_func_$ac_func=yes"
11004else
11005 echo "configure: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11007 rm -rf conftest*
11008 eval "ac_cv_func_$ac_func=no"
11009fi
11010rm -f conftest*
11011fi
11012
11013if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11014 echo "$ac_t""yes" 1>&6
11015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11016 cat >> confdefs.h <<EOF
11017#define $ac_tr_func 1
11018EOF
c63c7106
VZ
11019 cat >> confdefs.h <<\EOF
11020#define HAVE_INET_ADDR 1
11021EOF
11022
10f2d63a
VZ
11023else
11024 echo "$ac_t""no" 1>&6
c63c7106 11025echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
f6bcfd97 11026echo "configure:11027: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
11027ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
11028if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11029 echo $ac_n "(cached) $ac_c" 1>&6
11030else
11031 ac_save_LIBS="$LIBS"
11032LIBS="-lnsl $LIBS"
11033cat > conftest.$ac_ext <<EOF
f6bcfd97 11034#line 11035 "configure"
c63c7106
VZ
11035#include "confdefs.h"
11036/* Override any gcc2 internal prototype to avoid an error. */
11037/* We use char because int might match the return type of a gcc2
11038 builtin and then its argument prototype would still apply. */
11039char inet_addr();
11040
11041int main() {
11042inet_addr()
11043; return 0; }
11044EOF
f6bcfd97 11045if { (eval echo configure:11046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11046 rm -rf conftest*
11047 eval "ac_cv_lib_$ac_lib_var=yes"
11048else
11049 echo "configure: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11051 rm -rf conftest*
11052 eval "ac_cv_lib_$ac_lib_var=no"
11053fi
11054rm -f conftest*
11055LIBS="$ac_save_LIBS"
11056
11057fi
11058if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11059 echo "$ac_t""yes" 1>&6
11060 INET_LINK="nsl"
11061else
11062 echo "$ac_t""no" 1>&6
11063echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
f6bcfd97 11064echo "configure:11065: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
11065ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
11066if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11067 echo $ac_n "(cached) $ac_c" 1>&6
11068else
11069 ac_save_LIBS="$LIBS"
11070LIBS="-lresolv $LIBS"
11071cat > conftest.$ac_ext <<EOF
f6bcfd97 11072#line 11073 "configure"
c63c7106
VZ
11073#include "confdefs.h"
11074/* Override any gcc2 internal prototype to avoid an error. */
11075/* We use char because int might match the return type of a gcc2
11076 builtin and then its argument prototype would still apply. */
11077char inet_addr();
11078
11079int main() {
11080inet_addr()
11081; return 0; }
11082EOF
f6bcfd97 11083if { (eval echo configure:11084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11084 rm -rf conftest*
11085 eval "ac_cv_lib_$ac_lib_var=yes"
11086else
11087 echo "configure: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11089 rm -rf conftest*
11090 eval "ac_cv_lib_$ac_lib_var=no"
11091fi
11092rm -f conftest*
11093LIBS="$ac_save_LIBS"
11094
11095fi
11096if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11097 echo "$ac_t""yes" 1>&6
11098 INET_LINK="resolv"
11099
11100else
11101 echo "$ac_t""no" 1>&6
11102fi
11103
11104
11105fi
11106
11107
11108
10f2d63a
VZ
11109fi
11110done
11111
c63c7106 11112
10f2d63a
VZ
11113for ac_func in inet_aton
11114do
11115echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f6bcfd97 11116echo "configure:11117: checking for $ac_func" >&5
10f2d63a
VZ
11117if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11118 echo $ac_n "(cached) $ac_c" 1>&6
11119else
11120 cat > conftest.$ac_ext <<EOF
f6bcfd97 11121#line 11122 "configure"
10f2d63a
VZ
11122#include "confdefs.h"
11123/* System header to define __stub macros and hopefully few prototypes,
11124 which can conflict with char $ac_func(); below. */
11125#include <assert.h>
11126/* Override any gcc2 internal prototype to avoid an error. */
11127/* We use char because int might match the return type of a gcc2
11128 builtin and then its argument prototype would still apply. */
11129char $ac_func();
11130
11131int main() {
11132
11133/* The GNU C library defines this for functions which it implements
11134 to always fail with ENOSYS. Some functions are actually named
11135 something starting with __ and the normal name is an alias. */
11136#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11137choke me
11138#else
e8482f24 11139$ac_func();
10f2d63a
VZ
11140#endif
11141
11142; return 0; }
11143EOF
f6bcfd97 11144if { (eval echo configure:11145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11145 rm -rf conftest*
11146 eval "ac_cv_func_$ac_func=yes"
11147else
11148 echo "configure: failed program was:" >&5
11149 cat conftest.$ac_ext >&5
11150 rm -rf conftest*
11151 eval "ac_cv_func_$ac_func=no"
11152fi
11153rm -f conftest*
11154fi
11155
11156if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11157 echo "$ac_t""yes" 1>&6
11158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11159 cat >> confdefs.h <<EOF
11160#define $ac_tr_func 1
11161EOF
c63c7106
VZ
11162 cat >> confdefs.h <<\EOF
11163#define HAVE_INET_ATON 1
11164EOF
11165
10f2d63a
VZ
11166else
11167 echo "$ac_t""no" 1>&6
c63c7106 11168 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
f6bcfd97 11169echo "configure:11170: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 11170ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11171if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11172 echo $ac_n "(cached) $ac_c" 1>&6
11173else
11174 ac_save_LIBS="$LIBS"
c63c7106 11175LIBS="-l$INET_LINK $LIBS"
10f2d63a 11176cat > conftest.$ac_ext <<EOF
f6bcfd97 11177#line 11178 "configure"
10f2d63a
VZ
11178#include "confdefs.h"
11179/* Override any gcc2 internal prototype to avoid an error. */
11180/* We use char because int might match the return type of a gcc2
11181 builtin and then its argument prototype would still apply. */
11182char inet_aton();
11183
11184int main() {
11185inet_aton()
11186; return 0; }
11187EOF
f6bcfd97 11188if { (eval echo configure:11189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11189 rm -rf conftest*
11190 eval "ac_cv_lib_$ac_lib_var=yes"
11191else
11192 echo "configure: failed program was:" >&5
11193 cat conftest.$ac_ext >&5
11194 rm -rf conftest*
11195 eval "ac_cv_lib_$ac_lib_var=no"
11196fi
11197rm -f conftest*
11198LIBS="$ac_save_LIBS"
11199
11200fi
11201if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11202 echo "$ac_t""yes" 1>&6
c63c7106
VZ
11203 cat >> confdefs.h <<\EOF
11204#define HAVE_INET_ATON 1
10f2d63a
VZ
11205EOF
11206
10f2d63a
VZ
11207else
11208 echo "$ac_t""no" 1>&6
11209fi
11210
c63c7106
VZ
11211
11212fi
11213done
11214
11215
11216if test "x$INET_LINK" != "x"; then
11217 cat >> confdefs.h <<\EOF
11218#define HAVE_INET_ADDR 1
11219EOF
11220
11221 INET_LINK="-l$INET_LINK"
11222fi
10f2d63a
VZ
11223
11224fi
11225
11226
11227cat > confcache <<\EOF
11228# This file is a shell script that caches the results of configure
11229# tests run on this system so they can be shared between configure
11230# scripts and configure runs. It is not useful on other systems.
11231# If it contains results you don't want to keep, you may remove or edit it.
11232#
11233# By default, configure uses ./config.cache as the cache file,
11234# creating it if it does not exist already. You can give configure
11235# the --cache-file=FILE option to use a different cache file; that is
11236# what configure does when it calls configure scripts in
11237# subdirectories, so they share the cache.
11238# Giving --cache-file=/dev/null disables caching, for debugging configure.
11239# config.status only pays attention to the cache file if you give it the
11240# --recheck option to rerun configure.
11241#
11242EOF
11243# The following way of writing the cache mishandles newlines in values,
11244# but we know of no workaround that is simple, portable, and efficient.
11245# So, don't put newlines in cache variables' values.
11246# Ultrix sh set writes to stderr and can't be redirected directly,
11247# and sets the high bit in the cache file unless we assign to the vars.
11248(set) 2>&1 |
11249 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11250 *ac_space=\ *)
11251 # `set' does not quote correctly, so add quotes (double-quote substitution
11252 # turns \\\\ into \\, and sed turns \\ into \).
11253 sed -n \
11254 -e "s/'/'\\\\''/g" \
11255 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11256 ;;
11257 *)
11258 # `set' quotes correctly as required by POSIX, so do not add quotes.
11259 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11260 ;;
11261 esac >> confcache
11262if cmp -s $cache_file confcache; then
11263 :
11264else
11265 if test -w $cache_file; then
11266 echo "updating cache $cache_file"
11267 cat confcache > $cache_file
11268 else
11269 echo "not updating unwritable cache $cache_file"
11270 fi
11271fi
11272rm -f confcache
11273
11274
11275
b089607b 11276if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
11277
11278
11279THREADS_LINK=""
11280THREADS_OBJ=""
11281
11282if test "$wxUSE_THREADS" = "yes" ; then
11283 if test "$wxUSE_WINE" = 1 ; then
11284 echo "configure: warning: Threads are not supported under WINE" 1>&2
11285 wxUSE_THREADS="no"
b12915c1
VZ
11286 elif test "$USE_BEOS" = 1; then
11287 echo "configure: warning: BeOS threads are not yet supported" 1>&2
11288 wxUSE_THREADS="no"
10f2d63a
VZ
11289 fi
11290fi
11291
11292if test "$wxUSE_THREADS" = "yes" ; then
11293
f6bcfd97
BP
11294 if test "$wxUSE_AIX" = 1; then
11295 THREADS_LIB=pthreads
11296 else
11297 THREADS_LIB=pthread
11298 fi
11299
11300 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
11301echo "configure:11302: checking for pthread_create in -l$THREADS_LIB" >&5
11302ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11303if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11304 echo $ac_n "(cached) $ac_c" 1>&6
11305else
11306 ac_save_LIBS="$LIBS"
f6bcfd97 11307LIBS="-l$THREADS_LIB $LIBS"
10f2d63a 11308cat > conftest.$ac_ext <<EOF
f6bcfd97 11309#line 11310 "configure"
10f2d63a
VZ
11310#include "confdefs.h"
11311/* Override any gcc2 internal prototype to avoid an error. */
11312/* We use char because int might match the return type of a gcc2
11313 builtin and then its argument prototype would still apply. */
11314char pthread_create();
11315
11316int main() {
11317pthread_create()
11318; return 0; }
11319EOF
f6bcfd97 11320if { (eval echo configure:11321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11321 rm -rf conftest*
11322 eval "ac_cv_lib_$ac_lib_var=yes"
11323else
11324 echo "configure: failed program was:" >&5
11325 cat conftest.$ac_ext >&5
11326 rm -rf conftest*
11327 eval "ac_cv_lib_$ac_lib_var=no"
11328fi
11329rm -f conftest*
11330LIBS="$ac_save_LIBS"
11331
11332fi
11333if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11334 echo "$ac_t""yes" 1>&6
11335
11336 THREADS_OBJ="threadpsx.lo"
f6bcfd97 11337 THREADS_LINK=$THREADS_LIB
10f2d63a
VZ
11338
11339else
11340 echo "$ac_t""no" 1>&6
11341
11342 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
f6bcfd97 11343echo "configure:11344: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
11344ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
11345if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11346 echo $ac_n "(cached) $ac_c" 1>&6
11347else
11348 ac_save_LIBS="$LIBS"
11349LIBS="-lc_r $LIBS"
11350cat > conftest.$ac_ext <<EOF
f6bcfd97 11351#line 11352 "configure"
10f2d63a
VZ
11352#include "confdefs.h"
11353/* Override any gcc2 internal prototype to avoid an error. */
11354/* We use char because int might match the return type of a gcc2
11355 builtin and then its argument prototype would still apply. */
11356char pthread_create();
11357
11358int main() {
11359pthread_create()
11360; return 0; }
11361EOF
f6bcfd97 11362if { (eval echo configure:11363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11363 rm -rf conftest*
11364 eval "ac_cv_lib_$ac_lib_var=yes"
11365else
11366 echo "configure: failed program was:" >&5
11367 cat conftest.$ac_ext >&5
11368 rm -rf conftest*
11369 eval "ac_cv_lib_$ac_lib_var=no"
11370fi
11371rm -f conftest*
11372LIBS="$ac_save_LIBS"
11373
11374fi
11375if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11376 echo "$ac_t""yes" 1>&6
11377
11378 THREADS_OBJ="threadpsx.lo"
11379 THREADS_LINK="c_r"
11380
11381else
11382 echo "$ac_t""no" 1>&6
11383
11384 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
11385echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
f6bcfd97 11386echo "configure:11387: checking for sys/prctl.h" >&5
10f2d63a
VZ
11387if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11388 echo $ac_n "(cached) $ac_c" 1>&6
11389else
11390 cat > conftest.$ac_ext <<EOF
f6bcfd97 11391#line 11392 "configure"
10f2d63a
VZ
11392#include "confdefs.h"
11393#include <sys/prctl.h>
11394EOF
11395ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 11396{ (eval echo configure:11397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11397ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11398if test -z "$ac_err"; then
11399 rm -rf conftest*
11400 eval "ac_cv_header_$ac_safe=yes"
11401else
11402 echo "$ac_err" >&5
11403 echo "configure: failed program was:" >&5
11404 cat conftest.$ac_ext >&5
11405 rm -rf conftest*
11406 eval "ac_cv_header_$ac_safe=no"
11407fi
11408rm -f conftest*
11409fi
11410if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11411 echo "$ac_t""yes" 1>&6
11412
11413 THREADS_OBJ="threadsgi.lo"
11414
11415else
11416 echo "$ac_t""no" 1>&6
11417fi
11418
11419
11420fi
11421
11422
11423fi
11424
11425
11426 if test -z "$THREADS_OBJ" ; then
11427 wxUSE_THREADS=no
11428 echo "configure: warning: No thread support on this system" 1>&2
11429 fi
11430fi
11431
11432if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
11433 for ac_func in thr_setconcurrency
11434do
11435echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f6bcfd97 11436echo "configure:11437: checking for $ac_func" >&5
70846f0a
VZ
11437if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11438 echo $ac_n "(cached) $ac_c" 1>&6
11439else
11440 cat > conftest.$ac_ext <<EOF
f6bcfd97 11441#line 11442 "configure"
70846f0a
VZ
11442#include "confdefs.h"
11443/* System header to define __stub macros and hopefully few prototypes,
11444 which can conflict with char $ac_func(); below. */
11445#include <assert.h>
11446/* Override any gcc2 internal prototype to avoid an error. */
11447/* We use char because int might match the return type of a gcc2
11448 builtin and then its argument prototype would still apply. */
11449char $ac_func();
11450
11451int main() {
11452
11453/* The GNU C library defines this for functions which it implements
11454 to always fail with ENOSYS. Some functions are actually named
11455 something starting with __ and the normal name is an alias. */
11456#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11457choke me
11458#else
e8482f24 11459$ac_func();
70846f0a
VZ
11460#endif
11461
11462; return 0; }
11463EOF
f6bcfd97 11464if { (eval echo configure:11465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
11465 rm -rf conftest*
11466 eval "ac_cv_func_$ac_func=yes"
11467else
11468 echo "configure: failed program was:" >&5
11469 cat conftest.$ac_ext >&5
11470 rm -rf conftest*
11471 eval "ac_cv_func_$ac_func=no"
11472fi
11473rm -f conftest*
11474fi
11475
11476if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11477 echo "$ac_t""yes" 1>&6
11478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11479 cat >> confdefs.h <<EOF
11480#define $ac_tr_func 1
11481EOF
11482
11483else
11484 echo "$ac_t""no" 1>&6
11485fi
11486done
11487
11488
10f2d63a
VZ
11489
11490 for ac_hdr in sched.h
11491do
11492ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11493echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f6bcfd97 11494echo "configure:11495: checking for $ac_hdr" >&5
10f2d63a
VZ
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
f6bcfd97 11499#line 11500 "configure"
10f2d63a
VZ
11500#include "confdefs.h"
11501#include <$ac_hdr>
11502EOF
11503ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 11504{ (eval echo configure:11505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
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 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11521 cat >> confdefs.h <<EOF
11522#define $ac_tr_hdr 1
11523EOF
11524
11525else
11526 echo "$ac_t""no" 1>&6
11527fi
11528done
11529
11530
11531 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
f6bcfd97 11532echo "configure:11533: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
11533ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11534if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11535 echo $ac_n "(cached) $ac_c" 1>&6
11536else
11537 ac_save_LIBS="$LIBS"
11538LIBS="-l$THREADS_LINK $LIBS"
11539cat > conftest.$ac_ext <<EOF
f6bcfd97 11540#line 11541 "configure"
10f2d63a
VZ
11541#include "confdefs.h"
11542/* Override any gcc2 internal prototype to avoid an error. */
11543/* We use char because int might match the return type of a gcc2
11544 builtin and then its argument prototype would still apply. */
11545char sched_yield();
11546
11547int main() {
11548sched_yield()
11549; return 0; }
11550EOF
f6bcfd97 11551if { (eval echo configure:11552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11552 rm -rf conftest*
11553 eval "ac_cv_lib_$ac_lib_var=yes"
11554else
11555 echo "configure: failed program was:" >&5
11556 cat conftest.$ac_ext >&5
11557 rm -rf conftest*
11558 eval "ac_cv_lib_$ac_lib_var=no"
11559fi
11560rm -f conftest*
11561LIBS="$ac_save_LIBS"
11562
11563fi
11564if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11565 echo "$ac_t""yes" 1>&6
11566 cat >> confdefs.h <<\EOF
11567#define HAVE_SCHED_YIELD 1
11568EOF
11569
11570else
11571 echo "$ac_t""no" 1>&6
11572echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
f6bcfd97 11573echo "configure:11574: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
11574ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11575if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11576 echo $ac_n "(cached) $ac_c" 1>&6
11577else
11578 ac_save_LIBS="$LIBS"
11579LIBS="-l"posix4" $LIBS"
11580cat > conftest.$ac_ext <<EOF
f6bcfd97 11581#line 11582 "configure"
10f2d63a
VZ
11582#include "confdefs.h"
11583/* Override any gcc2 internal prototype to avoid an error. */
11584/* We use char because int might match the return type of a gcc2
11585 builtin and then its argument prototype would still apply. */
11586char sched_yield();
11587
11588int main() {
11589sched_yield()
11590; return 0; }
11591EOF
f6bcfd97 11592if { (eval echo configure:11593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11593 rm -rf conftest*
11594 eval "ac_cv_lib_$ac_lib_var=yes"
11595else
11596 echo "configure: failed program was:" >&5
11597 cat conftest.$ac_ext >&5
11598 rm -rf conftest*
11599 eval "ac_cv_lib_$ac_lib_var=no"
11600fi
11601rm -f conftest*
11602LIBS="$ac_save_LIBS"
11603
11604fi
11605if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11606 echo "$ac_t""yes" 1>&6
11607 cat >> confdefs.h <<\EOF
11608#define HAVE_SCHED_YIELD 1
11609EOF
11610 POSIX4_LINK="-lposix4"
11611else
11612 echo "$ac_t""no" 1>&6
11613echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11614
11615fi
11616
11617
11618fi
11619
11620
f6bcfd97
BP
11621 HAVE_PRIOR_FUNCS=0
11622 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
11623echo "configure:11624: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
11624ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11625if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11626 echo $ac_n "(cached) $ac_c" 1>&6
11627else
11628 ac_save_LIBS="$LIBS"
11629LIBS="-l$THREADS_LINK $LIBS"
11630cat > conftest.$ac_ext <<EOF
f6bcfd97 11631#line 11632 "configure"
10f2d63a
VZ
11632#include "confdefs.h"
11633/* Override any gcc2 internal prototype to avoid an error. */
11634/* We use char because int might match the return type of a gcc2
11635 builtin and then its argument prototype would still apply. */
11636char pthread_attr_getschedpolicy();
11637
11638int main() {
11639pthread_attr_getschedpolicy()
11640; return 0; }
11641EOF
f6bcfd97 11642if { (eval echo configure:11643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11643 rm -rf conftest*
11644 eval "ac_cv_lib_$ac_lib_var=yes"
11645else
11646 echo "configure: failed program was:" >&5
11647 cat conftest.$ac_ext >&5
11648 rm -rf conftest*
11649 eval "ac_cv_lib_$ac_lib_var=no"
11650fi
11651rm -f conftest*
11652LIBS="$ac_save_LIBS"
11653
11654fi
11655if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11656 echo "$ac_t""yes" 1>&6
f6bcfd97
BP
11657 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
11658echo "configure:11659: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
11659ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
11660if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11661 echo $ac_n "(cached) $ac_c" 1>&6
11662else
11663 ac_save_LIBS="$LIBS"
11664LIBS="-l$THREADS_LINK $LIBS"
11665cat > conftest.$ac_ext <<EOF
11666#line 11667 "configure"
11667#include "confdefs.h"
11668/* Override any gcc2 internal prototype to avoid an error. */
11669/* We use char because int might match the return type of a gcc2
11670 builtin and then its argument prototype would still apply. */
11671char pthread_attr_setschedparam();
11672
11673int main() {
11674pthread_attr_setschedparam()
11675; return 0; }
10f2d63a 11676EOF
f6bcfd97
BP
11677if { (eval echo configure:11678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11678 rm -rf conftest*
11679 eval "ac_cv_lib_$ac_lib_var=yes"
11680else
11681 echo "configure: failed program was:" >&5
11682 cat conftest.$ac_ext >&5
11683 rm -rf conftest*
11684 eval "ac_cv_lib_$ac_lib_var=no"
11685fi
11686rm -f conftest*
11687LIBS="$ac_save_LIBS"
10f2d63a 11688
f6bcfd97
BP
11689fi
11690if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11691 echo "$ac_t""yes" 1>&6
11692 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
11693echo "configure:11694: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
11694ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
11695if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11696 echo $ac_n "(cached) $ac_c" 1>&6
11697else
11698 ac_save_LIBS="$LIBS"
11699LIBS="-l$THREADS_LINK $LIBS"
11700cat > conftest.$ac_ext <<EOF
11701#line 11702 "configure"
11702#include "confdefs.h"
11703/* Override any gcc2 internal prototype to avoid an error. */
11704/* We use char because int might match the return type of a gcc2
11705 builtin and then its argument prototype would still apply. */
11706char sched_get_priority_max();
11707
11708int main() {
11709sched_get_priority_max()
11710; return 0; }
11711EOF
11712if { (eval echo configure:11713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11713 rm -rf conftest*
11714 eval "ac_cv_lib_$ac_lib_var=yes"
11715else
11716 echo "configure: failed program was:" >&5
11717 cat conftest.$ac_ext >&5
11718 rm -rf conftest*
11719 eval "ac_cv_lib_$ac_lib_var=no"
11720fi
11721rm -f conftest*
11722LIBS="$ac_save_LIBS"
11723
11724fi
11725if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11726 echo "$ac_t""yes" 1>&6
11727 HAVE_PRIOR_FUNCS=1
10f2d63a
VZ
11728else
11729 echo "$ac_t""no" 1>&6
f6bcfd97
BP
11730echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6
11731echo "configure:11732: checking for sched_get_priority_max in -l"posix4"" >&5
11732ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11733if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11734 echo $ac_n "(cached) $ac_c" 1>&6
11735else
11736 ac_save_LIBS="$LIBS"
11737LIBS="-l"posix4" $LIBS"
11738cat > conftest.$ac_ext <<EOF
f6bcfd97 11739#line 11740 "configure"
10f2d63a
VZ
11740#include "confdefs.h"
11741/* Override any gcc2 internal prototype to avoid an error. */
11742/* We use char because int might match the return type of a gcc2
11743 builtin and then its argument prototype would still apply. */
f6bcfd97 11744char sched_get_priority_max();
10f2d63a
VZ
11745
11746int main() {
f6bcfd97 11747sched_get_priority_max()
10f2d63a
VZ
11748; return 0; }
11749EOF
f6bcfd97 11750if { (eval echo configure:11751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11751 rm -rf conftest*
11752 eval "ac_cv_lib_$ac_lib_var=yes"
11753else
11754 echo "configure: failed program was:" >&5
11755 cat conftest.$ac_ext >&5
11756 rm -rf conftest*
11757 eval "ac_cv_lib_$ac_lib_var=no"
11758fi
11759rm -f conftest*
11760LIBS="$ac_save_LIBS"
11761
11762fi
11763if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11764 echo "$ac_t""yes" 1>&6
f6bcfd97
BP
11765
11766 HAVE_PRIOR_FUNCS=1
11767 POSIX4_LINK="-lposix4"
11768
11769else
11770 echo "$ac_t""no" 1>&6
11771fi
11772
11773
11774fi
11775
11776
10f2d63a
VZ
11777else
11778 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11779fi
11780
11781
f6bcfd97
BP
11782else
11783 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11784fi
11785
11786
f6bcfd97
BP
11787 if test "$HAVE_PRIOR_FUNCS" = 1; then
11788 cat >> confdefs.h <<\EOF
11789#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11790EOF
11791
11792 else
11793 echo "configure: warning: Setting thread priority will not work" 1>&2
11794 fi
11795
10f2d63a 11796 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
f6bcfd97 11797echo "configure:11798: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
11798ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11799if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11800 echo $ac_n "(cached) $ac_c" 1>&6
11801else
11802 ac_save_LIBS="$LIBS"
11803LIBS="-l$THREADS_LINK $LIBS"
11804cat > conftest.$ac_ext <<EOF
f6bcfd97 11805#line 11806 "configure"
10f2d63a
VZ
11806#include "confdefs.h"
11807/* Override any gcc2 internal prototype to avoid an error. */
11808/* We use char because int might match the return type of a gcc2
11809 builtin and then its argument prototype would still apply. */
11810char pthread_cancel();
11811
11812int main() {
11813pthread_cancel()
11814; return 0; }
11815EOF
f6bcfd97 11816if { (eval echo configure:11817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11817 rm -rf conftest*
11818 eval "ac_cv_lib_$ac_lib_var=yes"
11819else
11820 echo "configure: failed program was:" >&5
11821 cat conftest.$ac_ext >&5
11822 rm -rf conftest*
11823 eval "ac_cv_lib_$ac_lib_var=no"
11824fi
11825rm -f conftest*
11826LIBS="$ac_save_LIBS"
11827
11828fi
11829if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11830 echo "$ac_t""yes" 1>&6
11831 cat >> confdefs.h <<\EOF
11832#define HAVE_PTHREAD_CANCEL 1
11833EOF
11834
11835else
11836 echo "$ac_t""no" 1>&6
11837echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11838fi
11839
11840
11841 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
f6bcfd97 11842echo "configure:11843: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
11843if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11844 echo $ac_n "(cached) $ac_c" 1>&6
11845else
11846
11847 cat > conftest.$ac_ext <<EOF
f6bcfd97 11848#line 11849 "configure"
10f2d63a
VZ
11849#include "confdefs.h"
11850#include <pthread.h>
11851int main() {
11852
11853 pthread_cleanup_push(NULL, NULL);
11854 pthread_cleanup_pop(0);
11855
11856; return 0; }
11857EOF
f6bcfd97 11858if { (eval echo configure:11859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11859 rm -rf conftest*
11860
11861 wx_cv_func_pthread_cleanup_push=yes
11862 cat >> confdefs.h <<\EOF
11863#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11864EOF
11865
11866
11867else
11868 echo "configure: failed program was:" >&5
11869 cat conftest.$ac_ext >&5
11870 rm -rf conftest*
11871
11872 wx_cv_func_pthread_cleanup_push=no
11873
11874fi
11875rm -f conftest*
11876
11877fi
11878
11879echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11880
11881 THREADS_LINK="-l$THREADS_LINK"
11882fi
11883
11884fi
11885
11886if test "$wxUSE_THREADS" = "yes"; then
11887 cat >> confdefs.h <<\EOF
11888#define wxUSE_THREADS 1
11889EOF
11890
11891
11892 CFLAGS="${CFLAGS} -D_REENTRANT"
11893 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11894
11895 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11896else
11897 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11898 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
f6bcfd97 11899echo "configure:11900: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11900 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11901 CFLAGS="${CFLAGS} -D_REENTRANT"
11902 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11903 echo "$ac_t""yes" 1>&6
11904 else
11905 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11906 fi
11907 fi
11908fi
11909
13111b2a
VZ
11910if test "$WXGTK13" = 1 ; then
11911 cat >> confdefs.h <<EOF
11912#define __WXGTK13__ $WXGTK13
11913EOF
11914
11915 WXGTK12=1
11916fi
11917
10f2d63a
VZ
11918if test "$WXGTK12" = 1 ; then
11919 cat >> confdefs.h <<EOF
11920#define __WXGTK12__ $WXGTK12
11921EOF
11922
11923fi
11924
f6bcfd97
BP
11925if test "$WXGTK127" = 1 ; then
11926 cat >> confdefs.h <<EOF
11927#define __WXGTK127__ $WXGTK127
11928EOF
11929
11930fi
11931
10f2d63a
VZ
11932if test "$WXWINE" = 1 ; then
11933 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11934fi
11935
11936if test "$wxUSE_CYGWIN" = 1 ; then
11937 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11938fi
11939
11940WXDEBUG=
11941
11942if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11943 WXDEBUG="-g"
11944 wxUSE_OPTIMISE=no
11945fi
11946
11947if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11948 wxUSE_DEBUG_INFO=yes
11949 WXDEBUG="-ggdb"
11950fi
11951
11952if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11953 cat >> confdefs.h <<\EOF
11954#define WXDEBUG 1
11955EOF
11956
11957 WXDEBUG_DEFINE="-D__WXDEBUG__"
11958else
11959 if test "$wxUSE_GTK" = 1 ; then
11960 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11961 fi
11962fi
11963
11964if test "$wxUSE_MEM_TRACING" = "yes" ; then
11965 cat >> confdefs.h <<\EOF
11966#define wxUSE_MEMORY_TRACING 1
11967EOF
11968
11969 cat >> confdefs.h <<\EOF
11970#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
11971EOF
11972
11973 cat >> confdefs.h <<\EOF
11974#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
11975EOF
11976
11977 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11978fi
11979
11980if test "$wxUSE_DMALLOC" = "yes" ; then
11981 DMALLOC_LINK="-ldmalloc"
11982fi
11983
11984PROFILE=
11985if test "$wxUSE_PROFILE" = "yes" ; then
11986 PROFILE="-pg"
11987fi
11988
11989DEP_INFO_FLAGS=
caa2c79b 11990CODE_GEN_FLAGS=
10f2d63a
VZ
11991if test "$GCC" = yes ; then
11992 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 11993 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
11994 fi
11995 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 11996 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
11997 fi
11998 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 11999 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
12000 fi
12001 if test "$wxUSE_NO_DEPS" = "no" ; then
12002 DEP_INFO_FLAGS="-MMD"
12003 fi
12004fi
12005
12006
12007CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
12008CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
12009if test "$wxUSE_OPTIMISE" = "no" ; then
12010 OPTIMISE=
12011else
12012 if test "$GCC" = yes ; then
12013 OPTIMISE="-O2"
12014 case "${host}" in
12015 i586-*-*|i686-*-* )
12016 OPTIMISE="${OPTIMISE} "
12017 ;;
12018 esac
12019 else
12020 OPTIMISE="-O"
12021 fi
12022fi
12023
12024
12025ZLIB_INCLUDE=
422107f9 12026if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
10f2d63a
VZ
12027 cat >> confdefs.h <<\EOF
12028#define wxUSE_ZLIB 1
12029EOF
12030
422107f9
VZ
12031 if test "$wxUSE_ZLIB" = "yes" ; then
12032 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
12033 else
12034 ZLIB_LINK=
12035 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
12036echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
f6bcfd97 12037echo "configure:12038: checking for zlib.h" >&5
422107f9
VZ
12038if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12039 echo $ac_n "(cached) $ac_c" 1>&6
12040else
12041 cat > conftest.$ac_ext <<EOF
f6bcfd97 12042#line 12043 "configure"
422107f9
VZ
12043#include "confdefs.h"
12044#include <zlib.h>
12045EOF
12046ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 12047{ (eval echo configure:12048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12048ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12049if test -z "$ac_err"; then
12050 rm -rf conftest*
12051 eval "ac_cv_header_$ac_safe=yes"
12052else
12053 echo "$ac_err" >&5
12054 echo "configure: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12056 rm -rf conftest*
12057 eval "ac_cv_header_$ac_safe=no"
12058fi
12059rm -f conftest*
12060fi
12061if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12062 echo "$ac_t""yes" 1>&6
12063 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
f6bcfd97 12064echo "configure:12065: checking for deflate in -lz" >&5
422107f9
VZ
12065ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
12066if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12067 echo $ac_n "(cached) $ac_c" 1>&6
12068else
12069 ac_save_LIBS="$LIBS"
12070LIBS="-lz $LIBS"
12071cat > conftest.$ac_ext <<EOF
f6bcfd97 12072#line 12073 "configure"
422107f9
VZ
12073#include "confdefs.h"
12074/* Override any gcc2 internal prototype to avoid an error. */
12075/* We use char because int might match the return type of a gcc2
12076 builtin and then its argument prototype would still apply. */
12077char deflate();
12078
12079int main() {
12080deflate()
12081; return 0; }
12082EOF
f6bcfd97 12083if { (eval echo configure:12084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12084 rm -rf conftest*
12085 eval "ac_cv_lib_$ac_lib_var=yes"
12086else
12087 echo "configure: failed program was:" >&5
12088 cat conftest.$ac_ext >&5
12089 rm -rf conftest*
12090 eval "ac_cv_lib_$ac_lib_var=no"
12091fi
12092rm -f conftest*
12093LIBS="$ac_save_LIBS"
12094
12095fi
12096if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12097 echo "$ac_t""yes" 1>&6
12098 ZLIB_LINK="-lz"
12099else
12100 echo "$ac_t""no" 1>&6
12101fi
12102
12103else
12104 echo "$ac_t""no" 1>&6
12105fi
12106
12107 if test "x$ZLIB_LINK" = "x" ; then
12108 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
12109 fi
12110 fi
10f2d63a
VZ
12111fi
12112
12113PNG_INCLUDE=
422107f9 12114if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
10f2d63a
VZ
12115 cat >> confdefs.h <<\EOF
12116#define wxUSE_LIBPNG 1
12117EOF
12118
41fd4136 12119 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
422107f9
VZ
12120 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
12121 wxUSE_LIBPNG=yes
12122 fi
12123
12124 if test "$wxUSE_LIBPNG" = "yes" ; then
12125 PNG_INCLUDE="-I\${top_srcdir}/src/png"
12126 else
12127 PNG_LINK=
12128 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
12129echo $ac_n "checking for png.h""... $ac_c" 1>&6
f6bcfd97 12130echo "configure:12131: checking for png.h" >&5
422107f9
VZ
12131if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12132 echo $ac_n "(cached) $ac_c" 1>&6
12133else
12134 cat > conftest.$ac_ext <<EOF
f6bcfd97 12135#line 12136 "configure"
422107f9
VZ
12136#include "confdefs.h"
12137#include <png.h>
12138EOF
12139ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 12140{ (eval echo configure:12141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12141ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12142if test -z "$ac_err"; then
12143 rm -rf conftest*
12144 eval "ac_cv_header_$ac_safe=yes"
12145else
12146 echo "$ac_err" >&5
12147 echo "configure: failed program was:" >&5
12148 cat conftest.$ac_ext >&5
12149 rm -rf conftest*
12150 eval "ac_cv_header_$ac_safe=no"
12151fi
12152rm -f conftest*
12153fi
12154if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12155 echo "$ac_t""yes" 1>&6
12156 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
f6bcfd97 12157echo "configure:12158: checking for png_check_sig in -lpng" >&5
422107f9
VZ
12158ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
12159if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12160 echo $ac_n "(cached) $ac_c" 1>&6
12161else
12162 ac_save_LIBS="$LIBS"
12163LIBS="-lpng -lz -lm $LIBS"
12164cat > conftest.$ac_ext <<EOF
f6bcfd97 12165#line 12166 "configure"
422107f9
VZ
12166#include "confdefs.h"
12167/* Override any gcc2 internal prototype to avoid an error. */
12168/* We use char because int might match the return type of a gcc2
12169 builtin and then its argument prototype would still apply. */
12170char png_check_sig();
12171
12172int main() {
12173png_check_sig()
12174; return 0; }
12175EOF
f6bcfd97 12176if { (eval echo configure:12177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12177 rm -rf conftest*
12178 eval "ac_cv_lib_$ac_lib_var=yes"
12179else
12180 echo "configure: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12182 rm -rf conftest*
12183 eval "ac_cv_lib_$ac_lib_var=no"
12184fi
12185rm -f conftest*
12186LIBS="$ac_save_LIBS"
12187
12188fi
12189if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12190 echo "$ac_t""yes" 1>&6
12191 PNG_LINK="-lpng"
12192else
12193 echo "$ac_t""no" 1>&6
12194fi
12195
12196
12197else
12198 echo "$ac_t""no" 1>&6
12199fi
12200
12201 if test "x$PNG_LINK" = "x" ; then
0dcf9893 12202 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
12203 fi
12204 fi
12205
10f2d63a
VZ
12206 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
12207fi
12208
12209JPEG_INCLUDE=
422107f9 12210if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
10f2d63a
VZ
12211 cat >> confdefs.h <<\EOF
12212#define wxUSE_LIBJPEG 1
12213EOF
12214
422107f9
VZ
12215 if test "$wxUSE_LIBJPEG" = "yes" ; then
12216 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12217 else
12218 JPEG_LINK=
12219 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
12220echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
f6bcfd97 12221echo "configure:12222: checking for jpeglib.h" >&5
422107f9
VZ
12222if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12223 echo $ac_n "(cached) $ac_c" 1>&6
12224else
12225 cat > conftest.$ac_ext <<EOF
f6bcfd97 12226#line 12227 "configure"
422107f9
VZ
12227#include "confdefs.h"
12228#include <jpeglib.h>
12229EOF
12230ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 12231{ (eval echo configure:12232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12232ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12233if test -z "$ac_err"; then
12234 rm -rf conftest*
12235 eval "ac_cv_header_$ac_safe=yes"
12236else
12237 echo "$ac_err" >&5
12238 echo "configure: failed program was:" >&5
12239 cat conftest.$ac_ext >&5
12240 rm -rf conftest*
12241 eval "ac_cv_header_$ac_safe=no"
12242fi
12243rm -f conftest*
12244fi
12245if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12246 echo "$ac_t""yes" 1>&6
12247 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
f6bcfd97 12248echo "configure:12249: checking for jpeg_read_header in -ljpeg" >&5
422107f9
VZ
12249ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
12250if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12251 echo $ac_n "(cached) $ac_c" 1>&6
12252else
12253 ac_save_LIBS="$LIBS"
12254LIBS="-ljpeg $LIBS"
12255cat > conftest.$ac_ext <<EOF
f6bcfd97 12256#line 12257 "configure"
422107f9
VZ
12257#include "confdefs.h"
12258/* Override any gcc2 internal prototype to avoid an error. */
12259/* We use char because int might match the return type of a gcc2
12260 builtin and then its argument prototype would still apply. */
12261char jpeg_read_header();
12262
12263int main() {
12264jpeg_read_header()
12265; return 0; }
12266EOF
f6bcfd97 12267if { (eval echo configure:12268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12268 rm -rf conftest*
12269 eval "ac_cv_lib_$ac_lib_var=yes"
12270else
12271 echo "configure: failed program was:" >&5
12272 cat conftest.$ac_ext >&5
12273 rm -rf conftest*
12274 eval "ac_cv_lib_$ac_lib_var=no"
12275fi
12276rm -f conftest*
12277LIBS="$ac_save_LIBS"
12278
12279fi
12280if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12281 echo "$ac_t""yes" 1>&6
12282 JPEG_LINK="-ljpeg"
12283else
12284 echo "$ac_t""no" 1>&6
12285fi
12286
12287else
12288 echo "$ac_t""no" 1>&6
12289fi
12290
12291 if test "x$JPEG_LINK" = "x" ; then
0dcf9893 12292 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
12293 fi
12294 fi
10f2d63a
VZ
12295fi
12296
c7a2bf27 12297TIFF_INCLUDE=
0dcf9893 12298if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
c7a2bf27
RR
12299 cat >> confdefs.h <<\EOF
12300#define wxUSE_LIBTIFF 1
12301EOF
12302
0dcf9893
VZ
12303 if test "$wxUSE_LIBTIFF" = "yes" ; then
12304 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12305 else
12306 TIFF_LINK=
12307 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12308echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
f6bcfd97 12309echo "configure:12310: checking for tiffio.h" >&5
0dcf9893
VZ
12310if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12311 echo $ac_n "(cached) $ac_c" 1>&6
12312else
12313 cat > conftest.$ac_ext <<EOF
f6bcfd97 12314#line 12315 "configure"
0dcf9893
VZ
12315#include "confdefs.h"
12316#include <tiffio.h>
12317EOF
12318ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 12319{ (eval echo configure:12320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0dcf9893
VZ
12320ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12321if test -z "$ac_err"; then
12322 rm -rf conftest*
12323 eval "ac_cv_header_$ac_safe=yes"
12324else
12325 echo "$ac_err" >&5
12326 echo "configure: failed program was:" >&5
12327 cat conftest.$ac_ext >&5
12328 rm -rf conftest*
12329 eval "ac_cv_header_$ac_safe=no"
12330fi
12331rm -f conftest*
12332fi
12333if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12334 echo "$ac_t""yes" 1>&6
12335 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
f6bcfd97 12336echo "configure:12337: checking for TIFFError in -ltiff" >&5
0dcf9893
VZ
12337ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12338if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12339 echo $ac_n "(cached) $ac_c" 1>&6
12340else
12341 ac_save_LIBS="$LIBS"
12342LIBS="-ltiff -lm $LIBS"
12343cat > conftest.$ac_ext <<EOF
f6bcfd97 12344#line 12345 "configure"
0dcf9893
VZ
12345#include "confdefs.h"
12346/* Override any gcc2 internal prototype to avoid an error. */
12347/* We use char because int might match the return type of a gcc2
12348 builtin and then its argument prototype would still apply. */
12349char TIFFError();
12350
12351int main() {
12352TIFFError()
12353; return 0; }
12354EOF
f6bcfd97 12355if { (eval echo configure:12356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0dcf9893
VZ
12356 rm -rf conftest*
12357 eval "ac_cv_lib_$ac_lib_var=yes"
12358else
12359 echo "configure: failed program was:" >&5
12360 cat conftest.$ac_ext >&5
12361 rm -rf conftest*
12362 eval "ac_cv_lib_$ac_lib_var=no"
12363fi
12364rm -f conftest*
12365LIBS="$ac_save_LIBS"
12366
12367fi
12368if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12369 echo "$ac_t""yes" 1>&6
12370 TIFF_LINK="-ltiff"
12371else
12372 echo "$ac_t""no" 1>&6
12373fi
12374
12375else
12376 echo "$ac_t""no" 1>&6
12377fi
12378
12379 if test "x$TIFF_LINK" = "x" ; then
12380 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
12381 fi
12382 fi
c7a2bf27
RR
12383fi
12384
10f2d63a
VZ
12385if test "$wxUSE_OPENGL" = "yes"; then
12386 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
12387echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
f6bcfd97 12388echo "configure:12389: checking for GL/gl.h" >&5
10f2d63a
VZ
12389if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12390 echo $ac_n "(cached) $ac_c" 1>&6
12391else
12392 cat > conftest.$ac_ext <<EOF
f6bcfd97 12393#line 12394 "configure"
10f2d63a
VZ
12394#include "confdefs.h"
12395#include <GL/gl.h>
12396EOF
12397ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 12398{ (eval echo configure:12399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12399ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12400if test -z "$ac_err"; then
12401 rm -rf conftest*
12402 eval "ac_cv_header_$ac_safe=yes"
12403else
12404 echo "$ac_err" >&5
12405 echo "configure: failed program was:" >&5
12406 cat conftest.$ac_ext >&5
12407 rm -rf conftest*
12408 eval "ac_cv_header_$ac_safe=no"
12409fi
12410rm -f conftest*
12411fi
12412if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12413 echo "$ac_t""yes" 1>&6
12414
bdad4e7e
RR
12415 cat >> confdefs.h <<\EOF
12416#define wxUSE_OPENGL 1
12417EOF
12418
12419 cat >> confdefs.h <<\EOF
12420#define wxUSE_GLCANVAS 1
12421EOF
12422
12423 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
f6bcfd97 12424echo "configure:12425: checking for glFlush in -lGL" >&5
bdad4e7e 12425ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12426if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12427 echo $ac_n "(cached) $ac_c" 1>&6
12428else
12429 ac_save_LIBS="$LIBS"
bdad4e7e 12430LIBS="-lGL $LIBS"
10f2d63a 12431cat > conftest.$ac_ext <<EOF
f6bcfd97 12432#line 12433 "configure"
10f2d63a
VZ
12433#include "confdefs.h"
12434/* Override any gcc2 internal prototype to avoid an error. */
12435/* We use char because int might match the return type of a gcc2
12436 builtin and then its argument prototype would still apply. */
bdad4e7e 12437char glFlush();
10f2d63a
VZ
12438
12439int main() {
bdad4e7e 12440glFlush()
10f2d63a
VZ
12441; return 0; }
12442EOF
f6bcfd97 12443if { (eval echo configure:12444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12444 rm -rf conftest*
12445 eval "ac_cv_lib_$ac_lib_var=yes"
12446else
12447 echo "configure: failed program was:" >&5
12448 cat conftest.$ac_ext >&5
12449 rm -rf conftest*
12450 eval "ac_cv_lib_$ac_lib_var=no"
12451fi
12452rm -f conftest*
12453LIBS="$ac_save_LIBS"
12454
12455fi
12456if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12457 echo "$ac_t""yes" 1>&6
12458
f6bcfd97 12459 OPENGL_LINK="-lGL -lGLU"
10f2d63a
VZ
12460
12461else
12462 echo "$ac_t""no" 1>&6
12463
bdad4e7e 12464 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
f6bcfd97 12465echo "configure:12466: checking for glFlush in -lMesaGL" >&5
bdad4e7e 12466ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12467if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12468 echo $ac_n "(cached) $ac_c" 1>&6
12469else
12470 ac_save_LIBS="$LIBS"
12471LIBS="-lMesaGL $LIBS"
12472cat > conftest.$ac_ext <<EOF
f6bcfd97 12473#line 12474 "configure"
10f2d63a
VZ
12474#include "confdefs.h"
12475/* Override any gcc2 internal prototype to avoid an error. */
12476/* We use char because int might match the return type of a gcc2
12477 builtin and then its argument prototype would still apply. */
bdad4e7e 12478char glFlush();
10f2d63a
VZ
12479
12480int main() {
bdad4e7e 12481glFlush()
10f2d63a
VZ
12482; return 0; }
12483EOF
f6bcfd97 12484if { (eval echo configure:12485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12485 rm -rf conftest*
12486 eval "ac_cv_lib_$ac_lib_var=yes"
12487else
12488 echo "configure: failed program was:" >&5
12489 cat conftest.$ac_ext >&5
12490 rm -rf conftest*
12491 eval "ac_cv_lib_$ac_lib_var=no"
12492fi
12493rm -f conftest*
12494LIBS="$ac_save_LIBS"
12495
12496fi
12497if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12498 echo "$ac_t""yes" 1>&6
12499
f6bcfd97 12500 OPENGL_LINK="-lMesaGL -lMesaGLU"
10f2d63a
VZ
12501
12502else
12503 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12504fi
12505
12506
12507fi
12508
12509
12510else
12511 echo "$ac_t""no" 1>&6
12512wxUSE_OPENGL=0
12513fi
12514
12515fi
12516
12517
12518if test "$wxUSE_GUI" = "yes"; then
12519 cat >> confdefs.h <<\EOF
12520#define wxUSE_GUI 1
12521EOF
12522
12523
12524 else
12525 cat >> confdefs.h <<\EOF
12526#define wxUSE_NOGUI 1
12527EOF
12528
12529fi
12530
12531
12532if test "$wxUSE_UNIX" = "yes"; then
12533 cat >> confdefs.h <<\EOF
12534#define wxUSE_UNIX 1
12535EOF
12536
12537fi
12538
12539
12540if test "$wxUSE_APPLE_IEEE" = "yes"; then
12541 cat >> confdefs.h <<\EOF
12542#define wxUSE_APPLE_IEEE 1
12543EOF
12544
12545fi
12546
10f2d63a
VZ
12547if test "$wxUSE_WAVE" = "yes"; then
12548 cat >> confdefs.h <<\EOF
12549#define wxUSE_WAVE 1
12550EOF
12551
12552fi
12553
12554if test "$wxUSE_FILE" = "yes"; then
12555 cat >> confdefs.h <<\EOF
12556#define wxUSE_FILE 1
12557EOF
12558
12559fi
12560
24528b0c
VS
12561if test "$wxUSE_FILESYSTEM" = "yes"; then
12562 cat >> confdefs.h <<\EOF
12563#define wxUSE_FILESYSTEM 1
12564EOF
12565
12566fi
12567
10f2d63a
VZ
12568if test "$wxUSE_FS_INET" = "yes"; then
12569 cat >> confdefs.h <<\EOF
12570#define wxUSE_FS_INET 1
12571EOF
12572
12573fi
12574
12575if test "$wxUSE_FS_ZIP" = "yes"; then
12576 cat >> confdefs.h <<\EOF
12577#define wxUSE_FS_ZIP 1
12578EOF
12579
12580fi
12581
12582if test "$wxUSE_ZIPSTREAM" = "yes"; then
12583 cat >> confdefs.h <<\EOF
12584#define wxUSE_ZIPSTREAM 1
12585EOF
12586
12587fi
12588
eb4efbdc
VZ
12589if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
12590 cat >> confdefs.h <<\EOF
12591#define wxUSE_ON_FATAL_EXCEPTION 1
12592EOF
12593
12594fi
12595
10f2d63a
VZ
12596if test "$wxUSE_BUSYINFO" = "yes"; then
12597 cat >> confdefs.h <<\EOF
12598#define wxUSE_BUSYINFO 1
12599EOF
12600
12601fi
12602
12603if test "$wxUSE_STD_IOSTREAM" = "yes"; then
12604 cat >> confdefs.h <<\EOF
12605#define wxUSE_STD_IOSTREAM 1
12606EOF
12607
12608fi
12609
12610if test "$wxUSE_TEXTFILE" = "yes"; then
12611 if test "$wxUSE_FILE" != "yes"; then
12612 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
12613 else
12614 cat >> confdefs.h <<\EOF
12615#define wxUSE_TEXTFILE 1
12616EOF
12617
12618 fi
12619fi
12620
12621if test "$wxUSE_CONFIG" = "yes" ; then
12622 if test "$wxUSE_TEXTFILE" != "yes"; then
12623 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
12624 else
12625 cat >> confdefs.h <<\EOF
12626#define wxUSE_CONFIG 1
12627EOF
12628
12629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
12630 fi
12631fi
12632
12633if test "$wxUSE_INTL" = "yes" ; then
12634 if test "$wxUSE_FILE" != "yes"; then
12635 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
12636 else
12637 cat >> confdefs.h <<\EOF
12638#define wxUSE_INTL 1
12639EOF
12640
12641 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 12642 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
12643 fi
12644fi
12645
12646if test "$wxUSE_LOG" = "yes"; then
12647 cat >> confdefs.h <<\EOF
12648#define wxUSE_LOG 1
12649EOF
12650
12651fi
12652
12653if test "$wxUSE_LONGLONG" = "yes"; then
12654 cat >> confdefs.h <<\EOF
12655#define wxUSE_LONGLONG 1
12656EOF
12657
12658fi
12659
9b33fe02
VZ
12660if test "$wxUSE_PLOT" = "yes"; then
12661 cat >> confdefs.h <<\EOF
12662#define wxUSE_PLOT 1
12663EOF
12664
12665fi
12666
10f2d63a
VZ
12667if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
12668 cat >> confdefs.h <<\EOF
12669#define wxUSE_DIALUP_MANAGER 1
12670EOF
12671
70f7a477 12672 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
12673fi
12674
12675if test "$wxUSE_STREAMS" = "yes" ; then
12676 cat >> confdefs.h <<\EOF
12677#define wxUSE_STREAMS 1
12678EOF
12679
12680fi
12681
10f2d63a 12682
afc31813 12683if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
12684 for ac_func in strptime
12685do
12686echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f6bcfd97 12687echo "configure:12688: checking for $ac_func" >&5
83307f33
VZ
12688if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12689 echo $ac_n "(cached) $ac_c" 1>&6
12690else
12691 cat > conftest.$ac_ext <<EOF
f6bcfd97 12692#line 12693 "configure"
83307f33
VZ
12693#include "confdefs.h"
12694/* System header to define __stub macros and hopefully few prototypes,
12695 which can conflict with char $ac_func(); below. */
12696#include <assert.h>
12697/* Override any gcc2 internal prototype to avoid an error. */
12698/* We use char because int might match the return type of a gcc2
12699 builtin and then its argument prototype would still apply. */
12700char $ac_func();
12701
12702int main() {
12703
12704/* The GNU C library defines this for functions which it implements
12705 to always fail with ENOSYS. Some functions are actually named
12706 something starting with __ and the normal name is an alias. */
12707#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12708choke me
12709#else
e8482f24 12710$ac_func();
83307f33
VZ
12711#endif
12712
12713; return 0; }
12714EOF
f6bcfd97 12715if { (eval echo configure:12716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
12716 rm -rf conftest*
12717 eval "ac_cv_func_$ac_func=yes"
12718else
12719 echo "configure: failed program was:" >&5
12720 cat conftest.$ac_ext >&5
12721 rm -rf conftest*
12722 eval "ac_cv_func_$ac_func=no"
12723fi
12724rm -f conftest*
12725fi
12726
12727if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12728 echo "$ac_t""yes" 1>&6
12729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12730 cat >> confdefs.h <<EOF
12731#define $ac_tr_func 1
12732EOF
12733
12734else
12735 echo "$ac_t""no" 1>&6
12736fi
12737done
12738
12739
360d6699 12740 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
f6bcfd97 12741echo "configure:12742: checking for timezone variable in <time.h>" >&5
360d6699
VZ
12742if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
12743 echo $ac_n "(cached) $ac_c" 1>&6
12744else
12745
12746 cat > conftest.$ac_ext <<EOF
f6bcfd97 12747#line 12748 "configure"
360d6699
VZ
12748#include "confdefs.h"
12749
12750 #include <time.h>
12751
12752int main() {
12753
12754 int tz;
12755 tz = __timezone;
12756
12757; return 0; }
12758EOF
f6bcfd97 12759if { (eval echo configure:12760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
12760 rm -rf conftest*
12761
12762 wx_cv_var_timezone=__timezone
12763
12764else
12765 echo "configure: failed program was:" >&5
12766 cat conftest.$ac_ext >&5
12767 rm -rf conftest*
12768
12769 cat > conftest.$ac_ext <<EOF
f6bcfd97 12770#line 12771 "configure"
360d6699
VZ
12771#include "confdefs.h"
12772
12773 #include <time.h>
12774
12775int main() {
12776
12777 int tz;
12778 tz = _timezone;
12779
12780; return 0; }
12781EOF
f6bcfd97 12782if { (eval echo configure:12783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
12783 rm -rf conftest*
12784
12785 wx_cv_var_timezone=_timezone
12786
5357c8e8
VZ
12787else
12788 echo "configure: failed program was:" >&5
12789 cat conftest.$ac_ext >&5
12790 rm -rf conftest*
12791
12792 cat > conftest.$ac_ext <<EOF
f6bcfd97 12793#line 12794 "configure"
5357c8e8
VZ
12794#include "confdefs.h"
12795
12796 #include <time.h>
12797
12798int main() {
12799
12800 int tz;
12801 tz = timezone;
12802
12803; return 0; }
12804EOF
f6bcfd97 12805if { (eval echo configure:12806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
12806 rm -rf conftest*
12807
12808 wx_cv_var_timezone=timezone
12809
360d6699
VZ
12810else
12811 echo "configure: failed program was:" >&5
12812 cat conftest.$ac_ext >&5
12813 rm -rf conftest*
12814 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
12815
12816fi
12817rm -f conftest*
12818
360d6699
VZ
12819
12820fi
12821rm -f conftest*
12822
12823
12824fi
12825rm -f conftest*
12826
12827
12828fi
12829
12830echo "$ac_t""$wx_cv_var_timezone" 1>&6
12831
12832 cat >> confdefs.h <<EOF
12833#define WX_TIMEZONE $wx_cv_var_timezone
12834EOF
12835
12836
3fcdd07b 12837 for ac_func in localtime
afc31813
VZ
12838do
12839echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f6bcfd97 12840echo "configure:12841: checking for $ac_func" >&5
afc31813
VZ
12841if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12842 echo $ac_n "(cached) $ac_c" 1>&6
12843else
12844 cat > conftest.$ac_ext <<EOF
f6bcfd97 12845#line 12846 "configure"
10f2d63a 12846#include "confdefs.h"
afc31813
VZ
12847/* System header to define __stub macros and hopefully few prototypes,
12848 which can conflict with char $ac_func(); below. */
12849#include <assert.h>
12850/* Override any gcc2 internal prototype to avoid an error. */
12851/* We use char because int might match the return type of a gcc2
12852 builtin and then its argument prototype would still apply. */
12853char $ac_func();
12854
10f2d63a 12855int main() {
afc31813
VZ
12856
12857/* The GNU C library defines this for functions which it implements
12858 to always fail with ENOSYS. Some functions are actually named
12859 something starting with __ and the normal name is an alias. */
12860#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12861choke me
12862#else
e8482f24 12863$ac_func();
afc31813
VZ
12864#endif
12865
10f2d63a
VZ
12866; return 0; }
12867EOF
f6bcfd97 12868if { (eval echo configure:12869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 12869 rm -rf conftest*
afc31813 12870 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
12871else
12872 echo "configure: failed program was:" >&5
12873 cat conftest.$ac_ext >&5
12874 rm -rf conftest*
afc31813
VZ
12875 eval "ac_cv_func_$ac_func=no"
12876fi
12877rm -f conftest*
12878fi
12879
12880if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12881 echo "$ac_t""yes" 1>&6
12882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12883 cat >> confdefs.h <<EOF
12884#define $ac_tr_func 1
12885EOF
3fcdd07b 12886
afc31813
VZ
12887else
12888 echo "$ac_t""no" 1>&6
12889fi
12890done
12891
12892
0470b1e6
VZ
12893 if test "$ac_cv_func_localtime" = "yes"; then
12894 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
f6bcfd97 12895echo "configure:12896: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
12896if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
12897 echo $ac_n "(cached) $ac_c" 1>&6
12898else
12899
12900 cat > conftest.$ac_ext <<EOF
f6bcfd97 12901#line 12902 "configure"
0470b1e6
VZ
12902#include "confdefs.h"
12903
12904 #include <time.h>
12905
12906int main() {
12907
12908 struct tm tm;
12909 tm.tm_gmtoff++;
12910
12911; return 0; }
12912EOF
f6bcfd97 12913if { (eval echo configure:12914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
12914 rm -rf conftest*
12915
f03a98d8 12916 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
12917 cat >> confdefs.h <<\EOF
12918#define WX_GMTOFF_IN_TM 1
12919EOF
12920
12921
12922else
12923 echo "configure: failed program was:" >&5
12924 cat conftest.$ac_ext >&5
12925 rm -rf conftest*
12926 wx_cv_struct_tm_has_gmtoff=no
12927
12928fi
12929rm -f conftest*
12930
12931fi
12932
12933echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
12934 fi
12935
12936 for ac_func in gettimeofday ftime
12937do
12938echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f6bcfd97 12939echo "configure:12940: checking for $ac_func" >&5
3fcdd07b
VZ
12940if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12941 echo $ac_n "(cached) $ac_c" 1>&6
12942else
12943 cat > conftest.$ac_ext <<EOF
f6bcfd97 12944#line 12945 "configure"
3fcdd07b
VZ
12945#include "confdefs.h"
12946/* System header to define __stub macros and hopefully few prototypes,
12947 which can conflict with char $ac_func(); below. */
12948#include <assert.h>
12949/* Override any gcc2 internal prototype to avoid an error. */
12950/* We use char because int might match the return type of a gcc2
12951 builtin and then its argument prototype would still apply. */
12952char $ac_func();
12953
12954int main() {
12955
12956/* The GNU C library defines this for functions which it implements
12957 to always fail with ENOSYS. Some functions are actually named
12958 something starting with __ and the normal name is an alias. */
12959#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12960choke me
12961#else
e8482f24 12962$ac_func();
3fcdd07b
VZ
12963#endif
12964
12965; return 0; }
12966EOF
f6bcfd97 12967if { (eval echo configure:12968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
12968 rm -rf conftest*
12969 eval "ac_cv_func_$ac_func=yes"
12970else
12971 echo "configure: failed program was:" >&5
12972 cat conftest.$ac_ext >&5
12973 rm -rf conftest*
12974 eval "ac_cv_func_$ac_func=no"
12975fi
12976rm -f conftest*
12977fi
12978
12979if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12980 echo "$ac_t""yes" 1>&6
12981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12982 cat >> confdefs.h <<EOF
12983#define $ac_tr_func 1
12984EOF
12985 break
12986else
12987 echo "$ac_t""no" 1>&6
12988fi
12989done
12990
12991
12992 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 12993 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
f6bcfd97 12994echo "configure:12995: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
12995if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12996 echo $ac_n "(cached) $ac_c" 1>&6
12997else
12998
12999
13000 ac_ext=C
13001# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13002ac_cpp='$CXXCPP $CPPFLAGS'
13003ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13004ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13005cross_compiling=$ac_cv_prog_cxx_cross
13006
13007
13008 cat > conftest.$ac_ext <<EOF
f6bcfd97 13009#line 13010 "configure"
10f2d63a 13010#include "confdefs.h"
afc31813
VZ
13011
13012 #include <sys/time.h>
13013 #include <unistd.h>
13014
10f2d63a 13015int main() {
afc31813
VZ
13016
13017 struct timeval tv;
13018 struct timezone tz;
13019 gettimeofday(&tv, &tz);
13020
10f2d63a
VZ
13021; return 0; }
13022EOF
f6bcfd97 13023if { (eval echo configure:13024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 13024 rm -rf conftest*
afc31813 13025 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
13026else
13027 echo "configure: failed program was:" >&5
13028 cat conftest.$ac_ext >&5
13029 rm -rf conftest*
13030 cat > conftest.$ac_ext <<EOF
f6bcfd97 13031#line 13032 "configure"
10f2d63a 13032#include "confdefs.h"
afc31813
VZ
13033
13034 #include <sys/time.h>
13035 #include <unistd.h>
13036
10f2d63a 13037int main() {
afc31813
VZ
13038
13039 struct timeval tv;
13040 gettimeofday(&tv);
13041
10f2d63a
VZ
13042; return 0; }
13043EOF
f6bcfd97 13044if { (eval echo configure:13045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 13045 rm -rf conftest*
afc31813 13046 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
13047else
13048 echo "configure: failed program was:" >&5
13049 cat conftest.$ac_ext >&5
13050 rm -rf conftest*
afc31813
VZ
13051 wx_cv_func_gettimeofday_has_2_args=unknown
13052
10f2d63a
VZ
13053fi
13054rm -f conftest*
afc31813 13055
10f2d63a
VZ
13056fi
13057rm -f conftest*
afc31813 13058 ac_ext=c
10f2d63a
VZ
13059# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13060ac_cpp='$CPP $CPPFLAGS'
13061ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13062ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13063cross_compiling=$ac_cv_prog_cc_cross
13064
afc31813
VZ
13065
13066fi
13067
13068echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 13069
afc31813
VZ
13070 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
13071 cat >> confdefs.h <<\EOF
13072#define WX_GETTIMEOFDAY_NO_TZ 1
13073EOF
13074
13075 fi
13076 fi
13077
13078 cat >> confdefs.h <<\EOF
13079#define wxUSE_TIMEDATE 1
13080EOF
13081
13082 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
13083fi
13084
13085
b089607b
VZ
13086if test "$TOOLKIT" != "MSW"; then
13087
afc31813 13088if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 13089 echo $ac_n "checking for socket""... $ac_c" 1>&6
f6bcfd97 13090echo "configure:13091: checking for socket" >&5
c63c7106
VZ
13091if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
13092 echo $ac_n "(cached) $ac_c" 1>&6
13093else
13094 cat > conftest.$ac_ext <<EOF
f6bcfd97 13095#line 13096 "configure"
c63c7106
VZ
13096#include "confdefs.h"
13097/* System header to define __stub macros and hopefully few prototypes,
13098 which can conflict with char socket(); below. */
13099#include <assert.h>
13100/* Override any gcc2 internal prototype to avoid an error. */
13101/* We use char because int might match the return type of a gcc2
13102 builtin and then its argument prototype would still apply. */
13103char socket();
13104
13105int main() {
13106
13107/* The GNU C library defines this for functions which it implements
13108 to always fail with ENOSYS. Some functions are actually named
13109 something starting with __ and the normal name is an alias. */
13110#if defined (__stub_socket) || defined (__stub___socket)
13111choke me
13112#else
e8482f24 13113socket();
c63c7106
VZ
13114#endif
13115
13116; return 0; }
13117EOF
f6bcfd97 13118if { (eval echo configure:13119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
13119 rm -rf conftest*
13120 eval "ac_cv_func_socket=yes"
13121else
13122 echo "configure: failed program was:" >&5
13123 cat conftest.$ac_ext >&5
13124 rm -rf conftest*
13125 eval "ac_cv_func_socket=no"
13126fi
13127rm -f conftest*
13128fi
13129
13130if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
13131 echo "$ac_t""yes" 1>&6
13132 :
13133else
13134 echo "$ac_t""no" 1>&6
13135echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
f6bcfd97 13136echo "configure:13137: checking for socket in -lsocket" >&5
c63c7106
VZ
13137ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
13138if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13139 echo $ac_n "(cached) $ac_c" 1>&6
13140else
13141 ac_save_LIBS="$LIBS"
13142LIBS="-lsocket $LIBS"
13143cat > conftest.$ac_ext <<EOF
f6bcfd97 13144#line 13145 "configure"
c63c7106
VZ
13145#include "confdefs.h"
13146/* Override any gcc2 internal prototype to avoid an error. */
13147/* We use char because int might match the return type of a gcc2
13148 builtin and then its argument prototype would still apply. */
13149char socket();
13150
13151int main() {
13152socket()
13153; return 0; }
13154EOF
f6bcfd97 13155if { (eval echo configure:13156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
13156 rm -rf conftest*
13157 eval "ac_cv_lib_$ac_lib_var=yes"
13158else
13159 echo "configure: failed program was:" >&5
13160 cat conftest.$ac_ext >&5
13161 rm -rf conftest*
13162 eval "ac_cv_lib_$ac_lib_var=no"
13163fi
13164rm -f conftest*
13165LIBS="$ac_save_LIBS"
13166
13167fi
13168if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13169 echo "$ac_t""yes" 1>&6
13170 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
13171else
13172 echo "$ac_t""no" 1>&6
afc31813
VZ
13173
13174 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
13175 wxUSE_SOCKETS=no
13176
13177
c63c7106
VZ
13178fi
13179
13180
13181fi
13182
10f2d63a
VZ
13183fi
13184
b089607b
VZ
13185fi
13186
afc31813 13187if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 13188 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
f6bcfd97 13189echo "configure:13190: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
13190if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
13191 echo $ac_n "(cached) $ac_c" 1>&6
13192else
13193
13194
13195 ac_ext=C
afc31813
VZ
13196# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13197ac_cpp='$CXXCPP $CPPFLAGS'
13198ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13199ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13200cross_compiling=$ac_cv_prog_cxx_cross
13201
51a9faba
VZ
13202
13203 cat > conftest.$ac_ext <<EOF
f6bcfd97 13204#line 13205 "configure"
afc31813 13205#include "confdefs.h"
51a9faba 13206
3ace2e6d 13207 #include <sys/types.h>
51a9faba
VZ
13208 #include <sys/socket.h>
13209
afc31813 13210int main() {
51a9faba
VZ
13211
13212 socklen_t len;
13213 getsockname(0, 0, &len);
13214
afc31813
VZ
13215; return 0; }
13216EOF
f6bcfd97 13217if { (eval echo configure:13218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 13218 rm -rf conftest*
51a9faba 13219 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
13220else
13221 echo "configure: failed program was:" >&5
13222 cat conftest.$ac_ext >&5
13223 rm -rf conftest*
13224 cat > conftest.$ac_ext <<EOF
f6bcfd97 13225#line 13226 "configure"
afc31813 13226#include "confdefs.h"
51a9faba 13227
3ace2e6d 13228 #include <sys/types.h>
51a9faba
VZ
13229 #include <sys/socket.h>
13230
afc31813 13231int main() {
51a9faba
VZ
13232
13233 size_t len;
13234 getsockname(0, 0, &len);
13235
afc31813
VZ
13236; return 0; }
13237EOF
f6bcfd97 13238if { (eval echo configure:13239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 13239 rm -rf conftest*
51a9faba 13240 wx_cv_type_getsockname3=size_t
afc31813
VZ
13241else
13242 echo "configure: failed program was:" >&5
13243 cat conftest.$ac_ext >&5
13244 rm -rf conftest*
13245 cat > conftest.$ac_ext <<EOF
f6bcfd97 13246#line 13247 "configure"
afc31813 13247#include "confdefs.h"
51a9faba 13248
3ace2e6d 13249 #include <sys/types.h>
51a9faba
VZ
13250 #include <sys/socket.h>
13251
afc31813 13252int main() {
51a9faba
VZ
13253
13254 int len;
13255 getsockname(0, 0, &len);
13256
afc31813
VZ
13257; return 0; }
13258EOF
f6bcfd97 13259if { (eval echo configure:13260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 13260 rm -rf conftest*
51a9faba 13261 wx_cv_type_getsockname3=int
afc31813
VZ
13262else
13263 echo "configure: failed program was:" >&5
13264 cat conftest.$ac_ext >&5
3ace2e6d
SN
13265 rm -rf conftest*
13266 wx_cv_type_getsockname3=unknown
13267
afc31813
VZ
13268fi
13269rm -f conftest*
51a9faba 13270
afc31813
VZ
13271fi
13272rm -f conftest*
51a9faba 13273
afc31813
VZ
13274fi
13275rm -f conftest*
51a9faba
VZ
13276
13277 ac_ext=c
afc31813
VZ
13278# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13279ac_cpp='$CPP $CPPFLAGS'
13280ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13281ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13282cross_compiling=$ac_cv_prog_cc_cross
13283
51a9faba
VZ
13284
13285fi
13286
13287echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
13288
13289 if test "$wx_cv_type_getsockname3" = "unknown"; then
13290 wxUSE_SOCKETS=no
13291 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
13292 else
13293 cat >> confdefs.h <<EOF
13294#define SOCKLEN_T $wx_cv_type_getsockname3
13295EOF
13296
13297 fi
13298fi
afc31813 13299
51a9faba 13300if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
13301 cat >> confdefs.h <<\EOF
13302#define wxUSE_SOCKETS 1
13303EOF
13304
70f7a477 13305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
13306 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
13307fi
13308
10f2d63a 13309
dc3d889d
VZ
13310if test "$wxUSE_GUI" = "yes"; then
13311
b089607b
VZ
13312if test "$TOOLKIT" != "MSW"; then
13313
ceded8b9 13314if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
13315 for ac_hdr in linux/joystick.h
13316do
13317ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13318echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f6bcfd97 13319echo "configure:13320: checking for $ac_hdr" >&5
10f2d63a
VZ
13320if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13321 echo $ac_n "(cached) $ac_c" 1>&6
13322else
13323 cat > conftest.$ac_ext <<EOF
f6bcfd97 13324#line 13325 "configure"
10f2d63a
VZ
13325#include "confdefs.h"
13326#include <$ac_hdr>
13327EOF
13328ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 13329{ (eval echo configure:13330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
13330ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13331if test -z "$ac_err"; then
13332 rm -rf conftest*
13333 eval "ac_cv_header_$ac_safe=yes"
13334else
13335 echo "$ac_err" >&5
13336 echo "configure: failed program was:" >&5
13337 cat conftest.$ac_ext >&5
13338 rm -rf conftest*
13339 eval "ac_cv_header_$ac_safe=no"
13340fi
13341rm -f conftest*
13342fi
13343if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13344 echo "$ac_t""yes" 1>&6
13345 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13346 cat >> confdefs.h <<EOF
13347#define $ac_tr_hdr 1
13348EOF
13349
13350else
13351 echo "$ac_t""no" 1>&6
13352fi
13353done
13354
b089607b 13355 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 13356 wxUSE_JOYSTICK=no
dc3d889d 13357 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
13358 fi
13359fi
13360
13361fi
13362
ceded8b9 13363if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
13364 cat >> confdefs.h <<\EOF
13365#define wxUSE_JOYSTICK 1
13366EOF
13367
13368 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
13369fi
13370
dc3d889d
VZ
13371fi
13372
10f2d63a 13373
b089607b
VZ
13374if test "$TOOLKIT" != "MSW"; then
13375
10f2d63a
VZ
13376HAVE_DL_FUNCS=0
13377HAVE_SHL_FUNCS=0
13378if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
13379 for ac_func in dlopen
13380do
13381echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f6bcfd97 13382echo "configure:13383: checking for $ac_func" >&5
10f2d63a
VZ
13383if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13384 echo $ac_n "(cached) $ac_c" 1>&6
13385else
13386 cat > conftest.$ac_ext <<EOF
f6bcfd97 13387#line 13388 "configure"
10f2d63a
VZ
13388#include "confdefs.h"
13389/* System header to define __stub macros and hopefully few prototypes,
13390 which can conflict with char $ac_func(); below. */
13391#include <assert.h>
13392/* Override any gcc2 internal prototype to avoid an error. */
13393/* We use char because int might match the return type of a gcc2
13394 builtin and then its argument prototype would still apply. */
13395char $ac_func();
13396
13397int main() {
13398
13399/* The GNU C library defines this for functions which it implements
13400 to always fail with ENOSYS. Some functions are actually named
13401 something starting with __ and the normal name is an alias. */
13402#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13403choke me
13404#else
e8482f24 13405$ac_func();
10f2d63a
VZ
13406#endif
13407
13408; return 0; }
13409EOF
f6bcfd97 13410if { (eval echo configure:13411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13411 rm -rf conftest*
13412 eval "ac_cv_func_$ac_func=yes"
13413else
13414 echo "configure: failed program was:" >&5
13415 cat conftest.$ac_ext >&5
13416 rm -rf conftest*
13417 eval "ac_cv_func_$ac_func=no"
13418fi
13419rm -f conftest*
13420fi
13421
13422if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13423 echo "$ac_t""yes" 1>&6
13424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13425 cat >> confdefs.h <<EOF
13426#define $ac_tr_func 1
13427EOF
13428
13429 cat >> confdefs.h <<\EOF
13430#define HAVE_DLOPEN 1
13431EOF
13432
13433 HAVE_DL_FUNCS=1
13434
13435else
13436 echo "$ac_t""no" 1>&6
13437echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
f6bcfd97 13438echo "configure:13439: checking for dlopen in -ldl" >&5
10f2d63a
VZ
13439ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
13440if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13441 echo $ac_n "(cached) $ac_c" 1>&6
13442else
13443 ac_save_LIBS="$LIBS"
13444LIBS="-ldl $LIBS"
13445cat > conftest.$ac_ext <<EOF
f6bcfd97 13446#line 13447 "configure"
10f2d63a
VZ
13447#include "confdefs.h"
13448/* Override any gcc2 internal prototype to avoid an error. */
13449/* We use char because int might match the return type of a gcc2
13450 builtin and then its argument prototype would still apply. */
13451char dlopen();
13452
13453int main() {
13454dlopen()
13455; return 0; }
13456EOF
f6bcfd97 13457if { (eval echo configure:13458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13458 rm -rf conftest*
13459 eval "ac_cv_lib_$ac_lib_var=yes"
13460else
13461 echo "configure: failed program was:" >&5
13462 cat conftest.$ac_ext >&5
13463 rm -rf conftest*
13464 eval "ac_cv_lib_$ac_lib_var=no"
13465fi
13466rm -f conftest*
13467LIBS="$ac_save_LIBS"
13468
13469fi
13470if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13471 echo "$ac_t""yes" 1>&6
13472
13473 cat >> confdefs.h <<\EOF
13474#define HAVE_DLOPEN 1
13475EOF
13476
13477 HAVE_DL_FUNCS=1
13478 LIBS="$LIBS -ldl"
13479
13480else
13481 echo "$ac_t""no" 1>&6
13482
13483 for ac_func in shl_load
13484do
13485echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f6bcfd97 13486echo "configure:13487: checking for $ac_func" >&5
10f2d63a
VZ
13487if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13488 echo $ac_n "(cached) $ac_c" 1>&6
13489else
13490 cat > conftest.$ac_ext <<EOF
f6bcfd97 13491#line 13492 "configure"
10f2d63a
VZ
13492#include "confdefs.h"
13493/* System header to define __stub macros and hopefully few prototypes,
13494 which can conflict with char $ac_func(); below. */
13495#include <assert.h>
13496/* Override any gcc2 internal prototype to avoid an error. */
13497/* We use char because int might match the return type of a gcc2
13498 builtin and then its argument prototype would still apply. */
13499char $ac_func();
13500
13501int main() {
13502
13503/* The GNU C library defines this for functions which it implements
13504 to always fail with ENOSYS. Some functions are actually named
13505 something starting with __ and the normal name is an alias. */
13506#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13507choke me
13508#else
e8482f24 13509$ac_func();
10f2d63a
VZ
13510#endif
13511
13512; return 0; }
13513EOF
f6bcfd97 13514if { (eval echo configure:13515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13515 rm -rf conftest*
13516 eval "ac_cv_func_$ac_func=yes"
13517else
13518 echo "configure: failed program was:" >&5
13519 cat conftest.$ac_ext >&5
13520 rm -rf conftest*
13521 eval "ac_cv_func_$ac_func=no"
13522fi
13523rm -f conftest*
13524fi
13525
13526if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13527 echo "$ac_t""yes" 1>&6
13528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13529 cat >> confdefs.h <<EOF
13530#define $ac_tr_func 1
13531EOF
13532
13533 cat >> confdefs.h <<\EOF
13534#define HAVE_SHL_LOAD 1
13535EOF
13536
13537 HAVE_SHL_FUNCS=1
13538
13539else
13540 echo "$ac_t""no" 1>&6
f6bcfd97
BP
13541echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
13542echo "configure:13543: checking for dld in -lshl_load" >&5
13543ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
13544if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13545 echo $ac_n "(cached) $ac_c" 1>&6
13546else
13547 ac_save_LIBS="$LIBS"
13548LIBS="-lshl_load $LIBS"
13549cat > conftest.$ac_ext <<EOF
13550#line 13551 "configure"
13551#include "confdefs.h"
13552/* Override any gcc2 internal prototype to avoid an error. */
13553/* We use char because int might match the return type of a gcc2
13554 builtin and then its argument prototype would still apply. */
13555char dld();
13556
13557int main() {
13558dld()
13559; return 0; }
13560EOF
13561if { (eval echo configure:13562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13562 rm -rf conftest*
13563 eval "ac_cv_lib_$ac_lib_var=yes"
13564else
13565 echo "configure: failed program was:" >&5
13566 cat conftest.$ac_ext >&5
13567 rm -rf conftest*
13568 eval "ac_cv_lib_$ac_lib_var=no"
13569fi
13570rm -f conftest*
13571LIBS="$ac_save_LIBS"
13572
13573fi
13574if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13575 echo "$ac_t""yes" 1>&6
13576
13577 HAVE_SHL_FUNCS=1
13578 LIBS="$LIBS -ldld"
13579
13580else
13581 echo "$ac_t""no" 1>&6
13582fi
13583
13584
10f2d63a
VZ
13585fi
13586done
13587
13588
13589fi
13590
13591
13592fi
13593done
13594
13595
f6bcfd97
BP
13596 if test "$HAVE_DL_FUNCS" = 1; then
13597 for ac_func in dlerror
13598do
13599echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13600echo "configure:13601: checking for $ac_func" >&5
13601if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13602 echo $ac_n "(cached) $ac_c" 1>&6
13603else
13604 cat > conftest.$ac_ext <<EOF
13605#line 13606 "configure"
13606#include "confdefs.h"
13607/* System header to define __stub macros and hopefully few prototypes,
13608 which can conflict with char $ac_func(); below. */
13609#include <assert.h>
13610/* Override any gcc2 internal prototype to avoid an error. */
13611/* We use char because int might match the return type of a gcc2
13612 builtin and then its argument prototype would still apply. */
13613char $ac_func();
13614
13615int main() {
13616
13617/* The GNU C library defines this for functions which it implements
13618 to always fail with ENOSYS. Some functions are actually named
13619 something starting with __ and the normal name is an alias. */
13620#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13621choke me
13622#else
13623$ac_func();
13624#endif
13625
13626; return 0; }
13627EOF
13628if { (eval echo configure:13629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13629 rm -rf conftest*
13630 eval "ac_cv_func_$ac_func=yes"
13631else
13632 echo "configure: failed program was:" >&5
13633 cat conftest.$ac_ext >&5
13634 rm -rf conftest*
13635 eval "ac_cv_func_$ac_func=no"
13636fi
13637rm -f conftest*
13638fi
13639
13640if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13641 echo "$ac_t""yes" 1>&6
13642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13643 cat >> confdefs.h <<EOF
13644#define $ac_tr_func 1
13645EOF
13646 cat >> confdefs.h <<\EOF
13647#define HAVE_DLERROR 1
13648EOF
13649
13650else
13651 echo "$ac_t""no" 1>&6
13652echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
13653echo "configure:13654: checking for dlerror in -ldl" >&5
13654ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
13655if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13656 echo $ac_n "(cached) $ac_c" 1>&6
13657else
13658 ac_save_LIBS="$LIBS"
13659LIBS="-ldl $LIBS"
13660cat > conftest.$ac_ext <<EOF
13661#line 13662 "configure"
13662#include "confdefs.h"
13663/* Override any gcc2 internal prototype to avoid an error. */
13664/* We use char because int might match the return type of a gcc2
13665 builtin and then its argument prototype would still apply. */
13666char dlerror();
13667
13668int main() {
13669dlerror()
13670; return 0; }
13671EOF
13672if { (eval echo configure:13673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13673 rm -rf conftest*
13674 eval "ac_cv_lib_$ac_lib_var=yes"
13675else
13676 echo "configure: failed program was:" >&5
13677 cat conftest.$ac_ext >&5
13678 rm -rf conftest*
13679 eval "ac_cv_lib_$ac_lib_var=no"
13680fi
13681rm -f conftest*
13682LIBS="$ac_save_LIBS"
13683
13684fi
13685if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13686 echo "$ac_t""yes" 1>&6
13687 cat >> confdefs.h <<\EOF
13688#define HAVE_DLERROR 1
13689EOF
13690
13691else
13692 echo "$ac_t""no" 1>&6
13693fi
13694
13695fi
13696done
13697
13698 fi
13699
10f2d63a
VZ
13700 if test "$HAVE_DL_FUNCS" = 0; then
13701 if test "$HAVE_SHL_FUNCS" = 0; then
13702 if test "$USE_UNIX" = 1; then
b12915c1 13703 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
13704 wxUSE_DYNLIB_CLASS=no
13705 else
b12915c1 13706 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
13707 fi
13708 fi
13709 fi
13710fi
13711
b089607b
VZ
13712fi
13713
10f2d63a 13714if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 13715 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13716#define wxUSE_DYNLIB_CLASS 1
13717EOF
13718
b12915c1
VZ
13719else
13720 wxUSE_ODBC=no
13721 wxUSE_SERIAL=no
10f2d63a
VZ
13722fi
13723
13724
13725if test "$wxUSE_UNICODE" = "yes" ; then
13726 cat >> confdefs.h <<\EOF
13727#define wxUSE_UNICODE 1
13728EOF
13729
13730fi
13731
13732if test "$wxUSE_WCSRTOMBS" = "yes" ; then
13733 cat >> confdefs.h <<\EOF
13734#define wxUSE_WCSRTOMBS 1
13735EOF
13736
13737fi
13738
13739if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
13740 cat >> confdefs.h <<\EOF
13741#define wxUSE_EXPERIMENTAL_PRINTF 1
13742EOF
13743
13744fi
13745
13746
b12915c1
VZ
13747if test "$wxUSE_SERIAL" = "yes" ; then
13748 cat >> confdefs.h <<\EOF
13749#define wxUSE_SERIAL 1
13750EOF
13751
13752fi
13753
13754
10f2d63a
VZ
13755IODBC_C_SRC=""
13756if test "$wxUSE_ODBC" = "yes" ; then
13757 cat >> confdefs.h <<\EOF
13758#define wxUSE_ODBC 1
13759EOF
13760
13761 WXODBCFLAG="-D_IODBC_"
13762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
13763 IODBCOBJS="\$(IODBC_OBJS)"
13764else
13765 IODBCOBJS=
13766fi
13767
13768
13769if test "$wxUSE_POSTSCRIPT" = "yes" ; then
13770 cat >> confdefs.h <<\EOF
13771#define wxUSE_POSTSCRIPT 1
13772EOF
13773
13774fi
13775
13776cat >> confdefs.h <<\EOF
13777#define wxUSE_AFM_FOR_POSTSCRIPT 1
13778EOF
13779
13780
13781cat >> confdefs.h <<\EOF
13782#define wxUSE_NORMALIZED_PS_FONTS 1
13783EOF
13784
13785
13786
13787if test "$wxUSE_CONSTRAINTS" = "yes"; then
13788 cat >> confdefs.h <<\EOF
13789#define wxUSE_CONSTRAINTS 1
13790EOF
13791
13792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
13793fi
13794
13795if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
13796 cat >> confdefs.h <<\EOF
13797#define wxUSE_MDI_ARCHITECTURE 1
13798EOF
13799
13800 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
13801fi
13802
13803if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
13804 cat >> confdefs.h <<\EOF
13805#define wxUSE_DOC_VIEW_ARCHITECTURE 1
13806EOF
13807
13808 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
13809 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
13810 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
13811 fi
13812fi
13813
13814if test "$wxUSE_HELP" = "yes"; then
13815 cat >> confdefs.h <<\EOF
13816#define wxUSE_HELP 1
13817EOF
13818
13819 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
13820fi
13821
13822if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13823 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13824 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
13825 else
13826 cat >> confdefs.h <<\EOF
13827#define wxUSE_PRINTING_ARCHITECTURE 1
13828EOF
13829
13830 fi
13831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
13832fi
13833
13834if test "$wxUSE_PROLOGIO" = "yes" ; then
13835 cat >> confdefs.h <<\EOF
13836#define wxUSE_PROLOGIO 1
13837EOF
13838
13839fi
13840
13841if test "$wxUSE_RESOURCES" = "yes" ; then
13842 if test "$wxUSE_PROLOGIO" = "yes" ; then
13843 cat >> confdefs.h <<\EOF
13844#define wxUSE_RESOURCES 1
13845EOF
13846
13847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
13848 else
13849 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
13850 fi
13851fi
13852
13853if test "$wxUSE_X_RESOURCES" = "yes"; then
13854 cat >> confdefs.h <<\EOF
13855#define wxUSE_X_RESOURCES 1
13856EOF
13857
13858fi
13859
13860
13861if test "$wxUSE_IPC" = "yes"; then
eb4efbdc
VZ
13862 if test "$wxUSE_SOCKETS" != "yes"; then
13863 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
13864 fi
13865
10f2d63a
VZ
13866 cat >> confdefs.h <<\EOF
13867#define wxUSE_IPC 1
13868EOF
13869
13870fi
13871
13872if test "$wxUSE_CLIPBOARD" = "yes"; then
13873 cat >> confdefs.h <<\EOF
13874#define wxUSE_CLIPBOARD 1
13875EOF
13876
13877fi
13878
13879if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
13880 if test "$wxUSE_GTK" = 1; then
13881 if test "$WXGTK12" != 1; then
13882 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
13883 wxUSE_DRAG_AND_DROP=no
13884 fi
13885 fi
13886
13887 if test "$wxUSE_MOTIF" = 1; then
13888 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
13889 wxUSE_DRAG_AND_DROP=no
13890 fi
13891
13892 if test "$USE_WIN32" = 1; then
13893 for ac_hdr in ole2.h
13894do
13895ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13896echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f6bcfd97 13897echo "configure:13898: checking for $ac_hdr" >&5
10f2d63a
VZ
13898if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13899 echo $ac_n "(cached) $ac_c" 1>&6
13900else
13901 cat > conftest.$ac_ext <<EOF
f6bcfd97 13902#line 13903 "configure"
10f2d63a
VZ
13903#include "confdefs.h"
13904#include <$ac_hdr>
13905EOF
13906ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f6bcfd97 13907{ (eval echo configure:13908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
13908ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13909if test -z "$ac_err"; then
13910 rm -rf conftest*
13911 eval "ac_cv_header_$ac_safe=yes"
13912else
13913 echo "$ac_err" >&5
13914 echo "configure: failed program was:" >&5
13915 cat conftest.$ac_ext >&5
13916 rm -rf conftest*
13917 eval "ac_cv_header_$ac_safe=no"
13918fi
13919rm -f conftest*
13920fi
13921if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13922 echo "$ac_t""yes" 1>&6
13923 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13924 cat >> confdefs.h <<EOF
13925#define $ac_tr_hdr 1
13926EOF
13927
13928else
13929 echo "$ac_t""no" 1>&6
13930fi
13931done
13932
13933 if test "x$HAVE_OLE2_H" = x ; then
13934 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
13935 wxUSE_DRAG_AND_DROP=no
13936 fi
13937 fi
13938
13939 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
13940 cat >> confdefs.h <<\EOF
13941#define wxUSE_DRAG_AND_DROP 1
13942EOF
13943
13944 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
13945 fi
13946
13947fi
13948
13949if test "$wxUSE_SPLINES" = "yes" ; then
13950 cat >> confdefs.h <<\EOF
13951#define wxUSE_SPLINES 1
13952EOF
13953
13954fi
13955
13956
13957if test "$wxUSE_ACCEL" = "yes"; then
13958 cat >> confdefs.h <<\EOF
13959#define wxUSE_ACCEL 1
13960EOF
13961
13962fi
13963
13964if test "$wxUSE_CARET" = "yes"; then
13965 cat >> confdefs.h <<\EOF
13966#define wxUSE_CARET 1
13967EOF
13968
13969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
13970fi
13971
13972if test "$wxUSE_COMBOBOX" = "yes"; then
13973 cat >> confdefs.h <<\EOF
13974#define wxUSE_COMBOBOX 1
13975EOF
13976
13977fi
13978
13979if test "$wxUSE_CHOICE" = "yes"; then
13980 cat >> confdefs.h <<\EOF
13981#define wxUSE_CHOICE 1
13982EOF
13983
13984fi
13985
13986if test "$wxUSE_BMPBUTTON" = "yes"; then
13987 cat >> confdefs.h <<\EOF
13988#define wxUSE_BMPBUTTON 1
13989EOF
13990
13991fi
13992
13993if test "$wxUSE_CHECKBOX" = "yes"; then
13994 cat >> confdefs.h <<\EOF
13995#define wxUSE_CHECKBOX 1
13996EOF
13997
13998fi
13999
14000if test "$wxUSE_CHECKLST" = "yes"; then
14001 cat >> confdefs.h <<\EOF
14002#define wxUSE_CHECKLISTBOX 1
14003EOF
14004
14005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
14006fi
14007
14008if test "$wxUSE_GAUGE" = "yes"; then
14009 cat >> confdefs.h <<\EOF
14010#define wxUSE_GAUGE 1
14011EOF
14012
14013fi
14014
d6a55c4b
VZ
14015if test "$wxUSE_NEW_GRID" = "yes"; then
14016 wxUSE_GRID="yes"
10f2d63a 14017 cat >> confdefs.h <<\EOF
d6a55c4b 14018#define wxUSE_NEW_GRID 1
10f2d63a
VZ
14019EOF
14020
d6a55c4b 14021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
14022fi
14023
d6a55c4b 14024if test "$wxUSE_GRID" = "yes"; then
10f2d63a 14025 cat >> confdefs.h <<\EOF
d6a55c4b 14026#define wxUSE_GRID 1
10f2d63a
VZ
14027EOF
14028
d6a55c4b 14029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
14030fi
14031
14032if test "$wxUSE_IMAGLIST" = "yes"; then
14033 cat >> confdefs.h <<\EOF
14034#define wxUSE_IMAGLIST 1
14035EOF
14036
14037fi
14038
14039if test "$wxUSE_LISTBOX" = "yes"; then
14040 cat >> confdefs.h <<\EOF
14041#define wxUSE_LISTBOX 1
14042EOF
14043
14044fi
14045
14046if test "$wxUSE_LISTCTRL" = "yes"; then
14047 if test "$wxUSE_IMAGLIST" = "yes"; then
14048 cat >> confdefs.h <<\EOF
14049#define wxUSE_LISTCTRL 1
14050EOF
14051
14052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
14053 else
14054 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
14055 fi
14056fi
14057
14058if test "$wxUSE_NOTEBOOK" = "yes"; then
14059 cat >> confdefs.h <<\EOF
14060#define wxUSE_NOTEBOOK 1
14061EOF
14062
14063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
14064fi
14065
14066if test "$wxUSE_RADIOBOX" = "yes"; then
14067 cat >> confdefs.h <<\EOF
14068#define wxUSE_RADIOBOX 1
14069EOF
14070
14071fi
14072
14073if test "$wxUSE_RADIOBTN" = "yes"; then
14074 cat >> confdefs.h <<\EOF
14075#define wxUSE_RADIOBTN 1
14076EOF
14077
14078fi
14079
14080if test "$wxUSE_SASH" = "yes"; then
14081 cat >> confdefs.h <<\EOF
14082#define wxUSE_SASH 1
14083EOF
14084
14085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
14086fi
14087
14088if test "$wxUSE_SCROLLBAR" = "yes"; then
14089 cat >> confdefs.h <<\EOF
14090#define wxUSE_SCROLLBAR 1
14091EOF
14092
741a9306 14093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
14094fi
14095
14096if test "$wxUSE_SLIDER" = "yes"; then
14097 cat >> confdefs.h <<\EOF
14098#define wxUSE_SLIDER 1
14099EOF
14100
14101fi
14102
14103if test "$wxUSE_SPINBTN" = "yes"; then
14104 cat >> confdefs.h <<\EOF
14105#define wxUSE_SPINBTN 1
14106EOF
14107
14108fi
14109
56cfaa52
RR
14110if test "$wxUSE_SPINCTRL" = "yes"; then
14111 cat >> confdefs.h <<\EOF
14112#define wxUSE_SPINCTRL 1
14113EOF
14114
14115fi
14116
10f2d63a
VZ
14117if test "$wxUSE_SPLITTER" = "yes"; then
14118 cat >> confdefs.h <<\EOF
14119#define wxUSE_SPLITTER 1
14120EOF
14121
14122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
14123fi
14124
14125if test "$wxUSE_STATBMP" = "yes"; then
14126 cat >> confdefs.h <<\EOF
14127#define wxUSE_STATBMP 1
14128EOF
14129
14130fi
14131
14132if test "$wxUSE_STATBOX" = "yes"; then
14133 cat >> confdefs.h <<\EOF
14134#define wxUSE_STATBOX 1
14135EOF
14136
14137fi
14138
14139if test "$wxUSE_STATLINE" = "yes"; then
14140 if test "$wxUSE_WINE" = 1 ; then
14141 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
14142 else
14143 cat >> confdefs.h <<\EOF
14144#define wxUSE_STATLINE 1
14145EOF
14146
14147 fi
14148fi
14149
14150if test "$wxUSE_STATUSBAR" = "yes"; then
14151 cat >> confdefs.h <<\EOF
14152#define wxUSE_STATUSBAR 1
14153EOF
14154
2286341c
VZ
14155
14156 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
14157fi
14158
14159if test "$wxUSE_TABDIALOG" = "yes"; then
14160 cat >> confdefs.h <<\EOF
14161#define wxUSE_TAB_DIALOG 1
14162EOF
14163
14164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
14165fi
14166
360d6699
VZ
14167if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
14168 cat >> confdefs.h <<\EOF
14169#define wxUSE_TOOLBAR_SIMPLE 1
14170EOF
14171
14172 wxUSE_TOOLBAR="yes"
14173fi
14174
10f2d63a
VZ
14175if test "$wxUSE_TOOLBAR" = "yes"; then
14176 cat >> confdefs.h <<\EOF
14177#define wxUSE_TOOLBAR 1
14178EOF
14179
360d6699
VZ
14180
14181 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
14182 wxUSE_TOOLBAR_NATIVE="yes"
14183 fi
14184
10f2d63a
VZ
14185 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
14186fi
14187
360d6699
VZ
14188if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
14189 cat >> confdefs.h <<\EOF
14190#define wxUSE_TOOLBAR_NATIVE 1
14191EOF
14192
14193fi
14194
10f2d63a
VZ
14195if test "$wxUSE_TOOLTIPS" = "yes"; then
14196 if test "$wxUSE_MOTIF" = 1; then
14197 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
14198 else
14199 if test "$wxUSE_WINE" = 1; then
14200 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
14201 else
14202 cat >> confdefs.h <<\EOF
14203#define wxUSE_TOOLTIPS 1
14204EOF
14205
14206 fi
14207 fi
14208fi
14209
14210if test "$wxUSE_TREECTRL" = "yes"; then
14211 if test "$wxUSE_IMAGLIST" = "yes"; then
14212 cat >> confdefs.h <<\EOF
14213#define wxUSE_TREECTRL 1
14214EOF
14215
14216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
14217 else
14218 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
14219 fi
14220fi
14221
14222
14223
14224if test "$wxUSE_METAFILE" = "yes"; then
14225 cat >> confdefs.h <<\EOF
14226#define wxUSE_METAFILE 1
14227EOF
14228
14229fi
14230
14231if test "$wxUSE_DIRDLG" = "yes"; then
14232 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14233 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
14234 else
14235 if test "$wxUSE_TREECTRL" != "yes"; then
14236 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
14237 else
14238 cat >> confdefs.h <<\EOF
14239#define wxUSE_DIRDLG 1
14240EOF
14241
14242 fi
14243 fi
14244fi
14245
14246if test "$wxUSE_TEXTDLG" = "yes"; then
14247 cat >> confdefs.h <<\EOF
14248#define wxUSE_TEXTDLG 1
14249EOF
14250
14251fi
14252
14253if test "$wxUSE_STARTUP_TIPS" = "yes"; then
14254 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14255 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
14256 else
14257 cat >> confdefs.h <<\EOF
14258#define wxUSE_STARTUP_TIPS 1
14259EOF
14260
14261 fi
14262fi
14263
14264if test "$wxUSE_PROGRESSDLG" = "yes"; then
14265 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14266 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
14267 else
14268 cat >> confdefs.h <<\EOF
14269#define wxUSE_PROGRESSDLG 1
14270EOF
14271
14272 fi
14273fi
14274
14275if test "$wxUSE_MINIFRAME" = "yes"; then
14276 cat >> confdefs.h <<\EOF
14277#define wxUSE_MINIFRAME 1
14278EOF
14279
14280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
14281fi
14282
14283if test "$wxUSE_HTML" = "yes"; then
14284 cat >> confdefs.h <<\EOF
14285#define wxUSE_HTML 1
14286EOF
14287
14288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
14289 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
14290fi
14291
14292if test "$wxUSE_VALIDATORS" = "yes"; then
14293 cat >> confdefs.h <<\EOF
14294#define wxUSE_VALIDATORS 1
14295EOF
14296
14297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
14298fi
14299
14300if test "$wxUSE_GIF" = "yes" ; then
14301 cat >> confdefs.h <<\EOF
14302#define wxUSE_GIF 1
14303EOF
14304
14305fi
14306
14307if test "$wxUSE_PCX" = "yes" ; then
14308 cat >> confdefs.h <<\EOF
14309#define wxUSE_PCX 1
14310EOF
14311
14312fi
14313
14314if test "$wxUSE_PNM" = "yes" ; then
14315 cat >> confdefs.h <<\EOF
14316#define wxUSE_PNM 1
14317EOF
14318
14319fi
14320
14321
32832908
VZ
14322if test "$cross_compiling" = "yes"; then
14323 OSINFO="\"$host\""
14324else
14325 OSINFO=`uname -s -r -m`
14326 OSINFO="\"$OSINFO\""
14327fi
14328
aaa37c0d
VZ
14329cat >> confdefs.h <<EOF
14330#define WXWIN_OS_DESCRIPTION $OSINFO
14331EOF
14332
14333
14334
f6bcfd97
BP
14335GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
14336OPENGL_LIBS="$OPENGL_LINK"
10f2d63a 14337
f6bcfd97 14338EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
10f2d63a 14339if test "$wxUSE_GUI" = "yes"; then
f6bcfd97 14340 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $EXTRA_LIBS"
10f2d63a
VZ
14341fi
14342
14343LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
14344
8461a059 14345INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a 14346
f6bcfd97
BP
14347if test "$wxUSE_GTK" = 1; then
14348 WXCONFIG_INCLUDE=""
14349else
14350 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
14351fi
14352
10f2d63a
VZ
14353if test "$GXX" = yes ; then
14354 CXXWARNINGS="-Wall"
d6a55c4b 14355 fi
10f2d63a
VZ
14356EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
14357
f6bcfd97 14358CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
10f2d63a
VZ
14359CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
14360
e694c22c
VZ
14361LDFLAGS="$LDFLAGS $PROFILE"
14362
10f2d63a
VZ
14363if test "$wxUSE_GUI" = "yes"; then
14364
bdad4e7e 14365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag drawing dynamic \
bc9027cc 14366 font fractal image menu minimal richedit"
b12915c1 14367
88d3a15c 14368 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
14369else
14370 SAMPLES_SUBDIRS=""
14371fi
14372
ec14dd32
VZ
14373SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
14374
14375
14376
10f2d63a
VZ
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
1d62a8b4 14429
bdad4e7e
RR
14430
14431
14432
14433
14434
14435
14436
32832908
VZ
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
bdad4e7e
RR
14450
14451
14452
e694c22c 14453
b12915c1 14454
2224580a
VZ
14455
14456
14457
14458
dad6c0ea 14459
f6bcfd97
BP
14460
14461
14462
14463
dad6c0ea 14464
caa2c79b 14465
3711412e 14466
10f2d63a
VZ
14467
14468
14469echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
f6bcfd97 14470echo "configure:14471: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
14471set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
14472if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
14473 echo $ac_n "(cached) $ac_c" 1>&6
14474else
14475 cat > conftestmake <<\EOF
14476all:
14477 @echo 'ac_maketemp="${MAKE}"'
14478EOF
14479# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14480eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
14481if test -n "$ac_maketemp"; then
14482 eval ac_cv_prog_make_${ac_make}_set=yes
14483else
14484 eval ac_cv_prog_make_${ac_make}_set=no
14485fi
14486rm -f conftestmake
14487fi
14488if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
14489 echo "$ac_t""yes" 1>&6
14490 SET_MAKE=
14491else
14492 echo "$ac_t""no" 1>&6
14493 SET_MAKE="MAKE=${MAKE-make}"
14494fi
14495
14496
00cf1208
RR
14497if test -d include; then
14498 if test -d include/wx; then
14499 if test -d include/wx/${TOOLKIT_DIR}; then
14500 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
14501 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
14502 fi
14503 fi
14504 fi
14505fi
14506
10f2d63a
VZ
14507
14508
2224580a 14509if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 14510 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
14511 wx_cv_path_ifs=$PATH_IFS
14512 wx_cv_program_ext=$PROGRAM_EXT
14513 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 14514 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
e8482f24 14515 subdirs="demos samples utils contrib"
2224580a
VZ
14516
14517fi
10f2d63a
VZ
14518
14519trap '' 1 2 15
14520cat > confcache <<\EOF
14521# This file is a shell script that caches the results of configure
14522# tests run on this system so they can be shared between configure
14523# scripts and configure runs. It is not useful on other systems.
14524# If it contains results you don't want to keep, you may remove or edit it.
14525#
14526# By default, configure uses ./config.cache as the cache file,
14527# creating it if it does not exist already. You can give configure
14528# the --cache-file=FILE option to use a different cache file; that is
14529# what configure does when it calls configure scripts in
14530# subdirectories, so they share the cache.
14531# Giving --cache-file=/dev/null disables caching, for debugging configure.
14532# config.status only pays attention to the cache file if you give it the
14533# --recheck option to rerun configure.
14534#
14535EOF
14536# The following way of writing the cache mishandles newlines in values,
14537# but we know of no workaround that is simple, portable, and efficient.
14538# So, don't put newlines in cache variables' values.
14539# Ultrix sh set writes to stderr and can't be redirected directly,
14540# and sets the high bit in the cache file unless we assign to the vars.
14541(set) 2>&1 |
14542 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14543 *ac_space=\ *)
14544 # `set' does not quote correctly, so add quotes (double-quote substitution
14545 # turns \\\\ into \\, and sed turns \\ into \).
14546 sed -n \
14547 -e "s/'/'\\\\''/g" \
14548 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14549 ;;
14550 *)
14551 # `set' quotes correctly as required by POSIX, so do not add quotes.
14552 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14553 ;;
14554 esac >> confcache
14555if cmp -s $cache_file confcache; then
14556 :
14557else
14558 if test -w $cache_file; then
14559 echo "updating cache $cache_file"
14560 cat confcache > $cache_file
14561 else
14562 echo "not updating unwritable cache $cache_file"
14563 fi
14564fi
14565rm -f confcache
14566
14567trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14568
14569test "x$prefix" = xNONE && prefix=$ac_default_prefix
14570# Let make expand exec_prefix.
14571test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14572
14573# Any assignment to VPATH causes Sun make to only execute
14574# the first set of double-colon rules, so remove it if not needed.
14575# If there is a colon in the path, we need to keep it.
14576if test "x$srcdir" = x.; then
14577 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14578fi
14579
14580trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14581
14582DEFS=-DHAVE_CONFIG_H
14583
14584# Without the "./", some shells look in PATH for config.status.
14585: ${CONFIG_STATUS=./config.status}
14586
14587echo creating $CONFIG_STATUS
14588rm -f $CONFIG_STATUS
14589cat > $CONFIG_STATUS <<EOF
14590#! /bin/sh
14591# Generated automatically by configure.
14592# Run this file to recreate the current configuration.
14593# This directory was configured as follows,
14594# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14595#
14596# $0 $ac_configure_args
14597#
14598# Compiler output produced by configure, useful for debugging
14599# configure, is in ./config.log if it exists.
14600
14601ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14602for ac_option
14603do
14604 case "\$ac_option" in
14605 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14606 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14607 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14608 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
e8482f24 14609 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
14610 exit 0 ;;
14611 -help | --help | --hel | --he | --h)
14612 echo "\$ac_cs_usage"; exit 0 ;;
14613 *) echo "\$ac_cs_usage"; exit 1 ;;
14614 esac
14615done
14616
14617ac_given_srcdir=$srcdir
14618ac_given_INSTALL="$INSTALL"
14619
14620trap 'rm -fr `echo "
14621 wx-config
14622 src/make.env
14623 src/makeprog.env
14624 src/makelib.env
14625 Makefile
10f2d63a
VZ
14626 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14627EOF
14628cat >> $CONFIG_STATUS <<EOF
14629
14630# Protect against being on the right side of a sed subst in config.status.
14631sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14632 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14633$ac_vpsub
14634$extrasub
14635s%@SHELL@%$SHELL%g
14636s%@CFLAGS@%$CFLAGS%g
14637s%@CPPFLAGS@%$CPPFLAGS%g
14638s%@CXXFLAGS@%$CXXFLAGS%g
14639s%@FFLAGS@%$FFLAGS%g
14640s%@DEFS@%$DEFS%g
14641s%@LDFLAGS@%$LDFLAGS%g
14642s%@LIBS@%$LIBS%g
14643s%@exec_prefix@%$exec_prefix%g
14644s%@prefix@%$prefix%g
14645s%@program_transform_name@%$program_transform_name%g
14646s%@bindir@%$bindir%g
14647s%@sbindir@%$sbindir%g
14648s%@libexecdir@%$libexecdir%g
14649s%@datadir@%$datadir%g
14650s%@sysconfdir@%$sysconfdir%g
14651s%@sharedstatedir@%$sharedstatedir%g
14652s%@localstatedir@%$localstatedir%g
14653s%@libdir@%$libdir%g
14654s%@includedir@%$includedir%g
14655s%@oldincludedir@%$oldincludedir%g
14656s%@infodir@%$infodir%g
14657s%@mandir@%$mandir%g
7c66a493
VZ
14658s%@host@%$host%g
14659s%@host_alias@%$host_alias%g
14660s%@host_cpu@%$host_cpu%g
14661s%@host_vendor@%$host_vendor%g
14662s%@host_os@%$host_os%g
14663s%@target@%$target%g
14664s%@target_alias@%$target_alias%g
14665s%@target_cpu@%$target_cpu%g
14666s%@target_vendor@%$target_vendor%g
14667s%@target_os@%$target_os%g
14668s%@build@%$build%g
14669s%@build_alias@%$build_alias%g
14670s%@build_cpu@%$build_cpu%g
14671s%@build_vendor@%$build_vendor%g
14672s%@build_os@%$build_os%g
10f2d63a
VZ
14673s%@CC@%$CC%g
14674s%@CPP@%$CPP%g
14675s%@CXX@%$CXX%g
14676s%@CXXCPP@%$CXXCPP%g
14677s%@RANLIB@%$RANLIB%g
14678s%@AR@%$AR%g
14679s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14680s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14681s%@INSTALL_DATA@%$INSTALL_DATA%g
14682s%@STRIP@%$STRIP%g
14683s%@YACC@%$YACC%g
14684s%@LEX@%$LEX%g
14685s%@LEXLIB@%$LEXLIB%g
14686s%@LN_S@%$LN_S%g
14687s%@GTK_CONFIG@%$GTK_CONFIG%g
14688s%@GTK_CFLAGS@%$GTK_CFLAGS%g
14689s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
14690s%@X_CFLAGS@%$X_CFLAGS%g
14691s%@X_PRE_LIBS@%$X_PRE_LIBS%g
14692s%@X_LIBS@%$X_LIBS%g
14693s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
14694s%@LEX_STEM@%$LEX_STEM%g
14695s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
14696s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
14697s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
14698s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
14699s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
14700s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
14701s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
14702s%@WX_LIBRARY@%$WX_LIBRARY%g
14703s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
14704s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
14705s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
14706s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
14707s%@PROGRAM_EXT@%$PROGRAM_EXT%g
bdad4e7e
RR
14708s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
14709s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
14710s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
14711s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
14712s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
14713s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
14714s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
14715s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
10f2d63a
VZ
14716s%@WX_ALL@%$WX_ALL%g
14717s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
14718s%@SHARED_LD@%$SHARED_LD%g
14719s%@PIC_FLAG@%$PIC_FLAG%g
14720s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 14721s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 14722s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
bdad4e7e 14723s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
f6bcfd97 14724s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
3711412e 14725s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
10f2d63a 14726s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
14727s%@USE_GUI@%$USE_GUI%g
14728s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
14729s%@TOOLKIT@%$TOOLKIT%g
14730s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
14731s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
f6bcfd97 14732s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
10f2d63a 14733s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
f6bcfd97 14734s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
10f2d63a
VZ
14735s%@GUIHEADERS@%$GUIHEADERS%g
14736s%@GUIOBJS@%$GUIOBJS%g
14737s%@COMMONOBJS@%$COMMONOBJS%g
14738s%@GENERICOBJS@%$GENERICOBJS%g
14739s%@GUIDEPS@%$GUIDEPS%g
14740s%@COMMONDEPS@%$COMMONDEPS%g
14741s%@GENERICDEPS@%$GENERICDEPS%g
14742s%@IODBCOBJS@%$IODBCOBJS%g
14743s%@UNIXOBJS@%$UNIXOBJS%g
14744s%@UNIXDEPS@%$UNIXDEPS%g
14745s%@ALL_OBJECTS@%$ALL_OBJECTS%g
14746s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 14747s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
14748s%@PORT_FILES@%$PORT_FILES%g
14749s%@DISTDIR@%$DISTDIR%g
14750s%@RPM_SPEC@%$RPM_SPEC%g
14751s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
14752s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
14753s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
14754s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
14755s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
14756s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
14757s%@USER_SUBDIRS@%$USER_SUBDIRS%g
14758s%@EXTRA_LIBS@%$EXTRA_LIBS%g
f6bcfd97 14759s%@OPENGL_LIBS@%$OPENGL_LIBS%g
b12915c1 14760s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a 14761s%@LD_LIBS@%$LD_LIBS%g
32832908
VZ
14762s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
14763s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
14764s%@RESPROGRAM@%$RESPROGRAM%g
14765s%@RESCOMP@%$RESCOMP%g
14766s%@RESFLAGS@%$RESFLAGS%g
14767s%@DLLTOOL@%$DLLTOOL%g
14768s%@AS@%$AS%g
14769s%@NM@%$NM%g
14770s%@LD@%$LD%g
14771s%@MAKEINFO@%$MAKEINFO%g
10f2d63a 14772s%@SET_MAKE@%$SET_MAKE%g
2224580a 14773s%@subdirs@%$subdirs%g
10f2d63a
VZ
14774
14775CEOF
14776EOF
14777
14778cat >> $CONFIG_STATUS <<\EOF
14779
14780# Split the substitutions into bite-sized pieces for seds with
14781# small command number limits, like on Digital OSF/1 and HP-UX.
14782ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14783ac_file=1 # Number of current file.
14784ac_beg=1 # First line for current file.
14785ac_end=$ac_max_sed_cmds # Line after last line for current file.
14786ac_more_lines=:
14787ac_sed_cmds=""
14788while $ac_more_lines; do
14789 if test $ac_beg -gt 1; then
14790 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14791 else
14792 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14793 fi
14794 if test ! -s conftest.s$ac_file; then
14795 ac_more_lines=false
14796 rm -f conftest.s$ac_file
14797 else
14798 if test -z "$ac_sed_cmds"; then
14799 ac_sed_cmds="sed -f conftest.s$ac_file"
14800 else
14801 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14802 fi
14803 ac_file=`expr $ac_file + 1`
14804 ac_beg=$ac_end
14805 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14806 fi
14807done
14808if test -z "$ac_sed_cmds"; then
14809 ac_sed_cmds=cat
14810fi
14811EOF
14812
14813cat >> $CONFIG_STATUS <<EOF
14814
14815CONFIG_FILES=\${CONFIG_FILES-"wx-config
14816 src/make.env
14817 src/makeprog.env
14818 src/makelib.env
14819 Makefile
10f2d63a
VZ
14820 "}
14821EOF
14822cat >> $CONFIG_STATUS <<\EOF
14823for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14825 case "$ac_file" in
14826 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14827 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14828 *) ac_file_in="${ac_file}.in" ;;
14829 esac
14830
14831 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14832
14833 # Remove last slash and all that follows it. Not all systems have dirname.
14834 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14835 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14836 # The file is in a subdirectory.
14837 test ! -d "$ac_dir" && mkdir "$ac_dir"
14838 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14839 # A "../" for each directory in $ac_dir_suffix.
14840 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14841 else
14842 ac_dir_suffix= ac_dots=
14843 fi
14844
14845 case "$ac_given_srcdir" in
14846 .) srcdir=.
14847 if test -z "$ac_dots"; then top_srcdir=.
14848 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14849 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14850 *) # Relative path.
14851 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14852 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14853 esac
14854
14855 case "$ac_given_INSTALL" in
14856 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14857 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14858 esac
14859
14860 echo creating "$ac_file"
14861 rm -f "$ac_file"
14862 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14863 case "$ac_file" in
14864 *Makefile*) ac_comsub="1i\\
14865# $configure_input" ;;
14866 *) ac_comsub= ;;
14867 esac
14868
14869 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14870 sed -e "$ac_comsub
14871s%@configure_input@%$configure_input%g
14872s%@srcdir@%$srcdir%g
14873s%@top_srcdir@%$top_srcdir%g
14874s%@INSTALL@%$INSTALL%g
14875" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14876fi; done
14877rm -f conftest.s*
14878
14879# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14880# NAME is the cpp macro being defined and VALUE is the value it is being given.
14881#
14882# ac_d sets the value in "#define NAME VALUE" lines.
14883ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14884ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14885ac_dC='\3'
14886ac_dD='%g'
14887# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14888ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14889ac_uB='\([ ]\)%\1#\2define\3'
14890ac_uC=' '
14891ac_uD='\4%g'
14892# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14893ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14894ac_eB='$%\1#\2define\3'
14895ac_eC=' '
14896ac_eD='%g'
14897
14898if test "${CONFIG_HEADERS+set}" != set; then
14899EOF
14900cat >> $CONFIG_STATUS <<EOF
14901 CONFIG_HEADERS="setup.h:setup.h.in"
14902EOF
14903cat >> $CONFIG_STATUS <<\EOF
14904fi
14905for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14906 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14907 case "$ac_file" in
14908 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14909 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14910 *) ac_file_in="${ac_file}.in" ;;
14911 esac
14912
14913 echo creating $ac_file
14914
14915 rm -f conftest.frag conftest.in conftest.out
14916 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14917 cat $ac_file_inputs > conftest.in
14918
14919EOF
14920
14921# Transform confdefs.h into a sed script conftest.vals that substitutes
14922# the proper values into config.h.in to produce config.h. And first:
14923# Protect against being on the right side of a sed subst in config.status.
14924# Protect against being in an unquoted here document in config.status.
14925rm -f conftest.vals
14926cat > conftest.hdr <<\EOF
14927s/[\\&%]/\\&/g
14928s%[\\$`]%\\&%g
14929s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14930s%ac_d%ac_u%gp
14931s%ac_u%ac_e%gp
14932EOF
14933sed -n -f conftest.hdr confdefs.h > conftest.vals
14934rm -f conftest.hdr
14935
14936# This sed command replaces #undef with comments. This is necessary, for
14937# example, in the case of _POSIX_SOURCE, which is predefined and required
14938# on some systems where configure will not decide to define it.
14939cat >> conftest.vals <<\EOF
14940s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14941EOF
14942
14943# Break up conftest.vals because some shells have a limit on
14944# the size of here documents, and old seds have small limits too.
14945
14946rm -f conftest.tail
14947while :
14948do
14949 ac_lines=`grep -c . conftest.vals`
14950 # grep -c gives empty output for an empty file on some AIX systems.
14951 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14952 # Write a limited-size here document to conftest.frag.
14953 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14954 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14955 echo 'CEOF
14956 sed -f conftest.frag conftest.in > conftest.out
14957 rm -f conftest.in
14958 mv conftest.out conftest.in
14959' >> $CONFIG_STATUS
14960 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14961 rm -f conftest.vals
14962 mv conftest.tail conftest.vals
14963done
14964rm -f conftest.vals
14965
14966cat >> $CONFIG_STATUS <<\EOF
14967 rm -f conftest.frag conftest.h
14968 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14969 cat conftest.in >> conftest.h
14970 rm -f conftest.in
14971 if cmp -s $ac_file conftest.h 2>/dev/null; then
14972 echo "$ac_file is unchanged"
14973 rm -f conftest.h
14974 else
14975 # Remove last slash and all that follows it. Not all systems have dirname.
14976 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14977 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14978 # The file is in a subdirectory.
14979 test ! -d "$ac_dir" && mkdir "$ac_dir"
14980 fi
14981 rm -f $ac_file
14982 mv conftest.h $ac_file
14983 fi
14984fi; done
14985
14986EOF
14987cat >> $CONFIG_STATUS <<EOF
14988
14989 TOOLKIT_DIR="${TOOLKIT_DIR}"
f6bcfd97 14990 TOOLKIT_NAME="${TOOLKIT_NAME}"
07eb77a6 14991 LN_S="${LN_S}"
10f2d63a
VZ
14992
14993
14994EOF
14995cat >> $CONFIG_STATUS <<\EOF
14996
14997 chmod +x wx-config
f6bcfd97
BP
14998 mv wx-config wx${TOOLKIT_NAME}-config
14999 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
00cf1208
RR
15000
15001
15002 if test ! -d lib; then
15003 mkdir lib
15004 fi
15005 if test ! -d lib/wx; then
15006 mkdir lib/wx
15007 fi
15008 if test ! -d lib/wx/include; then
15009 mkdir lib/wx/include
15010 fi
15011 if test ! -d lib/wx/include/wx; then
15012 mkdir lib/wx/include/wx
15013 fi
f6bcfd97
BP
15014 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
15015 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
15016 fi
15017 if test -f setup.h; then
f6bcfd97 15018 cp -f setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 15019 fi
07eb77a6 15020
00cf1208 15021
10f2d63a
VZ
15022 if test ! -d include; then
15023 mkdir include
15024 fi
15025 if test ! -d include/wx; then
15026 mkdir include/wx
15027 fi
15028 if test ! -d include/wx/${TOOLKIT_DIR}; then
15029 mkdir include/wx/${TOOLKIT_DIR}
15030 fi
afc31813
VZ
15031 if test -f setup.h; then
15032 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
15033 fi
00cf1208 15034
10f2d63a
VZ
15035
15036exit 0
15037EOF
15038chmod +x $CONFIG_STATUS
15039rm -fr confdefs* $ac_clean_files
15040test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
15041
2224580a
VZ
15042if test "$no_recursion" != yes; then
15043
15044 # Remove --cache-file and --srcdir arguments so they do not pile up.
15045 ac_sub_configure_args=
15046 ac_prev=
15047 for ac_arg in $ac_configure_args; do
15048 if test -n "$ac_prev"; then
15049 ac_prev=
15050 continue
15051 fi
15052 case "$ac_arg" in
15053 -cache-file | --cache-file | --cache-fil | --cache-fi \
15054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15055 ac_prev=cache_file ;;
15056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
15058 ;;
15059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15060 ac_prev=srcdir ;;
15061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15062 ;;
15063 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
15064 esac
15065 done
15066
e8482f24 15067 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
15068
15069 # Do not complain, so a configure script can configure whichever
15070 # parts of a large source tree are present.
15071 if test ! -d $srcdir/$ac_config_dir; then
15072 continue
15073 fi
15074
15075 echo configuring in $ac_config_dir
15076
15077 case "$srcdir" in
15078 .) ;;
15079 *)
15080 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
15081 else
15082 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
15083 fi
15084 ;;
15085 esac
15086
15087 ac_popdir=`pwd`
15088 cd $ac_config_dir
15089
15090 # A "../" for each directory in /$ac_config_dir.
15091 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
15092
15093 case "$srcdir" in
15094 .) # No --srcdir option. We are building in place.
15095 ac_sub_srcdir=$srcdir ;;
15096 /*) # Absolute path.
15097 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
15098 *) # Relative path.
15099 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
15100 esac
15101
15102 # Check for guested configure; otherwise get Cygnus style configure.
15103 if test -f $ac_sub_srcdir/configure; then
15104 ac_sub_configure=$ac_sub_srcdir/configure
15105 elif test -f $ac_sub_srcdir/configure.in; then
15106 ac_sub_configure=$ac_configure
15107 else
15108 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
15109 ac_sub_configure=
15110 fi
15111
15112 # The recursion is here.
15113 if test -n "$ac_sub_configure"; then
15114
15115 # Make the cache file name correct relative to the subdirectory.
15116 case "$cache_file" in
15117 /*) ac_sub_cache_file=$cache_file ;;
15118 *) # Relative path.
15119 ac_sub_cache_file="$ac_dots$cache_file" ;;
15120 esac
15121 case "$ac_given_INSTALL" in
15122 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15123 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15124 esac
15125
15126 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
15127 # The eval makes quoting arguments work.
15128 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
15129 then :
15130 else
15131 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
15132 fi
15133 fi
15134
15135 cd $ac_popdir
15136 done
15137fi
15138
10f2d63a 15139