]> git.saurik.com Git - wxWidgets.git/blame - configure
browsedb.cpp dbtree.cpp
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
10f2d63a
VZ
36
37
38
39
40# Guess values for system-dependent variables and create Makefiles.
88d3a15c 41# Generated automatically using autoconf version 2.13
10f2d63a
VZ
42# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
43#
44# This configure script is free software; the Free Software Foundation
45# gives unlimited permission to copy, distribute and modify it.
46
47# Defaults:
48ac_help=
49ac_default_prefix=/usr/local
50# Any additions from configure.in:
51ac_help="$ac_help
52--enable-gui use GUI classes"
53ac_help="$ac_help
54 --with-gtk use GTK+"
55ac_help="$ac_help
56 --with-motif use Motif/Lesstif"
57ac_help="$ac_help
58 --with-wine use WINE"
59ac_help="$ac_help
60 --with-cygwin use Cygwin for MS-Windows"
61ac_help="$ac_help
62 --with-mingw use GCC Minimal MS-Windows"
e07802fc
VZ
63ac_help="$ac_help
64 --with-pm use OS/2 Presentation Manager"
10f2d63a
VZ
65ac_help="$ac_help
66 --with-gtk-prefix=PFX Prefix where GTK is installed"
67ac_help="$ac_help
68 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
69ac_help="$ac_help
10f2d63a
VZ
70--with-libpng use libpng (PNG image format)"
71ac_help="$ac_help
72--with-libjpeg use libjpeg (JPEG file format)"
73ac_help="$ac_help
c7a2bf27
RR
74--with-libtiff use libtiff (TIFF file format)"
75ac_help="$ac_help
10f2d63a
VZ
76--with-opengl use OpenGL (or Mesa)"
77ac_help="$ac_help
b12915c1
VZ
78--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
79ac_help="$ac_help
80--with-zlib use zlib for LZW compression"
81ac_help="$ac_help
10f2d63a
VZ
82--with-odbc use the IODBC and wxODBC classes"
83ac_help="$ac_help
84--enable-shared create shared library code"
85ac_help="$ac_help
86--enable-optimise create optimised code"
87ac_help="$ac_help
88--enable-debug same as debug_flag and debug_info"
89ac_help="$ac_help
90--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
91ac_help="$ac_help
92--enable-debug_info create code with debugging information"
93ac_help="$ac_help
94--enable-debug_gdb create code with extra GDB debugging information"
95ac_help="$ac_help
96--enable-debug_cntxt use wxDebugContext"
97ac_help="$ac_help
98--enable-mem_tracing create code with memory tracing"
99ac_help="$ac_help
100--enable-profile create code with profiling information"
101ac_help="$ac_help
102--enable-no_rtti create code without RTTI information"
103ac_help="$ac_help
104--enable-no_exceptions create code without exceptions information"
105ac_help="$ac_help
106--enable-permissive compile code disregarding strict ANSI"
107ac_help="$ac_help
108--enable-no_deps create code without dependency information"
109ac_help="$ac_help
110--enable-intl use internationalization system"
111ac_help="$ac_help
112--enable-config use wxConfig (and derived) classes"
113ac_help="$ac_help
114--enable-sockets use socket/network classes"
115ac_help="$ac_help
116--enable-dialupman use dialup network classes"
117ac_help="$ac_help
118--enable-ipc use interprocess communication (wxSocket etc.)"
119ac_help="$ac_help
120--enable-apple_ieee use the Apple IEEE codec"
121ac_help="$ac_help
122--enable-timedate use date/time classes"
123ac_help="$ac_help
124--enable-wave use wxWave class"
125ac_help="$ac_help
126--enable-fraction use wxFraction class"
127ac_help="$ac_help
128--enable-dynlib use wxLibrary class for DLL loading"
129ac_help="$ac_help
130--enable-longlong use wxLongLong class"
131ac_help="$ac_help
132--enable-log use logging system"
133ac_help="$ac_help
134--enable-streams use wxStream etc classes"
135ac_help="$ac_help
136--enable-file use wxFile classes"
137ac_help="$ac_help
138--enable-textfile use wxTextFile classes"
139ac_help="$ac_help
140--enable-unicode compile wxString with Unicode support"
141ac_help="$ac_help
142--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
143ac_help="$ac_help
144--enable-wxprintfv use wxWindows implementation of vprintf()"
145ac_help="$ac_help
146--enable-joystick compile in joystick support (Linux only)"
147ac_help="$ac_help
148--enable-std_iostreams use standard C++ stream classes"
149ac_help="$ac_help
150--enable-fs_inet use virtual HTTP/FTP filesystems"
151ac_help="$ac_help
152--enable-fs_zip use virtual ZIP filesystems"
153ac_help="$ac_help
154--enable-zipstream use wxZipInputStream"
155ac_help="$ac_help
156--enable-threads use threads"
157ac_help="$ac_help
158--enable-serial use class serialization"
159ac_help="$ac_help
160--enable-docview use document view architecture"
161ac_help="$ac_help
162--enable-help use help (using external browser at present)"
163ac_help="$ac_help
164--enable-constraints use layout-constraints system"
165ac_help="$ac_help
166--enable-printarch use printing architecture"
167ac_help="$ac_help
168--enable-mdi use multiple document interface architecture"
169ac_help="$ac_help
170--enable-postscript use wxPostscriptDC device context (default for gtk+)"
171ac_help="$ac_help
172--enable-prologio use Prolog IO library"
173ac_help="$ac_help
174--enable-resources use wxWindows resources"
175ac_help="$ac_help
176--enable-xresources use X resources for save (default for gtk+)"
177ac_help="$ac_help
178--enable-clipboard use wxClipboard classes"
179ac_help="$ac_help
180--enable-dnd use Drag'n'Drop classes"
181ac_help="$ac_help
182--enable-wxtree make wxTree library"
183ac_help="$ac_help
184--enable-controls use all usual controls"
185ac_help="$ac_help
186--enable-accel use accelerators"
187ac_help="$ac_help
188--enable-caret use wxCaret class"
189ac_help="$ac_help
190--enable-bmpbutton use wxBitmapButton class"
191ac_help="$ac_help
192--enable-checkbox use wxCheckBox class"
193ac_help="$ac_help
194--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
195ac_help="$ac_help
196--enable-choice use wxChoice class"
197ac_help="$ac_help
198--enable-combobox use wxComboBox classes"
199ac_help="$ac_help
200--enable-gauge use wxGauge class"
201ac_help="$ac_help
202--enable-grid use wxGrid class"
203ac_help="$ac_help
204--enable-newgrid use new wxGrid class"
205ac_help="$ac_help
206--enable-imaglist use wxImageList class"
207ac_help="$ac_help
208--enable-listbox use wxListBox class"
209ac_help="$ac_help
210--enable-listctrl use wxListCtrl class"
211ac_help="$ac_help
212--enable-notebook use wxNotebook class"
213ac_help="$ac_help
214--enable-radiobox use wxRadioBox class"
215ac_help="$ac_help
216--enable-radiobtn use wxRadioButton class"
217ac_help="$ac_help
218--enable-sash use wxSashWindow class"
219ac_help="$ac_help
220--enable-scrollbar use wxScrollBar class and scrollable windows"
221ac_help="$ac_help
222--enable-slider use wxSlider class"
223ac_help="$ac_help
224--enable-spinbtn use wxSpinButton class"
225ac_help="$ac_help
56cfaa52
RR
226--enable-spinctrl use wxSpinCtrl class"
227ac_help="$ac_help
10f2d63a
VZ
228--enable-splitter use wxSplitterWindow class"
229ac_help="$ac_help
230--enable-statbmp use wxStaticBitmap class"
231ac_help="$ac_help
232--enable-statbox use wxStaticBox class"
233ac_help="$ac_help
234--enable-statline use wxStaticLine class"
235ac_help="$ac_help
236--enable-statusbar use wxStatusBar class"
237ac_help="$ac_help
238--enable-tabdialog use wxTabControl class"
239ac_help="$ac_help
240--enable-toolbar use wxToolBar class"
241ac_help="$ac_help
360d6699
VZ
242--enable-tbarnative use native wxToolBar class"
243ac_help="$ac_help
244--enable-tbarsmpl use wxToolBarSimple class"
245ac_help="$ac_help
10f2d63a
VZ
246--enable-treectrl use wxTreeCtrl class"
247ac_help="$ac_help
248--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
249ac_help="$ac_help
250--enable-dirdlg use wxDirDialog"
251ac_help="$ac_help
252--enable-textdlg use wxTextDialog"
253ac_help="$ac_help
254--enable-tipdlg use startup tips"
255ac_help="$ac_help
256--enable-progressdlg use wxProgressDialog"
257ac_help="$ac_help
258--enable-miniframe use wxMiniFrame class"
259ac_help="$ac_help
260--enable-html use wxHTML sub-library"
261ac_help="$ac_help
262--enable-tooltips use wxToolTip class"
263ac_help="$ac_help
264--enable-splines use spline drawing code"
265ac_help="$ac_help
266--enable-validators use wxValidator and derived classes"
267ac_help="$ac_help
268--enable-busyinfo use wxBusyInfo"
269ac_help="$ac_help
9b33fe02
VZ
270--enable-plot use wxPlot"
271ac_help="$ac_help
10f2d63a
VZ
272--enable-gif use gif images (GIF file format)"
273ac_help="$ac_help
274--enable-pcx use pcx images (PCX file format)"
275ac_help="$ac_help
276--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
277ac_help="$ac_help
278 --with-x use the X Window System"
10f2d63a
VZ
279
280# Initialize some variables set by options.
281# The variables have the same names as the options, with
282# dashes changed to underlines.
283build=NONE
284cache_file=./config.cache
285exec_prefix=NONE
286host=NONE
287no_create=
288nonopt=NONE
289no_recursion=
290prefix=NONE
291program_prefix=NONE
292program_suffix=NONE
293program_transform_name=s,x,x,
294silent=
295site=
296srcdir=
297target=NONE
298verbose=
299x_includes=NONE
300x_libraries=NONE
301bindir='${exec_prefix}/bin'
302sbindir='${exec_prefix}/sbin'
303libexecdir='${exec_prefix}/libexec'
304datadir='${prefix}/share'
305sysconfdir='${prefix}/etc'
306sharedstatedir='${prefix}/com'
307localstatedir='${prefix}/var'
308libdir='${exec_prefix}/lib'
309includedir='${prefix}/include'
310oldincludedir='/usr/include'
311infodir='${prefix}/info'
312mandir='${prefix}/man'
313
314# Initialize some other variables.
315subdirs=
316MFLAGS= MAKEFLAGS=
317SHELL=${CONFIG_SHELL-/bin/sh}
318# Maximum number of lines to put in a shell here document.
319ac_max_here_lines=12
320
321ac_prev=
322for ac_option
323do
324
325 # If the previous option needs an argument, assign it.
326 if test -n "$ac_prev"; then
327 eval "$ac_prev=\$ac_option"
328 ac_prev=
329 continue
330 fi
331
332 case "$ac_option" in
333 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
334 *) ac_optarg= ;;
335 esac
336
337 # Accept the important Cygnus configure options, so we can diagnose typos.
338
339 case "$ac_option" in
340
341 -bindir | --bindir | --bindi | --bind | --bin | --bi)
342 ac_prev=bindir ;;
343 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
344 bindir="$ac_optarg" ;;
345
346 -build | --build | --buil | --bui | --bu)
347 ac_prev=build ;;
348 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
349 build="$ac_optarg" ;;
350
351 -cache-file | --cache-file | --cache-fil | --cache-fi \
352 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
353 ac_prev=cache_file ;;
354 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
355 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
356 cache_file="$ac_optarg" ;;
357
358 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
359 ac_prev=datadir ;;
360 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
361 | --da=*)
362 datadir="$ac_optarg" ;;
363
364 -disable-* | --disable-*)
365 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
368 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
369 fi
370 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
371 eval "enable_${ac_feature}=no" ;;
372
373 -enable-* | --enable-*)
374 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
377 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
378 fi
379 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
380 case "$ac_option" in
381 *=*) ;;
382 *) ac_optarg=yes ;;
383 esac
384 eval "enable_${ac_feature}='$ac_optarg'" ;;
385
386 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
387 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
388 | --exec | --exe | --ex)
389 ac_prev=exec_prefix ;;
390 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
391 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
392 | --exec=* | --exe=* | --ex=*)
393 exec_prefix="$ac_optarg" ;;
394
395 -gas | --gas | --ga | --g)
396 # Obsolete; use --with-gas.
397 with_gas=yes ;;
398
399 -help | --help | --hel | --he)
400 # Omit some internal or obsolete options to make the list less imposing.
401 # This message is too long to be a string in the A/UX 3.1 sh.
402 cat << EOF
403Usage: configure [options] [host]
404Options: [defaults in brackets after descriptions]
405Configuration:
406 --cache-file=FILE cache test results in FILE
407 --help print this message
408 --no-create do not create output files
409 --quiet, --silent do not print \`checking...' messages
410 --version print the version of autoconf that created configure
411Directory and file names:
412 --prefix=PREFIX install architecture-independent files in PREFIX
413 [$ac_default_prefix]
414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
415 [same as prefix]
416 --bindir=DIR user executables in DIR [EPREFIX/bin]
417 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
418 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
419 --datadir=DIR read-only architecture-independent data in DIR
420 [PREFIX/share]
421 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
422 --sharedstatedir=DIR modifiable architecture-independent data in DIR
423 [PREFIX/com]
424 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
425 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
426 --includedir=DIR C header files in DIR [PREFIX/include]
427 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
428 --infodir=DIR info documentation in DIR [PREFIX/info]
429 --mandir=DIR man documentation in DIR [PREFIX/man]
430 --srcdir=DIR find the sources in DIR [configure dir or ..]
431 --program-prefix=PREFIX prepend PREFIX to installed program names
432 --program-suffix=SUFFIX append SUFFIX to installed program names
433 --program-transform-name=PROGRAM
434 run sed PROGRAM on installed program names
435EOF
436 cat << EOF
437Host type:
438 --build=BUILD configure for building on BUILD [BUILD=HOST]
439 --host=HOST configure for HOST [guessed]
440 --target=TARGET configure for TARGET [TARGET=HOST]
441Features and packages:
442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
446 --x-includes=DIR X include files are in DIR
447 --x-libraries=DIR X library files are in DIR
448EOF
449 if test -n "$ac_help"; then
450 echo "--enable and --with options recognized:$ac_help"
451 fi
452 exit 0 ;;
453
454 -host | --host | --hos | --ho)
455 ac_prev=host ;;
456 -host=* | --host=* | --hos=* | --ho=*)
457 host="$ac_optarg" ;;
458
459 -includedir | --includedir | --includedi | --included | --include \
460 | --includ | --inclu | --incl | --inc)
461 ac_prev=includedir ;;
462 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
463 | --includ=* | --inclu=* | --incl=* | --inc=*)
464 includedir="$ac_optarg" ;;
465
466 -infodir | --infodir | --infodi | --infod | --info | --inf)
467 ac_prev=infodir ;;
468 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
469 infodir="$ac_optarg" ;;
470
471 -libdir | --libdir | --libdi | --libd)
472 ac_prev=libdir ;;
473 -libdir=* | --libdir=* | --libdi=* | --libd=*)
474 libdir="$ac_optarg" ;;
475
476 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
477 | --libexe | --libex | --libe)
478 ac_prev=libexecdir ;;
479 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
480 | --libexe=* | --libex=* | --libe=*)
481 libexecdir="$ac_optarg" ;;
482
483 -localstatedir | --localstatedir | --localstatedi | --localstated \
484 | --localstate | --localstat | --localsta | --localst \
485 | --locals | --local | --loca | --loc | --lo)
486 ac_prev=localstatedir ;;
487 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
488 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
489 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
490 localstatedir="$ac_optarg" ;;
491
492 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
493 ac_prev=mandir ;;
494 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
495 mandir="$ac_optarg" ;;
496
497 -nfp | --nfp | --nf)
498 # Obsolete; use --without-fp.
499 with_fp=no ;;
500
501 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
502 | --no-cr | --no-c)
503 no_create=yes ;;
504
505 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
506 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
507 no_recursion=yes ;;
508
509 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
510 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
511 | --oldin | --oldi | --old | --ol | --o)
512 ac_prev=oldincludedir ;;
513 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
514 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
515 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
516 oldincludedir="$ac_optarg" ;;
517
518 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
519 ac_prev=prefix ;;
520 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
521 prefix="$ac_optarg" ;;
522
523 -program-prefix | --program-prefix | --program-prefi | --program-pref \
524 | --program-pre | --program-pr | --program-p)
525 ac_prev=program_prefix ;;
526 -program-prefix=* | --program-prefix=* | --program-prefi=* \
527 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
528 program_prefix="$ac_optarg" ;;
529
530 -program-suffix | --program-suffix | --program-suffi | --program-suff \
531 | --program-suf | --program-su | --program-s)
532 ac_prev=program_suffix ;;
533 -program-suffix=* | --program-suffix=* | --program-suffi=* \
534 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
535 program_suffix="$ac_optarg" ;;
536
537 -program-transform-name | --program-transform-name \
538 | --program-transform-nam | --program-transform-na \
539 | --program-transform-n | --program-transform- \
540 | --program-transform | --program-transfor \
541 | --program-transfo | --program-transf \
542 | --program-trans | --program-tran \
543 | --progr-tra | --program-tr | --program-t)
544 ac_prev=program_transform_name ;;
545 -program-transform-name=* | --program-transform-name=* \
546 | --program-transform-nam=* | --program-transform-na=* \
547 | --program-transform-n=* | --program-transform-=* \
548 | --program-transform=* | --program-transfor=* \
549 | --program-transfo=* | --program-transf=* \
550 | --program-trans=* | --program-tran=* \
551 | --progr-tra=* | --program-tr=* | --program-t=*)
552 program_transform_name="$ac_optarg" ;;
553
554 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
555 | -silent | --silent | --silen | --sile | --sil)
556 silent=yes ;;
557
558 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
559 ac_prev=sbindir ;;
560 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
561 | --sbi=* | --sb=*)
562 sbindir="$ac_optarg" ;;
563
564 -sharedstatedir | --sharedstatedir | --sharedstatedi \
565 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
566 | --sharedst | --shareds | --shared | --share | --shar \
567 | --sha | --sh)
568 ac_prev=sharedstatedir ;;
569 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
570 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
571 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
572 | --sha=* | --sh=*)
573 sharedstatedir="$ac_optarg" ;;
574
575 -site | --site | --sit)
576 ac_prev=site ;;
577 -site=* | --site=* | --sit=*)
578 site="$ac_optarg" ;;
579
580 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
581 ac_prev=srcdir ;;
582 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
583 srcdir="$ac_optarg" ;;
584
585 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
586 | --syscon | --sysco | --sysc | --sys | --sy)
587 ac_prev=sysconfdir ;;
588 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
589 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
590 sysconfdir="$ac_optarg" ;;
591
592 -target | --target | --targe | --targ | --tar | --ta | --t)
593 ac_prev=target ;;
594 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
595 target="$ac_optarg" ;;
596
597 -v | -verbose | --verbose | --verbos | --verbo | --verb)
598 verbose=yes ;;
599
600 -version | --version | --versio | --versi | --vers)
88d3a15c 601 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
602 exit 0 ;;
603
604 -with-* | --with-*)
605 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
606 # Reject names that are not valid shell variable names.
607 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
608 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
609 fi
610 ac_package=`echo $ac_package| sed 's/-/_/g'`
611 case "$ac_option" in
612 *=*) ;;
613 *) ac_optarg=yes ;;
614 esac
615 eval "with_${ac_package}='$ac_optarg'" ;;
616
617 -without-* | --without-*)
618 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
619 # Reject names that are not valid shell variable names.
620 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
621 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
622 fi
623 ac_package=`echo $ac_package| sed 's/-/_/g'`
624 eval "with_${ac_package}=no" ;;
625
626 --x)
627 # Obsolete; use --with-x.
628 with_x=yes ;;
629
630 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
631 | --x-incl | --x-inc | --x-in | --x-i)
632 ac_prev=x_includes ;;
633 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
634 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
635 x_includes="$ac_optarg" ;;
636
637 -x-libraries | --x-libraries | --x-librarie | --x-librari \
638 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
639 ac_prev=x_libraries ;;
640 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
641 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
642 x_libraries="$ac_optarg" ;;
643
644 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
645 ;;
646
647 *)
648 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
649 echo "configure: warning: $ac_option: invalid host type" 1>&2
650 fi
651 if test "x$nonopt" != xNONE; then
652 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
653 fi
654 nonopt="$ac_option"
655 ;;
656
657 esac
658done
659
660if test -n "$ac_prev"; then
661 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
662fi
663
664trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
665
666# File descriptor usage:
667# 0 standard input
668# 1 file creation
669# 2 errors and warnings
670# 3 some systems may open it to /dev/tty
671# 4 used on the Kubota Titan
672# 6 checking for... messages and results
673# 5 compiler messages saved in config.log
674if test "$silent" = yes; then
675 exec 6>/dev/null
676else
677 exec 6>&1
678fi
679exec 5>./config.log
680
681echo "\
682This file contains any messages produced by compilers while
683running configure, to aid debugging if configure makes a mistake.
684" 1>&5
685
686# Strip out --no-create and --no-recursion so they do not pile up.
687# Also quote any args containing shell metacharacters.
688ac_configure_args=
689for ac_arg
690do
691 case "$ac_arg" in
692 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
693 | --no-cr | --no-c) ;;
694 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
695 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
696 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
697 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
698 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
699 esac
700done
701
702# NLS nuisances.
703# Only set these to C if already set. These must not be set unconditionally
704# because not all systems understand e.g. LANG=C (notably SCO).
705# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
706# Non-C LC_CTYPE values break the ctype check.
707if test "${LANG+set}" = set; then LANG=C; export LANG; fi
708if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
709if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
710if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
711
712# confdefs.h avoids OS command line length limits that DEFS can exceed.
713rm -rf conftest* confdefs.h
714# AIX cpp loses on an empty file, so make sure it contains at least a newline.
715echo > confdefs.h
716
717# A filename unique to this package, relative to the directory that
718# configure is in, which we can look for to find out if srcdir is correct.
719ac_unique_file=wx-config.in
720
721# Find the source files, if location was not specified.
722if test -z "$srcdir"; then
723 ac_srcdir_defaulted=yes
724 # Try the directory containing this script, then its parent.
725 ac_prog=$0
726 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
727 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
728 srcdir=$ac_confdir
729 if test ! -r $srcdir/$ac_unique_file; then
730 srcdir=..
731 fi
732else
733 ac_srcdir_defaulted=no
734fi
735if test ! -r $srcdir/$ac_unique_file; then
736 if test "$ac_srcdir_defaulted" = yes; then
737 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
738 else
739 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
740 fi
741fi
742srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
743
744# Prefer explicitly selected file to automatically selected ones.
745if test -z "$CONFIG_SITE"; then
746 if test "x$prefix" != xNONE; then
747 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
748 else
749 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
750 fi
751fi
752for ac_site_file in $CONFIG_SITE; do
753 if test -r "$ac_site_file"; then
754 echo "loading site script $ac_site_file"
755 . "$ac_site_file"
756 fi
757done
758
759if test -r "$cache_file"; then
760 echo "loading cache $cache_file"
761 . $cache_file
762else
763 echo "creating cache $cache_file"
764 > $cache_file
765fi
766
767ac_ext=c
768# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
769ac_cpp='$CPP $CPPFLAGS'
770ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
771ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
772cross_compiling=$ac_cv_prog_cc_cross
773
774ac_exeext=
775ac_objext=o
776if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
777 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
778 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
779 ac_n= ac_c='
780' ac_t=' '
781 else
782 ac_n=-n ac_c= ac_t=
783 fi
784else
785 ac_n= ac_c='\c' ac_t=
786fi
787
788
789
7c66a493
VZ
790ac_aux_dir=
791for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
792 if test -f $ac_dir/install-sh; then
793 ac_aux_dir=$ac_dir
794 ac_install_sh="$ac_aux_dir/install-sh -c"
795 break
796 elif test -f $ac_dir/install.sh; then
797 ac_aux_dir=$ac_dir
798 ac_install_sh="$ac_aux_dir/install.sh -c"
799 break
800 fi
801done
802if test -z "$ac_aux_dir"; then
803 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
804fi
805ac_config_guess=$ac_aux_dir/config.guess
806ac_config_sub=$ac_aux_dir/config.sub
807ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
808
809
810# Do some error checking and defaulting for the host and target type.
811# The inputs are:
812# configure --host=HOST --target=TARGET --build=BUILD NONOPT
813#
814# The rules are:
815# 1. You are not allowed to specify --host, --target, and nonopt at the
816# same time.
817# 2. Host defaults to nonopt.
818# 3. If nonopt is not specified, then host defaults to the current host,
819# as determined by config.guess.
820# 4. Target and build default to nonopt.
821# 5. If nonopt is not specified, then target and build default to host.
822
823# The aliases save the names the user supplied, while $host etc.
824# will get canonicalized.
825case $host---$target---$nonopt in
826NONE---*---* | *---NONE---* | *---*---NONE) ;;
827*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
828esac
829
830
831# Make sure we can run config.sub.
832if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
833else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
834fi
835
836echo $ac_n "checking host system type""... $ac_c" 1>&6
9b33fe02 837echo "configure:838: checking host system type" >&5
7c66a493
VZ
838
839host_alias=$host
840case "$host_alias" in
841NONE)
842 case $nonopt in
843 NONE)
844 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
845 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
846 fi ;;
847 *) host_alias=$nonopt ;;
848 esac ;;
849esac
850
851host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
852host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
853host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
854host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
855echo "$ac_t""$host" 1>&6
856
857echo $ac_n "checking target system type""... $ac_c" 1>&6
9b33fe02 858echo "configure:859: checking target system type" >&5
7c66a493
VZ
859
860target_alias=$target
861case "$target_alias" in
862NONE)
863 case $nonopt in
864 NONE) target_alias=$host_alias ;;
865 *) target_alias=$nonopt ;;
866 esac ;;
867esac
868
869target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
870target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
871target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
872target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
873echo "$ac_t""$target" 1>&6
874
875echo $ac_n "checking build system type""... $ac_c" 1>&6
9b33fe02 876echo "configure:877: checking build system type" >&5
7c66a493
VZ
877
878build_alias=$build
879case "$build_alias" in
880NONE)
881 case $nonopt in
882 NONE) build_alias=$host_alias ;;
883 *) build_alias=$nonopt ;;
884 esac ;;
885esac
886
887build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
888build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
889build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
890build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
891echo "$ac_t""$build" 1>&6
892
893test "$host_alias" != "$target_alias" &&
894 test "$program_prefix$program_suffix$program_transform_name" = \
895 NONENONEs,x,x, &&
896 program_prefix=${target_alias}-
897
898
10f2d63a
VZ
899
900WX_MAJOR_VERSION_NUMBER=2
901WX_MINOR_VERSION_NUMBER=1
cc977e5f 902WX_RELEASE_NUMBER=14
10f2d63a
VZ
903
904WX_INTERFACE_AGE=0
905WX_BINARY_AGE=0
906
907WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
908
909WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
910WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
911WX_REVISION=$WX_INTERFACE_AGE
912WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
913
914
915USE_UNIX=1
916USE_WIN32=0
b12915c1
VZ
917USE_BEOS=0
918
10f2d63a
VZ
919USE_LINUX=
920USE_SGI=
921USE_HPUX=
922USE_SYSV=
923USE_SVR4=
924USE_AIX=
925USE_SUN=
926USE_SOLARIS=
927USE_SUNOS=
928USE_ALPHA=
929USE_OSF=
930USE_BSD=
931USE_FREEBSD=
932USE_VMS=
933USE_ULTRIX=
934USE_CYGWIN=
935USE_MINGW=
936USE_DATA_GENERAL=
937
ab9b9eab
VZ
938NEEDS_D_REENTRANT_FOR_R_FUNCS=0
939
e07802fc 940ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
941
942DEFAULT_wxUSE_GTK=0
943DEFAULT_wxUSE_MOTIF=0
944DEFAULT_wxUSE_MSW=0
945DEFAULT_wxUSE_WINE=0
e07802fc 946DEFAULT_wxUSE_PM=0
10f2d63a
VZ
947
948DEFAULT_DEFAULT_wxUSE_GTK=0
949DEFAULT_DEFAULT_wxUSE_MOTIF=0
950DEFAULT_DEFAULT_wxUSE_MSW=0
951DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 952DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a
VZ
953
954case "${host}" in
955 *-hp-hpux* )
956 USE_HPUX=1
957 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 958 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
959 cat >> confdefs.h <<\EOF
960#define __HPUX__ 1
961EOF
962
963 ;;
964 *-*-linux* )
965 USE_LINUX=1
966 cat >> confdefs.h <<\EOF
967#define __LINUX__ 1
968EOF
969
970 TMP=`uname -m`
971 if test "x$TMP" = "xalpha"; then
972 USE_ALPHA=1
973 cat >> confdefs.h <<\EOF
974#define __ALPHA__ 1
975EOF
976
977 fi
978 DEFAULT_DEFAULT_wxUSE_GTK=1
979 ;;
980 *-*-irix5* | *-*-irix6* )
981 USE_SGI=1
982 USE_SVR4=1
983 cat >> confdefs.h <<\EOF
984#define __SGI__ 1
985EOF
986
987 cat >> confdefs.h <<\EOF
988#define __SVR4__ 1
989EOF
990
991 DEFAULT_DEFAULT_wxUSE_MOTIF=1
992 ;;
993 *-*-solaris2* )
994 USE_SUN=1
995 USE_SOLARIS=1
996 USE_SVR4=1
997 cat >> confdefs.h <<\EOF
998#define __SUN__ 1
999EOF
1000
1001 cat >> confdefs.h <<\EOF
1002#define __SOLARIS__ 1
1003EOF
1004
1005 cat >> confdefs.h <<\EOF
1006#define __SVR4__ 1
1007EOF
1008
1009 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1010 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1011 ;;
1012 *-*-sunos4* )
1013 USE_SUN=1
1014 USE_SUNOS=1
1015 USE_BSD=1
1016 cat >> confdefs.h <<\EOF
1017#define __SUN__ 1
1018EOF
1019
1020 cat >> confdefs.h <<\EOF
1021#define __SUNOS__ 1
1022EOF
1023
1024 cat >> confdefs.h <<\EOF
1025#define __BSD__ 1
1026EOF
1027
1028 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1029 ;;
1030 *-*-freebsd* | *-*-netbsd*)
1031 USE_BSD=1
1032 USE_FREEBSD=1
1033 cat >> confdefs.h <<\EOF
1034#define __FREEBSD__ 1
1035EOF
1036
1037 cat >> confdefs.h <<\EOF
1038#define __BSD__ 1
1039EOF
1040
1041 DEFAULT_DEFAULT_wxUSE_GTK=1
1042 ;;
1043 *-*-osf* )
1044 USE_ALPHA=1
1045 USE_OSF=1
1046 cat >> confdefs.h <<\EOF
1047#define __ALPHA__ 1
1048EOF
1049
1050 cat >> confdefs.h <<\EOF
1051#define __OSF__ 1
1052EOF
1053
1054 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1055 ;;
1056 *-*-dgux5* )
1057 USE_ALPHA=1
1058 USE_SVR4=1
1059 cat >> confdefs.h <<\EOF
1060#define __ALPHA__ 1
1061EOF
1062
1063 cat >> confdefs.h <<\EOF
1064#define __SVR4__ 1
1065EOF
1066
1067 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1068 ;;
1069 *-*-sysv5* )
1070 USE_SYSV=1
1071 USE_SVR4=1
1072 cat >> confdefs.h <<\EOF
1073#define __SYSV__ 1
1074EOF
1075
1076 cat >> confdefs.h <<\EOF
1077#define __SVR4__ 1
1078EOF
1079
1080 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1081 ;;
1082 *-*-aix* )
1083 USE_AIX=1
1084 USE_SYSV=1
1085 USE_SVR4=1
1086 cat >> confdefs.h <<\EOF
1087#define __AIX__ 1
1088EOF
1089
1090 cat >> confdefs.h <<\EOF
1091#define __SYSV__ 1
1092EOF
1093
1094 cat >> confdefs.h <<\EOF
1095#define __SVR4__ 1
1096EOF
1097
1098 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1099 ;;
1100
7eef8db2 1101 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1102 USE_UNIX=0
1103 USE_WIN32=1
1104 cat >> confdefs.h <<\EOF
1105#define __WIN32__ 1
1106EOF
1107
1108 cat >> confdefs.h <<\EOF
1109#define __WIN95__ 1
1110EOF
1111
1112 cat >> confdefs.h <<\EOF
1113#define __WINDOWS__ 1
1114EOF
1115
1116 cat >> confdefs.h <<\EOF
1117#define __GNUWIN32__ 1
1118EOF
1119
1120 cat >> confdefs.h <<\EOF
1121#define STRICT 1
1122EOF
1123
1124 cat >> confdefs.h <<\EOF
1125#define WINVER 0x0400
1126EOF
1127
cf27ef00 1128 PROGRAM_EXT=".exe"
10f2d63a
VZ
1129 DEFAULT_DEFAULT_wxUSE_MSW=1
1130 ;;
1131
1132 *-pc-os2_emx )
1133 cat >> confdefs.h <<\EOF
1134#define __EMX__ 1
1135EOF
1136
cf27ef00 1137 PROGRAM_EXT=".exe"
e07802fc 1138 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1139 ;;
1140
b12915c1
VZ
1141 *-*-beos* )
1142 USE_BEOS=1
1143 cat >> confdefs.h <<\EOF
1144#define __BEOS__ 1
1145EOF
1146
1147 ;;
1148
10f2d63a
VZ
1149 *)
1150 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1151esac
1152
1153if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1154 wxUSE_UNIX=yes
1155 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1156#define __UNIX__ 1
1157EOF
1158
b12915c1
VZ
1159
1160 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1161 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1162fi
1163
1164if test "$USE_BEOS" = 1; then
1165 SRC_SUBDIRS="$SRC_SUBDIRS be"
1166 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1167fi
1168
1169if test "$USE_LINUX" = 1; then
1170 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
9b33fe02 1171echo "configure:1172: checking for gettext in -lc" >&5
10f2d63a
VZ
1172ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1173if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1175else
1176 ac_save_LIBS="$LIBS"
1177LIBS="-lc $LIBS"
1178cat > conftest.$ac_ext <<EOF
9b33fe02 1179#line 1180 "configure"
10f2d63a
VZ
1180#include "confdefs.h"
1181/* Override any gcc2 internal prototype to avoid an error. */
1182/* We use char because int might match the return type of a gcc2
1183 builtin and then its argument prototype would still apply. */
1184char gettext();
1185
1186int main() {
1187gettext()
1188; return 0; }
1189EOF
9b33fe02 1190if { (eval echo configure:1191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1191 rm -rf conftest*
1192 eval "ac_cv_lib_$ac_lib_var=yes"
1193else
1194 echo "configure: failed program was:" >&5
1195 cat conftest.$ac_ext >&5
1196 rm -rf conftest*
1197 eval "ac_cv_lib_$ac_lib_var=no"
1198fi
1199rm -f conftest*
1200LIBS="$ac_save_LIBS"
1201
1202fi
1203if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1204 echo "$ac_t""yes" 1>&6
1205 cat >> confdefs.h <<\EOF
1206#define wxHAVE_GLIBC2 1
1207EOF
1208
1209else
1210 echo "$ac_t""no" 1>&6
1211fi
1212
1213fi
1214
1215
1216
1217
1218 wx_arg_cache_file="configarg.cache"
1219 echo "loading argument cache $wx_arg_cache_file"
1220 rm -f ${wx_arg_cache_file}.tmp
1221 touch ${wx_arg_cache_file}.tmp
1222 touch ${wx_arg_cache_file}
1223
1224
1225DEBUG_CONFIGURE=0
1226if test $DEBUG_CONFIGURE = 1; then
1227 DEFAULT_wxUSE_THREADS=yes
1228
1229 DEFAULT_wxUSE_SHARED=yes
1230 DEFAULT_wxUSE_OPTIMISE=yes
1231 DEFAULT_wxUSE_PROFILE=no
1232 DEFAULT_wxUSE_NO_DEPS=no
1233 DEFAULT_wxUSE_NO_RTTI=no
1234 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1235 DEFAULT_wxUSE_PERMISSIVE=no
1236 DEFAULT_wxUSE_DEBUG_FLAG=yes
1237 DEFAULT_wxUSE_DEBUG_INFO=yes
1238 DEFAULT_wxUSE_DEBUG_GDB=yes
1239 DEFAULT_wxUSE_MEM_TRACING=no
1240 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1241 DEFAULT_wxUSE_DMALLOC=no
1242 DEFAULT_wxUSE_APPLE_IEEE=no
1243
1244 DEFAULT_wxUSE_LOG=yes
1245
1246 DEFAULT_wxUSE_GUI=yes
1247
1248 DEFAULT_wxUSE_ZLIB=no
1249 DEFAULT_wxUSE_LIBPNG=no
1250 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1251 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a
VZ
1252 DEFAULT_wxUSE_ODBC=no
1253
1254 DEFAULT_wxUSE_STD_IOSTREAM=no
1255 DEFAULT_wxUSE_FILE=no
1256 DEFAULT_wxUSE_TEXTFILE=no
1257 DEFAULT_wxUSE_TIMEDATE=no
1258 DEFAULT_wxUSE_WAVE=no
1259 DEFAULT_wxUSE_INTL=no
1260 DEFAULT_wxUSE_CONFIG=no
1261 DEFAULT_wxUSE_STREAMS=no
1262 DEFAULT_wxUSE_SOCKETS=no
1263 DEFAULT_wxUSE_DIALUP_MANAGER=no
1264 DEFAULT_wxUSE_SERIAL=no
1265 DEFAULT_wxUSE_JOYSTICK=no
1266 DEFAULT_wxUSE_DYNLIB_CLASS=no
1267 DEFAULT_wxUSE_LONGLONG=no
1268
1269 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1270 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1271 DEFAULT_wxUSE_POSTSCRIPT=no
1272
1273 DEFAULT_wxUSE_X_RESOURCES=no
1274 DEFAULT_wxUSE_CLIPBOARD=no
1275 DEFAULT_wxUSE_TOOLTIPS=no
1276 DEFAULT_wxUSE_DRAG_AND_DROP=no
1277 DEFAULT_wxUSE_SPLINES=no
1278
1279 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1280 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1281 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1282
1283 DEFAULT_wxUSE_PROLOGIO=no
1284 DEFAULT_wxUSE_RESOURCES=no
1285 DEFAULT_wxUSE_CONSTRAINTS=no
1286 DEFAULT_wxUSE_IPC=no
1287 DEFAULT_wxUSE_HELP=no
1288 DEFAULT_wxUSE_WXTREE=no
1289 DEFAULT_wxUSE_METAFILE=no
1290
1291 DEFAULT_wxUSE_COMMONDLGS=no
1292 DEFAULT_wxUSE_DIRDLG=no
1293 DEFAULT_wxUSE_TEXTDLG=no
1294 DEFAULT_wxUSE_STARTUP_TIPS=no
1295 DEFAULT_wxUSE_PROGRESSDLG=no
1296 DEFAULT_wxUSE_MINIFRAME=no
1297 DEFAULT_wxUSE_HTML=no
1298 DEFAULT_wxUSE_FS_INET=no
1299 DEFAULT_wxUSE_FS_ZIP=no
1300 DEFAULT_wxUSE_BUSYINFO=no
1301 DEFAULT_wxUSE_ZIPSTREAM=no
1302 DEFAULT_wxUSE_VALIDATORS=yes
1303
1304 DEFAULT_wxUSE_ACCEL=no
1305 DEFAULT_wxUSE_CARET=no
1306 DEFAULT_wxUSE_BMPBUTTON=no
1307 DEFAULT_wxUSE_CHECKBOX=no
1308 DEFAULT_wxUSE_CHECKLST=no
1309 DEFAULT_wxUSE_CHOICE=yes
1310 DEFAULT_wxUSE_COMBOBOX=no
1311 DEFAULT_wxUSE_GAUGE=no
1312 DEFAULT_wxUSE_GRID=no
1313 DEFAULT_wxUSE_NEW_GRID=no
1314 DEFAULT_wxUSE_IMAGLIST=no
1315 DEFAULT_wxUSE_LISTBOX=no
1316 DEFAULT_wxUSE_LISTCTRL=no
1317 DEFAULT_wxUSE_NOTEBOOK=no
9b33fe02 1318 DEFAULT_wxUSE_PLOT=no
10f2d63a
VZ
1319 DEFAULT_wxUSE_RADIOBOX=no
1320 DEFAULT_wxUSE_RADIOBTN=no
1321 DEFAULT_wxUSE_SASH=no
1322 DEFAULT_wxUSE_SCROLLBAR=no
1323 DEFAULT_wxUSE_SLIDER=no
1324 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1325 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1326 DEFAULT_wxUSE_SPLITTER=no
1327 DEFAULT_wxUSE_STATBMP=no
1328 DEFAULT_wxUSE_STATBOX=no
1329 DEFAULT_wxUSE_STATLINE=no
1330 DEFAULT_wxUSE_STATUSBAR=yes
1331 DEFAULT_wxUSE_TABDIALOG=no
1332 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1333 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1334 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1335 DEFAULT_wxUSE_TREECTRL=no
1336
1337 DEFAULT_wxUSE_UNICODE=no
1338 DEFAULT_wxUSE_WCSRTOMBS=no
1339
1340 DEFAULT_wxUSE_GIF=no
1341 DEFAULT_wxUSE_PCX=no
1342 DEFAULT_wxUSE_PNM=no
1343else
1344 DEFAULT_wxUSE_THREADS=yes
1345
1346 DEFAULT_wxUSE_SHARED=yes
1347 DEFAULT_wxUSE_OPTIMISE=yes
1348 DEFAULT_wxUSE_PROFILE=no
1349 DEFAULT_wxUSE_NO_DEPS=no
1350 DEFAULT_wxUSE_NO_RTTI=no
1351 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1352 DEFAULT_wxUSE_PERMISSIVE=no
1353 DEFAULT_wxUSE_DEBUG_FLAG=no
1354 DEFAULT_wxUSE_DEBUG_INFO=no
1355 DEFAULT_wxUSE_DEBUG_GDB=no
1356 DEFAULT_wxUSE_MEM_TRACING=no
1357 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1358 DEFAULT_wxUSE_DMALLOC=no
1359 DEFAULT_wxUSE_APPLE_IEEE=yes
1360
1361 DEFAULT_wxUSE_LOG=yes
1362
1363 DEFAULT_wxUSE_GUI=yes
1364
1365 DEFAULT_wxUSE_ZLIB=yes
1366 DEFAULT_wxUSE_LIBPNG=yes
1367 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1368 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1369 DEFAULT_wxUSE_ODBC=no
10f2d63a
VZ
1370
1371 DEFAULT_wxUSE_STD_IOSTREAM=no
1372 DEFAULT_wxUSE_FILE=yes
1373 DEFAULT_wxUSE_TEXTFILE=yes
1374 DEFAULT_wxUSE_TIMEDATE=yes
1375 DEFAULT_wxUSE_WAVE=no
1376 DEFAULT_wxUSE_INTL=yes
1377 DEFAULT_wxUSE_CONFIG=yes
1378 DEFAULT_wxUSE_STREAMS=yes
1379 DEFAULT_wxUSE_SOCKETS=yes
1380 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1381 DEFAULT_wxUSE_SERIAL=yes
1382 DEFAULT_wxUSE_JOYSTICK=yes
1383 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1384 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1385
1386 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1387 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1388 DEFAULT_wxUSE_POSTSCRIPT=yes
1389
1390 DEFAULT_wxUSE_X_RESOURCES=no
1391 DEFAULT_wxUSE_CLIPBOARD=yes
1392 DEFAULT_wxUSE_TOOLTIPS=yes
1393 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1394 DEFAULT_wxUSE_SPLINES=yes
1395
1396 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1397 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1398 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1399
1400 DEFAULT_wxUSE_PROLOGIO=yes
1401 DEFAULT_wxUSE_RESOURCES=yes
1402 DEFAULT_wxUSE_CONSTRAINTS=yes
1403 DEFAULT_wxUSE_IPC=yes
1404 DEFAULT_wxUSE_HELP=yes
1405 DEFAULT_wxUSE_WXTREE=yes
1406 DEFAULT_wxUSE_METAFILE=yes
1407
1408 DEFAULT_wxUSE_COMMONDLGS=yes
1409 DEFAULT_wxUSE_DIRDLG=yes
1410 DEFAULT_wxUSE_TEXTDLG=yes
1411 DEFAULT_wxUSE_STARTUP_TIPS=yes
1412 DEFAULT_wxUSE_PROGRESSDLG=yes
1413 DEFAULT_wxUSE_MINIFRAME=yes
1414 DEFAULT_wxUSE_HTML=yes
1415 DEFAULT_wxUSE_FS_INET=yes
1416 DEFAULT_wxUSE_FS_ZIP=yes
1417 DEFAULT_wxUSE_BUSYINFO=yes
1418 DEFAULT_wxUSE_ZIPSTREAM=yes
1419 DEFAULT_wxUSE_VALIDATORS=yes
1420
1421 DEFAULT_wxUSE_ACCEL=yes
1422 DEFAULT_wxUSE_CARET=yes
1423 DEFAULT_wxUSE_BMPBUTTON=yes
1424 DEFAULT_wxUSE_CHECKBOX=yes
1425 DEFAULT_wxUSE_CHECKLST=yes
1426 DEFAULT_wxUSE_CHOICE=yes
1427 DEFAULT_wxUSE_COMBOBOX=yes
1428 DEFAULT_wxUSE_GAUGE=yes
1429 DEFAULT_wxUSE_GRID=yes
cc977e5f 1430 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1431 DEFAULT_wxUSE_IMAGLIST=yes
1432 DEFAULT_wxUSE_LISTBOX=yes
1433 DEFAULT_wxUSE_LISTCTRL=yes
1434 DEFAULT_wxUSE_NOTEBOOK=yes
9b33fe02 1435 DEFAULT_wxUSE_PLOT=yes
10f2d63a
VZ
1436 DEFAULT_wxUSE_RADIOBOX=yes
1437 DEFAULT_wxUSE_RADIOBTN=yes
1438 DEFAULT_wxUSE_SASH=yes
1439 DEFAULT_wxUSE_SCROLLBAR=yes
1440 DEFAULT_wxUSE_SLIDER=yes
1441 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1442 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1443 DEFAULT_wxUSE_SPLITTER=yes
1444 DEFAULT_wxUSE_STATBMP=yes
1445 DEFAULT_wxUSE_STATBOX=yes
1446 DEFAULT_wxUSE_STATLINE=yes
1447 DEFAULT_wxUSE_STATUSBAR=yes
1448 DEFAULT_wxUSE_TABDIALOG=no
1449 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1450 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1451 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1452 DEFAULT_wxUSE_TREECTRL=yes
1453
1454 DEFAULT_wxUSE_UNICODE=no
1455 DEFAULT_wxUSE_WCSRTOMBS=no
1456
1457 DEFAULT_wxUSE_GIF=yes
1458 DEFAULT_wxUSE_PCX=yes
1459 DEFAULT_wxUSE_PNM=yes
1460fi
1461
1462
1463
1464for toolkit in `echo $ALL_TOOLKITS`; do
1465 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1466 if test "x$LINE" != x ; then
1467 has_toolkit_in_cache=1
1468 eval "DEFAULT_$LINE"
1469 eval "CACHE_$toolkit=1"
1470 fi
1471done
1472
1473
1474
1475 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
9b33fe02 1476echo "configure:1477: checking "for --enable-gui"" >&5
10f2d63a
VZ
1477 no_cache=0
1478 # Check whether --enable-gui or --disable-gui was given.
1479if test "${enable_gui+set}" = set; then
1480 enableval="$enable_gui"
1481
1482 if test "$enableval" = yes; then
1483 ac_cv_use_gui='wxUSE_GUI=yes'
1484 else
1485 ac_cv_use_gui='wxUSE_GUI=no'
1486 fi
1487
1488else
1489
1490 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1491 if test "x$LINE" != x ; then
1492 eval "DEFAULT_$LINE"
1493 else
1494 no_cache=1
1495 fi
1496
1497 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1498
1499fi
1500
1501
1502 eval "$ac_cv_use_gui"
1503 if test "$no_cache" != 1; then
1504 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1505 fi
1506
1507 if test "$wxUSE_GUI" = yes; then
1508 echo "$ac_t""yes" 1>&6
1509 else
1510 echo "$ac_t""no" 1>&6
1511 fi
1512
1513
b12915c1 1514if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1515
1516# Check whether --with-gtk or --without-gtk was given.
1517if test "${with_gtk+set}" = set; then
1518 withval="$with_gtk"
1519 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1520fi
1521
1522# Check whether --with-motif or --without-motif was given.
1523if test "${with_motif+set}" = set; then
1524 withval="$with_motif"
1525 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1526fi
1527
1528# Check whether --with-wine or --without-wine was given.
1529if test "${with_wine+set}" = set; then
1530 withval="$with_wine"
1531 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1532fi
1533
1534# Check whether --with-cygwin or --without-cygwin was given.
1535if test "${with_cygwin+set}" = set; then
1536 withval="$with_cygwin"
1537 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1538fi
1539
1540# Check whether --with-mingw or --without-mingw was given.
1541if test "${with_mingw+set}" = set; then
1542 withval="$with_mingw"
1543 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1544fi
1545
e07802fc
VZ
1546# Check whether --with-pm or --without-pm was given.
1547if test "${with_pm+set}" = set; then
1548 withval="$with_pm"
1549 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1550fi
1551
10f2d63a
VZ
1552
1553# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1554if test "${with_gtk_prefix+set}" = set; then
1555 withval="$with_gtk_prefix"
1556 gtk_config_prefix="$withval"
1557else
1558 gtk_config_prefix=""
1559fi
1560
1561# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1562if test "${with_gtk_exec_prefix+set}" = set; then
1563 withval="$with_gtk_exec_prefix"
1564 gtk_config_exec_prefix="$withval"
1565else
1566 gtk_config_exec_prefix=""
1567fi
1568
1569
1570
b12915c1 1571 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
9b33fe02 1572echo "configure:1573: checking "for --with-libpng"" >&5
10f2d63a 1573 no_cache=0
b12915c1
VZ
1574 # Check whether --with-libpng or --without-libpng was given.
1575if test "${with_libpng+set}" = set; then
1576 withval="$with_libpng"
10f2d63a
VZ
1577
1578 if test "$withval" = yes; then
b12915c1 1579 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
10f2d63a 1580 else
b12915c1 1581 ac_cv_use_libpng='wxUSE_LIBPNG=no'
10f2d63a
VZ
1582 fi
1583
1584else
1585
b12915c1 1586 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1587 if test "x$LINE" != x ; then
1588 eval "DEFAULT_$LINE"
1589 else
1590 no_cache=1
1591 fi
1592
b12915c1 1593 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1594
1595fi
1596
1597
b12915c1 1598 eval "$ac_cv_use_libpng"
10f2d63a 1599 if test "$no_cache" != 1; then
b12915c1 1600 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1601 fi
1602
b12915c1 1603 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a
VZ
1604 echo "$ac_t""yes" 1>&6
1605 else
1606 echo "$ac_t""no" 1>&6
1607 fi
1608
1609
b12915c1 1610 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
9b33fe02 1611echo "configure:1612: checking "for --with-libjpeg"" >&5
10f2d63a 1612 no_cache=0
b12915c1
VZ
1613 # Check whether --with-libjpeg or --without-libjpeg was given.
1614if test "${with_libjpeg+set}" = set; then
1615 withval="$with_libjpeg"
10f2d63a
VZ
1616
1617 if test "$withval" = yes; then
b12915c1 1618 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
10f2d63a 1619 else
b12915c1 1620 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
10f2d63a
VZ
1621 fi
1622
1623else
1624
b12915c1 1625 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1626 if test "x$LINE" != x ; then
1627 eval "DEFAULT_$LINE"
1628 else
1629 no_cache=1
1630 fi
1631
b12915c1 1632 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1633
1634fi
1635
1636
b12915c1 1637 eval "$ac_cv_use_libjpeg"
10f2d63a 1638 if test "$no_cache" != 1; then
b12915c1 1639 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1640 fi
1641
b12915c1 1642 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a
VZ
1643 echo "$ac_t""yes" 1>&6
1644 else
1645 echo "$ac_t""no" 1>&6
1646 fi
1647
1648
b12915c1 1649 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
9b33fe02 1650echo "configure:1651: checking "for --with-libtiff"" >&5
10f2d63a 1651 no_cache=0
b12915c1
VZ
1652 # Check whether --with-libtiff or --without-libtiff was given.
1653if test "${with_libtiff+set}" = set; then
1654 withval="$with_libtiff"
10f2d63a
VZ
1655
1656 if test "$withval" = yes; then
b12915c1 1657 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
10f2d63a 1658 else
b12915c1 1659 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
10f2d63a
VZ
1660 fi
1661
1662else
1663
b12915c1 1664 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1665 if test "x$LINE" != x ; then
1666 eval "DEFAULT_$LINE"
1667 else
1668 no_cache=1
1669 fi
1670
b12915c1 1671 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1672
1673fi
1674
1675
b12915c1 1676 eval "$ac_cv_use_libtiff"
10f2d63a 1677 if test "$no_cache" != 1; then
b12915c1 1678 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1679 fi
1680
b12915c1 1681 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a
VZ
1682 echo "$ac_t""yes" 1>&6
1683 else
1684 echo "$ac_t""no" 1>&6
1685 fi
1686
1687
b12915c1 1688 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
9b33fe02 1689echo "configure:1690: checking "for --with-opengl"" >&5
10f2d63a 1690 no_cache=0
b12915c1
VZ
1691 # Check whether --with-opengl or --without-opengl was given.
1692if test "${with_opengl+set}" = set; then
1693 withval="$with_opengl"
10f2d63a
VZ
1694
1695 if test "$withval" = yes; then
b12915c1 1696 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1697 else
b12915c1 1698 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1699 fi
1700
1701else
1702
b12915c1 1703 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1704 if test "x$LINE" != x ; then
1705 eval "DEFAULT_$LINE"
1706 else
1707 no_cache=1
1708 fi
1709
b12915c1 1710 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1711
1712fi
1713
1714
b12915c1 1715 eval "$ac_cv_use_opengl"
10f2d63a 1716 if test "$no_cache" != 1; then
b12915c1 1717 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1718 fi
1719
b12915c1 1720 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1721 echo "$ac_t""yes" 1>&6
1722 else
1723 echo "$ac_t""no" 1>&6
1724 fi
1725
1726
b12915c1
VZ
1727fi
1728
1729
1730 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
9b33fe02 1731echo "configure:1732: checking "for --with-dmalloc"" >&5
c7a2bf27 1732 no_cache=0
b12915c1
VZ
1733 # Check whether --with-dmalloc or --without-dmalloc was given.
1734if test "${with_dmalloc+set}" = set; then
1735 withval="$with_dmalloc"
c7a2bf27
RR
1736
1737 if test "$withval" = yes; then
b12915c1 1738 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1739 else
b12915c1 1740 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1741 fi
1742
1743else
1744
b12915c1 1745 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1746 if test "x$LINE" != x ; then
1747 eval "DEFAULT_$LINE"
1748 else
1749 no_cache=1
1750 fi
1751
b12915c1 1752 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1753
1754fi
1755
1756
b12915c1 1757 eval "$ac_cv_use_dmalloc"
c7a2bf27 1758 if test "$no_cache" != 1; then
b12915c1 1759 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1760 fi
1761
b12915c1 1762 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1763 echo "$ac_t""yes" 1>&6
1764 else
1765 echo "$ac_t""no" 1>&6
1766 fi
1767
1768
b12915c1 1769 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
9b33fe02 1770echo "configure:1771: checking "for --with-zlib"" >&5
10f2d63a 1771 no_cache=0
b12915c1
VZ
1772 # Check whether --with-zlib or --without-zlib was given.
1773if test "${with_zlib+set}" = set; then
1774 withval="$with_zlib"
10f2d63a
VZ
1775
1776 if test "$withval" = yes; then
b12915c1 1777 ac_cv_use_zlib='wxUSE_ZLIB=yes'
10f2d63a 1778 else
b12915c1 1779 ac_cv_use_zlib='wxUSE_ZLIB=no'
10f2d63a
VZ
1780 fi
1781
1782else
1783
b12915c1 1784 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1785 if test "x$LINE" != x ; then
1786 eval "DEFAULT_$LINE"
1787 else
1788 no_cache=1
1789 fi
1790
b12915c1 1791 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1792
1793fi
1794
1795
b12915c1 1796 eval "$ac_cv_use_zlib"
10f2d63a 1797 if test "$no_cache" != 1; then
b12915c1 1798 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1799 fi
1800
b12915c1 1801 if test "$wxUSE_ZLIB" = yes; then
10f2d63a
VZ
1802 echo "$ac_t""yes" 1>&6
1803 else
1804 echo "$ac_t""no" 1>&6
1805 fi
1806
1807
1808 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
9b33fe02 1809echo "configure:1810: checking "for --with-odbc"" >&5
10f2d63a
VZ
1810 no_cache=0
1811 # Check whether --with-odbc or --without-odbc was given.
1812if test "${with_odbc+set}" = set; then
1813 withval="$with_odbc"
1814
1815 if test "$withval" = yes; then
1816 ac_cv_use_odbc='wxUSE_ODBC=yes'
1817 else
1818 ac_cv_use_odbc='wxUSE_ODBC=no'
1819 fi
1820
1821else
1822
1823 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1824 if test "x$LINE" != x ; then
1825 eval "DEFAULT_$LINE"
1826 else
1827 no_cache=1
1828 fi
1829
1830 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1831
1832fi
1833
1834
1835 eval "$ac_cv_use_odbc"
1836 if test "$no_cache" != 1; then
1837 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1838 fi
1839
1840 if test "$wxUSE_ODBC" = yes; then
1841 echo "$ac_t""yes" 1>&6
1842 else
1843 echo "$ac_t""no" 1>&6
1844 fi
1845
1846
1847
1848
1849
1850 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
9b33fe02 1851echo "configure:1852: checking "for --enable-shared"" >&5
10f2d63a
VZ
1852 no_cache=0
1853 # Check whether --enable-shared or --disable-shared was given.
1854if test "${enable_shared+set}" = set; then
1855 enableval="$enable_shared"
1856
1857 if test "$enableval" = yes; then
1858 ac_cv_use_shared='wxUSE_SHARED=yes'
1859 else
1860 ac_cv_use_shared='wxUSE_SHARED=no'
1861 fi
1862
1863else
1864
1865 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1866 if test "x$LINE" != x ; then
1867 eval "DEFAULT_$LINE"
1868 else
1869 no_cache=1
1870 fi
1871
1872 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1873
1874fi
1875
1876
1877 eval "$ac_cv_use_shared"
1878 if test "$no_cache" != 1; then
1879 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1880 fi
1881
1882 if test "$wxUSE_SHARED" = yes; then
1883 echo "$ac_t""yes" 1>&6
1884 else
1885 echo "$ac_t""no" 1>&6
1886 fi
1887
1888
1889 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
9b33fe02 1890echo "configure:1891: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1891 no_cache=0
1892 # Check whether --enable-optimise or --disable-optimise was given.
1893if test "${enable_optimise+set}" = set; then
1894 enableval="$enable_optimise"
1895
1896 if test "$enableval" = yes; then
1897 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1898 else
1899 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1900 fi
1901
1902else
1903
1904 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1905 if test "x$LINE" != x ; then
1906 eval "DEFAULT_$LINE"
1907 else
1908 no_cache=1
1909 fi
1910
1911 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1912
1913fi
1914
1915
1916 eval "$ac_cv_use_optimise"
1917 if test "$no_cache" != 1; then
1918 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1919 fi
1920
1921 if test "$wxUSE_OPTIMISE" = yes; then
1922 echo "$ac_t""yes" 1>&6
1923 else
1924 echo "$ac_t""no" 1>&6
1925 fi
1926
1927
1928 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
9b33fe02 1929echo "configure:1930: checking "for --enable-debug"" >&5
10f2d63a
VZ
1930 no_cache=0
1931 # Check whether --enable-debug or --disable-debug was given.
1932if test "${enable_debug+set}" = set; then
1933 enableval="$enable_debug"
1934
1935 if test "$enableval" = yes; then
1936 ac_cv_use_debug='wxUSE_DEBUG=yes'
1937 else
1938 ac_cv_use_debug='wxUSE_DEBUG=no'
1939 fi
1940
1941else
1942
1943 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1944 if test "x$LINE" != x ; then
1945 eval "DEFAULT_$LINE"
1946 else
1947 no_cache=1
1948 fi
1949
1950 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1951
1952fi
1953
1954
1955 eval "$ac_cv_use_debug"
1956 if test "$no_cache" != 1; then
1957 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1958 fi
1959
1960 if test "$wxUSE_DEBUG" = yes; then
1961 echo "$ac_t""yes" 1>&6
1962 else
1963 echo "$ac_t""no" 1>&6
1964 fi
1965
1966
1967if test "$wxUSE_DEBUG" = "yes"; then
1968 DEFAULT_wxUSE_DEBUG_FLAG=yes
1969 DEFAULT_wxUSE_DEBUG_INFO=yes
1970elif test "$wxUSE_DEBUG" = "no"; then
1971 DEFAULT_wxUSE_DEBUG_FLAG=no
1972 DEFAULT_wxUSE_DEBUG_INFO=no
1973fi
1974
1975
1976 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
9b33fe02 1977echo "configure:1978: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
1978 no_cache=0
1979 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1980if test "${enable_debug_flag+set}" = set; then
1981 enableval="$enable_debug_flag"
1982
1983 if test "$enableval" = yes; then
1984 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1985 else
1986 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1987 fi
1988
1989else
1990
1991 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1992 if test "x$LINE" != x ; then
1993 eval "DEFAULT_$LINE"
1994 else
1995 no_cache=1
1996 fi
1997
1998 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
1999
2000fi
2001
2002
2003 eval "$ac_cv_use_debug_flag"
2004 if test "$no_cache" != 1; then
2005 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2006 fi
2007
2008 if test "$wxUSE_DEBUG_FLAG" = yes; then
2009 echo "$ac_t""yes" 1>&6
2010 else
2011 echo "$ac_t""no" 1>&6
2012 fi
2013
2014
2015 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
9b33fe02 2016echo "configure:2017: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2017 no_cache=0
2018 # Check whether --enable-debug_info or --disable-debug_info was given.
2019if test "${enable_debug_info+set}" = set; then
2020 enableval="$enable_debug_info"
2021
2022 if test "$enableval" = yes; then
2023 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2024 else
2025 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2026 fi
2027
2028else
2029
2030 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2031 if test "x$LINE" != x ; then
2032 eval "DEFAULT_$LINE"
2033 else
2034 no_cache=1
2035 fi
2036
2037 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2038
2039fi
2040
2041
2042 eval "$ac_cv_use_debug_info"
2043 if test "$no_cache" != 1; then
2044 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2045 fi
2046
2047 if test "$wxUSE_DEBUG_INFO" = yes; then
2048 echo "$ac_t""yes" 1>&6
2049 else
2050 echo "$ac_t""no" 1>&6
2051 fi
2052
2053
2054 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
9b33fe02 2055echo "configure:2056: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2056 no_cache=0
2057 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2058if test "${enable_debug_gdb+set}" = set; then
2059 enableval="$enable_debug_gdb"
2060
2061 if test "$enableval" = yes; then
2062 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2063 else
2064 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2065 fi
2066
2067else
2068
2069 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2070 if test "x$LINE" != x ; then
2071 eval "DEFAULT_$LINE"
2072 else
2073 no_cache=1
2074 fi
2075
2076 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2077
2078fi
2079
2080
2081 eval "$ac_cv_use_debug_gdb"
2082 if test "$no_cache" != 1; then
2083 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2084 fi
2085
2086 if test "$wxUSE_DEBUG_GDB" = yes; then
2087 echo "$ac_t""yes" 1>&6
2088 else
2089 echo "$ac_t""no" 1>&6
2090 fi
2091
2092
2093 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
9b33fe02 2094echo "configure:2095: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2095 no_cache=0
2096 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2097if test "${enable_debug_cntxt+set}" = set; then
2098 enableval="$enable_debug_cntxt"
2099
2100 if test "$enableval" = yes; then
2101 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2102 else
2103 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2104 fi
2105
2106else
2107
2108 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2109 if test "x$LINE" != x ; then
2110 eval "DEFAULT_$LINE"
2111 else
2112 no_cache=1
2113 fi
2114
2115 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2116
2117fi
2118
2119
2120 eval "$ac_cv_use_debug_cntxt"
2121 if test "$no_cache" != 1; then
2122 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2123 fi
2124
2125 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2126 echo "$ac_t""yes" 1>&6
2127 else
2128 echo "$ac_t""no" 1>&6
2129 fi
2130
2131
2132 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
9b33fe02 2133echo "configure:2134: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2134 no_cache=0
2135 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2136if test "${enable_mem_tracing+set}" = set; then
2137 enableval="$enable_mem_tracing"
2138
2139 if test "$enableval" = yes; then
2140 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2141 else
2142 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2143 fi
2144
2145else
2146
2147 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2148 if test "x$LINE" != x ; then
2149 eval "DEFAULT_$LINE"
2150 else
2151 no_cache=1
2152 fi
2153
2154 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2155
2156fi
2157
2158
2159 eval "$ac_cv_use_mem_tracing"
2160 if test "$no_cache" != 1; then
2161 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2162 fi
2163
2164 if test "$wxUSE_MEM_TRACING" = yes; then
2165 echo "$ac_t""yes" 1>&6
2166 else
2167 echo "$ac_t""no" 1>&6
2168 fi
2169
2170
2171 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
9b33fe02 2172echo "configure:2173: checking "for --enable-profile"" >&5
10f2d63a
VZ
2173 no_cache=0
2174 # Check whether --enable-profile or --disable-profile was given.
2175if test "${enable_profile+set}" = set; then
2176 enableval="$enable_profile"
2177
2178 if test "$enableval" = yes; then
2179 ac_cv_use_profile='wxUSE_PROFILE=yes'
2180 else
2181 ac_cv_use_profile='wxUSE_PROFILE=no'
2182 fi
2183
2184else
2185
2186 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2187 if test "x$LINE" != x ; then
2188 eval "DEFAULT_$LINE"
2189 else
2190 no_cache=1
2191 fi
2192
2193 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2194
2195fi
2196
2197
2198 eval "$ac_cv_use_profile"
2199 if test "$no_cache" != 1; then
2200 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2201 fi
2202
2203 if test "$wxUSE_PROFILE" = yes; then
2204 echo "$ac_t""yes" 1>&6
2205 else
2206 echo "$ac_t""no" 1>&6
2207 fi
2208
2209
2210 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
9b33fe02 2211echo "configure:2212: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2212 no_cache=0
2213 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2214if test "${enable_no_rtti+set}" = set; then
2215 enableval="$enable_no_rtti"
2216
2217 if test "$enableval" = yes; then
2218 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2219 else
2220 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2221 fi
2222
2223else
2224
2225 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2226 if test "x$LINE" != x ; then
2227 eval "DEFAULT_$LINE"
2228 else
2229 no_cache=1
2230 fi
2231
2232 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2233
2234fi
2235
2236
2237 eval "$ac_cv_use_no_rtti"
2238 if test "$no_cache" != 1; then
2239 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2240 fi
2241
2242 if test "$wxUSE_NO_RTTI" = yes; then
2243 echo "$ac_t""yes" 1>&6
2244 else
2245 echo "$ac_t""no" 1>&6
2246 fi
2247
2248
2249 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
9b33fe02 2250echo "configure:2251: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2251 no_cache=0
2252 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2253if test "${enable_no_exceptions+set}" = set; then
2254 enableval="$enable_no_exceptions"
2255
2256 if test "$enableval" = yes; then
2257 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2258 else
2259 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2260 fi
2261
2262else
2263
2264 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2265 if test "x$LINE" != x ; then
2266 eval "DEFAULT_$LINE"
2267 else
2268 no_cache=1
2269 fi
2270
2271 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2272
2273fi
2274
2275
2276 eval "$ac_cv_use_no_exceptions"
2277 if test "$no_cache" != 1; then
2278 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2279 fi
2280
2281 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2282 echo "$ac_t""yes" 1>&6
2283 else
2284 echo "$ac_t""no" 1>&6
2285 fi
2286
2287
2288 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
9b33fe02 2289echo "configure:2290: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2290 no_cache=0
2291 # Check whether --enable-permissive or --disable-permissive was given.
2292if test "${enable_permissive+set}" = set; then
2293 enableval="$enable_permissive"
2294
2295 if test "$enableval" = yes; then
2296 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2297 else
2298 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2299 fi
2300
2301else
2302
2303 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2304 if test "x$LINE" != x ; then
2305 eval "DEFAULT_$LINE"
2306 else
2307 no_cache=1
2308 fi
2309
2310 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2311
2312fi
2313
2314
2315 eval "$ac_cv_use_permissive"
2316 if test "$no_cache" != 1; then
2317 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2318 fi
2319
2320 if test "$wxUSE_PERMISSIVE" = yes; then
2321 echo "$ac_t""yes" 1>&6
2322 else
2323 echo "$ac_t""no" 1>&6
2324 fi
2325
2326
2327 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
9b33fe02 2328echo "configure:2329: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2329 no_cache=0
2330 # Check whether --enable-no_deps or --disable-no_deps was given.
2331if test "${enable_no_deps+set}" = set; then
2332 enableval="$enable_no_deps"
2333
2334 if test "$enableval" = yes; then
2335 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2336 else
2337 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2338 fi
2339
2340else
2341
2342 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2343 if test "x$LINE" != x ; then
2344 eval "DEFAULT_$LINE"
2345 else
2346 no_cache=1
2347 fi
2348
2349 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2350
2351fi
2352
2353
2354 eval "$ac_cv_use_no_deps"
2355 if test "$no_cache" != 1; then
2356 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2357 fi
2358
2359 if test "$wxUSE_NO_DEPS" = yes; then
2360 echo "$ac_t""yes" 1>&6
2361 else
2362 echo "$ac_t""no" 1>&6
2363 fi
2364
2365
2366
2367
2368 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
9b33fe02 2369echo "configure:2370: checking "for --enable-intl"" >&5
10f2d63a
VZ
2370 no_cache=0
2371 # Check whether --enable-intl or --disable-intl was given.
2372if test "${enable_intl+set}" = set; then
2373 enableval="$enable_intl"
2374
2375 if test "$enableval" = yes; then
2376 ac_cv_use_intl='wxUSE_INTL=yes'
2377 else
2378 ac_cv_use_intl='wxUSE_INTL=no'
2379 fi
2380
2381else
2382
2383 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2384 if test "x$LINE" != x ; then
2385 eval "DEFAULT_$LINE"
2386 else
2387 no_cache=1
2388 fi
2389
2390 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2391
2392fi
2393
2394
2395 eval "$ac_cv_use_intl"
2396 if test "$no_cache" != 1; then
2397 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2398 fi
2399
2400 if test "$wxUSE_INTL" = yes; then
2401 echo "$ac_t""yes" 1>&6
2402 else
2403 echo "$ac_t""no" 1>&6
2404 fi
2405
2406
2407 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
9b33fe02 2408echo "configure:2409: checking "for --enable-config"" >&5
10f2d63a
VZ
2409 no_cache=0
2410 # Check whether --enable-config or --disable-config was given.
2411if test "${enable_config+set}" = set; then
2412 enableval="$enable_config"
2413
2414 if test "$enableval" = yes; then
2415 ac_cv_use_config='wxUSE_CONFIG=yes'
2416 else
2417 ac_cv_use_config='wxUSE_CONFIG=no'
2418 fi
2419
2420else
2421
2422 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2423 if test "x$LINE" != x ; then
2424 eval "DEFAULT_$LINE"
2425 else
2426 no_cache=1
2427 fi
2428
2429 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2430
2431fi
2432
2433
2434 eval "$ac_cv_use_config"
2435 if test "$no_cache" != 1; then
2436 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2437 fi
2438
2439 if test "$wxUSE_CONFIG" = yes; then
2440 echo "$ac_t""yes" 1>&6
2441 else
2442 echo "$ac_t""no" 1>&6
2443 fi
2444
2445
b12915c1
VZ
2446if test "$wxUSE_GUI" = "yes"; then
2447
10f2d63a 2448 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
9b33fe02 2449echo "configure:2450: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2450 no_cache=0
2451 # Check whether --enable-sockets or --disable-sockets was given.
2452if test "${enable_sockets+set}" = set; then
2453 enableval="$enable_sockets"
2454
2455 if test "$enableval" = yes; then
2456 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2457 else
2458 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2459 fi
2460
2461else
2462
2463 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2464 if test "x$LINE" != x ; then
2465 eval "DEFAULT_$LINE"
2466 else
2467 no_cache=1
2468 fi
2469
2470 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2471
2472fi
2473
2474
2475 eval "$ac_cv_use_sockets"
2476 if test "$no_cache" != 1; then
2477 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2478 fi
2479
2480 if test "$wxUSE_SOCKETS" = yes; then
2481 echo "$ac_t""yes" 1>&6
2482 else
2483 echo "$ac_t""no" 1>&6
2484 fi
2485
b12915c1
VZ
2486else
2487wxUSE_SOCKETS=no
2488fi
2489
10f2d63a
VZ
2490
2491 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
9b33fe02 2492echo "configure:2493: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2493 no_cache=0
2494 # Check whether --enable-dialupman or --disable-dialupman was given.
2495if test "${enable_dialupman+set}" = set; then
2496 enableval="$enable_dialupman"
2497
2498 if test "$enableval" = yes; then
2499 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2500 else
2501 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2502 fi
2503
2504else
2505
2506 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2507 if test "x$LINE" != x ; then
2508 eval "DEFAULT_$LINE"
2509 else
2510 no_cache=1
2511 fi
2512
2513 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2514
2515fi
2516
2517
2518 eval "$ac_cv_use_dialupman"
2519 if test "$no_cache" != 1; then
2520 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2521 fi
2522
2523 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2524 echo "$ac_t""yes" 1>&6
2525 else
2526 echo "$ac_t""no" 1>&6
2527 fi
2528
2529
2530 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
9b33fe02 2531echo "configure:2532: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2532 no_cache=0
2533 # Check whether --enable-ipc or --disable-ipc was given.
2534if test "${enable_ipc+set}" = set; then
2535 enableval="$enable_ipc"
2536
2537 if test "$enableval" = yes; then
2538 ac_cv_use_ipc='wxUSE_IPC=yes'
2539 else
2540 ac_cv_use_ipc='wxUSE_IPC=no'
2541 fi
2542
2543else
2544
2545 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2546 if test "x$LINE" != x ; then
2547 eval "DEFAULT_$LINE"
2548 else
2549 no_cache=1
2550 fi
2551
2552 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2553
2554fi
2555
2556
2557 eval "$ac_cv_use_ipc"
2558 if test "$no_cache" != 1; then
2559 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2560 fi
2561
2562 if test "$wxUSE_IPC" = yes; then
2563 echo "$ac_t""yes" 1>&6
2564 else
2565 echo "$ac_t""no" 1>&6
2566 fi
2567
2568
2569 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
9b33fe02 2570echo "configure:2571: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2571 no_cache=0
2572 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2573if test "${enable_apple_ieee+set}" = set; then
2574 enableval="$enable_apple_ieee"
2575
2576 if test "$enableval" = yes; then
2577 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2578 else
2579 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2580 fi
2581
2582else
2583
2584 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2585 if test "x$LINE" != x ; then
2586 eval "DEFAULT_$LINE"
2587 else
2588 no_cache=1
2589 fi
2590
2591 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2592
2593fi
2594
2595
2596 eval "$ac_cv_use_apple_ieee"
2597 if test "$no_cache" != 1; then
2598 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2599 fi
2600
2601 if test "$wxUSE_APPLE_IEEE" = yes; then
2602 echo "$ac_t""yes" 1>&6
2603 else
2604 echo "$ac_t""no" 1>&6
2605 fi
2606
2607
2608 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
9b33fe02 2609echo "configure:2610: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2610 no_cache=0
2611 # Check whether --enable-timedate or --disable-timedate was given.
2612if test "${enable_timedate+set}" = set; then
2613 enableval="$enable_timedate"
2614
2615 if test "$enableval" = yes; then
2616 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2617 else
2618 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2619 fi
2620
2621else
2622
2623 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2624 if test "x$LINE" != x ; then
2625 eval "DEFAULT_$LINE"
2626 else
2627 no_cache=1
2628 fi
2629
2630 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2631
2632fi
2633
2634
2635 eval "$ac_cv_use_timedate"
2636 if test "$no_cache" != 1; then
2637 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2638 fi
2639
2640 if test "$wxUSE_TIMEDATE" = yes; then
2641 echo "$ac_t""yes" 1>&6
2642 else
2643 echo "$ac_t""no" 1>&6
2644 fi
2645
2646
2647 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
9b33fe02 2648echo "configure:2649: checking "for --enable-wave"" >&5
10f2d63a
VZ
2649 no_cache=0
2650 # Check whether --enable-wave or --disable-wave was given.
2651if test "${enable_wave+set}" = set; then
2652 enableval="$enable_wave"
2653
2654 if test "$enableval" = yes; then
2655 ac_cv_use_wave='wxUSE_WAVE=yes'
2656 else
2657 ac_cv_use_wave='wxUSE_WAVE=no'
2658 fi
2659
2660else
2661
2662 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2663 if test "x$LINE" != x ; then
2664 eval "DEFAULT_$LINE"
2665 else
2666 no_cache=1
2667 fi
2668
2669 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2670
2671fi
2672
2673
2674 eval "$ac_cv_use_wave"
2675 if test "$no_cache" != 1; then
2676 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2677 fi
2678
2679 if test "$wxUSE_WAVE" = yes; then
2680 echo "$ac_t""yes" 1>&6
2681 else
2682 echo "$ac_t""no" 1>&6
2683 fi
2684
2685
2686 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
9b33fe02 2687echo "configure:2688: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2688 no_cache=0
2689 # Check whether --enable-fraction or --disable-fraction was given.
2690if test "${enable_fraction+set}" = set; then
2691 enableval="$enable_fraction"
2692
2693 if test "$enableval" = yes; then
2694 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2695 else
2696 ac_cv_use_fraction='wxUSE_FRACTION=no'
2697 fi
2698
2699else
2700
2701 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2702 if test "x$LINE" != x ; then
2703 eval "DEFAULT_$LINE"
2704 else
2705 no_cache=1
2706 fi
2707
2708 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2709
2710fi
2711
2712
2713 eval "$ac_cv_use_fraction"
2714 if test "$no_cache" != 1; then
2715 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2716 fi
2717
2718 if test "$wxUSE_FRACTION" = yes; then
2719 echo "$ac_t""yes" 1>&6
2720 else
2721 echo "$ac_t""no" 1>&6
2722 fi
2723
2724
2725 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
9b33fe02 2726echo "configure:2727: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2727 no_cache=0
2728 # Check whether --enable-dynlib or --disable-dynlib was given.
2729if test "${enable_dynlib+set}" = set; then
2730 enableval="$enable_dynlib"
2731
2732 if test "$enableval" = yes; then
2733 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2734 else
2735 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2736 fi
2737
2738else
2739
2740 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2741 if test "x$LINE" != x ; then
2742 eval "DEFAULT_$LINE"
2743 else
2744 no_cache=1
2745 fi
2746
2747 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2748
2749fi
2750
2751
2752 eval "$ac_cv_use_dynlib"
2753 if test "$no_cache" != 1; then
2754 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2755 fi
2756
2757 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2758 echo "$ac_t""yes" 1>&6
2759 else
2760 echo "$ac_t""no" 1>&6
2761 fi
2762
2763
2764 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
9b33fe02 2765echo "configure:2766: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2766 no_cache=0
2767 # Check whether --enable-longlong or --disable-longlong was given.
2768if test "${enable_longlong+set}" = set; then
2769 enableval="$enable_longlong"
2770
2771 if test "$enableval" = yes; then
2772 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2773 else
2774 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2775 fi
2776
2777else
2778
2779 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2780 if test "x$LINE" != x ; then
2781 eval "DEFAULT_$LINE"
2782 else
2783 no_cache=1
2784 fi
2785
2786 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2787
2788fi
2789
2790
2791 eval "$ac_cv_use_longlong"
2792 if test "$no_cache" != 1; then
2793 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2794 fi
2795
2796 if test "$wxUSE_LONGLONG" = yes; then
2797 echo "$ac_t""yes" 1>&6
2798 else
2799 echo "$ac_t""no" 1>&6
2800 fi
2801
2802
2803 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
9b33fe02 2804echo "configure:2805: checking "for --enable-log"" >&5
10f2d63a
VZ
2805 no_cache=0
2806 # Check whether --enable-log or --disable-log was given.
2807if test "${enable_log+set}" = set; then
2808 enableval="$enable_log"
2809
2810 if test "$enableval" = yes; then
2811 ac_cv_use_log='wxUSE_LOG=yes'
2812 else
2813 ac_cv_use_log='wxUSE_LOG=no'
2814 fi
2815
2816else
2817
2818 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2819 if test "x$LINE" != x ; then
2820 eval "DEFAULT_$LINE"
2821 else
2822 no_cache=1
2823 fi
2824
2825 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2826
2827fi
2828
2829
2830 eval "$ac_cv_use_log"
2831 if test "$no_cache" != 1; then
2832 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2833 fi
2834
2835 if test "$wxUSE_LOG" = yes; then
2836 echo "$ac_t""yes" 1>&6
2837 else
2838 echo "$ac_t""no" 1>&6
2839 fi
2840
2841
2842 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
9b33fe02 2843echo "configure:2844: checking "for --enable-streams"" >&5
10f2d63a
VZ
2844 no_cache=0
2845 # Check whether --enable-streams or --disable-streams was given.
2846if test "${enable_streams+set}" = set; then
2847 enableval="$enable_streams"
2848
2849 if test "$enableval" = yes; then
2850 ac_cv_use_streams='wxUSE_STREAMS=yes'
2851 else
2852 ac_cv_use_streams='wxUSE_STREAMS=no'
2853 fi
2854
2855else
2856
2857 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2858 if test "x$LINE" != x ; then
2859 eval "DEFAULT_$LINE"
2860 else
2861 no_cache=1
2862 fi
2863
2864 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2865
2866fi
2867
2868
2869 eval "$ac_cv_use_streams"
2870 if test "$no_cache" != 1; then
2871 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2872 fi
2873
2874 if test "$wxUSE_STREAMS" = yes; then
2875 echo "$ac_t""yes" 1>&6
2876 else
2877 echo "$ac_t""no" 1>&6
2878 fi
2879
2880
2881 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
9b33fe02 2882echo "configure:2883: checking "for --enable-file"" >&5
10f2d63a
VZ
2883 no_cache=0
2884 # Check whether --enable-file or --disable-file was given.
2885if test "${enable_file+set}" = set; then
2886 enableval="$enable_file"
2887
2888 if test "$enableval" = yes; then
2889 ac_cv_use_file='wxUSE_FILE=yes'
2890 else
2891 ac_cv_use_file='wxUSE_FILE=no'
2892 fi
2893
2894else
2895
2896 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2897 if test "x$LINE" != x ; then
2898 eval "DEFAULT_$LINE"
2899 else
2900 no_cache=1
2901 fi
2902
2903 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2904
2905fi
2906
2907
2908 eval "$ac_cv_use_file"
2909 if test "$no_cache" != 1; then
2910 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2911 fi
2912
2913 if test "$wxUSE_FILE" = yes; then
2914 echo "$ac_t""yes" 1>&6
2915 else
2916 echo "$ac_t""no" 1>&6
2917 fi
2918
2919
2920 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
9b33fe02 2921echo "configure:2922: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2922 no_cache=0
2923 # Check whether --enable-textfile or --disable-textfile was given.
2924if test "${enable_textfile+set}" = set; then
2925 enableval="$enable_textfile"
2926
2927 if test "$enableval" = yes; then
2928 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2929 else
2930 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2931 fi
2932
2933else
2934
2935 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2936 if test "x$LINE" != x ; then
2937 eval "DEFAULT_$LINE"
2938 else
2939 no_cache=1
2940 fi
2941
2942 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2943
2944fi
2945
2946
2947 eval "$ac_cv_use_textfile"
2948 if test "$no_cache" != 1; then
2949 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2950 fi
2951
2952 if test "$wxUSE_TEXTFILE" = yes; then
2953 echo "$ac_t""yes" 1>&6
2954 else
2955 echo "$ac_t""no" 1>&6
2956 fi
2957
2958
2959 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
9b33fe02 2960echo "configure:2961: checking "for --enable-unicode"" >&5
10f2d63a
VZ
2961 no_cache=0
2962 # Check whether --enable-unicode or --disable-unicode was given.
2963if test "${enable_unicode+set}" = set; then
2964 enableval="$enable_unicode"
2965
2966 if test "$enableval" = yes; then
2967 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2968 else
2969 ac_cv_use_unicode='wxUSE_UNICODE=no'
2970 fi
2971
2972else
2973
2974 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2975 if test "x$LINE" != x ; then
2976 eval "DEFAULT_$LINE"
2977 else
2978 no_cache=1
2979 fi
2980
2981 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2982
2983fi
2984
2985
2986 eval "$ac_cv_use_unicode"
2987 if test "$no_cache" != 1; then
2988 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2989 fi
2990
2991 if test "$wxUSE_UNICODE" = yes; then
2992 echo "$ac_t""yes" 1>&6
2993 else
2994 echo "$ac_t""no" 1>&6
2995 fi
2996
2997
2998 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
9b33fe02 2999echo "configure:3000: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3000 no_cache=0
3001 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3002if test "${enable_wcsrtombs+set}" = set; then
3003 enableval="$enable_wcsrtombs"
3004
3005 if test "$enableval" = yes; then
3006 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3007 else
3008 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3009 fi
3010
3011else
3012
3013 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3014 if test "x$LINE" != x ; then
3015 eval "DEFAULT_$LINE"
3016 else
3017 no_cache=1
3018 fi
3019
3020 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3021
3022fi
3023
3024
3025 eval "$ac_cv_use_wcsrtombs"
3026 if test "$no_cache" != 1; then
3027 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3028 fi
3029
3030 if test "$wxUSE_WCSRTOMBS" = yes; then
3031 echo "$ac_t""yes" 1>&6
3032 else
3033 echo "$ac_t""no" 1>&6
3034 fi
3035
3036
3037 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
9b33fe02 3038echo "configure:3039: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3039 no_cache=0
3040 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3041if test "${enable_wxprintfv+set}" = set; then
3042 enableval="$enable_wxprintfv"
3043
3044 if test "$enableval" = yes; then
3045 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3046 else
3047 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3048 fi
3049
3050else
3051
3052 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3053 if test "x$LINE" != x ; then
3054 eval "DEFAULT_$LINE"
3055 else
3056 no_cache=1
3057 fi
3058
3059 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3060
3061fi
3062
3063
3064 eval "$ac_cv_use_wxprintfv"
3065 if test "$no_cache" != 1; then
3066 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3067 fi
3068
3069 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3070 echo "$ac_t""yes" 1>&6
3071 else
3072 echo "$ac_t""no" 1>&6
3073 fi
3074
3075
3076 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
9b33fe02 3077echo "configure:3078: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3078 no_cache=0
3079 # Check whether --enable-joystick or --disable-joystick was given.
3080if test "${enable_joystick+set}" = set; then
3081 enableval="$enable_joystick"
3082
3083 if test "$enableval" = yes; then
3084 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3085 else
3086 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3087 fi
3088
3089else
3090
3091 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3092 if test "x$LINE" != x ; then
3093 eval "DEFAULT_$LINE"
3094 else
3095 no_cache=1
3096 fi
3097
3098 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3099
3100fi
3101
3102
3103 eval "$ac_cv_use_joystick"
3104 if test "$no_cache" != 1; then
3105 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3106 fi
3107
3108 if test "$wxUSE_JOYSTICK" = yes; then
3109 echo "$ac_t""yes" 1>&6
3110 else
3111 echo "$ac_t""no" 1>&6
3112 fi
3113
3114
3115 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
9b33fe02 3116echo "configure:3117: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3117 no_cache=0
3118 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3119if test "${enable_std_iostreams+set}" = set; then
3120 enableval="$enable_std_iostreams"
3121
3122 if test "$enableval" = yes; then
3123 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3124 else
3125 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3126 fi
3127
3128else
3129
3130 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3131 if test "x$LINE" != x ; then
3132 eval "DEFAULT_$LINE"
3133 else
3134 no_cache=1
3135 fi
3136
3137 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3138
3139fi
3140
3141
3142 eval "$ac_cv_use_std_iostreams"
3143 if test "$no_cache" != 1; then
3144 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3145 fi
3146
3147 if test "$wxUSE_STD_IOSTREAM" = yes; then
3148 echo "$ac_t""yes" 1>&6
3149 else
3150 echo "$ac_t""no" 1>&6
3151 fi
3152
3153
3154 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
9b33fe02 3155echo "configure:3156: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3156 no_cache=0
3157 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3158if test "${enable_fs_inet+set}" = set; then
3159 enableval="$enable_fs_inet"
3160
3161 if test "$enableval" = yes; then
3162 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3163 else
3164 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3165 fi
3166
3167else
3168
3169 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3170 if test "x$LINE" != x ; then
3171 eval "DEFAULT_$LINE"
3172 else
3173 no_cache=1
3174 fi
3175
3176 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3177
3178fi
3179
3180
3181 eval "$ac_cv_use_fs_inet"
3182 if test "$no_cache" != 1; then
3183 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3184 fi
3185
3186 if test "$wxUSE_FS_INET" = yes; then
3187 echo "$ac_t""yes" 1>&6
3188 else
3189 echo "$ac_t""no" 1>&6
3190 fi
3191
3192
3193 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
9b33fe02 3194echo "configure:3195: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3195 no_cache=0
3196 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3197if test "${enable_fs_zip+set}" = set; then
3198 enableval="$enable_fs_zip"
3199
3200 if test "$enableval" = yes; then
3201 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3202 else
3203 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3204 fi
3205
3206else
3207
3208 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3209 if test "x$LINE" != x ; then
3210 eval "DEFAULT_$LINE"
3211 else
3212 no_cache=1
3213 fi
3214
3215 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3216
3217fi
3218
3219
3220 eval "$ac_cv_use_fs_zip"
3221 if test "$no_cache" != 1; then
3222 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3223 fi
3224
3225 if test "$wxUSE_FS_ZIP" = yes; then
3226 echo "$ac_t""yes" 1>&6
3227 else
3228 echo "$ac_t""no" 1>&6
3229 fi
3230
3231
3232 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
9b33fe02 3233echo "configure:3234: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3234 no_cache=0
3235 # Check whether --enable-zipstream or --disable-zipstream was given.
3236if test "${enable_zipstream+set}" = set; then
3237 enableval="$enable_zipstream"
3238
3239 if test "$enableval" = yes; then
3240 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3241 else
3242 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3243 fi
3244
3245else
3246
3247 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3248 if test "x$LINE" != x ; then
3249 eval "DEFAULT_$LINE"
3250 else
3251 no_cache=1
3252 fi
3253
3254 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3255
3256fi
3257
3258
3259 eval "$ac_cv_use_zipstream"
3260 if test "$no_cache" != 1; then
3261 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3262 fi
3263
3264 if test "$wxUSE_ZIPSTREAM" = yes; then
3265 echo "$ac_t""yes" 1>&6
3266 else
3267 echo "$ac_t""no" 1>&6
3268 fi
3269
3270
3271
3272
3273 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
9b33fe02 3274echo "configure:3275: checking "for --enable-threads"" >&5
10f2d63a
VZ
3275 no_cache=0
3276 # Check whether --enable-threads or --disable-threads was given.
3277if test "${enable_threads+set}" = set; then
3278 enableval="$enable_threads"
3279
3280 if test "$enableval" = yes; then
3281 ac_cv_use_threads='wxUSE_THREADS=yes'
3282 else
3283 ac_cv_use_threads='wxUSE_THREADS=no'
3284 fi
3285
3286else
3287
3288 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3289 if test "x$LINE" != x ; then
3290 eval "DEFAULT_$LINE"
3291 else
3292 no_cache=1
3293 fi
3294
3295 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3296
3297fi
3298
3299
3300 eval "$ac_cv_use_threads"
3301 if test "$no_cache" != 1; then
3302 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3303 fi
3304
3305 if test "$wxUSE_THREADS" = yes; then
3306 echo "$ac_t""yes" 1>&6
3307 else
3308 echo "$ac_t""no" 1>&6
3309 fi
3310
3311
3312 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
9b33fe02 3313echo "configure:3314: checking "for --enable-serial"" >&5
10f2d63a
VZ
3314 no_cache=0
3315 # Check whether --enable-serial or --disable-serial was given.
3316if test "${enable_serial+set}" = set; then
3317 enableval="$enable_serial"
3318
3319 if test "$enableval" = yes; then
3320 ac_cv_use_serial='wxUSE_SERIAL=yes'
3321 else
3322 ac_cv_use_serial='wxUSE_SERIAL=no'
3323 fi
3324
3325else
3326
3327 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3328 if test "x$LINE" != x ; then
3329 eval "DEFAULT_$LINE"
3330 else
3331 no_cache=1
3332 fi
3333
3334 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3335
3336fi
3337
3338
3339 eval "$ac_cv_use_serial"
3340 if test "$no_cache" != 1; then
3341 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3342 fi
3343
3344 if test "$wxUSE_SERIAL" = yes; then
3345 echo "$ac_t""yes" 1>&6
3346 else
3347 echo "$ac_t""no" 1>&6
3348 fi
3349
3350
b12915c1
VZ
3351if test "$wxUSE_GUI" = "yes"; then
3352
10f2d63a
VZ
3353
3354
3355 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
9b33fe02 3356echo "configure:3357: checking "for --enable-docview"" >&5
10f2d63a
VZ
3357 no_cache=0
3358 # Check whether --enable-docview or --disable-docview was given.
3359if test "${enable_docview+set}" = set; then
3360 enableval="$enable_docview"
3361
3362 if test "$enableval" = yes; then
3363 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3364 else
3365 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3366 fi
3367
3368else
3369
3370 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3371 if test "x$LINE" != x ; then
3372 eval "DEFAULT_$LINE"
3373 else
3374 no_cache=1
3375 fi
3376
3377 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3378
3379fi
3380
3381
3382 eval "$ac_cv_use_docview"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3388 echo "$ac_t""yes" 1>&6
3389 else
3390 echo "$ac_t""no" 1>&6
3391 fi
3392
3393
3394 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
9b33fe02 3395echo "configure:3396: checking "for --enable-help"" >&5
10f2d63a
VZ
3396 no_cache=0
3397 # Check whether --enable-help or --disable-help was given.
3398if test "${enable_help+set}" = set; then
3399 enableval="$enable_help"
3400
3401 if test "$enableval" = yes; then
3402 ac_cv_use_help='wxUSE_HELP=yes'
3403 else
3404 ac_cv_use_help='wxUSE_HELP=no'
3405 fi
3406
3407else
3408
3409 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3410 if test "x$LINE" != x ; then
3411 eval "DEFAULT_$LINE"
3412 else
3413 no_cache=1
3414 fi
3415
3416 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3417
3418fi
3419
3420
3421 eval "$ac_cv_use_help"
3422 if test "$no_cache" != 1; then
3423 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3424 fi
3425
3426 if test "$wxUSE_HELP" = yes; then
3427 echo "$ac_t""yes" 1>&6
3428 else
3429 echo "$ac_t""no" 1>&6
3430 fi
3431
3432
3433 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
9b33fe02 3434echo "configure:3435: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3435 no_cache=0
3436 # Check whether --enable-constraints or --disable-constraints was given.
3437if test "${enable_constraints+set}" = set; then
3438 enableval="$enable_constraints"
3439
3440 if test "$enableval" = yes; then
3441 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3442 else
3443 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3444 fi
3445
3446else
3447
3448 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3456
3457fi
3458
3459
3460 eval "$ac_cv_use_constraints"
3461 if test "$no_cache" != 1; then
3462 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3463 fi
3464
3465 if test "$wxUSE_CONSTRAINTS" = yes; then
3466 echo "$ac_t""yes" 1>&6
3467 else
3468 echo "$ac_t""no" 1>&6
3469 fi
3470
3471
3472 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
9b33fe02 3473echo "configure:3474: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3474 no_cache=0
3475 # Check whether --enable-printarch or --disable-printarch was given.
3476if test "${enable_printarch+set}" = set; then
3477 enableval="$enable_printarch"
3478
3479 if test "$enableval" = yes; then
3480 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3481 else
3482 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3483 fi
3484
3485else
3486
3487 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3488 if test "x$LINE" != x ; then
3489 eval "DEFAULT_$LINE"
3490 else
3491 no_cache=1
3492 fi
3493
3494 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3495
3496fi
3497
3498
3499 eval "$ac_cv_use_printarch"
3500 if test "$no_cache" != 1; then
3501 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3502 fi
3503
3504 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3505 echo "$ac_t""yes" 1>&6
3506 else
3507 echo "$ac_t""no" 1>&6
3508 fi
3509
3510
3511 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
9b33fe02 3512echo "configure:3513: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3513 no_cache=0
3514 # Check whether --enable-mdi or --disable-mdi was given.
3515if test "${enable_mdi+set}" = set; then
3516 enableval="$enable_mdi"
3517
3518 if test "$enableval" = yes; then
3519 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3520 else
3521 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3522 fi
3523
3524else
3525
3526 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3527 if test "x$LINE" != x ; then
3528 eval "DEFAULT_$LINE"
3529 else
3530 no_cache=1
3531 fi
3532
3533 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3534
3535fi
3536
3537
3538 eval "$ac_cv_use_mdi"
3539 if test "$no_cache" != 1; then
3540 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3541 fi
3542
3543 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3544 echo "$ac_t""yes" 1>&6
3545 else
3546 echo "$ac_t""no" 1>&6
3547 fi
3548
3549
3550
3551 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
9b33fe02 3552echo "configure:3553: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3553 no_cache=0
3554 # Check whether --enable-postscript or --disable-postscript was given.
3555if test "${enable_postscript+set}" = set; then
3556 enableval="$enable_postscript"
3557
3558 if test "$enableval" = yes; then
3559 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3560 else
3561 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3562 fi
3563
3564else
3565
3566 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3567 if test "x$LINE" != x ; then
3568 eval "DEFAULT_$LINE"
3569 else
3570 no_cache=1
3571 fi
3572
3573 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3574
3575fi
3576
3577
3578 eval "$ac_cv_use_postscript"
3579 if test "$no_cache" != 1; then
3580 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3581 fi
3582
3583 if test "$wxUSE_POSTSCRIPT" = yes; then
3584 echo "$ac_t""yes" 1>&6
3585 else
3586 echo "$ac_t""no" 1>&6
3587 fi
3588
3589
3590
3591
3592 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
9b33fe02 3593echo "configure:3594: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3594 no_cache=0
3595 # Check whether --enable-prologio or --disable-prologio was given.
3596if test "${enable_prologio+set}" = set; then
3597 enableval="$enable_prologio"
3598
3599 if test "$enableval" = yes; then
3600 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3601 else
3602 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3603 fi
3604
3605else
3606
3607 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3608 if test "x$LINE" != x ; then
3609 eval "DEFAULT_$LINE"
3610 else
3611 no_cache=1
3612 fi
3613
3614 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3615
3616fi
3617
3618
3619 eval "$ac_cv_use_prologio"
3620 if test "$no_cache" != 1; then
3621 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3622 fi
3623
3624 if test "$wxUSE_PROLOGIO" = yes; then
3625 echo "$ac_t""yes" 1>&6
3626 else
3627 echo "$ac_t""no" 1>&6
3628 fi
3629
3630
3631 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
9b33fe02 3632echo "configure:3633: checking "for --enable-resources"" >&5
10f2d63a
VZ
3633 no_cache=0
3634 # Check whether --enable-resources or --disable-resources was given.
3635if test "${enable_resources+set}" = set; then
3636 enableval="$enable_resources"
3637
3638 if test "$enableval" = yes; then
3639 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3640 else
3641 ac_cv_use_resources='wxUSE_RESOURCES=no'
3642 fi
3643
3644else
3645
3646 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3647 if test "x$LINE" != x ; then
3648 eval "DEFAULT_$LINE"
3649 else
3650 no_cache=1
3651 fi
3652
3653 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3654
3655fi
3656
3657
3658 eval "$ac_cv_use_resources"
3659 if test "$no_cache" != 1; then
3660 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3661 fi
3662
3663 if test "$wxUSE_RESOURCES" = yes; then
3664 echo "$ac_t""yes" 1>&6
3665 else
3666 echo "$ac_t""no" 1>&6
3667 fi
3668
3669
3670
3671 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
9b33fe02 3672echo "configure:3673: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3673 no_cache=0
3674 # Check whether --enable-xresources or --disable-xresources was given.
3675if test "${enable_xresources+set}" = set; then
3676 enableval="$enable_xresources"
3677
3678 if test "$enableval" = yes; then
3679 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3680 else
3681 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3682 fi
3683
3684else
3685
3686 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3687 if test "x$LINE" != x ; then
3688 eval "DEFAULT_$LINE"
3689 else
3690 no_cache=1
3691 fi
3692
3693 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3694
3695fi
3696
3697
3698 eval "$ac_cv_use_xresources"
3699 if test "$no_cache" != 1; then
3700 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3701 fi
3702
3703 if test "$wxUSE_X_RESOURCES" = yes; then
3704 echo "$ac_t""yes" 1>&6
3705 else
3706 echo "$ac_t""no" 1>&6
3707 fi
3708
3709
3710
3711
3712 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
9b33fe02 3713echo "configure:3714: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3714 no_cache=0
3715 # Check whether --enable-clipboard or --disable-clipboard was given.
3716if test "${enable_clipboard+set}" = set; then
3717 enableval="$enable_clipboard"
3718
3719 if test "$enableval" = yes; then
3720 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3721 else
3722 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3723 fi
3724
3725else
3726
3727 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3728 if test "x$LINE" != x ; then
3729 eval "DEFAULT_$LINE"
3730 else
3731 no_cache=1
3732 fi
3733
3734 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3735
3736fi
3737
3738
3739 eval "$ac_cv_use_clipboard"
3740 if test "$no_cache" != 1; then
3741 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3742 fi
3743
3744 if test "$wxUSE_CLIPBOARD" = yes; then
3745 echo "$ac_t""yes" 1>&6
3746 else
3747 echo "$ac_t""no" 1>&6
3748 fi
3749
3750
3751 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
9b33fe02 3752echo "configure:3753: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3753 no_cache=0
3754 # Check whether --enable-dnd or --disable-dnd was given.
3755if test "${enable_dnd+set}" = set; then
3756 enableval="$enable_dnd"
3757
3758 if test "$enableval" = yes; then
3759 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3760 else
3761 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3762 fi
3763
3764else
3765
3766 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3774
3775fi
3776
3777
3778 eval "$ac_cv_use_dnd"
3779 if test "$no_cache" != 1; then
3780 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3781 fi
3782
3783 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3784 echo "$ac_t""yes" 1>&6
3785 else
3786 echo "$ac_t""no" 1>&6
3787 fi
3788
3789
3790
3791 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
9b33fe02 3792echo "configure:3793: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3793 no_cache=0
3794 # Check whether --enable-wxtree or --disable-wxtree was given.
3795if test "${enable_wxtree+set}" = set; then
3796 enableval="$enable_wxtree"
3797
3798 if test "$enableval" = yes; then
3799 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3800 else
3801 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3802 fi
3803
3804else
3805
3806 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3807 if test "x$LINE" != x ; then
3808 eval "DEFAULT_$LINE"
3809 else
3810 no_cache=1
3811 fi
3812
3813 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3814
3815fi
3816
3817
3818 eval "$ac_cv_use_wxtree"
3819 if test "$no_cache" != 1; then
3820 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3821 fi
3822
3823 if test "$wxUSE_WXTREE" = yes; then
3824 echo "$ac_t""yes" 1>&6
3825 else
3826 echo "$ac_t""no" 1>&6
3827 fi
3828
3829
3830
3831
3832 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
9b33fe02 3833echo "configure:3834: checking "for --enable-controls"" >&5
10f2d63a
VZ
3834 no_cache=0
3835 # Check whether --enable-controls or --disable-controls was given.
3836if test "${enable_controls+set}" = set; then
3837 enableval="$enable_controls"
3838
3839 if test "$enableval" = yes; then
3840 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3841 else
3842 ac_cv_use_controls='wxUSE_CONTROLS=no'
3843 fi
3844
3845else
3846
3847 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3848 if test "x$LINE" != x ; then
3849 eval "DEFAULT_$LINE"
3850 else
3851 no_cache=1
3852 fi
3853
3854 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3855
3856fi
3857
3858
3859 eval "$ac_cv_use_controls"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_CONTROLS" = yes; then
3865 echo "$ac_t""yes" 1>&6
3866 else
3867 echo "$ac_t""no" 1>&6
3868 fi
3869
3870
3871if test "$wxUSE_CONTROLS" = "yes"; then
3872 DEFAULT_wxUSE_ACCEL=yes
3873 DEFAULT_wxUSE_CARET=yes
3874 DEFAULT_wxUSE_COMBOBOX=yes
3875 DEFAULT_wxUSE_BMPBUTTON=yes
3876 DEFAULT_wxUSE_CHECKBOX=yes
3877 DEFAULT_wxUSE_CHECKLISTBOX=yes
3878 DEFAULT_wxUSE_CHOICE=yes
3879 DEFAULT_wxUSE_GAUGE=yes
3880 DEFAULT_wxUSE_GRID=yes
cc977e5f 3881 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
3882 DEFAULT_wxUSE_IMAGLIST=yes
3883 DEFAULT_wxUSE_LISTBOX=yes
3884 DEFAULT_wxUSE_LISTCTRL=yes
3885 DEFAULT_wxUSE_NOTEBOOK=yes
3886 DEFAULT_wxUSE_RADIOBOX=yes
3887 DEFAULT_wxUSE_RADIOBTN=yes
3888 DEFAULT_wxUSE_SASH=yes
3889 DEFAULT_wxUSE_SCROLLBAR=yes
3890 DEFAULT_wxUSE_SLIDER=yes
3891 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 3892 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
3893 DEFAULT_wxUSE_SPLITTER=yes
3894 DEFAULT_wxUSE_STATBMP=yes
3895 DEFAULT_wxUSE_STATBOX=yes
3896 DEFAULT_wxUSE_STATLINE=yes
3897 DEFAULT_wxUSE_STATUSBAR=yes
3898 DEFAULT_wxUSE_TAB_DIALOG=yes
3899 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
3900 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3901 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
3902 DEFAULT_wxUSE_TOOLTIPS=yes
3903 DEFAULT_wxUSE_TREECTRL=yes
3904elif test "$wxUSE_CONTROLS" = "no"; then
3905 DEFAULT_wxUSE_ACCEL=no
3906 DEFAULT_wxUSE_CARET=no
3907 DEFAULT_wxUSE_COMBOBOX=no
3908 DEFAULT_wxUSE_BMPBUTTON=no
3909 DEFAULT_wxUSE_CHECKBOX=no
3910 DEFAULT_wxUSE_CHECKLISTBOX=no
3911 DEFAULT_wxUSE_CHOICE=no
3912 DEFAULT_wxUSE_GAUGE=no
3913 DEFAULT_wxUSE_GRID=no
3914 DEFAULT_wxUSE_NEW_GRID=no
3915 DEFAULT_wxUSE_IMAGLIST=no
3916 DEFAULT_wxUSE_LISTBOX=no
3917 DEFAULT_wxUSE_LISTCTRL=no
3918 DEFAULT_wxUSE_NOTEBOOK=no
3919 DEFAULT_wxUSE_RADIOBOX=no
3920 DEFAULT_wxUSE_RADIOBTN=no
3921 DEFAULT_wxUSE_SASH=no
3922 DEFAULT_wxUSE_SCROLLBAR=no
3923 DEFAULT_wxUSE_SLIDER=no
3924 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 3925 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
3926 DEFAULT_wxUSE_SPLITTER=no
3927 DEFAULT_wxUSE_STATBMP=no
3928 DEFAULT_wxUSE_STATBOX=no
3929 DEFAULT_wxUSE_STATLINE=no
3930 DEFAULT_wxUSE_STATUSBAR=no
3931 DEFAULT_wxUSE_TAB_DIALOG=no
3932 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
3933 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
3934 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
3935 DEFAULT_wxUSE_TOOLTIPS=no
3936 DEFAULT_wxUSE_TREECTRL=no
3937fi
3938
3939
3940 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
9b33fe02 3941echo "configure:3942: checking "for --enable-accel"" >&5
10f2d63a
VZ
3942 no_cache=0
3943 # Check whether --enable-accel or --disable-accel was given.
3944if test "${enable_accel+set}" = set; then
3945 enableval="$enable_accel"
3946
3947 if test "$enableval" = yes; then
3948 ac_cv_use_accel='wxUSE_ACCEL=yes'
3949 else
3950 ac_cv_use_accel='wxUSE_ACCEL=no'
3951 fi
3952
3953else
3954
3955 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3956 if test "x$LINE" != x ; then
3957 eval "DEFAULT_$LINE"
3958 else
3959 no_cache=1
3960 fi
3961
3962 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3963
3964fi
3965
3966
3967 eval "$ac_cv_use_accel"
3968 if test "$no_cache" != 1; then
3969 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3970 fi
3971
3972 if test "$wxUSE_ACCEL" = yes; then
3973 echo "$ac_t""yes" 1>&6
3974 else
3975 echo "$ac_t""no" 1>&6
3976 fi
3977
3978
3979 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
9b33fe02 3980echo "configure:3981: checking "for --enable-caret"" >&5
10f2d63a
VZ
3981 no_cache=0
3982 # Check whether --enable-caret or --disable-caret was given.
3983if test "${enable_caret+set}" = set; then
3984 enableval="$enable_caret"
3985
3986 if test "$enableval" = yes; then
3987 ac_cv_use_caret='wxUSE_CARET=yes'
3988 else
3989 ac_cv_use_caret='wxUSE_CARET=no'
3990 fi
3991
3992else
3993
3994 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3995 if test "x$LINE" != x ; then
3996 eval "DEFAULT_$LINE"
3997 else
3998 no_cache=1
3999 fi
4000
4001 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4002
4003fi
4004
4005
4006 eval "$ac_cv_use_caret"
4007 if test "$no_cache" != 1; then
4008 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4009 fi
4010
4011 if test "$wxUSE_CARET" = yes; then
4012 echo "$ac_t""yes" 1>&6
4013 else
4014 echo "$ac_t""no" 1>&6
4015 fi
4016
4017
4018 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
9b33fe02 4019echo "configure:4020: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4020 no_cache=0
4021 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4022if test "${enable_bmpbutton+set}" = set; then
4023 enableval="$enable_bmpbutton"
4024
4025 if test "$enableval" = yes; then
4026 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4027 else
4028 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4029 fi
4030
4031else
4032
4033 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4034 if test "x$LINE" != x ; then
4035 eval "DEFAULT_$LINE"
4036 else
4037 no_cache=1
4038 fi
4039
4040 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4041
4042fi
4043
4044
4045 eval "$ac_cv_use_bmpbutton"
4046 if test "$no_cache" != 1; then
4047 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4048 fi
4049
4050 if test "$wxUSE_BMPBUTTON" = yes; then
4051 echo "$ac_t""yes" 1>&6
4052 else
4053 echo "$ac_t""no" 1>&6
4054 fi
4055
4056
4057 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
9b33fe02 4058echo "configure:4059: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4059 no_cache=0
4060 # Check whether --enable-checkbox or --disable-checkbox was given.
4061if test "${enable_checkbox+set}" = set; then
4062 enableval="$enable_checkbox"
4063
4064 if test "$enableval" = yes; then
4065 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4066 else
4067 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4068 fi
4069
4070else
4071
4072 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4073 if test "x$LINE" != x ; then
4074 eval "DEFAULT_$LINE"
4075 else
4076 no_cache=1
4077 fi
4078
4079 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4080
4081fi
4082
4083
4084 eval "$ac_cv_use_checkbox"
4085 if test "$no_cache" != 1; then
4086 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4087 fi
4088
4089 if test "$wxUSE_CHECKBOX" = yes; then
4090 echo "$ac_t""yes" 1>&6
4091 else
4092 echo "$ac_t""no" 1>&6
4093 fi
4094
4095
4096 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
9b33fe02 4097echo "configure:4098: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4098 no_cache=0
4099 # Check whether --enable-checklst or --disable-checklst was given.
4100if test "${enable_checklst+set}" = set; then
4101 enableval="$enable_checklst"
4102
4103 if test "$enableval" = yes; then
4104 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4105 else
4106 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4107 fi
4108
4109else
4110
4111 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4112 if test "x$LINE" != x ; then
4113 eval "DEFAULT_$LINE"
4114 else
4115 no_cache=1
4116 fi
4117
4118 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4119
4120fi
4121
4122
4123 eval "$ac_cv_use_checklst"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$wxUSE_CHECKLST" = yes; then
4129 echo "$ac_t""yes" 1>&6
4130 else
4131 echo "$ac_t""no" 1>&6
4132 fi
4133
4134
4135 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
9b33fe02 4136echo "configure:4137: checking "for --enable-choice"" >&5
10f2d63a
VZ
4137 no_cache=0
4138 # Check whether --enable-choice or --disable-choice was given.
4139if test "${enable_choice+set}" = set; then
4140 enableval="$enable_choice"
4141
4142 if test "$enableval" = yes; then
4143 ac_cv_use_choice='wxUSE_CHOICE=yes'
4144 else
4145 ac_cv_use_choice='wxUSE_CHOICE=no'
4146 fi
4147
4148else
4149
4150 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
4157 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4158
4159fi
4160
4161
4162 eval "$ac_cv_use_choice"
4163 if test "$no_cache" != 1; then
4164 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4165 fi
4166
4167 if test "$wxUSE_CHOICE" = yes; then
4168 echo "$ac_t""yes" 1>&6
4169 else
4170 echo "$ac_t""no" 1>&6
4171 fi
4172
4173
4174 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
9b33fe02 4175echo "configure:4176: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4176 no_cache=0
4177 # Check whether --enable-combobox or --disable-combobox was given.
4178if test "${enable_combobox+set}" = set; then
4179 enableval="$enable_combobox"
4180
4181 if test "$enableval" = yes; then
4182 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4183 else
4184 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4185 fi
4186
4187else
4188
4189 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4190 if test "x$LINE" != x ; then
4191 eval "DEFAULT_$LINE"
4192 else
4193 no_cache=1
4194 fi
4195
4196 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4197
4198fi
4199
4200
4201 eval "$ac_cv_use_combobox"
4202 if test "$no_cache" != 1; then
4203 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4204 fi
4205
4206 if test "$wxUSE_COMBOBOX" = yes; then
4207 echo "$ac_t""yes" 1>&6
4208 else
4209 echo "$ac_t""no" 1>&6
4210 fi
4211
4212
4213 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
9b33fe02 4214echo "configure:4215: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4215 no_cache=0
4216 # Check whether --enable-gauge or --disable-gauge was given.
4217if test "${enable_gauge+set}" = set; then
4218 enableval="$enable_gauge"
4219
4220 if test "$enableval" = yes; then
4221 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4222 else
4223 ac_cv_use_gauge='wxUSE_GAUGE=no'
4224 fi
4225
4226else
4227
4228 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4229 if test "x$LINE" != x ; then
4230 eval "DEFAULT_$LINE"
4231 else
4232 no_cache=1
4233 fi
4234
4235 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4236
4237fi
4238
4239
4240 eval "$ac_cv_use_gauge"
4241 if test "$no_cache" != 1; then
4242 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4243 fi
4244
4245 if test "$wxUSE_GAUGE" = yes; then
4246 echo "$ac_t""yes" 1>&6
4247 else
4248 echo "$ac_t""no" 1>&6
4249 fi
4250
4251
4252 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
9b33fe02 4253echo "configure:4254: checking "for --enable-grid"" >&5
10f2d63a
VZ
4254 no_cache=0
4255 # Check whether --enable-grid or --disable-grid was given.
4256if test "${enable_grid+set}" = set; then
4257 enableval="$enable_grid"
4258
4259 if test "$enableval" = yes; then
4260 ac_cv_use_grid='wxUSE_GRID=yes'
4261 else
4262 ac_cv_use_grid='wxUSE_GRID=no'
4263 fi
4264
4265else
4266
4267 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4268 if test "x$LINE" != x ; then
4269 eval "DEFAULT_$LINE"
4270 else
4271 no_cache=1
4272 fi
4273
4274 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4275
4276fi
4277
4278
4279 eval "$ac_cv_use_grid"
4280 if test "$no_cache" != 1; then
4281 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4282 fi
4283
4284 if test "$wxUSE_GRID" = yes; then
4285 echo "$ac_t""yes" 1>&6
4286 else
4287 echo "$ac_t""no" 1>&6
4288 fi
4289
4290
4291 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
9b33fe02 4292echo "configure:4293: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4293 no_cache=0
4294 # Check whether --enable-newgrid or --disable-newgrid was given.
4295if test "${enable_newgrid+set}" = set; then
4296 enableval="$enable_newgrid"
4297
4298 if test "$enableval" = yes; then
4299 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4300 else
4301 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4302 fi
4303
4304else
4305
4306 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4307 if test "x$LINE" != x ; then
4308 eval "DEFAULT_$LINE"
4309 else
4310 no_cache=1
4311 fi
4312
4313 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4314
4315fi
4316
4317
4318 eval "$ac_cv_use_newgrid"
4319 if test "$no_cache" != 1; then
4320 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4321 fi
4322
4323 if test "$wxUSE_NEW_GRID" = yes; then
4324 echo "$ac_t""yes" 1>&6
4325 else
4326 echo "$ac_t""no" 1>&6
4327 fi
4328
4329
4330 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
9b33fe02 4331echo "configure:4332: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4332 no_cache=0
4333 # Check whether --enable-imaglist or --disable-imaglist was given.
4334if test "${enable_imaglist+set}" = set; then
4335 enableval="$enable_imaglist"
4336
4337 if test "$enableval" = yes; then
4338 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4339 else
4340 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4341 fi
4342
4343else
4344
4345 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4346 if test "x$LINE" != x ; then
4347 eval "DEFAULT_$LINE"
4348 else
4349 no_cache=1
4350 fi
4351
4352 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4353
4354fi
4355
4356
4357 eval "$ac_cv_use_imaglist"
4358 if test "$no_cache" != 1; then
4359 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4360 fi
4361
4362 if test "$wxUSE_IMAGLIST" = yes; then
4363 echo "$ac_t""yes" 1>&6
4364 else
4365 echo "$ac_t""no" 1>&6
4366 fi
4367
4368
4369 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
9b33fe02 4370echo "configure:4371: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4371 no_cache=0
4372 # Check whether --enable-listbox or --disable-listbox was given.
4373if test "${enable_listbox+set}" = set; then
4374 enableval="$enable_listbox"
4375
4376 if test "$enableval" = yes; then
4377 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4378 else
4379 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4380 fi
4381
4382else
4383
4384 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4385 if test "x$LINE" != x ; then
4386 eval "DEFAULT_$LINE"
4387 else
4388 no_cache=1
4389 fi
4390
4391 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4392
4393fi
4394
4395
4396 eval "$ac_cv_use_listbox"
4397 if test "$no_cache" != 1; then
4398 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4399 fi
4400
4401 if test "$wxUSE_LISTBOX" = yes; then
4402 echo "$ac_t""yes" 1>&6
4403 else
4404 echo "$ac_t""no" 1>&6
4405 fi
4406
4407
4408 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
9b33fe02 4409echo "configure:4410: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4410 no_cache=0
4411 # Check whether --enable-listctrl or --disable-listctrl was given.
4412if test "${enable_listctrl+set}" = set; then
4413 enableval="$enable_listctrl"
4414
4415 if test "$enableval" = yes; then
4416 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4417 else
4418 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4419 fi
4420
4421else
4422
4423 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4424 if test "x$LINE" != x ; then
4425 eval "DEFAULT_$LINE"
4426 else
4427 no_cache=1
4428 fi
4429
4430 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4431
4432fi
4433
4434
4435 eval "$ac_cv_use_listctrl"
4436 if test "$no_cache" != 1; then
4437 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4438 fi
4439
4440 if test "$wxUSE_LISTCTRL" = yes; then
4441 echo "$ac_t""yes" 1>&6
4442 else
4443 echo "$ac_t""no" 1>&6
4444 fi
4445
4446
4447 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
9b33fe02 4448echo "configure:4449: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4449 no_cache=0
4450 # Check whether --enable-notebook or --disable-notebook was given.
4451if test "${enable_notebook+set}" = set; then
4452 enableval="$enable_notebook"
4453
4454 if test "$enableval" = yes; then
4455 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4456 else
4457 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4458 fi
4459
4460else
4461
4462 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4463 if test "x$LINE" != x ; then
4464 eval "DEFAULT_$LINE"
4465 else
4466 no_cache=1
4467 fi
4468
4469 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4470
4471fi
4472
4473
4474 eval "$ac_cv_use_notebook"
4475 if test "$no_cache" != 1; then
4476 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4477 fi
4478
4479 if test "$wxUSE_NOTEBOOK" = yes; then
4480 echo "$ac_t""yes" 1>&6
4481 else
4482 echo "$ac_t""no" 1>&6
4483 fi
4484
4485
4486 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
9b33fe02 4487echo "configure:4488: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4488 no_cache=0
4489 # Check whether --enable-radiobox or --disable-radiobox was given.
4490if test "${enable_radiobox+set}" = set; then
4491 enableval="$enable_radiobox"
4492
4493 if test "$enableval" = yes; then
4494 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4495 else
4496 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4497 fi
4498
4499else
4500
4501 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4502 if test "x$LINE" != x ; then
4503 eval "DEFAULT_$LINE"
4504 else
4505 no_cache=1
4506 fi
4507
4508 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4509
4510fi
4511
4512
4513 eval "$ac_cv_use_radiobox"
4514 if test "$no_cache" != 1; then
4515 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4516 fi
4517
4518 if test "$wxUSE_RADIOBOX" = yes; then
4519 echo "$ac_t""yes" 1>&6
4520 else
4521 echo "$ac_t""no" 1>&6
4522 fi
4523
4524
4525 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
9b33fe02 4526echo "configure:4527: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4527 no_cache=0
4528 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4529if test "${enable_radiobtn+set}" = set; then
4530 enableval="$enable_radiobtn"
4531
4532 if test "$enableval" = yes; then
4533 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4534 else
4535 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4536 fi
4537
4538else
4539
4540 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4541 if test "x$LINE" != x ; then
4542 eval "DEFAULT_$LINE"
4543 else
4544 no_cache=1
4545 fi
4546
4547 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4548
4549fi
4550
4551
4552 eval "$ac_cv_use_radiobtn"
4553 if test "$no_cache" != 1; then
4554 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4555 fi
4556
4557 if test "$wxUSE_RADIOBTN" = yes; then
4558 echo "$ac_t""yes" 1>&6
4559 else
4560 echo "$ac_t""no" 1>&6
4561 fi
4562
4563
4564 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
9b33fe02 4565echo "configure:4566: checking "for --enable-sash"" >&5
10f2d63a
VZ
4566 no_cache=0
4567 # Check whether --enable-sash or --disable-sash was given.
4568if test "${enable_sash+set}" = set; then
4569 enableval="$enable_sash"
4570
4571 if test "$enableval" = yes; then
4572 ac_cv_use_sash='wxUSE_SASH=yes'
4573 else
4574 ac_cv_use_sash='wxUSE_SASH=no'
4575 fi
4576
4577else
4578
4579 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4580 if test "x$LINE" != x ; then
4581 eval "DEFAULT_$LINE"
4582 else
4583 no_cache=1
4584 fi
4585
4586 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4587
4588fi
4589
4590
4591 eval "$ac_cv_use_sash"
4592 if test "$no_cache" != 1; then
4593 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4594 fi
4595
4596 if test "$wxUSE_SASH" = yes; then
4597 echo "$ac_t""yes" 1>&6
4598 else
4599 echo "$ac_t""no" 1>&6
4600 fi
4601
4602
4603 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
9b33fe02 4604echo "configure:4605: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4605 no_cache=0
4606 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4607if test "${enable_scrollbar+set}" = set; then
4608 enableval="$enable_scrollbar"
4609
4610 if test "$enableval" = yes; then
4611 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4612 else
4613 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4614 fi
4615
4616else
4617
4618 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4619 if test "x$LINE" != x ; then
4620 eval "DEFAULT_$LINE"
4621 else
4622 no_cache=1
4623 fi
4624
4625 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4626
4627fi
4628
4629
4630 eval "$ac_cv_use_scrollbar"
4631 if test "$no_cache" != 1; then
4632 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4633 fi
4634
4635 if test "$wxUSE_SCROLLBAR" = yes; then
4636 echo "$ac_t""yes" 1>&6
4637 else
4638 echo "$ac_t""no" 1>&6
4639 fi
4640
4641
4642 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
9b33fe02 4643echo "configure:4644: checking "for --enable-slider"" >&5
10f2d63a
VZ
4644 no_cache=0
4645 # Check whether --enable-slider or --disable-slider was given.
4646if test "${enable_slider+set}" = set; then
4647 enableval="$enable_slider"
4648
4649 if test "$enableval" = yes; then
4650 ac_cv_use_slider='wxUSE_SLIDER=yes'
4651 else
4652 ac_cv_use_slider='wxUSE_SLIDER=no'
4653 fi
4654
4655else
4656
4657 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4658 if test "x$LINE" != x ; then
4659 eval "DEFAULT_$LINE"
4660 else
4661 no_cache=1
4662 fi
4663
4664 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4665
4666fi
4667
4668
4669 eval "$ac_cv_use_slider"
4670 if test "$no_cache" != 1; then
4671 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4672 fi
4673
4674 if test "$wxUSE_SLIDER" = yes; then
4675 echo "$ac_t""yes" 1>&6
4676 else
4677 echo "$ac_t""no" 1>&6
4678 fi
4679
4680
4681 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
9b33fe02 4682echo "configure:4683: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4683 no_cache=0
4684 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4685if test "${enable_spinbtn+set}" = set; then
4686 enableval="$enable_spinbtn"
4687
4688 if test "$enableval" = yes; then
4689 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4690 else
4691 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4692 fi
4693
4694else
4695
4696 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4697 if test "x$LINE" != x ; then
4698 eval "DEFAULT_$LINE"
4699 else
4700 no_cache=1
4701 fi
4702
4703 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4704
4705fi
4706
4707
4708 eval "$ac_cv_use_spinbtn"
4709 if test "$no_cache" != 1; then
4710 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4711 fi
4712
4713 if test "$wxUSE_SPINBTN" = yes; then
4714 echo "$ac_t""yes" 1>&6
4715 else
4716 echo "$ac_t""no" 1>&6
4717 fi
4718
4719
56cfaa52 4720 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
9b33fe02 4721echo "configure:4722: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4722 no_cache=0
4723 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4724if test "${enable_spinctrl+set}" = set; then
4725 enableval="$enable_spinctrl"
4726
4727 if test "$enableval" = yes; then
4728 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4729 else
4730 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4731 fi
4732
4733else
4734
4735 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4736 if test "x$LINE" != x ; then
4737 eval "DEFAULT_$LINE"
4738 else
4739 no_cache=1
4740 fi
4741
4742 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4743
4744fi
4745
4746
4747 eval "$ac_cv_use_spinctrl"
4748 if test "$no_cache" != 1; then
4749 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4750 fi
4751
4752 if test "$wxUSE_SPINCTRL" = yes; then
4753 echo "$ac_t""yes" 1>&6
4754 else
4755 echo "$ac_t""no" 1>&6
4756 fi
4757
4758
10f2d63a 4759 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
9b33fe02 4760echo "configure:4761: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4761 no_cache=0
4762 # Check whether --enable-splitter or --disable-splitter was given.
4763if test "${enable_splitter+set}" = set; then
4764 enableval="$enable_splitter"
4765
4766 if test "$enableval" = yes; then
4767 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4768 else
4769 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4770 fi
4771
4772else
4773
4774 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4775 if test "x$LINE" != x ; then
4776 eval "DEFAULT_$LINE"
4777 else
4778 no_cache=1
4779 fi
4780
4781 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4782
4783fi
4784
4785
4786 eval "$ac_cv_use_splitter"
4787 if test "$no_cache" != 1; then
4788 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4789 fi
4790
4791 if test "$wxUSE_SPLITTER" = yes; then
4792 echo "$ac_t""yes" 1>&6
4793 else
4794 echo "$ac_t""no" 1>&6
4795 fi
4796
4797
4798 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
9b33fe02 4799echo "configure:4800: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4800 no_cache=0
4801 # Check whether --enable-statbmp or --disable-statbmp was given.
4802if test "${enable_statbmp+set}" = set; then
4803 enableval="$enable_statbmp"
4804
4805 if test "$enableval" = yes; then
4806 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4807 else
4808 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4809 fi
4810
4811else
4812
4813 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4814 if test "x$LINE" != x ; then
4815 eval "DEFAULT_$LINE"
4816 else
4817 no_cache=1
4818 fi
4819
4820 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4821
4822fi
4823
4824
4825 eval "$ac_cv_use_statbmp"
4826 if test "$no_cache" != 1; then
4827 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4828 fi
4829
4830 if test "$wxUSE_STATBMP" = yes; then
4831 echo "$ac_t""yes" 1>&6
4832 else
4833 echo "$ac_t""no" 1>&6
4834 fi
4835
4836
4837 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
9b33fe02 4838echo "configure:4839: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4839 no_cache=0
4840 # Check whether --enable-statbox or --disable-statbox was given.
4841if test "${enable_statbox+set}" = set; then
4842 enableval="$enable_statbox"
4843
4844 if test "$enableval" = yes; then
4845 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4846 else
4847 ac_cv_use_statbox='wxUSE_STATBOX=no'
4848 fi
4849
4850else
4851
4852 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4853 if test "x$LINE" != x ; then
4854 eval "DEFAULT_$LINE"
4855 else
4856 no_cache=1
4857 fi
4858
4859 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4860
4861fi
4862
4863
4864 eval "$ac_cv_use_statbox"
4865 if test "$no_cache" != 1; then
4866 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4867 fi
4868
4869 if test "$wxUSE_STATBOX" = yes; then
4870 echo "$ac_t""yes" 1>&6
4871 else
4872 echo "$ac_t""no" 1>&6
4873 fi
4874
4875
4876 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
9b33fe02 4877echo "configure:4878: checking "for --enable-statline"" >&5
10f2d63a
VZ
4878 no_cache=0
4879 # Check whether --enable-statline or --disable-statline was given.
4880if test "${enable_statline+set}" = set; then
4881 enableval="$enable_statline"
4882
4883 if test "$enableval" = yes; then
4884 ac_cv_use_statline='wxUSE_STATLINE=yes'
4885 else
4886 ac_cv_use_statline='wxUSE_STATLINE=no'
4887 fi
4888
4889else
4890
4891 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4892 if test "x$LINE" != x ; then
4893 eval "DEFAULT_$LINE"
4894 else
4895 no_cache=1
4896 fi
4897
4898 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4899
4900fi
4901
4902
4903 eval "$ac_cv_use_statline"
4904 if test "$no_cache" != 1; then
4905 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4906 fi
4907
4908 if test "$wxUSE_STATLINE" = yes; then
4909 echo "$ac_t""yes" 1>&6
4910 else
4911 echo "$ac_t""no" 1>&6
4912 fi
4913
4914
4915 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
9b33fe02 4916echo "configure:4917: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
4917 no_cache=0
4918 # Check whether --enable-statusbar or --disable-statusbar was given.
4919if test "${enable_statusbar+set}" = set; then
4920 enableval="$enable_statusbar"
4921
4922 if test "$enableval" = yes; then
4923 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4924 else
4925 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4926 fi
4927
4928else
4929
4930 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4931 if test "x$LINE" != x ; then
4932 eval "DEFAULT_$LINE"
4933 else
4934 no_cache=1
4935 fi
4936
4937 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4938
4939fi
4940
4941
4942 eval "$ac_cv_use_statusbar"
4943 if test "$no_cache" != 1; then
4944 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4945 fi
4946
4947 if test "$wxUSE_STATUSBAR" = yes; then
4948 echo "$ac_t""yes" 1>&6
4949 else
4950 echo "$ac_t""no" 1>&6
4951 fi
4952
4953
4954 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
9b33fe02 4955echo "configure:4956: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
4956 no_cache=0
4957 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4958if test "${enable_tabdialog+set}" = set; then
4959 enableval="$enable_tabdialog"
4960
4961 if test "$enableval" = yes; then
4962 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4963 else
4964 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4965 fi
4966
4967else
4968
4969 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4970 if test "x$LINE" != x ; then
4971 eval "DEFAULT_$LINE"
4972 else
4973 no_cache=1
4974 fi
4975
4976 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4977
4978fi
4979
4980
4981 eval "$ac_cv_use_tabdialog"
4982 if test "$no_cache" != 1; then
4983 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4984 fi
4985
4986 if test "$wxUSE_TABDIALOG" = yes; then
4987 echo "$ac_t""yes" 1>&6
4988 else
4989 echo "$ac_t""no" 1>&6
4990 fi
4991
4992
4993 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
9b33fe02 4994echo "configure:4995: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
4995 no_cache=0
4996 # Check whether --enable-toolbar or --disable-toolbar was given.
4997if test "${enable_toolbar+set}" = set; then
4998 enableval="$enable_toolbar"
4999
5000 if test "$enableval" = yes; then
5001 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5002 else
5003 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5004 fi
5005
5006else
5007
5008 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5009 if test "x$LINE" != x ; then
5010 eval "DEFAULT_$LINE"
5011 else
5012 no_cache=1
5013 fi
5014
5015 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5016
5017fi
5018
5019
5020 eval "$ac_cv_use_toolbar"
5021 if test "$no_cache" != 1; then
5022 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5023 fi
5024
5025 if test "$wxUSE_TOOLBAR" = yes; then
5026 echo "$ac_t""yes" 1>&6
5027 else
5028 echo "$ac_t""no" 1>&6
5029 fi
5030
5031
360d6699 5032 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
9b33fe02 5033echo "configure:5034: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5034 no_cache=0
5035 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5036if test "${enable_tbarnative+set}" = set; then
5037 enableval="$enable_tbarnative"
5038
5039 if test "$enableval" = yes; then
5040 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5041 else
5042 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5043 fi
5044
5045else
5046
5047 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5048 if test "x$LINE" != x ; then
5049 eval "DEFAULT_$LINE"
5050 else
5051 no_cache=1
5052 fi
5053
5054 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5055
5056fi
5057
5058
5059 eval "$ac_cv_use_tbarnative"
5060 if test "$no_cache" != 1; then
5061 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5062 fi
5063
5064 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5065 echo "$ac_t""yes" 1>&6
5066 else
5067 echo "$ac_t""no" 1>&6
5068 fi
5069
5070
5071 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
9b33fe02 5072echo "configure:5073: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5073 no_cache=0
5074 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5075if test "${enable_tbarsmpl+set}" = set; then
5076 enableval="$enable_tbarsmpl"
5077
5078 if test "$enableval" = yes; then
5079 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5080 else
5081 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5082 fi
5083
5084else
5085
5086 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5087 if test "x$LINE" != x ; then
5088 eval "DEFAULT_$LINE"
5089 else
5090 no_cache=1
5091 fi
5092
5093 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5094
5095fi
5096
5097
5098 eval "$ac_cv_use_tbarsmpl"
5099 if test "$no_cache" != 1; then
5100 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5101 fi
5102
5103 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5104 echo "$ac_t""yes" 1>&6
5105 else
5106 echo "$ac_t""no" 1>&6
5107 fi
5108
5109
10f2d63a 5110 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
9b33fe02 5111echo "configure:5112: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5112 no_cache=0
5113 # Check whether --enable-treectrl or --disable-treectrl was given.
5114if test "${enable_treectrl+set}" = set; then
5115 enableval="$enable_treectrl"
5116
5117 if test "$enableval" = yes; then
5118 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5119 else
5120 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5121 fi
5122
5123else
5124
5125 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5126 if test "x$LINE" != x ; then
5127 eval "DEFAULT_$LINE"
5128 else
5129 no_cache=1
5130 fi
5131
5132 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5133
5134fi
5135
5136
5137 eval "$ac_cv_use_treectrl"
5138 if test "$no_cache" != 1; then
5139 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5140 fi
5141
5142 if test "$wxUSE_TREECTRL" = yes; then
5143 echo "$ac_t""yes" 1>&6
5144 else
5145 echo "$ac_t""no" 1>&6
5146 fi
5147
5148
5149
5150
5151 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
9b33fe02 5152echo "configure:5153: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5153 no_cache=0
5154 # Check whether --enable-commondlg or --disable-commondlg was given.
5155if test "${enable_commondlg+set}" = set; then
5156 enableval="$enable_commondlg"
5157
5158 if test "$enableval" = yes; then
5159 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5160 else
5161 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5162 fi
5163
5164else
5165
5166 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5167 if test "x$LINE" != x ; then
5168 eval "DEFAULT_$LINE"
5169 else
5170 no_cache=1
5171 fi
5172
5173 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5174
5175fi
5176
5177
5178 eval "$ac_cv_use_commondlg"
5179 if test "$no_cache" != 1; then
5180 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5181 fi
5182
5183 if test "$wxUSE_COMMONDLGS" = yes; then
5184 echo "$ac_t""yes" 1>&6
5185 else
5186 echo "$ac_t""no" 1>&6
5187 fi
5188
5189
5190 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
9b33fe02 5191echo "configure:5192: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5192 no_cache=0
5193 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5194if test "${enable_dirdlg+set}" = set; then
5195 enableval="$enable_dirdlg"
5196
5197 if test "$enableval" = yes; then
5198 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5199 else
5200 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5201 fi
5202
5203else
5204
5205 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5206 if test "x$LINE" != x ; then
5207 eval "DEFAULT_$LINE"
5208 else
5209 no_cache=1
5210 fi
5211
5212 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5213
5214fi
5215
5216
5217 eval "$ac_cv_use_dirdlg"
5218 if test "$no_cache" != 1; then
5219 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5220 fi
5221
5222 if test "$wxUSE_DIRDLG" = yes; then
5223 echo "$ac_t""yes" 1>&6
5224 else
5225 echo "$ac_t""no" 1>&6
5226 fi
5227
5228
5229 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
9b33fe02 5230echo "configure:5231: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5231 no_cache=0
5232 # Check whether --enable-textdlg or --disable-textdlg was given.
5233if test "${enable_textdlg+set}" = set; then
5234 enableval="$enable_textdlg"
5235
5236 if test "$enableval" = yes; then
5237 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5238 else
5239 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5240 fi
5241
5242else
5243
5244 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5245 if test "x$LINE" != x ; then
5246 eval "DEFAULT_$LINE"
5247 else
5248 no_cache=1
5249 fi
5250
5251 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5252
5253fi
5254
5255
5256 eval "$ac_cv_use_textdlg"
5257 if test "$no_cache" != 1; then
5258 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5259 fi
5260
5261 if test "$wxUSE_TEXTDLG" = yes; then
5262 echo "$ac_t""yes" 1>&6
5263 else
5264 echo "$ac_t""no" 1>&6
5265 fi
5266
5267
5268 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
9b33fe02 5269echo "configure:5270: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5270 no_cache=0
5271 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5272if test "${enable_tipdlg+set}" = set; then
5273 enableval="$enable_tipdlg"
5274
5275 if test "$enableval" = yes; then
5276 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5277 else
5278 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5279 fi
5280
5281else
5282
5283 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5284 if test "x$LINE" != x ; then
5285 eval "DEFAULT_$LINE"
5286 else
5287 no_cache=1
5288 fi
5289
5290 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5291
5292fi
5293
5294
5295 eval "$ac_cv_use_tipdlg"
5296 if test "$no_cache" != 1; then
5297 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5298 fi
5299
5300 if test "$wxUSE_STARTUP_TIPS" = yes; then
5301 echo "$ac_t""yes" 1>&6
5302 else
5303 echo "$ac_t""no" 1>&6
5304 fi
5305
5306
5307 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
9b33fe02 5308echo "configure:5309: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5309 no_cache=0
5310 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5311if test "${enable_progressdlg+set}" = set; then
5312 enableval="$enable_progressdlg"
5313
5314 if test "$enableval" = yes; then
5315 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5316 else
5317 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5318 fi
5319
5320else
5321
5322 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5323 if test "x$LINE" != x ; then
5324 eval "DEFAULT_$LINE"
5325 else
5326 no_cache=1
5327 fi
5328
5329 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5330
5331fi
5332
5333
5334 eval "$ac_cv_use_progressdlg"
5335 if test "$no_cache" != 1; then
5336 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5337 fi
5338
5339 if test "$wxUSE_PROGRESSDLG" = yes; then
5340 echo "$ac_t""yes" 1>&6
5341 else
5342 echo "$ac_t""no" 1>&6
5343 fi
5344
5345
5346 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
9b33fe02 5347echo "configure:5348: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5348 no_cache=0
5349 # Check whether --enable-miniframe or --disable-miniframe was given.
5350if test "${enable_miniframe+set}" = set; then
5351 enableval="$enable_miniframe"
5352
5353 if test "$enableval" = yes; then
5354 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5355 else
5356 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5357 fi
5358
5359else
5360
5361 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5362 if test "x$LINE" != x ; then
5363 eval "DEFAULT_$LINE"
5364 else
5365 no_cache=1
5366 fi
5367
5368 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5369
5370fi
5371
5372
5373 eval "$ac_cv_use_miniframe"
5374 if test "$no_cache" != 1; then
5375 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5376 fi
5377
5378 if test "$wxUSE_MINIFRAME" = yes; then
5379 echo "$ac_t""yes" 1>&6
5380 else
5381 echo "$ac_t""no" 1>&6
5382 fi
5383
5384
5385 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
9b33fe02 5386echo "configure:5387: checking "for --enable-html"" >&5
10f2d63a
VZ
5387 no_cache=0
5388 # Check whether --enable-html or --disable-html was given.
5389if test "${enable_html+set}" = set; then
5390 enableval="$enable_html"
5391
5392 if test "$enableval" = yes; then
5393 ac_cv_use_html='wxUSE_HTML=yes'
5394 else
5395 ac_cv_use_html='wxUSE_HTML=no'
5396 fi
5397
5398else
5399
5400 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5401 if test "x$LINE" != x ; then
5402 eval "DEFAULT_$LINE"
5403 else
5404 no_cache=1
5405 fi
5406
5407 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5408
5409fi
5410
5411
5412 eval "$ac_cv_use_html"
5413 if test "$no_cache" != 1; then
5414 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5415 fi
5416
5417 if test "$wxUSE_HTML" = yes; then
5418 echo "$ac_t""yes" 1>&6
5419 else
5420 echo "$ac_t""no" 1>&6
5421 fi
5422
5423
5424 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
9b33fe02 5425echo "configure:5426: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5426 no_cache=0
5427 # Check whether --enable-tooltips or --disable-tooltips was given.
5428if test "${enable_tooltips+set}" = set; then
5429 enableval="$enable_tooltips"
5430
5431 if test "$enableval" = yes; then
5432 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5433 else
5434 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5435 fi
5436
5437else
5438
5439 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5440 if test "x$LINE" != x ; then
5441 eval "DEFAULT_$LINE"
5442 else
5443 no_cache=1
5444 fi
5445
5446 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5447
5448fi
5449
5450
5451 eval "$ac_cv_use_tooltips"
5452 if test "$no_cache" != 1; then
5453 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5454 fi
5455
5456 if test "$wxUSE_TOOLTIPS" = yes; then
5457 echo "$ac_t""yes" 1>&6
5458 else
5459 echo "$ac_t""no" 1>&6
5460 fi
5461
5462
5463 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
9b33fe02 5464echo "configure:5465: checking "for --enable-splines"" >&5
10f2d63a
VZ
5465 no_cache=0
5466 # Check whether --enable-splines or --disable-splines was given.
5467if test "${enable_splines+set}" = set; then
5468 enableval="$enable_splines"
5469
5470 if test "$enableval" = yes; then
5471 ac_cv_use_splines='wxUSE_SPLINES=yes'
5472 else
5473 ac_cv_use_splines='wxUSE_SPLINES=no'
5474 fi
5475
5476else
5477
5478 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5479 if test "x$LINE" != x ; then
5480 eval "DEFAULT_$LINE"
5481 else
5482 no_cache=1
5483 fi
5484
5485 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5486
5487fi
5488
5489
5490 eval "$ac_cv_use_splines"
5491 if test "$no_cache" != 1; then
5492 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5493 fi
5494
5495 if test "$wxUSE_SPLINES" = yes; then
5496 echo "$ac_t""yes" 1>&6
5497 else
5498 echo "$ac_t""no" 1>&6
5499 fi
5500
5501
5502 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
9b33fe02 5503echo "configure:5504: checking "for --enable-validators"" >&5
10f2d63a
VZ
5504 no_cache=0
5505 # Check whether --enable-validators or --disable-validators was given.
5506if test "${enable_validators+set}" = set; then
5507 enableval="$enable_validators"
5508
5509 if test "$enableval" = yes; then
5510 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5511 else
5512 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5513 fi
5514
5515else
5516
5517 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5518 if test "x$LINE" != x ; then
5519 eval "DEFAULT_$LINE"
5520 else
5521 no_cache=1
5522 fi
5523
5524 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5525
5526fi
5527
5528
5529 eval "$ac_cv_use_validators"
5530 if test "$no_cache" != 1; then
5531 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5532 fi
5533
5534 if test "$wxUSE_VALIDATORS" = yes; then
5535 echo "$ac_t""yes" 1>&6
5536 else
5537 echo "$ac_t""no" 1>&6
5538 fi
5539
5540
5541 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
9b33fe02 5542echo "configure:5543: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5543 no_cache=0
5544 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5545if test "${enable_busyinfo+set}" = set; then
5546 enableval="$enable_busyinfo"
5547
5548 if test "$enableval" = yes; then
5549 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5550 else
5551 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5552 fi
5553
5554else
5555
5556 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5557 if test "x$LINE" != x ; then
5558 eval "DEFAULT_$LINE"
5559 else
5560 no_cache=1
5561 fi
5562
5563 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5564
5565fi
5566
5567
5568 eval "$ac_cv_use_busyinfo"
5569 if test "$no_cache" != 1; then
5570 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5571 fi
5572
5573 if test "$wxUSE_BUSYINFO" = yes; then
5574 echo "$ac_t""yes" 1>&6
5575 else
5576 echo "$ac_t""no" 1>&6
5577 fi
5578
5579
9b33fe02
VZ
5580 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
5581echo "configure:5582: checking "for --enable-plot"" >&5
5582 no_cache=0
5583 # Check whether --enable-plot or --disable-plot was given.
5584if test "${enable_plot+set}" = set; then
5585 enableval="$enable_plot"
5586
5587 if test "$enableval" = yes; then
5588 ac_cv_use_plot='wxUSE_PLOT=yes'
5589 else
5590 ac_cv_use_plot='wxUSE_PLOT=no'
5591 fi
5592
5593else
5594
5595 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5596 if test "x$LINE" != x ; then
5597 eval "DEFAULT_$LINE"
5598 else
5599 no_cache=1
5600 fi
5601
5602 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5603
5604fi
5605
5606
5607 eval "$ac_cv_use_plot"
5608 if test "$no_cache" != 1; then
5609 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5610 fi
5611
5612 if test "$wxUSE_PLOT" = yes; then
5613 echo "$ac_t""yes" 1>&6
5614 else
5615 echo "$ac_t""no" 1>&6
5616 fi
5617
5618
10f2d63a
VZ
5619
5620
5621 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
9b33fe02 5622echo "configure:5623: checking "for --enable-gif"" >&5
10f2d63a
VZ
5623 no_cache=0
5624 # Check whether --enable-gif or --disable-gif was given.
5625if test "${enable_gif+set}" = set; then
5626 enableval="$enable_gif"
5627
5628 if test "$enableval" = yes; then
5629 ac_cv_use_gif='wxUSE_GIF=yes'
5630 else
5631 ac_cv_use_gif='wxUSE_GIF=no'
5632 fi
5633
5634else
5635
5636 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5637 if test "x$LINE" != x ; then
5638 eval "DEFAULT_$LINE"
5639 else
5640 no_cache=1
5641 fi
5642
5643 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5644
5645fi
5646
5647
5648 eval "$ac_cv_use_gif"
5649 if test "$no_cache" != 1; then
5650 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5651 fi
5652
5653 if test "$wxUSE_GIF" = yes; then
5654 echo "$ac_t""yes" 1>&6
5655 else
5656 echo "$ac_t""no" 1>&6
5657 fi
5658
5659
5660 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
9b33fe02 5661echo "configure:5662: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5662 no_cache=0
5663 # Check whether --enable-pcx or --disable-pcx was given.
5664if test "${enable_pcx+set}" = set; then
5665 enableval="$enable_pcx"
5666
5667 if test "$enableval" = yes; then
5668 ac_cv_use_pcx='wxUSE_PCX=yes'
5669 else
5670 ac_cv_use_pcx='wxUSE_PCX=no'
5671 fi
5672
5673else
5674
5675 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5676 if test "x$LINE" != x ; then
5677 eval "DEFAULT_$LINE"
5678 else
5679 no_cache=1
5680 fi
5681
5682 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5683
5684fi
5685
5686
5687 eval "$ac_cv_use_pcx"
5688 if test "$no_cache" != 1; then
5689 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5690 fi
5691
5692 if test "$wxUSE_PCX" = yes; then
5693 echo "$ac_t""yes" 1>&6
5694 else
5695 echo "$ac_t""no" 1>&6
5696 fi
5697
5698
5699 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
9b33fe02 5700echo "configure:5701: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5701 no_cache=0
5702 # Check whether --enable-pnm or --disable-pnm was given.
5703if test "${enable_pnm+set}" = set; then
5704 enableval="$enable_pnm"
5705
5706 if test "$enableval" = yes; then
5707 ac_cv_use_pnm='wxUSE_PNM=yes'
5708 else
5709 ac_cv_use_pnm='wxUSE_PNM=no'
5710 fi
5711
5712else
5713
5714 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5715 if test "x$LINE" != x ; then
5716 eval "DEFAULT_$LINE"
5717 else
5718 no_cache=1
5719 fi
5720
5721 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5722
5723fi
5724
5725
5726 eval "$ac_cv_use_pnm"
5727 if test "$no_cache" != 1; then
5728 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5729 fi
5730
5731 if test "$wxUSE_PNM" = yes; then
5732 echo "$ac_t""yes" 1>&6
5733 else
5734 echo "$ac_t""no" 1>&6
5735 fi
5736
5737
b12915c1
VZ
5738fi
5739
10f2d63a
VZ
5740
5741 echo "saving argument cache $wx_arg_cache_file"
5742 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5743
5744
5745
5746echo $ac_n "checking for toolkit""... $ac_c" 1>&6
9b33fe02 5747echo "configure:5748: checking for toolkit" >&5
10f2d63a
VZ
5748
5749if test "$wxUSE_GUI" = "yes"; then
5750
b12915c1
VZ
5751if test "$USE_BEOS" = 1; then
5752 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5753fi
5754
10f2d63a
VZ
5755if test "$TOOLKIT_GIVEN" = 1; then
5756 for toolkit in `echo $ALL_TOOLKITS`; do
5757 var=wxUSE_$toolkit
5758 eval "value=\$${var}"
5759 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5760 done
5761else
5762 for toolkit in `echo $ALL_TOOLKITS`; do
5763 if test "$has_toolkit_in_cache" != 1; then
5764 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5765 else
5766 var=DEFAULT_wxUSE_$toolkit
5767 fi
5768 eval "wxUSE_$toolkit=\$${var}"
5769 done
5770fi
5771
ec14dd32 5772NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 5773
ec14dd32
VZ
5774case "${host}" in
5775 *-pc-os2_emx )
5776 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5777 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5778 LEX_STEM="lexyy"
5779 ;;
5780 *)
5781 PATH_IFS=':'
5782 LEX_STEM="lex.yy"
cf27ef00 5783 PROGRAM_EXT=
ec14dd32
VZ
5784 ;;
5785esac
10f2d63a
VZ
5786
5787case "$NUM_TOOLKITS" in
5788 1)
5789 ;;
5790 0)
5791 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5792 ;;
5793 *)
5794 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5795esac
5796
5797for toolkit in `echo $ALL_TOOLKITS`; do
5798 var=wxUSE_$toolkit
5799 eval "value=\$${var}"
5800 if test "x$value" != x; then
5801 cache_var=CACHE_$toolkit
5802 eval "cache=\$${cache_var}"
5803 if test "$cache" = 1; then
5804 echo "$var=$value" >> ${wx_arg_cache_file}
5805 fi
5806 if test "$value" = 1; then
5807 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5808 fi
5809 fi
5810done
5811
5812else
cf27ef00 5813 PATH_IFS=':'
10f2d63a
VZ
5814 echo "$ac_t""base only" 1>&6
5815fi
5816
5817
5818cat > confcache <<\EOF
5819# This file is a shell script that caches the results of configure
5820# tests run on this system so they can be shared between configure
5821# scripts and configure runs. It is not useful on other systems.
5822# If it contains results you don't want to keep, you may remove or edit it.
5823#
5824# By default, configure uses ./config.cache as the cache file,
5825# creating it if it does not exist already. You can give configure
5826# the --cache-file=FILE option to use a different cache file; that is
5827# what configure does when it calls configure scripts in
5828# subdirectories, so they share the cache.
5829# Giving --cache-file=/dev/null disables caching, for debugging configure.
5830# config.status only pays attention to the cache file if you give it the
5831# --recheck option to rerun configure.
5832#
5833EOF
5834# The following way of writing the cache mishandles newlines in values,
5835# but we know of no workaround that is simple, portable, and efficient.
5836# So, don't put newlines in cache variables' values.
5837# Ultrix sh set writes to stderr and can't be redirected directly,
5838# and sets the high bit in the cache file unless we assign to the vars.
5839(set) 2>&1 |
5840 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5841 *ac_space=\ *)
5842 # `set' does not quote correctly, so add quotes (double-quote substitution
5843 # turns \\\\ into \\, and sed turns \\ into \).
5844 sed -n \
5845 -e "s/'/'\\\\''/g" \
5846 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5847 ;;
5848 *)
5849 # `set' quotes correctly as required by POSIX, so do not add quotes.
5850 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5851 ;;
5852 esac >> confcache
5853if cmp -s $cache_file confcache; then
5854 :
5855else
5856 if test -w $cache_file; then
5857 echo "updating cache $cache_file"
5858 cat confcache > $cache_file
5859 else
5860 echo "not updating unwritable cache $cache_file"
5861 fi
5862fi
5863rm -f confcache
5864
5865
5866if eval "test $host != $build"; then
5867 if eval "test $host_alias != NONE"; then
5868 CC=$host_alias-gcc
5869 CXX=$host_alias-c++
5870 AR=$host_alias-ar
5871 RANLIB=$host_alias-ranlib
5872 DLLTOOL=$host_alias-dlltool
5873 LD=$host_alias-ld
5874 NM=$host_alias-nm
5875 STRIP=$host_alias-strip
5876 fi
5877fi
5878
5879# Extract the first word of "gcc", so it can be a program name with args.
5880set dummy gcc; ac_word=$2
5881echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9b33fe02 5882echo "configure:5883: checking for $ac_word" >&5
10f2d63a
VZ
5883if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6
5885else
5886 if test -n "$CC"; then
5887 ac_cv_prog_CC="$CC" # Let the user override the test.
5888else
5889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5890 ac_dummy="$PATH"
5891 for ac_dir in $ac_dummy; do
5892 test -z "$ac_dir" && ac_dir=.
5893 if test -f $ac_dir/$ac_word; then
5894 ac_cv_prog_CC="gcc"
5895 break
5896 fi
5897 done
5898 IFS="$ac_save_ifs"
5899fi
5900fi
5901CC="$ac_cv_prog_CC"
5902if test -n "$CC"; then
5903 echo "$ac_t""$CC" 1>&6
5904else
5905 echo "$ac_t""no" 1>&6
5906fi
5907
5908if test -z "$CC"; then
5909 # Extract the first word of "cc", so it can be a program name with args.
5910set dummy cc; ac_word=$2
5911echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9b33fe02 5912echo "configure:5913: checking for $ac_word" >&5
10f2d63a
VZ
5913if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5914 echo $ac_n "(cached) $ac_c" 1>&6
5915else
5916 if test -n "$CC"; then
5917 ac_cv_prog_CC="$CC" # Let the user override the test.
5918else
5919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5920 ac_prog_rejected=no
5921 ac_dummy="$PATH"
5922 for ac_dir in $ac_dummy; do
5923 test -z "$ac_dir" && ac_dir=.
5924 if test -f $ac_dir/$ac_word; then
5925 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5926 ac_prog_rejected=yes
5927 continue
5928 fi
5929 ac_cv_prog_CC="cc"
5930 break
5931 fi
5932 done
5933 IFS="$ac_save_ifs"
5934if test $ac_prog_rejected = yes; then
5935 # We found a bogon in the path, so make sure we never use it.
5936 set dummy $ac_cv_prog_CC
5937 shift
5938 if test $# -gt 0; then
5939 # We chose a different compiler from the bogus one.
5940 # However, it has the same basename, so the bogon will be chosen
5941 # first if we set CC to just the basename; use the full file name.
5942 shift
5943 set dummy "$ac_dir/$ac_word" "$@"
5944 shift
5945 ac_cv_prog_CC="$@"
5946 fi
5947fi
5948fi
5949fi
5950CC="$ac_cv_prog_CC"
5951if test -n "$CC"; then
5952 echo "$ac_t""$CC" 1>&6
5953else
5954 echo "$ac_t""no" 1>&6
5955fi
5956
5957 if test -z "$CC"; then
5958 case "`uname -s`" in
5959 *win32* | *WIN32*)
5960 # Extract the first word of "cl", so it can be a program name with args.
5961set dummy cl; ac_word=$2
5962echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9b33fe02 5963echo "configure:5964: checking for $ac_word" >&5
10f2d63a
VZ
5964if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5965 echo $ac_n "(cached) $ac_c" 1>&6
5966else
5967 if test -n "$CC"; then
5968 ac_cv_prog_CC="$CC" # Let the user override the test.
5969else
5970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5971 ac_dummy="$PATH"
5972 for ac_dir in $ac_dummy; do
5973 test -z "$ac_dir" && ac_dir=.
5974 if test -f $ac_dir/$ac_word; then
5975 ac_cv_prog_CC="cl"
5976 break
5977 fi
5978 done
5979 IFS="$ac_save_ifs"
5980fi
5981fi
5982CC="$ac_cv_prog_CC"
5983if test -n "$CC"; then
5984 echo "$ac_t""$CC" 1>&6
5985else
5986 echo "$ac_t""no" 1>&6
5987fi
5988 ;;
5989 esac
5990 fi
5991 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5992fi
5993
5994echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9b33fe02 5995echo "configure:5996: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
5996
5997ac_ext=c
5998# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5999ac_cpp='$CPP $CPPFLAGS'
6000ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6001ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6002cross_compiling=$ac_cv_prog_cc_cross
6003
6004cat > conftest.$ac_ext << EOF
6005
9b33fe02 6006#line 6007 "configure"
10f2d63a
VZ
6007#include "confdefs.h"
6008
6009main(){return(0);}
6010EOF
9b33fe02 6011if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6012 ac_cv_prog_cc_works=yes
6013 # If we can't run a trivial program, we are probably using a cross compiler.
6014 if (./conftest; exit) 2>/dev/null; then
6015 ac_cv_prog_cc_cross=no
6016 else
6017 ac_cv_prog_cc_cross=yes
6018 fi
6019else
6020 echo "configure: failed program was:" >&5
6021 cat conftest.$ac_ext >&5
6022 ac_cv_prog_cc_works=no
6023fi
6024rm -fr conftest*
6025ac_ext=c
6026# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6027ac_cpp='$CPP $CPPFLAGS'
6028ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6029ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6030cross_compiling=$ac_cv_prog_cc_cross
6031
6032echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6033if test $ac_cv_prog_cc_works = no; then
6034 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6035fi
6036echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9b33fe02 6037echo "configure:6038: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6038echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6039cross_compiling=$ac_cv_prog_cc_cross
6040
6041echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9b33fe02 6042echo "configure:6043: checking whether we are using GNU C" >&5
10f2d63a
VZ
6043if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6044 echo $ac_n "(cached) $ac_c" 1>&6
6045else
6046 cat > conftest.c <<EOF
6047#ifdef __GNUC__
6048 yes;
6049#endif
6050EOF
9b33fe02 6051if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6052 ac_cv_prog_gcc=yes
6053else
6054 ac_cv_prog_gcc=no
6055fi
6056fi
6057
6058echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6059
6060if test $ac_cv_prog_gcc = yes; then
6061 GCC=yes
6062else
6063 GCC=
6064fi
6065
6066ac_test_CFLAGS="${CFLAGS+set}"
6067ac_save_CFLAGS="$CFLAGS"
6068CFLAGS=
6069echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9b33fe02 6070echo "configure:6071: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6071if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6072 echo $ac_n "(cached) $ac_c" 1>&6
6073else
6074 echo 'void f(){}' > conftest.c
6075if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6076 ac_cv_prog_cc_g=yes
6077else
6078 ac_cv_prog_cc_g=no
6079fi
6080rm -f conftest*
6081
6082fi
6083
6084echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6085if test "$ac_test_CFLAGS" = set; then
6086 CFLAGS="$ac_save_CFLAGS"
6087elif test $ac_cv_prog_cc_g = yes; then
6088 if test "$GCC" = yes; then
6089 CFLAGS="-g -O2"
6090 else
6091 CFLAGS="-g"
6092 fi
6093else
6094 if test "$GCC" = yes; then
6095 CFLAGS="-O2"
6096 else
6097 CFLAGS=
6098 fi
6099fi
6100
6101
6102CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6103
6104echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9b33fe02 6105echo "configure:6106: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6106# On Suns, sometimes $CPP names a directory.
6107if test -n "$CPP" && test -d "$CPP"; then
6108 CPP=
6109fi
6110if test -z "$CPP"; then
6111if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6112 echo $ac_n "(cached) $ac_c" 1>&6
6113else
6114 # This must be in double quotes, not single quotes, because CPP may get
6115 # substituted into the Makefile and "${CC-cc}" will confuse make.
6116 CPP="${CC-cc} -E"
6117 # On the NeXT, cc -E runs the code through the compiler's parser,
6118 # not just through cpp.
6119 cat > conftest.$ac_ext <<EOF
9b33fe02 6120#line 6121 "configure"
10f2d63a
VZ
6121#include "confdefs.h"
6122#include <assert.h>
6123Syntax Error
6124EOF
6125ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9b33fe02 6126{ (eval echo configure:6127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6127ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6128if test -z "$ac_err"; then
6129 :
6130else
6131 echo "$ac_err" >&5
6132 echo "configure: failed program was:" >&5
6133 cat conftest.$ac_ext >&5
6134 rm -rf conftest*
6135 CPP="${CC-cc} -E -traditional-cpp"
6136 cat > conftest.$ac_ext <<EOF
9b33fe02 6137#line 6138 "configure"
10f2d63a
VZ
6138#include "confdefs.h"
6139#include <assert.h>
6140Syntax Error
6141EOF
6142ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9b33fe02 6143{ (eval echo configure:6144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6144ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6145if test -z "$ac_err"; then
6146 :
6147else
6148 echo "$ac_err" >&5
6149 echo "configure: failed program was:" >&5
6150 cat conftest.$ac_ext >&5
6151 rm -rf conftest*
6152 CPP="${CC-cc} -nologo -E"
6153 cat > conftest.$ac_ext <<EOF
9b33fe02 6154#line 6155 "configure"
10f2d63a
VZ
6155#include "confdefs.h"
6156#include <assert.h>
6157Syntax Error
6158EOF
6159ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9b33fe02 6160{ (eval echo configure:6161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6161ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6162if test -z "$ac_err"; then
6163 :
6164else
6165 echo "$ac_err" >&5
6166 echo "configure: failed program was:" >&5
6167 cat conftest.$ac_ext >&5
6168 rm -rf conftest*
6169 CPP=/lib/cpp
6170fi
6171rm -f conftest*
6172fi
6173rm -f conftest*
6174fi
6175rm -f conftest*
6176 ac_cv_prog_CPP="$CPP"
6177fi
6178 CPP="$ac_cv_prog_CPP"
6179else
6180 ac_cv_prog_CPP="$CPP"
6181fi
6182echo "$ac_t""$CPP" 1>&6
6183
6184
6185if test $ac_cv_prog_gcc = yes; then
6186 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9b33fe02 6187echo "configure:6188: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6188if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6189 echo $ac_n "(cached) $ac_c" 1>&6
6190else
6191 ac_pattern="Autoconf.*'x'"
6192 cat > conftest.$ac_ext <<EOF
9b33fe02 6193#line 6194 "configure"
10f2d63a
VZ
6194#include "confdefs.h"
6195#include <sgtty.h>
6196Autoconf TIOCGETP
6197EOF
6198if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6199 egrep "$ac_pattern" >/dev/null 2>&1; then
6200 rm -rf conftest*
6201 ac_cv_prog_gcc_traditional=yes
6202else
6203 rm -rf conftest*
6204 ac_cv_prog_gcc_traditional=no
6205fi
6206rm -f conftest*
6207
6208
6209 if test $ac_cv_prog_gcc_traditional = no; then
6210 cat > conftest.$ac_ext <<EOF
9b33fe02 6211#line 6212 "configure"
10f2d63a
VZ
6212#include "confdefs.h"
6213#include <termio.h>
6214Autoconf TCGETA
6215EOF
6216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6217 egrep "$ac_pattern" >/dev/null 2>&1; then
6218 rm -rf conftest*
6219 ac_cv_prog_gcc_traditional=yes
6220fi
6221rm -f conftest*
6222
6223 fi
6224fi
6225
6226echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6227 if test $ac_cv_prog_gcc_traditional = yes; then
6228 CC="$CC -traditional"
6229 fi
6230fi
6231
6232
6233
6234ac_ext=C
6235# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6236ac_cpp='$CXXCPP $CPPFLAGS'
6237ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6238ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6239cross_compiling=$ac_cv_prog_cxx_cross
6240
6241
6242for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6243do
6244# Extract the first word of "$ac_prog", so it can be a program name with args.
6245set dummy $ac_prog; ac_word=$2
6246echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9b33fe02 6247echo "configure:6248: checking for $ac_word" >&5
10f2d63a
VZ
6248if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6250else
6251 if test -n "$CXX"; then
6252 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6253else
6254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6255 ac_dummy="$PATH"
6256 for ac_dir in $ac_dummy; do
6257 test -z "$ac_dir" && ac_dir=.
6258 if test -f $ac_dir/$ac_word; then
6259 ac_cv_prog_CXX="$ac_prog"
6260 break
6261 fi
6262 done
6263 IFS="$ac_save_ifs"
6264fi
6265fi
6266CXX="$ac_cv_prog_CXX"
6267if test -n "$CXX"; then
6268 echo "$ac_t""$CXX" 1>&6
6269else
6270 echo "$ac_t""no" 1>&6
6271fi
6272
6273test -n "$CXX" && break
6274done
6275test -n "$CXX" || CXX="gcc"
6276
6277
6278echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9b33fe02 6279echo "configure:6280: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6280
6281ac_ext=C
6282# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6283ac_cpp='$CXXCPP $CPPFLAGS'
6284ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6285ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6286cross_compiling=$ac_cv_prog_cxx_cross
6287
6288cat > conftest.$ac_ext << EOF
6289
9b33fe02 6290#line 6291 "configure"
10f2d63a
VZ
6291#include "confdefs.h"
6292
6293int main(){return(0);}
6294EOF
9b33fe02 6295if { (eval echo configure:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6296 ac_cv_prog_cxx_works=yes
6297 # If we can't run a trivial program, we are probably using a cross compiler.
6298 if (./conftest; exit) 2>/dev/null; then
6299 ac_cv_prog_cxx_cross=no
6300 else
6301 ac_cv_prog_cxx_cross=yes
6302 fi
6303else
6304 echo "configure: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6306 ac_cv_prog_cxx_works=no
6307fi
6308rm -fr conftest*
6309ac_ext=C
6310# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6311ac_cpp='$CXXCPP $CPPFLAGS'
6312ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6313ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6314cross_compiling=$ac_cv_prog_cxx_cross
6315
6316echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6317if test $ac_cv_prog_cxx_works = no; then
6318 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6319fi
6320echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9b33fe02 6321echo "configure:6322: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6322echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6323cross_compiling=$ac_cv_prog_cxx_cross
6324
6325echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9b33fe02 6326echo "configure:6327: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6327if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6329else
6330 cat > conftest.C <<EOF
6331#ifdef __GNUC__
6332 yes;
6333#endif
6334EOF
9b33fe02 6335if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6336 ac_cv_prog_gxx=yes
6337else
6338 ac_cv_prog_gxx=no
6339fi
6340fi
6341
6342echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6343
6344if test $ac_cv_prog_gxx = yes; then
6345 GXX=yes
6346else
6347 GXX=
6348fi
6349
6350ac_test_CXXFLAGS="${CXXFLAGS+set}"
6351ac_save_CXXFLAGS="$CXXFLAGS"
6352CXXFLAGS=
6353echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9b33fe02 6354echo "configure:6355: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6355if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6
6357else
6358 echo 'void f(){}' > conftest.cc
6359if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6360 ac_cv_prog_cxx_g=yes
6361else
6362 ac_cv_prog_cxx_g=no
6363fi
6364rm -f conftest*
6365
6366fi
6367
6368echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6369if test "$ac_test_CXXFLAGS" = set; then
6370 CXXFLAGS="$ac_save_CXXFLAGS"
6371elif test $ac_cv_prog_cxx_g = yes; then
6372 if test "$GXX" = yes; then
6373 CXXFLAGS="-g -O2"
6374 else
6375 CXXFLAGS="-g"
6376 fi
6377else
6378 if test "$GXX" = yes; then
6379 CXXFLAGS="-O2"
6380 else
6381 CXXFLAGS=
6382 fi
6383fi
6384
6385
6386echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
9b33fe02 6387echo "configure:6388: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6388if test -z "$CXXCPP"; then
6389if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6390 echo $ac_n "(cached) $ac_c" 1>&6
6391else
6392 ac_ext=C
6393# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6394ac_cpp='$CXXCPP $CPPFLAGS'
6395ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6396ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6397cross_compiling=$ac_cv_prog_cxx_cross
6398 CXXCPP="${CXX-g++} -E"
6399 cat > conftest.$ac_ext <<EOF
9b33fe02 6400#line 6401 "configure"
10f2d63a
VZ
6401#include "confdefs.h"
6402#include <stdlib.h>
6403EOF
6404ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9b33fe02 6405{ (eval echo configure:6406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6406ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6407if test -z "$ac_err"; then
6408 :
6409else
6410 echo "$ac_err" >&5
6411 echo "configure: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6413 rm -rf conftest*
6414 CXXCPP=/lib/cpp
6415fi
6416rm -f conftest*
6417 ac_cv_prog_CXXCPP="$CXXCPP"
6418ac_ext=C
6419# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6420ac_cpp='$CXXCPP $CPPFLAGS'
6421ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6422ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6423cross_compiling=$ac_cv_prog_cxx_cross
6424fi
6425fi
6426CXXCPP="$ac_cv_prog_CXXCPP"
6427echo "$ac_t""$CXXCPP" 1>&6
6428
6429
6430CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6431
6432ac_ext=c
6433# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6434ac_cpp='$CPP $CPPFLAGS'
6435ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6436ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6437cross_compiling=$ac_cv_prog_cc_cross
6438
6439
6440# Extract the first word of "ranlib", so it can be a program name with args.
6441set dummy ranlib; ac_word=$2
6442echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9b33fe02 6443echo "configure:6444: checking for $ac_word" >&5
10f2d63a
VZ
6444if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6445 echo $ac_n "(cached) $ac_c" 1>&6
6446else
6447 if test -n "$RANLIB"; then
6448 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6449else
6450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6451 ac_dummy="$PATH"
6452 for ac_dir in $ac_dummy; do
6453 test -z "$ac_dir" && ac_dir=.
6454 if test -f $ac_dir/$ac_word; then
6455 ac_cv_prog_RANLIB="ranlib"
6456 break
6457 fi
6458 done
6459 IFS="$ac_save_ifs"
6460 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6461fi
6462fi
6463RANLIB="$ac_cv_prog_RANLIB"
6464if test -n "$RANLIB"; then
6465 echo "$ac_t""$RANLIB" 1>&6
6466else
6467 echo "$ac_t""no" 1>&6
6468fi
6469
6470
6471# Extract the first word of "ar", so it can be a program name with args.
6472set dummy ar; ac_word=$2
6473echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9b33fe02 6474echo "configure:6475: checking for $ac_word" >&5
10f2d63a
VZ
6475if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6476 echo $ac_n "(cached) $ac_c" 1>&6
6477else
6478 if test -n "$AR"; then
6479 ac_cv_prog_AR="$AR" # Let the user override the test.
6480else
6481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6482 ac_dummy="$PATH"
6483 for ac_dir in $ac_dummy; do
6484 test -z "$ac_dir" && ac_dir=.
6485 if test -f $ac_dir/$ac_word; then
6486 ac_cv_prog_AR="ar"
6487 break
6488 fi
6489 done
6490 IFS="$ac_save_ifs"
6491 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6492fi
6493fi
6494AR="$ac_cv_prog_AR"
6495if test -n "$AR"; then
6496 echo "$ac_t""$AR" 1>&6
6497else
6498 echo "$ac_t""no" 1>&6
6499fi
6500
6501
6502# Find a good install program. We prefer a C program (faster),
6503# so one script is as good as another. But avoid the broken or
6504# incompatible versions:
6505# SysV /etc/install, /usr/sbin/install
6506# SunOS /usr/etc/install
6507# IRIX /sbin/install
6508# AIX /bin/install
6509# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6510# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6511# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6512# ./install, which can be erroneously created by make from ./install.sh.
6513echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9b33fe02 6514echo "configure:6515: checking for a BSD compatible install" >&5
10f2d63a
VZ
6515if test -z "$INSTALL"; then
6516if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6517 echo $ac_n "(cached) $ac_c" 1>&6
6518else
6519 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6520 for ac_dir in $PATH; do
6521 # Account for people who put trailing slashes in PATH elements.
6522 case "$ac_dir/" in
6523 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6524 *)
6525 # OSF1 and SCO ODT 3.0 have their own names for install.
6526 # Don't use installbsd from OSF since it installs stuff as root
6527 # by default.
6528 for ac_prog in ginstall scoinst install; do
6529 if test -f $ac_dir/$ac_prog; then
6530 if test $ac_prog = install &&
6531 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6532 # AIX install. It has an incompatible calling convention.
6533 :
6534 else
6535 ac_cv_path_install="$ac_dir/$ac_prog -c"
6536 break 2
6537 fi
6538 fi
6539 done
6540 ;;
6541 esac
6542 done
6543 IFS="$ac_save_IFS"
6544
6545fi
6546 if test "${ac_cv_path_install+set}" = set; then
6547 INSTALL="$ac_cv_path_install"
6548 else
6549 # As a last resort, use the slow shell script. We don't cache a
6550 # path for INSTALL within a source directory, because that will
6551 # break other packages using the cache if that directory is
6552 # removed, or if the path is relative.
6553 INSTALL="$ac_install_sh"
6554 fi
6555fi
6556echo "$ac_t""$INSTALL" 1>&6
6557
6558# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6559# It thinks the first close brace ends the variable substitution.
6560test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6561
6562test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6563
6564test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6565
6566
6567# Extract the first word of "strip", so it can be a program name with args.
6568set dummy strip; ac_word=$2
6569echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9b33fe02 6570echo "configure:6571: checking for $ac_word" >&5
10f2d63a
VZ
6571if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6572 echo $ac_n "(cached) $ac_c" 1>&6
6573else
6574 if test -n "$STRIP"; then
6575 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6576else
6577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6578 ac_dummy="$PATH"
6579 for ac_dir in $ac_dummy; do
6580 test -z "$ac_dir" && ac_dir=.
6581 if test -f $ac_dir/$ac_word; then
6582 ac_cv_prog_STRIP="strip"
6583 break
6584 fi
6585 done
6586 IFS="$ac_save_ifs"
6587 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6588fi
6589fi
6590STRIP="$ac_cv_prog_STRIP"
6591if test -n "$STRIP"; then
6592 echo "$ac_t""$STRIP" 1>&6
6593else
6594 echo "$ac_t""no" 1>&6
6595fi
6596
6597
6598echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
9b33fe02 6599echo "configure:6600: checking "make for VPATH support"" >&5
10f2d63a
VZ
6600cat - << EOF > confMake
6601check : file
6602 cp \$? \$@
6603 cp \$? final_file
6604EOF
6605
6606if test ! -d sub ; then
6607 mkdir sub
6608fi
6609echo dummy > sub/file
6610${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6611RESULT=$?
6612rm -f sub/file check final_file confMake
6613rmdir sub
6614if test "$RESULT" = 0; then
6615 echo "$ac_t""yes" 1>&6
6616else
6617 echo "$ac_t""no" 1>&6
6618 { echo "configure: error: You need a make-utility that is able to use the variable
6619VPATH correctly.
6620If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6621fi
6622
6623for ac_prog in 'bison -y' byacc
6624do
6625# Extract the first word of "$ac_prog", so it can be a program name with args.
6626set dummy $ac_prog; ac_word=$2
6627echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9b33fe02 6628echo "configure:6629: checking for $ac_word" >&5
10f2d63a
VZ
6629if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6630 echo $ac_n "(cached) $ac_c" 1>&6
6631else
6632 if test -n "$YACC"; then
6633 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6634else
6635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6636 ac_dummy="$PATH"
6637 for ac_dir in $ac_dummy; do
6638 test -z "$ac_dir" && ac_dir=.
6639 if test -f $ac_dir/$ac_word; then
6640 ac_cv_prog_YACC="$ac_prog"
6641 break
6642 fi
6643 done
6644 IFS="$ac_save_ifs"
6645fi
6646fi
6647YACC="$ac_cv_prog_YACC"
6648if test -n "$YACC"; then
6649 echo "$ac_t""$YACC" 1>&6
6650else
6651 echo "$ac_t""no" 1>&6
6652fi
6653
6654test -n "$YACC" && break
6655done
6656test -n "$YACC" || YACC="yacc"
6657
6658
6659# Extract the first word of "flex", so it can be a program name with args.
6660set dummy flex; ac_word=$2
6661echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9b33fe02 6662echo "configure:6663: checking for $ac_word" >&5
10f2d63a
VZ
6663if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6664 echo $ac_n "(cached) $ac_c" 1>&6
6665else
6666 if test -n "$LEX"; then
6667 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6668else
6669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6670 ac_dummy="$PATH"
6671 for ac_dir in $ac_dummy; do
6672 test -z "$ac_dir" && ac_dir=.
6673 if test -f $ac_dir/$ac_word; then
6674 ac_cv_prog_LEX="flex"
6675 break
6676 fi
6677 done
6678 IFS="$ac_save_ifs"
6679 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6680fi
6681fi
6682LEX="$ac_cv_prog_LEX"
6683if test -n "$LEX"; then
6684 echo "$ac_t""$LEX" 1>&6
6685else
6686 echo "$ac_t""no" 1>&6
6687fi
6688
6689if test -z "$LEXLIB"
6690then
6691 case "$LEX" in
6692 flex*) ac_lib=fl ;;
6693 *) ac_lib=l ;;
6694 esac
6695 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9b33fe02 6696echo "configure:6697: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6697ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6698if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6699 echo $ac_n "(cached) $ac_c" 1>&6
6700else
6701 ac_save_LIBS="$LIBS"
6702LIBS="-l$ac_lib $LIBS"
6703cat > conftest.$ac_ext <<EOF
9b33fe02 6704#line 6705 "configure"
10f2d63a
VZ
6705#include "confdefs.h"
6706/* Override any gcc2 internal prototype to avoid an error. */
6707/* We use char because int might match the return type of a gcc2
6708 builtin and then its argument prototype would still apply. */
6709char yywrap();
6710
6711int main() {
6712yywrap()
6713; return 0; }
6714EOF
9b33fe02 6715if { (eval echo configure:6716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6716 rm -rf conftest*
6717 eval "ac_cv_lib_$ac_lib_var=yes"
6718else
6719 echo "configure: failed program was:" >&5
6720 cat conftest.$ac_ext >&5
6721 rm -rf conftest*
6722 eval "ac_cv_lib_$ac_lib_var=no"
6723fi
6724rm -f conftest*
6725LIBS="$ac_save_LIBS"
6726
6727fi
6728if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6729 echo "$ac_t""yes" 1>&6
6730 LEXLIB="-l$ac_lib"
6731else
6732 echo "$ac_t""no" 1>&6
6733fi
6734
6735fi
6736
6737
6738echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9b33fe02 6739echo "configure:6740: checking whether ln -s works" >&5
10f2d63a
VZ
6740if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6741 echo $ac_n "(cached) $ac_c" 1>&6
6742else
6743 rm -f conftestdata
6744if ln -s X conftestdata 2>/dev/null
6745then
6746 rm -f conftestdata
6747 ac_cv_prog_LN_S="ln -s"
6748else
6749 ac_cv_prog_LN_S=ln
6750fi
6751fi
6752LN_S="$ac_cv_prog_LN_S"
6753if test "$ac_cv_prog_LN_S" = "ln -s"; then
6754 echo "$ac_t""yes" 1>&6
6755else
6756 echo "$ac_t""no" 1>&6
6757fi
6758
6759
6760
6761SEARCH_INCLUDE="\
6762 /usr/local/include \
6763 \
6764 /usr/Motif-1.2/include \
6765 /usr/Motif-2.1/include \
6766 \
6767 /usr/include/Motif1.2 \
6768 /opt/xpm/include/X11 \
6769 /opt/GBxpm/include/ \
6770 /opt/GBxpm/X11/include/ \
6771 \
6772 /usr/Motif1.2/include \
6773 /usr/dt/include \
afc31813
VZ
6774 /usr/openwin/include \
6775 \
10f2d63a
VZ
6776 /usr/include/Xm \
6777 \
6778 /usr/X11R6/include \
afc31813 6779 /usr/X11R6.4/include \
10f2d63a
VZ
6780 /usr/X11R5/include \
6781 /usr/X11R4/include \
6782 \
10f2d63a
VZ
6783 /usr/include/X11R6 \
6784 /usr/include/X11R5 \
6785 /usr/include/X11R4 \
6786 \
6787 /usr/local/X11R6/include \
6788 /usr/local/X11R5/include \
6789 /usr/local/X11R4/include \
6790 \
6791 /usr/local/include/X11R6 \
6792 /usr/local/include/X11R5 \
6793 /usr/local/include/X11R4 \
6794 \
6795 /usr/X11/include \
6796 /usr/include/X11 \
6797 /usr/local/X11/include \
6798 /usr/local/include/X11 \
6799 \
6800 /usr/X386/include \
6801 /usr/x386/include \
6802 /usr/XFree86/include/X11 \
6803 \
cf27ef00 6804 X:/XFree86/include \
ec14dd32
VZ
6805 X:/XFree86/include/X11 \
6806 \
10f2d63a
VZ
6807 /usr/include/gtk \
6808 /usr/local/include/gtk \
6809 /usr/include/glib \
6810 /usr/local/include/glib \
6811 \
6812 /usr/include/qt \
6813 /usr/local/include/qt \
6814 \
6815 /usr/include/windows \
6816 /usr/include/wine \
6817 /usr/local/include/wine \
6818 \
6819 /usr/unsupported/include \
6820 /usr/athena/include \
6821 /usr/local/x11r5/include \
6822 /usr/lpp/Xamples/include \
6823 \
10f2d63a 6824 /usr/openwin/share/include \
928b5c08
VZ
6825 \
6826 /usr/include"
10f2d63a
VZ
6827
6828SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6829
6830
6831cat > confcache <<\EOF
6832# This file is a shell script that caches the results of configure
6833# tests run on this system so they can be shared between configure
6834# scripts and configure runs. It is not useful on other systems.
6835# If it contains results you don't want to keep, you may remove or edit it.
6836#
6837# By default, configure uses ./config.cache as the cache file,
6838# creating it if it does not exist already. You can give configure
6839# the --cache-file=FILE option to use a different cache file; that is
6840# what configure does when it calls configure scripts in
6841# subdirectories, so they share the cache.
6842# Giving --cache-file=/dev/null disables caching, for debugging configure.
6843# config.status only pays attention to the cache file if you give it the
6844# --recheck option to rerun configure.
6845#
6846EOF
6847# The following way of writing the cache mishandles newlines in values,
6848# but we know of no workaround that is simple, portable, and efficient.
6849# So, don't put newlines in cache variables' values.
6850# Ultrix sh set writes to stderr and can't be redirected directly,
6851# and sets the high bit in the cache file unless we assign to the vars.
6852(set) 2>&1 |
6853 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6854 *ac_space=\ *)
6855 # `set' does not quote correctly, so add quotes (double-quote substitution
6856 # turns \\\\ into \\, and sed turns \\ into \).
6857 sed -n \
6858 -e "s/'/'\\\\''/g" \
6859 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6860 ;;
6861 *)
6862 # `set' quotes correctly as required by POSIX, so do not add quotes.
6863 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6864 ;;
6865 esac >> confcache
6866if cmp -s $cache_file confcache; then
6867 :
6868else
6869 if test -w $cache_file; then
6870 echo "updating cache $cache_file"
6871 cat confcache > $cache_file
6872 else
6873 echo "not updating unwritable cache $cache_file"
6874 fi
6875fi
6876rm -f confcache
6877
6878
6879
dad6c0ea
VZ
6880AFMINSTALL=
6881
10f2d63a
VZ
6882if test "$wxUSE_GUI" = "yes"; then
6883
dad6c0ea
VZ
6884USE_GUI=1
6885
10f2d63a
VZ
6886TOOLKIT=
6887TOOLKIT_INCLUDE=
6888
6889GUIOBJS=
6890COMMONOBJS=
6891GENERICOBJS=
6892
6893GUI_TK_LIBRARY=
6894GUI_TK_LINK=
6895
6896WXGTK12=
13111b2a 6897WXGTK13=
10f2d63a
VZ
6898
6899WXWINE=
6900
10f2d63a
VZ
6901if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6902 if test "$cross_compiling" = "yes" ; then
6903 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6904 else
6905 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
9b33fe02 6906echo "configure:6907: checking for Windows headers" >&5
10f2d63a
VZ
6907
6908ac_find_includes=
6909for ac_dir in $SEARCH_INCLUDE;
6910 do
6911 if test -f "$ac_dir/windows.h"; then
6912 ac_find_includes=$ac_dir
6913 break
6914 fi
6915 done
6916
6917 if test "$ac_find_includes" != "" ; then
6918 echo "$ac_t""found $ac_find_includes" 1>&6
6919 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6920 else
6921 echo "$ac_t""no" 1>&6
6922 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6923 fi
6924 fi
6925
6926 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6927 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6928
6929 if test "$wxUSE_MINGW" = 1; then
6930 LDFLAGS="$LDFLAGS -mwindows"
6931 fi
6932
6933 TOOLKIT=MSW
6934
6935 GUIOBJS="\$(MSW_GUIOBJS)"
6936 GUIHEADERS="\$(MSW_HEADERS)"
6937 COMMONOBJS="\$(MSW_COMMONOBJS)"
6938 GENERICOBJS="\$(MSW_GENERICOBJS)"
6939 UNIXOBJS=
6940 GUIDIST=MSW_DIST
10f2d63a
VZ
6941fi
6942
6943if test "$wxUSE_GTK" = 1; then
6944
6945 if test x$gtk_config_exec_prefix != x ; then
6946 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6947 if test x${GTK_CONFIG+set} != xset ; then
6948 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6949 fi
6950 fi
6951 if test x$gtk_config_prefix != x ; then
6952 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6953 if test x${GTK_CONFIG+set} != xset ; then
6954 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6955 fi
6956 fi
6957
6958 # Extract the first word of "gtk-config", so it can be a program name with args.
6959set dummy gtk-config; ac_word=$2
6960echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9b33fe02 6961echo "configure:6962: checking for $ac_word" >&5
10f2d63a
VZ
6962if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6964else
6965 case "$GTK_CONFIG" in
6966 /*)
6967 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6968 ;;
6969 ?:/*)
6970 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6971 ;;
6972 *)
6973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6974 ac_dummy="$PATH"
6975 for ac_dir in $ac_dummy; do
6976 test -z "$ac_dir" && ac_dir=.
6977 if test -f $ac_dir/$ac_word; then
6978 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6979 break
6980 fi
6981 done
6982 IFS="$ac_save_ifs"
6983 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6984 ;;
6985esac
6986fi
6987GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6988if test -n "$GTK_CONFIG"; then
6989 echo "$ac_t""$GTK_CONFIG" 1>&6
6990else
6991 echo "$ac_t""no" 1>&6
6992fi
6993
04165bec 6994 min_gtk_version=1.2.3
10f2d63a 6995 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9b33fe02 6996echo "configure:6997: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
6997 no_gtk=""
6998 if test "$GTK_CONFIG" != "no" ; then
6999 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7000 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7001 ac_save_CFLAGS="$CFLAGS"
7002 ac_save_LIBS="$LIBS"
7003 CFLAGS="$CFLAGS $GTK_CFLAGS"
7004 LIBS="$LIBS $GTK_LIBS"
7005 if test "$cross_compiling" = yes; then
7006 echo $ac_n "cross compiling; assumed OK... $ac_c"
7007else
7008 cat > conftest.$ac_ext <<EOF
9b33fe02 7009#line 7010 "configure"
10f2d63a
VZ
7010#include "confdefs.h"
7011
7012#include <gtk/gtk.h>
f49f2b0c 7013#include <gtk/gtkfeatures.h>
10f2d63a
VZ
7014#include <stdio.h>
7015
7016int
7017main ()
7018{
7019 int major, minor, micro;
7020
7021 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7022 printf("%s, bad version string\n", "$min_gtk_version");
7023 exit(1);
7024 }
7025
f49f2b0c
RR
7026 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7027 (GTK_MINOR_VERSION != gtk_minor_version) ||
7028 (GTK_MICRO_VERSION != gtk_micro_version)) {
7029 printf("Headers vs. library version mismatch!\n");
7030 exit(1);
7031 }
7032
10f2d63a
VZ
7033 if (gtk_minor_version == 1) return FALSE;
7034
7035 return !((gtk_major_version > major) ||
7036 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7037 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7038}
7039
7040EOF
9b33fe02 7041if { (eval echo configure:7042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7042then
7043 :
7044else
7045 echo "configure: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7047 rm -fr conftest*
7048 no_gtk=yes
7049fi
7050rm -fr conftest*
7051fi
7052
7053 CFLAGS="$ac_save_CFLAGS"
7054 LIBS="$ac_save_LIBS"
7055 else
7056 no_gtk=yes
7057 fi
7058 if test "x$no_gtk" = x ; then
7059 echo "$ac_t""yes" 1>&6
7060 WXGTK12=1
7061 else
7062 echo "$ac_t""no" 1>&6
7063 GTK_CFLAGS=""
7064 GTK_LIBS=""
7e99ad86 7065 :
10f2d63a
VZ
7066 fi
7067
7068
7069
7070
7e99ad86
VZ
7071 if test "$WXGTK12" != 1; then
7072 { echo "configure: error:
7073 Please check that gtk-config is in path, the directory
7074 where GTK+ libraries are installed (returned by
7075 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7076 equivalent variable and GTK+ is version 1.2.3 or above.
7077 " 1>&2; exit 1; }
7078 fi
7079
7080
10f2d63a 7081 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7082
7083
7084 GUI_TK_LIBRARY="$GTK_LIBS"
7085
10f2d63a
VZ
7086 TOOLKIT=GTK
7087
dad6c0ea
VZ
7088 AFMINSTALL=afminstall
7089
10f2d63a
VZ
7090 GUIOBJS="\$(GTK_GUIOBJS)"
7091 GUIHEADERS="\$(GTK_HEADERS)"
7092 COMMONOBJS="\$(GTK_COMMONOBJS)"
7093 GENERICOBJS="\$(GTK_GENERICOBJS)"
7094 GUIDEPS="\$(GTK_GUIDEPS)"
7095 COMMONDEPS="\$(GTK_COMMONDEPS)"
7096 GENERICDEPS="\$(GTK_GENERICDEPS)"
7097 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7098 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7099 GUIDIST=GTK_DIST
7ec2881a 7100
2224580a 7101 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9b33fe02 7102echo "configure:7103: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7103ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7104if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7105 echo $ac_n "(cached) $ac_c" 1>&6
7106else
7107 ac_save_LIBS="$LIBS"
7108LIBS="-lgdk $LIBS"
7109cat > conftest.$ac_ext <<EOF
9b33fe02 7110#line 7111 "configure"
7ec2881a
RR
7111#include "confdefs.h"
7112/* Override any gcc2 internal prototype to avoid an error. */
7113/* We use char because int might match the return type of a gcc2
7114 builtin and then its argument prototype would still apply. */
7115char gdk_im_open();
7116
7117int main() {
7118gdk_im_open()
7119; return 0; }
7120EOF
9b33fe02 7121if { (eval echo configure:7122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7122 rm -rf conftest*
7123 eval "ac_cv_lib_$ac_lib_var=yes"
7124else
7125 echo "configure: failed program was:" >&5
7126 cat conftest.$ac_ext >&5
7127 rm -rf conftest*
7128 eval "ac_cv_lib_$ac_lib_var=no"
7129fi
7130rm -f conftest*
7131LIBS="$ac_save_LIBS"
7132
7133fi
7134if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7135 echo "$ac_t""yes" 1>&6
7136 cat >> confdefs.h <<\EOF
7137#define HAVE_XIM 1
7138EOF
7139
7140else
7141 echo "$ac_t""no" 1>&6
7142fi
7143
10f2d63a
VZ
7144fi
7145
7146if test "$wxUSE_WINE" = 1; then
7147 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9b33fe02 7148echo "configure:7149: checking for WINE includes" >&5
10f2d63a
VZ
7149
7150ac_find_includes=
7151for ac_dir in $SEARCH_INCLUDE;
7152 do
7153 if test -f "$ac_dir/windows.h"; then
7154 ac_find_includes=$ac_dir
7155 break
7156 fi
7157 done
7158
7159 if test "$ac_find_includes" != "" ; then
7160 echo "$ac_t""found $ac_find_includes" 1>&6
7161 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7162 else
7163 echo "$ac_t""no" 1>&6
7164 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7165 fi
7166
7167 XPM_LINK=""
7168 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9b33fe02 7169echo "configure:7170: checking for Xpm library" >&5
10f2d63a
VZ
7170
7171ac_find_libraries=
7172for ac_dir in $SEARCH_LIB;
7173 do
7174 for ac_extension in a so sl; do
7175 if test -f "$ac_dir/libXpm.$ac_extension"; then
7176 ac_find_libraries=$ac_dir
7177 break 2
7178 fi
7179 done
7180 done
7181
7182 if test "$ac_find_libraries" != "" ; then
7183 GUI_TK_LIBRARY="-L$ac_find_libraries"
7184 XPM_LINK="-lXpm"
7185 cat >> confdefs.h <<\EOF
7186#define wxHAVE_LIB_XPM 1
7187EOF
7188
7189 echo "$ac_t""found at $ac_find_libraries" 1>&6
7190 else
7191 echo "$ac_t""no" 1>&6
7192 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7193 fi
7194
7195 MESA_LINK=""
7196 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9b33fe02 7197echo "configure:7198: checking for Mesa library" >&5
10f2d63a
VZ
7198
7199ac_find_libraries=
7200for ac_dir in $SEARCH_LIB;
7201 do
7202 for ac_extension in a so sl; do
7203 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7204 ac_find_libraries=$ac_dir
7205 break 2
7206 fi
7207 done
7208 done
7209
7210 if test "$ac_find_libraries" != "" ; then
7211 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7212 MESA_LINK="-lMesaGL"
7213 echo "$ac_t""found at $ac_find_libraries" 1>&6
7214 else
7215 { echo "configure: error: no" 1>&2; exit 1; }
7216 fi
7217
7218 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7219 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7220 WXWINE=1
7221 TOOLKIT=MSW
7222
7223 GUIHEADERS="\$(MSW_HEADERS)"
7224 GUIOBJS="\$(MSW_GUIOBJS)"
7225 COMMONOBJS="\$(MSW_COMMONOBJS)"
7226 GENERICOBJS="\$(MSW_GENERICOBJS)"
7227 GUIDEPS="\$(MSW_GUIDEPS)"
7228 COMMONDEPS="\$(MSW_COMMONDEPS)"
7229 GENERICDEPS="\$(MSW_GENERICDEPS)"
7230 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7231 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7232 GUIDIST=MSW_DIST
7233fi
7234
7235if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7236 # If we find X, set shell vars x_includes and x_libraries to the
7237# paths, otherwise set no_x=yes.
7238# Uses ac_ vars as temps to allow command line to override cache and checks.
7239# --without-x overrides everything else, but does not touch the cache.
7240echo $ac_n "checking for X""... $ac_c" 1>&6
9b33fe02 7241echo "configure:7242: checking for X" >&5
ab9b9eab
VZ
7242
7243# Check whether --with-x or --without-x was given.
7244if test "${with_x+set}" = set; then
7245 withval="$with_x"
7246 :
7247fi
ba337fe7 7248
ab9b9eab
VZ
7249# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7250if test "x$with_x" = xno; then
7251 # The user explicitly disabled X.
7252 have_x=disabled
7253else
7254 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7255 # Both variables are already set.
7256 have_x=yes
7257 else
7258if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7259 echo $ac_n "(cached) $ac_c" 1>&6
7260else
7261 # One or both of the vars are not set, and there is no cached value.
7262ac_x_includes=NO ac_x_libraries=NO
7263rm -fr conftestdir
7264if mkdir conftestdir; then
7265 cd conftestdir
7266 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7267 cat > Imakefile <<'EOF'
7268acfindx:
7269 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7270EOF
7271 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7272 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7273 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7274 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7275 for ac_extension in a so sl; do
ab9b9eab
VZ
7276 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7277 test -f $ac_im_libdir/libX11.$ac_extension; then
7278 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7279 fi
7280 done
ab9b9eab
VZ
7281 # Screen out bogus values from the imake configuration. They are
7282 # bogus both because they are the default anyway, and because
7283 # using them would break gcc on systems where it needs fixed includes.
7284 case "$ac_im_incroot" in
7285 /usr/include) ;;
7286 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7287 esac
7288 case "$ac_im_usrlibdir" in
7289 /usr/lib | /lib) ;;
7290 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7291 esac
ba337fe7 7292 fi
ab9b9eab
VZ
7293 cd ..
7294 rm -fr conftestdir
7295fi
10f2d63a 7296
ab9b9eab
VZ
7297if test "$ac_x_includes" = NO; then
7298 # Guess where to find include files, by looking for this one X11 .h file.
7299 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7300
ab9b9eab
VZ
7301 # First, try using that file with no special directory specified.
7302cat > conftest.$ac_ext <<EOF
9b33fe02 7303#line 7304 "configure"
ab9b9eab
VZ
7304#include "confdefs.h"
7305#include <$x_direct_test_include>
7306EOF
7307ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9b33fe02 7308{ (eval echo configure:7309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7309ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7310if test -z "$ac_err"; then
7311 rm -rf conftest*
7312 # We can compile using X headers with no special include directory.
7313ac_x_includes=
7314else
7315 echo "$ac_err" >&5
7316 echo "configure: failed program was:" >&5
7317 cat conftest.$ac_ext >&5
7318 rm -rf conftest*
7319 # Look for the header file in a standard set of common directories.
7320# Check X11 before X11Rn because it is often a symlink to the current release.
7321 for ac_dir in \
7322 /usr/X11/include \
7323 /usr/X11R6/include \
7324 /usr/X11R5/include \
7325 /usr/X11R4/include \
7326 \
7327 /usr/include/X11 \
7328 /usr/include/X11R6 \
7329 /usr/include/X11R5 \
7330 /usr/include/X11R4 \
7331 \
7332 /usr/local/X11/include \
7333 /usr/local/X11R6/include \
7334 /usr/local/X11R5/include \
7335 /usr/local/X11R4/include \
7336 \
7337 /usr/local/include/X11 \
7338 /usr/local/include/X11R6 \
7339 /usr/local/include/X11R5 \
7340 /usr/local/include/X11R4 \
7341 \
7342 /usr/X386/include \
7343 /usr/x386/include \
7344 /usr/XFree86/include/X11 \
7345 \
7346 /usr/include \
7347 /usr/local/include \
7348 /usr/unsupported/include \
7349 /usr/athena/include \
7350 /usr/local/x11r5/include \
7351 /usr/lpp/Xamples/include \
7352 \
7353 /usr/openwin/include \
7354 /usr/openwin/share/include \
7355 ; \
10f2d63a 7356 do
ab9b9eab
VZ
7357 if test -r "$ac_dir/$x_direct_test_include"; then
7358 ac_x_includes=$ac_dir
10f2d63a
VZ
7359 break
7360 fi
7361 done
ab9b9eab
VZ
7362fi
7363rm -f conftest*
7364fi # $ac_x_includes = NO
10f2d63a 7365
ab9b9eab
VZ
7366if test "$ac_x_libraries" = NO; then
7367 # Check for the libraries.
10f2d63a 7368
ab9b9eab
VZ
7369 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7370 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7371
ab9b9eab
VZ
7372 # See if we find them without any special options.
7373 # Don't add to $LIBS permanently.
7374 ac_save_LIBS="$LIBS"
7375 LIBS="-l$x_direct_test_library $LIBS"
7376cat > conftest.$ac_ext <<EOF
9b33fe02 7377#line 7378 "configure"
ab9b9eab 7378#include "confdefs.h"
10f2d63a 7379
ab9b9eab
VZ
7380int main() {
7381${x_direct_test_function}()
7382; return 0; }
7383EOF
9b33fe02 7384if { (eval echo configure:7385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7385 rm -rf conftest*
7386 LIBS="$ac_save_LIBS"
7387# We can link X programs with no special library path.
7388ac_x_libraries=
7389else
7390 echo "configure: failed program was:" >&5
7391 cat conftest.$ac_ext >&5
7392 rm -rf conftest*
7393 LIBS="$ac_save_LIBS"
7394# First see if replacing the include by lib works.
7395# Check X11 before X11Rn because it is often a symlink to the current release.
7396for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7397 /usr/X11/lib \
7398 /usr/X11R6/lib \
7399 /usr/X11R5/lib \
7400 /usr/X11R4/lib \
7401 \
7402 /usr/lib/X11 \
7403 /usr/lib/X11R6 \
7404 /usr/lib/X11R5 \
7405 /usr/lib/X11R4 \
7406 \
7407 /usr/local/X11/lib \
7408 /usr/local/X11R6/lib \
7409 /usr/local/X11R5/lib \
7410 /usr/local/X11R4/lib \
7411 \
7412 /usr/local/lib/X11 \
7413 /usr/local/lib/X11R6 \
7414 /usr/local/lib/X11R5 \
7415 /usr/local/lib/X11R4 \
7416 \
7417 /usr/X386/lib \
7418 /usr/x386/lib \
7419 /usr/XFree86/lib/X11 \
7420 \
7421 /usr/lib \
7422 /usr/local/lib \
7423 /usr/unsupported/lib \
7424 /usr/athena/lib \
7425 /usr/local/x11r5/lib \
7426 /usr/lpp/Xamples/lib \
7427 /lib/usr/lib/X11 \
7428 \
7429 /usr/openwin/lib \
7430 /usr/openwin/share/lib \
7431 ; \
7432do
7433 for ac_extension in a so sl; do
7434 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7435 ac_x_libraries=$ac_dir
7436 break 2
10f2d63a 7437 fi
10f2d63a 7438 done
ab9b9eab
VZ
7439done
7440fi
7441rm -f conftest*
7442fi # $ac_x_libraries = NO
10f2d63a 7443
ab9b9eab
VZ
7444if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7445 # Didn't find X anywhere. Cache the known absence of X.
7446 ac_cv_have_x="have_x=no"
7447else
7448 # Record where we found X for the cache.
7449 ac_cv_have_x="have_x=yes \
7450 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7451fi
7452fi
10f2d63a 7453 fi
ab9b9eab
VZ
7454 eval "$ac_cv_have_x"
7455fi # $with_x != no
10f2d63a 7456
ab9b9eab
VZ
7457if test "$have_x" != yes; then
7458 echo "$ac_t""$have_x" 1>&6
7459 no_x=yes
7460else
7461 # If each of the values was on the command line, it overrides each guess.
7462 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7463 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7464 # Update the cache value to reflect the command line values.
7465 ac_cv_have_x="have_x=yes \
7466 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7467 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7468fi
10f2d63a 7469
ab9b9eab
VZ
7470if test "$no_x" = yes; then
7471 # Not all programs may use this symbol, but it does not hurt to define it.
7472 cat >> confdefs.h <<\EOF
7473#define X_DISPLAY_MISSING 1
7474EOF
10f2d63a 7475
ab9b9eab
VZ
7476 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7477else
7478 if test -n "$x_includes"; then
7479 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7480 fi
7481
ab9b9eab
VZ
7482 # It would also be nice to do this for all -L options, not just this one.
7483 if test -n "$x_libraries"; then
7484 X_LIBS="$X_LIBS -L$x_libraries"
7485 # For Solaris; some versions of Sun CC require a space after -R and
7486 # others require no space. Words are not sufficient . . . .
7487 case "`(uname -sr) 2>/dev/null`" in
7488 "SunOS 5"*)
7489 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
9b33fe02 7490echo "configure:7491: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7491 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7492 cat > conftest.$ac_ext <<EOF
9b33fe02 7493#line 7494 "configure"
ab9b9eab 7494#include "confdefs.h"
10f2d63a 7495
ab9b9eab 7496int main() {
788deba1 7497
ab9b9eab
VZ
7498; return 0; }
7499EOF
9b33fe02 7500if { (eval echo configure:7501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7501 rm -rf conftest*
7502 ac_R_nospace=yes
7503else
7504 echo "configure: failed program was:" >&5
7505 cat conftest.$ac_ext >&5
7506 rm -rf conftest*
7507 ac_R_nospace=no
7508fi
7509rm -f conftest*
7510 if test $ac_R_nospace = yes; then
7511 echo "$ac_t""no" 1>&6
7512 X_LIBS="$X_LIBS -R$x_libraries"
7513 else
7514 LIBS="$ac_xsave_LIBS -R $x_libraries"
7515 cat > conftest.$ac_ext <<EOF
9b33fe02 7516#line 7517 "configure"
ab9b9eab 7517#include "confdefs.h"
788deba1 7518
ab9b9eab
VZ
7519int main() {
7520
7521; return 0; }
7522EOF
9b33fe02 7523if { (eval echo configure:7524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7524 rm -rf conftest*
7525 ac_R_space=yes
7526else
7527 echo "configure: failed program was:" >&5
7528 cat conftest.$ac_ext >&5
7529 rm -rf conftest*
7530 ac_R_space=no
7531fi
7532rm -f conftest*
7533 if test $ac_R_space = yes; then
7534 echo "$ac_t""yes" 1>&6
7535 X_LIBS="$X_LIBS -R $x_libraries"
7536 else
7537 echo "$ac_t""neither works" 1>&6
7538 fi
7539 fi
7540 LIBS="$ac_xsave_LIBS"
7541 esac
7542 fi
7543
7544 # Check for system-dependent libraries X programs must link with.
7545 # Do this before checking for the system-independent R6 libraries
7546 # (-lICE), since we may need -lsocket or whatever for X linking.
7547
7548 if test "$ISC" = yes; then
7549 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7550 else
7551 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7552 # libraries were built with DECnet support. And karl@cs.umb.edu says
7553 # the Alpha needs dnet_stub (dnet does not exist).
7554 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
9b33fe02 7555echo "configure:7556: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7556ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7557if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7558 echo $ac_n "(cached) $ac_c" 1>&6
7559else
7560 ac_save_LIBS="$LIBS"
7561LIBS="-ldnet $LIBS"
7562cat > conftest.$ac_ext <<EOF
9b33fe02 7563#line 7564 "configure"
ab9b9eab
VZ
7564#include "confdefs.h"
7565/* Override any gcc2 internal prototype to avoid an error. */
7566/* We use char because int might match the return type of a gcc2
7567 builtin and then its argument prototype would still apply. */
7568char dnet_ntoa();
7569
7570int main() {
7571dnet_ntoa()
7572; return 0; }
7573EOF
9b33fe02 7574if { (eval echo configure:7575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7575 rm -rf conftest*
7576 eval "ac_cv_lib_$ac_lib_var=yes"
7577else
7578 echo "configure: failed program was:" >&5
7579 cat conftest.$ac_ext >&5
7580 rm -rf conftest*
7581 eval "ac_cv_lib_$ac_lib_var=no"
7582fi
7583rm -f conftest*
7584LIBS="$ac_save_LIBS"
7585
7586fi
7587if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7588 echo "$ac_t""yes" 1>&6
7589 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7590else
7591 echo "$ac_t""no" 1>&6
7592fi
7593
7594 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7595 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
9b33fe02 7596echo "configure:7597: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7597ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7598if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7599 echo $ac_n "(cached) $ac_c" 1>&6
7600else
7601 ac_save_LIBS="$LIBS"
7602LIBS="-ldnet_stub $LIBS"
7603cat > conftest.$ac_ext <<EOF
9b33fe02 7604#line 7605 "configure"
ab9b9eab
VZ
7605#include "confdefs.h"
7606/* Override any gcc2 internal prototype to avoid an error. */
7607/* We use char because int might match the return type of a gcc2
7608 builtin and then its argument prototype would still apply. */
7609char dnet_ntoa();
7610
7611int main() {
7612dnet_ntoa()
7613; return 0; }
7614EOF
9b33fe02 7615if { (eval echo configure:7616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7616 rm -rf conftest*
7617 eval "ac_cv_lib_$ac_lib_var=yes"
7618else
7619 echo "configure: failed program was:" >&5
7620 cat conftest.$ac_ext >&5
7621 rm -rf conftest*
7622 eval "ac_cv_lib_$ac_lib_var=no"
7623fi
7624rm -f conftest*
7625LIBS="$ac_save_LIBS"
7626
7627fi
7628if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7629 echo "$ac_t""yes" 1>&6
7630 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7631else
7632 echo "$ac_t""no" 1>&6
7633fi
7634
7635 fi
7636
7637 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7638 # to get the SysV transport functions.
7639 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7640 # needs -lnsl.
7641 # The nsl library prevents programs from opening the X display
7642 # on Irix 5.2, according to dickey@clark.net.
7643 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
9b33fe02 7644echo "configure:7645: checking for gethostbyname" >&5
ab9b9eab
VZ
7645if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7646 echo $ac_n "(cached) $ac_c" 1>&6
7647else
7648 cat > conftest.$ac_ext <<EOF
9b33fe02 7649#line 7650 "configure"
ab9b9eab
VZ
7650#include "confdefs.h"
7651/* System header to define __stub macros and hopefully few prototypes,
7652 which can conflict with char gethostbyname(); below. */
7653#include <assert.h>
7654/* Override any gcc2 internal prototype to avoid an error. */
7655/* We use char because int might match the return type of a gcc2
7656 builtin and then its argument prototype would still apply. */
7657char gethostbyname();
7658
7659int main() {
7660
7661/* The GNU C library defines this for functions which it implements
7662 to always fail with ENOSYS. Some functions are actually named
7663 something starting with __ and the normal name is an alias. */
7664#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7665choke me
7666#else
88d3a15c 7667gethostbyname();
ab9b9eab
VZ
7668#endif
7669
7670; return 0; }
7671EOF
88d3a15c 7672if { (eval echo configure:7673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7673 rm -rf conftest*
7674 eval "ac_cv_func_gethostbyname=yes"
7675else
7676 echo "configure: failed program was:" >&5
7677 cat conftest.$ac_ext >&5
7678 rm -rf conftest*
7679 eval "ac_cv_func_gethostbyname=no"
7680fi
7681rm -f conftest*
7682fi
7683
7684if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7685 echo "$ac_t""yes" 1>&6
7686 :
7687else
7688 echo "$ac_t""no" 1>&6
7689fi
7690
7691 if test $ac_cv_func_gethostbyname = no; then
7692 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
88d3a15c 7693echo "configure:7694: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7694ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7695if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7696 echo $ac_n "(cached) $ac_c" 1>&6
7697else
7698 ac_save_LIBS="$LIBS"
7699LIBS="-lnsl $LIBS"
7700cat > conftest.$ac_ext <<EOF
88d3a15c 7701#line 7702 "configure"
ab9b9eab
VZ
7702#include "confdefs.h"
7703/* Override any gcc2 internal prototype to avoid an error. */
7704/* We use char because int might match the return type of a gcc2
7705 builtin and then its argument prototype would still apply. */
7706char gethostbyname();
7707
7708int main() {
7709gethostbyname()
7710; return 0; }
7711EOF
88d3a15c 7712if { (eval echo configure:7713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7713 rm -rf conftest*
7714 eval "ac_cv_lib_$ac_lib_var=yes"
7715else
7716 echo "configure: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7718 rm -rf conftest*
7719 eval "ac_cv_lib_$ac_lib_var=no"
7720fi
7721rm -f conftest*
7722LIBS="$ac_save_LIBS"
7723
7724fi
7725if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7726 echo "$ac_t""yes" 1>&6
7727 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7728else
7729 echo "$ac_t""no" 1>&6
7730fi
7731
7732 fi
7733
7734 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7735 # socket/setsockopt and other routines are undefined under SCO ODT
7736 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7737 # on later versions), says simon@lia.di.epfl.ch: it contains
7738 # gethostby* variants that don't use the nameserver (or something).
7739 # -lsocket must be given before -lnsl if both are needed.
7740 # We assume that if connect needs -lnsl, so does gethostbyname.
7741 echo $ac_n "checking for connect""... $ac_c" 1>&6
88d3a15c 7742echo "configure:7743: checking for connect" >&5
ab9b9eab
VZ
7743if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7744 echo $ac_n "(cached) $ac_c" 1>&6
7745else
7746 cat > conftest.$ac_ext <<EOF
88d3a15c 7747#line 7748 "configure"
ab9b9eab
VZ
7748#include "confdefs.h"
7749/* System header to define __stub macros and hopefully few prototypes,
7750 which can conflict with char connect(); below. */
7751#include <assert.h>
7752/* Override any gcc2 internal prototype to avoid an error. */
7753/* We use char because int might match the return type of a gcc2
7754 builtin and then its argument prototype would still apply. */
7755char connect();
7756
7757int main() {
7758
7759/* The GNU C library defines this for functions which it implements
7760 to always fail with ENOSYS. Some functions are actually named
7761 something starting with __ and the normal name is an alias. */
7762#if defined (__stub_connect) || defined (__stub___connect)
7763choke me
7764#else
88d3a15c 7765connect();
ab9b9eab
VZ
7766#endif
7767
7768; return 0; }
7769EOF
88d3a15c 7770if { (eval echo configure:7771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7771 rm -rf conftest*
7772 eval "ac_cv_func_connect=yes"
7773else
7774 echo "configure: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7776 rm -rf conftest*
7777 eval "ac_cv_func_connect=no"
7778fi
7779rm -f conftest*
7780fi
7781
7782if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7783 echo "$ac_t""yes" 1>&6
7784 :
7785else
7786 echo "$ac_t""no" 1>&6
7787fi
7788
7789 if test $ac_cv_func_connect = no; then
7790 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
88d3a15c 7791echo "configure:7792: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7792ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7793if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7794 echo $ac_n "(cached) $ac_c" 1>&6
7795else
7796 ac_save_LIBS="$LIBS"
7797LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7798cat > conftest.$ac_ext <<EOF
88d3a15c 7799#line 7800 "configure"
ab9b9eab
VZ
7800#include "confdefs.h"
7801/* Override any gcc2 internal prototype to avoid an error. */
7802/* We use char because int might match the return type of a gcc2
7803 builtin and then its argument prototype would still apply. */
7804char connect();
7805
7806int main() {
7807connect()
7808; return 0; }
7809EOF
88d3a15c 7810if { (eval echo configure:7811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7811 rm -rf conftest*
7812 eval "ac_cv_lib_$ac_lib_var=yes"
7813else
7814 echo "configure: failed program was:" >&5
7815 cat conftest.$ac_ext >&5
7816 rm -rf conftest*
7817 eval "ac_cv_lib_$ac_lib_var=no"
7818fi
7819rm -f conftest*
7820LIBS="$ac_save_LIBS"
7821
7822fi
7823if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7824 echo "$ac_t""yes" 1>&6
7825 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7826else
7827 echo "$ac_t""no" 1>&6
7828fi
7829
7830 fi
7831
7832 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7833 echo $ac_n "checking for remove""... $ac_c" 1>&6
88d3a15c 7834echo "configure:7835: checking for remove" >&5
ab9b9eab
VZ
7835if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7836 echo $ac_n "(cached) $ac_c" 1>&6
7837else
7838 cat > conftest.$ac_ext <<EOF
88d3a15c 7839#line 7840 "configure"
ab9b9eab
VZ
7840#include "confdefs.h"
7841/* System header to define __stub macros and hopefully few prototypes,
7842 which can conflict with char remove(); below. */
7843#include <assert.h>
7844/* Override any gcc2 internal prototype to avoid an error. */
7845/* We use char because int might match the return type of a gcc2
7846 builtin and then its argument prototype would still apply. */
7847char remove();
7848
7849int main() {
7850
7851/* The GNU C library defines this for functions which it implements
7852 to always fail with ENOSYS. Some functions are actually named
7853 something starting with __ and the normal name is an alias. */
7854#if defined (__stub_remove) || defined (__stub___remove)
7855choke me
7856#else
88d3a15c 7857remove();
ab9b9eab
VZ
7858#endif
7859
7860; return 0; }
7861EOF
88d3a15c 7862if { (eval echo configure:7863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7863 rm -rf conftest*
7864 eval "ac_cv_func_remove=yes"
7865else
7866 echo "configure: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7868 rm -rf conftest*
7869 eval "ac_cv_func_remove=no"
7870fi
7871rm -f conftest*
7872fi
7873
7874if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7875 echo "$ac_t""yes" 1>&6
7876 :
7877else
7878 echo "$ac_t""no" 1>&6
7879fi
7880
7881 if test $ac_cv_func_remove = no; then
7882 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
88d3a15c 7883echo "configure:7884: checking for remove in -lposix" >&5
ab9b9eab
VZ
7884ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7885if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7886 echo $ac_n "(cached) $ac_c" 1>&6
7887else
7888 ac_save_LIBS="$LIBS"
7889LIBS="-lposix $LIBS"
7890cat > conftest.$ac_ext <<EOF
88d3a15c 7891#line 7892 "configure"
ab9b9eab
VZ
7892#include "confdefs.h"
7893/* Override any gcc2 internal prototype to avoid an error. */
7894/* We use char because int might match the return type of a gcc2
7895 builtin and then its argument prototype would still apply. */
7896char remove();
7897
7898int main() {
7899remove()
7900; return 0; }
7901EOF
88d3a15c 7902if { (eval echo configure:7903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7903 rm -rf conftest*
7904 eval "ac_cv_lib_$ac_lib_var=yes"
7905else
7906 echo "configure: failed program was:" >&5
7907 cat conftest.$ac_ext >&5
7908 rm -rf conftest*
7909 eval "ac_cv_lib_$ac_lib_var=no"
7910fi
7911rm -f conftest*
7912LIBS="$ac_save_LIBS"
7913
7914fi
7915if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7916 echo "$ac_t""yes" 1>&6
7917 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7918else
7919 echo "$ac_t""no" 1>&6
7920fi
7921
7922 fi
7923
7924 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7925 echo $ac_n "checking for shmat""... $ac_c" 1>&6
88d3a15c 7926echo "configure:7927: checking for shmat" >&5
ab9b9eab
VZ
7927if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7929else
7930 cat > conftest.$ac_ext <<EOF
88d3a15c 7931#line 7932 "configure"
ab9b9eab
VZ
7932#include "confdefs.h"
7933/* System header to define __stub macros and hopefully few prototypes,
7934 which can conflict with char shmat(); below. */
7935#include <assert.h>
7936/* Override any gcc2 internal prototype to avoid an error. */
7937/* We use char because int might match the return type of a gcc2
7938 builtin and then its argument prototype would still apply. */
7939char shmat();
7940
7941int main() {
7942
7943/* The GNU C library defines this for functions which it implements
7944 to always fail with ENOSYS. Some functions are actually named
7945 something starting with __ and the normal name is an alias. */
7946#if defined (__stub_shmat) || defined (__stub___shmat)
7947choke me
7948#else
88d3a15c 7949shmat();
ab9b9eab
VZ
7950#endif
7951
7952; return 0; }
7953EOF
88d3a15c 7954if { (eval echo configure:7955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7955 rm -rf conftest*
7956 eval "ac_cv_func_shmat=yes"
7957else
7958 echo "configure: failed program was:" >&5
7959 cat conftest.$ac_ext >&5
7960 rm -rf conftest*
7961 eval "ac_cv_func_shmat=no"
7962fi
7963rm -f conftest*
7964fi
7965
7966if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7967 echo "$ac_t""yes" 1>&6
7968 :
7969else
7970 echo "$ac_t""no" 1>&6
7971fi
7972
7973 if test $ac_cv_func_shmat = no; then
7974 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
88d3a15c 7975echo "configure:7976: checking for shmat in -lipc" >&5
ab9b9eab
VZ
7976ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7977if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7978 echo $ac_n "(cached) $ac_c" 1>&6
7979else
7980 ac_save_LIBS="$LIBS"
7981LIBS="-lipc $LIBS"
7982cat > conftest.$ac_ext <<EOF
88d3a15c 7983#line 7984 "configure"
ab9b9eab
VZ
7984#include "confdefs.h"
7985/* Override any gcc2 internal prototype to avoid an error. */
7986/* We use char because int might match the return type of a gcc2
7987 builtin and then its argument prototype would still apply. */
7988char shmat();
7989
7990int main() {
7991shmat()
7992; return 0; }
7993EOF
88d3a15c 7994if { (eval echo configure:7995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7995 rm -rf conftest*
7996 eval "ac_cv_lib_$ac_lib_var=yes"
7997else
7998 echo "configure: failed program was:" >&5
7999 cat conftest.$ac_ext >&5
8000 rm -rf conftest*
8001 eval "ac_cv_lib_$ac_lib_var=no"
8002fi
8003rm -f conftest*
8004LIBS="$ac_save_LIBS"
8005
8006fi
8007if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8008 echo "$ac_t""yes" 1>&6
8009 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8010else
8011 echo "$ac_t""no" 1>&6
8012fi
8013
8014 fi
8015 fi
8016
8017 # Check for libraries that X11R6 Xt/Xaw programs need.
8018 ac_save_LDFLAGS="$LDFLAGS"
8019 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8020 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8021 # check for ICE first), but we must link in the order -lSM -lICE or
8022 # we get undefined symbols. So assume we have SM if we have ICE.
8023 # These have to be linked with before -lX11, unlike the other
8024 # libraries we check for below, so use a different variable.
8025 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8026 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
88d3a15c 8027echo "configure:8028: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8028ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8029if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8030 echo $ac_n "(cached) $ac_c" 1>&6
8031else
8032 ac_save_LIBS="$LIBS"
8033LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8034cat > conftest.$ac_ext <<EOF
88d3a15c 8035#line 8036 "configure"
ab9b9eab
VZ
8036#include "confdefs.h"
8037/* Override any gcc2 internal prototype to avoid an error. */
8038/* We use char because int might match the return type of a gcc2
8039 builtin and then its argument prototype would still apply. */
8040char IceConnectionNumber();
8041
8042int main() {
8043IceConnectionNumber()
8044; return 0; }
8045EOF
88d3a15c 8046if { (eval echo configure:8047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8047 rm -rf conftest*
8048 eval "ac_cv_lib_$ac_lib_var=yes"
8049else
8050 echo "configure: failed program was:" >&5
8051 cat conftest.$ac_ext >&5
8052 rm -rf conftest*
8053 eval "ac_cv_lib_$ac_lib_var=no"
8054fi
8055rm -f conftest*
8056LIBS="$ac_save_LIBS"
8057
8058fi
8059if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8060 echo "$ac_t""yes" 1>&6
8061 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8062else
8063 echo "$ac_t""no" 1>&6
8064fi
8065
8066 LDFLAGS="$ac_save_LDFLAGS"
8067
8068fi
8069
8070
8071 if test "$no_x" = "yes"; then
8072 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8073 fi
8074
8075 GUI_TK_LIBRARY="$X_LIBS"
8076 TOOLKIT_INCLUDE="$X_CFLAGS"
8077
dad6c0ea
VZ
8078 AFMINSTALL=afminstall
8079
ab9b9eab 8080
cd6d6d5b
VZ
8081 COMPILED_X_PROGRAM=0
8082
ab9b9eab 8083 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
88d3a15c 8084echo "configure:8085: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8085
8086ac_find_includes=
8087for ac_dir in $SEARCH_INCLUDE;
8088 do
8089 if test -f "$ac_dir/Xm/Xm.h"; then
8090 ac_find_includes=$ac_dir
8091 break
8092 fi
8093 done
8094
8095 if test "$ac_find_includes" != "" ; then
8096 echo "$ac_t""found $ac_find_includes" 1>&6
8097 else
cd6d6d5b 8098 cat > conftest.$ac_ext <<EOF
88d3a15c 8099#line 8100 "configure"
cd6d6d5b
VZ
8100#include "confdefs.h"
8101
8102 #include <Xm/Xm.h>
8103
8104int main() {
8105
8106 int version;
8107
8108 version = xmUseVersion;
8109
8110; return 0; }
8111EOF
88d3a15c 8112if { (eval echo configure:8113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8113 rm -rf conftest*
8114
8115 echo "$ac_t""found in default search path" 1>&6
8116 COMPILED_X_PROGRAM=1
8117
8118else
8119 echo "configure: failed program was:" >&5
8120 cat conftest.$ac_ext >&5
8121 rm -rf conftest*
8122
8123 echo "$ac_t""no" 1>&6
8124 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8125
8126
8127fi
8128rm -f conftest*
ab9b9eab
VZ
8129 fi
8130
cd6d6d5b
VZ
8131 if test "$COMPILED_X_PROGRAM" = 0; then
8132 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
88d3a15c 8133echo "configure:8134: checking for Motif/Lesstif library" >&5
cd6d6d5b 8134
ab9b9eab
VZ
8135ac_find_libraries=
8136for ac_dir in $SEARCH_LIB;
8137 do
8138 for ac_extension in a so sl; do
8139 if test -f "$ac_dir/libXm.$ac_extension"; then
8140 ac_find_libraries=$ac_dir
8141 break 2
8142 fi
8143 done
8144 done
8145
cd6d6d5b
VZ
8146 if test "$ac_find_libraries" != "" ; then
8147
ab9b9eab
VZ
8148 ac_path_to_include=$ac_find_includes
8149 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8150 result=$?
8151 if test $result = 0; then
8152 ac_path_to_include=""
8153 else
8154 ac_path_to_include="-I$ac_find_includes"
8155 fi
8156
cd6d6d5b 8157
ab9b9eab
VZ
8158 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8159 result=$?
8160 if test $result = 0; then
8161 ac_path_to_link=""
8162 else
8163 ac_path_to_link="-L$ac_find_libraries"
8164 fi
8165
8166
cd6d6d5b
VZ
8167 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8168 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8169 echo "$ac_t""found at $ac_find_libraries" 1>&6
8170 else
8171 cat > conftest.$ac_ext <<EOF
88d3a15c 8172#line 8173 "configure"
cd6d6d5b 8173#include "confdefs.h"
ab9b9eab 8174
cd6d6d5b
VZ
8175 #include <Xm/Xm.h>
8176
8177int main() {
ab9b9eab 8178
cd6d6d5b 8179 int version;
ab9b9eab 8180
cd6d6d5b
VZ
8181 version = xmUseVersion;
8182
8183; return 0; }
8184EOF
88d3a15c 8185if { (eval echo configure:8186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8186 rm -rf conftest*
8187
8188 echo "$ac_t""found in default search path" 1>&6
8189 COMPILED_X_PROGRAM=1
8190
8191else
8192 echo "configure: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8194 rm -rf conftest*
8195
8196 echo "$ac_t""no" 1>&6
8197 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8198
8199
8200fi
8201rm -f conftest*
8202 fi
ab9b9eab
VZ
8203 fi
8204
cd6d6d5b 8205
ab9b9eab
VZ
8206 XPM_LINK=""
8207 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
88d3a15c 8208echo "configure:8209: checking for Xpm library" >&5
ab9b9eab
VZ
8209
8210ac_find_libraries=
8211for ac_dir in $SEARCH_LIB;
8212 do
8213 for ac_extension in a so sl; do
8214 if test -f "$ac_dir/libXpm.$ac_extension"; then
8215 ac_find_libraries=$ac_dir
8216 break 2
8217 fi
8218 done
8219 done
8220
8221 if test "$ac_find_libraries" != "" ; then
8222
8223 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8224 result=$?
8225 if test $result = 0; then
8226 ac_path_to_link=""
8227 else
8228 ac_path_to_link="-L$ac_find_libraries"
8229 fi
8230
8231 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8232 XPM_LINK="-lXpm "
8233 cat >> confdefs.h <<\EOF
8234#define wxHAVE_LIB_XPM 1
8235EOF
8236
8237 echo "$ac_t""found at $ac_find_libraries" 1>&6
8238 else
cd6d6d5b 8239 cat > conftest.$ac_ext <<EOF
88d3a15c 8240#line 8241 "configure"
cd6d6d5b
VZ
8241#include "confdefs.h"
8242
8243 #include <X11/xpm.h>
8244
8245int main() {
8246
8247 int version;
8248
8249 version = XpmLibraryVersion();
8250
8251; return 0; }
8252EOF
88d3a15c 8253if { (eval echo configure:8254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8254 rm -rf conftest*
8255
3ace2e6d
SN
8256 XPM_LINK="-lXpm "
8257 cat >> confdefs.h <<\EOF
8258#define wxHAVE_LIB_XPM 1
8259EOF
8260
8261 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
8262 COMPILED_X_PROGRAM=0
8263
8264else
8265 echo "configure: failed program was:" >&5
8266 cat conftest.$ac_ext >&5
8267 rm -rf conftest*
8268
8269 echo "$ac_t""no" 1>&6
8270 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8271
8272
8273fi
8274rm -f conftest*
ab9b9eab
VZ
8275 fi
8276
8277 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8278 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8279 TOOLKIT=MOTIF
8280
8281 GUIHEADERS="\$(MOTIF_HEADERS)"
8282 GUIOBJS="\$(MOTIF_GUIOBJS)"
8283 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8284 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8285 GUIDEPS="\$(MOTIF_GUIDEPS)"
8286 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8287 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8288 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8289 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8290 GUIDIST=MOTIF_DIST
8291fi
8292
e07802fc
VZ
8293if test "$wxUSE_PM" = 1; then
8294 TOOLKIT=PM
8295
8296 GUIOBJS="\$(PM_GUIOBJS)"
8297 GUIHEADERS="\$(PM_HEADERS)"
8298 COMMONOBJS="\$(PM_COMMONOBJS)"
8299 GENERICOBJS="\$(PM_GENERICOBJS)"
8300 GUIDEPS="\$(PM_GUIDEPS)"
8301 COMMONDEPS="\$(PM_COMMONDEPS)"
8302 GENERICDEPS="\$(PM_GENERICDEPS)"
8303 UNIXOBJS=
8304 UNIXDEPS=
8305 GUIDIST=GTK_DIST
8306fi
8307
8308if test "$TOOLKIT" != "PM" ; then
ec14dd32 8309 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8310else
8311 TOOLKIT_DIR="os2"
8312fi
10f2d63a 8313
2224580a 8314 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 8315
2224580a 8316 WX_LIBRARY="wx_${TOOLKIT_DIR}"
10f2d63a 8317
3fcdd07b
VZ
8318 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS)"
8319
b089607b 8320 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
8321 if test "$wxUSE_ODBC" = "yes" ; then
8322 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8323 fi
3fcdd07b
VZ
8324 fi
8325
d9d8273d 8326 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 8327 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
8328 fi
8329 if test "$wxUSE_LIBTIFF" = "yes" ; then
8330 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8331 fi
8332 if test "$wxUSE_LIBPNG" = "yes" ; then
8333 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8334 fi
8335 if test "$wxUSE_ZLIB" = "yes" ; then
8336 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8337 fi
10f2d63a 8338 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
2224580a
VZ
8339
8340 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8341 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8342 RPM_SPEC="wx\$(TOOLKIT).spec"
8343
8344 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8345 DISTDIR="wx\$(TOOLKIT)"
10f2d63a
VZ
8346else
8347
dad6c0ea
VZ
8348 USE_GUI=0
8349
2224580a
VZ
8350 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8351 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
10f2d63a
VZ
8352
8353 WX_LIBRARY="wxbase"
2224580a
VZ
8354
8355 PORT_FILES="src/files.lst"
8356 RPM_FILES="src/rpmfiles.lst"
8357 RPM_SPEC="wxBase.spec"
8358
8359 GUIDIST="BASE_DIST"
8360 DISTDIR="wxBase"
10f2d63a
VZ
8361fi
8362
8363WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8364
8365WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8366
8367WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8368
8369WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8370WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8371WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8372
8373SHARED_LD=
8374PIC_FLAG=
8375WX_ALL=
8376WX_ALL_INSTALLED=
1d62a8b4 8377BURNT_LIBRARY_NAME=
10f2d63a 8378
b12915c1 8379
10f2d63a
VZ
8380if test "$wxUSE_SHARED" = "yes"; then
8381 case "${host}" in
8382 *-hp-hpux* )
8383 if test "$GCC" = yes ; then
69ffe1d2 8384 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8385 PIC_FLAG="-fPIC"
8386 else
8387 SHARED_LD="${CXX} -b -o"
8388 PIC_FLAG="+Z"
8389 fi
8390 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8391 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8392 ;;
b12915c1
VZ
8393
8394 *-*-linux* )
10f2d63a
VZ
8395 SHARED_LD="${CC} -shared -o"
8396 PIC_FLAG="-fPIC"
8397 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8398 WX_ALL="CREATE_LINKS"
b12915c1 8399 ;;
10f2d63a
VZ
8400 *-*-irix5* | *-*-irix6* )
8401 if test "$GCC" = yes ; then
8402 SHARED_LD="${CC} -shared -o"
8403 PIC_FLAG="-fPIC"
8404 else
8405 SHARED_LD="${CXX} -shared -o"
8406 fi
8407 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8408 WX_ALL="CREATE_LINKS"
8409 ;;
8410 *-*-solaris2* )
8411 if test "$GCC" = yes ; then
8412 SHARED_LD="${CC} -shared -o"
8413 PIC_FLAG="-fPIC"
8414 else
8415 SHARED_LD="${CXX} -G -o"
8416 PIC_FLAG="-KPIC"
8417 fi
8418 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8419 WX_ALL="CREATE_LINKS"
8420 ;;
8421 *-*-sunos4* )
8422 SHARED_LD="${CC} -shared -o"
8423 PIC_FLAG="-fPIC"
8424 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8425 WX_ALL="CREATE_LINKS"
8426 ;;
8427 *-*-freebsd* | *-*-netbsd*)
8428 SHARED_LD="${CC} -shared -o"
8429 PIC_FLAG="-fPIC"
8430 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8431 WX_ALL="CREATE_LINKS"
8432 ;;
8433 *-*-osf* )
8434 SHARED_LD="${CXX} -shared -o"
8435 PIC_FLAG="-fPIC"
8436 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8437 WX_ALL="CREATE_LINKS"
8438 ;;
8439 *-*-dgux5* )
8440 SHARED_LD="${CXX} -shared -o"
8441 PIC_FLAG="-fPIC"
8442 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8443 WX_ALL="CREATE_LINKS"
8444 ;;
8445 *-*-sysv5* )
8446 SHARED_LD="${CC} -shared -o"
8447 PIC_FLAG="-fPIC"
8448 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8449 WX_ALL="CREATE_LINKS"
8450 ;;
8451 *-*-aix* )
8452 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8453 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8454 ;;
8455 *-*-cygwin32* )
8456 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8457 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8458 ;;
b12915c1 8459 *-*-mingw32* )
10f2d63a
VZ
8460 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8461 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8462 ;;
8463 *-pc-os2_emx )
e07802fc
VZ
8464 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8465 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 8466 ;;
b12915c1 8467 *-*-beos* )
e2b8b066 8468 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
8469 PIC_FLAG="-fPIC"
8470 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8471 WX_ALL="CREATE_LINKS"
8472 ;;
10f2d63a
VZ
8473 *)
8474 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8475 esac
8476
8477 if test "x$WX_TARGET_LIBRARY" = "x"; then
8478 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8479 fi
8480else
8481 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8482 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8483fi
8484
8485
8486for ac_hdr in strings.h
8487do
8488ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8489echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
88d3a15c 8490echo "configure:8491: checking for $ac_hdr" >&5
10f2d63a
VZ
8491if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8492 echo $ac_n "(cached) $ac_c" 1>&6
8493else
8494 cat > conftest.$ac_ext <<EOF
88d3a15c 8495#line 8496 "configure"
10f2d63a
VZ
8496#include "confdefs.h"
8497#include <$ac_hdr>
8498EOF
8499ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
88d3a15c 8500{ (eval echo configure:8501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8501ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8502if test -z "$ac_err"; then
8503 rm -rf conftest*
8504 eval "ac_cv_header_$ac_safe=yes"
8505else
8506 echo "$ac_err" >&5
8507 echo "configure: failed program was:" >&5
8508 cat conftest.$ac_ext >&5
8509 rm -rf conftest*
8510 eval "ac_cv_header_$ac_safe=no"
8511fi
8512rm -f conftest*
8513fi
8514if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8515 echo "$ac_t""yes" 1>&6
8516 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8517 cat >> confdefs.h <<EOF
8518#define $ac_tr_hdr 1
8519EOF
8520
8521else
8522 echo "$ac_t""no" 1>&6
8523fi
8524done
8525
8526for ac_hdr in unistd.h
8527do
8528ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8529echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
88d3a15c 8530echo "configure:8531: checking for $ac_hdr" >&5
10f2d63a
VZ
8531if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8532 echo $ac_n "(cached) $ac_c" 1>&6
8533else
8534 cat > conftest.$ac_ext <<EOF
88d3a15c 8535#line 8536 "configure"
10f2d63a
VZ
8536#include "confdefs.h"
8537#include <$ac_hdr>
8538EOF
8539ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
88d3a15c 8540{ (eval echo configure:8541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8541ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8542if test -z "$ac_err"; then
8543 rm -rf conftest*
8544 eval "ac_cv_header_$ac_safe=yes"
8545else
8546 echo "$ac_err" >&5
8547 echo "configure: failed program was:" >&5
8548 cat conftest.$ac_ext >&5
8549 rm -rf conftest*
8550 eval "ac_cv_header_$ac_safe=no"
8551fi
8552rm -f conftest*
8553fi
8554if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8555 echo "$ac_t""yes" 1>&6
8556 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8557 cat >> confdefs.h <<EOF
8558#define $ac_tr_hdr 1
8559EOF
8560
8561else
8562 echo "$ac_t""no" 1>&6
8563fi
8564done
8565
8566for ac_hdr in wchar.h
8567do
8568ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8569echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
88d3a15c 8570echo "configure:8571: checking for $ac_hdr" >&5
10f2d63a
VZ
8571if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8572 echo $ac_n "(cached) $ac_c" 1>&6
8573else
8574 cat > conftest.$ac_ext <<EOF
88d3a15c 8575#line 8576 "configure"
10f2d63a
VZ
8576#include "confdefs.h"
8577#include <$ac_hdr>
8578EOF
8579ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
88d3a15c 8580{ (eval echo configure:8581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8581ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8582if test -z "$ac_err"; then
8583 rm -rf conftest*
8584 eval "ac_cv_header_$ac_safe=yes"
8585else
8586 echo "$ac_err" >&5
8587 echo "configure: failed program was:" >&5
8588 cat conftest.$ac_ext >&5
8589 rm -rf conftest*
8590 eval "ac_cv_header_$ac_safe=no"
8591fi
8592rm -f conftest*
8593fi
8594if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8595 echo "$ac_t""yes" 1>&6
8596 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8597 cat >> confdefs.h <<EOF
8598#define $ac_tr_hdr 1
8599EOF
8600
8601else
8602 echo "$ac_t""no" 1>&6
8603fi
8604done
8605
8606for ac_hdr in wcstr.h
8607do
8608ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8609echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
88d3a15c 8610echo "configure:8611: checking for $ac_hdr" >&5
10f2d63a
VZ
8611if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8612 echo $ac_n "(cached) $ac_c" 1>&6
8613else
8614 cat > conftest.$ac_ext <<EOF
88d3a15c 8615#line 8616 "configure"
10f2d63a
VZ
8616#include "confdefs.h"
8617#include <$ac_hdr>
8618EOF
8619ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
88d3a15c 8620{ (eval echo configure:8621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8621ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8622if test -z "$ac_err"; then
8623 rm -rf conftest*
8624 eval "ac_cv_header_$ac_safe=yes"
8625else
8626 echo "$ac_err" >&5
8627 echo "configure: failed program was:" >&5
8628 cat conftest.$ac_ext >&5
8629 rm -rf conftest*
8630 eval "ac_cv_header_$ac_safe=no"
8631fi
8632rm -f conftest*
8633fi
8634if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8635 echo "$ac_t""yes" 1>&6
8636 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8637 cat >> confdefs.h <<EOF
8638#define $ac_tr_hdr 1
8639EOF
8640
8641else
8642 echo "$ac_t""no" 1>&6
8643fi
8644done
8645
8646for ac_hdr in fnmatch.h
8647do
8648ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8649echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
88d3a15c 8650echo "configure:8651: checking for $ac_hdr" >&5
10f2d63a
VZ
8651if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8652 echo $ac_n "(cached) $ac_c" 1>&6
8653else
8654 cat > conftest.$ac_ext <<EOF
88d3a15c 8655#line 8656 "configure"
10f2d63a
VZ
8656#include "confdefs.h"
8657#include <$ac_hdr>
8658EOF
8659ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
88d3a15c 8660{ (eval echo configure:8661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8661ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8662if test -z "$ac_err"; then
8663 rm -rf conftest*
8664 eval "ac_cv_header_$ac_safe=yes"
8665else
8666 echo "$ac_err" >&5
8667 echo "configure: failed program was:" >&5
8668 cat conftest.$ac_ext >&5
8669 rm -rf conftest*
8670 eval "ac_cv_header_$ac_safe=no"
8671fi
8672rm -f conftest*
8673fi
8674if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8675 echo "$ac_t""yes" 1>&6
8676 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8677 cat >> confdefs.h <<EOF
8678#define $ac_tr_hdr 1
8679EOF
8680
8681else
8682 echo "$ac_t""no" 1>&6
8683fi
8684done
8685
8686
8687if test "$wxUSE_GUI" = "yes"; then
8688 for ac_hdr in X11/XKBlib.h
8689do
8690ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8691echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
88d3a15c 8692echo "configure:8693: checking for $ac_hdr" >&5
10f2d63a
VZ
8693if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8694 echo $ac_n "(cached) $ac_c" 1>&6
8695else
8696 cat > conftest.$ac_ext <<EOF
88d3a15c 8697#line 8698 "configure"
10f2d63a
VZ
8698#include "confdefs.h"
8699#include <$ac_hdr>
8700EOF
8701ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
88d3a15c 8702{ (eval echo configure:8703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8703ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8704if test -z "$ac_err"; then
8705 rm -rf conftest*
8706 eval "ac_cv_header_$ac_safe=yes"
8707else
8708 echo "$ac_err" >&5
8709 echo "configure: failed program was:" >&5
8710 cat conftest.$ac_ext >&5
8711 rm -rf conftest*
8712 eval "ac_cv_header_$ac_safe=no"
8713fi
8714rm -f conftest*
8715fi
8716if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8717 echo "$ac_t""yes" 1>&6
8718 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8719 cat >> confdefs.h <<EOF
8720#define $ac_tr_hdr 1
8721EOF
8722
8723else
8724 echo "$ac_t""no" 1>&6
8725fi
8726done
8727
8728fi
8729
8730
8731echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
88d3a15c 8732echo "configure:8733: checking for ANSI C header files" >&5
10f2d63a
VZ
8733if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8734 echo $ac_n "(cached) $ac_c" 1>&6
8735else
8736 cat > conftest.$ac_ext <<EOF
88d3a15c 8737#line 8738 "configure"
10f2d63a
VZ
8738#include "confdefs.h"
8739#include <stdlib.h>
8740#include <stdarg.h>
8741#include <string.h>
8742#include <float.h>
8743EOF
8744ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
88d3a15c 8745{ (eval echo configure:8746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8746ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8747if test -z "$ac_err"; then
8748 rm -rf conftest*
8749 ac_cv_header_stdc=yes
8750else
8751 echo "$ac_err" >&5
8752 echo "configure: failed program was:" >&5
8753 cat conftest.$ac_ext >&5
8754 rm -rf conftest*
8755 ac_cv_header_stdc=no
8756fi
8757rm -f conftest*
8758
8759if test $ac_cv_header_stdc = yes; then
8760 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8761cat > conftest.$ac_ext <<EOF
88d3a15c 8762#line 8763 "configure"
10f2d63a
VZ
8763#include "confdefs.h"
8764#include <string.h>
8765EOF
8766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8767 egrep "memchr" >/dev/null 2>&1; then
8768 :
8769else
8770 rm -rf conftest*
8771 ac_cv_header_stdc=no
8772fi
8773rm -f conftest*
8774
8775fi
8776
8777if test $ac_cv_header_stdc = yes; then
8778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8779cat > conftest.$ac_ext <<EOF
88d3a15c 8780#line 8781 "configure"
10f2d63a
VZ
8781#include "confdefs.h"
8782#include <stdlib.h>
8783EOF
8784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8785 egrep "free" >/dev/null 2>&1; then
8786 :
8787else
8788 rm -rf conftest*
8789 ac_cv_header_stdc=no
8790fi
8791rm -f conftest*
8792
8793fi
8794
8795if test $ac_cv_header_stdc = yes; then
8796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8797if test "$cross_compiling" = yes; then
8798 :
8799else
8800 cat > conftest.$ac_ext <<EOF
88d3a15c 8801#line 8802 "configure"
10f2d63a
VZ
8802#include "confdefs.h"
8803#include <ctype.h>
8804#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8805#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8806#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8807int main () { int i; for (i = 0; i < 256; i++)
8808if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8809exit (0); }
8810
8811EOF
88d3a15c 8812if { (eval echo configure:8813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8813then
8814 :
8815else
8816 echo "configure: failed program was:" >&5
8817 cat conftest.$ac_ext >&5
8818 rm -fr conftest*
8819 ac_cv_header_stdc=no
8820fi
8821rm -fr conftest*
8822fi
8823
8824fi
8825fi
8826
8827echo "$ac_t""$ac_cv_header_stdc" 1>&6
8828if test $ac_cv_header_stdc = yes; then
8829 cat >> confdefs.h <<\EOF
8830#define STDC_HEADERS 1
8831EOF
8832
8833fi
8834
8835echo $ac_n "checking for mode_t""... $ac_c" 1>&6
88d3a15c 8836echo "configure:8837: checking for mode_t" >&5
10f2d63a
VZ
8837if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8838 echo $ac_n "(cached) $ac_c" 1>&6
8839else
8840 cat > conftest.$ac_ext <<EOF
88d3a15c 8841#line 8842 "configure"
10f2d63a
VZ
8842#include "confdefs.h"
8843#include <sys/types.h>
8844#if STDC_HEADERS
8845#include <stdlib.h>
8846#include <stddef.h>
8847#endif
8848EOF
8849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8850 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8851 rm -rf conftest*
8852 ac_cv_type_mode_t=yes
8853else
8854 rm -rf conftest*
8855 ac_cv_type_mode_t=no
8856fi
8857rm -f conftest*
8858
8859fi
8860echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8861if test $ac_cv_type_mode_t = no; then
8862 cat >> confdefs.h <<\EOF
8863#define mode_t int
8864EOF
8865
8866fi
8867
8868echo $ac_n "checking for off_t""... $ac_c" 1>&6
88d3a15c 8869echo "configure:8870: checking for off_t" >&5
10f2d63a
VZ
8870if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8871 echo $ac_n "(cached) $ac_c" 1>&6
8872else
8873 cat > conftest.$ac_ext <<EOF
88d3a15c 8874#line 8875 "configure"
10f2d63a
VZ
8875#include "confdefs.h"
8876#include <sys/types.h>
8877#if STDC_HEADERS
8878#include <stdlib.h>
8879#include <stddef.h>
8880#endif
8881EOF
8882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8883 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8884 rm -rf conftest*
8885 ac_cv_type_off_t=yes
8886else
8887 rm -rf conftest*
8888 ac_cv_type_off_t=no
8889fi
8890rm -f conftest*
8891
8892fi
8893echo "$ac_t""$ac_cv_type_off_t" 1>&6
8894if test $ac_cv_type_off_t = no; then
8895 cat >> confdefs.h <<\EOF
8896#define off_t long
8897EOF
8898
8899fi
8900
8901echo $ac_n "checking for pid_t""... $ac_c" 1>&6
88d3a15c 8902echo "configure:8903: checking for pid_t" >&5
10f2d63a
VZ
8903if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8904 echo $ac_n "(cached) $ac_c" 1>&6
8905else
8906 cat > conftest.$ac_ext <<EOF
88d3a15c 8907#line 8908 "configure"
10f2d63a
VZ
8908#include "confdefs.h"
8909#include <sys/types.h>
8910#if STDC_HEADERS
8911#include <stdlib.h>
8912#include <stddef.h>
8913#endif
8914EOF
8915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8916 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8917 rm -rf conftest*
8918 ac_cv_type_pid_t=yes
8919else
8920 rm -rf conftest*
8921 ac_cv_type_pid_t=no
8922fi
8923rm -f conftest*
8924
8925fi
8926echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8927if test $ac_cv_type_pid_t = no; then
8928 cat >> confdefs.h <<\EOF
8929#define pid_t int
8930EOF
8931
8932fi
8933
8934echo $ac_n "checking for size_t""... $ac_c" 1>&6
88d3a15c 8935echo "configure:8936: checking for size_t" >&5
10f2d63a
VZ
8936if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8937 echo $ac_n "(cached) $ac_c" 1>&6
8938else
8939 cat > conftest.$ac_ext <<EOF
88d3a15c 8940#line 8941 "configure"
10f2d63a
VZ
8941#include "confdefs.h"
8942#include <sys/types.h>
8943#if STDC_HEADERS
8944#include <stdlib.h>
8945#include <stddef.h>
8946#endif
8947EOF
8948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8949 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8950 rm -rf conftest*
8951 ac_cv_type_size_t=yes
8952else
8953 rm -rf conftest*
8954 ac_cv_type_size_t=no
8955fi
8956rm -f conftest*
8957
8958fi
8959echo "$ac_t""$ac_cv_type_size_t" 1>&6
8960if test $ac_cv_type_size_t = no; then
8961 cat >> confdefs.h <<\EOF
8962#define size_t unsigned
8963EOF
8964
8965fi
8966
8967echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
88d3a15c 8968echo "configure:8969: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
8969if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8970 echo $ac_n "(cached) $ac_c" 1>&6
8971else
8972 cat > conftest.$ac_ext <<EOF
88d3a15c 8973#line 8974 "configure"
10f2d63a
VZ
8974#include "confdefs.h"
8975#include <sys/types.h>
8976EOF
8977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8978 egrep "uid_t" >/dev/null 2>&1; then
8979 rm -rf conftest*
8980 ac_cv_type_uid_t=yes
8981else
8982 rm -rf conftest*
8983 ac_cv_type_uid_t=no
8984fi
8985rm -f conftest*
8986
8987fi
8988
8989echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8990if test $ac_cv_type_uid_t = no; then
8991 cat >> confdefs.h <<\EOF
8992#define uid_t int
8993EOF
8994
8995 cat >> confdefs.h <<\EOF
8996#define gid_t int
8997EOF
8998
8999fi
9000
9001
9002
b12915c1 9003echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
88d3a15c 9004echo "configure:9005: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
9005if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9006 echo $ac_n "(cached) $ac_c" 1>&6
9007else
9008
9009 cat > conftest.$ac_ext <<EOF
88d3a15c 9010#line 9011 "configure"
b12915c1
VZ
9011#include "confdefs.h"
9012#include <pwd.h>
9013int main() {
9014
9015 char *p;
9016 struct passwd *pw;
9017 p = pw->pw_gecos;
9018
9019; return 0; }
9020EOF
88d3a15c 9021if { (eval echo configure:9022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
9022 rm -rf conftest*
9023
9024 wx_cv_struct_pw_gecos=yes
9025 cat >> confdefs.h <<\EOF
9026#define HAVE_PW_GECOS 1
9027EOF
9028
9029
9030else
9031 echo "configure: failed program was:" >&5
9032 cat conftest.$ac_ext >&5
9033 rm -rf conftest*
9034
9035 wx_cv_struct_pw_gecos=no
9036
9037
9038fi
9039rm -f conftest*
9040
9041
9042fi
9043
9044echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9045
10f2d63a
VZ
9046
9047echo $ac_n "checking for working const""... $ac_c" 1>&6
88d3a15c 9048echo "configure:9049: checking for working const" >&5
10f2d63a
VZ
9049if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9050 echo $ac_n "(cached) $ac_c" 1>&6
9051else
9052 cat > conftest.$ac_ext <<EOF
88d3a15c 9053#line 9054 "configure"
10f2d63a
VZ
9054#include "confdefs.h"
9055
9056int main() {
9057
9058/* Ultrix mips cc rejects this. */
88d3a15c 9059typedef int charset[2]; const charset x = {0,0};
10f2d63a
VZ
9060/* SunOS 4.1.1 cc rejects this. */
9061char const *const *ccp;
9062char **p;
9063/* NEC SVR4.0.2 mips cc rejects this. */
9064struct point {int x, y;};
9065static struct point const zero = {0,0};
9066/* AIX XL C 1.02.0.0 rejects this.
9067 It does not let you subtract one const X* pointer from another in an arm
9068 of an if-expression whose if-part is not a constant expression */
9069const char *g = "string";
9070ccp = &g + (g ? g-g : 0);
9071/* HPUX 7.0 cc rejects these. */
9072++ccp;
9073p = (char**) ccp;
9074ccp = (char const *const *) p;
9075{ /* SCO 3.2v4 cc rejects this. */
9076 char *t;
9077 char const *s = 0 ? (char *) 0 : (char const *) 0;
9078
9079 *t++ = 0;
9080}
9081{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9082 int x[] = {25, 17};
9083 const int *foo = &x[0];
9084 ++foo;
9085}
9086{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9087 typedef const int *iptr;
9088 iptr p = 0;
9089 ++p;
9090}
9091{ /* AIX XL C 1.02.0.0 rejects this saying
9092 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9093 struct s { int j; const int *ap[3]; };
9094 struct s *b; b->j = 5;
9095}
9096{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9097 const int foo = 10;
9098}
9099
9100; return 0; }
9101EOF
88d3a15c 9102if { (eval echo configure:9103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9103 rm -rf conftest*
9104 ac_cv_c_const=yes
9105else
9106 echo "configure: failed program was:" >&5
9107 cat conftest.$ac_ext >&5
9108 rm -rf conftest*
9109 ac_cv_c_const=no
9110fi
9111rm -f conftest*
9112fi
9113
9114echo "$ac_t""$ac_cv_c_const" 1>&6
9115if test $ac_cv_c_const = no; then
9116 cat >> confdefs.h <<\EOF
9117#define const
9118EOF
9119
9120fi
9121
9122echo $ac_n "checking for inline""... $ac_c" 1>&6
88d3a15c 9123echo "configure:9124: checking for inline" >&5
10f2d63a
VZ
9124if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9125 echo $ac_n "(cached) $ac_c" 1>&6
9126else
9127 ac_cv_c_inline=no
9128for ac_kw in inline __inline__ __inline; do
9129 cat > conftest.$ac_ext <<EOF
88d3a15c 9130#line 9131 "configure"
10f2d63a
VZ
9131#include "confdefs.h"
9132
9133int main() {
88d3a15c 9134} int $ac_kw foo() {
10f2d63a
VZ
9135; return 0; }
9136EOF
88d3a15c 9137if { (eval echo configure:9138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9138 rm -rf conftest*
9139 ac_cv_c_inline=$ac_kw; break
9140else
9141 echo "configure: failed program was:" >&5
9142 cat conftest.$ac_ext >&5
9143fi
9144rm -f conftest*
9145done
9146
9147fi
9148
9149echo "$ac_t""$ac_cv_c_inline" 1>&6
9150case "$ac_cv_c_inline" in
9151 inline | yes) ;;
9152 no) cat >> confdefs.h <<\EOF
9153#define inline
9154EOF
9155 ;;
9156 *) cat >> confdefs.h <<EOF
9157#define inline $ac_cv_c_inline
9158EOF
9159 ;;
9160esac
9161
9162
9163echo $ac_n "checking size of char""... $ac_c" 1>&6
88d3a15c 9164echo "configure:9165: checking size of char" >&5
10f2d63a
VZ
9165if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
9167else
9168 if test "$cross_compiling" = yes; then
9169 ac_cv_sizeof_char=1
9170else
9171 cat > conftest.$ac_ext <<EOF
88d3a15c 9172#line 9173 "configure"
10f2d63a
VZ
9173#include "confdefs.h"
9174#include <stdio.h>
9175main()
9176{
9177 FILE *f=fopen("conftestval", "w");
9178 if (!f) exit(1);
9179 fprintf(f, "%d\n", sizeof(char));
9180 exit(0);
9181}
9182EOF
88d3a15c 9183if { (eval echo configure:9184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9184then
9185 ac_cv_sizeof_char=`cat conftestval`
9186else
9187 echo "configure: failed program was:" >&5
9188 cat conftest.$ac_ext >&5
9189 rm -fr conftest*
9190 ac_cv_sizeof_char=0
9191fi
9192rm -fr conftest*
9193fi
9194
9195fi
9196echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9197cat >> confdefs.h <<EOF
9198#define SIZEOF_CHAR $ac_cv_sizeof_char
9199EOF
9200
9201
9202echo $ac_n "checking size of short""... $ac_c" 1>&6
88d3a15c 9203echo "configure:9204: checking size of short" >&5
10f2d63a
VZ
9204if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9205 echo $ac_n "(cached) $ac_c" 1>&6
9206else
9207 if test "$cross_compiling" = yes; then
9208 ac_cv_sizeof_short=2
9209else
9210 cat > conftest.$ac_ext <<EOF
88d3a15c 9211#line 9212 "configure"
10f2d63a
VZ
9212#include "confdefs.h"
9213#include <stdio.h>
9214main()
9215{
9216 FILE *f=fopen("conftestval", "w");
9217 if (!f) exit(1);
9218 fprintf(f, "%d\n", sizeof(short));
9219 exit(0);
9220}
9221EOF
88d3a15c 9222if { (eval echo configure:9223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9223then
9224 ac_cv_sizeof_short=`cat conftestval`
9225else
9226 echo "configure: failed program was:" >&5
9227 cat conftest.$ac_ext >&5
9228 rm -fr conftest*
9229 ac_cv_sizeof_short=0
9230fi
9231rm -fr conftest*
9232fi
9233
9234fi
9235echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9236cat >> confdefs.h <<EOF
9237#define SIZEOF_SHORT $ac_cv_sizeof_short
9238EOF
9239
9240
9241echo $ac_n "checking size of int *""... $ac_c" 1>&6
88d3a15c 9242echo "configure:9243: checking size of int *" >&5
10f2d63a
VZ
9243if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9244 echo $ac_n "(cached) $ac_c" 1>&6
9245else
9246 if test "$cross_compiling" = yes; then
9247 ac_cv_sizeof_int_p=4
9248else
9249 cat > conftest.$ac_ext <<EOF
88d3a15c 9250#line 9251 "configure"
10f2d63a
VZ
9251#include "confdefs.h"
9252#include <stdio.h>
9253main()
9254{
9255 FILE *f=fopen("conftestval", "w");
9256 if (!f) exit(1);
9257 fprintf(f, "%d\n", sizeof(int *));
9258 exit(0);
9259}
9260EOF
88d3a15c 9261if { (eval echo configure:9262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9262then
9263 ac_cv_sizeof_int_p=`cat conftestval`
9264else
9265 echo "configure: failed program was:" >&5
9266 cat conftest.$ac_ext >&5
9267 rm -fr conftest*
9268 ac_cv_sizeof_int_p=0
9269fi
9270rm -fr conftest*
9271fi
9272
9273fi
9274echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9275cat >> confdefs.h <<EOF
9276#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9277EOF
9278
9279
9280echo $ac_n "checking size of int""... $ac_c" 1>&6
88d3a15c 9281echo "configure:9282: checking size of int" >&5
10f2d63a
VZ
9282if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9283 echo $ac_n "(cached) $ac_c" 1>&6
9284else
9285 if test "$cross_compiling" = yes; then
9286 ac_cv_sizeof_int=4
9287else
9288 cat > conftest.$ac_ext <<EOF
88d3a15c 9289#line 9290 "configure"
10f2d63a
VZ
9290#include "confdefs.h"
9291#include <stdio.h>
9292main()
9293{
9294 FILE *f=fopen("conftestval", "w");
9295 if (!f) exit(1);
9296 fprintf(f, "%d\n", sizeof(int));
9297 exit(0);
9298}
9299EOF
88d3a15c 9300if { (eval echo configure:9301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9301then
9302 ac_cv_sizeof_int=`cat conftestval`
9303else
9304 echo "configure: failed program was:" >&5
9305 cat conftest.$ac_ext >&5
9306 rm -fr conftest*
9307 ac_cv_sizeof_int=0
9308fi
9309rm -fr conftest*
9310fi
9311
9312fi
9313echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9314cat >> confdefs.h <<EOF
9315#define SIZEOF_INT $ac_cv_sizeof_int
9316EOF
9317
9318
9319echo $ac_n "checking size of long""... $ac_c" 1>&6
88d3a15c 9320echo "configure:9321: checking size of long" >&5
10f2d63a
VZ
9321if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9322 echo $ac_n "(cached) $ac_c" 1>&6
9323else
9324 if test "$cross_compiling" = yes; then
9325 ac_cv_sizeof_long=4
9326else
9327 cat > conftest.$ac_ext <<EOF
88d3a15c 9328#line 9329 "configure"
10f2d63a
VZ
9329#include "confdefs.h"
9330#include <stdio.h>
9331main()
9332{
9333 FILE *f=fopen("conftestval", "w");
9334 if (!f) exit(1);
9335 fprintf(f, "%d\n", sizeof(long));
9336 exit(0);
9337}
9338EOF
88d3a15c 9339if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9340then
9341 ac_cv_sizeof_long=`cat conftestval`
9342else
9343 echo "configure: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9345 rm -fr conftest*
9346 ac_cv_sizeof_long=0
9347fi
9348rm -fr conftest*
9349fi
9350
9351fi
9352echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9353cat >> confdefs.h <<EOF
9354#define SIZEOF_LONG $ac_cv_sizeof_long
9355EOF
9356
9357
9358echo $ac_n "checking size of long long""... $ac_c" 1>&6
88d3a15c 9359echo "configure:9360: checking size of long long" >&5
10f2d63a
VZ
9360if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9361 echo $ac_n "(cached) $ac_c" 1>&6
9362else
9363 if test "$cross_compiling" = yes; then
9364 ac_cv_sizeof_long_long=0
9365else
9366 cat > conftest.$ac_ext <<EOF
88d3a15c 9367#line 9368 "configure"
10f2d63a
VZ
9368#include "confdefs.h"
9369#include <stdio.h>
9370main()
9371{
9372 FILE *f=fopen("conftestval", "w");
9373 if (!f) exit(1);
9374 fprintf(f, "%d\n", sizeof(long long));
9375 exit(0);
9376}
9377EOF
88d3a15c 9378if { (eval echo configure:9379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9379then
9380 ac_cv_sizeof_long_long=`cat conftestval`
9381else
9382 echo "configure: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9384 rm -fr conftest*
9385 ac_cv_sizeof_long_long=0
9386fi
9387rm -fr conftest*
9388fi
9389
9390fi
9391echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9392cat >> confdefs.h <<EOF
9393#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9394EOF
9395
9396
9397
9398echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
88d3a15c 9399echo "configure:9400: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9400if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9401 echo $ac_n "(cached) $ac_c" 1>&6
9402else
9403 ac_cv_c_bigendian=unknown
9404# See if sys/param.h defines the BYTE_ORDER macro.
9405cat > conftest.$ac_ext <<EOF
88d3a15c 9406#line 9407 "configure"
10f2d63a
VZ
9407#include "confdefs.h"
9408#include <sys/types.h>
9409#include <sys/param.h>
9410int main() {
9411
9412#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9413 bogus endian macros
9414#endif
9415; return 0; }
9416EOF
88d3a15c 9417if { (eval echo configure:9418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9418 rm -rf conftest*
9419 # It does; now see whether it defined to BIG_ENDIAN or not.
9420cat > conftest.$ac_ext <<EOF
88d3a15c 9421#line 9422 "configure"
10f2d63a
VZ
9422#include "confdefs.h"
9423#include <sys/types.h>
9424#include <sys/param.h>
9425int main() {
9426
9427#if BYTE_ORDER != BIG_ENDIAN
9428 not big endian
9429#endif
9430; return 0; }
9431EOF
88d3a15c 9432if { (eval echo configure:9433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9433 rm -rf conftest*
9434 ac_cv_c_bigendian=yes
9435else
9436 echo "configure: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9438 rm -rf conftest*
9439 ac_cv_c_bigendian=no
9440fi
9441rm -f conftest*
9442else
9443 echo "configure: failed program was:" >&5
9444 cat conftest.$ac_ext >&5
9445fi
9446rm -f conftest*
9447if test $ac_cv_c_bigendian = unknown; then
9448if test "$cross_compiling" = yes; then
9449 ac_cv_c_bigendian=unknown
9450else
9451 cat > conftest.$ac_ext <<EOF
88d3a15c 9452#line 9453 "configure"
10f2d63a
VZ
9453#include "confdefs.h"
9454main () {
9455 /* Are we little or big endian? From Harbison&Steele. */
9456 union
9457 {
9458 long l;
9459 char c[sizeof (long)];
9460 } u;
9461 u.l = 1;
9462 exit (u.c[sizeof (long) - 1] == 1);
9463}
9464EOF
88d3a15c 9465if { (eval echo configure:9466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9466then
9467 ac_cv_c_bigendian=no
9468else
9469 echo "configure: failed program was:" >&5
9470 cat conftest.$ac_ext >&5
9471 rm -fr conftest*
9472 ac_cv_c_bigendian=yes
9473fi
9474rm -fr conftest*
9475fi
9476
9477fi
9478fi
9479
9480echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9481if test $ac_cv_c_bigendian = unknown; then
9482 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
9483fi
9484if test $ac_cv_c_bigendian = yes; then
9485 cat >> confdefs.h <<\EOF
9486#define WORDS_BIGENDIAN 1
9487EOF
9488
9489fi
9490
9491
9492
9493 if test "$cross_compiling" = "yes"; then
9494 cat >> confdefs.h <<\EOF
9495#define wxUSE_IOSTREAMH 1
9496EOF
9497
9498 else
9499
9500 ac_ext=C
9501# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9502ac_cpp='$CXXCPP $CPPFLAGS'
9503ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9504ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9505cross_compiling=$ac_cv_prog_cxx_cross
9506
9507
9508 for ac_hdr in iostream
9509do
9510ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9511echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
88d3a15c 9512echo "configure:9513: checking for $ac_hdr" >&5
10f2d63a
VZ
9513if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9514 echo $ac_n "(cached) $ac_c" 1>&6
9515else
9516 cat > conftest.$ac_ext <<EOF
88d3a15c 9517#line 9518 "configure"
10f2d63a
VZ
9518#include "confdefs.h"
9519#include <$ac_hdr>
9520EOF
9521ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
88d3a15c 9522{ (eval echo configure:9523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9523ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9524if test -z "$ac_err"; then
9525 rm -rf conftest*
9526 eval "ac_cv_header_$ac_safe=yes"
9527else
9528 echo "$ac_err" >&5
9529 echo "configure: failed program was:" >&5
9530 cat conftest.$ac_ext >&5
9531 rm -rf conftest*
9532 eval "ac_cv_header_$ac_safe=no"
9533fi
9534rm -f conftest*
9535fi
9536if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9537 echo "$ac_t""yes" 1>&6
9538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9539 cat >> confdefs.h <<EOF
9540#define $ac_tr_hdr 1
9541EOF
9542
9543else
9544 echo "$ac_t""no" 1>&6
9545fi
9546done
9547
9548
9549 if test "x$HAVE_IOSTREAM" = x ; then
9550 cat >> confdefs.h <<\EOF
9551#define wxUSE_IOSTREAMH 1
9552EOF
9553
9554 else
9555 :
9556 fi
9557
9558 ac_ext=c
9559# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9560ac_cpp='$CPP $CPPFLAGS'
9561ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9562ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9563cross_compiling=$ac_cv_prog_cc_cross
9564
9565 fi
9566
9567
9568
9569 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
88d3a15c 9570echo "configure:9571: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9571if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9572 echo $ac_n "(cached) $ac_c" 1>&6
9573else
9574
9575
9576 ac_ext=C
9577# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9578ac_cpp='$CXXCPP $CPPFLAGS'
9579ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9580ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9581cross_compiling=$ac_cv_prog_cxx_cross
9582
9583
9584 cat > conftest.$ac_ext <<EOF
88d3a15c 9585#line 9586 "configure"
10f2d63a
VZ
9586#include "confdefs.h"
9587
9588
9589int main() {
9590
9591 bool b = true;
9592
9593 return 0;
9594
9595; return 0; }
9596EOF
88d3a15c 9597if { (eval echo configure:9598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9598 rm -rf conftest*
9599
9600 cat >> confdefs.h <<\EOF
9601#define HAVE_BOOL 1
9602EOF
9603
9604 wx_cv_cpp_bool=yes
9605
9606else
9607 echo "configure: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9609 rm -rf conftest*
9610
9611 wx_cv_cpp_bool=no
9612
9613
9614fi
9615rm -f conftest*
9616
9617 ac_ext=c
9618# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9619ac_cpp='$CPP $CPPFLAGS'
9620ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9621ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9622cross_compiling=$ac_cv_prog_cc_cross
9623
9624
9625fi
9626
9627echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9628
9629 if test "$wx_cv_cpp_bool" = "yes"; then
9630 cat >> confdefs.h <<\EOF
9631#define HAVE_BOOL 1
9632EOF
9633
9634 fi
9635
9636
9637
10f2d63a 9638echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
88d3a15c 9639echo "configure:9640: checking if you need GNU extensions" >&5
10f2d63a
VZ
9640if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9641 echo $ac_n "(cached) $ac_c" 1>&6
9642else
9643
9644 cat > conftest.$ac_ext <<EOF
88d3a15c 9645#line 9646 "configure"
10f2d63a
VZ
9646#include "confdefs.h"
9647#include <features.h>
9648int main() {
9649
9650
9651#ifndef __GNU_LIBRARY__
9652 Compile error wanted
9653#endif
9654
9655
9656; return 0; }
9657EOF
88d3a15c 9658if { (eval echo configure:9659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9659 rm -rf conftest*
9660 wx_cv_gnu_extensions=yes
9661else
9662 echo "configure: failed program was:" >&5
9663 cat conftest.$ac_ext >&5
9664 rm -rf conftest*
9665 wx_cv_gnu_extensions=no
9666fi
9667rm -f conftest*
9668
9669fi
9670
9671
9672echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9673if test "$wx_cv_gnu_extensions" = "yes"; then
9674 cat >> confdefs.h <<EOF
9675#define _GNU_SOURCE 1
9676EOF
9677
9678fi
9679
9680
9681
9682echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
88d3a15c 9683echo "configure:9684: checking for wcslen in -lc" >&5
10f2d63a
VZ
9684ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9685if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9686 echo $ac_n "(cached) $ac_c" 1>&6
9687else
9688 ac_save_LIBS="$LIBS"
9689LIBS="-lc $LIBS"
9690cat > conftest.$ac_ext <<EOF
88d3a15c 9691#line 9692 "configure"
10f2d63a
VZ
9692#include "confdefs.h"
9693/* Override any gcc2 internal prototype to avoid an error. */
9694/* We use char because int might match the return type of a gcc2
9695 builtin and then its argument prototype would still apply. */
9696char wcslen();
9697
9698int main() {
9699wcslen()
9700; return 0; }
9701EOF
88d3a15c 9702if { (eval echo configure:9703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9703 rm -rf conftest*
9704 eval "ac_cv_lib_$ac_lib_var=yes"
9705else
9706 echo "configure: failed program was:" >&5
9707 cat conftest.$ac_ext >&5
9708 rm -rf conftest*
9709 eval "ac_cv_lib_$ac_lib_var=no"
9710fi
9711rm -f conftest*
9712LIBS="$ac_save_LIBS"
9713
9714fi
9715if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9716 echo "$ac_t""yes" 1>&6
9717
9718 cat >> confdefs.h <<\EOF
9719#define HAVE_WCSLEN 1
9720EOF
9721
9722 WCHAR_LINK=""
9723
9724else
9725 echo "$ac_t""no" 1>&6
9726
9727 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
88d3a15c 9728echo "configure:9729: checking for wcslen in -lw" >&5
10f2d63a
VZ
9729ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9730if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9731 echo $ac_n "(cached) $ac_c" 1>&6
9732else
9733 ac_save_LIBS="$LIBS"
9734LIBS="-lw $LIBS"
9735cat > conftest.$ac_ext <<EOF
88d3a15c 9736#line 9737 "configure"
10f2d63a
VZ
9737#include "confdefs.h"
9738/* Override any gcc2 internal prototype to avoid an error. */
9739/* We use char because int might match the return type of a gcc2
9740 builtin and then its argument prototype would still apply. */
9741char wcslen();
9742
9743int main() {
9744wcslen()
9745; return 0; }
9746EOF
88d3a15c 9747if { (eval echo configure:9748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9748 rm -rf conftest*
9749 eval "ac_cv_lib_$ac_lib_var=yes"
9750else
9751 echo "configure: failed program was:" >&5
9752 cat conftest.$ac_ext >&5
9753 rm -rf conftest*
9754 eval "ac_cv_lib_$ac_lib_var=no"
9755fi
9756rm -f conftest*
9757LIBS="$ac_save_LIBS"
9758
9759fi
9760if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9761 echo "$ac_t""yes" 1>&6
9762
9763 cat >> confdefs.h <<\EOF
9764#define HAVE_WCSLEN 1
9765EOF
9766
9767 WCHAR_LINK="-lw"
9768
9769else
9770 echo "$ac_t""no" 1>&6
9771fi
9772
9773
9774fi
9775
9776
9777echo $ac_n "checking for vprintf""... $ac_c" 1>&6
88d3a15c 9778echo "configure:9779: checking for vprintf" >&5
10f2d63a
VZ
9779if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9780 echo $ac_n "(cached) $ac_c" 1>&6
9781else
9782 cat > conftest.$ac_ext <<EOF
88d3a15c 9783#line 9784 "configure"
10f2d63a
VZ
9784#include "confdefs.h"
9785/* System header to define __stub macros and hopefully few prototypes,
9786 which can conflict with char vprintf(); below. */
9787#include <assert.h>
9788/* Override any gcc2 internal prototype to avoid an error. */
9789/* We use char because int might match the return type of a gcc2
9790 builtin and then its argument prototype would still apply. */
9791char vprintf();
9792
9793int main() {
9794
9795/* The GNU C library defines this for functions which it implements
9796 to always fail with ENOSYS. Some functions are actually named
9797 something starting with __ and the normal name is an alias. */
9798#if defined (__stub_vprintf) || defined (__stub___vprintf)
9799choke me
9800#else
88d3a15c 9801vprintf();
10f2d63a
VZ
9802#endif
9803
9804; return 0; }
9805EOF
88d3a15c 9806if { (eval echo configure:9807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9807 rm -rf conftest*
9808 eval "ac_cv_func_vprintf=yes"
9809else
9810 echo "configure: failed program was:" >&5
9811 cat conftest.$ac_ext >&5
9812 rm -rf conftest*
9813 eval "ac_cv_func_vprintf=no"
9814fi
9815rm -f conftest*
9816fi
9817
9818if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9819 echo "$ac_t""yes" 1>&6
9820 cat >> confdefs.h <<\EOF
9821#define HAVE_VPRINTF 1
9822EOF
9823
9824else
9825 echo "$ac_t""no" 1>&6
9826fi
9827
9828if test "$ac_cv_func_vprintf" != yes; then
9829echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
88d3a15c 9830echo "configure:9831: checking for _doprnt" >&5
10f2d63a
VZ
9831if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9832 echo $ac_n "(cached) $ac_c" 1>&6
9833else
9834 cat > conftest.$ac_ext <<EOF
88d3a15c 9835#line 9836 "configure"
10f2d63a
VZ
9836#include "confdefs.h"
9837/* System header to define __stub macros and hopefully few prototypes,
9838 which can conflict with char _doprnt(); below. */
9839#include <assert.h>
9840/* Override any gcc2 internal prototype to avoid an error. */
9841/* We use char because int might match the return type of a gcc2
9842 builtin and then its argument prototype would still apply. */
9843char _doprnt();
9844
9845int main() {
9846
9847/* The GNU C library defines this for functions which it implements
9848 to always fail with ENOSYS. Some functions are actually named
9849 something starting with __ and the normal name is an alias. */
9850#if defined (__stub__doprnt) || defined (__stub____doprnt)
9851choke me
9852#else
88d3a15c 9853_doprnt();
10f2d63a
VZ
9854#endif
9855
9856; return 0; }
9857EOF
88d3a15c 9858if { (eval echo configure:9859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9859 rm -rf conftest*
9860 eval "ac_cv_func__doprnt=yes"
9861else
9862 echo "configure: failed program was:" >&5
9863 cat conftest.$ac_ext >&5
9864 rm -rf conftest*
9865 eval "ac_cv_func__doprnt=no"
9866fi
9867rm -f conftest*
9868fi
9869
9870if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9871 echo "$ac_t""yes" 1>&6
9872 cat >> confdefs.h <<\EOF
9873#define HAVE_DOPRNT 1
9874EOF
9875
9876else
9877 echo "$ac_t""no" 1>&6
9878fi
9879
9880fi
9881
9882
9883for ac_func in vsnprintf
9884do
9885echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
88d3a15c 9886echo "configure:9887: checking for $ac_func" >&5
10f2d63a
VZ
9887if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9888 echo $ac_n "(cached) $ac_c" 1>&6
9889else
9890 cat > conftest.$ac_ext <<EOF
88d3a15c 9891#line 9892 "configure"
10f2d63a
VZ
9892#include "confdefs.h"
9893/* System header to define __stub macros and hopefully few prototypes,
9894 which can conflict with char $ac_func(); below. */
9895#include <assert.h>
9896/* Override any gcc2 internal prototype to avoid an error. */
9897/* We use char because int might match the return type of a gcc2
9898 builtin and then its argument prototype would still apply. */
9899char $ac_func();
9900
9901int main() {
9902
9903/* The GNU C library defines this for functions which it implements
9904 to always fail with ENOSYS. Some functions are actually named
9905 something starting with __ and the normal name is an alias. */
9906#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9907choke me
9908#else
88d3a15c 9909$ac_func();
10f2d63a
VZ
9910#endif
9911
9912; return 0; }
9913EOF
88d3a15c 9914if { (eval echo configure:9915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9915 rm -rf conftest*
9916 eval "ac_cv_func_$ac_func=yes"
9917else
9918 echo "configure: failed program was:" >&5
9919 cat conftest.$ac_ext >&5
9920 rm -rf conftest*
9921 eval "ac_cv_func_$ac_func=no"
9922fi
9923rm -f conftest*
9924fi
9925
9926if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9927 echo "$ac_t""yes" 1>&6
9928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9929 cat >> confdefs.h <<EOF
9930#define $ac_tr_func 1
9931EOF
9932 cat >> confdefs.h <<\EOF
9933#define HAVE_VSNPRINTF 1
9934EOF
9935
9936else
9937 echo "$ac_t""no" 1>&6
9938echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9939
9940fi
9941done
9942
9943
9944
9945ac_ext=C
9946# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9947ac_cpp='$CXXCPP $CPPFLAGS'
9948ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9949ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9950cross_compiling=$ac_cv_prog_cxx_cross
9951
9952
9953echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
88d3a15c 9954echo "configure:9955: checking for vsscanf" >&5
10f2d63a
VZ
9955if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9956 echo $ac_n "(cached) $ac_c" 1>&6
9957else
9958
9959 if test "$cross_compiling" = yes; then
9960 wx_cv_func_vsscanf=no
9961
9962else
9963 cat > conftest.$ac_ext <<EOF
88d3a15c 9964#line 9965 "configure"
10f2d63a
VZ
9965#include "confdefs.h"
9966#ifdef __cplusplus
9967extern "C" void exit(int);
9968#endif
9969
9970 #include <stdio.h>
9971 #include <stdarg.h>
9972
9973 int try_vsscanf(const char *format, ...)
9974 {
9975 va_list ap;
9976 va_start(ap, format);
9977
9978 vsscanf("17", format, ap);
9979
9980 va_end(ap);
9981 }
9982
9983 int main()
9984 {
9985 int i;
9986 try_vsscanf("%d", &i);
9987 return i == 17 ? 0 : 1;
9988 }
9989
9990EOF
88d3a15c 9991if { (eval echo configure:9992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9992then
9993
9994 cat >> confdefs.h <<\EOF
9995#define HAVE_VSSCANF 1
9996EOF
9997
9998 wx_cv_func_vsscanf=yes
9999
10000else
10001 echo "configure: failed program was:" >&5
10002 cat conftest.$ac_ext >&5
10003 rm -fr conftest*
10004 wx_cv_func_vsscanf=no
10005fi
10006rm -fr conftest*
10007fi
10008
10009
10010fi
10011
10012echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10013
10014ac_ext=c
10015# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10016ac_cpp='$CPP $CPPFLAGS'
10017ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10018ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10019cross_compiling=$ac_cv_prog_cc_cross
10020
10021
b089607b 10022if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10023
10024for ac_func in vfork
10025do
10026echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
88d3a15c 10027echo "configure:10028: checking for $ac_func" >&5
10f2d63a
VZ
10028if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10029 echo $ac_n "(cached) $ac_c" 1>&6
10030else
10031 cat > conftest.$ac_ext <<EOF
88d3a15c 10032#line 10033 "configure"
10f2d63a
VZ
10033#include "confdefs.h"
10034/* System header to define __stub macros and hopefully few prototypes,
10035 which can conflict with char $ac_func(); below. */
10036#include <assert.h>
10037/* Override any gcc2 internal prototype to avoid an error. */
10038/* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10040char $ac_func();
10041
10042int main() {
10043
10044/* The GNU C library defines this for functions which it implements
10045 to always fail with ENOSYS. Some functions are actually named
10046 something starting with __ and the normal name is an alias. */
10047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10048choke me
10049#else
88d3a15c 10050$ac_func();
10f2d63a
VZ
10051#endif
10052
10053; return 0; }
10054EOF
88d3a15c 10055if { (eval echo configure:10056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
10056 rm -rf conftest*
10057 eval "ac_cv_func_$ac_func=yes"
10058else
10059 echo "configure: failed program was:" >&5
10060 cat conftest.$ac_ext >&5
10061 rm -rf conftest*
10062 eval "ac_cv_func_$ac_func=no"
10063fi
10064rm -f conftest*
10065fi
10066
10067if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10068 echo "$ac_t""yes" 1>&6
10069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10070 cat >> confdefs.h <<EOF
10071#define $ac_tr_func 1
10072EOF
10073
10074else
10075 echo "$ac_t""no" 1>&6
10076fi
10077done
10078
10079
10080for ac_func in timegm
10081do
10082echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
88d3a15c 10083echo "configure:10084: checking for $ac_func" >&5
270a909e
VZ
10084if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10085 echo $ac_n "(cached) $ac_c" 1>&6
10086else
10087 cat > conftest.$ac_ext <<EOF
88d3a15c 10088#line 10089 "configure"
270a909e
VZ
10089#include "confdefs.h"
10090/* System header to define __stub macros and hopefully few prototypes,
10091 which can conflict with char $ac_func(); below. */
10092#include <assert.h>
10093/* Override any gcc2 internal prototype to avoid an error. */
10094/* We use char because int might match the return type of a gcc2
10095 builtin and then its argument prototype would still apply. */
10096char $ac_func();
10097
10098int main() {
10099
10100/* The GNU C library defines this for functions which it implements
10101 to always fail with ENOSYS. Some functions are actually named
10102 something starting with __ and the normal name is an alias. */
10103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10104choke me
10105#else
88d3a15c 10106$ac_func();
270a909e
VZ
10107#endif
10108
10109; return 0; }
10110EOF
88d3a15c 10111if { (eval echo configure:10112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10112 rm -rf conftest*
10113 eval "ac_cv_func_$ac_func=yes"
10114else
10115 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10117 rm -rf conftest*
10118 eval "ac_cv_func_$ac_func=no"
10119fi
10120rm -f conftest*
10121fi
10122
10123if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10124 echo "$ac_t""yes" 1>&6
10125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10126 cat >> confdefs.h <<EOF
10127#define $ac_tr_func 1
10128EOF
10129
10130else
10131 echo "$ac_t""no" 1>&6
10132fi
10133done
10134
10135
b12915c1
VZ
10136HAVE_SOME_SLEEP_FUNC=0
10137if test "$USE_BEOS" = 1; then
10138 cat >> confdefs.h <<\EOF
10139#define HAVE_SLEEP 1
10140EOF
10141
10142 HAVE_SOME_SLEEP_FUNC=1
10143fi
10144
10145if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10146 POSIX4_LINK=
10147 for ac_func in nanosleep
10f2d63a
VZ
10148do
10149echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
88d3a15c 10150echo "configure:10151: checking for $ac_func" >&5
10f2d63a
VZ
10151if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10152 echo $ac_n "(cached) $ac_c" 1>&6
10153else
10154 cat > conftest.$ac_ext <<EOF
88d3a15c 10155#line 10156 "configure"
10f2d63a
VZ
10156#include "confdefs.h"
10157/* System header to define __stub macros and hopefully few prototypes,
10158 which can conflict with char $ac_func(); below. */
10159#include <assert.h>
10160/* Override any gcc2 internal prototype to avoid an error. */
10161/* We use char because int might match the return type of a gcc2
10162 builtin and then its argument prototype would still apply. */
10163char $ac_func();
10164
10165int main() {
10166
10167/* The GNU C library defines this for functions which it implements
10168 to always fail with ENOSYS. Some functions are actually named
10169 something starting with __ and the normal name is an alias. */
10170#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10171choke me
10172#else
88d3a15c 10173$ac_func();
10f2d63a
VZ
10174#endif
10175
10176; return 0; }
10177EOF
88d3a15c 10178if { (eval echo configure:10179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10179 rm -rf conftest*
10180 eval "ac_cv_func_$ac_func=yes"
10181else
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10184 rm -rf conftest*
10185 eval "ac_cv_func_$ac_func=no"
10186fi
10187rm -f conftest*
10188fi
10189
10190if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10191 echo "$ac_t""yes" 1>&6
10192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10193 cat >> confdefs.h <<EOF
10194#define $ac_tr_func 1
10195EOF
10196 cat >> confdefs.h <<\EOF
10197#define HAVE_NANOSLEEP 1
10198EOF
10199
10200else
10201 echo "$ac_t""no" 1>&6
10202echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
88d3a15c 10203echo "configure:10204: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
10204ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10205if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10206 echo $ac_n "(cached) $ac_c" 1>&6
10207else
10208 ac_save_LIBS="$LIBS"
10209LIBS="-lposix4 $LIBS"
10210cat > conftest.$ac_ext <<EOF
88d3a15c 10211#line 10212 "configure"
10f2d63a
VZ
10212#include "confdefs.h"
10213/* Override any gcc2 internal prototype to avoid an error. */
10214/* We use char because int might match the return type of a gcc2
10215 builtin and then its argument prototype would still apply. */
10216char nanosleep();
10217
10218int main() {
10219nanosleep()
10220; return 0; }
10221EOF
88d3a15c 10222if { (eval echo configure:10223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10223 rm -rf conftest*
10224 eval "ac_cv_lib_$ac_lib_var=yes"
10225else
10226 echo "configure: failed program was:" >&5
10227 cat conftest.$ac_ext >&5
10228 rm -rf conftest*
10229 eval "ac_cv_lib_$ac_lib_var=no"
10230fi
10231rm -f conftest*
10232LIBS="$ac_save_LIBS"
10233
10234fi
10235if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10236 echo "$ac_t""yes" 1>&6
10237
b12915c1 10238 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10239#define HAVE_NANOSLEEP 1
10240EOF
10241
b12915c1
VZ
10242 POSIX4_LINK="-lposix4"
10243
10f2d63a
VZ
10244else
10245 echo "$ac_t""no" 1>&6
10246
b12915c1 10247 for ac_func in usleep
10f2d63a
VZ
10248do
10249echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
88d3a15c 10250echo "configure:10251: checking for $ac_func" >&5
10f2d63a
VZ
10251if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10252 echo $ac_n "(cached) $ac_c" 1>&6
10253else
10254 cat > conftest.$ac_ext <<EOF
88d3a15c 10255#line 10256 "configure"
10f2d63a
VZ
10256#include "confdefs.h"
10257/* System header to define __stub macros and hopefully few prototypes,
10258 which can conflict with char $ac_func(); below. */
10259#include <assert.h>
10260/* Override any gcc2 internal prototype to avoid an error. */
10261/* We use char because int might match the return type of a gcc2
10262 builtin and then its argument prototype would still apply. */
10263char $ac_func();
10264
10265int main() {
10266
10267/* The GNU C library defines this for functions which it implements
10268 to always fail with ENOSYS. Some functions are actually named
10269 something starting with __ and the normal name is an alias. */
10270#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10271choke me
10272#else
88d3a15c 10273$ac_func();
10f2d63a
VZ
10274#endif
10275
10276; return 0; }
10277EOF
88d3a15c 10278if { (eval echo configure:10279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10279 rm -rf conftest*
10280 eval "ac_cv_func_$ac_func=yes"
10281else
10282 echo "configure: failed program was:" >&5
10283 cat conftest.$ac_ext >&5
10284 rm -rf conftest*
10285 eval "ac_cv_func_$ac_func=no"
10286fi
10287rm -f conftest*
10288fi
10289
10290if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10291 echo "$ac_t""yes" 1>&6
10292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10293 cat >> confdefs.h <<EOF
10294#define $ac_tr_func 1
10295EOF
b12915c1 10296
10f2d63a
VZ
10297else
10298 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10299fi
10300done
10301
b12915c1
VZ
10302 echo "configure: warning: wxSleep() function will not work" 1>&2
10303
10304
10f2d63a
VZ
10305fi
10306
b12915c1
VZ
10307
10308
10f2d63a
VZ
10309fi
10310done
10311
b12915c1 10312fi
10f2d63a
VZ
10313
10314for ac_func in uname gethostname
10315do
10316echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
88d3a15c 10317echo "configure:10318: checking for $ac_func" >&5
10f2d63a
VZ
10318if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10319 echo $ac_n "(cached) $ac_c" 1>&6
10320else
10321 cat > conftest.$ac_ext <<EOF
88d3a15c 10322#line 10323 "configure"
10f2d63a
VZ
10323#include "confdefs.h"
10324/* System header to define __stub macros and hopefully few prototypes,
10325 which can conflict with char $ac_func(); below. */
10326#include <assert.h>
10327/* Override any gcc2 internal prototype to avoid an error. */
10328/* We use char because int might match the return type of a gcc2
10329 builtin and then its argument prototype would still apply. */
10330char $ac_func();
10331
10332int main() {
10333
10334/* The GNU C library defines this for functions which it implements
10335 to always fail with ENOSYS. Some functions are actually named
10336 something starting with __ and the normal name is an alias. */
10337#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10338choke me
10339#else
88d3a15c 10340$ac_func();
10f2d63a
VZ
10341#endif
10342
10343; return 0; }
10344EOF
88d3a15c 10345if { (eval echo configure:10346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10346 rm -rf conftest*
10347 eval "ac_cv_func_$ac_func=yes"
10348else
10349 echo "configure: failed program was:" >&5
10350 cat conftest.$ac_ext >&5
10351 rm -rf conftest*
10352 eval "ac_cv_func_$ac_func=no"
10353fi
10354rm -f conftest*
10355fi
10356
10357if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10358 echo "$ac_t""yes" 1>&6
10359 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10360 cat >> confdefs.h <<EOF
10361#define $ac_tr_func 1
10362EOF
10363 break
10364else
10365 echo "$ac_t""no" 1>&6
10366fi
10367done
10368
10369
10370for ac_func in strtok_r
10371do
10372echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
88d3a15c 10373echo "configure:10374: checking for $ac_func" >&5
10f2d63a
VZ
10374if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10375 echo $ac_n "(cached) $ac_c" 1>&6
10376else
10377 cat > conftest.$ac_ext <<EOF
88d3a15c 10378#line 10379 "configure"
10f2d63a
VZ
10379#include "confdefs.h"
10380/* System header to define __stub macros and hopefully few prototypes,
10381 which can conflict with char $ac_func(); below. */
10382#include <assert.h>
10383/* Override any gcc2 internal prototype to avoid an error. */
10384/* We use char because int might match the return type of a gcc2
10385 builtin and then its argument prototype would still apply. */
10386char $ac_func();
10387
10388int main() {
10389
10390/* The GNU C library defines this for functions which it implements
10391 to always fail with ENOSYS. Some functions are actually named
10392 something starting with __ and the normal name is an alias. */
10393#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10394choke me
10395#else
88d3a15c 10396$ac_func();
10f2d63a
VZ
10397#endif
10398
10399; return 0; }
10400EOF
88d3a15c 10401if { (eval echo configure:10402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10402 rm -rf conftest*
10403 eval "ac_cv_func_$ac_func=yes"
10404else
10405 echo "configure: failed program was:" >&5
10406 cat conftest.$ac_ext >&5
10407 rm -rf conftest*
10408 eval "ac_cv_func_$ac_func=no"
10409fi
10410rm -f conftest*
10411fi
10412
10413if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10414 echo "$ac_t""yes" 1>&6
10415 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10416 cat >> confdefs.h <<EOF
10417#define $ac_tr_func 1
10418EOF
10419
10420else
10421 echo "$ac_t""no" 1>&6
10422fi
10423done
10424
10425
c63c7106 10426INET_LINK=
10f2d63a
VZ
10427for ac_func in inet_addr
10428do
10429echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
88d3a15c 10430echo "configure:10431: checking for $ac_func" >&5
10f2d63a
VZ
10431if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10432 echo $ac_n "(cached) $ac_c" 1>&6
10433else
10434 cat > conftest.$ac_ext <<EOF
88d3a15c 10435#line 10436 "configure"
10f2d63a
VZ
10436#include "confdefs.h"
10437/* System header to define __stub macros and hopefully few prototypes,
10438 which can conflict with char $ac_func(); below. */
10439#include <assert.h>
10440/* Override any gcc2 internal prototype to avoid an error. */
10441/* We use char because int might match the return type of a gcc2
10442 builtin and then its argument prototype would still apply. */
10443char $ac_func();
10444
10445int main() {
10446
10447/* The GNU C library defines this for functions which it implements
10448 to always fail with ENOSYS. Some functions are actually named
10449 something starting with __ and the normal name is an alias. */
10450#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10451choke me
10452#else
88d3a15c 10453$ac_func();
10f2d63a
VZ
10454#endif
10455
10456; return 0; }
10457EOF
88d3a15c 10458if { (eval echo configure:10459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10459 rm -rf conftest*
10460 eval "ac_cv_func_$ac_func=yes"
10461else
10462 echo "configure: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10464 rm -rf conftest*
10465 eval "ac_cv_func_$ac_func=no"
10466fi
10467rm -f conftest*
10468fi
10469
10470if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10471 echo "$ac_t""yes" 1>&6
10472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10473 cat >> confdefs.h <<EOF
10474#define $ac_tr_func 1
10475EOF
c63c7106
VZ
10476 cat >> confdefs.h <<\EOF
10477#define HAVE_INET_ADDR 1
10478EOF
10479
10f2d63a
VZ
10480else
10481 echo "$ac_t""no" 1>&6
c63c7106 10482echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
88d3a15c 10483echo "configure:10484: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10484ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10485if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10486 echo $ac_n "(cached) $ac_c" 1>&6
10487else
10488 ac_save_LIBS="$LIBS"
10489LIBS="-lnsl $LIBS"
10490cat > conftest.$ac_ext <<EOF
88d3a15c 10491#line 10492 "configure"
c63c7106
VZ
10492#include "confdefs.h"
10493/* Override any gcc2 internal prototype to avoid an error. */
10494/* We use char because int might match the return type of a gcc2
10495 builtin and then its argument prototype would still apply. */
10496char inet_addr();
10497
10498int main() {
10499inet_addr()
10500; return 0; }
10501EOF
88d3a15c 10502if { (eval echo configure:10503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10503 rm -rf conftest*
10504 eval "ac_cv_lib_$ac_lib_var=yes"
10505else
10506 echo "configure: failed program was:" >&5
10507 cat conftest.$ac_ext >&5
10508 rm -rf conftest*
10509 eval "ac_cv_lib_$ac_lib_var=no"
10510fi
10511rm -f conftest*
10512LIBS="$ac_save_LIBS"
10513
10514fi
10515if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10516 echo "$ac_t""yes" 1>&6
10517 INET_LINK="nsl"
10518else
10519 echo "$ac_t""no" 1>&6
10520echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
88d3a15c 10521echo "configure:10522: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10522ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10523if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10524 echo $ac_n "(cached) $ac_c" 1>&6
10525else
10526 ac_save_LIBS="$LIBS"
10527LIBS="-lresolv $LIBS"
10528cat > conftest.$ac_ext <<EOF
88d3a15c 10529#line 10530 "configure"
c63c7106
VZ
10530#include "confdefs.h"
10531/* Override any gcc2 internal prototype to avoid an error. */
10532/* We use char because int might match the return type of a gcc2
10533 builtin and then its argument prototype would still apply. */
10534char inet_addr();
10535
10536int main() {
10537inet_addr()
10538; return 0; }
10539EOF
88d3a15c 10540if { (eval echo configure:10541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10541 rm -rf conftest*
10542 eval "ac_cv_lib_$ac_lib_var=yes"
10543else
10544 echo "configure: failed program was:" >&5
10545 cat conftest.$ac_ext >&5
10546 rm -rf conftest*
10547 eval "ac_cv_lib_$ac_lib_var=no"
10548fi
10549rm -f conftest*
10550LIBS="$ac_save_LIBS"
10551
10552fi
10553if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10554 echo "$ac_t""yes" 1>&6
10555 INET_LINK="resolv"
10556
10557else
10558 echo "$ac_t""no" 1>&6
10559fi
10560
10561
10562fi
10563
10564
10565
10f2d63a
VZ
10566fi
10567done
10568
c63c7106 10569
10f2d63a
VZ
10570for ac_func in inet_aton
10571do
10572echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
88d3a15c 10573echo "configure:10574: checking for $ac_func" >&5
10f2d63a
VZ
10574if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10575 echo $ac_n "(cached) $ac_c" 1>&6
10576else
10577 cat > conftest.$ac_ext <<EOF
88d3a15c 10578#line 10579 "configure"
10f2d63a
VZ
10579#include "confdefs.h"
10580/* System header to define __stub macros and hopefully few prototypes,
10581 which can conflict with char $ac_func(); below. */
10582#include <assert.h>
10583/* Override any gcc2 internal prototype to avoid an error. */
10584/* We use char because int might match the return type of a gcc2
10585 builtin and then its argument prototype would still apply. */
10586char $ac_func();
10587
10588int main() {
10589
10590/* The GNU C library defines this for functions which it implements
10591 to always fail with ENOSYS. Some functions are actually named
10592 something starting with __ and the normal name is an alias. */
10593#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10594choke me
10595#else
88d3a15c 10596$ac_func();
10f2d63a
VZ
10597#endif
10598
10599; return 0; }
10600EOF
88d3a15c 10601if { (eval echo configure:10602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10602 rm -rf conftest*
10603 eval "ac_cv_func_$ac_func=yes"
10604else
10605 echo "configure: failed program was:" >&5
10606 cat conftest.$ac_ext >&5
10607 rm -rf conftest*
10608 eval "ac_cv_func_$ac_func=no"
10609fi
10610rm -f conftest*
10611fi
10612
10613if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10614 echo "$ac_t""yes" 1>&6
10615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10616 cat >> confdefs.h <<EOF
10617#define $ac_tr_func 1
10618EOF
c63c7106
VZ
10619 cat >> confdefs.h <<\EOF
10620#define HAVE_INET_ATON 1
10621EOF
10622
10f2d63a
VZ
10623else
10624 echo "$ac_t""no" 1>&6
c63c7106 10625 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
88d3a15c 10626echo "configure:10627: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10627ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10628if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10629 echo $ac_n "(cached) $ac_c" 1>&6
10630else
10631 ac_save_LIBS="$LIBS"
c63c7106 10632LIBS="-l$INET_LINK $LIBS"
10f2d63a 10633cat > conftest.$ac_ext <<EOF
88d3a15c 10634#line 10635 "configure"
10f2d63a
VZ
10635#include "confdefs.h"
10636/* Override any gcc2 internal prototype to avoid an error. */
10637/* We use char because int might match the return type of a gcc2
10638 builtin and then its argument prototype would still apply. */
10639char inet_aton();
10640
10641int main() {
10642inet_aton()
10643; return 0; }
10644EOF
88d3a15c 10645if { (eval echo configure:10646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10646 rm -rf conftest*
10647 eval "ac_cv_lib_$ac_lib_var=yes"
10648else
10649 echo "configure: failed program was:" >&5
10650 cat conftest.$ac_ext >&5
10651 rm -rf conftest*
10652 eval "ac_cv_lib_$ac_lib_var=no"
10653fi
10654rm -f conftest*
10655LIBS="$ac_save_LIBS"
10656
10657fi
10658if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10659 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10660 cat >> confdefs.h <<\EOF
10661#define HAVE_INET_ATON 1
10f2d63a
VZ
10662EOF
10663
10f2d63a
VZ
10664else
10665 echo "$ac_t""no" 1>&6
10666fi
10667
c63c7106
VZ
10668
10669fi
10670done
10671
10672
10673if test "x$INET_LINK" != "x"; then
10674 cat >> confdefs.h <<\EOF
10675#define HAVE_INET_ADDR 1
10676EOF
10677
10678 INET_LINK="-l$INET_LINK"
10679fi
10f2d63a
VZ
10680
10681fi
10682
10683
10684cat > confcache <<\EOF
10685# This file is a shell script that caches the results of configure
10686# tests run on this system so they can be shared between configure
10687# scripts and configure runs. It is not useful on other systems.
10688# If it contains results you don't want to keep, you may remove or edit it.
10689#
10690# By default, configure uses ./config.cache as the cache file,
10691# creating it if it does not exist already. You can give configure
10692# the --cache-file=FILE option to use a different cache file; that is
10693# what configure does when it calls configure scripts in
10694# subdirectories, so they share the cache.
10695# Giving --cache-file=/dev/null disables caching, for debugging configure.
10696# config.status only pays attention to the cache file if you give it the
10697# --recheck option to rerun configure.
10698#
10699EOF
10700# The following way of writing the cache mishandles newlines in values,
10701# but we know of no workaround that is simple, portable, and efficient.
10702# So, don't put newlines in cache variables' values.
10703# Ultrix sh set writes to stderr and can't be redirected directly,
10704# and sets the high bit in the cache file unless we assign to the vars.
10705(set) 2>&1 |
10706 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10707 *ac_space=\ *)
10708 # `set' does not quote correctly, so add quotes (double-quote substitution
10709 # turns \\\\ into \\, and sed turns \\ into \).
10710 sed -n \
10711 -e "s/'/'\\\\''/g" \
10712 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10713 ;;
10714 *)
10715 # `set' quotes correctly as required by POSIX, so do not add quotes.
10716 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10717 ;;
10718 esac >> confcache
10719if cmp -s $cache_file confcache; then
10720 :
10721else
10722 if test -w $cache_file; then
10723 echo "updating cache $cache_file"
10724 cat confcache > $cache_file
10725 else
10726 echo "not updating unwritable cache $cache_file"
10727 fi
10728fi
10729rm -f confcache
10730
10731
10732
b089607b 10733if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10734
10735
10736THREADS_LINK=""
10737THREADS_OBJ=""
10738
10739if test "$wxUSE_THREADS" = "yes" ; then
10740 if test "$wxUSE_WINE" = 1 ; then
10741 echo "configure: warning: Threads are not supported under WINE" 1>&2
10742 wxUSE_THREADS="no"
b12915c1
VZ
10743 elif test "$USE_BEOS" = 1; then
10744 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10745 wxUSE_THREADS="no"
10f2d63a
VZ
10746 fi
10747fi
10748
10749if test "$wxUSE_THREADS" = "yes" ; then
10750
10751 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
88d3a15c 10752echo "configure:10753: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10753ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10754if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10755 echo $ac_n "(cached) $ac_c" 1>&6
10756else
10757 ac_save_LIBS="$LIBS"
10758LIBS="-lpthread $LIBS"
10759cat > conftest.$ac_ext <<EOF
88d3a15c 10760#line 10761 "configure"
10f2d63a
VZ
10761#include "confdefs.h"
10762/* Override any gcc2 internal prototype to avoid an error. */
10763/* We use char because int might match the return type of a gcc2
10764 builtin and then its argument prototype would still apply. */
10765char pthread_create();
10766
10767int main() {
10768pthread_create()
10769; return 0; }
10770EOF
88d3a15c 10771if { (eval echo configure:10772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10772 rm -rf conftest*
10773 eval "ac_cv_lib_$ac_lib_var=yes"
10774else
10775 echo "configure: failed program was:" >&5
10776 cat conftest.$ac_ext >&5
10777 rm -rf conftest*
10778 eval "ac_cv_lib_$ac_lib_var=no"
10779fi
10780rm -f conftest*
10781LIBS="$ac_save_LIBS"
10782
10783fi
10784if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10785 echo "$ac_t""yes" 1>&6
10786
10787 THREADS_OBJ="threadpsx.lo"
10788 THREADS_LINK="pthread"
10789
10790else
10791 echo "$ac_t""no" 1>&6
10792
10793 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
88d3a15c 10794echo "configure:10795: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10795ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10796if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10797 echo $ac_n "(cached) $ac_c" 1>&6
10798else
10799 ac_save_LIBS="$LIBS"
10800LIBS="-lc_r $LIBS"
10801cat > conftest.$ac_ext <<EOF
88d3a15c 10802#line 10803 "configure"
10f2d63a
VZ
10803#include "confdefs.h"
10804/* Override any gcc2 internal prototype to avoid an error. */
10805/* We use char because int might match the return type of a gcc2
10806 builtin and then its argument prototype would still apply. */
10807char pthread_create();
10808
10809int main() {
10810pthread_create()
10811; return 0; }
10812EOF
88d3a15c 10813if { (eval echo configure:10814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10814 rm -rf conftest*
10815 eval "ac_cv_lib_$ac_lib_var=yes"
10816else
10817 echo "configure: failed program was:" >&5
10818 cat conftest.$ac_ext >&5
10819 rm -rf conftest*
10820 eval "ac_cv_lib_$ac_lib_var=no"
10821fi
10822rm -f conftest*
10823LIBS="$ac_save_LIBS"
10824
10825fi
10826if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10827 echo "$ac_t""yes" 1>&6
10828
10829 THREADS_OBJ="threadpsx.lo"
10830 THREADS_LINK="c_r"
10831
10832else
10833 echo "$ac_t""no" 1>&6
10834
10835 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10836echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
88d3a15c 10837echo "configure:10838: checking for sys/prctl.h" >&5
10f2d63a
VZ
10838if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10839 echo $ac_n "(cached) $ac_c" 1>&6
10840else
10841 cat > conftest.$ac_ext <<EOF
88d3a15c 10842#line 10843 "configure"
10f2d63a
VZ
10843#include "confdefs.h"
10844#include <sys/prctl.h>
10845EOF
10846ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
88d3a15c 10847{ (eval echo configure:10848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10848ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10849if test -z "$ac_err"; then
10850 rm -rf conftest*
10851 eval "ac_cv_header_$ac_safe=yes"
10852else
10853 echo "$ac_err" >&5
10854 echo "configure: failed program was:" >&5
10855 cat conftest.$ac_ext >&5
10856 rm -rf conftest*
10857 eval "ac_cv_header_$ac_safe=no"
10858fi
10859rm -f conftest*
10860fi
10861if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10862 echo "$ac_t""yes" 1>&6
10863
10864 THREADS_OBJ="threadsgi.lo"
10865
10866else
10867 echo "$ac_t""no" 1>&6
10868fi
10869
10870
10871fi
10872
10873
10874fi
10875
10876
10877 if test -z "$THREADS_OBJ" ; then
10878 wxUSE_THREADS=no
10879 echo "configure: warning: No thread support on this system" 1>&2
10880 fi
10881fi
10882
10883if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
10884 for ac_func in thr_setconcurrency
10885do
10886echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
88d3a15c 10887echo "configure:10888: checking for $ac_func" >&5
70846f0a
VZ
10888if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10889 echo $ac_n "(cached) $ac_c" 1>&6
10890else
10891 cat > conftest.$ac_ext <<EOF
88d3a15c 10892#line 10893 "configure"
70846f0a
VZ
10893#include "confdefs.h"
10894/* System header to define __stub macros and hopefully few prototypes,
10895 which can conflict with char $ac_func(); below. */
10896#include <assert.h>
10897/* Override any gcc2 internal prototype to avoid an error. */
10898/* We use char because int might match the return type of a gcc2
10899 builtin and then its argument prototype would still apply. */
10900char $ac_func();
10901
10902int main() {
10903
10904/* The GNU C library defines this for functions which it implements
10905 to always fail with ENOSYS. Some functions are actually named
10906 something starting with __ and the normal name is an alias. */
10907#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10908choke me
10909#else
88d3a15c 10910$ac_func();
70846f0a
VZ
10911#endif
10912
10913; return 0; }
10914EOF
88d3a15c 10915if { (eval echo configure:10916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
10916 rm -rf conftest*
10917 eval "ac_cv_func_$ac_func=yes"
10918else
10919 echo "configure: failed program was:" >&5
10920 cat conftest.$ac_ext >&5
10921 rm -rf conftest*
10922 eval "ac_cv_func_$ac_func=no"
10923fi
10924rm -f conftest*
10925fi
10926
10927if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10928 echo "$ac_t""yes" 1>&6
10929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10930 cat >> confdefs.h <<EOF
10931#define $ac_tr_func 1
10932EOF
10933
10934else
10935 echo "$ac_t""no" 1>&6
10936fi
10937done
10938
10939
10f2d63a
VZ
10940
10941 for ac_hdr in sched.h
10942do
10943ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10944echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
88d3a15c 10945echo "configure:10946: checking for $ac_hdr" >&5
10f2d63a
VZ
10946if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10947 echo $ac_n "(cached) $ac_c" 1>&6
10948else
10949 cat > conftest.$ac_ext <<EOF
88d3a15c 10950#line 10951 "configure"
10f2d63a
VZ
10951#include "confdefs.h"
10952#include <$ac_hdr>
10953EOF
10954ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
88d3a15c 10955{ (eval echo configure:10956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10956ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10957if test -z "$ac_err"; then
10958 rm -rf conftest*
10959 eval "ac_cv_header_$ac_safe=yes"
10960else
10961 echo "$ac_err" >&5
10962 echo "configure: failed program was:" >&5
10963 cat conftest.$ac_ext >&5
10964 rm -rf conftest*
10965 eval "ac_cv_header_$ac_safe=no"
10966fi
10967rm -f conftest*
10968fi
10969if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10970 echo "$ac_t""yes" 1>&6
10971 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10972 cat >> confdefs.h <<EOF
10973#define $ac_tr_hdr 1
10974EOF
10975
10976else
10977 echo "$ac_t""no" 1>&6
10978fi
10979done
10980
10981
10982 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
88d3a15c 10983echo "configure:10984: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
10984ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10985if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10986 echo $ac_n "(cached) $ac_c" 1>&6
10987else
10988 ac_save_LIBS="$LIBS"
10989LIBS="-l$THREADS_LINK $LIBS"
10990cat > conftest.$ac_ext <<EOF
88d3a15c 10991#line 10992 "configure"
10f2d63a
VZ
10992#include "confdefs.h"
10993/* Override any gcc2 internal prototype to avoid an error. */
10994/* We use char because int might match the return type of a gcc2
10995 builtin and then its argument prototype would still apply. */
10996char sched_yield();
10997
10998int main() {
10999sched_yield()
11000; return 0; }
11001EOF
88d3a15c 11002if { (eval echo configure:11003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11003 rm -rf conftest*
11004 eval "ac_cv_lib_$ac_lib_var=yes"
11005else
11006 echo "configure: failed program was:" >&5
11007 cat conftest.$ac_ext >&5
11008 rm -rf conftest*
11009 eval "ac_cv_lib_$ac_lib_var=no"
11010fi
11011rm -f conftest*
11012LIBS="$ac_save_LIBS"
11013
11014fi
11015if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11016 echo "$ac_t""yes" 1>&6
11017 cat >> confdefs.h <<\EOF
11018#define HAVE_SCHED_YIELD 1
11019EOF
11020
11021else
11022 echo "$ac_t""no" 1>&6
11023echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
88d3a15c 11024echo "configure:11025: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
11025ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11026if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11027 echo $ac_n "(cached) $ac_c" 1>&6
11028else
11029 ac_save_LIBS="$LIBS"
11030LIBS="-l"posix4" $LIBS"
11031cat > conftest.$ac_ext <<EOF
88d3a15c 11032#line 11033 "configure"
10f2d63a
VZ
11033#include "confdefs.h"
11034/* Override any gcc2 internal prototype to avoid an error. */
11035/* We use char because int might match the return type of a gcc2
11036 builtin and then its argument prototype would still apply. */
11037char sched_yield();
11038
11039int main() {
11040sched_yield()
11041; return 0; }
11042EOF
88d3a15c 11043if { (eval echo configure:11044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11044 rm -rf conftest*
11045 eval "ac_cv_lib_$ac_lib_var=yes"
11046else
11047 echo "configure: failed program was:" >&5
11048 cat conftest.$ac_ext >&5
11049 rm -rf conftest*
11050 eval "ac_cv_lib_$ac_lib_var=no"
11051fi
11052rm -f conftest*
11053LIBS="$ac_save_LIBS"
11054
11055fi
11056if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11057 echo "$ac_t""yes" 1>&6
11058 cat >> confdefs.h <<\EOF
11059#define HAVE_SCHED_YIELD 1
11060EOF
11061 POSIX4_LINK="-lposix4"
11062else
11063 echo "$ac_t""no" 1>&6
11064echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11065
11066fi
11067
11068
11069fi
11070
11071
11072 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
88d3a15c 11073echo "configure:11074: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
11074ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11075if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11076 echo $ac_n "(cached) $ac_c" 1>&6
11077else
11078 ac_save_LIBS="$LIBS"
11079LIBS="-l$THREADS_LINK $LIBS"
11080cat > conftest.$ac_ext <<EOF
88d3a15c 11081#line 11082 "configure"
10f2d63a
VZ
11082#include "confdefs.h"
11083/* Override any gcc2 internal prototype to avoid an error. */
11084/* We use char because int might match the return type of a gcc2
11085 builtin and then its argument prototype would still apply. */
11086char pthread_attr_getschedpolicy();
11087
11088int main() {
11089pthread_attr_getschedpolicy()
11090; return 0; }
11091EOF
88d3a15c 11092if { (eval echo configure:11093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11093 rm -rf conftest*
11094 eval "ac_cv_lib_$ac_lib_var=yes"
11095else
11096 echo "configure: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11098 rm -rf conftest*
11099 eval "ac_cv_lib_$ac_lib_var=no"
11100fi
11101rm -f conftest*
11102LIBS="$ac_save_LIBS"
11103
11104fi
11105if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11106 echo "$ac_t""yes" 1>&6
11107 cat >> confdefs.h <<\EOF
11108#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11109EOF
11110
11111else
11112 echo "$ac_t""no" 1>&6
11113echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
88d3a15c 11114echo "configure:11115: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
11115ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11116if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11117 echo $ac_n "(cached) $ac_c" 1>&6
11118else
11119 ac_save_LIBS="$LIBS"
11120LIBS="-l"posix4" $LIBS"
11121cat > conftest.$ac_ext <<EOF
88d3a15c 11122#line 11123 "configure"
10f2d63a
VZ
11123#include "confdefs.h"
11124/* Override any gcc2 internal prototype to avoid an error. */
11125/* We use char because int might match the return type of a gcc2
11126 builtin and then its argument prototype would still apply. */
11127char pthread_attr_getschedpolicy();
11128
11129int main() {
11130pthread_attr_getschedpolicy()
11131; return 0; }
11132EOF
88d3a15c 11133if { (eval echo configure:11134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11134 rm -rf conftest*
11135 eval "ac_cv_lib_$ac_lib_var=yes"
11136else
11137 echo "configure: failed program was:" >&5
11138 cat conftest.$ac_ext >&5
11139 rm -rf conftest*
11140 eval "ac_cv_lib_$ac_lib_var=no"
11141fi
11142rm -f conftest*
11143LIBS="$ac_save_LIBS"
11144
11145fi
11146if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11147 echo "$ac_t""yes" 1>&6
11148 cat >> confdefs.h <<\EOF
11149#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11150EOF
11151 POSIX4_LINK="-lposix4"
11152else
11153 echo "$ac_t""no" 1>&6
11154echo "configure: warning: Setting thread priority will not work" 1>&2
11155
11156fi
11157
11158
11159fi
11160
11161
11162 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
88d3a15c 11163echo "configure:11164: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
11164ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11165if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11166 echo $ac_n "(cached) $ac_c" 1>&6
11167else
11168 ac_save_LIBS="$LIBS"
11169LIBS="-l$THREADS_LINK $LIBS"
11170cat > conftest.$ac_ext <<EOF
88d3a15c 11171#line 11172 "configure"
10f2d63a
VZ
11172#include "confdefs.h"
11173/* Override any gcc2 internal prototype to avoid an error. */
11174/* We use char because int might match the return type of a gcc2
11175 builtin and then its argument prototype would still apply. */
11176char pthread_cancel();
11177
11178int main() {
11179pthread_cancel()
11180; return 0; }
11181EOF
88d3a15c 11182if { (eval echo configure:11183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11183 rm -rf conftest*
11184 eval "ac_cv_lib_$ac_lib_var=yes"
11185else
11186 echo "configure: failed program was:" >&5
11187 cat conftest.$ac_ext >&5
11188 rm -rf conftest*
11189 eval "ac_cv_lib_$ac_lib_var=no"
11190fi
11191rm -f conftest*
11192LIBS="$ac_save_LIBS"
11193
11194fi
11195if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11196 echo "$ac_t""yes" 1>&6
11197 cat >> confdefs.h <<\EOF
11198#define HAVE_PTHREAD_CANCEL 1
11199EOF
11200
11201else
11202 echo "$ac_t""no" 1>&6
11203echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11204fi
11205
11206
11207 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
88d3a15c 11208echo "configure:11209: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
11209if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11210 echo $ac_n "(cached) $ac_c" 1>&6
11211else
11212
11213 cat > conftest.$ac_ext <<EOF
88d3a15c 11214#line 11215 "configure"
10f2d63a
VZ
11215#include "confdefs.h"
11216#include <pthread.h>
11217int main() {
11218
11219 pthread_cleanup_push(NULL, NULL);
11220 pthread_cleanup_pop(0);
11221
11222; return 0; }
11223EOF
88d3a15c 11224if { (eval echo configure:11225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11225 rm -rf conftest*
11226
11227 wx_cv_func_pthread_cleanup_push=yes
11228 cat >> confdefs.h <<\EOF
11229#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11230EOF
11231
11232
11233else
11234 echo "configure: failed program was:" >&5
11235 cat conftest.$ac_ext >&5
11236 rm -rf conftest*
11237
11238 wx_cv_func_pthread_cleanup_push=no
11239
11240fi
11241rm -f conftest*
11242
11243fi
11244
11245echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11246
11247 THREADS_LINK="-l$THREADS_LINK"
11248fi
11249
11250fi
11251
11252if test "$wxUSE_THREADS" = "yes"; then
11253 cat >> confdefs.h <<\EOF
11254#define wxUSE_THREADS 1
11255EOF
11256
11257
11258 CFLAGS="${CFLAGS} -D_REENTRANT"
11259 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11260
11261 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11262else
11263 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11264 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
88d3a15c 11265echo "configure:11266: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11266 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11267 CFLAGS="${CFLAGS} -D_REENTRANT"
11268 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11269 echo "$ac_t""yes" 1>&6
11270 else
11271 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11272 fi
11273 fi
11274fi
11275
13111b2a
VZ
11276if test "$WXGTK13" = 1 ; then
11277 cat >> confdefs.h <<EOF
11278#define __WXGTK13__ $WXGTK13
11279EOF
11280
11281 WXGTK12=1
11282fi
11283
10f2d63a
VZ
11284if test "$WXGTK12" = 1 ; then
11285 cat >> confdefs.h <<EOF
11286#define __WXGTK12__ $WXGTK12
11287EOF
11288
11289fi
11290
11291if test "$WXWINE" = 1 ; then
11292 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11293fi
11294
11295if test "$wxUSE_CYGWIN" = 1 ; then
11296 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11297fi
11298
11299WXDEBUG=
11300
11301if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11302 WXDEBUG="-g"
11303 wxUSE_OPTIMISE=no
11304fi
11305
11306if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11307 wxUSE_DEBUG_INFO=yes
11308 WXDEBUG="-ggdb"
11309fi
11310
11311if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11312 cat >> confdefs.h <<\EOF
11313#define WXDEBUG 1
11314EOF
11315
11316 WXDEBUG_DEFINE="-D__WXDEBUG__"
11317else
11318 if test "$wxUSE_GTK" = 1 ; then
11319 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11320 fi
11321fi
11322
11323if test "$wxUSE_MEM_TRACING" = "yes" ; then
11324 cat >> confdefs.h <<\EOF
11325#define wxUSE_MEMORY_TRACING 1
11326EOF
11327
11328 cat >> confdefs.h <<\EOF
11329#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
11330EOF
11331
11332 cat >> confdefs.h <<\EOF
11333#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
11334EOF
11335
11336 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11337fi
11338
11339if test "$wxUSE_DMALLOC" = "yes" ; then
11340 DMALLOC_LINK="-ldmalloc"
11341fi
11342
11343PROFILE=
11344if test "$wxUSE_PROFILE" = "yes" ; then
11345 PROFILE="-pg"
11346fi
11347
11348DEP_INFO_FLAGS=
caa2c79b 11349CODE_GEN_FLAGS=
10f2d63a
VZ
11350if test "$GCC" = yes ; then
11351 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 11352 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
11353 fi
11354 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 11355 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
11356 fi
11357 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 11358 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
11359 fi
11360 if test "$wxUSE_NO_DEPS" = "no" ; then
11361 DEP_INFO_FLAGS="-MMD"
11362 fi
11363fi
11364
11365
11366CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11367CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11368if test "$wxUSE_OPTIMISE" = "no" ; then
11369 OPTIMISE=
11370else
11371 if test "$GCC" = yes ; then
11372 OPTIMISE="-O2"
11373 case "${host}" in
11374 i586-*-*|i686-*-* )
11375 OPTIMISE="${OPTIMISE} "
11376 ;;
11377 esac
11378 else
11379 OPTIMISE="-O"
11380 fi
11381fi
11382
11383
11384ZLIB_INCLUDE=
11385if test "$wxUSE_ZLIB" = "yes" ; then
11386 cat >> confdefs.h <<\EOF
11387#define wxUSE_ZLIB 1
11388EOF
11389
11390 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11391fi
11392
11393PNG_INCLUDE=
11394if test "$wxUSE_LIBPNG" = "yes" ; then
11395 cat >> confdefs.h <<\EOF
11396#define wxUSE_LIBPNG 1
11397EOF
11398
11399 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11400 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11401fi
11402
11403JPEG_INCLUDE=
11404if test "$wxUSE_LIBJPEG" = "yes" ; then
11405 cat >> confdefs.h <<\EOF
11406#define wxUSE_LIBJPEG 1
11407EOF
11408
11409 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11410fi
11411
c7a2bf27
RR
11412TIFF_INCLUDE=
11413if test "$wxUSE_LIBTIFF" = "yes" ; then
11414 cat >> confdefs.h <<\EOF
11415#define wxUSE_LIBTIFF 1
11416EOF
11417
11418 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11419fi
11420
10f2d63a
VZ
11421if test "$wxUSE_OPENGL" = "yes"; then
11422 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11423echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
88d3a15c 11424echo "configure:11425: checking for GL/gl.h" >&5
10f2d63a
VZ
11425if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11426 echo $ac_n "(cached) $ac_c" 1>&6
11427else
11428 cat > conftest.$ac_ext <<EOF
88d3a15c 11429#line 11430 "configure"
10f2d63a
VZ
11430#include "confdefs.h"
11431#include <GL/gl.h>
11432EOF
11433ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
88d3a15c 11434{ (eval echo configure:11435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11435ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11436if test -z "$ac_err"; then
11437 rm -rf conftest*
11438 eval "ac_cv_header_$ac_safe=yes"
11439else
11440 echo "$ac_err" >&5
11441 echo "configure: failed program was:" >&5
11442 cat conftest.$ac_ext >&5
11443 rm -rf conftest*
11444 eval "ac_cv_header_$ac_safe=no"
11445fi
11446rm -f conftest*
11447fi
11448if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11449 echo "$ac_t""yes" 1>&6
11450
11451 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
88d3a15c 11452echo "configure:11453: checking for glInitNames in -lGL" >&5
10f2d63a
VZ
11453ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
11454if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11455 echo $ac_n "(cached) $ac_c" 1>&6
11456else
11457 ac_save_LIBS="$LIBS"
11458LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
11459cat > conftest.$ac_ext <<EOF
88d3a15c 11460#line 11461 "configure"
10f2d63a
VZ
11461#include "confdefs.h"
11462/* Override any gcc2 internal prototype to avoid an error. */
11463/* We use char because int might match the return type of a gcc2
11464 builtin and then its argument prototype would still apply. */
11465char glInitNames();
11466
11467int main() {
11468glInitNames()
11469; return 0; }
11470EOF
88d3a15c 11471if { (eval echo configure:11472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11472 rm -rf conftest*
11473 eval "ac_cv_lib_$ac_lib_var=yes"
11474else
11475 echo "configure: failed program was:" >&5
11476 cat conftest.$ac_ext >&5
11477 rm -rf conftest*
11478 eval "ac_cv_lib_$ac_lib_var=no"
11479fi
11480rm -f conftest*
11481LIBS="$ac_save_LIBS"
11482
11483fi
11484if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11485 echo "$ac_t""yes" 1>&6
11486
11487 OPENGL_LINK="-lGL"
11488 cat >> confdefs.h <<\EOF
11489#define wxUSE_OPENGL 1
11490EOF
11491
11492 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11493
11494else
11495 echo "$ac_t""no" 1>&6
11496
11497 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
88d3a15c 11498echo "configure:11499: checking for glInitNames in -lMesaGL" >&5
10f2d63a
VZ
11499ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11500if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11501 echo $ac_n "(cached) $ac_c" 1>&6
11502else
11503 ac_save_LIBS="$LIBS"
11504LIBS="-lMesaGL $LIBS"
11505cat > conftest.$ac_ext <<EOF
88d3a15c 11506#line 11507 "configure"
10f2d63a
VZ
11507#include "confdefs.h"
11508/* Override any gcc2 internal prototype to avoid an error. */
11509/* We use char because int might match the return type of a gcc2
11510 builtin and then its argument prototype would still apply. */
11511char glInitNames();
11512
11513int main() {
11514glInitNames()
11515; return 0; }
11516EOF
88d3a15c 11517if { (eval echo configure:11518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11518 rm -rf conftest*
11519 eval "ac_cv_lib_$ac_lib_var=yes"
11520else
11521 echo "configure: failed program was:" >&5
11522 cat conftest.$ac_ext >&5
11523 rm -rf conftest*
11524 eval "ac_cv_lib_$ac_lib_var=no"
11525fi
11526rm -f conftest*
11527LIBS="$ac_save_LIBS"
11528
11529fi
11530if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11531 echo "$ac_t""yes" 1>&6
11532
11533 OPENGL_LINK="-lMesaGL"
11534 cat >> confdefs.h <<\EOF
11535#define wxUSE_OPENGL 1
11536EOF
11537
11538 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11539
11540else
11541 echo "$ac_t""no" 1>&6
11542wxUSE_OPENGL=0
11543fi
11544
11545
11546fi
11547
11548
11549else
11550 echo "$ac_t""no" 1>&6
11551wxUSE_OPENGL=0
11552fi
11553
11554fi
11555
11556
11557if test "$wxUSE_GUI" = "yes"; then
11558 cat >> confdefs.h <<\EOF
11559#define wxUSE_GUI 1
11560EOF
11561
11562
11563 else
11564 cat >> confdefs.h <<\EOF
11565#define wxUSE_NOGUI 1
11566EOF
11567
11568fi
11569
11570
11571if test "$wxUSE_UNIX" = "yes"; then
11572 cat >> confdefs.h <<\EOF
11573#define wxUSE_UNIX 1
11574EOF
11575
11576fi
11577
11578
11579if test "$wxUSE_APPLE_IEEE" = "yes"; then
11580 cat >> confdefs.h <<\EOF
11581#define wxUSE_APPLE_IEEE 1
11582EOF
11583
11584fi
11585
10f2d63a
VZ
11586if test "$wxUSE_WAVE" = "yes"; then
11587 cat >> confdefs.h <<\EOF
11588#define wxUSE_WAVE 1
11589EOF
11590
11591fi
11592
11593if test "$wxUSE_FILE" = "yes"; then
11594 cat >> confdefs.h <<\EOF
11595#define wxUSE_FILE 1
11596EOF
11597
11598fi
11599
11600if test "$wxUSE_FS_INET" = "yes"; then
11601 cat >> confdefs.h <<\EOF
11602#define wxUSE_FS_INET 1
11603EOF
11604
11605fi
11606
11607if test "$wxUSE_FS_ZIP" = "yes"; then
11608 cat >> confdefs.h <<\EOF
11609#define wxUSE_FS_ZIP 1
11610EOF
11611
11612fi
11613
11614if test "$wxUSE_ZIPSTREAM" = "yes"; then
11615 cat >> confdefs.h <<\EOF
11616#define wxUSE_ZIPSTREAM 1
11617EOF
11618
11619fi
11620
11621if test "$wxUSE_BUSYINFO" = "yes"; then
11622 cat >> confdefs.h <<\EOF
11623#define wxUSE_BUSYINFO 1
11624EOF
11625
11626fi
11627
11628if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11629 cat >> confdefs.h <<\EOF
11630#define wxUSE_STD_IOSTREAM 1
11631EOF
11632
11633fi
11634
11635if test "$wxUSE_TEXTFILE" = "yes"; then
11636 if test "$wxUSE_FILE" != "yes"; then
11637 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11638 else
11639 cat >> confdefs.h <<\EOF
11640#define wxUSE_TEXTFILE 1
11641EOF
11642
11643 fi
11644fi
11645
11646if test "$wxUSE_CONFIG" = "yes" ; then
11647 if test "$wxUSE_TEXTFILE" != "yes"; then
11648 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11649 else
11650 cat >> confdefs.h <<\EOF
11651#define wxUSE_CONFIG 1
11652EOF
11653
11654 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11655 fi
11656fi
11657
11658if test "$wxUSE_INTL" = "yes" ; then
11659 if test "$wxUSE_FILE" != "yes"; then
11660 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11661 else
11662 cat >> confdefs.h <<\EOF
11663#define wxUSE_INTL 1
11664EOF
11665
11666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11667 fi
11668fi
11669
11670if test "$wxUSE_LOG" = "yes"; then
11671 cat >> confdefs.h <<\EOF
11672#define wxUSE_LOG 1
11673EOF
11674
11675fi
11676
11677if test "$wxUSE_LONGLONG" = "yes"; then
11678 cat >> confdefs.h <<\EOF
11679#define wxUSE_LONGLONG 1
11680EOF
11681
11682fi
11683
9b33fe02
VZ
11684if test "$wxUSE_PLOT" = "yes"; then
11685 cat >> confdefs.h <<\EOF
11686#define wxUSE_PLOT 1
11687EOF
11688
11689fi
11690
10f2d63a
VZ
11691if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11692 cat >> confdefs.h <<\EOF
11693#define wxUSE_DIALUP_MANAGER 1
11694EOF
11695
70f7a477 11696 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
11697fi
11698
11699if test "$wxUSE_STREAMS" = "yes" ; then
11700 cat >> confdefs.h <<\EOF
11701#define wxUSE_STREAMS 1
11702EOF
11703
11704fi
11705
10f2d63a 11706
afc31813 11707if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
11708 for ac_func in strptime
11709do
11710echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
88d3a15c 11711echo "configure:11712: checking for $ac_func" >&5
83307f33
VZ
11712if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11713 echo $ac_n "(cached) $ac_c" 1>&6
11714else
11715 cat > conftest.$ac_ext <<EOF
88d3a15c 11716#line 11717 "configure"
83307f33
VZ
11717#include "confdefs.h"
11718/* System header to define __stub macros and hopefully few prototypes,
11719 which can conflict with char $ac_func(); below. */
11720#include <assert.h>
11721/* Override any gcc2 internal prototype to avoid an error. */
11722/* We use char because int might match the return type of a gcc2
11723 builtin and then its argument prototype would still apply. */
11724char $ac_func();
11725
11726int main() {
11727
11728/* The GNU C library defines this for functions which it implements
11729 to always fail with ENOSYS. Some functions are actually named
11730 something starting with __ and the normal name is an alias. */
11731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11732choke me
11733#else
88d3a15c 11734$ac_func();
83307f33
VZ
11735#endif
11736
11737; return 0; }
11738EOF
88d3a15c 11739if { (eval echo configure:11740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
11740 rm -rf conftest*
11741 eval "ac_cv_func_$ac_func=yes"
11742else
11743 echo "configure: failed program was:" >&5
11744 cat conftest.$ac_ext >&5
11745 rm -rf conftest*
11746 eval "ac_cv_func_$ac_func=no"
11747fi
11748rm -f conftest*
11749fi
11750
11751if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11752 echo "$ac_t""yes" 1>&6
11753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11754 cat >> confdefs.h <<EOF
11755#define $ac_tr_func 1
11756EOF
11757
11758else
11759 echo "$ac_t""no" 1>&6
11760fi
11761done
11762
11763
360d6699 11764 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
88d3a15c 11765echo "configure:11766: checking for timezone variable in <time.h>" >&5
360d6699
VZ
11766if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11767 echo $ac_n "(cached) $ac_c" 1>&6
11768else
11769
11770 cat > conftest.$ac_ext <<EOF
88d3a15c 11771#line 11772 "configure"
360d6699
VZ
11772#include "confdefs.h"
11773
11774 #include <time.h>
11775
11776int main() {
11777
11778 int tz;
11779 tz = __timezone;
11780
11781; return 0; }
11782EOF
88d3a15c 11783if { (eval echo configure:11784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11784 rm -rf conftest*
11785
11786 wx_cv_var_timezone=__timezone
11787
11788else
11789 echo "configure: failed program was:" >&5
11790 cat conftest.$ac_ext >&5
11791 rm -rf conftest*
11792
11793 cat > conftest.$ac_ext <<EOF
88d3a15c 11794#line 11795 "configure"
360d6699
VZ
11795#include "confdefs.h"
11796
11797 #include <time.h>
11798
11799int main() {
11800
11801 int tz;
11802 tz = _timezone;
11803
11804; return 0; }
11805EOF
88d3a15c 11806if { (eval echo configure:11807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11807 rm -rf conftest*
11808
11809 wx_cv_var_timezone=_timezone
11810
5357c8e8
VZ
11811else
11812 echo "configure: failed program was:" >&5
11813 cat conftest.$ac_ext >&5
11814 rm -rf conftest*
11815
11816 cat > conftest.$ac_ext <<EOF
88d3a15c 11817#line 11818 "configure"
5357c8e8
VZ
11818#include "confdefs.h"
11819
11820 #include <time.h>
11821
11822int main() {
11823
11824 int tz;
11825 tz = timezone;
11826
11827; return 0; }
11828EOF
88d3a15c 11829if { (eval echo configure:11830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
11830 rm -rf conftest*
11831
11832 wx_cv_var_timezone=timezone
11833
360d6699
VZ
11834else
11835 echo "configure: failed program was:" >&5
11836 cat conftest.$ac_ext >&5
11837 rm -rf conftest*
11838 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
11839
11840fi
11841rm -f conftest*
11842
360d6699
VZ
11843
11844fi
11845rm -f conftest*
11846
11847
11848fi
11849rm -f conftest*
11850
11851
11852fi
11853
11854echo "$ac_t""$wx_cv_var_timezone" 1>&6
11855
11856 cat >> confdefs.h <<EOF
11857#define WX_TIMEZONE $wx_cv_var_timezone
11858EOF
11859
11860
3fcdd07b 11861 for ac_func in localtime
afc31813
VZ
11862do
11863echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
88d3a15c 11864echo "configure:11865: checking for $ac_func" >&5
afc31813
VZ
11865if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11866 echo $ac_n "(cached) $ac_c" 1>&6
11867else
11868 cat > conftest.$ac_ext <<EOF
88d3a15c 11869#line 11870 "configure"
10f2d63a 11870#include "confdefs.h"
afc31813
VZ
11871/* System header to define __stub macros and hopefully few prototypes,
11872 which can conflict with char $ac_func(); below. */
11873#include <assert.h>
11874/* Override any gcc2 internal prototype to avoid an error. */
11875/* We use char because int might match the return type of a gcc2
11876 builtin and then its argument prototype would still apply. */
11877char $ac_func();
11878
10f2d63a 11879int main() {
afc31813
VZ
11880
11881/* The GNU C library defines this for functions which it implements
11882 to always fail with ENOSYS. Some functions are actually named
11883 something starting with __ and the normal name is an alias. */
11884#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11885choke me
11886#else
88d3a15c 11887$ac_func();
afc31813
VZ
11888#endif
11889
10f2d63a
VZ
11890; return 0; }
11891EOF
88d3a15c 11892if { (eval echo configure:11893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 11893 rm -rf conftest*
afc31813 11894 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
11895else
11896 echo "configure: failed program was:" >&5
11897 cat conftest.$ac_ext >&5
11898 rm -rf conftest*
afc31813
VZ
11899 eval "ac_cv_func_$ac_func=no"
11900fi
11901rm -f conftest*
11902fi
11903
11904if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11905 echo "$ac_t""yes" 1>&6
11906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11907 cat >> confdefs.h <<EOF
11908#define $ac_tr_func 1
11909EOF
3fcdd07b 11910
afc31813
VZ
11911else
11912 echo "$ac_t""no" 1>&6
11913fi
11914done
11915
11916
0470b1e6
VZ
11917 if test "$ac_cv_func_localtime" = "yes"; then
11918 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
88d3a15c 11919echo "configure:11920: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
11920if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
11921 echo $ac_n "(cached) $ac_c" 1>&6
11922else
11923
11924 cat > conftest.$ac_ext <<EOF
88d3a15c 11925#line 11926 "configure"
0470b1e6
VZ
11926#include "confdefs.h"
11927
11928 #include <time.h>
11929
11930int main() {
11931
11932 struct tm tm;
11933 tm.tm_gmtoff++;
11934
11935; return 0; }
11936EOF
88d3a15c 11937if { (eval echo configure:11938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
11938 rm -rf conftest*
11939
f03a98d8 11940 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
11941 cat >> confdefs.h <<\EOF
11942#define WX_GMTOFF_IN_TM 1
11943EOF
11944
11945
11946else
11947 echo "configure: failed program was:" >&5
11948 cat conftest.$ac_ext >&5
11949 rm -rf conftest*
11950 wx_cv_struct_tm_has_gmtoff=no
11951
11952fi
11953rm -f conftest*
11954
11955fi
11956
11957echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
11958 fi
11959
11960 for ac_func in gettimeofday ftime
11961do
11962echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
88d3a15c 11963echo "configure:11964: checking for $ac_func" >&5
3fcdd07b
VZ
11964if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11965 echo $ac_n "(cached) $ac_c" 1>&6
11966else
11967 cat > conftest.$ac_ext <<EOF
88d3a15c 11968#line 11969 "configure"
3fcdd07b
VZ
11969#include "confdefs.h"
11970/* System header to define __stub macros and hopefully few prototypes,
11971 which can conflict with char $ac_func(); below. */
11972#include <assert.h>
11973/* Override any gcc2 internal prototype to avoid an error. */
11974/* We use char because int might match the return type of a gcc2
11975 builtin and then its argument prototype would still apply. */
11976char $ac_func();
11977
11978int main() {
11979
11980/* The GNU C library defines this for functions which it implements
11981 to always fail with ENOSYS. Some functions are actually named
11982 something starting with __ and the normal name is an alias. */
11983#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11984choke me
11985#else
88d3a15c 11986$ac_func();
3fcdd07b
VZ
11987#endif
11988
11989; return 0; }
11990EOF
88d3a15c 11991if { (eval echo configure:11992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
11992 rm -rf conftest*
11993 eval "ac_cv_func_$ac_func=yes"
11994else
11995 echo "configure: failed program was:" >&5
11996 cat conftest.$ac_ext >&5
11997 rm -rf conftest*
11998 eval "ac_cv_func_$ac_func=no"
11999fi
12000rm -f conftest*
12001fi
12002
12003if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12004 echo "$ac_t""yes" 1>&6
12005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12006 cat >> confdefs.h <<EOF
12007#define $ac_tr_func 1
12008EOF
12009 break
12010else
12011 echo "$ac_t""no" 1>&6
12012fi
12013done
12014
12015
12016 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 12017 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
88d3a15c 12018echo "configure:12019: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
12019if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12020 echo $ac_n "(cached) $ac_c" 1>&6
12021else
12022
12023
12024 ac_ext=C
12025# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12026ac_cpp='$CXXCPP $CPPFLAGS'
12027ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12028ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12029cross_compiling=$ac_cv_prog_cxx_cross
12030
12031
12032 cat > conftest.$ac_ext <<EOF
88d3a15c 12033#line 12034 "configure"
10f2d63a 12034#include "confdefs.h"
afc31813
VZ
12035
12036 #include <sys/time.h>
12037 #include <unistd.h>
12038
10f2d63a 12039int main() {
afc31813
VZ
12040
12041 struct timeval tv;
12042 struct timezone tz;
12043 gettimeofday(&tv, &tz);
12044
10f2d63a
VZ
12045; return 0; }
12046EOF
88d3a15c 12047if { (eval echo configure:12048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12048 rm -rf conftest*
afc31813 12049 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
12050else
12051 echo "configure: failed program was:" >&5
12052 cat conftest.$ac_ext >&5
12053 rm -rf conftest*
12054 cat > conftest.$ac_ext <<EOF
88d3a15c 12055#line 12056 "configure"
10f2d63a 12056#include "confdefs.h"
afc31813
VZ
12057
12058 #include <sys/time.h>
12059 #include <unistd.h>
12060
10f2d63a 12061int main() {
afc31813
VZ
12062
12063 struct timeval tv;
12064 gettimeofday(&tv);
12065
10f2d63a
VZ
12066; return 0; }
12067EOF
88d3a15c 12068if { (eval echo configure:12069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12069 rm -rf conftest*
afc31813 12070 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
12071else
12072 echo "configure: failed program was:" >&5
12073 cat conftest.$ac_ext >&5
12074 rm -rf conftest*
afc31813
VZ
12075 wx_cv_func_gettimeofday_has_2_args=unknown
12076
10f2d63a
VZ
12077fi
12078rm -f conftest*
afc31813 12079
10f2d63a
VZ
12080fi
12081rm -f conftest*
afc31813 12082 ac_ext=c
10f2d63a
VZ
12083# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12084ac_cpp='$CPP $CPPFLAGS'
12085ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12086ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12087cross_compiling=$ac_cv_prog_cc_cross
12088
afc31813
VZ
12089
12090fi
12091
12092echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 12093
afc31813
VZ
12094 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12095 cat >> confdefs.h <<\EOF
12096#define WX_GETTIMEOFDAY_NO_TZ 1
12097EOF
12098
12099 fi
12100 fi
12101
12102 cat >> confdefs.h <<\EOF
12103#define wxUSE_TIMEDATE 1
12104EOF
12105
12106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12107fi
12108
12109
b089607b
VZ
12110if test "$TOOLKIT" != "MSW"; then
12111
afc31813 12112if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 12113 echo $ac_n "checking for socket""... $ac_c" 1>&6
88d3a15c 12114echo "configure:12115: checking for socket" >&5
c63c7106
VZ
12115if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12116 echo $ac_n "(cached) $ac_c" 1>&6
12117else
12118 cat > conftest.$ac_ext <<EOF
88d3a15c 12119#line 12120 "configure"
c63c7106
VZ
12120#include "confdefs.h"
12121/* System header to define __stub macros and hopefully few prototypes,
12122 which can conflict with char socket(); below. */
12123#include <assert.h>
12124/* Override any gcc2 internal prototype to avoid an error. */
12125/* We use char because int might match the return type of a gcc2
12126 builtin and then its argument prototype would still apply. */
12127char socket();
12128
12129int main() {
12130
12131/* The GNU C library defines this for functions which it implements
12132 to always fail with ENOSYS. Some functions are actually named
12133 something starting with __ and the normal name is an alias. */
12134#if defined (__stub_socket) || defined (__stub___socket)
12135choke me
12136#else
88d3a15c 12137socket();
c63c7106
VZ
12138#endif
12139
12140; return 0; }
12141EOF
88d3a15c 12142if { (eval echo configure:12143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12143 rm -rf conftest*
12144 eval "ac_cv_func_socket=yes"
12145else
12146 echo "configure: failed program was:" >&5
12147 cat conftest.$ac_ext >&5
12148 rm -rf conftest*
12149 eval "ac_cv_func_socket=no"
12150fi
12151rm -f conftest*
12152fi
12153
12154if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12155 echo "$ac_t""yes" 1>&6
12156 :
12157else
12158 echo "$ac_t""no" 1>&6
12159echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
88d3a15c 12160echo "configure:12161: checking for socket in -lsocket" >&5
c63c7106
VZ
12161ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12162if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12163 echo $ac_n "(cached) $ac_c" 1>&6
12164else
12165 ac_save_LIBS="$LIBS"
12166LIBS="-lsocket $LIBS"
12167cat > conftest.$ac_ext <<EOF
88d3a15c 12168#line 12169 "configure"
c63c7106
VZ
12169#include "confdefs.h"
12170/* Override any gcc2 internal prototype to avoid an error. */
12171/* We use char because int might match the return type of a gcc2
12172 builtin and then its argument prototype would still apply. */
12173char socket();
12174
12175int main() {
12176socket()
12177; return 0; }
12178EOF
88d3a15c 12179if { (eval echo configure:12180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12180 rm -rf conftest*
12181 eval "ac_cv_lib_$ac_lib_var=yes"
12182else
12183 echo "configure: failed program was:" >&5
12184 cat conftest.$ac_ext >&5
12185 rm -rf conftest*
12186 eval "ac_cv_lib_$ac_lib_var=no"
12187fi
12188rm -f conftest*
12189LIBS="$ac_save_LIBS"
12190
12191fi
12192if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12193 echo "$ac_t""yes" 1>&6
12194 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
12195else
12196 echo "$ac_t""no" 1>&6
afc31813
VZ
12197
12198 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12199 wxUSE_SOCKETS=no
12200
12201
c63c7106
VZ
12202fi
12203
12204
12205fi
12206
10f2d63a
VZ
12207fi
12208
b089607b
VZ
12209fi
12210
afc31813 12211if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 12212 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
88d3a15c 12213echo "configure:12214: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
12214if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12215 echo $ac_n "(cached) $ac_c" 1>&6
12216else
12217
12218
12219 ac_ext=C
afc31813
VZ
12220# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12221ac_cpp='$CXXCPP $CPPFLAGS'
12222ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12223ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12224cross_compiling=$ac_cv_prog_cxx_cross
12225
51a9faba
VZ
12226
12227 cat > conftest.$ac_ext <<EOF
88d3a15c 12228#line 12229 "configure"
afc31813 12229#include "confdefs.h"
51a9faba 12230
3ace2e6d 12231 #include <sys/types.h>
51a9faba
VZ
12232 #include <sys/socket.h>
12233
afc31813 12234int main() {
51a9faba
VZ
12235
12236 socklen_t len;
12237 getsockname(0, 0, &len);
12238
afc31813
VZ
12239; return 0; }
12240EOF
88d3a15c 12241if { (eval echo configure:12242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12242 rm -rf conftest*
51a9faba 12243 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
12244else
12245 echo "configure: failed program was:" >&5
12246 cat conftest.$ac_ext >&5
12247 rm -rf conftest*
12248 cat > conftest.$ac_ext <<EOF
88d3a15c 12249#line 12250 "configure"
afc31813 12250#include "confdefs.h"
51a9faba 12251
3ace2e6d 12252 #include <sys/types.h>
51a9faba
VZ
12253 #include <sys/socket.h>
12254
afc31813 12255int main() {
51a9faba
VZ
12256
12257 size_t len;
12258 getsockname(0, 0, &len);
12259
afc31813
VZ
12260; return 0; }
12261EOF
88d3a15c 12262if { (eval echo configure:12263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12263 rm -rf conftest*
51a9faba 12264 wx_cv_type_getsockname3=size_t
afc31813
VZ
12265else
12266 echo "configure: failed program was:" >&5
12267 cat conftest.$ac_ext >&5
12268 rm -rf conftest*
12269 cat > conftest.$ac_ext <<EOF
88d3a15c 12270#line 12271 "configure"
afc31813 12271#include "confdefs.h"
51a9faba 12272
3ace2e6d 12273 #include <sys/types.h>
51a9faba
VZ
12274 #include <sys/socket.h>
12275
afc31813 12276int main() {
51a9faba
VZ
12277
12278 int len;
12279 getsockname(0, 0, &len);
12280
afc31813
VZ
12281; return 0; }
12282EOF
88d3a15c 12283if { (eval echo configure:12284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12284 rm -rf conftest*
51a9faba 12285 wx_cv_type_getsockname3=int
afc31813
VZ
12286else
12287 echo "configure: failed program was:" >&5
12288 cat conftest.$ac_ext >&5
3ace2e6d
SN
12289 rm -rf conftest*
12290 wx_cv_type_getsockname3=unknown
12291
afc31813
VZ
12292fi
12293rm -f conftest*
51a9faba 12294
afc31813
VZ
12295fi
12296rm -f conftest*
51a9faba 12297
afc31813
VZ
12298fi
12299rm -f conftest*
51a9faba
VZ
12300
12301 ac_ext=c
afc31813
VZ
12302# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12303ac_cpp='$CPP $CPPFLAGS'
12304ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12305ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12306cross_compiling=$ac_cv_prog_cc_cross
12307
51a9faba
VZ
12308
12309fi
12310
12311echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12312
12313 if test "$wx_cv_type_getsockname3" = "unknown"; then
12314 wxUSE_SOCKETS=no
12315 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12316 else
12317 cat >> confdefs.h <<EOF
12318#define SOCKLEN_T $wx_cv_type_getsockname3
12319EOF
12320
12321 fi
12322fi
afc31813 12323
51a9faba 12324if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
12325 cat >> confdefs.h <<\EOF
12326#define wxUSE_SOCKETS 1
12327EOF
12328
70f7a477 12329 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
12330 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12331fi
12332
10f2d63a 12333
b089607b
VZ
12334if test "$TOOLKIT" != "MSW"; then
12335
10f2d63a
VZ
12336if test "$wxUSE_JOYSTICK" = 1; then
12337 for ac_hdr in linux/joystick.h
12338do
12339ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12340echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
88d3a15c 12341echo "configure:12342: checking for $ac_hdr" >&5
10f2d63a
VZ
12342if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12343 echo $ac_n "(cached) $ac_c" 1>&6
12344else
12345 cat > conftest.$ac_ext <<EOF
88d3a15c 12346#line 12347 "configure"
10f2d63a
VZ
12347#include "confdefs.h"
12348#include <$ac_hdr>
12349EOF
12350ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
88d3a15c 12351{ (eval echo configure:12352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12352ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12353if test -z "$ac_err"; then
12354 rm -rf conftest*
12355 eval "ac_cv_header_$ac_safe=yes"
12356else
12357 echo "$ac_err" >&5
12358 echo "configure: failed program was:" >&5
12359 cat conftest.$ac_ext >&5
12360 rm -rf conftest*
12361 eval "ac_cv_header_$ac_safe=no"
12362fi
12363rm -f conftest*
12364fi
12365if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12366 echo "$ac_t""yes" 1>&6
12367 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12368 cat >> confdefs.h <<EOF
12369#define $ac_tr_hdr 1
12370EOF
12371
12372else
12373 echo "$ac_t""no" 1>&6
12374fi
12375done
12376
b089607b
VZ
12377 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
12378 wxUSE_JOYSTICK=0
12379 echo "configure: warning: Joystick not supported yb this system" 1>&2
12380 fi
12381fi
12382
12383fi
12384
12385if test "$wxUSE_JOYSTICK" = 1; then
10f2d63a
VZ
12386 cat >> confdefs.h <<\EOF
12387#define wxUSE_JOYSTICK 1
12388EOF
12389
12390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
12391fi
12392
12393
b089607b
VZ
12394if test "$TOOLKIT" != "MSW"; then
12395
10f2d63a
VZ
12396HAVE_DL_FUNCS=0
12397HAVE_SHL_FUNCS=0
12398if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12399 for ac_func in dlopen
12400do
12401echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
88d3a15c 12402echo "configure:12403: checking for $ac_func" >&5
10f2d63a
VZ
12403if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12404 echo $ac_n "(cached) $ac_c" 1>&6
12405else
12406 cat > conftest.$ac_ext <<EOF
88d3a15c 12407#line 12408 "configure"
10f2d63a
VZ
12408#include "confdefs.h"
12409/* System header to define __stub macros and hopefully few prototypes,
12410 which can conflict with char $ac_func(); below. */
12411#include <assert.h>
12412/* Override any gcc2 internal prototype to avoid an error. */
12413/* We use char because int might match the return type of a gcc2
12414 builtin and then its argument prototype would still apply. */
12415char $ac_func();
12416
12417int main() {
12418
12419/* The GNU C library defines this for functions which it implements
12420 to always fail with ENOSYS. Some functions are actually named
12421 something starting with __ and the normal name is an alias. */
12422#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12423choke me
12424#else
88d3a15c 12425$ac_func();
10f2d63a
VZ
12426#endif
12427
12428; return 0; }
12429EOF
88d3a15c 12430if { (eval echo configure:12431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12431 rm -rf conftest*
12432 eval "ac_cv_func_$ac_func=yes"
12433else
12434 echo "configure: failed program was:" >&5
12435 cat conftest.$ac_ext >&5
12436 rm -rf conftest*
12437 eval "ac_cv_func_$ac_func=no"
12438fi
12439rm -f conftest*
12440fi
12441
12442if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12443 echo "$ac_t""yes" 1>&6
12444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12445 cat >> confdefs.h <<EOF
12446#define $ac_tr_func 1
12447EOF
12448
12449 cat >> confdefs.h <<\EOF
12450#define HAVE_DLOPEN 1
12451EOF
12452
12453 HAVE_DL_FUNCS=1
12454
12455else
12456 echo "$ac_t""no" 1>&6
12457echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
88d3a15c 12458echo "configure:12459: checking for dlopen in -ldl" >&5
10f2d63a
VZ
12459ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12460if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12461 echo $ac_n "(cached) $ac_c" 1>&6
12462else
12463 ac_save_LIBS="$LIBS"
12464LIBS="-ldl $LIBS"
12465cat > conftest.$ac_ext <<EOF
88d3a15c 12466#line 12467 "configure"
10f2d63a
VZ
12467#include "confdefs.h"
12468/* Override any gcc2 internal prototype to avoid an error. */
12469/* We use char because int might match the return type of a gcc2
12470 builtin and then its argument prototype would still apply. */
12471char dlopen();
12472
12473int main() {
12474dlopen()
12475; return 0; }
12476EOF
88d3a15c 12477if { (eval echo configure:12478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12478 rm -rf conftest*
12479 eval "ac_cv_lib_$ac_lib_var=yes"
12480else
12481 echo "configure: failed program was:" >&5
12482 cat conftest.$ac_ext >&5
12483 rm -rf conftest*
12484 eval "ac_cv_lib_$ac_lib_var=no"
12485fi
12486rm -f conftest*
12487LIBS="$ac_save_LIBS"
12488
12489fi
12490if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12491 echo "$ac_t""yes" 1>&6
12492
12493 cat >> confdefs.h <<\EOF
12494#define HAVE_DLOPEN 1
12495EOF
12496
12497 HAVE_DL_FUNCS=1
12498 LIBS="$LIBS -ldl"
12499
12500else
12501 echo "$ac_t""no" 1>&6
12502
12503 for ac_func in shl_load
12504do
12505echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
88d3a15c 12506echo "configure:12507: checking for $ac_func" >&5
10f2d63a
VZ
12507if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12508 echo $ac_n "(cached) $ac_c" 1>&6
12509else
12510 cat > conftest.$ac_ext <<EOF
88d3a15c 12511#line 12512 "configure"
10f2d63a
VZ
12512#include "confdefs.h"
12513/* System header to define __stub macros and hopefully few prototypes,
12514 which can conflict with char $ac_func(); below. */
12515#include <assert.h>
12516/* Override any gcc2 internal prototype to avoid an error. */
12517/* We use char because int might match the return type of a gcc2
12518 builtin and then its argument prototype would still apply. */
12519char $ac_func();
12520
12521int main() {
12522
12523/* The GNU C library defines this for functions which it implements
12524 to always fail with ENOSYS. Some functions are actually named
12525 something starting with __ and the normal name is an alias. */
12526#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12527choke me
12528#else
88d3a15c 12529$ac_func();
10f2d63a
VZ
12530#endif
12531
12532; return 0; }
12533EOF
88d3a15c 12534if { (eval echo configure:12535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12535 rm -rf conftest*
12536 eval "ac_cv_func_$ac_func=yes"
12537else
12538 echo "configure: failed program was:" >&5
12539 cat conftest.$ac_ext >&5
12540 rm -rf conftest*
12541 eval "ac_cv_func_$ac_func=no"
12542fi
12543rm -f conftest*
12544fi
12545
12546if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12547 echo "$ac_t""yes" 1>&6
12548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12549 cat >> confdefs.h <<EOF
12550#define $ac_tr_func 1
12551EOF
12552
12553 cat >> confdefs.h <<\EOF
12554#define HAVE_SHL_LOAD 1
12555EOF
12556
12557 HAVE_SHL_FUNCS=1
12558
12559else
12560 echo "$ac_t""no" 1>&6
12561fi
12562done
12563
12564
12565fi
12566
12567
12568fi
12569done
12570
12571
12572 if test "$HAVE_DL_FUNCS" = 0; then
12573 if test "$HAVE_SHL_FUNCS" = 0; then
12574 if test "$USE_UNIX" = 1; then
b12915c1 12575 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
12576 wxUSE_DYNLIB_CLASS=no
12577 else
b12915c1 12578 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
12579 fi
12580 fi
12581 fi
12582fi
12583
b089607b
VZ
12584fi
12585
10f2d63a 12586if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 12587 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12588#define wxUSE_DYNLIB_CLASS 1
12589EOF
12590
b12915c1
VZ
12591else
12592 wxUSE_ODBC=no
12593 wxUSE_SERIAL=no
10f2d63a
VZ
12594fi
12595
12596
12597if test "$wxUSE_UNICODE" = "yes" ; then
12598 cat >> confdefs.h <<\EOF
12599#define wxUSE_UNICODE 1
12600EOF
12601
12602fi
12603
12604if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12605 cat >> confdefs.h <<\EOF
12606#define wxUSE_WCSRTOMBS 1
12607EOF
12608
12609fi
12610
12611if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12612 cat >> confdefs.h <<\EOF
12613#define wxUSE_EXPERIMENTAL_PRINTF 1
12614EOF
12615
12616fi
12617
12618
b12915c1
VZ
12619if test "$wxUSE_SERIAL" = "yes" ; then
12620 cat >> confdefs.h <<\EOF
12621#define wxUSE_SERIAL 1
12622EOF
12623
12624fi
12625
12626
10f2d63a
VZ
12627IODBC_C_SRC=""
12628if test "$wxUSE_ODBC" = "yes" ; then
12629 cat >> confdefs.h <<\EOF
12630#define wxUSE_ODBC 1
12631EOF
12632
12633 WXODBCFLAG="-D_IODBC_"
12634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12635 IODBCOBJS="\$(IODBC_OBJS)"
12636else
12637 IODBCOBJS=
12638fi
12639
12640
12641if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12642 cat >> confdefs.h <<\EOF
12643#define wxUSE_POSTSCRIPT 1
12644EOF
12645
12646fi
12647
12648cat >> confdefs.h <<\EOF
12649#define wxUSE_AFM_FOR_POSTSCRIPT 1
12650EOF
12651
12652
12653cat >> confdefs.h <<\EOF
12654#define wxUSE_NORMALIZED_PS_FONTS 1
12655EOF
12656
12657
12658
12659if test "$wxUSE_CONSTRAINTS" = "yes"; then
12660 cat >> confdefs.h <<\EOF
12661#define wxUSE_CONSTRAINTS 1
12662EOF
12663
12664 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12665fi
12666
12667if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12668 cat >> confdefs.h <<\EOF
12669#define wxUSE_MDI_ARCHITECTURE 1
12670EOF
12671
12672 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12673fi
12674
12675if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12676 cat >> confdefs.h <<\EOF
12677#define wxUSE_DOC_VIEW_ARCHITECTURE 1
12678EOF
12679
12680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12681 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12683 fi
12684fi
12685
12686if test "$wxUSE_HELP" = "yes"; then
12687 cat >> confdefs.h <<\EOF
12688#define wxUSE_HELP 1
12689EOF
12690
12691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12692fi
12693
12694if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12695 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12696 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12697 else
12698 cat >> confdefs.h <<\EOF
12699#define wxUSE_PRINTING_ARCHITECTURE 1
12700EOF
12701
12702 fi
12703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12704fi
12705
12706if test "$wxUSE_PROLOGIO" = "yes" ; then
12707 cat >> confdefs.h <<\EOF
12708#define wxUSE_PROLOGIO 1
12709EOF
12710
12711fi
12712
12713if test "$wxUSE_RESOURCES" = "yes" ; then
12714 if test "$wxUSE_PROLOGIO" = "yes" ; then
12715 cat >> confdefs.h <<\EOF
12716#define wxUSE_RESOURCES 1
12717EOF
12718
12719 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12720 else
12721 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12722 fi
12723fi
12724
12725if test "$wxUSE_X_RESOURCES" = "yes"; then
12726 cat >> confdefs.h <<\EOF
12727#define wxUSE_X_RESOURCES 1
12728EOF
12729
12730fi
12731
12732
12733if test "$wxUSE_IPC" = "yes"; then
12734 cat >> confdefs.h <<\EOF
12735#define wxUSE_IPC 1
12736EOF
12737
12738fi
12739
12740if test "$wxUSE_CLIPBOARD" = "yes"; then
12741 cat >> confdefs.h <<\EOF
12742#define wxUSE_CLIPBOARD 1
12743EOF
12744
12745fi
12746
12747if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12748 if test "$wxUSE_GTK" = 1; then
12749 if test "$WXGTK12" != 1; then
12750 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12751 wxUSE_DRAG_AND_DROP=no
12752 fi
12753 fi
12754
12755 if test "$wxUSE_MOTIF" = 1; then
12756 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12757 wxUSE_DRAG_AND_DROP=no
12758 fi
12759
12760 if test "$USE_WIN32" = 1; then
12761 for ac_hdr in ole2.h
12762do
12763ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12764echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
88d3a15c 12765echo "configure:12766: checking for $ac_hdr" >&5
10f2d63a
VZ
12766if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12767 echo $ac_n "(cached) $ac_c" 1>&6
12768else
12769 cat > conftest.$ac_ext <<EOF
88d3a15c 12770#line 12771 "configure"
10f2d63a
VZ
12771#include "confdefs.h"
12772#include <$ac_hdr>
12773EOF
12774ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
88d3a15c 12775{ (eval echo configure:12776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12776ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12777if test -z "$ac_err"; then
12778 rm -rf conftest*
12779 eval "ac_cv_header_$ac_safe=yes"
12780else
12781 echo "$ac_err" >&5
12782 echo "configure: failed program was:" >&5
12783 cat conftest.$ac_ext >&5
12784 rm -rf conftest*
12785 eval "ac_cv_header_$ac_safe=no"
12786fi
12787rm -f conftest*
12788fi
12789if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12790 echo "$ac_t""yes" 1>&6
12791 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12792 cat >> confdefs.h <<EOF
12793#define $ac_tr_hdr 1
12794EOF
12795
12796else
12797 echo "$ac_t""no" 1>&6
12798fi
12799done
12800
12801 if test "x$HAVE_OLE2_H" = x ; then
12802 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12803 wxUSE_DRAG_AND_DROP=no
12804 fi
12805 fi
12806
12807 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12808 cat >> confdefs.h <<\EOF
12809#define wxUSE_DRAG_AND_DROP 1
12810EOF
12811
12812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12813 fi
12814
12815fi
12816
12817if test "$wxUSE_SPLINES" = "yes" ; then
12818 cat >> confdefs.h <<\EOF
12819#define wxUSE_SPLINES 1
12820EOF
12821
12822fi
12823
12824
12825if test "$wxUSE_ACCEL" = "yes"; then
12826 cat >> confdefs.h <<\EOF
12827#define wxUSE_ACCEL 1
12828EOF
12829
12830fi
12831
12832if test "$wxUSE_CARET" = "yes"; then
12833 cat >> confdefs.h <<\EOF
12834#define wxUSE_CARET 1
12835EOF
12836
12837 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12838fi
12839
12840if test "$wxUSE_COMBOBOX" = "yes"; then
12841 cat >> confdefs.h <<\EOF
12842#define wxUSE_COMBOBOX 1
12843EOF
12844
12845fi
12846
12847if test "$wxUSE_CHOICE" = "yes"; then
12848 cat >> confdefs.h <<\EOF
12849#define wxUSE_CHOICE 1
12850EOF
12851
12852fi
12853
12854if test "$wxUSE_BMPBUTTON" = "yes"; then
12855 cat >> confdefs.h <<\EOF
12856#define wxUSE_BMPBUTTON 1
12857EOF
12858
12859fi
12860
12861if test "$wxUSE_CHECKBOX" = "yes"; then
12862 cat >> confdefs.h <<\EOF
12863#define wxUSE_CHECKBOX 1
12864EOF
12865
12866fi
12867
12868if test "$wxUSE_CHECKLST" = "yes"; then
12869 cat >> confdefs.h <<\EOF
12870#define wxUSE_CHECKLISTBOX 1
12871EOF
12872
12873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12874fi
12875
12876if test "$wxUSE_GAUGE" = "yes"; then
12877 cat >> confdefs.h <<\EOF
12878#define wxUSE_GAUGE 1
12879EOF
12880
12881fi
12882
12883if test "$wxUSE_GRID" = "yes"; then
12884 cat >> confdefs.h <<\EOF
12885#define wxUSE_GRID 1
12886EOF
12887
12888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
12889fi
12890
12891if test "$wxUSE_NEW_GRID" = "yes"; then
12892 cat >> confdefs.h <<\EOF
12893#define wxUSE_NEW_GRID 1
12894EOF
12895
12896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
12897fi
12898
12899if test "$wxUSE_IMAGLIST" = "yes"; then
12900 cat >> confdefs.h <<\EOF
12901#define wxUSE_IMAGLIST 1
12902EOF
12903
12904fi
12905
12906if test "$wxUSE_LISTBOX" = "yes"; then
12907 cat >> confdefs.h <<\EOF
12908#define wxUSE_LISTBOX 1
12909EOF
12910
12911fi
12912
12913if test "$wxUSE_LISTCTRL" = "yes"; then
12914 if test "$wxUSE_IMAGLIST" = "yes"; then
12915 cat >> confdefs.h <<\EOF
12916#define wxUSE_LISTCTRL 1
12917EOF
12918
12919 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
12920 else
12921 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
12922 fi
12923fi
12924
12925if test "$wxUSE_NOTEBOOK" = "yes"; then
12926 cat >> confdefs.h <<\EOF
12927#define wxUSE_NOTEBOOK 1
12928EOF
12929
12930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
12931fi
12932
12933if test "$wxUSE_RADIOBOX" = "yes"; then
12934 cat >> confdefs.h <<\EOF
12935#define wxUSE_RADIOBOX 1
12936EOF
12937
12938fi
12939
12940if test "$wxUSE_RADIOBTN" = "yes"; then
12941 cat >> confdefs.h <<\EOF
12942#define wxUSE_RADIOBTN 1
12943EOF
12944
12945fi
12946
12947if test "$wxUSE_SASH" = "yes"; then
12948 cat >> confdefs.h <<\EOF
12949#define wxUSE_SASH 1
12950EOF
12951
12952 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
12953fi
12954
12955if test "$wxUSE_SCROLLBAR" = "yes"; then
12956 cat >> confdefs.h <<\EOF
12957#define wxUSE_SCROLLBAR 1
12958EOF
12959
741a9306 12960 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
12961fi
12962
12963if test "$wxUSE_SLIDER" = "yes"; then
12964 cat >> confdefs.h <<\EOF
12965#define wxUSE_SLIDER 1
12966EOF
12967
12968fi
12969
12970if test "$wxUSE_SPINBTN" = "yes"; then
12971 cat >> confdefs.h <<\EOF
12972#define wxUSE_SPINBTN 1
12973EOF
12974
12975fi
12976
56cfaa52
RR
12977if test "$wxUSE_SPINCTRL" = "yes"; then
12978 cat >> confdefs.h <<\EOF
12979#define wxUSE_SPINCTRL 1
12980EOF
12981
12982fi
12983
10f2d63a
VZ
12984if test "$wxUSE_SPLITTER" = "yes"; then
12985 cat >> confdefs.h <<\EOF
12986#define wxUSE_SPLITTER 1
12987EOF
12988
12989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
12990fi
12991
12992if test "$wxUSE_STATBMP" = "yes"; then
12993 cat >> confdefs.h <<\EOF
12994#define wxUSE_STATBMP 1
12995EOF
12996
12997fi
12998
12999if test "$wxUSE_STATBOX" = "yes"; then
13000 cat >> confdefs.h <<\EOF
13001#define wxUSE_STATBOX 1
13002EOF
13003
13004fi
13005
13006if test "$wxUSE_STATLINE" = "yes"; then
13007 if test "$wxUSE_WINE" = 1 ; then
13008 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
13009 else
13010 cat >> confdefs.h <<\EOF
13011#define wxUSE_STATLINE 1
13012EOF
13013
13014 fi
13015fi
13016
13017if test "$wxUSE_STATUSBAR" = "yes"; then
13018 cat >> confdefs.h <<\EOF
13019#define wxUSE_STATUSBAR 1
13020EOF
13021
2286341c
VZ
13022
13023 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
13024fi
13025
13026if test "$wxUSE_TABDIALOG" = "yes"; then
13027 cat >> confdefs.h <<\EOF
13028#define wxUSE_TAB_DIALOG 1
13029EOF
13030
13031 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
13032fi
13033
360d6699
VZ
13034if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
13035 cat >> confdefs.h <<\EOF
13036#define wxUSE_TOOLBAR_SIMPLE 1
13037EOF
13038
13039 wxUSE_TOOLBAR="yes"
13040fi
13041
10f2d63a
VZ
13042if test "$wxUSE_TOOLBAR" = "yes"; then
13043 cat >> confdefs.h <<\EOF
13044#define wxUSE_TOOLBAR 1
13045EOF
13046
360d6699
VZ
13047
13048 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
13049 wxUSE_TOOLBAR_NATIVE="yes"
13050 fi
13051
10f2d63a
VZ
13052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
13053fi
13054
360d6699
VZ
13055if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
13056 cat >> confdefs.h <<\EOF
13057#define wxUSE_TOOLBAR_NATIVE 1
13058EOF
13059
13060fi
13061
10f2d63a
VZ
13062if test "$wxUSE_TOOLTIPS" = "yes"; then
13063 if test "$wxUSE_MOTIF" = 1; then
13064 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13065 else
13066 if test "$wxUSE_WINE" = 1; then
13067 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13068 else
13069 cat >> confdefs.h <<\EOF
13070#define wxUSE_TOOLTIPS 1
13071EOF
13072
13073 fi
13074 fi
13075fi
13076
13077if test "$wxUSE_TREECTRL" = "yes"; then
13078 if test "$wxUSE_IMAGLIST" = "yes"; then
13079 cat >> confdefs.h <<\EOF
13080#define wxUSE_TREECTRL 1
13081EOF
13082
13083 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13084 else
13085 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13086 fi
13087fi
13088
13089
13090
13091if test "$wxUSE_METAFILE" = "yes"; then
13092 cat >> confdefs.h <<\EOF
13093#define wxUSE_METAFILE 1
13094EOF
13095
13096fi
13097
13098if test "$wxUSE_DIRDLG" = "yes"; then
13099 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13100 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13101 else
13102 if test "$wxUSE_TREECTRL" != "yes"; then
13103 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13104 else
13105 cat >> confdefs.h <<\EOF
13106#define wxUSE_DIRDLG 1
13107EOF
13108
13109 fi
13110 fi
13111fi
13112
13113if test "$wxUSE_TEXTDLG" = "yes"; then
13114 cat >> confdefs.h <<\EOF
13115#define wxUSE_TEXTDLG 1
13116EOF
13117
13118fi
13119
13120if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13121 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13122 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13123 else
13124 cat >> confdefs.h <<\EOF
13125#define wxUSE_STARTUP_TIPS 1
13126EOF
13127
13128 fi
13129fi
13130
13131if test "$wxUSE_PROGRESSDLG" = "yes"; then
13132 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13133 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13134 else
13135 cat >> confdefs.h <<\EOF
13136#define wxUSE_PROGRESSDLG 1
13137EOF
13138
13139 fi
13140fi
13141
13142if test "$wxUSE_MINIFRAME" = "yes"; then
13143 cat >> confdefs.h <<\EOF
13144#define wxUSE_MINIFRAME 1
13145EOF
13146
13147 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13148fi
13149
13150if test "$wxUSE_HTML" = "yes"; then
13151 cat >> confdefs.h <<\EOF
13152#define wxUSE_HTML 1
13153EOF
13154
13155 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13156 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13157fi
13158
13159if test "$wxUSE_VALIDATORS" = "yes"; then
13160 cat >> confdefs.h <<\EOF
13161#define wxUSE_VALIDATORS 1
13162EOF
13163
13164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13165fi
13166
13167if test "$wxUSE_GIF" = "yes" ; then
13168 cat >> confdefs.h <<\EOF
13169#define wxUSE_GIF 1
13170EOF
13171
13172fi
13173
13174if test "$wxUSE_PCX" = "yes" ; then
13175 cat >> confdefs.h <<\EOF
13176#define wxUSE_PCX 1
13177EOF
13178
13179fi
13180
13181if test "$wxUSE_PNM" = "yes" ; then
13182 cat >> confdefs.h <<\EOF
13183#define wxUSE_PNM 1
13184EOF
13185
13186fi
13187
13188
aaa37c0d
VZ
13189OSINFO=`uname -s -r -m`
13190OSINFO="\"$OSINFO\""
13191cat >> confdefs.h <<EOF
13192#define WXWIN_OS_DESCRIPTION $OSINFO
13193EOF
13194
13195
13196
10f2d63a
VZ
13197GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
13198
c63c7106 13199EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a
VZ
13200if test "$wxUSE_GUI" = "yes"; then
13201 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
13202fi
13203
13204LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13205
c7a2bf27 13206INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
13207
13208if test "$GXX" = yes ; then
13209 CXXWARNINGS="-Wall"
13210 fi
13211EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13212
13213CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13214CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13215
e694c22c
VZ
13216LDFLAGS="$LDFLAGS $PROFILE"
13217
10f2d63a
VZ
13218if test "$wxUSE_GUI" = "yes"; then
13219
70f7a477
VZ
13220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs drawing dynamic \
13221 font fractal image minimal richedit"
b12915c1 13222
88d3a15c 13223 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
13224else
13225 SAMPLES_SUBDIRS=""
13226fi
13227
ec14dd32
VZ
13228SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13229
13230
13231
10f2d63a
VZ
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
1d62a8b4 13284
e694c22c 13285
b12915c1 13286
2224580a
VZ
13287
13288
13289
13290
dad6c0ea
VZ
13291
13292
caa2c79b 13293
10f2d63a
VZ
13294
13295
13296echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
88d3a15c 13297echo "configure:13298: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
13298set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13299if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13300 echo $ac_n "(cached) $ac_c" 1>&6
13301else
13302 cat > conftestmake <<\EOF
13303all:
13304 @echo 'ac_maketemp="${MAKE}"'
13305EOF
13306# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13307eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13308if test -n "$ac_maketemp"; then
13309 eval ac_cv_prog_make_${ac_make}_set=yes
13310else
13311 eval ac_cv_prog_make_${ac_make}_set=no
13312fi
13313rm -f conftestmake
13314fi
13315if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13316 echo "$ac_t""yes" 1>&6
13317 SET_MAKE=
13318else
13319 echo "$ac_t""no" 1>&6
13320 SET_MAKE="MAKE=${MAKE-make}"
13321fi
13322
13323
13324
13325
2224580a
VZ
13326if test "$wxUSE_GUI" = "yes"; then
13327 echo $ac_n "checking glcanvas subdirectory to use""... $ac_c" 1>&6
88d3a15c 13328echo "configure:13329: checking glcanvas subdirectory to use" >&5
2224580a
VZ
13329if eval "test \"`echo '$''{'wx_cv_path_glcanvas'+set}'`\" = set"; then
13330 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13331else
2224580a
VZ
13332
13333 if test "${TOOLKIT_DIR}" = "msw" ; then
13334 wx_cv_path_glcanvas="win"
13335 else
13336 wx_cv_path_glcanvas="${TOOLKIT_DIR}"
13337 fi
13338
10f2d63a
VZ
13339fi
13340
2224580a
VZ
13341echo "$ac_t""$wx_cv_path_glcanvas" 1>&6
13342
ec90f5e5 13343 GL_TOOLKIT_DIR=$wx_cv_path_glcanvas
2224580a
VZ
13344
13345
ec90f5e5 13346 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
2224580a
VZ
13347 subdirs="demos samples utils"
13348
13349fi
10f2d63a
VZ
13350
13351trap '' 1 2 15
13352cat > confcache <<\EOF
13353# This file is a shell script that caches the results of configure
13354# tests run on this system so they can be shared between configure
13355# scripts and configure runs. It is not useful on other systems.
13356# If it contains results you don't want to keep, you may remove or edit it.
13357#
13358# By default, configure uses ./config.cache as the cache file,
13359# creating it if it does not exist already. You can give configure
13360# the --cache-file=FILE option to use a different cache file; that is
13361# what configure does when it calls configure scripts in
13362# subdirectories, so they share the cache.
13363# Giving --cache-file=/dev/null disables caching, for debugging configure.
13364# config.status only pays attention to the cache file if you give it the
13365# --recheck option to rerun configure.
13366#
13367EOF
13368# The following way of writing the cache mishandles newlines in values,
13369# but we know of no workaround that is simple, portable, and efficient.
13370# So, don't put newlines in cache variables' values.
13371# Ultrix sh set writes to stderr and can't be redirected directly,
13372# and sets the high bit in the cache file unless we assign to the vars.
13373(set) 2>&1 |
13374 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13375 *ac_space=\ *)
13376 # `set' does not quote correctly, so add quotes (double-quote substitution
13377 # turns \\\\ into \\, and sed turns \\ into \).
13378 sed -n \
13379 -e "s/'/'\\\\''/g" \
13380 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13381 ;;
13382 *)
13383 # `set' quotes correctly as required by POSIX, so do not add quotes.
13384 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13385 ;;
13386 esac >> confcache
13387if cmp -s $cache_file confcache; then
13388 :
13389else
13390 if test -w $cache_file; then
13391 echo "updating cache $cache_file"
13392 cat confcache > $cache_file
13393 else
13394 echo "not updating unwritable cache $cache_file"
13395 fi
13396fi
13397rm -f confcache
13398
13399trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13400
13401test "x$prefix" = xNONE && prefix=$ac_default_prefix
13402# Let make expand exec_prefix.
13403test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13404
13405# Any assignment to VPATH causes Sun make to only execute
13406# the first set of double-colon rules, so remove it if not needed.
13407# If there is a colon in the path, we need to keep it.
13408if test "x$srcdir" = x.; then
13409 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13410fi
13411
13412trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13413
13414DEFS=-DHAVE_CONFIG_H
13415
13416# Without the "./", some shells look in PATH for config.status.
13417: ${CONFIG_STATUS=./config.status}
13418
13419echo creating $CONFIG_STATUS
13420rm -f $CONFIG_STATUS
13421cat > $CONFIG_STATUS <<EOF
13422#! /bin/sh
13423# Generated automatically by configure.
13424# Run this file to recreate the current configuration.
13425# This directory was configured as follows,
13426# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13427#
13428# $0 $ac_configure_args
13429#
13430# Compiler output produced by configure, useful for debugging
13431# configure, is in ./config.log if it exists.
13432
13433ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13434for ac_option
13435do
13436 case "\$ac_option" in
13437 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13438 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13439 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13440 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
88d3a15c 13441 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
13442 exit 0 ;;
13443 -help | --help | --hel | --he | --h)
13444 echo "\$ac_cs_usage"; exit 0 ;;
13445 *) echo "\$ac_cs_usage"; exit 1 ;;
13446 esac
13447done
13448
13449ac_given_srcdir=$srcdir
13450ac_given_INSTALL="$INSTALL"
13451
13452trap 'rm -fr `echo "
13453 wx-config
13454 src/make.env
13455 src/makeprog.env
13456 src/makelib.env
13457 Makefile
10f2d63a
VZ
13458 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13459EOF
13460cat >> $CONFIG_STATUS <<EOF
13461
13462# Protect against being on the right side of a sed subst in config.status.
13463sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13464 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13465$ac_vpsub
13466$extrasub
13467s%@SHELL@%$SHELL%g
13468s%@CFLAGS@%$CFLAGS%g
13469s%@CPPFLAGS@%$CPPFLAGS%g
13470s%@CXXFLAGS@%$CXXFLAGS%g
13471s%@FFLAGS@%$FFLAGS%g
13472s%@DEFS@%$DEFS%g
13473s%@LDFLAGS@%$LDFLAGS%g
13474s%@LIBS@%$LIBS%g
13475s%@exec_prefix@%$exec_prefix%g
13476s%@prefix@%$prefix%g
13477s%@program_transform_name@%$program_transform_name%g
13478s%@bindir@%$bindir%g
13479s%@sbindir@%$sbindir%g
13480s%@libexecdir@%$libexecdir%g
13481s%@datadir@%$datadir%g
13482s%@sysconfdir@%$sysconfdir%g
13483s%@sharedstatedir@%$sharedstatedir%g
13484s%@localstatedir@%$localstatedir%g
13485s%@libdir@%$libdir%g
13486s%@includedir@%$includedir%g
13487s%@oldincludedir@%$oldincludedir%g
13488s%@infodir@%$infodir%g
13489s%@mandir@%$mandir%g
7c66a493
VZ
13490s%@host@%$host%g
13491s%@host_alias@%$host_alias%g
13492s%@host_cpu@%$host_cpu%g
13493s%@host_vendor@%$host_vendor%g
13494s%@host_os@%$host_os%g
13495s%@target@%$target%g
13496s%@target_alias@%$target_alias%g
13497s%@target_cpu@%$target_cpu%g
13498s%@target_vendor@%$target_vendor%g
13499s%@target_os@%$target_os%g
13500s%@build@%$build%g
13501s%@build_alias@%$build_alias%g
13502s%@build_cpu@%$build_cpu%g
13503s%@build_vendor@%$build_vendor%g
13504s%@build_os@%$build_os%g
10f2d63a
VZ
13505s%@CC@%$CC%g
13506s%@CPP@%$CPP%g
13507s%@CXX@%$CXX%g
13508s%@CXXCPP@%$CXXCPP%g
13509s%@RANLIB@%$RANLIB%g
13510s%@AR@%$AR%g
13511s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13512s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13513s%@INSTALL_DATA@%$INSTALL_DATA%g
13514s%@STRIP@%$STRIP%g
13515s%@YACC@%$YACC%g
13516s%@LEX@%$LEX%g
13517s%@LEXLIB@%$LEXLIB%g
13518s%@LN_S@%$LN_S%g
13519s%@GTK_CONFIG@%$GTK_CONFIG%g
13520s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13521s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
13522s%@X_CFLAGS@%$X_CFLAGS%g
13523s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13524s%@X_LIBS@%$X_LIBS%g
13525s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
13526s%@LEX_STEM@%$LEX_STEM%g
13527s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
13528s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13529s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13530s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13531s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13532s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13533s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13534s%@WX_LIBRARY@%$WX_LIBRARY%g
13535s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13536s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13537s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13538s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13539s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13540s%@WX_ALL@%$WX_ALL%g
13541s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13542s%@SHARED_LD@%$SHARED_LD%g
13543s%@PIC_FLAG@%$PIC_FLAG%g
13544s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 13545s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 13546s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
10f2d63a 13547s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
13548s%@USE_GUI@%$USE_GUI%g
13549s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
13550s%@TOOLKIT@%$TOOLKIT%g
13551s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13552s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13553s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13554s%@GUIHEADERS@%$GUIHEADERS%g
13555s%@GUIOBJS@%$GUIOBJS%g
13556s%@COMMONOBJS@%$COMMONOBJS%g
13557s%@GENERICOBJS@%$GENERICOBJS%g
13558s%@GUIDEPS@%$GUIDEPS%g
13559s%@COMMONDEPS@%$COMMONDEPS%g
13560s%@GENERICDEPS@%$GENERICDEPS%g
13561s%@IODBCOBJS@%$IODBCOBJS%g
13562s%@UNIXOBJS@%$UNIXOBJS%g
13563s%@UNIXDEPS@%$UNIXDEPS%g
13564s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13565s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 13566s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
13567s%@PORT_FILES@%$PORT_FILES%g
13568s%@DISTDIR@%$DISTDIR%g
13569s%@RPM_SPEC@%$RPM_SPEC%g
13570s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
13571s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13572s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13573s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13574s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13575s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13576s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13577s%@EXTRA_LIBS@%$EXTRA_LIBS%g
b12915c1 13578s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a
VZ
13579s%@LD_LIBS@%$LD_LIBS%g
13580s%@SET_MAKE@%$SET_MAKE%g
13581s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
2224580a 13582s%@subdirs@%$subdirs%g
10f2d63a
VZ
13583
13584CEOF
13585EOF
13586
13587cat >> $CONFIG_STATUS <<\EOF
13588
13589# Split the substitutions into bite-sized pieces for seds with
13590# small command number limits, like on Digital OSF/1 and HP-UX.
13591ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13592ac_file=1 # Number of current file.
13593ac_beg=1 # First line for current file.
13594ac_end=$ac_max_sed_cmds # Line after last line for current file.
13595ac_more_lines=:
13596ac_sed_cmds=""
13597while $ac_more_lines; do
13598 if test $ac_beg -gt 1; then
13599 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13600 else
13601 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13602 fi
13603 if test ! -s conftest.s$ac_file; then
13604 ac_more_lines=false
13605 rm -f conftest.s$ac_file
13606 else
13607 if test -z "$ac_sed_cmds"; then
13608 ac_sed_cmds="sed -f conftest.s$ac_file"
13609 else
13610 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13611 fi
13612 ac_file=`expr $ac_file + 1`
13613 ac_beg=$ac_end
13614 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13615 fi
13616done
13617if test -z "$ac_sed_cmds"; then
13618 ac_sed_cmds=cat
13619fi
13620EOF
13621
13622cat >> $CONFIG_STATUS <<EOF
13623
13624CONFIG_FILES=\${CONFIG_FILES-"wx-config
13625 src/make.env
13626 src/makeprog.env
13627 src/makelib.env
13628 Makefile
10f2d63a
VZ
13629 "}
13630EOF
13631cat >> $CONFIG_STATUS <<\EOF
13632for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13633 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13634 case "$ac_file" in
13635 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13636 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13637 *) ac_file_in="${ac_file}.in" ;;
13638 esac
13639
13640 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13641
13642 # Remove last slash and all that follows it. Not all systems have dirname.
13643 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13644 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13645 # The file is in a subdirectory.
13646 test ! -d "$ac_dir" && mkdir "$ac_dir"
13647 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13648 # A "../" for each directory in $ac_dir_suffix.
13649 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13650 else
13651 ac_dir_suffix= ac_dots=
13652 fi
13653
13654 case "$ac_given_srcdir" in
13655 .) srcdir=.
13656 if test -z "$ac_dots"; then top_srcdir=.
13657 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13658 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13659 *) # Relative path.
13660 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13661 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13662 esac
13663
13664 case "$ac_given_INSTALL" in
13665 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13666 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13667 esac
13668
13669 echo creating "$ac_file"
13670 rm -f "$ac_file"
13671 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13672 case "$ac_file" in
13673 *Makefile*) ac_comsub="1i\\
13674# $configure_input" ;;
13675 *) ac_comsub= ;;
13676 esac
13677
13678 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13679 sed -e "$ac_comsub
13680s%@configure_input@%$configure_input%g
13681s%@srcdir@%$srcdir%g
13682s%@top_srcdir@%$top_srcdir%g
13683s%@INSTALL@%$INSTALL%g
13684" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13685fi; done
13686rm -f conftest.s*
13687
13688# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13689# NAME is the cpp macro being defined and VALUE is the value it is being given.
13690#
13691# ac_d sets the value in "#define NAME VALUE" lines.
13692ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13693ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13694ac_dC='\3'
13695ac_dD='%g'
13696# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13697ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13698ac_uB='\([ ]\)%\1#\2define\3'
13699ac_uC=' '
13700ac_uD='\4%g'
13701# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13702ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13703ac_eB='$%\1#\2define\3'
13704ac_eC=' '
13705ac_eD='%g'
13706
13707if test "${CONFIG_HEADERS+set}" != set; then
13708EOF
13709cat >> $CONFIG_STATUS <<EOF
13710 CONFIG_HEADERS="setup.h:setup.h.in"
13711EOF
13712cat >> $CONFIG_STATUS <<\EOF
13713fi
13714for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13715 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13716 case "$ac_file" in
13717 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13718 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13719 *) ac_file_in="${ac_file}.in" ;;
13720 esac
13721
13722 echo creating $ac_file
13723
13724 rm -f conftest.frag conftest.in conftest.out
13725 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13726 cat $ac_file_inputs > conftest.in
13727
13728EOF
13729
13730# Transform confdefs.h into a sed script conftest.vals that substitutes
13731# the proper values into config.h.in to produce config.h. And first:
13732# Protect against being on the right side of a sed subst in config.status.
13733# Protect against being in an unquoted here document in config.status.
13734rm -f conftest.vals
13735cat > conftest.hdr <<\EOF
13736s/[\\&%]/\\&/g
13737s%[\\$`]%\\&%g
13738s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13739s%ac_d%ac_u%gp
13740s%ac_u%ac_e%gp
13741EOF
13742sed -n -f conftest.hdr confdefs.h > conftest.vals
13743rm -f conftest.hdr
13744
13745# This sed command replaces #undef with comments. This is necessary, for
13746# example, in the case of _POSIX_SOURCE, which is predefined and required
13747# on some systems where configure will not decide to define it.
13748cat >> conftest.vals <<\EOF
13749s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13750EOF
13751
13752# Break up conftest.vals because some shells have a limit on
13753# the size of here documents, and old seds have small limits too.
13754
13755rm -f conftest.tail
13756while :
13757do
13758 ac_lines=`grep -c . conftest.vals`
13759 # grep -c gives empty output for an empty file on some AIX systems.
13760 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13761 # Write a limited-size here document to conftest.frag.
13762 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13763 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13764 echo 'CEOF
13765 sed -f conftest.frag conftest.in > conftest.out
13766 rm -f conftest.in
13767 mv conftest.out conftest.in
13768' >> $CONFIG_STATUS
13769 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13770 rm -f conftest.vals
13771 mv conftest.tail conftest.vals
13772done
13773rm -f conftest.vals
13774
13775cat >> $CONFIG_STATUS <<\EOF
13776 rm -f conftest.frag conftest.h
13777 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13778 cat conftest.in >> conftest.h
13779 rm -f conftest.in
13780 if cmp -s $ac_file conftest.h 2>/dev/null; then
13781 echo "$ac_file is unchanged"
13782 rm -f conftest.h
13783 else
13784 # Remove last slash and all that follows it. Not all systems have dirname.
13785 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13786 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13787 # The file is in a subdirectory.
13788 test ! -d "$ac_dir" && mkdir "$ac_dir"
13789 fi
13790 rm -f $ac_file
13791 mv conftest.h $ac_file
13792 fi
13793fi; done
13794
13795EOF
13796cat >> $CONFIG_STATUS <<EOF
13797
13798 TOOLKIT_DIR="${TOOLKIT_DIR}"
13799
13800
13801EOF
13802cat >> $CONFIG_STATUS <<\EOF
13803
13804 chmod +x wx-config
13805 if test ! -d include; then
13806 mkdir include
13807 fi
13808 if test ! -d include/wx; then
13809 mkdir include/wx
13810 fi
13811 if test ! -d include/wx/${TOOLKIT_DIR}; then
13812 mkdir include/wx/${TOOLKIT_DIR}
13813 fi
afc31813
VZ
13814 if test -f setup.h; then
13815 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13816 fi
10f2d63a
VZ
13817
13818exit 0
13819EOF
13820chmod +x $CONFIG_STATUS
13821rm -fr confdefs* $ac_clean_files
13822test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13823
2224580a
VZ
13824if test "$no_recursion" != yes; then
13825
13826 # Remove --cache-file and --srcdir arguments so they do not pile up.
13827 ac_sub_configure_args=
13828 ac_prev=
13829 for ac_arg in $ac_configure_args; do
13830 if test -n "$ac_prev"; then
13831 ac_prev=
13832 continue
13833 fi
13834 case "$ac_arg" in
13835 -cache-file | --cache-file | --cache-fil | --cache-fi \
13836 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13837 ac_prev=cache_file ;;
13838 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13839 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13840 ;;
13841 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13842 ac_prev=srcdir ;;
13843 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13844 ;;
13845 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
13846 esac
13847 done
13848
13849 for ac_config_dir in demos samples utils; do
13850
13851 # Do not complain, so a configure script can configure whichever
13852 # parts of a large source tree are present.
13853 if test ! -d $srcdir/$ac_config_dir; then
13854 continue
13855 fi
13856
13857 echo configuring in $ac_config_dir
13858
13859 case "$srcdir" in
13860 .) ;;
13861 *)
13862 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
13863 else
13864 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
13865 fi
13866 ;;
13867 esac
13868
13869 ac_popdir=`pwd`
13870 cd $ac_config_dir
13871
13872 # A "../" for each directory in /$ac_config_dir.
13873 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
13874
13875 case "$srcdir" in
13876 .) # No --srcdir option. We are building in place.
13877 ac_sub_srcdir=$srcdir ;;
13878 /*) # Absolute path.
13879 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
13880 *) # Relative path.
13881 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
13882 esac
13883
13884 # Check for guested configure; otherwise get Cygnus style configure.
13885 if test -f $ac_sub_srcdir/configure; then
13886 ac_sub_configure=$ac_sub_srcdir/configure
13887 elif test -f $ac_sub_srcdir/configure.in; then
13888 ac_sub_configure=$ac_configure
13889 else
13890 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
13891 ac_sub_configure=
13892 fi
13893
13894 # The recursion is here.
13895 if test -n "$ac_sub_configure"; then
13896
13897 # Make the cache file name correct relative to the subdirectory.
13898 case "$cache_file" in
13899 /*) ac_sub_cache_file=$cache_file ;;
13900 *) # Relative path.
13901 ac_sub_cache_file="$ac_dots$cache_file" ;;
13902 esac
13903 case "$ac_given_INSTALL" in
13904 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13905 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13906 esac
13907
13908 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
13909 # The eval makes quoting arguments work.
13910 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
13911 then :
13912 else
13913 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
13914 fi
13915 fi
13916
13917 cd $ac_popdir
13918 done
13919fi
13920
10f2d63a 13921