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