]> git.saurik.com Git - wxWidgets.git/blame - configure
compile fix for wxUSE_STD_IOSTREAM case
[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.
00cf1208 41# Generated automatically using autoconf version 2.14
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
00cf1208
RR
86--enable-burnt_name create set name in shared library "
87ac_help="$ac_help
10f2d63a
VZ
88--enable-optimise create optimised code"
89ac_help="$ac_help
90--enable-debug same as debug_flag and debug_info"
91ac_help="$ac_help
92--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
93ac_help="$ac_help
94--enable-debug_info create code with debugging information"
95ac_help="$ac_help
96--enable-debug_gdb create code with extra GDB debugging information"
97ac_help="$ac_help
98--enable-debug_cntxt use wxDebugContext"
99ac_help="$ac_help
100--enable-mem_tracing create code with memory tracing"
101ac_help="$ac_help
102--enable-profile create code with profiling information"
103ac_help="$ac_help
104--enable-no_rtti create code without RTTI information"
105ac_help="$ac_help
106--enable-no_exceptions create code without exceptions information"
107ac_help="$ac_help
108--enable-permissive compile code disregarding strict ANSI"
109ac_help="$ac_help
110--enable-no_deps create code without dependency information"
111ac_help="$ac_help
112--enable-intl use internationalization system"
113ac_help="$ac_help
114--enable-config use wxConfig (and derived) classes"
115ac_help="$ac_help
116--enable-sockets use socket/network classes"
117ac_help="$ac_help
118--enable-dialupman use dialup network classes"
119ac_help="$ac_help
120--enable-ipc use interprocess communication (wxSocket etc.)"
121ac_help="$ac_help
122--enable-apple_ieee use the Apple IEEE codec"
123ac_help="$ac_help
124--enable-timedate use date/time classes"
125ac_help="$ac_help
126--enable-wave use wxWave class"
127ac_help="$ac_help
128--enable-fraction use wxFraction class"
129ac_help="$ac_help
130--enable-dynlib use wxLibrary class for DLL loading"
131ac_help="$ac_help
132--enable-longlong use wxLongLong class"
133ac_help="$ac_help
134--enable-log use logging system"
135ac_help="$ac_help
136--enable-streams use wxStream etc classes"
137ac_help="$ac_help
138--enable-file use wxFile classes"
139ac_help="$ac_help
140--enable-textfile use wxTextFile classes"
141ac_help="$ac_help
142--enable-unicode compile wxString with Unicode support"
143ac_help="$ac_help
144--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
145ac_help="$ac_help
146--enable-wxprintfv use wxWindows implementation of vprintf()"
147ac_help="$ac_help
148--enable-joystick compile in joystick support (Linux only)"
149ac_help="$ac_help
150--enable-std_iostreams use standard C++ stream classes"
151ac_help="$ac_help
152--enable-fs_inet use virtual HTTP/FTP filesystems"
153ac_help="$ac_help
154--enable-fs_zip use virtual ZIP filesystems"
155ac_help="$ac_help
156--enable-zipstream use wxZipInputStream"
157ac_help="$ac_help
158--enable-threads use threads"
159ac_help="$ac_help
160--enable-serial use class serialization"
161ac_help="$ac_help
162--enable-docview use document view architecture"
163ac_help="$ac_help
164--enable-help use help (using external browser at present)"
165ac_help="$ac_help
166--enable-constraints use layout-constraints system"
167ac_help="$ac_help
168--enable-printarch use printing architecture"
169ac_help="$ac_help
170--enable-mdi use multiple document interface architecture"
171ac_help="$ac_help
172--enable-postscript use wxPostscriptDC device context (default for gtk+)"
173ac_help="$ac_help
174--enable-prologio use Prolog IO library"
175ac_help="$ac_help
176--enable-resources use wxWindows resources"
177ac_help="$ac_help
178--enable-xresources use X resources for save (default for gtk+)"
179ac_help="$ac_help
180--enable-clipboard use wxClipboard classes"
181ac_help="$ac_help
182--enable-dnd use Drag'n'Drop classes"
183ac_help="$ac_help
184--enable-wxtree make wxTree library"
185ac_help="$ac_help
186--enable-controls use all usual controls"
187ac_help="$ac_help
188--enable-accel use accelerators"
189ac_help="$ac_help
190--enable-caret use wxCaret class"
191ac_help="$ac_help
192--enable-bmpbutton use wxBitmapButton class"
193ac_help="$ac_help
194--enable-checkbox use wxCheckBox class"
195ac_help="$ac_help
196--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
197ac_help="$ac_help
198--enable-choice use wxChoice class"
199ac_help="$ac_help
200--enable-combobox use wxComboBox classes"
201ac_help="$ac_help
202--enable-gauge use wxGauge class"
203ac_help="$ac_help
204--enable-grid use wxGrid class"
205ac_help="$ac_help
206--enable-newgrid use new wxGrid class"
207ac_help="$ac_help
208--enable-imaglist use wxImageList class"
209ac_help="$ac_help
210--enable-listbox use wxListBox class"
211ac_help="$ac_help
212--enable-listctrl use wxListCtrl class"
213ac_help="$ac_help
214--enable-notebook use wxNotebook class"
215ac_help="$ac_help
216--enable-radiobox use wxRadioBox class"
217ac_help="$ac_help
218--enable-radiobtn use wxRadioButton class"
219ac_help="$ac_help
220--enable-sash use wxSashWindow class"
221ac_help="$ac_help
222--enable-scrollbar use wxScrollBar class and scrollable windows"
223ac_help="$ac_help
224--enable-slider use wxSlider class"
225ac_help="$ac_help
226--enable-spinbtn use wxSpinButton class"
227ac_help="$ac_help
56cfaa52
RR
228--enable-spinctrl use wxSpinCtrl class"
229ac_help="$ac_help
10f2d63a
VZ
230--enable-splitter use wxSplitterWindow class"
231ac_help="$ac_help
232--enable-statbmp use wxStaticBitmap class"
233ac_help="$ac_help
234--enable-statbox use wxStaticBox class"
235ac_help="$ac_help
236--enable-statline use wxStaticLine class"
237ac_help="$ac_help
238--enable-statusbar use wxStatusBar class"
239ac_help="$ac_help
240--enable-tabdialog use wxTabControl class"
241ac_help="$ac_help
242--enable-toolbar use wxToolBar class"
243ac_help="$ac_help
360d6699
VZ
244--enable-tbarnative use native wxToolBar class"
245ac_help="$ac_help
246--enable-tbarsmpl use wxToolBarSimple class"
247ac_help="$ac_help
10f2d63a
VZ
248--enable-treectrl use wxTreeCtrl class"
249ac_help="$ac_help
250--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
251ac_help="$ac_help
252--enable-dirdlg use wxDirDialog"
253ac_help="$ac_help
254--enable-textdlg use wxTextDialog"
255ac_help="$ac_help
256--enable-tipdlg use startup tips"
257ac_help="$ac_help
258--enable-progressdlg use wxProgressDialog"
259ac_help="$ac_help
260--enable-miniframe use wxMiniFrame class"
261ac_help="$ac_help
262--enable-html use wxHTML sub-library"
263ac_help="$ac_help
264--enable-tooltips use wxToolTip class"
265ac_help="$ac_help
266--enable-splines use spline drawing code"
267ac_help="$ac_help
268--enable-validators use wxValidator and derived classes"
269ac_help="$ac_help
270--enable-busyinfo use wxBusyInfo"
271ac_help="$ac_help
9b33fe02
VZ
272--enable-plot use wxPlot"
273ac_help="$ac_help
10f2d63a
VZ
274--enable-gif use gif images (GIF file format)"
275ac_help="$ac_help
276--enable-pcx use pcx images (PCX file format)"
277ac_help="$ac_help
278--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
279ac_help="$ac_help
280 --with-x use the X Window System"
10f2d63a
VZ
281
282# Initialize some variables set by options.
283# The variables have the same names as the options, with
284# dashes changed to underlines.
285build=NONE
286cache_file=./config.cache
287exec_prefix=NONE
288host=NONE
289no_create=
290nonopt=NONE
291no_recursion=
292prefix=NONE
293program_prefix=NONE
294program_suffix=NONE
295program_transform_name=s,x,x,
296silent=
297site=
298srcdir=
299target=NONE
300verbose=
301x_includes=NONE
302x_libraries=NONE
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
315
316# Initialize some other variables.
317subdirs=
318MFLAGS= MAKEFLAGS=
319SHELL=${CONFIG_SHELL-/bin/sh}
320# Maximum number of lines to put in a shell here document.
321ac_max_here_lines=12
322
323ac_prev=
324for ac_option
325do
326
327 # If the previous option needs an argument, assign it.
328 if test -n "$ac_prev"; then
329 eval "$ac_prev=\$ac_option"
330 ac_prev=
331 continue
332 fi
333
334 case "$ac_option" in
335 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
336 *) ac_optarg= ;;
337 esac
338
339 # Accept the important Cygnus configure options, so we can diagnose typos.
340
341 case "$ac_option" in
342
343 -bindir | --bindir | --bindi | --bind | --bin | --bi)
344 ac_prev=bindir ;;
345 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
346 bindir="$ac_optarg" ;;
347
348 -build | --build | --buil | --bui | --bu)
349 ac_prev=build ;;
350 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
351 build="$ac_optarg" ;;
352
353 -cache-file | --cache-file | --cache-fil | --cache-fi \
354 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
355 ac_prev=cache_file ;;
356 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
357 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
358 cache_file="$ac_optarg" ;;
359
360 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
361 ac_prev=datadir ;;
362 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
363 | --da=*)
364 datadir="$ac_optarg" ;;
365
366 -disable-* | --disable-*)
367 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
371 fi
372 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
373 eval "enable_${ac_feature}=no" ;;
374
375 -enable-* | --enable-*)
376 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
380 fi
381 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
382 case "$ac_option" in
383 *=*) ;;
384 *) ac_optarg=yes ;;
385 esac
386 eval "enable_${ac_feature}='$ac_optarg'" ;;
387
388 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
389 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
390 | --exec | --exe | --ex)
391 ac_prev=exec_prefix ;;
392 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
393 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
394 | --exec=* | --exe=* | --ex=*)
395 exec_prefix="$ac_optarg" ;;
396
397 -gas | --gas | --ga | --g)
398 # Obsolete; use --with-gas.
399 with_gas=yes ;;
400
401 -help | --help | --hel | --he)
402 # Omit some internal or obsolete options to make the list less imposing.
403 # This message is too long to be a string in the A/UX 3.1 sh.
404 cat << EOF
405Usage: configure [options] [host]
406Options: [defaults in brackets after descriptions]
407Configuration:
408 --cache-file=FILE cache test results in FILE
409 --help print this message
410 --no-create do not create output files
411 --quiet, --silent do not print \`checking...' messages
412 --version print the version of autoconf that created configure
413Directory and file names:
414 --prefix=PREFIX install architecture-independent files in PREFIX
415 [$ac_default_prefix]
416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
417 [same as prefix]
418 --bindir=DIR user executables in DIR [EPREFIX/bin]
419 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
420 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
421 --datadir=DIR read-only architecture-independent data in DIR
422 [PREFIX/share]
423 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
424 --sharedstatedir=DIR modifiable architecture-independent data in DIR
425 [PREFIX/com]
426 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
427 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
428 --includedir=DIR C header files in DIR [PREFIX/include]
429 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
430 --infodir=DIR info documentation in DIR [PREFIX/info]
431 --mandir=DIR man documentation in DIR [PREFIX/man]
432 --srcdir=DIR find the sources in DIR [configure dir or ..]
433 --program-prefix=PREFIX prepend PREFIX to installed program names
434 --program-suffix=SUFFIX append SUFFIX to installed program names
435 --program-transform-name=PROGRAM
436 run sed PROGRAM on installed program names
437EOF
438 cat << EOF
439Host type:
440 --build=BUILD configure for building on BUILD [BUILD=HOST]
441 --host=HOST configure for HOST [guessed]
442 --target=TARGET configure for TARGET [TARGET=HOST]
443Features and packages:
444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
448 --x-includes=DIR X include files are in DIR
449 --x-libraries=DIR X library files are in DIR
450EOF
451 if test -n "$ac_help"; then
452 echo "--enable and --with options recognized:$ac_help"
453 fi
454 exit 0 ;;
455
456 -host | --host | --hos | --ho)
457 ac_prev=host ;;
458 -host=* | --host=* | --hos=* | --ho=*)
459 host="$ac_optarg" ;;
460
461 -includedir | --includedir | --includedi | --included | --include \
462 | --includ | --inclu | --incl | --inc)
463 ac_prev=includedir ;;
464 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
465 | --includ=* | --inclu=* | --incl=* | --inc=*)
466 includedir="$ac_optarg" ;;
467
468 -infodir | --infodir | --infodi | --infod | --info | --inf)
469 ac_prev=infodir ;;
470 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
471 infodir="$ac_optarg" ;;
472
473 -libdir | --libdir | --libdi | --libd)
474 ac_prev=libdir ;;
475 -libdir=* | --libdir=* | --libdi=* | --libd=*)
476 libdir="$ac_optarg" ;;
477
478 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
479 | --libexe | --libex | --libe)
480 ac_prev=libexecdir ;;
481 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
482 | --libexe=* | --libex=* | --libe=*)
483 libexecdir="$ac_optarg" ;;
484
485 -localstatedir | --localstatedir | --localstatedi | --localstated \
486 | --localstate | --localstat | --localsta | --localst \
487 | --locals | --local | --loca | --loc | --lo)
488 ac_prev=localstatedir ;;
489 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
490 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
491 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
492 localstatedir="$ac_optarg" ;;
493
494 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
495 ac_prev=mandir ;;
496 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
497 mandir="$ac_optarg" ;;
498
499 -nfp | --nfp | --nf)
500 # Obsolete; use --without-fp.
501 with_fp=no ;;
502
503 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
504 | --no-cr | --no-c)
505 no_create=yes ;;
506
507 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
508 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
509 no_recursion=yes ;;
510
511 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
512 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
513 | --oldin | --oldi | --old | --ol | --o)
514 ac_prev=oldincludedir ;;
515 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
516 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
517 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
518 oldincludedir="$ac_optarg" ;;
519
520 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
521 ac_prev=prefix ;;
522 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
523 prefix="$ac_optarg" ;;
524
525 -program-prefix | --program-prefix | --program-prefi | --program-pref \
526 | --program-pre | --program-pr | --program-p)
527 ac_prev=program_prefix ;;
528 -program-prefix=* | --program-prefix=* | --program-prefi=* \
529 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
530 program_prefix="$ac_optarg" ;;
531
532 -program-suffix | --program-suffix | --program-suffi | --program-suff \
533 | --program-suf | --program-su | --program-s)
534 ac_prev=program_suffix ;;
535 -program-suffix=* | --program-suffix=* | --program-suffi=* \
536 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
537 program_suffix="$ac_optarg" ;;
538
539 -program-transform-name | --program-transform-name \
540 | --program-transform-nam | --program-transform-na \
541 | --program-transform-n | --program-transform- \
542 | --program-transform | --program-transfor \
543 | --program-transfo | --program-transf \
544 | --program-trans | --program-tran \
545 | --progr-tra | --program-tr | --program-t)
546 ac_prev=program_transform_name ;;
547 -program-transform-name=* | --program-transform-name=* \
548 | --program-transform-nam=* | --program-transform-na=* \
549 | --program-transform-n=* | --program-transform-=* \
550 | --program-transform=* | --program-transfor=* \
551 | --program-transfo=* | --program-transf=* \
552 | --program-trans=* | --program-tran=* \
553 | --progr-tra=* | --program-tr=* | --program-t=*)
554 program_transform_name="$ac_optarg" ;;
555
556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
557 | -silent | --silent | --silen | --sile | --sil)
558 silent=yes ;;
559
560 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
561 ac_prev=sbindir ;;
562 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
563 | --sbi=* | --sb=*)
564 sbindir="$ac_optarg" ;;
565
566 -sharedstatedir | --sharedstatedir | --sharedstatedi \
567 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
568 | --sharedst | --shareds | --shared | --share | --shar \
569 | --sha | --sh)
570 ac_prev=sharedstatedir ;;
571 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
572 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
573 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
574 | --sha=* | --sh=*)
575 sharedstatedir="$ac_optarg" ;;
576
577 -site | --site | --sit)
578 ac_prev=site ;;
579 -site=* | --site=* | --sit=*)
580 site="$ac_optarg" ;;
581
582 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
583 ac_prev=srcdir ;;
584 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
585 srcdir="$ac_optarg" ;;
586
587 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
588 | --syscon | --sysco | --sysc | --sys | --sy)
589 ac_prev=sysconfdir ;;
590 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
591 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
592 sysconfdir="$ac_optarg" ;;
593
594 -target | --target | --targe | --targ | --tar | --ta | --t)
595 ac_prev=target ;;
596 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
597 target="$ac_optarg" ;;
598
599 -v | -verbose | --verbose | --verbos | --verbo | --verb)
600 verbose=yes ;;
601
602 -version | --version | --versio | --versi | --vers)
00cf1208 603 echo "configure generated by autoconf version 2.14"
10f2d63a
VZ
604 exit 0 ;;
605
606 -with-* | --with-*)
607 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
608 # Reject names that are not valid shell variable names.
609 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
610 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
611 fi
612 ac_package=`echo $ac_package| sed 's/-/_/g'`
613 case "$ac_option" in
614 *=*) ;;
615 *) ac_optarg=yes ;;
616 esac
617 eval "with_${ac_package}='$ac_optarg'" ;;
618
619 -without-* | --without-*)
620 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
621 # Reject names that are not valid shell variable names.
622 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
623 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
624 fi
625 ac_package=`echo $ac_package| sed 's/-/_/g'`
626 eval "with_${ac_package}=no" ;;
627
628 --x)
629 # Obsolete; use --with-x.
630 with_x=yes ;;
631
632 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
633 | --x-incl | --x-inc | --x-in | --x-i)
634 ac_prev=x_includes ;;
635 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
636 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
637 x_includes="$ac_optarg" ;;
638
639 -x-libraries | --x-libraries | --x-librarie | --x-librari \
640 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
641 ac_prev=x_libraries ;;
642 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
643 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
644 x_libraries="$ac_optarg" ;;
645
646 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
647 ;;
648
649 *)
650 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
651 echo "configure: warning: $ac_option: invalid host type" 1>&2
652 fi
653 if test "x$nonopt" != xNONE; then
654 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
655 fi
656 nonopt="$ac_option"
657 ;;
658
659 esac
660done
661
662if test -n "$ac_prev"; then
663 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
664fi
665
666trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
667
668# File descriptor usage:
669# 0 standard input
670# 1 file creation
671# 2 errors and warnings
672# 3 some systems may open it to /dev/tty
673# 4 used on the Kubota Titan
674# 6 checking for... messages and results
675# 5 compiler messages saved in config.log
676if test "$silent" = yes; then
677 exec 6>/dev/null
678else
679 exec 6>&1
680fi
681exec 5>./config.log
682
683echo "\
684This file contains any messages produced by compilers while
685running configure, to aid debugging if configure makes a mistake.
686" 1>&5
687
688# Strip out --no-create and --no-recursion so they do not pile up.
689# Also quote any args containing shell metacharacters.
690ac_configure_args=
691for ac_arg
692do
693 case "$ac_arg" in
694 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
695 | --no-cr | --no-c) ;;
696 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
697 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
698 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
699 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
700 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
701 esac
702done
703
704# NLS nuisances.
705# Only set these to C if already set. These must not be set unconditionally
706# because not all systems understand e.g. LANG=C (notably SCO).
707# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
708# Non-C LC_CTYPE values break the ctype check.
709if test "${LANG+set}" = set; then LANG=C; export LANG; fi
710if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
711if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
712if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
713
714# confdefs.h avoids OS command line length limits that DEFS can exceed.
715rm -rf conftest* confdefs.h
716# AIX cpp loses on an empty file, so make sure it contains at least a newline.
717echo > confdefs.h
718
719# A filename unique to this package, relative to the directory that
720# configure is in, which we can look for to find out if srcdir is correct.
721ac_unique_file=wx-config.in
722
723# Find the source files, if location was not specified.
724if test -z "$srcdir"; then
725 ac_srcdir_defaulted=yes
726 # Try the directory containing this script, then its parent.
727 ac_prog=$0
728 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
729 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
730 srcdir=$ac_confdir
731 if test ! -r $srcdir/$ac_unique_file; then
732 srcdir=..
733 fi
734else
735 ac_srcdir_defaulted=no
736fi
737if test ! -r $srcdir/$ac_unique_file; then
738 if test "$ac_srcdir_defaulted" = yes; then
739 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
740 else
741 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
742 fi
743fi
744srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
745
746# Prefer explicitly selected file to automatically selected ones.
747if test -z "$CONFIG_SITE"; then
748 if test "x$prefix" != xNONE; then
749 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
750 else
751 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
752 fi
753fi
754for ac_site_file in $CONFIG_SITE; do
755 if test -r "$ac_site_file"; then
756 echo "loading site script $ac_site_file"
757 . "$ac_site_file"
758 fi
759done
760
761if test -r "$cache_file"; then
762 echo "loading cache $cache_file"
763 . $cache_file
764else
765 echo "creating cache $cache_file"
766 > $cache_file
767fi
768
769ac_ext=c
770# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
771ac_cpp='$CPP $CPPFLAGS'
772ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
773ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
774cross_compiling=$ac_cv_prog_cc_cross
775
776ac_exeext=
777ac_objext=o
778if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
779 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
780 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
781 ac_n= ac_c='
782' ac_t=' '
783 else
784 ac_n=-n ac_c= ac_t=
785 fi
786else
787 ac_n= ac_c='\c' ac_t=
788fi
789
790
791
7c66a493
VZ
792ac_aux_dir=
793for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
794 if test -f $ac_dir/install-sh; then
795 ac_aux_dir=$ac_dir
796 ac_install_sh="$ac_aux_dir/install-sh -c"
797 break
798 elif test -f $ac_dir/install.sh; then
799 ac_aux_dir=$ac_dir
800 ac_install_sh="$ac_aux_dir/install.sh -c"
801 break
802 fi
803done
804if test -z "$ac_aux_dir"; then
805 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
806fi
807ac_config_guess=$ac_aux_dir/config.guess
808ac_config_sub=$ac_aux_dir/config.sub
809ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
810
811
812# Do some error checking and defaulting for the host and target type.
813# The inputs are:
814# configure --host=HOST --target=TARGET --build=BUILD NONOPT
815#
816# The rules are:
817# 1. You are not allowed to specify --host, --target, and nonopt at the
818# same time.
819# 2. Host defaults to nonopt.
820# 3. If nonopt is not specified, then host defaults to the current host,
821# as determined by config.guess.
822# 4. Target and build default to nonopt.
823# 5. If nonopt is not specified, then target and build default to host.
824
825# The aliases save the names the user supplied, while $host etc.
826# will get canonicalized.
827case $host---$target---$nonopt in
828NONE---*---* | *---NONE---* | *---*---NONE) ;;
829*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
830esac
831
832
833# Make sure we can run config.sub.
834if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
835else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
836fi
837
838echo $ac_n "checking host system type""... $ac_c" 1>&6
00cf1208 839echo "configure:840: checking host system type" >&5
7c66a493
VZ
840
841host_alias=$host
842case "$host_alias" in
843NONE)
844 case $nonopt in
845 NONE)
846 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
847 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
848 fi ;;
849 *) host_alias=$nonopt ;;
850 esac ;;
851esac
852
853host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
854host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
855host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
856host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
857echo "$ac_t""$host" 1>&6
858
859echo $ac_n "checking target system type""... $ac_c" 1>&6
00cf1208 860echo "configure:861: checking target system type" >&5
7c66a493
VZ
861
862target_alias=$target
863case "$target_alias" in
864NONE)
865 case $nonopt in
866 NONE) target_alias=$host_alias ;;
867 *) target_alias=$nonopt ;;
868 esac ;;
869esac
870
871target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
872target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
873target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
874target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
875echo "$ac_t""$target" 1>&6
876
877echo $ac_n "checking build system type""... $ac_c" 1>&6
00cf1208 878echo "configure:879: checking build system type" >&5
7c66a493
VZ
879
880build_alias=$build
881case "$build_alias" in
882NONE)
883 case $nonopt in
884 NONE) build_alias=$host_alias ;;
885 *) build_alias=$nonopt ;;
886 esac ;;
887esac
888
889build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
890build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
891build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
892build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
893echo "$ac_t""$build" 1>&6
894
895test "$host_alias" != "$target_alias" &&
896 test "$program_prefix$program_suffix$program_transform_name" = \
897 NONENONEs,x,x, &&
898 program_prefix=${target_alias}-
899
900
10f2d63a
VZ
901
902WX_MAJOR_VERSION_NUMBER=2
903WX_MINOR_VERSION_NUMBER=1
cc977e5f 904WX_RELEASE_NUMBER=14
10f2d63a
VZ
905
906WX_INTERFACE_AGE=0
907WX_BINARY_AGE=0
908
909WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
910
911WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
912WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
913WX_REVISION=$WX_INTERFACE_AGE
914WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
915
916
917USE_UNIX=1
918USE_WIN32=0
b12915c1
VZ
919USE_BEOS=0
920
10f2d63a
VZ
921USE_LINUX=
922USE_SGI=
923USE_HPUX=
924USE_SYSV=
925USE_SVR4=
926USE_AIX=
927USE_SUN=
928USE_SOLARIS=
929USE_SUNOS=
930USE_ALPHA=
931USE_OSF=
932USE_BSD=
933USE_FREEBSD=
934USE_VMS=
935USE_ULTRIX=
936USE_CYGWIN=
937USE_MINGW=
938USE_DATA_GENERAL=
939
ab9b9eab
VZ
940NEEDS_D_REENTRANT_FOR_R_FUNCS=0
941
e07802fc 942ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
943
944DEFAULT_wxUSE_GTK=0
945DEFAULT_wxUSE_MOTIF=0
946DEFAULT_wxUSE_MSW=0
947DEFAULT_wxUSE_WINE=0
e07802fc 948DEFAULT_wxUSE_PM=0
10f2d63a
VZ
949
950DEFAULT_DEFAULT_wxUSE_GTK=0
951DEFAULT_DEFAULT_wxUSE_MOTIF=0
952DEFAULT_DEFAULT_wxUSE_MSW=0
953DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 954DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a
VZ
955
956case "${host}" in
957 *-hp-hpux* )
958 USE_HPUX=1
959 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 960 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
961 cat >> confdefs.h <<\EOF
962#define __HPUX__ 1
963EOF
964
965 ;;
966 *-*-linux* )
967 USE_LINUX=1
968 cat >> confdefs.h <<\EOF
969#define __LINUX__ 1
970EOF
971
972 TMP=`uname -m`
973 if test "x$TMP" = "xalpha"; then
974 USE_ALPHA=1
975 cat >> confdefs.h <<\EOF
976#define __ALPHA__ 1
977EOF
978
979 fi
980 DEFAULT_DEFAULT_wxUSE_GTK=1
981 ;;
982 *-*-irix5* | *-*-irix6* )
983 USE_SGI=1
984 USE_SVR4=1
985 cat >> confdefs.h <<\EOF
986#define __SGI__ 1
987EOF
988
989 cat >> confdefs.h <<\EOF
990#define __SVR4__ 1
991EOF
992
993 DEFAULT_DEFAULT_wxUSE_MOTIF=1
994 ;;
995 *-*-solaris2* )
996 USE_SUN=1
997 USE_SOLARIS=1
998 USE_SVR4=1
999 cat >> confdefs.h <<\EOF
1000#define __SUN__ 1
1001EOF
1002
1003 cat >> confdefs.h <<\EOF
1004#define __SOLARIS__ 1
1005EOF
1006
1007 cat >> confdefs.h <<\EOF
1008#define __SVR4__ 1
1009EOF
1010
1011 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1012 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1013 ;;
1014 *-*-sunos4* )
1015 USE_SUN=1
1016 USE_SUNOS=1
1017 USE_BSD=1
1018 cat >> confdefs.h <<\EOF
1019#define __SUN__ 1
1020EOF
1021
1022 cat >> confdefs.h <<\EOF
1023#define __SUNOS__ 1
1024EOF
1025
1026 cat >> confdefs.h <<\EOF
1027#define __BSD__ 1
1028EOF
1029
1030 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1031 ;;
1032 *-*-freebsd* | *-*-netbsd*)
1033 USE_BSD=1
1034 USE_FREEBSD=1
1035 cat >> confdefs.h <<\EOF
1036#define __FREEBSD__ 1
1037EOF
1038
1039 cat >> confdefs.h <<\EOF
1040#define __BSD__ 1
1041EOF
1042
1043 DEFAULT_DEFAULT_wxUSE_GTK=1
1044 ;;
1045 *-*-osf* )
1046 USE_ALPHA=1
1047 USE_OSF=1
1048 cat >> confdefs.h <<\EOF
1049#define __ALPHA__ 1
1050EOF
1051
1052 cat >> confdefs.h <<\EOF
1053#define __OSF__ 1
1054EOF
1055
1056 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1057 ;;
1058 *-*-dgux5* )
1059 USE_ALPHA=1
1060 USE_SVR4=1
1061 cat >> confdefs.h <<\EOF
1062#define __ALPHA__ 1
1063EOF
1064
1065 cat >> confdefs.h <<\EOF
1066#define __SVR4__ 1
1067EOF
1068
1069 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1070 ;;
1071 *-*-sysv5* )
1072 USE_SYSV=1
1073 USE_SVR4=1
1074 cat >> confdefs.h <<\EOF
1075#define __SYSV__ 1
1076EOF
1077
1078 cat >> confdefs.h <<\EOF
1079#define __SVR4__ 1
1080EOF
1081
1082 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1083 ;;
1084 *-*-aix* )
1085 USE_AIX=1
1086 USE_SYSV=1
1087 USE_SVR4=1
1088 cat >> confdefs.h <<\EOF
1089#define __AIX__ 1
1090EOF
1091
1092 cat >> confdefs.h <<\EOF
1093#define __SYSV__ 1
1094EOF
1095
1096 cat >> confdefs.h <<\EOF
1097#define __SVR4__ 1
1098EOF
1099
1100 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1101 ;;
1102
7eef8db2 1103 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1104 USE_UNIX=0
1105 USE_WIN32=1
1106 cat >> confdefs.h <<\EOF
1107#define __WIN32__ 1
1108EOF
1109
1110 cat >> confdefs.h <<\EOF
1111#define __WIN95__ 1
1112EOF
1113
1114 cat >> confdefs.h <<\EOF
1115#define __WINDOWS__ 1
1116EOF
1117
1118 cat >> confdefs.h <<\EOF
1119#define __GNUWIN32__ 1
1120EOF
1121
1122 cat >> confdefs.h <<\EOF
1123#define STRICT 1
1124EOF
1125
1126 cat >> confdefs.h <<\EOF
1127#define WINVER 0x0400
1128EOF
1129
cf27ef00 1130 PROGRAM_EXT=".exe"
10f2d63a
VZ
1131 DEFAULT_DEFAULT_wxUSE_MSW=1
1132 ;;
1133
1134 *-pc-os2_emx )
1135 cat >> confdefs.h <<\EOF
1136#define __EMX__ 1
1137EOF
1138
cf27ef00 1139 PROGRAM_EXT=".exe"
e07802fc 1140 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1141 ;;
1142
b12915c1
VZ
1143 *-*-beos* )
1144 USE_BEOS=1
1145 cat >> confdefs.h <<\EOF
1146#define __BEOS__ 1
1147EOF
1148
1149 ;;
1150
10f2d63a
VZ
1151 *)
1152 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1153esac
1154
1155if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1156 wxUSE_UNIX=yes
1157 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1158#define __UNIX__ 1
1159EOF
1160
b12915c1
VZ
1161
1162 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1163 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1164fi
1165
1166if test "$USE_BEOS" = 1; then
1167 SRC_SUBDIRS="$SRC_SUBDIRS be"
1168 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1169fi
1170
1171if test "$USE_LINUX" = 1; then
1172 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
00cf1208 1173echo "configure:1174: checking for gettext in -lc" >&5
10f2d63a
VZ
1174ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1175if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1177else
1178 ac_save_LIBS="$LIBS"
1179LIBS="-lc $LIBS"
1180cat > conftest.$ac_ext <<EOF
00cf1208 1181#line 1182 "configure"
10f2d63a
VZ
1182#include "confdefs.h"
1183/* Override any gcc2 internal prototype to avoid an error. */
1184/* We use char because int might match the return type of a gcc2
1185 builtin and then its argument prototype would still apply. */
1186char gettext();
1187
1188int main() {
1189gettext()
1190; return 0; }
1191EOF
00cf1208 1192if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1193 rm -rf conftest*
1194 eval "ac_cv_lib_$ac_lib_var=yes"
1195else
1196 echo "configure: failed program was:" >&5
1197 cat conftest.$ac_ext >&5
1198 rm -rf conftest*
1199 eval "ac_cv_lib_$ac_lib_var=no"
1200fi
1201rm -f conftest*
1202LIBS="$ac_save_LIBS"
1203
1204fi
1205if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1206 echo "$ac_t""yes" 1>&6
1207 cat >> confdefs.h <<\EOF
1208#define wxHAVE_GLIBC2 1
1209EOF
1210
1211else
1212 echo "$ac_t""no" 1>&6
1213fi
1214
1215fi
1216
1217
1218
1219
1220 wx_arg_cache_file="configarg.cache"
1221 echo "loading argument cache $wx_arg_cache_file"
1222 rm -f ${wx_arg_cache_file}.tmp
1223 touch ${wx_arg_cache_file}.tmp
1224 touch ${wx_arg_cache_file}
1225
1226
1227DEBUG_CONFIGURE=0
1228if test $DEBUG_CONFIGURE = 1; then
1229 DEFAULT_wxUSE_THREADS=yes
1230
1231 DEFAULT_wxUSE_SHARED=yes
00cf1208 1232 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1233 DEFAULT_wxUSE_OPTIMISE=yes
1234 DEFAULT_wxUSE_PROFILE=no
1235 DEFAULT_wxUSE_NO_DEPS=no
1236 DEFAULT_wxUSE_NO_RTTI=no
1237 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1238 DEFAULT_wxUSE_PERMISSIVE=no
1239 DEFAULT_wxUSE_DEBUG_FLAG=yes
1240 DEFAULT_wxUSE_DEBUG_INFO=yes
1241 DEFAULT_wxUSE_DEBUG_GDB=yes
1242 DEFAULT_wxUSE_MEM_TRACING=no
1243 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1244 DEFAULT_wxUSE_DMALLOC=no
1245 DEFAULT_wxUSE_APPLE_IEEE=no
1246
1247 DEFAULT_wxUSE_LOG=yes
1248
1249 DEFAULT_wxUSE_GUI=yes
1250
1251 DEFAULT_wxUSE_ZLIB=no
1252 DEFAULT_wxUSE_LIBPNG=no
1253 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1254 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a
VZ
1255 DEFAULT_wxUSE_ODBC=no
1256
1257 DEFAULT_wxUSE_STD_IOSTREAM=no
1258 DEFAULT_wxUSE_FILE=no
1259 DEFAULT_wxUSE_TEXTFILE=no
1260 DEFAULT_wxUSE_TIMEDATE=no
1261 DEFAULT_wxUSE_WAVE=no
1262 DEFAULT_wxUSE_INTL=no
1263 DEFAULT_wxUSE_CONFIG=no
1264 DEFAULT_wxUSE_STREAMS=no
1265 DEFAULT_wxUSE_SOCKETS=no
1266 DEFAULT_wxUSE_DIALUP_MANAGER=no
1267 DEFAULT_wxUSE_SERIAL=no
1268 DEFAULT_wxUSE_JOYSTICK=no
1269 DEFAULT_wxUSE_DYNLIB_CLASS=no
1270 DEFAULT_wxUSE_LONGLONG=no
1271
1272 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1273 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1274 DEFAULT_wxUSE_POSTSCRIPT=no
1275
1276 DEFAULT_wxUSE_X_RESOURCES=no
1277 DEFAULT_wxUSE_CLIPBOARD=no
1278 DEFAULT_wxUSE_TOOLTIPS=no
1279 DEFAULT_wxUSE_DRAG_AND_DROP=no
1280 DEFAULT_wxUSE_SPLINES=no
1281
1282 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1283 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1284 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1285
1286 DEFAULT_wxUSE_PROLOGIO=no
1287 DEFAULT_wxUSE_RESOURCES=no
1288 DEFAULT_wxUSE_CONSTRAINTS=no
1289 DEFAULT_wxUSE_IPC=no
1290 DEFAULT_wxUSE_HELP=no
1291 DEFAULT_wxUSE_WXTREE=no
1292 DEFAULT_wxUSE_METAFILE=no
1293
1294 DEFAULT_wxUSE_COMMONDLGS=no
1295 DEFAULT_wxUSE_DIRDLG=no
1296 DEFAULT_wxUSE_TEXTDLG=no
1297 DEFAULT_wxUSE_STARTUP_TIPS=no
1298 DEFAULT_wxUSE_PROGRESSDLG=no
1299 DEFAULT_wxUSE_MINIFRAME=no
1300 DEFAULT_wxUSE_HTML=no
1301 DEFAULT_wxUSE_FS_INET=no
1302 DEFAULT_wxUSE_FS_ZIP=no
1303 DEFAULT_wxUSE_BUSYINFO=no
1304 DEFAULT_wxUSE_ZIPSTREAM=no
1305 DEFAULT_wxUSE_VALIDATORS=yes
1306
1307 DEFAULT_wxUSE_ACCEL=no
1308 DEFAULT_wxUSE_CARET=no
1309 DEFAULT_wxUSE_BMPBUTTON=no
1310 DEFAULT_wxUSE_CHECKBOX=no
1311 DEFAULT_wxUSE_CHECKLST=no
1312 DEFAULT_wxUSE_CHOICE=yes
1313 DEFAULT_wxUSE_COMBOBOX=no
1314 DEFAULT_wxUSE_GAUGE=no
1315 DEFAULT_wxUSE_GRID=no
1316 DEFAULT_wxUSE_NEW_GRID=no
1317 DEFAULT_wxUSE_IMAGLIST=no
1318 DEFAULT_wxUSE_LISTBOX=no
1319 DEFAULT_wxUSE_LISTCTRL=no
1320 DEFAULT_wxUSE_NOTEBOOK=no
9b33fe02 1321 DEFAULT_wxUSE_PLOT=no
10f2d63a
VZ
1322 DEFAULT_wxUSE_RADIOBOX=no
1323 DEFAULT_wxUSE_RADIOBTN=no
1324 DEFAULT_wxUSE_SASH=no
1325 DEFAULT_wxUSE_SCROLLBAR=no
1326 DEFAULT_wxUSE_SLIDER=no
1327 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1328 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1329 DEFAULT_wxUSE_SPLITTER=no
1330 DEFAULT_wxUSE_STATBMP=no
1331 DEFAULT_wxUSE_STATBOX=no
1332 DEFAULT_wxUSE_STATLINE=no
1333 DEFAULT_wxUSE_STATUSBAR=yes
1334 DEFAULT_wxUSE_TABDIALOG=no
1335 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1336 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1337 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1338 DEFAULT_wxUSE_TREECTRL=no
1339
1340 DEFAULT_wxUSE_UNICODE=no
1341 DEFAULT_wxUSE_WCSRTOMBS=no
1342
1343 DEFAULT_wxUSE_GIF=no
1344 DEFAULT_wxUSE_PCX=no
1345 DEFAULT_wxUSE_PNM=no
1346else
1347 DEFAULT_wxUSE_THREADS=yes
1348
1349 DEFAULT_wxUSE_SHARED=yes
00cf1208 1350 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1351 DEFAULT_wxUSE_OPTIMISE=yes
1352 DEFAULT_wxUSE_PROFILE=no
1353 DEFAULT_wxUSE_NO_DEPS=no
1354 DEFAULT_wxUSE_NO_RTTI=no
1355 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1356 DEFAULT_wxUSE_PERMISSIVE=no
1357 DEFAULT_wxUSE_DEBUG_FLAG=no
1358 DEFAULT_wxUSE_DEBUG_INFO=no
1359 DEFAULT_wxUSE_DEBUG_GDB=no
1360 DEFAULT_wxUSE_MEM_TRACING=no
1361 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1362 DEFAULT_wxUSE_DMALLOC=no
1363 DEFAULT_wxUSE_APPLE_IEEE=yes
1364
1365 DEFAULT_wxUSE_LOG=yes
1366
1367 DEFAULT_wxUSE_GUI=yes
1368
1369 DEFAULT_wxUSE_ZLIB=yes
1370 DEFAULT_wxUSE_LIBPNG=yes
1371 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1372 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1373 DEFAULT_wxUSE_ODBC=no
10f2d63a
VZ
1374
1375 DEFAULT_wxUSE_STD_IOSTREAM=no
1376 DEFAULT_wxUSE_FILE=yes
1377 DEFAULT_wxUSE_TEXTFILE=yes
1378 DEFAULT_wxUSE_TIMEDATE=yes
1379 DEFAULT_wxUSE_WAVE=no
1380 DEFAULT_wxUSE_INTL=yes
1381 DEFAULT_wxUSE_CONFIG=yes
1382 DEFAULT_wxUSE_STREAMS=yes
1383 DEFAULT_wxUSE_SOCKETS=yes
1384 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1385 DEFAULT_wxUSE_SERIAL=yes
1386 DEFAULT_wxUSE_JOYSTICK=yes
1387 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1388 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1389
1390 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1391 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1392 DEFAULT_wxUSE_POSTSCRIPT=yes
1393
1394 DEFAULT_wxUSE_X_RESOURCES=no
1395 DEFAULT_wxUSE_CLIPBOARD=yes
1396 DEFAULT_wxUSE_TOOLTIPS=yes
1397 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1398 DEFAULT_wxUSE_SPLINES=yes
1399
1400 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1401 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1402 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1403
1404 DEFAULT_wxUSE_PROLOGIO=yes
1405 DEFAULT_wxUSE_RESOURCES=yes
1406 DEFAULT_wxUSE_CONSTRAINTS=yes
1407 DEFAULT_wxUSE_IPC=yes
1408 DEFAULT_wxUSE_HELP=yes
1409 DEFAULT_wxUSE_WXTREE=yes
1410 DEFAULT_wxUSE_METAFILE=yes
1411
1412 DEFAULT_wxUSE_COMMONDLGS=yes
1413 DEFAULT_wxUSE_DIRDLG=yes
1414 DEFAULT_wxUSE_TEXTDLG=yes
1415 DEFAULT_wxUSE_STARTUP_TIPS=yes
1416 DEFAULT_wxUSE_PROGRESSDLG=yes
1417 DEFAULT_wxUSE_MINIFRAME=yes
1418 DEFAULT_wxUSE_HTML=yes
1419 DEFAULT_wxUSE_FS_INET=yes
1420 DEFAULT_wxUSE_FS_ZIP=yes
1421 DEFAULT_wxUSE_BUSYINFO=yes
1422 DEFAULT_wxUSE_ZIPSTREAM=yes
1423 DEFAULT_wxUSE_VALIDATORS=yes
1424
1425 DEFAULT_wxUSE_ACCEL=yes
1426 DEFAULT_wxUSE_CARET=yes
1427 DEFAULT_wxUSE_BMPBUTTON=yes
1428 DEFAULT_wxUSE_CHECKBOX=yes
1429 DEFAULT_wxUSE_CHECKLST=yes
1430 DEFAULT_wxUSE_CHOICE=yes
1431 DEFAULT_wxUSE_COMBOBOX=yes
1432 DEFAULT_wxUSE_GAUGE=yes
1433 DEFAULT_wxUSE_GRID=yes
cc977e5f 1434 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1435 DEFAULT_wxUSE_IMAGLIST=yes
1436 DEFAULT_wxUSE_LISTBOX=yes
1437 DEFAULT_wxUSE_LISTCTRL=yes
1438 DEFAULT_wxUSE_NOTEBOOK=yes
9b33fe02 1439 DEFAULT_wxUSE_PLOT=yes
10f2d63a
VZ
1440 DEFAULT_wxUSE_RADIOBOX=yes
1441 DEFAULT_wxUSE_RADIOBTN=yes
1442 DEFAULT_wxUSE_SASH=yes
1443 DEFAULT_wxUSE_SCROLLBAR=yes
1444 DEFAULT_wxUSE_SLIDER=yes
1445 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1446 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1447 DEFAULT_wxUSE_SPLITTER=yes
1448 DEFAULT_wxUSE_STATBMP=yes
1449 DEFAULT_wxUSE_STATBOX=yes
1450 DEFAULT_wxUSE_STATLINE=yes
1451 DEFAULT_wxUSE_STATUSBAR=yes
1452 DEFAULT_wxUSE_TABDIALOG=no
1453 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1454 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1455 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1456 DEFAULT_wxUSE_TREECTRL=yes
1457
1458 DEFAULT_wxUSE_UNICODE=no
1459 DEFAULT_wxUSE_WCSRTOMBS=no
1460
1461 DEFAULT_wxUSE_GIF=yes
1462 DEFAULT_wxUSE_PCX=yes
1463 DEFAULT_wxUSE_PNM=yes
1464fi
1465
1466
1467
1468for toolkit in `echo $ALL_TOOLKITS`; do
1469 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1470 if test "x$LINE" != x ; then
1471 has_toolkit_in_cache=1
1472 eval "DEFAULT_$LINE"
1473 eval "CACHE_$toolkit=1"
1474 fi
1475done
1476
1477
1478
1479 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
00cf1208 1480echo "configure:1481: checking "for --enable-gui"" >&5
10f2d63a
VZ
1481 no_cache=0
1482 # Check whether --enable-gui or --disable-gui was given.
1483if test "${enable_gui+set}" = set; then
1484 enableval="$enable_gui"
1485
1486 if test "$enableval" = yes; then
1487 ac_cv_use_gui='wxUSE_GUI=yes'
1488 else
1489 ac_cv_use_gui='wxUSE_GUI=no'
1490 fi
1491
1492else
1493
1494 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1495 if test "x$LINE" != x ; then
1496 eval "DEFAULT_$LINE"
1497 else
1498 no_cache=1
1499 fi
1500
1501 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1502
1503fi
1504
1505
1506 eval "$ac_cv_use_gui"
1507 if test "$no_cache" != 1; then
1508 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1509 fi
1510
1511 if test "$wxUSE_GUI" = yes; then
1512 echo "$ac_t""yes" 1>&6
1513 else
1514 echo "$ac_t""no" 1>&6
1515 fi
1516
1517
b12915c1 1518if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1519
1520# Check whether --with-gtk or --without-gtk was given.
1521if test "${with_gtk+set}" = set; then
1522 withval="$with_gtk"
1523 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1524fi
1525
1526# Check whether --with-motif or --without-motif was given.
1527if test "${with_motif+set}" = set; then
1528 withval="$with_motif"
1529 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1530fi
1531
1532# Check whether --with-wine or --without-wine was given.
1533if test "${with_wine+set}" = set; then
1534 withval="$with_wine"
1535 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1536fi
1537
1538# Check whether --with-cygwin or --without-cygwin was given.
1539if test "${with_cygwin+set}" = set; then
1540 withval="$with_cygwin"
1541 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1542fi
1543
1544# Check whether --with-mingw or --without-mingw was given.
1545if test "${with_mingw+set}" = set; then
1546 withval="$with_mingw"
1547 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1548fi
1549
e07802fc
VZ
1550# Check whether --with-pm or --without-pm was given.
1551if test "${with_pm+set}" = set; then
1552 withval="$with_pm"
1553 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1554fi
1555
10f2d63a
VZ
1556
1557# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1558if test "${with_gtk_prefix+set}" = set; then
1559 withval="$with_gtk_prefix"
1560 gtk_config_prefix="$withval"
1561else
1562 gtk_config_prefix=""
1563fi
1564
1565# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1566if test "${with_gtk_exec_prefix+set}" = set; then
1567 withval="$with_gtk_exec_prefix"
1568 gtk_config_exec_prefix="$withval"
1569else
1570 gtk_config_exec_prefix=""
1571fi
1572
1573
1574
b12915c1 1575 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
00cf1208 1576echo "configure:1577: checking "for --with-libpng"" >&5
10f2d63a 1577 no_cache=0
b12915c1
VZ
1578 # Check whether --with-libpng or --without-libpng was given.
1579if test "${with_libpng+set}" = set; then
1580 withval="$with_libpng"
10f2d63a
VZ
1581
1582 if test "$withval" = yes; then
b12915c1 1583 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
10f2d63a 1584 else
b12915c1 1585 ac_cv_use_libpng='wxUSE_LIBPNG=no'
10f2d63a
VZ
1586 fi
1587
1588else
1589
b12915c1 1590 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1591 if test "x$LINE" != x ; then
1592 eval "DEFAULT_$LINE"
1593 else
1594 no_cache=1
1595 fi
1596
b12915c1 1597 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1598
1599fi
1600
1601
b12915c1 1602 eval "$ac_cv_use_libpng"
10f2d63a 1603 if test "$no_cache" != 1; then
b12915c1 1604 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1605 fi
1606
b12915c1 1607 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a
VZ
1608 echo "$ac_t""yes" 1>&6
1609 else
1610 echo "$ac_t""no" 1>&6
1611 fi
1612
1613
b12915c1 1614 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
00cf1208 1615echo "configure:1616: checking "for --with-libjpeg"" >&5
10f2d63a 1616 no_cache=0
b12915c1
VZ
1617 # Check whether --with-libjpeg or --without-libjpeg was given.
1618if test "${with_libjpeg+set}" = set; then
1619 withval="$with_libjpeg"
10f2d63a
VZ
1620
1621 if test "$withval" = yes; then
b12915c1 1622 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
10f2d63a 1623 else
b12915c1 1624 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
10f2d63a
VZ
1625 fi
1626
1627else
1628
b12915c1 1629 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1630 if test "x$LINE" != x ; then
1631 eval "DEFAULT_$LINE"
1632 else
1633 no_cache=1
1634 fi
1635
b12915c1 1636 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1637
1638fi
1639
1640
b12915c1 1641 eval "$ac_cv_use_libjpeg"
10f2d63a 1642 if test "$no_cache" != 1; then
b12915c1 1643 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1644 fi
1645
b12915c1 1646 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a
VZ
1647 echo "$ac_t""yes" 1>&6
1648 else
1649 echo "$ac_t""no" 1>&6
1650 fi
1651
1652
b12915c1 1653 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
00cf1208 1654echo "configure:1655: checking "for --with-libtiff"" >&5
10f2d63a 1655 no_cache=0
b12915c1
VZ
1656 # Check whether --with-libtiff or --without-libtiff was given.
1657if test "${with_libtiff+set}" = set; then
1658 withval="$with_libtiff"
10f2d63a
VZ
1659
1660 if test "$withval" = yes; then
b12915c1 1661 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
10f2d63a 1662 else
b12915c1 1663 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
10f2d63a
VZ
1664 fi
1665
1666else
1667
b12915c1 1668 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1669 if test "x$LINE" != x ; then
1670 eval "DEFAULT_$LINE"
1671 else
1672 no_cache=1
1673 fi
1674
b12915c1 1675 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1676
1677fi
1678
1679
b12915c1 1680 eval "$ac_cv_use_libtiff"
10f2d63a 1681 if test "$no_cache" != 1; then
b12915c1 1682 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1683 fi
1684
b12915c1 1685 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a
VZ
1686 echo "$ac_t""yes" 1>&6
1687 else
1688 echo "$ac_t""no" 1>&6
1689 fi
1690
1691
b12915c1 1692 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
00cf1208 1693echo "configure:1694: checking "for --with-opengl"" >&5
10f2d63a 1694 no_cache=0
b12915c1
VZ
1695 # Check whether --with-opengl or --without-opengl was given.
1696if test "${with_opengl+set}" = set; then
1697 withval="$with_opengl"
10f2d63a
VZ
1698
1699 if test "$withval" = yes; then
b12915c1 1700 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1701 else
b12915c1 1702 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1703 fi
1704
1705else
1706
b12915c1 1707 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1708 if test "x$LINE" != x ; then
1709 eval "DEFAULT_$LINE"
1710 else
1711 no_cache=1
1712 fi
1713
b12915c1 1714 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1715
1716fi
1717
1718
b12915c1 1719 eval "$ac_cv_use_opengl"
10f2d63a 1720 if test "$no_cache" != 1; then
b12915c1 1721 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1722 fi
1723
b12915c1 1724 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1725 echo "$ac_t""yes" 1>&6
1726 else
1727 echo "$ac_t""no" 1>&6
1728 fi
1729
1730
b12915c1
VZ
1731fi
1732
1733
1734 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
00cf1208 1735echo "configure:1736: checking "for --with-dmalloc"" >&5
c7a2bf27 1736 no_cache=0
b12915c1
VZ
1737 # Check whether --with-dmalloc or --without-dmalloc was given.
1738if test "${with_dmalloc+set}" = set; then
1739 withval="$with_dmalloc"
c7a2bf27
RR
1740
1741 if test "$withval" = yes; then
b12915c1 1742 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1743 else
b12915c1 1744 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1745 fi
1746
1747else
1748
b12915c1 1749 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1750 if test "x$LINE" != x ; then
1751 eval "DEFAULT_$LINE"
1752 else
1753 no_cache=1
1754 fi
1755
b12915c1 1756 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1757
1758fi
1759
1760
b12915c1 1761 eval "$ac_cv_use_dmalloc"
c7a2bf27 1762 if test "$no_cache" != 1; then
b12915c1 1763 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1764 fi
1765
b12915c1 1766 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1767 echo "$ac_t""yes" 1>&6
1768 else
1769 echo "$ac_t""no" 1>&6
1770 fi
1771
1772
b12915c1 1773 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
00cf1208 1774echo "configure:1775: checking "for --with-zlib"" >&5
10f2d63a 1775 no_cache=0
b12915c1
VZ
1776 # Check whether --with-zlib or --without-zlib was given.
1777if test "${with_zlib+set}" = set; then
1778 withval="$with_zlib"
10f2d63a
VZ
1779
1780 if test "$withval" = yes; then
b12915c1 1781 ac_cv_use_zlib='wxUSE_ZLIB=yes'
10f2d63a 1782 else
b12915c1 1783 ac_cv_use_zlib='wxUSE_ZLIB=no'
10f2d63a
VZ
1784 fi
1785
1786else
1787
b12915c1 1788 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1789 if test "x$LINE" != x ; then
1790 eval "DEFAULT_$LINE"
1791 else
1792 no_cache=1
1793 fi
1794
b12915c1 1795 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1796
1797fi
1798
1799
b12915c1 1800 eval "$ac_cv_use_zlib"
10f2d63a 1801 if test "$no_cache" != 1; then
b12915c1 1802 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1803 fi
1804
b12915c1 1805 if test "$wxUSE_ZLIB" = yes; then
10f2d63a
VZ
1806 echo "$ac_t""yes" 1>&6
1807 else
1808 echo "$ac_t""no" 1>&6
1809 fi
1810
1811
1812 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
00cf1208 1813echo "configure:1814: checking "for --with-odbc"" >&5
10f2d63a
VZ
1814 no_cache=0
1815 # Check whether --with-odbc or --without-odbc was given.
1816if test "${with_odbc+set}" = set; then
1817 withval="$with_odbc"
1818
1819 if test "$withval" = yes; then
1820 ac_cv_use_odbc='wxUSE_ODBC=yes'
1821 else
1822 ac_cv_use_odbc='wxUSE_ODBC=no'
1823 fi
1824
1825else
1826
1827 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1828 if test "x$LINE" != x ; then
1829 eval "DEFAULT_$LINE"
1830 else
1831 no_cache=1
1832 fi
1833
1834 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1835
1836fi
1837
1838
1839 eval "$ac_cv_use_odbc"
1840 if test "$no_cache" != 1; then
1841 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1842 fi
1843
1844 if test "$wxUSE_ODBC" = yes; then
1845 echo "$ac_t""yes" 1>&6
1846 else
1847 echo "$ac_t""no" 1>&6
1848 fi
1849
1850
1851
1852
1853
1854 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
00cf1208 1855echo "configure:1856: checking "for --enable-shared"" >&5
10f2d63a
VZ
1856 no_cache=0
1857 # Check whether --enable-shared or --disable-shared was given.
1858if test "${enable_shared+set}" = set; then
1859 enableval="$enable_shared"
1860
1861 if test "$enableval" = yes; then
1862 ac_cv_use_shared='wxUSE_SHARED=yes'
1863 else
1864 ac_cv_use_shared='wxUSE_SHARED=no'
1865 fi
1866
1867else
1868
1869 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1870 if test "x$LINE" != x ; then
1871 eval "DEFAULT_$LINE"
1872 else
1873 no_cache=1
1874 fi
1875
1876 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1877
1878fi
1879
1880
1881 eval "$ac_cv_use_shared"
1882 if test "$no_cache" != 1; then
1883 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1884 fi
1885
1886 if test "$wxUSE_SHARED" = yes; then
1887 echo "$ac_t""yes" 1>&6
1888 else
1889 echo "$ac_t""no" 1>&6
1890 fi
1891
1892
00cf1208
RR
1893 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
1894echo "configure:1895: checking "for --enable-burnt_name"" >&5
1895 no_cache=0
1896 # Check whether --enable-burnt_name or --disable-burnt_name was given.
1897if test "${enable_burnt_name+set}" = set; then
1898 enableval="$enable_burnt_name"
1899
1900 if test "$enableval" = yes; then
1901 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
1902 else
1903 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
1904 fi
1905
1906else
1907
1908 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
1909 if test "x$LINE" != x ; then
1910 eval "DEFAULT_$LINE"
1911 else
1912 no_cache=1
1913 fi
1914
1915 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
1916
1917fi
1918
1919
1920 eval "$ac_cv_use_burnt_name"
1921 if test "$no_cache" != 1; then
1922 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
1923 fi
1924
1925 if test "$wxUSE_BURNT_NAME" = yes; then
1926 echo "$ac_t""yes" 1>&6
1927 else
1928 echo "$ac_t""no" 1>&6
1929 fi
1930
1931
10f2d63a 1932 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
00cf1208 1933echo "configure:1934: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1934 no_cache=0
1935 # Check whether --enable-optimise or --disable-optimise was given.
1936if test "${enable_optimise+set}" = set; then
1937 enableval="$enable_optimise"
1938
1939 if test "$enableval" = yes; then
1940 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1941 else
1942 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1943 fi
1944
1945else
1946
1947 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1948 if test "x$LINE" != x ; then
1949 eval "DEFAULT_$LINE"
1950 else
1951 no_cache=1
1952 fi
1953
1954 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1955
1956fi
1957
1958
1959 eval "$ac_cv_use_optimise"
1960 if test "$no_cache" != 1; then
1961 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1962 fi
1963
1964 if test "$wxUSE_OPTIMISE" = yes; then
1965 echo "$ac_t""yes" 1>&6
1966 else
1967 echo "$ac_t""no" 1>&6
1968 fi
1969
1970
1971 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
00cf1208 1972echo "configure:1973: checking "for --enable-debug"" >&5
10f2d63a
VZ
1973 no_cache=0
1974 # Check whether --enable-debug or --disable-debug was given.
1975if test "${enable_debug+set}" = set; then
1976 enableval="$enable_debug"
1977
1978 if test "$enableval" = yes; then
1979 ac_cv_use_debug='wxUSE_DEBUG=yes'
1980 else
1981 ac_cv_use_debug='wxUSE_DEBUG=no'
1982 fi
1983
1984else
1985
1986 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1987 if test "x$LINE" != x ; then
1988 eval "DEFAULT_$LINE"
1989 else
1990 no_cache=1
1991 fi
1992
1993 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1994
1995fi
1996
1997
1998 eval "$ac_cv_use_debug"
1999 if test "$no_cache" != 1; then
2000 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2001 fi
2002
2003 if test "$wxUSE_DEBUG" = yes; then
2004 echo "$ac_t""yes" 1>&6
2005 else
2006 echo "$ac_t""no" 1>&6
2007 fi
2008
2009
2010if test "$wxUSE_DEBUG" = "yes"; then
2011 DEFAULT_wxUSE_DEBUG_FLAG=yes
2012 DEFAULT_wxUSE_DEBUG_INFO=yes
2013elif test "$wxUSE_DEBUG" = "no"; then
2014 DEFAULT_wxUSE_DEBUG_FLAG=no
2015 DEFAULT_wxUSE_DEBUG_INFO=no
2016fi
2017
2018
2019 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
00cf1208 2020echo "configure:2021: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2021 no_cache=0
2022 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2023if test "${enable_debug_flag+set}" = set; then
2024 enableval="$enable_debug_flag"
2025
2026 if test "$enableval" = yes; then
2027 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2028 else
2029 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2030 fi
2031
2032else
2033
2034 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2035 if test "x$LINE" != x ; then
2036 eval "DEFAULT_$LINE"
2037 else
2038 no_cache=1
2039 fi
2040
2041 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2042
2043fi
2044
2045
2046 eval "$ac_cv_use_debug_flag"
2047 if test "$no_cache" != 1; then
2048 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2049 fi
2050
2051 if test "$wxUSE_DEBUG_FLAG" = yes; then
2052 echo "$ac_t""yes" 1>&6
2053 else
2054 echo "$ac_t""no" 1>&6
2055 fi
2056
2057
2058 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
00cf1208 2059echo "configure:2060: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2060 no_cache=0
2061 # Check whether --enable-debug_info or --disable-debug_info was given.
2062if test "${enable_debug_info+set}" = set; then
2063 enableval="$enable_debug_info"
2064
2065 if test "$enableval" = yes; then
2066 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2067 else
2068 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2069 fi
2070
2071else
2072
2073 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2074 if test "x$LINE" != x ; then
2075 eval "DEFAULT_$LINE"
2076 else
2077 no_cache=1
2078 fi
2079
2080 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2081
2082fi
2083
2084
2085 eval "$ac_cv_use_debug_info"
2086 if test "$no_cache" != 1; then
2087 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2088 fi
2089
2090 if test "$wxUSE_DEBUG_INFO" = yes; then
2091 echo "$ac_t""yes" 1>&6
2092 else
2093 echo "$ac_t""no" 1>&6
2094 fi
2095
2096
2097 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
00cf1208 2098echo "configure:2099: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2099 no_cache=0
2100 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2101if test "${enable_debug_gdb+set}" = set; then
2102 enableval="$enable_debug_gdb"
2103
2104 if test "$enableval" = yes; then
2105 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2106 else
2107 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2108 fi
2109
2110else
2111
2112 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2113 if test "x$LINE" != x ; then
2114 eval "DEFAULT_$LINE"
2115 else
2116 no_cache=1
2117 fi
2118
2119 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2120
2121fi
2122
2123
2124 eval "$ac_cv_use_debug_gdb"
2125 if test "$no_cache" != 1; then
2126 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2127 fi
2128
2129 if test "$wxUSE_DEBUG_GDB" = yes; then
2130 echo "$ac_t""yes" 1>&6
2131 else
2132 echo "$ac_t""no" 1>&6
2133 fi
2134
2135
2136 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
00cf1208 2137echo "configure:2138: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2138 no_cache=0
2139 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2140if test "${enable_debug_cntxt+set}" = set; then
2141 enableval="$enable_debug_cntxt"
2142
2143 if test "$enableval" = yes; then
2144 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2145 else
2146 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2147 fi
2148
2149else
2150
2151 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2152 if test "x$LINE" != x ; then
2153 eval "DEFAULT_$LINE"
2154 else
2155 no_cache=1
2156 fi
2157
2158 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2159
2160fi
2161
2162
2163 eval "$ac_cv_use_debug_cntxt"
2164 if test "$no_cache" != 1; then
2165 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2166 fi
2167
2168 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2169 echo "$ac_t""yes" 1>&6
2170 else
2171 echo "$ac_t""no" 1>&6
2172 fi
2173
2174
2175 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
00cf1208 2176echo "configure:2177: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2177 no_cache=0
2178 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2179if test "${enable_mem_tracing+set}" = set; then
2180 enableval="$enable_mem_tracing"
2181
2182 if test "$enableval" = yes; then
2183 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2184 else
2185 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2186 fi
2187
2188else
2189
2190 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2191 if test "x$LINE" != x ; then
2192 eval "DEFAULT_$LINE"
2193 else
2194 no_cache=1
2195 fi
2196
2197 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2198
2199fi
2200
2201
2202 eval "$ac_cv_use_mem_tracing"
2203 if test "$no_cache" != 1; then
2204 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2205 fi
2206
2207 if test "$wxUSE_MEM_TRACING" = yes; then
2208 echo "$ac_t""yes" 1>&6
2209 else
2210 echo "$ac_t""no" 1>&6
2211 fi
2212
2213
2214 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
00cf1208 2215echo "configure:2216: checking "for --enable-profile"" >&5
10f2d63a
VZ
2216 no_cache=0
2217 # Check whether --enable-profile or --disable-profile was given.
2218if test "${enable_profile+set}" = set; then
2219 enableval="$enable_profile"
2220
2221 if test "$enableval" = yes; then
2222 ac_cv_use_profile='wxUSE_PROFILE=yes'
2223 else
2224 ac_cv_use_profile='wxUSE_PROFILE=no'
2225 fi
2226
2227else
2228
2229 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2230 if test "x$LINE" != x ; then
2231 eval "DEFAULT_$LINE"
2232 else
2233 no_cache=1
2234 fi
2235
2236 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2237
2238fi
2239
2240
2241 eval "$ac_cv_use_profile"
2242 if test "$no_cache" != 1; then
2243 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2244 fi
2245
2246 if test "$wxUSE_PROFILE" = yes; then
2247 echo "$ac_t""yes" 1>&6
2248 else
2249 echo "$ac_t""no" 1>&6
2250 fi
2251
2252
2253 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
00cf1208 2254echo "configure:2255: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2255 no_cache=0
2256 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2257if test "${enable_no_rtti+set}" = set; then
2258 enableval="$enable_no_rtti"
2259
2260 if test "$enableval" = yes; then
2261 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2262 else
2263 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2264 fi
2265
2266else
2267
2268 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2269 if test "x$LINE" != x ; then
2270 eval "DEFAULT_$LINE"
2271 else
2272 no_cache=1
2273 fi
2274
2275 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2276
2277fi
2278
2279
2280 eval "$ac_cv_use_no_rtti"
2281 if test "$no_cache" != 1; then
2282 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2283 fi
2284
2285 if test "$wxUSE_NO_RTTI" = yes; then
2286 echo "$ac_t""yes" 1>&6
2287 else
2288 echo "$ac_t""no" 1>&6
2289 fi
2290
2291
2292 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
00cf1208 2293echo "configure:2294: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2294 no_cache=0
2295 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2296if test "${enable_no_exceptions+set}" = set; then
2297 enableval="$enable_no_exceptions"
2298
2299 if test "$enableval" = yes; then
2300 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2301 else
2302 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2303 fi
2304
2305else
2306
2307 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2308 if test "x$LINE" != x ; then
2309 eval "DEFAULT_$LINE"
2310 else
2311 no_cache=1
2312 fi
2313
2314 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2315
2316fi
2317
2318
2319 eval "$ac_cv_use_no_exceptions"
2320 if test "$no_cache" != 1; then
2321 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2322 fi
2323
2324 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2325 echo "$ac_t""yes" 1>&6
2326 else
2327 echo "$ac_t""no" 1>&6
2328 fi
2329
2330
2331 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
00cf1208 2332echo "configure:2333: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2333 no_cache=0
2334 # Check whether --enable-permissive or --disable-permissive was given.
2335if test "${enable_permissive+set}" = set; then
2336 enableval="$enable_permissive"
2337
2338 if test "$enableval" = yes; then
2339 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2340 else
2341 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2342 fi
2343
2344else
2345
2346 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2347 if test "x$LINE" != x ; then
2348 eval "DEFAULT_$LINE"
2349 else
2350 no_cache=1
2351 fi
2352
2353 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2354
2355fi
2356
2357
2358 eval "$ac_cv_use_permissive"
2359 if test "$no_cache" != 1; then
2360 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2361 fi
2362
2363 if test "$wxUSE_PERMISSIVE" = yes; then
2364 echo "$ac_t""yes" 1>&6
2365 else
2366 echo "$ac_t""no" 1>&6
2367 fi
2368
2369
2370 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
00cf1208 2371echo "configure:2372: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2372 no_cache=0
2373 # Check whether --enable-no_deps or --disable-no_deps was given.
2374if test "${enable_no_deps+set}" = set; then
2375 enableval="$enable_no_deps"
2376
2377 if test "$enableval" = yes; then
2378 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2379 else
2380 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2381 fi
2382
2383else
2384
2385 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2386 if test "x$LINE" != x ; then
2387 eval "DEFAULT_$LINE"
2388 else
2389 no_cache=1
2390 fi
2391
2392 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2393
2394fi
2395
2396
2397 eval "$ac_cv_use_no_deps"
2398 if test "$no_cache" != 1; then
2399 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2400 fi
2401
2402 if test "$wxUSE_NO_DEPS" = yes; then
2403 echo "$ac_t""yes" 1>&6
2404 else
2405 echo "$ac_t""no" 1>&6
2406 fi
2407
2408
2409
2410
2411 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
00cf1208 2412echo "configure:2413: checking "for --enable-intl"" >&5
10f2d63a
VZ
2413 no_cache=0
2414 # Check whether --enable-intl or --disable-intl was given.
2415if test "${enable_intl+set}" = set; then
2416 enableval="$enable_intl"
2417
2418 if test "$enableval" = yes; then
2419 ac_cv_use_intl='wxUSE_INTL=yes'
2420 else
2421 ac_cv_use_intl='wxUSE_INTL=no'
2422 fi
2423
2424else
2425
2426 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2427 if test "x$LINE" != x ; then
2428 eval "DEFAULT_$LINE"
2429 else
2430 no_cache=1
2431 fi
2432
2433 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2434
2435fi
2436
2437
2438 eval "$ac_cv_use_intl"
2439 if test "$no_cache" != 1; then
2440 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2441 fi
2442
2443 if test "$wxUSE_INTL" = yes; then
2444 echo "$ac_t""yes" 1>&6
2445 else
2446 echo "$ac_t""no" 1>&6
2447 fi
2448
2449
2450 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
00cf1208 2451echo "configure:2452: checking "for --enable-config"" >&5
10f2d63a
VZ
2452 no_cache=0
2453 # Check whether --enable-config or --disable-config was given.
2454if test "${enable_config+set}" = set; then
2455 enableval="$enable_config"
2456
2457 if test "$enableval" = yes; then
2458 ac_cv_use_config='wxUSE_CONFIG=yes'
2459 else
2460 ac_cv_use_config='wxUSE_CONFIG=no'
2461 fi
2462
2463else
2464
2465 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2466 if test "x$LINE" != x ; then
2467 eval "DEFAULT_$LINE"
2468 else
2469 no_cache=1
2470 fi
2471
2472 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2473
2474fi
2475
2476
2477 eval "$ac_cv_use_config"
2478 if test "$no_cache" != 1; then
2479 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2480 fi
2481
2482 if test "$wxUSE_CONFIG" = yes; then
2483 echo "$ac_t""yes" 1>&6
2484 else
2485 echo "$ac_t""no" 1>&6
2486 fi
2487
2488
b12915c1
VZ
2489if test "$wxUSE_GUI" = "yes"; then
2490
10f2d63a 2491 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
00cf1208 2492echo "configure:2493: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2493 no_cache=0
2494 # Check whether --enable-sockets or --disable-sockets was given.
2495if test "${enable_sockets+set}" = set; then
2496 enableval="$enable_sockets"
2497
2498 if test "$enableval" = yes; then
2499 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2500 else
2501 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2502 fi
2503
2504else
2505
2506 LINE=`grep "wxUSE_SOCKETS" ${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_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2514
2515fi
2516
2517
2518 eval "$ac_cv_use_sockets"
2519 if test "$no_cache" != 1; then
2520 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2521 fi
2522
2523 if test "$wxUSE_SOCKETS" = yes; then
2524 echo "$ac_t""yes" 1>&6
2525 else
2526 echo "$ac_t""no" 1>&6
2527 fi
2528
b12915c1
VZ
2529else
2530wxUSE_SOCKETS=no
2531fi
2532
10f2d63a
VZ
2533
2534 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
00cf1208 2535echo "configure:2536: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2536 no_cache=0
2537 # Check whether --enable-dialupman or --disable-dialupman was given.
2538if test "${enable_dialupman+set}" = set; then
2539 enableval="$enable_dialupman"
2540
2541 if test "$enableval" = yes; then
2542 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2543 else
2544 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2545 fi
2546
2547else
2548
2549 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2550 if test "x$LINE" != x ; then
2551 eval "DEFAULT_$LINE"
2552 else
2553 no_cache=1
2554 fi
2555
2556 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2557
2558fi
2559
2560
2561 eval "$ac_cv_use_dialupman"
2562 if test "$no_cache" != 1; then
2563 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2564 fi
2565
2566 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2567 echo "$ac_t""yes" 1>&6
2568 else
2569 echo "$ac_t""no" 1>&6
2570 fi
2571
2572
2573 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
00cf1208 2574echo "configure:2575: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2575 no_cache=0
2576 # Check whether --enable-ipc or --disable-ipc was given.
2577if test "${enable_ipc+set}" = set; then
2578 enableval="$enable_ipc"
2579
2580 if test "$enableval" = yes; then
2581 ac_cv_use_ipc='wxUSE_IPC=yes'
2582 else
2583 ac_cv_use_ipc='wxUSE_IPC=no'
2584 fi
2585
2586else
2587
2588 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2596
2597fi
2598
2599
2600 eval "$ac_cv_use_ipc"
2601 if test "$no_cache" != 1; then
2602 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2603 fi
2604
2605 if test "$wxUSE_IPC" = yes; then
2606 echo "$ac_t""yes" 1>&6
2607 else
2608 echo "$ac_t""no" 1>&6
2609 fi
2610
2611
2612 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
00cf1208 2613echo "configure:2614: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2614 no_cache=0
2615 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2616if test "${enable_apple_ieee+set}" = set; then
2617 enableval="$enable_apple_ieee"
2618
2619 if test "$enableval" = yes; then
2620 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2621 else
2622 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2623 fi
2624
2625else
2626
2627 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2628 if test "x$LINE" != x ; then
2629 eval "DEFAULT_$LINE"
2630 else
2631 no_cache=1
2632 fi
2633
2634 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2635
2636fi
2637
2638
2639 eval "$ac_cv_use_apple_ieee"
2640 if test "$no_cache" != 1; then
2641 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2642 fi
2643
2644 if test "$wxUSE_APPLE_IEEE" = yes; then
2645 echo "$ac_t""yes" 1>&6
2646 else
2647 echo "$ac_t""no" 1>&6
2648 fi
2649
2650
2651 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
00cf1208 2652echo "configure:2653: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2653 no_cache=0
2654 # Check whether --enable-timedate or --disable-timedate was given.
2655if test "${enable_timedate+set}" = set; then
2656 enableval="$enable_timedate"
2657
2658 if test "$enableval" = yes; then
2659 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2660 else
2661 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2662 fi
2663
2664else
2665
2666 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2667 if test "x$LINE" != x ; then
2668 eval "DEFAULT_$LINE"
2669 else
2670 no_cache=1
2671 fi
2672
2673 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2674
2675fi
2676
2677
2678 eval "$ac_cv_use_timedate"
2679 if test "$no_cache" != 1; then
2680 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2681 fi
2682
2683 if test "$wxUSE_TIMEDATE" = yes; then
2684 echo "$ac_t""yes" 1>&6
2685 else
2686 echo "$ac_t""no" 1>&6
2687 fi
2688
2689
2690 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
00cf1208 2691echo "configure:2692: checking "for --enable-wave"" >&5
10f2d63a
VZ
2692 no_cache=0
2693 # Check whether --enable-wave or --disable-wave was given.
2694if test "${enable_wave+set}" = set; then
2695 enableval="$enable_wave"
2696
2697 if test "$enableval" = yes; then
2698 ac_cv_use_wave='wxUSE_WAVE=yes'
2699 else
2700 ac_cv_use_wave='wxUSE_WAVE=no'
2701 fi
2702
2703else
2704
2705 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2706 if test "x$LINE" != x ; then
2707 eval "DEFAULT_$LINE"
2708 else
2709 no_cache=1
2710 fi
2711
2712 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2713
2714fi
2715
2716
2717 eval "$ac_cv_use_wave"
2718 if test "$no_cache" != 1; then
2719 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2720 fi
2721
2722 if test "$wxUSE_WAVE" = yes; then
2723 echo "$ac_t""yes" 1>&6
2724 else
2725 echo "$ac_t""no" 1>&6
2726 fi
2727
2728
2729 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
00cf1208 2730echo "configure:2731: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2731 no_cache=0
2732 # Check whether --enable-fraction or --disable-fraction was given.
2733if test "${enable_fraction+set}" = set; then
2734 enableval="$enable_fraction"
2735
2736 if test "$enableval" = yes; then
2737 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2738 else
2739 ac_cv_use_fraction='wxUSE_FRACTION=no'
2740 fi
2741
2742else
2743
2744 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2745 if test "x$LINE" != x ; then
2746 eval "DEFAULT_$LINE"
2747 else
2748 no_cache=1
2749 fi
2750
2751 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2752
2753fi
2754
2755
2756 eval "$ac_cv_use_fraction"
2757 if test "$no_cache" != 1; then
2758 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2759 fi
2760
2761 if test "$wxUSE_FRACTION" = yes; then
2762 echo "$ac_t""yes" 1>&6
2763 else
2764 echo "$ac_t""no" 1>&6
2765 fi
2766
2767
2768 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
00cf1208 2769echo "configure:2770: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2770 no_cache=0
2771 # Check whether --enable-dynlib or --disable-dynlib was given.
2772if test "${enable_dynlib+set}" = set; then
2773 enableval="$enable_dynlib"
2774
2775 if test "$enableval" = yes; then
2776 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2777 else
2778 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2779 fi
2780
2781else
2782
2783 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2784 if test "x$LINE" != x ; then
2785 eval "DEFAULT_$LINE"
2786 else
2787 no_cache=1
2788 fi
2789
2790 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2791
2792fi
2793
2794
2795 eval "$ac_cv_use_dynlib"
2796 if test "$no_cache" != 1; then
2797 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2798 fi
2799
2800 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2801 echo "$ac_t""yes" 1>&6
2802 else
2803 echo "$ac_t""no" 1>&6
2804 fi
2805
2806
2807 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
00cf1208 2808echo "configure:2809: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2809 no_cache=0
2810 # Check whether --enable-longlong or --disable-longlong was given.
2811if test "${enable_longlong+set}" = set; then
2812 enableval="$enable_longlong"
2813
2814 if test "$enableval" = yes; then
2815 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2816 else
2817 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2818 fi
2819
2820else
2821
2822 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2823 if test "x$LINE" != x ; then
2824 eval "DEFAULT_$LINE"
2825 else
2826 no_cache=1
2827 fi
2828
2829 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2830
2831fi
2832
2833
2834 eval "$ac_cv_use_longlong"
2835 if test "$no_cache" != 1; then
2836 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2837 fi
2838
2839 if test "$wxUSE_LONGLONG" = yes; then
2840 echo "$ac_t""yes" 1>&6
2841 else
2842 echo "$ac_t""no" 1>&6
2843 fi
2844
2845
2846 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
00cf1208 2847echo "configure:2848: checking "for --enable-log"" >&5
10f2d63a
VZ
2848 no_cache=0
2849 # Check whether --enable-log or --disable-log was given.
2850if test "${enable_log+set}" = set; then
2851 enableval="$enable_log"
2852
2853 if test "$enableval" = yes; then
2854 ac_cv_use_log='wxUSE_LOG=yes'
2855 else
2856 ac_cv_use_log='wxUSE_LOG=no'
2857 fi
2858
2859else
2860
2861 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2862 if test "x$LINE" != x ; then
2863 eval "DEFAULT_$LINE"
2864 else
2865 no_cache=1
2866 fi
2867
2868 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2869
2870fi
2871
2872
2873 eval "$ac_cv_use_log"
2874 if test "$no_cache" != 1; then
2875 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2876 fi
2877
2878 if test "$wxUSE_LOG" = yes; then
2879 echo "$ac_t""yes" 1>&6
2880 else
2881 echo "$ac_t""no" 1>&6
2882 fi
2883
2884
2885 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
00cf1208 2886echo "configure:2887: checking "for --enable-streams"" >&5
10f2d63a
VZ
2887 no_cache=0
2888 # Check whether --enable-streams or --disable-streams was given.
2889if test "${enable_streams+set}" = set; then
2890 enableval="$enable_streams"
2891
2892 if test "$enableval" = yes; then
2893 ac_cv_use_streams='wxUSE_STREAMS=yes'
2894 else
2895 ac_cv_use_streams='wxUSE_STREAMS=no'
2896 fi
2897
2898else
2899
2900 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2901 if test "x$LINE" != x ; then
2902 eval "DEFAULT_$LINE"
2903 else
2904 no_cache=1
2905 fi
2906
2907 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2908
2909fi
2910
2911
2912 eval "$ac_cv_use_streams"
2913 if test "$no_cache" != 1; then
2914 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2915 fi
2916
2917 if test "$wxUSE_STREAMS" = yes; then
2918 echo "$ac_t""yes" 1>&6
2919 else
2920 echo "$ac_t""no" 1>&6
2921 fi
2922
2923
2924 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
00cf1208 2925echo "configure:2926: checking "for --enable-file"" >&5
10f2d63a
VZ
2926 no_cache=0
2927 # Check whether --enable-file or --disable-file was given.
2928if test "${enable_file+set}" = set; then
2929 enableval="$enable_file"
2930
2931 if test "$enableval" = yes; then
2932 ac_cv_use_file='wxUSE_FILE=yes'
2933 else
2934 ac_cv_use_file='wxUSE_FILE=no'
2935 fi
2936
2937else
2938
2939 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2940 if test "x$LINE" != x ; then
2941 eval "DEFAULT_$LINE"
2942 else
2943 no_cache=1
2944 fi
2945
2946 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2947
2948fi
2949
2950
2951 eval "$ac_cv_use_file"
2952 if test "$no_cache" != 1; then
2953 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2954 fi
2955
2956 if test "$wxUSE_FILE" = yes; then
2957 echo "$ac_t""yes" 1>&6
2958 else
2959 echo "$ac_t""no" 1>&6
2960 fi
2961
2962
2963 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
00cf1208 2964echo "configure:2965: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2965 no_cache=0
2966 # Check whether --enable-textfile or --disable-textfile was given.
2967if test "${enable_textfile+set}" = set; then
2968 enableval="$enable_textfile"
2969
2970 if test "$enableval" = yes; then
2971 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2972 else
2973 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2974 fi
2975
2976else
2977
2978 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2979 if test "x$LINE" != x ; then
2980 eval "DEFAULT_$LINE"
2981 else
2982 no_cache=1
2983 fi
2984
2985 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2986
2987fi
2988
2989
2990 eval "$ac_cv_use_textfile"
2991 if test "$no_cache" != 1; then
2992 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2993 fi
2994
2995 if test "$wxUSE_TEXTFILE" = yes; then
2996 echo "$ac_t""yes" 1>&6
2997 else
2998 echo "$ac_t""no" 1>&6
2999 fi
3000
3001
3002 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
00cf1208 3003echo "configure:3004: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3004 no_cache=0
3005 # Check whether --enable-unicode or --disable-unicode was given.
3006if test "${enable_unicode+set}" = set; then
3007 enableval="$enable_unicode"
3008
3009 if test "$enableval" = yes; then
3010 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3011 else
3012 ac_cv_use_unicode='wxUSE_UNICODE=no'
3013 fi
3014
3015else
3016
3017 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3018 if test "x$LINE" != x ; then
3019 eval "DEFAULT_$LINE"
3020 else
3021 no_cache=1
3022 fi
3023
3024 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3025
3026fi
3027
3028
3029 eval "$ac_cv_use_unicode"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_UNICODE" = yes; then
3035 echo "$ac_t""yes" 1>&6
3036 else
3037 echo "$ac_t""no" 1>&6
3038 fi
3039
3040
3041 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
00cf1208 3042echo "configure:3043: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3043 no_cache=0
3044 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3045if test "${enable_wcsrtombs+set}" = set; then
3046 enableval="$enable_wcsrtombs"
3047
3048 if test "$enableval" = yes; then
3049 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3050 else
3051 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3052 fi
3053
3054else
3055
3056 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3057 if test "x$LINE" != x ; then
3058 eval "DEFAULT_$LINE"
3059 else
3060 no_cache=1
3061 fi
3062
3063 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3064
3065fi
3066
3067
3068 eval "$ac_cv_use_wcsrtombs"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_WCSRTOMBS" = yes; then
3074 echo "$ac_t""yes" 1>&6
3075 else
3076 echo "$ac_t""no" 1>&6
3077 fi
3078
3079
3080 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
00cf1208 3081echo "configure:3082: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3082 no_cache=0
3083 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3084if test "${enable_wxprintfv+set}" = set; then
3085 enableval="$enable_wxprintfv"
3086
3087 if test "$enableval" = yes; then
3088 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3089 else
3090 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3091 fi
3092
3093else
3094
3095 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3103
3104fi
3105
3106
3107 eval "$ac_cv_use_wxprintfv"
3108 if test "$no_cache" != 1; then
3109 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3110 fi
3111
3112 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3113 echo "$ac_t""yes" 1>&6
3114 else
3115 echo "$ac_t""no" 1>&6
3116 fi
3117
3118
3119 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
00cf1208 3120echo "configure:3121: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3121 no_cache=0
3122 # Check whether --enable-joystick or --disable-joystick was given.
3123if test "${enable_joystick+set}" = set; then
3124 enableval="$enable_joystick"
3125
3126 if test "$enableval" = yes; then
3127 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3128 else
3129 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3130 fi
3131
3132else
3133
3134 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
3141 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3142
3143fi
3144
3145
3146 eval "$ac_cv_use_joystick"
3147 if test "$no_cache" != 1; then
3148 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3149 fi
3150
3151 if test "$wxUSE_JOYSTICK" = yes; then
3152 echo "$ac_t""yes" 1>&6
3153 else
3154 echo "$ac_t""no" 1>&6
3155 fi
3156
3157
3158 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
00cf1208 3159echo "configure:3160: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3160 no_cache=0
3161 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3162if test "${enable_std_iostreams+set}" = set; then
3163 enableval="$enable_std_iostreams"
3164
3165 if test "$enableval" = yes; then
3166 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3167 else
3168 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3169 fi
3170
3171else
3172
3173 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3181
3182fi
3183
3184
3185 eval "$ac_cv_use_std_iostreams"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_STD_IOSTREAM" = yes; then
3191 echo "$ac_t""yes" 1>&6
3192 else
3193 echo "$ac_t""no" 1>&6
3194 fi
3195
3196
3197 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
00cf1208 3198echo "configure:3199: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3199 no_cache=0
3200 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3201if test "${enable_fs_inet+set}" = set; then
3202 enableval="$enable_fs_inet"
3203
3204 if test "$enableval" = yes; then
3205 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3206 else
3207 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3208 fi
3209
3210else
3211
3212 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
3219 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3220
3221fi
3222
3223
3224 eval "$ac_cv_use_fs_inet"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_FS_INET" = yes; then
3230 echo "$ac_t""yes" 1>&6
3231 else
3232 echo "$ac_t""no" 1>&6
3233 fi
3234
3235
3236 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
00cf1208 3237echo "configure:3238: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3238 no_cache=0
3239 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3240if test "${enable_fs_zip+set}" = set; then
3241 enableval="$enable_fs_zip"
3242
3243 if test "$enableval" = yes; then
3244 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3245 else
3246 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3247 fi
3248
3249else
3250
3251 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3259
3260fi
3261
3262
3263 eval "$ac_cv_use_fs_zip"
3264 if test "$no_cache" != 1; then
3265 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3266 fi
3267
3268 if test "$wxUSE_FS_ZIP" = yes; then
3269 echo "$ac_t""yes" 1>&6
3270 else
3271 echo "$ac_t""no" 1>&6
3272 fi
3273
3274
3275 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
00cf1208 3276echo "configure:3277: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3277 no_cache=0
3278 # Check whether --enable-zipstream or --disable-zipstream was given.
3279if test "${enable_zipstream+set}" = set; then
3280 enableval="$enable_zipstream"
3281
3282 if test "$enableval" = yes; then
3283 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3284 else
3285 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3286 fi
3287
3288else
3289
3290 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
3297 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3298
3299fi
3300
3301
3302 eval "$ac_cv_use_zipstream"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_ZIPSTREAM" = yes; then
3308 echo "$ac_t""yes" 1>&6
3309 else
3310 echo "$ac_t""no" 1>&6
3311 fi
3312
3313
3314
3315
3316 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
00cf1208 3317echo "configure:3318: checking "for --enable-threads"" >&5
10f2d63a
VZ
3318 no_cache=0
3319 # Check whether --enable-threads or --disable-threads was given.
3320if test "${enable_threads+set}" = set; then
3321 enableval="$enable_threads"
3322
3323 if test "$enableval" = yes; then
3324 ac_cv_use_threads='wxUSE_THREADS=yes'
3325 else
3326 ac_cv_use_threads='wxUSE_THREADS=no'
3327 fi
3328
3329else
3330
3331 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3332 if test "x$LINE" != x ; then
3333 eval "DEFAULT_$LINE"
3334 else
3335 no_cache=1
3336 fi
3337
3338 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3339
3340fi
3341
3342
3343 eval "$ac_cv_use_threads"
3344 if test "$no_cache" != 1; then
3345 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3346 fi
3347
3348 if test "$wxUSE_THREADS" = yes; then
3349 echo "$ac_t""yes" 1>&6
3350 else
3351 echo "$ac_t""no" 1>&6
3352 fi
3353
3354
3355 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
00cf1208 3356echo "configure:3357: checking "for --enable-serial"" >&5
10f2d63a
VZ
3357 no_cache=0
3358 # Check whether --enable-serial or --disable-serial was given.
3359if test "${enable_serial+set}" = set; then
3360 enableval="$enable_serial"
3361
3362 if test "$enableval" = yes; then
3363 ac_cv_use_serial='wxUSE_SERIAL=yes'
3364 else
3365 ac_cv_use_serial='wxUSE_SERIAL=no'
3366 fi
3367
3368else
3369
3370 LINE=`grep "wxUSE_SERIAL" ${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_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3378
3379fi
3380
3381
3382 eval "$ac_cv_use_serial"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_SERIAL" = yes; then
3388 echo "$ac_t""yes" 1>&6
3389 else
3390 echo "$ac_t""no" 1>&6
3391 fi
3392
3393
b12915c1
VZ
3394if test "$wxUSE_GUI" = "yes"; then
3395
10f2d63a
VZ
3396
3397
3398 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
00cf1208 3399echo "configure:3400: checking "for --enable-docview"" >&5
10f2d63a
VZ
3400 no_cache=0
3401 # Check whether --enable-docview or --disable-docview was given.
3402if test "${enable_docview+set}" = set; then
3403 enableval="$enable_docview"
3404
3405 if test "$enableval" = yes; then
3406 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3407 else
3408 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3409 fi
3410
3411else
3412
3413 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3414 if test "x$LINE" != x ; then
3415 eval "DEFAULT_$LINE"
3416 else
3417 no_cache=1
3418 fi
3419
3420 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3421
3422fi
3423
3424
3425 eval "$ac_cv_use_docview"
3426 if test "$no_cache" != 1; then
3427 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3428 fi
3429
3430 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3431 echo "$ac_t""yes" 1>&6
3432 else
3433 echo "$ac_t""no" 1>&6
3434 fi
3435
3436
3437 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
00cf1208 3438echo "configure:3439: checking "for --enable-help"" >&5
10f2d63a
VZ
3439 no_cache=0
3440 # Check whether --enable-help or --disable-help was given.
3441if test "${enable_help+set}" = set; then
3442 enableval="$enable_help"
3443
3444 if test "$enableval" = yes; then
3445 ac_cv_use_help='wxUSE_HELP=yes'
3446 else
3447 ac_cv_use_help='wxUSE_HELP=no'
3448 fi
3449
3450else
3451
3452 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3453 if test "x$LINE" != x ; then
3454 eval "DEFAULT_$LINE"
3455 else
3456 no_cache=1
3457 fi
3458
3459 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3460
3461fi
3462
3463
3464 eval "$ac_cv_use_help"
3465 if test "$no_cache" != 1; then
3466 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3467 fi
3468
3469 if test "$wxUSE_HELP" = yes; then
3470 echo "$ac_t""yes" 1>&6
3471 else
3472 echo "$ac_t""no" 1>&6
3473 fi
3474
3475
3476 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
00cf1208 3477echo "configure:3478: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3478 no_cache=0
3479 # Check whether --enable-constraints or --disable-constraints was given.
3480if test "${enable_constraints+set}" = set; then
3481 enableval="$enable_constraints"
3482
3483 if test "$enableval" = yes; then
3484 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3485 else
3486 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3487 fi
3488
3489else
3490
3491 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3492 if test "x$LINE" != x ; then
3493 eval "DEFAULT_$LINE"
3494 else
3495 no_cache=1
3496 fi
3497
3498 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3499
3500fi
3501
3502
3503 eval "$ac_cv_use_constraints"
3504 if test "$no_cache" != 1; then
3505 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3506 fi
3507
3508 if test "$wxUSE_CONSTRAINTS" = yes; then
3509 echo "$ac_t""yes" 1>&6
3510 else
3511 echo "$ac_t""no" 1>&6
3512 fi
3513
3514
3515 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
00cf1208 3516echo "configure:3517: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3517 no_cache=0
3518 # Check whether --enable-printarch or --disable-printarch was given.
3519if test "${enable_printarch+set}" = set; then
3520 enableval="$enable_printarch"
3521
3522 if test "$enableval" = yes; then
3523 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3524 else
3525 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3526 fi
3527
3528else
3529
3530 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3531 if test "x$LINE" != x ; then
3532 eval "DEFAULT_$LINE"
3533 else
3534 no_cache=1
3535 fi
3536
3537 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3538
3539fi
3540
3541
3542 eval "$ac_cv_use_printarch"
3543 if test "$no_cache" != 1; then
3544 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3545 fi
3546
3547 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3548 echo "$ac_t""yes" 1>&6
3549 else
3550 echo "$ac_t""no" 1>&6
3551 fi
3552
3553
3554 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
00cf1208 3555echo "configure:3556: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3556 no_cache=0
3557 # Check whether --enable-mdi or --disable-mdi was given.
3558if test "${enable_mdi+set}" = set; then
3559 enableval="$enable_mdi"
3560
3561 if test "$enableval" = yes; then
3562 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3563 else
3564 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3565 fi
3566
3567else
3568
3569 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3570 if test "x$LINE" != x ; then
3571 eval "DEFAULT_$LINE"
3572 else
3573 no_cache=1
3574 fi
3575
3576 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3577
3578fi
3579
3580
3581 eval "$ac_cv_use_mdi"
3582 if test "$no_cache" != 1; then
3583 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3584 fi
3585
3586 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3587 echo "$ac_t""yes" 1>&6
3588 else
3589 echo "$ac_t""no" 1>&6
3590 fi
3591
3592
3593
3594 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
00cf1208 3595echo "configure:3596: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3596 no_cache=0
3597 # Check whether --enable-postscript or --disable-postscript was given.
3598if test "${enable_postscript+set}" = set; then
3599 enableval="$enable_postscript"
3600
3601 if test "$enableval" = yes; then
3602 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3603 else
3604 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3605 fi
3606
3607else
3608
3609 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3610 if test "x$LINE" != x ; then
3611 eval "DEFAULT_$LINE"
3612 else
3613 no_cache=1
3614 fi
3615
3616 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3617
3618fi
3619
3620
3621 eval "$ac_cv_use_postscript"
3622 if test "$no_cache" != 1; then
3623 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3624 fi
3625
3626 if test "$wxUSE_POSTSCRIPT" = yes; then
3627 echo "$ac_t""yes" 1>&6
3628 else
3629 echo "$ac_t""no" 1>&6
3630 fi
3631
3632
3633
3634
3635 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
00cf1208 3636echo "configure:3637: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3637 no_cache=0
3638 # Check whether --enable-prologio or --disable-prologio was given.
3639if test "${enable_prologio+set}" = set; then
3640 enableval="$enable_prologio"
3641
3642 if test "$enableval" = yes; then
3643 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3644 else
3645 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3646 fi
3647
3648else
3649
3650 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3651 if test "x$LINE" != x ; then
3652 eval "DEFAULT_$LINE"
3653 else
3654 no_cache=1
3655 fi
3656
3657 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3658
3659fi
3660
3661
3662 eval "$ac_cv_use_prologio"
3663 if test "$no_cache" != 1; then
3664 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3665 fi
3666
3667 if test "$wxUSE_PROLOGIO" = yes; then
3668 echo "$ac_t""yes" 1>&6
3669 else
3670 echo "$ac_t""no" 1>&6
3671 fi
3672
3673
3674 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
00cf1208 3675echo "configure:3676: checking "for --enable-resources"" >&5
10f2d63a
VZ
3676 no_cache=0
3677 # Check whether --enable-resources or --disable-resources was given.
3678if test "${enable_resources+set}" = set; then
3679 enableval="$enable_resources"
3680
3681 if test "$enableval" = yes; then
3682 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3683 else
3684 ac_cv_use_resources='wxUSE_RESOURCES=no'
3685 fi
3686
3687else
3688
3689 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3690 if test "x$LINE" != x ; then
3691 eval "DEFAULT_$LINE"
3692 else
3693 no_cache=1
3694 fi
3695
3696 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3697
3698fi
3699
3700
3701 eval "$ac_cv_use_resources"
3702 if test "$no_cache" != 1; then
3703 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3704 fi
3705
3706 if test "$wxUSE_RESOURCES" = yes; then
3707 echo "$ac_t""yes" 1>&6
3708 else
3709 echo "$ac_t""no" 1>&6
3710 fi
3711
3712
3713
3714 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
00cf1208 3715echo "configure:3716: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3716 no_cache=0
3717 # Check whether --enable-xresources or --disable-xresources was given.
3718if test "${enable_xresources+set}" = set; then
3719 enableval="$enable_xresources"
3720
3721 if test "$enableval" = yes; then
3722 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3723 else
3724 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3725 fi
3726
3727else
3728
3729 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3730 if test "x$LINE" != x ; then
3731 eval "DEFAULT_$LINE"
3732 else
3733 no_cache=1
3734 fi
3735
3736 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3737
3738fi
3739
3740
3741 eval "$ac_cv_use_xresources"
3742 if test "$no_cache" != 1; then
3743 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3744 fi
3745
3746 if test "$wxUSE_X_RESOURCES" = yes; then
3747 echo "$ac_t""yes" 1>&6
3748 else
3749 echo "$ac_t""no" 1>&6
3750 fi
3751
3752
3753
3754
3755 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
00cf1208 3756echo "configure:3757: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3757 no_cache=0
3758 # Check whether --enable-clipboard or --disable-clipboard was given.
3759if test "${enable_clipboard+set}" = set; then
3760 enableval="$enable_clipboard"
3761
3762 if test "$enableval" = yes; then
3763 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3764 else
3765 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3766 fi
3767
3768else
3769
3770 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3771 if test "x$LINE" != x ; then
3772 eval "DEFAULT_$LINE"
3773 else
3774 no_cache=1
3775 fi
3776
3777 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3778
3779fi
3780
3781
3782 eval "$ac_cv_use_clipboard"
3783 if test "$no_cache" != 1; then
3784 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3785 fi
3786
3787 if test "$wxUSE_CLIPBOARD" = yes; then
3788 echo "$ac_t""yes" 1>&6
3789 else
3790 echo "$ac_t""no" 1>&6
3791 fi
3792
3793
3794 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
00cf1208 3795echo "configure:3796: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3796 no_cache=0
3797 # Check whether --enable-dnd or --disable-dnd was given.
3798if test "${enable_dnd+set}" = set; then
3799 enableval="$enable_dnd"
3800
3801 if test "$enableval" = yes; then
3802 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3803 else
3804 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3805 fi
3806
3807else
3808
3809 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3810 if test "x$LINE" != x ; then
3811 eval "DEFAULT_$LINE"
3812 else
3813 no_cache=1
3814 fi
3815
3816 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3817
3818fi
3819
3820
3821 eval "$ac_cv_use_dnd"
3822 if test "$no_cache" != 1; then
3823 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3824 fi
3825
3826 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3827 echo "$ac_t""yes" 1>&6
3828 else
3829 echo "$ac_t""no" 1>&6
3830 fi
3831
3832
3833
3834 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
00cf1208 3835echo "configure:3836: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3836 no_cache=0
3837 # Check whether --enable-wxtree or --disable-wxtree was given.
3838if test "${enable_wxtree+set}" = set; then
3839 enableval="$enable_wxtree"
3840
3841 if test "$enableval" = yes; then
3842 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3843 else
3844 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3845 fi
3846
3847else
3848
3849 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3850 if test "x$LINE" != x ; then
3851 eval "DEFAULT_$LINE"
3852 else
3853 no_cache=1
3854 fi
3855
3856 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3857
3858fi
3859
3860
3861 eval "$ac_cv_use_wxtree"
3862 if test "$no_cache" != 1; then
3863 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3864 fi
3865
3866 if test "$wxUSE_WXTREE" = yes; then
3867 echo "$ac_t""yes" 1>&6
3868 else
3869 echo "$ac_t""no" 1>&6
3870 fi
3871
3872
3873
3874
3875 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
00cf1208 3876echo "configure:3877: checking "for --enable-controls"" >&5
10f2d63a
VZ
3877 no_cache=0
3878 # Check whether --enable-controls or --disable-controls was given.
3879if test "${enable_controls+set}" = set; then
3880 enableval="$enable_controls"
3881
3882 if test "$enableval" = yes; then
3883 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3884 else
3885 ac_cv_use_controls='wxUSE_CONTROLS=no'
3886 fi
3887
3888else
3889
3890 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3891 if test "x$LINE" != x ; then
3892 eval "DEFAULT_$LINE"
3893 else
3894 no_cache=1
3895 fi
3896
3897 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3898
3899fi
3900
3901
3902 eval "$ac_cv_use_controls"
3903 if test "$no_cache" != 1; then
3904 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3905 fi
3906
3907 if test "$wxUSE_CONTROLS" = yes; then
3908 echo "$ac_t""yes" 1>&6
3909 else
3910 echo "$ac_t""no" 1>&6
3911 fi
3912
3913
3914if test "$wxUSE_CONTROLS" = "yes"; then
3915 DEFAULT_wxUSE_ACCEL=yes
3916 DEFAULT_wxUSE_CARET=yes
3917 DEFAULT_wxUSE_COMBOBOX=yes
3918 DEFAULT_wxUSE_BMPBUTTON=yes
3919 DEFAULT_wxUSE_CHECKBOX=yes
3920 DEFAULT_wxUSE_CHECKLISTBOX=yes
3921 DEFAULT_wxUSE_CHOICE=yes
3922 DEFAULT_wxUSE_GAUGE=yes
3923 DEFAULT_wxUSE_GRID=yes
cc977e5f 3924 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
3925 DEFAULT_wxUSE_IMAGLIST=yes
3926 DEFAULT_wxUSE_LISTBOX=yes
3927 DEFAULT_wxUSE_LISTCTRL=yes
3928 DEFAULT_wxUSE_NOTEBOOK=yes
3929 DEFAULT_wxUSE_RADIOBOX=yes
3930 DEFAULT_wxUSE_RADIOBTN=yes
3931 DEFAULT_wxUSE_SASH=yes
3932 DEFAULT_wxUSE_SCROLLBAR=yes
3933 DEFAULT_wxUSE_SLIDER=yes
3934 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 3935 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
3936 DEFAULT_wxUSE_SPLITTER=yes
3937 DEFAULT_wxUSE_STATBMP=yes
3938 DEFAULT_wxUSE_STATBOX=yes
3939 DEFAULT_wxUSE_STATLINE=yes
3940 DEFAULT_wxUSE_STATUSBAR=yes
3941 DEFAULT_wxUSE_TAB_DIALOG=yes
3942 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
3943 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3944 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
3945 DEFAULT_wxUSE_TOOLTIPS=yes
3946 DEFAULT_wxUSE_TREECTRL=yes
3947elif test "$wxUSE_CONTROLS" = "no"; then
3948 DEFAULT_wxUSE_ACCEL=no
3949 DEFAULT_wxUSE_CARET=no
3950 DEFAULT_wxUSE_COMBOBOX=no
3951 DEFAULT_wxUSE_BMPBUTTON=no
3952 DEFAULT_wxUSE_CHECKBOX=no
3953 DEFAULT_wxUSE_CHECKLISTBOX=no
3954 DEFAULT_wxUSE_CHOICE=no
3955 DEFAULT_wxUSE_GAUGE=no
3956 DEFAULT_wxUSE_GRID=no
3957 DEFAULT_wxUSE_NEW_GRID=no
3958 DEFAULT_wxUSE_IMAGLIST=no
3959 DEFAULT_wxUSE_LISTBOX=no
3960 DEFAULT_wxUSE_LISTCTRL=no
3961 DEFAULT_wxUSE_NOTEBOOK=no
3962 DEFAULT_wxUSE_RADIOBOX=no
3963 DEFAULT_wxUSE_RADIOBTN=no
3964 DEFAULT_wxUSE_SASH=no
3965 DEFAULT_wxUSE_SCROLLBAR=no
3966 DEFAULT_wxUSE_SLIDER=no
3967 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 3968 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
3969 DEFAULT_wxUSE_SPLITTER=no
3970 DEFAULT_wxUSE_STATBMP=no
3971 DEFAULT_wxUSE_STATBOX=no
3972 DEFAULT_wxUSE_STATLINE=no
3973 DEFAULT_wxUSE_STATUSBAR=no
3974 DEFAULT_wxUSE_TAB_DIALOG=no
3975 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
3976 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
3977 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
3978 DEFAULT_wxUSE_TOOLTIPS=no
3979 DEFAULT_wxUSE_TREECTRL=no
3980fi
3981
3982
3983 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
00cf1208 3984echo "configure:3985: checking "for --enable-accel"" >&5
10f2d63a
VZ
3985 no_cache=0
3986 # Check whether --enable-accel or --disable-accel was given.
3987if test "${enable_accel+set}" = set; then
3988 enableval="$enable_accel"
3989
3990 if test "$enableval" = yes; then
3991 ac_cv_use_accel='wxUSE_ACCEL=yes'
3992 else
3993 ac_cv_use_accel='wxUSE_ACCEL=no'
3994 fi
3995
3996else
3997
3998 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3999 if test "x$LINE" != x ; then
4000 eval "DEFAULT_$LINE"
4001 else
4002 no_cache=1
4003 fi
4004
4005 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4006
4007fi
4008
4009
4010 eval "$ac_cv_use_accel"
4011 if test "$no_cache" != 1; then
4012 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4013 fi
4014
4015 if test "$wxUSE_ACCEL" = yes; then
4016 echo "$ac_t""yes" 1>&6
4017 else
4018 echo "$ac_t""no" 1>&6
4019 fi
4020
4021
4022 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
00cf1208 4023echo "configure:4024: checking "for --enable-caret"" >&5
10f2d63a
VZ
4024 no_cache=0
4025 # Check whether --enable-caret or --disable-caret was given.
4026if test "${enable_caret+set}" = set; then
4027 enableval="$enable_caret"
4028
4029 if test "$enableval" = yes; then
4030 ac_cv_use_caret='wxUSE_CARET=yes'
4031 else
4032 ac_cv_use_caret='wxUSE_CARET=no'
4033 fi
4034
4035else
4036
4037 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4038 if test "x$LINE" != x ; then
4039 eval "DEFAULT_$LINE"
4040 else
4041 no_cache=1
4042 fi
4043
4044 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4045
4046fi
4047
4048
4049 eval "$ac_cv_use_caret"
4050 if test "$no_cache" != 1; then
4051 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4052 fi
4053
4054 if test "$wxUSE_CARET" = yes; then
4055 echo "$ac_t""yes" 1>&6
4056 else
4057 echo "$ac_t""no" 1>&6
4058 fi
4059
4060
4061 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
00cf1208 4062echo "configure:4063: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4063 no_cache=0
4064 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4065if test "${enable_bmpbutton+set}" = set; then
4066 enableval="$enable_bmpbutton"
4067
4068 if test "$enableval" = yes; then
4069 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4070 else
4071 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4072 fi
4073
4074else
4075
4076 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4077 if test "x$LINE" != x ; then
4078 eval "DEFAULT_$LINE"
4079 else
4080 no_cache=1
4081 fi
4082
4083 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4084
4085fi
4086
4087
4088 eval "$ac_cv_use_bmpbutton"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$wxUSE_BMPBUTTON" = yes; then
4094 echo "$ac_t""yes" 1>&6
4095 else
4096 echo "$ac_t""no" 1>&6
4097 fi
4098
4099
4100 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
00cf1208 4101echo "configure:4102: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4102 no_cache=0
4103 # Check whether --enable-checkbox or --disable-checkbox was given.
4104if test "${enable_checkbox+set}" = set; then
4105 enableval="$enable_checkbox"
4106
4107 if test "$enableval" = yes; then
4108 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4109 else
4110 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4111 fi
4112
4113else
4114
4115 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4116 if test "x$LINE" != x ; then
4117 eval "DEFAULT_$LINE"
4118 else
4119 no_cache=1
4120 fi
4121
4122 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4123
4124fi
4125
4126
4127 eval "$ac_cv_use_checkbox"
4128 if test "$no_cache" != 1; then
4129 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4130 fi
4131
4132 if test "$wxUSE_CHECKBOX" = yes; then
4133 echo "$ac_t""yes" 1>&6
4134 else
4135 echo "$ac_t""no" 1>&6
4136 fi
4137
4138
4139 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
00cf1208 4140echo "configure:4141: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4141 no_cache=0
4142 # Check whether --enable-checklst or --disable-checklst was given.
4143if test "${enable_checklst+set}" = set; then
4144 enableval="$enable_checklst"
4145
4146 if test "$enableval" = yes; then
4147 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4148 else
4149 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4150 fi
4151
4152else
4153
4154 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4155 if test "x$LINE" != x ; then
4156 eval "DEFAULT_$LINE"
4157 else
4158 no_cache=1
4159 fi
4160
4161 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4162
4163fi
4164
4165
4166 eval "$ac_cv_use_checklst"
4167 if test "$no_cache" != 1; then
4168 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4169 fi
4170
4171 if test "$wxUSE_CHECKLST" = yes; then
4172 echo "$ac_t""yes" 1>&6
4173 else
4174 echo "$ac_t""no" 1>&6
4175 fi
4176
4177
4178 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
00cf1208 4179echo "configure:4180: checking "for --enable-choice"" >&5
10f2d63a
VZ
4180 no_cache=0
4181 # Check whether --enable-choice or --disable-choice was given.
4182if test "${enable_choice+set}" = set; then
4183 enableval="$enable_choice"
4184
4185 if test "$enableval" = yes; then
4186 ac_cv_use_choice='wxUSE_CHOICE=yes'
4187 else
4188 ac_cv_use_choice='wxUSE_CHOICE=no'
4189 fi
4190
4191else
4192
4193 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4194 if test "x$LINE" != x ; then
4195 eval "DEFAULT_$LINE"
4196 else
4197 no_cache=1
4198 fi
4199
4200 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4201
4202fi
4203
4204
4205 eval "$ac_cv_use_choice"
4206 if test "$no_cache" != 1; then
4207 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4208 fi
4209
4210 if test "$wxUSE_CHOICE" = yes; then
4211 echo "$ac_t""yes" 1>&6
4212 else
4213 echo "$ac_t""no" 1>&6
4214 fi
4215
4216
4217 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
00cf1208 4218echo "configure:4219: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4219 no_cache=0
4220 # Check whether --enable-combobox or --disable-combobox was given.
4221if test "${enable_combobox+set}" = set; then
4222 enableval="$enable_combobox"
4223
4224 if test "$enableval" = yes; then
4225 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4226 else
4227 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4228 fi
4229
4230else
4231
4232 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4233 if test "x$LINE" != x ; then
4234 eval "DEFAULT_$LINE"
4235 else
4236 no_cache=1
4237 fi
4238
4239 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4240
4241fi
4242
4243
4244 eval "$ac_cv_use_combobox"
4245 if test "$no_cache" != 1; then
4246 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4247 fi
4248
4249 if test "$wxUSE_COMBOBOX" = yes; then
4250 echo "$ac_t""yes" 1>&6
4251 else
4252 echo "$ac_t""no" 1>&6
4253 fi
4254
4255
4256 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
00cf1208 4257echo "configure:4258: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4258 no_cache=0
4259 # Check whether --enable-gauge or --disable-gauge was given.
4260if test "${enable_gauge+set}" = set; then
4261 enableval="$enable_gauge"
4262
4263 if test "$enableval" = yes; then
4264 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4265 else
4266 ac_cv_use_gauge='wxUSE_GAUGE=no'
4267 fi
4268
4269else
4270
4271 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4272 if test "x$LINE" != x ; then
4273 eval "DEFAULT_$LINE"
4274 else
4275 no_cache=1
4276 fi
4277
4278 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4279
4280fi
4281
4282
4283 eval "$ac_cv_use_gauge"
4284 if test "$no_cache" != 1; then
4285 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4286 fi
4287
4288 if test "$wxUSE_GAUGE" = yes; then
4289 echo "$ac_t""yes" 1>&6
4290 else
4291 echo "$ac_t""no" 1>&6
4292 fi
4293
4294
4295 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
00cf1208 4296echo "configure:4297: checking "for --enable-grid"" >&5
10f2d63a
VZ
4297 no_cache=0
4298 # Check whether --enable-grid or --disable-grid was given.
4299if test "${enable_grid+set}" = set; then
4300 enableval="$enable_grid"
4301
4302 if test "$enableval" = yes; then
4303 ac_cv_use_grid='wxUSE_GRID=yes'
4304 else
4305 ac_cv_use_grid='wxUSE_GRID=no'
4306 fi
4307
4308else
4309
4310 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4311 if test "x$LINE" != x ; then
4312 eval "DEFAULT_$LINE"
4313 else
4314 no_cache=1
4315 fi
4316
4317 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4318
4319fi
4320
4321
4322 eval "$ac_cv_use_grid"
4323 if test "$no_cache" != 1; then
4324 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4325 fi
4326
4327 if test "$wxUSE_GRID" = yes; then
4328 echo "$ac_t""yes" 1>&6
4329 else
4330 echo "$ac_t""no" 1>&6
4331 fi
4332
4333
4334 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
00cf1208 4335echo "configure:4336: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4336 no_cache=0
4337 # Check whether --enable-newgrid or --disable-newgrid was given.
4338if test "${enable_newgrid+set}" = set; then
4339 enableval="$enable_newgrid"
4340
4341 if test "$enableval" = yes; then
4342 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4343 else
4344 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4345 fi
4346
4347else
4348
4349 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4350 if test "x$LINE" != x ; then
4351 eval "DEFAULT_$LINE"
4352 else
4353 no_cache=1
4354 fi
4355
4356 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4357
4358fi
4359
4360
4361 eval "$ac_cv_use_newgrid"
4362 if test "$no_cache" != 1; then
4363 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4364 fi
4365
4366 if test "$wxUSE_NEW_GRID" = yes; then
4367 echo "$ac_t""yes" 1>&6
4368 else
4369 echo "$ac_t""no" 1>&6
4370 fi
4371
4372
4373 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
00cf1208 4374echo "configure:4375: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4375 no_cache=0
4376 # Check whether --enable-imaglist or --disable-imaglist was given.
4377if test "${enable_imaglist+set}" = set; then
4378 enableval="$enable_imaglist"
4379
4380 if test "$enableval" = yes; then
4381 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4382 else
4383 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4384 fi
4385
4386else
4387
4388 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4389 if test "x$LINE" != x ; then
4390 eval "DEFAULT_$LINE"
4391 else
4392 no_cache=1
4393 fi
4394
4395 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4396
4397fi
4398
4399
4400 eval "$ac_cv_use_imaglist"
4401 if test "$no_cache" != 1; then
4402 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4403 fi
4404
4405 if test "$wxUSE_IMAGLIST" = yes; then
4406 echo "$ac_t""yes" 1>&6
4407 else
4408 echo "$ac_t""no" 1>&6
4409 fi
4410
4411
4412 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
00cf1208 4413echo "configure:4414: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4414 no_cache=0
4415 # Check whether --enable-listbox or --disable-listbox was given.
4416if test "${enable_listbox+set}" = set; then
4417 enableval="$enable_listbox"
4418
4419 if test "$enableval" = yes; then
4420 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4421 else
4422 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4423 fi
4424
4425else
4426
4427 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4428 if test "x$LINE" != x ; then
4429 eval "DEFAULT_$LINE"
4430 else
4431 no_cache=1
4432 fi
4433
4434 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4435
4436fi
4437
4438
4439 eval "$ac_cv_use_listbox"
4440 if test "$no_cache" != 1; then
4441 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4442 fi
4443
4444 if test "$wxUSE_LISTBOX" = yes; then
4445 echo "$ac_t""yes" 1>&6
4446 else
4447 echo "$ac_t""no" 1>&6
4448 fi
4449
4450
4451 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
00cf1208 4452echo "configure:4453: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4453 no_cache=0
4454 # Check whether --enable-listctrl or --disable-listctrl was given.
4455if test "${enable_listctrl+set}" = set; then
4456 enableval="$enable_listctrl"
4457
4458 if test "$enableval" = yes; then
4459 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4460 else
4461 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4462 fi
4463
4464else
4465
4466 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4467 if test "x$LINE" != x ; then
4468 eval "DEFAULT_$LINE"
4469 else
4470 no_cache=1
4471 fi
4472
4473 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4474
4475fi
4476
4477
4478 eval "$ac_cv_use_listctrl"
4479 if test "$no_cache" != 1; then
4480 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4481 fi
4482
4483 if test "$wxUSE_LISTCTRL" = yes; then
4484 echo "$ac_t""yes" 1>&6
4485 else
4486 echo "$ac_t""no" 1>&6
4487 fi
4488
4489
4490 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
00cf1208 4491echo "configure:4492: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4492 no_cache=0
4493 # Check whether --enable-notebook or --disable-notebook was given.
4494if test "${enable_notebook+set}" = set; then
4495 enableval="$enable_notebook"
4496
4497 if test "$enableval" = yes; then
4498 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4499 else
4500 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4501 fi
4502
4503else
4504
4505 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4506 if test "x$LINE" != x ; then
4507 eval "DEFAULT_$LINE"
4508 else
4509 no_cache=1
4510 fi
4511
4512 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4513
4514fi
4515
4516
4517 eval "$ac_cv_use_notebook"
4518 if test "$no_cache" != 1; then
4519 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4520 fi
4521
4522 if test "$wxUSE_NOTEBOOK" = yes; then
4523 echo "$ac_t""yes" 1>&6
4524 else
4525 echo "$ac_t""no" 1>&6
4526 fi
4527
4528
4529 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
00cf1208 4530echo "configure:4531: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4531 no_cache=0
4532 # Check whether --enable-radiobox or --disable-radiobox was given.
4533if test "${enable_radiobox+set}" = set; then
4534 enableval="$enable_radiobox"
4535
4536 if test "$enableval" = yes; then
4537 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4538 else
4539 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4540 fi
4541
4542else
4543
4544 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4545 if test "x$LINE" != x ; then
4546 eval "DEFAULT_$LINE"
4547 else
4548 no_cache=1
4549 fi
4550
4551 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4552
4553fi
4554
4555
4556 eval "$ac_cv_use_radiobox"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_RADIOBOX" = yes; then
4562 echo "$ac_t""yes" 1>&6
4563 else
4564 echo "$ac_t""no" 1>&6
4565 fi
4566
4567
4568 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
00cf1208 4569echo "configure:4570: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4570 no_cache=0
4571 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4572if test "${enable_radiobtn+set}" = set; then
4573 enableval="$enable_radiobtn"
4574
4575 if test "$enableval" = yes; then
4576 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4577 else
4578 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4579 fi
4580
4581else
4582
4583 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4584 if test "x$LINE" != x ; then
4585 eval "DEFAULT_$LINE"
4586 else
4587 no_cache=1
4588 fi
4589
4590 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4591
4592fi
4593
4594
4595 eval "$ac_cv_use_radiobtn"
4596 if test "$no_cache" != 1; then
4597 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4598 fi
4599
4600 if test "$wxUSE_RADIOBTN" = yes; then
4601 echo "$ac_t""yes" 1>&6
4602 else
4603 echo "$ac_t""no" 1>&6
4604 fi
4605
4606
4607 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
00cf1208 4608echo "configure:4609: checking "for --enable-sash"" >&5
10f2d63a
VZ
4609 no_cache=0
4610 # Check whether --enable-sash or --disable-sash was given.
4611if test "${enable_sash+set}" = set; then
4612 enableval="$enable_sash"
4613
4614 if test "$enableval" = yes; then
4615 ac_cv_use_sash='wxUSE_SASH=yes'
4616 else
4617 ac_cv_use_sash='wxUSE_SASH=no'
4618 fi
4619
4620else
4621
4622 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4623 if test "x$LINE" != x ; then
4624 eval "DEFAULT_$LINE"
4625 else
4626 no_cache=1
4627 fi
4628
4629 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4630
4631fi
4632
4633
4634 eval "$ac_cv_use_sash"
4635 if test "$no_cache" != 1; then
4636 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4637 fi
4638
4639 if test "$wxUSE_SASH" = yes; then
4640 echo "$ac_t""yes" 1>&6
4641 else
4642 echo "$ac_t""no" 1>&6
4643 fi
4644
4645
4646 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
00cf1208 4647echo "configure:4648: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4648 no_cache=0
4649 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4650if test "${enable_scrollbar+set}" = set; then
4651 enableval="$enable_scrollbar"
4652
4653 if test "$enableval" = yes; then
4654 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4655 else
4656 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4657 fi
4658
4659else
4660
4661 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4662 if test "x$LINE" != x ; then
4663 eval "DEFAULT_$LINE"
4664 else
4665 no_cache=1
4666 fi
4667
4668 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4669
4670fi
4671
4672
4673 eval "$ac_cv_use_scrollbar"
4674 if test "$no_cache" != 1; then
4675 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4676 fi
4677
4678 if test "$wxUSE_SCROLLBAR" = yes; then
4679 echo "$ac_t""yes" 1>&6
4680 else
4681 echo "$ac_t""no" 1>&6
4682 fi
4683
4684
4685 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
00cf1208 4686echo "configure:4687: checking "for --enable-slider"" >&5
10f2d63a
VZ
4687 no_cache=0
4688 # Check whether --enable-slider or --disable-slider was given.
4689if test "${enable_slider+set}" = set; then
4690 enableval="$enable_slider"
4691
4692 if test "$enableval" = yes; then
4693 ac_cv_use_slider='wxUSE_SLIDER=yes'
4694 else
4695 ac_cv_use_slider='wxUSE_SLIDER=no'
4696 fi
4697
4698else
4699
4700 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4701 if test "x$LINE" != x ; then
4702 eval "DEFAULT_$LINE"
4703 else
4704 no_cache=1
4705 fi
4706
4707 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4708
4709fi
4710
4711
4712 eval "$ac_cv_use_slider"
4713 if test "$no_cache" != 1; then
4714 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4715 fi
4716
4717 if test "$wxUSE_SLIDER" = yes; then
4718 echo "$ac_t""yes" 1>&6
4719 else
4720 echo "$ac_t""no" 1>&6
4721 fi
4722
4723
4724 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
00cf1208 4725echo "configure:4726: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4726 no_cache=0
4727 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4728if test "${enable_spinbtn+set}" = set; then
4729 enableval="$enable_spinbtn"
4730
4731 if test "$enableval" = yes; then
4732 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4733 else
4734 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4735 fi
4736
4737else
4738
4739 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 else
4743 no_cache=1
4744 fi
4745
4746 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4747
4748fi
4749
4750
4751 eval "$ac_cv_use_spinbtn"
4752 if test "$no_cache" != 1; then
4753 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4754 fi
4755
4756 if test "$wxUSE_SPINBTN" = yes; then
4757 echo "$ac_t""yes" 1>&6
4758 else
4759 echo "$ac_t""no" 1>&6
4760 fi
4761
4762
56cfaa52 4763 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
00cf1208 4764echo "configure:4765: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4765 no_cache=0
4766 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4767if test "${enable_spinctrl+set}" = set; then
4768 enableval="$enable_spinctrl"
4769
4770 if test "$enableval" = yes; then
4771 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4772 else
4773 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4774 fi
4775
4776else
4777
4778 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4779 if test "x$LINE" != x ; then
4780 eval "DEFAULT_$LINE"
4781 else
4782 no_cache=1
4783 fi
4784
4785 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4786
4787fi
4788
4789
4790 eval "$ac_cv_use_spinctrl"
4791 if test "$no_cache" != 1; then
4792 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4793 fi
4794
4795 if test "$wxUSE_SPINCTRL" = yes; then
4796 echo "$ac_t""yes" 1>&6
4797 else
4798 echo "$ac_t""no" 1>&6
4799 fi
4800
4801
10f2d63a 4802 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
00cf1208 4803echo "configure:4804: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4804 no_cache=0
4805 # Check whether --enable-splitter or --disable-splitter was given.
4806if test "${enable_splitter+set}" = set; then
4807 enableval="$enable_splitter"
4808
4809 if test "$enableval" = yes; then
4810 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4811 else
4812 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4813 fi
4814
4815else
4816
4817 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4818 if test "x$LINE" != x ; then
4819 eval "DEFAULT_$LINE"
4820 else
4821 no_cache=1
4822 fi
4823
4824 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4825
4826fi
4827
4828
4829 eval "$ac_cv_use_splitter"
4830 if test "$no_cache" != 1; then
4831 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4832 fi
4833
4834 if test "$wxUSE_SPLITTER" = yes; then
4835 echo "$ac_t""yes" 1>&6
4836 else
4837 echo "$ac_t""no" 1>&6
4838 fi
4839
4840
4841 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
00cf1208 4842echo "configure:4843: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4843 no_cache=0
4844 # Check whether --enable-statbmp or --disable-statbmp was given.
4845if test "${enable_statbmp+set}" = set; then
4846 enableval="$enable_statbmp"
4847
4848 if test "$enableval" = yes; then
4849 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4850 else
4851 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4852 fi
4853
4854else
4855
4856 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4857 if test "x$LINE" != x ; then
4858 eval "DEFAULT_$LINE"
4859 else
4860 no_cache=1
4861 fi
4862
4863 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4864
4865fi
4866
4867
4868 eval "$ac_cv_use_statbmp"
4869 if test "$no_cache" != 1; then
4870 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4871 fi
4872
4873 if test "$wxUSE_STATBMP" = yes; then
4874 echo "$ac_t""yes" 1>&6
4875 else
4876 echo "$ac_t""no" 1>&6
4877 fi
4878
4879
4880 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
00cf1208 4881echo "configure:4882: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4882 no_cache=0
4883 # Check whether --enable-statbox or --disable-statbox was given.
4884if test "${enable_statbox+set}" = set; then
4885 enableval="$enable_statbox"
4886
4887 if test "$enableval" = yes; then
4888 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4889 else
4890 ac_cv_use_statbox='wxUSE_STATBOX=no'
4891 fi
4892
4893else
4894
4895 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4896 if test "x$LINE" != x ; then
4897 eval "DEFAULT_$LINE"
4898 else
4899 no_cache=1
4900 fi
4901
4902 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4903
4904fi
4905
4906
4907 eval "$ac_cv_use_statbox"
4908 if test "$no_cache" != 1; then
4909 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4910 fi
4911
4912 if test "$wxUSE_STATBOX" = yes; then
4913 echo "$ac_t""yes" 1>&6
4914 else
4915 echo "$ac_t""no" 1>&6
4916 fi
4917
4918
4919 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
00cf1208 4920echo "configure:4921: checking "for --enable-statline"" >&5
10f2d63a
VZ
4921 no_cache=0
4922 # Check whether --enable-statline or --disable-statline was given.
4923if test "${enable_statline+set}" = set; then
4924 enableval="$enable_statline"
4925
4926 if test "$enableval" = yes; then
4927 ac_cv_use_statline='wxUSE_STATLINE=yes'
4928 else
4929 ac_cv_use_statline='wxUSE_STATLINE=no'
4930 fi
4931
4932else
4933
4934 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4935 if test "x$LINE" != x ; then
4936 eval "DEFAULT_$LINE"
4937 else
4938 no_cache=1
4939 fi
4940
4941 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4942
4943fi
4944
4945
4946 eval "$ac_cv_use_statline"
4947 if test "$no_cache" != 1; then
4948 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4949 fi
4950
4951 if test "$wxUSE_STATLINE" = yes; then
4952 echo "$ac_t""yes" 1>&6
4953 else
4954 echo "$ac_t""no" 1>&6
4955 fi
4956
4957
4958 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
00cf1208 4959echo "configure:4960: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
4960 no_cache=0
4961 # Check whether --enable-statusbar or --disable-statusbar was given.
4962if test "${enable_statusbar+set}" = set; then
4963 enableval="$enable_statusbar"
4964
4965 if test "$enableval" = yes; then
4966 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4967 else
4968 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4969 fi
4970
4971else
4972
4973 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4974 if test "x$LINE" != x ; then
4975 eval "DEFAULT_$LINE"
4976 else
4977 no_cache=1
4978 fi
4979
4980 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4981
4982fi
4983
4984
4985 eval "$ac_cv_use_statusbar"
4986 if test "$no_cache" != 1; then
4987 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4988 fi
4989
4990 if test "$wxUSE_STATUSBAR" = yes; then
4991 echo "$ac_t""yes" 1>&6
4992 else
4993 echo "$ac_t""no" 1>&6
4994 fi
4995
4996
4997 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
00cf1208 4998echo "configure:4999: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
4999 no_cache=0
5000 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5001if test "${enable_tabdialog+set}" = set; then
5002 enableval="$enable_tabdialog"
5003
5004 if test "$enableval" = yes; then
5005 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5006 else
5007 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5008 fi
5009
5010else
5011
5012 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5013 if test "x$LINE" != x ; then
5014 eval "DEFAULT_$LINE"
5015 else
5016 no_cache=1
5017 fi
5018
5019 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5020
5021fi
5022
5023
5024 eval "$ac_cv_use_tabdialog"
5025 if test "$no_cache" != 1; then
5026 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5027 fi
5028
5029 if test "$wxUSE_TABDIALOG" = yes; then
5030 echo "$ac_t""yes" 1>&6
5031 else
5032 echo "$ac_t""no" 1>&6
5033 fi
5034
5035
5036 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
00cf1208 5037echo "configure:5038: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5038 no_cache=0
5039 # Check whether --enable-toolbar or --disable-toolbar was given.
5040if test "${enable_toolbar+set}" = set; then
5041 enableval="$enable_toolbar"
5042
5043 if test "$enableval" = yes; then
5044 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5045 else
5046 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5047 fi
5048
5049else
5050
5051 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5052 if test "x$LINE" != x ; then
5053 eval "DEFAULT_$LINE"
5054 else
5055 no_cache=1
5056 fi
5057
5058 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5059
5060fi
5061
5062
5063 eval "$ac_cv_use_toolbar"
5064 if test "$no_cache" != 1; then
5065 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5066 fi
5067
5068 if test "$wxUSE_TOOLBAR" = yes; then
5069 echo "$ac_t""yes" 1>&6
5070 else
5071 echo "$ac_t""no" 1>&6
5072 fi
5073
5074
360d6699 5075 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
00cf1208 5076echo "configure:5077: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5077 no_cache=0
5078 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5079if test "${enable_tbarnative+set}" = set; then
5080 enableval="$enable_tbarnative"
5081
5082 if test "$enableval" = yes; then
5083 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5084 else
5085 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5086 fi
5087
5088else
5089
5090 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5091 if test "x$LINE" != x ; then
5092 eval "DEFAULT_$LINE"
5093 else
5094 no_cache=1
5095 fi
5096
5097 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5098
5099fi
5100
5101
5102 eval "$ac_cv_use_tbarnative"
5103 if test "$no_cache" != 1; then
5104 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5105 fi
5106
5107 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5108 echo "$ac_t""yes" 1>&6
5109 else
5110 echo "$ac_t""no" 1>&6
5111 fi
5112
5113
5114 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
00cf1208 5115echo "configure:5116: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5116 no_cache=0
5117 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5118if test "${enable_tbarsmpl+set}" = set; then
5119 enableval="$enable_tbarsmpl"
5120
5121 if test "$enableval" = yes; then
5122 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5123 else
5124 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5125 fi
5126
5127else
5128
5129 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5130 if test "x$LINE" != x ; then
5131 eval "DEFAULT_$LINE"
5132 else
5133 no_cache=1
5134 fi
5135
5136 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5137
5138fi
5139
5140
5141 eval "$ac_cv_use_tbarsmpl"
5142 if test "$no_cache" != 1; then
5143 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5144 fi
5145
5146 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5147 echo "$ac_t""yes" 1>&6
5148 else
5149 echo "$ac_t""no" 1>&6
5150 fi
5151
5152
10f2d63a 5153 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
00cf1208 5154echo "configure:5155: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5155 no_cache=0
5156 # Check whether --enable-treectrl or --disable-treectrl was given.
5157if test "${enable_treectrl+set}" = set; then
5158 enableval="$enable_treectrl"
5159
5160 if test "$enableval" = yes; then
5161 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5162 else
5163 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5164 fi
5165
5166else
5167
5168 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5169 if test "x$LINE" != x ; then
5170 eval "DEFAULT_$LINE"
5171 else
5172 no_cache=1
5173 fi
5174
5175 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5176
5177fi
5178
5179
5180 eval "$ac_cv_use_treectrl"
5181 if test "$no_cache" != 1; then
5182 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5183 fi
5184
5185 if test "$wxUSE_TREECTRL" = yes; then
5186 echo "$ac_t""yes" 1>&6
5187 else
5188 echo "$ac_t""no" 1>&6
5189 fi
5190
5191
5192
5193
5194 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
00cf1208 5195echo "configure:5196: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5196 no_cache=0
5197 # Check whether --enable-commondlg or --disable-commondlg was given.
5198if test "${enable_commondlg+set}" = set; then
5199 enableval="$enable_commondlg"
5200
5201 if test "$enableval" = yes; then
5202 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5203 else
5204 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5205 fi
5206
5207else
5208
5209 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5217
5218fi
5219
5220
5221 eval "$ac_cv_use_commondlg"
5222 if test "$no_cache" != 1; then
5223 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5224 fi
5225
5226 if test "$wxUSE_COMMONDLGS" = yes; then
5227 echo "$ac_t""yes" 1>&6
5228 else
5229 echo "$ac_t""no" 1>&6
5230 fi
5231
5232
5233 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
00cf1208 5234echo "configure:5235: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5235 no_cache=0
5236 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5237if test "${enable_dirdlg+set}" = set; then
5238 enableval="$enable_dirdlg"
5239
5240 if test "$enableval" = yes; then
5241 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5242 else
5243 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5244 fi
5245
5246else
5247
5248 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5249 if test "x$LINE" != x ; then
5250 eval "DEFAULT_$LINE"
5251 else
5252 no_cache=1
5253 fi
5254
5255 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5256
5257fi
5258
5259
5260 eval "$ac_cv_use_dirdlg"
5261 if test "$no_cache" != 1; then
5262 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5263 fi
5264
5265 if test "$wxUSE_DIRDLG" = yes; then
5266 echo "$ac_t""yes" 1>&6
5267 else
5268 echo "$ac_t""no" 1>&6
5269 fi
5270
5271
5272 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
00cf1208 5273echo "configure:5274: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5274 no_cache=0
5275 # Check whether --enable-textdlg or --disable-textdlg was given.
5276if test "${enable_textdlg+set}" = set; then
5277 enableval="$enable_textdlg"
5278
5279 if test "$enableval" = yes; then
5280 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5281 else
5282 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5283 fi
5284
5285else
5286
5287 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5288 if test "x$LINE" != x ; then
5289 eval "DEFAULT_$LINE"
5290 else
5291 no_cache=1
5292 fi
5293
5294 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5295
5296fi
5297
5298
5299 eval "$ac_cv_use_textdlg"
5300 if test "$no_cache" != 1; then
5301 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5302 fi
5303
5304 if test "$wxUSE_TEXTDLG" = yes; then
5305 echo "$ac_t""yes" 1>&6
5306 else
5307 echo "$ac_t""no" 1>&6
5308 fi
5309
5310
5311 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
00cf1208 5312echo "configure:5313: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5313 no_cache=0
5314 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5315if test "${enable_tipdlg+set}" = set; then
5316 enableval="$enable_tipdlg"
5317
5318 if test "$enableval" = yes; then
5319 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5320 else
5321 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5322 fi
5323
5324else
5325
5326 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5334
5335fi
5336
5337
5338 eval "$ac_cv_use_tipdlg"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_STARTUP_TIPS" = yes; then
5344 echo "$ac_t""yes" 1>&6
5345 else
5346 echo "$ac_t""no" 1>&6
5347 fi
5348
5349
5350 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
00cf1208 5351echo "configure:5352: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5352 no_cache=0
5353 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5354if test "${enable_progressdlg+set}" = set; then
5355 enableval="$enable_progressdlg"
5356
5357 if test "$enableval" = yes; then
5358 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5359 else
5360 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5361 fi
5362
5363else
5364
5365 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5366 if test "x$LINE" != x ; then
5367 eval "DEFAULT_$LINE"
5368 else
5369 no_cache=1
5370 fi
5371
5372 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5373
5374fi
5375
5376
5377 eval "$ac_cv_use_progressdlg"
5378 if test "$no_cache" != 1; then
5379 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5380 fi
5381
5382 if test "$wxUSE_PROGRESSDLG" = yes; then
5383 echo "$ac_t""yes" 1>&6
5384 else
5385 echo "$ac_t""no" 1>&6
5386 fi
5387
5388
5389 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
00cf1208 5390echo "configure:5391: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5391 no_cache=0
5392 # Check whether --enable-miniframe or --disable-miniframe was given.
5393if test "${enable_miniframe+set}" = set; then
5394 enableval="$enable_miniframe"
5395
5396 if test "$enableval" = yes; then
5397 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5398 else
5399 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5400 fi
5401
5402else
5403
5404 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5405 if test "x$LINE" != x ; then
5406 eval "DEFAULT_$LINE"
5407 else
5408 no_cache=1
5409 fi
5410
5411 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5412
5413fi
5414
5415
5416 eval "$ac_cv_use_miniframe"
5417 if test "$no_cache" != 1; then
5418 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5419 fi
5420
5421 if test "$wxUSE_MINIFRAME" = yes; then
5422 echo "$ac_t""yes" 1>&6
5423 else
5424 echo "$ac_t""no" 1>&6
5425 fi
5426
5427
5428 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
00cf1208 5429echo "configure:5430: checking "for --enable-html"" >&5
10f2d63a
VZ
5430 no_cache=0
5431 # Check whether --enable-html or --disable-html was given.
5432if test "${enable_html+set}" = set; then
5433 enableval="$enable_html"
5434
5435 if test "$enableval" = yes; then
5436 ac_cv_use_html='wxUSE_HTML=yes'
5437 else
5438 ac_cv_use_html='wxUSE_HTML=no'
5439 fi
5440
5441else
5442
5443 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5444 if test "x$LINE" != x ; then
5445 eval "DEFAULT_$LINE"
5446 else
5447 no_cache=1
5448 fi
5449
5450 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5451
5452fi
5453
5454
5455 eval "$ac_cv_use_html"
5456 if test "$no_cache" != 1; then
5457 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5458 fi
5459
5460 if test "$wxUSE_HTML" = yes; then
5461 echo "$ac_t""yes" 1>&6
5462 else
5463 echo "$ac_t""no" 1>&6
5464 fi
5465
5466
5467 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
00cf1208 5468echo "configure:5469: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5469 no_cache=0
5470 # Check whether --enable-tooltips or --disable-tooltips was given.
5471if test "${enable_tooltips+set}" = set; then
5472 enableval="$enable_tooltips"
5473
5474 if test "$enableval" = yes; then
5475 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5476 else
5477 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5478 fi
5479
5480else
5481
5482 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5483 if test "x$LINE" != x ; then
5484 eval "DEFAULT_$LINE"
5485 else
5486 no_cache=1
5487 fi
5488
5489 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5490
5491fi
5492
5493
5494 eval "$ac_cv_use_tooltips"
5495 if test "$no_cache" != 1; then
5496 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5497 fi
5498
5499 if test "$wxUSE_TOOLTIPS" = yes; then
5500 echo "$ac_t""yes" 1>&6
5501 else
5502 echo "$ac_t""no" 1>&6
5503 fi
5504
5505
5506 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
00cf1208 5507echo "configure:5508: checking "for --enable-splines"" >&5
10f2d63a
VZ
5508 no_cache=0
5509 # Check whether --enable-splines or --disable-splines was given.
5510if test "${enable_splines+set}" = set; then
5511 enableval="$enable_splines"
5512
5513 if test "$enableval" = yes; then
5514 ac_cv_use_splines='wxUSE_SPLINES=yes'
5515 else
5516 ac_cv_use_splines='wxUSE_SPLINES=no'
5517 fi
5518
5519else
5520
5521 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5522 if test "x$LINE" != x ; then
5523 eval "DEFAULT_$LINE"
5524 else
5525 no_cache=1
5526 fi
5527
5528 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5529
5530fi
5531
5532
5533 eval "$ac_cv_use_splines"
5534 if test "$no_cache" != 1; then
5535 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5536 fi
5537
5538 if test "$wxUSE_SPLINES" = yes; then
5539 echo "$ac_t""yes" 1>&6
5540 else
5541 echo "$ac_t""no" 1>&6
5542 fi
5543
5544
5545 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
00cf1208 5546echo "configure:5547: checking "for --enable-validators"" >&5
10f2d63a
VZ
5547 no_cache=0
5548 # Check whether --enable-validators or --disable-validators was given.
5549if test "${enable_validators+set}" = set; then
5550 enableval="$enable_validators"
5551
5552 if test "$enableval" = yes; then
5553 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5554 else
5555 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5556 fi
5557
5558else
5559
5560 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5561 if test "x$LINE" != x ; then
5562 eval "DEFAULT_$LINE"
5563 else
5564 no_cache=1
5565 fi
5566
5567 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5568
5569fi
5570
5571
5572 eval "$ac_cv_use_validators"
5573 if test "$no_cache" != 1; then
5574 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5575 fi
5576
5577 if test "$wxUSE_VALIDATORS" = yes; then
5578 echo "$ac_t""yes" 1>&6
5579 else
5580 echo "$ac_t""no" 1>&6
5581 fi
5582
5583
5584 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
00cf1208 5585echo "configure:5586: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5586 no_cache=0
5587 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5588if test "${enable_busyinfo+set}" = set; then
5589 enableval="$enable_busyinfo"
5590
5591 if test "$enableval" = yes; then
5592 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5593 else
5594 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5595 fi
5596
5597else
5598
5599 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5600 if test "x$LINE" != x ; then
5601 eval "DEFAULT_$LINE"
5602 else
5603 no_cache=1
5604 fi
5605
5606 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5607
5608fi
5609
5610
5611 eval "$ac_cv_use_busyinfo"
5612 if test "$no_cache" != 1; then
5613 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5614 fi
5615
5616 if test "$wxUSE_BUSYINFO" = yes; then
5617 echo "$ac_t""yes" 1>&6
5618 else
5619 echo "$ac_t""no" 1>&6
5620 fi
5621
5622
9b33fe02 5623 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
00cf1208 5624echo "configure:5625: checking "for --enable-plot"" >&5
9b33fe02
VZ
5625 no_cache=0
5626 # Check whether --enable-plot or --disable-plot was given.
5627if test "${enable_plot+set}" = set; then
5628 enableval="$enable_plot"
5629
5630 if test "$enableval" = yes; then
5631 ac_cv_use_plot='wxUSE_PLOT=yes'
5632 else
5633 ac_cv_use_plot='wxUSE_PLOT=no'
5634 fi
5635
5636else
5637
5638 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5639 if test "x$LINE" != x ; then
5640 eval "DEFAULT_$LINE"
5641 else
5642 no_cache=1
5643 fi
5644
5645 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5646
5647fi
5648
5649
5650 eval "$ac_cv_use_plot"
5651 if test "$no_cache" != 1; then
5652 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5653 fi
5654
5655 if test "$wxUSE_PLOT" = yes; then
5656 echo "$ac_t""yes" 1>&6
5657 else
5658 echo "$ac_t""no" 1>&6
5659 fi
5660
5661
10f2d63a
VZ
5662
5663
5664 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
00cf1208 5665echo "configure:5666: checking "for --enable-gif"" >&5
10f2d63a
VZ
5666 no_cache=0
5667 # Check whether --enable-gif or --disable-gif was given.
5668if test "${enable_gif+set}" = set; then
5669 enableval="$enable_gif"
5670
5671 if test "$enableval" = yes; then
5672 ac_cv_use_gif='wxUSE_GIF=yes'
5673 else
5674 ac_cv_use_gif='wxUSE_GIF=no'
5675 fi
5676
5677else
5678
5679 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5680 if test "x$LINE" != x ; then
5681 eval "DEFAULT_$LINE"
5682 else
5683 no_cache=1
5684 fi
5685
5686 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5687
5688fi
5689
5690
5691 eval "$ac_cv_use_gif"
5692 if test "$no_cache" != 1; then
5693 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5694 fi
5695
5696 if test "$wxUSE_GIF" = yes; then
5697 echo "$ac_t""yes" 1>&6
5698 else
5699 echo "$ac_t""no" 1>&6
5700 fi
5701
5702
5703 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
00cf1208 5704echo "configure:5705: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5705 no_cache=0
5706 # Check whether --enable-pcx or --disable-pcx was given.
5707if test "${enable_pcx+set}" = set; then
5708 enableval="$enable_pcx"
5709
5710 if test "$enableval" = yes; then
5711 ac_cv_use_pcx='wxUSE_PCX=yes'
5712 else
5713 ac_cv_use_pcx='wxUSE_PCX=no'
5714 fi
5715
5716else
5717
5718 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5719 if test "x$LINE" != x ; then
5720 eval "DEFAULT_$LINE"
5721 else
5722 no_cache=1
5723 fi
5724
5725 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5726
5727fi
5728
5729
5730 eval "$ac_cv_use_pcx"
5731 if test "$no_cache" != 1; then
5732 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5733 fi
5734
5735 if test "$wxUSE_PCX" = yes; then
5736 echo "$ac_t""yes" 1>&6
5737 else
5738 echo "$ac_t""no" 1>&6
5739 fi
5740
5741
5742 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
00cf1208 5743echo "configure:5744: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5744 no_cache=0
5745 # Check whether --enable-pnm or --disable-pnm was given.
5746if test "${enable_pnm+set}" = set; then
5747 enableval="$enable_pnm"
5748
5749 if test "$enableval" = yes; then
5750 ac_cv_use_pnm='wxUSE_PNM=yes'
5751 else
5752 ac_cv_use_pnm='wxUSE_PNM=no'
5753 fi
5754
5755else
5756
5757 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5758 if test "x$LINE" != x ; then
5759 eval "DEFAULT_$LINE"
5760 else
5761 no_cache=1
5762 fi
5763
5764 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5765
5766fi
5767
5768
5769 eval "$ac_cv_use_pnm"
5770 if test "$no_cache" != 1; then
5771 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5772 fi
5773
5774 if test "$wxUSE_PNM" = yes; then
5775 echo "$ac_t""yes" 1>&6
5776 else
5777 echo "$ac_t""no" 1>&6
5778 fi
5779
5780
b12915c1
VZ
5781fi
5782
10f2d63a
VZ
5783
5784 echo "saving argument cache $wx_arg_cache_file"
5785 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5786
5787
5788
5789echo $ac_n "checking for toolkit""... $ac_c" 1>&6
00cf1208 5790echo "configure:5791: checking for toolkit" >&5
10f2d63a
VZ
5791
5792if test "$wxUSE_GUI" = "yes"; then
5793
b12915c1
VZ
5794if test "$USE_BEOS" = 1; then
5795 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5796fi
5797
10f2d63a
VZ
5798if test "$TOOLKIT_GIVEN" = 1; then
5799 for toolkit in `echo $ALL_TOOLKITS`; do
5800 var=wxUSE_$toolkit
5801 eval "value=\$${var}"
5802 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5803 done
5804else
5805 for toolkit in `echo $ALL_TOOLKITS`; do
5806 if test "$has_toolkit_in_cache" != 1; then
5807 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5808 else
5809 var=DEFAULT_wxUSE_$toolkit
5810 fi
5811 eval "wxUSE_$toolkit=\$${var}"
5812 done
5813fi
5814
ec14dd32 5815NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 5816
ec14dd32
VZ
5817case "${host}" in
5818 *-pc-os2_emx )
5819 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5820 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5821 LEX_STEM="lexyy"
5822 ;;
5823 *)
5824 PATH_IFS=':'
5825 LEX_STEM="lex.yy"
cf27ef00 5826 PROGRAM_EXT=
ec14dd32
VZ
5827 ;;
5828esac
10f2d63a
VZ
5829
5830case "$NUM_TOOLKITS" in
5831 1)
5832 ;;
5833 0)
5834 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5835 ;;
5836 *)
5837 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5838esac
5839
5840for toolkit in `echo $ALL_TOOLKITS`; do
5841 var=wxUSE_$toolkit
5842 eval "value=\$${var}"
5843 if test "x$value" != x; then
5844 cache_var=CACHE_$toolkit
5845 eval "cache=\$${cache_var}"
5846 if test "$cache" = 1; then
5847 echo "$var=$value" >> ${wx_arg_cache_file}
5848 fi
5849 if test "$value" = 1; then
5850 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5851 fi
5852 fi
5853done
5854
5855else
cf27ef00 5856 PATH_IFS=':'
10f2d63a
VZ
5857 echo "$ac_t""base only" 1>&6
5858fi
5859
5860
5861cat > confcache <<\EOF
5862# This file is a shell script that caches the results of configure
5863# tests run on this system so they can be shared between configure
5864# scripts and configure runs. It is not useful on other systems.
5865# If it contains results you don't want to keep, you may remove or edit it.
5866#
5867# By default, configure uses ./config.cache as the cache file,
5868# creating it if it does not exist already. You can give configure
5869# the --cache-file=FILE option to use a different cache file; that is
5870# what configure does when it calls configure scripts in
5871# subdirectories, so they share the cache.
5872# Giving --cache-file=/dev/null disables caching, for debugging configure.
5873# config.status only pays attention to the cache file if you give it the
5874# --recheck option to rerun configure.
5875#
5876EOF
5877# The following way of writing the cache mishandles newlines in values,
5878# but we know of no workaround that is simple, portable, and efficient.
5879# So, don't put newlines in cache variables' values.
5880# Ultrix sh set writes to stderr and can't be redirected directly,
5881# and sets the high bit in the cache file unless we assign to the vars.
5882(set) 2>&1 |
5883 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5884 *ac_space=\ *)
5885 # `set' does not quote correctly, so add quotes (double-quote substitution
5886 # turns \\\\ into \\, and sed turns \\ into \).
5887 sed -n \
5888 -e "s/'/'\\\\''/g" \
5889 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5890 ;;
5891 *)
5892 # `set' quotes correctly as required by POSIX, so do not add quotes.
5893 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5894 ;;
5895 esac >> confcache
5896if cmp -s $cache_file confcache; then
5897 :
5898else
5899 if test -w $cache_file; then
5900 echo "updating cache $cache_file"
5901 cat confcache > $cache_file
5902 else
5903 echo "not updating unwritable cache $cache_file"
5904 fi
5905fi
5906rm -f confcache
5907
5908
5909if eval "test $host != $build"; then
5910 if eval "test $host_alias != NONE"; then
5911 CC=$host_alias-gcc
5912 CXX=$host_alias-c++
5913 AR=$host_alias-ar
5914 RANLIB=$host_alias-ranlib
5915 DLLTOOL=$host_alias-dlltool
5916 LD=$host_alias-ld
5917 NM=$host_alias-nm
5918 STRIP=$host_alias-strip
5919 fi
5920fi
5921
5922# Extract the first word of "gcc", so it can be a program name with args.
5923set dummy gcc; ac_word=$2
5924echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
00cf1208 5925echo "configure:5926: checking for $ac_word" >&5
10f2d63a
VZ
5926if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5927 echo $ac_n "(cached) $ac_c" 1>&6
5928else
5929 if test -n "$CC"; then
5930 ac_cv_prog_CC="$CC" # Let the user override the test.
5931else
5932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5933 ac_dummy="$PATH"
5934 for ac_dir in $ac_dummy; do
5935 test -z "$ac_dir" && ac_dir=.
5936 if test -f $ac_dir/$ac_word; then
5937 ac_cv_prog_CC="gcc"
5938 break
5939 fi
5940 done
5941 IFS="$ac_save_ifs"
5942fi
5943fi
5944CC="$ac_cv_prog_CC"
5945if test -n "$CC"; then
5946 echo "$ac_t""$CC" 1>&6
5947else
5948 echo "$ac_t""no" 1>&6
5949fi
5950
5951if test -z "$CC"; then
5952 # Extract the first word of "cc", so it can be a program name with args.
5953set dummy cc; ac_word=$2
5954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
00cf1208 5955echo "configure:5956: checking for $ac_word" >&5
10f2d63a
VZ
5956if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5958else
5959 if test -n "$CC"; then
5960 ac_cv_prog_CC="$CC" # Let the user override the test.
5961else
5962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5963 ac_prog_rejected=no
5964 ac_dummy="$PATH"
5965 for ac_dir in $ac_dummy; do
5966 test -z "$ac_dir" && ac_dir=.
5967 if test -f $ac_dir/$ac_word; then
5968 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5969 ac_prog_rejected=yes
5970 continue
5971 fi
5972 ac_cv_prog_CC="cc"
5973 break
5974 fi
5975 done
5976 IFS="$ac_save_ifs"
5977if test $ac_prog_rejected = yes; then
5978 # We found a bogon in the path, so make sure we never use it.
5979 set dummy $ac_cv_prog_CC
5980 shift
5981 if test $# -gt 0; then
5982 # We chose a different compiler from the bogus one.
5983 # However, it has the same basename, so the bogon will be chosen
5984 # first if we set CC to just the basename; use the full file name.
5985 shift
5986 set dummy "$ac_dir/$ac_word" "$@"
5987 shift
5988 ac_cv_prog_CC="$@"
5989 fi
5990fi
5991fi
5992fi
5993CC="$ac_cv_prog_CC"
5994if test -n "$CC"; then
5995 echo "$ac_t""$CC" 1>&6
5996else
5997 echo "$ac_t""no" 1>&6
5998fi
5999
6000 if test -z "$CC"; then
6001 case "`uname -s`" in
6002 *win32* | *WIN32*)
6003 # Extract the first word of "cl", so it can be a program name with args.
6004set dummy cl; ac_word=$2
6005echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
00cf1208 6006echo "configure:6007: checking for $ac_word" >&5
10f2d63a
VZ
6007if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6008 echo $ac_n "(cached) $ac_c" 1>&6
6009else
6010 if test -n "$CC"; then
6011 ac_cv_prog_CC="$CC" # Let the user override the test.
6012else
6013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6014 ac_dummy="$PATH"
6015 for ac_dir in $ac_dummy; do
6016 test -z "$ac_dir" && ac_dir=.
6017 if test -f $ac_dir/$ac_word; then
6018 ac_cv_prog_CC="cl"
6019 break
6020 fi
6021 done
6022 IFS="$ac_save_ifs"
6023fi
6024fi
6025CC="$ac_cv_prog_CC"
6026if test -n "$CC"; then
6027 echo "$ac_t""$CC" 1>&6
6028else
6029 echo "$ac_t""no" 1>&6
6030fi
6031 ;;
6032 esac
6033 fi
6034 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6035fi
6036
6037echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
00cf1208 6038echo "configure:6039: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6039
6040ac_ext=c
6041# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6042ac_cpp='$CPP $CPPFLAGS'
6043ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6044ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6045cross_compiling=$ac_cv_prog_cc_cross
6046
6047cat > conftest.$ac_ext << EOF
6048
00cf1208 6049#line 6050 "configure"
10f2d63a
VZ
6050#include "confdefs.h"
6051
6052main(){return(0);}
6053EOF
00cf1208 6054if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6055 ac_cv_prog_cc_works=yes
6056 # If we can't run a trivial program, we are probably using a cross compiler.
6057 if (./conftest; exit) 2>/dev/null; then
6058 ac_cv_prog_cc_cross=no
6059 else
6060 ac_cv_prog_cc_cross=yes
6061 fi
6062else
6063 echo "configure: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6065 ac_cv_prog_cc_works=no
6066fi
6067rm -fr conftest*
6068ac_ext=c
6069# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6070ac_cpp='$CPP $CPPFLAGS'
6071ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6072ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6073cross_compiling=$ac_cv_prog_cc_cross
6074
6075echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6076if test $ac_cv_prog_cc_works = no; then
6077 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6078fi
6079echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
00cf1208 6080echo "configure:6081: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6081echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6082cross_compiling=$ac_cv_prog_cc_cross
6083
6084echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
00cf1208 6085echo "configure:6086: checking whether we are using GNU C" >&5
10f2d63a
VZ
6086if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6087 echo $ac_n "(cached) $ac_c" 1>&6
6088else
6089 cat > conftest.c <<EOF
6090#ifdef __GNUC__
6091 yes;
6092#endif
6093EOF
00cf1208 6094if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6095 ac_cv_prog_gcc=yes
6096else
6097 ac_cv_prog_gcc=no
6098fi
6099fi
6100
6101echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6102
6103if test $ac_cv_prog_gcc = yes; then
6104 GCC=yes
6105else
6106 GCC=
6107fi
6108
6109ac_test_CFLAGS="${CFLAGS+set}"
6110ac_save_CFLAGS="$CFLAGS"
6111CFLAGS=
6112echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
00cf1208 6113echo "configure:6114: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6114if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6115 echo $ac_n "(cached) $ac_c" 1>&6
6116else
6117 echo 'void f(){}' > conftest.c
6118if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6119 ac_cv_prog_cc_g=yes
6120else
6121 ac_cv_prog_cc_g=no
6122fi
6123rm -f conftest*
6124
6125fi
6126
6127echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6128if test "$ac_test_CFLAGS" = set; then
6129 CFLAGS="$ac_save_CFLAGS"
6130elif test $ac_cv_prog_cc_g = yes; then
6131 if test "$GCC" = yes; then
6132 CFLAGS="-g -O2"
6133 else
6134 CFLAGS="-g"
6135 fi
6136else
6137 if test "$GCC" = yes; then
6138 CFLAGS="-O2"
6139 else
6140 CFLAGS=
6141 fi
6142fi
6143
6144
6145CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6146
6147echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
00cf1208 6148echo "configure:6149: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6149# On Suns, sometimes $CPP names a directory.
6150if test -n "$CPP" && test -d "$CPP"; then
6151 CPP=
6152fi
6153if test -z "$CPP"; then
6154if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6155 echo $ac_n "(cached) $ac_c" 1>&6
6156else
6157 # This must be in double quotes, not single quotes, because CPP may get
6158 # substituted into the Makefile and "${CC-cc}" will confuse make.
6159 CPP="${CC-cc} -E"
6160 # On the NeXT, cc -E runs the code through the compiler's parser,
6161 # not just through cpp.
6162 cat > conftest.$ac_ext <<EOF
00cf1208 6163#line 6164 "configure"
10f2d63a
VZ
6164#include "confdefs.h"
6165#include <assert.h>
6166Syntax Error
6167EOF
6168ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 6169{ (eval echo configure:6170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6170ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6171if test -z "$ac_err"; then
6172 :
6173else
6174 echo "$ac_err" >&5
6175 echo "configure: failed program was:" >&5
6176 cat conftest.$ac_ext >&5
6177 rm -rf conftest*
6178 CPP="${CC-cc} -E -traditional-cpp"
6179 cat > conftest.$ac_ext <<EOF
00cf1208 6180#line 6181 "configure"
10f2d63a
VZ
6181#include "confdefs.h"
6182#include <assert.h>
6183Syntax Error
6184EOF
6185ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 6186{ (eval echo configure:6187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6187ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6188if test -z "$ac_err"; then
6189 :
6190else
6191 echo "$ac_err" >&5
6192 echo "configure: failed program was:" >&5
6193 cat conftest.$ac_ext >&5
6194 rm -rf conftest*
6195 CPP="${CC-cc} -nologo -E"
6196 cat > conftest.$ac_ext <<EOF
00cf1208 6197#line 6198 "configure"
10f2d63a
VZ
6198#include "confdefs.h"
6199#include <assert.h>
6200Syntax Error
6201EOF
6202ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 6203{ (eval echo configure:6204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6204ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6205if test -z "$ac_err"; then
6206 :
6207else
6208 echo "$ac_err" >&5
6209 echo "configure: failed program was:" >&5
6210 cat conftest.$ac_ext >&5
6211 rm -rf conftest*
6212 CPP=/lib/cpp
6213fi
6214rm -f conftest*
6215fi
6216rm -f conftest*
6217fi
6218rm -f conftest*
6219 ac_cv_prog_CPP="$CPP"
6220fi
6221 CPP="$ac_cv_prog_CPP"
6222else
6223 ac_cv_prog_CPP="$CPP"
6224fi
6225echo "$ac_t""$CPP" 1>&6
6226
6227
6228if test $ac_cv_prog_gcc = yes; then
6229 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
00cf1208 6230echo "configure:6231: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6231if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6
6233else
6234 ac_pattern="Autoconf.*'x'"
6235 cat > conftest.$ac_ext <<EOF
00cf1208 6236#line 6237 "configure"
10f2d63a
VZ
6237#include "confdefs.h"
6238#include <sgtty.h>
6239Autoconf TIOCGETP
6240EOF
6241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6242 egrep "$ac_pattern" >/dev/null 2>&1; then
6243 rm -rf conftest*
6244 ac_cv_prog_gcc_traditional=yes
6245else
6246 rm -rf conftest*
6247 ac_cv_prog_gcc_traditional=no
6248fi
6249rm -f conftest*
6250
6251
6252 if test $ac_cv_prog_gcc_traditional = no; then
6253 cat > conftest.$ac_ext <<EOF
00cf1208 6254#line 6255 "configure"
10f2d63a
VZ
6255#include "confdefs.h"
6256#include <termio.h>
6257Autoconf TCGETA
6258EOF
6259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6260 egrep "$ac_pattern" >/dev/null 2>&1; then
6261 rm -rf conftest*
6262 ac_cv_prog_gcc_traditional=yes
6263fi
6264rm -f conftest*
6265
6266 fi
6267fi
6268
6269echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6270 if test $ac_cv_prog_gcc_traditional = yes; then
6271 CC="$CC -traditional"
6272 fi
6273fi
6274
6275
6276
6277ac_ext=C
6278# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6279ac_cpp='$CXXCPP $CPPFLAGS'
6280ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6281ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6282cross_compiling=$ac_cv_prog_cxx_cross
6283
6284
6285for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6286do
6287# Extract the first word of "$ac_prog", so it can be a program name with args.
6288set dummy $ac_prog; ac_word=$2
6289echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
00cf1208 6290echo "configure:6291: checking for $ac_word" >&5
10f2d63a
VZ
6291if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6292 echo $ac_n "(cached) $ac_c" 1>&6
6293else
6294 if test -n "$CXX"; then
6295 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6296else
6297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6298 ac_dummy="$PATH"
6299 for ac_dir in $ac_dummy; do
6300 test -z "$ac_dir" && ac_dir=.
6301 if test -f $ac_dir/$ac_word; then
6302 ac_cv_prog_CXX="$ac_prog"
6303 break
6304 fi
6305 done
6306 IFS="$ac_save_ifs"
6307fi
6308fi
6309CXX="$ac_cv_prog_CXX"
6310if test -n "$CXX"; then
6311 echo "$ac_t""$CXX" 1>&6
6312else
6313 echo "$ac_t""no" 1>&6
6314fi
6315
6316test -n "$CXX" && break
6317done
6318test -n "$CXX" || CXX="gcc"
6319
6320
6321echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
00cf1208 6322echo "configure:6323: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6323
6324ac_ext=C
6325# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6326ac_cpp='$CXXCPP $CPPFLAGS'
6327ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6328ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6329cross_compiling=$ac_cv_prog_cxx_cross
6330
6331cat > conftest.$ac_ext << EOF
6332
00cf1208 6333#line 6334 "configure"
10f2d63a
VZ
6334#include "confdefs.h"
6335
6336int main(){return(0);}
6337EOF
00cf1208 6338if { (eval echo configure:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6339 ac_cv_prog_cxx_works=yes
6340 # If we can't run a trivial program, we are probably using a cross compiler.
6341 if (./conftest; exit) 2>/dev/null; then
6342 ac_cv_prog_cxx_cross=no
6343 else
6344 ac_cv_prog_cxx_cross=yes
6345 fi
6346else
6347 echo "configure: failed program was:" >&5
6348 cat conftest.$ac_ext >&5
6349 ac_cv_prog_cxx_works=no
6350fi
6351rm -fr conftest*
6352ac_ext=C
6353# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6354ac_cpp='$CXXCPP $CPPFLAGS'
6355ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6356ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6357cross_compiling=$ac_cv_prog_cxx_cross
6358
6359echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6360if test $ac_cv_prog_cxx_works = no; then
6361 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6362fi
6363echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
00cf1208 6364echo "configure:6365: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6365echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6366cross_compiling=$ac_cv_prog_cxx_cross
6367
6368echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
00cf1208 6369echo "configure:6370: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6370if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6372else
6373 cat > conftest.C <<EOF
6374#ifdef __GNUC__
6375 yes;
6376#endif
6377EOF
00cf1208 6378if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6379 ac_cv_prog_gxx=yes
6380else
6381 ac_cv_prog_gxx=no
6382fi
6383fi
6384
6385echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6386
6387if test $ac_cv_prog_gxx = yes; then
6388 GXX=yes
6389else
6390 GXX=
6391fi
6392
6393ac_test_CXXFLAGS="${CXXFLAGS+set}"
6394ac_save_CXXFLAGS="$CXXFLAGS"
6395CXXFLAGS=
6396echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
00cf1208 6397echo "configure:6398: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6398if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6400else
6401 echo 'void f(){}' > conftest.cc
6402if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6403 ac_cv_prog_cxx_g=yes
6404else
6405 ac_cv_prog_cxx_g=no
6406fi
6407rm -f conftest*
6408
6409fi
6410
6411echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6412if test "$ac_test_CXXFLAGS" = set; then
6413 CXXFLAGS="$ac_save_CXXFLAGS"
6414elif test $ac_cv_prog_cxx_g = yes; then
6415 if test "$GXX" = yes; then
6416 CXXFLAGS="-g -O2"
6417 else
6418 CXXFLAGS="-g"
6419 fi
6420else
6421 if test "$GXX" = yes; then
6422 CXXFLAGS="-O2"
6423 else
6424 CXXFLAGS=
6425 fi
6426fi
6427
6428
6429echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
00cf1208 6430echo "configure:6431: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6431if test -z "$CXXCPP"; then
6432if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6433 echo $ac_n "(cached) $ac_c" 1>&6
6434else
6435 ac_ext=C
6436# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6437ac_cpp='$CXXCPP $CPPFLAGS'
6438ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6439ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6440cross_compiling=$ac_cv_prog_cxx_cross
6441 CXXCPP="${CXX-g++} -E"
6442 cat > conftest.$ac_ext <<EOF
00cf1208 6443#line 6444 "configure"
10f2d63a
VZ
6444#include "confdefs.h"
6445#include <stdlib.h>
6446EOF
6447ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 6448{ (eval echo configure:6449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6449ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6450if test -z "$ac_err"; then
6451 :
6452else
6453 echo "$ac_err" >&5
6454 echo "configure: failed program was:" >&5
6455 cat conftest.$ac_ext >&5
6456 rm -rf conftest*
6457 CXXCPP=/lib/cpp
6458fi
6459rm -f conftest*
6460 ac_cv_prog_CXXCPP="$CXXCPP"
6461ac_ext=C
6462# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6463ac_cpp='$CXXCPP $CPPFLAGS'
6464ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6465ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6466cross_compiling=$ac_cv_prog_cxx_cross
6467fi
6468fi
6469CXXCPP="$ac_cv_prog_CXXCPP"
6470echo "$ac_t""$CXXCPP" 1>&6
6471
6472
6473CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6474
6475ac_ext=c
6476# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6477ac_cpp='$CPP $CPPFLAGS'
6478ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6479ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6480cross_compiling=$ac_cv_prog_cc_cross
6481
6482
6483# Extract the first word of "ranlib", so it can be a program name with args.
6484set dummy ranlib; ac_word=$2
6485echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
00cf1208 6486echo "configure:6487: checking for $ac_word" >&5
10f2d63a
VZ
6487if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6488 echo $ac_n "(cached) $ac_c" 1>&6
6489else
6490 if test -n "$RANLIB"; then
6491 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6492else
6493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6494 ac_dummy="$PATH"
6495 for ac_dir in $ac_dummy; do
6496 test -z "$ac_dir" && ac_dir=.
6497 if test -f $ac_dir/$ac_word; then
6498 ac_cv_prog_RANLIB="ranlib"
6499 break
6500 fi
6501 done
6502 IFS="$ac_save_ifs"
6503 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6504fi
6505fi
6506RANLIB="$ac_cv_prog_RANLIB"
6507if test -n "$RANLIB"; then
6508 echo "$ac_t""$RANLIB" 1>&6
6509else
6510 echo "$ac_t""no" 1>&6
6511fi
6512
6513
6514# Extract the first word of "ar", so it can be a program name with args.
6515set dummy ar; ac_word=$2
6516echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
00cf1208 6517echo "configure:6518: checking for $ac_word" >&5
10f2d63a
VZ
6518if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6519 echo $ac_n "(cached) $ac_c" 1>&6
6520else
6521 if test -n "$AR"; then
6522 ac_cv_prog_AR="$AR" # Let the user override the test.
6523else
6524 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6525 ac_dummy="$PATH"
6526 for ac_dir in $ac_dummy; do
6527 test -z "$ac_dir" && ac_dir=.
6528 if test -f $ac_dir/$ac_word; then
6529 ac_cv_prog_AR="ar"
6530 break
6531 fi
6532 done
6533 IFS="$ac_save_ifs"
6534 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6535fi
6536fi
6537AR="$ac_cv_prog_AR"
6538if test -n "$AR"; then
6539 echo "$ac_t""$AR" 1>&6
6540else
6541 echo "$ac_t""no" 1>&6
6542fi
6543
6544
6545# Find a good install program. We prefer a C program (faster),
6546# so one script is as good as another. But avoid the broken or
6547# incompatible versions:
6548# SysV /etc/install, /usr/sbin/install
6549# SunOS /usr/etc/install
6550# IRIX /sbin/install
6551# AIX /bin/install
6552# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6553# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6554# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6555# ./install, which can be erroneously created by make from ./install.sh.
6556echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
00cf1208 6557echo "configure:6558: checking for a BSD compatible install" >&5
10f2d63a
VZ
6558if test -z "$INSTALL"; then
6559if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6560 echo $ac_n "(cached) $ac_c" 1>&6
6561else
6562 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6563 for ac_dir in $PATH; do
6564 # Account for people who put trailing slashes in PATH elements.
6565 case "$ac_dir/" in
6566 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6567 *)
6568 # OSF1 and SCO ODT 3.0 have their own names for install.
6569 # Don't use installbsd from OSF since it installs stuff as root
6570 # by default.
6571 for ac_prog in ginstall scoinst install; do
6572 if test -f $ac_dir/$ac_prog; then
6573 if test $ac_prog = install &&
6574 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6575 # AIX install. It has an incompatible calling convention.
6576 :
6577 else
6578 ac_cv_path_install="$ac_dir/$ac_prog -c"
6579 break 2
6580 fi
6581 fi
6582 done
6583 ;;
6584 esac
6585 done
6586 IFS="$ac_save_IFS"
6587
6588fi
6589 if test "${ac_cv_path_install+set}" = set; then
6590 INSTALL="$ac_cv_path_install"
6591 else
6592 # As a last resort, use the slow shell script. We don't cache a
6593 # path for INSTALL within a source directory, because that will
6594 # break other packages using the cache if that directory is
6595 # removed, or if the path is relative.
6596 INSTALL="$ac_install_sh"
6597 fi
6598fi
6599echo "$ac_t""$INSTALL" 1>&6
6600
6601# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6602# It thinks the first close brace ends the variable substitution.
6603test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6604
6605test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6606
6607test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6608
6609
6610# Extract the first word of "strip", so it can be a program name with args.
6611set dummy strip; ac_word=$2
6612echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
00cf1208 6613echo "configure:6614: checking for $ac_word" >&5
10f2d63a
VZ
6614if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6615 echo $ac_n "(cached) $ac_c" 1>&6
6616else
6617 if test -n "$STRIP"; then
6618 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6619else
6620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6621 ac_dummy="$PATH"
6622 for ac_dir in $ac_dummy; do
6623 test -z "$ac_dir" && ac_dir=.
6624 if test -f $ac_dir/$ac_word; then
6625 ac_cv_prog_STRIP="strip"
6626 break
6627 fi
6628 done
6629 IFS="$ac_save_ifs"
6630 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6631fi
6632fi
6633STRIP="$ac_cv_prog_STRIP"
6634if test -n "$STRIP"; then
6635 echo "$ac_t""$STRIP" 1>&6
6636else
6637 echo "$ac_t""no" 1>&6
6638fi
6639
6640
6641echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
00cf1208 6642echo "configure:6643: checking "make for VPATH support"" >&5
10f2d63a
VZ
6643cat - << EOF > confMake
6644check : file
6645 cp \$? \$@
6646 cp \$? final_file
6647EOF
6648
6649if test ! -d sub ; then
6650 mkdir sub
6651fi
6652echo dummy > sub/file
6653${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6654RESULT=$?
6655rm -f sub/file check final_file confMake
6656rmdir sub
6657if test "$RESULT" = 0; then
6658 echo "$ac_t""yes" 1>&6
6659else
6660 echo "$ac_t""no" 1>&6
6661 { echo "configure: error: You need a make-utility that is able to use the variable
6662VPATH correctly.
6663If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6664fi
6665
6666for ac_prog in 'bison -y' byacc
6667do
6668# Extract the first word of "$ac_prog", so it can be a program name with args.
6669set dummy $ac_prog; ac_word=$2
6670echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
00cf1208 6671echo "configure:6672: checking for $ac_word" >&5
10f2d63a
VZ
6672if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6673 echo $ac_n "(cached) $ac_c" 1>&6
6674else
6675 if test -n "$YACC"; then
6676 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6677else
6678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6679 ac_dummy="$PATH"
6680 for ac_dir in $ac_dummy; do
6681 test -z "$ac_dir" && ac_dir=.
6682 if test -f $ac_dir/$ac_word; then
6683 ac_cv_prog_YACC="$ac_prog"
6684 break
6685 fi
6686 done
6687 IFS="$ac_save_ifs"
6688fi
6689fi
6690YACC="$ac_cv_prog_YACC"
6691if test -n "$YACC"; then
6692 echo "$ac_t""$YACC" 1>&6
6693else
6694 echo "$ac_t""no" 1>&6
6695fi
6696
6697test -n "$YACC" && break
6698done
6699test -n "$YACC" || YACC="yacc"
6700
6701
6702# Extract the first word of "flex", so it can be a program name with args.
6703set dummy flex; ac_word=$2
6704echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
00cf1208 6705echo "configure:6706: checking for $ac_word" >&5
10f2d63a
VZ
6706if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6707 echo $ac_n "(cached) $ac_c" 1>&6
6708else
6709 if test -n "$LEX"; then
6710 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6711else
6712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6713 ac_dummy="$PATH"
6714 for ac_dir in $ac_dummy; do
6715 test -z "$ac_dir" && ac_dir=.
6716 if test -f $ac_dir/$ac_word; then
6717 ac_cv_prog_LEX="flex"
6718 break
6719 fi
6720 done
6721 IFS="$ac_save_ifs"
6722 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6723fi
6724fi
6725LEX="$ac_cv_prog_LEX"
6726if test -n "$LEX"; then
6727 echo "$ac_t""$LEX" 1>&6
6728else
6729 echo "$ac_t""no" 1>&6
6730fi
6731
6732if test -z "$LEXLIB"
6733then
6734 case "$LEX" in
6735 flex*) ac_lib=fl ;;
6736 *) ac_lib=l ;;
6737 esac
6738 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
00cf1208 6739echo "configure:6740: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6740ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6741if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6742 echo $ac_n "(cached) $ac_c" 1>&6
6743else
6744 ac_save_LIBS="$LIBS"
6745LIBS="-l$ac_lib $LIBS"
6746cat > conftest.$ac_ext <<EOF
00cf1208 6747#line 6748 "configure"
10f2d63a
VZ
6748#include "confdefs.h"
6749/* Override any gcc2 internal prototype to avoid an error. */
6750/* We use char because int might match the return type of a gcc2
6751 builtin and then its argument prototype would still apply. */
6752char yywrap();
6753
6754int main() {
6755yywrap()
6756; return 0; }
6757EOF
00cf1208 6758if { (eval echo configure:6759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6759 rm -rf conftest*
6760 eval "ac_cv_lib_$ac_lib_var=yes"
6761else
6762 echo "configure: failed program was:" >&5
6763 cat conftest.$ac_ext >&5
6764 rm -rf conftest*
6765 eval "ac_cv_lib_$ac_lib_var=no"
6766fi
6767rm -f conftest*
6768LIBS="$ac_save_LIBS"
6769
6770fi
6771if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6772 echo "$ac_t""yes" 1>&6
6773 LEXLIB="-l$ac_lib"
6774else
6775 echo "$ac_t""no" 1>&6
6776fi
6777
6778fi
6779
6780
6781echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
00cf1208 6782echo "configure:6783: checking whether ln -s works" >&5
10f2d63a
VZ
6783if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6784 echo $ac_n "(cached) $ac_c" 1>&6
6785else
6786 rm -f conftestdata
6787if ln -s X conftestdata 2>/dev/null
6788then
6789 rm -f conftestdata
6790 ac_cv_prog_LN_S="ln -s"
6791else
6792 ac_cv_prog_LN_S=ln
6793fi
6794fi
6795LN_S="$ac_cv_prog_LN_S"
6796if test "$ac_cv_prog_LN_S" = "ln -s"; then
6797 echo "$ac_t""yes" 1>&6
6798else
6799 echo "$ac_t""no" 1>&6
6800fi
6801
6802
6803
6804SEARCH_INCLUDE="\
6805 /usr/local/include \
6806 \
6807 /usr/Motif-1.2/include \
6808 /usr/Motif-2.1/include \
6809 \
6810 /usr/include/Motif1.2 \
6811 /opt/xpm/include/X11 \
6812 /opt/GBxpm/include/ \
6813 /opt/GBxpm/X11/include/ \
6814 \
6815 /usr/Motif1.2/include \
6816 /usr/dt/include \
afc31813
VZ
6817 /usr/openwin/include \
6818 \
10f2d63a
VZ
6819 /usr/include/Xm \
6820 \
6821 /usr/X11R6/include \
afc31813 6822 /usr/X11R6.4/include \
10f2d63a
VZ
6823 /usr/X11R5/include \
6824 /usr/X11R4/include \
6825 \
10f2d63a
VZ
6826 /usr/include/X11R6 \
6827 /usr/include/X11R5 \
6828 /usr/include/X11R4 \
6829 \
6830 /usr/local/X11R6/include \
6831 /usr/local/X11R5/include \
6832 /usr/local/X11R4/include \
6833 \
6834 /usr/local/include/X11R6 \
6835 /usr/local/include/X11R5 \
6836 /usr/local/include/X11R4 \
6837 \
6838 /usr/X11/include \
6839 /usr/include/X11 \
6840 /usr/local/X11/include \
6841 /usr/local/include/X11 \
6842 \
6843 /usr/X386/include \
6844 /usr/x386/include \
6845 /usr/XFree86/include/X11 \
6846 \
cf27ef00 6847 X:/XFree86/include \
ec14dd32
VZ
6848 X:/XFree86/include/X11 \
6849 \
10f2d63a
VZ
6850 /usr/include/gtk \
6851 /usr/local/include/gtk \
6852 /usr/include/glib \
6853 /usr/local/include/glib \
6854 \
6855 /usr/include/qt \
6856 /usr/local/include/qt \
6857 \
6858 /usr/include/windows \
6859 /usr/include/wine \
6860 /usr/local/include/wine \
6861 \
6862 /usr/unsupported/include \
6863 /usr/athena/include \
6864 /usr/local/x11r5/include \
6865 /usr/lpp/Xamples/include \
6866 \
10f2d63a 6867 /usr/openwin/share/include \
928b5c08
VZ
6868 \
6869 /usr/include"
10f2d63a
VZ
6870
6871SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6872
6873
6874cat > confcache <<\EOF
6875# This file is a shell script that caches the results of configure
6876# tests run on this system so they can be shared between configure
6877# scripts and configure runs. It is not useful on other systems.
6878# If it contains results you don't want to keep, you may remove or edit it.
6879#
6880# By default, configure uses ./config.cache as the cache file,
6881# creating it if it does not exist already. You can give configure
6882# the --cache-file=FILE option to use a different cache file; that is
6883# what configure does when it calls configure scripts in
6884# subdirectories, so they share the cache.
6885# Giving --cache-file=/dev/null disables caching, for debugging configure.
6886# config.status only pays attention to the cache file if you give it the
6887# --recheck option to rerun configure.
6888#
6889EOF
6890# The following way of writing the cache mishandles newlines in values,
6891# but we know of no workaround that is simple, portable, and efficient.
6892# So, don't put newlines in cache variables' values.
6893# Ultrix sh set writes to stderr and can't be redirected directly,
6894# and sets the high bit in the cache file unless we assign to the vars.
6895(set) 2>&1 |
6896 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6897 *ac_space=\ *)
6898 # `set' does not quote correctly, so add quotes (double-quote substitution
6899 # turns \\\\ into \\, and sed turns \\ into \).
6900 sed -n \
6901 -e "s/'/'\\\\''/g" \
6902 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6903 ;;
6904 *)
6905 # `set' quotes correctly as required by POSIX, so do not add quotes.
6906 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6907 ;;
6908 esac >> confcache
6909if cmp -s $cache_file confcache; then
6910 :
6911else
6912 if test -w $cache_file; then
6913 echo "updating cache $cache_file"
6914 cat confcache > $cache_file
6915 else
6916 echo "not updating unwritable cache $cache_file"
6917 fi
6918fi
6919rm -f confcache
6920
6921
6922
dad6c0ea
VZ
6923AFMINSTALL=
6924
10f2d63a
VZ
6925if test "$wxUSE_GUI" = "yes"; then
6926
dad6c0ea
VZ
6927USE_GUI=1
6928
10f2d63a
VZ
6929TOOLKIT=
6930TOOLKIT_INCLUDE=
6931
6932GUIOBJS=
6933COMMONOBJS=
6934GENERICOBJS=
6935
6936GUI_TK_LIBRARY=
6937GUI_TK_LINK=
6938
6939WXGTK12=
13111b2a 6940WXGTK13=
10f2d63a
VZ
6941
6942WXWINE=
6943
10f2d63a
VZ
6944if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6945 if test "$cross_compiling" = "yes" ; then
6946 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6947 else
6948 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
00cf1208 6949echo "configure:6950: checking for Windows headers" >&5
10f2d63a
VZ
6950
6951ac_find_includes=
6952for ac_dir in $SEARCH_INCLUDE;
6953 do
6954 if test -f "$ac_dir/windows.h"; then
6955 ac_find_includes=$ac_dir
6956 break
6957 fi
6958 done
6959
6960 if test "$ac_find_includes" != "" ; then
6961 echo "$ac_t""found $ac_find_includes" 1>&6
6962 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6963 else
6964 echo "$ac_t""no" 1>&6
6965 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6966 fi
6967 fi
6968
6969 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6970 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6971
6972 if test "$wxUSE_MINGW" = 1; then
6973 LDFLAGS="$LDFLAGS -mwindows"
6974 fi
6975
6976 TOOLKIT=MSW
6977
6978 GUIOBJS="\$(MSW_GUIOBJS)"
6979 GUIHEADERS="\$(MSW_HEADERS)"
6980 COMMONOBJS="\$(MSW_COMMONOBJS)"
6981 GENERICOBJS="\$(MSW_GENERICOBJS)"
6982 UNIXOBJS=
6983 GUIDIST=MSW_DIST
10f2d63a
VZ
6984fi
6985
6986if test "$wxUSE_GTK" = 1; then
6987
6988 if test x$gtk_config_exec_prefix != x ; then
6989 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6990 if test x${GTK_CONFIG+set} != xset ; then
6991 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6992 fi
6993 fi
6994 if test x$gtk_config_prefix != x ; then
6995 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6996 if test x${GTK_CONFIG+set} != xset ; then
6997 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6998 fi
6999 fi
7000
7001 # Extract the first word of "gtk-config", so it can be a program name with args.
7002set dummy gtk-config; ac_word=$2
7003echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
00cf1208 7004echo "configure:7005: checking for $ac_word" >&5
10f2d63a
VZ
7005if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7006 echo $ac_n "(cached) $ac_c" 1>&6
7007else
7008 case "$GTK_CONFIG" in
7009 /*)
7010 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7011 ;;
7012 ?:/*)
7013 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7014 ;;
7015 *)
7016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7017 ac_dummy="$PATH"
7018 for ac_dir in $ac_dummy; do
7019 test -z "$ac_dir" && ac_dir=.
7020 if test -f $ac_dir/$ac_word; then
7021 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7022 break
7023 fi
7024 done
7025 IFS="$ac_save_ifs"
7026 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7027 ;;
7028esac
7029fi
7030GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7031if test -n "$GTK_CONFIG"; then
7032 echo "$ac_t""$GTK_CONFIG" 1>&6
7033else
7034 echo "$ac_t""no" 1>&6
7035fi
7036
04165bec 7037 min_gtk_version=1.2.3
10f2d63a 7038 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
00cf1208 7039echo "configure:7040: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7040 no_gtk=""
7041 if test "$GTK_CONFIG" != "no" ; then
7042 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7043 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7044 ac_save_CFLAGS="$CFLAGS"
7045 ac_save_LIBS="$LIBS"
7046 CFLAGS="$CFLAGS $GTK_CFLAGS"
7047 LIBS="$LIBS $GTK_LIBS"
7048 if test "$cross_compiling" = yes; then
7049 echo $ac_n "cross compiling; assumed OK... $ac_c"
7050else
7051 cat > conftest.$ac_ext <<EOF
00cf1208 7052#line 7053 "configure"
10f2d63a
VZ
7053#include "confdefs.h"
7054
7055#include <gtk/gtk.h>
f49f2b0c 7056#include <gtk/gtkfeatures.h>
10f2d63a
VZ
7057#include <stdio.h>
7058
7059int
7060main ()
7061{
7062 int major, minor, micro;
7063
7064 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7065 printf("%s, bad version string\n", "$min_gtk_version");
7066 exit(1);
7067 }
7068
f49f2b0c
RR
7069 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7070 (GTK_MINOR_VERSION != gtk_minor_version) ||
7071 (GTK_MICRO_VERSION != gtk_micro_version)) {
7072 printf("Headers vs. library version mismatch!\n");
7073 exit(1);
7074 }
7075
10f2d63a
VZ
7076 if (gtk_minor_version == 1) return FALSE;
7077
7078 return !((gtk_major_version > major) ||
7079 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7080 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7081}
7082
7083EOF
00cf1208 7084if { (eval echo configure:7085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7085then
7086 :
7087else
7088 echo "configure: failed program was:" >&5
7089 cat conftest.$ac_ext >&5
7090 rm -fr conftest*
7091 no_gtk=yes
7092fi
7093rm -fr conftest*
7094fi
7095
7096 CFLAGS="$ac_save_CFLAGS"
7097 LIBS="$ac_save_LIBS"
7098 else
7099 no_gtk=yes
7100 fi
7101 if test "x$no_gtk" = x ; then
7102 echo "$ac_t""yes" 1>&6
7103 WXGTK12=1
7104 else
7105 echo "$ac_t""no" 1>&6
7106 GTK_CFLAGS=""
7107 GTK_LIBS=""
7e99ad86 7108 :
10f2d63a
VZ
7109 fi
7110
7111
7112
7113
7e99ad86
VZ
7114 if test "$WXGTK12" != 1; then
7115 { echo "configure: error:
7116 Please check that gtk-config is in path, the directory
7117 where GTK+ libraries are installed (returned by
7118 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7119 equivalent variable and GTK+ is version 1.2.3 or above.
7120 " 1>&2; exit 1; }
7121 fi
7122
7123
10f2d63a 7124 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7125
7126
7127 GUI_TK_LIBRARY="$GTK_LIBS"
7128
10f2d63a
VZ
7129 TOOLKIT=GTK
7130
dad6c0ea
VZ
7131 AFMINSTALL=afminstall
7132
10f2d63a
VZ
7133 GUIOBJS="\$(GTK_GUIOBJS)"
7134 GUIHEADERS="\$(GTK_HEADERS)"
7135 COMMONOBJS="\$(GTK_COMMONOBJS)"
7136 GENERICOBJS="\$(GTK_GENERICOBJS)"
7137 GUIDEPS="\$(GTK_GUIDEPS)"
7138 COMMONDEPS="\$(GTK_COMMONDEPS)"
7139 GENERICDEPS="\$(GTK_GENERICDEPS)"
7140 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7141 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7142 GUIDIST=GTK_DIST
7ec2881a 7143
2224580a 7144 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
00cf1208 7145echo "configure:7146: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7146ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7147if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7148 echo $ac_n "(cached) $ac_c" 1>&6
7149else
7150 ac_save_LIBS="$LIBS"
7151LIBS="-lgdk $LIBS"
7152cat > conftest.$ac_ext <<EOF
00cf1208 7153#line 7154 "configure"
7ec2881a
RR
7154#include "confdefs.h"
7155/* Override any gcc2 internal prototype to avoid an error. */
7156/* We use char because int might match the return type of a gcc2
7157 builtin and then its argument prototype would still apply. */
7158char gdk_im_open();
7159
7160int main() {
7161gdk_im_open()
7162; return 0; }
7163EOF
00cf1208 7164if { (eval echo configure:7165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7165 rm -rf conftest*
7166 eval "ac_cv_lib_$ac_lib_var=yes"
7167else
7168 echo "configure: failed program was:" >&5
7169 cat conftest.$ac_ext >&5
7170 rm -rf conftest*
7171 eval "ac_cv_lib_$ac_lib_var=no"
7172fi
7173rm -f conftest*
7174LIBS="$ac_save_LIBS"
7175
7176fi
7177if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7178 echo "$ac_t""yes" 1>&6
7179 cat >> confdefs.h <<\EOF
7180#define HAVE_XIM 1
7181EOF
7182
7183else
7184 echo "$ac_t""no" 1>&6
7185fi
7186
10f2d63a
VZ
7187fi
7188
7189if test "$wxUSE_WINE" = 1; then
7190 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
00cf1208 7191echo "configure:7192: checking for WINE includes" >&5
10f2d63a
VZ
7192
7193ac_find_includes=
7194for ac_dir in $SEARCH_INCLUDE;
7195 do
7196 if test -f "$ac_dir/windows.h"; then
7197 ac_find_includes=$ac_dir
7198 break
7199 fi
7200 done
7201
7202 if test "$ac_find_includes" != "" ; then
7203 echo "$ac_t""found $ac_find_includes" 1>&6
7204 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7205 else
7206 echo "$ac_t""no" 1>&6
7207 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7208 fi
7209
7210 XPM_LINK=""
7211 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
00cf1208 7212echo "configure:7213: checking for Xpm library" >&5
10f2d63a
VZ
7213
7214ac_find_libraries=
7215for ac_dir in $SEARCH_LIB;
7216 do
7217 for ac_extension in a so sl; do
7218 if test -f "$ac_dir/libXpm.$ac_extension"; then
7219 ac_find_libraries=$ac_dir
7220 break 2
7221 fi
7222 done
7223 done
7224
7225 if test "$ac_find_libraries" != "" ; then
7226 GUI_TK_LIBRARY="-L$ac_find_libraries"
7227 XPM_LINK="-lXpm"
7228 cat >> confdefs.h <<\EOF
7229#define wxHAVE_LIB_XPM 1
7230EOF
7231
7232 echo "$ac_t""found at $ac_find_libraries" 1>&6
7233 else
7234 echo "$ac_t""no" 1>&6
7235 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7236 fi
7237
7238 MESA_LINK=""
7239 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
00cf1208 7240echo "configure:7241: checking for Mesa library" >&5
10f2d63a
VZ
7241
7242ac_find_libraries=
7243for ac_dir in $SEARCH_LIB;
7244 do
7245 for ac_extension in a so sl; do
7246 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7247 ac_find_libraries=$ac_dir
7248 break 2
7249 fi
7250 done
7251 done
7252
7253 if test "$ac_find_libraries" != "" ; then
7254 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7255 MESA_LINK="-lMesaGL"
7256 echo "$ac_t""found at $ac_find_libraries" 1>&6
7257 else
7258 { echo "configure: error: no" 1>&2; exit 1; }
7259 fi
7260
7261 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7262 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7263 WXWINE=1
7264 TOOLKIT=MSW
7265
7266 GUIHEADERS="\$(MSW_HEADERS)"
7267 GUIOBJS="\$(MSW_GUIOBJS)"
7268 COMMONOBJS="\$(MSW_COMMONOBJS)"
7269 GENERICOBJS="\$(MSW_GENERICOBJS)"
7270 GUIDEPS="\$(MSW_GUIDEPS)"
7271 COMMONDEPS="\$(MSW_COMMONDEPS)"
7272 GENERICDEPS="\$(MSW_GENERICDEPS)"
7273 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7274 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7275 GUIDIST=MSW_DIST
7276fi
7277
7278if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7279 # If we find X, set shell vars x_includes and x_libraries to the
7280# paths, otherwise set no_x=yes.
7281# Uses ac_ vars as temps to allow command line to override cache and checks.
7282# --without-x overrides everything else, but does not touch the cache.
7283echo $ac_n "checking for X""... $ac_c" 1>&6
00cf1208 7284echo "configure:7285: checking for X" >&5
ab9b9eab
VZ
7285
7286# Check whether --with-x or --without-x was given.
7287if test "${with_x+set}" = set; then
7288 withval="$with_x"
7289 :
7290fi
ba337fe7 7291
ab9b9eab
VZ
7292# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7293if test "x$with_x" = xno; then
7294 # The user explicitly disabled X.
7295 have_x=disabled
7296else
7297 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7298 # Both variables are already set.
7299 have_x=yes
7300 else
7301if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7302 echo $ac_n "(cached) $ac_c" 1>&6
7303else
7304 # One or both of the vars are not set, and there is no cached value.
7305ac_x_includes=NO ac_x_libraries=NO
7306rm -fr conftestdir
7307if mkdir conftestdir; then
7308 cd conftestdir
7309 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7310 cat > Imakefile <<'EOF'
7311acfindx:
7312 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7313EOF
7314 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7315 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7316 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7317 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7318 for ac_extension in a so sl; do
ab9b9eab
VZ
7319 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7320 test -f $ac_im_libdir/libX11.$ac_extension; then
7321 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7322 fi
7323 done
ab9b9eab
VZ
7324 # Screen out bogus values from the imake configuration. They are
7325 # bogus both because they are the default anyway, and because
7326 # using them would break gcc on systems where it needs fixed includes.
7327 case "$ac_im_incroot" in
7328 /usr/include) ;;
7329 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7330 esac
7331 case "$ac_im_usrlibdir" in
7332 /usr/lib | /lib) ;;
7333 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7334 esac
ba337fe7 7335 fi
ab9b9eab
VZ
7336 cd ..
7337 rm -fr conftestdir
7338fi
10f2d63a 7339
ab9b9eab
VZ
7340if test "$ac_x_includes" = NO; then
7341 # Guess where to find include files, by looking for this one X11 .h file.
7342 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7343
ab9b9eab
VZ
7344 # First, try using that file with no special directory specified.
7345cat > conftest.$ac_ext <<EOF
00cf1208 7346#line 7347 "configure"
ab9b9eab
VZ
7347#include "confdefs.h"
7348#include <$x_direct_test_include>
7349EOF
7350ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 7351{ (eval echo configure:7352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7352ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7353if test -z "$ac_err"; then
7354 rm -rf conftest*
7355 # We can compile using X headers with no special include directory.
7356ac_x_includes=
7357else
7358 echo "$ac_err" >&5
7359 echo "configure: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7361 rm -rf conftest*
7362 # Look for the header file in a standard set of common directories.
7363# Check X11 before X11Rn because it is often a symlink to the current release.
7364 for ac_dir in \
7365 /usr/X11/include \
7366 /usr/X11R6/include \
7367 /usr/X11R5/include \
7368 /usr/X11R4/include \
7369 \
7370 /usr/include/X11 \
7371 /usr/include/X11R6 \
7372 /usr/include/X11R5 \
7373 /usr/include/X11R4 \
7374 \
7375 /usr/local/X11/include \
7376 /usr/local/X11R6/include \
7377 /usr/local/X11R5/include \
7378 /usr/local/X11R4/include \
7379 \
7380 /usr/local/include/X11 \
7381 /usr/local/include/X11R6 \
7382 /usr/local/include/X11R5 \
7383 /usr/local/include/X11R4 \
7384 \
7385 /usr/X386/include \
7386 /usr/x386/include \
7387 /usr/XFree86/include/X11 \
7388 \
7389 /usr/include \
7390 /usr/local/include \
7391 /usr/unsupported/include \
7392 /usr/athena/include \
7393 /usr/local/x11r5/include \
7394 /usr/lpp/Xamples/include \
7395 \
7396 /usr/openwin/include \
7397 /usr/openwin/share/include \
7398 ; \
10f2d63a 7399 do
ab9b9eab
VZ
7400 if test -r "$ac_dir/$x_direct_test_include"; then
7401 ac_x_includes=$ac_dir
10f2d63a
VZ
7402 break
7403 fi
7404 done
ab9b9eab
VZ
7405fi
7406rm -f conftest*
7407fi # $ac_x_includes = NO
10f2d63a 7408
ab9b9eab
VZ
7409if test "$ac_x_libraries" = NO; then
7410 # Check for the libraries.
10f2d63a 7411
ab9b9eab
VZ
7412 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7413 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7414
ab9b9eab
VZ
7415 # See if we find them without any special options.
7416 # Don't add to $LIBS permanently.
7417 ac_save_LIBS="$LIBS"
7418 LIBS="-l$x_direct_test_library $LIBS"
7419cat > conftest.$ac_ext <<EOF
00cf1208 7420#line 7421 "configure"
ab9b9eab 7421#include "confdefs.h"
10f2d63a 7422
ab9b9eab
VZ
7423int main() {
7424${x_direct_test_function}()
7425; return 0; }
7426EOF
00cf1208 7427if { (eval echo configure:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7428 rm -rf conftest*
7429 LIBS="$ac_save_LIBS"
7430# We can link X programs with no special library path.
7431ac_x_libraries=
7432else
7433 echo "configure: failed program was:" >&5
7434 cat conftest.$ac_ext >&5
7435 rm -rf conftest*
7436 LIBS="$ac_save_LIBS"
7437# First see if replacing the include by lib works.
7438# Check X11 before X11Rn because it is often a symlink to the current release.
7439for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7440 /usr/X11/lib \
7441 /usr/X11R6/lib \
7442 /usr/X11R5/lib \
7443 /usr/X11R4/lib \
7444 \
7445 /usr/lib/X11 \
7446 /usr/lib/X11R6 \
7447 /usr/lib/X11R5 \
7448 /usr/lib/X11R4 \
7449 \
7450 /usr/local/X11/lib \
7451 /usr/local/X11R6/lib \
7452 /usr/local/X11R5/lib \
7453 /usr/local/X11R4/lib \
7454 \
7455 /usr/local/lib/X11 \
7456 /usr/local/lib/X11R6 \
7457 /usr/local/lib/X11R5 \
7458 /usr/local/lib/X11R4 \
7459 \
7460 /usr/X386/lib \
7461 /usr/x386/lib \
7462 /usr/XFree86/lib/X11 \
7463 \
7464 /usr/lib \
7465 /usr/local/lib \
7466 /usr/unsupported/lib \
7467 /usr/athena/lib \
7468 /usr/local/x11r5/lib \
7469 /usr/lpp/Xamples/lib \
7470 /lib/usr/lib/X11 \
7471 \
7472 /usr/openwin/lib \
7473 /usr/openwin/share/lib \
7474 ; \
7475do
7476 for ac_extension in a so sl; do
7477 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7478 ac_x_libraries=$ac_dir
7479 break 2
10f2d63a 7480 fi
10f2d63a 7481 done
ab9b9eab
VZ
7482done
7483fi
7484rm -f conftest*
7485fi # $ac_x_libraries = NO
10f2d63a 7486
ab9b9eab
VZ
7487if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7488 # Didn't find X anywhere. Cache the known absence of X.
7489 ac_cv_have_x="have_x=no"
7490else
7491 # Record where we found X for the cache.
7492 ac_cv_have_x="have_x=yes \
7493 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7494fi
7495fi
10f2d63a 7496 fi
ab9b9eab
VZ
7497 eval "$ac_cv_have_x"
7498fi # $with_x != no
10f2d63a 7499
ab9b9eab
VZ
7500if test "$have_x" != yes; then
7501 echo "$ac_t""$have_x" 1>&6
7502 no_x=yes
7503else
7504 # If each of the values was on the command line, it overrides each guess.
7505 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7506 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7507 # Update the cache value to reflect the command line values.
7508 ac_cv_have_x="have_x=yes \
7509 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7510 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7511fi
10f2d63a 7512
ab9b9eab
VZ
7513if test "$no_x" = yes; then
7514 # Not all programs may use this symbol, but it does not hurt to define it.
7515 cat >> confdefs.h <<\EOF
7516#define X_DISPLAY_MISSING 1
7517EOF
10f2d63a 7518
ab9b9eab
VZ
7519 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7520else
7521 if test -n "$x_includes"; then
7522 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7523 fi
7524
ab9b9eab
VZ
7525 # It would also be nice to do this for all -L options, not just this one.
7526 if test -n "$x_libraries"; then
7527 X_LIBS="$X_LIBS -L$x_libraries"
7528 # For Solaris; some versions of Sun CC require a space after -R and
7529 # others require no space. Words are not sufficient . . . .
7530 case "`(uname -sr) 2>/dev/null`" in
7531 "SunOS 5"*)
7532 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
00cf1208 7533echo "configure:7534: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7534 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7535 cat > conftest.$ac_ext <<EOF
00cf1208 7536#line 7537 "configure"
ab9b9eab 7537#include "confdefs.h"
10f2d63a 7538
ab9b9eab 7539int main() {
788deba1 7540
ab9b9eab
VZ
7541; return 0; }
7542EOF
00cf1208 7543if { (eval echo configure:7544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7544 rm -rf conftest*
7545 ac_R_nospace=yes
7546else
7547 echo "configure: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7549 rm -rf conftest*
7550 ac_R_nospace=no
7551fi
7552rm -f conftest*
7553 if test $ac_R_nospace = yes; then
7554 echo "$ac_t""no" 1>&6
7555 X_LIBS="$X_LIBS -R$x_libraries"
7556 else
7557 LIBS="$ac_xsave_LIBS -R $x_libraries"
7558 cat > conftest.$ac_ext <<EOF
00cf1208 7559#line 7560 "configure"
ab9b9eab 7560#include "confdefs.h"
788deba1 7561
ab9b9eab
VZ
7562int main() {
7563
7564; return 0; }
7565EOF
00cf1208 7566if { (eval echo configure:7567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7567 rm -rf conftest*
7568 ac_R_space=yes
7569else
7570 echo "configure: failed program was:" >&5
7571 cat conftest.$ac_ext >&5
7572 rm -rf conftest*
7573 ac_R_space=no
7574fi
7575rm -f conftest*
7576 if test $ac_R_space = yes; then
7577 echo "$ac_t""yes" 1>&6
7578 X_LIBS="$X_LIBS -R $x_libraries"
7579 else
7580 echo "$ac_t""neither works" 1>&6
7581 fi
7582 fi
7583 LIBS="$ac_xsave_LIBS"
7584 esac
7585 fi
7586
7587 # Check for system-dependent libraries X programs must link with.
7588 # Do this before checking for the system-independent R6 libraries
7589 # (-lICE), since we may need -lsocket or whatever for X linking.
7590
7591 if test "$ISC" = yes; then
7592 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7593 else
7594 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7595 # libraries were built with DECnet support. And karl@cs.umb.edu says
7596 # the Alpha needs dnet_stub (dnet does not exist).
7597 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
00cf1208 7598echo "configure:7599: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7599ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7600if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7601 echo $ac_n "(cached) $ac_c" 1>&6
7602else
7603 ac_save_LIBS="$LIBS"
7604LIBS="-ldnet $LIBS"
7605cat > conftest.$ac_ext <<EOF
00cf1208 7606#line 7607 "configure"
ab9b9eab
VZ
7607#include "confdefs.h"
7608/* Override any gcc2 internal prototype to avoid an error. */
7609/* We use char because int might match the return type of a gcc2
7610 builtin and then its argument prototype would still apply. */
7611char dnet_ntoa();
7612
7613int main() {
7614dnet_ntoa()
7615; return 0; }
7616EOF
00cf1208 7617if { (eval echo configure:7618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7618 rm -rf conftest*
7619 eval "ac_cv_lib_$ac_lib_var=yes"
7620else
7621 echo "configure: failed program was:" >&5
7622 cat conftest.$ac_ext >&5
7623 rm -rf conftest*
7624 eval "ac_cv_lib_$ac_lib_var=no"
7625fi
7626rm -f conftest*
7627LIBS="$ac_save_LIBS"
7628
7629fi
7630if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7631 echo "$ac_t""yes" 1>&6
7632 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7633else
7634 echo "$ac_t""no" 1>&6
7635fi
7636
7637 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7638 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
00cf1208 7639echo "configure:7640: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7640ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7641if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7642 echo $ac_n "(cached) $ac_c" 1>&6
7643else
7644 ac_save_LIBS="$LIBS"
7645LIBS="-ldnet_stub $LIBS"
7646cat > conftest.$ac_ext <<EOF
00cf1208 7647#line 7648 "configure"
ab9b9eab
VZ
7648#include "confdefs.h"
7649/* Override any gcc2 internal prototype to avoid an error. */
7650/* We use char because int might match the return type of a gcc2
7651 builtin and then its argument prototype would still apply. */
7652char dnet_ntoa();
7653
7654int main() {
7655dnet_ntoa()
7656; return 0; }
7657EOF
00cf1208 7658if { (eval echo configure:7659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7659 rm -rf conftest*
7660 eval "ac_cv_lib_$ac_lib_var=yes"
7661else
7662 echo "configure: failed program was:" >&5
7663 cat conftest.$ac_ext >&5
7664 rm -rf conftest*
7665 eval "ac_cv_lib_$ac_lib_var=no"
7666fi
7667rm -f conftest*
7668LIBS="$ac_save_LIBS"
7669
7670fi
7671if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7672 echo "$ac_t""yes" 1>&6
7673 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7674else
7675 echo "$ac_t""no" 1>&6
7676fi
7677
7678 fi
7679
7680 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7681 # to get the SysV transport functions.
7682 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7683 # needs -lnsl.
7684 # The nsl library prevents programs from opening the X display
7685 # on Irix 5.2, according to dickey@clark.net.
7686 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
00cf1208 7687echo "configure:7688: checking for gethostbyname" >&5
ab9b9eab
VZ
7688if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7689 echo $ac_n "(cached) $ac_c" 1>&6
7690else
7691 cat > conftest.$ac_ext <<EOF
00cf1208 7692#line 7693 "configure"
ab9b9eab
VZ
7693#include "confdefs.h"
7694/* System header to define __stub macros and hopefully few prototypes,
7695 which can conflict with char gethostbyname(); below. */
7696#include <assert.h>
7697/* Override any gcc2 internal prototype to avoid an error. */
7698/* We use char because int might match the return type of a gcc2
7699 builtin and then its argument prototype would still apply. */
7700char gethostbyname();
00cf1208 7701char (*f)();
ab9b9eab
VZ
7702
7703int main() {
7704
7705/* The GNU C library defines this for functions which it implements
7706 to always fail with ENOSYS. Some functions are actually named
7707 something starting with __ and the normal name is an alias. */
7708#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7709choke me
7710#else
00cf1208 7711f = gethostbyname;
ab9b9eab
VZ
7712#endif
7713
7714; return 0; }
7715EOF
00cf1208 7716if { (eval echo configure:7717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7717 rm -rf conftest*
7718 eval "ac_cv_func_gethostbyname=yes"
7719else
7720 echo "configure: failed program was:" >&5
7721 cat conftest.$ac_ext >&5
7722 rm -rf conftest*
7723 eval "ac_cv_func_gethostbyname=no"
7724fi
7725rm -f conftest*
7726fi
7727
7728if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7729 echo "$ac_t""yes" 1>&6
7730 :
7731else
7732 echo "$ac_t""no" 1>&6
7733fi
7734
7735 if test $ac_cv_func_gethostbyname = no; then
7736 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
00cf1208 7737echo "configure:7738: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7738ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7739if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7740 echo $ac_n "(cached) $ac_c" 1>&6
7741else
7742 ac_save_LIBS="$LIBS"
7743LIBS="-lnsl $LIBS"
7744cat > conftest.$ac_ext <<EOF
00cf1208 7745#line 7746 "configure"
ab9b9eab
VZ
7746#include "confdefs.h"
7747/* Override any gcc2 internal prototype to avoid an error. */
7748/* We use char because int might match the return type of a gcc2
7749 builtin and then its argument prototype would still apply. */
7750char gethostbyname();
7751
7752int main() {
7753gethostbyname()
7754; return 0; }
7755EOF
00cf1208 7756if { (eval echo configure:7757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7757 rm -rf conftest*
7758 eval "ac_cv_lib_$ac_lib_var=yes"
7759else
7760 echo "configure: failed program was:" >&5
7761 cat conftest.$ac_ext >&5
7762 rm -rf conftest*
7763 eval "ac_cv_lib_$ac_lib_var=no"
7764fi
7765rm -f conftest*
7766LIBS="$ac_save_LIBS"
7767
7768fi
7769if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7770 echo "$ac_t""yes" 1>&6
7771 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7772else
7773 echo "$ac_t""no" 1>&6
7774fi
7775
7776 fi
7777
7778 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7779 # socket/setsockopt and other routines are undefined under SCO ODT
7780 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7781 # on later versions), says simon@lia.di.epfl.ch: it contains
7782 # gethostby* variants that don't use the nameserver (or something).
7783 # -lsocket must be given before -lnsl if both are needed.
7784 # We assume that if connect needs -lnsl, so does gethostbyname.
7785 echo $ac_n "checking for connect""... $ac_c" 1>&6
00cf1208 7786echo "configure:7787: checking for connect" >&5
ab9b9eab
VZ
7787if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7788 echo $ac_n "(cached) $ac_c" 1>&6
7789else
7790 cat > conftest.$ac_ext <<EOF
00cf1208 7791#line 7792 "configure"
ab9b9eab
VZ
7792#include "confdefs.h"
7793/* System header to define __stub macros and hopefully few prototypes,
7794 which can conflict with char connect(); below. */
7795#include <assert.h>
7796/* Override any gcc2 internal prototype to avoid an error. */
7797/* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7799char connect();
00cf1208 7800char (*f)();
ab9b9eab
VZ
7801
7802int main() {
7803
7804/* The GNU C library defines this for functions which it implements
7805 to always fail with ENOSYS. Some functions are actually named
7806 something starting with __ and the normal name is an alias. */
7807#if defined (__stub_connect) || defined (__stub___connect)
7808choke me
7809#else
00cf1208 7810f = connect;
ab9b9eab
VZ
7811#endif
7812
7813; return 0; }
7814EOF
00cf1208 7815if { (eval echo configure:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7816 rm -rf conftest*
7817 eval "ac_cv_func_connect=yes"
7818else
7819 echo "configure: failed program was:" >&5
7820 cat conftest.$ac_ext >&5
7821 rm -rf conftest*
7822 eval "ac_cv_func_connect=no"
7823fi
7824rm -f conftest*
7825fi
7826
7827if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7828 echo "$ac_t""yes" 1>&6
7829 :
7830else
7831 echo "$ac_t""no" 1>&6
7832fi
7833
7834 if test $ac_cv_func_connect = no; then
7835 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
00cf1208 7836echo "configure:7837: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7837ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7838if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7839 echo $ac_n "(cached) $ac_c" 1>&6
7840else
7841 ac_save_LIBS="$LIBS"
7842LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7843cat > conftest.$ac_ext <<EOF
00cf1208 7844#line 7845 "configure"
ab9b9eab
VZ
7845#include "confdefs.h"
7846/* Override any gcc2 internal prototype to avoid an error. */
7847/* We use char because int might match the return type of a gcc2
7848 builtin and then its argument prototype would still apply. */
7849char connect();
7850
7851int main() {
7852connect()
7853; return 0; }
7854EOF
00cf1208 7855if { (eval echo configure:7856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7856 rm -rf conftest*
7857 eval "ac_cv_lib_$ac_lib_var=yes"
7858else
7859 echo "configure: failed program was:" >&5
7860 cat conftest.$ac_ext >&5
7861 rm -rf conftest*
7862 eval "ac_cv_lib_$ac_lib_var=no"
7863fi
7864rm -f conftest*
7865LIBS="$ac_save_LIBS"
7866
7867fi
7868if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7869 echo "$ac_t""yes" 1>&6
7870 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7871else
7872 echo "$ac_t""no" 1>&6
7873fi
7874
7875 fi
7876
7877 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7878 echo $ac_n "checking for remove""... $ac_c" 1>&6
00cf1208 7879echo "configure:7880: checking for remove" >&5
ab9b9eab
VZ
7880if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7881 echo $ac_n "(cached) $ac_c" 1>&6
7882else
7883 cat > conftest.$ac_ext <<EOF
00cf1208 7884#line 7885 "configure"
ab9b9eab
VZ
7885#include "confdefs.h"
7886/* System header to define __stub macros and hopefully few prototypes,
7887 which can conflict with char remove(); below. */
7888#include <assert.h>
7889/* Override any gcc2 internal prototype to avoid an error. */
7890/* We use char because int might match the return type of a gcc2
7891 builtin and then its argument prototype would still apply. */
7892char remove();
00cf1208 7893char (*f)();
ab9b9eab
VZ
7894
7895int main() {
7896
7897/* The GNU C library defines this for functions which it implements
7898 to always fail with ENOSYS. Some functions are actually named
7899 something starting with __ and the normal name is an alias. */
7900#if defined (__stub_remove) || defined (__stub___remove)
7901choke me
7902#else
00cf1208 7903f = remove;
ab9b9eab
VZ
7904#endif
7905
7906; return 0; }
7907EOF
00cf1208 7908if { (eval echo configure:7909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7909 rm -rf conftest*
7910 eval "ac_cv_func_remove=yes"
7911else
7912 echo "configure: failed program was:" >&5
7913 cat conftest.$ac_ext >&5
7914 rm -rf conftest*
7915 eval "ac_cv_func_remove=no"
7916fi
7917rm -f conftest*
7918fi
7919
7920if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7921 echo "$ac_t""yes" 1>&6
7922 :
7923else
7924 echo "$ac_t""no" 1>&6
7925fi
7926
7927 if test $ac_cv_func_remove = no; then
7928 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
00cf1208 7929echo "configure:7930: checking for remove in -lposix" >&5
ab9b9eab
VZ
7930ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7931if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7932 echo $ac_n "(cached) $ac_c" 1>&6
7933else
7934 ac_save_LIBS="$LIBS"
7935LIBS="-lposix $LIBS"
7936cat > conftest.$ac_ext <<EOF
00cf1208 7937#line 7938 "configure"
ab9b9eab
VZ
7938#include "confdefs.h"
7939/* Override any gcc2 internal prototype to avoid an error. */
7940/* We use char because int might match the return type of a gcc2
7941 builtin and then its argument prototype would still apply. */
7942char remove();
7943
7944int main() {
7945remove()
7946; return 0; }
7947EOF
00cf1208 7948if { (eval echo configure:7949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7949 rm -rf conftest*
7950 eval "ac_cv_lib_$ac_lib_var=yes"
7951else
7952 echo "configure: failed program was:" >&5
7953 cat conftest.$ac_ext >&5
7954 rm -rf conftest*
7955 eval "ac_cv_lib_$ac_lib_var=no"
7956fi
7957rm -f conftest*
7958LIBS="$ac_save_LIBS"
7959
7960fi
7961if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7962 echo "$ac_t""yes" 1>&6
7963 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7964else
7965 echo "$ac_t""no" 1>&6
7966fi
7967
7968 fi
7969
7970 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7971 echo $ac_n "checking for shmat""... $ac_c" 1>&6
00cf1208 7972echo "configure:7973: checking for shmat" >&5
ab9b9eab
VZ
7973if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7974 echo $ac_n "(cached) $ac_c" 1>&6
7975else
7976 cat > conftest.$ac_ext <<EOF
00cf1208 7977#line 7978 "configure"
ab9b9eab
VZ
7978#include "confdefs.h"
7979/* System header to define __stub macros and hopefully few prototypes,
7980 which can conflict with char shmat(); below. */
7981#include <assert.h>
7982/* Override any gcc2 internal prototype to avoid an error. */
7983/* We use char because int might match the return type of a gcc2
7984 builtin and then its argument prototype would still apply. */
7985char shmat();
00cf1208 7986char (*f)();
ab9b9eab
VZ
7987
7988int main() {
7989
7990/* The GNU C library defines this for functions which it implements
7991 to always fail with ENOSYS. Some functions are actually named
7992 something starting with __ and the normal name is an alias. */
7993#if defined (__stub_shmat) || defined (__stub___shmat)
7994choke me
7995#else
00cf1208 7996f = shmat;
ab9b9eab
VZ
7997#endif
7998
7999; return 0; }
8000EOF
00cf1208 8001if { (eval echo configure:8002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8002 rm -rf conftest*
8003 eval "ac_cv_func_shmat=yes"
8004else
8005 echo "configure: failed program was:" >&5
8006 cat conftest.$ac_ext >&5
8007 rm -rf conftest*
8008 eval "ac_cv_func_shmat=no"
8009fi
8010rm -f conftest*
8011fi
8012
8013if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8014 echo "$ac_t""yes" 1>&6
8015 :
8016else
8017 echo "$ac_t""no" 1>&6
8018fi
8019
8020 if test $ac_cv_func_shmat = no; then
8021 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
00cf1208 8022echo "configure:8023: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8023ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8024if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8025 echo $ac_n "(cached) $ac_c" 1>&6
8026else
8027 ac_save_LIBS="$LIBS"
8028LIBS="-lipc $LIBS"
8029cat > conftest.$ac_ext <<EOF
00cf1208 8030#line 8031 "configure"
ab9b9eab
VZ
8031#include "confdefs.h"
8032/* Override any gcc2 internal prototype to avoid an error. */
8033/* We use char because int might match the return type of a gcc2
8034 builtin and then its argument prototype would still apply. */
8035char shmat();
8036
8037int main() {
8038shmat()
8039; return 0; }
8040EOF
00cf1208 8041if { (eval echo configure:8042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8042 rm -rf conftest*
8043 eval "ac_cv_lib_$ac_lib_var=yes"
8044else
8045 echo "configure: failed program was:" >&5
8046 cat conftest.$ac_ext >&5
8047 rm -rf conftest*
8048 eval "ac_cv_lib_$ac_lib_var=no"
8049fi
8050rm -f conftest*
8051LIBS="$ac_save_LIBS"
8052
8053fi
8054if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8055 echo "$ac_t""yes" 1>&6
8056 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8057else
8058 echo "$ac_t""no" 1>&6
8059fi
8060
8061 fi
8062 fi
8063
8064 # Check for libraries that X11R6 Xt/Xaw programs need.
8065 ac_save_LDFLAGS="$LDFLAGS"
8066 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8067 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8068 # check for ICE first), but we must link in the order -lSM -lICE or
8069 # we get undefined symbols. So assume we have SM if we have ICE.
8070 # These have to be linked with before -lX11, unlike the other
8071 # libraries we check for below, so use a different variable.
8072 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8073 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
00cf1208 8074echo "configure:8075: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8075ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8076if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8077 echo $ac_n "(cached) $ac_c" 1>&6
8078else
8079 ac_save_LIBS="$LIBS"
8080LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8081cat > conftest.$ac_ext <<EOF
00cf1208 8082#line 8083 "configure"
ab9b9eab
VZ
8083#include "confdefs.h"
8084/* Override any gcc2 internal prototype to avoid an error. */
8085/* We use char because int might match the return type of a gcc2
8086 builtin and then its argument prototype would still apply. */
8087char IceConnectionNumber();
8088
8089int main() {
8090IceConnectionNumber()
8091; return 0; }
8092EOF
00cf1208 8093if { (eval echo configure:8094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8094 rm -rf conftest*
8095 eval "ac_cv_lib_$ac_lib_var=yes"
8096else
8097 echo "configure: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8099 rm -rf conftest*
8100 eval "ac_cv_lib_$ac_lib_var=no"
8101fi
8102rm -f conftest*
8103LIBS="$ac_save_LIBS"
8104
8105fi
8106if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8107 echo "$ac_t""yes" 1>&6
8108 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8109else
8110 echo "$ac_t""no" 1>&6
8111fi
8112
8113 LDFLAGS="$ac_save_LDFLAGS"
8114
8115fi
8116
8117
8118 if test "$no_x" = "yes"; then
8119 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8120 fi
8121
8122 GUI_TK_LIBRARY="$X_LIBS"
8123 TOOLKIT_INCLUDE="$X_CFLAGS"
8124
dad6c0ea
VZ
8125 AFMINSTALL=afminstall
8126
ab9b9eab 8127
cd6d6d5b
VZ
8128 COMPILED_X_PROGRAM=0
8129
ab9b9eab 8130 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
00cf1208 8131echo "configure:8132: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8132
8133ac_find_includes=
8134for ac_dir in $SEARCH_INCLUDE;
8135 do
8136 if test -f "$ac_dir/Xm/Xm.h"; then
8137 ac_find_includes=$ac_dir
8138 break
8139 fi
8140 done
8141
8142 if test "$ac_find_includes" != "" ; then
8143 echo "$ac_t""found $ac_find_includes" 1>&6
8144 else
cd6d6d5b 8145 cat > conftest.$ac_ext <<EOF
00cf1208 8146#line 8147 "configure"
cd6d6d5b
VZ
8147#include "confdefs.h"
8148
8149 #include <Xm/Xm.h>
8150
8151int main() {
8152
8153 int version;
8154
8155 version = xmUseVersion;
8156
8157; return 0; }
8158EOF
00cf1208 8159if { (eval echo configure:8160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8160 rm -rf conftest*
8161
8162 echo "$ac_t""found in default search path" 1>&6
8163 COMPILED_X_PROGRAM=1
8164
8165else
8166 echo "configure: failed program was:" >&5
8167 cat conftest.$ac_ext >&5
8168 rm -rf conftest*
8169
8170 echo "$ac_t""no" 1>&6
8171 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8172
8173
8174fi
8175rm -f conftest*
ab9b9eab
VZ
8176 fi
8177
cd6d6d5b
VZ
8178 if test "$COMPILED_X_PROGRAM" = 0; then
8179 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
00cf1208 8180echo "configure:8181: checking for Motif/Lesstif library" >&5
cd6d6d5b 8181
ab9b9eab
VZ
8182ac_find_libraries=
8183for ac_dir in $SEARCH_LIB;
8184 do
8185 for ac_extension in a so sl; do
8186 if test -f "$ac_dir/libXm.$ac_extension"; then
8187 ac_find_libraries=$ac_dir
8188 break 2
8189 fi
8190 done
8191 done
8192
cd6d6d5b
VZ
8193 if test "$ac_find_libraries" != "" ; then
8194
ab9b9eab
VZ
8195 ac_path_to_include=$ac_find_includes
8196 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8197 result=$?
8198 if test $result = 0; then
8199 ac_path_to_include=""
8200 else
8201 ac_path_to_include="-I$ac_find_includes"
8202 fi
8203
cd6d6d5b 8204
ab9b9eab
VZ
8205 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8206 result=$?
8207 if test $result = 0; then
8208 ac_path_to_link=""
8209 else
8210 ac_path_to_link="-L$ac_find_libraries"
8211 fi
8212
8213
cd6d6d5b
VZ
8214 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8215 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8216 echo "$ac_t""found at $ac_find_libraries" 1>&6
8217 else
8218 cat > conftest.$ac_ext <<EOF
00cf1208 8219#line 8220 "configure"
cd6d6d5b 8220#include "confdefs.h"
ab9b9eab 8221
cd6d6d5b
VZ
8222 #include <Xm/Xm.h>
8223
8224int main() {
ab9b9eab 8225
cd6d6d5b 8226 int version;
ab9b9eab 8227
cd6d6d5b
VZ
8228 version = xmUseVersion;
8229
8230; return 0; }
8231EOF
00cf1208 8232if { (eval echo configure:8233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8233 rm -rf conftest*
8234
8235 echo "$ac_t""found in default search path" 1>&6
8236 COMPILED_X_PROGRAM=1
8237
8238else
8239 echo "configure: failed program was:" >&5
8240 cat conftest.$ac_ext >&5
8241 rm -rf conftest*
8242
8243 echo "$ac_t""no" 1>&6
8244 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8245
8246
8247fi
8248rm -f conftest*
8249 fi
ab9b9eab
VZ
8250 fi
8251
cd6d6d5b 8252
ab9b9eab
VZ
8253 XPM_LINK=""
8254 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
00cf1208 8255echo "configure:8256: checking for Xpm library" >&5
ab9b9eab
VZ
8256
8257ac_find_libraries=
8258for ac_dir in $SEARCH_LIB;
8259 do
8260 for ac_extension in a so sl; do
8261 if test -f "$ac_dir/libXpm.$ac_extension"; then
8262 ac_find_libraries=$ac_dir
8263 break 2
8264 fi
8265 done
8266 done
8267
8268 if test "$ac_find_libraries" != "" ; then
8269
8270 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8271 result=$?
8272 if test $result = 0; then
8273 ac_path_to_link=""
8274 else
8275 ac_path_to_link="-L$ac_find_libraries"
8276 fi
8277
8278 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8279 XPM_LINK="-lXpm "
8280 cat >> confdefs.h <<\EOF
8281#define wxHAVE_LIB_XPM 1
8282EOF
8283
8284 echo "$ac_t""found at $ac_find_libraries" 1>&6
8285 else
cd6d6d5b 8286 cat > conftest.$ac_ext <<EOF
00cf1208 8287#line 8288 "configure"
cd6d6d5b
VZ
8288#include "confdefs.h"
8289
8290 #include <X11/xpm.h>
8291
8292int main() {
8293
8294 int version;
8295
8296 version = XpmLibraryVersion();
8297
8298; return 0; }
8299EOF
00cf1208 8300if { (eval echo configure:8301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8301 rm -rf conftest*
8302
3ace2e6d
SN
8303 XPM_LINK="-lXpm "
8304 cat >> confdefs.h <<\EOF
8305#define wxHAVE_LIB_XPM 1
8306EOF
8307
8308 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
8309 COMPILED_X_PROGRAM=0
8310
8311else
8312 echo "configure: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8314 rm -rf conftest*
8315
8316 echo "$ac_t""no" 1>&6
8317 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8318
8319
8320fi
8321rm -f conftest*
ab9b9eab
VZ
8322 fi
8323
8324 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8325 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8326 TOOLKIT=MOTIF
8327
8328 GUIHEADERS="\$(MOTIF_HEADERS)"
8329 GUIOBJS="\$(MOTIF_GUIOBJS)"
8330 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8331 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8332 GUIDEPS="\$(MOTIF_GUIDEPS)"
8333 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8334 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8335 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8336 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8337 GUIDIST=MOTIF_DIST
8338fi
8339
e07802fc
VZ
8340if test "$wxUSE_PM" = 1; then
8341 TOOLKIT=PM
8342
8343 GUIOBJS="\$(PM_GUIOBJS)"
8344 GUIHEADERS="\$(PM_HEADERS)"
8345 COMMONOBJS="\$(PM_COMMONOBJS)"
8346 GENERICOBJS="\$(PM_GENERICOBJS)"
8347 GUIDEPS="\$(PM_GUIDEPS)"
8348 COMMONDEPS="\$(PM_COMMONDEPS)"
8349 GENERICDEPS="\$(PM_GENERICDEPS)"
8350 UNIXOBJS=
8351 UNIXDEPS=
8352 GUIDIST=GTK_DIST
8353fi
8354
8355if test "$TOOLKIT" != "PM" ; then
ec14dd32 8356 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8357else
8358 TOOLKIT_DIR="os2"
8359fi
10f2d63a 8360
2224580a 8361 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 8362
2224580a 8363 WX_LIBRARY="wx_${TOOLKIT_DIR}"
10f2d63a 8364
3fcdd07b
VZ
8365 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS)"
8366
b089607b 8367 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
8368 if test "$wxUSE_ODBC" = "yes" ; then
8369 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8370 fi
3fcdd07b
VZ
8371 fi
8372
d9d8273d 8373 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 8374 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
8375 fi
8376 if test "$wxUSE_LIBTIFF" = "yes" ; then
8377 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8378 fi
8379 if test "$wxUSE_LIBPNG" = "yes" ; then
8380 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8381 fi
8382 if test "$wxUSE_ZLIB" = "yes" ; then
8383 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8384 fi
10f2d63a 8385 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
2224580a
VZ
8386
8387 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8388 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8389 RPM_SPEC="wx\$(TOOLKIT).spec"
8390
8391 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8392 DISTDIR="wx\$(TOOLKIT)"
10f2d63a
VZ
8393else
8394
dad6c0ea
VZ
8395 USE_GUI=0
8396
2224580a
VZ
8397 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8398 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
10f2d63a
VZ
8399
8400 WX_LIBRARY="wxbase"
2224580a
VZ
8401
8402 PORT_FILES="src/files.lst"
8403 RPM_FILES="src/rpmfiles.lst"
8404 RPM_SPEC="wxBase.spec"
8405
8406 GUIDIST="BASE_DIST"
8407 DISTDIR="wxBase"
10f2d63a
VZ
8408fi
8409
8410WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8411
8412WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8413
8414WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8415
8416WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8417WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8418WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8419
8420SHARED_LD=
8421PIC_FLAG=
8422WX_ALL=
8423WX_ALL_INSTALLED=
1d62a8b4 8424BURNT_LIBRARY_NAME=
10f2d63a 8425
b12915c1 8426
10f2d63a
VZ
8427if test "$wxUSE_SHARED" = "yes"; then
8428 case "${host}" in
8429 *-hp-hpux* )
8430 if test "$GCC" = yes ; then
69ffe1d2 8431 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8432 PIC_FLAG="-fPIC"
8433 else
8434 SHARED_LD="${CXX} -b -o"
8435 PIC_FLAG="+Z"
8436 fi
8437 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8438 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8439 ;;
b12915c1
VZ
8440
8441 *-*-linux* )
10f2d63a
VZ
8442 SHARED_LD="${CC} -shared -o"
8443 PIC_FLAG="-fPIC"
8444 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8445 WX_ALL="CREATE_LINKS"
00cf1208
RR
8446 if test "$wxUSE_BURNT_NAME" = "yes" ; then
8447 BURNT_LIBRARY_NAME="-Wl,-soname -Wl,${WX_LIBRARY_NAME_SHARED}"
8448 fi
8449 ;;
10f2d63a
VZ
8450 *-*-irix5* | *-*-irix6* )
8451 if test "$GCC" = yes ; then
8452 SHARED_LD="${CC} -shared -o"
8453 PIC_FLAG="-fPIC"
8454 else
8455 SHARED_LD="${CXX} -shared -o"
8456 fi
8457 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8458 WX_ALL="CREATE_LINKS"
8459 ;;
8460 *-*-solaris2* )
8461 if test "$GCC" = yes ; then
8462 SHARED_LD="${CC} -shared -o"
8463 PIC_FLAG="-fPIC"
8464 else
8465 SHARED_LD="${CXX} -G -o"
8466 PIC_FLAG="-KPIC"
8467 fi
8468 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8469 WX_ALL="CREATE_LINKS"
8470 ;;
8471 *-*-sunos4* )
8472 SHARED_LD="${CC} -shared -o"
8473 PIC_FLAG="-fPIC"
8474 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8475 WX_ALL="CREATE_LINKS"
8476 ;;
8477 *-*-freebsd* | *-*-netbsd*)
8478 SHARED_LD="${CC} -shared -o"
8479 PIC_FLAG="-fPIC"
8480 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8481 WX_ALL="CREATE_LINKS"
8482 ;;
8483 *-*-osf* )
8484 SHARED_LD="${CXX} -shared -o"
8485 PIC_FLAG="-fPIC"
8486 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8487 WX_ALL="CREATE_LINKS"
8488 ;;
8489 *-*-dgux5* )
8490 SHARED_LD="${CXX} -shared -o"
8491 PIC_FLAG="-fPIC"
8492 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8493 WX_ALL="CREATE_LINKS"
8494 ;;
8495 *-*-sysv5* )
8496 SHARED_LD="${CC} -shared -o"
8497 PIC_FLAG="-fPIC"
8498 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8499 WX_ALL="CREATE_LINKS"
8500 ;;
8501 *-*-aix* )
8502 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8503 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8504 ;;
8505 *-*-cygwin32* )
8506 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8507 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8508 ;;
b12915c1 8509 *-*-mingw32* )
10f2d63a
VZ
8510 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8511 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8512 ;;
8513 *-pc-os2_emx )
e07802fc
VZ
8514 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8515 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 8516 ;;
b12915c1 8517 *-*-beos* )
e2b8b066 8518 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
8519 PIC_FLAG="-fPIC"
8520 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8521 WX_ALL="CREATE_LINKS"
8522 ;;
10f2d63a
VZ
8523 *)
8524 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8525 esac
8526
8527 if test "x$WX_TARGET_LIBRARY" = "x"; then
8528 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8529 fi
8530else
8531 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8532 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8533fi
8534
8535
8536for ac_hdr in strings.h
8537do
8538ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8539echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
00cf1208 8540echo "configure:8541: checking for $ac_hdr" >&5
10f2d63a
VZ
8541if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8542 echo $ac_n "(cached) $ac_c" 1>&6
8543else
8544 cat > conftest.$ac_ext <<EOF
00cf1208 8545#line 8546 "configure"
10f2d63a
VZ
8546#include "confdefs.h"
8547#include <$ac_hdr>
8548EOF
8549ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 8550{ (eval echo configure:8551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8551ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8552if test -z "$ac_err"; then
8553 rm -rf conftest*
8554 eval "ac_cv_header_$ac_safe=yes"
8555else
8556 echo "$ac_err" >&5
8557 echo "configure: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8559 rm -rf conftest*
8560 eval "ac_cv_header_$ac_safe=no"
8561fi
8562rm -f conftest*
8563fi
8564if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8565 echo "$ac_t""yes" 1>&6
8566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8567 cat >> confdefs.h <<EOF
8568#define $ac_tr_hdr 1
8569EOF
8570
8571else
8572 echo "$ac_t""no" 1>&6
8573fi
8574done
8575
8576for ac_hdr in unistd.h
8577do
8578ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8579echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
00cf1208 8580echo "configure:8581: checking for $ac_hdr" >&5
10f2d63a
VZ
8581if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8582 echo $ac_n "(cached) $ac_c" 1>&6
8583else
8584 cat > conftest.$ac_ext <<EOF
00cf1208 8585#line 8586 "configure"
10f2d63a
VZ
8586#include "confdefs.h"
8587#include <$ac_hdr>
8588EOF
8589ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 8590{ (eval echo configure:8591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8591ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8592if test -z "$ac_err"; then
8593 rm -rf conftest*
8594 eval "ac_cv_header_$ac_safe=yes"
8595else
8596 echo "$ac_err" >&5
8597 echo "configure: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8599 rm -rf conftest*
8600 eval "ac_cv_header_$ac_safe=no"
8601fi
8602rm -f conftest*
8603fi
8604if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8605 echo "$ac_t""yes" 1>&6
8606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8607 cat >> confdefs.h <<EOF
8608#define $ac_tr_hdr 1
8609EOF
8610
8611else
8612 echo "$ac_t""no" 1>&6
8613fi
8614done
8615
8616for ac_hdr in wchar.h
8617do
8618ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8619echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
00cf1208 8620echo "configure:8621: checking for $ac_hdr" >&5
10f2d63a
VZ
8621if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8622 echo $ac_n "(cached) $ac_c" 1>&6
8623else
8624 cat > conftest.$ac_ext <<EOF
00cf1208 8625#line 8626 "configure"
10f2d63a
VZ
8626#include "confdefs.h"
8627#include <$ac_hdr>
8628EOF
8629ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 8630{ (eval echo configure:8631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8631ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8632if test -z "$ac_err"; then
8633 rm -rf conftest*
8634 eval "ac_cv_header_$ac_safe=yes"
8635else
8636 echo "$ac_err" >&5
8637 echo "configure: failed program was:" >&5
8638 cat conftest.$ac_ext >&5
8639 rm -rf conftest*
8640 eval "ac_cv_header_$ac_safe=no"
8641fi
8642rm -f conftest*
8643fi
8644if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8645 echo "$ac_t""yes" 1>&6
8646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8647 cat >> confdefs.h <<EOF
8648#define $ac_tr_hdr 1
8649EOF
8650
8651else
8652 echo "$ac_t""no" 1>&6
8653fi
8654done
8655
8656for ac_hdr in wcstr.h
8657do
8658ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8659echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
00cf1208 8660echo "configure:8661: checking for $ac_hdr" >&5
10f2d63a
VZ
8661if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8662 echo $ac_n "(cached) $ac_c" 1>&6
8663else
8664 cat > conftest.$ac_ext <<EOF
00cf1208 8665#line 8666 "configure"
10f2d63a
VZ
8666#include "confdefs.h"
8667#include <$ac_hdr>
8668EOF
8669ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 8670{ (eval echo configure:8671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8671ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8672if test -z "$ac_err"; then
8673 rm -rf conftest*
8674 eval "ac_cv_header_$ac_safe=yes"
8675else
8676 echo "$ac_err" >&5
8677 echo "configure: failed program was:" >&5
8678 cat conftest.$ac_ext >&5
8679 rm -rf conftest*
8680 eval "ac_cv_header_$ac_safe=no"
8681fi
8682rm -f conftest*
8683fi
8684if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8685 echo "$ac_t""yes" 1>&6
8686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8687 cat >> confdefs.h <<EOF
8688#define $ac_tr_hdr 1
8689EOF
8690
8691else
8692 echo "$ac_t""no" 1>&6
8693fi
8694done
8695
8696for ac_hdr in fnmatch.h
8697do
8698ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8699echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
00cf1208 8700echo "configure:8701: checking for $ac_hdr" >&5
10f2d63a
VZ
8701if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8702 echo $ac_n "(cached) $ac_c" 1>&6
8703else
8704 cat > conftest.$ac_ext <<EOF
00cf1208 8705#line 8706 "configure"
10f2d63a
VZ
8706#include "confdefs.h"
8707#include <$ac_hdr>
8708EOF
8709ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 8710{ (eval echo configure:8711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8711ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8712if test -z "$ac_err"; then
8713 rm -rf conftest*
8714 eval "ac_cv_header_$ac_safe=yes"
8715else
8716 echo "$ac_err" >&5
8717 echo "configure: failed program was:" >&5
8718 cat conftest.$ac_ext >&5
8719 rm -rf conftest*
8720 eval "ac_cv_header_$ac_safe=no"
8721fi
8722rm -f conftest*
8723fi
8724if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8725 echo "$ac_t""yes" 1>&6
8726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8727 cat >> confdefs.h <<EOF
8728#define $ac_tr_hdr 1
8729EOF
8730
8731else
8732 echo "$ac_t""no" 1>&6
8733fi
8734done
8735
8736
8737if test "$wxUSE_GUI" = "yes"; then
8738 for ac_hdr in X11/XKBlib.h
8739do
8740ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8741echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
00cf1208 8742echo "configure:8743: checking for $ac_hdr" >&5
10f2d63a
VZ
8743if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8744 echo $ac_n "(cached) $ac_c" 1>&6
8745else
8746 cat > conftest.$ac_ext <<EOF
00cf1208 8747#line 8748 "configure"
10f2d63a
VZ
8748#include "confdefs.h"
8749#include <$ac_hdr>
8750EOF
8751ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 8752{ (eval echo configure:8753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8753ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8754if test -z "$ac_err"; then
8755 rm -rf conftest*
8756 eval "ac_cv_header_$ac_safe=yes"
8757else
8758 echo "$ac_err" >&5
8759 echo "configure: failed program was:" >&5
8760 cat conftest.$ac_ext >&5
8761 rm -rf conftest*
8762 eval "ac_cv_header_$ac_safe=no"
8763fi
8764rm -f conftest*
8765fi
8766if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8767 echo "$ac_t""yes" 1>&6
8768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8769 cat >> confdefs.h <<EOF
8770#define $ac_tr_hdr 1
8771EOF
8772
8773else
8774 echo "$ac_t""no" 1>&6
8775fi
8776done
8777
8778fi
8779
8780
8781echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
00cf1208 8782echo "configure:8783: checking for ANSI C header files" >&5
10f2d63a
VZ
8783if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8784 echo $ac_n "(cached) $ac_c" 1>&6
8785else
8786 cat > conftest.$ac_ext <<EOF
00cf1208 8787#line 8788 "configure"
10f2d63a
VZ
8788#include "confdefs.h"
8789#include <stdlib.h>
8790#include <stdarg.h>
8791#include <string.h>
8792#include <float.h>
8793EOF
8794ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 8795{ (eval echo configure:8796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8796ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8797if test -z "$ac_err"; then
8798 rm -rf conftest*
8799 ac_cv_header_stdc=yes
8800else
8801 echo "$ac_err" >&5
8802 echo "configure: failed program was:" >&5
8803 cat conftest.$ac_ext >&5
8804 rm -rf conftest*
8805 ac_cv_header_stdc=no
8806fi
8807rm -f conftest*
8808
8809if test $ac_cv_header_stdc = yes; then
8810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8811cat > conftest.$ac_ext <<EOF
00cf1208 8812#line 8813 "configure"
10f2d63a
VZ
8813#include "confdefs.h"
8814#include <string.h>
8815EOF
8816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8817 egrep "memchr" >/dev/null 2>&1; then
8818 :
8819else
8820 rm -rf conftest*
8821 ac_cv_header_stdc=no
8822fi
8823rm -f conftest*
8824
8825fi
8826
8827if test $ac_cv_header_stdc = yes; then
8828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8829cat > conftest.$ac_ext <<EOF
00cf1208 8830#line 8831 "configure"
10f2d63a
VZ
8831#include "confdefs.h"
8832#include <stdlib.h>
8833EOF
8834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8835 egrep "free" >/dev/null 2>&1; then
8836 :
8837else
8838 rm -rf conftest*
8839 ac_cv_header_stdc=no
8840fi
8841rm -f conftest*
8842
8843fi
8844
8845if test $ac_cv_header_stdc = yes; then
8846 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8847if test "$cross_compiling" = yes; then
8848 :
8849else
8850 cat > conftest.$ac_ext <<EOF
00cf1208 8851#line 8852 "configure"
10f2d63a
VZ
8852#include "confdefs.h"
8853#include <ctype.h>
8854#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8855#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8856#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8857int main () { int i; for (i = 0; i < 256; i++)
8858if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8859exit (0); }
8860
8861EOF
00cf1208 8862if { (eval echo configure:8863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8863then
8864 :
8865else
8866 echo "configure: failed program was:" >&5
8867 cat conftest.$ac_ext >&5
8868 rm -fr conftest*
8869 ac_cv_header_stdc=no
8870fi
8871rm -fr conftest*
8872fi
8873
8874fi
8875fi
8876
8877echo "$ac_t""$ac_cv_header_stdc" 1>&6
8878if test $ac_cv_header_stdc = yes; then
8879 cat >> confdefs.h <<\EOF
8880#define STDC_HEADERS 1
8881EOF
8882
8883fi
8884
8885echo $ac_n "checking for mode_t""... $ac_c" 1>&6
00cf1208 8886echo "configure:8887: checking for mode_t" >&5
10f2d63a
VZ
8887if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8888 echo $ac_n "(cached) $ac_c" 1>&6
8889else
8890 cat > conftest.$ac_ext <<EOF
00cf1208 8891#line 8892 "configure"
10f2d63a
VZ
8892#include "confdefs.h"
8893#include <sys/types.h>
8894#if STDC_HEADERS
8895#include <stdlib.h>
8896#include <stddef.h>
8897#endif
8898EOF
8899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8900 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8901 rm -rf conftest*
8902 ac_cv_type_mode_t=yes
8903else
8904 rm -rf conftest*
8905 ac_cv_type_mode_t=no
8906fi
8907rm -f conftest*
8908
8909fi
8910echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8911if test $ac_cv_type_mode_t = no; then
8912 cat >> confdefs.h <<\EOF
8913#define mode_t int
8914EOF
8915
8916fi
8917
8918echo $ac_n "checking for off_t""... $ac_c" 1>&6
00cf1208 8919echo "configure:8920: checking for off_t" >&5
10f2d63a
VZ
8920if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
8922else
8923 cat > conftest.$ac_ext <<EOF
00cf1208 8924#line 8925 "configure"
10f2d63a
VZ
8925#include "confdefs.h"
8926#include <sys/types.h>
8927#if STDC_HEADERS
8928#include <stdlib.h>
8929#include <stddef.h>
8930#endif
8931EOF
8932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8933 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8934 rm -rf conftest*
8935 ac_cv_type_off_t=yes
8936else
8937 rm -rf conftest*
8938 ac_cv_type_off_t=no
8939fi
8940rm -f conftest*
8941
8942fi
8943echo "$ac_t""$ac_cv_type_off_t" 1>&6
8944if test $ac_cv_type_off_t = no; then
8945 cat >> confdefs.h <<\EOF
8946#define off_t long
8947EOF
8948
8949fi
8950
8951echo $ac_n "checking for pid_t""... $ac_c" 1>&6
00cf1208 8952echo "configure:8953: checking for pid_t" >&5
10f2d63a
VZ
8953if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8954 echo $ac_n "(cached) $ac_c" 1>&6
8955else
8956 cat > conftest.$ac_ext <<EOF
00cf1208 8957#line 8958 "configure"
10f2d63a
VZ
8958#include "confdefs.h"
8959#include <sys/types.h>
8960#if STDC_HEADERS
8961#include <stdlib.h>
8962#include <stddef.h>
8963#endif
8964EOF
8965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8966 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8967 rm -rf conftest*
8968 ac_cv_type_pid_t=yes
8969else
8970 rm -rf conftest*
8971 ac_cv_type_pid_t=no
8972fi
8973rm -f conftest*
8974
8975fi
8976echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8977if test $ac_cv_type_pid_t = no; then
8978 cat >> confdefs.h <<\EOF
8979#define pid_t int
8980EOF
8981
8982fi
8983
8984echo $ac_n "checking for size_t""... $ac_c" 1>&6
00cf1208 8985echo "configure:8986: checking for size_t" >&5
10f2d63a
VZ
8986if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8987 echo $ac_n "(cached) $ac_c" 1>&6
8988else
8989 cat > conftest.$ac_ext <<EOF
00cf1208 8990#line 8991 "configure"
10f2d63a
VZ
8991#include "confdefs.h"
8992#include <sys/types.h>
8993#if STDC_HEADERS
8994#include <stdlib.h>
8995#include <stddef.h>
8996#endif
8997EOF
8998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8999 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9000 rm -rf conftest*
9001 ac_cv_type_size_t=yes
9002else
9003 rm -rf conftest*
9004 ac_cv_type_size_t=no
9005fi
9006rm -f conftest*
9007
9008fi
9009echo "$ac_t""$ac_cv_type_size_t" 1>&6
9010if test $ac_cv_type_size_t = no; then
9011 cat >> confdefs.h <<\EOF
9012#define size_t unsigned
9013EOF
9014
9015fi
9016
9017echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
00cf1208 9018echo "configure:9019: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
9019if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9020 echo $ac_n "(cached) $ac_c" 1>&6
9021else
9022 cat > conftest.$ac_ext <<EOF
00cf1208 9023#line 9024 "configure"
10f2d63a
VZ
9024#include "confdefs.h"
9025#include <sys/types.h>
9026EOF
9027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9028 egrep "uid_t" >/dev/null 2>&1; then
9029 rm -rf conftest*
9030 ac_cv_type_uid_t=yes
9031else
9032 rm -rf conftest*
9033 ac_cv_type_uid_t=no
9034fi
9035rm -f conftest*
9036
9037fi
9038
9039echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9040if test $ac_cv_type_uid_t = no; then
9041 cat >> confdefs.h <<\EOF
9042#define uid_t int
9043EOF
9044
9045 cat >> confdefs.h <<\EOF
9046#define gid_t int
9047EOF
9048
9049fi
9050
9051
9052
b12915c1 9053echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
00cf1208 9054echo "configure:9055: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
9055if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9056 echo $ac_n "(cached) $ac_c" 1>&6
9057else
9058
9059 cat > conftest.$ac_ext <<EOF
00cf1208 9060#line 9061 "configure"
b12915c1
VZ
9061#include "confdefs.h"
9062#include <pwd.h>
9063int main() {
9064
9065 char *p;
9066 struct passwd *pw;
9067 p = pw->pw_gecos;
9068
9069; return 0; }
9070EOF
00cf1208 9071if { (eval echo configure:9072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
9072 rm -rf conftest*
9073
9074 wx_cv_struct_pw_gecos=yes
9075 cat >> confdefs.h <<\EOF
9076#define HAVE_PW_GECOS 1
9077EOF
9078
9079
9080else
9081 echo "configure: failed program was:" >&5
9082 cat conftest.$ac_ext >&5
9083 rm -rf conftest*
9084
9085 wx_cv_struct_pw_gecos=no
9086
9087
9088fi
9089rm -f conftest*
9090
9091
9092fi
9093
9094echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9095
10f2d63a
VZ
9096
9097echo $ac_n "checking for working const""... $ac_c" 1>&6
00cf1208 9098echo "configure:9099: checking for working const" >&5
10f2d63a
VZ
9099if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9100 echo $ac_n "(cached) $ac_c" 1>&6
9101else
9102 cat > conftest.$ac_ext <<EOF
00cf1208 9103#line 9104 "configure"
10f2d63a
VZ
9104#include "confdefs.h"
9105
9106int main() {
9107
9108/* Ultrix mips cc rejects this. */
00cf1208 9109typedef int charset[2]; const charset x;
10f2d63a
VZ
9110/* SunOS 4.1.1 cc rejects this. */
9111char const *const *ccp;
9112char **p;
9113/* NEC SVR4.0.2 mips cc rejects this. */
9114struct point {int x, y;};
9115static struct point const zero = {0,0};
9116/* AIX XL C 1.02.0.0 rejects this.
9117 It does not let you subtract one const X* pointer from another in an arm
9118 of an if-expression whose if-part is not a constant expression */
9119const char *g = "string";
9120ccp = &g + (g ? g-g : 0);
9121/* HPUX 7.0 cc rejects these. */
9122++ccp;
9123p = (char**) ccp;
9124ccp = (char const *const *) p;
9125{ /* SCO 3.2v4 cc rejects this. */
9126 char *t;
9127 char const *s = 0 ? (char *) 0 : (char const *) 0;
9128
9129 *t++ = 0;
9130}
9131{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9132 int x[] = {25, 17};
9133 const int *foo = &x[0];
9134 ++foo;
9135}
9136{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9137 typedef const int *iptr;
9138 iptr p = 0;
9139 ++p;
9140}
9141{ /* AIX XL C 1.02.0.0 rejects this saying
9142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9143 struct s { int j; const int *ap[3]; };
9144 struct s *b; b->j = 5;
9145}
9146{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9147 const int foo = 10;
9148}
9149
9150; return 0; }
9151EOF
00cf1208 9152if { (eval echo configure:9153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9153 rm -rf conftest*
9154 ac_cv_c_const=yes
9155else
9156 echo "configure: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9158 rm -rf conftest*
9159 ac_cv_c_const=no
9160fi
9161rm -f conftest*
9162fi
9163
9164echo "$ac_t""$ac_cv_c_const" 1>&6
9165if test $ac_cv_c_const = no; then
9166 cat >> confdefs.h <<\EOF
9167#define const
9168EOF
9169
9170fi
9171
9172echo $ac_n "checking for inline""... $ac_c" 1>&6
00cf1208 9173echo "configure:9174: checking for inline" >&5
10f2d63a
VZ
9174if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9176else
9177 ac_cv_c_inline=no
9178for ac_kw in inline __inline__ __inline; do
9179 cat > conftest.$ac_ext <<EOF
00cf1208 9180#line 9181 "configure"
10f2d63a
VZ
9181#include "confdefs.h"
9182
9183int main() {
00cf1208 9184} $ac_kw foo() {
10f2d63a
VZ
9185; return 0; }
9186EOF
00cf1208 9187if { (eval echo configure:9188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9188 rm -rf conftest*
9189 ac_cv_c_inline=$ac_kw; break
9190else
9191 echo "configure: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9193fi
9194rm -f conftest*
9195done
9196
9197fi
9198
9199echo "$ac_t""$ac_cv_c_inline" 1>&6
9200case "$ac_cv_c_inline" in
9201 inline | yes) ;;
9202 no) cat >> confdefs.h <<\EOF
9203#define inline
9204EOF
9205 ;;
9206 *) cat >> confdefs.h <<EOF
9207#define inline $ac_cv_c_inline
9208EOF
9209 ;;
9210esac
9211
9212
9213echo $ac_n "checking size of char""... $ac_c" 1>&6
00cf1208 9214echo "configure:9215: checking size of char" >&5
10f2d63a
VZ
9215if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9216 echo $ac_n "(cached) $ac_c" 1>&6
9217else
9218 if test "$cross_compiling" = yes; then
9219 ac_cv_sizeof_char=1
9220else
9221 cat > conftest.$ac_ext <<EOF
00cf1208 9222#line 9223 "configure"
10f2d63a
VZ
9223#include "confdefs.h"
9224#include <stdio.h>
9225main()
9226{
9227 FILE *f=fopen("conftestval", "w");
9228 if (!f) exit(1);
9229 fprintf(f, "%d\n", sizeof(char));
9230 exit(0);
9231}
9232EOF
00cf1208 9233if { (eval echo configure:9234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9234then
9235 ac_cv_sizeof_char=`cat conftestval`
9236else
9237 echo "configure: failed program was:" >&5
9238 cat conftest.$ac_ext >&5
9239 rm -fr conftest*
9240 ac_cv_sizeof_char=0
9241fi
9242rm -fr conftest*
9243fi
9244
9245fi
9246echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9247cat >> confdefs.h <<EOF
9248#define SIZEOF_CHAR $ac_cv_sizeof_char
9249EOF
9250
9251
9252echo $ac_n "checking size of short""... $ac_c" 1>&6
00cf1208 9253echo "configure:9254: checking size of short" >&5
10f2d63a
VZ
9254if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9255 echo $ac_n "(cached) $ac_c" 1>&6
9256else
9257 if test "$cross_compiling" = yes; then
9258 ac_cv_sizeof_short=2
9259else
9260 cat > conftest.$ac_ext <<EOF
00cf1208 9261#line 9262 "configure"
10f2d63a
VZ
9262#include "confdefs.h"
9263#include <stdio.h>
9264main()
9265{
9266 FILE *f=fopen("conftestval", "w");
9267 if (!f) exit(1);
9268 fprintf(f, "%d\n", sizeof(short));
9269 exit(0);
9270}
9271EOF
00cf1208 9272if { (eval echo configure:9273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9273then
9274 ac_cv_sizeof_short=`cat conftestval`
9275else
9276 echo "configure: failed program was:" >&5
9277 cat conftest.$ac_ext >&5
9278 rm -fr conftest*
9279 ac_cv_sizeof_short=0
9280fi
9281rm -fr conftest*
9282fi
9283
9284fi
9285echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9286cat >> confdefs.h <<EOF
9287#define SIZEOF_SHORT $ac_cv_sizeof_short
9288EOF
9289
9290
9291echo $ac_n "checking size of int *""... $ac_c" 1>&6
00cf1208 9292echo "configure:9293: checking size of int *" >&5
10f2d63a
VZ
9293if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9294 echo $ac_n "(cached) $ac_c" 1>&6
9295else
9296 if test "$cross_compiling" = yes; then
9297 ac_cv_sizeof_int_p=4
9298else
9299 cat > conftest.$ac_ext <<EOF
00cf1208 9300#line 9301 "configure"
10f2d63a
VZ
9301#include "confdefs.h"
9302#include <stdio.h>
9303main()
9304{
9305 FILE *f=fopen("conftestval", "w");
9306 if (!f) exit(1);
9307 fprintf(f, "%d\n", sizeof(int *));
9308 exit(0);
9309}
9310EOF
00cf1208 9311if { (eval echo configure:9312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9312then
9313 ac_cv_sizeof_int_p=`cat conftestval`
9314else
9315 echo "configure: failed program was:" >&5
9316 cat conftest.$ac_ext >&5
9317 rm -fr conftest*
9318 ac_cv_sizeof_int_p=0
9319fi
9320rm -fr conftest*
9321fi
9322
9323fi
9324echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9325cat >> confdefs.h <<EOF
9326#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9327EOF
9328
9329
9330echo $ac_n "checking size of int""... $ac_c" 1>&6
00cf1208 9331echo "configure:9332: checking size of int" >&5
10f2d63a
VZ
9332if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9333 echo $ac_n "(cached) $ac_c" 1>&6
9334else
9335 if test "$cross_compiling" = yes; then
9336 ac_cv_sizeof_int=4
9337else
9338 cat > conftest.$ac_ext <<EOF
00cf1208 9339#line 9340 "configure"
10f2d63a
VZ
9340#include "confdefs.h"
9341#include <stdio.h>
9342main()
9343{
9344 FILE *f=fopen("conftestval", "w");
9345 if (!f) exit(1);
9346 fprintf(f, "%d\n", sizeof(int));
9347 exit(0);
9348}
9349EOF
00cf1208 9350if { (eval echo configure:9351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9351then
9352 ac_cv_sizeof_int=`cat conftestval`
9353else
9354 echo "configure: failed program was:" >&5
9355 cat conftest.$ac_ext >&5
9356 rm -fr conftest*
9357 ac_cv_sizeof_int=0
9358fi
9359rm -fr conftest*
9360fi
9361
9362fi
9363echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9364cat >> confdefs.h <<EOF
9365#define SIZEOF_INT $ac_cv_sizeof_int
9366EOF
9367
9368
9369echo $ac_n "checking size of long""... $ac_c" 1>&6
00cf1208 9370echo "configure:9371: checking size of long" >&5
10f2d63a
VZ
9371if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9372 echo $ac_n "(cached) $ac_c" 1>&6
9373else
9374 if test "$cross_compiling" = yes; then
9375 ac_cv_sizeof_long=4
9376else
9377 cat > conftest.$ac_ext <<EOF
00cf1208 9378#line 9379 "configure"
10f2d63a
VZ
9379#include "confdefs.h"
9380#include <stdio.h>
9381main()
9382{
9383 FILE *f=fopen("conftestval", "w");
9384 if (!f) exit(1);
9385 fprintf(f, "%d\n", sizeof(long));
9386 exit(0);
9387}
9388EOF
00cf1208 9389if { (eval echo configure:9390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9390then
9391 ac_cv_sizeof_long=`cat conftestval`
9392else
9393 echo "configure: failed program was:" >&5
9394 cat conftest.$ac_ext >&5
9395 rm -fr conftest*
9396 ac_cv_sizeof_long=0
9397fi
9398rm -fr conftest*
9399fi
9400
9401fi
9402echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9403cat >> confdefs.h <<EOF
9404#define SIZEOF_LONG $ac_cv_sizeof_long
9405EOF
9406
9407
9408echo $ac_n "checking size of long long""... $ac_c" 1>&6
00cf1208 9409echo "configure:9410: checking size of long long" >&5
10f2d63a
VZ
9410if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9411 echo $ac_n "(cached) $ac_c" 1>&6
9412else
9413 if test "$cross_compiling" = yes; then
9414 ac_cv_sizeof_long_long=0
9415else
9416 cat > conftest.$ac_ext <<EOF
00cf1208 9417#line 9418 "configure"
10f2d63a
VZ
9418#include "confdefs.h"
9419#include <stdio.h>
9420main()
9421{
9422 FILE *f=fopen("conftestval", "w");
9423 if (!f) exit(1);
9424 fprintf(f, "%d\n", sizeof(long long));
9425 exit(0);
9426}
9427EOF
00cf1208 9428if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9429then
9430 ac_cv_sizeof_long_long=`cat conftestval`
9431else
9432 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9434 rm -fr conftest*
9435 ac_cv_sizeof_long_long=0
9436fi
9437rm -fr conftest*
9438fi
9439
9440fi
9441echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9442cat >> confdefs.h <<EOF
9443#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9444EOF
9445
9446
9447
9448echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
00cf1208 9449echo "configure:9450: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9450if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9451 echo $ac_n "(cached) $ac_c" 1>&6
9452else
9453 ac_cv_c_bigendian=unknown
9454# See if sys/param.h defines the BYTE_ORDER macro.
9455cat > conftest.$ac_ext <<EOF
00cf1208 9456#line 9457 "configure"
10f2d63a
VZ
9457#include "confdefs.h"
9458#include <sys/types.h>
9459#include <sys/param.h>
9460int main() {
9461
9462#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9463 bogus endian macros
9464#endif
9465; return 0; }
9466EOF
00cf1208 9467if { (eval echo configure:9468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9468 rm -rf conftest*
9469 # It does; now see whether it defined to BIG_ENDIAN or not.
9470cat > conftest.$ac_ext <<EOF
00cf1208 9471#line 9472 "configure"
10f2d63a
VZ
9472#include "confdefs.h"
9473#include <sys/types.h>
9474#include <sys/param.h>
9475int main() {
9476
9477#if BYTE_ORDER != BIG_ENDIAN
9478 not big endian
9479#endif
9480; return 0; }
9481EOF
00cf1208 9482if { (eval echo configure:9483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9483 rm -rf conftest*
9484 ac_cv_c_bigendian=yes
9485else
9486 echo "configure: failed program was:" >&5
9487 cat conftest.$ac_ext >&5
9488 rm -rf conftest*
9489 ac_cv_c_bigendian=no
9490fi
9491rm -f conftest*
9492else
9493 echo "configure: failed program was:" >&5
9494 cat conftest.$ac_ext >&5
9495fi
9496rm -f conftest*
9497if test $ac_cv_c_bigendian = unknown; then
9498if test "$cross_compiling" = yes; then
9499 ac_cv_c_bigendian=unknown
9500else
9501 cat > conftest.$ac_ext <<EOF
00cf1208 9502#line 9503 "configure"
10f2d63a
VZ
9503#include "confdefs.h"
9504main () {
9505 /* Are we little or big endian? From Harbison&Steele. */
9506 union
9507 {
9508 long l;
9509 char c[sizeof (long)];
9510 } u;
9511 u.l = 1;
9512 exit (u.c[sizeof (long) - 1] == 1);
9513}
9514EOF
00cf1208 9515if { (eval echo configure:9516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9516then
9517 ac_cv_c_bigendian=no
9518else
9519 echo "configure: failed program was:" >&5
9520 cat conftest.$ac_ext >&5
9521 rm -fr conftest*
9522 ac_cv_c_bigendian=yes
9523fi
9524rm -fr conftest*
9525fi
9526
9527fi
9528fi
9529
9530echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9531if test $ac_cv_c_bigendian = unknown; then
9532 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
9533fi
9534if test $ac_cv_c_bigendian = yes; then
9535 cat >> confdefs.h <<\EOF
9536#define WORDS_BIGENDIAN 1
9537EOF
9538
9539fi
9540
9541
9542
9543 if test "$cross_compiling" = "yes"; then
9544 cat >> confdefs.h <<\EOF
9545#define wxUSE_IOSTREAMH 1
9546EOF
9547
9548 else
9549
9550 ac_ext=C
9551# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9552ac_cpp='$CXXCPP $CPPFLAGS'
9553ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9554ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9555cross_compiling=$ac_cv_prog_cxx_cross
9556
9557
9558 for ac_hdr in iostream
9559do
9560ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9561echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
00cf1208 9562echo "configure:9563: checking for $ac_hdr" >&5
10f2d63a
VZ
9563if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9564 echo $ac_n "(cached) $ac_c" 1>&6
9565else
9566 cat > conftest.$ac_ext <<EOF
00cf1208 9567#line 9568 "configure"
10f2d63a
VZ
9568#include "confdefs.h"
9569#include <$ac_hdr>
9570EOF
9571ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 9572{ (eval echo configure:9573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9573ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9574if test -z "$ac_err"; then
9575 rm -rf conftest*
9576 eval "ac_cv_header_$ac_safe=yes"
9577else
9578 echo "$ac_err" >&5
9579 echo "configure: failed program was:" >&5
9580 cat conftest.$ac_ext >&5
9581 rm -rf conftest*
9582 eval "ac_cv_header_$ac_safe=no"
9583fi
9584rm -f conftest*
9585fi
9586if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9587 echo "$ac_t""yes" 1>&6
9588 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9589 cat >> confdefs.h <<EOF
9590#define $ac_tr_hdr 1
9591EOF
9592
9593else
9594 echo "$ac_t""no" 1>&6
9595fi
9596done
9597
9598
9599 if test "x$HAVE_IOSTREAM" = x ; then
9600 cat >> confdefs.h <<\EOF
9601#define wxUSE_IOSTREAMH 1
9602EOF
9603
9604 else
9605 :
9606 fi
9607
9608 ac_ext=c
9609# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9610ac_cpp='$CPP $CPPFLAGS'
9611ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9612ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9613cross_compiling=$ac_cv_prog_cc_cross
9614
9615 fi
9616
9617
9618
9619 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
00cf1208 9620echo "configure:9621: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9621if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9622 echo $ac_n "(cached) $ac_c" 1>&6
9623else
9624
9625
9626 ac_ext=C
9627# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9628ac_cpp='$CXXCPP $CPPFLAGS'
9629ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9630ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9631cross_compiling=$ac_cv_prog_cxx_cross
9632
9633
9634 cat > conftest.$ac_ext <<EOF
00cf1208 9635#line 9636 "configure"
10f2d63a
VZ
9636#include "confdefs.h"
9637
9638
9639int main() {
9640
9641 bool b = true;
9642
9643 return 0;
9644
9645; return 0; }
9646EOF
00cf1208 9647if { (eval echo configure:9648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9648 rm -rf conftest*
9649
9650 cat >> confdefs.h <<\EOF
9651#define HAVE_BOOL 1
9652EOF
9653
9654 wx_cv_cpp_bool=yes
9655
9656else
9657 echo "configure: failed program was:" >&5
9658 cat conftest.$ac_ext >&5
9659 rm -rf conftest*
9660
9661 wx_cv_cpp_bool=no
9662
9663
9664fi
9665rm -f conftest*
9666
9667 ac_ext=c
9668# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9669ac_cpp='$CPP $CPPFLAGS'
9670ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9671ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9672cross_compiling=$ac_cv_prog_cc_cross
9673
9674
9675fi
9676
9677echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9678
9679 if test "$wx_cv_cpp_bool" = "yes"; then
9680 cat >> confdefs.h <<\EOF
9681#define HAVE_BOOL 1
9682EOF
9683
9684 fi
9685
9686
9687
10f2d63a 9688echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
00cf1208 9689echo "configure:9690: checking if you need GNU extensions" >&5
10f2d63a
VZ
9690if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9691 echo $ac_n "(cached) $ac_c" 1>&6
9692else
9693
9694 cat > conftest.$ac_ext <<EOF
00cf1208 9695#line 9696 "configure"
10f2d63a
VZ
9696#include "confdefs.h"
9697#include <features.h>
9698int main() {
9699
9700
9701#ifndef __GNU_LIBRARY__
9702 Compile error wanted
9703#endif
9704
9705
9706; return 0; }
9707EOF
00cf1208 9708if { (eval echo configure:9709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9709 rm -rf conftest*
9710 wx_cv_gnu_extensions=yes
9711else
9712 echo "configure: failed program was:" >&5
9713 cat conftest.$ac_ext >&5
9714 rm -rf conftest*
9715 wx_cv_gnu_extensions=no
9716fi
9717rm -f conftest*
9718
9719fi
9720
9721
9722echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9723if test "$wx_cv_gnu_extensions" = "yes"; then
9724 cat >> confdefs.h <<EOF
9725#define _GNU_SOURCE 1
9726EOF
9727
9728fi
9729
9730
9731
9732echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
00cf1208 9733echo "configure:9734: checking for wcslen in -lc" >&5
10f2d63a
VZ
9734ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9735if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9736 echo $ac_n "(cached) $ac_c" 1>&6
9737else
9738 ac_save_LIBS="$LIBS"
9739LIBS="-lc $LIBS"
9740cat > conftest.$ac_ext <<EOF
00cf1208 9741#line 9742 "configure"
10f2d63a
VZ
9742#include "confdefs.h"
9743/* Override any gcc2 internal prototype to avoid an error. */
9744/* We use char because int might match the return type of a gcc2
9745 builtin and then its argument prototype would still apply. */
9746char wcslen();
9747
9748int main() {
9749wcslen()
9750; return 0; }
9751EOF
00cf1208 9752if { (eval echo configure:9753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9753 rm -rf conftest*
9754 eval "ac_cv_lib_$ac_lib_var=yes"
9755else
9756 echo "configure: failed program was:" >&5
9757 cat conftest.$ac_ext >&5
9758 rm -rf conftest*
9759 eval "ac_cv_lib_$ac_lib_var=no"
9760fi
9761rm -f conftest*
9762LIBS="$ac_save_LIBS"
9763
9764fi
9765if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9766 echo "$ac_t""yes" 1>&6
9767
9768 cat >> confdefs.h <<\EOF
9769#define HAVE_WCSLEN 1
9770EOF
9771
9772 WCHAR_LINK=""
9773
9774else
9775 echo "$ac_t""no" 1>&6
9776
9777 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
00cf1208 9778echo "configure:9779: checking for wcslen in -lw" >&5
10f2d63a
VZ
9779ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9780if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9781 echo $ac_n "(cached) $ac_c" 1>&6
9782else
9783 ac_save_LIBS="$LIBS"
9784LIBS="-lw $LIBS"
9785cat > conftest.$ac_ext <<EOF
00cf1208 9786#line 9787 "configure"
10f2d63a
VZ
9787#include "confdefs.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 wcslen();
9792
9793int main() {
9794wcslen()
9795; return 0; }
9796EOF
00cf1208 9797if { (eval echo configure:9798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9798 rm -rf conftest*
9799 eval "ac_cv_lib_$ac_lib_var=yes"
9800else
9801 echo "configure: failed program was:" >&5
9802 cat conftest.$ac_ext >&5
9803 rm -rf conftest*
9804 eval "ac_cv_lib_$ac_lib_var=no"
9805fi
9806rm -f conftest*
9807LIBS="$ac_save_LIBS"
9808
9809fi
9810if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9811 echo "$ac_t""yes" 1>&6
9812
9813 cat >> confdefs.h <<\EOF
9814#define HAVE_WCSLEN 1
9815EOF
9816
9817 WCHAR_LINK="-lw"
9818
9819else
9820 echo "$ac_t""no" 1>&6
9821fi
9822
9823
9824fi
9825
9826
9827echo $ac_n "checking for vprintf""... $ac_c" 1>&6
00cf1208 9828echo "configure:9829: checking for vprintf" >&5
10f2d63a
VZ
9829if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9830 echo $ac_n "(cached) $ac_c" 1>&6
9831else
9832 cat > conftest.$ac_ext <<EOF
00cf1208 9833#line 9834 "configure"
10f2d63a
VZ
9834#include "confdefs.h"
9835/* System header to define __stub macros and hopefully few prototypes,
9836 which can conflict with char vprintf(); below. */
9837#include <assert.h>
9838/* Override any gcc2 internal prototype to avoid an error. */
9839/* We use char because int might match the return type of a gcc2
9840 builtin and then its argument prototype would still apply. */
9841char vprintf();
00cf1208 9842char (*f)();
10f2d63a
VZ
9843
9844int main() {
9845
9846/* The GNU C library defines this for functions which it implements
9847 to always fail with ENOSYS. Some functions are actually named
9848 something starting with __ and the normal name is an alias. */
9849#if defined (__stub_vprintf) || defined (__stub___vprintf)
9850choke me
9851#else
00cf1208 9852f = vprintf;
10f2d63a
VZ
9853#endif
9854
9855; return 0; }
9856EOF
00cf1208 9857if { (eval echo configure:9858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9858 rm -rf conftest*
9859 eval "ac_cv_func_vprintf=yes"
9860else
9861 echo "configure: failed program was:" >&5
9862 cat conftest.$ac_ext >&5
9863 rm -rf conftest*
9864 eval "ac_cv_func_vprintf=no"
9865fi
9866rm -f conftest*
9867fi
9868
9869if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9870 echo "$ac_t""yes" 1>&6
9871 cat >> confdefs.h <<\EOF
9872#define HAVE_VPRINTF 1
9873EOF
9874
9875else
9876 echo "$ac_t""no" 1>&6
9877fi
9878
9879if test "$ac_cv_func_vprintf" != yes; then
9880echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
00cf1208 9881echo "configure:9882: checking for _doprnt" >&5
10f2d63a
VZ
9882if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9883 echo $ac_n "(cached) $ac_c" 1>&6
9884else
9885 cat > conftest.$ac_ext <<EOF
00cf1208 9886#line 9887 "configure"
10f2d63a
VZ
9887#include "confdefs.h"
9888/* System header to define __stub macros and hopefully few prototypes,
9889 which can conflict with char _doprnt(); below. */
9890#include <assert.h>
9891/* Override any gcc2 internal prototype to avoid an error. */
9892/* We use char because int might match the return type of a gcc2
9893 builtin and then its argument prototype would still apply. */
9894char _doprnt();
00cf1208 9895char (*f)();
10f2d63a
VZ
9896
9897int main() {
9898
9899/* The GNU C library defines this for functions which it implements
9900 to always fail with ENOSYS. Some functions are actually named
9901 something starting with __ and the normal name is an alias. */
9902#if defined (__stub__doprnt) || defined (__stub____doprnt)
9903choke me
9904#else
00cf1208 9905f = _doprnt;
10f2d63a
VZ
9906#endif
9907
9908; return 0; }
9909EOF
00cf1208 9910if { (eval echo configure:9911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9911 rm -rf conftest*
9912 eval "ac_cv_func__doprnt=yes"
9913else
9914 echo "configure: failed program was:" >&5
9915 cat conftest.$ac_ext >&5
9916 rm -rf conftest*
9917 eval "ac_cv_func__doprnt=no"
9918fi
9919rm -f conftest*
9920fi
9921
9922if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9923 echo "$ac_t""yes" 1>&6
9924 cat >> confdefs.h <<\EOF
9925#define HAVE_DOPRNT 1
9926EOF
9927
9928else
9929 echo "$ac_t""no" 1>&6
9930fi
9931
9932fi
9933
9934
9935for ac_func in vsnprintf
9936do
9937echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
00cf1208 9938echo "configure:9939: checking for $ac_func" >&5
10f2d63a
VZ
9939if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9940 echo $ac_n "(cached) $ac_c" 1>&6
9941else
9942 cat > conftest.$ac_ext <<EOF
00cf1208 9943#line 9944 "configure"
10f2d63a
VZ
9944#include "confdefs.h"
9945/* System header to define __stub macros and hopefully few prototypes,
9946 which can conflict with char $ac_func(); below. */
9947#include <assert.h>
9948/* Override any gcc2 internal prototype to avoid an error. */
9949/* We use char because int might match the return type of a gcc2
9950 builtin and then its argument prototype would still apply. */
9951char $ac_func();
00cf1208 9952char (*f)();
10f2d63a
VZ
9953
9954int main() {
9955
9956/* The GNU C library defines this for functions which it implements
9957 to always fail with ENOSYS. Some functions are actually named
9958 something starting with __ and the normal name is an alias. */
9959#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9960choke me
9961#else
00cf1208 9962f = $ac_func;
10f2d63a
VZ
9963#endif
9964
9965; return 0; }
9966EOF
00cf1208 9967if { (eval echo configure:9968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9968 rm -rf conftest*
9969 eval "ac_cv_func_$ac_func=yes"
9970else
9971 echo "configure: failed program was:" >&5
9972 cat conftest.$ac_ext >&5
9973 rm -rf conftest*
9974 eval "ac_cv_func_$ac_func=no"
9975fi
9976rm -f conftest*
9977fi
9978
9979if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9980 echo "$ac_t""yes" 1>&6
9981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9982 cat >> confdefs.h <<EOF
9983#define $ac_tr_func 1
9984EOF
9985 cat >> confdefs.h <<\EOF
9986#define HAVE_VSNPRINTF 1
9987EOF
9988
9989else
9990 echo "$ac_t""no" 1>&6
9991echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9992
9993fi
9994done
9995
9996
9997
9998ac_ext=C
9999# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10000ac_cpp='$CXXCPP $CPPFLAGS'
10001ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10002ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10003cross_compiling=$ac_cv_prog_cxx_cross
10004
10005
10006echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
00cf1208 10007echo "configure:10008: checking for vsscanf" >&5
10f2d63a
VZ
10008if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10009 echo $ac_n "(cached) $ac_c" 1>&6
10010else
10011
10012 if test "$cross_compiling" = yes; then
10013 wx_cv_func_vsscanf=no
10014
10015else
10016 cat > conftest.$ac_ext <<EOF
00cf1208 10017#line 10018 "configure"
10f2d63a
VZ
10018#include "confdefs.h"
10019#ifdef __cplusplus
10020extern "C" void exit(int);
10021#endif
10022
10023 #include <stdio.h>
10024 #include <stdarg.h>
10025
10026 int try_vsscanf(const char *format, ...)
10027 {
10028 va_list ap;
10029 va_start(ap, format);
10030
10031 vsscanf("17", format, ap);
10032
10033 va_end(ap);
10034 }
10035
10036 int main()
10037 {
10038 int i;
10039 try_vsscanf("%d", &i);
10040 return i == 17 ? 0 : 1;
10041 }
10042
10043EOF
00cf1208 10044if { (eval echo configure:10045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10045then
10046
10047 cat >> confdefs.h <<\EOF
10048#define HAVE_VSSCANF 1
10049EOF
10050
10051 wx_cv_func_vsscanf=yes
10052
10053else
10054 echo "configure: failed program was:" >&5
10055 cat conftest.$ac_ext >&5
10056 rm -fr conftest*
10057 wx_cv_func_vsscanf=no
10058fi
10059rm -fr conftest*
10060fi
10061
10062
10063fi
10064
10065echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10066
10067ac_ext=c
10068# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10069ac_cpp='$CPP $CPPFLAGS'
10070ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10071ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10072cross_compiling=$ac_cv_prog_cc_cross
10073
10074
b089607b 10075if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10076
10077for ac_func in vfork
10078do
10079echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
00cf1208 10080echo "configure:10081: checking for $ac_func" >&5
10f2d63a
VZ
10081if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10082 echo $ac_n "(cached) $ac_c" 1>&6
10083else
10084 cat > conftest.$ac_ext <<EOF
00cf1208 10085#line 10086 "configure"
10f2d63a
VZ
10086#include "confdefs.h"
10087/* System header to define __stub macros and hopefully few prototypes,
10088 which can conflict with char $ac_func(); below. */
10089#include <assert.h>
10090/* Override any gcc2 internal prototype to avoid an error. */
10091/* We use char because int might match the return type of a gcc2
10092 builtin and then its argument prototype would still apply. */
10093char $ac_func();
00cf1208 10094char (*f)();
10f2d63a
VZ
10095
10096int main() {
10097
10098/* The GNU C library defines this for functions which it implements
10099 to always fail with ENOSYS. Some functions are actually named
10100 something starting with __ and the normal name is an alias. */
10101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10102choke me
10103#else
00cf1208 10104f = $ac_func;
10f2d63a
VZ
10105#endif
10106
10107; return 0; }
10108EOF
00cf1208 10109if { (eval echo configure:10110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
10110 rm -rf conftest*
10111 eval "ac_cv_func_$ac_func=yes"
10112else
10113 echo "configure: failed program was:" >&5
10114 cat conftest.$ac_ext >&5
10115 rm -rf conftest*
10116 eval "ac_cv_func_$ac_func=no"
10117fi
10118rm -f conftest*
10119fi
10120
10121if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10122 echo "$ac_t""yes" 1>&6
10123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10124 cat >> confdefs.h <<EOF
10125#define $ac_tr_func 1
10126EOF
10127
10128else
10129 echo "$ac_t""no" 1>&6
10130fi
10131done
10132
10133
10134for ac_func in timegm
10135do
10136echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
00cf1208 10137echo "configure:10138: checking for $ac_func" >&5
270a909e
VZ
10138if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10139 echo $ac_n "(cached) $ac_c" 1>&6
10140else
10141 cat > conftest.$ac_ext <<EOF
00cf1208 10142#line 10143 "configure"
270a909e
VZ
10143#include "confdefs.h"
10144/* System header to define __stub macros and hopefully few prototypes,
10145 which can conflict with char $ac_func(); below. */
10146#include <assert.h>
10147/* Override any gcc2 internal prototype to avoid an error. */
10148/* We use char because int might match the return type of a gcc2
10149 builtin and then its argument prototype would still apply. */
10150char $ac_func();
00cf1208 10151char (*f)();
270a909e
VZ
10152
10153int main() {
10154
10155/* The GNU C library defines this for functions which it implements
10156 to always fail with ENOSYS. Some functions are actually named
10157 something starting with __ and the normal name is an alias. */
10158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10159choke me
10160#else
00cf1208 10161f = $ac_func;
270a909e
VZ
10162#endif
10163
10164; return 0; }
10165EOF
00cf1208 10166if { (eval echo configure:10167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10167 rm -rf conftest*
10168 eval "ac_cv_func_$ac_func=yes"
10169else
10170 echo "configure: failed program was:" >&5
10171 cat conftest.$ac_ext >&5
10172 rm -rf conftest*
10173 eval "ac_cv_func_$ac_func=no"
10174fi
10175rm -f conftest*
10176fi
10177
10178if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10179 echo "$ac_t""yes" 1>&6
10180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10181 cat >> confdefs.h <<EOF
10182#define $ac_tr_func 1
10183EOF
10184
10185else
10186 echo "$ac_t""no" 1>&6
10187fi
10188done
10189
10190
b12915c1
VZ
10191HAVE_SOME_SLEEP_FUNC=0
10192if test "$USE_BEOS" = 1; then
10193 cat >> confdefs.h <<\EOF
10194#define HAVE_SLEEP 1
10195EOF
10196
10197 HAVE_SOME_SLEEP_FUNC=1
10198fi
10199
10200if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10201 POSIX4_LINK=
10202 for ac_func in nanosleep
10f2d63a
VZ
10203do
10204echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
00cf1208 10205echo "configure:10206: checking for $ac_func" >&5
10f2d63a
VZ
10206if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10207 echo $ac_n "(cached) $ac_c" 1>&6
10208else
10209 cat > conftest.$ac_ext <<EOF
00cf1208 10210#line 10211 "configure"
10f2d63a
VZ
10211#include "confdefs.h"
10212/* System header to define __stub macros and hopefully few prototypes,
10213 which can conflict with char $ac_func(); below. */
10214#include <assert.h>
10215/* Override any gcc2 internal prototype to avoid an error. */
10216/* We use char because int might match the return type of a gcc2
10217 builtin and then its argument prototype would still apply. */
10218char $ac_func();
00cf1208 10219char (*f)();
10f2d63a
VZ
10220
10221int main() {
10222
10223/* The GNU C library defines this for functions which it implements
10224 to always fail with ENOSYS. Some functions are actually named
10225 something starting with __ and the normal name is an alias. */
10226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10227choke me
10228#else
00cf1208 10229f = $ac_func;
10f2d63a
VZ
10230#endif
10231
10232; return 0; }
10233EOF
00cf1208 10234if { (eval echo configure:10235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10235 rm -rf conftest*
10236 eval "ac_cv_func_$ac_func=yes"
10237else
10238 echo "configure: failed program was:" >&5
10239 cat conftest.$ac_ext >&5
10240 rm -rf conftest*
10241 eval "ac_cv_func_$ac_func=no"
10242fi
10243rm -f conftest*
10244fi
10245
10246if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10247 echo "$ac_t""yes" 1>&6
10248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10249 cat >> confdefs.h <<EOF
10250#define $ac_tr_func 1
10251EOF
10252 cat >> confdefs.h <<\EOF
10253#define HAVE_NANOSLEEP 1
10254EOF
10255
10256else
10257 echo "$ac_t""no" 1>&6
10258echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
00cf1208 10259echo "configure:10260: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
10260ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10261if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10262 echo $ac_n "(cached) $ac_c" 1>&6
10263else
10264 ac_save_LIBS="$LIBS"
10265LIBS="-lposix4 $LIBS"
10266cat > conftest.$ac_ext <<EOF
00cf1208 10267#line 10268 "configure"
10f2d63a
VZ
10268#include "confdefs.h"
10269/* Override any gcc2 internal prototype to avoid an error. */
10270/* We use char because int might match the return type of a gcc2
10271 builtin and then its argument prototype would still apply. */
10272char nanosleep();
10273
10274int main() {
10275nanosleep()
10276; return 0; }
10277EOF
00cf1208 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_lib_$ac_lib_var=yes"
10281else
10282 echo "configure: failed program was:" >&5
10283 cat conftest.$ac_ext >&5
10284 rm -rf conftest*
10285 eval "ac_cv_lib_$ac_lib_var=no"
10286fi
10287rm -f conftest*
10288LIBS="$ac_save_LIBS"
10289
10290fi
10291if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10292 echo "$ac_t""yes" 1>&6
10293
b12915c1 10294 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10295#define HAVE_NANOSLEEP 1
10296EOF
10297
b12915c1
VZ
10298 POSIX4_LINK="-lposix4"
10299
10f2d63a
VZ
10300else
10301 echo "$ac_t""no" 1>&6
10302
b12915c1 10303 for ac_func in usleep
10f2d63a
VZ
10304do
10305echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
00cf1208 10306echo "configure:10307: checking for $ac_func" >&5
10f2d63a
VZ
10307if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10308 echo $ac_n "(cached) $ac_c" 1>&6
10309else
10310 cat > conftest.$ac_ext <<EOF
00cf1208 10311#line 10312 "configure"
10f2d63a
VZ
10312#include "confdefs.h"
10313/* System header to define __stub macros and hopefully few prototypes,
10314 which can conflict with char $ac_func(); below. */
10315#include <assert.h>
10316/* Override any gcc2 internal prototype to avoid an error. */
10317/* We use char because int might match the return type of a gcc2
10318 builtin and then its argument prototype would still apply. */
10319char $ac_func();
00cf1208 10320char (*f)();
10f2d63a
VZ
10321
10322int main() {
10323
10324/* The GNU C library defines this for functions which it implements
10325 to always fail with ENOSYS. Some functions are actually named
10326 something starting with __ and the normal name is an alias. */
10327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10328choke me
10329#else
00cf1208 10330f = $ac_func;
10f2d63a
VZ
10331#endif
10332
10333; return 0; }
10334EOF
00cf1208 10335if { (eval echo configure:10336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10336 rm -rf conftest*
10337 eval "ac_cv_func_$ac_func=yes"
10338else
10339 echo "configure: failed program was:" >&5
10340 cat conftest.$ac_ext >&5
10341 rm -rf conftest*
10342 eval "ac_cv_func_$ac_func=no"
10343fi
10344rm -f conftest*
10345fi
10346
10347if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10348 echo "$ac_t""yes" 1>&6
10349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10350 cat >> confdefs.h <<EOF
10351#define $ac_tr_func 1
10352EOF
b12915c1 10353
10f2d63a
VZ
10354else
10355 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10356fi
10357done
10358
b12915c1
VZ
10359 echo "configure: warning: wxSleep() function will not work" 1>&2
10360
10361
10f2d63a
VZ
10362fi
10363
b12915c1
VZ
10364
10365
10f2d63a
VZ
10366fi
10367done
10368
b12915c1 10369fi
10f2d63a
VZ
10370
10371for ac_func in uname gethostname
10372do
10373echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
00cf1208 10374echo "configure:10375: checking for $ac_func" >&5
10f2d63a
VZ
10375if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10376 echo $ac_n "(cached) $ac_c" 1>&6
10377else
10378 cat > conftest.$ac_ext <<EOF
00cf1208 10379#line 10380 "configure"
10f2d63a
VZ
10380#include "confdefs.h"
10381/* System header to define __stub macros and hopefully few prototypes,
10382 which can conflict with char $ac_func(); below. */
10383#include <assert.h>
10384/* Override any gcc2 internal prototype to avoid an error. */
10385/* We use char because int might match the return type of a gcc2
10386 builtin and then its argument prototype would still apply. */
10387char $ac_func();
00cf1208 10388char (*f)();
10f2d63a
VZ
10389
10390int main() {
10391
10392/* The GNU C library defines this for functions which it implements
10393 to always fail with ENOSYS. Some functions are actually named
10394 something starting with __ and the normal name is an alias. */
10395#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10396choke me
10397#else
00cf1208 10398f = $ac_func;
10f2d63a
VZ
10399#endif
10400
10401; return 0; }
10402EOF
00cf1208 10403if { (eval echo configure:10404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10404 rm -rf conftest*
10405 eval "ac_cv_func_$ac_func=yes"
10406else
10407 echo "configure: failed program was:" >&5
10408 cat conftest.$ac_ext >&5
10409 rm -rf conftest*
10410 eval "ac_cv_func_$ac_func=no"
10411fi
10412rm -f conftest*
10413fi
10414
10415if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10416 echo "$ac_t""yes" 1>&6
10417 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10418 cat >> confdefs.h <<EOF
10419#define $ac_tr_func 1
10420EOF
10421 break
10422else
10423 echo "$ac_t""no" 1>&6
10424fi
10425done
10426
10427
10428for ac_func in strtok_r
10429do
10430echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
00cf1208 10431echo "configure:10432: checking for $ac_func" >&5
10f2d63a
VZ
10432if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10433 echo $ac_n "(cached) $ac_c" 1>&6
10434else
10435 cat > conftest.$ac_ext <<EOF
00cf1208 10436#line 10437 "configure"
10f2d63a
VZ
10437#include "confdefs.h"
10438/* System header to define __stub macros and hopefully few prototypes,
10439 which can conflict with char $ac_func(); below. */
10440#include <assert.h>
10441/* Override any gcc2 internal prototype to avoid an error. */
10442/* We use char because int might match the return type of a gcc2
10443 builtin and then its argument prototype would still apply. */
10444char $ac_func();
00cf1208 10445char (*f)();
10f2d63a
VZ
10446
10447int main() {
10448
10449/* The GNU C library defines this for functions which it implements
10450 to always fail with ENOSYS. Some functions are actually named
10451 something starting with __ and the normal name is an alias. */
10452#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10453choke me
10454#else
00cf1208 10455f = $ac_func;
10f2d63a
VZ
10456#endif
10457
10458; return 0; }
10459EOF
00cf1208 10460if { (eval echo configure:10461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10461 rm -rf conftest*
10462 eval "ac_cv_func_$ac_func=yes"
10463else
10464 echo "configure: failed program was:" >&5
10465 cat conftest.$ac_ext >&5
10466 rm -rf conftest*
10467 eval "ac_cv_func_$ac_func=no"
10468fi
10469rm -f conftest*
10470fi
10471
10472if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10473 echo "$ac_t""yes" 1>&6
10474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10475 cat >> confdefs.h <<EOF
10476#define $ac_tr_func 1
10477EOF
10478
10479else
10480 echo "$ac_t""no" 1>&6
10481fi
10482done
10483
10484
c63c7106 10485INET_LINK=
10f2d63a
VZ
10486for ac_func in inet_addr
10487do
10488echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
00cf1208 10489echo "configure:10490: checking for $ac_func" >&5
10f2d63a
VZ
10490if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10491 echo $ac_n "(cached) $ac_c" 1>&6
10492else
10493 cat > conftest.$ac_ext <<EOF
00cf1208 10494#line 10495 "configure"
10f2d63a
VZ
10495#include "confdefs.h"
10496/* System header to define __stub macros and hopefully few prototypes,
10497 which can conflict with char $ac_func(); below. */
10498#include <assert.h>
10499/* Override any gcc2 internal prototype to avoid an error. */
10500/* We use char because int might match the return type of a gcc2
10501 builtin and then its argument prototype would still apply. */
10502char $ac_func();
00cf1208 10503char (*f)();
10f2d63a
VZ
10504
10505int main() {
10506
10507/* The GNU C library defines this for functions which it implements
10508 to always fail with ENOSYS. Some functions are actually named
10509 something starting with __ and the normal name is an alias. */
10510#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10511choke me
10512#else
00cf1208 10513f = $ac_func;
10f2d63a
VZ
10514#endif
10515
10516; return 0; }
10517EOF
00cf1208 10518if { (eval echo configure:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10519 rm -rf conftest*
10520 eval "ac_cv_func_$ac_func=yes"
10521else
10522 echo "configure: failed program was:" >&5
10523 cat conftest.$ac_ext >&5
10524 rm -rf conftest*
10525 eval "ac_cv_func_$ac_func=no"
10526fi
10527rm -f conftest*
10528fi
10529
10530if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10531 echo "$ac_t""yes" 1>&6
10532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10533 cat >> confdefs.h <<EOF
10534#define $ac_tr_func 1
10535EOF
c63c7106
VZ
10536 cat >> confdefs.h <<\EOF
10537#define HAVE_INET_ADDR 1
10538EOF
10539
10f2d63a
VZ
10540else
10541 echo "$ac_t""no" 1>&6
c63c7106 10542echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
00cf1208 10543echo "configure:10544: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10544ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10545if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10546 echo $ac_n "(cached) $ac_c" 1>&6
10547else
10548 ac_save_LIBS="$LIBS"
10549LIBS="-lnsl $LIBS"
10550cat > conftest.$ac_ext <<EOF
00cf1208 10551#line 10552 "configure"
c63c7106
VZ
10552#include "confdefs.h"
10553/* Override any gcc2 internal prototype to avoid an error. */
10554/* We use char because int might match the return type of a gcc2
10555 builtin and then its argument prototype would still apply. */
10556char inet_addr();
10557
10558int main() {
10559inet_addr()
10560; return 0; }
10561EOF
00cf1208 10562if { (eval echo configure:10563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10563 rm -rf conftest*
10564 eval "ac_cv_lib_$ac_lib_var=yes"
10565else
10566 echo "configure: failed program was:" >&5
10567 cat conftest.$ac_ext >&5
10568 rm -rf conftest*
10569 eval "ac_cv_lib_$ac_lib_var=no"
10570fi
10571rm -f conftest*
10572LIBS="$ac_save_LIBS"
10573
10574fi
10575if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10576 echo "$ac_t""yes" 1>&6
10577 INET_LINK="nsl"
10578else
10579 echo "$ac_t""no" 1>&6
10580echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
00cf1208 10581echo "configure:10582: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10582ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10583if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10584 echo $ac_n "(cached) $ac_c" 1>&6
10585else
10586 ac_save_LIBS="$LIBS"
10587LIBS="-lresolv $LIBS"
10588cat > conftest.$ac_ext <<EOF
00cf1208 10589#line 10590 "configure"
c63c7106
VZ
10590#include "confdefs.h"
10591/* Override any gcc2 internal prototype to avoid an error. */
10592/* We use char because int might match the return type of a gcc2
10593 builtin and then its argument prototype would still apply. */
10594char inet_addr();
10595
10596int main() {
10597inet_addr()
10598; return 0; }
10599EOF
00cf1208 10600if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10601 rm -rf conftest*
10602 eval "ac_cv_lib_$ac_lib_var=yes"
10603else
10604 echo "configure: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10606 rm -rf conftest*
10607 eval "ac_cv_lib_$ac_lib_var=no"
10608fi
10609rm -f conftest*
10610LIBS="$ac_save_LIBS"
10611
10612fi
10613if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10614 echo "$ac_t""yes" 1>&6
10615 INET_LINK="resolv"
10616
10617else
10618 echo "$ac_t""no" 1>&6
10619fi
10620
10621
10622fi
10623
10624
10625
10f2d63a
VZ
10626fi
10627done
10628
c63c7106 10629
10f2d63a
VZ
10630for ac_func in inet_aton
10631do
10632echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
00cf1208 10633echo "configure:10634: checking for $ac_func" >&5
10f2d63a
VZ
10634if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10635 echo $ac_n "(cached) $ac_c" 1>&6
10636else
10637 cat > conftest.$ac_ext <<EOF
00cf1208 10638#line 10639 "configure"
10f2d63a
VZ
10639#include "confdefs.h"
10640/* System header to define __stub macros and hopefully few prototypes,
10641 which can conflict with char $ac_func(); below. */
10642#include <assert.h>
10643/* Override any gcc2 internal prototype to avoid an error. */
10644/* We use char because int might match the return type of a gcc2
10645 builtin and then its argument prototype would still apply. */
10646char $ac_func();
00cf1208 10647char (*f)();
10f2d63a
VZ
10648
10649int main() {
10650
10651/* The GNU C library defines this for functions which it implements
10652 to always fail with ENOSYS. Some functions are actually named
10653 something starting with __ and the normal name is an alias. */
10654#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10655choke me
10656#else
00cf1208 10657f = $ac_func;
10f2d63a
VZ
10658#endif
10659
10660; return 0; }
10661EOF
00cf1208 10662if { (eval echo configure:10663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10663 rm -rf conftest*
10664 eval "ac_cv_func_$ac_func=yes"
10665else
10666 echo "configure: failed program was:" >&5
10667 cat conftest.$ac_ext >&5
10668 rm -rf conftest*
10669 eval "ac_cv_func_$ac_func=no"
10670fi
10671rm -f conftest*
10672fi
10673
10674if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10675 echo "$ac_t""yes" 1>&6
10676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10677 cat >> confdefs.h <<EOF
10678#define $ac_tr_func 1
10679EOF
c63c7106
VZ
10680 cat >> confdefs.h <<\EOF
10681#define HAVE_INET_ATON 1
10682EOF
10683
10f2d63a
VZ
10684else
10685 echo "$ac_t""no" 1>&6
c63c7106 10686 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
00cf1208 10687echo "configure:10688: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10688ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10689if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10690 echo $ac_n "(cached) $ac_c" 1>&6
10691else
10692 ac_save_LIBS="$LIBS"
c63c7106 10693LIBS="-l$INET_LINK $LIBS"
10f2d63a 10694cat > conftest.$ac_ext <<EOF
00cf1208 10695#line 10696 "configure"
10f2d63a
VZ
10696#include "confdefs.h"
10697/* Override any gcc2 internal prototype to avoid an error. */
10698/* We use char because int might match the return type of a gcc2
10699 builtin and then its argument prototype would still apply. */
10700char inet_aton();
10701
10702int main() {
10703inet_aton()
10704; return 0; }
10705EOF
00cf1208 10706if { (eval echo configure:10707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10707 rm -rf conftest*
10708 eval "ac_cv_lib_$ac_lib_var=yes"
10709else
10710 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10712 rm -rf conftest*
10713 eval "ac_cv_lib_$ac_lib_var=no"
10714fi
10715rm -f conftest*
10716LIBS="$ac_save_LIBS"
10717
10718fi
10719if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10720 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10721 cat >> confdefs.h <<\EOF
10722#define HAVE_INET_ATON 1
10f2d63a
VZ
10723EOF
10724
10f2d63a
VZ
10725else
10726 echo "$ac_t""no" 1>&6
10727fi
10728
c63c7106
VZ
10729
10730fi
10731done
10732
10733
10734if test "x$INET_LINK" != "x"; then
10735 cat >> confdefs.h <<\EOF
10736#define HAVE_INET_ADDR 1
10737EOF
10738
10739 INET_LINK="-l$INET_LINK"
10740fi
10f2d63a
VZ
10741
10742fi
10743
10744
10745cat > confcache <<\EOF
10746# This file is a shell script that caches the results of configure
10747# tests run on this system so they can be shared between configure
10748# scripts and configure runs. It is not useful on other systems.
10749# If it contains results you don't want to keep, you may remove or edit it.
10750#
10751# By default, configure uses ./config.cache as the cache file,
10752# creating it if it does not exist already. You can give configure
10753# the --cache-file=FILE option to use a different cache file; that is
10754# what configure does when it calls configure scripts in
10755# subdirectories, so they share the cache.
10756# Giving --cache-file=/dev/null disables caching, for debugging configure.
10757# config.status only pays attention to the cache file if you give it the
10758# --recheck option to rerun configure.
10759#
10760EOF
10761# The following way of writing the cache mishandles newlines in values,
10762# but we know of no workaround that is simple, portable, and efficient.
10763# So, don't put newlines in cache variables' values.
10764# Ultrix sh set writes to stderr and can't be redirected directly,
10765# and sets the high bit in the cache file unless we assign to the vars.
10766(set) 2>&1 |
10767 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10768 *ac_space=\ *)
10769 # `set' does not quote correctly, so add quotes (double-quote substitution
10770 # turns \\\\ into \\, and sed turns \\ into \).
10771 sed -n \
10772 -e "s/'/'\\\\''/g" \
10773 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10774 ;;
10775 *)
10776 # `set' quotes correctly as required by POSIX, so do not add quotes.
10777 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10778 ;;
10779 esac >> confcache
10780if cmp -s $cache_file confcache; then
10781 :
10782else
10783 if test -w $cache_file; then
10784 echo "updating cache $cache_file"
10785 cat confcache > $cache_file
10786 else
10787 echo "not updating unwritable cache $cache_file"
10788 fi
10789fi
10790rm -f confcache
10791
10792
10793
b089607b 10794if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10795
10796
10797THREADS_LINK=""
10798THREADS_OBJ=""
10799
10800if test "$wxUSE_THREADS" = "yes" ; then
10801 if test "$wxUSE_WINE" = 1 ; then
10802 echo "configure: warning: Threads are not supported under WINE" 1>&2
10803 wxUSE_THREADS="no"
b12915c1
VZ
10804 elif test "$USE_BEOS" = 1; then
10805 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10806 wxUSE_THREADS="no"
10f2d63a
VZ
10807 fi
10808fi
10809
10810if test "$wxUSE_THREADS" = "yes" ; then
10811
10812 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
00cf1208 10813echo "configure:10814: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10814ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10815if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10816 echo $ac_n "(cached) $ac_c" 1>&6
10817else
10818 ac_save_LIBS="$LIBS"
10819LIBS="-lpthread $LIBS"
10820cat > conftest.$ac_ext <<EOF
00cf1208 10821#line 10822 "configure"
10f2d63a
VZ
10822#include "confdefs.h"
10823/* Override any gcc2 internal prototype to avoid an error. */
10824/* We use char because int might match the return type of a gcc2
10825 builtin and then its argument prototype would still apply. */
10826char pthread_create();
10827
10828int main() {
10829pthread_create()
10830; return 0; }
10831EOF
00cf1208 10832if { (eval echo configure:10833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10833 rm -rf conftest*
10834 eval "ac_cv_lib_$ac_lib_var=yes"
10835else
10836 echo "configure: failed program was:" >&5
10837 cat conftest.$ac_ext >&5
10838 rm -rf conftest*
10839 eval "ac_cv_lib_$ac_lib_var=no"
10840fi
10841rm -f conftest*
10842LIBS="$ac_save_LIBS"
10843
10844fi
10845if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10846 echo "$ac_t""yes" 1>&6
10847
10848 THREADS_OBJ="threadpsx.lo"
10849 THREADS_LINK="pthread"
10850
10851else
10852 echo "$ac_t""no" 1>&6
10853
10854 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
00cf1208 10855echo "configure:10856: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10856ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10857if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10858 echo $ac_n "(cached) $ac_c" 1>&6
10859else
10860 ac_save_LIBS="$LIBS"
10861LIBS="-lc_r $LIBS"
10862cat > conftest.$ac_ext <<EOF
00cf1208 10863#line 10864 "configure"
10f2d63a
VZ
10864#include "confdefs.h"
10865/* Override any gcc2 internal prototype to avoid an error. */
10866/* We use char because int might match the return type of a gcc2
10867 builtin and then its argument prototype would still apply. */
10868char pthread_create();
10869
10870int main() {
10871pthread_create()
10872; return 0; }
10873EOF
00cf1208 10874if { (eval echo configure:10875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10875 rm -rf conftest*
10876 eval "ac_cv_lib_$ac_lib_var=yes"
10877else
10878 echo "configure: failed program was:" >&5
10879 cat conftest.$ac_ext >&5
10880 rm -rf conftest*
10881 eval "ac_cv_lib_$ac_lib_var=no"
10882fi
10883rm -f conftest*
10884LIBS="$ac_save_LIBS"
10885
10886fi
10887if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10888 echo "$ac_t""yes" 1>&6
10889
10890 THREADS_OBJ="threadpsx.lo"
10891 THREADS_LINK="c_r"
10892
10893else
10894 echo "$ac_t""no" 1>&6
10895
10896 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10897echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
00cf1208 10898echo "configure:10899: checking for sys/prctl.h" >&5
10f2d63a
VZ
10899if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10900 echo $ac_n "(cached) $ac_c" 1>&6
10901else
10902 cat > conftest.$ac_ext <<EOF
00cf1208 10903#line 10904 "configure"
10f2d63a
VZ
10904#include "confdefs.h"
10905#include <sys/prctl.h>
10906EOF
10907ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 10908{ (eval echo configure:10909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10909ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10910if test -z "$ac_err"; then
10911 rm -rf conftest*
10912 eval "ac_cv_header_$ac_safe=yes"
10913else
10914 echo "$ac_err" >&5
10915 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10917 rm -rf conftest*
10918 eval "ac_cv_header_$ac_safe=no"
10919fi
10920rm -f conftest*
10921fi
10922if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10923 echo "$ac_t""yes" 1>&6
10924
10925 THREADS_OBJ="threadsgi.lo"
10926
10927else
10928 echo "$ac_t""no" 1>&6
10929fi
10930
10931
10932fi
10933
10934
10935fi
10936
10937
10938 if test -z "$THREADS_OBJ" ; then
10939 wxUSE_THREADS=no
10940 echo "configure: warning: No thread support on this system" 1>&2
10941 fi
10942fi
10943
10944if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
10945 for ac_func in thr_setconcurrency
10946do
10947echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
00cf1208 10948echo "configure:10949: checking for $ac_func" >&5
70846f0a
VZ
10949if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10950 echo $ac_n "(cached) $ac_c" 1>&6
10951else
10952 cat > conftest.$ac_ext <<EOF
00cf1208 10953#line 10954 "configure"
70846f0a
VZ
10954#include "confdefs.h"
10955/* System header to define __stub macros and hopefully few prototypes,
10956 which can conflict with char $ac_func(); below. */
10957#include <assert.h>
10958/* Override any gcc2 internal prototype to avoid an error. */
10959/* We use char because int might match the return type of a gcc2
10960 builtin and then its argument prototype would still apply. */
10961char $ac_func();
00cf1208 10962char (*f)();
70846f0a
VZ
10963
10964int main() {
10965
10966/* The GNU C library defines this for functions which it implements
10967 to always fail with ENOSYS. Some functions are actually named
10968 something starting with __ and the normal name is an alias. */
10969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10970choke me
10971#else
00cf1208 10972f = $ac_func;
70846f0a
VZ
10973#endif
10974
10975; return 0; }
10976EOF
00cf1208 10977if { (eval echo configure:10978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
10978 rm -rf conftest*
10979 eval "ac_cv_func_$ac_func=yes"
10980else
10981 echo "configure: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10983 rm -rf conftest*
10984 eval "ac_cv_func_$ac_func=no"
10985fi
10986rm -f conftest*
10987fi
10988
10989if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10990 echo "$ac_t""yes" 1>&6
10991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10992 cat >> confdefs.h <<EOF
10993#define $ac_tr_func 1
10994EOF
10995
10996else
10997 echo "$ac_t""no" 1>&6
10998fi
10999done
11000
11001
10f2d63a
VZ
11002
11003 for ac_hdr in sched.h
11004do
11005ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11006echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
00cf1208 11007echo "configure:11008: checking for $ac_hdr" >&5
10f2d63a
VZ
11008if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11009 echo $ac_n "(cached) $ac_c" 1>&6
11010else
11011 cat > conftest.$ac_ext <<EOF
00cf1208 11012#line 11013 "configure"
10f2d63a
VZ
11013#include "confdefs.h"
11014#include <$ac_hdr>
11015EOF
11016ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 11017{ (eval echo configure:11018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11018ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11019if test -z "$ac_err"; then
11020 rm -rf conftest*
11021 eval "ac_cv_header_$ac_safe=yes"
11022else
11023 echo "$ac_err" >&5
11024 echo "configure: failed program was:" >&5
11025 cat conftest.$ac_ext >&5
11026 rm -rf conftest*
11027 eval "ac_cv_header_$ac_safe=no"
11028fi
11029rm -f conftest*
11030fi
11031if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11032 echo "$ac_t""yes" 1>&6
11033 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11034 cat >> confdefs.h <<EOF
11035#define $ac_tr_hdr 1
11036EOF
11037
11038else
11039 echo "$ac_t""no" 1>&6
11040fi
11041done
11042
11043
11044 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
00cf1208 11045echo "configure:11046: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
11046ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11047if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11049else
11050 ac_save_LIBS="$LIBS"
11051LIBS="-l$THREADS_LINK $LIBS"
11052cat > conftest.$ac_ext <<EOF
00cf1208 11053#line 11054 "configure"
10f2d63a
VZ
11054#include "confdefs.h"
11055/* Override any gcc2 internal prototype to avoid an error. */
11056/* We use char because int might match the return type of a gcc2
11057 builtin and then its argument prototype would still apply. */
11058char sched_yield();
11059
11060int main() {
11061sched_yield()
11062; return 0; }
11063EOF
00cf1208 11064if { (eval echo configure:11065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11065 rm -rf conftest*
11066 eval "ac_cv_lib_$ac_lib_var=yes"
11067else
11068 echo "configure: failed program was:" >&5
11069 cat conftest.$ac_ext >&5
11070 rm -rf conftest*
11071 eval "ac_cv_lib_$ac_lib_var=no"
11072fi
11073rm -f conftest*
11074LIBS="$ac_save_LIBS"
11075
11076fi
11077if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11078 echo "$ac_t""yes" 1>&6
11079 cat >> confdefs.h <<\EOF
11080#define HAVE_SCHED_YIELD 1
11081EOF
11082
11083else
11084 echo "$ac_t""no" 1>&6
11085echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
00cf1208 11086echo "configure:11087: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
11087ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11088if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11089 echo $ac_n "(cached) $ac_c" 1>&6
11090else
11091 ac_save_LIBS="$LIBS"
11092LIBS="-l"posix4" $LIBS"
11093cat > conftest.$ac_ext <<EOF
00cf1208 11094#line 11095 "configure"
10f2d63a
VZ
11095#include "confdefs.h"
11096/* Override any gcc2 internal prototype to avoid an error. */
11097/* We use char because int might match the return type of a gcc2
11098 builtin and then its argument prototype would still apply. */
11099char sched_yield();
11100
11101int main() {
11102sched_yield()
11103; return 0; }
11104EOF
00cf1208 11105if { (eval echo configure:11106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11106 rm -rf conftest*
11107 eval "ac_cv_lib_$ac_lib_var=yes"
11108else
11109 echo "configure: failed program was:" >&5
11110 cat conftest.$ac_ext >&5
11111 rm -rf conftest*
11112 eval "ac_cv_lib_$ac_lib_var=no"
11113fi
11114rm -f conftest*
11115LIBS="$ac_save_LIBS"
11116
11117fi
11118if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11119 echo "$ac_t""yes" 1>&6
11120 cat >> confdefs.h <<\EOF
11121#define HAVE_SCHED_YIELD 1
11122EOF
11123 POSIX4_LINK="-lposix4"
11124else
11125 echo "$ac_t""no" 1>&6
11126echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11127
11128fi
11129
11130
11131fi
11132
11133
11134 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
00cf1208 11135echo "configure:11136: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
11136ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11137if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11138 echo $ac_n "(cached) $ac_c" 1>&6
11139else
11140 ac_save_LIBS="$LIBS"
11141LIBS="-l$THREADS_LINK $LIBS"
11142cat > conftest.$ac_ext <<EOF
00cf1208 11143#line 11144 "configure"
10f2d63a
VZ
11144#include "confdefs.h"
11145/* Override any gcc2 internal prototype to avoid an error. */
11146/* We use char because int might match the return type of a gcc2
11147 builtin and then its argument prototype would still apply. */
11148char pthread_attr_getschedpolicy();
11149
11150int main() {
11151pthread_attr_getschedpolicy()
11152; return 0; }
11153EOF
00cf1208 11154if { (eval echo configure:11155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11155 rm -rf conftest*
11156 eval "ac_cv_lib_$ac_lib_var=yes"
11157else
11158 echo "configure: failed program was:" >&5
11159 cat conftest.$ac_ext >&5
11160 rm -rf conftest*
11161 eval "ac_cv_lib_$ac_lib_var=no"
11162fi
11163rm -f conftest*
11164LIBS="$ac_save_LIBS"
11165
11166fi
11167if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11168 echo "$ac_t""yes" 1>&6
11169 cat >> confdefs.h <<\EOF
11170#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11171EOF
11172
11173else
11174 echo "$ac_t""no" 1>&6
11175echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
00cf1208 11176echo "configure:11177: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
11177ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11178if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11179 echo $ac_n "(cached) $ac_c" 1>&6
11180else
11181 ac_save_LIBS="$LIBS"
11182LIBS="-l"posix4" $LIBS"
11183cat > conftest.$ac_ext <<EOF
00cf1208 11184#line 11185 "configure"
10f2d63a
VZ
11185#include "confdefs.h"
11186/* Override any gcc2 internal prototype to avoid an error. */
11187/* We use char because int might match the return type of a gcc2
11188 builtin and then its argument prototype would still apply. */
11189char pthread_attr_getschedpolicy();
11190
11191int main() {
11192pthread_attr_getschedpolicy()
11193; return 0; }
11194EOF
00cf1208 11195if { (eval echo configure:11196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11196 rm -rf conftest*
11197 eval "ac_cv_lib_$ac_lib_var=yes"
11198else
11199 echo "configure: failed program was:" >&5
11200 cat conftest.$ac_ext >&5
11201 rm -rf conftest*
11202 eval "ac_cv_lib_$ac_lib_var=no"
11203fi
11204rm -f conftest*
11205LIBS="$ac_save_LIBS"
11206
11207fi
11208if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11209 echo "$ac_t""yes" 1>&6
11210 cat >> confdefs.h <<\EOF
11211#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11212EOF
11213 POSIX4_LINK="-lposix4"
11214else
11215 echo "$ac_t""no" 1>&6
11216echo "configure: warning: Setting thread priority will not work" 1>&2
11217
11218fi
11219
11220
11221fi
11222
11223
11224 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
00cf1208 11225echo "configure:11226: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
11226ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11227if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11228 echo $ac_n "(cached) $ac_c" 1>&6
11229else
11230 ac_save_LIBS="$LIBS"
11231LIBS="-l$THREADS_LINK $LIBS"
11232cat > conftest.$ac_ext <<EOF
00cf1208 11233#line 11234 "configure"
10f2d63a
VZ
11234#include "confdefs.h"
11235/* Override any gcc2 internal prototype to avoid an error. */
11236/* We use char because int might match the return type of a gcc2
11237 builtin and then its argument prototype would still apply. */
11238char pthread_cancel();
11239
11240int main() {
11241pthread_cancel()
11242; return 0; }
11243EOF
00cf1208 11244if { (eval echo configure:11245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11245 rm -rf conftest*
11246 eval "ac_cv_lib_$ac_lib_var=yes"
11247else
11248 echo "configure: failed program was:" >&5
11249 cat conftest.$ac_ext >&5
11250 rm -rf conftest*
11251 eval "ac_cv_lib_$ac_lib_var=no"
11252fi
11253rm -f conftest*
11254LIBS="$ac_save_LIBS"
11255
11256fi
11257if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11258 echo "$ac_t""yes" 1>&6
11259 cat >> confdefs.h <<\EOF
11260#define HAVE_PTHREAD_CANCEL 1
11261EOF
11262
11263else
11264 echo "$ac_t""no" 1>&6
11265echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11266fi
11267
11268
11269 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
00cf1208 11270echo "configure:11271: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
11271if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11272 echo $ac_n "(cached) $ac_c" 1>&6
11273else
11274
11275 cat > conftest.$ac_ext <<EOF
00cf1208 11276#line 11277 "configure"
10f2d63a
VZ
11277#include "confdefs.h"
11278#include <pthread.h>
11279int main() {
11280
11281 pthread_cleanup_push(NULL, NULL);
11282 pthread_cleanup_pop(0);
11283
11284; return 0; }
11285EOF
00cf1208 11286if { (eval echo configure:11287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11287 rm -rf conftest*
11288
11289 wx_cv_func_pthread_cleanup_push=yes
11290 cat >> confdefs.h <<\EOF
11291#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11292EOF
11293
11294
11295else
11296 echo "configure: failed program was:" >&5
11297 cat conftest.$ac_ext >&5
11298 rm -rf conftest*
11299
11300 wx_cv_func_pthread_cleanup_push=no
11301
11302fi
11303rm -f conftest*
11304
11305fi
11306
11307echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11308
11309 THREADS_LINK="-l$THREADS_LINK"
11310fi
11311
11312fi
11313
11314if test "$wxUSE_THREADS" = "yes"; then
11315 cat >> confdefs.h <<\EOF
11316#define wxUSE_THREADS 1
11317EOF
11318
11319
11320 CFLAGS="${CFLAGS} -D_REENTRANT"
11321 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11322
11323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11324else
11325 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11326 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
00cf1208 11327echo "configure:11328: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11328 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11329 CFLAGS="${CFLAGS} -D_REENTRANT"
11330 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11331 echo "$ac_t""yes" 1>&6
11332 else
11333 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11334 fi
11335 fi
11336fi
11337
13111b2a
VZ
11338if test "$WXGTK13" = 1 ; then
11339 cat >> confdefs.h <<EOF
11340#define __WXGTK13__ $WXGTK13
11341EOF
11342
11343 WXGTK12=1
11344fi
11345
10f2d63a
VZ
11346if test "$WXGTK12" = 1 ; then
11347 cat >> confdefs.h <<EOF
11348#define __WXGTK12__ $WXGTK12
11349EOF
11350
11351fi
11352
11353if test "$WXWINE" = 1 ; then
11354 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11355fi
11356
11357if test "$wxUSE_CYGWIN" = 1 ; then
11358 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11359fi
11360
11361WXDEBUG=
11362
11363if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11364 WXDEBUG="-g"
11365 wxUSE_OPTIMISE=no
11366fi
11367
11368if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11369 wxUSE_DEBUG_INFO=yes
11370 WXDEBUG="-ggdb"
11371fi
11372
11373if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11374 cat >> confdefs.h <<\EOF
11375#define WXDEBUG 1
11376EOF
11377
11378 WXDEBUG_DEFINE="-D__WXDEBUG__"
11379else
11380 if test "$wxUSE_GTK" = 1 ; then
11381 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11382 fi
11383fi
11384
11385if test "$wxUSE_MEM_TRACING" = "yes" ; then
11386 cat >> confdefs.h <<\EOF
11387#define wxUSE_MEMORY_TRACING 1
11388EOF
11389
11390 cat >> confdefs.h <<\EOF
11391#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
11392EOF
11393
11394 cat >> confdefs.h <<\EOF
11395#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
11396EOF
11397
11398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11399fi
11400
11401if test "$wxUSE_DMALLOC" = "yes" ; then
11402 DMALLOC_LINK="-ldmalloc"
11403fi
11404
11405PROFILE=
11406if test "$wxUSE_PROFILE" = "yes" ; then
11407 PROFILE="-pg"
11408fi
11409
11410DEP_INFO_FLAGS=
caa2c79b 11411CODE_GEN_FLAGS=
10f2d63a
VZ
11412if test "$GCC" = yes ; then
11413 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 11414 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
11415 fi
11416 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 11417 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
11418 fi
11419 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 11420 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
11421 fi
11422 if test "$wxUSE_NO_DEPS" = "no" ; then
11423 DEP_INFO_FLAGS="-MMD"
11424 fi
11425fi
11426
11427
11428CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11429CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11430if test "$wxUSE_OPTIMISE" = "no" ; then
11431 OPTIMISE=
11432else
11433 if test "$GCC" = yes ; then
11434 OPTIMISE="-O2"
11435 case "${host}" in
11436 i586-*-*|i686-*-* )
11437 OPTIMISE="${OPTIMISE} "
11438 ;;
11439 esac
11440 else
11441 OPTIMISE="-O"
11442 fi
11443fi
11444
11445
11446ZLIB_INCLUDE=
11447if test "$wxUSE_ZLIB" = "yes" ; then
11448 cat >> confdefs.h <<\EOF
11449#define wxUSE_ZLIB 1
11450EOF
11451
11452 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11453fi
11454
11455PNG_INCLUDE=
11456if test "$wxUSE_LIBPNG" = "yes" ; then
11457 cat >> confdefs.h <<\EOF
11458#define wxUSE_LIBPNG 1
11459EOF
11460
11461 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11463fi
11464
11465JPEG_INCLUDE=
11466if test "$wxUSE_LIBJPEG" = "yes" ; then
11467 cat >> confdefs.h <<\EOF
11468#define wxUSE_LIBJPEG 1
11469EOF
11470
11471 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11472fi
11473
c7a2bf27
RR
11474TIFF_INCLUDE=
11475if test "$wxUSE_LIBTIFF" = "yes" ; then
11476 cat >> confdefs.h <<\EOF
11477#define wxUSE_LIBTIFF 1
11478EOF
11479
11480 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11481fi
11482
10f2d63a
VZ
11483if test "$wxUSE_OPENGL" = "yes"; then
11484 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11485echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
00cf1208 11486echo "configure:11487: checking for GL/gl.h" >&5
10f2d63a
VZ
11487if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11488 echo $ac_n "(cached) $ac_c" 1>&6
11489else
11490 cat > conftest.$ac_ext <<EOF
00cf1208 11491#line 11492 "configure"
10f2d63a
VZ
11492#include "confdefs.h"
11493#include <GL/gl.h>
11494EOF
11495ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 11496{ (eval echo configure:11497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11497ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11498if test -z "$ac_err"; then
11499 rm -rf conftest*
11500 eval "ac_cv_header_$ac_safe=yes"
11501else
11502 echo "$ac_err" >&5
11503 echo "configure: failed program was:" >&5
11504 cat conftest.$ac_ext >&5
11505 rm -rf conftest*
11506 eval "ac_cv_header_$ac_safe=no"
11507fi
11508rm -f conftest*
11509fi
11510if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11511 echo "$ac_t""yes" 1>&6
11512
11513 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
00cf1208 11514echo "configure:11515: checking for glInitNames in -lGL" >&5
10f2d63a
VZ
11515ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
11516if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11517 echo $ac_n "(cached) $ac_c" 1>&6
11518else
11519 ac_save_LIBS="$LIBS"
11520LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
11521cat > conftest.$ac_ext <<EOF
00cf1208 11522#line 11523 "configure"
10f2d63a
VZ
11523#include "confdefs.h"
11524/* Override any gcc2 internal prototype to avoid an error. */
11525/* We use char because int might match the return type of a gcc2
11526 builtin and then its argument prototype would still apply. */
11527char glInitNames();
11528
11529int main() {
11530glInitNames()
11531; return 0; }
11532EOF
00cf1208 11533if { (eval echo configure:11534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11534 rm -rf conftest*
11535 eval "ac_cv_lib_$ac_lib_var=yes"
11536else
11537 echo "configure: failed program was:" >&5
11538 cat conftest.$ac_ext >&5
11539 rm -rf conftest*
11540 eval "ac_cv_lib_$ac_lib_var=no"
11541fi
11542rm -f conftest*
11543LIBS="$ac_save_LIBS"
11544
11545fi
11546if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11547 echo "$ac_t""yes" 1>&6
11548
11549 OPENGL_LINK="-lGL"
11550 cat >> confdefs.h <<\EOF
11551#define wxUSE_OPENGL 1
11552EOF
11553
11554 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11555
11556else
11557 echo "$ac_t""no" 1>&6
11558
11559 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
00cf1208 11560echo "configure:11561: checking for glInitNames in -lMesaGL" >&5
10f2d63a
VZ
11561ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11562if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11563 echo $ac_n "(cached) $ac_c" 1>&6
11564else
11565 ac_save_LIBS="$LIBS"
11566LIBS="-lMesaGL $LIBS"
11567cat > conftest.$ac_ext <<EOF
00cf1208 11568#line 11569 "configure"
10f2d63a
VZ
11569#include "confdefs.h"
11570/* Override any gcc2 internal prototype to avoid an error. */
11571/* We use char because int might match the return type of a gcc2
11572 builtin and then its argument prototype would still apply. */
11573char glInitNames();
11574
11575int main() {
11576glInitNames()
11577; return 0; }
11578EOF
00cf1208 11579if { (eval echo configure:11580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11580 rm -rf conftest*
11581 eval "ac_cv_lib_$ac_lib_var=yes"
11582else
11583 echo "configure: failed program was:" >&5
11584 cat conftest.$ac_ext >&5
11585 rm -rf conftest*
11586 eval "ac_cv_lib_$ac_lib_var=no"
11587fi
11588rm -f conftest*
11589LIBS="$ac_save_LIBS"
11590
11591fi
11592if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11593 echo "$ac_t""yes" 1>&6
11594
11595 OPENGL_LINK="-lMesaGL"
11596 cat >> confdefs.h <<\EOF
11597#define wxUSE_OPENGL 1
11598EOF
11599
11600 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11601
11602else
11603 echo "$ac_t""no" 1>&6
11604wxUSE_OPENGL=0
11605fi
11606
11607
11608fi
11609
11610
11611else
11612 echo "$ac_t""no" 1>&6
11613wxUSE_OPENGL=0
11614fi
11615
11616fi
11617
11618
11619if test "$wxUSE_GUI" = "yes"; then
11620 cat >> confdefs.h <<\EOF
11621#define wxUSE_GUI 1
11622EOF
11623
11624
11625 else
11626 cat >> confdefs.h <<\EOF
11627#define wxUSE_NOGUI 1
11628EOF
11629
11630fi
11631
11632
11633if test "$wxUSE_UNIX" = "yes"; then
11634 cat >> confdefs.h <<\EOF
11635#define wxUSE_UNIX 1
11636EOF
11637
11638fi
11639
11640
11641if test "$wxUSE_APPLE_IEEE" = "yes"; then
11642 cat >> confdefs.h <<\EOF
11643#define wxUSE_APPLE_IEEE 1
11644EOF
11645
11646fi
11647
10f2d63a
VZ
11648if test "$wxUSE_WAVE" = "yes"; then
11649 cat >> confdefs.h <<\EOF
11650#define wxUSE_WAVE 1
11651EOF
11652
11653fi
11654
11655if test "$wxUSE_FILE" = "yes"; then
11656 cat >> confdefs.h <<\EOF
11657#define wxUSE_FILE 1
11658EOF
11659
11660fi
11661
11662if test "$wxUSE_FS_INET" = "yes"; then
11663 cat >> confdefs.h <<\EOF
11664#define wxUSE_FS_INET 1
11665EOF
11666
11667fi
11668
11669if test "$wxUSE_FS_ZIP" = "yes"; then
11670 cat >> confdefs.h <<\EOF
11671#define wxUSE_FS_ZIP 1
11672EOF
11673
11674fi
11675
11676if test "$wxUSE_ZIPSTREAM" = "yes"; then
11677 cat >> confdefs.h <<\EOF
11678#define wxUSE_ZIPSTREAM 1
11679EOF
11680
11681fi
11682
11683if test "$wxUSE_BUSYINFO" = "yes"; then
11684 cat >> confdefs.h <<\EOF
11685#define wxUSE_BUSYINFO 1
11686EOF
11687
11688fi
11689
11690if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11691 cat >> confdefs.h <<\EOF
11692#define wxUSE_STD_IOSTREAM 1
11693EOF
11694
11695fi
11696
11697if test "$wxUSE_TEXTFILE" = "yes"; then
11698 if test "$wxUSE_FILE" != "yes"; then
11699 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11700 else
11701 cat >> confdefs.h <<\EOF
11702#define wxUSE_TEXTFILE 1
11703EOF
11704
11705 fi
11706fi
11707
11708if test "$wxUSE_CONFIG" = "yes" ; then
11709 if test "$wxUSE_TEXTFILE" != "yes"; then
11710 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11711 else
11712 cat >> confdefs.h <<\EOF
11713#define wxUSE_CONFIG 1
11714EOF
11715
11716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11717 fi
11718fi
11719
11720if test "$wxUSE_INTL" = "yes" ; then
11721 if test "$wxUSE_FILE" != "yes"; then
11722 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11723 else
11724 cat >> confdefs.h <<\EOF
11725#define wxUSE_INTL 1
11726EOF
11727
11728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11729 fi
11730fi
11731
11732if test "$wxUSE_LOG" = "yes"; then
11733 cat >> confdefs.h <<\EOF
11734#define wxUSE_LOG 1
11735EOF
11736
11737fi
11738
11739if test "$wxUSE_LONGLONG" = "yes"; then
11740 cat >> confdefs.h <<\EOF
11741#define wxUSE_LONGLONG 1
11742EOF
11743
11744fi
11745
9b33fe02
VZ
11746if test "$wxUSE_PLOT" = "yes"; then
11747 cat >> confdefs.h <<\EOF
11748#define wxUSE_PLOT 1
11749EOF
11750
11751fi
11752
10f2d63a
VZ
11753if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11754 cat >> confdefs.h <<\EOF
11755#define wxUSE_DIALUP_MANAGER 1
11756EOF
11757
70f7a477 11758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
11759fi
11760
11761if test "$wxUSE_STREAMS" = "yes" ; then
11762 cat >> confdefs.h <<\EOF
11763#define wxUSE_STREAMS 1
11764EOF
11765
11766fi
11767
10f2d63a 11768
afc31813 11769if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
11770 for ac_func in strptime
11771do
11772echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
00cf1208 11773echo "configure:11774: checking for $ac_func" >&5
83307f33
VZ
11774if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11775 echo $ac_n "(cached) $ac_c" 1>&6
11776else
11777 cat > conftest.$ac_ext <<EOF
00cf1208 11778#line 11779 "configure"
83307f33
VZ
11779#include "confdefs.h"
11780/* System header to define __stub macros and hopefully few prototypes,
11781 which can conflict with char $ac_func(); below. */
11782#include <assert.h>
11783/* Override any gcc2 internal prototype to avoid an error. */
11784/* We use char because int might match the return type of a gcc2
11785 builtin and then its argument prototype would still apply. */
11786char $ac_func();
00cf1208 11787char (*f)();
83307f33
VZ
11788
11789int main() {
11790
11791/* The GNU C library defines this for functions which it implements
11792 to always fail with ENOSYS. Some functions are actually named
11793 something starting with __ and the normal name is an alias. */
11794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11795choke me
11796#else
00cf1208 11797f = $ac_func;
83307f33
VZ
11798#endif
11799
11800; return 0; }
11801EOF
00cf1208 11802if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
11803 rm -rf conftest*
11804 eval "ac_cv_func_$ac_func=yes"
11805else
11806 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11808 rm -rf conftest*
11809 eval "ac_cv_func_$ac_func=no"
11810fi
11811rm -f conftest*
11812fi
11813
11814if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11815 echo "$ac_t""yes" 1>&6
11816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11817 cat >> confdefs.h <<EOF
11818#define $ac_tr_func 1
11819EOF
11820
11821else
11822 echo "$ac_t""no" 1>&6
11823fi
11824done
11825
11826
360d6699 11827 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
00cf1208 11828echo "configure:11829: checking for timezone variable in <time.h>" >&5
360d6699
VZ
11829if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11830 echo $ac_n "(cached) $ac_c" 1>&6
11831else
11832
11833 cat > conftest.$ac_ext <<EOF
00cf1208 11834#line 11835 "configure"
360d6699
VZ
11835#include "confdefs.h"
11836
11837 #include <time.h>
11838
11839int main() {
11840
11841 int tz;
11842 tz = __timezone;
11843
11844; return 0; }
11845EOF
00cf1208 11846if { (eval echo configure:11847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11847 rm -rf conftest*
11848
11849 wx_cv_var_timezone=__timezone
11850
11851else
11852 echo "configure: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11854 rm -rf conftest*
11855
11856 cat > conftest.$ac_ext <<EOF
00cf1208 11857#line 11858 "configure"
360d6699
VZ
11858#include "confdefs.h"
11859
11860 #include <time.h>
11861
11862int main() {
11863
11864 int tz;
11865 tz = _timezone;
11866
11867; return 0; }
11868EOF
00cf1208 11869if { (eval echo configure:11870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11870 rm -rf conftest*
11871
11872 wx_cv_var_timezone=_timezone
11873
5357c8e8
VZ
11874else
11875 echo "configure: failed program was:" >&5
11876 cat conftest.$ac_ext >&5
11877 rm -rf conftest*
11878
11879 cat > conftest.$ac_ext <<EOF
00cf1208 11880#line 11881 "configure"
5357c8e8
VZ
11881#include "confdefs.h"
11882
11883 #include <time.h>
11884
11885int main() {
11886
11887 int tz;
11888 tz = timezone;
11889
11890; return 0; }
11891EOF
00cf1208 11892if { (eval echo configure:11893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
11893 rm -rf conftest*
11894
11895 wx_cv_var_timezone=timezone
11896
360d6699
VZ
11897else
11898 echo "configure: failed program was:" >&5
11899 cat conftest.$ac_ext >&5
11900 rm -rf conftest*
11901 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
11902
11903fi
11904rm -f conftest*
11905
360d6699
VZ
11906
11907fi
11908rm -f conftest*
11909
11910
11911fi
11912rm -f conftest*
11913
11914
11915fi
11916
11917echo "$ac_t""$wx_cv_var_timezone" 1>&6
11918
11919 cat >> confdefs.h <<EOF
11920#define WX_TIMEZONE $wx_cv_var_timezone
11921EOF
11922
11923
3fcdd07b 11924 for ac_func in localtime
afc31813
VZ
11925do
11926echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
00cf1208 11927echo "configure:11928: checking for $ac_func" >&5
afc31813
VZ
11928if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11929 echo $ac_n "(cached) $ac_c" 1>&6
11930else
11931 cat > conftest.$ac_ext <<EOF
00cf1208 11932#line 11933 "configure"
10f2d63a 11933#include "confdefs.h"
afc31813
VZ
11934/* System header to define __stub macros and hopefully few prototypes,
11935 which can conflict with char $ac_func(); below. */
11936#include <assert.h>
11937/* Override any gcc2 internal prototype to avoid an error. */
11938/* We use char because int might match the return type of a gcc2
11939 builtin and then its argument prototype would still apply. */
11940char $ac_func();
00cf1208 11941char (*f)();
afc31813 11942
10f2d63a 11943int main() {
afc31813
VZ
11944
11945/* The GNU C library defines this for functions which it implements
11946 to always fail with ENOSYS. Some functions are actually named
11947 something starting with __ and the normal name is an alias. */
11948#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11949choke me
11950#else
00cf1208 11951f = $ac_func;
afc31813
VZ
11952#endif
11953
10f2d63a
VZ
11954; return 0; }
11955EOF
00cf1208 11956if { (eval echo configure:11957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 11957 rm -rf conftest*
afc31813 11958 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
11959else
11960 echo "configure: failed program was:" >&5
11961 cat conftest.$ac_ext >&5
11962 rm -rf conftest*
afc31813
VZ
11963 eval "ac_cv_func_$ac_func=no"
11964fi
11965rm -f conftest*
11966fi
11967
11968if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11969 echo "$ac_t""yes" 1>&6
11970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11971 cat >> confdefs.h <<EOF
11972#define $ac_tr_func 1
11973EOF
3fcdd07b 11974
afc31813
VZ
11975else
11976 echo "$ac_t""no" 1>&6
11977fi
11978done
11979
11980
0470b1e6
VZ
11981 if test "$ac_cv_func_localtime" = "yes"; then
11982 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
00cf1208 11983echo "configure:11984: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
11984if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
11985 echo $ac_n "(cached) $ac_c" 1>&6
11986else
11987
11988 cat > conftest.$ac_ext <<EOF
00cf1208 11989#line 11990 "configure"
0470b1e6
VZ
11990#include "confdefs.h"
11991
11992 #include <time.h>
11993
11994int main() {
11995
11996 struct tm tm;
11997 tm.tm_gmtoff++;
11998
11999; return 0; }
12000EOF
00cf1208 12001if { (eval echo configure:12002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
12002 rm -rf conftest*
12003
f03a98d8 12004 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
12005 cat >> confdefs.h <<\EOF
12006#define WX_GMTOFF_IN_TM 1
12007EOF
12008
12009
12010else
12011 echo "configure: failed program was:" >&5
12012 cat conftest.$ac_ext >&5
12013 rm -rf conftest*
12014 wx_cv_struct_tm_has_gmtoff=no
12015
12016fi
12017rm -f conftest*
12018
12019fi
12020
12021echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
12022 fi
12023
12024 for ac_func in gettimeofday ftime
12025do
12026echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
00cf1208 12027echo "configure:12028: checking for $ac_func" >&5
3fcdd07b
VZ
12028if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12029 echo $ac_n "(cached) $ac_c" 1>&6
12030else
12031 cat > conftest.$ac_ext <<EOF
00cf1208 12032#line 12033 "configure"
3fcdd07b
VZ
12033#include "confdefs.h"
12034/* System header to define __stub macros and hopefully few prototypes,
12035 which can conflict with char $ac_func(); below. */
12036#include <assert.h>
12037/* Override any gcc2 internal prototype to avoid an error. */
12038/* We use char because int might match the return type of a gcc2
12039 builtin and then its argument prototype would still apply. */
12040char $ac_func();
00cf1208 12041char (*f)();
3fcdd07b
VZ
12042
12043int main() {
12044
12045/* The GNU C library defines this for functions which it implements
12046 to always fail with ENOSYS. Some functions are actually named
12047 something starting with __ and the normal name is an alias. */
12048#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12049choke me
12050#else
00cf1208 12051f = $ac_func;
3fcdd07b
VZ
12052#endif
12053
12054; return 0; }
12055EOF
00cf1208 12056if { (eval echo configure:12057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
12057 rm -rf conftest*
12058 eval "ac_cv_func_$ac_func=yes"
12059else
12060 echo "configure: failed program was:" >&5
12061 cat conftest.$ac_ext >&5
12062 rm -rf conftest*
12063 eval "ac_cv_func_$ac_func=no"
12064fi
12065rm -f conftest*
12066fi
12067
12068if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12069 echo "$ac_t""yes" 1>&6
12070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12071 cat >> confdefs.h <<EOF
12072#define $ac_tr_func 1
12073EOF
12074 break
12075else
12076 echo "$ac_t""no" 1>&6
12077fi
12078done
12079
12080
12081 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 12082 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
00cf1208 12083echo "configure:12084: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
12084if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12085 echo $ac_n "(cached) $ac_c" 1>&6
12086else
12087
12088
12089 ac_ext=C
12090# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12091ac_cpp='$CXXCPP $CPPFLAGS'
12092ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12093ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12094cross_compiling=$ac_cv_prog_cxx_cross
12095
12096
12097 cat > conftest.$ac_ext <<EOF
00cf1208 12098#line 12099 "configure"
10f2d63a 12099#include "confdefs.h"
afc31813
VZ
12100
12101 #include <sys/time.h>
12102 #include <unistd.h>
12103
10f2d63a 12104int main() {
afc31813
VZ
12105
12106 struct timeval tv;
12107 struct timezone tz;
12108 gettimeofday(&tv, &tz);
12109
10f2d63a
VZ
12110; return 0; }
12111EOF
00cf1208 12112if { (eval echo configure:12113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12113 rm -rf conftest*
afc31813 12114 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
12115else
12116 echo "configure: failed program was:" >&5
12117 cat conftest.$ac_ext >&5
12118 rm -rf conftest*
12119 cat > conftest.$ac_ext <<EOF
00cf1208 12120#line 12121 "configure"
10f2d63a 12121#include "confdefs.h"
afc31813
VZ
12122
12123 #include <sys/time.h>
12124 #include <unistd.h>
12125
10f2d63a 12126int main() {
afc31813
VZ
12127
12128 struct timeval tv;
12129 gettimeofday(&tv);
12130
10f2d63a
VZ
12131; return 0; }
12132EOF
00cf1208 12133if { (eval echo configure:12134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12134 rm -rf conftest*
afc31813 12135 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
12136else
12137 echo "configure: failed program was:" >&5
12138 cat conftest.$ac_ext >&5
12139 rm -rf conftest*
afc31813
VZ
12140 wx_cv_func_gettimeofday_has_2_args=unknown
12141
10f2d63a
VZ
12142fi
12143rm -f conftest*
afc31813 12144
10f2d63a
VZ
12145fi
12146rm -f conftest*
afc31813 12147 ac_ext=c
10f2d63a
VZ
12148# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12149ac_cpp='$CPP $CPPFLAGS'
12150ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12151ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12152cross_compiling=$ac_cv_prog_cc_cross
12153
afc31813
VZ
12154
12155fi
12156
12157echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 12158
afc31813
VZ
12159 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12160 cat >> confdefs.h <<\EOF
12161#define WX_GETTIMEOFDAY_NO_TZ 1
12162EOF
12163
12164 fi
12165 fi
12166
12167 cat >> confdefs.h <<\EOF
12168#define wxUSE_TIMEDATE 1
12169EOF
12170
12171 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12172fi
12173
12174
b089607b
VZ
12175if test "$TOOLKIT" != "MSW"; then
12176
afc31813 12177if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 12178 echo $ac_n "checking for socket""... $ac_c" 1>&6
00cf1208 12179echo "configure:12180: checking for socket" >&5
c63c7106
VZ
12180if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12181 echo $ac_n "(cached) $ac_c" 1>&6
12182else
12183 cat > conftest.$ac_ext <<EOF
00cf1208 12184#line 12185 "configure"
c63c7106
VZ
12185#include "confdefs.h"
12186/* System header to define __stub macros and hopefully few prototypes,
12187 which can conflict with char socket(); below. */
12188#include <assert.h>
12189/* Override any gcc2 internal prototype to avoid an error. */
12190/* We use char because int might match the return type of a gcc2
12191 builtin and then its argument prototype would still apply. */
12192char socket();
00cf1208 12193char (*f)();
c63c7106
VZ
12194
12195int main() {
12196
12197/* The GNU C library defines this for functions which it implements
12198 to always fail with ENOSYS. Some functions are actually named
12199 something starting with __ and the normal name is an alias. */
12200#if defined (__stub_socket) || defined (__stub___socket)
12201choke me
12202#else
00cf1208 12203f = socket;
c63c7106
VZ
12204#endif
12205
12206; return 0; }
12207EOF
00cf1208 12208if { (eval echo configure:12209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12209 rm -rf conftest*
12210 eval "ac_cv_func_socket=yes"
12211else
12212 echo "configure: failed program was:" >&5
12213 cat conftest.$ac_ext >&5
12214 rm -rf conftest*
12215 eval "ac_cv_func_socket=no"
12216fi
12217rm -f conftest*
12218fi
12219
12220if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12221 echo "$ac_t""yes" 1>&6
12222 :
12223else
12224 echo "$ac_t""no" 1>&6
12225echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
00cf1208 12226echo "configure:12227: checking for socket in -lsocket" >&5
c63c7106
VZ
12227ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12228if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12229 echo $ac_n "(cached) $ac_c" 1>&6
12230else
12231 ac_save_LIBS="$LIBS"
12232LIBS="-lsocket $LIBS"
12233cat > conftest.$ac_ext <<EOF
00cf1208 12234#line 12235 "configure"
c63c7106
VZ
12235#include "confdefs.h"
12236/* Override any gcc2 internal prototype to avoid an error. */
12237/* We use char because int might match the return type of a gcc2
12238 builtin and then its argument prototype would still apply. */
12239char socket();
12240
12241int main() {
12242socket()
12243; return 0; }
12244EOF
00cf1208 12245if { (eval echo configure:12246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12246 rm -rf conftest*
12247 eval "ac_cv_lib_$ac_lib_var=yes"
12248else
12249 echo "configure: failed program was:" >&5
12250 cat conftest.$ac_ext >&5
12251 rm -rf conftest*
12252 eval "ac_cv_lib_$ac_lib_var=no"
12253fi
12254rm -f conftest*
12255LIBS="$ac_save_LIBS"
12256
12257fi
12258if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12259 echo "$ac_t""yes" 1>&6
12260 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
12261else
12262 echo "$ac_t""no" 1>&6
afc31813
VZ
12263
12264 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12265 wxUSE_SOCKETS=no
12266
12267
c63c7106
VZ
12268fi
12269
12270
12271fi
12272
10f2d63a
VZ
12273fi
12274
b089607b
VZ
12275fi
12276
afc31813 12277if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 12278 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
00cf1208 12279echo "configure:12280: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
12280if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12281 echo $ac_n "(cached) $ac_c" 1>&6
12282else
12283
12284
12285 ac_ext=C
afc31813
VZ
12286# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12287ac_cpp='$CXXCPP $CPPFLAGS'
12288ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12289ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12290cross_compiling=$ac_cv_prog_cxx_cross
12291
51a9faba
VZ
12292
12293 cat > conftest.$ac_ext <<EOF
00cf1208 12294#line 12295 "configure"
afc31813 12295#include "confdefs.h"
51a9faba 12296
3ace2e6d 12297 #include <sys/types.h>
51a9faba
VZ
12298 #include <sys/socket.h>
12299
afc31813 12300int main() {
51a9faba
VZ
12301
12302 socklen_t len;
12303 getsockname(0, 0, &len);
12304
afc31813
VZ
12305; return 0; }
12306EOF
00cf1208 12307if { (eval echo configure:12308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12308 rm -rf conftest*
51a9faba 12309 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
12310else
12311 echo "configure: failed program was:" >&5
12312 cat conftest.$ac_ext >&5
12313 rm -rf conftest*
12314 cat > conftest.$ac_ext <<EOF
00cf1208 12315#line 12316 "configure"
afc31813 12316#include "confdefs.h"
51a9faba 12317
3ace2e6d 12318 #include <sys/types.h>
51a9faba
VZ
12319 #include <sys/socket.h>
12320
afc31813 12321int main() {
51a9faba
VZ
12322
12323 size_t len;
12324 getsockname(0, 0, &len);
12325
afc31813
VZ
12326; return 0; }
12327EOF
00cf1208 12328if { (eval echo configure:12329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12329 rm -rf conftest*
51a9faba 12330 wx_cv_type_getsockname3=size_t
afc31813
VZ
12331else
12332 echo "configure: failed program was:" >&5
12333 cat conftest.$ac_ext >&5
12334 rm -rf conftest*
12335 cat > conftest.$ac_ext <<EOF
00cf1208 12336#line 12337 "configure"
afc31813 12337#include "confdefs.h"
51a9faba 12338
3ace2e6d 12339 #include <sys/types.h>
51a9faba
VZ
12340 #include <sys/socket.h>
12341
afc31813 12342int main() {
51a9faba
VZ
12343
12344 int len;
12345 getsockname(0, 0, &len);
12346
afc31813
VZ
12347; return 0; }
12348EOF
00cf1208 12349if { (eval echo configure:12350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12350 rm -rf conftest*
51a9faba 12351 wx_cv_type_getsockname3=int
afc31813
VZ
12352else
12353 echo "configure: failed program was:" >&5
12354 cat conftest.$ac_ext >&5
3ace2e6d
SN
12355 rm -rf conftest*
12356 wx_cv_type_getsockname3=unknown
12357
afc31813
VZ
12358fi
12359rm -f conftest*
51a9faba 12360
afc31813
VZ
12361fi
12362rm -f conftest*
51a9faba 12363
afc31813
VZ
12364fi
12365rm -f conftest*
51a9faba
VZ
12366
12367 ac_ext=c
afc31813
VZ
12368# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12369ac_cpp='$CPP $CPPFLAGS'
12370ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12371ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12372cross_compiling=$ac_cv_prog_cc_cross
12373
51a9faba
VZ
12374
12375fi
12376
12377echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12378
12379 if test "$wx_cv_type_getsockname3" = "unknown"; then
12380 wxUSE_SOCKETS=no
12381 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12382 else
12383 cat >> confdefs.h <<EOF
12384#define SOCKLEN_T $wx_cv_type_getsockname3
12385EOF
12386
12387 fi
12388fi
afc31813 12389
51a9faba 12390if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
12391 cat >> confdefs.h <<\EOF
12392#define wxUSE_SOCKETS 1
12393EOF
12394
70f7a477 12395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
12396 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12397fi
12398
10f2d63a 12399
b089607b
VZ
12400if test "$TOOLKIT" != "MSW"; then
12401
10f2d63a
VZ
12402if test "$wxUSE_JOYSTICK" = 1; then
12403 for ac_hdr in linux/joystick.h
12404do
12405ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12406echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
00cf1208 12407echo "configure:12408: checking for $ac_hdr" >&5
10f2d63a
VZ
12408if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12409 echo $ac_n "(cached) $ac_c" 1>&6
12410else
12411 cat > conftest.$ac_ext <<EOF
00cf1208 12412#line 12413 "configure"
10f2d63a
VZ
12413#include "confdefs.h"
12414#include <$ac_hdr>
12415EOF
12416ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 12417{ (eval echo configure:12418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12418ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12419if test -z "$ac_err"; then
12420 rm -rf conftest*
12421 eval "ac_cv_header_$ac_safe=yes"
12422else
12423 echo "$ac_err" >&5
12424 echo "configure: failed program was:" >&5
12425 cat conftest.$ac_ext >&5
12426 rm -rf conftest*
12427 eval "ac_cv_header_$ac_safe=no"
12428fi
12429rm -f conftest*
12430fi
12431if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12432 echo "$ac_t""yes" 1>&6
12433 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12434 cat >> confdefs.h <<EOF
12435#define $ac_tr_hdr 1
12436EOF
12437
12438else
12439 echo "$ac_t""no" 1>&6
12440fi
12441done
12442
b089607b
VZ
12443 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
12444 wxUSE_JOYSTICK=0
12445 echo "configure: warning: Joystick not supported yb this system" 1>&2
12446 fi
12447fi
12448
12449fi
12450
12451if test "$wxUSE_JOYSTICK" = 1; then
10f2d63a
VZ
12452 cat >> confdefs.h <<\EOF
12453#define wxUSE_JOYSTICK 1
12454EOF
12455
12456 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
12457fi
12458
12459
b089607b
VZ
12460if test "$TOOLKIT" != "MSW"; then
12461
10f2d63a
VZ
12462HAVE_DL_FUNCS=0
12463HAVE_SHL_FUNCS=0
12464if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12465 for ac_func in dlopen
12466do
12467echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
00cf1208 12468echo "configure:12469: checking for $ac_func" >&5
10f2d63a
VZ
12469if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12470 echo $ac_n "(cached) $ac_c" 1>&6
12471else
12472 cat > conftest.$ac_ext <<EOF
00cf1208 12473#line 12474 "configure"
10f2d63a
VZ
12474#include "confdefs.h"
12475/* System header to define __stub macros and hopefully few prototypes,
12476 which can conflict with char $ac_func(); below. */
12477#include <assert.h>
12478/* Override any gcc2 internal prototype to avoid an error. */
12479/* We use char because int might match the return type of a gcc2
12480 builtin and then its argument prototype would still apply. */
12481char $ac_func();
00cf1208 12482char (*f)();
10f2d63a
VZ
12483
12484int main() {
12485
12486/* The GNU C library defines this for functions which it implements
12487 to always fail with ENOSYS. Some functions are actually named
12488 something starting with __ and the normal name is an alias. */
12489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12490choke me
12491#else
00cf1208 12492f = $ac_func;
10f2d63a
VZ
12493#endif
12494
12495; return 0; }
12496EOF
00cf1208 12497if { (eval echo configure:12498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12498 rm -rf conftest*
12499 eval "ac_cv_func_$ac_func=yes"
12500else
12501 echo "configure: failed program was:" >&5
12502 cat conftest.$ac_ext >&5
12503 rm -rf conftest*
12504 eval "ac_cv_func_$ac_func=no"
12505fi
12506rm -f conftest*
12507fi
12508
12509if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12510 echo "$ac_t""yes" 1>&6
12511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12512 cat >> confdefs.h <<EOF
12513#define $ac_tr_func 1
12514EOF
12515
12516 cat >> confdefs.h <<\EOF
12517#define HAVE_DLOPEN 1
12518EOF
12519
12520 HAVE_DL_FUNCS=1
12521
12522else
12523 echo "$ac_t""no" 1>&6
12524echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
00cf1208 12525echo "configure:12526: checking for dlopen in -ldl" >&5
10f2d63a
VZ
12526ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12527if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12528 echo $ac_n "(cached) $ac_c" 1>&6
12529else
12530 ac_save_LIBS="$LIBS"
12531LIBS="-ldl $LIBS"
12532cat > conftest.$ac_ext <<EOF
00cf1208 12533#line 12534 "configure"
10f2d63a
VZ
12534#include "confdefs.h"
12535/* Override any gcc2 internal prototype to avoid an error. */
12536/* We use char because int might match the return type of a gcc2
12537 builtin and then its argument prototype would still apply. */
12538char dlopen();
12539
12540int main() {
12541dlopen()
12542; return 0; }
12543EOF
00cf1208 12544if { (eval echo configure:12545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12545 rm -rf conftest*
12546 eval "ac_cv_lib_$ac_lib_var=yes"
12547else
12548 echo "configure: failed program was:" >&5
12549 cat conftest.$ac_ext >&5
12550 rm -rf conftest*
12551 eval "ac_cv_lib_$ac_lib_var=no"
12552fi
12553rm -f conftest*
12554LIBS="$ac_save_LIBS"
12555
12556fi
12557if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12558 echo "$ac_t""yes" 1>&6
12559
12560 cat >> confdefs.h <<\EOF
12561#define HAVE_DLOPEN 1
12562EOF
12563
12564 HAVE_DL_FUNCS=1
12565 LIBS="$LIBS -ldl"
12566
12567else
12568 echo "$ac_t""no" 1>&6
12569
12570 for ac_func in shl_load
12571do
12572echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
00cf1208 12573echo "configure:12574: checking for $ac_func" >&5
10f2d63a
VZ
12574if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12575 echo $ac_n "(cached) $ac_c" 1>&6
12576else
12577 cat > conftest.$ac_ext <<EOF
00cf1208 12578#line 12579 "configure"
10f2d63a
VZ
12579#include "confdefs.h"
12580/* System header to define __stub macros and hopefully few prototypes,
12581 which can conflict with char $ac_func(); below. */
12582#include <assert.h>
12583/* Override any gcc2 internal prototype to avoid an error. */
12584/* We use char because int might match the return type of a gcc2
12585 builtin and then its argument prototype would still apply. */
12586char $ac_func();
00cf1208 12587char (*f)();
10f2d63a
VZ
12588
12589int main() {
12590
12591/* The GNU C library defines this for functions which it implements
12592 to always fail with ENOSYS. Some functions are actually named
12593 something starting with __ and the normal name is an alias. */
12594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12595choke me
12596#else
00cf1208 12597f = $ac_func;
10f2d63a
VZ
12598#endif
12599
12600; return 0; }
12601EOF
00cf1208 12602if { (eval echo configure:12603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12603 rm -rf conftest*
12604 eval "ac_cv_func_$ac_func=yes"
12605else
12606 echo "configure: failed program was:" >&5
12607 cat conftest.$ac_ext >&5
12608 rm -rf conftest*
12609 eval "ac_cv_func_$ac_func=no"
12610fi
12611rm -f conftest*
12612fi
12613
12614if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12615 echo "$ac_t""yes" 1>&6
12616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12617 cat >> confdefs.h <<EOF
12618#define $ac_tr_func 1
12619EOF
12620
12621 cat >> confdefs.h <<\EOF
12622#define HAVE_SHL_LOAD 1
12623EOF
12624
12625 HAVE_SHL_FUNCS=1
12626
12627else
12628 echo "$ac_t""no" 1>&6
12629fi
12630done
12631
12632
12633fi
12634
12635
12636fi
12637done
12638
12639
12640 if test "$HAVE_DL_FUNCS" = 0; then
12641 if test "$HAVE_SHL_FUNCS" = 0; then
12642 if test "$USE_UNIX" = 1; then
b12915c1 12643 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
12644 wxUSE_DYNLIB_CLASS=no
12645 else
b12915c1 12646 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
12647 fi
12648 fi
12649 fi
12650fi
12651
b089607b
VZ
12652fi
12653
10f2d63a 12654if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 12655 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12656#define wxUSE_DYNLIB_CLASS 1
12657EOF
12658
b12915c1
VZ
12659else
12660 wxUSE_ODBC=no
12661 wxUSE_SERIAL=no
10f2d63a
VZ
12662fi
12663
12664
12665if test "$wxUSE_UNICODE" = "yes" ; then
12666 cat >> confdefs.h <<\EOF
12667#define wxUSE_UNICODE 1
12668EOF
12669
12670fi
12671
12672if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12673 cat >> confdefs.h <<\EOF
12674#define wxUSE_WCSRTOMBS 1
12675EOF
12676
12677fi
12678
12679if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12680 cat >> confdefs.h <<\EOF
12681#define wxUSE_EXPERIMENTAL_PRINTF 1
12682EOF
12683
12684fi
12685
12686
b12915c1
VZ
12687if test "$wxUSE_SERIAL" = "yes" ; then
12688 cat >> confdefs.h <<\EOF
12689#define wxUSE_SERIAL 1
12690EOF
12691
12692fi
12693
12694
10f2d63a
VZ
12695IODBC_C_SRC=""
12696if test "$wxUSE_ODBC" = "yes" ; then
12697 cat >> confdefs.h <<\EOF
12698#define wxUSE_ODBC 1
12699EOF
12700
12701 WXODBCFLAG="-D_IODBC_"
12702 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12703 IODBCOBJS="\$(IODBC_OBJS)"
12704else
12705 IODBCOBJS=
12706fi
12707
12708
12709if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12710 cat >> confdefs.h <<\EOF
12711#define wxUSE_POSTSCRIPT 1
12712EOF
12713
12714fi
12715
12716cat >> confdefs.h <<\EOF
12717#define wxUSE_AFM_FOR_POSTSCRIPT 1
12718EOF
12719
12720
12721cat >> confdefs.h <<\EOF
12722#define wxUSE_NORMALIZED_PS_FONTS 1
12723EOF
12724
12725
12726
12727if test "$wxUSE_CONSTRAINTS" = "yes"; then
12728 cat >> confdefs.h <<\EOF
12729#define wxUSE_CONSTRAINTS 1
12730EOF
12731
12732 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12733fi
12734
12735if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12736 cat >> confdefs.h <<\EOF
12737#define wxUSE_MDI_ARCHITECTURE 1
12738EOF
12739
12740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12741fi
12742
12743if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12744 cat >> confdefs.h <<\EOF
12745#define wxUSE_DOC_VIEW_ARCHITECTURE 1
12746EOF
12747
12748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12749 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12750 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12751 fi
12752fi
12753
12754if test "$wxUSE_HELP" = "yes"; then
12755 cat >> confdefs.h <<\EOF
12756#define wxUSE_HELP 1
12757EOF
12758
12759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12760fi
12761
12762if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12763 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12764 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12765 else
12766 cat >> confdefs.h <<\EOF
12767#define wxUSE_PRINTING_ARCHITECTURE 1
12768EOF
12769
12770 fi
12771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12772fi
12773
12774if test "$wxUSE_PROLOGIO" = "yes" ; then
12775 cat >> confdefs.h <<\EOF
12776#define wxUSE_PROLOGIO 1
12777EOF
12778
12779fi
12780
12781if test "$wxUSE_RESOURCES" = "yes" ; then
12782 if test "$wxUSE_PROLOGIO" = "yes" ; then
12783 cat >> confdefs.h <<\EOF
12784#define wxUSE_RESOURCES 1
12785EOF
12786
12787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12788 else
12789 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12790 fi
12791fi
12792
12793if test "$wxUSE_X_RESOURCES" = "yes"; then
12794 cat >> confdefs.h <<\EOF
12795#define wxUSE_X_RESOURCES 1
12796EOF
12797
12798fi
12799
12800
12801if test "$wxUSE_IPC" = "yes"; then
12802 cat >> confdefs.h <<\EOF
12803#define wxUSE_IPC 1
12804EOF
12805
12806fi
12807
12808if test "$wxUSE_CLIPBOARD" = "yes"; then
12809 cat >> confdefs.h <<\EOF
12810#define wxUSE_CLIPBOARD 1
12811EOF
12812
12813fi
12814
12815if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12816 if test "$wxUSE_GTK" = 1; then
12817 if test "$WXGTK12" != 1; then
12818 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12819 wxUSE_DRAG_AND_DROP=no
12820 fi
12821 fi
12822
12823 if test "$wxUSE_MOTIF" = 1; then
12824 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12825 wxUSE_DRAG_AND_DROP=no
12826 fi
12827
12828 if test "$USE_WIN32" = 1; then
12829 for ac_hdr in ole2.h
12830do
12831ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12832echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
00cf1208 12833echo "configure:12834: checking for $ac_hdr" >&5
10f2d63a
VZ
12834if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12835 echo $ac_n "(cached) $ac_c" 1>&6
12836else
12837 cat > conftest.$ac_ext <<EOF
00cf1208 12838#line 12839 "configure"
10f2d63a
VZ
12839#include "confdefs.h"
12840#include <$ac_hdr>
12841EOF
12842ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
00cf1208 12843{ (eval echo configure:12844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12844ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12845if test -z "$ac_err"; then
12846 rm -rf conftest*
12847 eval "ac_cv_header_$ac_safe=yes"
12848else
12849 echo "$ac_err" >&5
12850 echo "configure: failed program was:" >&5
12851 cat conftest.$ac_ext >&5
12852 rm -rf conftest*
12853 eval "ac_cv_header_$ac_safe=no"
12854fi
12855rm -f conftest*
12856fi
12857if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12858 echo "$ac_t""yes" 1>&6
12859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12860 cat >> confdefs.h <<EOF
12861#define $ac_tr_hdr 1
12862EOF
12863
12864else
12865 echo "$ac_t""no" 1>&6
12866fi
12867done
12868
12869 if test "x$HAVE_OLE2_H" = x ; then
12870 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12871 wxUSE_DRAG_AND_DROP=no
12872 fi
12873 fi
12874
12875 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12876 cat >> confdefs.h <<\EOF
12877#define wxUSE_DRAG_AND_DROP 1
12878EOF
12879
12880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12881 fi
12882
12883fi
12884
12885if test "$wxUSE_SPLINES" = "yes" ; then
12886 cat >> confdefs.h <<\EOF
12887#define wxUSE_SPLINES 1
12888EOF
12889
12890fi
12891
12892
12893if test "$wxUSE_ACCEL" = "yes"; then
12894 cat >> confdefs.h <<\EOF
12895#define wxUSE_ACCEL 1
12896EOF
12897
12898fi
12899
12900if test "$wxUSE_CARET" = "yes"; then
12901 cat >> confdefs.h <<\EOF
12902#define wxUSE_CARET 1
12903EOF
12904
12905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12906fi
12907
12908if test "$wxUSE_COMBOBOX" = "yes"; then
12909 cat >> confdefs.h <<\EOF
12910#define wxUSE_COMBOBOX 1
12911EOF
12912
12913fi
12914
12915if test "$wxUSE_CHOICE" = "yes"; then
12916 cat >> confdefs.h <<\EOF
12917#define wxUSE_CHOICE 1
12918EOF
12919
12920fi
12921
12922if test "$wxUSE_BMPBUTTON" = "yes"; then
12923 cat >> confdefs.h <<\EOF
12924#define wxUSE_BMPBUTTON 1
12925EOF
12926
12927fi
12928
12929if test "$wxUSE_CHECKBOX" = "yes"; then
12930 cat >> confdefs.h <<\EOF
12931#define wxUSE_CHECKBOX 1
12932EOF
12933
12934fi
12935
12936if test "$wxUSE_CHECKLST" = "yes"; then
12937 cat >> confdefs.h <<\EOF
12938#define wxUSE_CHECKLISTBOX 1
12939EOF
12940
12941 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12942fi
12943
12944if test "$wxUSE_GAUGE" = "yes"; then
12945 cat >> confdefs.h <<\EOF
12946#define wxUSE_GAUGE 1
12947EOF
12948
12949fi
12950
12951if test "$wxUSE_GRID" = "yes"; then
12952 cat >> confdefs.h <<\EOF
12953#define wxUSE_GRID 1
12954EOF
12955
12956 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
12957fi
12958
12959if test "$wxUSE_NEW_GRID" = "yes"; then
12960 cat >> confdefs.h <<\EOF
12961#define wxUSE_NEW_GRID 1
12962EOF
12963
12964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
12965fi
12966
12967if test "$wxUSE_IMAGLIST" = "yes"; then
12968 cat >> confdefs.h <<\EOF
12969#define wxUSE_IMAGLIST 1
12970EOF
12971
12972fi
12973
12974if test "$wxUSE_LISTBOX" = "yes"; then
12975 cat >> confdefs.h <<\EOF
12976#define wxUSE_LISTBOX 1
12977EOF
12978
12979fi
12980
12981if test "$wxUSE_LISTCTRL" = "yes"; then
12982 if test "$wxUSE_IMAGLIST" = "yes"; then
12983 cat >> confdefs.h <<\EOF
12984#define wxUSE_LISTCTRL 1
12985EOF
12986
12987 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
12988 else
12989 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
12990 fi
12991fi
12992
12993if test "$wxUSE_NOTEBOOK" = "yes"; then
12994 cat >> confdefs.h <<\EOF
12995#define wxUSE_NOTEBOOK 1
12996EOF
12997
12998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
12999fi
13000
13001if test "$wxUSE_RADIOBOX" = "yes"; then
13002 cat >> confdefs.h <<\EOF
13003#define wxUSE_RADIOBOX 1
13004EOF
13005
13006fi
13007
13008if test "$wxUSE_RADIOBTN" = "yes"; then
13009 cat >> confdefs.h <<\EOF
13010#define wxUSE_RADIOBTN 1
13011EOF
13012
13013fi
13014
13015if test "$wxUSE_SASH" = "yes"; then
13016 cat >> confdefs.h <<\EOF
13017#define wxUSE_SASH 1
13018EOF
13019
13020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
13021fi
13022
13023if test "$wxUSE_SCROLLBAR" = "yes"; then
13024 cat >> confdefs.h <<\EOF
13025#define wxUSE_SCROLLBAR 1
13026EOF
13027
741a9306 13028 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
13029fi
13030
13031if test "$wxUSE_SLIDER" = "yes"; then
13032 cat >> confdefs.h <<\EOF
13033#define wxUSE_SLIDER 1
13034EOF
13035
13036fi
13037
13038if test "$wxUSE_SPINBTN" = "yes"; then
13039 cat >> confdefs.h <<\EOF
13040#define wxUSE_SPINBTN 1
13041EOF
13042
13043fi
13044
56cfaa52
RR
13045if test "$wxUSE_SPINCTRL" = "yes"; then
13046 cat >> confdefs.h <<\EOF
13047#define wxUSE_SPINCTRL 1
13048EOF
13049
13050fi
13051
10f2d63a
VZ
13052if test "$wxUSE_SPLITTER" = "yes"; then
13053 cat >> confdefs.h <<\EOF
13054#define wxUSE_SPLITTER 1
13055EOF
13056
13057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
13058fi
13059
13060if test "$wxUSE_STATBMP" = "yes"; then
13061 cat >> confdefs.h <<\EOF
13062#define wxUSE_STATBMP 1
13063EOF
13064
13065fi
13066
13067if test "$wxUSE_STATBOX" = "yes"; then
13068 cat >> confdefs.h <<\EOF
13069#define wxUSE_STATBOX 1
13070EOF
13071
13072fi
13073
13074if test "$wxUSE_STATLINE" = "yes"; then
13075 if test "$wxUSE_WINE" = 1 ; then
13076 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
13077 else
13078 cat >> confdefs.h <<\EOF
13079#define wxUSE_STATLINE 1
13080EOF
13081
13082 fi
13083fi
13084
13085if test "$wxUSE_STATUSBAR" = "yes"; then
13086 cat >> confdefs.h <<\EOF
13087#define wxUSE_STATUSBAR 1
13088EOF
13089
2286341c
VZ
13090
13091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
13092fi
13093
13094if test "$wxUSE_TABDIALOG" = "yes"; then
13095 cat >> confdefs.h <<\EOF
13096#define wxUSE_TAB_DIALOG 1
13097EOF
13098
13099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
13100fi
13101
360d6699
VZ
13102if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
13103 cat >> confdefs.h <<\EOF
13104#define wxUSE_TOOLBAR_SIMPLE 1
13105EOF
13106
13107 wxUSE_TOOLBAR="yes"
13108fi
13109
10f2d63a
VZ
13110if test "$wxUSE_TOOLBAR" = "yes"; then
13111 cat >> confdefs.h <<\EOF
13112#define wxUSE_TOOLBAR 1
13113EOF
13114
360d6699
VZ
13115
13116 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
13117 wxUSE_TOOLBAR_NATIVE="yes"
13118 fi
13119
10f2d63a
VZ
13120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
13121fi
13122
360d6699
VZ
13123if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
13124 cat >> confdefs.h <<\EOF
13125#define wxUSE_TOOLBAR_NATIVE 1
13126EOF
13127
13128fi
13129
10f2d63a
VZ
13130if test "$wxUSE_TOOLTIPS" = "yes"; then
13131 if test "$wxUSE_MOTIF" = 1; then
13132 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13133 else
13134 if test "$wxUSE_WINE" = 1; then
13135 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13136 else
13137 cat >> confdefs.h <<\EOF
13138#define wxUSE_TOOLTIPS 1
13139EOF
13140
13141 fi
13142 fi
13143fi
13144
13145if test "$wxUSE_TREECTRL" = "yes"; then
13146 if test "$wxUSE_IMAGLIST" = "yes"; then
13147 cat >> confdefs.h <<\EOF
13148#define wxUSE_TREECTRL 1
13149EOF
13150
13151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13152 else
13153 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13154 fi
13155fi
13156
13157
13158
13159if test "$wxUSE_METAFILE" = "yes"; then
13160 cat >> confdefs.h <<\EOF
13161#define wxUSE_METAFILE 1
13162EOF
13163
13164fi
13165
13166if test "$wxUSE_DIRDLG" = "yes"; then
13167 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13168 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13169 else
13170 if test "$wxUSE_TREECTRL" != "yes"; then
13171 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13172 else
13173 cat >> confdefs.h <<\EOF
13174#define wxUSE_DIRDLG 1
13175EOF
13176
13177 fi
13178 fi
13179fi
13180
13181if test "$wxUSE_TEXTDLG" = "yes"; then
13182 cat >> confdefs.h <<\EOF
13183#define wxUSE_TEXTDLG 1
13184EOF
13185
13186fi
13187
13188if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13189 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13190 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13191 else
13192 cat >> confdefs.h <<\EOF
13193#define wxUSE_STARTUP_TIPS 1
13194EOF
13195
13196 fi
13197fi
13198
13199if test "$wxUSE_PROGRESSDLG" = "yes"; then
13200 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13201 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13202 else
13203 cat >> confdefs.h <<\EOF
13204#define wxUSE_PROGRESSDLG 1
13205EOF
13206
13207 fi
13208fi
13209
13210if test "$wxUSE_MINIFRAME" = "yes"; then
13211 cat >> confdefs.h <<\EOF
13212#define wxUSE_MINIFRAME 1
13213EOF
13214
13215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13216fi
13217
13218if test "$wxUSE_HTML" = "yes"; then
13219 cat >> confdefs.h <<\EOF
13220#define wxUSE_HTML 1
13221EOF
13222
13223 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13224 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13225fi
13226
13227if test "$wxUSE_VALIDATORS" = "yes"; then
13228 cat >> confdefs.h <<\EOF
13229#define wxUSE_VALIDATORS 1
13230EOF
13231
13232 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13233fi
13234
13235if test "$wxUSE_GIF" = "yes" ; then
13236 cat >> confdefs.h <<\EOF
13237#define wxUSE_GIF 1
13238EOF
13239
13240fi
13241
13242if test "$wxUSE_PCX" = "yes" ; then
13243 cat >> confdefs.h <<\EOF
13244#define wxUSE_PCX 1
13245EOF
13246
13247fi
13248
13249if test "$wxUSE_PNM" = "yes" ; then
13250 cat >> confdefs.h <<\EOF
13251#define wxUSE_PNM 1
13252EOF
13253
13254fi
13255
13256
aaa37c0d
VZ
13257OSINFO=`uname -s -r -m`
13258OSINFO="\"$OSINFO\""
13259cat >> confdefs.h <<EOF
13260#define WXWIN_OS_DESCRIPTION $OSINFO
13261EOF
13262
13263
13264
10f2d63a
VZ
13265GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
13266
c63c7106 13267EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a
VZ
13268if test "$wxUSE_GUI" = "yes"; then
13269 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
13270fi
13271
13272LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13273
c7a2bf27 13274INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
13275
13276if test "$GXX" = yes ; then
13277 CXXWARNINGS="-Wall"
13278 fi
13279EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13280
13281CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13282CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13283
e694c22c
VZ
13284LDFLAGS="$LDFLAGS $PROFILE"
13285
10f2d63a
VZ
13286if test "$wxUSE_GUI" = "yes"; then
13287
70f7a477
VZ
13288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs drawing dynamic \
13289 font fractal image minimal richedit"
b12915c1 13290
88d3a15c 13291 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
13292else
13293 SAMPLES_SUBDIRS=""
13294fi
13295
ec14dd32
VZ
13296SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13297
13298
13299
10f2d63a
VZ
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
1d62a8b4 13352
e694c22c 13353
b12915c1 13354
2224580a
VZ
13355
13356
13357
13358
dad6c0ea
VZ
13359
13360
caa2c79b 13361
10f2d63a
VZ
13362
13363
13364echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
00cf1208 13365echo "configure:13366: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
13366set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13367if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13368 echo $ac_n "(cached) $ac_c" 1>&6
13369else
13370 cat > conftestmake <<\EOF
13371all:
13372 @echo 'ac_maketemp="${MAKE}"'
13373EOF
13374# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13375eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13376if test -n "$ac_maketemp"; then
13377 eval ac_cv_prog_make_${ac_make}_set=yes
13378else
13379 eval ac_cv_prog_make_${ac_make}_set=no
13380fi
13381rm -f conftestmake
13382fi
13383if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13384 echo "$ac_t""yes" 1>&6
13385 SET_MAKE=
13386else
13387 echo "$ac_t""no" 1>&6
13388 SET_MAKE="MAKE=${MAKE-make}"
13389fi
13390
13391
00cf1208
RR
13392if test -d include; then
13393 if test -d include/wx; then
13394 if test -d include/wx/${TOOLKIT_DIR}; then
13395 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
13396 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
13397 fi
13398 fi
13399 fi
13400fi
13401
10f2d63a
VZ
13402
13403
2224580a
VZ
13404if test "$wxUSE_GUI" = "yes"; then
13405 echo $ac_n "checking glcanvas subdirectory to use""... $ac_c" 1>&6
00cf1208 13406echo "configure:13407: checking glcanvas subdirectory to use" >&5
2224580a
VZ
13407if eval "test \"`echo '$''{'wx_cv_path_glcanvas'+set}'`\" = set"; then
13408 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13409else
2224580a
VZ
13410
13411 if test "${TOOLKIT_DIR}" = "msw" ; then
13412 wx_cv_path_glcanvas="win"
13413 else
13414 wx_cv_path_glcanvas="${TOOLKIT_DIR}"
13415 fi
13416
10f2d63a
VZ
13417fi
13418
2224580a
VZ
13419echo "$ac_t""$wx_cv_path_glcanvas" 1>&6
13420
ec90f5e5 13421 GL_TOOLKIT_DIR=$wx_cv_path_glcanvas
2224580a
VZ
13422
13423
ec90f5e5 13424 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
2224580a
VZ
13425 subdirs="demos samples utils"
13426
13427fi
10f2d63a
VZ
13428
13429trap '' 1 2 15
13430cat > confcache <<\EOF
13431# This file is a shell script that caches the results of configure
13432# tests run on this system so they can be shared between configure
13433# scripts and configure runs. It is not useful on other systems.
13434# If it contains results you don't want to keep, you may remove or edit it.
13435#
13436# By default, configure uses ./config.cache as the cache file,
13437# creating it if it does not exist already. You can give configure
13438# the --cache-file=FILE option to use a different cache file; that is
13439# what configure does when it calls configure scripts in
13440# subdirectories, so they share the cache.
13441# Giving --cache-file=/dev/null disables caching, for debugging configure.
13442# config.status only pays attention to the cache file if you give it the
13443# --recheck option to rerun configure.
13444#
13445EOF
13446# The following way of writing the cache mishandles newlines in values,
13447# but we know of no workaround that is simple, portable, and efficient.
13448# So, don't put newlines in cache variables' values.
13449# Ultrix sh set writes to stderr and can't be redirected directly,
13450# and sets the high bit in the cache file unless we assign to the vars.
13451(set) 2>&1 |
13452 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13453 *ac_space=\ *)
13454 # `set' does not quote correctly, so add quotes (double-quote substitution
13455 # turns \\\\ into \\, and sed turns \\ into \).
13456 sed -n \
13457 -e "s/'/'\\\\''/g" \
13458 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13459 ;;
13460 *)
13461 # `set' quotes correctly as required by POSIX, so do not add quotes.
13462 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13463 ;;
13464 esac >> confcache
13465if cmp -s $cache_file confcache; then
13466 :
13467else
13468 if test -w $cache_file; then
13469 echo "updating cache $cache_file"
13470 cat confcache > $cache_file
13471 else
13472 echo "not updating unwritable cache $cache_file"
13473 fi
13474fi
13475rm -f confcache
13476
13477trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13478
13479test "x$prefix" = xNONE && prefix=$ac_default_prefix
13480# Let make expand exec_prefix.
13481test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13482
13483# Any assignment to VPATH causes Sun make to only execute
13484# the first set of double-colon rules, so remove it if not needed.
13485# If there is a colon in the path, we need to keep it.
13486if test "x$srcdir" = x.; then
13487 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13488fi
13489
13490trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13491
13492DEFS=-DHAVE_CONFIG_H
13493
13494# Without the "./", some shells look in PATH for config.status.
13495: ${CONFIG_STATUS=./config.status}
13496
13497echo creating $CONFIG_STATUS
13498rm -f $CONFIG_STATUS
13499cat > $CONFIG_STATUS <<EOF
13500#! /bin/sh
13501# Generated automatically by configure.
13502# Run this file to recreate the current configuration.
13503# This directory was configured as follows,
13504# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13505#
13506# $0 $ac_configure_args
13507#
13508# Compiler output produced by configure, useful for debugging
13509# configure, is in ./config.log if it exists.
13510
13511ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13512for ac_option
13513do
13514 case "\$ac_option" in
13515 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13516 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13517 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13518 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
00cf1208 13519 echo "$CONFIG_STATUS generated by autoconf version 2.14"
10f2d63a
VZ
13520 exit 0 ;;
13521 -help | --help | --hel | --he | --h)
13522 echo "\$ac_cs_usage"; exit 0 ;;
13523 *) echo "\$ac_cs_usage"; exit 1 ;;
13524 esac
13525done
13526
13527ac_given_srcdir=$srcdir
13528ac_given_INSTALL="$INSTALL"
13529
13530trap 'rm -fr `echo "
13531 wx-config
13532 src/make.env
13533 src/makeprog.env
13534 src/makelib.env
13535 Makefile
10f2d63a
VZ
13536 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13537EOF
13538cat >> $CONFIG_STATUS <<EOF
13539
13540# Protect against being on the right side of a sed subst in config.status.
13541sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13542 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13543$ac_vpsub
13544$extrasub
13545s%@SHELL@%$SHELL%g
13546s%@CFLAGS@%$CFLAGS%g
13547s%@CPPFLAGS@%$CPPFLAGS%g
13548s%@CXXFLAGS@%$CXXFLAGS%g
13549s%@FFLAGS@%$FFLAGS%g
13550s%@DEFS@%$DEFS%g
13551s%@LDFLAGS@%$LDFLAGS%g
13552s%@LIBS@%$LIBS%g
13553s%@exec_prefix@%$exec_prefix%g
13554s%@prefix@%$prefix%g
13555s%@program_transform_name@%$program_transform_name%g
13556s%@bindir@%$bindir%g
13557s%@sbindir@%$sbindir%g
13558s%@libexecdir@%$libexecdir%g
13559s%@datadir@%$datadir%g
13560s%@sysconfdir@%$sysconfdir%g
13561s%@sharedstatedir@%$sharedstatedir%g
13562s%@localstatedir@%$localstatedir%g
13563s%@libdir@%$libdir%g
13564s%@includedir@%$includedir%g
13565s%@oldincludedir@%$oldincludedir%g
13566s%@infodir@%$infodir%g
13567s%@mandir@%$mandir%g
7c66a493
VZ
13568s%@host@%$host%g
13569s%@host_alias@%$host_alias%g
13570s%@host_cpu@%$host_cpu%g
13571s%@host_vendor@%$host_vendor%g
13572s%@host_os@%$host_os%g
13573s%@target@%$target%g
13574s%@target_alias@%$target_alias%g
13575s%@target_cpu@%$target_cpu%g
13576s%@target_vendor@%$target_vendor%g
13577s%@target_os@%$target_os%g
13578s%@build@%$build%g
13579s%@build_alias@%$build_alias%g
13580s%@build_cpu@%$build_cpu%g
13581s%@build_vendor@%$build_vendor%g
13582s%@build_os@%$build_os%g
10f2d63a
VZ
13583s%@CC@%$CC%g
13584s%@CPP@%$CPP%g
13585s%@CXX@%$CXX%g
13586s%@CXXCPP@%$CXXCPP%g
13587s%@RANLIB@%$RANLIB%g
13588s%@AR@%$AR%g
13589s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13590s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13591s%@INSTALL_DATA@%$INSTALL_DATA%g
13592s%@STRIP@%$STRIP%g
13593s%@YACC@%$YACC%g
13594s%@LEX@%$LEX%g
13595s%@LEXLIB@%$LEXLIB%g
13596s%@LN_S@%$LN_S%g
13597s%@GTK_CONFIG@%$GTK_CONFIG%g
13598s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13599s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
13600s%@X_CFLAGS@%$X_CFLAGS%g
13601s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13602s%@X_LIBS@%$X_LIBS%g
13603s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
13604s%@LEX_STEM@%$LEX_STEM%g
13605s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
13606s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13607s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13608s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13609s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13610s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13611s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13612s%@WX_LIBRARY@%$WX_LIBRARY%g
13613s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13614s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13615s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13616s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13617s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13618s%@WX_ALL@%$WX_ALL%g
13619s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13620s%@SHARED_LD@%$SHARED_LD%g
13621s%@PIC_FLAG@%$PIC_FLAG%g
13622s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 13623s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 13624s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
10f2d63a 13625s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
13626s%@USE_GUI@%$USE_GUI%g
13627s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
13628s%@TOOLKIT@%$TOOLKIT%g
13629s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13630s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13631s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13632s%@GUIHEADERS@%$GUIHEADERS%g
13633s%@GUIOBJS@%$GUIOBJS%g
13634s%@COMMONOBJS@%$COMMONOBJS%g
13635s%@GENERICOBJS@%$GENERICOBJS%g
13636s%@GUIDEPS@%$GUIDEPS%g
13637s%@COMMONDEPS@%$COMMONDEPS%g
13638s%@GENERICDEPS@%$GENERICDEPS%g
13639s%@IODBCOBJS@%$IODBCOBJS%g
13640s%@UNIXOBJS@%$UNIXOBJS%g
13641s%@UNIXDEPS@%$UNIXDEPS%g
13642s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13643s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 13644s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
13645s%@PORT_FILES@%$PORT_FILES%g
13646s%@DISTDIR@%$DISTDIR%g
13647s%@RPM_SPEC@%$RPM_SPEC%g
13648s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
13649s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13650s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13651s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13652s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13653s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13654s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13655s%@EXTRA_LIBS@%$EXTRA_LIBS%g
b12915c1 13656s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a
VZ
13657s%@LD_LIBS@%$LD_LIBS%g
13658s%@SET_MAKE@%$SET_MAKE%g
13659s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
2224580a 13660s%@subdirs@%$subdirs%g
10f2d63a
VZ
13661
13662CEOF
13663EOF
13664
13665cat >> $CONFIG_STATUS <<\EOF
13666
13667# Split the substitutions into bite-sized pieces for seds with
13668# small command number limits, like on Digital OSF/1 and HP-UX.
13669ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13670ac_file=1 # Number of current file.
13671ac_beg=1 # First line for current file.
13672ac_end=$ac_max_sed_cmds # Line after last line for current file.
13673ac_more_lines=:
13674ac_sed_cmds=""
13675while $ac_more_lines; do
13676 if test $ac_beg -gt 1; then
13677 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13678 else
13679 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13680 fi
13681 if test ! -s conftest.s$ac_file; then
13682 ac_more_lines=false
13683 rm -f conftest.s$ac_file
13684 else
13685 if test -z "$ac_sed_cmds"; then
13686 ac_sed_cmds="sed -f conftest.s$ac_file"
13687 else
13688 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13689 fi
13690 ac_file=`expr $ac_file + 1`
13691 ac_beg=$ac_end
13692 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13693 fi
13694done
13695if test -z "$ac_sed_cmds"; then
13696 ac_sed_cmds=cat
13697fi
13698EOF
13699
13700cat >> $CONFIG_STATUS <<EOF
13701
13702CONFIG_FILES=\${CONFIG_FILES-"wx-config
13703 src/make.env
13704 src/makeprog.env
13705 src/makelib.env
13706 Makefile
10f2d63a
VZ
13707 "}
13708EOF
13709cat >> $CONFIG_STATUS <<\EOF
13710for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13711 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13712 case "$ac_file" in
13713 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13714 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13715 *) ac_file_in="${ac_file}.in" ;;
13716 esac
13717
13718 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13719
13720 # Remove last slash and all that follows it. Not all systems have dirname.
13721 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13722 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13723 # The file is in a subdirectory.
13724 test ! -d "$ac_dir" && mkdir "$ac_dir"
13725 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13726 # A "../" for each directory in $ac_dir_suffix.
13727 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13728 else
13729 ac_dir_suffix= ac_dots=
13730 fi
13731
13732 case "$ac_given_srcdir" in
13733 .) srcdir=.
13734 if test -z "$ac_dots"; then top_srcdir=.
13735 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13736 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13737 *) # Relative path.
13738 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13739 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13740 esac
13741
13742 case "$ac_given_INSTALL" in
13743 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13744 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13745 esac
13746
13747 echo creating "$ac_file"
13748 rm -f "$ac_file"
13749 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13750 case "$ac_file" in
13751 *Makefile*) ac_comsub="1i\\
13752# $configure_input" ;;
13753 *) ac_comsub= ;;
13754 esac
13755
13756 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13757 sed -e "$ac_comsub
13758s%@configure_input@%$configure_input%g
13759s%@srcdir@%$srcdir%g
13760s%@top_srcdir@%$top_srcdir%g
13761s%@INSTALL@%$INSTALL%g
13762" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13763fi; done
13764rm -f conftest.s*
13765
13766# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13767# NAME is the cpp macro being defined and VALUE is the value it is being given.
13768#
13769# ac_d sets the value in "#define NAME VALUE" lines.
13770ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13771ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13772ac_dC='\3'
13773ac_dD='%g'
13774# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13775ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13776ac_uB='\([ ]\)%\1#\2define\3'
13777ac_uC=' '
13778ac_uD='\4%g'
13779# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13780ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13781ac_eB='$%\1#\2define\3'
13782ac_eC=' '
13783ac_eD='%g'
13784
13785if test "${CONFIG_HEADERS+set}" != set; then
13786EOF
13787cat >> $CONFIG_STATUS <<EOF
13788 CONFIG_HEADERS="setup.h:setup.h.in"
13789EOF
13790cat >> $CONFIG_STATUS <<\EOF
13791fi
13792for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13793 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13794 case "$ac_file" in
13795 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13796 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13797 *) ac_file_in="${ac_file}.in" ;;
13798 esac
13799
13800 echo creating $ac_file
13801
13802 rm -f conftest.frag conftest.in conftest.out
13803 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13804 cat $ac_file_inputs > conftest.in
13805
13806EOF
13807
13808# Transform confdefs.h into a sed script conftest.vals that substitutes
13809# the proper values into config.h.in to produce config.h. And first:
13810# Protect against being on the right side of a sed subst in config.status.
13811# Protect against being in an unquoted here document in config.status.
13812rm -f conftest.vals
13813cat > conftest.hdr <<\EOF
13814s/[\\&%]/\\&/g
13815s%[\\$`]%\\&%g
13816s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13817s%ac_d%ac_u%gp
13818s%ac_u%ac_e%gp
13819EOF
13820sed -n -f conftest.hdr confdefs.h > conftest.vals
13821rm -f conftest.hdr
13822
13823# This sed command replaces #undef with comments. This is necessary, for
13824# example, in the case of _POSIX_SOURCE, which is predefined and required
13825# on some systems where configure will not decide to define it.
13826cat >> conftest.vals <<\EOF
13827s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13828EOF
13829
13830# Break up conftest.vals because some shells have a limit on
13831# the size of here documents, and old seds have small limits too.
13832
13833rm -f conftest.tail
13834while :
13835do
13836 ac_lines=`grep -c . conftest.vals`
13837 # grep -c gives empty output for an empty file on some AIX systems.
13838 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13839 # Write a limited-size here document to conftest.frag.
13840 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13841 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13842 echo 'CEOF
13843 sed -f conftest.frag conftest.in > conftest.out
13844 rm -f conftest.in
13845 mv conftest.out conftest.in
13846' >> $CONFIG_STATUS
13847 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13848 rm -f conftest.vals
13849 mv conftest.tail conftest.vals
13850done
13851rm -f conftest.vals
13852
13853cat >> $CONFIG_STATUS <<\EOF
13854 rm -f conftest.frag conftest.h
13855 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13856 cat conftest.in >> conftest.h
13857 rm -f conftest.in
13858 if cmp -s $ac_file conftest.h 2>/dev/null; then
13859 echo "$ac_file is unchanged"
13860 rm -f conftest.h
13861 else
13862 # Remove last slash and all that follows it. Not all systems have dirname.
13863 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13864 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13865 # The file is in a subdirectory.
13866 test ! -d "$ac_dir" && mkdir "$ac_dir"
13867 fi
13868 rm -f $ac_file
13869 mv conftest.h $ac_file
13870 fi
13871fi; done
13872
13873EOF
13874cat >> $CONFIG_STATUS <<EOF
13875
13876 TOOLKIT_DIR="${TOOLKIT_DIR}"
13877
13878
13879EOF
13880cat >> $CONFIG_STATUS <<\EOF
13881
13882 chmod +x wx-config
00cf1208
RR
13883
13884
13885 if test ! -d lib; then
13886 mkdir lib
13887 fi
13888 if test ! -d lib/wx; then
13889 mkdir lib/wx
13890 fi
13891 if test ! -d lib/wx/include; then
13892 mkdir lib/wx/include
13893 fi
13894 if test ! -d lib/wx/include/wx; then
13895 mkdir lib/wx/include/wx
13896 fi
13897 if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then
13898 mkdir lib/wx/include/wx/${TOOLKIT_DIR}
13899 fi
13900 if test -f setup.h; then
13901 cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h
13902 fi
13903
13904
10f2d63a
VZ
13905 if test ! -d include; then
13906 mkdir include
13907 fi
13908 if test ! -d include/wx; then
13909 mkdir include/wx
13910 fi
13911 if test ! -d include/wx/${TOOLKIT_DIR}; then
13912 mkdir include/wx/${TOOLKIT_DIR}
13913 fi
afc31813
VZ
13914 if test -f setup.h; then
13915 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13916 fi
00cf1208 13917
10f2d63a
VZ
13918
13919exit 0
13920EOF
13921chmod +x $CONFIG_STATUS
13922rm -fr confdefs* $ac_clean_files
13923test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13924
2224580a
VZ
13925if test "$no_recursion" != yes; then
13926
13927 # Remove --cache-file and --srcdir arguments so they do not pile up.
13928 ac_sub_configure_args=
13929 ac_prev=
13930 for ac_arg in $ac_configure_args; do
13931 if test -n "$ac_prev"; then
13932 ac_prev=
13933 continue
13934 fi
13935 case "$ac_arg" in
13936 -cache-file | --cache-file | --cache-fil | --cache-fi \
13937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13938 ac_prev=cache_file ;;
13939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13941 ;;
13942 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13943 ac_prev=srcdir ;;
13944 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13945 ;;
13946 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
13947 esac
13948 done
13949
13950 for ac_config_dir in demos samples utils; do
13951
13952 # Do not complain, so a configure script can configure whichever
13953 # parts of a large source tree are present.
13954 if test ! -d $srcdir/$ac_config_dir; then
13955 continue
13956 fi
13957
13958 echo configuring in $ac_config_dir
13959
13960 case "$srcdir" in
13961 .) ;;
13962 *)
13963 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
13964 else
13965 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
13966 fi
13967 ;;
13968 esac
13969
13970 ac_popdir=`pwd`
13971 cd $ac_config_dir
13972
13973 # A "../" for each directory in /$ac_config_dir.
13974 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
13975
13976 case "$srcdir" in
13977 .) # No --srcdir option. We are building in place.
13978 ac_sub_srcdir=$srcdir ;;
13979 /*) # Absolute path.
13980 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
13981 *) # Relative path.
13982 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
13983 esac
13984
13985 # Check for guested configure; otherwise get Cygnus style configure.
13986 if test -f $ac_sub_srcdir/configure; then
13987 ac_sub_configure=$ac_sub_srcdir/configure
13988 elif test -f $ac_sub_srcdir/configure.in; then
13989 ac_sub_configure=$ac_configure
13990 else
13991 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
13992 ac_sub_configure=
13993 fi
13994
13995 # The recursion is here.
13996 if test -n "$ac_sub_configure"; then
13997
13998 # Make the cache file name correct relative to the subdirectory.
13999 case "$cache_file" in
14000 /*) ac_sub_cache_file=$cache_file ;;
14001 *) # Relative path.
14002 ac_sub_cache_file="$ac_dots$cache_file" ;;
14003 esac
14004 case "$ac_given_INSTALL" in
14005 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14006 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14007 esac
14008
14009 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
14010 # The eval makes quoting arguments work.
14011 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
14012 then :
14013 else
14014 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
14015 fi
14016 fi
14017
14018 cd $ac_popdir
14019 done
14020fi
14021
10f2d63a 14022