]> git.saurik.com Git - wxWidgets.git/blame - configure
Had to #ifdef out all the new wxGetFullHostName code as it breaks all
[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
120--enable-dialupman use dialup network classes"
121ac_help="$ac_help
122--enable-ipc use interprocess communication (wxSocket etc.)"
123ac_help="$ac_help
124--enable-apple_ieee use the Apple IEEE codec"
125ac_help="$ac_help
126--enable-timedate use date/time classes"
127ac_help="$ac_help
128--enable-wave use wxWave class"
129ac_help="$ac_help
130--enable-fraction use wxFraction class"
131ac_help="$ac_help
132--enable-dynlib use wxLibrary class for DLL loading"
133ac_help="$ac_help
134--enable-longlong use wxLongLong class"
135ac_help="$ac_help
136--enable-log use logging system"
137ac_help="$ac_help
138--enable-streams use wxStream etc classes"
139ac_help="$ac_help
140--enable-file use wxFile classes"
141ac_help="$ac_help
142--enable-textfile use wxTextFile classes"
143ac_help="$ac_help
144--enable-unicode compile wxString with Unicode support"
145ac_help="$ac_help
146--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
147ac_help="$ac_help
148--enable-wxprintfv use wxWindows implementation of vprintf()"
149ac_help="$ac_help
150--enable-joystick compile in joystick support (Linux only)"
151ac_help="$ac_help
152--enable-std_iostreams use standard C++ stream classes"
153ac_help="$ac_help
24528b0c
VS
154--enable-filesystem use virtual file systems classes"
155ac_help="$ac_help
10f2d63a
VZ
156--enable-fs_inet use virtual HTTP/FTP filesystems"
157ac_help="$ac_help
158--enable-fs_zip use virtual ZIP filesystems"
159ac_help="$ac_help
160--enable-zipstream use wxZipInputStream"
161ac_help="$ac_help
162--enable-threads use threads"
163ac_help="$ac_help
164--enable-serial use class serialization"
165ac_help="$ac_help
166--enable-docview use document view architecture"
167ac_help="$ac_help
168--enable-help use help (using external browser at present)"
169ac_help="$ac_help
170--enable-constraints use layout-constraints system"
171ac_help="$ac_help
172--enable-printarch use printing architecture"
173ac_help="$ac_help
174--enable-mdi use multiple document interface architecture"
175ac_help="$ac_help
176--enable-postscript use wxPostscriptDC device context (default for gtk+)"
177ac_help="$ac_help
178--enable-prologio use Prolog IO library"
179ac_help="$ac_help
180--enable-resources use wxWindows resources"
181ac_help="$ac_help
182--enable-xresources use X resources for save (default for gtk+)"
183ac_help="$ac_help
184--enable-clipboard use wxClipboard classes"
185ac_help="$ac_help
186--enable-dnd use Drag'n'Drop classes"
187ac_help="$ac_help
188--enable-wxtree make wxTree library"
189ac_help="$ac_help
190--enable-controls use all usual controls"
191ac_help="$ac_help
192--enable-accel use accelerators"
193ac_help="$ac_help
194--enable-caret use wxCaret class"
195ac_help="$ac_help
196--enable-bmpbutton use wxBitmapButton class"
197ac_help="$ac_help
198--enable-checkbox use wxCheckBox class"
199ac_help="$ac_help
200--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
201ac_help="$ac_help
202--enable-choice use wxChoice class"
203ac_help="$ac_help
204--enable-combobox use wxComboBox classes"
205ac_help="$ac_help
206--enable-gauge use wxGauge class"
207ac_help="$ac_help
208--enable-grid use wxGrid class"
209ac_help="$ac_help
210--enable-newgrid use new wxGrid class"
211ac_help="$ac_help
212--enable-imaglist use wxImageList class"
213ac_help="$ac_help
214--enable-listbox use wxListBox class"
215ac_help="$ac_help
216--enable-listctrl use wxListCtrl class"
217ac_help="$ac_help
218--enable-notebook use wxNotebook class"
219ac_help="$ac_help
220--enable-radiobox use wxRadioBox class"
221ac_help="$ac_help
222--enable-radiobtn use wxRadioButton class"
223ac_help="$ac_help
224--enable-sash use wxSashWindow class"
225ac_help="$ac_help
226--enable-scrollbar use wxScrollBar class and scrollable windows"
227ac_help="$ac_help
228--enable-slider use wxSlider class"
229ac_help="$ac_help
230--enable-spinbtn use wxSpinButton class"
231ac_help="$ac_help
56cfaa52
RR
232--enable-spinctrl use wxSpinCtrl class"
233ac_help="$ac_help
10f2d63a
VZ
234--enable-splitter use wxSplitterWindow class"
235ac_help="$ac_help
236--enable-statbmp use wxStaticBitmap class"
237ac_help="$ac_help
238--enable-statbox use wxStaticBox class"
239ac_help="$ac_help
240--enable-statline use wxStaticLine class"
241ac_help="$ac_help
242--enable-statusbar use wxStatusBar class"
243ac_help="$ac_help
244--enable-tabdialog use wxTabControl class"
245ac_help="$ac_help
246--enable-toolbar use wxToolBar class"
247ac_help="$ac_help
360d6699
VZ
248--enable-tbarnative use native wxToolBar class"
249ac_help="$ac_help
250--enable-tbarsmpl use wxToolBarSimple class"
251ac_help="$ac_help
10f2d63a
VZ
252--enable-treectrl use wxTreeCtrl class"
253ac_help="$ac_help
254--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
255ac_help="$ac_help
256--enable-dirdlg use wxDirDialog"
257ac_help="$ac_help
258--enable-textdlg use wxTextDialog"
259ac_help="$ac_help
260--enable-tipdlg use startup tips"
261ac_help="$ac_help
262--enable-progressdlg use wxProgressDialog"
263ac_help="$ac_help
264--enable-miniframe use wxMiniFrame class"
265ac_help="$ac_help
266--enable-html use wxHTML sub-library"
267ac_help="$ac_help
268--enable-tooltips use wxToolTip class"
269ac_help="$ac_help
270--enable-splines use spline drawing code"
271ac_help="$ac_help
272--enable-validators use wxValidator and derived classes"
273ac_help="$ac_help
274--enable-busyinfo use wxBusyInfo"
275ac_help="$ac_help
9b33fe02
VZ
276--enable-plot use wxPlot"
277ac_help="$ac_help
10f2d63a
VZ
278--enable-gif use gif images (GIF file format)"
279ac_help="$ac_help
280--enable-pcx use pcx images (PCX file format)"
281ac_help="$ac_help
282--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
283ac_help="$ac_help
284 --with-x use the X Window System"
10f2d63a
VZ
285
286# Initialize some variables set by options.
287# The variables have the same names as the options, with
288# dashes changed to underlines.
289build=NONE
290cache_file=./config.cache
291exec_prefix=NONE
292host=NONE
293no_create=
294nonopt=NONE
295no_recursion=
296prefix=NONE
297program_prefix=NONE
298program_suffix=NONE
299program_transform_name=s,x,x,
300silent=
301site=
302srcdir=
303target=NONE
304verbose=
305x_includes=NONE
306x_libraries=NONE
307bindir='${exec_prefix}/bin'
308sbindir='${exec_prefix}/sbin'
309libexecdir='${exec_prefix}/libexec'
310datadir='${prefix}/share'
311sysconfdir='${prefix}/etc'
312sharedstatedir='${prefix}/com'
313localstatedir='${prefix}/var'
314libdir='${exec_prefix}/lib'
315includedir='${prefix}/include'
316oldincludedir='/usr/include'
317infodir='${prefix}/info'
318mandir='${prefix}/man'
319
320# Initialize some other variables.
321subdirs=
322MFLAGS= MAKEFLAGS=
323SHELL=${CONFIG_SHELL-/bin/sh}
324# Maximum number of lines to put in a shell here document.
325ac_max_here_lines=12
326
327ac_prev=
328for ac_option
329do
330
331 # If the previous option needs an argument, assign it.
332 if test -n "$ac_prev"; then
333 eval "$ac_prev=\$ac_option"
334 ac_prev=
335 continue
336 fi
337
338 case "$ac_option" in
339 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
340 *) ac_optarg= ;;
341 esac
342
343 # Accept the important Cygnus configure options, so we can diagnose typos.
344
345 case "$ac_option" in
346
347 -bindir | --bindir | --bindi | --bind | --bin | --bi)
348 ac_prev=bindir ;;
349 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
350 bindir="$ac_optarg" ;;
351
352 -build | --build | --buil | --bui | --bu)
353 ac_prev=build ;;
354 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
355 build="$ac_optarg" ;;
356
357 -cache-file | --cache-file | --cache-fil | --cache-fi \
358 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
359 ac_prev=cache_file ;;
360 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
361 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
362 cache_file="$ac_optarg" ;;
363
364 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
365 ac_prev=datadir ;;
366 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
367 | --da=*)
368 datadir="$ac_optarg" ;;
369
370 -disable-* | --disable-*)
371 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
375 fi
376 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
377 eval "enable_${ac_feature}=no" ;;
378
379 -enable-* | --enable-*)
380 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
384 fi
385 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
386 case "$ac_option" in
387 *=*) ;;
388 *) ac_optarg=yes ;;
389 esac
390 eval "enable_${ac_feature}='$ac_optarg'" ;;
391
392 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
393 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
394 | --exec | --exe | --ex)
395 ac_prev=exec_prefix ;;
396 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
397 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
398 | --exec=* | --exe=* | --ex=*)
399 exec_prefix="$ac_optarg" ;;
400
401 -gas | --gas | --ga | --g)
402 # Obsolete; use --with-gas.
403 with_gas=yes ;;
404
405 -help | --help | --hel | --he)
406 # Omit some internal or obsolete options to make the list less imposing.
407 # This message is too long to be a string in the A/UX 3.1 sh.
408 cat << EOF
409Usage: configure [options] [host]
410Options: [defaults in brackets after descriptions]
411Configuration:
412 --cache-file=FILE cache test results in FILE
413 --help print this message
414 --no-create do not create output files
415 --quiet, --silent do not print \`checking...' messages
416 --version print the version of autoconf that created configure
417Directory and file names:
418 --prefix=PREFIX install architecture-independent files in PREFIX
419 [$ac_default_prefix]
420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
421 [same as prefix]
422 --bindir=DIR user executables in DIR [EPREFIX/bin]
423 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
424 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
425 --datadir=DIR read-only architecture-independent data in DIR
426 [PREFIX/share]
427 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
428 --sharedstatedir=DIR modifiable architecture-independent data in DIR
429 [PREFIX/com]
430 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
431 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
432 --includedir=DIR C header files in DIR [PREFIX/include]
433 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
434 --infodir=DIR info documentation in DIR [PREFIX/info]
435 --mandir=DIR man documentation in DIR [PREFIX/man]
436 --srcdir=DIR find the sources in DIR [configure dir or ..]
437 --program-prefix=PREFIX prepend PREFIX to installed program names
438 --program-suffix=SUFFIX append SUFFIX to installed program names
439 --program-transform-name=PROGRAM
440 run sed PROGRAM on installed program names
441EOF
442 cat << EOF
443Host type:
444 --build=BUILD configure for building on BUILD [BUILD=HOST]
445 --host=HOST configure for HOST [guessed]
446 --target=TARGET configure for TARGET [TARGET=HOST]
447Features and packages:
448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
452 --x-includes=DIR X include files are in DIR
453 --x-libraries=DIR X library files are in DIR
454EOF
455 if test -n "$ac_help"; then
456 echo "--enable and --with options recognized:$ac_help"
457 fi
458 exit 0 ;;
459
460 -host | --host | --hos | --ho)
461 ac_prev=host ;;
462 -host=* | --host=* | --hos=* | --ho=*)
463 host="$ac_optarg" ;;
464
465 -includedir | --includedir | --includedi | --included | --include \
466 | --includ | --inclu | --incl | --inc)
467 ac_prev=includedir ;;
468 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
469 | --includ=* | --inclu=* | --incl=* | --inc=*)
470 includedir="$ac_optarg" ;;
471
472 -infodir | --infodir | --infodi | --infod | --info | --inf)
473 ac_prev=infodir ;;
474 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
475 infodir="$ac_optarg" ;;
476
477 -libdir | --libdir | --libdi | --libd)
478 ac_prev=libdir ;;
479 -libdir=* | --libdir=* | --libdi=* | --libd=*)
480 libdir="$ac_optarg" ;;
481
482 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
483 | --libexe | --libex | --libe)
484 ac_prev=libexecdir ;;
485 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
486 | --libexe=* | --libex=* | --libe=*)
487 libexecdir="$ac_optarg" ;;
488
489 -localstatedir | --localstatedir | --localstatedi | --localstated \
490 | --localstate | --localstat | --localsta | --localst \
491 | --locals | --local | --loca | --loc | --lo)
492 ac_prev=localstatedir ;;
493 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
494 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
495 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
496 localstatedir="$ac_optarg" ;;
497
498 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
499 ac_prev=mandir ;;
500 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
501 mandir="$ac_optarg" ;;
502
503 -nfp | --nfp | --nf)
504 # Obsolete; use --without-fp.
505 with_fp=no ;;
506
507 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
508 | --no-cr | --no-c)
509 no_create=yes ;;
510
511 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
512 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
513 no_recursion=yes ;;
514
515 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
516 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
517 | --oldin | --oldi | --old | --ol | --o)
518 ac_prev=oldincludedir ;;
519 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
520 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
521 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
522 oldincludedir="$ac_optarg" ;;
523
524 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
525 ac_prev=prefix ;;
526 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
527 prefix="$ac_optarg" ;;
528
529 -program-prefix | --program-prefix | --program-prefi | --program-pref \
530 | --program-pre | --program-pr | --program-p)
531 ac_prev=program_prefix ;;
532 -program-prefix=* | --program-prefix=* | --program-prefi=* \
533 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
534 program_prefix="$ac_optarg" ;;
535
536 -program-suffix | --program-suffix | --program-suffi | --program-suff \
537 | --program-suf | --program-su | --program-s)
538 ac_prev=program_suffix ;;
539 -program-suffix=* | --program-suffix=* | --program-suffi=* \
540 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
541 program_suffix="$ac_optarg" ;;
542
543 -program-transform-name | --program-transform-name \
544 | --program-transform-nam | --program-transform-na \
545 | --program-transform-n | --program-transform- \
546 | --program-transform | --program-transfor \
547 | --program-transfo | --program-transf \
548 | --program-trans | --program-tran \
549 | --progr-tra | --program-tr | --program-t)
550 ac_prev=program_transform_name ;;
551 -program-transform-name=* | --program-transform-name=* \
552 | --program-transform-nam=* | --program-transform-na=* \
553 | --program-transform-n=* | --program-transform-=* \
554 | --program-transform=* | --program-transfor=* \
555 | --program-transfo=* | --program-transf=* \
556 | --program-trans=* | --program-tran=* \
557 | --progr-tra=* | --program-tr=* | --program-t=*)
558 program_transform_name="$ac_optarg" ;;
559
560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
561 | -silent | --silent | --silen | --sile | --sil)
562 silent=yes ;;
563
564 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
565 ac_prev=sbindir ;;
566 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
567 | --sbi=* | --sb=*)
568 sbindir="$ac_optarg" ;;
569
570 -sharedstatedir | --sharedstatedir | --sharedstatedi \
571 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
572 | --sharedst | --shareds | --shared | --share | --shar \
573 | --sha | --sh)
574 ac_prev=sharedstatedir ;;
575 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
576 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
577 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
578 | --sha=* | --sh=*)
579 sharedstatedir="$ac_optarg" ;;
580
581 -site | --site | --sit)
582 ac_prev=site ;;
583 -site=* | --site=* | --sit=*)
584 site="$ac_optarg" ;;
585
586 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
587 ac_prev=srcdir ;;
588 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
589 srcdir="$ac_optarg" ;;
590
591 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
592 | --syscon | --sysco | --sysc | --sys | --sy)
593 ac_prev=sysconfdir ;;
594 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
595 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
596 sysconfdir="$ac_optarg" ;;
597
598 -target | --target | --targe | --targ | --tar | --ta | --t)
599 ac_prev=target ;;
600 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
601 target="$ac_optarg" ;;
602
603 -v | -verbose | --verbose | --verbos | --verbo | --verb)
604 verbose=yes ;;
605
606 -version | --version | --versio | --versi | --vers)
e8482f24 607 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
608 exit 0 ;;
609
610 -with-* | --with-*)
611 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
612 # Reject names that are not valid shell variable names.
613 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
614 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
615 fi
616 ac_package=`echo $ac_package| sed 's/-/_/g'`
617 case "$ac_option" in
618 *=*) ;;
619 *) ac_optarg=yes ;;
620 esac
621 eval "with_${ac_package}='$ac_optarg'" ;;
622
623 -without-* | --without-*)
624 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
625 # Reject names that are not valid shell variable names.
626 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
627 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
628 fi
629 ac_package=`echo $ac_package| sed 's/-/_/g'`
630 eval "with_${ac_package}=no" ;;
631
632 --x)
633 # Obsolete; use --with-x.
634 with_x=yes ;;
635
636 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
637 | --x-incl | --x-inc | --x-in | --x-i)
638 ac_prev=x_includes ;;
639 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
640 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
641 x_includes="$ac_optarg" ;;
642
643 -x-libraries | --x-libraries | --x-librarie | --x-librari \
644 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
645 ac_prev=x_libraries ;;
646 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
647 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
648 x_libraries="$ac_optarg" ;;
649
650 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
651 ;;
652
653 *)
654 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
655 echo "configure: warning: $ac_option: invalid host type" 1>&2
656 fi
657 if test "x$nonopt" != xNONE; then
658 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
659 fi
660 nonopt="$ac_option"
661 ;;
662
663 esac
664done
665
666if test -n "$ac_prev"; then
667 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
668fi
669
670trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
671
672# File descriptor usage:
673# 0 standard input
674# 1 file creation
675# 2 errors and warnings
676# 3 some systems may open it to /dev/tty
677# 4 used on the Kubota Titan
678# 6 checking for... messages and results
679# 5 compiler messages saved in config.log
680if test "$silent" = yes; then
681 exec 6>/dev/null
682else
683 exec 6>&1
684fi
685exec 5>./config.log
686
687echo "\
688This file contains any messages produced by compilers while
689running configure, to aid debugging if configure makes a mistake.
690" 1>&5
691
692# Strip out --no-create and --no-recursion so they do not pile up.
693# Also quote any args containing shell metacharacters.
694ac_configure_args=
695for ac_arg
696do
697 case "$ac_arg" in
698 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
699 | --no-cr | --no-c) ;;
700 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
701 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
702 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
703 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
704 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
705 esac
706done
707
708# NLS nuisances.
709# Only set these to C if already set. These must not be set unconditionally
710# because not all systems understand e.g. LANG=C (notably SCO).
711# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
712# Non-C LC_CTYPE values break the ctype check.
713if test "${LANG+set}" = set; then LANG=C; export LANG; fi
714if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
715if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
716if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
717
718# confdefs.h avoids OS command line length limits that DEFS can exceed.
719rm -rf conftest* confdefs.h
720# AIX cpp loses on an empty file, so make sure it contains at least a newline.
721echo > confdefs.h
722
723# A filename unique to this package, relative to the directory that
724# configure is in, which we can look for to find out if srcdir is correct.
725ac_unique_file=wx-config.in
726
727# Find the source files, if location was not specified.
728if test -z "$srcdir"; then
729 ac_srcdir_defaulted=yes
730 # Try the directory containing this script, then its parent.
731 ac_prog=$0
732 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
733 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
734 srcdir=$ac_confdir
735 if test ! -r $srcdir/$ac_unique_file; then
736 srcdir=..
737 fi
738else
739 ac_srcdir_defaulted=no
740fi
741if test ! -r $srcdir/$ac_unique_file; then
742 if test "$ac_srcdir_defaulted" = yes; then
743 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
744 else
745 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
746 fi
747fi
748srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
749
750# Prefer explicitly selected file to automatically selected ones.
751if test -z "$CONFIG_SITE"; then
752 if test "x$prefix" != xNONE; then
753 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
754 else
755 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
756 fi
757fi
758for ac_site_file in $CONFIG_SITE; do
759 if test -r "$ac_site_file"; then
760 echo "loading site script $ac_site_file"
761 . "$ac_site_file"
762 fi
763done
764
765if test -r "$cache_file"; then
766 echo "loading cache $cache_file"
767 . $cache_file
768else
769 echo "creating cache $cache_file"
770 > $cache_file
771fi
772
773ac_ext=c
774# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775ac_cpp='$CPP $CPPFLAGS'
776ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778cross_compiling=$ac_cv_prog_cc_cross
779
780ac_exeext=
781ac_objext=o
782if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
783 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
784 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
785 ac_n= ac_c='
786' ac_t=' '
787 else
788 ac_n=-n ac_c= ac_t=
789 fi
790else
791 ac_n= ac_c='\c' ac_t=
792fi
793
794
795
7c66a493
VZ
796ac_aux_dir=
797for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
798 if test -f $ac_dir/install-sh; then
799 ac_aux_dir=$ac_dir
800 ac_install_sh="$ac_aux_dir/install-sh -c"
801 break
802 elif test -f $ac_dir/install.sh; then
803 ac_aux_dir=$ac_dir
804 ac_install_sh="$ac_aux_dir/install.sh -c"
805 break
806 fi
807done
808if test -z "$ac_aux_dir"; then
809 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
810fi
811ac_config_guess=$ac_aux_dir/config.guess
812ac_config_sub=$ac_aux_dir/config.sub
813ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
814
815
816# Do some error checking and defaulting for the host and target type.
817# The inputs are:
818# configure --host=HOST --target=TARGET --build=BUILD NONOPT
819#
820# The rules are:
821# 1. You are not allowed to specify --host, --target, and nonopt at the
822# same time.
823# 2. Host defaults to nonopt.
824# 3. If nonopt is not specified, then host defaults to the current host,
825# as determined by config.guess.
826# 4. Target and build default to nonopt.
827# 5. If nonopt is not specified, then target and build default to host.
828
829# The aliases save the names the user supplied, while $host etc.
830# will get canonicalized.
831case $host---$target---$nonopt in
832NONE---*---* | *---NONE---* | *---*---NONE) ;;
833*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
834esac
835
836
837# Make sure we can run config.sub.
838if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
839else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
840fi
841
842echo $ac_n "checking host system type""... $ac_c" 1>&6
422107f9 843echo "configure:844: checking host system type" >&5
7c66a493
VZ
844
845host_alias=$host
846case "$host_alias" in
847NONE)
848 case $nonopt in
849 NONE)
850 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
851 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
852 fi ;;
853 *) host_alias=$nonopt ;;
854 esac ;;
855esac
856
857host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
858host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
859host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
860host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
861echo "$ac_t""$host" 1>&6
862
863echo $ac_n "checking target system type""... $ac_c" 1>&6
422107f9 864echo "configure:865: checking target system type" >&5
7c66a493
VZ
865
866target_alias=$target
867case "$target_alias" in
868NONE)
869 case $nonopt in
870 NONE) target_alias=$host_alias ;;
871 *) target_alias=$nonopt ;;
872 esac ;;
873esac
874
875target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
876target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
877target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
878target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
879echo "$ac_t""$target" 1>&6
880
881echo $ac_n "checking build system type""... $ac_c" 1>&6
422107f9 882echo "configure:883: checking build system type" >&5
7c66a493
VZ
883
884build_alias=$build
885case "$build_alias" in
886NONE)
887 case $nonopt in
888 NONE) build_alias=$host_alias ;;
889 *) build_alias=$nonopt ;;
890 esac ;;
891esac
892
893build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
894build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
895build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
896build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
897echo "$ac_t""$build" 1>&6
898
899test "$host_alias" != "$target_alias" &&
900 test "$program_prefix$program_suffix$program_transform_name" = \
901 NONENONEs,x,x, &&
902 program_prefix=${target_alias}-
903
904
10f2d63a
VZ
905
906WX_MAJOR_VERSION_NUMBER=2
907WX_MINOR_VERSION_NUMBER=1
cc977e5f 908WX_RELEASE_NUMBER=14
10f2d63a
VZ
909
910WX_INTERFACE_AGE=0
911WX_BINARY_AGE=0
912
913WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
914
915WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
916WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
917WX_REVISION=$WX_INTERFACE_AGE
918WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
919
920
921USE_UNIX=1
922USE_WIN32=0
b12915c1
VZ
923USE_BEOS=0
924
10f2d63a
VZ
925USE_LINUX=
926USE_SGI=
927USE_HPUX=
928USE_SYSV=
929USE_SVR4=
930USE_AIX=
931USE_SUN=
932USE_SOLARIS=
933USE_SUNOS=
934USE_ALPHA=
935USE_OSF=
936USE_BSD=
937USE_FREEBSD=
938USE_VMS=
939USE_ULTRIX=
940USE_CYGWIN=
941USE_MINGW=
942USE_DATA_GENERAL=
943
ab9b9eab
VZ
944NEEDS_D_REENTRANT_FOR_R_FUNCS=0
945
e07802fc 946ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
947
948DEFAULT_wxUSE_GTK=0
949DEFAULT_wxUSE_MOTIF=0
950DEFAULT_wxUSE_MSW=0
951DEFAULT_wxUSE_WINE=0
e07802fc 952DEFAULT_wxUSE_PM=0
10f2d63a
VZ
953
954DEFAULT_DEFAULT_wxUSE_GTK=0
955DEFAULT_DEFAULT_wxUSE_MOTIF=0
956DEFAULT_DEFAULT_wxUSE_MSW=0
957DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 958DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 959
d6a55c4b
VZ
960PROGRAM_EXT=
961
10f2d63a
VZ
962case "${host}" in
963 *-hp-hpux* )
964 USE_HPUX=1
965 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 966 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
967 cat >> confdefs.h <<\EOF
968#define __HPUX__ 1
969EOF
970
971 ;;
972 *-*-linux* )
973 USE_LINUX=1
974 cat >> confdefs.h <<\EOF
975#define __LINUX__ 1
976EOF
977
978 TMP=`uname -m`
979 if test "x$TMP" = "xalpha"; then
980 USE_ALPHA=1
981 cat >> confdefs.h <<\EOF
982#define __ALPHA__ 1
983EOF
984
985 fi
986 DEFAULT_DEFAULT_wxUSE_GTK=1
987 ;;
988 *-*-irix5* | *-*-irix6* )
989 USE_SGI=1
990 USE_SVR4=1
991 cat >> confdefs.h <<\EOF
992#define __SGI__ 1
993EOF
994
995 cat >> confdefs.h <<\EOF
996#define __SVR4__ 1
997EOF
998
999 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1000 ;;
1001 *-*-solaris2* )
1002 USE_SUN=1
1003 USE_SOLARIS=1
1004 USE_SVR4=1
1005 cat >> confdefs.h <<\EOF
1006#define __SUN__ 1
1007EOF
1008
1009 cat >> confdefs.h <<\EOF
1010#define __SOLARIS__ 1
1011EOF
1012
1013 cat >> confdefs.h <<\EOF
1014#define __SVR4__ 1
1015EOF
1016
1017 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1018 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1019 ;;
1020 *-*-sunos4* )
1021 USE_SUN=1
1022 USE_SUNOS=1
1023 USE_BSD=1
1024 cat >> confdefs.h <<\EOF
1025#define __SUN__ 1
1026EOF
1027
1028 cat >> confdefs.h <<\EOF
1029#define __SUNOS__ 1
1030EOF
1031
1032 cat >> confdefs.h <<\EOF
1033#define __BSD__ 1
1034EOF
1035
1036 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1037 ;;
1038 *-*-freebsd* | *-*-netbsd*)
1039 USE_BSD=1
1040 USE_FREEBSD=1
1041 cat >> confdefs.h <<\EOF
1042#define __FREEBSD__ 1
1043EOF
1044
1045 cat >> confdefs.h <<\EOF
1046#define __BSD__ 1
1047EOF
1048
1049 DEFAULT_DEFAULT_wxUSE_GTK=1
1050 ;;
1051 *-*-osf* )
1052 USE_ALPHA=1
1053 USE_OSF=1
1054 cat >> confdefs.h <<\EOF
1055#define __ALPHA__ 1
1056EOF
1057
1058 cat >> confdefs.h <<\EOF
1059#define __OSF__ 1
1060EOF
1061
1062 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1063 ;;
1064 *-*-dgux5* )
1065 USE_ALPHA=1
1066 USE_SVR4=1
1067 cat >> confdefs.h <<\EOF
1068#define __ALPHA__ 1
1069EOF
1070
1071 cat >> confdefs.h <<\EOF
1072#define __SVR4__ 1
1073EOF
1074
1075 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1076 ;;
1077 *-*-sysv5* )
1078 USE_SYSV=1
1079 USE_SVR4=1
1080 cat >> confdefs.h <<\EOF
1081#define __SYSV__ 1
1082EOF
1083
1084 cat >> confdefs.h <<\EOF
1085#define __SVR4__ 1
1086EOF
1087
1088 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1089 ;;
1090 *-*-aix* )
1091 USE_AIX=1
1092 USE_SYSV=1
1093 USE_SVR4=1
1094 cat >> confdefs.h <<\EOF
1095#define __AIX__ 1
1096EOF
1097
1098 cat >> confdefs.h <<\EOF
1099#define __SYSV__ 1
1100EOF
1101
1102 cat >> confdefs.h <<\EOF
1103#define __SVR4__ 1
1104EOF
1105
1106 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1107 ;;
1108
7eef8db2 1109 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1110 USE_UNIX=0
1111 USE_WIN32=1
1112 cat >> confdefs.h <<\EOF
1113#define __WIN32__ 1
1114EOF
1115
1116 cat >> confdefs.h <<\EOF
1117#define __WIN95__ 1
1118EOF
1119
1120 cat >> confdefs.h <<\EOF
1121#define __WINDOWS__ 1
1122EOF
1123
1124 cat >> confdefs.h <<\EOF
1125#define __GNUWIN32__ 1
1126EOF
1127
1128 cat >> confdefs.h <<\EOF
1129#define STRICT 1
1130EOF
1131
1132 cat >> confdefs.h <<\EOF
1133#define WINVER 0x0400
1134EOF
1135
cf27ef00 1136 PROGRAM_EXT=".exe"
10f2d63a
VZ
1137 DEFAULT_DEFAULT_wxUSE_MSW=1
1138 ;;
1139
1140 *-pc-os2_emx )
1141 cat >> confdefs.h <<\EOF
1142#define __EMX__ 1
1143EOF
1144
cf27ef00 1145 PROGRAM_EXT=".exe"
e07802fc 1146 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1147 ;;
1148
b12915c1
VZ
1149 *-*-beos* )
1150 USE_BEOS=1
1151 cat >> confdefs.h <<\EOF
1152#define __BEOS__ 1
1153EOF
1154
1155 ;;
1156
10f2d63a
VZ
1157 *)
1158 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1159esac
1160
1161if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1162 wxUSE_UNIX=yes
1163 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1164#define __UNIX__ 1
1165EOF
1166
b12915c1
VZ
1167
1168 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1169 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1170fi
1171
1172if test "$USE_BEOS" = 1; then
1173 SRC_SUBDIRS="$SRC_SUBDIRS be"
1174 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1175fi
1176
1177if test "$USE_LINUX" = 1; then
1178 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
422107f9 1179echo "configure:1180: checking for gettext in -lc" >&5
10f2d63a
VZ
1180ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1181if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1183else
1184 ac_save_LIBS="$LIBS"
1185LIBS="-lc $LIBS"
1186cat > conftest.$ac_ext <<EOF
422107f9 1187#line 1188 "configure"
10f2d63a
VZ
1188#include "confdefs.h"
1189/* Override any gcc2 internal prototype to avoid an error. */
1190/* We use char because int might match the return type of a gcc2
1191 builtin and then its argument prototype would still apply. */
1192char gettext();
1193
1194int main() {
1195gettext()
1196; return 0; }
1197EOF
422107f9 1198if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1199 rm -rf conftest*
1200 eval "ac_cv_lib_$ac_lib_var=yes"
1201else
1202 echo "configure: failed program was:" >&5
1203 cat conftest.$ac_ext >&5
1204 rm -rf conftest*
1205 eval "ac_cv_lib_$ac_lib_var=no"
1206fi
1207rm -f conftest*
1208LIBS="$ac_save_LIBS"
1209
1210fi
1211if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1212 echo "$ac_t""yes" 1>&6
1213 cat >> confdefs.h <<\EOF
1214#define wxHAVE_GLIBC2 1
1215EOF
1216
1217else
1218 echo "$ac_t""no" 1>&6
1219fi
1220
1221fi
1222
1223
1224
1225
1226 wx_arg_cache_file="configarg.cache"
1227 echo "loading argument cache $wx_arg_cache_file"
1228 rm -f ${wx_arg_cache_file}.tmp
1229 touch ${wx_arg_cache_file}.tmp
1230 touch ${wx_arg_cache_file}
1231
1232
1233DEBUG_CONFIGURE=0
1234if test $DEBUG_CONFIGURE = 1; then
1235 DEFAULT_wxUSE_THREADS=yes
1236
1237 DEFAULT_wxUSE_SHARED=yes
00cf1208 1238 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1239 DEFAULT_wxUSE_OPTIMISE=yes
1240 DEFAULT_wxUSE_PROFILE=no
1241 DEFAULT_wxUSE_NO_DEPS=no
1242 DEFAULT_wxUSE_NO_RTTI=no
1243 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1244 DEFAULT_wxUSE_PERMISSIVE=no
1245 DEFAULT_wxUSE_DEBUG_FLAG=yes
1246 DEFAULT_wxUSE_DEBUG_INFO=yes
1247 DEFAULT_wxUSE_DEBUG_GDB=yes
1248 DEFAULT_wxUSE_MEM_TRACING=no
1249 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1250 DEFAULT_wxUSE_DMALLOC=no
1251 DEFAULT_wxUSE_APPLE_IEEE=no
1252
1253 DEFAULT_wxUSE_LOG=yes
1254
1255 DEFAULT_wxUSE_GUI=yes
1256
1257 DEFAULT_wxUSE_ZLIB=no
1258 DEFAULT_wxUSE_LIBPNG=no
1259 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1260 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1261 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1262 DEFAULT_wxUSE_OPENGL=no
10f2d63a
VZ
1263
1264 DEFAULT_wxUSE_STD_IOSTREAM=no
1265 DEFAULT_wxUSE_FILE=no
1266 DEFAULT_wxUSE_TEXTFILE=no
1267 DEFAULT_wxUSE_TIMEDATE=no
1268 DEFAULT_wxUSE_WAVE=no
1269 DEFAULT_wxUSE_INTL=no
1270 DEFAULT_wxUSE_CONFIG=no
1271 DEFAULT_wxUSE_STREAMS=no
1272 DEFAULT_wxUSE_SOCKETS=no
1273 DEFAULT_wxUSE_DIALUP_MANAGER=no
1274 DEFAULT_wxUSE_SERIAL=no
1275 DEFAULT_wxUSE_JOYSTICK=no
1276 DEFAULT_wxUSE_DYNLIB_CLASS=no
1277 DEFAULT_wxUSE_LONGLONG=no
1278
1279 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1280 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1281 DEFAULT_wxUSE_POSTSCRIPT=no
1282
1283 DEFAULT_wxUSE_X_RESOURCES=no
1284 DEFAULT_wxUSE_CLIPBOARD=no
1285 DEFAULT_wxUSE_TOOLTIPS=no
1286 DEFAULT_wxUSE_DRAG_AND_DROP=no
1287 DEFAULT_wxUSE_SPLINES=no
1288
1289 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1290 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1291 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1292
1293 DEFAULT_wxUSE_PROLOGIO=no
1294 DEFAULT_wxUSE_RESOURCES=no
1295 DEFAULT_wxUSE_CONSTRAINTS=no
1296 DEFAULT_wxUSE_IPC=no
1297 DEFAULT_wxUSE_HELP=no
1298 DEFAULT_wxUSE_WXTREE=no
1299 DEFAULT_wxUSE_METAFILE=no
1300
1301 DEFAULT_wxUSE_COMMONDLGS=no
1302 DEFAULT_wxUSE_DIRDLG=no
1303 DEFAULT_wxUSE_TEXTDLG=no
1304 DEFAULT_wxUSE_STARTUP_TIPS=no
1305 DEFAULT_wxUSE_PROGRESSDLG=no
1306 DEFAULT_wxUSE_MINIFRAME=no
1307 DEFAULT_wxUSE_HTML=no
24528b0c 1308 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1309 DEFAULT_wxUSE_FS_INET=no
1310 DEFAULT_wxUSE_FS_ZIP=no
1311 DEFAULT_wxUSE_BUSYINFO=no
1312 DEFAULT_wxUSE_ZIPSTREAM=no
1313 DEFAULT_wxUSE_VALIDATORS=yes
1314
1315 DEFAULT_wxUSE_ACCEL=no
1316 DEFAULT_wxUSE_CARET=no
1317 DEFAULT_wxUSE_BMPBUTTON=no
1318 DEFAULT_wxUSE_CHECKBOX=no
1319 DEFAULT_wxUSE_CHECKLST=no
1320 DEFAULT_wxUSE_CHOICE=yes
1321 DEFAULT_wxUSE_COMBOBOX=no
1322 DEFAULT_wxUSE_GAUGE=no
1323 DEFAULT_wxUSE_GRID=no
1324 DEFAULT_wxUSE_NEW_GRID=no
1325 DEFAULT_wxUSE_IMAGLIST=no
1326 DEFAULT_wxUSE_LISTBOX=no
1327 DEFAULT_wxUSE_LISTCTRL=no
1328 DEFAULT_wxUSE_NOTEBOOK=no
9b33fe02 1329 DEFAULT_wxUSE_PLOT=no
10f2d63a
VZ
1330 DEFAULT_wxUSE_RADIOBOX=no
1331 DEFAULT_wxUSE_RADIOBTN=no
1332 DEFAULT_wxUSE_SASH=no
1333 DEFAULT_wxUSE_SCROLLBAR=no
1334 DEFAULT_wxUSE_SLIDER=no
1335 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1336 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1337 DEFAULT_wxUSE_SPLITTER=no
1338 DEFAULT_wxUSE_STATBMP=no
1339 DEFAULT_wxUSE_STATBOX=no
1340 DEFAULT_wxUSE_STATLINE=no
1341 DEFAULT_wxUSE_STATUSBAR=yes
1342 DEFAULT_wxUSE_TABDIALOG=no
1343 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1344 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1345 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1346 DEFAULT_wxUSE_TREECTRL=no
1347
1348 DEFAULT_wxUSE_UNICODE=no
1349 DEFAULT_wxUSE_WCSRTOMBS=no
1350
1351 DEFAULT_wxUSE_GIF=no
1352 DEFAULT_wxUSE_PCX=no
1353 DEFAULT_wxUSE_PNM=no
1354else
1355 DEFAULT_wxUSE_THREADS=yes
1356
1357 DEFAULT_wxUSE_SHARED=yes
00cf1208 1358 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1359 DEFAULT_wxUSE_OPTIMISE=yes
1360 DEFAULT_wxUSE_PROFILE=no
1361 DEFAULT_wxUSE_NO_DEPS=no
1362 DEFAULT_wxUSE_NO_RTTI=no
1363 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1364 DEFAULT_wxUSE_PERMISSIVE=no
1365 DEFAULT_wxUSE_DEBUG_FLAG=no
1366 DEFAULT_wxUSE_DEBUG_INFO=no
1367 DEFAULT_wxUSE_DEBUG_GDB=no
1368 DEFAULT_wxUSE_MEM_TRACING=no
1369 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1370 DEFAULT_wxUSE_DMALLOC=no
1371 DEFAULT_wxUSE_APPLE_IEEE=yes
1372
1373 DEFAULT_wxUSE_LOG=yes
1374
1375 DEFAULT_wxUSE_GUI=yes
1376
1377 DEFAULT_wxUSE_ZLIB=yes
1378 DEFAULT_wxUSE_LIBPNG=yes
1379 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1380 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1381 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1382 DEFAULT_wxUSE_OPENGL=no
10f2d63a
VZ
1383
1384 DEFAULT_wxUSE_STD_IOSTREAM=no
1385 DEFAULT_wxUSE_FILE=yes
1386 DEFAULT_wxUSE_TEXTFILE=yes
1387 DEFAULT_wxUSE_TIMEDATE=yes
1388 DEFAULT_wxUSE_WAVE=no
1389 DEFAULT_wxUSE_INTL=yes
1390 DEFAULT_wxUSE_CONFIG=yes
1391 DEFAULT_wxUSE_STREAMS=yes
1392 DEFAULT_wxUSE_SOCKETS=yes
1393 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1394 DEFAULT_wxUSE_SERIAL=yes
1395 DEFAULT_wxUSE_JOYSTICK=yes
1396 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1397 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1398
1399 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1400 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1401 DEFAULT_wxUSE_POSTSCRIPT=yes
1402
1403 DEFAULT_wxUSE_X_RESOURCES=no
1404 DEFAULT_wxUSE_CLIPBOARD=yes
1405 DEFAULT_wxUSE_TOOLTIPS=yes
1406 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1407 DEFAULT_wxUSE_SPLINES=yes
1408
1409 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1410 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1411 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1412
1413 DEFAULT_wxUSE_PROLOGIO=yes
1414 DEFAULT_wxUSE_RESOURCES=yes
1415 DEFAULT_wxUSE_CONSTRAINTS=yes
1416 DEFAULT_wxUSE_IPC=yes
1417 DEFAULT_wxUSE_HELP=yes
1418 DEFAULT_wxUSE_WXTREE=yes
1419 DEFAULT_wxUSE_METAFILE=yes
1420
1421 DEFAULT_wxUSE_COMMONDLGS=yes
1422 DEFAULT_wxUSE_DIRDLG=yes
1423 DEFAULT_wxUSE_TEXTDLG=yes
1424 DEFAULT_wxUSE_STARTUP_TIPS=yes
1425 DEFAULT_wxUSE_PROGRESSDLG=yes
1426 DEFAULT_wxUSE_MINIFRAME=yes
1427 DEFAULT_wxUSE_HTML=yes
24528b0c 1428 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1429 DEFAULT_wxUSE_FS_INET=yes
1430 DEFAULT_wxUSE_FS_ZIP=yes
1431 DEFAULT_wxUSE_BUSYINFO=yes
1432 DEFAULT_wxUSE_ZIPSTREAM=yes
1433 DEFAULT_wxUSE_VALIDATORS=yes
1434
1435 DEFAULT_wxUSE_ACCEL=yes
1436 DEFAULT_wxUSE_CARET=yes
1437 DEFAULT_wxUSE_BMPBUTTON=yes
1438 DEFAULT_wxUSE_CHECKBOX=yes
1439 DEFAULT_wxUSE_CHECKLST=yes
1440 DEFAULT_wxUSE_CHOICE=yes
1441 DEFAULT_wxUSE_COMBOBOX=yes
1442 DEFAULT_wxUSE_GAUGE=yes
1443 DEFAULT_wxUSE_GRID=yes
cc977e5f 1444 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1445 DEFAULT_wxUSE_IMAGLIST=yes
1446 DEFAULT_wxUSE_LISTBOX=yes
1447 DEFAULT_wxUSE_LISTCTRL=yes
1448 DEFAULT_wxUSE_NOTEBOOK=yes
9b33fe02 1449 DEFAULT_wxUSE_PLOT=yes
10f2d63a
VZ
1450 DEFAULT_wxUSE_RADIOBOX=yes
1451 DEFAULT_wxUSE_RADIOBTN=yes
1452 DEFAULT_wxUSE_SASH=yes
1453 DEFAULT_wxUSE_SCROLLBAR=yes
1454 DEFAULT_wxUSE_SLIDER=yes
1455 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1456 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1457 DEFAULT_wxUSE_SPLITTER=yes
1458 DEFAULT_wxUSE_STATBMP=yes
1459 DEFAULT_wxUSE_STATBOX=yes
1460 DEFAULT_wxUSE_STATLINE=yes
1461 DEFAULT_wxUSE_STATUSBAR=yes
1462 DEFAULT_wxUSE_TABDIALOG=no
1463 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1464 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1465 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1466 DEFAULT_wxUSE_TREECTRL=yes
1467
1468 DEFAULT_wxUSE_UNICODE=no
1469 DEFAULT_wxUSE_WCSRTOMBS=no
1470
1471 DEFAULT_wxUSE_GIF=yes
1472 DEFAULT_wxUSE_PCX=yes
1473 DEFAULT_wxUSE_PNM=yes
1474fi
1475
1476
1477
1478for toolkit in `echo $ALL_TOOLKITS`; do
1479 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1480 if test "x$LINE" != x ; then
1481 has_toolkit_in_cache=1
1482 eval "DEFAULT_$LINE"
1483 eval "CACHE_$toolkit=1"
1484 fi
1485done
1486
1487
1488
1489 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
422107f9 1490echo "configure:1491: checking "for --enable-gui"" >&5
10f2d63a
VZ
1491 no_cache=0
1492 # Check whether --enable-gui or --disable-gui was given.
1493if test "${enable_gui+set}" = set; then
1494 enableval="$enable_gui"
1495
1496 if test "$enableval" = yes; then
1497 ac_cv_use_gui='wxUSE_GUI=yes'
1498 else
1499 ac_cv_use_gui='wxUSE_GUI=no'
1500 fi
1501
1502else
1503
1504 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1505 if test "x$LINE" != x ; then
1506 eval "DEFAULT_$LINE"
1507 else
1508 no_cache=1
1509 fi
1510
1511 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1512
1513fi
1514
1515
1516 eval "$ac_cv_use_gui"
1517 if test "$no_cache" != 1; then
1518 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1519 fi
1520
1521 if test "$wxUSE_GUI" = yes; then
1522 echo "$ac_t""yes" 1>&6
1523 else
1524 echo "$ac_t""no" 1>&6
1525 fi
1526
1527
b12915c1 1528if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1529
1530# Check whether --with-gtk or --without-gtk was given.
1531if test "${with_gtk+set}" = set; then
1532 withval="$with_gtk"
1533 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1534fi
1535
1536# Check whether --with-motif or --without-motif was given.
1537if test "${with_motif+set}" = set; then
1538 withval="$with_motif"
1539 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1540fi
1541
1542# Check whether --with-wine or --without-wine was given.
1543if test "${with_wine+set}" = set; then
1544 withval="$with_wine"
1545 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1546fi
1547
1548# Check whether --with-cygwin or --without-cygwin was given.
1549if test "${with_cygwin+set}" = set; then
1550 withval="$with_cygwin"
1551 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1552fi
1553
1554# Check whether --with-mingw or --without-mingw was given.
1555if test "${with_mingw+set}" = set; then
1556 withval="$with_mingw"
1557 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1558fi
1559
e07802fc
VZ
1560# Check whether --with-pm or --without-pm was given.
1561if test "${with_pm+set}" = set; then
1562 withval="$with_pm"
1563 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1564fi
1565
10f2d63a
VZ
1566
1567# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1568if test "${with_gtk_prefix+set}" = set; then
1569 withval="$with_gtk_prefix"
1570 gtk_config_prefix="$withval"
1571else
1572 gtk_config_prefix=""
1573fi
1574
1575# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1576if test "${with_gtk_exec_prefix+set}" = set; then
1577 withval="$with_gtk_exec_prefix"
1578 gtk_config_exec_prefix="$withval"
1579else
1580 gtk_config_exec_prefix=""
1581fi
1582
1583
1584
b12915c1 1585 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
422107f9 1586echo "configure:1587: checking "for --with-libpng"" >&5
10f2d63a 1587 no_cache=0
b12915c1
VZ
1588 # Check whether --with-libpng or --without-libpng was given.
1589if test "${with_libpng+set}" = set; then
1590 withval="$with_libpng"
10f2d63a
VZ
1591
1592 if test "$withval" = yes; then
b12915c1 1593 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1594 elif test "$withval" = no; then
b12915c1 1595 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1596 elif test "$withval" = sys; then
1597 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1598 else
1599 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1600 fi
1601
1602else
1603
b12915c1 1604 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1605 if test "x$LINE" != x ; then
1606 eval "DEFAULT_$LINE"
1607 else
1608 no_cache=1
1609 fi
1610
b12915c1 1611 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1612
1613fi
1614
1615
b12915c1 1616 eval "$ac_cv_use_libpng"
10f2d63a 1617 if test "$no_cache" != 1; then
b12915c1 1618 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1619 fi
1620
b12915c1 1621 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a 1622 echo "$ac_t""yes" 1>&6
422107f9 1623 elif test "$wxUSE_LIBPNG" = no; then
10f2d63a 1624 echo "$ac_t""no" 1>&6
422107f9
VZ
1625 elif test "$wxUSE_LIBPNG" = sys; then
1626 echo "$ac_t""system version" 1>&6
1627 else
1628 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1629 fi
1630
1631
b12915c1 1632 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
422107f9 1633echo "configure:1634: checking "for --with-libjpeg"" >&5
10f2d63a 1634 no_cache=0
b12915c1
VZ
1635 # Check whether --with-libjpeg or --without-libjpeg was given.
1636if test "${with_libjpeg+set}" = set; then
1637 withval="$with_libjpeg"
10f2d63a
VZ
1638
1639 if test "$withval" = yes; then
b12915c1 1640 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1641 elif test "$withval" = no; then
b12915c1 1642 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1643 elif test "$withval" = sys; then
1644 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1645 else
1646 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1647 fi
1648
1649else
1650
b12915c1 1651 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1652 if test "x$LINE" != x ; then
1653 eval "DEFAULT_$LINE"
1654 else
1655 no_cache=1
1656 fi
1657
b12915c1 1658 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1659
1660fi
1661
1662
b12915c1 1663 eval "$ac_cv_use_libjpeg"
10f2d63a 1664 if test "$no_cache" != 1; then
b12915c1 1665 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1666 fi
1667
b12915c1 1668 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a 1669 echo "$ac_t""yes" 1>&6
422107f9 1670 elif test "$wxUSE_LIBJPEG" = no; then
10f2d63a 1671 echo "$ac_t""no" 1>&6
422107f9
VZ
1672 elif test "$wxUSE_LIBJPEG" = sys; then
1673 echo "$ac_t""system version" 1>&6
1674 else
1675 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1676 fi
1677
1678
b12915c1 1679 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
422107f9 1680echo "configure:1681: checking "for --with-libtiff"" >&5
10f2d63a 1681 no_cache=0
b12915c1
VZ
1682 # Check whether --with-libtiff or --without-libtiff was given.
1683if test "${with_libtiff+set}" = set; then
1684 withval="$with_libtiff"
10f2d63a
VZ
1685
1686 if test "$withval" = yes; then
b12915c1 1687 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1688 elif test "$withval" = no; then
b12915c1 1689 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1690 elif test "$withval" = sys; then
1691 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1692 else
1693 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1694 fi
1695
1696else
1697
b12915c1 1698 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1699 if test "x$LINE" != x ; then
1700 eval "DEFAULT_$LINE"
1701 else
1702 no_cache=1
1703 fi
1704
b12915c1 1705 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1706
1707fi
1708
1709
b12915c1 1710 eval "$ac_cv_use_libtiff"
10f2d63a 1711 if test "$no_cache" != 1; then
b12915c1 1712 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1713 fi
1714
b12915c1 1715 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a 1716 echo "$ac_t""yes" 1>&6
0dcf9893 1717 elif test "$wxUSE_LIBTIFF" = no; then
10f2d63a 1718 echo "$ac_t""no" 1>&6
0dcf9893
VZ
1719 elif test "$wxUSE_LIBTIFF" = sys; then
1720 echo "$ac_t""system version" 1>&6
1721 else
1722 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1723 fi
1724
1725
b12915c1 1726 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
0dcf9893 1727echo "configure:1728: checking "for --with-opengl"" >&5
10f2d63a 1728 no_cache=0
b12915c1
VZ
1729 # Check whether --with-opengl or --without-opengl was given.
1730if test "${with_opengl+set}" = set; then
1731 withval="$with_opengl"
10f2d63a
VZ
1732
1733 if test "$withval" = yes; then
b12915c1 1734 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1735 else
b12915c1 1736 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1737 fi
1738
1739else
1740
b12915c1 1741 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1742 if test "x$LINE" != x ; then
1743 eval "DEFAULT_$LINE"
1744 else
1745 no_cache=1
1746 fi
1747
b12915c1 1748 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1749
1750fi
1751
1752
b12915c1 1753 eval "$ac_cv_use_opengl"
10f2d63a 1754 if test "$no_cache" != 1; then
b12915c1 1755 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1756 fi
1757
b12915c1 1758 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1759 echo "$ac_t""yes" 1>&6
1760 else
1761 echo "$ac_t""no" 1>&6
1762 fi
1763
1764
b12915c1
VZ
1765fi
1766
1767
1768 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
0dcf9893 1769echo "configure:1770: checking "for --with-dmalloc"" >&5
c7a2bf27 1770 no_cache=0
b12915c1
VZ
1771 # Check whether --with-dmalloc or --without-dmalloc was given.
1772if test "${with_dmalloc+set}" = set; then
1773 withval="$with_dmalloc"
c7a2bf27
RR
1774
1775 if test "$withval" = yes; then
b12915c1 1776 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1777 else
b12915c1 1778 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1779 fi
1780
1781else
1782
b12915c1 1783 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1784 if test "x$LINE" != x ; then
1785 eval "DEFAULT_$LINE"
1786 else
1787 no_cache=1
1788 fi
1789
b12915c1 1790 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1791
1792fi
1793
1794
b12915c1 1795 eval "$ac_cv_use_dmalloc"
c7a2bf27 1796 if test "$no_cache" != 1; then
b12915c1 1797 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1798 fi
1799
b12915c1 1800 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1801 echo "$ac_t""yes" 1>&6
1802 else
1803 echo "$ac_t""no" 1>&6
1804 fi
1805
1806
b12915c1 1807 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
0dcf9893 1808echo "configure:1809: checking "for --with-zlib"" >&5
10f2d63a 1809 no_cache=0
b12915c1
VZ
1810 # Check whether --with-zlib or --without-zlib was given.
1811if test "${with_zlib+set}" = set; then
1812 withval="$with_zlib"
10f2d63a
VZ
1813
1814 if test "$withval" = yes; then
b12915c1 1815 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 1816 elif test "$withval" = no; then
b12915c1 1817 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
1818 elif test "$withval" = sys; then
1819 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1820 else
1821 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1822 fi
1823
1824else
1825
b12915c1 1826 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1827 if test "x$LINE" != x ; then
1828 eval "DEFAULT_$LINE"
1829 else
1830 no_cache=1
1831 fi
1832
b12915c1 1833 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1834
1835fi
1836
1837
b12915c1 1838 eval "$ac_cv_use_zlib"
10f2d63a 1839 if test "$no_cache" != 1; then
b12915c1 1840 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1841 fi
1842
b12915c1 1843 if test "$wxUSE_ZLIB" = yes; then
10f2d63a 1844 echo "$ac_t""yes" 1>&6
422107f9 1845 elif test "$wxUSE_ZLIB" = no; then
bdad4e7e 1846 echo "$ac_t""no" 1>&6
422107f9
VZ
1847 elif test "$wxUSE_ZLIB" = sys; then
1848 echo "$ac_t""system version" 1>&6
1849 else
1850 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1851 fi
1852
1853
1854 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
0dcf9893 1855echo "configure:1856: checking "for --with-odbc"" >&5
10f2d63a
VZ
1856 no_cache=0
1857 # Check whether --with-odbc or --without-odbc was given.
1858if test "${with_odbc+set}" = set; then
1859 withval="$with_odbc"
1860
1861 if test "$withval" = yes; then
1862 ac_cv_use_odbc='wxUSE_ODBC=yes'
1863 else
1864 ac_cv_use_odbc='wxUSE_ODBC=no'
1865 fi
1866
1867else
1868
1869 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1870 if test "x$LINE" != x ; then
1871 eval "DEFAULT_$LINE"
1872 else
1873 no_cache=1
1874 fi
1875
1876 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1877
1878fi
1879
1880
1881 eval "$ac_cv_use_odbc"
1882 if test "$no_cache" != 1; then
1883 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1884 fi
1885
1886 if test "$wxUSE_ODBC" = yes; then
1887 echo "$ac_t""yes" 1>&6
1888 else
1889 echo "$ac_t""no" 1>&6
1890 fi
1891
1892
1893
1894
1895
1896 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
0dcf9893 1897echo "configure:1898: checking "for --enable-shared"" >&5
10f2d63a
VZ
1898 no_cache=0
1899 # Check whether --enable-shared or --disable-shared was given.
1900if test "${enable_shared+set}" = set; then
1901 enableval="$enable_shared"
1902
1903 if test "$enableval" = yes; then
1904 ac_cv_use_shared='wxUSE_SHARED=yes'
1905 else
1906 ac_cv_use_shared='wxUSE_SHARED=no'
1907 fi
1908
1909else
1910
1911 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1912 if test "x$LINE" != x ; then
1913 eval "DEFAULT_$LINE"
1914 else
1915 no_cache=1
1916 fi
1917
1918 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1919
1920fi
1921
1922
1923 eval "$ac_cv_use_shared"
1924 if test "$no_cache" != 1; then
1925 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1926 fi
1927
1928 if test "$wxUSE_SHARED" = yes; then
1929 echo "$ac_t""yes" 1>&6
1930 else
1931 echo "$ac_t""no" 1>&6
1932 fi
1933
1934
00cf1208 1935 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
0dcf9893 1936echo "configure:1937: checking "for --enable-burnt_name"" >&5
00cf1208
RR
1937 no_cache=0
1938 # Check whether --enable-burnt_name or --disable-burnt_name was given.
1939if test "${enable_burnt_name+set}" = set; then
1940 enableval="$enable_burnt_name"
1941
1942 if test "$enableval" = yes; then
1943 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
1944 else
1945 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
1946 fi
1947
1948else
1949
1950 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
1951 if test "x$LINE" != x ; then
1952 eval "DEFAULT_$LINE"
1953 else
1954 no_cache=1
1955 fi
1956
1957 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
1958
1959fi
1960
1961
1962 eval "$ac_cv_use_burnt_name"
1963 if test "$no_cache" != 1; then
1964 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
1965 fi
1966
1967 if test "$wxUSE_BURNT_NAME" = yes; then
1968 echo "$ac_t""yes" 1>&6
1969 else
1970 echo "$ac_t""no" 1>&6
1971 fi
1972
1973
10f2d63a 1974 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
0dcf9893 1975echo "configure:1976: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1976 no_cache=0
1977 # Check whether --enable-optimise or --disable-optimise was given.
1978if test "${enable_optimise+set}" = set; then
1979 enableval="$enable_optimise"
1980
1981 if test "$enableval" = yes; then
1982 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1983 else
1984 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1985 fi
1986
1987else
1988
1989 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1990 if test "x$LINE" != x ; then
1991 eval "DEFAULT_$LINE"
1992 else
1993 no_cache=1
1994 fi
1995
1996 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1997
1998fi
1999
2000
2001 eval "$ac_cv_use_optimise"
2002 if test "$no_cache" != 1; then
2003 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2004 fi
2005
2006 if test "$wxUSE_OPTIMISE" = yes; then
2007 echo "$ac_t""yes" 1>&6
2008 else
2009 echo "$ac_t""no" 1>&6
2010 fi
2011
2012
2013 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
0dcf9893 2014echo "configure:2015: checking "for --enable-debug"" >&5
10f2d63a
VZ
2015 no_cache=0
2016 # Check whether --enable-debug or --disable-debug was given.
2017if test "${enable_debug+set}" = set; then
2018 enableval="$enable_debug"
2019
2020 if test "$enableval" = yes; then
2021 ac_cv_use_debug='wxUSE_DEBUG=yes'
2022 else
2023 ac_cv_use_debug='wxUSE_DEBUG=no'
2024 fi
2025
2026else
2027
2028 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2029 if test "x$LINE" != x ; then
2030 eval "DEFAULT_$LINE"
2031 else
2032 no_cache=1
2033 fi
2034
2035 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2036
2037fi
2038
2039
2040 eval "$ac_cv_use_debug"
2041 if test "$no_cache" != 1; then
2042 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2043 fi
2044
2045 if test "$wxUSE_DEBUG" = yes; then
2046 echo "$ac_t""yes" 1>&6
2047 else
2048 echo "$ac_t""no" 1>&6
2049 fi
2050
2051
2052if test "$wxUSE_DEBUG" = "yes"; then
2053 DEFAULT_wxUSE_DEBUG_FLAG=yes
2054 DEFAULT_wxUSE_DEBUG_INFO=yes
2055elif test "$wxUSE_DEBUG" = "no"; then
2056 DEFAULT_wxUSE_DEBUG_FLAG=no
2057 DEFAULT_wxUSE_DEBUG_INFO=no
2058fi
2059
2060
2061 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
0dcf9893 2062echo "configure:2063: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2063 no_cache=0
2064 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2065if test "${enable_debug_flag+set}" = set; then
2066 enableval="$enable_debug_flag"
2067
2068 if test "$enableval" = yes; then
2069 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2070 else
2071 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2072 fi
2073
2074else
2075
2076 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2077 if test "x$LINE" != x ; then
2078 eval "DEFAULT_$LINE"
2079 else
2080 no_cache=1
2081 fi
2082
2083 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2084
2085fi
2086
2087
2088 eval "$ac_cv_use_debug_flag"
2089 if test "$no_cache" != 1; then
2090 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2091 fi
2092
2093 if test "$wxUSE_DEBUG_FLAG" = yes; then
2094 echo "$ac_t""yes" 1>&6
2095 else
2096 echo "$ac_t""no" 1>&6
2097 fi
2098
2099
2100 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
0dcf9893 2101echo "configure:2102: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2102 no_cache=0
2103 # Check whether --enable-debug_info or --disable-debug_info was given.
2104if test "${enable_debug_info+set}" = set; then
2105 enableval="$enable_debug_info"
2106
2107 if test "$enableval" = yes; then
2108 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2109 else
2110 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2111 fi
2112
2113else
2114
2115 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2116 if test "x$LINE" != x ; then
2117 eval "DEFAULT_$LINE"
2118 else
2119 no_cache=1
2120 fi
2121
2122 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2123
2124fi
2125
2126
2127 eval "$ac_cv_use_debug_info"
2128 if test "$no_cache" != 1; then
2129 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2130 fi
2131
2132 if test "$wxUSE_DEBUG_INFO" = yes; then
2133 echo "$ac_t""yes" 1>&6
2134 else
2135 echo "$ac_t""no" 1>&6
2136 fi
2137
2138
2139 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
0dcf9893 2140echo "configure:2141: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2141 no_cache=0
2142 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2143if test "${enable_debug_gdb+set}" = set; then
2144 enableval="$enable_debug_gdb"
2145
2146 if test "$enableval" = yes; then
2147 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2148 else
2149 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2150 fi
2151
2152else
2153
2154 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2155 if test "x$LINE" != x ; then
2156 eval "DEFAULT_$LINE"
2157 else
2158 no_cache=1
2159 fi
2160
2161 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2162
2163fi
2164
2165
2166 eval "$ac_cv_use_debug_gdb"
2167 if test "$no_cache" != 1; then
2168 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2169 fi
2170
2171 if test "$wxUSE_DEBUG_GDB" = yes; then
2172 echo "$ac_t""yes" 1>&6
2173 else
2174 echo "$ac_t""no" 1>&6
2175 fi
2176
2177
2178 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
0dcf9893 2179echo "configure:2180: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2180 no_cache=0
2181 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2182if test "${enable_debug_cntxt+set}" = set; then
2183 enableval="$enable_debug_cntxt"
2184
2185 if test "$enableval" = yes; then
2186 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2187 else
2188 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2189 fi
2190
2191else
2192
2193 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2194 if test "x$LINE" != x ; then
2195 eval "DEFAULT_$LINE"
2196 else
2197 no_cache=1
2198 fi
2199
2200 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2201
2202fi
2203
2204
2205 eval "$ac_cv_use_debug_cntxt"
2206 if test "$no_cache" != 1; then
2207 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2208 fi
2209
2210 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2211 echo "$ac_t""yes" 1>&6
2212 else
2213 echo "$ac_t""no" 1>&6
2214 fi
2215
2216
2217 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
0dcf9893 2218echo "configure:2219: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2219 no_cache=0
2220 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2221if test "${enable_mem_tracing+set}" = set; then
2222 enableval="$enable_mem_tracing"
2223
2224 if test "$enableval" = yes; then
2225 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2226 else
2227 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2228 fi
2229
2230else
2231
2232 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2233 if test "x$LINE" != x ; then
2234 eval "DEFAULT_$LINE"
2235 else
2236 no_cache=1
2237 fi
2238
2239 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2240
2241fi
2242
2243
2244 eval "$ac_cv_use_mem_tracing"
2245 if test "$no_cache" != 1; then
2246 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2247 fi
2248
2249 if test "$wxUSE_MEM_TRACING" = yes; then
2250 echo "$ac_t""yes" 1>&6
2251 else
2252 echo "$ac_t""no" 1>&6
2253 fi
2254
2255
2256 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
0dcf9893 2257echo "configure:2258: checking "for --enable-profile"" >&5
10f2d63a
VZ
2258 no_cache=0
2259 # Check whether --enable-profile or --disable-profile was given.
2260if test "${enable_profile+set}" = set; then
2261 enableval="$enable_profile"
2262
2263 if test "$enableval" = yes; then
2264 ac_cv_use_profile='wxUSE_PROFILE=yes'
2265 else
2266 ac_cv_use_profile='wxUSE_PROFILE=no'
2267 fi
2268
2269else
2270
2271 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2272 if test "x$LINE" != x ; then
2273 eval "DEFAULT_$LINE"
2274 else
2275 no_cache=1
2276 fi
2277
2278 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2279
2280fi
2281
2282
2283 eval "$ac_cv_use_profile"
2284 if test "$no_cache" != 1; then
2285 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2286 fi
2287
2288 if test "$wxUSE_PROFILE" = yes; then
2289 echo "$ac_t""yes" 1>&6
2290 else
2291 echo "$ac_t""no" 1>&6
2292 fi
2293
2294
2295 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
0dcf9893 2296echo "configure:2297: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2297 no_cache=0
2298 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2299if test "${enable_no_rtti+set}" = set; then
2300 enableval="$enable_no_rtti"
2301
2302 if test "$enableval" = yes; then
2303 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2304 else
2305 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2306 fi
2307
2308else
2309
2310 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2311 if test "x$LINE" != x ; then
2312 eval "DEFAULT_$LINE"
2313 else
2314 no_cache=1
2315 fi
2316
2317 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2318
2319fi
2320
2321
2322 eval "$ac_cv_use_no_rtti"
2323 if test "$no_cache" != 1; then
2324 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2325 fi
2326
2327 if test "$wxUSE_NO_RTTI" = yes; then
2328 echo "$ac_t""yes" 1>&6
2329 else
2330 echo "$ac_t""no" 1>&6
2331 fi
2332
2333
2334 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
0dcf9893 2335echo "configure:2336: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2336 no_cache=0
2337 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2338if test "${enable_no_exceptions+set}" = set; then
2339 enableval="$enable_no_exceptions"
2340
2341 if test "$enableval" = yes; then
2342 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2343 else
2344 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2345 fi
2346
2347else
2348
2349 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2350 if test "x$LINE" != x ; then
2351 eval "DEFAULT_$LINE"
2352 else
2353 no_cache=1
2354 fi
2355
2356 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2357
2358fi
2359
2360
2361 eval "$ac_cv_use_no_exceptions"
2362 if test "$no_cache" != 1; then
2363 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2364 fi
2365
2366 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2367 echo "$ac_t""yes" 1>&6
2368 else
2369 echo "$ac_t""no" 1>&6
2370 fi
2371
2372
2373 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
0dcf9893 2374echo "configure:2375: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2375 no_cache=0
2376 # Check whether --enable-permissive or --disable-permissive was given.
2377if test "${enable_permissive+set}" = set; then
2378 enableval="$enable_permissive"
2379
2380 if test "$enableval" = yes; then
2381 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2382 else
2383 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2384 fi
2385
2386else
2387
2388 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2389 if test "x$LINE" != x ; then
2390 eval "DEFAULT_$LINE"
2391 else
2392 no_cache=1
2393 fi
2394
2395 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2396
2397fi
2398
2399
2400 eval "$ac_cv_use_permissive"
2401 if test "$no_cache" != 1; then
2402 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2403 fi
2404
2405 if test "$wxUSE_PERMISSIVE" = yes; then
2406 echo "$ac_t""yes" 1>&6
2407 else
2408 echo "$ac_t""no" 1>&6
2409 fi
2410
2411
2412 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
0dcf9893 2413echo "configure:2414: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2414 no_cache=0
2415 # Check whether --enable-no_deps or --disable-no_deps was given.
2416if test "${enable_no_deps+set}" = set; then
2417 enableval="$enable_no_deps"
2418
2419 if test "$enableval" = yes; then
2420 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2421 else
2422 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2423 fi
2424
2425else
2426
2427 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2428 if test "x$LINE" != x ; then
2429 eval "DEFAULT_$LINE"
2430 else
2431 no_cache=1
2432 fi
2433
2434 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2435
2436fi
2437
2438
2439 eval "$ac_cv_use_no_deps"
2440 if test "$no_cache" != 1; then
2441 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2442 fi
2443
2444 if test "$wxUSE_NO_DEPS" = yes; then
2445 echo "$ac_t""yes" 1>&6
2446 else
2447 echo "$ac_t""no" 1>&6
2448 fi
2449
2450
2451
2452
2453 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
0dcf9893 2454echo "configure:2455: checking "for --enable-intl"" >&5
10f2d63a
VZ
2455 no_cache=0
2456 # Check whether --enable-intl or --disable-intl was given.
2457if test "${enable_intl+set}" = set; then
2458 enableval="$enable_intl"
2459
2460 if test "$enableval" = yes; then
2461 ac_cv_use_intl='wxUSE_INTL=yes'
2462 else
2463 ac_cv_use_intl='wxUSE_INTL=no'
2464 fi
2465
2466else
2467
2468 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2476
2477fi
2478
2479
2480 eval "$ac_cv_use_intl"
2481 if test "$no_cache" != 1; then
2482 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2483 fi
2484
2485 if test "$wxUSE_INTL" = yes; then
2486 echo "$ac_t""yes" 1>&6
2487 else
2488 echo "$ac_t""no" 1>&6
2489 fi
2490
2491
2492 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
0dcf9893 2493echo "configure:2494: checking "for --enable-config"" >&5
10f2d63a
VZ
2494 no_cache=0
2495 # Check whether --enable-config or --disable-config was given.
2496if test "${enable_config+set}" = set; then
2497 enableval="$enable_config"
2498
2499 if test "$enableval" = yes; then
2500 ac_cv_use_config='wxUSE_CONFIG=yes'
2501 else
2502 ac_cv_use_config='wxUSE_CONFIG=no'
2503 fi
2504
2505else
2506
2507 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2508 if test "x$LINE" != x ; then
2509 eval "DEFAULT_$LINE"
2510 else
2511 no_cache=1
2512 fi
2513
2514 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2515
2516fi
2517
2518
2519 eval "$ac_cv_use_config"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_CONFIG" = yes; then
2525 echo "$ac_t""yes" 1>&6
2526 else
2527 echo "$ac_t""no" 1>&6
2528 fi
2529
2530
b12915c1 2531
10f2d63a 2532 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
8dfea369 2533echo "configure:2534: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2534 no_cache=0
2535 # Check whether --enable-sockets or --disable-sockets was given.
2536if test "${enable_sockets+set}" = set; then
2537 enableval="$enable_sockets"
2538
2539 if test "$enableval" = yes; then
2540 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2541 else
2542 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2543 fi
2544
2545else
2546
2547 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2548 if test "x$LINE" != x ; then
2549 eval "DEFAULT_$LINE"
2550 else
2551 no_cache=1
2552 fi
2553
2554 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2555
2556fi
2557
2558
2559 eval "$ac_cv_use_sockets"
2560 if test "$no_cache" != 1; then
2561 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2562 fi
2563
2564 if test "$wxUSE_SOCKETS" = yes; then
2565 echo "$ac_t""yes" 1>&6
2566 else
2567 echo "$ac_t""no" 1>&6
2568 fi
2569
b12915c1 2570
10f2d63a
VZ
2571
2572 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
8dfea369 2573echo "configure:2574: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2574 no_cache=0
2575 # Check whether --enable-dialupman or --disable-dialupman was given.
2576if test "${enable_dialupman+set}" = set; then
2577 enableval="$enable_dialupman"
2578
2579 if test "$enableval" = yes; then
2580 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2581 else
2582 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2583 fi
2584
2585else
2586
2587 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2588 if test "x$LINE" != x ; then
2589 eval "DEFAULT_$LINE"
2590 else
2591 no_cache=1
2592 fi
2593
2594 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2595
2596fi
2597
2598
2599 eval "$ac_cv_use_dialupman"
2600 if test "$no_cache" != 1; then
2601 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2602 fi
2603
2604 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2605 echo "$ac_t""yes" 1>&6
2606 else
2607 echo "$ac_t""no" 1>&6
2608 fi
2609
2610
2611 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
8dfea369 2612echo "configure:2613: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2613 no_cache=0
2614 # Check whether --enable-ipc or --disable-ipc was given.
2615if test "${enable_ipc+set}" = set; then
2616 enableval="$enable_ipc"
2617
2618 if test "$enableval" = yes; then
2619 ac_cv_use_ipc='wxUSE_IPC=yes'
2620 else
2621 ac_cv_use_ipc='wxUSE_IPC=no'
2622 fi
2623
2624else
2625
2626 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2627 if test "x$LINE" != x ; then
2628 eval "DEFAULT_$LINE"
2629 else
2630 no_cache=1
2631 fi
2632
2633 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2634
2635fi
2636
2637
2638 eval "$ac_cv_use_ipc"
2639 if test "$no_cache" != 1; then
2640 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2641 fi
2642
2643 if test "$wxUSE_IPC" = yes; then
2644 echo "$ac_t""yes" 1>&6
2645 else
2646 echo "$ac_t""no" 1>&6
2647 fi
2648
2649
2650 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
8dfea369 2651echo "configure:2652: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2652 no_cache=0
2653 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2654if test "${enable_apple_ieee+set}" = set; then
2655 enableval="$enable_apple_ieee"
2656
2657 if test "$enableval" = yes; then
2658 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2659 else
2660 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2661 fi
2662
2663else
2664
2665 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2666 if test "x$LINE" != x ; then
2667 eval "DEFAULT_$LINE"
2668 else
2669 no_cache=1
2670 fi
2671
2672 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2673
2674fi
2675
2676
2677 eval "$ac_cv_use_apple_ieee"
2678 if test "$no_cache" != 1; then
2679 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2680 fi
2681
2682 if test "$wxUSE_APPLE_IEEE" = yes; then
2683 echo "$ac_t""yes" 1>&6
2684 else
2685 echo "$ac_t""no" 1>&6
2686 fi
2687
2688
2689 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
8dfea369 2690echo "configure:2691: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2691 no_cache=0
2692 # Check whether --enable-timedate or --disable-timedate was given.
2693if test "${enable_timedate+set}" = set; then
2694 enableval="$enable_timedate"
2695
2696 if test "$enableval" = yes; then
2697 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2698 else
2699 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2700 fi
2701
2702else
2703
2704 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2705 if test "x$LINE" != x ; then
2706 eval "DEFAULT_$LINE"
2707 else
2708 no_cache=1
2709 fi
2710
2711 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2712
2713fi
2714
2715
2716 eval "$ac_cv_use_timedate"
2717 if test "$no_cache" != 1; then
2718 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2719 fi
2720
2721 if test "$wxUSE_TIMEDATE" = yes; then
2722 echo "$ac_t""yes" 1>&6
2723 else
2724 echo "$ac_t""no" 1>&6
2725 fi
2726
2727
2728 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
8dfea369 2729echo "configure:2730: checking "for --enable-wave"" >&5
10f2d63a
VZ
2730 no_cache=0
2731 # Check whether --enable-wave or --disable-wave was given.
2732if test "${enable_wave+set}" = set; then
2733 enableval="$enable_wave"
2734
2735 if test "$enableval" = yes; then
2736 ac_cv_use_wave='wxUSE_WAVE=yes'
2737 else
2738 ac_cv_use_wave='wxUSE_WAVE=no'
2739 fi
2740
2741else
2742
2743 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2744 if test "x$LINE" != x ; then
2745 eval "DEFAULT_$LINE"
2746 else
2747 no_cache=1
2748 fi
2749
2750 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2751
2752fi
2753
2754
2755 eval "$ac_cv_use_wave"
2756 if test "$no_cache" != 1; then
2757 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2758 fi
2759
2760 if test "$wxUSE_WAVE" = yes; then
2761 echo "$ac_t""yes" 1>&6
2762 else
2763 echo "$ac_t""no" 1>&6
2764 fi
2765
2766
2767 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
8dfea369 2768echo "configure:2769: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2769 no_cache=0
2770 # Check whether --enable-fraction or --disable-fraction was given.
2771if test "${enable_fraction+set}" = set; then
2772 enableval="$enable_fraction"
2773
2774 if test "$enableval" = yes; then
2775 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2776 else
2777 ac_cv_use_fraction='wxUSE_FRACTION=no'
2778 fi
2779
2780else
2781
2782 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2783 if test "x$LINE" != x ; then
2784 eval "DEFAULT_$LINE"
2785 else
2786 no_cache=1
2787 fi
2788
2789 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2790
2791fi
2792
2793
2794 eval "$ac_cv_use_fraction"
2795 if test "$no_cache" != 1; then
2796 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2797 fi
2798
2799 if test "$wxUSE_FRACTION" = yes; then
2800 echo "$ac_t""yes" 1>&6
2801 else
2802 echo "$ac_t""no" 1>&6
2803 fi
2804
2805
2806 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
8dfea369 2807echo "configure:2808: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2808 no_cache=0
2809 # Check whether --enable-dynlib or --disable-dynlib was given.
2810if test "${enable_dynlib+set}" = set; then
2811 enableval="$enable_dynlib"
2812
2813 if test "$enableval" = yes; then
2814 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2815 else
2816 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2817 fi
2818
2819else
2820
2821 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2822 if test "x$LINE" != x ; then
2823 eval "DEFAULT_$LINE"
2824 else
2825 no_cache=1
2826 fi
2827
2828 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2829
2830fi
2831
2832
2833 eval "$ac_cv_use_dynlib"
2834 if test "$no_cache" != 1; then
2835 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2836 fi
2837
2838 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2839 echo "$ac_t""yes" 1>&6
2840 else
2841 echo "$ac_t""no" 1>&6
2842 fi
2843
2844
2845 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
8dfea369 2846echo "configure:2847: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2847 no_cache=0
2848 # Check whether --enable-longlong or --disable-longlong was given.
2849if test "${enable_longlong+set}" = set; then
2850 enableval="$enable_longlong"
2851
2852 if test "$enableval" = yes; then
2853 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2854 else
2855 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2856 fi
2857
2858else
2859
2860 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2861 if test "x$LINE" != x ; then
2862 eval "DEFAULT_$LINE"
2863 else
2864 no_cache=1
2865 fi
2866
2867 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2868
2869fi
2870
2871
2872 eval "$ac_cv_use_longlong"
2873 if test "$no_cache" != 1; then
2874 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2875 fi
2876
2877 if test "$wxUSE_LONGLONG" = yes; then
2878 echo "$ac_t""yes" 1>&6
2879 else
2880 echo "$ac_t""no" 1>&6
2881 fi
2882
2883
2884 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
8dfea369 2885echo "configure:2886: checking "for --enable-log"" >&5
10f2d63a
VZ
2886 no_cache=0
2887 # Check whether --enable-log or --disable-log was given.
2888if test "${enable_log+set}" = set; then
2889 enableval="$enable_log"
2890
2891 if test "$enableval" = yes; then
2892 ac_cv_use_log='wxUSE_LOG=yes'
2893 else
2894 ac_cv_use_log='wxUSE_LOG=no'
2895 fi
2896
2897else
2898
2899 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2900 if test "x$LINE" != x ; then
2901 eval "DEFAULT_$LINE"
2902 else
2903 no_cache=1
2904 fi
2905
2906 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2907
2908fi
2909
2910
2911 eval "$ac_cv_use_log"
2912 if test "$no_cache" != 1; then
2913 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2914 fi
2915
2916 if test "$wxUSE_LOG" = yes; then
2917 echo "$ac_t""yes" 1>&6
2918 else
2919 echo "$ac_t""no" 1>&6
2920 fi
2921
2922
2923 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
8dfea369 2924echo "configure:2925: checking "for --enable-streams"" >&5
10f2d63a
VZ
2925 no_cache=0
2926 # Check whether --enable-streams or --disable-streams was given.
2927if test "${enable_streams+set}" = set; then
2928 enableval="$enable_streams"
2929
2930 if test "$enableval" = yes; then
2931 ac_cv_use_streams='wxUSE_STREAMS=yes'
2932 else
2933 ac_cv_use_streams='wxUSE_STREAMS=no'
2934 fi
2935
2936else
2937
2938 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2939 if test "x$LINE" != x ; then
2940 eval "DEFAULT_$LINE"
2941 else
2942 no_cache=1
2943 fi
2944
2945 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2946
2947fi
2948
2949
2950 eval "$ac_cv_use_streams"
2951 if test "$no_cache" != 1; then
2952 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2953 fi
2954
2955 if test "$wxUSE_STREAMS" = yes; then
2956 echo "$ac_t""yes" 1>&6
2957 else
2958 echo "$ac_t""no" 1>&6
2959 fi
2960
2961
2962 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
8dfea369 2963echo "configure:2964: checking "for --enable-file"" >&5
10f2d63a
VZ
2964 no_cache=0
2965 # Check whether --enable-file or --disable-file was given.
2966if test "${enable_file+set}" = set; then
2967 enableval="$enable_file"
2968
2969 if test "$enableval" = yes; then
2970 ac_cv_use_file='wxUSE_FILE=yes'
2971 else
2972 ac_cv_use_file='wxUSE_FILE=no'
2973 fi
2974
2975else
2976
2977 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2978 if test "x$LINE" != x ; then
2979 eval "DEFAULT_$LINE"
2980 else
2981 no_cache=1
2982 fi
2983
2984 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2985
2986fi
2987
2988
2989 eval "$ac_cv_use_file"
2990 if test "$no_cache" != 1; then
2991 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2992 fi
2993
2994 if test "$wxUSE_FILE" = yes; then
2995 echo "$ac_t""yes" 1>&6
2996 else
2997 echo "$ac_t""no" 1>&6
2998 fi
2999
3000
3001 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
8dfea369 3002echo "configure:3003: checking "for --enable-textfile"" >&5
10f2d63a
VZ
3003 no_cache=0
3004 # Check whether --enable-textfile or --disable-textfile was given.
3005if test "${enable_textfile+set}" = set; then
3006 enableval="$enable_textfile"
3007
3008 if test "$enableval" = yes; then
3009 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3010 else
3011 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3012 fi
3013
3014else
3015
3016 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3017 if test "x$LINE" != x ; then
3018 eval "DEFAULT_$LINE"
3019 else
3020 no_cache=1
3021 fi
3022
3023 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3024
3025fi
3026
3027
3028 eval "$ac_cv_use_textfile"
3029 if test "$no_cache" != 1; then
3030 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3031 fi
3032
3033 if test "$wxUSE_TEXTFILE" = yes; then
3034 echo "$ac_t""yes" 1>&6
3035 else
3036 echo "$ac_t""no" 1>&6
3037 fi
3038
3039
3040 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
8dfea369 3041echo "configure:3042: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3042 no_cache=0
3043 # Check whether --enable-unicode or --disable-unicode was given.
3044if test "${enable_unicode+set}" = set; then
3045 enableval="$enable_unicode"
3046
3047 if test "$enableval" = yes; then
3048 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3049 else
3050 ac_cv_use_unicode='wxUSE_UNICODE=no'
3051 fi
3052
3053else
3054
3055 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3056 if test "x$LINE" != x ; then
3057 eval "DEFAULT_$LINE"
3058 else
3059 no_cache=1
3060 fi
3061
3062 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3063
3064fi
3065
3066
3067 eval "$ac_cv_use_unicode"
3068 if test "$no_cache" != 1; then
3069 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3070 fi
3071
3072 if test "$wxUSE_UNICODE" = yes; then
3073 echo "$ac_t""yes" 1>&6
3074 else
3075 echo "$ac_t""no" 1>&6
3076 fi
3077
3078
3079 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
8dfea369 3080echo "configure:3081: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3081 no_cache=0
3082 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3083if test "${enable_wcsrtombs+set}" = set; then
3084 enableval="$enable_wcsrtombs"
3085
3086 if test "$enableval" = yes; then
3087 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3088 else
3089 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3090 fi
3091
3092else
3093
3094 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3095 if test "x$LINE" != x ; then
3096 eval "DEFAULT_$LINE"
3097 else
3098 no_cache=1
3099 fi
3100
3101 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3102
3103fi
3104
3105
3106 eval "$ac_cv_use_wcsrtombs"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_WCSRTOMBS" = yes; then
3112 echo "$ac_t""yes" 1>&6
3113 else
3114 echo "$ac_t""no" 1>&6
3115 fi
3116
3117
3118 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
8dfea369 3119echo "configure:3120: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3120 no_cache=0
3121 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3122if test "${enable_wxprintfv+set}" = set; then
3123 enableval="$enable_wxprintfv"
3124
3125 if test "$enableval" = yes; then
3126 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3127 else
3128 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3129 fi
3130
3131else
3132
3133 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3134 if test "x$LINE" != x ; then
3135 eval "DEFAULT_$LINE"
3136 else
3137 no_cache=1
3138 fi
3139
3140 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3141
3142fi
3143
3144
3145 eval "$ac_cv_use_wxprintfv"
3146 if test "$no_cache" != 1; then
3147 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3148 fi
3149
3150 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3151 echo "$ac_t""yes" 1>&6
3152 else
3153 echo "$ac_t""no" 1>&6
3154 fi
3155
3156
3157 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
8dfea369 3158echo "configure:3159: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3159 no_cache=0
3160 # Check whether --enable-joystick or --disable-joystick was given.
3161if test "${enable_joystick+set}" = set; then
3162 enableval="$enable_joystick"
3163
3164 if test "$enableval" = yes; then
3165 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3166 else
3167 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3168 fi
3169
3170else
3171
3172 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3173 if test "x$LINE" != x ; then
3174 eval "DEFAULT_$LINE"
3175 else
3176 no_cache=1
3177 fi
3178
3179 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3180
3181fi
3182
3183
3184 eval "$ac_cv_use_joystick"
3185 if test "$no_cache" != 1; then
3186 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3187 fi
3188
3189 if test "$wxUSE_JOYSTICK" = yes; then
3190 echo "$ac_t""yes" 1>&6
3191 else
3192 echo "$ac_t""no" 1>&6
3193 fi
3194
3195
3196 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
8dfea369 3197echo "configure:3198: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3198 no_cache=0
3199 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3200if test "${enable_std_iostreams+set}" = set; then
3201 enableval="$enable_std_iostreams"
3202
3203 if test "$enableval" = yes; then
3204 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3205 else
3206 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3207 fi
3208
3209else
3210
3211 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3212 if test "x$LINE" != x ; then
3213 eval "DEFAULT_$LINE"
3214 else
3215 no_cache=1
3216 fi
3217
3218 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3219
3220fi
3221
3222
3223 eval "$ac_cv_use_std_iostreams"
3224 if test "$no_cache" != 1; then
3225 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3226 fi
3227
3228 if test "$wxUSE_STD_IOSTREAM" = yes; then
3229 echo "$ac_t""yes" 1>&6
3230 else
3231 echo "$ac_t""no" 1>&6
3232 fi
3233
3234
24528b0c 3235 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
8dfea369 3236echo "configure:3237: checking "for --enable-filesystem"" >&5
24528b0c
VS
3237 no_cache=0
3238 # Check whether --enable-filesystem or --disable-filesystem was given.
3239if test "${enable_filesystem+set}" = set; then
3240 enableval="$enable_filesystem"
3241
3242 if test "$enableval" = yes; then
3243 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3244 else
3245 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3246 fi
3247
3248else
3249
3250 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3251 if test "x$LINE" != x ; then
3252 eval "DEFAULT_$LINE"
3253 else
3254 no_cache=1
3255 fi
3256
3257 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3258
3259fi
3260
3261
3262 eval "$ac_cv_use_filesystem"
3263 if test "$no_cache" != 1; then
3264 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3265 fi
3266
3267 if test "$wxUSE_FILESYSTEM" = yes; then
3268 echo "$ac_t""yes" 1>&6
3269 else
3270 echo "$ac_t""no" 1>&6
3271 fi
3272
3273
10f2d63a 3274 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
8dfea369 3275echo "configure:3276: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3276 no_cache=0
3277 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3278if test "${enable_fs_inet+set}" = set; then
3279 enableval="$enable_fs_inet"
3280
3281 if test "$enableval" = yes; then
3282 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3283 else
3284 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3285 fi
3286
3287else
3288
3289 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3290 if test "x$LINE" != x ; then
3291 eval "DEFAULT_$LINE"
3292 else
3293 no_cache=1
3294 fi
3295
3296 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3297
3298fi
3299
3300
3301 eval "$ac_cv_use_fs_inet"
3302 if test "$no_cache" != 1; then
3303 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3304 fi
3305
3306 if test "$wxUSE_FS_INET" = yes; then
3307 echo "$ac_t""yes" 1>&6
3308 else
3309 echo "$ac_t""no" 1>&6
3310 fi
3311
3312
3313 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
8dfea369 3314echo "configure:3315: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3315 no_cache=0
3316 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3317if test "${enable_fs_zip+set}" = set; then
3318 enableval="$enable_fs_zip"
3319
3320 if test "$enableval" = yes; then
3321 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3322 else
3323 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3324 fi
3325
3326else
3327
3328 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3329 if test "x$LINE" != x ; then
3330 eval "DEFAULT_$LINE"
3331 else
3332 no_cache=1
3333 fi
3334
3335 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3336
3337fi
3338
3339
3340 eval "$ac_cv_use_fs_zip"
3341 if test "$no_cache" != 1; then
3342 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3343 fi
3344
3345 if test "$wxUSE_FS_ZIP" = yes; then
3346 echo "$ac_t""yes" 1>&6
3347 else
3348 echo "$ac_t""no" 1>&6
3349 fi
3350
3351
3352 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
8dfea369 3353echo "configure:3354: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3354 no_cache=0
3355 # Check whether --enable-zipstream or --disable-zipstream was given.
3356if test "${enable_zipstream+set}" = set; then
3357 enableval="$enable_zipstream"
3358
3359 if test "$enableval" = yes; then
3360 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3361 else
3362 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3363 fi
3364
3365else
3366
3367 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3368 if test "x$LINE" != x ; then
3369 eval "DEFAULT_$LINE"
3370 else
3371 no_cache=1
3372 fi
3373
3374 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3375
3376fi
3377
3378
3379 eval "$ac_cv_use_zipstream"
3380 if test "$no_cache" != 1; then
3381 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3382 fi
3383
3384 if test "$wxUSE_ZIPSTREAM" = yes; then
3385 echo "$ac_t""yes" 1>&6
3386 else
3387 echo "$ac_t""no" 1>&6
3388 fi
3389
3390
3391
3392
3393 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
8dfea369 3394echo "configure:3395: checking "for --enable-threads"" >&5
10f2d63a
VZ
3395 no_cache=0
3396 # Check whether --enable-threads or --disable-threads was given.
3397if test "${enable_threads+set}" = set; then
3398 enableval="$enable_threads"
3399
3400 if test "$enableval" = yes; then
3401 ac_cv_use_threads='wxUSE_THREADS=yes'
3402 else
3403 ac_cv_use_threads='wxUSE_THREADS=no'
3404 fi
3405
3406else
3407
3408 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3409 if test "x$LINE" != x ; then
3410 eval "DEFAULT_$LINE"
3411 else
3412 no_cache=1
3413 fi
3414
3415 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3416
3417fi
3418
3419
3420 eval "$ac_cv_use_threads"
3421 if test "$no_cache" != 1; then
3422 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3423 fi
3424
3425 if test "$wxUSE_THREADS" = yes; then
3426 echo "$ac_t""yes" 1>&6
3427 else
3428 echo "$ac_t""no" 1>&6
3429 fi
3430
3431
3432 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
8dfea369 3433echo "configure:3434: checking "for --enable-serial"" >&5
10f2d63a
VZ
3434 no_cache=0
3435 # Check whether --enable-serial or --disable-serial was given.
3436if test "${enable_serial+set}" = set; then
3437 enableval="$enable_serial"
3438
3439 if test "$enableval" = yes; then
3440 ac_cv_use_serial='wxUSE_SERIAL=yes'
3441 else
3442 ac_cv_use_serial='wxUSE_SERIAL=no'
3443 fi
3444
3445else
3446
3447 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3448 if test "x$LINE" != x ; then
3449 eval "DEFAULT_$LINE"
3450 else
3451 no_cache=1
3452 fi
3453
3454 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3455
3456fi
3457
3458
3459 eval "$ac_cv_use_serial"
3460 if test "$no_cache" != 1; then
3461 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3462 fi
3463
3464 if test "$wxUSE_SERIAL" = yes; then
3465 echo "$ac_t""yes" 1>&6
3466 else
3467 echo "$ac_t""no" 1>&6
3468 fi
3469
3470
b12915c1
VZ
3471if test "$wxUSE_GUI" = "yes"; then
3472
10f2d63a
VZ
3473
3474
3475 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
8dfea369 3476echo "configure:3477: checking "for --enable-docview"" >&5
10f2d63a
VZ
3477 no_cache=0
3478 # Check whether --enable-docview or --disable-docview was given.
3479if test "${enable_docview+set}" = set; then
3480 enableval="$enable_docview"
3481
3482 if test "$enableval" = yes; then
3483 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3484 else
3485 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3486 fi
3487
3488else
3489
3490 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3491 if test "x$LINE" != x ; then
3492 eval "DEFAULT_$LINE"
3493 else
3494 no_cache=1
3495 fi
3496
3497 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3498
3499fi
3500
3501
3502 eval "$ac_cv_use_docview"
3503 if test "$no_cache" != 1; then
3504 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3505 fi
3506
3507 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3508 echo "$ac_t""yes" 1>&6
3509 else
3510 echo "$ac_t""no" 1>&6
3511 fi
3512
3513
3514 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
8dfea369 3515echo "configure:3516: checking "for --enable-help"" >&5
10f2d63a
VZ
3516 no_cache=0
3517 # Check whether --enable-help or --disable-help was given.
3518if test "${enable_help+set}" = set; then
3519 enableval="$enable_help"
3520
3521 if test "$enableval" = yes; then
3522 ac_cv_use_help='wxUSE_HELP=yes'
3523 else
3524 ac_cv_use_help='wxUSE_HELP=no'
3525 fi
3526
3527else
3528
3529 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3530 if test "x$LINE" != x ; then
3531 eval "DEFAULT_$LINE"
3532 else
3533 no_cache=1
3534 fi
3535
3536 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3537
3538fi
3539
3540
3541 eval "$ac_cv_use_help"
3542 if test "$no_cache" != 1; then
3543 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3544 fi
3545
3546 if test "$wxUSE_HELP" = yes; then
3547 echo "$ac_t""yes" 1>&6
3548 else
3549 echo "$ac_t""no" 1>&6
3550 fi
3551
3552
3553 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
8dfea369 3554echo "configure:3555: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3555 no_cache=0
3556 # Check whether --enable-constraints or --disable-constraints was given.
3557if test "${enable_constraints+set}" = set; then
3558 enableval="$enable_constraints"
3559
3560 if test "$enableval" = yes; then
3561 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3562 else
3563 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3564 fi
3565
3566else
3567
3568 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3569 if test "x$LINE" != x ; then
3570 eval "DEFAULT_$LINE"
3571 else
3572 no_cache=1
3573 fi
3574
3575 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3576
3577fi
3578
3579
3580 eval "$ac_cv_use_constraints"
3581 if test "$no_cache" != 1; then
3582 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3583 fi
3584
3585 if test "$wxUSE_CONSTRAINTS" = yes; then
3586 echo "$ac_t""yes" 1>&6
3587 else
3588 echo "$ac_t""no" 1>&6
3589 fi
3590
3591
3592 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
8dfea369 3593echo "configure:3594: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3594 no_cache=0
3595 # Check whether --enable-printarch or --disable-printarch was given.
3596if test "${enable_printarch+set}" = set; then
3597 enableval="$enable_printarch"
3598
3599 if test "$enableval" = yes; then
3600 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3601 else
3602 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3603 fi
3604
3605else
3606
3607 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3608 if test "x$LINE" != x ; then
3609 eval "DEFAULT_$LINE"
3610 else
3611 no_cache=1
3612 fi
3613
3614 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3615
3616fi
3617
3618
3619 eval "$ac_cv_use_printarch"
3620 if test "$no_cache" != 1; then
3621 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3622 fi
3623
3624 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3625 echo "$ac_t""yes" 1>&6
3626 else
3627 echo "$ac_t""no" 1>&6
3628 fi
3629
3630
3631 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
8dfea369 3632echo "configure:3633: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3633 no_cache=0
3634 # Check whether --enable-mdi or --disable-mdi was given.
3635if test "${enable_mdi+set}" = set; then
3636 enableval="$enable_mdi"
3637
3638 if test "$enableval" = yes; then
3639 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3640 else
3641 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3642 fi
3643
3644else
3645
3646 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3647 if test "x$LINE" != x ; then
3648 eval "DEFAULT_$LINE"
3649 else
3650 no_cache=1
3651 fi
3652
3653 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3654
3655fi
3656
3657
3658 eval "$ac_cv_use_mdi"
3659 if test "$no_cache" != 1; then
3660 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3661 fi
3662
3663 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3664 echo "$ac_t""yes" 1>&6
3665 else
3666 echo "$ac_t""no" 1>&6
3667 fi
3668
3669
3670
3671 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
8dfea369 3672echo "configure:3673: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3673 no_cache=0
3674 # Check whether --enable-postscript or --disable-postscript was given.
3675if test "${enable_postscript+set}" = set; then
3676 enableval="$enable_postscript"
3677
3678 if test "$enableval" = yes; then
3679 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3680 else
3681 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3682 fi
3683
3684else
3685
3686 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3687 if test "x$LINE" != x ; then
3688 eval "DEFAULT_$LINE"
3689 else
3690 no_cache=1
3691 fi
3692
3693 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3694
3695fi
3696
3697
3698 eval "$ac_cv_use_postscript"
3699 if test "$no_cache" != 1; then
3700 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3701 fi
3702
3703 if test "$wxUSE_POSTSCRIPT" = yes; then
3704 echo "$ac_t""yes" 1>&6
3705 else
3706 echo "$ac_t""no" 1>&6
3707 fi
3708
3709
3710
3711
3712 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
8dfea369 3713echo "configure:3714: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3714 no_cache=0
3715 # Check whether --enable-prologio or --disable-prologio was given.
3716if test "${enable_prologio+set}" = set; then
3717 enableval="$enable_prologio"
3718
3719 if test "$enableval" = yes; then
3720 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3721 else
3722 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3723 fi
3724
3725else
3726
3727 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3728 if test "x$LINE" != x ; then
3729 eval "DEFAULT_$LINE"
3730 else
3731 no_cache=1
3732 fi
3733
3734 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3735
3736fi
3737
3738
3739 eval "$ac_cv_use_prologio"
3740 if test "$no_cache" != 1; then
3741 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3742 fi
3743
3744 if test "$wxUSE_PROLOGIO" = yes; then
3745 echo "$ac_t""yes" 1>&6
3746 else
3747 echo "$ac_t""no" 1>&6
3748 fi
3749
3750
3751 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
8dfea369 3752echo "configure:3753: checking "for --enable-resources"" >&5
10f2d63a
VZ
3753 no_cache=0
3754 # Check whether --enable-resources or --disable-resources was given.
3755if test "${enable_resources+set}" = set; then
3756 enableval="$enable_resources"
3757
3758 if test "$enableval" = yes; then
3759 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3760 else
3761 ac_cv_use_resources='wxUSE_RESOURCES=no'
3762 fi
3763
3764else
3765
3766 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3774
3775fi
3776
3777
3778 eval "$ac_cv_use_resources"
3779 if test "$no_cache" != 1; then
3780 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3781 fi
3782
3783 if test "$wxUSE_RESOURCES" = yes; then
3784 echo "$ac_t""yes" 1>&6
3785 else
3786 echo "$ac_t""no" 1>&6
3787 fi
3788
3789
3790
3791 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
8dfea369 3792echo "configure:3793: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3793 no_cache=0
3794 # Check whether --enable-xresources or --disable-xresources was given.
3795if test "${enable_xresources+set}" = set; then
3796 enableval="$enable_xresources"
3797
3798 if test "$enableval" = yes; then
3799 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3800 else
3801 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3802 fi
3803
3804else
3805
3806 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3807 if test "x$LINE" != x ; then
3808 eval "DEFAULT_$LINE"
3809 else
3810 no_cache=1
3811 fi
3812
3813 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3814
3815fi
3816
3817
3818 eval "$ac_cv_use_xresources"
3819 if test "$no_cache" != 1; then
3820 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3821 fi
3822
3823 if test "$wxUSE_X_RESOURCES" = yes; then
3824 echo "$ac_t""yes" 1>&6
3825 else
3826 echo "$ac_t""no" 1>&6
3827 fi
3828
3829
3830
3831
3832 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
8dfea369 3833echo "configure:3834: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3834 no_cache=0
3835 # Check whether --enable-clipboard or --disable-clipboard was given.
3836if test "${enable_clipboard+set}" = set; then
3837 enableval="$enable_clipboard"
3838
3839 if test "$enableval" = yes; then
3840 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3841 else
3842 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3843 fi
3844
3845else
3846
3847 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3848 if test "x$LINE" != x ; then
3849 eval "DEFAULT_$LINE"
3850 else
3851 no_cache=1
3852 fi
3853
3854 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3855
3856fi
3857
3858
3859 eval "$ac_cv_use_clipboard"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_CLIPBOARD" = yes; then
3865 echo "$ac_t""yes" 1>&6
3866 else
3867 echo "$ac_t""no" 1>&6
3868 fi
3869
3870
3871 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
8dfea369 3872echo "configure:3873: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3873 no_cache=0
3874 # Check whether --enable-dnd or --disable-dnd was given.
3875if test "${enable_dnd+set}" = set; then
3876 enableval="$enable_dnd"
3877
3878 if test "$enableval" = yes; then
3879 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3880 else
3881 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3882 fi
3883
3884else
3885
3886 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3887 if test "x$LINE" != x ; then
3888 eval "DEFAULT_$LINE"
3889 else
3890 no_cache=1
3891 fi
3892
3893 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3894
3895fi
3896
3897
3898 eval "$ac_cv_use_dnd"
3899 if test "$no_cache" != 1; then
3900 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3901 fi
3902
3903 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3904 echo "$ac_t""yes" 1>&6
3905 else
3906 echo "$ac_t""no" 1>&6
3907 fi
3908
3909
3910
3911 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
8dfea369 3912echo "configure:3913: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3913 no_cache=0
3914 # Check whether --enable-wxtree or --disable-wxtree was given.
3915if test "${enable_wxtree+set}" = set; then
3916 enableval="$enable_wxtree"
3917
3918 if test "$enableval" = yes; then
3919 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3920 else
3921 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3922 fi
3923
3924else
3925
3926 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3927 if test "x$LINE" != x ; then
3928 eval "DEFAULT_$LINE"
3929 else
3930 no_cache=1
3931 fi
3932
3933 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3934
3935fi
3936
3937
3938 eval "$ac_cv_use_wxtree"
3939 if test "$no_cache" != 1; then
3940 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3941 fi
3942
3943 if test "$wxUSE_WXTREE" = yes; then
3944 echo "$ac_t""yes" 1>&6
3945 else
3946 echo "$ac_t""no" 1>&6
3947 fi
3948
3949
3950
3951
3952 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
8dfea369 3953echo "configure:3954: checking "for --enable-controls"" >&5
10f2d63a
VZ
3954 no_cache=0
3955 # Check whether --enable-controls or --disable-controls was given.
3956if test "${enable_controls+set}" = set; then
3957 enableval="$enable_controls"
3958
3959 if test "$enableval" = yes; then
3960 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3961 else
3962 ac_cv_use_controls='wxUSE_CONTROLS=no'
3963 fi
3964
3965else
3966
3967 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3968 if test "x$LINE" != x ; then
3969 eval "DEFAULT_$LINE"
3970 else
3971 no_cache=1
3972 fi
3973
3974 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3975
3976fi
3977
3978
3979 eval "$ac_cv_use_controls"
3980 if test "$no_cache" != 1; then
3981 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3982 fi
3983
3984 if test "$wxUSE_CONTROLS" = yes; then
3985 echo "$ac_t""yes" 1>&6
3986 else
3987 echo "$ac_t""no" 1>&6
3988 fi
3989
3990
3991if test "$wxUSE_CONTROLS" = "yes"; then
3992 DEFAULT_wxUSE_ACCEL=yes
3993 DEFAULT_wxUSE_CARET=yes
3994 DEFAULT_wxUSE_COMBOBOX=yes
3995 DEFAULT_wxUSE_BMPBUTTON=yes
3996 DEFAULT_wxUSE_CHECKBOX=yes
3997 DEFAULT_wxUSE_CHECKLISTBOX=yes
3998 DEFAULT_wxUSE_CHOICE=yes
3999 DEFAULT_wxUSE_GAUGE=yes
4000 DEFAULT_wxUSE_GRID=yes
cc977e5f 4001 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4002 DEFAULT_wxUSE_IMAGLIST=yes
4003 DEFAULT_wxUSE_LISTBOX=yes
4004 DEFAULT_wxUSE_LISTCTRL=yes
4005 DEFAULT_wxUSE_NOTEBOOK=yes
4006 DEFAULT_wxUSE_RADIOBOX=yes
4007 DEFAULT_wxUSE_RADIOBTN=yes
4008 DEFAULT_wxUSE_SASH=yes
4009 DEFAULT_wxUSE_SCROLLBAR=yes
4010 DEFAULT_wxUSE_SLIDER=yes
4011 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4012 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4013 DEFAULT_wxUSE_SPLITTER=yes
4014 DEFAULT_wxUSE_STATBMP=yes
4015 DEFAULT_wxUSE_STATBOX=yes
4016 DEFAULT_wxUSE_STATLINE=yes
4017 DEFAULT_wxUSE_STATUSBAR=yes
4018 DEFAULT_wxUSE_TAB_DIALOG=yes
4019 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4020 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4021 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4022 DEFAULT_wxUSE_TOOLTIPS=yes
4023 DEFAULT_wxUSE_TREECTRL=yes
4024elif test "$wxUSE_CONTROLS" = "no"; then
4025 DEFAULT_wxUSE_ACCEL=no
4026 DEFAULT_wxUSE_CARET=no
4027 DEFAULT_wxUSE_COMBOBOX=no
4028 DEFAULT_wxUSE_BMPBUTTON=no
4029 DEFAULT_wxUSE_CHECKBOX=no
4030 DEFAULT_wxUSE_CHECKLISTBOX=no
4031 DEFAULT_wxUSE_CHOICE=no
4032 DEFAULT_wxUSE_GAUGE=no
4033 DEFAULT_wxUSE_GRID=no
4034 DEFAULT_wxUSE_NEW_GRID=no
4035 DEFAULT_wxUSE_IMAGLIST=no
4036 DEFAULT_wxUSE_LISTBOX=no
4037 DEFAULT_wxUSE_LISTCTRL=no
4038 DEFAULT_wxUSE_NOTEBOOK=no
4039 DEFAULT_wxUSE_RADIOBOX=no
4040 DEFAULT_wxUSE_RADIOBTN=no
4041 DEFAULT_wxUSE_SASH=no
4042 DEFAULT_wxUSE_SCROLLBAR=no
4043 DEFAULT_wxUSE_SLIDER=no
4044 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4045 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4046 DEFAULT_wxUSE_SPLITTER=no
4047 DEFAULT_wxUSE_STATBMP=no
4048 DEFAULT_wxUSE_STATBOX=no
4049 DEFAULT_wxUSE_STATLINE=no
4050 DEFAULT_wxUSE_STATUSBAR=no
4051 DEFAULT_wxUSE_TAB_DIALOG=no
4052 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4053 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4054 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4055 DEFAULT_wxUSE_TOOLTIPS=no
4056 DEFAULT_wxUSE_TREECTRL=no
4057fi
4058
4059
4060 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
8dfea369 4061echo "configure:4062: checking "for --enable-accel"" >&5
10f2d63a
VZ
4062 no_cache=0
4063 # Check whether --enable-accel or --disable-accel was given.
4064if test "${enable_accel+set}" = set; then
4065 enableval="$enable_accel"
4066
4067 if test "$enableval" = yes; then
4068 ac_cv_use_accel='wxUSE_ACCEL=yes'
4069 else
4070 ac_cv_use_accel='wxUSE_ACCEL=no'
4071 fi
4072
4073else
4074
4075 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4076 if test "x$LINE" != x ; then
4077 eval "DEFAULT_$LINE"
4078 else
4079 no_cache=1
4080 fi
4081
4082 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4083
4084fi
4085
4086
4087 eval "$ac_cv_use_accel"
4088 if test "$no_cache" != 1; then
4089 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4090 fi
4091
4092 if test "$wxUSE_ACCEL" = yes; then
4093 echo "$ac_t""yes" 1>&6
4094 else
4095 echo "$ac_t""no" 1>&6
4096 fi
4097
4098
4099 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
8dfea369 4100echo "configure:4101: checking "for --enable-caret"" >&5
10f2d63a
VZ
4101 no_cache=0
4102 # Check whether --enable-caret or --disable-caret was given.
4103if test "${enable_caret+set}" = set; then
4104 enableval="$enable_caret"
4105
4106 if test "$enableval" = yes; then
4107 ac_cv_use_caret='wxUSE_CARET=yes'
4108 else
4109 ac_cv_use_caret='wxUSE_CARET=no'
4110 fi
4111
4112else
4113
4114 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4115 if test "x$LINE" != x ; then
4116 eval "DEFAULT_$LINE"
4117 else
4118 no_cache=1
4119 fi
4120
4121 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4122
4123fi
4124
4125
4126 eval "$ac_cv_use_caret"
4127 if test "$no_cache" != 1; then
4128 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4129 fi
4130
4131 if test "$wxUSE_CARET" = yes; then
4132 echo "$ac_t""yes" 1>&6
4133 else
4134 echo "$ac_t""no" 1>&6
4135 fi
4136
4137
4138 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
8dfea369 4139echo "configure:4140: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4140 no_cache=0
4141 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4142if test "${enable_bmpbutton+set}" = set; then
4143 enableval="$enable_bmpbutton"
4144
4145 if test "$enableval" = yes; then
4146 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4147 else
4148 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4149 fi
4150
4151else
4152
4153 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4154 if test "x$LINE" != x ; then
4155 eval "DEFAULT_$LINE"
4156 else
4157 no_cache=1
4158 fi
4159
4160 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4161
4162fi
4163
4164
4165 eval "$ac_cv_use_bmpbutton"
4166 if test "$no_cache" != 1; then
4167 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4168 fi
4169
4170 if test "$wxUSE_BMPBUTTON" = yes; then
4171 echo "$ac_t""yes" 1>&6
4172 else
4173 echo "$ac_t""no" 1>&6
4174 fi
4175
4176
4177 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
8dfea369 4178echo "configure:4179: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4179 no_cache=0
4180 # Check whether --enable-checkbox or --disable-checkbox was given.
4181if test "${enable_checkbox+set}" = set; then
4182 enableval="$enable_checkbox"
4183
4184 if test "$enableval" = yes; then
4185 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4186 else
4187 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4188 fi
4189
4190else
4191
4192 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4193 if test "x$LINE" != x ; then
4194 eval "DEFAULT_$LINE"
4195 else
4196 no_cache=1
4197 fi
4198
4199 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4200
4201fi
4202
4203
4204 eval "$ac_cv_use_checkbox"
4205 if test "$no_cache" != 1; then
4206 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4207 fi
4208
4209 if test "$wxUSE_CHECKBOX" = yes; then
4210 echo "$ac_t""yes" 1>&6
4211 else
4212 echo "$ac_t""no" 1>&6
4213 fi
4214
4215
4216 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
8dfea369 4217echo "configure:4218: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4218 no_cache=0
4219 # Check whether --enable-checklst or --disable-checklst was given.
4220if test "${enable_checklst+set}" = set; then
4221 enableval="$enable_checklst"
4222
4223 if test "$enableval" = yes; then
4224 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4225 else
4226 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4227 fi
4228
4229else
4230
4231 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4232 if test "x$LINE" != x ; then
4233 eval "DEFAULT_$LINE"
4234 else
4235 no_cache=1
4236 fi
4237
4238 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4239
4240fi
4241
4242
4243 eval "$ac_cv_use_checklst"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_CHECKLST" = yes; then
4249 echo "$ac_t""yes" 1>&6
4250 else
4251 echo "$ac_t""no" 1>&6
4252 fi
4253
4254
4255 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
8dfea369 4256echo "configure:4257: checking "for --enable-choice"" >&5
10f2d63a
VZ
4257 no_cache=0
4258 # Check whether --enable-choice or --disable-choice was given.
4259if test "${enable_choice+set}" = set; then
4260 enableval="$enable_choice"
4261
4262 if test "$enableval" = yes; then
4263 ac_cv_use_choice='wxUSE_CHOICE=yes'
4264 else
4265 ac_cv_use_choice='wxUSE_CHOICE=no'
4266 fi
4267
4268else
4269
4270 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4271 if test "x$LINE" != x ; then
4272 eval "DEFAULT_$LINE"
4273 else
4274 no_cache=1
4275 fi
4276
4277 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4278
4279fi
4280
4281
4282 eval "$ac_cv_use_choice"
4283 if test "$no_cache" != 1; then
4284 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4285 fi
4286
4287 if test "$wxUSE_CHOICE" = yes; then
4288 echo "$ac_t""yes" 1>&6
4289 else
4290 echo "$ac_t""no" 1>&6
4291 fi
4292
4293
4294 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
8dfea369 4295echo "configure:4296: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4296 no_cache=0
4297 # Check whether --enable-combobox or --disable-combobox was given.
4298if test "${enable_combobox+set}" = set; then
4299 enableval="$enable_combobox"
4300
4301 if test "$enableval" = yes; then
4302 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4303 else
4304 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4305 fi
4306
4307else
4308
4309 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4310 if test "x$LINE" != x ; then
4311 eval "DEFAULT_$LINE"
4312 else
4313 no_cache=1
4314 fi
4315
4316 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4317
4318fi
4319
4320
4321 eval "$ac_cv_use_combobox"
4322 if test "$no_cache" != 1; then
4323 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4324 fi
4325
4326 if test "$wxUSE_COMBOBOX" = yes; then
4327 echo "$ac_t""yes" 1>&6
4328 else
4329 echo "$ac_t""no" 1>&6
4330 fi
4331
4332
4333 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
8dfea369 4334echo "configure:4335: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4335 no_cache=0
4336 # Check whether --enable-gauge or --disable-gauge was given.
4337if test "${enable_gauge+set}" = set; then
4338 enableval="$enable_gauge"
4339
4340 if test "$enableval" = yes; then
4341 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4342 else
4343 ac_cv_use_gauge='wxUSE_GAUGE=no'
4344 fi
4345
4346else
4347
4348 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4349 if test "x$LINE" != x ; then
4350 eval "DEFAULT_$LINE"
4351 else
4352 no_cache=1
4353 fi
4354
4355 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4356
4357fi
4358
4359
4360 eval "$ac_cv_use_gauge"
4361 if test "$no_cache" != 1; then
4362 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4363 fi
4364
4365 if test "$wxUSE_GAUGE" = yes; then
4366 echo "$ac_t""yes" 1>&6
4367 else
4368 echo "$ac_t""no" 1>&6
4369 fi
4370
4371
4372 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
8dfea369 4373echo "configure:4374: checking "for --enable-grid"" >&5
10f2d63a
VZ
4374 no_cache=0
4375 # Check whether --enable-grid or --disable-grid was given.
4376if test "${enable_grid+set}" = set; then
4377 enableval="$enable_grid"
4378
4379 if test "$enableval" = yes; then
4380 ac_cv_use_grid='wxUSE_GRID=yes'
4381 else
4382 ac_cv_use_grid='wxUSE_GRID=no'
4383 fi
4384
4385else
4386
4387 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4388 if test "x$LINE" != x ; then
4389 eval "DEFAULT_$LINE"
4390 else
4391 no_cache=1
4392 fi
4393
4394 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4395
4396fi
4397
4398
4399 eval "$ac_cv_use_grid"
4400 if test "$no_cache" != 1; then
4401 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4402 fi
4403
4404 if test "$wxUSE_GRID" = yes; then
4405 echo "$ac_t""yes" 1>&6
4406 else
4407 echo "$ac_t""no" 1>&6
4408 fi
4409
4410
4411 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
8dfea369 4412echo "configure:4413: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4413 no_cache=0
4414 # Check whether --enable-newgrid or --disable-newgrid was given.
4415if test "${enable_newgrid+set}" = set; then
4416 enableval="$enable_newgrid"
4417
4418 if test "$enableval" = yes; then
4419 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4420 else
4421 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4422 fi
4423
4424else
4425
4426 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4427 if test "x$LINE" != x ; then
4428 eval "DEFAULT_$LINE"
4429 else
4430 no_cache=1
4431 fi
4432
4433 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4434
4435fi
4436
4437
4438 eval "$ac_cv_use_newgrid"
4439 if test "$no_cache" != 1; then
4440 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4441 fi
4442
4443 if test "$wxUSE_NEW_GRID" = yes; then
4444 echo "$ac_t""yes" 1>&6
4445 else
4446 echo "$ac_t""no" 1>&6
4447 fi
4448
4449
4450 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
8dfea369 4451echo "configure:4452: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4452 no_cache=0
4453 # Check whether --enable-imaglist or --disable-imaglist was given.
4454if test "${enable_imaglist+set}" = set; then
4455 enableval="$enable_imaglist"
4456
4457 if test "$enableval" = yes; then
4458 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4459 else
4460 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4461 fi
4462
4463else
4464
4465 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4466 if test "x$LINE" != x ; then
4467 eval "DEFAULT_$LINE"
4468 else
4469 no_cache=1
4470 fi
4471
4472 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4473
4474fi
4475
4476
4477 eval "$ac_cv_use_imaglist"
4478 if test "$no_cache" != 1; then
4479 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4480 fi
4481
4482 if test "$wxUSE_IMAGLIST" = yes; then
4483 echo "$ac_t""yes" 1>&6
4484 else
4485 echo "$ac_t""no" 1>&6
4486 fi
4487
4488
4489 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
8dfea369 4490echo "configure:4491: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4491 no_cache=0
4492 # Check whether --enable-listbox or --disable-listbox was given.
4493if test "${enable_listbox+set}" = set; then
4494 enableval="$enable_listbox"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4498 else
4499 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4500 fi
4501
4502else
4503
4504 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4512
4513fi
4514
4515
4516 eval "$ac_cv_use_listbox"
4517 if test "$no_cache" != 1; then
4518 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4519 fi
4520
4521 if test "$wxUSE_LISTBOX" = yes; then
4522 echo "$ac_t""yes" 1>&6
4523 else
4524 echo "$ac_t""no" 1>&6
4525 fi
4526
4527
4528 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
8dfea369 4529echo "configure:4530: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4530 no_cache=0
4531 # Check whether --enable-listctrl or --disable-listctrl was given.
4532if test "${enable_listctrl+set}" = set; then
4533 enableval="$enable_listctrl"
4534
4535 if test "$enableval" = yes; then
4536 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4537 else
4538 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4539 fi
4540
4541else
4542
4543 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4544 if test "x$LINE" != x ; then
4545 eval "DEFAULT_$LINE"
4546 else
4547 no_cache=1
4548 fi
4549
4550 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4551
4552fi
4553
4554
4555 eval "$ac_cv_use_listctrl"
4556 if test "$no_cache" != 1; then
4557 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4558 fi
4559
4560 if test "$wxUSE_LISTCTRL" = yes; then
4561 echo "$ac_t""yes" 1>&6
4562 else
4563 echo "$ac_t""no" 1>&6
4564 fi
4565
4566
4567 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
8dfea369 4568echo "configure:4569: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4569 no_cache=0
4570 # Check whether --enable-notebook or --disable-notebook was given.
4571if test "${enable_notebook+set}" = set; then
4572 enableval="$enable_notebook"
4573
4574 if test "$enableval" = yes; then
4575 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4576 else
4577 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4578 fi
4579
4580else
4581
4582 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4583 if test "x$LINE" != x ; then
4584 eval "DEFAULT_$LINE"
4585 else
4586 no_cache=1
4587 fi
4588
4589 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4590
4591fi
4592
4593
4594 eval "$ac_cv_use_notebook"
4595 if test "$no_cache" != 1; then
4596 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4597 fi
4598
4599 if test "$wxUSE_NOTEBOOK" = yes; then
4600 echo "$ac_t""yes" 1>&6
4601 else
4602 echo "$ac_t""no" 1>&6
4603 fi
4604
4605
4606 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
8dfea369 4607echo "configure:4608: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4608 no_cache=0
4609 # Check whether --enable-radiobox or --disable-radiobox was given.
4610if test "${enable_radiobox+set}" = set; then
4611 enableval="$enable_radiobox"
4612
4613 if test "$enableval" = yes; then
4614 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4615 else
4616 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4617 fi
4618
4619else
4620
4621 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4622 if test "x$LINE" != x ; then
4623 eval "DEFAULT_$LINE"
4624 else
4625 no_cache=1
4626 fi
4627
4628 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4629
4630fi
4631
4632
4633 eval "$ac_cv_use_radiobox"
4634 if test "$no_cache" != 1; then
4635 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4636 fi
4637
4638 if test "$wxUSE_RADIOBOX" = yes; then
4639 echo "$ac_t""yes" 1>&6
4640 else
4641 echo "$ac_t""no" 1>&6
4642 fi
4643
4644
4645 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
8dfea369 4646echo "configure:4647: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4647 no_cache=0
4648 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4649if test "${enable_radiobtn+set}" = set; then
4650 enableval="$enable_radiobtn"
4651
4652 if test "$enableval" = yes; then
4653 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4654 else
4655 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4656 fi
4657
4658else
4659
4660 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4661 if test "x$LINE" != x ; then
4662 eval "DEFAULT_$LINE"
4663 else
4664 no_cache=1
4665 fi
4666
4667 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4668
4669fi
4670
4671
4672 eval "$ac_cv_use_radiobtn"
4673 if test "$no_cache" != 1; then
4674 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4675 fi
4676
4677 if test "$wxUSE_RADIOBTN" = yes; then
4678 echo "$ac_t""yes" 1>&6
4679 else
4680 echo "$ac_t""no" 1>&6
4681 fi
4682
4683
4684 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
8dfea369 4685echo "configure:4686: checking "for --enable-sash"" >&5
10f2d63a
VZ
4686 no_cache=0
4687 # Check whether --enable-sash or --disable-sash was given.
4688if test "${enable_sash+set}" = set; then
4689 enableval="$enable_sash"
4690
4691 if test "$enableval" = yes; then
4692 ac_cv_use_sash='wxUSE_SASH=yes'
4693 else
4694 ac_cv_use_sash='wxUSE_SASH=no'
4695 fi
4696
4697else
4698
4699 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4700 if test "x$LINE" != x ; then
4701 eval "DEFAULT_$LINE"
4702 else
4703 no_cache=1
4704 fi
4705
4706 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4707
4708fi
4709
4710
4711 eval "$ac_cv_use_sash"
4712 if test "$no_cache" != 1; then
4713 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4714 fi
4715
4716 if test "$wxUSE_SASH" = yes; then
4717 echo "$ac_t""yes" 1>&6
4718 else
4719 echo "$ac_t""no" 1>&6
4720 fi
4721
4722
4723 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
8dfea369 4724echo "configure:4725: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4725 no_cache=0
4726 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4727if test "${enable_scrollbar+set}" = set; then
4728 enableval="$enable_scrollbar"
4729
4730 if test "$enableval" = yes; then
4731 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4732 else
4733 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4734 fi
4735
4736else
4737
4738 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4739 if test "x$LINE" != x ; then
4740 eval "DEFAULT_$LINE"
4741 else
4742 no_cache=1
4743 fi
4744
4745 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4746
4747fi
4748
4749
4750 eval "$ac_cv_use_scrollbar"
4751 if test "$no_cache" != 1; then
4752 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4753 fi
4754
4755 if test "$wxUSE_SCROLLBAR" = yes; then
4756 echo "$ac_t""yes" 1>&6
4757 else
4758 echo "$ac_t""no" 1>&6
4759 fi
4760
4761
4762 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
8dfea369 4763echo "configure:4764: checking "for --enable-slider"" >&5
10f2d63a
VZ
4764 no_cache=0
4765 # Check whether --enable-slider or --disable-slider was given.
4766if test "${enable_slider+set}" = set; then
4767 enableval="$enable_slider"
4768
4769 if test "$enableval" = yes; then
4770 ac_cv_use_slider='wxUSE_SLIDER=yes'
4771 else
4772 ac_cv_use_slider='wxUSE_SLIDER=no'
4773 fi
4774
4775else
4776
4777 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4778 if test "x$LINE" != x ; then
4779 eval "DEFAULT_$LINE"
4780 else
4781 no_cache=1
4782 fi
4783
4784 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4785
4786fi
4787
4788
4789 eval "$ac_cv_use_slider"
4790 if test "$no_cache" != 1; then
4791 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4792 fi
4793
4794 if test "$wxUSE_SLIDER" = yes; then
4795 echo "$ac_t""yes" 1>&6
4796 else
4797 echo "$ac_t""no" 1>&6
4798 fi
4799
4800
4801 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
8dfea369 4802echo "configure:4803: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4803 no_cache=0
4804 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4805if test "${enable_spinbtn+set}" = set; then
4806 enableval="$enable_spinbtn"
4807
4808 if test "$enableval" = yes; then
4809 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4810 else
4811 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4812 fi
4813
4814else
4815
4816 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4817 if test "x$LINE" != x ; then
4818 eval "DEFAULT_$LINE"
4819 else
4820 no_cache=1
4821 fi
4822
4823 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4824
4825fi
4826
4827
4828 eval "$ac_cv_use_spinbtn"
4829 if test "$no_cache" != 1; then
4830 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4831 fi
4832
4833 if test "$wxUSE_SPINBTN" = yes; then
4834 echo "$ac_t""yes" 1>&6
4835 else
4836 echo "$ac_t""no" 1>&6
4837 fi
4838
4839
56cfaa52 4840 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
8dfea369 4841echo "configure:4842: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4842 no_cache=0
4843 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4844if test "${enable_spinctrl+set}" = set; then
4845 enableval="$enable_spinctrl"
4846
4847 if test "$enableval" = yes; then
4848 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4849 else
4850 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4851 fi
4852
4853else
4854
4855 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4856 if test "x$LINE" != x ; then
4857 eval "DEFAULT_$LINE"
4858 else
4859 no_cache=1
4860 fi
4861
4862 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4863
4864fi
4865
4866
4867 eval "$ac_cv_use_spinctrl"
4868 if test "$no_cache" != 1; then
4869 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4870 fi
4871
4872 if test "$wxUSE_SPINCTRL" = yes; then
4873 echo "$ac_t""yes" 1>&6
4874 else
4875 echo "$ac_t""no" 1>&6
4876 fi
4877
4878
10f2d63a 4879 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
8dfea369 4880echo "configure:4881: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4881 no_cache=0
4882 # Check whether --enable-splitter or --disable-splitter was given.
4883if test "${enable_splitter+set}" = set; then
4884 enableval="$enable_splitter"
4885
4886 if test "$enableval" = yes; then
4887 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4888 else
4889 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4890 fi
4891
4892else
4893
4894 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4895 if test "x$LINE" != x ; then
4896 eval "DEFAULT_$LINE"
4897 else
4898 no_cache=1
4899 fi
4900
4901 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4902
4903fi
4904
4905
4906 eval "$ac_cv_use_splitter"
4907 if test "$no_cache" != 1; then
4908 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4909 fi
4910
4911 if test "$wxUSE_SPLITTER" = yes; then
4912 echo "$ac_t""yes" 1>&6
4913 else
4914 echo "$ac_t""no" 1>&6
4915 fi
4916
4917
4918 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
8dfea369 4919echo "configure:4920: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4920 no_cache=0
4921 # Check whether --enable-statbmp or --disable-statbmp was given.
4922if test "${enable_statbmp+set}" = set; then
4923 enableval="$enable_statbmp"
4924
4925 if test "$enableval" = yes; then
4926 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4927 else
4928 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4929 fi
4930
4931else
4932
4933 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4934 if test "x$LINE" != x ; then
4935 eval "DEFAULT_$LINE"
4936 else
4937 no_cache=1
4938 fi
4939
4940 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4941
4942fi
4943
4944
4945 eval "$ac_cv_use_statbmp"
4946 if test "$no_cache" != 1; then
4947 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4948 fi
4949
4950 if test "$wxUSE_STATBMP" = yes; then
4951 echo "$ac_t""yes" 1>&6
4952 else
4953 echo "$ac_t""no" 1>&6
4954 fi
4955
4956
4957 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
8dfea369 4958echo "configure:4959: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4959 no_cache=0
4960 # Check whether --enable-statbox or --disable-statbox was given.
4961if test "${enable_statbox+set}" = set; then
4962 enableval="$enable_statbox"
4963
4964 if test "$enableval" = yes; then
4965 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4966 else
4967 ac_cv_use_statbox='wxUSE_STATBOX=no'
4968 fi
4969
4970else
4971
4972 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4973 if test "x$LINE" != x ; then
4974 eval "DEFAULT_$LINE"
4975 else
4976 no_cache=1
4977 fi
4978
4979 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4980
4981fi
4982
4983
4984 eval "$ac_cv_use_statbox"
4985 if test "$no_cache" != 1; then
4986 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4987 fi
4988
4989 if test "$wxUSE_STATBOX" = yes; then
4990 echo "$ac_t""yes" 1>&6
4991 else
4992 echo "$ac_t""no" 1>&6
4993 fi
4994
4995
4996 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
8dfea369 4997echo "configure:4998: checking "for --enable-statline"" >&5
10f2d63a
VZ
4998 no_cache=0
4999 # Check whether --enable-statline or --disable-statline was given.
5000if test "${enable_statline+set}" = set; then
5001 enableval="$enable_statline"
5002
5003 if test "$enableval" = yes; then
5004 ac_cv_use_statline='wxUSE_STATLINE=yes'
5005 else
5006 ac_cv_use_statline='wxUSE_STATLINE=no'
5007 fi
5008
5009else
5010
5011 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5012 if test "x$LINE" != x ; then
5013 eval "DEFAULT_$LINE"
5014 else
5015 no_cache=1
5016 fi
5017
5018 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5019
5020fi
5021
5022
5023 eval "$ac_cv_use_statline"
5024 if test "$no_cache" != 1; then
5025 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5026 fi
5027
5028 if test "$wxUSE_STATLINE" = yes; then
5029 echo "$ac_t""yes" 1>&6
5030 else
5031 echo "$ac_t""no" 1>&6
5032 fi
5033
5034
5035 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
8dfea369 5036echo "configure:5037: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5037 no_cache=0
5038 # Check whether --enable-statusbar or --disable-statusbar was given.
5039if test "${enable_statusbar+set}" = set; then
5040 enableval="$enable_statusbar"
5041
5042 if test "$enableval" = yes; then
5043 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5044 else
5045 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5046 fi
5047
5048else
5049
5050 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5051 if test "x$LINE" != x ; then
5052 eval "DEFAULT_$LINE"
5053 else
5054 no_cache=1
5055 fi
5056
5057 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5058
5059fi
5060
5061
5062 eval "$ac_cv_use_statusbar"
5063 if test "$no_cache" != 1; then
5064 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5065 fi
5066
5067 if test "$wxUSE_STATUSBAR" = yes; then
5068 echo "$ac_t""yes" 1>&6
5069 else
5070 echo "$ac_t""no" 1>&6
5071 fi
5072
5073
5074 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
8dfea369 5075echo "configure:5076: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5076 no_cache=0
5077 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5078if test "${enable_tabdialog+set}" = set; then
5079 enableval="$enable_tabdialog"
5080
5081 if test "$enableval" = yes; then
5082 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5083 else
5084 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5085 fi
5086
5087else
5088
5089 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5090 if test "x$LINE" != x ; then
5091 eval "DEFAULT_$LINE"
5092 else
5093 no_cache=1
5094 fi
5095
5096 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5097
5098fi
5099
5100
5101 eval "$ac_cv_use_tabdialog"
5102 if test "$no_cache" != 1; then
5103 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5104 fi
5105
5106 if test "$wxUSE_TABDIALOG" = yes; then
5107 echo "$ac_t""yes" 1>&6
5108 else
5109 echo "$ac_t""no" 1>&6
5110 fi
5111
5112
5113 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
8dfea369 5114echo "configure:5115: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5115 no_cache=0
5116 # Check whether --enable-toolbar or --disable-toolbar was given.
5117if test "${enable_toolbar+set}" = set; then
5118 enableval="$enable_toolbar"
5119
5120 if test "$enableval" = yes; then
5121 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5122 else
5123 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5124 fi
5125
5126else
5127
5128 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5129 if test "x$LINE" != x ; then
5130 eval "DEFAULT_$LINE"
5131 else
5132 no_cache=1
5133 fi
5134
5135 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5136
5137fi
5138
5139
5140 eval "$ac_cv_use_toolbar"
5141 if test "$no_cache" != 1; then
5142 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5143 fi
5144
5145 if test "$wxUSE_TOOLBAR" = yes; then
5146 echo "$ac_t""yes" 1>&6
5147 else
5148 echo "$ac_t""no" 1>&6
5149 fi
5150
5151
360d6699 5152 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
8dfea369 5153echo "configure:5154: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5154 no_cache=0
5155 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5156if test "${enable_tbarnative+set}" = set; then
5157 enableval="$enable_tbarnative"
5158
5159 if test "$enableval" = yes; then
5160 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5161 else
5162 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5163 fi
5164
5165else
5166
5167 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5168 if test "x$LINE" != x ; then
5169 eval "DEFAULT_$LINE"
5170 else
5171 no_cache=1
5172 fi
5173
5174 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5175
5176fi
5177
5178
5179 eval "$ac_cv_use_tbarnative"
5180 if test "$no_cache" != 1; then
5181 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5182 fi
5183
5184 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5185 echo "$ac_t""yes" 1>&6
5186 else
5187 echo "$ac_t""no" 1>&6
5188 fi
5189
5190
5191 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
8dfea369 5192echo "configure:5193: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5193 no_cache=0
5194 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5195if test "${enable_tbarsmpl+set}" = set; then
5196 enableval="$enable_tbarsmpl"
5197
5198 if test "$enableval" = yes; then
5199 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5200 else
5201 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5202 fi
5203
5204else
5205
5206 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5207 if test "x$LINE" != x ; then
5208 eval "DEFAULT_$LINE"
5209 else
5210 no_cache=1
5211 fi
5212
5213 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5214
5215fi
5216
5217
5218 eval "$ac_cv_use_tbarsmpl"
5219 if test "$no_cache" != 1; then
5220 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5221 fi
5222
5223 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5224 echo "$ac_t""yes" 1>&6
5225 else
5226 echo "$ac_t""no" 1>&6
5227 fi
5228
5229
10f2d63a 5230 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
8dfea369 5231echo "configure:5232: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5232 no_cache=0
5233 # Check whether --enable-treectrl or --disable-treectrl was given.
5234if test "${enable_treectrl+set}" = set; then
5235 enableval="$enable_treectrl"
5236
5237 if test "$enableval" = yes; then
5238 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5239 else
5240 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5241 fi
5242
5243else
5244
5245 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5246 if test "x$LINE" != x ; then
5247 eval "DEFAULT_$LINE"
5248 else
5249 no_cache=1
5250 fi
5251
5252 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5253
5254fi
5255
5256
5257 eval "$ac_cv_use_treectrl"
5258 if test "$no_cache" != 1; then
5259 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5260 fi
5261
5262 if test "$wxUSE_TREECTRL" = yes; then
5263 echo "$ac_t""yes" 1>&6
5264 else
5265 echo "$ac_t""no" 1>&6
5266 fi
5267
5268
5269
5270
5271 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
8dfea369 5272echo "configure:5273: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5273 no_cache=0
5274 # Check whether --enable-commondlg or --disable-commondlg was given.
5275if test "${enable_commondlg+set}" = set; then
5276 enableval="$enable_commondlg"
5277
5278 if test "$enableval" = yes; then
5279 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5280 else
5281 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5282 fi
5283
5284else
5285
5286 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5287 if test "x$LINE" != x ; then
5288 eval "DEFAULT_$LINE"
5289 else
5290 no_cache=1
5291 fi
5292
5293 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5294
5295fi
5296
5297
5298 eval "$ac_cv_use_commondlg"
5299 if test "$no_cache" != 1; then
5300 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5301 fi
5302
5303 if test "$wxUSE_COMMONDLGS" = yes; then
5304 echo "$ac_t""yes" 1>&6
5305 else
5306 echo "$ac_t""no" 1>&6
5307 fi
5308
5309
5310 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
8dfea369 5311echo "configure:5312: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5312 no_cache=0
5313 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5314if test "${enable_dirdlg+set}" = set; then
5315 enableval="$enable_dirdlg"
5316
5317 if test "$enableval" = yes; then
5318 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5319 else
5320 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5321 fi
5322
5323else
5324
5325 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5326 if test "x$LINE" != x ; then
5327 eval "DEFAULT_$LINE"
5328 else
5329 no_cache=1
5330 fi
5331
5332 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5333
5334fi
5335
5336
5337 eval "$ac_cv_use_dirdlg"
5338 if test "$no_cache" != 1; then
5339 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5340 fi
5341
5342 if test "$wxUSE_DIRDLG" = yes; then
5343 echo "$ac_t""yes" 1>&6
5344 else
5345 echo "$ac_t""no" 1>&6
5346 fi
5347
5348
5349 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
8dfea369 5350echo "configure:5351: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5351 no_cache=0
5352 # Check whether --enable-textdlg or --disable-textdlg was given.
5353if test "${enable_textdlg+set}" = set; then
5354 enableval="$enable_textdlg"
5355
5356 if test "$enableval" = yes; then
5357 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5358 else
5359 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5360 fi
5361
5362else
5363
5364 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5365 if test "x$LINE" != x ; then
5366 eval "DEFAULT_$LINE"
5367 else
5368 no_cache=1
5369 fi
5370
5371 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5372
5373fi
5374
5375
5376 eval "$ac_cv_use_textdlg"
5377 if test "$no_cache" != 1; then
5378 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5379 fi
5380
5381 if test "$wxUSE_TEXTDLG" = yes; then
5382 echo "$ac_t""yes" 1>&6
5383 else
5384 echo "$ac_t""no" 1>&6
5385 fi
5386
5387
5388 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
8dfea369 5389echo "configure:5390: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5390 no_cache=0
5391 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5392if test "${enable_tipdlg+set}" = set; then
5393 enableval="$enable_tipdlg"
5394
5395 if test "$enableval" = yes; then
5396 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5397 else
5398 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5399 fi
5400
5401else
5402
5403 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5404 if test "x$LINE" != x ; then
5405 eval "DEFAULT_$LINE"
5406 else
5407 no_cache=1
5408 fi
5409
5410 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5411
5412fi
5413
5414
5415 eval "$ac_cv_use_tipdlg"
5416 if test "$no_cache" != 1; then
5417 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5418 fi
5419
5420 if test "$wxUSE_STARTUP_TIPS" = yes; then
5421 echo "$ac_t""yes" 1>&6
5422 else
5423 echo "$ac_t""no" 1>&6
5424 fi
5425
5426
5427 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
8dfea369 5428echo "configure:5429: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5429 no_cache=0
5430 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5431if test "${enable_progressdlg+set}" = set; then
5432 enableval="$enable_progressdlg"
5433
5434 if test "$enableval" = yes; then
5435 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5436 else
5437 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5438 fi
5439
5440else
5441
5442 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5443 if test "x$LINE" != x ; then
5444 eval "DEFAULT_$LINE"
5445 else
5446 no_cache=1
5447 fi
5448
5449 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5450
5451fi
5452
5453
5454 eval "$ac_cv_use_progressdlg"
5455 if test "$no_cache" != 1; then
5456 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5457 fi
5458
5459 if test "$wxUSE_PROGRESSDLG" = yes; then
5460 echo "$ac_t""yes" 1>&6
5461 else
5462 echo "$ac_t""no" 1>&6
5463 fi
5464
5465
5466 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
8dfea369 5467echo "configure:5468: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5468 no_cache=0
5469 # Check whether --enable-miniframe or --disable-miniframe was given.
5470if test "${enable_miniframe+set}" = set; then
5471 enableval="$enable_miniframe"
5472
5473 if test "$enableval" = yes; then
5474 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5475 else
5476 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5477 fi
5478
5479else
5480
5481 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5482 if test "x$LINE" != x ; then
5483 eval "DEFAULT_$LINE"
5484 else
5485 no_cache=1
5486 fi
5487
5488 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5489
5490fi
5491
5492
5493 eval "$ac_cv_use_miniframe"
5494 if test "$no_cache" != 1; then
5495 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5496 fi
5497
5498 if test "$wxUSE_MINIFRAME" = yes; then
5499 echo "$ac_t""yes" 1>&6
5500 else
5501 echo "$ac_t""no" 1>&6
5502 fi
5503
5504
5505 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
8dfea369 5506echo "configure:5507: checking "for --enable-html"" >&5
10f2d63a
VZ
5507 no_cache=0
5508 # Check whether --enable-html or --disable-html was given.
5509if test "${enable_html+set}" = set; then
5510 enableval="$enable_html"
5511
5512 if test "$enableval" = yes; then
5513 ac_cv_use_html='wxUSE_HTML=yes'
5514 else
5515 ac_cv_use_html='wxUSE_HTML=no'
5516 fi
5517
5518else
5519
5520 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5521 if test "x$LINE" != x ; then
5522 eval "DEFAULT_$LINE"
5523 else
5524 no_cache=1
5525 fi
5526
5527 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5528
5529fi
5530
5531
5532 eval "$ac_cv_use_html"
5533 if test "$no_cache" != 1; then
5534 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5535 fi
5536
5537 if test "$wxUSE_HTML" = yes; then
5538 echo "$ac_t""yes" 1>&6
5539 else
5540 echo "$ac_t""no" 1>&6
5541 fi
5542
5543
5544 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
8dfea369 5545echo "configure:5546: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5546 no_cache=0
5547 # Check whether --enable-tooltips or --disable-tooltips was given.
5548if test "${enable_tooltips+set}" = set; then
5549 enableval="$enable_tooltips"
5550
5551 if test "$enableval" = yes; then
5552 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5553 else
5554 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5555 fi
5556
5557else
5558
5559 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5560 if test "x$LINE" != x ; then
5561 eval "DEFAULT_$LINE"
5562 else
5563 no_cache=1
5564 fi
5565
5566 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5567
5568fi
5569
5570
5571 eval "$ac_cv_use_tooltips"
5572 if test "$no_cache" != 1; then
5573 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5574 fi
5575
5576 if test "$wxUSE_TOOLTIPS" = yes; then
5577 echo "$ac_t""yes" 1>&6
5578 else
5579 echo "$ac_t""no" 1>&6
5580 fi
5581
5582
5583 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
8dfea369 5584echo "configure:5585: checking "for --enable-splines"" >&5
10f2d63a
VZ
5585 no_cache=0
5586 # Check whether --enable-splines or --disable-splines was given.
5587if test "${enable_splines+set}" = set; then
5588 enableval="$enable_splines"
5589
5590 if test "$enableval" = yes; then
5591 ac_cv_use_splines='wxUSE_SPLINES=yes'
5592 else
5593 ac_cv_use_splines='wxUSE_SPLINES=no'
5594 fi
5595
5596else
5597
5598 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5599 if test "x$LINE" != x ; then
5600 eval "DEFAULT_$LINE"
5601 else
5602 no_cache=1
5603 fi
5604
5605 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5606
5607fi
5608
5609
5610 eval "$ac_cv_use_splines"
5611 if test "$no_cache" != 1; then
5612 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5613 fi
5614
5615 if test "$wxUSE_SPLINES" = yes; then
5616 echo "$ac_t""yes" 1>&6
5617 else
5618 echo "$ac_t""no" 1>&6
5619 fi
5620
5621
5622 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
8dfea369 5623echo "configure:5624: checking "for --enable-validators"" >&5
10f2d63a
VZ
5624 no_cache=0
5625 # Check whether --enable-validators or --disable-validators was given.
5626if test "${enable_validators+set}" = set; then
5627 enableval="$enable_validators"
5628
5629 if test "$enableval" = yes; then
5630 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5631 else
5632 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5633 fi
5634
5635else
5636
5637 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5638 if test "x$LINE" != x ; then
5639 eval "DEFAULT_$LINE"
5640 else
5641 no_cache=1
5642 fi
5643
5644 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5645
5646fi
5647
5648
5649 eval "$ac_cv_use_validators"
5650 if test "$no_cache" != 1; then
5651 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5652 fi
5653
5654 if test "$wxUSE_VALIDATORS" = yes; then
5655 echo "$ac_t""yes" 1>&6
5656 else
5657 echo "$ac_t""no" 1>&6
5658 fi
5659
5660
5661 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
8dfea369 5662echo "configure:5663: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5663 no_cache=0
5664 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5665if test "${enable_busyinfo+set}" = set; then
5666 enableval="$enable_busyinfo"
5667
5668 if test "$enableval" = yes; then
5669 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5670 else
5671 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5672 fi
5673
5674else
5675
5676 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5677 if test "x$LINE" != x ; then
5678 eval "DEFAULT_$LINE"
5679 else
5680 no_cache=1
5681 fi
5682
5683 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5684
5685fi
5686
5687
5688 eval "$ac_cv_use_busyinfo"
5689 if test "$no_cache" != 1; then
5690 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5691 fi
5692
5693 if test "$wxUSE_BUSYINFO" = yes; then
5694 echo "$ac_t""yes" 1>&6
5695 else
5696 echo "$ac_t""no" 1>&6
5697 fi
5698
5699
9b33fe02 5700 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
8dfea369 5701echo "configure:5702: checking "for --enable-plot"" >&5
9b33fe02
VZ
5702 no_cache=0
5703 # Check whether --enable-plot or --disable-plot was given.
5704if test "${enable_plot+set}" = set; then
5705 enableval="$enable_plot"
5706
5707 if test "$enableval" = yes; then
5708 ac_cv_use_plot='wxUSE_PLOT=yes'
5709 else
5710 ac_cv_use_plot='wxUSE_PLOT=no'
5711 fi
5712
5713else
5714
5715 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5716 if test "x$LINE" != x ; then
5717 eval "DEFAULT_$LINE"
5718 else
5719 no_cache=1
5720 fi
5721
5722 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5723
5724fi
5725
5726
5727 eval "$ac_cv_use_plot"
5728 if test "$no_cache" != 1; then
5729 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5730 fi
5731
5732 if test "$wxUSE_PLOT" = yes; then
5733 echo "$ac_t""yes" 1>&6
5734 else
5735 echo "$ac_t""no" 1>&6
5736 fi
5737
5738
10f2d63a
VZ
5739
5740
5741 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
8dfea369 5742echo "configure:5743: checking "for --enable-gif"" >&5
10f2d63a
VZ
5743 no_cache=0
5744 # Check whether --enable-gif or --disable-gif was given.
5745if test "${enable_gif+set}" = set; then
5746 enableval="$enable_gif"
5747
5748 if test "$enableval" = yes; then
5749 ac_cv_use_gif='wxUSE_GIF=yes'
5750 else
5751 ac_cv_use_gif='wxUSE_GIF=no'
5752 fi
5753
5754else
5755
5756 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5757 if test "x$LINE" != x ; then
5758 eval "DEFAULT_$LINE"
5759 else
5760 no_cache=1
5761 fi
5762
5763 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5764
5765fi
5766
5767
5768 eval "$ac_cv_use_gif"
5769 if test "$no_cache" != 1; then
5770 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5771 fi
5772
5773 if test "$wxUSE_GIF" = yes; then
5774 echo "$ac_t""yes" 1>&6
5775 else
5776 echo "$ac_t""no" 1>&6
5777 fi
5778
5779
5780 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
8dfea369 5781echo "configure:5782: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5782 no_cache=0
5783 # Check whether --enable-pcx or --disable-pcx was given.
5784if test "${enable_pcx+set}" = set; then
5785 enableval="$enable_pcx"
5786
5787 if test "$enableval" = yes; then
5788 ac_cv_use_pcx='wxUSE_PCX=yes'
5789 else
5790 ac_cv_use_pcx='wxUSE_PCX=no'
5791 fi
5792
5793else
5794
5795 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5796 if test "x$LINE" != x ; then
5797 eval "DEFAULT_$LINE"
5798 else
5799 no_cache=1
5800 fi
5801
5802 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5803
5804fi
5805
5806
5807 eval "$ac_cv_use_pcx"
5808 if test "$no_cache" != 1; then
5809 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5810 fi
5811
5812 if test "$wxUSE_PCX" = yes; then
5813 echo "$ac_t""yes" 1>&6
5814 else
5815 echo "$ac_t""no" 1>&6
5816 fi
5817
5818
5819 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
8dfea369 5820echo "configure:5821: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5821 no_cache=0
5822 # Check whether --enable-pnm or --disable-pnm was given.
5823if test "${enable_pnm+set}" = set; then
5824 enableval="$enable_pnm"
5825
5826 if test "$enableval" = yes; then
5827 ac_cv_use_pnm='wxUSE_PNM=yes'
5828 else
5829 ac_cv_use_pnm='wxUSE_PNM=no'
5830 fi
5831
5832else
5833
5834 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5835 if test "x$LINE" != x ; then
5836 eval "DEFAULT_$LINE"
5837 else
5838 no_cache=1
5839 fi
5840
5841 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5842
5843fi
5844
5845
5846 eval "$ac_cv_use_pnm"
5847 if test "$no_cache" != 1; then
5848 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5849 fi
5850
5851 if test "$wxUSE_PNM" = yes; then
5852 echo "$ac_t""yes" 1>&6
5853 else
5854 echo "$ac_t""no" 1>&6
5855 fi
5856
5857
b12915c1
VZ
5858fi
5859
10f2d63a
VZ
5860
5861 echo "saving argument cache $wx_arg_cache_file"
5862 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5863
5864
5865
5866echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8dfea369 5867echo "configure:5868: checking for toolkit" >&5
10f2d63a
VZ
5868
5869if test "$wxUSE_GUI" = "yes"; then
5870
b12915c1
VZ
5871if test "$USE_BEOS" = 1; then
5872 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5873fi
5874
10f2d63a
VZ
5875if test "$TOOLKIT_GIVEN" = 1; then
5876 for toolkit in `echo $ALL_TOOLKITS`; do
5877 var=wxUSE_$toolkit
5878 eval "value=\$${var}"
5879 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5880 done
5881else
5882 for toolkit in `echo $ALL_TOOLKITS`; do
5883 if test "$has_toolkit_in_cache" != 1; then
5884 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5885 else
5886 var=DEFAULT_wxUSE_$toolkit
5887 fi
5888 eval "wxUSE_$toolkit=\$${var}"
5889 done
5890fi
5891
ec14dd32 5892NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 5893
ec14dd32
VZ
5894case "${host}" in
5895 *-pc-os2_emx )
5896 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5897 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5898 LEX_STEM="lexyy"
5899 ;;
5900 *)
5901 PATH_IFS=':'
5902 LEX_STEM="lex.yy"
5903 ;;
5904esac
10f2d63a
VZ
5905
5906case "$NUM_TOOLKITS" in
5907 1)
5908 ;;
5909 0)
5910 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5911 ;;
5912 *)
5913 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5914esac
5915
5916for toolkit in `echo $ALL_TOOLKITS`; do
5917 var=wxUSE_$toolkit
5918 eval "value=\$${var}"
5919 if test "x$value" != x; then
5920 cache_var=CACHE_$toolkit
5921 eval "cache=\$${cache_var}"
5922 if test "$cache" = 1; then
5923 echo "$var=$value" >> ${wx_arg_cache_file}
5924 fi
5925 if test "$value" = 1; then
5926 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5927 fi
5928 fi
5929done
5930
5931else
cf27ef00 5932 PATH_IFS=':'
10f2d63a
VZ
5933 echo "$ac_t""base only" 1>&6
5934fi
5935
5936
5937cat > confcache <<\EOF
5938# This file is a shell script that caches the results of configure
5939# tests run on this system so they can be shared between configure
5940# scripts and configure runs. It is not useful on other systems.
5941# If it contains results you don't want to keep, you may remove or edit it.
5942#
5943# By default, configure uses ./config.cache as the cache file,
5944# creating it if it does not exist already. You can give configure
5945# the --cache-file=FILE option to use a different cache file; that is
5946# what configure does when it calls configure scripts in
5947# subdirectories, so they share the cache.
5948# Giving --cache-file=/dev/null disables caching, for debugging configure.
5949# config.status only pays attention to the cache file if you give it the
5950# --recheck option to rerun configure.
5951#
5952EOF
5953# The following way of writing the cache mishandles newlines in values,
5954# but we know of no workaround that is simple, portable, and efficient.
5955# So, don't put newlines in cache variables' values.
5956# Ultrix sh set writes to stderr and can't be redirected directly,
5957# and sets the high bit in the cache file unless we assign to the vars.
5958(set) 2>&1 |
5959 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5960 *ac_space=\ *)
5961 # `set' does not quote correctly, so add quotes (double-quote substitution
5962 # turns \\\\ into \\, and sed turns \\ into \).
5963 sed -n \
5964 -e "s/'/'\\\\''/g" \
5965 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5966 ;;
5967 *)
5968 # `set' quotes correctly as required by POSIX, so do not add quotes.
5969 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5970 ;;
5971 esac >> confcache
5972if cmp -s $cache_file confcache; then
5973 :
5974else
5975 if test -w $cache_file; then
5976 echo "updating cache $cache_file"
5977 cat confcache > $cache_file
5978 else
5979 echo "not updating unwritable cache $cache_file"
5980 fi
5981fi
5982rm -f confcache
5983
5984
e59890c3 5985if test "$build" != "$host" ; then
10f2d63a
VZ
5986 CC=$host_alias-gcc
5987 CXX=$host_alias-c++
5988 AR=$host_alias-ar
5989 RANLIB=$host_alias-ranlib
5990 DLLTOOL=$host_alias-dlltool
32832908 5991 RESCOMP=$host_alias-windres
10f2d63a
VZ
5992 LD=$host_alias-ld
5993 NM=$host_alias-nm
5994 STRIP=$host_alias-strip
10f2d63a
VZ
5995fi
5996
5997# Extract the first word of "gcc", so it can be a program name with args.
5998set dummy gcc; ac_word=$2
5999echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8dfea369 6000echo "configure:6001: checking for $ac_word" >&5
10f2d63a
VZ
6001if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6003else
6004 if test -n "$CC"; then
6005 ac_cv_prog_CC="$CC" # Let the user override the test.
6006else
6007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6008 ac_dummy="$PATH"
6009 for ac_dir in $ac_dummy; do
6010 test -z "$ac_dir" && ac_dir=.
6011 if test -f $ac_dir/$ac_word; then
6012 ac_cv_prog_CC="gcc"
6013 break
6014 fi
6015 done
6016 IFS="$ac_save_ifs"
6017fi
6018fi
6019CC="$ac_cv_prog_CC"
6020if test -n "$CC"; then
6021 echo "$ac_t""$CC" 1>&6
6022else
6023 echo "$ac_t""no" 1>&6
6024fi
6025
6026if test -z "$CC"; then
6027 # Extract the first word of "cc", so it can be a program name with args.
6028set dummy cc; ac_word=$2
6029echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8dfea369 6030echo "configure:6031: checking for $ac_word" >&5
10f2d63a
VZ
6031if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6032 echo $ac_n "(cached) $ac_c" 1>&6
6033else
6034 if test -n "$CC"; then
6035 ac_cv_prog_CC="$CC" # Let the user override the test.
6036else
6037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6038 ac_prog_rejected=no
6039 ac_dummy="$PATH"
6040 for ac_dir in $ac_dummy; do
6041 test -z "$ac_dir" && ac_dir=.
6042 if test -f $ac_dir/$ac_word; then
6043 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6044 ac_prog_rejected=yes
6045 continue
6046 fi
6047 ac_cv_prog_CC="cc"
6048 break
6049 fi
6050 done
6051 IFS="$ac_save_ifs"
6052if test $ac_prog_rejected = yes; then
6053 # We found a bogon in the path, so make sure we never use it.
6054 set dummy $ac_cv_prog_CC
6055 shift
6056 if test $# -gt 0; then
6057 # We chose a different compiler from the bogus one.
6058 # However, it has the same basename, so the bogon will be chosen
6059 # first if we set CC to just the basename; use the full file name.
6060 shift
6061 set dummy "$ac_dir/$ac_word" "$@"
6062 shift
6063 ac_cv_prog_CC="$@"
6064 fi
6065fi
6066fi
6067fi
6068CC="$ac_cv_prog_CC"
6069if test -n "$CC"; then
6070 echo "$ac_t""$CC" 1>&6
6071else
6072 echo "$ac_t""no" 1>&6
6073fi
6074
6075 if test -z "$CC"; then
6076 case "`uname -s`" in
6077 *win32* | *WIN32*)
6078 # Extract the first word of "cl", so it can be a program name with args.
6079set dummy cl; ac_word=$2
6080echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8dfea369 6081echo "configure:6082: checking for $ac_word" >&5
10f2d63a
VZ
6082if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6083 echo $ac_n "(cached) $ac_c" 1>&6
6084else
6085 if test -n "$CC"; then
6086 ac_cv_prog_CC="$CC" # Let the user override the test.
6087else
6088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6089 ac_dummy="$PATH"
6090 for ac_dir in $ac_dummy; do
6091 test -z "$ac_dir" && ac_dir=.
6092 if test -f $ac_dir/$ac_word; then
6093 ac_cv_prog_CC="cl"
6094 break
6095 fi
6096 done
6097 IFS="$ac_save_ifs"
6098fi
6099fi
6100CC="$ac_cv_prog_CC"
6101if test -n "$CC"; then
6102 echo "$ac_t""$CC" 1>&6
6103else
6104 echo "$ac_t""no" 1>&6
6105fi
6106 ;;
6107 esac
6108 fi
6109 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6110fi
6111
6112echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8dfea369 6113echo "configure:6114: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6114
6115ac_ext=c
6116# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6117ac_cpp='$CPP $CPPFLAGS'
6118ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6119ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6120cross_compiling=$ac_cv_prog_cc_cross
6121
6122cat > conftest.$ac_ext << EOF
6123
8dfea369 6124#line 6125 "configure"
10f2d63a
VZ
6125#include "confdefs.h"
6126
6127main(){return(0);}
6128EOF
8dfea369 6129if { (eval echo configure:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6130 ac_cv_prog_cc_works=yes
6131 # If we can't run a trivial program, we are probably using a cross compiler.
6132 if (./conftest; exit) 2>/dev/null; then
6133 ac_cv_prog_cc_cross=no
6134 else
6135 ac_cv_prog_cc_cross=yes
6136 fi
6137else
6138 echo "configure: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6140 ac_cv_prog_cc_works=no
6141fi
6142rm -fr conftest*
6143ac_ext=c
6144# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6145ac_cpp='$CPP $CPPFLAGS'
6146ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6147ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6148cross_compiling=$ac_cv_prog_cc_cross
6149
6150echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6151if test $ac_cv_prog_cc_works = no; then
6152 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6153fi
6154echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8dfea369 6155echo "configure:6156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6156echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6157cross_compiling=$ac_cv_prog_cc_cross
6158
6159echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8dfea369 6160echo "configure:6161: checking whether we are using GNU C" >&5
10f2d63a
VZ
6161if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6162 echo $ac_n "(cached) $ac_c" 1>&6
6163else
6164 cat > conftest.c <<EOF
6165#ifdef __GNUC__
6166 yes;
6167#endif
6168EOF
8dfea369 6169if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6170 ac_cv_prog_gcc=yes
6171else
6172 ac_cv_prog_gcc=no
6173fi
6174fi
6175
6176echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6177
6178if test $ac_cv_prog_gcc = yes; then
6179 GCC=yes
6180else
6181 GCC=
6182fi
6183
6184ac_test_CFLAGS="${CFLAGS+set}"
6185ac_save_CFLAGS="$CFLAGS"
6186CFLAGS=
6187echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8dfea369 6188echo "configure:6189: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6189if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6190 echo $ac_n "(cached) $ac_c" 1>&6
6191else
6192 echo 'void f(){}' > conftest.c
6193if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6194 ac_cv_prog_cc_g=yes
6195else
6196 ac_cv_prog_cc_g=no
6197fi
6198rm -f conftest*
6199
6200fi
6201
6202echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6203if test "$ac_test_CFLAGS" = set; then
6204 CFLAGS="$ac_save_CFLAGS"
6205elif test $ac_cv_prog_cc_g = yes; then
6206 if test "$GCC" = yes; then
6207 CFLAGS="-g -O2"
6208 else
6209 CFLAGS="-g"
6210 fi
6211else
6212 if test "$GCC" = yes; then
6213 CFLAGS="-O2"
6214 else
6215 CFLAGS=
6216 fi
6217fi
6218
6219
6220CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6221
6222echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8dfea369 6223echo "configure:6224: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6224# On Suns, sometimes $CPP names a directory.
6225if test -n "$CPP" && test -d "$CPP"; then
6226 CPP=
6227fi
6228if test -z "$CPP"; then
6229if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6230 echo $ac_n "(cached) $ac_c" 1>&6
6231else
6232 # This must be in double quotes, not single quotes, because CPP may get
6233 # substituted into the Makefile and "${CC-cc}" will confuse make.
6234 CPP="${CC-cc} -E"
6235 # On the NeXT, cc -E runs the code through the compiler's parser,
6236 # not just through cpp.
6237 cat > conftest.$ac_ext <<EOF
8dfea369 6238#line 6239 "configure"
10f2d63a
VZ
6239#include "confdefs.h"
6240#include <assert.h>
6241Syntax Error
6242EOF
6243ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 6244{ (eval echo configure:6245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6245ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6246if test -z "$ac_err"; then
6247 :
6248else
6249 echo "$ac_err" >&5
6250 echo "configure: failed program was:" >&5
6251 cat conftest.$ac_ext >&5
6252 rm -rf conftest*
6253 CPP="${CC-cc} -E -traditional-cpp"
6254 cat > conftest.$ac_ext <<EOF
8dfea369 6255#line 6256 "configure"
10f2d63a
VZ
6256#include "confdefs.h"
6257#include <assert.h>
6258Syntax Error
6259EOF
6260ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 6261{ (eval echo configure:6262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6262ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6263if test -z "$ac_err"; then
6264 :
6265else
6266 echo "$ac_err" >&5
6267 echo "configure: failed program was:" >&5
6268 cat conftest.$ac_ext >&5
6269 rm -rf conftest*
6270 CPP="${CC-cc} -nologo -E"
6271 cat > conftest.$ac_ext <<EOF
8dfea369 6272#line 6273 "configure"
10f2d63a
VZ
6273#include "confdefs.h"
6274#include <assert.h>
6275Syntax Error
6276EOF
6277ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 6278{ (eval echo configure:6279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6279ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6280if test -z "$ac_err"; then
6281 :
6282else
6283 echo "$ac_err" >&5
6284 echo "configure: failed program was:" >&5
6285 cat conftest.$ac_ext >&5
6286 rm -rf conftest*
6287 CPP=/lib/cpp
6288fi
6289rm -f conftest*
6290fi
6291rm -f conftest*
6292fi
6293rm -f conftest*
6294 ac_cv_prog_CPP="$CPP"
6295fi
6296 CPP="$ac_cv_prog_CPP"
6297else
6298 ac_cv_prog_CPP="$CPP"
6299fi
6300echo "$ac_t""$CPP" 1>&6
6301
6302
6303if test $ac_cv_prog_gcc = yes; then
6304 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8dfea369 6305echo "configure:6306: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6306if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6307 echo $ac_n "(cached) $ac_c" 1>&6
6308else
6309 ac_pattern="Autoconf.*'x'"
6310 cat > conftest.$ac_ext <<EOF
8dfea369 6311#line 6312 "configure"
10f2d63a
VZ
6312#include "confdefs.h"
6313#include <sgtty.h>
6314Autoconf TIOCGETP
6315EOF
6316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6317 egrep "$ac_pattern" >/dev/null 2>&1; then
6318 rm -rf conftest*
6319 ac_cv_prog_gcc_traditional=yes
6320else
6321 rm -rf conftest*
6322 ac_cv_prog_gcc_traditional=no
6323fi
6324rm -f conftest*
6325
6326
6327 if test $ac_cv_prog_gcc_traditional = no; then
6328 cat > conftest.$ac_ext <<EOF
8dfea369 6329#line 6330 "configure"
10f2d63a
VZ
6330#include "confdefs.h"
6331#include <termio.h>
6332Autoconf TCGETA
6333EOF
6334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6335 egrep "$ac_pattern" >/dev/null 2>&1; then
6336 rm -rf conftest*
6337 ac_cv_prog_gcc_traditional=yes
6338fi
6339rm -f conftest*
6340
6341 fi
6342fi
6343
6344echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6345 if test $ac_cv_prog_gcc_traditional = yes; then
6346 CC="$CC -traditional"
6347 fi
6348fi
6349
6350
6351
6352ac_ext=C
6353# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6354ac_cpp='$CXXCPP $CPPFLAGS'
6355ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6356ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6357cross_compiling=$ac_cv_prog_cxx_cross
6358
6359
6360for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6361do
6362# Extract the first word of "$ac_prog", so it can be a program name with args.
6363set dummy $ac_prog; ac_word=$2
6364echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8dfea369 6365echo "configure:6366: checking for $ac_word" >&5
10f2d63a
VZ
6366if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6367 echo $ac_n "(cached) $ac_c" 1>&6
6368else
6369 if test -n "$CXX"; then
6370 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6371else
6372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6373 ac_dummy="$PATH"
6374 for ac_dir in $ac_dummy; do
6375 test -z "$ac_dir" && ac_dir=.
6376 if test -f $ac_dir/$ac_word; then
6377 ac_cv_prog_CXX="$ac_prog"
6378 break
6379 fi
6380 done
6381 IFS="$ac_save_ifs"
6382fi
6383fi
6384CXX="$ac_cv_prog_CXX"
6385if test -n "$CXX"; then
6386 echo "$ac_t""$CXX" 1>&6
6387else
6388 echo "$ac_t""no" 1>&6
6389fi
6390
6391test -n "$CXX" && break
6392done
6393test -n "$CXX" || CXX="gcc"
6394
6395
6396echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8dfea369 6397echo "configure:6398: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6398
6399ac_ext=C
6400# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6401ac_cpp='$CXXCPP $CPPFLAGS'
6402ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6403ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6404cross_compiling=$ac_cv_prog_cxx_cross
6405
6406cat > conftest.$ac_ext << EOF
6407
8dfea369 6408#line 6409 "configure"
10f2d63a
VZ
6409#include "confdefs.h"
6410
6411int main(){return(0);}
6412EOF
8dfea369 6413if { (eval echo configure:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6414 ac_cv_prog_cxx_works=yes
6415 # If we can't run a trivial program, we are probably using a cross compiler.
6416 if (./conftest; exit) 2>/dev/null; then
6417 ac_cv_prog_cxx_cross=no
6418 else
6419 ac_cv_prog_cxx_cross=yes
6420 fi
6421else
6422 echo "configure: failed program was:" >&5
6423 cat conftest.$ac_ext >&5
6424 ac_cv_prog_cxx_works=no
6425fi
6426rm -fr conftest*
6427ac_ext=C
6428# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6429ac_cpp='$CXXCPP $CPPFLAGS'
6430ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6431ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6432cross_compiling=$ac_cv_prog_cxx_cross
6433
6434echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6435if test $ac_cv_prog_cxx_works = no; then
6436 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6437fi
6438echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8dfea369 6439echo "configure:6440: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6440echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6441cross_compiling=$ac_cv_prog_cxx_cross
6442
6443echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8dfea369 6444echo "configure:6445: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6445if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6446 echo $ac_n "(cached) $ac_c" 1>&6
6447else
6448 cat > conftest.C <<EOF
6449#ifdef __GNUC__
6450 yes;
6451#endif
6452EOF
8dfea369 6453if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6454 ac_cv_prog_gxx=yes
6455else
6456 ac_cv_prog_gxx=no
6457fi
6458fi
6459
6460echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6461
6462if test $ac_cv_prog_gxx = yes; then
6463 GXX=yes
6464else
6465 GXX=
6466fi
6467
6468ac_test_CXXFLAGS="${CXXFLAGS+set}"
6469ac_save_CXXFLAGS="$CXXFLAGS"
6470CXXFLAGS=
6471echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8dfea369 6472echo "configure:6473: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6473if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6474 echo $ac_n "(cached) $ac_c" 1>&6
6475else
6476 echo 'void f(){}' > conftest.cc
6477if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6478 ac_cv_prog_cxx_g=yes
6479else
6480 ac_cv_prog_cxx_g=no
6481fi
6482rm -f conftest*
6483
6484fi
6485
6486echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6487if test "$ac_test_CXXFLAGS" = set; then
6488 CXXFLAGS="$ac_save_CXXFLAGS"
6489elif test $ac_cv_prog_cxx_g = yes; then
6490 if test "$GXX" = yes; then
6491 CXXFLAGS="-g -O2"
6492 else
6493 CXXFLAGS="-g"
6494 fi
6495else
6496 if test "$GXX" = yes; then
6497 CXXFLAGS="-O2"
6498 else
6499 CXXFLAGS=
6500 fi
6501fi
6502
6503
6504echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
8dfea369 6505echo "configure:6506: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6506if test -z "$CXXCPP"; then
6507if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6508 echo $ac_n "(cached) $ac_c" 1>&6
6509else
6510 ac_ext=C
6511# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6512ac_cpp='$CXXCPP $CPPFLAGS'
6513ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6514ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6515cross_compiling=$ac_cv_prog_cxx_cross
6516 CXXCPP="${CXX-g++} -E"
6517 cat > conftest.$ac_ext <<EOF
8dfea369 6518#line 6519 "configure"
10f2d63a
VZ
6519#include "confdefs.h"
6520#include <stdlib.h>
6521EOF
6522ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 6523{ (eval echo configure:6524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6524ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6525if test -z "$ac_err"; then
6526 :
6527else
6528 echo "$ac_err" >&5
6529 echo "configure: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6531 rm -rf conftest*
6532 CXXCPP=/lib/cpp
6533fi
6534rm -f conftest*
6535 ac_cv_prog_CXXCPP="$CXXCPP"
6536ac_ext=C
6537# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6538ac_cpp='$CXXCPP $CPPFLAGS'
6539ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6540ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6541cross_compiling=$ac_cv_prog_cxx_cross
6542fi
6543fi
6544CXXCPP="$ac_cv_prog_CXXCPP"
6545echo "$ac_t""$CXXCPP" 1>&6
6546
6547
6548CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6549
6550ac_ext=c
6551# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6552ac_cpp='$CPP $CPPFLAGS'
6553ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6554ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6555cross_compiling=$ac_cv_prog_cc_cross
6556
6557
6558# Extract the first word of "ranlib", so it can be a program name with args.
6559set dummy ranlib; ac_word=$2
6560echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8dfea369 6561echo "configure:6562: checking for $ac_word" >&5
10f2d63a
VZ
6562if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6563 echo $ac_n "(cached) $ac_c" 1>&6
6564else
6565 if test -n "$RANLIB"; then
6566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6567else
6568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6569 ac_dummy="$PATH"
6570 for ac_dir in $ac_dummy; do
6571 test -z "$ac_dir" && ac_dir=.
6572 if test -f $ac_dir/$ac_word; then
6573 ac_cv_prog_RANLIB="ranlib"
6574 break
6575 fi
6576 done
6577 IFS="$ac_save_ifs"
6578 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6579fi
6580fi
6581RANLIB="$ac_cv_prog_RANLIB"
6582if test -n "$RANLIB"; then
6583 echo "$ac_t""$RANLIB" 1>&6
6584else
6585 echo "$ac_t""no" 1>&6
6586fi
6587
6588
6589# Extract the first word of "ar", so it can be a program name with args.
6590set dummy ar; ac_word=$2
6591echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8dfea369 6592echo "configure:6593: checking for $ac_word" >&5
10f2d63a
VZ
6593if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6594 echo $ac_n "(cached) $ac_c" 1>&6
6595else
6596 if test -n "$AR"; then
6597 ac_cv_prog_AR="$AR" # Let the user override the test.
6598else
6599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6600 ac_dummy="$PATH"
6601 for ac_dir in $ac_dummy; do
6602 test -z "$ac_dir" && ac_dir=.
6603 if test -f $ac_dir/$ac_word; then
6604 ac_cv_prog_AR="ar"
6605 break
6606 fi
6607 done
6608 IFS="$ac_save_ifs"
6609 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6610fi
6611fi
6612AR="$ac_cv_prog_AR"
6613if test -n "$AR"; then
6614 echo "$ac_t""$AR" 1>&6
6615else
6616 echo "$ac_t""no" 1>&6
6617fi
6618
6619
6620# Find a good install program. We prefer a C program (faster),
6621# so one script is as good as another. But avoid the broken or
6622# incompatible versions:
6623# SysV /etc/install, /usr/sbin/install
6624# SunOS /usr/etc/install
6625# IRIX /sbin/install
6626# AIX /bin/install
6627# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6628# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6629# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6630# ./install, which can be erroneously created by make from ./install.sh.
6631echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8dfea369 6632echo "configure:6633: checking for a BSD compatible install" >&5
10f2d63a
VZ
6633if test -z "$INSTALL"; then
6634if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6635 echo $ac_n "(cached) $ac_c" 1>&6
6636else
6637 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6638 for ac_dir in $PATH; do
6639 # Account for people who put trailing slashes in PATH elements.
6640 case "$ac_dir/" in
6641 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6642 *)
6643 # OSF1 and SCO ODT 3.0 have their own names for install.
6644 # Don't use installbsd from OSF since it installs stuff as root
6645 # by default.
6646 for ac_prog in ginstall scoinst install; do
6647 if test -f $ac_dir/$ac_prog; then
6648 if test $ac_prog = install &&
6649 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6650 # AIX install. It has an incompatible calling convention.
6651 :
6652 else
6653 ac_cv_path_install="$ac_dir/$ac_prog -c"
6654 break 2
6655 fi
6656 fi
6657 done
6658 ;;
6659 esac
6660 done
6661 IFS="$ac_save_IFS"
6662
6663fi
6664 if test "${ac_cv_path_install+set}" = set; then
6665 INSTALL="$ac_cv_path_install"
6666 else
6667 # As a last resort, use the slow shell script. We don't cache a
6668 # path for INSTALL within a source directory, because that will
6669 # break other packages using the cache if that directory is
6670 # removed, or if the path is relative.
6671 INSTALL="$ac_install_sh"
6672 fi
6673fi
6674echo "$ac_t""$INSTALL" 1>&6
6675
6676# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6677# It thinks the first close brace ends the variable substitution.
6678test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6679
6680test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6681
6682test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6683
6684
6685# Extract the first word of "strip", so it can be a program name with args.
6686set dummy strip; ac_word=$2
6687echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8dfea369 6688echo "configure:6689: checking for $ac_word" >&5
10f2d63a
VZ
6689if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6690 echo $ac_n "(cached) $ac_c" 1>&6
6691else
6692 if test -n "$STRIP"; then
6693 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6694else
6695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6696 ac_dummy="$PATH"
6697 for ac_dir in $ac_dummy; do
6698 test -z "$ac_dir" && ac_dir=.
6699 if test -f $ac_dir/$ac_word; then
6700 ac_cv_prog_STRIP="strip"
6701 break
6702 fi
6703 done
6704 IFS="$ac_save_ifs"
6705 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6706fi
6707fi
6708STRIP="$ac_cv_prog_STRIP"
6709if test -n "$STRIP"; then
6710 echo "$ac_t""$STRIP" 1>&6
6711else
6712 echo "$ac_t""no" 1>&6
6713fi
6714
6715
6716echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
8dfea369 6717echo "configure:6718: checking "make for VPATH support"" >&5
10f2d63a
VZ
6718cat - << EOF > confMake
6719check : file
6720 cp \$? \$@
6721 cp \$? final_file
6722EOF
6723
6724if test ! -d sub ; then
6725 mkdir sub
6726fi
6727echo dummy > sub/file
6728${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6729RESULT=$?
6730rm -f sub/file check final_file confMake
6731rmdir sub
6732if test "$RESULT" = 0; then
6733 echo "$ac_t""yes" 1>&6
6734else
6735 echo "$ac_t""no" 1>&6
6736 { echo "configure: error: You need a make-utility that is able to use the variable
6737VPATH correctly.
6738If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6739fi
6740
6741for ac_prog in 'bison -y' byacc
6742do
6743# Extract the first word of "$ac_prog", so it can be a program name with args.
6744set dummy $ac_prog; ac_word=$2
6745echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8dfea369 6746echo "configure:6747: checking for $ac_word" >&5
10f2d63a
VZ
6747if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6748 echo $ac_n "(cached) $ac_c" 1>&6
6749else
6750 if test -n "$YACC"; then
6751 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6752else
6753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6754 ac_dummy="$PATH"
6755 for ac_dir in $ac_dummy; do
6756 test -z "$ac_dir" && ac_dir=.
6757 if test -f $ac_dir/$ac_word; then
6758 ac_cv_prog_YACC="$ac_prog"
6759 break
6760 fi
6761 done
6762 IFS="$ac_save_ifs"
6763fi
6764fi
6765YACC="$ac_cv_prog_YACC"
6766if test -n "$YACC"; then
6767 echo "$ac_t""$YACC" 1>&6
6768else
6769 echo "$ac_t""no" 1>&6
6770fi
6771
6772test -n "$YACC" && break
6773done
6774test -n "$YACC" || YACC="yacc"
6775
6776
6777# Extract the first word of "flex", so it can be a program name with args.
6778set dummy flex; ac_word=$2
6779echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8dfea369 6780echo "configure:6781: checking for $ac_word" >&5
10f2d63a
VZ
6781if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6782 echo $ac_n "(cached) $ac_c" 1>&6
6783else
6784 if test -n "$LEX"; then
6785 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6786else
6787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6788 ac_dummy="$PATH"
6789 for ac_dir in $ac_dummy; do
6790 test -z "$ac_dir" && ac_dir=.
6791 if test -f $ac_dir/$ac_word; then
6792 ac_cv_prog_LEX="flex"
6793 break
6794 fi
6795 done
6796 IFS="$ac_save_ifs"
6797 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6798fi
6799fi
6800LEX="$ac_cv_prog_LEX"
6801if test -n "$LEX"; then
6802 echo "$ac_t""$LEX" 1>&6
6803else
6804 echo "$ac_t""no" 1>&6
6805fi
6806
6807if test -z "$LEXLIB"
6808then
6809 case "$LEX" in
6810 flex*) ac_lib=fl ;;
6811 *) ac_lib=l ;;
6812 esac
6813 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8dfea369 6814echo "configure:6815: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6815ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6816if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6818else
6819 ac_save_LIBS="$LIBS"
6820LIBS="-l$ac_lib $LIBS"
6821cat > conftest.$ac_ext <<EOF
8dfea369 6822#line 6823 "configure"
10f2d63a
VZ
6823#include "confdefs.h"
6824/* Override any gcc2 internal prototype to avoid an error. */
6825/* We use char because int might match the return type of a gcc2
6826 builtin and then its argument prototype would still apply. */
6827char yywrap();
6828
6829int main() {
6830yywrap()
6831; return 0; }
6832EOF
8dfea369 6833if { (eval echo configure:6834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6834 rm -rf conftest*
6835 eval "ac_cv_lib_$ac_lib_var=yes"
6836else
6837 echo "configure: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6839 rm -rf conftest*
6840 eval "ac_cv_lib_$ac_lib_var=no"
6841fi
6842rm -f conftest*
6843LIBS="$ac_save_LIBS"
6844
6845fi
6846if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6847 echo "$ac_t""yes" 1>&6
6848 LEXLIB="-l$ac_lib"
6849else
6850 echo "$ac_t""no" 1>&6
6851fi
6852
6853fi
6854
6855
6856echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8dfea369 6857echo "configure:6858: checking whether ln -s works" >&5
10f2d63a
VZ
6858if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6860else
6861 rm -f conftestdata
6862if ln -s X conftestdata 2>/dev/null
6863then
6864 rm -f conftestdata
6865 ac_cv_prog_LN_S="ln -s"
6866else
6867 ac_cv_prog_LN_S=ln
6868fi
6869fi
6870LN_S="$ac_cv_prog_LN_S"
6871if test "$ac_cv_prog_LN_S" = "ln -s"; then
6872 echo "$ac_t""yes" 1>&6
6873else
6874 echo "$ac_t""no" 1>&6
6875fi
6876
6877
6878
6879SEARCH_INCLUDE="\
6880 /usr/local/include \
6881 \
6882 /usr/Motif-1.2/include \
6883 /usr/Motif-2.1/include \
6884 \
6885 /usr/include/Motif1.2 \
6886 /opt/xpm/include/X11 \
6887 /opt/GBxpm/include/ \
6888 /opt/GBxpm/X11/include/ \
6889 \
6890 /usr/Motif1.2/include \
6891 /usr/dt/include \
afc31813
VZ
6892 /usr/openwin/include \
6893 \
10f2d63a
VZ
6894 /usr/include/Xm \
6895 \
6896 /usr/X11R6/include \
afc31813 6897 /usr/X11R6.4/include \
10f2d63a
VZ
6898 /usr/X11R5/include \
6899 /usr/X11R4/include \
6900 \
10f2d63a
VZ
6901 /usr/include/X11R6 \
6902 /usr/include/X11R5 \
6903 /usr/include/X11R4 \
6904 \
6905 /usr/local/X11R6/include \
6906 /usr/local/X11R5/include \
6907 /usr/local/X11R4/include \
6908 \
6909 /usr/local/include/X11R6 \
6910 /usr/local/include/X11R5 \
6911 /usr/local/include/X11R4 \
6912 \
6913 /usr/X11/include \
6914 /usr/include/X11 \
6915 /usr/local/X11/include \
6916 /usr/local/include/X11 \
6917 \
6918 /usr/X386/include \
6919 /usr/x386/include \
6920 /usr/XFree86/include/X11 \
6921 \
cf27ef00 6922 X:/XFree86/include \
ec14dd32
VZ
6923 X:/XFree86/include/X11 \
6924 \
10f2d63a
VZ
6925 /usr/include/gtk \
6926 /usr/local/include/gtk \
6927 /usr/include/glib \
6928 /usr/local/include/glib \
6929 \
6930 /usr/include/qt \
6931 /usr/local/include/qt \
6932 \
6933 /usr/include/windows \
6934 /usr/include/wine \
6935 /usr/local/include/wine \
6936 \
6937 /usr/unsupported/include \
6938 /usr/athena/include \
6939 /usr/local/x11r5/include \
6940 /usr/lpp/Xamples/include \
6941 \
10f2d63a 6942 /usr/openwin/share/include \
928b5c08
VZ
6943 \
6944 /usr/include"
10f2d63a
VZ
6945
6946SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6947
6948
6949cat > confcache <<\EOF
6950# This file is a shell script that caches the results of configure
6951# tests run on this system so they can be shared between configure
6952# scripts and configure runs. It is not useful on other systems.
6953# If it contains results you don't want to keep, you may remove or edit it.
6954#
6955# By default, configure uses ./config.cache as the cache file,
6956# creating it if it does not exist already. You can give configure
6957# the --cache-file=FILE option to use a different cache file; that is
6958# what configure does when it calls configure scripts in
6959# subdirectories, so they share the cache.
6960# Giving --cache-file=/dev/null disables caching, for debugging configure.
6961# config.status only pays attention to the cache file if you give it the
6962# --recheck option to rerun configure.
6963#
6964EOF
6965# The following way of writing the cache mishandles newlines in values,
6966# but we know of no workaround that is simple, portable, and efficient.
6967# So, don't put newlines in cache variables' values.
6968# Ultrix sh set writes to stderr and can't be redirected directly,
6969# and sets the high bit in the cache file unless we assign to the vars.
6970(set) 2>&1 |
6971 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6972 *ac_space=\ *)
6973 # `set' does not quote correctly, so add quotes (double-quote substitution
6974 # turns \\\\ into \\, and sed turns \\ into \).
6975 sed -n \
6976 -e "s/'/'\\\\''/g" \
6977 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6978 ;;
6979 *)
6980 # `set' quotes correctly as required by POSIX, so do not add quotes.
6981 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6982 ;;
6983 esac >> confcache
6984if cmp -s $cache_file confcache; then
6985 :
6986else
6987 if test -w $cache_file; then
6988 echo "updating cache $cache_file"
6989 cat confcache > $cache_file
6990 else
6991 echo "not updating unwritable cache $cache_file"
6992 fi
6993fi
6994rm -f confcache
6995
6996
6997
dad6c0ea
VZ
6998AFMINSTALL=
6999
10f2d63a
VZ
7000if test "$wxUSE_GUI" = "yes"; then
7001
dad6c0ea
VZ
7002USE_GUI=1
7003
10f2d63a
VZ
7004TOOLKIT=
7005TOOLKIT_INCLUDE=
7006
7007GUIOBJS=
7008COMMONOBJS=
7009GENERICOBJS=
7010
7011GUI_TK_LIBRARY=
7012GUI_TK_LINK=
7013
7014WXGTK12=
13111b2a 7015WXGTK13=
10f2d63a
VZ
7016
7017WXWINE=
7018
10f2d63a
VZ
7019if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7020 if test "$cross_compiling" = "yes" ; then
e59890c3 7021 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
10f2d63a
VZ
7022 else
7023 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
8dfea369 7024echo "configure:7025: checking for Windows headers" >&5
10f2d63a
VZ
7025
7026ac_find_includes=
7027for ac_dir in $SEARCH_INCLUDE;
7028 do
7029 if test -f "$ac_dir/windows.h"; then
7030 ac_find_includes=$ac_dir
7031 break
7032 fi
7033 done
7034
7035 if test "$ac_find_includes" != "" ; then
7036 echo "$ac_t""found $ac_find_includes" 1>&6
7037 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7038 else
7039 echo "$ac_t""no" 1>&6
7040 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7041 fi
7042 fi
7043
7044 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7045 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7046
32832908
VZ
7047 if test "$wxUSE_ODBC" = "yes" ; then
7048 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7049 fi
7050
10f2d63a
VZ
7051 if test "$wxUSE_MINGW" = 1; then
7052 LDFLAGS="$LDFLAGS -mwindows"
7053 fi
7054
7055 TOOLKIT=MSW
7056
7057 GUIOBJS="\$(MSW_GUIOBJS)"
7058 GUIHEADERS="\$(MSW_HEADERS)"
7059 COMMONOBJS="\$(MSW_COMMONOBJS)"
7060 GENERICOBJS="\$(MSW_GENERICOBJS)"
7061 UNIXOBJS=
7062 GUIDIST=MSW_DIST
32832908
VZ
7063
7064 RCINCSWITCH="--include-dir"
7065 RCDEFSWITCH="--define"
7066 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7067 RCINPUTSWITCH="-i"
7068 RCOUTPUTSWITCH="-o"
7069 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7070
7071 RESPROGRAM="\$(RES_PROGRAM)"
7072
10f2d63a
VZ
7073fi
7074
7075if test "$wxUSE_GTK" = 1; then
7076
7077 if test x$gtk_config_exec_prefix != x ; then
7078 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7079 if test x${GTK_CONFIG+set} != xset ; then
7080 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7081 fi
7082 fi
7083 if test x$gtk_config_prefix != x ; then
7084 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7085 if test x${GTK_CONFIG+set} != xset ; then
7086 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7087 fi
7088 fi
7089
7090 # Extract the first word of "gtk-config", so it can be a program name with args.
7091set dummy gtk-config; ac_word=$2
7092echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8dfea369 7093echo "configure:7094: checking for $ac_word" >&5
10f2d63a
VZ
7094if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7096else
7097 case "$GTK_CONFIG" in
7098 /*)
7099 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7100 ;;
7101 ?:/*)
7102 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7103 ;;
7104 *)
7105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7106 ac_dummy="$PATH"
7107 for ac_dir in $ac_dummy; do
7108 test -z "$ac_dir" && ac_dir=.
7109 if test -f $ac_dir/$ac_word; then
7110 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7111 break
7112 fi
7113 done
7114 IFS="$ac_save_ifs"
7115 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7116 ;;
7117esac
7118fi
7119GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7120if test -n "$GTK_CONFIG"; then
7121 echo "$ac_t""$GTK_CONFIG" 1>&6
7122else
7123 echo "$ac_t""no" 1>&6
7124fi
7125
04165bec 7126 min_gtk_version=1.2.3
10f2d63a 7127 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8dfea369 7128echo "configure:7129: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7129 no_gtk=""
7130 if test "$GTK_CONFIG" != "no" ; then
7131 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7132 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7133 ac_save_CFLAGS="$CFLAGS"
7134 ac_save_LIBS="$LIBS"
7135 CFLAGS="$CFLAGS $GTK_CFLAGS"
7136 LIBS="$LIBS $GTK_LIBS"
7137 if test "$cross_compiling" = yes; then
7138 echo $ac_n "cross compiling; assumed OK... $ac_c"
7139else
7140 cat > conftest.$ac_ext <<EOF
8dfea369 7141#line 7142 "configure"
10f2d63a
VZ
7142#include "confdefs.h"
7143
7144#include <gtk/gtk.h>
f49f2b0c 7145#include <gtk/gtkfeatures.h>
10f2d63a 7146#include <stdio.h>
32832908 7147#include <stdlib.h>
10f2d63a
VZ
7148
7149int
7150main ()
7151{
7152 int major, minor, micro;
7153
7154 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7155 printf("%s, bad version string\n", "$min_gtk_version");
7156 exit(1);
7157 }
7158
f49f2b0c
RR
7159 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7160 (GTK_MINOR_VERSION != gtk_minor_version) ||
7161 (GTK_MICRO_VERSION != gtk_micro_version)) {
7162 printf("Headers vs. library version mismatch!\n");
7163 exit(1);
7164 }
7165
10f2d63a
VZ
7166 if (gtk_minor_version == 1) return FALSE;
7167
7168 return !((gtk_major_version > major) ||
7169 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7170 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7171}
7172
7173EOF
8dfea369 7174if { (eval echo configure:7175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7175then
7176 :
7177else
7178 echo "configure: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7180 rm -fr conftest*
7181 no_gtk=yes
7182fi
7183rm -fr conftest*
7184fi
7185
7186 CFLAGS="$ac_save_CFLAGS"
7187 LIBS="$ac_save_LIBS"
7188 else
7189 no_gtk=yes
7190 fi
7191 if test "x$no_gtk" = x ; then
7192 echo "$ac_t""yes" 1>&6
7193 WXGTK12=1
7194 else
7195 echo "$ac_t""no" 1>&6
7196 GTK_CFLAGS=""
7197 GTK_LIBS=""
7e99ad86 7198 :
10f2d63a
VZ
7199 fi
7200
7201
7202
7203
7e99ad86
VZ
7204 if test "$WXGTK12" != 1; then
7205 { echo "configure: error:
7206 Please check that gtk-config is in path, the directory
7207 where GTK+ libraries are installed (returned by
7208 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7209 equivalent variable and GTK+ is version 1.2.3 or above.
7210 " 1>&2; exit 1; }
7211 fi
7212
7213
10f2d63a 7214 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7215
7216
7217 GUI_TK_LIBRARY="$GTK_LIBS"
7218
10f2d63a
VZ
7219 TOOLKIT=GTK
7220
dad6c0ea
VZ
7221 AFMINSTALL=afminstall
7222
10f2d63a
VZ
7223 GUIOBJS="\$(GTK_GUIOBJS)"
7224 GUIHEADERS="\$(GTK_HEADERS)"
7225 COMMONOBJS="\$(GTK_COMMONOBJS)"
7226 GENERICOBJS="\$(GTK_GENERICOBJS)"
7227 GUIDEPS="\$(GTK_GUIDEPS)"
7228 COMMONDEPS="\$(GTK_COMMONDEPS)"
7229 GENERICDEPS="\$(GTK_GENERICDEPS)"
7230 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7231 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7232 GUIDIST=GTK_DIST
7ec2881a 7233
2224580a 7234 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
8dfea369 7235echo "configure:7236: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7236ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7237if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7238 echo $ac_n "(cached) $ac_c" 1>&6
7239else
7240 ac_save_LIBS="$LIBS"
7241LIBS="-lgdk $LIBS"
7242cat > conftest.$ac_ext <<EOF
8dfea369 7243#line 7244 "configure"
7ec2881a
RR
7244#include "confdefs.h"
7245/* Override any gcc2 internal prototype to avoid an error. */
7246/* We use char because int might match the return type of a gcc2
7247 builtin and then its argument prototype would still apply. */
7248char gdk_im_open();
7249
7250int main() {
7251gdk_im_open()
7252; return 0; }
7253EOF
8dfea369 7254if { (eval echo configure:7255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7255 rm -rf conftest*
7256 eval "ac_cv_lib_$ac_lib_var=yes"
7257else
7258 echo "configure: failed program was:" >&5
7259 cat conftest.$ac_ext >&5
7260 rm -rf conftest*
7261 eval "ac_cv_lib_$ac_lib_var=no"
7262fi
7263rm -f conftest*
7264LIBS="$ac_save_LIBS"
7265
7266fi
7267if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7268 echo "$ac_t""yes" 1>&6
7269 cat >> confdefs.h <<\EOF
7270#define HAVE_XIM 1
7271EOF
7272
7273else
7274 echo "$ac_t""no" 1>&6
7275fi
7276
10f2d63a
VZ
7277fi
7278
7279if test "$wxUSE_WINE" = 1; then
7280 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
8dfea369 7281echo "configure:7282: checking for WINE includes" >&5
10f2d63a
VZ
7282
7283ac_find_includes=
7284for ac_dir in $SEARCH_INCLUDE;
7285 do
7286 if test -f "$ac_dir/windows.h"; then
7287 ac_find_includes=$ac_dir
7288 break
7289 fi
7290 done
7291
7292 if test "$ac_find_includes" != "" ; then
7293 echo "$ac_t""found $ac_find_includes" 1>&6
7294 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7295 else
7296 echo "$ac_t""no" 1>&6
7297 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7298 fi
7299
7300 XPM_LINK=""
7301 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8dfea369 7302echo "configure:7303: checking for Xpm library" >&5
10f2d63a
VZ
7303
7304ac_find_libraries=
7305for ac_dir in $SEARCH_LIB;
7306 do
7307 for ac_extension in a so sl; do
7308 if test -f "$ac_dir/libXpm.$ac_extension"; then
7309 ac_find_libraries=$ac_dir
7310 break 2
7311 fi
7312 done
7313 done
7314
7315 if test "$ac_find_libraries" != "" ; then
7316 GUI_TK_LIBRARY="-L$ac_find_libraries"
7317 XPM_LINK="-lXpm"
7318 cat >> confdefs.h <<\EOF
7319#define wxHAVE_LIB_XPM 1
7320EOF
7321
7322 echo "$ac_t""found at $ac_find_libraries" 1>&6
7323 else
7324 echo "$ac_t""no" 1>&6
7325 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7326 fi
7327
7328 MESA_LINK=""
7329 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
8dfea369 7330echo "configure:7331: checking for Mesa library" >&5
10f2d63a
VZ
7331
7332ac_find_libraries=
7333for ac_dir in $SEARCH_LIB;
7334 do
7335 for ac_extension in a so sl; do
7336 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7337 ac_find_libraries=$ac_dir
7338 break 2
7339 fi
7340 done
7341 done
7342
7343 if test "$ac_find_libraries" != "" ; then
7344 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7345 MESA_LINK="-lMesaGL"
7346 echo "$ac_t""found at $ac_find_libraries" 1>&6
7347 else
7348 { echo "configure: error: no" 1>&2; exit 1; }
7349 fi
7350
7351 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7352 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7353 WXWINE=1
7354 TOOLKIT=MSW
7355
7356 GUIHEADERS="\$(MSW_HEADERS)"
7357 GUIOBJS="\$(MSW_GUIOBJS)"
7358 COMMONOBJS="\$(MSW_COMMONOBJS)"
7359 GENERICOBJS="\$(MSW_GENERICOBJS)"
7360 GUIDEPS="\$(MSW_GUIDEPS)"
7361 COMMONDEPS="\$(MSW_COMMONDEPS)"
7362 GENERICDEPS="\$(MSW_GENERICDEPS)"
7363 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7364 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7365 GUIDIST=MSW_DIST
7366fi
7367
7368if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7369 # If we find X, set shell vars x_includes and x_libraries to the
7370# paths, otherwise set no_x=yes.
7371# Uses ac_ vars as temps to allow command line to override cache and checks.
7372# --without-x overrides everything else, but does not touch the cache.
7373echo $ac_n "checking for X""... $ac_c" 1>&6
8dfea369 7374echo "configure:7375: checking for X" >&5
ab9b9eab
VZ
7375
7376# Check whether --with-x or --without-x was given.
7377if test "${with_x+set}" = set; then
7378 withval="$with_x"
7379 :
7380fi
ba337fe7 7381
ab9b9eab
VZ
7382# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7383if test "x$with_x" = xno; then
7384 # The user explicitly disabled X.
7385 have_x=disabled
7386else
7387 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7388 # Both variables are already set.
7389 have_x=yes
7390 else
7391if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7392 echo $ac_n "(cached) $ac_c" 1>&6
7393else
7394 # One or both of the vars are not set, and there is no cached value.
7395ac_x_includes=NO ac_x_libraries=NO
7396rm -fr conftestdir
7397if mkdir conftestdir; then
7398 cd conftestdir
7399 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7400 cat > Imakefile <<'EOF'
7401acfindx:
7402 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7403EOF
7404 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7405 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7406 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7407 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7408 for ac_extension in a so sl; do
ab9b9eab
VZ
7409 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7410 test -f $ac_im_libdir/libX11.$ac_extension; then
7411 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7412 fi
7413 done
ab9b9eab
VZ
7414 # Screen out bogus values from the imake configuration. They are
7415 # bogus both because they are the default anyway, and because
7416 # using them would break gcc on systems where it needs fixed includes.
7417 case "$ac_im_incroot" in
7418 /usr/include) ;;
7419 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7420 esac
7421 case "$ac_im_usrlibdir" in
7422 /usr/lib | /lib) ;;
7423 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7424 esac
ba337fe7 7425 fi
ab9b9eab
VZ
7426 cd ..
7427 rm -fr conftestdir
7428fi
10f2d63a 7429
ab9b9eab
VZ
7430if test "$ac_x_includes" = NO; then
7431 # Guess where to find include files, by looking for this one X11 .h file.
7432 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7433
ab9b9eab
VZ
7434 # First, try using that file with no special directory specified.
7435cat > conftest.$ac_ext <<EOF
8dfea369 7436#line 7437 "configure"
ab9b9eab
VZ
7437#include "confdefs.h"
7438#include <$x_direct_test_include>
7439EOF
7440ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 7441{ (eval echo configure:7442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7442ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7443if test -z "$ac_err"; then
7444 rm -rf conftest*
7445 # We can compile using X headers with no special include directory.
7446ac_x_includes=
7447else
7448 echo "$ac_err" >&5
7449 echo "configure: failed program was:" >&5
7450 cat conftest.$ac_ext >&5
7451 rm -rf conftest*
7452 # Look for the header file in a standard set of common directories.
7453# Check X11 before X11Rn because it is often a symlink to the current release.
7454 for ac_dir in \
7455 /usr/X11/include \
7456 /usr/X11R6/include \
7457 /usr/X11R5/include \
7458 /usr/X11R4/include \
7459 \
7460 /usr/include/X11 \
7461 /usr/include/X11R6 \
7462 /usr/include/X11R5 \
7463 /usr/include/X11R4 \
7464 \
7465 /usr/local/X11/include \
7466 /usr/local/X11R6/include \
7467 /usr/local/X11R5/include \
7468 /usr/local/X11R4/include \
7469 \
7470 /usr/local/include/X11 \
7471 /usr/local/include/X11R6 \
7472 /usr/local/include/X11R5 \
7473 /usr/local/include/X11R4 \
7474 \
7475 /usr/X386/include \
7476 /usr/x386/include \
7477 /usr/XFree86/include/X11 \
7478 \
7479 /usr/include \
7480 /usr/local/include \
7481 /usr/unsupported/include \
7482 /usr/athena/include \
7483 /usr/local/x11r5/include \
7484 /usr/lpp/Xamples/include \
7485 \
7486 /usr/openwin/include \
7487 /usr/openwin/share/include \
7488 ; \
10f2d63a 7489 do
ab9b9eab
VZ
7490 if test -r "$ac_dir/$x_direct_test_include"; then
7491 ac_x_includes=$ac_dir
10f2d63a
VZ
7492 break
7493 fi
7494 done
ab9b9eab
VZ
7495fi
7496rm -f conftest*
7497fi # $ac_x_includes = NO
10f2d63a 7498
ab9b9eab
VZ
7499if test "$ac_x_libraries" = NO; then
7500 # Check for the libraries.
10f2d63a 7501
ab9b9eab
VZ
7502 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7503 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7504
ab9b9eab
VZ
7505 # See if we find them without any special options.
7506 # Don't add to $LIBS permanently.
7507 ac_save_LIBS="$LIBS"
7508 LIBS="-l$x_direct_test_library $LIBS"
7509cat > conftest.$ac_ext <<EOF
8dfea369 7510#line 7511 "configure"
ab9b9eab 7511#include "confdefs.h"
10f2d63a 7512
ab9b9eab
VZ
7513int main() {
7514${x_direct_test_function}()
7515; return 0; }
7516EOF
8dfea369 7517if { (eval echo configure:7518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7518 rm -rf conftest*
7519 LIBS="$ac_save_LIBS"
7520# We can link X programs with no special library path.
7521ac_x_libraries=
7522else
7523 echo "configure: failed program was:" >&5
7524 cat conftest.$ac_ext >&5
7525 rm -rf conftest*
7526 LIBS="$ac_save_LIBS"
7527# First see if replacing the include by lib works.
7528# Check X11 before X11Rn because it is often a symlink to the current release.
7529for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7530 /usr/X11/lib \
7531 /usr/X11R6/lib \
7532 /usr/X11R5/lib \
7533 /usr/X11R4/lib \
7534 \
7535 /usr/lib/X11 \
7536 /usr/lib/X11R6 \
7537 /usr/lib/X11R5 \
7538 /usr/lib/X11R4 \
7539 \
7540 /usr/local/X11/lib \
7541 /usr/local/X11R6/lib \
7542 /usr/local/X11R5/lib \
7543 /usr/local/X11R4/lib \
7544 \
7545 /usr/local/lib/X11 \
7546 /usr/local/lib/X11R6 \
7547 /usr/local/lib/X11R5 \
7548 /usr/local/lib/X11R4 \
7549 \
7550 /usr/X386/lib \
7551 /usr/x386/lib \
7552 /usr/XFree86/lib/X11 \
7553 \
7554 /usr/lib \
7555 /usr/local/lib \
7556 /usr/unsupported/lib \
7557 /usr/athena/lib \
7558 /usr/local/x11r5/lib \
7559 /usr/lpp/Xamples/lib \
7560 /lib/usr/lib/X11 \
7561 \
7562 /usr/openwin/lib \
7563 /usr/openwin/share/lib \
7564 ; \
7565do
7566 for ac_extension in a so sl; do
7567 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7568 ac_x_libraries=$ac_dir
7569 break 2
10f2d63a 7570 fi
10f2d63a 7571 done
ab9b9eab
VZ
7572done
7573fi
7574rm -f conftest*
7575fi # $ac_x_libraries = NO
10f2d63a 7576
ab9b9eab
VZ
7577if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7578 # Didn't find X anywhere. Cache the known absence of X.
7579 ac_cv_have_x="have_x=no"
7580else
7581 # Record where we found X for the cache.
7582 ac_cv_have_x="have_x=yes \
7583 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7584fi
7585fi
10f2d63a 7586 fi
ab9b9eab
VZ
7587 eval "$ac_cv_have_x"
7588fi # $with_x != no
10f2d63a 7589
ab9b9eab
VZ
7590if test "$have_x" != yes; then
7591 echo "$ac_t""$have_x" 1>&6
7592 no_x=yes
7593else
7594 # If each of the values was on the command line, it overrides each guess.
7595 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7596 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7597 # Update the cache value to reflect the command line values.
7598 ac_cv_have_x="have_x=yes \
7599 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7600 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7601fi
10f2d63a 7602
ab9b9eab
VZ
7603if test "$no_x" = yes; then
7604 # Not all programs may use this symbol, but it does not hurt to define it.
7605 cat >> confdefs.h <<\EOF
7606#define X_DISPLAY_MISSING 1
7607EOF
10f2d63a 7608
ab9b9eab
VZ
7609 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7610else
7611 if test -n "$x_includes"; then
7612 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7613 fi
7614
ab9b9eab
VZ
7615 # It would also be nice to do this for all -L options, not just this one.
7616 if test -n "$x_libraries"; then
7617 X_LIBS="$X_LIBS -L$x_libraries"
7618 # For Solaris; some versions of Sun CC require a space after -R and
7619 # others require no space. Words are not sufficient . . . .
7620 case "`(uname -sr) 2>/dev/null`" in
7621 "SunOS 5"*)
7622 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
8dfea369 7623echo "configure:7624: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7624 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7625 cat > conftest.$ac_ext <<EOF
8dfea369 7626#line 7627 "configure"
ab9b9eab 7627#include "confdefs.h"
10f2d63a 7628
ab9b9eab 7629int main() {
788deba1 7630
ab9b9eab
VZ
7631; return 0; }
7632EOF
8dfea369 7633if { (eval echo configure:7634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7634 rm -rf conftest*
7635 ac_R_nospace=yes
7636else
7637 echo "configure: failed program was:" >&5
7638 cat conftest.$ac_ext >&5
7639 rm -rf conftest*
7640 ac_R_nospace=no
7641fi
7642rm -f conftest*
7643 if test $ac_R_nospace = yes; then
7644 echo "$ac_t""no" 1>&6
7645 X_LIBS="$X_LIBS -R$x_libraries"
7646 else
7647 LIBS="$ac_xsave_LIBS -R $x_libraries"
7648 cat > conftest.$ac_ext <<EOF
8dfea369 7649#line 7650 "configure"
ab9b9eab 7650#include "confdefs.h"
788deba1 7651
ab9b9eab
VZ
7652int main() {
7653
7654; return 0; }
7655EOF
8dfea369 7656if { (eval echo configure:7657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7657 rm -rf conftest*
7658 ac_R_space=yes
7659else
7660 echo "configure: failed program was:" >&5
7661 cat conftest.$ac_ext >&5
7662 rm -rf conftest*
7663 ac_R_space=no
7664fi
7665rm -f conftest*
7666 if test $ac_R_space = yes; then
7667 echo "$ac_t""yes" 1>&6
7668 X_LIBS="$X_LIBS -R $x_libraries"
7669 else
7670 echo "$ac_t""neither works" 1>&6
7671 fi
7672 fi
7673 LIBS="$ac_xsave_LIBS"
7674 esac
7675 fi
7676
7677 # Check for system-dependent libraries X programs must link with.
7678 # Do this before checking for the system-independent R6 libraries
7679 # (-lICE), since we may need -lsocket or whatever for X linking.
7680
7681 if test "$ISC" = yes; then
7682 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7683 else
7684 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7685 # libraries were built with DECnet support. And karl@cs.umb.edu says
7686 # the Alpha needs dnet_stub (dnet does not exist).
7687 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
8dfea369 7688echo "configure:7689: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7689ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7690if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7691 echo $ac_n "(cached) $ac_c" 1>&6
7692else
7693 ac_save_LIBS="$LIBS"
7694LIBS="-ldnet $LIBS"
7695cat > conftest.$ac_ext <<EOF
8dfea369 7696#line 7697 "configure"
ab9b9eab
VZ
7697#include "confdefs.h"
7698/* Override any gcc2 internal prototype to avoid an error. */
7699/* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7701char dnet_ntoa();
7702
7703int main() {
7704dnet_ntoa()
7705; return 0; }
7706EOF
8dfea369 7707if { (eval echo configure:7708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7708 rm -rf conftest*
7709 eval "ac_cv_lib_$ac_lib_var=yes"
7710else
7711 echo "configure: failed program was:" >&5
7712 cat conftest.$ac_ext >&5
7713 rm -rf conftest*
7714 eval "ac_cv_lib_$ac_lib_var=no"
7715fi
7716rm -f conftest*
7717LIBS="$ac_save_LIBS"
7718
7719fi
7720if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7721 echo "$ac_t""yes" 1>&6
7722 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7723else
7724 echo "$ac_t""no" 1>&6
7725fi
7726
7727 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7728 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
8dfea369 7729echo "configure:7730: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7730ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7731if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7732 echo $ac_n "(cached) $ac_c" 1>&6
7733else
7734 ac_save_LIBS="$LIBS"
7735LIBS="-ldnet_stub $LIBS"
7736cat > conftest.$ac_ext <<EOF
8dfea369 7737#line 7738 "configure"
ab9b9eab
VZ
7738#include "confdefs.h"
7739/* Override any gcc2 internal prototype to avoid an error. */
7740/* We use char because int might match the return type of a gcc2
7741 builtin and then its argument prototype would still apply. */
7742char dnet_ntoa();
7743
7744int main() {
7745dnet_ntoa()
7746; return 0; }
7747EOF
8dfea369 7748if { (eval echo configure:7749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7749 rm -rf conftest*
7750 eval "ac_cv_lib_$ac_lib_var=yes"
7751else
7752 echo "configure: failed program was:" >&5
7753 cat conftest.$ac_ext >&5
7754 rm -rf conftest*
7755 eval "ac_cv_lib_$ac_lib_var=no"
7756fi
7757rm -f conftest*
7758LIBS="$ac_save_LIBS"
7759
7760fi
7761if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7762 echo "$ac_t""yes" 1>&6
7763 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7764else
7765 echo "$ac_t""no" 1>&6
7766fi
7767
7768 fi
7769
7770 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7771 # to get the SysV transport functions.
7772 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7773 # needs -lnsl.
7774 # The nsl library prevents programs from opening the X display
7775 # on Irix 5.2, according to dickey@clark.net.
7776 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
8dfea369 7777echo "configure:7778: checking for gethostbyname" >&5
ab9b9eab
VZ
7778if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7779 echo $ac_n "(cached) $ac_c" 1>&6
7780else
7781 cat > conftest.$ac_ext <<EOF
8dfea369 7782#line 7783 "configure"
ab9b9eab
VZ
7783#include "confdefs.h"
7784/* System header to define __stub macros and hopefully few prototypes,
7785 which can conflict with char gethostbyname(); below. */
7786#include <assert.h>
7787/* Override any gcc2 internal prototype to avoid an error. */
7788/* We use char because int might match the return type of a gcc2
7789 builtin and then its argument prototype would still apply. */
7790char gethostbyname();
7791
7792int main() {
7793
7794/* The GNU C library defines this for functions which it implements
7795 to always fail with ENOSYS. Some functions are actually named
7796 something starting with __ and the normal name is an alias. */
7797#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7798choke me
7799#else
e8482f24 7800gethostbyname();
ab9b9eab
VZ
7801#endif
7802
7803; return 0; }
7804EOF
8dfea369 7805if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7806 rm -rf conftest*
7807 eval "ac_cv_func_gethostbyname=yes"
7808else
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7811 rm -rf conftest*
7812 eval "ac_cv_func_gethostbyname=no"
7813fi
7814rm -f conftest*
7815fi
7816
7817if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7818 echo "$ac_t""yes" 1>&6
7819 :
7820else
7821 echo "$ac_t""no" 1>&6
7822fi
7823
7824 if test $ac_cv_func_gethostbyname = no; then
7825 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
8dfea369 7826echo "configure:7827: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7827ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7828if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7829 echo $ac_n "(cached) $ac_c" 1>&6
7830else
7831 ac_save_LIBS="$LIBS"
7832LIBS="-lnsl $LIBS"
7833cat > conftest.$ac_ext <<EOF
8dfea369 7834#line 7835 "configure"
ab9b9eab
VZ
7835#include "confdefs.h"
7836/* Override any gcc2 internal prototype to avoid an error. */
7837/* We use char because int might match the return type of a gcc2
7838 builtin and then its argument prototype would still apply. */
7839char gethostbyname();
7840
7841int main() {
7842gethostbyname()
7843; return 0; }
7844EOF
8dfea369 7845if { (eval echo configure:7846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7846 rm -rf conftest*
7847 eval "ac_cv_lib_$ac_lib_var=yes"
7848else
7849 echo "configure: failed program was:" >&5
7850 cat conftest.$ac_ext >&5
7851 rm -rf conftest*
7852 eval "ac_cv_lib_$ac_lib_var=no"
7853fi
7854rm -f conftest*
7855LIBS="$ac_save_LIBS"
7856
7857fi
7858if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7859 echo "$ac_t""yes" 1>&6
7860 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7861else
7862 echo "$ac_t""no" 1>&6
7863fi
7864
7865 fi
7866
7867 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7868 # socket/setsockopt and other routines are undefined under SCO ODT
7869 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7870 # on later versions), says simon@lia.di.epfl.ch: it contains
7871 # gethostby* variants that don't use the nameserver (or something).
7872 # -lsocket must be given before -lnsl if both are needed.
7873 # We assume that if connect needs -lnsl, so does gethostbyname.
7874 echo $ac_n "checking for connect""... $ac_c" 1>&6
8dfea369 7875echo "configure:7876: checking for connect" >&5
ab9b9eab
VZ
7876if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7877 echo $ac_n "(cached) $ac_c" 1>&6
7878else
7879 cat > conftest.$ac_ext <<EOF
8dfea369 7880#line 7881 "configure"
ab9b9eab
VZ
7881#include "confdefs.h"
7882/* System header to define __stub macros and hopefully few prototypes,
7883 which can conflict with char connect(); below. */
7884#include <assert.h>
7885/* Override any gcc2 internal prototype to avoid an error. */
7886/* We use char because int might match the return type of a gcc2
7887 builtin and then its argument prototype would still apply. */
7888char connect();
7889
7890int main() {
7891
7892/* The GNU C library defines this for functions which it implements
7893 to always fail with ENOSYS. Some functions are actually named
7894 something starting with __ and the normal name is an alias. */
7895#if defined (__stub_connect) || defined (__stub___connect)
7896choke me
7897#else
e8482f24 7898connect();
ab9b9eab
VZ
7899#endif
7900
7901; return 0; }
7902EOF
8dfea369 7903if { (eval echo configure:7904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7904 rm -rf conftest*
7905 eval "ac_cv_func_connect=yes"
7906else
7907 echo "configure: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7909 rm -rf conftest*
7910 eval "ac_cv_func_connect=no"
7911fi
7912rm -f conftest*
7913fi
7914
7915if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7916 echo "$ac_t""yes" 1>&6
7917 :
7918else
7919 echo "$ac_t""no" 1>&6
7920fi
7921
7922 if test $ac_cv_func_connect = no; then
7923 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
8dfea369 7924echo "configure:7925: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7925ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7926if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7927 echo $ac_n "(cached) $ac_c" 1>&6
7928else
7929 ac_save_LIBS="$LIBS"
7930LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7931cat > conftest.$ac_ext <<EOF
8dfea369 7932#line 7933 "configure"
ab9b9eab
VZ
7933#include "confdefs.h"
7934/* Override any gcc2 internal prototype to avoid an error. */
7935/* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7937char connect();
7938
7939int main() {
7940connect()
7941; return 0; }
7942EOF
8dfea369 7943if { (eval echo configure:7944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7944 rm -rf conftest*
7945 eval "ac_cv_lib_$ac_lib_var=yes"
7946else
7947 echo "configure: failed program was:" >&5
7948 cat conftest.$ac_ext >&5
7949 rm -rf conftest*
7950 eval "ac_cv_lib_$ac_lib_var=no"
7951fi
7952rm -f conftest*
7953LIBS="$ac_save_LIBS"
7954
7955fi
7956if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7957 echo "$ac_t""yes" 1>&6
7958 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7959else
7960 echo "$ac_t""no" 1>&6
7961fi
7962
7963 fi
7964
7965 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7966 echo $ac_n "checking for remove""... $ac_c" 1>&6
8dfea369 7967echo "configure:7968: checking for remove" >&5
ab9b9eab
VZ
7968if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7969 echo $ac_n "(cached) $ac_c" 1>&6
7970else
7971 cat > conftest.$ac_ext <<EOF
8dfea369 7972#line 7973 "configure"
ab9b9eab
VZ
7973#include "confdefs.h"
7974/* System header to define __stub macros and hopefully few prototypes,
7975 which can conflict with char remove(); below. */
7976#include <assert.h>
7977/* Override any gcc2 internal prototype to avoid an error. */
7978/* We use char because int might match the return type of a gcc2
7979 builtin and then its argument prototype would still apply. */
7980char remove();
7981
7982int main() {
7983
7984/* The GNU C library defines this for functions which it implements
7985 to always fail with ENOSYS. Some functions are actually named
7986 something starting with __ and the normal name is an alias. */
7987#if defined (__stub_remove) || defined (__stub___remove)
7988choke me
7989#else
e8482f24 7990remove();
ab9b9eab
VZ
7991#endif
7992
7993; return 0; }
7994EOF
8dfea369 7995if { (eval echo configure:7996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7996 rm -rf conftest*
7997 eval "ac_cv_func_remove=yes"
7998else
7999 echo "configure: failed program was:" >&5
8000 cat conftest.$ac_ext >&5
8001 rm -rf conftest*
8002 eval "ac_cv_func_remove=no"
8003fi
8004rm -f conftest*
8005fi
8006
8007if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8008 echo "$ac_t""yes" 1>&6
8009 :
8010else
8011 echo "$ac_t""no" 1>&6
8012fi
8013
8014 if test $ac_cv_func_remove = no; then
8015 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
8dfea369 8016echo "configure:8017: checking for remove in -lposix" >&5
ab9b9eab
VZ
8017ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8018if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8019 echo $ac_n "(cached) $ac_c" 1>&6
8020else
8021 ac_save_LIBS="$LIBS"
8022LIBS="-lposix $LIBS"
8023cat > conftest.$ac_ext <<EOF
8dfea369 8024#line 8025 "configure"
ab9b9eab
VZ
8025#include "confdefs.h"
8026/* Override any gcc2 internal prototype to avoid an error. */
8027/* We use char because int might match the return type of a gcc2
8028 builtin and then its argument prototype would still apply. */
8029char remove();
8030
8031int main() {
8032remove()
8033; return 0; }
8034EOF
8dfea369 8035if { (eval echo configure:8036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8036 rm -rf conftest*
8037 eval "ac_cv_lib_$ac_lib_var=yes"
8038else
8039 echo "configure: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8041 rm -rf conftest*
8042 eval "ac_cv_lib_$ac_lib_var=no"
8043fi
8044rm -f conftest*
8045LIBS="$ac_save_LIBS"
8046
8047fi
8048if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8049 echo "$ac_t""yes" 1>&6
8050 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8051else
8052 echo "$ac_t""no" 1>&6
8053fi
8054
8055 fi
8056
8057 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8058 echo $ac_n "checking for shmat""... $ac_c" 1>&6
8dfea369 8059echo "configure:8060: checking for shmat" >&5
ab9b9eab
VZ
8060if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8061 echo $ac_n "(cached) $ac_c" 1>&6
8062else
8063 cat > conftest.$ac_ext <<EOF
8dfea369 8064#line 8065 "configure"
ab9b9eab
VZ
8065#include "confdefs.h"
8066/* System header to define __stub macros and hopefully few prototypes,
8067 which can conflict with char shmat(); below. */
8068#include <assert.h>
8069/* Override any gcc2 internal prototype to avoid an error. */
8070/* We use char because int might match the return type of a gcc2
8071 builtin and then its argument prototype would still apply. */
8072char shmat();
8073
8074int main() {
8075
8076/* The GNU C library defines this for functions which it implements
8077 to always fail with ENOSYS. Some functions are actually named
8078 something starting with __ and the normal name is an alias. */
8079#if defined (__stub_shmat) || defined (__stub___shmat)
8080choke me
8081#else
e8482f24 8082shmat();
ab9b9eab
VZ
8083#endif
8084
8085; return 0; }
8086EOF
8dfea369 8087if { (eval echo configure:8088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8088 rm -rf conftest*
8089 eval "ac_cv_func_shmat=yes"
8090else
8091 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5
8093 rm -rf conftest*
8094 eval "ac_cv_func_shmat=no"
8095fi
8096rm -f conftest*
8097fi
8098
8099if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8100 echo "$ac_t""yes" 1>&6
8101 :
8102else
8103 echo "$ac_t""no" 1>&6
8104fi
8105
8106 if test $ac_cv_func_shmat = no; then
8107 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
8dfea369 8108echo "configure:8109: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8109ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8110if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8111 echo $ac_n "(cached) $ac_c" 1>&6
8112else
8113 ac_save_LIBS="$LIBS"
8114LIBS="-lipc $LIBS"
8115cat > conftest.$ac_ext <<EOF
8dfea369 8116#line 8117 "configure"
ab9b9eab
VZ
8117#include "confdefs.h"
8118/* Override any gcc2 internal prototype to avoid an error. */
8119/* We use char because int might match the return type of a gcc2
8120 builtin and then its argument prototype would still apply. */
8121char shmat();
8122
8123int main() {
8124shmat()
8125; return 0; }
8126EOF
8dfea369 8127if { (eval echo configure:8128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8128 rm -rf conftest*
8129 eval "ac_cv_lib_$ac_lib_var=yes"
8130else
8131 echo "configure: failed program was:" >&5
8132 cat conftest.$ac_ext >&5
8133 rm -rf conftest*
8134 eval "ac_cv_lib_$ac_lib_var=no"
8135fi
8136rm -f conftest*
8137LIBS="$ac_save_LIBS"
8138
8139fi
8140if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8141 echo "$ac_t""yes" 1>&6
8142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8143else
8144 echo "$ac_t""no" 1>&6
8145fi
8146
8147 fi
8148 fi
8149
8150 # Check for libraries that X11R6 Xt/Xaw programs need.
8151 ac_save_LDFLAGS="$LDFLAGS"
8152 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8153 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8154 # check for ICE first), but we must link in the order -lSM -lICE or
8155 # we get undefined symbols. So assume we have SM if we have ICE.
8156 # These have to be linked with before -lX11, unlike the other
8157 # libraries we check for below, so use a different variable.
8158 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8159 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8dfea369 8160echo "configure:8161: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8161ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8162if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8163 echo $ac_n "(cached) $ac_c" 1>&6
8164else
8165 ac_save_LIBS="$LIBS"
8166LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8167cat > conftest.$ac_ext <<EOF
8dfea369 8168#line 8169 "configure"
ab9b9eab
VZ
8169#include "confdefs.h"
8170/* Override any gcc2 internal prototype to avoid an error. */
8171/* We use char because int might match the return type of a gcc2
8172 builtin and then its argument prototype would still apply. */
8173char IceConnectionNumber();
8174
8175int main() {
8176IceConnectionNumber()
8177; return 0; }
8178EOF
8dfea369 8179if { (eval echo configure:8180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8180 rm -rf conftest*
8181 eval "ac_cv_lib_$ac_lib_var=yes"
8182else
8183 echo "configure: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8185 rm -rf conftest*
8186 eval "ac_cv_lib_$ac_lib_var=no"
8187fi
8188rm -f conftest*
8189LIBS="$ac_save_LIBS"
8190
8191fi
8192if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8193 echo "$ac_t""yes" 1>&6
8194 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8195else
8196 echo "$ac_t""no" 1>&6
8197fi
8198
8199 LDFLAGS="$ac_save_LDFLAGS"
8200
8201fi
8202
8203
8204 if test "$no_x" = "yes"; then
8205 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8206 fi
8207
8208 GUI_TK_LIBRARY="$X_LIBS"
8209 TOOLKIT_INCLUDE="$X_CFLAGS"
8210
dad6c0ea
VZ
8211 AFMINSTALL=afminstall
8212
ab9b9eab 8213
cd6d6d5b
VZ
8214 COMPILED_X_PROGRAM=0
8215
ab9b9eab 8216 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
8dfea369 8217echo "configure:8218: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8218
8219ac_find_includes=
8220for ac_dir in $SEARCH_INCLUDE;
8221 do
8222 if test -f "$ac_dir/Xm/Xm.h"; then
8223 ac_find_includes=$ac_dir
8224 break
8225 fi
8226 done
8227
8228 if test "$ac_find_includes" != "" ; then
8229 echo "$ac_t""found $ac_find_includes" 1>&6
8230 else
cd6d6d5b 8231 cat > conftest.$ac_ext <<EOF
8dfea369 8232#line 8233 "configure"
cd6d6d5b
VZ
8233#include "confdefs.h"
8234
8235 #include <Xm/Xm.h>
8236
8237int main() {
8238
8239 int version;
8240
8241 version = xmUseVersion;
8242
8243; return 0; }
8244EOF
8dfea369 8245if { (eval echo configure:8246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8246 rm -rf conftest*
8247
8248 echo "$ac_t""found in default search path" 1>&6
8249 COMPILED_X_PROGRAM=1
8250
8251else
8252 echo "configure: failed program was:" >&5
8253 cat conftest.$ac_ext >&5
8254 rm -rf conftest*
8255
8256 echo "$ac_t""no" 1>&6
8257 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8258
8259
8260fi
8261rm -f conftest*
ab9b9eab
VZ
8262 fi
8263
cd6d6d5b
VZ
8264 if test "$COMPILED_X_PROGRAM" = 0; then
8265 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
8dfea369 8266echo "configure:8267: checking for Motif/Lesstif library" >&5
cd6d6d5b 8267
ab9b9eab
VZ
8268ac_find_libraries=
8269for ac_dir in $SEARCH_LIB;
8270 do
8271 for ac_extension in a so sl; do
8272 if test -f "$ac_dir/libXm.$ac_extension"; then
8273 ac_find_libraries=$ac_dir
8274 break 2
8275 fi
8276 done
8277 done
8278
cd6d6d5b
VZ
8279 if test "$ac_find_libraries" != "" ; then
8280
ab9b9eab
VZ
8281 ac_path_to_include=$ac_find_includes
8282 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8283 result=$?
8284 if test $result = 0; then
8285 ac_path_to_include=""
8286 else
8287 ac_path_to_include="-I$ac_find_includes"
8288 fi
8289
cd6d6d5b 8290
ab9b9eab
VZ
8291 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8292 result=$?
8293 if test $result = 0; then
8294 ac_path_to_link=""
8295 else
8296 ac_path_to_link="-L$ac_find_libraries"
8297 fi
8298
8299
cd6d6d5b
VZ
8300 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8301 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8302 echo "$ac_t""found at $ac_find_libraries" 1>&6
8303 else
8304 cat > conftest.$ac_ext <<EOF
8dfea369 8305#line 8306 "configure"
cd6d6d5b 8306#include "confdefs.h"
ab9b9eab 8307
cd6d6d5b
VZ
8308 #include <Xm/Xm.h>
8309
8310int main() {
ab9b9eab 8311
cd6d6d5b 8312 int version;
ab9b9eab 8313
cd6d6d5b
VZ
8314 version = xmUseVersion;
8315
8316; return 0; }
8317EOF
8dfea369 8318if { (eval echo configure:8319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8319 rm -rf conftest*
8320
8321 echo "$ac_t""found in default search path" 1>&6
8322 COMPILED_X_PROGRAM=1
8323
8324else
8325 echo "configure: failed program was:" >&5
8326 cat conftest.$ac_ext >&5
8327 rm -rf conftest*
8328
8329 echo "$ac_t""no" 1>&6
8330 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8331
8332
8333fi
8334rm -f conftest*
8335 fi
ab9b9eab
VZ
8336 fi
8337
cd6d6d5b 8338
ab9b9eab
VZ
8339 XPM_LINK=""
8340 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8dfea369 8341echo "configure:8342: checking for Xpm library" >&5
ab9b9eab
VZ
8342
8343ac_find_libraries=
8344for ac_dir in $SEARCH_LIB;
8345 do
8346 for ac_extension in a so sl; do
8347 if test -f "$ac_dir/libXpm.$ac_extension"; then
8348 ac_find_libraries=$ac_dir
8349 break 2
8350 fi
8351 done
8352 done
8353
8354 if test "$ac_find_libraries" != "" ; then
8355
8356 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8357 result=$?
8358 if test $result = 0; then
8359 ac_path_to_link=""
8360 else
8361 ac_path_to_link="-L$ac_find_libraries"
8362 fi
8363
8364 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8365 XPM_LINK="-lXpm "
8366 cat >> confdefs.h <<\EOF
8367#define wxHAVE_LIB_XPM 1
8368EOF
8369
8370 echo "$ac_t""found at $ac_find_libraries" 1>&6
8371 else
cd6d6d5b 8372 cat > conftest.$ac_ext <<EOF
8dfea369 8373#line 8374 "configure"
cd6d6d5b
VZ
8374#include "confdefs.h"
8375
8376 #include <X11/xpm.h>
8377
8378int main() {
8379
8380 int version;
8381
8382 version = XpmLibraryVersion();
8383
8384; return 0; }
8385EOF
8dfea369 8386if { (eval echo configure:8387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8387 rm -rf conftest*
8388
bdad4e7e
RR
8389 XPM_LINK="-lXpm "
8390 cat >> confdefs.h <<\EOF
3ace2e6d
SN
8391#define wxHAVE_LIB_XPM 1
8392EOF
8393
8394 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
8395 COMPILED_X_PROGRAM=0
8396
8397else
8398 echo "configure: failed program was:" >&5
8399 cat conftest.$ac_ext >&5
8400 rm -rf conftest*
8401
8402 echo "$ac_t""no" 1>&6
8403 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8404
8405
8406fi
8407rm -f conftest*
ab9b9eab
VZ
8408 fi
8409
8410 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8411 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8412 TOOLKIT=MOTIF
8413
8414 GUIHEADERS="\$(MOTIF_HEADERS)"
8415 GUIOBJS="\$(MOTIF_GUIOBJS)"
8416 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8417 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8418 GUIDEPS="\$(MOTIF_GUIDEPS)"
8419 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8420 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8421 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8422 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8423 GUIDIST=MOTIF_DIST
8424fi
8425
e07802fc
VZ
8426if test "$wxUSE_PM" = 1; then
8427 TOOLKIT=PM
8428
8429 GUIOBJS="\$(PM_GUIOBJS)"
8430 GUIHEADERS="\$(PM_HEADERS)"
8431 COMMONOBJS="\$(PM_COMMONOBJS)"
8432 GENERICOBJS="\$(PM_GENERICOBJS)"
8433 GUIDEPS="\$(PM_GUIDEPS)"
8434 COMMONDEPS="\$(PM_COMMONDEPS)"
8435 GENERICDEPS="\$(PM_GENERICDEPS)"
8436 UNIXOBJS=
8437 UNIXDEPS=
8438 GUIDIST=GTK_DIST
8439fi
8440
8441if test "$TOOLKIT" != "PM" ; then
ec14dd32 8442 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8443else
8444 TOOLKIT_DIR="os2"
8445fi
10f2d63a 8446
2224580a 8447 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 8448
2224580a 8449 WX_LIBRARY="wx_${TOOLKIT_DIR}"
10f2d63a 8450
bdad4e7e 8451 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 8452
b089607b 8453 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
8454 if test "$wxUSE_ODBC" = "yes" ; then
8455 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8456 fi
3fcdd07b
VZ
8457 fi
8458
d9d8273d 8459 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 8460 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
8461 fi
8462 if test "$wxUSE_LIBTIFF" = "yes" ; then
8463 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8464 fi
8465 if test "$wxUSE_LIBPNG" = "yes" ; then
8466 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8467 fi
8468 if test "$wxUSE_ZLIB" = "yes" ; then
8469 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8470 fi
bdad4e7e 8471 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
8472
8473 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8474 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8475 RPM_SPEC="wx\$(TOOLKIT).spec"
8476
8477 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8478 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 8479else
dad6c0ea
VZ
8480 USE_GUI=0
8481
07eb77a6
RL
8482 TOOLKIT_DIR="base"
8483 TOOLKIT_DEF="-D__WXBASE__"
8484
2224580a
VZ
8485 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8486 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
10f2d63a
VZ
8487
8488 WX_LIBRARY="wxbase"
2224580a
VZ
8489
8490 PORT_FILES="src/files.lst"
8491 RPM_FILES="src/rpmfiles.lst"
8492 RPM_SPEC="wxBase.spec"
8493
8494 GUIDIST="BASE_DIST"
8495 DISTDIR="wxBase"
10f2d63a
VZ
8496fi
8497
8498WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 8499WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
8500
8501WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 8502WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
8503
8504WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 8505WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
8506
8507WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8508WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8509WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
8510WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
8511WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
8512WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
8513
8514SHARED_LD=
8515PIC_FLAG=
8516WX_ALL=
8517WX_ALL_INSTALLED=
1d62a8b4 8518BURNT_LIBRARY_NAME=
10f2d63a 8519
b12915c1 8520
10f2d63a
VZ
8521if test "$wxUSE_SHARED" = "yes"; then
8522 case "${host}" in
8523 *-hp-hpux* )
8524 if test "$GCC" = yes ; then
69ffe1d2 8525 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8526 PIC_FLAG="-fPIC"
8527 else
8528 SHARED_LD="${CXX} -b -o"
8529 PIC_FLAG="+Z"
8530 fi
8531 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
bdad4e7e 8532 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_DIR}_gl.sl"
c661ecca
RR
8533 if test "$wxUSE_OPENGL" = "yes"; then
8534 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
8535 else
8536 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
8537 fi
10f2d63a 8538 ;;
b12915c1
VZ
8539
8540 *-*-linux* )
10f2d63a
VZ
8541 SHARED_LD="${CC} -shared -o"
8542 PIC_FLAG="-fPIC"
00cf1208 8543 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 8544 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 8545 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
00cf1208 8546 fi
c661ecca
RR
8547 if test "$wxUSE_OPENGL" = "yes"; then
8548 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8549 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8550 else
8551 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8552 WX_ALL="CREATE_LINKS"
422107f9 8553 fi
00cf1208 8554 ;;
10f2d63a
VZ
8555 *-*-irix5* | *-*-irix6* )
8556 if test "$GCC" = yes ; then
8557 SHARED_LD="${CC} -shared -o"
8558 PIC_FLAG="-fPIC"
8559 else
8560 SHARED_LD="${CXX} -shared -o"
8561 fi
c661ecca
RR
8562 if test "$wxUSE_OPENGL" = "yes"; then
8563 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8564 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8565 else
8566 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8567 WX_ALL="CREATE_LINKS"
422107f9 8568 fi
10f2d63a
VZ
8569 ;;
8570 *-*-solaris2* )
8571 if test "$GCC" = yes ; then
8572 SHARED_LD="${CC} -shared -o"
8573 PIC_FLAG="-fPIC"
8574 else
8575 SHARED_LD="${CXX} -G -o"
8576 PIC_FLAG="-KPIC"
8577 fi
c661ecca
RR
8578 if test "$wxUSE_OPENGL" = "yes"; then
8579 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8580 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8581 else
8582 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8583 WX_ALL="CREATE_LINKS"
8584 fi
10f2d63a
VZ
8585 ;;
8586 *-*-sunos4* )
8587 SHARED_LD="${CC} -shared -o"
8588 PIC_FLAG="-fPIC"
8589 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8590 WX_ALL="CREATE_LINKS"
8591 ;;
8592 *-*-freebsd* | *-*-netbsd*)
8593 SHARED_LD="${CC} -shared -o"
8594 PIC_FLAG="-fPIC"
8595 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8596 WX_ALL="CREATE_LINKS"
8597 ;;
8598 *-*-osf* )
8599 SHARED_LD="${CXX} -shared -o"
8600 PIC_FLAG="-fPIC"
8601 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8602 WX_ALL="CREATE_LINKS"
8603 ;;
8604 *-*-dgux5* )
8605 SHARED_LD="${CXX} -shared -o"
8606 PIC_FLAG="-fPIC"
8607 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8608 WX_ALL="CREATE_LINKS"
8609 ;;
8610 *-*-sysv5* )
8611 SHARED_LD="${CC} -shared -o"
8612 PIC_FLAG="-fPIC"
8613 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8614 WX_ALL="CREATE_LINKS"
8615 ;;
8616 *-*-aix* )
8617 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8618 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8619 ;;
8620 *-*-cygwin32* )
8621 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8622 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8623 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8624 ;;
b12915c1 8625 *-*-mingw32* )
10f2d63a 8626 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8627 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8628 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8629 ;;
8630 *-pc-os2_emx )
e07802fc
VZ
8631 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8632 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 8633 ;;
b12915c1 8634 *-*-beos* )
e2b8b066 8635 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
8636 PIC_FLAG="-fPIC"
8637 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8638 WX_ALL="CREATE_LINKS"
8639 ;;
10f2d63a
VZ
8640 *)
8641 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8642 esac
8643
8644 if test "x$WX_TARGET_LIBRARY" = "x"; then
8645 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 8646 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a
VZ
8647 fi
8648else
8649 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8650 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8651 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8652fi
8653
8654
8655for ac_hdr in strings.h
8656do
8657ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8658echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8dfea369 8659echo "configure:8660: checking for $ac_hdr" >&5
10f2d63a
VZ
8660if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8661 echo $ac_n "(cached) $ac_c" 1>&6
8662else
8663 cat > conftest.$ac_ext <<EOF
8dfea369 8664#line 8665 "configure"
10f2d63a
VZ
8665#include "confdefs.h"
8666#include <$ac_hdr>
8667EOF
8668ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 8669{ (eval echo configure:8670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8670ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8671if test -z "$ac_err"; then
8672 rm -rf conftest*
8673 eval "ac_cv_header_$ac_safe=yes"
8674else
8675 echo "$ac_err" >&5
8676 echo "configure: failed program was:" >&5
8677 cat conftest.$ac_ext >&5
8678 rm -rf conftest*
8679 eval "ac_cv_header_$ac_safe=no"
8680fi
8681rm -f conftest*
8682fi
8683if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8684 echo "$ac_t""yes" 1>&6
8685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8686 cat >> confdefs.h <<EOF
8687#define $ac_tr_hdr 1
8688EOF
8689
8690else
8691 echo "$ac_t""no" 1>&6
8692fi
8693done
8694
8695for ac_hdr in unistd.h
8696do
8697ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8698echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8dfea369 8699echo "configure:8700: checking for $ac_hdr" >&5
10f2d63a
VZ
8700if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8701 echo $ac_n "(cached) $ac_c" 1>&6
8702else
8703 cat > conftest.$ac_ext <<EOF
8dfea369 8704#line 8705 "configure"
10f2d63a
VZ
8705#include "confdefs.h"
8706#include <$ac_hdr>
8707EOF
8708ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 8709{ (eval echo configure:8710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8710ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8711if test -z "$ac_err"; then
8712 rm -rf conftest*
8713 eval "ac_cv_header_$ac_safe=yes"
8714else
8715 echo "$ac_err" >&5
8716 echo "configure: failed program was:" >&5
8717 cat conftest.$ac_ext >&5
8718 rm -rf conftest*
8719 eval "ac_cv_header_$ac_safe=no"
8720fi
8721rm -f conftest*
8722fi
8723if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8724 echo "$ac_t""yes" 1>&6
8725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8726 cat >> confdefs.h <<EOF
8727#define $ac_tr_hdr 1
8728EOF
8729
8730else
8731 echo "$ac_t""no" 1>&6
8732fi
8733done
8734
8735for ac_hdr in wchar.h
8736do
8737ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8738echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8dfea369 8739echo "configure:8740: checking for $ac_hdr" >&5
10f2d63a
VZ
8740if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8741 echo $ac_n "(cached) $ac_c" 1>&6
8742else
8743 cat > conftest.$ac_ext <<EOF
8dfea369 8744#line 8745 "configure"
10f2d63a
VZ
8745#include "confdefs.h"
8746#include <$ac_hdr>
8747EOF
8748ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 8749{ (eval echo configure:8750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8750ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8751if test -z "$ac_err"; then
8752 rm -rf conftest*
8753 eval "ac_cv_header_$ac_safe=yes"
8754else
8755 echo "$ac_err" >&5
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8758 rm -rf conftest*
8759 eval "ac_cv_header_$ac_safe=no"
8760fi
8761rm -f conftest*
8762fi
8763if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8764 echo "$ac_t""yes" 1>&6
8765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8766 cat >> confdefs.h <<EOF
8767#define $ac_tr_hdr 1
8768EOF
8769
8770else
8771 echo "$ac_t""no" 1>&6
8772fi
8773done
8774
8775for ac_hdr in wcstr.h
8776do
8777ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8778echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8dfea369 8779echo "configure:8780: checking for $ac_hdr" >&5
10f2d63a
VZ
8780if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8781 echo $ac_n "(cached) $ac_c" 1>&6
8782else
8783 cat > conftest.$ac_ext <<EOF
8dfea369 8784#line 8785 "configure"
10f2d63a
VZ
8785#include "confdefs.h"
8786#include <$ac_hdr>
8787EOF
8788ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 8789{ (eval echo configure:8790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8790ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8791if test -z "$ac_err"; then
8792 rm -rf conftest*
8793 eval "ac_cv_header_$ac_safe=yes"
8794else
8795 echo "$ac_err" >&5
8796 echo "configure: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8798 rm -rf conftest*
8799 eval "ac_cv_header_$ac_safe=no"
8800fi
8801rm -f conftest*
8802fi
8803if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8804 echo "$ac_t""yes" 1>&6
8805 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8806 cat >> confdefs.h <<EOF
8807#define $ac_tr_hdr 1
8808EOF
8809
8810else
8811 echo "$ac_t""no" 1>&6
8812fi
8813done
8814
8815for ac_hdr in fnmatch.h
8816do
8817ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8818echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8dfea369 8819echo "configure:8820: checking for $ac_hdr" >&5
10f2d63a
VZ
8820if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8821 echo $ac_n "(cached) $ac_c" 1>&6
8822else
8823 cat > conftest.$ac_ext <<EOF
8dfea369 8824#line 8825 "configure"
10f2d63a
VZ
8825#include "confdefs.h"
8826#include <$ac_hdr>
8827EOF
8828ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 8829{ (eval echo configure:8830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8830ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8831if test -z "$ac_err"; then
8832 rm -rf conftest*
8833 eval "ac_cv_header_$ac_safe=yes"
8834else
8835 echo "$ac_err" >&5
8836 echo "configure: failed program was:" >&5
8837 cat conftest.$ac_ext >&5
8838 rm -rf conftest*
8839 eval "ac_cv_header_$ac_safe=no"
8840fi
8841rm -f conftest*
8842fi
8843if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8844 echo "$ac_t""yes" 1>&6
8845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8846 cat >> confdefs.h <<EOF
8847#define $ac_tr_hdr 1
8848EOF
8849
8850else
8851 echo "$ac_t""no" 1>&6
8852fi
8853done
8854
8855
73fd4a60
VZ
8856if test "$wxUSE_GUI" = "yes"; then
8857 if test "$wxUSE_UNIX" = "yes"; then
8858 for ac_hdr in X11/XKBlib.h
10f2d63a
VZ
8859do
8860ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8861echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8dfea369 8862echo "configure:8863: checking for $ac_hdr" >&5
10f2d63a
VZ
8863if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8864 echo $ac_n "(cached) $ac_c" 1>&6
8865else
8866 cat > conftest.$ac_ext <<EOF
8dfea369 8867#line 8868 "configure"
10f2d63a
VZ
8868#include "confdefs.h"
8869#include <$ac_hdr>
8870EOF
8871ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 8872{ (eval echo configure:8873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8873ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8874if test -z "$ac_err"; then
8875 rm -rf conftest*
8876 eval "ac_cv_header_$ac_safe=yes"
8877else
8878 echo "$ac_err" >&5
8879 echo "configure: failed program was:" >&5
8880 cat conftest.$ac_ext >&5
8881 rm -rf conftest*
8882 eval "ac_cv_header_$ac_safe=no"
8883fi
8884rm -f conftest*
8885fi
8886if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8887 echo "$ac_t""yes" 1>&6
8888 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8889 cat >> confdefs.h <<EOF
8890#define $ac_tr_hdr 1
8891EOF
8892
8893else
8894 echo "$ac_t""no" 1>&6
8895fi
8896done
8897
73fd4a60 8898 fi
10f2d63a
VZ
8899fi
8900
8901
8902echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8dfea369 8903echo "configure:8904: checking for ANSI C header files" >&5
10f2d63a
VZ
8904if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8905 echo $ac_n "(cached) $ac_c" 1>&6
8906else
8907 cat > conftest.$ac_ext <<EOF
8dfea369 8908#line 8909 "configure"
10f2d63a
VZ
8909#include "confdefs.h"
8910#include <stdlib.h>
8911#include <stdarg.h>
8912#include <string.h>
8913#include <float.h>
8914EOF
8915ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 8916{ (eval echo configure:8917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8917ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8918if test -z "$ac_err"; then
8919 rm -rf conftest*
8920 ac_cv_header_stdc=yes
8921else
8922 echo "$ac_err" >&5
8923 echo "configure: failed program was:" >&5
8924 cat conftest.$ac_ext >&5
8925 rm -rf conftest*
8926 ac_cv_header_stdc=no
8927fi
8928rm -f conftest*
8929
8930if test $ac_cv_header_stdc = yes; then
8931 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8932cat > conftest.$ac_ext <<EOF
8dfea369 8933#line 8934 "configure"
10f2d63a
VZ
8934#include "confdefs.h"
8935#include <string.h>
8936EOF
8937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8938 egrep "memchr" >/dev/null 2>&1; then
8939 :
8940else
8941 rm -rf conftest*
8942 ac_cv_header_stdc=no
8943fi
8944rm -f conftest*
8945
8946fi
8947
8948if test $ac_cv_header_stdc = yes; then
8949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8950cat > conftest.$ac_ext <<EOF
8dfea369 8951#line 8952 "configure"
10f2d63a
VZ
8952#include "confdefs.h"
8953#include <stdlib.h>
8954EOF
8955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8956 egrep "free" >/dev/null 2>&1; then
8957 :
8958else
8959 rm -rf conftest*
8960 ac_cv_header_stdc=no
8961fi
8962rm -f conftest*
8963
8964fi
8965
8966if test $ac_cv_header_stdc = yes; then
8967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8968if test "$cross_compiling" = yes; then
8969 :
8970else
8971 cat > conftest.$ac_ext <<EOF
8dfea369 8972#line 8973 "configure"
10f2d63a
VZ
8973#include "confdefs.h"
8974#include <ctype.h>
8975#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8976#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8977#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8978int main () { int i; for (i = 0; i < 256; i++)
8979if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8980exit (0); }
8981
8982EOF
8dfea369 8983if { (eval echo configure:8984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8984then
8985 :
8986else
8987 echo "configure: failed program was:" >&5
8988 cat conftest.$ac_ext >&5
8989 rm -fr conftest*
8990 ac_cv_header_stdc=no
8991fi
8992rm -fr conftest*
8993fi
8994
8995fi
8996fi
8997
8998echo "$ac_t""$ac_cv_header_stdc" 1>&6
8999if test $ac_cv_header_stdc = yes; then
9000 cat >> confdefs.h <<\EOF
9001#define STDC_HEADERS 1
9002EOF
9003
9004fi
9005
9006echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8dfea369 9007echo "configure:9008: checking for mode_t" >&5
10f2d63a
VZ
9008if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9009 echo $ac_n "(cached) $ac_c" 1>&6
9010else
9011 cat > conftest.$ac_ext <<EOF
8dfea369 9012#line 9013 "configure"
10f2d63a
VZ
9013#include "confdefs.h"
9014#include <sys/types.h>
9015#if STDC_HEADERS
9016#include <stdlib.h>
9017#include <stddef.h>
9018#endif
9019EOF
9020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9021 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9022 rm -rf conftest*
9023 ac_cv_type_mode_t=yes
9024else
9025 rm -rf conftest*
9026 ac_cv_type_mode_t=no
9027fi
9028rm -f conftest*
9029
9030fi
9031echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9032if test $ac_cv_type_mode_t = no; then
9033 cat >> confdefs.h <<\EOF
9034#define mode_t int
9035EOF
9036
9037fi
9038
9039echo $ac_n "checking for off_t""... $ac_c" 1>&6
8dfea369 9040echo "configure:9041: checking for off_t" >&5
10f2d63a
VZ
9041if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9042 echo $ac_n "(cached) $ac_c" 1>&6
9043else
9044 cat > conftest.$ac_ext <<EOF
8dfea369 9045#line 9046 "configure"
10f2d63a
VZ
9046#include "confdefs.h"
9047#include <sys/types.h>
9048#if STDC_HEADERS
9049#include <stdlib.h>
9050#include <stddef.h>
9051#endif
9052EOF
9053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9054 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9055 rm -rf conftest*
9056 ac_cv_type_off_t=yes
9057else
9058 rm -rf conftest*
9059 ac_cv_type_off_t=no
9060fi
9061rm -f conftest*
9062
9063fi
9064echo "$ac_t""$ac_cv_type_off_t" 1>&6
9065if test $ac_cv_type_off_t = no; then
9066 cat >> confdefs.h <<\EOF
9067#define off_t long
9068EOF
9069
9070fi
9071
9072echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8dfea369 9073echo "configure:9074: checking for pid_t" >&5
10f2d63a
VZ
9074if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9075 echo $ac_n "(cached) $ac_c" 1>&6
9076else
9077 cat > conftest.$ac_ext <<EOF
8dfea369 9078#line 9079 "configure"
10f2d63a
VZ
9079#include "confdefs.h"
9080#include <sys/types.h>
9081#if STDC_HEADERS
9082#include <stdlib.h>
9083#include <stddef.h>
9084#endif
9085EOF
9086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9087 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9088 rm -rf conftest*
9089 ac_cv_type_pid_t=yes
9090else
9091 rm -rf conftest*
9092 ac_cv_type_pid_t=no
9093fi
9094rm -f conftest*
9095
9096fi
9097echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9098if test $ac_cv_type_pid_t = no; then
9099 cat >> confdefs.h <<\EOF
9100#define pid_t int
9101EOF
9102
9103fi
9104
9105echo $ac_n "checking for size_t""... $ac_c" 1>&6
8dfea369 9106echo "configure:9107: checking for size_t" >&5
10f2d63a
VZ
9107if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9108 echo $ac_n "(cached) $ac_c" 1>&6
9109else
9110 cat > conftest.$ac_ext <<EOF
8dfea369 9111#line 9112 "configure"
10f2d63a
VZ
9112#include "confdefs.h"
9113#include <sys/types.h>
9114#if STDC_HEADERS
9115#include <stdlib.h>
9116#include <stddef.h>
9117#endif
9118EOF
9119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9120 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9121 rm -rf conftest*
9122 ac_cv_type_size_t=yes
9123else
9124 rm -rf conftest*
9125 ac_cv_type_size_t=no
9126fi
9127rm -f conftest*
9128
9129fi
9130echo "$ac_t""$ac_cv_type_size_t" 1>&6
9131if test $ac_cv_type_size_t = no; then
9132 cat >> confdefs.h <<\EOF
9133#define size_t unsigned
9134EOF
9135
9136fi
9137
9138echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8dfea369 9139echo "configure:9140: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
9140if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9141 echo $ac_n "(cached) $ac_c" 1>&6
9142else
9143 cat > conftest.$ac_ext <<EOF
8dfea369 9144#line 9145 "configure"
10f2d63a
VZ
9145#include "confdefs.h"
9146#include <sys/types.h>
9147EOF
9148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9149 egrep "uid_t" >/dev/null 2>&1; then
9150 rm -rf conftest*
9151 ac_cv_type_uid_t=yes
9152else
9153 rm -rf conftest*
9154 ac_cv_type_uid_t=no
9155fi
9156rm -f conftest*
9157
9158fi
9159
9160echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9161if test $ac_cv_type_uid_t = no; then
9162 cat >> confdefs.h <<\EOF
9163#define uid_t int
9164EOF
9165
9166 cat >> confdefs.h <<\EOF
9167#define gid_t int
9168EOF
9169
9170fi
9171
9172
9173
b12915c1 9174echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
8dfea369 9175echo "configure:9176: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
9176if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9177 echo $ac_n "(cached) $ac_c" 1>&6
9178else
9179
9180 cat > conftest.$ac_ext <<EOF
8dfea369 9181#line 9182 "configure"
b12915c1
VZ
9182#include "confdefs.h"
9183#include <pwd.h>
9184int main() {
9185
9186 char *p;
9187 struct passwd *pw;
9188 p = pw->pw_gecos;
9189
9190; return 0; }
9191EOF
8dfea369 9192if { (eval echo configure:9193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
9193 rm -rf conftest*
9194
9195 wx_cv_struct_pw_gecos=yes
9196 cat >> confdefs.h <<\EOF
9197#define HAVE_PW_GECOS 1
9198EOF
9199
9200
9201else
9202 echo "configure: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9204 rm -rf conftest*
9205
9206 wx_cv_struct_pw_gecos=no
9207
9208
9209fi
9210rm -f conftest*
9211
9212
9213fi
9214
9215echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9216
10f2d63a
VZ
9217
9218echo $ac_n "checking for working const""... $ac_c" 1>&6
8dfea369 9219echo "configure:9220: checking for working const" >&5
10f2d63a
VZ
9220if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9221 echo $ac_n "(cached) $ac_c" 1>&6
9222else
9223 cat > conftest.$ac_ext <<EOF
8dfea369 9224#line 9225 "configure"
10f2d63a
VZ
9225#include "confdefs.h"
9226
9227int main() {
9228
9229/* Ultrix mips cc rejects this. */
24528b0c 9230typedef int charset[2]; const charset x;
10f2d63a
VZ
9231/* SunOS 4.1.1 cc rejects this. */
9232char const *const *ccp;
9233char **p;
9234/* NEC SVR4.0.2 mips cc rejects this. */
9235struct point {int x, y;};
9236static struct point const zero = {0,0};
9237/* AIX XL C 1.02.0.0 rejects this.
9238 It does not let you subtract one const X* pointer from another in an arm
9239 of an if-expression whose if-part is not a constant expression */
9240const char *g = "string";
9241ccp = &g + (g ? g-g : 0);
9242/* HPUX 7.0 cc rejects these. */
9243++ccp;
9244p = (char**) ccp;
9245ccp = (char const *const *) p;
9246{ /* SCO 3.2v4 cc rejects this. */
9247 char *t;
9248 char const *s = 0 ? (char *) 0 : (char const *) 0;
9249
9250 *t++ = 0;
9251}
9252{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9253 int x[] = {25, 17};
9254 const int *foo = &x[0];
9255 ++foo;
9256}
9257{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9258 typedef const int *iptr;
9259 iptr p = 0;
9260 ++p;
9261}
9262{ /* AIX XL C 1.02.0.0 rejects this saying
9263 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9264 struct s { int j; const int *ap[3]; };
9265 struct s *b; b->j = 5;
9266}
9267{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9268 const int foo = 10;
9269}
9270
9271; return 0; }
9272EOF
8dfea369 9273if { (eval echo configure:9274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9274 rm -rf conftest*
9275 ac_cv_c_const=yes
9276else
9277 echo "configure: failed program was:" >&5
9278 cat conftest.$ac_ext >&5
9279 rm -rf conftest*
9280 ac_cv_c_const=no
9281fi
9282rm -f conftest*
9283fi
9284
9285echo "$ac_t""$ac_cv_c_const" 1>&6
9286if test $ac_cv_c_const = no; then
9287 cat >> confdefs.h <<\EOF
9288#define const
9289EOF
9290
9291fi
9292
9293echo $ac_n "checking for inline""... $ac_c" 1>&6
8dfea369 9294echo "configure:9295: checking for inline" >&5
10f2d63a
VZ
9295if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9296 echo $ac_n "(cached) $ac_c" 1>&6
9297else
9298 ac_cv_c_inline=no
9299for ac_kw in inline __inline__ __inline; do
9300 cat > conftest.$ac_ext <<EOF
8dfea369 9301#line 9302 "configure"
10f2d63a
VZ
9302#include "confdefs.h"
9303
9304int main() {
24528b0c 9305} $ac_kw foo() {
10f2d63a
VZ
9306; return 0; }
9307EOF
8dfea369 9308if { (eval echo configure:9309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9309 rm -rf conftest*
9310 ac_cv_c_inline=$ac_kw; break
9311else
9312 echo "configure: failed program was:" >&5
9313 cat conftest.$ac_ext >&5
9314fi
9315rm -f conftest*
9316done
9317
9318fi
9319
9320echo "$ac_t""$ac_cv_c_inline" 1>&6
9321case "$ac_cv_c_inline" in
9322 inline | yes) ;;
9323 no) cat >> confdefs.h <<\EOF
9324#define inline
9325EOF
9326 ;;
9327 *) cat >> confdefs.h <<EOF
9328#define inline $ac_cv_c_inline
9329EOF
9330 ;;
9331esac
9332
9333
9334echo $ac_n "checking size of char""... $ac_c" 1>&6
8dfea369 9335echo "configure:9336: checking size of char" >&5
10f2d63a
VZ
9336if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9337 echo $ac_n "(cached) $ac_c" 1>&6
9338else
9339 if test "$cross_compiling" = yes; then
9340 ac_cv_sizeof_char=1
9341else
9342 cat > conftest.$ac_ext <<EOF
8dfea369 9343#line 9344 "configure"
10f2d63a
VZ
9344#include "confdefs.h"
9345#include <stdio.h>
9346main()
9347{
9348 FILE *f=fopen("conftestval", "w");
9349 if (!f) exit(1);
9350 fprintf(f, "%d\n", sizeof(char));
9351 exit(0);
9352}
9353EOF
8dfea369 9354if { (eval echo configure:9355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9355then
9356 ac_cv_sizeof_char=`cat conftestval`
9357else
9358 echo "configure: failed program was:" >&5
9359 cat conftest.$ac_ext >&5
9360 rm -fr conftest*
9361 ac_cv_sizeof_char=0
9362fi
9363rm -fr conftest*
9364fi
9365
9366fi
9367echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9368cat >> confdefs.h <<EOF
9369#define SIZEOF_CHAR $ac_cv_sizeof_char
9370EOF
9371
9372
9373echo $ac_n "checking size of short""... $ac_c" 1>&6
8dfea369 9374echo "configure:9375: checking size of short" >&5
10f2d63a
VZ
9375if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9376 echo $ac_n "(cached) $ac_c" 1>&6
9377else
9378 if test "$cross_compiling" = yes; then
9379 ac_cv_sizeof_short=2
9380else
9381 cat > conftest.$ac_ext <<EOF
8dfea369 9382#line 9383 "configure"
10f2d63a
VZ
9383#include "confdefs.h"
9384#include <stdio.h>
9385main()
9386{
9387 FILE *f=fopen("conftestval", "w");
9388 if (!f) exit(1);
9389 fprintf(f, "%d\n", sizeof(short));
9390 exit(0);
9391}
9392EOF
8dfea369 9393if { (eval echo configure:9394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9394then
9395 ac_cv_sizeof_short=`cat conftestval`
9396else
9397 echo "configure: failed program was:" >&5
9398 cat conftest.$ac_ext >&5
9399 rm -fr conftest*
9400 ac_cv_sizeof_short=0
9401fi
9402rm -fr conftest*
9403fi
9404
9405fi
9406echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9407cat >> confdefs.h <<EOF
9408#define SIZEOF_SHORT $ac_cv_sizeof_short
9409EOF
9410
9411
9412echo $ac_n "checking size of int *""... $ac_c" 1>&6
8dfea369 9413echo "configure:9414: checking size of int *" >&5
10f2d63a
VZ
9414if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9415 echo $ac_n "(cached) $ac_c" 1>&6
9416else
9417 if test "$cross_compiling" = yes; then
9418 ac_cv_sizeof_int_p=4
9419else
9420 cat > conftest.$ac_ext <<EOF
8dfea369 9421#line 9422 "configure"
10f2d63a
VZ
9422#include "confdefs.h"
9423#include <stdio.h>
9424main()
9425{
9426 FILE *f=fopen("conftestval", "w");
9427 if (!f) exit(1);
9428 fprintf(f, "%d\n", sizeof(int *));
9429 exit(0);
9430}
9431EOF
8dfea369 9432if { (eval echo configure:9433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9433then
9434 ac_cv_sizeof_int_p=`cat conftestval`
9435else
9436 echo "configure: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9438 rm -fr conftest*
9439 ac_cv_sizeof_int_p=0
9440fi
9441rm -fr conftest*
9442fi
9443
9444fi
9445echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9446cat >> confdefs.h <<EOF
9447#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9448EOF
9449
9450
9451echo $ac_n "checking size of int""... $ac_c" 1>&6
8dfea369 9452echo "configure:9453: checking size of int" >&5
10f2d63a
VZ
9453if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9454 echo $ac_n "(cached) $ac_c" 1>&6
9455else
9456 if test "$cross_compiling" = yes; then
9457 ac_cv_sizeof_int=4
9458else
9459 cat > conftest.$ac_ext <<EOF
8dfea369 9460#line 9461 "configure"
10f2d63a
VZ
9461#include "confdefs.h"
9462#include <stdio.h>
9463main()
9464{
9465 FILE *f=fopen("conftestval", "w");
9466 if (!f) exit(1);
9467 fprintf(f, "%d\n", sizeof(int));
9468 exit(0);
9469}
9470EOF
8dfea369 9471if { (eval echo configure:9472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9472then
9473 ac_cv_sizeof_int=`cat conftestval`
9474else
9475 echo "configure: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9477 rm -fr conftest*
9478 ac_cv_sizeof_int=0
9479fi
9480rm -fr conftest*
9481fi
9482
9483fi
9484echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9485cat >> confdefs.h <<EOF
9486#define SIZEOF_INT $ac_cv_sizeof_int
9487EOF
9488
9489
9490echo $ac_n "checking size of long""... $ac_c" 1>&6
8dfea369 9491echo "configure:9492: checking size of long" >&5
10f2d63a
VZ
9492if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9493 echo $ac_n "(cached) $ac_c" 1>&6
9494else
9495 if test "$cross_compiling" = yes; then
9496 ac_cv_sizeof_long=4
9497else
9498 cat > conftest.$ac_ext <<EOF
8dfea369 9499#line 9500 "configure"
10f2d63a
VZ
9500#include "confdefs.h"
9501#include <stdio.h>
9502main()
9503{
9504 FILE *f=fopen("conftestval", "w");
9505 if (!f) exit(1);
9506 fprintf(f, "%d\n", sizeof(long));
9507 exit(0);
9508}
9509EOF
8dfea369 9510if { (eval echo configure:9511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9511then
9512 ac_cv_sizeof_long=`cat conftestval`
9513else
9514 echo "configure: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9516 rm -fr conftest*
9517 ac_cv_sizeof_long=0
9518fi
9519rm -fr conftest*
9520fi
9521
9522fi
9523echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9524cat >> confdefs.h <<EOF
9525#define SIZEOF_LONG $ac_cv_sizeof_long
9526EOF
9527
9528
9529echo $ac_n "checking size of long long""... $ac_c" 1>&6
8dfea369 9530echo "configure:9531: checking size of long long" >&5
10f2d63a
VZ
9531if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9532 echo $ac_n "(cached) $ac_c" 1>&6
9533else
9534 if test "$cross_compiling" = yes; then
9535 ac_cv_sizeof_long_long=0
9536else
9537 cat > conftest.$ac_ext <<EOF
8dfea369 9538#line 9539 "configure"
10f2d63a
VZ
9539#include "confdefs.h"
9540#include <stdio.h>
9541main()
9542{
9543 FILE *f=fopen("conftestval", "w");
9544 if (!f) exit(1);
9545 fprintf(f, "%d\n", sizeof(long long));
9546 exit(0);
9547}
9548EOF
8dfea369 9549if { (eval echo configure:9550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9550then
9551 ac_cv_sizeof_long_long=`cat conftestval`
9552else
9553 echo "configure: failed program was:" >&5
9554 cat conftest.$ac_ext >&5
9555 rm -fr conftest*
9556 ac_cv_sizeof_long_long=0
9557fi
9558rm -fr conftest*
9559fi
9560
9561fi
9562echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9563cat >> confdefs.h <<EOF
9564#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9565EOF
9566
9567
9568
9569echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8dfea369 9570echo "configure:9571: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9571if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9572 echo $ac_n "(cached) $ac_c" 1>&6
9573else
9574 ac_cv_c_bigendian=unknown
9575# See if sys/param.h defines the BYTE_ORDER macro.
9576cat > conftest.$ac_ext <<EOF
8dfea369 9577#line 9578 "configure"
10f2d63a
VZ
9578#include "confdefs.h"
9579#include <sys/types.h>
9580#include <sys/param.h>
9581int main() {
9582
9583#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9584 bogus endian macros
9585#endif
9586; return 0; }
9587EOF
8dfea369 9588if { (eval echo configure:9589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9589 rm -rf conftest*
9590 # It does; now see whether it defined to BIG_ENDIAN or not.
9591cat > conftest.$ac_ext <<EOF
8dfea369 9592#line 9593 "configure"
10f2d63a
VZ
9593#include "confdefs.h"
9594#include <sys/types.h>
9595#include <sys/param.h>
9596int main() {
9597
9598#if BYTE_ORDER != BIG_ENDIAN
9599 not big endian
9600#endif
9601; return 0; }
9602EOF
8dfea369 9603if { (eval echo configure:9604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9604 rm -rf conftest*
9605 ac_cv_c_bigendian=yes
9606else
9607 echo "configure: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9609 rm -rf conftest*
9610 ac_cv_c_bigendian=no
9611fi
9612rm -f conftest*
9613else
9614 echo "configure: failed program was:" >&5
9615 cat conftest.$ac_ext >&5
9616fi
9617rm -f conftest*
9618if test $ac_cv_c_bigendian = unknown; then
9619if test "$cross_compiling" = yes; then
9620 ac_cv_c_bigendian=unknown
9621else
9622 cat > conftest.$ac_ext <<EOF
8dfea369 9623#line 9624 "configure"
10f2d63a
VZ
9624#include "confdefs.h"
9625main () {
9626 /* Are we little or big endian? From Harbison&Steele. */
9627 union
9628 {
9629 long l;
9630 char c[sizeof (long)];
9631 } u;
9632 u.l = 1;
9633 exit (u.c[sizeof (long) - 1] == 1);
9634}
9635EOF
8dfea369 9636if { (eval echo configure:9637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9637then
9638 ac_cv_c_bigendian=no
9639else
9640 echo "configure: failed program was:" >&5
9641 cat conftest.$ac_ext >&5
9642 rm -fr conftest*
9643 ac_cv_c_bigendian=yes
9644fi
9645rm -fr conftest*
9646fi
9647
9648fi
9649fi
9650
9651echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9652if test $ac_cv_c_bigendian = unknown; then
9653 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
9654fi
9655if test $ac_cv_c_bigendian = yes; then
9656 cat >> confdefs.h <<\EOF
9657#define WORDS_BIGENDIAN 1
9658EOF
9659
9660fi
9661
9662
9663
9664 if test "$cross_compiling" = "yes"; then
9665 cat >> confdefs.h <<\EOF
9666#define wxUSE_IOSTREAMH 1
9667EOF
9668
9669 else
9670
9671 ac_ext=C
9672# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9673ac_cpp='$CXXCPP $CPPFLAGS'
9674ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9675ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9676cross_compiling=$ac_cv_prog_cxx_cross
9677
9678
9679 for ac_hdr in iostream
9680do
9681ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9682echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8dfea369 9683echo "configure:9684: checking for $ac_hdr" >&5
10f2d63a
VZ
9684if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9685 echo $ac_n "(cached) $ac_c" 1>&6
9686else
9687 cat > conftest.$ac_ext <<EOF
8dfea369 9688#line 9689 "configure"
10f2d63a
VZ
9689#include "confdefs.h"
9690#include <$ac_hdr>
9691EOF
9692ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 9693{ (eval echo configure:9694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9694ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9695if test -z "$ac_err"; then
9696 rm -rf conftest*
9697 eval "ac_cv_header_$ac_safe=yes"
9698else
9699 echo "$ac_err" >&5
9700 echo "configure: failed program was:" >&5
9701 cat conftest.$ac_ext >&5
9702 rm -rf conftest*
9703 eval "ac_cv_header_$ac_safe=no"
9704fi
9705rm -f conftest*
9706fi
9707if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9708 echo "$ac_t""yes" 1>&6
9709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9710 cat >> confdefs.h <<EOF
9711#define $ac_tr_hdr 1
9712EOF
9713
9714else
9715 echo "$ac_t""no" 1>&6
9716fi
9717done
9718
9719
9720 if test "x$HAVE_IOSTREAM" = x ; then
9721 cat >> confdefs.h <<\EOF
9722#define wxUSE_IOSTREAMH 1
9723EOF
9724
9725 else
9726 :
9727 fi
9728
9729 ac_ext=c
9730# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9731ac_cpp='$CPP $CPPFLAGS'
9732ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9733ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9734cross_compiling=$ac_cv_prog_cc_cross
9735
9736 fi
9737
9738
9739
9740 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
8dfea369 9741echo "configure:9742: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9742if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9743 echo $ac_n "(cached) $ac_c" 1>&6
9744else
9745
9746
9747 ac_ext=C
9748# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9749ac_cpp='$CXXCPP $CPPFLAGS'
9750ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9751ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9752cross_compiling=$ac_cv_prog_cxx_cross
9753
9754
9755 cat > conftest.$ac_ext <<EOF
8dfea369 9756#line 9757 "configure"
10f2d63a
VZ
9757#include "confdefs.h"
9758
9759
9760int main() {
9761
9762 bool b = true;
9763
9764 return 0;
9765
9766; return 0; }
9767EOF
8dfea369 9768if { (eval echo configure:9769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9769 rm -rf conftest*
9770
9771 cat >> confdefs.h <<\EOF
9772#define HAVE_BOOL 1
9773EOF
9774
9775 wx_cv_cpp_bool=yes
9776
9777else
9778 echo "configure: failed program was:" >&5
9779 cat conftest.$ac_ext >&5
9780 rm -rf conftest*
9781
9782 wx_cv_cpp_bool=no
9783
9784
9785fi
9786rm -f conftest*
9787
9788 ac_ext=c
9789# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9790ac_cpp='$CPP $CPPFLAGS'
9791ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9792ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9793cross_compiling=$ac_cv_prog_cc_cross
9794
9795
9796fi
9797
9798echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9799
9800 if test "$wx_cv_cpp_bool" = "yes"; then
9801 cat >> confdefs.h <<\EOF
9802#define HAVE_BOOL 1
9803EOF
9804
9805 fi
9806
9807
9808
10f2d63a 9809echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
8dfea369 9810echo "configure:9811: checking if you need GNU extensions" >&5
10f2d63a
VZ
9811if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9812 echo $ac_n "(cached) $ac_c" 1>&6
9813else
9814
9815 cat > conftest.$ac_ext <<EOF
8dfea369 9816#line 9817 "configure"
10f2d63a
VZ
9817#include "confdefs.h"
9818#include <features.h>
9819int main() {
9820
9821
9822#ifndef __GNU_LIBRARY__
9823 Compile error wanted
9824#endif
9825
9826
9827; return 0; }
9828EOF
8dfea369 9829if { (eval echo configure:9830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9830 rm -rf conftest*
9831 wx_cv_gnu_extensions=yes
9832else
9833 echo "configure: failed program was:" >&5
9834 cat conftest.$ac_ext >&5
9835 rm -rf conftest*
9836 wx_cv_gnu_extensions=no
9837fi
9838rm -f conftest*
9839
9840fi
9841
9842
9843echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9844if test "$wx_cv_gnu_extensions" = "yes"; then
9845 cat >> confdefs.h <<EOF
9846#define _GNU_SOURCE 1
9847EOF
9848
9849fi
9850
9851
9852
9853echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
8dfea369 9854echo "configure:9855: checking for wcslen in -lc" >&5
10f2d63a
VZ
9855ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9856if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9857 echo $ac_n "(cached) $ac_c" 1>&6
9858else
9859 ac_save_LIBS="$LIBS"
9860LIBS="-lc $LIBS"
9861cat > conftest.$ac_ext <<EOF
8dfea369 9862#line 9863 "configure"
10f2d63a
VZ
9863#include "confdefs.h"
9864/* Override any gcc2 internal prototype to avoid an error. */
9865/* We use char because int might match the return type of a gcc2
9866 builtin and then its argument prototype would still apply. */
9867char wcslen();
9868
9869int main() {
9870wcslen()
9871; return 0; }
9872EOF
8dfea369 9873if { (eval echo configure:9874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9874 rm -rf conftest*
9875 eval "ac_cv_lib_$ac_lib_var=yes"
9876else
9877 echo "configure: failed program was:" >&5
9878 cat conftest.$ac_ext >&5
9879 rm -rf conftest*
9880 eval "ac_cv_lib_$ac_lib_var=no"
9881fi
9882rm -f conftest*
9883LIBS="$ac_save_LIBS"
9884
9885fi
9886if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9887 echo "$ac_t""yes" 1>&6
9888
9889 cat >> confdefs.h <<\EOF
9890#define HAVE_WCSLEN 1
9891EOF
9892
9893 WCHAR_LINK=""
9894
9895else
9896 echo "$ac_t""no" 1>&6
9897
9898 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
8dfea369 9899echo "configure:9900: checking for wcslen in -lw" >&5
10f2d63a
VZ
9900ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9901if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9902 echo $ac_n "(cached) $ac_c" 1>&6
9903else
9904 ac_save_LIBS="$LIBS"
9905LIBS="-lw $LIBS"
9906cat > conftest.$ac_ext <<EOF
8dfea369 9907#line 9908 "configure"
10f2d63a
VZ
9908#include "confdefs.h"
9909/* Override any gcc2 internal prototype to avoid an error. */
9910/* We use char because int might match the return type of a gcc2
9911 builtin and then its argument prototype would still apply. */
9912char wcslen();
9913
9914int main() {
9915wcslen()
9916; return 0; }
9917EOF
8dfea369 9918if { (eval echo configure:9919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9919 rm -rf conftest*
9920 eval "ac_cv_lib_$ac_lib_var=yes"
9921else
9922 echo "configure: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9924 rm -rf conftest*
9925 eval "ac_cv_lib_$ac_lib_var=no"
9926fi
9927rm -f conftest*
9928LIBS="$ac_save_LIBS"
9929
9930fi
9931if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9932 echo "$ac_t""yes" 1>&6
9933
9934 cat >> confdefs.h <<\EOF
9935#define HAVE_WCSLEN 1
9936EOF
9937
9938 WCHAR_LINK="-lw"
9939
9940else
9941 echo "$ac_t""no" 1>&6
9942fi
9943
9944
9945fi
9946
9947
9948echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8dfea369 9949echo "configure:9950: checking for vprintf" >&5
10f2d63a
VZ
9950if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9951 echo $ac_n "(cached) $ac_c" 1>&6
9952else
9953 cat > conftest.$ac_ext <<EOF
8dfea369 9954#line 9955 "configure"
10f2d63a
VZ
9955#include "confdefs.h"
9956/* System header to define __stub macros and hopefully few prototypes,
9957 which can conflict with char vprintf(); below. */
9958#include <assert.h>
9959/* Override any gcc2 internal prototype to avoid an error. */
9960/* We use char because int might match the return type of a gcc2
9961 builtin and then its argument prototype would still apply. */
9962char vprintf();
9963
9964int main() {
9965
9966/* The GNU C library defines this for functions which it implements
9967 to always fail with ENOSYS. Some functions are actually named
9968 something starting with __ and the normal name is an alias. */
9969#if defined (__stub_vprintf) || defined (__stub___vprintf)
9970choke me
9971#else
e8482f24 9972vprintf();
10f2d63a
VZ
9973#endif
9974
9975; return 0; }
9976EOF
8dfea369 9977if { (eval echo configure:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9978 rm -rf conftest*
9979 eval "ac_cv_func_vprintf=yes"
9980else
9981 echo "configure: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9983 rm -rf conftest*
9984 eval "ac_cv_func_vprintf=no"
9985fi
9986rm -f conftest*
9987fi
9988
9989if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9990 echo "$ac_t""yes" 1>&6
9991 cat >> confdefs.h <<\EOF
9992#define HAVE_VPRINTF 1
9993EOF
9994
9995else
9996 echo "$ac_t""no" 1>&6
9997fi
9998
9999if test "$ac_cv_func_vprintf" != yes; then
10000echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8dfea369 10001echo "configure:10002: checking for _doprnt" >&5
10f2d63a
VZ
10002if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10003 echo $ac_n "(cached) $ac_c" 1>&6
10004else
10005 cat > conftest.$ac_ext <<EOF
8dfea369 10006#line 10007 "configure"
10f2d63a
VZ
10007#include "confdefs.h"
10008/* System header to define __stub macros and hopefully few prototypes,
10009 which can conflict with char _doprnt(); below. */
10010#include <assert.h>
10011/* Override any gcc2 internal prototype to avoid an error. */
10012/* We use char because int might match the return type of a gcc2
10013 builtin and then its argument prototype would still apply. */
10014char _doprnt();
10015
10016int main() {
10017
10018/* The GNU C library defines this for functions which it implements
10019 to always fail with ENOSYS. Some functions are actually named
10020 something starting with __ and the normal name is an alias. */
10021#if defined (__stub__doprnt) || defined (__stub____doprnt)
10022choke me
10023#else
e8482f24 10024_doprnt();
10f2d63a
VZ
10025#endif
10026
10027; return 0; }
10028EOF
8dfea369 10029if { (eval echo configure:10030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10030 rm -rf conftest*
10031 eval "ac_cv_func__doprnt=yes"
10032else
10033 echo "configure: failed program was:" >&5
10034 cat conftest.$ac_ext >&5
10035 rm -rf conftest*
10036 eval "ac_cv_func__doprnt=no"
10037fi
10038rm -f conftest*
10039fi
10040
10041if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10042 echo "$ac_t""yes" 1>&6
10043 cat >> confdefs.h <<\EOF
10044#define HAVE_DOPRNT 1
10045EOF
10046
10047else
10048 echo "$ac_t""no" 1>&6
10049fi
10050
10051fi
10052
10053
10054for ac_func in vsnprintf
10055do
10056echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8dfea369 10057echo "configure:10058: checking for $ac_func" >&5
10f2d63a
VZ
10058if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10059 echo $ac_n "(cached) $ac_c" 1>&6
10060else
10061 cat > conftest.$ac_ext <<EOF
8dfea369 10062#line 10063 "configure"
10f2d63a
VZ
10063#include "confdefs.h"
10064/* System header to define __stub macros and hopefully few prototypes,
10065 which can conflict with char $ac_func(); below. */
10066#include <assert.h>
10067/* Override any gcc2 internal prototype to avoid an error. */
10068/* We use char because int might match the return type of a gcc2
10069 builtin and then its argument prototype would still apply. */
10070char $ac_func();
10071
10072int main() {
10073
10074/* The GNU C library defines this for functions which it implements
10075 to always fail with ENOSYS. Some functions are actually named
10076 something starting with __ and the normal name is an alias. */
10077#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10078choke me
10079#else
e8482f24 10080$ac_func();
10f2d63a
VZ
10081#endif
10082
10083; return 0; }
10084EOF
8dfea369 10085if { (eval echo configure:10086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10086 rm -rf conftest*
10087 eval "ac_cv_func_$ac_func=yes"
10088else
10089 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10091 rm -rf conftest*
10092 eval "ac_cv_func_$ac_func=no"
10093fi
10094rm -f conftest*
10095fi
10096
10097if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10098 echo "$ac_t""yes" 1>&6
10099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10100 cat >> confdefs.h <<EOF
10101#define $ac_tr_func 1
10102EOF
10103 cat >> confdefs.h <<\EOF
10104#define HAVE_VSNPRINTF 1
10105EOF
10106
10107else
10108 echo "$ac_t""no" 1>&6
10109echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10110
10111fi
10112done
10113
10114
10115
10116ac_ext=C
10117# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10118ac_cpp='$CXXCPP $CPPFLAGS'
10119ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10120ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10121cross_compiling=$ac_cv_prog_cxx_cross
10122
10123
10124echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
8dfea369 10125echo "configure:10126: checking for vsscanf" >&5
10f2d63a
VZ
10126if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10127 echo $ac_n "(cached) $ac_c" 1>&6
10128else
10129
10130 if test "$cross_compiling" = yes; then
10131 wx_cv_func_vsscanf=no
10132
10133else
10134 cat > conftest.$ac_ext <<EOF
8dfea369 10135#line 10136 "configure"
10f2d63a
VZ
10136#include "confdefs.h"
10137#ifdef __cplusplus
10138extern "C" void exit(int);
10139#endif
10140
10141 #include <stdio.h>
10142 #include <stdarg.h>
10143
10144 int try_vsscanf(const char *format, ...)
10145 {
10146 va_list ap;
10147 va_start(ap, format);
10148
10149 vsscanf("17", format, ap);
10150
10151 va_end(ap);
10152 }
10153
10154 int main()
10155 {
10156 int i;
10157 try_vsscanf("%d", &i);
10158 return i == 17 ? 0 : 1;
10159 }
10160
10161EOF
8dfea369 10162if { (eval echo configure:10163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10163then
10164
10165 cat >> confdefs.h <<\EOF
10166#define HAVE_VSSCANF 1
10167EOF
10168
10169 wx_cv_func_vsscanf=yes
10170
10171else
10172 echo "configure: failed program was:" >&5
10173 cat conftest.$ac_ext >&5
10174 rm -fr conftest*
10175 wx_cv_func_vsscanf=no
10176fi
10177rm -fr conftest*
10178fi
10179
10180
10181fi
10182
10183echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10184
10185ac_ext=c
10186# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10187ac_cpp='$CPP $CPPFLAGS'
10188ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10189ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10190cross_compiling=$ac_cv_prog_cc_cross
10191
10192
b089607b 10193if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10194
10195for ac_func in vfork
10196do
10197echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8dfea369 10198echo "configure:10199: checking for $ac_func" >&5
10f2d63a
VZ
10199if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10200 echo $ac_n "(cached) $ac_c" 1>&6
10201else
10202 cat > conftest.$ac_ext <<EOF
8dfea369 10203#line 10204 "configure"
10f2d63a
VZ
10204#include "confdefs.h"
10205/* System header to define __stub macros and hopefully few prototypes,
10206 which can conflict with char $ac_func(); below. */
10207#include <assert.h>
10208/* Override any gcc2 internal prototype to avoid an error. */
10209/* We use char because int might match the return type of a gcc2
10210 builtin and then its argument prototype would still apply. */
10211char $ac_func();
10212
10213int main() {
10214
10215/* The GNU C library defines this for functions which it implements
10216 to always fail with ENOSYS. Some functions are actually named
10217 something starting with __ and the normal name is an alias. */
10218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10219choke me
10220#else
e8482f24 10221$ac_func();
10f2d63a
VZ
10222#endif
10223
10224; return 0; }
10225EOF
8dfea369 10226if { (eval echo configure:10227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
10227 rm -rf conftest*
10228 eval "ac_cv_func_$ac_func=yes"
10229else
10230 echo "configure: failed program was:" >&5
10231 cat conftest.$ac_ext >&5
10232 rm -rf conftest*
10233 eval "ac_cv_func_$ac_func=no"
10234fi
10235rm -f conftest*
10236fi
10237
10238if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10239 echo "$ac_t""yes" 1>&6
10240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10241 cat >> confdefs.h <<EOF
10242#define $ac_tr_func 1
10243EOF
10244
10245else
10246 echo "$ac_t""no" 1>&6
10247fi
10248done
10249
10250
10251for ac_func in timegm
10252do
10253echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8dfea369 10254echo "configure:10255: checking for $ac_func" >&5
270a909e
VZ
10255if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10256 echo $ac_n "(cached) $ac_c" 1>&6
10257else
10258 cat > conftest.$ac_ext <<EOF
8dfea369 10259#line 10260 "configure"
270a909e
VZ
10260#include "confdefs.h"
10261/* System header to define __stub macros and hopefully few prototypes,
10262 which can conflict with char $ac_func(); below. */
10263#include <assert.h>
10264/* Override any gcc2 internal prototype to avoid an error. */
10265/* We use char because int might match the return type of a gcc2
10266 builtin and then its argument prototype would still apply. */
10267char $ac_func();
10268
10269int main() {
10270
10271/* The GNU C library defines this for functions which it implements
10272 to always fail with ENOSYS. Some functions are actually named
10273 something starting with __ and the normal name is an alias. */
10274#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10275choke me
10276#else
e8482f24 10277$ac_func();
270a909e
VZ
10278#endif
10279
10280; return 0; }
10281EOF
8dfea369 10282if { (eval echo configure:10283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10283 rm -rf conftest*
10284 eval "ac_cv_func_$ac_func=yes"
10285else
10286 echo "configure: failed program was:" >&5
10287 cat conftest.$ac_ext >&5
10288 rm -rf conftest*
10289 eval "ac_cv_func_$ac_func=no"
10290fi
10291rm -f conftest*
10292fi
10293
10294if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10295 echo "$ac_t""yes" 1>&6
10296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10297 cat >> confdefs.h <<EOF
10298#define $ac_tr_func 1
10299EOF
10300
10301else
10302 echo "$ac_t""no" 1>&6
10303fi
10304done
10305
10306
b12915c1
VZ
10307HAVE_SOME_SLEEP_FUNC=0
10308if test "$USE_BEOS" = 1; then
10309 cat >> confdefs.h <<\EOF
10310#define HAVE_SLEEP 1
10311EOF
10312
10313 HAVE_SOME_SLEEP_FUNC=1
10314fi
10315
10316if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10317 POSIX4_LINK=
10318 for ac_func in nanosleep
10f2d63a
VZ
10319do
10320echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8dfea369 10321echo "configure:10322: checking for $ac_func" >&5
10f2d63a
VZ
10322if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10323 echo $ac_n "(cached) $ac_c" 1>&6
10324else
10325 cat > conftest.$ac_ext <<EOF
8dfea369 10326#line 10327 "configure"
10f2d63a
VZ
10327#include "confdefs.h"
10328/* System header to define __stub macros and hopefully few prototypes,
10329 which can conflict with char $ac_func(); below. */
10330#include <assert.h>
10331/* Override any gcc2 internal prototype to avoid an error. */
10332/* We use char because int might match the return type of a gcc2
10333 builtin and then its argument prototype would still apply. */
10334char $ac_func();
10335
10336int main() {
10337
10338/* The GNU C library defines this for functions which it implements
10339 to always fail with ENOSYS. Some functions are actually named
10340 something starting with __ and the normal name is an alias. */
10341#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10342choke me
10343#else
e8482f24 10344$ac_func();
10f2d63a
VZ
10345#endif
10346
10347; return 0; }
10348EOF
8dfea369 10349if { (eval echo configure:10350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10350 rm -rf conftest*
10351 eval "ac_cv_func_$ac_func=yes"
10352else
10353 echo "configure: failed program was:" >&5
10354 cat conftest.$ac_ext >&5
10355 rm -rf conftest*
10356 eval "ac_cv_func_$ac_func=no"
10357fi
10358rm -f conftest*
10359fi
10360
10361if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10362 echo "$ac_t""yes" 1>&6
10363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10364 cat >> confdefs.h <<EOF
10365#define $ac_tr_func 1
10366EOF
10367 cat >> confdefs.h <<\EOF
10368#define HAVE_NANOSLEEP 1
10369EOF
10370
10371else
10372 echo "$ac_t""no" 1>&6
10373echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
8dfea369 10374echo "configure:10375: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
10375ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10376if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10377 echo $ac_n "(cached) $ac_c" 1>&6
10378else
10379 ac_save_LIBS="$LIBS"
10380LIBS="-lposix4 $LIBS"
10381cat > conftest.$ac_ext <<EOF
8dfea369 10382#line 10383 "configure"
10f2d63a
VZ
10383#include "confdefs.h"
10384/* Override any gcc2 internal prototype to avoid an error. */
10385/* We use char because int might match the return type of a gcc2
10386 builtin and then its argument prototype would still apply. */
10387char nanosleep();
10388
10389int main() {
10390nanosleep()
10391; return 0; }
10392EOF
8dfea369 10393if { (eval echo configure:10394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10394 rm -rf conftest*
10395 eval "ac_cv_lib_$ac_lib_var=yes"
10396else
10397 echo "configure: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10399 rm -rf conftest*
10400 eval "ac_cv_lib_$ac_lib_var=no"
10401fi
10402rm -f conftest*
10403LIBS="$ac_save_LIBS"
10404
10405fi
10406if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10407 echo "$ac_t""yes" 1>&6
10408
b12915c1 10409 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10410#define HAVE_NANOSLEEP 1
10411EOF
10412
b12915c1
VZ
10413 POSIX4_LINK="-lposix4"
10414
10f2d63a
VZ
10415else
10416 echo "$ac_t""no" 1>&6
10417
b12915c1 10418 for ac_func in usleep
10f2d63a
VZ
10419do
10420echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8dfea369 10421echo "configure:10422: checking for $ac_func" >&5
10f2d63a
VZ
10422if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10424else
10425 cat > conftest.$ac_ext <<EOF
8dfea369 10426#line 10427 "configure"
10f2d63a
VZ
10427#include "confdefs.h"
10428/* System header to define __stub macros and hopefully few prototypes,
10429 which can conflict with char $ac_func(); below. */
10430#include <assert.h>
10431/* Override any gcc2 internal prototype to avoid an error. */
10432/* We use char because int might match the return type of a gcc2
10433 builtin and then its argument prototype would still apply. */
10434char $ac_func();
10435
10436int main() {
10437
10438/* The GNU C library defines this for functions which it implements
10439 to always fail with ENOSYS. Some functions are actually named
10440 something starting with __ and the normal name is an alias. */
10441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10442choke me
10443#else
e8482f24 10444$ac_func();
10f2d63a
VZ
10445#endif
10446
10447; return 0; }
10448EOF
8dfea369 10449if { (eval echo configure:10450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10450 rm -rf conftest*
10451 eval "ac_cv_func_$ac_func=yes"
10452else
10453 echo "configure: failed program was:" >&5
10454 cat conftest.$ac_ext >&5
10455 rm -rf conftest*
10456 eval "ac_cv_func_$ac_func=no"
10457fi
10458rm -f conftest*
10459fi
10460
10461if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10462 echo "$ac_t""yes" 1>&6
10463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10464 cat >> confdefs.h <<EOF
10465#define $ac_tr_func 1
10466EOF
b12915c1 10467
10f2d63a
VZ
10468else
10469 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10470fi
10471done
10472
b12915c1
VZ
10473 echo "configure: warning: wxSleep() function will not work" 1>&2
10474
10475
10f2d63a
VZ
10476fi
10477
b12915c1
VZ
10478
10479
10f2d63a
VZ
10480fi
10481done
10482
b12915c1 10483fi
10f2d63a
VZ
10484
10485for ac_func in uname gethostname
10486do
10487echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8dfea369 10488echo "configure:10489: checking for $ac_func" >&5
10f2d63a
VZ
10489if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10490 echo $ac_n "(cached) $ac_c" 1>&6
10491else
10492 cat > conftest.$ac_ext <<EOF
8dfea369 10493#line 10494 "configure"
10f2d63a
VZ
10494#include "confdefs.h"
10495/* System header to define __stub macros and hopefully few prototypes,
10496 which can conflict with char $ac_func(); below. */
10497#include <assert.h>
10498/* Override any gcc2 internal prototype to avoid an error. */
10499/* We use char because int might match the return type of a gcc2
10500 builtin and then its argument prototype would still apply. */
10501char $ac_func();
10502
10503int main() {
10504
10505/* The GNU C library defines this for functions which it implements
10506 to always fail with ENOSYS. Some functions are actually named
10507 something starting with __ and the normal name is an alias. */
10508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10509choke me
10510#else
e8482f24 10511$ac_func();
10f2d63a
VZ
10512#endif
10513
10514; return 0; }
10515EOF
8dfea369 10516if { (eval echo configure:10517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10517 rm -rf conftest*
10518 eval "ac_cv_func_$ac_func=yes"
10519else
10520 echo "configure: failed program was:" >&5
10521 cat conftest.$ac_ext >&5
10522 rm -rf conftest*
10523 eval "ac_cv_func_$ac_func=no"
10524fi
10525rm -f conftest*
10526fi
10527
10528if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10529 echo "$ac_t""yes" 1>&6
10530 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10531 cat >> confdefs.h <<EOF
10532#define $ac_tr_func 1
10533EOF
10534 break
10535else
10536 echo "$ac_t""no" 1>&6
10537fi
10538done
10539
10540
6098c7f9
VZ
10541
10542ac_ext=C
10543# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10544ac_cpp='$CXXCPP $CPPFLAGS'
10545ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10546ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10547cross_compiling=$ac_cv_prog_cxx_cross
10548
10549
10f2d63a
VZ
10550for ac_func in strtok_r
10551do
10552echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8dfea369 10553echo "configure:10554: checking for $ac_func" >&5
10f2d63a
VZ
10554if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10555 echo $ac_n "(cached) $ac_c" 1>&6
10556else
10557 cat > conftest.$ac_ext <<EOF
8dfea369 10558#line 10559 "configure"
10f2d63a
VZ
10559#include "confdefs.h"
10560/* System header to define __stub macros and hopefully few prototypes,
10561 which can conflict with char $ac_func(); below. */
10562#include <assert.h>
10563/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
10564#ifdef __cplusplus
10565extern "C"
10566#endif
10f2d63a
VZ
10567/* We use char because int might match the return type of a gcc2
10568 builtin and then its argument prototype would still apply. */
10569char $ac_func();
10570
10571int main() {
10572
10573/* The GNU C library defines this for functions which it implements
10574 to always fail with ENOSYS. Some functions are actually named
10575 something starting with __ and the normal name is an alias. */
10576#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10577choke me
10578#else
e8482f24 10579$ac_func();
10f2d63a
VZ
10580#endif
10581
10582; return 0; }
10583EOF
8dfea369 10584if { (eval echo configure:10585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10585 rm -rf conftest*
10586 eval "ac_cv_func_$ac_func=yes"
10587else
10588 echo "configure: failed program was:" >&5
10589 cat conftest.$ac_ext >&5
10590 rm -rf conftest*
10591 eval "ac_cv_func_$ac_func=no"
10592fi
10593rm -f conftest*
10594fi
10595
10596if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10597 echo "$ac_t""yes" 1>&6
10598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10599 cat >> confdefs.h <<EOF
10600#define $ac_tr_func 1
10601EOF
10602
10603else
10604 echo "$ac_t""no" 1>&6
10605fi
10606done
10607
10608
6098c7f9
VZ
10609ac_ext=c
10610# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10611ac_cpp='$CPP $CPPFLAGS'
10612ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10613ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10614cross_compiling=$ac_cv_prog_cc_cross
10615
10616
c63c7106 10617INET_LINK=
10f2d63a
VZ
10618for ac_func in inet_addr
10619do
10620echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8dfea369 10621echo "configure:10622: checking for $ac_func" >&5
10f2d63a
VZ
10622if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10623 echo $ac_n "(cached) $ac_c" 1>&6
10624else
10625 cat > conftest.$ac_ext <<EOF
8dfea369 10626#line 10627 "configure"
10f2d63a
VZ
10627#include "confdefs.h"
10628/* System header to define __stub macros and hopefully few prototypes,
10629 which can conflict with char $ac_func(); below. */
10630#include <assert.h>
10631/* Override any gcc2 internal prototype to avoid an error. */
10632/* We use char because int might match the return type of a gcc2
10633 builtin and then its argument prototype would still apply. */
10634char $ac_func();
10635
10636int main() {
10637
10638/* The GNU C library defines this for functions which it implements
10639 to always fail with ENOSYS. Some functions are actually named
10640 something starting with __ and the normal name is an alias. */
10641#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10642choke me
10643#else
e8482f24 10644$ac_func();
10f2d63a
VZ
10645#endif
10646
10647; return 0; }
10648EOF
8dfea369 10649if { (eval echo configure:10650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10650 rm -rf conftest*
10651 eval "ac_cv_func_$ac_func=yes"
10652else
10653 echo "configure: failed program was:" >&5
10654 cat conftest.$ac_ext >&5
10655 rm -rf conftest*
10656 eval "ac_cv_func_$ac_func=no"
10657fi
10658rm -f conftest*
10659fi
10660
10661if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10662 echo "$ac_t""yes" 1>&6
10663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10664 cat >> confdefs.h <<EOF
10665#define $ac_tr_func 1
10666EOF
c63c7106
VZ
10667 cat >> confdefs.h <<\EOF
10668#define HAVE_INET_ADDR 1
10669EOF
10670
10f2d63a
VZ
10671else
10672 echo "$ac_t""no" 1>&6
c63c7106 10673echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
8dfea369 10674echo "configure:10675: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10675ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10676if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10677 echo $ac_n "(cached) $ac_c" 1>&6
10678else
10679 ac_save_LIBS="$LIBS"
10680LIBS="-lnsl $LIBS"
10681cat > conftest.$ac_ext <<EOF
8dfea369 10682#line 10683 "configure"
c63c7106
VZ
10683#include "confdefs.h"
10684/* Override any gcc2 internal prototype to avoid an error. */
10685/* We use char because int might match the return type of a gcc2
10686 builtin and then its argument prototype would still apply. */
10687char inet_addr();
10688
10689int main() {
10690inet_addr()
10691; return 0; }
10692EOF
8dfea369 10693if { (eval echo configure:10694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10694 rm -rf conftest*
10695 eval "ac_cv_lib_$ac_lib_var=yes"
10696else
10697 echo "configure: failed program was:" >&5
10698 cat conftest.$ac_ext >&5
10699 rm -rf conftest*
10700 eval "ac_cv_lib_$ac_lib_var=no"
10701fi
10702rm -f conftest*
10703LIBS="$ac_save_LIBS"
10704
10705fi
10706if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10707 echo "$ac_t""yes" 1>&6
10708 INET_LINK="nsl"
10709else
10710 echo "$ac_t""no" 1>&6
10711echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
8dfea369 10712echo "configure:10713: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10713ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10714if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10715 echo $ac_n "(cached) $ac_c" 1>&6
10716else
10717 ac_save_LIBS="$LIBS"
10718LIBS="-lresolv $LIBS"
10719cat > conftest.$ac_ext <<EOF
8dfea369 10720#line 10721 "configure"
c63c7106
VZ
10721#include "confdefs.h"
10722/* Override any gcc2 internal prototype to avoid an error. */
10723/* We use char because int might match the return type of a gcc2
10724 builtin and then its argument prototype would still apply. */
10725char inet_addr();
10726
10727int main() {
10728inet_addr()
10729; return 0; }
10730EOF
8dfea369 10731if { (eval echo configure:10732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10732 rm -rf conftest*
10733 eval "ac_cv_lib_$ac_lib_var=yes"
10734else
10735 echo "configure: failed program was:" >&5
10736 cat conftest.$ac_ext >&5
10737 rm -rf conftest*
10738 eval "ac_cv_lib_$ac_lib_var=no"
10739fi
10740rm -f conftest*
10741LIBS="$ac_save_LIBS"
10742
10743fi
10744if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10745 echo "$ac_t""yes" 1>&6
10746 INET_LINK="resolv"
10747
10748else
10749 echo "$ac_t""no" 1>&6
10750fi
10751
10752
10753fi
10754
10755
10756
10f2d63a
VZ
10757fi
10758done
10759
c63c7106 10760
10f2d63a
VZ
10761for ac_func in inet_aton
10762do
10763echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8dfea369 10764echo "configure:10765: checking for $ac_func" >&5
10f2d63a
VZ
10765if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10766 echo $ac_n "(cached) $ac_c" 1>&6
10767else
10768 cat > conftest.$ac_ext <<EOF
8dfea369 10769#line 10770 "configure"
10f2d63a
VZ
10770#include "confdefs.h"
10771/* System header to define __stub macros and hopefully few prototypes,
10772 which can conflict with char $ac_func(); below. */
10773#include <assert.h>
10774/* Override any gcc2 internal prototype to avoid an error. */
10775/* We use char because int might match the return type of a gcc2
10776 builtin and then its argument prototype would still apply. */
10777char $ac_func();
10778
10779int main() {
10780
10781/* The GNU C library defines this for functions which it implements
10782 to always fail with ENOSYS. Some functions are actually named
10783 something starting with __ and the normal name is an alias. */
10784#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10785choke me
10786#else
e8482f24 10787$ac_func();
10f2d63a
VZ
10788#endif
10789
10790; return 0; }
10791EOF
8dfea369 10792if { (eval echo configure:10793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10793 rm -rf conftest*
10794 eval "ac_cv_func_$ac_func=yes"
10795else
10796 echo "configure: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
10798 rm -rf conftest*
10799 eval "ac_cv_func_$ac_func=no"
10800fi
10801rm -f conftest*
10802fi
10803
10804if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10805 echo "$ac_t""yes" 1>&6
10806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10807 cat >> confdefs.h <<EOF
10808#define $ac_tr_func 1
10809EOF
c63c7106
VZ
10810 cat >> confdefs.h <<\EOF
10811#define HAVE_INET_ATON 1
10812EOF
10813
10f2d63a
VZ
10814else
10815 echo "$ac_t""no" 1>&6
c63c7106 10816 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
8dfea369 10817echo "configure:10818: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10818ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10819if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10820 echo $ac_n "(cached) $ac_c" 1>&6
10821else
10822 ac_save_LIBS="$LIBS"
c63c7106 10823LIBS="-l$INET_LINK $LIBS"
10f2d63a 10824cat > conftest.$ac_ext <<EOF
8dfea369 10825#line 10826 "configure"
10f2d63a
VZ
10826#include "confdefs.h"
10827/* Override any gcc2 internal prototype to avoid an error. */
10828/* We use char because int might match the return type of a gcc2
10829 builtin and then its argument prototype would still apply. */
10830char inet_aton();
10831
10832int main() {
10833inet_aton()
10834; return 0; }
10835EOF
8dfea369 10836if { (eval echo configure:10837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10837 rm -rf conftest*
10838 eval "ac_cv_lib_$ac_lib_var=yes"
10839else
10840 echo "configure: failed program was:" >&5
10841 cat conftest.$ac_ext >&5
10842 rm -rf conftest*
10843 eval "ac_cv_lib_$ac_lib_var=no"
10844fi
10845rm -f conftest*
10846LIBS="$ac_save_LIBS"
10847
10848fi
10849if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10850 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10851 cat >> confdefs.h <<\EOF
10852#define HAVE_INET_ATON 1
10f2d63a
VZ
10853EOF
10854
10f2d63a
VZ
10855else
10856 echo "$ac_t""no" 1>&6
10857fi
10858
c63c7106
VZ
10859
10860fi
10861done
10862
10863
10864if test "x$INET_LINK" != "x"; then
10865 cat >> confdefs.h <<\EOF
10866#define HAVE_INET_ADDR 1
10867EOF
10868
10869 INET_LINK="-l$INET_LINK"
10870fi
10f2d63a
VZ
10871
10872fi
10873
10874
10875cat > confcache <<\EOF
10876# This file is a shell script that caches the results of configure
10877# tests run on this system so they can be shared between configure
10878# scripts and configure runs. It is not useful on other systems.
10879# If it contains results you don't want to keep, you may remove or edit it.
10880#
10881# By default, configure uses ./config.cache as the cache file,
10882# creating it if it does not exist already. You can give configure
10883# the --cache-file=FILE option to use a different cache file; that is
10884# what configure does when it calls configure scripts in
10885# subdirectories, so they share the cache.
10886# Giving --cache-file=/dev/null disables caching, for debugging configure.
10887# config.status only pays attention to the cache file if you give it the
10888# --recheck option to rerun configure.
10889#
10890EOF
10891# The following way of writing the cache mishandles newlines in values,
10892# but we know of no workaround that is simple, portable, and efficient.
10893# So, don't put newlines in cache variables' values.
10894# Ultrix sh set writes to stderr and can't be redirected directly,
10895# and sets the high bit in the cache file unless we assign to the vars.
10896(set) 2>&1 |
10897 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10898 *ac_space=\ *)
10899 # `set' does not quote correctly, so add quotes (double-quote substitution
10900 # turns \\\\ into \\, and sed turns \\ into \).
10901 sed -n \
10902 -e "s/'/'\\\\''/g" \
10903 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10904 ;;
10905 *)
10906 # `set' quotes correctly as required by POSIX, so do not add quotes.
10907 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10908 ;;
10909 esac >> confcache
10910if cmp -s $cache_file confcache; then
10911 :
10912else
10913 if test -w $cache_file; then
10914 echo "updating cache $cache_file"
10915 cat confcache > $cache_file
10916 else
10917 echo "not updating unwritable cache $cache_file"
10918 fi
10919fi
10920rm -f confcache
10921
10922
10923
b089607b 10924if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10925
10926
10927THREADS_LINK=""
10928THREADS_OBJ=""
10929
10930if test "$wxUSE_THREADS" = "yes" ; then
10931 if test "$wxUSE_WINE" = 1 ; then
10932 echo "configure: warning: Threads are not supported under WINE" 1>&2
10933 wxUSE_THREADS="no"
b12915c1
VZ
10934 elif test "$USE_BEOS" = 1; then
10935 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10936 wxUSE_THREADS="no"
10f2d63a
VZ
10937 fi
10938fi
10939
10940if test "$wxUSE_THREADS" = "yes" ; then
10941
10942 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
8dfea369 10943echo "configure:10944: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10944ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10945if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10946 echo $ac_n "(cached) $ac_c" 1>&6
10947else
10948 ac_save_LIBS="$LIBS"
10949LIBS="-lpthread $LIBS"
10950cat > conftest.$ac_ext <<EOF
8dfea369 10951#line 10952 "configure"
10f2d63a
VZ
10952#include "confdefs.h"
10953/* Override any gcc2 internal prototype to avoid an error. */
10954/* We use char because int might match the return type of a gcc2
10955 builtin and then its argument prototype would still apply. */
10956char pthread_create();
10957
10958int main() {
10959pthread_create()
10960; return 0; }
10961EOF
8dfea369 10962if { (eval echo configure:10963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10963 rm -rf conftest*
10964 eval "ac_cv_lib_$ac_lib_var=yes"
10965else
10966 echo "configure: failed program was:" >&5
10967 cat conftest.$ac_ext >&5
10968 rm -rf conftest*
10969 eval "ac_cv_lib_$ac_lib_var=no"
10970fi
10971rm -f conftest*
10972LIBS="$ac_save_LIBS"
10973
10974fi
10975if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10976 echo "$ac_t""yes" 1>&6
10977
10978 THREADS_OBJ="threadpsx.lo"
10979 THREADS_LINK="pthread"
10980
10981else
10982 echo "$ac_t""no" 1>&6
10983
10984 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
8dfea369 10985echo "configure:10986: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10986ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10987if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10988 echo $ac_n "(cached) $ac_c" 1>&6
10989else
10990 ac_save_LIBS="$LIBS"
10991LIBS="-lc_r $LIBS"
10992cat > conftest.$ac_ext <<EOF
8dfea369 10993#line 10994 "configure"
10f2d63a
VZ
10994#include "confdefs.h"
10995/* Override any gcc2 internal prototype to avoid an error. */
10996/* We use char because int might match the return type of a gcc2
10997 builtin and then its argument prototype would still apply. */
10998char pthread_create();
10999
11000int main() {
11001pthread_create()
11002; return 0; }
11003EOF
8dfea369 11004if { (eval echo configure:11005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11005 rm -rf conftest*
11006 eval "ac_cv_lib_$ac_lib_var=yes"
11007else
11008 echo "configure: failed program was:" >&5
11009 cat conftest.$ac_ext >&5
11010 rm -rf conftest*
11011 eval "ac_cv_lib_$ac_lib_var=no"
11012fi
11013rm -f conftest*
11014LIBS="$ac_save_LIBS"
11015
11016fi
11017if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11018 echo "$ac_t""yes" 1>&6
11019
11020 THREADS_OBJ="threadpsx.lo"
11021 THREADS_LINK="c_r"
11022
11023else
11024 echo "$ac_t""no" 1>&6
11025
11026 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
11027echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
8dfea369 11028echo "configure:11029: checking for sys/prctl.h" >&5
10f2d63a
VZ
11029if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11030 echo $ac_n "(cached) $ac_c" 1>&6
11031else
11032 cat > conftest.$ac_ext <<EOF
8dfea369 11033#line 11034 "configure"
10f2d63a
VZ
11034#include "confdefs.h"
11035#include <sys/prctl.h>
11036EOF
11037ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 11038{ (eval echo configure:11039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11039ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11040if test -z "$ac_err"; then
11041 rm -rf conftest*
11042 eval "ac_cv_header_$ac_safe=yes"
11043else
11044 echo "$ac_err" >&5
11045 echo "configure: failed program was:" >&5
11046 cat conftest.$ac_ext >&5
11047 rm -rf conftest*
11048 eval "ac_cv_header_$ac_safe=no"
11049fi
11050rm -f conftest*
11051fi
11052if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11053 echo "$ac_t""yes" 1>&6
11054
11055 THREADS_OBJ="threadsgi.lo"
11056
11057else
11058 echo "$ac_t""no" 1>&6
11059fi
11060
11061
11062fi
11063
11064
11065fi
11066
11067
11068 if test -z "$THREADS_OBJ" ; then
11069 wxUSE_THREADS=no
11070 echo "configure: warning: No thread support on this system" 1>&2
11071 fi
11072fi
11073
11074if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
11075 for ac_func in thr_setconcurrency
11076do
11077echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8dfea369 11078echo "configure:11079: checking for $ac_func" >&5
70846f0a
VZ
11079if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11080 echo $ac_n "(cached) $ac_c" 1>&6
11081else
11082 cat > conftest.$ac_ext <<EOF
8dfea369 11083#line 11084 "configure"
70846f0a
VZ
11084#include "confdefs.h"
11085/* System header to define __stub macros and hopefully few prototypes,
11086 which can conflict with char $ac_func(); below. */
11087#include <assert.h>
11088/* Override any gcc2 internal prototype to avoid an error. */
11089/* We use char because int might match the return type of a gcc2
11090 builtin and then its argument prototype would still apply. */
11091char $ac_func();
11092
11093int main() {
11094
11095/* The GNU C library defines this for functions which it implements
11096 to always fail with ENOSYS. Some functions are actually named
11097 something starting with __ and the normal name is an alias. */
11098#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11099choke me
11100#else
e8482f24 11101$ac_func();
70846f0a
VZ
11102#endif
11103
11104; return 0; }
11105EOF
8dfea369 11106if { (eval echo configure:11107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
11107 rm -rf conftest*
11108 eval "ac_cv_func_$ac_func=yes"
11109else
11110 echo "configure: failed program was:" >&5
11111 cat conftest.$ac_ext >&5
11112 rm -rf conftest*
11113 eval "ac_cv_func_$ac_func=no"
11114fi
11115rm -f conftest*
11116fi
11117
11118if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11119 echo "$ac_t""yes" 1>&6
11120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11121 cat >> confdefs.h <<EOF
11122#define $ac_tr_func 1
11123EOF
11124
11125else
11126 echo "$ac_t""no" 1>&6
11127fi
11128done
11129
11130
10f2d63a
VZ
11131
11132 for ac_hdr in sched.h
11133do
11134ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11135echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8dfea369 11136echo "configure:11137: checking for $ac_hdr" >&5
10f2d63a
VZ
11137if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11138 echo $ac_n "(cached) $ac_c" 1>&6
11139else
11140 cat > conftest.$ac_ext <<EOF
8dfea369 11141#line 11142 "configure"
10f2d63a
VZ
11142#include "confdefs.h"
11143#include <$ac_hdr>
11144EOF
11145ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 11146{ (eval echo configure:11147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11147ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11148if test -z "$ac_err"; then
11149 rm -rf conftest*
11150 eval "ac_cv_header_$ac_safe=yes"
11151else
11152 echo "$ac_err" >&5
11153 echo "configure: failed program was:" >&5
11154 cat conftest.$ac_ext >&5
11155 rm -rf conftest*
11156 eval "ac_cv_header_$ac_safe=no"
11157fi
11158rm -f conftest*
11159fi
11160if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11161 echo "$ac_t""yes" 1>&6
11162 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11163 cat >> confdefs.h <<EOF
11164#define $ac_tr_hdr 1
11165EOF
11166
11167else
11168 echo "$ac_t""no" 1>&6
11169fi
11170done
11171
11172
11173 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
8dfea369 11174echo "configure:11175: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
11175ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11176if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11177 echo $ac_n "(cached) $ac_c" 1>&6
11178else
11179 ac_save_LIBS="$LIBS"
11180LIBS="-l$THREADS_LINK $LIBS"
11181cat > conftest.$ac_ext <<EOF
8dfea369 11182#line 11183 "configure"
10f2d63a
VZ
11183#include "confdefs.h"
11184/* Override any gcc2 internal prototype to avoid an error. */
11185/* We use char because int might match the return type of a gcc2
11186 builtin and then its argument prototype would still apply. */
11187char sched_yield();
11188
11189int main() {
11190sched_yield()
11191; return 0; }
11192EOF
8dfea369 11193if { (eval echo configure:11194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11194 rm -rf conftest*
11195 eval "ac_cv_lib_$ac_lib_var=yes"
11196else
11197 echo "configure: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11199 rm -rf conftest*
11200 eval "ac_cv_lib_$ac_lib_var=no"
11201fi
11202rm -f conftest*
11203LIBS="$ac_save_LIBS"
11204
11205fi
11206if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11207 echo "$ac_t""yes" 1>&6
11208 cat >> confdefs.h <<\EOF
11209#define HAVE_SCHED_YIELD 1
11210EOF
11211
11212else
11213 echo "$ac_t""no" 1>&6
11214echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
8dfea369 11215echo "configure:11216: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
11216ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11217if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11218 echo $ac_n "(cached) $ac_c" 1>&6
11219else
11220 ac_save_LIBS="$LIBS"
11221LIBS="-l"posix4" $LIBS"
11222cat > conftest.$ac_ext <<EOF
8dfea369 11223#line 11224 "configure"
10f2d63a
VZ
11224#include "confdefs.h"
11225/* Override any gcc2 internal prototype to avoid an error. */
11226/* We use char because int might match the return type of a gcc2
11227 builtin and then its argument prototype would still apply. */
11228char sched_yield();
11229
11230int main() {
11231sched_yield()
11232; return 0; }
11233EOF
8dfea369 11234if { (eval echo configure:11235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11235 rm -rf conftest*
11236 eval "ac_cv_lib_$ac_lib_var=yes"
11237else
11238 echo "configure: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11240 rm -rf conftest*
11241 eval "ac_cv_lib_$ac_lib_var=no"
11242fi
11243rm -f conftest*
11244LIBS="$ac_save_LIBS"
11245
11246fi
11247if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11248 echo "$ac_t""yes" 1>&6
11249 cat >> confdefs.h <<\EOF
11250#define HAVE_SCHED_YIELD 1
11251EOF
11252 POSIX4_LINK="-lposix4"
11253else
11254 echo "$ac_t""no" 1>&6
11255echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11256
11257fi
11258
11259
11260fi
11261
11262
11263 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
8dfea369 11264echo "configure:11265: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
11265ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11266if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11267 echo $ac_n "(cached) $ac_c" 1>&6
11268else
11269 ac_save_LIBS="$LIBS"
11270LIBS="-l$THREADS_LINK $LIBS"
11271cat > conftest.$ac_ext <<EOF
8dfea369 11272#line 11273 "configure"
10f2d63a
VZ
11273#include "confdefs.h"
11274/* Override any gcc2 internal prototype to avoid an error. */
11275/* We use char because int might match the return type of a gcc2
11276 builtin and then its argument prototype would still apply. */
11277char pthread_attr_getschedpolicy();
11278
11279int main() {
11280pthread_attr_getschedpolicy()
11281; return 0; }
11282EOF
8dfea369 11283if { (eval echo configure:11284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11284 rm -rf conftest*
11285 eval "ac_cv_lib_$ac_lib_var=yes"
11286else
11287 echo "configure: failed program was:" >&5
11288 cat conftest.$ac_ext >&5
11289 rm -rf conftest*
11290 eval "ac_cv_lib_$ac_lib_var=no"
11291fi
11292rm -f conftest*
11293LIBS="$ac_save_LIBS"
11294
11295fi
11296if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11297 echo "$ac_t""yes" 1>&6
11298 cat >> confdefs.h <<\EOF
11299#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11300EOF
11301
11302else
11303 echo "$ac_t""no" 1>&6
11304echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
8dfea369 11305echo "configure:11306: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
11306ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11307if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11308 echo $ac_n "(cached) $ac_c" 1>&6
11309else
11310 ac_save_LIBS="$LIBS"
11311LIBS="-l"posix4" $LIBS"
11312cat > conftest.$ac_ext <<EOF
8dfea369 11313#line 11314 "configure"
10f2d63a
VZ
11314#include "confdefs.h"
11315/* Override any gcc2 internal prototype to avoid an error. */
11316/* We use char because int might match the return type of a gcc2
11317 builtin and then its argument prototype would still apply. */
11318char pthread_attr_getschedpolicy();
11319
11320int main() {
11321pthread_attr_getschedpolicy()
11322; return 0; }
11323EOF
8dfea369 11324if { (eval echo configure:11325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11325 rm -rf conftest*
11326 eval "ac_cv_lib_$ac_lib_var=yes"
11327else
11328 echo "configure: failed program was:" >&5
11329 cat conftest.$ac_ext >&5
11330 rm -rf conftest*
11331 eval "ac_cv_lib_$ac_lib_var=no"
11332fi
11333rm -f conftest*
11334LIBS="$ac_save_LIBS"
11335
11336fi
11337if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11338 echo "$ac_t""yes" 1>&6
11339 cat >> confdefs.h <<\EOF
11340#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11341EOF
11342 POSIX4_LINK="-lposix4"
11343else
11344 echo "$ac_t""no" 1>&6
11345echo "configure: warning: Setting thread priority will not work" 1>&2
11346
11347fi
11348
11349
11350fi
11351
11352
11353 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
8dfea369 11354echo "configure:11355: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
11355ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11356if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11357 echo $ac_n "(cached) $ac_c" 1>&6
11358else
11359 ac_save_LIBS="$LIBS"
11360LIBS="-l$THREADS_LINK $LIBS"
11361cat > conftest.$ac_ext <<EOF
8dfea369 11362#line 11363 "configure"
10f2d63a
VZ
11363#include "confdefs.h"
11364/* Override any gcc2 internal prototype to avoid an error. */
11365/* We use char because int might match the return type of a gcc2
11366 builtin and then its argument prototype would still apply. */
11367char pthread_cancel();
11368
11369int main() {
11370pthread_cancel()
11371; return 0; }
11372EOF
8dfea369 11373if { (eval echo configure:11374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11374 rm -rf conftest*
11375 eval "ac_cv_lib_$ac_lib_var=yes"
11376else
11377 echo "configure: failed program was:" >&5
11378 cat conftest.$ac_ext >&5
11379 rm -rf conftest*
11380 eval "ac_cv_lib_$ac_lib_var=no"
11381fi
11382rm -f conftest*
11383LIBS="$ac_save_LIBS"
11384
11385fi
11386if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11387 echo "$ac_t""yes" 1>&6
11388 cat >> confdefs.h <<\EOF
11389#define HAVE_PTHREAD_CANCEL 1
11390EOF
11391
11392else
11393 echo "$ac_t""no" 1>&6
11394echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11395fi
11396
11397
11398 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
8dfea369 11399echo "configure:11400: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
11400if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11401 echo $ac_n "(cached) $ac_c" 1>&6
11402else
11403
11404 cat > conftest.$ac_ext <<EOF
8dfea369 11405#line 11406 "configure"
10f2d63a
VZ
11406#include "confdefs.h"
11407#include <pthread.h>
11408int main() {
11409
11410 pthread_cleanup_push(NULL, NULL);
11411 pthread_cleanup_pop(0);
11412
11413; return 0; }
11414EOF
8dfea369 11415if { (eval echo configure:11416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11416 rm -rf conftest*
11417
11418 wx_cv_func_pthread_cleanup_push=yes
11419 cat >> confdefs.h <<\EOF
11420#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11421EOF
11422
11423
11424else
11425 echo "configure: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11427 rm -rf conftest*
11428
11429 wx_cv_func_pthread_cleanup_push=no
11430
11431fi
11432rm -f conftest*
11433
11434fi
11435
11436echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11437
11438 THREADS_LINK="-l$THREADS_LINK"
11439fi
11440
11441fi
11442
11443if test "$wxUSE_THREADS" = "yes"; then
11444 cat >> confdefs.h <<\EOF
11445#define wxUSE_THREADS 1
11446EOF
11447
11448
11449 CFLAGS="${CFLAGS} -D_REENTRANT"
11450 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11451
11452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11453else
11454 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11455 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
8dfea369 11456echo "configure:11457: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11457 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11458 CFLAGS="${CFLAGS} -D_REENTRANT"
11459 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11460 echo "$ac_t""yes" 1>&6
11461 else
11462 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11463 fi
11464 fi
11465fi
11466
13111b2a
VZ
11467if test "$WXGTK13" = 1 ; then
11468 cat >> confdefs.h <<EOF
11469#define __WXGTK13__ $WXGTK13
11470EOF
11471
11472 WXGTK12=1
11473fi
11474
10f2d63a
VZ
11475if test "$WXGTK12" = 1 ; then
11476 cat >> confdefs.h <<EOF
11477#define __WXGTK12__ $WXGTK12
11478EOF
11479
11480fi
11481
11482if test "$WXWINE" = 1 ; then
11483 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11484fi
11485
11486if test "$wxUSE_CYGWIN" = 1 ; then
11487 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11488fi
11489
11490WXDEBUG=
11491
11492if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11493 WXDEBUG="-g"
11494 wxUSE_OPTIMISE=no
11495fi
11496
11497if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11498 wxUSE_DEBUG_INFO=yes
11499 WXDEBUG="-ggdb"
11500fi
11501
11502if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11503 cat >> confdefs.h <<\EOF
11504#define WXDEBUG 1
11505EOF
11506
11507 WXDEBUG_DEFINE="-D__WXDEBUG__"
11508else
11509 if test "$wxUSE_GTK" = 1 ; then
11510 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11511 fi
11512fi
11513
11514if test "$wxUSE_MEM_TRACING" = "yes" ; then
11515 cat >> confdefs.h <<\EOF
11516#define wxUSE_MEMORY_TRACING 1
11517EOF
11518
11519 cat >> confdefs.h <<\EOF
11520#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
11521EOF
11522
11523 cat >> confdefs.h <<\EOF
11524#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
11525EOF
11526
11527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11528fi
11529
11530if test "$wxUSE_DMALLOC" = "yes" ; then
11531 DMALLOC_LINK="-ldmalloc"
11532fi
11533
11534PROFILE=
11535if test "$wxUSE_PROFILE" = "yes" ; then
11536 PROFILE="-pg"
11537fi
11538
11539DEP_INFO_FLAGS=
caa2c79b 11540CODE_GEN_FLAGS=
10f2d63a
VZ
11541if test "$GCC" = yes ; then
11542 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 11543 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
11544 fi
11545 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 11546 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
11547 fi
11548 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 11549 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
11550 fi
11551 if test "$wxUSE_NO_DEPS" = "no" ; then
11552 DEP_INFO_FLAGS="-MMD"
11553 fi
11554fi
11555
11556
11557CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11558CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11559if test "$wxUSE_OPTIMISE" = "no" ; then
11560 OPTIMISE=
11561else
11562 if test "$GCC" = yes ; then
11563 OPTIMISE="-O2"
11564 case "${host}" in
11565 i586-*-*|i686-*-* )
11566 OPTIMISE="${OPTIMISE} "
11567 ;;
11568 esac
11569 else
11570 OPTIMISE="-O"
11571 fi
11572fi
11573
11574
11575ZLIB_INCLUDE=
422107f9 11576if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
10f2d63a
VZ
11577 cat >> confdefs.h <<\EOF
11578#define wxUSE_ZLIB 1
11579EOF
11580
422107f9
VZ
11581 if test "$wxUSE_ZLIB" = "yes" ; then
11582 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11583 else
11584 ZLIB_LINK=
11585 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11586echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
8dfea369 11587echo "configure:11588: checking for zlib.h" >&5
422107f9
VZ
11588if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11589 echo $ac_n "(cached) $ac_c" 1>&6
11590else
11591 cat > conftest.$ac_ext <<EOF
8dfea369 11592#line 11593 "configure"
422107f9
VZ
11593#include "confdefs.h"
11594#include <zlib.h>
11595EOF
11596ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 11597{ (eval echo configure:11598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
11598ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11599if test -z "$ac_err"; then
11600 rm -rf conftest*
11601 eval "ac_cv_header_$ac_safe=yes"
11602else
11603 echo "$ac_err" >&5
11604 echo "configure: failed program was:" >&5
11605 cat conftest.$ac_ext >&5
11606 rm -rf conftest*
11607 eval "ac_cv_header_$ac_safe=no"
11608fi
11609rm -f conftest*
11610fi
11611if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11612 echo "$ac_t""yes" 1>&6
11613 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
8dfea369 11614echo "configure:11615: checking for deflate in -lz" >&5
422107f9
VZ
11615ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11616if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11617 echo $ac_n "(cached) $ac_c" 1>&6
11618else
11619 ac_save_LIBS="$LIBS"
11620LIBS="-lz $LIBS"
11621cat > conftest.$ac_ext <<EOF
8dfea369 11622#line 11623 "configure"
422107f9
VZ
11623#include "confdefs.h"
11624/* Override any gcc2 internal prototype to avoid an error. */
11625/* We use char because int might match the return type of a gcc2
11626 builtin and then its argument prototype would still apply. */
11627char deflate();
11628
11629int main() {
11630deflate()
11631; return 0; }
11632EOF
8dfea369 11633if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
11634 rm -rf conftest*
11635 eval "ac_cv_lib_$ac_lib_var=yes"
11636else
11637 echo "configure: failed program was:" >&5
11638 cat conftest.$ac_ext >&5
11639 rm -rf conftest*
11640 eval "ac_cv_lib_$ac_lib_var=no"
11641fi
11642rm -f conftest*
11643LIBS="$ac_save_LIBS"
11644
11645fi
11646if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11647 echo "$ac_t""yes" 1>&6
11648 ZLIB_LINK="-lz"
11649else
11650 echo "$ac_t""no" 1>&6
11651fi
11652
11653else
11654 echo "$ac_t""no" 1>&6
11655fi
11656
11657 if test "x$ZLIB_LINK" = "x" ; then
11658 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
11659 fi
11660 fi
10f2d63a
VZ
11661fi
11662
11663PNG_INCLUDE=
422107f9 11664if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
10f2d63a
VZ
11665 cat >> confdefs.h <<\EOF
11666#define wxUSE_LIBPNG 1
11667EOF
11668
41fd4136 11669 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
422107f9
VZ
11670 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
11671 wxUSE_LIBPNG=yes
11672 fi
11673
11674 if test "$wxUSE_LIBPNG" = "yes" ; then
11675 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11676 else
11677 PNG_LINK=
11678 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11679echo $ac_n "checking for png.h""... $ac_c" 1>&6
8dfea369 11680echo "configure:11681: checking for png.h" >&5
422107f9
VZ
11681if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11682 echo $ac_n "(cached) $ac_c" 1>&6
11683else
11684 cat > conftest.$ac_ext <<EOF
8dfea369 11685#line 11686 "configure"
422107f9
VZ
11686#include "confdefs.h"
11687#include <png.h>
11688EOF
11689ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 11690{ (eval echo configure:11691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
11691ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11692if test -z "$ac_err"; then
11693 rm -rf conftest*
11694 eval "ac_cv_header_$ac_safe=yes"
11695else
11696 echo "$ac_err" >&5
11697 echo "configure: failed program was:" >&5
11698 cat conftest.$ac_ext >&5
11699 rm -rf conftest*
11700 eval "ac_cv_header_$ac_safe=no"
11701fi
11702rm -f conftest*
11703fi
11704if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11705 echo "$ac_t""yes" 1>&6
11706 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
8dfea369 11707echo "configure:11708: checking for png_check_sig in -lpng" >&5
422107f9
VZ
11708ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11709if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11710 echo $ac_n "(cached) $ac_c" 1>&6
11711else
11712 ac_save_LIBS="$LIBS"
11713LIBS="-lpng -lz -lm $LIBS"
11714cat > conftest.$ac_ext <<EOF
8dfea369 11715#line 11716 "configure"
422107f9
VZ
11716#include "confdefs.h"
11717/* Override any gcc2 internal prototype to avoid an error. */
11718/* We use char because int might match the return type of a gcc2
11719 builtin and then its argument prototype would still apply. */
11720char png_check_sig();
11721
11722int main() {
11723png_check_sig()
11724; return 0; }
11725EOF
8dfea369 11726if { (eval echo configure:11727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
11727 rm -rf conftest*
11728 eval "ac_cv_lib_$ac_lib_var=yes"
11729else
11730 echo "configure: failed program was:" >&5
11731 cat conftest.$ac_ext >&5
11732 rm -rf conftest*
11733 eval "ac_cv_lib_$ac_lib_var=no"
11734fi
11735rm -f conftest*
11736LIBS="$ac_save_LIBS"
11737
11738fi
11739if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11740 echo "$ac_t""yes" 1>&6
11741 PNG_LINK="-lpng"
11742else
11743 echo "$ac_t""no" 1>&6
11744fi
11745
11746
11747else
11748 echo "$ac_t""no" 1>&6
11749fi
11750
11751 if test "x$PNG_LINK" = "x" ; then
0dcf9893 11752 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
11753 fi
11754 fi
11755
10f2d63a
VZ
11756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11757fi
11758
11759JPEG_INCLUDE=
422107f9 11760if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
10f2d63a
VZ
11761 cat >> confdefs.h <<\EOF
11762#define wxUSE_LIBJPEG 1
11763EOF
11764
422107f9
VZ
11765 if test "$wxUSE_LIBJPEG" = "yes" ; then
11766 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11767 else
11768 JPEG_LINK=
11769 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
11770echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8dfea369 11771echo "configure:11772: checking for jpeglib.h" >&5
422107f9
VZ
11772if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11773 echo $ac_n "(cached) $ac_c" 1>&6
11774else
11775 cat > conftest.$ac_ext <<EOF
8dfea369 11776#line 11777 "configure"
422107f9
VZ
11777#include "confdefs.h"
11778#include <jpeglib.h>
11779EOF
11780ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 11781{ (eval echo configure:11782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
11782ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11783if test -z "$ac_err"; then
11784 rm -rf conftest*
11785 eval "ac_cv_header_$ac_safe=yes"
11786else
11787 echo "$ac_err" >&5
11788 echo "configure: failed program was:" >&5
11789 cat conftest.$ac_ext >&5
11790 rm -rf conftest*
11791 eval "ac_cv_header_$ac_safe=no"
11792fi
11793rm -f conftest*
11794fi
11795if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11796 echo "$ac_t""yes" 1>&6
11797 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
8dfea369 11798echo "configure:11799: checking for jpeg_read_header in -ljpeg" >&5
422107f9
VZ
11799ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11800if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11801 echo $ac_n "(cached) $ac_c" 1>&6
11802else
11803 ac_save_LIBS="$LIBS"
11804LIBS="-ljpeg $LIBS"
11805cat > conftest.$ac_ext <<EOF
8dfea369 11806#line 11807 "configure"
422107f9
VZ
11807#include "confdefs.h"
11808/* Override any gcc2 internal prototype to avoid an error. */
11809/* We use char because int might match the return type of a gcc2
11810 builtin and then its argument prototype would still apply. */
11811char jpeg_read_header();
11812
11813int main() {
11814jpeg_read_header()
11815; return 0; }
11816EOF
8dfea369 11817if { (eval echo configure:11818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
11818 rm -rf conftest*
11819 eval "ac_cv_lib_$ac_lib_var=yes"
11820else
11821 echo "configure: failed program was:" >&5
11822 cat conftest.$ac_ext >&5
11823 rm -rf conftest*
11824 eval "ac_cv_lib_$ac_lib_var=no"
11825fi
11826rm -f conftest*
11827LIBS="$ac_save_LIBS"
11828
11829fi
11830if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11831 echo "$ac_t""yes" 1>&6
11832 JPEG_LINK="-ljpeg"
11833else
11834 echo "$ac_t""no" 1>&6
11835fi
11836
11837else
11838 echo "$ac_t""no" 1>&6
11839fi
11840
11841 if test "x$JPEG_LINK" = "x" ; then
0dcf9893 11842 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
11843 fi
11844 fi
10f2d63a
VZ
11845fi
11846
c7a2bf27 11847TIFF_INCLUDE=
0dcf9893 11848if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
c7a2bf27
RR
11849 cat >> confdefs.h <<\EOF
11850#define wxUSE_LIBTIFF 1
11851EOF
11852
0dcf9893
VZ
11853 if test "$wxUSE_LIBTIFF" = "yes" ; then
11854 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11855 else
11856 TIFF_LINK=
11857 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11858echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8dfea369 11859echo "configure:11860: checking for tiffio.h" >&5
0dcf9893
VZ
11860if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11861 echo $ac_n "(cached) $ac_c" 1>&6
11862else
11863 cat > conftest.$ac_ext <<EOF
8dfea369 11864#line 11865 "configure"
0dcf9893
VZ
11865#include "confdefs.h"
11866#include <tiffio.h>
11867EOF
11868ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 11869{ (eval echo configure:11870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0dcf9893
VZ
11870ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11871if test -z "$ac_err"; then
11872 rm -rf conftest*
11873 eval "ac_cv_header_$ac_safe=yes"
11874else
11875 echo "$ac_err" >&5
11876 echo "configure: failed program was:" >&5
11877 cat conftest.$ac_ext >&5
11878 rm -rf conftest*
11879 eval "ac_cv_header_$ac_safe=no"
11880fi
11881rm -f conftest*
11882fi
11883if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11884 echo "$ac_t""yes" 1>&6
11885 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
8dfea369 11886echo "configure:11887: checking for TIFFError in -ltiff" >&5
0dcf9893
VZ
11887ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11888if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11889 echo $ac_n "(cached) $ac_c" 1>&6
11890else
11891 ac_save_LIBS="$LIBS"
11892LIBS="-ltiff -lm $LIBS"
11893cat > conftest.$ac_ext <<EOF
8dfea369 11894#line 11895 "configure"
0dcf9893
VZ
11895#include "confdefs.h"
11896/* Override any gcc2 internal prototype to avoid an error. */
11897/* We use char because int might match the return type of a gcc2
11898 builtin and then its argument prototype would still apply. */
11899char TIFFError();
11900
11901int main() {
11902TIFFError()
11903; return 0; }
11904EOF
8dfea369 11905if { (eval echo configure:11906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0dcf9893
VZ
11906 rm -rf conftest*
11907 eval "ac_cv_lib_$ac_lib_var=yes"
11908else
11909 echo "configure: failed program was:" >&5
11910 cat conftest.$ac_ext >&5
11911 rm -rf conftest*
11912 eval "ac_cv_lib_$ac_lib_var=no"
11913fi
11914rm -f conftest*
11915LIBS="$ac_save_LIBS"
11916
11917fi
11918if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11919 echo "$ac_t""yes" 1>&6
11920 TIFF_LINK="-ltiff"
11921else
11922 echo "$ac_t""no" 1>&6
11923fi
11924
11925else
11926 echo "$ac_t""no" 1>&6
11927fi
11928
11929 if test "x$TIFF_LINK" = "x" ; then
11930 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
11931 fi
11932 fi
c7a2bf27
RR
11933fi
11934
10f2d63a
VZ
11935if test "$wxUSE_OPENGL" = "yes"; then
11936 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11937echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
8dfea369 11938echo "configure:11939: checking for GL/gl.h" >&5
10f2d63a
VZ
11939if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11940 echo $ac_n "(cached) $ac_c" 1>&6
11941else
11942 cat > conftest.$ac_ext <<EOF
8dfea369 11943#line 11944 "configure"
10f2d63a
VZ
11944#include "confdefs.h"
11945#include <GL/gl.h>
11946EOF
11947ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 11948{ (eval echo configure:11949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11949ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11950if test -z "$ac_err"; then
11951 rm -rf conftest*
11952 eval "ac_cv_header_$ac_safe=yes"
11953else
11954 echo "$ac_err" >&5
11955 echo "configure: failed program was:" >&5
11956 cat conftest.$ac_ext >&5
11957 rm -rf conftest*
11958 eval "ac_cv_header_$ac_safe=no"
11959fi
11960rm -f conftest*
11961fi
11962if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11963 echo "$ac_t""yes" 1>&6
11964
bdad4e7e
RR
11965 cat >> confdefs.h <<\EOF
11966#define wxUSE_OPENGL 1
11967EOF
11968
11969 cat >> confdefs.h <<\EOF
11970#define wxUSE_GLCANVAS 1
11971EOF
11972
11973 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
8dfea369 11974echo "configure:11975: checking for glFlush in -lGL" >&5
bdad4e7e 11975ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11976if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11977 echo $ac_n "(cached) $ac_c" 1>&6
11978else
11979 ac_save_LIBS="$LIBS"
bdad4e7e 11980LIBS="-lGL $LIBS"
10f2d63a 11981cat > conftest.$ac_ext <<EOF
8dfea369 11982#line 11983 "configure"
10f2d63a
VZ
11983#include "confdefs.h"
11984/* Override any gcc2 internal prototype to avoid an error. */
11985/* We use char because int might match the return type of a gcc2
11986 builtin and then its argument prototype would still apply. */
bdad4e7e 11987char glFlush();
10f2d63a
VZ
11988
11989int main() {
bdad4e7e 11990glFlush()
10f2d63a
VZ
11991; return 0; }
11992EOF
8dfea369 11993if { (eval echo configure:11994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11994 rm -rf conftest*
11995 eval "ac_cv_lib_$ac_lib_var=yes"
11996else
11997 echo "configure: failed program was:" >&5
11998 cat conftest.$ac_ext >&5
11999 rm -rf conftest*
12000 eval "ac_cv_lib_$ac_lib_var=no"
12001fi
12002rm -f conftest*
12003LIBS="$ac_save_LIBS"
12004
12005fi
12006if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12007 echo "$ac_t""yes" 1>&6
12008
12009 OPENGL_LINK="-lGL"
10f2d63a
VZ
12010
12011else
12012 echo "$ac_t""no" 1>&6
12013
bdad4e7e 12014 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
8dfea369 12015echo "configure:12016: checking for glFlush in -lMesaGL" >&5
bdad4e7e 12016ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12017if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12018 echo $ac_n "(cached) $ac_c" 1>&6
12019else
12020 ac_save_LIBS="$LIBS"
12021LIBS="-lMesaGL $LIBS"
12022cat > conftest.$ac_ext <<EOF
8dfea369 12023#line 12024 "configure"
10f2d63a
VZ
12024#include "confdefs.h"
12025/* Override any gcc2 internal prototype to avoid an error. */
12026/* We use char because int might match the return type of a gcc2
12027 builtin and then its argument prototype would still apply. */
bdad4e7e 12028char glFlush();
10f2d63a
VZ
12029
12030int main() {
bdad4e7e 12031glFlush()
10f2d63a
VZ
12032; return 0; }
12033EOF
8dfea369 12034if { (eval echo configure:12035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12035 rm -rf conftest*
12036 eval "ac_cv_lib_$ac_lib_var=yes"
12037else
12038 echo "configure: failed program was:" >&5
12039 cat conftest.$ac_ext >&5
12040 rm -rf conftest*
12041 eval "ac_cv_lib_$ac_lib_var=no"
12042fi
12043rm -f conftest*
12044LIBS="$ac_save_LIBS"
12045
12046fi
12047if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12048 echo "$ac_t""yes" 1>&6
12049
12050 OPENGL_LINK="-lMesaGL"
10f2d63a
VZ
12051
12052else
12053 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12054fi
12055
12056
12057fi
12058
12059
12060else
12061 echo "$ac_t""no" 1>&6
12062wxUSE_OPENGL=0
12063fi
12064
12065fi
12066
12067
12068if test "$wxUSE_GUI" = "yes"; then
12069 cat >> confdefs.h <<\EOF
12070#define wxUSE_GUI 1
12071EOF
12072
12073
12074 else
12075 cat >> confdefs.h <<\EOF
12076#define wxUSE_NOGUI 1
12077EOF
12078
12079fi
12080
12081
12082if test "$wxUSE_UNIX" = "yes"; then
12083 cat >> confdefs.h <<\EOF
12084#define wxUSE_UNIX 1
12085EOF
12086
12087fi
12088
12089
12090if test "$wxUSE_APPLE_IEEE" = "yes"; then
12091 cat >> confdefs.h <<\EOF
12092#define wxUSE_APPLE_IEEE 1
12093EOF
12094
12095fi
12096
10f2d63a
VZ
12097if test "$wxUSE_WAVE" = "yes"; then
12098 cat >> confdefs.h <<\EOF
12099#define wxUSE_WAVE 1
12100EOF
12101
12102fi
12103
12104if test "$wxUSE_FILE" = "yes"; then
12105 cat >> confdefs.h <<\EOF
12106#define wxUSE_FILE 1
12107EOF
12108
12109fi
12110
24528b0c
VS
12111if test "$wxUSE_FILESYSTEM" = "yes"; then
12112 cat >> confdefs.h <<\EOF
12113#define wxUSE_FILESYSTEM 1
12114EOF
12115
12116fi
12117
10f2d63a
VZ
12118if test "$wxUSE_FS_INET" = "yes"; then
12119 cat >> confdefs.h <<\EOF
12120#define wxUSE_FS_INET 1
12121EOF
12122
12123fi
12124
12125if test "$wxUSE_FS_ZIP" = "yes"; then
12126 cat >> confdefs.h <<\EOF
12127#define wxUSE_FS_ZIP 1
12128EOF
12129
12130fi
12131
12132if test "$wxUSE_ZIPSTREAM" = "yes"; then
12133 cat >> confdefs.h <<\EOF
12134#define wxUSE_ZIPSTREAM 1
12135EOF
12136
12137fi
12138
12139if test "$wxUSE_BUSYINFO" = "yes"; then
12140 cat >> confdefs.h <<\EOF
12141#define wxUSE_BUSYINFO 1
12142EOF
12143
12144fi
12145
12146if test "$wxUSE_STD_IOSTREAM" = "yes"; then
12147 cat >> confdefs.h <<\EOF
12148#define wxUSE_STD_IOSTREAM 1
12149EOF
12150
12151fi
12152
12153if test "$wxUSE_TEXTFILE" = "yes"; then
12154 if test "$wxUSE_FILE" != "yes"; then
12155 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
12156 else
12157 cat >> confdefs.h <<\EOF
12158#define wxUSE_TEXTFILE 1
12159EOF
12160
12161 fi
12162fi
12163
12164if test "$wxUSE_CONFIG" = "yes" ; then
12165 if test "$wxUSE_TEXTFILE" != "yes"; then
12166 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
12167 else
12168 cat >> confdefs.h <<\EOF
12169#define wxUSE_CONFIG 1
12170EOF
12171
12172 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
12173 fi
12174fi
12175
12176if test "$wxUSE_INTL" = "yes" ; then
12177 if test "$wxUSE_FILE" != "yes"; then
12178 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
12179 else
12180 cat >> confdefs.h <<\EOF
12181#define wxUSE_INTL 1
12182EOF
12183
12184 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
12185 fi
12186fi
12187
12188if test "$wxUSE_LOG" = "yes"; then
12189 cat >> confdefs.h <<\EOF
12190#define wxUSE_LOG 1
12191EOF
12192
12193fi
12194
12195if test "$wxUSE_LONGLONG" = "yes"; then
12196 cat >> confdefs.h <<\EOF
12197#define wxUSE_LONGLONG 1
12198EOF
12199
12200fi
12201
9b33fe02
VZ
12202if test "$wxUSE_PLOT" = "yes"; then
12203 cat >> confdefs.h <<\EOF
12204#define wxUSE_PLOT 1
12205EOF
12206
12207fi
12208
10f2d63a
VZ
12209if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
12210 cat >> confdefs.h <<\EOF
12211#define wxUSE_DIALUP_MANAGER 1
12212EOF
12213
70f7a477 12214 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
12215fi
12216
12217if test "$wxUSE_STREAMS" = "yes" ; then
12218 cat >> confdefs.h <<\EOF
12219#define wxUSE_STREAMS 1
12220EOF
12221
12222fi
12223
10f2d63a 12224
afc31813 12225if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
12226 for ac_func in strptime
12227do
12228echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8dfea369 12229echo "configure:12230: checking for $ac_func" >&5
83307f33
VZ
12230if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12231 echo $ac_n "(cached) $ac_c" 1>&6
12232else
12233 cat > conftest.$ac_ext <<EOF
8dfea369 12234#line 12235 "configure"
83307f33
VZ
12235#include "confdefs.h"
12236/* System header to define __stub macros and hopefully few prototypes,
12237 which can conflict with char $ac_func(); below. */
12238#include <assert.h>
12239/* Override any gcc2 internal prototype to avoid an error. */
12240/* We use char because int might match the return type of a gcc2
12241 builtin and then its argument prototype would still apply. */
12242char $ac_func();
12243
12244int main() {
12245
12246/* The GNU C library defines this for functions which it implements
12247 to always fail with ENOSYS. Some functions are actually named
12248 something starting with __ and the normal name is an alias. */
12249#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12250choke me
12251#else
e8482f24 12252$ac_func();
83307f33
VZ
12253#endif
12254
12255; return 0; }
12256EOF
8dfea369 12257if { (eval echo configure:12258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
12258 rm -rf conftest*
12259 eval "ac_cv_func_$ac_func=yes"
12260else
12261 echo "configure: failed program was:" >&5
12262 cat conftest.$ac_ext >&5
12263 rm -rf conftest*
12264 eval "ac_cv_func_$ac_func=no"
12265fi
12266rm -f conftest*
12267fi
12268
12269if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12270 echo "$ac_t""yes" 1>&6
12271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12272 cat >> confdefs.h <<EOF
12273#define $ac_tr_func 1
12274EOF
12275
12276else
12277 echo "$ac_t""no" 1>&6
12278fi
12279done
12280
12281
360d6699 12282 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
8dfea369 12283echo "configure:12284: checking for timezone variable in <time.h>" >&5
360d6699
VZ
12284if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
12285 echo $ac_n "(cached) $ac_c" 1>&6
12286else
12287
12288 cat > conftest.$ac_ext <<EOF
8dfea369 12289#line 12290 "configure"
360d6699
VZ
12290#include "confdefs.h"
12291
12292 #include <time.h>
12293
12294int main() {
12295
12296 int tz;
12297 tz = __timezone;
12298
12299; return 0; }
12300EOF
8dfea369 12301if { (eval echo configure:12302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
12302 rm -rf conftest*
12303
12304 wx_cv_var_timezone=__timezone
12305
12306else
12307 echo "configure: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12309 rm -rf conftest*
12310
12311 cat > conftest.$ac_ext <<EOF
8dfea369 12312#line 12313 "configure"
360d6699
VZ
12313#include "confdefs.h"
12314
12315 #include <time.h>
12316
12317int main() {
12318
12319 int tz;
12320 tz = _timezone;
12321
12322; return 0; }
12323EOF
8dfea369 12324if { (eval echo configure:12325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
12325 rm -rf conftest*
12326
12327 wx_cv_var_timezone=_timezone
12328
5357c8e8
VZ
12329else
12330 echo "configure: failed program was:" >&5
12331 cat conftest.$ac_ext >&5
12332 rm -rf conftest*
12333
12334 cat > conftest.$ac_ext <<EOF
8dfea369 12335#line 12336 "configure"
5357c8e8
VZ
12336#include "confdefs.h"
12337
12338 #include <time.h>
12339
12340int main() {
12341
12342 int tz;
12343 tz = timezone;
12344
12345; return 0; }
12346EOF
8dfea369 12347if { (eval echo configure:12348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
12348 rm -rf conftest*
12349
12350 wx_cv_var_timezone=timezone
12351
360d6699
VZ
12352else
12353 echo "configure: failed program was:" >&5
12354 cat conftest.$ac_ext >&5
12355 rm -rf conftest*
12356 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
12357
12358fi
12359rm -f conftest*
12360
360d6699
VZ
12361
12362fi
12363rm -f conftest*
12364
12365
12366fi
12367rm -f conftest*
12368
12369
12370fi
12371
12372echo "$ac_t""$wx_cv_var_timezone" 1>&6
12373
12374 cat >> confdefs.h <<EOF
12375#define WX_TIMEZONE $wx_cv_var_timezone
12376EOF
12377
12378
3fcdd07b 12379 for ac_func in localtime
afc31813
VZ
12380do
12381echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8dfea369 12382echo "configure:12383: checking for $ac_func" >&5
afc31813
VZ
12383if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12384 echo $ac_n "(cached) $ac_c" 1>&6
12385else
12386 cat > conftest.$ac_ext <<EOF
8dfea369 12387#line 12388 "configure"
10f2d63a 12388#include "confdefs.h"
afc31813
VZ
12389/* System header to define __stub macros and hopefully few prototypes,
12390 which can conflict with char $ac_func(); below. */
12391#include <assert.h>
12392/* Override any gcc2 internal prototype to avoid an error. */
12393/* We use char because int might match the return type of a gcc2
12394 builtin and then its argument prototype would still apply. */
12395char $ac_func();
12396
10f2d63a 12397int main() {
afc31813
VZ
12398
12399/* The GNU C library defines this for functions which it implements
12400 to always fail with ENOSYS. Some functions are actually named
12401 something starting with __ and the normal name is an alias. */
12402#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12403choke me
12404#else
e8482f24 12405$ac_func();
afc31813
VZ
12406#endif
12407
10f2d63a
VZ
12408; return 0; }
12409EOF
8dfea369 12410if { (eval echo configure:12411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 12411 rm -rf conftest*
afc31813 12412 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
12413else
12414 echo "configure: failed program was:" >&5
12415 cat conftest.$ac_ext >&5
12416 rm -rf conftest*
afc31813
VZ
12417 eval "ac_cv_func_$ac_func=no"
12418fi
12419rm -f conftest*
12420fi
12421
12422if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12423 echo "$ac_t""yes" 1>&6
12424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12425 cat >> confdefs.h <<EOF
12426#define $ac_tr_func 1
12427EOF
3fcdd07b 12428
afc31813
VZ
12429else
12430 echo "$ac_t""no" 1>&6
12431fi
12432done
12433
12434
0470b1e6
VZ
12435 if test "$ac_cv_func_localtime" = "yes"; then
12436 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
8dfea369 12437echo "configure:12438: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
12438if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
12439 echo $ac_n "(cached) $ac_c" 1>&6
12440else
12441
12442 cat > conftest.$ac_ext <<EOF
8dfea369 12443#line 12444 "configure"
0470b1e6
VZ
12444#include "confdefs.h"
12445
12446 #include <time.h>
12447
12448int main() {
12449
12450 struct tm tm;
12451 tm.tm_gmtoff++;
12452
12453; return 0; }
12454EOF
8dfea369 12455if { (eval echo configure:12456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
12456 rm -rf conftest*
12457
f03a98d8 12458 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
12459 cat >> confdefs.h <<\EOF
12460#define WX_GMTOFF_IN_TM 1
12461EOF
12462
12463
12464else
12465 echo "configure: failed program was:" >&5
12466 cat conftest.$ac_ext >&5
12467 rm -rf conftest*
12468 wx_cv_struct_tm_has_gmtoff=no
12469
12470fi
12471rm -f conftest*
12472
12473fi
12474
12475echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
12476 fi
12477
12478 for ac_func in gettimeofday ftime
12479do
12480echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8dfea369 12481echo "configure:12482: checking for $ac_func" >&5
3fcdd07b
VZ
12482if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12483 echo $ac_n "(cached) $ac_c" 1>&6
12484else
12485 cat > conftest.$ac_ext <<EOF
8dfea369 12486#line 12487 "configure"
3fcdd07b
VZ
12487#include "confdefs.h"
12488/* System header to define __stub macros and hopefully few prototypes,
12489 which can conflict with char $ac_func(); below. */
12490#include <assert.h>
12491/* Override any gcc2 internal prototype to avoid an error. */
12492/* We use char because int might match the return type of a gcc2
12493 builtin and then its argument prototype would still apply. */
12494char $ac_func();
12495
12496int main() {
12497
12498/* The GNU C library defines this for functions which it implements
12499 to always fail with ENOSYS. Some functions are actually named
12500 something starting with __ and the normal name is an alias. */
12501#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12502choke me
12503#else
e8482f24 12504$ac_func();
3fcdd07b
VZ
12505#endif
12506
12507; return 0; }
12508EOF
8dfea369 12509if { (eval echo configure:12510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
12510 rm -rf conftest*
12511 eval "ac_cv_func_$ac_func=yes"
12512else
12513 echo "configure: failed program was:" >&5
12514 cat conftest.$ac_ext >&5
12515 rm -rf conftest*
12516 eval "ac_cv_func_$ac_func=no"
12517fi
12518rm -f conftest*
12519fi
12520
12521if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12522 echo "$ac_t""yes" 1>&6
12523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12524 cat >> confdefs.h <<EOF
12525#define $ac_tr_func 1
12526EOF
12527 break
12528else
12529 echo "$ac_t""no" 1>&6
12530fi
12531done
12532
12533
12534 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 12535 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
8dfea369 12536echo "configure:12537: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
12537if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12538 echo $ac_n "(cached) $ac_c" 1>&6
12539else
12540
12541
12542 ac_ext=C
12543# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12544ac_cpp='$CXXCPP $CPPFLAGS'
12545ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12546ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12547cross_compiling=$ac_cv_prog_cxx_cross
12548
12549
12550 cat > conftest.$ac_ext <<EOF
8dfea369 12551#line 12552 "configure"
10f2d63a 12552#include "confdefs.h"
afc31813
VZ
12553
12554 #include <sys/time.h>
12555 #include <unistd.h>
12556
10f2d63a 12557int main() {
afc31813
VZ
12558
12559 struct timeval tv;
12560 struct timezone tz;
12561 gettimeofday(&tv, &tz);
12562
10f2d63a
VZ
12563; return 0; }
12564EOF
8dfea369 12565if { (eval echo configure:12566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12566 rm -rf conftest*
afc31813 12567 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
12568else
12569 echo "configure: failed program was:" >&5
12570 cat conftest.$ac_ext >&5
12571 rm -rf conftest*
12572 cat > conftest.$ac_ext <<EOF
8dfea369 12573#line 12574 "configure"
10f2d63a 12574#include "confdefs.h"
afc31813
VZ
12575
12576 #include <sys/time.h>
12577 #include <unistd.h>
12578
10f2d63a 12579int main() {
afc31813
VZ
12580
12581 struct timeval tv;
12582 gettimeofday(&tv);
12583
10f2d63a
VZ
12584; return 0; }
12585EOF
8dfea369 12586if { (eval echo configure:12587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12587 rm -rf conftest*
afc31813 12588 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
12589else
12590 echo "configure: failed program was:" >&5
12591 cat conftest.$ac_ext >&5
12592 rm -rf conftest*
afc31813
VZ
12593 wx_cv_func_gettimeofday_has_2_args=unknown
12594
10f2d63a
VZ
12595fi
12596rm -f conftest*
afc31813 12597
10f2d63a
VZ
12598fi
12599rm -f conftest*
afc31813 12600 ac_ext=c
10f2d63a
VZ
12601# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12602ac_cpp='$CPP $CPPFLAGS'
12603ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12604ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12605cross_compiling=$ac_cv_prog_cc_cross
12606
afc31813
VZ
12607
12608fi
12609
12610echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 12611
afc31813
VZ
12612 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12613 cat >> confdefs.h <<\EOF
12614#define WX_GETTIMEOFDAY_NO_TZ 1
12615EOF
12616
12617 fi
12618 fi
12619
12620 cat >> confdefs.h <<\EOF
12621#define wxUSE_TIMEDATE 1
12622EOF
12623
12624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12625fi
12626
12627
b089607b
VZ
12628if test "$TOOLKIT" != "MSW"; then
12629
afc31813 12630if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 12631 echo $ac_n "checking for socket""... $ac_c" 1>&6
8dfea369 12632echo "configure:12633: checking for socket" >&5
c63c7106
VZ
12633if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12634 echo $ac_n "(cached) $ac_c" 1>&6
12635else
12636 cat > conftest.$ac_ext <<EOF
8dfea369 12637#line 12638 "configure"
c63c7106
VZ
12638#include "confdefs.h"
12639/* System header to define __stub macros and hopefully few prototypes,
12640 which can conflict with char socket(); below. */
12641#include <assert.h>
12642/* Override any gcc2 internal prototype to avoid an error. */
12643/* We use char because int might match the return type of a gcc2
12644 builtin and then its argument prototype would still apply. */
12645char socket();
12646
12647int main() {
12648
12649/* The GNU C library defines this for functions which it implements
12650 to always fail with ENOSYS. Some functions are actually named
12651 something starting with __ and the normal name is an alias. */
12652#if defined (__stub_socket) || defined (__stub___socket)
12653choke me
12654#else
e8482f24 12655socket();
c63c7106
VZ
12656#endif
12657
12658; return 0; }
12659EOF
8dfea369 12660if { (eval echo configure:12661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12661 rm -rf conftest*
12662 eval "ac_cv_func_socket=yes"
12663else
12664 echo "configure: failed program was:" >&5
12665 cat conftest.$ac_ext >&5
12666 rm -rf conftest*
12667 eval "ac_cv_func_socket=no"
12668fi
12669rm -f conftest*
12670fi
12671
12672if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12673 echo "$ac_t""yes" 1>&6
12674 :
12675else
12676 echo "$ac_t""no" 1>&6
12677echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
8dfea369 12678echo "configure:12679: checking for socket in -lsocket" >&5
c63c7106
VZ
12679ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12680if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12681 echo $ac_n "(cached) $ac_c" 1>&6
12682else
12683 ac_save_LIBS="$LIBS"
12684LIBS="-lsocket $LIBS"
12685cat > conftest.$ac_ext <<EOF
8dfea369 12686#line 12687 "configure"
c63c7106
VZ
12687#include "confdefs.h"
12688/* Override any gcc2 internal prototype to avoid an error. */
12689/* We use char because int might match the return type of a gcc2
12690 builtin and then its argument prototype would still apply. */
12691char socket();
12692
12693int main() {
12694socket()
12695; return 0; }
12696EOF
8dfea369 12697if { (eval echo configure:12698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12698 rm -rf conftest*
12699 eval "ac_cv_lib_$ac_lib_var=yes"
12700else
12701 echo "configure: failed program was:" >&5
12702 cat conftest.$ac_ext >&5
12703 rm -rf conftest*
12704 eval "ac_cv_lib_$ac_lib_var=no"
12705fi
12706rm -f conftest*
12707LIBS="$ac_save_LIBS"
12708
12709fi
12710if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12711 echo "$ac_t""yes" 1>&6
12712 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
12713else
12714 echo "$ac_t""no" 1>&6
afc31813
VZ
12715
12716 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12717 wxUSE_SOCKETS=no
12718
12719
c63c7106
VZ
12720fi
12721
12722
12723fi
12724
10f2d63a
VZ
12725fi
12726
b089607b
VZ
12727fi
12728
afc31813 12729if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 12730 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
8dfea369 12731echo "configure:12732: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
12732if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12733 echo $ac_n "(cached) $ac_c" 1>&6
12734else
12735
12736
12737 ac_ext=C
afc31813
VZ
12738# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12739ac_cpp='$CXXCPP $CPPFLAGS'
12740ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12741ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12742cross_compiling=$ac_cv_prog_cxx_cross
12743
51a9faba
VZ
12744
12745 cat > conftest.$ac_ext <<EOF
8dfea369 12746#line 12747 "configure"
afc31813 12747#include "confdefs.h"
51a9faba 12748
3ace2e6d 12749 #include <sys/types.h>
51a9faba
VZ
12750 #include <sys/socket.h>
12751
afc31813 12752int main() {
51a9faba
VZ
12753
12754 socklen_t len;
12755 getsockname(0, 0, &len);
12756
afc31813
VZ
12757; return 0; }
12758EOF
8dfea369 12759if { (eval echo configure:12760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12760 rm -rf conftest*
51a9faba 12761 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
12762else
12763 echo "configure: failed program was:" >&5
12764 cat conftest.$ac_ext >&5
12765 rm -rf conftest*
12766 cat > conftest.$ac_ext <<EOF
8dfea369 12767#line 12768 "configure"
afc31813 12768#include "confdefs.h"
51a9faba 12769
3ace2e6d 12770 #include <sys/types.h>
51a9faba
VZ
12771 #include <sys/socket.h>
12772
afc31813 12773int main() {
51a9faba
VZ
12774
12775 size_t len;
12776 getsockname(0, 0, &len);
12777
afc31813
VZ
12778; return 0; }
12779EOF
8dfea369 12780if { (eval echo configure:12781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12781 rm -rf conftest*
51a9faba 12782 wx_cv_type_getsockname3=size_t
afc31813
VZ
12783else
12784 echo "configure: failed program was:" >&5
12785 cat conftest.$ac_ext >&5
12786 rm -rf conftest*
12787 cat > conftest.$ac_ext <<EOF
8dfea369 12788#line 12789 "configure"
afc31813 12789#include "confdefs.h"
51a9faba 12790
3ace2e6d 12791 #include <sys/types.h>
51a9faba
VZ
12792 #include <sys/socket.h>
12793
afc31813 12794int main() {
51a9faba
VZ
12795
12796 int len;
12797 getsockname(0, 0, &len);
12798
afc31813
VZ
12799; return 0; }
12800EOF
8dfea369 12801if { (eval echo configure:12802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12802 rm -rf conftest*
51a9faba 12803 wx_cv_type_getsockname3=int
afc31813
VZ
12804else
12805 echo "configure: failed program was:" >&5
12806 cat conftest.$ac_ext >&5
3ace2e6d
SN
12807 rm -rf conftest*
12808 wx_cv_type_getsockname3=unknown
12809
afc31813
VZ
12810fi
12811rm -f conftest*
51a9faba 12812
afc31813
VZ
12813fi
12814rm -f conftest*
51a9faba 12815
afc31813
VZ
12816fi
12817rm -f conftest*
51a9faba
VZ
12818
12819 ac_ext=c
afc31813
VZ
12820# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12821ac_cpp='$CPP $CPPFLAGS'
12822ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12823ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12824cross_compiling=$ac_cv_prog_cc_cross
12825
51a9faba
VZ
12826
12827fi
12828
12829echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12830
12831 if test "$wx_cv_type_getsockname3" = "unknown"; then
12832 wxUSE_SOCKETS=no
12833 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12834 else
12835 cat >> confdefs.h <<EOF
12836#define SOCKLEN_T $wx_cv_type_getsockname3
12837EOF
12838
12839 fi
12840fi
afc31813 12841
51a9faba 12842if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
12843 cat >> confdefs.h <<\EOF
12844#define wxUSE_SOCKETS 1
12845EOF
12846
70f7a477 12847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
12848 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12849fi
12850
10f2d63a 12851
b089607b
VZ
12852if test "$TOOLKIT" != "MSW"; then
12853
10f2d63a
VZ
12854if test "$wxUSE_JOYSTICK" = 1; then
12855 for ac_hdr in linux/joystick.h
12856do
12857ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12858echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8dfea369 12859echo "configure:12860: checking for $ac_hdr" >&5
10f2d63a
VZ
12860if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12861 echo $ac_n "(cached) $ac_c" 1>&6
12862else
12863 cat > conftest.$ac_ext <<EOF
8dfea369 12864#line 12865 "configure"
10f2d63a
VZ
12865#include "confdefs.h"
12866#include <$ac_hdr>
12867EOF
12868ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 12869{ (eval echo configure:12870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12870ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12871if test -z "$ac_err"; then
12872 rm -rf conftest*
12873 eval "ac_cv_header_$ac_safe=yes"
12874else
12875 echo "$ac_err" >&5
12876 echo "configure: failed program was:" >&5
12877 cat conftest.$ac_ext >&5
12878 rm -rf conftest*
12879 eval "ac_cv_header_$ac_safe=no"
12880fi
12881rm -f conftest*
12882fi
12883if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12884 echo "$ac_t""yes" 1>&6
12885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12886 cat >> confdefs.h <<EOF
12887#define $ac_tr_hdr 1
12888EOF
12889
12890else
12891 echo "$ac_t""no" 1>&6
12892fi
12893done
12894
b089607b
VZ
12895 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
12896 wxUSE_JOYSTICK=0
12897 echo "configure: warning: Joystick not supported yb this system" 1>&2
12898 fi
12899fi
12900
12901fi
12902
12903if test "$wxUSE_JOYSTICK" = 1; then
10f2d63a
VZ
12904 cat >> confdefs.h <<\EOF
12905#define wxUSE_JOYSTICK 1
12906EOF
12907
12908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
12909fi
12910
12911
b089607b
VZ
12912if test "$TOOLKIT" != "MSW"; then
12913
10f2d63a
VZ
12914HAVE_DL_FUNCS=0
12915HAVE_SHL_FUNCS=0
12916if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12917 for ac_func in dlopen
12918do
12919echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8dfea369 12920echo "configure:12921: checking for $ac_func" >&5
10f2d63a
VZ
12921if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12922 echo $ac_n "(cached) $ac_c" 1>&6
12923else
12924 cat > conftest.$ac_ext <<EOF
8dfea369 12925#line 12926 "configure"
10f2d63a
VZ
12926#include "confdefs.h"
12927/* System header to define __stub macros and hopefully few prototypes,
12928 which can conflict with char $ac_func(); below. */
12929#include <assert.h>
12930/* Override any gcc2 internal prototype to avoid an error. */
12931/* We use char because int might match the return type of a gcc2
12932 builtin and then its argument prototype would still apply. */
12933char $ac_func();
12934
12935int main() {
12936
12937/* The GNU C library defines this for functions which it implements
12938 to always fail with ENOSYS. Some functions are actually named
12939 something starting with __ and the normal name is an alias. */
12940#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12941choke me
12942#else
e8482f24 12943$ac_func();
10f2d63a
VZ
12944#endif
12945
12946; return 0; }
12947EOF
8dfea369 12948if { (eval echo configure:12949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12949 rm -rf conftest*
12950 eval "ac_cv_func_$ac_func=yes"
12951else
12952 echo "configure: failed program was:" >&5
12953 cat conftest.$ac_ext >&5
12954 rm -rf conftest*
12955 eval "ac_cv_func_$ac_func=no"
12956fi
12957rm -f conftest*
12958fi
12959
12960if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12961 echo "$ac_t""yes" 1>&6
12962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12963 cat >> confdefs.h <<EOF
12964#define $ac_tr_func 1
12965EOF
12966
12967 cat >> confdefs.h <<\EOF
12968#define HAVE_DLOPEN 1
12969EOF
12970
12971 HAVE_DL_FUNCS=1
12972
12973else
12974 echo "$ac_t""no" 1>&6
12975echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8dfea369 12976echo "configure:12977: checking for dlopen in -ldl" >&5
10f2d63a
VZ
12977ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12978if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12979 echo $ac_n "(cached) $ac_c" 1>&6
12980else
12981 ac_save_LIBS="$LIBS"
12982LIBS="-ldl $LIBS"
12983cat > conftest.$ac_ext <<EOF
8dfea369 12984#line 12985 "configure"
10f2d63a
VZ
12985#include "confdefs.h"
12986/* Override any gcc2 internal prototype to avoid an error. */
12987/* We use char because int might match the return type of a gcc2
12988 builtin and then its argument prototype would still apply. */
12989char dlopen();
12990
12991int main() {
12992dlopen()
12993; return 0; }
12994EOF
8dfea369 12995if { (eval echo configure:12996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12996 rm -rf conftest*
12997 eval "ac_cv_lib_$ac_lib_var=yes"
12998else
12999 echo "configure: failed program was:" >&5
13000 cat conftest.$ac_ext >&5
13001 rm -rf conftest*
13002 eval "ac_cv_lib_$ac_lib_var=no"
13003fi
13004rm -f conftest*
13005LIBS="$ac_save_LIBS"
13006
13007fi
13008if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13009 echo "$ac_t""yes" 1>&6
13010
13011 cat >> confdefs.h <<\EOF
13012#define HAVE_DLOPEN 1
13013EOF
13014
13015 HAVE_DL_FUNCS=1
13016 LIBS="$LIBS -ldl"
13017
13018else
13019 echo "$ac_t""no" 1>&6
13020
13021 for ac_func in shl_load
13022do
13023echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8dfea369 13024echo "configure:13025: checking for $ac_func" >&5
10f2d63a
VZ
13025if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13026 echo $ac_n "(cached) $ac_c" 1>&6
13027else
13028 cat > conftest.$ac_ext <<EOF
8dfea369 13029#line 13030 "configure"
10f2d63a
VZ
13030#include "confdefs.h"
13031/* System header to define __stub macros and hopefully few prototypes,
13032 which can conflict with char $ac_func(); below. */
13033#include <assert.h>
13034/* Override any gcc2 internal prototype to avoid an error. */
13035/* We use char because int might match the return type of a gcc2
13036 builtin and then its argument prototype would still apply. */
13037char $ac_func();
13038
13039int main() {
13040
13041/* The GNU C library defines this for functions which it implements
13042 to always fail with ENOSYS. Some functions are actually named
13043 something starting with __ and the normal name is an alias. */
13044#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13045choke me
13046#else
e8482f24 13047$ac_func();
10f2d63a
VZ
13048#endif
13049
13050; return 0; }
13051EOF
8dfea369 13052if { (eval echo configure:13053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13053 rm -rf conftest*
13054 eval "ac_cv_func_$ac_func=yes"
13055else
13056 echo "configure: failed program was:" >&5
13057 cat conftest.$ac_ext >&5
13058 rm -rf conftest*
13059 eval "ac_cv_func_$ac_func=no"
13060fi
13061rm -f conftest*
13062fi
13063
13064if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13065 echo "$ac_t""yes" 1>&6
13066 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13067 cat >> confdefs.h <<EOF
13068#define $ac_tr_func 1
13069EOF
13070
13071 cat >> confdefs.h <<\EOF
13072#define HAVE_SHL_LOAD 1
13073EOF
13074
13075 HAVE_SHL_FUNCS=1
13076
13077else
13078 echo "$ac_t""no" 1>&6
13079fi
13080done
13081
13082
13083fi
13084
13085
13086fi
13087done
13088
13089
13090 if test "$HAVE_DL_FUNCS" = 0; then
13091 if test "$HAVE_SHL_FUNCS" = 0; then
13092 if test "$USE_UNIX" = 1; then
b12915c1 13093 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
13094 wxUSE_DYNLIB_CLASS=no
13095 else
b12915c1 13096 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
13097 fi
13098 fi
13099 fi
13100fi
13101
b089607b
VZ
13102fi
13103
10f2d63a 13104if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 13105 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13106#define wxUSE_DYNLIB_CLASS 1
13107EOF
13108
b12915c1
VZ
13109else
13110 wxUSE_ODBC=no
13111 wxUSE_SERIAL=no
10f2d63a
VZ
13112fi
13113
13114
13115if test "$wxUSE_UNICODE" = "yes" ; then
13116 cat >> confdefs.h <<\EOF
13117#define wxUSE_UNICODE 1
13118EOF
13119
13120fi
13121
13122if test "$wxUSE_WCSRTOMBS" = "yes" ; then
13123 cat >> confdefs.h <<\EOF
13124#define wxUSE_WCSRTOMBS 1
13125EOF
13126
13127fi
13128
13129if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
13130 cat >> confdefs.h <<\EOF
13131#define wxUSE_EXPERIMENTAL_PRINTF 1
13132EOF
13133
13134fi
13135
13136
b12915c1
VZ
13137if test "$wxUSE_SERIAL" = "yes" ; then
13138 cat >> confdefs.h <<\EOF
13139#define wxUSE_SERIAL 1
13140EOF
13141
13142fi
13143
13144
10f2d63a
VZ
13145IODBC_C_SRC=""
13146if test "$wxUSE_ODBC" = "yes" ; then
13147 cat >> confdefs.h <<\EOF
13148#define wxUSE_ODBC 1
13149EOF
13150
13151 WXODBCFLAG="-D_IODBC_"
13152 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
13153 IODBCOBJS="\$(IODBC_OBJS)"
13154else
13155 IODBCOBJS=
13156fi
13157
13158
13159if test "$wxUSE_POSTSCRIPT" = "yes" ; then
13160 cat >> confdefs.h <<\EOF
13161#define wxUSE_POSTSCRIPT 1
13162EOF
13163
13164fi
13165
13166cat >> confdefs.h <<\EOF
13167#define wxUSE_AFM_FOR_POSTSCRIPT 1
13168EOF
13169
13170
13171cat >> confdefs.h <<\EOF
13172#define wxUSE_NORMALIZED_PS_FONTS 1
13173EOF
13174
13175
13176
13177if test "$wxUSE_CONSTRAINTS" = "yes"; then
13178 cat >> confdefs.h <<\EOF
13179#define wxUSE_CONSTRAINTS 1
13180EOF
13181
13182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
13183fi
13184
13185if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
13186 cat >> confdefs.h <<\EOF
13187#define wxUSE_MDI_ARCHITECTURE 1
13188EOF
13189
13190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
13191fi
13192
13193if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
13194 cat >> confdefs.h <<\EOF
13195#define wxUSE_DOC_VIEW_ARCHITECTURE 1
13196EOF
13197
13198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
13199 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
13200 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
13201 fi
13202fi
13203
13204if test "$wxUSE_HELP" = "yes"; then
13205 cat >> confdefs.h <<\EOF
13206#define wxUSE_HELP 1
13207EOF
13208
13209 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
13210fi
13211
13212if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13213 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13214 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
13215 else
13216 cat >> confdefs.h <<\EOF
13217#define wxUSE_PRINTING_ARCHITECTURE 1
13218EOF
13219
13220 fi
13221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
13222fi
13223
13224if test "$wxUSE_PROLOGIO" = "yes" ; then
13225 cat >> confdefs.h <<\EOF
13226#define wxUSE_PROLOGIO 1
13227EOF
13228
13229fi
13230
13231if test "$wxUSE_RESOURCES" = "yes" ; then
13232 if test "$wxUSE_PROLOGIO" = "yes" ; then
13233 cat >> confdefs.h <<\EOF
13234#define wxUSE_RESOURCES 1
13235EOF
13236
13237 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
13238 else
13239 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
13240 fi
13241fi
13242
13243if test "$wxUSE_X_RESOURCES" = "yes"; then
13244 cat >> confdefs.h <<\EOF
13245#define wxUSE_X_RESOURCES 1
13246EOF
13247
13248fi
13249
13250
13251if test "$wxUSE_IPC" = "yes"; then
13252 cat >> confdefs.h <<\EOF
13253#define wxUSE_IPC 1
13254EOF
13255
13256fi
13257
13258if test "$wxUSE_CLIPBOARD" = "yes"; then
13259 cat >> confdefs.h <<\EOF
13260#define wxUSE_CLIPBOARD 1
13261EOF
13262
13263fi
13264
13265if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
13266 if test "$wxUSE_GTK" = 1; then
13267 if test "$WXGTK12" != 1; then
13268 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
13269 wxUSE_DRAG_AND_DROP=no
13270 fi
13271 fi
13272
13273 if test "$wxUSE_MOTIF" = 1; then
13274 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
13275 wxUSE_DRAG_AND_DROP=no
13276 fi
13277
13278 if test "$USE_WIN32" = 1; then
13279 for ac_hdr in ole2.h
13280do
13281ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13282echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8dfea369 13283echo "configure:13284: checking for $ac_hdr" >&5
10f2d63a
VZ
13284if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13285 echo $ac_n "(cached) $ac_c" 1>&6
13286else
13287 cat > conftest.$ac_ext <<EOF
8dfea369 13288#line 13289 "configure"
10f2d63a
VZ
13289#include "confdefs.h"
13290#include <$ac_hdr>
13291EOF
13292ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8dfea369 13293{ (eval echo configure:13294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
13294ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13295if test -z "$ac_err"; then
13296 rm -rf conftest*
13297 eval "ac_cv_header_$ac_safe=yes"
13298else
13299 echo "$ac_err" >&5
13300 echo "configure: failed program was:" >&5
13301 cat conftest.$ac_ext >&5
13302 rm -rf conftest*
13303 eval "ac_cv_header_$ac_safe=no"
13304fi
13305rm -f conftest*
13306fi
13307if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13308 echo "$ac_t""yes" 1>&6
13309 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13310 cat >> confdefs.h <<EOF
13311#define $ac_tr_hdr 1
13312EOF
13313
13314else
13315 echo "$ac_t""no" 1>&6
13316fi
13317done
13318
13319 if test "x$HAVE_OLE2_H" = x ; then
13320 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
13321 wxUSE_DRAG_AND_DROP=no
13322 fi
13323 fi
13324
13325 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
13326 cat >> confdefs.h <<\EOF
13327#define wxUSE_DRAG_AND_DROP 1
13328EOF
13329
13330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
13331 fi
13332
13333fi
13334
13335if test "$wxUSE_SPLINES" = "yes" ; then
13336 cat >> confdefs.h <<\EOF
13337#define wxUSE_SPLINES 1
13338EOF
13339
13340fi
13341
13342
13343if test "$wxUSE_ACCEL" = "yes"; then
13344 cat >> confdefs.h <<\EOF
13345#define wxUSE_ACCEL 1
13346EOF
13347
13348fi
13349
13350if test "$wxUSE_CARET" = "yes"; then
13351 cat >> confdefs.h <<\EOF
13352#define wxUSE_CARET 1
13353EOF
13354
13355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
13356fi
13357
13358if test "$wxUSE_COMBOBOX" = "yes"; then
13359 cat >> confdefs.h <<\EOF
13360#define wxUSE_COMBOBOX 1
13361EOF
13362
13363fi
13364
13365if test "$wxUSE_CHOICE" = "yes"; then
13366 cat >> confdefs.h <<\EOF
13367#define wxUSE_CHOICE 1
13368EOF
13369
13370fi
13371
13372if test "$wxUSE_BMPBUTTON" = "yes"; then
13373 cat >> confdefs.h <<\EOF
13374#define wxUSE_BMPBUTTON 1
13375EOF
13376
13377fi
13378
13379if test "$wxUSE_CHECKBOX" = "yes"; then
13380 cat >> confdefs.h <<\EOF
13381#define wxUSE_CHECKBOX 1
13382EOF
13383
13384fi
13385
13386if test "$wxUSE_CHECKLST" = "yes"; then
13387 cat >> confdefs.h <<\EOF
13388#define wxUSE_CHECKLISTBOX 1
13389EOF
13390
13391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
13392fi
13393
13394if test "$wxUSE_GAUGE" = "yes"; then
13395 cat >> confdefs.h <<\EOF
13396#define wxUSE_GAUGE 1
13397EOF
13398
13399fi
13400
d6a55c4b
VZ
13401if test "$wxUSE_NEW_GRID" = "yes"; then
13402 wxUSE_GRID="yes"
10f2d63a 13403 cat >> confdefs.h <<\EOF
d6a55c4b 13404#define wxUSE_NEW_GRID 1
10f2d63a
VZ
13405EOF
13406
d6a55c4b 13407 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
13408fi
13409
d6a55c4b 13410if test "$wxUSE_GRID" = "yes"; then
10f2d63a 13411 cat >> confdefs.h <<\EOF
d6a55c4b 13412#define wxUSE_GRID 1
10f2d63a
VZ
13413EOF
13414
d6a55c4b 13415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
13416fi
13417
13418if test "$wxUSE_IMAGLIST" = "yes"; then
13419 cat >> confdefs.h <<\EOF
13420#define wxUSE_IMAGLIST 1
13421EOF
13422
13423fi
13424
13425if test "$wxUSE_LISTBOX" = "yes"; then
13426 cat >> confdefs.h <<\EOF
13427#define wxUSE_LISTBOX 1
13428EOF
13429
13430fi
13431
13432if test "$wxUSE_LISTCTRL" = "yes"; then
13433 if test "$wxUSE_IMAGLIST" = "yes"; then
13434 cat >> confdefs.h <<\EOF
13435#define wxUSE_LISTCTRL 1
13436EOF
13437
13438 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
13439 else
13440 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
13441 fi
13442fi
13443
13444if test "$wxUSE_NOTEBOOK" = "yes"; then
13445 cat >> confdefs.h <<\EOF
13446#define wxUSE_NOTEBOOK 1
13447EOF
13448
13449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
13450fi
13451
13452if test "$wxUSE_RADIOBOX" = "yes"; then
13453 cat >> confdefs.h <<\EOF
13454#define wxUSE_RADIOBOX 1
13455EOF
13456
13457fi
13458
13459if test "$wxUSE_RADIOBTN" = "yes"; then
13460 cat >> confdefs.h <<\EOF
13461#define wxUSE_RADIOBTN 1
13462EOF
13463
13464fi
13465
13466if test "$wxUSE_SASH" = "yes"; then
13467 cat >> confdefs.h <<\EOF
13468#define wxUSE_SASH 1
13469EOF
13470
13471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
13472fi
13473
13474if test "$wxUSE_SCROLLBAR" = "yes"; then
13475 cat >> confdefs.h <<\EOF
13476#define wxUSE_SCROLLBAR 1
13477EOF
13478
741a9306 13479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
13480fi
13481
13482if test "$wxUSE_SLIDER" = "yes"; then
13483 cat >> confdefs.h <<\EOF
13484#define wxUSE_SLIDER 1
13485EOF
13486
13487fi
13488
13489if test "$wxUSE_SPINBTN" = "yes"; then
13490 cat >> confdefs.h <<\EOF
13491#define wxUSE_SPINBTN 1
13492EOF
13493
13494fi
13495
56cfaa52
RR
13496if test "$wxUSE_SPINCTRL" = "yes"; then
13497 cat >> confdefs.h <<\EOF
13498#define wxUSE_SPINCTRL 1
13499EOF
13500
13501fi
13502
10f2d63a
VZ
13503if test "$wxUSE_SPLITTER" = "yes"; then
13504 cat >> confdefs.h <<\EOF
13505#define wxUSE_SPLITTER 1
13506EOF
13507
13508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
13509fi
13510
13511if test "$wxUSE_STATBMP" = "yes"; then
13512 cat >> confdefs.h <<\EOF
13513#define wxUSE_STATBMP 1
13514EOF
13515
13516fi
13517
13518if test "$wxUSE_STATBOX" = "yes"; then
13519 cat >> confdefs.h <<\EOF
13520#define wxUSE_STATBOX 1
13521EOF
13522
13523fi
13524
13525if test "$wxUSE_STATLINE" = "yes"; then
13526 if test "$wxUSE_WINE" = 1 ; then
13527 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
13528 else
13529 cat >> confdefs.h <<\EOF
13530#define wxUSE_STATLINE 1
13531EOF
13532
13533 fi
13534fi
13535
13536if test "$wxUSE_STATUSBAR" = "yes"; then
13537 cat >> confdefs.h <<\EOF
13538#define wxUSE_STATUSBAR 1
13539EOF
13540
2286341c
VZ
13541
13542 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
13543fi
13544
13545if test "$wxUSE_TABDIALOG" = "yes"; then
13546 cat >> confdefs.h <<\EOF
13547#define wxUSE_TAB_DIALOG 1
13548EOF
13549
13550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
13551fi
13552
360d6699
VZ
13553if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
13554 cat >> confdefs.h <<\EOF
13555#define wxUSE_TOOLBAR_SIMPLE 1
13556EOF
13557
13558 wxUSE_TOOLBAR="yes"
13559fi
13560
10f2d63a
VZ
13561if test "$wxUSE_TOOLBAR" = "yes"; then
13562 cat >> confdefs.h <<\EOF
13563#define wxUSE_TOOLBAR 1
13564EOF
13565
360d6699
VZ
13566
13567 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
13568 wxUSE_TOOLBAR_NATIVE="yes"
13569 fi
13570
10f2d63a
VZ
13571 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
13572fi
13573
360d6699
VZ
13574if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
13575 cat >> confdefs.h <<\EOF
13576#define wxUSE_TOOLBAR_NATIVE 1
13577EOF
13578
13579fi
13580
10f2d63a
VZ
13581if test "$wxUSE_TOOLTIPS" = "yes"; then
13582 if test "$wxUSE_MOTIF" = 1; then
13583 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13584 else
13585 if test "$wxUSE_WINE" = 1; then
13586 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13587 else
13588 cat >> confdefs.h <<\EOF
13589#define wxUSE_TOOLTIPS 1
13590EOF
13591
13592 fi
13593 fi
13594fi
13595
13596if test "$wxUSE_TREECTRL" = "yes"; then
13597 if test "$wxUSE_IMAGLIST" = "yes"; then
13598 cat >> confdefs.h <<\EOF
13599#define wxUSE_TREECTRL 1
13600EOF
13601
13602 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13603 else
13604 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13605 fi
13606fi
13607
13608
13609
13610if test "$wxUSE_METAFILE" = "yes"; then
13611 cat >> confdefs.h <<\EOF
13612#define wxUSE_METAFILE 1
13613EOF
13614
13615fi
13616
13617if test "$wxUSE_DIRDLG" = "yes"; then
13618 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13619 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13620 else
13621 if test "$wxUSE_TREECTRL" != "yes"; then
13622 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13623 else
13624 cat >> confdefs.h <<\EOF
13625#define wxUSE_DIRDLG 1
13626EOF
13627
13628 fi
13629 fi
13630fi
13631
13632if test "$wxUSE_TEXTDLG" = "yes"; then
13633 cat >> confdefs.h <<\EOF
13634#define wxUSE_TEXTDLG 1
13635EOF
13636
13637fi
13638
13639if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13640 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13641 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13642 else
13643 cat >> confdefs.h <<\EOF
13644#define wxUSE_STARTUP_TIPS 1
13645EOF
13646
13647 fi
13648fi
13649
13650if test "$wxUSE_PROGRESSDLG" = "yes"; then
13651 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13652 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13653 else
13654 cat >> confdefs.h <<\EOF
13655#define wxUSE_PROGRESSDLG 1
13656EOF
13657
13658 fi
13659fi
13660
13661if test "$wxUSE_MINIFRAME" = "yes"; then
13662 cat >> confdefs.h <<\EOF
13663#define wxUSE_MINIFRAME 1
13664EOF
13665
13666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13667fi
13668
13669if test "$wxUSE_HTML" = "yes"; then
13670 cat >> confdefs.h <<\EOF
13671#define wxUSE_HTML 1
13672EOF
13673
13674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13675 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13676fi
13677
13678if test "$wxUSE_VALIDATORS" = "yes"; then
13679 cat >> confdefs.h <<\EOF
13680#define wxUSE_VALIDATORS 1
13681EOF
13682
13683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13684fi
13685
13686if test "$wxUSE_GIF" = "yes" ; then
13687 cat >> confdefs.h <<\EOF
13688#define wxUSE_GIF 1
13689EOF
13690
13691fi
13692
13693if test "$wxUSE_PCX" = "yes" ; then
13694 cat >> confdefs.h <<\EOF
13695#define wxUSE_PCX 1
13696EOF
13697
13698fi
13699
13700if test "$wxUSE_PNM" = "yes" ; then
13701 cat >> confdefs.h <<\EOF
13702#define wxUSE_PNM 1
13703EOF
13704
13705fi
13706
13707
32832908
VZ
13708if test "$cross_compiling" = "yes"; then
13709 OSINFO="\"$host\""
13710else
13711 OSINFO=`uname -s -r -m`
13712 OSINFO="\"$OSINFO\""
13713fi
13714
aaa37c0d
VZ
13715cat >> confdefs.h <<EOF
13716#define WXWIN_OS_DESCRIPTION $OSINFO
13717EOF
13718
13719
13720
bdad4e7e 13721GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $TOOLKIT_LINK"
10f2d63a 13722
422107f9 13723EXTRA_LIBS="$LIBS $ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a 13724if test "$wxUSE_GUI" = "yes"; then
0dcf9893 13725 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK"
10f2d63a
VZ
13726fi
13727
13728LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13729
8461a059 13730INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
13731
13732if test "$GXX" = yes ; then
13733 CXXWARNINGS="-Wall"
d6a55c4b 13734 fi
10f2d63a
VZ
13735EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13736
13737CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13738CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13739
e694c22c
VZ
13740LDFLAGS="$LDFLAGS $PROFILE"
13741
10f2d63a
VZ
13742if test "$wxUSE_GUI" = "yes"; then
13743
bdad4e7e 13744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag drawing dynamic \
bc9027cc 13745 font fractal image menu minimal richedit"
b12915c1 13746
88d3a15c 13747 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
13748else
13749 SAMPLES_SUBDIRS=""
13750fi
13751
ec14dd32
VZ
13752SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13753
13754
13755
10f2d63a
VZ
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
1d62a8b4 13808
bdad4e7e
RR
13809
13810
13811
13812
13813
13814
13815
32832908
VZ
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
bdad4e7e
RR
13829
13830
13831
e694c22c 13832
b12915c1 13833
2224580a
VZ
13834
13835
13836
13837
dad6c0ea
VZ
13838
13839
caa2c79b 13840
10f2d63a
VZ
13841
13842
13843echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
8dfea369 13844echo "configure:13845: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
13845set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13846if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13847 echo $ac_n "(cached) $ac_c" 1>&6
13848else
13849 cat > conftestmake <<\EOF
13850all:
13851 @echo 'ac_maketemp="${MAKE}"'
13852EOF
13853# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13854eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13855if test -n "$ac_maketemp"; then
13856 eval ac_cv_prog_make_${ac_make}_set=yes
13857else
13858 eval ac_cv_prog_make_${ac_make}_set=no
13859fi
13860rm -f conftestmake
13861fi
13862if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13863 echo "$ac_t""yes" 1>&6
13864 SET_MAKE=
13865else
13866 echo "$ac_t""no" 1>&6
13867 SET_MAKE="MAKE=${MAKE-make}"
13868fi
13869
13870
00cf1208
RR
13871if test -d include; then
13872 if test -d include/wx; then
13873 if test -d include/wx/${TOOLKIT_DIR}; then
13874 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
13875 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
13876 fi
13877 fi
13878 fi
13879fi
13880
10f2d63a
VZ
13881
13882
2224580a 13883if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 13884 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
13885 wx_cv_path_ifs=$PATH_IFS
13886 wx_cv_program_ext=$PROGRAM_EXT
13887 wx_cv_target_library=$WX_TARGET_LIBRARY
13888 subdirs="demos samples utils contrib"
2224580a
VZ
13889
13890fi
10f2d63a
VZ
13891
13892trap '' 1 2 15
13893cat > confcache <<\EOF
13894# This file is a shell script that caches the results of configure
13895# tests run on this system so they can be shared between configure
13896# scripts and configure runs. It is not useful on other systems.
13897# If it contains results you don't want to keep, you may remove or edit it.
13898#
13899# By default, configure uses ./config.cache as the cache file,
13900# creating it if it does not exist already. You can give configure
13901# the --cache-file=FILE option to use a different cache file; that is
13902# what configure does when it calls configure scripts in
13903# subdirectories, so they share the cache.
13904# Giving --cache-file=/dev/null disables caching, for debugging configure.
13905# config.status only pays attention to the cache file if you give it the
13906# --recheck option to rerun configure.
13907#
13908EOF
13909# The following way of writing the cache mishandles newlines in values,
13910# but we know of no workaround that is simple, portable, and efficient.
13911# So, don't put newlines in cache variables' values.
13912# Ultrix sh set writes to stderr and can't be redirected directly,
13913# and sets the high bit in the cache file unless we assign to the vars.
13914(set) 2>&1 |
13915 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13916 *ac_space=\ *)
13917 # `set' does not quote correctly, so add quotes (double-quote substitution
13918 # turns \\\\ into \\, and sed turns \\ into \).
13919 sed -n \
13920 -e "s/'/'\\\\''/g" \
13921 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13922 ;;
13923 *)
13924 # `set' quotes correctly as required by POSIX, so do not add quotes.
13925 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13926 ;;
13927 esac >> confcache
13928if cmp -s $cache_file confcache; then
13929 :
13930else
13931 if test -w $cache_file; then
13932 echo "updating cache $cache_file"
13933 cat confcache > $cache_file
13934 else
13935 echo "not updating unwritable cache $cache_file"
13936 fi
13937fi
13938rm -f confcache
13939
13940trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13941
13942test "x$prefix" = xNONE && prefix=$ac_default_prefix
13943# Let make expand exec_prefix.
13944test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13945
13946# Any assignment to VPATH causes Sun make to only execute
13947# the first set of double-colon rules, so remove it if not needed.
13948# If there is a colon in the path, we need to keep it.
13949if test "x$srcdir" = x.; then
13950 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13951fi
13952
13953trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13954
13955DEFS=-DHAVE_CONFIG_H
13956
13957# Without the "./", some shells look in PATH for config.status.
13958: ${CONFIG_STATUS=./config.status}
13959
13960echo creating $CONFIG_STATUS
13961rm -f $CONFIG_STATUS
13962cat > $CONFIG_STATUS <<EOF
13963#! /bin/sh
13964# Generated automatically by configure.
13965# Run this file to recreate the current configuration.
13966# This directory was configured as follows,
13967# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13968#
13969# $0 $ac_configure_args
13970#
13971# Compiler output produced by configure, useful for debugging
13972# configure, is in ./config.log if it exists.
13973
13974ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13975for ac_option
13976do
13977 case "\$ac_option" in
13978 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13979 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13980 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13981 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
e8482f24 13982 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
13983 exit 0 ;;
13984 -help | --help | --hel | --he | --h)
13985 echo "\$ac_cs_usage"; exit 0 ;;
13986 *) echo "\$ac_cs_usage"; exit 1 ;;
13987 esac
13988done
13989
13990ac_given_srcdir=$srcdir
13991ac_given_INSTALL="$INSTALL"
13992
13993trap 'rm -fr `echo "
13994 wx-config
13995 src/make.env
13996 src/makeprog.env
13997 src/makelib.env
13998 Makefile
10f2d63a
VZ
13999 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14000EOF
14001cat >> $CONFIG_STATUS <<EOF
14002
14003# Protect against being on the right side of a sed subst in config.status.
14004sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14005 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14006$ac_vpsub
14007$extrasub
14008s%@SHELL@%$SHELL%g
14009s%@CFLAGS@%$CFLAGS%g
14010s%@CPPFLAGS@%$CPPFLAGS%g
14011s%@CXXFLAGS@%$CXXFLAGS%g
14012s%@FFLAGS@%$FFLAGS%g
14013s%@DEFS@%$DEFS%g
14014s%@LDFLAGS@%$LDFLAGS%g
14015s%@LIBS@%$LIBS%g
14016s%@exec_prefix@%$exec_prefix%g
14017s%@prefix@%$prefix%g
14018s%@program_transform_name@%$program_transform_name%g
14019s%@bindir@%$bindir%g
14020s%@sbindir@%$sbindir%g
14021s%@libexecdir@%$libexecdir%g
14022s%@datadir@%$datadir%g
14023s%@sysconfdir@%$sysconfdir%g
14024s%@sharedstatedir@%$sharedstatedir%g
14025s%@localstatedir@%$localstatedir%g
14026s%@libdir@%$libdir%g
14027s%@includedir@%$includedir%g
14028s%@oldincludedir@%$oldincludedir%g
14029s%@infodir@%$infodir%g
14030s%@mandir@%$mandir%g
7c66a493
VZ
14031s%@host@%$host%g
14032s%@host_alias@%$host_alias%g
14033s%@host_cpu@%$host_cpu%g
14034s%@host_vendor@%$host_vendor%g
14035s%@host_os@%$host_os%g
14036s%@target@%$target%g
14037s%@target_alias@%$target_alias%g
14038s%@target_cpu@%$target_cpu%g
14039s%@target_vendor@%$target_vendor%g
14040s%@target_os@%$target_os%g
14041s%@build@%$build%g
14042s%@build_alias@%$build_alias%g
14043s%@build_cpu@%$build_cpu%g
14044s%@build_vendor@%$build_vendor%g
14045s%@build_os@%$build_os%g
10f2d63a
VZ
14046s%@CC@%$CC%g
14047s%@CPP@%$CPP%g
14048s%@CXX@%$CXX%g
14049s%@CXXCPP@%$CXXCPP%g
14050s%@RANLIB@%$RANLIB%g
14051s%@AR@%$AR%g
14052s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14053s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14054s%@INSTALL_DATA@%$INSTALL_DATA%g
14055s%@STRIP@%$STRIP%g
14056s%@YACC@%$YACC%g
14057s%@LEX@%$LEX%g
14058s%@LEXLIB@%$LEXLIB%g
14059s%@LN_S@%$LN_S%g
14060s%@GTK_CONFIG@%$GTK_CONFIG%g
14061s%@GTK_CFLAGS@%$GTK_CFLAGS%g
14062s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
14063s%@X_CFLAGS@%$X_CFLAGS%g
14064s%@X_PRE_LIBS@%$X_PRE_LIBS%g
14065s%@X_LIBS@%$X_LIBS%g
14066s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
14067s%@LEX_STEM@%$LEX_STEM%g
14068s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
14069s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
14070s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
14071s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
14072s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
14073s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
14074s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
14075s%@WX_LIBRARY@%$WX_LIBRARY%g
14076s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
14077s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
14078s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
14079s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
14080s%@PROGRAM_EXT@%$PROGRAM_EXT%g
bdad4e7e
RR
14081s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
14082s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
14083s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
14084s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
14085s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
14086s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
14087s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
14088s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
10f2d63a
VZ
14089s%@WX_ALL@%$WX_ALL%g
14090s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
14091s%@SHARED_LD@%$SHARED_LD%g
14092s%@PIC_FLAG@%$PIC_FLAG%g
14093s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 14094s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 14095s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
bdad4e7e 14096s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
10f2d63a 14097s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
14098s%@USE_GUI@%$USE_GUI%g
14099s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
14100s%@TOOLKIT@%$TOOLKIT%g
14101s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
14102s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
14103s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
14104s%@GUIHEADERS@%$GUIHEADERS%g
14105s%@GUIOBJS@%$GUIOBJS%g
14106s%@COMMONOBJS@%$COMMONOBJS%g
14107s%@GENERICOBJS@%$GENERICOBJS%g
14108s%@GUIDEPS@%$GUIDEPS%g
14109s%@COMMONDEPS@%$COMMONDEPS%g
14110s%@GENERICDEPS@%$GENERICDEPS%g
14111s%@IODBCOBJS@%$IODBCOBJS%g
14112s%@UNIXOBJS@%$UNIXOBJS%g
14113s%@UNIXDEPS@%$UNIXDEPS%g
14114s%@ALL_OBJECTS@%$ALL_OBJECTS%g
14115s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 14116s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
14117s%@PORT_FILES@%$PORT_FILES%g
14118s%@DISTDIR@%$DISTDIR%g
14119s%@RPM_SPEC@%$RPM_SPEC%g
14120s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
14121s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
14122s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
14123s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
14124s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
14125s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
14126s%@USER_SUBDIRS@%$USER_SUBDIRS%g
14127s%@EXTRA_LIBS@%$EXTRA_LIBS%g
b12915c1 14128s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a 14129s%@LD_LIBS@%$LD_LIBS%g
32832908
VZ
14130s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
14131s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
14132s%@RESPROGRAM@%$RESPROGRAM%g
14133s%@RESCOMP@%$RESCOMP%g
14134s%@RESFLAGS@%$RESFLAGS%g
14135s%@DLLTOOL@%$DLLTOOL%g
14136s%@AS@%$AS%g
14137s%@NM@%$NM%g
14138s%@LD@%$LD%g
14139s%@MAKEINFO@%$MAKEINFO%g
10f2d63a 14140s%@SET_MAKE@%$SET_MAKE%g
2224580a 14141s%@subdirs@%$subdirs%g
10f2d63a
VZ
14142
14143CEOF
14144EOF
14145
14146cat >> $CONFIG_STATUS <<\EOF
14147
14148# Split the substitutions into bite-sized pieces for seds with
14149# small command number limits, like on Digital OSF/1 and HP-UX.
14150ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14151ac_file=1 # Number of current file.
14152ac_beg=1 # First line for current file.
14153ac_end=$ac_max_sed_cmds # Line after last line for current file.
14154ac_more_lines=:
14155ac_sed_cmds=""
14156while $ac_more_lines; do
14157 if test $ac_beg -gt 1; then
14158 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14159 else
14160 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14161 fi
14162 if test ! -s conftest.s$ac_file; then
14163 ac_more_lines=false
14164 rm -f conftest.s$ac_file
14165 else
14166 if test -z "$ac_sed_cmds"; then
14167 ac_sed_cmds="sed -f conftest.s$ac_file"
14168 else
14169 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14170 fi
14171 ac_file=`expr $ac_file + 1`
14172 ac_beg=$ac_end
14173 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14174 fi
14175done
14176if test -z "$ac_sed_cmds"; then
14177 ac_sed_cmds=cat
14178fi
14179EOF
14180
14181cat >> $CONFIG_STATUS <<EOF
14182
14183CONFIG_FILES=\${CONFIG_FILES-"wx-config
14184 src/make.env
14185 src/makeprog.env
14186 src/makelib.env
14187 Makefile
10f2d63a
VZ
14188 "}
14189EOF
14190cat >> $CONFIG_STATUS <<\EOF
14191for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14192 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14193 case "$ac_file" in
14194 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14195 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14196 *) ac_file_in="${ac_file}.in" ;;
14197 esac
14198
14199 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14200
14201 # Remove last slash and all that follows it. Not all systems have dirname.
14202 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14203 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14204 # The file is in a subdirectory.
14205 test ! -d "$ac_dir" && mkdir "$ac_dir"
14206 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14207 # A "../" for each directory in $ac_dir_suffix.
14208 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14209 else
14210 ac_dir_suffix= ac_dots=
14211 fi
14212
14213 case "$ac_given_srcdir" in
14214 .) srcdir=.
14215 if test -z "$ac_dots"; then top_srcdir=.
14216 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14217 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14218 *) # Relative path.
14219 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14220 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14221 esac
14222
14223 case "$ac_given_INSTALL" in
14224 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14225 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14226 esac
14227
14228 echo creating "$ac_file"
14229 rm -f "$ac_file"
14230 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14231 case "$ac_file" in
14232 *Makefile*) ac_comsub="1i\\
14233# $configure_input" ;;
14234 *) ac_comsub= ;;
14235 esac
14236
14237 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14238 sed -e "$ac_comsub
14239s%@configure_input@%$configure_input%g
14240s%@srcdir@%$srcdir%g
14241s%@top_srcdir@%$top_srcdir%g
14242s%@INSTALL@%$INSTALL%g
14243" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14244fi; done
14245rm -f conftest.s*
14246
14247# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14248# NAME is the cpp macro being defined and VALUE is the value it is being given.
14249#
14250# ac_d sets the value in "#define NAME VALUE" lines.
14251ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14252ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14253ac_dC='\3'
14254ac_dD='%g'
14255# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14256ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14257ac_uB='\([ ]\)%\1#\2define\3'
14258ac_uC=' '
14259ac_uD='\4%g'
14260# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14261ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14262ac_eB='$%\1#\2define\3'
14263ac_eC=' '
14264ac_eD='%g'
14265
14266if test "${CONFIG_HEADERS+set}" != set; then
14267EOF
14268cat >> $CONFIG_STATUS <<EOF
14269 CONFIG_HEADERS="setup.h:setup.h.in"
14270EOF
14271cat >> $CONFIG_STATUS <<\EOF
14272fi
14273for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14274 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14275 case "$ac_file" in
14276 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14277 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14278 *) ac_file_in="${ac_file}.in" ;;
14279 esac
14280
14281 echo creating $ac_file
14282
14283 rm -f conftest.frag conftest.in conftest.out
14284 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14285 cat $ac_file_inputs > conftest.in
14286
14287EOF
14288
14289# Transform confdefs.h into a sed script conftest.vals that substitutes
14290# the proper values into config.h.in to produce config.h. And first:
14291# Protect against being on the right side of a sed subst in config.status.
14292# Protect against being in an unquoted here document in config.status.
14293rm -f conftest.vals
14294cat > conftest.hdr <<\EOF
14295s/[\\&%]/\\&/g
14296s%[\\$`]%\\&%g
14297s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14298s%ac_d%ac_u%gp
14299s%ac_u%ac_e%gp
14300EOF
14301sed -n -f conftest.hdr confdefs.h > conftest.vals
14302rm -f conftest.hdr
14303
14304# This sed command replaces #undef with comments. This is necessary, for
14305# example, in the case of _POSIX_SOURCE, which is predefined and required
14306# on some systems where configure will not decide to define it.
14307cat >> conftest.vals <<\EOF
14308s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14309EOF
14310
14311# Break up conftest.vals because some shells have a limit on
14312# the size of here documents, and old seds have small limits too.
14313
14314rm -f conftest.tail
14315while :
14316do
14317 ac_lines=`grep -c . conftest.vals`
14318 # grep -c gives empty output for an empty file on some AIX systems.
14319 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14320 # Write a limited-size here document to conftest.frag.
14321 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14322 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14323 echo 'CEOF
14324 sed -f conftest.frag conftest.in > conftest.out
14325 rm -f conftest.in
14326 mv conftest.out conftest.in
14327' >> $CONFIG_STATUS
14328 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14329 rm -f conftest.vals
14330 mv conftest.tail conftest.vals
14331done
14332rm -f conftest.vals
14333
14334cat >> $CONFIG_STATUS <<\EOF
14335 rm -f conftest.frag conftest.h
14336 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14337 cat conftest.in >> conftest.h
14338 rm -f conftest.in
14339 if cmp -s $ac_file conftest.h 2>/dev/null; then
14340 echo "$ac_file is unchanged"
14341 rm -f conftest.h
14342 else
14343 # Remove last slash and all that follows it. Not all systems have dirname.
14344 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14345 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14346 # The file is in a subdirectory.
14347 test ! -d "$ac_dir" && mkdir "$ac_dir"
14348 fi
14349 rm -f $ac_file
14350 mv conftest.h $ac_file
14351 fi
14352fi; done
14353
14354EOF
14355cat >> $CONFIG_STATUS <<EOF
14356
14357 TOOLKIT_DIR="${TOOLKIT_DIR}"
07eb77a6 14358 LN_S="${LN_S}"
10f2d63a
VZ
14359
14360
14361EOF
14362cat >> $CONFIG_STATUS <<\EOF
14363
14364 chmod +x wx-config
07eb77a6
RL
14365 mv wx-config wx${TOOLKIT_DIR}-config
14366 ${LN_S} wx${TOOLKIT_DIR}-config wx-config
00cf1208
RR
14367
14368
14369 if test ! -d lib; then
14370 mkdir lib
14371 fi
14372 if test ! -d lib/wx; then
14373 mkdir lib/wx
14374 fi
14375 if test ! -d lib/wx/include; then
14376 mkdir lib/wx/include
14377 fi
14378 if test ! -d lib/wx/include/wx; then
14379 mkdir lib/wx/include/wx
14380 fi
14381 if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then
14382 mkdir lib/wx/include/wx/${TOOLKIT_DIR}
14383 fi
14384 if test -f setup.h; then
14385 cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h
14386 fi
07eb77a6 14387
00cf1208 14388
10f2d63a
VZ
14389 if test ! -d include; then
14390 mkdir include
14391 fi
14392 if test ! -d include/wx; then
14393 mkdir include/wx
14394 fi
14395 if test ! -d include/wx/${TOOLKIT_DIR}; then
14396 mkdir include/wx/${TOOLKIT_DIR}
14397 fi
afc31813
VZ
14398 if test -f setup.h; then
14399 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
14400 fi
00cf1208 14401
10f2d63a
VZ
14402
14403exit 0
14404EOF
14405chmod +x $CONFIG_STATUS
14406rm -fr confdefs* $ac_clean_files
14407test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14408
2224580a
VZ
14409if test "$no_recursion" != yes; then
14410
14411 # Remove --cache-file and --srcdir arguments so they do not pile up.
14412 ac_sub_configure_args=
14413 ac_prev=
14414 for ac_arg in $ac_configure_args; do
14415 if test -n "$ac_prev"; then
14416 ac_prev=
14417 continue
14418 fi
14419 case "$ac_arg" in
14420 -cache-file | --cache-file | --cache-fil | --cache-fi \
14421 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14422 ac_prev=cache_file ;;
14423 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14424 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
14425 ;;
14426 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14427 ac_prev=srcdir ;;
14428 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14429 ;;
14430 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
14431 esac
14432 done
14433
e8482f24 14434 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
14435
14436 # Do not complain, so a configure script can configure whichever
14437 # parts of a large source tree are present.
14438 if test ! -d $srcdir/$ac_config_dir; then
14439 continue
14440 fi
14441
14442 echo configuring in $ac_config_dir
14443
14444 case "$srcdir" in
14445 .) ;;
14446 *)
14447 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
14448 else
14449 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
14450 fi
14451 ;;
14452 esac
14453
14454 ac_popdir=`pwd`
14455 cd $ac_config_dir
14456
14457 # A "../" for each directory in /$ac_config_dir.
14458 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
14459
14460 case "$srcdir" in
14461 .) # No --srcdir option. We are building in place.
14462 ac_sub_srcdir=$srcdir ;;
14463 /*) # Absolute path.
14464 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
14465 *) # Relative path.
14466 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
14467 esac
14468
14469 # Check for guested configure; otherwise get Cygnus style configure.
14470 if test -f $ac_sub_srcdir/configure; then
14471 ac_sub_configure=$ac_sub_srcdir/configure
14472 elif test -f $ac_sub_srcdir/configure.in; then
14473 ac_sub_configure=$ac_configure
14474 else
14475 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
14476 ac_sub_configure=
14477 fi
14478
14479 # The recursion is here.
14480 if test -n "$ac_sub_configure"; then
14481
14482 # Make the cache file name correct relative to the subdirectory.
14483 case "$cache_file" in
14484 /*) ac_sub_cache_file=$cache_file ;;
14485 *) # Relative path.
14486 ac_sub_cache_file="$ac_dots$cache_file" ;;
14487 esac
14488 case "$ac_given_INSTALL" in
14489 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14490 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14491 esac
14492
14493 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
14494 # The eval makes quoting arguments work.
14495 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
14496 then :
14497 else
14498 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
14499 fi
14500 fi
14501
14502 cd $ac_popdir
14503 done
14504fi
14505
10f2d63a 14506