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