]> git.saurik.com Git - wxWidgets.git/blame - configure
added support for definition lists (DL,DT,DD) to wxHTML
[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.
e694c22c 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"
63ac_help="$ac_help
64 --with-gtk-prefix=PFX Prefix where GTK is installed"
65ac_help="$ac_help
66 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
67ac_help="$ac_help
68--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
69ac_help="$ac_help
70--with-zlib use zlib for LZW compression"
71ac_help="$ac_help
72--with-libpng use libpng (PNG image format)"
73ac_help="$ac_help
74--with-libjpeg use libjpeg (JPEG file format)"
75ac_help="$ac_help
c7a2bf27
RR
76--with-libtiff use libtiff (TIFF file format)"
77ac_help="$ac_help
10f2d63a
VZ
78--with-opengl use OpenGL (or Mesa)"
79ac_help="$ac_help
80--with-odbc use the IODBC and wxODBC classes"
81ac_help="$ac_help
82--enable-shared create shared library code"
83ac_help="$ac_help
84--enable-optimise create optimised code"
85ac_help="$ac_help
86--enable-debug same as debug_flag and debug_info"
87ac_help="$ac_help
88--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
89ac_help="$ac_help
90--enable-debug_info create code with debugging information"
91ac_help="$ac_help
92--enable-debug_gdb create code with extra GDB debugging information"
93ac_help="$ac_help
94--enable-debug_cntxt use wxDebugContext"
95ac_help="$ac_help
96--enable-mem_tracing create code with memory tracing"
97ac_help="$ac_help
98--enable-profile create code with profiling information"
99ac_help="$ac_help
100--enable-no_rtti create code without RTTI information"
101ac_help="$ac_help
102--enable-no_exceptions create code without exceptions information"
103ac_help="$ac_help
104--enable-permissive compile code disregarding strict ANSI"
105ac_help="$ac_help
106--enable-no_deps create code without dependency information"
107ac_help="$ac_help
108--enable-intl use internationalization system"
109ac_help="$ac_help
110--enable-config use wxConfig (and derived) classes"
111ac_help="$ac_help
112--enable-sockets use socket/network classes"
113ac_help="$ac_help
114--enable-dialupman use dialup network classes"
115ac_help="$ac_help
116--enable-ipc use interprocess communication (wxSocket etc.)"
117ac_help="$ac_help
118--enable-apple_ieee use the Apple IEEE codec"
119ac_help="$ac_help
120--enable-timedate use date/time classes"
121ac_help="$ac_help
122--enable-wave use wxWave class"
123ac_help="$ac_help
124--enable-fraction use wxFraction class"
125ac_help="$ac_help
126--enable-dynlib use wxLibrary class for DLL loading"
127ac_help="$ac_help
128--enable-longlong use wxLongLong class"
129ac_help="$ac_help
130--enable-log use logging system"
131ac_help="$ac_help
132--enable-streams use wxStream etc classes"
133ac_help="$ac_help
134--enable-file use wxFile classes"
135ac_help="$ac_help
136--enable-textfile use wxTextFile classes"
137ac_help="$ac_help
138--enable-unicode compile wxString with Unicode support"
139ac_help="$ac_help
140--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
141ac_help="$ac_help
142--enable-wxprintfv use wxWindows implementation of vprintf()"
143ac_help="$ac_help
144--enable-joystick compile in joystick support (Linux only)"
145ac_help="$ac_help
146--enable-std_iostreams use standard C++ stream classes"
147ac_help="$ac_help
148--enable-fs_inet use virtual HTTP/FTP filesystems"
149ac_help="$ac_help
150--enable-fs_zip use virtual ZIP filesystems"
151ac_help="$ac_help
152--enable-zipstream use wxZipInputStream"
153ac_help="$ac_help
154--enable-threads use threads"
155ac_help="$ac_help
156--enable-serial use class serialization"
157ac_help="$ac_help
158--enable-docview use document view architecture"
159ac_help="$ac_help
160--enable-help use help (using external browser at present)"
161ac_help="$ac_help
162--enable-constraints use layout-constraints system"
163ac_help="$ac_help
164--enable-printarch use printing architecture"
165ac_help="$ac_help
166--enable-mdi use multiple document interface architecture"
167ac_help="$ac_help
168--enable-postscript use wxPostscriptDC device context (default for gtk+)"
169ac_help="$ac_help
170--enable-prologio use Prolog IO library"
171ac_help="$ac_help
172--enable-resources use wxWindows resources"
173ac_help="$ac_help
174--enable-xresources use X resources for save (default for gtk+)"
175ac_help="$ac_help
176--enable-clipboard use wxClipboard classes"
177ac_help="$ac_help
178--enable-dnd use Drag'n'Drop classes"
179ac_help="$ac_help
180--enable-wxtree make wxTree library"
181ac_help="$ac_help
182--enable-controls use all usual controls"
183ac_help="$ac_help
184--enable-accel use accelerators"
185ac_help="$ac_help
186--enable-caret use wxCaret class"
187ac_help="$ac_help
188--enable-bmpbutton use wxBitmapButton class"
189ac_help="$ac_help
190--enable-checkbox use wxCheckBox class"
191ac_help="$ac_help
192--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
193ac_help="$ac_help
194--enable-choice use wxChoice class"
195ac_help="$ac_help
196--enable-combobox use wxComboBox classes"
197ac_help="$ac_help
198--enable-gauge use wxGauge class"
199ac_help="$ac_help
200--enable-grid use wxGrid class"
201ac_help="$ac_help
202--enable-newgrid use new wxGrid class"
203ac_help="$ac_help
204--enable-imaglist use wxImageList class"
205ac_help="$ac_help
206--enable-listbox use wxListBox class"
207ac_help="$ac_help
208--enable-listctrl use wxListCtrl class"
209ac_help="$ac_help
210--enable-notebook use wxNotebook class"
211ac_help="$ac_help
212--enable-radiobox use wxRadioBox class"
213ac_help="$ac_help
214--enable-radiobtn use wxRadioButton class"
215ac_help="$ac_help
216--enable-sash use wxSashWindow class"
217ac_help="$ac_help
218--enable-scrollbar use wxScrollBar class and scrollable windows"
219ac_help="$ac_help
220--enable-slider use wxSlider class"
221ac_help="$ac_help
222--enable-spinbtn use wxSpinButton class"
223ac_help="$ac_help
56cfaa52
RR
224--enable-spinctrl use wxSpinCtrl class"
225ac_help="$ac_help
10f2d63a
VZ
226--enable-splitter use wxSplitterWindow class"
227ac_help="$ac_help
228--enable-statbmp use wxStaticBitmap class"
229ac_help="$ac_help
230--enable-statbox use wxStaticBox class"
231ac_help="$ac_help
232--enable-statline use wxStaticLine class"
233ac_help="$ac_help
234--enable-statusbar use wxStatusBar class"
235ac_help="$ac_help
236--enable-tabdialog use wxTabControl class"
237ac_help="$ac_help
238--enable-toolbar use wxToolBar class"
239ac_help="$ac_help
360d6699
VZ
240--enable-tbarnative use native wxToolBar class"
241ac_help="$ac_help
242--enable-tbarsmpl use wxToolBarSimple class"
243ac_help="$ac_help
10f2d63a
VZ
244--enable-treectrl use wxTreeCtrl class"
245ac_help="$ac_help
246--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
247ac_help="$ac_help
248--enable-dirdlg use wxDirDialog"
249ac_help="$ac_help
250--enable-textdlg use wxTextDialog"
251ac_help="$ac_help
252--enable-tipdlg use startup tips"
253ac_help="$ac_help
254--enable-progressdlg use wxProgressDialog"
255ac_help="$ac_help
256--enable-miniframe use wxMiniFrame class"
257ac_help="$ac_help
258--enable-html use wxHTML sub-library"
259ac_help="$ac_help
260--enable-tooltips use wxToolTip class"
261ac_help="$ac_help
262--enable-splines use spline drawing code"
263ac_help="$ac_help
264--enable-validators use wxValidator and derived classes"
265ac_help="$ac_help
266--enable-busyinfo use wxBusyInfo"
267ac_help="$ac_help
268--enable-gif use gif images (GIF file format)"
269ac_help="$ac_help
270--enable-pcx use pcx images (PCX file format)"
271ac_help="$ac_help
272--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
273ac_help="$ac_help
274 --with-x use the X Window System"
10f2d63a
VZ
275
276# Initialize some variables set by options.
277# The variables have the same names as the options, with
278# dashes changed to underlines.
279build=NONE
280cache_file=./config.cache
281exec_prefix=NONE
282host=NONE
283no_create=
284nonopt=NONE
285no_recursion=
286prefix=NONE
287program_prefix=NONE
288program_suffix=NONE
289program_transform_name=s,x,x,
290silent=
291site=
292srcdir=
293target=NONE
294verbose=
295x_includes=NONE
296x_libraries=NONE
297bindir='${exec_prefix}/bin'
298sbindir='${exec_prefix}/sbin'
299libexecdir='${exec_prefix}/libexec'
300datadir='${prefix}/share'
301sysconfdir='${prefix}/etc'
302sharedstatedir='${prefix}/com'
303localstatedir='${prefix}/var'
304libdir='${exec_prefix}/lib'
305includedir='${prefix}/include'
306oldincludedir='/usr/include'
307infodir='${prefix}/info'
308mandir='${prefix}/man'
309
310# Initialize some other variables.
311subdirs=
312MFLAGS= MAKEFLAGS=
313SHELL=${CONFIG_SHELL-/bin/sh}
314# Maximum number of lines to put in a shell here document.
315ac_max_here_lines=12
316
317ac_prev=
318for ac_option
319do
320
321 # If the previous option needs an argument, assign it.
322 if test -n "$ac_prev"; then
323 eval "$ac_prev=\$ac_option"
324 ac_prev=
325 continue
326 fi
327
328 case "$ac_option" in
329 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
330 *) ac_optarg= ;;
331 esac
332
333 # Accept the important Cygnus configure options, so we can diagnose typos.
334
335 case "$ac_option" in
336
337 -bindir | --bindir | --bindi | --bind | --bin | --bi)
338 ac_prev=bindir ;;
339 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
340 bindir="$ac_optarg" ;;
341
342 -build | --build | --buil | --bui | --bu)
343 ac_prev=build ;;
344 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
345 build="$ac_optarg" ;;
346
347 -cache-file | --cache-file | --cache-fil | --cache-fi \
348 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
349 ac_prev=cache_file ;;
350 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
351 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
352 cache_file="$ac_optarg" ;;
353
354 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
355 ac_prev=datadir ;;
356 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
357 | --da=*)
358 datadir="$ac_optarg" ;;
359
360 -disable-* | --disable-*)
361 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
364 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
365 fi
366 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
367 eval "enable_${ac_feature}=no" ;;
368
369 -enable-* | --enable-*)
370 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
374 fi
375 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
376 case "$ac_option" in
377 *=*) ;;
378 *) ac_optarg=yes ;;
379 esac
380 eval "enable_${ac_feature}='$ac_optarg'" ;;
381
382 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
383 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
384 | --exec | --exe | --ex)
385 ac_prev=exec_prefix ;;
386 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
387 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
388 | --exec=* | --exe=* | --ex=*)
389 exec_prefix="$ac_optarg" ;;
390
391 -gas | --gas | --ga | --g)
392 # Obsolete; use --with-gas.
393 with_gas=yes ;;
394
395 -help | --help | --hel | --he)
396 # Omit some internal or obsolete options to make the list less imposing.
397 # This message is too long to be a string in the A/UX 3.1 sh.
398 cat << EOF
399Usage: configure [options] [host]
400Options: [defaults in brackets after descriptions]
401Configuration:
402 --cache-file=FILE cache test results in FILE
403 --help print this message
404 --no-create do not create output files
405 --quiet, --silent do not print \`checking...' messages
406 --version print the version of autoconf that created configure
407Directory and file names:
408 --prefix=PREFIX install architecture-independent files in PREFIX
409 [$ac_default_prefix]
410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
411 [same as prefix]
412 --bindir=DIR user executables in DIR [EPREFIX/bin]
413 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
414 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
415 --datadir=DIR read-only architecture-independent data in DIR
416 [PREFIX/share]
417 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
418 --sharedstatedir=DIR modifiable architecture-independent data in DIR
419 [PREFIX/com]
420 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
421 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
422 --includedir=DIR C header files in DIR [PREFIX/include]
423 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
424 --infodir=DIR info documentation in DIR [PREFIX/info]
425 --mandir=DIR man documentation in DIR [PREFIX/man]
426 --srcdir=DIR find the sources in DIR [configure dir or ..]
427 --program-prefix=PREFIX prepend PREFIX to installed program names
428 --program-suffix=SUFFIX append SUFFIX to installed program names
429 --program-transform-name=PROGRAM
430 run sed PROGRAM on installed program names
431EOF
432 cat << EOF
433Host type:
434 --build=BUILD configure for building on BUILD [BUILD=HOST]
435 --host=HOST configure for HOST [guessed]
436 --target=TARGET configure for TARGET [TARGET=HOST]
437Features and packages:
438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
442 --x-includes=DIR X include files are in DIR
443 --x-libraries=DIR X library files are in DIR
444EOF
445 if test -n "$ac_help"; then
446 echo "--enable and --with options recognized:$ac_help"
447 fi
448 exit 0 ;;
449
450 -host | --host | --hos | --ho)
451 ac_prev=host ;;
452 -host=* | --host=* | --hos=* | --ho=*)
453 host="$ac_optarg" ;;
454
455 -includedir | --includedir | --includedi | --included | --include \
456 | --includ | --inclu | --incl | --inc)
457 ac_prev=includedir ;;
458 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
459 | --includ=* | --inclu=* | --incl=* | --inc=*)
460 includedir="$ac_optarg" ;;
461
462 -infodir | --infodir | --infodi | --infod | --info | --inf)
463 ac_prev=infodir ;;
464 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
465 infodir="$ac_optarg" ;;
466
467 -libdir | --libdir | --libdi | --libd)
468 ac_prev=libdir ;;
469 -libdir=* | --libdir=* | --libdi=* | --libd=*)
470 libdir="$ac_optarg" ;;
471
472 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
473 | --libexe | --libex | --libe)
474 ac_prev=libexecdir ;;
475 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
476 | --libexe=* | --libex=* | --libe=*)
477 libexecdir="$ac_optarg" ;;
478
479 -localstatedir | --localstatedir | --localstatedi | --localstated \
480 | --localstate | --localstat | --localsta | --localst \
481 | --locals | --local | --loca | --loc | --lo)
482 ac_prev=localstatedir ;;
483 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
484 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
485 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
486 localstatedir="$ac_optarg" ;;
487
488 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
489 ac_prev=mandir ;;
490 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
491 mandir="$ac_optarg" ;;
492
493 -nfp | --nfp | --nf)
494 # Obsolete; use --without-fp.
495 with_fp=no ;;
496
497 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
498 | --no-cr | --no-c)
499 no_create=yes ;;
500
501 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
502 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
503 no_recursion=yes ;;
504
505 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
506 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
507 | --oldin | --oldi | --old | --ol | --o)
508 ac_prev=oldincludedir ;;
509 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
510 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
511 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
512 oldincludedir="$ac_optarg" ;;
513
514 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
515 ac_prev=prefix ;;
516 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
517 prefix="$ac_optarg" ;;
518
519 -program-prefix | --program-prefix | --program-prefi | --program-pref \
520 | --program-pre | --program-pr | --program-p)
521 ac_prev=program_prefix ;;
522 -program-prefix=* | --program-prefix=* | --program-prefi=* \
523 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
524 program_prefix="$ac_optarg" ;;
525
526 -program-suffix | --program-suffix | --program-suffi | --program-suff \
527 | --program-suf | --program-su | --program-s)
528 ac_prev=program_suffix ;;
529 -program-suffix=* | --program-suffix=* | --program-suffi=* \
530 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
531 program_suffix="$ac_optarg" ;;
532
533 -program-transform-name | --program-transform-name \
534 | --program-transform-nam | --program-transform-na \
535 | --program-transform-n | --program-transform- \
536 | --program-transform | --program-transfor \
537 | --program-transfo | --program-transf \
538 | --program-trans | --program-tran \
539 | --progr-tra | --program-tr | --program-t)
540 ac_prev=program_transform_name ;;
541 -program-transform-name=* | --program-transform-name=* \
542 | --program-transform-nam=* | --program-transform-na=* \
543 | --program-transform-n=* | --program-transform-=* \
544 | --program-transform=* | --program-transfor=* \
545 | --program-transfo=* | --program-transf=* \
546 | --program-trans=* | --program-tran=* \
547 | --progr-tra=* | --program-tr=* | --program-t=*)
548 program_transform_name="$ac_optarg" ;;
549
550 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
551 | -silent | --silent | --silen | --sile | --sil)
552 silent=yes ;;
553
554 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
555 ac_prev=sbindir ;;
556 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
557 | --sbi=* | --sb=*)
558 sbindir="$ac_optarg" ;;
559
560 -sharedstatedir | --sharedstatedir | --sharedstatedi \
561 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
562 | --sharedst | --shareds | --shared | --share | --shar \
563 | --sha | --sh)
564 ac_prev=sharedstatedir ;;
565 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
566 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
567 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
568 | --sha=* | --sh=*)
569 sharedstatedir="$ac_optarg" ;;
570
571 -site | --site | --sit)
572 ac_prev=site ;;
573 -site=* | --site=* | --sit=*)
574 site="$ac_optarg" ;;
575
576 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
577 ac_prev=srcdir ;;
578 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
579 srcdir="$ac_optarg" ;;
580
581 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
582 | --syscon | --sysco | --sysc | --sys | --sy)
583 ac_prev=sysconfdir ;;
584 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
585 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
586 sysconfdir="$ac_optarg" ;;
587
588 -target | --target | --targe | --targ | --tar | --ta | --t)
589 ac_prev=target ;;
590 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
591 target="$ac_optarg" ;;
592
593 -v | -verbose | --verbose | --verbos | --verbo | --verb)
594 verbose=yes ;;
595
596 -version | --version | --versio | --versi | --vers)
e694c22c 597 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
598 exit 0 ;;
599
600 -with-* | --with-*)
601 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
602 # Reject names that are not valid shell variable names.
603 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
604 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
605 fi
606 ac_package=`echo $ac_package| sed 's/-/_/g'`
607 case "$ac_option" in
608 *=*) ;;
609 *) ac_optarg=yes ;;
610 esac
611 eval "with_${ac_package}='$ac_optarg'" ;;
612
613 -without-* | --without-*)
614 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
615 # Reject names that are not valid shell variable names.
616 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
617 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
618 fi
619 ac_package=`echo $ac_package| sed 's/-/_/g'`
620 eval "with_${ac_package}=no" ;;
621
622 --x)
623 # Obsolete; use --with-x.
624 with_x=yes ;;
625
626 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
627 | --x-incl | --x-inc | --x-in | --x-i)
628 ac_prev=x_includes ;;
629 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
630 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
631 x_includes="$ac_optarg" ;;
632
633 -x-libraries | --x-libraries | --x-librarie | --x-librari \
634 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
635 ac_prev=x_libraries ;;
636 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
637 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
638 x_libraries="$ac_optarg" ;;
639
640 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
641 ;;
642
643 *)
644 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
645 echo "configure: warning: $ac_option: invalid host type" 1>&2
646 fi
647 if test "x$nonopt" != xNONE; then
648 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
649 fi
650 nonopt="$ac_option"
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
658fi
659
660trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
661
662# File descriptor usage:
663# 0 standard input
664# 1 file creation
665# 2 errors and warnings
666# 3 some systems may open it to /dev/tty
667# 4 used on the Kubota Titan
668# 6 checking for... messages and results
669# 5 compiler messages saved in config.log
670if test "$silent" = yes; then
671 exec 6>/dev/null
672else
673 exec 6>&1
674fi
675exec 5>./config.log
676
677echo "\
678This file contains any messages produced by compilers while
679running configure, to aid debugging if configure makes a mistake.
680" 1>&5
681
682# Strip out --no-create and --no-recursion so they do not pile up.
683# Also quote any args containing shell metacharacters.
684ac_configure_args=
685for ac_arg
686do
687 case "$ac_arg" in
688 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
689 | --no-cr | --no-c) ;;
690 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
691 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
692 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
693 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
694 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
695 esac
696done
697
698# NLS nuisances.
699# Only set these to C if already set. These must not be set unconditionally
700# because not all systems understand e.g. LANG=C (notably SCO).
701# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
702# Non-C LC_CTYPE values break the ctype check.
703if test "${LANG+set}" = set; then LANG=C; export LANG; fi
704if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
705if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
706if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
707
708# confdefs.h avoids OS command line length limits that DEFS can exceed.
709rm -rf conftest* confdefs.h
710# AIX cpp loses on an empty file, so make sure it contains at least a newline.
711echo > confdefs.h
712
713# A filename unique to this package, relative to the directory that
714# configure is in, which we can look for to find out if srcdir is correct.
715ac_unique_file=wx-config.in
716
717# Find the source files, if location was not specified.
718if test -z "$srcdir"; then
719 ac_srcdir_defaulted=yes
720 # Try the directory containing this script, then its parent.
721 ac_prog=$0
722 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
723 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
734 else
735 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
736 fi
737fi
738srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
739
740# Prefer explicitly selected file to automatically selected ones.
741if test -z "$CONFIG_SITE"; then
742 if test "x$prefix" != xNONE; then
743 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
744 else
745 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
746 fi
747fi
748for ac_site_file in $CONFIG_SITE; do
749 if test -r "$ac_site_file"; then
750 echo "loading site script $ac_site_file"
751 . "$ac_site_file"
752 fi
753done
754
755if test -r "$cache_file"; then
756 echo "loading cache $cache_file"
757 . $cache_file
758else
759 echo "creating cache $cache_file"
760 > $cache_file
761fi
762
763ac_ext=c
764# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
765ac_cpp='$CPP $CPPFLAGS'
766ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
767ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
768cross_compiling=$ac_cv_prog_cc_cross
769
770ac_exeext=
771ac_objext=o
772if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
773 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
774 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
775 ac_n= ac_c='
776' ac_t=' '
777 else
778 ac_n=-n ac_c= ac_t=
779 fi
780else
781 ac_n= ac_c='\c' ac_t=
782fi
783
784
785
786ac_aux_dir=
787for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
788 if test -f $ac_dir/install-sh; then
789 ac_aux_dir=$ac_dir
790 ac_install_sh="$ac_aux_dir/install-sh -c"
791 break
792 elif test -f $ac_dir/install.sh; then
793 ac_aux_dir=$ac_dir
794 ac_install_sh="$ac_aux_dir/install.sh -c"
795 break
796 fi
797done
798if test -z "$ac_aux_dir"; then
799 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
800fi
801ac_config_guess=$ac_aux_dir/config.guess
802ac_config_sub=$ac_aux_dir/config.sub
803ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
804
805
806# Do some error checking and defaulting for the host and target type.
807# The inputs are:
808# configure --host=HOST --target=TARGET --build=BUILD NONOPT
809#
810# The rules are:
811# 1. You are not allowed to specify --host, --target, and nonopt at the
812# same time.
813# 2. Host defaults to nonopt.
814# 3. If nonopt is not specified, then host defaults to the current host,
815# as determined by config.guess.
816# 4. Target and build default to nonopt.
817# 5. If nonopt is not specified, then target and build default to host.
818
819# The aliases save the names the user supplied, while $host etc.
820# will get canonicalized.
821case $host---$target---$nonopt in
822NONE---*---* | *---NONE---* | *---*---NONE) ;;
823*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
824esac
825
826
827# Make sure we can run config.sub.
828if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
829else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
830fi
831
832echo $ac_n "checking host system type""... $ac_c" 1>&6
360d6699 833echo "configure:834: checking host system type" >&5
10f2d63a
VZ
834
835host_alias=$host
836case "$host_alias" in
837NONE)
838 case $nonopt in
839 NONE)
840 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
841 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
842 fi ;;
843 *) host_alias=$nonopt ;;
844 esac ;;
845esac
846
847host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
848host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
849host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
850host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
851echo "$ac_t""$host" 1>&6
852
853echo $ac_n "checking target system type""... $ac_c" 1>&6
360d6699 854echo "configure:855: checking target system type" >&5
10f2d63a
VZ
855
856target_alias=$target
857case "$target_alias" in
858NONE)
859 case $nonopt in
860 NONE) target_alias=$host_alias ;;
861 *) target_alias=$nonopt ;;
862 esac ;;
863esac
864
865target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
866target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
867target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
868target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
869echo "$ac_t""$target" 1>&6
870
871echo $ac_n "checking build system type""... $ac_c" 1>&6
360d6699 872echo "configure:873: checking build system type" >&5
10f2d63a
VZ
873
874build_alias=$build
875case "$build_alias" in
876NONE)
877 case $nonopt in
878 NONE) build_alias=$host_alias ;;
879 *) build_alias=$nonopt ;;
880 esac ;;
881esac
882
883build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
884build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
885build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
886build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
887echo "$ac_t""$build" 1>&6
888
889test "$host_alias" != "$target_alias" &&
890 test "$program_prefix$program_suffix$program_transform_name" = \
891 NONENONEs,x,x, &&
892 program_prefix=${target_alias}-
893
894
895
896WX_MAJOR_VERSION_NUMBER=2
897WX_MINOR_VERSION_NUMBER=1
ba0e7d41 898WX_RELEASE_NUMBER=12
10f2d63a
VZ
899
900WX_INTERFACE_AGE=0
901WX_BINARY_AGE=0
902
903WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
904
905WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
906WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
907WX_REVISION=$WX_INTERFACE_AGE
908WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
909
910
911USE_UNIX=1
912USE_WIN32=0
913USE_LINUX=
914USE_SGI=
915USE_HPUX=
916USE_SYSV=
917USE_SVR4=
918USE_AIX=
919USE_SUN=
920USE_SOLARIS=
921USE_SUNOS=
922USE_ALPHA=
923USE_OSF=
924USE_BSD=
925USE_FREEBSD=
926USE_VMS=
927USE_ULTRIX=
928USE_CYGWIN=
929USE_MINGW=
930USE_DATA_GENERAL=
931
ab9b9eab
VZ
932NEEDS_D_REENTRANT_FOR_R_FUNCS=0
933
10f2d63a
VZ
934ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE"
935
936DEFAULT_wxUSE_GTK=0
937DEFAULT_wxUSE_MOTIF=0
938DEFAULT_wxUSE_MSW=0
939DEFAULT_wxUSE_WINE=0
940
941DEFAULT_DEFAULT_wxUSE_GTK=0
942DEFAULT_DEFAULT_wxUSE_MOTIF=0
943DEFAULT_DEFAULT_wxUSE_MSW=0
944DEFAULT_DEFAULT_wxUSE_WINE=0
945
946case "${host}" in
947 *-hp-hpux* )
948 USE_HPUX=1
949 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 950 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
951 cat >> confdefs.h <<\EOF
952#define __HPUX__ 1
953EOF
954
955 ;;
956 *-*-linux* )
957 USE_LINUX=1
958 cat >> confdefs.h <<\EOF
959#define __LINUX__ 1
960EOF
961
962 TMP=`uname -m`
963 if test "x$TMP" = "xalpha"; then
964 USE_ALPHA=1
965 cat >> confdefs.h <<\EOF
966#define __ALPHA__ 1
967EOF
968
969 fi
970 DEFAULT_DEFAULT_wxUSE_GTK=1
971 ;;
972 *-*-irix5* | *-*-irix6* )
973 USE_SGI=1
974 USE_SVR4=1
975 cat >> confdefs.h <<\EOF
976#define __SGI__ 1
977EOF
978
979 cat >> confdefs.h <<\EOF
980#define __SVR4__ 1
981EOF
982
983 DEFAULT_DEFAULT_wxUSE_MOTIF=1
984 ;;
985 *-*-solaris2* )
986 USE_SUN=1
987 USE_SOLARIS=1
988 USE_SVR4=1
989 cat >> confdefs.h <<\EOF
990#define __SUN__ 1
991EOF
992
993 cat >> confdefs.h <<\EOF
994#define __SOLARIS__ 1
995EOF
996
997 cat >> confdefs.h <<\EOF
998#define __SVR4__ 1
999EOF
1000
1001 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1002 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1003 ;;
1004 *-*-sunos4* )
1005 USE_SUN=1
1006 USE_SUNOS=1
1007 USE_BSD=1
1008 cat >> confdefs.h <<\EOF
1009#define __SUN__ 1
1010EOF
1011
1012 cat >> confdefs.h <<\EOF
1013#define __SUNOS__ 1
1014EOF
1015
1016 cat >> confdefs.h <<\EOF
1017#define __BSD__ 1
1018EOF
1019
1020 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1021 ;;
1022 *-*-freebsd* | *-*-netbsd*)
1023 USE_BSD=1
1024 USE_FREEBSD=1
1025 cat >> confdefs.h <<\EOF
1026#define __FREEBSD__ 1
1027EOF
1028
1029 cat >> confdefs.h <<\EOF
1030#define __BSD__ 1
1031EOF
1032
1033 DEFAULT_DEFAULT_wxUSE_GTK=1
1034 ;;
1035 *-*-osf* )
1036 USE_ALPHA=1
1037 USE_OSF=1
1038 cat >> confdefs.h <<\EOF
1039#define __ALPHA__ 1
1040EOF
1041
1042 cat >> confdefs.h <<\EOF
1043#define __OSF__ 1
1044EOF
1045
1046 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1047 ;;
1048 *-*-dgux5* )
1049 USE_ALPHA=1
1050 USE_SVR4=1
1051 cat >> confdefs.h <<\EOF
1052#define __ALPHA__ 1
1053EOF
1054
1055 cat >> confdefs.h <<\EOF
1056#define __SVR4__ 1
1057EOF
1058
1059 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1060 ;;
1061 *-*-sysv5* )
1062 USE_SYSV=1
1063 USE_SVR4=1
1064 cat >> confdefs.h <<\EOF
1065#define __SYSV__ 1
1066EOF
1067
1068 cat >> confdefs.h <<\EOF
1069#define __SVR4__ 1
1070EOF
1071
1072 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1073 ;;
1074 *-*-aix* )
1075 USE_AIX=1
1076 USE_SYSV=1
1077 USE_SVR4=1
1078 cat >> confdefs.h <<\EOF
1079#define __AIX__ 1
1080EOF
1081
1082 cat >> confdefs.h <<\EOF
1083#define __SYSV__ 1
1084EOF
1085
1086 cat >> confdefs.h <<\EOF
1087#define __SVR4__ 1
1088EOF
1089
1090 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1091 ;;
1092
7eef8db2 1093 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1094 USE_UNIX=0
1095 USE_WIN32=1
1096 cat >> confdefs.h <<\EOF
1097#define __WIN32__ 1
1098EOF
1099
1100 cat >> confdefs.h <<\EOF
1101#define __WIN95__ 1
1102EOF
1103
1104 cat >> confdefs.h <<\EOF
1105#define __WINDOWS__ 1
1106EOF
1107
1108 cat >> confdefs.h <<\EOF
1109#define __GNUWIN32__ 1
1110EOF
1111
1112 cat >> confdefs.h <<\EOF
1113#define STRICT 1
1114EOF
1115
1116 cat >> confdefs.h <<\EOF
1117#define WINVER 0x0400
1118EOF
1119
1120 DEFAULT_DEFAULT_wxUSE_MSW=1
1121 ;;
1122
1123 *-pc-os2_emx )
1124 cat >> confdefs.h <<\EOF
1125#define __EMX__ 1
1126EOF
1127
1128 ;;
1129
1130 *)
1131 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1132esac
1133
1134if test "$USE_UNIX" = 1 ; then
1135 wxUSE_UNIX=yes
1136 cat >> confdefs.h <<\EOF
1137#define __UNIX__ 1
1138EOF
1139
1140 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1141 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1142fi
1143
1144if test "$USE_LINUX" = 1; then
1145 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
360d6699 1146echo "configure:1147: checking for gettext in -lc" >&5
10f2d63a
VZ
1147ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1148if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1150else
1151 ac_save_LIBS="$LIBS"
1152LIBS="-lc $LIBS"
1153cat > conftest.$ac_ext <<EOF
360d6699 1154#line 1155 "configure"
10f2d63a
VZ
1155#include "confdefs.h"
1156/* Override any gcc2 internal prototype to avoid an error. */
1157/* We use char because int might match the return type of a gcc2
1158 builtin and then its argument prototype would still apply. */
1159char gettext();
1160
1161int main() {
1162gettext()
1163; return 0; }
1164EOF
360d6699 1165if { (eval echo configure:1166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1166 rm -rf conftest*
1167 eval "ac_cv_lib_$ac_lib_var=yes"
1168else
1169 echo "configure: failed program was:" >&5
1170 cat conftest.$ac_ext >&5
1171 rm -rf conftest*
1172 eval "ac_cv_lib_$ac_lib_var=no"
1173fi
1174rm -f conftest*
1175LIBS="$ac_save_LIBS"
1176
1177fi
1178if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1179 echo "$ac_t""yes" 1>&6
1180 cat >> confdefs.h <<\EOF
1181#define wxHAVE_GLIBC2 1
1182EOF
1183
1184else
1185 echo "$ac_t""no" 1>&6
1186fi
1187
1188fi
1189
1190
1191
1192
1193 wx_arg_cache_file="configarg.cache"
1194 echo "loading argument cache $wx_arg_cache_file"
1195 rm -f ${wx_arg_cache_file}.tmp
1196 touch ${wx_arg_cache_file}.tmp
1197 touch ${wx_arg_cache_file}
1198
1199
1200DEBUG_CONFIGURE=0
1201if test $DEBUG_CONFIGURE = 1; then
1202 DEFAULT_wxUSE_THREADS=yes
1203
1204 DEFAULT_wxUSE_SHARED=yes
1205 DEFAULT_wxUSE_OPTIMISE=yes
1206 DEFAULT_wxUSE_PROFILE=no
1207 DEFAULT_wxUSE_NO_DEPS=no
1208 DEFAULT_wxUSE_NO_RTTI=no
1209 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1210 DEFAULT_wxUSE_PERMISSIVE=no
1211 DEFAULT_wxUSE_DEBUG_FLAG=yes
1212 DEFAULT_wxUSE_DEBUG_INFO=yes
1213 DEFAULT_wxUSE_DEBUG_GDB=yes
1214 DEFAULT_wxUSE_MEM_TRACING=no
1215 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1216 DEFAULT_wxUSE_DMALLOC=no
1217 DEFAULT_wxUSE_APPLE_IEEE=no
1218
1219 DEFAULT_wxUSE_LOG=yes
1220
1221 DEFAULT_wxUSE_GUI=yes
1222
1223 DEFAULT_wxUSE_ZLIB=no
1224 DEFAULT_wxUSE_LIBPNG=no
1225 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1226 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a
VZ
1227 DEFAULT_wxUSE_ODBC=no
1228
1229 DEFAULT_wxUSE_STD_IOSTREAM=no
1230 DEFAULT_wxUSE_FILE=no
1231 DEFAULT_wxUSE_TEXTFILE=no
1232 DEFAULT_wxUSE_TIMEDATE=no
1233 DEFAULT_wxUSE_WAVE=no
1234 DEFAULT_wxUSE_INTL=no
1235 DEFAULT_wxUSE_CONFIG=no
1236 DEFAULT_wxUSE_STREAMS=no
1237 DEFAULT_wxUSE_SOCKETS=no
1238 DEFAULT_wxUSE_DIALUP_MANAGER=no
1239 DEFAULT_wxUSE_SERIAL=no
1240 DEFAULT_wxUSE_JOYSTICK=no
1241 DEFAULT_wxUSE_DYNLIB_CLASS=no
1242 DEFAULT_wxUSE_LONGLONG=no
1243
1244 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1245 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1246 DEFAULT_wxUSE_POSTSCRIPT=no
1247
1248 DEFAULT_wxUSE_X_RESOURCES=no
1249 DEFAULT_wxUSE_CLIPBOARD=no
1250 DEFAULT_wxUSE_TOOLTIPS=no
1251 DEFAULT_wxUSE_DRAG_AND_DROP=no
1252 DEFAULT_wxUSE_SPLINES=no
1253
1254 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1255 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1256 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1257
1258 DEFAULT_wxUSE_PROLOGIO=no
1259 DEFAULT_wxUSE_RESOURCES=no
1260 DEFAULT_wxUSE_CONSTRAINTS=no
1261 DEFAULT_wxUSE_IPC=no
1262 DEFAULT_wxUSE_HELP=no
1263 DEFAULT_wxUSE_WXTREE=no
1264 DEFAULT_wxUSE_METAFILE=no
1265
1266 DEFAULT_wxUSE_COMMONDLGS=no
1267 DEFAULT_wxUSE_DIRDLG=no
1268 DEFAULT_wxUSE_TEXTDLG=no
1269 DEFAULT_wxUSE_STARTUP_TIPS=no
1270 DEFAULT_wxUSE_PROGRESSDLG=no
1271 DEFAULT_wxUSE_MINIFRAME=no
1272 DEFAULT_wxUSE_HTML=no
1273 DEFAULT_wxUSE_FS_INET=no
1274 DEFAULT_wxUSE_FS_ZIP=no
1275 DEFAULT_wxUSE_BUSYINFO=no
1276 DEFAULT_wxUSE_ZIPSTREAM=no
1277 DEFAULT_wxUSE_VALIDATORS=yes
1278
1279 DEFAULT_wxUSE_ACCEL=no
1280 DEFAULT_wxUSE_CARET=no
1281 DEFAULT_wxUSE_BMPBUTTON=no
1282 DEFAULT_wxUSE_CHECKBOX=no
1283 DEFAULT_wxUSE_CHECKLST=no
1284 DEFAULT_wxUSE_CHOICE=yes
1285 DEFAULT_wxUSE_COMBOBOX=no
1286 DEFAULT_wxUSE_GAUGE=no
1287 DEFAULT_wxUSE_GRID=no
1288 DEFAULT_wxUSE_NEW_GRID=no
1289 DEFAULT_wxUSE_IMAGLIST=no
1290 DEFAULT_wxUSE_LISTBOX=no
1291 DEFAULT_wxUSE_LISTCTRL=no
1292 DEFAULT_wxUSE_NOTEBOOK=no
1293 DEFAULT_wxUSE_RADIOBOX=no
1294 DEFAULT_wxUSE_RADIOBTN=no
1295 DEFAULT_wxUSE_SASH=no
1296 DEFAULT_wxUSE_SCROLLBAR=no
1297 DEFAULT_wxUSE_SLIDER=no
1298 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1299 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1300 DEFAULT_wxUSE_SPLITTER=no
1301 DEFAULT_wxUSE_STATBMP=no
1302 DEFAULT_wxUSE_STATBOX=no
1303 DEFAULT_wxUSE_STATLINE=no
1304 DEFAULT_wxUSE_STATUSBAR=yes
1305 DEFAULT_wxUSE_TABDIALOG=no
1306 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1307 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1308 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1309 DEFAULT_wxUSE_TREECTRL=no
1310
1311 DEFAULT_wxUSE_UNICODE=no
1312 DEFAULT_wxUSE_WCSRTOMBS=no
1313
1314 DEFAULT_wxUSE_GIF=no
1315 DEFAULT_wxUSE_PCX=no
1316 DEFAULT_wxUSE_PNM=no
1317else
1318 DEFAULT_wxUSE_THREADS=yes
1319
1320 DEFAULT_wxUSE_SHARED=yes
1321 DEFAULT_wxUSE_OPTIMISE=yes
1322 DEFAULT_wxUSE_PROFILE=no
1323 DEFAULT_wxUSE_NO_DEPS=no
1324 DEFAULT_wxUSE_NO_RTTI=no
1325 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1326 DEFAULT_wxUSE_PERMISSIVE=no
1327 DEFAULT_wxUSE_DEBUG_FLAG=no
1328 DEFAULT_wxUSE_DEBUG_INFO=no
1329 DEFAULT_wxUSE_DEBUG_GDB=no
1330 DEFAULT_wxUSE_MEM_TRACING=no
1331 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1332 DEFAULT_wxUSE_DMALLOC=no
1333 DEFAULT_wxUSE_APPLE_IEEE=yes
1334
1335 DEFAULT_wxUSE_LOG=yes
1336
1337 DEFAULT_wxUSE_GUI=yes
1338
1339 DEFAULT_wxUSE_ZLIB=yes
1340 DEFAULT_wxUSE_LIBPNG=yes
1341 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1342 DEFAULT_wxUSE_LIBTIFF=yes
10f2d63a
VZ
1343 DEFAULT_wxUSE_ODBC=yes
1344
1345 DEFAULT_wxUSE_STD_IOSTREAM=no
1346 DEFAULT_wxUSE_FILE=yes
1347 DEFAULT_wxUSE_TEXTFILE=yes
1348 DEFAULT_wxUSE_TIMEDATE=yes
1349 DEFAULT_wxUSE_WAVE=no
1350 DEFAULT_wxUSE_INTL=yes
1351 DEFAULT_wxUSE_CONFIG=yes
1352 DEFAULT_wxUSE_STREAMS=yes
1353 DEFAULT_wxUSE_SOCKETS=yes
1354 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1355 DEFAULT_wxUSE_SERIAL=yes
1356 DEFAULT_wxUSE_JOYSTICK=yes
1357 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1358 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1359
1360 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1361 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1362 DEFAULT_wxUSE_POSTSCRIPT=yes
1363
1364 DEFAULT_wxUSE_X_RESOURCES=no
1365 DEFAULT_wxUSE_CLIPBOARD=yes
1366 DEFAULT_wxUSE_TOOLTIPS=yes
1367 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1368 DEFAULT_wxUSE_SPLINES=yes
1369
1370 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1371 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1372 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1373
1374 DEFAULT_wxUSE_PROLOGIO=yes
1375 DEFAULT_wxUSE_RESOURCES=yes
1376 DEFAULT_wxUSE_CONSTRAINTS=yes
1377 DEFAULT_wxUSE_IPC=yes
1378 DEFAULT_wxUSE_HELP=yes
1379 DEFAULT_wxUSE_WXTREE=yes
1380 DEFAULT_wxUSE_METAFILE=yes
1381
1382 DEFAULT_wxUSE_COMMONDLGS=yes
1383 DEFAULT_wxUSE_DIRDLG=yes
1384 DEFAULT_wxUSE_TEXTDLG=yes
1385 DEFAULT_wxUSE_STARTUP_TIPS=yes
1386 DEFAULT_wxUSE_PROGRESSDLG=yes
1387 DEFAULT_wxUSE_MINIFRAME=yes
1388 DEFAULT_wxUSE_HTML=yes
1389 DEFAULT_wxUSE_FS_INET=yes
1390 DEFAULT_wxUSE_FS_ZIP=yes
1391 DEFAULT_wxUSE_BUSYINFO=yes
1392 DEFAULT_wxUSE_ZIPSTREAM=yes
1393 DEFAULT_wxUSE_VALIDATORS=yes
1394
1395 DEFAULT_wxUSE_ACCEL=yes
1396 DEFAULT_wxUSE_CARET=yes
1397 DEFAULT_wxUSE_BMPBUTTON=yes
1398 DEFAULT_wxUSE_CHECKBOX=yes
1399 DEFAULT_wxUSE_CHECKLST=yes
1400 DEFAULT_wxUSE_CHOICE=yes
1401 DEFAULT_wxUSE_COMBOBOX=yes
1402 DEFAULT_wxUSE_GAUGE=yes
1403 DEFAULT_wxUSE_GRID=yes
fc9c7c09 1404 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
1405 DEFAULT_wxUSE_IMAGLIST=yes
1406 DEFAULT_wxUSE_LISTBOX=yes
1407 DEFAULT_wxUSE_LISTCTRL=yes
1408 DEFAULT_wxUSE_NOTEBOOK=yes
1409 DEFAULT_wxUSE_RADIOBOX=yes
1410 DEFAULT_wxUSE_RADIOBTN=yes
1411 DEFAULT_wxUSE_SASH=yes
1412 DEFAULT_wxUSE_SCROLLBAR=yes
1413 DEFAULT_wxUSE_SLIDER=yes
1414 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1415 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1416 DEFAULT_wxUSE_SPLITTER=yes
1417 DEFAULT_wxUSE_STATBMP=yes
1418 DEFAULT_wxUSE_STATBOX=yes
1419 DEFAULT_wxUSE_STATLINE=yes
1420 DEFAULT_wxUSE_STATUSBAR=yes
1421 DEFAULT_wxUSE_TABDIALOG=no
1422 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1423 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1424 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1425 DEFAULT_wxUSE_TREECTRL=yes
1426
1427 DEFAULT_wxUSE_UNICODE=no
1428 DEFAULT_wxUSE_WCSRTOMBS=no
1429
1430 DEFAULT_wxUSE_GIF=yes
1431 DEFAULT_wxUSE_PCX=yes
1432 DEFAULT_wxUSE_PNM=yes
1433fi
1434
1435
1436
1437for toolkit in `echo $ALL_TOOLKITS`; do
1438 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1439 if test "x$LINE" != x ; then
1440 has_toolkit_in_cache=1
1441 eval "DEFAULT_$LINE"
1442 eval "CACHE_$toolkit=1"
1443 fi
1444done
1445
1446
1447
1448 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
360d6699 1449echo "configure:1450: checking "for --enable-gui"" >&5
10f2d63a
VZ
1450 no_cache=0
1451 # Check whether --enable-gui or --disable-gui was given.
1452if test "${enable_gui+set}" = set; then
1453 enableval="$enable_gui"
1454
1455 if test "$enableval" = yes; then
1456 ac_cv_use_gui='wxUSE_GUI=yes'
1457 else
1458 ac_cv_use_gui='wxUSE_GUI=no'
1459 fi
1460
1461else
1462
1463 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1464 if test "x$LINE" != x ; then
1465 eval "DEFAULT_$LINE"
1466 else
1467 no_cache=1
1468 fi
1469
1470 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1471
1472fi
1473
1474
1475 eval "$ac_cv_use_gui"
1476 if test "$no_cache" != 1; then
1477 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1478 fi
1479
1480 if test "$wxUSE_GUI" = yes; then
1481 echo "$ac_t""yes" 1>&6
1482 else
1483 echo "$ac_t""no" 1>&6
1484 fi
1485
1486
1487if test "$wxUSE_GUI" = "no"; then
1488 DEFAULT_wxUSE_ZLIB=no
1489 DEFAULT_wxUSE_LIBPNG=no
1490 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1491 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a
VZ
1492 DEFAULT_wxUSE_SOCKETS=no
1493 DEFAULT_wxUSE_JOYSTICK=no
1494 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1495 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1496 DEFAULT_wxUSE_POSTSCRIPT=no
1497 DEFAULT_wxUSE_X_RESOURCES=no
1498 DEFAULT_wxUSE_CLIPBOARD=no
1499 DEFAULT_wxUSE_TOOLTIPS=no
1500 DEFAULT_wxUSE_DRAG_AND_DROP=no
1501 DEFAULT_wxUSE_SPLINES=no
1502 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1503 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1504 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1505 DEFAULT_wxUSE_PROLOGIO=no
1506 DEFAULT_wxUSE_RESOURCES=no
1507 DEFAULT_wxUSE_CONSTRAINTS=no
1508 DEFAULT_wxUSE_IPC=no
1509 DEFAULT_wxUSE_HELP=no
1510 DEFAULT_wxUSE_WXTREE=no
1511 DEFAULT_wxUSE_METAFILE=no
1512 DEFAULT_wxUSE_COMMONDLGS=no
1513 DEFAULT_wxUSE_DIRDLG=no
1514 DEFAULT_wxUSE_TEXTDLG=no
1515 DEFAULT_wxUSE_STARTUP_TIPS=no
1516 DEFAULT_wxUSE_PROGRESSDLG=no
1517 DEFAULT_wxUSE_MINIFRAME=no
1518 DEFAULT_wxUSE_HTML=no
1519 DEFAULT_wxUSE_FS_INET=no
1520 DEFAULT_wxUSE_FS_ZIP=no
1521 DEFAULT_wxUSE_BUSYINFO=no
1522 DEFAULT_wxUSE_ZIPSTREAM=no
1523 DEFAULT_wxUSE_VALIDATORS=no
1524 DEFAULT_wxUSE_ACCEL=no
1525 DEFAULT_wxUSE_CARET=no
1526 DEFAULT_wxUSE_BMPBUTTON=no
1527 DEFAULT_wxUSE_CHECKBOX=no
1528 DEFAULT_wxUSE_CHECKLST=no
1529 DEFAULT_wxUSE_CHOICE=no
1530 DEFAULT_wxUSE_COMBOBOX=no
1531 DEFAULT_wxUSE_GAUGE=no
1532 DEFAULT_wxUSE_GRID=no
1533 DEFAULT_wxUSE_NEW_GRID=no
1534 DEFAULT_wxUSE_IMAGLIST=no
1535 DEFAULT_wxUSE_LISTBOX=no
1536 DEFAULT_wxUSE_LISTCTRL=no
1537 DEFAULT_wxUSE_NOTEBOOK=no
1538 DEFAULT_wxUSE_RADIOBOX=no
1539 DEFAULT_wxUSE_RADIOBTN=no
1540 DEFAULT_wxUSE_SASH=no
1541 DEFAULT_wxUSE_SCROLLBAR=no
1542 DEFAULT_wxUSE_SLIDER=no
1543 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1544 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1545 DEFAULT_wxUSE_SPLITTER=no
1546 DEFAULT_wxUSE_STATBMP=no
1547 DEFAULT_wxUSE_STATBOX=no
1548 DEFAULT_wxUSE_STATLINE=no
1549 DEFAULT_wxUSE_STATUSBAR=no
1550 DEFAULT_wxUSE_TABDIALOG=no
1551 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1552 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1553 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1554 DEFAULT_wxUSE_TREECTRL=no
1555 DEFAULT_wxUSE_GIF=no
1556 DEFAULT_wxUSE_PCX=no
1557 DEFAULT_wxUSE_PNM=no
1558fi
1559
1560# Check whether --with-gtk or --without-gtk was given.
1561if test "${with_gtk+set}" = set; then
1562 withval="$with_gtk"
1563 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1564fi
1565
1566# Check whether --with-motif or --without-motif was given.
1567if test "${with_motif+set}" = set; then
1568 withval="$with_motif"
1569 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1570fi
1571
1572# Check whether --with-wine or --without-wine was given.
1573if test "${with_wine+set}" = set; then
1574 withval="$with_wine"
1575 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1576fi
1577
1578# Check whether --with-cygwin or --without-cygwin was given.
1579if test "${with_cygwin+set}" = set; then
1580 withval="$with_cygwin"
1581 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1582fi
1583
1584# Check whether --with-mingw or --without-mingw was given.
1585if test "${with_mingw+set}" = set; then
1586 withval="$with_mingw"
1587 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1588fi
1589
1590
1591# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1592if test "${with_gtk_prefix+set}" = set; then
1593 withval="$with_gtk_prefix"
1594 gtk_config_prefix="$withval"
1595else
1596 gtk_config_prefix=""
1597fi
1598
1599# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1600if test "${with_gtk_exec_prefix+set}" = set; then
1601 withval="$with_gtk_exec_prefix"
1602 gtk_config_exec_prefix="$withval"
1603else
1604 gtk_config_exec_prefix=""
1605fi
1606
1607
1608
1609 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
360d6699 1610echo "configure:1611: checking "for --with-dmalloc"" >&5
10f2d63a
VZ
1611 no_cache=0
1612 # Check whether --with-dmalloc or --without-dmalloc was given.
1613if test "${with_dmalloc+set}" = set; then
1614 withval="$with_dmalloc"
1615
1616 if test "$withval" = yes; then
1617 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1618 else
1619 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1620 fi
1621
1622else
1623
1624 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1625 if test "x$LINE" != x ; then
1626 eval "DEFAULT_$LINE"
1627 else
1628 no_cache=1
1629 fi
1630
1631 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1632
1633fi
1634
1635
1636 eval "$ac_cv_use_dmalloc"
1637 if test "$no_cache" != 1; then
1638 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1639 fi
1640
1641 if test "$wxUSE_DMALLOC" = yes; then
1642 echo "$ac_t""yes" 1>&6
1643 else
1644 echo "$ac_t""no" 1>&6
1645 fi
1646
1647
1648 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
360d6699 1649echo "configure:1650: checking "for --with-zlib"" >&5
10f2d63a
VZ
1650 no_cache=0
1651 # Check whether --with-zlib or --without-zlib was given.
1652if test "${with_zlib+set}" = set; then
1653 withval="$with_zlib"
1654
1655 if test "$withval" = yes; then
1656 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1657 else
1658 ac_cv_use_zlib='wxUSE_ZLIB=no'
1659 fi
1660
1661else
1662
1663 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1664 if test "x$LINE" != x ; then
1665 eval "DEFAULT_$LINE"
1666 else
1667 no_cache=1
1668 fi
1669
1670 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1671
1672fi
1673
1674
1675 eval "$ac_cv_use_zlib"
1676 if test "$no_cache" != 1; then
1677 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1678 fi
1679
1680 if test "$wxUSE_ZLIB" = yes; then
1681 echo "$ac_t""yes" 1>&6
1682 else
1683 echo "$ac_t""no" 1>&6
1684 fi
1685
1686
1687 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
360d6699 1688echo "configure:1689: checking "for --with-libpng"" >&5
10f2d63a
VZ
1689 no_cache=0
1690 # Check whether --with-libpng or --without-libpng was given.
1691if test "${with_libpng+set}" = set; then
1692 withval="$with_libpng"
1693
1694 if test "$withval" = yes; then
1695 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1696 else
1697 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1698 fi
1699
1700else
1701
1702 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1703 if test "x$LINE" != x ; then
1704 eval "DEFAULT_$LINE"
1705 else
1706 no_cache=1
1707 fi
1708
1709 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1710
1711fi
1712
1713
1714 eval "$ac_cv_use_libpng"
1715 if test "$no_cache" != 1; then
1716 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1717 fi
1718
1719 if test "$wxUSE_LIBPNG" = yes; then
1720 echo "$ac_t""yes" 1>&6
1721 else
1722 echo "$ac_t""no" 1>&6
1723 fi
1724
1725
1726 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
360d6699 1727echo "configure:1728: checking "for --with-libjpeg"" >&5
10f2d63a
VZ
1728 no_cache=0
1729 # Check whether --with-libjpeg or --without-libjpeg was given.
1730if test "${with_libjpeg+set}" = set; then
1731 withval="$with_libjpeg"
1732
1733 if test "$withval" = yes; then
1734 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1735 else
1736 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1737 fi
1738
1739else
1740
1741 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1742 if test "x$LINE" != x ; then
1743 eval "DEFAULT_$LINE"
1744 else
1745 no_cache=1
1746 fi
1747
1748 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1749
1750fi
1751
1752
1753 eval "$ac_cv_use_libjpeg"
1754 if test "$no_cache" != 1; then
1755 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1756 fi
1757
1758 if test "$wxUSE_LIBJPEG" = yes; then
1759 echo "$ac_t""yes" 1>&6
1760 else
1761 echo "$ac_t""no" 1>&6
1762 fi
1763
1764
c7a2bf27 1765 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
360d6699 1766echo "configure:1767: checking "for --with-libtiff"" >&5
c7a2bf27
RR
1767 no_cache=0
1768 # Check whether --with-libtiff or --without-libtiff was given.
1769if test "${with_libtiff+set}" = set; then
1770 withval="$with_libtiff"
1771
1772 if test "$withval" = yes; then
1773 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1774 else
1775 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1776 fi
1777
1778else
1779
1780 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1781 if test "x$LINE" != x ; then
1782 eval "DEFAULT_$LINE"
1783 else
1784 no_cache=1
1785 fi
1786
1787 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1788
1789fi
1790
1791
1792 eval "$ac_cv_use_libtiff"
1793 if test "$no_cache" != 1; then
1794 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1795 fi
1796
1797 if test "$wxUSE_LIBTIFF" = yes; then
1798 echo "$ac_t""yes" 1>&6
1799 else
1800 echo "$ac_t""no" 1>&6
1801 fi
1802
1803
10f2d63a 1804 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
360d6699 1805echo "configure:1806: checking "for --with-opengl"" >&5
10f2d63a
VZ
1806 no_cache=0
1807 # Check whether --with-opengl or --without-opengl was given.
1808if test "${with_opengl+set}" = set; then
1809 withval="$with_opengl"
1810
1811 if test "$withval" = yes; then
1812 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1813 else
1814 ac_cv_use_opengl='wxUSE_OPENGL=no'
1815 fi
1816
1817else
1818
1819 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1820 if test "x$LINE" != x ; then
1821 eval "DEFAULT_$LINE"
1822 else
1823 no_cache=1
1824 fi
1825
1826 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1827
1828fi
1829
1830
1831 eval "$ac_cv_use_opengl"
1832 if test "$no_cache" != 1; then
1833 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1834 fi
1835
1836 if test "$wxUSE_OPENGL" = yes; then
1837 echo "$ac_t""yes" 1>&6
1838 else
1839 echo "$ac_t""no" 1>&6
1840 fi
1841
1842
1843 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
360d6699 1844echo "configure:1845: checking "for --with-odbc"" >&5
10f2d63a
VZ
1845 no_cache=0
1846 # Check whether --with-odbc or --without-odbc was given.
1847if test "${with_odbc+set}" = set; then
1848 withval="$with_odbc"
1849
1850 if test "$withval" = yes; then
1851 ac_cv_use_odbc='wxUSE_ODBC=yes'
1852 else
1853 ac_cv_use_odbc='wxUSE_ODBC=no'
1854 fi
1855
1856else
1857
1858 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1859 if test "x$LINE" != x ; then
1860 eval "DEFAULT_$LINE"
1861 else
1862 no_cache=1
1863 fi
1864
1865 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1866
1867fi
1868
1869
1870 eval "$ac_cv_use_odbc"
1871 if test "$no_cache" != 1; then
1872 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1873 fi
1874
1875 if test "$wxUSE_ODBC" = yes; then
1876 echo "$ac_t""yes" 1>&6
1877 else
1878 echo "$ac_t""no" 1>&6
1879 fi
1880
1881
1882
1883
1884
1885 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
360d6699 1886echo "configure:1887: checking "for --enable-shared"" >&5
10f2d63a
VZ
1887 no_cache=0
1888 # Check whether --enable-shared or --disable-shared was given.
1889if test "${enable_shared+set}" = set; then
1890 enableval="$enable_shared"
1891
1892 if test "$enableval" = yes; then
1893 ac_cv_use_shared='wxUSE_SHARED=yes'
1894 else
1895 ac_cv_use_shared='wxUSE_SHARED=no'
1896 fi
1897
1898else
1899
1900 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1901 if test "x$LINE" != x ; then
1902 eval "DEFAULT_$LINE"
1903 else
1904 no_cache=1
1905 fi
1906
1907 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1908
1909fi
1910
1911
1912 eval "$ac_cv_use_shared"
1913 if test "$no_cache" != 1; then
1914 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1915 fi
1916
1917 if test "$wxUSE_SHARED" = yes; then
1918 echo "$ac_t""yes" 1>&6
1919 else
1920 echo "$ac_t""no" 1>&6
1921 fi
1922
1923
1924 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
360d6699 1925echo "configure:1926: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1926 no_cache=0
1927 # Check whether --enable-optimise or --disable-optimise was given.
1928if test "${enable_optimise+set}" = set; then
1929 enableval="$enable_optimise"
1930
1931 if test "$enableval" = yes; then
1932 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1933 else
1934 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1935 fi
1936
1937else
1938
1939 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1940 if test "x$LINE" != x ; then
1941 eval "DEFAULT_$LINE"
1942 else
1943 no_cache=1
1944 fi
1945
1946 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1947
1948fi
1949
1950
1951 eval "$ac_cv_use_optimise"
1952 if test "$no_cache" != 1; then
1953 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1954 fi
1955
1956 if test "$wxUSE_OPTIMISE" = yes; then
1957 echo "$ac_t""yes" 1>&6
1958 else
1959 echo "$ac_t""no" 1>&6
1960 fi
1961
1962
1963 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
360d6699 1964echo "configure:1965: checking "for --enable-debug"" >&5
10f2d63a
VZ
1965 no_cache=0
1966 # Check whether --enable-debug or --disable-debug was given.
1967if test "${enable_debug+set}" = set; then
1968 enableval="$enable_debug"
1969
1970 if test "$enableval" = yes; then
1971 ac_cv_use_debug='wxUSE_DEBUG=yes'
1972 else
1973 ac_cv_use_debug='wxUSE_DEBUG=no'
1974 fi
1975
1976else
1977
1978 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1979 if test "x$LINE" != x ; then
1980 eval "DEFAULT_$LINE"
1981 else
1982 no_cache=1
1983 fi
1984
1985 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1986
1987fi
1988
1989
1990 eval "$ac_cv_use_debug"
1991 if test "$no_cache" != 1; then
1992 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1993 fi
1994
1995 if test "$wxUSE_DEBUG" = yes; then
1996 echo "$ac_t""yes" 1>&6
1997 else
1998 echo "$ac_t""no" 1>&6
1999 fi
2000
2001
2002if test "$wxUSE_DEBUG" = "yes"; then
2003 DEFAULT_wxUSE_DEBUG_FLAG=yes
2004 DEFAULT_wxUSE_DEBUG_INFO=yes
2005elif test "$wxUSE_DEBUG" = "no"; then
2006 DEFAULT_wxUSE_DEBUG_FLAG=no
2007 DEFAULT_wxUSE_DEBUG_INFO=no
2008fi
2009
2010
2011 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
360d6699 2012echo "configure:2013: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2013 no_cache=0
2014 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2015if test "${enable_debug_flag+set}" = set; then
2016 enableval="$enable_debug_flag"
2017
2018 if test "$enableval" = yes; then
2019 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2020 else
2021 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2022 fi
2023
2024else
2025
2026 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2027 if test "x$LINE" != x ; then
2028 eval "DEFAULT_$LINE"
2029 else
2030 no_cache=1
2031 fi
2032
2033 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2034
2035fi
2036
2037
2038 eval "$ac_cv_use_debug_flag"
2039 if test "$no_cache" != 1; then
2040 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2041 fi
2042
2043 if test "$wxUSE_DEBUG_FLAG" = yes; then
2044 echo "$ac_t""yes" 1>&6
2045 else
2046 echo "$ac_t""no" 1>&6
2047 fi
2048
2049
2050 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
360d6699 2051echo "configure:2052: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2052 no_cache=0
2053 # Check whether --enable-debug_info or --disable-debug_info was given.
2054if test "${enable_debug_info+set}" = set; then
2055 enableval="$enable_debug_info"
2056
2057 if test "$enableval" = yes; then
2058 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2059 else
2060 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2061 fi
2062
2063else
2064
2065 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2066 if test "x$LINE" != x ; then
2067 eval "DEFAULT_$LINE"
2068 else
2069 no_cache=1
2070 fi
2071
2072 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2073
2074fi
2075
2076
2077 eval "$ac_cv_use_debug_info"
2078 if test "$no_cache" != 1; then
2079 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2080 fi
2081
2082 if test "$wxUSE_DEBUG_INFO" = yes; then
2083 echo "$ac_t""yes" 1>&6
2084 else
2085 echo "$ac_t""no" 1>&6
2086 fi
2087
2088
2089 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
360d6699 2090echo "configure:2091: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2091 no_cache=0
2092 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2093if test "${enable_debug_gdb+set}" = set; then
2094 enableval="$enable_debug_gdb"
2095
2096 if test "$enableval" = yes; then
2097 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2098 else
2099 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2100 fi
2101
2102else
2103
2104 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2105 if test "x$LINE" != x ; then
2106 eval "DEFAULT_$LINE"
2107 else
2108 no_cache=1
2109 fi
2110
2111 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2112
2113fi
2114
2115
2116 eval "$ac_cv_use_debug_gdb"
2117 if test "$no_cache" != 1; then
2118 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2119 fi
2120
2121 if test "$wxUSE_DEBUG_GDB" = yes; then
2122 echo "$ac_t""yes" 1>&6
2123 else
2124 echo "$ac_t""no" 1>&6
2125 fi
2126
2127
2128 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
360d6699 2129echo "configure:2130: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2130 no_cache=0
2131 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2132if test "${enable_debug_cntxt+set}" = set; then
2133 enableval="$enable_debug_cntxt"
2134
2135 if test "$enableval" = yes; then
2136 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2137 else
2138 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2139 fi
2140
2141else
2142
2143 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2144 if test "x$LINE" != x ; then
2145 eval "DEFAULT_$LINE"
2146 else
2147 no_cache=1
2148 fi
2149
2150 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2151
2152fi
2153
2154
2155 eval "$ac_cv_use_debug_cntxt"
2156 if test "$no_cache" != 1; then
2157 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2158 fi
2159
2160 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2161 echo "$ac_t""yes" 1>&6
2162 else
2163 echo "$ac_t""no" 1>&6
2164 fi
2165
2166
2167 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
360d6699 2168echo "configure:2169: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2169 no_cache=0
2170 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2171if test "${enable_mem_tracing+set}" = set; then
2172 enableval="$enable_mem_tracing"
2173
2174 if test "$enableval" = yes; then
2175 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2176 else
2177 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2178 fi
2179
2180else
2181
2182 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2183 if test "x$LINE" != x ; then
2184 eval "DEFAULT_$LINE"
2185 else
2186 no_cache=1
2187 fi
2188
2189 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2190
2191fi
2192
2193
2194 eval "$ac_cv_use_mem_tracing"
2195 if test "$no_cache" != 1; then
2196 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2197 fi
2198
2199 if test "$wxUSE_MEM_TRACING" = yes; then
2200 echo "$ac_t""yes" 1>&6
2201 else
2202 echo "$ac_t""no" 1>&6
2203 fi
2204
2205
2206 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
360d6699 2207echo "configure:2208: checking "for --enable-profile"" >&5
10f2d63a
VZ
2208 no_cache=0
2209 # Check whether --enable-profile or --disable-profile was given.
2210if test "${enable_profile+set}" = set; then
2211 enableval="$enable_profile"
2212
2213 if test "$enableval" = yes; then
2214 ac_cv_use_profile='wxUSE_PROFILE=yes'
2215 else
2216 ac_cv_use_profile='wxUSE_PROFILE=no'
2217 fi
2218
2219else
2220
2221 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2222 if test "x$LINE" != x ; then
2223 eval "DEFAULT_$LINE"
2224 else
2225 no_cache=1
2226 fi
2227
2228 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2229
2230fi
2231
2232
2233 eval "$ac_cv_use_profile"
2234 if test "$no_cache" != 1; then
2235 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2236 fi
2237
2238 if test "$wxUSE_PROFILE" = yes; then
2239 echo "$ac_t""yes" 1>&6
2240 else
2241 echo "$ac_t""no" 1>&6
2242 fi
2243
2244
2245 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
360d6699 2246echo "configure:2247: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2247 no_cache=0
2248 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2249if test "${enable_no_rtti+set}" = set; then
2250 enableval="$enable_no_rtti"
2251
2252 if test "$enableval" = yes; then
2253 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2254 else
2255 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2256 fi
2257
2258else
2259
2260 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2261 if test "x$LINE" != x ; then
2262 eval "DEFAULT_$LINE"
2263 else
2264 no_cache=1
2265 fi
2266
2267 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2268
2269fi
2270
2271
2272 eval "$ac_cv_use_no_rtti"
2273 if test "$no_cache" != 1; then
2274 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2275 fi
2276
2277 if test "$wxUSE_NO_RTTI" = yes; then
2278 echo "$ac_t""yes" 1>&6
2279 else
2280 echo "$ac_t""no" 1>&6
2281 fi
2282
2283
2284 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
360d6699 2285echo "configure:2286: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2286 no_cache=0
2287 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2288if test "${enable_no_exceptions+set}" = set; then
2289 enableval="$enable_no_exceptions"
2290
2291 if test "$enableval" = yes; then
2292 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2293 else
2294 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2295 fi
2296
2297else
2298
2299 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2300 if test "x$LINE" != x ; then
2301 eval "DEFAULT_$LINE"
2302 else
2303 no_cache=1
2304 fi
2305
2306 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2307
2308fi
2309
2310
2311 eval "$ac_cv_use_no_exceptions"
2312 if test "$no_cache" != 1; then
2313 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2314 fi
2315
2316 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2317 echo "$ac_t""yes" 1>&6
2318 else
2319 echo "$ac_t""no" 1>&6
2320 fi
2321
2322
2323 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
360d6699 2324echo "configure:2325: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2325 no_cache=0
2326 # Check whether --enable-permissive or --disable-permissive was given.
2327if test "${enable_permissive+set}" = set; then
2328 enableval="$enable_permissive"
2329
2330 if test "$enableval" = yes; then
2331 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2332 else
2333 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2334 fi
2335
2336else
2337
2338 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2339 if test "x$LINE" != x ; then
2340 eval "DEFAULT_$LINE"
2341 else
2342 no_cache=1
2343 fi
2344
2345 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2346
2347fi
2348
2349
2350 eval "$ac_cv_use_permissive"
2351 if test "$no_cache" != 1; then
2352 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2353 fi
2354
2355 if test "$wxUSE_PERMISSIVE" = yes; then
2356 echo "$ac_t""yes" 1>&6
2357 else
2358 echo "$ac_t""no" 1>&6
2359 fi
2360
2361
2362 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
360d6699 2363echo "configure:2364: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2364 no_cache=0
2365 # Check whether --enable-no_deps or --disable-no_deps was given.
2366if test "${enable_no_deps+set}" = set; then
2367 enableval="$enable_no_deps"
2368
2369 if test "$enableval" = yes; then
2370 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2371 else
2372 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2373 fi
2374
2375else
2376
2377 LINE=`grep "wxUSE_NO_DEPS" ${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_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2385
2386fi
2387
2388
2389 eval "$ac_cv_use_no_deps"
2390 if test "$no_cache" != 1; then
2391 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2392 fi
2393
2394 if test "$wxUSE_NO_DEPS" = yes; then
2395 echo "$ac_t""yes" 1>&6
2396 else
2397 echo "$ac_t""no" 1>&6
2398 fi
2399
2400
2401
2402
2403 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
360d6699 2404echo "configure:2405: checking "for --enable-intl"" >&5
10f2d63a
VZ
2405 no_cache=0
2406 # Check whether --enable-intl or --disable-intl was given.
2407if test "${enable_intl+set}" = set; then
2408 enableval="$enable_intl"
2409
2410 if test "$enableval" = yes; then
2411 ac_cv_use_intl='wxUSE_INTL=yes'
2412 else
2413 ac_cv_use_intl='wxUSE_INTL=no'
2414 fi
2415
2416else
2417
2418 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2419 if test "x$LINE" != x ; then
2420 eval "DEFAULT_$LINE"
2421 else
2422 no_cache=1
2423 fi
2424
2425 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2426
2427fi
2428
2429
2430 eval "$ac_cv_use_intl"
2431 if test "$no_cache" != 1; then
2432 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2433 fi
2434
2435 if test "$wxUSE_INTL" = yes; then
2436 echo "$ac_t""yes" 1>&6
2437 else
2438 echo "$ac_t""no" 1>&6
2439 fi
2440
2441
2442 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
360d6699 2443echo "configure:2444: checking "for --enable-config"" >&5
10f2d63a
VZ
2444 no_cache=0
2445 # Check whether --enable-config or --disable-config was given.
2446if test "${enable_config+set}" = set; then
2447 enableval="$enable_config"
2448
2449 if test "$enableval" = yes; then
2450 ac_cv_use_config='wxUSE_CONFIG=yes'
2451 else
2452 ac_cv_use_config='wxUSE_CONFIG=no'
2453 fi
2454
2455else
2456
2457 LINE=`grep "wxUSE_CONFIG" ${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_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2465
2466fi
2467
2468
2469 eval "$ac_cv_use_config"
2470 if test "$no_cache" != 1; then
2471 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2472 fi
2473
2474 if test "$wxUSE_CONFIG" = yes; then
2475 echo "$ac_t""yes" 1>&6
2476 else
2477 echo "$ac_t""no" 1>&6
2478 fi
2479
2480
2481 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
360d6699 2482echo "configure:2483: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2483 no_cache=0
2484 # Check whether --enable-sockets or --disable-sockets was given.
2485if test "${enable_sockets+set}" = set; then
2486 enableval="$enable_sockets"
2487
2488 if test "$enableval" = yes; then
2489 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2490 else
2491 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2492 fi
2493
2494else
2495
2496 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2497 if test "x$LINE" != x ; then
2498 eval "DEFAULT_$LINE"
2499 else
2500 no_cache=1
2501 fi
2502
2503 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2504
2505fi
2506
2507
2508 eval "$ac_cv_use_sockets"
2509 if test "$no_cache" != 1; then
2510 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2511 fi
2512
2513 if test "$wxUSE_SOCKETS" = yes; then
2514 echo "$ac_t""yes" 1>&6
2515 else
2516 echo "$ac_t""no" 1>&6
2517 fi
2518
2519
2520 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
360d6699 2521echo "configure:2522: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2522 no_cache=0
2523 # Check whether --enable-dialupman or --disable-dialupman was given.
2524if test "${enable_dialupman+set}" = set; then
2525 enableval="$enable_dialupman"
2526
2527 if test "$enableval" = yes; then
2528 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2529 else
2530 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2531 fi
2532
2533else
2534
2535 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2536 if test "x$LINE" != x ; then
2537 eval "DEFAULT_$LINE"
2538 else
2539 no_cache=1
2540 fi
2541
2542 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2543
2544fi
2545
2546
2547 eval "$ac_cv_use_dialupman"
2548 if test "$no_cache" != 1; then
2549 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2550 fi
2551
2552 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2553 echo "$ac_t""yes" 1>&6
2554 else
2555 echo "$ac_t""no" 1>&6
2556 fi
2557
2558
2559 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
360d6699 2560echo "configure:2561: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2561 no_cache=0
2562 # Check whether --enable-ipc or --disable-ipc was given.
2563if test "${enable_ipc+set}" = set; then
2564 enableval="$enable_ipc"
2565
2566 if test "$enableval" = yes; then
2567 ac_cv_use_ipc='wxUSE_IPC=yes'
2568 else
2569 ac_cv_use_ipc='wxUSE_IPC=no'
2570 fi
2571
2572else
2573
2574 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2575 if test "x$LINE" != x ; then
2576 eval "DEFAULT_$LINE"
2577 else
2578 no_cache=1
2579 fi
2580
2581 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2582
2583fi
2584
2585
2586 eval "$ac_cv_use_ipc"
2587 if test "$no_cache" != 1; then
2588 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2589 fi
2590
2591 if test "$wxUSE_IPC" = yes; then
2592 echo "$ac_t""yes" 1>&6
2593 else
2594 echo "$ac_t""no" 1>&6
2595 fi
2596
2597
2598 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
360d6699 2599echo "configure:2600: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2600 no_cache=0
2601 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2602if test "${enable_apple_ieee+set}" = set; then
2603 enableval="$enable_apple_ieee"
2604
2605 if test "$enableval" = yes; then
2606 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2607 else
2608 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2609 fi
2610
2611else
2612
2613 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2614 if test "x$LINE" != x ; then
2615 eval "DEFAULT_$LINE"
2616 else
2617 no_cache=1
2618 fi
2619
2620 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2621
2622fi
2623
2624
2625 eval "$ac_cv_use_apple_ieee"
2626 if test "$no_cache" != 1; then
2627 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2628 fi
2629
2630 if test "$wxUSE_APPLE_IEEE" = yes; then
2631 echo "$ac_t""yes" 1>&6
2632 else
2633 echo "$ac_t""no" 1>&6
2634 fi
2635
2636
2637 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
360d6699 2638echo "configure:2639: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2639 no_cache=0
2640 # Check whether --enable-timedate or --disable-timedate was given.
2641if test "${enable_timedate+set}" = set; then
2642 enableval="$enable_timedate"
2643
2644 if test "$enableval" = yes; then
2645 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2646 else
2647 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2648 fi
2649
2650else
2651
2652 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2653 if test "x$LINE" != x ; then
2654 eval "DEFAULT_$LINE"
2655 else
2656 no_cache=1
2657 fi
2658
2659 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2660
2661fi
2662
2663
2664 eval "$ac_cv_use_timedate"
2665 if test "$no_cache" != 1; then
2666 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2667 fi
2668
2669 if test "$wxUSE_TIMEDATE" = yes; then
2670 echo "$ac_t""yes" 1>&6
2671 else
2672 echo "$ac_t""no" 1>&6
2673 fi
2674
2675
2676 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
360d6699 2677echo "configure:2678: checking "for --enable-wave"" >&5
10f2d63a
VZ
2678 no_cache=0
2679 # Check whether --enable-wave or --disable-wave was given.
2680if test "${enable_wave+set}" = set; then
2681 enableval="$enable_wave"
2682
2683 if test "$enableval" = yes; then
2684 ac_cv_use_wave='wxUSE_WAVE=yes'
2685 else
2686 ac_cv_use_wave='wxUSE_WAVE=no'
2687 fi
2688
2689else
2690
2691 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2692 if test "x$LINE" != x ; then
2693 eval "DEFAULT_$LINE"
2694 else
2695 no_cache=1
2696 fi
2697
2698 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2699
2700fi
2701
2702
2703 eval "$ac_cv_use_wave"
2704 if test "$no_cache" != 1; then
2705 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2706 fi
2707
2708 if test "$wxUSE_WAVE" = yes; then
2709 echo "$ac_t""yes" 1>&6
2710 else
2711 echo "$ac_t""no" 1>&6
2712 fi
2713
2714
2715 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
360d6699 2716echo "configure:2717: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2717 no_cache=0
2718 # Check whether --enable-fraction or --disable-fraction was given.
2719if test "${enable_fraction+set}" = set; then
2720 enableval="$enable_fraction"
2721
2722 if test "$enableval" = yes; then
2723 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2724 else
2725 ac_cv_use_fraction='wxUSE_FRACTION=no'
2726 fi
2727
2728else
2729
2730 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2731 if test "x$LINE" != x ; then
2732 eval "DEFAULT_$LINE"
2733 else
2734 no_cache=1
2735 fi
2736
2737 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2738
2739fi
2740
2741
2742 eval "$ac_cv_use_fraction"
2743 if test "$no_cache" != 1; then
2744 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2745 fi
2746
2747 if test "$wxUSE_FRACTION" = yes; then
2748 echo "$ac_t""yes" 1>&6
2749 else
2750 echo "$ac_t""no" 1>&6
2751 fi
2752
2753
2754 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
360d6699 2755echo "configure:2756: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2756 no_cache=0
2757 # Check whether --enable-dynlib or --disable-dynlib was given.
2758if test "${enable_dynlib+set}" = set; then
2759 enableval="$enable_dynlib"
2760
2761 if test "$enableval" = yes; then
2762 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2763 else
2764 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2765 fi
2766
2767else
2768
2769 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2770 if test "x$LINE" != x ; then
2771 eval "DEFAULT_$LINE"
2772 else
2773 no_cache=1
2774 fi
2775
2776 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2777
2778fi
2779
2780
2781 eval "$ac_cv_use_dynlib"
2782 if test "$no_cache" != 1; then
2783 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2784 fi
2785
2786 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2787 echo "$ac_t""yes" 1>&6
2788 else
2789 echo "$ac_t""no" 1>&6
2790 fi
2791
2792
2793 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
360d6699 2794echo "configure:2795: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2795 no_cache=0
2796 # Check whether --enable-longlong or --disable-longlong was given.
2797if test "${enable_longlong+set}" = set; then
2798 enableval="$enable_longlong"
2799
2800 if test "$enableval" = yes; then
2801 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2802 else
2803 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2804 fi
2805
2806else
2807
2808 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2809 if test "x$LINE" != x ; then
2810 eval "DEFAULT_$LINE"
2811 else
2812 no_cache=1
2813 fi
2814
2815 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2816
2817fi
2818
2819
2820 eval "$ac_cv_use_longlong"
2821 if test "$no_cache" != 1; then
2822 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2823 fi
2824
2825 if test "$wxUSE_LONGLONG" = yes; then
2826 echo "$ac_t""yes" 1>&6
2827 else
2828 echo "$ac_t""no" 1>&6
2829 fi
2830
2831
2832 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
360d6699 2833echo "configure:2834: checking "for --enable-log"" >&5
10f2d63a
VZ
2834 no_cache=0
2835 # Check whether --enable-log or --disable-log was given.
2836if test "${enable_log+set}" = set; then
2837 enableval="$enable_log"
2838
2839 if test "$enableval" = yes; then
2840 ac_cv_use_log='wxUSE_LOG=yes'
2841 else
2842 ac_cv_use_log='wxUSE_LOG=no'
2843 fi
2844
2845else
2846
2847 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2848 if test "x$LINE" != x ; then
2849 eval "DEFAULT_$LINE"
2850 else
2851 no_cache=1
2852 fi
2853
2854 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2855
2856fi
2857
2858
2859 eval "$ac_cv_use_log"
2860 if test "$no_cache" != 1; then
2861 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2862 fi
2863
2864 if test "$wxUSE_LOG" = yes; then
2865 echo "$ac_t""yes" 1>&6
2866 else
2867 echo "$ac_t""no" 1>&6
2868 fi
2869
2870
2871 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
360d6699 2872echo "configure:2873: checking "for --enable-streams"" >&5
10f2d63a
VZ
2873 no_cache=0
2874 # Check whether --enable-streams or --disable-streams was given.
2875if test "${enable_streams+set}" = set; then
2876 enableval="$enable_streams"
2877
2878 if test "$enableval" = yes; then
2879 ac_cv_use_streams='wxUSE_STREAMS=yes'
2880 else
2881 ac_cv_use_streams='wxUSE_STREAMS=no'
2882 fi
2883
2884else
2885
2886 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2887 if test "x$LINE" != x ; then
2888 eval "DEFAULT_$LINE"
2889 else
2890 no_cache=1
2891 fi
2892
2893 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2894
2895fi
2896
2897
2898 eval "$ac_cv_use_streams"
2899 if test "$no_cache" != 1; then
2900 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2901 fi
2902
2903 if test "$wxUSE_STREAMS" = yes; then
2904 echo "$ac_t""yes" 1>&6
2905 else
2906 echo "$ac_t""no" 1>&6
2907 fi
2908
2909
2910 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
360d6699 2911echo "configure:2912: checking "for --enable-file"" >&5
10f2d63a
VZ
2912 no_cache=0
2913 # Check whether --enable-file or --disable-file was given.
2914if test "${enable_file+set}" = set; then
2915 enableval="$enable_file"
2916
2917 if test "$enableval" = yes; then
2918 ac_cv_use_file='wxUSE_FILE=yes'
2919 else
2920 ac_cv_use_file='wxUSE_FILE=no'
2921 fi
2922
2923else
2924
2925 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2926 if test "x$LINE" != x ; then
2927 eval "DEFAULT_$LINE"
2928 else
2929 no_cache=1
2930 fi
2931
2932 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2933
2934fi
2935
2936
2937 eval "$ac_cv_use_file"
2938 if test "$no_cache" != 1; then
2939 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2940 fi
2941
2942 if test "$wxUSE_FILE" = yes; then
2943 echo "$ac_t""yes" 1>&6
2944 else
2945 echo "$ac_t""no" 1>&6
2946 fi
2947
2948
2949 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
360d6699 2950echo "configure:2951: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2951 no_cache=0
2952 # Check whether --enable-textfile or --disable-textfile was given.
2953if test "${enable_textfile+set}" = set; then
2954 enableval="$enable_textfile"
2955
2956 if test "$enableval" = yes; then
2957 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2958 else
2959 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2960 fi
2961
2962else
2963
2964 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2965 if test "x$LINE" != x ; then
2966 eval "DEFAULT_$LINE"
2967 else
2968 no_cache=1
2969 fi
2970
2971 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2972
2973fi
2974
2975
2976 eval "$ac_cv_use_textfile"
2977 if test "$no_cache" != 1; then
2978 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2979 fi
2980
2981 if test "$wxUSE_TEXTFILE" = yes; then
2982 echo "$ac_t""yes" 1>&6
2983 else
2984 echo "$ac_t""no" 1>&6
2985 fi
2986
2987
2988 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
360d6699 2989echo "configure:2990: checking "for --enable-unicode"" >&5
10f2d63a
VZ
2990 no_cache=0
2991 # Check whether --enable-unicode or --disable-unicode was given.
2992if test "${enable_unicode+set}" = set; then
2993 enableval="$enable_unicode"
2994
2995 if test "$enableval" = yes; then
2996 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2997 else
2998 ac_cv_use_unicode='wxUSE_UNICODE=no'
2999 fi
3000
3001else
3002
3003 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3004 if test "x$LINE" != x ; then
3005 eval "DEFAULT_$LINE"
3006 else
3007 no_cache=1
3008 fi
3009
3010 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3011
3012fi
3013
3014
3015 eval "$ac_cv_use_unicode"
3016 if test "$no_cache" != 1; then
3017 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3018 fi
3019
3020 if test "$wxUSE_UNICODE" = yes; then
3021 echo "$ac_t""yes" 1>&6
3022 else
3023 echo "$ac_t""no" 1>&6
3024 fi
3025
3026
3027 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
360d6699 3028echo "configure:3029: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3029 no_cache=0
3030 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3031if test "${enable_wcsrtombs+set}" = set; then
3032 enableval="$enable_wcsrtombs"
3033
3034 if test "$enableval" = yes; then
3035 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3036 else
3037 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3038 fi
3039
3040else
3041
3042 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3043 if test "x$LINE" != x ; then
3044 eval "DEFAULT_$LINE"
3045 else
3046 no_cache=1
3047 fi
3048
3049 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3050
3051fi
3052
3053
3054 eval "$ac_cv_use_wcsrtombs"
3055 if test "$no_cache" != 1; then
3056 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3057 fi
3058
3059 if test "$wxUSE_WCSRTOMBS" = yes; then
3060 echo "$ac_t""yes" 1>&6
3061 else
3062 echo "$ac_t""no" 1>&6
3063 fi
3064
3065
3066 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
360d6699 3067echo "configure:3068: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3068 no_cache=0
3069 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3070if test "${enable_wxprintfv+set}" = set; then
3071 enableval="$enable_wxprintfv"
3072
3073 if test "$enableval" = yes; then
3074 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3075 else
3076 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3077 fi
3078
3079else
3080
3081 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3082 if test "x$LINE" != x ; then
3083 eval "DEFAULT_$LINE"
3084 else
3085 no_cache=1
3086 fi
3087
3088 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3089
3090fi
3091
3092
3093 eval "$ac_cv_use_wxprintfv"
3094 if test "$no_cache" != 1; then
3095 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3096 fi
3097
3098 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3099 echo "$ac_t""yes" 1>&6
3100 else
3101 echo "$ac_t""no" 1>&6
3102 fi
3103
3104
3105 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
360d6699 3106echo "configure:3107: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3107 no_cache=0
3108 # Check whether --enable-joystick or --disable-joystick was given.
3109if test "${enable_joystick+set}" = set; then
3110 enableval="$enable_joystick"
3111
3112 if test "$enableval" = yes; then
3113 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3114 else
3115 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3116 fi
3117
3118else
3119
3120 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3121 if test "x$LINE" != x ; then
3122 eval "DEFAULT_$LINE"
3123 else
3124 no_cache=1
3125 fi
3126
3127 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3128
3129fi
3130
3131
3132 eval "$ac_cv_use_joystick"
3133 if test "$no_cache" != 1; then
3134 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3135 fi
3136
3137 if test "$wxUSE_JOYSTICK" = yes; then
3138 echo "$ac_t""yes" 1>&6
3139 else
3140 echo "$ac_t""no" 1>&6
3141 fi
3142
3143
3144 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
360d6699 3145echo "configure:3146: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3146 no_cache=0
3147 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3148if test "${enable_std_iostreams+set}" = set; then
3149 enableval="$enable_std_iostreams"
3150
3151 if test "$enableval" = yes; then
3152 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3153 else
3154 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3155 fi
3156
3157else
3158
3159 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3160 if test "x$LINE" != x ; then
3161 eval "DEFAULT_$LINE"
3162 else
3163 no_cache=1
3164 fi
3165
3166 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3167
3168fi
3169
3170
3171 eval "$ac_cv_use_std_iostreams"
3172 if test "$no_cache" != 1; then
3173 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3174 fi
3175
3176 if test "$wxUSE_STD_IOSTREAM" = yes; then
3177 echo "$ac_t""yes" 1>&6
3178 else
3179 echo "$ac_t""no" 1>&6
3180 fi
3181
3182
3183 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
360d6699 3184echo "configure:3185: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3185 no_cache=0
3186 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3187if test "${enable_fs_inet+set}" = set; then
3188 enableval="$enable_fs_inet"
3189
3190 if test "$enableval" = yes; then
3191 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3192 else
3193 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3194 fi
3195
3196else
3197
3198 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3199 if test "x$LINE" != x ; then
3200 eval "DEFAULT_$LINE"
3201 else
3202 no_cache=1
3203 fi
3204
3205 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3206
3207fi
3208
3209
3210 eval "$ac_cv_use_fs_inet"
3211 if test "$no_cache" != 1; then
3212 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3213 fi
3214
3215 if test "$wxUSE_FS_INET" = yes; then
3216 echo "$ac_t""yes" 1>&6
3217 else
3218 echo "$ac_t""no" 1>&6
3219 fi
3220
3221
3222 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
360d6699 3223echo "configure:3224: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3224 no_cache=0
3225 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3226if test "${enable_fs_zip+set}" = set; then
3227 enableval="$enable_fs_zip"
3228
3229 if test "$enableval" = yes; then
3230 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3231 else
3232 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3233 fi
3234
3235else
3236
3237 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3238 if test "x$LINE" != x ; then
3239 eval "DEFAULT_$LINE"
3240 else
3241 no_cache=1
3242 fi
3243
3244 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3245
3246fi
3247
3248
3249 eval "$ac_cv_use_fs_zip"
3250 if test "$no_cache" != 1; then
3251 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3252 fi
3253
3254 if test "$wxUSE_FS_ZIP" = yes; then
3255 echo "$ac_t""yes" 1>&6
3256 else
3257 echo "$ac_t""no" 1>&6
3258 fi
3259
3260
3261 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
360d6699 3262echo "configure:3263: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3263 no_cache=0
3264 # Check whether --enable-zipstream or --disable-zipstream was given.
3265if test "${enable_zipstream+set}" = set; then
3266 enableval="$enable_zipstream"
3267
3268 if test "$enableval" = yes; then
3269 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3270 else
3271 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3272 fi
3273
3274else
3275
3276 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3277 if test "x$LINE" != x ; then
3278 eval "DEFAULT_$LINE"
3279 else
3280 no_cache=1
3281 fi
3282
3283 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3284
3285fi
3286
3287
3288 eval "$ac_cv_use_zipstream"
3289 if test "$no_cache" != 1; then
3290 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3291 fi
3292
3293 if test "$wxUSE_ZIPSTREAM" = yes; then
3294 echo "$ac_t""yes" 1>&6
3295 else
3296 echo "$ac_t""no" 1>&6
3297 fi
3298
3299
3300
3301
3302 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
360d6699 3303echo "configure:3304: checking "for --enable-threads"" >&5
10f2d63a
VZ
3304 no_cache=0
3305 # Check whether --enable-threads or --disable-threads was given.
3306if test "${enable_threads+set}" = set; then
3307 enableval="$enable_threads"
3308
3309 if test "$enableval" = yes; then
3310 ac_cv_use_threads='wxUSE_THREADS=yes'
3311 else
3312 ac_cv_use_threads='wxUSE_THREADS=no'
3313 fi
3314
3315else
3316
3317 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3318 if test "x$LINE" != x ; then
3319 eval "DEFAULT_$LINE"
3320 else
3321 no_cache=1
3322 fi
3323
3324 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3325
3326fi
3327
3328
3329 eval "$ac_cv_use_threads"
3330 if test "$no_cache" != 1; then
3331 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3332 fi
3333
3334 if test "$wxUSE_THREADS" = yes; then
3335 echo "$ac_t""yes" 1>&6
3336 else
3337 echo "$ac_t""no" 1>&6
3338 fi
3339
3340
3341 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
360d6699 3342echo "configure:3343: checking "for --enable-serial"" >&5
10f2d63a
VZ
3343 no_cache=0
3344 # Check whether --enable-serial or --disable-serial was given.
3345if test "${enable_serial+set}" = set; then
3346 enableval="$enable_serial"
3347
3348 if test "$enableval" = yes; then
3349 ac_cv_use_serial='wxUSE_SERIAL=yes'
3350 else
3351 ac_cv_use_serial='wxUSE_SERIAL=no'
3352 fi
3353
3354else
3355
3356 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3357 if test "x$LINE" != x ; then
3358 eval "DEFAULT_$LINE"
3359 else
3360 no_cache=1
3361 fi
3362
3363 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3364
3365fi
3366
3367
3368 eval "$ac_cv_use_serial"
3369 if test "$no_cache" != 1; then
3370 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3371 fi
3372
3373 if test "$wxUSE_SERIAL" = yes; then
3374 echo "$ac_t""yes" 1>&6
3375 else
3376 echo "$ac_t""no" 1>&6
3377 fi
3378
3379
3380
3381
3382 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
360d6699 3383echo "configure:3384: checking "for --enable-docview"" >&5
10f2d63a
VZ
3384 no_cache=0
3385 # Check whether --enable-docview or --disable-docview was given.
3386if test "${enable_docview+set}" = set; then
3387 enableval="$enable_docview"
3388
3389 if test "$enableval" = yes; then
3390 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3391 else
3392 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3393 fi
3394
3395else
3396
3397 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3398 if test "x$LINE" != x ; then
3399 eval "DEFAULT_$LINE"
3400 else
3401 no_cache=1
3402 fi
3403
3404 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3405
3406fi
3407
3408
3409 eval "$ac_cv_use_docview"
3410 if test "$no_cache" != 1; then
3411 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3412 fi
3413
3414 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3415 echo "$ac_t""yes" 1>&6
3416 else
3417 echo "$ac_t""no" 1>&6
3418 fi
3419
3420
3421 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
360d6699 3422echo "configure:3423: checking "for --enable-help"" >&5
10f2d63a
VZ
3423 no_cache=0
3424 # Check whether --enable-help or --disable-help was given.
3425if test "${enable_help+set}" = set; then
3426 enableval="$enable_help"
3427
3428 if test "$enableval" = yes; then
3429 ac_cv_use_help='wxUSE_HELP=yes'
3430 else
3431 ac_cv_use_help='wxUSE_HELP=no'
3432 fi
3433
3434else
3435
3436 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3437 if test "x$LINE" != x ; then
3438 eval "DEFAULT_$LINE"
3439 else
3440 no_cache=1
3441 fi
3442
3443 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3444
3445fi
3446
3447
3448 eval "$ac_cv_use_help"
3449 if test "$no_cache" != 1; then
3450 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3451 fi
3452
3453 if test "$wxUSE_HELP" = yes; then
3454 echo "$ac_t""yes" 1>&6
3455 else
3456 echo "$ac_t""no" 1>&6
3457 fi
3458
3459
3460 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
360d6699 3461echo "configure:3462: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3462 no_cache=0
3463 # Check whether --enable-constraints or --disable-constraints was given.
3464if test "${enable_constraints+set}" = set; then
3465 enableval="$enable_constraints"
3466
3467 if test "$enableval" = yes; then
3468 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3469 else
3470 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3471 fi
3472
3473else
3474
3475 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3476 if test "x$LINE" != x ; then
3477 eval "DEFAULT_$LINE"
3478 else
3479 no_cache=1
3480 fi
3481
3482 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3483
3484fi
3485
3486
3487 eval "$ac_cv_use_constraints"
3488 if test "$no_cache" != 1; then
3489 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3490 fi
3491
3492 if test "$wxUSE_CONSTRAINTS" = yes; then
3493 echo "$ac_t""yes" 1>&6
3494 else
3495 echo "$ac_t""no" 1>&6
3496 fi
3497
3498
3499 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
360d6699 3500echo "configure:3501: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3501 no_cache=0
3502 # Check whether --enable-printarch or --disable-printarch was given.
3503if test "${enable_printarch+set}" = set; then
3504 enableval="$enable_printarch"
3505
3506 if test "$enableval" = yes; then
3507 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3508 else
3509 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3510 fi
3511
3512else
3513
3514 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3515 if test "x$LINE" != x ; then
3516 eval "DEFAULT_$LINE"
3517 else
3518 no_cache=1
3519 fi
3520
3521 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3522
3523fi
3524
3525
3526 eval "$ac_cv_use_printarch"
3527 if test "$no_cache" != 1; then
3528 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3529 fi
3530
3531 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3532 echo "$ac_t""yes" 1>&6
3533 else
3534 echo "$ac_t""no" 1>&6
3535 fi
3536
3537
3538 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
360d6699 3539echo "configure:3540: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3540 no_cache=0
3541 # Check whether --enable-mdi or --disable-mdi was given.
3542if test "${enable_mdi+set}" = set; then
3543 enableval="$enable_mdi"
3544
3545 if test "$enableval" = yes; then
3546 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3547 else
3548 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3549 fi
3550
3551else
3552
3553 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3554 if test "x$LINE" != x ; then
3555 eval "DEFAULT_$LINE"
3556 else
3557 no_cache=1
3558 fi
3559
3560 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3561
3562fi
3563
3564
3565 eval "$ac_cv_use_mdi"
3566 if test "$no_cache" != 1; then
3567 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3568 fi
3569
3570 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3571 echo "$ac_t""yes" 1>&6
3572 else
3573 echo "$ac_t""no" 1>&6
3574 fi
3575
3576
3577
3578 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
360d6699 3579echo "configure:3580: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3580 no_cache=0
3581 # Check whether --enable-postscript or --disable-postscript was given.
3582if test "${enable_postscript+set}" = set; then
3583 enableval="$enable_postscript"
3584
3585 if test "$enableval" = yes; then
3586 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3587 else
3588 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3589 fi
3590
3591else
3592
3593 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3594 if test "x$LINE" != x ; then
3595 eval "DEFAULT_$LINE"
3596 else
3597 no_cache=1
3598 fi
3599
3600 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3601
3602fi
3603
3604
3605 eval "$ac_cv_use_postscript"
3606 if test "$no_cache" != 1; then
3607 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3608 fi
3609
3610 if test "$wxUSE_POSTSCRIPT" = yes; then
3611 echo "$ac_t""yes" 1>&6
3612 else
3613 echo "$ac_t""no" 1>&6
3614 fi
3615
3616
3617
3618
3619 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
360d6699 3620echo "configure:3621: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3621 no_cache=0
3622 # Check whether --enable-prologio or --disable-prologio was given.
3623if test "${enable_prologio+set}" = set; then
3624 enableval="$enable_prologio"
3625
3626 if test "$enableval" = yes; then
3627 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3628 else
3629 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3630 fi
3631
3632else
3633
3634 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3635 if test "x$LINE" != x ; then
3636 eval "DEFAULT_$LINE"
3637 else
3638 no_cache=1
3639 fi
3640
3641 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3642
3643fi
3644
3645
3646 eval "$ac_cv_use_prologio"
3647 if test "$no_cache" != 1; then
3648 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3649 fi
3650
3651 if test "$wxUSE_PROLOGIO" = yes; then
3652 echo "$ac_t""yes" 1>&6
3653 else
3654 echo "$ac_t""no" 1>&6
3655 fi
3656
3657
3658 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
360d6699 3659echo "configure:3660: checking "for --enable-resources"" >&5
10f2d63a
VZ
3660 no_cache=0
3661 # Check whether --enable-resources or --disable-resources was given.
3662if test "${enable_resources+set}" = set; then
3663 enableval="$enable_resources"
3664
3665 if test "$enableval" = yes; then
3666 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3667 else
3668 ac_cv_use_resources='wxUSE_RESOURCES=no'
3669 fi
3670
3671else
3672
3673 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3674 if test "x$LINE" != x ; then
3675 eval "DEFAULT_$LINE"
3676 else
3677 no_cache=1
3678 fi
3679
3680 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3681
3682fi
3683
3684
3685 eval "$ac_cv_use_resources"
3686 if test "$no_cache" != 1; then
3687 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3688 fi
3689
3690 if test "$wxUSE_RESOURCES" = yes; then
3691 echo "$ac_t""yes" 1>&6
3692 else
3693 echo "$ac_t""no" 1>&6
3694 fi
3695
3696
3697
3698 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
360d6699 3699echo "configure:3700: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3700 no_cache=0
3701 # Check whether --enable-xresources or --disable-xresources was given.
3702if test "${enable_xresources+set}" = set; then
3703 enableval="$enable_xresources"
3704
3705 if test "$enableval" = yes; then
3706 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3707 else
3708 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3709 fi
3710
3711else
3712
3713 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3714 if test "x$LINE" != x ; then
3715 eval "DEFAULT_$LINE"
3716 else
3717 no_cache=1
3718 fi
3719
3720 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3721
3722fi
3723
3724
3725 eval "$ac_cv_use_xresources"
3726 if test "$no_cache" != 1; then
3727 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3728 fi
3729
3730 if test "$wxUSE_X_RESOURCES" = yes; then
3731 echo "$ac_t""yes" 1>&6
3732 else
3733 echo "$ac_t""no" 1>&6
3734 fi
3735
3736
3737
3738
3739 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
360d6699 3740echo "configure:3741: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3741 no_cache=0
3742 # Check whether --enable-clipboard or --disable-clipboard was given.
3743if test "${enable_clipboard+set}" = set; then
3744 enableval="$enable_clipboard"
3745
3746 if test "$enableval" = yes; then
3747 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3748 else
3749 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3750 fi
3751
3752else
3753
3754 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3755 if test "x$LINE" != x ; then
3756 eval "DEFAULT_$LINE"
3757 else
3758 no_cache=1
3759 fi
3760
3761 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3762
3763fi
3764
3765
3766 eval "$ac_cv_use_clipboard"
3767 if test "$no_cache" != 1; then
3768 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3769 fi
3770
3771 if test "$wxUSE_CLIPBOARD" = yes; then
3772 echo "$ac_t""yes" 1>&6
3773 else
3774 echo "$ac_t""no" 1>&6
3775 fi
3776
3777
3778 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
360d6699 3779echo "configure:3780: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3780 no_cache=0
3781 # Check whether --enable-dnd or --disable-dnd was given.
3782if test "${enable_dnd+set}" = set; then
3783 enableval="$enable_dnd"
3784
3785 if test "$enableval" = yes; then
3786 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3787 else
3788 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3789 fi
3790
3791else
3792
3793 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3794 if test "x$LINE" != x ; then
3795 eval "DEFAULT_$LINE"
3796 else
3797 no_cache=1
3798 fi
3799
3800 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3801
3802fi
3803
3804
3805 eval "$ac_cv_use_dnd"
3806 if test "$no_cache" != 1; then
3807 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3808 fi
3809
3810 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3811 echo "$ac_t""yes" 1>&6
3812 else
3813 echo "$ac_t""no" 1>&6
3814 fi
3815
3816
3817
3818 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
360d6699 3819echo "configure:3820: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3820 no_cache=0
3821 # Check whether --enable-wxtree or --disable-wxtree was given.
3822if test "${enable_wxtree+set}" = set; then
3823 enableval="$enable_wxtree"
3824
3825 if test "$enableval" = yes; then
3826 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3827 else
3828 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3829 fi
3830
3831else
3832
3833 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3834 if test "x$LINE" != x ; then
3835 eval "DEFAULT_$LINE"
3836 else
3837 no_cache=1
3838 fi
3839
3840 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3841
3842fi
3843
3844
3845 eval "$ac_cv_use_wxtree"
3846 if test "$no_cache" != 1; then
3847 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3848 fi
3849
3850 if test "$wxUSE_WXTREE" = yes; then
3851 echo "$ac_t""yes" 1>&6
3852 else
3853 echo "$ac_t""no" 1>&6
3854 fi
3855
3856
3857
3858
3859 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
360d6699 3860echo "configure:3861: checking "for --enable-controls"" >&5
10f2d63a
VZ
3861 no_cache=0
3862 # Check whether --enable-controls or --disable-controls was given.
3863if test "${enable_controls+set}" = set; then
3864 enableval="$enable_controls"
3865
3866 if test "$enableval" = yes; then
3867 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3868 else
3869 ac_cv_use_controls='wxUSE_CONTROLS=no'
3870 fi
3871
3872else
3873
3874 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3875 if test "x$LINE" != x ; then
3876 eval "DEFAULT_$LINE"
3877 else
3878 no_cache=1
3879 fi
3880
3881 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3882
3883fi
3884
3885
3886 eval "$ac_cv_use_controls"
3887 if test "$no_cache" != 1; then
3888 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3889 fi
3890
3891 if test "$wxUSE_CONTROLS" = yes; then
3892 echo "$ac_t""yes" 1>&6
3893 else
3894 echo "$ac_t""no" 1>&6
3895 fi
3896
3897
3898if test "$wxUSE_CONTROLS" = "yes"; then
3899 DEFAULT_wxUSE_ACCEL=yes
3900 DEFAULT_wxUSE_CARET=yes
3901 DEFAULT_wxUSE_COMBOBOX=yes
3902 DEFAULT_wxUSE_BMPBUTTON=yes
3903 DEFAULT_wxUSE_CHECKBOX=yes
3904 DEFAULT_wxUSE_CHECKLISTBOX=yes
3905 DEFAULT_wxUSE_CHOICE=yes
3906 DEFAULT_wxUSE_GAUGE=yes
3907 DEFAULT_wxUSE_GRID=yes
fc9c7c09 3908 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
3909 DEFAULT_wxUSE_IMAGLIST=yes
3910 DEFAULT_wxUSE_LISTBOX=yes
3911 DEFAULT_wxUSE_LISTCTRL=yes
3912 DEFAULT_wxUSE_NOTEBOOK=yes
3913 DEFAULT_wxUSE_RADIOBOX=yes
3914 DEFAULT_wxUSE_RADIOBTN=yes
3915 DEFAULT_wxUSE_SASH=yes
3916 DEFAULT_wxUSE_SCROLLBAR=yes
3917 DEFAULT_wxUSE_SLIDER=yes
3918 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 3919 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
3920 DEFAULT_wxUSE_SPLITTER=yes
3921 DEFAULT_wxUSE_STATBMP=yes
3922 DEFAULT_wxUSE_STATBOX=yes
3923 DEFAULT_wxUSE_STATLINE=yes
3924 DEFAULT_wxUSE_STATUSBAR=yes
3925 DEFAULT_wxUSE_TAB_DIALOG=yes
3926 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
3927 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3928 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
3929 DEFAULT_wxUSE_TOOLTIPS=yes
3930 DEFAULT_wxUSE_TREECTRL=yes
3931elif test "$wxUSE_CONTROLS" = "no"; then
3932 DEFAULT_wxUSE_ACCEL=no
3933 DEFAULT_wxUSE_CARET=no
3934 DEFAULT_wxUSE_COMBOBOX=no
3935 DEFAULT_wxUSE_BMPBUTTON=no
3936 DEFAULT_wxUSE_CHECKBOX=no
3937 DEFAULT_wxUSE_CHECKLISTBOX=no
3938 DEFAULT_wxUSE_CHOICE=no
3939 DEFAULT_wxUSE_GAUGE=no
3940 DEFAULT_wxUSE_GRID=no
3941 DEFAULT_wxUSE_NEW_GRID=no
3942 DEFAULT_wxUSE_IMAGLIST=no
3943 DEFAULT_wxUSE_LISTBOX=no
3944 DEFAULT_wxUSE_LISTCTRL=no
3945 DEFAULT_wxUSE_NOTEBOOK=no
3946 DEFAULT_wxUSE_RADIOBOX=no
3947 DEFAULT_wxUSE_RADIOBTN=no
3948 DEFAULT_wxUSE_SASH=no
3949 DEFAULT_wxUSE_SCROLLBAR=no
3950 DEFAULT_wxUSE_SLIDER=no
3951 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 3952 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
3953 DEFAULT_wxUSE_SPLITTER=no
3954 DEFAULT_wxUSE_STATBMP=no
3955 DEFAULT_wxUSE_STATBOX=no
3956 DEFAULT_wxUSE_STATLINE=no
3957 DEFAULT_wxUSE_STATUSBAR=no
3958 DEFAULT_wxUSE_TAB_DIALOG=no
3959 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
3960 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
3961 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
3962 DEFAULT_wxUSE_TOOLTIPS=no
3963 DEFAULT_wxUSE_TREECTRL=no
3964fi
3965
3966
3967 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
360d6699 3968echo "configure:3969: checking "for --enable-accel"" >&5
10f2d63a
VZ
3969 no_cache=0
3970 # Check whether --enable-accel or --disable-accel was given.
3971if test "${enable_accel+set}" = set; then
3972 enableval="$enable_accel"
3973
3974 if test "$enableval" = yes; then
3975 ac_cv_use_accel='wxUSE_ACCEL=yes'
3976 else
3977 ac_cv_use_accel='wxUSE_ACCEL=no'
3978 fi
3979
3980else
3981
3982 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3983 if test "x$LINE" != x ; then
3984 eval "DEFAULT_$LINE"
3985 else
3986 no_cache=1
3987 fi
3988
3989 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3990
3991fi
3992
3993
3994 eval "$ac_cv_use_accel"
3995 if test "$no_cache" != 1; then
3996 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3997 fi
3998
3999 if test "$wxUSE_ACCEL" = yes; then
4000 echo "$ac_t""yes" 1>&6
4001 else
4002 echo "$ac_t""no" 1>&6
4003 fi
4004
4005
4006 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
360d6699 4007echo "configure:4008: checking "for --enable-caret"" >&5
10f2d63a
VZ
4008 no_cache=0
4009 # Check whether --enable-caret or --disable-caret was given.
4010if test "${enable_caret+set}" = set; then
4011 enableval="$enable_caret"
4012
4013 if test "$enableval" = yes; then
4014 ac_cv_use_caret='wxUSE_CARET=yes'
4015 else
4016 ac_cv_use_caret='wxUSE_CARET=no'
4017 fi
4018
4019else
4020
4021 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4022 if test "x$LINE" != x ; then
4023 eval "DEFAULT_$LINE"
4024 else
4025 no_cache=1
4026 fi
4027
4028 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4029
4030fi
4031
4032
4033 eval "$ac_cv_use_caret"
4034 if test "$no_cache" != 1; then
4035 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4036 fi
4037
4038 if test "$wxUSE_CARET" = yes; then
4039 echo "$ac_t""yes" 1>&6
4040 else
4041 echo "$ac_t""no" 1>&6
4042 fi
4043
4044
4045 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
360d6699 4046echo "configure:4047: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4047 no_cache=0
4048 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4049if test "${enable_bmpbutton+set}" = set; then
4050 enableval="$enable_bmpbutton"
4051
4052 if test "$enableval" = yes; then
4053 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4054 else
4055 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4056 fi
4057
4058else
4059
4060 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4061 if test "x$LINE" != x ; then
4062 eval "DEFAULT_$LINE"
4063 else
4064 no_cache=1
4065 fi
4066
4067 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4068
4069fi
4070
4071
4072 eval "$ac_cv_use_bmpbutton"
4073 if test "$no_cache" != 1; then
4074 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4075 fi
4076
4077 if test "$wxUSE_BMPBUTTON" = yes; then
4078 echo "$ac_t""yes" 1>&6
4079 else
4080 echo "$ac_t""no" 1>&6
4081 fi
4082
4083
4084 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
360d6699 4085echo "configure:4086: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4086 no_cache=0
4087 # Check whether --enable-checkbox or --disable-checkbox was given.
4088if test "${enable_checkbox+set}" = set; then
4089 enableval="$enable_checkbox"
4090
4091 if test "$enableval" = yes; then
4092 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4093 else
4094 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4095 fi
4096
4097else
4098
4099 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4100 if test "x$LINE" != x ; then
4101 eval "DEFAULT_$LINE"
4102 else
4103 no_cache=1
4104 fi
4105
4106 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4107
4108fi
4109
4110
4111 eval "$ac_cv_use_checkbox"
4112 if test "$no_cache" != 1; then
4113 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4114 fi
4115
4116 if test "$wxUSE_CHECKBOX" = yes; then
4117 echo "$ac_t""yes" 1>&6
4118 else
4119 echo "$ac_t""no" 1>&6
4120 fi
4121
4122
4123 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
360d6699 4124echo "configure:4125: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4125 no_cache=0
4126 # Check whether --enable-checklst or --disable-checklst was given.
4127if test "${enable_checklst+set}" = set; then
4128 enableval="$enable_checklst"
4129
4130 if test "$enableval" = yes; then
4131 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4132 else
4133 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4134 fi
4135
4136else
4137
4138 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4139 if test "x$LINE" != x ; then
4140 eval "DEFAULT_$LINE"
4141 else
4142 no_cache=1
4143 fi
4144
4145 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4146
4147fi
4148
4149
4150 eval "$ac_cv_use_checklst"
4151 if test "$no_cache" != 1; then
4152 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4153 fi
4154
4155 if test "$wxUSE_CHECKLST" = yes; then
4156 echo "$ac_t""yes" 1>&6
4157 else
4158 echo "$ac_t""no" 1>&6
4159 fi
4160
4161
4162 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
360d6699 4163echo "configure:4164: checking "for --enable-choice"" >&5
10f2d63a
VZ
4164 no_cache=0
4165 # Check whether --enable-choice or --disable-choice was given.
4166if test "${enable_choice+set}" = set; then
4167 enableval="$enable_choice"
4168
4169 if test "$enableval" = yes; then
4170 ac_cv_use_choice='wxUSE_CHOICE=yes'
4171 else
4172 ac_cv_use_choice='wxUSE_CHOICE=no'
4173 fi
4174
4175else
4176
4177 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4178 if test "x$LINE" != x ; then
4179 eval "DEFAULT_$LINE"
4180 else
4181 no_cache=1
4182 fi
4183
4184 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4185
4186fi
4187
4188
4189 eval "$ac_cv_use_choice"
4190 if test "$no_cache" != 1; then
4191 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4192 fi
4193
4194 if test "$wxUSE_CHOICE" = yes; then
4195 echo "$ac_t""yes" 1>&6
4196 else
4197 echo "$ac_t""no" 1>&6
4198 fi
4199
4200
4201 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
360d6699 4202echo "configure:4203: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4203 no_cache=0
4204 # Check whether --enable-combobox or --disable-combobox was given.
4205if test "${enable_combobox+set}" = set; then
4206 enableval="$enable_combobox"
4207
4208 if test "$enableval" = yes; then
4209 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4210 else
4211 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4212 fi
4213
4214else
4215
4216 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4217 if test "x$LINE" != x ; then
4218 eval "DEFAULT_$LINE"
4219 else
4220 no_cache=1
4221 fi
4222
4223 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4224
4225fi
4226
4227
4228 eval "$ac_cv_use_combobox"
4229 if test "$no_cache" != 1; then
4230 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4231 fi
4232
4233 if test "$wxUSE_COMBOBOX" = yes; then
4234 echo "$ac_t""yes" 1>&6
4235 else
4236 echo "$ac_t""no" 1>&6
4237 fi
4238
4239
4240 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
360d6699 4241echo "configure:4242: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4242 no_cache=0
4243 # Check whether --enable-gauge or --disable-gauge was given.
4244if test "${enable_gauge+set}" = set; then
4245 enableval="$enable_gauge"
4246
4247 if test "$enableval" = yes; then
4248 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4249 else
4250 ac_cv_use_gauge='wxUSE_GAUGE=no'
4251 fi
4252
4253else
4254
4255 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4256 if test "x$LINE" != x ; then
4257 eval "DEFAULT_$LINE"
4258 else
4259 no_cache=1
4260 fi
4261
4262 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4263
4264fi
4265
4266
4267 eval "$ac_cv_use_gauge"
4268 if test "$no_cache" != 1; then
4269 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4270 fi
4271
4272 if test "$wxUSE_GAUGE" = yes; then
4273 echo "$ac_t""yes" 1>&6
4274 else
4275 echo "$ac_t""no" 1>&6
4276 fi
4277
4278
4279 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
360d6699 4280echo "configure:4281: checking "for --enable-grid"" >&5
10f2d63a
VZ
4281 no_cache=0
4282 # Check whether --enable-grid or --disable-grid was given.
4283if test "${enable_grid+set}" = set; then
4284 enableval="$enable_grid"
4285
4286 if test "$enableval" = yes; then
4287 ac_cv_use_grid='wxUSE_GRID=yes'
4288 else
4289 ac_cv_use_grid='wxUSE_GRID=no'
4290 fi
4291
4292else
4293
4294 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4295 if test "x$LINE" != x ; then
4296 eval "DEFAULT_$LINE"
4297 else
4298 no_cache=1
4299 fi
4300
4301 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4302
4303fi
4304
4305
4306 eval "$ac_cv_use_grid"
4307 if test "$no_cache" != 1; then
4308 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4309 fi
4310
4311 if test "$wxUSE_GRID" = yes; then
4312 echo "$ac_t""yes" 1>&6
4313 else
4314 echo "$ac_t""no" 1>&6
4315 fi
4316
4317
4318 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
360d6699 4319echo "configure:4320: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4320 no_cache=0
4321 # Check whether --enable-newgrid or --disable-newgrid was given.
4322if test "${enable_newgrid+set}" = set; then
4323 enableval="$enable_newgrid"
4324
4325 if test "$enableval" = yes; then
4326 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4327 else
4328 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4329 fi
4330
4331else
4332
4333 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4334 if test "x$LINE" != x ; then
4335 eval "DEFAULT_$LINE"
4336 else
4337 no_cache=1
4338 fi
4339
4340 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4341
4342fi
4343
4344
4345 eval "$ac_cv_use_newgrid"
4346 if test "$no_cache" != 1; then
4347 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4348 fi
4349
4350 if test "$wxUSE_NEW_GRID" = yes; then
4351 echo "$ac_t""yes" 1>&6
4352 else
4353 echo "$ac_t""no" 1>&6
4354 fi
4355
4356
4357 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
360d6699 4358echo "configure:4359: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4359 no_cache=0
4360 # Check whether --enable-imaglist or --disable-imaglist was given.
4361if test "${enable_imaglist+set}" = set; then
4362 enableval="$enable_imaglist"
4363
4364 if test "$enableval" = yes; then
4365 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4366 else
4367 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4368 fi
4369
4370else
4371
4372 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4373 if test "x$LINE" != x ; then
4374 eval "DEFAULT_$LINE"
4375 else
4376 no_cache=1
4377 fi
4378
4379 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4380
4381fi
4382
4383
4384 eval "$ac_cv_use_imaglist"
4385 if test "$no_cache" != 1; then
4386 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4387 fi
4388
4389 if test "$wxUSE_IMAGLIST" = yes; then
4390 echo "$ac_t""yes" 1>&6
4391 else
4392 echo "$ac_t""no" 1>&6
4393 fi
4394
4395
4396 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
360d6699 4397echo "configure:4398: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4398 no_cache=0
4399 # Check whether --enable-listbox or --disable-listbox was given.
4400if test "${enable_listbox+set}" = set; then
4401 enableval="$enable_listbox"
4402
4403 if test "$enableval" = yes; then
4404 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4405 else
4406 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4407 fi
4408
4409else
4410
4411 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4412 if test "x$LINE" != x ; then
4413 eval "DEFAULT_$LINE"
4414 else
4415 no_cache=1
4416 fi
4417
4418 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4419
4420fi
4421
4422
4423 eval "$ac_cv_use_listbox"
4424 if test "$no_cache" != 1; then
4425 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4426 fi
4427
4428 if test "$wxUSE_LISTBOX" = yes; then
4429 echo "$ac_t""yes" 1>&6
4430 else
4431 echo "$ac_t""no" 1>&6
4432 fi
4433
4434
4435 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
360d6699 4436echo "configure:4437: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4437 no_cache=0
4438 # Check whether --enable-listctrl or --disable-listctrl was given.
4439if test "${enable_listctrl+set}" = set; then
4440 enableval="$enable_listctrl"
4441
4442 if test "$enableval" = yes; then
4443 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4444 else
4445 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4446 fi
4447
4448else
4449
4450 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4451 if test "x$LINE" != x ; then
4452 eval "DEFAULT_$LINE"
4453 else
4454 no_cache=1
4455 fi
4456
4457 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4458
4459fi
4460
4461
4462 eval "$ac_cv_use_listctrl"
4463 if test "$no_cache" != 1; then
4464 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4465 fi
4466
4467 if test "$wxUSE_LISTCTRL" = yes; then
4468 echo "$ac_t""yes" 1>&6
4469 else
4470 echo "$ac_t""no" 1>&6
4471 fi
4472
4473
4474 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
360d6699 4475echo "configure:4476: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4476 no_cache=0
4477 # Check whether --enable-notebook or --disable-notebook was given.
4478if test "${enable_notebook+set}" = set; then
4479 enableval="$enable_notebook"
4480
4481 if test "$enableval" = yes; then
4482 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4483 else
4484 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4485 fi
4486
4487else
4488
4489 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4490 if test "x$LINE" != x ; then
4491 eval "DEFAULT_$LINE"
4492 else
4493 no_cache=1
4494 fi
4495
4496 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4497
4498fi
4499
4500
4501 eval "$ac_cv_use_notebook"
4502 if test "$no_cache" != 1; then
4503 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4504 fi
4505
4506 if test "$wxUSE_NOTEBOOK" = yes; then
4507 echo "$ac_t""yes" 1>&6
4508 else
4509 echo "$ac_t""no" 1>&6
4510 fi
4511
4512
4513 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
360d6699 4514echo "configure:4515: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4515 no_cache=0
4516 # Check whether --enable-radiobox or --disable-radiobox was given.
4517if test "${enable_radiobox+set}" = set; then
4518 enableval="$enable_radiobox"
4519
4520 if test "$enableval" = yes; then
4521 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4522 else
4523 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4524 fi
4525
4526else
4527
4528 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4529 if test "x$LINE" != x ; then
4530 eval "DEFAULT_$LINE"
4531 else
4532 no_cache=1
4533 fi
4534
4535 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4536
4537fi
4538
4539
4540 eval "$ac_cv_use_radiobox"
4541 if test "$no_cache" != 1; then
4542 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4543 fi
4544
4545 if test "$wxUSE_RADIOBOX" = yes; then
4546 echo "$ac_t""yes" 1>&6
4547 else
4548 echo "$ac_t""no" 1>&6
4549 fi
4550
4551
4552 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
360d6699 4553echo "configure:4554: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4554 no_cache=0
4555 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4556if test "${enable_radiobtn+set}" = set; then
4557 enableval="$enable_radiobtn"
4558
4559 if test "$enableval" = yes; then
4560 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4561 else
4562 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4563 fi
4564
4565else
4566
4567 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4568 if test "x$LINE" != x ; then
4569 eval "DEFAULT_$LINE"
4570 else
4571 no_cache=1
4572 fi
4573
4574 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4575
4576fi
4577
4578
4579 eval "$ac_cv_use_radiobtn"
4580 if test "$no_cache" != 1; then
4581 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4582 fi
4583
4584 if test "$wxUSE_RADIOBTN" = yes; then
4585 echo "$ac_t""yes" 1>&6
4586 else
4587 echo "$ac_t""no" 1>&6
4588 fi
4589
4590
4591 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
360d6699 4592echo "configure:4593: checking "for --enable-sash"" >&5
10f2d63a
VZ
4593 no_cache=0
4594 # Check whether --enable-sash or --disable-sash was given.
4595if test "${enable_sash+set}" = set; then
4596 enableval="$enable_sash"
4597
4598 if test "$enableval" = yes; then
4599 ac_cv_use_sash='wxUSE_SASH=yes'
4600 else
4601 ac_cv_use_sash='wxUSE_SASH=no'
4602 fi
4603
4604else
4605
4606 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4607 if test "x$LINE" != x ; then
4608 eval "DEFAULT_$LINE"
4609 else
4610 no_cache=1
4611 fi
4612
4613 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4614
4615fi
4616
4617
4618 eval "$ac_cv_use_sash"
4619 if test "$no_cache" != 1; then
4620 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4621 fi
4622
4623 if test "$wxUSE_SASH" = yes; then
4624 echo "$ac_t""yes" 1>&6
4625 else
4626 echo "$ac_t""no" 1>&6
4627 fi
4628
4629
4630 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
360d6699 4631echo "configure:4632: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4632 no_cache=0
4633 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4634if test "${enable_scrollbar+set}" = set; then
4635 enableval="$enable_scrollbar"
4636
4637 if test "$enableval" = yes; then
4638 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4639 else
4640 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4641 fi
4642
4643else
4644
4645 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4646 if test "x$LINE" != x ; then
4647 eval "DEFAULT_$LINE"
4648 else
4649 no_cache=1
4650 fi
4651
4652 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4653
4654fi
4655
4656
4657 eval "$ac_cv_use_scrollbar"
4658 if test "$no_cache" != 1; then
4659 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4660 fi
4661
4662 if test "$wxUSE_SCROLLBAR" = yes; then
4663 echo "$ac_t""yes" 1>&6
4664 else
4665 echo "$ac_t""no" 1>&6
4666 fi
4667
4668
4669 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
360d6699 4670echo "configure:4671: checking "for --enable-slider"" >&5
10f2d63a
VZ
4671 no_cache=0
4672 # Check whether --enable-slider or --disable-slider was given.
4673if test "${enable_slider+set}" = set; then
4674 enableval="$enable_slider"
4675
4676 if test "$enableval" = yes; then
4677 ac_cv_use_slider='wxUSE_SLIDER=yes'
4678 else
4679 ac_cv_use_slider='wxUSE_SLIDER=no'
4680 fi
4681
4682else
4683
4684 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4685 if test "x$LINE" != x ; then
4686 eval "DEFAULT_$LINE"
4687 else
4688 no_cache=1
4689 fi
4690
4691 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4692
4693fi
4694
4695
4696 eval "$ac_cv_use_slider"
4697 if test "$no_cache" != 1; then
4698 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4699 fi
4700
4701 if test "$wxUSE_SLIDER" = yes; then
4702 echo "$ac_t""yes" 1>&6
4703 else
4704 echo "$ac_t""no" 1>&6
4705 fi
4706
4707
4708 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
360d6699 4709echo "configure:4710: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4710 no_cache=0
4711 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4712if test "${enable_spinbtn+set}" = set; then
4713 enableval="$enable_spinbtn"
4714
4715 if test "$enableval" = yes; then
4716 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4717 else
4718 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4719 fi
4720
4721else
4722
4723 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4724 if test "x$LINE" != x ; then
4725 eval "DEFAULT_$LINE"
4726 else
4727 no_cache=1
4728 fi
4729
4730 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4731
4732fi
4733
4734
4735 eval "$ac_cv_use_spinbtn"
4736 if test "$no_cache" != 1; then
4737 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4738 fi
4739
4740 if test "$wxUSE_SPINBTN" = yes; then
4741 echo "$ac_t""yes" 1>&6
4742 else
4743 echo "$ac_t""no" 1>&6
4744 fi
4745
4746
56cfaa52 4747 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
360d6699 4748echo "configure:4749: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4749 no_cache=0
4750 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4751if test "${enable_spinctrl+set}" = set; then
4752 enableval="$enable_spinctrl"
4753
4754 if test "$enableval" = yes; then
4755 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4756 else
4757 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4758 fi
4759
4760else
4761
4762 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4763 if test "x$LINE" != x ; then
4764 eval "DEFAULT_$LINE"
4765 else
4766 no_cache=1
4767 fi
4768
4769 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4770
4771fi
4772
4773
4774 eval "$ac_cv_use_spinctrl"
4775 if test "$no_cache" != 1; then
4776 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4777 fi
4778
4779 if test "$wxUSE_SPINCTRL" = yes; then
4780 echo "$ac_t""yes" 1>&6
4781 else
4782 echo "$ac_t""no" 1>&6
4783 fi
4784
4785
10f2d63a 4786 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
360d6699 4787echo "configure:4788: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4788 no_cache=0
4789 # Check whether --enable-splitter or --disable-splitter was given.
4790if test "${enable_splitter+set}" = set; then
4791 enableval="$enable_splitter"
4792
4793 if test "$enableval" = yes; then
4794 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4795 else
4796 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4797 fi
4798
4799else
4800
4801 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4802 if test "x$LINE" != x ; then
4803 eval "DEFAULT_$LINE"
4804 else
4805 no_cache=1
4806 fi
4807
4808 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4809
4810fi
4811
4812
4813 eval "$ac_cv_use_splitter"
4814 if test "$no_cache" != 1; then
4815 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4816 fi
4817
4818 if test "$wxUSE_SPLITTER" = yes; then
4819 echo "$ac_t""yes" 1>&6
4820 else
4821 echo "$ac_t""no" 1>&6
4822 fi
4823
4824
4825 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
360d6699 4826echo "configure:4827: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4827 no_cache=0
4828 # Check whether --enable-statbmp or --disable-statbmp was given.
4829if test "${enable_statbmp+set}" = set; then
4830 enableval="$enable_statbmp"
4831
4832 if test "$enableval" = yes; then
4833 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4834 else
4835 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4836 fi
4837
4838else
4839
4840 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4841 if test "x$LINE" != x ; then
4842 eval "DEFAULT_$LINE"
4843 else
4844 no_cache=1
4845 fi
4846
4847 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4848
4849fi
4850
4851
4852 eval "$ac_cv_use_statbmp"
4853 if test "$no_cache" != 1; then
4854 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4855 fi
4856
4857 if test "$wxUSE_STATBMP" = yes; then
4858 echo "$ac_t""yes" 1>&6
4859 else
4860 echo "$ac_t""no" 1>&6
4861 fi
4862
4863
4864 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
360d6699 4865echo "configure:4866: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4866 no_cache=0
4867 # Check whether --enable-statbox or --disable-statbox was given.
4868if test "${enable_statbox+set}" = set; then
4869 enableval="$enable_statbox"
4870
4871 if test "$enableval" = yes; then
4872 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4873 else
4874 ac_cv_use_statbox='wxUSE_STATBOX=no'
4875 fi
4876
4877else
4878
4879 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4880 if test "x$LINE" != x ; then
4881 eval "DEFAULT_$LINE"
4882 else
4883 no_cache=1
4884 fi
4885
4886 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4887
4888fi
4889
4890
4891 eval "$ac_cv_use_statbox"
4892 if test "$no_cache" != 1; then
4893 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4894 fi
4895
4896 if test "$wxUSE_STATBOX" = yes; then
4897 echo "$ac_t""yes" 1>&6
4898 else
4899 echo "$ac_t""no" 1>&6
4900 fi
4901
4902
4903 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
360d6699 4904echo "configure:4905: checking "for --enable-statline"" >&5
10f2d63a
VZ
4905 no_cache=0
4906 # Check whether --enable-statline or --disable-statline was given.
4907if test "${enable_statline+set}" = set; then
4908 enableval="$enable_statline"
4909
4910 if test "$enableval" = yes; then
4911 ac_cv_use_statline='wxUSE_STATLINE=yes'
4912 else
4913 ac_cv_use_statline='wxUSE_STATLINE=no'
4914 fi
4915
4916else
4917
4918 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4919 if test "x$LINE" != x ; then
4920 eval "DEFAULT_$LINE"
4921 else
4922 no_cache=1
4923 fi
4924
4925 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4926
4927fi
4928
4929
4930 eval "$ac_cv_use_statline"
4931 if test "$no_cache" != 1; then
4932 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4933 fi
4934
4935 if test "$wxUSE_STATLINE" = yes; then
4936 echo "$ac_t""yes" 1>&6
4937 else
4938 echo "$ac_t""no" 1>&6
4939 fi
4940
4941
4942 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
360d6699 4943echo "configure:4944: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
4944 no_cache=0
4945 # Check whether --enable-statusbar or --disable-statusbar was given.
4946if test "${enable_statusbar+set}" = set; then
4947 enableval="$enable_statusbar"
4948
4949 if test "$enableval" = yes; then
4950 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4951 else
4952 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4953 fi
4954
4955else
4956
4957 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4958 if test "x$LINE" != x ; then
4959 eval "DEFAULT_$LINE"
4960 else
4961 no_cache=1
4962 fi
4963
4964 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4965
4966fi
4967
4968
4969 eval "$ac_cv_use_statusbar"
4970 if test "$no_cache" != 1; then
4971 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4972 fi
4973
4974 if test "$wxUSE_STATUSBAR" = yes; then
4975 echo "$ac_t""yes" 1>&6
4976 else
4977 echo "$ac_t""no" 1>&6
4978 fi
4979
4980
4981 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
360d6699 4982echo "configure:4983: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
4983 no_cache=0
4984 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4985if test "${enable_tabdialog+set}" = set; then
4986 enableval="$enable_tabdialog"
4987
4988 if test "$enableval" = yes; then
4989 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4990 else
4991 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4992 fi
4993
4994else
4995
4996 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4997 if test "x$LINE" != x ; then
4998 eval "DEFAULT_$LINE"
4999 else
5000 no_cache=1
5001 fi
5002
5003 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5004
5005fi
5006
5007
5008 eval "$ac_cv_use_tabdialog"
5009 if test "$no_cache" != 1; then
5010 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5011 fi
5012
5013 if test "$wxUSE_TABDIALOG" = yes; then
5014 echo "$ac_t""yes" 1>&6
5015 else
5016 echo "$ac_t""no" 1>&6
5017 fi
5018
5019
5020 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
360d6699 5021echo "configure:5022: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5022 no_cache=0
5023 # Check whether --enable-toolbar or --disable-toolbar was given.
5024if test "${enable_toolbar+set}" = set; then
5025 enableval="$enable_toolbar"
5026
5027 if test "$enableval" = yes; then
5028 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5029 else
5030 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5031 fi
5032
5033else
5034
5035 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5036 if test "x$LINE" != x ; then
5037 eval "DEFAULT_$LINE"
5038 else
5039 no_cache=1
5040 fi
5041
5042 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5043
5044fi
5045
5046
5047 eval "$ac_cv_use_toolbar"
5048 if test "$no_cache" != 1; then
5049 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5050 fi
5051
5052 if test "$wxUSE_TOOLBAR" = yes; then
5053 echo "$ac_t""yes" 1>&6
5054 else
5055 echo "$ac_t""no" 1>&6
5056 fi
5057
5058
360d6699
VZ
5059 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
5060echo "configure:5061: checking "for --enable-tbarnative"" >&5
5061 no_cache=0
5062 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5063if test "${enable_tbarnative+set}" = set; then
5064 enableval="$enable_tbarnative"
5065
5066 if test "$enableval" = yes; then
5067 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5068 else
5069 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5070 fi
5071
5072else
5073
5074 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5075 if test "x$LINE" != x ; then
5076 eval "DEFAULT_$LINE"
5077 else
5078 no_cache=1
5079 fi
5080
5081 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5082
5083fi
5084
5085
5086 eval "$ac_cv_use_tbarnative"
5087 if test "$no_cache" != 1; then
5088 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5089 fi
5090
5091 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5092 echo "$ac_t""yes" 1>&6
5093 else
5094 echo "$ac_t""no" 1>&6
5095 fi
5096
5097
5098 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
5099echo "configure:5100: checking "for --enable-tbarsmpl"" >&5
5100 no_cache=0
5101 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5102if test "${enable_tbarsmpl+set}" = set; then
5103 enableval="$enable_tbarsmpl"
5104
5105 if test "$enableval" = yes; then
5106 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5107 else
5108 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5109 fi
5110
5111else
5112
5113 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5114 if test "x$LINE" != x ; then
5115 eval "DEFAULT_$LINE"
5116 else
5117 no_cache=1
5118 fi
5119
5120 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5121
5122fi
5123
5124
5125 eval "$ac_cv_use_tbarsmpl"
5126 if test "$no_cache" != 1; then
5127 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5128 fi
5129
5130 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5131 echo "$ac_t""yes" 1>&6
5132 else
5133 echo "$ac_t""no" 1>&6
5134 fi
5135
5136
10f2d63a 5137 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
360d6699 5138echo "configure:5139: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5139 no_cache=0
5140 # Check whether --enable-treectrl or --disable-treectrl was given.
5141if test "${enable_treectrl+set}" = set; then
5142 enableval="$enable_treectrl"
5143
5144 if test "$enableval" = yes; then
5145 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5146 else
5147 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5148 fi
5149
5150else
5151
5152 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5153 if test "x$LINE" != x ; then
5154 eval "DEFAULT_$LINE"
5155 else
5156 no_cache=1
5157 fi
5158
5159 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5160
5161fi
5162
5163
5164 eval "$ac_cv_use_treectrl"
5165 if test "$no_cache" != 1; then
5166 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5167 fi
5168
5169 if test "$wxUSE_TREECTRL" = yes; then
5170 echo "$ac_t""yes" 1>&6
5171 else
5172 echo "$ac_t""no" 1>&6
5173 fi
5174
5175
5176
5177
5178 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
360d6699 5179echo "configure:5180: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5180 no_cache=0
5181 # Check whether --enable-commondlg or --disable-commondlg was given.
5182if test "${enable_commondlg+set}" = set; then
5183 enableval="$enable_commondlg"
5184
5185 if test "$enableval" = yes; then
5186 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5187 else
5188 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5189 fi
5190
5191else
5192
5193 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5194 if test "x$LINE" != x ; then
5195 eval "DEFAULT_$LINE"
5196 else
5197 no_cache=1
5198 fi
5199
5200 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5201
5202fi
5203
5204
5205 eval "$ac_cv_use_commondlg"
5206 if test "$no_cache" != 1; then
5207 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5208 fi
5209
5210 if test "$wxUSE_COMMONDLGS" = yes; then
5211 echo "$ac_t""yes" 1>&6
5212 else
5213 echo "$ac_t""no" 1>&6
5214 fi
5215
5216
5217 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
360d6699 5218echo "configure:5219: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5219 no_cache=0
5220 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5221if test "${enable_dirdlg+set}" = set; then
5222 enableval="$enable_dirdlg"
5223
5224 if test "$enableval" = yes; then
5225 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5226 else
5227 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5228 fi
5229
5230else
5231
5232 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5233 if test "x$LINE" != x ; then
5234 eval "DEFAULT_$LINE"
5235 else
5236 no_cache=1
5237 fi
5238
5239 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5240
5241fi
5242
5243
5244 eval "$ac_cv_use_dirdlg"
5245 if test "$no_cache" != 1; then
5246 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5247 fi
5248
5249 if test "$wxUSE_DIRDLG" = yes; then
5250 echo "$ac_t""yes" 1>&6
5251 else
5252 echo "$ac_t""no" 1>&6
5253 fi
5254
5255
5256 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
360d6699 5257echo "configure:5258: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5258 no_cache=0
5259 # Check whether --enable-textdlg or --disable-textdlg was given.
5260if test "${enable_textdlg+set}" = set; then
5261 enableval="$enable_textdlg"
5262
5263 if test "$enableval" = yes; then
5264 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5265 else
5266 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5267 fi
5268
5269else
5270
5271 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5272 if test "x$LINE" != x ; then
5273 eval "DEFAULT_$LINE"
5274 else
5275 no_cache=1
5276 fi
5277
5278 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5279
5280fi
5281
5282
5283 eval "$ac_cv_use_textdlg"
5284 if test "$no_cache" != 1; then
5285 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5286 fi
5287
5288 if test "$wxUSE_TEXTDLG" = yes; then
5289 echo "$ac_t""yes" 1>&6
5290 else
5291 echo "$ac_t""no" 1>&6
5292 fi
5293
5294
5295 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
360d6699 5296echo "configure:5297: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5297 no_cache=0
5298 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5299if test "${enable_tipdlg+set}" = set; then
5300 enableval="$enable_tipdlg"
5301
5302 if test "$enableval" = yes; then
5303 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5304 else
5305 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5306 fi
5307
5308else
5309
5310 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5311 if test "x$LINE" != x ; then
5312 eval "DEFAULT_$LINE"
5313 else
5314 no_cache=1
5315 fi
5316
5317 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5318
5319fi
5320
5321
5322 eval "$ac_cv_use_tipdlg"
5323 if test "$no_cache" != 1; then
5324 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5325 fi
5326
5327 if test "$wxUSE_STARTUP_TIPS" = yes; then
5328 echo "$ac_t""yes" 1>&6
5329 else
5330 echo "$ac_t""no" 1>&6
5331 fi
5332
5333
5334 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
360d6699 5335echo "configure:5336: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5336 no_cache=0
5337 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5338if test "${enable_progressdlg+set}" = set; then
5339 enableval="$enable_progressdlg"
5340
5341 if test "$enableval" = yes; then
5342 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5343 else
5344 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5345 fi
5346
5347else
5348
5349 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5350 if test "x$LINE" != x ; then
5351 eval "DEFAULT_$LINE"
5352 else
5353 no_cache=1
5354 fi
5355
5356 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5357
5358fi
5359
5360
5361 eval "$ac_cv_use_progressdlg"
5362 if test "$no_cache" != 1; then
5363 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5364 fi
5365
5366 if test "$wxUSE_PROGRESSDLG" = yes; then
5367 echo "$ac_t""yes" 1>&6
5368 else
5369 echo "$ac_t""no" 1>&6
5370 fi
5371
5372
5373 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
360d6699 5374echo "configure:5375: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5375 no_cache=0
5376 # Check whether --enable-miniframe or --disable-miniframe was given.
5377if test "${enable_miniframe+set}" = set; then
5378 enableval="$enable_miniframe"
5379
5380 if test "$enableval" = yes; then
5381 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5382 else
5383 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5384 fi
5385
5386else
5387
5388 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5389 if test "x$LINE" != x ; then
5390 eval "DEFAULT_$LINE"
5391 else
5392 no_cache=1
5393 fi
5394
5395 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5396
5397fi
5398
5399
5400 eval "$ac_cv_use_miniframe"
5401 if test "$no_cache" != 1; then
5402 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5403 fi
5404
5405 if test "$wxUSE_MINIFRAME" = yes; then
5406 echo "$ac_t""yes" 1>&6
5407 else
5408 echo "$ac_t""no" 1>&6
5409 fi
5410
5411
5412 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
360d6699 5413echo "configure:5414: checking "for --enable-html"" >&5
10f2d63a
VZ
5414 no_cache=0
5415 # Check whether --enable-html or --disable-html was given.
5416if test "${enable_html+set}" = set; then
5417 enableval="$enable_html"
5418
5419 if test "$enableval" = yes; then
5420 ac_cv_use_html='wxUSE_HTML=yes'
5421 else
5422 ac_cv_use_html='wxUSE_HTML=no'
5423 fi
5424
5425else
5426
5427 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5428 if test "x$LINE" != x ; then
5429 eval "DEFAULT_$LINE"
5430 else
5431 no_cache=1
5432 fi
5433
5434 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5435
5436fi
5437
5438
5439 eval "$ac_cv_use_html"
5440 if test "$no_cache" != 1; then
5441 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5442 fi
5443
5444 if test "$wxUSE_HTML" = yes; then
5445 echo "$ac_t""yes" 1>&6
5446 else
5447 echo "$ac_t""no" 1>&6
5448 fi
5449
5450
5451 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
360d6699 5452echo "configure:5453: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5453 no_cache=0
5454 # Check whether --enable-tooltips or --disable-tooltips was given.
5455if test "${enable_tooltips+set}" = set; then
5456 enableval="$enable_tooltips"
5457
5458 if test "$enableval" = yes; then
5459 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5460 else
5461 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5462 fi
5463
5464else
5465
5466 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5467 if test "x$LINE" != x ; then
5468 eval "DEFAULT_$LINE"
5469 else
5470 no_cache=1
5471 fi
5472
5473 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5474
5475fi
5476
5477
5478 eval "$ac_cv_use_tooltips"
5479 if test "$no_cache" != 1; then
5480 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5481 fi
5482
5483 if test "$wxUSE_TOOLTIPS" = yes; then
5484 echo "$ac_t""yes" 1>&6
5485 else
5486 echo "$ac_t""no" 1>&6
5487 fi
5488
5489
5490 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
360d6699 5491echo "configure:5492: checking "for --enable-splines"" >&5
10f2d63a
VZ
5492 no_cache=0
5493 # Check whether --enable-splines or --disable-splines was given.
5494if test "${enable_splines+set}" = set; then
5495 enableval="$enable_splines"
5496
5497 if test "$enableval" = yes; then
5498 ac_cv_use_splines='wxUSE_SPLINES=yes'
5499 else
5500 ac_cv_use_splines='wxUSE_SPLINES=no'
5501 fi
5502
5503else
5504
5505 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5506 if test "x$LINE" != x ; then
5507 eval "DEFAULT_$LINE"
5508 else
5509 no_cache=1
5510 fi
5511
5512 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5513
5514fi
5515
5516
5517 eval "$ac_cv_use_splines"
5518 if test "$no_cache" != 1; then
5519 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5520 fi
5521
5522 if test "$wxUSE_SPLINES" = yes; then
5523 echo "$ac_t""yes" 1>&6
5524 else
5525 echo "$ac_t""no" 1>&6
5526 fi
5527
5528
5529 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
360d6699 5530echo "configure:5531: checking "for --enable-validators"" >&5
10f2d63a
VZ
5531 no_cache=0
5532 # Check whether --enable-validators or --disable-validators was given.
5533if test "${enable_validators+set}" = set; then
5534 enableval="$enable_validators"
5535
5536 if test "$enableval" = yes; then
5537 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5538 else
5539 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5540 fi
5541
5542else
5543
5544 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5545 if test "x$LINE" != x ; then
5546 eval "DEFAULT_$LINE"
5547 else
5548 no_cache=1
5549 fi
5550
5551 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5552
5553fi
5554
5555
5556 eval "$ac_cv_use_validators"
5557 if test "$no_cache" != 1; then
5558 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5559 fi
5560
5561 if test "$wxUSE_VALIDATORS" = yes; then
5562 echo "$ac_t""yes" 1>&6
5563 else
5564 echo "$ac_t""no" 1>&6
5565 fi
5566
5567
5568 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
360d6699 5569echo "configure:5570: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5570 no_cache=0
5571 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5572if test "${enable_busyinfo+set}" = set; then
5573 enableval="$enable_busyinfo"
5574
5575 if test "$enableval" = yes; then
5576 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5577 else
5578 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5579 fi
5580
5581else
5582
5583 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5584 if test "x$LINE" != x ; then
5585 eval "DEFAULT_$LINE"
5586 else
5587 no_cache=1
5588 fi
5589
5590 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5591
5592fi
5593
5594
5595 eval "$ac_cv_use_busyinfo"
5596 if test "$no_cache" != 1; then
5597 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5598 fi
5599
5600 if test "$wxUSE_BUSYINFO" = yes; then
5601 echo "$ac_t""yes" 1>&6
5602 else
5603 echo "$ac_t""no" 1>&6
5604 fi
5605
5606
5607
5608
5609 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
360d6699 5610echo "configure:5611: checking "for --enable-gif"" >&5
10f2d63a
VZ
5611 no_cache=0
5612 # Check whether --enable-gif or --disable-gif was given.
5613if test "${enable_gif+set}" = set; then
5614 enableval="$enable_gif"
5615
5616 if test "$enableval" = yes; then
5617 ac_cv_use_gif='wxUSE_GIF=yes'
5618 else
5619 ac_cv_use_gif='wxUSE_GIF=no'
5620 fi
5621
5622else
5623
5624 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5625 if test "x$LINE" != x ; then
5626 eval "DEFAULT_$LINE"
5627 else
5628 no_cache=1
5629 fi
5630
5631 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5632
5633fi
5634
5635
5636 eval "$ac_cv_use_gif"
5637 if test "$no_cache" != 1; then
5638 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5639 fi
5640
5641 if test "$wxUSE_GIF" = yes; then
5642 echo "$ac_t""yes" 1>&6
5643 else
5644 echo "$ac_t""no" 1>&6
5645 fi
5646
5647
5648 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
360d6699 5649echo "configure:5650: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5650 no_cache=0
5651 # Check whether --enable-pcx or --disable-pcx was given.
5652if test "${enable_pcx+set}" = set; then
5653 enableval="$enable_pcx"
5654
5655 if test "$enableval" = yes; then
5656 ac_cv_use_pcx='wxUSE_PCX=yes'
5657 else
5658 ac_cv_use_pcx='wxUSE_PCX=no'
5659 fi
5660
5661else
5662
5663 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5664 if test "x$LINE" != x ; then
5665 eval "DEFAULT_$LINE"
5666 else
5667 no_cache=1
5668 fi
5669
5670 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5671
5672fi
5673
5674
5675 eval "$ac_cv_use_pcx"
5676 if test "$no_cache" != 1; then
5677 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5678 fi
5679
5680 if test "$wxUSE_PCX" = yes; then
5681 echo "$ac_t""yes" 1>&6
5682 else
5683 echo "$ac_t""no" 1>&6
5684 fi
5685
5686
5687 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
360d6699 5688echo "configure:5689: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5689 no_cache=0
5690 # Check whether --enable-pnm or --disable-pnm was given.
5691if test "${enable_pnm+set}" = set; then
5692 enableval="$enable_pnm"
5693
5694 if test "$enableval" = yes; then
5695 ac_cv_use_pnm='wxUSE_PNM=yes'
5696 else
5697 ac_cv_use_pnm='wxUSE_PNM=no'
5698 fi
5699
5700else
5701
5702 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5703 if test "x$LINE" != x ; then
5704 eval "DEFAULT_$LINE"
5705 else
5706 no_cache=1
5707 fi
5708
5709 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5710
5711fi
5712
5713
5714 eval "$ac_cv_use_pnm"
5715 if test "$no_cache" != 1; then
5716 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5717 fi
5718
5719 if test "$wxUSE_PNM" = yes; then
5720 echo "$ac_t""yes" 1>&6
5721 else
5722 echo "$ac_t""no" 1>&6
5723 fi
5724
5725
5726
5727 echo "saving argument cache $wx_arg_cache_file"
5728 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5729
5730
5731
5732echo $ac_n "checking for toolkit""... $ac_c" 1>&6
360d6699 5733echo "configure:5734: checking for toolkit" >&5
10f2d63a
VZ
5734
5735if test "$wxUSE_GUI" = "yes"; then
5736
5737if test "$TOOLKIT_GIVEN" = 1; then
5738 for toolkit in `echo $ALL_TOOLKITS`; do
5739 var=wxUSE_$toolkit
5740 eval "value=\$${var}"
5741 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5742 done
5743else
5744 for toolkit in `echo $ALL_TOOLKITS`; do
5745 if test "$has_toolkit_in_cache" != 1; then
5746 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5747 else
5748 var=DEFAULT_wxUSE_$toolkit
5749 fi
5750 eval "wxUSE_$toolkit=\$${var}"
5751 done
5752fi
5753
5754NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5755
5756case "$NUM_TOOLKITS" in
5757 1)
5758 ;;
5759 0)
5760 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5761 ;;
5762 *)
5763 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5764esac
5765
5766for toolkit in `echo $ALL_TOOLKITS`; do
5767 var=wxUSE_$toolkit
5768 eval "value=\$${var}"
5769 if test "x$value" != x; then
5770 cache_var=CACHE_$toolkit
5771 eval "cache=\$${cache_var}"
5772 if test "$cache" = 1; then
5773 echo "$var=$value" >> ${wx_arg_cache_file}
5774 fi
5775 if test "$value" = 1; then
5776 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5777 fi
5778 fi
5779done
5780
5781else
5782 echo "$ac_t""base only" 1>&6
5783fi
5784
5785
5786cat > confcache <<\EOF
5787# This file is a shell script that caches the results of configure
5788# tests run on this system so they can be shared between configure
5789# scripts and configure runs. It is not useful on other systems.
5790# If it contains results you don't want to keep, you may remove or edit it.
5791#
5792# By default, configure uses ./config.cache as the cache file,
5793# creating it if it does not exist already. You can give configure
5794# the --cache-file=FILE option to use a different cache file; that is
5795# what configure does when it calls configure scripts in
5796# subdirectories, so they share the cache.
5797# Giving --cache-file=/dev/null disables caching, for debugging configure.
5798# config.status only pays attention to the cache file if you give it the
5799# --recheck option to rerun configure.
5800#
5801EOF
5802# The following way of writing the cache mishandles newlines in values,
5803# but we know of no workaround that is simple, portable, and efficient.
5804# So, don't put newlines in cache variables' values.
5805# Ultrix sh set writes to stderr and can't be redirected directly,
5806# and sets the high bit in the cache file unless we assign to the vars.
5807(set) 2>&1 |
5808 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5809 *ac_space=\ *)
5810 # `set' does not quote correctly, so add quotes (double-quote substitution
5811 # turns \\\\ into \\, and sed turns \\ into \).
5812 sed -n \
5813 -e "s/'/'\\\\''/g" \
5814 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5815 ;;
5816 *)
5817 # `set' quotes correctly as required by POSIX, so do not add quotes.
5818 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5819 ;;
5820 esac >> confcache
5821if cmp -s $cache_file confcache; then
5822 :
5823else
5824 if test -w $cache_file; then
5825 echo "updating cache $cache_file"
5826 cat confcache > $cache_file
5827 else
5828 echo "not updating unwritable cache $cache_file"
5829 fi
5830fi
5831rm -f confcache
5832
5833
5834if eval "test $host != $build"; then
5835 if eval "test $host_alias != NONE"; then
5836 CC=$host_alias-gcc
5837 CXX=$host_alias-c++
5838 AR=$host_alias-ar
5839 RANLIB=$host_alias-ranlib
5840 DLLTOOL=$host_alias-dlltool
5841 LD=$host_alias-ld
5842 NM=$host_alias-nm
5843 STRIP=$host_alias-strip
5844 fi
5845fi
5846
5847# Extract the first word of "gcc", so it can be a program name with args.
5848set dummy gcc; ac_word=$2
5849echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
360d6699 5850echo "configure:5851: checking for $ac_word" >&5
10f2d63a
VZ
5851if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5852 echo $ac_n "(cached) $ac_c" 1>&6
5853else
5854 if test -n "$CC"; then
5855 ac_cv_prog_CC="$CC" # Let the user override the test.
5856else
5857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5858 ac_dummy="$PATH"
5859 for ac_dir in $ac_dummy; do
5860 test -z "$ac_dir" && ac_dir=.
5861 if test -f $ac_dir/$ac_word; then
5862 ac_cv_prog_CC="gcc"
5863 break
5864 fi
5865 done
5866 IFS="$ac_save_ifs"
5867fi
5868fi
5869CC="$ac_cv_prog_CC"
5870if test -n "$CC"; then
5871 echo "$ac_t""$CC" 1>&6
5872else
5873 echo "$ac_t""no" 1>&6
5874fi
5875
5876if test -z "$CC"; then
5877 # Extract the first word of "cc", so it can be a program name with args.
5878set dummy cc; ac_word=$2
5879echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
360d6699 5880echo "configure:5881: checking for $ac_word" >&5
10f2d63a
VZ
5881if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5882 echo $ac_n "(cached) $ac_c" 1>&6
5883else
5884 if test -n "$CC"; then
5885 ac_cv_prog_CC="$CC" # Let the user override the test.
5886else
5887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5888 ac_prog_rejected=no
5889 ac_dummy="$PATH"
5890 for ac_dir in $ac_dummy; do
5891 test -z "$ac_dir" && ac_dir=.
5892 if test -f $ac_dir/$ac_word; then
5893 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5894 ac_prog_rejected=yes
5895 continue
5896 fi
5897 ac_cv_prog_CC="cc"
5898 break
5899 fi
5900 done
5901 IFS="$ac_save_ifs"
5902if test $ac_prog_rejected = yes; then
5903 # We found a bogon in the path, so make sure we never use it.
5904 set dummy $ac_cv_prog_CC
5905 shift
5906 if test $# -gt 0; then
5907 # We chose a different compiler from the bogus one.
5908 # However, it has the same basename, so the bogon will be chosen
5909 # first if we set CC to just the basename; use the full file name.
5910 shift
5911 set dummy "$ac_dir/$ac_word" "$@"
5912 shift
5913 ac_cv_prog_CC="$@"
5914 fi
5915fi
5916fi
5917fi
5918CC="$ac_cv_prog_CC"
5919if test -n "$CC"; then
5920 echo "$ac_t""$CC" 1>&6
5921else
5922 echo "$ac_t""no" 1>&6
5923fi
5924
5925 if test -z "$CC"; then
5926 case "`uname -s`" in
5927 *win32* | *WIN32*)
5928 # Extract the first word of "cl", so it can be a program name with args.
5929set dummy cl; ac_word=$2
5930echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
360d6699 5931echo "configure:5932: checking for $ac_word" >&5
10f2d63a
VZ
5932if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5933 echo $ac_n "(cached) $ac_c" 1>&6
5934else
5935 if test -n "$CC"; then
5936 ac_cv_prog_CC="$CC" # Let the user override the test.
5937else
5938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5939 ac_dummy="$PATH"
5940 for ac_dir in $ac_dummy; do
5941 test -z "$ac_dir" && ac_dir=.
5942 if test -f $ac_dir/$ac_word; then
5943 ac_cv_prog_CC="cl"
5944 break
5945 fi
5946 done
5947 IFS="$ac_save_ifs"
5948fi
5949fi
5950CC="$ac_cv_prog_CC"
5951if test -n "$CC"; then
5952 echo "$ac_t""$CC" 1>&6
5953else
5954 echo "$ac_t""no" 1>&6
5955fi
5956 ;;
5957 esac
5958 fi
5959 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5960fi
5961
5962echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
360d6699 5963echo "configure:5964: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
5964
5965ac_ext=c
5966# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5967ac_cpp='$CPP $CPPFLAGS'
5968ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5969ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5970cross_compiling=$ac_cv_prog_cc_cross
5971
5972cat > conftest.$ac_ext << EOF
5973
360d6699 5974#line 5975 "configure"
10f2d63a
VZ
5975#include "confdefs.h"
5976
5977main(){return(0);}
5978EOF
360d6699 5979if { (eval echo configure:5980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
5980 ac_cv_prog_cc_works=yes
5981 # If we can't run a trivial program, we are probably using a cross compiler.
5982 if (./conftest; exit) 2>/dev/null; then
5983 ac_cv_prog_cc_cross=no
5984 else
5985 ac_cv_prog_cc_cross=yes
5986 fi
5987else
5988 echo "configure: failed program was:" >&5
5989 cat conftest.$ac_ext >&5
5990 ac_cv_prog_cc_works=no
5991fi
5992rm -fr conftest*
5993ac_ext=c
5994# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5995ac_cpp='$CPP $CPPFLAGS'
5996ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5997ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5998cross_compiling=$ac_cv_prog_cc_cross
5999
6000echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6001if test $ac_cv_prog_cc_works = no; then
6002 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6003fi
6004echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
360d6699 6005echo "configure:6006: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6006echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6007cross_compiling=$ac_cv_prog_cc_cross
6008
6009echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
360d6699 6010echo "configure:6011: checking whether we are using GNU C" >&5
10f2d63a
VZ
6011if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6012 echo $ac_n "(cached) $ac_c" 1>&6
6013else
6014 cat > conftest.c <<EOF
6015#ifdef __GNUC__
6016 yes;
6017#endif
6018EOF
360d6699 6019if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6020 ac_cv_prog_gcc=yes
6021else
6022 ac_cv_prog_gcc=no
6023fi
6024fi
6025
6026echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6027
6028if test $ac_cv_prog_gcc = yes; then
6029 GCC=yes
6030else
6031 GCC=
6032fi
6033
6034ac_test_CFLAGS="${CFLAGS+set}"
6035ac_save_CFLAGS="$CFLAGS"
6036CFLAGS=
6037echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
360d6699 6038echo "configure:6039: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6039if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6041else
6042 echo 'void f(){}' > conftest.c
6043if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6044 ac_cv_prog_cc_g=yes
6045else
6046 ac_cv_prog_cc_g=no
6047fi
6048rm -f conftest*
6049
6050fi
6051
6052echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6053if test "$ac_test_CFLAGS" = set; then
6054 CFLAGS="$ac_save_CFLAGS"
6055elif test $ac_cv_prog_cc_g = yes; then
6056 if test "$GCC" = yes; then
6057 CFLAGS="-g -O2"
6058 else
6059 CFLAGS="-g"
6060 fi
6061else
6062 if test "$GCC" = yes; then
6063 CFLAGS="-O2"
6064 else
6065 CFLAGS=
6066 fi
6067fi
6068
6069
6070CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6071
6072echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
360d6699 6073echo "configure:6074: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6074# On Suns, sometimes $CPP names a directory.
6075if test -n "$CPP" && test -d "$CPP"; then
6076 CPP=
6077fi
6078if test -z "$CPP"; then
6079if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6080 echo $ac_n "(cached) $ac_c" 1>&6
6081else
6082 # This must be in double quotes, not single quotes, because CPP may get
6083 # substituted into the Makefile and "${CC-cc}" will confuse make.
6084 CPP="${CC-cc} -E"
6085 # On the NeXT, cc -E runs the code through the compiler's parser,
6086 # not just through cpp.
6087 cat > conftest.$ac_ext <<EOF
360d6699 6088#line 6089 "configure"
10f2d63a
VZ
6089#include "confdefs.h"
6090#include <assert.h>
6091Syntax Error
6092EOF
6093ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
360d6699 6094{ (eval echo configure:6095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6095ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6096if test -z "$ac_err"; then
6097 :
6098else
6099 echo "$ac_err" >&5
6100 echo "configure: failed program was:" >&5
6101 cat conftest.$ac_ext >&5
6102 rm -rf conftest*
6103 CPP="${CC-cc} -E -traditional-cpp"
6104 cat > conftest.$ac_ext <<EOF
360d6699 6105#line 6106 "configure"
10f2d63a
VZ
6106#include "confdefs.h"
6107#include <assert.h>
6108Syntax Error
6109EOF
6110ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
360d6699 6111{ (eval echo configure:6112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6112ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6113if test -z "$ac_err"; then
6114 :
6115else
6116 echo "$ac_err" >&5
6117 echo "configure: failed program was:" >&5
6118 cat conftest.$ac_ext >&5
6119 rm -rf conftest*
6120 CPP="${CC-cc} -nologo -E"
6121 cat > conftest.$ac_ext <<EOF
360d6699 6122#line 6123 "configure"
10f2d63a
VZ
6123#include "confdefs.h"
6124#include <assert.h>
6125Syntax Error
6126EOF
6127ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
360d6699 6128{ (eval echo configure:6129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6129ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6130if test -z "$ac_err"; then
6131 :
6132else
6133 echo "$ac_err" >&5
6134 echo "configure: failed program was:" >&5
6135 cat conftest.$ac_ext >&5
6136 rm -rf conftest*
6137 CPP=/lib/cpp
6138fi
6139rm -f conftest*
6140fi
6141rm -f conftest*
6142fi
6143rm -f conftest*
6144 ac_cv_prog_CPP="$CPP"
6145fi
6146 CPP="$ac_cv_prog_CPP"
6147else
6148 ac_cv_prog_CPP="$CPP"
6149fi
6150echo "$ac_t""$CPP" 1>&6
6151
6152
6153if test $ac_cv_prog_gcc = yes; then
6154 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
360d6699 6155echo "configure:6156: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6156if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6157 echo $ac_n "(cached) $ac_c" 1>&6
6158else
6159 ac_pattern="Autoconf.*'x'"
6160 cat > conftest.$ac_ext <<EOF
360d6699 6161#line 6162 "configure"
10f2d63a
VZ
6162#include "confdefs.h"
6163#include <sgtty.h>
6164Autoconf TIOCGETP
6165EOF
6166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6167 egrep "$ac_pattern" >/dev/null 2>&1; then
6168 rm -rf conftest*
6169 ac_cv_prog_gcc_traditional=yes
6170else
6171 rm -rf conftest*
6172 ac_cv_prog_gcc_traditional=no
6173fi
6174rm -f conftest*
6175
6176
6177 if test $ac_cv_prog_gcc_traditional = no; then
6178 cat > conftest.$ac_ext <<EOF
360d6699 6179#line 6180 "configure"
10f2d63a
VZ
6180#include "confdefs.h"
6181#include <termio.h>
6182Autoconf TCGETA
6183EOF
6184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6185 egrep "$ac_pattern" >/dev/null 2>&1; then
6186 rm -rf conftest*
6187 ac_cv_prog_gcc_traditional=yes
6188fi
6189rm -f conftest*
6190
6191 fi
6192fi
6193
6194echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6195 if test $ac_cv_prog_gcc_traditional = yes; then
6196 CC="$CC -traditional"
6197 fi
6198fi
6199
6200
6201
6202ac_ext=C
6203# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6204ac_cpp='$CXXCPP $CPPFLAGS'
6205ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6206ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6207cross_compiling=$ac_cv_prog_cxx_cross
6208
6209
6210for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6211do
6212# Extract the first word of "$ac_prog", so it can be a program name with args.
6213set dummy $ac_prog; ac_word=$2
6214echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
360d6699 6215echo "configure:6216: checking for $ac_word" >&5
10f2d63a
VZ
6216if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6217 echo $ac_n "(cached) $ac_c" 1>&6
6218else
6219 if test -n "$CXX"; then
6220 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6221else
6222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6223 ac_dummy="$PATH"
6224 for ac_dir in $ac_dummy; do
6225 test -z "$ac_dir" && ac_dir=.
6226 if test -f $ac_dir/$ac_word; then
6227 ac_cv_prog_CXX="$ac_prog"
6228 break
6229 fi
6230 done
6231 IFS="$ac_save_ifs"
6232fi
6233fi
6234CXX="$ac_cv_prog_CXX"
6235if test -n "$CXX"; then
6236 echo "$ac_t""$CXX" 1>&6
6237else
6238 echo "$ac_t""no" 1>&6
6239fi
6240
6241test -n "$CXX" && break
6242done
6243test -n "$CXX" || CXX="gcc"
6244
6245
6246echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
360d6699 6247echo "configure:6248: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6248
6249ac_ext=C
6250# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6251ac_cpp='$CXXCPP $CPPFLAGS'
6252ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6253ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6254cross_compiling=$ac_cv_prog_cxx_cross
6255
6256cat > conftest.$ac_ext << EOF
6257
360d6699 6258#line 6259 "configure"
10f2d63a
VZ
6259#include "confdefs.h"
6260
6261int main(){return(0);}
6262EOF
360d6699 6263if { (eval echo configure:6264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6264 ac_cv_prog_cxx_works=yes
6265 # If we can't run a trivial program, we are probably using a cross compiler.
6266 if (./conftest; exit) 2>/dev/null; then
6267 ac_cv_prog_cxx_cross=no
6268 else
6269 ac_cv_prog_cxx_cross=yes
6270 fi
6271else
6272 echo "configure: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6274 ac_cv_prog_cxx_works=no
6275fi
6276rm -fr conftest*
6277ac_ext=C
6278# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6279ac_cpp='$CXXCPP $CPPFLAGS'
6280ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6281ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6282cross_compiling=$ac_cv_prog_cxx_cross
6283
6284echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6285if test $ac_cv_prog_cxx_works = no; then
6286 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6287fi
6288echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
360d6699 6289echo "configure:6290: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6290echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6291cross_compiling=$ac_cv_prog_cxx_cross
6292
6293echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
360d6699 6294echo "configure:6295: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6295if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6296 echo $ac_n "(cached) $ac_c" 1>&6
6297else
6298 cat > conftest.C <<EOF
6299#ifdef __GNUC__
6300 yes;
6301#endif
6302EOF
360d6699 6303if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6304 ac_cv_prog_gxx=yes
6305else
6306 ac_cv_prog_gxx=no
6307fi
6308fi
6309
6310echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6311
6312if test $ac_cv_prog_gxx = yes; then
6313 GXX=yes
6314else
6315 GXX=
6316fi
6317
6318ac_test_CXXFLAGS="${CXXFLAGS+set}"
6319ac_save_CXXFLAGS="$CXXFLAGS"
6320CXXFLAGS=
6321echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
360d6699 6322echo "configure:6323: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6323if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6324 echo $ac_n "(cached) $ac_c" 1>&6
6325else
6326 echo 'void f(){}' > conftest.cc
6327if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6328 ac_cv_prog_cxx_g=yes
6329else
6330 ac_cv_prog_cxx_g=no
6331fi
6332rm -f conftest*
6333
6334fi
6335
6336echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6337if test "$ac_test_CXXFLAGS" = set; then
6338 CXXFLAGS="$ac_save_CXXFLAGS"
6339elif test $ac_cv_prog_cxx_g = yes; then
6340 if test "$GXX" = yes; then
6341 CXXFLAGS="-g -O2"
6342 else
6343 CXXFLAGS="-g"
6344 fi
6345else
6346 if test "$GXX" = yes; then
6347 CXXFLAGS="-O2"
6348 else
6349 CXXFLAGS=
6350 fi
6351fi
6352
6353
6354echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
360d6699 6355echo "configure:6356: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6356if test -z "$CXXCPP"; then
6357if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6358 echo $ac_n "(cached) $ac_c" 1>&6
6359else
6360 ac_ext=C
6361# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6362ac_cpp='$CXXCPP $CPPFLAGS'
6363ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6364ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6365cross_compiling=$ac_cv_prog_cxx_cross
6366 CXXCPP="${CXX-g++} -E"
6367 cat > conftest.$ac_ext <<EOF
360d6699 6368#line 6369 "configure"
10f2d63a
VZ
6369#include "confdefs.h"
6370#include <stdlib.h>
6371EOF
6372ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
360d6699 6373{ (eval echo configure:6374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6374ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6375if test -z "$ac_err"; then
6376 :
6377else
6378 echo "$ac_err" >&5
6379 echo "configure: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6381 rm -rf conftest*
6382 CXXCPP=/lib/cpp
6383fi
6384rm -f conftest*
6385 ac_cv_prog_CXXCPP="$CXXCPP"
6386ac_ext=C
6387# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6388ac_cpp='$CXXCPP $CPPFLAGS'
6389ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6390ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6391cross_compiling=$ac_cv_prog_cxx_cross
6392fi
6393fi
6394CXXCPP="$ac_cv_prog_CXXCPP"
6395echo "$ac_t""$CXXCPP" 1>&6
6396
6397
6398CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6399
6400ac_ext=c
6401# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6402ac_cpp='$CPP $CPPFLAGS'
6403ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6404ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6405cross_compiling=$ac_cv_prog_cc_cross
6406
6407
6408# Extract the first word of "ranlib", so it can be a program name with args.
6409set dummy ranlib; ac_word=$2
6410echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
360d6699 6411echo "configure:6412: checking for $ac_word" >&5
10f2d63a
VZ
6412if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6413 echo $ac_n "(cached) $ac_c" 1>&6
6414else
6415 if test -n "$RANLIB"; then
6416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6417else
6418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6419 ac_dummy="$PATH"
6420 for ac_dir in $ac_dummy; do
6421 test -z "$ac_dir" && ac_dir=.
6422 if test -f $ac_dir/$ac_word; then
6423 ac_cv_prog_RANLIB="ranlib"
6424 break
6425 fi
6426 done
6427 IFS="$ac_save_ifs"
6428 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6429fi
6430fi
6431RANLIB="$ac_cv_prog_RANLIB"
6432if test -n "$RANLIB"; then
6433 echo "$ac_t""$RANLIB" 1>&6
6434else
6435 echo "$ac_t""no" 1>&6
6436fi
6437
6438
6439# Extract the first word of "ar", so it can be a program name with args.
6440set dummy ar; ac_word=$2
6441echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
360d6699 6442echo "configure:6443: checking for $ac_word" >&5
10f2d63a
VZ
6443if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6444 echo $ac_n "(cached) $ac_c" 1>&6
6445else
6446 if test -n "$AR"; then
6447 ac_cv_prog_AR="$AR" # Let the user override the test.
6448else
6449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6450 ac_dummy="$PATH"
6451 for ac_dir in $ac_dummy; do
6452 test -z "$ac_dir" && ac_dir=.
6453 if test -f $ac_dir/$ac_word; then
6454 ac_cv_prog_AR="ar"
6455 break
6456 fi
6457 done
6458 IFS="$ac_save_ifs"
6459 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6460fi
6461fi
6462AR="$ac_cv_prog_AR"
6463if test -n "$AR"; then
6464 echo "$ac_t""$AR" 1>&6
6465else
6466 echo "$ac_t""no" 1>&6
6467fi
6468
6469
6470# Find a good install program. We prefer a C program (faster),
6471# so one script is as good as another. But avoid the broken or
6472# incompatible versions:
6473# SysV /etc/install, /usr/sbin/install
6474# SunOS /usr/etc/install
6475# IRIX /sbin/install
6476# AIX /bin/install
6477# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6478# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6479# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6480# ./install, which can be erroneously created by make from ./install.sh.
6481echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
360d6699 6482echo "configure:6483: checking for a BSD compatible install" >&5
10f2d63a
VZ
6483if test -z "$INSTALL"; then
6484if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6485 echo $ac_n "(cached) $ac_c" 1>&6
6486else
6487 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6488 for ac_dir in $PATH; do
6489 # Account for people who put trailing slashes in PATH elements.
6490 case "$ac_dir/" in
6491 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6492 *)
6493 # OSF1 and SCO ODT 3.0 have their own names for install.
6494 # Don't use installbsd from OSF since it installs stuff as root
6495 # by default.
6496 for ac_prog in ginstall scoinst install; do
6497 if test -f $ac_dir/$ac_prog; then
6498 if test $ac_prog = install &&
6499 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6500 # AIX install. It has an incompatible calling convention.
6501 :
6502 else
6503 ac_cv_path_install="$ac_dir/$ac_prog -c"
6504 break 2
6505 fi
6506 fi
6507 done
6508 ;;
6509 esac
6510 done
6511 IFS="$ac_save_IFS"
6512
6513fi
6514 if test "${ac_cv_path_install+set}" = set; then
6515 INSTALL="$ac_cv_path_install"
6516 else
6517 # As a last resort, use the slow shell script. We don't cache a
6518 # path for INSTALL within a source directory, because that will
6519 # break other packages using the cache if that directory is
6520 # removed, or if the path is relative.
6521 INSTALL="$ac_install_sh"
6522 fi
6523fi
6524echo "$ac_t""$INSTALL" 1>&6
6525
6526# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6527# It thinks the first close brace ends the variable substitution.
6528test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6529
6530test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6531
6532test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6533
6534
6535# Extract the first word of "strip", so it can be a program name with args.
6536set dummy strip; ac_word=$2
6537echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
360d6699 6538echo "configure:6539: checking for $ac_word" >&5
10f2d63a
VZ
6539if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
6541else
6542 if test -n "$STRIP"; then
6543 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6544else
6545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6546 ac_dummy="$PATH"
6547 for ac_dir in $ac_dummy; do
6548 test -z "$ac_dir" && ac_dir=.
6549 if test -f $ac_dir/$ac_word; then
6550 ac_cv_prog_STRIP="strip"
6551 break
6552 fi
6553 done
6554 IFS="$ac_save_ifs"
6555 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6556fi
6557fi
6558STRIP="$ac_cv_prog_STRIP"
6559if test -n "$STRIP"; then
6560 echo "$ac_t""$STRIP" 1>&6
6561else
6562 echo "$ac_t""no" 1>&6
6563fi
6564
6565
6566echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
360d6699 6567echo "configure:6568: checking "make for VPATH support"" >&5
10f2d63a
VZ
6568cat - << EOF > confMake
6569check : file
6570 cp \$? \$@
6571 cp \$? final_file
6572EOF
6573
6574if test ! -d sub ; then
6575 mkdir sub
6576fi
6577echo dummy > sub/file
6578${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6579RESULT=$?
6580rm -f sub/file check final_file confMake
6581rmdir sub
6582if test "$RESULT" = 0; then
6583 echo "$ac_t""yes" 1>&6
6584else
6585 echo "$ac_t""no" 1>&6
6586 { echo "configure: error: You need a make-utility that is able to use the variable
6587VPATH correctly.
6588If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6589fi
6590
6591for ac_prog in 'bison -y' byacc
6592do
6593# Extract the first word of "$ac_prog", so it can be a program name with args.
6594set dummy $ac_prog; ac_word=$2
6595echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
360d6699 6596echo "configure:6597: checking for $ac_word" >&5
10f2d63a
VZ
6597if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6598 echo $ac_n "(cached) $ac_c" 1>&6
6599else
6600 if test -n "$YACC"; then
6601 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6602else
6603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6604 ac_dummy="$PATH"
6605 for ac_dir in $ac_dummy; do
6606 test -z "$ac_dir" && ac_dir=.
6607 if test -f $ac_dir/$ac_word; then
6608 ac_cv_prog_YACC="$ac_prog"
6609 break
6610 fi
6611 done
6612 IFS="$ac_save_ifs"
6613fi
6614fi
6615YACC="$ac_cv_prog_YACC"
6616if test -n "$YACC"; then
6617 echo "$ac_t""$YACC" 1>&6
6618else
6619 echo "$ac_t""no" 1>&6
6620fi
6621
6622test -n "$YACC" && break
6623done
6624test -n "$YACC" || YACC="yacc"
6625
6626
6627# Extract the first word of "flex", so it can be a program name with args.
6628set dummy flex; ac_word=$2
6629echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
360d6699 6630echo "configure:6631: checking for $ac_word" >&5
10f2d63a
VZ
6631if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6632 echo $ac_n "(cached) $ac_c" 1>&6
6633else
6634 if test -n "$LEX"; then
6635 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6636else
6637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6638 ac_dummy="$PATH"
6639 for ac_dir in $ac_dummy; do
6640 test -z "$ac_dir" && ac_dir=.
6641 if test -f $ac_dir/$ac_word; then
6642 ac_cv_prog_LEX="flex"
6643 break
6644 fi
6645 done
6646 IFS="$ac_save_ifs"
6647 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6648fi
6649fi
6650LEX="$ac_cv_prog_LEX"
6651if test -n "$LEX"; then
6652 echo "$ac_t""$LEX" 1>&6
6653else
6654 echo "$ac_t""no" 1>&6
6655fi
6656
6657if test -z "$LEXLIB"
6658then
6659 case "$LEX" in
6660 flex*) ac_lib=fl ;;
6661 *) ac_lib=l ;;
6662 esac
6663 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
360d6699 6664echo "configure:6665: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6665ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6666if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6668else
6669 ac_save_LIBS="$LIBS"
6670LIBS="-l$ac_lib $LIBS"
6671cat > conftest.$ac_ext <<EOF
360d6699 6672#line 6673 "configure"
10f2d63a
VZ
6673#include "confdefs.h"
6674/* Override any gcc2 internal prototype to avoid an error. */
6675/* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6677char yywrap();
6678
6679int main() {
6680yywrap()
6681; return 0; }
6682EOF
360d6699 6683if { (eval echo configure:6684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6684 rm -rf conftest*
6685 eval "ac_cv_lib_$ac_lib_var=yes"
6686else
6687 echo "configure: failed program was:" >&5
6688 cat conftest.$ac_ext >&5
6689 rm -rf conftest*
6690 eval "ac_cv_lib_$ac_lib_var=no"
6691fi
6692rm -f conftest*
6693LIBS="$ac_save_LIBS"
6694
6695fi
6696if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6697 echo "$ac_t""yes" 1>&6
6698 LEXLIB="-l$ac_lib"
6699else
6700 echo "$ac_t""no" 1>&6
6701fi
6702
6703fi
6704
6705
6706echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
360d6699 6707echo "configure:6708: checking whether ln -s works" >&5
10f2d63a
VZ
6708if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6709 echo $ac_n "(cached) $ac_c" 1>&6
6710else
6711 rm -f conftestdata
6712if ln -s X conftestdata 2>/dev/null
6713then
6714 rm -f conftestdata
6715 ac_cv_prog_LN_S="ln -s"
6716else
6717 ac_cv_prog_LN_S=ln
6718fi
6719fi
6720LN_S="$ac_cv_prog_LN_S"
6721if test "$ac_cv_prog_LN_S" = "ln -s"; then
6722 echo "$ac_t""yes" 1>&6
6723else
6724 echo "$ac_t""no" 1>&6
6725fi
6726
6727
6728
6729SEARCH_INCLUDE="\
6730 /usr/local/include \
6731 \
6732 /usr/Motif-1.2/include \
6733 /usr/Motif-2.1/include \
6734 \
6735 /usr/include/Motif1.2 \
6736 /opt/xpm/include/X11 \
6737 /opt/GBxpm/include/ \
6738 /opt/GBxpm/X11/include/ \
6739 \
6740 /usr/Motif1.2/include \
6741 /usr/dt/include \
afc31813
VZ
6742 /usr/openwin/include \
6743 \
10f2d63a
VZ
6744 /usr/include/Xm \
6745 \
6746 /usr/X11R6/include \
afc31813 6747 /usr/X11R6.4/include \
10f2d63a
VZ
6748 /usr/X11R5/include \
6749 /usr/X11R4/include \
6750 \
10f2d63a
VZ
6751 /usr/include/X11R6 \
6752 /usr/include/X11R5 \
6753 /usr/include/X11R4 \
6754 \
6755 /usr/local/X11R6/include \
6756 /usr/local/X11R5/include \
6757 /usr/local/X11R4/include \
6758 \
6759 /usr/local/include/X11R6 \
6760 /usr/local/include/X11R5 \
6761 /usr/local/include/X11R4 \
6762 \
6763 /usr/X11/include \
6764 /usr/include/X11 \
6765 /usr/local/X11/include \
6766 /usr/local/include/X11 \
6767 \
6768 /usr/X386/include \
6769 /usr/x386/include \
6770 /usr/XFree86/include/X11 \
6771 \
6772 /usr/include/gtk \
6773 /usr/local/include/gtk \
6774 /usr/include/glib \
6775 /usr/local/include/glib \
6776 \
6777 /usr/include/qt \
6778 /usr/local/include/qt \
6779 \
6780 /usr/include/windows \
6781 /usr/include/wine \
6782 /usr/local/include/wine \
6783 \
6784 /usr/unsupported/include \
6785 /usr/athena/include \
6786 /usr/local/x11r5/include \
6787 /usr/lpp/Xamples/include \
6788 \
10f2d63a 6789 /usr/openwin/share/include \
928b5c08
VZ
6790 \
6791 /usr/include"
10f2d63a
VZ
6792
6793SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6794
6795
6796cat > confcache <<\EOF
6797# This file is a shell script that caches the results of configure
6798# tests run on this system so they can be shared between configure
6799# scripts and configure runs. It is not useful on other systems.
6800# If it contains results you don't want to keep, you may remove or edit it.
6801#
6802# By default, configure uses ./config.cache as the cache file,
6803# creating it if it does not exist already. You can give configure
6804# the --cache-file=FILE option to use a different cache file; that is
6805# what configure does when it calls configure scripts in
6806# subdirectories, so they share the cache.
6807# Giving --cache-file=/dev/null disables caching, for debugging configure.
6808# config.status only pays attention to the cache file if you give it the
6809# --recheck option to rerun configure.
6810#
6811EOF
6812# The following way of writing the cache mishandles newlines in values,
6813# but we know of no workaround that is simple, portable, and efficient.
6814# So, don't put newlines in cache variables' values.
6815# Ultrix sh set writes to stderr and can't be redirected directly,
6816# and sets the high bit in the cache file unless we assign to the vars.
6817(set) 2>&1 |
6818 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6819 *ac_space=\ *)
6820 # `set' does not quote correctly, so add quotes (double-quote substitution
6821 # turns \\\\ into \\, and sed turns \\ into \).
6822 sed -n \
6823 -e "s/'/'\\\\''/g" \
6824 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6825 ;;
6826 *)
6827 # `set' quotes correctly as required by POSIX, so do not add quotes.
6828 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6829 ;;
6830 esac >> confcache
6831if cmp -s $cache_file confcache; then
6832 :
6833else
6834 if test -w $cache_file; then
6835 echo "updating cache $cache_file"
6836 cat confcache > $cache_file
6837 else
6838 echo "not updating unwritable cache $cache_file"
6839 fi
6840fi
6841rm -f confcache
6842
6843
6844
6845if test "$wxUSE_GUI" = "yes"; then
6846
6847TOOLKIT=
6848TOOLKIT_INCLUDE=
6849
6850GUIOBJS=
6851COMMONOBJS=
6852GENERICOBJS=
6853
6854GUI_TK_LIBRARY=
6855GUI_TK_LINK=
6856
6857WXGTK12=
6858
6859WXWINE=
6860
6861PROGRAM_EXT=
6862
6863if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6864 if test "$cross_compiling" = "yes" ; then
6865 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6866 else
6867 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
360d6699 6868echo "configure:6869: checking for Windows headers" >&5
10f2d63a
VZ
6869
6870ac_find_includes=
6871for ac_dir in $SEARCH_INCLUDE;
6872 do
6873 if test -f "$ac_dir/windows.h"; then
6874 ac_find_includes=$ac_dir
6875 break
6876 fi
6877 done
6878
6879 if test "$ac_find_includes" != "" ; then
6880 echo "$ac_t""found $ac_find_includes" 1>&6
6881 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6882 else
6883 echo "$ac_t""no" 1>&6
6884 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6885 fi
6886 fi
6887
6888 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6889 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6890
6891 if test "$wxUSE_MINGW" = 1; then
6892 LDFLAGS="$LDFLAGS -mwindows"
6893 fi
6894
6895 TOOLKIT=MSW
6896
6897 GUIOBJS="\$(MSW_GUIOBJS)"
6898 GUIHEADERS="\$(MSW_HEADERS)"
6899 COMMONOBJS="\$(MSW_COMMONOBJS)"
6900 GENERICOBJS="\$(MSW_GENERICOBJS)"
6901 UNIXOBJS=
6902 GUIDIST=MSW_DIST
6903 PROGRAM_EXT=.exe
6904fi
6905
6906if test "$wxUSE_GTK" = 1; then
6907
6908 if test x$gtk_config_exec_prefix != x ; then
6909 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6910 if test x${GTK_CONFIG+set} != xset ; then
6911 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6912 fi
6913 fi
6914 if test x$gtk_config_prefix != x ; then
6915 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6916 if test x${GTK_CONFIG+set} != xset ; then
6917 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6918 fi
6919 fi
6920
6921 # Extract the first word of "gtk-config", so it can be a program name with args.
6922set dummy gtk-config; ac_word=$2
6923echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
360d6699 6924echo "configure:6925: checking for $ac_word" >&5
10f2d63a
VZ
6925if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6926 echo $ac_n "(cached) $ac_c" 1>&6
6927else
6928 case "$GTK_CONFIG" in
6929 /*)
6930 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6931 ;;
6932 ?:/*)
6933 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6934 ;;
6935 *)
6936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6937 ac_dummy="$PATH"
6938 for ac_dir in $ac_dummy; do
6939 test -z "$ac_dir" && ac_dir=.
6940 if test -f $ac_dir/$ac_word; then
6941 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6942 break
6943 fi
6944 done
6945 IFS="$ac_save_ifs"
6946 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6947 ;;
6948esac
6949fi
6950GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6951if test -n "$GTK_CONFIG"; then
6952 echo "$ac_t""$GTK_CONFIG" 1>&6
6953else
6954 echo "$ac_t""no" 1>&6
6955fi
6956
6957 min_gtk_version=1.2.1
6958 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
360d6699 6959echo "configure:6960: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
6960 no_gtk=""
6961 if test "$GTK_CONFIG" != "no" ; then
6962 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6963 GTK_LIBS=`$GTK_CONFIG --libs`
6964 ac_save_CFLAGS="$CFLAGS"
6965 ac_save_LIBS="$LIBS"
6966 CFLAGS="$CFLAGS $GTK_CFLAGS"
6967 LIBS="$LIBS $GTK_LIBS"
6968 if test "$cross_compiling" = yes; then
6969 echo $ac_n "cross compiling; assumed OK... $ac_c"
6970else
6971 cat > conftest.$ac_ext <<EOF
360d6699 6972#line 6973 "configure"
10f2d63a
VZ
6973#include "confdefs.h"
6974
6975#include <gtk/gtk.h>
f49f2b0c 6976#include <gtk/gtkfeatures.h>
10f2d63a
VZ
6977#include <stdio.h>
6978
6979int
6980main ()
6981{
6982 int major, minor, micro;
6983
6984 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6985 printf("%s, bad version string\n", "$min_gtk_version");
6986 exit(1);
6987 }
6988
f49f2b0c
RR
6989 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
6990 (GTK_MINOR_VERSION != gtk_minor_version) ||
6991 (GTK_MICRO_VERSION != gtk_micro_version)) {
6992 printf("Headers vs. library version mismatch!\n");
6993 exit(1);
6994 }
6995
10f2d63a
VZ
6996 if (gtk_minor_version == 1) return FALSE;
6997
6998 return !((gtk_major_version > major) ||
6999 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7000 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7001}
7002
7003EOF
360d6699 7004if { (eval echo configure:7005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7005then
7006 :
7007else
7008 echo "configure: failed program was:" >&5
7009 cat conftest.$ac_ext >&5
7010 rm -fr conftest*
7011 no_gtk=yes
7012fi
7013rm -fr conftest*
7014fi
7015
7016 CFLAGS="$ac_save_CFLAGS"
7017 LIBS="$ac_save_LIBS"
7018 else
7019 no_gtk=yes
7020 fi
7021 if test "x$no_gtk" = x ; then
7022 echo "$ac_t""yes" 1>&6
7023 WXGTK12=1
7024 else
7025 echo "$ac_t""no" 1>&6
7026 GTK_CFLAGS=""
7027 GTK_LIBS=""
7028 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; }
7029 fi
7030
7031
7032
7033
7034 TOOLKIT_INCLUDE="$GTK_CFLAGS"
7035 GUI_TK_LIBRARY="$GTK_LIBS"
7036 TOOLKIT=GTK
7037
7038 GUIOBJS="\$(GTK_GUIOBJS)"
7039 GUIHEADERS="\$(GTK_HEADERS)"
7040 COMMONOBJS="\$(GTK_COMMONOBJS)"
7041 GENERICOBJS="\$(GTK_GENERICOBJS)"
7042 GUIDEPS="\$(GTK_GUIDEPS)"
7043 COMMONDEPS="\$(GTK_COMMONDEPS)"
7044 GENERICDEPS="\$(GTK_GENERICDEPS)"
7045 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7046 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7047 GUIDIST=GTK_DIST
7ec2881a
RR
7048
7049echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
360d6699 7050echo "configure:7051: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7051ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7052if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7053 echo $ac_n "(cached) $ac_c" 1>&6
7054else
7055 ac_save_LIBS="$LIBS"
7056LIBS="-lgdk $LIBS"
7057cat > conftest.$ac_ext <<EOF
360d6699 7058#line 7059 "configure"
7ec2881a
RR
7059#include "confdefs.h"
7060/* Override any gcc2 internal prototype to avoid an error. */
7061/* We use char because int might match the return type of a gcc2
7062 builtin and then its argument prototype would still apply. */
7063char gdk_im_open();
7064
7065int main() {
7066gdk_im_open()
7067; return 0; }
7068EOF
360d6699 7069if { (eval echo configure:7070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7070 rm -rf conftest*
7071 eval "ac_cv_lib_$ac_lib_var=yes"
7072else
7073 echo "configure: failed program was:" >&5
7074 cat conftest.$ac_ext >&5
7075 rm -rf conftest*
7076 eval "ac_cv_lib_$ac_lib_var=no"
7077fi
7078rm -f conftest*
7079LIBS="$ac_save_LIBS"
7080
7081fi
7082if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7083 echo "$ac_t""yes" 1>&6
7084 cat >> confdefs.h <<\EOF
7085#define HAVE_XIM 1
7086EOF
7087
7088else
7089 echo "$ac_t""no" 1>&6
7090fi
7091
7092
10f2d63a
VZ
7093fi
7094
7095if test "$wxUSE_WINE" = 1; then
7096 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
360d6699 7097echo "configure:7098: checking for WINE includes" >&5
10f2d63a
VZ
7098
7099ac_find_includes=
7100for ac_dir in $SEARCH_INCLUDE;
7101 do
7102 if test -f "$ac_dir/windows.h"; then
7103 ac_find_includes=$ac_dir
7104 break
7105 fi
7106 done
7107
7108 if test "$ac_find_includes" != "" ; then
7109 echo "$ac_t""found $ac_find_includes" 1>&6
7110 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7111 else
7112 echo "$ac_t""no" 1>&6
7113 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7114 fi
7115
7116 XPM_LINK=""
7117 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
360d6699 7118echo "configure:7119: checking for Xpm library" >&5
10f2d63a
VZ
7119
7120ac_find_libraries=
7121for ac_dir in $SEARCH_LIB;
7122 do
7123 for ac_extension in a so sl; do
7124 if test -f "$ac_dir/libXpm.$ac_extension"; then
7125 ac_find_libraries=$ac_dir
7126 break 2
7127 fi
7128 done
7129 done
7130
7131 if test "$ac_find_libraries" != "" ; then
7132 GUI_TK_LIBRARY="-L$ac_find_libraries"
7133 XPM_LINK="-lXpm"
7134 cat >> confdefs.h <<\EOF
7135#define wxHAVE_LIB_XPM 1
7136EOF
7137
7138 echo "$ac_t""found at $ac_find_libraries" 1>&6
7139 else
7140 echo "$ac_t""no" 1>&6
7141 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7142 fi
7143
7144 MESA_LINK=""
7145 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
360d6699 7146echo "configure:7147: checking for Mesa library" >&5
10f2d63a
VZ
7147
7148ac_find_libraries=
7149for ac_dir in $SEARCH_LIB;
7150 do
7151 for ac_extension in a so sl; do
7152 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7153 ac_find_libraries=$ac_dir
7154 break 2
7155 fi
7156 done
7157 done
7158
7159 if test "$ac_find_libraries" != "" ; then
7160 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7161 MESA_LINK="-lMesaGL"
7162 echo "$ac_t""found at $ac_find_libraries" 1>&6
7163 else
7164 { echo "configure: error: no" 1>&2; exit 1; }
7165 fi
7166
7167 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7168 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7169 WXWINE=1
7170 TOOLKIT=MSW
7171
7172 GUIHEADERS="\$(MSW_HEADERS)"
7173 GUIOBJS="\$(MSW_GUIOBJS)"
7174 COMMONOBJS="\$(MSW_COMMONOBJS)"
7175 GENERICOBJS="\$(MSW_GENERICOBJS)"
7176 GUIDEPS="\$(MSW_GUIDEPS)"
7177 COMMONDEPS="\$(MSW_COMMONDEPS)"
7178 GENERICDEPS="\$(MSW_GENERICDEPS)"
7179 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7180 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7181 GUIDIST=MSW_DIST
7182fi
7183
7184if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7185 # If we find X, set shell vars x_includes and x_libraries to the
7186# paths, otherwise set no_x=yes.
7187# Uses ac_ vars as temps to allow command line to override cache and checks.
7188# --without-x overrides everything else, but does not touch the cache.
7189echo $ac_n "checking for X""... $ac_c" 1>&6
360d6699 7190echo "configure:7191: checking for X" >&5
ab9b9eab
VZ
7191
7192# Check whether --with-x or --without-x was given.
7193if test "${with_x+set}" = set; then
7194 withval="$with_x"
7195 :
7196fi
ba337fe7 7197
ab9b9eab
VZ
7198# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7199if test "x$with_x" = xno; then
7200 # The user explicitly disabled X.
7201 have_x=disabled
7202else
7203 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7204 # Both variables are already set.
7205 have_x=yes
7206 else
7207if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7208 echo $ac_n "(cached) $ac_c" 1>&6
7209else
7210 # One or both of the vars are not set, and there is no cached value.
7211ac_x_includes=NO ac_x_libraries=NO
7212rm -fr conftestdir
7213if mkdir conftestdir; then
7214 cd conftestdir
7215 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7216 cat > Imakefile <<'EOF'
7217acfindx:
7218 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7219EOF
7220 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7222 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7223 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7224 for ac_extension in a so sl; do
ab9b9eab
VZ
7225 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7226 test -f $ac_im_libdir/libX11.$ac_extension; then
7227 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7228 fi
7229 done
ab9b9eab
VZ
7230 # Screen out bogus values from the imake configuration. They are
7231 # bogus both because they are the default anyway, and because
7232 # using them would break gcc on systems where it needs fixed includes.
7233 case "$ac_im_incroot" in
7234 /usr/include) ;;
7235 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7236 esac
7237 case "$ac_im_usrlibdir" in
7238 /usr/lib | /lib) ;;
7239 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7240 esac
ba337fe7 7241 fi
ab9b9eab
VZ
7242 cd ..
7243 rm -fr conftestdir
7244fi
10f2d63a 7245
ab9b9eab
VZ
7246if test "$ac_x_includes" = NO; then
7247 # Guess where to find include files, by looking for this one X11 .h file.
7248 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7249
ab9b9eab
VZ
7250 # First, try using that file with no special directory specified.
7251cat > conftest.$ac_ext <<EOF
360d6699 7252#line 7253 "configure"
ab9b9eab
VZ
7253#include "confdefs.h"
7254#include <$x_direct_test_include>
7255EOF
7256ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
360d6699 7257{ (eval echo configure:7258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7258ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7259if test -z "$ac_err"; then
7260 rm -rf conftest*
7261 # We can compile using X headers with no special include directory.
7262ac_x_includes=
7263else
7264 echo "$ac_err" >&5
7265 echo "configure: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7267 rm -rf conftest*
7268 # Look for the header file in a standard set of common directories.
7269# Check X11 before X11Rn because it is often a symlink to the current release.
7270 for ac_dir in \
7271 /usr/X11/include \
7272 /usr/X11R6/include \
7273 /usr/X11R5/include \
7274 /usr/X11R4/include \
7275 \
7276 /usr/include/X11 \
7277 /usr/include/X11R6 \
7278 /usr/include/X11R5 \
7279 /usr/include/X11R4 \
7280 \
7281 /usr/local/X11/include \
7282 /usr/local/X11R6/include \
7283 /usr/local/X11R5/include \
7284 /usr/local/X11R4/include \
7285 \
7286 /usr/local/include/X11 \
7287 /usr/local/include/X11R6 \
7288 /usr/local/include/X11R5 \
7289 /usr/local/include/X11R4 \
7290 \
7291 /usr/X386/include \
7292 /usr/x386/include \
7293 /usr/XFree86/include/X11 \
7294 \
7295 /usr/include \
7296 /usr/local/include \
7297 /usr/unsupported/include \
7298 /usr/athena/include \
7299 /usr/local/x11r5/include \
7300 /usr/lpp/Xamples/include \
7301 \
7302 /usr/openwin/include \
7303 /usr/openwin/share/include \
7304 ; \
10f2d63a 7305 do
ab9b9eab
VZ
7306 if test -r "$ac_dir/$x_direct_test_include"; then
7307 ac_x_includes=$ac_dir
10f2d63a
VZ
7308 break
7309 fi
7310 done
ab9b9eab
VZ
7311fi
7312rm -f conftest*
7313fi # $ac_x_includes = NO
10f2d63a 7314
ab9b9eab
VZ
7315if test "$ac_x_libraries" = NO; then
7316 # Check for the libraries.
10f2d63a 7317
ab9b9eab
VZ
7318 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7319 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7320
ab9b9eab
VZ
7321 # See if we find them without any special options.
7322 # Don't add to $LIBS permanently.
7323 ac_save_LIBS="$LIBS"
7324 LIBS="-l$x_direct_test_library $LIBS"
7325cat > conftest.$ac_ext <<EOF
360d6699 7326#line 7327 "configure"
ab9b9eab 7327#include "confdefs.h"
10f2d63a 7328
ab9b9eab
VZ
7329int main() {
7330${x_direct_test_function}()
7331; return 0; }
7332EOF
360d6699 7333if { (eval echo configure:7334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7334 rm -rf conftest*
7335 LIBS="$ac_save_LIBS"
7336# We can link X programs with no special library path.
7337ac_x_libraries=
7338else
7339 echo "configure: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7341 rm -rf conftest*
7342 LIBS="$ac_save_LIBS"
7343# First see if replacing the include by lib works.
7344# Check X11 before X11Rn because it is often a symlink to the current release.
7345for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7346 /usr/X11/lib \
7347 /usr/X11R6/lib \
7348 /usr/X11R5/lib \
7349 /usr/X11R4/lib \
7350 \
7351 /usr/lib/X11 \
7352 /usr/lib/X11R6 \
7353 /usr/lib/X11R5 \
7354 /usr/lib/X11R4 \
7355 \
7356 /usr/local/X11/lib \
7357 /usr/local/X11R6/lib \
7358 /usr/local/X11R5/lib \
7359 /usr/local/X11R4/lib \
7360 \
7361 /usr/local/lib/X11 \
7362 /usr/local/lib/X11R6 \
7363 /usr/local/lib/X11R5 \
7364 /usr/local/lib/X11R4 \
7365 \
7366 /usr/X386/lib \
7367 /usr/x386/lib \
7368 /usr/XFree86/lib/X11 \
7369 \
7370 /usr/lib \
7371 /usr/local/lib \
7372 /usr/unsupported/lib \
7373 /usr/athena/lib \
7374 /usr/local/x11r5/lib \
7375 /usr/lpp/Xamples/lib \
7376 /lib/usr/lib/X11 \
7377 \
7378 /usr/openwin/lib \
7379 /usr/openwin/share/lib \
7380 ; \
7381do
7382 for ac_extension in a so sl; do
7383 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7384 ac_x_libraries=$ac_dir
7385 break 2
10f2d63a 7386 fi
10f2d63a 7387 done
ab9b9eab
VZ
7388done
7389fi
7390rm -f conftest*
7391fi # $ac_x_libraries = NO
10f2d63a 7392
ab9b9eab
VZ
7393if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7394 # Didn't find X anywhere. Cache the known absence of X.
7395 ac_cv_have_x="have_x=no"
7396else
7397 # Record where we found X for the cache.
7398 ac_cv_have_x="have_x=yes \
7399 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7400fi
7401fi
10f2d63a 7402 fi
ab9b9eab
VZ
7403 eval "$ac_cv_have_x"
7404fi # $with_x != no
10f2d63a 7405
ab9b9eab
VZ
7406if test "$have_x" != yes; then
7407 echo "$ac_t""$have_x" 1>&6
7408 no_x=yes
7409else
7410 # If each of the values was on the command line, it overrides each guess.
7411 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7412 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7413 # Update the cache value to reflect the command line values.
7414 ac_cv_have_x="have_x=yes \
7415 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7416 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7417fi
10f2d63a 7418
ab9b9eab
VZ
7419if test "$no_x" = yes; then
7420 # Not all programs may use this symbol, but it does not hurt to define it.
7421 cat >> confdefs.h <<\EOF
7422#define X_DISPLAY_MISSING 1
7423EOF
10f2d63a 7424
ab9b9eab
VZ
7425 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7426else
7427 if test -n "$x_includes"; then
7428 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7429 fi
7430
ab9b9eab
VZ
7431 # It would also be nice to do this for all -L options, not just this one.
7432 if test -n "$x_libraries"; then
7433 X_LIBS="$X_LIBS -L$x_libraries"
7434 # For Solaris; some versions of Sun CC require a space after -R and
7435 # others require no space. Words are not sufficient . . . .
7436 case "`(uname -sr) 2>/dev/null`" in
7437 "SunOS 5"*)
7438 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
360d6699 7439echo "configure:7440: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7440 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7441 cat > conftest.$ac_ext <<EOF
360d6699 7442#line 7443 "configure"
ab9b9eab 7443#include "confdefs.h"
10f2d63a 7444
ab9b9eab 7445int main() {
788deba1 7446
ab9b9eab
VZ
7447; return 0; }
7448EOF
360d6699 7449if { (eval echo configure:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7450 rm -rf conftest*
7451 ac_R_nospace=yes
7452else
7453 echo "configure: failed program was:" >&5
7454 cat conftest.$ac_ext >&5
7455 rm -rf conftest*
7456 ac_R_nospace=no
7457fi
7458rm -f conftest*
7459 if test $ac_R_nospace = yes; then
7460 echo "$ac_t""no" 1>&6
7461 X_LIBS="$X_LIBS -R$x_libraries"
7462 else
7463 LIBS="$ac_xsave_LIBS -R $x_libraries"
7464 cat > conftest.$ac_ext <<EOF
360d6699 7465#line 7466 "configure"
ab9b9eab 7466#include "confdefs.h"
788deba1 7467
ab9b9eab
VZ
7468int main() {
7469
7470; return 0; }
7471EOF
360d6699 7472if { (eval echo configure:7473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7473 rm -rf conftest*
7474 ac_R_space=yes
7475else
7476 echo "configure: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7478 rm -rf conftest*
7479 ac_R_space=no
7480fi
7481rm -f conftest*
7482 if test $ac_R_space = yes; then
7483 echo "$ac_t""yes" 1>&6
7484 X_LIBS="$X_LIBS -R $x_libraries"
7485 else
7486 echo "$ac_t""neither works" 1>&6
7487 fi
7488 fi
7489 LIBS="$ac_xsave_LIBS"
7490 esac
7491 fi
7492
7493 # Check for system-dependent libraries X programs must link with.
7494 # Do this before checking for the system-independent R6 libraries
7495 # (-lICE), since we may need -lsocket or whatever for X linking.
7496
7497 if test "$ISC" = yes; then
7498 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7499 else
7500 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7501 # libraries were built with DECnet support. And karl@cs.umb.edu says
7502 # the Alpha needs dnet_stub (dnet does not exist).
7503 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
360d6699 7504echo "configure:7505: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7505ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7506if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7507 echo $ac_n "(cached) $ac_c" 1>&6
7508else
7509 ac_save_LIBS="$LIBS"
7510LIBS="-ldnet $LIBS"
7511cat > conftest.$ac_ext <<EOF
360d6699 7512#line 7513 "configure"
ab9b9eab
VZ
7513#include "confdefs.h"
7514/* Override any gcc2 internal prototype to avoid an error. */
7515/* We use char because int might match the return type of a gcc2
7516 builtin and then its argument prototype would still apply. */
7517char dnet_ntoa();
7518
7519int main() {
7520dnet_ntoa()
7521; return 0; }
7522EOF
360d6699 7523if { (eval echo configure:7524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7524 rm -rf conftest*
7525 eval "ac_cv_lib_$ac_lib_var=yes"
7526else
7527 echo "configure: failed program was:" >&5
7528 cat conftest.$ac_ext >&5
7529 rm -rf conftest*
7530 eval "ac_cv_lib_$ac_lib_var=no"
7531fi
7532rm -f conftest*
7533LIBS="$ac_save_LIBS"
7534
7535fi
7536if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7537 echo "$ac_t""yes" 1>&6
7538 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7539else
7540 echo "$ac_t""no" 1>&6
7541fi
7542
7543 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7544 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
360d6699 7545echo "configure:7546: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7546ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7547if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7548 echo $ac_n "(cached) $ac_c" 1>&6
7549else
7550 ac_save_LIBS="$LIBS"
7551LIBS="-ldnet_stub $LIBS"
7552cat > conftest.$ac_ext <<EOF
360d6699 7553#line 7554 "configure"
ab9b9eab
VZ
7554#include "confdefs.h"
7555/* Override any gcc2 internal prototype to avoid an error. */
7556/* We use char because int might match the return type of a gcc2
7557 builtin and then its argument prototype would still apply. */
7558char dnet_ntoa();
7559
7560int main() {
7561dnet_ntoa()
7562; return 0; }
7563EOF
360d6699 7564if { (eval echo configure:7565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7565 rm -rf conftest*
7566 eval "ac_cv_lib_$ac_lib_var=yes"
7567else
7568 echo "configure: failed program was:" >&5
7569 cat conftest.$ac_ext >&5
7570 rm -rf conftest*
7571 eval "ac_cv_lib_$ac_lib_var=no"
7572fi
7573rm -f conftest*
7574LIBS="$ac_save_LIBS"
7575
7576fi
7577if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7578 echo "$ac_t""yes" 1>&6
7579 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7580else
7581 echo "$ac_t""no" 1>&6
7582fi
7583
7584 fi
7585
7586 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7587 # to get the SysV transport functions.
7588 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7589 # needs -lnsl.
7590 # The nsl library prevents programs from opening the X display
7591 # on Irix 5.2, according to dickey@clark.net.
7592 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
360d6699 7593echo "configure:7594: checking for gethostbyname" >&5
ab9b9eab
VZ
7594if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7595 echo $ac_n "(cached) $ac_c" 1>&6
7596else
7597 cat > conftest.$ac_ext <<EOF
360d6699 7598#line 7599 "configure"
ab9b9eab
VZ
7599#include "confdefs.h"
7600/* System header to define __stub macros and hopefully few prototypes,
7601 which can conflict with char gethostbyname(); below. */
7602#include <assert.h>
7603/* Override any gcc2 internal prototype to avoid an error. */
7604/* We use char because int might match the return type of a gcc2
7605 builtin and then its argument prototype would still apply. */
7606char gethostbyname();
7607
7608int main() {
7609
7610/* The GNU C library defines this for functions which it implements
7611 to always fail with ENOSYS. Some functions are actually named
7612 something starting with __ and the normal name is an alias. */
7613#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7614choke me
7615#else
e694c22c 7616gethostbyname();
ab9b9eab
VZ
7617#endif
7618
7619; return 0; }
7620EOF
360d6699 7621if { (eval echo configure:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7622 rm -rf conftest*
7623 eval "ac_cv_func_gethostbyname=yes"
7624else
7625 echo "configure: failed program was:" >&5
7626 cat conftest.$ac_ext >&5
7627 rm -rf conftest*
7628 eval "ac_cv_func_gethostbyname=no"
7629fi
7630rm -f conftest*
7631fi
7632
7633if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7634 echo "$ac_t""yes" 1>&6
7635 :
7636else
7637 echo "$ac_t""no" 1>&6
7638fi
7639
7640 if test $ac_cv_func_gethostbyname = no; then
7641 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
360d6699 7642echo "configure:7643: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7643ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7644if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
7646else
7647 ac_save_LIBS="$LIBS"
7648LIBS="-lnsl $LIBS"
7649cat > conftest.$ac_ext <<EOF
360d6699 7650#line 7651 "configure"
ab9b9eab
VZ
7651#include "confdefs.h"
7652/* Override any gcc2 internal prototype to avoid an error. */
7653/* We use char because int might match the return type of a gcc2
7654 builtin and then its argument prototype would still apply. */
7655char gethostbyname();
7656
7657int main() {
7658gethostbyname()
7659; return 0; }
7660EOF
360d6699 7661if { (eval echo configure:7662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7662 rm -rf conftest*
7663 eval "ac_cv_lib_$ac_lib_var=yes"
7664else
7665 echo "configure: failed program was:" >&5
7666 cat conftest.$ac_ext >&5
7667 rm -rf conftest*
7668 eval "ac_cv_lib_$ac_lib_var=no"
7669fi
7670rm -f conftest*
7671LIBS="$ac_save_LIBS"
7672
7673fi
7674if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7675 echo "$ac_t""yes" 1>&6
7676 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7677else
7678 echo "$ac_t""no" 1>&6
7679fi
7680
7681 fi
7682
7683 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7684 # socket/setsockopt and other routines are undefined under SCO ODT
7685 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7686 # on later versions), says simon@lia.di.epfl.ch: it contains
7687 # gethostby* variants that don't use the nameserver (or something).
7688 # -lsocket must be given before -lnsl if both are needed.
7689 # We assume that if connect needs -lnsl, so does gethostbyname.
7690 echo $ac_n "checking for connect""... $ac_c" 1>&6
360d6699 7691echo "configure:7692: checking for connect" >&5
ab9b9eab
VZ
7692if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7693 echo $ac_n "(cached) $ac_c" 1>&6
7694else
7695 cat > conftest.$ac_ext <<EOF
360d6699 7696#line 7697 "configure"
ab9b9eab
VZ
7697#include "confdefs.h"
7698/* System header to define __stub macros and hopefully few prototypes,
7699 which can conflict with char connect(); below. */
7700#include <assert.h>
7701/* Override any gcc2 internal prototype to avoid an error. */
7702/* We use char because int might match the return type of a gcc2
7703 builtin and then its argument prototype would still apply. */
7704char connect();
7705
7706int main() {
7707
7708/* The GNU C library defines this for functions which it implements
7709 to always fail with ENOSYS. Some functions are actually named
7710 something starting with __ and the normal name is an alias. */
7711#if defined (__stub_connect) || defined (__stub___connect)
7712choke me
7713#else
e694c22c 7714connect();
ab9b9eab
VZ
7715#endif
7716
7717; return 0; }
7718EOF
360d6699 7719if { (eval echo configure:7720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7720 rm -rf conftest*
7721 eval "ac_cv_func_connect=yes"
7722else
7723 echo "configure: failed program was:" >&5
7724 cat conftest.$ac_ext >&5
7725 rm -rf conftest*
7726 eval "ac_cv_func_connect=no"
7727fi
7728rm -f conftest*
7729fi
7730
7731if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7732 echo "$ac_t""yes" 1>&6
7733 :
7734else
7735 echo "$ac_t""no" 1>&6
7736fi
7737
7738 if test $ac_cv_func_connect = no; then
7739 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
360d6699 7740echo "configure:7741: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7741ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7742if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7743 echo $ac_n "(cached) $ac_c" 1>&6
7744else
7745 ac_save_LIBS="$LIBS"
7746LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7747cat > conftest.$ac_ext <<EOF
360d6699 7748#line 7749 "configure"
ab9b9eab
VZ
7749#include "confdefs.h"
7750/* Override any gcc2 internal prototype to avoid an error. */
7751/* We use char because int might match the return type of a gcc2
7752 builtin and then its argument prototype would still apply. */
7753char connect();
7754
7755int main() {
7756connect()
7757; return 0; }
7758EOF
360d6699 7759if { (eval echo configure:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7760 rm -rf conftest*
7761 eval "ac_cv_lib_$ac_lib_var=yes"
7762else
7763 echo "configure: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7765 rm -rf conftest*
7766 eval "ac_cv_lib_$ac_lib_var=no"
7767fi
7768rm -f conftest*
7769LIBS="$ac_save_LIBS"
7770
7771fi
7772if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7773 echo "$ac_t""yes" 1>&6
7774 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7775else
7776 echo "$ac_t""no" 1>&6
7777fi
7778
7779 fi
7780
7781 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7782 echo $ac_n "checking for remove""... $ac_c" 1>&6
360d6699 7783echo "configure:7784: checking for remove" >&5
ab9b9eab
VZ
7784if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7785 echo $ac_n "(cached) $ac_c" 1>&6
7786else
7787 cat > conftest.$ac_ext <<EOF
360d6699 7788#line 7789 "configure"
ab9b9eab
VZ
7789#include "confdefs.h"
7790/* System header to define __stub macros and hopefully few prototypes,
7791 which can conflict with char remove(); below. */
7792#include <assert.h>
7793/* Override any gcc2 internal prototype to avoid an error. */
7794/* We use char because int might match the return type of a gcc2
7795 builtin and then its argument prototype would still apply. */
7796char remove();
7797
7798int main() {
7799
7800/* The GNU C library defines this for functions which it implements
7801 to always fail with ENOSYS. Some functions are actually named
7802 something starting with __ and the normal name is an alias. */
7803#if defined (__stub_remove) || defined (__stub___remove)
7804choke me
7805#else
e694c22c 7806remove();
ab9b9eab
VZ
7807#endif
7808
7809; return 0; }
7810EOF
360d6699 7811if { (eval echo configure:7812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7812 rm -rf conftest*
7813 eval "ac_cv_func_remove=yes"
7814else
7815 echo "configure: failed program was:" >&5
7816 cat conftest.$ac_ext >&5
7817 rm -rf conftest*
7818 eval "ac_cv_func_remove=no"
7819fi
7820rm -f conftest*
7821fi
7822
7823if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7824 echo "$ac_t""yes" 1>&6
7825 :
7826else
7827 echo "$ac_t""no" 1>&6
7828fi
7829
7830 if test $ac_cv_func_remove = no; then
7831 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
360d6699 7832echo "configure:7833: checking for remove in -lposix" >&5
ab9b9eab
VZ
7833ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7834if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7835 echo $ac_n "(cached) $ac_c" 1>&6
7836else
7837 ac_save_LIBS="$LIBS"
7838LIBS="-lposix $LIBS"
7839cat > conftest.$ac_ext <<EOF
360d6699 7840#line 7841 "configure"
ab9b9eab
VZ
7841#include "confdefs.h"
7842/* Override any gcc2 internal prototype to avoid an error. */
7843/* We use char because int might match the return type of a gcc2
7844 builtin and then its argument prototype would still apply. */
7845char remove();
7846
7847int main() {
7848remove()
7849; return 0; }
7850EOF
360d6699 7851if { (eval echo configure:7852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7852 rm -rf conftest*
7853 eval "ac_cv_lib_$ac_lib_var=yes"
7854else
7855 echo "configure: failed program was:" >&5
7856 cat conftest.$ac_ext >&5
7857 rm -rf conftest*
7858 eval "ac_cv_lib_$ac_lib_var=no"
7859fi
7860rm -f conftest*
7861LIBS="$ac_save_LIBS"
7862
7863fi
7864if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7865 echo "$ac_t""yes" 1>&6
7866 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7867else
7868 echo "$ac_t""no" 1>&6
7869fi
7870
7871 fi
7872
7873 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7874 echo $ac_n "checking for shmat""... $ac_c" 1>&6
360d6699 7875echo "configure:7876: checking for shmat" >&5
ab9b9eab
VZ
7876if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7877 echo $ac_n "(cached) $ac_c" 1>&6
7878else
7879 cat > conftest.$ac_ext <<EOF
360d6699 7880#line 7881 "configure"
ab9b9eab
VZ
7881#include "confdefs.h"
7882/* System header to define __stub macros and hopefully few prototypes,
7883 which can conflict with char shmat(); below. */
7884#include <assert.h>
7885/* Override any gcc2 internal prototype to avoid an error. */
7886/* We use char because int might match the return type of a gcc2
7887 builtin and then its argument prototype would still apply. */
7888char shmat();
7889
7890int main() {
7891
7892/* The GNU C library defines this for functions which it implements
7893 to always fail with ENOSYS. Some functions are actually named
7894 something starting with __ and the normal name is an alias. */
7895#if defined (__stub_shmat) || defined (__stub___shmat)
7896choke me
7897#else
e694c22c 7898shmat();
ab9b9eab
VZ
7899#endif
7900
7901; return 0; }
7902EOF
360d6699 7903if { (eval echo configure:7904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7904 rm -rf conftest*
7905 eval "ac_cv_func_shmat=yes"
7906else
7907 echo "configure: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7909 rm -rf conftest*
7910 eval "ac_cv_func_shmat=no"
7911fi
7912rm -f conftest*
7913fi
7914
7915if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7916 echo "$ac_t""yes" 1>&6
7917 :
7918else
7919 echo "$ac_t""no" 1>&6
7920fi
7921
7922 if test $ac_cv_func_shmat = no; then
7923 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
360d6699 7924echo "configure:7925: checking for shmat in -lipc" >&5
ab9b9eab
VZ
7925ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7926if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7927 echo $ac_n "(cached) $ac_c" 1>&6
7928else
7929 ac_save_LIBS="$LIBS"
7930LIBS="-lipc $LIBS"
7931cat > conftest.$ac_ext <<EOF
360d6699 7932#line 7933 "configure"
ab9b9eab
VZ
7933#include "confdefs.h"
7934/* Override any gcc2 internal prototype to avoid an error. */
7935/* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7937char shmat();
7938
7939int main() {
7940shmat()
7941; return 0; }
7942EOF
360d6699 7943if { (eval echo configure:7944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7944 rm -rf conftest*
7945 eval "ac_cv_lib_$ac_lib_var=yes"
7946else
7947 echo "configure: failed program was:" >&5
7948 cat conftest.$ac_ext >&5
7949 rm -rf conftest*
7950 eval "ac_cv_lib_$ac_lib_var=no"
7951fi
7952rm -f conftest*
7953LIBS="$ac_save_LIBS"
7954
7955fi
7956if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7957 echo "$ac_t""yes" 1>&6
7958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7959else
7960 echo "$ac_t""no" 1>&6
7961fi
7962
7963 fi
7964 fi
7965
7966 # Check for libraries that X11R6 Xt/Xaw programs need.
7967 ac_save_LDFLAGS="$LDFLAGS"
7968 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7969 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7970 # check for ICE first), but we must link in the order -lSM -lICE or
7971 # we get undefined symbols. So assume we have SM if we have ICE.
7972 # These have to be linked with before -lX11, unlike the other
7973 # libraries we check for below, so use a different variable.
7974 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7975 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
360d6699 7976echo "configure:7977: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
7977ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7978if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7979 echo $ac_n "(cached) $ac_c" 1>&6
7980else
7981 ac_save_LIBS="$LIBS"
7982LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7983cat > conftest.$ac_ext <<EOF
360d6699 7984#line 7985 "configure"
ab9b9eab
VZ
7985#include "confdefs.h"
7986/* Override any gcc2 internal prototype to avoid an error. */
7987/* We use char because int might match the return type of a gcc2
7988 builtin and then its argument prototype would still apply. */
7989char IceConnectionNumber();
7990
7991int main() {
7992IceConnectionNumber()
7993; return 0; }
7994EOF
360d6699 7995if { (eval echo configure:7996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7996 rm -rf conftest*
7997 eval "ac_cv_lib_$ac_lib_var=yes"
7998else
7999 echo "configure: failed program was:" >&5
8000 cat conftest.$ac_ext >&5
8001 rm -rf conftest*
8002 eval "ac_cv_lib_$ac_lib_var=no"
8003fi
8004rm -f conftest*
8005LIBS="$ac_save_LIBS"
8006
8007fi
8008if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8009 echo "$ac_t""yes" 1>&6
8010 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8011else
8012 echo "$ac_t""no" 1>&6
8013fi
8014
8015 LDFLAGS="$ac_save_LDFLAGS"
8016
8017fi
8018
8019
8020 if test "$no_x" = "yes"; then
8021 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8022 fi
8023
8024 GUI_TK_LIBRARY="$X_LIBS"
8025 TOOLKIT_INCLUDE="$X_CFLAGS"
8026
8027
8028 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
360d6699 8029echo "configure:8030: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8030
8031ac_find_includes=
8032for ac_dir in $SEARCH_INCLUDE;
8033 do
8034 if test -f "$ac_dir/Xm/Xm.h"; then
8035 ac_find_includes=$ac_dir
8036 break
8037 fi
8038 done
8039
8040 if test "$ac_find_includes" != "" ; then
8041 echo "$ac_t""found $ac_find_includes" 1>&6
8042 else
8043 echo "$ac_t""no" 1>&6
8044 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8045 fi
8046
8047 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
360d6699 8048echo "configure:8049: checking for Motif/Lesstif library" >&5
ab9b9eab
VZ
8049
8050ac_find_libraries=
8051for ac_dir in $SEARCH_LIB;
8052 do
8053 for ac_extension in a so sl; do
8054 if test -f "$ac_dir/libXm.$ac_extension"; then
8055 ac_find_libraries=$ac_dir
8056 break 2
8057 fi
8058 done
8059 done
8060
8061 if test "$ac_find_libraries" != "" ; then
8062
8063 ac_path_to_include=$ac_find_includes
8064 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8065 result=$?
8066 if test $result = 0; then
8067 ac_path_to_include=""
8068 else
8069 ac_path_to_include="-I$ac_find_includes"
8070 fi
8071
8072
8073 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8074 result=$?
8075 if test $result = 0; then
8076 ac_path_to_link=""
8077 else
8078 ac_path_to_link="-L$ac_find_libraries"
8079 fi
8080
8081
8082 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8083 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8084 echo "$ac_t""found at $ac_find_libraries" 1>&6
8085 else
8086 echo "$ac_t""no" 1>&6
8087 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8088 fi
8089
8090 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
360d6699 8091echo "configure:8092: checking for Xt library" >&5
ab9b9eab
VZ
8092
8093ac_find_libraries=
8094for ac_dir in $SEARCH_LIB;
8095 do
8096 for ac_extension in a so sl; do
8097 if test -f "$ac_dir/libXt.$ac_extension"; then
8098 ac_find_libraries=$ac_dir
8099 break 2
8100 fi
8101 done
8102 done
8103
8104 if test "$ac_find_libraries" != "" ; then
8105
8106 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8107 result=$?
8108 if test $result = 0; then
8109 ac_path_to_link=""
8110 else
8111 ac_path_to_link="-L$ac_find_libraries"
8112 fi
8113
8114 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8115 echo "$ac_t""found at $ac_find_libraries" 1>&6
8116 else
8117 echo "$ac_t""no" 1>&6
8118 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
8119 fi
8120
8121 XPM_LINK=""
8122 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
360d6699 8123echo "configure:8124: checking for Xpm library" >&5
ab9b9eab
VZ
8124
8125ac_find_libraries=
8126for ac_dir in $SEARCH_LIB;
8127 do
8128 for ac_extension in a so sl; do
8129 if test -f "$ac_dir/libXpm.$ac_extension"; then
8130 ac_find_libraries=$ac_dir
8131 break 2
8132 fi
8133 done
8134 done
8135
8136 if test "$ac_find_libraries" != "" ; then
8137
8138 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8139 result=$?
8140 if test $result = 0; then
8141 ac_path_to_link=""
8142 else
8143 ac_path_to_link="-L$ac_find_libraries"
8144 fi
8145
8146 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8147 XPM_LINK="-lXpm "
8148 cat >> confdefs.h <<\EOF
8149#define wxHAVE_LIB_XPM 1
8150EOF
8151
8152 echo "$ac_t""found at $ac_find_libraries" 1>&6
8153 else
8154 echo "$ac_t""no" 1>&6
8155 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8156 fi
8157
8158 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8159 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8160 TOOLKIT=MOTIF
8161
8162 GUIHEADERS="\$(MOTIF_HEADERS)"
8163 GUIOBJS="\$(MOTIF_GUIOBJS)"
8164 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8165 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8166 GUIDEPS="\$(MOTIF_GUIDEPS)"
8167 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8168 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8169 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8170 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8171 GUIDIST=MOTIF_DIST
8172fi
8173
8174TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
8175
8176TOOLKIT_DEF="-D__WX${TOOLKIT}__"
8177
8178WX_LIBRARY="wx_${TOOLKIT_DIR}"
8179
d9d8273d
RR
8180 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(IODBCOBJS)"
8181 if test "$wxUSE_LIBJPEG" = "yes" ; then
8182 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
8183 fi
8184 if test "$wxUSE_LIBTIFF" = "yes" ; then
8185 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8186 fi
8187 if test "$wxUSE_LIBPNG" = "yes" ; then
8188 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8189 fi
8190 if test "$wxUSE_ZLIB" = "yes" ; then
8191 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8192 fi
10f2d63a
VZ
8193 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
8194 ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)"
8195else
8196
8197 ALL_OBJECTS="\$(BASE_OBJS)"
8198 ALL_DEPFILES="\${BASE_DEPS}"
8199 ALL_HEADERS="\${BASE_HEADERS}"
8200
8201 WX_LIBRARY="wxbase"
8202fi
8203
8204WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8205
8206WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8207
8208WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8209
8210WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8211WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8212WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8213
8214SHARED_LD=
8215PIC_FLAG=
8216WX_ALL=
8217WX_ALL_INSTALLED=
1d62a8b4 8218BURNT_LIBRARY_NAME=
10f2d63a
VZ
8219
8220if test "$wxUSE_SHARED" = "yes"; then
8221 case "${host}" in
8222 *-hp-hpux* )
8223 if test "$GCC" = yes ; then
69ffe1d2 8224 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8225 PIC_FLAG="-fPIC"
8226 else
8227 SHARED_LD="${CXX} -b -o"
8228 PIC_FLAG="+Z"
8229 fi
8230 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8231 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8232 ;;
8233 *-*-linux* )
8234 SHARED_LD="${CC} -shared -o"
8235 PIC_FLAG="-fPIC"
8236 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8237 WX_ALL="CREATE_LINKS"
d984207c 8238 ;;
10f2d63a
VZ
8239 *-*-irix5* | *-*-irix6* )
8240 if test "$GCC" = yes ; then
8241 SHARED_LD="${CC} -shared -o"
8242 PIC_FLAG="-fPIC"
8243 else
8244 SHARED_LD="${CXX} -shared -o"
8245 fi
8246 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8247 WX_ALL="CREATE_LINKS"
8248 ;;
8249 *-*-solaris2* )
8250 if test "$GCC" = yes ; then
8251 SHARED_LD="${CC} -shared -o"
8252 PIC_FLAG="-fPIC"
8253 else
8254 SHARED_LD="${CXX} -G -o"
8255 PIC_FLAG="-KPIC"
8256 fi
8257 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8258 WX_ALL="CREATE_LINKS"
8259 ;;
8260 *-*-sunos4* )
8261 SHARED_LD="${CC} -shared -o"
8262 PIC_FLAG="-fPIC"
8263 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8264 WX_ALL="CREATE_LINKS"
8265 ;;
8266 *-*-freebsd* | *-*-netbsd*)
8267 SHARED_LD="${CC} -shared -o"
8268 PIC_FLAG="-fPIC"
8269 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8270 WX_ALL="CREATE_LINKS"
8271 ;;
8272 *-*-osf* )
8273 SHARED_LD="${CXX} -shared -o"
8274 PIC_FLAG="-fPIC"
8275 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8276 WX_ALL="CREATE_LINKS"
8277 ;;
8278 *-*-dgux5* )
8279 SHARED_LD="${CXX} -shared -o"
8280 PIC_FLAG="-fPIC"
8281 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8282 WX_ALL="CREATE_LINKS"
8283 ;;
8284 *-*-sysv5* )
8285 SHARED_LD="${CC} -shared -o"
8286 PIC_FLAG="-fPIC"
8287 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8288 WX_ALL="CREATE_LINKS"
8289 ;;
8290 *-*-aix* )
8291 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8292 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8293 ;;
8294 *-*-cygwin32* )
8295 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8296 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8297 ;;
8298 *-*-mingw32* )
8299 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8300 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8301 ;;
8302 *-pc-os2_emx )
8303 ;;
8304 *)
8305 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8306 esac
8307
8308 if test "x$WX_TARGET_LIBRARY" = "x"; then
8309 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8310 fi
8311else
8312 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8313 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8314fi
8315
8316
8317for ac_hdr in strings.h
8318do
8319ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8320echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
360d6699 8321echo "configure:8322: checking for $ac_hdr" >&5
10f2d63a
VZ
8322if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8323 echo $ac_n "(cached) $ac_c" 1>&6
8324else
8325 cat > conftest.$ac_ext <<EOF
360d6699 8326#line 8327 "configure"
10f2d63a
VZ
8327#include "confdefs.h"
8328#include <$ac_hdr>
8329EOF
8330ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
360d6699 8331{ (eval echo configure:8332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8332ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8333if test -z "$ac_err"; then
8334 rm -rf conftest*
8335 eval "ac_cv_header_$ac_safe=yes"
8336else
8337 echo "$ac_err" >&5
8338 echo "configure: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8340 rm -rf conftest*
8341 eval "ac_cv_header_$ac_safe=no"
8342fi
8343rm -f conftest*
8344fi
8345if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8346 echo "$ac_t""yes" 1>&6
8347 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8348 cat >> confdefs.h <<EOF
8349#define $ac_tr_hdr 1
8350EOF
8351
8352else
8353 echo "$ac_t""no" 1>&6
8354fi
8355done
8356
8357for ac_hdr in unistd.h
8358do
8359ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8360echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
360d6699 8361echo "configure:8362: checking for $ac_hdr" >&5
10f2d63a
VZ
8362if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8363 echo $ac_n "(cached) $ac_c" 1>&6
8364else
8365 cat > conftest.$ac_ext <<EOF
360d6699 8366#line 8367 "configure"
10f2d63a
VZ
8367#include "confdefs.h"
8368#include <$ac_hdr>
8369EOF
8370ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
360d6699 8371{ (eval echo configure:8372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8372ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8373if test -z "$ac_err"; then
8374 rm -rf conftest*
8375 eval "ac_cv_header_$ac_safe=yes"
8376else
8377 echo "$ac_err" >&5
8378 echo "configure: failed program was:" >&5
8379 cat conftest.$ac_ext >&5
8380 rm -rf conftest*
8381 eval "ac_cv_header_$ac_safe=no"
8382fi
8383rm -f conftest*
8384fi
8385if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8386 echo "$ac_t""yes" 1>&6
8387 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8388 cat >> confdefs.h <<EOF
8389#define $ac_tr_hdr 1
8390EOF
8391
8392else
8393 echo "$ac_t""no" 1>&6
8394fi
8395done
8396
8397for ac_hdr in wchar.h
8398do
8399ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8400echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
360d6699 8401echo "configure:8402: checking for $ac_hdr" >&5
10f2d63a
VZ
8402if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8403 echo $ac_n "(cached) $ac_c" 1>&6
8404else
8405 cat > conftest.$ac_ext <<EOF
360d6699 8406#line 8407 "configure"
10f2d63a
VZ
8407#include "confdefs.h"
8408#include <$ac_hdr>
8409EOF
8410ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
360d6699 8411{ (eval echo configure:8412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8412ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8413if test -z "$ac_err"; then
8414 rm -rf conftest*
8415 eval "ac_cv_header_$ac_safe=yes"
8416else
8417 echo "$ac_err" >&5
8418 echo "configure: failed program was:" >&5
8419 cat conftest.$ac_ext >&5
8420 rm -rf conftest*
8421 eval "ac_cv_header_$ac_safe=no"
8422fi
8423rm -f conftest*
8424fi
8425if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8426 echo "$ac_t""yes" 1>&6
8427 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8428 cat >> confdefs.h <<EOF
8429#define $ac_tr_hdr 1
8430EOF
8431
8432else
8433 echo "$ac_t""no" 1>&6
8434fi
8435done
8436
8437for ac_hdr in wcstr.h
8438do
8439ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8440echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
360d6699 8441echo "configure:8442: checking for $ac_hdr" >&5
10f2d63a
VZ
8442if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8443 echo $ac_n "(cached) $ac_c" 1>&6
8444else
8445 cat > conftest.$ac_ext <<EOF
360d6699 8446#line 8447 "configure"
10f2d63a
VZ
8447#include "confdefs.h"
8448#include <$ac_hdr>
8449EOF
8450ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
360d6699 8451{ (eval echo configure:8452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8452ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8453if test -z "$ac_err"; then
8454 rm -rf conftest*
8455 eval "ac_cv_header_$ac_safe=yes"
8456else
8457 echo "$ac_err" >&5
8458 echo "configure: failed program was:" >&5
8459 cat conftest.$ac_ext >&5
8460 rm -rf conftest*
8461 eval "ac_cv_header_$ac_safe=no"
8462fi
8463rm -f conftest*
8464fi
8465if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8466 echo "$ac_t""yes" 1>&6
8467 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8468 cat >> confdefs.h <<EOF
8469#define $ac_tr_hdr 1
8470EOF
8471
8472else
8473 echo "$ac_t""no" 1>&6
8474fi
8475done
8476
8477for ac_hdr in fnmatch.h
8478do
8479ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8480echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
360d6699 8481echo "configure:8482: checking for $ac_hdr" >&5
10f2d63a
VZ
8482if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8483 echo $ac_n "(cached) $ac_c" 1>&6
8484else
8485 cat > conftest.$ac_ext <<EOF
360d6699 8486#line 8487 "configure"
10f2d63a
VZ
8487#include "confdefs.h"
8488#include <$ac_hdr>
8489EOF
8490ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
360d6699 8491{ (eval echo configure:8492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8492ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8493if test -z "$ac_err"; then
8494 rm -rf conftest*
8495 eval "ac_cv_header_$ac_safe=yes"
8496else
8497 echo "$ac_err" >&5
8498 echo "configure: failed program was:" >&5
8499 cat conftest.$ac_ext >&5
8500 rm -rf conftest*
8501 eval "ac_cv_header_$ac_safe=no"
8502fi
8503rm -f conftest*
8504fi
8505if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8506 echo "$ac_t""yes" 1>&6
8507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8508 cat >> confdefs.h <<EOF
8509#define $ac_tr_hdr 1
8510EOF
8511
8512else
8513 echo "$ac_t""no" 1>&6
8514fi
8515done
8516
8517
8518if test "$wxUSE_GUI" = "yes"; then
8519 for ac_hdr in X11/XKBlib.h
8520do
8521ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8522echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
360d6699 8523echo "configure:8524: checking for $ac_hdr" >&5
10f2d63a
VZ
8524if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8525 echo $ac_n "(cached) $ac_c" 1>&6
8526else
8527 cat > conftest.$ac_ext <<EOF
360d6699 8528#line 8529 "configure"
10f2d63a
VZ
8529#include "confdefs.h"
8530#include <$ac_hdr>
8531EOF
8532ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
360d6699 8533{ (eval echo configure:8534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8534ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8535if test -z "$ac_err"; then
8536 rm -rf conftest*
8537 eval "ac_cv_header_$ac_safe=yes"
8538else
8539 echo "$ac_err" >&5
8540 echo "configure: failed program was:" >&5
8541 cat conftest.$ac_ext >&5
8542 rm -rf conftest*
8543 eval "ac_cv_header_$ac_safe=no"
8544fi
8545rm -f conftest*
8546fi
8547if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8548 echo "$ac_t""yes" 1>&6
8549 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8550 cat >> confdefs.h <<EOF
8551#define $ac_tr_hdr 1
8552EOF
8553
8554else
8555 echo "$ac_t""no" 1>&6
8556fi
8557done
8558
8559fi
8560
8561
8562echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
360d6699 8563echo "configure:8564: checking for ANSI C header files" >&5
10f2d63a
VZ
8564if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8565 echo $ac_n "(cached) $ac_c" 1>&6
8566else
8567 cat > conftest.$ac_ext <<EOF
360d6699 8568#line 8569 "configure"
10f2d63a
VZ
8569#include "confdefs.h"
8570#include <stdlib.h>
8571#include <stdarg.h>
8572#include <string.h>
8573#include <float.h>
8574EOF
8575ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
360d6699 8576{ (eval echo configure:8577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8577ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8578if test -z "$ac_err"; then
8579 rm -rf conftest*
8580 ac_cv_header_stdc=yes
8581else
8582 echo "$ac_err" >&5
8583 echo "configure: failed program was:" >&5
8584 cat conftest.$ac_ext >&5
8585 rm -rf conftest*
8586 ac_cv_header_stdc=no
8587fi
8588rm -f conftest*
8589
8590if test $ac_cv_header_stdc = yes; then
8591 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8592cat > conftest.$ac_ext <<EOF
360d6699 8593#line 8594 "configure"
10f2d63a
VZ
8594#include "confdefs.h"
8595#include <string.h>
8596EOF
8597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8598 egrep "memchr" >/dev/null 2>&1; then
8599 :
8600else
8601 rm -rf conftest*
8602 ac_cv_header_stdc=no
8603fi
8604rm -f conftest*
8605
8606fi
8607
8608if test $ac_cv_header_stdc = yes; then
8609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8610cat > conftest.$ac_ext <<EOF
360d6699 8611#line 8612 "configure"
10f2d63a
VZ
8612#include "confdefs.h"
8613#include <stdlib.h>
8614EOF
8615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8616 egrep "free" >/dev/null 2>&1; then
8617 :
8618else
8619 rm -rf conftest*
8620 ac_cv_header_stdc=no
8621fi
8622rm -f conftest*
8623
8624fi
8625
8626if test $ac_cv_header_stdc = yes; then
8627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8628if test "$cross_compiling" = yes; then
8629 :
8630else
8631 cat > conftest.$ac_ext <<EOF
360d6699 8632#line 8633 "configure"
10f2d63a
VZ
8633#include "confdefs.h"
8634#include <ctype.h>
8635#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8636#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8637#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8638int main () { int i; for (i = 0; i < 256; i++)
8639if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8640exit (0); }
8641
8642EOF
360d6699 8643if { (eval echo configure:8644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8644then
8645 :
8646else
8647 echo "configure: failed program was:" >&5
8648 cat conftest.$ac_ext >&5
8649 rm -fr conftest*
8650 ac_cv_header_stdc=no
8651fi
8652rm -fr conftest*
8653fi
8654
8655fi
8656fi
8657
8658echo "$ac_t""$ac_cv_header_stdc" 1>&6
8659if test $ac_cv_header_stdc = yes; then
8660 cat >> confdefs.h <<\EOF
8661#define STDC_HEADERS 1
8662EOF
8663
8664fi
8665
8666echo $ac_n "checking for mode_t""... $ac_c" 1>&6
360d6699 8667echo "configure:8668: checking for mode_t" >&5
10f2d63a
VZ
8668if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8669 echo $ac_n "(cached) $ac_c" 1>&6
8670else
8671 cat > conftest.$ac_ext <<EOF
360d6699 8672#line 8673 "configure"
10f2d63a
VZ
8673#include "confdefs.h"
8674#include <sys/types.h>
8675#if STDC_HEADERS
8676#include <stdlib.h>
8677#include <stddef.h>
8678#endif
8679EOF
8680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8681 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8682 rm -rf conftest*
8683 ac_cv_type_mode_t=yes
8684else
8685 rm -rf conftest*
8686 ac_cv_type_mode_t=no
8687fi
8688rm -f conftest*
8689
8690fi
8691echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8692if test $ac_cv_type_mode_t = no; then
8693 cat >> confdefs.h <<\EOF
8694#define mode_t int
8695EOF
8696
8697fi
8698
8699echo $ac_n "checking for off_t""... $ac_c" 1>&6
360d6699 8700echo "configure:8701: checking for off_t" >&5
10f2d63a
VZ
8701if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8702 echo $ac_n "(cached) $ac_c" 1>&6
8703else
8704 cat > conftest.$ac_ext <<EOF
360d6699 8705#line 8706 "configure"
10f2d63a
VZ
8706#include "confdefs.h"
8707#include <sys/types.h>
8708#if STDC_HEADERS
8709#include <stdlib.h>
8710#include <stddef.h>
8711#endif
8712EOF
8713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8714 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8715 rm -rf conftest*
8716 ac_cv_type_off_t=yes
8717else
8718 rm -rf conftest*
8719 ac_cv_type_off_t=no
8720fi
8721rm -f conftest*
8722
8723fi
8724echo "$ac_t""$ac_cv_type_off_t" 1>&6
8725if test $ac_cv_type_off_t = no; then
8726 cat >> confdefs.h <<\EOF
8727#define off_t long
8728EOF
8729
8730fi
8731
8732echo $ac_n "checking for pid_t""... $ac_c" 1>&6
360d6699 8733echo "configure:8734: checking for pid_t" >&5
10f2d63a
VZ
8734if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8735 echo $ac_n "(cached) $ac_c" 1>&6
8736else
8737 cat > conftest.$ac_ext <<EOF
360d6699 8738#line 8739 "configure"
10f2d63a
VZ
8739#include "confdefs.h"
8740#include <sys/types.h>
8741#if STDC_HEADERS
8742#include <stdlib.h>
8743#include <stddef.h>
8744#endif
8745EOF
8746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8747 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8748 rm -rf conftest*
8749 ac_cv_type_pid_t=yes
8750else
8751 rm -rf conftest*
8752 ac_cv_type_pid_t=no
8753fi
8754rm -f conftest*
8755
8756fi
8757echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8758if test $ac_cv_type_pid_t = no; then
8759 cat >> confdefs.h <<\EOF
8760#define pid_t int
8761EOF
8762
8763fi
8764
8765echo $ac_n "checking for size_t""... $ac_c" 1>&6
360d6699 8766echo "configure:8767: checking for size_t" >&5
10f2d63a
VZ
8767if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8768 echo $ac_n "(cached) $ac_c" 1>&6
8769else
8770 cat > conftest.$ac_ext <<EOF
360d6699 8771#line 8772 "configure"
10f2d63a
VZ
8772#include "confdefs.h"
8773#include <sys/types.h>
8774#if STDC_HEADERS
8775#include <stdlib.h>
8776#include <stddef.h>
8777#endif
8778EOF
8779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8780 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8781 rm -rf conftest*
8782 ac_cv_type_size_t=yes
8783else
8784 rm -rf conftest*
8785 ac_cv_type_size_t=no
8786fi
8787rm -f conftest*
8788
8789fi
8790echo "$ac_t""$ac_cv_type_size_t" 1>&6
8791if test $ac_cv_type_size_t = no; then
8792 cat >> confdefs.h <<\EOF
8793#define size_t unsigned
8794EOF
8795
8796fi
8797
8798echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
360d6699 8799echo "configure:8800: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
8800if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8801 echo $ac_n "(cached) $ac_c" 1>&6
8802else
8803 cat > conftest.$ac_ext <<EOF
360d6699 8804#line 8805 "configure"
10f2d63a
VZ
8805#include "confdefs.h"
8806#include <sys/types.h>
8807EOF
8808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8809 egrep "uid_t" >/dev/null 2>&1; then
8810 rm -rf conftest*
8811 ac_cv_type_uid_t=yes
8812else
8813 rm -rf conftest*
8814 ac_cv_type_uid_t=no
8815fi
8816rm -f conftest*
8817
8818fi
8819
8820echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8821if test $ac_cv_type_uid_t = no; then
8822 cat >> confdefs.h <<\EOF
8823#define uid_t int
8824EOF
8825
8826 cat >> confdefs.h <<\EOF
8827#define gid_t int
8828EOF
8829
8830fi
8831
8832
8833
8834
8835echo $ac_n "checking for working const""... $ac_c" 1>&6
360d6699 8836echo "configure:8837: checking for working const" >&5
10f2d63a
VZ
8837if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8838 echo $ac_n "(cached) $ac_c" 1>&6
8839else
8840 cat > conftest.$ac_ext <<EOF
360d6699 8841#line 8842 "configure"
10f2d63a
VZ
8842#include "confdefs.h"
8843
8844int main() {
8845
8846/* Ultrix mips cc rejects this. */
8847typedef int charset[2]; const charset x;
8848/* SunOS 4.1.1 cc rejects this. */
8849char const *const *ccp;
8850char **p;
8851/* NEC SVR4.0.2 mips cc rejects this. */
8852struct point {int x, y;};
8853static struct point const zero = {0,0};
8854/* AIX XL C 1.02.0.0 rejects this.
8855 It does not let you subtract one const X* pointer from another in an arm
8856 of an if-expression whose if-part is not a constant expression */
8857const char *g = "string";
8858ccp = &g + (g ? g-g : 0);
8859/* HPUX 7.0 cc rejects these. */
8860++ccp;
8861p = (char**) ccp;
8862ccp = (char const *const *) p;
8863{ /* SCO 3.2v4 cc rejects this. */
8864 char *t;
8865 char const *s = 0 ? (char *) 0 : (char const *) 0;
8866
8867 *t++ = 0;
8868}
8869{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8870 int x[] = {25, 17};
8871 const int *foo = &x[0];
8872 ++foo;
8873}
8874{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8875 typedef const int *iptr;
8876 iptr p = 0;
8877 ++p;
8878}
8879{ /* AIX XL C 1.02.0.0 rejects this saying
8880 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8881 struct s { int j; const int *ap[3]; };
8882 struct s *b; b->j = 5;
8883}
8884{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8885 const int foo = 10;
8886}
8887
8888; return 0; }
8889EOF
360d6699 8890if { (eval echo configure:8891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8891 rm -rf conftest*
8892 ac_cv_c_const=yes
8893else
8894 echo "configure: failed program was:" >&5
8895 cat conftest.$ac_ext >&5
8896 rm -rf conftest*
8897 ac_cv_c_const=no
8898fi
8899rm -f conftest*
8900fi
8901
8902echo "$ac_t""$ac_cv_c_const" 1>&6
8903if test $ac_cv_c_const = no; then
8904 cat >> confdefs.h <<\EOF
8905#define const
8906EOF
8907
8908fi
8909
8910echo $ac_n "checking for inline""... $ac_c" 1>&6
360d6699 8911echo "configure:8912: checking for inline" >&5
10f2d63a
VZ
8912if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8913 echo $ac_n "(cached) $ac_c" 1>&6
8914else
8915 ac_cv_c_inline=no
8916for ac_kw in inline __inline__ __inline; do
8917 cat > conftest.$ac_ext <<EOF
360d6699 8918#line 8919 "configure"
10f2d63a
VZ
8919#include "confdefs.h"
8920
8921int main() {
8922} $ac_kw foo() {
8923; return 0; }
8924EOF
360d6699 8925if { (eval echo configure:8926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8926 rm -rf conftest*
8927 ac_cv_c_inline=$ac_kw; break
8928else
8929 echo "configure: failed program was:" >&5
8930 cat conftest.$ac_ext >&5
8931fi
8932rm -f conftest*
8933done
8934
8935fi
8936
8937echo "$ac_t""$ac_cv_c_inline" 1>&6
8938case "$ac_cv_c_inline" in
8939 inline | yes) ;;
8940 no) cat >> confdefs.h <<\EOF
8941#define inline
8942EOF
8943 ;;
8944 *) cat >> confdefs.h <<EOF
8945#define inline $ac_cv_c_inline
8946EOF
8947 ;;
8948esac
8949
8950
8951echo $ac_n "checking size of char""... $ac_c" 1>&6
360d6699 8952echo "configure:8953: checking size of char" >&5
10f2d63a
VZ
8953if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
8954 echo $ac_n "(cached) $ac_c" 1>&6
8955else
8956 if test "$cross_compiling" = yes; then
8957 ac_cv_sizeof_char=1
8958else
8959 cat > conftest.$ac_ext <<EOF
360d6699 8960#line 8961 "configure"
10f2d63a
VZ
8961#include "confdefs.h"
8962#include <stdio.h>
8963main()
8964{
8965 FILE *f=fopen("conftestval", "w");
8966 if (!f) exit(1);
8967 fprintf(f, "%d\n", sizeof(char));
8968 exit(0);
8969}
8970EOF
360d6699 8971if { (eval echo configure:8972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8972then
8973 ac_cv_sizeof_char=`cat conftestval`
8974else
8975 echo "configure: failed program was:" >&5
8976 cat conftest.$ac_ext >&5
8977 rm -fr conftest*
8978 ac_cv_sizeof_char=0
8979fi
8980rm -fr conftest*
8981fi
8982
8983fi
8984echo "$ac_t""$ac_cv_sizeof_char" 1>&6
8985cat >> confdefs.h <<EOF
8986#define SIZEOF_CHAR $ac_cv_sizeof_char
8987EOF
8988
8989
8990echo $ac_n "checking size of short""... $ac_c" 1>&6
360d6699 8991echo "configure:8992: checking size of short" >&5
10f2d63a
VZ
8992if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8993 echo $ac_n "(cached) $ac_c" 1>&6
8994else
8995 if test "$cross_compiling" = yes; then
8996 ac_cv_sizeof_short=2
8997else
8998 cat > conftest.$ac_ext <<EOF
360d6699 8999#line 9000 "configure"
10f2d63a
VZ
9000#include "confdefs.h"
9001#include <stdio.h>
9002main()
9003{
9004 FILE *f=fopen("conftestval", "w");
9005 if (!f) exit(1);
9006 fprintf(f, "%d\n", sizeof(short));
9007 exit(0);
9008}
9009EOF
360d6699 9010if { (eval echo configure:9011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9011then
9012 ac_cv_sizeof_short=`cat conftestval`
9013else
9014 echo "configure: failed program was:" >&5
9015 cat conftest.$ac_ext >&5
9016 rm -fr conftest*
9017 ac_cv_sizeof_short=0
9018fi
9019rm -fr conftest*
9020fi
9021
9022fi
9023echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9024cat >> confdefs.h <<EOF
9025#define SIZEOF_SHORT $ac_cv_sizeof_short
9026EOF
9027
9028
9029echo $ac_n "checking size of int *""... $ac_c" 1>&6
360d6699 9030echo "configure:9031: checking size of int *" >&5
10f2d63a
VZ
9031if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9032 echo $ac_n "(cached) $ac_c" 1>&6
9033else
9034 if test "$cross_compiling" = yes; then
9035 ac_cv_sizeof_int_p=4
9036else
9037 cat > conftest.$ac_ext <<EOF
360d6699 9038#line 9039 "configure"
10f2d63a
VZ
9039#include "confdefs.h"
9040#include <stdio.h>
9041main()
9042{
9043 FILE *f=fopen("conftestval", "w");
9044 if (!f) exit(1);
9045 fprintf(f, "%d\n", sizeof(int *));
9046 exit(0);
9047}
9048EOF
360d6699 9049if { (eval echo configure:9050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9050then
9051 ac_cv_sizeof_int_p=`cat conftestval`
9052else
9053 echo "configure: failed program was:" >&5
9054 cat conftest.$ac_ext >&5
9055 rm -fr conftest*
9056 ac_cv_sizeof_int_p=0
9057fi
9058rm -fr conftest*
9059fi
9060
9061fi
9062echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9063cat >> confdefs.h <<EOF
9064#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9065EOF
9066
9067
9068echo $ac_n "checking size of int""... $ac_c" 1>&6
360d6699 9069echo "configure:9070: checking size of int" >&5
10f2d63a
VZ
9070if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9071 echo $ac_n "(cached) $ac_c" 1>&6
9072else
9073 if test "$cross_compiling" = yes; then
9074 ac_cv_sizeof_int=4
9075else
9076 cat > conftest.$ac_ext <<EOF
360d6699 9077#line 9078 "configure"
10f2d63a
VZ
9078#include "confdefs.h"
9079#include <stdio.h>
9080main()
9081{
9082 FILE *f=fopen("conftestval", "w");
9083 if (!f) exit(1);
9084 fprintf(f, "%d\n", sizeof(int));
9085 exit(0);
9086}
9087EOF
360d6699 9088if { (eval echo configure:9089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9089then
9090 ac_cv_sizeof_int=`cat conftestval`
9091else
9092 echo "configure: failed program was:" >&5
9093 cat conftest.$ac_ext >&5
9094 rm -fr conftest*
9095 ac_cv_sizeof_int=0
9096fi
9097rm -fr conftest*
9098fi
9099
9100fi
9101echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9102cat >> confdefs.h <<EOF
9103#define SIZEOF_INT $ac_cv_sizeof_int
9104EOF
9105
9106
9107echo $ac_n "checking size of long""... $ac_c" 1>&6
360d6699 9108echo "configure:9109: checking size of long" >&5
10f2d63a
VZ
9109if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9110 echo $ac_n "(cached) $ac_c" 1>&6
9111else
9112 if test "$cross_compiling" = yes; then
9113 ac_cv_sizeof_long=4
9114else
9115 cat > conftest.$ac_ext <<EOF
360d6699 9116#line 9117 "configure"
10f2d63a
VZ
9117#include "confdefs.h"
9118#include <stdio.h>
9119main()
9120{
9121 FILE *f=fopen("conftestval", "w");
9122 if (!f) exit(1);
9123 fprintf(f, "%d\n", sizeof(long));
9124 exit(0);
9125}
9126EOF
360d6699 9127if { (eval echo configure:9128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9128then
9129 ac_cv_sizeof_long=`cat conftestval`
9130else
9131 echo "configure: failed program was:" >&5
9132 cat conftest.$ac_ext >&5
9133 rm -fr conftest*
9134 ac_cv_sizeof_long=0
9135fi
9136rm -fr conftest*
9137fi
9138
9139fi
9140echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9141cat >> confdefs.h <<EOF
9142#define SIZEOF_LONG $ac_cv_sizeof_long
9143EOF
9144
9145
9146echo $ac_n "checking size of long long""... $ac_c" 1>&6
360d6699 9147echo "configure:9148: checking size of long long" >&5
10f2d63a
VZ
9148if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9149 echo $ac_n "(cached) $ac_c" 1>&6
9150else
9151 if test "$cross_compiling" = yes; then
9152 ac_cv_sizeof_long_long=0
9153else
9154 cat > conftest.$ac_ext <<EOF
360d6699 9155#line 9156 "configure"
10f2d63a
VZ
9156#include "confdefs.h"
9157#include <stdio.h>
9158main()
9159{
9160 FILE *f=fopen("conftestval", "w");
9161 if (!f) exit(1);
9162 fprintf(f, "%d\n", sizeof(long long));
9163 exit(0);
9164}
9165EOF
360d6699 9166if { (eval echo configure:9167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9167then
9168 ac_cv_sizeof_long_long=`cat conftestval`
9169else
9170 echo "configure: failed program was:" >&5
9171 cat conftest.$ac_ext >&5
9172 rm -fr conftest*
9173 ac_cv_sizeof_long_long=0
9174fi
9175rm -fr conftest*
9176fi
9177
9178fi
9179echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9180cat >> confdefs.h <<EOF
9181#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9182EOF
9183
9184
9185
9186echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
360d6699 9187echo "configure:9188: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9188if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9189 echo $ac_n "(cached) $ac_c" 1>&6
9190else
9191 ac_cv_c_bigendian=unknown
9192# See if sys/param.h defines the BYTE_ORDER macro.
9193cat > conftest.$ac_ext <<EOF
360d6699 9194#line 9195 "configure"
10f2d63a
VZ
9195#include "confdefs.h"
9196#include <sys/types.h>
9197#include <sys/param.h>
9198int main() {
9199
9200#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9201 bogus endian macros
9202#endif
9203; return 0; }
9204EOF
360d6699 9205if { (eval echo configure:9206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9206 rm -rf conftest*
9207 # It does; now see whether it defined to BIG_ENDIAN or not.
9208cat > conftest.$ac_ext <<EOF
360d6699 9209#line 9210 "configure"
10f2d63a
VZ
9210#include "confdefs.h"
9211#include <sys/types.h>
9212#include <sys/param.h>
9213int main() {
9214
9215#if BYTE_ORDER != BIG_ENDIAN
9216 not big endian
9217#endif
9218; return 0; }
9219EOF
360d6699 9220if { (eval echo configure:9221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9221 rm -rf conftest*
9222 ac_cv_c_bigendian=yes
9223else
9224 echo "configure: failed program was:" >&5
9225 cat conftest.$ac_ext >&5
9226 rm -rf conftest*
9227 ac_cv_c_bigendian=no
9228fi
9229rm -f conftest*
9230else
9231 echo "configure: failed program was:" >&5
9232 cat conftest.$ac_ext >&5
9233fi
9234rm -f conftest*
9235if test $ac_cv_c_bigendian = unknown; then
9236if test "$cross_compiling" = yes; then
9237 ac_cv_c_bigendian=unknown
9238else
9239 cat > conftest.$ac_ext <<EOF
360d6699 9240#line 9241 "configure"
10f2d63a
VZ
9241#include "confdefs.h"
9242main () {
9243 /* Are we little or big endian? From Harbison&Steele. */
9244 union
9245 {
9246 long l;
9247 char c[sizeof (long)];
9248 } u;
9249 u.l = 1;
9250 exit (u.c[sizeof (long) - 1] == 1);
9251}
9252EOF
360d6699 9253if { (eval echo configure:9254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9254then
9255 ac_cv_c_bigendian=no
9256else
9257 echo "configure: failed program was:" >&5
9258 cat conftest.$ac_ext >&5
9259 rm -fr conftest*
9260 ac_cv_c_bigendian=yes
9261fi
9262rm -fr conftest*
9263fi
9264
9265fi
9266fi
9267
9268echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9269if test $ac_cv_c_bigendian = unknown; then
9270 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
9271fi
9272if test $ac_cv_c_bigendian = yes; then
9273 cat >> confdefs.h <<\EOF
9274#define WORDS_BIGENDIAN 1
9275EOF
9276
9277fi
9278
9279
9280
9281 if test "$cross_compiling" = "yes"; then
9282 cat >> confdefs.h <<\EOF
9283#define wxUSE_IOSTREAMH 1
9284EOF
9285
9286 else
9287
9288 ac_ext=C
9289# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9290ac_cpp='$CXXCPP $CPPFLAGS'
9291ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9292ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9293cross_compiling=$ac_cv_prog_cxx_cross
9294
9295
9296 for ac_hdr in iostream
9297do
9298ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9299echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
360d6699 9300echo "configure:9301: checking for $ac_hdr" >&5
10f2d63a
VZ
9301if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9302 echo $ac_n "(cached) $ac_c" 1>&6
9303else
9304 cat > conftest.$ac_ext <<EOF
360d6699 9305#line 9306 "configure"
10f2d63a
VZ
9306#include "confdefs.h"
9307#include <$ac_hdr>
9308EOF
9309ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
360d6699 9310{ (eval echo configure:9311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9311ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9312if test -z "$ac_err"; then
9313 rm -rf conftest*
9314 eval "ac_cv_header_$ac_safe=yes"
9315else
9316 echo "$ac_err" >&5
9317 echo "configure: failed program was:" >&5
9318 cat conftest.$ac_ext >&5
9319 rm -rf conftest*
9320 eval "ac_cv_header_$ac_safe=no"
9321fi
9322rm -f conftest*
9323fi
9324if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9325 echo "$ac_t""yes" 1>&6
9326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9327 cat >> confdefs.h <<EOF
9328#define $ac_tr_hdr 1
9329EOF
9330
9331else
9332 echo "$ac_t""no" 1>&6
9333fi
9334done
9335
9336
9337 if test "x$HAVE_IOSTREAM" = x ; then
9338 cat >> confdefs.h <<\EOF
9339#define wxUSE_IOSTREAMH 1
9340EOF
9341
9342 else
9343 :
9344 fi
9345
9346 ac_ext=c
9347# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9348ac_cpp='$CPP $CPPFLAGS'
9349ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9350ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9351cross_compiling=$ac_cv_prog_cc_cross
9352
9353 fi
9354
9355
9356
9357 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
360d6699 9358echo "configure:9359: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9359if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9360 echo $ac_n "(cached) $ac_c" 1>&6
9361else
9362
9363
9364 ac_ext=C
9365# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9366ac_cpp='$CXXCPP $CPPFLAGS'
9367ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9368ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9369cross_compiling=$ac_cv_prog_cxx_cross
9370
9371
9372 cat > conftest.$ac_ext <<EOF
360d6699 9373#line 9374 "configure"
10f2d63a
VZ
9374#include "confdefs.h"
9375
9376
9377int main() {
9378
9379 bool b = true;
9380
9381 return 0;
9382
9383; return 0; }
9384EOF
360d6699 9385if { (eval echo configure:9386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9386 rm -rf conftest*
9387
9388 cat >> confdefs.h <<\EOF
9389#define HAVE_BOOL 1
9390EOF
9391
9392 wx_cv_cpp_bool=yes
9393
9394else
9395 echo "configure: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9397 rm -rf conftest*
9398
9399 wx_cv_cpp_bool=no
9400
9401
9402fi
9403rm -f conftest*
9404
9405 ac_ext=c
9406# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9407ac_cpp='$CPP $CPPFLAGS'
9408ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9409ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9410cross_compiling=$ac_cv_prog_cc_cross
9411
9412
9413fi
9414
9415echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9416
9417 if test "$wx_cv_cpp_bool" = "yes"; then
9418 cat >> confdefs.h <<\EOF
9419#define HAVE_BOOL 1
9420EOF
9421
9422 fi
9423
9424
9425
10f2d63a 9426echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
360d6699 9427echo "configure:9428: checking if you need GNU extensions" >&5
10f2d63a
VZ
9428if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9429 echo $ac_n "(cached) $ac_c" 1>&6
9430else
9431
9432 cat > conftest.$ac_ext <<EOF
360d6699 9433#line 9434 "configure"
10f2d63a
VZ
9434#include "confdefs.h"
9435#include <features.h>
9436int main() {
9437
9438
9439#ifndef __GNU_LIBRARY__
9440 Compile error wanted
9441#endif
9442
9443
9444; return 0; }
9445EOF
360d6699 9446if { (eval echo configure:9447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9447 rm -rf conftest*
9448 wx_cv_gnu_extensions=yes
9449else
9450 echo "configure: failed program was:" >&5
9451 cat conftest.$ac_ext >&5
9452 rm -rf conftest*
9453 wx_cv_gnu_extensions=no
9454fi
9455rm -f conftest*
9456
9457fi
9458
9459
9460echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9461if test "$wx_cv_gnu_extensions" = "yes"; then
9462 cat >> confdefs.h <<EOF
9463#define _GNU_SOURCE 1
9464EOF
9465
9466fi
9467
9468
9469
9470echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
360d6699 9471echo "configure:9472: checking for wcslen in -lc" >&5
10f2d63a
VZ
9472ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9473if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9474 echo $ac_n "(cached) $ac_c" 1>&6
9475else
9476 ac_save_LIBS="$LIBS"
9477LIBS="-lc $LIBS"
9478cat > conftest.$ac_ext <<EOF
360d6699 9479#line 9480 "configure"
10f2d63a
VZ
9480#include "confdefs.h"
9481/* Override any gcc2 internal prototype to avoid an error. */
9482/* We use char because int might match the return type of a gcc2
9483 builtin and then its argument prototype would still apply. */
9484char wcslen();
9485
9486int main() {
9487wcslen()
9488; return 0; }
9489EOF
360d6699 9490if { (eval echo configure:9491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9491 rm -rf conftest*
9492 eval "ac_cv_lib_$ac_lib_var=yes"
9493else
9494 echo "configure: failed program was:" >&5
9495 cat conftest.$ac_ext >&5
9496 rm -rf conftest*
9497 eval "ac_cv_lib_$ac_lib_var=no"
9498fi
9499rm -f conftest*
9500LIBS="$ac_save_LIBS"
9501
9502fi
9503if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9504 echo "$ac_t""yes" 1>&6
9505
9506 cat >> confdefs.h <<\EOF
9507#define HAVE_WCSLEN 1
9508EOF
9509
9510 WCHAR_LINK=""
9511
9512else
9513 echo "$ac_t""no" 1>&6
9514
9515 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
360d6699 9516echo "configure:9517: checking for wcslen in -lw" >&5
10f2d63a
VZ
9517ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9518if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9519 echo $ac_n "(cached) $ac_c" 1>&6
9520else
9521 ac_save_LIBS="$LIBS"
9522LIBS="-lw $LIBS"
9523cat > conftest.$ac_ext <<EOF
360d6699 9524#line 9525 "configure"
10f2d63a
VZ
9525#include "confdefs.h"
9526/* Override any gcc2 internal prototype to avoid an error. */
9527/* We use char because int might match the return type of a gcc2
9528 builtin and then its argument prototype would still apply. */
9529char wcslen();
9530
9531int main() {
9532wcslen()
9533; return 0; }
9534EOF
360d6699 9535if { (eval echo configure:9536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9536 rm -rf conftest*
9537 eval "ac_cv_lib_$ac_lib_var=yes"
9538else
9539 echo "configure: failed program was:" >&5
9540 cat conftest.$ac_ext >&5
9541 rm -rf conftest*
9542 eval "ac_cv_lib_$ac_lib_var=no"
9543fi
9544rm -f conftest*
9545LIBS="$ac_save_LIBS"
9546
9547fi
9548if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9549 echo "$ac_t""yes" 1>&6
9550
9551 cat >> confdefs.h <<\EOF
9552#define HAVE_WCSLEN 1
9553EOF
9554
9555 WCHAR_LINK="-lw"
9556
9557else
9558 echo "$ac_t""no" 1>&6
9559fi
9560
9561
9562fi
9563
9564
9565echo $ac_n "checking for vprintf""... $ac_c" 1>&6
360d6699 9566echo "configure:9567: checking for vprintf" >&5
10f2d63a
VZ
9567if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9568 echo $ac_n "(cached) $ac_c" 1>&6
9569else
9570 cat > conftest.$ac_ext <<EOF
360d6699 9571#line 9572 "configure"
10f2d63a
VZ
9572#include "confdefs.h"
9573/* System header to define __stub macros and hopefully few prototypes,
9574 which can conflict with char vprintf(); below. */
9575#include <assert.h>
9576/* Override any gcc2 internal prototype to avoid an error. */
9577/* We use char because int might match the return type of a gcc2
9578 builtin and then its argument prototype would still apply. */
9579char vprintf();
9580
9581int main() {
9582
9583/* The GNU C library defines this for functions which it implements
9584 to always fail with ENOSYS. Some functions are actually named
9585 something starting with __ and the normal name is an alias. */
9586#if defined (__stub_vprintf) || defined (__stub___vprintf)
9587choke me
9588#else
e694c22c 9589vprintf();
10f2d63a
VZ
9590#endif
9591
9592; return 0; }
9593EOF
360d6699 9594if { (eval echo configure:9595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9595 rm -rf conftest*
9596 eval "ac_cv_func_vprintf=yes"
9597else
9598 echo "configure: failed program was:" >&5
9599 cat conftest.$ac_ext >&5
9600 rm -rf conftest*
9601 eval "ac_cv_func_vprintf=no"
9602fi
9603rm -f conftest*
9604fi
9605
9606if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9607 echo "$ac_t""yes" 1>&6
9608 cat >> confdefs.h <<\EOF
9609#define HAVE_VPRINTF 1
9610EOF
9611
9612else
9613 echo "$ac_t""no" 1>&6
9614fi
9615
9616if test "$ac_cv_func_vprintf" != yes; then
9617echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
360d6699 9618echo "configure:9619: checking for _doprnt" >&5
10f2d63a
VZ
9619if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9620 echo $ac_n "(cached) $ac_c" 1>&6
9621else
9622 cat > conftest.$ac_ext <<EOF
360d6699 9623#line 9624 "configure"
10f2d63a
VZ
9624#include "confdefs.h"
9625/* System header to define __stub macros and hopefully few prototypes,
9626 which can conflict with char _doprnt(); below. */
9627#include <assert.h>
9628/* Override any gcc2 internal prototype to avoid an error. */
9629/* We use char because int might match the return type of a gcc2
9630 builtin and then its argument prototype would still apply. */
9631char _doprnt();
9632
9633int main() {
9634
9635/* The GNU C library defines this for functions which it implements
9636 to always fail with ENOSYS. Some functions are actually named
9637 something starting with __ and the normal name is an alias. */
9638#if defined (__stub__doprnt) || defined (__stub____doprnt)
9639choke me
9640#else
e694c22c 9641_doprnt();
10f2d63a
VZ
9642#endif
9643
9644; return 0; }
9645EOF
360d6699 9646if { (eval echo configure:9647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9647 rm -rf conftest*
9648 eval "ac_cv_func__doprnt=yes"
9649else
9650 echo "configure: failed program was:" >&5
9651 cat conftest.$ac_ext >&5
9652 rm -rf conftest*
9653 eval "ac_cv_func__doprnt=no"
9654fi
9655rm -f conftest*
9656fi
9657
9658if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9659 echo "$ac_t""yes" 1>&6
9660 cat >> confdefs.h <<\EOF
9661#define HAVE_DOPRNT 1
9662EOF
9663
9664else
9665 echo "$ac_t""no" 1>&6
9666fi
9667
9668fi
9669
9670
9671for ac_func in vsnprintf
9672do
9673echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
360d6699 9674echo "configure:9675: checking for $ac_func" >&5
10f2d63a
VZ
9675if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9676 echo $ac_n "(cached) $ac_c" 1>&6
9677else
9678 cat > conftest.$ac_ext <<EOF
360d6699 9679#line 9680 "configure"
10f2d63a
VZ
9680#include "confdefs.h"
9681/* System header to define __stub macros and hopefully few prototypes,
9682 which can conflict with char $ac_func(); below. */
9683#include <assert.h>
9684/* Override any gcc2 internal prototype to avoid an error. */
9685/* We use char because int might match the return type of a gcc2
9686 builtin and then its argument prototype would still apply. */
9687char $ac_func();
9688
9689int main() {
9690
9691/* The GNU C library defines this for functions which it implements
9692 to always fail with ENOSYS. Some functions are actually named
9693 something starting with __ and the normal name is an alias. */
9694#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9695choke me
9696#else
e694c22c 9697$ac_func();
10f2d63a
VZ
9698#endif
9699
9700; return 0; }
9701EOF
360d6699 9702if { (eval echo configure:9703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9703 rm -rf conftest*
9704 eval "ac_cv_func_$ac_func=yes"
9705else
9706 echo "configure: failed program was:" >&5
9707 cat conftest.$ac_ext >&5
9708 rm -rf conftest*
9709 eval "ac_cv_func_$ac_func=no"
9710fi
9711rm -f conftest*
9712fi
9713
9714if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9715 echo "$ac_t""yes" 1>&6
9716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9717 cat >> confdefs.h <<EOF
9718#define $ac_tr_func 1
9719EOF
9720 cat >> confdefs.h <<\EOF
9721#define HAVE_VSNPRINTF 1
9722EOF
9723
9724else
9725 echo "$ac_t""no" 1>&6
9726echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9727
9728fi
9729done
9730
9731
9732
9733ac_ext=C
9734# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9735ac_cpp='$CXXCPP $CPPFLAGS'
9736ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9737ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9738cross_compiling=$ac_cv_prog_cxx_cross
9739
9740
9741echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
360d6699 9742echo "configure:9743: checking for vsscanf" >&5
10f2d63a
VZ
9743if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9744 echo $ac_n "(cached) $ac_c" 1>&6
9745else
9746
9747 if test "$cross_compiling" = yes; then
9748 wx_cv_func_vsscanf=no
9749
9750else
9751 cat > conftest.$ac_ext <<EOF
360d6699 9752#line 9753 "configure"
10f2d63a
VZ
9753#include "confdefs.h"
9754#ifdef __cplusplus
9755extern "C" void exit(int);
9756#endif
9757
9758 #include <stdio.h>
9759 #include <stdarg.h>
9760
9761 int try_vsscanf(const char *format, ...)
9762 {
9763 va_list ap;
9764 va_start(ap, format);
9765
9766 vsscanf("17", format, ap);
9767
9768 va_end(ap);
9769 }
9770
9771 int main()
9772 {
9773 int i;
9774 try_vsscanf("%d", &i);
9775 return i == 17 ? 0 : 1;
9776 }
9777
9778EOF
360d6699 9779if { (eval echo configure:9780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9780then
9781
9782 cat >> confdefs.h <<\EOF
9783#define HAVE_VSSCANF 1
9784EOF
9785
9786 wx_cv_func_vsscanf=yes
9787
9788else
9789 echo "configure: failed program was:" >&5
9790 cat conftest.$ac_ext >&5
9791 rm -fr conftest*
9792 wx_cv_func_vsscanf=no
9793fi
9794rm -fr conftest*
9795fi
9796
9797
9798fi
9799
9800echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9801
9802ac_ext=c
9803# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9804ac_cpp='$CPP $CPPFLAGS'
9805ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9806ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9807cross_compiling=$ac_cv_prog_cc_cross
9808
9809
9810if test "$USE_UNIX" = 1; then
9811
9812for ac_func in vfork
9813do
9814echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
360d6699 9815echo "configure:9816: checking for $ac_func" >&5
10f2d63a
VZ
9816if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9817 echo $ac_n "(cached) $ac_c" 1>&6
9818else
9819 cat > conftest.$ac_ext <<EOF
360d6699 9820#line 9821 "configure"
10f2d63a
VZ
9821#include "confdefs.h"
9822/* System header to define __stub macros and hopefully few prototypes,
9823 which can conflict with char $ac_func(); below. */
9824#include <assert.h>
9825/* Override any gcc2 internal prototype to avoid an error. */
9826/* We use char because int might match the return type of a gcc2
9827 builtin and then its argument prototype would still apply. */
9828char $ac_func();
9829
9830int main() {
9831
9832/* The GNU C library defines this for functions which it implements
9833 to always fail with ENOSYS. Some functions are actually named
9834 something starting with __ and the normal name is an alias. */
9835#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9836choke me
9837#else
e694c22c 9838$ac_func();
10f2d63a
VZ
9839#endif
9840
9841; return 0; }
9842EOF
360d6699 9843if { (eval echo configure:9844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
9844 rm -rf conftest*
9845 eval "ac_cv_func_$ac_func=yes"
9846else
9847 echo "configure: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9849 rm -rf conftest*
9850 eval "ac_cv_func_$ac_func=no"
9851fi
9852rm -f conftest*
9853fi
9854
9855if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9856 echo "$ac_t""yes" 1>&6
9857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9858 cat >> confdefs.h <<EOF
9859#define $ac_tr_func 1
9860EOF
9861
9862else
9863 echo "$ac_t""no" 1>&6
9864fi
9865done
9866
9867
9868for ac_func in timegm
9869do
9870echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
360d6699 9871echo "configure:9872: checking for $ac_func" >&5
270a909e
VZ
9872if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9873 echo $ac_n "(cached) $ac_c" 1>&6
9874else
9875 cat > conftest.$ac_ext <<EOF
360d6699 9876#line 9877 "configure"
270a909e
VZ
9877#include "confdefs.h"
9878/* System header to define __stub macros and hopefully few prototypes,
9879 which can conflict with char $ac_func(); below. */
9880#include <assert.h>
9881/* Override any gcc2 internal prototype to avoid an error. */
9882/* We use char because int might match the return type of a gcc2
9883 builtin and then its argument prototype would still apply. */
9884char $ac_func();
9885
9886int main() {
9887
9888/* The GNU C library defines this for functions which it implements
9889 to always fail with ENOSYS. Some functions are actually named
9890 something starting with __ and the normal name is an alias. */
9891#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9892choke me
9893#else
e694c22c 9894$ac_func();
270a909e
VZ
9895#endif
9896
9897; return 0; }
9898EOF
360d6699 9899if { (eval echo configure:9900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9900 rm -rf conftest*
9901 eval "ac_cv_func_$ac_func=yes"
9902else
9903 echo "configure: failed program was:" >&5
9904 cat conftest.$ac_ext >&5
9905 rm -rf conftest*
9906 eval "ac_cv_func_$ac_func=no"
9907fi
9908rm -f conftest*
9909fi
9910
9911if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9912 echo "$ac_t""yes" 1>&6
9913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9914 cat >> confdefs.h <<EOF
9915#define $ac_tr_func 1
9916EOF
9917
9918else
9919 echo "$ac_t""no" 1>&6
9920fi
9921done
9922
9923
9924POSIX4_LINK=
9925for ac_func in nanosleep
9926do
9927echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
360d6699 9928echo "configure:9929: checking for $ac_func" >&5
10f2d63a
VZ
9929if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9930 echo $ac_n "(cached) $ac_c" 1>&6
9931else
9932 cat > conftest.$ac_ext <<EOF
360d6699 9933#line 9934 "configure"
10f2d63a
VZ
9934#include "confdefs.h"
9935/* System header to define __stub macros and hopefully few prototypes,
9936 which can conflict with char $ac_func(); below. */
9937#include <assert.h>
9938/* Override any gcc2 internal prototype to avoid an error. */
9939/* We use char because int might match the return type of a gcc2
9940 builtin and then its argument prototype would still apply. */
9941char $ac_func();
9942
9943int main() {
9944
9945/* The GNU C library defines this for functions which it implements
9946 to always fail with ENOSYS. Some functions are actually named
9947 something starting with __ and the normal name is an alias. */
9948#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9949choke me
9950#else
e694c22c 9951$ac_func();
10f2d63a
VZ
9952#endif
9953
9954; return 0; }
9955EOF
360d6699 9956if { (eval echo configure:9957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9957 rm -rf conftest*
9958 eval "ac_cv_func_$ac_func=yes"
9959else
9960 echo "configure: failed program was:" >&5
9961 cat conftest.$ac_ext >&5
9962 rm -rf conftest*
9963 eval "ac_cv_func_$ac_func=no"
9964fi
9965rm -f conftest*
9966fi
9967
9968if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9969 echo "$ac_t""yes" 1>&6
9970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9971 cat >> confdefs.h <<EOF
9972#define $ac_tr_func 1
9973EOF
9974 cat >> confdefs.h <<\EOF
9975#define HAVE_NANOSLEEP 1
9976EOF
9977
9978else
9979 echo "$ac_t""no" 1>&6
9980echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
360d6699 9981echo "configure:9982: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
9982ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
9983if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9984 echo $ac_n "(cached) $ac_c" 1>&6
9985else
9986 ac_save_LIBS="$LIBS"
9987LIBS="-lposix4 $LIBS"
9988cat > conftest.$ac_ext <<EOF
360d6699 9989#line 9990 "configure"
10f2d63a
VZ
9990#include "confdefs.h"
9991/* Override any gcc2 internal prototype to avoid an error. */
9992/* We use char because int might match the return type of a gcc2
9993 builtin and then its argument prototype would still apply. */
9994char nanosleep();
9995
9996int main() {
9997nanosleep()
9998; return 0; }
9999EOF
360d6699 10000if { (eval echo configure:10001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10001 rm -rf conftest*
10002 eval "ac_cv_lib_$ac_lib_var=yes"
10003else
10004 echo "configure: failed program was:" >&5
10005 cat conftest.$ac_ext >&5
10006 rm -rf conftest*
10007 eval "ac_cv_lib_$ac_lib_var=no"
10008fi
10009rm -f conftest*
10010LIBS="$ac_save_LIBS"
10011
10012fi
10013if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10014 echo "$ac_t""yes" 1>&6
10015
10016 cat >> confdefs.h <<\EOF
10017#define HAVE_NANOSLEEP 1
10018EOF
10019
10020 POSIX4_LINK="-lposix4"
10021
10022else
10023 echo "$ac_t""no" 1>&6
10024
10025 for ac_func in usleep
10026do
10027echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
360d6699 10028echo "configure:10029: checking for $ac_func" >&5
10f2d63a
VZ
10029if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10030 echo $ac_n "(cached) $ac_c" 1>&6
10031else
10032 cat > conftest.$ac_ext <<EOF
360d6699 10033#line 10034 "configure"
10f2d63a
VZ
10034#include "confdefs.h"
10035/* System header to define __stub macros and hopefully few prototypes,
10036 which can conflict with char $ac_func(); below. */
10037#include <assert.h>
10038/* Override any gcc2 internal prototype to avoid an error. */
10039/* We use char because int might match the return type of a gcc2
10040 builtin and then its argument prototype would still apply. */
10041char $ac_func();
10042
10043int main() {
10044
10045/* The GNU C library defines this for functions which it implements
10046 to always fail with ENOSYS. Some functions are actually named
10047 something starting with __ and the normal name is an alias. */
10048#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10049choke me
10050#else
e694c22c 10051$ac_func();
10f2d63a
VZ
10052#endif
10053
10054; return 0; }
10055EOF
360d6699 10056if { (eval echo configure:10057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10057 rm -rf conftest*
10058 eval "ac_cv_func_$ac_func=yes"
10059else
10060 echo "configure: failed program was:" >&5
10061 cat conftest.$ac_ext >&5
10062 rm -rf conftest*
10063 eval "ac_cv_func_$ac_func=no"
10064fi
10065rm -f conftest*
10066fi
10067
10068if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10069 echo "$ac_t""yes" 1>&6
10070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10071 cat >> confdefs.h <<EOF
10072#define $ac_tr_func 1
10073EOF
10074 cat >> confdefs.h <<\EOF
10075#define HAVE_USLEEP 1
10076EOF
10077
10078else
10079 echo "$ac_t""no" 1>&6
10080echo "configure: warning: wxSleep() function will not work" 1>&2
10081fi
10082done
10083
10084
10085fi
10086
10087
10088fi
10089done
10090
10091
10092for ac_func in uname gethostname
10093do
10094echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
360d6699 10095echo "configure:10096: checking for $ac_func" >&5
10f2d63a
VZ
10096if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10097 echo $ac_n "(cached) $ac_c" 1>&6
10098else
10099 cat > conftest.$ac_ext <<EOF
360d6699 10100#line 10101 "configure"
10f2d63a
VZ
10101#include "confdefs.h"
10102/* System header to define __stub macros and hopefully few prototypes,
10103 which can conflict with char $ac_func(); below. */
10104#include <assert.h>
10105/* Override any gcc2 internal prototype to avoid an error. */
10106/* We use char because int might match the return type of a gcc2
10107 builtin and then its argument prototype would still apply. */
10108char $ac_func();
10109
10110int main() {
10111
10112/* The GNU C library defines this for functions which it implements
10113 to always fail with ENOSYS. Some functions are actually named
10114 something starting with __ and the normal name is an alias. */
10115#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10116choke me
10117#else
e694c22c 10118$ac_func();
10f2d63a
VZ
10119#endif
10120
10121; return 0; }
10122EOF
360d6699 10123if { (eval echo configure:10124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10124 rm -rf conftest*
10125 eval "ac_cv_func_$ac_func=yes"
10126else
10127 echo "configure: failed program was:" >&5
10128 cat conftest.$ac_ext >&5
10129 rm -rf conftest*
10130 eval "ac_cv_func_$ac_func=no"
10131fi
10132rm -f conftest*
10133fi
10134
10135if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10136 echo "$ac_t""yes" 1>&6
10137 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10138 cat >> confdefs.h <<EOF
10139#define $ac_tr_func 1
10140EOF
10141 break
10142else
10143 echo "$ac_t""no" 1>&6
10144fi
10145done
10146
10147
10148for ac_func in strtok_r
10149do
10150echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
360d6699 10151echo "configure:10152: checking for $ac_func" >&5
10f2d63a
VZ
10152if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10153 echo $ac_n "(cached) $ac_c" 1>&6
10154else
10155 cat > conftest.$ac_ext <<EOF
360d6699 10156#line 10157 "configure"
10f2d63a
VZ
10157#include "confdefs.h"
10158/* System header to define __stub macros and hopefully few prototypes,
10159 which can conflict with char $ac_func(); below. */
10160#include <assert.h>
10161/* Override any gcc2 internal prototype to avoid an error. */
10162/* We use char because int might match the return type of a gcc2
10163 builtin and then its argument prototype would still apply. */
10164char $ac_func();
10165
10166int main() {
10167
10168/* The GNU C library defines this for functions which it implements
10169 to always fail with ENOSYS. Some functions are actually named
10170 something starting with __ and the normal name is an alias. */
10171#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10172choke me
10173#else
e694c22c 10174$ac_func();
10f2d63a
VZ
10175#endif
10176
10177; return 0; }
10178EOF
360d6699 10179if { (eval echo configure:10180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10180 rm -rf conftest*
10181 eval "ac_cv_func_$ac_func=yes"
10182else
10183 echo "configure: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10185 rm -rf conftest*
10186 eval "ac_cv_func_$ac_func=no"
10187fi
10188rm -f conftest*
10189fi
10190
10191if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10192 echo "$ac_t""yes" 1>&6
10193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10194 cat >> confdefs.h <<EOF
10195#define $ac_tr_func 1
10196EOF
10197
10198else
10199 echo "$ac_t""no" 1>&6
10200fi
10201done
10202
10203
c63c7106 10204INET_LINK=
10f2d63a
VZ
10205for ac_func in inet_addr
10206do
10207echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
360d6699 10208echo "configure:10209: checking for $ac_func" >&5
10f2d63a
VZ
10209if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10210 echo $ac_n "(cached) $ac_c" 1>&6
10211else
10212 cat > conftest.$ac_ext <<EOF
360d6699 10213#line 10214 "configure"
10f2d63a
VZ
10214#include "confdefs.h"
10215/* System header to define __stub macros and hopefully few prototypes,
10216 which can conflict with char $ac_func(); below. */
10217#include <assert.h>
10218/* Override any gcc2 internal prototype to avoid an error. */
10219/* We use char because int might match the return type of a gcc2
10220 builtin and then its argument prototype would still apply. */
10221char $ac_func();
10222
10223int main() {
10224
10225/* The GNU C library defines this for functions which it implements
10226 to always fail with ENOSYS. Some functions are actually named
10227 something starting with __ and the normal name is an alias. */
10228#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10229choke me
10230#else
e694c22c 10231$ac_func();
10f2d63a
VZ
10232#endif
10233
10234; return 0; }
10235EOF
360d6699 10236if { (eval echo configure:10237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10237 rm -rf conftest*
10238 eval "ac_cv_func_$ac_func=yes"
10239else
10240 echo "configure: failed program was:" >&5
10241 cat conftest.$ac_ext >&5
10242 rm -rf conftest*
10243 eval "ac_cv_func_$ac_func=no"
10244fi
10245rm -f conftest*
10246fi
10247
10248if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10249 echo "$ac_t""yes" 1>&6
10250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10251 cat >> confdefs.h <<EOF
10252#define $ac_tr_func 1
10253EOF
c63c7106
VZ
10254 cat >> confdefs.h <<\EOF
10255#define HAVE_INET_ADDR 1
10256EOF
10257
10f2d63a
VZ
10258else
10259 echo "$ac_t""no" 1>&6
c63c7106 10260echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
360d6699 10261echo "configure:10262: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10262ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10263if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10264 echo $ac_n "(cached) $ac_c" 1>&6
10265else
10266 ac_save_LIBS="$LIBS"
10267LIBS="-lnsl $LIBS"
10268cat > conftest.$ac_ext <<EOF
360d6699 10269#line 10270 "configure"
c63c7106
VZ
10270#include "confdefs.h"
10271/* Override any gcc2 internal prototype to avoid an error. */
10272/* We use char because int might match the return type of a gcc2
10273 builtin and then its argument prototype would still apply. */
10274char inet_addr();
10275
10276int main() {
10277inet_addr()
10278; return 0; }
10279EOF
360d6699 10280if { (eval echo configure:10281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10281 rm -rf conftest*
10282 eval "ac_cv_lib_$ac_lib_var=yes"
10283else
10284 echo "configure: failed program was:" >&5
10285 cat conftest.$ac_ext >&5
10286 rm -rf conftest*
10287 eval "ac_cv_lib_$ac_lib_var=no"
10288fi
10289rm -f conftest*
10290LIBS="$ac_save_LIBS"
10291
10292fi
10293if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10294 echo "$ac_t""yes" 1>&6
10295 INET_LINK="nsl"
10296else
10297 echo "$ac_t""no" 1>&6
10298echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
360d6699 10299echo "configure:10300: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10300ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10301if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10302 echo $ac_n "(cached) $ac_c" 1>&6
10303else
10304 ac_save_LIBS="$LIBS"
10305LIBS="-lresolv $LIBS"
10306cat > conftest.$ac_ext <<EOF
360d6699 10307#line 10308 "configure"
c63c7106
VZ
10308#include "confdefs.h"
10309/* Override any gcc2 internal prototype to avoid an error. */
10310/* We use char because int might match the return type of a gcc2
10311 builtin and then its argument prototype would still apply. */
10312char inet_addr();
10313
10314int main() {
10315inet_addr()
10316; return 0; }
10317EOF
360d6699 10318if { (eval echo configure:10319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10319 rm -rf conftest*
10320 eval "ac_cv_lib_$ac_lib_var=yes"
10321else
10322 echo "configure: failed program was:" >&5
10323 cat conftest.$ac_ext >&5
10324 rm -rf conftest*
10325 eval "ac_cv_lib_$ac_lib_var=no"
10326fi
10327rm -f conftest*
10328LIBS="$ac_save_LIBS"
10329
10330fi
10331if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10332 echo "$ac_t""yes" 1>&6
10333 INET_LINK="resolv"
10334
10335else
10336 echo "$ac_t""no" 1>&6
10337fi
10338
10339
10340fi
10341
10342
10343
10f2d63a
VZ
10344fi
10345done
10346
c63c7106 10347
10f2d63a
VZ
10348for ac_func in inet_aton
10349do
10350echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
360d6699 10351echo "configure:10352: checking for $ac_func" >&5
10f2d63a
VZ
10352if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10353 echo $ac_n "(cached) $ac_c" 1>&6
10354else
10355 cat > conftest.$ac_ext <<EOF
360d6699 10356#line 10357 "configure"
10f2d63a
VZ
10357#include "confdefs.h"
10358/* System header to define __stub macros and hopefully few prototypes,
10359 which can conflict with char $ac_func(); below. */
10360#include <assert.h>
10361/* Override any gcc2 internal prototype to avoid an error. */
10362/* We use char because int might match the return type of a gcc2
10363 builtin and then its argument prototype would still apply. */
10364char $ac_func();
10365
10366int main() {
10367
10368/* The GNU C library defines this for functions which it implements
10369 to always fail with ENOSYS. Some functions are actually named
10370 something starting with __ and the normal name is an alias. */
10371#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10372choke me
10373#else
e694c22c 10374$ac_func();
10f2d63a
VZ
10375#endif
10376
10377; return 0; }
10378EOF
360d6699 10379if { (eval echo configure:10380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10380 rm -rf conftest*
10381 eval "ac_cv_func_$ac_func=yes"
10382else
10383 echo "configure: failed program was:" >&5
10384 cat conftest.$ac_ext >&5
10385 rm -rf conftest*
10386 eval "ac_cv_func_$ac_func=no"
10387fi
10388rm -f conftest*
10389fi
10390
10391if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10392 echo "$ac_t""yes" 1>&6
10393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10394 cat >> confdefs.h <<EOF
10395#define $ac_tr_func 1
10396EOF
c63c7106
VZ
10397 cat >> confdefs.h <<\EOF
10398#define HAVE_INET_ATON 1
10399EOF
10400
10f2d63a
VZ
10401else
10402 echo "$ac_t""no" 1>&6
c63c7106 10403 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
360d6699 10404echo "configure:10405: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10405ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10406if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10407 echo $ac_n "(cached) $ac_c" 1>&6
10408else
10409 ac_save_LIBS="$LIBS"
c63c7106 10410LIBS="-l$INET_LINK $LIBS"
10f2d63a 10411cat > conftest.$ac_ext <<EOF
360d6699 10412#line 10413 "configure"
10f2d63a
VZ
10413#include "confdefs.h"
10414/* Override any gcc2 internal prototype to avoid an error. */
10415/* We use char because int might match the return type of a gcc2
10416 builtin and then its argument prototype would still apply. */
10417char inet_aton();
10418
10419int main() {
10420inet_aton()
10421; return 0; }
10422EOF
360d6699 10423if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10424 rm -rf conftest*
10425 eval "ac_cv_lib_$ac_lib_var=yes"
10426else
10427 echo "configure: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10429 rm -rf conftest*
10430 eval "ac_cv_lib_$ac_lib_var=no"
10431fi
10432rm -f conftest*
10433LIBS="$ac_save_LIBS"
10434
10435fi
10436if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10437 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10438 cat >> confdefs.h <<\EOF
10439#define HAVE_INET_ATON 1
10f2d63a
VZ
10440EOF
10441
10f2d63a
VZ
10442else
10443 echo "$ac_t""no" 1>&6
10444fi
10445
c63c7106
VZ
10446
10447fi
10448done
10449
10450
10451if test "x$INET_LINK" != "x"; then
10452 cat >> confdefs.h <<\EOF
10453#define HAVE_INET_ADDR 1
10454EOF
10455
10456 INET_LINK="-l$INET_LINK"
10457fi
10f2d63a
VZ
10458
10459fi
10460
10461
10462cat > confcache <<\EOF
10463# This file is a shell script that caches the results of configure
10464# tests run on this system so they can be shared between configure
10465# scripts and configure runs. It is not useful on other systems.
10466# If it contains results you don't want to keep, you may remove or edit it.
10467#
10468# By default, configure uses ./config.cache as the cache file,
10469# creating it if it does not exist already. You can give configure
10470# the --cache-file=FILE option to use a different cache file; that is
10471# what configure does when it calls configure scripts in
10472# subdirectories, so they share the cache.
10473# Giving --cache-file=/dev/null disables caching, for debugging configure.
10474# config.status only pays attention to the cache file if you give it the
10475# --recheck option to rerun configure.
10476#
10477EOF
10478# The following way of writing the cache mishandles newlines in values,
10479# but we know of no workaround that is simple, portable, and efficient.
10480# So, don't put newlines in cache variables' values.
10481# Ultrix sh set writes to stderr and can't be redirected directly,
10482# and sets the high bit in the cache file unless we assign to the vars.
10483(set) 2>&1 |
10484 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10485 *ac_space=\ *)
10486 # `set' does not quote correctly, so add quotes (double-quote substitution
10487 # turns \\\\ into \\, and sed turns \\ into \).
10488 sed -n \
10489 -e "s/'/'\\\\''/g" \
10490 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10491 ;;
10492 *)
10493 # `set' quotes correctly as required by POSIX, so do not add quotes.
10494 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10495 ;;
10496 esac >> confcache
10497if cmp -s $cache_file confcache; then
10498 :
10499else
10500 if test -w $cache_file; then
10501 echo "updating cache $cache_file"
10502 cat confcache > $cache_file
10503 else
10504 echo "not updating unwritable cache $cache_file"
10505 fi
10506fi
10507rm -f confcache
10508
10509
10510
10511if test "$USE_UNIX" = 1; then
10512
10513
10514THREADS_LINK=""
10515THREADS_OBJ=""
10516
10517if test "$wxUSE_THREADS" = "yes" ; then
10518 if test "$wxUSE_WINE" = 1 ; then
10519 echo "configure: warning: Threads are not supported under WINE" 1>&2
10520 wxUSE_THREADS="no"
10521 fi
10522fi
10523
10524if test "$wxUSE_THREADS" = "yes" ; then
10525
10526 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
360d6699 10527echo "configure:10528: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10528ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10529if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10530 echo $ac_n "(cached) $ac_c" 1>&6
10531else
10532 ac_save_LIBS="$LIBS"
10533LIBS="-lpthread $LIBS"
10534cat > conftest.$ac_ext <<EOF
360d6699 10535#line 10536 "configure"
10f2d63a
VZ
10536#include "confdefs.h"
10537/* Override any gcc2 internal prototype to avoid an error. */
10538/* We use char because int might match the return type of a gcc2
10539 builtin and then its argument prototype would still apply. */
10540char pthread_create();
10541
10542int main() {
10543pthread_create()
10544; return 0; }
10545EOF
360d6699 10546if { (eval echo configure:10547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10547 rm -rf conftest*
10548 eval "ac_cv_lib_$ac_lib_var=yes"
10549else
10550 echo "configure: failed program was:" >&5
10551 cat conftest.$ac_ext >&5
10552 rm -rf conftest*
10553 eval "ac_cv_lib_$ac_lib_var=no"
10554fi
10555rm -f conftest*
10556LIBS="$ac_save_LIBS"
10557
10558fi
10559if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10560 echo "$ac_t""yes" 1>&6
10561
10562 THREADS_OBJ="threadpsx.lo"
10563 THREADS_LINK="pthread"
10564
10565else
10566 echo "$ac_t""no" 1>&6
10567
10568 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
360d6699 10569echo "configure:10570: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10570ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10571if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10572 echo $ac_n "(cached) $ac_c" 1>&6
10573else
10574 ac_save_LIBS="$LIBS"
10575LIBS="-lc_r $LIBS"
10576cat > conftest.$ac_ext <<EOF
360d6699 10577#line 10578 "configure"
10f2d63a
VZ
10578#include "confdefs.h"
10579/* Override any gcc2 internal prototype to avoid an error. */
10580/* We use char because int might match the return type of a gcc2
10581 builtin and then its argument prototype would still apply. */
10582char pthread_create();
10583
10584int main() {
10585pthread_create()
10586; return 0; }
10587EOF
360d6699 10588if { (eval echo configure:10589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10589 rm -rf conftest*
10590 eval "ac_cv_lib_$ac_lib_var=yes"
10591else
10592 echo "configure: failed program was:" >&5
10593 cat conftest.$ac_ext >&5
10594 rm -rf conftest*
10595 eval "ac_cv_lib_$ac_lib_var=no"
10596fi
10597rm -f conftest*
10598LIBS="$ac_save_LIBS"
10599
10600fi
10601if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10602 echo "$ac_t""yes" 1>&6
10603
10604 THREADS_OBJ="threadpsx.lo"
10605 THREADS_LINK="c_r"
10606
10607else
10608 echo "$ac_t""no" 1>&6
10609
10610 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10611echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
360d6699 10612echo "configure:10613: checking for sys/prctl.h" >&5
10f2d63a
VZ
10613if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10614 echo $ac_n "(cached) $ac_c" 1>&6
10615else
10616 cat > conftest.$ac_ext <<EOF
360d6699 10617#line 10618 "configure"
10f2d63a
VZ
10618#include "confdefs.h"
10619#include <sys/prctl.h>
10620EOF
10621ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
360d6699 10622{ (eval echo configure:10623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10623ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10624if test -z "$ac_err"; then
10625 rm -rf conftest*
10626 eval "ac_cv_header_$ac_safe=yes"
10627else
10628 echo "$ac_err" >&5
10629 echo "configure: failed program was:" >&5
10630 cat conftest.$ac_ext >&5
10631 rm -rf conftest*
10632 eval "ac_cv_header_$ac_safe=no"
10633fi
10634rm -f conftest*
10635fi
10636if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10637 echo "$ac_t""yes" 1>&6
10638
10639 THREADS_OBJ="threadsgi.lo"
10640
10641else
10642 echo "$ac_t""no" 1>&6
10643fi
10644
10645
10646fi
10647
10648
10649fi
10650
10651
10652 if test -z "$THREADS_OBJ" ; then
10653 wxUSE_THREADS=no
10654 echo "configure: warning: No thread support on this system" 1>&2
10655 fi
10656fi
10657
10658if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
10659 for ac_func in thr_setconcurrency
10660do
10661echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
360d6699 10662echo "configure:10663: checking for $ac_func" >&5
70846f0a
VZ
10663if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10664 echo $ac_n "(cached) $ac_c" 1>&6
10665else
10666 cat > conftest.$ac_ext <<EOF
360d6699 10667#line 10668 "configure"
70846f0a
VZ
10668#include "confdefs.h"
10669/* System header to define __stub macros and hopefully few prototypes,
10670 which can conflict with char $ac_func(); below. */
10671#include <assert.h>
10672/* Override any gcc2 internal prototype to avoid an error. */
10673/* We use char because int might match the return type of a gcc2
10674 builtin and then its argument prototype would still apply. */
10675char $ac_func();
10676
10677int main() {
10678
10679/* The GNU C library defines this for functions which it implements
10680 to always fail with ENOSYS. Some functions are actually named
10681 something starting with __ and the normal name is an alias. */
10682#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10683choke me
10684#else
e694c22c 10685$ac_func();
70846f0a
VZ
10686#endif
10687
10688; return 0; }
10689EOF
360d6699 10690if { (eval echo configure:10691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
10691 rm -rf conftest*
10692 eval "ac_cv_func_$ac_func=yes"
10693else
10694 echo "configure: failed program was:" >&5
10695 cat conftest.$ac_ext >&5
10696 rm -rf conftest*
10697 eval "ac_cv_func_$ac_func=no"
10698fi
10699rm -f conftest*
10700fi
10701
10702if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10703 echo "$ac_t""yes" 1>&6
10704 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10705 cat >> confdefs.h <<EOF
10706#define $ac_tr_func 1
10707EOF
10708
10709else
10710 echo "$ac_t""no" 1>&6
10711fi
10712done
10713
10714
10f2d63a
VZ
10715
10716 for ac_hdr in sched.h
10717do
10718ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10719echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
360d6699 10720echo "configure:10721: checking for $ac_hdr" >&5
10f2d63a
VZ
10721if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10722 echo $ac_n "(cached) $ac_c" 1>&6
10723else
10724 cat > conftest.$ac_ext <<EOF
360d6699 10725#line 10726 "configure"
10f2d63a
VZ
10726#include "confdefs.h"
10727#include <$ac_hdr>
10728EOF
10729ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
360d6699 10730{ (eval echo configure:10731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10731ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10732if test -z "$ac_err"; then
10733 rm -rf conftest*
10734 eval "ac_cv_header_$ac_safe=yes"
10735else
10736 echo "$ac_err" >&5
10737 echo "configure: failed program was:" >&5
10738 cat conftest.$ac_ext >&5
10739 rm -rf conftest*
10740 eval "ac_cv_header_$ac_safe=no"
10741fi
10742rm -f conftest*
10743fi
10744if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10745 echo "$ac_t""yes" 1>&6
10746 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10747 cat >> confdefs.h <<EOF
10748#define $ac_tr_hdr 1
10749EOF
10750
10751else
10752 echo "$ac_t""no" 1>&6
10753fi
10754done
10755
10756
10757 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
360d6699 10758echo "configure:10759: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
10759ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10760if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10761 echo $ac_n "(cached) $ac_c" 1>&6
10762else
10763 ac_save_LIBS="$LIBS"
10764LIBS="-l$THREADS_LINK $LIBS"
10765cat > conftest.$ac_ext <<EOF
360d6699 10766#line 10767 "configure"
10f2d63a
VZ
10767#include "confdefs.h"
10768/* Override any gcc2 internal prototype to avoid an error. */
10769/* We use char because int might match the return type of a gcc2
10770 builtin and then its argument prototype would still apply. */
10771char sched_yield();
10772
10773int main() {
10774sched_yield()
10775; return 0; }
10776EOF
360d6699 10777if { (eval echo configure:10778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10778 rm -rf conftest*
10779 eval "ac_cv_lib_$ac_lib_var=yes"
10780else
10781 echo "configure: failed program was:" >&5
10782 cat conftest.$ac_ext >&5
10783 rm -rf conftest*
10784 eval "ac_cv_lib_$ac_lib_var=no"
10785fi
10786rm -f conftest*
10787LIBS="$ac_save_LIBS"
10788
10789fi
10790if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10791 echo "$ac_t""yes" 1>&6
10792 cat >> confdefs.h <<\EOF
10793#define HAVE_SCHED_YIELD 1
10794EOF
10795
10796else
10797 echo "$ac_t""no" 1>&6
10798echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
360d6699 10799echo "configure:10800: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
10800ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10801if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10802 echo $ac_n "(cached) $ac_c" 1>&6
10803else
10804 ac_save_LIBS="$LIBS"
10805LIBS="-l"posix4" $LIBS"
10806cat > conftest.$ac_ext <<EOF
360d6699 10807#line 10808 "configure"
10f2d63a
VZ
10808#include "confdefs.h"
10809/* Override any gcc2 internal prototype to avoid an error. */
10810/* We use char because int might match the return type of a gcc2
10811 builtin and then its argument prototype would still apply. */
10812char sched_yield();
10813
10814int main() {
10815sched_yield()
10816; return 0; }
10817EOF
360d6699 10818if { (eval echo configure:10819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10819 rm -rf conftest*
10820 eval "ac_cv_lib_$ac_lib_var=yes"
10821else
10822 echo "configure: failed program was:" >&5
10823 cat conftest.$ac_ext >&5
10824 rm -rf conftest*
10825 eval "ac_cv_lib_$ac_lib_var=no"
10826fi
10827rm -f conftest*
10828LIBS="$ac_save_LIBS"
10829
10830fi
10831if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10832 echo "$ac_t""yes" 1>&6
10833 cat >> confdefs.h <<\EOF
10834#define HAVE_SCHED_YIELD 1
10835EOF
10836 POSIX4_LINK="-lposix4"
10837else
10838 echo "$ac_t""no" 1>&6
10839echo "configure: warning: wxThread::Yield will not work properly" 1>&2
10840
10841fi
10842
10843
10844fi
10845
10846
10847 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
360d6699 10848echo "configure:10849: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
10849ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10850if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10851 echo $ac_n "(cached) $ac_c" 1>&6
10852else
10853 ac_save_LIBS="$LIBS"
10854LIBS="-l$THREADS_LINK $LIBS"
10855cat > conftest.$ac_ext <<EOF
360d6699 10856#line 10857 "configure"
10f2d63a
VZ
10857#include "confdefs.h"
10858/* Override any gcc2 internal prototype to avoid an error. */
10859/* We use char because int might match the return type of a gcc2
10860 builtin and then its argument prototype would still apply. */
10861char pthread_attr_getschedpolicy();
10862
10863int main() {
10864pthread_attr_getschedpolicy()
10865; return 0; }
10866EOF
360d6699 10867if { (eval echo configure:10868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10868 rm -rf conftest*
10869 eval "ac_cv_lib_$ac_lib_var=yes"
10870else
10871 echo "configure: failed program was:" >&5
10872 cat conftest.$ac_ext >&5
10873 rm -rf conftest*
10874 eval "ac_cv_lib_$ac_lib_var=no"
10875fi
10876rm -f conftest*
10877LIBS="$ac_save_LIBS"
10878
10879fi
10880if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10881 echo "$ac_t""yes" 1>&6
10882 cat >> confdefs.h <<\EOF
10883#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10884EOF
10885
10886else
10887 echo "$ac_t""no" 1>&6
10888echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
360d6699 10889echo "configure:10890: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
10890ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10891if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10892 echo $ac_n "(cached) $ac_c" 1>&6
10893else
10894 ac_save_LIBS="$LIBS"
10895LIBS="-l"posix4" $LIBS"
10896cat > conftest.$ac_ext <<EOF
360d6699 10897#line 10898 "configure"
10f2d63a
VZ
10898#include "confdefs.h"
10899/* Override any gcc2 internal prototype to avoid an error. */
10900/* We use char because int might match the return type of a gcc2
10901 builtin and then its argument prototype would still apply. */
10902char pthread_attr_getschedpolicy();
10903
10904int main() {
10905pthread_attr_getschedpolicy()
10906; return 0; }
10907EOF
360d6699 10908if { (eval echo configure:10909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10909 rm -rf conftest*
10910 eval "ac_cv_lib_$ac_lib_var=yes"
10911else
10912 echo "configure: failed program was:" >&5
10913 cat conftest.$ac_ext >&5
10914 rm -rf conftest*
10915 eval "ac_cv_lib_$ac_lib_var=no"
10916fi
10917rm -f conftest*
10918LIBS="$ac_save_LIBS"
10919
10920fi
10921if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10922 echo "$ac_t""yes" 1>&6
10923 cat >> confdefs.h <<\EOF
10924#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10925EOF
10926 POSIX4_LINK="-lposix4"
10927else
10928 echo "$ac_t""no" 1>&6
10929echo "configure: warning: Setting thread priority will not work" 1>&2
10930
10931fi
10932
10933
10934fi
10935
10936
10937 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
360d6699 10938echo "configure:10939: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
10939ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
10940if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10941 echo $ac_n "(cached) $ac_c" 1>&6
10942else
10943 ac_save_LIBS="$LIBS"
10944LIBS="-l$THREADS_LINK $LIBS"
10945cat > conftest.$ac_ext <<EOF
360d6699 10946#line 10947 "configure"
10f2d63a
VZ
10947#include "confdefs.h"
10948/* Override any gcc2 internal prototype to avoid an error. */
10949/* We use char because int might match the return type of a gcc2
10950 builtin and then its argument prototype would still apply. */
10951char pthread_cancel();
10952
10953int main() {
10954pthread_cancel()
10955; return 0; }
10956EOF
360d6699 10957if { (eval echo configure:10958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10958 rm -rf conftest*
10959 eval "ac_cv_lib_$ac_lib_var=yes"
10960else
10961 echo "configure: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10963 rm -rf conftest*
10964 eval "ac_cv_lib_$ac_lib_var=no"
10965fi
10966rm -f conftest*
10967LIBS="$ac_save_LIBS"
10968
10969fi
10970if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10971 echo "$ac_t""yes" 1>&6
10972 cat >> confdefs.h <<\EOF
10973#define HAVE_PTHREAD_CANCEL 1
10974EOF
10975
10976else
10977 echo "$ac_t""no" 1>&6
10978echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10979fi
10980
10981
10982 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
360d6699 10983echo "configure:10984: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
10984if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
10985 echo $ac_n "(cached) $ac_c" 1>&6
10986else
10987
10988 cat > conftest.$ac_ext <<EOF
360d6699 10989#line 10990 "configure"
10f2d63a
VZ
10990#include "confdefs.h"
10991#include <pthread.h>
10992int main() {
10993
10994 pthread_cleanup_push(NULL, NULL);
10995 pthread_cleanup_pop(0);
10996
10997; return 0; }
10998EOF
360d6699 10999if { (eval echo configure:11000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11000 rm -rf conftest*
11001
11002 wx_cv_func_pthread_cleanup_push=yes
11003 cat >> confdefs.h <<\EOF
11004#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11005EOF
11006
11007
11008else
11009 echo "configure: failed program was:" >&5
11010 cat conftest.$ac_ext >&5
11011 rm -rf conftest*
11012
11013 wx_cv_func_pthread_cleanup_push=no
11014
11015fi
11016rm -f conftest*
11017
11018fi
11019
11020echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11021
11022 THREADS_LINK="-l$THREADS_LINK"
11023fi
11024
11025fi
11026
11027if test "$wxUSE_THREADS" = "yes"; then
11028 cat >> confdefs.h <<\EOF
11029#define wxUSE_THREADS 1
11030EOF
11031
11032
11033 CFLAGS="${CFLAGS} -D_REENTRANT"
11034 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11035
11036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11037else
11038 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11039 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
360d6699 11040echo "configure:11041: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11041 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11042 CFLAGS="${CFLAGS} -D_REENTRANT"
11043 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11044 echo "$ac_t""yes" 1>&6
11045 else
11046 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11047 fi
11048 fi
11049fi
11050
11051if test "$WXGTK12" = 1 ; then
11052 cat >> confdefs.h <<EOF
11053#define __WXGTK12__ $WXGTK12
11054EOF
11055
11056fi
11057
11058if test "$WXWINE" = 1 ; then
11059 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11060fi
11061
11062if test "$wxUSE_CYGWIN" = 1 ; then
11063 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11064fi
11065
11066WXDEBUG=
11067
11068if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11069 WXDEBUG="-g"
11070 wxUSE_OPTIMISE=no
11071fi
11072
11073if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11074 wxUSE_DEBUG_INFO=yes
11075 WXDEBUG="-ggdb"
11076fi
11077
11078if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11079 cat >> confdefs.h <<\EOF
11080#define WXDEBUG 1
11081EOF
11082
11083 WXDEBUG_DEFINE="-D__WXDEBUG__"
11084else
11085 if test "$wxUSE_GTK" = 1 ; then
11086 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11087 fi
11088fi
11089
11090if test "$wxUSE_MEM_TRACING" = "yes" ; then
11091 cat >> confdefs.h <<\EOF
11092#define wxUSE_MEMORY_TRACING 1
11093EOF
11094
11095 cat >> confdefs.h <<\EOF
11096#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
11097EOF
11098
11099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11100fi
11101
11102if test "$wxUSE_DMALLOC" = "yes" ; then
11103 DMALLOC_LINK="-ldmalloc"
11104fi
11105
11106PROFILE=
11107if test "$wxUSE_PROFILE" = "yes" ; then
11108 PROFILE="-pg"
11109fi
11110
11111DEP_INFO_FLAGS=
11112if test "$GCC" = yes ; then
11113 if test "$wxUSE_NO_RTTI" = "yes" ; then
11114 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti"
11115 fi
11116 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
11117 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions"
11118 fi
11119 if test "$wxUSE_PERMISSIVE" = "yes" ; then
11120 CFLAGS="${CFLAGS} -fpermissive"
11121 CXXFLAGS="${CXXFLAGS} -fpermissive"
11122 fi
11123 if test "$wxUSE_NO_DEPS" = "no" ; then
11124 DEP_INFO_FLAGS="-MMD"
11125 fi
11126fi
11127
11128
11129CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11130CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11131if test "$wxUSE_OPTIMISE" = "no" ; then
11132 OPTIMISE=
11133else
11134 if test "$GCC" = yes ; then
11135 OPTIMISE="-O2"
11136 case "${host}" in
11137 i586-*-*|i686-*-* )
11138 OPTIMISE="${OPTIMISE} "
11139 ;;
11140 esac
11141 else
11142 OPTIMISE="-O"
11143 fi
11144fi
11145
11146
11147ZLIB_INCLUDE=
11148if test "$wxUSE_ZLIB" = "yes" ; then
11149 cat >> confdefs.h <<\EOF
11150#define wxUSE_ZLIB 1
11151EOF
11152
11153 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11154fi
11155
11156PNG_INCLUDE=
11157if test "$wxUSE_LIBPNG" = "yes" ; then
11158 cat >> confdefs.h <<\EOF
11159#define wxUSE_LIBPNG 1
11160EOF
11161
11162 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11163 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11164fi
11165
11166JPEG_INCLUDE=
11167if test "$wxUSE_LIBJPEG" = "yes" ; then
11168 cat >> confdefs.h <<\EOF
11169#define wxUSE_LIBJPEG 1
11170EOF
11171
11172 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11173fi
11174
c7a2bf27
RR
11175TIFF_INCLUDE=
11176if test "$wxUSE_LIBTIFF" = "yes" ; then
11177 cat >> confdefs.h <<\EOF
11178#define wxUSE_LIBTIFF 1
11179EOF
11180
11181 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11182fi
11183
10f2d63a
VZ
11184if test "$wxUSE_OPENGL" = "yes"; then
11185 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11186echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
360d6699 11187echo "configure:11188: checking for GL/gl.h" >&5
10f2d63a
VZ
11188if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11189 echo $ac_n "(cached) $ac_c" 1>&6
11190else
11191 cat > conftest.$ac_ext <<EOF
360d6699 11192#line 11193 "configure"
10f2d63a
VZ
11193#include "confdefs.h"
11194#include <GL/gl.h>
11195EOF
11196ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
360d6699 11197{ (eval echo configure:11198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11198ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11199if test -z "$ac_err"; then
11200 rm -rf conftest*
11201 eval "ac_cv_header_$ac_safe=yes"
11202else
11203 echo "$ac_err" >&5
11204 echo "configure: failed program was:" >&5
11205 cat conftest.$ac_ext >&5
11206 rm -rf conftest*
11207 eval "ac_cv_header_$ac_safe=no"
11208fi
11209rm -f conftest*
11210fi
11211if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11212 echo "$ac_t""yes" 1>&6
11213
11214 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
360d6699 11215echo "configure:11216: checking for glInitNames in -lGL" >&5
10f2d63a
VZ
11216ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
11217if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11218 echo $ac_n "(cached) $ac_c" 1>&6
11219else
11220 ac_save_LIBS="$LIBS"
11221LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
11222cat > conftest.$ac_ext <<EOF
360d6699 11223#line 11224 "configure"
10f2d63a
VZ
11224#include "confdefs.h"
11225/* Override any gcc2 internal prototype to avoid an error. */
11226/* We use char because int might match the return type of a gcc2
11227 builtin and then its argument prototype would still apply. */
11228char glInitNames();
11229
11230int main() {
11231glInitNames()
11232; return 0; }
11233EOF
360d6699 11234if { (eval echo configure:11235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11235 rm -rf conftest*
11236 eval "ac_cv_lib_$ac_lib_var=yes"
11237else
11238 echo "configure: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11240 rm -rf conftest*
11241 eval "ac_cv_lib_$ac_lib_var=no"
11242fi
11243rm -f conftest*
11244LIBS="$ac_save_LIBS"
11245
11246fi
11247if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11248 echo "$ac_t""yes" 1>&6
11249
11250 OPENGL_LINK="-lGL"
11251 cat >> confdefs.h <<\EOF
11252#define wxUSE_OPENGL 1
11253EOF
11254
11255 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11256
11257else
11258 echo "$ac_t""no" 1>&6
11259
11260 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
360d6699 11261echo "configure:11262: checking for glInitNames in -lMesaGL" >&5
10f2d63a
VZ
11262ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11263if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11264 echo $ac_n "(cached) $ac_c" 1>&6
11265else
11266 ac_save_LIBS="$LIBS"
11267LIBS="-lMesaGL $LIBS"
11268cat > conftest.$ac_ext <<EOF
360d6699 11269#line 11270 "configure"
10f2d63a
VZ
11270#include "confdefs.h"
11271/* Override any gcc2 internal prototype to avoid an error. */
11272/* We use char because int might match the return type of a gcc2
11273 builtin and then its argument prototype would still apply. */
11274char glInitNames();
11275
11276int main() {
11277glInitNames()
11278; return 0; }
11279EOF
360d6699 11280if { (eval echo configure:11281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11281 rm -rf conftest*
11282 eval "ac_cv_lib_$ac_lib_var=yes"
11283else
11284 echo "configure: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11286 rm -rf conftest*
11287 eval "ac_cv_lib_$ac_lib_var=no"
11288fi
11289rm -f conftest*
11290LIBS="$ac_save_LIBS"
11291
11292fi
11293if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11294 echo "$ac_t""yes" 1>&6
11295
11296 OPENGL_LINK="-lMesaGL"
11297 cat >> confdefs.h <<\EOF
11298#define wxUSE_OPENGL 1
11299EOF
11300
11301 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11302
11303else
11304 echo "$ac_t""no" 1>&6
11305wxUSE_OPENGL=0
11306fi
11307
11308
11309fi
11310
11311
11312else
11313 echo "$ac_t""no" 1>&6
11314wxUSE_OPENGL=0
11315fi
11316
11317fi
11318
11319
11320if test "$wxUSE_GUI" = "yes"; then
11321 cat >> confdefs.h <<\EOF
11322#define wxUSE_GUI 1
11323EOF
11324
11325
11326 else
11327 cat >> confdefs.h <<\EOF
11328#define wxUSE_NOGUI 1
11329EOF
11330
11331fi
11332
11333
11334if test "$wxUSE_UNIX" = "yes"; then
11335 cat >> confdefs.h <<\EOF
11336#define wxUSE_UNIX 1
11337EOF
11338
11339fi
11340
11341
11342if test "$wxUSE_APPLE_IEEE" = "yes"; then
11343 cat >> confdefs.h <<\EOF
11344#define wxUSE_APPLE_IEEE 1
11345EOF
11346
11347fi
11348
10f2d63a
VZ
11349if test "$wxUSE_WAVE" = "yes"; then
11350 cat >> confdefs.h <<\EOF
11351#define wxUSE_WAVE 1
11352EOF
11353
11354fi
11355
11356if test "$wxUSE_FILE" = "yes"; then
11357 cat >> confdefs.h <<\EOF
11358#define wxUSE_FILE 1
11359EOF
11360
11361fi
11362
11363if test "$wxUSE_FS_INET" = "yes"; then
11364 cat >> confdefs.h <<\EOF
11365#define wxUSE_FS_INET 1
11366EOF
11367
11368fi
11369
11370if test "$wxUSE_FS_ZIP" = "yes"; then
11371 cat >> confdefs.h <<\EOF
11372#define wxUSE_FS_ZIP 1
11373EOF
11374
11375fi
11376
11377if test "$wxUSE_ZIPSTREAM" = "yes"; then
11378 cat >> confdefs.h <<\EOF
11379#define wxUSE_ZIPSTREAM 1
11380EOF
11381
11382fi
11383
11384if test "$wxUSE_BUSYINFO" = "yes"; then
11385 cat >> confdefs.h <<\EOF
11386#define wxUSE_BUSYINFO 1
11387EOF
11388
11389fi
11390
11391if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11392 cat >> confdefs.h <<\EOF
11393#define wxUSE_STD_IOSTREAM 1
11394EOF
11395
11396fi
11397
11398if test "$wxUSE_TEXTFILE" = "yes"; then
11399 if test "$wxUSE_FILE" != "yes"; then
11400 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11401 else
11402 cat >> confdefs.h <<\EOF
11403#define wxUSE_TEXTFILE 1
11404EOF
11405
11406 fi
11407fi
11408
11409if test "$wxUSE_CONFIG" = "yes" ; then
11410 if test "$wxUSE_TEXTFILE" != "yes"; then
11411 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11412 else
11413 cat >> confdefs.h <<\EOF
11414#define wxUSE_CONFIG 1
11415EOF
11416
11417 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11418 fi
11419fi
11420
11421if test "$wxUSE_INTL" = "yes" ; then
11422 if test "$wxUSE_FILE" != "yes"; then
11423 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11424 else
11425 cat >> confdefs.h <<\EOF
11426#define wxUSE_INTL 1
11427EOF
11428
11429 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11430 fi
11431fi
11432
11433if test "$wxUSE_LOG" = "yes"; then
11434 cat >> confdefs.h <<\EOF
11435#define wxUSE_LOG 1
11436EOF
11437
11438fi
11439
11440if test "$wxUSE_LONGLONG" = "yes"; then
11441 cat >> confdefs.h <<\EOF
11442#define wxUSE_LONGLONG 1
11443EOF
11444
11445fi
11446
10f2d63a
VZ
11447if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11448 cat >> confdefs.h <<\EOF
11449#define wxUSE_DIALUP_MANAGER 1
11450EOF
11451
678b92a9 11452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS nettest"
10f2d63a
VZ
11453fi
11454
11455if test "$wxUSE_STREAMS" = "yes" ; then
11456 cat >> confdefs.h <<\EOF
11457#define wxUSE_STREAMS 1
11458EOF
11459
11460fi
11461
11462if test "$wxUSE_SERIAL" = "yes" ; then
11463 cat >> confdefs.h <<\EOF
11464#define wxUSE_SERIAL 1
11465EOF
11466
11467fi
11468
11469
afc31813 11470if test "$wxUSE_TIMEDATE" = "yes"; then
360d6699
VZ
11471 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
11472echo "configure:11473: checking for timezone variable in <time.h>" >&5
11473if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11474 echo $ac_n "(cached) $ac_c" 1>&6
11475else
11476
11477 cat > conftest.$ac_ext <<EOF
11478#line 11479 "configure"
11479#include "confdefs.h"
11480
11481 #include <time.h>
11482
11483int main() {
11484
11485 int tz;
11486 tz = __timezone;
11487
11488; return 0; }
11489EOF
11490if { (eval echo configure:11491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11491 rm -rf conftest*
11492
11493 wx_cv_var_timezone=__timezone
11494
11495else
11496 echo "configure: failed program was:" >&5
11497 cat conftest.$ac_ext >&5
11498 rm -rf conftest*
11499
11500 cat > conftest.$ac_ext <<EOF
11501#line 11502 "configure"
11502#include "confdefs.h"
11503
11504 #include <time.h>
11505
11506int main() {
11507
11508 int tz;
11509 tz = _timezone;
11510
11511; return 0; }
11512EOF
11513if { (eval echo configure:11514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11514 rm -rf conftest*
11515
11516 wx_cv_var_timezone=_timezone
11517
5357c8e8
VZ
11518else
11519 echo "configure: failed program was:" >&5
11520 cat conftest.$ac_ext >&5
11521 rm -rf conftest*
11522
11523 cat > conftest.$ac_ext <<EOF
11524#line 11525 "configure"
11525#include "confdefs.h"
11526
11527 #include <time.h>
11528
11529int main() {
11530
11531 int tz;
11532 tz = timezone;
11533
11534; return 0; }
11535EOF
11536if { (eval echo configure:11537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11537 rm -rf conftest*
11538
11539 wx_cv_var_timezone=timezone
11540
360d6699
VZ
11541else
11542 echo "configure: failed program was:" >&5
11543 cat conftest.$ac_ext >&5
11544 rm -rf conftest*
11545 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
11546
11547fi
11548rm -f conftest*
11549
360d6699
VZ
11550
11551fi
11552rm -f conftest*
11553
11554
11555fi
11556rm -f conftest*
11557
11558
11559fi
11560
11561echo "$ac_t""$wx_cv_var_timezone" 1>&6
11562
11563 cat >> confdefs.h <<EOF
11564#define WX_TIMEZONE $wx_cv_var_timezone
11565EOF
11566
11567
0470b1e6 11568 for ac_func in localtime gettimeofday ftime
afc31813
VZ
11569do
11570echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5357c8e8 11571echo "configure:11572: checking for $ac_func" >&5
afc31813
VZ
11572if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11573 echo $ac_n "(cached) $ac_c" 1>&6
11574else
11575 cat > conftest.$ac_ext <<EOF
5357c8e8 11576#line 11577 "configure"
10f2d63a 11577#include "confdefs.h"
afc31813
VZ
11578/* System header to define __stub macros and hopefully few prototypes,
11579 which can conflict with char $ac_func(); below. */
11580#include <assert.h>
11581/* Override any gcc2 internal prototype to avoid an error. */
11582/* We use char because int might match the return type of a gcc2
11583 builtin and then its argument prototype would still apply. */
11584char $ac_func();
11585
10f2d63a 11586int main() {
afc31813
VZ
11587
11588/* The GNU C library defines this for functions which it implements
11589 to always fail with ENOSYS. Some functions are actually named
11590 something starting with __ and the normal name is an alias. */
11591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11592choke me
11593#else
e694c22c 11594$ac_func();
afc31813
VZ
11595#endif
11596
10f2d63a
VZ
11597; return 0; }
11598EOF
5357c8e8 11599if { (eval echo configure:11600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 11600 rm -rf conftest*
afc31813 11601 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
11602else
11603 echo "configure: failed program was:" >&5
11604 cat conftest.$ac_ext >&5
11605 rm -rf conftest*
afc31813
VZ
11606 eval "ac_cv_func_$ac_func=no"
11607fi
11608rm -f conftest*
11609fi
11610
11611if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11612 echo "$ac_t""yes" 1>&6
11613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11614 cat >> confdefs.h <<EOF
11615#define $ac_tr_func 1
11616EOF
0470b1e6 11617 break
afc31813
VZ
11618else
11619 echo "$ac_t""no" 1>&6
11620fi
11621done
11622
11623
0470b1e6
VZ
11624 if test "$ac_cv_func_localtime" = "yes"; then
11625 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
5357c8e8 11626echo "configure:11627: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
11627if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
11628 echo $ac_n "(cached) $ac_c" 1>&6
11629else
11630
11631 cat > conftest.$ac_ext <<EOF
5357c8e8 11632#line 11633 "configure"
0470b1e6
VZ
11633#include "confdefs.h"
11634
11635 #include <time.h>
11636
11637int main() {
11638
11639 struct tm tm;
11640 tm.tm_gmtoff++;
11641
11642; return 0; }
11643EOF
5357c8e8 11644if { (eval echo configure:11645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
11645 rm -rf conftest*
11646
f03a98d8 11647 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
11648 cat >> confdefs.h <<\EOF
11649#define WX_GMTOFF_IN_TM 1
11650EOF
11651
11652
11653else
11654 echo "configure: failed program was:" >&5
11655 cat conftest.$ac_ext >&5
11656 rm -rf conftest*
11657 wx_cv_struct_tm_has_gmtoff=no
11658
11659fi
11660rm -f conftest*
11661
11662fi
11663
11664echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
11665 elif test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 11666 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
5357c8e8 11667echo "configure:11668: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
11668if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
11669 echo $ac_n "(cached) $ac_c" 1>&6
11670else
11671
11672
11673 ac_ext=C
11674# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11675ac_cpp='$CXXCPP $CPPFLAGS'
11676ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11677ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11678cross_compiling=$ac_cv_prog_cxx_cross
11679
11680
11681 cat > conftest.$ac_ext <<EOF
5357c8e8 11682#line 11683 "configure"
10f2d63a 11683#include "confdefs.h"
afc31813
VZ
11684
11685 #include <sys/time.h>
11686 #include <unistd.h>
11687
10f2d63a 11688int main() {
afc31813
VZ
11689
11690 struct timeval tv;
11691 struct timezone tz;
11692 gettimeofday(&tv, &tz);
11693
10f2d63a
VZ
11694; return 0; }
11695EOF
5357c8e8 11696if { (eval echo configure:11697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11697 rm -rf conftest*
afc31813 11698 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
11699else
11700 echo "configure: failed program was:" >&5
11701 cat conftest.$ac_ext >&5
11702 rm -rf conftest*
11703 cat > conftest.$ac_ext <<EOF
5357c8e8 11704#line 11705 "configure"
10f2d63a 11705#include "confdefs.h"
afc31813
VZ
11706
11707 #include <sys/time.h>
11708 #include <unistd.h>
11709
10f2d63a 11710int main() {
afc31813
VZ
11711
11712 struct timeval tv;
11713 gettimeofday(&tv);
11714
10f2d63a
VZ
11715; return 0; }
11716EOF
5357c8e8 11717if { (eval echo configure:11718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11718 rm -rf conftest*
afc31813 11719 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
11720else
11721 echo "configure: failed program was:" >&5
11722 cat conftest.$ac_ext >&5
11723 rm -rf conftest*
afc31813
VZ
11724 wx_cv_func_gettimeofday_has_2_args=unknown
11725
10f2d63a
VZ
11726fi
11727rm -f conftest*
afc31813 11728
10f2d63a
VZ
11729fi
11730rm -f conftest*
afc31813 11731 ac_ext=c
10f2d63a
VZ
11732# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11733ac_cpp='$CPP $CPPFLAGS'
11734ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11735ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11736cross_compiling=$ac_cv_prog_cc_cross
11737
afc31813
VZ
11738
11739fi
11740
11741echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 11742
afc31813
VZ
11743 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
11744 cat >> confdefs.h <<\EOF
11745#define WX_GETTIMEOFDAY_NO_TZ 1
11746EOF
11747
11748 fi
11749 fi
11750
11751 cat >> confdefs.h <<\EOF
11752#define wxUSE_TIMEDATE 1
11753EOF
11754
11755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
11756fi
11757
11758
11759if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 11760 echo $ac_n "checking for socket""... $ac_c" 1>&6
5357c8e8 11761echo "configure:11762: checking for socket" >&5
c63c7106
VZ
11762if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
11763 echo $ac_n "(cached) $ac_c" 1>&6
11764else
11765 cat > conftest.$ac_ext <<EOF
5357c8e8 11766#line 11767 "configure"
c63c7106
VZ
11767#include "confdefs.h"
11768/* System header to define __stub macros and hopefully few prototypes,
11769 which can conflict with char socket(); below. */
11770#include <assert.h>
11771/* Override any gcc2 internal prototype to avoid an error. */
11772/* We use char because int might match the return type of a gcc2
11773 builtin and then its argument prototype would still apply. */
11774char socket();
11775
11776int main() {
11777
11778/* The GNU C library defines this for functions which it implements
11779 to always fail with ENOSYS. Some functions are actually named
11780 something starting with __ and the normal name is an alias. */
11781#if defined (__stub_socket) || defined (__stub___socket)
11782choke me
11783#else
e694c22c 11784socket();
c63c7106
VZ
11785#endif
11786
11787; return 0; }
11788EOF
5357c8e8 11789if { (eval echo configure:11790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11790 rm -rf conftest*
11791 eval "ac_cv_func_socket=yes"
11792else
11793 echo "configure: failed program was:" >&5
11794 cat conftest.$ac_ext >&5
11795 rm -rf conftest*
11796 eval "ac_cv_func_socket=no"
11797fi
11798rm -f conftest*
11799fi
11800
11801if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11802 echo "$ac_t""yes" 1>&6
11803 :
11804else
11805 echo "$ac_t""no" 1>&6
11806echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
5357c8e8 11807echo "configure:11808: checking for socket in -lsocket" >&5
c63c7106
VZ
11808ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
11809if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11810 echo $ac_n "(cached) $ac_c" 1>&6
11811else
11812 ac_save_LIBS="$LIBS"
11813LIBS="-lsocket $LIBS"
11814cat > conftest.$ac_ext <<EOF
5357c8e8 11815#line 11816 "configure"
c63c7106
VZ
11816#include "confdefs.h"
11817/* Override any gcc2 internal prototype to avoid an error. */
11818/* We use char because int might match the return type of a gcc2
11819 builtin and then its argument prototype would still apply. */
11820char socket();
11821
11822int main() {
11823socket()
11824; return 0; }
11825EOF
5357c8e8 11826if { (eval echo configure:11827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11827 rm -rf conftest*
11828 eval "ac_cv_lib_$ac_lib_var=yes"
11829else
11830 echo "configure: failed program was:" >&5
11831 cat conftest.$ac_ext >&5
11832 rm -rf conftest*
11833 eval "ac_cv_lib_$ac_lib_var=no"
11834fi
11835rm -f conftest*
11836LIBS="$ac_save_LIBS"
11837
11838fi
11839if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11840 echo "$ac_t""yes" 1>&6
11841 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
11842else
11843 echo "$ac_t""no" 1>&6
afc31813
VZ
11844
11845 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
11846 wxUSE_SOCKETS=no
11847
11848
c63c7106
VZ
11849fi
11850
11851
11852fi
11853
10f2d63a
VZ
11854fi
11855
afc31813
VZ
11856if test "$wxUSE_SOCKETS" = "yes" ; then
11857
11858 ac_ext=C
11859# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11860ac_cpp='$CXXCPP $CPPFLAGS'
11861ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11862ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11863cross_compiling=$ac_cv_prog_cxx_cross
11864
11865 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
5357c8e8 11866echo "configure:11867: checking the type of the third argument of getsockname" >&5
afc31813 11867 cat > conftest.$ac_ext <<EOF
5357c8e8 11868#line 11869 "configure"
afc31813
VZ
11869#include "confdefs.h"
11870#include <sys/socket.h>
11871int main() {
11872socklen_t len; getsockname(0, 0, &len);
11873; return 0; }
11874EOF
5357c8e8 11875if { (eval echo configure:11876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11876 rm -rf conftest*
11877 cat >> confdefs.h <<\EOF
11878#define SOCKLEN_T socklen_t
11879EOF
11880 echo "$ac_t""socklen_t" 1>&6
11881else
11882 echo "configure: failed program was:" >&5
11883 cat conftest.$ac_ext >&5
11884 rm -rf conftest*
11885 cat > conftest.$ac_ext <<EOF
5357c8e8 11886#line 11887 "configure"
afc31813
VZ
11887#include "confdefs.h"
11888#include <sys/socket.h>
11889int main() {
11890size_t len; getsockname(0, 0, &len);
11891; return 0; }
11892EOF
5357c8e8 11893if { (eval echo configure:11894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11894 rm -rf conftest*
11895 cat >> confdefs.h <<\EOF
11896#define SOCKLEN_T size_t
11897EOF
11898 echo "$ac_t""size_t" 1>&6
11899else
11900 echo "configure: failed program was:" >&5
11901 cat conftest.$ac_ext >&5
11902 rm -rf conftest*
11903 cat > conftest.$ac_ext <<EOF
5357c8e8 11904#line 11905 "configure"
afc31813
VZ
11905#include "confdefs.h"
11906#include <sys/socket.h>
11907int main() {
11908int len; getsockname(0, 0, &len);
11909; return 0; }
11910EOF
5357c8e8 11911if { (eval echo configure:11912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11912 rm -rf conftest*
11913 cat >> confdefs.h <<\EOF
11914#define SOCKLEN_T int
11915EOF
11916 echo "$ac_t""int" 1>&6
11917else
11918 echo "configure: failed program was:" >&5
11919 cat conftest.$ac_ext >&5
11920 rm -rf conftest*
11921 echo "$ac_t""unknown" 1>&6
11922
11923fi
11924rm -f conftest*
11925
11926fi
11927rm -f conftest*
11928
11929fi
11930rm -f conftest*
11931 ac_ext=c
11932# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11933ac_cpp='$CPP $CPPFLAGS'
11934ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11935ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11936cross_compiling=$ac_cv_prog_cc_cross
11937
11938
11939 cat >> confdefs.h <<\EOF
11940#define wxUSE_SOCKETS 1
11941EOF
11942
11943 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
11944 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
11945fi
11946
10f2d63a
VZ
11947
11948if test "$wxUSE_JOYSTICK" = 1; then
11949 for ac_hdr in linux/joystick.h
11950do
11951ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11952echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5357c8e8 11953echo "configure:11954: checking for $ac_hdr" >&5
10f2d63a
VZ
11954if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11955 echo $ac_n "(cached) $ac_c" 1>&6
11956else
11957 cat > conftest.$ac_ext <<EOF
5357c8e8 11958#line 11959 "configure"
10f2d63a
VZ
11959#include "confdefs.h"
11960#include <$ac_hdr>
11961EOF
11962ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5357c8e8 11963{ (eval echo configure:11964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11964ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11965if test -z "$ac_err"; then
11966 rm -rf conftest*
11967 eval "ac_cv_header_$ac_safe=yes"
11968else
11969 echo "$ac_err" >&5
11970 echo "configure: failed program was:" >&5
11971 cat conftest.$ac_ext >&5
11972 rm -rf conftest*
11973 eval "ac_cv_header_$ac_safe=no"
11974fi
11975rm -f conftest*
11976fi
11977if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11978 echo "$ac_t""yes" 1>&6
11979 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11980 cat >> confdefs.h <<EOF
11981#define $ac_tr_hdr 1
11982EOF
11983
11984else
11985 echo "$ac_t""no" 1>&6
11986fi
11987done
11988
11989 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
11990 cat >> confdefs.h <<\EOF
11991#define wxUSE_JOYSTICK 1
11992EOF
11993
11994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
11995 fi
11996fi
11997
11998
11999HAVE_DL_FUNCS=0
12000HAVE_SHL_FUNCS=0
12001if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12002 for ac_func in dlopen
12003do
12004echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5357c8e8 12005echo "configure:12006: checking for $ac_func" >&5
10f2d63a
VZ
12006if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12007 echo $ac_n "(cached) $ac_c" 1>&6
12008else
12009 cat > conftest.$ac_ext <<EOF
5357c8e8 12010#line 12011 "configure"
10f2d63a
VZ
12011#include "confdefs.h"
12012/* System header to define __stub macros and hopefully few prototypes,
12013 which can conflict with char $ac_func(); below. */
12014#include <assert.h>
12015/* Override any gcc2 internal prototype to avoid an error. */
12016/* We use char because int might match the return type of a gcc2
12017 builtin and then its argument prototype would still apply. */
12018char $ac_func();
12019
12020int main() {
12021
12022/* The GNU C library defines this for functions which it implements
12023 to always fail with ENOSYS. Some functions are actually named
12024 something starting with __ and the normal name is an alias. */
12025#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12026choke me
12027#else
e694c22c 12028$ac_func();
10f2d63a
VZ
12029#endif
12030
12031; return 0; }
12032EOF
5357c8e8 12033if { (eval echo configure:12034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12034 rm -rf conftest*
12035 eval "ac_cv_func_$ac_func=yes"
12036else
12037 echo "configure: failed program was:" >&5
12038 cat conftest.$ac_ext >&5
12039 rm -rf conftest*
12040 eval "ac_cv_func_$ac_func=no"
12041fi
12042rm -f conftest*
12043fi
12044
12045if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12046 echo "$ac_t""yes" 1>&6
12047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12048 cat >> confdefs.h <<EOF
12049#define $ac_tr_func 1
12050EOF
12051
12052 cat >> confdefs.h <<\EOF
12053#define HAVE_DLOPEN 1
12054EOF
12055
12056 HAVE_DL_FUNCS=1
12057
12058else
12059 echo "$ac_t""no" 1>&6
12060echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5357c8e8 12061echo "configure:12062: checking for dlopen in -ldl" >&5
10f2d63a
VZ
12062ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12063if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12064 echo $ac_n "(cached) $ac_c" 1>&6
12065else
12066 ac_save_LIBS="$LIBS"
12067LIBS="-ldl $LIBS"
12068cat > conftest.$ac_ext <<EOF
5357c8e8 12069#line 12070 "configure"
10f2d63a
VZ
12070#include "confdefs.h"
12071/* Override any gcc2 internal prototype to avoid an error. */
12072/* We use char because int might match the return type of a gcc2
12073 builtin and then its argument prototype would still apply. */
12074char dlopen();
12075
12076int main() {
12077dlopen()
12078; return 0; }
12079EOF
5357c8e8 12080if { (eval echo configure:12081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12081 rm -rf conftest*
12082 eval "ac_cv_lib_$ac_lib_var=yes"
12083else
12084 echo "configure: failed program was:" >&5
12085 cat conftest.$ac_ext >&5
12086 rm -rf conftest*
12087 eval "ac_cv_lib_$ac_lib_var=no"
12088fi
12089rm -f conftest*
12090LIBS="$ac_save_LIBS"
12091
12092fi
12093if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12094 echo "$ac_t""yes" 1>&6
12095
12096 cat >> confdefs.h <<\EOF
12097#define HAVE_DLOPEN 1
12098EOF
12099
12100 HAVE_DL_FUNCS=1
12101 LIBS="$LIBS -ldl"
12102
12103else
12104 echo "$ac_t""no" 1>&6
12105
12106 for ac_func in shl_load
12107do
12108echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5357c8e8 12109echo "configure:12110: checking for $ac_func" >&5
10f2d63a
VZ
12110if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12111 echo $ac_n "(cached) $ac_c" 1>&6
12112else
12113 cat > conftest.$ac_ext <<EOF
5357c8e8 12114#line 12115 "configure"
10f2d63a
VZ
12115#include "confdefs.h"
12116/* System header to define __stub macros and hopefully few prototypes,
12117 which can conflict with char $ac_func(); below. */
12118#include <assert.h>
12119/* Override any gcc2 internal prototype to avoid an error. */
12120/* We use char because int might match the return type of a gcc2
12121 builtin and then its argument prototype would still apply. */
12122char $ac_func();
12123
12124int main() {
12125
12126/* The GNU C library defines this for functions which it implements
12127 to always fail with ENOSYS. Some functions are actually named
12128 something starting with __ and the normal name is an alias. */
12129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12130choke me
12131#else
e694c22c 12132$ac_func();
10f2d63a
VZ
12133#endif
12134
12135; return 0; }
12136EOF
5357c8e8 12137if { (eval echo configure:12138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12138 rm -rf conftest*
12139 eval "ac_cv_func_$ac_func=yes"
12140else
12141 echo "configure: failed program was:" >&5
12142 cat conftest.$ac_ext >&5
12143 rm -rf conftest*
12144 eval "ac_cv_func_$ac_func=no"
12145fi
12146rm -f conftest*
12147fi
12148
12149if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12150 echo "$ac_t""yes" 1>&6
12151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12152 cat >> confdefs.h <<EOF
12153#define $ac_tr_func 1
12154EOF
12155
12156 cat >> confdefs.h <<\EOF
12157#define HAVE_SHL_LOAD 1
12158EOF
12159
12160 HAVE_SHL_FUNCS=1
12161
12162else
12163 echo "$ac_t""no" 1>&6
12164fi
12165done
12166
12167
12168fi
12169
12170
12171fi
12172done
12173
12174
12175 if test "$HAVE_DL_FUNCS" = 0; then
12176 if test "$HAVE_SHL_FUNCS" = 0; then
12177 if test "$USE_UNIX" = 1; then
12178 echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2
12179 wxUSE_ODBC=no
12180 wxUSE_DYNLIB_CLASS=no
12181 else
12182 echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2
12183 fi
12184 fi
12185 fi
12186fi
12187
12188if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
12189 cat >> confdefs.h <<\EOF
12190#define wxUSE_DYNLIB_CLASS 1
12191EOF
12192
12193fi
12194
12195
12196if test "$wxUSE_UNICODE" = "yes" ; then
12197 cat >> confdefs.h <<\EOF
12198#define wxUSE_UNICODE 1
12199EOF
12200
12201fi
12202
12203if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12204 cat >> confdefs.h <<\EOF
12205#define wxUSE_WCSRTOMBS 1
12206EOF
12207
12208fi
12209
12210if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12211 cat >> confdefs.h <<\EOF
12212#define wxUSE_EXPERIMENTAL_PRINTF 1
12213EOF
12214
12215fi
12216
12217
12218IODBC_C_SRC=""
12219if test "$wxUSE_ODBC" = "yes" ; then
12220 cat >> confdefs.h <<\EOF
12221#define wxUSE_ODBC 1
12222EOF
12223
12224 WXODBCFLAG="-D_IODBC_"
12225 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12226 IODBCOBJS="\$(IODBC_OBJS)"
12227else
12228 IODBCOBJS=
12229fi
12230
12231
12232if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12233 cat >> confdefs.h <<\EOF
12234#define wxUSE_POSTSCRIPT 1
12235EOF
12236
12237fi
12238
12239cat >> confdefs.h <<\EOF
12240#define wxUSE_AFM_FOR_POSTSCRIPT 1
12241EOF
12242
12243
12244cat >> confdefs.h <<\EOF
12245#define wxUSE_NORMALIZED_PS_FONTS 1
12246EOF
12247
12248
12249
12250if test "$wxUSE_CONSTRAINTS" = "yes"; then
12251 cat >> confdefs.h <<\EOF
12252#define wxUSE_CONSTRAINTS 1
12253EOF
12254
12255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12256fi
12257
12258if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12259 cat >> confdefs.h <<\EOF
12260#define wxUSE_MDI_ARCHITECTURE 1
12261EOF
12262
12263 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12264fi
12265
12266if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12267 cat >> confdefs.h <<\EOF
12268#define wxUSE_DOC_VIEW_ARCHITECTURE 1
12269EOF
12270
12271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12272 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12273 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12274 fi
12275fi
12276
12277if test "$wxUSE_HELP" = "yes"; then
12278 cat >> confdefs.h <<\EOF
12279#define wxUSE_HELP 1
12280EOF
12281
12282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12283fi
12284
12285if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12286 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12287 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12288 else
12289 cat >> confdefs.h <<\EOF
12290#define wxUSE_PRINTING_ARCHITECTURE 1
12291EOF
12292
12293 fi
12294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12295fi
12296
12297if test "$wxUSE_PROLOGIO" = "yes" ; then
12298 cat >> confdefs.h <<\EOF
12299#define wxUSE_PROLOGIO 1
12300EOF
12301
12302fi
12303
12304if test "$wxUSE_RESOURCES" = "yes" ; then
12305 if test "$wxUSE_PROLOGIO" = "yes" ; then
12306 cat >> confdefs.h <<\EOF
12307#define wxUSE_RESOURCES 1
12308EOF
12309
12310 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12311 else
12312 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12313 fi
12314fi
12315
12316if test "$wxUSE_X_RESOURCES" = "yes"; then
12317 cat >> confdefs.h <<\EOF
12318#define wxUSE_X_RESOURCES 1
12319EOF
12320
12321fi
12322
12323
12324if test "$wxUSE_IPC" = "yes"; then
12325 cat >> confdefs.h <<\EOF
12326#define wxUSE_IPC 1
12327EOF
12328
12329fi
12330
12331if test "$wxUSE_CLIPBOARD" = "yes"; then
12332 cat >> confdefs.h <<\EOF
12333#define wxUSE_CLIPBOARD 1
12334EOF
12335
12336fi
12337
12338if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12339 if test "$wxUSE_GTK" = 1; then
12340 if test "$WXGTK12" != 1; then
12341 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12342 wxUSE_DRAG_AND_DROP=no
12343 fi
12344 fi
12345
12346 if test "$wxUSE_MOTIF" = 1; then
12347 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12348 wxUSE_DRAG_AND_DROP=no
12349 fi
12350
12351 if test "$USE_WIN32" = 1; then
12352 for ac_hdr in ole2.h
12353do
12354ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12355echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5357c8e8 12356echo "configure:12357: checking for $ac_hdr" >&5
10f2d63a
VZ
12357if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12358 echo $ac_n "(cached) $ac_c" 1>&6
12359else
12360 cat > conftest.$ac_ext <<EOF
5357c8e8 12361#line 12362 "configure"
10f2d63a
VZ
12362#include "confdefs.h"
12363#include <$ac_hdr>
12364EOF
12365ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5357c8e8 12366{ (eval echo configure:12367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12367ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12368if test -z "$ac_err"; then
12369 rm -rf conftest*
12370 eval "ac_cv_header_$ac_safe=yes"
12371else
12372 echo "$ac_err" >&5
12373 echo "configure: failed program was:" >&5
12374 cat conftest.$ac_ext >&5
12375 rm -rf conftest*
12376 eval "ac_cv_header_$ac_safe=no"
12377fi
12378rm -f conftest*
12379fi
12380if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12381 echo "$ac_t""yes" 1>&6
12382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12383 cat >> confdefs.h <<EOF
12384#define $ac_tr_hdr 1
12385EOF
12386
12387else
12388 echo "$ac_t""no" 1>&6
12389fi
12390done
12391
12392 if test "x$HAVE_OLE2_H" = x ; then
12393 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12394 wxUSE_DRAG_AND_DROP=no
12395 fi
12396 fi
12397
12398 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12399 cat >> confdefs.h <<\EOF
12400#define wxUSE_DRAG_AND_DROP 1
12401EOF
12402
12403 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12404 fi
12405
12406fi
12407
12408if test "$wxUSE_SPLINES" = "yes" ; then
12409 cat >> confdefs.h <<\EOF
12410#define wxUSE_SPLINES 1
12411EOF
12412
12413fi
12414
12415
12416if test "$wxUSE_ACCEL" = "yes"; then
12417 cat >> confdefs.h <<\EOF
12418#define wxUSE_ACCEL 1
12419EOF
12420
12421fi
12422
12423if test "$wxUSE_CARET" = "yes"; then
12424 cat >> confdefs.h <<\EOF
12425#define wxUSE_CARET 1
12426EOF
12427
12428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12429fi
12430
12431if test "$wxUSE_COMBOBOX" = "yes"; then
12432 cat >> confdefs.h <<\EOF
12433#define wxUSE_COMBOBOX 1
12434EOF
12435
12436fi
12437
12438if test "$wxUSE_CHOICE" = "yes"; then
12439 cat >> confdefs.h <<\EOF
12440#define wxUSE_CHOICE 1
12441EOF
12442
12443fi
12444
12445if test "$wxUSE_BMPBUTTON" = "yes"; then
12446 cat >> confdefs.h <<\EOF
12447#define wxUSE_BMPBUTTON 1
12448EOF
12449
12450fi
12451
12452if test "$wxUSE_CHECKBOX" = "yes"; then
12453 cat >> confdefs.h <<\EOF
12454#define wxUSE_CHECKBOX 1
12455EOF
12456
12457fi
12458
12459if test "$wxUSE_CHECKLST" = "yes"; then
12460 cat >> confdefs.h <<\EOF
12461#define wxUSE_CHECKLISTBOX 1
12462EOF
12463
12464 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12465fi
12466
12467if test "$wxUSE_GAUGE" = "yes"; then
12468 cat >> confdefs.h <<\EOF
12469#define wxUSE_GAUGE 1
12470EOF
12471
12472fi
12473
12474if test "$wxUSE_GRID" = "yes"; then
12475 cat >> confdefs.h <<\EOF
12476#define wxUSE_GRID 1
12477EOF
12478
12479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
12480fi
12481
12482if test "$wxUSE_NEW_GRID" = "yes"; then
12483 cat >> confdefs.h <<\EOF
12484#define wxUSE_NEW_GRID 1
12485EOF
12486
12487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
12488fi
12489
12490if test "$wxUSE_IMAGLIST" = "yes"; then
12491 cat >> confdefs.h <<\EOF
12492#define wxUSE_IMAGLIST 1
12493EOF
12494
12495fi
12496
12497if test "$wxUSE_LISTBOX" = "yes"; then
12498 cat >> confdefs.h <<\EOF
12499#define wxUSE_LISTBOX 1
12500EOF
12501
12502fi
12503
12504if test "$wxUSE_LISTCTRL" = "yes"; then
12505 if test "$wxUSE_IMAGLIST" = "yes"; then
12506 cat >> confdefs.h <<\EOF
12507#define wxUSE_LISTCTRL 1
12508EOF
12509
12510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
12511 else
12512 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
12513 fi
12514fi
12515
12516if test "$wxUSE_NOTEBOOK" = "yes"; then
12517 cat >> confdefs.h <<\EOF
12518#define wxUSE_NOTEBOOK 1
12519EOF
12520
12521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
12522fi
12523
12524if test "$wxUSE_RADIOBOX" = "yes"; then
12525 cat >> confdefs.h <<\EOF
12526#define wxUSE_RADIOBOX 1
12527EOF
12528
12529fi
12530
12531if test "$wxUSE_RADIOBTN" = "yes"; then
12532 cat >> confdefs.h <<\EOF
12533#define wxUSE_RADIOBTN 1
12534EOF
12535
12536fi
12537
12538if test "$wxUSE_SASH" = "yes"; then
12539 cat >> confdefs.h <<\EOF
12540#define wxUSE_SASH 1
12541EOF
12542
12543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
12544fi
12545
12546if test "$wxUSE_SCROLLBAR" = "yes"; then
12547 cat >> confdefs.h <<\EOF
12548#define wxUSE_SCROLLBAR 1
12549EOF
12550
741a9306 12551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
12552fi
12553
12554if test "$wxUSE_SLIDER" = "yes"; then
12555 cat >> confdefs.h <<\EOF
12556#define wxUSE_SLIDER 1
12557EOF
12558
12559fi
12560
12561if test "$wxUSE_SPINBTN" = "yes"; then
12562 cat >> confdefs.h <<\EOF
12563#define wxUSE_SPINBTN 1
12564EOF
12565
12566fi
12567
56cfaa52
RR
12568if test "$wxUSE_SPINCTRL" = "yes"; then
12569 cat >> confdefs.h <<\EOF
12570#define wxUSE_SPINCTRL 1
12571EOF
12572
12573fi
12574
10f2d63a
VZ
12575if test "$wxUSE_SPLITTER" = "yes"; then
12576 cat >> confdefs.h <<\EOF
12577#define wxUSE_SPLITTER 1
12578EOF
12579
12580 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
12581fi
12582
12583if test "$wxUSE_STATBMP" = "yes"; then
12584 cat >> confdefs.h <<\EOF
12585#define wxUSE_STATBMP 1
12586EOF
12587
12588fi
12589
12590if test "$wxUSE_STATBOX" = "yes"; then
12591 cat >> confdefs.h <<\EOF
12592#define wxUSE_STATBOX 1
12593EOF
12594
12595fi
12596
12597if test "$wxUSE_STATLINE" = "yes"; then
12598 if test "$wxUSE_WINE" = 1 ; then
12599 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
12600 else
12601 cat >> confdefs.h <<\EOF
12602#define wxUSE_STATLINE 1
12603EOF
12604
12605 fi
12606fi
12607
12608if test "$wxUSE_STATUSBAR" = "yes"; then
12609 cat >> confdefs.h <<\EOF
12610#define wxUSE_STATUSBAR 1
12611EOF
12612
12613fi
12614
12615if test "$wxUSE_TABDIALOG" = "yes"; then
12616 cat >> confdefs.h <<\EOF
12617#define wxUSE_TAB_DIALOG 1
12618EOF
12619
12620 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
12621fi
12622
360d6699
VZ
12623if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
12624 cat >> confdefs.h <<\EOF
12625#define wxUSE_TOOLBAR_SIMPLE 1
12626EOF
12627
12628 wxUSE_TOOLBAR="yes"
12629fi
12630
10f2d63a
VZ
12631if test "$wxUSE_TOOLBAR" = "yes"; then
12632 cat >> confdefs.h <<\EOF
12633#define wxUSE_TOOLBAR 1
12634EOF
12635
360d6699
VZ
12636
12637 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
12638 wxUSE_TOOLBAR_NATIVE="yes"
12639 fi
12640
10f2d63a
VZ
12641 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
12642fi
12643
360d6699
VZ
12644if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
12645 cat >> confdefs.h <<\EOF
12646#define wxUSE_TOOLBAR_NATIVE 1
12647EOF
12648
12649fi
12650
10f2d63a
VZ
12651if test "$wxUSE_TOOLTIPS" = "yes"; then
12652 if test "$wxUSE_MOTIF" = 1; then
12653 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
12654 else
12655 if test "$wxUSE_WINE" = 1; then
12656 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
12657 else
12658 cat >> confdefs.h <<\EOF
12659#define wxUSE_TOOLTIPS 1
12660EOF
12661
12662 fi
12663 fi
12664fi
12665
12666if test "$wxUSE_TREECTRL" = "yes"; then
12667 if test "$wxUSE_IMAGLIST" = "yes"; then
12668 cat >> confdefs.h <<\EOF
12669#define wxUSE_TREECTRL 1
12670EOF
12671
12672 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
12673 else
12674 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
12675 fi
12676fi
12677
12678
12679
12680if test "$wxUSE_METAFILE" = "yes"; then
12681 cat >> confdefs.h <<\EOF
12682#define wxUSE_METAFILE 1
12683EOF
12684
12685fi
12686
12687if test "$wxUSE_DIRDLG" = "yes"; then
12688 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12689 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
12690 else
12691 if test "$wxUSE_TREECTRL" != "yes"; then
12692 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
12693 else
12694 cat >> confdefs.h <<\EOF
12695#define wxUSE_DIRDLG 1
12696EOF
12697
12698 fi
12699 fi
12700fi
12701
12702if test "$wxUSE_TEXTDLG" = "yes"; then
12703 cat >> confdefs.h <<\EOF
12704#define wxUSE_TEXTDLG 1
12705EOF
12706
12707fi
12708
12709if test "$wxUSE_STARTUP_TIPS" = "yes"; then
12710 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12711 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
12712 else
12713 cat >> confdefs.h <<\EOF
12714#define wxUSE_STARTUP_TIPS 1
12715EOF
12716
12717 fi
12718fi
12719
12720if test "$wxUSE_PROGRESSDLG" = "yes"; then
12721 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12722 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
12723 else
12724 cat >> confdefs.h <<\EOF
12725#define wxUSE_PROGRESSDLG 1
12726EOF
12727
12728 fi
12729fi
12730
12731if test "$wxUSE_MINIFRAME" = "yes"; then
12732 cat >> confdefs.h <<\EOF
12733#define wxUSE_MINIFRAME 1
12734EOF
12735
12736 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
12737fi
12738
12739if test "$wxUSE_HTML" = "yes"; then
12740 cat >> confdefs.h <<\EOF
12741#define wxUSE_HTML 1
12742EOF
12743
12744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
12745 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
12746fi
12747
12748if test "$wxUSE_VALIDATORS" = "yes"; then
12749 cat >> confdefs.h <<\EOF
12750#define wxUSE_VALIDATORS 1
12751EOF
12752
12753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
12754fi
12755
12756if test "$wxUSE_GIF" = "yes" ; then
12757 cat >> confdefs.h <<\EOF
12758#define wxUSE_GIF 1
12759EOF
12760
12761fi
12762
12763if test "$wxUSE_PCX" = "yes" ; then
12764 cat >> confdefs.h <<\EOF
12765#define wxUSE_PCX 1
12766EOF
12767
12768fi
12769
12770if test "$wxUSE_PNM" = "yes" ; then
12771 cat >> confdefs.h <<\EOF
12772#define wxUSE_PNM 1
12773EOF
12774
12775fi
12776
12777
aaa37c0d
VZ
12778OSINFO=`uname -s -r -m`
12779OSINFO="\"$OSINFO\""
12780cat >> confdefs.h <<EOF
12781#define WXWIN_OS_DESCRIPTION $OSINFO
12782EOF
12783
12784
12785
10f2d63a
VZ
12786GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
12787
c63c7106 12788EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a
VZ
12789if test "$wxUSE_GUI" = "yes"; then
12790 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
12791fi
12792
12793LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
12794
c7a2bf27 12795INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
12796
12797if test "$GXX" = yes ; then
12798 CXXWARNINGS="-Wall"
12799 fi
12800EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
12801
12802CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
12803CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
12804
e694c22c
VZ
12805LDFLAGS="$LDFLAGS $PROFILE"
12806
10f2d63a
VZ
12807if test "$wxUSE_GUI" = "yes"; then
12808
12809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
741a9306 12810 font forty fractal image minimal richedit wxpoem"
10f2d63a
VZ
12811else
12812 SAMPLES_SUBDIRS=""
12813fi
12814
12815SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`"
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
1d62a8b4 12868
e694c22c 12869
10f2d63a
VZ
12870
12871
12872echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
5357c8e8 12873echo "configure:12874: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
12874set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
12875if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
12876 echo $ac_n "(cached) $ac_c" 1>&6
12877else
12878 cat > conftestmake <<\EOF
12879all:
12880 @echo 'ac_maketemp="${MAKE}"'
12881EOF
12882# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12883eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
12884if test -n "$ac_maketemp"; then
12885 eval ac_cv_prog_make_${ac_make}_set=yes
12886else
12887 eval ac_cv_prog_make_${ac_make}_set=no
12888fi
12889rm -f conftestmake
12890fi
12891if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12892 echo "$ac_t""yes" 1>&6
12893 SET_MAKE=
12894else
12895 echo "$ac_t""no" 1>&6
12896 SET_MAKE="MAKE=${MAKE-make}"
12897fi
12898
12899
12900
12901
12902if test "${TOOLKIT_DIR}" = "msw" ; then
12903 GL_TOOLKIT_DIR="win"
12904else
12905 GL_TOOLKIT_DIR="${TOOLKIT_DIR}"
12906fi
12907
12908
12909trap '' 1 2 15
12910cat > confcache <<\EOF
12911# This file is a shell script that caches the results of configure
12912# tests run on this system so they can be shared between configure
12913# scripts and configure runs. It is not useful on other systems.
12914# If it contains results you don't want to keep, you may remove or edit it.
12915#
12916# By default, configure uses ./config.cache as the cache file,
12917# creating it if it does not exist already. You can give configure
12918# the --cache-file=FILE option to use a different cache file; that is
12919# what configure does when it calls configure scripts in
12920# subdirectories, so they share the cache.
12921# Giving --cache-file=/dev/null disables caching, for debugging configure.
12922# config.status only pays attention to the cache file if you give it the
12923# --recheck option to rerun configure.
12924#
12925EOF
12926# The following way of writing the cache mishandles newlines in values,
12927# but we know of no workaround that is simple, portable, and efficient.
12928# So, don't put newlines in cache variables' values.
12929# Ultrix sh set writes to stderr and can't be redirected directly,
12930# and sets the high bit in the cache file unless we assign to the vars.
12931(set) 2>&1 |
12932 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12933 *ac_space=\ *)
12934 # `set' does not quote correctly, so add quotes (double-quote substitution
12935 # turns \\\\ into \\, and sed turns \\ into \).
12936 sed -n \
12937 -e "s/'/'\\\\''/g" \
12938 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12939 ;;
12940 *)
12941 # `set' quotes correctly as required by POSIX, so do not add quotes.
12942 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12943 ;;
12944 esac >> confcache
12945if cmp -s $cache_file confcache; then
12946 :
12947else
12948 if test -w $cache_file; then
12949 echo "updating cache $cache_file"
12950 cat confcache > $cache_file
12951 else
12952 echo "not updating unwritable cache $cache_file"
12953 fi
12954fi
12955rm -f confcache
12956
12957trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12958
12959test "x$prefix" = xNONE && prefix=$ac_default_prefix
12960# Let make expand exec_prefix.
12961test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12962
12963# Any assignment to VPATH causes Sun make to only execute
12964# the first set of double-colon rules, so remove it if not needed.
12965# If there is a colon in the path, we need to keep it.
12966if test "x$srcdir" = x.; then
12967 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12968fi
12969
12970trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12971
12972DEFS=-DHAVE_CONFIG_H
12973
12974# Without the "./", some shells look in PATH for config.status.
12975: ${CONFIG_STATUS=./config.status}
12976
12977echo creating $CONFIG_STATUS
12978rm -f $CONFIG_STATUS
12979cat > $CONFIG_STATUS <<EOF
12980#! /bin/sh
12981# Generated automatically by configure.
12982# Run this file to recreate the current configuration.
12983# This directory was configured as follows,
12984# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12985#
12986# $0 $ac_configure_args
12987#
12988# Compiler output produced by configure, useful for debugging
12989# configure, is in ./config.log if it exists.
12990
12991ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12992for ac_option
12993do
12994 case "\$ac_option" in
12995 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12996 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12997 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12998 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
e694c22c 12999 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
13000 exit 0 ;;
13001 -help | --help | --hel | --he | --h)
13002 echo "\$ac_cs_usage"; exit 0 ;;
13003 *) echo "\$ac_cs_usage"; exit 1 ;;
13004 esac
13005done
13006
13007ac_given_srcdir=$srcdir
13008ac_given_INSTALL="$INSTALL"
13009
13010trap 'rm -fr `echo "
13011 wx-config
13012 src/make.env
13013 src/makeprog.env
13014 src/makelib.env
13015 Makefile
13016 samples/Makefile
13017 samples/bombs/Makefile
13018 samples/caret/Makefile
13019 samples/checklst/Makefile
13020 samples/config/Makefile
13021 samples/controls/Makefile
b47c832e 13022 samples/console/Makefile
10f2d63a
VZ
13023 samples/db/Makefile
13024 samples/dialogs/Makefile
13025 samples/docview/Makefile
13026 samples/docvwmdi/Makefile
13027 samples/dnd/Makefile
13028 samples/drawing/Makefile
13029 samples/forty/Makefile
678b92a9 13030 samples/font/Makefile
10f2d63a
VZ
13031 samples/fractal/Makefile
13032 samples/image/Makefile
13033 samples/internat/Makefile
13034 samples/layout/Makefile
13035 samples/listctrl/Makefile
13036 samples/mdi/Makefile
13037 samples/minifram/Makefile
13038 samples/minimal/Makefile
13039 samples/nettest/Makefile
13040 samples/newgrid/Makefile
13041 samples/notebook/Makefile
13042 samples/png/Makefile
13043 samples/printing/Makefile
13044 samples/proplist/Makefile
13045 samples/richedit/Makefile
13046 samples/resource/Makefile
13047 samples/sashtest/Makefile
13048 samples/scroll/Makefile
13049 samples/scrollsub/Makefile
13050 samples/splitter/Makefile
13051 samples/text/Makefile
13052 samples/thread/Makefile
13053 samples/toolbar/Makefile
13054 samples/treectrl/Makefile
13055 samples/typetest/Makefile
13056 samples/validate/Makefile
13057 samples/wxpoem/Makefile
13058 samples/wxsocket/Makefile
13059 samples/wizard/Makefile
13060 samples/html/Makefile
13061 samples/html/about/Makefile
13062 samples/html/help/Makefile
13063 samples/html/printing/Makefile
fc9c7c09 13064 samples/html/helpview/Makefile
10f2d63a
VZ
13065 samples/html/test/Makefile
13066 samples/html/zip/Makefile
13067 samples/html/virtual/Makefile
13068 samples/html/widget/Makefile
13069 utils/Makefile
13070 utils/wxMMedia2/Makefile
13071 utils/wxMMedia2/lib/Makefile
13072 utils/wxMMedia2/sample/Makefile
13073 utils/glcanvas/Makefile
13074 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
13075 utils/ogl/Makefile
13076 utils/ogl/src/Makefile
13077 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13078EOF
13079cat >> $CONFIG_STATUS <<EOF
13080
13081# Protect against being on the right side of a sed subst in config.status.
13082sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13083 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13084$ac_vpsub
13085$extrasub
13086s%@SHELL@%$SHELL%g
13087s%@CFLAGS@%$CFLAGS%g
13088s%@CPPFLAGS@%$CPPFLAGS%g
13089s%@CXXFLAGS@%$CXXFLAGS%g
13090s%@FFLAGS@%$FFLAGS%g
13091s%@DEFS@%$DEFS%g
13092s%@LDFLAGS@%$LDFLAGS%g
13093s%@LIBS@%$LIBS%g
13094s%@exec_prefix@%$exec_prefix%g
13095s%@prefix@%$prefix%g
13096s%@program_transform_name@%$program_transform_name%g
13097s%@bindir@%$bindir%g
13098s%@sbindir@%$sbindir%g
13099s%@libexecdir@%$libexecdir%g
13100s%@datadir@%$datadir%g
13101s%@sysconfdir@%$sysconfdir%g
13102s%@sharedstatedir@%$sharedstatedir%g
13103s%@localstatedir@%$localstatedir%g
13104s%@libdir@%$libdir%g
13105s%@includedir@%$includedir%g
13106s%@oldincludedir@%$oldincludedir%g
13107s%@infodir@%$infodir%g
13108s%@mandir@%$mandir%g
13109s%@host@%$host%g
13110s%@host_alias@%$host_alias%g
13111s%@host_cpu@%$host_cpu%g
13112s%@host_vendor@%$host_vendor%g
13113s%@host_os@%$host_os%g
13114s%@target@%$target%g
13115s%@target_alias@%$target_alias%g
13116s%@target_cpu@%$target_cpu%g
13117s%@target_vendor@%$target_vendor%g
13118s%@target_os@%$target_os%g
13119s%@build@%$build%g
13120s%@build_alias@%$build_alias%g
13121s%@build_cpu@%$build_cpu%g
13122s%@build_vendor@%$build_vendor%g
13123s%@build_os@%$build_os%g
13124s%@CC@%$CC%g
13125s%@CPP@%$CPP%g
13126s%@CXX@%$CXX%g
13127s%@CXXCPP@%$CXXCPP%g
13128s%@RANLIB@%$RANLIB%g
13129s%@AR@%$AR%g
13130s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13131s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13132s%@INSTALL_DATA@%$INSTALL_DATA%g
13133s%@STRIP@%$STRIP%g
13134s%@YACC@%$YACC%g
13135s%@LEX@%$LEX%g
13136s%@LEXLIB@%$LEXLIB%g
13137s%@LN_S@%$LN_S%g
13138s%@GTK_CONFIG@%$GTK_CONFIG%g
13139s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13140s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
13141s%@X_CFLAGS@%$X_CFLAGS%g
13142s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13143s%@X_LIBS@%$X_LIBS%g
13144s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
10f2d63a
VZ
13145s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13146s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13147s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13148s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13149s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13150s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13151s%@WX_LIBRARY@%$WX_LIBRARY%g
13152s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13153s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13154s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13155s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13156s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13157s%@WX_ALL@%$WX_ALL%g
13158s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13159s%@SHARED_LD@%$SHARED_LD%g
13160s%@PIC_FLAG@%$PIC_FLAG%g
13161s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
1d62a8b4 13162s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
10f2d63a
VZ
13163s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
13164s%@TOOLKIT@%$TOOLKIT%g
13165s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13166s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13167s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13168s%@GUIHEADERS@%$GUIHEADERS%g
13169s%@GUIOBJS@%$GUIOBJS%g
13170s%@COMMONOBJS@%$COMMONOBJS%g
13171s%@GENERICOBJS@%$GENERICOBJS%g
13172s%@GUIDEPS@%$GUIDEPS%g
13173s%@COMMONDEPS@%$COMMONDEPS%g
13174s%@GENERICDEPS@%$GENERICDEPS%g
13175s%@IODBCOBJS@%$IODBCOBJS%g
13176s%@UNIXOBJS@%$UNIXOBJS%g
13177s%@UNIXDEPS@%$UNIXDEPS%g
13178s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13179s%@ALL_DEPFILES@%$ALL_DEPFILES%g
13180s%@ALL_HEADERS@%$ALL_HEADERS%g
13181s%@GUIDIST@%$GUIDIST%g
13182s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13183s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13184s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13185s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13186s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13187s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13188s%@EXTRA_LIBS@%$EXTRA_LIBS%g
13189s%@LD_LIBS@%$LD_LIBS%g
13190s%@SET_MAKE@%$SET_MAKE%g
13191s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
13192
13193CEOF
13194EOF
13195
13196cat >> $CONFIG_STATUS <<\EOF
13197
13198# Split the substitutions into bite-sized pieces for seds with
13199# small command number limits, like on Digital OSF/1 and HP-UX.
13200ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13201ac_file=1 # Number of current file.
13202ac_beg=1 # First line for current file.
13203ac_end=$ac_max_sed_cmds # Line after last line for current file.
13204ac_more_lines=:
13205ac_sed_cmds=""
13206while $ac_more_lines; do
13207 if test $ac_beg -gt 1; then
13208 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13209 else
13210 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13211 fi
13212 if test ! -s conftest.s$ac_file; then
13213 ac_more_lines=false
13214 rm -f conftest.s$ac_file
13215 else
13216 if test -z "$ac_sed_cmds"; then
13217 ac_sed_cmds="sed -f conftest.s$ac_file"
13218 else
13219 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13220 fi
13221 ac_file=`expr $ac_file + 1`
13222 ac_beg=$ac_end
13223 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13224 fi
13225done
13226if test -z "$ac_sed_cmds"; then
13227 ac_sed_cmds=cat
13228fi
13229EOF
13230
13231cat >> $CONFIG_STATUS <<EOF
13232
13233CONFIG_FILES=\${CONFIG_FILES-"wx-config
13234 src/make.env
13235 src/makeprog.env
13236 src/makelib.env
13237 Makefile
13238 samples/Makefile
13239 samples/bombs/Makefile
13240 samples/caret/Makefile
13241 samples/checklst/Makefile
13242 samples/config/Makefile
13243 samples/controls/Makefile
b47c832e 13244 samples/console/Makefile
10f2d63a
VZ
13245 samples/db/Makefile
13246 samples/dialogs/Makefile
13247 samples/docview/Makefile
13248 samples/docvwmdi/Makefile
13249 samples/dnd/Makefile
13250 samples/drawing/Makefile
13251 samples/forty/Makefile
678b92a9 13252 samples/font/Makefile
10f2d63a
VZ
13253 samples/fractal/Makefile
13254 samples/image/Makefile
13255 samples/internat/Makefile
13256 samples/layout/Makefile
13257 samples/listctrl/Makefile
13258 samples/mdi/Makefile
13259 samples/minifram/Makefile
13260 samples/minimal/Makefile
13261 samples/nettest/Makefile
13262 samples/newgrid/Makefile
13263 samples/notebook/Makefile
13264 samples/png/Makefile
13265 samples/printing/Makefile
13266 samples/proplist/Makefile
13267 samples/richedit/Makefile
13268 samples/resource/Makefile
13269 samples/sashtest/Makefile
13270 samples/scroll/Makefile
13271 samples/scrollsub/Makefile
13272 samples/splitter/Makefile
13273 samples/text/Makefile
13274 samples/thread/Makefile
13275 samples/toolbar/Makefile
13276 samples/treectrl/Makefile
13277 samples/typetest/Makefile
13278 samples/validate/Makefile
13279 samples/wxpoem/Makefile
13280 samples/wxsocket/Makefile
13281 samples/wizard/Makefile
13282 samples/html/Makefile
13283 samples/html/about/Makefile
13284 samples/html/help/Makefile
13285 samples/html/printing/Makefile
fc9c7c09 13286 samples/html/helpview/Makefile
10f2d63a
VZ
13287 samples/html/test/Makefile
13288 samples/html/zip/Makefile
13289 samples/html/virtual/Makefile
13290 samples/html/widget/Makefile
13291 utils/Makefile
13292 utils/wxMMedia2/Makefile
13293 utils/wxMMedia2/lib/Makefile
13294 utils/wxMMedia2/sample/Makefile
13295 utils/glcanvas/Makefile
13296 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
13297 utils/ogl/Makefile
13298 utils/ogl/src/Makefile
13299 "}
13300EOF
13301cat >> $CONFIG_STATUS <<\EOF
13302for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13303 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13304 case "$ac_file" in
13305 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13306 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13307 *) ac_file_in="${ac_file}.in" ;;
13308 esac
13309
13310 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13311
13312 # Remove last slash and all that follows it. Not all systems have dirname.
13313 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13314 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13315 # The file is in a subdirectory.
13316 test ! -d "$ac_dir" && mkdir "$ac_dir"
13317 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13318 # A "../" for each directory in $ac_dir_suffix.
13319 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13320 else
13321 ac_dir_suffix= ac_dots=
13322 fi
13323
13324 case "$ac_given_srcdir" in
13325 .) srcdir=.
13326 if test -z "$ac_dots"; then top_srcdir=.
13327 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13328 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13329 *) # Relative path.
13330 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13331 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13332 esac
13333
13334 case "$ac_given_INSTALL" in
13335 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13336 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13337 esac
13338
13339 echo creating "$ac_file"
13340 rm -f "$ac_file"
13341 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13342 case "$ac_file" in
13343 *Makefile*) ac_comsub="1i\\
13344# $configure_input" ;;
13345 *) ac_comsub= ;;
13346 esac
13347
13348 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13349 sed -e "$ac_comsub
13350s%@configure_input@%$configure_input%g
13351s%@srcdir@%$srcdir%g
13352s%@top_srcdir@%$top_srcdir%g
13353s%@INSTALL@%$INSTALL%g
13354" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13355fi; done
13356rm -f conftest.s*
13357
13358# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13359# NAME is the cpp macro being defined and VALUE is the value it is being given.
13360#
13361# ac_d sets the value in "#define NAME VALUE" lines.
13362ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13363ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13364ac_dC='\3'
13365ac_dD='%g'
13366# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13367ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13368ac_uB='\([ ]\)%\1#\2define\3'
13369ac_uC=' '
13370ac_uD='\4%g'
13371# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13372ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13373ac_eB='$%\1#\2define\3'
13374ac_eC=' '
13375ac_eD='%g'
13376
13377if test "${CONFIG_HEADERS+set}" != set; then
13378EOF
13379cat >> $CONFIG_STATUS <<EOF
13380 CONFIG_HEADERS="setup.h:setup.h.in"
13381EOF
13382cat >> $CONFIG_STATUS <<\EOF
13383fi
13384for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13385 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13386 case "$ac_file" in
13387 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13388 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13389 *) ac_file_in="${ac_file}.in" ;;
13390 esac
13391
13392 echo creating $ac_file
13393
13394 rm -f conftest.frag conftest.in conftest.out
13395 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13396 cat $ac_file_inputs > conftest.in
13397
13398EOF
13399
13400# Transform confdefs.h into a sed script conftest.vals that substitutes
13401# the proper values into config.h.in to produce config.h. And first:
13402# Protect against being on the right side of a sed subst in config.status.
13403# Protect against being in an unquoted here document in config.status.
13404rm -f conftest.vals
13405cat > conftest.hdr <<\EOF
13406s/[\\&%]/\\&/g
13407s%[\\$`]%\\&%g
13408s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13409s%ac_d%ac_u%gp
13410s%ac_u%ac_e%gp
13411EOF
13412sed -n -f conftest.hdr confdefs.h > conftest.vals
13413rm -f conftest.hdr
13414
13415# This sed command replaces #undef with comments. This is necessary, for
13416# example, in the case of _POSIX_SOURCE, which is predefined and required
13417# on some systems where configure will not decide to define it.
13418cat >> conftest.vals <<\EOF
13419s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13420EOF
13421
13422# Break up conftest.vals because some shells have a limit on
13423# the size of here documents, and old seds have small limits too.
13424
13425rm -f conftest.tail
13426while :
13427do
13428 ac_lines=`grep -c . conftest.vals`
13429 # grep -c gives empty output for an empty file on some AIX systems.
13430 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13431 # Write a limited-size here document to conftest.frag.
13432 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13433 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13434 echo 'CEOF
13435 sed -f conftest.frag conftest.in > conftest.out
13436 rm -f conftest.in
13437 mv conftest.out conftest.in
13438' >> $CONFIG_STATUS
13439 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13440 rm -f conftest.vals
13441 mv conftest.tail conftest.vals
13442done
13443rm -f conftest.vals
13444
13445cat >> $CONFIG_STATUS <<\EOF
13446 rm -f conftest.frag conftest.h
13447 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13448 cat conftest.in >> conftest.h
13449 rm -f conftest.in
13450 if cmp -s $ac_file conftest.h 2>/dev/null; then
13451 echo "$ac_file is unchanged"
13452 rm -f conftest.h
13453 else
13454 # Remove last slash and all that follows it. Not all systems have dirname.
13455 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13456 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13457 # The file is in a subdirectory.
13458 test ! -d "$ac_dir" && mkdir "$ac_dir"
13459 fi
13460 rm -f $ac_file
13461 mv conftest.h $ac_file
13462 fi
13463fi; done
13464
13465EOF
13466cat >> $CONFIG_STATUS <<EOF
13467
13468 TOOLKIT_DIR="${TOOLKIT_DIR}"
13469
13470
13471EOF
13472cat >> $CONFIG_STATUS <<\EOF
13473
13474 chmod +x wx-config
13475 if test ! -d include; then
13476 mkdir include
13477 fi
13478 if test ! -d include/wx; then
13479 mkdir include/wx
13480 fi
13481 if test ! -d include/wx/${TOOLKIT_DIR}; then
13482 mkdir include/wx/${TOOLKIT_DIR}
13483 fi
afc31813
VZ
13484 if test -f setup.h; then
13485 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13486 fi
10f2d63a
VZ
13487
13488exit 0
13489EOF
13490chmod +x $CONFIG_STATUS
13491rm -fr confdefs* $ac_clean_files
13492test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13493
13494