]> git.saurik.com Git - wxWidgets.git/blame - configure
Typos in docs.
[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.
caa2c79b 41# Generated automatically using autoconf version 2.13
10f2d63a
VZ
42# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
43#
44# This configure script is free software; the Free Software Foundation
45# gives unlimited permission to copy, distribute and modify it.
46
47# Defaults:
48ac_help=
49ac_default_prefix=/usr/local
50# Any additions from configure.in:
51ac_help="$ac_help
52--enable-gui use GUI classes"
53ac_help="$ac_help
54 --with-gtk use GTK+"
55ac_help="$ac_help
56 --with-motif use Motif/Lesstif"
57ac_help="$ac_help
58 --with-wine use WINE"
59ac_help="$ac_help
60 --with-cygwin use Cygwin for MS-Windows"
61ac_help="$ac_help
62 --with-mingw use GCC Minimal MS-Windows"
e07802fc
VZ
63ac_help="$ac_help
64 --with-pm use OS/2 Presentation Manager"
10f2d63a
VZ
65ac_help="$ac_help
66 --with-gtk-prefix=PFX Prefix where GTK is installed"
67ac_help="$ac_help
68 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
69ac_help="$ac_help
10f2d63a
VZ
70--with-libpng use libpng (PNG image format)"
71ac_help="$ac_help
72--with-libjpeg use libjpeg (JPEG file format)"
73ac_help="$ac_help
c7a2bf27
RR
74--with-libtiff use libtiff (TIFF file format)"
75ac_help="$ac_help
10f2d63a
VZ
76--with-opengl use OpenGL (or Mesa)"
77ac_help="$ac_help
b12915c1
VZ
78--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
79ac_help="$ac_help
80--with-zlib use zlib for LZW compression"
81ac_help="$ac_help
10f2d63a
VZ
82--with-odbc use the IODBC and wxODBC classes"
83ac_help="$ac_help
84--enable-shared create shared library code"
85ac_help="$ac_help
86--enable-optimise create optimised code"
87ac_help="$ac_help
88--enable-debug same as debug_flag and debug_info"
89ac_help="$ac_help
90--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
91ac_help="$ac_help
92--enable-debug_info create code with debugging information"
93ac_help="$ac_help
94--enable-debug_gdb create code with extra GDB debugging information"
95ac_help="$ac_help
96--enable-debug_cntxt use wxDebugContext"
97ac_help="$ac_help
98--enable-mem_tracing create code with memory tracing"
99ac_help="$ac_help
100--enable-profile create code with profiling information"
101ac_help="$ac_help
102--enable-no_rtti create code without RTTI information"
103ac_help="$ac_help
104--enable-no_exceptions create code without exceptions information"
105ac_help="$ac_help
106--enable-permissive compile code disregarding strict ANSI"
107ac_help="$ac_help
108--enable-no_deps create code without dependency information"
109ac_help="$ac_help
110--enable-intl use internationalization system"
111ac_help="$ac_help
112--enable-config use wxConfig (and derived) classes"
113ac_help="$ac_help
114--enable-sockets use socket/network classes"
115ac_help="$ac_help
116--enable-dialupman use dialup network classes"
117ac_help="$ac_help
118--enable-ipc use interprocess communication (wxSocket etc.)"
119ac_help="$ac_help
120--enable-apple_ieee use the Apple IEEE codec"
121ac_help="$ac_help
122--enable-timedate use date/time classes"
123ac_help="$ac_help
124--enable-wave use wxWave class"
125ac_help="$ac_help
126--enable-fraction use wxFraction class"
127ac_help="$ac_help
128--enable-dynlib use wxLibrary class for DLL loading"
129ac_help="$ac_help
130--enable-longlong use wxLongLong class"
131ac_help="$ac_help
132--enable-log use logging system"
133ac_help="$ac_help
134--enable-streams use wxStream etc classes"
135ac_help="$ac_help
136--enable-file use wxFile classes"
137ac_help="$ac_help
138--enable-textfile use wxTextFile classes"
139ac_help="$ac_help
140--enable-unicode compile wxString with Unicode support"
141ac_help="$ac_help
142--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
143ac_help="$ac_help
144--enable-wxprintfv use wxWindows implementation of vprintf()"
145ac_help="$ac_help
146--enable-joystick compile in joystick support (Linux only)"
147ac_help="$ac_help
148--enable-std_iostreams use standard C++ stream classes"
149ac_help="$ac_help
150--enable-fs_inet use virtual HTTP/FTP filesystems"
151ac_help="$ac_help
152--enable-fs_zip use virtual ZIP filesystems"
153ac_help="$ac_help
154--enable-zipstream use wxZipInputStream"
155ac_help="$ac_help
156--enable-threads use threads"
157ac_help="$ac_help
158--enable-serial use class serialization"
159ac_help="$ac_help
160--enable-docview use document view architecture"
161ac_help="$ac_help
162--enable-help use help (using external browser at present)"
163ac_help="$ac_help
164--enable-constraints use layout-constraints system"
165ac_help="$ac_help
166--enable-printarch use printing architecture"
167ac_help="$ac_help
168--enable-mdi use multiple document interface architecture"
169ac_help="$ac_help
170--enable-postscript use wxPostscriptDC device context (default for gtk+)"
171ac_help="$ac_help
172--enable-prologio use Prolog IO library"
173ac_help="$ac_help
174--enable-resources use wxWindows resources"
175ac_help="$ac_help
176--enable-xresources use X resources for save (default for gtk+)"
177ac_help="$ac_help
178--enable-clipboard use wxClipboard classes"
179ac_help="$ac_help
180--enable-dnd use Drag'n'Drop classes"
181ac_help="$ac_help
182--enable-wxtree make wxTree library"
183ac_help="$ac_help
184--enable-controls use all usual controls"
185ac_help="$ac_help
186--enable-accel use accelerators"
187ac_help="$ac_help
188--enable-caret use wxCaret class"
189ac_help="$ac_help
190--enable-bmpbutton use wxBitmapButton class"
191ac_help="$ac_help
192--enable-checkbox use wxCheckBox class"
193ac_help="$ac_help
194--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
195ac_help="$ac_help
196--enable-choice use wxChoice class"
197ac_help="$ac_help
198--enable-combobox use wxComboBox classes"
199ac_help="$ac_help
200--enable-gauge use wxGauge class"
201ac_help="$ac_help
202--enable-grid use wxGrid class"
203ac_help="$ac_help
204--enable-newgrid use new wxGrid class"
205ac_help="$ac_help
206--enable-imaglist use wxImageList class"
207ac_help="$ac_help
208--enable-listbox use wxListBox class"
209ac_help="$ac_help
210--enable-listctrl use wxListCtrl class"
211ac_help="$ac_help
212--enable-notebook use wxNotebook class"
213ac_help="$ac_help
214--enable-radiobox use wxRadioBox class"
215ac_help="$ac_help
216--enable-radiobtn use wxRadioButton class"
217ac_help="$ac_help
218--enable-sash use wxSashWindow class"
219ac_help="$ac_help
220--enable-scrollbar use wxScrollBar class and scrollable windows"
221ac_help="$ac_help
222--enable-slider use wxSlider class"
223ac_help="$ac_help
224--enable-spinbtn use wxSpinButton class"
225ac_help="$ac_help
56cfaa52
RR
226--enable-spinctrl use wxSpinCtrl class"
227ac_help="$ac_help
10f2d63a
VZ
228--enable-splitter use wxSplitterWindow class"
229ac_help="$ac_help
230--enable-statbmp use wxStaticBitmap class"
231ac_help="$ac_help
232--enable-statbox use wxStaticBox class"
233ac_help="$ac_help
234--enable-statline use wxStaticLine class"
235ac_help="$ac_help
236--enable-statusbar use wxStatusBar class"
237ac_help="$ac_help
238--enable-tabdialog use wxTabControl class"
239ac_help="$ac_help
240--enable-toolbar use wxToolBar class"
241ac_help="$ac_help
360d6699
VZ
242--enable-tbarnative use native wxToolBar class"
243ac_help="$ac_help
244--enable-tbarsmpl use wxToolBarSimple class"
245ac_help="$ac_help
10f2d63a
VZ
246--enable-treectrl use wxTreeCtrl class"
247ac_help="$ac_help
248--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
249ac_help="$ac_help
250--enable-dirdlg use wxDirDialog"
251ac_help="$ac_help
252--enable-textdlg use wxTextDialog"
253ac_help="$ac_help
254--enable-tipdlg use startup tips"
255ac_help="$ac_help
256--enable-progressdlg use wxProgressDialog"
257ac_help="$ac_help
258--enable-miniframe use wxMiniFrame class"
259ac_help="$ac_help
260--enable-html use wxHTML sub-library"
261ac_help="$ac_help
262--enable-tooltips use wxToolTip class"
263ac_help="$ac_help
264--enable-splines use spline drawing code"
265ac_help="$ac_help
266--enable-validators use wxValidator and derived classes"
267ac_help="$ac_help
268--enable-busyinfo use wxBusyInfo"
269ac_help="$ac_help
270--enable-gif use gif images (GIF file format)"
271ac_help="$ac_help
272--enable-pcx use pcx images (PCX file format)"
273ac_help="$ac_help
274--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
275ac_help="$ac_help
276 --with-x use the X Window System"
10f2d63a
VZ
277
278# Initialize some variables set by options.
279# The variables have the same names as the options, with
280# dashes changed to underlines.
281build=NONE
282cache_file=./config.cache
283exec_prefix=NONE
284host=NONE
285no_create=
286nonopt=NONE
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
295target=NONE
296verbose=
297x_includes=NONE
298x_libraries=NONE
299bindir='${exec_prefix}/bin'
300sbindir='${exec_prefix}/sbin'
301libexecdir='${exec_prefix}/libexec'
302datadir='${prefix}/share'
303sysconfdir='${prefix}/etc'
304sharedstatedir='${prefix}/com'
305localstatedir='${prefix}/var'
306libdir='${exec_prefix}/lib'
307includedir='${prefix}/include'
308oldincludedir='/usr/include'
309infodir='${prefix}/info'
310mandir='${prefix}/man'
311
312# Initialize some other variables.
313subdirs=
314MFLAGS= MAKEFLAGS=
315SHELL=${CONFIG_SHELL-/bin/sh}
316# Maximum number of lines to put in a shell here document.
317ac_max_here_lines=12
318
319ac_prev=
320for ac_option
321do
322
323 # If the previous option needs an argument, assign it.
324 if test -n "$ac_prev"; then
325 eval "$ac_prev=\$ac_option"
326 ac_prev=
327 continue
328 fi
329
330 case "$ac_option" in
331 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
332 *) ac_optarg= ;;
333 esac
334
335 # Accept the important Cygnus configure options, so we can diagnose typos.
336
337 case "$ac_option" in
338
339 -bindir | --bindir | --bindi | --bind | --bin | --bi)
340 ac_prev=bindir ;;
341 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
342 bindir="$ac_optarg" ;;
343
344 -build | --build | --buil | --bui | --bu)
345 ac_prev=build ;;
346 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
347 build="$ac_optarg" ;;
348
349 -cache-file | --cache-file | --cache-fil | --cache-fi \
350 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
351 ac_prev=cache_file ;;
352 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
353 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
354 cache_file="$ac_optarg" ;;
355
356 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
357 ac_prev=datadir ;;
358 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
359 | --da=*)
360 datadir="$ac_optarg" ;;
361
362 -disable-* | --disable-*)
363 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
367 fi
368 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
369 eval "enable_${ac_feature}=no" ;;
370
371 -enable-* | --enable-*)
372 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
376 fi
377 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
378 case "$ac_option" in
379 *=*) ;;
380 *) ac_optarg=yes ;;
381 esac
382 eval "enable_${ac_feature}='$ac_optarg'" ;;
383
384 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
385 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
386 | --exec | --exe | --ex)
387 ac_prev=exec_prefix ;;
388 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
389 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
390 | --exec=* | --exe=* | --ex=*)
391 exec_prefix="$ac_optarg" ;;
392
393 -gas | --gas | --ga | --g)
394 # Obsolete; use --with-gas.
395 with_gas=yes ;;
396
397 -help | --help | --hel | --he)
398 # Omit some internal or obsolete options to make the list less imposing.
399 # This message is too long to be a string in the A/UX 3.1 sh.
400 cat << EOF
401Usage: configure [options] [host]
402Options: [defaults in brackets after descriptions]
403Configuration:
404 --cache-file=FILE cache test results in FILE
405 --help print this message
406 --no-create do not create output files
407 --quiet, --silent do not print \`checking...' messages
408 --version print the version of autoconf that created configure
409Directory and file names:
410 --prefix=PREFIX install architecture-independent files in PREFIX
411 [$ac_default_prefix]
412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
413 [same as prefix]
414 --bindir=DIR user executables in DIR [EPREFIX/bin]
415 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
416 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
417 --datadir=DIR read-only architecture-independent data in DIR
418 [PREFIX/share]
419 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
420 --sharedstatedir=DIR modifiable architecture-independent data in DIR
421 [PREFIX/com]
422 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
423 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
424 --includedir=DIR C header files in DIR [PREFIX/include]
425 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
426 --infodir=DIR info documentation in DIR [PREFIX/info]
427 --mandir=DIR man documentation in DIR [PREFIX/man]
428 --srcdir=DIR find the sources in DIR [configure dir or ..]
429 --program-prefix=PREFIX prepend PREFIX to installed program names
430 --program-suffix=SUFFIX append SUFFIX to installed program names
431 --program-transform-name=PROGRAM
432 run sed PROGRAM on installed program names
433EOF
434 cat << EOF
435Host type:
436 --build=BUILD configure for building on BUILD [BUILD=HOST]
437 --host=HOST configure for HOST [guessed]
438 --target=TARGET configure for TARGET [TARGET=HOST]
439Features and packages:
440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
444 --x-includes=DIR X include files are in DIR
445 --x-libraries=DIR X library files are in DIR
446EOF
447 if test -n "$ac_help"; then
448 echo "--enable and --with options recognized:$ac_help"
449 fi
450 exit 0 ;;
451
452 -host | --host | --hos | --ho)
453 ac_prev=host ;;
454 -host=* | --host=* | --hos=* | --ho=*)
455 host="$ac_optarg" ;;
456
457 -includedir | --includedir | --includedi | --included | --include \
458 | --includ | --inclu | --incl | --inc)
459 ac_prev=includedir ;;
460 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
461 | --includ=* | --inclu=* | --incl=* | --inc=*)
462 includedir="$ac_optarg" ;;
463
464 -infodir | --infodir | --infodi | --infod | --info | --inf)
465 ac_prev=infodir ;;
466 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
467 infodir="$ac_optarg" ;;
468
469 -libdir | --libdir | --libdi | --libd)
470 ac_prev=libdir ;;
471 -libdir=* | --libdir=* | --libdi=* | --libd=*)
472 libdir="$ac_optarg" ;;
473
474 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
475 | --libexe | --libex | --libe)
476 ac_prev=libexecdir ;;
477 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
478 | --libexe=* | --libex=* | --libe=*)
479 libexecdir="$ac_optarg" ;;
480
481 -localstatedir | --localstatedir | --localstatedi | --localstated \
482 | --localstate | --localstat | --localsta | --localst \
483 | --locals | --local | --loca | --loc | --lo)
484 ac_prev=localstatedir ;;
485 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
486 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
487 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
488 localstatedir="$ac_optarg" ;;
489
490 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
491 ac_prev=mandir ;;
492 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
493 mandir="$ac_optarg" ;;
494
495 -nfp | --nfp | --nf)
496 # Obsolete; use --without-fp.
497 with_fp=no ;;
498
499 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
500 | --no-cr | --no-c)
501 no_create=yes ;;
502
503 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
504 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
505 no_recursion=yes ;;
506
507 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
508 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
509 | --oldin | --oldi | --old | --ol | --o)
510 ac_prev=oldincludedir ;;
511 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
512 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
513 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
514 oldincludedir="$ac_optarg" ;;
515
516 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
517 ac_prev=prefix ;;
518 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
519 prefix="$ac_optarg" ;;
520
521 -program-prefix | --program-prefix | --program-prefi | --program-pref \
522 | --program-pre | --program-pr | --program-p)
523 ac_prev=program_prefix ;;
524 -program-prefix=* | --program-prefix=* | --program-prefi=* \
525 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
526 program_prefix="$ac_optarg" ;;
527
528 -program-suffix | --program-suffix | --program-suffi | --program-suff \
529 | --program-suf | --program-su | --program-s)
530 ac_prev=program_suffix ;;
531 -program-suffix=* | --program-suffix=* | --program-suffi=* \
532 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
533 program_suffix="$ac_optarg" ;;
534
535 -program-transform-name | --program-transform-name \
536 | --program-transform-nam | --program-transform-na \
537 | --program-transform-n | --program-transform- \
538 | --program-transform | --program-transfor \
539 | --program-transfo | --program-transf \
540 | --program-trans | --program-tran \
541 | --progr-tra | --program-tr | --program-t)
542 ac_prev=program_transform_name ;;
543 -program-transform-name=* | --program-transform-name=* \
544 | --program-transform-nam=* | --program-transform-na=* \
545 | --program-transform-n=* | --program-transform-=* \
546 | --program-transform=* | --program-transfor=* \
547 | --program-transfo=* | --program-transf=* \
548 | --program-trans=* | --program-tran=* \
549 | --progr-tra=* | --program-tr=* | --program-t=*)
550 program_transform_name="$ac_optarg" ;;
551
552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
553 | -silent | --silent | --silen | --sile | --sil)
554 silent=yes ;;
555
556 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
557 ac_prev=sbindir ;;
558 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
559 | --sbi=* | --sb=*)
560 sbindir="$ac_optarg" ;;
561
562 -sharedstatedir | --sharedstatedir | --sharedstatedi \
563 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
564 | --sharedst | --shareds | --shared | --share | --shar \
565 | --sha | --sh)
566 ac_prev=sharedstatedir ;;
567 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
568 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
569 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
570 | --sha=* | --sh=*)
571 sharedstatedir="$ac_optarg" ;;
572
573 -site | --site | --sit)
574 ac_prev=site ;;
575 -site=* | --site=* | --sit=*)
576 site="$ac_optarg" ;;
577
578 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
579 ac_prev=srcdir ;;
580 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
581 srcdir="$ac_optarg" ;;
582
583 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
584 | --syscon | --sysco | --sysc | --sys | --sy)
585 ac_prev=sysconfdir ;;
586 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
587 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
588 sysconfdir="$ac_optarg" ;;
589
590 -target | --target | --targe | --targ | --tar | --ta | --t)
591 ac_prev=target ;;
592 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
593 target="$ac_optarg" ;;
594
595 -v | -verbose | --verbose | --verbos | --verbo | --verb)
596 verbose=yes ;;
597
598 -version | --version | --versio | --versi | --vers)
caa2c79b 599 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
600 exit 0 ;;
601
602 -with-* | --with-*)
603 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
604 # Reject names that are not valid shell variable names.
605 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
606 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
607 fi
608 ac_package=`echo $ac_package| sed 's/-/_/g'`
609 case "$ac_option" in
610 *=*) ;;
611 *) ac_optarg=yes ;;
612 esac
613 eval "with_${ac_package}='$ac_optarg'" ;;
614
615 -without-* | --without-*)
616 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
617 # Reject names that are not valid shell variable names.
618 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
619 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
620 fi
621 ac_package=`echo $ac_package| sed 's/-/_/g'`
622 eval "with_${ac_package}=no" ;;
623
624 --x)
625 # Obsolete; use --with-x.
626 with_x=yes ;;
627
628 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
629 | --x-incl | --x-inc | --x-in | --x-i)
630 ac_prev=x_includes ;;
631 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
632 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
633 x_includes="$ac_optarg" ;;
634
635 -x-libraries | --x-libraries | --x-librarie | --x-librari \
636 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
637 ac_prev=x_libraries ;;
638 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
639 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
640 x_libraries="$ac_optarg" ;;
641
642 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
643 ;;
644
645 *)
646 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
647 echo "configure: warning: $ac_option: invalid host type" 1>&2
648 fi
649 if test "x$nonopt" != xNONE; then
650 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
651 fi
652 nonopt="$ac_option"
653 ;;
654
655 esac
656done
657
658if test -n "$ac_prev"; then
659 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
660fi
661
662trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
663
664# File descriptor usage:
665# 0 standard input
666# 1 file creation
667# 2 errors and warnings
668# 3 some systems may open it to /dev/tty
669# 4 used on the Kubota Titan
670# 6 checking for... messages and results
671# 5 compiler messages saved in config.log
672if test "$silent" = yes; then
673 exec 6>/dev/null
674else
675 exec 6>&1
676fi
677exec 5>./config.log
678
679echo "\
680This file contains any messages produced by compilers while
681running configure, to aid debugging if configure makes a mistake.
682" 1>&5
683
684# Strip out --no-create and --no-recursion so they do not pile up.
685# Also quote any args containing shell metacharacters.
686ac_configure_args=
687for ac_arg
688do
689 case "$ac_arg" in
690 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
691 | --no-cr | --no-c) ;;
692 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
693 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
694 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
695 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
696 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
697 esac
698done
699
700# NLS nuisances.
701# Only set these to C if already set. These must not be set unconditionally
702# because not all systems understand e.g. LANG=C (notably SCO).
703# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
704# Non-C LC_CTYPE values break the ctype check.
705if test "${LANG+set}" = set; then LANG=C; export LANG; fi
706if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
707if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
708if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
709
710# confdefs.h avoids OS command line length limits that DEFS can exceed.
711rm -rf conftest* confdefs.h
712# AIX cpp loses on an empty file, so make sure it contains at least a newline.
713echo > confdefs.h
714
715# A filename unique to this package, relative to the directory that
716# configure is in, which we can look for to find out if srcdir is correct.
717ac_unique_file=wx-config.in
718
719# Find the source files, if location was not specified.
720if test -z "$srcdir"; then
721 ac_srcdir_defaulted=yes
722 # Try the directory containing this script, then its parent.
723 ac_prog=$0
724 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
725 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
726 srcdir=$ac_confdir
727 if test ! -r $srcdir/$ac_unique_file; then
728 srcdir=..
729 fi
730else
731 ac_srcdir_defaulted=no
732fi
733if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
736 else
737 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
738 fi
739fi
740srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
741
742# Prefer explicitly selected file to automatically selected ones.
743if test -z "$CONFIG_SITE"; then
744 if test "x$prefix" != xNONE; then
745 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
746 else
747 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
748 fi
749fi
750for ac_site_file in $CONFIG_SITE; do
751 if test -r "$ac_site_file"; then
752 echo "loading site script $ac_site_file"
753 . "$ac_site_file"
754 fi
755done
756
757if test -r "$cache_file"; then
758 echo "loading cache $cache_file"
759 . $cache_file
760else
761 echo "creating cache $cache_file"
762 > $cache_file
763fi
764
765ac_ext=c
766# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
767ac_cpp='$CPP $CPPFLAGS'
768ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
769ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
770cross_compiling=$ac_cv_prog_cc_cross
771
772ac_exeext=
773ac_objext=o
774if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
775 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
776 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
777 ac_n= ac_c='
778' ac_t=' '
779 else
780 ac_n=-n ac_c= ac_t=
781 fi
782else
783 ac_n= ac_c='\c' ac_t=
784fi
785
786
787
788ac_aux_dir=
789for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
790 if test -f $ac_dir/install-sh; then
791 ac_aux_dir=$ac_dir
792 ac_install_sh="$ac_aux_dir/install-sh -c"
793 break
794 elif 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 fi
799done
800if test -z "$ac_aux_dir"; then
801 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
802fi
803ac_config_guess=$ac_aux_dir/config.guess
804ac_config_sub=$ac_aux_dir/config.sub
805ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
806
807
808# Do some error checking and defaulting for the host and target type.
809# The inputs are:
810# configure --host=HOST --target=TARGET --build=BUILD NONOPT
811#
812# The rules are:
813# 1. You are not allowed to specify --host, --target, and nonopt at the
814# same time.
815# 2. Host defaults to nonopt.
816# 3. If nonopt is not specified, then host defaults to the current host,
817# as determined by config.guess.
818# 4. Target and build default to nonopt.
819# 5. If nonopt is not specified, then target and build default to host.
820
821# The aliases save the names the user supplied, while $host etc.
822# will get canonicalized.
823case $host---$target---$nonopt in
824NONE---*---* | *---NONE---* | *---*---NONE) ;;
825*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
826esac
827
828
829# Make sure we can run config.sub.
830if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
831else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
832fi
833
834echo $ac_n "checking host system type""... $ac_c" 1>&6
e07802fc 835echo "configure:836: checking host system type" >&5
10f2d63a
VZ
836
837host_alias=$host
838case "$host_alias" in
839NONE)
840 case $nonopt in
841 NONE)
842 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
843 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
844 fi ;;
845 *) host_alias=$nonopt ;;
846 esac ;;
847esac
848
849host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
850host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
851host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
852host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
853echo "$ac_t""$host" 1>&6
854
855echo $ac_n "checking target system type""... $ac_c" 1>&6
e07802fc 856echo "configure:857: checking target system type" >&5
10f2d63a
VZ
857
858target_alias=$target
859case "$target_alias" in
860NONE)
861 case $nonopt in
862 NONE) target_alias=$host_alias ;;
863 *) target_alias=$nonopt ;;
864 esac ;;
865esac
866
867target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
868target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
869target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
870target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
871echo "$ac_t""$target" 1>&6
872
873echo $ac_n "checking build system type""... $ac_c" 1>&6
e07802fc 874echo "configure:875: checking build system type" >&5
10f2d63a
VZ
875
876build_alias=$build
877case "$build_alias" in
878NONE)
879 case $nonopt in
880 NONE) build_alias=$host_alias ;;
881 *) build_alias=$nonopt ;;
882 esac ;;
883esac
884
885build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
886build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
887build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
888build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
889echo "$ac_t""$build" 1>&6
890
891test "$host_alias" != "$target_alias" &&
892 test "$program_prefix$program_suffix$program_transform_name" = \
893 NONENONEs,x,x, &&
894 program_prefix=${target_alias}-
895
896
897
898WX_MAJOR_VERSION_NUMBER=2
899WX_MINOR_VERSION_NUMBER=1
ba0e7d41 900WX_RELEASE_NUMBER=12
10f2d63a
VZ
901
902WX_INTERFACE_AGE=0
903WX_BINARY_AGE=0
904
905WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
906
907WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
908WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
909WX_REVISION=$WX_INTERFACE_AGE
910WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
911
912
913USE_UNIX=1
914USE_WIN32=0
b12915c1
VZ
915USE_BEOS=0
916
10f2d63a
VZ
917USE_LINUX=
918USE_SGI=
919USE_HPUX=
920USE_SYSV=
921USE_SVR4=
922USE_AIX=
923USE_SUN=
924USE_SOLARIS=
925USE_SUNOS=
926USE_ALPHA=
927USE_OSF=
928USE_BSD=
929USE_FREEBSD=
930USE_VMS=
931USE_ULTRIX=
932USE_CYGWIN=
933USE_MINGW=
934USE_DATA_GENERAL=
935
ab9b9eab
VZ
936NEEDS_D_REENTRANT_FOR_R_FUNCS=0
937
e07802fc 938ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
939
940DEFAULT_wxUSE_GTK=0
941DEFAULT_wxUSE_MOTIF=0
942DEFAULT_wxUSE_MSW=0
943DEFAULT_wxUSE_WINE=0
e07802fc 944DEFAULT_wxUSE_PM=0
10f2d63a
VZ
945
946DEFAULT_DEFAULT_wxUSE_GTK=0
947DEFAULT_DEFAULT_wxUSE_MOTIF=0
948DEFAULT_DEFAULT_wxUSE_MSW=0
949DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 950DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a
VZ
951
952case "${host}" in
953 *-hp-hpux* )
954 USE_HPUX=1
955 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 956 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
957 cat >> confdefs.h <<\EOF
958#define __HPUX__ 1
959EOF
960
961 ;;
962 *-*-linux* )
963 USE_LINUX=1
964 cat >> confdefs.h <<\EOF
965#define __LINUX__ 1
966EOF
967
968 TMP=`uname -m`
969 if test "x$TMP" = "xalpha"; then
970 USE_ALPHA=1
971 cat >> confdefs.h <<\EOF
972#define __ALPHA__ 1
973EOF
974
975 fi
976 DEFAULT_DEFAULT_wxUSE_GTK=1
977 ;;
978 *-*-irix5* | *-*-irix6* )
979 USE_SGI=1
980 USE_SVR4=1
981 cat >> confdefs.h <<\EOF
982#define __SGI__ 1
983EOF
984
985 cat >> confdefs.h <<\EOF
986#define __SVR4__ 1
987EOF
988
989 DEFAULT_DEFAULT_wxUSE_MOTIF=1
990 ;;
991 *-*-solaris2* )
992 USE_SUN=1
993 USE_SOLARIS=1
994 USE_SVR4=1
995 cat >> confdefs.h <<\EOF
996#define __SUN__ 1
997EOF
998
999 cat >> confdefs.h <<\EOF
1000#define __SOLARIS__ 1
1001EOF
1002
1003 cat >> confdefs.h <<\EOF
1004#define __SVR4__ 1
1005EOF
1006
1007 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1008 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1009 ;;
1010 *-*-sunos4* )
1011 USE_SUN=1
1012 USE_SUNOS=1
1013 USE_BSD=1
1014 cat >> confdefs.h <<\EOF
1015#define __SUN__ 1
1016EOF
1017
1018 cat >> confdefs.h <<\EOF
1019#define __SUNOS__ 1
1020EOF
1021
1022 cat >> confdefs.h <<\EOF
1023#define __BSD__ 1
1024EOF
1025
1026 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1027 ;;
1028 *-*-freebsd* | *-*-netbsd*)
1029 USE_BSD=1
1030 USE_FREEBSD=1
1031 cat >> confdefs.h <<\EOF
1032#define __FREEBSD__ 1
1033EOF
1034
1035 cat >> confdefs.h <<\EOF
1036#define __BSD__ 1
1037EOF
1038
1039 DEFAULT_DEFAULT_wxUSE_GTK=1
1040 ;;
1041 *-*-osf* )
1042 USE_ALPHA=1
1043 USE_OSF=1
1044 cat >> confdefs.h <<\EOF
1045#define __ALPHA__ 1
1046EOF
1047
1048 cat >> confdefs.h <<\EOF
1049#define __OSF__ 1
1050EOF
1051
1052 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1053 ;;
1054 *-*-dgux5* )
1055 USE_ALPHA=1
1056 USE_SVR4=1
1057 cat >> confdefs.h <<\EOF
1058#define __ALPHA__ 1
1059EOF
1060
1061 cat >> confdefs.h <<\EOF
1062#define __SVR4__ 1
1063EOF
1064
1065 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1066 ;;
1067 *-*-sysv5* )
1068 USE_SYSV=1
1069 USE_SVR4=1
1070 cat >> confdefs.h <<\EOF
1071#define __SYSV__ 1
1072EOF
1073
1074 cat >> confdefs.h <<\EOF
1075#define __SVR4__ 1
1076EOF
1077
1078 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1079 ;;
1080 *-*-aix* )
1081 USE_AIX=1
1082 USE_SYSV=1
1083 USE_SVR4=1
1084 cat >> confdefs.h <<\EOF
1085#define __AIX__ 1
1086EOF
1087
1088 cat >> confdefs.h <<\EOF
1089#define __SYSV__ 1
1090EOF
1091
1092 cat >> confdefs.h <<\EOF
1093#define __SVR4__ 1
1094EOF
1095
1096 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1097 ;;
1098
7eef8db2 1099 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1100 USE_UNIX=0
1101 USE_WIN32=1
1102 cat >> confdefs.h <<\EOF
1103#define __WIN32__ 1
1104EOF
1105
1106 cat >> confdefs.h <<\EOF
1107#define __WIN95__ 1
1108EOF
1109
1110 cat >> confdefs.h <<\EOF
1111#define __WINDOWS__ 1
1112EOF
1113
1114 cat >> confdefs.h <<\EOF
1115#define __GNUWIN32__ 1
1116EOF
1117
1118 cat >> confdefs.h <<\EOF
1119#define STRICT 1
1120EOF
1121
1122 cat >> confdefs.h <<\EOF
1123#define WINVER 0x0400
1124EOF
1125
1126 DEFAULT_DEFAULT_wxUSE_MSW=1
1127 ;;
1128
1129 *-pc-os2_emx )
1130 cat >> confdefs.h <<\EOF
1131#define __EMX__ 1
1132EOF
1133
e07802fc 1134 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1135 ;;
1136
b12915c1
VZ
1137 *-*-beos* )
1138 USE_BEOS=1
1139 cat >> confdefs.h <<\EOF
1140#define __BEOS__ 1
1141EOF
1142
1143 ;;
1144
10f2d63a
VZ
1145 *)
1146 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1147esac
1148
1149if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1150 wxUSE_UNIX=yes
1151 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1152#define __UNIX__ 1
1153EOF
1154
b12915c1
VZ
1155
1156 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1157 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1158fi
1159
1160if test "$USE_BEOS" = 1; then
1161 SRC_SUBDIRS="$SRC_SUBDIRS be"
1162 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1163fi
1164
1165if test "$USE_LINUX" = 1; then
1166 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
e07802fc 1167echo "configure:1168: checking for gettext in -lc" >&5
10f2d63a
VZ
1168ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1169if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1171else
1172 ac_save_LIBS="$LIBS"
1173LIBS="-lc $LIBS"
1174cat > conftest.$ac_ext <<EOF
e07802fc 1175#line 1176 "configure"
10f2d63a
VZ
1176#include "confdefs.h"
1177/* Override any gcc2 internal prototype to avoid an error. */
1178/* We use char because int might match the return type of a gcc2
1179 builtin and then its argument prototype would still apply. */
1180char gettext();
1181
1182int main() {
1183gettext()
1184; return 0; }
1185EOF
e07802fc 1186if { (eval echo configure:1187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1187 rm -rf conftest*
1188 eval "ac_cv_lib_$ac_lib_var=yes"
1189else
1190 echo "configure: failed program was:" >&5
1191 cat conftest.$ac_ext >&5
1192 rm -rf conftest*
1193 eval "ac_cv_lib_$ac_lib_var=no"
1194fi
1195rm -f conftest*
1196LIBS="$ac_save_LIBS"
1197
1198fi
1199if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1200 echo "$ac_t""yes" 1>&6
1201 cat >> confdefs.h <<\EOF
1202#define wxHAVE_GLIBC2 1
1203EOF
1204
1205else
1206 echo "$ac_t""no" 1>&6
1207fi
1208
1209fi
1210
1211
1212
1213
1214 wx_arg_cache_file="configarg.cache"
1215 echo "loading argument cache $wx_arg_cache_file"
1216 rm -f ${wx_arg_cache_file}.tmp
1217 touch ${wx_arg_cache_file}.tmp
1218 touch ${wx_arg_cache_file}
1219
1220
1221DEBUG_CONFIGURE=0
1222if test $DEBUG_CONFIGURE = 1; then
1223 DEFAULT_wxUSE_THREADS=yes
1224
1225 DEFAULT_wxUSE_SHARED=yes
1226 DEFAULT_wxUSE_OPTIMISE=yes
1227 DEFAULT_wxUSE_PROFILE=no
1228 DEFAULT_wxUSE_NO_DEPS=no
1229 DEFAULT_wxUSE_NO_RTTI=no
1230 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1231 DEFAULT_wxUSE_PERMISSIVE=no
1232 DEFAULT_wxUSE_DEBUG_FLAG=yes
1233 DEFAULT_wxUSE_DEBUG_INFO=yes
1234 DEFAULT_wxUSE_DEBUG_GDB=yes
1235 DEFAULT_wxUSE_MEM_TRACING=no
1236 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1237 DEFAULT_wxUSE_DMALLOC=no
1238 DEFAULT_wxUSE_APPLE_IEEE=no
1239
1240 DEFAULT_wxUSE_LOG=yes
1241
1242 DEFAULT_wxUSE_GUI=yes
1243
1244 DEFAULT_wxUSE_ZLIB=no
1245 DEFAULT_wxUSE_LIBPNG=no
1246 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1247 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a
VZ
1248 DEFAULT_wxUSE_ODBC=no
1249
1250 DEFAULT_wxUSE_STD_IOSTREAM=no
1251 DEFAULT_wxUSE_FILE=no
1252 DEFAULT_wxUSE_TEXTFILE=no
1253 DEFAULT_wxUSE_TIMEDATE=no
1254 DEFAULT_wxUSE_WAVE=no
1255 DEFAULT_wxUSE_INTL=no
1256 DEFAULT_wxUSE_CONFIG=no
1257 DEFAULT_wxUSE_STREAMS=no
1258 DEFAULT_wxUSE_SOCKETS=no
1259 DEFAULT_wxUSE_DIALUP_MANAGER=no
1260 DEFAULT_wxUSE_SERIAL=no
1261 DEFAULT_wxUSE_JOYSTICK=no
1262 DEFAULT_wxUSE_DYNLIB_CLASS=no
1263 DEFAULT_wxUSE_LONGLONG=no
1264
1265 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1266 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1267 DEFAULT_wxUSE_POSTSCRIPT=no
1268
1269 DEFAULT_wxUSE_X_RESOURCES=no
1270 DEFAULT_wxUSE_CLIPBOARD=no
1271 DEFAULT_wxUSE_TOOLTIPS=no
1272 DEFAULT_wxUSE_DRAG_AND_DROP=no
1273 DEFAULT_wxUSE_SPLINES=no
1274
1275 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1276 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1277 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1278
1279 DEFAULT_wxUSE_PROLOGIO=no
1280 DEFAULT_wxUSE_RESOURCES=no
1281 DEFAULT_wxUSE_CONSTRAINTS=no
1282 DEFAULT_wxUSE_IPC=no
1283 DEFAULT_wxUSE_HELP=no
1284 DEFAULT_wxUSE_WXTREE=no
1285 DEFAULT_wxUSE_METAFILE=no
1286
1287 DEFAULT_wxUSE_COMMONDLGS=no
1288 DEFAULT_wxUSE_DIRDLG=no
1289 DEFAULT_wxUSE_TEXTDLG=no
1290 DEFAULT_wxUSE_STARTUP_TIPS=no
1291 DEFAULT_wxUSE_PROGRESSDLG=no
1292 DEFAULT_wxUSE_MINIFRAME=no
1293 DEFAULT_wxUSE_HTML=no
1294 DEFAULT_wxUSE_FS_INET=no
1295 DEFAULT_wxUSE_FS_ZIP=no
1296 DEFAULT_wxUSE_BUSYINFO=no
1297 DEFAULT_wxUSE_ZIPSTREAM=no
1298 DEFAULT_wxUSE_VALIDATORS=yes
1299
1300 DEFAULT_wxUSE_ACCEL=no
1301 DEFAULT_wxUSE_CARET=no
1302 DEFAULT_wxUSE_BMPBUTTON=no
1303 DEFAULT_wxUSE_CHECKBOX=no
1304 DEFAULT_wxUSE_CHECKLST=no
1305 DEFAULT_wxUSE_CHOICE=yes
1306 DEFAULT_wxUSE_COMBOBOX=no
1307 DEFAULT_wxUSE_GAUGE=no
1308 DEFAULT_wxUSE_GRID=no
1309 DEFAULT_wxUSE_NEW_GRID=no
1310 DEFAULT_wxUSE_IMAGLIST=no
1311 DEFAULT_wxUSE_LISTBOX=no
1312 DEFAULT_wxUSE_LISTCTRL=no
1313 DEFAULT_wxUSE_NOTEBOOK=no
1314 DEFAULT_wxUSE_RADIOBOX=no
1315 DEFAULT_wxUSE_RADIOBTN=no
1316 DEFAULT_wxUSE_SASH=no
1317 DEFAULT_wxUSE_SCROLLBAR=no
1318 DEFAULT_wxUSE_SLIDER=no
1319 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1320 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1321 DEFAULT_wxUSE_SPLITTER=no
1322 DEFAULT_wxUSE_STATBMP=no
1323 DEFAULT_wxUSE_STATBOX=no
1324 DEFAULT_wxUSE_STATLINE=no
1325 DEFAULT_wxUSE_STATUSBAR=yes
1326 DEFAULT_wxUSE_TABDIALOG=no
1327 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1328 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1329 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1330 DEFAULT_wxUSE_TREECTRL=no
1331
1332 DEFAULT_wxUSE_UNICODE=no
1333 DEFAULT_wxUSE_WCSRTOMBS=no
1334
1335 DEFAULT_wxUSE_GIF=no
1336 DEFAULT_wxUSE_PCX=no
1337 DEFAULT_wxUSE_PNM=no
1338else
1339 DEFAULT_wxUSE_THREADS=yes
1340
1341 DEFAULT_wxUSE_SHARED=yes
1342 DEFAULT_wxUSE_OPTIMISE=yes
1343 DEFAULT_wxUSE_PROFILE=no
1344 DEFAULT_wxUSE_NO_DEPS=no
1345 DEFAULT_wxUSE_NO_RTTI=no
1346 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1347 DEFAULT_wxUSE_PERMISSIVE=no
1348 DEFAULT_wxUSE_DEBUG_FLAG=no
1349 DEFAULT_wxUSE_DEBUG_INFO=no
1350 DEFAULT_wxUSE_DEBUG_GDB=no
1351 DEFAULT_wxUSE_MEM_TRACING=no
1352 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1353 DEFAULT_wxUSE_DMALLOC=no
1354 DEFAULT_wxUSE_APPLE_IEEE=yes
1355
1356 DEFAULT_wxUSE_LOG=yes
1357
1358 DEFAULT_wxUSE_GUI=yes
1359
1360 DEFAULT_wxUSE_ZLIB=yes
1361 DEFAULT_wxUSE_LIBPNG=yes
1362 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1363 DEFAULT_wxUSE_LIBTIFF=yes
10f2d63a
VZ
1364 DEFAULT_wxUSE_ODBC=yes
1365
1366 DEFAULT_wxUSE_STD_IOSTREAM=no
1367 DEFAULT_wxUSE_FILE=yes
1368 DEFAULT_wxUSE_TEXTFILE=yes
1369 DEFAULT_wxUSE_TIMEDATE=yes
1370 DEFAULT_wxUSE_WAVE=no
1371 DEFAULT_wxUSE_INTL=yes
1372 DEFAULT_wxUSE_CONFIG=yes
1373 DEFAULT_wxUSE_STREAMS=yes
1374 DEFAULT_wxUSE_SOCKETS=yes
1375 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1376 DEFAULT_wxUSE_SERIAL=yes
1377 DEFAULT_wxUSE_JOYSTICK=yes
1378 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1379 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1380
1381 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1382 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1383 DEFAULT_wxUSE_POSTSCRIPT=yes
1384
1385 DEFAULT_wxUSE_X_RESOURCES=no
1386 DEFAULT_wxUSE_CLIPBOARD=yes
1387 DEFAULT_wxUSE_TOOLTIPS=yes
1388 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1389 DEFAULT_wxUSE_SPLINES=yes
1390
1391 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1392 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1393 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1394
1395 DEFAULT_wxUSE_PROLOGIO=yes
1396 DEFAULT_wxUSE_RESOURCES=yes
1397 DEFAULT_wxUSE_CONSTRAINTS=yes
1398 DEFAULT_wxUSE_IPC=yes
1399 DEFAULT_wxUSE_HELP=yes
1400 DEFAULT_wxUSE_WXTREE=yes
1401 DEFAULT_wxUSE_METAFILE=yes
1402
1403 DEFAULT_wxUSE_COMMONDLGS=yes
1404 DEFAULT_wxUSE_DIRDLG=yes
1405 DEFAULT_wxUSE_TEXTDLG=yes
1406 DEFAULT_wxUSE_STARTUP_TIPS=yes
1407 DEFAULT_wxUSE_PROGRESSDLG=yes
1408 DEFAULT_wxUSE_MINIFRAME=yes
1409 DEFAULT_wxUSE_HTML=yes
1410 DEFAULT_wxUSE_FS_INET=yes
1411 DEFAULT_wxUSE_FS_ZIP=yes
1412 DEFAULT_wxUSE_BUSYINFO=yes
1413 DEFAULT_wxUSE_ZIPSTREAM=yes
1414 DEFAULT_wxUSE_VALIDATORS=yes
1415
1416 DEFAULT_wxUSE_ACCEL=yes
1417 DEFAULT_wxUSE_CARET=yes
1418 DEFAULT_wxUSE_BMPBUTTON=yes
1419 DEFAULT_wxUSE_CHECKBOX=yes
1420 DEFAULT_wxUSE_CHECKLST=yes
1421 DEFAULT_wxUSE_CHOICE=yes
1422 DEFAULT_wxUSE_COMBOBOX=yes
1423 DEFAULT_wxUSE_GAUGE=yes
1424 DEFAULT_wxUSE_GRID=yes
fc9c7c09 1425 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
1426 DEFAULT_wxUSE_IMAGLIST=yes
1427 DEFAULT_wxUSE_LISTBOX=yes
1428 DEFAULT_wxUSE_LISTCTRL=yes
1429 DEFAULT_wxUSE_NOTEBOOK=yes
1430 DEFAULT_wxUSE_RADIOBOX=yes
1431 DEFAULT_wxUSE_RADIOBTN=yes
1432 DEFAULT_wxUSE_SASH=yes
1433 DEFAULT_wxUSE_SCROLLBAR=yes
1434 DEFAULT_wxUSE_SLIDER=yes
1435 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1436 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1437 DEFAULT_wxUSE_SPLITTER=yes
1438 DEFAULT_wxUSE_STATBMP=yes
1439 DEFAULT_wxUSE_STATBOX=yes
1440 DEFAULT_wxUSE_STATLINE=yes
1441 DEFAULT_wxUSE_STATUSBAR=yes
1442 DEFAULT_wxUSE_TABDIALOG=no
1443 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1444 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1445 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1446 DEFAULT_wxUSE_TREECTRL=yes
1447
1448 DEFAULT_wxUSE_UNICODE=no
1449 DEFAULT_wxUSE_WCSRTOMBS=no
1450
1451 DEFAULT_wxUSE_GIF=yes
1452 DEFAULT_wxUSE_PCX=yes
1453 DEFAULT_wxUSE_PNM=yes
1454fi
1455
1456
1457
1458for toolkit in `echo $ALL_TOOLKITS`; do
1459 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1460 if test "x$LINE" != x ; then
1461 has_toolkit_in_cache=1
1462 eval "DEFAULT_$LINE"
1463 eval "CACHE_$toolkit=1"
1464 fi
1465done
1466
1467
1468
1469 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
e07802fc 1470echo "configure:1471: checking "for --enable-gui"" >&5
10f2d63a
VZ
1471 no_cache=0
1472 # Check whether --enable-gui or --disable-gui was given.
1473if test "${enable_gui+set}" = set; then
1474 enableval="$enable_gui"
1475
1476 if test "$enableval" = yes; then
1477 ac_cv_use_gui='wxUSE_GUI=yes'
1478 else
1479 ac_cv_use_gui='wxUSE_GUI=no'
1480 fi
1481
1482else
1483
1484 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1485 if test "x$LINE" != x ; then
1486 eval "DEFAULT_$LINE"
1487 else
1488 no_cache=1
1489 fi
1490
1491 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1492
1493fi
1494
1495
1496 eval "$ac_cv_use_gui"
1497 if test "$no_cache" != 1; then
1498 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1499 fi
1500
1501 if test "$wxUSE_GUI" = yes; then
1502 echo "$ac_t""yes" 1>&6
1503 else
1504 echo "$ac_t""no" 1>&6
1505 fi
1506
1507
b12915c1 1508if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1509
1510# Check whether --with-gtk or --without-gtk was given.
1511if test "${with_gtk+set}" = set; then
1512 withval="$with_gtk"
1513 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1514fi
1515
1516# Check whether --with-motif or --without-motif was given.
1517if test "${with_motif+set}" = set; then
1518 withval="$with_motif"
1519 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1520fi
1521
1522# Check whether --with-wine or --without-wine was given.
1523if test "${with_wine+set}" = set; then
1524 withval="$with_wine"
1525 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1526fi
1527
1528# Check whether --with-cygwin or --without-cygwin was given.
1529if test "${with_cygwin+set}" = set; then
1530 withval="$with_cygwin"
1531 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1532fi
1533
1534# Check whether --with-mingw or --without-mingw was given.
1535if test "${with_mingw+set}" = set; then
1536 withval="$with_mingw"
1537 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1538fi
1539
e07802fc
VZ
1540# Check whether --with-pm or --without-pm was given.
1541if test "${with_pm+set}" = set; then
1542 withval="$with_pm"
1543 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1544fi
1545
10f2d63a
VZ
1546
1547# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1548if test "${with_gtk_prefix+set}" = set; then
1549 withval="$with_gtk_prefix"
1550 gtk_config_prefix="$withval"
1551else
1552 gtk_config_prefix=""
1553fi
1554
1555# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1556if test "${with_gtk_exec_prefix+set}" = set; then
1557 withval="$with_gtk_exec_prefix"
1558 gtk_config_exec_prefix="$withval"
1559else
1560 gtk_config_exec_prefix=""
1561fi
1562
1563
1564
b12915c1 1565 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
e07802fc 1566echo "configure:1567: checking "for --with-libpng"" >&5
10f2d63a 1567 no_cache=0
b12915c1
VZ
1568 # Check whether --with-libpng or --without-libpng was given.
1569if test "${with_libpng+set}" = set; then
1570 withval="$with_libpng"
10f2d63a
VZ
1571
1572 if test "$withval" = yes; then
b12915c1 1573 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
10f2d63a 1574 else
b12915c1 1575 ac_cv_use_libpng='wxUSE_LIBPNG=no'
10f2d63a
VZ
1576 fi
1577
1578else
1579
b12915c1 1580 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1581 if test "x$LINE" != x ; then
1582 eval "DEFAULT_$LINE"
1583 else
1584 no_cache=1
1585 fi
1586
b12915c1 1587 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1588
1589fi
1590
1591
b12915c1 1592 eval "$ac_cv_use_libpng"
10f2d63a 1593 if test "$no_cache" != 1; then
b12915c1 1594 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1595 fi
1596
b12915c1 1597 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a
VZ
1598 echo "$ac_t""yes" 1>&6
1599 else
1600 echo "$ac_t""no" 1>&6
1601 fi
1602
1603
b12915c1 1604 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
e07802fc 1605echo "configure:1606: checking "for --with-libjpeg"" >&5
10f2d63a 1606 no_cache=0
b12915c1
VZ
1607 # Check whether --with-libjpeg or --without-libjpeg was given.
1608if test "${with_libjpeg+set}" = set; then
1609 withval="$with_libjpeg"
10f2d63a
VZ
1610
1611 if test "$withval" = yes; then
b12915c1 1612 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
10f2d63a 1613 else
b12915c1 1614 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
10f2d63a
VZ
1615 fi
1616
1617else
1618
b12915c1 1619 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1620 if test "x$LINE" != x ; then
1621 eval "DEFAULT_$LINE"
1622 else
1623 no_cache=1
1624 fi
1625
b12915c1 1626 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1627
1628fi
1629
1630
b12915c1 1631 eval "$ac_cv_use_libjpeg"
10f2d63a 1632 if test "$no_cache" != 1; then
b12915c1 1633 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1634 fi
1635
b12915c1 1636 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a
VZ
1637 echo "$ac_t""yes" 1>&6
1638 else
1639 echo "$ac_t""no" 1>&6
1640 fi
1641
1642
b12915c1 1643 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
e07802fc 1644echo "configure:1645: checking "for --with-libtiff"" >&5
10f2d63a 1645 no_cache=0
b12915c1
VZ
1646 # Check whether --with-libtiff or --without-libtiff was given.
1647if test "${with_libtiff+set}" = set; then
1648 withval="$with_libtiff"
10f2d63a
VZ
1649
1650 if test "$withval" = yes; then
b12915c1 1651 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
10f2d63a 1652 else
b12915c1 1653 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
10f2d63a
VZ
1654 fi
1655
1656else
1657
b12915c1 1658 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1659 if test "x$LINE" != x ; then
1660 eval "DEFAULT_$LINE"
1661 else
1662 no_cache=1
1663 fi
1664
b12915c1 1665 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1666
1667fi
1668
1669
b12915c1 1670 eval "$ac_cv_use_libtiff"
10f2d63a 1671 if test "$no_cache" != 1; then
b12915c1 1672 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1673 fi
1674
b12915c1 1675 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a
VZ
1676 echo "$ac_t""yes" 1>&6
1677 else
1678 echo "$ac_t""no" 1>&6
1679 fi
1680
1681
b12915c1 1682 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
e07802fc 1683echo "configure:1684: checking "for --with-opengl"" >&5
10f2d63a 1684 no_cache=0
b12915c1
VZ
1685 # Check whether --with-opengl or --without-opengl was given.
1686if test "${with_opengl+set}" = set; then
1687 withval="$with_opengl"
10f2d63a
VZ
1688
1689 if test "$withval" = yes; then
b12915c1 1690 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1691 else
b12915c1 1692 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1693 fi
1694
1695else
1696
b12915c1 1697 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1698 if test "x$LINE" != x ; then
1699 eval "DEFAULT_$LINE"
1700 else
1701 no_cache=1
1702 fi
1703
b12915c1 1704 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1705
1706fi
1707
1708
b12915c1 1709 eval "$ac_cv_use_opengl"
10f2d63a 1710 if test "$no_cache" != 1; then
b12915c1 1711 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1712 fi
1713
b12915c1 1714 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1715 echo "$ac_t""yes" 1>&6
1716 else
1717 echo "$ac_t""no" 1>&6
1718 fi
1719
1720
b12915c1
VZ
1721fi
1722
1723
1724 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
e07802fc 1725echo "configure:1726: checking "for --with-dmalloc"" >&5
c7a2bf27 1726 no_cache=0
b12915c1
VZ
1727 # Check whether --with-dmalloc or --without-dmalloc was given.
1728if test "${with_dmalloc+set}" = set; then
1729 withval="$with_dmalloc"
c7a2bf27
RR
1730
1731 if test "$withval" = yes; then
b12915c1 1732 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1733 else
b12915c1 1734 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1735 fi
1736
1737else
1738
b12915c1 1739 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1740 if test "x$LINE" != x ; then
1741 eval "DEFAULT_$LINE"
1742 else
1743 no_cache=1
1744 fi
1745
b12915c1 1746 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1747
1748fi
1749
1750
b12915c1 1751 eval "$ac_cv_use_dmalloc"
c7a2bf27 1752 if test "$no_cache" != 1; then
b12915c1 1753 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1754 fi
1755
b12915c1 1756 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1757 echo "$ac_t""yes" 1>&6
1758 else
1759 echo "$ac_t""no" 1>&6
1760 fi
1761
1762
b12915c1 1763 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
e07802fc 1764echo "configure:1765: checking "for --with-zlib"" >&5
10f2d63a 1765 no_cache=0
b12915c1
VZ
1766 # Check whether --with-zlib or --without-zlib was given.
1767if test "${with_zlib+set}" = set; then
1768 withval="$with_zlib"
10f2d63a
VZ
1769
1770 if test "$withval" = yes; then
b12915c1 1771 ac_cv_use_zlib='wxUSE_ZLIB=yes'
10f2d63a 1772 else
b12915c1 1773 ac_cv_use_zlib='wxUSE_ZLIB=no'
10f2d63a
VZ
1774 fi
1775
1776else
1777
b12915c1 1778 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1779 if test "x$LINE" != x ; then
1780 eval "DEFAULT_$LINE"
1781 else
1782 no_cache=1
1783 fi
1784
b12915c1 1785 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1786
1787fi
1788
1789
b12915c1 1790 eval "$ac_cv_use_zlib"
10f2d63a 1791 if test "$no_cache" != 1; then
b12915c1 1792 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1793 fi
1794
b12915c1 1795 if test "$wxUSE_ZLIB" = yes; then
10f2d63a
VZ
1796 echo "$ac_t""yes" 1>&6
1797 else
1798 echo "$ac_t""no" 1>&6
1799 fi
1800
1801
1802 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
e07802fc 1803echo "configure:1804: checking "for --with-odbc"" >&5
10f2d63a
VZ
1804 no_cache=0
1805 # Check whether --with-odbc or --without-odbc was given.
1806if test "${with_odbc+set}" = set; then
1807 withval="$with_odbc"
1808
1809 if test "$withval" = yes; then
1810 ac_cv_use_odbc='wxUSE_ODBC=yes'
1811 else
1812 ac_cv_use_odbc='wxUSE_ODBC=no'
1813 fi
1814
1815else
1816
1817 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1818 if test "x$LINE" != x ; then
1819 eval "DEFAULT_$LINE"
1820 else
1821 no_cache=1
1822 fi
1823
1824 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1825
1826fi
1827
1828
1829 eval "$ac_cv_use_odbc"
1830 if test "$no_cache" != 1; then
1831 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1832 fi
1833
1834 if test "$wxUSE_ODBC" = yes; then
1835 echo "$ac_t""yes" 1>&6
1836 else
1837 echo "$ac_t""no" 1>&6
1838 fi
1839
1840
1841
1842
1843
1844 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
e07802fc 1845echo "configure:1846: checking "for --enable-shared"" >&5
10f2d63a
VZ
1846 no_cache=0
1847 # Check whether --enable-shared or --disable-shared was given.
1848if test "${enable_shared+set}" = set; then
1849 enableval="$enable_shared"
1850
1851 if test "$enableval" = yes; then
1852 ac_cv_use_shared='wxUSE_SHARED=yes'
1853 else
1854 ac_cv_use_shared='wxUSE_SHARED=no'
1855 fi
1856
1857else
1858
1859 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1860 if test "x$LINE" != x ; then
1861 eval "DEFAULT_$LINE"
1862 else
1863 no_cache=1
1864 fi
1865
1866 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1867
1868fi
1869
1870
1871 eval "$ac_cv_use_shared"
1872 if test "$no_cache" != 1; then
1873 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1874 fi
1875
1876 if test "$wxUSE_SHARED" = yes; then
1877 echo "$ac_t""yes" 1>&6
1878 else
1879 echo "$ac_t""no" 1>&6
1880 fi
1881
1882
1883 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
e07802fc 1884echo "configure:1885: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1885 no_cache=0
1886 # Check whether --enable-optimise or --disable-optimise was given.
1887if test "${enable_optimise+set}" = set; then
1888 enableval="$enable_optimise"
1889
1890 if test "$enableval" = yes; then
1891 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1892 else
1893 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1894 fi
1895
1896else
1897
1898 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1899 if test "x$LINE" != x ; then
1900 eval "DEFAULT_$LINE"
1901 else
1902 no_cache=1
1903 fi
1904
1905 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1906
1907fi
1908
1909
1910 eval "$ac_cv_use_optimise"
1911 if test "$no_cache" != 1; then
1912 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1913 fi
1914
1915 if test "$wxUSE_OPTIMISE" = yes; then
1916 echo "$ac_t""yes" 1>&6
1917 else
1918 echo "$ac_t""no" 1>&6
1919 fi
1920
1921
1922 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
e07802fc 1923echo "configure:1924: checking "for --enable-debug"" >&5
10f2d63a
VZ
1924 no_cache=0
1925 # Check whether --enable-debug or --disable-debug was given.
1926if test "${enable_debug+set}" = set; then
1927 enableval="$enable_debug"
1928
1929 if test "$enableval" = yes; then
1930 ac_cv_use_debug='wxUSE_DEBUG=yes'
1931 else
1932 ac_cv_use_debug='wxUSE_DEBUG=no'
1933 fi
1934
1935else
1936
1937 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1938 if test "x$LINE" != x ; then
1939 eval "DEFAULT_$LINE"
1940 else
1941 no_cache=1
1942 fi
1943
1944 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1945
1946fi
1947
1948
1949 eval "$ac_cv_use_debug"
1950 if test "$no_cache" != 1; then
1951 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1952 fi
1953
1954 if test "$wxUSE_DEBUG" = yes; then
1955 echo "$ac_t""yes" 1>&6
1956 else
1957 echo "$ac_t""no" 1>&6
1958 fi
1959
1960
1961if test "$wxUSE_DEBUG" = "yes"; then
1962 DEFAULT_wxUSE_DEBUG_FLAG=yes
1963 DEFAULT_wxUSE_DEBUG_INFO=yes
1964elif test "$wxUSE_DEBUG" = "no"; then
1965 DEFAULT_wxUSE_DEBUG_FLAG=no
1966 DEFAULT_wxUSE_DEBUG_INFO=no
1967fi
1968
1969
1970 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
e07802fc 1971echo "configure:1972: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
1972 no_cache=0
1973 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1974if test "${enable_debug_flag+set}" = set; then
1975 enableval="$enable_debug_flag"
1976
1977 if test "$enableval" = yes; then
1978 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1979 else
1980 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1981 fi
1982
1983else
1984
1985 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1986 if test "x$LINE" != x ; then
1987 eval "DEFAULT_$LINE"
1988 else
1989 no_cache=1
1990 fi
1991
1992 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
1993
1994fi
1995
1996
1997 eval "$ac_cv_use_debug_flag"
1998 if test "$no_cache" != 1; then
1999 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2000 fi
2001
2002 if test "$wxUSE_DEBUG_FLAG" = yes; then
2003 echo "$ac_t""yes" 1>&6
2004 else
2005 echo "$ac_t""no" 1>&6
2006 fi
2007
2008
2009 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
e07802fc 2010echo "configure:2011: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2011 no_cache=0
2012 # Check whether --enable-debug_info or --disable-debug_info was given.
2013if test "${enable_debug_info+set}" = set; then
2014 enableval="$enable_debug_info"
2015
2016 if test "$enableval" = yes; then
2017 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2018 else
2019 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2020 fi
2021
2022else
2023
2024 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2025 if test "x$LINE" != x ; then
2026 eval "DEFAULT_$LINE"
2027 else
2028 no_cache=1
2029 fi
2030
2031 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2032
2033fi
2034
2035
2036 eval "$ac_cv_use_debug_info"
2037 if test "$no_cache" != 1; then
2038 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2039 fi
2040
2041 if test "$wxUSE_DEBUG_INFO" = yes; then
2042 echo "$ac_t""yes" 1>&6
2043 else
2044 echo "$ac_t""no" 1>&6
2045 fi
2046
2047
2048 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
e07802fc 2049echo "configure:2050: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2050 no_cache=0
2051 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2052if test "${enable_debug_gdb+set}" = set; then
2053 enableval="$enable_debug_gdb"
2054
2055 if test "$enableval" = yes; then
2056 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2057 else
2058 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2059 fi
2060
2061else
2062
2063 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2064 if test "x$LINE" != x ; then
2065 eval "DEFAULT_$LINE"
2066 else
2067 no_cache=1
2068 fi
2069
2070 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2071
2072fi
2073
2074
2075 eval "$ac_cv_use_debug_gdb"
2076 if test "$no_cache" != 1; then
2077 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2078 fi
2079
2080 if test "$wxUSE_DEBUG_GDB" = yes; then
2081 echo "$ac_t""yes" 1>&6
2082 else
2083 echo "$ac_t""no" 1>&6
2084 fi
2085
2086
2087 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
e07802fc 2088echo "configure:2089: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2089 no_cache=0
2090 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2091if test "${enable_debug_cntxt+set}" = set; then
2092 enableval="$enable_debug_cntxt"
2093
2094 if test "$enableval" = yes; then
2095 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2096 else
2097 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2098 fi
2099
2100else
2101
2102 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2103 if test "x$LINE" != x ; then
2104 eval "DEFAULT_$LINE"
2105 else
2106 no_cache=1
2107 fi
2108
2109 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2110
2111fi
2112
2113
2114 eval "$ac_cv_use_debug_cntxt"
2115 if test "$no_cache" != 1; then
2116 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2117 fi
2118
2119 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2120 echo "$ac_t""yes" 1>&6
2121 else
2122 echo "$ac_t""no" 1>&6
2123 fi
2124
2125
2126 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
e07802fc 2127echo "configure:2128: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2128 no_cache=0
2129 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2130if test "${enable_mem_tracing+set}" = set; then
2131 enableval="$enable_mem_tracing"
2132
2133 if test "$enableval" = yes; then
2134 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2135 else
2136 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2137 fi
2138
2139else
2140
2141 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2142 if test "x$LINE" != x ; then
2143 eval "DEFAULT_$LINE"
2144 else
2145 no_cache=1
2146 fi
2147
2148 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2149
2150fi
2151
2152
2153 eval "$ac_cv_use_mem_tracing"
2154 if test "$no_cache" != 1; then
2155 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2156 fi
2157
2158 if test "$wxUSE_MEM_TRACING" = yes; then
2159 echo "$ac_t""yes" 1>&6
2160 else
2161 echo "$ac_t""no" 1>&6
2162 fi
2163
2164
2165 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
e07802fc 2166echo "configure:2167: checking "for --enable-profile"" >&5
10f2d63a
VZ
2167 no_cache=0
2168 # Check whether --enable-profile or --disable-profile was given.
2169if test "${enable_profile+set}" = set; then
2170 enableval="$enable_profile"
2171
2172 if test "$enableval" = yes; then
2173 ac_cv_use_profile='wxUSE_PROFILE=yes'
2174 else
2175 ac_cv_use_profile='wxUSE_PROFILE=no'
2176 fi
2177
2178else
2179
2180 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2181 if test "x$LINE" != x ; then
2182 eval "DEFAULT_$LINE"
2183 else
2184 no_cache=1
2185 fi
2186
2187 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2188
2189fi
2190
2191
2192 eval "$ac_cv_use_profile"
2193 if test "$no_cache" != 1; then
2194 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2195 fi
2196
2197 if test "$wxUSE_PROFILE" = yes; then
2198 echo "$ac_t""yes" 1>&6
2199 else
2200 echo "$ac_t""no" 1>&6
2201 fi
2202
2203
2204 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
e07802fc 2205echo "configure:2206: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2206 no_cache=0
2207 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2208if test "${enable_no_rtti+set}" = set; then
2209 enableval="$enable_no_rtti"
2210
2211 if test "$enableval" = yes; then
2212 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2213 else
2214 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2215 fi
2216
2217else
2218
2219 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2220 if test "x$LINE" != x ; then
2221 eval "DEFAULT_$LINE"
2222 else
2223 no_cache=1
2224 fi
2225
2226 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2227
2228fi
2229
2230
2231 eval "$ac_cv_use_no_rtti"
2232 if test "$no_cache" != 1; then
2233 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2234 fi
2235
2236 if test "$wxUSE_NO_RTTI" = yes; then
2237 echo "$ac_t""yes" 1>&6
2238 else
2239 echo "$ac_t""no" 1>&6
2240 fi
2241
2242
2243 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
e07802fc 2244echo "configure:2245: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2245 no_cache=0
2246 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2247if test "${enable_no_exceptions+set}" = set; then
2248 enableval="$enable_no_exceptions"
2249
2250 if test "$enableval" = yes; then
2251 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2252 else
2253 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2254 fi
2255
2256else
2257
2258 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2259 if test "x$LINE" != x ; then
2260 eval "DEFAULT_$LINE"
2261 else
2262 no_cache=1
2263 fi
2264
2265 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2266
2267fi
2268
2269
2270 eval "$ac_cv_use_no_exceptions"
2271 if test "$no_cache" != 1; then
2272 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2273 fi
2274
2275 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2276 echo "$ac_t""yes" 1>&6
2277 else
2278 echo "$ac_t""no" 1>&6
2279 fi
2280
2281
2282 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
e07802fc 2283echo "configure:2284: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2284 no_cache=0
2285 # Check whether --enable-permissive or --disable-permissive was given.
2286if test "${enable_permissive+set}" = set; then
2287 enableval="$enable_permissive"
2288
2289 if test "$enableval" = yes; then
2290 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2291 else
2292 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2293 fi
2294
2295else
2296
2297 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2298 if test "x$LINE" != x ; then
2299 eval "DEFAULT_$LINE"
2300 else
2301 no_cache=1
2302 fi
2303
2304 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2305
2306fi
2307
2308
2309 eval "$ac_cv_use_permissive"
2310 if test "$no_cache" != 1; then
2311 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2312 fi
2313
2314 if test "$wxUSE_PERMISSIVE" = yes; then
2315 echo "$ac_t""yes" 1>&6
2316 else
2317 echo "$ac_t""no" 1>&6
2318 fi
2319
2320
2321 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
e07802fc 2322echo "configure:2323: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2323 no_cache=0
2324 # Check whether --enable-no_deps or --disable-no_deps was given.
2325if test "${enable_no_deps+set}" = set; then
2326 enableval="$enable_no_deps"
2327
2328 if test "$enableval" = yes; then
2329 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2330 else
2331 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2332 fi
2333
2334else
2335
2336 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2337 if test "x$LINE" != x ; then
2338 eval "DEFAULT_$LINE"
2339 else
2340 no_cache=1
2341 fi
2342
2343 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2344
2345fi
2346
2347
2348 eval "$ac_cv_use_no_deps"
2349 if test "$no_cache" != 1; then
2350 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2351 fi
2352
2353 if test "$wxUSE_NO_DEPS" = yes; then
2354 echo "$ac_t""yes" 1>&6
2355 else
2356 echo "$ac_t""no" 1>&6
2357 fi
2358
2359
2360
2361
2362 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
e07802fc 2363echo "configure:2364: checking "for --enable-intl"" >&5
10f2d63a
VZ
2364 no_cache=0
2365 # Check whether --enable-intl or --disable-intl was given.
2366if test "${enable_intl+set}" = set; then
2367 enableval="$enable_intl"
2368
2369 if test "$enableval" = yes; then
2370 ac_cv_use_intl='wxUSE_INTL=yes'
2371 else
2372 ac_cv_use_intl='wxUSE_INTL=no'
2373 fi
2374
2375else
2376
2377 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2378 if test "x$LINE" != x ; then
2379 eval "DEFAULT_$LINE"
2380 else
2381 no_cache=1
2382 fi
2383
2384 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2385
2386fi
2387
2388
2389 eval "$ac_cv_use_intl"
2390 if test "$no_cache" != 1; then
2391 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2392 fi
2393
2394 if test "$wxUSE_INTL" = yes; then
2395 echo "$ac_t""yes" 1>&6
2396 else
2397 echo "$ac_t""no" 1>&6
2398 fi
2399
2400
2401 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
e07802fc 2402echo "configure:2403: checking "for --enable-config"" >&5
10f2d63a
VZ
2403 no_cache=0
2404 # Check whether --enable-config or --disable-config was given.
2405if test "${enable_config+set}" = set; then
2406 enableval="$enable_config"
2407
2408 if test "$enableval" = yes; then
2409 ac_cv_use_config='wxUSE_CONFIG=yes'
2410 else
2411 ac_cv_use_config='wxUSE_CONFIG=no'
2412 fi
2413
2414else
2415
2416 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2417 if test "x$LINE" != x ; then
2418 eval "DEFAULT_$LINE"
2419 else
2420 no_cache=1
2421 fi
2422
2423 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2424
2425fi
2426
2427
2428 eval "$ac_cv_use_config"
2429 if test "$no_cache" != 1; then
2430 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2431 fi
2432
2433 if test "$wxUSE_CONFIG" = yes; then
2434 echo "$ac_t""yes" 1>&6
2435 else
2436 echo "$ac_t""no" 1>&6
2437 fi
2438
2439
b12915c1
VZ
2440if test "$wxUSE_GUI" = "yes"; then
2441
10f2d63a 2442 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
e07802fc 2443echo "configure:2444: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2444 no_cache=0
2445 # Check whether --enable-sockets or --disable-sockets was given.
2446if test "${enable_sockets+set}" = set; then
2447 enableval="$enable_sockets"
2448
2449 if test "$enableval" = yes; then
2450 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2451 else
2452 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2453 fi
2454
2455else
2456
2457 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2458 if test "x$LINE" != x ; then
2459 eval "DEFAULT_$LINE"
2460 else
2461 no_cache=1
2462 fi
2463
2464 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2465
2466fi
2467
2468
2469 eval "$ac_cv_use_sockets"
2470 if test "$no_cache" != 1; then
2471 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2472 fi
2473
2474 if test "$wxUSE_SOCKETS" = yes; then
2475 echo "$ac_t""yes" 1>&6
2476 else
2477 echo "$ac_t""no" 1>&6
2478 fi
2479
b12915c1
VZ
2480else
2481wxUSE_SOCKETS=no
2482fi
2483
10f2d63a
VZ
2484
2485 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
e07802fc 2486echo "configure:2487: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2487 no_cache=0
2488 # Check whether --enable-dialupman or --disable-dialupman was given.
2489if test "${enable_dialupman+set}" = set; then
2490 enableval="$enable_dialupman"
2491
2492 if test "$enableval" = yes; then
2493 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2494 else
2495 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2496 fi
2497
2498else
2499
2500 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2501 if test "x$LINE" != x ; then
2502 eval "DEFAULT_$LINE"
2503 else
2504 no_cache=1
2505 fi
2506
2507 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2508
2509fi
2510
2511
2512 eval "$ac_cv_use_dialupman"
2513 if test "$no_cache" != 1; then
2514 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2515 fi
2516
2517 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2518 echo "$ac_t""yes" 1>&6
2519 else
2520 echo "$ac_t""no" 1>&6
2521 fi
2522
2523
2524 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
e07802fc 2525echo "configure:2526: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2526 no_cache=0
2527 # Check whether --enable-ipc or --disable-ipc was given.
2528if test "${enable_ipc+set}" = set; then
2529 enableval="$enable_ipc"
2530
2531 if test "$enableval" = yes; then
2532 ac_cv_use_ipc='wxUSE_IPC=yes'
2533 else
2534 ac_cv_use_ipc='wxUSE_IPC=no'
2535 fi
2536
2537else
2538
2539 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2540 if test "x$LINE" != x ; then
2541 eval "DEFAULT_$LINE"
2542 else
2543 no_cache=1
2544 fi
2545
2546 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2547
2548fi
2549
2550
2551 eval "$ac_cv_use_ipc"
2552 if test "$no_cache" != 1; then
2553 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2554 fi
2555
2556 if test "$wxUSE_IPC" = yes; then
2557 echo "$ac_t""yes" 1>&6
2558 else
2559 echo "$ac_t""no" 1>&6
2560 fi
2561
2562
2563 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
e07802fc 2564echo "configure:2565: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2565 no_cache=0
2566 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2567if test "${enable_apple_ieee+set}" = set; then
2568 enableval="$enable_apple_ieee"
2569
2570 if test "$enableval" = yes; then
2571 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2572 else
2573 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2574 fi
2575
2576else
2577
2578 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2579 if test "x$LINE" != x ; then
2580 eval "DEFAULT_$LINE"
2581 else
2582 no_cache=1
2583 fi
2584
2585 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2586
2587fi
2588
2589
2590 eval "$ac_cv_use_apple_ieee"
2591 if test "$no_cache" != 1; then
2592 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2593 fi
2594
2595 if test "$wxUSE_APPLE_IEEE" = yes; then
2596 echo "$ac_t""yes" 1>&6
2597 else
2598 echo "$ac_t""no" 1>&6
2599 fi
2600
2601
2602 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
e07802fc 2603echo "configure:2604: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2604 no_cache=0
2605 # Check whether --enable-timedate or --disable-timedate was given.
2606if test "${enable_timedate+set}" = set; then
2607 enableval="$enable_timedate"
2608
2609 if test "$enableval" = yes; then
2610 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2611 else
2612 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2613 fi
2614
2615else
2616
2617 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2618 if test "x$LINE" != x ; then
2619 eval "DEFAULT_$LINE"
2620 else
2621 no_cache=1
2622 fi
2623
2624 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2625
2626fi
2627
2628
2629 eval "$ac_cv_use_timedate"
2630 if test "$no_cache" != 1; then
2631 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2632 fi
2633
2634 if test "$wxUSE_TIMEDATE" = yes; then
2635 echo "$ac_t""yes" 1>&6
2636 else
2637 echo "$ac_t""no" 1>&6
2638 fi
2639
2640
2641 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
e07802fc 2642echo "configure:2643: checking "for --enable-wave"" >&5
10f2d63a
VZ
2643 no_cache=0
2644 # Check whether --enable-wave or --disable-wave was given.
2645if test "${enable_wave+set}" = set; then
2646 enableval="$enable_wave"
2647
2648 if test "$enableval" = yes; then
2649 ac_cv_use_wave='wxUSE_WAVE=yes'
2650 else
2651 ac_cv_use_wave='wxUSE_WAVE=no'
2652 fi
2653
2654else
2655
2656 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2657 if test "x$LINE" != x ; then
2658 eval "DEFAULT_$LINE"
2659 else
2660 no_cache=1
2661 fi
2662
2663 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2664
2665fi
2666
2667
2668 eval "$ac_cv_use_wave"
2669 if test "$no_cache" != 1; then
2670 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2671 fi
2672
2673 if test "$wxUSE_WAVE" = yes; then
2674 echo "$ac_t""yes" 1>&6
2675 else
2676 echo "$ac_t""no" 1>&6
2677 fi
2678
2679
2680 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
e07802fc 2681echo "configure:2682: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2682 no_cache=0
2683 # Check whether --enable-fraction or --disable-fraction was given.
2684if test "${enable_fraction+set}" = set; then
2685 enableval="$enable_fraction"
2686
2687 if test "$enableval" = yes; then
2688 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2689 else
2690 ac_cv_use_fraction='wxUSE_FRACTION=no'
2691 fi
2692
2693else
2694
2695 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2696 if test "x$LINE" != x ; then
2697 eval "DEFAULT_$LINE"
2698 else
2699 no_cache=1
2700 fi
2701
2702 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2703
2704fi
2705
2706
2707 eval "$ac_cv_use_fraction"
2708 if test "$no_cache" != 1; then
2709 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2710 fi
2711
2712 if test "$wxUSE_FRACTION" = yes; then
2713 echo "$ac_t""yes" 1>&6
2714 else
2715 echo "$ac_t""no" 1>&6
2716 fi
2717
2718
2719 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
e07802fc 2720echo "configure:2721: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2721 no_cache=0
2722 # Check whether --enable-dynlib or --disable-dynlib was given.
2723if test "${enable_dynlib+set}" = set; then
2724 enableval="$enable_dynlib"
2725
2726 if test "$enableval" = yes; then
2727 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2728 else
2729 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2730 fi
2731
2732else
2733
2734 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2735 if test "x$LINE" != x ; then
2736 eval "DEFAULT_$LINE"
2737 else
2738 no_cache=1
2739 fi
2740
2741 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2742
2743fi
2744
2745
2746 eval "$ac_cv_use_dynlib"
2747 if test "$no_cache" != 1; then
2748 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2749 fi
2750
2751 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2752 echo "$ac_t""yes" 1>&6
2753 else
2754 echo "$ac_t""no" 1>&6
2755 fi
2756
2757
2758 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
e07802fc 2759echo "configure:2760: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2760 no_cache=0
2761 # Check whether --enable-longlong or --disable-longlong was given.
2762if test "${enable_longlong+set}" = set; then
2763 enableval="$enable_longlong"
2764
2765 if test "$enableval" = yes; then
2766 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2767 else
2768 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2769 fi
2770
2771else
2772
2773 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2774 if test "x$LINE" != x ; then
2775 eval "DEFAULT_$LINE"
2776 else
2777 no_cache=1
2778 fi
2779
2780 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2781
2782fi
2783
2784
2785 eval "$ac_cv_use_longlong"
2786 if test "$no_cache" != 1; then
2787 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2788 fi
2789
2790 if test "$wxUSE_LONGLONG" = yes; then
2791 echo "$ac_t""yes" 1>&6
2792 else
2793 echo "$ac_t""no" 1>&6
2794 fi
2795
2796
2797 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
e07802fc 2798echo "configure:2799: checking "for --enable-log"" >&5
10f2d63a
VZ
2799 no_cache=0
2800 # Check whether --enable-log or --disable-log was given.
2801if test "${enable_log+set}" = set; then
2802 enableval="$enable_log"
2803
2804 if test "$enableval" = yes; then
2805 ac_cv_use_log='wxUSE_LOG=yes'
2806 else
2807 ac_cv_use_log='wxUSE_LOG=no'
2808 fi
2809
2810else
2811
2812 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2813 if test "x$LINE" != x ; then
2814 eval "DEFAULT_$LINE"
2815 else
2816 no_cache=1
2817 fi
2818
2819 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2820
2821fi
2822
2823
2824 eval "$ac_cv_use_log"
2825 if test "$no_cache" != 1; then
2826 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2827 fi
2828
2829 if test "$wxUSE_LOG" = yes; then
2830 echo "$ac_t""yes" 1>&6
2831 else
2832 echo "$ac_t""no" 1>&6
2833 fi
2834
2835
2836 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
e07802fc 2837echo "configure:2838: checking "for --enable-streams"" >&5
10f2d63a
VZ
2838 no_cache=0
2839 # Check whether --enable-streams or --disable-streams was given.
2840if test "${enable_streams+set}" = set; then
2841 enableval="$enable_streams"
2842
2843 if test "$enableval" = yes; then
2844 ac_cv_use_streams='wxUSE_STREAMS=yes'
2845 else
2846 ac_cv_use_streams='wxUSE_STREAMS=no'
2847 fi
2848
2849else
2850
2851 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2852 if test "x$LINE" != x ; then
2853 eval "DEFAULT_$LINE"
2854 else
2855 no_cache=1
2856 fi
2857
2858 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2859
2860fi
2861
2862
2863 eval "$ac_cv_use_streams"
2864 if test "$no_cache" != 1; then
2865 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2866 fi
2867
2868 if test "$wxUSE_STREAMS" = yes; then
2869 echo "$ac_t""yes" 1>&6
2870 else
2871 echo "$ac_t""no" 1>&6
2872 fi
2873
2874
2875 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
e07802fc 2876echo "configure:2877: checking "for --enable-file"" >&5
10f2d63a
VZ
2877 no_cache=0
2878 # Check whether --enable-file or --disable-file was given.
2879if test "${enable_file+set}" = set; then
2880 enableval="$enable_file"
2881
2882 if test "$enableval" = yes; then
2883 ac_cv_use_file='wxUSE_FILE=yes'
2884 else
2885 ac_cv_use_file='wxUSE_FILE=no'
2886 fi
2887
2888else
2889
2890 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2891 if test "x$LINE" != x ; then
2892 eval "DEFAULT_$LINE"
2893 else
2894 no_cache=1
2895 fi
2896
2897 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2898
2899fi
2900
2901
2902 eval "$ac_cv_use_file"
2903 if test "$no_cache" != 1; then
2904 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2905 fi
2906
2907 if test "$wxUSE_FILE" = yes; then
2908 echo "$ac_t""yes" 1>&6
2909 else
2910 echo "$ac_t""no" 1>&6
2911 fi
2912
2913
2914 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
e07802fc 2915echo "configure:2916: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2916 no_cache=0
2917 # Check whether --enable-textfile or --disable-textfile was given.
2918if test "${enable_textfile+set}" = set; then
2919 enableval="$enable_textfile"
2920
2921 if test "$enableval" = yes; then
2922 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2923 else
2924 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2925 fi
2926
2927else
2928
2929 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2930 if test "x$LINE" != x ; then
2931 eval "DEFAULT_$LINE"
2932 else
2933 no_cache=1
2934 fi
2935
2936 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2937
2938fi
2939
2940
2941 eval "$ac_cv_use_textfile"
2942 if test "$no_cache" != 1; then
2943 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2944 fi
2945
2946 if test "$wxUSE_TEXTFILE" = yes; then
2947 echo "$ac_t""yes" 1>&6
2948 else
2949 echo "$ac_t""no" 1>&6
2950 fi
2951
2952
2953 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
e07802fc 2954echo "configure:2955: checking "for --enable-unicode"" >&5
10f2d63a
VZ
2955 no_cache=0
2956 # Check whether --enable-unicode or --disable-unicode was given.
2957if test "${enable_unicode+set}" = set; then
2958 enableval="$enable_unicode"
2959
2960 if test "$enableval" = yes; then
2961 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2962 else
2963 ac_cv_use_unicode='wxUSE_UNICODE=no'
2964 fi
2965
2966else
2967
2968 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2969 if test "x$LINE" != x ; then
2970 eval "DEFAULT_$LINE"
2971 else
2972 no_cache=1
2973 fi
2974
2975 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2976
2977fi
2978
2979
2980 eval "$ac_cv_use_unicode"
2981 if test "$no_cache" != 1; then
2982 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2983 fi
2984
2985 if test "$wxUSE_UNICODE" = yes; then
2986 echo "$ac_t""yes" 1>&6
2987 else
2988 echo "$ac_t""no" 1>&6
2989 fi
2990
2991
2992 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
e07802fc 2993echo "configure:2994: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
2994 no_cache=0
2995 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
2996if test "${enable_wcsrtombs+set}" = set; then
2997 enableval="$enable_wcsrtombs"
2998
2999 if test "$enableval" = yes; then
3000 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3001 else
3002 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3003 fi
3004
3005else
3006
3007 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3008 if test "x$LINE" != x ; then
3009 eval "DEFAULT_$LINE"
3010 else
3011 no_cache=1
3012 fi
3013
3014 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3015
3016fi
3017
3018
3019 eval "$ac_cv_use_wcsrtombs"
3020 if test "$no_cache" != 1; then
3021 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3022 fi
3023
3024 if test "$wxUSE_WCSRTOMBS" = yes; then
3025 echo "$ac_t""yes" 1>&6
3026 else
3027 echo "$ac_t""no" 1>&6
3028 fi
3029
3030
3031 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
e07802fc 3032echo "configure:3033: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3033 no_cache=0
3034 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3035if test "${enable_wxprintfv+set}" = set; then
3036 enableval="$enable_wxprintfv"
3037
3038 if test "$enableval" = yes; then
3039 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3040 else
3041 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3042 fi
3043
3044else
3045
3046 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3047 if test "x$LINE" != x ; then
3048 eval "DEFAULT_$LINE"
3049 else
3050 no_cache=1
3051 fi
3052
3053 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3054
3055fi
3056
3057
3058 eval "$ac_cv_use_wxprintfv"
3059 if test "$no_cache" != 1; then
3060 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3061 fi
3062
3063 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3064 echo "$ac_t""yes" 1>&6
3065 else
3066 echo "$ac_t""no" 1>&6
3067 fi
3068
3069
3070 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
e07802fc 3071echo "configure:3072: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3072 no_cache=0
3073 # Check whether --enable-joystick or --disable-joystick was given.
3074if test "${enable_joystick+set}" = set; then
3075 enableval="$enable_joystick"
3076
3077 if test "$enableval" = yes; then
3078 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3079 else
3080 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3081 fi
3082
3083else
3084
3085 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3086 if test "x$LINE" != x ; then
3087 eval "DEFAULT_$LINE"
3088 else
3089 no_cache=1
3090 fi
3091
3092 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3093
3094fi
3095
3096
3097 eval "$ac_cv_use_joystick"
3098 if test "$no_cache" != 1; then
3099 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3100 fi
3101
3102 if test "$wxUSE_JOYSTICK" = yes; then
3103 echo "$ac_t""yes" 1>&6
3104 else
3105 echo "$ac_t""no" 1>&6
3106 fi
3107
3108
3109 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
e07802fc 3110echo "configure:3111: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3111 no_cache=0
3112 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3113if test "${enable_std_iostreams+set}" = set; then
3114 enableval="$enable_std_iostreams"
3115
3116 if test "$enableval" = yes; then
3117 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3118 else
3119 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3120 fi
3121
3122else
3123
3124 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3125 if test "x$LINE" != x ; then
3126 eval "DEFAULT_$LINE"
3127 else
3128 no_cache=1
3129 fi
3130
3131 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3132
3133fi
3134
3135
3136 eval "$ac_cv_use_std_iostreams"
3137 if test "$no_cache" != 1; then
3138 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3139 fi
3140
3141 if test "$wxUSE_STD_IOSTREAM" = yes; then
3142 echo "$ac_t""yes" 1>&6
3143 else
3144 echo "$ac_t""no" 1>&6
3145 fi
3146
3147
3148 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
e07802fc 3149echo "configure:3150: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3150 no_cache=0
3151 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3152if test "${enable_fs_inet+set}" = set; then
3153 enableval="$enable_fs_inet"
3154
3155 if test "$enableval" = yes; then
3156 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3157 else
3158 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3159 fi
3160
3161else
3162
3163 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3164 if test "x$LINE" != x ; then
3165 eval "DEFAULT_$LINE"
3166 else
3167 no_cache=1
3168 fi
3169
3170 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3171
3172fi
3173
3174
3175 eval "$ac_cv_use_fs_inet"
3176 if test "$no_cache" != 1; then
3177 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3178 fi
3179
3180 if test "$wxUSE_FS_INET" = yes; then
3181 echo "$ac_t""yes" 1>&6
3182 else
3183 echo "$ac_t""no" 1>&6
3184 fi
3185
3186
3187 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
e07802fc 3188echo "configure:3189: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3189 no_cache=0
3190 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3191if test "${enable_fs_zip+set}" = set; then
3192 enableval="$enable_fs_zip"
3193
3194 if test "$enableval" = yes; then
3195 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3196 else
3197 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3198 fi
3199
3200else
3201
3202 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3203 if test "x$LINE" != x ; then
3204 eval "DEFAULT_$LINE"
3205 else
3206 no_cache=1
3207 fi
3208
3209 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3210
3211fi
3212
3213
3214 eval "$ac_cv_use_fs_zip"
3215 if test "$no_cache" != 1; then
3216 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3217 fi
3218
3219 if test "$wxUSE_FS_ZIP" = yes; then
3220 echo "$ac_t""yes" 1>&6
3221 else
3222 echo "$ac_t""no" 1>&6
3223 fi
3224
3225
3226 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
e07802fc 3227echo "configure:3228: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3228 no_cache=0
3229 # Check whether --enable-zipstream or --disable-zipstream was given.
3230if test "${enable_zipstream+set}" = set; then
3231 enableval="$enable_zipstream"
3232
3233 if test "$enableval" = yes; then
3234 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3235 else
3236 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3237 fi
3238
3239else
3240
3241 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3242 if test "x$LINE" != x ; then
3243 eval "DEFAULT_$LINE"
3244 else
3245 no_cache=1
3246 fi
3247
3248 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3249
3250fi
3251
3252
3253 eval "$ac_cv_use_zipstream"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_ZIPSTREAM" = yes; then
3259 echo "$ac_t""yes" 1>&6
3260 else
3261 echo "$ac_t""no" 1>&6
3262 fi
3263
3264
3265
3266
3267 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
e07802fc 3268echo "configure:3269: checking "for --enable-threads"" >&5
10f2d63a
VZ
3269 no_cache=0
3270 # Check whether --enable-threads or --disable-threads was given.
3271if test "${enable_threads+set}" = set; then
3272 enableval="$enable_threads"
3273
3274 if test "$enableval" = yes; then
3275 ac_cv_use_threads='wxUSE_THREADS=yes'
3276 else
3277 ac_cv_use_threads='wxUSE_THREADS=no'
3278 fi
3279
3280else
3281
3282 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3283 if test "x$LINE" != x ; then
3284 eval "DEFAULT_$LINE"
3285 else
3286 no_cache=1
3287 fi
3288
3289 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3290
3291fi
3292
3293
3294 eval "$ac_cv_use_threads"
3295 if test "$no_cache" != 1; then
3296 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3297 fi
3298
3299 if test "$wxUSE_THREADS" = yes; then
3300 echo "$ac_t""yes" 1>&6
3301 else
3302 echo "$ac_t""no" 1>&6
3303 fi
3304
3305
3306 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
e07802fc 3307echo "configure:3308: checking "for --enable-serial"" >&5
10f2d63a
VZ
3308 no_cache=0
3309 # Check whether --enable-serial or --disable-serial was given.
3310if test "${enable_serial+set}" = set; then
3311 enableval="$enable_serial"
3312
3313 if test "$enableval" = yes; then
3314 ac_cv_use_serial='wxUSE_SERIAL=yes'
3315 else
3316 ac_cv_use_serial='wxUSE_SERIAL=no'
3317 fi
3318
3319else
3320
3321 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3322 if test "x$LINE" != x ; then
3323 eval "DEFAULT_$LINE"
3324 else
3325 no_cache=1
3326 fi
3327
3328 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3329
3330fi
3331
3332
3333 eval "$ac_cv_use_serial"
3334 if test "$no_cache" != 1; then
3335 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3336 fi
3337
3338 if test "$wxUSE_SERIAL" = yes; then
3339 echo "$ac_t""yes" 1>&6
3340 else
3341 echo "$ac_t""no" 1>&6
3342 fi
3343
3344
b12915c1
VZ
3345if test "$wxUSE_GUI" = "yes"; then
3346
10f2d63a
VZ
3347
3348
3349 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
e07802fc 3350echo "configure:3351: checking "for --enable-docview"" >&5
10f2d63a
VZ
3351 no_cache=0
3352 # Check whether --enable-docview or --disable-docview was given.
3353if test "${enable_docview+set}" = set; then
3354 enableval="$enable_docview"
3355
3356 if test "$enableval" = yes; then
3357 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3358 else
3359 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3360 fi
3361
3362else
3363
3364 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3365 if test "x$LINE" != x ; then
3366 eval "DEFAULT_$LINE"
3367 else
3368 no_cache=1
3369 fi
3370
3371 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3372
3373fi
3374
3375
3376 eval "$ac_cv_use_docview"
3377 if test "$no_cache" != 1; then
3378 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3379 fi
3380
3381 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3382 echo "$ac_t""yes" 1>&6
3383 else
3384 echo "$ac_t""no" 1>&6
3385 fi
3386
3387
3388 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
e07802fc 3389echo "configure:3390: checking "for --enable-help"" >&5
10f2d63a
VZ
3390 no_cache=0
3391 # Check whether --enable-help or --disable-help was given.
3392if test "${enable_help+set}" = set; then
3393 enableval="$enable_help"
3394
3395 if test "$enableval" = yes; then
3396 ac_cv_use_help='wxUSE_HELP=yes'
3397 else
3398 ac_cv_use_help='wxUSE_HELP=no'
3399 fi
3400
3401else
3402
3403 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3404 if test "x$LINE" != x ; then
3405 eval "DEFAULT_$LINE"
3406 else
3407 no_cache=1
3408 fi
3409
3410 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3411
3412fi
3413
3414
3415 eval "$ac_cv_use_help"
3416 if test "$no_cache" != 1; then
3417 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3418 fi
3419
3420 if test "$wxUSE_HELP" = yes; then
3421 echo "$ac_t""yes" 1>&6
3422 else
3423 echo "$ac_t""no" 1>&6
3424 fi
3425
3426
3427 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
e07802fc 3428echo "configure:3429: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3429 no_cache=0
3430 # Check whether --enable-constraints or --disable-constraints was given.
3431if test "${enable_constraints+set}" = set; then
3432 enableval="$enable_constraints"
3433
3434 if test "$enableval" = yes; then
3435 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3436 else
3437 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3438 fi
3439
3440else
3441
3442 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3443 if test "x$LINE" != x ; then
3444 eval "DEFAULT_$LINE"
3445 else
3446 no_cache=1
3447 fi
3448
3449 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3450
3451fi
3452
3453
3454 eval "$ac_cv_use_constraints"
3455 if test "$no_cache" != 1; then
3456 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3457 fi
3458
3459 if test "$wxUSE_CONSTRAINTS" = yes; then
3460 echo "$ac_t""yes" 1>&6
3461 else
3462 echo "$ac_t""no" 1>&6
3463 fi
3464
3465
3466 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
e07802fc 3467echo "configure:3468: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3468 no_cache=0
3469 # Check whether --enable-printarch or --disable-printarch was given.
3470if test "${enable_printarch+set}" = set; then
3471 enableval="$enable_printarch"
3472
3473 if test "$enableval" = yes; then
3474 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3475 else
3476 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3477 fi
3478
3479else
3480
3481 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3482 if test "x$LINE" != x ; then
3483 eval "DEFAULT_$LINE"
3484 else
3485 no_cache=1
3486 fi
3487
3488 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3489
3490fi
3491
3492
3493 eval "$ac_cv_use_printarch"
3494 if test "$no_cache" != 1; then
3495 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3496 fi
3497
3498 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3499 echo "$ac_t""yes" 1>&6
3500 else
3501 echo "$ac_t""no" 1>&6
3502 fi
3503
3504
3505 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
e07802fc 3506echo "configure:3507: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3507 no_cache=0
3508 # Check whether --enable-mdi or --disable-mdi was given.
3509if test "${enable_mdi+set}" = set; then
3510 enableval="$enable_mdi"
3511
3512 if test "$enableval" = yes; then
3513 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3514 else
3515 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3516 fi
3517
3518else
3519
3520 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3521 if test "x$LINE" != x ; then
3522 eval "DEFAULT_$LINE"
3523 else
3524 no_cache=1
3525 fi
3526
3527 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3528
3529fi
3530
3531
3532 eval "$ac_cv_use_mdi"
3533 if test "$no_cache" != 1; then
3534 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3535 fi
3536
3537 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3538 echo "$ac_t""yes" 1>&6
3539 else
3540 echo "$ac_t""no" 1>&6
3541 fi
3542
3543
3544
3545 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
e07802fc 3546echo "configure:3547: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3547 no_cache=0
3548 # Check whether --enable-postscript or --disable-postscript was given.
3549if test "${enable_postscript+set}" = set; then
3550 enableval="$enable_postscript"
3551
3552 if test "$enableval" = yes; then
3553 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3554 else
3555 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3556 fi
3557
3558else
3559
3560 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3561 if test "x$LINE" != x ; then
3562 eval "DEFAULT_$LINE"
3563 else
3564 no_cache=1
3565 fi
3566
3567 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3568
3569fi
3570
3571
3572 eval "$ac_cv_use_postscript"
3573 if test "$no_cache" != 1; then
3574 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3575 fi
3576
3577 if test "$wxUSE_POSTSCRIPT" = yes; then
3578 echo "$ac_t""yes" 1>&6
3579 else
3580 echo "$ac_t""no" 1>&6
3581 fi
3582
3583
3584
3585
3586 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
e07802fc 3587echo "configure:3588: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3588 no_cache=0
3589 # Check whether --enable-prologio or --disable-prologio was given.
3590if test "${enable_prologio+set}" = set; then
3591 enableval="$enable_prologio"
3592
3593 if test "$enableval" = yes; then
3594 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3595 else
3596 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3597 fi
3598
3599else
3600
3601 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3602 if test "x$LINE" != x ; then
3603 eval "DEFAULT_$LINE"
3604 else
3605 no_cache=1
3606 fi
3607
3608 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3609
3610fi
3611
3612
3613 eval "$ac_cv_use_prologio"
3614 if test "$no_cache" != 1; then
3615 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3616 fi
3617
3618 if test "$wxUSE_PROLOGIO" = yes; then
3619 echo "$ac_t""yes" 1>&6
3620 else
3621 echo "$ac_t""no" 1>&6
3622 fi
3623
3624
3625 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
e07802fc 3626echo "configure:3627: checking "for --enable-resources"" >&5
10f2d63a
VZ
3627 no_cache=0
3628 # Check whether --enable-resources or --disable-resources was given.
3629if test "${enable_resources+set}" = set; then
3630 enableval="$enable_resources"
3631
3632 if test "$enableval" = yes; then
3633 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3634 else
3635 ac_cv_use_resources='wxUSE_RESOURCES=no'
3636 fi
3637
3638else
3639
3640 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3641 if test "x$LINE" != x ; then
3642 eval "DEFAULT_$LINE"
3643 else
3644 no_cache=1
3645 fi
3646
3647 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3648
3649fi
3650
3651
3652 eval "$ac_cv_use_resources"
3653 if test "$no_cache" != 1; then
3654 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3655 fi
3656
3657 if test "$wxUSE_RESOURCES" = yes; then
3658 echo "$ac_t""yes" 1>&6
3659 else
3660 echo "$ac_t""no" 1>&6
3661 fi
3662
3663
3664
3665 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
e07802fc 3666echo "configure:3667: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3667 no_cache=0
3668 # Check whether --enable-xresources or --disable-xresources was given.
3669if test "${enable_xresources+set}" = set; then
3670 enableval="$enable_xresources"
3671
3672 if test "$enableval" = yes; then
3673 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3674 else
3675 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3676 fi
3677
3678else
3679
3680 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3681 if test "x$LINE" != x ; then
3682 eval "DEFAULT_$LINE"
3683 else
3684 no_cache=1
3685 fi
3686
3687 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3688
3689fi
3690
3691
3692 eval "$ac_cv_use_xresources"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_X_RESOURCES" = yes; then
3698 echo "$ac_t""yes" 1>&6
3699 else
3700 echo "$ac_t""no" 1>&6
3701 fi
3702
3703
3704
3705
3706 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
e07802fc 3707echo "configure:3708: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3708 no_cache=0
3709 # Check whether --enable-clipboard or --disable-clipboard was given.
3710if test "${enable_clipboard+set}" = set; then
3711 enableval="$enable_clipboard"
3712
3713 if test "$enableval" = yes; then
3714 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3715 else
3716 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3717 fi
3718
3719else
3720
3721 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3722 if test "x$LINE" != x ; then
3723 eval "DEFAULT_$LINE"
3724 else
3725 no_cache=1
3726 fi
3727
3728 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3729
3730fi
3731
3732
3733 eval "$ac_cv_use_clipboard"
3734 if test "$no_cache" != 1; then
3735 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3736 fi
3737
3738 if test "$wxUSE_CLIPBOARD" = yes; then
3739 echo "$ac_t""yes" 1>&6
3740 else
3741 echo "$ac_t""no" 1>&6
3742 fi
3743
3744
3745 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
e07802fc 3746echo "configure:3747: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3747 no_cache=0
3748 # Check whether --enable-dnd or --disable-dnd was given.
3749if test "${enable_dnd+set}" = set; then
3750 enableval="$enable_dnd"
3751
3752 if test "$enableval" = yes; then
3753 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3754 else
3755 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3756 fi
3757
3758else
3759
3760 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3768
3769fi
3770
3771
3772 eval "$ac_cv_use_dnd"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3778 echo "$ac_t""yes" 1>&6
3779 else
3780 echo "$ac_t""no" 1>&6
3781 fi
3782
3783
3784
3785 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
e07802fc 3786echo "configure:3787: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3787 no_cache=0
3788 # Check whether --enable-wxtree or --disable-wxtree was given.
3789if test "${enable_wxtree+set}" = set; then
3790 enableval="$enable_wxtree"
3791
3792 if test "$enableval" = yes; then
3793 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3794 else
3795 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3796 fi
3797
3798else
3799
3800 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3801 if test "x$LINE" != x ; then
3802 eval "DEFAULT_$LINE"
3803 else
3804 no_cache=1
3805 fi
3806
3807 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3808
3809fi
3810
3811
3812 eval "$ac_cv_use_wxtree"
3813 if test "$no_cache" != 1; then
3814 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3815 fi
3816
3817 if test "$wxUSE_WXTREE" = yes; then
3818 echo "$ac_t""yes" 1>&6
3819 else
3820 echo "$ac_t""no" 1>&6
3821 fi
3822
3823
3824
3825
3826 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
e07802fc 3827echo "configure:3828: checking "for --enable-controls"" >&5
10f2d63a
VZ
3828 no_cache=0
3829 # Check whether --enable-controls or --disable-controls was given.
3830if test "${enable_controls+set}" = set; then
3831 enableval="$enable_controls"
3832
3833 if test "$enableval" = yes; then
3834 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3835 else
3836 ac_cv_use_controls='wxUSE_CONTROLS=no'
3837 fi
3838
3839else
3840
3841 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3842 if test "x$LINE" != x ; then
3843 eval "DEFAULT_$LINE"
3844 else
3845 no_cache=1
3846 fi
3847
3848 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3849
3850fi
3851
3852
3853 eval "$ac_cv_use_controls"
3854 if test "$no_cache" != 1; then
3855 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3856 fi
3857
3858 if test "$wxUSE_CONTROLS" = yes; then
3859 echo "$ac_t""yes" 1>&6
3860 else
3861 echo "$ac_t""no" 1>&6
3862 fi
3863
3864
3865if test "$wxUSE_CONTROLS" = "yes"; then
3866 DEFAULT_wxUSE_ACCEL=yes
3867 DEFAULT_wxUSE_CARET=yes
3868 DEFAULT_wxUSE_COMBOBOX=yes
3869 DEFAULT_wxUSE_BMPBUTTON=yes
3870 DEFAULT_wxUSE_CHECKBOX=yes
3871 DEFAULT_wxUSE_CHECKLISTBOX=yes
3872 DEFAULT_wxUSE_CHOICE=yes
3873 DEFAULT_wxUSE_GAUGE=yes
3874 DEFAULT_wxUSE_GRID=yes
fc9c7c09 3875 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
3876 DEFAULT_wxUSE_IMAGLIST=yes
3877 DEFAULT_wxUSE_LISTBOX=yes
3878 DEFAULT_wxUSE_LISTCTRL=yes
3879 DEFAULT_wxUSE_NOTEBOOK=yes
3880 DEFAULT_wxUSE_RADIOBOX=yes
3881 DEFAULT_wxUSE_RADIOBTN=yes
3882 DEFAULT_wxUSE_SASH=yes
3883 DEFAULT_wxUSE_SCROLLBAR=yes
3884 DEFAULT_wxUSE_SLIDER=yes
3885 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 3886 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
3887 DEFAULT_wxUSE_SPLITTER=yes
3888 DEFAULT_wxUSE_STATBMP=yes
3889 DEFAULT_wxUSE_STATBOX=yes
3890 DEFAULT_wxUSE_STATLINE=yes
3891 DEFAULT_wxUSE_STATUSBAR=yes
3892 DEFAULT_wxUSE_TAB_DIALOG=yes
3893 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
3894 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3895 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
3896 DEFAULT_wxUSE_TOOLTIPS=yes
3897 DEFAULT_wxUSE_TREECTRL=yes
3898elif test "$wxUSE_CONTROLS" = "no"; then
3899 DEFAULT_wxUSE_ACCEL=no
3900 DEFAULT_wxUSE_CARET=no
3901 DEFAULT_wxUSE_COMBOBOX=no
3902 DEFAULT_wxUSE_BMPBUTTON=no
3903 DEFAULT_wxUSE_CHECKBOX=no
3904 DEFAULT_wxUSE_CHECKLISTBOX=no
3905 DEFAULT_wxUSE_CHOICE=no
3906 DEFAULT_wxUSE_GAUGE=no
3907 DEFAULT_wxUSE_GRID=no
3908 DEFAULT_wxUSE_NEW_GRID=no
3909 DEFAULT_wxUSE_IMAGLIST=no
3910 DEFAULT_wxUSE_LISTBOX=no
3911 DEFAULT_wxUSE_LISTCTRL=no
3912 DEFAULT_wxUSE_NOTEBOOK=no
3913 DEFAULT_wxUSE_RADIOBOX=no
3914 DEFAULT_wxUSE_RADIOBTN=no
3915 DEFAULT_wxUSE_SASH=no
3916 DEFAULT_wxUSE_SCROLLBAR=no
3917 DEFAULT_wxUSE_SLIDER=no
3918 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 3919 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
3920 DEFAULT_wxUSE_SPLITTER=no
3921 DEFAULT_wxUSE_STATBMP=no
3922 DEFAULT_wxUSE_STATBOX=no
3923 DEFAULT_wxUSE_STATLINE=no
3924 DEFAULT_wxUSE_STATUSBAR=no
3925 DEFAULT_wxUSE_TAB_DIALOG=no
3926 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
3927 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
3928 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
3929 DEFAULT_wxUSE_TOOLTIPS=no
3930 DEFAULT_wxUSE_TREECTRL=no
3931fi
3932
3933
3934 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
e07802fc 3935echo "configure:3936: checking "for --enable-accel"" >&5
10f2d63a
VZ
3936 no_cache=0
3937 # Check whether --enable-accel or --disable-accel was given.
3938if test "${enable_accel+set}" = set; then
3939 enableval="$enable_accel"
3940
3941 if test "$enableval" = yes; then
3942 ac_cv_use_accel='wxUSE_ACCEL=yes'
3943 else
3944 ac_cv_use_accel='wxUSE_ACCEL=no'
3945 fi
3946
3947else
3948
3949 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3950 if test "x$LINE" != x ; then
3951 eval "DEFAULT_$LINE"
3952 else
3953 no_cache=1
3954 fi
3955
3956 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3957
3958fi
3959
3960
3961 eval "$ac_cv_use_accel"
3962 if test "$no_cache" != 1; then
3963 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3964 fi
3965
3966 if test "$wxUSE_ACCEL" = yes; then
3967 echo "$ac_t""yes" 1>&6
3968 else
3969 echo "$ac_t""no" 1>&6
3970 fi
3971
3972
3973 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
e07802fc 3974echo "configure:3975: checking "for --enable-caret"" >&5
10f2d63a
VZ
3975 no_cache=0
3976 # Check whether --enable-caret or --disable-caret was given.
3977if test "${enable_caret+set}" = set; then
3978 enableval="$enable_caret"
3979
3980 if test "$enableval" = yes; then
3981 ac_cv_use_caret='wxUSE_CARET=yes'
3982 else
3983 ac_cv_use_caret='wxUSE_CARET=no'
3984 fi
3985
3986else
3987
3988 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3989 if test "x$LINE" != x ; then
3990 eval "DEFAULT_$LINE"
3991 else
3992 no_cache=1
3993 fi
3994
3995 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3996
3997fi
3998
3999
4000 eval "$ac_cv_use_caret"
4001 if test "$no_cache" != 1; then
4002 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4003 fi
4004
4005 if test "$wxUSE_CARET" = yes; then
4006 echo "$ac_t""yes" 1>&6
4007 else
4008 echo "$ac_t""no" 1>&6
4009 fi
4010
4011
4012 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
e07802fc 4013echo "configure:4014: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4014 no_cache=0
4015 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4016if test "${enable_bmpbutton+set}" = set; then
4017 enableval="$enable_bmpbutton"
4018
4019 if test "$enableval" = yes; then
4020 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4021 else
4022 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4023 fi
4024
4025else
4026
4027 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4028 if test "x$LINE" != x ; then
4029 eval "DEFAULT_$LINE"
4030 else
4031 no_cache=1
4032 fi
4033
4034 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4035
4036fi
4037
4038
4039 eval "$ac_cv_use_bmpbutton"
4040 if test "$no_cache" != 1; then
4041 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4042 fi
4043
4044 if test "$wxUSE_BMPBUTTON" = yes; then
4045 echo "$ac_t""yes" 1>&6
4046 else
4047 echo "$ac_t""no" 1>&6
4048 fi
4049
4050
4051 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
e07802fc 4052echo "configure:4053: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4053 no_cache=0
4054 # Check whether --enable-checkbox or --disable-checkbox was given.
4055if test "${enable_checkbox+set}" = set; then
4056 enableval="$enable_checkbox"
4057
4058 if test "$enableval" = yes; then
4059 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4060 else
4061 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4062 fi
4063
4064else
4065
4066 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4067 if test "x$LINE" != x ; then
4068 eval "DEFAULT_$LINE"
4069 else
4070 no_cache=1
4071 fi
4072
4073 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4074
4075fi
4076
4077
4078 eval "$ac_cv_use_checkbox"
4079 if test "$no_cache" != 1; then
4080 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4081 fi
4082
4083 if test "$wxUSE_CHECKBOX" = yes; then
4084 echo "$ac_t""yes" 1>&6
4085 else
4086 echo "$ac_t""no" 1>&6
4087 fi
4088
4089
4090 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
e07802fc 4091echo "configure:4092: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4092 no_cache=0
4093 # Check whether --enable-checklst or --disable-checklst was given.
4094if test "${enable_checklst+set}" = set; then
4095 enableval="$enable_checklst"
4096
4097 if test "$enableval" = yes; then
4098 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4099 else
4100 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4101 fi
4102
4103else
4104
4105 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4106 if test "x$LINE" != x ; then
4107 eval "DEFAULT_$LINE"
4108 else
4109 no_cache=1
4110 fi
4111
4112 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4113
4114fi
4115
4116
4117 eval "$ac_cv_use_checklst"
4118 if test "$no_cache" != 1; then
4119 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4120 fi
4121
4122 if test "$wxUSE_CHECKLST" = yes; then
4123 echo "$ac_t""yes" 1>&6
4124 else
4125 echo "$ac_t""no" 1>&6
4126 fi
4127
4128
4129 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
e07802fc 4130echo "configure:4131: checking "for --enable-choice"" >&5
10f2d63a
VZ
4131 no_cache=0
4132 # Check whether --enable-choice or --disable-choice was given.
4133if test "${enable_choice+set}" = set; then
4134 enableval="$enable_choice"
4135
4136 if test "$enableval" = yes; then
4137 ac_cv_use_choice='wxUSE_CHOICE=yes'
4138 else
4139 ac_cv_use_choice='wxUSE_CHOICE=no'
4140 fi
4141
4142else
4143
4144 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4145 if test "x$LINE" != x ; then
4146 eval "DEFAULT_$LINE"
4147 else
4148 no_cache=1
4149 fi
4150
4151 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4152
4153fi
4154
4155
4156 eval "$ac_cv_use_choice"
4157 if test "$no_cache" != 1; then
4158 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4159 fi
4160
4161 if test "$wxUSE_CHOICE" = yes; then
4162 echo "$ac_t""yes" 1>&6
4163 else
4164 echo "$ac_t""no" 1>&6
4165 fi
4166
4167
4168 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
e07802fc 4169echo "configure:4170: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4170 no_cache=0
4171 # Check whether --enable-combobox or --disable-combobox was given.
4172if test "${enable_combobox+set}" = set; then
4173 enableval="$enable_combobox"
4174
4175 if test "$enableval" = yes; then
4176 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4177 else
4178 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4179 fi
4180
4181else
4182
4183 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4184 if test "x$LINE" != x ; then
4185 eval "DEFAULT_$LINE"
4186 else
4187 no_cache=1
4188 fi
4189
4190 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4191
4192fi
4193
4194
4195 eval "$ac_cv_use_combobox"
4196 if test "$no_cache" != 1; then
4197 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4198 fi
4199
4200 if test "$wxUSE_COMBOBOX" = yes; then
4201 echo "$ac_t""yes" 1>&6
4202 else
4203 echo "$ac_t""no" 1>&6
4204 fi
4205
4206
4207 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
e07802fc 4208echo "configure:4209: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4209 no_cache=0
4210 # Check whether --enable-gauge or --disable-gauge was given.
4211if test "${enable_gauge+set}" = set; then
4212 enableval="$enable_gauge"
4213
4214 if test "$enableval" = yes; then
4215 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4216 else
4217 ac_cv_use_gauge='wxUSE_GAUGE=no'
4218 fi
4219
4220else
4221
4222 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4223 if test "x$LINE" != x ; then
4224 eval "DEFAULT_$LINE"
4225 else
4226 no_cache=1
4227 fi
4228
4229 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4230
4231fi
4232
4233
4234 eval "$ac_cv_use_gauge"
4235 if test "$no_cache" != 1; then
4236 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4237 fi
4238
4239 if test "$wxUSE_GAUGE" = yes; then
4240 echo "$ac_t""yes" 1>&6
4241 else
4242 echo "$ac_t""no" 1>&6
4243 fi
4244
4245
4246 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
e07802fc 4247echo "configure:4248: checking "for --enable-grid"" >&5
10f2d63a
VZ
4248 no_cache=0
4249 # Check whether --enable-grid or --disable-grid was given.
4250if test "${enable_grid+set}" = set; then
4251 enableval="$enable_grid"
4252
4253 if test "$enableval" = yes; then
4254 ac_cv_use_grid='wxUSE_GRID=yes'
4255 else
4256 ac_cv_use_grid='wxUSE_GRID=no'
4257 fi
4258
4259else
4260
4261 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4262 if test "x$LINE" != x ; then
4263 eval "DEFAULT_$LINE"
4264 else
4265 no_cache=1
4266 fi
4267
4268 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4269
4270fi
4271
4272
4273 eval "$ac_cv_use_grid"
4274 if test "$no_cache" != 1; then
4275 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4276 fi
4277
4278 if test "$wxUSE_GRID" = yes; then
4279 echo "$ac_t""yes" 1>&6
4280 else
4281 echo "$ac_t""no" 1>&6
4282 fi
4283
4284
4285 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
e07802fc 4286echo "configure:4287: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4287 no_cache=0
4288 # Check whether --enable-newgrid or --disable-newgrid was given.
4289if test "${enable_newgrid+set}" = set; then
4290 enableval="$enable_newgrid"
4291
4292 if test "$enableval" = yes; then
4293 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4294 else
4295 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4296 fi
4297
4298else
4299
4300 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4301 if test "x$LINE" != x ; then
4302 eval "DEFAULT_$LINE"
4303 else
4304 no_cache=1
4305 fi
4306
4307 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4308
4309fi
4310
4311
4312 eval "$ac_cv_use_newgrid"
4313 if test "$no_cache" != 1; then
4314 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4315 fi
4316
4317 if test "$wxUSE_NEW_GRID" = yes; then
4318 echo "$ac_t""yes" 1>&6
4319 else
4320 echo "$ac_t""no" 1>&6
4321 fi
4322
4323
4324 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
e07802fc 4325echo "configure:4326: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4326 no_cache=0
4327 # Check whether --enable-imaglist or --disable-imaglist was given.
4328if test "${enable_imaglist+set}" = set; then
4329 enableval="$enable_imaglist"
4330
4331 if test "$enableval" = yes; then
4332 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4333 else
4334 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4335 fi
4336
4337else
4338
4339 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4340 if test "x$LINE" != x ; then
4341 eval "DEFAULT_$LINE"
4342 else
4343 no_cache=1
4344 fi
4345
4346 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4347
4348fi
4349
4350
4351 eval "$ac_cv_use_imaglist"
4352 if test "$no_cache" != 1; then
4353 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4354 fi
4355
4356 if test "$wxUSE_IMAGLIST" = yes; then
4357 echo "$ac_t""yes" 1>&6
4358 else
4359 echo "$ac_t""no" 1>&6
4360 fi
4361
4362
4363 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
e07802fc 4364echo "configure:4365: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4365 no_cache=0
4366 # Check whether --enable-listbox or --disable-listbox was given.
4367if test "${enable_listbox+set}" = set; then
4368 enableval="$enable_listbox"
4369
4370 if test "$enableval" = yes; then
4371 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4372 else
4373 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4374 fi
4375
4376else
4377
4378 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4379 if test "x$LINE" != x ; then
4380 eval "DEFAULT_$LINE"
4381 else
4382 no_cache=1
4383 fi
4384
4385 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4386
4387fi
4388
4389
4390 eval "$ac_cv_use_listbox"
4391 if test "$no_cache" != 1; then
4392 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4393 fi
4394
4395 if test "$wxUSE_LISTBOX" = yes; then
4396 echo "$ac_t""yes" 1>&6
4397 else
4398 echo "$ac_t""no" 1>&6
4399 fi
4400
4401
4402 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
e07802fc 4403echo "configure:4404: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4404 no_cache=0
4405 # Check whether --enable-listctrl or --disable-listctrl was given.
4406if test "${enable_listctrl+set}" = set; then
4407 enableval="$enable_listctrl"
4408
4409 if test "$enableval" = yes; then
4410 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4411 else
4412 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4413 fi
4414
4415else
4416
4417 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4418 if test "x$LINE" != x ; then
4419 eval "DEFAULT_$LINE"
4420 else
4421 no_cache=1
4422 fi
4423
4424 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4425
4426fi
4427
4428
4429 eval "$ac_cv_use_listctrl"
4430 if test "$no_cache" != 1; then
4431 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4432 fi
4433
4434 if test "$wxUSE_LISTCTRL" = yes; then
4435 echo "$ac_t""yes" 1>&6
4436 else
4437 echo "$ac_t""no" 1>&6
4438 fi
4439
4440
4441 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
e07802fc 4442echo "configure:4443: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4443 no_cache=0
4444 # Check whether --enable-notebook or --disable-notebook was given.
4445if test "${enable_notebook+set}" = set; then
4446 enableval="$enable_notebook"
4447
4448 if test "$enableval" = yes; then
4449 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4450 else
4451 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4452 fi
4453
4454else
4455
4456 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4457 if test "x$LINE" != x ; then
4458 eval "DEFAULT_$LINE"
4459 else
4460 no_cache=1
4461 fi
4462
4463 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4464
4465fi
4466
4467
4468 eval "$ac_cv_use_notebook"
4469 if test "$no_cache" != 1; then
4470 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4471 fi
4472
4473 if test "$wxUSE_NOTEBOOK" = yes; then
4474 echo "$ac_t""yes" 1>&6
4475 else
4476 echo "$ac_t""no" 1>&6
4477 fi
4478
4479
4480 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
e07802fc 4481echo "configure:4482: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4482 no_cache=0
4483 # Check whether --enable-radiobox or --disable-radiobox was given.
4484if test "${enable_radiobox+set}" = set; then
4485 enableval="$enable_radiobox"
4486
4487 if test "$enableval" = yes; then
4488 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4489 else
4490 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4491 fi
4492
4493else
4494
4495 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4496 if test "x$LINE" != x ; then
4497 eval "DEFAULT_$LINE"
4498 else
4499 no_cache=1
4500 fi
4501
4502 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4503
4504fi
4505
4506
4507 eval "$ac_cv_use_radiobox"
4508 if test "$no_cache" != 1; then
4509 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4510 fi
4511
4512 if test "$wxUSE_RADIOBOX" = yes; then
4513 echo "$ac_t""yes" 1>&6
4514 else
4515 echo "$ac_t""no" 1>&6
4516 fi
4517
4518
4519 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
e07802fc 4520echo "configure:4521: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4521 no_cache=0
4522 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4523if test "${enable_radiobtn+set}" = set; then
4524 enableval="$enable_radiobtn"
4525
4526 if test "$enableval" = yes; then
4527 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4528 else
4529 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4530 fi
4531
4532else
4533
4534 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4535 if test "x$LINE" != x ; then
4536 eval "DEFAULT_$LINE"
4537 else
4538 no_cache=1
4539 fi
4540
4541 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4542
4543fi
4544
4545
4546 eval "$ac_cv_use_radiobtn"
4547 if test "$no_cache" != 1; then
4548 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4549 fi
4550
4551 if test "$wxUSE_RADIOBTN" = yes; then
4552 echo "$ac_t""yes" 1>&6
4553 else
4554 echo "$ac_t""no" 1>&6
4555 fi
4556
4557
4558 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
e07802fc 4559echo "configure:4560: checking "for --enable-sash"" >&5
10f2d63a
VZ
4560 no_cache=0
4561 # Check whether --enable-sash or --disable-sash was given.
4562if test "${enable_sash+set}" = set; then
4563 enableval="$enable_sash"
4564
4565 if test "$enableval" = yes; then
4566 ac_cv_use_sash='wxUSE_SASH=yes'
4567 else
4568 ac_cv_use_sash='wxUSE_SASH=no'
4569 fi
4570
4571else
4572
4573 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4574 if test "x$LINE" != x ; then
4575 eval "DEFAULT_$LINE"
4576 else
4577 no_cache=1
4578 fi
4579
4580 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4581
4582fi
4583
4584
4585 eval "$ac_cv_use_sash"
4586 if test "$no_cache" != 1; then
4587 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4588 fi
4589
4590 if test "$wxUSE_SASH" = yes; then
4591 echo "$ac_t""yes" 1>&6
4592 else
4593 echo "$ac_t""no" 1>&6
4594 fi
4595
4596
4597 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
e07802fc 4598echo "configure:4599: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4599 no_cache=0
4600 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4601if test "${enable_scrollbar+set}" = set; then
4602 enableval="$enable_scrollbar"
4603
4604 if test "$enableval" = yes; then
4605 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4606 else
4607 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4608 fi
4609
4610else
4611
4612 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4613 if test "x$LINE" != x ; then
4614 eval "DEFAULT_$LINE"
4615 else
4616 no_cache=1
4617 fi
4618
4619 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4620
4621fi
4622
4623
4624 eval "$ac_cv_use_scrollbar"
4625 if test "$no_cache" != 1; then
4626 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4627 fi
4628
4629 if test "$wxUSE_SCROLLBAR" = yes; then
4630 echo "$ac_t""yes" 1>&6
4631 else
4632 echo "$ac_t""no" 1>&6
4633 fi
4634
4635
4636 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
e07802fc 4637echo "configure:4638: checking "for --enable-slider"" >&5
10f2d63a
VZ
4638 no_cache=0
4639 # Check whether --enable-slider or --disable-slider was given.
4640if test "${enable_slider+set}" = set; then
4641 enableval="$enable_slider"
4642
4643 if test "$enableval" = yes; then
4644 ac_cv_use_slider='wxUSE_SLIDER=yes'
4645 else
4646 ac_cv_use_slider='wxUSE_SLIDER=no'
4647 fi
4648
4649else
4650
4651 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4652 if test "x$LINE" != x ; then
4653 eval "DEFAULT_$LINE"
4654 else
4655 no_cache=1
4656 fi
4657
4658 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4659
4660fi
4661
4662
4663 eval "$ac_cv_use_slider"
4664 if test "$no_cache" != 1; then
4665 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4666 fi
4667
4668 if test "$wxUSE_SLIDER" = yes; then
4669 echo "$ac_t""yes" 1>&6
4670 else
4671 echo "$ac_t""no" 1>&6
4672 fi
4673
4674
4675 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
e07802fc 4676echo "configure:4677: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4677 no_cache=0
4678 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4679if test "${enable_spinbtn+set}" = set; then
4680 enableval="$enable_spinbtn"
4681
4682 if test "$enableval" = yes; then
4683 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4684 else
4685 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4686 fi
4687
4688else
4689
4690 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4691 if test "x$LINE" != x ; then
4692 eval "DEFAULT_$LINE"
4693 else
4694 no_cache=1
4695 fi
4696
4697 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4698
4699fi
4700
4701
4702 eval "$ac_cv_use_spinbtn"
4703 if test "$no_cache" != 1; then
4704 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4705 fi
4706
4707 if test "$wxUSE_SPINBTN" = yes; then
4708 echo "$ac_t""yes" 1>&6
4709 else
4710 echo "$ac_t""no" 1>&6
4711 fi
4712
4713
56cfaa52 4714 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
e07802fc 4715echo "configure:4716: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4716 no_cache=0
4717 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4718if test "${enable_spinctrl+set}" = set; then
4719 enableval="$enable_spinctrl"
4720
4721 if test "$enableval" = yes; then
4722 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4723 else
4724 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4725 fi
4726
4727else
4728
4729 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4730 if test "x$LINE" != x ; then
4731 eval "DEFAULT_$LINE"
4732 else
4733 no_cache=1
4734 fi
4735
4736 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4737
4738fi
4739
4740
4741 eval "$ac_cv_use_spinctrl"
4742 if test "$no_cache" != 1; then
4743 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4744 fi
4745
4746 if test "$wxUSE_SPINCTRL" = yes; then
4747 echo "$ac_t""yes" 1>&6
4748 else
4749 echo "$ac_t""no" 1>&6
4750 fi
4751
4752
10f2d63a 4753 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
e07802fc 4754echo "configure:4755: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4755 no_cache=0
4756 # Check whether --enable-splitter or --disable-splitter was given.
4757if test "${enable_splitter+set}" = set; then
4758 enableval="$enable_splitter"
4759
4760 if test "$enableval" = yes; then
4761 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4762 else
4763 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4764 fi
4765
4766else
4767
4768 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4769 if test "x$LINE" != x ; then
4770 eval "DEFAULT_$LINE"
4771 else
4772 no_cache=1
4773 fi
4774
4775 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4776
4777fi
4778
4779
4780 eval "$ac_cv_use_splitter"
4781 if test "$no_cache" != 1; then
4782 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4783 fi
4784
4785 if test "$wxUSE_SPLITTER" = yes; then
4786 echo "$ac_t""yes" 1>&6
4787 else
4788 echo "$ac_t""no" 1>&6
4789 fi
4790
4791
4792 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
e07802fc 4793echo "configure:4794: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4794 no_cache=0
4795 # Check whether --enable-statbmp or --disable-statbmp was given.
4796if test "${enable_statbmp+set}" = set; then
4797 enableval="$enable_statbmp"
4798
4799 if test "$enableval" = yes; then
4800 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4801 else
4802 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4803 fi
4804
4805else
4806
4807 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4808 if test "x$LINE" != x ; then
4809 eval "DEFAULT_$LINE"
4810 else
4811 no_cache=1
4812 fi
4813
4814 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4815
4816fi
4817
4818
4819 eval "$ac_cv_use_statbmp"
4820 if test "$no_cache" != 1; then
4821 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4822 fi
4823
4824 if test "$wxUSE_STATBMP" = yes; then
4825 echo "$ac_t""yes" 1>&6
4826 else
4827 echo "$ac_t""no" 1>&6
4828 fi
4829
4830
4831 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
e07802fc 4832echo "configure:4833: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4833 no_cache=0
4834 # Check whether --enable-statbox or --disable-statbox was given.
4835if test "${enable_statbox+set}" = set; then
4836 enableval="$enable_statbox"
4837
4838 if test "$enableval" = yes; then
4839 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4840 else
4841 ac_cv_use_statbox='wxUSE_STATBOX=no'
4842 fi
4843
4844else
4845
4846 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4847 if test "x$LINE" != x ; then
4848 eval "DEFAULT_$LINE"
4849 else
4850 no_cache=1
4851 fi
4852
4853 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4854
4855fi
4856
4857
4858 eval "$ac_cv_use_statbox"
4859 if test "$no_cache" != 1; then
4860 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4861 fi
4862
4863 if test "$wxUSE_STATBOX" = yes; then
4864 echo "$ac_t""yes" 1>&6
4865 else
4866 echo "$ac_t""no" 1>&6
4867 fi
4868
4869
4870 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
e07802fc 4871echo "configure:4872: checking "for --enable-statline"" >&5
10f2d63a
VZ
4872 no_cache=0
4873 # Check whether --enable-statline or --disable-statline was given.
4874if test "${enable_statline+set}" = set; then
4875 enableval="$enable_statline"
4876
4877 if test "$enableval" = yes; then
4878 ac_cv_use_statline='wxUSE_STATLINE=yes'
4879 else
4880 ac_cv_use_statline='wxUSE_STATLINE=no'
4881 fi
4882
4883else
4884
4885 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4886 if test "x$LINE" != x ; then
4887 eval "DEFAULT_$LINE"
4888 else
4889 no_cache=1
4890 fi
4891
4892 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4893
4894fi
4895
4896
4897 eval "$ac_cv_use_statline"
4898 if test "$no_cache" != 1; then
4899 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4900 fi
4901
4902 if test "$wxUSE_STATLINE" = yes; then
4903 echo "$ac_t""yes" 1>&6
4904 else
4905 echo "$ac_t""no" 1>&6
4906 fi
4907
4908
4909 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
e07802fc 4910echo "configure:4911: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
4911 no_cache=0
4912 # Check whether --enable-statusbar or --disable-statusbar was given.
4913if test "${enable_statusbar+set}" = set; then
4914 enableval="$enable_statusbar"
4915
4916 if test "$enableval" = yes; then
4917 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4918 else
4919 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4920 fi
4921
4922else
4923
4924 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4925 if test "x$LINE" != x ; then
4926 eval "DEFAULT_$LINE"
4927 else
4928 no_cache=1
4929 fi
4930
4931 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4932
4933fi
4934
4935
4936 eval "$ac_cv_use_statusbar"
4937 if test "$no_cache" != 1; then
4938 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4939 fi
4940
4941 if test "$wxUSE_STATUSBAR" = yes; then
4942 echo "$ac_t""yes" 1>&6
4943 else
4944 echo "$ac_t""no" 1>&6
4945 fi
4946
4947
4948 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
e07802fc 4949echo "configure:4950: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
4950 no_cache=0
4951 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4952if test "${enable_tabdialog+set}" = set; then
4953 enableval="$enable_tabdialog"
4954
4955 if test "$enableval" = yes; then
4956 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4957 else
4958 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4959 fi
4960
4961else
4962
4963 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4964 if test "x$LINE" != x ; then
4965 eval "DEFAULT_$LINE"
4966 else
4967 no_cache=1
4968 fi
4969
4970 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4971
4972fi
4973
4974
4975 eval "$ac_cv_use_tabdialog"
4976 if test "$no_cache" != 1; then
4977 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4978 fi
4979
4980 if test "$wxUSE_TABDIALOG" = yes; then
4981 echo "$ac_t""yes" 1>&6
4982 else
4983 echo "$ac_t""no" 1>&6
4984 fi
4985
4986
4987 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
e07802fc 4988echo "configure:4989: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
4989 no_cache=0
4990 # Check whether --enable-toolbar or --disable-toolbar was given.
4991if test "${enable_toolbar+set}" = set; then
4992 enableval="$enable_toolbar"
4993
4994 if test "$enableval" = yes; then
4995 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4996 else
4997 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
4998 fi
4999
5000else
5001
5002 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5003 if test "x$LINE" != x ; then
5004 eval "DEFAULT_$LINE"
5005 else
5006 no_cache=1
5007 fi
5008
5009 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5010
5011fi
5012
5013
5014 eval "$ac_cv_use_toolbar"
5015 if test "$no_cache" != 1; then
5016 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5017 fi
5018
5019 if test "$wxUSE_TOOLBAR" = yes; then
5020 echo "$ac_t""yes" 1>&6
5021 else
5022 echo "$ac_t""no" 1>&6
5023 fi
5024
5025
360d6699 5026 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
e07802fc 5027echo "configure:5028: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5028 no_cache=0
5029 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5030if test "${enable_tbarnative+set}" = set; then
5031 enableval="$enable_tbarnative"
5032
5033 if test "$enableval" = yes; then
5034 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5035 else
5036 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5037 fi
5038
5039else
5040
5041 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5042 if test "x$LINE" != x ; then
5043 eval "DEFAULT_$LINE"
5044 else
5045 no_cache=1
5046 fi
5047
5048 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5049
5050fi
5051
5052
5053 eval "$ac_cv_use_tbarnative"
5054 if test "$no_cache" != 1; then
5055 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5056 fi
5057
5058 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5059 echo "$ac_t""yes" 1>&6
5060 else
5061 echo "$ac_t""no" 1>&6
5062 fi
5063
5064
5065 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
e07802fc 5066echo "configure:5067: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5067 no_cache=0
5068 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5069if test "${enable_tbarsmpl+set}" = set; then
5070 enableval="$enable_tbarsmpl"
5071
5072 if test "$enableval" = yes; then
5073 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5074 else
5075 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5076 fi
5077
5078else
5079
5080 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5081 if test "x$LINE" != x ; then
5082 eval "DEFAULT_$LINE"
5083 else
5084 no_cache=1
5085 fi
5086
5087 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5088
5089fi
5090
5091
5092 eval "$ac_cv_use_tbarsmpl"
5093 if test "$no_cache" != 1; then
5094 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5095 fi
5096
5097 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5098 echo "$ac_t""yes" 1>&6
5099 else
5100 echo "$ac_t""no" 1>&6
5101 fi
5102
5103
10f2d63a 5104 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
e07802fc 5105echo "configure:5106: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5106 no_cache=0
5107 # Check whether --enable-treectrl or --disable-treectrl was given.
5108if test "${enable_treectrl+set}" = set; then
5109 enableval="$enable_treectrl"
5110
5111 if test "$enableval" = yes; then
5112 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5113 else
5114 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5115 fi
5116
5117else
5118
5119 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5120 if test "x$LINE" != x ; then
5121 eval "DEFAULT_$LINE"
5122 else
5123 no_cache=1
5124 fi
5125
5126 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5127
5128fi
5129
5130
5131 eval "$ac_cv_use_treectrl"
5132 if test "$no_cache" != 1; then
5133 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5134 fi
5135
5136 if test "$wxUSE_TREECTRL" = yes; then
5137 echo "$ac_t""yes" 1>&6
5138 else
5139 echo "$ac_t""no" 1>&6
5140 fi
5141
5142
5143
5144
5145 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
e07802fc 5146echo "configure:5147: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5147 no_cache=0
5148 # Check whether --enable-commondlg or --disable-commondlg was given.
5149if test "${enable_commondlg+set}" = set; then
5150 enableval="$enable_commondlg"
5151
5152 if test "$enableval" = yes; then
5153 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5154 else
5155 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5156 fi
5157
5158else
5159
5160 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5161 if test "x$LINE" != x ; then
5162 eval "DEFAULT_$LINE"
5163 else
5164 no_cache=1
5165 fi
5166
5167 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5168
5169fi
5170
5171
5172 eval "$ac_cv_use_commondlg"
5173 if test "$no_cache" != 1; then
5174 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5175 fi
5176
5177 if test "$wxUSE_COMMONDLGS" = yes; then
5178 echo "$ac_t""yes" 1>&6
5179 else
5180 echo "$ac_t""no" 1>&6
5181 fi
5182
5183
5184 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
e07802fc 5185echo "configure:5186: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5186 no_cache=0
5187 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5188if test "${enable_dirdlg+set}" = set; then
5189 enableval="$enable_dirdlg"
5190
5191 if test "$enableval" = yes; then
5192 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5193 else
5194 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5195 fi
5196
5197else
5198
5199 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5200 if test "x$LINE" != x ; then
5201 eval "DEFAULT_$LINE"
5202 else
5203 no_cache=1
5204 fi
5205
5206 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5207
5208fi
5209
5210
5211 eval "$ac_cv_use_dirdlg"
5212 if test "$no_cache" != 1; then
5213 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5214 fi
5215
5216 if test "$wxUSE_DIRDLG" = yes; then
5217 echo "$ac_t""yes" 1>&6
5218 else
5219 echo "$ac_t""no" 1>&6
5220 fi
5221
5222
5223 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
e07802fc 5224echo "configure:5225: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5225 no_cache=0
5226 # Check whether --enable-textdlg or --disable-textdlg was given.
5227if test "${enable_textdlg+set}" = set; then
5228 enableval="$enable_textdlg"
5229
5230 if test "$enableval" = yes; then
5231 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5232 else
5233 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5234 fi
5235
5236else
5237
5238 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5239 if test "x$LINE" != x ; then
5240 eval "DEFAULT_$LINE"
5241 else
5242 no_cache=1
5243 fi
5244
5245 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5246
5247fi
5248
5249
5250 eval "$ac_cv_use_textdlg"
5251 if test "$no_cache" != 1; then
5252 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5253 fi
5254
5255 if test "$wxUSE_TEXTDLG" = yes; then
5256 echo "$ac_t""yes" 1>&6
5257 else
5258 echo "$ac_t""no" 1>&6
5259 fi
5260
5261
5262 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
e07802fc 5263echo "configure:5264: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5264 no_cache=0
5265 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5266if test "${enable_tipdlg+set}" = set; then
5267 enableval="$enable_tipdlg"
5268
5269 if test "$enableval" = yes; then
5270 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5271 else
5272 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5273 fi
5274
5275else
5276
5277 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5278 if test "x$LINE" != x ; then
5279 eval "DEFAULT_$LINE"
5280 else
5281 no_cache=1
5282 fi
5283
5284 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5285
5286fi
5287
5288
5289 eval "$ac_cv_use_tipdlg"
5290 if test "$no_cache" != 1; then
5291 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5292 fi
5293
5294 if test "$wxUSE_STARTUP_TIPS" = yes; then
5295 echo "$ac_t""yes" 1>&6
5296 else
5297 echo "$ac_t""no" 1>&6
5298 fi
5299
5300
5301 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
e07802fc 5302echo "configure:5303: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5303 no_cache=0
5304 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5305if test "${enable_progressdlg+set}" = set; then
5306 enableval="$enable_progressdlg"
5307
5308 if test "$enableval" = yes; then
5309 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5310 else
5311 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5312 fi
5313
5314else
5315
5316 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5317 if test "x$LINE" != x ; then
5318 eval "DEFAULT_$LINE"
5319 else
5320 no_cache=1
5321 fi
5322
5323 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5324
5325fi
5326
5327
5328 eval "$ac_cv_use_progressdlg"
5329 if test "$no_cache" != 1; then
5330 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5331 fi
5332
5333 if test "$wxUSE_PROGRESSDLG" = yes; then
5334 echo "$ac_t""yes" 1>&6
5335 else
5336 echo "$ac_t""no" 1>&6
5337 fi
5338
5339
5340 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
e07802fc 5341echo "configure:5342: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5342 no_cache=0
5343 # Check whether --enable-miniframe or --disable-miniframe was given.
5344if test "${enable_miniframe+set}" = set; then
5345 enableval="$enable_miniframe"
5346
5347 if test "$enableval" = yes; then
5348 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5349 else
5350 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5351 fi
5352
5353else
5354
5355 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5356 if test "x$LINE" != x ; then
5357 eval "DEFAULT_$LINE"
5358 else
5359 no_cache=1
5360 fi
5361
5362 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5363
5364fi
5365
5366
5367 eval "$ac_cv_use_miniframe"
5368 if test "$no_cache" != 1; then
5369 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5370 fi
5371
5372 if test "$wxUSE_MINIFRAME" = yes; then
5373 echo "$ac_t""yes" 1>&6
5374 else
5375 echo "$ac_t""no" 1>&6
5376 fi
5377
5378
5379 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
e07802fc 5380echo "configure:5381: checking "for --enable-html"" >&5
10f2d63a
VZ
5381 no_cache=0
5382 # Check whether --enable-html or --disable-html was given.
5383if test "${enable_html+set}" = set; then
5384 enableval="$enable_html"
5385
5386 if test "$enableval" = yes; then
5387 ac_cv_use_html='wxUSE_HTML=yes'
5388 else
5389 ac_cv_use_html='wxUSE_HTML=no'
5390 fi
5391
5392else
5393
5394 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5395 if test "x$LINE" != x ; then
5396 eval "DEFAULT_$LINE"
5397 else
5398 no_cache=1
5399 fi
5400
5401 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5402
5403fi
5404
5405
5406 eval "$ac_cv_use_html"
5407 if test "$no_cache" != 1; then
5408 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5409 fi
5410
5411 if test "$wxUSE_HTML" = yes; then
5412 echo "$ac_t""yes" 1>&6
5413 else
5414 echo "$ac_t""no" 1>&6
5415 fi
5416
5417
5418 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
e07802fc 5419echo "configure:5420: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5420 no_cache=0
5421 # Check whether --enable-tooltips or --disable-tooltips was given.
5422if test "${enable_tooltips+set}" = set; then
5423 enableval="$enable_tooltips"
5424
5425 if test "$enableval" = yes; then
5426 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5427 else
5428 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5429 fi
5430
5431else
5432
5433 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5434 if test "x$LINE" != x ; then
5435 eval "DEFAULT_$LINE"
5436 else
5437 no_cache=1
5438 fi
5439
5440 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5441
5442fi
5443
5444
5445 eval "$ac_cv_use_tooltips"
5446 if test "$no_cache" != 1; then
5447 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5448 fi
5449
5450 if test "$wxUSE_TOOLTIPS" = yes; then
5451 echo "$ac_t""yes" 1>&6
5452 else
5453 echo "$ac_t""no" 1>&6
5454 fi
5455
5456
5457 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
e07802fc 5458echo "configure:5459: checking "for --enable-splines"" >&5
10f2d63a
VZ
5459 no_cache=0
5460 # Check whether --enable-splines or --disable-splines was given.
5461if test "${enable_splines+set}" = set; then
5462 enableval="$enable_splines"
5463
5464 if test "$enableval" = yes; then
5465 ac_cv_use_splines='wxUSE_SPLINES=yes'
5466 else
5467 ac_cv_use_splines='wxUSE_SPLINES=no'
5468 fi
5469
5470else
5471
5472 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5473 if test "x$LINE" != x ; then
5474 eval "DEFAULT_$LINE"
5475 else
5476 no_cache=1
5477 fi
5478
5479 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5480
5481fi
5482
5483
5484 eval "$ac_cv_use_splines"
5485 if test "$no_cache" != 1; then
5486 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5487 fi
5488
5489 if test "$wxUSE_SPLINES" = yes; then
5490 echo "$ac_t""yes" 1>&6
5491 else
5492 echo "$ac_t""no" 1>&6
5493 fi
5494
5495
5496 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
e07802fc 5497echo "configure:5498: checking "for --enable-validators"" >&5
10f2d63a
VZ
5498 no_cache=0
5499 # Check whether --enable-validators or --disable-validators was given.
5500if test "${enable_validators+set}" = set; then
5501 enableval="$enable_validators"
5502
5503 if test "$enableval" = yes; then
5504 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5505 else
5506 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5507 fi
5508
5509else
5510
5511 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5512 if test "x$LINE" != x ; then
5513 eval "DEFAULT_$LINE"
5514 else
5515 no_cache=1
5516 fi
5517
5518 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5519
5520fi
5521
5522
5523 eval "$ac_cv_use_validators"
5524 if test "$no_cache" != 1; then
5525 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5526 fi
5527
5528 if test "$wxUSE_VALIDATORS" = yes; then
5529 echo "$ac_t""yes" 1>&6
5530 else
5531 echo "$ac_t""no" 1>&6
5532 fi
5533
5534
5535 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
e07802fc 5536echo "configure:5537: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5537 no_cache=0
5538 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5539if test "${enable_busyinfo+set}" = set; then
5540 enableval="$enable_busyinfo"
5541
5542 if test "$enableval" = yes; then
5543 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5544 else
5545 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5546 fi
5547
5548else
5549
5550 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5551 if test "x$LINE" != x ; then
5552 eval "DEFAULT_$LINE"
5553 else
5554 no_cache=1
5555 fi
5556
5557 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5558
5559fi
5560
5561
5562 eval "$ac_cv_use_busyinfo"
5563 if test "$no_cache" != 1; then
5564 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5565 fi
5566
5567 if test "$wxUSE_BUSYINFO" = yes; then
5568 echo "$ac_t""yes" 1>&6
5569 else
5570 echo "$ac_t""no" 1>&6
5571 fi
5572
5573
5574
5575
5576 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
e07802fc 5577echo "configure:5578: checking "for --enable-gif"" >&5
10f2d63a
VZ
5578 no_cache=0
5579 # Check whether --enable-gif or --disable-gif was given.
5580if test "${enable_gif+set}" = set; then
5581 enableval="$enable_gif"
5582
5583 if test "$enableval" = yes; then
5584 ac_cv_use_gif='wxUSE_GIF=yes'
5585 else
5586 ac_cv_use_gif='wxUSE_GIF=no'
5587 fi
5588
5589else
5590
5591 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5592 if test "x$LINE" != x ; then
5593 eval "DEFAULT_$LINE"
5594 else
5595 no_cache=1
5596 fi
5597
5598 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5599
5600fi
5601
5602
5603 eval "$ac_cv_use_gif"
5604 if test "$no_cache" != 1; then
5605 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5606 fi
5607
5608 if test "$wxUSE_GIF" = yes; then
5609 echo "$ac_t""yes" 1>&6
5610 else
5611 echo "$ac_t""no" 1>&6
5612 fi
5613
5614
5615 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
e07802fc 5616echo "configure:5617: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5617 no_cache=0
5618 # Check whether --enable-pcx or --disable-pcx was given.
5619if test "${enable_pcx+set}" = set; then
5620 enableval="$enable_pcx"
5621
5622 if test "$enableval" = yes; then
5623 ac_cv_use_pcx='wxUSE_PCX=yes'
5624 else
5625 ac_cv_use_pcx='wxUSE_PCX=no'
5626 fi
5627
5628else
5629
5630 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5631 if test "x$LINE" != x ; then
5632 eval "DEFAULT_$LINE"
5633 else
5634 no_cache=1
5635 fi
5636
5637 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5638
5639fi
5640
5641
5642 eval "$ac_cv_use_pcx"
5643 if test "$no_cache" != 1; then
5644 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5645 fi
5646
5647 if test "$wxUSE_PCX" = yes; then
5648 echo "$ac_t""yes" 1>&6
5649 else
5650 echo "$ac_t""no" 1>&6
5651 fi
5652
5653
5654 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
e07802fc 5655echo "configure:5656: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5656 no_cache=0
5657 # Check whether --enable-pnm or --disable-pnm was given.
5658if test "${enable_pnm+set}" = set; then
5659 enableval="$enable_pnm"
5660
5661 if test "$enableval" = yes; then
5662 ac_cv_use_pnm='wxUSE_PNM=yes'
5663 else
5664 ac_cv_use_pnm='wxUSE_PNM=no'
5665 fi
5666
5667else
5668
5669 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5670 if test "x$LINE" != x ; then
5671 eval "DEFAULT_$LINE"
5672 else
5673 no_cache=1
5674 fi
5675
5676 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5677
5678fi
5679
5680
5681 eval "$ac_cv_use_pnm"
5682 if test "$no_cache" != 1; then
5683 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5684 fi
5685
5686 if test "$wxUSE_PNM" = yes; then
5687 echo "$ac_t""yes" 1>&6
5688 else
5689 echo "$ac_t""no" 1>&6
5690 fi
5691
5692
b12915c1
VZ
5693fi
5694
10f2d63a
VZ
5695
5696 echo "saving argument cache $wx_arg_cache_file"
5697 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5698
5699
5700
5701echo $ac_n "checking for toolkit""... $ac_c" 1>&6
e07802fc 5702echo "configure:5703: checking for toolkit" >&5
10f2d63a
VZ
5703
5704if test "$wxUSE_GUI" = "yes"; then
5705
b12915c1
VZ
5706if test "$USE_BEOS" = 1; then
5707 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5708fi
5709
10f2d63a
VZ
5710if test "$TOOLKIT_GIVEN" = 1; then
5711 for toolkit in `echo $ALL_TOOLKITS`; do
5712 var=wxUSE_$toolkit
5713 eval "value=\$${var}"
5714 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5715 done
5716else
5717 for toolkit in `echo $ALL_TOOLKITS`; do
5718 if test "$has_toolkit_in_cache" != 1; then
5719 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5720 else
5721 var=DEFAULT_wxUSE_$toolkit
5722 fi
5723 eval "wxUSE_$toolkit=\$${var}"
5724 done
5725fi
5726
ec14dd32
VZ
5727NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5728case "${host}" in
5729 *-pc-os2_emx )
5730 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5731 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5732 LEX_STEM="lexyy"
5733 ;;
5734 *)
5735 PATH_IFS=':'
5736 LEX_STEM="lex.yy"
5737 ;;
5738esac
10f2d63a
VZ
5739
5740case "$NUM_TOOLKITS" in
5741 1)
5742 ;;
5743 0)
5744 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5745 ;;
5746 *)
5747 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5748esac
5749
5750for toolkit in `echo $ALL_TOOLKITS`; do
5751 var=wxUSE_$toolkit
5752 eval "value=\$${var}"
5753 if test "x$value" != x; then
5754 cache_var=CACHE_$toolkit
5755 eval "cache=\$${cache_var}"
5756 if test "$cache" = 1; then
5757 echo "$var=$value" >> ${wx_arg_cache_file}
5758 fi
5759 if test "$value" = 1; then
5760 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5761 fi
5762 fi
5763done
5764
5765else
5766 echo "$ac_t""base only" 1>&6
5767fi
5768
5769
5770cat > confcache <<\EOF
5771# This file is a shell script that caches the results of configure
5772# tests run on this system so they can be shared between configure
5773# scripts and configure runs. It is not useful on other systems.
5774# If it contains results you don't want to keep, you may remove or edit it.
5775#
5776# By default, configure uses ./config.cache as the cache file,
5777# creating it if it does not exist already. You can give configure
5778# the --cache-file=FILE option to use a different cache file; that is
5779# what configure does when it calls configure scripts in
5780# subdirectories, so they share the cache.
5781# Giving --cache-file=/dev/null disables caching, for debugging configure.
5782# config.status only pays attention to the cache file if you give it the
5783# --recheck option to rerun configure.
5784#
5785EOF
5786# The following way of writing the cache mishandles newlines in values,
5787# but we know of no workaround that is simple, portable, and efficient.
5788# So, don't put newlines in cache variables' values.
5789# Ultrix sh set writes to stderr and can't be redirected directly,
5790# and sets the high bit in the cache file unless we assign to the vars.
5791(set) 2>&1 |
5792 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5793 *ac_space=\ *)
5794 # `set' does not quote correctly, so add quotes (double-quote substitution
5795 # turns \\\\ into \\, and sed turns \\ into \).
5796 sed -n \
5797 -e "s/'/'\\\\''/g" \
5798 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5799 ;;
5800 *)
5801 # `set' quotes correctly as required by POSIX, so do not add quotes.
5802 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5803 ;;
5804 esac >> confcache
5805if cmp -s $cache_file confcache; then
5806 :
5807else
5808 if test -w $cache_file; then
5809 echo "updating cache $cache_file"
5810 cat confcache > $cache_file
5811 else
5812 echo "not updating unwritable cache $cache_file"
5813 fi
5814fi
5815rm -f confcache
5816
5817
5818if eval "test $host != $build"; then
5819 if eval "test $host_alias != NONE"; then
5820 CC=$host_alias-gcc
5821 CXX=$host_alias-c++
5822 AR=$host_alias-ar
5823 RANLIB=$host_alias-ranlib
5824 DLLTOOL=$host_alias-dlltool
5825 LD=$host_alias-ld
5826 NM=$host_alias-nm
5827 STRIP=$host_alias-strip
5828 fi
5829fi
5830
5831# Extract the first word of "gcc", so it can be a program name with args.
5832set dummy gcc; ac_word=$2
5833echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ec14dd32 5834echo "configure:5835: checking for $ac_word" >&5
10f2d63a
VZ
5835if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5836 echo $ac_n "(cached) $ac_c" 1>&6
5837else
5838 if test -n "$CC"; then
5839 ac_cv_prog_CC="$CC" # Let the user override the test.
5840else
5841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5842 ac_dummy="$PATH"
5843 for ac_dir in $ac_dummy; do
5844 test -z "$ac_dir" && ac_dir=.
5845 if test -f $ac_dir/$ac_word; then
5846 ac_cv_prog_CC="gcc"
5847 break
5848 fi
5849 done
5850 IFS="$ac_save_ifs"
5851fi
5852fi
5853CC="$ac_cv_prog_CC"
5854if test -n "$CC"; then
5855 echo "$ac_t""$CC" 1>&6
5856else
5857 echo "$ac_t""no" 1>&6
5858fi
5859
5860if test -z "$CC"; then
5861 # Extract the first word of "cc", so it can be a program name with args.
5862set dummy cc; ac_word=$2
5863echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ec14dd32 5864echo "configure:5865: checking for $ac_word" >&5
10f2d63a
VZ
5865if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5866 echo $ac_n "(cached) $ac_c" 1>&6
5867else
5868 if test -n "$CC"; then
5869 ac_cv_prog_CC="$CC" # Let the user override the test.
5870else
5871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5872 ac_prog_rejected=no
5873 ac_dummy="$PATH"
5874 for ac_dir in $ac_dummy; do
5875 test -z "$ac_dir" && ac_dir=.
5876 if test -f $ac_dir/$ac_word; then
5877 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5878 ac_prog_rejected=yes
5879 continue
5880 fi
5881 ac_cv_prog_CC="cc"
5882 break
5883 fi
5884 done
5885 IFS="$ac_save_ifs"
5886if test $ac_prog_rejected = yes; then
5887 # We found a bogon in the path, so make sure we never use it.
5888 set dummy $ac_cv_prog_CC
5889 shift
5890 if test $# -gt 0; then
5891 # We chose a different compiler from the bogus one.
5892 # However, it has the same basename, so the bogon will be chosen
5893 # first if we set CC to just the basename; use the full file name.
5894 shift
5895 set dummy "$ac_dir/$ac_word" "$@"
5896 shift
5897 ac_cv_prog_CC="$@"
5898 fi
5899fi
5900fi
5901fi
5902CC="$ac_cv_prog_CC"
5903if test -n "$CC"; then
5904 echo "$ac_t""$CC" 1>&6
5905else
5906 echo "$ac_t""no" 1>&6
5907fi
5908
5909 if test -z "$CC"; then
5910 case "`uname -s`" in
5911 *win32* | *WIN32*)
5912 # Extract the first word of "cl", so it can be a program name with args.
5913set dummy cl; ac_word=$2
5914echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ec14dd32 5915echo "configure:5916: checking for $ac_word" >&5
10f2d63a
VZ
5916if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5917 echo $ac_n "(cached) $ac_c" 1>&6
5918else
5919 if test -n "$CC"; then
5920 ac_cv_prog_CC="$CC" # Let the user override the test.
5921else
5922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5923 ac_dummy="$PATH"
5924 for ac_dir in $ac_dummy; do
5925 test -z "$ac_dir" && ac_dir=.
5926 if test -f $ac_dir/$ac_word; then
5927 ac_cv_prog_CC="cl"
5928 break
5929 fi
5930 done
5931 IFS="$ac_save_ifs"
5932fi
5933fi
5934CC="$ac_cv_prog_CC"
5935if test -n "$CC"; then
5936 echo "$ac_t""$CC" 1>&6
5937else
5938 echo "$ac_t""no" 1>&6
5939fi
5940 ;;
5941 esac
5942 fi
5943 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5944fi
5945
5946echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
ec14dd32 5947echo "configure:5948: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
5948
5949ac_ext=c
5950# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5951ac_cpp='$CPP $CPPFLAGS'
5952ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5953ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5954cross_compiling=$ac_cv_prog_cc_cross
5955
5956cat > conftest.$ac_ext << EOF
5957
ec14dd32 5958#line 5959 "configure"
10f2d63a
VZ
5959#include "confdefs.h"
5960
5961main(){return(0);}
5962EOF
ec14dd32 5963if { (eval echo configure:5964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
5964 ac_cv_prog_cc_works=yes
5965 # If we can't run a trivial program, we are probably using a cross compiler.
5966 if (./conftest; exit) 2>/dev/null; then
5967 ac_cv_prog_cc_cross=no
5968 else
5969 ac_cv_prog_cc_cross=yes
5970 fi
5971else
5972 echo "configure: failed program was:" >&5
5973 cat conftest.$ac_ext >&5
5974 ac_cv_prog_cc_works=no
5975fi
5976rm -fr conftest*
5977ac_ext=c
5978# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5979ac_cpp='$CPP $CPPFLAGS'
5980ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5981ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5982cross_compiling=$ac_cv_prog_cc_cross
5983
5984echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5985if test $ac_cv_prog_cc_works = no; then
5986 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5987fi
5988echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
ec14dd32 5989echo "configure:5990: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
5990echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5991cross_compiling=$ac_cv_prog_cc_cross
5992
5993echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
ec14dd32 5994echo "configure:5995: checking whether we are using GNU C" >&5
10f2d63a
VZ
5995if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5996 echo $ac_n "(cached) $ac_c" 1>&6
5997else
5998 cat > conftest.c <<EOF
5999#ifdef __GNUC__
6000 yes;
6001#endif
6002EOF
ec14dd32 6003if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6004 ac_cv_prog_gcc=yes
6005else
6006 ac_cv_prog_gcc=no
6007fi
6008fi
6009
6010echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6011
6012if test $ac_cv_prog_gcc = yes; then
6013 GCC=yes
6014else
6015 GCC=
6016fi
6017
6018ac_test_CFLAGS="${CFLAGS+set}"
6019ac_save_CFLAGS="$CFLAGS"
6020CFLAGS=
6021echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
ec14dd32 6022echo "configure:6023: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6023if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6024 echo $ac_n "(cached) $ac_c" 1>&6
6025else
6026 echo 'void f(){}' > conftest.c
6027if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6028 ac_cv_prog_cc_g=yes
6029else
6030 ac_cv_prog_cc_g=no
6031fi
6032rm -f conftest*
6033
6034fi
6035
6036echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6037if test "$ac_test_CFLAGS" = set; then
6038 CFLAGS="$ac_save_CFLAGS"
6039elif test $ac_cv_prog_cc_g = yes; then
6040 if test "$GCC" = yes; then
6041 CFLAGS="-g -O2"
6042 else
6043 CFLAGS="-g"
6044 fi
6045else
6046 if test "$GCC" = yes; then
6047 CFLAGS="-O2"
6048 else
6049 CFLAGS=
6050 fi
6051fi
6052
6053
6054CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6055
6056echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
ec14dd32 6057echo "configure:6058: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6058# On Suns, sometimes $CPP names a directory.
6059if test -n "$CPP" && test -d "$CPP"; then
6060 CPP=
6061fi
6062if test -z "$CPP"; then
6063if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6064 echo $ac_n "(cached) $ac_c" 1>&6
6065else
6066 # This must be in double quotes, not single quotes, because CPP may get
6067 # substituted into the Makefile and "${CC-cc}" will confuse make.
6068 CPP="${CC-cc} -E"
6069 # On the NeXT, cc -E runs the code through the compiler's parser,
6070 # not just through cpp.
6071 cat > conftest.$ac_ext <<EOF
ec14dd32 6072#line 6073 "configure"
10f2d63a
VZ
6073#include "confdefs.h"
6074#include <assert.h>
6075Syntax Error
6076EOF
6077ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 6078{ (eval echo configure:6079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6079ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6080if test -z "$ac_err"; then
6081 :
6082else
6083 echo "$ac_err" >&5
6084 echo "configure: failed program was:" >&5
6085 cat conftest.$ac_ext >&5
6086 rm -rf conftest*
6087 CPP="${CC-cc} -E -traditional-cpp"
6088 cat > conftest.$ac_ext <<EOF
ec14dd32 6089#line 6090 "configure"
10f2d63a
VZ
6090#include "confdefs.h"
6091#include <assert.h>
6092Syntax Error
6093EOF
6094ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 6095{ (eval echo configure:6096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6096ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6097if test -z "$ac_err"; then
6098 :
6099else
6100 echo "$ac_err" >&5
6101 echo "configure: failed program was:" >&5
6102 cat conftest.$ac_ext >&5
6103 rm -rf conftest*
6104 CPP="${CC-cc} -nologo -E"
6105 cat > conftest.$ac_ext <<EOF
ec14dd32 6106#line 6107 "configure"
10f2d63a
VZ
6107#include "confdefs.h"
6108#include <assert.h>
6109Syntax Error
6110EOF
6111ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 6112{ (eval echo configure:6113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6113ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6114if test -z "$ac_err"; then
6115 :
6116else
6117 echo "$ac_err" >&5
6118 echo "configure: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6120 rm -rf conftest*
6121 CPP=/lib/cpp
6122fi
6123rm -f conftest*
6124fi
6125rm -f conftest*
6126fi
6127rm -f conftest*
6128 ac_cv_prog_CPP="$CPP"
6129fi
6130 CPP="$ac_cv_prog_CPP"
6131else
6132 ac_cv_prog_CPP="$CPP"
6133fi
6134echo "$ac_t""$CPP" 1>&6
6135
6136
6137if test $ac_cv_prog_gcc = yes; then
6138 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
ec14dd32 6139echo "configure:6140: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6140if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6141 echo $ac_n "(cached) $ac_c" 1>&6
6142else
6143 ac_pattern="Autoconf.*'x'"
6144 cat > conftest.$ac_ext <<EOF
ec14dd32 6145#line 6146 "configure"
10f2d63a
VZ
6146#include "confdefs.h"
6147#include <sgtty.h>
6148Autoconf TIOCGETP
6149EOF
6150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6151 egrep "$ac_pattern" >/dev/null 2>&1; then
6152 rm -rf conftest*
6153 ac_cv_prog_gcc_traditional=yes
6154else
6155 rm -rf conftest*
6156 ac_cv_prog_gcc_traditional=no
6157fi
6158rm -f conftest*
6159
6160
6161 if test $ac_cv_prog_gcc_traditional = no; then
6162 cat > conftest.$ac_ext <<EOF
ec14dd32 6163#line 6164 "configure"
10f2d63a
VZ
6164#include "confdefs.h"
6165#include <termio.h>
6166Autoconf TCGETA
6167EOF
6168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6169 egrep "$ac_pattern" >/dev/null 2>&1; then
6170 rm -rf conftest*
6171 ac_cv_prog_gcc_traditional=yes
6172fi
6173rm -f conftest*
6174
6175 fi
6176fi
6177
6178echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6179 if test $ac_cv_prog_gcc_traditional = yes; then
6180 CC="$CC -traditional"
6181 fi
6182fi
6183
6184
6185
6186ac_ext=C
6187# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6188ac_cpp='$CXXCPP $CPPFLAGS'
6189ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6190ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6191cross_compiling=$ac_cv_prog_cxx_cross
6192
6193
6194for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6195do
6196# Extract the first word of "$ac_prog", so it can be a program name with args.
6197set dummy $ac_prog; ac_word=$2
6198echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ec14dd32 6199echo "configure:6200: checking for $ac_word" >&5
10f2d63a
VZ
6200if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6202else
6203 if test -n "$CXX"; then
6204 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6205else
6206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6207 ac_dummy="$PATH"
6208 for ac_dir in $ac_dummy; do
6209 test -z "$ac_dir" && ac_dir=.
6210 if test -f $ac_dir/$ac_word; then
6211 ac_cv_prog_CXX="$ac_prog"
6212 break
6213 fi
6214 done
6215 IFS="$ac_save_ifs"
6216fi
6217fi
6218CXX="$ac_cv_prog_CXX"
6219if test -n "$CXX"; then
6220 echo "$ac_t""$CXX" 1>&6
6221else
6222 echo "$ac_t""no" 1>&6
6223fi
6224
6225test -n "$CXX" && break
6226done
6227test -n "$CXX" || CXX="gcc"
6228
6229
6230echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
ec14dd32 6231echo "configure:6232: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6232
6233ac_ext=C
6234# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6235ac_cpp='$CXXCPP $CPPFLAGS'
6236ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6237ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6238cross_compiling=$ac_cv_prog_cxx_cross
6239
6240cat > conftest.$ac_ext << EOF
6241
ec14dd32 6242#line 6243 "configure"
10f2d63a
VZ
6243#include "confdefs.h"
6244
6245int main(){return(0);}
6246EOF
ec14dd32 6247if { (eval echo configure:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6248 ac_cv_prog_cxx_works=yes
6249 # If we can't run a trivial program, we are probably using a cross compiler.
6250 if (./conftest; exit) 2>/dev/null; then
6251 ac_cv_prog_cxx_cross=no
6252 else
6253 ac_cv_prog_cxx_cross=yes
6254 fi
6255else
6256 echo "configure: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6258 ac_cv_prog_cxx_works=no
6259fi
6260rm -fr conftest*
6261ac_ext=C
6262# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6263ac_cpp='$CXXCPP $CPPFLAGS'
6264ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6265ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6266cross_compiling=$ac_cv_prog_cxx_cross
6267
6268echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6269if test $ac_cv_prog_cxx_works = no; then
6270 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6271fi
6272echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
ec14dd32 6273echo "configure:6274: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6274echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6275cross_compiling=$ac_cv_prog_cxx_cross
6276
6277echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
ec14dd32 6278echo "configure:6279: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6279if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6280 echo $ac_n "(cached) $ac_c" 1>&6
6281else
6282 cat > conftest.C <<EOF
6283#ifdef __GNUC__
6284 yes;
6285#endif
6286EOF
ec14dd32 6287if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6288 ac_cv_prog_gxx=yes
6289else
6290 ac_cv_prog_gxx=no
6291fi
6292fi
6293
6294echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6295
6296if test $ac_cv_prog_gxx = yes; then
6297 GXX=yes
6298else
6299 GXX=
6300fi
6301
6302ac_test_CXXFLAGS="${CXXFLAGS+set}"
6303ac_save_CXXFLAGS="$CXXFLAGS"
6304CXXFLAGS=
6305echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
ec14dd32 6306echo "configure:6307: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6307if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6308 echo $ac_n "(cached) $ac_c" 1>&6
6309else
6310 echo 'void f(){}' > conftest.cc
6311if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6312 ac_cv_prog_cxx_g=yes
6313else
6314 ac_cv_prog_cxx_g=no
6315fi
6316rm -f conftest*
6317
6318fi
6319
6320echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6321if test "$ac_test_CXXFLAGS" = set; then
6322 CXXFLAGS="$ac_save_CXXFLAGS"
6323elif test $ac_cv_prog_cxx_g = yes; then
6324 if test "$GXX" = yes; then
6325 CXXFLAGS="-g -O2"
6326 else
6327 CXXFLAGS="-g"
6328 fi
6329else
6330 if test "$GXX" = yes; then
6331 CXXFLAGS="-O2"
6332 else
6333 CXXFLAGS=
6334 fi
6335fi
6336
6337
6338echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
ec14dd32 6339echo "configure:6340: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6340if test -z "$CXXCPP"; then
6341if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6342 echo $ac_n "(cached) $ac_c" 1>&6
6343else
6344 ac_ext=C
6345# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6346ac_cpp='$CXXCPP $CPPFLAGS'
6347ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6348ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6349cross_compiling=$ac_cv_prog_cxx_cross
6350 CXXCPP="${CXX-g++} -E"
6351 cat > conftest.$ac_ext <<EOF
ec14dd32 6352#line 6353 "configure"
10f2d63a
VZ
6353#include "confdefs.h"
6354#include <stdlib.h>
6355EOF
6356ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 6357{ (eval echo configure:6358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6358ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6359if test -z "$ac_err"; then
6360 :
6361else
6362 echo "$ac_err" >&5
6363 echo "configure: failed program was:" >&5
6364 cat conftest.$ac_ext >&5
6365 rm -rf conftest*
6366 CXXCPP=/lib/cpp
6367fi
6368rm -f conftest*
6369 ac_cv_prog_CXXCPP="$CXXCPP"
6370ac_ext=C
6371# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6372ac_cpp='$CXXCPP $CPPFLAGS'
6373ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6374ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6375cross_compiling=$ac_cv_prog_cxx_cross
6376fi
6377fi
6378CXXCPP="$ac_cv_prog_CXXCPP"
6379echo "$ac_t""$CXXCPP" 1>&6
6380
6381
6382CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6383
6384ac_ext=c
6385# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6386ac_cpp='$CPP $CPPFLAGS'
6387ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6388ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6389cross_compiling=$ac_cv_prog_cc_cross
6390
6391
6392# Extract the first word of "ranlib", so it can be a program name with args.
6393set dummy ranlib; ac_word=$2
6394echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ec14dd32 6395echo "configure:6396: checking for $ac_word" >&5
10f2d63a
VZ
6396if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6397 echo $ac_n "(cached) $ac_c" 1>&6
6398else
6399 if test -n "$RANLIB"; then
6400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6401else
6402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6403 ac_dummy="$PATH"
6404 for ac_dir in $ac_dummy; do
6405 test -z "$ac_dir" && ac_dir=.
6406 if test -f $ac_dir/$ac_word; then
6407 ac_cv_prog_RANLIB="ranlib"
6408 break
6409 fi
6410 done
6411 IFS="$ac_save_ifs"
6412 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6413fi
6414fi
6415RANLIB="$ac_cv_prog_RANLIB"
6416if test -n "$RANLIB"; then
6417 echo "$ac_t""$RANLIB" 1>&6
6418else
6419 echo "$ac_t""no" 1>&6
6420fi
6421
6422
6423# Extract the first word of "ar", so it can be a program name with args.
6424set dummy ar; ac_word=$2
6425echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ec14dd32 6426echo "configure:6427: checking for $ac_word" >&5
10f2d63a
VZ
6427if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6428 echo $ac_n "(cached) $ac_c" 1>&6
6429else
6430 if test -n "$AR"; then
6431 ac_cv_prog_AR="$AR" # Let the user override the test.
6432else
6433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6434 ac_dummy="$PATH"
6435 for ac_dir in $ac_dummy; do
6436 test -z "$ac_dir" && ac_dir=.
6437 if test -f $ac_dir/$ac_word; then
6438 ac_cv_prog_AR="ar"
6439 break
6440 fi
6441 done
6442 IFS="$ac_save_ifs"
6443 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6444fi
6445fi
6446AR="$ac_cv_prog_AR"
6447if test -n "$AR"; then
6448 echo "$ac_t""$AR" 1>&6
6449else
6450 echo "$ac_t""no" 1>&6
6451fi
6452
6453
6454# Find a good install program. We prefer a C program (faster),
6455# so one script is as good as another. But avoid the broken or
6456# incompatible versions:
6457# SysV /etc/install, /usr/sbin/install
6458# SunOS /usr/etc/install
6459# IRIX /sbin/install
6460# AIX /bin/install
6461# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6462# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6463# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6464# ./install, which can be erroneously created by make from ./install.sh.
6465echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
ec14dd32 6466echo "configure:6467: checking for a BSD compatible install" >&5
10f2d63a
VZ
6467if test -z "$INSTALL"; then
6468if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6469 echo $ac_n "(cached) $ac_c" 1>&6
6470else
6471 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6472 for ac_dir in $PATH; do
6473 # Account for people who put trailing slashes in PATH elements.
6474 case "$ac_dir/" in
6475 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6476 *)
6477 # OSF1 and SCO ODT 3.0 have their own names for install.
6478 # Don't use installbsd from OSF since it installs stuff as root
6479 # by default.
6480 for ac_prog in ginstall scoinst install; do
6481 if test -f $ac_dir/$ac_prog; then
6482 if test $ac_prog = install &&
6483 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6484 # AIX install. It has an incompatible calling convention.
6485 :
6486 else
6487 ac_cv_path_install="$ac_dir/$ac_prog -c"
6488 break 2
6489 fi
6490 fi
6491 done
6492 ;;
6493 esac
6494 done
6495 IFS="$ac_save_IFS"
6496
6497fi
6498 if test "${ac_cv_path_install+set}" = set; then
6499 INSTALL="$ac_cv_path_install"
6500 else
6501 # As a last resort, use the slow shell script. We don't cache a
6502 # path for INSTALL within a source directory, because that will
6503 # break other packages using the cache if that directory is
6504 # removed, or if the path is relative.
6505 INSTALL="$ac_install_sh"
6506 fi
6507fi
6508echo "$ac_t""$INSTALL" 1>&6
6509
6510# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6511# It thinks the first close brace ends the variable substitution.
6512test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6513
6514test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6515
6516test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6517
6518
6519# Extract the first word of "strip", so it can be a program name with args.
6520set dummy strip; ac_word=$2
6521echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ec14dd32 6522echo "configure:6523: checking for $ac_word" >&5
10f2d63a
VZ
6523if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6524 echo $ac_n "(cached) $ac_c" 1>&6
6525else
6526 if test -n "$STRIP"; then
6527 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6528else
6529 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6530 ac_dummy="$PATH"
6531 for ac_dir in $ac_dummy; do
6532 test -z "$ac_dir" && ac_dir=.
6533 if test -f $ac_dir/$ac_word; then
6534 ac_cv_prog_STRIP="strip"
6535 break
6536 fi
6537 done
6538 IFS="$ac_save_ifs"
6539 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6540fi
6541fi
6542STRIP="$ac_cv_prog_STRIP"
6543if test -n "$STRIP"; then
6544 echo "$ac_t""$STRIP" 1>&6
6545else
6546 echo "$ac_t""no" 1>&6
6547fi
6548
6549
6550echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
ec14dd32 6551echo "configure:6552: checking "make for VPATH support"" >&5
10f2d63a
VZ
6552cat - << EOF > confMake
6553check : file
6554 cp \$? \$@
6555 cp \$? final_file
6556EOF
6557
6558if test ! -d sub ; then
6559 mkdir sub
6560fi
6561echo dummy > sub/file
6562${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6563RESULT=$?
6564rm -f sub/file check final_file confMake
6565rmdir sub
6566if test "$RESULT" = 0; then
6567 echo "$ac_t""yes" 1>&6
6568else
6569 echo "$ac_t""no" 1>&6
6570 { echo "configure: error: You need a make-utility that is able to use the variable
6571VPATH correctly.
6572If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6573fi
6574
6575for ac_prog in 'bison -y' byacc
6576do
6577# Extract the first word of "$ac_prog", so it can be a program name with args.
6578set dummy $ac_prog; ac_word=$2
6579echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ec14dd32 6580echo "configure:6581: checking for $ac_word" >&5
10f2d63a
VZ
6581if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6583else
6584 if test -n "$YACC"; then
6585 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6586else
6587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6588 ac_dummy="$PATH"
6589 for ac_dir in $ac_dummy; do
6590 test -z "$ac_dir" && ac_dir=.
6591 if test -f $ac_dir/$ac_word; then
6592 ac_cv_prog_YACC="$ac_prog"
6593 break
6594 fi
6595 done
6596 IFS="$ac_save_ifs"
6597fi
6598fi
6599YACC="$ac_cv_prog_YACC"
6600if test -n "$YACC"; then
6601 echo "$ac_t""$YACC" 1>&6
6602else
6603 echo "$ac_t""no" 1>&6
6604fi
6605
6606test -n "$YACC" && break
6607done
6608test -n "$YACC" || YACC="yacc"
6609
6610
6611# Extract the first word of "flex", so it can be a program name with args.
6612set dummy flex; ac_word=$2
6613echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ec14dd32 6614echo "configure:6615: checking for $ac_word" >&5
10f2d63a
VZ
6615if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6616 echo $ac_n "(cached) $ac_c" 1>&6
6617else
6618 if test -n "$LEX"; then
6619 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6620else
6621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6622 ac_dummy="$PATH"
6623 for ac_dir in $ac_dummy; do
6624 test -z "$ac_dir" && ac_dir=.
6625 if test -f $ac_dir/$ac_word; then
6626 ac_cv_prog_LEX="flex"
6627 break
6628 fi
6629 done
6630 IFS="$ac_save_ifs"
6631 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6632fi
6633fi
6634LEX="$ac_cv_prog_LEX"
6635if test -n "$LEX"; then
6636 echo "$ac_t""$LEX" 1>&6
6637else
6638 echo "$ac_t""no" 1>&6
6639fi
6640
6641if test -z "$LEXLIB"
6642then
6643 case "$LEX" in
6644 flex*) ac_lib=fl ;;
6645 *) ac_lib=l ;;
6646 esac
6647 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
ec14dd32 6648echo "configure:6649: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6649ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6650if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6651 echo $ac_n "(cached) $ac_c" 1>&6
6652else
6653 ac_save_LIBS="$LIBS"
6654LIBS="-l$ac_lib $LIBS"
6655cat > conftest.$ac_ext <<EOF
ec14dd32 6656#line 6657 "configure"
10f2d63a
VZ
6657#include "confdefs.h"
6658/* Override any gcc2 internal prototype to avoid an error. */
6659/* We use char because int might match the return type of a gcc2
6660 builtin and then its argument prototype would still apply. */
6661char yywrap();
6662
6663int main() {
6664yywrap()
6665; return 0; }
6666EOF
ec14dd32 6667if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6668 rm -rf conftest*
6669 eval "ac_cv_lib_$ac_lib_var=yes"
6670else
6671 echo "configure: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6673 rm -rf conftest*
6674 eval "ac_cv_lib_$ac_lib_var=no"
6675fi
6676rm -f conftest*
6677LIBS="$ac_save_LIBS"
6678
6679fi
6680if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6681 echo "$ac_t""yes" 1>&6
6682 LEXLIB="-l$ac_lib"
6683else
6684 echo "$ac_t""no" 1>&6
6685fi
6686
6687fi
6688
6689
6690echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
ec14dd32 6691echo "configure:6692: checking whether ln -s works" >&5
10f2d63a
VZ
6692if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6693 echo $ac_n "(cached) $ac_c" 1>&6
6694else
6695 rm -f conftestdata
6696if ln -s X conftestdata 2>/dev/null
6697then
6698 rm -f conftestdata
6699 ac_cv_prog_LN_S="ln -s"
6700else
6701 ac_cv_prog_LN_S=ln
6702fi
6703fi
6704LN_S="$ac_cv_prog_LN_S"
6705if test "$ac_cv_prog_LN_S" = "ln -s"; then
6706 echo "$ac_t""yes" 1>&6
6707else
6708 echo "$ac_t""no" 1>&6
6709fi
6710
6711
6712
6713SEARCH_INCLUDE="\
6714 /usr/local/include \
6715 \
6716 /usr/Motif-1.2/include \
6717 /usr/Motif-2.1/include \
6718 \
6719 /usr/include/Motif1.2 \
6720 /opt/xpm/include/X11 \
6721 /opt/GBxpm/include/ \
6722 /opt/GBxpm/X11/include/ \
6723 \
6724 /usr/Motif1.2/include \
6725 /usr/dt/include \
afc31813
VZ
6726 /usr/openwin/include \
6727 \
10f2d63a
VZ
6728 /usr/include/Xm \
6729 \
6730 /usr/X11R6/include \
afc31813 6731 /usr/X11R6.4/include \
10f2d63a
VZ
6732 /usr/X11R5/include \
6733 /usr/X11R4/include \
6734 \
10f2d63a
VZ
6735 /usr/include/X11R6 \
6736 /usr/include/X11R5 \
6737 /usr/include/X11R4 \
6738 \
6739 /usr/local/X11R6/include \
6740 /usr/local/X11R5/include \
6741 /usr/local/X11R4/include \
6742 \
6743 /usr/local/include/X11R6 \
6744 /usr/local/include/X11R5 \
6745 /usr/local/include/X11R4 \
6746 \
6747 /usr/X11/include \
6748 /usr/include/X11 \
6749 /usr/local/X11/include \
6750 /usr/local/include/X11 \
6751 \
6752 /usr/X386/include \
6753 /usr/x386/include \
6754 /usr/XFree86/include/X11 \
6755 \
ec14dd32
VZ
6756 X:/XFree86/include/X11 \
6757 \
10f2d63a
VZ
6758 /usr/include/gtk \
6759 /usr/local/include/gtk \
6760 /usr/include/glib \
6761 /usr/local/include/glib \
6762 \
6763 /usr/include/qt \
6764 /usr/local/include/qt \
6765 \
6766 /usr/include/windows \
6767 /usr/include/wine \
6768 /usr/local/include/wine \
6769 \
6770 /usr/unsupported/include \
6771 /usr/athena/include \
6772 /usr/local/x11r5/include \
6773 /usr/lpp/Xamples/include \
6774 \
10f2d63a 6775 /usr/openwin/share/include \
928b5c08
VZ
6776 \
6777 /usr/include"
10f2d63a
VZ
6778
6779SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6780
6781
6782cat > confcache <<\EOF
6783# This file is a shell script that caches the results of configure
6784# tests run on this system so they can be shared between configure
6785# scripts and configure runs. It is not useful on other systems.
6786# If it contains results you don't want to keep, you may remove or edit it.
6787#
6788# By default, configure uses ./config.cache as the cache file,
6789# creating it if it does not exist already. You can give configure
6790# the --cache-file=FILE option to use a different cache file; that is
6791# what configure does when it calls configure scripts in
6792# subdirectories, so they share the cache.
6793# Giving --cache-file=/dev/null disables caching, for debugging configure.
6794# config.status only pays attention to the cache file if you give it the
6795# --recheck option to rerun configure.
6796#
6797EOF
6798# The following way of writing the cache mishandles newlines in values,
6799# but we know of no workaround that is simple, portable, and efficient.
6800# So, don't put newlines in cache variables' values.
6801# Ultrix sh set writes to stderr and can't be redirected directly,
6802# and sets the high bit in the cache file unless we assign to the vars.
6803(set) 2>&1 |
6804 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6805 *ac_space=\ *)
6806 # `set' does not quote correctly, so add quotes (double-quote substitution
6807 # turns \\\\ into \\, and sed turns \\ into \).
6808 sed -n \
6809 -e "s/'/'\\\\''/g" \
6810 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6811 ;;
6812 *)
6813 # `set' quotes correctly as required by POSIX, so do not add quotes.
6814 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6815 ;;
6816 esac >> confcache
6817if cmp -s $cache_file confcache; then
6818 :
6819else
6820 if test -w $cache_file; then
6821 echo "updating cache $cache_file"
6822 cat confcache > $cache_file
6823 else
6824 echo "not updating unwritable cache $cache_file"
6825 fi
6826fi
6827rm -f confcache
6828
6829
6830
dad6c0ea
VZ
6831AFMINSTALL=
6832
10f2d63a
VZ
6833if test "$wxUSE_GUI" = "yes"; then
6834
dad6c0ea
VZ
6835USE_GUI=1
6836
10f2d63a
VZ
6837TOOLKIT=
6838TOOLKIT_INCLUDE=
6839
6840GUIOBJS=
6841COMMONOBJS=
6842GENERICOBJS=
6843
6844GUI_TK_LIBRARY=
6845GUI_TK_LINK=
6846
6847WXGTK12=
13111b2a 6848WXGTK13=
10f2d63a
VZ
6849
6850WXWINE=
6851
6852PROGRAM_EXT=
6853
6854if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6855 if test "$cross_compiling" = "yes" ; then
6856 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6857 else
6858 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
ec14dd32 6859echo "configure:6860: checking for Windows headers" >&5
10f2d63a
VZ
6860
6861ac_find_includes=
6862for ac_dir in $SEARCH_INCLUDE;
6863 do
6864 if test -f "$ac_dir/windows.h"; then
6865 ac_find_includes=$ac_dir
6866 break
6867 fi
6868 done
6869
6870 if test "$ac_find_includes" != "" ; then
6871 echo "$ac_t""found $ac_find_includes" 1>&6
6872 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6873 else
6874 echo "$ac_t""no" 1>&6
6875 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6876 fi
6877 fi
6878
6879 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6880 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6881
6882 if test "$wxUSE_MINGW" = 1; then
6883 LDFLAGS="$LDFLAGS -mwindows"
6884 fi
6885
6886 TOOLKIT=MSW
6887
6888 GUIOBJS="\$(MSW_GUIOBJS)"
6889 GUIHEADERS="\$(MSW_HEADERS)"
6890 COMMONOBJS="\$(MSW_COMMONOBJS)"
6891 GENERICOBJS="\$(MSW_GENERICOBJS)"
6892 UNIXOBJS=
6893 GUIDIST=MSW_DIST
6894 PROGRAM_EXT=.exe
6895fi
6896
6897if test "$wxUSE_GTK" = 1; then
6898
6899 if test x$gtk_config_exec_prefix != x ; then
6900 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6901 if test x${GTK_CONFIG+set} != xset ; then
6902 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6903 fi
6904 fi
6905 if test x$gtk_config_prefix != x ; then
6906 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6907 if test x${GTK_CONFIG+set} != xset ; then
6908 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6909 fi
6910 fi
6911
6912 # Extract the first word of "gtk-config", so it can be a program name with args.
6913set dummy gtk-config; ac_word=$2
6914echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ec14dd32 6915echo "configure:6916: checking for $ac_word" >&5
10f2d63a
VZ
6916if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6917 echo $ac_n "(cached) $ac_c" 1>&6
6918else
6919 case "$GTK_CONFIG" in
6920 /*)
6921 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6922 ;;
6923 ?:/*)
6924 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6925 ;;
6926 *)
6927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6928 ac_dummy="$PATH"
6929 for ac_dir in $ac_dummy; do
6930 test -z "$ac_dir" && ac_dir=.
6931 if test -f $ac_dir/$ac_word; then
6932 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6933 break
6934 fi
6935 done
6936 IFS="$ac_save_ifs"
6937 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6938 ;;
6939esac
6940fi
6941GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6942if test -n "$GTK_CONFIG"; then
6943 echo "$ac_t""$GTK_CONFIG" 1>&6
6944else
6945 echo "$ac_t""no" 1>&6
6946fi
6947
04165bec 6948 min_gtk_version=1.2.3
10f2d63a 6949 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
ec14dd32 6950echo "configure:6951: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
6951 no_gtk=""
6952 if test "$GTK_CONFIG" != "no" ; then
6953 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6954 GTK_LIBS=`$GTK_CONFIG --libs`
6955 ac_save_CFLAGS="$CFLAGS"
6956 ac_save_LIBS="$LIBS"
6957 CFLAGS="$CFLAGS $GTK_CFLAGS"
6958 LIBS="$LIBS $GTK_LIBS"
6959 if test "$cross_compiling" = yes; then
6960 echo $ac_n "cross compiling; assumed OK... $ac_c"
6961else
6962 cat > conftest.$ac_ext <<EOF
ec14dd32 6963#line 6964 "configure"
10f2d63a
VZ
6964#include "confdefs.h"
6965
6966#include <gtk/gtk.h>
f49f2b0c 6967#include <gtk/gtkfeatures.h>
10f2d63a
VZ
6968#include <stdio.h>
6969
6970int
6971main ()
6972{
6973 int major, minor, micro;
6974
6975 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6976 printf("%s, bad version string\n", "$min_gtk_version");
6977 exit(1);
6978 }
6979
f49f2b0c
RR
6980 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
6981 (GTK_MINOR_VERSION != gtk_minor_version) ||
6982 (GTK_MICRO_VERSION != gtk_micro_version)) {
6983 printf("Headers vs. library version mismatch!\n");
6984 exit(1);
6985 }
6986
10f2d63a
VZ
6987 if (gtk_minor_version == 1) return FALSE;
6988
6989 return !((gtk_major_version > major) ||
6990 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6991 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6992}
6993
6994EOF
ec14dd32 6995if { (eval echo configure:6996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
6996then
6997 :
6998else
6999 echo "configure: failed program was:" >&5
7000 cat conftest.$ac_ext >&5
7001 rm -fr conftest*
7002 no_gtk=yes
7003fi
7004rm -fr conftest*
7005fi
7006
7007 CFLAGS="$ac_save_CFLAGS"
7008 LIBS="$ac_save_LIBS"
7009 else
7010 no_gtk=yes
7011 fi
7012 if test "x$no_gtk" = x ; then
7013 echo "$ac_t""yes" 1>&6
7014 WXGTK12=1
7015 else
7016 echo "$ac_t""no" 1>&6
7017 GTK_CFLAGS=""
7018 GTK_LIBS=""
04165bec 7019 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.3 or above?" 1>&2; exit 1; }
10f2d63a
VZ
7020 fi
7021
7022
7023
7024
7025 TOOLKIT_INCLUDE="$GTK_CFLAGS"
924ef850 7026 GUI_TK_LIBRARY="$GTK_LIBS -lgthread"
10f2d63a
VZ
7027 TOOLKIT=GTK
7028
dad6c0ea
VZ
7029 AFMINSTALL=afminstall
7030
10f2d63a
VZ
7031 GUIOBJS="\$(GTK_GUIOBJS)"
7032 GUIHEADERS="\$(GTK_HEADERS)"
7033 COMMONOBJS="\$(GTK_COMMONOBJS)"
7034 GENERICOBJS="\$(GTK_GENERICOBJS)"
7035 GUIDEPS="\$(GTK_GUIDEPS)"
7036 COMMONDEPS="\$(GTK_COMMONDEPS)"
7037 GENERICDEPS="\$(GTK_GENERICDEPS)"
7038 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7039 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7040 GUIDIST=GTK_DIST
7ec2881a
RR
7041
7042echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
ec14dd32 7043echo "configure:7044: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7044ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7045if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7046 echo $ac_n "(cached) $ac_c" 1>&6
7047else
7048 ac_save_LIBS="$LIBS"
7049LIBS="-lgdk $LIBS"
7050cat > conftest.$ac_ext <<EOF
ec14dd32 7051#line 7052 "configure"
7ec2881a
RR
7052#include "confdefs.h"
7053/* Override any gcc2 internal prototype to avoid an error. */
7054/* We use char because int might match the return type of a gcc2
7055 builtin and then its argument prototype would still apply. */
7056char gdk_im_open();
7057
7058int main() {
7059gdk_im_open()
7060; return 0; }
7061EOF
ec14dd32 7062if { (eval echo configure:7063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7063 rm -rf conftest*
7064 eval "ac_cv_lib_$ac_lib_var=yes"
7065else
7066 echo "configure: failed program was:" >&5
7067 cat conftest.$ac_ext >&5
7068 rm -rf conftest*
7069 eval "ac_cv_lib_$ac_lib_var=no"
7070fi
7071rm -f conftest*
7072LIBS="$ac_save_LIBS"
7073
7074fi
7075if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7076 echo "$ac_t""yes" 1>&6
7077 cat >> confdefs.h <<\EOF
7078#define HAVE_XIM 1
7079EOF
7080
7081else
7082 echo "$ac_t""no" 1>&6
7083fi
7084
7085
10f2d63a
VZ
7086fi
7087
7088if test "$wxUSE_WINE" = 1; then
7089 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
ec14dd32 7090echo "configure:7091: checking for WINE includes" >&5
10f2d63a
VZ
7091
7092ac_find_includes=
7093for ac_dir in $SEARCH_INCLUDE;
7094 do
7095 if test -f "$ac_dir/windows.h"; then
7096 ac_find_includes=$ac_dir
7097 break
7098 fi
7099 done
7100
7101 if test "$ac_find_includes" != "" ; then
7102 echo "$ac_t""found $ac_find_includes" 1>&6
7103 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7104 else
7105 echo "$ac_t""no" 1>&6
7106 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7107 fi
7108
7109 XPM_LINK=""
7110 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
ec14dd32 7111echo "configure:7112: checking for Xpm library" >&5
10f2d63a
VZ
7112
7113ac_find_libraries=
7114for ac_dir in $SEARCH_LIB;
7115 do
7116 for ac_extension in a so sl; do
7117 if test -f "$ac_dir/libXpm.$ac_extension"; then
7118 ac_find_libraries=$ac_dir
7119 break 2
7120 fi
7121 done
7122 done
7123
7124 if test "$ac_find_libraries" != "" ; then
7125 GUI_TK_LIBRARY="-L$ac_find_libraries"
7126 XPM_LINK="-lXpm"
7127 cat >> confdefs.h <<\EOF
7128#define wxHAVE_LIB_XPM 1
7129EOF
7130
7131 echo "$ac_t""found at $ac_find_libraries" 1>&6
7132 else
7133 echo "$ac_t""no" 1>&6
7134 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7135 fi
7136
7137 MESA_LINK=""
7138 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
ec14dd32 7139echo "configure:7140: checking for Mesa library" >&5
10f2d63a
VZ
7140
7141ac_find_libraries=
7142for ac_dir in $SEARCH_LIB;
7143 do
7144 for ac_extension in a so sl; do
7145 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7146 ac_find_libraries=$ac_dir
7147 break 2
7148 fi
7149 done
7150 done
7151
7152 if test "$ac_find_libraries" != "" ; then
7153 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7154 MESA_LINK="-lMesaGL"
7155 echo "$ac_t""found at $ac_find_libraries" 1>&6
7156 else
7157 { echo "configure: error: no" 1>&2; exit 1; }
7158 fi
7159
7160 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7161 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7162 WXWINE=1
7163 TOOLKIT=MSW
7164
7165 GUIHEADERS="\$(MSW_HEADERS)"
7166 GUIOBJS="\$(MSW_GUIOBJS)"
7167 COMMONOBJS="\$(MSW_COMMONOBJS)"
7168 GENERICOBJS="\$(MSW_GENERICOBJS)"
7169 GUIDEPS="\$(MSW_GUIDEPS)"
7170 COMMONDEPS="\$(MSW_COMMONDEPS)"
7171 GENERICDEPS="\$(MSW_GENERICDEPS)"
7172 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7173 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7174 GUIDIST=MSW_DIST
7175fi
7176
7177if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7178 # If we find X, set shell vars x_includes and x_libraries to the
7179# paths, otherwise set no_x=yes.
7180# Uses ac_ vars as temps to allow command line to override cache and checks.
7181# --without-x overrides everything else, but does not touch the cache.
7182echo $ac_n "checking for X""... $ac_c" 1>&6
ec14dd32 7183echo "configure:7184: checking for X" >&5
ab9b9eab
VZ
7184
7185# Check whether --with-x or --without-x was given.
7186if test "${with_x+set}" = set; then
7187 withval="$with_x"
7188 :
7189fi
ba337fe7 7190
ab9b9eab
VZ
7191# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7192if test "x$with_x" = xno; then
7193 # The user explicitly disabled X.
7194 have_x=disabled
7195else
7196 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7197 # Both variables are already set.
7198 have_x=yes
7199 else
7200if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7201 echo $ac_n "(cached) $ac_c" 1>&6
7202else
7203 # One or both of the vars are not set, and there is no cached value.
7204ac_x_includes=NO ac_x_libraries=NO
7205rm -fr conftestdir
7206if mkdir conftestdir; then
7207 cd conftestdir
7208 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7209 cat > Imakefile <<'EOF'
7210acfindx:
7211 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7212EOF
7213 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7215 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7216 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7217 for ac_extension in a so sl; do
ab9b9eab
VZ
7218 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7219 test -f $ac_im_libdir/libX11.$ac_extension; then
7220 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7221 fi
7222 done
ab9b9eab
VZ
7223 # Screen out bogus values from the imake configuration. They are
7224 # bogus both because they are the default anyway, and because
7225 # using them would break gcc on systems where it needs fixed includes.
7226 case "$ac_im_incroot" in
7227 /usr/include) ;;
7228 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7229 esac
7230 case "$ac_im_usrlibdir" in
7231 /usr/lib | /lib) ;;
7232 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7233 esac
ba337fe7 7234 fi
ab9b9eab
VZ
7235 cd ..
7236 rm -fr conftestdir
7237fi
10f2d63a 7238
ab9b9eab
VZ
7239if test "$ac_x_includes" = NO; then
7240 # Guess where to find include files, by looking for this one X11 .h file.
7241 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7242
ab9b9eab
VZ
7243 # First, try using that file with no special directory specified.
7244cat > conftest.$ac_ext <<EOF
ec14dd32 7245#line 7246 "configure"
ab9b9eab
VZ
7246#include "confdefs.h"
7247#include <$x_direct_test_include>
7248EOF
7249ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 7250{ (eval echo configure:7251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7251ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7252if test -z "$ac_err"; then
7253 rm -rf conftest*
7254 # We can compile using X headers with no special include directory.
7255ac_x_includes=
7256else
7257 echo "$ac_err" >&5
7258 echo "configure: failed program was:" >&5
7259 cat conftest.$ac_ext >&5
7260 rm -rf conftest*
7261 # Look for the header file in a standard set of common directories.
7262# Check X11 before X11Rn because it is often a symlink to the current release.
7263 for ac_dir in \
7264 /usr/X11/include \
7265 /usr/X11R6/include \
7266 /usr/X11R5/include \
7267 /usr/X11R4/include \
7268 \
7269 /usr/include/X11 \
7270 /usr/include/X11R6 \
7271 /usr/include/X11R5 \
7272 /usr/include/X11R4 \
7273 \
7274 /usr/local/X11/include \
7275 /usr/local/X11R6/include \
7276 /usr/local/X11R5/include \
7277 /usr/local/X11R4/include \
7278 \
7279 /usr/local/include/X11 \
7280 /usr/local/include/X11R6 \
7281 /usr/local/include/X11R5 \
7282 /usr/local/include/X11R4 \
7283 \
7284 /usr/X386/include \
7285 /usr/x386/include \
7286 /usr/XFree86/include/X11 \
7287 \
7288 /usr/include \
7289 /usr/local/include \
7290 /usr/unsupported/include \
7291 /usr/athena/include \
7292 /usr/local/x11r5/include \
7293 /usr/lpp/Xamples/include \
7294 \
7295 /usr/openwin/include \
7296 /usr/openwin/share/include \
7297 ; \
10f2d63a 7298 do
ab9b9eab
VZ
7299 if test -r "$ac_dir/$x_direct_test_include"; then
7300 ac_x_includes=$ac_dir
10f2d63a
VZ
7301 break
7302 fi
7303 done
ab9b9eab
VZ
7304fi
7305rm -f conftest*
7306fi # $ac_x_includes = NO
10f2d63a 7307
ab9b9eab
VZ
7308if test "$ac_x_libraries" = NO; then
7309 # Check for the libraries.
10f2d63a 7310
ab9b9eab
VZ
7311 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7312 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7313
ab9b9eab
VZ
7314 # See if we find them without any special options.
7315 # Don't add to $LIBS permanently.
7316 ac_save_LIBS="$LIBS"
7317 LIBS="-l$x_direct_test_library $LIBS"
7318cat > conftest.$ac_ext <<EOF
ec14dd32 7319#line 7320 "configure"
ab9b9eab 7320#include "confdefs.h"
10f2d63a 7321
ab9b9eab
VZ
7322int main() {
7323${x_direct_test_function}()
7324; return 0; }
7325EOF
ec14dd32 7326if { (eval echo configure:7327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7327 rm -rf conftest*
7328 LIBS="$ac_save_LIBS"
7329# We can link X programs with no special library path.
7330ac_x_libraries=
7331else
7332 echo "configure: failed program was:" >&5
7333 cat conftest.$ac_ext >&5
7334 rm -rf conftest*
7335 LIBS="$ac_save_LIBS"
7336# First see if replacing the include by lib works.
7337# Check X11 before X11Rn because it is often a symlink to the current release.
7338for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7339 /usr/X11/lib \
7340 /usr/X11R6/lib \
7341 /usr/X11R5/lib \
7342 /usr/X11R4/lib \
7343 \
7344 /usr/lib/X11 \
7345 /usr/lib/X11R6 \
7346 /usr/lib/X11R5 \
7347 /usr/lib/X11R4 \
7348 \
7349 /usr/local/X11/lib \
7350 /usr/local/X11R6/lib \
7351 /usr/local/X11R5/lib \
7352 /usr/local/X11R4/lib \
7353 \
7354 /usr/local/lib/X11 \
7355 /usr/local/lib/X11R6 \
7356 /usr/local/lib/X11R5 \
7357 /usr/local/lib/X11R4 \
7358 \
7359 /usr/X386/lib \
7360 /usr/x386/lib \
7361 /usr/XFree86/lib/X11 \
7362 \
7363 /usr/lib \
7364 /usr/local/lib \
7365 /usr/unsupported/lib \
7366 /usr/athena/lib \
7367 /usr/local/x11r5/lib \
7368 /usr/lpp/Xamples/lib \
7369 /lib/usr/lib/X11 \
7370 \
7371 /usr/openwin/lib \
7372 /usr/openwin/share/lib \
7373 ; \
7374do
7375 for ac_extension in a so sl; do
7376 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7377 ac_x_libraries=$ac_dir
7378 break 2
10f2d63a 7379 fi
10f2d63a 7380 done
ab9b9eab
VZ
7381done
7382fi
7383rm -f conftest*
7384fi # $ac_x_libraries = NO
10f2d63a 7385
ab9b9eab
VZ
7386if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7387 # Didn't find X anywhere. Cache the known absence of X.
7388 ac_cv_have_x="have_x=no"
7389else
7390 # Record where we found X for the cache.
7391 ac_cv_have_x="have_x=yes \
7392 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7393fi
7394fi
10f2d63a 7395 fi
ab9b9eab
VZ
7396 eval "$ac_cv_have_x"
7397fi # $with_x != no
10f2d63a 7398
ab9b9eab
VZ
7399if test "$have_x" != yes; then
7400 echo "$ac_t""$have_x" 1>&6
7401 no_x=yes
7402else
7403 # If each of the values was on the command line, it overrides each guess.
7404 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7405 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7406 # Update the cache value to reflect the command line values.
7407 ac_cv_have_x="have_x=yes \
7408 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7409 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7410fi
10f2d63a 7411
ab9b9eab
VZ
7412if test "$no_x" = yes; then
7413 # Not all programs may use this symbol, but it does not hurt to define it.
7414 cat >> confdefs.h <<\EOF
7415#define X_DISPLAY_MISSING 1
7416EOF
10f2d63a 7417
ab9b9eab
VZ
7418 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7419else
7420 if test -n "$x_includes"; then
7421 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7422 fi
7423
ab9b9eab
VZ
7424 # It would also be nice to do this for all -L options, not just this one.
7425 if test -n "$x_libraries"; then
7426 X_LIBS="$X_LIBS -L$x_libraries"
7427 # For Solaris; some versions of Sun CC require a space after -R and
7428 # others require no space. Words are not sufficient . . . .
7429 case "`(uname -sr) 2>/dev/null`" in
7430 "SunOS 5"*)
7431 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
ec14dd32 7432echo "configure:7433: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7433 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7434 cat > conftest.$ac_ext <<EOF
ec14dd32 7435#line 7436 "configure"
ab9b9eab 7436#include "confdefs.h"
10f2d63a 7437
ab9b9eab 7438int main() {
788deba1 7439
ab9b9eab
VZ
7440; return 0; }
7441EOF
ec14dd32 7442if { (eval echo configure:7443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7443 rm -rf conftest*
7444 ac_R_nospace=yes
7445else
7446 echo "configure: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7448 rm -rf conftest*
7449 ac_R_nospace=no
7450fi
7451rm -f conftest*
7452 if test $ac_R_nospace = yes; then
7453 echo "$ac_t""no" 1>&6
7454 X_LIBS="$X_LIBS -R$x_libraries"
7455 else
7456 LIBS="$ac_xsave_LIBS -R $x_libraries"
7457 cat > conftest.$ac_ext <<EOF
ec14dd32 7458#line 7459 "configure"
ab9b9eab 7459#include "confdefs.h"
788deba1 7460
ab9b9eab
VZ
7461int main() {
7462
7463; return 0; }
7464EOF
ec14dd32 7465if { (eval echo configure:7466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7466 rm -rf conftest*
7467 ac_R_space=yes
7468else
7469 echo "configure: failed program was:" >&5
7470 cat conftest.$ac_ext >&5
7471 rm -rf conftest*
7472 ac_R_space=no
7473fi
7474rm -f conftest*
7475 if test $ac_R_space = yes; then
7476 echo "$ac_t""yes" 1>&6
7477 X_LIBS="$X_LIBS -R $x_libraries"
7478 else
7479 echo "$ac_t""neither works" 1>&6
7480 fi
7481 fi
7482 LIBS="$ac_xsave_LIBS"
7483 esac
7484 fi
7485
7486 # Check for system-dependent libraries X programs must link with.
7487 # Do this before checking for the system-independent R6 libraries
7488 # (-lICE), since we may need -lsocket or whatever for X linking.
7489
7490 if test "$ISC" = yes; then
7491 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7492 else
7493 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7494 # libraries were built with DECnet support. And karl@cs.umb.edu says
7495 # the Alpha needs dnet_stub (dnet does not exist).
7496 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
ec14dd32 7497echo "configure:7498: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7498ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7499if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7500 echo $ac_n "(cached) $ac_c" 1>&6
7501else
7502 ac_save_LIBS="$LIBS"
7503LIBS="-ldnet $LIBS"
7504cat > conftest.$ac_ext <<EOF
ec14dd32 7505#line 7506 "configure"
ab9b9eab
VZ
7506#include "confdefs.h"
7507/* Override any gcc2 internal prototype to avoid an error. */
7508/* We use char because int might match the return type of a gcc2
7509 builtin and then its argument prototype would still apply. */
7510char dnet_ntoa();
7511
7512int main() {
7513dnet_ntoa()
7514; return 0; }
7515EOF
ec14dd32 7516if { (eval echo configure:7517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7517 rm -rf conftest*
7518 eval "ac_cv_lib_$ac_lib_var=yes"
7519else
7520 echo "configure: failed program was:" >&5
7521 cat conftest.$ac_ext >&5
7522 rm -rf conftest*
7523 eval "ac_cv_lib_$ac_lib_var=no"
7524fi
7525rm -f conftest*
7526LIBS="$ac_save_LIBS"
7527
7528fi
7529if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7530 echo "$ac_t""yes" 1>&6
7531 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7532else
7533 echo "$ac_t""no" 1>&6
7534fi
7535
7536 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7537 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
ec14dd32 7538echo "configure:7539: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7539ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7540if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7541 echo $ac_n "(cached) $ac_c" 1>&6
7542else
7543 ac_save_LIBS="$LIBS"
7544LIBS="-ldnet_stub $LIBS"
7545cat > conftest.$ac_ext <<EOF
ec14dd32 7546#line 7547 "configure"
ab9b9eab
VZ
7547#include "confdefs.h"
7548/* Override any gcc2 internal prototype to avoid an error. */
7549/* We use char because int might match the return type of a gcc2
7550 builtin and then its argument prototype would still apply. */
7551char dnet_ntoa();
7552
7553int main() {
7554dnet_ntoa()
7555; return 0; }
7556EOF
ec14dd32 7557if { (eval echo configure:7558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7558 rm -rf conftest*
7559 eval "ac_cv_lib_$ac_lib_var=yes"
7560else
7561 echo "configure: failed program was:" >&5
7562 cat conftest.$ac_ext >&5
7563 rm -rf conftest*
7564 eval "ac_cv_lib_$ac_lib_var=no"
7565fi
7566rm -f conftest*
7567LIBS="$ac_save_LIBS"
7568
7569fi
7570if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7571 echo "$ac_t""yes" 1>&6
7572 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7573else
7574 echo "$ac_t""no" 1>&6
7575fi
7576
7577 fi
7578
7579 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7580 # to get the SysV transport functions.
7581 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7582 # needs -lnsl.
7583 # The nsl library prevents programs from opening the X display
7584 # on Irix 5.2, according to dickey@clark.net.
7585 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
ec14dd32 7586echo "configure:7587: checking for gethostbyname" >&5
ab9b9eab
VZ
7587if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7588 echo $ac_n "(cached) $ac_c" 1>&6
7589else
7590 cat > conftest.$ac_ext <<EOF
ec14dd32 7591#line 7592 "configure"
ab9b9eab
VZ
7592#include "confdefs.h"
7593/* System header to define __stub macros and hopefully few prototypes,
7594 which can conflict with char gethostbyname(); below. */
7595#include <assert.h>
7596/* Override any gcc2 internal prototype to avoid an error. */
7597/* We use char because int might match the return type of a gcc2
7598 builtin and then its argument prototype would still apply. */
7599char gethostbyname();
7600
7601int main() {
7602
7603/* The GNU C library defines this for functions which it implements
7604 to always fail with ENOSYS. Some functions are actually named
7605 something starting with __ and the normal name is an alias. */
7606#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7607choke me
7608#else
caa2c79b 7609gethostbyname();
ab9b9eab
VZ
7610#endif
7611
7612; return 0; }
7613EOF
ec14dd32 7614if { (eval echo configure:7615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7615 rm -rf conftest*
7616 eval "ac_cv_func_gethostbyname=yes"
7617else
7618 echo "configure: failed program was:" >&5
7619 cat conftest.$ac_ext >&5
7620 rm -rf conftest*
7621 eval "ac_cv_func_gethostbyname=no"
7622fi
7623rm -f conftest*
7624fi
7625
7626if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7627 echo "$ac_t""yes" 1>&6
7628 :
7629else
7630 echo "$ac_t""no" 1>&6
7631fi
7632
7633 if test $ac_cv_func_gethostbyname = no; then
7634 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
ec14dd32 7635echo "configure:7636: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7636ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7637if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7638 echo $ac_n "(cached) $ac_c" 1>&6
7639else
7640 ac_save_LIBS="$LIBS"
7641LIBS="-lnsl $LIBS"
7642cat > conftest.$ac_ext <<EOF
ec14dd32 7643#line 7644 "configure"
ab9b9eab
VZ
7644#include "confdefs.h"
7645/* Override any gcc2 internal prototype to avoid an error. */
7646/* We use char because int might match the return type of a gcc2
7647 builtin and then its argument prototype would still apply. */
7648char gethostbyname();
7649
7650int main() {
7651gethostbyname()
7652; return 0; }
7653EOF
ec14dd32 7654if { (eval echo configure:7655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7655 rm -rf conftest*
7656 eval "ac_cv_lib_$ac_lib_var=yes"
7657else
7658 echo "configure: failed program was:" >&5
7659 cat conftest.$ac_ext >&5
7660 rm -rf conftest*
7661 eval "ac_cv_lib_$ac_lib_var=no"
7662fi
7663rm -f conftest*
7664LIBS="$ac_save_LIBS"
7665
7666fi
7667if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7668 echo "$ac_t""yes" 1>&6
7669 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7670else
7671 echo "$ac_t""no" 1>&6
7672fi
7673
7674 fi
7675
7676 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7677 # socket/setsockopt and other routines are undefined under SCO ODT
7678 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7679 # on later versions), says simon@lia.di.epfl.ch: it contains
7680 # gethostby* variants that don't use the nameserver (or something).
7681 # -lsocket must be given before -lnsl if both are needed.
7682 # We assume that if connect needs -lnsl, so does gethostbyname.
7683 echo $ac_n "checking for connect""... $ac_c" 1>&6
ec14dd32 7684echo "configure:7685: checking for connect" >&5
ab9b9eab
VZ
7685if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7686 echo $ac_n "(cached) $ac_c" 1>&6
7687else
7688 cat > conftest.$ac_ext <<EOF
ec14dd32 7689#line 7690 "configure"
ab9b9eab
VZ
7690#include "confdefs.h"
7691/* System header to define __stub macros and hopefully few prototypes,
7692 which can conflict with char connect(); below. */
7693#include <assert.h>
7694/* Override any gcc2 internal prototype to avoid an error. */
7695/* We use char because int might match the return type of a gcc2
7696 builtin and then its argument prototype would still apply. */
7697char connect();
7698
7699int main() {
7700
7701/* The GNU C library defines this for functions which it implements
7702 to always fail with ENOSYS. Some functions are actually named
7703 something starting with __ and the normal name is an alias. */
7704#if defined (__stub_connect) || defined (__stub___connect)
7705choke me
7706#else
caa2c79b 7707connect();
ab9b9eab
VZ
7708#endif
7709
7710; return 0; }
7711EOF
ec14dd32 7712if { (eval echo configure:7713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7713 rm -rf conftest*
7714 eval "ac_cv_func_connect=yes"
7715else
7716 echo "configure: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7718 rm -rf conftest*
7719 eval "ac_cv_func_connect=no"
7720fi
7721rm -f conftest*
7722fi
7723
7724if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7725 echo "$ac_t""yes" 1>&6
7726 :
7727else
7728 echo "$ac_t""no" 1>&6
7729fi
7730
7731 if test $ac_cv_func_connect = no; then
7732 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
ec14dd32 7733echo "configure:7734: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7734ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7735if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7736 echo $ac_n "(cached) $ac_c" 1>&6
7737else
7738 ac_save_LIBS="$LIBS"
7739LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7740cat > conftest.$ac_ext <<EOF
ec14dd32 7741#line 7742 "configure"
ab9b9eab
VZ
7742#include "confdefs.h"
7743/* Override any gcc2 internal prototype to avoid an error. */
7744/* We use char because int might match the return type of a gcc2
7745 builtin and then its argument prototype would still apply. */
7746char connect();
7747
7748int main() {
7749connect()
7750; return 0; }
7751EOF
ec14dd32 7752if { (eval echo configure:7753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7753 rm -rf conftest*
7754 eval "ac_cv_lib_$ac_lib_var=yes"
7755else
7756 echo "configure: failed program was:" >&5
7757 cat conftest.$ac_ext >&5
7758 rm -rf conftest*
7759 eval "ac_cv_lib_$ac_lib_var=no"
7760fi
7761rm -f conftest*
7762LIBS="$ac_save_LIBS"
7763
7764fi
7765if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7766 echo "$ac_t""yes" 1>&6
7767 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7768else
7769 echo "$ac_t""no" 1>&6
7770fi
7771
7772 fi
7773
7774 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7775 echo $ac_n "checking for remove""... $ac_c" 1>&6
ec14dd32 7776echo "configure:7777: checking for remove" >&5
ab9b9eab
VZ
7777if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7779else
7780 cat > conftest.$ac_ext <<EOF
ec14dd32 7781#line 7782 "configure"
ab9b9eab
VZ
7782#include "confdefs.h"
7783/* System header to define __stub macros and hopefully few prototypes,
7784 which can conflict with char remove(); below. */
7785#include <assert.h>
7786/* Override any gcc2 internal prototype to avoid an error. */
7787/* We use char because int might match the return type of a gcc2
7788 builtin and then its argument prototype would still apply. */
7789char remove();
7790
7791int main() {
7792
7793/* The GNU C library defines this for functions which it implements
7794 to always fail with ENOSYS. Some functions are actually named
7795 something starting with __ and the normal name is an alias. */
7796#if defined (__stub_remove) || defined (__stub___remove)
7797choke me
7798#else
caa2c79b 7799remove();
ab9b9eab
VZ
7800#endif
7801
7802; return 0; }
7803EOF
ec14dd32 7804if { (eval echo configure:7805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7805 rm -rf conftest*
7806 eval "ac_cv_func_remove=yes"
7807else
7808 echo "configure: failed program was:" >&5
7809 cat conftest.$ac_ext >&5
7810 rm -rf conftest*
7811 eval "ac_cv_func_remove=no"
7812fi
7813rm -f conftest*
7814fi
7815
7816if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7817 echo "$ac_t""yes" 1>&6
7818 :
7819else
7820 echo "$ac_t""no" 1>&6
7821fi
7822
7823 if test $ac_cv_func_remove = no; then
7824 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
ec14dd32 7825echo "configure:7826: checking for remove in -lposix" >&5
ab9b9eab
VZ
7826ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7827if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7828 echo $ac_n "(cached) $ac_c" 1>&6
7829else
7830 ac_save_LIBS="$LIBS"
7831LIBS="-lposix $LIBS"
7832cat > conftest.$ac_ext <<EOF
ec14dd32 7833#line 7834 "configure"
ab9b9eab
VZ
7834#include "confdefs.h"
7835/* Override any gcc2 internal prototype to avoid an error. */
7836/* We use char because int might match the return type of a gcc2
7837 builtin and then its argument prototype would still apply. */
7838char remove();
7839
7840int main() {
7841remove()
7842; return 0; }
7843EOF
ec14dd32 7844if { (eval echo configure:7845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7845 rm -rf conftest*
7846 eval "ac_cv_lib_$ac_lib_var=yes"
7847else
7848 echo "configure: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7850 rm -rf conftest*
7851 eval "ac_cv_lib_$ac_lib_var=no"
7852fi
7853rm -f conftest*
7854LIBS="$ac_save_LIBS"
7855
7856fi
7857if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7858 echo "$ac_t""yes" 1>&6
7859 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7860else
7861 echo "$ac_t""no" 1>&6
7862fi
7863
7864 fi
7865
7866 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7867 echo $ac_n "checking for shmat""... $ac_c" 1>&6
ec14dd32 7868echo "configure:7869: checking for shmat" >&5
ab9b9eab
VZ
7869if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7870 echo $ac_n "(cached) $ac_c" 1>&6
7871else
7872 cat > conftest.$ac_ext <<EOF
ec14dd32 7873#line 7874 "configure"
ab9b9eab
VZ
7874#include "confdefs.h"
7875/* System header to define __stub macros and hopefully few prototypes,
7876 which can conflict with char shmat(); below. */
7877#include <assert.h>
7878/* Override any gcc2 internal prototype to avoid an error. */
7879/* We use char because int might match the return type of a gcc2
7880 builtin and then its argument prototype would still apply. */
7881char shmat();
7882
7883int main() {
7884
7885/* The GNU C library defines this for functions which it implements
7886 to always fail with ENOSYS. Some functions are actually named
7887 something starting with __ and the normal name is an alias. */
7888#if defined (__stub_shmat) || defined (__stub___shmat)
7889choke me
7890#else
caa2c79b 7891shmat();
ab9b9eab
VZ
7892#endif
7893
7894; return 0; }
7895EOF
ec14dd32 7896if { (eval echo configure:7897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7897 rm -rf conftest*
7898 eval "ac_cv_func_shmat=yes"
7899else
7900 echo "configure: failed program was:" >&5
7901 cat conftest.$ac_ext >&5
7902 rm -rf conftest*
7903 eval "ac_cv_func_shmat=no"
7904fi
7905rm -f conftest*
7906fi
7907
7908if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7909 echo "$ac_t""yes" 1>&6
7910 :
7911else
7912 echo "$ac_t""no" 1>&6
7913fi
7914
7915 if test $ac_cv_func_shmat = no; then
7916 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
ec14dd32 7917echo "configure:7918: checking for shmat in -lipc" >&5
ab9b9eab
VZ
7918ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7919if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7920 echo $ac_n "(cached) $ac_c" 1>&6
7921else
7922 ac_save_LIBS="$LIBS"
7923LIBS="-lipc $LIBS"
7924cat > conftest.$ac_ext <<EOF
ec14dd32 7925#line 7926 "configure"
ab9b9eab
VZ
7926#include "confdefs.h"
7927/* Override any gcc2 internal prototype to avoid an error. */
7928/* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */
7930char shmat();
7931
7932int main() {
7933shmat()
7934; return 0; }
7935EOF
ec14dd32 7936if { (eval echo configure:7937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7937 rm -rf conftest*
7938 eval "ac_cv_lib_$ac_lib_var=yes"
7939else
7940 echo "configure: failed program was:" >&5
7941 cat conftest.$ac_ext >&5
7942 rm -rf conftest*
7943 eval "ac_cv_lib_$ac_lib_var=no"
7944fi
7945rm -f conftest*
7946LIBS="$ac_save_LIBS"
7947
7948fi
7949if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7950 echo "$ac_t""yes" 1>&6
7951 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7952else
7953 echo "$ac_t""no" 1>&6
7954fi
7955
7956 fi
7957 fi
7958
7959 # Check for libraries that X11R6 Xt/Xaw programs need.
7960 ac_save_LDFLAGS="$LDFLAGS"
7961 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7962 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7963 # check for ICE first), but we must link in the order -lSM -lICE or
7964 # we get undefined symbols. So assume we have SM if we have ICE.
7965 # These have to be linked with before -lX11, unlike the other
7966 # libraries we check for below, so use a different variable.
7967 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7968 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
ec14dd32 7969echo "configure:7970: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
7970ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7971if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7972 echo $ac_n "(cached) $ac_c" 1>&6
7973else
7974 ac_save_LIBS="$LIBS"
7975LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7976cat > conftest.$ac_ext <<EOF
ec14dd32 7977#line 7978 "configure"
ab9b9eab
VZ
7978#include "confdefs.h"
7979/* Override any gcc2 internal prototype to avoid an error. */
7980/* We use char because int might match the return type of a gcc2
7981 builtin and then its argument prototype would still apply. */
7982char IceConnectionNumber();
7983
7984int main() {
7985IceConnectionNumber()
7986; return 0; }
7987EOF
ec14dd32 7988if { (eval echo configure:7989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7989 rm -rf conftest*
7990 eval "ac_cv_lib_$ac_lib_var=yes"
7991else
7992 echo "configure: failed program was:" >&5
7993 cat conftest.$ac_ext >&5
7994 rm -rf conftest*
7995 eval "ac_cv_lib_$ac_lib_var=no"
7996fi
7997rm -f conftest*
7998LIBS="$ac_save_LIBS"
7999
8000fi
8001if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8002 echo "$ac_t""yes" 1>&6
8003 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8004else
8005 echo "$ac_t""no" 1>&6
8006fi
8007
8008 LDFLAGS="$ac_save_LDFLAGS"
8009
8010fi
8011
8012
8013 if test "$no_x" = "yes"; then
8014 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8015 fi
8016
8017 GUI_TK_LIBRARY="$X_LIBS"
8018 TOOLKIT_INCLUDE="$X_CFLAGS"
8019
dad6c0ea
VZ
8020 AFMINSTALL=afminstall
8021
ab9b9eab
VZ
8022
8023 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
ec14dd32 8024echo "configure:8025: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8025
8026ac_find_includes=
8027for ac_dir in $SEARCH_INCLUDE;
8028 do
8029 if test -f "$ac_dir/Xm/Xm.h"; then
8030 ac_find_includes=$ac_dir
8031 break
8032 fi
8033 done
8034
8035 if test "$ac_find_includes" != "" ; then
8036 echo "$ac_t""found $ac_find_includes" 1>&6
8037 else
8038 echo "$ac_t""no" 1>&6
8039 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8040 fi
8041
8042 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
ec14dd32 8043echo "configure:8044: checking for Motif/Lesstif library" >&5
ab9b9eab
VZ
8044
8045ac_find_libraries=
8046for ac_dir in $SEARCH_LIB;
8047 do
8048 for ac_extension in a so sl; do
8049 if test -f "$ac_dir/libXm.$ac_extension"; then
8050 ac_find_libraries=$ac_dir
8051 break 2
8052 fi
8053 done
8054 done
8055
8056 if test "$ac_find_libraries" != "" ; then
8057
8058 ac_path_to_include=$ac_find_includes
8059 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8060 result=$?
8061 if test $result = 0; then
8062 ac_path_to_include=""
8063 else
8064 ac_path_to_include="-I$ac_find_includes"
8065 fi
8066
8067
8068 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8069 result=$?
8070 if test $result = 0; then
8071 ac_path_to_link=""
8072 else
8073 ac_path_to_link="-L$ac_find_libraries"
8074 fi
8075
8076
8077 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8078 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8079 echo "$ac_t""found at $ac_find_libraries" 1>&6
8080 else
8081 echo "$ac_t""no" 1>&6
8082 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8083 fi
8084
8085 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
ec14dd32 8086echo "configure:8087: checking for Xt library" >&5
ab9b9eab
VZ
8087
8088ac_find_libraries=
8089for ac_dir in $SEARCH_LIB;
8090 do
8091 for ac_extension in a so sl; do
8092 if test -f "$ac_dir/libXt.$ac_extension"; then
8093 ac_find_libraries=$ac_dir
8094 break 2
8095 fi
8096 done
8097 done
8098
8099 if test "$ac_find_libraries" != "" ; then
8100
8101 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8102 result=$?
8103 if test $result = 0; then
8104 ac_path_to_link=""
8105 else
8106 ac_path_to_link="-L$ac_find_libraries"
8107 fi
8108
8109 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8110 echo "$ac_t""found at $ac_find_libraries" 1>&6
8111 else
8112 echo "$ac_t""no" 1>&6
8113 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
8114 fi
8115
8116 XPM_LINK=""
8117 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
ec14dd32 8118echo "configure:8119: checking for Xpm library" >&5
ab9b9eab
VZ
8119
8120ac_find_libraries=
8121for ac_dir in $SEARCH_LIB;
8122 do
8123 for ac_extension in a so sl; do
8124 if test -f "$ac_dir/libXpm.$ac_extension"; then
8125 ac_find_libraries=$ac_dir
8126 break 2
8127 fi
8128 done
8129 done
8130
8131 if test "$ac_find_libraries" != "" ; then
8132
8133 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8134 result=$?
8135 if test $result = 0; then
8136 ac_path_to_link=""
8137 else
8138 ac_path_to_link="-L$ac_find_libraries"
8139 fi
8140
8141 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8142 XPM_LINK="-lXpm "
8143 cat >> confdefs.h <<\EOF
8144#define wxHAVE_LIB_XPM 1
8145EOF
8146
8147 echo "$ac_t""found at $ac_find_libraries" 1>&6
8148 else
8149 echo "$ac_t""no" 1>&6
8150 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8151 fi
8152
8153 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8154 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8155 TOOLKIT=MOTIF
8156
8157 GUIHEADERS="\$(MOTIF_HEADERS)"
8158 GUIOBJS="\$(MOTIF_GUIOBJS)"
8159 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8160 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8161 GUIDEPS="\$(MOTIF_GUIDEPS)"
8162 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8163 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8164 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8165 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8166 GUIDIST=MOTIF_DIST
8167fi
8168
e07802fc
VZ
8169if test "$wxUSE_PM" = 1; then
8170 TOOLKIT=PM
8171
8172 GUIOBJS="\$(PM_GUIOBJS)"
8173 GUIHEADERS="\$(PM_HEADERS)"
8174 COMMONOBJS="\$(PM_COMMONOBJS)"
8175 GENERICOBJS="\$(PM_GENERICOBJS)"
8176 GUIDEPS="\$(PM_GUIDEPS)"
8177 COMMONDEPS="\$(PM_COMMONDEPS)"
8178 GENERICDEPS="\$(PM_GENERICDEPS)"
8179 UNIXOBJS=
8180 UNIXDEPS=
8181 GUIDIST=GTK_DIST
8182fi
8183
8184if test "$TOOLKIT" != "PM" ; then
ec14dd32 8185 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8186else
8187 TOOLKIT_DIR="os2"
8188fi
10f2d63a
VZ
8189
8190TOOLKIT_DEF="-D__WX${TOOLKIT}__"
8191
8192WX_LIBRARY="wx_${TOOLKIT_DIR}"
8193
d9d8273d
RR
8194 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(IODBCOBJS)"
8195 if test "$wxUSE_LIBJPEG" = "yes" ; then
8196 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
8197 fi
8198 if test "$wxUSE_LIBTIFF" = "yes" ; then
8199 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8200 fi
8201 if test "$wxUSE_LIBPNG" = "yes" ; then
8202 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8203 fi
8204 if test "$wxUSE_ZLIB" = "yes" ; then
8205 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8206 fi
10f2d63a
VZ
8207 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
8208 ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)"
8209else
8210
dad6c0ea
VZ
8211 USE_GUI=0
8212
10f2d63a
VZ
8213 ALL_OBJECTS="\$(BASE_OBJS)"
8214 ALL_DEPFILES="\${BASE_DEPS}"
8215 ALL_HEADERS="\${BASE_HEADERS}"
8216
8217 WX_LIBRARY="wxbase"
8218fi
8219
8220WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8221
8222WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8223
8224WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8225
8226WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8227WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8228WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8229
8230SHARED_LD=
8231PIC_FLAG=
8232WX_ALL=
8233WX_ALL_INSTALLED=
1d62a8b4 8234BURNT_LIBRARY_NAME=
10f2d63a 8235
b12915c1 8236
10f2d63a
VZ
8237if test "$wxUSE_SHARED" = "yes"; then
8238 case "${host}" in
8239 *-hp-hpux* )
8240 if test "$GCC" = yes ; then
69ffe1d2 8241 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8242 PIC_FLAG="-fPIC"
8243 else
8244 SHARED_LD="${CXX} -b -o"
8245 PIC_FLAG="+Z"
8246 fi
8247 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8248 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8249 ;;
b12915c1
VZ
8250
8251 *-*-linux* )
10f2d63a
VZ
8252 SHARED_LD="${CC} -shared -o"
8253 PIC_FLAG="-fPIC"
8254 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8255 WX_ALL="CREATE_LINKS"
b12915c1 8256 ;;
10f2d63a
VZ
8257 *-*-irix5* | *-*-irix6* )
8258 if test "$GCC" = yes ; then
8259 SHARED_LD="${CC} -shared -o"
8260 PIC_FLAG="-fPIC"
8261 else
8262 SHARED_LD="${CXX} -shared -o"
8263 fi
8264 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8265 WX_ALL="CREATE_LINKS"
8266 ;;
8267 *-*-solaris2* )
8268 if test "$GCC" = yes ; then
8269 SHARED_LD="${CC} -shared -o"
8270 PIC_FLAG="-fPIC"
8271 else
8272 SHARED_LD="${CXX} -G -o"
8273 PIC_FLAG="-KPIC"
8274 fi
8275 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8276 WX_ALL="CREATE_LINKS"
8277 ;;
8278 *-*-sunos4* )
8279 SHARED_LD="${CC} -shared -o"
8280 PIC_FLAG="-fPIC"
8281 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8282 WX_ALL="CREATE_LINKS"
8283 ;;
8284 *-*-freebsd* | *-*-netbsd*)
8285 SHARED_LD="${CC} -shared -o"
8286 PIC_FLAG="-fPIC"
8287 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8288 WX_ALL="CREATE_LINKS"
8289 ;;
8290 *-*-osf* )
8291 SHARED_LD="${CXX} -shared -o"
8292 PIC_FLAG="-fPIC"
8293 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8294 WX_ALL="CREATE_LINKS"
8295 ;;
8296 *-*-dgux5* )
8297 SHARED_LD="${CXX} -shared -o"
8298 PIC_FLAG="-fPIC"
8299 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8300 WX_ALL="CREATE_LINKS"
8301 ;;
8302 *-*-sysv5* )
8303 SHARED_LD="${CC} -shared -o"
8304 PIC_FLAG="-fPIC"
8305 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8306 WX_ALL="CREATE_LINKS"
8307 ;;
8308 *-*-aix* )
8309 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8310 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8311 ;;
8312 *-*-cygwin32* )
8313 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8314 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8315 ;;
b12915c1 8316 *-*-mingw32* )
10f2d63a
VZ
8317 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8318 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8319 ;;
8320 *-pc-os2_emx )
e07802fc
VZ
8321 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8322 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 8323 ;;
b12915c1 8324 *-*-beos* )
e2b8b066 8325 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
8326 PIC_FLAG="-fPIC"
8327 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8328 WX_ALL="CREATE_LINKS"
8329 ;;
10f2d63a
VZ
8330 *)
8331 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8332 esac
8333
8334 if test "x$WX_TARGET_LIBRARY" = "x"; then
8335 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8336 fi
8337else
8338 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8339 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8340fi
8341
8342
8343for ac_hdr in strings.h
8344do
8345ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8346echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ec14dd32 8347echo "configure:8348: checking for $ac_hdr" >&5
10f2d63a
VZ
8348if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8349 echo $ac_n "(cached) $ac_c" 1>&6
8350else
8351 cat > conftest.$ac_ext <<EOF
ec14dd32 8352#line 8353 "configure"
10f2d63a
VZ
8353#include "confdefs.h"
8354#include <$ac_hdr>
8355EOF
8356ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 8357{ (eval echo configure:8358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8358ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8359if test -z "$ac_err"; then
8360 rm -rf conftest*
8361 eval "ac_cv_header_$ac_safe=yes"
8362else
8363 echo "$ac_err" >&5
8364 echo "configure: failed program was:" >&5
8365 cat conftest.$ac_ext >&5
8366 rm -rf conftest*
8367 eval "ac_cv_header_$ac_safe=no"
8368fi
8369rm -f conftest*
8370fi
8371if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8372 echo "$ac_t""yes" 1>&6
8373 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8374 cat >> confdefs.h <<EOF
8375#define $ac_tr_hdr 1
8376EOF
8377
8378else
8379 echo "$ac_t""no" 1>&6
8380fi
8381done
8382
8383for ac_hdr in unistd.h
8384do
8385ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8386echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ec14dd32 8387echo "configure:8388: checking for $ac_hdr" >&5
10f2d63a
VZ
8388if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8389 echo $ac_n "(cached) $ac_c" 1>&6
8390else
8391 cat > conftest.$ac_ext <<EOF
ec14dd32 8392#line 8393 "configure"
10f2d63a
VZ
8393#include "confdefs.h"
8394#include <$ac_hdr>
8395EOF
8396ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 8397{ (eval echo configure:8398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8398ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8399if test -z "$ac_err"; then
8400 rm -rf conftest*
8401 eval "ac_cv_header_$ac_safe=yes"
8402else
8403 echo "$ac_err" >&5
8404 echo "configure: failed program was:" >&5
8405 cat conftest.$ac_ext >&5
8406 rm -rf conftest*
8407 eval "ac_cv_header_$ac_safe=no"
8408fi
8409rm -f conftest*
8410fi
8411if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8412 echo "$ac_t""yes" 1>&6
8413 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8414 cat >> confdefs.h <<EOF
8415#define $ac_tr_hdr 1
8416EOF
8417
8418else
8419 echo "$ac_t""no" 1>&6
8420fi
8421done
8422
8423for ac_hdr in wchar.h
8424do
8425ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8426echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ec14dd32 8427echo "configure:8428: checking for $ac_hdr" >&5
10f2d63a
VZ
8428if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8429 echo $ac_n "(cached) $ac_c" 1>&6
8430else
8431 cat > conftest.$ac_ext <<EOF
ec14dd32 8432#line 8433 "configure"
10f2d63a
VZ
8433#include "confdefs.h"
8434#include <$ac_hdr>
8435EOF
8436ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 8437{ (eval echo configure:8438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8438ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8439if test -z "$ac_err"; then
8440 rm -rf conftest*
8441 eval "ac_cv_header_$ac_safe=yes"
8442else
8443 echo "$ac_err" >&5
8444 echo "configure: failed program was:" >&5
8445 cat conftest.$ac_ext >&5
8446 rm -rf conftest*
8447 eval "ac_cv_header_$ac_safe=no"
8448fi
8449rm -f conftest*
8450fi
8451if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8452 echo "$ac_t""yes" 1>&6
8453 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8454 cat >> confdefs.h <<EOF
8455#define $ac_tr_hdr 1
8456EOF
8457
8458else
8459 echo "$ac_t""no" 1>&6
8460fi
8461done
8462
8463for ac_hdr in wcstr.h
8464do
8465ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8466echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ec14dd32 8467echo "configure:8468: checking for $ac_hdr" >&5
10f2d63a
VZ
8468if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8469 echo $ac_n "(cached) $ac_c" 1>&6
8470else
8471 cat > conftest.$ac_ext <<EOF
ec14dd32 8472#line 8473 "configure"
10f2d63a
VZ
8473#include "confdefs.h"
8474#include <$ac_hdr>
8475EOF
8476ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 8477{ (eval echo configure:8478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8478ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8479if test -z "$ac_err"; then
8480 rm -rf conftest*
8481 eval "ac_cv_header_$ac_safe=yes"
8482else
8483 echo "$ac_err" >&5
8484 echo "configure: failed program was:" >&5
8485 cat conftest.$ac_ext >&5
8486 rm -rf conftest*
8487 eval "ac_cv_header_$ac_safe=no"
8488fi
8489rm -f conftest*
8490fi
8491if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8492 echo "$ac_t""yes" 1>&6
8493 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8494 cat >> confdefs.h <<EOF
8495#define $ac_tr_hdr 1
8496EOF
8497
8498else
8499 echo "$ac_t""no" 1>&6
8500fi
8501done
8502
8503for ac_hdr in fnmatch.h
8504do
8505ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8506echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ec14dd32 8507echo "configure:8508: checking for $ac_hdr" >&5
10f2d63a
VZ
8508if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8509 echo $ac_n "(cached) $ac_c" 1>&6
8510else
8511 cat > conftest.$ac_ext <<EOF
ec14dd32 8512#line 8513 "configure"
10f2d63a
VZ
8513#include "confdefs.h"
8514#include <$ac_hdr>
8515EOF
8516ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 8517{ (eval echo configure:8518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8518ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8519if test -z "$ac_err"; then
8520 rm -rf conftest*
8521 eval "ac_cv_header_$ac_safe=yes"
8522else
8523 echo "$ac_err" >&5
8524 echo "configure: failed program was:" >&5
8525 cat conftest.$ac_ext >&5
8526 rm -rf conftest*
8527 eval "ac_cv_header_$ac_safe=no"
8528fi
8529rm -f conftest*
8530fi
8531if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8532 echo "$ac_t""yes" 1>&6
8533 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8534 cat >> confdefs.h <<EOF
8535#define $ac_tr_hdr 1
8536EOF
8537
8538else
8539 echo "$ac_t""no" 1>&6
8540fi
8541done
8542
8543
8544if test "$wxUSE_GUI" = "yes"; then
8545 for ac_hdr in X11/XKBlib.h
8546do
8547ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8548echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ec14dd32 8549echo "configure:8550: checking for $ac_hdr" >&5
10f2d63a
VZ
8550if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8551 echo $ac_n "(cached) $ac_c" 1>&6
8552else
8553 cat > conftest.$ac_ext <<EOF
ec14dd32 8554#line 8555 "configure"
10f2d63a
VZ
8555#include "confdefs.h"
8556#include <$ac_hdr>
8557EOF
8558ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 8559{ (eval echo configure:8560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8560ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8561if test -z "$ac_err"; then
8562 rm -rf conftest*
8563 eval "ac_cv_header_$ac_safe=yes"
8564else
8565 echo "$ac_err" >&5
8566 echo "configure: failed program was:" >&5
8567 cat conftest.$ac_ext >&5
8568 rm -rf conftest*
8569 eval "ac_cv_header_$ac_safe=no"
8570fi
8571rm -f conftest*
8572fi
8573if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8574 echo "$ac_t""yes" 1>&6
8575 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8576 cat >> confdefs.h <<EOF
8577#define $ac_tr_hdr 1
8578EOF
8579
8580else
8581 echo "$ac_t""no" 1>&6
8582fi
8583done
8584
8585fi
8586
8587
8588echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
ec14dd32 8589echo "configure:8590: checking for ANSI C header files" >&5
10f2d63a
VZ
8590if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8591 echo $ac_n "(cached) $ac_c" 1>&6
8592else
8593 cat > conftest.$ac_ext <<EOF
ec14dd32 8594#line 8595 "configure"
10f2d63a
VZ
8595#include "confdefs.h"
8596#include <stdlib.h>
8597#include <stdarg.h>
8598#include <string.h>
8599#include <float.h>
8600EOF
8601ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 8602{ (eval echo configure:8603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8603ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8604if test -z "$ac_err"; then
8605 rm -rf conftest*
8606 ac_cv_header_stdc=yes
8607else
8608 echo "$ac_err" >&5
8609 echo "configure: failed program was:" >&5
8610 cat conftest.$ac_ext >&5
8611 rm -rf conftest*
8612 ac_cv_header_stdc=no
8613fi
8614rm -f conftest*
8615
8616if test $ac_cv_header_stdc = yes; then
8617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8618cat > conftest.$ac_ext <<EOF
ec14dd32 8619#line 8620 "configure"
10f2d63a
VZ
8620#include "confdefs.h"
8621#include <string.h>
8622EOF
8623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8624 egrep "memchr" >/dev/null 2>&1; then
8625 :
8626else
8627 rm -rf conftest*
8628 ac_cv_header_stdc=no
8629fi
8630rm -f conftest*
8631
8632fi
8633
8634if test $ac_cv_header_stdc = yes; then
8635 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8636cat > conftest.$ac_ext <<EOF
ec14dd32 8637#line 8638 "configure"
10f2d63a
VZ
8638#include "confdefs.h"
8639#include <stdlib.h>
8640EOF
8641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8642 egrep "free" >/dev/null 2>&1; then
8643 :
8644else
8645 rm -rf conftest*
8646 ac_cv_header_stdc=no
8647fi
8648rm -f conftest*
8649
8650fi
8651
8652if test $ac_cv_header_stdc = yes; then
8653 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8654if test "$cross_compiling" = yes; then
8655 :
8656else
8657 cat > conftest.$ac_ext <<EOF
ec14dd32 8658#line 8659 "configure"
10f2d63a
VZ
8659#include "confdefs.h"
8660#include <ctype.h>
8661#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8662#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8663#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8664int main () { int i; for (i = 0; i < 256; i++)
8665if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8666exit (0); }
8667
8668EOF
ec14dd32 8669if { (eval echo configure:8670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8670then
8671 :
8672else
8673 echo "configure: failed program was:" >&5
8674 cat conftest.$ac_ext >&5
8675 rm -fr conftest*
8676 ac_cv_header_stdc=no
8677fi
8678rm -fr conftest*
8679fi
8680
8681fi
8682fi
8683
8684echo "$ac_t""$ac_cv_header_stdc" 1>&6
8685if test $ac_cv_header_stdc = yes; then
8686 cat >> confdefs.h <<\EOF
8687#define STDC_HEADERS 1
8688EOF
8689
8690fi
8691
8692echo $ac_n "checking for mode_t""... $ac_c" 1>&6
ec14dd32 8693echo "configure:8694: checking for mode_t" >&5
10f2d63a
VZ
8694if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8695 echo $ac_n "(cached) $ac_c" 1>&6
8696else
8697 cat > conftest.$ac_ext <<EOF
ec14dd32 8698#line 8699 "configure"
10f2d63a
VZ
8699#include "confdefs.h"
8700#include <sys/types.h>
8701#if STDC_HEADERS
8702#include <stdlib.h>
8703#include <stddef.h>
8704#endif
8705EOF
8706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8707 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8708 rm -rf conftest*
8709 ac_cv_type_mode_t=yes
8710else
8711 rm -rf conftest*
8712 ac_cv_type_mode_t=no
8713fi
8714rm -f conftest*
8715
8716fi
8717echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8718if test $ac_cv_type_mode_t = no; then
8719 cat >> confdefs.h <<\EOF
8720#define mode_t int
8721EOF
8722
8723fi
8724
8725echo $ac_n "checking for off_t""... $ac_c" 1>&6
ec14dd32 8726echo "configure:8727: checking for off_t" >&5
10f2d63a
VZ
8727if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8728 echo $ac_n "(cached) $ac_c" 1>&6
8729else
8730 cat > conftest.$ac_ext <<EOF
ec14dd32 8731#line 8732 "configure"
10f2d63a
VZ
8732#include "confdefs.h"
8733#include <sys/types.h>
8734#if STDC_HEADERS
8735#include <stdlib.h>
8736#include <stddef.h>
8737#endif
8738EOF
8739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8740 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8741 rm -rf conftest*
8742 ac_cv_type_off_t=yes
8743else
8744 rm -rf conftest*
8745 ac_cv_type_off_t=no
8746fi
8747rm -f conftest*
8748
8749fi
8750echo "$ac_t""$ac_cv_type_off_t" 1>&6
8751if test $ac_cv_type_off_t = no; then
8752 cat >> confdefs.h <<\EOF
8753#define off_t long
8754EOF
8755
8756fi
8757
8758echo $ac_n "checking for pid_t""... $ac_c" 1>&6
ec14dd32 8759echo "configure:8760: checking for pid_t" >&5
10f2d63a
VZ
8760if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8761 echo $ac_n "(cached) $ac_c" 1>&6
8762else
8763 cat > conftest.$ac_ext <<EOF
ec14dd32 8764#line 8765 "configure"
10f2d63a
VZ
8765#include "confdefs.h"
8766#include <sys/types.h>
8767#if STDC_HEADERS
8768#include <stdlib.h>
8769#include <stddef.h>
8770#endif
8771EOF
8772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8773 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8774 rm -rf conftest*
8775 ac_cv_type_pid_t=yes
8776else
8777 rm -rf conftest*
8778 ac_cv_type_pid_t=no
8779fi
8780rm -f conftest*
8781
8782fi
8783echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8784if test $ac_cv_type_pid_t = no; then
8785 cat >> confdefs.h <<\EOF
8786#define pid_t int
8787EOF
8788
8789fi
8790
8791echo $ac_n "checking for size_t""... $ac_c" 1>&6
ec14dd32 8792echo "configure:8793: checking for size_t" >&5
10f2d63a
VZ
8793if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8794 echo $ac_n "(cached) $ac_c" 1>&6
8795else
8796 cat > conftest.$ac_ext <<EOF
ec14dd32 8797#line 8798 "configure"
10f2d63a
VZ
8798#include "confdefs.h"
8799#include <sys/types.h>
8800#if STDC_HEADERS
8801#include <stdlib.h>
8802#include <stddef.h>
8803#endif
8804EOF
8805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8806 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8807 rm -rf conftest*
8808 ac_cv_type_size_t=yes
8809else
8810 rm -rf conftest*
8811 ac_cv_type_size_t=no
8812fi
8813rm -f conftest*
8814
8815fi
8816echo "$ac_t""$ac_cv_type_size_t" 1>&6
8817if test $ac_cv_type_size_t = no; then
8818 cat >> confdefs.h <<\EOF
8819#define size_t unsigned
8820EOF
8821
8822fi
8823
8824echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
ec14dd32 8825echo "configure:8826: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
8826if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8827 echo $ac_n "(cached) $ac_c" 1>&6
8828else
8829 cat > conftest.$ac_ext <<EOF
ec14dd32 8830#line 8831 "configure"
10f2d63a
VZ
8831#include "confdefs.h"
8832#include <sys/types.h>
8833EOF
8834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8835 egrep "uid_t" >/dev/null 2>&1; then
8836 rm -rf conftest*
8837 ac_cv_type_uid_t=yes
8838else
8839 rm -rf conftest*
8840 ac_cv_type_uid_t=no
8841fi
8842rm -f conftest*
8843
8844fi
8845
8846echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8847if test $ac_cv_type_uid_t = no; then
8848 cat >> confdefs.h <<\EOF
8849#define uid_t int
8850EOF
8851
8852 cat >> confdefs.h <<\EOF
8853#define gid_t int
8854EOF
8855
8856fi
8857
8858
8859
b12915c1 8860echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
ec14dd32 8861echo "configure:8862: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
8862if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
8863 echo $ac_n "(cached) $ac_c" 1>&6
8864else
8865
8866 cat > conftest.$ac_ext <<EOF
ec14dd32 8867#line 8868 "configure"
b12915c1
VZ
8868#include "confdefs.h"
8869#include <pwd.h>
8870int main() {
8871
8872 char *p;
8873 struct passwd *pw;
8874 p = pw->pw_gecos;
8875
8876; return 0; }
8877EOF
ec14dd32 8878if { (eval echo configure:8879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
8879 rm -rf conftest*
8880
8881 wx_cv_struct_pw_gecos=yes
8882 cat >> confdefs.h <<\EOF
8883#define HAVE_PW_GECOS 1
8884EOF
8885
8886
8887else
8888 echo "configure: failed program was:" >&5
8889 cat conftest.$ac_ext >&5
8890 rm -rf conftest*
8891
8892 wx_cv_struct_pw_gecos=no
8893
8894
8895fi
8896rm -f conftest*
8897
8898
8899fi
8900
8901echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
8902
10f2d63a
VZ
8903
8904echo $ac_n "checking for working const""... $ac_c" 1>&6
ec14dd32 8905echo "configure:8906: checking for working const" >&5
10f2d63a
VZ
8906if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8907 echo $ac_n "(cached) $ac_c" 1>&6
8908else
8909 cat > conftest.$ac_ext <<EOF
ec14dd32 8910#line 8911 "configure"
10f2d63a
VZ
8911#include "confdefs.h"
8912
8913int main() {
8914
8915/* Ultrix mips cc rejects this. */
8916typedef int charset[2]; const charset x;
8917/* SunOS 4.1.1 cc rejects this. */
8918char const *const *ccp;
8919char **p;
8920/* NEC SVR4.0.2 mips cc rejects this. */
8921struct point {int x, y;};
8922static struct point const zero = {0,0};
8923/* AIX XL C 1.02.0.0 rejects this.
8924 It does not let you subtract one const X* pointer from another in an arm
8925 of an if-expression whose if-part is not a constant expression */
8926const char *g = "string";
8927ccp = &g + (g ? g-g : 0);
8928/* HPUX 7.0 cc rejects these. */
8929++ccp;
8930p = (char**) ccp;
8931ccp = (char const *const *) p;
8932{ /* SCO 3.2v4 cc rejects this. */
8933 char *t;
8934 char const *s = 0 ? (char *) 0 : (char const *) 0;
8935
8936 *t++ = 0;
8937}
8938{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8939 int x[] = {25, 17};
8940 const int *foo = &x[0];
8941 ++foo;
8942}
8943{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8944 typedef const int *iptr;
8945 iptr p = 0;
8946 ++p;
8947}
8948{ /* AIX XL C 1.02.0.0 rejects this saying
8949 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8950 struct s { int j; const int *ap[3]; };
8951 struct s *b; b->j = 5;
8952}
8953{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8954 const int foo = 10;
8955}
8956
8957; return 0; }
8958EOF
ec14dd32 8959if { (eval echo configure:8960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8960 rm -rf conftest*
8961 ac_cv_c_const=yes
8962else
8963 echo "configure: failed program was:" >&5
8964 cat conftest.$ac_ext >&5
8965 rm -rf conftest*
8966 ac_cv_c_const=no
8967fi
8968rm -f conftest*
8969fi
8970
8971echo "$ac_t""$ac_cv_c_const" 1>&6
8972if test $ac_cv_c_const = no; then
8973 cat >> confdefs.h <<\EOF
8974#define const
8975EOF
8976
8977fi
8978
8979echo $ac_n "checking for inline""... $ac_c" 1>&6
ec14dd32 8980echo "configure:8981: checking for inline" >&5
10f2d63a
VZ
8981if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8982 echo $ac_n "(cached) $ac_c" 1>&6
8983else
8984 ac_cv_c_inline=no
8985for ac_kw in inline __inline__ __inline; do
8986 cat > conftest.$ac_ext <<EOF
ec14dd32 8987#line 8988 "configure"
10f2d63a
VZ
8988#include "confdefs.h"
8989
8990int main() {
8991} $ac_kw foo() {
8992; return 0; }
8993EOF
ec14dd32 8994if { (eval echo configure:8995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8995 rm -rf conftest*
8996 ac_cv_c_inline=$ac_kw; break
8997else
8998 echo "configure: failed program was:" >&5
8999 cat conftest.$ac_ext >&5
9000fi
9001rm -f conftest*
9002done
9003
9004fi
9005
9006echo "$ac_t""$ac_cv_c_inline" 1>&6
9007case "$ac_cv_c_inline" in
9008 inline | yes) ;;
9009 no) cat >> confdefs.h <<\EOF
9010#define inline
9011EOF
9012 ;;
9013 *) cat >> confdefs.h <<EOF
9014#define inline $ac_cv_c_inline
9015EOF
9016 ;;
9017esac
9018
9019
9020echo $ac_n "checking size of char""... $ac_c" 1>&6
ec14dd32 9021echo "configure:9022: checking size of char" >&5
10f2d63a
VZ
9022if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9023 echo $ac_n "(cached) $ac_c" 1>&6
9024else
9025 if test "$cross_compiling" = yes; then
9026 ac_cv_sizeof_char=1
9027else
9028 cat > conftest.$ac_ext <<EOF
ec14dd32 9029#line 9030 "configure"
10f2d63a
VZ
9030#include "confdefs.h"
9031#include <stdio.h>
9032main()
9033{
9034 FILE *f=fopen("conftestval", "w");
9035 if (!f) exit(1);
9036 fprintf(f, "%d\n", sizeof(char));
9037 exit(0);
9038}
9039EOF
ec14dd32 9040if { (eval echo configure:9041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9041then
9042 ac_cv_sizeof_char=`cat conftestval`
9043else
9044 echo "configure: failed program was:" >&5
9045 cat conftest.$ac_ext >&5
9046 rm -fr conftest*
9047 ac_cv_sizeof_char=0
9048fi
9049rm -fr conftest*
9050fi
9051
9052fi
9053echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9054cat >> confdefs.h <<EOF
9055#define SIZEOF_CHAR $ac_cv_sizeof_char
9056EOF
9057
9058
9059echo $ac_n "checking size of short""... $ac_c" 1>&6
ec14dd32 9060echo "configure:9061: checking size of short" >&5
10f2d63a
VZ
9061if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9062 echo $ac_n "(cached) $ac_c" 1>&6
9063else
9064 if test "$cross_compiling" = yes; then
9065 ac_cv_sizeof_short=2
9066else
9067 cat > conftest.$ac_ext <<EOF
ec14dd32 9068#line 9069 "configure"
10f2d63a
VZ
9069#include "confdefs.h"
9070#include <stdio.h>
9071main()
9072{
9073 FILE *f=fopen("conftestval", "w");
9074 if (!f) exit(1);
9075 fprintf(f, "%d\n", sizeof(short));
9076 exit(0);
9077}
9078EOF
ec14dd32 9079if { (eval echo configure:9080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9080then
9081 ac_cv_sizeof_short=`cat conftestval`
9082else
9083 echo "configure: failed program was:" >&5
9084 cat conftest.$ac_ext >&5
9085 rm -fr conftest*
9086 ac_cv_sizeof_short=0
9087fi
9088rm -fr conftest*
9089fi
9090
9091fi
9092echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9093cat >> confdefs.h <<EOF
9094#define SIZEOF_SHORT $ac_cv_sizeof_short
9095EOF
9096
9097
9098echo $ac_n "checking size of int *""... $ac_c" 1>&6
ec14dd32 9099echo "configure:9100: checking size of int *" >&5
10f2d63a
VZ
9100if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9101 echo $ac_n "(cached) $ac_c" 1>&6
9102else
9103 if test "$cross_compiling" = yes; then
9104 ac_cv_sizeof_int_p=4
9105else
9106 cat > conftest.$ac_ext <<EOF
ec14dd32 9107#line 9108 "configure"
10f2d63a
VZ
9108#include "confdefs.h"
9109#include <stdio.h>
9110main()
9111{
9112 FILE *f=fopen("conftestval", "w");
9113 if (!f) exit(1);
9114 fprintf(f, "%d\n", sizeof(int *));
9115 exit(0);
9116}
9117EOF
ec14dd32 9118if { (eval echo configure:9119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9119then
9120 ac_cv_sizeof_int_p=`cat conftestval`
9121else
9122 echo "configure: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9124 rm -fr conftest*
9125 ac_cv_sizeof_int_p=0
9126fi
9127rm -fr conftest*
9128fi
9129
9130fi
9131echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9132cat >> confdefs.h <<EOF
9133#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9134EOF
9135
9136
9137echo $ac_n "checking size of int""... $ac_c" 1>&6
ec14dd32 9138echo "configure:9139: checking size of int" >&5
10f2d63a
VZ
9139if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9140 echo $ac_n "(cached) $ac_c" 1>&6
9141else
9142 if test "$cross_compiling" = yes; then
9143 ac_cv_sizeof_int=4
9144else
9145 cat > conftest.$ac_ext <<EOF
ec14dd32 9146#line 9147 "configure"
10f2d63a
VZ
9147#include "confdefs.h"
9148#include <stdio.h>
9149main()
9150{
9151 FILE *f=fopen("conftestval", "w");
9152 if (!f) exit(1);
9153 fprintf(f, "%d\n", sizeof(int));
9154 exit(0);
9155}
9156EOF
ec14dd32 9157if { (eval echo configure:9158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9158then
9159 ac_cv_sizeof_int=`cat conftestval`
9160else
9161 echo "configure: failed program was:" >&5
9162 cat conftest.$ac_ext >&5
9163 rm -fr conftest*
9164 ac_cv_sizeof_int=0
9165fi
9166rm -fr conftest*
9167fi
9168
9169fi
9170echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9171cat >> confdefs.h <<EOF
9172#define SIZEOF_INT $ac_cv_sizeof_int
9173EOF
9174
9175
9176echo $ac_n "checking size of long""... $ac_c" 1>&6
ec14dd32 9177echo "configure:9178: checking size of long" >&5
10f2d63a
VZ
9178if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9179 echo $ac_n "(cached) $ac_c" 1>&6
9180else
9181 if test "$cross_compiling" = yes; then
9182 ac_cv_sizeof_long=4
9183else
9184 cat > conftest.$ac_ext <<EOF
ec14dd32 9185#line 9186 "configure"
10f2d63a
VZ
9186#include "confdefs.h"
9187#include <stdio.h>
9188main()
9189{
9190 FILE *f=fopen("conftestval", "w");
9191 if (!f) exit(1);
9192 fprintf(f, "%d\n", sizeof(long));
9193 exit(0);
9194}
9195EOF
ec14dd32 9196if { (eval echo configure:9197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9197then
9198 ac_cv_sizeof_long=`cat conftestval`
9199else
9200 echo "configure: failed program was:" >&5
9201 cat conftest.$ac_ext >&5
9202 rm -fr conftest*
9203 ac_cv_sizeof_long=0
9204fi
9205rm -fr conftest*
9206fi
9207
9208fi
9209echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9210cat >> confdefs.h <<EOF
9211#define SIZEOF_LONG $ac_cv_sizeof_long
9212EOF
9213
9214
9215echo $ac_n "checking size of long long""... $ac_c" 1>&6
ec14dd32 9216echo "configure:9217: checking size of long long" >&5
10f2d63a
VZ
9217if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9218 echo $ac_n "(cached) $ac_c" 1>&6
9219else
9220 if test "$cross_compiling" = yes; then
9221 ac_cv_sizeof_long_long=0
9222else
9223 cat > conftest.$ac_ext <<EOF
ec14dd32 9224#line 9225 "configure"
10f2d63a
VZ
9225#include "confdefs.h"
9226#include <stdio.h>
9227main()
9228{
9229 FILE *f=fopen("conftestval", "w");
9230 if (!f) exit(1);
9231 fprintf(f, "%d\n", sizeof(long long));
9232 exit(0);
9233}
9234EOF
ec14dd32 9235if { (eval echo configure:9236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9236then
9237 ac_cv_sizeof_long_long=`cat conftestval`
9238else
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9241 rm -fr conftest*
9242 ac_cv_sizeof_long_long=0
9243fi
9244rm -fr conftest*
9245fi
9246
9247fi
9248echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9249cat >> confdefs.h <<EOF
9250#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9251EOF
9252
9253
9254
9255echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
ec14dd32 9256echo "configure:9257: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9257if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9259else
9260 ac_cv_c_bigendian=unknown
9261# See if sys/param.h defines the BYTE_ORDER macro.
9262cat > conftest.$ac_ext <<EOF
ec14dd32 9263#line 9264 "configure"
10f2d63a
VZ
9264#include "confdefs.h"
9265#include <sys/types.h>
9266#include <sys/param.h>
9267int main() {
9268
9269#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9270 bogus endian macros
9271#endif
9272; return 0; }
9273EOF
ec14dd32 9274if { (eval echo configure:9275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9275 rm -rf conftest*
9276 # It does; now see whether it defined to BIG_ENDIAN or not.
9277cat > conftest.$ac_ext <<EOF
ec14dd32 9278#line 9279 "configure"
10f2d63a
VZ
9279#include "confdefs.h"
9280#include <sys/types.h>
9281#include <sys/param.h>
9282int main() {
9283
9284#if BYTE_ORDER != BIG_ENDIAN
9285 not big endian
9286#endif
9287; return 0; }
9288EOF
ec14dd32 9289if { (eval echo configure:9290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9290 rm -rf conftest*
9291 ac_cv_c_bigendian=yes
9292else
9293 echo "configure: failed program was:" >&5
9294 cat conftest.$ac_ext >&5
9295 rm -rf conftest*
9296 ac_cv_c_bigendian=no
9297fi
9298rm -f conftest*
9299else
9300 echo "configure: failed program was:" >&5
9301 cat conftest.$ac_ext >&5
9302fi
9303rm -f conftest*
9304if test $ac_cv_c_bigendian = unknown; then
9305if test "$cross_compiling" = yes; then
9306 ac_cv_c_bigendian=unknown
9307else
9308 cat > conftest.$ac_ext <<EOF
ec14dd32 9309#line 9310 "configure"
10f2d63a
VZ
9310#include "confdefs.h"
9311main () {
9312 /* Are we little or big endian? From Harbison&Steele. */
9313 union
9314 {
9315 long l;
9316 char c[sizeof (long)];
9317 } u;
9318 u.l = 1;
9319 exit (u.c[sizeof (long) - 1] == 1);
9320}
9321EOF
ec14dd32 9322if { (eval echo configure:9323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9323then
9324 ac_cv_c_bigendian=no
9325else
9326 echo "configure: failed program was:" >&5
9327 cat conftest.$ac_ext >&5
9328 rm -fr conftest*
9329 ac_cv_c_bigendian=yes
9330fi
9331rm -fr conftest*
9332fi
9333
9334fi
9335fi
9336
9337echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9338if test $ac_cv_c_bigendian = unknown; then
9339 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
9340fi
9341if test $ac_cv_c_bigendian = yes; then
9342 cat >> confdefs.h <<\EOF
9343#define WORDS_BIGENDIAN 1
9344EOF
9345
9346fi
9347
9348
9349
9350 if test "$cross_compiling" = "yes"; then
9351 cat >> confdefs.h <<\EOF
9352#define wxUSE_IOSTREAMH 1
9353EOF
9354
9355 else
9356
9357 ac_ext=C
9358# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9359ac_cpp='$CXXCPP $CPPFLAGS'
9360ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9361ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9362cross_compiling=$ac_cv_prog_cxx_cross
9363
9364
9365 for ac_hdr in iostream
9366do
9367ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9368echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ec14dd32 9369echo "configure:9370: checking for $ac_hdr" >&5
10f2d63a
VZ
9370if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9371 echo $ac_n "(cached) $ac_c" 1>&6
9372else
9373 cat > conftest.$ac_ext <<EOF
ec14dd32 9374#line 9375 "configure"
10f2d63a
VZ
9375#include "confdefs.h"
9376#include <$ac_hdr>
9377EOF
9378ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 9379{ (eval echo configure:9380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9380ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9381if test -z "$ac_err"; then
9382 rm -rf conftest*
9383 eval "ac_cv_header_$ac_safe=yes"
9384else
9385 echo "$ac_err" >&5
9386 echo "configure: failed program was:" >&5
9387 cat conftest.$ac_ext >&5
9388 rm -rf conftest*
9389 eval "ac_cv_header_$ac_safe=no"
9390fi
9391rm -f conftest*
9392fi
9393if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9394 echo "$ac_t""yes" 1>&6
9395 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9396 cat >> confdefs.h <<EOF
9397#define $ac_tr_hdr 1
9398EOF
9399
9400else
9401 echo "$ac_t""no" 1>&6
9402fi
9403done
9404
9405
9406 if test "x$HAVE_IOSTREAM" = x ; then
9407 cat >> confdefs.h <<\EOF
9408#define wxUSE_IOSTREAMH 1
9409EOF
9410
9411 else
9412 :
9413 fi
9414
9415 ac_ext=c
9416# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9417ac_cpp='$CPP $CPPFLAGS'
9418ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9419ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9420cross_compiling=$ac_cv_prog_cc_cross
9421
9422 fi
9423
9424
9425
9426 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
ec14dd32 9427echo "configure:9428: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9428if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9429 echo $ac_n "(cached) $ac_c" 1>&6
9430else
9431
9432
9433 ac_ext=C
9434# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9435ac_cpp='$CXXCPP $CPPFLAGS'
9436ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9437ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9438cross_compiling=$ac_cv_prog_cxx_cross
9439
9440
9441 cat > conftest.$ac_ext <<EOF
ec14dd32 9442#line 9443 "configure"
10f2d63a
VZ
9443#include "confdefs.h"
9444
9445
9446int main() {
9447
9448 bool b = true;
9449
9450 return 0;
9451
9452; return 0; }
9453EOF
ec14dd32 9454if { (eval echo configure:9455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9455 rm -rf conftest*
9456
9457 cat >> confdefs.h <<\EOF
9458#define HAVE_BOOL 1
9459EOF
9460
9461 wx_cv_cpp_bool=yes
9462
9463else
9464 echo "configure: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9466 rm -rf conftest*
9467
9468 wx_cv_cpp_bool=no
9469
9470
9471fi
9472rm -f conftest*
9473
9474 ac_ext=c
9475# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9476ac_cpp='$CPP $CPPFLAGS'
9477ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9478ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9479cross_compiling=$ac_cv_prog_cc_cross
9480
9481
9482fi
9483
9484echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9485
9486 if test "$wx_cv_cpp_bool" = "yes"; then
9487 cat >> confdefs.h <<\EOF
9488#define HAVE_BOOL 1
9489EOF
9490
9491 fi
9492
9493
9494
10f2d63a 9495echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
ec14dd32 9496echo "configure:9497: checking if you need GNU extensions" >&5
10f2d63a
VZ
9497if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9498 echo $ac_n "(cached) $ac_c" 1>&6
9499else
9500
9501 cat > conftest.$ac_ext <<EOF
ec14dd32 9502#line 9503 "configure"
10f2d63a
VZ
9503#include "confdefs.h"
9504#include <features.h>
9505int main() {
9506
9507
9508#ifndef __GNU_LIBRARY__
9509 Compile error wanted
9510#endif
9511
9512
9513; return 0; }
9514EOF
ec14dd32 9515if { (eval echo configure:9516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9516 rm -rf conftest*
9517 wx_cv_gnu_extensions=yes
9518else
9519 echo "configure: failed program was:" >&5
9520 cat conftest.$ac_ext >&5
9521 rm -rf conftest*
9522 wx_cv_gnu_extensions=no
9523fi
9524rm -f conftest*
9525
9526fi
9527
9528
9529echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9530if test "$wx_cv_gnu_extensions" = "yes"; then
9531 cat >> confdefs.h <<EOF
9532#define _GNU_SOURCE 1
9533EOF
9534
9535fi
9536
9537
9538
9539echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
ec14dd32 9540echo "configure:9541: checking for wcslen in -lc" >&5
10f2d63a
VZ
9541ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9542if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9543 echo $ac_n "(cached) $ac_c" 1>&6
9544else
9545 ac_save_LIBS="$LIBS"
9546LIBS="-lc $LIBS"
9547cat > conftest.$ac_ext <<EOF
ec14dd32 9548#line 9549 "configure"
10f2d63a
VZ
9549#include "confdefs.h"
9550/* Override any gcc2 internal prototype to avoid an error. */
9551/* We use char because int might match the return type of a gcc2
9552 builtin and then its argument prototype would still apply. */
9553char wcslen();
9554
9555int main() {
9556wcslen()
9557; return 0; }
9558EOF
ec14dd32 9559if { (eval echo configure:9560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9560 rm -rf conftest*
9561 eval "ac_cv_lib_$ac_lib_var=yes"
9562else
9563 echo "configure: failed program was:" >&5
9564 cat conftest.$ac_ext >&5
9565 rm -rf conftest*
9566 eval "ac_cv_lib_$ac_lib_var=no"
9567fi
9568rm -f conftest*
9569LIBS="$ac_save_LIBS"
9570
9571fi
9572if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9573 echo "$ac_t""yes" 1>&6
9574
9575 cat >> confdefs.h <<\EOF
9576#define HAVE_WCSLEN 1
9577EOF
9578
9579 WCHAR_LINK=""
9580
9581else
9582 echo "$ac_t""no" 1>&6
9583
9584 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
ec14dd32 9585echo "configure:9586: checking for wcslen in -lw" >&5
10f2d63a
VZ
9586ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9587if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9588 echo $ac_n "(cached) $ac_c" 1>&6
9589else
9590 ac_save_LIBS="$LIBS"
9591LIBS="-lw $LIBS"
9592cat > conftest.$ac_ext <<EOF
ec14dd32 9593#line 9594 "configure"
10f2d63a
VZ
9594#include "confdefs.h"
9595/* Override any gcc2 internal prototype to avoid an error. */
9596/* We use char because int might match the return type of a gcc2
9597 builtin and then its argument prototype would still apply. */
9598char wcslen();
9599
9600int main() {
9601wcslen()
9602; return 0; }
9603EOF
ec14dd32 9604if { (eval echo configure:9605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9605 rm -rf conftest*
9606 eval "ac_cv_lib_$ac_lib_var=yes"
9607else
9608 echo "configure: failed program was:" >&5
9609 cat conftest.$ac_ext >&5
9610 rm -rf conftest*
9611 eval "ac_cv_lib_$ac_lib_var=no"
9612fi
9613rm -f conftest*
9614LIBS="$ac_save_LIBS"
9615
9616fi
9617if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9618 echo "$ac_t""yes" 1>&6
9619
9620 cat >> confdefs.h <<\EOF
9621#define HAVE_WCSLEN 1
9622EOF
9623
9624 WCHAR_LINK="-lw"
9625
9626else
9627 echo "$ac_t""no" 1>&6
9628fi
9629
9630
9631fi
9632
9633
9634echo $ac_n "checking for vprintf""... $ac_c" 1>&6
ec14dd32 9635echo "configure:9636: checking for vprintf" >&5
10f2d63a
VZ
9636if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9637 echo $ac_n "(cached) $ac_c" 1>&6
9638else
9639 cat > conftest.$ac_ext <<EOF
ec14dd32 9640#line 9641 "configure"
10f2d63a
VZ
9641#include "confdefs.h"
9642/* System header to define __stub macros and hopefully few prototypes,
9643 which can conflict with char vprintf(); below. */
9644#include <assert.h>
9645/* Override any gcc2 internal prototype to avoid an error. */
9646/* We use char because int might match the return type of a gcc2
9647 builtin and then its argument prototype would still apply. */
9648char vprintf();
9649
9650int main() {
9651
9652/* The GNU C library defines this for functions which it implements
9653 to always fail with ENOSYS. Some functions are actually named
9654 something starting with __ and the normal name is an alias. */
9655#if defined (__stub_vprintf) || defined (__stub___vprintf)
9656choke me
9657#else
caa2c79b 9658vprintf();
10f2d63a
VZ
9659#endif
9660
9661; return 0; }
9662EOF
ec14dd32 9663if { (eval echo configure:9664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9664 rm -rf conftest*
9665 eval "ac_cv_func_vprintf=yes"
9666else
9667 echo "configure: failed program was:" >&5
9668 cat conftest.$ac_ext >&5
9669 rm -rf conftest*
9670 eval "ac_cv_func_vprintf=no"
9671fi
9672rm -f conftest*
9673fi
9674
9675if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9676 echo "$ac_t""yes" 1>&6
9677 cat >> confdefs.h <<\EOF
9678#define HAVE_VPRINTF 1
9679EOF
9680
9681else
9682 echo "$ac_t""no" 1>&6
9683fi
9684
9685if test "$ac_cv_func_vprintf" != yes; then
9686echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
ec14dd32 9687echo "configure:9688: checking for _doprnt" >&5
10f2d63a
VZ
9688if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9689 echo $ac_n "(cached) $ac_c" 1>&6
9690else
9691 cat > conftest.$ac_ext <<EOF
ec14dd32 9692#line 9693 "configure"
10f2d63a
VZ
9693#include "confdefs.h"
9694/* System header to define __stub macros and hopefully few prototypes,
9695 which can conflict with char _doprnt(); below. */
9696#include <assert.h>
9697/* Override any gcc2 internal prototype to avoid an error. */
9698/* We use char because int might match the return type of a gcc2
9699 builtin and then its argument prototype would still apply. */
9700char _doprnt();
9701
9702int main() {
9703
9704/* The GNU C library defines this for functions which it implements
9705 to always fail with ENOSYS. Some functions are actually named
9706 something starting with __ and the normal name is an alias. */
9707#if defined (__stub__doprnt) || defined (__stub____doprnt)
9708choke me
9709#else
caa2c79b 9710_doprnt();
10f2d63a
VZ
9711#endif
9712
9713; return 0; }
9714EOF
ec14dd32 9715if { (eval echo configure:9716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9716 rm -rf conftest*
9717 eval "ac_cv_func__doprnt=yes"
9718else
9719 echo "configure: failed program was:" >&5
9720 cat conftest.$ac_ext >&5
9721 rm -rf conftest*
9722 eval "ac_cv_func__doprnt=no"
9723fi
9724rm -f conftest*
9725fi
9726
9727if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9728 echo "$ac_t""yes" 1>&6
9729 cat >> confdefs.h <<\EOF
9730#define HAVE_DOPRNT 1
9731EOF
9732
9733else
9734 echo "$ac_t""no" 1>&6
9735fi
9736
9737fi
9738
9739
9740for ac_func in vsnprintf
9741do
9742echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ec14dd32 9743echo "configure:9744: checking for $ac_func" >&5
10f2d63a
VZ
9744if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9745 echo $ac_n "(cached) $ac_c" 1>&6
9746else
9747 cat > conftest.$ac_ext <<EOF
ec14dd32 9748#line 9749 "configure"
10f2d63a
VZ
9749#include "confdefs.h"
9750/* System header to define __stub macros and hopefully few prototypes,
9751 which can conflict with char $ac_func(); below. */
9752#include <assert.h>
9753/* Override any gcc2 internal prototype to avoid an error. */
9754/* We use char because int might match the return type of a gcc2
9755 builtin and then its argument prototype would still apply. */
9756char $ac_func();
9757
9758int main() {
9759
9760/* The GNU C library defines this for functions which it implements
9761 to always fail with ENOSYS. Some functions are actually named
9762 something starting with __ and the normal name is an alias. */
9763#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9764choke me
9765#else
caa2c79b 9766$ac_func();
10f2d63a
VZ
9767#endif
9768
9769; return 0; }
9770EOF
ec14dd32 9771if { (eval echo configure:9772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9772 rm -rf conftest*
9773 eval "ac_cv_func_$ac_func=yes"
9774else
9775 echo "configure: failed program was:" >&5
9776 cat conftest.$ac_ext >&5
9777 rm -rf conftest*
9778 eval "ac_cv_func_$ac_func=no"
9779fi
9780rm -f conftest*
9781fi
9782
9783if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9784 echo "$ac_t""yes" 1>&6
9785 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9786 cat >> confdefs.h <<EOF
9787#define $ac_tr_func 1
9788EOF
9789 cat >> confdefs.h <<\EOF
9790#define HAVE_VSNPRINTF 1
9791EOF
9792
9793else
9794 echo "$ac_t""no" 1>&6
9795echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9796
9797fi
9798done
9799
9800
9801
9802ac_ext=C
9803# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9804ac_cpp='$CXXCPP $CPPFLAGS'
9805ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9806ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9807cross_compiling=$ac_cv_prog_cxx_cross
9808
9809
9810echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
ec14dd32 9811echo "configure:9812: checking for vsscanf" >&5
10f2d63a
VZ
9812if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9813 echo $ac_n "(cached) $ac_c" 1>&6
9814else
9815
9816 if test "$cross_compiling" = yes; then
9817 wx_cv_func_vsscanf=no
9818
9819else
9820 cat > conftest.$ac_ext <<EOF
ec14dd32 9821#line 9822 "configure"
10f2d63a
VZ
9822#include "confdefs.h"
9823#ifdef __cplusplus
9824extern "C" void exit(int);
9825#endif
9826
9827 #include <stdio.h>
9828 #include <stdarg.h>
9829
9830 int try_vsscanf(const char *format, ...)
9831 {
9832 va_list ap;
9833 va_start(ap, format);
9834
9835 vsscanf("17", format, ap);
9836
9837 va_end(ap);
9838 }
9839
9840 int main()
9841 {
9842 int i;
9843 try_vsscanf("%d", &i);
9844 return i == 17 ? 0 : 1;
9845 }
9846
9847EOF
ec14dd32 9848if { (eval echo configure:9849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9849then
9850
9851 cat >> confdefs.h <<\EOF
9852#define HAVE_VSSCANF 1
9853EOF
9854
9855 wx_cv_func_vsscanf=yes
9856
9857else
9858 echo "configure: failed program was:" >&5
9859 cat conftest.$ac_ext >&5
9860 rm -fr conftest*
9861 wx_cv_func_vsscanf=no
9862fi
9863rm -fr conftest*
9864fi
9865
9866
9867fi
9868
9869echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9870
9871ac_ext=c
9872# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9873ac_cpp='$CPP $CPPFLAGS'
9874ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9875ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9876cross_compiling=$ac_cv_prog_cc_cross
9877
9878
9879if test "$USE_UNIX" = 1; then
9880
9881for ac_func in vfork
9882do
9883echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ec14dd32 9884echo "configure:9885: checking for $ac_func" >&5
10f2d63a
VZ
9885if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9886 echo $ac_n "(cached) $ac_c" 1>&6
9887else
9888 cat > conftest.$ac_ext <<EOF
ec14dd32 9889#line 9890 "configure"
10f2d63a
VZ
9890#include "confdefs.h"
9891/* System header to define __stub macros and hopefully few prototypes,
9892 which can conflict with char $ac_func(); below. */
9893#include <assert.h>
9894/* Override any gcc2 internal prototype to avoid an error. */
9895/* We use char because int might match the return type of a gcc2
9896 builtin and then its argument prototype would still apply. */
9897char $ac_func();
9898
9899int main() {
9900
9901/* The GNU C library defines this for functions which it implements
9902 to always fail with ENOSYS. Some functions are actually named
9903 something starting with __ and the normal name is an alias. */
9904#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9905choke me
9906#else
caa2c79b 9907$ac_func();
10f2d63a
VZ
9908#endif
9909
9910; return 0; }
9911EOF
ec14dd32 9912if { (eval echo configure:9913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
9913 rm -rf conftest*
9914 eval "ac_cv_func_$ac_func=yes"
9915else
9916 echo "configure: failed program was:" >&5
9917 cat conftest.$ac_ext >&5
9918 rm -rf conftest*
9919 eval "ac_cv_func_$ac_func=no"
9920fi
9921rm -f conftest*
9922fi
9923
9924if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9925 echo "$ac_t""yes" 1>&6
9926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9927 cat >> confdefs.h <<EOF
9928#define $ac_tr_func 1
9929EOF
9930
9931else
9932 echo "$ac_t""no" 1>&6
9933fi
9934done
9935
9936
9937for ac_func in timegm
9938do
9939echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ec14dd32 9940echo "configure:9941: checking for $ac_func" >&5
270a909e
VZ
9941if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9942 echo $ac_n "(cached) $ac_c" 1>&6
9943else
9944 cat > conftest.$ac_ext <<EOF
ec14dd32 9945#line 9946 "configure"
270a909e
VZ
9946#include "confdefs.h"
9947/* System header to define __stub macros and hopefully few prototypes,
9948 which can conflict with char $ac_func(); below. */
9949#include <assert.h>
9950/* Override any gcc2 internal prototype to avoid an error. */
9951/* We use char because int might match the return type of a gcc2
9952 builtin and then its argument prototype would still apply. */
9953char $ac_func();
9954
9955int main() {
9956
9957/* The GNU C library defines this for functions which it implements
9958 to always fail with ENOSYS. Some functions are actually named
9959 something starting with __ and the normal name is an alias. */
9960#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9961choke me
9962#else
caa2c79b 9963$ac_func();
270a909e
VZ
9964#endif
9965
9966; return 0; }
9967EOF
ec14dd32 9968if { (eval echo configure:9969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9969 rm -rf conftest*
9970 eval "ac_cv_func_$ac_func=yes"
9971else
9972 echo "configure: failed program was:" >&5
9973 cat conftest.$ac_ext >&5
9974 rm -rf conftest*
9975 eval "ac_cv_func_$ac_func=no"
9976fi
9977rm -f conftest*
9978fi
9979
9980if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9981 echo "$ac_t""yes" 1>&6
9982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9983 cat >> confdefs.h <<EOF
9984#define $ac_tr_func 1
9985EOF
9986
9987else
9988 echo "$ac_t""no" 1>&6
9989fi
9990done
9991
9992
b12915c1
VZ
9993HAVE_SOME_SLEEP_FUNC=0
9994if test "$USE_BEOS" = 1; then
9995 cat >> confdefs.h <<\EOF
9996#define HAVE_SLEEP 1
9997EOF
9998
9999 HAVE_SOME_SLEEP_FUNC=1
10000fi
10001
10002if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10003 POSIX4_LINK=
10004 for ac_func in nanosleep
10f2d63a
VZ
10005do
10006echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ec14dd32 10007echo "configure:10008: checking for $ac_func" >&5
10f2d63a
VZ
10008if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10009 echo $ac_n "(cached) $ac_c" 1>&6
10010else
10011 cat > conftest.$ac_ext <<EOF
ec14dd32 10012#line 10013 "configure"
10f2d63a
VZ
10013#include "confdefs.h"
10014/* System header to define __stub macros and hopefully few prototypes,
10015 which can conflict with char $ac_func(); below. */
10016#include <assert.h>
10017/* Override any gcc2 internal prototype to avoid an error. */
10018/* We use char because int might match the return type of a gcc2
10019 builtin and then its argument prototype would still apply. */
10020char $ac_func();
10021
10022int main() {
10023
10024/* The GNU C library defines this for functions which it implements
10025 to always fail with ENOSYS. Some functions are actually named
10026 something starting with __ and the normal name is an alias. */
10027#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10028choke me
10029#else
caa2c79b 10030$ac_func();
10f2d63a
VZ
10031#endif
10032
10033; return 0; }
10034EOF
ec14dd32 10035if { (eval echo configure:10036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10036 rm -rf conftest*
10037 eval "ac_cv_func_$ac_func=yes"
10038else
10039 echo "configure: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10041 rm -rf conftest*
10042 eval "ac_cv_func_$ac_func=no"
10043fi
10044rm -f conftest*
10045fi
10046
10047if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10048 echo "$ac_t""yes" 1>&6
10049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10050 cat >> confdefs.h <<EOF
10051#define $ac_tr_func 1
10052EOF
10053 cat >> confdefs.h <<\EOF
10054#define HAVE_NANOSLEEP 1
10055EOF
10056
10057else
10058 echo "$ac_t""no" 1>&6
10059echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
ec14dd32 10060echo "configure:10061: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
10061ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10062if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10063 echo $ac_n "(cached) $ac_c" 1>&6
10064else
10065 ac_save_LIBS="$LIBS"
10066LIBS="-lposix4 $LIBS"
10067cat > conftest.$ac_ext <<EOF
ec14dd32 10068#line 10069 "configure"
10f2d63a
VZ
10069#include "confdefs.h"
10070/* Override any gcc2 internal prototype to avoid an error. */
10071/* We use char because int might match the return type of a gcc2
10072 builtin and then its argument prototype would still apply. */
10073char nanosleep();
10074
10075int main() {
10076nanosleep()
10077; return 0; }
10078EOF
ec14dd32 10079if { (eval echo configure:10080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10080 rm -rf conftest*
10081 eval "ac_cv_lib_$ac_lib_var=yes"
10082else
10083 echo "configure: failed program was:" >&5
10084 cat conftest.$ac_ext >&5
10085 rm -rf conftest*
10086 eval "ac_cv_lib_$ac_lib_var=no"
10087fi
10088rm -f conftest*
10089LIBS="$ac_save_LIBS"
10090
10091fi
10092if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10093 echo "$ac_t""yes" 1>&6
10094
b12915c1 10095 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10096#define HAVE_NANOSLEEP 1
10097EOF
10098
b12915c1
VZ
10099 POSIX4_LINK="-lposix4"
10100
10f2d63a
VZ
10101else
10102 echo "$ac_t""no" 1>&6
10103
b12915c1 10104 for ac_func in usleep
10f2d63a
VZ
10105do
10106echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ec14dd32 10107echo "configure:10108: checking for $ac_func" >&5
10f2d63a
VZ
10108if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10109 echo $ac_n "(cached) $ac_c" 1>&6
10110else
10111 cat > conftest.$ac_ext <<EOF
ec14dd32 10112#line 10113 "configure"
10f2d63a
VZ
10113#include "confdefs.h"
10114/* System header to define __stub macros and hopefully few prototypes,
10115 which can conflict with char $ac_func(); below. */
10116#include <assert.h>
10117/* Override any gcc2 internal prototype to avoid an error. */
10118/* We use char because int might match the return type of a gcc2
10119 builtin and then its argument prototype would still apply. */
10120char $ac_func();
10121
10122int main() {
10123
10124/* The GNU C library defines this for functions which it implements
10125 to always fail with ENOSYS. Some functions are actually named
10126 something starting with __ and the normal name is an alias. */
10127#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10128choke me
10129#else
caa2c79b 10130$ac_func();
10f2d63a
VZ
10131#endif
10132
10133; return 0; }
10134EOF
ec14dd32 10135if { (eval echo configure:10136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10136 rm -rf conftest*
10137 eval "ac_cv_func_$ac_func=yes"
10138else
10139 echo "configure: failed program was:" >&5
10140 cat conftest.$ac_ext >&5
10141 rm -rf conftest*
10142 eval "ac_cv_func_$ac_func=no"
10143fi
10144rm -f conftest*
10145fi
10146
10147if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10148 echo "$ac_t""yes" 1>&6
10149 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10150 cat >> confdefs.h <<EOF
10151#define $ac_tr_func 1
10152EOF
b12915c1 10153
10f2d63a
VZ
10154else
10155 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10156fi
10157done
10158
b12915c1
VZ
10159 echo "configure: warning: wxSleep() function will not work" 1>&2
10160
10161
10f2d63a
VZ
10162fi
10163
b12915c1
VZ
10164
10165
10f2d63a
VZ
10166fi
10167done
10168
b12915c1 10169fi
10f2d63a
VZ
10170
10171for ac_func in uname gethostname
10172do
10173echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ec14dd32 10174echo "configure:10175: checking for $ac_func" >&5
10f2d63a
VZ
10175if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10176 echo $ac_n "(cached) $ac_c" 1>&6
10177else
10178 cat > conftest.$ac_ext <<EOF
ec14dd32 10179#line 10180 "configure"
10f2d63a
VZ
10180#include "confdefs.h"
10181/* System header to define __stub macros and hopefully few prototypes,
10182 which can conflict with char $ac_func(); below. */
10183#include <assert.h>
10184/* Override any gcc2 internal prototype to avoid an error. */
10185/* We use char because int might match the return type of a gcc2
10186 builtin and then its argument prototype would still apply. */
10187char $ac_func();
10188
10189int main() {
10190
10191/* The GNU C library defines this for functions which it implements
10192 to always fail with ENOSYS. Some functions are actually named
10193 something starting with __ and the normal name is an alias. */
10194#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10195choke me
10196#else
caa2c79b 10197$ac_func();
10f2d63a
VZ
10198#endif
10199
10200; return 0; }
10201EOF
ec14dd32 10202if { (eval echo configure:10203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10203 rm -rf conftest*
10204 eval "ac_cv_func_$ac_func=yes"
10205else
10206 echo "configure: failed program was:" >&5
10207 cat conftest.$ac_ext >&5
10208 rm -rf conftest*
10209 eval "ac_cv_func_$ac_func=no"
10210fi
10211rm -f conftest*
10212fi
10213
10214if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10215 echo "$ac_t""yes" 1>&6
10216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10217 cat >> confdefs.h <<EOF
10218#define $ac_tr_func 1
10219EOF
10220 break
10221else
10222 echo "$ac_t""no" 1>&6
10223fi
10224done
10225
10226
10227for ac_func in strtok_r
10228do
10229echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ec14dd32 10230echo "configure:10231: checking for $ac_func" >&5
10f2d63a
VZ
10231if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10232 echo $ac_n "(cached) $ac_c" 1>&6
10233else
10234 cat > conftest.$ac_ext <<EOF
ec14dd32 10235#line 10236 "configure"
10f2d63a
VZ
10236#include "confdefs.h"
10237/* System header to define __stub macros and hopefully few prototypes,
10238 which can conflict with char $ac_func(); below. */
10239#include <assert.h>
10240/* Override any gcc2 internal prototype to avoid an error. */
10241/* We use char because int might match the return type of a gcc2
10242 builtin and then its argument prototype would still apply. */
10243char $ac_func();
10244
10245int main() {
10246
10247/* The GNU C library defines this for functions which it implements
10248 to always fail with ENOSYS. Some functions are actually named
10249 something starting with __ and the normal name is an alias. */
10250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10251choke me
10252#else
caa2c79b 10253$ac_func();
10f2d63a
VZ
10254#endif
10255
10256; return 0; }
10257EOF
ec14dd32 10258if { (eval echo configure:10259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10259 rm -rf conftest*
10260 eval "ac_cv_func_$ac_func=yes"
10261else
10262 echo "configure: failed program was:" >&5
10263 cat conftest.$ac_ext >&5
10264 rm -rf conftest*
10265 eval "ac_cv_func_$ac_func=no"
10266fi
10267rm -f conftest*
10268fi
10269
10270if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10271 echo "$ac_t""yes" 1>&6
10272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10273 cat >> confdefs.h <<EOF
10274#define $ac_tr_func 1
10275EOF
10276
10277else
10278 echo "$ac_t""no" 1>&6
10279fi
10280done
10281
10282
c63c7106 10283INET_LINK=
10f2d63a
VZ
10284for ac_func in inet_addr
10285do
10286echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ec14dd32 10287echo "configure:10288: checking for $ac_func" >&5
10f2d63a
VZ
10288if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10290else
10291 cat > conftest.$ac_ext <<EOF
ec14dd32 10292#line 10293 "configure"
10f2d63a
VZ
10293#include "confdefs.h"
10294/* System header to define __stub macros and hopefully few prototypes,
10295 which can conflict with char $ac_func(); below. */
10296#include <assert.h>
10297/* Override any gcc2 internal prototype to avoid an error. */
10298/* We use char because int might match the return type of a gcc2
10299 builtin and then its argument prototype would still apply. */
10300char $ac_func();
10301
10302int main() {
10303
10304/* The GNU C library defines this for functions which it implements
10305 to always fail with ENOSYS. Some functions are actually named
10306 something starting with __ and the normal name is an alias. */
10307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10308choke me
10309#else
caa2c79b 10310$ac_func();
10f2d63a
VZ
10311#endif
10312
10313; return 0; }
10314EOF
ec14dd32 10315if { (eval echo configure:10316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10316 rm -rf conftest*
10317 eval "ac_cv_func_$ac_func=yes"
10318else
10319 echo "configure: failed program was:" >&5
10320 cat conftest.$ac_ext >&5
10321 rm -rf conftest*
10322 eval "ac_cv_func_$ac_func=no"
10323fi
10324rm -f conftest*
10325fi
10326
10327if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10328 echo "$ac_t""yes" 1>&6
10329 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10330 cat >> confdefs.h <<EOF
10331#define $ac_tr_func 1
10332EOF
c63c7106
VZ
10333 cat >> confdefs.h <<\EOF
10334#define HAVE_INET_ADDR 1
10335EOF
10336
10f2d63a
VZ
10337else
10338 echo "$ac_t""no" 1>&6
c63c7106 10339echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
ec14dd32 10340echo "configure:10341: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10341ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10342if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10343 echo $ac_n "(cached) $ac_c" 1>&6
10344else
10345 ac_save_LIBS="$LIBS"
10346LIBS="-lnsl $LIBS"
10347cat > conftest.$ac_ext <<EOF
ec14dd32 10348#line 10349 "configure"
c63c7106
VZ
10349#include "confdefs.h"
10350/* Override any gcc2 internal prototype to avoid an error. */
10351/* We use char because int might match the return type of a gcc2
10352 builtin and then its argument prototype would still apply. */
10353char inet_addr();
10354
10355int main() {
10356inet_addr()
10357; return 0; }
10358EOF
ec14dd32 10359if { (eval echo configure:10360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10360 rm -rf conftest*
10361 eval "ac_cv_lib_$ac_lib_var=yes"
10362else
10363 echo "configure: failed program was:" >&5
10364 cat conftest.$ac_ext >&5
10365 rm -rf conftest*
10366 eval "ac_cv_lib_$ac_lib_var=no"
10367fi
10368rm -f conftest*
10369LIBS="$ac_save_LIBS"
10370
10371fi
10372if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10373 echo "$ac_t""yes" 1>&6
10374 INET_LINK="nsl"
10375else
10376 echo "$ac_t""no" 1>&6
10377echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
ec14dd32 10378echo "configure:10379: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10379ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10380if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10382else
10383 ac_save_LIBS="$LIBS"
10384LIBS="-lresolv $LIBS"
10385cat > conftest.$ac_ext <<EOF
ec14dd32 10386#line 10387 "configure"
c63c7106
VZ
10387#include "confdefs.h"
10388/* Override any gcc2 internal prototype to avoid an error. */
10389/* We use char because int might match the return type of a gcc2
10390 builtin and then its argument prototype would still apply. */
10391char inet_addr();
10392
10393int main() {
10394inet_addr()
10395; return 0; }
10396EOF
ec14dd32 10397if { (eval echo configure:10398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10398 rm -rf conftest*
10399 eval "ac_cv_lib_$ac_lib_var=yes"
10400else
10401 echo "configure: failed program was:" >&5
10402 cat conftest.$ac_ext >&5
10403 rm -rf conftest*
10404 eval "ac_cv_lib_$ac_lib_var=no"
10405fi
10406rm -f conftest*
10407LIBS="$ac_save_LIBS"
10408
10409fi
10410if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10411 echo "$ac_t""yes" 1>&6
10412 INET_LINK="resolv"
10413
10414else
10415 echo "$ac_t""no" 1>&6
10416fi
10417
10418
10419fi
10420
10421
10422
10f2d63a
VZ
10423fi
10424done
10425
c63c7106 10426
10f2d63a
VZ
10427for ac_func in inet_aton
10428do
10429echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ec14dd32 10430echo "configure:10431: checking for $ac_func" >&5
10f2d63a
VZ
10431if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10432 echo $ac_n "(cached) $ac_c" 1>&6
10433else
10434 cat > conftest.$ac_ext <<EOF
ec14dd32 10435#line 10436 "configure"
10f2d63a
VZ
10436#include "confdefs.h"
10437/* System header to define __stub macros and hopefully few prototypes,
10438 which can conflict with char $ac_func(); below. */
10439#include <assert.h>
10440/* Override any gcc2 internal prototype to avoid an error. */
10441/* We use char because int might match the return type of a gcc2
10442 builtin and then its argument prototype would still apply. */
10443char $ac_func();
10444
10445int main() {
10446
10447/* The GNU C library defines this for functions which it implements
10448 to always fail with ENOSYS. Some functions are actually named
10449 something starting with __ and the normal name is an alias. */
10450#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10451choke me
10452#else
caa2c79b 10453$ac_func();
10f2d63a
VZ
10454#endif
10455
10456; return 0; }
10457EOF
ec14dd32 10458if { (eval echo configure:10459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10459 rm -rf conftest*
10460 eval "ac_cv_func_$ac_func=yes"
10461else
10462 echo "configure: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10464 rm -rf conftest*
10465 eval "ac_cv_func_$ac_func=no"
10466fi
10467rm -f conftest*
10468fi
10469
10470if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10471 echo "$ac_t""yes" 1>&6
10472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10473 cat >> confdefs.h <<EOF
10474#define $ac_tr_func 1
10475EOF
c63c7106
VZ
10476 cat >> confdefs.h <<\EOF
10477#define HAVE_INET_ATON 1
10478EOF
10479
10f2d63a
VZ
10480else
10481 echo "$ac_t""no" 1>&6
c63c7106 10482 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
ec14dd32 10483echo "configure:10484: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10484ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10485if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10486 echo $ac_n "(cached) $ac_c" 1>&6
10487else
10488 ac_save_LIBS="$LIBS"
c63c7106 10489LIBS="-l$INET_LINK $LIBS"
10f2d63a 10490cat > conftest.$ac_ext <<EOF
ec14dd32 10491#line 10492 "configure"
10f2d63a
VZ
10492#include "confdefs.h"
10493/* Override any gcc2 internal prototype to avoid an error. */
10494/* We use char because int might match the return type of a gcc2
10495 builtin and then its argument prototype would still apply. */
10496char inet_aton();
10497
10498int main() {
10499inet_aton()
10500; return 0; }
10501EOF
ec14dd32 10502if { (eval echo configure:10503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10503 rm -rf conftest*
10504 eval "ac_cv_lib_$ac_lib_var=yes"
10505else
10506 echo "configure: failed program was:" >&5
10507 cat conftest.$ac_ext >&5
10508 rm -rf conftest*
10509 eval "ac_cv_lib_$ac_lib_var=no"
10510fi
10511rm -f conftest*
10512LIBS="$ac_save_LIBS"
10513
10514fi
10515if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10516 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10517 cat >> confdefs.h <<\EOF
10518#define HAVE_INET_ATON 1
10f2d63a
VZ
10519EOF
10520
10f2d63a
VZ
10521else
10522 echo "$ac_t""no" 1>&6
10523fi
10524
c63c7106
VZ
10525
10526fi
10527done
10528
10529
10530if test "x$INET_LINK" != "x"; then
10531 cat >> confdefs.h <<\EOF
10532#define HAVE_INET_ADDR 1
10533EOF
10534
10535 INET_LINK="-l$INET_LINK"
10536fi
10f2d63a
VZ
10537
10538fi
10539
10540
10541cat > confcache <<\EOF
10542# This file is a shell script that caches the results of configure
10543# tests run on this system so they can be shared between configure
10544# scripts and configure runs. It is not useful on other systems.
10545# If it contains results you don't want to keep, you may remove or edit it.
10546#
10547# By default, configure uses ./config.cache as the cache file,
10548# creating it if it does not exist already. You can give configure
10549# the --cache-file=FILE option to use a different cache file; that is
10550# what configure does when it calls configure scripts in
10551# subdirectories, so they share the cache.
10552# Giving --cache-file=/dev/null disables caching, for debugging configure.
10553# config.status only pays attention to the cache file if you give it the
10554# --recheck option to rerun configure.
10555#
10556EOF
10557# The following way of writing the cache mishandles newlines in values,
10558# but we know of no workaround that is simple, portable, and efficient.
10559# So, don't put newlines in cache variables' values.
10560# Ultrix sh set writes to stderr and can't be redirected directly,
10561# and sets the high bit in the cache file unless we assign to the vars.
10562(set) 2>&1 |
10563 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10564 *ac_space=\ *)
10565 # `set' does not quote correctly, so add quotes (double-quote substitution
10566 # turns \\\\ into \\, and sed turns \\ into \).
10567 sed -n \
10568 -e "s/'/'\\\\''/g" \
10569 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10570 ;;
10571 *)
10572 # `set' quotes correctly as required by POSIX, so do not add quotes.
10573 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10574 ;;
10575 esac >> confcache
10576if cmp -s $cache_file confcache; then
10577 :
10578else
10579 if test -w $cache_file; then
10580 echo "updating cache $cache_file"
10581 cat confcache > $cache_file
10582 else
10583 echo "not updating unwritable cache $cache_file"
10584 fi
10585fi
10586rm -f confcache
10587
10588
10589
10590if test "$USE_UNIX" = 1; then
10591
10592
10593THREADS_LINK=""
10594THREADS_OBJ=""
10595
10596if test "$wxUSE_THREADS" = "yes" ; then
10597 if test "$wxUSE_WINE" = 1 ; then
10598 echo "configure: warning: Threads are not supported under WINE" 1>&2
10599 wxUSE_THREADS="no"
b12915c1
VZ
10600 elif test "$USE_BEOS" = 1; then
10601 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10602 wxUSE_THREADS="no"
10f2d63a
VZ
10603 fi
10604fi
10605
10606if test "$wxUSE_THREADS" = "yes" ; then
10607
10608 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
ec14dd32 10609echo "configure:10610: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10610ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10611if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10612 echo $ac_n "(cached) $ac_c" 1>&6
10613else
10614 ac_save_LIBS="$LIBS"
10615LIBS="-lpthread $LIBS"
10616cat > conftest.$ac_ext <<EOF
ec14dd32 10617#line 10618 "configure"
10f2d63a
VZ
10618#include "confdefs.h"
10619/* Override any gcc2 internal prototype to avoid an error. */
10620/* We use char because int might match the return type of a gcc2
10621 builtin and then its argument prototype would still apply. */
10622char pthread_create();
10623
10624int main() {
10625pthread_create()
10626; return 0; }
10627EOF
ec14dd32 10628if { (eval echo configure:10629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10629 rm -rf conftest*
10630 eval "ac_cv_lib_$ac_lib_var=yes"
10631else
10632 echo "configure: failed program was:" >&5
10633 cat conftest.$ac_ext >&5
10634 rm -rf conftest*
10635 eval "ac_cv_lib_$ac_lib_var=no"
10636fi
10637rm -f conftest*
10638LIBS="$ac_save_LIBS"
10639
10640fi
10641if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10642 echo "$ac_t""yes" 1>&6
10643
10644 THREADS_OBJ="threadpsx.lo"
10645 THREADS_LINK="pthread"
10646
10647else
10648 echo "$ac_t""no" 1>&6
10649
10650 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
ec14dd32 10651echo "configure:10652: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10652ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10653if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10654 echo $ac_n "(cached) $ac_c" 1>&6
10655else
10656 ac_save_LIBS="$LIBS"
10657LIBS="-lc_r $LIBS"
10658cat > conftest.$ac_ext <<EOF
ec14dd32 10659#line 10660 "configure"
10f2d63a
VZ
10660#include "confdefs.h"
10661/* Override any gcc2 internal prototype to avoid an error. */
10662/* We use char because int might match the return type of a gcc2
10663 builtin and then its argument prototype would still apply. */
10664char pthread_create();
10665
10666int main() {
10667pthread_create()
10668; return 0; }
10669EOF
ec14dd32 10670if { (eval echo configure:10671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10671 rm -rf conftest*
10672 eval "ac_cv_lib_$ac_lib_var=yes"
10673else
10674 echo "configure: failed program was:" >&5
10675 cat conftest.$ac_ext >&5
10676 rm -rf conftest*
10677 eval "ac_cv_lib_$ac_lib_var=no"
10678fi
10679rm -f conftest*
10680LIBS="$ac_save_LIBS"
10681
10682fi
10683if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10684 echo "$ac_t""yes" 1>&6
10685
10686 THREADS_OBJ="threadpsx.lo"
10687 THREADS_LINK="c_r"
10688
10689else
10690 echo "$ac_t""no" 1>&6
10691
10692 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10693echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
ec14dd32 10694echo "configure:10695: checking for sys/prctl.h" >&5
10f2d63a
VZ
10695if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10696 echo $ac_n "(cached) $ac_c" 1>&6
10697else
10698 cat > conftest.$ac_ext <<EOF
ec14dd32 10699#line 10700 "configure"
10f2d63a
VZ
10700#include "confdefs.h"
10701#include <sys/prctl.h>
10702EOF
10703ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 10704{ (eval echo configure:10705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10705ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10706if test -z "$ac_err"; then
10707 rm -rf conftest*
10708 eval "ac_cv_header_$ac_safe=yes"
10709else
10710 echo "$ac_err" >&5
10711 echo "configure: failed program was:" >&5
10712 cat conftest.$ac_ext >&5
10713 rm -rf conftest*
10714 eval "ac_cv_header_$ac_safe=no"
10715fi
10716rm -f conftest*
10717fi
10718if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10719 echo "$ac_t""yes" 1>&6
10720
10721 THREADS_OBJ="threadsgi.lo"
10722
10723else
10724 echo "$ac_t""no" 1>&6
10725fi
10726
10727
10728fi
10729
10730
10731fi
10732
10733
10734 if test -z "$THREADS_OBJ" ; then
10735 wxUSE_THREADS=no
10736 echo "configure: warning: No thread support on this system" 1>&2
10737 fi
10738fi
10739
10740if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
10741 for ac_func in thr_setconcurrency
10742do
10743echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ec14dd32 10744echo "configure:10745: checking for $ac_func" >&5
70846f0a
VZ
10745if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10746 echo $ac_n "(cached) $ac_c" 1>&6
10747else
10748 cat > conftest.$ac_ext <<EOF
ec14dd32 10749#line 10750 "configure"
70846f0a
VZ
10750#include "confdefs.h"
10751/* System header to define __stub macros and hopefully few prototypes,
10752 which can conflict with char $ac_func(); below. */
10753#include <assert.h>
10754/* Override any gcc2 internal prototype to avoid an error. */
10755/* We use char because int might match the return type of a gcc2
10756 builtin and then its argument prototype would still apply. */
10757char $ac_func();
10758
10759int main() {
10760
10761/* The GNU C library defines this for functions which it implements
10762 to always fail with ENOSYS. Some functions are actually named
10763 something starting with __ and the normal name is an alias. */
10764#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10765choke me
10766#else
caa2c79b 10767$ac_func();
70846f0a
VZ
10768#endif
10769
10770; return 0; }
10771EOF
ec14dd32 10772if { (eval echo configure:10773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
10773 rm -rf conftest*
10774 eval "ac_cv_func_$ac_func=yes"
10775else
10776 echo "configure: failed program was:" >&5
10777 cat conftest.$ac_ext >&5
10778 rm -rf conftest*
10779 eval "ac_cv_func_$ac_func=no"
10780fi
10781rm -f conftest*
10782fi
10783
10784if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10785 echo "$ac_t""yes" 1>&6
10786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10787 cat >> confdefs.h <<EOF
10788#define $ac_tr_func 1
10789EOF
10790
10791else
10792 echo "$ac_t""no" 1>&6
10793fi
10794done
10795
10796
10f2d63a
VZ
10797
10798 for ac_hdr in sched.h
10799do
10800ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10801echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ec14dd32 10802echo "configure:10803: checking for $ac_hdr" >&5
10f2d63a
VZ
10803if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10804 echo $ac_n "(cached) $ac_c" 1>&6
10805else
10806 cat > conftest.$ac_ext <<EOF
ec14dd32 10807#line 10808 "configure"
10f2d63a
VZ
10808#include "confdefs.h"
10809#include <$ac_hdr>
10810EOF
10811ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 10812{ (eval echo configure:10813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10813ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10814if test -z "$ac_err"; then
10815 rm -rf conftest*
10816 eval "ac_cv_header_$ac_safe=yes"
10817else
10818 echo "$ac_err" >&5
10819 echo "configure: failed program was:" >&5
10820 cat conftest.$ac_ext >&5
10821 rm -rf conftest*
10822 eval "ac_cv_header_$ac_safe=no"
10823fi
10824rm -f conftest*
10825fi
10826if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10827 echo "$ac_t""yes" 1>&6
10828 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10829 cat >> confdefs.h <<EOF
10830#define $ac_tr_hdr 1
10831EOF
10832
10833else
10834 echo "$ac_t""no" 1>&6
10835fi
10836done
10837
10838
10839 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
ec14dd32 10840echo "configure:10841: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
10841ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10842if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10843 echo $ac_n "(cached) $ac_c" 1>&6
10844else
10845 ac_save_LIBS="$LIBS"
10846LIBS="-l$THREADS_LINK $LIBS"
10847cat > conftest.$ac_ext <<EOF
ec14dd32 10848#line 10849 "configure"
10f2d63a
VZ
10849#include "confdefs.h"
10850/* Override any gcc2 internal prototype to avoid an error. */
10851/* We use char because int might match the return type of a gcc2
10852 builtin and then its argument prototype would still apply. */
10853char sched_yield();
10854
10855int main() {
10856sched_yield()
10857; return 0; }
10858EOF
ec14dd32 10859if { (eval echo configure:10860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10860 rm -rf conftest*
10861 eval "ac_cv_lib_$ac_lib_var=yes"
10862else
10863 echo "configure: failed program was:" >&5
10864 cat conftest.$ac_ext >&5
10865 rm -rf conftest*
10866 eval "ac_cv_lib_$ac_lib_var=no"
10867fi
10868rm -f conftest*
10869LIBS="$ac_save_LIBS"
10870
10871fi
10872if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10873 echo "$ac_t""yes" 1>&6
10874 cat >> confdefs.h <<\EOF
10875#define HAVE_SCHED_YIELD 1
10876EOF
10877
10878else
10879 echo "$ac_t""no" 1>&6
10880echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
ec14dd32 10881echo "configure:10882: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
10882ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10883if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10884 echo $ac_n "(cached) $ac_c" 1>&6
10885else
10886 ac_save_LIBS="$LIBS"
10887LIBS="-l"posix4" $LIBS"
10888cat > conftest.$ac_ext <<EOF
ec14dd32 10889#line 10890 "configure"
10f2d63a
VZ
10890#include "confdefs.h"
10891/* Override any gcc2 internal prototype to avoid an error. */
10892/* We use char because int might match the return type of a gcc2
10893 builtin and then its argument prototype would still apply. */
10894char sched_yield();
10895
10896int main() {
10897sched_yield()
10898; return 0; }
10899EOF
ec14dd32 10900if { (eval echo configure:10901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10901 rm -rf conftest*
10902 eval "ac_cv_lib_$ac_lib_var=yes"
10903else
10904 echo "configure: failed program was:" >&5
10905 cat conftest.$ac_ext >&5
10906 rm -rf conftest*
10907 eval "ac_cv_lib_$ac_lib_var=no"
10908fi
10909rm -f conftest*
10910LIBS="$ac_save_LIBS"
10911
10912fi
10913if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10914 echo "$ac_t""yes" 1>&6
10915 cat >> confdefs.h <<\EOF
10916#define HAVE_SCHED_YIELD 1
10917EOF
10918 POSIX4_LINK="-lposix4"
10919else
10920 echo "$ac_t""no" 1>&6
10921echo "configure: warning: wxThread::Yield will not work properly" 1>&2
10922
10923fi
10924
10925
10926fi
10927
10928
10929 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
ec14dd32 10930echo "configure:10931: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
10931ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10932if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10933 echo $ac_n "(cached) $ac_c" 1>&6
10934else
10935 ac_save_LIBS="$LIBS"
10936LIBS="-l$THREADS_LINK $LIBS"
10937cat > conftest.$ac_ext <<EOF
ec14dd32 10938#line 10939 "configure"
10f2d63a
VZ
10939#include "confdefs.h"
10940/* Override any gcc2 internal prototype to avoid an error. */
10941/* We use char because int might match the return type of a gcc2
10942 builtin and then its argument prototype would still apply. */
10943char pthread_attr_getschedpolicy();
10944
10945int main() {
10946pthread_attr_getschedpolicy()
10947; return 0; }
10948EOF
ec14dd32 10949if { (eval echo configure:10950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10950 rm -rf conftest*
10951 eval "ac_cv_lib_$ac_lib_var=yes"
10952else
10953 echo "configure: failed program was:" >&5
10954 cat conftest.$ac_ext >&5
10955 rm -rf conftest*
10956 eval "ac_cv_lib_$ac_lib_var=no"
10957fi
10958rm -f conftest*
10959LIBS="$ac_save_LIBS"
10960
10961fi
10962if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10963 echo "$ac_t""yes" 1>&6
10964 cat >> confdefs.h <<\EOF
10965#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10966EOF
10967
10968else
10969 echo "$ac_t""no" 1>&6
10970echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
ec14dd32 10971echo "configure:10972: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
10972ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10973if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10974 echo $ac_n "(cached) $ac_c" 1>&6
10975else
10976 ac_save_LIBS="$LIBS"
10977LIBS="-l"posix4" $LIBS"
10978cat > conftest.$ac_ext <<EOF
ec14dd32 10979#line 10980 "configure"
10f2d63a
VZ
10980#include "confdefs.h"
10981/* Override any gcc2 internal prototype to avoid an error. */
10982/* We use char because int might match the return type of a gcc2
10983 builtin and then its argument prototype would still apply. */
10984char pthread_attr_getschedpolicy();
10985
10986int main() {
10987pthread_attr_getschedpolicy()
10988; return 0; }
10989EOF
ec14dd32 10990if { (eval echo configure:10991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10991 rm -rf conftest*
10992 eval "ac_cv_lib_$ac_lib_var=yes"
10993else
10994 echo "configure: failed program was:" >&5
10995 cat conftest.$ac_ext >&5
10996 rm -rf conftest*
10997 eval "ac_cv_lib_$ac_lib_var=no"
10998fi
10999rm -f conftest*
11000LIBS="$ac_save_LIBS"
11001
11002fi
11003if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11004 echo "$ac_t""yes" 1>&6
11005 cat >> confdefs.h <<\EOF
11006#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11007EOF
11008 POSIX4_LINK="-lposix4"
11009else
11010 echo "$ac_t""no" 1>&6
11011echo "configure: warning: Setting thread priority will not work" 1>&2
11012
11013fi
11014
11015
11016fi
11017
11018
11019 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
ec14dd32 11020echo "configure:11021: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
11021ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11022if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11023 echo $ac_n "(cached) $ac_c" 1>&6
11024else
11025 ac_save_LIBS="$LIBS"
11026LIBS="-l$THREADS_LINK $LIBS"
11027cat > conftest.$ac_ext <<EOF
ec14dd32 11028#line 11029 "configure"
10f2d63a
VZ
11029#include "confdefs.h"
11030/* Override any gcc2 internal prototype to avoid an error. */
11031/* We use char because int might match the return type of a gcc2
11032 builtin and then its argument prototype would still apply. */
11033char pthread_cancel();
11034
11035int main() {
11036pthread_cancel()
11037; return 0; }
11038EOF
ec14dd32 11039if { (eval echo configure:11040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11040 rm -rf conftest*
11041 eval "ac_cv_lib_$ac_lib_var=yes"
11042else
11043 echo "configure: failed program was:" >&5
11044 cat conftest.$ac_ext >&5
11045 rm -rf conftest*
11046 eval "ac_cv_lib_$ac_lib_var=no"
11047fi
11048rm -f conftest*
11049LIBS="$ac_save_LIBS"
11050
11051fi
11052if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11053 echo "$ac_t""yes" 1>&6
11054 cat >> confdefs.h <<\EOF
11055#define HAVE_PTHREAD_CANCEL 1
11056EOF
11057
11058else
11059 echo "$ac_t""no" 1>&6
11060echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11061fi
11062
11063
11064 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
ec14dd32 11065echo "configure:11066: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
11066if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11067 echo $ac_n "(cached) $ac_c" 1>&6
11068else
11069
11070 cat > conftest.$ac_ext <<EOF
ec14dd32 11071#line 11072 "configure"
10f2d63a
VZ
11072#include "confdefs.h"
11073#include <pthread.h>
11074int main() {
11075
11076 pthread_cleanup_push(NULL, NULL);
11077 pthread_cleanup_pop(0);
11078
11079; return 0; }
11080EOF
ec14dd32 11081if { (eval echo configure:11082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11082 rm -rf conftest*
11083
11084 wx_cv_func_pthread_cleanup_push=yes
11085 cat >> confdefs.h <<\EOF
11086#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11087EOF
11088
11089
11090else
11091 echo "configure: failed program was:" >&5
11092 cat conftest.$ac_ext >&5
11093 rm -rf conftest*
11094
11095 wx_cv_func_pthread_cleanup_push=no
11096
11097fi
11098rm -f conftest*
11099
11100fi
11101
11102echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11103
11104 THREADS_LINK="-l$THREADS_LINK"
11105fi
11106
11107fi
11108
11109if test "$wxUSE_THREADS" = "yes"; then
11110 cat >> confdefs.h <<\EOF
11111#define wxUSE_THREADS 1
11112EOF
11113
11114
11115 CFLAGS="${CFLAGS} -D_REENTRANT"
11116 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11117
11118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11119else
11120 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11121 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
ec14dd32 11122echo "configure:11123: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11123 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11124 CFLAGS="${CFLAGS} -D_REENTRANT"
11125 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11126 echo "$ac_t""yes" 1>&6
11127 else
11128 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11129 fi
11130 fi
11131fi
11132
13111b2a
VZ
11133if test "$WXGTK13" = 1 ; then
11134 cat >> confdefs.h <<EOF
11135#define __WXGTK13__ $WXGTK13
11136EOF
11137
11138 WXGTK12=1
11139fi
11140
10f2d63a
VZ
11141if test "$WXGTK12" = 1 ; then
11142 cat >> confdefs.h <<EOF
11143#define __WXGTK12__ $WXGTK12
11144EOF
11145
11146fi
11147
11148if test "$WXWINE" = 1 ; then
11149 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11150fi
11151
11152if test "$wxUSE_CYGWIN" = 1 ; then
11153 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11154fi
11155
11156WXDEBUG=
11157
11158if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11159 WXDEBUG="-g"
11160 wxUSE_OPTIMISE=no
11161fi
11162
11163if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11164 wxUSE_DEBUG_INFO=yes
11165 WXDEBUG="-ggdb"
11166fi
11167
11168if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11169 cat >> confdefs.h <<\EOF
11170#define WXDEBUG 1
11171EOF
11172
11173 WXDEBUG_DEFINE="-D__WXDEBUG__"
11174else
11175 if test "$wxUSE_GTK" = 1 ; then
11176 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11177 fi
11178fi
11179
11180if test "$wxUSE_MEM_TRACING" = "yes" ; then
11181 cat >> confdefs.h <<\EOF
11182#define wxUSE_MEMORY_TRACING 1
11183EOF
11184
11185 cat >> confdefs.h <<\EOF
11186#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
11187EOF
11188
11189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11190fi
11191
11192if test "$wxUSE_DMALLOC" = "yes" ; then
11193 DMALLOC_LINK="-ldmalloc"
11194fi
11195
11196PROFILE=
11197if test "$wxUSE_PROFILE" = "yes" ; then
11198 PROFILE="-pg"
11199fi
11200
11201DEP_INFO_FLAGS=
caa2c79b 11202CODE_GEN_FLAGS=
10f2d63a
VZ
11203if test "$GCC" = yes ; then
11204 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 11205 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
11206 fi
11207 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 11208 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
11209 fi
11210 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 11211 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
11212 fi
11213 if test "$wxUSE_NO_DEPS" = "no" ; then
11214 DEP_INFO_FLAGS="-MMD"
11215 fi
11216fi
11217
11218
11219CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11220CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11221if test "$wxUSE_OPTIMISE" = "no" ; then
11222 OPTIMISE=
11223else
11224 if test "$GCC" = yes ; then
11225 OPTIMISE="-O2"
11226 case "${host}" in
11227 i586-*-*|i686-*-* )
11228 OPTIMISE="${OPTIMISE} "
11229 ;;
11230 esac
11231 else
11232 OPTIMISE="-O"
11233 fi
11234fi
11235
11236
11237ZLIB_INCLUDE=
11238if test "$wxUSE_ZLIB" = "yes" ; then
11239 cat >> confdefs.h <<\EOF
11240#define wxUSE_ZLIB 1
11241EOF
11242
11243 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11244fi
11245
11246PNG_INCLUDE=
11247if test "$wxUSE_LIBPNG" = "yes" ; then
11248 cat >> confdefs.h <<\EOF
11249#define wxUSE_LIBPNG 1
11250EOF
11251
11252 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11253 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11254fi
11255
11256JPEG_INCLUDE=
11257if test "$wxUSE_LIBJPEG" = "yes" ; then
11258 cat >> confdefs.h <<\EOF
11259#define wxUSE_LIBJPEG 1
11260EOF
11261
11262 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11263fi
11264
c7a2bf27
RR
11265TIFF_INCLUDE=
11266if test "$wxUSE_LIBTIFF" = "yes" ; then
11267 cat >> confdefs.h <<\EOF
11268#define wxUSE_LIBTIFF 1
11269EOF
11270
11271 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11272fi
11273
10f2d63a
VZ
11274if test "$wxUSE_OPENGL" = "yes"; then
11275 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11276echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
ec14dd32 11277echo "configure:11278: checking for GL/gl.h" >&5
10f2d63a
VZ
11278if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11279 echo $ac_n "(cached) $ac_c" 1>&6
11280else
11281 cat > conftest.$ac_ext <<EOF
ec14dd32 11282#line 11283 "configure"
10f2d63a
VZ
11283#include "confdefs.h"
11284#include <GL/gl.h>
11285EOF
11286ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 11287{ (eval echo configure:11288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11288ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11289if test -z "$ac_err"; then
11290 rm -rf conftest*
11291 eval "ac_cv_header_$ac_safe=yes"
11292else
11293 echo "$ac_err" >&5
11294 echo "configure: failed program was:" >&5
11295 cat conftest.$ac_ext >&5
11296 rm -rf conftest*
11297 eval "ac_cv_header_$ac_safe=no"
11298fi
11299rm -f conftest*
11300fi
11301if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11302 echo "$ac_t""yes" 1>&6
11303
11304 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
ec14dd32 11305echo "configure:11306: checking for glInitNames in -lGL" >&5
10f2d63a
VZ
11306ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
11307if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11308 echo $ac_n "(cached) $ac_c" 1>&6
11309else
11310 ac_save_LIBS="$LIBS"
11311LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
11312cat > conftest.$ac_ext <<EOF
ec14dd32 11313#line 11314 "configure"
10f2d63a
VZ
11314#include "confdefs.h"
11315/* Override any gcc2 internal prototype to avoid an error. */
11316/* We use char because int might match the return type of a gcc2
11317 builtin and then its argument prototype would still apply. */
11318char glInitNames();
11319
11320int main() {
11321glInitNames()
11322; return 0; }
11323EOF
ec14dd32 11324if { (eval echo configure:11325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11325 rm -rf conftest*
11326 eval "ac_cv_lib_$ac_lib_var=yes"
11327else
11328 echo "configure: failed program was:" >&5
11329 cat conftest.$ac_ext >&5
11330 rm -rf conftest*
11331 eval "ac_cv_lib_$ac_lib_var=no"
11332fi
11333rm -f conftest*
11334LIBS="$ac_save_LIBS"
11335
11336fi
11337if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11338 echo "$ac_t""yes" 1>&6
11339
11340 OPENGL_LINK="-lGL"
11341 cat >> confdefs.h <<\EOF
11342#define wxUSE_OPENGL 1
11343EOF
11344
11345 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11346
11347else
11348 echo "$ac_t""no" 1>&6
11349
11350 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
ec14dd32 11351echo "configure:11352: checking for glInitNames in -lMesaGL" >&5
10f2d63a
VZ
11352ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11353if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11354 echo $ac_n "(cached) $ac_c" 1>&6
11355else
11356 ac_save_LIBS="$LIBS"
11357LIBS="-lMesaGL $LIBS"
11358cat > conftest.$ac_ext <<EOF
ec14dd32 11359#line 11360 "configure"
10f2d63a
VZ
11360#include "confdefs.h"
11361/* Override any gcc2 internal prototype to avoid an error. */
11362/* We use char because int might match the return type of a gcc2
11363 builtin and then its argument prototype would still apply. */
11364char glInitNames();
11365
11366int main() {
11367glInitNames()
11368; return 0; }
11369EOF
ec14dd32 11370if { (eval echo configure:11371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11371 rm -rf conftest*
11372 eval "ac_cv_lib_$ac_lib_var=yes"
11373else
11374 echo "configure: failed program was:" >&5
11375 cat conftest.$ac_ext >&5
11376 rm -rf conftest*
11377 eval "ac_cv_lib_$ac_lib_var=no"
11378fi
11379rm -f conftest*
11380LIBS="$ac_save_LIBS"
11381
11382fi
11383if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11384 echo "$ac_t""yes" 1>&6
11385
11386 OPENGL_LINK="-lMesaGL"
11387 cat >> confdefs.h <<\EOF
11388#define wxUSE_OPENGL 1
11389EOF
11390
11391 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11392
11393else
11394 echo "$ac_t""no" 1>&6
11395wxUSE_OPENGL=0
11396fi
11397
11398
11399fi
11400
11401
11402else
11403 echo "$ac_t""no" 1>&6
11404wxUSE_OPENGL=0
11405fi
11406
11407fi
11408
11409
11410if test "$wxUSE_GUI" = "yes"; then
11411 cat >> confdefs.h <<\EOF
11412#define wxUSE_GUI 1
11413EOF
11414
11415
11416 else
11417 cat >> confdefs.h <<\EOF
11418#define wxUSE_NOGUI 1
11419EOF
11420
11421fi
11422
11423
11424if test "$wxUSE_UNIX" = "yes"; then
11425 cat >> confdefs.h <<\EOF
11426#define wxUSE_UNIX 1
11427EOF
11428
11429fi
11430
11431
11432if test "$wxUSE_APPLE_IEEE" = "yes"; then
11433 cat >> confdefs.h <<\EOF
11434#define wxUSE_APPLE_IEEE 1
11435EOF
11436
11437fi
11438
10f2d63a
VZ
11439if test "$wxUSE_WAVE" = "yes"; then
11440 cat >> confdefs.h <<\EOF
11441#define wxUSE_WAVE 1
11442EOF
11443
11444fi
11445
11446if test "$wxUSE_FILE" = "yes"; then
11447 cat >> confdefs.h <<\EOF
11448#define wxUSE_FILE 1
11449EOF
11450
11451fi
11452
11453if test "$wxUSE_FS_INET" = "yes"; then
11454 cat >> confdefs.h <<\EOF
11455#define wxUSE_FS_INET 1
11456EOF
11457
11458fi
11459
11460if test "$wxUSE_FS_ZIP" = "yes"; then
11461 cat >> confdefs.h <<\EOF
11462#define wxUSE_FS_ZIP 1
11463EOF
11464
11465fi
11466
11467if test "$wxUSE_ZIPSTREAM" = "yes"; then
11468 cat >> confdefs.h <<\EOF
11469#define wxUSE_ZIPSTREAM 1
11470EOF
11471
11472fi
11473
11474if test "$wxUSE_BUSYINFO" = "yes"; then
11475 cat >> confdefs.h <<\EOF
11476#define wxUSE_BUSYINFO 1
11477EOF
11478
11479fi
11480
11481if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11482 cat >> confdefs.h <<\EOF
11483#define wxUSE_STD_IOSTREAM 1
11484EOF
11485
11486fi
11487
11488if test "$wxUSE_TEXTFILE" = "yes"; then
11489 if test "$wxUSE_FILE" != "yes"; then
11490 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11491 else
11492 cat >> confdefs.h <<\EOF
11493#define wxUSE_TEXTFILE 1
11494EOF
11495
11496 fi
11497fi
11498
11499if test "$wxUSE_CONFIG" = "yes" ; then
11500 if test "$wxUSE_TEXTFILE" != "yes"; then
11501 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11502 else
11503 cat >> confdefs.h <<\EOF
11504#define wxUSE_CONFIG 1
11505EOF
11506
11507 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11508 fi
11509fi
11510
11511if test "$wxUSE_INTL" = "yes" ; then
11512 if test "$wxUSE_FILE" != "yes"; then
11513 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11514 else
11515 cat >> confdefs.h <<\EOF
11516#define wxUSE_INTL 1
11517EOF
11518
11519 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11520 fi
11521fi
11522
11523if test "$wxUSE_LOG" = "yes"; then
11524 cat >> confdefs.h <<\EOF
11525#define wxUSE_LOG 1
11526EOF
11527
11528fi
11529
11530if test "$wxUSE_LONGLONG" = "yes"; then
11531 cat >> confdefs.h <<\EOF
11532#define wxUSE_LONGLONG 1
11533EOF
11534
11535fi
11536
10f2d63a
VZ
11537if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11538 cat >> confdefs.h <<\EOF
11539#define wxUSE_DIALUP_MANAGER 1
11540EOF
11541
70f7a477 11542 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
11543fi
11544
11545if test "$wxUSE_STREAMS" = "yes" ; then
11546 cat >> confdefs.h <<\EOF
11547#define wxUSE_STREAMS 1
11548EOF
11549
11550fi
11551
10f2d63a 11552
afc31813 11553if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
11554 for ac_func in strptime
11555do
11556echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ec14dd32 11557echo "configure:11558: checking for $ac_func" >&5
83307f33
VZ
11558if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11559 echo $ac_n "(cached) $ac_c" 1>&6
11560else
11561 cat > conftest.$ac_ext <<EOF
ec14dd32 11562#line 11563 "configure"
83307f33
VZ
11563#include "confdefs.h"
11564/* System header to define __stub macros and hopefully few prototypes,
11565 which can conflict with char $ac_func(); below. */
11566#include <assert.h>
11567/* Override any gcc2 internal prototype to avoid an error. */
11568/* We use char because int might match the return type of a gcc2
11569 builtin and then its argument prototype would still apply. */
11570char $ac_func();
11571
11572int main() {
11573
11574/* The GNU C library defines this for functions which it implements
11575 to always fail with ENOSYS. Some functions are actually named
11576 something starting with __ and the normal name is an alias. */
11577#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11578choke me
11579#else
caa2c79b 11580$ac_func();
83307f33
VZ
11581#endif
11582
11583; return 0; }
11584EOF
ec14dd32 11585if { (eval echo configure:11586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
11586 rm -rf conftest*
11587 eval "ac_cv_func_$ac_func=yes"
11588else
11589 echo "configure: failed program was:" >&5
11590 cat conftest.$ac_ext >&5
11591 rm -rf conftest*
11592 eval "ac_cv_func_$ac_func=no"
11593fi
11594rm -f conftest*
11595fi
11596
11597if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11598 echo "$ac_t""yes" 1>&6
11599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11600 cat >> confdefs.h <<EOF
11601#define $ac_tr_func 1
11602EOF
11603
11604else
11605 echo "$ac_t""no" 1>&6
11606fi
11607done
11608
11609
360d6699 11610 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
ec14dd32 11611echo "configure:11612: checking for timezone variable in <time.h>" >&5
360d6699
VZ
11612if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11613 echo $ac_n "(cached) $ac_c" 1>&6
11614else
11615
11616 cat > conftest.$ac_ext <<EOF
ec14dd32 11617#line 11618 "configure"
360d6699
VZ
11618#include "confdefs.h"
11619
11620 #include <time.h>
11621
11622int main() {
11623
11624 int tz;
11625 tz = __timezone;
11626
11627; return 0; }
11628EOF
ec14dd32 11629if { (eval echo configure:11630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11630 rm -rf conftest*
11631
11632 wx_cv_var_timezone=__timezone
11633
11634else
11635 echo "configure: failed program was:" >&5
11636 cat conftest.$ac_ext >&5
11637 rm -rf conftest*
11638
11639 cat > conftest.$ac_ext <<EOF
ec14dd32 11640#line 11641 "configure"
360d6699
VZ
11641#include "confdefs.h"
11642
11643 #include <time.h>
11644
11645int main() {
11646
11647 int tz;
11648 tz = _timezone;
11649
11650; return 0; }
11651EOF
ec14dd32 11652if { (eval echo configure:11653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11653 rm -rf conftest*
11654
11655 wx_cv_var_timezone=_timezone
11656
5357c8e8
VZ
11657else
11658 echo "configure: failed program was:" >&5
11659 cat conftest.$ac_ext >&5
11660 rm -rf conftest*
11661
11662 cat > conftest.$ac_ext <<EOF
ec14dd32 11663#line 11664 "configure"
5357c8e8
VZ
11664#include "confdefs.h"
11665
11666 #include <time.h>
11667
11668int main() {
11669
11670 int tz;
11671 tz = timezone;
11672
11673; return 0; }
11674EOF
ec14dd32 11675if { (eval echo configure:11676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
11676 rm -rf conftest*
11677
11678 wx_cv_var_timezone=timezone
11679
360d6699
VZ
11680else
11681 echo "configure: failed program was:" >&5
11682 cat conftest.$ac_ext >&5
11683 rm -rf conftest*
11684 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
11685
11686fi
11687rm -f conftest*
11688
360d6699
VZ
11689
11690fi
11691rm -f conftest*
11692
11693
11694fi
11695rm -f conftest*
11696
11697
11698fi
11699
11700echo "$ac_t""$wx_cv_var_timezone" 1>&6
11701
11702 cat >> confdefs.h <<EOF
11703#define WX_TIMEZONE $wx_cv_var_timezone
11704EOF
11705
11706
0470b1e6 11707 for ac_func in localtime gettimeofday ftime
afc31813
VZ
11708do
11709echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ec14dd32 11710echo "configure:11711: checking for $ac_func" >&5
afc31813
VZ
11711if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11712 echo $ac_n "(cached) $ac_c" 1>&6
11713else
11714 cat > conftest.$ac_ext <<EOF
ec14dd32 11715#line 11716 "configure"
10f2d63a 11716#include "confdefs.h"
afc31813
VZ
11717/* System header to define __stub macros and hopefully few prototypes,
11718 which can conflict with char $ac_func(); below. */
11719#include <assert.h>
11720/* Override any gcc2 internal prototype to avoid an error. */
11721/* We use char because int might match the return type of a gcc2
11722 builtin and then its argument prototype would still apply. */
11723char $ac_func();
11724
10f2d63a 11725int main() {
afc31813
VZ
11726
11727/* The GNU C library defines this for functions which it implements
11728 to always fail with ENOSYS. Some functions are actually named
11729 something starting with __ and the normal name is an alias. */
11730#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11731choke me
11732#else
caa2c79b 11733$ac_func();
afc31813
VZ
11734#endif
11735
10f2d63a
VZ
11736; return 0; }
11737EOF
ec14dd32 11738if { (eval echo configure:11739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 11739 rm -rf conftest*
afc31813 11740 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
11741else
11742 echo "configure: failed program was:" >&5
11743 cat conftest.$ac_ext >&5
11744 rm -rf conftest*
afc31813
VZ
11745 eval "ac_cv_func_$ac_func=no"
11746fi
11747rm -f conftest*
11748fi
11749
11750if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11751 echo "$ac_t""yes" 1>&6
11752 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11753 cat >> confdefs.h <<EOF
11754#define $ac_tr_func 1
11755EOF
0470b1e6 11756 break
afc31813
VZ
11757else
11758 echo "$ac_t""no" 1>&6
11759fi
11760done
11761
11762
0470b1e6
VZ
11763 if test "$ac_cv_func_localtime" = "yes"; then
11764 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
ec14dd32 11765echo "configure:11766: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
11766if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
11767 echo $ac_n "(cached) $ac_c" 1>&6
11768else
11769
11770 cat > conftest.$ac_ext <<EOF
ec14dd32 11771#line 11772 "configure"
0470b1e6
VZ
11772#include "confdefs.h"
11773
11774 #include <time.h>
11775
11776int main() {
11777
11778 struct tm tm;
11779 tm.tm_gmtoff++;
11780
11781; return 0; }
11782EOF
ec14dd32 11783if { (eval echo configure:11784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
11784 rm -rf conftest*
11785
f03a98d8 11786 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
11787 cat >> confdefs.h <<\EOF
11788#define WX_GMTOFF_IN_TM 1
11789EOF
11790
11791
11792else
11793 echo "configure: failed program was:" >&5
11794 cat conftest.$ac_ext >&5
11795 rm -rf conftest*
11796 wx_cv_struct_tm_has_gmtoff=no
11797
11798fi
11799rm -f conftest*
11800
11801fi
11802
11803echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
11804 elif test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 11805 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
ec14dd32 11806echo "configure:11807: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
11807if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
11808 echo $ac_n "(cached) $ac_c" 1>&6
11809else
11810
11811
11812 ac_ext=C
11813# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11814ac_cpp='$CXXCPP $CPPFLAGS'
11815ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11816ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11817cross_compiling=$ac_cv_prog_cxx_cross
11818
11819
11820 cat > conftest.$ac_ext <<EOF
ec14dd32 11821#line 11822 "configure"
10f2d63a 11822#include "confdefs.h"
afc31813
VZ
11823
11824 #include <sys/time.h>
11825 #include <unistd.h>
11826
10f2d63a 11827int main() {
afc31813
VZ
11828
11829 struct timeval tv;
11830 struct timezone tz;
11831 gettimeofday(&tv, &tz);
11832
10f2d63a
VZ
11833; return 0; }
11834EOF
ec14dd32 11835if { (eval echo configure:11836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11836 rm -rf conftest*
afc31813 11837 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
11838else
11839 echo "configure: failed program was:" >&5
11840 cat conftest.$ac_ext >&5
11841 rm -rf conftest*
11842 cat > conftest.$ac_ext <<EOF
ec14dd32 11843#line 11844 "configure"
10f2d63a 11844#include "confdefs.h"
afc31813
VZ
11845
11846 #include <sys/time.h>
11847 #include <unistd.h>
11848
10f2d63a 11849int main() {
afc31813
VZ
11850
11851 struct timeval tv;
11852 gettimeofday(&tv);
11853
10f2d63a
VZ
11854; return 0; }
11855EOF
ec14dd32 11856if { (eval echo configure:11857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11857 rm -rf conftest*
afc31813 11858 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
11859else
11860 echo "configure: failed program was:" >&5
11861 cat conftest.$ac_ext >&5
11862 rm -rf conftest*
afc31813
VZ
11863 wx_cv_func_gettimeofday_has_2_args=unknown
11864
10f2d63a
VZ
11865fi
11866rm -f conftest*
afc31813 11867
10f2d63a
VZ
11868fi
11869rm -f conftest*
afc31813 11870 ac_ext=c
10f2d63a
VZ
11871# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11872ac_cpp='$CPP $CPPFLAGS'
11873ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11874ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11875cross_compiling=$ac_cv_prog_cc_cross
11876
afc31813
VZ
11877
11878fi
11879
11880echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 11881
afc31813
VZ
11882 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
11883 cat >> confdefs.h <<\EOF
11884#define WX_GETTIMEOFDAY_NO_TZ 1
11885EOF
11886
11887 fi
11888 fi
11889
11890 cat >> confdefs.h <<\EOF
11891#define wxUSE_TIMEDATE 1
11892EOF
11893
11894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
11895fi
11896
11897
11898if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 11899 echo $ac_n "checking for socket""... $ac_c" 1>&6
ec14dd32 11900echo "configure:11901: checking for socket" >&5
c63c7106
VZ
11901if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
11902 echo $ac_n "(cached) $ac_c" 1>&6
11903else
11904 cat > conftest.$ac_ext <<EOF
ec14dd32 11905#line 11906 "configure"
c63c7106
VZ
11906#include "confdefs.h"
11907/* System header to define __stub macros and hopefully few prototypes,
11908 which can conflict with char socket(); below. */
11909#include <assert.h>
11910/* Override any gcc2 internal prototype to avoid an error. */
11911/* We use char because int might match the return type of a gcc2
11912 builtin and then its argument prototype would still apply. */
11913char socket();
11914
11915int main() {
11916
11917/* The GNU C library defines this for functions which it implements
11918 to always fail with ENOSYS. Some functions are actually named
11919 something starting with __ and the normal name is an alias. */
11920#if defined (__stub_socket) || defined (__stub___socket)
11921choke me
11922#else
caa2c79b 11923socket();
c63c7106
VZ
11924#endif
11925
11926; return 0; }
11927EOF
ec14dd32 11928if { (eval echo configure:11929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11929 rm -rf conftest*
11930 eval "ac_cv_func_socket=yes"
11931else
11932 echo "configure: failed program was:" >&5
11933 cat conftest.$ac_ext >&5
11934 rm -rf conftest*
11935 eval "ac_cv_func_socket=no"
11936fi
11937rm -f conftest*
11938fi
11939
11940if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11941 echo "$ac_t""yes" 1>&6
11942 :
11943else
11944 echo "$ac_t""no" 1>&6
11945echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
ec14dd32 11946echo "configure:11947: checking for socket in -lsocket" >&5
c63c7106
VZ
11947ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
11948if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11949 echo $ac_n "(cached) $ac_c" 1>&6
11950else
11951 ac_save_LIBS="$LIBS"
11952LIBS="-lsocket $LIBS"
11953cat > conftest.$ac_ext <<EOF
ec14dd32 11954#line 11955 "configure"
c63c7106
VZ
11955#include "confdefs.h"
11956/* Override any gcc2 internal prototype to avoid an error. */
11957/* We use char because int might match the return type of a gcc2
11958 builtin and then its argument prototype would still apply. */
11959char socket();
11960
11961int main() {
11962socket()
11963; return 0; }
11964EOF
ec14dd32 11965if { (eval echo configure:11966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11966 rm -rf conftest*
11967 eval "ac_cv_lib_$ac_lib_var=yes"
11968else
11969 echo "configure: failed program was:" >&5
11970 cat conftest.$ac_ext >&5
11971 rm -rf conftest*
11972 eval "ac_cv_lib_$ac_lib_var=no"
11973fi
11974rm -f conftest*
11975LIBS="$ac_save_LIBS"
11976
11977fi
11978if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11979 echo "$ac_t""yes" 1>&6
11980 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
11981else
11982 echo "$ac_t""no" 1>&6
afc31813
VZ
11983
11984 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
11985 wxUSE_SOCKETS=no
11986
11987
c63c7106
VZ
11988fi
11989
11990
11991fi
11992
10f2d63a
VZ
11993fi
11994
afc31813
VZ
11995if test "$wxUSE_SOCKETS" = "yes" ; then
11996
11997 ac_ext=C
11998# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11999ac_cpp='$CXXCPP $CPPFLAGS'
12000ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12001ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12002cross_compiling=$ac_cv_prog_cxx_cross
12003
12004 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
ec14dd32 12005echo "configure:12006: checking the type of the third argument of getsockname" >&5
afc31813 12006 cat > conftest.$ac_ext <<EOF
ec14dd32 12007#line 12008 "configure"
afc31813
VZ
12008#include "confdefs.h"
12009#include <sys/socket.h>
12010int main() {
12011socklen_t len; getsockname(0, 0, &len);
12012; return 0; }
12013EOF
ec14dd32 12014if { (eval echo configure:12015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
12015 rm -rf conftest*
12016 cat >> confdefs.h <<\EOF
12017#define SOCKLEN_T socklen_t
12018EOF
12019 echo "$ac_t""socklen_t" 1>&6
12020else
12021 echo "configure: failed program was:" >&5
12022 cat conftest.$ac_ext >&5
12023 rm -rf conftest*
12024 cat > conftest.$ac_ext <<EOF
ec14dd32 12025#line 12026 "configure"
afc31813
VZ
12026#include "confdefs.h"
12027#include <sys/socket.h>
12028int main() {
12029size_t len; getsockname(0, 0, &len);
12030; return 0; }
12031EOF
ec14dd32 12032if { (eval echo configure:12033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
12033 rm -rf conftest*
12034 cat >> confdefs.h <<\EOF
12035#define SOCKLEN_T size_t
12036EOF
12037 echo "$ac_t""size_t" 1>&6
12038else
12039 echo "configure: failed program was:" >&5
12040 cat conftest.$ac_ext >&5
12041 rm -rf conftest*
12042 cat > conftest.$ac_ext <<EOF
ec14dd32 12043#line 12044 "configure"
afc31813
VZ
12044#include "confdefs.h"
12045#include <sys/socket.h>
12046int main() {
12047int len; getsockname(0, 0, &len);
12048; return 0; }
12049EOF
ec14dd32 12050if { (eval echo configure:12051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
12051 rm -rf conftest*
12052 cat >> confdefs.h <<\EOF
12053#define SOCKLEN_T int
12054EOF
12055 echo "$ac_t""int" 1>&6
12056else
12057 echo "configure: failed program was:" >&5
12058 cat conftest.$ac_ext >&5
12059 rm -rf conftest*
12060 echo "$ac_t""unknown" 1>&6
12061
12062fi
12063rm -f conftest*
12064
12065fi
12066rm -f conftest*
12067
12068fi
12069rm -f conftest*
12070 ac_ext=c
12071# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12072ac_cpp='$CPP $CPPFLAGS'
12073ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12074ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12075cross_compiling=$ac_cv_prog_cc_cross
12076
12077
12078 cat >> confdefs.h <<\EOF
12079#define wxUSE_SOCKETS 1
12080EOF
12081
70f7a477 12082 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
12083 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12084fi
12085
10f2d63a
VZ
12086
12087if test "$wxUSE_JOYSTICK" = 1; then
12088 for ac_hdr in linux/joystick.h
12089do
12090ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12091echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ec14dd32 12092echo "configure:12093: checking for $ac_hdr" >&5
10f2d63a
VZ
12093if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12094 echo $ac_n "(cached) $ac_c" 1>&6
12095else
12096 cat > conftest.$ac_ext <<EOF
ec14dd32 12097#line 12098 "configure"
10f2d63a
VZ
12098#include "confdefs.h"
12099#include <$ac_hdr>
12100EOF
12101ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 12102{ (eval echo configure:12103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12103ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12104if test -z "$ac_err"; then
12105 rm -rf conftest*
12106 eval "ac_cv_header_$ac_safe=yes"
12107else
12108 echo "$ac_err" >&5
12109 echo "configure: failed program was:" >&5
12110 cat conftest.$ac_ext >&5
12111 rm -rf conftest*
12112 eval "ac_cv_header_$ac_safe=no"
12113fi
12114rm -f conftest*
12115fi
12116if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12117 echo "$ac_t""yes" 1>&6
12118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12119 cat >> confdefs.h <<EOF
12120#define $ac_tr_hdr 1
12121EOF
12122
12123else
12124 echo "$ac_t""no" 1>&6
12125fi
12126done
12127
12128 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
12129 cat >> confdefs.h <<\EOF
12130#define wxUSE_JOYSTICK 1
12131EOF
12132
12133 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
12134 fi
12135fi
12136
12137
12138HAVE_DL_FUNCS=0
12139HAVE_SHL_FUNCS=0
12140if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12141 for ac_func in dlopen
12142do
12143echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ec14dd32 12144echo "configure:12145: checking for $ac_func" >&5
10f2d63a
VZ
12145if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12146 echo $ac_n "(cached) $ac_c" 1>&6
12147else
12148 cat > conftest.$ac_ext <<EOF
ec14dd32 12149#line 12150 "configure"
10f2d63a
VZ
12150#include "confdefs.h"
12151/* System header to define __stub macros and hopefully few prototypes,
12152 which can conflict with char $ac_func(); below. */
12153#include <assert.h>
12154/* Override any gcc2 internal prototype to avoid an error. */
12155/* We use char because int might match the return type of a gcc2
12156 builtin and then its argument prototype would still apply. */
12157char $ac_func();
12158
12159int main() {
12160
12161/* The GNU C library defines this for functions which it implements
12162 to always fail with ENOSYS. Some functions are actually named
12163 something starting with __ and the normal name is an alias. */
12164#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12165choke me
12166#else
caa2c79b 12167$ac_func();
10f2d63a
VZ
12168#endif
12169
12170; return 0; }
12171EOF
ec14dd32 12172if { (eval echo configure:12173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12173 rm -rf conftest*
12174 eval "ac_cv_func_$ac_func=yes"
12175else
12176 echo "configure: failed program was:" >&5
12177 cat conftest.$ac_ext >&5
12178 rm -rf conftest*
12179 eval "ac_cv_func_$ac_func=no"
12180fi
12181rm -f conftest*
12182fi
12183
12184if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12185 echo "$ac_t""yes" 1>&6
12186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12187 cat >> confdefs.h <<EOF
12188#define $ac_tr_func 1
12189EOF
12190
12191 cat >> confdefs.h <<\EOF
12192#define HAVE_DLOPEN 1
12193EOF
12194
12195 HAVE_DL_FUNCS=1
12196
12197else
12198 echo "$ac_t""no" 1>&6
12199echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
ec14dd32 12200echo "configure:12201: checking for dlopen in -ldl" >&5
10f2d63a
VZ
12201ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12202if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12203 echo $ac_n "(cached) $ac_c" 1>&6
12204else
12205 ac_save_LIBS="$LIBS"
12206LIBS="-ldl $LIBS"
12207cat > conftest.$ac_ext <<EOF
ec14dd32 12208#line 12209 "configure"
10f2d63a
VZ
12209#include "confdefs.h"
12210/* Override any gcc2 internal prototype to avoid an error. */
12211/* We use char because int might match the return type of a gcc2
12212 builtin and then its argument prototype would still apply. */
12213char dlopen();
12214
12215int main() {
12216dlopen()
12217; return 0; }
12218EOF
ec14dd32 12219if { (eval echo configure:12220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12220 rm -rf conftest*
12221 eval "ac_cv_lib_$ac_lib_var=yes"
12222else
12223 echo "configure: failed program was:" >&5
12224 cat conftest.$ac_ext >&5
12225 rm -rf conftest*
12226 eval "ac_cv_lib_$ac_lib_var=no"
12227fi
12228rm -f conftest*
12229LIBS="$ac_save_LIBS"
12230
12231fi
12232if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12233 echo "$ac_t""yes" 1>&6
12234
12235 cat >> confdefs.h <<\EOF
12236#define HAVE_DLOPEN 1
12237EOF
12238
12239 HAVE_DL_FUNCS=1
12240 LIBS="$LIBS -ldl"
12241
12242else
12243 echo "$ac_t""no" 1>&6
12244
12245 for ac_func in shl_load
12246do
12247echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ec14dd32 12248echo "configure:12249: checking for $ac_func" >&5
10f2d63a
VZ
12249if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12250 echo $ac_n "(cached) $ac_c" 1>&6
12251else
12252 cat > conftest.$ac_ext <<EOF
ec14dd32 12253#line 12254 "configure"
10f2d63a
VZ
12254#include "confdefs.h"
12255/* System header to define __stub macros and hopefully few prototypes,
12256 which can conflict with char $ac_func(); below. */
12257#include <assert.h>
12258/* Override any gcc2 internal prototype to avoid an error. */
12259/* We use char because int might match the return type of a gcc2
12260 builtin and then its argument prototype would still apply. */
12261char $ac_func();
12262
12263int main() {
12264
12265/* The GNU C library defines this for functions which it implements
12266 to always fail with ENOSYS. Some functions are actually named
12267 something starting with __ and the normal name is an alias. */
12268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12269choke me
12270#else
caa2c79b 12271$ac_func();
10f2d63a
VZ
12272#endif
12273
12274; return 0; }
12275EOF
ec14dd32 12276if { (eval echo configure:12277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12277 rm -rf conftest*
12278 eval "ac_cv_func_$ac_func=yes"
12279else
12280 echo "configure: failed program was:" >&5
12281 cat conftest.$ac_ext >&5
12282 rm -rf conftest*
12283 eval "ac_cv_func_$ac_func=no"
12284fi
12285rm -f conftest*
12286fi
12287
12288if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12289 echo "$ac_t""yes" 1>&6
12290 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12291 cat >> confdefs.h <<EOF
12292#define $ac_tr_func 1
12293EOF
12294
12295 cat >> confdefs.h <<\EOF
12296#define HAVE_SHL_LOAD 1
12297EOF
12298
12299 HAVE_SHL_FUNCS=1
12300
12301else
12302 echo "$ac_t""no" 1>&6
12303fi
12304done
12305
12306
12307fi
12308
12309
12310fi
12311done
12312
12313
12314 if test "$HAVE_DL_FUNCS" = 0; then
12315 if test "$HAVE_SHL_FUNCS" = 0; then
12316 if test "$USE_UNIX" = 1; then
b12915c1 12317 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
12318 wxUSE_DYNLIB_CLASS=no
12319 else
b12915c1 12320 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
12321 fi
12322 fi
12323 fi
12324fi
12325
12326if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 12327 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12328#define wxUSE_DYNLIB_CLASS 1
12329EOF
12330
b12915c1
VZ
12331else
12332 wxUSE_ODBC=no
12333 wxUSE_SERIAL=no
10f2d63a
VZ
12334fi
12335
12336
12337if test "$wxUSE_UNICODE" = "yes" ; then
12338 cat >> confdefs.h <<\EOF
12339#define wxUSE_UNICODE 1
12340EOF
12341
12342fi
12343
12344if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12345 cat >> confdefs.h <<\EOF
12346#define wxUSE_WCSRTOMBS 1
12347EOF
12348
12349fi
12350
12351if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12352 cat >> confdefs.h <<\EOF
12353#define wxUSE_EXPERIMENTAL_PRINTF 1
12354EOF
12355
12356fi
12357
12358
b12915c1
VZ
12359if test "$wxUSE_SERIAL" = "yes" ; then
12360 cat >> confdefs.h <<\EOF
12361#define wxUSE_SERIAL 1
12362EOF
12363
12364fi
12365
12366
10f2d63a
VZ
12367IODBC_C_SRC=""
12368if test "$wxUSE_ODBC" = "yes" ; then
12369 cat >> confdefs.h <<\EOF
12370#define wxUSE_ODBC 1
12371EOF
12372
12373 WXODBCFLAG="-D_IODBC_"
12374 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12375 IODBCOBJS="\$(IODBC_OBJS)"
12376else
12377 IODBCOBJS=
12378fi
12379
12380
12381if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12382 cat >> confdefs.h <<\EOF
12383#define wxUSE_POSTSCRIPT 1
12384EOF
12385
12386fi
12387
12388cat >> confdefs.h <<\EOF
12389#define wxUSE_AFM_FOR_POSTSCRIPT 1
12390EOF
12391
12392
12393cat >> confdefs.h <<\EOF
12394#define wxUSE_NORMALIZED_PS_FONTS 1
12395EOF
12396
12397
12398
12399if test "$wxUSE_CONSTRAINTS" = "yes"; then
12400 cat >> confdefs.h <<\EOF
12401#define wxUSE_CONSTRAINTS 1
12402EOF
12403
12404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12405fi
12406
12407if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12408 cat >> confdefs.h <<\EOF
12409#define wxUSE_MDI_ARCHITECTURE 1
12410EOF
12411
12412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12413fi
12414
12415if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12416 cat >> confdefs.h <<\EOF
12417#define wxUSE_DOC_VIEW_ARCHITECTURE 1
12418EOF
12419
12420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12421 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12422 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12423 fi
12424fi
12425
12426if test "$wxUSE_HELP" = "yes"; then
12427 cat >> confdefs.h <<\EOF
12428#define wxUSE_HELP 1
12429EOF
12430
12431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12432fi
12433
12434if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12435 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12436 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12437 else
12438 cat >> confdefs.h <<\EOF
12439#define wxUSE_PRINTING_ARCHITECTURE 1
12440EOF
12441
12442 fi
12443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12444fi
12445
12446if test "$wxUSE_PROLOGIO" = "yes" ; then
12447 cat >> confdefs.h <<\EOF
12448#define wxUSE_PROLOGIO 1
12449EOF
12450
12451fi
12452
12453if test "$wxUSE_RESOURCES" = "yes" ; then
12454 if test "$wxUSE_PROLOGIO" = "yes" ; then
12455 cat >> confdefs.h <<\EOF
12456#define wxUSE_RESOURCES 1
12457EOF
12458
12459 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12460 else
12461 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12462 fi
12463fi
12464
12465if test "$wxUSE_X_RESOURCES" = "yes"; then
12466 cat >> confdefs.h <<\EOF
12467#define wxUSE_X_RESOURCES 1
12468EOF
12469
12470fi
12471
12472
12473if test "$wxUSE_IPC" = "yes"; then
12474 cat >> confdefs.h <<\EOF
12475#define wxUSE_IPC 1
12476EOF
12477
12478fi
12479
12480if test "$wxUSE_CLIPBOARD" = "yes"; then
12481 cat >> confdefs.h <<\EOF
12482#define wxUSE_CLIPBOARD 1
12483EOF
12484
12485fi
12486
12487if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12488 if test "$wxUSE_GTK" = 1; then
12489 if test "$WXGTK12" != 1; then
12490 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12491 wxUSE_DRAG_AND_DROP=no
12492 fi
12493 fi
12494
12495 if test "$wxUSE_MOTIF" = 1; then
12496 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12497 wxUSE_DRAG_AND_DROP=no
12498 fi
12499
12500 if test "$USE_WIN32" = 1; then
12501 for ac_hdr in ole2.h
12502do
12503ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12504echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ec14dd32 12505echo "configure:12506: checking for $ac_hdr" >&5
10f2d63a
VZ
12506if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12507 echo $ac_n "(cached) $ac_c" 1>&6
12508else
12509 cat > conftest.$ac_ext <<EOF
ec14dd32 12510#line 12511 "configure"
10f2d63a
VZ
12511#include "confdefs.h"
12512#include <$ac_hdr>
12513EOF
12514ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ec14dd32 12515{ (eval echo configure:12516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12516ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12517if test -z "$ac_err"; then
12518 rm -rf conftest*
12519 eval "ac_cv_header_$ac_safe=yes"
12520else
12521 echo "$ac_err" >&5
12522 echo "configure: failed program was:" >&5
12523 cat conftest.$ac_ext >&5
12524 rm -rf conftest*
12525 eval "ac_cv_header_$ac_safe=no"
12526fi
12527rm -f conftest*
12528fi
12529if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12530 echo "$ac_t""yes" 1>&6
12531 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12532 cat >> confdefs.h <<EOF
12533#define $ac_tr_hdr 1
12534EOF
12535
12536else
12537 echo "$ac_t""no" 1>&6
12538fi
12539done
12540
12541 if test "x$HAVE_OLE2_H" = x ; then
12542 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12543 wxUSE_DRAG_AND_DROP=no
12544 fi
12545 fi
12546
12547 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12548 cat >> confdefs.h <<\EOF
12549#define wxUSE_DRAG_AND_DROP 1
12550EOF
12551
12552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12553 fi
12554
12555fi
12556
12557if test "$wxUSE_SPLINES" = "yes" ; then
12558 cat >> confdefs.h <<\EOF
12559#define wxUSE_SPLINES 1
12560EOF
12561
12562fi
12563
12564
12565if test "$wxUSE_ACCEL" = "yes"; then
12566 cat >> confdefs.h <<\EOF
12567#define wxUSE_ACCEL 1
12568EOF
12569
12570fi
12571
12572if test "$wxUSE_CARET" = "yes"; then
12573 cat >> confdefs.h <<\EOF
12574#define wxUSE_CARET 1
12575EOF
12576
12577 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12578fi
12579
12580if test "$wxUSE_COMBOBOX" = "yes"; then
12581 cat >> confdefs.h <<\EOF
12582#define wxUSE_COMBOBOX 1
12583EOF
12584
12585fi
12586
12587if test "$wxUSE_CHOICE" = "yes"; then
12588 cat >> confdefs.h <<\EOF
12589#define wxUSE_CHOICE 1
12590EOF
12591
12592fi
12593
12594if test "$wxUSE_BMPBUTTON" = "yes"; then
12595 cat >> confdefs.h <<\EOF
12596#define wxUSE_BMPBUTTON 1
12597EOF
12598
12599fi
12600
12601if test "$wxUSE_CHECKBOX" = "yes"; then
12602 cat >> confdefs.h <<\EOF
12603#define wxUSE_CHECKBOX 1
12604EOF
12605
12606fi
12607
12608if test "$wxUSE_CHECKLST" = "yes"; then
12609 cat >> confdefs.h <<\EOF
12610#define wxUSE_CHECKLISTBOX 1
12611EOF
12612
12613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12614fi
12615
12616if test "$wxUSE_GAUGE" = "yes"; then
12617 cat >> confdefs.h <<\EOF
12618#define wxUSE_GAUGE 1
12619EOF
12620
12621fi
12622
12623if test "$wxUSE_GRID" = "yes"; then
12624 cat >> confdefs.h <<\EOF
12625#define wxUSE_GRID 1
12626EOF
12627
12628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
12629fi
12630
12631if test "$wxUSE_NEW_GRID" = "yes"; then
12632 cat >> confdefs.h <<\EOF
12633#define wxUSE_NEW_GRID 1
12634EOF
12635
12636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
12637fi
12638
12639if test "$wxUSE_IMAGLIST" = "yes"; then
12640 cat >> confdefs.h <<\EOF
12641#define wxUSE_IMAGLIST 1
12642EOF
12643
12644fi
12645
12646if test "$wxUSE_LISTBOX" = "yes"; then
12647 cat >> confdefs.h <<\EOF
12648#define wxUSE_LISTBOX 1
12649EOF
12650
12651fi
12652
12653if test "$wxUSE_LISTCTRL" = "yes"; then
12654 if test "$wxUSE_IMAGLIST" = "yes"; then
12655 cat >> confdefs.h <<\EOF
12656#define wxUSE_LISTCTRL 1
12657EOF
12658
12659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
12660 else
12661 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
12662 fi
12663fi
12664
12665if test "$wxUSE_NOTEBOOK" = "yes"; then
12666 cat >> confdefs.h <<\EOF
12667#define wxUSE_NOTEBOOK 1
12668EOF
12669
12670 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
12671fi
12672
12673if test "$wxUSE_RADIOBOX" = "yes"; then
12674 cat >> confdefs.h <<\EOF
12675#define wxUSE_RADIOBOX 1
12676EOF
12677
12678fi
12679
12680if test "$wxUSE_RADIOBTN" = "yes"; then
12681 cat >> confdefs.h <<\EOF
12682#define wxUSE_RADIOBTN 1
12683EOF
12684
12685fi
12686
12687if test "$wxUSE_SASH" = "yes"; then
12688 cat >> confdefs.h <<\EOF
12689#define wxUSE_SASH 1
12690EOF
12691
12692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
12693fi
12694
12695if test "$wxUSE_SCROLLBAR" = "yes"; then
12696 cat >> confdefs.h <<\EOF
12697#define wxUSE_SCROLLBAR 1
12698EOF
12699
741a9306 12700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
12701fi
12702
12703if test "$wxUSE_SLIDER" = "yes"; then
12704 cat >> confdefs.h <<\EOF
12705#define wxUSE_SLIDER 1
12706EOF
12707
12708fi
12709
12710if test "$wxUSE_SPINBTN" = "yes"; then
12711 cat >> confdefs.h <<\EOF
12712#define wxUSE_SPINBTN 1
12713EOF
12714
12715fi
12716
56cfaa52
RR
12717if test "$wxUSE_SPINCTRL" = "yes"; then
12718 cat >> confdefs.h <<\EOF
12719#define wxUSE_SPINCTRL 1
12720EOF
12721
12722fi
12723
10f2d63a
VZ
12724if test "$wxUSE_SPLITTER" = "yes"; then
12725 cat >> confdefs.h <<\EOF
12726#define wxUSE_SPLITTER 1
12727EOF
12728
12729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
12730fi
12731
12732if test "$wxUSE_STATBMP" = "yes"; then
12733 cat >> confdefs.h <<\EOF
12734#define wxUSE_STATBMP 1
12735EOF
12736
12737fi
12738
12739if test "$wxUSE_STATBOX" = "yes"; then
12740 cat >> confdefs.h <<\EOF
12741#define wxUSE_STATBOX 1
12742EOF
12743
12744fi
12745
12746if test "$wxUSE_STATLINE" = "yes"; then
12747 if test "$wxUSE_WINE" = 1 ; then
12748 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
12749 else
12750 cat >> confdefs.h <<\EOF
12751#define wxUSE_STATLINE 1
12752EOF
12753
12754 fi
12755fi
12756
12757if test "$wxUSE_STATUSBAR" = "yes"; then
12758 cat >> confdefs.h <<\EOF
12759#define wxUSE_STATUSBAR 1
12760EOF
12761
12762fi
12763
12764if test "$wxUSE_TABDIALOG" = "yes"; then
12765 cat >> confdefs.h <<\EOF
12766#define wxUSE_TAB_DIALOG 1
12767EOF
12768
12769 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
12770fi
12771
360d6699
VZ
12772if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
12773 cat >> confdefs.h <<\EOF
12774#define wxUSE_TOOLBAR_SIMPLE 1
12775EOF
12776
12777 wxUSE_TOOLBAR="yes"
12778fi
12779
10f2d63a
VZ
12780if test "$wxUSE_TOOLBAR" = "yes"; then
12781 cat >> confdefs.h <<\EOF
12782#define wxUSE_TOOLBAR 1
12783EOF
12784
360d6699
VZ
12785
12786 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
12787 wxUSE_TOOLBAR_NATIVE="yes"
12788 fi
12789
10f2d63a
VZ
12790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
12791fi
12792
360d6699
VZ
12793if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
12794 cat >> confdefs.h <<\EOF
12795#define wxUSE_TOOLBAR_NATIVE 1
12796EOF
12797
12798fi
12799
10f2d63a
VZ
12800if test "$wxUSE_TOOLTIPS" = "yes"; then
12801 if test "$wxUSE_MOTIF" = 1; then
12802 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
12803 else
12804 if test "$wxUSE_WINE" = 1; then
12805 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
12806 else
12807 cat >> confdefs.h <<\EOF
12808#define wxUSE_TOOLTIPS 1
12809EOF
12810
12811 fi
12812 fi
12813fi
12814
12815if test "$wxUSE_TREECTRL" = "yes"; then
12816 if test "$wxUSE_IMAGLIST" = "yes"; then
12817 cat >> confdefs.h <<\EOF
12818#define wxUSE_TREECTRL 1
12819EOF
12820
12821 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
12822 else
12823 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
12824 fi
12825fi
12826
12827
12828
12829if test "$wxUSE_METAFILE" = "yes"; then
12830 cat >> confdefs.h <<\EOF
12831#define wxUSE_METAFILE 1
12832EOF
12833
12834fi
12835
12836if test "$wxUSE_DIRDLG" = "yes"; then
12837 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12838 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
12839 else
12840 if test "$wxUSE_TREECTRL" != "yes"; then
12841 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
12842 else
12843 cat >> confdefs.h <<\EOF
12844#define wxUSE_DIRDLG 1
12845EOF
12846
12847 fi
12848 fi
12849fi
12850
12851if test "$wxUSE_TEXTDLG" = "yes"; then
12852 cat >> confdefs.h <<\EOF
12853#define wxUSE_TEXTDLG 1
12854EOF
12855
12856fi
12857
12858if test "$wxUSE_STARTUP_TIPS" = "yes"; then
12859 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12860 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
12861 else
12862 cat >> confdefs.h <<\EOF
12863#define wxUSE_STARTUP_TIPS 1
12864EOF
12865
12866 fi
12867fi
12868
12869if test "$wxUSE_PROGRESSDLG" = "yes"; then
12870 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12871 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
12872 else
12873 cat >> confdefs.h <<\EOF
12874#define wxUSE_PROGRESSDLG 1
12875EOF
12876
12877 fi
12878fi
12879
12880if test "$wxUSE_MINIFRAME" = "yes"; then
12881 cat >> confdefs.h <<\EOF
12882#define wxUSE_MINIFRAME 1
12883EOF
12884
12885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
12886fi
12887
12888if test "$wxUSE_HTML" = "yes"; then
12889 cat >> confdefs.h <<\EOF
12890#define wxUSE_HTML 1
12891EOF
12892
12893 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
12894 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
12895fi
12896
12897if test "$wxUSE_VALIDATORS" = "yes"; then
12898 cat >> confdefs.h <<\EOF
12899#define wxUSE_VALIDATORS 1
12900EOF
12901
12902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
12903fi
12904
12905if test "$wxUSE_GIF" = "yes" ; then
12906 cat >> confdefs.h <<\EOF
12907#define wxUSE_GIF 1
12908EOF
12909
12910fi
12911
12912if test "$wxUSE_PCX" = "yes" ; then
12913 cat >> confdefs.h <<\EOF
12914#define wxUSE_PCX 1
12915EOF
12916
12917fi
12918
12919if test "$wxUSE_PNM" = "yes" ; then
12920 cat >> confdefs.h <<\EOF
12921#define wxUSE_PNM 1
12922EOF
12923
12924fi
12925
12926
aaa37c0d
VZ
12927OSINFO=`uname -s -r -m`
12928OSINFO="\"$OSINFO\""
12929cat >> confdefs.h <<EOF
12930#define WXWIN_OS_DESCRIPTION $OSINFO
12931EOF
12932
12933
12934
10f2d63a
VZ
12935GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
12936
c63c7106 12937EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a
VZ
12938if test "$wxUSE_GUI" = "yes"; then
12939 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
12940fi
12941
12942LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
12943
c7a2bf27 12944INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
12945
12946if test "$GXX" = yes ; then
12947 CXXWARNINGS="-Wall"
12948 fi
12949EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
12950
12951CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
12952CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
12953
e694c22c
VZ
12954LDFLAGS="$LDFLAGS $PROFILE"
12955
10f2d63a
VZ
12956if test "$wxUSE_GUI" = "yes"; then
12957
70f7a477
VZ
12958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs drawing dynamic \
12959 font fractal image minimal richedit"
b12915c1 12960
e2b8b066 12961 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS)"
10f2d63a
VZ
12962else
12963 SAMPLES_SUBDIRS=""
12964fi
12965
ec14dd32
VZ
12966SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
12967
12968
12969
10f2d63a
VZ
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
1d62a8b4 13022
e694c22c 13023
b12915c1 13024
dad6c0ea
VZ
13025
13026
caa2c79b 13027
10f2d63a
VZ
13028
13029
13030echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
ec14dd32 13031echo "configure:13032: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
13032set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13033if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13034 echo $ac_n "(cached) $ac_c" 1>&6
13035else
13036 cat > conftestmake <<\EOF
13037all:
13038 @echo 'ac_maketemp="${MAKE}"'
13039EOF
13040# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13041eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13042if test -n "$ac_maketemp"; then
13043 eval ac_cv_prog_make_${ac_make}_set=yes
13044else
13045 eval ac_cv_prog_make_${ac_make}_set=no
13046fi
13047rm -f conftestmake
13048fi
13049if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13050 echo "$ac_t""yes" 1>&6
13051 SET_MAKE=
13052else
13053 echo "$ac_t""no" 1>&6
13054 SET_MAKE="MAKE=${MAKE-make}"
13055fi
13056
13057
13058
13059
13060if test "${TOOLKIT_DIR}" = "msw" ; then
13061 GL_TOOLKIT_DIR="win"
13062else
13063 GL_TOOLKIT_DIR="${TOOLKIT_DIR}"
13064fi
13065
13066
13067trap '' 1 2 15
13068cat > confcache <<\EOF
13069# This file is a shell script that caches the results of configure
13070# tests run on this system so they can be shared between configure
13071# scripts and configure runs. It is not useful on other systems.
13072# If it contains results you don't want to keep, you may remove or edit it.
13073#
13074# By default, configure uses ./config.cache as the cache file,
13075# creating it if it does not exist already. You can give configure
13076# the --cache-file=FILE option to use a different cache file; that is
13077# what configure does when it calls configure scripts in
13078# subdirectories, so they share the cache.
13079# Giving --cache-file=/dev/null disables caching, for debugging configure.
13080# config.status only pays attention to the cache file if you give it the
13081# --recheck option to rerun configure.
13082#
13083EOF
13084# The following way of writing the cache mishandles newlines in values,
13085# but we know of no workaround that is simple, portable, and efficient.
13086# So, don't put newlines in cache variables' values.
13087# Ultrix sh set writes to stderr and can't be redirected directly,
13088# and sets the high bit in the cache file unless we assign to the vars.
13089(set) 2>&1 |
13090 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13091 *ac_space=\ *)
13092 # `set' does not quote correctly, so add quotes (double-quote substitution
13093 # turns \\\\ into \\, and sed turns \\ into \).
13094 sed -n \
13095 -e "s/'/'\\\\''/g" \
13096 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13097 ;;
13098 *)
13099 # `set' quotes correctly as required by POSIX, so do not add quotes.
13100 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13101 ;;
13102 esac >> confcache
13103if cmp -s $cache_file confcache; then
13104 :
13105else
13106 if test -w $cache_file; then
13107 echo "updating cache $cache_file"
13108 cat confcache > $cache_file
13109 else
13110 echo "not updating unwritable cache $cache_file"
13111 fi
13112fi
13113rm -f confcache
13114
13115trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13116
13117test "x$prefix" = xNONE && prefix=$ac_default_prefix
13118# Let make expand exec_prefix.
13119test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13120
13121# Any assignment to VPATH causes Sun make to only execute
13122# the first set of double-colon rules, so remove it if not needed.
13123# If there is a colon in the path, we need to keep it.
13124if test "x$srcdir" = x.; then
13125 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13126fi
13127
13128trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13129
13130DEFS=-DHAVE_CONFIG_H
13131
13132# Without the "./", some shells look in PATH for config.status.
13133: ${CONFIG_STATUS=./config.status}
13134
13135echo creating $CONFIG_STATUS
13136rm -f $CONFIG_STATUS
13137cat > $CONFIG_STATUS <<EOF
13138#! /bin/sh
13139# Generated automatically by configure.
13140# Run this file to recreate the current configuration.
13141# This directory was configured as follows,
13142# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13143#
13144# $0 $ac_configure_args
13145#
13146# Compiler output produced by configure, useful for debugging
13147# configure, is in ./config.log if it exists.
13148
13149ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13150for ac_option
13151do
13152 case "\$ac_option" in
13153 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13154 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13155 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13156 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
caa2c79b 13157 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
13158 exit 0 ;;
13159 -help | --help | --hel | --he | --h)
13160 echo "\$ac_cs_usage"; exit 0 ;;
13161 *) echo "\$ac_cs_usage"; exit 1 ;;
13162 esac
13163done
13164
13165ac_given_srcdir=$srcdir
13166ac_given_INSTALL="$INSTALL"
13167
13168trap 'rm -fr `echo "
13169 wx-config
13170 src/make.env
13171 src/makeprog.env
13172 src/makelib.env
13173 Makefile
70f7a477
VZ
13174 demos/Makefile
13175 demos/bombs/Makefile
13176 demos/forty/Makefile
13177 demos/fractal/Makefile
13178 demos/life/Makefile
13179 demos/poem/Makefile
10f2d63a 13180 samples/Makefile
10f2d63a 13181 samples/caret/Makefile
1e8d2f69 13182 samples/calendar/Makefile
10f2d63a
VZ
13183 samples/checklst/Makefile
13184 samples/config/Makefile
13185 samples/controls/Makefile
b47c832e 13186 samples/console/Makefile
10f2d63a
VZ
13187 samples/db/Makefile
13188 samples/dialogs/Makefile
13189 samples/docview/Makefile
13190 samples/docvwmdi/Makefile
13191 samples/dnd/Makefile
13192 samples/drawing/Makefile
678b92a9 13193 samples/font/Makefile
1e8d2f69
RR
13194 samples/grid/Makefile
13195 samples/help/Makefile
10f2d63a
VZ
13196 samples/image/Makefile
13197 samples/internat/Makefile
13198 samples/layout/Makefile
13199 samples/listctrl/Makefile
13200 samples/mdi/Makefile
13201 samples/minifram/Makefile
13202 samples/minimal/Makefile
70f7a477 13203 samples/dialup/Makefile
10f2d63a
VZ
13204 samples/newgrid/Makefile
13205 samples/notebook/Makefile
13206 samples/png/Makefile
13207 samples/printing/Makefile
13208 samples/proplist/Makefile
04165bec 13209 samples/propsize/Makefile
10f2d63a
VZ
13210 samples/richedit/Makefile
13211 samples/resource/Makefile
13212 samples/sashtest/Makefile
13213 samples/scroll/Makefile
13214 samples/scrollsub/Makefile
13215 samples/splitter/Makefile
13216 samples/text/Makefile
13217 samples/thread/Makefile
13218 samples/toolbar/Makefile
13219 samples/treectrl/Makefile
13220 samples/typetest/Makefile
13221 samples/validate/Makefile
70f7a477 13222 samples/sockets/Makefile
10f2d63a
VZ
13223 samples/wizard/Makefile
13224 samples/html/Makefile
13225 samples/html/about/Makefile
13226 samples/html/help/Makefile
13227 samples/html/printing/Makefile
fc9c7c09 13228 samples/html/helpview/Makefile
10f2d63a
VZ
13229 samples/html/test/Makefile
13230 samples/html/zip/Makefile
13231 samples/html/virtual/Makefile
13232 samples/html/widget/Makefile
13233 utils/Makefile
13234 utils/wxMMedia2/Makefile
13235 utils/wxMMedia2/lib/Makefile
13236 utils/wxMMedia2/sample/Makefile
13237 utils/glcanvas/Makefile
13238 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
13239 utils/ogl/Makefile
13240 utils/ogl/src/Makefile
13241 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13242EOF
13243cat >> $CONFIG_STATUS <<EOF
13244
13245# Protect against being on the right side of a sed subst in config.status.
13246sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13247 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13248$ac_vpsub
13249$extrasub
13250s%@SHELL@%$SHELL%g
13251s%@CFLAGS@%$CFLAGS%g
13252s%@CPPFLAGS@%$CPPFLAGS%g
13253s%@CXXFLAGS@%$CXXFLAGS%g
13254s%@FFLAGS@%$FFLAGS%g
13255s%@DEFS@%$DEFS%g
13256s%@LDFLAGS@%$LDFLAGS%g
13257s%@LIBS@%$LIBS%g
13258s%@exec_prefix@%$exec_prefix%g
13259s%@prefix@%$prefix%g
13260s%@program_transform_name@%$program_transform_name%g
13261s%@bindir@%$bindir%g
13262s%@sbindir@%$sbindir%g
13263s%@libexecdir@%$libexecdir%g
13264s%@datadir@%$datadir%g
13265s%@sysconfdir@%$sysconfdir%g
13266s%@sharedstatedir@%$sharedstatedir%g
13267s%@localstatedir@%$localstatedir%g
13268s%@libdir@%$libdir%g
13269s%@includedir@%$includedir%g
13270s%@oldincludedir@%$oldincludedir%g
13271s%@infodir@%$infodir%g
13272s%@mandir@%$mandir%g
13273s%@host@%$host%g
13274s%@host_alias@%$host_alias%g
13275s%@host_cpu@%$host_cpu%g
13276s%@host_vendor@%$host_vendor%g
13277s%@host_os@%$host_os%g
13278s%@target@%$target%g
13279s%@target_alias@%$target_alias%g
13280s%@target_cpu@%$target_cpu%g
13281s%@target_vendor@%$target_vendor%g
13282s%@target_os@%$target_os%g
13283s%@build@%$build%g
13284s%@build_alias@%$build_alias%g
13285s%@build_cpu@%$build_cpu%g
13286s%@build_vendor@%$build_vendor%g
13287s%@build_os@%$build_os%g
13288s%@CC@%$CC%g
13289s%@CPP@%$CPP%g
13290s%@CXX@%$CXX%g
13291s%@CXXCPP@%$CXXCPP%g
13292s%@RANLIB@%$RANLIB%g
13293s%@AR@%$AR%g
13294s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13295s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13296s%@INSTALL_DATA@%$INSTALL_DATA%g
13297s%@STRIP@%$STRIP%g
13298s%@YACC@%$YACC%g
13299s%@LEX@%$LEX%g
13300s%@LEXLIB@%$LEXLIB%g
13301s%@LN_S@%$LN_S%g
13302s%@GTK_CONFIG@%$GTK_CONFIG%g
13303s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13304s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
13305s%@X_CFLAGS@%$X_CFLAGS%g
13306s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13307s%@X_LIBS@%$X_LIBS%g
13308s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
13309s%@LEX_STEM@%$LEX_STEM%g
13310s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
13311s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13312s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13313s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13314s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13315s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13316s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13317s%@WX_LIBRARY@%$WX_LIBRARY%g
13318s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13319s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13320s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13321s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13322s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13323s%@WX_ALL@%$WX_ALL%g
13324s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13325s%@SHARED_LD@%$SHARED_LD%g
13326s%@PIC_FLAG@%$PIC_FLAG%g
13327s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 13328s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 13329s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
10f2d63a 13330s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
13331s%@USE_GUI@%$USE_GUI%g
13332s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
13333s%@TOOLKIT@%$TOOLKIT%g
13334s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13335s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13336s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13337s%@GUIHEADERS@%$GUIHEADERS%g
13338s%@GUIOBJS@%$GUIOBJS%g
13339s%@COMMONOBJS@%$COMMONOBJS%g
13340s%@GENERICOBJS@%$GENERICOBJS%g
13341s%@GUIDEPS@%$GUIDEPS%g
13342s%@COMMONDEPS@%$COMMONDEPS%g
13343s%@GENERICDEPS@%$GENERICDEPS%g
13344s%@IODBCOBJS@%$IODBCOBJS%g
13345s%@UNIXOBJS@%$UNIXOBJS%g
13346s%@UNIXDEPS@%$UNIXDEPS%g
13347s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13348s%@ALL_DEPFILES@%$ALL_DEPFILES%g
13349s%@ALL_HEADERS@%$ALL_HEADERS%g
13350s%@GUIDIST@%$GUIDIST%g
13351s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13352s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13353s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13354s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13355s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13356s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13357s%@EXTRA_LIBS@%$EXTRA_LIBS%g
b12915c1 13358s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a
VZ
13359s%@LD_LIBS@%$LD_LIBS%g
13360s%@SET_MAKE@%$SET_MAKE%g
13361s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
13362
13363CEOF
13364EOF
13365
13366cat >> $CONFIG_STATUS <<\EOF
13367
13368# Split the substitutions into bite-sized pieces for seds with
13369# small command number limits, like on Digital OSF/1 and HP-UX.
13370ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13371ac_file=1 # Number of current file.
13372ac_beg=1 # First line for current file.
13373ac_end=$ac_max_sed_cmds # Line after last line for current file.
13374ac_more_lines=:
13375ac_sed_cmds=""
13376while $ac_more_lines; do
13377 if test $ac_beg -gt 1; then
13378 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13379 else
13380 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13381 fi
13382 if test ! -s conftest.s$ac_file; then
13383 ac_more_lines=false
13384 rm -f conftest.s$ac_file
13385 else
13386 if test -z "$ac_sed_cmds"; then
13387 ac_sed_cmds="sed -f conftest.s$ac_file"
13388 else
13389 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13390 fi
13391 ac_file=`expr $ac_file + 1`
13392 ac_beg=$ac_end
13393 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13394 fi
13395done
13396if test -z "$ac_sed_cmds"; then
13397 ac_sed_cmds=cat
13398fi
13399EOF
13400
13401cat >> $CONFIG_STATUS <<EOF
13402
13403CONFIG_FILES=\${CONFIG_FILES-"wx-config
13404 src/make.env
13405 src/makeprog.env
13406 src/makelib.env
13407 Makefile
70f7a477
VZ
13408 demos/Makefile
13409 demos/bombs/Makefile
13410 demos/forty/Makefile
13411 demos/fractal/Makefile
13412 demos/life/Makefile
13413 demos/poem/Makefile
10f2d63a 13414 samples/Makefile
10f2d63a 13415 samples/caret/Makefile
1e8d2f69 13416 samples/calendar/Makefile
10f2d63a
VZ
13417 samples/checklst/Makefile
13418 samples/config/Makefile
13419 samples/controls/Makefile
b47c832e 13420 samples/console/Makefile
10f2d63a
VZ
13421 samples/db/Makefile
13422 samples/dialogs/Makefile
13423 samples/docview/Makefile
13424 samples/docvwmdi/Makefile
13425 samples/dnd/Makefile
13426 samples/drawing/Makefile
678b92a9 13427 samples/font/Makefile
1e8d2f69
RR
13428 samples/grid/Makefile
13429 samples/help/Makefile
10f2d63a
VZ
13430 samples/image/Makefile
13431 samples/internat/Makefile
13432 samples/layout/Makefile
13433 samples/listctrl/Makefile
13434 samples/mdi/Makefile
13435 samples/minifram/Makefile
13436 samples/minimal/Makefile
70f7a477 13437 samples/dialup/Makefile
10f2d63a
VZ
13438 samples/newgrid/Makefile
13439 samples/notebook/Makefile
13440 samples/png/Makefile
13441 samples/printing/Makefile
13442 samples/proplist/Makefile
04165bec 13443 samples/propsize/Makefile
10f2d63a
VZ
13444 samples/richedit/Makefile
13445 samples/resource/Makefile
13446 samples/sashtest/Makefile
13447 samples/scroll/Makefile
13448 samples/scrollsub/Makefile
13449 samples/splitter/Makefile
13450 samples/text/Makefile
13451 samples/thread/Makefile
13452 samples/toolbar/Makefile
13453 samples/treectrl/Makefile
13454 samples/typetest/Makefile
13455 samples/validate/Makefile
70f7a477 13456 samples/sockets/Makefile
10f2d63a
VZ
13457 samples/wizard/Makefile
13458 samples/html/Makefile
13459 samples/html/about/Makefile
13460 samples/html/help/Makefile
13461 samples/html/printing/Makefile
fc9c7c09 13462 samples/html/helpview/Makefile
10f2d63a
VZ
13463 samples/html/test/Makefile
13464 samples/html/zip/Makefile
13465 samples/html/virtual/Makefile
13466 samples/html/widget/Makefile
13467 utils/Makefile
13468 utils/wxMMedia2/Makefile
13469 utils/wxMMedia2/lib/Makefile
13470 utils/wxMMedia2/sample/Makefile
13471 utils/glcanvas/Makefile
13472 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
13473 utils/ogl/Makefile
13474 utils/ogl/src/Makefile
13475 "}
13476EOF
13477cat >> $CONFIG_STATUS <<\EOF
13478for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13479 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13480 case "$ac_file" in
13481 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13482 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13483 *) ac_file_in="${ac_file}.in" ;;
13484 esac
13485
13486 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13487
13488 # Remove last slash and all that follows it. Not all systems have dirname.
13489 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13490 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13491 # The file is in a subdirectory.
13492 test ! -d "$ac_dir" && mkdir "$ac_dir"
13493 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13494 # A "../" for each directory in $ac_dir_suffix.
13495 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13496 else
13497 ac_dir_suffix= ac_dots=
13498 fi
13499
13500 case "$ac_given_srcdir" in
13501 .) srcdir=.
13502 if test -z "$ac_dots"; then top_srcdir=.
13503 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13504 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13505 *) # Relative path.
13506 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13507 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13508 esac
13509
13510 case "$ac_given_INSTALL" in
13511 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13512 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13513 esac
13514
13515 echo creating "$ac_file"
13516 rm -f "$ac_file"
13517 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13518 case "$ac_file" in
13519 *Makefile*) ac_comsub="1i\\
13520# $configure_input" ;;
13521 *) ac_comsub= ;;
13522 esac
13523
13524 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13525 sed -e "$ac_comsub
13526s%@configure_input@%$configure_input%g
13527s%@srcdir@%$srcdir%g
13528s%@top_srcdir@%$top_srcdir%g
13529s%@INSTALL@%$INSTALL%g
13530" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13531fi; done
13532rm -f conftest.s*
13533
13534# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13535# NAME is the cpp macro being defined and VALUE is the value it is being given.
13536#
13537# ac_d sets the value in "#define NAME VALUE" lines.
13538ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13539ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13540ac_dC='\3'
13541ac_dD='%g'
13542# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13543ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13544ac_uB='\([ ]\)%\1#\2define\3'
13545ac_uC=' '
13546ac_uD='\4%g'
13547# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13548ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13549ac_eB='$%\1#\2define\3'
13550ac_eC=' '
13551ac_eD='%g'
13552
13553if test "${CONFIG_HEADERS+set}" != set; then
13554EOF
13555cat >> $CONFIG_STATUS <<EOF
13556 CONFIG_HEADERS="setup.h:setup.h.in"
13557EOF
13558cat >> $CONFIG_STATUS <<\EOF
13559fi
13560for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13561 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13562 case "$ac_file" in
13563 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13564 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13565 *) ac_file_in="${ac_file}.in" ;;
13566 esac
13567
13568 echo creating $ac_file
13569
13570 rm -f conftest.frag conftest.in conftest.out
13571 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13572 cat $ac_file_inputs > conftest.in
13573
13574EOF
13575
13576# Transform confdefs.h into a sed script conftest.vals that substitutes
13577# the proper values into config.h.in to produce config.h. And first:
13578# Protect against being on the right side of a sed subst in config.status.
13579# Protect against being in an unquoted here document in config.status.
13580rm -f conftest.vals
13581cat > conftest.hdr <<\EOF
13582s/[\\&%]/\\&/g
13583s%[\\$`]%\\&%g
13584s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13585s%ac_d%ac_u%gp
13586s%ac_u%ac_e%gp
13587EOF
13588sed -n -f conftest.hdr confdefs.h > conftest.vals
13589rm -f conftest.hdr
13590
13591# This sed command replaces #undef with comments. This is necessary, for
13592# example, in the case of _POSIX_SOURCE, which is predefined and required
13593# on some systems where configure will not decide to define it.
13594cat >> conftest.vals <<\EOF
13595s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13596EOF
13597
13598# Break up conftest.vals because some shells have a limit on
13599# the size of here documents, and old seds have small limits too.
13600
13601rm -f conftest.tail
13602while :
13603do
13604 ac_lines=`grep -c . conftest.vals`
13605 # grep -c gives empty output for an empty file on some AIX systems.
13606 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13607 # Write a limited-size here document to conftest.frag.
13608 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13609 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13610 echo 'CEOF
13611 sed -f conftest.frag conftest.in > conftest.out
13612 rm -f conftest.in
13613 mv conftest.out conftest.in
13614' >> $CONFIG_STATUS
13615 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13616 rm -f conftest.vals
13617 mv conftest.tail conftest.vals
13618done
13619rm -f conftest.vals
13620
13621cat >> $CONFIG_STATUS <<\EOF
13622 rm -f conftest.frag conftest.h
13623 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13624 cat conftest.in >> conftest.h
13625 rm -f conftest.in
13626 if cmp -s $ac_file conftest.h 2>/dev/null; then
13627 echo "$ac_file is unchanged"
13628 rm -f conftest.h
13629 else
13630 # Remove last slash and all that follows it. Not all systems have dirname.
13631 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13632 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13633 # The file is in a subdirectory.
13634 test ! -d "$ac_dir" && mkdir "$ac_dir"
13635 fi
13636 rm -f $ac_file
13637 mv conftest.h $ac_file
13638 fi
13639fi; done
13640
13641EOF
13642cat >> $CONFIG_STATUS <<EOF
13643
13644 TOOLKIT_DIR="${TOOLKIT_DIR}"
13645
13646
13647EOF
13648cat >> $CONFIG_STATUS <<\EOF
13649
13650 chmod +x wx-config
13651 if test ! -d include; then
13652 mkdir include
13653 fi
13654 if test ! -d include/wx; then
13655 mkdir include/wx
13656 fi
13657 if test ! -d include/wx/${TOOLKIT_DIR}; then
13658 mkdir include/wx/${TOOLKIT_DIR}
13659 fi
afc31813
VZ
13660 if test -f setup.h; then
13661 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13662 fi
10f2d63a
VZ
13663
13664exit 0
13665EOF
13666chmod +x $CONFIG_STATUS
13667rm -fr confdefs* $ac_clean_files
13668test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13669
13670