]> git.saurik.com Git - wxWidgets.git/blame - configure
checks for time functions added
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
10f2d63a
VZ
36
37
38
39
40# Guess values for system-dependent variables and create Makefiles.
41# Generated automatically using autoconf version 2.13
42# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
43#
44# This configure script is free software; the Free Software Foundation
45# gives unlimited permission to copy, distribute and modify it.
46
47# Defaults:
48ac_help=
49ac_default_prefix=/usr/local
50# Any additions from configure.in:
51ac_help="$ac_help
52--enable-gui use GUI classes"
53ac_help="$ac_help
54 --with-gtk use GTK+"
55ac_help="$ac_help
56 --with-motif use Motif/Lesstif"
57ac_help="$ac_help
58 --with-wine use WINE"
59ac_help="$ac_help
60 --with-cygwin use Cygwin for MS-Windows"
61ac_help="$ac_help
62 --with-mingw use GCC Minimal MS-Windows"
63ac_help="$ac_help
64 --with-gtk-prefix=PFX Prefix where GTK is installed"
65ac_help="$ac_help
66 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
67ac_help="$ac_help
68--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
69ac_help="$ac_help
70--with-zlib use zlib for LZW compression"
71ac_help="$ac_help
72--with-libpng use libpng (PNG image format)"
73ac_help="$ac_help
74--with-libjpeg use libjpeg (JPEG file format)"
75ac_help="$ac_help
76--with-opengl use OpenGL (or Mesa)"
77ac_help="$ac_help
78--with-odbc use the IODBC and wxODBC classes"
79ac_help="$ac_help
80--enable-shared create shared library code"
81ac_help="$ac_help
82--enable-optimise create optimised code"
83ac_help="$ac_help
84--enable-debug same as debug_flag and debug_info"
85ac_help="$ac_help
86--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
87ac_help="$ac_help
88--enable-debug_info create code with debugging information"
89ac_help="$ac_help
90--enable-debug_gdb create code with extra GDB debugging information"
91ac_help="$ac_help
92--enable-debug_cntxt use wxDebugContext"
93ac_help="$ac_help
94--enable-mem_tracing create code with memory tracing"
95ac_help="$ac_help
96--enable-profile create code with profiling information"
97ac_help="$ac_help
98--enable-no_rtti create code without RTTI information"
99ac_help="$ac_help
100--enable-no_exceptions create code without exceptions information"
101ac_help="$ac_help
102--enable-permissive compile code disregarding strict ANSI"
103ac_help="$ac_help
104--enable-no_deps create code without dependency information"
105ac_help="$ac_help
106--enable-intl use internationalization system"
107ac_help="$ac_help
108--enable-config use wxConfig (and derived) classes"
109ac_help="$ac_help
110--enable-sockets use socket/network classes"
111ac_help="$ac_help
112--enable-dialupman use dialup network classes"
113ac_help="$ac_help
114--enable-ipc use interprocess communication (wxSocket etc.)"
115ac_help="$ac_help
116--enable-apple_ieee use the Apple IEEE codec"
117ac_help="$ac_help
118--enable-timedate use date/time classes"
119ac_help="$ac_help
120--enable-wave use wxWave class"
121ac_help="$ac_help
122--enable-fraction use wxFraction class"
123ac_help="$ac_help
124--enable-dynlib use wxLibrary class for DLL loading"
125ac_help="$ac_help
126--enable-longlong use wxLongLong class"
127ac_help="$ac_help
128--enable-log use logging system"
129ac_help="$ac_help
130--enable-streams use wxStream etc classes"
131ac_help="$ac_help
132--enable-file use wxFile classes"
133ac_help="$ac_help
134--enable-textfile use wxTextFile classes"
135ac_help="$ac_help
136--enable-unicode compile wxString with Unicode support"
137ac_help="$ac_help
138--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
139ac_help="$ac_help
140--enable-wxprintfv use wxWindows implementation of vprintf()"
141ac_help="$ac_help
142--enable-joystick compile in joystick support (Linux only)"
143ac_help="$ac_help
144--enable-std_iostreams use standard C++ stream classes"
145ac_help="$ac_help
146--enable-fs_inet use virtual HTTP/FTP filesystems"
147ac_help="$ac_help
148--enable-fs_zip use virtual ZIP filesystems"
149ac_help="$ac_help
150--enable-zipstream use wxZipInputStream"
151ac_help="$ac_help
152--enable-threads use threads"
153ac_help="$ac_help
154--enable-serial use class serialization"
155ac_help="$ac_help
156--enable-docview use document view architecture"
157ac_help="$ac_help
158--enable-help use help (using external browser at present)"
159ac_help="$ac_help
160--enable-constraints use layout-constraints system"
161ac_help="$ac_help
162--enable-printarch use printing architecture"
163ac_help="$ac_help
164--enable-mdi use multiple document interface architecture"
165ac_help="$ac_help
166--enable-postscript use wxPostscriptDC device context (default for gtk+)"
167ac_help="$ac_help
168--enable-prologio use Prolog IO library"
169ac_help="$ac_help
170--enable-resources use wxWindows resources"
171ac_help="$ac_help
172--enable-xresources use X resources for save (default for gtk+)"
173ac_help="$ac_help
174--enable-clipboard use wxClipboard classes"
175ac_help="$ac_help
176--enable-dnd use Drag'n'Drop classes"
177ac_help="$ac_help
178--enable-wxtree make wxTree library"
179ac_help="$ac_help
180--enable-controls use all usual controls"
181ac_help="$ac_help
182--enable-accel use accelerators"
183ac_help="$ac_help
184--enable-caret use wxCaret class"
185ac_help="$ac_help
186--enable-bmpbutton use wxBitmapButton class"
187ac_help="$ac_help
188--enable-checkbox use wxCheckBox class"
189ac_help="$ac_help
190--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
191ac_help="$ac_help
192--enable-choice use wxChoice class"
193ac_help="$ac_help
194--enable-combobox use wxComboBox classes"
195ac_help="$ac_help
196--enable-gauge use wxGauge class"
197ac_help="$ac_help
198--enable-grid use wxGrid class"
199ac_help="$ac_help
200--enable-newgrid use new wxGrid class"
201ac_help="$ac_help
202--enable-imaglist use wxImageList class"
203ac_help="$ac_help
204--enable-listbox use wxListBox class"
205ac_help="$ac_help
206--enable-listctrl use wxListCtrl class"
207ac_help="$ac_help
208--enable-notebook use wxNotebook class"
209ac_help="$ac_help
210--enable-radiobox use wxRadioBox class"
211ac_help="$ac_help
212--enable-radiobtn use wxRadioButton class"
213ac_help="$ac_help
214--enable-sash use wxSashWindow class"
215ac_help="$ac_help
216--enable-scrollbar use wxScrollBar class and scrollable windows"
217ac_help="$ac_help
218--enable-slider use wxSlider class"
219ac_help="$ac_help
220--enable-spinbtn use wxSpinButton class"
221ac_help="$ac_help
222--enable-splitter use wxSplitterWindow class"
223ac_help="$ac_help
224--enable-statbmp use wxStaticBitmap class"
225ac_help="$ac_help
226--enable-statbox use wxStaticBox class"
227ac_help="$ac_help
228--enable-statline use wxStaticLine class"
229ac_help="$ac_help
230--enable-statusbar use wxStatusBar class"
231ac_help="$ac_help
232--enable-tabdialog use wxTabControl class"
233ac_help="$ac_help
234--enable-toolbar use wxToolBar class"
235ac_help="$ac_help
236--enable-treectrl use wxTreeCtrl class"
237ac_help="$ac_help
238--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
239ac_help="$ac_help
240--enable-dirdlg use wxDirDialog"
241ac_help="$ac_help
242--enable-textdlg use wxTextDialog"
243ac_help="$ac_help
244--enable-tipdlg use startup tips"
245ac_help="$ac_help
246--enable-progressdlg use wxProgressDialog"
247ac_help="$ac_help
248--enable-miniframe use wxMiniFrame class"
249ac_help="$ac_help
250--enable-html use wxHTML sub-library"
251ac_help="$ac_help
252--enable-tooltips use wxToolTip class"
253ac_help="$ac_help
254--enable-splines use spline drawing code"
255ac_help="$ac_help
256--enable-validators use wxValidator and derived classes"
257ac_help="$ac_help
258--enable-busyinfo use wxBusyInfo"
259ac_help="$ac_help
260--enable-gif use gif images (GIF file format)"
261ac_help="$ac_help
262--enable-pcx use pcx images (PCX file format)"
263ac_help="$ac_help
264--enable-pnm use pnm images (PNM file format)"
265
266# Initialize some variables set by options.
267# The variables have the same names as the options, with
268# dashes changed to underlines.
269build=NONE
270cache_file=./config.cache
271exec_prefix=NONE
272host=NONE
273no_create=
274nonopt=NONE
275no_recursion=
276prefix=NONE
277program_prefix=NONE
278program_suffix=NONE
279program_transform_name=s,x,x,
280silent=
281site=
282srcdir=
283target=NONE
284verbose=
285x_includes=NONE
286x_libraries=NONE
287bindir='${exec_prefix}/bin'
288sbindir='${exec_prefix}/sbin'
289libexecdir='${exec_prefix}/libexec'
290datadir='${prefix}/share'
291sysconfdir='${prefix}/etc'
292sharedstatedir='${prefix}/com'
293localstatedir='${prefix}/var'
294libdir='${exec_prefix}/lib'
295includedir='${prefix}/include'
296oldincludedir='/usr/include'
297infodir='${prefix}/info'
298mandir='${prefix}/man'
299
300# Initialize some other variables.
301subdirs=
302MFLAGS= MAKEFLAGS=
303SHELL=${CONFIG_SHELL-/bin/sh}
304# Maximum number of lines to put in a shell here document.
305ac_max_here_lines=12
306
307ac_prev=
308for ac_option
309do
310
311 # If the previous option needs an argument, assign it.
312 if test -n "$ac_prev"; then
313 eval "$ac_prev=\$ac_option"
314 ac_prev=
315 continue
316 fi
317
318 case "$ac_option" in
319 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
320 *) ac_optarg= ;;
321 esac
322
323 # Accept the important Cygnus configure options, so we can diagnose typos.
324
325 case "$ac_option" in
326
327 -bindir | --bindir | --bindi | --bind | --bin | --bi)
328 ac_prev=bindir ;;
329 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
330 bindir="$ac_optarg" ;;
331
332 -build | --build | --buil | --bui | --bu)
333 ac_prev=build ;;
334 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
335 build="$ac_optarg" ;;
336
337 -cache-file | --cache-file | --cache-fil | --cache-fi \
338 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
339 ac_prev=cache_file ;;
340 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
341 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
342 cache_file="$ac_optarg" ;;
343
344 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
345 ac_prev=datadir ;;
346 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
347 | --da=*)
348 datadir="$ac_optarg" ;;
349
350 -disable-* | --disable-*)
351 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
352 # Reject names that are not valid shell variable names.
353 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
354 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
355 fi
356 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
357 eval "enable_${ac_feature}=no" ;;
358
359 -enable-* | --enable-*)
360 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
363 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
364 fi
365 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
366 case "$ac_option" in
367 *=*) ;;
368 *) ac_optarg=yes ;;
369 esac
370 eval "enable_${ac_feature}='$ac_optarg'" ;;
371
372 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
373 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
374 | --exec | --exe | --ex)
375 ac_prev=exec_prefix ;;
376 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
377 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
378 | --exec=* | --exe=* | --ex=*)
379 exec_prefix="$ac_optarg" ;;
380
381 -gas | --gas | --ga | --g)
382 # Obsolete; use --with-gas.
383 with_gas=yes ;;
384
385 -help | --help | --hel | --he)
386 # Omit some internal or obsolete options to make the list less imposing.
387 # This message is too long to be a string in the A/UX 3.1 sh.
388 cat << EOF
389Usage: configure [options] [host]
390Options: [defaults in brackets after descriptions]
391Configuration:
392 --cache-file=FILE cache test results in FILE
393 --help print this message
394 --no-create do not create output files
395 --quiet, --silent do not print \`checking...' messages
396 --version print the version of autoconf that created configure
397Directory and file names:
398 --prefix=PREFIX install architecture-independent files in PREFIX
399 [$ac_default_prefix]
400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
401 [same as prefix]
402 --bindir=DIR user executables in DIR [EPREFIX/bin]
403 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
404 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
405 --datadir=DIR read-only architecture-independent data in DIR
406 [PREFIX/share]
407 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
408 --sharedstatedir=DIR modifiable architecture-independent data in DIR
409 [PREFIX/com]
410 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
411 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
412 --includedir=DIR C header files in DIR [PREFIX/include]
413 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
414 --infodir=DIR info documentation in DIR [PREFIX/info]
415 --mandir=DIR man documentation in DIR [PREFIX/man]
416 --srcdir=DIR find the sources in DIR [configure dir or ..]
417 --program-prefix=PREFIX prepend PREFIX to installed program names
418 --program-suffix=SUFFIX append SUFFIX to installed program names
419 --program-transform-name=PROGRAM
420 run sed PROGRAM on installed program names
421EOF
422 cat << EOF
423Host type:
424 --build=BUILD configure for building on BUILD [BUILD=HOST]
425 --host=HOST configure for HOST [guessed]
426 --target=TARGET configure for TARGET [TARGET=HOST]
427Features and packages:
428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
432 --x-includes=DIR X include files are in DIR
433 --x-libraries=DIR X library files are in DIR
434EOF
435 if test -n "$ac_help"; then
436 echo "--enable and --with options recognized:$ac_help"
437 fi
438 exit 0 ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host="$ac_optarg" ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir="$ac_optarg" ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir="$ac_optarg" ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir="$ac_optarg" ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir="$ac_optarg" ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir="$ac_optarg" ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir="$ac_optarg" ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir="$ac_optarg" ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix="$ac_optarg" ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix="$ac_optarg" ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix="$ac_optarg" ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name="$ac_optarg" ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir="$ac_optarg" ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir="$ac_optarg" ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site="$ac_optarg" ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir="$ac_optarg" ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir="$ac_optarg" ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target="$ac_optarg" ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers)
587 echo "configure generated by autoconf version 2.13"
588 exit 0 ;;
589
590 -with-* | --with-*)
591 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
592 # Reject names that are not valid shell variable names.
593 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
594 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
595 fi
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case "$ac_option" in
598 *=*) ;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_${ac_package}='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
605 # Reject names that are not valid shell variable names.
606 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
607 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
608 fi
609 ac_package=`echo $ac_package| sed 's/-/_/g'`
610 eval "with_${ac_package}=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes="$ac_optarg" ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries="$ac_optarg" ;;
629
630 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
631 ;;
632
633 *)
634 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
635 echo "configure: warning: $ac_option: invalid host type" 1>&2
636 fi
637 if test "x$nonopt" != xNONE; then
638 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
639 fi
640 nonopt="$ac_option"
641 ;;
642
643 esac
644done
645
646if test -n "$ac_prev"; then
647 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
648fi
649
650trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
651
652# File descriptor usage:
653# 0 standard input
654# 1 file creation
655# 2 errors and warnings
656# 3 some systems may open it to /dev/tty
657# 4 used on the Kubota Titan
658# 6 checking for... messages and results
659# 5 compiler messages saved in config.log
660if test "$silent" = yes; then
661 exec 6>/dev/null
662else
663 exec 6>&1
664fi
665exec 5>./config.log
666
667echo "\
668This file contains any messages produced by compilers while
669running configure, to aid debugging if configure makes a mistake.
670" 1>&5
671
672# Strip out --no-create and --no-recursion so they do not pile up.
673# Also quote any args containing shell metacharacters.
674ac_configure_args=
675for ac_arg
676do
677 case "$ac_arg" in
678 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
679 | --no-cr | --no-c) ;;
680 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
681 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
682 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
683 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
684 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
685 esac
686done
687
688# NLS nuisances.
689# Only set these to C if already set. These must not be set unconditionally
690# because not all systems understand e.g. LANG=C (notably SCO).
691# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
692# Non-C LC_CTYPE values break the ctype check.
693if test "${LANG+set}" = set; then LANG=C; export LANG; fi
694if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
695if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
696if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
697
698# confdefs.h avoids OS command line length limits that DEFS can exceed.
699rm -rf conftest* confdefs.h
700# AIX cpp loses on an empty file, so make sure it contains at least a newline.
701echo > confdefs.h
702
703# A filename unique to this package, relative to the directory that
704# configure is in, which we can look for to find out if srcdir is correct.
705ac_unique_file=wx-config.in
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_prog=$0
712 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
713 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
714 srcdir=$ac_confdir
715 if test ! -r $srcdir/$ac_unique_file; then
716 srcdir=..
717 fi
718else
719 ac_srcdir_defaulted=no
720fi
721if test ! -r $srcdir/$ac_unique_file; then
722 if test "$ac_srcdir_defaulted" = yes; then
723 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
724 else
725 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
726 fi
727fi
728srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
729
730# Prefer explicitly selected file to automatically selected ones.
731if test -z "$CONFIG_SITE"; then
732 if test "x$prefix" != xNONE; then
733 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
734 else
735 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
736 fi
737fi
738for ac_site_file in $CONFIG_SITE; do
739 if test -r "$ac_site_file"; then
740 echo "loading site script $ac_site_file"
741 . "$ac_site_file"
742 fi
743done
744
745if test -r "$cache_file"; then
746 echo "loading cache $cache_file"
747 . $cache_file
748else
749 echo "creating cache $cache_file"
750 > $cache_file
751fi
752
753ac_ext=c
754# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
755ac_cpp='$CPP $CPPFLAGS'
756ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
757ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
758cross_compiling=$ac_cv_prog_cc_cross
759
760ac_exeext=
761ac_objext=o
762if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
763 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
764 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
765 ac_n= ac_c='
766' ac_t=' '
767 else
768 ac_n=-n ac_c= ac_t=
769 fi
770else
771 ac_n= ac_c='\c' ac_t=
772fi
773
774
775
776ac_aux_dir=
777for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
778 if test -f $ac_dir/install-sh; then
779 ac_aux_dir=$ac_dir
780 ac_install_sh="$ac_aux_dir/install-sh -c"
781 break
782 elif test -f $ac_dir/install.sh; then
783 ac_aux_dir=$ac_dir
784 ac_install_sh="$ac_aux_dir/install.sh -c"
785 break
786 fi
787done
788if test -z "$ac_aux_dir"; then
789 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
790fi
791ac_config_guess=$ac_aux_dir/config.guess
792ac_config_sub=$ac_aux_dir/config.sub
793ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
794
795
796# Do some error checking and defaulting for the host and target type.
797# The inputs are:
798# configure --host=HOST --target=TARGET --build=BUILD NONOPT
799#
800# The rules are:
801# 1. You are not allowed to specify --host, --target, and nonopt at the
802# same time.
803# 2. Host defaults to nonopt.
804# 3. If nonopt is not specified, then host defaults to the current host,
805# as determined by config.guess.
806# 4. Target and build default to nonopt.
807# 5. If nonopt is not specified, then target and build default to host.
808
809# The aliases save the names the user supplied, while $host etc.
810# will get canonicalized.
811case $host---$target---$nonopt in
812NONE---*---* | *---NONE---* | *---*---NONE) ;;
813*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
814esac
815
816
817# Make sure we can run config.sub.
818if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
819else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
820fi
821
822echo $ac_n "checking host system type""... $ac_c" 1>&6
f512f90a 823echo "configure:824: checking host system type" >&5
10f2d63a
VZ
824
825host_alias=$host
826case "$host_alias" in
827NONE)
828 case $nonopt in
829 NONE)
830 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
831 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
832 fi ;;
833 *) host_alias=$nonopt ;;
834 esac ;;
835esac
836
837host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
838host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
839host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
840host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
841echo "$ac_t""$host" 1>&6
842
843echo $ac_n "checking target system type""... $ac_c" 1>&6
f512f90a 844echo "configure:845: checking target system type" >&5
10f2d63a
VZ
845
846target_alias=$target
847case "$target_alias" in
848NONE)
849 case $nonopt in
850 NONE) target_alias=$host_alias ;;
851 *) target_alias=$nonopt ;;
852 esac ;;
853esac
854
855target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
856target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
857target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
858target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
859echo "$ac_t""$target" 1>&6
860
861echo $ac_n "checking build system type""... $ac_c" 1>&6
f512f90a 862echo "configure:863: checking build system type" >&5
10f2d63a
VZ
863
864build_alias=$build
865case "$build_alias" in
866NONE)
867 case $nonopt in
868 NONE) build_alias=$host_alias ;;
869 *) build_alias=$nonopt ;;
870 esac ;;
871esac
872
873build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
874build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
875build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
876build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
877echo "$ac_t""$build" 1>&6
878
879test "$host_alias" != "$target_alias" &&
880 test "$program_prefix$program_suffix$program_transform_name" = \
881 NONENONEs,x,x, &&
882 program_prefix=${target_alias}-
883
884
885
886WX_MAJOR_VERSION_NUMBER=2
887WX_MINOR_VERSION_NUMBER=1
888WX_RELEASE_NUMBER=10
889
890WX_INTERFACE_AGE=0
891WX_BINARY_AGE=0
892
893WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
894
895WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
896WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
897WX_REVISION=$WX_INTERFACE_AGE
898WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
899
900
901USE_UNIX=1
902USE_WIN32=0
903USE_LINUX=
904USE_SGI=
905USE_HPUX=
906USE_SYSV=
907USE_SVR4=
908USE_AIX=
909USE_SUN=
910USE_SOLARIS=
911USE_SUNOS=
912USE_ALPHA=
913USE_OSF=
914USE_BSD=
915USE_FREEBSD=
916USE_VMS=
917USE_ULTRIX=
918USE_CYGWIN=
919USE_MINGW=
920USE_DATA_GENERAL=
921
922ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE"
923
924DEFAULT_wxUSE_GTK=0
925DEFAULT_wxUSE_MOTIF=0
926DEFAULT_wxUSE_MSW=0
927DEFAULT_wxUSE_WINE=0
928
929DEFAULT_DEFAULT_wxUSE_GTK=0
930DEFAULT_DEFAULT_wxUSE_MOTIF=0
931DEFAULT_DEFAULT_wxUSE_MSW=0
932DEFAULT_DEFAULT_wxUSE_WINE=0
933
934case "${host}" in
935 *-hp-hpux* )
936 USE_HPUX=1
937 DEFAULT_DEFAULT_wxUSE_MOTIF=1
938 cat >> confdefs.h <<\EOF
939#define __HPUX__ 1
940EOF
941
942 ;;
943 *-*-linux* )
944 USE_LINUX=1
945 cat >> confdefs.h <<\EOF
946#define __LINUX__ 1
947EOF
948
949 TMP=`uname -m`
950 if test "x$TMP" = "xalpha"; then
951 USE_ALPHA=1
952 cat >> confdefs.h <<\EOF
953#define __ALPHA__ 1
954EOF
955
956 fi
957 DEFAULT_DEFAULT_wxUSE_GTK=1
958 ;;
959 *-*-irix5* | *-*-irix6* )
960 USE_SGI=1
961 USE_SVR4=1
962 cat >> confdefs.h <<\EOF
963#define __SGI__ 1
964EOF
965
966 cat >> confdefs.h <<\EOF
967#define __SVR4__ 1
968EOF
969
970 DEFAULT_DEFAULT_wxUSE_MOTIF=1
971 ;;
972 *-*-solaris2* )
973 USE_SUN=1
974 USE_SOLARIS=1
975 USE_SVR4=1
976 cat >> confdefs.h <<\EOF
977#define __SUN__ 1
978EOF
979
980 cat >> confdefs.h <<\EOF
981#define __SOLARIS__ 1
982EOF
983
984 cat >> confdefs.h <<\EOF
985#define __SVR4__ 1
986EOF
987
988 DEFAULT_DEFAULT_wxUSE_MOTIF=1
989 ;;
990 *-*-sunos4* )
991 USE_SUN=1
992 USE_SUNOS=1
993 USE_BSD=1
994 cat >> confdefs.h <<\EOF
995#define __SUN__ 1
996EOF
997
998 cat >> confdefs.h <<\EOF
999#define __SUNOS__ 1
1000EOF
1001
1002 cat >> confdefs.h <<\EOF
1003#define __BSD__ 1
1004EOF
1005
1006 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1007 ;;
1008 *-*-freebsd* | *-*-netbsd*)
1009 USE_BSD=1
1010 USE_FREEBSD=1
1011 cat >> confdefs.h <<\EOF
1012#define __FREEBSD__ 1
1013EOF
1014
1015 cat >> confdefs.h <<\EOF
1016#define __BSD__ 1
1017EOF
1018
1019 DEFAULT_DEFAULT_wxUSE_GTK=1
1020 ;;
1021 *-*-osf* )
1022 USE_ALPHA=1
1023 USE_OSF=1
1024 cat >> confdefs.h <<\EOF
1025#define __ALPHA__ 1
1026EOF
1027
1028 cat >> confdefs.h <<\EOF
1029#define __OSF__ 1
1030EOF
1031
1032 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1033 ;;
1034 *-*-dgux5* )
1035 USE_ALPHA=1
1036 USE_SVR4=1
1037 cat >> confdefs.h <<\EOF
1038#define __ALPHA__ 1
1039EOF
1040
1041 cat >> confdefs.h <<\EOF
1042#define __SVR4__ 1
1043EOF
1044
1045 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1046 ;;
1047 *-*-sysv5* )
1048 USE_SYSV=1
1049 USE_SVR4=1
1050 cat >> confdefs.h <<\EOF
1051#define __SYSV__ 1
1052EOF
1053
1054 cat >> confdefs.h <<\EOF
1055#define __SVR4__ 1
1056EOF
1057
1058 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1059 ;;
1060 *-*-aix* )
1061 USE_AIX=1
1062 USE_SYSV=1
1063 USE_SVR4=1
1064 cat >> confdefs.h <<\EOF
1065#define __AIX__ 1
1066EOF
1067
1068 cat >> confdefs.h <<\EOF
1069#define __SYSV__ 1
1070EOF
1071
1072 cat >> confdefs.h <<\EOF
1073#define __SVR4__ 1
1074EOF
1075
1076 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1077 ;;
1078
1079 *-*-cygwin32* )
1080 USE_UNIX=0
1081 USE_WIN32=1
1082 cat >> confdefs.h <<\EOF
1083#define __WIN32__ 1
1084EOF
1085
1086 cat >> confdefs.h <<\EOF
1087#define __WIN95__ 1
1088EOF
1089
1090 cat >> confdefs.h <<\EOF
1091#define __WINDOWS__ 1
1092EOF
1093
1094 cat >> confdefs.h <<\EOF
1095#define __GNUWIN32__ 1
1096EOF
1097
1098 cat >> confdefs.h <<\EOF
1099#define STRICT 1
1100EOF
1101
1102 cat >> confdefs.h <<\EOF
1103#define WINVER 0x0400
1104EOF
1105
1106 DEFAULT_DEFAULT_wxUSE_MSW=1
1107 ;;
1108 *-*-mingw32* )
1109 USE_UNIX=0
1110 USE_WIN32=1
1111 cat >> confdefs.h <<\EOF
1112#define __WIN32__ 1
1113EOF
1114
1115 cat >> confdefs.h <<\EOF
1116#define __WIN95__ 1
1117EOF
1118
1119 cat >> confdefs.h <<\EOF
1120#define __WINDOWS__ 1
1121EOF
1122
1123 cat >> confdefs.h <<\EOF
1124#define __GNUWIN32__ 1
1125EOF
1126
1127 cat >> confdefs.h <<\EOF
1128#define STRICT 1
1129EOF
1130
1131 cat >> confdefs.h <<\EOF
1132#define WINVER 0x0400
1133EOF
1134
1135 DEFAULT_DEFAULT_wxUSE_MSW=1
1136 ;;
1137
1138 *-pc-os2_emx )
1139 cat >> confdefs.h <<\EOF
1140#define __EMX__ 1
1141EOF
1142
1143 ;;
1144
1145 *)
1146 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1147esac
1148
1149if test "$USE_UNIX" = 1 ; then
1150 wxUSE_UNIX=yes
1151 cat >> confdefs.h <<\EOF
1152#define __UNIX__ 1
1153EOF
1154
1155 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1156 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1157fi
1158
1159if test "$USE_LINUX" = 1; then
1160 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
f512f90a 1161echo "configure:1162: checking for gettext in -lc" >&5
10f2d63a
VZ
1162ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1163if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1165else
1166 ac_save_LIBS="$LIBS"
1167LIBS="-lc $LIBS"
1168cat > conftest.$ac_ext <<EOF
f512f90a 1169#line 1170 "configure"
10f2d63a
VZ
1170#include "confdefs.h"
1171/* Override any gcc2 internal prototype to avoid an error. */
1172/* We use char because int might match the return type of a gcc2
1173 builtin and then its argument prototype would still apply. */
1174char gettext();
1175
1176int main() {
1177gettext()
1178; return 0; }
1179EOF
f512f90a 1180if { (eval echo configure:1181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1181 rm -rf conftest*
1182 eval "ac_cv_lib_$ac_lib_var=yes"
1183else
1184 echo "configure: failed program was:" >&5
1185 cat conftest.$ac_ext >&5
1186 rm -rf conftest*
1187 eval "ac_cv_lib_$ac_lib_var=no"
1188fi
1189rm -f conftest*
1190LIBS="$ac_save_LIBS"
1191
1192fi
1193if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1194 echo "$ac_t""yes" 1>&6
1195 cat >> confdefs.h <<\EOF
1196#define wxHAVE_GLIBC2 1
1197EOF
1198
1199else
1200 echo "$ac_t""no" 1>&6
1201fi
1202
1203fi
1204
1205
1206
1207
1208 wx_arg_cache_file="configarg.cache"
1209 echo "loading argument cache $wx_arg_cache_file"
1210 rm -f ${wx_arg_cache_file}.tmp
1211 touch ${wx_arg_cache_file}.tmp
1212 touch ${wx_arg_cache_file}
1213
1214
1215DEBUG_CONFIGURE=0
1216if test $DEBUG_CONFIGURE = 1; then
1217 DEFAULT_wxUSE_THREADS=yes
1218
1219 DEFAULT_wxUSE_SHARED=yes
1220 DEFAULT_wxUSE_OPTIMISE=yes
1221 DEFAULT_wxUSE_PROFILE=no
1222 DEFAULT_wxUSE_NO_DEPS=no
1223 DEFAULT_wxUSE_NO_RTTI=no
1224 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1225 DEFAULT_wxUSE_PERMISSIVE=no
1226 DEFAULT_wxUSE_DEBUG_FLAG=yes
1227 DEFAULT_wxUSE_DEBUG_INFO=yes
1228 DEFAULT_wxUSE_DEBUG_GDB=yes
1229 DEFAULT_wxUSE_MEM_TRACING=no
1230 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1231 DEFAULT_wxUSE_DMALLOC=no
1232 DEFAULT_wxUSE_APPLE_IEEE=no
1233
1234 DEFAULT_wxUSE_LOG=yes
1235
1236 DEFAULT_wxUSE_GUI=yes
1237
1238 DEFAULT_wxUSE_ZLIB=no
1239 DEFAULT_wxUSE_LIBPNG=no
1240 DEFAULT_wxUSE_LIBJPEG=no
1241 DEFAULT_wxUSE_ODBC=no
1242
1243 DEFAULT_wxUSE_STD_IOSTREAM=no
1244 DEFAULT_wxUSE_FILE=no
1245 DEFAULT_wxUSE_TEXTFILE=no
1246 DEFAULT_wxUSE_TIMEDATE=no
1247 DEFAULT_wxUSE_WAVE=no
1248 DEFAULT_wxUSE_INTL=no
1249 DEFAULT_wxUSE_CONFIG=no
1250 DEFAULT_wxUSE_STREAMS=no
1251 DEFAULT_wxUSE_SOCKETS=no
1252 DEFAULT_wxUSE_DIALUP_MANAGER=no
1253 DEFAULT_wxUSE_SERIAL=no
1254 DEFAULT_wxUSE_JOYSTICK=no
1255 DEFAULT_wxUSE_DYNLIB_CLASS=no
1256 DEFAULT_wxUSE_LONGLONG=no
1257
1258 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1259 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1260 DEFAULT_wxUSE_POSTSCRIPT=no
1261
1262 DEFAULT_wxUSE_X_RESOURCES=no
1263 DEFAULT_wxUSE_CLIPBOARD=no
1264 DEFAULT_wxUSE_TOOLTIPS=no
1265 DEFAULT_wxUSE_DRAG_AND_DROP=no
1266 DEFAULT_wxUSE_SPLINES=no
1267
1268 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1269 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1270 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1271
1272 DEFAULT_wxUSE_PROLOGIO=no
1273 DEFAULT_wxUSE_RESOURCES=no
1274 DEFAULT_wxUSE_CONSTRAINTS=no
1275 DEFAULT_wxUSE_IPC=no
1276 DEFAULT_wxUSE_HELP=no
1277 DEFAULT_wxUSE_WXTREE=no
1278 DEFAULT_wxUSE_METAFILE=no
1279
1280 DEFAULT_wxUSE_COMMONDLGS=no
1281 DEFAULT_wxUSE_DIRDLG=no
1282 DEFAULT_wxUSE_TEXTDLG=no
1283 DEFAULT_wxUSE_STARTUP_TIPS=no
1284 DEFAULT_wxUSE_PROGRESSDLG=no
1285 DEFAULT_wxUSE_MINIFRAME=no
1286 DEFAULT_wxUSE_HTML=no
1287 DEFAULT_wxUSE_FS_INET=no
1288 DEFAULT_wxUSE_FS_ZIP=no
1289 DEFAULT_wxUSE_BUSYINFO=no
1290 DEFAULT_wxUSE_ZIPSTREAM=no
1291 DEFAULT_wxUSE_VALIDATORS=yes
1292
1293 DEFAULT_wxUSE_ACCEL=no
1294 DEFAULT_wxUSE_CARET=no
1295 DEFAULT_wxUSE_BMPBUTTON=no
1296 DEFAULT_wxUSE_CHECKBOX=no
1297 DEFAULT_wxUSE_CHECKLST=no
1298 DEFAULT_wxUSE_CHOICE=yes
1299 DEFAULT_wxUSE_COMBOBOX=no
1300 DEFAULT_wxUSE_GAUGE=no
1301 DEFAULT_wxUSE_GRID=no
1302 DEFAULT_wxUSE_NEW_GRID=no
1303 DEFAULT_wxUSE_IMAGLIST=no
1304 DEFAULT_wxUSE_LISTBOX=no
1305 DEFAULT_wxUSE_LISTCTRL=no
1306 DEFAULT_wxUSE_NOTEBOOK=no
1307 DEFAULT_wxUSE_RADIOBOX=no
1308 DEFAULT_wxUSE_RADIOBTN=no
1309 DEFAULT_wxUSE_SASH=no
1310 DEFAULT_wxUSE_SCROLLBAR=no
1311 DEFAULT_wxUSE_SLIDER=no
1312 DEFAULT_wxUSE_SPINBTN=no
1313 DEFAULT_wxUSE_SPLITTER=no
1314 DEFAULT_wxUSE_STATBMP=no
1315 DEFAULT_wxUSE_STATBOX=no
1316 DEFAULT_wxUSE_STATLINE=no
1317 DEFAULT_wxUSE_STATUSBAR=yes
1318 DEFAULT_wxUSE_TABDIALOG=no
1319 DEFAULT_wxUSE_TOOLBAR=no
1320 DEFAULT_wxUSE_TREECTRL=no
1321
1322 DEFAULT_wxUSE_UNICODE=no
1323 DEFAULT_wxUSE_WCSRTOMBS=no
1324
1325 DEFAULT_wxUSE_GIF=no
1326 DEFAULT_wxUSE_PCX=no
1327 DEFAULT_wxUSE_PNM=no
1328else
1329 DEFAULT_wxUSE_THREADS=yes
1330
1331 DEFAULT_wxUSE_SHARED=yes
1332 DEFAULT_wxUSE_OPTIMISE=yes
1333 DEFAULT_wxUSE_PROFILE=no
1334 DEFAULT_wxUSE_NO_DEPS=no
1335 DEFAULT_wxUSE_NO_RTTI=no
1336 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1337 DEFAULT_wxUSE_PERMISSIVE=no
1338 DEFAULT_wxUSE_DEBUG_FLAG=no
1339 DEFAULT_wxUSE_DEBUG_INFO=no
1340 DEFAULT_wxUSE_DEBUG_GDB=no
1341 DEFAULT_wxUSE_MEM_TRACING=no
1342 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1343 DEFAULT_wxUSE_DMALLOC=no
1344 DEFAULT_wxUSE_APPLE_IEEE=yes
1345
1346 DEFAULT_wxUSE_LOG=yes
1347
1348 DEFAULT_wxUSE_GUI=yes
1349
1350 DEFAULT_wxUSE_ZLIB=yes
1351 DEFAULT_wxUSE_LIBPNG=yes
1352 DEFAULT_wxUSE_LIBJPEG=yes
1353 DEFAULT_wxUSE_ODBC=yes
1354
1355 DEFAULT_wxUSE_STD_IOSTREAM=no
1356 DEFAULT_wxUSE_FILE=yes
1357 DEFAULT_wxUSE_TEXTFILE=yes
1358 DEFAULT_wxUSE_TIMEDATE=yes
1359 DEFAULT_wxUSE_WAVE=no
1360 DEFAULT_wxUSE_INTL=yes
1361 DEFAULT_wxUSE_CONFIG=yes
1362 DEFAULT_wxUSE_STREAMS=yes
1363 DEFAULT_wxUSE_SOCKETS=yes
1364 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1365 DEFAULT_wxUSE_SERIAL=yes
1366 DEFAULT_wxUSE_JOYSTICK=yes
1367 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1368 DEFAULT_wxUSE_LONGLONG=no
1369
1370 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1371 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1372 DEFAULT_wxUSE_POSTSCRIPT=yes
1373
1374 DEFAULT_wxUSE_X_RESOURCES=no
1375 DEFAULT_wxUSE_CLIPBOARD=yes
1376 DEFAULT_wxUSE_TOOLTIPS=yes
1377 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1378 DEFAULT_wxUSE_SPLINES=yes
1379
1380 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1381 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1382 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1383
1384 DEFAULT_wxUSE_PROLOGIO=yes
1385 DEFAULT_wxUSE_RESOURCES=yes
1386 DEFAULT_wxUSE_CONSTRAINTS=yes
1387 DEFAULT_wxUSE_IPC=yes
1388 DEFAULT_wxUSE_HELP=yes
1389 DEFAULT_wxUSE_WXTREE=yes
1390 DEFAULT_wxUSE_METAFILE=yes
1391
1392 DEFAULT_wxUSE_COMMONDLGS=yes
1393 DEFAULT_wxUSE_DIRDLG=yes
1394 DEFAULT_wxUSE_TEXTDLG=yes
1395 DEFAULT_wxUSE_STARTUP_TIPS=yes
1396 DEFAULT_wxUSE_PROGRESSDLG=yes
1397 DEFAULT_wxUSE_MINIFRAME=yes
1398 DEFAULT_wxUSE_HTML=yes
1399 DEFAULT_wxUSE_FS_INET=yes
1400 DEFAULT_wxUSE_FS_ZIP=yes
1401 DEFAULT_wxUSE_BUSYINFO=yes
1402 DEFAULT_wxUSE_ZIPSTREAM=yes
1403 DEFAULT_wxUSE_VALIDATORS=yes
1404
1405 DEFAULT_wxUSE_ACCEL=yes
1406 DEFAULT_wxUSE_CARET=yes
1407 DEFAULT_wxUSE_BMPBUTTON=yes
1408 DEFAULT_wxUSE_CHECKBOX=yes
1409 DEFAULT_wxUSE_CHECKLST=yes
1410 DEFAULT_wxUSE_CHOICE=yes
1411 DEFAULT_wxUSE_COMBOBOX=yes
1412 DEFAULT_wxUSE_GAUGE=yes
1413 DEFAULT_wxUSE_GRID=yes
1414 DEFAULT_wxUSE_NEW_GRID=yes
1415 DEFAULT_wxUSE_IMAGLIST=yes
1416 DEFAULT_wxUSE_LISTBOX=yes
1417 DEFAULT_wxUSE_LISTCTRL=yes
1418 DEFAULT_wxUSE_NOTEBOOK=yes
1419 DEFAULT_wxUSE_RADIOBOX=yes
1420 DEFAULT_wxUSE_RADIOBTN=yes
1421 DEFAULT_wxUSE_SASH=yes
1422 DEFAULT_wxUSE_SCROLLBAR=yes
1423 DEFAULT_wxUSE_SLIDER=yes
1424 DEFAULT_wxUSE_SPINBTN=yes
1425 DEFAULT_wxUSE_SPLITTER=yes
1426 DEFAULT_wxUSE_STATBMP=yes
1427 DEFAULT_wxUSE_STATBOX=yes
1428 DEFAULT_wxUSE_STATLINE=yes
1429 DEFAULT_wxUSE_STATUSBAR=yes
1430 DEFAULT_wxUSE_TABDIALOG=no
1431 DEFAULT_wxUSE_TOOLBAR=yes
1432 DEFAULT_wxUSE_TREECTRL=yes
1433
1434 DEFAULT_wxUSE_UNICODE=no
1435 DEFAULT_wxUSE_WCSRTOMBS=no
1436
1437 DEFAULT_wxUSE_GIF=yes
1438 DEFAULT_wxUSE_PCX=yes
1439 DEFAULT_wxUSE_PNM=yes
1440fi
1441
1442
1443
1444for toolkit in `echo $ALL_TOOLKITS`; do
1445 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1446 if test "x$LINE" != x ; then
1447 has_toolkit_in_cache=1
1448 eval "DEFAULT_$LINE"
1449 eval "CACHE_$toolkit=1"
1450 fi
1451done
1452
1453
1454
1455 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
f512f90a 1456echo "configure:1457: checking "for --enable-gui"" >&5
10f2d63a
VZ
1457 no_cache=0
1458 # Check whether --enable-gui or --disable-gui was given.
1459if test "${enable_gui+set}" = set; then
1460 enableval="$enable_gui"
1461
1462 if test "$enableval" = yes; then
1463 ac_cv_use_gui='wxUSE_GUI=yes'
1464 else
1465 ac_cv_use_gui='wxUSE_GUI=no'
1466 fi
1467
1468else
1469
1470 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1471 if test "x$LINE" != x ; then
1472 eval "DEFAULT_$LINE"
1473 else
1474 no_cache=1
1475 fi
1476
1477 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1478
1479fi
1480
1481
1482 eval "$ac_cv_use_gui"
1483 if test "$no_cache" != 1; then
1484 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1485 fi
1486
1487 if test "$wxUSE_GUI" = yes; then
1488 echo "$ac_t""yes" 1>&6
1489 else
1490 echo "$ac_t""no" 1>&6
1491 fi
1492
1493
1494if test "$wxUSE_GUI" = "no"; then
1495 DEFAULT_wxUSE_ZLIB=no
1496 DEFAULT_wxUSE_LIBPNG=no
1497 DEFAULT_wxUSE_LIBJPEG=no
1498 DEFAULT_wxUSE_SOCKETS=no
1499 DEFAULT_wxUSE_JOYSTICK=no
1500 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1501 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1502 DEFAULT_wxUSE_POSTSCRIPT=no
1503 DEFAULT_wxUSE_X_RESOURCES=no
1504 DEFAULT_wxUSE_CLIPBOARD=no
1505 DEFAULT_wxUSE_TOOLTIPS=no
1506 DEFAULT_wxUSE_DRAG_AND_DROP=no
1507 DEFAULT_wxUSE_SPLINES=no
1508 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1509 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1510 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1511 DEFAULT_wxUSE_PROLOGIO=no
1512 DEFAULT_wxUSE_RESOURCES=no
1513 DEFAULT_wxUSE_CONSTRAINTS=no
1514 DEFAULT_wxUSE_IPC=no
1515 DEFAULT_wxUSE_HELP=no
1516 DEFAULT_wxUSE_WXTREE=no
1517 DEFAULT_wxUSE_METAFILE=no
1518 DEFAULT_wxUSE_COMMONDLGS=no
1519 DEFAULT_wxUSE_DIRDLG=no
1520 DEFAULT_wxUSE_TEXTDLG=no
1521 DEFAULT_wxUSE_STARTUP_TIPS=no
1522 DEFAULT_wxUSE_PROGRESSDLG=no
1523 DEFAULT_wxUSE_MINIFRAME=no
1524 DEFAULT_wxUSE_HTML=no
1525 DEFAULT_wxUSE_FS_INET=no
1526 DEFAULT_wxUSE_FS_ZIP=no
1527 DEFAULT_wxUSE_BUSYINFO=no
1528 DEFAULT_wxUSE_ZIPSTREAM=no
1529 DEFAULT_wxUSE_VALIDATORS=no
1530 DEFAULT_wxUSE_ACCEL=no
1531 DEFAULT_wxUSE_CARET=no
1532 DEFAULT_wxUSE_BMPBUTTON=no
1533 DEFAULT_wxUSE_CHECKBOX=no
1534 DEFAULT_wxUSE_CHECKLST=no
1535 DEFAULT_wxUSE_CHOICE=no
1536 DEFAULT_wxUSE_COMBOBOX=no
1537 DEFAULT_wxUSE_GAUGE=no
1538 DEFAULT_wxUSE_GRID=no
1539 DEFAULT_wxUSE_NEW_GRID=no
1540 DEFAULT_wxUSE_IMAGLIST=no
1541 DEFAULT_wxUSE_LISTBOX=no
1542 DEFAULT_wxUSE_LISTCTRL=no
1543 DEFAULT_wxUSE_NOTEBOOK=no
1544 DEFAULT_wxUSE_RADIOBOX=no
1545 DEFAULT_wxUSE_RADIOBTN=no
1546 DEFAULT_wxUSE_SASH=no
1547 DEFAULT_wxUSE_SCROLLBAR=no
1548 DEFAULT_wxUSE_SLIDER=no
1549 DEFAULT_wxUSE_SPINBTN=no
1550 DEFAULT_wxUSE_SPLITTER=no
1551 DEFAULT_wxUSE_STATBMP=no
1552 DEFAULT_wxUSE_STATBOX=no
1553 DEFAULT_wxUSE_STATLINE=no
1554 DEFAULT_wxUSE_STATUSBAR=no
1555 DEFAULT_wxUSE_TABDIALOG=no
1556 DEFAULT_wxUSE_TOOLBAR=no
1557 DEFAULT_wxUSE_TREECTRL=no
1558 DEFAULT_wxUSE_GIF=no
1559 DEFAULT_wxUSE_PCX=no
1560 DEFAULT_wxUSE_PNM=no
1561fi
1562
1563# Check whether --with-gtk or --without-gtk was given.
1564if test "${with_gtk+set}" = set; then
1565 withval="$with_gtk"
1566 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1567fi
1568
1569# Check whether --with-motif or --without-motif was given.
1570if test "${with_motif+set}" = set; then
1571 withval="$with_motif"
1572 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1573fi
1574
1575# Check whether --with-wine or --without-wine was given.
1576if test "${with_wine+set}" = set; then
1577 withval="$with_wine"
1578 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1579fi
1580
1581# Check whether --with-cygwin or --without-cygwin was given.
1582if test "${with_cygwin+set}" = set; then
1583 withval="$with_cygwin"
1584 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1585fi
1586
1587# Check whether --with-mingw or --without-mingw was given.
1588if test "${with_mingw+set}" = set; then
1589 withval="$with_mingw"
1590 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1591fi
1592
1593
1594# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1595if test "${with_gtk_prefix+set}" = set; then
1596 withval="$with_gtk_prefix"
1597 gtk_config_prefix="$withval"
1598else
1599 gtk_config_prefix=""
1600fi
1601
1602# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1603if test "${with_gtk_exec_prefix+set}" = set; then
1604 withval="$with_gtk_exec_prefix"
1605 gtk_config_exec_prefix="$withval"
1606else
1607 gtk_config_exec_prefix=""
1608fi
1609
1610
1611
1612 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
f512f90a 1613echo "configure:1614: checking "for --with-dmalloc"" >&5
10f2d63a
VZ
1614 no_cache=0
1615 # Check whether --with-dmalloc or --without-dmalloc was given.
1616if test "${with_dmalloc+set}" = set; then
1617 withval="$with_dmalloc"
1618
1619 if test "$withval" = yes; then
1620 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1621 else
1622 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1623 fi
1624
1625else
1626
1627 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1628 if test "x$LINE" != x ; then
1629 eval "DEFAULT_$LINE"
1630 else
1631 no_cache=1
1632 fi
1633
1634 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1635
1636fi
1637
1638
1639 eval "$ac_cv_use_dmalloc"
1640 if test "$no_cache" != 1; then
1641 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1642 fi
1643
1644 if test "$wxUSE_DMALLOC" = yes; then
1645 echo "$ac_t""yes" 1>&6
1646 else
1647 echo "$ac_t""no" 1>&6
1648 fi
1649
1650
1651 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
f512f90a 1652echo "configure:1653: checking "for --with-zlib"" >&5
10f2d63a
VZ
1653 no_cache=0
1654 # Check whether --with-zlib or --without-zlib was given.
1655if test "${with_zlib+set}" = set; then
1656 withval="$with_zlib"
1657
1658 if test "$withval" = yes; then
1659 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1660 else
1661 ac_cv_use_zlib='wxUSE_ZLIB=no'
1662 fi
1663
1664else
1665
1666 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1667 if test "x$LINE" != x ; then
1668 eval "DEFAULT_$LINE"
1669 else
1670 no_cache=1
1671 fi
1672
1673 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1674
1675fi
1676
1677
1678 eval "$ac_cv_use_zlib"
1679 if test "$no_cache" != 1; then
1680 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1681 fi
1682
1683 if test "$wxUSE_ZLIB" = yes; then
1684 echo "$ac_t""yes" 1>&6
1685 else
1686 echo "$ac_t""no" 1>&6
1687 fi
1688
1689
1690 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
f512f90a 1691echo "configure:1692: checking "for --with-libpng"" >&5
10f2d63a
VZ
1692 no_cache=0
1693 # Check whether --with-libpng or --without-libpng was given.
1694if test "${with_libpng+set}" = set; then
1695 withval="$with_libpng"
1696
1697 if test "$withval" = yes; then
1698 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1699 else
1700 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1701 fi
1702
1703else
1704
1705 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1706 if test "x$LINE" != x ; then
1707 eval "DEFAULT_$LINE"
1708 else
1709 no_cache=1
1710 fi
1711
1712 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1713
1714fi
1715
1716
1717 eval "$ac_cv_use_libpng"
1718 if test "$no_cache" != 1; then
1719 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1720 fi
1721
1722 if test "$wxUSE_LIBPNG" = yes; then
1723 echo "$ac_t""yes" 1>&6
1724 else
1725 echo "$ac_t""no" 1>&6
1726 fi
1727
1728
1729 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
f512f90a 1730echo "configure:1731: checking "for --with-libjpeg"" >&5
10f2d63a
VZ
1731 no_cache=0
1732 # Check whether --with-libjpeg or --without-libjpeg was given.
1733if test "${with_libjpeg+set}" = set; then
1734 withval="$with_libjpeg"
1735
1736 if test "$withval" = yes; then
1737 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1738 else
1739 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1740 fi
1741
1742else
1743
1744 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1745 if test "x$LINE" != x ; then
1746 eval "DEFAULT_$LINE"
1747 else
1748 no_cache=1
1749 fi
1750
1751 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1752
1753fi
1754
1755
1756 eval "$ac_cv_use_libjpeg"
1757 if test "$no_cache" != 1; then
1758 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1759 fi
1760
1761 if test "$wxUSE_LIBJPEG" = yes; then
1762 echo "$ac_t""yes" 1>&6
1763 else
1764 echo "$ac_t""no" 1>&6
1765 fi
1766
1767
1768 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
f512f90a 1769echo "configure:1770: checking "for --with-opengl"" >&5
10f2d63a
VZ
1770 no_cache=0
1771 # Check whether --with-opengl or --without-opengl was given.
1772if test "${with_opengl+set}" = set; then
1773 withval="$with_opengl"
1774
1775 if test "$withval" = yes; then
1776 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1777 else
1778 ac_cv_use_opengl='wxUSE_OPENGL=no'
1779 fi
1780
1781else
1782
1783 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1784 if test "x$LINE" != x ; then
1785 eval "DEFAULT_$LINE"
1786 else
1787 no_cache=1
1788 fi
1789
1790 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1791
1792fi
1793
1794
1795 eval "$ac_cv_use_opengl"
1796 if test "$no_cache" != 1; then
1797 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1798 fi
1799
1800 if test "$wxUSE_OPENGL" = yes; then
1801 echo "$ac_t""yes" 1>&6
1802 else
1803 echo "$ac_t""no" 1>&6
1804 fi
1805
1806
1807 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
f512f90a 1808echo "configure:1809: checking "for --with-odbc"" >&5
10f2d63a
VZ
1809 no_cache=0
1810 # Check whether --with-odbc or --without-odbc was given.
1811if test "${with_odbc+set}" = set; then
1812 withval="$with_odbc"
1813
1814 if test "$withval" = yes; then
1815 ac_cv_use_odbc='wxUSE_ODBC=yes'
1816 else
1817 ac_cv_use_odbc='wxUSE_ODBC=no'
1818 fi
1819
1820else
1821
1822 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1823 if test "x$LINE" != x ; then
1824 eval "DEFAULT_$LINE"
1825 else
1826 no_cache=1
1827 fi
1828
1829 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1830
1831fi
1832
1833
1834 eval "$ac_cv_use_odbc"
1835 if test "$no_cache" != 1; then
1836 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1837 fi
1838
1839 if test "$wxUSE_ODBC" = yes; then
1840 echo "$ac_t""yes" 1>&6
1841 else
1842 echo "$ac_t""no" 1>&6
1843 fi
1844
1845
1846
1847
1848
1849 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
f512f90a 1850echo "configure:1851: checking "for --enable-shared"" >&5
10f2d63a
VZ
1851 no_cache=0
1852 # Check whether --enable-shared or --disable-shared was given.
1853if test "${enable_shared+set}" = set; then
1854 enableval="$enable_shared"
1855
1856 if test "$enableval" = yes; then
1857 ac_cv_use_shared='wxUSE_SHARED=yes'
1858 else
1859 ac_cv_use_shared='wxUSE_SHARED=no'
1860 fi
1861
1862else
1863
1864 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1865 if test "x$LINE" != x ; then
1866 eval "DEFAULT_$LINE"
1867 else
1868 no_cache=1
1869 fi
1870
1871 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1872
1873fi
1874
1875
1876 eval "$ac_cv_use_shared"
1877 if test "$no_cache" != 1; then
1878 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1879 fi
1880
1881 if test "$wxUSE_SHARED" = yes; then
1882 echo "$ac_t""yes" 1>&6
1883 else
1884 echo "$ac_t""no" 1>&6
1885 fi
1886
1887
1888 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
f512f90a 1889echo "configure:1890: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1890 no_cache=0
1891 # Check whether --enable-optimise or --disable-optimise was given.
1892if test "${enable_optimise+set}" = set; then
1893 enableval="$enable_optimise"
1894
1895 if test "$enableval" = yes; then
1896 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1897 else
1898 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1899 fi
1900
1901else
1902
1903 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1904 if test "x$LINE" != x ; then
1905 eval "DEFAULT_$LINE"
1906 else
1907 no_cache=1
1908 fi
1909
1910 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1911
1912fi
1913
1914
1915 eval "$ac_cv_use_optimise"
1916 if test "$no_cache" != 1; then
1917 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1918 fi
1919
1920 if test "$wxUSE_OPTIMISE" = yes; then
1921 echo "$ac_t""yes" 1>&6
1922 else
1923 echo "$ac_t""no" 1>&6
1924 fi
1925
1926
1927 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
f512f90a 1928echo "configure:1929: checking "for --enable-debug"" >&5
10f2d63a
VZ
1929 no_cache=0
1930 # Check whether --enable-debug or --disable-debug was given.
1931if test "${enable_debug+set}" = set; then
1932 enableval="$enable_debug"
1933
1934 if test "$enableval" = yes; then
1935 ac_cv_use_debug='wxUSE_DEBUG=yes'
1936 else
1937 ac_cv_use_debug='wxUSE_DEBUG=no'
1938 fi
1939
1940else
1941
1942 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1943 if test "x$LINE" != x ; then
1944 eval "DEFAULT_$LINE"
1945 else
1946 no_cache=1
1947 fi
1948
1949 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1950
1951fi
1952
1953
1954 eval "$ac_cv_use_debug"
1955 if test "$no_cache" != 1; then
1956 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1957 fi
1958
1959 if test "$wxUSE_DEBUG" = yes; then
1960 echo "$ac_t""yes" 1>&6
1961 else
1962 echo "$ac_t""no" 1>&6
1963 fi
1964
1965
1966if test "$wxUSE_DEBUG" = "yes"; then
1967 DEFAULT_wxUSE_DEBUG_FLAG=yes
1968 DEFAULT_wxUSE_DEBUG_INFO=yes
1969elif test "$wxUSE_DEBUG" = "no"; then
1970 DEFAULT_wxUSE_DEBUG_FLAG=no
1971 DEFAULT_wxUSE_DEBUG_INFO=no
1972fi
1973
1974
1975 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
f512f90a 1976echo "configure:1977: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
1977 no_cache=0
1978 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1979if test "${enable_debug_flag+set}" = set; then
1980 enableval="$enable_debug_flag"
1981
1982 if test "$enableval" = yes; then
1983 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1984 else
1985 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1986 fi
1987
1988else
1989
1990 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1991 if test "x$LINE" != x ; then
1992 eval "DEFAULT_$LINE"
1993 else
1994 no_cache=1
1995 fi
1996
1997 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
1998
1999fi
2000
2001
2002 eval "$ac_cv_use_debug_flag"
2003 if test "$no_cache" != 1; then
2004 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2005 fi
2006
2007 if test "$wxUSE_DEBUG_FLAG" = yes; then
2008 echo "$ac_t""yes" 1>&6
2009 else
2010 echo "$ac_t""no" 1>&6
2011 fi
2012
2013
2014 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
f512f90a 2015echo "configure:2016: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2016 no_cache=0
2017 # Check whether --enable-debug_info or --disable-debug_info was given.
2018if test "${enable_debug_info+set}" = set; then
2019 enableval="$enable_debug_info"
2020
2021 if test "$enableval" = yes; then
2022 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2023 else
2024 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2025 fi
2026
2027else
2028
2029 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2030 if test "x$LINE" != x ; then
2031 eval "DEFAULT_$LINE"
2032 else
2033 no_cache=1
2034 fi
2035
2036 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2037
2038fi
2039
2040
2041 eval "$ac_cv_use_debug_info"
2042 if test "$no_cache" != 1; then
2043 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2044 fi
2045
2046 if test "$wxUSE_DEBUG_INFO" = yes; then
2047 echo "$ac_t""yes" 1>&6
2048 else
2049 echo "$ac_t""no" 1>&6
2050 fi
2051
2052
2053 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
f512f90a 2054echo "configure:2055: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2055 no_cache=0
2056 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2057if test "${enable_debug_gdb+set}" = set; then
2058 enableval="$enable_debug_gdb"
2059
2060 if test "$enableval" = yes; then
2061 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2062 else
2063 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2064 fi
2065
2066else
2067
2068 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2069 if test "x$LINE" != x ; then
2070 eval "DEFAULT_$LINE"
2071 else
2072 no_cache=1
2073 fi
2074
2075 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2076
2077fi
2078
2079
2080 eval "$ac_cv_use_debug_gdb"
2081 if test "$no_cache" != 1; then
2082 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2083 fi
2084
2085 if test "$wxUSE_DEBUG_GDB" = yes; then
2086 echo "$ac_t""yes" 1>&6
2087 else
2088 echo "$ac_t""no" 1>&6
2089 fi
2090
2091
2092 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
f512f90a 2093echo "configure:2094: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2094 no_cache=0
2095 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2096if test "${enable_debug_cntxt+set}" = set; then
2097 enableval="$enable_debug_cntxt"
2098
2099 if test "$enableval" = yes; then
2100 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2101 else
2102 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2103 fi
2104
2105else
2106
2107 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2108 if test "x$LINE" != x ; then
2109 eval "DEFAULT_$LINE"
2110 else
2111 no_cache=1
2112 fi
2113
2114 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2115
2116fi
2117
2118
2119 eval "$ac_cv_use_debug_cntxt"
2120 if test "$no_cache" != 1; then
2121 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2122 fi
2123
2124 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2125 echo "$ac_t""yes" 1>&6
2126 else
2127 echo "$ac_t""no" 1>&6
2128 fi
2129
2130
2131 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
f512f90a 2132echo "configure:2133: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2133 no_cache=0
2134 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2135if test "${enable_mem_tracing+set}" = set; then
2136 enableval="$enable_mem_tracing"
2137
2138 if test "$enableval" = yes; then
2139 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2140 else
2141 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2142 fi
2143
2144else
2145
2146 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2147 if test "x$LINE" != x ; then
2148 eval "DEFAULT_$LINE"
2149 else
2150 no_cache=1
2151 fi
2152
2153 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2154
2155fi
2156
2157
2158 eval "$ac_cv_use_mem_tracing"
2159 if test "$no_cache" != 1; then
2160 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2161 fi
2162
2163 if test "$wxUSE_MEM_TRACING" = yes; then
2164 echo "$ac_t""yes" 1>&6
2165 else
2166 echo "$ac_t""no" 1>&6
2167 fi
2168
2169
2170 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
f512f90a 2171echo "configure:2172: checking "for --enable-profile"" >&5
10f2d63a
VZ
2172 no_cache=0
2173 # Check whether --enable-profile or --disable-profile was given.
2174if test "${enable_profile+set}" = set; then
2175 enableval="$enable_profile"
2176
2177 if test "$enableval" = yes; then
2178 ac_cv_use_profile='wxUSE_PROFILE=yes'
2179 else
2180 ac_cv_use_profile='wxUSE_PROFILE=no'
2181 fi
2182
2183else
2184
2185 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2186 if test "x$LINE" != x ; then
2187 eval "DEFAULT_$LINE"
2188 else
2189 no_cache=1
2190 fi
2191
2192 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2193
2194fi
2195
2196
2197 eval "$ac_cv_use_profile"
2198 if test "$no_cache" != 1; then
2199 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2200 fi
2201
2202 if test "$wxUSE_PROFILE" = yes; then
2203 echo "$ac_t""yes" 1>&6
2204 else
2205 echo "$ac_t""no" 1>&6
2206 fi
2207
2208
2209 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
f512f90a 2210echo "configure:2211: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2211 no_cache=0
2212 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2213if test "${enable_no_rtti+set}" = set; then
2214 enableval="$enable_no_rtti"
2215
2216 if test "$enableval" = yes; then
2217 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2218 else
2219 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2220 fi
2221
2222else
2223
2224 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2225 if test "x$LINE" != x ; then
2226 eval "DEFAULT_$LINE"
2227 else
2228 no_cache=1
2229 fi
2230
2231 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2232
2233fi
2234
2235
2236 eval "$ac_cv_use_no_rtti"
2237 if test "$no_cache" != 1; then
2238 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2239 fi
2240
2241 if test "$wxUSE_NO_RTTI" = yes; then
2242 echo "$ac_t""yes" 1>&6
2243 else
2244 echo "$ac_t""no" 1>&6
2245 fi
2246
2247
2248 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
f512f90a 2249echo "configure:2250: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2250 no_cache=0
2251 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2252if test "${enable_no_exceptions+set}" = set; then
2253 enableval="$enable_no_exceptions"
2254
2255 if test "$enableval" = yes; then
2256 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2257 else
2258 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2259 fi
2260
2261else
2262
2263 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2264 if test "x$LINE" != x ; then
2265 eval "DEFAULT_$LINE"
2266 else
2267 no_cache=1
2268 fi
2269
2270 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2271
2272fi
2273
2274
2275 eval "$ac_cv_use_no_exceptions"
2276 if test "$no_cache" != 1; then
2277 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2278 fi
2279
2280 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2281 echo "$ac_t""yes" 1>&6
2282 else
2283 echo "$ac_t""no" 1>&6
2284 fi
2285
2286
2287 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
f512f90a 2288echo "configure:2289: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2289 no_cache=0
2290 # Check whether --enable-permissive or --disable-permissive was given.
2291if test "${enable_permissive+set}" = set; then
2292 enableval="$enable_permissive"
2293
2294 if test "$enableval" = yes; then
2295 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2296 else
2297 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2298 fi
2299
2300else
2301
2302 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2303 if test "x$LINE" != x ; then
2304 eval "DEFAULT_$LINE"
2305 else
2306 no_cache=1
2307 fi
2308
2309 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2310
2311fi
2312
2313
2314 eval "$ac_cv_use_permissive"
2315 if test "$no_cache" != 1; then
2316 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2317 fi
2318
2319 if test "$wxUSE_PERMISSIVE" = yes; then
2320 echo "$ac_t""yes" 1>&6
2321 else
2322 echo "$ac_t""no" 1>&6
2323 fi
2324
2325
2326 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
f512f90a 2327echo "configure:2328: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2328 no_cache=0
2329 # Check whether --enable-no_deps or --disable-no_deps was given.
2330if test "${enable_no_deps+set}" = set; then
2331 enableval="$enable_no_deps"
2332
2333 if test "$enableval" = yes; then
2334 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2335 else
2336 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2337 fi
2338
2339else
2340
2341 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2342 if test "x$LINE" != x ; then
2343 eval "DEFAULT_$LINE"
2344 else
2345 no_cache=1
2346 fi
2347
2348 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2349
2350fi
2351
2352
2353 eval "$ac_cv_use_no_deps"
2354 if test "$no_cache" != 1; then
2355 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2356 fi
2357
2358 if test "$wxUSE_NO_DEPS" = yes; then
2359 echo "$ac_t""yes" 1>&6
2360 else
2361 echo "$ac_t""no" 1>&6
2362 fi
2363
2364
2365
2366
2367 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
f512f90a 2368echo "configure:2369: checking "for --enable-intl"" >&5
10f2d63a
VZ
2369 no_cache=0
2370 # Check whether --enable-intl or --disable-intl was given.
2371if test "${enable_intl+set}" = set; then
2372 enableval="$enable_intl"
2373
2374 if test "$enableval" = yes; then
2375 ac_cv_use_intl='wxUSE_INTL=yes'
2376 else
2377 ac_cv_use_intl='wxUSE_INTL=no'
2378 fi
2379
2380else
2381
2382 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2383 if test "x$LINE" != x ; then
2384 eval "DEFAULT_$LINE"
2385 else
2386 no_cache=1
2387 fi
2388
2389 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2390
2391fi
2392
2393
2394 eval "$ac_cv_use_intl"
2395 if test "$no_cache" != 1; then
2396 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2397 fi
2398
2399 if test "$wxUSE_INTL" = yes; then
2400 echo "$ac_t""yes" 1>&6
2401 else
2402 echo "$ac_t""no" 1>&6
2403 fi
2404
2405
2406 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
f512f90a 2407echo "configure:2408: checking "for --enable-config"" >&5
10f2d63a
VZ
2408 no_cache=0
2409 # Check whether --enable-config or --disable-config was given.
2410if test "${enable_config+set}" = set; then
2411 enableval="$enable_config"
2412
2413 if test "$enableval" = yes; then
2414 ac_cv_use_config='wxUSE_CONFIG=yes'
2415 else
2416 ac_cv_use_config='wxUSE_CONFIG=no'
2417 fi
2418
2419else
2420
2421 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2422 if test "x$LINE" != x ; then
2423 eval "DEFAULT_$LINE"
2424 else
2425 no_cache=1
2426 fi
2427
2428 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2429
2430fi
2431
2432
2433 eval "$ac_cv_use_config"
2434 if test "$no_cache" != 1; then
2435 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2436 fi
2437
2438 if test "$wxUSE_CONFIG" = yes; then
2439 echo "$ac_t""yes" 1>&6
2440 else
2441 echo "$ac_t""no" 1>&6
2442 fi
2443
2444
2445 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
f512f90a 2446echo "configure:2447: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2447 no_cache=0
2448 # Check whether --enable-sockets or --disable-sockets was given.
2449if test "${enable_sockets+set}" = set; then
2450 enableval="$enable_sockets"
2451
2452 if test "$enableval" = yes; then
2453 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2454 else
2455 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2456 fi
2457
2458else
2459
2460 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2461 if test "x$LINE" != x ; then
2462 eval "DEFAULT_$LINE"
2463 else
2464 no_cache=1
2465 fi
2466
2467 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2468
2469fi
2470
2471
2472 eval "$ac_cv_use_sockets"
2473 if test "$no_cache" != 1; then
2474 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2475 fi
2476
2477 if test "$wxUSE_SOCKETS" = yes; then
2478 echo "$ac_t""yes" 1>&6
2479 else
2480 echo "$ac_t""no" 1>&6
2481 fi
2482
2483
2484 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
f512f90a 2485echo "configure:2486: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2486 no_cache=0
2487 # Check whether --enable-dialupman or --disable-dialupman was given.
2488if test "${enable_dialupman+set}" = set; then
2489 enableval="$enable_dialupman"
2490
2491 if test "$enableval" = yes; then
2492 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2493 else
2494 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2495 fi
2496
2497else
2498
2499 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2500 if test "x$LINE" != x ; then
2501 eval "DEFAULT_$LINE"
2502 else
2503 no_cache=1
2504 fi
2505
2506 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2507
2508fi
2509
2510
2511 eval "$ac_cv_use_dialupman"
2512 if test "$no_cache" != 1; then
2513 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2514 fi
2515
2516 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2517 echo "$ac_t""yes" 1>&6
2518 else
2519 echo "$ac_t""no" 1>&6
2520 fi
2521
2522
2523 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
f512f90a 2524echo "configure:2525: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2525 no_cache=0
2526 # Check whether --enable-ipc or --disable-ipc was given.
2527if test "${enable_ipc+set}" = set; then
2528 enableval="$enable_ipc"
2529
2530 if test "$enableval" = yes; then
2531 ac_cv_use_ipc='wxUSE_IPC=yes'
2532 else
2533 ac_cv_use_ipc='wxUSE_IPC=no'
2534 fi
2535
2536else
2537
2538 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2539 if test "x$LINE" != x ; then
2540 eval "DEFAULT_$LINE"
2541 else
2542 no_cache=1
2543 fi
2544
2545 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2546
2547fi
2548
2549
2550 eval "$ac_cv_use_ipc"
2551 if test "$no_cache" != 1; then
2552 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2553 fi
2554
2555 if test "$wxUSE_IPC" = yes; then
2556 echo "$ac_t""yes" 1>&6
2557 else
2558 echo "$ac_t""no" 1>&6
2559 fi
2560
2561
2562 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
f512f90a 2563echo "configure:2564: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2564 no_cache=0
2565 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2566if test "${enable_apple_ieee+set}" = set; then
2567 enableval="$enable_apple_ieee"
2568
2569 if test "$enableval" = yes; then
2570 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2571 else
2572 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2573 fi
2574
2575else
2576
2577 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2578 if test "x$LINE" != x ; then
2579 eval "DEFAULT_$LINE"
2580 else
2581 no_cache=1
2582 fi
2583
2584 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2585
2586fi
2587
2588
2589 eval "$ac_cv_use_apple_ieee"
2590 if test "$no_cache" != 1; then
2591 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2592 fi
2593
2594 if test "$wxUSE_APPLE_IEEE" = yes; then
2595 echo "$ac_t""yes" 1>&6
2596 else
2597 echo "$ac_t""no" 1>&6
2598 fi
2599
2600
2601 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
f512f90a 2602echo "configure:2603: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2603 no_cache=0
2604 # Check whether --enable-timedate or --disable-timedate was given.
2605if test "${enable_timedate+set}" = set; then
2606 enableval="$enable_timedate"
2607
2608 if test "$enableval" = yes; then
2609 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2610 else
2611 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2612 fi
2613
2614else
2615
2616 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2617 if test "x$LINE" != x ; then
2618 eval "DEFAULT_$LINE"
2619 else
2620 no_cache=1
2621 fi
2622
2623 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2624
2625fi
2626
2627
2628 eval "$ac_cv_use_timedate"
2629 if test "$no_cache" != 1; then
2630 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2631 fi
2632
2633 if test "$wxUSE_TIMEDATE" = yes; then
2634 echo "$ac_t""yes" 1>&6
2635 else
2636 echo "$ac_t""no" 1>&6
2637 fi
2638
2639
2640 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
f512f90a 2641echo "configure:2642: checking "for --enable-wave"" >&5
10f2d63a
VZ
2642 no_cache=0
2643 # Check whether --enable-wave or --disable-wave was given.
2644if test "${enable_wave+set}" = set; then
2645 enableval="$enable_wave"
2646
2647 if test "$enableval" = yes; then
2648 ac_cv_use_wave='wxUSE_WAVE=yes'
2649 else
2650 ac_cv_use_wave='wxUSE_WAVE=no'
2651 fi
2652
2653else
2654
2655 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2656 if test "x$LINE" != x ; then
2657 eval "DEFAULT_$LINE"
2658 else
2659 no_cache=1
2660 fi
2661
2662 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2663
2664fi
2665
2666
2667 eval "$ac_cv_use_wave"
2668 if test "$no_cache" != 1; then
2669 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2670 fi
2671
2672 if test "$wxUSE_WAVE" = yes; then
2673 echo "$ac_t""yes" 1>&6
2674 else
2675 echo "$ac_t""no" 1>&6
2676 fi
2677
2678
2679 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
f512f90a 2680echo "configure:2681: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2681 no_cache=0
2682 # Check whether --enable-fraction or --disable-fraction was given.
2683if test "${enable_fraction+set}" = set; then
2684 enableval="$enable_fraction"
2685
2686 if test "$enableval" = yes; then
2687 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2688 else
2689 ac_cv_use_fraction='wxUSE_FRACTION=no'
2690 fi
2691
2692else
2693
2694 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2695 if test "x$LINE" != x ; then
2696 eval "DEFAULT_$LINE"
2697 else
2698 no_cache=1
2699 fi
2700
2701 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2702
2703fi
2704
2705
2706 eval "$ac_cv_use_fraction"
2707 if test "$no_cache" != 1; then
2708 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2709 fi
2710
2711 if test "$wxUSE_FRACTION" = yes; then
2712 echo "$ac_t""yes" 1>&6
2713 else
2714 echo "$ac_t""no" 1>&6
2715 fi
2716
2717
2718 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
f512f90a 2719echo "configure:2720: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2720 no_cache=0
2721 # Check whether --enable-dynlib or --disable-dynlib was given.
2722if test "${enable_dynlib+set}" = set; then
2723 enableval="$enable_dynlib"
2724
2725 if test "$enableval" = yes; then
2726 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2727 else
2728 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2729 fi
2730
2731else
2732
2733 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2734 if test "x$LINE" != x ; then
2735 eval "DEFAULT_$LINE"
2736 else
2737 no_cache=1
2738 fi
2739
2740 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2741
2742fi
2743
2744
2745 eval "$ac_cv_use_dynlib"
2746 if test "$no_cache" != 1; then
2747 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2748 fi
2749
2750 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2751 echo "$ac_t""yes" 1>&6
2752 else
2753 echo "$ac_t""no" 1>&6
2754 fi
2755
2756
2757 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
f512f90a 2758echo "configure:2759: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2759 no_cache=0
2760 # Check whether --enable-longlong or --disable-longlong was given.
2761if test "${enable_longlong+set}" = set; then
2762 enableval="$enable_longlong"
2763
2764 if test "$enableval" = yes; then
2765 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2766 else
2767 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2768 fi
2769
2770else
2771
2772 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2773 if test "x$LINE" != x ; then
2774 eval "DEFAULT_$LINE"
2775 else
2776 no_cache=1
2777 fi
2778
2779 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2780
2781fi
2782
2783
2784 eval "$ac_cv_use_longlong"
2785 if test "$no_cache" != 1; then
2786 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2787 fi
2788
2789 if test "$wxUSE_LONGLONG" = yes; then
2790 echo "$ac_t""yes" 1>&6
2791 else
2792 echo "$ac_t""no" 1>&6
2793 fi
2794
2795
2796 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
f512f90a 2797echo "configure:2798: checking "for --enable-log"" >&5
10f2d63a
VZ
2798 no_cache=0
2799 # Check whether --enable-log or --disable-log was given.
2800if test "${enable_log+set}" = set; then
2801 enableval="$enable_log"
2802
2803 if test "$enableval" = yes; then
2804 ac_cv_use_log='wxUSE_LOG=yes'
2805 else
2806 ac_cv_use_log='wxUSE_LOG=no'
2807 fi
2808
2809else
2810
2811 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2812 if test "x$LINE" != x ; then
2813 eval "DEFAULT_$LINE"
2814 else
2815 no_cache=1
2816 fi
2817
2818 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2819
2820fi
2821
2822
2823 eval "$ac_cv_use_log"
2824 if test "$no_cache" != 1; then
2825 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2826 fi
2827
2828 if test "$wxUSE_LOG" = yes; then
2829 echo "$ac_t""yes" 1>&6
2830 else
2831 echo "$ac_t""no" 1>&6
2832 fi
2833
2834
2835 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
f512f90a 2836echo "configure:2837: checking "for --enable-streams"" >&5
10f2d63a
VZ
2837 no_cache=0
2838 # Check whether --enable-streams or --disable-streams was given.
2839if test "${enable_streams+set}" = set; then
2840 enableval="$enable_streams"
2841
2842 if test "$enableval" = yes; then
2843 ac_cv_use_streams='wxUSE_STREAMS=yes'
2844 else
2845 ac_cv_use_streams='wxUSE_STREAMS=no'
2846 fi
2847
2848else
2849
2850 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2851 if test "x$LINE" != x ; then
2852 eval "DEFAULT_$LINE"
2853 else
2854 no_cache=1
2855 fi
2856
2857 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2858
2859fi
2860
2861
2862 eval "$ac_cv_use_streams"
2863 if test "$no_cache" != 1; then
2864 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2865 fi
2866
2867 if test "$wxUSE_STREAMS" = yes; then
2868 echo "$ac_t""yes" 1>&6
2869 else
2870 echo "$ac_t""no" 1>&6
2871 fi
2872
2873
2874 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
f512f90a 2875echo "configure:2876: checking "for --enable-file"" >&5
10f2d63a
VZ
2876 no_cache=0
2877 # Check whether --enable-file or --disable-file was given.
2878if test "${enable_file+set}" = set; then
2879 enableval="$enable_file"
2880
2881 if test "$enableval" = yes; then
2882 ac_cv_use_file='wxUSE_FILE=yes'
2883 else
2884 ac_cv_use_file='wxUSE_FILE=no'
2885 fi
2886
2887else
2888
2889 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2890 if test "x$LINE" != x ; then
2891 eval "DEFAULT_$LINE"
2892 else
2893 no_cache=1
2894 fi
2895
2896 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2897
2898fi
2899
2900
2901 eval "$ac_cv_use_file"
2902 if test "$no_cache" != 1; then
2903 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2904 fi
2905
2906 if test "$wxUSE_FILE" = yes; then
2907 echo "$ac_t""yes" 1>&6
2908 else
2909 echo "$ac_t""no" 1>&6
2910 fi
2911
2912
2913 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
f512f90a 2914echo "configure:2915: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2915 no_cache=0
2916 # Check whether --enable-textfile or --disable-textfile was given.
2917if test "${enable_textfile+set}" = set; then
2918 enableval="$enable_textfile"
2919
2920 if test "$enableval" = yes; then
2921 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2922 else
2923 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2924 fi
2925
2926else
2927
2928 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2929 if test "x$LINE" != x ; then
2930 eval "DEFAULT_$LINE"
2931 else
2932 no_cache=1
2933 fi
2934
2935 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2936
2937fi
2938
2939
2940 eval "$ac_cv_use_textfile"
2941 if test "$no_cache" != 1; then
2942 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2943 fi
2944
2945 if test "$wxUSE_TEXTFILE" = yes; then
2946 echo "$ac_t""yes" 1>&6
2947 else
2948 echo "$ac_t""no" 1>&6
2949 fi
2950
2951
2952 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
f512f90a 2953echo "configure:2954: checking "for --enable-unicode"" >&5
10f2d63a
VZ
2954 no_cache=0
2955 # Check whether --enable-unicode or --disable-unicode was given.
2956if test "${enable_unicode+set}" = set; then
2957 enableval="$enable_unicode"
2958
2959 if test "$enableval" = yes; then
2960 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2961 else
2962 ac_cv_use_unicode='wxUSE_UNICODE=no'
2963 fi
2964
2965else
2966
2967 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2968 if test "x$LINE" != x ; then
2969 eval "DEFAULT_$LINE"
2970 else
2971 no_cache=1
2972 fi
2973
2974 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2975
2976fi
2977
2978
2979 eval "$ac_cv_use_unicode"
2980 if test "$no_cache" != 1; then
2981 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2982 fi
2983
2984 if test "$wxUSE_UNICODE" = yes; then
2985 echo "$ac_t""yes" 1>&6
2986 else
2987 echo "$ac_t""no" 1>&6
2988 fi
2989
2990
2991 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
f512f90a 2992echo "configure:2993: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
2993 no_cache=0
2994 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
2995if test "${enable_wcsrtombs+set}" = set; then
2996 enableval="$enable_wcsrtombs"
2997
2998 if test "$enableval" = yes; then
2999 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3000 else
3001 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3002 fi
3003
3004else
3005
3006 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3007 if test "x$LINE" != x ; then
3008 eval "DEFAULT_$LINE"
3009 else
3010 no_cache=1
3011 fi
3012
3013 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3014
3015fi
3016
3017
3018 eval "$ac_cv_use_wcsrtombs"
3019 if test "$no_cache" != 1; then
3020 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3021 fi
3022
3023 if test "$wxUSE_WCSRTOMBS" = yes; then
3024 echo "$ac_t""yes" 1>&6
3025 else
3026 echo "$ac_t""no" 1>&6
3027 fi
3028
3029
3030 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
f512f90a 3031echo "configure:3032: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3032 no_cache=0
3033 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3034if test "${enable_wxprintfv+set}" = set; then
3035 enableval="$enable_wxprintfv"
3036
3037 if test "$enableval" = yes; then
3038 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3039 else
3040 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3041 fi
3042
3043else
3044
3045 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3046 if test "x$LINE" != x ; then
3047 eval "DEFAULT_$LINE"
3048 else
3049 no_cache=1
3050 fi
3051
3052 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3053
3054fi
3055
3056
3057 eval "$ac_cv_use_wxprintfv"
3058 if test "$no_cache" != 1; then
3059 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3060 fi
3061
3062 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3063 echo "$ac_t""yes" 1>&6
3064 else
3065 echo "$ac_t""no" 1>&6
3066 fi
3067
3068
3069 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
f512f90a 3070echo "configure:3071: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3071 no_cache=0
3072 # Check whether --enable-joystick or --disable-joystick was given.
3073if test "${enable_joystick+set}" = set; then
3074 enableval="$enable_joystick"
3075
3076 if test "$enableval" = yes; then
3077 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3078 else
3079 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3080 fi
3081
3082else
3083
3084 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3085 if test "x$LINE" != x ; then
3086 eval "DEFAULT_$LINE"
3087 else
3088 no_cache=1
3089 fi
3090
3091 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3092
3093fi
3094
3095
3096 eval "$ac_cv_use_joystick"
3097 if test "$no_cache" != 1; then
3098 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3099 fi
3100
3101 if test "$wxUSE_JOYSTICK" = yes; then
3102 echo "$ac_t""yes" 1>&6
3103 else
3104 echo "$ac_t""no" 1>&6
3105 fi
3106
3107
3108 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
f512f90a 3109echo "configure:3110: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3110 no_cache=0
3111 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3112if test "${enable_std_iostreams+set}" = set; then
3113 enableval="$enable_std_iostreams"
3114
3115 if test "$enableval" = yes; then
3116 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3117 else
3118 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3119 fi
3120
3121else
3122
3123 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3124 if test "x$LINE" != x ; then
3125 eval "DEFAULT_$LINE"
3126 else
3127 no_cache=1
3128 fi
3129
3130 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3131
3132fi
3133
3134
3135 eval "$ac_cv_use_std_iostreams"
3136 if test "$no_cache" != 1; then
3137 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3138 fi
3139
3140 if test "$wxUSE_STD_IOSTREAM" = yes; then
3141 echo "$ac_t""yes" 1>&6
3142 else
3143 echo "$ac_t""no" 1>&6
3144 fi
3145
3146
3147 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
f512f90a 3148echo "configure:3149: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3149 no_cache=0
3150 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3151if test "${enable_fs_inet+set}" = set; then
3152 enableval="$enable_fs_inet"
3153
3154 if test "$enableval" = yes; then
3155 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3156 else
3157 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3158 fi
3159
3160else
3161
3162 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3163 if test "x$LINE" != x ; then
3164 eval "DEFAULT_$LINE"
3165 else
3166 no_cache=1
3167 fi
3168
3169 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3170
3171fi
3172
3173
3174 eval "$ac_cv_use_fs_inet"
3175 if test "$no_cache" != 1; then
3176 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3177 fi
3178
3179 if test "$wxUSE_FS_INET" = yes; then
3180 echo "$ac_t""yes" 1>&6
3181 else
3182 echo "$ac_t""no" 1>&6
3183 fi
3184
3185
3186 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
f512f90a 3187echo "configure:3188: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3188 no_cache=0
3189 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3190if test "${enable_fs_zip+set}" = set; then
3191 enableval="$enable_fs_zip"
3192
3193 if test "$enableval" = yes; then
3194 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3195 else
3196 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3197 fi
3198
3199else
3200
3201 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3202 if test "x$LINE" != x ; then
3203 eval "DEFAULT_$LINE"
3204 else
3205 no_cache=1
3206 fi
3207
3208 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3209
3210fi
3211
3212
3213 eval "$ac_cv_use_fs_zip"
3214 if test "$no_cache" != 1; then
3215 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3216 fi
3217
3218 if test "$wxUSE_FS_ZIP" = yes; then
3219 echo "$ac_t""yes" 1>&6
3220 else
3221 echo "$ac_t""no" 1>&6
3222 fi
3223
3224
3225 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
f512f90a 3226echo "configure:3227: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3227 no_cache=0
3228 # Check whether --enable-zipstream or --disable-zipstream was given.
3229if test "${enable_zipstream+set}" = set; then
3230 enableval="$enable_zipstream"
3231
3232 if test "$enableval" = yes; then
3233 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3234 else
3235 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3236 fi
3237
3238else
3239
3240 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3241 if test "x$LINE" != x ; then
3242 eval "DEFAULT_$LINE"
3243 else
3244 no_cache=1
3245 fi
3246
3247 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3248
3249fi
3250
3251
3252 eval "$ac_cv_use_zipstream"
3253 if test "$no_cache" != 1; then
3254 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3255 fi
3256
3257 if test "$wxUSE_ZIPSTREAM" = yes; then
3258 echo "$ac_t""yes" 1>&6
3259 else
3260 echo "$ac_t""no" 1>&6
3261 fi
3262
3263
3264
3265
3266 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
f512f90a 3267echo "configure:3268: checking "for --enable-threads"" >&5
10f2d63a
VZ
3268 no_cache=0
3269 # Check whether --enable-threads or --disable-threads was given.
3270if test "${enable_threads+set}" = set; then
3271 enableval="$enable_threads"
3272
3273 if test "$enableval" = yes; then
3274 ac_cv_use_threads='wxUSE_THREADS=yes'
3275 else
3276 ac_cv_use_threads='wxUSE_THREADS=no'
3277 fi
3278
3279else
3280
3281 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3282 if test "x$LINE" != x ; then
3283 eval "DEFAULT_$LINE"
3284 else
3285 no_cache=1
3286 fi
3287
3288 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3289
3290fi
3291
3292
3293 eval "$ac_cv_use_threads"
3294 if test "$no_cache" != 1; then
3295 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3296 fi
3297
3298 if test "$wxUSE_THREADS" = yes; then
3299 echo "$ac_t""yes" 1>&6
3300 else
3301 echo "$ac_t""no" 1>&6
3302 fi
3303
3304
3305 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
f512f90a 3306echo "configure:3307: checking "for --enable-serial"" >&5
10f2d63a
VZ
3307 no_cache=0
3308 # Check whether --enable-serial or --disable-serial was given.
3309if test "${enable_serial+set}" = set; then
3310 enableval="$enable_serial"
3311
3312 if test "$enableval" = yes; then
3313 ac_cv_use_serial='wxUSE_SERIAL=yes'
3314 else
3315 ac_cv_use_serial='wxUSE_SERIAL=no'
3316 fi
3317
3318else
3319
3320 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3321 if test "x$LINE" != x ; then
3322 eval "DEFAULT_$LINE"
3323 else
3324 no_cache=1
3325 fi
3326
3327 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3328
3329fi
3330
3331
3332 eval "$ac_cv_use_serial"
3333 if test "$no_cache" != 1; then
3334 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3335 fi
3336
3337 if test "$wxUSE_SERIAL" = yes; then
3338 echo "$ac_t""yes" 1>&6
3339 else
3340 echo "$ac_t""no" 1>&6
3341 fi
3342
3343
3344
3345
3346 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
f512f90a 3347echo "configure:3348: checking "for --enable-docview"" >&5
10f2d63a
VZ
3348 no_cache=0
3349 # Check whether --enable-docview or --disable-docview was given.
3350if test "${enable_docview+set}" = set; then
3351 enableval="$enable_docview"
3352
3353 if test "$enableval" = yes; then
3354 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3355 else
3356 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3357 fi
3358
3359else
3360
3361 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3362 if test "x$LINE" != x ; then
3363 eval "DEFAULT_$LINE"
3364 else
3365 no_cache=1
3366 fi
3367
3368 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3369
3370fi
3371
3372
3373 eval "$ac_cv_use_docview"
3374 if test "$no_cache" != 1; then
3375 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3376 fi
3377
3378 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3379 echo "$ac_t""yes" 1>&6
3380 else
3381 echo "$ac_t""no" 1>&6
3382 fi
3383
3384
3385 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
f512f90a 3386echo "configure:3387: checking "for --enable-help"" >&5
10f2d63a
VZ
3387 no_cache=0
3388 # Check whether --enable-help or --disable-help was given.
3389if test "${enable_help+set}" = set; then
3390 enableval="$enable_help"
3391
3392 if test "$enableval" = yes; then
3393 ac_cv_use_help='wxUSE_HELP=yes'
3394 else
3395 ac_cv_use_help='wxUSE_HELP=no'
3396 fi
3397
3398else
3399
3400 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3401 if test "x$LINE" != x ; then
3402 eval "DEFAULT_$LINE"
3403 else
3404 no_cache=1
3405 fi
3406
3407 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3408
3409fi
3410
3411
3412 eval "$ac_cv_use_help"
3413 if test "$no_cache" != 1; then
3414 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3415 fi
3416
3417 if test "$wxUSE_HELP" = yes; then
3418 echo "$ac_t""yes" 1>&6
3419 else
3420 echo "$ac_t""no" 1>&6
3421 fi
3422
3423
3424 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
f512f90a 3425echo "configure:3426: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3426 no_cache=0
3427 # Check whether --enable-constraints or --disable-constraints was given.
3428if test "${enable_constraints+set}" = set; then
3429 enableval="$enable_constraints"
3430
3431 if test "$enableval" = yes; then
3432 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3433 else
3434 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3435 fi
3436
3437else
3438
3439 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3440 if test "x$LINE" != x ; then
3441 eval "DEFAULT_$LINE"
3442 else
3443 no_cache=1
3444 fi
3445
3446 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3447
3448fi
3449
3450
3451 eval "$ac_cv_use_constraints"
3452 if test "$no_cache" != 1; then
3453 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3454 fi
3455
3456 if test "$wxUSE_CONSTRAINTS" = yes; then
3457 echo "$ac_t""yes" 1>&6
3458 else
3459 echo "$ac_t""no" 1>&6
3460 fi
3461
3462
3463 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
f512f90a 3464echo "configure:3465: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3465 no_cache=0
3466 # Check whether --enable-printarch or --disable-printarch was given.
3467if test "${enable_printarch+set}" = set; then
3468 enableval="$enable_printarch"
3469
3470 if test "$enableval" = yes; then
3471 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3472 else
3473 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3474 fi
3475
3476else
3477
3478 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3479 if test "x$LINE" != x ; then
3480 eval "DEFAULT_$LINE"
3481 else
3482 no_cache=1
3483 fi
3484
3485 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3486
3487fi
3488
3489
3490 eval "$ac_cv_use_printarch"
3491 if test "$no_cache" != 1; then
3492 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3493 fi
3494
3495 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3496 echo "$ac_t""yes" 1>&6
3497 else
3498 echo "$ac_t""no" 1>&6
3499 fi
3500
3501
3502 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
f512f90a 3503echo "configure:3504: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3504 no_cache=0
3505 # Check whether --enable-mdi or --disable-mdi was given.
3506if test "${enable_mdi+set}" = set; then
3507 enableval="$enable_mdi"
3508
3509 if test "$enableval" = yes; then
3510 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3511 else
3512 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3513 fi
3514
3515else
3516
3517 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3518 if test "x$LINE" != x ; then
3519 eval "DEFAULT_$LINE"
3520 else
3521 no_cache=1
3522 fi
3523
3524 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3525
3526fi
3527
3528
3529 eval "$ac_cv_use_mdi"
3530 if test "$no_cache" != 1; then
3531 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3532 fi
3533
3534 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3535 echo "$ac_t""yes" 1>&6
3536 else
3537 echo "$ac_t""no" 1>&6
3538 fi
3539
3540
3541
3542 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
f512f90a 3543echo "configure:3544: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3544 no_cache=0
3545 # Check whether --enable-postscript or --disable-postscript was given.
3546if test "${enable_postscript+set}" = set; then
3547 enableval="$enable_postscript"
3548
3549 if test "$enableval" = yes; then
3550 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3551 else
3552 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3553 fi
3554
3555else
3556
3557 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3558 if test "x$LINE" != x ; then
3559 eval "DEFAULT_$LINE"
3560 else
3561 no_cache=1
3562 fi
3563
3564 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3565
3566fi
3567
3568
3569 eval "$ac_cv_use_postscript"
3570 if test "$no_cache" != 1; then
3571 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3572 fi
3573
3574 if test "$wxUSE_POSTSCRIPT" = yes; then
3575 echo "$ac_t""yes" 1>&6
3576 else
3577 echo "$ac_t""no" 1>&6
3578 fi
3579
3580
3581
3582
3583 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
f512f90a 3584echo "configure:3585: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3585 no_cache=0
3586 # Check whether --enable-prologio or --disable-prologio was given.
3587if test "${enable_prologio+set}" = set; then
3588 enableval="$enable_prologio"
3589
3590 if test "$enableval" = yes; then
3591 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3592 else
3593 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3594 fi
3595
3596else
3597
3598 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3599 if test "x$LINE" != x ; then
3600 eval "DEFAULT_$LINE"
3601 else
3602 no_cache=1
3603 fi
3604
3605 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3606
3607fi
3608
3609
3610 eval "$ac_cv_use_prologio"
3611 if test "$no_cache" != 1; then
3612 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3613 fi
3614
3615 if test "$wxUSE_PROLOGIO" = yes; then
3616 echo "$ac_t""yes" 1>&6
3617 else
3618 echo "$ac_t""no" 1>&6
3619 fi
3620
3621
3622 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
f512f90a 3623echo "configure:3624: checking "for --enable-resources"" >&5
10f2d63a
VZ
3624 no_cache=0
3625 # Check whether --enable-resources or --disable-resources was given.
3626if test "${enable_resources+set}" = set; then
3627 enableval="$enable_resources"
3628
3629 if test "$enableval" = yes; then
3630 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3631 else
3632 ac_cv_use_resources='wxUSE_RESOURCES=no'
3633 fi
3634
3635else
3636
3637 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3638 if test "x$LINE" != x ; then
3639 eval "DEFAULT_$LINE"
3640 else
3641 no_cache=1
3642 fi
3643
3644 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3645
3646fi
3647
3648
3649 eval "$ac_cv_use_resources"
3650 if test "$no_cache" != 1; then
3651 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3652 fi
3653
3654 if test "$wxUSE_RESOURCES" = yes; then
3655 echo "$ac_t""yes" 1>&6
3656 else
3657 echo "$ac_t""no" 1>&6
3658 fi
3659
3660
3661
3662 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
f512f90a 3663echo "configure:3664: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3664 no_cache=0
3665 # Check whether --enable-xresources or --disable-xresources was given.
3666if test "${enable_xresources+set}" = set; then
3667 enableval="$enable_xresources"
3668
3669 if test "$enableval" = yes; then
3670 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3671 else
3672 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3673 fi
3674
3675else
3676
3677 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3678 if test "x$LINE" != x ; then
3679 eval "DEFAULT_$LINE"
3680 else
3681 no_cache=1
3682 fi
3683
3684 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3685
3686fi
3687
3688
3689 eval "$ac_cv_use_xresources"
3690 if test "$no_cache" != 1; then
3691 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3692 fi
3693
3694 if test "$wxUSE_X_RESOURCES" = yes; then
3695 echo "$ac_t""yes" 1>&6
3696 else
3697 echo "$ac_t""no" 1>&6
3698 fi
3699
3700
3701
3702
3703 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
f512f90a 3704echo "configure:3705: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3705 no_cache=0
3706 # Check whether --enable-clipboard or --disable-clipboard was given.
3707if test "${enable_clipboard+set}" = set; then
3708 enableval="$enable_clipboard"
3709
3710 if test "$enableval" = yes; then
3711 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3712 else
3713 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3714 fi
3715
3716else
3717
3718 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3719 if test "x$LINE" != x ; then
3720 eval "DEFAULT_$LINE"
3721 else
3722 no_cache=1
3723 fi
3724
3725 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3726
3727fi
3728
3729
3730 eval "$ac_cv_use_clipboard"
3731 if test "$no_cache" != 1; then
3732 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3733 fi
3734
3735 if test "$wxUSE_CLIPBOARD" = yes; then
3736 echo "$ac_t""yes" 1>&6
3737 else
3738 echo "$ac_t""no" 1>&6
3739 fi
3740
3741
3742 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
f512f90a 3743echo "configure:3744: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3744 no_cache=0
3745 # Check whether --enable-dnd or --disable-dnd was given.
3746if test "${enable_dnd+set}" = set; then
3747 enableval="$enable_dnd"
3748
3749 if test "$enableval" = yes; then
3750 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3751 else
3752 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3753 fi
3754
3755else
3756
3757 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3758 if test "x$LINE" != x ; then
3759 eval "DEFAULT_$LINE"
3760 else
3761 no_cache=1
3762 fi
3763
3764 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3765
3766fi
3767
3768
3769 eval "$ac_cv_use_dnd"
3770 if test "$no_cache" != 1; then
3771 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3772 fi
3773
3774 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3775 echo "$ac_t""yes" 1>&6
3776 else
3777 echo "$ac_t""no" 1>&6
3778 fi
3779
3780
3781
3782 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
f512f90a 3783echo "configure:3784: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3784 no_cache=0
3785 # Check whether --enable-wxtree or --disable-wxtree was given.
3786if test "${enable_wxtree+set}" = set; then
3787 enableval="$enable_wxtree"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3791 else
3792 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3793 fi
3794
3795else
3796
3797 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3805
3806fi
3807
3808
3809 eval "$ac_cv_use_wxtree"
3810 if test "$no_cache" != 1; then
3811 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3812 fi
3813
3814 if test "$wxUSE_WXTREE" = yes; then
3815 echo "$ac_t""yes" 1>&6
3816 else
3817 echo "$ac_t""no" 1>&6
3818 fi
3819
3820
3821
3822
3823 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
f512f90a 3824echo "configure:3825: checking "for --enable-controls"" >&5
10f2d63a
VZ
3825 no_cache=0
3826 # Check whether --enable-controls or --disable-controls was given.
3827if test "${enable_controls+set}" = set; then
3828 enableval="$enable_controls"
3829
3830 if test "$enableval" = yes; then
3831 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3832 else
3833 ac_cv_use_controls='wxUSE_CONTROLS=no'
3834 fi
3835
3836else
3837
3838 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3839 if test "x$LINE" != x ; then
3840 eval "DEFAULT_$LINE"
3841 else
3842 no_cache=1
3843 fi
3844
3845 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3846
3847fi
3848
3849
3850 eval "$ac_cv_use_controls"
3851 if test "$no_cache" != 1; then
3852 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3853 fi
3854
3855 if test "$wxUSE_CONTROLS" = yes; then
3856 echo "$ac_t""yes" 1>&6
3857 else
3858 echo "$ac_t""no" 1>&6
3859 fi
3860
3861
3862if test "$wxUSE_CONTROLS" = "yes"; then
3863 DEFAULT_wxUSE_ACCEL=yes
3864 DEFAULT_wxUSE_CARET=yes
3865 DEFAULT_wxUSE_COMBOBOX=yes
3866 DEFAULT_wxUSE_BMPBUTTON=yes
3867 DEFAULT_wxUSE_CHECKBOX=yes
3868 DEFAULT_wxUSE_CHECKLISTBOX=yes
3869 DEFAULT_wxUSE_CHOICE=yes
3870 DEFAULT_wxUSE_GAUGE=yes
3871 DEFAULT_wxUSE_GRID=yes
3872 DEFAULT_wxUSE_NEW_GRID=yes
3873 DEFAULT_wxUSE_IMAGLIST=yes
3874 DEFAULT_wxUSE_LISTBOX=yes
3875 DEFAULT_wxUSE_LISTCTRL=yes
3876 DEFAULT_wxUSE_NOTEBOOK=yes
3877 DEFAULT_wxUSE_RADIOBOX=yes
3878 DEFAULT_wxUSE_RADIOBTN=yes
3879 DEFAULT_wxUSE_SASH=yes
3880 DEFAULT_wxUSE_SCROLLBAR=yes
3881 DEFAULT_wxUSE_SLIDER=yes
3882 DEFAULT_wxUSE_SPINBTN=yes
3883 DEFAULT_wxUSE_SPLITTER=yes
3884 DEFAULT_wxUSE_STATBMP=yes
3885 DEFAULT_wxUSE_STATBOX=yes
3886 DEFAULT_wxUSE_STATLINE=yes
3887 DEFAULT_wxUSE_STATUSBAR=yes
3888 DEFAULT_wxUSE_TAB_DIALOG=yes
3889 DEFAULT_wxUSE_TOOLBAR=yes
3890 DEFAULT_wxUSE_TOOLTIPS=yes
3891 DEFAULT_wxUSE_TREECTRL=yes
3892elif test "$wxUSE_CONTROLS" = "no"; then
3893 DEFAULT_wxUSE_ACCEL=no
3894 DEFAULT_wxUSE_CARET=no
3895 DEFAULT_wxUSE_COMBOBOX=no
3896 DEFAULT_wxUSE_BMPBUTTON=no
3897 DEFAULT_wxUSE_CHECKBOX=no
3898 DEFAULT_wxUSE_CHECKLISTBOX=no
3899 DEFAULT_wxUSE_CHOICE=no
3900 DEFAULT_wxUSE_GAUGE=no
3901 DEFAULT_wxUSE_GRID=no
3902 DEFAULT_wxUSE_NEW_GRID=no
3903 DEFAULT_wxUSE_IMAGLIST=no
3904 DEFAULT_wxUSE_LISTBOX=no
3905 DEFAULT_wxUSE_LISTCTRL=no
3906 DEFAULT_wxUSE_NOTEBOOK=no
3907 DEFAULT_wxUSE_RADIOBOX=no
3908 DEFAULT_wxUSE_RADIOBTN=no
3909 DEFAULT_wxUSE_SASH=no
3910 DEFAULT_wxUSE_SCROLLBAR=no
3911 DEFAULT_wxUSE_SLIDER=no
3912 DEFAULT_wxUSE_SPINBTN=no
3913 DEFAULT_wxUSE_SPLITTER=no
3914 DEFAULT_wxUSE_STATBMP=no
3915 DEFAULT_wxUSE_STATBOX=no
3916 DEFAULT_wxUSE_STATLINE=no
3917 DEFAULT_wxUSE_STATUSBAR=no
3918 DEFAULT_wxUSE_TAB_DIALOG=no
3919 DEFAULT_wxUSE_TOOLBAR=no
3920 DEFAULT_wxUSE_TOOLTIPS=no
3921 DEFAULT_wxUSE_TREECTRL=no
3922fi
3923
3924
3925 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
f512f90a 3926echo "configure:3927: checking "for --enable-accel"" >&5
10f2d63a
VZ
3927 no_cache=0
3928 # Check whether --enable-accel or --disable-accel was given.
3929if test "${enable_accel+set}" = set; then
3930 enableval="$enable_accel"
3931
3932 if test "$enableval" = yes; then
3933 ac_cv_use_accel='wxUSE_ACCEL=yes'
3934 else
3935 ac_cv_use_accel='wxUSE_ACCEL=no'
3936 fi
3937
3938else
3939
3940 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3941 if test "x$LINE" != x ; then
3942 eval "DEFAULT_$LINE"
3943 else
3944 no_cache=1
3945 fi
3946
3947 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3948
3949fi
3950
3951
3952 eval "$ac_cv_use_accel"
3953 if test "$no_cache" != 1; then
3954 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3955 fi
3956
3957 if test "$wxUSE_ACCEL" = yes; then
3958 echo "$ac_t""yes" 1>&6
3959 else
3960 echo "$ac_t""no" 1>&6
3961 fi
3962
3963
3964 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
f512f90a 3965echo "configure:3966: checking "for --enable-caret"" >&5
10f2d63a
VZ
3966 no_cache=0
3967 # Check whether --enable-caret or --disable-caret was given.
3968if test "${enable_caret+set}" = set; then
3969 enableval="$enable_caret"
3970
3971 if test "$enableval" = yes; then
3972 ac_cv_use_caret='wxUSE_CARET=yes'
3973 else
3974 ac_cv_use_caret='wxUSE_CARET=no'
3975 fi
3976
3977else
3978
3979 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3980 if test "x$LINE" != x ; then
3981 eval "DEFAULT_$LINE"
3982 else
3983 no_cache=1
3984 fi
3985
3986 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3987
3988fi
3989
3990
3991 eval "$ac_cv_use_caret"
3992 if test "$no_cache" != 1; then
3993 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
3994 fi
3995
3996 if test "$wxUSE_CARET" = yes; then
3997 echo "$ac_t""yes" 1>&6
3998 else
3999 echo "$ac_t""no" 1>&6
4000 fi
4001
4002
4003 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
f512f90a 4004echo "configure:4005: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4005 no_cache=0
4006 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4007if test "${enable_bmpbutton+set}" = set; then
4008 enableval="$enable_bmpbutton"
4009
4010 if test "$enableval" = yes; then
4011 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4012 else
4013 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4014 fi
4015
4016else
4017
4018 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4019 if test "x$LINE" != x ; then
4020 eval "DEFAULT_$LINE"
4021 else
4022 no_cache=1
4023 fi
4024
4025 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4026
4027fi
4028
4029
4030 eval "$ac_cv_use_bmpbutton"
4031 if test "$no_cache" != 1; then
4032 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4033 fi
4034
4035 if test "$wxUSE_BMPBUTTON" = yes; then
4036 echo "$ac_t""yes" 1>&6
4037 else
4038 echo "$ac_t""no" 1>&6
4039 fi
4040
4041
4042 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
f512f90a 4043echo "configure:4044: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4044 no_cache=0
4045 # Check whether --enable-checkbox or --disable-checkbox was given.
4046if test "${enable_checkbox+set}" = set; then
4047 enableval="$enable_checkbox"
4048
4049 if test "$enableval" = yes; then
4050 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4051 else
4052 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4053 fi
4054
4055else
4056
4057 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4058 if test "x$LINE" != x ; then
4059 eval "DEFAULT_$LINE"
4060 else
4061 no_cache=1
4062 fi
4063
4064 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4065
4066fi
4067
4068
4069 eval "$ac_cv_use_checkbox"
4070 if test "$no_cache" != 1; then
4071 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4072 fi
4073
4074 if test "$wxUSE_CHECKBOX" = yes; then
4075 echo "$ac_t""yes" 1>&6
4076 else
4077 echo "$ac_t""no" 1>&6
4078 fi
4079
4080
4081 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
f512f90a 4082echo "configure:4083: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4083 no_cache=0
4084 # Check whether --enable-checklst or --disable-checklst was given.
4085if test "${enable_checklst+set}" = set; then
4086 enableval="$enable_checklst"
4087
4088 if test "$enableval" = yes; then
4089 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4090 else
4091 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4092 fi
4093
4094else
4095
4096 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4097 if test "x$LINE" != x ; then
4098 eval "DEFAULT_$LINE"
4099 else
4100 no_cache=1
4101 fi
4102
4103 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4104
4105fi
4106
4107
4108 eval "$ac_cv_use_checklst"
4109 if test "$no_cache" != 1; then
4110 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4111 fi
4112
4113 if test "$wxUSE_CHECKLST" = yes; then
4114 echo "$ac_t""yes" 1>&6
4115 else
4116 echo "$ac_t""no" 1>&6
4117 fi
4118
4119
4120 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
f512f90a 4121echo "configure:4122: checking "for --enable-choice"" >&5
10f2d63a
VZ
4122 no_cache=0
4123 # Check whether --enable-choice or --disable-choice was given.
4124if test "${enable_choice+set}" = set; then
4125 enableval="$enable_choice"
4126
4127 if test "$enableval" = yes; then
4128 ac_cv_use_choice='wxUSE_CHOICE=yes'
4129 else
4130 ac_cv_use_choice='wxUSE_CHOICE=no'
4131 fi
4132
4133else
4134
4135 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4136 if test "x$LINE" != x ; then
4137 eval "DEFAULT_$LINE"
4138 else
4139 no_cache=1
4140 fi
4141
4142 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4143
4144fi
4145
4146
4147 eval "$ac_cv_use_choice"
4148 if test "$no_cache" != 1; then
4149 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4150 fi
4151
4152 if test "$wxUSE_CHOICE" = yes; then
4153 echo "$ac_t""yes" 1>&6
4154 else
4155 echo "$ac_t""no" 1>&6
4156 fi
4157
4158
4159 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
f512f90a 4160echo "configure:4161: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4161 no_cache=0
4162 # Check whether --enable-combobox or --disable-combobox was given.
4163if test "${enable_combobox+set}" = set; then
4164 enableval="$enable_combobox"
4165
4166 if test "$enableval" = yes; then
4167 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4168 else
4169 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4170 fi
4171
4172else
4173
4174 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4175 if test "x$LINE" != x ; then
4176 eval "DEFAULT_$LINE"
4177 else
4178 no_cache=1
4179 fi
4180
4181 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4182
4183fi
4184
4185
4186 eval "$ac_cv_use_combobox"
4187 if test "$no_cache" != 1; then
4188 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4189 fi
4190
4191 if test "$wxUSE_COMBOBOX" = yes; then
4192 echo "$ac_t""yes" 1>&6
4193 else
4194 echo "$ac_t""no" 1>&6
4195 fi
4196
4197
4198 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
f512f90a 4199echo "configure:4200: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4200 no_cache=0
4201 # Check whether --enable-gauge or --disable-gauge was given.
4202if test "${enable_gauge+set}" = set; then
4203 enableval="$enable_gauge"
4204
4205 if test "$enableval" = yes; then
4206 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4207 else
4208 ac_cv_use_gauge='wxUSE_GAUGE=no'
4209 fi
4210
4211else
4212
4213 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4214 if test "x$LINE" != x ; then
4215 eval "DEFAULT_$LINE"
4216 else
4217 no_cache=1
4218 fi
4219
4220 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4221
4222fi
4223
4224
4225 eval "$ac_cv_use_gauge"
4226 if test "$no_cache" != 1; then
4227 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4228 fi
4229
4230 if test "$wxUSE_GAUGE" = yes; then
4231 echo "$ac_t""yes" 1>&6
4232 else
4233 echo "$ac_t""no" 1>&6
4234 fi
4235
4236
4237 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
f512f90a 4238echo "configure:4239: checking "for --enable-grid"" >&5
10f2d63a
VZ
4239 no_cache=0
4240 # Check whether --enable-grid or --disable-grid was given.
4241if test "${enable_grid+set}" = set; then
4242 enableval="$enable_grid"
4243
4244 if test "$enableval" = yes; then
4245 ac_cv_use_grid='wxUSE_GRID=yes'
4246 else
4247 ac_cv_use_grid='wxUSE_GRID=no'
4248 fi
4249
4250else
4251
4252 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4253 if test "x$LINE" != x ; then
4254 eval "DEFAULT_$LINE"
4255 else
4256 no_cache=1
4257 fi
4258
4259 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4260
4261fi
4262
4263
4264 eval "$ac_cv_use_grid"
4265 if test "$no_cache" != 1; then
4266 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4267 fi
4268
4269 if test "$wxUSE_GRID" = yes; then
4270 echo "$ac_t""yes" 1>&6
4271 else
4272 echo "$ac_t""no" 1>&6
4273 fi
4274
4275
4276 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
f512f90a 4277echo "configure:4278: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4278 no_cache=0
4279 # Check whether --enable-newgrid or --disable-newgrid was given.
4280if test "${enable_newgrid+set}" = set; then
4281 enableval="$enable_newgrid"
4282
4283 if test "$enableval" = yes; then
4284 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4285 else
4286 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4287 fi
4288
4289else
4290
4291 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4292 if test "x$LINE" != x ; then
4293 eval "DEFAULT_$LINE"
4294 else
4295 no_cache=1
4296 fi
4297
4298 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4299
4300fi
4301
4302
4303 eval "$ac_cv_use_newgrid"
4304 if test "$no_cache" != 1; then
4305 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4306 fi
4307
4308 if test "$wxUSE_NEW_GRID" = yes; then
4309 echo "$ac_t""yes" 1>&6
4310 else
4311 echo "$ac_t""no" 1>&6
4312 fi
4313
4314
4315 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
f512f90a 4316echo "configure:4317: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4317 no_cache=0
4318 # Check whether --enable-imaglist or --disable-imaglist was given.
4319if test "${enable_imaglist+set}" = set; then
4320 enableval="$enable_imaglist"
4321
4322 if test "$enableval" = yes; then
4323 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4324 else
4325 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4326 fi
4327
4328else
4329
4330 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4331 if test "x$LINE" != x ; then
4332 eval "DEFAULT_$LINE"
4333 else
4334 no_cache=1
4335 fi
4336
4337 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4338
4339fi
4340
4341
4342 eval "$ac_cv_use_imaglist"
4343 if test "$no_cache" != 1; then
4344 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4345 fi
4346
4347 if test "$wxUSE_IMAGLIST" = yes; then
4348 echo "$ac_t""yes" 1>&6
4349 else
4350 echo "$ac_t""no" 1>&6
4351 fi
4352
4353
4354 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
f512f90a 4355echo "configure:4356: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4356 no_cache=0
4357 # Check whether --enable-listbox or --disable-listbox was given.
4358if test "${enable_listbox+set}" = set; then
4359 enableval="$enable_listbox"
4360
4361 if test "$enableval" = yes; then
4362 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4363 else
4364 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4365 fi
4366
4367else
4368
4369 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4370 if test "x$LINE" != x ; then
4371 eval "DEFAULT_$LINE"
4372 else
4373 no_cache=1
4374 fi
4375
4376 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4377
4378fi
4379
4380
4381 eval "$ac_cv_use_listbox"
4382 if test "$no_cache" != 1; then
4383 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4384 fi
4385
4386 if test "$wxUSE_LISTBOX" = yes; then
4387 echo "$ac_t""yes" 1>&6
4388 else
4389 echo "$ac_t""no" 1>&6
4390 fi
4391
4392
4393 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
f512f90a 4394echo "configure:4395: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4395 no_cache=0
4396 # Check whether --enable-listctrl or --disable-listctrl was given.
4397if test "${enable_listctrl+set}" = set; then
4398 enableval="$enable_listctrl"
4399
4400 if test "$enableval" = yes; then
4401 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4402 else
4403 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4404 fi
4405
4406else
4407
4408 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4409 if test "x$LINE" != x ; then
4410 eval "DEFAULT_$LINE"
4411 else
4412 no_cache=1
4413 fi
4414
4415 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4416
4417fi
4418
4419
4420 eval "$ac_cv_use_listctrl"
4421 if test "$no_cache" != 1; then
4422 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4423 fi
4424
4425 if test "$wxUSE_LISTCTRL" = yes; then
4426 echo "$ac_t""yes" 1>&6
4427 else
4428 echo "$ac_t""no" 1>&6
4429 fi
4430
4431
4432 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
f512f90a 4433echo "configure:4434: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4434 no_cache=0
4435 # Check whether --enable-notebook or --disable-notebook was given.
4436if test "${enable_notebook+set}" = set; then
4437 enableval="$enable_notebook"
4438
4439 if test "$enableval" = yes; then
4440 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4441 else
4442 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4443 fi
4444
4445else
4446
4447 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4448 if test "x$LINE" != x ; then
4449 eval "DEFAULT_$LINE"
4450 else
4451 no_cache=1
4452 fi
4453
4454 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4455
4456fi
4457
4458
4459 eval "$ac_cv_use_notebook"
4460 if test "$no_cache" != 1; then
4461 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4462 fi
4463
4464 if test "$wxUSE_NOTEBOOK" = yes; then
4465 echo "$ac_t""yes" 1>&6
4466 else
4467 echo "$ac_t""no" 1>&6
4468 fi
4469
4470
4471 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
f512f90a 4472echo "configure:4473: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4473 no_cache=0
4474 # Check whether --enable-radiobox or --disable-radiobox was given.
4475if test "${enable_radiobox+set}" = set; then
4476 enableval="$enable_radiobox"
4477
4478 if test "$enableval" = yes; then
4479 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4480 else
4481 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4482 fi
4483
4484else
4485
4486 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4487 if test "x$LINE" != x ; then
4488 eval "DEFAULT_$LINE"
4489 else
4490 no_cache=1
4491 fi
4492
4493 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4494
4495fi
4496
4497
4498 eval "$ac_cv_use_radiobox"
4499 if test "$no_cache" != 1; then
4500 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4501 fi
4502
4503 if test "$wxUSE_RADIOBOX" = yes; then
4504 echo "$ac_t""yes" 1>&6
4505 else
4506 echo "$ac_t""no" 1>&6
4507 fi
4508
4509
4510 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
f512f90a 4511echo "configure:4512: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4512 no_cache=0
4513 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4514if test "${enable_radiobtn+set}" = set; then
4515 enableval="$enable_radiobtn"
4516
4517 if test "$enableval" = yes; then
4518 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4519 else
4520 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4521 fi
4522
4523else
4524
4525 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4526 if test "x$LINE" != x ; then
4527 eval "DEFAULT_$LINE"
4528 else
4529 no_cache=1
4530 fi
4531
4532 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4533
4534fi
4535
4536
4537 eval "$ac_cv_use_radiobtn"
4538 if test "$no_cache" != 1; then
4539 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4540 fi
4541
4542 if test "$wxUSE_RADIOBTN" = yes; then
4543 echo "$ac_t""yes" 1>&6
4544 else
4545 echo "$ac_t""no" 1>&6
4546 fi
4547
4548
4549 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
f512f90a 4550echo "configure:4551: checking "for --enable-sash"" >&5
10f2d63a
VZ
4551 no_cache=0
4552 # Check whether --enable-sash or --disable-sash was given.
4553if test "${enable_sash+set}" = set; then
4554 enableval="$enable_sash"
4555
4556 if test "$enableval" = yes; then
4557 ac_cv_use_sash='wxUSE_SASH=yes'
4558 else
4559 ac_cv_use_sash='wxUSE_SASH=no'
4560 fi
4561
4562else
4563
4564 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4565 if test "x$LINE" != x ; then
4566 eval "DEFAULT_$LINE"
4567 else
4568 no_cache=1
4569 fi
4570
4571 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4572
4573fi
4574
4575
4576 eval "$ac_cv_use_sash"
4577 if test "$no_cache" != 1; then
4578 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4579 fi
4580
4581 if test "$wxUSE_SASH" = yes; then
4582 echo "$ac_t""yes" 1>&6
4583 else
4584 echo "$ac_t""no" 1>&6
4585 fi
4586
4587
4588 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
f512f90a 4589echo "configure:4590: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4590 no_cache=0
4591 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4592if test "${enable_scrollbar+set}" = set; then
4593 enableval="$enable_scrollbar"
4594
4595 if test "$enableval" = yes; then
4596 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4597 else
4598 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4599 fi
4600
4601else
4602
4603 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4604 if test "x$LINE" != x ; then
4605 eval "DEFAULT_$LINE"
4606 else
4607 no_cache=1
4608 fi
4609
4610 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4611
4612fi
4613
4614
4615 eval "$ac_cv_use_scrollbar"
4616 if test "$no_cache" != 1; then
4617 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4618 fi
4619
4620 if test "$wxUSE_SCROLLBAR" = yes; then
4621 echo "$ac_t""yes" 1>&6
4622 else
4623 echo "$ac_t""no" 1>&6
4624 fi
4625
4626
4627 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
f512f90a 4628echo "configure:4629: checking "for --enable-slider"" >&5
10f2d63a
VZ
4629 no_cache=0
4630 # Check whether --enable-slider or --disable-slider was given.
4631if test "${enable_slider+set}" = set; then
4632 enableval="$enable_slider"
4633
4634 if test "$enableval" = yes; then
4635 ac_cv_use_slider='wxUSE_SLIDER=yes'
4636 else
4637 ac_cv_use_slider='wxUSE_SLIDER=no'
4638 fi
4639
4640else
4641
4642 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4643 if test "x$LINE" != x ; then
4644 eval "DEFAULT_$LINE"
4645 else
4646 no_cache=1
4647 fi
4648
4649 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4650
4651fi
4652
4653
4654 eval "$ac_cv_use_slider"
4655 if test "$no_cache" != 1; then
4656 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4657 fi
4658
4659 if test "$wxUSE_SLIDER" = yes; then
4660 echo "$ac_t""yes" 1>&6
4661 else
4662 echo "$ac_t""no" 1>&6
4663 fi
4664
4665
4666 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
f512f90a 4667echo "configure:4668: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4668 no_cache=0
4669 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4670if test "${enable_spinbtn+set}" = set; then
4671 enableval="$enable_spinbtn"
4672
4673 if test "$enableval" = yes; then
4674 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4675 else
4676 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4677 fi
4678
4679else
4680
4681 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4682 if test "x$LINE" != x ; then
4683 eval "DEFAULT_$LINE"
4684 else
4685 no_cache=1
4686 fi
4687
4688 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4689
4690fi
4691
4692
4693 eval "$ac_cv_use_spinbtn"
4694 if test "$no_cache" != 1; then
4695 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4696 fi
4697
4698 if test "$wxUSE_SPINBTN" = yes; then
4699 echo "$ac_t""yes" 1>&6
4700 else
4701 echo "$ac_t""no" 1>&6
4702 fi
4703
4704
4705 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
f512f90a 4706echo "configure:4707: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4707 no_cache=0
4708 # Check whether --enable-splitter or --disable-splitter was given.
4709if test "${enable_splitter+set}" = set; then
4710 enableval="$enable_splitter"
4711
4712 if test "$enableval" = yes; then
4713 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4714 else
4715 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4716 fi
4717
4718else
4719
4720 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4721 if test "x$LINE" != x ; then
4722 eval "DEFAULT_$LINE"
4723 else
4724 no_cache=1
4725 fi
4726
4727 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4728
4729fi
4730
4731
4732 eval "$ac_cv_use_splitter"
4733 if test "$no_cache" != 1; then
4734 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4735 fi
4736
4737 if test "$wxUSE_SPLITTER" = yes; then
4738 echo "$ac_t""yes" 1>&6
4739 else
4740 echo "$ac_t""no" 1>&6
4741 fi
4742
4743
4744 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
f512f90a 4745echo "configure:4746: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4746 no_cache=0
4747 # Check whether --enable-statbmp or --disable-statbmp was given.
4748if test "${enable_statbmp+set}" = set; then
4749 enableval="$enable_statbmp"
4750
4751 if test "$enableval" = yes; then
4752 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4753 else
4754 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4755 fi
4756
4757else
4758
4759 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4760 if test "x$LINE" != x ; then
4761 eval "DEFAULT_$LINE"
4762 else
4763 no_cache=1
4764 fi
4765
4766 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4767
4768fi
4769
4770
4771 eval "$ac_cv_use_statbmp"
4772 if test "$no_cache" != 1; then
4773 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4774 fi
4775
4776 if test "$wxUSE_STATBMP" = yes; then
4777 echo "$ac_t""yes" 1>&6
4778 else
4779 echo "$ac_t""no" 1>&6
4780 fi
4781
4782
4783 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
f512f90a 4784echo "configure:4785: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4785 no_cache=0
4786 # Check whether --enable-statbox or --disable-statbox was given.
4787if test "${enable_statbox+set}" = set; then
4788 enableval="$enable_statbox"
4789
4790 if test "$enableval" = yes; then
4791 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4792 else
4793 ac_cv_use_statbox='wxUSE_STATBOX=no'
4794 fi
4795
4796else
4797
4798 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4799 if test "x$LINE" != x ; then
4800 eval "DEFAULT_$LINE"
4801 else
4802 no_cache=1
4803 fi
4804
4805 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4806
4807fi
4808
4809
4810 eval "$ac_cv_use_statbox"
4811 if test "$no_cache" != 1; then
4812 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4813 fi
4814
4815 if test "$wxUSE_STATBOX" = yes; then
4816 echo "$ac_t""yes" 1>&6
4817 else
4818 echo "$ac_t""no" 1>&6
4819 fi
4820
4821
4822 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
f512f90a 4823echo "configure:4824: checking "for --enable-statline"" >&5
10f2d63a
VZ
4824 no_cache=0
4825 # Check whether --enable-statline or --disable-statline was given.
4826if test "${enable_statline+set}" = set; then
4827 enableval="$enable_statline"
4828
4829 if test "$enableval" = yes; then
4830 ac_cv_use_statline='wxUSE_STATLINE=yes'
4831 else
4832 ac_cv_use_statline='wxUSE_STATLINE=no'
4833 fi
4834
4835else
4836
4837 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4838 if test "x$LINE" != x ; then
4839 eval "DEFAULT_$LINE"
4840 else
4841 no_cache=1
4842 fi
4843
4844 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4845
4846fi
4847
4848
4849 eval "$ac_cv_use_statline"
4850 if test "$no_cache" != 1; then
4851 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4852 fi
4853
4854 if test "$wxUSE_STATLINE" = yes; then
4855 echo "$ac_t""yes" 1>&6
4856 else
4857 echo "$ac_t""no" 1>&6
4858 fi
4859
4860
4861 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
f512f90a 4862echo "configure:4863: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
4863 no_cache=0
4864 # Check whether --enable-statusbar or --disable-statusbar was given.
4865if test "${enable_statusbar+set}" = set; then
4866 enableval="$enable_statusbar"
4867
4868 if test "$enableval" = yes; then
4869 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4870 else
4871 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4872 fi
4873
4874else
4875
4876 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4877 if test "x$LINE" != x ; then
4878 eval "DEFAULT_$LINE"
4879 else
4880 no_cache=1
4881 fi
4882
4883 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4884
4885fi
4886
4887
4888 eval "$ac_cv_use_statusbar"
4889 if test "$no_cache" != 1; then
4890 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4891 fi
4892
4893 if test "$wxUSE_STATUSBAR" = yes; then
4894 echo "$ac_t""yes" 1>&6
4895 else
4896 echo "$ac_t""no" 1>&6
4897 fi
4898
4899
4900 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
f512f90a 4901echo "configure:4902: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
4902 no_cache=0
4903 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4904if test "${enable_tabdialog+set}" = set; then
4905 enableval="$enable_tabdialog"
4906
4907 if test "$enableval" = yes; then
4908 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4909 else
4910 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4911 fi
4912
4913else
4914
4915 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4916 if test "x$LINE" != x ; then
4917 eval "DEFAULT_$LINE"
4918 else
4919 no_cache=1
4920 fi
4921
4922 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4923
4924fi
4925
4926
4927 eval "$ac_cv_use_tabdialog"
4928 if test "$no_cache" != 1; then
4929 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4930 fi
4931
4932 if test "$wxUSE_TABDIALOG" = yes; then
4933 echo "$ac_t""yes" 1>&6
4934 else
4935 echo "$ac_t""no" 1>&6
4936 fi
4937
4938
4939 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
f512f90a 4940echo "configure:4941: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
4941 no_cache=0
4942 # Check whether --enable-toolbar or --disable-toolbar was given.
4943if test "${enable_toolbar+set}" = set; then
4944 enableval="$enable_toolbar"
4945
4946 if test "$enableval" = yes; then
4947 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4948 else
4949 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
4950 fi
4951
4952else
4953
4954 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
4955 if test "x$LINE" != x ; then
4956 eval "DEFAULT_$LINE"
4957 else
4958 no_cache=1
4959 fi
4960
4961 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
4962
4963fi
4964
4965
4966 eval "$ac_cv_use_toolbar"
4967 if test "$no_cache" != 1; then
4968 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
4969 fi
4970
4971 if test "$wxUSE_TOOLBAR" = yes; then
4972 echo "$ac_t""yes" 1>&6
4973 else
4974 echo "$ac_t""no" 1>&6
4975 fi
4976
4977
4978 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
f512f90a 4979echo "configure:4980: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
4980 no_cache=0
4981 # Check whether --enable-treectrl or --disable-treectrl was given.
4982if test "${enable_treectrl+set}" = set; then
4983 enableval="$enable_treectrl"
4984
4985 if test "$enableval" = yes; then
4986 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
4987 else
4988 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
4989 fi
4990
4991else
4992
4993 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
4994 if test "x$LINE" != x ; then
4995 eval "DEFAULT_$LINE"
4996 else
4997 no_cache=1
4998 fi
4999
5000 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5001
5002fi
5003
5004
5005 eval "$ac_cv_use_treectrl"
5006 if test "$no_cache" != 1; then
5007 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5008 fi
5009
5010 if test "$wxUSE_TREECTRL" = yes; then
5011 echo "$ac_t""yes" 1>&6
5012 else
5013 echo "$ac_t""no" 1>&6
5014 fi
5015
5016
5017
5018
5019 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
f512f90a 5020echo "configure:5021: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5021 no_cache=0
5022 # Check whether --enable-commondlg or --disable-commondlg was given.
5023if test "${enable_commondlg+set}" = set; then
5024 enableval="$enable_commondlg"
5025
5026 if test "$enableval" = yes; then
5027 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5028 else
5029 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5030 fi
5031
5032else
5033
5034 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5035 if test "x$LINE" != x ; then
5036 eval "DEFAULT_$LINE"
5037 else
5038 no_cache=1
5039 fi
5040
5041 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5042
5043fi
5044
5045
5046 eval "$ac_cv_use_commondlg"
5047 if test "$no_cache" != 1; then
5048 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5049 fi
5050
5051 if test "$wxUSE_COMMONDLGS" = yes; then
5052 echo "$ac_t""yes" 1>&6
5053 else
5054 echo "$ac_t""no" 1>&6
5055 fi
5056
5057
5058 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
f512f90a 5059echo "configure:5060: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5060 no_cache=0
5061 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5062if test "${enable_dirdlg+set}" = set; then
5063 enableval="$enable_dirdlg"
5064
5065 if test "$enableval" = yes; then
5066 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5067 else
5068 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5069 fi
5070
5071else
5072
5073 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5074 if test "x$LINE" != x ; then
5075 eval "DEFAULT_$LINE"
5076 else
5077 no_cache=1
5078 fi
5079
5080 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5081
5082fi
5083
5084
5085 eval "$ac_cv_use_dirdlg"
5086 if test "$no_cache" != 1; then
5087 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5088 fi
5089
5090 if test "$wxUSE_DIRDLG" = yes; then
5091 echo "$ac_t""yes" 1>&6
5092 else
5093 echo "$ac_t""no" 1>&6
5094 fi
5095
5096
5097 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
f512f90a 5098echo "configure:5099: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5099 no_cache=0
5100 # Check whether --enable-textdlg or --disable-textdlg was given.
5101if test "${enable_textdlg+set}" = set; then
5102 enableval="$enable_textdlg"
5103
5104 if test "$enableval" = yes; then
5105 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5106 else
5107 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5108 fi
5109
5110else
5111
5112 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5113 if test "x$LINE" != x ; then
5114 eval "DEFAULT_$LINE"
5115 else
5116 no_cache=1
5117 fi
5118
5119 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5120
5121fi
5122
5123
5124 eval "$ac_cv_use_textdlg"
5125 if test "$no_cache" != 1; then
5126 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5127 fi
5128
5129 if test "$wxUSE_TEXTDLG" = yes; then
5130 echo "$ac_t""yes" 1>&6
5131 else
5132 echo "$ac_t""no" 1>&6
5133 fi
5134
5135
5136 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
f512f90a 5137echo "configure:5138: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5138 no_cache=0
5139 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5140if test "${enable_tipdlg+set}" = set; then
5141 enableval="$enable_tipdlg"
5142
5143 if test "$enableval" = yes; then
5144 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5145 else
5146 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5147 fi
5148
5149else
5150
5151 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5152 if test "x$LINE" != x ; then
5153 eval "DEFAULT_$LINE"
5154 else
5155 no_cache=1
5156 fi
5157
5158 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5159
5160fi
5161
5162
5163 eval "$ac_cv_use_tipdlg"
5164 if test "$no_cache" != 1; then
5165 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5166 fi
5167
5168 if test "$wxUSE_STARTUP_TIPS" = yes; then
5169 echo "$ac_t""yes" 1>&6
5170 else
5171 echo "$ac_t""no" 1>&6
5172 fi
5173
5174
5175 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
f512f90a 5176echo "configure:5177: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5177 no_cache=0
5178 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5179if test "${enable_progressdlg+set}" = set; then
5180 enableval="$enable_progressdlg"
5181
5182 if test "$enableval" = yes; then
5183 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5184 else
5185 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5186 fi
5187
5188else
5189
5190 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5191 if test "x$LINE" != x ; then
5192 eval "DEFAULT_$LINE"
5193 else
5194 no_cache=1
5195 fi
5196
5197 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5198
5199fi
5200
5201
5202 eval "$ac_cv_use_progressdlg"
5203 if test "$no_cache" != 1; then
5204 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5205 fi
5206
5207 if test "$wxUSE_PROGRESSDLG" = yes; then
5208 echo "$ac_t""yes" 1>&6
5209 else
5210 echo "$ac_t""no" 1>&6
5211 fi
5212
5213
5214 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
f512f90a 5215echo "configure:5216: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5216 no_cache=0
5217 # Check whether --enable-miniframe or --disable-miniframe was given.
5218if test "${enable_miniframe+set}" = set; then
5219 enableval="$enable_miniframe"
5220
5221 if test "$enableval" = yes; then
5222 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5223 else
5224 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5225 fi
5226
5227else
5228
5229 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5230 if test "x$LINE" != x ; then
5231 eval "DEFAULT_$LINE"
5232 else
5233 no_cache=1
5234 fi
5235
5236 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5237
5238fi
5239
5240
5241 eval "$ac_cv_use_miniframe"
5242 if test "$no_cache" != 1; then
5243 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5244 fi
5245
5246 if test "$wxUSE_MINIFRAME" = yes; then
5247 echo "$ac_t""yes" 1>&6
5248 else
5249 echo "$ac_t""no" 1>&6
5250 fi
5251
5252
5253 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
f512f90a 5254echo "configure:5255: checking "for --enable-html"" >&5
10f2d63a
VZ
5255 no_cache=0
5256 # Check whether --enable-html or --disable-html was given.
5257if test "${enable_html+set}" = set; then
5258 enableval="$enable_html"
5259
5260 if test "$enableval" = yes; then
5261 ac_cv_use_html='wxUSE_HTML=yes'
5262 else
5263 ac_cv_use_html='wxUSE_HTML=no'
5264 fi
5265
5266else
5267
5268 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5269 if test "x$LINE" != x ; then
5270 eval "DEFAULT_$LINE"
5271 else
5272 no_cache=1
5273 fi
5274
5275 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5276
5277fi
5278
5279
5280 eval "$ac_cv_use_html"
5281 if test "$no_cache" != 1; then
5282 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5283 fi
5284
5285 if test "$wxUSE_HTML" = yes; then
5286 echo "$ac_t""yes" 1>&6
5287 else
5288 echo "$ac_t""no" 1>&6
5289 fi
5290
5291
5292 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
f512f90a 5293echo "configure:5294: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5294 no_cache=0
5295 # Check whether --enable-tooltips or --disable-tooltips was given.
5296if test "${enable_tooltips+set}" = set; then
5297 enableval="$enable_tooltips"
5298
5299 if test "$enableval" = yes; then
5300 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5301 else
5302 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5303 fi
5304
5305else
5306
5307 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5308 if test "x$LINE" != x ; then
5309 eval "DEFAULT_$LINE"
5310 else
5311 no_cache=1
5312 fi
5313
5314 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5315
5316fi
5317
5318
5319 eval "$ac_cv_use_tooltips"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_TOOLTIPS" = yes; then
5325 echo "$ac_t""yes" 1>&6
5326 else
5327 echo "$ac_t""no" 1>&6
5328 fi
5329
5330
5331 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
f512f90a 5332echo "configure:5333: checking "for --enable-splines"" >&5
10f2d63a
VZ
5333 no_cache=0
5334 # Check whether --enable-splines or --disable-splines was given.
5335if test "${enable_splines+set}" = set; then
5336 enableval="$enable_splines"
5337
5338 if test "$enableval" = yes; then
5339 ac_cv_use_splines='wxUSE_SPLINES=yes'
5340 else
5341 ac_cv_use_splines='wxUSE_SPLINES=no'
5342 fi
5343
5344else
5345
5346 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5347 if test "x$LINE" != x ; then
5348 eval "DEFAULT_$LINE"
5349 else
5350 no_cache=1
5351 fi
5352
5353 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5354
5355fi
5356
5357
5358 eval "$ac_cv_use_splines"
5359 if test "$no_cache" != 1; then
5360 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5361 fi
5362
5363 if test "$wxUSE_SPLINES" = yes; then
5364 echo "$ac_t""yes" 1>&6
5365 else
5366 echo "$ac_t""no" 1>&6
5367 fi
5368
5369
5370 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
f512f90a 5371echo "configure:5372: checking "for --enable-validators"" >&5
10f2d63a
VZ
5372 no_cache=0
5373 # Check whether --enable-validators or --disable-validators was given.
5374if test "${enable_validators+set}" = set; then
5375 enableval="$enable_validators"
5376
5377 if test "$enableval" = yes; then
5378 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5379 else
5380 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5381 fi
5382
5383else
5384
5385 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5386 if test "x$LINE" != x ; then
5387 eval "DEFAULT_$LINE"
5388 else
5389 no_cache=1
5390 fi
5391
5392 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5393
5394fi
5395
5396
5397 eval "$ac_cv_use_validators"
5398 if test "$no_cache" != 1; then
5399 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5400 fi
5401
5402 if test "$wxUSE_VALIDATORS" = yes; then
5403 echo "$ac_t""yes" 1>&6
5404 else
5405 echo "$ac_t""no" 1>&6
5406 fi
5407
5408
5409 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
f512f90a 5410echo "configure:5411: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5411 no_cache=0
5412 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5413if test "${enable_busyinfo+set}" = set; then
5414 enableval="$enable_busyinfo"
5415
5416 if test "$enableval" = yes; then
5417 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5418 else
5419 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5420 fi
5421
5422else
5423
5424 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5425 if test "x$LINE" != x ; then
5426 eval "DEFAULT_$LINE"
5427 else
5428 no_cache=1
5429 fi
5430
5431 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5432
5433fi
5434
5435
5436 eval "$ac_cv_use_busyinfo"
5437 if test "$no_cache" != 1; then
5438 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5439 fi
5440
5441 if test "$wxUSE_BUSYINFO" = yes; then
5442 echo "$ac_t""yes" 1>&6
5443 else
5444 echo "$ac_t""no" 1>&6
5445 fi
5446
5447
5448
5449
5450 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
f512f90a 5451echo "configure:5452: checking "for --enable-gif"" >&5
10f2d63a
VZ
5452 no_cache=0
5453 # Check whether --enable-gif or --disable-gif was given.
5454if test "${enable_gif+set}" = set; then
5455 enableval="$enable_gif"
5456
5457 if test "$enableval" = yes; then
5458 ac_cv_use_gif='wxUSE_GIF=yes'
5459 else
5460 ac_cv_use_gif='wxUSE_GIF=no'
5461 fi
5462
5463else
5464
5465 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5466 if test "x$LINE" != x ; then
5467 eval "DEFAULT_$LINE"
5468 else
5469 no_cache=1
5470 fi
5471
5472 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5473
5474fi
5475
5476
5477 eval "$ac_cv_use_gif"
5478 if test "$no_cache" != 1; then
5479 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5480 fi
5481
5482 if test "$wxUSE_GIF" = yes; then
5483 echo "$ac_t""yes" 1>&6
5484 else
5485 echo "$ac_t""no" 1>&6
5486 fi
5487
5488
5489 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
f512f90a 5490echo "configure:5491: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5491 no_cache=0
5492 # Check whether --enable-pcx or --disable-pcx was given.
5493if test "${enable_pcx+set}" = set; then
5494 enableval="$enable_pcx"
5495
5496 if test "$enableval" = yes; then
5497 ac_cv_use_pcx='wxUSE_PCX=yes'
5498 else
5499 ac_cv_use_pcx='wxUSE_PCX=no'
5500 fi
5501
5502else
5503
5504 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5505 if test "x$LINE" != x ; then
5506 eval "DEFAULT_$LINE"
5507 else
5508 no_cache=1
5509 fi
5510
5511 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5512
5513fi
5514
5515
5516 eval "$ac_cv_use_pcx"
5517 if test "$no_cache" != 1; then
5518 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5519 fi
5520
5521 if test "$wxUSE_PCX" = yes; then
5522 echo "$ac_t""yes" 1>&6
5523 else
5524 echo "$ac_t""no" 1>&6
5525 fi
5526
5527
5528 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
f512f90a 5529echo "configure:5530: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5530 no_cache=0
5531 # Check whether --enable-pnm or --disable-pnm was given.
5532if test "${enable_pnm+set}" = set; then
5533 enableval="$enable_pnm"
5534
5535 if test "$enableval" = yes; then
5536 ac_cv_use_pnm='wxUSE_PNM=yes'
5537 else
5538 ac_cv_use_pnm='wxUSE_PNM=no'
5539 fi
5540
5541else
5542
5543 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5544 if test "x$LINE" != x ; then
5545 eval "DEFAULT_$LINE"
5546 else
5547 no_cache=1
5548 fi
5549
5550 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5551
5552fi
5553
5554
5555 eval "$ac_cv_use_pnm"
5556 if test "$no_cache" != 1; then
5557 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5558 fi
5559
5560 if test "$wxUSE_PNM" = yes; then
5561 echo "$ac_t""yes" 1>&6
5562 else
5563 echo "$ac_t""no" 1>&6
5564 fi
5565
5566
5567
5568 echo "saving argument cache $wx_arg_cache_file"
5569 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5570
5571
5572
5573echo $ac_n "checking for toolkit""... $ac_c" 1>&6
f512f90a 5574echo "configure:5575: checking for toolkit" >&5
10f2d63a
VZ
5575
5576if test "$wxUSE_GUI" = "yes"; then
5577
5578if test "$TOOLKIT_GIVEN" = 1; then
5579 for toolkit in `echo $ALL_TOOLKITS`; do
5580 var=wxUSE_$toolkit
5581 eval "value=\$${var}"
5582 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5583 done
5584else
5585 for toolkit in `echo $ALL_TOOLKITS`; do
5586 if test "$has_toolkit_in_cache" != 1; then
5587 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5588 else
5589 var=DEFAULT_wxUSE_$toolkit
5590 fi
5591 eval "wxUSE_$toolkit=\$${var}"
5592 done
5593fi
5594
5595NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5596
5597case "$NUM_TOOLKITS" in
5598 1)
5599 ;;
5600 0)
5601 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5602 ;;
5603 *)
5604 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5605esac
5606
5607for toolkit in `echo $ALL_TOOLKITS`; do
5608 var=wxUSE_$toolkit
5609 eval "value=\$${var}"
5610 if test "x$value" != x; then
5611 cache_var=CACHE_$toolkit
5612 eval "cache=\$${cache_var}"
5613 if test "$cache" = 1; then
5614 echo "$var=$value" >> ${wx_arg_cache_file}
5615 fi
5616 if test "$value" = 1; then
5617 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5618 fi
5619 fi
5620done
5621
5622else
5623 echo "$ac_t""base only" 1>&6
5624fi
5625
5626
5627cat > confcache <<\EOF
5628# This file is a shell script that caches the results of configure
5629# tests run on this system so they can be shared between configure
5630# scripts and configure runs. It is not useful on other systems.
5631# If it contains results you don't want to keep, you may remove or edit it.
5632#
5633# By default, configure uses ./config.cache as the cache file,
5634# creating it if it does not exist already. You can give configure
5635# the --cache-file=FILE option to use a different cache file; that is
5636# what configure does when it calls configure scripts in
5637# subdirectories, so they share the cache.
5638# Giving --cache-file=/dev/null disables caching, for debugging configure.
5639# config.status only pays attention to the cache file if you give it the
5640# --recheck option to rerun configure.
5641#
5642EOF
5643# The following way of writing the cache mishandles newlines in values,
5644# but we know of no workaround that is simple, portable, and efficient.
5645# So, don't put newlines in cache variables' values.
5646# Ultrix sh set writes to stderr and can't be redirected directly,
5647# and sets the high bit in the cache file unless we assign to the vars.
5648(set) 2>&1 |
5649 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5650 *ac_space=\ *)
5651 # `set' does not quote correctly, so add quotes (double-quote substitution
5652 # turns \\\\ into \\, and sed turns \\ into \).
5653 sed -n \
5654 -e "s/'/'\\\\''/g" \
5655 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5656 ;;
5657 *)
5658 # `set' quotes correctly as required by POSIX, so do not add quotes.
5659 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5660 ;;
5661 esac >> confcache
5662if cmp -s $cache_file confcache; then
5663 :
5664else
5665 if test -w $cache_file; then
5666 echo "updating cache $cache_file"
5667 cat confcache > $cache_file
5668 else
5669 echo "not updating unwritable cache $cache_file"
5670 fi
5671fi
5672rm -f confcache
5673
5674
5675if eval "test $host != $build"; then
5676 if eval "test $host_alias != NONE"; then
5677 CC=$host_alias-gcc
5678 CXX=$host_alias-c++
5679 AR=$host_alias-ar
5680 RANLIB=$host_alias-ranlib
5681 DLLTOOL=$host_alias-dlltool
5682 LD=$host_alias-ld
5683 NM=$host_alias-nm
5684 STRIP=$host_alias-strip
5685 fi
5686fi
5687
5688# Extract the first word of "gcc", so it can be a program name with args.
5689set dummy gcc; ac_word=$2
5690echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f512f90a 5691echo "configure:5692: checking for $ac_word" >&5
10f2d63a
VZ
5692if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5693 echo $ac_n "(cached) $ac_c" 1>&6
5694else
5695 if test -n "$CC"; then
5696 ac_cv_prog_CC="$CC" # Let the user override the test.
5697else
5698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5699 ac_dummy="$PATH"
5700 for ac_dir in $ac_dummy; do
5701 test -z "$ac_dir" && ac_dir=.
5702 if test -f $ac_dir/$ac_word; then
5703 ac_cv_prog_CC="gcc"
5704 break
5705 fi
5706 done
5707 IFS="$ac_save_ifs"
5708fi
5709fi
5710CC="$ac_cv_prog_CC"
5711if test -n "$CC"; then
5712 echo "$ac_t""$CC" 1>&6
5713else
5714 echo "$ac_t""no" 1>&6
5715fi
5716
5717if test -z "$CC"; then
5718 # Extract the first word of "cc", so it can be a program name with args.
5719set dummy cc; ac_word=$2
5720echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f512f90a 5721echo "configure:5722: checking for $ac_word" >&5
10f2d63a
VZ
5722if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5723 echo $ac_n "(cached) $ac_c" 1>&6
5724else
5725 if test -n "$CC"; then
5726 ac_cv_prog_CC="$CC" # Let the user override the test.
5727else
5728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5729 ac_prog_rejected=no
5730 ac_dummy="$PATH"
5731 for ac_dir in $ac_dummy; do
5732 test -z "$ac_dir" && ac_dir=.
5733 if test -f $ac_dir/$ac_word; then
5734 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5735 ac_prog_rejected=yes
5736 continue
5737 fi
5738 ac_cv_prog_CC="cc"
5739 break
5740 fi
5741 done
5742 IFS="$ac_save_ifs"
5743if test $ac_prog_rejected = yes; then
5744 # We found a bogon in the path, so make sure we never use it.
5745 set dummy $ac_cv_prog_CC
5746 shift
5747 if test $# -gt 0; then
5748 # We chose a different compiler from the bogus one.
5749 # However, it has the same basename, so the bogon will be chosen
5750 # first if we set CC to just the basename; use the full file name.
5751 shift
5752 set dummy "$ac_dir/$ac_word" "$@"
5753 shift
5754 ac_cv_prog_CC="$@"
5755 fi
5756fi
5757fi
5758fi
5759CC="$ac_cv_prog_CC"
5760if test -n "$CC"; then
5761 echo "$ac_t""$CC" 1>&6
5762else
5763 echo "$ac_t""no" 1>&6
5764fi
5765
5766 if test -z "$CC"; then
5767 case "`uname -s`" in
5768 *win32* | *WIN32*)
5769 # Extract the first word of "cl", so it can be a program name with args.
5770set dummy cl; ac_word=$2
5771echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f512f90a 5772echo "configure:5773: checking for $ac_word" >&5
10f2d63a
VZ
5773if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5774 echo $ac_n "(cached) $ac_c" 1>&6
5775else
5776 if test -n "$CC"; then
5777 ac_cv_prog_CC="$CC" # Let the user override the test.
5778else
5779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5780 ac_dummy="$PATH"
5781 for ac_dir in $ac_dummy; do
5782 test -z "$ac_dir" && ac_dir=.
5783 if test -f $ac_dir/$ac_word; then
5784 ac_cv_prog_CC="cl"
5785 break
5786 fi
5787 done
5788 IFS="$ac_save_ifs"
5789fi
5790fi
5791CC="$ac_cv_prog_CC"
5792if test -n "$CC"; then
5793 echo "$ac_t""$CC" 1>&6
5794else
5795 echo "$ac_t""no" 1>&6
5796fi
5797 ;;
5798 esac
5799 fi
5800 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5801fi
5802
5803echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
f512f90a 5804echo "configure:5805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
5805
5806ac_ext=c
5807# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5808ac_cpp='$CPP $CPPFLAGS'
5809ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5810ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5811cross_compiling=$ac_cv_prog_cc_cross
5812
5813cat > conftest.$ac_ext << EOF
5814
f512f90a 5815#line 5816 "configure"
10f2d63a
VZ
5816#include "confdefs.h"
5817
5818main(){return(0);}
5819EOF
f512f90a 5820if { (eval echo configure:5821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
5821 ac_cv_prog_cc_works=yes
5822 # If we can't run a trivial program, we are probably using a cross compiler.
5823 if (./conftest; exit) 2>/dev/null; then
5824 ac_cv_prog_cc_cross=no
5825 else
5826 ac_cv_prog_cc_cross=yes
5827 fi
5828else
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5831 ac_cv_prog_cc_works=no
5832fi
5833rm -fr conftest*
5834ac_ext=c
5835# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5836ac_cpp='$CPP $CPPFLAGS'
5837ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5838ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5839cross_compiling=$ac_cv_prog_cc_cross
5840
5841echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5842if test $ac_cv_prog_cc_works = no; then
5843 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5844fi
5845echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f512f90a 5846echo "configure:5847: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
5847echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5848cross_compiling=$ac_cv_prog_cc_cross
5849
5850echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
f512f90a 5851echo "configure:5852: checking whether we are using GNU C" >&5
10f2d63a
VZ
5852if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5853 echo $ac_n "(cached) $ac_c" 1>&6
5854else
5855 cat > conftest.c <<EOF
5856#ifdef __GNUC__
5857 yes;
5858#endif
5859EOF
f512f90a 5860if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
5861 ac_cv_prog_gcc=yes
5862else
5863 ac_cv_prog_gcc=no
5864fi
5865fi
5866
5867echo "$ac_t""$ac_cv_prog_gcc" 1>&6
5868
5869if test $ac_cv_prog_gcc = yes; then
5870 GCC=yes
5871else
5872 GCC=
5873fi
5874
5875ac_test_CFLAGS="${CFLAGS+set}"
5876ac_save_CFLAGS="$CFLAGS"
5877CFLAGS=
5878echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
f512f90a 5879echo "configure:5880: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
5880if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5882else
5883 echo 'void f(){}' > conftest.c
5884if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
5885 ac_cv_prog_cc_g=yes
5886else
5887 ac_cv_prog_cc_g=no
5888fi
5889rm -f conftest*
5890
5891fi
5892
5893echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
5894if test "$ac_test_CFLAGS" = set; then
5895 CFLAGS="$ac_save_CFLAGS"
5896elif test $ac_cv_prog_cc_g = yes; then
5897 if test "$GCC" = yes; then
5898 CFLAGS="-g -O2"
5899 else
5900 CFLAGS="-g"
5901 fi
5902else
5903 if test "$GCC" = yes; then
5904 CFLAGS="-O2"
5905 else
5906 CFLAGS=
5907 fi
5908fi
5909
5910
5911CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
5912
5913echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
f512f90a 5914echo "configure:5915: checking how to run the C preprocessor" >&5
10f2d63a
VZ
5915# On Suns, sometimes $CPP names a directory.
5916if test -n "$CPP" && test -d "$CPP"; then
5917 CPP=
5918fi
5919if test -z "$CPP"; then
5920if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6
5922else
5923 # This must be in double quotes, not single quotes, because CPP may get
5924 # substituted into the Makefile and "${CC-cc}" will confuse make.
5925 CPP="${CC-cc} -E"
5926 # On the NeXT, cc -E runs the code through the compiler's parser,
5927 # not just through cpp.
5928 cat > conftest.$ac_ext <<EOF
f512f90a 5929#line 5930 "configure"
10f2d63a
VZ
5930#include "confdefs.h"
5931#include <assert.h>
5932Syntax Error
5933EOF
5934ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f512f90a 5935{ (eval echo configure:5936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
5936ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5937if test -z "$ac_err"; then
5938 :
5939else
5940 echo "$ac_err" >&5
5941 echo "configure: failed program was:" >&5
5942 cat conftest.$ac_ext >&5
5943 rm -rf conftest*
5944 CPP="${CC-cc} -E -traditional-cpp"
5945 cat > conftest.$ac_ext <<EOF
f512f90a 5946#line 5947 "configure"
10f2d63a
VZ
5947#include "confdefs.h"
5948#include <assert.h>
5949Syntax Error
5950EOF
5951ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f512f90a 5952{ (eval echo configure:5953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
5953ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5954if test -z "$ac_err"; then
5955 :
5956else
5957 echo "$ac_err" >&5
5958 echo "configure: failed program was:" >&5
5959 cat conftest.$ac_ext >&5
5960 rm -rf conftest*
5961 CPP="${CC-cc} -nologo -E"
5962 cat > conftest.$ac_ext <<EOF
f512f90a 5963#line 5964 "configure"
10f2d63a
VZ
5964#include "confdefs.h"
5965#include <assert.h>
5966Syntax Error
5967EOF
5968ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f512f90a 5969{ (eval echo configure:5970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
5970ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5971if test -z "$ac_err"; then
5972 :
5973else
5974 echo "$ac_err" >&5
5975 echo "configure: failed program was:" >&5
5976 cat conftest.$ac_ext >&5
5977 rm -rf conftest*
5978 CPP=/lib/cpp
5979fi
5980rm -f conftest*
5981fi
5982rm -f conftest*
5983fi
5984rm -f conftest*
5985 ac_cv_prog_CPP="$CPP"
5986fi
5987 CPP="$ac_cv_prog_CPP"
5988else
5989 ac_cv_prog_CPP="$CPP"
5990fi
5991echo "$ac_t""$CPP" 1>&6
5992
5993
5994if test $ac_cv_prog_gcc = yes; then
5995 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
f512f90a 5996echo "configure:5997: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
5997if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
5999else
6000 ac_pattern="Autoconf.*'x'"
6001 cat > conftest.$ac_ext <<EOF
f512f90a 6002#line 6003 "configure"
10f2d63a
VZ
6003#include "confdefs.h"
6004#include <sgtty.h>
6005Autoconf TIOCGETP
6006EOF
6007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6008 egrep "$ac_pattern" >/dev/null 2>&1; then
6009 rm -rf conftest*
6010 ac_cv_prog_gcc_traditional=yes
6011else
6012 rm -rf conftest*
6013 ac_cv_prog_gcc_traditional=no
6014fi
6015rm -f conftest*
6016
6017
6018 if test $ac_cv_prog_gcc_traditional = no; then
6019 cat > conftest.$ac_ext <<EOF
f512f90a 6020#line 6021 "configure"
10f2d63a
VZ
6021#include "confdefs.h"
6022#include <termio.h>
6023Autoconf TCGETA
6024EOF
6025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6026 egrep "$ac_pattern" >/dev/null 2>&1; then
6027 rm -rf conftest*
6028 ac_cv_prog_gcc_traditional=yes
6029fi
6030rm -f conftest*
6031
6032 fi
6033fi
6034
6035echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6036 if test $ac_cv_prog_gcc_traditional = yes; then
6037 CC="$CC -traditional"
6038 fi
6039fi
6040
6041
6042
6043ac_ext=C
6044# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6045ac_cpp='$CXXCPP $CPPFLAGS'
6046ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6047ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6048cross_compiling=$ac_cv_prog_cxx_cross
6049
6050
6051for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6052do
6053# Extract the first word of "$ac_prog", so it can be a program name with args.
6054set dummy $ac_prog; ac_word=$2
6055echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f512f90a 6056echo "configure:6057: checking for $ac_word" >&5
10f2d63a
VZ
6057if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6058 echo $ac_n "(cached) $ac_c" 1>&6
6059else
6060 if test -n "$CXX"; then
6061 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6062else
6063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6064 ac_dummy="$PATH"
6065 for ac_dir in $ac_dummy; do
6066 test -z "$ac_dir" && ac_dir=.
6067 if test -f $ac_dir/$ac_word; then
6068 ac_cv_prog_CXX="$ac_prog"
6069 break
6070 fi
6071 done
6072 IFS="$ac_save_ifs"
6073fi
6074fi
6075CXX="$ac_cv_prog_CXX"
6076if test -n "$CXX"; then
6077 echo "$ac_t""$CXX" 1>&6
6078else
6079 echo "$ac_t""no" 1>&6
6080fi
6081
6082test -n "$CXX" && break
6083done
6084test -n "$CXX" || CXX="gcc"
6085
6086
6087echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
f512f90a 6088echo "configure:6089: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6089
6090ac_ext=C
6091# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6092ac_cpp='$CXXCPP $CPPFLAGS'
6093ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6094ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6095cross_compiling=$ac_cv_prog_cxx_cross
6096
6097cat > conftest.$ac_ext << EOF
6098
f512f90a 6099#line 6100 "configure"
10f2d63a
VZ
6100#include "confdefs.h"
6101
6102int main(){return(0);}
6103EOF
f512f90a 6104if { (eval echo configure:6105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6105 ac_cv_prog_cxx_works=yes
6106 # If we can't run a trivial program, we are probably using a cross compiler.
6107 if (./conftest; exit) 2>/dev/null; then
6108 ac_cv_prog_cxx_cross=no
6109 else
6110 ac_cv_prog_cxx_cross=yes
6111 fi
6112else
6113 echo "configure: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6115 ac_cv_prog_cxx_works=no
6116fi
6117rm -fr conftest*
6118ac_ext=C
6119# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6120ac_cpp='$CXXCPP $CPPFLAGS'
6121ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6122ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6123cross_compiling=$ac_cv_prog_cxx_cross
6124
6125echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6126if test $ac_cv_prog_cxx_works = no; then
6127 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6128fi
6129echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f512f90a 6130echo "configure:6131: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6131echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6132cross_compiling=$ac_cv_prog_cxx_cross
6133
6134echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
f512f90a 6135echo "configure:6136: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6136if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6137 echo $ac_n "(cached) $ac_c" 1>&6
6138else
6139 cat > conftest.C <<EOF
6140#ifdef __GNUC__
6141 yes;
6142#endif
6143EOF
f512f90a 6144if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6145 ac_cv_prog_gxx=yes
6146else
6147 ac_cv_prog_gxx=no
6148fi
6149fi
6150
6151echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6152
6153if test $ac_cv_prog_gxx = yes; then
6154 GXX=yes
6155else
6156 GXX=
6157fi
6158
6159ac_test_CXXFLAGS="${CXXFLAGS+set}"
6160ac_save_CXXFLAGS="$CXXFLAGS"
6161CXXFLAGS=
6162echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
f512f90a 6163echo "configure:6164: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6164if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6165 echo $ac_n "(cached) $ac_c" 1>&6
6166else
6167 echo 'void f(){}' > conftest.cc
6168if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6169 ac_cv_prog_cxx_g=yes
6170else
6171 ac_cv_prog_cxx_g=no
6172fi
6173rm -f conftest*
6174
6175fi
6176
6177echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6178if test "$ac_test_CXXFLAGS" = set; then
6179 CXXFLAGS="$ac_save_CXXFLAGS"
6180elif test $ac_cv_prog_cxx_g = yes; then
6181 if test "$GXX" = yes; then
6182 CXXFLAGS="-g -O2"
6183 else
6184 CXXFLAGS="-g"
6185 fi
6186else
6187 if test "$GXX" = yes; then
6188 CXXFLAGS="-O2"
6189 else
6190 CXXFLAGS=
6191 fi
6192fi
6193
6194
6195echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
f512f90a 6196echo "configure:6197: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6197if test -z "$CXXCPP"; then
6198if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6200else
6201 ac_ext=C
6202# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6203ac_cpp='$CXXCPP $CPPFLAGS'
6204ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6205ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6206cross_compiling=$ac_cv_prog_cxx_cross
6207 CXXCPP="${CXX-g++} -E"
6208 cat > conftest.$ac_ext <<EOF
f512f90a 6209#line 6210 "configure"
10f2d63a
VZ
6210#include "confdefs.h"
6211#include <stdlib.h>
6212EOF
6213ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f512f90a 6214{ (eval echo configure:6215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6215ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6216if test -z "$ac_err"; then
6217 :
6218else
6219 echo "$ac_err" >&5
6220 echo "configure: failed program was:" >&5
6221 cat conftest.$ac_ext >&5
6222 rm -rf conftest*
6223 CXXCPP=/lib/cpp
6224fi
6225rm -f conftest*
6226 ac_cv_prog_CXXCPP="$CXXCPP"
6227ac_ext=C
6228# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6229ac_cpp='$CXXCPP $CPPFLAGS'
6230ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6231ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6232cross_compiling=$ac_cv_prog_cxx_cross
6233fi
6234fi
6235CXXCPP="$ac_cv_prog_CXXCPP"
6236echo "$ac_t""$CXXCPP" 1>&6
6237
6238
6239CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6240
6241ac_ext=c
6242# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6243ac_cpp='$CPP $CPPFLAGS'
6244ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6245ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6246cross_compiling=$ac_cv_prog_cc_cross
6247
6248
6249# Extract the first word of "ranlib", so it can be a program name with args.
6250set dummy ranlib; ac_word=$2
6251echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f512f90a 6252echo "configure:6253: checking for $ac_word" >&5
10f2d63a
VZ
6253if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6254 echo $ac_n "(cached) $ac_c" 1>&6
6255else
6256 if test -n "$RANLIB"; then
6257 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6258else
6259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6260 ac_dummy="$PATH"
6261 for ac_dir in $ac_dummy; do
6262 test -z "$ac_dir" && ac_dir=.
6263 if test -f $ac_dir/$ac_word; then
6264 ac_cv_prog_RANLIB="ranlib"
6265 break
6266 fi
6267 done
6268 IFS="$ac_save_ifs"
6269 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6270fi
6271fi
6272RANLIB="$ac_cv_prog_RANLIB"
6273if test -n "$RANLIB"; then
6274 echo "$ac_t""$RANLIB" 1>&6
6275else
6276 echo "$ac_t""no" 1>&6
6277fi
6278
6279
6280# Extract the first word of "ar", so it can be a program name with args.
6281set dummy ar; ac_word=$2
6282echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f512f90a 6283echo "configure:6284: checking for $ac_word" >&5
10f2d63a
VZ
6284if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6285 echo $ac_n "(cached) $ac_c" 1>&6
6286else
6287 if test -n "$AR"; then
6288 ac_cv_prog_AR="$AR" # Let the user override the test.
6289else
6290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6291 ac_dummy="$PATH"
6292 for ac_dir in $ac_dummy; do
6293 test -z "$ac_dir" && ac_dir=.
6294 if test -f $ac_dir/$ac_word; then
6295 ac_cv_prog_AR="ar"
6296 break
6297 fi
6298 done
6299 IFS="$ac_save_ifs"
6300 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6301fi
6302fi
6303AR="$ac_cv_prog_AR"
6304if test -n "$AR"; then
6305 echo "$ac_t""$AR" 1>&6
6306else
6307 echo "$ac_t""no" 1>&6
6308fi
6309
6310
6311# Find a good install program. We prefer a C program (faster),
6312# so one script is as good as another. But avoid the broken or
6313# incompatible versions:
6314# SysV /etc/install, /usr/sbin/install
6315# SunOS /usr/etc/install
6316# IRIX /sbin/install
6317# AIX /bin/install
6318# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6319# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6320# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6321# ./install, which can be erroneously created by make from ./install.sh.
6322echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
f512f90a 6323echo "configure:6324: checking for a BSD compatible install" >&5
10f2d63a
VZ
6324if test -z "$INSTALL"; then
6325if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6326 echo $ac_n "(cached) $ac_c" 1>&6
6327else
6328 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6329 for ac_dir in $PATH; do
6330 # Account for people who put trailing slashes in PATH elements.
6331 case "$ac_dir/" in
6332 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6333 *)
6334 # OSF1 and SCO ODT 3.0 have their own names for install.
6335 # Don't use installbsd from OSF since it installs stuff as root
6336 # by default.
6337 for ac_prog in ginstall scoinst install; do
6338 if test -f $ac_dir/$ac_prog; then
6339 if test $ac_prog = install &&
6340 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6341 # AIX install. It has an incompatible calling convention.
6342 :
6343 else
6344 ac_cv_path_install="$ac_dir/$ac_prog -c"
6345 break 2
6346 fi
6347 fi
6348 done
6349 ;;
6350 esac
6351 done
6352 IFS="$ac_save_IFS"
6353
6354fi
6355 if test "${ac_cv_path_install+set}" = set; then
6356 INSTALL="$ac_cv_path_install"
6357 else
6358 # As a last resort, use the slow shell script. We don't cache a
6359 # path for INSTALL within a source directory, because that will
6360 # break other packages using the cache if that directory is
6361 # removed, or if the path is relative.
6362 INSTALL="$ac_install_sh"
6363 fi
6364fi
6365echo "$ac_t""$INSTALL" 1>&6
6366
6367# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6368# It thinks the first close brace ends the variable substitution.
6369test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6370
6371test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6372
6373test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6374
6375
6376# Extract the first word of "strip", so it can be a program name with args.
6377set dummy strip; ac_word=$2
6378echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f512f90a 6379echo "configure:6380: checking for $ac_word" >&5
10f2d63a
VZ
6380if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6381 echo $ac_n "(cached) $ac_c" 1>&6
6382else
6383 if test -n "$STRIP"; then
6384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6385else
6386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6387 ac_dummy="$PATH"
6388 for ac_dir in $ac_dummy; do
6389 test -z "$ac_dir" && ac_dir=.
6390 if test -f $ac_dir/$ac_word; then
6391 ac_cv_prog_STRIP="strip"
6392 break
6393 fi
6394 done
6395 IFS="$ac_save_ifs"
6396 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6397fi
6398fi
6399STRIP="$ac_cv_prog_STRIP"
6400if test -n "$STRIP"; then
6401 echo "$ac_t""$STRIP" 1>&6
6402else
6403 echo "$ac_t""no" 1>&6
6404fi
6405
6406
6407echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
f512f90a 6408echo "configure:6409: checking "make for VPATH support"" >&5
10f2d63a
VZ
6409cat - << EOF > confMake
6410check : file
6411 cp \$? \$@
6412 cp \$? final_file
6413EOF
6414
6415if test ! -d sub ; then
6416 mkdir sub
6417fi
6418echo dummy > sub/file
6419${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6420RESULT=$?
6421rm -f sub/file check final_file confMake
6422rmdir sub
6423if test "$RESULT" = 0; then
6424 echo "$ac_t""yes" 1>&6
6425else
6426 echo "$ac_t""no" 1>&6
6427 { echo "configure: error: You need a make-utility that is able to use the variable
6428VPATH correctly.
6429If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6430fi
6431
6432for ac_prog in 'bison -y' byacc
6433do
6434# Extract the first word of "$ac_prog", so it can be a program name with args.
6435set dummy $ac_prog; ac_word=$2
6436echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f512f90a 6437echo "configure:6438: checking for $ac_word" >&5
10f2d63a
VZ
6438if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6440else
6441 if test -n "$YACC"; then
6442 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6443else
6444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6445 ac_dummy="$PATH"
6446 for ac_dir in $ac_dummy; do
6447 test -z "$ac_dir" && ac_dir=.
6448 if test -f $ac_dir/$ac_word; then
6449 ac_cv_prog_YACC="$ac_prog"
6450 break
6451 fi
6452 done
6453 IFS="$ac_save_ifs"
6454fi
6455fi
6456YACC="$ac_cv_prog_YACC"
6457if test -n "$YACC"; then
6458 echo "$ac_t""$YACC" 1>&6
6459else
6460 echo "$ac_t""no" 1>&6
6461fi
6462
6463test -n "$YACC" && break
6464done
6465test -n "$YACC" || YACC="yacc"
6466
6467
6468# Extract the first word of "flex", so it can be a program name with args.
6469set dummy flex; ac_word=$2
6470echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f512f90a 6471echo "configure:6472: checking for $ac_word" >&5
10f2d63a
VZ
6472if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6473 echo $ac_n "(cached) $ac_c" 1>&6
6474else
6475 if test -n "$LEX"; then
6476 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6477else
6478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6479 ac_dummy="$PATH"
6480 for ac_dir in $ac_dummy; do
6481 test -z "$ac_dir" && ac_dir=.
6482 if test -f $ac_dir/$ac_word; then
6483 ac_cv_prog_LEX="flex"
6484 break
6485 fi
6486 done
6487 IFS="$ac_save_ifs"
6488 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6489fi
6490fi
6491LEX="$ac_cv_prog_LEX"
6492if test -n "$LEX"; then
6493 echo "$ac_t""$LEX" 1>&6
6494else
6495 echo "$ac_t""no" 1>&6
6496fi
6497
6498if test -z "$LEXLIB"
6499then
6500 case "$LEX" in
6501 flex*) ac_lib=fl ;;
6502 *) ac_lib=l ;;
6503 esac
6504 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
f512f90a 6505echo "configure:6506: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6506ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6507if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6508 echo $ac_n "(cached) $ac_c" 1>&6
6509else
6510 ac_save_LIBS="$LIBS"
6511LIBS="-l$ac_lib $LIBS"
6512cat > conftest.$ac_ext <<EOF
f512f90a 6513#line 6514 "configure"
10f2d63a
VZ
6514#include "confdefs.h"
6515/* Override any gcc2 internal prototype to avoid an error. */
6516/* We use char because int might match the return type of a gcc2
6517 builtin and then its argument prototype would still apply. */
6518char yywrap();
6519
6520int main() {
6521yywrap()
6522; return 0; }
6523EOF
f512f90a 6524if { (eval echo configure:6525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6525 rm -rf conftest*
6526 eval "ac_cv_lib_$ac_lib_var=yes"
6527else
6528 echo "configure: failed program was:" >&5
6529 cat conftest.$ac_ext >&5
6530 rm -rf conftest*
6531 eval "ac_cv_lib_$ac_lib_var=no"
6532fi
6533rm -f conftest*
6534LIBS="$ac_save_LIBS"
6535
6536fi
6537if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6538 echo "$ac_t""yes" 1>&6
6539 LEXLIB="-l$ac_lib"
6540else
6541 echo "$ac_t""no" 1>&6
6542fi
6543
6544fi
6545
6546
6547echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
f512f90a 6548echo "configure:6549: checking whether ln -s works" >&5
10f2d63a
VZ
6549if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6550 echo $ac_n "(cached) $ac_c" 1>&6
6551else
6552 rm -f conftestdata
6553if ln -s X conftestdata 2>/dev/null
6554then
6555 rm -f conftestdata
6556 ac_cv_prog_LN_S="ln -s"
6557else
6558 ac_cv_prog_LN_S=ln
6559fi
6560fi
6561LN_S="$ac_cv_prog_LN_S"
6562if test "$ac_cv_prog_LN_S" = "ln -s"; then
6563 echo "$ac_t""yes" 1>&6
6564else
6565 echo "$ac_t""no" 1>&6
6566fi
6567
6568
6569
6570SEARCH_INCLUDE="\
6571 /usr/local/include \
6572 \
6573 /usr/Motif-1.2/include \
6574 /usr/Motif-2.1/include \
6575 \
6576 /usr/include/Motif1.2 \
6577 /opt/xpm/include/X11 \
6578 /opt/GBxpm/include/ \
6579 /opt/GBxpm/X11/include/ \
6580 \
6581 /usr/Motif1.2/include \
6582 /usr/dt/include \
afc31813
VZ
6583 /usr/openwin/include \
6584 \
10f2d63a
VZ
6585 /usr/include/Xm \
6586 \
6587 /usr/X11R6/include \
afc31813 6588 /usr/X11R6.4/include \
10f2d63a
VZ
6589 /usr/X11R5/include \
6590 /usr/X11R4/include \
6591 \
10f2d63a
VZ
6592 /usr/include/X11R6 \
6593 /usr/include/X11R5 \
6594 /usr/include/X11R4 \
6595 \
6596 /usr/local/X11R6/include \
6597 /usr/local/X11R5/include \
6598 /usr/local/X11R4/include \
6599 \
6600 /usr/local/include/X11R6 \
6601 /usr/local/include/X11R5 \
6602 /usr/local/include/X11R4 \
6603 \
6604 /usr/X11/include \
6605 /usr/include/X11 \
6606 /usr/local/X11/include \
6607 /usr/local/include/X11 \
6608 \
6609 /usr/X386/include \
6610 /usr/x386/include \
6611 /usr/XFree86/include/X11 \
6612 \
6613 /usr/include/gtk \
6614 /usr/local/include/gtk \
6615 /usr/include/glib \
6616 /usr/local/include/glib \
6617 \
6618 /usr/include/qt \
6619 /usr/local/include/qt \
6620 \
6621 /usr/include/windows \
6622 /usr/include/wine \
6623 /usr/local/include/wine \
6624 \
6625 /usr/unsupported/include \
6626 /usr/athena/include \
6627 /usr/local/x11r5/include \
6628 /usr/lpp/Xamples/include \
6629 \
10f2d63a
VZ
6630 /usr/openwin/share/include \
6631"
6632
6633SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6634
6635
6636cat > confcache <<\EOF
6637# This file is a shell script that caches the results of configure
6638# tests run on this system so they can be shared between configure
6639# scripts and configure runs. It is not useful on other systems.
6640# If it contains results you don't want to keep, you may remove or edit it.
6641#
6642# By default, configure uses ./config.cache as the cache file,
6643# creating it if it does not exist already. You can give configure
6644# the --cache-file=FILE option to use a different cache file; that is
6645# what configure does when it calls configure scripts in
6646# subdirectories, so they share the cache.
6647# Giving --cache-file=/dev/null disables caching, for debugging configure.
6648# config.status only pays attention to the cache file if you give it the
6649# --recheck option to rerun configure.
6650#
6651EOF
6652# The following way of writing the cache mishandles newlines in values,
6653# but we know of no workaround that is simple, portable, and efficient.
6654# So, don't put newlines in cache variables' values.
6655# Ultrix sh set writes to stderr and can't be redirected directly,
6656# and sets the high bit in the cache file unless we assign to the vars.
6657(set) 2>&1 |
6658 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6659 *ac_space=\ *)
6660 # `set' does not quote correctly, so add quotes (double-quote substitution
6661 # turns \\\\ into \\, and sed turns \\ into \).
6662 sed -n \
6663 -e "s/'/'\\\\''/g" \
6664 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6665 ;;
6666 *)
6667 # `set' quotes correctly as required by POSIX, so do not add quotes.
6668 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6669 ;;
6670 esac >> confcache
6671if cmp -s $cache_file confcache; then
6672 :
6673else
6674 if test -w $cache_file; then
6675 echo "updating cache $cache_file"
6676 cat confcache > $cache_file
6677 else
6678 echo "not updating unwritable cache $cache_file"
6679 fi
6680fi
6681rm -f confcache
6682
6683
6684
6685if test "$wxUSE_GUI" = "yes"; then
6686
6687TOOLKIT=
6688TOOLKIT_INCLUDE=
6689
6690GUIOBJS=
6691COMMONOBJS=
6692GENERICOBJS=
6693
6694GUI_TK_LIBRARY=
6695GUI_TK_LINK=
6696
6697WXGTK12=
6698
6699WXWINE=
6700
6701PROGRAM_EXT=
6702
6703if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6704 if test "$cross_compiling" = "yes" ; then
6705 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6706 else
6707 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
afc31813 6708echo "configure:6709: checking for Windows headers" >&5
10f2d63a
VZ
6709
6710ac_find_includes=
6711for ac_dir in $SEARCH_INCLUDE;
6712 do
6713 if test -f "$ac_dir/windows.h"; then
6714 ac_find_includes=$ac_dir
6715 break
6716 fi
6717 done
6718
6719 if test "$ac_find_includes" != "" ; then
6720 echo "$ac_t""found $ac_find_includes" 1>&6
6721 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6722 else
6723 echo "$ac_t""no" 1>&6
6724 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6725 fi
6726 fi
6727
6728 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6729 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6730
6731 if test "$wxUSE_MINGW" = 1; then
6732 LDFLAGS="$LDFLAGS -mwindows"
6733 fi
6734
6735 TOOLKIT=MSW
6736
6737 GUIOBJS="\$(MSW_GUIOBJS)"
6738 GUIHEADERS="\$(MSW_HEADERS)"
6739 COMMONOBJS="\$(MSW_COMMONOBJS)"
6740 GENERICOBJS="\$(MSW_GENERICOBJS)"
6741 UNIXOBJS=
6742 GUIDIST=MSW_DIST
6743 PROGRAM_EXT=.exe
6744fi
6745
6746if test "$wxUSE_GTK" = 1; then
6747
6748 if test x$gtk_config_exec_prefix != x ; then
6749 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6750 if test x${GTK_CONFIG+set} != xset ; then
6751 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6752 fi
6753 fi
6754 if test x$gtk_config_prefix != x ; then
6755 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6756 if test x${GTK_CONFIG+set} != xset ; then
6757 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6758 fi
6759 fi
6760
6761 # Extract the first word of "gtk-config", so it can be a program name with args.
6762set dummy gtk-config; ac_word=$2
6763echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
afc31813 6764echo "configure:6765: checking for $ac_word" >&5
10f2d63a
VZ
6765if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6766 echo $ac_n "(cached) $ac_c" 1>&6
6767else
6768 case "$GTK_CONFIG" in
6769 /*)
6770 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6771 ;;
6772 ?:/*)
6773 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6774 ;;
6775 *)
6776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6777 ac_dummy="$PATH"
6778 for ac_dir in $ac_dummy; do
6779 test -z "$ac_dir" && ac_dir=.
6780 if test -f $ac_dir/$ac_word; then
6781 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6782 break
6783 fi
6784 done
6785 IFS="$ac_save_ifs"
6786 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6787 ;;
6788esac
6789fi
6790GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6791if test -n "$GTK_CONFIG"; then
6792 echo "$ac_t""$GTK_CONFIG" 1>&6
6793else
6794 echo "$ac_t""no" 1>&6
6795fi
6796
6797 min_gtk_version=1.2.1
6798 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
afc31813 6799echo "configure:6800: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
6800 no_gtk=""
6801 if test "$GTK_CONFIG" != "no" ; then
6802 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6803 GTK_LIBS=`$GTK_CONFIG --libs`
6804 ac_save_CFLAGS="$CFLAGS"
6805 ac_save_LIBS="$LIBS"
6806 CFLAGS="$CFLAGS $GTK_CFLAGS"
6807 LIBS="$LIBS $GTK_LIBS"
6808 if test "$cross_compiling" = yes; then
6809 echo $ac_n "cross compiling; assumed OK... $ac_c"
6810else
6811 cat > conftest.$ac_ext <<EOF
afc31813 6812#line 6813 "configure"
10f2d63a
VZ
6813#include "confdefs.h"
6814
6815#include <gtk/gtk.h>
6816#include <stdio.h>
6817
6818int
6819main ()
6820{
6821 int major, minor, micro;
6822
6823 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6824 printf("%s, bad version string\n", "$min_gtk_version");
6825 exit(1);
6826 }
6827
6828 if (gtk_minor_version == 1) return FALSE;
6829
6830 return !((gtk_major_version > major) ||
6831 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6832 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6833}
6834
6835EOF
afc31813 6836if { (eval echo configure:6837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
6837then
6838 :
6839else
6840 echo "configure: failed program was:" >&5
6841 cat conftest.$ac_ext >&5
6842 rm -fr conftest*
6843 no_gtk=yes
6844fi
6845rm -fr conftest*
6846fi
6847
6848 CFLAGS="$ac_save_CFLAGS"
6849 LIBS="$ac_save_LIBS"
6850 else
6851 no_gtk=yes
6852 fi
6853 if test "x$no_gtk" = x ; then
6854 echo "$ac_t""yes" 1>&6
6855 WXGTK12=1
6856 else
6857 echo "$ac_t""no" 1>&6
6858 GTK_CFLAGS=""
6859 GTK_LIBS=""
6860 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; }
6861 fi
6862
6863
6864
6865
6866 TOOLKIT_INCLUDE="$GTK_CFLAGS"
6867 GUI_TK_LIBRARY="$GTK_LIBS"
6868 TOOLKIT=GTK
6869
6870 GUIOBJS="\$(GTK_GUIOBJS)"
6871 GUIHEADERS="\$(GTK_HEADERS)"
6872 COMMONOBJS="\$(GTK_COMMONOBJS)"
6873 GENERICOBJS="\$(GTK_GENERICOBJS)"
6874 GUIDEPS="\$(GTK_GUIDEPS)"
6875 COMMONDEPS="\$(GTK_COMMONDEPS)"
6876 GENERICDEPS="\$(GTK_GENERICDEPS)"
6877 UNIXOBJS="\$(UNIX_OBJS)"
6878 GUIDIST=GTK_DIST
6879fi
6880
6881if test "$wxUSE_WINE" = 1; then
6882 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
afc31813 6883echo "configure:6884: checking for WINE includes" >&5
10f2d63a
VZ
6884
6885ac_find_includes=
6886for ac_dir in $SEARCH_INCLUDE;
6887 do
6888 if test -f "$ac_dir/windows.h"; then
6889 ac_find_includes=$ac_dir
6890 break
6891 fi
6892 done
6893
6894 if test "$ac_find_includes" != "" ; then
6895 echo "$ac_t""found $ac_find_includes" 1>&6
6896 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6897 else
6898 echo "$ac_t""no" 1>&6
6899 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6900 fi
6901
6902 XPM_LINK=""
6903 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
afc31813 6904echo "configure:6905: checking for Xpm library" >&5
10f2d63a
VZ
6905
6906ac_find_libraries=
6907for ac_dir in $SEARCH_LIB;
6908 do
6909 for ac_extension in a so sl; do
6910 if test -f "$ac_dir/libXpm.$ac_extension"; then
6911 ac_find_libraries=$ac_dir
6912 break 2
6913 fi
6914 done
6915 done
6916
6917 if test "$ac_find_libraries" != "" ; then
6918 GUI_TK_LIBRARY="-L$ac_find_libraries"
6919 XPM_LINK="-lXpm"
6920 cat >> confdefs.h <<\EOF
6921#define wxHAVE_LIB_XPM 1
6922EOF
6923
6924 echo "$ac_t""found at $ac_find_libraries" 1>&6
6925 else
6926 echo "$ac_t""no" 1>&6
6927 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
6928 fi
6929
6930 MESA_LINK=""
6931 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
afc31813 6932echo "configure:6933: checking for Mesa library" >&5
10f2d63a
VZ
6933
6934ac_find_libraries=
6935for ac_dir in $SEARCH_LIB;
6936 do
6937 for ac_extension in a so sl; do
6938 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
6939 ac_find_libraries=$ac_dir
6940 break 2
6941 fi
6942 done
6943 done
6944
6945 if test "$ac_find_libraries" != "" ; then
6946 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
6947 MESA_LINK="-lMesaGL"
6948 echo "$ac_t""found at $ac_find_libraries" 1>&6
6949 else
6950 { echo "configure: error: no" 1>&2; exit 1; }
6951 fi
6952
6953 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
6954 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
6955 WXWINE=1
6956 TOOLKIT=MSW
6957
6958 GUIHEADERS="\$(MSW_HEADERS)"
6959 GUIOBJS="\$(MSW_GUIOBJS)"
6960 COMMONOBJS="\$(MSW_COMMONOBJS)"
6961 GENERICOBJS="\$(MSW_GENERICOBJS)"
6962 GUIDEPS="\$(MSW_GUIDEPS)"
6963 COMMONDEPS="\$(MSW_COMMONDEPS)"
6964 GENERICDEPS="\$(MSW_GENERICDEPS)"
6965 UNIXOBJS="\$(UNIX_OBJS)"
6966 GUIDIST=MSW_DIST
6967fi
6968
6969if test "$wxUSE_MOTIF" = 1; then
6970 echo $ac_n "checking for X11 headers""... $ac_c" 1>&6
afc31813 6971echo "configure:6972: checking for X11 headers" >&5
10f2d63a
VZ
6972
6973ac_find_includes=
6974for ac_dir in $SEARCH_INCLUDE;
6975 do
6976 if test -f "$ac_dir/X11/Intrinsic.h"; then
6977 ac_find_includes=$ac_dir
6978 break
6979 fi
6980 done
6981
6982 if test "$ac_find_includes" != "" ; then
6983 echo "$ac_t""found $ac_find_includes" 1>&6
6984 else
6985 echo "$ac_t""no" 1>&6
6986 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
6987 fi
6988
6989 echo $ac_n "checking for X11 libraries""... $ac_c" 1>&6
afc31813 6990echo "configure:6991: checking for X11 libraries" >&5
10f2d63a
VZ
6991
6992ac_find_libraries=
6993for ac_dir in $SEARCH_LIB;
6994 do
6995 for ac_extension in a so sl; do
6996 if test -f "$ac_dir/libX11.$ac_extension"; then
6997 ac_find_libraries=$ac_dir
6998 break 2
6999 fi
7000 done
7001 done
7002
7003 if test "$ac_find_libraries" != "" ; then
7004
7005 ac_path_to_include=$ac_find_includes
7006 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7007 result=$?
7008 if test $result = 0; then
7009 ac_path_to_include=""
7010 else
7011 ac_path_to_include="-I$ac_find_includes"
7012 fi
7013
7014
7015 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7016 result=$?
7017 if test $result = 0; then
7018 ac_path_to_link=""
7019 else
7020 ac_path_to_link="-L$ac_find_libraries"
7021 fi
7022
7023
7024 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
7025 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
7026 echo "$ac_t""found at $ac_find_libraries" 1>&6
7027 else
7028 echo "$ac_t""no" 1>&6
7029 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7030 fi
7031
7032 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
afc31813 7033echo "configure:7034: checking for Motif/Lesstif headers" >&5
10f2d63a
VZ
7034
7035ac_find_includes=
7036for ac_dir in $SEARCH_INCLUDE;
7037 do
7038 if test -f "$ac_dir/Xm/Xm.h"; then
7039 ac_find_includes=$ac_dir
7040 break
7041 fi
7042 done
7043
7044 if test "$ac_find_includes" != "" ; then
7045 echo "$ac_t""found $ac_find_includes" 1>&6
7046 else
7047 echo "$ac_t""no" 1>&6
7048 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7049 fi
7050
7051 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
afc31813 7052echo "configure:7053: checking for Motif/Lesstif library" >&5
10f2d63a
VZ
7053
7054ac_find_libraries=
7055for ac_dir in $SEARCH_LIB;
7056 do
7057 for ac_extension in a so sl; do
7058 if test -f "$ac_dir/libXm.$ac_extension"; then
7059 ac_find_libraries=$ac_dir
7060 break 2
7061 fi
7062 done
7063 done
7064
7065 if test "$ac_find_libraries" != "" ; then
7066
7067 ac_path_to_include=$ac_find_includes
7068 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7069 result=$?
7070 if test $result = 0; then
7071 ac_path_to_include=""
7072 else
7073 ac_path_to_include="-I$ac_find_includes"
7074 fi
7075
7076
7077 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7078 result=$?
7079 if test $result = 0; then
7080 ac_path_to_link=""
7081 else
7082 ac_path_to_link="-L$ac_find_libraries"
7083 fi
7084
7085
7086 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
7087 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
7088 echo "$ac_t""found at $ac_find_libraries" 1>&6
7089 else
7090 echo "$ac_t""no" 1>&6
7091 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7092 fi
7093
7094 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
afc31813 7095echo "configure:7096: checking for Xt library" >&5
10f2d63a
VZ
7096
7097ac_find_libraries=
7098for ac_dir in $SEARCH_LIB;
7099 do
7100 for ac_extension in a so sl; do
7101 if test -f "$ac_dir/libXt.$ac_extension"; then
7102 ac_find_libraries=$ac_dir
7103 break 2
7104 fi
7105 done
7106 done
7107
7108 if test "$ac_find_libraries" != "" ; then
7109
7110 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7111 result=$?
7112 if test $result = 0; then
7113 ac_path_to_link=""
7114 else
7115 ac_path_to_link="-L$ac_find_libraries"
7116 fi
7117
7118 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
7119 echo "$ac_t""found at $ac_find_libraries" 1>&6
7120 else
7121 echo "$ac_t""no" 1>&6
7122 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
7123 fi
7124
7125 XPM_LINK=""
7126 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
afc31813 7127echo "configure:7128: checking for Xpm library" >&5
10f2d63a
VZ
7128
7129ac_find_libraries=
7130for ac_dir in $SEARCH_LIB;
7131 do
7132 for ac_extension in a so sl; do
7133 if test -f "$ac_dir/libXpm.$ac_extension"; then
7134 ac_find_libraries=$ac_dir
7135 break 2
7136 fi
7137 done
7138 done
7139
7140 if test "$ac_find_libraries" != "" ; then
7141
7142 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7143 result=$?
7144 if test $result = 0; then
7145 ac_path_to_link=""
7146 else
7147 ac_path_to_link="-L$ac_find_libraries"
7148 fi
7149
7150 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
7151 XPM_LINK="-lXpm "
7152 cat >> confdefs.h <<\EOF
7153#define wxHAVE_LIB_XPM 1
7154EOF
7155
7156 echo "$ac_t""found at $ac_find_libraries" 1>&6
7157 else
7158 echo "$ac_t""no" 1>&6
7159 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7160 fi
7161
c63c7106 7162 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
10f2d63a
VZ
7163 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7164 TOOLKIT=MOTIF
7165
7166 GUIHEADERS="\$(MOTIF_HEADERS)"
7167 GUIOBJS="\$(MOTIF_GUIOBJS)"
7168 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
7169 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
7170 GUIDEPS="\$(MOTIF_GUIDEPS)"
7171 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
7172 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
7173 UNIXOBJS="\$(UNIX_OBJS)"
7174 GUIDIST=MOTIF_DIST
7175fi
7176
7177TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
7178
7179TOOLKIT_DEF="-D__WX${TOOLKIT}__"
7180
7181WX_LIBRARY="wx_${TOOLKIT_DIR}"
7182
7183 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(JPEGOBJS) \$(PNGOBJS) \$(ZLIBOBJS) \$(IODBCOBJS)"
7184 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
7185 ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)"
7186else
7187
7188 ALL_OBJECTS="\$(BASE_OBJS)"
7189 ALL_DEPFILES="\${BASE_DEPS}"
7190 ALL_HEADERS="\${BASE_HEADERS}"
7191
7192 WX_LIBRARY="wxbase"
7193fi
7194
7195WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
7196
7197WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
7198
7199WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
7200
7201WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
7202WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
7203WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
7204
7205SHARED_LD=
7206PIC_FLAG=
7207WX_ALL=
7208WX_ALL_INSTALLED=
7209
7210if test "$wxUSE_SHARED" = "yes"; then
7211 case "${host}" in
7212 *-hp-hpux* )
7213 if test "$GCC" = yes ; then
7214 SHARED_LD="${CC} -shared -o"
7215 PIC_FLAG="-fPIC"
7216 else
7217 SHARED_LD="${CXX} -b -o"
7218 PIC_FLAG="+Z"
7219 fi
7220 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
7221 WX_ALL=${WX_LIBRARY_NAME_SHARED}
7222 ;;
7223 *-*-linux* )
7224 SHARED_LD="${CC} -shared -o"
7225 PIC_FLAG="-fPIC"
7226 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7227 WX_ALL="CREATE_LINKS"
7228 ;;
7229 *-*-irix5* | *-*-irix6* )
7230 if test "$GCC" = yes ; then
7231 SHARED_LD="${CC} -shared -o"
7232 PIC_FLAG="-fPIC"
7233 else
7234 SHARED_LD="${CXX} -shared -o"
7235 fi
7236 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7237 WX_ALL="CREATE_LINKS"
7238 ;;
7239 *-*-solaris2* )
7240 if test "$GCC" = yes ; then
7241 SHARED_LD="${CC} -shared -o"
7242 PIC_FLAG="-fPIC"
7243 else
7244 SHARED_LD="${CXX} -G -o"
7245 PIC_FLAG="-KPIC"
7246 fi
7247 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7248 WX_ALL="CREATE_LINKS"
7249 ;;
7250 *-*-sunos4* )
7251 SHARED_LD="${CC} -shared -o"
7252 PIC_FLAG="-fPIC"
7253 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7254 WX_ALL="CREATE_LINKS"
7255 ;;
7256 *-*-freebsd* | *-*-netbsd*)
7257 SHARED_LD="${CC} -shared -o"
7258 PIC_FLAG="-fPIC"
7259 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7260 WX_ALL="CREATE_LINKS"
7261 ;;
7262 *-*-osf* )
7263 SHARED_LD="${CXX} -shared -o"
7264 PIC_FLAG="-fPIC"
7265 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7266 WX_ALL="CREATE_LINKS"
7267 ;;
7268 *-*-dgux5* )
7269 SHARED_LD="${CXX} -shared -o"
7270 PIC_FLAG="-fPIC"
7271 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7272 WX_ALL="CREATE_LINKS"
7273 ;;
7274 *-*-sysv5* )
7275 SHARED_LD="${CC} -shared -o"
7276 PIC_FLAG="-fPIC"
7277 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7278 WX_ALL="CREATE_LINKS"
7279 ;;
7280 *-*-aix* )
7281 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
7282 WX_ALL=${WX_LIBRARY_NAME_SHARED}
7283 ;;
7284 *-*-cygwin32* )
7285 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
7286 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
7287 ;;
7288 *-*-mingw32* )
7289 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
7290 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
7291 ;;
7292 *-pc-os2_emx )
7293 ;;
7294 *)
7295 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
7296 esac
7297
7298 if test "x$WX_TARGET_LIBRARY" = "x"; then
7299 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
7300 fi
7301else
7302 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
7303 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
7304fi
7305
7306
7307for ac_hdr in strings.h
7308do
7309ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7310echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
afc31813 7311echo "configure:7312: checking for $ac_hdr" >&5
10f2d63a
VZ
7312if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7313 echo $ac_n "(cached) $ac_c" 1>&6
7314else
7315 cat > conftest.$ac_ext <<EOF
afc31813 7316#line 7317 "configure"
10f2d63a
VZ
7317#include "confdefs.h"
7318#include <$ac_hdr>
7319EOF
7320ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
afc31813 7321{ (eval echo configure:7322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
7322ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7323if test -z "$ac_err"; then
7324 rm -rf conftest*
7325 eval "ac_cv_header_$ac_safe=yes"
7326else
7327 echo "$ac_err" >&5
7328 echo "configure: failed program was:" >&5
7329 cat conftest.$ac_ext >&5
7330 rm -rf conftest*
7331 eval "ac_cv_header_$ac_safe=no"
7332fi
7333rm -f conftest*
7334fi
7335if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7336 echo "$ac_t""yes" 1>&6
7337 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7338 cat >> confdefs.h <<EOF
7339#define $ac_tr_hdr 1
7340EOF
7341
7342else
7343 echo "$ac_t""no" 1>&6
7344fi
7345done
7346
7347for ac_hdr in unistd.h
7348do
7349ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7350echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
afc31813 7351echo "configure:7352: checking for $ac_hdr" >&5
10f2d63a
VZ
7352if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7353 echo $ac_n "(cached) $ac_c" 1>&6
7354else
7355 cat > conftest.$ac_ext <<EOF
afc31813 7356#line 7357 "configure"
10f2d63a
VZ
7357#include "confdefs.h"
7358#include <$ac_hdr>
7359EOF
7360ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
afc31813 7361{ (eval echo configure:7362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
7362ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7363if test -z "$ac_err"; then
7364 rm -rf conftest*
7365 eval "ac_cv_header_$ac_safe=yes"
7366else
7367 echo "$ac_err" >&5
7368 echo "configure: failed program was:" >&5
7369 cat conftest.$ac_ext >&5
7370 rm -rf conftest*
7371 eval "ac_cv_header_$ac_safe=no"
7372fi
7373rm -f conftest*
7374fi
7375if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7376 echo "$ac_t""yes" 1>&6
7377 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7378 cat >> confdefs.h <<EOF
7379#define $ac_tr_hdr 1
7380EOF
7381
7382else
7383 echo "$ac_t""no" 1>&6
7384fi
7385done
7386
7387for ac_hdr in wchar.h
7388do
7389ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7390echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
afc31813 7391echo "configure:7392: checking for $ac_hdr" >&5
10f2d63a
VZ
7392if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7393 echo $ac_n "(cached) $ac_c" 1>&6
7394else
7395 cat > conftest.$ac_ext <<EOF
afc31813 7396#line 7397 "configure"
10f2d63a
VZ
7397#include "confdefs.h"
7398#include <$ac_hdr>
7399EOF
7400ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
afc31813 7401{ (eval echo configure:7402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
7402ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7403if test -z "$ac_err"; then
7404 rm -rf conftest*
7405 eval "ac_cv_header_$ac_safe=yes"
7406else
7407 echo "$ac_err" >&5
7408 echo "configure: failed program was:" >&5
7409 cat conftest.$ac_ext >&5
7410 rm -rf conftest*
7411 eval "ac_cv_header_$ac_safe=no"
7412fi
7413rm -f conftest*
7414fi
7415if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7416 echo "$ac_t""yes" 1>&6
7417 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7418 cat >> confdefs.h <<EOF
7419#define $ac_tr_hdr 1
7420EOF
7421
7422else
7423 echo "$ac_t""no" 1>&6
7424fi
7425done
7426
7427for ac_hdr in wcstr.h
7428do
7429ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7430echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
afc31813 7431echo "configure:7432: checking for $ac_hdr" >&5
10f2d63a
VZ
7432if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7433 echo $ac_n "(cached) $ac_c" 1>&6
7434else
7435 cat > conftest.$ac_ext <<EOF
afc31813 7436#line 7437 "configure"
10f2d63a
VZ
7437#include "confdefs.h"
7438#include <$ac_hdr>
7439EOF
7440ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
afc31813 7441{ (eval echo configure:7442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
7442ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7443if test -z "$ac_err"; then
7444 rm -rf conftest*
7445 eval "ac_cv_header_$ac_safe=yes"
7446else
7447 echo "$ac_err" >&5
7448 echo "configure: failed program was:" >&5
7449 cat conftest.$ac_ext >&5
7450 rm -rf conftest*
7451 eval "ac_cv_header_$ac_safe=no"
7452fi
7453rm -f conftest*
7454fi
7455if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7456 echo "$ac_t""yes" 1>&6
7457 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7458 cat >> confdefs.h <<EOF
7459#define $ac_tr_hdr 1
7460EOF
7461
7462else
7463 echo "$ac_t""no" 1>&6
7464fi
7465done
7466
7467for ac_hdr in fnmatch.h
7468do
7469ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7470echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
afc31813 7471echo "configure:7472: checking for $ac_hdr" >&5
10f2d63a
VZ
7472if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7473 echo $ac_n "(cached) $ac_c" 1>&6
7474else
7475 cat > conftest.$ac_ext <<EOF
afc31813 7476#line 7477 "configure"
10f2d63a
VZ
7477#include "confdefs.h"
7478#include <$ac_hdr>
7479EOF
7480ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
afc31813 7481{ (eval echo configure:7482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
7482ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7483if test -z "$ac_err"; then
7484 rm -rf conftest*
7485 eval "ac_cv_header_$ac_safe=yes"
7486else
7487 echo "$ac_err" >&5
7488 echo "configure: failed program was:" >&5
7489 cat conftest.$ac_ext >&5
7490 rm -rf conftest*
7491 eval "ac_cv_header_$ac_safe=no"
7492fi
7493rm -f conftest*
7494fi
7495if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7496 echo "$ac_t""yes" 1>&6
7497 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7498 cat >> confdefs.h <<EOF
7499#define $ac_tr_hdr 1
7500EOF
7501
7502else
7503 echo "$ac_t""no" 1>&6
7504fi
7505done
7506
7507
7508if test "$wxUSE_GUI" = "yes"; then
7509 for ac_hdr in X11/XKBlib.h
7510do
7511ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7512echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
afc31813 7513echo "configure:7514: checking for $ac_hdr" >&5
10f2d63a
VZ
7514if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7515 echo $ac_n "(cached) $ac_c" 1>&6
7516else
7517 cat > conftest.$ac_ext <<EOF
afc31813 7518#line 7519 "configure"
10f2d63a
VZ
7519#include "confdefs.h"
7520#include <$ac_hdr>
7521EOF
7522ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
afc31813 7523{ (eval echo configure:7524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
7524ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7525if test -z "$ac_err"; then
7526 rm -rf conftest*
7527 eval "ac_cv_header_$ac_safe=yes"
7528else
7529 echo "$ac_err" >&5
7530 echo "configure: failed program was:" >&5
7531 cat conftest.$ac_ext >&5
7532 rm -rf conftest*
7533 eval "ac_cv_header_$ac_safe=no"
7534fi
7535rm -f conftest*
7536fi
7537if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7538 echo "$ac_t""yes" 1>&6
7539 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7540 cat >> confdefs.h <<EOF
7541#define $ac_tr_hdr 1
7542EOF
7543
7544else
7545 echo "$ac_t""no" 1>&6
7546fi
7547done
7548
7549fi
7550
7551
7552echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
afc31813 7553echo "configure:7554: checking for ANSI C header files" >&5
10f2d63a
VZ
7554if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7555 echo $ac_n "(cached) $ac_c" 1>&6
7556else
7557 cat > conftest.$ac_ext <<EOF
afc31813 7558#line 7559 "configure"
10f2d63a
VZ
7559#include "confdefs.h"
7560#include <stdlib.h>
7561#include <stdarg.h>
7562#include <string.h>
7563#include <float.h>
7564EOF
7565ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
afc31813 7566{ (eval echo configure:7567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
7567ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7568if test -z "$ac_err"; then
7569 rm -rf conftest*
7570 ac_cv_header_stdc=yes
7571else
7572 echo "$ac_err" >&5
7573 echo "configure: failed program was:" >&5
7574 cat conftest.$ac_ext >&5
7575 rm -rf conftest*
7576 ac_cv_header_stdc=no
7577fi
7578rm -f conftest*
7579
7580if test $ac_cv_header_stdc = yes; then
7581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7582cat > conftest.$ac_ext <<EOF
afc31813 7583#line 7584 "configure"
10f2d63a
VZ
7584#include "confdefs.h"
7585#include <string.h>
7586EOF
7587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7588 egrep "memchr" >/dev/null 2>&1; then
7589 :
7590else
7591 rm -rf conftest*
7592 ac_cv_header_stdc=no
7593fi
7594rm -f conftest*
7595
7596fi
7597
7598if test $ac_cv_header_stdc = yes; then
7599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7600cat > conftest.$ac_ext <<EOF
afc31813 7601#line 7602 "configure"
10f2d63a
VZ
7602#include "confdefs.h"
7603#include <stdlib.h>
7604EOF
7605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7606 egrep "free" >/dev/null 2>&1; then
7607 :
7608else
7609 rm -rf conftest*
7610 ac_cv_header_stdc=no
7611fi
7612rm -f conftest*
7613
7614fi
7615
7616if test $ac_cv_header_stdc = yes; then
7617 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7618if test "$cross_compiling" = yes; then
7619 :
7620else
7621 cat > conftest.$ac_ext <<EOF
afc31813 7622#line 7623 "configure"
10f2d63a
VZ
7623#include "confdefs.h"
7624#include <ctype.h>
7625#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7626#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7627#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7628int main () { int i; for (i = 0; i < 256; i++)
7629if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7630exit (0); }
7631
7632EOF
afc31813 7633if { (eval echo configure:7634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7634then
7635 :
7636else
7637 echo "configure: failed program was:" >&5
7638 cat conftest.$ac_ext >&5
7639 rm -fr conftest*
7640 ac_cv_header_stdc=no
7641fi
7642rm -fr conftest*
7643fi
7644
7645fi
7646fi
7647
7648echo "$ac_t""$ac_cv_header_stdc" 1>&6
7649if test $ac_cv_header_stdc = yes; then
7650 cat >> confdefs.h <<\EOF
7651#define STDC_HEADERS 1
7652EOF
7653
7654fi
7655
7656echo $ac_n "checking for mode_t""... $ac_c" 1>&6
afc31813 7657echo "configure:7658: checking for mode_t" >&5
10f2d63a
VZ
7658if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7659 echo $ac_n "(cached) $ac_c" 1>&6
7660else
7661 cat > conftest.$ac_ext <<EOF
afc31813 7662#line 7663 "configure"
10f2d63a
VZ
7663#include "confdefs.h"
7664#include <sys/types.h>
7665#if STDC_HEADERS
7666#include <stdlib.h>
7667#include <stddef.h>
7668#endif
7669EOF
7670if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7671 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7672 rm -rf conftest*
7673 ac_cv_type_mode_t=yes
7674else
7675 rm -rf conftest*
7676 ac_cv_type_mode_t=no
7677fi
7678rm -f conftest*
7679
7680fi
7681echo "$ac_t""$ac_cv_type_mode_t" 1>&6
7682if test $ac_cv_type_mode_t = no; then
7683 cat >> confdefs.h <<\EOF
7684#define mode_t int
7685EOF
7686
7687fi
7688
7689echo $ac_n "checking for off_t""... $ac_c" 1>&6
afc31813 7690echo "configure:7691: checking for off_t" >&5
10f2d63a
VZ
7691if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7692 echo $ac_n "(cached) $ac_c" 1>&6
7693else
7694 cat > conftest.$ac_ext <<EOF
afc31813 7695#line 7696 "configure"
10f2d63a
VZ
7696#include "confdefs.h"
7697#include <sys/types.h>
7698#if STDC_HEADERS
7699#include <stdlib.h>
7700#include <stddef.h>
7701#endif
7702EOF
7703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7704 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7705 rm -rf conftest*
7706 ac_cv_type_off_t=yes
7707else
7708 rm -rf conftest*
7709 ac_cv_type_off_t=no
7710fi
7711rm -f conftest*
7712
7713fi
7714echo "$ac_t""$ac_cv_type_off_t" 1>&6
7715if test $ac_cv_type_off_t = no; then
7716 cat >> confdefs.h <<\EOF
7717#define off_t long
7718EOF
7719
7720fi
7721
7722echo $ac_n "checking for pid_t""... $ac_c" 1>&6
afc31813 7723echo "configure:7724: checking for pid_t" >&5
10f2d63a
VZ
7724if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6
7726else
7727 cat > conftest.$ac_ext <<EOF
afc31813 7728#line 7729 "configure"
10f2d63a
VZ
7729#include "confdefs.h"
7730#include <sys/types.h>
7731#if STDC_HEADERS
7732#include <stdlib.h>
7733#include <stddef.h>
7734#endif
7735EOF
7736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7737 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7738 rm -rf conftest*
7739 ac_cv_type_pid_t=yes
7740else
7741 rm -rf conftest*
7742 ac_cv_type_pid_t=no
7743fi
7744rm -f conftest*
7745
7746fi
7747echo "$ac_t""$ac_cv_type_pid_t" 1>&6
7748if test $ac_cv_type_pid_t = no; then
7749 cat >> confdefs.h <<\EOF
7750#define pid_t int
7751EOF
7752
7753fi
7754
7755echo $ac_n "checking for size_t""... $ac_c" 1>&6
afc31813 7756echo "configure:7757: checking for size_t" >&5
10f2d63a
VZ
7757if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7758 echo $ac_n "(cached) $ac_c" 1>&6
7759else
7760 cat > conftest.$ac_ext <<EOF
afc31813 7761#line 7762 "configure"
10f2d63a
VZ
7762#include "confdefs.h"
7763#include <sys/types.h>
7764#if STDC_HEADERS
7765#include <stdlib.h>
7766#include <stddef.h>
7767#endif
7768EOF
7769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7770 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7771 rm -rf conftest*
7772 ac_cv_type_size_t=yes
7773else
7774 rm -rf conftest*
7775 ac_cv_type_size_t=no
7776fi
7777rm -f conftest*
7778
7779fi
7780echo "$ac_t""$ac_cv_type_size_t" 1>&6
7781if test $ac_cv_type_size_t = no; then
7782 cat >> confdefs.h <<\EOF
7783#define size_t unsigned
7784EOF
7785
7786fi
7787
7788echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
afc31813 7789echo "configure:7790: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
7790if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
7791 echo $ac_n "(cached) $ac_c" 1>&6
7792else
7793 cat > conftest.$ac_ext <<EOF
afc31813 7794#line 7795 "configure"
10f2d63a
VZ
7795#include "confdefs.h"
7796#include <sys/types.h>
7797EOF
7798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7799 egrep "uid_t" >/dev/null 2>&1; then
7800 rm -rf conftest*
7801 ac_cv_type_uid_t=yes
7802else
7803 rm -rf conftest*
7804 ac_cv_type_uid_t=no
7805fi
7806rm -f conftest*
7807
7808fi
7809
7810echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7811if test $ac_cv_type_uid_t = no; then
7812 cat >> confdefs.h <<\EOF
7813#define uid_t int
7814EOF
7815
7816 cat >> confdefs.h <<\EOF
7817#define gid_t int
7818EOF
7819
7820fi
7821
7822
7823
7824
7825echo $ac_n "checking for working const""... $ac_c" 1>&6
afc31813 7826echo "configure:7827: checking for working const" >&5
10f2d63a
VZ
7827if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7828 echo $ac_n "(cached) $ac_c" 1>&6
7829else
7830 cat > conftest.$ac_ext <<EOF
afc31813 7831#line 7832 "configure"
10f2d63a
VZ
7832#include "confdefs.h"
7833
7834int main() {
7835
7836/* Ultrix mips cc rejects this. */
7837typedef int charset[2]; const charset x;
7838/* SunOS 4.1.1 cc rejects this. */
7839char const *const *ccp;
7840char **p;
7841/* NEC SVR4.0.2 mips cc rejects this. */
7842struct point {int x, y;};
7843static struct point const zero = {0,0};
7844/* AIX XL C 1.02.0.0 rejects this.
7845 It does not let you subtract one const X* pointer from another in an arm
7846 of an if-expression whose if-part is not a constant expression */
7847const char *g = "string";
7848ccp = &g + (g ? g-g : 0);
7849/* HPUX 7.0 cc rejects these. */
7850++ccp;
7851p = (char**) ccp;
7852ccp = (char const *const *) p;
7853{ /* SCO 3.2v4 cc rejects this. */
7854 char *t;
7855 char const *s = 0 ? (char *) 0 : (char const *) 0;
7856
7857 *t++ = 0;
7858}
7859{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7860 int x[] = {25, 17};
7861 const int *foo = &x[0];
7862 ++foo;
7863}
7864{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7865 typedef const int *iptr;
7866 iptr p = 0;
7867 ++p;
7868}
7869{ /* AIX XL C 1.02.0.0 rejects this saying
7870 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7871 struct s { int j; const int *ap[3]; };
7872 struct s *b; b->j = 5;
7873}
7874{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7875 const int foo = 10;
7876}
7877
7878; return 0; }
7879EOF
afc31813 7880if { (eval echo configure:7881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
7881 rm -rf conftest*
7882 ac_cv_c_const=yes
7883else
7884 echo "configure: failed program was:" >&5
7885 cat conftest.$ac_ext >&5
7886 rm -rf conftest*
7887 ac_cv_c_const=no
7888fi
7889rm -f conftest*
7890fi
7891
7892echo "$ac_t""$ac_cv_c_const" 1>&6
7893if test $ac_cv_c_const = no; then
7894 cat >> confdefs.h <<\EOF
7895#define const
7896EOF
7897
7898fi
7899
7900echo $ac_n "checking for inline""... $ac_c" 1>&6
afc31813 7901echo "configure:7902: checking for inline" >&5
10f2d63a
VZ
7902if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
7903 echo $ac_n "(cached) $ac_c" 1>&6
7904else
7905 ac_cv_c_inline=no
7906for ac_kw in inline __inline__ __inline; do
7907 cat > conftest.$ac_ext <<EOF
afc31813 7908#line 7909 "configure"
10f2d63a
VZ
7909#include "confdefs.h"
7910
7911int main() {
7912} $ac_kw foo() {
7913; return 0; }
7914EOF
afc31813 7915if { (eval echo configure:7916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
7916 rm -rf conftest*
7917 ac_cv_c_inline=$ac_kw; break
7918else
7919 echo "configure: failed program was:" >&5
7920 cat conftest.$ac_ext >&5
7921fi
7922rm -f conftest*
7923done
7924
7925fi
7926
7927echo "$ac_t""$ac_cv_c_inline" 1>&6
7928case "$ac_cv_c_inline" in
7929 inline | yes) ;;
7930 no) cat >> confdefs.h <<\EOF
7931#define inline
7932EOF
7933 ;;
7934 *) cat >> confdefs.h <<EOF
7935#define inline $ac_cv_c_inline
7936EOF
7937 ;;
7938esac
7939
7940
7941echo $ac_n "checking size of char""... $ac_c" 1>&6
afc31813 7942echo "configure:7943: checking size of char" >&5
10f2d63a
VZ
7943if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
7944 echo $ac_n "(cached) $ac_c" 1>&6
7945else
7946 if test "$cross_compiling" = yes; then
7947 ac_cv_sizeof_char=1
7948else
7949 cat > conftest.$ac_ext <<EOF
afc31813 7950#line 7951 "configure"
10f2d63a
VZ
7951#include "confdefs.h"
7952#include <stdio.h>
7953main()
7954{
7955 FILE *f=fopen("conftestval", "w");
7956 if (!f) exit(1);
7957 fprintf(f, "%d\n", sizeof(char));
7958 exit(0);
7959}
7960EOF
afc31813 7961if { (eval echo configure:7962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7962then
7963 ac_cv_sizeof_char=`cat conftestval`
7964else
7965 echo "configure: failed program was:" >&5
7966 cat conftest.$ac_ext >&5
7967 rm -fr conftest*
7968 ac_cv_sizeof_char=0
7969fi
7970rm -fr conftest*
7971fi
7972
7973fi
7974echo "$ac_t""$ac_cv_sizeof_char" 1>&6
7975cat >> confdefs.h <<EOF
7976#define SIZEOF_CHAR $ac_cv_sizeof_char
7977EOF
7978
7979
7980echo $ac_n "checking size of short""... $ac_c" 1>&6
afc31813 7981echo "configure:7982: checking size of short" >&5
10f2d63a
VZ
7982if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
7983 echo $ac_n "(cached) $ac_c" 1>&6
7984else
7985 if test "$cross_compiling" = yes; then
7986 ac_cv_sizeof_short=2
7987else
7988 cat > conftest.$ac_ext <<EOF
afc31813 7989#line 7990 "configure"
10f2d63a
VZ
7990#include "confdefs.h"
7991#include <stdio.h>
7992main()
7993{
7994 FILE *f=fopen("conftestval", "w");
7995 if (!f) exit(1);
7996 fprintf(f, "%d\n", sizeof(short));
7997 exit(0);
7998}
7999EOF
afc31813 8000if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8001then
8002 ac_cv_sizeof_short=`cat conftestval`
8003else
8004 echo "configure: failed program was:" >&5
8005 cat conftest.$ac_ext >&5
8006 rm -fr conftest*
8007 ac_cv_sizeof_short=0
8008fi
8009rm -fr conftest*
8010fi
8011
8012fi
8013echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8014cat >> confdefs.h <<EOF
8015#define SIZEOF_SHORT $ac_cv_sizeof_short
8016EOF
8017
8018
8019echo $ac_n "checking size of int *""... $ac_c" 1>&6
afc31813 8020echo "configure:8021: checking size of int *" >&5
10f2d63a
VZ
8021if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
8022 echo $ac_n "(cached) $ac_c" 1>&6
8023else
8024 if test "$cross_compiling" = yes; then
8025 ac_cv_sizeof_int_p=4
8026else
8027 cat > conftest.$ac_ext <<EOF
afc31813 8028#line 8029 "configure"
10f2d63a
VZ
8029#include "confdefs.h"
8030#include <stdio.h>
8031main()
8032{
8033 FILE *f=fopen("conftestval", "w");
8034 if (!f) exit(1);
8035 fprintf(f, "%d\n", sizeof(int *));
8036 exit(0);
8037}
8038EOF
afc31813 8039if { (eval echo configure:8040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8040then
8041 ac_cv_sizeof_int_p=`cat conftestval`
8042else
8043 echo "configure: failed program was:" >&5
8044 cat conftest.$ac_ext >&5
8045 rm -fr conftest*
8046 ac_cv_sizeof_int_p=0
8047fi
8048rm -fr conftest*
8049fi
8050
8051fi
8052echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
8053cat >> confdefs.h <<EOF
8054#define SIZEOF_INT_P $ac_cv_sizeof_int_p
8055EOF
8056
8057
8058echo $ac_n "checking size of int""... $ac_c" 1>&6
afc31813 8059echo "configure:8060: checking size of int" >&5
10f2d63a
VZ
8060if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8061 echo $ac_n "(cached) $ac_c" 1>&6
8062else
8063 if test "$cross_compiling" = yes; then
8064 ac_cv_sizeof_int=4
8065else
8066 cat > conftest.$ac_ext <<EOF
afc31813 8067#line 8068 "configure"
10f2d63a
VZ
8068#include "confdefs.h"
8069#include <stdio.h>
8070main()
8071{
8072 FILE *f=fopen("conftestval", "w");
8073 if (!f) exit(1);
8074 fprintf(f, "%d\n", sizeof(int));
8075 exit(0);
8076}
8077EOF
afc31813 8078if { (eval echo configure:8079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8079then
8080 ac_cv_sizeof_int=`cat conftestval`
8081else
8082 echo "configure: failed program was:" >&5
8083 cat conftest.$ac_ext >&5
8084 rm -fr conftest*
8085 ac_cv_sizeof_int=0
8086fi
8087rm -fr conftest*
8088fi
8089
8090fi
8091echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8092cat >> confdefs.h <<EOF
8093#define SIZEOF_INT $ac_cv_sizeof_int
8094EOF
8095
8096
8097echo $ac_n "checking size of long""... $ac_c" 1>&6
afc31813 8098echo "configure:8099: checking size of long" >&5
10f2d63a
VZ
8099if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8100 echo $ac_n "(cached) $ac_c" 1>&6
8101else
8102 if test "$cross_compiling" = yes; then
8103 ac_cv_sizeof_long=4
8104else
8105 cat > conftest.$ac_ext <<EOF
afc31813 8106#line 8107 "configure"
10f2d63a
VZ
8107#include "confdefs.h"
8108#include <stdio.h>
8109main()
8110{
8111 FILE *f=fopen("conftestval", "w");
8112 if (!f) exit(1);
8113 fprintf(f, "%d\n", sizeof(long));
8114 exit(0);
8115}
8116EOF
afc31813 8117if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8118then
8119 ac_cv_sizeof_long=`cat conftestval`
8120else
8121 echo "configure: failed program was:" >&5
8122 cat conftest.$ac_ext >&5
8123 rm -fr conftest*
8124 ac_cv_sizeof_long=0
8125fi
8126rm -fr conftest*
8127fi
8128
8129fi
8130echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8131cat >> confdefs.h <<EOF
8132#define SIZEOF_LONG $ac_cv_sizeof_long
8133EOF
8134
8135
8136echo $ac_n "checking size of long long""... $ac_c" 1>&6
afc31813 8137echo "configure:8138: checking size of long long" >&5
10f2d63a
VZ
8138if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
8139 echo $ac_n "(cached) $ac_c" 1>&6
8140else
8141 if test "$cross_compiling" = yes; then
8142 ac_cv_sizeof_long_long=0
8143else
8144 cat > conftest.$ac_ext <<EOF
afc31813 8145#line 8146 "configure"
10f2d63a
VZ
8146#include "confdefs.h"
8147#include <stdio.h>
8148main()
8149{
8150 FILE *f=fopen("conftestval", "w");
8151 if (!f) exit(1);
8152 fprintf(f, "%d\n", sizeof(long long));
8153 exit(0);
8154}
8155EOF
afc31813 8156if { (eval echo configure:8157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8157then
8158 ac_cv_sizeof_long_long=`cat conftestval`
8159else
8160 echo "configure: failed program was:" >&5
8161 cat conftest.$ac_ext >&5
8162 rm -fr conftest*
8163 ac_cv_sizeof_long_long=0
8164fi
8165rm -fr conftest*
8166fi
8167
8168fi
8169echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
8170cat >> confdefs.h <<EOF
8171#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8172EOF
8173
8174
8175
8176echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
afc31813 8177echo "configure:8178: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
8178if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8179 echo $ac_n "(cached) $ac_c" 1>&6
8180else
8181 ac_cv_c_bigendian=unknown
8182# See if sys/param.h defines the BYTE_ORDER macro.
8183cat > conftest.$ac_ext <<EOF
afc31813 8184#line 8185 "configure"
10f2d63a
VZ
8185#include "confdefs.h"
8186#include <sys/types.h>
8187#include <sys/param.h>
8188int main() {
8189
8190#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8191 bogus endian macros
8192#endif
8193; return 0; }
8194EOF
afc31813 8195if { (eval echo configure:8196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8196 rm -rf conftest*
8197 # It does; now see whether it defined to BIG_ENDIAN or not.
8198cat > conftest.$ac_ext <<EOF
afc31813 8199#line 8200 "configure"
10f2d63a
VZ
8200#include "confdefs.h"
8201#include <sys/types.h>
8202#include <sys/param.h>
8203int main() {
8204
8205#if BYTE_ORDER != BIG_ENDIAN
8206 not big endian
8207#endif
8208; return 0; }
8209EOF
afc31813 8210if { (eval echo configure:8211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8211 rm -rf conftest*
8212 ac_cv_c_bigendian=yes
8213else
8214 echo "configure: failed program was:" >&5
8215 cat conftest.$ac_ext >&5
8216 rm -rf conftest*
8217 ac_cv_c_bigendian=no
8218fi
8219rm -f conftest*
8220else
8221 echo "configure: failed program was:" >&5
8222 cat conftest.$ac_ext >&5
8223fi
8224rm -f conftest*
8225if test $ac_cv_c_bigendian = unknown; then
8226if test "$cross_compiling" = yes; then
8227 ac_cv_c_bigendian=unknown
8228else
8229 cat > conftest.$ac_ext <<EOF
afc31813 8230#line 8231 "configure"
10f2d63a
VZ
8231#include "confdefs.h"
8232main () {
8233 /* Are we little or big endian? From Harbison&Steele. */
8234 union
8235 {
8236 long l;
8237 char c[sizeof (long)];
8238 } u;
8239 u.l = 1;
8240 exit (u.c[sizeof (long) - 1] == 1);
8241}
8242EOF
afc31813 8243if { (eval echo configure:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8244then
8245 ac_cv_c_bigendian=no
8246else
8247 echo "configure: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8249 rm -fr conftest*
8250 ac_cv_c_bigendian=yes
8251fi
8252rm -fr conftest*
8253fi
8254
8255fi
8256fi
8257
8258echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8259if test $ac_cv_c_bigendian = unknown; then
8260 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
8261fi
8262if test $ac_cv_c_bigendian = yes; then
8263 cat >> confdefs.h <<\EOF
8264#define WORDS_BIGENDIAN 1
8265EOF
8266
8267fi
8268
8269
8270
8271 if test "$cross_compiling" = "yes"; then
8272 cat >> confdefs.h <<\EOF
8273#define wxUSE_IOSTREAMH 1
8274EOF
8275
8276 else
8277
8278 ac_ext=C
8279# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8280ac_cpp='$CXXCPP $CPPFLAGS'
8281ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8282ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8283cross_compiling=$ac_cv_prog_cxx_cross
8284
8285
8286 for ac_hdr in iostream
8287do
8288ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8289echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
afc31813 8290echo "configure:8291: checking for $ac_hdr" >&5
10f2d63a
VZ
8291if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8292 echo $ac_n "(cached) $ac_c" 1>&6
8293else
8294 cat > conftest.$ac_ext <<EOF
afc31813 8295#line 8296 "configure"
10f2d63a
VZ
8296#include "confdefs.h"
8297#include <$ac_hdr>
8298EOF
8299ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
afc31813 8300{ (eval echo configure:8301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8301ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8302if test -z "$ac_err"; then
8303 rm -rf conftest*
8304 eval "ac_cv_header_$ac_safe=yes"
8305else
8306 echo "$ac_err" >&5
8307 echo "configure: failed program was:" >&5
8308 cat conftest.$ac_ext >&5
8309 rm -rf conftest*
8310 eval "ac_cv_header_$ac_safe=no"
8311fi
8312rm -f conftest*
8313fi
8314if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8315 echo "$ac_t""yes" 1>&6
8316 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8317 cat >> confdefs.h <<EOF
8318#define $ac_tr_hdr 1
8319EOF
8320
8321else
8322 echo "$ac_t""no" 1>&6
8323fi
8324done
8325
8326
8327 if test "x$HAVE_IOSTREAM" = x ; then
8328 cat >> confdefs.h <<\EOF
8329#define wxUSE_IOSTREAMH 1
8330EOF
8331
8332 else
8333 :
8334 fi
8335
8336 ac_ext=c
8337# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8338ac_cpp='$CPP $CPPFLAGS'
8339ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8340ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8341cross_compiling=$ac_cv_prog_cc_cross
8342
8343 fi
8344
8345
8346
8347 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
afc31813 8348echo "configure:8349: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
8349if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
8350 echo $ac_n "(cached) $ac_c" 1>&6
8351else
8352
8353
8354 ac_ext=C
8355# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8356ac_cpp='$CXXCPP $CPPFLAGS'
8357ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8358ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8359cross_compiling=$ac_cv_prog_cxx_cross
8360
8361
8362 cat > conftest.$ac_ext <<EOF
afc31813 8363#line 8364 "configure"
10f2d63a
VZ
8364#include "confdefs.h"
8365
8366
8367int main() {
8368
8369 bool b = true;
8370
8371 return 0;
8372
8373; return 0; }
8374EOF
afc31813 8375if { (eval echo configure:8376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8376 rm -rf conftest*
8377
8378 cat >> confdefs.h <<\EOF
8379#define HAVE_BOOL 1
8380EOF
8381
8382 wx_cv_cpp_bool=yes
8383
8384else
8385 echo "configure: failed program was:" >&5
8386 cat conftest.$ac_ext >&5
8387 rm -rf conftest*
8388
8389 wx_cv_cpp_bool=no
8390
8391
8392fi
8393rm -f conftest*
8394
8395 ac_ext=c
8396# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8397ac_cpp='$CPP $CPPFLAGS'
8398ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8399ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8400cross_compiling=$ac_cv_prog_cc_cross
8401
8402
8403fi
8404
8405echo "$ac_t""$wx_cv_cpp_bool" 1>&6
8406
8407 if test "$wx_cv_cpp_bool" = "yes"; then
8408 cat >> confdefs.h <<\EOF
8409#define HAVE_BOOL 1
8410EOF
8411
8412 fi
8413
8414
8415
10f2d63a 8416echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
afc31813 8417echo "configure:8418: checking if you need GNU extensions" >&5
10f2d63a
VZ
8418if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
8419 echo $ac_n "(cached) $ac_c" 1>&6
8420else
8421
8422 cat > conftest.$ac_ext <<EOF
afc31813 8423#line 8424 "configure"
10f2d63a
VZ
8424#include "confdefs.h"
8425#include <features.h>
8426int main() {
8427
8428
8429#ifndef __GNU_LIBRARY__
8430 Compile error wanted
8431#endif
8432
8433
8434; return 0; }
8435EOF
afc31813 8436if { (eval echo configure:8437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8437 rm -rf conftest*
8438 wx_cv_gnu_extensions=yes
8439else
8440 echo "configure: failed program was:" >&5
8441 cat conftest.$ac_ext >&5
8442 rm -rf conftest*
8443 wx_cv_gnu_extensions=no
8444fi
8445rm -f conftest*
8446
8447fi
8448
8449
8450echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
8451if test "$wx_cv_gnu_extensions" = "yes"; then
8452 cat >> confdefs.h <<EOF
8453#define _GNU_SOURCE 1
8454EOF
8455
8456fi
8457
8458
8459
8460echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
afc31813 8461echo "configure:8462: checking for wcslen in -lc" >&5
10f2d63a
VZ
8462ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
8463if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8464 echo $ac_n "(cached) $ac_c" 1>&6
8465else
8466 ac_save_LIBS="$LIBS"
8467LIBS="-lc $LIBS"
8468cat > conftest.$ac_ext <<EOF
afc31813 8469#line 8470 "configure"
10f2d63a
VZ
8470#include "confdefs.h"
8471/* Override any gcc2 internal prototype to avoid an error. */
8472/* We use char because int might match the return type of a gcc2
8473 builtin and then its argument prototype would still apply. */
8474char wcslen();
8475
8476int main() {
8477wcslen()
8478; return 0; }
8479EOF
afc31813 8480if { (eval echo configure:8481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8481 rm -rf conftest*
8482 eval "ac_cv_lib_$ac_lib_var=yes"
8483else
8484 echo "configure: failed program was:" >&5
8485 cat conftest.$ac_ext >&5
8486 rm -rf conftest*
8487 eval "ac_cv_lib_$ac_lib_var=no"
8488fi
8489rm -f conftest*
8490LIBS="$ac_save_LIBS"
8491
8492fi
8493if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8494 echo "$ac_t""yes" 1>&6
8495
8496 cat >> confdefs.h <<\EOF
8497#define HAVE_WCSLEN 1
8498EOF
8499
8500 WCHAR_LINK=""
8501
8502else
8503 echo "$ac_t""no" 1>&6
8504
8505 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
afc31813 8506echo "configure:8507: checking for wcslen in -lw" >&5
10f2d63a
VZ
8507ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
8508if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8509 echo $ac_n "(cached) $ac_c" 1>&6
8510else
8511 ac_save_LIBS="$LIBS"
8512LIBS="-lw $LIBS"
8513cat > conftest.$ac_ext <<EOF
afc31813 8514#line 8515 "configure"
10f2d63a
VZ
8515#include "confdefs.h"
8516/* Override any gcc2 internal prototype to avoid an error. */
8517/* We use char because int might match the return type of a gcc2
8518 builtin and then its argument prototype would still apply. */
8519char wcslen();
8520
8521int main() {
8522wcslen()
8523; return 0; }
8524EOF
afc31813 8525if { (eval echo configure:8526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8526 rm -rf conftest*
8527 eval "ac_cv_lib_$ac_lib_var=yes"
8528else
8529 echo "configure: failed program was:" >&5
8530 cat conftest.$ac_ext >&5
8531 rm -rf conftest*
8532 eval "ac_cv_lib_$ac_lib_var=no"
8533fi
8534rm -f conftest*
8535LIBS="$ac_save_LIBS"
8536
8537fi
8538if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8539 echo "$ac_t""yes" 1>&6
8540
8541 cat >> confdefs.h <<\EOF
8542#define HAVE_WCSLEN 1
8543EOF
8544
8545 WCHAR_LINK="-lw"
8546
8547else
8548 echo "$ac_t""no" 1>&6
8549fi
8550
8551
8552fi
8553
8554
8555echo $ac_n "checking for vprintf""... $ac_c" 1>&6
afc31813 8556echo "configure:8557: checking for vprintf" >&5
10f2d63a
VZ
8557if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8558 echo $ac_n "(cached) $ac_c" 1>&6
8559else
8560 cat > conftest.$ac_ext <<EOF
afc31813 8561#line 8562 "configure"
10f2d63a
VZ
8562#include "confdefs.h"
8563/* System header to define __stub macros and hopefully few prototypes,
8564 which can conflict with char vprintf(); below. */
8565#include <assert.h>
8566/* Override any gcc2 internal prototype to avoid an error. */
8567/* We use char because int might match the return type of a gcc2
8568 builtin and then its argument prototype would still apply. */
8569char vprintf();
8570
8571int main() {
8572
8573/* The GNU C library defines this for functions which it implements
8574 to always fail with ENOSYS. Some functions are actually named
8575 something starting with __ and the normal name is an alias. */
8576#if defined (__stub_vprintf) || defined (__stub___vprintf)
8577choke me
8578#else
8579vprintf();
8580#endif
8581
8582; return 0; }
8583EOF
afc31813 8584if { (eval echo configure:8585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8585 rm -rf conftest*
8586 eval "ac_cv_func_vprintf=yes"
8587else
8588 echo "configure: failed program was:" >&5
8589 cat conftest.$ac_ext >&5
8590 rm -rf conftest*
8591 eval "ac_cv_func_vprintf=no"
8592fi
8593rm -f conftest*
8594fi
8595
8596if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8597 echo "$ac_t""yes" 1>&6
8598 cat >> confdefs.h <<\EOF
8599#define HAVE_VPRINTF 1
8600EOF
8601
8602else
8603 echo "$ac_t""no" 1>&6
8604fi
8605
8606if test "$ac_cv_func_vprintf" != yes; then
8607echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
afc31813 8608echo "configure:8609: checking for _doprnt" >&5
10f2d63a
VZ
8609if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8610 echo $ac_n "(cached) $ac_c" 1>&6
8611else
8612 cat > conftest.$ac_ext <<EOF
afc31813 8613#line 8614 "configure"
10f2d63a
VZ
8614#include "confdefs.h"
8615/* System header to define __stub macros and hopefully few prototypes,
8616 which can conflict with char _doprnt(); below. */
8617#include <assert.h>
8618/* Override any gcc2 internal prototype to avoid an error. */
8619/* We use char because int might match the return type of a gcc2
8620 builtin and then its argument prototype would still apply. */
8621char _doprnt();
8622
8623int main() {
8624
8625/* The GNU C library defines this for functions which it implements
8626 to always fail with ENOSYS. Some functions are actually named
8627 something starting with __ and the normal name is an alias. */
8628#if defined (__stub__doprnt) || defined (__stub____doprnt)
8629choke me
8630#else
8631_doprnt();
8632#endif
8633
8634; return 0; }
8635EOF
afc31813 8636if { (eval echo configure:8637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8637 rm -rf conftest*
8638 eval "ac_cv_func__doprnt=yes"
8639else
8640 echo "configure: failed program was:" >&5
8641 cat conftest.$ac_ext >&5
8642 rm -rf conftest*
8643 eval "ac_cv_func__doprnt=no"
8644fi
8645rm -f conftest*
8646fi
8647
8648if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8649 echo "$ac_t""yes" 1>&6
8650 cat >> confdefs.h <<\EOF
8651#define HAVE_DOPRNT 1
8652EOF
8653
8654else
8655 echo "$ac_t""no" 1>&6
8656fi
8657
8658fi
8659
8660
8661for ac_func in vsnprintf
8662do
8663echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
afc31813 8664echo "configure:8665: checking for $ac_func" >&5
10f2d63a
VZ
8665if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8666 echo $ac_n "(cached) $ac_c" 1>&6
8667else
8668 cat > conftest.$ac_ext <<EOF
afc31813 8669#line 8670 "configure"
10f2d63a
VZ
8670#include "confdefs.h"
8671/* System header to define __stub macros and hopefully few prototypes,
8672 which can conflict with char $ac_func(); below. */
8673#include <assert.h>
8674/* Override any gcc2 internal prototype to avoid an error. */
8675/* We use char because int might match the return type of a gcc2
8676 builtin and then its argument prototype would still apply. */
8677char $ac_func();
8678
8679int main() {
8680
8681/* The GNU C library defines this for functions which it implements
8682 to always fail with ENOSYS. Some functions are actually named
8683 something starting with __ and the normal name is an alias. */
8684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8685choke me
8686#else
8687$ac_func();
8688#endif
8689
8690; return 0; }
8691EOF
afc31813 8692if { (eval echo configure:8693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8693 rm -rf conftest*
8694 eval "ac_cv_func_$ac_func=yes"
8695else
8696 echo "configure: failed program was:" >&5
8697 cat conftest.$ac_ext >&5
8698 rm -rf conftest*
8699 eval "ac_cv_func_$ac_func=no"
8700fi
8701rm -f conftest*
8702fi
8703
8704if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8705 echo "$ac_t""yes" 1>&6
8706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8707 cat >> confdefs.h <<EOF
8708#define $ac_tr_func 1
8709EOF
8710 cat >> confdefs.h <<\EOF
8711#define HAVE_VSNPRINTF 1
8712EOF
8713
8714else
8715 echo "$ac_t""no" 1>&6
8716echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
8717
8718fi
8719done
8720
8721
8722
8723ac_ext=C
8724# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8725ac_cpp='$CXXCPP $CPPFLAGS'
8726ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8727ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8728cross_compiling=$ac_cv_prog_cxx_cross
8729
8730
8731echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
afc31813 8732echo "configure:8733: checking for vsscanf" >&5
10f2d63a
VZ
8733if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
8734 echo $ac_n "(cached) $ac_c" 1>&6
8735else
8736
8737 if test "$cross_compiling" = yes; then
8738 wx_cv_func_vsscanf=no
8739
8740else
8741 cat > conftest.$ac_ext <<EOF
afc31813 8742#line 8743 "configure"
10f2d63a
VZ
8743#include "confdefs.h"
8744#ifdef __cplusplus
8745extern "C" void exit(int);
8746#endif
8747
8748 #include <stdio.h>
8749 #include <stdarg.h>
8750
8751 int try_vsscanf(const char *format, ...)
8752 {
8753 va_list ap;
8754 va_start(ap, format);
8755
8756 vsscanf("17", format, ap);
8757
8758 va_end(ap);
8759 }
8760
8761 int main()
8762 {
8763 int i;
8764 try_vsscanf("%d", &i);
8765 return i == 17 ? 0 : 1;
8766 }
8767
8768EOF
afc31813 8769if { (eval echo configure:8770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8770then
8771
8772 cat >> confdefs.h <<\EOF
8773#define HAVE_VSSCANF 1
8774EOF
8775
8776 wx_cv_func_vsscanf=yes
8777
8778else
8779 echo "configure: failed program was:" >&5
8780 cat conftest.$ac_ext >&5
8781 rm -fr conftest*
8782 wx_cv_func_vsscanf=no
8783fi
8784rm -fr conftest*
8785fi
8786
8787
8788fi
8789
8790echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
8791
8792ac_ext=c
8793# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8794ac_cpp='$CPP $CPPFLAGS'
8795ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8796ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8797cross_compiling=$ac_cv_prog_cc_cross
8798
8799
8800if test "$USE_UNIX" = 1; then
8801
8802for ac_func in vfork
8803do
8804echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
afc31813 8805echo "configure:8806: checking for $ac_func" >&5
10f2d63a
VZ
8806if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8807 echo $ac_n "(cached) $ac_c" 1>&6
8808else
8809 cat > conftest.$ac_ext <<EOF
afc31813 8810#line 8811 "configure"
10f2d63a
VZ
8811#include "confdefs.h"
8812/* System header to define __stub macros and hopefully few prototypes,
8813 which can conflict with char $ac_func(); below. */
8814#include <assert.h>
8815/* Override any gcc2 internal prototype to avoid an error. */
8816/* We use char because int might match the return type of a gcc2
8817 builtin and then its argument prototype would still apply. */
8818char $ac_func();
8819
8820int main() {
8821
8822/* The GNU C library defines this for functions which it implements
8823 to always fail with ENOSYS. Some functions are actually named
8824 something starting with __ and the normal name is an alias. */
8825#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8826choke me
8827#else
8828$ac_func();
8829#endif
8830
8831; return 0; }
8832EOF
afc31813 8833if { (eval echo configure:8834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8834 rm -rf conftest*
8835 eval "ac_cv_func_$ac_func=yes"
8836else
8837 echo "configure: failed program was:" >&5
8838 cat conftest.$ac_ext >&5
8839 rm -rf conftest*
8840 eval "ac_cv_func_$ac_func=no"
8841fi
8842rm -f conftest*
8843fi
8844
8845if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8846 echo "$ac_t""yes" 1>&6
8847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8848 cat >> confdefs.h <<EOF
8849#define $ac_tr_func 1
8850EOF
8851
8852else
8853 echo "$ac_t""no" 1>&6
8854fi
8855done
8856
8857
8858POSIX4_LINK=
8859for ac_func in nanosleep
8860do
8861echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
afc31813 8862echo "configure:8863: checking for $ac_func" >&5
10f2d63a
VZ
8863if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8864 echo $ac_n "(cached) $ac_c" 1>&6
8865else
8866 cat > conftest.$ac_ext <<EOF
afc31813 8867#line 8868 "configure"
10f2d63a
VZ
8868#include "confdefs.h"
8869/* System header to define __stub macros and hopefully few prototypes,
8870 which can conflict with char $ac_func(); below. */
8871#include <assert.h>
8872/* Override any gcc2 internal prototype to avoid an error. */
8873/* We use char because int might match the return type of a gcc2
8874 builtin and then its argument prototype would still apply. */
8875char $ac_func();
8876
8877int main() {
8878
8879/* The GNU C library defines this for functions which it implements
8880 to always fail with ENOSYS. Some functions are actually named
8881 something starting with __ and the normal name is an alias. */
8882#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8883choke me
8884#else
8885$ac_func();
8886#endif
8887
8888; return 0; }
8889EOF
afc31813 8890if { (eval echo configure:8891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8891 rm -rf conftest*
8892 eval "ac_cv_func_$ac_func=yes"
8893else
8894 echo "configure: failed program was:" >&5
8895 cat conftest.$ac_ext >&5
8896 rm -rf conftest*
8897 eval "ac_cv_func_$ac_func=no"
8898fi
8899rm -f conftest*
8900fi
8901
8902if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8903 echo "$ac_t""yes" 1>&6
8904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8905 cat >> confdefs.h <<EOF
8906#define $ac_tr_func 1
8907EOF
8908 cat >> confdefs.h <<\EOF
8909#define HAVE_NANOSLEEP 1
8910EOF
8911
8912else
8913 echo "$ac_t""no" 1>&6
8914echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
afc31813 8915echo "configure:8916: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
8916ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
8917if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8918 echo $ac_n "(cached) $ac_c" 1>&6
8919else
8920 ac_save_LIBS="$LIBS"
8921LIBS="-lposix4 $LIBS"
8922cat > conftest.$ac_ext <<EOF
afc31813 8923#line 8924 "configure"
10f2d63a
VZ
8924#include "confdefs.h"
8925/* Override any gcc2 internal prototype to avoid an error. */
8926/* We use char because int might match the return type of a gcc2
8927 builtin and then its argument prototype would still apply. */
8928char nanosleep();
8929
8930int main() {
8931nanosleep()
8932; return 0; }
8933EOF
afc31813 8934if { (eval echo configure:8935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8935 rm -rf conftest*
8936 eval "ac_cv_lib_$ac_lib_var=yes"
8937else
8938 echo "configure: failed program was:" >&5
8939 cat conftest.$ac_ext >&5
8940 rm -rf conftest*
8941 eval "ac_cv_lib_$ac_lib_var=no"
8942fi
8943rm -f conftest*
8944LIBS="$ac_save_LIBS"
8945
8946fi
8947if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8948 echo "$ac_t""yes" 1>&6
8949
8950 cat >> confdefs.h <<\EOF
8951#define HAVE_NANOSLEEP 1
8952EOF
8953
8954 POSIX4_LINK="-lposix4"
8955
8956else
8957 echo "$ac_t""no" 1>&6
8958
8959 for ac_func in usleep
8960do
8961echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
afc31813 8962echo "configure:8963: checking for $ac_func" >&5
10f2d63a
VZ
8963if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8964 echo $ac_n "(cached) $ac_c" 1>&6
8965else
8966 cat > conftest.$ac_ext <<EOF
afc31813 8967#line 8968 "configure"
10f2d63a
VZ
8968#include "confdefs.h"
8969/* System header to define __stub macros and hopefully few prototypes,
8970 which can conflict with char $ac_func(); below. */
8971#include <assert.h>
8972/* Override any gcc2 internal prototype to avoid an error. */
8973/* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8975char $ac_func();
8976
8977int main() {
8978
8979/* The GNU C library defines this for functions which it implements
8980 to always fail with ENOSYS. Some functions are actually named
8981 something starting with __ and the normal name is an alias. */
8982#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8983choke me
8984#else
8985$ac_func();
8986#endif
8987
8988; return 0; }
8989EOF
afc31813 8990if { (eval echo configure:8991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8991 rm -rf conftest*
8992 eval "ac_cv_func_$ac_func=yes"
8993else
8994 echo "configure: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8996 rm -rf conftest*
8997 eval "ac_cv_func_$ac_func=no"
8998fi
8999rm -f conftest*
9000fi
9001
9002if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9003 echo "$ac_t""yes" 1>&6
9004 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9005 cat >> confdefs.h <<EOF
9006#define $ac_tr_func 1
9007EOF
9008 cat >> confdefs.h <<\EOF
9009#define HAVE_USLEEP 1
9010EOF
9011
9012else
9013 echo "$ac_t""no" 1>&6
9014echo "configure: warning: wxSleep() function will not work" 1>&2
9015fi
9016done
9017
9018
9019fi
9020
9021
9022fi
9023done
9024
9025
9026for ac_func in uname gethostname
9027do
9028echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
afc31813 9029echo "configure:9030: checking for $ac_func" >&5
10f2d63a
VZ
9030if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9031 echo $ac_n "(cached) $ac_c" 1>&6
9032else
9033 cat > conftest.$ac_ext <<EOF
afc31813 9034#line 9035 "configure"
10f2d63a
VZ
9035#include "confdefs.h"
9036/* System header to define __stub macros and hopefully few prototypes,
9037 which can conflict with char $ac_func(); below. */
9038#include <assert.h>
9039/* Override any gcc2 internal prototype to avoid an error. */
9040/* We use char because int might match the return type of a gcc2
9041 builtin and then its argument prototype would still apply. */
9042char $ac_func();
9043
9044int main() {
9045
9046/* The GNU C library defines this for functions which it implements
9047 to always fail with ENOSYS. Some functions are actually named
9048 something starting with __ and the normal name is an alias. */
9049#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9050choke me
9051#else
9052$ac_func();
9053#endif
9054
9055; return 0; }
9056EOF
afc31813 9057if { (eval echo configure:9058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9058 rm -rf conftest*
9059 eval "ac_cv_func_$ac_func=yes"
9060else
9061 echo "configure: failed program was:" >&5
9062 cat conftest.$ac_ext >&5
9063 rm -rf conftest*
9064 eval "ac_cv_func_$ac_func=no"
9065fi
9066rm -f conftest*
9067fi
9068
9069if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9070 echo "$ac_t""yes" 1>&6
9071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9072 cat >> confdefs.h <<EOF
9073#define $ac_tr_func 1
9074EOF
9075 break
9076else
9077 echo "$ac_t""no" 1>&6
9078fi
9079done
9080
9081
9082for ac_func in strtok_r
9083do
9084echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
afc31813 9085echo "configure:9086: checking for $ac_func" >&5
10f2d63a
VZ
9086if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9087 echo $ac_n "(cached) $ac_c" 1>&6
9088else
9089 cat > conftest.$ac_ext <<EOF
afc31813 9090#line 9091 "configure"
10f2d63a
VZ
9091#include "confdefs.h"
9092/* System header to define __stub macros and hopefully few prototypes,
9093 which can conflict with char $ac_func(); below. */
9094#include <assert.h>
9095/* Override any gcc2 internal prototype to avoid an error. */
9096/* We use char because int might match the return type of a gcc2
9097 builtin and then its argument prototype would still apply. */
9098char $ac_func();
9099
9100int main() {
9101
9102/* The GNU C library defines this for functions which it implements
9103 to always fail with ENOSYS. Some functions are actually named
9104 something starting with __ and the normal name is an alias. */
9105#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9106choke me
9107#else
9108$ac_func();
9109#endif
9110
9111; return 0; }
9112EOF
afc31813 9113if { (eval echo configure:9114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9114 rm -rf conftest*
9115 eval "ac_cv_func_$ac_func=yes"
9116else
9117 echo "configure: failed program was:" >&5
9118 cat conftest.$ac_ext >&5
9119 rm -rf conftest*
9120 eval "ac_cv_func_$ac_func=no"
9121fi
9122rm -f conftest*
9123fi
9124
9125if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9126 echo "$ac_t""yes" 1>&6
9127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9128 cat >> confdefs.h <<EOF
9129#define $ac_tr_func 1
9130EOF
9131
9132else
9133 echo "$ac_t""no" 1>&6
9134fi
9135done
9136
9137
c63c7106 9138INET_LINK=
10f2d63a
VZ
9139for ac_func in inet_addr
9140do
9141echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
afc31813 9142echo "configure:9143: checking for $ac_func" >&5
10f2d63a
VZ
9143if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9144 echo $ac_n "(cached) $ac_c" 1>&6
9145else
9146 cat > conftest.$ac_ext <<EOF
afc31813 9147#line 9148 "configure"
10f2d63a
VZ
9148#include "confdefs.h"
9149/* System header to define __stub macros and hopefully few prototypes,
9150 which can conflict with char $ac_func(); below. */
9151#include <assert.h>
9152/* Override any gcc2 internal prototype to avoid an error. */
9153/* We use char because int might match the return type of a gcc2
9154 builtin and then its argument prototype would still apply. */
9155char $ac_func();
9156
9157int main() {
9158
9159/* The GNU C library defines this for functions which it implements
9160 to always fail with ENOSYS. Some functions are actually named
9161 something starting with __ and the normal name is an alias. */
9162#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9163choke me
9164#else
9165$ac_func();
9166#endif
9167
9168; return 0; }
9169EOF
afc31813 9170if { (eval echo configure:9171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9171 rm -rf conftest*
9172 eval "ac_cv_func_$ac_func=yes"
9173else
9174 echo "configure: failed program was:" >&5
9175 cat conftest.$ac_ext >&5
9176 rm -rf conftest*
9177 eval "ac_cv_func_$ac_func=no"
9178fi
9179rm -f conftest*
9180fi
9181
9182if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9183 echo "$ac_t""yes" 1>&6
9184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9185 cat >> confdefs.h <<EOF
9186#define $ac_tr_func 1
9187EOF
c63c7106
VZ
9188 cat >> confdefs.h <<\EOF
9189#define HAVE_INET_ADDR 1
9190EOF
9191
10f2d63a
VZ
9192else
9193 echo "$ac_t""no" 1>&6
c63c7106 9194echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
afc31813 9195echo "configure:9196: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
9196ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
9197if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9198 echo $ac_n "(cached) $ac_c" 1>&6
9199else
9200 ac_save_LIBS="$LIBS"
9201LIBS="-lnsl $LIBS"
9202cat > conftest.$ac_ext <<EOF
afc31813 9203#line 9204 "configure"
c63c7106
VZ
9204#include "confdefs.h"
9205/* Override any gcc2 internal prototype to avoid an error. */
9206/* We use char because int might match the return type of a gcc2
9207 builtin and then its argument prototype would still apply. */
9208char inet_addr();
9209
9210int main() {
9211inet_addr()
9212; return 0; }
9213EOF
afc31813 9214if { (eval echo configure:9215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
9215 rm -rf conftest*
9216 eval "ac_cv_lib_$ac_lib_var=yes"
9217else
9218 echo "configure: failed program was:" >&5
9219 cat conftest.$ac_ext >&5
9220 rm -rf conftest*
9221 eval "ac_cv_lib_$ac_lib_var=no"
9222fi
9223rm -f conftest*
9224LIBS="$ac_save_LIBS"
9225
9226fi
9227if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9228 echo "$ac_t""yes" 1>&6
9229 INET_LINK="nsl"
9230else
9231 echo "$ac_t""no" 1>&6
9232echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
afc31813 9233echo "configure:9234: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
9234ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
9235if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9236 echo $ac_n "(cached) $ac_c" 1>&6
9237else
9238 ac_save_LIBS="$LIBS"
9239LIBS="-lresolv $LIBS"
9240cat > conftest.$ac_ext <<EOF
afc31813 9241#line 9242 "configure"
c63c7106
VZ
9242#include "confdefs.h"
9243/* Override any gcc2 internal prototype to avoid an error. */
9244/* We use char because int might match the return type of a gcc2
9245 builtin and then its argument prototype would still apply. */
9246char inet_addr();
9247
9248int main() {
9249inet_addr()
9250; return 0; }
9251EOF
afc31813 9252if { (eval echo configure:9253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
9253 rm -rf conftest*
9254 eval "ac_cv_lib_$ac_lib_var=yes"
9255else
9256 echo "configure: failed program was:" >&5
9257 cat conftest.$ac_ext >&5
9258 rm -rf conftest*
9259 eval "ac_cv_lib_$ac_lib_var=no"
9260fi
9261rm -f conftest*
9262LIBS="$ac_save_LIBS"
9263
9264fi
9265if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9266 echo "$ac_t""yes" 1>&6
9267 INET_LINK="resolv"
9268
9269else
9270 echo "$ac_t""no" 1>&6
9271fi
9272
9273
9274fi
9275
9276
9277
10f2d63a
VZ
9278fi
9279done
9280
c63c7106 9281
10f2d63a
VZ
9282for ac_func in inet_aton
9283do
9284echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
afc31813 9285echo "configure:9286: checking for $ac_func" >&5
10f2d63a
VZ
9286if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9287 echo $ac_n "(cached) $ac_c" 1>&6
9288else
9289 cat > conftest.$ac_ext <<EOF
afc31813 9290#line 9291 "configure"
10f2d63a
VZ
9291#include "confdefs.h"
9292/* System header to define __stub macros and hopefully few prototypes,
9293 which can conflict with char $ac_func(); below. */
9294#include <assert.h>
9295/* Override any gcc2 internal prototype to avoid an error. */
9296/* We use char because int might match the return type of a gcc2
9297 builtin and then its argument prototype would still apply. */
9298char $ac_func();
9299
9300int main() {
9301
9302/* The GNU C library defines this for functions which it implements
9303 to always fail with ENOSYS. Some functions are actually named
9304 something starting with __ and the normal name is an alias. */
9305#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9306choke me
9307#else
9308$ac_func();
9309#endif
9310
9311; return 0; }
9312EOF
afc31813 9313if { (eval echo configure:9314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9314 rm -rf conftest*
9315 eval "ac_cv_func_$ac_func=yes"
9316else
9317 echo "configure: failed program was:" >&5
9318 cat conftest.$ac_ext >&5
9319 rm -rf conftest*
9320 eval "ac_cv_func_$ac_func=no"
9321fi
9322rm -f conftest*
9323fi
9324
9325if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9326 echo "$ac_t""yes" 1>&6
9327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9328 cat >> confdefs.h <<EOF
9329#define $ac_tr_func 1
9330EOF
c63c7106
VZ
9331 cat >> confdefs.h <<\EOF
9332#define HAVE_INET_ATON 1
9333EOF
9334
10f2d63a
VZ
9335else
9336 echo "$ac_t""no" 1>&6
c63c7106 9337 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
afc31813 9338echo "configure:9339: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 9339ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
9340if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9341 echo $ac_n "(cached) $ac_c" 1>&6
9342else
9343 ac_save_LIBS="$LIBS"
c63c7106 9344LIBS="-l$INET_LINK $LIBS"
10f2d63a 9345cat > conftest.$ac_ext <<EOF
afc31813 9346#line 9347 "configure"
10f2d63a
VZ
9347#include "confdefs.h"
9348/* Override any gcc2 internal prototype to avoid an error. */
9349/* We use char because int might match the return type of a gcc2
9350 builtin and then its argument prototype would still apply. */
9351char inet_aton();
9352
9353int main() {
9354inet_aton()
9355; return 0; }
9356EOF
afc31813 9357if { (eval echo configure:9358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9358 rm -rf conftest*
9359 eval "ac_cv_lib_$ac_lib_var=yes"
9360else
9361 echo "configure: failed program was:" >&5
9362 cat conftest.$ac_ext >&5
9363 rm -rf conftest*
9364 eval "ac_cv_lib_$ac_lib_var=no"
9365fi
9366rm -f conftest*
9367LIBS="$ac_save_LIBS"
9368
9369fi
9370if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9371 echo "$ac_t""yes" 1>&6
c63c7106
VZ
9372 cat >> confdefs.h <<\EOF
9373#define HAVE_INET_ATON 1
10f2d63a
VZ
9374EOF
9375
10f2d63a
VZ
9376else
9377 echo "$ac_t""no" 1>&6
9378fi
9379
c63c7106
VZ
9380
9381fi
9382done
9383
9384
9385if test "x$INET_LINK" != "x"; then
9386 cat >> confdefs.h <<\EOF
9387#define HAVE_INET_ADDR 1
9388EOF
9389
9390 INET_LINK="-l$INET_LINK"
9391fi
10f2d63a
VZ
9392
9393fi
9394
9395
9396cat > confcache <<\EOF
9397# This file is a shell script that caches the results of configure
9398# tests run on this system so they can be shared between configure
9399# scripts and configure runs. It is not useful on other systems.
9400# If it contains results you don't want to keep, you may remove or edit it.
9401#
9402# By default, configure uses ./config.cache as the cache file,
9403# creating it if it does not exist already. You can give configure
9404# the --cache-file=FILE option to use a different cache file; that is
9405# what configure does when it calls configure scripts in
9406# subdirectories, so they share the cache.
9407# Giving --cache-file=/dev/null disables caching, for debugging configure.
9408# config.status only pays attention to the cache file if you give it the
9409# --recheck option to rerun configure.
9410#
9411EOF
9412# The following way of writing the cache mishandles newlines in values,
9413# but we know of no workaround that is simple, portable, and efficient.
9414# So, don't put newlines in cache variables' values.
9415# Ultrix sh set writes to stderr and can't be redirected directly,
9416# and sets the high bit in the cache file unless we assign to the vars.
9417(set) 2>&1 |
9418 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9419 *ac_space=\ *)
9420 # `set' does not quote correctly, so add quotes (double-quote substitution
9421 # turns \\\\ into \\, and sed turns \\ into \).
9422 sed -n \
9423 -e "s/'/'\\\\''/g" \
9424 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9425 ;;
9426 *)
9427 # `set' quotes correctly as required by POSIX, so do not add quotes.
9428 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9429 ;;
9430 esac >> confcache
9431if cmp -s $cache_file confcache; then
9432 :
9433else
9434 if test -w $cache_file; then
9435 echo "updating cache $cache_file"
9436 cat confcache > $cache_file
9437 else
9438 echo "not updating unwritable cache $cache_file"
9439 fi
9440fi
9441rm -f confcache
9442
9443
9444
9445if test "$USE_UNIX" = 1; then
9446
9447
9448THREADS_LINK=""
9449THREADS_OBJ=""
9450
9451if test "$wxUSE_THREADS" = "yes" ; then
9452 if test "$wxUSE_WINE" = 1 ; then
9453 echo "configure: warning: Threads are not supported under WINE" 1>&2
9454 wxUSE_THREADS="no"
9455 fi
9456fi
9457
9458if test "$wxUSE_THREADS" = "yes" ; then
9459
9460 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
afc31813 9461echo "configure:9462: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
9462ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
9463if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9464 echo $ac_n "(cached) $ac_c" 1>&6
9465else
9466 ac_save_LIBS="$LIBS"
9467LIBS="-lpthread $LIBS"
9468cat > conftest.$ac_ext <<EOF
afc31813 9469#line 9470 "configure"
10f2d63a
VZ
9470#include "confdefs.h"
9471/* Override any gcc2 internal prototype to avoid an error. */
9472/* We use char because int might match the return type of a gcc2
9473 builtin and then its argument prototype would still apply. */
9474char pthread_create();
9475
9476int main() {
9477pthread_create()
9478; return 0; }
9479EOF
afc31813 9480if { (eval echo configure:9481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9481 rm -rf conftest*
9482 eval "ac_cv_lib_$ac_lib_var=yes"
9483else
9484 echo "configure: failed program was:" >&5
9485 cat conftest.$ac_ext >&5
9486 rm -rf conftest*
9487 eval "ac_cv_lib_$ac_lib_var=no"
9488fi
9489rm -f conftest*
9490LIBS="$ac_save_LIBS"
9491
9492fi
9493if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9494 echo "$ac_t""yes" 1>&6
9495
9496 THREADS_OBJ="threadpsx.lo"
9497 THREADS_LINK="pthread"
9498
9499else
9500 echo "$ac_t""no" 1>&6
9501
9502 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
afc31813 9503echo "configure:9504: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
9504ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
9505if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9506 echo $ac_n "(cached) $ac_c" 1>&6
9507else
9508 ac_save_LIBS="$LIBS"
9509LIBS="-lc_r $LIBS"
9510cat > conftest.$ac_ext <<EOF
afc31813 9511#line 9512 "configure"
10f2d63a
VZ
9512#include "confdefs.h"
9513/* Override any gcc2 internal prototype to avoid an error. */
9514/* We use char because int might match the return type of a gcc2
9515 builtin and then its argument prototype would still apply. */
9516char pthread_create();
9517
9518int main() {
9519pthread_create()
9520; return 0; }
9521EOF
afc31813 9522if { (eval echo configure:9523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9523 rm -rf conftest*
9524 eval "ac_cv_lib_$ac_lib_var=yes"
9525else
9526 echo "configure: failed program was:" >&5
9527 cat conftest.$ac_ext >&5
9528 rm -rf conftest*
9529 eval "ac_cv_lib_$ac_lib_var=no"
9530fi
9531rm -f conftest*
9532LIBS="$ac_save_LIBS"
9533
9534fi
9535if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9536 echo "$ac_t""yes" 1>&6
9537
9538 THREADS_OBJ="threadpsx.lo"
9539 THREADS_LINK="c_r"
9540
9541else
9542 echo "$ac_t""no" 1>&6
9543
9544 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
9545echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
afc31813 9546echo "configure:9547: checking for sys/prctl.h" >&5
10f2d63a
VZ
9547if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9548 echo $ac_n "(cached) $ac_c" 1>&6
9549else
9550 cat > conftest.$ac_ext <<EOF
afc31813 9551#line 9552 "configure"
10f2d63a
VZ
9552#include "confdefs.h"
9553#include <sys/prctl.h>
9554EOF
9555ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
afc31813 9556{ (eval echo configure:9557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9557ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9558if test -z "$ac_err"; then
9559 rm -rf conftest*
9560 eval "ac_cv_header_$ac_safe=yes"
9561else
9562 echo "$ac_err" >&5
9563 echo "configure: failed program was:" >&5
9564 cat conftest.$ac_ext >&5
9565 rm -rf conftest*
9566 eval "ac_cv_header_$ac_safe=no"
9567fi
9568rm -f conftest*
9569fi
9570if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9571 echo "$ac_t""yes" 1>&6
9572
9573 THREADS_OBJ="threadsgi.lo"
9574
9575else
9576 echo "$ac_t""no" 1>&6
9577fi
9578
9579
9580fi
9581
9582
9583fi
9584
9585
9586 if test -z "$THREADS_OBJ" ; then
9587 wxUSE_THREADS=no
9588 echo "configure: warning: No thread support on this system" 1>&2
9589 fi
9590fi
9591
9592if test "$wxUSE_THREADS" = "yes" ; then
9593
9594 for ac_hdr in sched.h
9595do
9596ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9597echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
afc31813 9598echo "configure:9599: checking for $ac_hdr" >&5
10f2d63a
VZ
9599if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9600 echo $ac_n "(cached) $ac_c" 1>&6
9601else
9602 cat > conftest.$ac_ext <<EOF
afc31813 9603#line 9604 "configure"
10f2d63a
VZ
9604#include "confdefs.h"
9605#include <$ac_hdr>
9606EOF
9607ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
afc31813 9608{ (eval echo configure:9609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9609ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9610if test -z "$ac_err"; then
9611 rm -rf conftest*
9612 eval "ac_cv_header_$ac_safe=yes"
9613else
9614 echo "$ac_err" >&5
9615 echo "configure: failed program was:" >&5
9616 cat conftest.$ac_ext >&5
9617 rm -rf conftest*
9618 eval "ac_cv_header_$ac_safe=no"
9619fi
9620rm -f conftest*
9621fi
9622if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9623 echo "$ac_t""yes" 1>&6
9624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9625 cat >> confdefs.h <<EOF
9626#define $ac_tr_hdr 1
9627EOF
9628
9629else
9630 echo "$ac_t""no" 1>&6
9631fi
9632done
9633
9634
9635 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
afc31813 9636echo "configure:9637: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
9637ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
9638if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9639 echo $ac_n "(cached) $ac_c" 1>&6
9640else
9641 ac_save_LIBS="$LIBS"
9642LIBS="-l$THREADS_LINK $LIBS"
9643cat > conftest.$ac_ext <<EOF
afc31813 9644#line 9645 "configure"
10f2d63a
VZ
9645#include "confdefs.h"
9646/* Override any gcc2 internal prototype to avoid an error. */
9647/* We use char because int might match the return type of a gcc2
9648 builtin and then its argument prototype would still apply. */
9649char sched_yield();
9650
9651int main() {
9652sched_yield()
9653; return 0; }
9654EOF
afc31813 9655if { (eval echo configure:9656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9656 rm -rf conftest*
9657 eval "ac_cv_lib_$ac_lib_var=yes"
9658else
9659 echo "configure: failed program was:" >&5
9660 cat conftest.$ac_ext >&5
9661 rm -rf conftest*
9662 eval "ac_cv_lib_$ac_lib_var=no"
9663fi
9664rm -f conftest*
9665LIBS="$ac_save_LIBS"
9666
9667fi
9668if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9669 echo "$ac_t""yes" 1>&6
9670 cat >> confdefs.h <<\EOF
9671#define HAVE_SCHED_YIELD 1
9672EOF
9673
9674else
9675 echo "$ac_t""no" 1>&6
9676echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
afc31813 9677echo "configure:9678: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
9678ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
9679if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9680 echo $ac_n "(cached) $ac_c" 1>&6
9681else
9682 ac_save_LIBS="$LIBS"
9683LIBS="-l"posix4" $LIBS"
9684cat > conftest.$ac_ext <<EOF
afc31813 9685#line 9686 "configure"
10f2d63a
VZ
9686#include "confdefs.h"
9687/* Override any gcc2 internal prototype to avoid an error. */
9688/* We use char because int might match the return type of a gcc2
9689 builtin and then its argument prototype would still apply. */
9690char sched_yield();
9691
9692int main() {
9693sched_yield()
9694; return 0; }
9695EOF
afc31813 9696if { (eval echo configure:9697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9697 rm -rf conftest*
9698 eval "ac_cv_lib_$ac_lib_var=yes"
9699else
9700 echo "configure: failed program was:" >&5
9701 cat conftest.$ac_ext >&5
9702 rm -rf conftest*
9703 eval "ac_cv_lib_$ac_lib_var=no"
9704fi
9705rm -f conftest*
9706LIBS="$ac_save_LIBS"
9707
9708fi
9709if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9710 echo "$ac_t""yes" 1>&6
9711 cat >> confdefs.h <<\EOF
9712#define HAVE_SCHED_YIELD 1
9713EOF
9714 POSIX4_LINK="-lposix4"
9715else
9716 echo "$ac_t""no" 1>&6
9717echo "configure: warning: wxThread::Yield will not work properly" 1>&2
9718
9719fi
9720
9721
9722fi
9723
9724
9725 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
afc31813 9726echo "configure:9727: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
9727ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
9728if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9729 echo $ac_n "(cached) $ac_c" 1>&6
9730else
9731 ac_save_LIBS="$LIBS"
9732LIBS="-l$THREADS_LINK $LIBS"
9733cat > conftest.$ac_ext <<EOF
afc31813 9734#line 9735 "configure"
10f2d63a
VZ
9735#include "confdefs.h"
9736/* Override any gcc2 internal prototype to avoid an error. */
9737/* We use char because int might match the return type of a gcc2
9738 builtin and then its argument prototype would still apply. */
9739char pthread_attr_getschedpolicy();
9740
9741int main() {
9742pthread_attr_getschedpolicy()
9743; return 0; }
9744EOF
afc31813 9745if { (eval echo configure:9746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9746 rm -rf conftest*
9747 eval "ac_cv_lib_$ac_lib_var=yes"
9748else
9749 echo "configure: failed program was:" >&5
9750 cat conftest.$ac_ext >&5
9751 rm -rf conftest*
9752 eval "ac_cv_lib_$ac_lib_var=no"
9753fi
9754rm -f conftest*
9755LIBS="$ac_save_LIBS"
9756
9757fi
9758if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9759 echo "$ac_t""yes" 1>&6
9760 cat >> confdefs.h <<\EOF
9761#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
9762EOF
9763
9764else
9765 echo "$ac_t""no" 1>&6
9766echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
afc31813 9767echo "configure:9768: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
9768ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
9769if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9770 echo $ac_n "(cached) $ac_c" 1>&6
9771else
9772 ac_save_LIBS="$LIBS"
9773LIBS="-l"posix4" $LIBS"
9774cat > conftest.$ac_ext <<EOF
afc31813 9775#line 9776 "configure"
10f2d63a
VZ
9776#include "confdefs.h"
9777/* Override any gcc2 internal prototype to avoid an error. */
9778/* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9780char pthread_attr_getschedpolicy();
9781
9782int main() {
9783pthread_attr_getschedpolicy()
9784; return 0; }
9785EOF
afc31813 9786if { (eval echo configure:9787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9787 rm -rf conftest*
9788 eval "ac_cv_lib_$ac_lib_var=yes"
9789else
9790 echo "configure: failed program was:" >&5
9791 cat conftest.$ac_ext >&5
9792 rm -rf conftest*
9793 eval "ac_cv_lib_$ac_lib_var=no"
9794fi
9795rm -f conftest*
9796LIBS="$ac_save_LIBS"
9797
9798fi
9799if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9800 echo "$ac_t""yes" 1>&6
9801 cat >> confdefs.h <<\EOF
9802#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
9803EOF
9804 POSIX4_LINK="-lposix4"
9805else
9806 echo "$ac_t""no" 1>&6
9807echo "configure: warning: Setting thread priority will not work" 1>&2
9808
9809fi
9810
9811
9812fi
9813
9814
9815 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
afc31813 9816echo "configure:9817: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
9817ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
9818if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9819 echo $ac_n "(cached) $ac_c" 1>&6
9820else
9821 ac_save_LIBS="$LIBS"
9822LIBS="-l$THREADS_LINK $LIBS"
9823cat > conftest.$ac_ext <<EOF
afc31813 9824#line 9825 "configure"
10f2d63a
VZ
9825#include "confdefs.h"
9826/* Override any gcc2 internal prototype to avoid an error. */
9827/* We use char because int might match the return type of a gcc2
9828 builtin and then its argument prototype would still apply. */
9829char pthread_cancel();
9830
9831int main() {
9832pthread_cancel()
9833; return 0; }
9834EOF
afc31813 9835if { (eval echo configure:9836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9836 rm -rf conftest*
9837 eval "ac_cv_lib_$ac_lib_var=yes"
9838else
9839 echo "configure: failed program was:" >&5
9840 cat conftest.$ac_ext >&5
9841 rm -rf conftest*
9842 eval "ac_cv_lib_$ac_lib_var=no"
9843fi
9844rm -f conftest*
9845LIBS="$ac_save_LIBS"
9846
9847fi
9848if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9849 echo "$ac_t""yes" 1>&6
9850 cat >> confdefs.h <<\EOF
9851#define HAVE_PTHREAD_CANCEL 1
9852EOF
9853
9854else
9855 echo "$ac_t""no" 1>&6
9856echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
9857fi
9858
9859
9860 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
afc31813 9861echo "configure:9862: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
9862if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
9863 echo $ac_n "(cached) $ac_c" 1>&6
9864else
9865
9866 cat > conftest.$ac_ext <<EOF
afc31813 9867#line 9868 "configure"
10f2d63a
VZ
9868#include "confdefs.h"
9869#include <pthread.h>
9870int main() {
9871
9872 pthread_cleanup_push(NULL, NULL);
9873 pthread_cleanup_pop(0);
9874
9875; return 0; }
9876EOF
afc31813 9877if { (eval echo configure:9878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9878 rm -rf conftest*
9879
9880 wx_cv_func_pthread_cleanup_push=yes
9881 cat >> confdefs.h <<\EOF
9882#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
9883EOF
9884
9885
9886else
9887 echo "configure: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9889 rm -rf conftest*
9890
9891 wx_cv_func_pthread_cleanup_push=no
9892
9893fi
9894rm -f conftest*
9895
9896fi
9897
9898echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
9899
9900 THREADS_LINK="-l$THREADS_LINK"
9901fi
9902
9903fi
9904
9905if test "$wxUSE_THREADS" = "yes"; then
9906 cat >> confdefs.h <<\EOF
9907#define wxUSE_THREADS 1
9908EOF
9909
9910
9911 CFLAGS="${CFLAGS} -D_REENTRANT"
9912 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
9913
9914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
9915else
9916 if test "$ac_cv_func_strtok_r" = "yes"; then
9917 unset ac_cv_func_strtok_r
9918
9919 ac_ext=C
9920# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9921ac_cpp='$CXXCPP $CPPFLAGS'
9922ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9923ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9924cross_compiling=$ac_cv_prog_cxx_cross
9925
9926 for ac_func in strtok_r
9927do
9928echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
afc31813 9929echo "configure:9930: checking for $ac_func" >&5
10f2d63a
VZ
9930if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9931 echo $ac_n "(cached) $ac_c" 1>&6
9932else
9933 cat > conftest.$ac_ext <<EOF
afc31813 9934#line 9935 "configure"
10f2d63a
VZ
9935#include "confdefs.h"
9936/* System header to define __stub macros and hopefully few prototypes,
9937 which can conflict with char $ac_func(); below. */
9938#include <assert.h>
9939/* Override any gcc2 internal prototype to avoid an error. */
9940#ifdef __cplusplus
9941extern "C"
9942#endif
9943/* We use char because int might match the return type of a gcc2
9944 builtin and then its argument prototype would still apply. */
9945char $ac_func();
9946
9947int main() {
9948
9949/* The GNU C library defines this for functions which it implements
9950 to always fail with ENOSYS. Some functions are actually named
9951 something starting with __ and the normal name is an alias. */
9952#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9953choke me
9954#else
9955$ac_func();
9956#endif
9957
9958; return 0; }
9959EOF
afc31813 9960if { (eval echo configure:9961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9961 rm -rf conftest*
9962 eval "ac_cv_func_$ac_func=yes"
9963else
9964 echo "configure: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9966 rm -rf conftest*
9967 eval "ac_cv_func_$ac_func=no"
9968fi
9969rm -f conftest*
9970fi
9971
9972if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9973 echo "$ac_t""yes" 1>&6
9974 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9975 cat >> confdefs.h <<EOF
9976#define $ac_tr_func 1
9977EOF
9978
9979else
9980 echo "$ac_t""no" 1>&6
9981fi
9982done
9983
9984 ac_ext=c
9985# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9986ac_cpp='$CPP $CPPFLAGS'
9987ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9988ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9989cross_compiling=$ac_cv_prog_cc_cross
9990
9991
9992 if test "$ac_cv_func_strtok_r" != "yes"; then
9993 ac_cv_func_strtok_r=yes
9994 CFLAGS="${CFLAGS} -D_REENTRANT"
9995 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
9996 fi
9997 fi
9998fi
9999
10000if test "$WXGTK12" = 1 ; then
10001 cat >> confdefs.h <<EOF
10002#define __WXGTK12__ $WXGTK12
10003EOF
10004
10005fi
10006
10007if test "$WXWINE" = 1 ; then
10008 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
10009fi
10010
10011if test "$wxUSE_CYGWIN" = 1 ; then
10012 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
10013fi
10014
10015WXDEBUG=
10016
10017if test "$wxUSE_DEBUG_INFO" = "yes" ; then
10018 WXDEBUG="-g"
10019 wxUSE_OPTIMISE=no
10020fi
10021
10022if test "$wxUSE_DEBUG_GDB" = "yes" ; then
10023 wxUSE_DEBUG_INFO=yes
10024 WXDEBUG="-ggdb"
10025fi
10026
10027if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
10028 cat >> confdefs.h <<\EOF
10029#define WXDEBUG 1
10030EOF
10031
10032 WXDEBUG_DEFINE="-D__WXDEBUG__"
10033else
10034 if test "$wxUSE_GTK" = 1 ; then
10035 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
10036 fi
10037fi
10038
10039if test "$wxUSE_MEM_TRACING" = "yes" ; then
10040 cat >> confdefs.h <<\EOF
10041#define wxUSE_MEMORY_TRACING 1
10042EOF
10043
10044 cat >> confdefs.h <<\EOF
10045#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
10046EOF
10047
10048 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
10049fi
10050
10051if test "$wxUSE_DMALLOC" = "yes" ; then
10052 DMALLOC_LINK="-ldmalloc"
10053fi
10054
10055PROFILE=
10056if test "$wxUSE_PROFILE" = "yes" ; then
10057 PROFILE="-pg"
10058fi
10059
10060DEP_INFO_FLAGS=
10061if test "$GCC" = yes ; then
10062 if test "$wxUSE_NO_RTTI" = "yes" ; then
10063 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti"
10064 fi
10065 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
10066 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions"
10067 fi
10068 if test "$wxUSE_PERMISSIVE" = "yes" ; then
10069 CFLAGS="${CFLAGS} -fpermissive"
10070 CXXFLAGS="${CXXFLAGS} -fpermissive"
10071 fi
10072 if test "$wxUSE_NO_DEPS" = "no" ; then
10073 DEP_INFO_FLAGS="-MMD"
10074 fi
10075fi
10076
10077
10078CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
10079CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
10080if test "$wxUSE_OPTIMISE" = "no" ; then
10081 OPTIMISE=
10082else
10083 if test "$GCC" = yes ; then
10084 OPTIMISE="-O2"
10085 case "${host}" in
10086 i586-*-*|i686-*-* )
10087 OPTIMISE="${OPTIMISE} "
10088 ;;
10089 esac
10090 else
10091 OPTIMISE="-O"
10092 fi
10093fi
10094
10095
10096ZLIB_INCLUDE=
10097if test "$wxUSE_ZLIB" = "yes" ; then
10098 cat >> confdefs.h <<\EOF
10099#define wxUSE_ZLIB 1
10100EOF
10101
10102 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
10103fi
10104
10105PNG_INCLUDE=
10106if test "$wxUSE_LIBPNG" = "yes" ; then
10107 cat >> confdefs.h <<\EOF
10108#define wxUSE_LIBPNG 1
10109EOF
10110
10111 PNG_INCLUDE="-I\${top_srcdir}/src/png"
10112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
10113fi
10114
10115JPEG_INCLUDE=
10116if test "$wxUSE_LIBJPEG" = "yes" ; then
10117 cat >> confdefs.h <<\EOF
10118#define wxUSE_LIBJPEG 1
10119EOF
10120
10121 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10122fi
10123
10124if test "$wxUSE_OPENGL" = "yes"; then
10125 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
10126echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
afc31813 10127echo "configure:10128: checking for GL/gl.h" >&5
10f2d63a
VZ
10128if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10129 echo $ac_n "(cached) $ac_c" 1>&6
10130else
10131 cat > conftest.$ac_ext <<EOF
afc31813 10132#line 10133 "configure"
10f2d63a
VZ
10133#include "confdefs.h"
10134#include <GL/gl.h>
10135EOF
10136ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
afc31813 10137{ (eval echo configure:10138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10138ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10139if test -z "$ac_err"; then
10140 rm -rf conftest*
10141 eval "ac_cv_header_$ac_safe=yes"
10142else
10143 echo "$ac_err" >&5
10144 echo "configure: failed program was:" >&5
10145 cat conftest.$ac_ext >&5
10146 rm -rf conftest*
10147 eval "ac_cv_header_$ac_safe=no"
10148fi
10149rm -f conftest*
10150fi
10151if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10152 echo "$ac_t""yes" 1>&6
10153
10154 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
afc31813 10155echo "configure:10156: checking for glInitNames in -lGL" >&5
10f2d63a
VZ
10156ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
10157if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10158 echo $ac_n "(cached) $ac_c" 1>&6
10159else
10160 ac_save_LIBS="$LIBS"
10161LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
10162cat > conftest.$ac_ext <<EOF
afc31813 10163#line 10164 "configure"
10f2d63a
VZ
10164#include "confdefs.h"
10165/* Override any gcc2 internal prototype to avoid an error. */
10166/* We use char because int might match the return type of a gcc2
10167 builtin and then its argument prototype would still apply. */
10168char glInitNames();
10169
10170int main() {
10171glInitNames()
10172; return 0; }
10173EOF
afc31813 10174if { (eval echo configure:10175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10175 rm -rf conftest*
10176 eval "ac_cv_lib_$ac_lib_var=yes"
10177else
10178 echo "configure: failed program was:" >&5
10179 cat conftest.$ac_ext >&5
10180 rm -rf conftest*
10181 eval "ac_cv_lib_$ac_lib_var=no"
10182fi
10183rm -f conftest*
10184LIBS="$ac_save_LIBS"
10185
10186fi
10187if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10188 echo "$ac_t""yes" 1>&6
10189
10190 OPENGL_LINK="-lGL"
10191 cat >> confdefs.h <<\EOF
10192#define wxUSE_OPENGL 1
10193EOF
10194
10195 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10196
10197else
10198 echo "$ac_t""no" 1>&6
10199
10200 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
afc31813 10201echo "configure:10202: checking for glInitNames in -lMesaGL" >&5
10f2d63a
VZ
10202ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
10203if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10204 echo $ac_n "(cached) $ac_c" 1>&6
10205else
10206 ac_save_LIBS="$LIBS"
10207LIBS="-lMesaGL $LIBS"
10208cat > conftest.$ac_ext <<EOF
afc31813 10209#line 10210 "configure"
10f2d63a
VZ
10210#include "confdefs.h"
10211/* Override any gcc2 internal prototype to avoid an error. */
10212/* We use char because int might match the return type of a gcc2
10213 builtin and then its argument prototype would still apply. */
10214char glInitNames();
10215
10216int main() {
10217glInitNames()
10218; return 0; }
10219EOF
afc31813 10220if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10221 rm -rf conftest*
10222 eval "ac_cv_lib_$ac_lib_var=yes"
10223else
10224 echo "configure: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10226 rm -rf conftest*
10227 eval "ac_cv_lib_$ac_lib_var=no"
10228fi
10229rm -f conftest*
10230LIBS="$ac_save_LIBS"
10231
10232fi
10233if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10234 echo "$ac_t""yes" 1>&6
10235
10236 OPENGL_LINK="-lMesaGL"
10237 cat >> confdefs.h <<\EOF
10238#define wxUSE_OPENGL 1
10239EOF
10240
10241 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10242
10243else
10244 echo "$ac_t""no" 1>&6
10245wxUSE_OPENGL=0
10246fi
10247
10248
10249fi
10250
10251
10252else
10253 echo "$ac_t""no" 1>&6
10254wxUSE_OPENGL=0
10255fi
10256
10257fi
10258
10259
10260if test "$wxUSE_GUI" = "yes"; then
10261 cat >> confdefs.h <<\EOF
10262#define wxUSE_GUI 1
10263EOF
10264
10265
10266 else
10267 cat >> confdefs.h <<\EOF
10268#define wxUSE_NOGUI 1
10269EOF
10270
10271fi
10272
10273
10274if test "$wxUSE_UNIX" = "yes"; then
10275 cat >> confdefs.h <<\EOF
10276#define wxUSE_UNIX 1
10277EOF
10278
10279fi
10280
10281
10282if test "$wxUSE_APPLE_IEEE" = "yes"; then
10283 cat >> confdefs.h <<\EOF
10284#define wxUSE_APPLE_IEEE 1
10285EOF
10286
10287fi
10288
10f2d63a
VZ
10289if test "$wxUSE_WAVE" = "yes"; then
10290 cat >> confdefs.h <<\EOF
10291#define wxUSE_WAVE 1
10292EOF
10293
10294fi
10295
10296if test "$wxUSE_FILE" = "yes"; then
10297 cat >> confdefs.h <<\EOF
10298#define wxUSE_FILE 1
10299EOF
10300
10301fi
10302
10303if test "$wxUSE_FS_INET" = "yes"; then
10304 cat >> confdefs.h <<\EOF
10305#define wxUSE_FS_INET 1
10306EOF
10307
10308fi
10309
10310if test "$wxUSE_FS_ZIP" = "yes"; then
10311 cat >> confdefs.h <<\EOF
10312#define wxUSE_FS_ZIP 1
10313EOF
10314
10315fi
10316
10317if test "$wxUSE_ZIPSTREAM" = "yes"; then
10318 cat >> confdefs.h <<\EOF
10319#define wxUSE_ZIPSTREAM 1
10320EOF
10321
10322fi
10323
10324if test "$wxUSE_BUSYINFO" = "yes"; then
10325 cat >> confdefs.h <<\EOF
10326#define wxUSE_BUSYINFO 1
10327EOF
10328
10329fi
10330
10331if test "$wxUSE_STD_IOSTREAM" = "yes"; then
10332 cat >> confdefs.h <<\EOF
10333#define wxUSE_STD_IOSTREAM 1
10334EOF
10335
10336fi
10337
10338if test "$wxUSE_TEXTFILE" = "yes"; then
10339 if test "$wxUSE_FILE" != "yes"; then
10340 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10341 else
10342 cat >> confdefs.h <<\EOF
10343#define wxUSE_TEXTFILE 1
10344EOF
10345
10346 fi
10347fi
10348
10349if test "$wxUSE_CONFIG" = "yes" ; then
10350 if test "$wxUSE_TEXTFILE" != "yes"; then
10351 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10352 else
10353 cat >> confdefs.h <<\EOF
10354#define wxUSE_CONFIG 1
10355EOF
10356
10357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
10358 fi
10359fi
10360
10361if test "$wxUSE_INTL" = "yes" ; then
10362 if test "$wxUSE_FILE" != "yes"; then
10363 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10364 else
10365 cat >> confdefs.h <<\EOF
10366#define wxUSE_INTL 1
10367EOF
10368
10369 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
10370 fi
10371fi
10372
10373if test "$wxUSE_LOG" = "yes"; then
10374 cat >> confdefs.h <<\EOF
10375#define wxUSE_LOG 1
10376EOF
10377
10378fi
10379
10380if test "$wxUSE_LONGLONG" = "yes"; then
10381 cat >> confdefs.h <<\EOF
10382#define wxUSE_LONGLONG 1
10383EOF
10384
10385fi
10386
10f2d63a
VZ
10387if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
10388 cat >> confdefs.h <<\EOF
10389#define wxUSE_DIALUP_MANAGER 1
10390EOF
10391
10392fi
10393
10394if test "$wxUSE_STREAMS" = "yes" ; then
10395 cat >> confdefs.h <<\EOF
10396#define wxUSE_STREAMS 1
10397EOF
10398
10399fi
10400
10401if test "$wxUSE_SERIAL" = "yes" ; then
10402 cat >> confdefs.h <<\EOF
10403#define wxUSE_SERIAL 1
10404EOF
10405
10406fi
10407
10408
afc31813
VZ
10409if test "$wxUSE_TIMEDATE" = "yes"; then
10410 for ac_func in gettimeofday localtime ftime
10411do
10412echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10413echo "configure:10414: checking for $ac_func" >&5
10414if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10415 echo $ac_n "(cached) $ac_c" 1>&6
10416else
10417 cat > conftest.$ac_ext <<EOF
10418#line 10419 "configure"
10f2d63a 10419#include "confdefs.h"
afc31813
VZ
10420/* System header to define __stub macros and hopefully few prototypes,
10421 which can conflict with char $ac_func(); below. */
10422#include <assert.h>
10423/* Override any gcc2 internal prototype to avoid an error. */
10424/* We use char because int might match the return type of a gcc2
10425 builtin and then its argument prototype would still apply. */
10426char $ac_func();
10427
10f2d63a 10428int main() {
afc31813
VZ
10429
10430/* The GNU C library defines this for functions which it implements
10431 to always fail with ENOSYS. Some functions are actually named
10432 something starting with __ and the normal name is an alias. */
10433#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10434choke me
10435#else
10436$ac_func();
10437#endif
10438
10f2d63a
VZ
10439; return 0; }
10440EOF
afc31813 10441if { (eval echo configure:10442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 10442 rm -rf conftest*
afc31813 10443 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
10444else
10445 echo "configure: failed program was:" >&5
10446 cat conftest.$ac_ext >&5
10447 rm -rf conftest*
afc31813
VZ
10448 eval "ac_cv_func_$ac_func=no"
10449fi
10450rm -f conftest*
10451fi
10452
10453if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10454 echo "$ac_t""yes" 1>&6
10455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10456 cat >> confdefs.h <<EOF
10457#define $ac_tr_func 1
10458EOF
10459
10460else
10461 echo "$ac_t""no" 1>&6
10462fi
10463done
10464
10465
10466 if test "$ac_cv_func_gettimeofday" = "yes"; then
10467 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
10468echo "configure:10469: checking whether gettimeofday takes two arguments" >&5
10469if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
10470 echo $ac_n "(cached) $ac_c" 1>&6
10471else
10472
10473
10474 ac_ext=C
10475# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10476ac_cpp='$CXXCPP $CPPFLAGS'
10477ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10478ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10479cross_compiling=$ac_cv_prog_cxx_cross
10480
10481
10482 cat > conftest.$ac_ext <<EOF
10483#line 10484 "configure"
10f2d63a 10484#include "confdefs.h"
afc31813
VZ
10485
10486 #include <sys/time.h>
10487 #include <unistd.h>
10488
10f2d63a 10489int main() {
afc31813
VZ
10490
10491 struct timeval tv;
10492 struct timezone tz;
10493 gettimeofday(&tv, &tz);
10494
10f2d63a
VZ
10495; return 0; }
10496EOF
afc31813 10497if { (eval echo configure:10498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 10498 rm -rf conftest*
afc31813 10499 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
10500else
10501 echo "configure: failed program was:" >&5
10502 cat conftest.$ac_ext >&5
10503 rm -rf conftest*
10504 cat > conftest.$ac_ext <<EOF
afc31813 10505#line 10506 "configure"
10f2d63a 10506#include "confdefs.h"
afc31813
VZ
10507
10508 #include <sys/time.h>
10509 #include <unistd.h>
10510
10f2d63a 10511int main() {
afc31813
VZ
10512
10513 struct timeval tv;
10514 gettimeofday(&tv);
10515
10f2d63a
VZ
10516; return 0; }
10517EOF
afc31813 10518if { (eval echo configure:10519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 10519 rm -rf conftest*
afc31813 10520 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
10521else
10522 echo "configure: failed program was:" >&5
10523 cat conftest.$ac_ext >&5
10524 rm -rf conftest*
afc31813
VZ
10525 wx_cv_func_gettimeofday_has_2_args=unknown
10526
10f2d63a
VZ
10527fi
10528rm -f conftest*
afc31813 10529
10f2d63a
VZ
10530fi
10531rm -f conftest*
afc31813 10532 ac_ext=c
10f2d63a
VZ
10533# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10534ac_cpp='$CPP $CPPFLAGS'
10535ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10536ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10537cross_compiling=$ac_cv_prog_cc_cross
10538
afc31813
VZ
10539
10540fi
10541
10542echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 10543
afc31813
VZ
10544 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
10545 cat >> confdefs.h <<\EOF
10546#define WX_GETTIMEOFDAY_NO_TZ 1
10547EOF
10548
10549 fi
10550 fi
10551
10552 cat >> confdefs.h <<\EOF
10553#define wxUSE_TIMEDATE 1
10554EOF
10555
10556 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
10557fi
10558
10559
10560if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 10561 echo $ac_n "checking for socket""... $ac_c" 1>&6
afc31813 10562echo "configure:10563: checking for socket" >&5
c63c7106
VZ
10563if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
10564 echo $ac_n "(cached) $ac_c" 1>&6
10565else
10566 cat > conftest.$ac_ext <<EOF
afc31813 10567#line 10568 "configure"
c63c7106
VZ
10568#include "confdefs.h"
10569/* System header to define __stub macros and hopefully few prototypes,
10570 which can conflict with char socket(); below. */
10571#include <assert.h>
10572/* Override any gcc2 internal prototype to avoid an error. */
10573/* We use char because int might match the return type of a gcc2
10574 builtin and then its argument prototype would still apply. */
10575char socket();
10576
10577int main() {
10578
10579/* The GNU C library defines this for functions which it implements
10580 to always fail with ENOSYS. Some functions are actually named
10581 something starting with __ and the normal name is an alias. */
10582#if defined (__stub_socket) || defined (__stub___socket)
10583choke me
10584#else
10585socket();
10586#endif
10587
10588; return 0; }
10589EOF
afc31813 10590if { (eval echo configure:10591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10591 rm -rf conftest*
10592 eval "ac_cv_func_socket=yes"
10593else
10594 echo "configure: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10596 rm -rf conftest*
10597 eval "ac_cv_func_socket=no"
10598fi
10599rm -f conftest*
10600fi
10601
10602if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10603 echo "$ac_t""yes" 1>&6
10604 :
10605else
10606 echo "$ac_t""no" 1>&6
10607echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
afc31813 10608echo "configure:10609: checking for socket in -lsocket" >&5
c63c7106
VZ
10609ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
10610if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10611 echo $ac_n "(cached) $ac_c" 1>&6
10612else
10613 ac_save_LIBS="$LIBS"
10614LIBS="-lsocket $LIBS"
10615cat > conftest.$ac_ext <<EOF
afc31813 10616#line 10617 "configure"
c63c7106
VZ
10617#include "confdefs.h"
10618/* Override any gcc2 internal prototype to avoid an error. */
10619/* We use char because int might match the return type of a gcc2
10620 builtin and then its argument prototype would still apply. */
10621char socket();
10622
10623int main() {
10624socket()
10625; return 0; }
10626EOF
afc31813 10627if { (eval echo configure:10628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10628 rm -rf conftest*
10629 eval "ac_cv_lib_$ac_lib_var=yes"
10630else
10631 echo "configure: failed program was:" >&5
10632 cat conftest.$ac_ext >&5
10633 rm -rf conftest*
10634 eval "ac_cv_lib_$ac_lib_var=no"
10635fi
10636rm -f conftest*
10637LIBS="$ac_save_LIBS"
10638
10639fi
10640if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10641 echo "$ac_t""yes" 1>&6
10642 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
10643else
10644 echo "$ac_t""no" 1>&6
afc31813
VZ
10645
10646 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
10647 wxUSE_SOCKETS=no
10648
10649
c63c7106
VZ
10650fi
10651
10652
10653fi
10654
10f2d63a
VZ
10655fi
10656
afc31813
VZ
10657if test "$wxUSE_SOCKETS" = "yes" ; then
10658
10659 ac_ext=C
10660# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10661ac_cpp='$CXXCPP $CPPFLAGS'
10662ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10663ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10664cross_compiling=$ac_cv_prog_cxx_cross
10665
10666 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
10667echo "configure:10668: checking the type of the third argument of getsockname" >&5
10668 cat > conftest.$ac_ext <<EOF
10669#line 10670 "configure"
10670#include "confdefs.h"
10671#include <sys/socket.h>
10672int main() {
10673socklen_t len; getsockname(0, 0, &len);
10674; return 0; }
10675EOF
10676if { (eval echo configure:10677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10677 rm -rf conftest*
10678 cat >> confdefs.h <<\EOF
10679#define SOCKLEN_T socklen_t
10680EOF
10681 echo "$ac_t""socklen_t" 1>&6
10682else
10683 echo "configure: failed program was:" >&5
10684 cat conftest.$ac_ext >&5
10685 rm -rf conftest*
10686 cat > conftest.$ac_ext <<EOF
10687#line 10688 "configure"
10688#include "confdefs.h"
10689#include <sys/socket.h>
10690int main() {
10691size_t len; getsockname(0, 0, &len);
10692; return 0; }
10693EOF
10694if { (eval echo configure:10695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10695 rm -rf conftest*
10696 cat >> confdefs.h <<\EOF
10697#define SOCKLEN_T size_t
10698EOF
10699 echo "$ac_t""size_t" 1>&6
10700else
10701 echo "configure: failed program was:" >&5
10702 cat conftest.$ac_ext >&5
10703 rm -rf conftest*
10704 cat > conftest.$ac_ext <<EOF
10705#line 10706 "configure"
10706#include "confdefs.h"
10707#include <sys/socket.h>
10708int main() {
10709int len; getsockname(0, 0, &len);
10710; return 0; }
10711EOF
10712if { (eval echo configure:10713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10713 rm -rf conftest*
10714 cat >> confdefs.h <<\EOF
10715#define SOCKLEN_T int
10716EOF
10717 echo "$ac_t""int" 1>&6
10718else
10719 echo "configure: failed program was:" >&5
10720 cat conftest.$ac_ext >&5
10721 rm -rf conftest*
10722 echo "$ac_t""unknown" 1>&6
10723
10724fi
10725rm -f conftest*
10726
10727fi
10728rm -f conftest*
10729
10730fi
10731rm -f conftest*
10732 ac_ext=c
10733# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10734ac_cpp='$CPP $CPPFLAGS'
10735ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10736ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10737cross_compiling=$ac_cv_prog_cc_cross
10738
10739
10740 cat >> confdefs.h <<\EOF
10741#define wxUSE_SOCKETS 1
10742EOF
10743
10744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
10745 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
10746fi
10747
10f2d63a
VZ
10748
10749if test "$wxUSE_JOYSTICK" = 1; then
10750 for ac_hdr in linux/joystick.h
10751do
10752ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10753echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
afc31813 10754echo "configure:10755: checking for $ac_hdr" >&5
10f2d63a
VZ
10755if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10756 echo $ac_n "(cached) $ac_c" 1>&6
10757else
10758 cat > conftest.$ac_ext <<EOF
afc31813 10759#line 10760 "configure"
10f2d63a
VZ
10760#include "confdefs.h"
10761#include <$ac_hdr>
10762EOF
10763ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
afc31813 10764{ (eval echo configure:10765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10765ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10766if test -z "$ac_err"; then
10767 rm -rf conftest*
10768 eval "ac_cv_header_$ac_safe=yes"
10769else
10770 echo "$ac_err" >&5
10771 echo "configure: failed program was:" >&5
10772 cat conftest.$ac_ext >&5
10773 rm -rf conftest*
10774 eval "ac_cv_header_$ac_safe=no"
10775fi
10776rm -f conftest*
10777fi
10778if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10779 echo "$ac_t""yes" 1>&6
10780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10781 cat >> confdefs.h <<EOF
10782#define $ac_tr_hdr 1
10783EOF
10784
10785else
10786 echo "$ac_t""no" 1>&6
10787fi
10788done
10789
10790 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
10791 cat >> confdefs.h <<\EOF
10792#define wxUSE_JOYSTICK 1
10793EOF
10794
10795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10796 fi
10797fi
10798
10799
10800HAVE_DL_FUNCS=0
10801HAVE_SHL_FUNCS=0
10802if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
10803 for ac_func in dlopen
10804do
10805echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
afc31813 10806echo "configure:10807: checking for $ac_func" >&5
10f2d63a
VZ
10807if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10808 echo $ac_n "(cached) $ac_c" 1>&6
10809else
10810 cat > conftest.$ac_ext <<EOF
afc31813 10811#line 10812 "configure"
10f2d63a
VZ
10812#include "confdefs.h"
10813/* System header to define __stub macros and hopefully few prototypes,
10814 which can conflict with char $ac_func(); below. */
10815#include <assert.h>
10816/* Override any gcc2 internal prototype to avoid an error. */
10817/* We use char because int might match the return type of a gcc2
10818 builtin and then its argument prototype would still apply. */
10819char $ac_func();
10820
10821int main() {
10822
10823/* The GNU C library defines this for functions which it implements
10824 to always fail with ENOSYS. Some functions are actually named
10825 something starting with __ and the normal name is an alias. */
10826#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10827choke me
10828#else
10829$ac_func();
10830#endif
10831
10832; return 0; }
10833EOF
afc31813 10834if { (eval echo configure:10835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10835 rm -rf conftest*
10836 eval "ac_cv_func_$ac_func=yes"
10837else
10838 echo "configure: failed program was:" >&5
10839 cat conftest.$ac_ext >&5
10840 rm -rf conftest*
10841 eval "ac_cv_func_$ac_func=no"
10842fi
10843rm -f conftest*
10844fi
10845
10846if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10847 echo "$ac_t""yes" 1>&6
10848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10849 cat >> confdefs.h <<EOF
10850#define $ac_tr_func 1
10851EOF
10852
10853 cat >> confdefs.h <<\EOF
10854#define HAVE_DLOPEN 1
10855EOF
10856
10857 HAVE_DL_FUNCS=1
10858
10859else
10860 echo "$ac_t""no" 1>&6
10861echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
afc31813 10862echo "configure:10863: checking for dlopen in -ldl" >&5
10f2d63a
VZ
10863ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
10864if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10865 echo $ac_n "(cached) $ac_c" 1>&6
10866else
10867 ac_save_LIBS="$LIBS"
10868LIBS="-ldl $LIBS"
10869cat > conftest.$ac_ext <<EOF
afc31813 10870#line 10871 "configure"
10f2d63a
VZ
10871#include "confdefs.h"
10872/* Override any gcc2 internal prototype to avoid an error. */
10873/* We use char because int might match the return type of a gcc2
10874 builtin and then its argument prototype would still apply. */
10875char dlopen();
10876
10877int main() {
10878dlopen()
10879; return 0; }
10880EOF
afc31813 10881if { (eval echo configure:10882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10882 rm -rf conftest*
10883 eval "ac_cv_lib_$ac_lib_var=yes"
10884else
10885 echo "configure: failed program was:" >&5
10886 cat conftest.$ac_ext >&5
10887 rm -rf conftest*
10888 eval "ac_cv_lib_$ac_lib_var=no"
10889fi
10890rm -f conftest*
10891LIBS="$ac_save_LIBS"
10892
10893fi
10894if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10895 echo "$ac_t""yes" 1>&6
10896
10897 cat >> confdefs.h <<\EOF
10898#define HAVE_DLOPEN 1
10899EOF
10900
10901 HAVE_DL_FUNCS=1
10902 LIBS="$LIBS -ldl"
10903
10904else
10905 echo "$ac_t""no" 1>&6
10906
10907 for ac_func in shl_load
10908do
10909echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
afc31813 10910echo "configure:10911: checking for $ac_func" >&5
10f2d63a
VZ
10911if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10912 echo $ac_n "(cached) $ac_c" 1>&6
10913else
10914 cat > conftest.$ac_ext <<EOF
afc31813 10915#line 10916 "configure"
10f2d63a
VZ
10916#include "confdefs.h"
10917/* System header to define __stub macros and hopefully few prototypes,
10918 which can conflict with char $ac_func(); below. */
10919#include <assert.h>
10920/* Override any gcc2 internal prototype to avoid an error. */
10921/* We use char because int might match the return type of a gcc2
10922 builtin and then its argument prototype would still apply. */
10923char $ac_func();
10924
10925int main() {
10926
10927/* The GNU C library defines this for functions which it implements
10928 to always fail with ENOSYS. Some functions are actually named
10929 something starting with __ and the normal name is an alias. */
10930#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10931choke me
10932#else
10933$ac_func();
10934#endif
10935
10936; return 0; }
10937EOF
afc31813 10938if { (eval echo configure:10939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10939 rm -rf conftest*
10940 eval "ac_cv_func_$ac_func=yes"
10941else
10942 echo "configure: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10944 rm -rf conftest*
10945 eval "ac_cv_func_$ac_func=no"
10946fi
10947rm -f conftest*
10948fi
10949
10950if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10951 echo "$ac_t""yes" 1>&6
10952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10953 cat >> confdefs.h <<EOF
10954#define $ac_tr_func 1
10955EOF
10956
10957 cat >> confdefs.h <<\EOF
10958#define HAVE_SHL_LOAD 1
10959EOF
10960
10961 HAVE_SHL_FUNCS=1
10962
10963else
10964 echo "$ac_t""no" 1>&6
10965fi
10966done
10967
10968
10969fi
10970
10971
10972fi
10973done
10974
10975
10976 if test "$HAVE_DL_FUNCS" = 0; then
10977 if test "$HAVE_SHL_FUNCS" = 0; then
10978 if test "$USE_UNIX" = 1; then
10979 echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2
10980 wxUSE_ODBC=no
10981 wxUSE_DYNLIB_CLASS=no
10982 else
10983 echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2
10984 fi
10985 fi
10986 fi
10987fi
10988
10989if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
10990 cat >> confdefs.h <<\EOF
10991#define wxUSE_DYNLIB_CLASS 1
10992EOF
10993
10994fi
10995
10996
10997if test "$wxUSE_UNICODE" = "yes" ; then
10998 cat >> confdefs.h <<\EOF
10999#define wxUSE_UNICODE 1
11000EOF
11001
11002fi
11003
11004if test "$wxUSE_WCSRTOMBS" = "yes" ; then
11005 cat >> confdefs.h <<\EOF
11006#define wxUSE_WCSRTOMBS 1
11007EOF
11008
11009fi
11010
11011if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
11012 cat >> confdefs.h <<\EOF
11013#define wxUSE_EXPERIMENTAL_PRINTF 1
11014EOF
11015
11016fi
11017
11018
11019IODBC_C_SRC=""
11020if test "$wxUSE_ODBC" = "yes" ; then
11021 cat >> confdefs.h <<\EOF
11022#define wxUSE_ODBC 1
11023EOF
11024
11025 WXODBCFLAG="-D_IODBC_"
11026 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
11027 IODBCOBJS="\$(IODBC_OBJS)"
11028else
11029 IODBCOBJS=
11030fi
11031
11032
11033if test "$wxUSE_POSTSCRIPT" = "yes" ; then
11034 cat >> confdefs.h <<\EOF
11035#define wxUSE_POSTSCRIPT 1
11036EOF
11037
11038fi
11039
11040cat >> confdefs.h <<\EOF
11041#define wxUSE_AFM_FOR_POSTSCRIPT 1
11042EOF
11043
11044
11045cat >> confdefs.h <<\EOF
11046#define wxUSE_NORMALIZED_PS_FONTS 1
11047EOF
11048
11049
11050
11051if test "$wxUSE_CONSTRAINTS" = "yes"; then
11052 cat >> confdefs.h <<\EOF
11053#define wxUSE_CONSTRAINTS 1
11054EOF
11055
11056 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
11057fi
11058
11059if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11060 cat >> confdefs.h <<\EOF
11061#define wxUSE_MDI_ARCHITECTURE 1
11062EOF
11063
11064 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
11065fi
11066
11067if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
11068 cat >> confdefs.h <<\EOF
11069#define wxUSE_DOC_VIEW_ARCHITECTURE 1
11070EOF
11071
11072 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
11073 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11074 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
11075 fi
11076fi
11077
11078if test "$wxUSE_HELP" = "yes"; then
11079 cat >> confdefs.h <<\EOF
11080#define wxUSE_HELP 1
11081EOF
11082
11083 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
11084fi
11085
11086if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
11087 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11088 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
11089 else
11090 cat >> confdefs.h <<\EOF
11091#define wxUSE_PRINTING_ARCHITECTURE 1
11092EOF
11093
11094 fi
11095 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
11096fi
11097
11098if test "$wxUSE_PROLOGIO" = "yes" ; then
11099 cat >> confdefs.h <<\EOF
11100#define wxUSE_PROLOGIO 1
11101EOF
11102
11103fi
11104
11105if test "$wxUSE_RESOURCES" = "yes" ; then
11106 if test "$wxUSE_PROLOGIO" = "yes" ; then
11107 cat >> confdefs.h <<\EOF
11108#define wxUSE_RESOURCES 1
11109EOF
11110
11111 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
11112 else
11113 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
11114 fi
11115fi
11116
11117if test "$wxUSE_X_RESOURCES" = "yes"; then
11118 cat >> confdefs.h <<\EOF
11119#define wxUSE_X_RESOURCES 1
11120EOF
11121
11122fi
11123
11124
11125if test "$wxUSE_IPC" = "yes"; then
11126 cat >> confdefs.h <<\EOF
11127#define wxUSE_IPC 1
11128EOF
11129
11130fi
11131
11132if test "$wxUSE_CLIPBOARD" = "yes"; then
11133 cat >> confdefs.h <<\EOF
11134#define wxUSE_CLIPBOARD 1
11135EOF
11136
11137fi
11138
11139if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
11140 if test "$wxUSE_GTK" = 1; then
11141 if test "$WXGTK12" != 1; then
11142 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
11143 wxUSE_DRAG_AND_DROP=no
11144 fi
11145 fi
11146
11147 if test "$wxUSE_MOTIF" = 1; then
11148 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
11149 wxUSE_DRAG_AND_DROP=no
11150 fi
11151
11152 if test "$USE_WIN32" = 1; then
11153 for ac_hdr in ole2.h
11154do
11155ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11156echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
afc31813 11157echo "configure:11158: checking for $ac_hdr" >&5
10f2d63a
VZ
11158if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11159 echo $ac_n "(cached) $ac_c" 1>&6
11160else
11161 cat > conftest.$ac_ext <<EOF
afc31813 11162#line 11163 "configure"
10f2d63a
VZ
11163#include "confdefs.h"
11164#include <$ac_hdr>
11165EOF
11166ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
afc31813 11167{ (eval echo configure:11168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11168ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11169if test -z "$ac_err"; then
11170 rm -rf conftest*
11171 eval "ac_cv_header_$ac_safe=yes"
11172else
11173 echo "$ac_err" >&5
11174 echo "configure: failed program was:" >&5
11175 cat conftest.$ac_ext >&5
11176 rm -rf conftest*
11177 eval "ac_cv_header_$ac_safe=no"
11178fi
11179rm -f conftest*
11180fi
11181if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11182 echo "$ac_t""yes" 1>&6
11183 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11184 cat >> confdefs.h <<EOF
11185#define $ac_tr_hdr 1
11186EOF
11187
11188else
11189 echo "$ac_t""no" 1>&6
11190fi
11191done
11192
11193 if test "x$HAVE_OLE2_H" = x ; then
11194 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
11195 wxUSE_DRAG_AND_DROP=no
11196 fi
11197 fi
11198
11199 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
11200 cat >> confdefs.h <<\EOF
11201#define wxUSE_DRAG_AND_DROP 1
11202EOF
11203
11204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
11205 fi
11206
11207fi
11208
11209if test "$wxUSE_SPLINES" = "yes" ; then
11210 cat >> confdefs.h <<\EOF
11211#define wxUSE_SPLINES 1
11212EOF
11213
11214fi
11215
11216
11217if test "$wxUSE_ACCEL" = "yes"; then
11218 cat >> confdefs.h <<\EOF
11219#define wxUSE_ACCEL 1
11220EOF
11221
11222fi
11223
11224if test "$wxUSE_CARET" = "yes"; then
11225 cat >> confdefs.h <<\EOF
11226#define wxUSE_CARET 1
11227EOF
11228
11229 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
11230fi
11231
11232if test "$wxUSE_COMBOBOX" = "yes"; then
11233 cat >> confdefs.h <<\EOF
11234#define wxUSE_COMBOBOX 1
11235EOF
11236
11237fi
11238
11239if test "$wxUSE_CHOICE" = "yes"; then
11240 cat >> confdefs.h <<\EOF
11241#define wxUSE_CHOICE 1
11242EOF
11243
11244fi
11245
11246if test "$wxUSE_BMPBUTTON" = "yes"; then
11247 cat >> confdefs.h <<\EOF
11248#define wxUSE_BMPBUTTON 1
11249EOF
11250
11251fi
11252
11253if test "$wxUSE_CHECKBOX" = "yes"; then
11254 cat >> confdefs.h <<\EOF
11255#define wxUSE_CHECKBOX 1
11256EOF
11257
11258fi
11259
11260if test "$wxUSE_CHECKLST" = "yes"; then
11261 cat >> confdefs.h <<\EOF
11262#define wxUSE_CHECKLISTBOX 1
11263EOF
11264
11265 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
11266fi
11267
11268if test "$wxUSE_GAUGE" = "yes"; then
11269 cat >> confdefs.h <<\EOF
11270#define wxUSE_GAUGE 1
11271EOF
11272
11273fi
11274
11275if test "$wxUSE_GRID" = "yes"; then
11276 cat >> confdefs.h <<\EOF
11277#define wxUSE_GRID 1
11278EOF
11279
11280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
11281fi
11282
11283if test "$wxUSE_NEW_GRID" = "yes"; then
11284 cat >> confdefs.h <<\EOF
11285#define wxUSE_NEW_GRID 1
11286EOF
11287
11288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
11289fi
11290
11291if test "$wxUSE_IMAGLIST" = "yes"; then
11292 cat >> confdefs.h <<\EOF
11293#define wxUSE_IMAGLIST 1
11294EOF
11295
11296fi
11297
11298if test "$wxUSE_LISTBOX" = "yes"; then
11299 cat >> confdefs.h <<\EOF
11300#define wxUSE_LISTBOX 1
11301EOF
11302
11303fi
11304
11305if test "$wxUSE_LISTCTRL" = "yes"; then
11306 if test "$wxUSE_IMAGLIST" = "yes"; then
11307 cat >> confdefs.h <<\EOF
11308#define wxUSE_LISTCTRL 1
11309EOF
11310
11311 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
11312 else
11313 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
11314 fi
11315fi
11316
11317if test "$wxUSE_NOTEBOOK" = "yes"; then
11318 cat >> confdefs.h <<\EOF
11319#define wxUSE_NOTEBOOK 1
11320EOF
11321
11322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
11323fi
11324
11325if test "$wxUSE_RADIOBOX" = "yes"; then
11326 cat >> confdefs.h <<\EOF
11327#define wxUSE_RADIOBOX 1
11328EOF
11329
11330fi
11331
11332if test "$wxUSE_RADIOBTN" = "yes"; then
11333 cat >> confdefs.h <<\EOF
11334#define wxUSE_RADIOBTN 1
11335EOF
11336
11337fi
11338
11339if test "$wxUSE_SASH" = "yes"; then
11340 cat >> confdefs.h <<\EOF
11341#define wxUSE_SASH 1
11342EOF
11343
11344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
11345fi
11346
11347if test "$wxUSE_SCROLLBAR" = "yes"; then
11348 cat >> confdefs.h <<\EOF
11349#define wxUSE_SCROLLBAR 1
11350EOF
11351
11352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
11353fi
11354
11355if test "$wxUSE_SLIDER" = "yes"; then
11356 cat >> confdefs.h <<\EOF
11357#define wxUSE_SLIDER 1
11358EOF
11359
11360fi
11361
11362if test "$wxUSE_SPINBTN" = "yes"; then
11363 cat >> confdefs.h <<\EOF
11364#define wxUSE_SPINBTN 1
11365EOF
11366
11367fi
11368
11369if test "$wxUSE_SPLITTER" = "yes"; then
11370 cat >> confdefs.h <<\EOF
11371#define wxUSE_SPLITTER 1
11372EOF
11373
11374 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
11375fi
11376
11377if test "$wxUSE_STATBMP" = "yes"; then
11378 cat >> confdefs.h <<\EOF
11379#define wxUSE_STATBMP 1
11380EOF
11381
11382fi
11383
11384if test "$wxUSE_STATBOX" = "yes"; then
11385 cat >> confdefs.h <<\EOF
11386#define wxUSE_STATBOX 1
11387EOF
11388
11389fi
11390
11391if test "$wxUSE_STATLINE" = "yes"; then
11392 if test "$wxUSE_WINE" = 1 ; then
11393 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
11394 else
11395 cat >> confdefs.h <<\EOF
11396#define wxUSE_STATLINE 1
11397EOF
11398
11399 fi
11400fi
11401
11402if test "$wxUSE_STATUSBAR" = "yes"; then
11403 cat >> confdefs.h <<\EOF
11404#define wxUSE_STATUSBAR 1
11405EOF
11406
11407fi
11408
11409if test "$wxUSE_TABDIALOG" = "yes"; then
11410 cat >> confdefs.h <<\EOF
11411#define wxUSE_TAB_DIALOG 1
11412EOF
11413
11414 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
11415fi
11416
11417if test "$wxUSE_TOOLBAR" = "yes"; then
11418 cat >> confdefs.h <<\EOF
11419#define wxUSE_TOOLBAR 1
11420EOF
11421
11422 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
11423fi
11424
11425if test "$wxUSE_TOOLTIPS" = "yes"; then
11426 if test "$wxUSE_MOTIF" = 1; then
11427 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
11428 else
11429 if test "$wxUSE_WINE" = 1; then
11430 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
11431 else
11432 cat >> confdefs.h <<\EOF
11433#define wxUSE_TOOLTIPS 1
11434EOF
11435
11436 fi
11437 fi
11438fi
11439
11440if test "$wxUSE_TREECTRL" = "yes"; then
11441 if test "$wxUSE_IMAGLIST" = "yes"; then
11442 cat >> confdefs.h <<\EOF
11443#define wxUSE_TREECTRL 1
11444EOF
11445
11446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
11447 else
11448 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
11449 fi
11450fi
11451
11452
11453
11454if test "$wxUSE_METAFILE" = "yes"; then
11455 cat >> confdefs.h <<\EOF
11456#define wxUSE_METAFILE 1
11457EOF
11458
11459fi
11460
11461if test "$wxUSE_DIRDLG" = "yes"; then
11462 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11463 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
11464 else
11465 if test "$wxUSE_TREECTRL" != "yes"; then
11466 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
11467 else
11468 cat >> confdefs.h <<\EOF
11469#define wxUSE_DIRDLG 1
11470EOF
11471
11472 fi
11473 fi
11474fi
11475
11476if test "$wxUSE_TEXTDLG" = "yes"; then
11477 cat >> confdefs.h <<\EOF
11478#define wxUSE_TEXTDLG 1
11479EOF
11480
11481fi
11482
11483if test "$wxUSE_STARTUP_TIPS" = "yes"; then
11484 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11485 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
11486 else
11487 cat >> confdefs.h <<\EOF
11488#define wxUSE_STARTUP_TIPS 1
11489EOF
11490
11491 fi
11492fi
11493
11494if test "$wxUSE_PROGRESSDLG" = "yes"; then
11495 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11496 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
11497 else
11498 cat >> confdefs.h <<\EOF
11499#define wxUSE_PROGRESSDLG 1
11500EOF
11501
11502 fi
11503fi
11504
11505if test "$wxUSE_MINIFRAME" = "yes"; then
11506 cat >> confdefs.h <<\EOF
11507#define wxUSE_MINIFRAME 1
11508EOF
11509
11510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
11511fi
11512
11513if test "$wxUSE_HTML" = "yes"; then
11514 cat >> confdefs.h <<\EOF
11515#define wxUSE_HTML 1
11516EOF
11517
11518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
11519 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
11520fi
11521
11522if test "$wxUSE_VALIDATORS" = "yes"; then
11523 cat >> confdefs.h <<\EOF
11524#define wxUSE_VALIDATORS 1
11525EOF
11526
11527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
11528fi
11529
11530if test "$wxUSE_GIF" = "yes" ; then
11531 cat >> confdefs.h <<\EOF
11532#define wxUSE_GIF 1
11533EOF
11534
11535fi
11536
11537if test "$wxUSE_PCX" = "yes" ; then
11538 cat >> confdefs.h <<\EOF
11539#define wxUSE_PCX 1
11540EOF
11541
11542fi
11543
11544if test "$wxUSE_PNM" = "yes" ; then
11545 cat >> confdefs.h <<\EOF
11546#define wxUSE_PNM 1
11547EOF
11548
11549fi
11550
11551
11552GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
11553
c63c7106 11554EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a
VZ
11555if test "$wxUSE_GUI" = "yes"; then
11556 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
11557fi
11558
11559LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
11560
11561INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TOOLKIT_INCLUDE"
11562
11563if test "$GXX" = yes ; then
11564 CXXWARNINGS="-Wall"
11565 fi
11566EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
11567
11568CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
11569CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
11570
11571if test "$wxUSE_GUI" = "yes"; then
11572
11573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
11574 forty fractal image wxpoem"
11575else
11576 SAMPLES_SUBDIRS=""
11577fi
11578
11579SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`"
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
afc31813 11635echo "configure:11636: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
11636set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
11637if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
11638 echo $ac_n "(cached) $ac_c" 1>&6
11639else
11640 cat > conftestmake <<\EOF
11641all:
11642 @echo 'ac_maketemp="${MAKE}"'
11643EOF
11644# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11645eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
11646if test -n "$ac_maketemp"; then
11647 eval ac_cv_prog_make_${ac_make}_set=yes
11648else
11649 eval ac_cv_prog_make_${ac_make}_set=no
11650fi
11651rm -f conftestmake
11652fi
11653if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
11654 echo "$ac_t""yes" 1>&6
11655 SET_MAKE=
11656else
11657 echo "$ac_t""no" 1>&6
11658 SET_MAKE="MAKE=${MAKE-make}"
11659fi
11660
11661
11662
11663
11664if test "${TOOLKIT_DIR}" = "msw" ; then
11665 GL_TOOLKIT_DIR="win"
11666else
11667 GL_TOOLKIT_DIR="${TOOLKIT_DIR}"
11668fi
11669
11670
11671trap '' 1 2 15
11672cat > confcache <<\EOF
11673# This file is a shell script that caches the results of configure
11674# tests run on this system so they can be shared between configure
11675# scripts and configure runs. It is not useful on other systems.
11676# If it contains results you don't want to keep, you may remove or edit it.
11677#
11678# By default, configure uses ./config.cache as the cache file,
11679# creating it if it does not exist already. You can give configure
11680# the --cache-file=FILE option to use a different cache file; that is
11681# what configure does when it calls configure scripts in
11682# subdirectories, so they share the cache.
11683# Giving --cache-file=/dev/null disables caching, for debugging configure.
11684# config.status only pays attention to the cache file if you give it the
11685# --recheck option to rerun configure.
11686#
11687EOF
11688# The following way of writing the cache mishandles newlines in values,
11689# but we know of no workaround that is simple, portable, and efficient.
11690# So, don't put newlines in cache variables' values.
11691# Ultrix sh set writes to stderr and can't be redirected directly,
11692# and sets the high bit in the cache file unless we assign to the vars.
11693(set) 2>&1 |
11694 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11695 *ac_space=\ *)
11696 # `set' does not quote correctly, so add quotes (double-quote substitution
11697 # turns \\\\ into \\, and sed turns \\ into \).
11698 sed -n \
11699 -e "s/'/'\\\\''/g" \
11700 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11701 ;;
11702 *)
11703 # `set' quotes correctly as required by POSIX, so do not add quotes.
11704 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11705 ;;
11706 esac >> confcache
11707if cmp -s $cache_file confcache; then
11708 :
11709else
11710 if test -w $cache_file; then
11711 echo "updating cache $cache_file"
11712 cat confcache > $cache_file
11713 else
11714 echo "not updating unwritable cache $cache_file"
11715 fi
11716fi
11717rm -f confcache
11718
11719trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11720
11721test "x$prefix" = xNONE && prefix=$ac_default_prefix
11722# Let make expand exec_prefix.
11723test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11724
11725# Any assignment to VPATH causes Sun make to only execute
11726# the first set of double-colon rules, so remove it if not needed.
11727# If there is a colon in the path, we need to keep it.
11728if test "x$srcdir" = x.; then
11729 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11730fi
11731
11732trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11733
11734DEFS=-DHAVE_CONFIG_H
11735
11736# Without the "./", some shells look in PATH for config.status.
11737: ${CONFIG_STATUS=./config.status}
11738
11739echo creating $CONFIG_STATUS
11740rm -f $CONFIG_STATUS
11741cat > $CONFIG_STATUS <<EOF
11742#! /bin/sh
11743# Generated automatically by configure.
11744# Run this file to recreate the current configuration.
11745# This directory was configured as follows,
11746# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11747#
11748# $0 $ac_configure_args
11749#
11750# Compiler output produced by configure, useful for debugging
11751# configure, is in ./config.log if it exists.
11752
11753ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11754for ac_option
11755do
11756 case "\$ac_option" in
11757 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11758 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11759 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11760 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11761 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11762 exit 0 ;;
11763 -help | --help | --hel | --he | --h)
11764 echo "\$ac_cs_usage"; exit 0 ;;
11765 *) echo "\$ac_cs_usage"; exit 1 ;;
11766 esac
11767done
11768
11769ac_given_srcdir=$srcdir
11770ac_given_INSTALL="$INSTALL"
11771
11772trap 'rm -fr `echo "
11773 wx-config
11774 src/make.env
11775 src/makeprog.env
11776 src/makelib.env
11777 Makefile
11778 samples/Makefile
11779 samples/bombs/Makefile
11780 samples/caret/Makefile
11781 samples/checklst/Makefile
11782 samples/config/Makefile
11783 samples/controls/Makefile
11784 samples/db/Makefile
11785 samples/dialogs/Makefile
11786 samples/docview/Makefile
11787 samples/docvwmdi/Makefile
11788 samples/dnd/Makefile
11789 samples/drawing/Makefile
11790 samples/forty/Makefile
11791 samples/fractal/Makefile
11792 samples/image/Makefile
11793 samples/internat/Makefile
11794 samples/layout/Makefile
11795 samples/listctrl/Makefile
11796 samples/mdi/Makefile
11797 samples/minifram/Makefile
11798 samples/minimal/Makefile
11799 samples/nettest/Makefile
11800 samples/newgrid/Makefile
11801 samples/notebook/Makefile
11802 samples/png/Makefile
11803 samples/printing/Makefile
11804 samples/proplist/Makefile
11805 samples/richedit/Makefile
11806 samples/resource/Makefile
11807 samples/sashtest/Makefile
11808 samples/scroll/Makefile
11809 samples/scrollsub/Makefile
11810 samples/splitter/Makefile
11811 samples/text/Makefile
11812 samples/thread/Makefile
11813 samples/toolbar/Makefile
11814 samples/treectrl/Makefile
11815 samples/typetest/Makefile
11816 samples/validate/Makefile
11817 samples/wxpoem/Makefile
11818 samples/wxsocket/Makefile
11819 samples/wizard/Makefile
11820 samples/html/Makefile
11821 samples/html/about/Makefile
11822 samples/html/help/Makefile
11823 samples/html/printing/Makefile
11824 samples/html/test/Makefile
11825 samples/html/zip/Makefile
11826 samples/html/virtual/Makefile
11827 samples/html/widget/Makefile
11828 utils/Makefile
11829 utils/wxMMedia2/Makefile
11830 utils/wxMMedia2/lib/Makefile
11831 utils/wxMMedia2/sample/Makefile
11832 utils/glcanvas/Makefile
11833 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
11834 utils/ogl/Makefile
11835 utils/ogl/src/Makefile
11836 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11837EOF
11838cat >> $CONFIG_STATUS <<EOF
11839
11840# Protect against being on the right side of a sed subst in config.status.
11841sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11842 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11843$ac_vpsub
11844$extrasub
11845s%@SHELL@%$SHELL%g
11846s%@CFLAGS@%$CFLAGS%g
11847s%@CPPFLAGS@%$CPPFLAGS%g
11848s%@CXXFLAGS@%$CXXFLAGS%g
11849s%@FFLAGS@%$FFLAGS%g
11850s%@DEFS@%$DEFS%g
11851s%@LDFLAGS@%$LDFLAGS%g
11852s%@LIBS@%$LIBS%g
11853s%@exec_prefix@%$exec_prefix%g
11854s%@prefix@%$prefix%g
11855s%@program_transform_name@%$program_transform_name%g
11856s%@bindir@%$bindir%g
11857s%@sbindir@%$sbindir%g
11858s%@libexecdir@%$libexecdir%g
11859s%@datadir@%$datadir%g
11860s%@sysconfdir@%$sysconfdir%g
11861s%@sharedstatedir@%$sharedstatedir%g
11862s%@localstatedir@%$localstatedir%g
11863s%@libdir@%$libdir%g
11864s%@includedir@%$includedir%g
11865s%@oldincludedir@%$oldincludedir%g
11866s%@infodir@%$infodir%g
11867s%@mandir@%$mandir%g
11868s%@host@%$host%g
11869s%@host_alias@%$host_alias%g
11870s%@host_cpu@%$host_cpu%g
11871s%@host_vendor@%$host_vendor%g
11872s%@host_os@%$host_os%g
11873s%@target@%$target%g
11874s%@target_alias@%$target_alias%g
11875s%@target_cpu@%$target_cpu%g
11876s%@target_vendor@%$target_vendor%g
11877s%@target_os@%$target_os%g
11878s%@build@%$build%g
11879s%@build_alias@%$build_alias%g
11880s%@build_cpu@%$build_cpu%g
11881s%@build_vendor@%$build_vendor%g
11882s%@build_os@%$build_os%g
11883s%@CC@%$CC%g
11884s%@CPP@%$CPP%g
11885s%@CXX@%$CXX%g
11886s%@CXXCPP@%$CXXCPP%g
11887s%@RANLIB@%$RANLIB%g
11888s%@AR@%$AR%g
11889s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11890s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11891s%@INSTALL_DATA@%$INSTALL_DATA%g
11892s%@STRIP@%$STRIP%g
11893s%@YACC@%$YACC%g
11894s%@LEX@%$LEX%g
11895s%@LEXLIB@%$LEXLIB%g
11896s%@LN_S@%$LN_S%g
11897s%@GTK_CONFIG@%$GTK_CONFIG%g
11898s%@GTK_CFLAGS@%$GTK_CFLAGS%g
11899s%@GTK_LIBS@%$GTK_LIBS%g
11900s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
11901s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
11902s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
11903s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
11904s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
11905s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
11906s%@WX_LIBRARY@%$WX_LIBRARY%g
11907s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
11908s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
11909s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
11910s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
11911s%@PROGRAM_EXT@%$PROGRAM_EXT%g
11912s%@WX_ALL@%$WX_ALL%g
11913s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
11914s%@SHARED_LD@%$SHARED_LD%g
11915s%@PIC_FLAG@%$PIC_FLAG%g
11916s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
11917s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
11918s%@TOOLKIT@%$TOOLKIT%g
11919s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
11920s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
11921s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
11922s%@GUIHEADERS@%$GUIHEADERS%g
11923s%@GUIOBJS@%$GUIOBJS%g
11924s%@COMMONOBJS@%$COMMONOBJS%g
11925s%@GENERICOBJS@%$GENERICOBJS%g
11926s%@GUIDEPS@%$GUIDEPS%g
11927s%@COMMONDEPS@%$COMMONDEPS%g
11928s%@GENERICDEPS@%$GENERICDEPS%g
11929s%@IODBCOBJS@%$IODBCOBJS%g
11930s%@UNIXOBJS@%$UNIXOBJS%g
11931s%@UNIXDEPS@%$UNIXDEPS%g
11932s%@ALL_OBJECTS@%$ALL_OBJECTS%g
11933s%@ALL_DEPFILES@%$ALL_DEPFILES%g
11934s%@ALL_HEADERS@%$ALL_HEADERS%g
11935s%@GUIDIST@%$GUIDIST%g
11936s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
11937s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
11938s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
11939s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
11940s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
11941s%@USER_SUBDIRS@%$USER_SUBDIRS%g
11942s%@EXTRA_LIBS@%$EXTRA_LIBS%g
11943s%@LD_LIBS@%$LD_LIBS%g
11944s%@SET_MAKE@%$SET_MAKE%g
11945s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
11946
11947CEOF
11948EOF
11949
11950cat >> $CONFIG_STATUS <<\EOF
11951
11952# Split the substitutions into bite-sized pieces for seds with
11953# small command number limits, like on Digital OSF/1 and HP-UX.
11954ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11955ac_file=1 # Number of current file.
11956ac_beg=1 # First line for current file.
11957ac_end=$ac_max_sed_cmds # Line after last line for current file.
11958ac_more_lines=:
11959ac_sed_cmds=""
11960while $ac_more_lines; do
11961 if test $ac_beg -gt 1; then
11962 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11963 else
11964 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11965 fi
11966 if test ! -s conftest.s$ac_file; then
11967 ac_more_lines=false
11968 rm -f conftest.s$ac_file
11969 else
11970 if test -z "$ac_sed_cmds"; then
11971 ac_sed_cmds="sed -f conftest.s$ac_file"
11972 else
11973 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11974 fi
11975 ac_file=`expr $ac_file + 1`
11976 ac_beg=$ac_end
11977 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11978 fi
11979done
11980if test -z "$ac_sed_cmds"; then
11981 ac_sed_cmds=cat
11982fi
11983EOF
11984
11985cat >> $CONFIG_STATUS <<EOF
11986
11987CONFIG_FILES=\${CONFIG_FILES-"wx-config
11988 src/make.env
11989 src/makeprog.env
11990 src/makelib.env
11991 Makefile
11992 samples/Makefile
11993 samples/bombs/Makefile
11994 samples/caret/Makefile
11995 samples/checklst/Makefile
11996 samples/config/Makefile
11997 samples/controls/Makefile
11998 samples/db/Makefile
11999 samples/dialogs/Makefile
12000 samples/docview/Makefile
12001 samples/docvwmdi/Makefile
12002 samples/dnd/Makefile
12003 samples/drawing/Makefile
12004 samples/forty/Makefile
12005 samples/fractal/Makefile
12006 samples/image/Makefile
12007 samples/internat/Makefile
12008 samples/layout/Makefile
12009 samples/listctrl/Makefile
12010 samples/mdi/Makefile
12011 samples/minifram/Makefile
12012 samples/minimal/Makefile
12013 samples/nettest/Makefile
12014 samples/newgrid/Makefile
12015 samples/notebook/Makefile
12016 samples/png/Makefile
12017 samples/printing/Makefile
12018 samples/proplist/Makefile
12019 samples/richedit/Makefile
12020 samples/resource/Makefile
12021 samples/sashtest/Makefile
12022 samples/scroll/Makefile
12023 samples/scrollsub/Makefile
12024 samples/splitter/Makefile
12025 samples/text/Makefile
12026 samples/thread/Makefile
12027 samples/toolbar/Makefile
12028 samples/treectrl/Makefile
12029 samples/typetest/Makefile
12030 samples/validate/Makefile
12031 samples/wxpoem/Makefile
12032 samples/wxsocket/Makefile
12033 samples/wizard/Makefile
12034 samples/html/Makefile
12035 samples/html/about/Makefile
12036 samples/html/help/Makefile
12037 samples/html/printing/Makefile
12038 samples/html/test/Makefile
12039 samples/html/zip/Makefile
12040 samples/html/virtual/Makefile
12041 samples/html/widget/Makefile
12042 utils/Makefile
12043 utils/wxMMedia2/Makefile
12044 utils/wxMMedia2/lib/Makefile
12045 utils/wxMMedia2/sample/Makefile
12046 utils/glcanvas/Makefile
12047 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12048 utils/ogl/Makefile
12049 utils/ogl/src/Makefile
12050 "}
12051EOF
12052cat >> $CONFIG_STATUS <<\EOF
12053for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12054 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12055 case "$ac_file" in
12056 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12057 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12058 *) ac_file_in="${ac_file}.in" ;;
12059 esac
12060
12061 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12062
12063 # Remove last slash and all that follows it. Not all systems have dirname.
12064 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12065 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12066 # The file is in a subdirectory.
12067 test ! -d "$ac_dir" && mkdir "$ac_dir"
12068 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12069 # A "../" for each directory in $ac_dir_suffix.
12070 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12071 else
12072 ac_dir_suffix= ac_dots=
12073 fi
12074
12075 case "$ac_given_srcdir" in
12076 .) srcdir=.
12077 if test -z "$ac_dots"; then top_srcdir=.
12078 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12079 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12080 *) # Relative path.
12081 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12082 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12083 esac
12084
12085 case "$ac_given_INSTALL" in
12086 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12087 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12088 esac
12089
12090 echo creating "$ac_file"
12091 rm -f "$ac_file"
12092 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12093 case "$ac_file" in
12094 *Makefile*) ac_comsub="1i\\
12095# $configure_input" ;;
12096 *) ac_comsub= ;;
12097 esac
12098
12099 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12100 sed -e "$ac_comsub
12101s%@configure_input@%$configure_input%g
12102s%@srcdir@%$srcdir%g
12103s%@top_srcdir@%$top_srcdir%g
12104s%@INSTALL@%$INSTALL%g
12105" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12106fi; done
12107rm -f conftest.s*
12108
12109# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12110# NAME is the cpp macro being defined and VALUE is the value it is being given.
12111#
12112# ac_d sets the value in "#define NAME VALUE" lines.
12113ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12114ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12115ac_dC='\3'
12116ac_dD='%g'
12117# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12118ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12119ac_uB='\([ ]\)%\1#\2define\3'
12120ac_uC=' '
12121ac_uD='\4%g'
12122# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12123ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12124ac_eB='$%\1#\2define\3'
12125ac_eC=' '
12126ac_eD='%g'
12127
12128if test "${CONFIG_HEADERS+set}" != set; then
12129EOF
12130cat >> $CONFIG_STATUS <<EOF
12131 CONFIG_HEADERS="setup.h:setup.h.in"
12132EOF
12133cat >> $CONFIG_STATUS <<\EOF
12134fi
12135for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12136 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12137 case "$ac_file" in
12138 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12139 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12140 *) ac_file_in="${ac_file}.in" ;;
12141 esac
12142
12143 echo creating $ac_file
12144
12145 rm -f conftest.frag conftest.in conftest.out
12146 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12147 cat $ac_file_inputs > conftest.in
12148
12149EOF
12150
12151# Transform confdefs.h into a sed script conftest.vals that substitutes
12152# the proper values into config.h.in to produce config.h. And first:
12153# Protect against being on the right side of a sed subst in config.status.
12154# Protect against being in an unquoted here document in config.status.
12155rm -f conftest.vals
12156cat > conftest.hdr <<\EOF
12157s/[\\&%]/\\&/g
12158s%[\\$`]%\\&%g
12159s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12160s%ac_d%ac_u%gp
12161s%ac_u%ac_e%gp
12162EOF
12163sed -n -f conftest.hdr confdefs.h > conftest.vals
12164rm -f conftest.hdr
12165
12166# This sed command replaces #undef with comments. This is necessary, for
12167# example, in the case of _POSIX_SOURCE, which is predefined and required
12168# on some systems where configure will not decide to define it.
12169cat >> conftest.vals <<\EOF
12170s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12171EOF
12172
12173# Break up conftest.vals because some shells have a limit on
12174# the size of here documents, and old seds have small limits too.
12175
12176rm -f conftest.tail
12177while :
12178do
12179 ac_lines=`grep -c . conftest.vals`
12180 # grep -c gives empty output for an empty file on some AIX systems.
12181 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12182 # Write a limited-size here document to conftest.frag.
12183 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12184 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12185 echo 'CEOF
12186 sed -f conftest.frag conftest.in > conftest.out
12187 rm -f conftest.in
12188 mv conftest.out conftest.in
12189' >> $CONFIG_STATUS
12190 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12191 rm -f conftest.vals
12192 mv conftest.tail conftest.vals
12193done
12194rm -f conftest.vals
12195
12196cat >> $CONFIG_STATUS <<\EOF
12197 rm -f conftest.frag conftest.h
12198 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12199 cat conftest.in >> conftest.h
12200 rm -f conftest.in
12201 if cmp -s $ac_file conftest.h 2>/dev/null; then
12202 echo "$ac_file is unchanged"
12203 rm -f conftest.h
12204 else
12205 # Remove last slash and all that follows it. Not all systems have dirname.
12206 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12207 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12208 # The file is in a subdirectory.
12209 test ! -d "$ac_dir" && mkdir "$ac_dir"
12210 fi
12211 rm -f $ac_file
12212 mv conftest.h $ac_file
12213 fi
12214fi; done
12215
12216EOF
12217cat >> $CONFIG_STATUS <<EOF
12218
12219 TOOLKIT_DIR="${TOOLKIT_DIR}"
12220
12221
12222EOF
12223cat >> $CONFIG_STATUS <<\EOF
12224
12225 chmod +x wx-config
12226 if test ! -d include; then
12227 mkdir include
12228 fi
12229 if test ! -d include/wx; then
12230 mkdir include/wx
12231 fi
12232 if test ! -d include/wx/${TOOLKIT_DIR}; then
12233 mkdir include/wx/${TOOLKIT_DIR}
12234 fi
afc31813
VZ
12235 if test -f setup.h; then
12236 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
12237 fi
10f2d63a
VZ
12238
12239exit 0
12240EOF
12241chmod +x $CONFIG_STATUS
12242rm -fr confdefs* $ac_clean_files
12243test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
12244
12245