]> git.saurik.com Git - wxWidgets.git/blob - configure
Various makefile corrections,
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 # Guess values for system-dependent variables and create Makefiles.
41 # Generated automatically using autoconf version 2.14
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:
48 ac_help=
49 ac_default_prefix=/usr/local
50 # Any additions from configure.in:
51 ac_help="$ac_help
52 --enable-gui use GUI classes"
53 ac_help="$ac_help
54 --with-gtk use GTK+"
55 ac_help="$ac_help
56 --with-motif use Motif/Lesstif"
57 ac_help="$ac_help
58 --with-wine use WINE"
59 ac_help="$ac_help
60 --with-cygwin use Cygwin for MS-Windows"
61 ac_help="$ac_help
62 --with-mingw use GCC Minimal MS-Windows"
63 ac_help="$ac_help
64 --with-pm use OS/2 Presentation Manager"
65 ac_help="$ac_help
66 --with-gtk-prefix=PFX Prefix where GTK is installed"
67 ac_help="$ac_help
68 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
69 ac_help="$ac_help
70 --with-libpng use libpng (PNG image format)"
71 ac_help="$ac_help
72 --with-libjpeg use libjpeg (JPEG file format)"
73 ac_help="$ac_help
74 --with-libtiff use libtiff (TIFF file format)"
75 ac_help="$ac_help
76 --with-opengl use OpenGL (or Mesa)"
77 ac_help="$ac_help
78 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
79 ac_help="$ac_help
80 --with-zlib use zlib for LZW compression"
81 ac_help="$ac_help
82 --with-odbc use the IODBC and wxODBC classes"
83 ac_help="$ac_help
84 --enable-shared create shared library code"
85 ac_help="$ac_help
86 --enable-optimise create optimised code"
87 ac_help="$ac_help
88 --enable-debug same as debug_flag and debug_info"
89 ac_help="$ac_help
90 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
91 ac_help="$ac_help
92 --enable-debug_info create code with debugging information"
93 ac_help="$ac_help
94 --enable-debug_gdb create code with extra GDB debugging information"
95 ac_help="$ac_help
96 --enable-debug_cntxt use wxDebugContext"
97 ac_help="$ac_help
98 --enable-mem_tracing create code with memory tracing"
99 ac_help="$ac_help
100 --enable-profile create code with profiling information"
101 ac_help="$ac_help
102 --enable-no_rtti create code without RTTI information"
103 ac_help="$ac_help
104 --enable-no_exceptions create code without exceptions information"
105 ac_help="$ac_help
106 --enable-permissive compile code disregarding strict ANSI"
107 ac_help="$ac_help
108 --enable-no_deps create code without dependency information"
109 ac_help="$ac_help
110 --enable-intl use internationalization system"
111 ac_help="$ac_help
112 --enable-config use wxConfig (and derived) classes"
113 ac_help="$ac_help
114 --enable-sockets use socket/network classes"
115 ac_help="$ac_help
116 --enable-dialupman use dialup network classes"
117 ac_help="$ac_help
118 --enable-ipc use interprocess communication (wxSocket etc.)"
119 ac_help="$ac_help
120 --enable-apple_ieee use the Apple IEEE codec"
121 ac_help="$ac_help
122 --enable-timedate use date/time classes"
123 ac_help="$ac_help
124 --enable-wave use wxWave class"
125 ac_help="$ac_help
126 --enable-fraction use wxFraction class"
127 ac_help="$ac_help
128 --enable-dynlib use wxLibrary class for DLL loading"
129 ac_help="$ac_help
130 --enable-longlong use wxLongLong class"
131 ac_help="$ac_help
132 --enable-log use logging system"
133 ac_help="$ac_help
134 --enable-streams use wxStream etc classes"
135 ac_help="$ac_help
136 --enable-file use wxFile classes"
137 ac_help="$ac_help
138 --enable-textfile use wxTextFile classes"
139 ac_help="$ac_help
140 --enable-unicode compile wxString with Unicode support"
141 ac_help="$ac_help
142 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
143 ac_help="$ac_help
144 --enable-wxprintfv use wxWindows implementation of vprintf()"
145 ac_help="$ac_help
146 --enable-joystick compile in joystick support (Linux only)"
147 ac_help="$ac_help
148 --enable-std_iostreams use standard C++ stream classes"
149 ac_help="$ac_help
150 --enable-fs_inet use virtual HTTP/FTP filesystems"
151 ac_help="$ac_help
152 --enable-fs_zip use virtual ZIP filesystems"
153 ac_help="$ac_help
154 --enable-zipstream use wxZipInputStream"
155 ac_help="$ac_help
156 --enable-threads use threads"
157 ac_help="$ac_help
158 --enable-serial use class serialization"
159 ac_help="$ac_help
160 --enable-docview use document view architecture"
161 ac_help="$ac_help
162 --enable-help use help (using external browser at present)"
163 ac_help="$ac_help
164 --enable-constraints use layout-constraints system"
165 ac_help="$ac_help
166 --enable-printarch use printing architecture"
167 ac_help="$ac_help
168 --enable-mdi use multiple document interface architecture"
169 ac_help="$ac_help
170 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
171 ac_help="$ac_help
172 --enable-prologio use Prolog IO library"
173 ac_help="$ac_help
174 --enable-resources use wxWindows resources"
175 ac_help="$ac_help
176 --enable-xresources use X resources for save (default for gtk+)"
177 ac_help="$ac_help
178 --enable-clipboard use wxClipboard classes"
179 ac_help="$ac_help
180 --enable-dnd use Drag'n'Drop classes"
181 ac_help="$ac_help
182 --enable-wxtree make wxTree library"
183 ac_help="$ac_help
184 --enable-controls use all usual controls"
185 ac_help="$ac_help
186 --enable-accel use accelerators"
187 ac_help="$ac_help
188 --enable-caret use wxCaret class"
189 ac_help="$ac_help
190 --enable-bmpbutton use wxBitmapButton class"
191 ac_help="$ac_help
192 --enable-checkbox use wxCheckBox class"
193 ac_help="$ac_help
194 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
195 ac_help="$ac_help
196 --enable-choice use wxChoice class"
197 ac_help="$ac_help
198 --enable-combobox use wxComboBox classes"
199 ac_help="$ac_help
200 --enable-gauge use wxGauge class"
201 ac_help="$ac_help
202 --enable-grid use wxGrid class"
203 ac_help="$ac_help
204 --enable-newgrid use new wxGrid class"
205 ac_help="$ac_help
206 --enable-imaglist use wxImageList class"
207 ac_help="$ac_help
208 --enable-listbox use wxListBox class"
209 ac_help="$ac_help
210 --enable-listctrl use wxListCtrl class"
211 ac_help="$ac_help
212 --enable-notebook use wxNotebook class"
213 ac_help="$ac_help
214 --enable-radiobox use wxRadioBox class"
215 ac_help="$ac_help
216 --enable-radiobtn use wxRadioButton class"
217 ac_help="$ac_help
218 --enable-sash use wxSashWindow class"
219 ac_help="$ac_help
220 --enable-scrollbar use wxScrollBar class and scrollable windows"
221 ac_help="$ac_help
222 --enable-slider use wxSlider class"
223 ac_help="$ac_help
224 --enable-spinbtn use wxSpinButton class"
225 ac_help="$ac_help
226 --enable-spinctrl use wxSpinCtrl class"
227 ac_help="$ac_help
228 --enable-splitter use wxSplitterWindow class"
229 ac_help="$ac_help
230 --enable-statbmp use wxStaticBitmap class"
231 ac_help="$ac_help
232 --enable-statbox use wxStaticBox class"
233 ac_help="$ac_help
234 --enable-statline use wxStaticLine class"
235 ac_help="$ac_help
236 --enable-statusbar use wxStatusBar class"
237 ac_help="$ac_help
238 --enable-tabdialog use wxTabControl class"
239 ac_help="$ac_help
240 --enable-toolbar use wxToolBar class"
241 ac_help="$ac_help
242 --enable-tbarnative use native wxToolBar class"
243 ac_help="$ac_help
244 --enable-tbarsmpl use wxToolBarSimple class"
245 ac_help="$ac_help
246 --enable-treectrl use wxTreeCtrl class"
247 ac_help="$ac_help
248 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
249 ac_help="$ac_help
250 --enable-dirdlg use wxDirDialog"
251 ac_help="$ac_help
252 --enable-textdlg use wxTextDialog"
253 ac_help="$ac_help
254 --enable-tipdlg use startup tips"
255 ac_help="$ac_help
256 --enable-progressdlg use wxProgressDialog"
257 ac_help="$ac_help
258 --enable-miniframe use wxMiniFrame class"
259 ac_help="$ac_help
260 --enable-html use wxHTML sub-library"
261 ac_help="$ac_help
262 --enable-tooltips use wxToolTip class"
263 ac_help="$ac_help
264 --enable-splines use spline drawing code"
265 ac_help="$ac_help
266 --enable-validators use wxValidator and derived classes"
267 ac_help="$ac_help
268 --enable-busyinfo use wxBusyInfo"
269 ac_help="$ac_help
270 --enable-gif use gif images (GIF file format)"
271 ac_help="$ac_help
272 --enable-pcx use pcx images (PCX file format)"
273 ac_help="$ac_help
274 --enable-pnm use pnm images (PNM file format)"
275 ac_help="$ac_help
276 --with-x use the X Window System"
277
278 # Initialize some variables set by options.
279 # The variables have the same names as the options, with
280 # dashes changed to underlines.
281 build=NONE
282 cache_file=./config.cache
283 exec_prefix=NONE
284 host=NONE
285 no_create=
286 nonopt=NONE
287 no_recursion=
288 prefix=NONE
289 program_prefix=NONE
290 program_suffix=NONE
291 program_transform_name=s,x,x,
292 silent=
293 site=
294 srcdir=
295 target=NONE
296 verbose=
297 x_includes=NONE
298 x_libraries=NONE
299 bindir='${exec_prefix}/bin'
300 sbindir='${exec_prefix}/sbin'
301 libexecdir='${exec_prefix}/libexec'
302 datadir='${prefix}/share'
303 sysconfdir='${prefix}/etc'
304 sharedstatedir='${prefix}/com'
305 localstatedir='${prefix}/var'
306 libdir='${exec_prefix}/lib'
307 includedir='${prefix}/include'
308 oldincludedir='/usr/include'
309 infodir='${prefix}/info'
310 mandir='${prefix}/man'
311
312 # Initialize some other variables.
313 subdirs=
314 MFLAGS= MAKEFLAGS=
315 SHELL=${CONFIG_SHELL-/bin/sh}
316 # Maximum number of lines to put in a shell here document.
317 ac_max_here_lines=12
318
319 ac_prev=
320 for ac_option
321 do
322
323 # If the previous option needs an argument, assign it.
324 if test -n "$ac_prev"; then
325 eval "$ac_prev=\$ac_option"
326 ac_prev=
327 continue
328 fi
329
330 case "$ac_option" in
331 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
332 *) ac_optarg= ;;
333 esac
334
335 # Accept the important Cygnus configure options, so we can diagnose typos.
336
337 case "$ac_option" in
338
339 -bindir | --bindir | --bindi | --bind | --bin | --bi)
340 ac_prev=bindir ;;
341 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
342 bindir="$ac_optarg" ;;
343
344 -build | --build | --buil | --bui | --bu)
345 ac_prev=build ;;
346 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
347 build="$ac_optarg" ;;
348
349 -cache-file | --cache-file | --cache-fil | --cache-fi \
350 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
351 ac_prev=cache_file ;;
352 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
353 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
354 cache_file="$ac_optarg" ;;
355
356 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
357 ac_prev=datadir ;;
358 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
359 | --da=*)
360 datadir="$ac_optarg" ;;
361
362 -disable-* | --disable-*)
363 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
367 fi
368 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
369 eval "enable_${ac_feature}=no" ;;
370
371 -enable-* | --enable-*)
372 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
376 fi
377 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
378 case "$ac_option" in
379 *=*) ;;
380 *) ac_optarg=yes ;;
381 esac
382 eval "enable_${ac_feature}='$ac_optarg'" ;;
383
384 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
385 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
386 | --exec | --exe | --ex)
387 ac_prev=exec_prefix ;;
388 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
389 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
390 | --exec=* | --exe=* | --ex=*)
391 exec_prefix="$ac_optarg" ;;
392
393 -gas | --gas | --ga | --g)
394 # Obsolete; use --with-gas.
395 with_gas=yes ;;
396
397 -help | --help | --hel | --he)
398 # Omit some internal or obsolete options to make the list less imposing.
399 # This message is too long to be a string in the A/UX 3.1 sh.
400 cat << EOF
401 Usage: configure [options] [host]
402 Options: [defaults in brackets after descriptions]
403 Configuration:
404 --cache-file=FILE cache test results in FILE
405 --help print this message
406 --no-create do not create output files
407 --quiet, --silent do not print \`checking...' messages
408 --version print the version of autoconf that created configure
409 Directory and file names:
410 --prefix=PREFIX install architecture-independent files in PREFIX
411 [$ac_default_prefix]
412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
413 [same as prefix]
414 --bindir=DIR user executables in DIR [EPREFIX/bin]
415 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
416 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
417 --datadir=DIR read-only architecture-independent data in DIR
418 [PREFIX/share]
419 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
420 --sharedstatedir=DIR modifiable architecture-independent data in DIR
421 [PREFIX/com]
422 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
423 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
424 --includedir=DIR C header files in DIR [PREFIX/include]
425 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
426 --infodir=DIR info documentation in DIR [PREFIX/info]
427 --mandir=DIR man documentation in DIR [PREFIX/man]
428 --srcdir=DIR find the sources in DIR [configure dir or ..]
429 --program-prefix=PREFIX prepend PREFIX to installed program names
430 --program-suffix=SUFFIX append SUFFIX to installed program names
431 --program-transform-name=PROGRAM
432 run sed PROGRAM on installed program names
433 EOF
434 cat << EOF
435 Host type:
436 --build=BUILD configure for building on BUILD [BUILD=HOST]
437 --host=HOST configure for HOST [guessed]
438 --target=TARGET configure for TARGET [TARGET=HOST]
439 Features and packages:
440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
444 --x-includes=DIR X include files are in DIR
445 --x-libraries=DIR X library files are in DIR
446 EOF
447 if test -n "$ac_help"; then
448 echo "--enable and --with options recognized:$ac_help"
449 fi
450 exit 0 ;;
451
452 -host | --host | --hos | --ho)
453 ac_prev=host ;;
454 -host=* | --host=* | --hos=* | --ho=*)
455 host="$ac_optarg" ;;
456
457 -includedir | --includedir | --includedi | --included | --include \
458 | --includ | --inclu | --incl | --inc)
459 ac_prev=includedir ;;
460 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
461 | --includ=* | --inclu=* | --incl=* | --inc=*)
462 includedir="$ac_optarg" ;;
463
464 -infodir | --infodir | --infodi | --infod | --info | --inf)
465 ac_prev=infodir ;;
466 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
467 infodir="$ac_optarg" ;;
468
469 -libdir | --libdir | --libdi | --libd)
470 ac_prev=libdir ;;
471 -libdir=* | --libdir=* | --libdi=* | --libd=*)
472 libdir="$ac_optarg" ;;
473
474 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
475 | --libexe | --libex | --libe)
476 ac_prev=libexecdir ;;
477 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
478 | --libexe=* | --libex=* | --libe=*)
479 libexecdir="$ac_optarg" ;;
480
481 -localstatedir | --localstatedir | --localstatedi | --localstated \
482 | --localstate | --localstat | --localsta | --localst \
483 | --locals | --local | --loca | --loc | --lo)
484 ac_prev=localstatedir ;;
485 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
486 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
487 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
488 localstatedir="$ac_optarg" ;;
489
490 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
491 ac_prev=mandir ;;
492 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
493 mandir="$ac_optarg" ;;
494
495 -nfp | --nfp | --nf)
496 # Obsolete; use --without-fp.
497 with_fp=no ;;
498
499 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
500 | --no-cr | --no-c)
501 no_create=yes ;;
502
503 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
504 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
505 no_recursion=yes ;;
506
507 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
508 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
509 | --oldin | --oldi | --old | --ol | --o)
510 ac_prev=oldincludedir ;;
511 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
512 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
513 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
514 oldincludedir="$ac_optarg" ;;
515
516 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
517 ac_prev=prefix ;;
518 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
519 prefix="$ac_optarg" ;;
520
521 -program-prefix | --program-prefix | --program-prefi | --program-pref \
522 | --program-pre | --program-pr | --program-p)
523 ac_prev=program_prefix ;;
524 -program-prefix=* | --program-prefix=* | --program-prefi=* \
525 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
526 program_prefix="$ac_optarg" ;;
527
528 -program-suffix | --program-suffix | --program-suffi | --program-suff \
529 | --program-suf | --program-su | --program-s)
530 ac_prev=program_suffix ;;
531 -program-suffix=* | --program-suffix=* | --program-suffi=* \
532 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
533 program_suffix="$ac_optarg" ;;
534
535 -program-transform-name | --program-transform-name \
536 | --program-transform-nam | --program-transform-na \
537 | --program-transform-n | --program-transform- \
538 | --program-transform | --program-transfor \
539 | --program-transfo | --program-transf \
540 | --program-trans | --program-tran \
541 | --progr-tra | --program-tr | --program-t)
542 ac_prev=program_transform_name ;;
543 -program-transform-name=* | --program-transform-name=* \
544 | --program-transform-nam=* | --program-transform-na=* \
545 | --program-transform-n=* | --program-transform-=* \
546 | --program-transform=* | --program-transfor=* \
547 | --program-transfo=* | --program-transf=* \
548 | --program-trans=* | --program-tran=* \
549 | --progr-tra=* | --program-tr=* | --program-t=*)
550 program_transform_name="$ac_optarg" ;;
551
552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
553 | -silent | --silent | --silen | --sile | --sil)
554 silent=yes ;;
555
556 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
557 ac_prev=sbindir ;;
558 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
559 | --sbi=* | --sb=*)
560 sbindir="$ac_optarg" ;;
561
562 -sharedstatedir | --sharedstatedir | --sharedstatedi \
563 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
564 | --sharedst | --shareds | --shared | --share | --shar \
565 | --sha | --sh)
566 ac_prev=sharedstatedir ;;
567 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
568 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
569 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
570 | --sha=* | --sh=*)
571 sharedstatedir="$ac_optarg" ;;
572
573 -site | --site | --sit)
574 ac_prev=site ;;
575 -site=* | --site=* | --sit=*)
576 site="$ac_optarg" ;;
577
578 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
579 ac_prev=srcdir ;;
580 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
581 srcdir="$ac_optarg" ;;
582
583 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
584 | --syscon | --sysco | --sysc | --sys | --sy)
585 ac_prev=sysconfdir ;;
586 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
587 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
588 sysconfdir="$ac_optarg" ;;
589
590 -target | --target | --targe | --targ | --tar | --ta | --t)
591 ac_prev=target ;;
592 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
593 target="$ac_optarg" ;;
594
595 -v | -verbose | --verbose | --verbos | --verbo | --verb)
596 verbose=yes ;;
597
598 -version | --version | --versio | --versi | --vers)
599 echo "configure generated by autoconf version 2.14"
600 exit 0 ;;
601
602 -with-* | --with-*)
603 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
604 # Reject names that are not valid shell variable names.
605 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
606 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
607 fi
608 ac_package=`echo $ac_package| sed 's/-/_/g'`
609 case "$ac_option" in
610 *=*) ;;
611 *) ac_optarg=yes ;;
612 esac
613 eval "with_${ac_package}='$ac_optarg'" ;;
614
615 -without-* | --without-*)
616 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
617 # Reject names that are not valid shell variable names.
618 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
619 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
620 fi
621 ac_package=`echo $ac_package| sed 's/-/_/g'`
622 eval "with_${ac_package}=no" ;;
623
624 --x)
625 # Obsolete; use --with-x.
626 with_x=yes ;;
627
628 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
629 | --x-incl | --x-inc | --x-in | --x-i)
630 ac_prev=x_includes ;;
631 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
632 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
633 x_includes="$ac_optarg" ;;
634
635 -x-libraries | --x-libraries | --x-librarie | --x-librari \
636 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
637 ac_prev=x_libraries ;;
638 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
639 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
640 x_libraries="$ac_optarg" ;;
641
642 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
643 ;;
644
645 *)
646 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
647 echo "configure: warning: $ac_option: invalid host type" 1>&2
648 fi
649 if test "x$nonopt" != xNONE; then
650 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
651 fi
652 nonopt="$ac_option"
653 ;;
654
655 esac
656 done
657
658 if test -n "$ac_prev"; then
659 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
660 fi
661
662 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
663
664 # File descriptor usage:
665 # 0 standard input
666 # 1 file creation
667 # 2 errors and warnings
668 # 3 some systems may open it to /dev/tty
669 # 4 used on the Kubota Titan
670 # 6 checking for... messages and results
671 # 5 compiler messages saved in config.log
672 if test "$silent" = yes; then
673 exec 6>/dev/null
674 else
675 exec 6>&1
676 fi
677 exec 5>./config.log
678
679 echo "\
680 This file contains any messages produced by compilers while
681 running configure, to aid debugging if configure makes a mistake.
682 " 1>&5
683
684 # Strip out --no-create and --no-recursion so they do not pile up.
685 # Also quote any args containing shell metacharacters.
686 ac_configure_args=
687 for ac_arg
688 do
689 case "$ac_arg" in
690 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
691 | --no-cr | --no-c) ;;
692 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
693 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
694 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
695 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
696 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
697 esac
698 done
699
700 # NLS nuisances.
701 # Only set these to C if already set. These must not be set unconditionally
702 # because not all systems understand e.g. LANG=C (notably SCO).
703 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
704 # Non-C LC_CTYPE values break the ctype check.
705 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
706 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
707 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
708 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
709
710 # confdefs.h avoids OS command line length limits that DEFS can exceed.
711 rm -rf conftest* confdefs.h
712 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
713 echo > confdefs.h
714
715 # A filename unique to this package, relative to the directory that
716 # configure is in, which we can look for to find out if srcdir is correct.
717 ac_unique_file=wx-config.in
718
719 # Find the source files, if location was not specified.
720 if test -z "$srcdir"; then
721 ac_srcdir_defaulted=yes
722 # Try the directory containing this script, then its parent.
723 ac_prog=$0
724 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
725 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
726 srcdir=$ac_confdir
727 if test ! -r $srcdir/$ac_unique_file; then
728 srcdir=..
729 fi
730 else
731 ac_srcdir_defaulted=no
732 fi
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
736 else
737 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
738 fi
739 fi
740 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
741
742 # Prefer explicitly selected file to automatically selected ones.
743 if test -z "$CONFIG_SITE"; then
744 if test "x$prefix" != xNONE; then
745 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
746 else
747 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
748 fi
749 fi
750 for ac_site_file in $CONFIG_SITE; do
751 if test -r "$ac_site_file"; then
752 echo "loading site script $ac_site_file"
753 . "$ac_site_file"
754 fi
755 done
756
757 if test -r "$cache_file"; then
758 echo "loading cache $cache_file"
759 . $cache_file
760 else
761 echo "creating cache $cache_file"
762 > $cache_file
763 fi
764
765 ac_ext=c
766 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
767 ac_cpp='$CPP $CPPFLAGS'
768 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
769 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
770 cross_compiling=$ac_cv_prog_cc_cross
771
772 ac_exeext=
773 ac_objext=o
774 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
775 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
776 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
777 ac_n= ac_c='
778 ' ac_t=' '
779 else
780 ac_n=-n ac_c= ac_t=
781 fi
782 else
783 ac_n= ac_c='\c' ac_t=
784 fi
785
786
787
788 ac_aux_dir=
789 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
790 if test -f $ac_dir/install-sh; then
791 ac_aux_dir=$ac_dir
792 ac_install_sh="$ac_aux_dir/install-sh -c"
793 break
794 elif test -f $ac_dir/install.sh; then
795 ac_aux_dir=$ac_dir
796 ac_install_sh="$ac_aux_dir/install.sh -c"
797 break
798 fi
799 done
800 if test -z "$ac_aux_dir"; then
801 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
802 fi
803 ac_config_guess=$ac_aux_dir/config.guess
804 ac_config_sub=$ac_aux_dir/config.sub
805 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
806
807
808 # Do some error checking and defaulting for the host and target type.
809 # The inputs are:
810 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
811 #
812 # The rules are:
813 # 1. You are not allowed to specify --host, --target, and nonopt at the
814 # same time.
815 # 2. Host defaults to nonopt.
816 # 3. If nonopt is not specified, then host defaults to the current host,
817 # as determined by config.guess.
818 # 4. Target and build default to nonopt.
819 # 5. If nonopt is not specified, then target and build default to host.
820
821 # The aliases save the names the user supplied, while $host etc.
822 # will get canonicalized.
823 case $host---$target---$nonopt in
824 NONE---*---* | *---NONE---* | *---*---NONE) ;;
825 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
826 esac
827
828
829 # Make sure we can run config.sub.
830 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
831 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
832 fi
833
834 echo $ac_n "checking host system type""... $ac_c" 1>&6
835 echo "configure:836: checking host system type" >&5
836
837 host_alias=$host
838 case "$host_alias" in
839 NONE)
840 case $nonopt in
841 NONE)
842 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
843 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
844 fi ;;
845 *) host_alias=$nonopt ;;
846 esac ;;
847 esac
848
849 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
850 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
851 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
852 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
853 echo "$ac_t""$host" 1>&6
854
855 echo $ac_n "checking target system type""... $ac_c" 1>&6
856 echo "configure:857: checking target system type" >&5
857
858 target_alias=$target
859 case "$target_alias" in
860 NONE)
861 case $nonopt in
862 NONE) target_alias=$host_alias ;;
863 *) target_alias=$nonopt ;;
864 esac ;;
865 esac
866
867 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
868 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
869 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
870 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
871 echo "$ac_t""$target" 1>&6
872
873 echo $ac_n "checking build system type""... $ac_c" 1>&6
874 echo "configure:875: checking build system type" >&5
875
876 build_alias=$build
877 case "$build_alias" in
878 NONE)
879 case $nonopt in
880 NONE) build_alias=$host_alias ;;
881 *) build_alias=$nonopt ;;
882 esac ;;
883 esac
884
885 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
886 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
887 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
888 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
889 echo "$ac_t""$build" 1>&6
890
891 test "$host_alias" != "$target_alias" &&
892 test "$program_prefix$program_suffix$program_transform_name" = \
893 NONENONEs,x,x, &&
894 program_prefix=${target_alias}-
895
896
897
898 WX_MAJOR_VERSION_NUMBER=2
899 WX_MINOR_VERSION_NUMBER=1
900 WX_RELEASE_NUMBER=13
901
902 WX_INTERFACE_AGE=0
903 WX_BINARY_AGE=0
904
905 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
906
907 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
908 WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
909 WX_REVISION=$WX_INTERFACE_AGE
910 WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
911
912
913 USE_UNIX=1
914 USE_WIN32=0
915 USE_BEOS=0
916
917 USE_LINUX=
918 USE_SGI=
919 USE_HPUX=
920 USE_SYSV=
921 USE_SVR4=
922 USE_AIX=
923 USE_SUN=
924 USE_SOLARIS=
925 USE_SUNOS=
926 USE_ALPHA=
927 USE_OSF=
928 USE_BSD=
929 USE_FREEBSD=
930 USE_VMS=
931 USE_ULTRIX=
932 USE_CYGWIN=
933 USE_MINGW=
934 USE_DATA_GENERAL=
935
936 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
937
938 ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
939
940 DEFAULT_wxUSE_GTK=0
941 DEFAULT_wxUSE_MOTIF=0
942 DEFAULT_wxUSE_MSW=0
943 DEFAULT_wxUSE_WINE=0
944 DEFAULT_wxUSE_PM=0
945
946 DEFAULT_DEFAULT_wxUSE_GTK=0
947 DEFAULT_DEFAULT_wxUSE_MOTIF=0
948 DEFAULT_DEFAULT_wxUSE_MSW=0
949 DEFAULT_DEFAULT_wxUSE_WINE=0
950 DEFAULT_DEFAULT_wxUSE_PM=0
951
952 case "${host}" in
953 *-hp-hpux* )
954 USE_HPUX=1
955 DEFAULT_DEFAULT_wxUSE_MOTIF=1
956 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
957 cat >> confdefs.h <<\EOF
958 #define __HPUX__ 1
959 EOF
960
961 ;;
962 *-*-linux* )
963 USE_LINUX=1
964 cat >> confdefs.h <<\EOF
965 #define __LINUX__ 1
966 EOF
967
968 TMP=`uname -m`
969 if test "x$TMP" = "xalpha"; then
970 USE_ALPHA=1
971 cat >> confdefs.h <<\EOF
972 #define __ALPHA__ 1
973 EOF
974
975 fi
976 DEFAULT_DEFAULT_wxUSE_GTK=1
977 ;;
978 *-*-irix5* | *-*-irix6* )
979 USE_SGI=1
980 USE_SVR4=1
981 cat >> confdefs.h <<\EOF
982 #define __SGI__ 1
983 EOF
984
985 cat >> confdefs.h <<\EOF
986 #define __SVR4__ 1
987 EOF
988
989 DEFAULT_DEFAULT_wxUSE_MOTIF=1
990 ;;
991 *-*-solaris2* )
992 USE_SUN=1
993 USE_SOLARIS=1
994 USE_SVR4=1
995 cat >> confdefs.h <<\EOF
996 #define __SUN__ 1
997 EOF
998
999 cat >> confdefs.h <<\EOF
1000 #define __SOLARIS__ 1
1001 EOF
1002
1003 cat >> confdefs.h <<\EOF
1004 #define __SVR4__ 1
1005 EOF
1006
1007 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1008 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1009 ;;
1010 *-*-sunos4* )
1011 USE_SUN=1
1012 USE_SUNOS=1
1013 USE_BSD=1
1014 cat >> confdefs.h <<\EOF
1015 #define __SUN__ 1
1016 EOF
1017
1018 cat >> confdefs.h <<\EOF
1019 #define __SUNOS__ 1
1020 EOF
1021
1022 cat >> confdefs.h <<\EOF
1023 #define __BSD__ 1
1024 EOF
1025
1026 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1027 ;;
1028 *-*-freebsd* | *-*-netbsd*)
1029 USE_BSD=1
1030 USE_FREEBSD=1
1031 cat >> confdefs.h <<\EOF
1032 #define __FREEBSD__ 1
1033 EOF
1034
1035 cat >> confdefs.h <<\EOF
1036 #define __BSD__ 1
1037 EOF
1038
1039 DEFAULT_DEFAULT_wxUSE_GTK=1
1040 ;;
1041 *-*-osf* )
1042 USE_ALPHA=1
1043 USE_OSF=1
1044 cat >> confdefs.h <<\EOF
1045 #define __ALPHA__ 1
1046 EOF
1047
1048 cat >> confdefs.h <<\EOF
1049 #define __OSF__ 1
1050 EOF
1051
1052 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1053 ;;
1054 *-*-dgux5* )
1055 USE_ALPHA=1
1056 USE_SVR4=1
1057 cat >> confdefs.h <<\EOF
1058 #define __ALPHA__ 1
1059 EOF
1060
1061 cat >> confdefs.h <<\EOF
1062 #define __SVR4__ 1
1063 EOF
1064
1065 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1066 ;;
1067 *-*-sysv5* )
1068 USE_SYSV=1
1069 USE_SVR4=1
1070 cat >> confdefs.h <<\EOF
1071 #define __SYSV__ 1
1072 EOF
1073
1074 cat >> confdefs.h <<\EOF
1075 #define __SVR4__ 1
1076 EOF
1077
1078 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1079 ;;
1080 *-*-aix* )
1081 USE_AIX=1
1082 USE_SYSV=1
1083 USE_SVR4=1
1084 cat >> confdefs.h <<\EOF
1085 #define __AIX__ 1
1086 EOF
1087
1088 cat >> confdefs.h <<\EOF
1089 #define __SYSV__ 1
1090 EOF
1091
1092 cat >> confdefs.h <<\EOF
1093 #define __SVR4__ 1
1094 EOF
1095
1096 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1097 ;;
1098
1099 *-*-cygwin32* | *-*-mingw32* )
1100 USE_UNIX=0
1101 USE_WIN32=1
1102 cat >> confdefs.h <<\EOF
1103 #define __WIN32__ 1
1104 EOF
1105
1106 cat >> confdefs.h <<\EOF
1107 #define __WIN95__ 1
1108 EOF
1109
1110 cat >> confdefs.h <<\EOF
1111 #define __WINDOWS__ 1
1112 EOF
1113
1114 cat >> confdefs.h <<\EOF
1115 #define __GNUWIN32__ 1
1116 EOF
1117
1118 cat >> confdefs.h <<\EOF
1119 #define STRICT 1
1120 EOF
1121
1122 cat >> confdefs.h <<\EOF
1123 #define WINVER 0x0400
1124 EOF
1125
1126 DEFAULT_DEFAULT_wxUSE_MSW=1
1127 ;;
1128
1129 *-pc-os2_emx )
1130 cat >> confdefs.h <<\EOF
1131 #define __EMX__ 1
1132 EOF
1133
1134 DEFAULT_DEFAULT_wxUSE_PM=1
1135 ;;
1136
1137 *-*-beos* )
1138 USE_BEOS=1
1139 cat >> confdefs.h <<\EOF
1140 #define __BEOS__ 1
1141 EOF
1142
1143 ;;
1144
1145 *)
1146 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1147 esac
1148
1149 if test "$USE_UNIX" = 1 ; then
1150 wxUSE_UNIX=yes
1151 cat >> confdefs.h <<\EOF
1152 #define __UNIX__ 1
1153 EOF
1154
1155
1156 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1157 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1158 fi
1159
1160 if test "$USE_BEOS" = 1; then
1161 SRC_SUBDIRS="$SRC_SUBDIRS be"
1162 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1163 fi
1164
1165 if test "$USE_LINUX" = 1; then
1166 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1167 echo "configure:1168: checking for gettext in -lc" >&5
1168 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1171 else
1172 ac_save_LIBS="$LIBS"
1173 LIBS="-lc $LIBS"
1174 cat > conftest.$ac_ext <<EOF
1175 #line 1176 "configure"
1176 #include "confdefs.h"
1177 /* Override any gcc2 internal prototype to avoid an error. */
1178 /* We use char because int might match the return type of a gcc2
1179 builtin and then its argument prototype would still apply. */
1180 char gettext();
1181
1182 int main() {
1183 gettext()
1184 ; return 0; }
1185 EOF
1186 if { (eval echo configure:1187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1187 rm -rf conftest*
1188 eval "ac_cv_lib_$ac_lib_var=yes"
1189 else
1190 echo "configure: failed program was:" >&5
1191 cat conftest.$ac_ext >&5
1192 rm -rf conftest*
1193 eval "ac_cv_lib_$ac_lib_var=no"
1194 fi
1195 rm -f conftest*
1196 LIBS="$ac_save_LIBS"
1197
1198 fi
1199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1200 echo "$ac_t""yes" 1>&6
1201 cat >> confdefs.h <<\EOF
1202 #define wxHAVE_GLIBC2 1
1203 EOF
1204
1205 else
1206 echo "$ac_t""no" 1>&6
1207 fi
1208
1209 fi
1210
1211
1212
1213
1214 wx_arg_cache_file="configarg.cache"
1215 echo "loading argument cache $wx_arg_cache_file"
1216 rm -f ${wx_arg_cache_file}.tmp
1217 touch ${wx_arg_cache_file}.tmp
1218 touch ${wx_arg_cache_file}
1219
1220
1221 DEBUG_CONFIGURE=0
1222 if test $DEBUG_CONFIGURE = 1; then
1223 DEFAULT_wxUSE_THREADS=yes
1224
1225 DEFAULT_wxUSE_SHARED=yes
1226 DEFAULT_wxUSE_OPTIMISE=yes
1227 DEFAULT_wxUSE_PROFILE=no
1228 DEFAULT_wxUSE_NO_DEPS=no
1229 DEFAULT_wxUSE_NO_RTTI=no
1230 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1231 DEFAULT_wxUSE_PERMISSIVE=no
1232 DEFAULT_wxUSE_DEBUG_FLAG=yes
1233 DEFAULT_wxUSE_DEBUG_INFO=yes
1234 DEFAULT_wxUSE_DEBUG_GDB=yes
1235 DEFAULT_wxUSE_MEM_TRACING=no
1236 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1237 DEFAULT_wxUSE_DMALLOC=no
1238 DEFAULT_wxUSE_APPLE_IEEE=no
1239
1240 DEFAULT_wxUSE_LOG=yes
1241
1242 DEFAULT_wxUSE_GUI=yes
1243
1244 DEFAULT_wxUSE_ZLIB=no
1245 DEFAULT_wxUSE_LIBPNG=no
1246 DEFAULT_wxUSE_LIBJPEG=no
1247 DEFAULT_wxUSE_LIBTIFF=no
1248 DEFAULT_wxUSE_ODBC=no
1249
1250 DEFAULT_wxUSE_STD_IOSTREAM=no
1251 DEFAULT_wxUSE_FILE=no
1252 DEFAULT_wxUSE_TEXTFILE=no
1253 DEFAULT_wxUSE_TIMEDATE=no
1254 DEFAULT_wxUSE_WAVE=no
1255 DEFAULT_wxUSE_INTL=no
1256 DEFAULT_wxUSE_CONFIG=no
1257 DEFAULT_wxUSE_STREAMS=no
1258 DEFAULT_wxUSE_SOCKETS=no
1259 DEFAULT_wxUSE_DIALUP_MANAGER=no
1260 DEFAULT_wxUSE_SERIAL=no
1261 DEFAULT_wxUSE_JOYSTICK=no
1262 DEFAULT_wxUSE_DYNLIB_CLASS=no
1263 DEFAULT_wxUSE_LONGLONG=no
1264
1265 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1266 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1267 DEFAULT_wxUSE_POSTSCRIPT=no
1268
1269 DEFAULT_wxUSE_X_RESOURCES=no
1270 DEFAULT_wxUSE_CLIPBOARD=no
1271 DEFAULT_wxUSE_TOOLTIPS=no
1272 DEFAULT_wxUSE_DRAG_AND_DROP=no
1273 DEFAULT_wxUSE_SPLINES=no
1274
1275 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1276 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1277 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1278
1279 DEFAULT_wxUSE_PROLOGIO=no
1280 DEFAULT_wxUSE_RESOURCES=no
1281 DEFAULT_wxUSE_CONSTRAINTS=no
1282 DEFAULT_wxUSE_IPC=no
1283 DEFAULT_wxUSE_HELP=no
1284 DEFAULT_wxUSE_WXTREE=no
1285 DEFAULT_wxUSE_METAFILE=no
1286
1287 DEFAULT_wxUSE_COMMONDLGS=no
1288 DEFAULT_wxUSE_DIRDLG=no
1289 DEFAULT_wxUSE_TEXTDLG=no
1290 DEFAULT_wxUSE_STARTUP_TIPS=no
1291 DEFAULT_wxUSE_PROGRESSDLG=no
1292 DEFAULT_wxUSE_MINIFRAME=no
1293 DEFAULT_wxUSE_HTML=no
1294 DEFAULT_wxUSE_FS_INET=no
1295 DEFAULT_wxUSE_FS_ZIP=no
1296 DEFAULT_wxUSE_BUSYINFO=no
1297 DEFAULT_wxUSE_ZIPSTREAM=no
1298 DEFAULT_wxUSE_VALIDATORS=yes
1299
1300 DEFAULT_wxUSE_ACCEL=no
1301 DEFAULT_wxUSE_CARET=no
1302 DEFAULT_wxUSE_BMPBUTTON=no
1303 DEFAULT_wxUSE_CHECKBOX=no
1304 DEFAULT_wxUSE_CHECKLST=no
1305 DEFAULT_wxUSE_CHOICE=yes
1306 DEFAULT_wxUSE_COMBOBOX=no
1307 DEFAULT_wxUSE_GAUGE=no
1308 DEFAULT_wxUSE_GRID=no
1309 DEFAULT_wxUSE_NEW_GRID=no
1310 DEFAULT_wxUSE_IMAGLIST=no
1311 DEFAULT_wxUSE_LISTBOX=no
1312 DEFAULT_wxUSE_LISTCTRL=no
1313 DEFAULT_wxUSE_NOTEBOOK=no
1314 DEFAULT_wxUSE_RADIOBOX=no
1315 DEFAULT_wxUSE_RADIOBTN=no
1316 DEFAULT_wxUSE_SASH=no
1317 DEFAULT_wxUSE_SCROLLBAR=no
1318 DEFAULT_wxUSE_SLIDER=no
1319 DEFAULT_wxUSE_SPINBTN=no
1320 DEFAULT_wxUSE_SPINCTRL=no
1321 DEFAULT_wxUSE_SPLITTER=no
1322 DEFAULT_wxUSE_STATBMP=no
1323 DEFAULT_wxUSE_STATBOX=no
1324 DEFAULT_wxUSE_STATLINE=no
1325 DEFAULT_wxUSE_STATUSBAR=yes
1326 DEFAULT_wxUSE_TABDIALOG=no
1327 DEFAULT_wxUSE_TOOLBAR=no
1328 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1329 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1330 DEFAULT_wxUSE_TREECTRL=no
1331
1332 DEFAULT_wxUSE_UNICODE=no
1333 DEFAULT_wxUSE_WCSRTOMBS=no
1334
1335 DEFAULT_wxUSE_GIF=no
1336 DEFAULT_wxUSE_PCX=no
1337 DEFAULT_wxUSE_PNM=no
1338 else
1339 DEFAULT_wxUSE_THREADS=yes
1340
1341 DEFAULT_wxUSE_SHARED=yes
1342 DEFAULT_wxUSE_OPTIMISE=yes
1343 DEFAULT_wxUSE_PROFILE=no
1344 DEFAULT_wxUSE_NO_DEPS=no
1345 DEFAULT_wxUSE_NO_RTTI=no
1346 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1347 DEFAULT_wxUSE_PERMISSIVE=no
1348 DEFAULT_wxUSE_DEBUG_FLAG=no
1349 DEFAULT_wxUSE_DEBUG_INFO=no
1350 DEFAULT_wxUSE_DEBUG_GDB=no
1351 DEFAULT_wxUSE_MEM_TRACING=no
1352 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1353 DEFAULT_wxUSE_DMALLOC=no
1354 DEFAULT_wxUSE_APPLE_IEEE=yes
1355
1356 DEFAULT_wxUSE_LOG=yes
1357
1358 DEFAULT_wxUSE_GUI=yes
1359
1360 DEFAULT_wxUSE_ZLIB=yes
1361 DEFAULT_wxUSE_LIBPNG=yes
1362 DEFAULT_wxUSE_LIBJPEG=yes
1363 DEFAULT_wxUSE_LIBTIFF=yes
1364 DEFAULT_wxUSE_ODBC=yes
1365
1366 DEFAULT_wxUSE_STD_IOSTREAM=no
1367 DEFAULT_wxUSE_FILE=yes
1368 DEFAULT_wxUSE_TEXTFILE=yes
1369 DEFAULT_wxUSE_TIMEDATE=yes
1370 DEFAULT_wxUSE_WAVE=no
1371 DEFAULT_wxUSE_INTL=yes
1372 DEFAULT_wxUSE_CONFIG=yes
1373 DEFAULT_wxUSE_STREAMS=yes
1374 DEFAULT_wxUSE_SOCKETS=yes
1375 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1376 DEFAULT_wxUSE_SERIAL=yes
1377 DEFAULT_wxUSE_JOYSTICK=yes
1378 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1379 DEFAULT_wxUSE_LONGLONG=yes
1380
1381 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1382 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1383 DEFAULT_wxUSE_POSTSCRIPT=yes
1384
1385 DEFAULT_wxUSE_X_RESOURCES=no
1386 DEFAULT_wxUSE_CLIPBOARD=yes
1387 DEFAULT_wxUSE_TOOLTIPS=yes
1388 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1389 DEFAULT_wxUSE_SPLINES=yes
1390
1391 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1392 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1393 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1394
1395 DEFAULT_wxUSE_PROLOGIO=yes
1396 DEFAULT_wxUSE_RESOURCES=yes
1397 DEFAULT_wxUSE_CONSTRAINTS=yes
1398 DEFAULT_wxUSE_IPC=yes
1399 DEFAULT_wxUSE_HELP=yes
1400 DEFAULT_wxUSE_WXTREE=yes
1401 DEFAULT_wxUSE_METAFILE=yes
1402
1403 DEFAULT_wxUSE_COMMONDLGS=yes
1404 DEFAULT_wxUSE_DIRDLG=yes
1405 DEFAULT_wxUSE_TEXTDLG=yes
1406 DEFAULT_wxUSE_STARTUP_TIPS=yes
1407 DEFAULT_wxUSE_PROGRESSDLG=yes
1408 DEFAULT_wxUSE_MINIFRAME=yes
1409 DEFAULT_wxUSE_HTML=yes
1410 DEFAULT_wxUSE_FS_INET=yes
1411 DEFAULT_wxUSE_FS_ZIP=yes
1412 DEFAULT_wxUSE_BUSYINFO=yes
1413 DEFAULT_wxUSE_ZIPSTREAM=yes
1414 DEFAULT_wxUSE_VALIDATORS=yes
1415
1416 DEFAULT_wxUSE_ACCEL=yes
1417 DEFAULT_wxUSE_CARET=yes
1418 DEFAULT_wxUSE_BMPBUTTON=yes
1419 DEFAULT_wxUSE_CHECKBOX=yes
1420 DEFAULT_wxUSE_CHECKLST=yes
1421 DEFAULT_wxUSE_CHOICE=yes
1422 DEFAULT_wxUSE_COMBOBOX=yes
1423 DEFAULT_wxUSE_GAUGE=yes
1424 DEFAULT_wxUSE_GRID=yes
1425 DEFAULT_wxUSE_NEW_GRID=no
1426 DEFAULT_wxUSE_IMAGLIST=yes
1427 DEFAULT_wxUSE_LISTBOX=yes
1428 DEFAULT_wxUSE_LISTCTRL=yes
1429 DEFAULT_wxUSE_NOTEBOOK=yes
1430 DEFAULT_wxUSE_RADIOBOX=yes
1431 DEFAULT_wxUSE_RADIOBTN=yes
1432 DEFAULT_wxUSE_SASH=yes
1433 DEFAULT_wxUSE_SCROLLBAR=yes
1434 DEFAULT_wxUSE_SLIDER=yes
1435 DEFAULT_wxUSE_SPINBTN=yes
1436 DEFAULT_wxUSE_SPINCTRL=yes
1437 DEFAULT_wxUSE_SPLITTER=yes
1438 DEFAULT_wxUSE_STATBMP=yes
1439 DEFAULT_wxUSE_STATBOX=yes
1440 DEFAULT_wxUSE_STATLINE=yes
1441 DEFAULT_wxUSE_STATUSBAR=yes
1442 DEFAULT_wxUSE_TABDIALOG=no
1443 DEFAULT_wxUSE_TOOLBAR=yes
1444 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1445 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1446 DEFAULT_wxUSE_TREECTRL=yes
1447
1448 DEFAULT_wxUSE_UNICODE=no
1449 DEFAULT_wxUSE_WCSRTOMBS=no
1450
1451 DEFAULT_wxUSE_GIF=yes
1452 DEFAULT_wxUSE_PCX=yes
1453 DEFAULT_wxUSE_PNM=yes
1454 fi
1455
1456
1457
1458 for toolkit in `echo $ALL_TOOLKITS`; do
1459 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1460 if test "x$LINE" != x ; then
1461 has_toolkit_in_cache=1
1462 eval "DEFAULT_$LINE"
1463 eval "CACHE_$toolkit=1"
1464 fi
1465 done
1466
1467
1468
1469 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1470 echo "configure:1471: checking "for --enable-gui"" >&5
1471 no_cache=0
1472 # Check whether --enable-gui or --disable-gui was given.
1473 if test "${enable_gui+set}" = set; then
1474 enableval="$enable_gui"
1475
1476 if test "$enableval" = yes; then
1477 ac_cv_use_gui='wxUSE_GUI=yes'
1478 else
1479 ac_cv_use_gui='wxUSE_GUI=no'
1480 fi
1481
1482 else
1483
1484 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1485 if test "x$LINE" != x ; then
1486 eval "DEFAULT_$LINE"
1487 else
1488 no_cache=1
1489 fi
1490
1491 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1492
1493 fi
1494
1495
1496 eval "$ac_cv_use_gui"
1497 if test "$no_cache" != 1; then
1498 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1499 fi
1500
1501 if test "$wxUSE_GUI" = yes; then
1502 echo "$ac_t""yes" 1>&6
1503 else
1504 echo "$ac_t""no" 1>&6
1505 fi
1506
1507
1508 if test "$wxUSE_GUI" = "yes"; then
1509
1510 # Check whether --with-gtk or --without-gtk was given.
1511 if test "${with_gtk+set}" = set; then
1512 withval="$with_gtk"
1513 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1514 fi
1515
1516 # Check whether --with-motif or --without-motif was given.
1517 if test "${with_motif+set}" = set; then
1518 withval="$with_motif"
1519 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1520 fi
1521
1522 # Check whether --with-wine or --without-wine was given.
1523 if test "${with_wine+set}" = set; then
1524 withval="$with_wine"
1525 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1526 fi
1527
1528 # Check whether --with-cygwin or --without-cygwin was given.
1529 if test "${with_cygwin+set}" = set; then
1530 withval="$with_cygwin"
1531 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1532 fi
1533
1534 # Check whether --with-mingw or --without-mingw was given.
1535 if test "${with_mingw+set}" = set; then
1536 withval="$with_mingw"
1537 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1538 fi
1539
1540 # Check whether --with-pm or --without-pm was given.
1541 if test "${with_pm+set}" = set; then
1542 withval="$with_pm"
1543 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1544 fi
1545
1546
1547 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1548 if test "${with_gtk_prefix+set}" = set; then
1549 withval="$with_gtk_prefix"
1550 gtk_config_prefix="$withval"
1551 else
1552 gtk_config_prefix=""
1553 fi
1554
1555 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1556 if test "${with_gtk_exec_prefix+set}" = set; then
1557 withval="$with_gtk_exec_prefix"
1558 gtk_config_exec_prefix="$withval"
1559 else
1560 gtk_config_exec_prefix=""
1561 fi
1562
1563
1564
1565 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1566 echo "configure:1567: checking "for --with-libpng"" >&5
1567 no_cache=0
1568 # Check whether --with-libpng or --without-libpng was given.
1569 if test "${with_libpng+set}" = set; then
1570 withval="$with_libpng"
1571
1572 if test "$withval" = yes; then
1573 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1574 else
1575 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1576 fi
1577
1578 else
1579
1580 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1581 if test "x$LINE" != x ; then
1582 eval "DEFAULT_$LINE"
1583 else
1584 no_cache=1
1585 fi
1586
1587 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1588
1589 fi
1590
1591
1592 eval "$ac_cv_use_libpng"
1593 if test "$no_cache" != 1; then
1594 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1595 fi
1596
1597 if test "$wxUSE_LIBPNG" = yes; then
1598 echo "$ac_t""yes" 1>&6
1599 else
1600 echo "$ac_t""no" 1>&6
1601 fi
1602
1603
1604 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1605 echo "configure:1606: checking "for --with-libjpeg"" >&5
1606 no_cache=0
1607 # Check whether --with-libjpeg or --without-libjpeg was given.
1608 if test "${with_libjpeg+set}" = set; then
1609 withval="$with_libjpeg"
1610
1611 if test "$withval" = yes; then
1612 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1613 else
1614 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1615 fi
1616
1617 else
1618
1619 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1620 if test "x$LINE" != x ; then
1621 eval "DEFAULT_$LINE"
1622 else
1623 no_cache=1
1624 fi
1625
1626 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1627
1628 fi
1629
1630
1631 eval "$ac_cv_use_libjpeg"
1632 if test "$no_cache" != 1; then
1633 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1634 fi
1635
1636 if test "$wxUSE_LIBJPEG" = yes; then
1637 echo "$ac_t""yes" 1>&6
1638 else
1639 echo "$ac_t""no" 1>&6
1640 fi
1641
1642
1643 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1644 echo "configure:1645: checking "for --with-libtiff"" >&5
1645 no_cache=0
1646 # Check whether --with-libtiff or --without-libtiff was given.
1647 if test "${with_libtiff+set}" = set; then
1648 withval="$with_libtiff"
1649
1650 if test "$withval" = yes; then
1651 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1652 else
1653 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1654 fi
1655
1656 else
1657
1658 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1659 if test "x$LINE" != x ; then
1660 eval "DEFAULT_$LINE"
1661 else
1662 no_cache=1
1663 fi
1664
1665 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1666
1667 fi
1668
1669
1670 eval "$ac_cv_use_libtiff"
1671 if test "$no_cache" != 1; then
1672 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1673 fi
1674
1675 if test "$wxUSE_LIBTIFF" = yes; then
1676 echo "$ac_t""yes" 1>&6
1677 else
1678 echo "$ac_t""no" 1>&6
1679 fi
1680
1681
1682 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1683 echo "configure:1684: checking "for --with-opengl"" >&5
1684 no_cache=0
1685 # Check whether --with-opengl or --without-opengl was given.
1686 if test "${with_opengl+set}" = set; then
1687 withval="$with_opengl"
1688
1689 if test "$withval" = yes; then
1690 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1691 else
1692 ac_cv_use_opengl='wxUSE_OPENGL=no'
1693 fi
1694
1695 else
1696
1697 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1698 if test "x$LINE" != x ; then
1699 eval "DEFAULT_$LINE"
1700 else
1701 no_cache=1
1702 fi
1703
1704 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1705
1706 fi
1707
1708
1709 eval "$ac_cv_use_opengl"
1710 if test "$no_cache" != 1; then
1711 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1712 fi
1713
1714 if test "$wxUSE_OPENGL" = yes; then
1715 echo "$ac_t""yes" 1>&6
1716 else
1717 echo "$ac_t""no" 1>&6
1718 fi
1719
1720
1721 fi
1722
1723
1724 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1725 echo "configure:1726: checking "for --with-dmalloc"" >&5
1726 no_cache=0
1727 # Check whether --with-dmalloc or --without-dmalloc was given.
1728 if test "${with_dmalloc+set}" = set; then
1729 withval="$with_dmalloc"
1730
1731 if test "$withval" = yes; then
1732 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1733 else
1734 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1735 fi
1736
1737 else
1738
1739 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1740 if test "x$LINE" != x ; then
1741 eval "DEFAULT_$LINE"
1742 else
1743 no_cache=1
1744 fi
1745
1746 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1747
1748 fi
1749
1750
1751 eval "$ac_cv_use_dmalloc"
1752 if test "$no_cache" != 1; then
1753 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1754 fi
1755
1756 if test "$wxUSE_DMALLOC" = yes; then
1757 echo "$ac_t""yes" 1>&6
1758 else
1759 echo "$ac_t""no" 1>&6
1760 fi
1761
1762
1763 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1764 echo "configure:1765: checking "for --with-zlib"" >&5
1765 no_cache=0
1766 # Check whether --with-zlib or --without-zlib was given.
1767 if test "${with_zlib+set}" = set; then
1768 withval="$with_zlib"
1769
1770 if test "$withval" = yes; then
1771 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1772 else
1773 ac_cv_use_zlib='wxUSE_ZLIB=no'
1774 fi
1775
1776 else
1777
1778 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1779 if test "x$LINE" != x ; then
1780 eval "DEFAULT_$LINE"
1781 else
1782 no_cache=1
1783 fi
1784
1785 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1786
1787 fi
1788
1789
1790 eval "$ac_cv_use_zlib"
1791 if test "$no_cache" != 1; then
1792 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1793 fi
1794
1795 if test "$wxUSE_ZLIB" = yes; then
1796 echo "$ac_t""yes" 1>&6
1797 else
1798 echo "$ac_t""no" 1>&6
1799 fi
1800
1801
1802 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1803 echo "configure:1804: checking "for --with-odbc"" >&5
1804 no_cache=0
1805 # Check whether --with-odbc or --without-odbc was given.
1806 if test "${with_odbc+set}" = set; then
1807 withval="$with_odbc"
1808
1809 if test "$withval" = yes; then
1810 ac_cv_use_odbc='wxUSE_ODBC=yes'
1811 else
1812 ac_cv_use_odbc='wxUSE_ODBC=no'
1813 fi
1814
1815 else
1816
1817 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1818 if test "x$LINE" != x ; then
1819 eval "DEFAULT_$LINE"
1820 else
1821 no_cache=1
1822 fi
1823
1824 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1825
1826 fi
1827
1828
1829 eval "$ac_cv_use_odbc"
1830 if test "$no_cache" != 1; then
1831 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1832 fi
1833
1834 if test "$wxUSE_ODBC" = yes; then
1835 echo "$ac_t""yes" 1>&6
1836 else
1837 echo "$ac_t""no" 1>&6
1838 fi
1839
1840
1841
1842
1843
1844 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
1845 echo "configure:1846: checking "for --enable-shared"" >&5
1846 no_cache=0
1847 # Check whether --enable-shared or --disable-shared was given.
1848 if test "${enable_shared+set}" = set; then
1849 enableval="$enable_shared"
1850
1851 if test "$enableval" = yes; then
1852 ac_cv_use_shared='wxUSE_SHARED=yes'
1853 else
1854 ac_cv_use_shared='wxUSE_SHARED=no'
1855 fi
1856
1857 else
1858
1859 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1860 if test "x$LINE" != x ; then
1861 eval "DEFAULT_$LINE"
1862 else
1863 no_cache=1
1864 fi
1865
1866 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1867
1868 fi
1869
1870
1871 eval "$ac_cv_use_shared"
1872 if test "$no_cache" != 1; then
1873 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1874 fi
1875
1876 if test "$wxUSE_SHARED" = yes; then
1877 echo "$ac_t""yes" 1>&6
1878 else
1879 echo "$ac_t""no" 1>&6
1880 fi
1881
1882
1883 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
1884 echo "configure:1885: checking "for --enable-optimise"" >&5
1885 no_cache=0
1886 # Check whether --enable-optimise or --disable-optimise was given.
1887 if test "${enable_optimise+set}" = set; then
1888 enableval="$enable_optimise"
1889
1890 if test "$enableval" = yes; then
1891 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1892 else
1893 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1894 fi
1895
1896 else
1897
1898 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1899 if test "x$LINE" != x ; then
1900 eval "DEFAULT_$LINE"
1901 else
1902 no_cache=1
1903 fi
1904
1905 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1906
1907 fi
1908
1909
1910 eval "$ac_cv_use_optimise"
1911 if test "$no_cache" != 1; then
1912 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1913 fi
1914
1915 if test "$wxUSE_OPTIMISE" = yes; then
1916 echo "$ac_t""yes" 1>&6
1917 else
1918 echo "$ac_t""no" 1>&6
1919 fi
1920
1921
1922 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
1923 echo "configure:1924: checking "for --enable-debug"" >&5
1924 no_cache=0
1925 # Check whether --enable-debug or --disable-debug was given.
1926 if test "${enable_debug+set}" = set; then
1927 enableval="$enable_debug"
1928
1929 if test "$enableval" = yes; then
1930 ac_cv_use_debug='wxUSE_DEBUG=yes'
1931 else
1932 ac_cv_use_debug='wxUSE_DEBUG=no'
1933 fi
1934
1935 else
1936
1937 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1938 if test "x$LINE" != x ; then
1939 eval "DEFAULT_$LINE"
1940 else
1941 no_cache=1
1942 fi
1943
1944 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1945
1946 fi
1947
1948
1949 eval "$ac_cv_use_debug"
1950 if test "$no_cache" != 1; then
1951 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1952 fi
1953
1954 if test "$wxUSE_DEBUG" = yes; then
1955 echo "$ac_t""yes" 1>&6
1956 else
1957 echo "$ac_t""no" 1>&6
1958 fi
1959
1960
1961 if test "$wxUSE_DEBUG" = "yes"; then
1962 DEFAULT_wxUSE_DEBUG_FLAG=yes
1963 DEFAULT_wxUSE_DEBUG_INFO=yes
1964 elif test "$wxUSE_DEBUG" = "no"; then
1965 DEFAULT_wxUSE_DEBUG_FLAG=no
1966 DEFAULT_wxUSE_DEBUG_INFO=no
1967 fi
1968
1969
1970 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
1971 echo "configure:1972: checking "for --enable-debug_flag"" >&5
1972 no_cache=0
1973 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1974 if test "${enable_debug_flag+set}" = set; then
1975 enableval="$enable_debug_flag"
1976
1977 if test "$enableval" = yes; then
1978 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1979 else
1980 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1981 fi
1982
1983 else
1984
1985 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1986 if test "x$LINE" != x ; then
1987 eval "DEFAULT_$LINE"
1988 else
1989 no_cache=1
1990 fi
1991
1992 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
1993
1994 fi
1995
1996
1997 eval "$ac_cv_use_debug_flag"
1998 if test "$no_cache" != 1; then
1999 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2000 fi
2001
2002 if test "$wxUSE_DEBUG_FLAG" = yes; then
2003 echo "$ac_t""yes" 1>&6
2004 else
2005 echo "$ac_t""no" 1>&6
2006 fi
2007
2008
2009 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
2010 echo "configure:2011: checking "for --enable-debug_info"" >&5
2011 no_cache=0
2012 # Check whether --enable-debug_info or --disable-debug_info was given.
2013 if test "${enable_debug_info+set}" = set; then
2014 enableval="$enable_debug_info"
2015
2016 if test "$enableval" = yes; then
2017 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2018 else
2019 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2020 fi
2021
2022 else
2023
2024 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2025 if test "x$LINE" != x ; then
2026 eval "DEFAULT_$LINE"
2027 else
2028 no_cache=1
2029 fi
2030
2031 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2032
2033 fi
2034
2035
2036 eval "$ac_cv_use_debug_info"
2037 if test "$no_cache" != 1; then
2038 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2039 fi
2040
2041 if test "$wxUSE_DEBUG_INFO" = yes; then
2042 echo "$ac_t""yes" 1>&6
2043 else
2044 echo "$ac_t""no" 1>&6
2045 fi
2046
2047
2048 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
2049 echo "configure:2050: checking "for --enable-debug_gdb"" >&5
2050 no_cache=0
2051 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2052 if test "${enable_debug_gdb+set}" = set; then
2053 enableval="$enable_debug_gdb"
2054
2055 if test "$enableval" = yes; then
2056 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2057 else
2058 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2059 fi
2060
2061 else
2062
2063 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2064 if test "x$LINE" != x ; then
2065 eval "DEFAULT_$LINE"
2066 else
2067 no_cache=1
2068 fi
2069
2070 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2071
2072 fi
2073
2074
2075 eval "$ac_cv_use_debug_gdb"
2076 if test "$no_cache" != 1; then
2077 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2078 fi
2079
2080 if test "$wxUSE_DEBUG_GDB" = yes; then
2081 echo "$ac_t""yes" 1>&6
2082 else
2083 echo "$ac_t""no" 1>&6
2084 fi
2085
2086
2087 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
2088 echo "configure:2089: checking "for --enable-debug_cntxt"" >&5
2089 no_cache=0
2090 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2091 if test "${enable_debug_cntxt+set}" = set; then
2092 enableval="$enable_debug_cntxt"
2093
2094 if test "$enableval" = yes; then
2095 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2096 else
2097 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2098 fi
2099
2100 else
2101
2102 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2103 if test "x$LINE" != x ; then
2104 eval "DEFAULT_$LINE"
2105 else
2106 no_cache=1
2107 fi
2108
2109 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2110
2111 fi
2112
2113
2114 eval "$ac_cv_use_debug_cntxt"
2115 if test "$no_cache" != 1; then
2116 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2117 fi
2118
2119 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2120 echo "$ac_t""yes" 1>&6
2121 else
2122 echo "$ac_t""no" 1>&6
2123 fi
2124
2125
2126 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
2127 echo "configure:2128: checking "for --enable-mem_tracing"" >&5
2128 no_cache=0
2129 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2130 if test "${enable_mem_tracing+set}" = set; then
2131 enableval="$enable_mem_tracing"
2132
2133 if test "$enableval" = yes; then
2134 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2135 else
2136 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2137 fi
2138
2139 else
2140
2141 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2142 if test "x$LINE" != x ; then
2143 eval "DEFAULT_$LINE"
2144 else
2145 no_cache=1
2146 fi
2147
2148 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2149
2150 fi
2151
2152
2153 eval "$ac_cv_use_mem_tracing"
2154 if test "$no_cache" != 1; then
2155 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2156 fi
2157
2158 if test "$wxUSE_MEM_TRACING" = yes; then
2159 echo "$ac_t""yes" 1>&6
2160 else
2161 echo "$ac_t""no" 1>&6
2162 fi
2163
2164
2165 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
2166 echo "configure:2167: checking "for --enable-profile"" >&5
2167 no_cache=0
2168 # Check whether --enable-profile or --disable-profile was given.
2169 if test "${enable_profile+set}" = set; then
2170 enableval="$enable_profile"
2171
2172 if test "$enableval" = yes; then
2173 ac_cv_use_profile='wxUSE_PROFILE=yes'
2174 else
2175 ac_cv_use_profile='wxUSE_PROFILE=no'
2176 fi
2177
2178 else
2179
2180 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2181 if test "x$LINE" != x ; then
2182 eval "DEFAULT_$LINE"
2183 else
2184 no_cache=1
2185 fi
2186
2187 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2188
2189 fi
2190
2191
2192 eval "$ac_cv_use_profile"
2193 if test "$no_cache" != 1; then
2194 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2195 fi
2196
2197 if test "$wxUSE_PROFILE" = yes; then
2198 echo "$ac_t""yes" 1>&6
2199 else
2200 echo "$ac_t""no" 1>&6
2201 fi
2202
2203
2204 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
2205 echo "configure:2206: checking "for --enable-no_rtti"" >&5
2206 no_cache=0
2207 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2208 if test "${enable_no_rtti+set}" = set; then
2209 enableval="$enable_no_rtti"
2210
2211 if test "$enableval" = yes; then
2212 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2213 else
2214 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2215 fi
2216
2217 else
2218
2219 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2220 if test "x$LINE" != x ; then
2221 eval "DEFAULT_$LINE"
2222 else
2223 no_cache=1
2224 fi
2225
2226 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2227
2228 fi
2229
2230
2231 eval "$ac_cv_use_no_rtti"
2232 if test "$no_cache" != 1; then
2233 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2234 fi
2235
2236 if test "$wxUSE_NO_RTTI" = yes; then
2237 echo "$ac_t""yes" 1>&6
2238 else
2239 echo "$ac_t""no" 1>&6
2240 fi
2241
2242
2243 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
2244 echo "configure:2245: checking "for --enable-no_exceptions"" >&5
2245 no_cache=0
2246 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2247 if test "${enable_no_exceptions+set}" = set; then
2248 enableval="$enable_no_exceptions"
2249
2250 if test "$enableval" = yes; then
2251 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2252 else
2253 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2254 fi
2255
2256 else
2257
2258 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2259 if test "x$LINE" != x ; then
2260 eval "DEFAULT_$LINE"
2261 else
2262 no_cache=1
2263 fi
2264
2265 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2266
2267 fi
2268
2269
2270 eval "$ac_cv_use_no_exceptions"
2271 if test "$no_cache" != 1; then
2272 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2273 fi
2274
2275 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2276 echo "$ac_t""yes" 1>&6
2277 else
2278 echo "$ac_t""no" 1>&6
2279 fi
2280
2281
2282 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
2283 echo "configure:2284: checking "for --enable-permissive"" >&5
2284 no_cache=0
2285 # Check whether --enable-permissive or --disable-permissive was given.
2286 if test "${enable_permissive+set}" = set; then
2287 enableval="$enable_permissive"
2288
2289 if test "$enableval" = yes; then
2290 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2291 else
2292 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2293 fi
2294
2295 else
2296
2297 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2298 if test "x$LINE" != x ; then
2299 eval "DEFAULT_$LINE"
2300 else
2301 no_cache=1
2302 fi
2303
2304 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2305
2306 fi
2307
2308
2309 eval "$ac_cv_use_permissive"
2310 if test "$no_cache" != 1; then
2311 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2312 fi
2313
2314 if test "$wxUSE_PERMISSIVE" = yes; then
2315 echo "$ac_t""yes" 1>&6
2316 else
2317 echo "$ac_t""no" 1>&6
2318 fi
2319
2320
2321 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
2322 echo "configure:2323: checking "for --enable-no_deps"" >&5
2323 no_cache=0
2324 # Check whether --enable-no_deps or --disable-no_deps was given.
2325 if test "${enable_no_deps+set}" = set; then
2326 enableval="$enable_no_deps"
2327
2328 if test "$enableval" = yes; then
2329 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2330 else
2331 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2332 fi
2333
2334 else
2335
2336 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2337 if test "x$LINE" != x ; then
2338 eval "DEFAULT_$LINE"
2339 else
2340 no_cache=1
2341 fi
2342
2343 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2344
2345 fi
2346
2347
2348 eval "$ac_cv_use_no_deps"
2349 if test "$no_cache" != 1; then
2350 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2351 fi
2352
2353 if test "$wxUSE_NO_DEPS" = yes; then
2354 echo "$ac_t""yes" 1>&6
2355 else
2356 echo "$ac_t""no" 1>&6
2357 fi
2358
2359
2360
2361
2362 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
2363 echo "configure:2364: checking "for --enable-intl"" >&5
2364 no_cache=0
2365 # Check whether --enable-intl or --disable-intl was given.
2366 if test "${enable_intl+set}" = set; then
2367 enableval="$enable_intl"
2368
2369 if test "$enableval" = yes; then
2370 ac_cv_use_intl='wxUSE_INTL=yes'
2371 else
2372 ac_cv_use_intl='wxUSE_INTL=no'
2373 fi
2374
2375 else
2376
2377 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2378 if test "x$LINE" != x ; then
2379 eval "DEFAULT_$LINE"
2380 else
2381 no_cache=1
2382 fi
2383
2384 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2385
2386 fi
2387
2388
2389 eval "$ac_cv_use_intl"
2390 if test "$no_cache" != 1; then
2391 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2392 fi
2393
2394 if test "$wxUSE_INTL" = yes; then
2395 echo "$ac_t""yes" 1>&6
2396 else
2397 echo "$ac_t""no" 1>&6
2398 fi
2399
2400
2401 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
2402 echo "configure:2403: checking "for --enable-config"" >&5
2403 no_cache=0
2404 # Check whether --enable-config or --disable-config was given.
2405 if test "${enable_config+set}" = set; then
2406 enableval="$enable_config"
2407
2408 if test "$enableval" = yes; then
2409 ac_cv_use_config='wxUSE_CONFIG=yes'
2410 else
2411 ac_cv_use_config='wxUSE_CONFIG=no'
2412 fi
2413
2414 else
2415
2416 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2417 if test "x$LINE" != x ; then
2418 eval "DEFAULT_$LINE"
2419 else
2420 no_cache=1
2421 fi
2422
2423 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2424
2425 fi
2426
2427
2428 eval "$ac_cv_use_config"
2429 if test "$no_cache" != 1; then
2430 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2431 fi
2432
2433 if test "$wxUSE_CONFIG" = yes; then
2434 echo "$ac_t""yes" 1>&6
2435 else
2436 echo "$ac_t""no" 1>&6
2437 fi
2438
2439
2440 if test "$wxUSE_GUI" = "yes"; then
2441
2442 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
2443 echo "configure:2444: checking "for --enable-sockets"" >&5
2444 no_cache=0
2445 # Check whether --enable-sockets or --disable-sockets was given.
2446 if test "${enable_sockets+set}" = set; then
2447 enableval="$enable_sockets"
2448
2449 if test "$enableval" = yes; then
2450 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2451 else
2452 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2453 fi
2454
2455 else
2456
2457 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2458 if test "x$LINE" != x ; then
2459 eval "DEFAULT_$LINE"
2460 else
2461 no_cache=1
2462 fi
2463
2464 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2465
2466 fi
2467
2468
2469 eval "$ac_cv_use_sockets"
2470 if test "$no_cache" != 1; then
2471 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2472 fi
2473
2474 if test "$wxUSE_SOCKETS" = yes; then
2475 echo "$ac_t""yes" 1>&6
2476 else
2477 echo "$ac_t""no" 1>&6
2478 fi
2479
2480 else
2481 wxUSE_SOCKETS=no
2482 fi
2483
2484
2485 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2486 echo "configure:2487: checking "for --enable-dialupman"" >&5
2487 no_cache=0
2488 # Check whether --enable-dialupman or --disable-dialupman was given.
2489 if test "${enable_dialupman+set}" = set; then
2490 enableval="$enable_dialupman"
2491
2492 if test "$enableval" = yes; then
2493 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2494 else
2495 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2496 fi
2497
2498 else
2499
2500 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2501 if test "x$LINE" != x ; then
2502 eval "DEFAULT_$LINE"
2503 else
2504 no_cache=1
2505 fi
2506
2507 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2508
2509 fi
2510
2511
2512 eval "$ac_cv_use_dialupman"
2513 if test "$no_cache" != 1; then
2514 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2515 fi
2516
2517 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2518 echo "$ac_t""yes" 1>&6
2519 else
2520 echo "$ac_t""no" 1>&6
2521 fi
2522
2523
2524 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2525 echo "configure:2526: checking "for --enable-ipc"" >&5
2526 no_cache=0
2527 # Check whether --enable-ipc or --disable-ipc was given.
2528 if test "${enable_ipc+set}" = set; then
2529 enableval="$enable_ipc"
2530
2531 if test "$enableval" = yes; then
2532 ac_cv_use_ipc='wxUSE_IPC=yes'
2533 else
2534 ac_cv_use_ipc='wxUSE_IPC=no'
2535 fi
2536
2537 else
2538
2539 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2540 if test "x$LINE" != x ; then
2541 eval "DEFAULT_$LINE"
2542 else
2543 no_cache=1
2544 fi
2545
2546 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2547
2548 fi
2549
2550
2551 eval "$ac_cv_use_ipc"
2552 if test "$no_cache" != 1; then
2553 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2554 fi
2555
2556 if test "$wxUSE_IPC" = yes; then
2557 echo "$ac_t""yes" 1>&6
2558 else
2559 echo "$ac_t""no" 1>&6
2560 fi
2561
2562
2563 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
2564 echo "configure:2565: checking "for --enable-apple_ieee"" >&5
2565 no_cache=0
2566 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2567 if test "${enable_apple_ieee+set}" = set; then
2568 enableval="$enable_apple_ieee"
2569
2570 if test "$enableval" = yes; then
2571 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2572 else
2573 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2574 fi
2575
2576 else
2577
2578 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2579 if test "x$LINE" != x ; then
2580 eval "DEFAULT_$LINE"
2581 else
2582 no_cache=1
2583 fi
2584
2585 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2586
2587 fi
2588
2589
2590 eval "$ac_cv_use_apple_ieee"
2591 if test "$no_cache" != 1; then
2592 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2593 fi
2594
2595 if test "$wxUSE_APPLE_IEEE" = yes; then
2596 echo "$ac_t""yes" 1>&6
2597 else
2598 echo "$ac_t""no" 1>&6
2599 fi
2600
2601
2602 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
2603 echo "configure:2604: checking "for --enable-timedate"" >&5
2604 no_cache=0
2605 # Check whether --enable-timedate or --disable-timedate was given.
2606 if test "${enable_timedate+set}" = set; then
2607 enableval="$enable_timedate"
2608
2609 if test "$enableval" = yes; then
2610 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2611 else
2612 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2613 fi
2614
2615 else
2616
2617 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2618 if test "x$LINE" != x ; then
2619 eval "DEFAULT_$LINE"
2620 else
2621 no_cache=1
2622 fi
2623
2624 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2625
2626 fi
2627
2628
2629 eval "$ac_cv_use_timedate"
2630 if test "$no_cache" != 1; then
2631 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2632 fi
2633
2634 if test "$wxUSE_TIMEDATE" = yes; then
2635 echo "$ac_t""yes" 1>&6
2636 else
2637 echo "$ac_t""no" 1>&6
2638 fi
2639
2640
2641 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
2642 echo "configure:2643: checking "for --enable-wave"" >&5
2643 no_cache=0
2644 # Check whether --enable-wave or --disable-wave was given.
2645 if test "${enable_wave+set}" = set; then
2646 enableval="$enable_wave"
2647
2648 if test "$enableval" = yes; then
2649 ac_cv_use_wave='wxUSE_WAVE=yes'
2650 else
2651 ac_cv_use_wave='wxUSE_WAVE=no'
2652 fi
2653
2654 else
2655
2656 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2657 if test "x$LINE" != x ; then
2658 eval "DEFAULT_$LINE"
2659 else
2660 no_cache=1
2661 fi
2662
2663 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2664
2665 fi
2666
2667
2668 eval "$ac_cv_use_wave"
2669 if test "$no_cache" != 1; then
2670 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2671 fi
2672
2673 if test "$wxUSE_WAVE" = yes; then
2674 echo "$ac_t""yes" 1>&6
2675 else
2676 echo "$ac_t""no" 1>&6
2677 fi
2678
2679
2680 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
2681 echo "configure:2682: checking "for --enable-fraction"" >&5
2682 no_cache=0
2683 # Check whether --enable-fraction or --disable-fraction was given.
2684 if test "${enable_fraction+set}" = set; then
2685 enableval="$enable_fraction"
2686
2687 if test "$enableval" = yes; then
2688 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2689 else
2690 ac_cv_use_fraction='wxUSE_FRACTION=no'
2691 fi
2692
2693 else
2694
2695 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2696 if test "x$LINE" != x ; then
2697 eval "DEFAULT_$LINE"
2698 else
2699 no_cache=1
2700 fi
2701
2702 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2703
2704 fi
2705
2706
2707 eval "$ac_cv_use_fraction"
2708 if test "$no_cache" != 1; then
2709 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2710 fi
2711
2712 if test "$wxUSE_FRACTION" = yes; then
2713 echo "$ac_t""yes" 1>&6
2714 else
2715 echo "$ac_t""no" 1>&6
2716 fi
2717
2718
2719 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
2720 echo "configure:2721: checking "for --enable-dynlib"" >&5
2721 no_cache=0
2722 # Check whether --enable-dynlib or --disable-dynlib was given.
2723 if test "${enable_dynlib+set}" = set; then
2724 enableval="$enable_dynlib"
2725
2726 if test "$enableval" = yes; then
2727 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2728 else
2729 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2730 fi
2731
2732 else
2733
2734 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2735 if test "x$LINE" != x ; then
2736 eval "DEFAULT_$LINE"
2737 else
2738 no_cache=1
2739 fi
2740
2741 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2742
2743 fi
2744
2745
2746 eval "$ac_cv_use_dynlib"
2747 if test "$no_cache" != 1; then
2748 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2749 fi
2750
2751 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2752 echo "$ac_t""yes" 1>&6
2753 else
2754 echo "$ac_t""no" 1>&6
2755 fi
2756
2757
2758 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
2759 echo "configure:2760: checking "for --enable-longlong"" >&5
2760 no_cache=0
2761 # Check whether --enable-longlong or --disable-longlong was given.
2762 if test "${enable_longlong+set}" = set; then
2763 enableval="$enable_longlong"
2764
2765 if test "$enableval" = yes; then
2766 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2767 else
2768 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2769 fi
2770
2771 else
2772
2773 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2774 if test "x$LINE" != x ; then
2775 eval "DEFAULT_$LINE"
2776 else
2777 no_cache=1
2778 fi
2779
2780 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2781
2782 fi
2783
2784
2785 eval "$ac_cv_use_longlong"
2786 if test "$no_cache" != 1; then
2787 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2788 fi
2789
2790 if test "$wxUSE_LONGLONG" = yes; then
2791 echo "$ac_t""yes" 1>&6
2792 else
2793 echo "$ac_t""no" 1>&6
2794 fi
2795
2796
2797 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
2798 echo "configure:2799: checking "for --enable-log"" >&5
2799 no_cache=0
2800 # Check whether --enable-log or --disable-log was given.
2801 if test "${enable_log+set}" = set; then
2802 enableval="$enable_log"
2803
2804 if test "$enableval" = yes; then
2805 ac_cv_use_log='wxUSE_LOG=yes'
2806 else
2807 ac_cv_use_log='wxUSE_LOG=no'
2808 fi
2809
2810 else
2811
2812 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2813 if test "x$LINE" != x ; then
2814 eval "DEFAULT_$LINE"
2815 else
2816 no_cache=1
2817 fi
2818
2819 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2820
2821 fi
2822
2823
2824 eval "$ac_cv_use_log"
2825 if test "$no_cache" != 1; then
2826 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2827 fi
2828
2829 if test "$wxUSE_LOG" = yes; then
2830 echo "$ac_t""yes" 1>&6
2831 else
2832 echo "$ac_t""no" 1>&6
2833 fi
2834
2835
2836 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
2837 echo "configure:2838: checking "for --enable-streams"" >&5
2838 no_cache=0
2839 # Check whether --enable-streams or --disable-streams was given.
2840 if test "${enable_streams+set}" = set; then
2841 enableval="$enable_streams"
2842
2843 if test "$enableval" = yes; then
2844 ac_cv_use_streams='wxUSE_STREAMS=yes'
2845 else
2846 ac_cv_use_streams='wxUSE_STREAMS=no'
2847 fi
2848
2849 else
2850
2851 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2852 if test "x$LINE" != x ; then
2853 eval "DEFAULT_$LINE"
2854 else
2855 no_cache=1
2856 fi
2857
2858 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2859
2860 fi
2861
2862
2863 eval "$ac_cv_use_streams"
2864 if test "$no_cache" != 1; then
2865 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2866 fi
2867
2868 if test "$wxUSE_STREAMS" = yes; then
2869 echo "$ac_t""yes" 1>&6
2870 else
2871 echo "$ac_t""no" 1>&6
2872 fi
2873
2874
2875 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
2876 echo "configure:2877: checking "for --enable-file"" >&5
2877 no_cache=0
2878 # Check whether --enable-file or --disable-file was given.
2879 if test "${enable_file+set}" = set; then
2880 enableval="$enable_file"
2881
2882 if test "$enableval" = yes; then
2883 ac_cv_use_file='wxUSE_FILE=yes'
2884 else
2885 ac_cv_use_file='wxUSE_FILE=no'
2886 fi
2887
2888 else
2889
2890 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2891 if test "x$LINE" != x ; then
2892 eval "DEFAULT_$LINE"
2893 else
2894 no_cache=1
2895 fi
2896
2897 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2898
2899 fi
2900
2901
2902 eval "$ac_cv_use_file"
2903 if test "$no_cache" != 1; then
2904 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2905 fi
2906
2907 if test "$wxUSE_FILE" = yes; then
2908 echo "$ac_t""yes" 1>&6
2909 else
2910 echo "$ac_t""no" 1>&6
2911 fi
2912
2913
2914 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
2915 echo "configure:2916: checking "for --enable-textfile"" >&5
2916 no_cache=0
2917 # Check whether --enable-textfile or --disable-textfile was given.
2918 if test "${enable_textfile+set}" = set; then
2919 enableval="$enable_textfile"
2920
2921 if test "$enableval" = yes; then
2922 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2923 else
2924 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2925 fi
2926
2927 else
2928
2929 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2930 if test "x$LINE" != x ; then
2931 eval "DEFAULT_$LINE"
2932 else
2933 no_cache=1
2934 fi
2935
2936 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2937
2938 fi
2939
2940
2941 eval "$ac_cv_use_textfile"
2942 if test "$no_cache" != 1; then
2943 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2944 fi
2945
2946 if test "$wxUSE_TEXTFILE" = yes; then
2947 echo "$ac_t""yes" 1>&6
2948 else
2949 echo "$ac_t""no" 1>&6
2950 fi
2951
2952
2953 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
2954 echo "configure:2955: checking "for --enable-unicode"" >&5
2955 no_cache=0
2956 # Check whether --enable-unicode or --disable-unicode was given.
2957 if test "${enable_unicode+set}" = set; then
2958 enableval="$enable_unicode"
2959
2960 if test "$enableval" = yes; then
2961 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2962 else
2963 ac_cv_use_unicode='wxUSE_UNICODE=no'
2964 fi
2965
2966 else
2967
2968 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2969 if test "x$LINE" != x ; then
2970 eval "DEFAULT_$LINE"
2971 else
2972 no_cache=1
2973 fi
2974
2975 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2976
2977 fi
2978
2979
2980 eval "$ac_cv_use_unicode"
2981 if test "$no_cache" != 1; then
2982 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2983 fi
2984
2985 if test "$wxUSE_UNICODE" = yes; then
2986 echo "$ac_t""yes" 1>&6
2987 else
2988 echo "$ac_t""no" 1>&6
2989 fi
2990
2991
2992 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
2993 echo "configure:2994: checking "for --enable-wcsrtombs"" >&5
2994 no_cache=0
2995 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
2996 if test "${enable_wcsrtombs+set}" = set; then
2997 enableval="$enable_wcsrtombs"
2998
2999 if test "$enableval" = yes; then
3000 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3001 else
3002 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3003 fi
3004
3005 else
3006
3007 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3008 if test "x$LINE" != x ; then
3009 eval "DEFAULT_$LINE"
3010 else
3011 no_cache=1
3012 fi
3013
3014 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3015
3016 fi
3017
3018
3019 eval "$ac_cv_use_wcsrtombs"
3020 if test "$no_cache" != 1; then
3021 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3022 fi
3023
3024 if test "$wxUSE_WCSRTOMBS" = yes; then
3025 echo "$ac_t""yes" 1>&6
3026 else
3027 echo "$ac_t""no" 1>&6
3028 fi
3029
3030
3031 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
3032 echo "configure:3033: checking "for --enable-wxprintfv"" >&5
3033 no_cache=0
3034 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3035 if test "${enable_wxprintfv+set}" = set; then
3036 enableval="$enable_wxprintfv"
3037
3038 if test "$enableval" = yes; then
3039 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3040 else
3041 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3042 fi
3043
3044 else
3045
3046 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3047 if test "x$LINE" != x ; then
3048 eval "DEFAULT_$LINE"
3049 else
3050 no_cache=1
3051 fi
3052
3053 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3054
3055 fi
3056
3057
3058 eval "$ac_cv_use_wxprintfv"
3059 if test "$no_cache" != 1; then
3060 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3061 fi
3062
3063 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3064 echo "$ac_t""yes" 1>&6
3065 else
3066 echo "$ac_t""no" 1>&6
3067 fi
3068
3069
3070 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
3071 echo "configure:3072: checking "for --enable-joystick"" >&5
3072 no_cache=0
3073 # Check whether --enable-joystick or --disable-joystick was given.
3074 if test "${enable_joystick+set}" = set; then
3075 enableval="$enable_joystick"
3076
3077 if test "$enableval" = yes; then
3078 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3079 else
3080 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3081 fi
3082
3083 else
3084
3085 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3086 if test "x$LINE" != x ; then
3087 eval "DEFAULT_$LINE"
3088 else
3089 no_cache=1
3090 fi
3091
3092 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3093
3094 fi
3095
3096
3097 eval "$ac_cv_use_joystick"
3098 if test "$no_cache" != 1; then
3099 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3100 fi
3101
3102 if test "$wxUSE_JOYSTICK" = yes; then
3103 echo "$ac_t""yes" 1>&6
3104 else
3105 echo "$ac_t""no" 1>&6
3106 fi
3107
3108
3109 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3110 echo "configure:3111: checking "for --enable-std_iostreams"" >&5
3111 no_cache=0
3112 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3113 if test "${enable_std_iostreams+set}" = set; then
3114 enableval="$enable_std_iostreams"
3115
3116 if test "$enableval" = yes; then
3117 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3118 else
3119 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3120 fi
3121
3122 else
3123
3124 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3125 if test "x$LINE" != x ; then
3126 eval "DEFAULT_$LINE"
3127 else
3128 no_cache=1
3129 fi
3130
3131 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3132
3133 fi
3134
3135
3136 eval "$ac_cv_use_std_iostreams"
3137 if test "$no_cache" != 1; then
3138 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3139 fi
3140
3141 if test "$wxUSE_STD_IOSTREAM" = yes; then
3142 echo "$ac_t""yes" 1>&6
3143 else
3144 echo "$ac_t""no" 1>&6
3145 fi
3146
3147
3148 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3149 echo "configure:3150: checking "for --enable-fs_inet"" >&5
3150 no_cache=0
3151 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3152 if test "${enable_fs_inet+set}" = set; then
3153 enableval="$enable_fs_inet"
3154
3155 if test "$enableval" = yes; then
3156 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3157 else
3158 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3159 fi
3160
3161 else
3162
3163 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3164 if test "x$LINE" != x ; then
3165 eval "DEFAULT_$LINE"
3166 else
3167 no_cache=1
3168 fi
3169
3170 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3171
3172 fi
3173
3174
3175 eval "$ac_cv_use_fs_inet"
3176 if test "$no_cache" != 1; then
3177 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3178 fi
3179
3180 if test "$wxUSE_FS_INET" = yes; then
3181 echo "$ac_t""yes" 1>&6
3182 else
3183 echo "$ac_t""no" 1>&6
3184 fi
3185
3186
3187 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3188 echo "configure:3189: checking "for --enable-fs_zip"" >&5
3189 no_cache=0
3190 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3191 if test "${enable_fs_zip+set}" = set; then
3192 enableval="$enable_fs_zip"
3193
3194 if test "$enableval" = yes; then
3195 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3196 else
3197 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3198 fi
3199
3200 else
3201
3202 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3203 if test "x$LINE" != x ; then
3204 eval "DEFAULT_$LINE"
3205 else
3206 no_cache=1
3207 fi
3208
3209 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3210
3211 fi
3212
3213
3214 eval "$ac_cv_use_fs_zip"
3215 if test "$no_cache" != 1; then
3216 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3217 fi
3218
3219 if test "$wxUSE_FS_ZIP" = yes; then
3220 echo "$ac_t""yes" 1>&6
3221 else
3222 echo "$ac_t""no" 1>&6
3223 fi
3224
3225
3226 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3227 echo "configure:3228: checking "for --enable-zipstream"" >&5
3228 no_cache=0
3229 # Check whether --enable-zipstream or --disable-zipstream was given.
3230 if test "${enable_zipstream+set}" = set; then
3231 enableval="$enable_zipstream"
3232
3233 if test "$enableval" = yes; then
3234 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3235 else
3236 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3237 fi
3238
3239 else
3240
3241 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3242 if test "x$LINE" != x ; then
3243 eval "DEFAULT_$LINE"
3244 else
3245 no_cache=1
3246 fi
3247
3248 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3249
3250 fi
3251
3252
3253 eval "$ac_cv_use_zipstream"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_ZIPSTREAM" = yes; then
3259 echo "$ac_t""yes" 1>&6
3260 else
3261 echo "$ac_t""no" 1>&6
3262 fi
3263
3264
3265
3266
3267 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3268 echo "configure:3269: checking "for --enable-threads"" >&5
3269 no_cache=0
3270 # Check whether --enable-threads or --disable-threads was given.
3271 if test "${enable_threads+set}" = set; then
3272 enableval="$enable_threads"
3273
3274 if test "$enableval" = yes; then
3275 ac_cv_use_threads='wxUSE_THREADS=yes'
3276 else
3277 ac_cv_use_threads='wxUSE_THREADS=no'
3278 fi
3279
3280 else
3281
3282 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3283 if test "x$LINE" != x ; then
3284 eval "DEFAULT_$LINE"
3285 else
3286 no_cache=1
3287 fi
3288
3289 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3290
3291 fi
3292
3293
3294 eval "$ac_cv_use_threads"
3295 if test "$no_cache" != 1; then
3296 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3297 fi
3298
3299 if test "$wxUSE_THREADS" = yes; then
3300 echo "$ac_t""yes" 1>&6
3301 else
3302 echo "$ac_t""no" 1>&6
3303 fi
3304
3305
3306 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3307 echo "configure:3308: checking "for --enable-serial"" >&5
3308 no_cache=0
3309 # Check whether --enable-serial or --disable-serial was given.
3310 if test "${enable_serial+set}" = set; then
3311 enableval="$enable_serial"
3312
3313 if test "$enableval" = yes; then
3314 ac_cv_use_serial='wxUSE_SERIAL=yes'
3315 else
3316 ac_cv_use_serial='wxUSE_SERIAL=no'
3317 fi
3318
3319 else
3320
3321 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3322 if test "x$LINE" != x ; then
3323 eval "DEFAULT_$LINE"
3324 else
3325 no_cache=1
3326 fi
3327
3328 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3329
3330 fi
3331
3332
3333 eval "$ac_cv_use_serial"
3334 if test "$no_cache" != 1; then
3335 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3336 fi
3337
3338 if test "$wxUSE_SERIAL" = yes; then
3339 echo "$ac_t""yes" 1>&6
3340 else
3341 echo "$ac_t""no" 1>&6
3342 fi
3343
3344
3345 if test "$wxUSE_GUI" = "yes"; then
3346
3347
3348
3349 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3350 echo "configure:3351: checking "for --enable-docview"" >&5
3351 no_cache=0
3352 # Check whether --enable-docview or --disable-docview was given.
3353 if test "${enable_docview+set}" = set; then
3354 enableval="$enable_docview"
3355
3356 if test "$enableval" = yes; then
3357 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3358 else
3359 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3360 fi
3361
3362 else
3363
3364 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3365 if test "x$LINE" != x ; then
3366 eval "DEFAULT_$LINE"
3367 else
3368 no_cache=1
3369 fi
3370
3371 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3372
3373 fi
3374
3375
3376 eval "$ac_cv_use_docview"
3377 if test "$no_cache" != 1; then
3378 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3379 fi
3380
3381 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3382 echo "$ac_t""yes" 1>&6
3383 else
3384 echo "$ac_t""no" 1>&6
3385 fi
3386
3387
3388 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3389 echo "configure:3390: checking "for --enable-help"" >&5
3390 no_cache=0
3391 # Check whether --enable-help or --disable-help was given.
3392 if test "${enable_help+set}" = set; then
3393 enableval="$enable_help"
3394
3395 if test "$enableval" = yes; then
3396 ac_cv_use_help='wxUSE_HELP=yes'
3397 else
3398 ac_cv_use_help='wxUSE_HELP=no'
3399 fi
3400
3401 else
3402
3403 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3404 if test "x$LINE" != x ; then
3405 eval "DEFAULT_$LINE"
3406 else
3407 no_cache=1
3408 fi
3409
3410 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3411
3412 fi
3413
3414
3415 eval "$ac_cv_use_help"
3416 if test "$no_cache" != 1; then
3417 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3418 fi
3419
3420 if test "$wxUSE_HELP" = yes; then
3421 echo "$ac_t""yes" 1>&6
3422 else
3423 echo "$ac_t""no" 1>&6
3424 fi
3425
3426
3427 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3428 echo "configure:3429: checking "for --enable-constraints"" >&5
3429 no_cache=0
3430 # Check whether --enable-constraints or --disable-constraints was given.
3431 if test "${enable_constraints+set}" = set; then
3432 enableval="$enable_constraints"
3433
3434 if test "$enableval" = yes; then
3435 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3436 else
3437 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3438 fi
3439
3440 else
3441
3442 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3443 if test "x$LINE" != x ; then
3444 eval "DEFAULT_$LINE"
3445 else
3446 no_cache=1
3447 fi
3448
3449 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3450
3451 fi
3452
3453
3454 eval "$ac_cv_use_constraints"
3455 if test "$no_cache" != 1; then
3456 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3457 fi
3458
3459 if test "$wxUSE_CONSTRAINTS" = yes; then
3460 echo "$ac_t""yes" 1>&6
3461 else
3462 echo "$ac_t""no" 1>&6
3463 fi
3464
3465
3466 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3467 echo "configure:3468: checking "for --enable-printarch"" >&5
3468 no_cache=0
3469 # Check whether --enable-printarch or --disable-printarch was given.
3470 if test "${enable_printarch+set}" = set; then
3471 enableval="$enable_printarch"
3472
3473 if test "$enableval" = yes; then
3474 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3475 else
3476 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3477 fi
3478
3479 else
3480
3481 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3482 if test "x$LINE" != x ; then
3483 eval "DEFAULT_$LINE"
3484 else
3485 no_cache=1
3486 fi
3487
3488 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3489
3490 fi
3491
3492
3493 eval "$ac_cv_use_printarch"
3494 if test "$no_cache" != 1; then
3495 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3496 fi
3497
3498 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3499 echo "$ac_t""yes" 1>&6
3500 else
3501 echo "$ac_t""no" 1>&6
3502 fi
3503
3504
3505 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3506 echo "configure:3507: checking "for --enable-mdi"" >&5
3507 no_cache=0
3508 # Check whether --enable-mdi or --disable-mdi was given.
3509 if test "${enable_mdi+set}" = set; then
3510 enableval="$enable_mdi"
3511
3512 if test "$enableval" = yes; then
3513 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3514 else
3515 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3516 fi
3517
3518 else
3519
3520 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3521 if test "x$LINE" != x ; then
3522 eval "DEFAULT_$LINE"
3523 else
3524 no_cache=1
3525 fi
3526
3527 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3528
3529 fi
3530
3531
3532 eval "$ac_cv_use_mdi"
3533 if test "$no_cache" != 1; then
3534 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3535 fi
3536
3537 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3538 echo "$ac_t""yes" 1>&6
3539 else
3540 echo "$ac_t""no" 1>&6
3541 fi
3542
3543
3544
3545 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3546 echo "configure:3547: checking "for --enable-postscript"" >&5
3547 no_cache=0
3548 # Check whether --enable-postscript or --disable-postscript was given.
3549 if test "${enable_postscript+set}" = set; then
3550 enableval="$enable_postscript"
3551
3552 if test "$enableval" = yes; then
3553 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3554 else
3555 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3556 fi
3557
3558 else
3559
3560 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3561 if test "x$LINE" != x ; then
3562 eval "DEFAULT_$LINE"
3563 else
3564 no_cache=1
3565 fi
3566
3567 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3568
3569 fi
3570
3571
3572 eval "$ac_cv_use_postscript"
3573 if test "$no_cache" != 1; then
3574 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3575 fi
3576
3577 if test "$wxUSE_POSTSCRIPT" = yes; then
3578 echo "$ac_t""yes" 1>&6
3579 else
3580 echo "$ac_t""no" 1>&6
3581 fi
3582
3583
3584
3585
3586 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3587 echo "configure:3588: checking "for --enable-prologio"" >&5
3588 no_cache=0
3589 # Check whether --enable-prologio or --disable-prologio was given.
3590 if test "${enable_prologio+set}" = set; then
3591 enableval="$enable_prologio"
3592
3593 if test "$enableval" = yes; then
3594 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3595 else
3596 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3597 fi
3598
3599 else
3600
3601 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3602 if test "x$LINE" != x ; then
3603 eval "DEFAULT_$LINE"
3604 else
3605 no_cache=1
3606 fi
3607
3608 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3609
3610 fi
3611
3612
3613 eval "$ac_cv_use_prologio"
3614 if test "$no_cache" != 1; then
3615 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3616 fi
3617
3618 if test "$wxUSE_PROLOGIO" = yes; then
3619 echo "$ac_t""yes" 1>&6
3620 else
3621 echo "$ac_t""no" 1>&6
3622 fi
3623
3624
3625 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3626 echo "configure:3627: checking "for --enable-resources"" >&5
3627 no_cache=0
3628 # Check whether --enable-resources or --disable-resources was given.
3629 if test "${enable_resources+set}" = set; then
3630 enableval="$enable_resources"
3631
3632 if test "$enableval" = yes; then
3633 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3634 else
3635 ac_cv_use_resources='wxUSE_RESOURCES=no'
3636 fi
3637
3638 else
3639
3640 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3641 if test "x$LINE" != x ; then
3642 eval "DEFAULT_$LINE"
3643 else
3644 no_cache=1
3645 fi
3646
3647 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3648
3649 fi
3650
3651
3652 eval "$ac_cv_use_resources"
3653 if test "$no_cache" != 1; then
3654 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3655 fi
3656
3657 if test "$wxUSE_RESOURCES" = yes; then
3658 echo "$ac_t""yes" 1>&6
3659 else
3660 echo "$ac_t""no" 1>&6
3661 fi
3662
3663
3664
3665 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
3666 echo "configure:3667: checking "for --enable-xresources"" >&5
3667 no_cache=0
3668 # Check whether --enable-xresources or --disable-xresources was given.
3669 if test "${enable_xresources+set}" = set; then
3670 enableval="$enable_xresources"
3671
3672 if test "$enableval" = yes; then
3673 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3674 else
3675 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3676 fi
3677
3678 else
3679
3680 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3681 if test "x$LINE" != x ; then
3682 eval "DEFAULT_$LINE"
3683 else
3684 no_cache=1
3685 fi
3686
3687 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3688
3689 fi
3690
3691
3692 eval "$ac_cv_use_xresources"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_X_RESOURCES" = yes; then
3698 echo "$ac_t""yes" 1>&6
3699 else
3700 echo "$ac_t""no" 1>&6
3701 fi
3702
3703
3704
3705
3706 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
3707 echo "configure:3708: checking "for --enable-clipboard"" >&5
3708 no_cache=0
3709 # Check whether --enable-clipboard or --disable-clipboard was given.
3710 if test "${enable_clipboard+set}" = set; then
3711 enableval="$enable_clipboard"
3712
3713 if test "$enableval" = yes; then
3714 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3715 else
3716 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3717 fi
3718
3719 else
3720
3721 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3722 if test "x$LINE" != x ; then
3723 eval "DEFAULT_$LINE"
3724 else
3725 no_cache=1
3726 fi
3727
3728 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3729
3730 fi
3731
3732
3733 eval "$ac_cv_use_clipboard"
3734 if test "$no_cache" != 1; then
3735 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3736 fi
3737
3738 if test "$wxUSE_CLIPBOARD" = yes; then
3739 echo "$ac_t""yes" 1>&6
3740 else
3741 echo "$ac_t""no" 1>&6
3742 fi
3743
3744
3745 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
3746 echo "configure:3747: checking "for --enable-dnd"" >&5
3747 no_cache=0
3748 # Check whether --enable-dnd or --disable-dnd was given.
3749 if test "${enable_dnd+set}" = set; then
3750 enableval="$enable_dnd"
3751
3752 if test "$enableval" = yes; then
3753 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3754 else
3755 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3756 fi
3757
3758 else
3759
3760 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3768
3769 fi
3770
3771
3772 eval "$ac_cv_use_dnd"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3778 echo "$ac_t""yes" 1>&6
3779 else
3780 echo "$ac_t""no" 1>&6
3781 fi
3782
3783
3784
3785 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
3786 echo "configure:3787: checking "for --enable-wxtree"" >&5
3787 no_cache=0
3788 # Check whether --enable-wxtree or --disable-wxtree was given.
3789 if test "${enable_wxtree+set}" = set; then
3790 enableval="$enable_wxtree"
3791
3792 if test "$enableval" = yes; then
3793 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3794 else
3795 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3796 fi
3797
3798 else
3799
3800 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3801 if test "x$LINE" != x ; then
3802 eval "DEFAULT_$LINE"
3803 else
3804 no_cache=1
3805 fi
3806
3807 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3808
3809 fi
3810
3811
3812 eval "$ac_cv_use_wxtree"
3813 if test "$no_cache" != 1; then
3814 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3815 fi
3816
3817 if test "$wxUSE_WXTREE" = yes; then
3818 echo "$ac_t""yes" 1>&6
3819 else
3820 echo "$ac_t""no" 1>&6
3821 fi
3822
3823
3824
3825
3826 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
3827 echo "configure:3828: checking "for --enable-controls"" >&5
3828 no_cache=0
3829 # Check whether --enable-controls or --disable-controls was given.
3830 if test "${enable_controls+set}" = set; then
3831 enableval="$enable_controls"
3832
3833 if test "$enableval" = yes; then
3834 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3835 else
3836 ac_cv_use_controls='wxUSE_CONTROLS=no'
3837 fi
3838
3839 else
3840
3841 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3842 if test "x$LINE" != x ; then
3843 eval "DEFAULT_$LINE"
3844 else
3845 no_cache=1
3846 fi
3847
3848 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3849
3850 fi
3851
3852
3853 eval "$ac_cv_use_controls"
3854 if test "$no_cache" != 1; then
3855 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3856 fi
3857
3858 if test "$wxUSE_CONTROLS" = yes; then
3859 echo "$ac_t""yes" 1>&6
3860 else
3861 echo "$ac_t""no" 1>&6
3862 fi
3863
3864
3865 if test "$wxUSE_CONTROLS" = "yes"; then
3866 DEFAULT_wxUSE_ACCEL=yes
3867 DEFAULT_wxUSE_CARET=yes
3868 DEFAULT_wxUSE_COMBOBOX=yes
3869 DEFAULT_wxUSE_BMPBUTTON=yes
3870 DEFAULT_wxUSE_CHECKBOX=yes
3871 DEFAULT_wxUSE_CHECKLISTBOX=yes
3872 DEFAULT_wxUSE_CHOICE=yes
3873 DEFAULT_wxUSE_GAUGE=yes
3874 DEFAULT_wxUSE_GRID=yes
3875 DEFAULT_wxUSE_NEW_GRID=no
3876 DEFAULT_wxUSE_IMAGLIST=yes
3877 DEFAULT_wxUSE_LISTBOX=yes
3878 DEFAULT_wxUSE_LISTCTRL=yes
3879 DEFAULT_wxUSE_NOTEBOOK=yes
3880 DEFAULT_wxUSE_RADIOBOX=yes
3881 DEFAULT_wxUSE_RADIOBTN=yes
3882 DEFAULT_wxUSE_SASH=yes
3883 DEFAULT_wxUSE_SCROLLBAR=yes
3884 DEFAULT_wxUSE_SLIDER=yes
3885 DEFAULT_wxUSE_SPINBTN=yes
3886 DEFAULT_wxUSE_SPINCTRL=yes
3887 DEFAULT_wxUSE_SPLITTER=yes
3888 DEFAULT_wxUSE_STATBMP=yes
3889 DEFAULT_wxUSE_STATBOX=yes
3890 DEFAULT_wxUSE_STATLINE=yes
3891 DEFAULT_wxUSE_STATUSBAR=yes
3892 DEFAULT_wxUSE_TAB_DIALOG=yes
3893 DEFAULT_wxUSE_TOOLBAR=yes
3894 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3895 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
3896 DEFAULT_wxUSE_TOOLTIPS=yes
3897 DEFAULT_wxUSE_TREECTRL=yes
3898 elif test "$wxUSE_CONTROLS" = "no"; then
3899 DEFAULT_wxUSE_ACCEL=no
3900 DEFAULT_wxUSE_CARET=no
3901 DEFAULT_wxUSE_COMBOBOX=no
3902 DEFAULT_wxUSE_BMPBUTTON=no
3903 DEFAULT_wxUSE_CHECKBOX=no
3904 DEFAULT_wxUSE_CHECKLISTBOX=no
3905 DEFAULT_wxUSE_CHOICE=no
3906 DEFAULT_wxUSE_GAUGE=no
3907 DEFAULT_wxUSE_GRID=no
3908 DEFAULT_wxUSE_NEW_GRID=no
3909 DEFAULT_wxUSE_IMAGLIST=no
3910 DEFAULT_wxUSE_LISTBOX=no
3911 DEFAULT_wxUSE_LISTCTRL=no
3912 DEFAULT_wxUSE_NOTEBOOK=no
3913 DEFAULT_wxUSE_RADIOBOX=no
3914 DEFAULT_wxUSE_RADIOBTN=no
3915 DEFAULT_wxUSE_SASH=no
3916 DEFAULT_wxUSE_SCROLLBAR=no
3917 DEFAULT_wxUSE_SLIDER=no
3918 DEFAULT_wxUSE_SPINBTN=no
3919 DEFAULT_wxUSE_SPINCTRL=no
3920 DEFAULT_wxUSE_SPLITTER=no
3921 DEFAULT_wxUSE_STATBMP=no
3922 DEFAULT_wxUSE_STATBOX=no
3923 DEFAULT_wxUSE_STATLINE=no
3924 DEFAULT_wxUSE_STATUSBAR=no
3925 DEFAULT_wxUSE_TAB_DIALOG=no
3926 DEFAULT_wxUSE_TOOLBAR=no
3927 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
3928 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
3929 DEFAULT_wxUSE_TOOLTIPS=no
3930 DEFAULT_wxUSE_TREECTRL=no
3931 fi
3932
3933
3934 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
3935 echo "configure:3936: checking "for --enable-accel"" >&5
3936 no_cache=0
3937 # Check whether --enable-accel or --disable-accel was given.
3938 if test "${enable_accel+set}" = set; then
3939 enableval="$enable_accel"
3940
3941 if test "$enableval" = yes; then
3942 ac_cv_use_accel='wxUSE_ACCEL=yes'
3943 else
3944 ac_cv_use_accel='wxUSE_ACCEL=no'
3945 fi
3946
3947 else
3948
3949 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3950 if test "x$LINE" != x ; then
3951 eval "DEFAULT_$LINE"
3952 else
3953 no_cache=1
3954 fi
3955
3956 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3957
3958 fi
3959
3960
3961 eval "$ac_cv_use_accel"
3962 if test "$no_cache" != 1; then
3963 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3964 fi
3965
3966 if test "$wxUSE_ACCEL" = yes; then
3967 echo "$ac_t""yes" 1>&6
3968 else
3969 echo "$ac_t""no" 1>&6
3970 fi
3971
3972
3973 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
3974 echo "configure:3975: checking "for --enable-caret"" >&5
3975 no_cache=0
3976 # Check whether --enable-caret or --disable-caret was given.
3977 if test "${enable_caret+set}" = set; then
3978 enableval="$enable_caret"
3979
3980 if test "$enableval" = yes; then
3981 ac_cv_use_caret='wxUSE_CARET=yes'
3982 else
3983 ac_cv_use_caret='wxUSE_CARET=no'
3984 fi
3985
3986 else
3987
3988 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3989 if test "x$LINE" != x ; then
3990 eval "DEFAULT_$LINE"
3991 else
3992 no_cache=1
3993 fi
3994
3995 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3996
3997 fi
3998
3999
4000 eval "$ac_cv_use_caret"
4001 if test "$no_cache" != 1; then
4002 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4003 fi
4004
4005 if test "$wxUSE_CARET" = yes; then
4006 echo "$ac_t""yes" 1>&6
4007 else
4008 echo "$ac_t""no" 1>&6
4009 fi
4010
4011
4012 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
4013 echo "configure:4014: checking "for --enable-bmpbutton"" >&5
4014 no_cache=0
4015 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4016 if test "${enable_bmpbutton+set}" = set; then
4017 enableval="$enable_bmpbutton"
4018
4019 if test "$enableval" = yes; then
4020 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4021 else
4022 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4023 fi
4024
4025 else
4026
4027 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4028 if test "x$LINE" != x ; then
4029 eval "DEFAULT_$LINE"
4030 else
4031 no_cache=1
4032 fi
4033
4034 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4035
4036 fi
4037
4038
4039 eval "$ac_cv_use_bmpbutton"
4040 if test "$no_cache" != 1; then
4041 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4042 fi
4043
4044 if test "$wxUSE_BMPBUTTON" = yes; then
4045 echo "$ac_t""yes" 1>&6
4046 else
4047 echo "$ac_t""no" 1>&6
4048 fi
4049
4050
4051 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
4052 echo "configure:4053: checking "for --enable-checkbox"" >&5
4053 no_cache=0
4054 # Check whether --enable-checkbox or --disable-checkbox was given.
4055 if test "${enable_checkbox+set}" = set; then
4056 enableval="$enable_checkbox"
4057
4058 if test "$enableval" = yes; then
4059 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4060 else
4061 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4062 fi
4063
4064 else
4065
4066 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4067 if test "x$LINE" != x ; then
4068 eval "DEFAULT_$LINE"
4069 else
4070 no_cache=1
4071 fi
4072
4073 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4074
4075 fi
4076
4077
4078 eval "$ac_cv_use_checkbox"
4079 if test "$no_cache" != 1; then
4080 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4081 fi
4082
4083 if test "$wxUSE_CHECKBOX" = yes; then
4084 echo "$ac_t""yes" 1>&6
4085 else
4086 echo "$ac_t""no" 1>&6
4087 fi
4088
4089
4090 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
4091 echo "configure:4092: checking "for --enable-checklst"" >&5
4092 no_cache=0
4093 # Check whether --enable-checklst or --disable-checklst was given.
4094 if test "${enable_checklst+set}" = set; then
4095 enableval="$enable_checklst"
4096
4097 if test "$enableval" = yes; then
4098 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4099 else
4100 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4101 fi
4102
4103 else
4104
4105 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4106 if test "x$LINE" != x ; then
4107 eval "DEFAULT_$LINE"
4108 else
4109 no_cache=1
4110 fi
4111
4112 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4113
4114 fi
4115
4116
4117 eval "$ac_cv_use_checklst"
4118 if test "$no_cache" != 1; then
4119 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4120 fi
4121
4122 if test "$wxUSE_CHECKLST" = yes; then
4123 echo "$ac_t""yes" 1>&6
4124 else
4125 echo "$ac_t""no" 1>&6
4126 fi
4127
4128
4129 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4130 echo "configure:4131: checking "for --enable-choice"" >&5
4131 no_cache=0
4132 # Check whether --enable-choice or --disable-choice was given.
4133 if test "${enable_choice+set}" = set; then
4134 enableval="$enable_choice"
4135
4136 if test "$enableval" = yes; then
4137 ac_cv_use_choice='wxUSE_CHOICE=yes'
4138 else
4139 ac_cv_use_choice='wxUSE_CHOICE=no'
4140 fi
4141
4142 else
4143
4144 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4145 if test "x$LINE" != x ; then
4146 eval "DEFAULT_$LINE"
4147 else
4148 no_cache=1
4149 fi
4150
4151 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4152
4153 fi
4154
4155
4156 eval "$ac_cv_use_choice"
4157 if test "$no_cache" != 1; then
4158 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4159 fi
4160
4161 if test "$wxUSE_CHOICE" = yes; then
4162 echo "$ac_t""yes" 1>&6
4163 else
4164 echo "$ac_t""no" 1>&6
4165 fi
4166
4167
4168 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4169 echo "configure:4170: checking "for --enable-combobox"" >&5
4170 no_cache=0
4171 # Check whether --enable-combobox or --disable-combobox was given.
4172 if test "${enable_combobox+set}" = set; then
4173 enableval="$enable_combobox"
4174
4175 if test "$enableval" = yes; then
4176 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4177 else
4178 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4179 fi
4180
4181 else
4182
4183 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4184 if test "x$LINE" != x ; then
4185 eval "DEFAULT_$LINE"
4186 else
4187 no_cache=1
4188 fi
4189
4190 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4191
4192 fi
4193
4194
4195 eval "$ac_cv_use_combobox"
4196 if test "$no_cache" != 1; then
4197 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4198 fi
4199
4200 if test "$wxUSE_COMBOBOX" = yes; then
4201 echo "$ac_t""yes" 1>&6
4202 else
4203 echo "$ac_t""no" 1>&6
4204 fi
4205
4206
4207 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4208 echo "configure:4209: checking "for --enable-gauge"" >&5
4209 no_cache=0
4210 # Check whether --enable-gauge or --disable-gauge was given.
4211 if test "${enable_gauge+set}" = set; then
4212 enableval="$enable_gauge"
4213
4214 if test "$enableval" = yes; then
4215 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4216 else
4217 ac_cv_use_gauge='wxUSE_GAUGE=no'
4218 fi
4219
4220 else
4221
4222 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4223 if test "x$LINE" != x ; then
4224 eval "DEFAULT_$LINE"
4225 else
4226 no_cache=1
4227 fi
4228
4229 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4230
4231 fi
4232
4233
4234 eval "$ac_cv_use_gauge"
4235 if test "$no_cache" != 1; then
4236 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4237 fi
4238
4239 if test "$wxUSE_GAUGE" = yes; then
4240 echo "$ac_t""yes" 1>&6
4241 else
4242 echo "$ac_t""no" 1>&6
4243 fi
4244
4245
4246 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4247 echo "configure:4248: checking "for --enable-grid"" >&5
4248 no_cache=0
4249 # Check whether --enable-grid or --disable-grid was given.
4250 if test "${enable_grid+set}" = set; then
4251 enableval="$enable_grid"
4252
4253 if test "$enableval" = yes; then
4254 ac_cv_use_grid='wxUSE_GRID=yes'
4255 else
4256 ac_cv_use_grid='wxUSE_GRID=no'
4257 fi
4258
4259 else
4260
4261 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4262 if test "x$LINE" != x ; then
4263 eval "DEFAULT_$LINE"
4264 else
4265 no_cache=1
4266 fi
4267
4268 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4269
4270 fi
4271
4272
4273 eval "$ac_cv_use_grid"
4274 if test "$no_cache" != 1; then
4275 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4276 fi
4277
4278 if test "$wxUSE_GRID" = yes; then
4279 echo "$ac_t""yes" 1>&6
4280 else
4281 echo "$ac_t""no" 1>&6
4282 fi
4283
4284
4285 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
4286 echo "configure:4287: checking "for --enable-newgrid"" >&5
4287 no_cache=0
4288 # Check whether --enable-newgrid or --disable-newgrid was given.
4289 if test "${enable_newgrid+set}" = set; then
4290 enableval="$enable_newgrid"
4291
4292 if test "$enableval" = yes; then
4293 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4294 else
4295 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4296 fi
4297
4298 else
4299
4300 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4301 if test "x$LINE" != x ; then
4302 eval "DEFAULT_$LINE"
4303 else
4304 no_cache=1
4305 fi
4306
4307 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4308
4309 fi
4310
4311
4312 eval "$ac_cv_use_newgrid"
4313 if test "$no_cache" != 1; then
4314 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4315 fi
4316
4317 if test "$wxUSE_NEW_GRID" = yes; then
4318 echo "$ac_t""yes" 1>&6
4319 else
4320 echo "$ac_t""no" 1>&6
4321 fi
4322
4323
4324 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4325 echo "configure:4326: checking "for --enable-imaglist"" >&5
4326 no_cache=0
4327 # Check whether --enable-imaglist or --disable-imaglist was given.
4328 if test "${enable_imaglist+set}" = set; then
4329 enableval="$enable_imaglist"
4330
4331 if test "$enableval" = yes; then
4332 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4333 else
4334 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4335 fi
4336
4337 else
4338
4339 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4340 if test "x$LINE" != x ; then
4341 eval "DEFAULT_$LINE"
4342 else
4343 no_cache=1
4344 fi
4345
4346 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4347
4348 fi
4349
4350
4351 eval "$ac_cv_use_imaglist"
4352 if test "$no_cache" != 1; then
4353 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4354 fi
4355
4356 if test "$wxUSE_IMAGLIST" = yes; then
4357 echo "$ac_t""yes" 1>&6
4358 else
4359 echo "$ac_t""no" 1>&6
4360 fi
4361
4362
4363 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4364 echo "configure:4365: checking "for --enable-listbox"" >&5
4365 no_cache=0
4366 # Check whether --enable-listbox or --disable-listbox was given.
4367 if test "${enable_listbox+set}" = set; then
4368 enableval="$enable_listbox"
4369
4370 if test "$enableval" = yes; then
4371 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4372 else
4373 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4374 fi
4375
4376 else
4377
4378 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4379 if test "x$LINE" != x ; then
4380 eval "DEFAULT_$LINE"
4381 else
4382 no_cache=1
4383 fi
4384
4385 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4386
4387 fi
4388
4389
4390 eval "$ac_cv_use_listbox"
4391 if test "$no_cache" != 1; then
4392 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4393 fi
4394
4395 if test "$wxUSE_LISTBOX" = yes; then
4396 echo "$ac_t""yes" 1>&6
4397 else
4398 echo "$ac_t""no" 1>&6
4399 fi
4400
4401
4402 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4403 echo "configure:4404: checking "for --enable-listctrl"" >&5
4404 no_cache=0
4405 # Check whether --enable-listctrl or --disable-listctrl was given.
4406 if test "${enable_listctrl+set}" = set; then
4407 enableval="$enable_listctrl"
4408
4409 if test "$enableval" = yes; then
4410 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4411 else
4412 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4413 fi
4414
4415 else
4416
4417 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4418 if test "x$LINE" != x ; then
4419 eval "DEFAULT_$LINE"
4420 else
4421 no_cache=1
4422 fi
4423
4424 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4425
4426 fi
4427
4428
4429 eval "$ac_cv_use_listctrl"
4430 if test "$no_cache" != 1; then
4431 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4432 fi
4433
4434 if test "$wxUSE_LISTCTRL" = yes; then
4435 echo "$ac_t""yes" 1>&6
4436 else
4437 echo "$ac_t""no" 1>&6
4438 fi
4439
4440
4441 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4442 echo "configure:4443: checking "for --enable-notebook"" >&5
4443 no_cache=0
4444 # Check whether --enable-notebook or --disable-notebook was given.
4445 if test "${enable_notebook+set}" = set; then
4446 enableval="$enable_notebook"
4447
4448 if test "$enableval" = yes; then
4449 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4450 else
4451 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4452 fi
4453
4454 else
4455
4456 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4457 if test "x$LINE" != x ; then
4458 eval "DEFAULT_$LINE"
4459 else
4460 no_cache=1
4461 fi
4462
4463 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4464
4465 fi
4466
4467
4468 eval "$ac_cv_use_notebook"
4469 if test "$no_cache" != 1; then
4470 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4471 fi
4472
4473 if test "$wxUSE_NOTEBOOK" = yes; then
4474 echo "$ac_t""yes" 1>&6
4475 else
4476 echo "$ac_t""no" 1>&6
4477 fi
4478
4479
4480 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4481 echo "configure:4482: checking "for --enable-radiobox"" >&5
4482 no_cache=0
4483 # Check whether --enable-radiobox or --disable-radiobox was given.
4484 if test "${enable_radiobox+set}" = set; then
4485 enableval="$enable_radiobox"
4486
4487 if test "$enableval" = yes; then
4488 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4489 else
4490 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4491 fi
4492
4493 else
4494
4495 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4496 if test "x$LINE" != x ; then
4497 eval "DEFAULT_$LINE"
4498 else
4499 no_cache=1
4500 fi
4501
4502 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4503
4504 fi
4505
4506
4507 eval "$ac_cv_use_radiobox"
4508 if test "$no_cache" != 1; then
4509 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4510 fi
4511
4512 if test "$wxUSE_RADIOBOX" = yes; then
4513 echo "$ac_t""yes" 1>&6
4514 else
4515 echo "$ac_t""no" 1>&6
4516 fi
4517
4518
4519 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4520 echo "configure:4521: checking "for --enable-radiobtn"" >&5
4521 no_cache=0
4522 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4523 if test "${enable_radiobtn+set}" = set; then
4524 enableval="$enable_radiobtn"
4525
4526 if test "$enableval" = yes; then
4527 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4528 else
4529 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4530 fi
4531
4532 else
4533
4534 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4535 if test "x$LINE" != x ; then
4536 eval "DEFAULT_$LINE"
4537 else
4538 no_cache=1
4539 fi
4540
4541 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4542
4543 fi
4544
4545
4546 eval "$ac_cv_use_radiobtn"
4547 if test "$no_cache" != 1; then
4548 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4549 fi
4550
4551 if test "$wxUSE_RADIOBTN" = yes; then
4552 echo "$ac_t""yes" 1>&6
4553 else
4554 echo "$ac_t""no" 1>&6
4555 fi
4556
4557
4558 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4559 echo "configure:4560: checking "for --enable-sash"" >&5
4560 no_cache=0
4561 # Check whether --enable-sash or --disable-sash was given.
4562 if test "${enable_sash+set}" = set; then
4563 enableval="$enable_sash"
4564
4565 if test "$enableval" = yes; then
4566 ac_cv_use_sash='wxUSE_SASH=yes'
4567 else
4568 ac_cv_use_sash='wxUSE_SASH=no'
4569 fi
4570
4571 else
4572
4573 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4574 if test "x$LINE" != x ; then
4575 eval "DEFAULT_$LINE"
4576 else
4577 no_cache=1
4578 fi
4579
4580 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4581
4582 fi
4583
4584
4585 eval "$ac_cv_use_sash"
4586 if test "$no_cache" != 1; then
4587 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4588 fi
4589
4590 if test "$wxUSE_SASH" = yes; then
4591 echo "$ac_t""yes" 1>&6
4592 else
4593 echo "$ac_t""no" 1>&6
4594 fi
4595
4596
4597 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4598 echo "configure:4599: checking "for --enable-scrollbar"" >&5
4599 no_cache=0
4600 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4601 if test "${enable_scrollbar+set}" = set; then
4602 enableval="$enable_scrollbar"
4603
4604 if test "$enableval" = yes; then
4605 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4606 else
4607 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4608 fi
4609
4610 else
4611
4612 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4613 if test "x$LINE" != x ; then
4614 eval "DEFAULT_$LINE"
4615 else
4616 no_cache=1
4617 fi
4618
4619 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4620
4621 fi
4622
4623
4624 eval "$ac_cv_use_scrollbar"
4625 if test "$no_cache" != 1; then
4626 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4627 fi
4628
4629 if test "$wxUSE_SCROLLBAR" = yes; then
4630 echo "$ac_t""yes" 1>&6
4631 else
4632 echo "$ac_t""no" 1>&6
4633 fi
4634
4635
4636 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
4637 echo "configure:4638: checking "for --enable-slider"" >&5
4638 no_cache=0
4639 # Check whether --enable-slider or --disable-slider was given.
4640 if test "${enable_slider+set}" = set; then
4641 enableval="$enable_slider"
4642
4643 if test "$enableval" = yes; then
4644 ac_cv_use_slider='wxUSE_SLIDER=yes'
4645 else
4646 ac_cv_use_slider='wxUSE_SLIDER=no'
4647 fi
4648
4649 else
4650
4651 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4652 if test "x$LINE" != x ; then
4653 eval "DEFAULT_$LINE"
4654 else
4655 no_cache=1
4656 fi
4657
4658 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4659
4660 fi
4661
4662
4663 eval "$ac_cv_use_slider"
4664 if test "$no_cache" != 1; then
4665 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4666 fi
4667
4668 if test "$wxUSE_SLIDER" = yes; then
4669 echo "$ac_t""yes" 1>&6
4670 else
4671 echo "$ac_t""no" 1>&6
4672 fi
4673
4674
4675 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
4676 echo "configure:4677: checking "for --enable-spinbtn"" >&5
4677 no_cache=0
4678 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4679 if test "${enable_spinbtn+set}" = set; then
4680 enableval="$enable_spinbtn"
4681
4682 if test "$enableval" = yes; then
4683 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4684 else
4685 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4686 fi
4687
4688 else
4689
4690 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4691 if test "x$LINE" != x ; then
4692 eval "DEFAULT_$LINE"
4693 else
4694 no_cache=1
4695 fi
4696
4697 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4698
4699 fi
4700
4701
4702 eval "$ac_cv_use_spinbtn"
4703 if test "$no_cache" != 1; then
4704 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4705 fi
4706
4707 if test "$wxUSE_SPINBTN" = yes; then
4708 echo "$ac_t""yes" 1>&6
4709 else
4710 echo "$ac_t""no" 1>&6
4711 fi
4712
4713
4714 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
4715 echo "configure:4716: checking "for --enable-spinctrl"" >&5
4716 no_cache=0
4717 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4718 if test "${enable_spinctrl+set}" = set; then
4719 enableval="$enable_spinctrl"
4720
4721 if test "$enableval" = yes; then
4722 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4723 else
4724 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4725 fi
4726
4727 else
4728
4729 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4730 if test "x$LINE" != x ; then
4731 eval "DEFAULT_$LINE"
4732 else
4733 no_cache=1
4734 fi
4735
4736 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4737
4738 fi
4739
4740
4741 eval "$ac_cv_use_spinctrl"
4742 if test "$no_cache" != 1; then
4743 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4744 fi
4745
4746 if test "$wxUSE_SPINCTRL" = yes; then
4747 echo "$ac_t""yes" 1>&6
4748 else
4749 echo "$ac_t""no" 1>&6
4750 fi
4751
4752
4753 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
4754 echo "configure:4755: checking "for --enable-splitter"" >&5
4755 no_cache=0
4756 # Check whether --enable-splitter or --disable-splitter was given.
4757 if test "${enable_splitter+set}" = set; then
4758 enableval="$enable_splitter"
4759
4760 if test "$enableval" = yes; then
4761 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4762 else
4763 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4764 fi
4765
4766 else
4767
4768 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4769 if test "x$LINE" != x ; then
4770 eval "DEFAULT_$LINE"
4771 else
4772 no_cache=1
4773 fi
4774
4775 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4776
4777 fi
4778
4779
4780 eval "$ac_cv_use_splitter"
4781 if test "$no_cache" != 1; then
4782 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4783 fi
4784
4785 if test "$wxUSE_SPLITTER" = yes; then
4786 echo "$ac_t""yes" 1>&6
4787 else
4788 echo "$ac_t""no" 1>&6
4789 fi
4790
4791
4792 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
4793 echo "configure:4794: checking "for --enable-statbmp"" >&5
4794 no_cache=0
4795 # Check whether --enable-statbmp or --disable-statbmp was given.
4796 if test "${enable_statbmp+set}" = set; then
4797 enableval="$enable_statbmp"
4798
4799 if test "$enableval" = yes; then
4800 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4801 else
4802 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4803 fi
4804
4805 else
4806
4807 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4808 if test "x$LINE" != x ; then
4809 eval "DEFAULT_$LINE"
4810 else
4811 no_cache=1
4812 fi
4813
4814 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4815
4816 fi
4817
4818
4819 eval "$ac_cv_use_statbmp"
4820 if test "$no_cache" != 1; then
4821 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4822 fi
4823
4824 if test "$wxUSE_STATBMP" = yes; then
4825 echo "$ac_t""yes" 1>&6
4826 else
4827 echo "$ac_t""no" 1>&6
4828 fi
4829
4830
4831 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
4832 echo "configure:4833: checking "for --enable-statbox"" >&5
4833 no_cache=0
4834 # Check whether --enable-statbox or --disable-statbox was given.
4835 if test "${enable_statbox+set}" = set; then
4836 enableval="$enable_statbox"
4837
4838 if test "$enableval" = yes; then
4839 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4840 else
4841 ac_cv_use_statbox='wxUSE_STATBOX=no'
4842 fi
4843
4844 else
4845
4846 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4847 if test "x$LINE" != x ; then
4848 eval "DEFAULT_$LINE"
4849 else
4850 no_cache=1
4851 fi
4852
4853 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4854
4855 fi
4856
4857
4858 eval "$ac_cv_use_statbox"
4859 if test "$no_cache" != 1; then
4860 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4861 fi
4862
4863 if test "$wxUSE_STATBOX" = yes; then
4864 echo "$ac_t""yes" 1>&6
4865 else
4866 echo "$ac_t""no" 1>&6
4867 fi
4868
4869
4870 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
4871 echo "configure:4872: checking "for --enable-statline"" >&5
4872 no_cache=0
4873 # Check whether --enable-statline or --disable-statline was given.
4874 if test "${enable_statline+set}" = set; then
4875 enableval="$enable_statline"
4876
4877 if test "$enableval" = yes; then
4878 ac_cv_use_statline='wxUSE_STATLINE=yes'
4879 else
4880 ac_cv_use_statline='wxUSE_STATLINE=no'
4881 fi
4882
4883 else
4884
4885 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4886 if test "x$LINE" != x ; then
4887 eval "DEFAULT_$LINE"
4888 else
4889 no_cache=1
4890 fi
4891
4892 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4893
4894 fi
4895
4896
4897 eval "$ac_cv_use_statline"
4898 if test "$no_cache" != 1; then
4899 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4900 fi
4901
4902 if test "$wxUSE_STATLINE" = yes; then
4903 echo "$ac_t""yes" 1>&6
4904 else
4905 echo "$ac_t""no" 1>&6
4906 fi
4907
4908
4909 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
4910 echo "configure:4911: checking "for --enable-statusbar"" >&5
4911 no_cache=0
4912 # Check whether --enable-statusbar or --disable-statusbar was given.
4913 if test "${enable_statusbar+set}" = set; then
4914 enableval="$enable_statusbar"
4915
4916 if test "$enableval" = yes; then
4917 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4918 else
4919 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4920 fi
4921
4922 else
4923
4924 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4925 if test "x$LINE" != x ; then
4926 eval "DEFAULT_$LINE"
4927 else
4928 no_cache=1
4929 fi
4930
4931 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4932
4933 fi
4934
4935
4936 eval "$ac_cv_use_statusbar"
4937 if test "$no_cache" != 1; then
4938 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4939 fi
4940
4941 if test "$wxUSE_STATUSBAR" = yes; then
4942 echo "$ac_t""yes" 1>&6
4943 else
4944 echo "$ac_t""no" 1>&6
4945 fi
4946
4947
4948 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
4949 echo "configure:4950: checking "for --enable-tabdialog"" >&5
4950 no_cache=0
4951 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4952 if test "${enable_tabdialog+set}" = set; then
4953 enableval="$enable_tabdialog"
4954
4955 if test "$enableval" = yes; then
4956 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4957 else
4958 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4959 fi
4960
4961 else
4962
4963 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4964 if test "x$LINE" != x ; then
4965 eval "DEFAULT_$LINE"
4966 else
4967 no_cache=1
4968 fi
4969
4970 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4971
4972 fi
4973
4974
4975 eval "$ac_cv_use_tabdialog"
4976 if test "$no_cache" != 1; then
4977 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4978 fi
4979
4980 if test "$wxUSE_TABDIALOG" = yes; then
4981 echo "$ac_t""yes" 1>&6
4982 else
4983 echo "$ac_t""no" 1>&6
4984 fi
4985
4986
4987 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
4988 echo "configure:4989: checking "for --enable-toolbar"" >&5
4989 no_cache=0
4990 # Check whether --enable-toolbar or --disable-toolbar was given.
4991 if test "${enable_toolbar+set}" = set; then
4992 enableval="$enable_toolbar"
4993
4994 if test "$enableval" = yes; then
4995 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4996 else
4997 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
4998 fi
4999
5000 else
5001
5002 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5003 if test "x$LINE" != x ; then
5004 eval "DEFAULT_$LINE"
5005 else
5006 no_cache=1
5007 fi
5008
5009 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5010
5011 fi
5012
5013
5014 eval "$ac_cv_use_toolbar"
5015 if test "$no_cache" != 1; then
5016 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5017 fi
5018
5019 if test "$wxUSE_TOOLBAR" = yes; then
5020 echo "$ac_t""yes" 1>&6
5021 else
5022 echo "$ac_t""no" 1>&6
5023 fi
5024
5025
5026 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
5027 echo "configure:5028: checking "for --enable-tbarnative"" >&5
5028 no_cache=0
5029 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5030 if test "${enable_tbarnative+set}" = set; then
5031 enableval="$enable_tbarnative"
5032
5033 if test "$enableval" = yes; then
5034 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5035 else
5036 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5037 fi
5038
5039 else
5040
5041 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5042 if test "x$LINE" != x ; then
5043 eval "DEFAULT_$LINE"
5044 else
5045 no_cache=1
5046 fi
5047
5048 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5049
5050 fi
5051
5052
5053 eval "$ac_cv_use_tbarnative"
5054 if test "$no_cache" != 1; then
5055 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5056 fi
5057
5058 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5059 echo "$ac_t""yes" 1>&6
5060 else
5061 echo "$ac_t""no" 1>&6
5062 fi
5063
5064
5065 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
5066 echo "configure:5067: checking "for --enable-tbarsmpl"" >&5
5067 no_cache=0
5068 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5069 if test "${enable_tbarsmpl+set}" = set; then
5070 enableval="$enable_tbarsmpl"
5071
5072 if test "$enableval" = yes; then
5073 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5074 else
5075 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5076 fi
5077
5078 else
5079
5080 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5081 if test "x$LINE" != x ; then
5082 eval "DEFAULT_$LINE"
5083 else
5084 no_cache=1
5085 fi
5086
5087 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5088
5089 fi
5090
5091
5092 eval "$ac_cv_use_tbarsmpl"
5093 if test "$no_cache" != 1; then
5094 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5095 fi
5096
5097 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5098 echo "$ac_t""yes" 1>&6
5099 else
5100 echo "$ac_t""no" 1>&6
5101 fi
5102
5103
5104 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
5105 echo "configure:5106: checking "for --enable-treectrl"" >&5
5106 no_cache=0
5107 # Check whether --enable-treectrl or --disable-treectrl was given.
5108 if test "${enable_treectrl+set}" = set; then
5109 enableval="$enable_treectrl"
5110
5111 if test "$enableval" = yes; then
5112 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5113 else
5114 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5115 fi
5116
5117 else
5118
5119 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5120 if test "x$LINE" != x ; then
5121 eval "DEFAULT_$LINE"
5122 else
5123 no_cache=1
5124 fi
5125
5126 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5127
5128 fi
5129
5130
5131 eval "$ac_cv_use_treectrl"
5132 if test "$no_cache" != 1; then
5133 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5134 fi
5135
5136 if test "$wxUSE_TREECTRL" = yes; then
5137 echo "$ac_t""yes" 1>&6
5138 else
5139 echo "$ac_t""no" 1>&6
5140 fi
5141
5142
5143
5144
5145 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
5146 echo "configure:5147: checking "for --enable-commondlg"" >&5
5147 no_cache=0
5148 # Check whether --enable-commondlg or --disable-commondlg was given.
5149 if test "${enable_commondlg+set}" = set; then
5150 enableval="$enable_commondlg"
5151
5152 if test "$enableval" = yes; then
5153 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5154 else
5155 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5156 fi
5157
5158 else
5159
5160 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5161 if test "x$LINE" != x ; then
5162 eval "DEFAULT_$LINE"
5163 else
5164 no_cache=1
5165 fi
5166
5167 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5168
5169 fi
5170
5171
5172 eval "$ac_cv_use_commondlg"
5173 if test "$no_cache" != 1; then
5174 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5175 fi
5176
5177 if test "$wxUSE_COMMONDLGS" = yes; then
5178 echo "$ac_t""yes" 1>&6
5179 else
5180 echo "$ac_t""no" 1>&6
5181 fi
5182
5183
5184 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
5185 echo "configure:5186: checking "for --enable-dirdlg"" >&5
5186 no_cache=0
5187 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5188 if test "${enable_dirdlg+set}" = set; then
5189 enableval="$enable_dirdlg"
5190
5191 if test "$enableval" = yes; then
5192 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5193 else
5194 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5195 fi
5196
5197 else
5198
5199 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5200 if test "x$LINE" != x ; then
5201 eval "DEFAULT_$LINE"
5202 else
5203 no_cache=1
5204 fi
5205
5206 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5207
5208 fi
5209
5210
5211 eval "$ac_cv_use_dirdlg"
5212 if test "$no_cache" != 1; then
5213 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5214 fi
5215
5216 if test "$wxUSE_DIRDLG" = yes; then
5217 echo "$ac_t""yes" 1>&6
5218 else
5219 echo "$ac_t""no" 1>&6
5220 fi
5221
5222
5223 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
5224 echo "configure:5225: checking "for --enable-textdlg"" >&5
5225 no_cache=0
5226 # Check whether --enable-textdlg or --disable-textdlg was given.
5227 if test "${enable_textdlg+set}" = set; then
5228 enableval="$enable_textdlg"
5229
5230 if test "$enableval" = yes; then
5231 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5232 else
5233 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5234 fi
5235
5236 else
5237
5238 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5239 if test "x$LINE" != x ; then
5240 eval "DEFAULT_$LINE"
5241 else
5242 no_cache=1
5243 fi
5244
5245 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5246
5247 fi
5248
5249
5250 eval "$ac_cv_use_textdlg"
5251 if test "$no_cache" != 1; then
5252 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5253 fi
5254
5255 if test "$wxUSE_TEXTDLG" = yes; then
5256 echo "$ac_t""yes" 1>&6
5257 else
5258 echo "$ac_t""no" 1>&6
5259 fi
5260
5261
5262 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
5263 echo "configure:5264: checking "for --enable-tipdlg"" >&5
5264 no_cache=0
5265 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5266 if test "${enable_tipdlg+set}" = set; then
5267 enableval="$enable_tipdlg"
5268
5269 if test "$enableval" = yes; then
5270 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5271 else
5272 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5273 fi
5274
5275 else
5276
5277 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5278 if test "x$LINE" != x ; then
5279 eval "DEFAULT_$LINE"
5280 else
5281 no_cache=1
5282 fi
5283
5284 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5285
5286 fi
5287
5288
5289 eval "$ac_cv_use_tipdlg"
5290 if test "$no_cache" != 1; then
5291 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5292 fi
5293
5294 if test "$wxUSE_STARTUP_TIPS" = yes; then
5295 echo "$ac_t""yes" 1>&6
5296 else
5297 echo "$ac_t""no" 1>&6
5298 fi
5299
5300
5301 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
5302 echo "configure:5303: checking "for --enable-progressdlg"" >&5
5303 no_cache=0
5304 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5305 if test "${enable_progressdlg+set}" = set; then
5306 enableval="$enable_progressdlg"
5307
5308 if test "$enableval" = yes; then
5309 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5310 else
5311 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5312 fi
5313
5314 else
5315
5316 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5317 if test "x$LINE" != x ; then
5318 eval "DEFAULT_$LINE"
5319 else
5320 no_cache=1
5321 fi
5322
5323 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5324
5325 fi
5326
5327
5328 eval "$ac_cv_use_progressdlg"
5329 if test "$no_cache" != 1; then
5330 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5331 fi
5332
5333 if test "$wxUSE_PROGRESSDLG" = yes; then
5334 echo "$ac_t""yes" 1>&6
5335 else
5336 echo "$ac_t""no" 1>&6
5337 fi
5338
5339
5340 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
5341 echo "configure:5342: checking "for --enable-miniframe"" >&5
5342 no_cache=0
5343 # Check whether --enable-miniframe or --disable-miniframe was given.
5344 if test "${enable_miniframe+set}" = set; then
5345 enableval="$enable_miniframe"
5346
5347 if test "$enableval" = yes; then
5348 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5349 else
5350 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5351 fi
5352
5353 else
5354
5355 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5356 if test "x$LINE" != x ; then
5357 eval "DEFAULT_$LINE"
5358 else
5359 no_cache=1
5360 fi
5361
5362 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5363
5364 fi
5365
5366
5367 eval "$ac_cv_use_miniframe"
5368 if test "$no_cache" != 1; then
5369 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5370 fi
5371
5372 if test "$wxUSE_MINIFRAME" = yes; then
5373 echo "$ac_t""yes" 1>&6
5374 else
5375 echo "$ac_t""no" 1>&6
5376 fi
5377
5378
5379 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
5380 echo "configure:5381: checking "for --enable-html"" >&5
5381 no_cache=0
5382 # Check whether --enable-html or --disable-html was given.
5383 if test "${enable_html+set}" = set; then
5384 enableval="$enable_html"
5385
5386 if test "$enableval" = yes; then
5387 ac_cv_use_html='wxUSE_HTML=yes'
5388 else
5389 ac_cv_use_html='wxUSE_HTML=no'
5390 fi
5391
5392 else
5393
5394 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5395 if test "x$LINE" != x ; then
5396 eval "DEFAULT_$LINE"
5397 else
5398 no_cache=1
5399 fi
5400
5401 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5402
5403 fi
5404
5405
5406 eval "$ac_cv_use_html"
5407 if test "$no_cache" != 1; then
5408 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5409 fi
5410
5411 if test "$wxUSE_HTML" = yes; then
5412 echo "$ac_t""yes" 1>&6
5413 else
5414 echo "$ac_t""no" 1>&6
5415 fi
5416
5417
5418 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
5419 echo "configure:5420: checking "for --enable-tooltips"" >&5
5420 no_cache=0
5421 # Check whether --enable-tooltips or --disable-tooltips was given.
5422 if test "${enable_tooltips+set}" = set; then
5423 enableval="$enable_tooltips"
5424
5425 if test "$enableval" = yes; then
5426 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5427 else
5428 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5429 fi
5430
5431 else
5432
5433 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5434 if test "x$LINE" != x ; then
5435 eval "DEFAULT_$LINE"
5436 else
5437 no_cache=1
5438 fi
5439
5440 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5441
5442 fi
5443
5444
5445 eval "$ac_cv_use_tooltips"
5446 if test "$no_cache" != 1; then
5447 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5448 fi
5449
5450 if test "$wxUSE_TOOLTIPS" = yes; then
5451 echo "$ac_t""yes" 1>&6
5452 else
5453 echo "$ac_t""no" 1>&6
5454 fi
5455
5456
5457 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
5458 echo "configure:5459: checking "for --enable-splines"" >&5
5459 no_cache=0
5460 # Check whether --enable-splines or --disable-splines was given.
5461 if test "${enable_splines+set}" = set; then
5462 enableval="$enable_splines"
5463
5464 if test "$enableval" = yes; then
5465 ac_cv_use_splines='wxUSE_SPLINES=yes'
5466 else
5467 ac_cv_use_splines='wxUSE_SPLINES=no'
5468 fi
5469
5470 else
5471
5472 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5473 if test "x$LINE" != x ; then
5474 eval "DEFAULT_$LINE"
5475 else
5476 no_cache=1
5477 fi
5478
5479 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5480
5481 fi
5482
5483
5484 eval "$ac_cv_use_splines"
5485 if test "$no_cache" != 1; then
5486 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5487 fi
5488
5489 if test "$wxUSE_SPLINES" = yes; then
5490 echo "$ac_t""yes" 1>&6
5491 else
5492 echo "$ac_t""no" 1>&6
5493 fi
5494
5495
5496 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
5497 echo "configure:5498: checking "for --enable-validators"" >&5
5498 no_cache=0
5499 # Check whether --enable-validators or --disable-validators was given.
5500 if test "${enable_validators+set}" = set; then
5501 enableval="$enable_validators"
5502
5503 if test "$enableval" = yes; then
5504 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5505 else
5506 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5507 fi
5508
5509 else
5510
5511 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5512 if test "x$LINE" != x ; then
5513 eval "DEFAULT_$LINE"
5514 else
5515 no_cache=1
5516 fi
5517
5518 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5519
5520 fi
5521
5522
5523 eval "$ac_cv_use_validators"
5524 if test "$no_cache" != 1; then
5525 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5526 fi
5527
5528 if test "$wxUSE_VALIDATORS" = yes; then
5529 echo "$ac_t""yes" 1>&6
5530 else
5531 echo "$ac_t""no" 1>&6
5532 fi
5533
5534
5535 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
5536 echo "configure:5537: checking "for --enable-busyinfo"" >&5
5537 no_cache=0
5538 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5539 if test "${enable_busyinfo+set}" = set; then
5540 enableval="$enable_busyinfo"
5541
5542 if test "$enableval" = yes; then
5543 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5544 else
5545 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5546 fi
5547
5548 else
5549
5550 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5551 if test "x$LINE" != x ; then
5552 eval "DEFAULT_$LINE"
5553 else
5554 no_cache=1
5555 fi
5556
5557 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5558
5559 fi
5560
5561
5562 eval "$ac_cv_use_busyinfo"
5563 if test "$no_cache" != 1; then
5564 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5565 fi
5566
5567 if test "$wxUSE_BUSYINFO" = yes; then
5568 echo "$ac_t""yes" 1>&6
5569 else
5570 echo "$ac_t""no" 1>&6
5571 fi
5572
5573
5574
5575
5576 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
5577 echo "configure:5578: checking "for --enable-gif"" >&5
5578 no_cache=0
5579 # Check whether --enable-gif or --disable-gif was given.
5580 if test "${enable_gif+set}" = set; then
5581 enableval="$enable_gif"
5582
5583 if test "$enableval" = yes; then
5584 ac_cv_use_gif='wxUSE_GIF=yes'
5585 else
5586 ac_cv_use_gif='wxUSE_GIF=no'
5587 fi
5588
5589 else
5590
5591 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5592 if test "x$LINE" != x ; then
5593 eval "DEFAULT_$LINE"
5594 else
5595 no_cache=1
5596 fi
5597
5598 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5599
5600 fi
5601
5602
5603 eval "$ac_cv_use_gif"
5604 if test "$no_cache" != 1; then
5605 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5606 fi
5607
5608 if test "$wxUSE_GIF" = yes; then
5609 echo "$ac_t""yes" 1>&6
5610 else
5611 echo "$ac_t""no" 1>&6
5612 fi
5613
5614
5615 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
5616 echo "configure:5617: checking "for --enable-pcx"" >&5
5617 no_cache=0
5618 # Check whether --enable-pcx or --disable-pcx was given.
5619 if test "${enable_pcx+set}" = set; then
5620 enableval="$enable_pcx"
5621
5622 if test "$enableval" = yes; then
5623 ac_cv_use_pcx='wxUSE_PCX=yes'
5624 else
5625 ac_cv_use_pcx='wxUSE_PCX=no'
5626 fi
5627
5628 else
5629
5630 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5631 if test "x$LINE" != x ; then
5632 eval "DEFAULT_$LINE"
5633 else
5634 no_cache=1
5635 fi
5636
5637 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5638
5639 fi
5640
5641
5642 eval "$ac_cv_use_pcx"
5643 if test "$no_cache" != 1; then
5644 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5645 fi
5646
5647 if test "$wxUSE_PCX" = yes; then
5648 echo "$ac_t""yes" 1>&6
5649 else
5650 echo "$ac_t""no" 1>&6
5651 fi
5652
5653
5654 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
5655 echo "configure:5656: checking "for --enable-pnm"" >&5
5656 no_cache=0
5657 # Check whether --enable-pnm or --disable-pnm was given.
5658 if test "${enable_pnm+set}" = set; then
5659 enableval="$enable_pnm"
5660
5661 if test "$enableval" = yes; then
5662 ac_cv_use_pnm='wxUSE_PNM=yes'
5663 else
5664 ac_cv_use_pnm='wxUSE_PNM=no'
5665 fi
5666
5667 else
5668
5669 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5670 if test "x$LINE" != x ; then
5671 eval "DEFAULT_$LINE"
5672 else
5673 no_cache=1
5674 fi
5675
5676 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5677
5678 fi
5679
5680
5681 eval "$ac_cv_use_pnm"
5682 if test "$no_cache" != 1; then
5683 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5684 fi
5685
5686 if test "$wxUSE_PNM" = yes; then
5687 echo "$ac_t""yes" 1>&6
5688 else
5689 echo "$ac_t""no" 1>&6
5690 fi
5691
5692
5693 fi
5694
5695
5696 echo "saving argument cache $wx_arg_cache_file"
5697 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5698
5699
5700
5701 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
5702 echo "configure:5703: checking for toolkit" >&5
5703
5704 if test "$wxUSE_GUI" = "yes"; then
5705
5706 if test "$USE_BEOS" = 1; then
5707 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5708 fi
5709
5710 if test "$TOOLKIT_GIVEN" = 1; then
5711 for toolkit in `echo $ALL_TOOLKITS`; do
5712 var=wxUSE_$toolkit
5713 eval "value=\$${var}"
5714 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5715 done
5716 else
5717 for toolkit in `echo $ALL_TOOLKITS`; do
5718 if test "$has_toolkit_in_cache" != 1; then
5719 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5720 else
5721 var=DEFAULT_wxUSE_$toolkit
5722 fi
5723 eval "wxUSE_$toolkit=\$${var}"
5724 done
5725 fi
5726
5727 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5728 case "${host}" in
5729 *-pc-os2_emx )
5730 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5731 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5732 LEX_STEM="lexyy"
5733 ;;
5734 *)
5735 PATH_IFS=':'
5736 LEX_STEM="lex.yy"
5737 ;;
5738 esac
5739
5740 case "$NUM_TOOLKITS" in
5741 1)
5742 ;;
5743 0)
5744 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5745 ;;
5746 *)
5747 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5748 esac
5749
5750 for toolkit in `echo $ALL_TOOLKITS`; do
5751 var=wxUSE_$toolkit
5752 eval "value=\$${var}"
5753 if test "x$value" != x; then
5754 cache_var=CACHE_$toolkit
5755 eval "cache=\$${cache_var}"
5756 if test "$cache" = 1; then
5757 echo "$var=$value" >> ${wx_arg_cache_file}
5758 fi
5759 if test "$value" = 1; then
5760 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5761 fi
5762 fi
5763 done
5764
5765 else
5766 echo "$ac_t""base only" 1>&6
5767 fi
5768
5769
5770 cat > confcache <<\EOF
5771 # This file is a shell script that caches the results of configure
5772 # tests run on this system so they can be shared between configure
5773 # scripts and configure runs. It is not useful on other systems.
5774 # If it contains results you don't want to keep, you may remove or edit it.
5775 #
5776 # By default, configure uses ./config.cache as the cache file,
5777 # creating it if it does not exist already. You can give configure
5778 # the --cache-file=FILE option to use a different cache file; that is
5779 # what configure does when it calls configure scripts in
5780 # subdirectories, so they share the cache.
5781 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5782 # config.status only pays attention to the cache file if you give it the
5783 # --recheck option to rerun configure.
5784 #
5785 EOF
5786 # The following way of writing the cache mishandles newlines in values,
5787 # but we know of no workaround that is simple, portable, and efficient.
5788 # So, don't put newlines in cache variables' values.
5789 # Ultrix sh set writes to stderr and can't be redirected directly,
5790 # and sets the high bit in the cache file unless we assign to the vars.
5791 (set) 2>&1 |
5792 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5793 *ac_space=\ *)
5794 # `set' does not quote correctly, so add quotes (double-quote substitution
5795 # turns \\\\ into \\, and sed turns \\ into \).
5796 sed -n \
5797 -e "s/'/'\\\\''/g" \
5798 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5799 ;;
5800 *)
5801 # `set' quotes correctly as required by POSIX, so do not add quotes.
5802 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5803 ;;
5804 esac >> confcache
5805 if cmp -s $cache_file confcache; then
5806 :
5807 else
5808 if test -w $cache_file; then
5809 echo "updating cache $cache_file"
5810 cat confcache > $cache_file
5811 else
5812 echo "not updating unwritable cache $cache_file"
5813 fi
5814 fi
5815 rm -f confcache
5816
5817
5818 if eval "test $host != $build"; then
5819 if eval "test $host_alias != NONE"; then
5820 CC=$host_alias-gcc
5821 CXX=$host_alias-c++
5822 AR=$host_alias-ar
5823 RANLIB=$host_alias-ranlib
5824 DLLTOOL=$host_alias-dlltool
5825 LD=$host_alias-ld
5826 NM=$host_alias-nm
5827 STRIP=$host_alias-strip
5828 fi
5829 fi
5830
5831 # Extract the first word of "gcc", so it can be a program name with args.
5832 set dummy gcc; ac_word=$2
5833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5834 echo "configure:5835: checking for $ac_word" >&5
5835 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5836 echo $ac_n "(cached) $ac_c" 1>&6
5837 else
5838 if test -n "$CC"; then
5839 ac_cv_prog_CC="$CC" # Let the user override the test.
5840 else
5841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5842 ac_dummy="$PATH"
5843 for ac_dir in $ac_dummy; do
5844 test -z "$ac_dir" && ac_dir=.
5845 if test -f $ac_dir/$ac_word; then
5846 ac_cv_prog_CC="gcc"
5847 break
5848 fi
5849 done
5850 IFS="$ac_save_ifs"
5851 fi
5852 fi
5853 CC="$ac_cv_prog_CC"
5854 if test -n "$CC"; then
5855 echo "$ac_t""$CC" 1>&6
5856 else
5857 echo "$ac_t""no" 1>&6
5858 fi
5859
5860 if test -z "$CC"; then
5861 # Extract the first word of "cc", so it can be a program name with args.
5862 set dummy cc; ac_word=$2
5863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5864 echo "configure:5865: checking for $ac_word" >&5
5865 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5866 echo $ac_n "(cached) $ac_c" 1>&6
5867 else
5868 if test -n "$CC"; then
5869 ac_cv_prog_CC="$CC" # Let the user override the test.
5870 else
5871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5872 ac_prog_rejected=no
5873 ac_dummy="$PATH"
5874 for ac_dir in $ac_dummy; do
5875 test -z "$ac_dir" && ac_dir=.
5876 if test -f $ac_dir/$ac_word; then
5877 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5878 ac_prog_rejected=yes
5879 continue
5880 fi
5881 ac_cv_prog_CC="cc"
5882 break
5883 fi
5884 done
5885 IFS="$ac_save_ifs"
5886 if test $ac_prog_rejected = yes; then
5887 # We found a bogon in the path, so make sure we never use it.
5888 set dummy $ac_cv_prog_CC
5889 shift
5890 if test $# -gt 0; then
5891 # We chose a different compiler from the bogus one.
5892 # However, it has the same basename, so the bogon will be chosen
5893 # first if we set CC to just the basename; use the full file name.
5894 shift
5895 set dummy "$ac_dir/$ac_word" "$@"
5896 shift
5897 ac_cv_prog_CC="$@"
5898 fi
5899 fi
5900 fi
5901 fi
5902 CC="$ac_cv_prog_CC"
5903 if test -n "$CC"; then
5904 echo "$ac_t""$CC" 1>&6
5905 else
5906 echo "$ac_t""no" 1>&6
5907 fi
5908
5909 if test -z "$CC"; then
5910 case "`uname -s`" in
5911 *win32* | *WIN32*)
5912 # Extract the first word of "cl", so it can be a program name with args.
5913 set dummy cl; ac_word=$2
5914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5915 echo "configure:5916: checking for $ac_word" >&5
5916 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5917 echo $ac_n "(cached) $ac_c" 1>&6
5918 else
5919 if test -n "$CC"; then
5920 ac_cv_prog_CC="$CC" # Let the user override the test.
5921 else
5922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5923 ac_dummy="$PATH"
5924 for ac_dir in $ac_dummy; do
5925 test -z "$ac_dir" && ac_dir=.
5926 if test -f $ac_dir/$ac_word; then
5927 ac_cv_prog_CC="cl"
5928 break
5929 fi
5930 done
5931 IFS="$ac_save_ifs"
5932 fi
5933 fi
5934 CC="$ac_cv_prog_CC"
5935 if test -n "$CC"; then
5936 echo "$ac_t""$CC" 1>&6
5937 else
5938 echo "$ac_t""no" 1>&6
5939 fi
5940 ;;
5941 esac
5942 fi
5943 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5944 fi
5945
5946 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
5947 echo "configure:5948: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
5948
5949 ac_ext=c
5950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5951 ac_cpp='$CPP $CPPFLAGS'
5952 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5953 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5954 cross_compiling=$ac_cv_prog_cc_cross
5955
5956 cat > conftest.$ac_ext << EOF
5957
5958 #line 5959 "configure"
5959 #include "confdefs.h"
5960
5961 main(){return(0);}
5962 EOF
5963 if { (eval echo configure:5964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5964 ac_cv_prog_cc_works=yes
5965 # If we can't run a trivial program, we are probably using a cross compiler.
5966 if (./conftest; exit) 2>/dev/null; then
5967 ac_cv_prog_cc_cross=no
5968 else
5969 ac_cv_prog_cc_cross=yes
5970 fi
5971 else
5972 echo "configure: failed program was:" >&5
5973 cat conftest.$ac_ext >&5
5974 ac_cv_prog_cc_works=no
5975 fi
5976 rm -fr conftest*
5977 ac_ext=c
5978 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5979 ac_cpp='$CPP $CPPFLAGS'
5980 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5981 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5982 cross_compiling=$ac_cv_prog_cc_cross
5983
5984 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5985 if test $ac_cv_prog_cc_works = no; then
5986 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5987 fi
5988 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
5989 echo "configure:5990: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
5990 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5991 cross_compiling=$ac_cv_prog_cc_cross
5992
5993 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
5994 echo "configure:5995: checking whether we are using GNU C" >&5
5995 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5996 echo $ac_n "(cached) $ac_c" 1>&6
5997 else
5998 cat > conftest.c <<EOF
5999 #ifdef __GNUC__
6000 yes;
6001 #endif
6002 EOF
6003 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6004 ac_cv_prog_gcc=yes
6005 else
6006 ac_cv_prog_gcc=no
6007 fi
6008 fi
6009
6010 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6011
6012 if test $ac_cv_prog_gcc = yes; then
6013 GCC=yes
6014 else
6015 GCC=
6016 fi
6017
6018 ac_test_CFLAGS="${CFLAGS+set}"
6019 ac_save_CFLAGS="$CFLAGS"
6020 CFLAGS=
6021 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
6022 echo "configure:6023: checking whether ${CC-cc} accepts -g" >&5
6023 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6024 echo $ac_n "(cached) $ac_c" 1>&6
6025 else
6026 echo 'void f(){}' > conftest.c
6027 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6028 ac_cv_prog_cc_g=yes
6029 else
6030 ac_cv_prog_cc_g=no
6031 fi
6032 rm -f conftest*
6033
6034 fi
6035
6036 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6037 if test "$ac_test_CFLAGS" = set; then
6038 CFLAGS="$ac_save_CFLAGS"
6039 elif test $ac_cv_prog_cc_g = yes; then
6040 if test "$GCC" = yes; then
6041 CFLAGS="-g -O2"
6042 else
6043 CFLAGS="-g"
6044 fi
6045 else
6046 if test "$GCC" = yes; then
6047 CFLAGS="-O2"
6048 else
6049 CFLAGS=
6050 fi
6051 fi
6052
6053
6054 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6055
6056 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
6057 echo "configure:6058: checking how to run the C preprocessor" >&5
6058 # On Suns, sometimes $CPP names a directory.
6059 if test -n "$CPP" && test -d "$CPP"; then
6060 CPP=
6061 fi
6062 if test -z "$CPP"; then
6063 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6064 echo $ac_n "(cached) $ac_c" 1>&6
6065 else
6066 # This must be in double quotes, not single quotes, because CPP may get
6067 # substituted into the Makefile and "${CC-cc}" will confuse make.
6068 CPP="${CC-cc} -E"
6069 # On the NeXT, cc -E runs the code through the compiler's parser,
6070 # not just through cpp.
6071 cat > conftest.$ac_ext <<EOF
6072 #line 6073 "configure"
6073 #include "confdefs.h"
6074 #include <assert.h>
6075 Syntax Error
6076 EOF
6077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6078 { (eval echo configure:6079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6080 if test -z "$ac_err"; then
6081 :
6082 else
6083 echo "$ac_err" >&5
6084 echo "configure: failed program was:" >&5
6085 cat conftest.$ac_ext >&5
6086 rm -rf conftest*
6087 CPP="${CC-cc} -E -traditional-cpp"
6088 cat > conftest.$ac_ext <<EOF
6089 #line 6090 "configure"
6090 #include "confdefs.h"
6091 #include <assert.h>
6092 Syntax Error
6093 EOF
6094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6095 { (eval echo configure:6096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6097 if test -z "$ac_err"; then
6098 :
6099 else
6100 echo "$ac_err" >&5
6101 echo "configure: failed program was:" >&5
6102 cat conftest.$ac_ext >&5
6103 rm -rf conftest*
6104 CPP="${CC-cc} -nologo -E"
6105 cat > conftest.$ac_ext <<EOF
6106 #line 6107 "configure"
6107 #include "confdefs.h"
6108 #include <assert.h>
6109 Syntax Error
6110 EOF
6111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6112 { (eval echo configure:6113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6114 if test -z "$ac_err"; then
6115 :
6116 else
6117 echo "$ac_err" >&5
6118 echo "configure: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6120 rm -rf conftest*
6121 CPP=/lib/cpp
6122 fi
6123 rm -f conftest*
6124 fi
6125 rm -f conftest*
6126 fi
6127 rm -f conftest*
6128 ac_cv_prog_CPP="$CPP"
6129 fi
6130 CPP="$ac_cv_prog_CPP"
6131 else
6132 ac_cv_prog_CPP="$CPP"
6133 fi
6134 echo "$ac_t""$CPP" 1>&6
6135
6136
6137 if test $ac_cv_prog_gcc = yes; then
6138 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
6139 echo "configure:6140: checking whether ${CC-cc} needs -traditional" >&5
6140 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6141 echo $ac_n "(cached) $ac_c" 1>&6
6142 else
6143 ac_pattern="Autoconf.*'x'"
6144 cat > conftest.$ac_ext <<EOF
6145 #line 6146 "configure"
6146 #include "confdefs.h"
6147 #include <sgtty.h>
6148 Autoconf TIOCGETP
6149 EOF
6150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6151 egrep "$ac_pattern" >/dev/null 2>&1; then
6152 rm -rf conftest*
6153 ac_cv_prog_gcc_traditional=yes
6154 else
6155 rm -rf conftest*
6156 ac_cv_prog_gcc_traditional=no
6157 fi
6158 rm -f conftest*
6159
6160
6161 if test $ac_cv_prog_gcc_traditional = no; then
6162 cat > conftest.$ac_ext <<EOF
6163 #line 6164 "configure"
6164 #include "confdefs.h"
6165 #include <termio.h>
6166 Autoconf TCGETA
6167 EOF
6168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6169 egrep "$ac_pattern" >/dev/null 2>&1; then
6170 rm -rf conftest*
6171 ac_cv_prog_gcc_traditional=yes
6172 fi
6173 rm -f conftest*
6174
6175 fi
6176 fi
6177
6178 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6179 if test $ac_cv_prog_gcc_traditional = yes; then
6180 CC="$CC -traditional"
6181 fi
6182 fi
6183
6184
6185
6186 ac_ext=C
6187 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6188 ac_cpp='$CXXCPP $CPPFLAGS'
6189 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6190 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6191 cross_compiling=$ac_cv_prog_cxx_cross
6192
6193
6194 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6195 do
6196 # Extract the first word of "$ac_prog", so it can be a program name with args.
6197 set dummy $ac_prog; ac_word=$2
6198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6199 echo "configure:6200: checking for $ac_word" >&5
6200 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6202 else
6203 if test -n "$CXX"; then
6204 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6205 else
6206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6207 ac_dummy="$PATH"
6208 for ac_dir in $ac_dummy; do
6209 test -z "$ac_dir" && ac_dir=.
6210 if test -f $ac_dir/$ac_word; then
6211 ac_cv_prog_CXX="$ac_prog"
6212 break
6213 fi
6214 done
6215 IFS="$ac_save_ifs"
6216 fi
6217 fi
6218 CXX="$ac_cv_prog_CXX"
6219 if test -n "$CXX"; then
6220 echo "$ac_t""$CXX" 1>&6
6221 else
6222 echo "$ac_t""no" 1>&6
6223 fi
6224
6225 test -n "$CXX" && break
6226 done
6227 test -n "$CXX" || CXX="gcc"
6228
6229
6230 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6231 echo "configure:6232: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
6232
6233 ac_ext=C
6234 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6235 ac_cpp='$CXXCPP $CPPFLAGS'
6236 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6237 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6238 cross_compiling=$ac_cv_prog_cxx_cross
6239
6240 cat > conftest.$ac_ext << EOF
6241
6242 #line 6243 "configure"
6243 #include "confdefs.h"
6244
6245 int main(){return(0);}
6246 EOF
6247 if { (eval echo configure:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6248 ac_cv_prog_cxx_works=yes
6249 # If we can't run a trivial program, we are probably using a cross compiler.
6250 if (./conftest; exit) 2>/dev/null; then
6251 ac_cv_prog_cxx_cross=no
6252 else
6253 ac_cv_prog_cxx_cross=yes
6254 fi
6255 else
6256 echo "configure: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6258 ac_cv_prog_cxx_works=no
6259 fi
6260 rm -fr conftest*
6261 ac_ext=C
6262 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6263 ac_cpp='$CXXCPP $CPPFLAGS'
6264 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6265 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6266 cross_compiling=$ac_cv_prog_cxx_cross
6267
6268 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6269 if test $ac_cv_prog_cxx_works = no; then
6270 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6271 fi
6272 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6273 echo "configure:6274: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
6274 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6275 cross_compiling=$ac_cv_prog_cxx_cross
6276
6277 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6278 echo "configure:6279: checking whether we are using GNU C++" >&5
6279 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6280 echo $ac_n "(cached) $ac_c" 1>&6
6281 else
6282 cat > conftest.C <<EOF
6283 #ifdef __GNUC__
6284 yes;
6285 #endif
6286 EOF
6287 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6288 ac_cv_prog_gxx=yes
6289 else
6290 ac_cv_prog_gxx=no
6291 fi
6292 fi
6293
6294 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6295
6296 if test $ac_cv_prog_gxx = yes; then
6297 GXX=yes
6298 else
6299 GXX=
6300 fi
6301
6302 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6303 ac_save_CXXFLAGS="$CXXFLAGS"
6304 CXXFLAGS=
6305 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6306 echo "configure:6307: checking whether ${CXX-g++} accepts -g" >&5
6307 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6308 echo $ac_n "(cached) $ac_c" 1>&6
6309 else
6310 echo 'void f(){}' > conftest.cc
6311 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6312 ac_cv_prog_cxx_g=yes
6313 else
6314 ac_cv_prog_cxx_g=no
6315 fi
6316 rm -f conftest*
6317
6318 fi
6319
6320 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6321 if test "$ac_test_CXXFLAGS" = set; then
6322 CXXFLAGS="$ac_save_CXXFLAGS"
6323 elif test $ac_cv_prog_cxx_g = yes; then
6324 if test "$GXX" = yes; then
6325 CXXFLAGS="-g -O2"
6326 else
6327 CXXFLAGS="-g"
6328 fi
6329 else
6330 if test "$GXX" = yes; then
6331 CXXFLAGS="-O2"
6332 else
6333 CXXFLAGS=
6334 fi
6335 fi
6336
6337
6338 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6339 echo "configure:6340: checking how to run the C++ preprocessor" >&5
6340 if test -z "$CXXCPP"; then
6341 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6342 echo $ac_n "(cached) $ac_c" 1>&6
6343 else
6344 ac_ext=C
6345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6346 ac_cpp='$CXXCPP $CPPFLAGS'
6347 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6348 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6349 cross_compiling=$ac_cv_prog_cxx_cross
6350 CXXCPP="${CXX-g++} -E"
6351 cat > conftest.$ac_ext <<EOF
6352 #line 6353 "configure"
6353 #include "confdefs.h"
6354 #include <stdlib.h>
6355 EOF
6356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6357 { (eval echo configure:6358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6359 if test -z "$ac_err"; then
6360 :
6361 else
6362 echo "$ac_err" >&5
6363 echo "configure: failed program was:" >&5
6364 cat conftest.$ac_ext >&5
6365 rm -rf conftest*
6366 CXXCPP=/lib/cpp
6367 fi
6368 rm -f conftest*
6369 ac_cv_prog_CXXCPP="$CXXCPP"
6370 ac_ext=C
6371 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6372 ac_cpp='$CXXCPP $CPPFLAGS'
6373 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6374 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6375 cross_compiling=$ac_cv_prog_cxx_cross
6376 fi
6377 fi
6378 CXXCPP="$ac_cv_prog_CXXCPP"
6379 echo "$ac_t""$CXXCPP" 1>&6
6380
6381
6382 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6383
6384 ac_ext=c
6385 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6386 ac_cpp='$CPP $CPPFLAGS'
6387 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6388 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6389 cross_compiling=$ac_cv_prog_cc_cross
6390
6391
6392 # Extract the first word of "ranlib", so it can be a program name with args.
6393 set dummy ranlib; ac_word=$2
6394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6395 echo "configure:6396: checking for $ac_word" >&5
6396 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6397 echo $ac_n "(cached) $ac_c" 1>&6
6398 else
6399 if test -n "$RANLIB"; then
6400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6401 else
6402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6403 ac_dummy="$PATH"
6404 for ac_dir in $ac_dummy; do
6405 test -z "$ac_dir" && ac_dir=.
6406 if test -f $ac_dir/$ac_word; then
6407 ac_cv_prog_RANLIB="ranlib"
6408 break
6409 fi
6410 done
6411 IFS="$ac_save_ifs"
6412 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6413 fi
6414 fi
6415 RANLIB="$ac_cv_prog_RANLIB"
6416 if test -n "$RANLIB"; then
6417 echo "$ac_t""$RANLIB" 1>&6
6418 else
6419 echo "$ac_t""no" 1>&6
6420 fi
6421
6422
6423 # Extract the first word of "ar", so it can be a program name with args.
6424 set dummy ar; ac_word=$2
6425 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6426 echo "configure:6427: checking for $ac_word" >&5
6427 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6428 echo $ac_n "(cached) $ac_c" 1>&6
6429 else
6430 if test -n "$AR"; then
6431 ac_cv_prog_AR="$AR" # Let the user override the test.
6432 else
6433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6434 ac_dummy="$PATH"
6435 for ac_dir in $ac_dummy; do
6436 test -z "$ac_dir" && ac_dir=.
6437 if test -f $ac_dir/$ac_word; then
6438 ac_cv_prog_AR="ar"
6439 break
6440 fi
6441 done
6442 IFS="$ac_save_ifs"
6443 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6444 fi
6445 fi
6446 AR="$ac_cv_prog_AR"
6447 if test -n "$AR"; then
6448 echo "$ac_t""$AR" 1>&6
6449 else
6450 echo "$ac_t""no" 1>&6
6451 fi
6452
6453
6454 # Find a good install program. We prefer a C program (faster),
6455 # so one script is as good as another. But avoid the broken or
6456 # incompatible versions:
6457 # SysV /etc/install, /usr/sbin/install
6458 # SunOS /usr/etc/install
6459 # IRIX /sbin/install
6460 # AIX /bin/install
6461 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6462 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6463 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6464 # ./install, which can be erroneously created by make from ./install.sh.
6465 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6466 echo "configure:6467: checking for a BSD compatible install" >&5
6467 if test -z "$INSTALL"; then
6468 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6469 echo $ac_n "(cached) $ac_c" 1>&6
6470 else
6471 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6472 for ac_dir in $PATH; do
6473 # Account for people who put trailing slashes in PATH elements.
6474 case "$ac_dir/" in
6475 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6476 *)
6477 # OSF1 and SCO ODT 3.0 have their own names for install.
6478 # Don't use installbsd from OSF since it installs stuff as root
6479 # by default.
6480 for ac_prog in ginstall scoinst install; do
6481 if test -f $ac_dir/$ac_prog; then
6482 if test $ac_prog = install &&
6483 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6484 # AIX install. It has an incompatible calling convention.
6485 :
6486 else
6487 ac_cv_path_install="$ac_dir/$ac_prog -c"
6488 break 2
6489 fi
6490 fi
6491 done
6492 ;;
6493 esac
6494 done
6495 IFS="$ac_save_IFS"
6496
6497 fi
6498 if test "${ac_cv_path_install+set}" = set; then
6499 INSTALL="$ac_cv_path_install"
6500 else
6501 # As a last resort, use the slow shell script. We don't cache a
6502 # path for INSTALL within a source directory, because that will
6503 # break other packages using the cache if that directory is
6504 # removed, or if the path is relative.
6505 INSTALL="$ac_install_sh"
6506 fi
6507 fi
6508 echo "$ac_t""$INSTALL" 1>&6
6509
6510 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6511 # It thinks the first close brace ends the variable substitution.
6512 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6513
6514 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6515
6516 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6517
6518
6519 # Extract the first word of "strip", so it can be a program name with args.
6520 set dummy strip; ac_word=$2
6521 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6522 echo "configure:6523: checking for $ac_word" >&5
6523 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6524 echo $ac_n "(cached) $ac_c" 1>&6
6525 else
6526 if test -n "$STRIP"; then
6527 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6528 else
6529 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6530 ac_dummy="$PATH"
6531 for ac_dir in $ac_dummy; do
6532 test -z "$ac_dir" && ac_dir=.
6533 if test -f $ac_dir/$ac_word; then
6534 ac_cv_prog_STRIP="strip"
6535 break
6536 fi
6537 done
6538 IFS="$ac_save_ifs"
6539 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6540 fi
6541 fi
6542 STRIP="$ac_cv_prog_STRIP"
6543 if test -n "$STRIP"; then
6544 echo "$ac_t""$STRIP" 1>&6
6545 else
6546 echo "$ac_t""no" 1>&6
6547 fi
6548
6549
6550 echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
6551 echo "configure:6552: checking "make for VPATH support"" >&5
6552 cat - << EOF > confMake
6553 check : file
6554 cp \$? \$@
6555 cp \$? final_file
6556 EOF
6557
6558 if test ! -d sub ; then
6559 mkdir sub
6560 fi
6561 echo dummy > sub/file
6562 ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6563 RESULT=$?
6564 rm -f sub/file check final_file confMake
6565 rmdir sub
6566 if test "$RESULT" = 0; then
6567 echo "$ac_t""yes" 1>&6
6568 else
6569 echo "$ac_t""no" 1>&6
6570 { echo "configure: error: You need a make-utility that is able to use the variable
6571 VPATH correctly.
6572 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6573 fi
6574
6575 for ac_prog in 'bison -y' byacc
6576 do
6577 # Extract the first word of "$ac_prog", so it can be a program name with args.
6578 set dummy $ac_prog; ac_word=$2
6579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6580 echo "configure:6581: checking for $ac_word" >&5
6581 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6583 else
6584 if test -n "$YACC"; then
6585 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6586 else
6587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6588 ac_dummy="$PATH"
6589 for ac_dir in $ac_dummy; do
6590 test -z "$ac_dir" && ac_dir=.
6591 if test -f $ac_dir/$ac_word; then
6592 ac_cv_prog_YACC="$ac_prog"
6593 break
6594 fi
6595 done
6596 IFS="$ac_save_ifs"
6597 fi
6598 fi
6599 YACC="$ac_cv_prog_YACC"
6600 if test -n "$YACC"; then
6601 echo "$ac_t""$YACC" 1>&6
6602 else
6603 echo "$ac_t""no" 1>&6
6604 fi
6605
6606 test -n "$YACC" && break
6607 done
6608 test -n "$YACC" || YACC="yacc"
6609
6610
6611 # Extract the first word of "flex", so it can be a program name with args.
6612 set dummy flex; ac_word=$2
6613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6614 echo "configure:6615: checking for $ac_word" >&5
6615 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6616 echo $ac_n "(cached) $ac_c" 1>&6
6617 else
6618 if test -n "$LEX"; then
6619 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6620 else
6621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6622 ac_dummy="$PATH"
6623 for ac_dir in $ac_dummy; do
6624 test -z "$ac_dir" && ac_dir=.
6625 if test -f $ac_dir/$ac_word; then
6626 ac_cv_prog_LEX="flex"
6627 break
6628 fi
6629 done
6630 IFS="$ac_save_ifs"
6631 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6632 fi
6633 fi
6634 LEX="$ac_cv_prog_LEX"
6635 if test -n "$LEX"; then
6636 echo "$ac_t""$LEX" 1>&6
6637 else
6638 echo "$ac_t""no" 1>&6
6639 fi
6640
6641 if test -z "$LEXLIB"
6642 then
6643 case "$LEX" in
6644 flex*) ac_lib=fl ;;
6645 *) ac_lib=l ;;
6646 esac
6647 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
6648 echo "configure:6649: checking for yywrap in -l$ac_lib" >&5
6649 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6651 echo $ac_n "(cached) $ac_c" 1>&6
6652 else
6653 ac_save_LIBS="$LIBS"
6654 LIBS="-l$ac_lib $LIBS"
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6658 /* Override any gcc2 internal prototype to avoid an error. */
6659 /* We use char because int might match the return type of a gcc2
6660 builtin and then its argument prototype would still apply. */
6661 char yywrap();
6662
6663 int main() {
6664 yywrap()
6665 ; return 0; }
6666 EOF
6667 if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6668 rm -rf conftest*
6669 eval "ac_cv_lib_$ac_lib_var=yes"
6670 else
6671 echo "configure: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6673 rm -rf conftest*
6674 eval "ac_cv_lib_$ac_lib_var=no"
6675 fi
6676 rm -f conftest*
6677 LIBS="$ac_save_LIBS"
6678
6679 fi
6680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6681 echo "$ac_t""yes" 1>&6
6682 LEXLIB="-l$ac_lib"
6683 else
6684 echo "$ac_t""no" 1>&6
6685 fi
6686
6687 fi
6688
6689
6690 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6691 echo "configure:6692: checking whether ln -s works" >&5
6692 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6693 echo $ac_n "(cached) $ac_c" 1>&6
6694 else
6695 rm -f conftestdata
6696 if ln -s X conftestdata 2>/dev/null
6697 then
6698 rm -f conftestdata
6699 ac_cv_prog_LN_S="ln -s"
6700 else
6701 ac_cv_prog_LN_S=ln
6702 fi
6703 fi
6704 LN_S="$ac_cv_prog_LN_S"
6705 if test "$ac_cv_prog_LN_S" = "ln -s"; then
6706 echo "$ac_t""yes" 1>&6
6707 else
6708 echo "$ac_t""no" 1>&6
6709 fi
6710
6711
6712
6713 SEARCH_INCLUDE="\
6714 /usr/local/include \
6715 \
6716 /usr/Motif-1.2/include \
6717 /usr/Motif-2.1/include \
6718 \
6719 /usr/include/Motif1.2 \
6720 /opt/xpm/include/X11 \
6721 /opt/GBxpm/include/ \
6722 /opt/GBxpm/X11/include/ \
6723 \
6724 /usr/Motif1.2/include \
6725 /usr/dt/include \
6726 /usr/openwin/include \
6727 \
6728 /usr/include/Xm \
6729 \
6730 /usr/X11R6/include \
6731 /usr/X11R6.4/include \
6732 /usr/X11R5/include \
6733 /usr/X11R4/include \
6734 \
6735 /usr/include/X11R6 \
6736 /usr/include/X11R5 \
6737 /usr/include/X11R4 \
6738 \
6739 /usr/local/X11R6/include \
6740 /usr/local/X11R5/include \
6741 /usr/local/X11R4/include \
6742 \
6743 /usr/local/include/X11R6 \
6744 /usr/local/include/X11R5 \
6745 /usr/local/include/X11R4 \
6746 \
6747 /usr/X11/include \
6748 /usr/include/X11 \
6749 /usr/local/X11/include \
6750 /usr/local/include/X11 \
6751 \
6752 /usr/X386/include \
6753 /usr/x386/include \
6754 /usr/XFree86/include/X11 \
6755 \
6756 X:/XFree86/include/X11 \
6757 \
6758 /usr/include/gtk \
6759 /usr/local/include/gtk \
6760 /usr/include/glib \
6761 /usr/local/include/glib \
6762 \
6763 /usr/include/qt \
6764 /usr/local/include/qt \
6765 \
6766 /usr/include/windows \
6767 /usr/include/wine \
6768 /usr/local/include/wine \
6769 \
6770 /usr/unsupported/include \
6771 /usr/athena/include \
6772 /usr/local/x11r5/include \
6773 /usr/lpp/Xamples/include \
6774 \
6775 /usr/openwin/share/include \
6776 \
6777 /usr/include"
6778
6779 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6780
6781
6782 cat > confcache <<\EOF
6783 # This file is a shell script that caches the results of configure
6784 # tests run on this system so they can be shared between configure
6785 # scripts and configure runs. It is not useful on other systems.
6786 # If it contains results you don't want to keep, you may remove or edit it.
6787 #
6788 # By default, configure uses ./config.cache as the cache file,
6789 # creating it if it does not exist already. You can give configure
6790 # the --cache-file=FILE option to use a different cache file; that is
6791 # what configure does when it calls configure scripts in
6792 # subdirectories, so they share the cache.
6793 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6794 # config.status only pays attention to the cache file if you give it the
6795 # --recheck option to rerun configure.
6796 #
6797 EOF
6798 # The following way of writing the cache mishandles newlines in values,
6799 # but we know of no workaround that is simple, portable, and efficient.
6800 # So, don't put newlines in cache variables' values.
6801 # Ultrix sh set writes to stderr and can't be redirected directly,
6802 # and sets the high bit in the cache file unless we assign to the vars.
6803 (set) 2>&1 |
6804 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6805 *ac_space=\ *)
6806 # `set' does not quote correctly, so add quotes (double-quote substitution
6807 # turns \\\\ into \\, and sed turns \\ into \).
6808 sed -n \
6809 -e "s/'/'\\\\''/g" \
6810 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6811 ;;
6812 *)
6813 # `set' quotes correctly as required by POSIX, so do not add quotes.
6814 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6815 ;;
6816 esac >> confcache
6817 if cmp -s $cache_file confcache; then
6818 :
6819 else
6820 if test -w $cache_file; then
6821 echo "updating cache $cache_file"
6822 cat confcache > $cache_file
6823 else
6824 echo "not updating unwritable cache $cache_file"
6825 fi
6826 fi
6827 rm -f confcache
6828
6829
6830
6831 AFMINSTALL=
6832
6833 if test "$wxUSE_GUI" = "yes"; then
6834
6835 USE_GUI=1
6836
6837 TOOLKIT=
6838 TOOLKIT_INCLUDE=
6839
6840 GUIOBJS=
6841 COMMONOBJS=
6842 GENERICOBJS=
6843
6844 GUI_TK_LIBRARY=
6845 GUI_TK_LINK=
6846
6847 WXGTK12=
6848 WXGTK13=
6849
6850 WXWINE=
6851
6852 PROGRAM_EXT=
6853
6854 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6855 if test "$cross_compiling" = "yes" ; then
6856 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6857 else
6858 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
6859 echo "configure:6860: checking for Windows headers" >&5
6860
6861 ac_find_includes=
6862 for ac_dir in $SEARCH_INCLUDE;
6863 do
6864 if test -f "$ac_dir/windows.h"; then
6865 ac_find_includes=$ac_dir
6866 break
6867 fi
6868 done
6869
6870 if test "$ac_find_includes" != "" ; then
6871 echo "$ac_t""found $ac_find_includes" 1>&6
6872 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6873 else
6874 echo "$ac_t""no" 1>&6
6875 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6876 fi
6877 fi
6878
6879 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6880 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6881
6882 if test "$wxUSE_MINGW" = 1; then
6883 LDFLAGS="$LDFLAGS -mwindows"
6884 fi
6885
6886 TOOLKIT=MSW
6887
6888 GUIOBJS="\$(MSW_GUIOBJS)"
6889 GUIHEADERS="\$(MSW_HEADERS)"
6890 COMMONOBJS="\$(MSW_COMMONOBJS)"
6891 GENERICOBJS="\$(MSW_GENERICOBJS)"
6892 UNIXOBJS=
6893 GUIDIST=MSW_DIST
6894 PROGRAM_EXT=.exe
6895 fi
6896
6897 if test "$wxUSE_GTK" = 1; then
6898
6899 if test x$gtk_config_exec_prefix != x ; then
6900 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6901 if test x${GTK_CONFIG+set} != xset ; then
6902 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6903 fi
6904 fi
6905 if test x$gtk_config_prefix != x ; then
6906 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6907 if test x${GTK_CONFIG+set} != xset ; then
6908 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6909 fi
6910 fi
6911
6912 # Extract the first word of "gtk-config", so it can be a program name with args.
6913 set dummy gtk-config; ac_word=$2
6914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6915 echo "configure:6916: checking for $ac_word" >&5
6916 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6917 echo $ac_n "(cached) $ac_c" 1>&6
6918 else
6919 case "$GTK_CONFIG" in
6920 /*)
6921 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6922 ;;
6923 ?:/*)
6924 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6925 ;;
6926 *)
6927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6928 ac_dummy="$PATH"
6929 for ac_dir in $ac_dummy; do
6930 test -z "$ac_dir" && ac_dir=.
6931 if test -f $ac_dir/$ac_word; then
6932 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6933 break
6934 fi
6935 done
6936 IFS="$ac_save_ifs"
6937 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6938 ;;
6939 esac
6940 fi
6941 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6942 if test -n "$GTK_CONFIG"; then
6943 echo "$ac_t""$GTK_CONFIG" 1>&6
6944 else
6945 echo "$ac_t""no" 1>&6
6946 fi
6947
6948 min_gtk_version=1.2.3
6949 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6950 echo "configure:6951: checking for GTK - version >= $min_gtk_version" >&5
6951 no_gtk=""
6952 if test "$GTK_CONFIG" != "no" ; then
6953 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6954 GTK_LIBS=`$GTK_CONFIG --libs`
6955 ac_save_CFLAGS="$CFLAGS"
6956 ac_save_LIBS="$LIBS"
6957 CFLAGS="$CFLAGS $GTK_CFLAGS"
6958 LIBS="$LIBS $GTK_LIBS"
6959 if test "$cross_compiling" = yes; then
6960 echo $ac_n "cross compiling; assumed OK... $ac_c"
6961 else
6962 cat > conftest.$ac_ext <<EOF
6963 #line 6964 "configure"
6964 #include "confdefs.h"
6965
6966 #include <gtk/gtk.h>
6967 #include <gtk/gtkfeatures.h>
6968 #include <stdio.h>
6969
6970 int
6971 main ()
6972 {
6973 int major, minor, micro;
6974
6975 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6976 printf("%s, bad version string\n", "$min_gtk_version");
6977 exit(1);
6978 }
6979
6980 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
6981 (GTK_MINOR_VERSION != gtk_minor_version) ||
6982 (GTK_MICRO_VERSION != gtk_micro_version)) {
6983 printf("Headers vs. library version mismatch!\n");
6984 exit(1);
6985 }
6986
6987 if (gtk_minor_version == 1) return FALSE;
6988
6989 return !((gtk_major_version > major) ||
6990 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6991 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6992 }
6993
6994 EOF
6995 if { (eval echo configure:6996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6996 then
6997 :
6998 else
6999 echo "configure: failed program was:" >&5
7000 cat conftest.$ac_ext >&5
7001 rm -fr conftest*
7002 no_gtk=yes
7003 fi
7004 rm -fr conftest*
7005 fi
7006
7007 CFLAGS="$ac_save_CFLAGS"
7008 LIBS="$ac_save_LIBS"
7009 else
7010 no_gtk=yes
7011 fi
7012 if test "x$no_gtk" = x ; then
7013 echo "$ac_t""yes" 1>&6
7014 WXGTK12=1
7015 else
7016 echo "$ac_t""no" 1>&6
7017 GTK_CFLAGS=""
7018 GTK_LIBS=""
7019 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.3 or above?" 1>&2; exit 1; }
7020 fi
7021
7022
7023
7024
7025 TOOLKIT_INCLUDE="$GTK_CFLAGS"
7026 GUI_TK_LIBRARY="$GTK_LIBS -lgthread"
7027 TOOLKIT=GTK
7028
7029 AFMINSTALL=afminstall
7030
7031 GUIOBJS="\$(GTK_GUIOBJS)"
7032 GUIHEADERS="\$(GTK_HEADERS)"
7033 COMMONOBJS="\$(GTK_COMMONOBJS)"
7034 GENERICOBJS="\$(GTK_GENERICOBJS)"
7035 GUIDEPS="\$(GTK_GUIDEPS)"
7036 COMMONDEPS="\$(GTK_COMMONDEPS)"
7037 GENERICDEPS="\$(GTK_GENERICDEPS)"
7038 UNIXOBJS="\$(UNIX_OBJS)"
7039 UNIXDEPS="\$(UNIX_DEPS)"
7040 GUIDIST=GTK_DIST
7041
7042 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7043 echo "configure:7044: checking for gdk_im_open in -lgdk" >&5
7044 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7045 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7046 echo $ac_n "(cached) $ac_c" 1>&6
7047 else
7048 ac_save_LIBS="$LIBS"
7049 LIBS="-lgdk $LIBS"
7050 cat > conftest.$ac_ext <<EOF
7051 #line 7052 "configure"
7052 #include "confdefs.h"
7053 /* Override any gcc2 internal prototype to avoid an error. */
7054 /* We use char because int might match the return type of a gcc2
7055 builtin and then its argument prototype would still apply. */
7056 char gdk_im_open();
7057
7058 int main() {
7059 gdk_im_open()
7060 ; return 0; }
7061 EOF
7062 if { (eval echo configure:7063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7063 rm -rf conftest*
7064 eval "ac_cv_lib_$ac_lib_var=yes"
7065 else
7066 echo "configure: failed program was:" >&5
7067 cat conftest.$ac_ext >&5
7068 rm -rf conftest*
7069 eval "ac_cv_lib_$ac_lib_var=no"
7070 fi
7071 rm -f conftest*
7072 LIBS="$ac_save_LIBS"
7073
7074 fi
7075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7076 echo "$ac_t""yes" 1>&6
7077 cat >> confdefs.h <<\EOF
7078 #define HAVE_XIM 1
7079 EOF
7080
7081 else
7082 echo "$ac_t""no" 1>&6
7083 fi
7084
7085
7086 fi
7087
7088 if test "$wxUSE_WINE" = 1; then
7089 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
7090 echo "configure:7091: checking for WINE includes" >&5
7091
7092 ac_find_includes=
7093 for ac_dir in $SEARCH_INCLUDE;
7094 do
7095 if test -f "$ac_dir/windows.h"; then
7096 ac_find_includes=$ac_dir
7097 break
7098 fi
7099 done
7100
7101 if test "$ac_find_includes" != "" ; then
7102 echo "$ac_t""found $ac_find_includes" 1>&6
7103 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7104 else
7105 echo "$ac_t""no" 1>&6
7106 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7107 fi
7108
7109 XPM_LINK=""
7110 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7111 echo "configure:7112: checking for Xpm library" >&5
7112
7113 ac_find_libraries=
7114 for ac_dir in $SEARCH_LIB;
7115 do
7116 for ac_extension in a so sl; do
7117 if test -f "$ac_dir/libXpm.$ac_extension"; then
7118 ac_find_libraries=$ac_dir
7119 break 2
7120 fi
7121 done
7122 done
7123
7124 if test "$ac_find_libraries" != "" ; then
7125 GUI_TK_LIBRARY="-L$ac_find_libraries"
7126 XPM_LINK="-lXpm"
7127 cat >> confdefs.h <<\EOF
7128 #define wxHAVE_LIB_XPM 1
7129 EOF
7130
7131 echo "$ac_t""found at $ac_find_libraries" 1>&6
7132 else
7133 echo "$ac_t""no" 1>&6
7134 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7135 fi
7136
7137 MESA_LINK=""
7138 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
7139 echo "configure:7140: checking for Mesa library" >&5
7140
7141 ac_find_libraries=
7142 for ac_dir in $SEARCH_LIB;
7143 do
7144 for ac_extension in a so sl; do
7145 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7146 ac_find_libraries=$ac_dir
7147 break 2
7148 fi
7149 done
7150 done
7151
7152 if test "$ac_find_libraries" != "" ; then
7153 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7154 MESA_LINK="-lMesaGL"
7155 echo "$ac_t""found at $ac_find_libraries" 1>&6
7156 else
7157 { echo "configure: error: no" 1>&2; exit 1; }
7158 fi
7159
7160 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7161 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7162 WXWINE=1
7163 TOOLKIT=MSW
7164
7165 GUIHEADERS="\$(MSW_HEADERS)"
7166 GUIOBJS="\$(MSW_GUIOBJS)"
7167 COMMONOBJS="\$(MSW_COMMONOBJS)"
7168 GENERICOBJS="\$(MSW_GENERICOBJS)"
7169 GUIDEPS="\$(MSW_GUIDEPS)"
7170 COMMONDEPS="\$(MSW_COMMONDEPS)"
7171 GENERICDEPS="\$(MSW_GENERICDEPS)"
7172 UNIXOBJS="\$(UNIX_OBJS)"
7173 UNIXDEPS="\$(UNIX_DEPS)"
7174 GUIDIST=MSW_DIST
7175 fi
7176
7177 if test "$wxUSE_MOTIF" = 1; then
7178 # If we find X, set shell vars x_includes and x_libraries to the
7179 # paths, otherwise set no_x=yes.
7180 # Uses ac_ vars as temps to allow command line to override cache and checks.
7181 # --without-x overrides everything else, but does not touch the cache.
7182 echo $ac_n "checking for X""... $ac_c" 1>&6
7183 echo "configure:7184: checking for X" >&5
7184
7185 # Check whether --with-x or --without-x was given.
7186 if test "${with_x+set}" = set; then
7187 withval="$with_x"
7188 :
7189 fi
7190
7191 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7192 if test "x$with_x" = xno; then
7193 # The user explicitly disabled X.
7194 have_x=disabled
7195 else
7196 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7197 # Both variables are already set.
7198 have_x=yes
7199 else
7200 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7201 echo $ac_n "(cached) $ac_c" 1>&6
7202 else
7203 # One or both of the vars are not set, and there is no cached value.
7204 ac_x_includes=NO ac_x_libraries=NO
7205 rm -fr conftestdir
7206 if mkdir conftestdir; then
7207 cd conftestdir
7208 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7209 cat > Imakefile <<'EOF'
7210 acfindx:
7211 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7212 EOF
7213 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7215 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7216 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7217 for ac_extension in a so sl; do
7218 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7219 test -f $ac_im_libdir/libX11.$ac_extension; then
7220 ac_im_usrlibdir=$ac_im_libdir; break
7221 fi
7222 done
7223 # Screen out bogus values from the imake configuration. They are
7224 # bogus both because they are the default anyway, and because
7225 # using them would break gcc on systems where it needs fixed includes.
7226 case "$ac_im_incroot" in
7227 /usr/include) ;;
7228 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7229 esac
7230 case "$ac_im_usrlibdir" in
7231 /usr/lib | /lib) ;;
7232 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7233 esac
7234 fi
7235 cd ..
7236 rm -fr conftestdir
7237 fi
7238
7239 if test "$ac_x_includes" = NO; then
7240 # Guess where to find include files, by looking for this one X11 .h file.
7241 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
7242
7243 # First, try using that file with no special directory specified.
7244 cat > conftest.$ac_ext <<EOF
7245 #line 7246 "configure"
7246 #include "confdefs.h"
7247 #include <$x_direct_test_include>
7248 EOF
7249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7250 { (eval echo configure:7251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7252 if test -z "$ac_err"; then
7253 rm -rf conftest*
7254 # We can compile using X headers with no special include directory.
7255 ac_x_includes=
7256 else
7257 echo "$ac_err" >&5
7258 echo "configure: failed program was:" >&5
7259 cat conftest.$ac_ext >&5
7260 rm -rf conftest*
7261 # Look for the header file in a standard set of common directories.
7262 # Check X11 before X11Rn because it is often a symlink to the current release.
7263 for ac_dir in \
7264 /usr/X11/include \
7265 /usr/X11R6/include \
7266 /usr/X11R5/include \
7267 /usr/X11R4/include \
7268 \
7269 /usr/include/X11 \
7270 /usr/include/X11R6 \
7271 /usr/include/X11R5 \
7272 /usr/include/X11R4 \
7273 \
7274 /usr/local/X11/include \
7275 /usr/local/X11R6/include \
7276 /usr/local/X11R5/include \
7277 /usr/local/X11R4/include \
7278 \
7279 /usr/local/include/X11 \
7280 /usr/local/include/X11R6 \
7281 /usr/local/include/X11R5 \
7282 /usr/local/include/X11R4 \
7283 \
7284 /usr/X386/include \
7285 /usr/x386/include \
7286 /usr/XFree86/include/X11 \
7287 \
7288 /usr/include \
7289 /usr/local/include \
7290 /usr/unsupported/include \
7291 /usr/athena/include \
7292 /usr/local/x11r5/include \
7293 /usr/lpp/Xamples/include \
7294 \
7295 /usr/openwin/include \
7296 /usr/openwin/share/include \
7297 ; \
7298 do
7299 if test -r "$ac_dir/$x_direct_test_include"; then
7300 ac_x_includes=$ac_dir
7301 break
7302 fi
7303 done
7304 fi
7305 rm -f conftest*
7306 fi # $ac_x_includes = NO
7307
7308 if test "$ac_x_libraries" = NO; then
7309 # Check for the libraries.
7310
7311 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7312 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
7313
7314 # See if we find them without any special options.
7315 # Don't add to $LIBS permanently.
7316 ac_save_LIBS="$LIBS"
7317 LIBS="-l$x_direct_test_library $LIBS"
7318 cat > conftest.$ac_ext <<EOF
7319 #line 7320 "configure"
7320 #include "confdefs.h"
7321
7322 int main() {
7323 ${x_direct_test_function}()
7324 ; return 0; }
7325 EOF
7326 if { (eval echo configure:7327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7327 rm -rf conftest*
7328 LIBS="$ac_save_LIBS"
7329 # We can link X programs with no special library path.
7330 ac_x_libraries=
7331 else
7332 echo "configure: failed program was:" >&5
7333 cat conftest.$ac_ext >&5
7334 rm -rf conftest*
7335 LIBS="$ac_save_LIBS"
7336 # First see if replacing the include by lib works.
7337 # Check X11 before X11Rn because it is often a symlink to the current release.
7338 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7339 /usr/X11/lib \
7340 /usr/X11R6/lib \
7341 /usr/X11R5/lib \
7342 /usr/X11R4/lib \
7343 \
7344 /usr/lib/X11 \
7345 /usr/lib/X11R6 \
7346 /usr/lib/X11R5 \
7347 /usr/lib/X11R4 \
7348 \
7349 /usr/local/X11/lib \
7350 /usr/local/X11R6/lib \
7351 /usr/local/X11R5/lib \
7352 /usr/local/X11R4/lib \
7353 \
7354 /usr/local/lib/X11 \
7355 /usr/local/lib/X11R6 \
7356 /usr/local/lib/X11R5 \
7357 /usr/local/lib/X11R4 \
7358 \
7359 /usr/X386/lib \
7360 /usr/x386/lib \
7361 /usr/XFree86/lib/X11 \
7362 \
7363 /usr/lib \
7364 /usr/local/lib \
7365 /usr/unsupported/lib \
7366 /usr/athena/lib \
7367 /usr/local/x11r5/lib \
7368 /usr/lpp/Xamples/lib \
7369 /lib/usr/lib/X11 \
7370 \
7371 /usr/openwin/lib \
7372 /usr/openwin/share/lib \
7373 ; \
7374 do
7375 for ac_extension in a so sl; do
7376 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7377 ac_x_libraries=$ac_dir
7378 break 2
7379 fi
7380 done
7381 done
7382 fi
7383 rm -f conftest*
7384 fi # $ac_x_libraries = NO
7385
7386 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7387 # Didn't find X anywhere. Cache the known absence of X.
7388 ac_cv_have_x="have_x=no"
7389 else
7390 # Record where we found X for the cache.
7391 ac_cv_have_x="have_x=yes \
7392 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7393 fi
7394 fi
7395 fi
7396 eval "$ac_cv_have_x"
7397 fi # $with_x != no
7398
7399 if test "$have_x" != yes; then
7400 echo "$ac_t""$have_x" 1>&6
7401 no_x=yes
7402 else
7403 # If each of the values was on the command line, it overrides each guess.
7404 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7405 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7406 # Update the cache value to reflect the command line values.
7407 ac_cv_have_x="have_x=yes \
7408 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7409 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7410 fi
7411
7412 if test "$no_x" = yes; then
7413 # Not all programs may use this symbol, but it does not hurt to define it.
7414 cat >> confdefs.h <<\EOF
7415 #define X_DISPLAY_MISSING 1
7416 EOF
7417
7418 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7419 else
7420 if test -n "$x_includes"; then
7421 X_CFLAGS="$X_CFLAGS -I$x_includes"
7422 fi
7423
7424 # It would also be nice to do this for all -L options, not just this one.
7425 if test -n "$x_libraries"; then
7426 X_LIBS="$X_LIBS -L$x_libraries"
7427 # For Solaris; some versions of Sun CC require a space after -R and
7428 # others require no space. Words are not sufficient . . . .
7429 case "`(uname -sr) 2>/dev/null`" in
7430 "SunOS 5"*)
7431 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7432 echo "configure:7433: checking whether -R must be followed by a space" >&5
7433 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7434 cat > conftest.$ac_ext <<EOF
7435 #line 7436 "configure"
7436 #include "confdefs.h"
7437
7438 int main() {
7439
7440 ; return 0; }
7441 EOF
7442 if { (eval echo configure:7443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7443 rm -rf conftest*
7444 ac_R_nospace=yes
7445 else
7446 echo "configure: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7448 rm -rf conftest*
7449 ac_R_nospace=no
7450 fi
7451 rm -f conftest*
7452 if test $ac_R_nospace = yes; then
7453 echo "$ac_t""no" 1>&6
7454 X_LIBS="$X_LIBS -R$x_libraries"
7455 else
7456 LIBS="$ac_xsave_LIBS -R $x_libraries"
7457 cat > conftest.$ac_ext <<EOF
7458 #line 7459 "configure"
7459 #include "confdefs.h"
7460
7461 int main() {
7462
7463 ; return 0; }
7464 EOF
7465 if { (eval echo configure:7466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7466 rm -rf conftest*
7467 ac_R_space=yes
7468 else
7469 echo "configure: failed program was:" >&5
7470 cat conftest.$ac_ext >&5
7471 rm -rf conftest*
7472 ac_R_space=no
7473 fi
7474 rm -f conftest*
7475 if test $ac_R_space = yes; then
7476 echo "$ac_t""yes" 1>&6
7477 X_LIBS="$X_LIBS -R $x_libraries"
7478 else
7479 echo "$ac_t""neither works" 1>&6
7480 fi
7481 fi
7482 LIBS="$ac_xsave_LIBS"
7483 esac
7484 fi
7485
7486 # Check for system-dependent libraries X programs must link with.
7487 # Do this before checking for the system-independent R6 libraries
7488 # (-lICE), since we may need -lsocket or whatever for X linking.
7489
7490 if test "$ISC" = yes; then
7491 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7492 else
7493 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7494 # libraries were built with DECnet support. And karl@cs.umb.edu says
7495 # the Alpha needs dnet_stub (dnet does not exist).
7496 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7497 echo "configure:7498: checking for dnet_ntoa in -ldnet" >&5
7498 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7500 echo $ac_n "(cached) $ac_c" 1>&6
7501 else
7502 ac_save_LIBS="$LIBS"
7503 LIBS="-ldnet $LIBS"
7504 cat > conftest.$ac_ext <<EOF
7505 #line 7506 "configure"
7506 #include "confdefs.h"
7507 /* Override any gcc2 internal prototype to avoid an error. */
7508 /* We use char because int might match the return type of a gcc2
7509 builtin and then its argument prototype would still apply. */
7510 char dnet_ntoa();
7511
7512 int main() {
7513 dnet_ntoa()
7514 ; return 0; }
7515 EOF
7516 if { (eval echo configure:7517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7517 rm -rf conftest*
7518 eval "ac_cv_lib_$ac_lib_var=yes"
7519 else
7520 echo "configure: failed program was:" >&5
7521 cat conftest.$ac_ext >&5
7522 rm -rf conftest*
7523 eval "ac_cv_lib_$ac_lib_var=no"
7524 fi
7525 rm -f conftest*
7526 LIBS="$ac_save_LIBS"
7527
7528 fi
7529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7530 echo "$ac_t""yes" 1>&6
7531 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7532 else
7533 echo "$ac_t""no" 1>&6
7534 fi
7535
7536 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7537 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7538 echo "configure:7539: checking for dnet_ntoa in -ldnet_stub" >&5
7539 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7541 echo $ac_n "(cached) $ac_c" 1>&6
7542 else
7543 ac_save_LIBS="$LIBS"
7544 LIBS="-ldnet_stub $LIBS"
7545 cat > conftest.$ac_ext <<EOF
7546 #line 7547 "configure"
7547 #include "confdefs.h"
7548 /* Override any gcc2 internal prototype to avoid an error. */
7549 /* We use char because int might match the return type of a gcc2
7550 builtin and then its argument prototype would still apply. */
7551 char dnet_ntoa();
7552
7553 int main() {
7554 dnet_ntoa()
7555 ; return 0; }
7556 EOF
7557 if { (eval echo configure:7558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7558 rm -rf conftest*
7559 eval "ac_cv_lib_$ac_lib_var=yes"
7560 else
7561 echo "configure: failed program was:" >&5
7562 cat conftest.$ac_ext >&5
7563 rm -rf conftest*
7564 eval "ac_cv_lib_$ac_lib_var=no"
7565 fi
7566 rm -f conftest*
7567 LIBS="$ac_save_LIBS"
7568
7569 fi
7570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7571 echo "$ac_t""yes" 1>&6
7572 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7573 else
7574 echo "$ac_t""no" 1>&6
7575 fi
7576
7577 fi
7578
7579 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7580 # to get the SysV transport functions.
7581 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7582 # needs -lnsl.
7583 # The nsl library prevents programs from opening the X display
7584 # on Irix 5.2, according to dickey@clark.net.
7585 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7586 echo "configure:7587: checking for gethostbyname" >&5
7587 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7588 echo $ac_n "(cached) $ac_c" 1>&6
7589 else
7590 cat > conftest.$ac_ext <<EOF
7591 #line 7592 "configure"
7592 #include "confdefs.h"
7593 /* System header to define __stub macros and hopefully few prototypes,
7594 which can conflict with char gethostbyname(); below. */
7595 #include <assert.h>
7596 /* Override any gcc2 internal prototype to avoid an error. */
7597 /* We use char because int might match the return type of a gcc2
7598 builtin and then its argument prototype would still apply. */
7599 char gethostbyname();
7600 char (*f)();
7601
7602 int main() {
7603
7604 /* The GNU C library defines this for functions which it implements
7605 to always fail with ENOSYS. Some functions are actually named
7606 something starting with __ and the normal name is an alias. */
7607 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7608 choke me
7609 #else
7610 f = gethostbyname;
7611 #endif
7612
7613 ; return 0; }
7614 EOF
7615 if { (eval echo configure:7616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7616 rm -rf conftest*
7617 eval "ac_cv_func_gethostbyname=yes"
7618 else
7619 echo "configure: failed program was:" >&5
7620 cat conftest.$ac_ext >&5
7621 rm -rf conftest*
7622 eval "ac_cv_func_gethostbyname=no"
7623 fi
7624 rm -f conftest*
7625 fi
7626
7627 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7628 echo "$ac_t""yes" 1>&6
7629 :
7630 else
7631 echo "$ac_t""no" 1>&6
7632 fi
7633
7634 if test $ac_cv_func_gethostbyname = no; then
7635 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7636 echo "configure:7637: checking for gethostbyname in -lnsl" >&5
7637 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7639 echo $ac_n "(cached) $ac_c" 1>&6
7640 else
7641 ac_save_LIBS="$LIBS"
7642 LIBS="-lnsl $LIBS"
7643 cat > conftest.$ac_ext <<EOF
7644 #line 7645 "configure"
7645 #include "confdefs.h"
7646 /* Override any gcc2 internal prototype to avoid an error. */
7647 /* We use char because int might match the return type of a gcc2
7648 builtin and then its argument prototype would still apply. */
7649 char gethostbyname();
7650
7651 int main() {
7652 gethostbyname()
7653 ; return 0; }
7654 EOF
7655 if { (eval echo configure:7656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7656 rm -rf conftest*
7657 eval "ac_cv_lib_$ac_lib_var=yes"
7658 else
7659 echo "configure: failed program was:" >&5
7660 cat conftest.$ac_ext >&5
7661 rm -rf conftest*
7662 eval "ac_cv_lib_$ac_lib_var=no"
7663 fi
7664 rm -f conftest*
7665 LIBS="$ac_save_LIBS"
7666
7667 fi
7668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7669 echo "$ac_t""yes" 1>&6
7670 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7671 else
7672 echo "$ac_t""no" 1>&6
7673 fi
7674
7675 fi
7676
7677 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7678 # socket/setsockopt and other routines are undefined under SCO ODT
7679 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7680 # on later versions), says simon@lia.di.epfl.ch: it contains
7681 # gethostby* variants that don't use the nameserver (or something).
7682 # -lsocket must be given before -lnsl if both are needed.
7683 # We assume that if connect needs -lnsl, so does gethostbyname.
7684 echo $ac_n "checking for connect""... $ac_c" 1>&6
7685 echo "configure:7686: checking for connect" >&5
7686 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7687 echo $ac_n "(cached) $ac_c" 1>&6
7688 else
7689 cat > conftest.$ac_ext <<EOF
7690 #line 7691 "configure"
7691 #include "confdefs.h"
7692 /* System header to define __stub macros and hopefully few prototypes,
7693 which can conflict with char connect(); below. */
7694 #include <assert.h>
7695 /* Override any gcc2 internal prototype to avoid an error. */
7696 /* We use char because int might match the return type of a gcc2
7697 builtin and then its argument prototype would still apply. */
7698 char connect();
7699 char (*f)();
7700
7701 int main() {
7702
7703 /* The GNU C library defines this for functions which it implements
7704 to always fail with ENOSYS. Some functions are actually named
7705 something starting with __ and the normal name is an alias. */
7706 #if defined (__stub_connect) || defined (__stub___connect)
7707 choke me
7708 #else
7709 f = connect;
7710 #endif
7711
7712 ; return 0; }
7713 EOF
7714 if { (eval echo configure:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7715 rm -rf conftest*
7716 eval "ac_cv_func_connect=yes"
7717 else
7718 echo "configure: failed program was:" >&5
7719 cat conftest.$ac_ext >&5
7720 rm -rf conftest*
7721 eval "ac_cv_func_connect=no"
7722 fi
7723 rm -f conftest*
7724 fi
7725
7726 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7727 echo "$ac_t""yes" 1>&6
7728 :
7729 else
7730 echo "$ac_t""no" 1>&6
7731 fi
7732
7733 if test $ac_cv_func_connect = no; then
7734 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7735 echo "configure:7736: checking for connect in -lsocket" >&5
7736 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7738 echo $ac_n "(cached) $ac_c" 1>&6
7739 else
7740 ac_save_LIBS="$LIBS"
7741 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7742 cat > conftest.$ac_ext <<EOF
7743 #line 7744 "configure"
7744 #include "confdefs.h"
7745 /* Override any gcc2 internal prototype to avoid an error. */
7746 /* We use char because int might match the return type of a gcc2
7747 builtin and then its argument prototype would still apply. */
7748 char connect();
7749
7750 int main() {
7751 connect()
7752 ; return 0; }
7753 EOF
7754 if { (eval echo configure:7755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7755 rm -rf conftest*
7756 eval "ac_cv_lib_$ac_lib_var=yes"
7757 else
7758 echo "configure: failed program was:" >&5
7759 cat conftest.$ac_ext >&5
7760 rm -rf conftest*
7761 eval "ac_cv_lib_$ac_lib_var=no"
7762 fi
7763 rm -f conftest*
7764 LIBS="$ac_save_LIBS"
7765
7766 fi
7767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7768 echo "$ac_t""yes" 1>&6
7769 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7770 else
7771 echo "$ac_t""no" 1>&6
7772 fi
7773
7774 fi
7775
7776 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7777 echo $ac_n "checking for remove""... $ac_c" 1>&6
7778 echo "configure:7779: checking for remove" >&5
7779 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7780 echo $ac_n "(cached) $ac_c" 1>&6
7781 else
7782 cat > conftest.$ac_ext <<EOF
7783 #line 7784 "configure"
7784 #include "confdefs.h"
7785 /* System header to define __stub macros and hopefully few prototypes,
7786 which can conflict with char remove(); below. */
7787 #include <assert.h>
7788 /* Override any gcc2 internal prototype to avoid an error. */
7789 /* We use char because int might match the return type of a gcc2
7790 builtin and then its argument prototype would still apply. */
7791 char remove();
7792 char (*f)();
7793
7794 int main() {
7795
7796 /* The GNU C library defines this for functions which it implements
7797 to always fail with ENOSYS. Some functions are actually named
7798 something starting with __ and the normal name is an alias. */
7799 #if defined (__stub_remove) || defined (__stub___remove)
7800 choke me
7801 #else
7802 f = remove;
7803 #endif
7804
7805 ; return 0; }
7806 EOF
7807 if { (eval echo configure:7808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7808 rm -rf conftest*
7809 eval "ac_cv_func_remove=yes"
7810 else
7811 echo "configure: failed program was:" >&5
7812 cat conftest.$ac_ext >&5
7813 rm -rf conftest*
7814 eval "ac_cv_func_remove=no"
7815 fi
7816 rm -f conftest*
7817 fi
7818
7819 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7820 echo "$ac_t""yes" 1>&6
7821 :
7822 else
7823 echo "$ac_t""no" 1>&6
7824 fi
7825
7826 if test $ac_cv_func_remove = no; then
7827 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7828 echo "configure:7829: checking for remove in -lposix" >&5
7829 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7831 echo $ac_n "(cached) $ac_c" 1>&6
7832 else
7833 ac_save_LIBS="$LIBS"
7834 LIBS="-lposix $LIBS"
7835 cat > conftest.$ac_ext <<EOF
7836 #line 7837 "configure"
7837 #include "confdefs.h"
7838 /* Override any gcc2 internal prototype to avoid an error. */
7839 /* We use char because int might match the return type of a gcc2
7840 builtin and then its argument prototype would still apply. */
7841 char remove();
7842
7843 int main() {
7844 remove()
7845 ; return 0; }
7846 EOF
7847 if { (eval echo configure:7848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7848 rm -rf conftest*
7849 eval "ac_cv_lib_$ac_lib_var=yes"
7850 else
7851 echo "configure: failed program was:" >&5
7852 cat conftest.$ac_ext >&5
7853 rm -rf conftest*
7854 eval "ac_cv_lib_$ac_lib_var=no"
7855 fi
7856 rm -f conftest*
7857 LIBS="$ac_save_LIBS"
7858
7859 fi
7860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7861 echo "$ac_t""yes" 1>&6
7862 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7863 else
7864 echo "$ac_t""no" 1>&6
7865 fi
7866
7867 fi
7868
7869 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7870 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7871 echo "configure:7872: checking for shmat" >&5
7872 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7873 echo $ac_n "(cached) $ac_c" 1>&6
7874 else
7875 cat > conftest.$ac_ext <<EOF
7876 #line 7877 "configure"
7877 #include "confdefs.h"
7878 /* System header to define __stub macros and hopefully few prototypes,
7879 which can conflict with char shmat(); below. */
7880 #include <assert.h>
7881 /* Override any gcc2 internal prototype to avoid an error. */
7882 /* We use char because int might match the return type of a gcc2
7883 builtin and then its argument prototype would still apply. */
7884 char shmat();
7885 char (*f)();
7886
7887 int main() {
7888
7889 /* The GNU C library defines this for functions which it implements
7890 to always fail with ENOSYS. Some functions are actually named
7891 something starting with __ and the normal name is an alias. */
7892 #if defined (__stub_shmat) || defined (__stub___shmat)
7893 choke me
7894 #else
7895 f = shmat;
7896 #endif
7897
7898 ; return 0; }
7899 EOF
7900 if { (eval echo configure:7901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7901 rm -rf conftest*
7902 eval "ac_cv_func_shmat=yes"
7903 else
7904 echo "configure: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7906 rm -rf conftest*
7907 eval "ac_cv_func_shmat=no"
7908 fi
7909 rm -f conftest*
7910 fi
7911
7912 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7913 echo "$ac_t""yes" 1>&6
7914 :
7915 else
7916 echo "$ac_t""no" 1>&6
7917 fi
7918
7919 if test $ac_cv_func_shmat = no; then
7920 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7921 echo "configure:7922: checking for shmat in -lipc" >&5
7922 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7924 echo $ac_n "(cached) $ac_c" 1>&6
7925 else
7926 ac_save_LIBS="$LIBS"
7927 LIBS="-lipc $LIBS"
7928 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7931 /* Override any gcc2 internal prototype to avoid an error. */
7932 /* We use char because int might match the return type of a gcc2
7933 builtin and then its argument prototype would still apply. */
7934 char shmat();
7935
7936 int main() {
7937 shmat()
7938 ; return 0; }
7939 EOF
7940 if { (eval echo configure:7941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7941 rm -rf conftest*
7942 eval "ac_cv_lib_$ac_lib_var=yes"
7943 else
7944 echo "configure: failed program was:" >&5
7945 cat conftest.$ac_ext >&5
7946 rm -rf conftest*
7947 eval "ac_cv_lib_$ac_lib_var=no"
7948 fi
7949 rm -f conftest*
7950 LIBS="$ac_save_LIBS"
7951
7952 fi
7953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7954 echo "$ac_t""yes" 1>&6
7955 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7956 else
7957 echo "$ac_t""no" 1>&6
7958 fi
7959
7960 fi
7961 fi
7962
7963 # Check for libraries that X11R6 Xt/Xaw programs need.
7964 ac_save_LDFLAGS="$LDFLAGS"
7965 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7966 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7967 # check for ICE first), but we must link in the order -lSM -lICE or
7968 # we get undefined symbols. So assume we have SM if we have ICE.
7969 # These have to be linked with before -lX11, unlike the other
7970 # libraries we check for below, so use a different variable.
7971 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7972 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7973 echo "configure:7974: checking for IceConnectionNumber in -lICE" >&5
7974 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7976 echo $ac_n "(cached) $ac_c" 1>&6
7977 else
7978 ac_save_LIBS="$LIBS"
7979 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7980 cat > conftest.$ac_ext <<EOF
7981 #line 7982 "configure"
7982 #include "confdefs.h"
7983 /* Override any gcc2 internal prototype to avoid an error. */
7984 /* We use char because int might match the return type of a gcc2
7985 builtin and then its argument prototype would still apply. */
7986 char IceConnectionNumber();
7987
7988 int main() {
7989 IceConnectionNumber()
7990 ; return 0; }
7991 EOF
7992 if { (eval echo configure:7993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7993 rm -rf conftest*
7994 eval "ac_cv_lib_$ac_lib_var=yes"
7995 else
7996 echo "configure: failed program was:" >&5
7997 cat conftest.$ac_ext >&5
7998 rm -rf conftest*
7999 eval "ac_cv_lib_$ac_lib_var=no"
8000 fi
8001 rm -f conftest*
8002 LIBS="$ac_save_LIBS"
8003
8004 fi
8005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8006 echo "$ac_t""yes" 1>&6
8007 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8008 else
8009 echo "$ac_t""no" 1>&6
8010 fi
8011
8012 LDFLAGS="$ac_save_LDFLAGS"
8013
8014 fi
8015
8016
8017 if test "$no_x" = "yes"; then
8018 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8019 fi
8020
8021 GUI_TK_LIBRARY="$X_LIBS"
8022 TOOLKIT_INCLUDE="$X_CFLAGS"
8023
8024 AFMINSTALL=afminstall
8025
8026
8027 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
8028 echo "configure:8029: checking for Motif/Lesstif headers" >&5
8029
8030 ac_find_includes=
8031 for ac_dir in $SEARCH_INCLUDE;
8032 do
8033 if test -f "$ac_dir/Xm/Xm.h"; then
8034 ac_find_includes=$ac_dir
8035 break
8036 fi
8037 done
8038
8039 if test "$ac_find_includes" != "" ; then
8040 echo "$ac_t""found $ac_find_includes" 1>&6
8041 else
8042 echo "$ac_t""no" 1>&6
8043 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8044 fi
8045
8046 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
8047 echo "configure:8048: checking for Motif/Lesstif library" >&5
8048
8049 ac_find_libraries=
8050 for ac_dir in $SEARCH_LIB;
8051 do
8052 for ac_extension in a so sl; do
8053 if test -f "$ac_dir/libXm.$ac_extension"; then
8054 ac_find_libraries=$ac_dir
8055 break 2
8056 fi
8057 done
8058 done
8059
8060 if test "$ac_find_libraries" != "" ; then
8061
8062 ac_path_to_include=$ac_find_includes
8063 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8064 result=$?
8065 if test $result = 0; then
8066 ac_path_to_include=""
8067 else
8068 ac_path_to_include="-I$ac_find_includes"
8069 fi
8070
8071
8072 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8073 result=$?
8074 if test $result = 0; then
8075 ac_path_to_link=""
8076 else
8077 ac_path_to_link="-L$ac_find_libraries"
8078 fi
8079
8080
8081 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8082 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8083 echo "$ac_t""found at $ac_find_libraries" 1>&6
8084 else
8085 echo "$ac_t""no" 1>&6
8086 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8087 fi
8088
8089 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
8090 echo "configure:8091: checking for Xt library" >&5
8091
8092 ac_find_libraries=
8093 for ac_dir in $SEARCH_LIB;
8094 do
8095 for ac_extension in a so sl; do
8096 if test -f "$ac_dir/libXt.$ac_extension"; then
8097 ac_find_libraries=$ac_dir
8098 break 2
8099 fi
8100 done
8101 done
8102
8103 if test "$ac_find_libraries" != "" ; then
8104
8105 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8106 result=$?
8107 if test $result = 0; then
8108 ac_path_to_link=""
8109 else
8110 ac_path_to_link="-L$ac_find_libraries"
8111 fi
8112
8113 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8114 echo "$ac_t""found at $ac_find_libraries" 1>&6
8115 else
8116 echo "$ac_t""no" 1>&6
8117 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
8118 fi
8119
8120 XPM_LINK=""
8121 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8122 echo "configure:8123: checking for Xpm library" >&5
8123
8124 ac_find_libraries=
8125 for ac_dir in $SEARCH_LIB;
8126 do
8127 for ac_extension in a so sl; do
8128 if test -f "$ac_dir/libXpm.$ac_extension"; then
8129 ac_find_libraries=$ac_dir
8130 break 2
8131 fi
8132 done
8133 done
8134
8135 if test "$ac_find_libraries" != "" ; then
8136
8137 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8138 result=$?
8139 if test $result = 0; then
8140 ac_path_to_link=""
8141 else
8142 ac_path_to_link="-L$ac_find_libraries"
8143 fi
8144
8145 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8146 XPM_LINK="-lXpm "
8147 cat >> confdefs.h <<\EOF
8148 #define wxHAVE_LIB_XPM 1
8149 EOF
8150
8151 echo "$ac_t""found at $ac_find_libraries" 1>&6
8152 else
8153 echo "$ac_t""no" 1>&6
8154 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8155 fi
8156
8157 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8158 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8159 TOOLKIT=MOTIF
8160
8161 GUIHEADERS="\$(MOTIF_HEADERS)"
8162 GUIOBJS="\$(MOTIF_GUIOBJS)"
8163 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
8164 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8165 GUIDEPS="\$(MOTIF_GUIDEPS)"
8166 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
8167 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8168 UNIXOBJS="\$(UNIX_OBJS)"
8169 UNIXDEPS="\$(UNIX_DEPS)"
8170 GUIDIST=MOTIF_DIST
8171 fi
8172
8173 if test "$wxUSE_PM" = 1; then
8174 TOOLKIT=PM
8175
8176 GUIOBJS="\$(PM_GUIOBJS)"
8177 GUIHEADERS="\$(PM_HEADERS)"
8178 COMMONOBJS="\$(PM_COMMONOBJS)"
8179 GENERICOBJS="\$(PM_GENERICOBJS)"
8180 GUIDEPS="\$(PM_GUIDEPS)"
8181 COMMONDEPS="\$(PM_COMMONDEPS)"
8182 GENERICDEPS="\$(PM_GENERICDEPS)"
8183 UNIXOBJS=
8184 UNIXDEPS=
8185 GUIDIST=GTK_DIST
8186 fi
8187
8188 if test "$TOOLKIT" != "PM" ; then
8189 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
8190 else
8191 TOOLKIT_DIR="os2"
8192 fi
8193
8194 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
8195
8196 WX_LIBRARY="wx_${TOOLKIT_DIR}"
8197
8198 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(IODBCOBJS)"
8199 if test "$wxUSE_LIBJPEG" = "yes" ; then
8200 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
8201 fi
8202 if test "$wxUSE_LIBTIFF" = "yes" ; then
8203 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8204 fi
8205 if test "$wxUSE_LIBPNG" = "yes" ; then
8206 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8207 fi
8208 if test "$wxUSE_ZLIB" = "yes" ; then
8209 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8210 fi
8211 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
8212 ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)"
8213 else
8214
8215 USE_GUI=0
8216
8217 ALL_OBJECTS="\$(BASE_OBJS)"
8218 ALL_DEPFILES="\${BASE_DEPS}"
8219 ALL_HEADERS="\${BASE_HEADERS}"
8220
8221 WX_LIBRARY="wxbase"
8222 fi
8223
8224 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8225
8226 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8227
8228 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8229
8230 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8231 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8232 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8233
8234 SHARED_LD=
8235 PIC_FLAG=
8236 WX_ALL=
8237 WX_ALL_INSTALLED=
8238 BURNT_LIBRARY_NAME=
8239
8240
8241 if test "$wxUSE_SHARED" = "yes"; then
8242 case "${host}" in
8243 *-hp-hpux* )
8244 if test "$GCC" = yes ; then
8245 SHARED_LD="${CC} -shared -fPIC -o"
8246 PIC_FLAG="-fPIC"
8247 else
8248 SHARED_LD="${CXX} -b -o"
8249 PIC_FLAG="+Z"
8250 fi
8251 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8252 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8253 ;;
8254
8255 *-*-linux* )
8256 SHARED_LD="${CC} -shared -o"
8257 PIC_FLAG="-fPIC"
8258 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8259 WX_ALL="CREATE_LINKS"
8260 ;;
8261 *-*-irix5* | *-*-irix6* )
8262 if test "$GCC" = yes ; then
8263 SHARED_LD="${CC} -shared -o"
8264 PIC_FLAG="-fPIC"
8265 else
8266 SHARED_LD="${CXX} -shared -o"
8267 fi
8268 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8269 WX_ALL="CREATE_LINKS"
8270 ;;
8271 *-*-solaris2* )
8272 if test "$GCC" = yes ; then
8273 SHARED_LD="${CC} -shared -o"
8274 PIC_FLAG="-fPIC"
8275 else
8276 SHARED_LD="${CXX} -G -o"
8277 PIC_FLAG="-KPIC"
8278 fi
8279 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8280 WX_ALL="CREATE_LINKS"
8281 ;;
8282 *-*-sunos4* )
8283 SHARED_LD="${CC} -shared -o"
8284 PIC_FLAG="-fPIC"
8285 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8286 WX_ALL="CREATE_LINKS"
8287 ;;
8288 *-*-freebsd* | *-*-netbsd*)
8289 SHARED_LD="${CC} -shared -o"
8290 PIC_FLAG="-fPIC"
8291 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8292 WX_ALL="CREATE_LINKS"
8293 ;;
8294 *-*-osf* )
8295 SHARED_LD="${CXX} -shared -o"
8296 PIC_FLAG="-fPIC"
8297 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8298 WX_ALL="CREATE_LINKS"
8299 ;;
8300 *-*-dgux5* )
8301 SHARED_LD="${CXX} -shared -o"
8302 PIC_FLAG="-fPIC"
8303 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8304 WX_ALL="CREATE_LINKS"
8305 ;;
8306 *-*-sysv5* )
8307 SHARED_LD="${CC} -shared -o"
8308 PIC_FLAG="-fPIC"
8309 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8310 WX_ALL="CREATE_LINKS"
8311 ;;
8312 *-*-aix* )
8313 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8314 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8315 ;;
8316 *-*-cygwin32* )
8317 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8318 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8319 ;;
8320 *-*-mingw32* )
8321 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8322 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8323 ;;
8324 *-pc-os2_emx )
8325 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8326 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8327 ;;
8328 *-*-beos* )
8329 SHARED_LD="${LD} -shared -o"
8330 PIC_FLAG="-fPIC"
8331 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8332 WX_ALL="CREATE_LINKS"
8333 ;;
8334 *)
8335 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8336 esac
8337
8338 if test "x$WX_TARGET_LIBRARY" = "x"; then
8339 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8340 fi
8341 else
8342 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8343 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8344 fi
8345
8346
8347 for ac_hdr in strings.h
8348 do
8349 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8350 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8351 echo "configure:8352: checking for $ac_hdr" >&5
8352 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8353 echo $ac_n "(cached) $ac_c" 1>&6
8354 else
8355 cat > conftest.$ac_ext <<EOF
8356 #line 8357 "configure"
8357 #include "confdefs.h"
8358 #include <$ac_hdr>
8359 EOF
8360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8361 { (eval echo configure:8362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8363 if test -z "$ac_err"; then
8364 rm -rf conftest*
8365 eval "ac_cv_header_$ac_safe=yes"
8366 else
8367 echo "$ac_err" >&5
8368 echo "configure: failed program was:" >&5
8369 cat conftest.$ac_ext >&5
8370 rm -rf conftest*
8371 eval "ac_cv_header_$ac_safe=no"
8372 fi
8373 rm -f conftest*
8374 fi
8375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8376 echo "$ac_t""yes" 1>&6
8377 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8378 cat >> confdefs.h <<EOF
8379 #define $ac_tr_hdr 1
8380 EOF
8381
8382 else
8383 echo "$ac_t""no" 1>&6
8384 fi
8385 done
8386
8387 for ac_hdr in unistd.h
8388 do
8389 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8390 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8391 echo "configure:8392: checking for $ac_hdr" >&5
8392 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8393 echo $ac_n "(cached) $ac_c" 1>&6
8394 else
8395 cat > conftest.$ac_ext <<EOF
8396 #line 8397 "configure"
8397 #include "confdefs.h"
8398 #include <$ac_hdr>
8399 EOF
8400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8401 { (eval echo configure:8402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8403 if test -z "$ac_err"; then
8404 rm -rf conftest*
8405 eval "ac_cv_header_$ac_safe=yes"
8406 else
8407 echo "$ac_err" >&5
8408 echo "configure: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8410 rm -rf conftest*
8411 eval "ac_cv_header_$ac_safe=no"
8412 fi
8413 rm -f conftest*
8414 fi
8415 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8416 echo "$ac_t""yes" 1>&6
8417 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8418 cat >> confdefs.h <<EOF
8419 #define $ac_tr_hdr 1
8420 EOF
8421
8422 else
8423 echo "$ac_t""no" 1>&6
8424 fi
8425 done
8426
8427 for ac_hdr in wchar.h
8428 do
8429 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8431 echo "configure:8432: checking for $ac_hdr" >&5
8432 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8433 echo $ac_n "(cached) $ac_c" 1>&6
8434 else
8435 cat > conftest.$ac_ext <<EOF
8436 #line 8437 "configure"
8437 #include "confdefs.h"
8438 #include <$ac_hdr>
8439 EOF
8440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8441 { (eval echo configure:8442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8443 if test -z "$ac_err"; then
8444 rm -rf conftest*
8445 eval "ac_cv_header_$ac_safe=yes"
8446 else
8447 echo "$ac_err" >&5
8448 echo "configure: failed program was:" >&5
8449 cat conftest.$ac_ext >&5
8450 rm -rf conftest*
8451 eval "ac_cv_header_$ac_safe=no"
8452 fi
8453 rm -f conftest*
8454 fi
8455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8456 echo "$ac_t""yes" 1>&6
8457 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8458 cat >> confdefs.h <<EOF
8459 #define $ac_tr_hdr 1
8460 EOF
8461
8462 else
8463 echo "$ac_t""no" 1>&6
8464 fi
8465 done
8466
8467 for ac_hdr in wcstr.h
8468 do
8469 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8471 echo "configure:8472: checking for $ac_hdr" >&5
8472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8474 else
8475 cat > conftest.$ac_ext <<EOF
8476 #line 8477 "configure"
8477 #include "confdefs.h"
8478 #include <$ac_hdr>
8479 EOF
8480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8481 { (eval echo configure:8482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8483 if test -z "$ac_err"; then
8484 rm -rf conftest*
8485 eval "ac_cv_header_$ac_safe=yes"
8486 else
8487 echo "$ac_err" >&5
8488 echo "configure: failed program was:" >&5
8489 cat conftest.$ac_ext >&5
8490 rm -rf conftest*
8491 eval "ac_cv_header_$ac_safe=no"
8492 fi
8493 rm -f conftest*
8494 fi
8495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8496 echo "$ac_t""yes" 1>&6
8497 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8498 cat >> confdefs.h <<EOF
8499 #define $ac_tr_hdr 1
8500 EOF
8501
8502 else
8503 echo "$ac_t""no" 1>&6
8504 fi
8505 done
8506
8507 for ac_hdr in fnmatch.h
8508 do
8509 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8510 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8511 echo "configure:8512: checking for $ac_hdr" >&5
8512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8513 echo $ac_n "(cached) $ac_c" 1>&6
8514 else
8515 cat > conftest.$ac_ext <<EOF
8516 #line 8517 "configure"
8517 #include "confdefs.h"
8518 #include <$ac_hdr>
8519 EOF
8520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8521 { (eval echo configure:8522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8523 if test -z "$ac_err"; then
8524 rm -rf conftest*
8525 eval "ac_cv_header_$ac_safe=yes"
8526 else
8527 echo "$ac_err" >&5
8528 echo "configure: failed program was:" >&5
8529 cat conftest.$ac_ext >&5
8530 rm -rf conftest*
8531 eval "ac_cv_header_$ac_safe=no"
8532 fi
8533 rm -f conftest*
8534 fi
8535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8536 echo "$ac_t""yes" 1>&6
8537 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8538 cat >> confdefs.h <<EOF
8539 #define $ac_tr_hdr 1
8540 EOF
8541
8542 else
8543 echo "$ac_t""no" 1>&6
8544 fi
8545 done
8546
8547
8548 if test "$wxUSE_GUI" = "yes"; then
8549 for ac_hdr in X11/XKBlib.h
8550 do
8551 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8553 echo "configure:8554: checking for $ac_hdr" >&5
8554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8555 echo $ac_n "(cached) $ac_c" 1>&6
8556 else
8557 cat > conftest.$ac_ext <<EOF
8558 #line 8559 "configure"
8559 #include "confdefs.h"
8560 #include <$ac_hdr>
8561 EOF
8562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8563 { (eval echo configure:8564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8565 if test -z "$ac_err"; then
8566 rm -rf conftest*
8567 eval "ac_cv_header_$ac_safe=yes"
8568 else
8569 echo "$ac_err" >&5
8570 echo "configure: failed program was:" >&5
8571 cat conftest.$ac_ext >&5
8572 rm -rf conftest*
8573 eval "ac_cv_header_$ac_safe=no"
8574 fi
8575 rm -f conftest*
8576 fi
8577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8578 echo "$ac_t""yes" 1>&6
8579 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8580 cat >> confdefs.h <<EOF
8581 #define $ac_tr_hdr 1
8582 EOF
8583
8584 else
8585 echo "$ac_t""no" 1>&6
8586 fi
8587 done
8588
8589 fi
8590
8591
8592 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8593 echo "configure:8594: checking for ANSI C header files" >&5
8594 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8595 echo $ac_n "(cached) $ac_c" 1>&6
8596 else
8597 cat > conftest.$ac_ext <<EOF
8598 #line 8599 "configure"
8599 #include "confdefs.h"
8600 #include <stdlib.h>
8601 #include <stdarg.h>
8602 #include <string.h>
8603 #include <float.h>
8604 EOF
8605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8606 { (eval echo configure:8607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8608 if test -z "$ac_err"; then
8609 rm -rf conftest*
8610 ac_cv_header_stdc=yes
8611 else
8612 echo "$ac_err" >&5
8613 echo "configure: failed program was:" >&5
8614 cat conftest.$ac_ext >&5
8615 rm -rf conftest*
8616 ac_cv_header_stdc=no
8617 fi
8618 rm -f conftest*
8619
8620 if test $ac_cv_header_stdc = yes; then
8621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8622 cat > conftest.$ac_ext <<EOF
8623 #line 8624 "configure"
8624 #include "confdefs.h"
8625 #include <string.h>
8626 EOF
8627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8628 egrep "memchr" >/dev/null 2>&1; then
8629 :
8630 else
8631 rm -rf conftest*
8632 ac_cv_header_stdc=no
8633 fi
8634 rm -f conftest*
8635
8636 fi
8637
8638 if test $ac_cv_header_stdc = yes; then
8639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8640 cat > conftest.$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8643 #include <stdlib.h>
8644 EOF
8645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8646 egrep "free" >/dev/null 2>&1; then
8647 :
8648 else
8649 rm -rf conftest*
8650 ac_cv_header_stdc=no
8651 fi
8652 rm -f conftest*
8653
8654 fi
8655
8656 if test $ac_cv_header_stdc = yes; then
8657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8658 if test "$cross_compiling" = yes; then
8659 :
8660 else
8661 cat > conftest.$ac_ext <<EOF
8662 #line 8663 "configure"
8663 #include "confdefs.h"
8664 #include <ctype.h>
8665 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8666 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8667 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8668 int main () { int i; for (i = 0; i < 256; i++)
8669 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8670 exit (0); }
8671
8672 EOF
8673 if { (eval echo configure:8674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8674 then
8675 :
8676 else
8677 echo "configure: failed program was:" >&5
8678 cat conftest.$ac_ext >&5
8679 rm -fr conftest*
8680 ac_cv_header_stdc=no
8681 fi
8682 rm -fr conftest*
8683 fi
8684
8685 fi
8686 fi
8687
8688 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8689 if test $ac_cv_header_stdc = yes; then
8690 cat >> confdefs.h <<\EOF
8691 #define STDC_HEADERS 1
8692 EOF
8693
8694 fi
8695
8696 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8697 echo "configure:8698: checking for mode_t" >&5
8698 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8699 echo $ac_n "(cached) $ac_c" 1>&6
8700 else
8701 cat > conftest.$ac_ext <<EOF
8702 #line 8703 "configure"
8703 #include "confdefs.h"
8704 #include <sys/types.h>
8705 #if STDC_HEADERS
8706 #include <stdlib.h>
8707 #include <stddef.h>
8708 #endif
8709 EOF
8710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8711 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8712 rm -rf conftest*
8713 ac_cv_type_mode_t=yes
8714 else
8715 rm -rf conftest*
8716 ac_cv_type_mode_t=no
8717 fi
8718 rm -f conftest*
8719
8720 fi
8721 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8722 if test $ac_cv_type_mode_t = no; then
8723 cat >> confdefs.h <<\EOF
8724 #define mode_t int
8725 EOF
8726
8727 fi
8728
8729 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8730 echo "configure:8731: checking for off_t" >&5
8731 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8732 echo $ac_n "(cached) $ac_c" 1>&6
8733 else
8734 cat > conftest.$ac_ext <<EOF
8735 #line 8736 "configure"
8736 #include "confdefs.h"
8737 #include <sys/types.h>
8738 #if STDC_HEADERS
8739 #include <stdlib.h>
8740 #include <stddef.h>
8741 #endif
8742 EOF
8743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8744 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8745 rm -rf conftest*
8746 ac_cv_type_off_t=yes
8747 else
8748 rm -rf conftest*
8749 ac_cv_type_off_t=no
8750 fi
8751 rm -f conftest*
8752
8753 fi
8754 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8755 if test $ac_cv_type_off_t = no; then
8756 cat >> confdefs.h <<\EOF
8757 #define off_t long
8758 EOF
8759
8760 fi
8761
8762 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8763 echo "configure:8764: checking for pid_t" >&5
8764 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8765 echo $ac_n "(cached) $ac_c" 1>&6
8766 else
8767 cat > conftest.$ac_ext <<EOF
8768 #line 8769 "configure"
8769 #include "confdefs.h"
8770 #include <sys/types.h>
8771 #if STDC_HEADERS
8772 #include <stdlib.h>
8773 #include <stddef.h>
8774 #endif
8775 EOF
8776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8777 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8778 rm -rf conftest*
8779 ac_cv_type_pid_t=yes
8780 else
8781 rm -rf conftest*
8782 ac_cv_type_pid_t=no
8783 fi
8784 rm -f conftest*
8785
8786 fi
8787 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8788 if test $ac_cv_type_pid_t = no; then
8789 cat >> confdefs.h <<\EOF
8790 #define pid_t int
8791 EOF
8792
8793 fi
8794
8795 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8796 echo "configure:8797: checking for size_t" >&5
8797 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8798 echo $ac_n "(cached) $ac_c" 1>&6
8799 else
8800 cat > conftest.$ac_ext <<EOF
8801 #line 8802 "configure"
8802 #include "confdefs.h"
8803 #include <sys/types.h>
8804 #if STDC_HEADERS
8805 #include <stdlib.h>
8806 #include <stddef.h>
8807 #endif
8808 EOF
8809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8810 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8811 rm -rf conftest*
8812 ac_cv_type_size_t=yes
8813 else
8814 rm -rf conftest*
8815 ac_cv_type_size_t=no
8816 fi
8817 rm -f conftest*
8818
8819 fi
8820 echo "$ac_t""$ac_cv_type_size_t" 1>&6
8821 if test $ac_cv_type_size_t = no; then
8822 cat >> confdefs.h <<\EOF
8823 #define size_t unsigned
8824 EOF
8825
8826 fi
8827
8828 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8829 echo "configure:8830: checking for uid_t in sys/types.h" >&5
8830 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8831 echo $ac_n "(cached) $ac_c" 1>&6
8832 else
8833 cat > conftest.$ac_ext <<EOF
8834 #line 8835 "configure"
8835 #include "confdefs.h"
8836 #include <sys/types.h>
8837 EOF
8838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8839 egrep "uid_t" >/dev/null 2>&1; then
8840 rm -rf conftest*
8841 ac_cv_type_uid_t=yes
8842 else
8843 rm -rf conftest*
8844 ac_cv_type_uid_t=no
8845 fi
8846 rm -f conftest*
8847
8848 fi
8849
8850 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8851 if test $ac_cv_type_uid_t = no; then
8852 cat >> confdefs.h <<\EOF
8853 #define uid_t int
8854 EOF
8855
8856 cat >> confdefs.h <<\EOF
8857 #define gid_t int
8858 EOF
8859
8860 fi
8861
8862
8863
8864 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
8865 echo "configure:8866: checking for pw_gecos in struct passwd" >&5
8866 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
8867 echo $ac_n "(cached) $ac_c" 1>&6
8868 else
8869
8870 cat > conftest.$ac_ext <<EOF
8871 #line 8872 "configure"
8872 #include "confdefs.h"
8873 #include <pwd.h>
8874 int main() {
8875
8876 char *p;
8877 struct passwd *pw;
8878 p = pw->pw_gecos;
8879
8880 ; return 0; }
8881 EOF
8882 if { (eval echo configure:8883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8883 rm -rf conftest*
8884
8885 wx_cv_struct_pw_gecos=yes
8886 cat >> confdefs.h <<\EOF
8887 #define HAVE_PW_GECOS 1
8888 EOF
8889
8890
8891 else
8892 echo "configure: failed program was:" >&5
8893 cat conftest.$ac_ext >&5
8894 rm -rf conftest*
8895
8896 wx_cv_struct_pw_gecos=no
8897
8898
8899 fi
8900 rm -f conftest*
8901
8902
8903 fi
8904
8905 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
8906
8907
8908 echo $ac_n "checking for working const""... $ac_c" 1>&6
8909 echo "configure:8910: checking for working const" >&5
8910 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8911 echo $ac_n "(cached) $ac_c" 1>&6
8912 else
8913 cat > conftest.$ac_ext <<EOF
8914 #line 8915 "configure"
8915 #include "confdefs.h"
8916
8917 int main() {
8918
8919 /* Ultrix mips cc rejects this. */
8920 typedef int charset[2]; const charset x;
8921 /* SunOS 4.1.1 cc rejects this. */
8922 char const *const *ccp;
8923 char **p;
8924 /* NEC SVR4.0.2 mips cc rejects this. */
8925 struct point {int x, y;};
8926 static struct point const zero = {0,0};
8927 /* AIX XL C 1.02.0.0 rejects this.
8928 It does not let you subtract one const X* pointer from another in an arm
8929 of an if-expression whose if-part is not a constant expression */
8930 const char *g = "string";
8931 ccp = &g + (g ? g-g : 0);
8932 /* HPUX 7.0 cc rejects these. */
8933 ++ccp;
8934 p = (char**) ccp;
8935 ccp = (char const *const *) p;
8936 { /* SCO 3.2v4 cc rejects this. */
8937 char *t;
8938 char const *s = 0 ? (char *) 0 : (char const *) 0;
8939
8940 *t++ = 0;
8941 }
8942 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8943 int x[] = {25, 17};
8944 const int *foo = &x[0];
8945 ++foo;
8946 }
8947 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8948 typedef const int *iptr;
8949 iptr p = 0;
8950 ++p;
8951 }
8952 { /* AIX XL C 1.02.0.0 rejects this saying
8953 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8954 struct s { int j; const int *ap[3]; };
8955 struct s *b; b->j = 5;
8956 }
8957 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8958 const int foo = 10;
8959 }
8960
8961 ; return 0; }
8962 EOF
8963 if { (eval echo configure:8964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8964 rm -rf conftest*
8965 ac_cv_c_const=yes
8966 else
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8969 rm -rf conftest*
8970 ac_cv_c_const=no
8971 fi
8972 rm -f conftest*
8973 fi
8974
8975 echo "$ac_t""$ac_cv_c_const" 1>&6
8976 if test $ac_cv_c_const = no; then
8977 cat >> confdefs.h <<\EOF
8978 #define const
8979 EOF
8980
8981 fi
8982
8983 echo $ac_n "checking for inline""... $ac_c" 1>&6
8984 echo "configure:8985: checking for inline" >&5
8985 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8986 echo $ac_n "(cached) $ac_c" 1>&6
8987 else
8988 ac_cv_c_inline=no
8989 for ac_kw in inline __inline__ __inline; do
8990 cat > conftest.$ac_ext <<EOF
8991 #line 8992 "configure"
8992 #include "confdefs.h"
8993
8994 int main() {
8995 } $ac_kw foo() {
8996 ; return 0; }
8997 EOF
8998 if { (eval echo configure:8999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8999 rm -rf conftest*
9000 ac_cv_c_inline=$ac_kw; break
9001 else
9002 echo "configure: failed program was:" >&5
9003 cat conftest.$ac_ext >&5
9004 fi
9005 rm -f conftest*
9006 done
9007
9008 fi
9009
9010 echo "$ac_t""$ac_cv_c_inline" 1>&6
9011 case "$ac_cv_c_inline" in
9012 inline | yes) ;;
9013 no) cat >> confdefs.h <<\EOF
9014 #define inline
9015 EOF
9016 ;;
9017 *) cat >> confdefs.h <<EOF
9018 #define inline $ac_cv_c_inline
9019 EOF
9020 ;;
9021 esac
9022
9023
9024 echo $ac_n "checking size of char""... $ac_c" 1>&6
9025 echo "configure:9026: checking size of char" >&5
9026 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9027 echo $ac_n "(cached) $ac_c" 1>&6
9028 else
9029 if test "$cross_compiling" = yes; then
9030 ac_cv_sizeof_char=1
9031 else
9032 cat > conftest.$ac_ext <<EOF
9033 #line 9034 "configure"
9034 #include "confdefs.h"
9035 #include <stdio.h>
9036 main()
9037 {
9038 FILE *f=fopen("conftestval", "w");
9039 if (!f) exit(1);
9040 fprintf(f, "%d\n", sizeof(char));
9041 exit(0);
9042 }
9043 EOF
9044 if { (eval echo configure:9045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9045 then
9046 ac_cv_sizeof_char=`cat conftestval`
9047 else
9048 echo "configure: failed program was:" >&5
9049 cat conftest.$ac_ext >&5
9050 rm -fr conftest*
9051 ac_cv_sizeof_char=0
9052 fi
9053 rm -fr conftest*
9054 fi
9055
9056 fi
9057 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9058 cat >> confdefs.h <<EOF
9059 #define SIZEOF_CHAR $ac_cv_sizeof_char
9060 EOF
9061
9062
9063 echo $ac_n "checking size of short""... $ac_c" 1>&6
9064 echo "configure:9065: checking size of short" >&5
9065 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9066 echo $ac_n "(cached) $ac_c" 1>&6
9067 else
9068 if test "$cross_compiling" = yes; then
9069 ac_cv_sizeof_short=2
9070 else
9071 cat > conftest.$ac_ext <<EOF
9072 #line 9073 "configure"
9073 #include "confdefs.h"
9074 #include <stdio.h>
9075 main()
9076 {
9077 FILE *f=fopen("conftestval", "w");
9078 if (!f) exit(1);
9079 fprintf(f, "%d\n", sizeof(short));
9080 exit(0);
9081 }
9082 EOF
9083 if { (eval echo configure:9084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9084 then
9085 ac_cv_sizeof_short=`cat conftestval`
9086 else
9087 echo "configure: failed program was:" >&5
9088 cat conftest.$ac_ext >&5
9089 rm -fr conftest*
9090 ac_cv_sizeof_short=0
9091 fi
9092 rm -fr conftest*
9093 fi
9094
9095 fi
9096 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9097 cat >> confdefs.h <<EOF
9098 #define SIZEOF_SHORT $ac_cv_sizeof_short
9099 EOF
9100
9101
9102 echo $ac_n "checking size of int *""... $ac_c" 1>&6
9103 echo "configure:9104: checking size of int *" >&5
9104 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9105 echo $ac_n "(cached) $ac_c" 1>&6
9106 else
9107 if test "$cross_compiling" = yes; then
9108 ac_cv_sizeof_int_p=4
9109 else
9110 cat > conftest.$ac_ext <<EOF
9111 #line 9112 "configure"
9112 #include "confdefs.h"
9113 #include <stdio.h>
9114 main()
9115 {
9116 FILE *f=fopen("conftestval", "w");
9117 if (!f) exit(1);
9118 fprintf(f, "%d\n", sizeof(int *));
9119 exit(0);
9120 }
9121 EOF
9122 if { (eval echo configure:9123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9123 then
9124 ac_cv_sizeof_int_p=`cat conftestval`
9125 else
9126 echo "configure: failed program was:" >&5
9127 cat conftest.$ac_ext >&5
9128 rm -fr conftest*
9129 ac_cv_sizeof_int_p=0
9130 fi
9131 rm -fr conftest*
9132 fi
9133
9134 fi
9135 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9136 cat >> confdefs.h <<EOF
9137 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9138 EOF
9139
9140
9141 echo $ac_n "checking size of int""... $ac_c" 1>&6
9142 echo "configure:9143: checking size of int" >&5
9143 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9144 echo $ac_n "(cached) $ac_c" 1>&6
9145 else
9146 if test "$cross_compiling" = yes; then
9147 ac_cv_sizeof_int=4
9148 else
9149 cat > conftest.$ac_ext <<EOF
9150 #line 9151 "configure"
9151 #include "confdefs.h"
9152 #include <stdio.h>
9153 main()
9154 {
9155 FILE *f=fopen("conftestval", "w");
9156 if (!f) exit(1);
9157 fprintf(f, "%d\n", sizeof(int));
9158 exit(0);
9159 }
9160 EOF
9161 if { (eval echo configure:9162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9162 then
9163 ac_cv_sizeof_int=`cat conftestval`
9164 else
9165 echo "configure: failed program was:" >&5
9166 cat conftest.$ac_ext >&5
9167 rm -fr conftest*
9168 ac_cv_sizeof_int=0
9169 fi
9170 rm -fr conftest*
9171 fi
9172
9173 fi
9174 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9175 cat >> confdefs.h <<EOF
9176 #define SIZEOF_INT $ac_cv_sizeof_int
9177 EOF
9178
9179
9180 echo $ac_n "checking size of long""... $ac_c" 1>&6
9181 echo "configure:9182: checking size of long" >&5
9182 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9183 echo $ac_n "(cached) $ac_c" 1>&6
9184 else
9185 if test "$cross_compiling" = yes; then
9186 ac_cv_sizeof_long=4
9187 else
9188 cat > conftest.$ac_ext <<EOF
9189 #line 9190 "configure"
9190 #include "confdefs.h"
9191 #include <stdio.h>
9192 main()
9193 {
9194 FILE *f=fopen("conftestval", "w");
9195 if (!f) exit(1);
9196 fprintf(f, "%d\n", sizeof(long));
9197 exit(0);
9198 }
9199 EOF
9200 if { (eval echo configure:9201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9201 then
9202 ac_cv_sizeof_long=`cat conftestval`
9203 else
9204 echo "configure: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9206 rm -fr conftest*
9207 ac_cv_sizeof_long=0
9208 fi
9209 rm -fr conftest*
9210 fi
9211
9212 fi
9213 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9214 cat >> confdefs.h <<EOF
9215 #define SIZEOF_LONG $ac_cv_sizeof_long
9216 EOF
9217
9218
9219 echo $ac_n "checking size of long long""... $ac_c" 1>&6
9220 echo "configure:9221: checking size of long long" >&5
9221 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9222 echo $ac_n "(cached) $ac_c" 1>&6
9223 else
9224 if test "$cross_compiling" = yes; then
9225 ac_cv_sizeof_long_long=0
9226 else
9227 cat > conftest.$ac_ext <<EOF
9228 #line 9229 "configure"
9229 #include "confdefs.h"
9230 #include <stdio.h>
9231 main()
9232 {
9233 FILE *f=fopen("conftestval", "w");
9234 if (!f) exit(1);
9235 fprintf(f, "%d\n", sizeof(long long));
9236 exit(0);
9237 }
9238 EOF
9239 if { (eval echo configure:9240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9240 then
9241 ac_cv_sizeof_long_long=`cat conftestval`
9242 else
9243 echo "configure: failed program was:" >&5
9244 cat conftest.$ac_ext >&5
9245 rm -fr conftest*
9246 ac_cv_sizeof_long_long=0
9247 fi
9248 rm -fr conftest*
9249 fi
9250
9251 fi
9252 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9253 cat >> confdefs.h <<EOF
9254 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9255 EOF
9256
9257
9258
9259 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9260 echo "configure:9261: checking whether byte ordering is bigendian" >&5
9261 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9262 echo $ac_n "(cached) $ac_c" 1>&6
9263 else
9264 ac_cv_c_bigendian=unknown
9265 # See if sys/param.h defines the BYTE_ORDER macro.
9266 cat > conftest.$ac_ext <<EOF
9267 #line 9268 "configure"
9268 #include "confdefs.h"
9269 #include <sys/types.h>
9270 #include <sys/param.h>
9271 int main() {
9272
9273 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9274 bogus endian macros
9275 #endif
9276 ; return 0; }
9277 EOF
9278 if { (eval echo configure:9279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9279 rm -rf conftest*
9280 # It does; now see whether it defined to BIG_ENDIAN or not.
9281 cat > conftest.$ac_ext <<EOF
9282 #line 9283 "configure"
9283 #include "confdefs.h"
9284 #include <sys/types.h>
9285 #include <sys/param.h>
9286 int main() {
9287
9288 #if BYTE_ORDER != BIG_ENDIAN
9289 not big endian
9290 #endif
9291 ; return 0; }
9292 EOF
9293 if { (eval echo configure:9294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9294 rm -rf conftest*
9295 ac_cv_c_bigendian=yes
9296 else
9297 echo "configure: failed program was:" >&5
9298 cat conftest.$ac_ext >&5
9299 rm -rf conftest*
9300 ac_cv_c_bigendian=no
9301 fi
9302 rm -f conftest*
9303 else
9304 echo "configure: failed program was:" >&5
9305 cat conftest.$ac_ext >&5
9306 fi
9307 rm -f conftest*
9308 if test $ac_cv_c_bigendian = unknown; then
9309 if test "$cross_compiling" = yes; then
9310 ac_cv_c_bigendian=unknown
9311 else
9312 cat > conftest.$ac_ext <<EOF
9313 #line 9314 "configure"
9314 #include "confdefs.h"
9315 main () {
9316 /* Are we little or big endian? From Harbison&Steele. */
9317 union
9318 {
9319 long l;
9320 char c[sizeof (long)];
9321 } u;
9322 u.l = 1;
9323 exit (u.c[sizeof (long) - 1] == 1);
9324 }
9325 EOF
9326 if { (eval echo configure:9327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9327 then
9328 ac_cv_c_bigendian=no
9329 else
9330 echo "configure: failed program was:" >&5
9331 cat conftest.$ac_ext >&5
9332 rm -fr conftest*
9333 ac_cv_c_bigendian=yes
9334 fi
9335 rm -fr conftest*
9336 fi
9337
9338 fi
9339 fi
9340
9341 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9342 if test $ac_cv_c_bigendian = unknown; then
9343 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
9344 fi
9345 if test $ac_cv_c_bigendian = yes; then
9346 cat >> confdefs.h <<\EOF
9347 #define WORDS_BIGENDIAN 1
9348 EOF
9349
9350 fi
9351
9352
9353
9354 if test "$cross_compiling" = "yes"; then
9355 cat >> confdefs.h <<\EOF
9356 #define wxUSE_IOSTREAMH 1
9357 EOF
9358
9359 else
9360
9361 ac_ext=C
9362 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9363 ac_cpp='$CXXCPP $CPPFLAGS'
9364 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9365 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9366 cross_compiling=$ac_cv_prog_cxx_cross
9367
9368
9369 for ac_hdr in iostream
9370 do
9371 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9372 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9373 echo "configure:9374: checking for $ac_hdr" >&5
9374 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9375 echo $ac_n "(cached) $ac_c" 1>&6
9376 else
9377 cat > conftest.$ac_ext <<EOF
9378 #line 9379 "configure"
9379 #include "confdefs.h"
9380 #include <$ac_hdr>
9381 EOF
9382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9383 { (eval echo configure:9384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9385 if test -z "$ac_err"; then
9386 rm -rf conftest*
9387 eval "ac_cv_header_$ac_safe=yes"
9388 else
9389 echo "$ac_err" >&5
9390 echo "configure: failed program was:" >&5
9391 cat conftest.$ac_ext >&5
9392 rm -rf conftest*
9393 eval "ac_cv_header_$ac_safe=no"
9394 fi
9395 rm -f conftest*
9396 fi
9397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9398 echo "$ac_t""yes" 1>&6
9399 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9400 cat >> confdefs.h <<EOF
9401 #define $ac_tr_hdr 1
9402 EOF
9403
9404 else
9405 echo "$ac_t""no" 1>&6
9406 fi
9407 done
9408
9409
9410 if test "x$HAVE_IOSTREAM" = x ; then
9411 cat >> confdefs.h <<\EOF
9412 #define wxUSE_IOSTREAMH 1
9413 EOF
9414
9415 else
9416 :
9417 fi
9418
9419 ac_ext=c
9420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9421 ac_cpp='$CPP $CPPFLAGS'
9422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9424 cross_compiling=$ac_cv_prog_cc_cross
9425
9426 fi
9427
9428
9429
9430 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
9431 echo "configure:9432: checking if C++ compiler supports bool" >&5
9432 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9433 echo $ac_n "(cached) $ac_c" 1>&6
9434 else
9435
9436
9437 ac_ext=C
9438 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9439 ac_cpp='$CXXCPP $CPPFLAGS'
9440 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9441 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9442 cross_compiling=$ac_cv_prog_cxx_cross
9443
9444
9445 cat > conftest.$ac_ext <<EOF
9446 #line 9447 "configure"
9447 #include "confdefs.h"
9448
9449
9450 int main() {
9451
9452 bool b = true;
9453
9454 return 0;
9455
9456 ; return 0; }
9457 EOF
9458 if { (eval echo configure:9459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9459 rm -rf conftest*
9460
9461 cat >> confdefs.h <<\EOF
9462 #define HAVE_BOOL 1
9463 EOF
9464
9465 wx_cv_cpp_bool=yes
9466
9467 else
9468 echo "configure: failed program was:" >&5
9469 cat conftest.$ac_ext >&5
9470 rm -rf conftest*
9471
9472 wx_cv_cpp_bool=no
9473
9474
9475 fi
9476 rm -f conftest*
9477
9478 ac_ext=c
9479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9480 ac_cpp='$CPP $CPPFLAGS'
9481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9483 cross_compiling=$ac_cv_prog_cc_cross
9484
9485
9486 fi
9487
9488 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9489
9490 if test "$wx_cv_cpp_bool" = "yes"; then
9491 cat >> confdefs.h <<\EOF
9492 #define HAVE_BOOL 1
9493 EOF
9494
9495 fi
9496
9497
9498
9499 echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
9500 echo "configure:9501: checking if you need GNU extensions" >&5
9501 if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9502 echo $ac_n "(cached) $ac_c" 1>&6
9503 else
9504
9505 cat > conftest.$ac_ext <<EOF
9506 #line 9507 "configure"
9507 #include "confdefs.h"
9508 #include <features.h>
9509 int main() {
9510
9511
9512 #ifndef __GNU_LIBRARY__
9513 Compile error wanted
9514 #endif
9515
9516
9517 ; return 0; }
9518 EOF
9519 if { (eval echo configure:9520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9520 rm -rf conftest*
9521 wx_cv_gnu_extensions=yes
9522 else
9523 echo "configure: failed program was:" >&5
9524 cat conftest.$ac_ext >&5
9525 rm -rf conftest*
9526 wx_cv_gnu_extensions=no
9527 fi
9528 rm -f conftest*
9529
9530 fi
9531
9532
9533 echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9534 if test "$wx_cv_gnu_extensions" = "yes"; then
9535 cat >> confdefs.h <<EOF
9536 #define _GNU_SOURCE 1
9537 EOF
9538
9539 fi
9540
9541
9542
9543 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
9544 echo "configure:9545: checking for wcslen in -lc" >&5
9545 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9546 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9547 echo $ac_n "(cached) $ac_c" 1>&6
9548 else
9549 ac_save_LIBS="$LIBS"
9550 LIBS="-lc $LIBS"
9551 cat > conftest.$ac_ext <<EOF
9552 #line 9553 "configure"
9553 #include "confdefs.h"
9554 /* Override any gcc2 internal prototype to avoid an error. */
9555 /* We use char because int might match the return type of a gcc2
9556 builtin and then its argument prototype would still apply. */
9557 char wcslen();
9558
9559 int main() {
9560 wcslen()
9561 ; return 0; }
9562 EOF
9563 if { (eval echo configure:9564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9564 rm -rf conftest*
9565 eval "ac_cv_lib_$ac_lib_var=yes"
9566 else
9567 echo "configure: failed program was:" >&5
9568 cat conftest.$ac_ext >&5
9569 rm -rf conftest*
9570 eval "ac_cv_lib_$ac_lib_var=no"
9571 fi
9572 rm -f conftest*
9573 LIBS="$ac_save_LIBS"
9574
9575 fi
9576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9577 echo "$ac_t""yes" 1>&6
9578
9579 cat >> confdefs.h <<\EOF
9580 #define HAVE_WCSLEN 1
9581 EOF
9582
9583 WCHAR_LINK=""
9584
9585 else
9586 echo "$ac_t""no" 1>&6
9587
9588 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
9589 echo "configure:9590: checking for wcslen in -lw" >&5
9590 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9592 echo $ac_n "(cached) $ac_c" 1>&6
9593 else
9594 ac_save_LIBS="$LIBS"
9595 LIBS="-lw $LIBS"
9596 cat > conftest.$ac_ext <<EOF
9597 #line 9598 "configure"
9598 #include "confdefs.h"
9599 /* Override any gcc2 internal prototype to avoid an error. */
9600 /* We use char because int might match the return type of a gcc2
9601 builtin and then its argument prototype would still apply. */
9602 char wcslen();
9603
9604 int main() {
9605 wcslen()
9606 ; return 0; }
9607 EOF
9608 if { (eval echo configure:9609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9609 rm -rf conftest*
9610 eval "ac_cv_lib_$ac_lib_var=yes"
9611 else
9612 echo "configure: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
9614 rm -rf conftest*
9615 eval "ac_cv_lib_$ac_lib_var=no"
9616 fi
9617 rm -f conftest*
9618 LIBS="$ac_save_LIBS"
9619
9620 fi
9621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9622 echo "$ac_t""yes" 1>&6
9623
9624 cat >> confdefs.h <<\EOF
9625 #define HAVE_WCSLEN 1
9626 EOF
9627
9628 WCHAR_LINK="-lw"
9629
9630 else
9631 echo "$ac_t""no" 1>&6
9632 fi
9633
9634
9635 fi
9636
9637
9638 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9639 echo "configure:9640: checking for vprintf" >&5
9640 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9641 echo $ac_n "(cached) $ac_c" 1>&6
9642 else
9643 cat > conftest.$ac_ext <<EOF
9644 #line 9645 "configure"
9645 #include "confdefs.h"
9646 /* System header to define __stub macros and hopefully few prototypes,
9647 which can conflict with char vprintf(); below. */
9648 #include <assert.h>
9649 /* Override any gcc2 internal prototype to avoid an error. */
9650 /* We use char because int might match the return type of a gcc2
9651 builtin and then its argument prototype would still apply. */
9652 char vprintf();
9653 char (*f)();
9654
9655 int main() {
9656
9657 /* The GNU C library defines this for functions which it implements
9658 to always fail with ENOSYS. Some functions are actually named
9659 something starting with __ and the normal name is an alias. */
9660 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9661 choke me
9662 #else
9663 f = vprintf;
9664 #endif
9665
9666 ; return 0; }
9667 EOF
9668 if { (eval echo configure:9669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9669 rm -rf conftest*
9670 eval "ac_cv_func_vprintf=yes"
9671 else
9672 echo "configure: failed program was:" >&5
9673 cat conftest.$ac_ext >&5
9674 rm -rf conftest*
9675 eval "ac_cv_func_vprintf=no"
9676 fi
9677 rm -f conftest*
9678 fi
9679
9680 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9681 echo "$ac_t""yes" 1>&6
9682 cat >> confdefs.h <<\EOF
9683 #define HAVE_VPRINTF 1
9684 EOF
9685
9686 else
9687 echo "$ac_t""no" 1>&6
9688 fi
9689
9690 if test "$ac_cv_func_vprintf" != yes; then
9691 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9692 echo "configure:9693: checking for _doprnt" >&5
9693 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9694 echo $ac_n "(cached) $ac_c" 1>&6
9695 else
9696 cat > conftest.$ac_ext <<EOF
9697 #line 9698 "configure"
9698 #include "confdefs.h"
9699 /* System header to define __stub macros and hopefully few prototypes,
9700 which can conflict with char _doprnt(); below. */
9701 #include <assert.h>
9702 /* Override any gcc2 internal prototype to avoid an error. */
9703 /* We use char because int might match the return type of a gcc2
9704 builtin and then its argument prototype would still apply. */
9705 char _doprnt();
9706 char (*f)();
9707
9708 int main() {
9709
9710 /* The GNU C library defines this for functions which it implements
9711 to always fail with ENOSYS. Some functions are actually named
9712 something starting with __ and the normal name is an alias. */
9713 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9714 choke me
9715 #else
9716 f = _doprnt;
9717 #endif
9718
9719 ; return 0; }
9720 EOF
9721 if { (eval echo configure:9722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9722 rm -rf conftest*
9723 eval "ac_cv_func__doprnt=yes"
9724 else
9725 echo "configure: failed program was:" >&5
9726 cat conftest.$ac_ext >&5
9727 rm -rf conftest*
9728 eval "ac_cv_func__doprnt=no"
9729 fi
9730 rm -f conftest*
9731 fi
9732
9733 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9734 echo "$ac_t""yes" 1>&6
9735 cat >> confdefs.h <<\EOF
9736 #define HAVE_DOPRNT 1
9737 EOF
9738
9739 else
9740 echo "$ac_t""no" 1>&6
9741 fi
9742
9743 fi
9744
9745
9746 for ac_func in vsnprintf
9747 do
9748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9749 echo "configure:9750: checking for $ac_func" >&5
9750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9751 echo $ac_n "(cached) $ac_c" 1>&6
9752 else
9753 cat > conftest.$ac_ext <<EOF
9754 #line 9755 "configure"
9755 #include "confdefs.h"
9756 /* System header to define __stub macros and hopefully few prototypes,
9757 which can conflict with char $ac_func(); below. */
9758 #include <assert.h>
9759 /* Override any gcc2 internal prototype to avoid an error. */
9760 /* We use char because int might match the return type of a gcc2
9761 builtin and then its argument prototype would still apply. */
9762 char $ac_func();
9763 char (*f)();
9764
9765 int main() {
9766
9767 /* The GNU C library defines this for functions which it implements
9768 to always fail with ENOSYS. Some functions are actually named
9769 something starting with __ and the normal name is an alias. */
9770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9771 choke me
9772 #else
9773 f = $ac_func;
9774 #endif
9775
9776 ; return 0; }
9777 EOF
9778 if { (eval echo configure:9779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9779 rm -rf conftest*
9780 eval "ac_cv_func_$ac_func=yes"
9781 else
9782 echo "configure: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9784 rm -rf conftest*
9785 eval "ac_cv_func_$ac_func=no"
9786 fi
9787 rm -f conftest*
9788 fi
9789
9790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9791 echo "$ac_t""yes" 1>&6
9792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9793 cat >> confdefs.h <<EOF
9794 #define $ac_tr_func 1
9795 EOF
9796 cat >> confdefs.h <<\EOF
9797 #define HAVE_VSNPRINTF 1
9798 EOF
9799
9800 else
9801 echo "$ac_t""no" 1>&6
9802 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9803
9804 fi
9805 done
9806
9807
9808
9809 ac_ext=C
9810 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9811 ac_cpp='$CXXCPP $CPPFLAGS'
9812 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9813 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9814 cross_compiling=$ac_cv_prog_cxx_cross
9815
9816
9817 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
9818 echo "configure:9819: checking for vsscanf" >&5
9819 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9820 echo $ac_n "(cached) $ac_c" 1>&6
9821 else
9822
9823 if test "$cross_compiling" = yes; then
9824 wx_cv_func_vsscanf=no
9825
9826 else
9827 cat > conftest.$ac_ext <<EOF
9828 #line 9829 "configure"
9829 #include "confdefs.h"
9830 #ifdef __cplusplus
9831 extern "C" void exit(int);
9832 #endif
9833
9834 #include <stdio.h>
9835 #include <stdarg.h>
9836
9837 int try_vsscanf(const char *format, ...)
9838 {
9839 va_list ap;
9840 va_start(ap, format);
9841
9842 vsscanf("17", format, ap);
9843
9844 va_end(ap);
9845 }
9846
9847 int main()
9848 {
9849 int i;
9850 try_vsscanf("%d", &i);
9851 return i == 17 ? 0 : 1;
9852 }
9853
9854 EOF
9855 if { (eval echo configure:9856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9856 then
9857
9858 cat >> confdefs.h <<\EOF
9859 #define HAVE_VSSCANF 1
9860 EOF
9861
9862 wx_cv_func_vsscanf=yes
9863
9864 else
9865 echo "configure: failed program was:" >&5
9866 cat conftest.$ac_ext >&5
9867 rm -fr conftest*
9868 wx_cv_func_vsscanf=no
9869 fi
9870 rm -fr conftest*
9871 fi
9872
9873
9874 fi
9875
9876 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9877
9878 ac_ext=c
9879 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9880 ac_cpp='$CPP $CPPFLAGS'
9881 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9882 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9883 cross_compiling=$ac_cv_prog_cc_cross
9884
9885
9886 if test "$USE_UNIX" = 1; then
9887
9888 for ac_func in vfork
9889 do
9890 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9891 echo "configure:9892: checking for $ac_func" >&5
9892 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9893 echo $ac_n "(cached) $ac_c" 1>&6
9894 else
9895 cat > conftest.$ac_ext <<EOF
9896 #line 9897 "configure"
9897 #include "confdefs.h"
9898 /* System header to define __stub macros and hopefully few prototypes,
9899 which can conflict with char $ac_func(); below. */
9900 #include <assert.h>
9901 /* Override any gcc2 internal prototype to avoid an error. */
9902 /* We use char because int might match the return type of a gcc2
9903 builtin and then its argument prototype would still apply. */
9904 char $ac_func();
9905 char (*f)();
9906
9907 int main() {
9908
9909 /* The GNU C library defines this for functions which it implements
9910 to always fail with ENOSYS. Some functions are actually named
9911 something starting with __ and the normal name is an alias. */
9912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9913 choke me
9914 #else
9915 f = $ac_func;
9916 #endif
9917
9918 ; return 0; }
9919 EOF
9920 if { (eval echo configure:9921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9921 rm -rf conftest*
9922 eval "ac_cv_func_$ac_func=yes"
9923 else
9924 echo "configure: failed program was:" >&5
9925 cat conftest.$ac_ext >&5
9926 rm -rf conftest*
9927 eval "ac_cv_func_$ac_func=no"
9928 fi
9929 rm -f conftest*
9930 fi
9931
9932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9933 echo "$ac_t""yes" 1>&6
9934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9935 cat >> confdefs.h <<EOF
9936 #define $ac_tr_func 1
9937 EOF
9938
9939 else
9940 echo "$ac_t""no" 1>&6
9941 fi
9942 done
9943
9944
9945 for ac_func in timegm
9946 do
9947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9948 echo "configure:9949: checking for $ac_func" >&5
9949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9950 echo $ac_n "(cached) $ac_c" 1>&6
9951 else
9952 cat > conftest.$ac_ext <<EOF
9953 #line 9954 "configure"
9954 #include "confdefs.h"
9955 /* System header to define __stub macros and hopefully few prototypes,
9956 which can conflict with char $ac_func(); below. */
9957 #include <assert.h>
9958 /* Override any gcc2 internal prototype to avoid an error. */
9959 /* We use char because int might match the return type of a gcc2
9960 builtin and then its argument prototype would still apply. */
9961 char $ac_func();
9962 char (*f)();
9963
9964 int main() {
9965
9966 /* The GNU C library defines this for functions which it implements
9967 to always fail with ENOSYS. Some functions are actually named
9968 something starting with __ and the normal name is an alias. */
9969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9970 choke me
9971 #else
9972 f = $ac_func;
9973 #endif
9974
9975 ; return 0; }
9976 EOF
9977 if { (eval echo configure:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9978 rm -rf conftest*
9979 eval "ac_cv_func_$ac_func=yes"
9980 else
9981 echo "configure: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9983 rm -rf conftest*
9984 eval "ac_cv_func_$ac_func=no"
9985 fi
9986 rm -f conftest*
9987 fi
9988
9989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9990 echo "$ac_t""yes" 1>&6
9991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9992 cat >> confdefs.h <<EOF
9993 #define $ac_tr_func 1
9994 EOF
9995
9996 else
9997 echo "$ac_t""no" 1>&6
9998 fi
9999 done
10000
10001
10002 HAVE_SOME_SLEEP_FUNC=0
10003 if test "$USE_BEOS" = 1; then
10004 cat >> confdefs.h <<\EOF
10005 #define HAVE_SLEEP 1
10006 EOF
10007
10008 HAVE_SOME_SLEEP_FUNC=1
10009 fi
10010
10011 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10012 POSIX4_LINK=
10013 for ac_func in nanosleep
10014 do
10015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10016 echo "configure:10017: checking for $ac_func" >&5
10017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10018 echo $ac_n "(cached) $ac_c" 1>&6
10019 else
10020 cat > conftest.$ac_ext <<EOF
10021 #line 10022 "configure"
10022 #include "confdefs.h"
10023 /* System header to define __stub macros and hopefully few prototypes,
10024 which can conflict with char $ac_func(); below. */
10025 #include <assert.h>
10026 /* Override any gcc2 internal prototype to avoid an error. */
10027 /* We use char because int might match the return type of a gcc2
10028 builtin and then its argument prototype would still apply. */
10029 char $ac_func();
10030 char (*f)();
10031
10032 int main() {
10033
10034 /* The GNU C library defines this for functions which it implements
10035 to always fail with ENOSYS. Some functions are actually named
10036 something starting with __ and the normal name is an alias. */
10037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10038 choke me
10039 #else
10040 f = $ac_func;
10041 #endif
10042
10043 ; return 0; }
10044 EOF
10045 if { (eval echo configure:10046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10046 rm -rf conftest*
10047 eval "ac_cv_func_$ac_func=yes"
10048 else
10049 echo "configure: failed program was:" >&5
10050 cat conftest.$ac_ext >&5
10051 rm -rf conftest*
10052 eval "ac_cv_func_$ac_func=no"
10053 fi
10054 rm -f conftest*
10055 fi
10056
10057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10058 echo "$ac_t""yes" 1>&6
10059 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10060 cat >> confdefs.h <<EOF
10061 #define $ac_tr_func 1
10062 EOF
10063 cat >> confdefs.h <<\EOF
10064 #define HAVE_NANOSLEEP 1
10065 EOF
10066
10067 else
10068 echo "$ac_t""no" 1>&6
10069 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
10070 echo "configure:10071: checking for nanosleep in -lposix4" >&5
10071 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10073 echo $ac_n "(cached) $ac_c" 1>&6
10074 else
10075 ac_save_LIBS="$LIBS"
10076 LIBS="-lposix4 $LIBS"
10077 cat > conftest.$ac_ext <<EOF
10078 #line 10079 "configure"
10079 #include "confdefs.h"
10080 /* Override any gcc2 internal prototype to avoid an error. */
10081 /* We use char because int might match the return type of a gcc2
10082 builtin and then its argument prototype would still apply. */
10083 char nanosleep();
10084
10085 int main() {
10086 nanosleep()
10087 ; return 0; }
10088 EOF
10089 if { (eval echo configure:10090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10090 rm -rf conftest*
10091 eval "ac_cv_lib_$ac_lib_var=yes"
10092 else
10093 echo "configure: failed program was:" >&5
10094 cat conftest.$ac_ext >&5
10095 rm -rf conftest*
10096 eval "ac_cv_lib_$ac_lib_var=no"
10097 fi
10098 rm -f conftest*
10099 LIBS="$ac_save_LIBS"
10100
10101 fi
10102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10103 echo "$ac_t""yes" 1>&6
10104
10105 cat >> confdefs.h <<\EOF
10106 #define HAVE_NANOSLEEP 1
10107 EOF
10108
10109 POSIX4_LINK="-lposix4"
10110
10111 else
10112 echo "$ac_t""no" 1>&6
10113
10114 for ac_func in usleep
10115 do
10116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10117 echo "configure:10118: checking for $ac_func" >&5
10118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10119 echo $ac_n "(cached) $ac_c" 1>&6
10120 else
10121 cat > conftest.$ac_ext <<EOF
10122 #line 10123 "configure"
10123 #include "confdefs.h"
10124 /* System header to define __stub macros and hopefully few prototypes,
10125 which can conflict with char $ac_func(); below. */
10126 #include <assert.h>
10127 /* Override any gcc2 internal prototype to avoid an error. */
10128 /* We use char because int might match the return type of a gcc2
10129 builtin and then its argument prototype would still apply. */
10130 char $ac_func();
10131 char (*f)();
10132
10133 int main() {
10134
10135 /* The GNU C library defines this for functions which it implements
10136 to always fail with ENOSYS. Some functions are actually named
10137 something starting with __ and the normal name is an alias. */
10138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10139 choke me
10140 #else
10141 f = $ac_func;
10142 #endif
10143
10144 ; return 0; }
10145 EOF
10146 if { (eval echo configure:10147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10147 rm -rf conftest*
10148 eval "ac_cv_func_$ac_func=yes"
10149 else
10150 echo "configure: failed program was:" >&5
10151 cat conftest.$ac_ext >&5
10152 rm -rf conftest*
10153 eval "ac_cv_func_$ac_func=no"
10154 fi
10155 rm -f conftest*
10156 fi
10157
10158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10159 echo "$ac_t""yes" 1>&6
10160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10161 cat >> confdefs.h <<EOF
10162 #define $ac_tr_func 1
10163 EOF
10164
10165 else
10166 echo "$ac_t""no" 1>&6
10167 fi
10168 done
10169
10170 echo "configure: warning: wxSleep() function will not work" 1>&2
10171
10172
10173 fi
10174
10175
10176
10177 fi
10178 done
10179
10180 fi
10181
10182 for ac_func in uname gethostname
10183 do
10184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10185 echo "configure:10186: checking for $ac_func" >&5
10186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10187 echo $ac_n "(cached) $ac_c" 1>&6
10188 else
10189 cat > conftest.$ac_ext <<EOF
10190 #line 10191 "configure"
10191 #include "confdefs.h"
10192 /* System header to define __stub macros and hopefully few prototypes,
10193 which can conflict with char $ac_func(); below. */
10194 #include <assert.h>
10195 /* Override any gcc2 internal prototype to avoid an error. */
10196 /* We use char because int might match the return type of a gcc2
10197 builtin and then its argument prototype would still apply. */
10198 char $ac_func();
10199 char (*f)();
10200
10201 int main() {
10202
10203 /* The GNU C library defines this for functions which it implements
10204 to always fail with ENOSYS. Some functions are actually named
10205 something starting with __ and the normal name is an alias. */
10206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10207 choke me
10208 #else
10209 f = $ac_func;
10210 #endif
10211
10212 ; return 0; }
10213 EOF
10214 if { (eval echo configure:10215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10215 rm -rf conftest*
10216 eval "ac_cv_func_$ac_func=yes"
10217 else
10218 echo "configure: failed program was:" >&5
10219 cat conftest.$ac_ext >&5
10220 rm -rf conftest*
10221 eval "ac_cv_func_$ac_func=no"
10222 fi
10223 rm -f conftest*
10224 fi
10225
10226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10227 echo "$ac_t""yes" 1>&6
10228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10229 cat >> confdefs.h <<EOF
10230 #define $ac_tr_func 1
10231 EOF
10232 break
10233 else
10234 echo "$ac_t""no" 1>&6
10235 fi
10236 done
10237
10238
10239 for ac_func in strtok_r
10240 do
10241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10242 echo "configure:10243: checking for $ac_func" >&5
10243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10244 echo $ac_n "(cached) $ac_c" 1>&6
10245 else
10246 cat > conftest.$ac_ext <<EOF
10247 #line 10248 "configure"
10248 #include "confdefs.h"
10249 /* System header to define __stub macros and hopefully few prototypes,
10250 which can conflict with char $ac_func(); below. */
10251 #include <assert.h>
10252 /* Override any gcc2 internal prototype to avoid an error. */
10253 /* We use char because int might match the return type of a gcc2
10254 builtin and then its argument prototype would still apply. */
10255 char $ac_func();
10256 char (*f)();
10257
10258 int main() {
10259
10260 /* The GNU C library defines this for functions which it implements
10261 to always fail with ENOSYS. Some functions are actually named
10262 something starting with __ and the normal name is an alias. */
10263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10264 choke me
10265 #else
10266 f = $ac_func;
10267 #endif
10268
10269 ; return 0; }
10270 EOF
10271 if { (eval echo configure:10272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10272 rm -rf conftest*
10273 eval "ac_cv_func_$ac_func=yes"
10274 else
10275 echo "configure: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10277 rm -rf conftest*
10278 eval "ac_cv_func_$ac_func=no"
10279 fi
10280 rm -f conftest*
10281 fi
10282
10283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10284 echo "$ac_t""yes" 1>&6
10285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10286 cat >> confdefs.h <<EOF
10287 #define $ac_tr_func 1
10288 EOF
10289
10290 else
10291 echo "$ac_t""no" 1>&6
10292 fi
10293 done
10294
10295
10296 INET_LINK=
10297 for ac_func in inet_addr
10298 do
10299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10300 echo "configure:10301: checking for $ac_func" >&5
10301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10302 echo $ac_n "(cached) $ac_c" 1>&6
10303 else
10304 cat > conftest.$ac_ext <<EOF
10305 #line 10306 "configure"
10306 #include "confdefs.h"
10307 /* System header to define __stub macros and hopefully few prototypes,
10308 which can conflict with char $ac_func(); below. */
10309 #include <assert.h>
10310 /* Override any gcc2 internal prototype to avoid an error. */
10311 /* We use char because int might match the return type of a gcc2
10312 builtin and then its argument prototype would still apply. */
10313 char $ac_func();
10314 char (*f)();
10315
10316 int main() {
10317
10318 /* The GNU C library defines this for functions which it implements
10319 to always fail with ENOSYS. Some functions are actually named
10320 something starting with __ and the normal name is an alias. */
10321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10322 choke me
10323 #else
10324 f = $ac_func;
10325 #endif
10326
10327 ; return 0; }
10328 EOF
10329 if { (eval echo configure:10330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10330 rm -rf conftest*
10331 eval "ac_cv_func_$ac_func=yes"
10332 else
10333 echo "configure: failed program was:" >&5
10334 cat conftest.$ac_ext >&5
10335 rm -rf conftest*
10336 eval "ac_cv_func_$ac_func=no"
10337 fi
10338 rm -f conftest*
10339 fi
10340
10341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10342 echo "$ac_t""yes" 1>&6
10343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10344 cat >> confdefs.h <<EOF
10345 #define $ac_tr_func 1
10346 EOF
10347 cat >> confdefs.h <<\EOF
10348 #define HAVE_INET_ADDR 1
10349 EOF
10350
10351 else
10352 echo "$ac_t""no" 1>&6
10353 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
10354 echo "configure:10355: checking for inet_addr in -lnsl" >&5
10355 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10357 echo $ac_n "(cached) $ac_c" 1>&6
10358 else
10359 ac_save_LIBS="$LIBS"
10360 LIBS="-lnsl $LIBS"
10361 cat > conftest.$ac_ext <<EOF
10362 #line 10363 "configure"
10363 #include "confdefs.h"
10364 /* Override any gcc2 internal prototype to avoid an error. */
10365 /* We use char because int might match the return type of a gcc2
10366 builtin and then its argument prototype would still apply. */
10367 char inet_addr();
10368
10369 int main() {
10370 inet_addr()
10371 ; return 0; }
10372 EOF
10373 if { (eval echo configure:10374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10374 rm -rf conftest*
10375 eval "ac_cv_lib_$ac_lib_var=yes"
10376 else
10377 echo "configure: failed program was:" >&5
10378 cat conftest.$ac_ext >&5
10379 rm -rf conftest*
10380 eval "ac_cv_lib_$ac_lib_var=no"
10381 fi
10382 rm -f conftest*
10383 LIBS="$ac_save_LIBS"
10384
10385 fi
10386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10387 echo "$ac_t""yes" 1>&6
10388 INET_LINK="nsl"
10389 else
10390 echo "$ac_t""no" 1>&6
10391 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
10392 echo "configure:10393: checking for inet_addr in -lresolv" >&5
10393 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10395 echo $ac_n "(cached) $ac_c" 1>&6
10396 else
10397 ac_save_LIBS="$LIBS"
10398 LIBS="-lresolv $LIBS"
10399 cat > conftest.$ac_ext <<EOF
10400 #line 10401 "configure"
10401 #include "confdefs.h"
10402 /* Override any gcc2 internal prototype to avoid an error. */
10403 /* We use char because int might match the return type of a gcc2
10404 builtin and then its argument prototype would still apply. */
10405 char inet_addr();
10406
10407 int main() {
10408 inet_addr()
10409 ; return 0; }
10410 EOF
10411 if { (eval echo configure:10412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10412 rm -rf conftest*
10413 eval "ac_cv_lib_$ac_lib_var=yes"
10414 else
10415 echo "configure: failed program was:" >&5
10416 cat conftest.$ac_ext >&5
10417 rm -rf conftest*
10418 eval "ac_cv_lib_$ac_lib_var=no"
10419 fi
10420 rm -f conftest*
10421 LIBS="$ac_save_LIBS"
10422
10423 fi
10424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10425 echo "$ac_t""yes" 1>&6
10426 INET_LINK="resolv"
10427
10428 else
10429 echo "$ac_t""no" 1>&6
10430 fi
10431
10432
10433 fi
10434
10435
10436
10437 fi
10438 done
10439
10440
10441 for ac_func in inet_aton
10442 do
10443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10444 echo "configure:10445: checking for $ac_func" >&5
10445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10446 echo $ac_n "(cached) $ac_c" 1>&6
10447 else
10448 cat > conftest.$ac_ext <<EOF
10449 #line 10450 "configure"
10450 #include "confdefs.h"
10451 /* System header to define __stub macros and hopefully few prototypes,
10452 which can conflict with char $ac_func(); below. */
10453 #include <assert.h>
10454 /* Override any gcc2 internal prototype to avoid an error. */
10455 /* We use char because int might match the return type of a gcc2
10456 builtin and then its argument prototype would still apply. */
10457 char $ac_func();
10458 char (*f)();
10459
10460 int main() {
10461
10462 /* The GNU C library defines this for functions which it implements
10463 to always fail with ENOSYS. Some functions are actually named
10464 something starting with __ and the normal name is an alias. */
10465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10466 choke me
10467 #else
10468 f = $ac_func;
10469 #endif
10470
10471 ; return 0; }
10472 EOF
10473 if { (eval echo configure:10474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10474 rm -rf conftest*
10475 eval "ac_cv_func_$ac_func=yes"
10476 else
10477 echo "configure: failed program was:" >&5
10478 cat conftest.$ac_ext >&5
10479 rm -rf conftest*
10480 eval "ac_cv_func_$ac_func=no"
10481 fi
10482 rm -f conftest*
10483 fi
10484
10485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10486 echo "$ac_t""yes" 1>&6
10487 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10488 cat >> confdefs.h <<EOF
10489 #define $ac_tr_func 1
10490 EOF
10491 cat >> confdefs.h <<\EOF
10492 #define HAVE_INET_ATON 1
10493 EOF
10494
10495 else
10496 echo "$ac_t""no" 1>&6
10497 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
10498 echo "configure:10499: checking for inet_aton in -l$INET_LINK" >&5
10499 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10500 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10501 echo $ac_n "(cached) $ac_c" 1>&6
10502 else
10503 ac_save_LIBS="$LIBS"
10504 LIBS="-l$INET_LINK $LIBS"
10505 cat > conftest.$ac_ext <<EOF
10506 #line 10507 "configure"
10507 #include "confdefs.h"
10508 /* Override any gcc2 internal prototype to avoid an error. */
10509 /* We use char because int might match the return type of a gcc2
10510 builtin and then its argument prototype would still apply. */
10511 char inet_aton();
10512
10513 int main() {
10514 inet_aton()
10515 ; return 0; }
10516 EOF
10517 if { (eval echo configure:10518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10518 rm -rf conftest*
10519 eval "ac_cv_lib_$ac_lib_var=yes"
10520 else
10521 echo "configure: failed program was:" >&5
10522 cat conftest.$ac_ext >&5
10523 rm -rf conftest*
10524 eval "ac_cv_lib_$ac_lib_var=no"
10525 fi
10526 rm -f conftest*
10527 LIBS="$ac_save_LIBS"
10528
10529 fi
10530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10531 echo "$ac_t""yes" 1>&6
10532 cat >> confdefs.h <<\EOF
10533 #define HAVE_INET_ATON 1
10534 EOF
10535
10536 else
10537 echo "$ac_t""no" 1>&6
10538 fi
10539
10540
10541 fi
10542 done
10543
10544
10545 if test "x$INET_LINK" != "x"; then
10546 cat >> confdefs.h <<\EOF
10547 #define HAVE_INET_ADDR 1
10548 EOF
10549
10550 INET_LINK="-l$INET_LINK"
10551 fi
10552
10553 fi
10554
10555
10556 cat > confcache <<\EOF
10557 # This file is a shell script that caches the results of configure
10558 # tests run on this system so they can be shared between configure
10559 # scripts and configure runs. It is not useful on other systems.
10560 # If it contains results you don't want to keep, you may remove or edit it.
10561 #
10562 # By default, configure uses ./config.cache as the cache file,
10563 # creating it if it does not exist already. You can give configure
10564 # the --cache-file=FILE option to use a different cache file; that is
10565 # what configure does when it calls configure scripts in
10566 # subdirectories, so they share the cache.
10567 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10568 # config.status only pays attention to the cache file if you give it the
10569 # --recheck option to rerun configure.
10570 #
10571 EOF
10572 # The following way of writing the cache mishandles newlines in values,
10573 # but we know of no workaround that is simple, portable, and efficient.
10574 # So, don't put newlines in cache variables' values.
10575 # Ultrix sh set writes to stderr and can't be redirected directly,
10576 # and sets the high bit in the cache file unless we assign to the vars.
10577 (set) 2>&1 |
10578 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10579 *ac_space=\ *)
10580 # `set' does not quote correctly, so add quotes (double-quote substitution
10581 # turns \\\\ into \\, and sed turns \\ into \).
10582 sed -n \
10583 -e "s/'/'\\\\''/g" \
10584 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10585 ;;
10586 *)
10587 # `set' quotes correctly as required by POSIX, so do not add quotes.
10588 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10589 ;;
10590 esac >> confcache
10591 if cmp -s $cache_file confcache; then
10592 :
10593 else
10594 if test -w $cache_file; then
10595 echo "updating cache $cache_file"
10596 cat confcache > $cache_file
10597 else
10598 echo "not updating unwritable cache $cache_file"
10599 fi
10600 fi
10601 rm -f confcache
10602
10603
10604
10605 if test "$USE_UNIX" = 1; then
10606
10607
10608 THREADS_LINK=""
10609 THREADS_OBJ=""
10610
10611 if test "$wxUSE_THREADS" = "yes" ; then
10612 if test "$wxUSE_WINE" = 1 ; then
10613 echo "configure: warning: Threads are not supported under WINE" 1>&2
10614 wxUSE_THREADS="no"
10615 elif test "$USE_BEOS" = 1; then
10616 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10617 wxUSE_THREADS="no"
10618 fi
10619 fi
10620
10621 if test "$wxUSE_THREADS" = "yes" ; then
10622
10623 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
10624 echo "configure:10625: checking for pthread_create in -lpthread" >&5
10625 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10627 echo $ac_n "(cached) $ac_c" 1>&6
10628 else
10629 ac_save_LIBS="$LIBS"
10630 LIBS="-lpthread $LIBS"
10631 cat > conftest.$ac_ext <<EOF
10632 #line 10633 "configure"
10633 #include "confdefs.h"
10634 /* Override any gcc2 internal prototype to avoid an error. */
10635 /* We use char because int might match the return type of a gcc2
10636 builtin and then its argument prototype would still apply. */
10637 char pthread_create();
10638
10639 int main() {
10640 pthread_create()
10641 ; return 0; }
10642 EOF
10643 if { (eval echo configure:10644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10644 rm -rf conftest*
10645 eval "ac_cv_lib_$ac_lib_var=yes"
10646 else
10647 echo "configure: failed program was:" >&5
10648 cat conftest.$ac_ext >&5
10649 rm -rf conftest*
10650 eval "ac_cv_lib_$ac_lib_var=no"
10651 fi
10652 rm -f conftest*
10653 LIBS="$ac_save_LIBS"
10654
10655 fi
10656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10657 echo "$ac_t""yes" 1>&6
10658
10659 THREADS_OBJ="threadpsx.lo"
10660 THREADS_LINK="pthread"
10661
10662 else
10663 echo "$ac_t""no" 1>&6
10664
10665 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
10666 echo "configure:10667: checking for pthread_create in -lc_r" >&5
10667 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10668 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10669 echo $ac_n "(cached) $ac_c" 1>&6
10670 else
10671 ac_save_LIBS="$LIBS"
10672 LIBS="-lc_r $LIBS"
10673 cat > conftest.$ac_ext <<EOF
10674 #line 10675 "configure"
10675 #include "confdefs.h"
10676 /* Override any gcc2 internal prototype to avoid an error. */
10677 /* We use char because int might match the return type of a gcc2
10678 builtin and then its argument prototype would still apply. */
10679 char pthread_create();
10680
10681 int main() {
10682 pthread_create()
10683 ; return 0; }
10684 EOF
10685 if { (eval echo configure:10686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10686 rm -rf conftest*
10687 eval "ac_cv_lib_$ac_lib_var=yes"
10688 else
10689 echo "configure: failed program was:" >&5
10690 cat conftest.$ac_ext >&5
10691 rm -rf conftest*
10692 eval "ac_cv_lib_$ac_lib_var=no"
10693 fi
10694 rm -f conftest*
10695 LIBS="$ac_save_LIBS"
10696
10697 fi
10698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10699 echo "$ac_t""yes" 1>&6
10700
10701 THREADS_OBJ="threadpsx.lo"
10702 THREADS_LINK="c_r"
10703
10704 else
10705 echo "$ac_t""no" 1>&6
10706
10707 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10708 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
10709 echo "configure:10710: checking for sys/prctl.h" >&5
10710 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10711 echo $ac_n "(cached) $ac_c" 1>&6
10712 else
10713 cat > conftest.$ac_ext <<EOF
10714 #line 10715 "configure"
10715 #include "confdefs.h"
10716 #include <sys/prctl.h>
10717 EOF
10718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10719 { (eval echo configure:10720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10721 if test -z "$ac_err"; then
10722 rm -rf conftest*
10723 eval "ac_cv_header_$ac_safe=yes"
10724 else
10725 echo "$ac_err" >&5
10726 echo "configure: failed program was:" >&5
10727 cat conftest.$ac_ext >&5
10728 rm -rf conftest*
10729 eval "ac_cv_header_$ac_safe=no"
10730 fi
10731 rm -f conftest*
10732 fi
10733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10734 echo "$ac_t""yes" 1>&6
10735
10736 THREADS_OBJ="threadsgi.lo"
10737
10738 else
10739 echo "$ac_t""no" 1>&6
10740 fi
10741
10742
10743 fi
10744
10745
10746 fi
10747
10748
10749 if test -z "$THREADS_OBJ" ; then
10750 wxUSE_THREADS=no
10751 echo "configure: warning: No thread support on this system" 1>&2
10752 fi
10753 fi
10754
10755 if test "$wxUSE_THREADS" = "yes" ; then
10756 for ac_func in thr_setconcurrency
10757 do
10758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10759 echo "configure:10760: checking for $ac_func" >&5
10760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10761 echo $ac_n "(cached) $ac_c" 1>&6
10762 else
10763 cat > conftest.$ac_ext <<EOF
10764 #line 10765 "configure"
10765 #include "confdefs.h"
10766 /* System header to define __stub macros and hopefully few prototypes,
10767 which can conflict with char $ac_func(); below. */
10768 #include <assert.h>
10769 /* Override any gcc2 internal prototype to avoid an error. */
10770 /* We use char because int might match the return type of a gcc2
10771 builtin and then its argument prototype would still apply. */
10772 char $ac_func();
10773 char (*f)();
10774
10775 int main() {
10776
10777 /* The GNU C library defines this for functions which it implements
10778 to always fail with ENOSYS. Some functions are actually named
10779 something starting with __ and the normal name is an alias. */
10780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10781 choke me
10782 #else
10783 f = $ac_func;
10784 #endif
10785
10786 ; return 0; }
10787 EOF
10788 if { (eval echo configure:10789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10789 rm -rf conftest*
10790 eval "ac_cv_func_$ac_func=yes"
10791 else
10792 echo "configure: failed program was:" >&5
10793 cat conftest.$ac_ext >&5
10794 rm -rf conftest*
10795 eval "ac_cv_func_$ac_func=no"
10796 fi
10797 rm -f conftest*
10798 fi
10799
10800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10801 echo "$ac_t""yes" 1>&6
10802 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10803 cat >> confdefs.h <<EOF
10804 #define $ac_tr_func 1
10805 EOF
10806
10807 else
10808 echo "$ac_t""no" 1>&6
10809 fi
10810 done
10811
10812
10813
10814 for ac_hdr in sched.h
10815 do
10816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10818 echo "configure:10819: checking for $ac_hdr" >&5
10819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10820 echo $ac_n "(cached) $ac_c" 1>&6
10821 else
10822 cat > conftest.$ac_ext <<EOF
10823 #line 10824 "configure"
10824 #include "confdefs.h"
10825 #include <$ac_hdr>
10826 EOF
10827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10828 { (eval echo configure:10829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10830 if test -z "$ac_err"; then
10831 rm -rf conftest*
10832 eval "ac_cv_header_$ac_safe=yes"
10833 else
10834 echo "$ac_err" >&5
10835 echo "configure: failed program was:" >&5
10836 cat conftest.$ac_ext >&5
10837 rm -rf conftest*
10838 eval "ac_cv_header_$ac_safe=no"
10839 fi
10840 rm -f conftest*
10841 fi
10842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10843 echo "$ac_t""yes" 1>&6
10844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10845 cat >> confdefs.h <<EOF
10846 #define $ac_tr_hdr 1
10847 EOF
10848
10849 else
10850 echo "$ac_t""no" 1>&6
10851 fi
10852 done
10853
10854
10855 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
10856 echo "configure:10857: checking for sched_yield in -l$THREADS_LINK" >&5
10857 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10858 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10859 echo $ac_n "(cached) $ac_c" 1>&6
10860 else
10861 ac_save_LIBS="$LIBS"
10862 LIBS="-l$THREADS_LINK $LIBS"
10863 cat > conftest.$ac_ext <<EOF
10864 #line 10865 "configure"
10865 #include "confdefs.h"
10866 /* Override any gcc2 internal prototype to avoid an error. */
10867 /* We use char because int might match the return type of a gcc2
10868 builtin and then its argument prototype would still apply. */
10869 char sched_yield();
10870
10871 int main() {
10872 sched_yield()
10873 ; return 0; }
10874 EOF
10875 if { (eval echo configure:10876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10876 rm -rf conftest*
10877 eval "ac_cv_lib_$ac_lib_var=yes"
10878 else
10879 echo "configure: failed program was:" >&5
10880 cat conftest.$ac_ext >&5
10881 rm -rf conftest*
10882 eval "ac_cv_lib_$ac_lib_var=no"
10883 fi
10884 rm -f conftest*
10885 LIBS="$ac_save_LIBS"
10886
10887 fi
10888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10889 echo "$ac_t""yes" 1>&6
10890 cat >> confdefs.h <<\EOF
10891 #define HAVE_SCHED_YIELD 1
10892 EOF
10893
10894 else
10895 echo "$ac_t""no" 1>&6
10896 echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
10897 echo "configure:10898: checking for sched_yield in -l"posix4"" >&5
10898 ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10900 echo $ac_n "(cached) $ac_c" 1>&6
10901 else
10902 ac_save_LIBS="$LIBS"
10903 LIBS="-l"posix4" $LIBS"
10904 cat > conftest.$ac_ext <<EOF
10905 #line 10906 "configure"
10906 #include "confdefs.h"
10907 /* Override any gcc2 internal prototype to avoid an error. */
10908 /* We use char because int might match the return type of a gcc2
10909 builtin and then its argument prototype would still apply. */
10910 char sched_yield();
10911
10912 int main() {
10913 sched_yield()
10914 ; return 0; }
10915 EOF
10916 if { (eval echo configure:10917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10917 rm -rf conftest*
10918 eval "ac_cv_lib_$ac_lib_var=yes"
10919 else
10920 echo "configure: failed program was:" >&5
10921 cat conftest.$ac_ext >&5
10922 rm -rf conftest*
10923 eval "ac_cv_lib_$ac_lib_var=no"
10924 fi
10925 rm -f conftest*
10926 LIBS="$ac_save_LIBS"
10927
10928 fi
10929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10930 echo "$ac_t""yes" 1>&6
10931 cat >> confdefs.h <<\EOF
10932 #define HAVE_SCHED_YIELD 1
10933 EOF
10934 POSIX4_LINK="-lposix4"
10935 else
10936 echo "$ac_t""no" 1>&6
10937 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
10938
10939 fi
10940
10941
10942 fi
10943
10944
10945 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
10946 echo "configure:10947: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10947 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10948 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10949 echo $ac_n "(cached) $ac_c" 1>&6
10950 else
10951 ac_save_LIBS="$LIBS"
10952 LIBS="-l$THREADS_LINK $LIBS"
10953 cat > conftest.$ac_ext <<EOF
10954 #line 10955 "configure"
10955 #include "confdefs.h"
10956 /* Override any gcc2 internal prototype to avoid an error. */
10957 /* We use char because int might match the return type of a gcc2
10958 builtin and then its argument prototype would still apply. */
10959 char pthread_attr_getschedpolicy();
10960
10961 int main() {
10962 pthread_attr_getschedpolicy()
10963 ; return 0; }
10964 EOF
10965 if { (eval echo configure:10966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10966 rm -rf conftest*
10967 eval "ac_cv_lib_$ac_lib_var=yes"
10968 else
10969 echo "configure: failed program was:" >&5
10970 cat conftest.$ac_ext >&5
10971 rm -rf conftest*
10972 eval "ac_cv_lib_$ac_lib_var=no"
10973 fi
10974 rm -f conftest*
10975 LIBS="$ac_save_LIBS"
10976
10977 fi
10978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10979 echo "$ac_t""yes" 1>&6
10980 cat >> confdefs.h <<\EOF
10981 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10982 EOF
10983
10984 else
10985 echo "$ac_t""no" 1>&6
10986 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
10987 echo "configure:10988: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10988 ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10990 echo $ac_n "(cached) $ac_c" 1>&6
10991 else
10992 ac_save_LIBS="$LIBS"
10993 LIBS="-l"posix4" $LIBS"
10994 cat > conftest.$ac_ext <<EOF
10995 #line 10996 "configure"
10996 #include "confdefs.h"
10997 /* Override any gcc2 internal prototype to avoid an error. */
10998 /* We use char because int might match the return type of a gcc2
10999 builtin and then its argument prototype would still apply. */
11000 char pthread_attr_getschedpolicy();
11001
11002 int main() {
11003 pthread_attr_getschedpolicy()
11004 ; return 0; }
11005 EOF
11006 if { (eval echo configure:11007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11007 rm -rf conftest*
11008 eval "ac_cv_lib_$ac_lib_var=yes"
11009 else
11010 echo "configure: failed program was:" >&5
11011 cat conftest.$ac_ext >&5
11012 rm -rf conftest*
11013 eval "ac_cv_lib_$ac_lib_var=no"
11014 fi
11015 rm -f conftest*
11016 LIBS="$ac_save_LIBS"
11017
11018 fi
11019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11020 echo "$ac_t""yes" 1>&6
11021 cat >> confdefs.h <<\EOF
11022 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11023 EOF
11024 POSIX4_LINK="-lposix4"
11025 else
11026 echo "$ac_t""no" 1>&6
11027 echo "configure: warning: Setting thread priority will not work" 1>&2
11028
11029 fi
11030
11031
11032 fi
11033
11034
11035 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
11036 echo "configure:11037: checking for pthread_cancel in -l$THREADS_LINK" >&5
11037 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11039 echo $ac_n "(cached) $ac_c" 1>&6
11040 else
11041 ac_save_LIBS="$LIBS"
11042 LIBS="-l$THREADS_LINK $LIBS"
11043 cat > conftest.$ac_ext <<EOF
11044 #line 11045 "configure"
11045 #include "confdefs.h"
11046 /* Override any gcc2 internal prototype to avoid an error. */
11047 /* We use char because int might match the return type of a gcc2
11048 builtin and then its argument prototype would still apply. */
11049 char pthread_cancel();
11050
11051 int main() {
11052 pthread_cancel()
11053 ; return 0; }
11054 EOF
11055 if { (eval echo configure:11056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11056 rm -rf conftest*
11057 eval "ac_cv_lib_$ac_lib_var=yes"
11058 else
11059 echo "configure: failed program was:" >&5
11060 cat conftest.$ac_ext >&5
11061 rm -rf conftest*
11062 eval "ac_cv_lib_$ac_lib_var=no"
11063 fi
11064 rm -f conftest*
11065 LIBS="$ac_save_LIBS"
11066
11067 fi
11068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11069 echo "$ac_t""yes" 1>&6
11070 cat >> confdefs.h <<\EOF
11071 #define HAVE_PTHREAD_CANCEL 1
11072 EOF
11073
11074 else
11075 echo "$ac_t""no" 1>&6
11076 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11077 fi
11078
11079
11080 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
11081 echo "configure:11082: checking for pthread_cleanup_push/pop" >&5
11082 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11083 echo $ac_n "(cached) $ac_c" 1>&6
11084 else
11085
11086 cat > conftest.$ac_ext <<EOF
11087 #line 11088 "configure"
11088 #include "confdefs.h"
11089 #include <pthread.h>
11090 int main() {
11091
11092 pthread_cleanup_push(NULL, NULL);
11093 pthread_cleanup_pop(0);
11094
11095 ; return 0; }
11096 EOF
11097 if { (eval echo configure:11098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11098 rm -rf conftest*
11099
11100 wx_cv_func_pthread_cleanup_push=yes
11101 cat >> confdefs.h <<\EOF
11102 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11103 EOF
11104
11105
11106 else
11107 echo "configure: failed program was:" >&5
11108 cat conftest.$ac_ext >&5
11109 rm -rf conftest*
11110
11111 wx_cv_func_pthread_cleanup_push=no
11112
11113 fi
11114 rm -f conftest*
11115
11116 fi
11117
11118 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11119
11120 THREADS_LINK="-l$THREADS_LINK"
11121 fi
11122
11123 fi
11124
11125 if test "$wxUSE_THREADS" = "yes"; then
11126 cat >> confdefs.h <<\EOF
11127 #define wxUSE_THREADS 1
11128 EOF
11129
11130
11131 CFLAGS="${CFLAGS} -D_REENTRANT"
11132 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11133
11134 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11135 else
11136 if test "$ac_cv_func_strtok_r" = "yes"; then
11137 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
11138 echo "configure:11139: checking if -D_REENTRANT is needed" >&5
11139 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11140 CFLAGS="${CFLAGS} -D_REENTRANT"
11141 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11142 echo "$ac_t""yes" 1>&6
11143 else
11144 echo "$ac_t""no" 1>&6
11145 fi
11146 fi
11147 fi
11148
11149 if test "$WXGTK13" = 1 ; then
11150 cat >> confdefs.h <<EOF
11151 #define __WXGTK13__ $WXGTK13
11152 EOF
11153
11154 WXGTK12=1
11155 fi
11156
11157 if test "$WXGTK12" = 1 ; then
11158 cat >> confdefs.h <<EOF
11159 #define __WXGTK12__ $WXGTK12
11160 EOF
11161
11162 fi
11163
11164 if test "$WXWINE" = 1 ; then
11165 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11166 fi
11167
11168 if test "$wxUSE_CYGWIN" = 1 ; then
11169 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11170 fi
11171
11172 WXDEBUG=
11173
11174 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11175 WXDEBUG="-g"
11176 wxUSE_OPTIMISE=no
11177 fi
11178
11179 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11180 wxUSE_DEBUG_INFO=yes
11181 WXDEBUG="-ggdb"
11182 fi
11183
11184 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11185 cat >> confdefs.h <<\EOF
11186 #define WXDEBUG 1
11187 EOF
11188
11189 WXDEBUG_DEFINE="-D__WXDEBUG__"
11190 else
11191 if test "$wxUSE_GTK" = 1 ; then
11192 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11193 fi
11194 fi
11195
11196 if test "$wxUSE_MEM_TRACING" = "yes" ; then
11197 cat >> confdefs.h <<\EOF
11198 #define wxUSE_MEMORY_TRACING 1
11199 EOF
11200
11201 cat >> confdefs.h <<\EOF
11202 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
11203 EOF
11204
11205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11206 fi
11207
11208 if test "$wxUSE_DMALLOC" = "yes" ; then
11209 DMALLOC_LINK="-ldmalloc"
11210 fi
11211
11212 PROFILE=
11213 if test "$wxUSE_PROFILE" = "yes" ; then
11214 PROFILE="-pg"
11215 fi
11216
11217 DEP_INFO_FLAGS=
11218 CODE_GEN_FLAGS=
11219 if test "$GCC" = yes ; then
11220 if test "$wxUSE_NO_RTTI" = "yes" ; then
11221 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
11222 fi
11223 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
11224 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
11225 fi
11226 if test "$wxUSE_PERMISSIVE" = "yes" ; then
11227 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
11228 fi
11229 if test "$wxUSE_NO_DEPS" = "no" ; then
11230 DEP_INFO_FLAGS="-MMD"
11231 fi
11232 fi
11233
11234
11235 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11236 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11237 if test "$wxUSE_OPTIMISE" = "no" ; then
11238 OPTIMISE=
11239 else
11240 if test "$GCC" = yes ; then
11241 OPTIMISE="-O2"
11242 case "${host}" in
11243 i586-*-*|i686-*-* )
11244 OPTIMISE="${OPTIMISE} "
11245 ;;
11246 esac
11247 else
11248 OPTIMISE="-O"
11249 fi
11250 fi
11251
11252
11253 ZLIB_INCLUDE=
11254 if test "$wxUSE_ZLIB" = "yes" ; then
11255 cat >> confdefs.h <<\EOF
11256 #define wxUSE_ZLIB 1
11257 EOF
11258
11259 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11260 fi
11261
11262 PNG_INCLUDE=
11263 if test "$wxUSE_LIBPNG" = "yes" ; then
11264 cat >> confdefs.h <<\EOF
11265 #define wxUSE_LIBPNG 1
11266 EOF
11267
11268 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11270 fi
11271
11272 JPEG_INCLUDE=
11273 if test "$wxUSE_LIBJPEG" = "yes" ; then
11274 cat >> confdefs.h <<\EOF
11275 #define wxUSE_LIBJPEG 1
11276 EOF
11277
11278 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11279 fi
11280
11281 TIFF_INCLUDE=
11282 if test "$wxUSE_LIBTIFF" = "yes" ; then
11283 cat >> confdefs.h <<\EOF
11284 #define wxUSE_LIBTIFF 1
11285 EOF
11286
11287 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11288 fi
11289
11290 if test "$wxUSE_OPENGL" = "yes"; then
11291 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11292 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11293 echo "configure:11294: checking for GL/gl.h" >&5
11294 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11295 echo $ac_n "(cached) $ac_c" 1>&6
11296 else
11297 cat > conftest.$ac_ext <<EOF
11298 #line 11299 "configure"
11299 #include "confdefs.h"
11300 #include <GL/gl.h>
11301 EOF
11302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11303 { (eval echo configure:11304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11305 if test -z "$ac_err"; then
11306 rm -rf conftest*
11307 eval "ac_cv_header_$ac_safe=yes"
11308 else
11309 echo "$ac_err" >&5
11310 echo "configure: failed program was:" >&5
11311 cat conftest.$ac_ext >&5
11312 rm -rf conftest*
11313 eval "ac_cv_header_$ac_safe=no"
11314 fi
11315 rm -f conftest*
11316 fi
11317 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11318 echo "$ac_t""yes" 1>&6
11319
11320 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
11321 echo "configure:11322: checking for glInitNames in -lGL" >&5
11322 ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
11323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11324 echo $ac_n "(cached) $ac_c" 1>&6
11325 else
11326 ac_save_LIBS="$LIBS"
11327 LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
11328 cat > conftest.$ac_ext <<EOF
11329 #line 11330 "configure"
11330 #include "confdefs.h"
11331 /* Override any gcc2 internal prototype to avoid an error. */
11332 /* We use char because int might match the return type of a gcc2
11333 builtin and then its argument prototype would still apply. */
11334 char glInitNames();
11335
11336 int main() {
11337 glInitNames()
11338 ; return 0; }
11339 EOF
11340 if { (eval echo configure:11341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11341 rm -rf conftest*
11342 eval "ac_cv_lib_$ac_lib_var=yes"
11343 else
11344 echo "configure: failed program was:" >&5
11345 cat conftest.$ac_ext >&5
11346 rm -rf conftest*
11347 eval "ac_cv_lib_$ac_lib_var=no"
11348 fi
11349 rm -f conftest*
11350 LIBS="$ac_save_LIBS"
11351
11352 fi
11353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11354 echo "$ac_t""yes" 1>&6
11355
11356 OPENGL_LINK="-lGL"
11357 cat >> confdefs.h <<\EOF
11358 #define wxUSE_OPENGL 1
11359 EOF
11360
11361 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11362
11363 else
11364 echo "$ac_t""no" 1>&6
11365
11366 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
11367 echo "configure:11368: checking for glInitNames in -lMesaGL" >&5
11368 ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11370 echo $ac_n "(cached) $ac_c" 1>&6
11371 else
11372 ac_save_LIBS="$LIBS"
11373 LIBS="-lMesaGL $LIBS"
11374 cat > conftest.$ac_ext <<EOF
11375 #line 11376 "configure"
11376 #include "confdefs.h"
11377 /* Override any gcc2 internal prototype to avoid an error. */
11378 /* We use char because int might match the return type of a gcc2
11379 builtin and then its argument prototype would still apply. */
11380 char glInitNames();
11381
11382 int main() {
11383 glInitNames()
11384 ; return 0; }
11385 EOF
11386 if { (eval echo configure:11387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11387 rm -rf conftest*
11388 eval "ac_cv_lib_$ac_lib_var=yes"
11389 else
11390 echo "configure: failed program was:" >&5
11391 cat conftest.$ac_ext >&5
11392 rm -rf conftest*
11393 eval "ac_cv_lib_$ac_lib_var=no"
11394 fi
11395 rm -f conftest*
11396 LIBS="$ac_save_LIBS"
11397
11398 fi
11399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11400 echo "$ac_t""yes" 1>&6
11401
11402 OPENGL_LINK="-lMesaGL"
11403 cat >> confdefs.h <<\EOF
11404 #define wxUSE_OPENGL 1
11405 EOF
11406
11407 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11408
11409 else
11410 echo "$ac_t""no" 1>&6
11411 wxUSE_OPENGL=0
11412 fi
11413
11414
11415 fi
11416
11417
11418 else
11419 echo "$ac_t""no" 1>&6
11420 wxUSE_OPENGL=0
11421 fi
11422
11423 fi
11424
11425
11426 if test "$wxUSE_GUI" = "yes"; then
11427 cat >> confdefs.h <<\EOF
11428 #define wxUSE_GUI 1
11429 EOF
11430
11431
11432 else
11433 cat >> confdefs.h <<\EOF
11434 #define wxUSE_NOGUI 1
11435 EOF
11436
11437 fi
11438
11439
11440 if test "$wxUSE_UNIX" = "yes"; then
11441 cat >> confdefs.h <<\EOF
11442 #define wxUSE_UNIX 1
11443 EOF
11444
11445 fi
11446
11447
11448 if test "$wxUSE_APPLE_IEEE" = "yes"; then
11449 cat >> confdefs.h <<\EOF
11450 #define wxUSE_APPLE_IEEE 1
11451 EOF
11452
11453 fi
11454
11455 if test "$wxUSE_WAVE" = "yes"; then
11456 cat >> confdefs.h <<\EOF
11457 #define wxUSE_WAVE 1
11458 EOF
11459
11460 fi
11461
11462 if test "$wxUSE_FILE" = "yes"; then
11463 cat >> confdefs.h <<\EOF
11464 #define wxUSE_FILE 1
11465 EOF
11466
11467 fi
11468
11469 if test "$wxUSE_FS_INET" = "yes"; then
11470 cat >> confdefs.h <<\EOF
11471 #define wxUSE_FS_INET 1
11472 EOF
11473
11474 fi
11475
11476 if test "$wxUSE_FS_ZIP" = "yes"; then
11477 cat >> confdefs.h <<\EOF
11478 #define wxUSE_FS_ZIP 1
11479 EOF
11480
11481 fi
11482
11483 if test "$wxUSE_ZIPSTREAM" = "yes"; then
11484 cat >> confdefs.h <<\EOF
11485 #define wxUSE_ZIPSTREAM 1
11486 EOF
11487
11488 fi
11489
11490 if test "$wxUSE_BUSYINFO" = "yes"; then
11491 cat >> confdefs.h <<\EOF
11492 #define wxUSE_BUSYINFO 1
11493 EOF
11494
11495 fi
11496
11497 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11498 cat >> confdefs.h <<\EOF
11499 #define wxUSE_STD_IOSTREAM 1
11500 EOF
11501
11502 fi
11503
11504 if test "$wxUSE_TEXTFILE" = "yes"; then
11505 if test "$wxUSE_FILE" != "yes"; then
11506 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11507 else
11508 cat >> confdefs.h <<\EOF
11509 #define wxUSE_TEXTFILE 1
11510 EOF
11511
11512 fi
11513 fi
11514
11515 if test "$wxUSE_CONFIG" = "yes" ; then
11516 if test "$wxUSE_TEXTFILE" != "yes"; then
11517 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11518 else
11519 cat >> confdefs.h <<\EOF
11520 #define wxUSE_CONFIG 1
11521 EOF
11522
11523 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11524 fi
11525 fi
11526
11527 if test "$wxUSE_INTL" = "yes" ; then
11528 if test "$wxUSE_FILE" != "yes"; then
11529 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11530 else
11531 cat >> confdefs.h <<\EOF
11532 #define wxUSE_INTL 1
11533 EOF
11534
11535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11536 fi
11537 fi
11538
11539 if test "$wxUSE_LOG" = "yes"; then
11540 cat >> confdefs.h <<\EOF
11541 #define wxUSE_LOG 1
11542 EOF
11543
11544 fi
11545
11546 if test "$wxUSE_LONGLONG" = "yes"; then
11547 cat >> confdefs.h <<\EOF
11548 #define wxUSE_LONGLONG 1
11549 EOF
11550
11551 fi
11552
11553 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11554 cat >> confdefs.h <<\EOF
11555 #define wxUSE_DIALUP_MANAGER 1
11556 EOF
11557
11558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
11559 fi
11560
11561 if test "$wxUSE_STREAMS" = "yes" ; then
11562 cat >> confdefs.h <<\EOF
11563 #define wxUSE_STREAMS 1
11564 EOF
11565
11566 fi
11567
11568
11569 if test "$wxUSE_TIMEDATE" = "yes"; then
11570 for ac_func in strptime
11571 do
11572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11573 echo "configure:11574: checking for $ac_func" >&5
11574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11575 echo $ac_n "(cached) $ac_c" 1>&6
11576 else
11577 cat > conftest.$ac_ext <<EOF
11578 #line 11579 "configure"
11579 #include "confdefs.h"
11580 /* System header to define __stub macros and hopefully few prototypes,
11581 which can conflict with char $ac_func(); below. */
11582 #include <assert.h>
11583 /* Override any gcc2 internal prototype to avoid an error. */
11584 /* We use char because int might match the return type of a gcc2
11585 builtin and then its argument prototype would still apply. */
11586 char $ac_func();
11587 char (*f)();
11588
11589 int main() {
11590
11591 /* The GNU C library defines this for functions which it implements
11592 to always fail with ENOSYS. Some functions are actually named
11593 something starting with __ and the normal name is an alias. */
11594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11595 choke me
11596 #else
11597 f = $ac_func;
11598 #endif
11599
11600 ; return 0; }
11601 EOF
11602 if { (eval echo configure:11603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11603 rm -rf conftest*
11604 eval "ac_cv_func_$ac_func=yes"
11605 else
11606 echo "configure: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 rm -rf conftest*
11609 eval "ac_cv_func_$ac_func=no"
11610 fi
11611 rm -f conftest*
11612 fi
11613
11614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11615 echo "$ac_t""yes" 1>&6
11616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11617 cat >> confdefs.h <<EOF
11618 #define $ac_tr_func 1
11619 EOF
11620
11621 else
11622 echo "$ac_t""no" 1>&6
11623 fi
11624 done
11625
11626
11627 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
11628 echo "configure:11629: checking for timezone variable in <time.h>" >&5
11629 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11630 echo $ac_n "(cached) $ac_c" 1>&6
11631 else
11632
11633 cat > conftest.$ac_ext <<EOF
11634 #line 11635 "configure"
11635 #include "confdefs.h"
11636
11637 #include <time.h>
11638
11639 int main() {
11640
11641 int tz;
11642 tz = __timezone;
11643
11644 ; return 0; }
11645 EOF
11646 if { (eval echo configure:11647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11647 rm -rf conftest*
11648
11649 wx_cv_var_timezone=__timezone
11650
11651 else
11652 echo "configure: failed program was:" >&5
11653 cat conftest.$ac_ext >&5
11654 rm -rf conftest*
11655
11656 cat > conftest.$ac_ext <<EOF
11657 #line 11658 "configure"
11658 #include "confdefs.h"
11659
11660 #include <time.h>
11661
11662 int main() {
11663
11664 int tz;
11665 tz = _timezone;
11666
11667 ; return 0; }
11668 EOF
11669 if { (eval echo configure:11670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11670 rm -rf conftest*
11671
11672 wx_cv_var_timezone=_timezone
11673
11674 else
11675 echo "configure: failed program was:" >&5
11676 cat conftest.$ac_ext >&5
11677 rm -rf conftest*
11678
11679 cat > conftest.$ac_ext <<EOF
11680 #line 11681 "configure"
11681 #include "confdefs.h"
11682
11683 #include <time.h>
11684
11685 int main() {
11686
11687 int tz;
11688 tz = timezone;
11689
11690 ; return 0; }
11691 EOF
11692 if { (eval echo configure:11693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11693 rm -rf conftest*
11694
11695 wx_cv_var_timezone=timezone
11696
11697 else
11698 echo "configure: failed program was:" >&5
11699 cat conftest.$ac_ext >&5
11700 rm -rf conftest*
11701 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
11702
11703 fi
11704 rm -f conftest*
11705
11706
11707 fi
11708 rm -f conftest*
11709
11710
11711 fi
11712 rm -f conftest*
11713
11714
11715 fi
11716
11717 echo "$ac_t""$wx_cv_var_timezone" 1>&6
11718
11719 cat >> confdefs.h <<EOF
11720 #define WX_TIMEZONE $wx_cv_var_timezone
11721 EOF
11722
11723
11724 for ac_func in localtime gettimeofday ftime
11725 do
11726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11727 echo "configure:11728: checking for $ac_func" >&5
11728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11729 echo $ac_n "(cached) $ac_c" 1>&6
11730 else
11731 cat > conftest.$ac_ext <<EOF
11732 #line 11733 "configure"
11733 #include "confdefs.h"
11734 /* System header to define __stub macros and hopefully few prototypes,
11735 which can conflict with char $ac_func(); below. */
11736 #include <assert.h>
11737 /* Override any gcc2 internal prototype to avoid an error. */
11738 /* We use char because int might match the return type of a gcc2
11739 builtin and then its argument prototype would still apply. */
11740 char $ac_func();
11741 char (*f)();
11742
11743 int main() {
11744
11745 /* The GNU C library defines this for functions which it implements
11746 to always fail with ENOSYS. Some functions are actually named
11747 something starting with __ and the normal name is an alias. */
11748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11749 choke me
11750 #else
11751 f = $ac_func;
11752 #endif
11753
11754 ; return 0; }
11755 EOF
11756 if { (eval echo configure:11757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11757 rm -rf conftest*
11758 eval "ac_cv_func_$ac_func=yes"
11759 else
11760 echo "configure: failed program was:" >&5
11761 cat conftest.$ac_ext >&5
11762 rm -rf conftest*
11763 eval "ac_cv_func_$ac_func=no"
11764 fi
11765 rm -f conftest*
11766 fi
11767
11768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11769 echo "$ac_t""yes" 1>&6
11770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11771 cat >> confdefs.h <<EOF
11772 #define $ac_tr_func 1
11773 EOF
11774 break
11775 else
11776 echo "$ac_t""no" 1>&6
11777 fi
11778 done
11779
11780
11781 if test "$ac_cv_func_localtime" = "yes"; then
11782 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
11783 echo "configure:11784: checking for tm_gmtoff in struct tm" >&5
11784 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
11785 echo $ac_n "(cached) $ac_c" 1>&6
11786 else
11787
11788 cat > conftest.$ac_ext <<EOF
11789 #line 11790 "configure"
11790 #include "confdefs.h"
11791
11792 #include <time.h>
11793
11794 int main() {
11795
11796 struct tm tm;
11797 tm.tm_gmtoff++;
11798
11799 ; return 0; }
11800 EOF
11801 if { (eval echo configure:11802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11802 rm -rf conftest*
11803
11804 wx_cv_struct_tm_has_gmtoff=yes
11805 cat >> confdefs.h <<\EOF
11806 #define WX_GMTOFF_IN_TM 1
11807 EOF
11808
11809
11810 else
11811 echo "configure: failed program was:" >&5
11812 cat conftest.$ac_ext >&5
11813 rm -rf conftest*
11814 wx_cv_struct_tm_has_gmtoff=no
11815
11816 fi
11817 rm -f conftest*
11818
11819 fi
11820
11821 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
11822 elif test "$ac_cv_func_gettimeofday" = "yes"; then
11823 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
11824 echo "configure:11825: checking whether gettimeofday takes two arguments" >&5
11825 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
11826 echo $ac_n "(cached) $ac_c" 1>&6
11827 else
11828
11829
11830 ac_ext=C
11831 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11832 ac_cpp='$CXXCPP $CPPFLAGS'
11833 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11834 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11835 cross_compiling=$ac_cv_prog_cxx_cross
11836
11837
11838 cat > conftest.$ac_ext <<EOF
11839 #line 11840 "configure"
11840 #include "confdefs.h"
11841
11842 #include <sys/time.h>
11843 #include <unistd.h>
11844
11845 int main() {
11846
11847 struct timeval tv;
11848 struct timezone tz;
11849 gettimeofday(&tv, &tz);
11850
11851 ; return 0; }
11852 EOF
11853 if { (eval echo configure:11854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11854 rm -rf conftest*
11855 wx_cv_func_gettimeofday_has_2_args=yes
11856 else
11857 echo "configure: failed program was:" >&5
11858 cat conftest.$ac_ext >&5
11859 rm -rf conftest*
11860 cat > conftest.$ac_ext <<EOF
11861 #line 11862 "configure"
11862 #include "confdefs.h"
11863
11864 #include <sys/time.h>
11865 #include <unistd.h>
11866
11867 int main() {
11868
11869 struct timeval tv;
11870 gettimeofday(&tv);
11871
11872 ; return 0; }
11873 EOF
11874 if { (eval echo configure:11875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11875 rm -rf conftest*
11876 wx_cv_func_gettimeofday_has_2_args=no
11877 else
11878 echo "configure: failed program was:" >&5
11879 cat conftest.$ac_ext >&5
11880 rm -rf conftest*
11881 wx_cv_func_gettimeofday_has_2_args=unknown
11882
11883 fi
11884 rm -f conftest*
11885
11886 fi
11887 rm -f conftest*
11888 ac_ext=c
11889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11890 ac_cpp='$CPP $CPPFLAGS'
11891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11893 cross_compiling=$ac_cv_prog_cc_cross
11894
11895
11896 fi
11897
11898 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
11899
11900 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
11901 cat >> confdefs.h <<\EOF
11902 #define WX_GETTIMEOFDAY_NO_TZ 1
11903 EOF
11904
11905 fi
11906 fi
11907
11908 cat >> confdefs.h <<\EOF
11909 #define wxUSE_TIMEDATE 1
11910 EOF
11911
11912 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
11913 fi
11914
11915
11916 if test "$wxUSE_SOCKETS" = "yes"; then
11917 echo $ac_n "checking for socket""... $ac_c" 1>&6
11918 echo "configure:11919: checking for socket" >&5
11919 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
11920 echo $ac_n "(cached) $ac_c" 1>&6
11921 else
11922 cat > conftest.$ac_ext <<EOF
11923 #line 11924 "configure"
11924 #include "confdefs.h"
11925 /* System header to define __stub macros and hopefully few prototypes,
11926 which can conflict with char socket(); below. */
11927 #include <assert.h>
11928 /* Override any gcc2 internal prototype to avoid an error. */
11929 /* We use char because int might match the return type of a gcc2
11930 builtin and then its argument prototype would still apply. */
11931 char socket();
11932 char (*f)();
11933
11934 int main() {
11935
11936 /* The GNU C library defines this for functions which it implements
11937 to always fail with ENOSYS. Some functions are actually named
11938 something starting with __ and the normal name is an alias. */
11939 #if defined (__stub_socket) || defined (__stub___socket)
11940 choke me
11941 #else
11942 f = socket;
11943 #endif
11944
11945 ; return 0; }
11946 EOF
11947 if { (eval echo configure:11948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11948 rm -rf conftest*
11949 eval "ac_cv_func_socket=yes"
11950 else
11951 echo "configure: failed program was:" >&5
11952 cat conftest.$ac_ext >&5
11953 rm -rf conftest*
11954 eval "ac_cv_func_socket=no"
11955 fi
11956 rm -f conftest*
11957 fi
11958
11959 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11960 echo "$ac_t""yes" 1>&6
11961 :
11962 else
11963 echo "$ac_t""no" 1>&6
11964 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
11965 echo "configure:11966: checking for socket in -lsocket" >&5
11966 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
11967 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11968 echo $ac_n "(cached) $ac_c" 1>&6
11969 else
11970 ac_save_LIBS="$LIBS"
11971 LIBS="-lsocket $LIBS"
11972 cat > conftest.$ac_ext <<EOF
11973 #line 11974 "configure"
11974 #include "confdefs.h"
11975 /* Override any gcc2 internal prototype to avoid an error. */
11976 /* We use char because int might match the return type of a gcc2
11977 builtin and then its argument prototype would still apply. */
11978 char socket();
11979
11980 int main() {
11981 socket()
11982 ; return 0; }
11983 EOF
11984 if { (eval echo configure:11985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11985 rm -rf conftest*
11986 eval "ac_cv_lib_$ac_lib_var=yes"
11987 else
11988 echo "configure: failed program was:" >&5
11989 cat conftest.$ac_ext >&5
11990 rm -rf conftest*
11991 eval "ac_cv_lib_$ac_lib_var=no"
11992 fi
11993 rm -f conftest*
11994 LIBS="$ac_save_LIBS"
11995
11996 fi
11997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11998 echo "$ac_t""yes" 1>&6
11999 INET_LINK="$INET_LINK -lsocket"
12000 else
12001 echo "$ac_t""no" 1>&6
12002
12003 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12004 wxUSE_SOCKETS=no
12005
12006
12007 fi
12008
12009
12010 fi
12011
12012 fi
12013
12014 if test "$wxUSE_SOCKETS" = "yes" ; then
12015
12016 ac_ext=C
12017 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12018 ac_cpp='$CXXCPP $CPPFLAGS'
12019 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12020 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12021 cross_compiling=$ac_cv_prog_cxx_cross
12022
12023 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
12024 echo "configure:12025: checking the type of the third argument of getsockname" >&5
12025 cat > conftest.$ac_ext <<EOF
12026 #line 12027 "configure"
12027 #include "confdefs.h"
12028 #include <sys/socket.h>
12029 int main() {
12030 socklen_t len; getsockname(0, 0, &len);
12031 ; return 0; }
12032 EOF
12033 if { (eval echo configure:12034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12034 rm -rf conftest*
12035 cat >> confdefs.h <<\EOF
12036 #define SOCKLEN_T socklen_t
12037 EOF
12038 echo "$ac_t""socklen_t" 1>&6
12039 else
12040 echo "configure: failed program was:" >&5
12041 cat conftest.$ac_ext >&5
12042 rm -rf conftest*
12043 cat > conftest.$ac_ext <<EOF
12044 #line 12045 "configure"
12045 #include "confdefs.h"
12046 #include <sys/socket.h>
12047 int main() {
12048 size_t len; getsockname(0, 0, &len);
12049 ; return 0; }
12050 EOF
12051 if { (eval echo configure:12052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12052 rm -rf conftest*
12053 cat >> confdefs.h <<\EOF
12054 #define SOCKLEN_T size_t
12055 EOF
12056 echo "$ac_t""size_t" 1>&6
12057 else
12058 echo "configure: failed program was:" >&5
12059 cat conftest.$ac_ext >&5
12060 rm -rf conftest*
12061 cat > conftest.$ac_ext <<EOF
12062 #line 12063 "configure"
12063 #include "confdefs.h"
12064 #include <sys/socket.h>
12065 int main() {
12066 int len; getsockname(0, 0, &len);
12067 ; return 0; }
12068 EOF
12069 if { (eval echo configure:12070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12070 rm -rf conftest*
12071 cat >> confdefs.h <<\EOF
12072 #define SOCKLEN_T int
12073 EOF
12074 echo "$ac_t""int" 1>&6
12075 else
12076 echo "configure: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 rm -rf conftest*
12079 echo "$ac_t""unknown" 1>&6
12080
12081 fi
12082 rm -f conftest*
12083
12084 fi
12085 rm -f conftest*
12086
12087 fi
12088 rm -f conftest*
12089 ac_ext=c
12090 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12091 ac_cpp='$CPP $CPPFLAGS'
12092 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12093 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12094 cross_compiling=$ac_cv_prog_cc_cross
12095
12096
12097 cat >> confdefs.h <<\EOF
12098 #define wxUSE_SOCKETS 1
12099 EOF
12100
12101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
12102 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12103 fi
12104
12105
12106 if test "$wxUSE_JOYSTICK" = 1; then
12107 for ac_hdr in linux/joystick.h
12108 do
12109 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12111 echo "configure:12112: checking for $ac_hdr" >&5
12112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12113 echo $ac_n "(cached) $ac_c" 1>&6
12114 else
12115 cat > conftest.$ac_ext <<EOF
12116 #line 12117 "configure"
12117 #include "confdefs.h"
12118 #include <$ac_hdr>
12119 EOF
12120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12121 { (eval echo configure:12122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12123 if test -z "$ac_err"; then
12124 rm -rf conftest*
12125 eval "ac_cv_header_$ac_safe=yes"
12126 else
12127 echo "$ac_err" >&5
12128 echo "configure: failed program was:" >&5
12129 cat conftest.$ac_ext >&5
12130 rm -rf conftest*
12131 eval "ac_cv_header_$ac_safe=no"
12132 fi
12133 rm -f conftest*
12134 fi
12135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12136 echo "$ac_t""yes" 1>&6
12137 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12138 cat >> confdefs.h <<EOF
12139 #define $ac_tr_hdr 1
12140 EOF
12141
12142 else
12143 echo "$ac_t""no" 1>&6
12144 fi
12145 done
12146
12147 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
12148 cat >> confdefs.h <<\EOF
12149 #define wxUSE_JOYSTICK 1
12150 EOF
12151
12152 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
12153 fi
12154 fi
12155
12156
12157 HAVE_DL_FUNCS=0
12158 HAVE_SHL_FUNCS=0
12159 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12160 for ac_func in dlopen
12161 do
12162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12163 echo "configure:12164: checking for $ac_func" >&5
12164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12165 echo $ac_n "(cached) $ac_c" 1>&6
12166 else
12167 cat > conftest.$ac_ext <<EOF
12168 #line 12169 "configure"
12169 #include "confdefs.h"
12170 /* System header to define __stub macros and hopefully few prototypes,
12171 which can conflict with char $ac_func(); below. */
12172 #include <assert.h>
12173 /* Override any gcc2 internal prototype to avoid an error. */
12174 /* We use char because int might match the return type of a gcc2
12175 builtin and then its argument prototype would still apply. */
12176 char $ac_func();
12177 char (*f)();
12178
12179 int main() {
12180
12181 /* The GNU C library defines this for functions which it implements
12182 to always fail with ENOSYS. Some functions are actually named
12183 something starting with __ and the normal name is an alias. */
12184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12185 choke me
12186 #else
12187 f = $ac_func;
12188 #endif
12189
12190 ; return 0; }
12191 EOF
12192 if { (eval echo configure:12193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12193 rm -rf conftest*
12194 eval "ac_cv_func_$ac_func=yes"
12195 else
12196 echo "configure: failed program was:" >&5
12197 cat conftest.$ac_ext >&5
12198 rm -rf conftest*
12199 eval "ac_cv_func_$ac_func=no"
12200 fi
12201 rm -f conftest*
12202 fi
12203
12204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12205 echo "$ac_t""yes" 1>&6
12206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12207 cat >> confdefs.h <<EOF
12208 #define $ac_tr_func 1
12209 EOF
12210
12211 cat >> confdefs.h <<\EOF
12212 #define HAVE_DLOPEN 1
12213 EOF
12214
12215 HAVE_DL_FUNCS=1
12216
12217 else
12218 echo "$ac_t""no" 1>&6
12219 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12220 echo "configure:12221: checking for dlopen in -ldl" >&5
12221 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12223 echo $ac_n "(cached) $ac_c" 1>&6
12224 else
12225 ac_save_LIBS="$LIBS"
12226 LIBS="-ldl $LIBS"
12227 cat > conftest.$ac_ext <<EOF
12228 #line 12229 "configure"
12229 #include "confdefs.h"
12230 /* Override any gcc2 internal prototype to avoid an error. */
12231 /* We use char because int might match the return type of a gcc2
12232 builtin and then its argument prototype would still apply. */
12233 char dlopen();
12234
12235 int main() {
12236 dlopen()
12237 ; return 0; }
12238 EOF
12239 if { (eval echo configure:12240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12240 rm -rf conftest*
12241 eval "ac_cv_lib_$ac_lib_var=yes"
12242 else
12243 echo "configure: failed program was:" >&5
12244 cat conftest.$ac_ext >&5
12245 rm -rf conftest*
12246 eval "ac_cv_lib_$ac_lib_var=no"
12247 fi
12248 rm -f conftest*
12249 LIBS="$ac_save_LIBS"
12250
12251 fi
12252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12253 echo "$ac_t""yes" 1>&6
12254
12255 cat >> confdefs.h <<\EOF
12256 #define HAVE_DLOPEN 1
12257 EOF
12258
12259 HAVE_DL_FUNCS=1
12260 LIBS="$LIBS -ldl"
12261
12262 else
12263 echo "$ac_t""no" 1>&6
12264
12265 for ac_func in shl_load
12266 do
12267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12268 echo "configure:12269: checking for $ac_func" >&5
12269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12270 echo $ac_n "(cached) $ac_c" 1>&6
12271 else
12272 cat > conftest.$ac_ext <<EOF
12273 #line 12274 "configure"
12274 #include "confdefs.h"
12275 /* System header to define __stub macros and hopefully few prototypes,
12276 which can conflict with char $ac_func(); below. */
12277 #include <assert.h>
12278 /* Override any gcc2 internal prototype to avoid an error. */
12279 /* We use char because int might match the return type of a gcc2
12280 builtin and then its argument prototype would still apply. */
12281 char $ac_func();
12282 char (*f)();
12283
12284 int main() {
12285
12286 /* The GNU C library defines this for functions which it implements
12287 to always fail with ENOSYS. Some functions are actually named
12288 something starting with __ and the normal name is an alias. */
12289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12290 choke me
12291 #else
12292 f = $ac_func;
12293 #endif
12294
12295 ; return 0; }
12296 EOF
12297 if { (eval echo configure:12298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12298 rm -rf conftest*
12299 eval "ac_cv_func_$ac_func=yes"
12300 else
12301 echo "configure: failed program was:" >&5
12302 cat conftest.$ac_ext >&5
12303 rm -rf conftest*
12304 eval "ac_cv_func_$ac_func=no"
12305 fi
12306 rm -f conftest*
12307 fi
12308
12309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12310 echo "$ac_t""yes" 1>&6
12311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12312 cat >> confdefs.h <<EOF
12313 #define $ac_tr_func 1
12314 EOF
12315
12316 cat >> confdefs.h <<\EOF
12317 #define HAVE_SHL_LOAD 1
12318 EOF
12319
12320 HAVE_SHL_FUNCS=1
12321
12322 else
12323 echo "$ac_t""no" 1>&6
12324 fi
12325 done
12326
12327
12328 fi
12329
12330
12331 fi
12332 done
12333
12334
12335 if test "$HAVE_DL_FUNCS" = 0; then
12336 if test "$HAVE_SHL_FUNCS" = 0; then
12337 if test "$USE_UNIX" = 1; then
12338 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
12339 wxUSE_DYNLIB_CLASS=no
12340 else
12341 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
12342 fi
12343 fi
12344 fi
12345 fi
12346
12347 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
12348 cat >> confdefs.h <<\EOF
12349 #define wxUSE_DYNLIB_CLASS 1
12350 EOF
12351
12352 else
12353 wxUSE_ODBC=no
12354 wxUSE_SERIAL=no
12355 fi
12356
12357
12358 if test "$wxUSE_UNICODE" = "yes" ; then
12359 cat >> confdefs.h <<\EOF
12360 #define wxUSE_UNICODE 1
12361 EOF
12362
12363 fi
12364
12365 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12366 cat >> confdefs.h <<\EOF
12367 #define wxUSE_WCSRTOMBS 1
12368 EOF
12369
12370 fi
12371
12372 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12373 cat >> confdefs.h <<\EOF
12374 #define wxUSE_EXPERIMENTAL_PRINTF 1
12375 EOF
12376
12377 fi
12378
12379
12380 if test "$wxUSE_SERIAL" = "yes" ; then
12381 cat >> confdefs.h <<\EOF
12382 #define wxUSE_SERIAL 1
12383 EOF
12384
12385 fi
12386
12387
12388 IODBC_C_SRC=""
12389 if test "$wxUSE_ODBC" = "yes" ; then
12390 cat >> confdefs.h <<\EOF
12391 #define wxUSE_ODBC 1
12392 EOF
12393
12394 WXODBCFLAG="-D_IODBC_"
12395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12396 IODBCOBJS="\$(IODBC_OBJS)"
12397 else
12398 IODBCOBJS=
12399 fi
12400
12401
12402 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12403 cat >> confdefs.h <<\EOF
12404 #define wxUSE_POSTSCRIPT 1
12405 EOF
12406
12407 fi
12408
12409 cat >> confdefs.h <<\EOF
12410 #define wxUSE_AFM_FOR_POSTSCRIPT 1
12411 EOF
12412
12413
12414 cat >> confdefs.h <<\EOF
12415 #define wxUSE_NORMALIZED_PS_FONTS 1
12416 EOF
12417
12418
12419
12420 if test "$wxUSE_CONSTRAINTS" = "yes"; then
12421 cat >> confdefs.h <<\EOF
12422 #define wxUSE_CONSTRAINTS 1
12423 EOF
12424
12425 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12426 fi
12427
12428 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12429 cat >> confdefs.h <<\EOF
12430 #define wxUSE_MDI_ARCHITECTURE 1
12431 EOF
12432
12433 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12434 fi
12435
12436 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12437 cat >> confdefs.h <<\EOF
12438 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
12439 EOF
12440
12441 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12442 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12444 fi
12445 fi
12446
12447 if test "$wxUSE_HELP" = "yes"; then
12448 cat >> confdefs.h <<\EOF
12449 #define wxUSE_HELP 1
12450 EOF
12451
12452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12453 fi
12454
12455 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12456 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12457 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12458 else
12459 cat >> confdefs.h <<\EOF
12460 #define wxUSE_PRINTING_ARCHITECTURE 1
12461 EOF
12462
12463 fi
12464 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12465 fi
12466
12467 if test "$wxUSE_PROLOGIO" = "yes" ; then
12468 cat >> confdefs.h <<\EOF
12469 #define wxUSE_PROLOGIO 1
12470 EOF
12471
12472 fi
12473
12474 if test "$wxUSE_RESOURCES" = "yes" ; then
12475 if test "$wxUSE_PROLOGIO" = "yes" ; then
12476 cat >> confdefs.h <<\EOF
12477 #define wxUSE_RESOURCES 1
12478 EOF
12479
12480 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12481 else
12482 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12483 fi
12484 fi
12485
12486 if test "$wxUSE_X_RESOURCES" = "yes"; then
12487 cat >> confdefs.h <<\EOF
12488 #define wxUSE_X_RESOURCES 1
12489 EOF
12490
12491 fi
12492
12493
12494 if test "$wxUSE_IPC" = "yes"; then
12495 cat >> confdefs.h <<\EOF
12496 #define wxUSE_IPC 1
12497 EOF
12498
12499 fi
12500
12501 if test "$wxUSE_CLIPBOARD" = "yes"; then
12502 cat >> confdefs.h <<\EOF
12503 #define wxUSE_CLIPBOARD 1
12504 EOF
12505
12506 fi
12507
12508 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12509 if test "$wxUSE_GTK" = 1; then
12510 if test "$WXGTK12" != 1; then
12511 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12512 wxUSE_DRAG_AND_DROP=no
12513 fi
12514 fi
12515
12516 if test "$wxUSE_MOTIF" = 1; then
12517 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12518 wxUSE_DRAG_AND_DROP=no
12519 fi
12520
12521 if test "$USE_WIN32" = 1; then
12522 for ac_hdr in ole2.h
12523 do
12524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12526 echo "configure:12527: checking for $ac_hdr" >&5
12527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12528 echo $ac_n "(cached) $ac_c" 1>&6
12529 else
12530 cat > conftest.$ac_ext <<EOF
12531 #line 12532 "configure"
12532 #include "confdefs.h"
12533 #include <$ac_hdr>
12534 EOF
12535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12536 { (eval echo configure:12537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12538 if test -z "$ac_err"; then
12539 rm -rf conftest*
12540 eval "ac_cv_header_$ac_safe=yes"
12541 else
12542 echo "$ac_err" >&5
12543 echo "configure: failed program was:" >&5
12544 cat conftest.$ac_ext >&5
12545 rm -rf conftest*
12546 eval "ac_cv_header_$ac_safe=no"
12547 fi
12548 rm -f conftest*
12549 fi
12550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12551 echo "$ac_t""yes" 1>&6
12552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12553 cat >> confdefs.h <<EOF
12554 #define $ac_tr_hdr 1
12555 EOF
12556
12557 else
12558 echo "$ac_t""no" 1>&6
12559 fi
12560 done
12561
12562 if test "x$HAVE_OLE2_H" = x ; then
12563 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12564 wxUSE_DRAG_AND_DROP=no
12565 fi
12566 fi
12567
12568 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12569 cat >> confdefs.h <<\EOF
12570 #define wxUSE_DRAG_AND_DROP 1
12571 EOF
12572
12573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12574 fi
12575
12576 fi
12577
12578 if test "$wxUSE_SPLINES" = "yes" ; then
12579 cat >> confdefs.h <<\EOF
12580 #define wxUSE_SPLINES 1
12581 EOF
12582
12583 fi
12584
12585
12586 if test "$wxUSE_ACCEL" = "yes"; then
12587 cat >> confdefs.h <<\EOF
12588 #define wxUSE_ACCEL 1
12589 EOF
12590
12591 fi
12592
12593 if test "$wxUSE_CARET" = "yes"; then
12594 cat >> confdefs.h <<\EOF
12595 #define wxUSE_CARET 1
12596 EOF
12597
12598 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12599 fi
12600
12601 if test "$wxUSE_COMBOBOX" = "yes"; then
12602 cat >> confdefs.h <<\EOF
12603 #define wxUSE_COMBOBOX 1
12604 EOF
12605
12606 fi
12607
12608 if test "$wxUSE_CHOICE" = "yes"; then
12609 cat >> confdefs.h <<\EOF
12610 #define wxUSE_CHOICE 1
12611 EOF
12612
12613 fi
12614
12615 if test "$wxUSE_BMPBUTTON" = "yes"; then
12616 cat >> confdefs.h <<\EOF
12617 #define wxUSE_BMPBUTTON 1
12618 EOF
12619
12620 fi
12621
12622 if test "$wxUSE_CHECKBOX" = "yes"; then
12623 cat >> confdefs.h <<\EOF
12624 #define wxUSE_CHECKBOX 1
12625 EOF
12626
12627 fi
12628
12629 if test "$wxUSE_CHECKLST" = "yes"; then
12630 cat >> confdefs.h <<\EOF
12631 #define wxUSE_CHECKLISTBOX 1
12632 EOF
12633
12634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12635 fi
12636
12637 if test "$wxUSE_GAUGE" = "yes"; then
12638 cat >> confdefs.h <<\EOF
12639 #define wxUSE_GAUGE 1
12640 EOF
12641
12642 fi
12643
12644 if test "$wxUSE_GRID" = "yes"; then
12645 cat >> confdefs.h <<\EOF
12646 #define wxUSE_GRID 1
12647 EOF
12648
12649 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
12650 fi
12651
12652 if test "$wxUSE_NEW_GRID" = "yes"; then
12653 cat >> confdefs.h <<\EOF
12654 #define wxUSE_NEW_GRID 1
12655 EOF
12656
12657 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
12658 fi
12659
12660 if test "$wxUSE_IMAGLIST" = "yes"; then
12661 cat >> confdefs.h <<\EOF
12662 #define wxUSE_IMAGLIST 1
12663 EOF
12664
12665 fi
12666
12667 if test "$wxUSE_LISTBOX" = "yes"; then
12668 cat >> confdefs.h <<\EOF
12669 #define wxUSE_LISTBOX 1
12670 EOF
12671
12672 fi
12673
12674 if test "$wxUSE_LISTCTRL" = "yes"; then
12675 if test "$wxUSE_IMAGLIST" = "yes"; then
12676 cat >> confdefs.h <<\EOF
12677 #define wxUSE_LISTCTRL 1
12678 EOF
12679
12680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
12681 else
12682 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
12683 fi
12684 fi
12685
12686 if test "$wxUSE_NOTEBOOK" = "yes"; then
12687 cat >> confdefs.h <<\EOF
12688 #define wxUSE_NOTEBOOK 1
12689 EOF
12690
12691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
12692 fi
12693
12694 if test "$wxUSE_RADIOBOX" = "yes"; then
12695 cat >> confdefs.h <<\EOF
12696 #define wxUSE_RADIOBOX 1
12697 EOF
12698
12699 fi
12700
12701 if test "$wxUSE_RADIOBTN" = "yes"; then
12702 cat >> confdefs.h <<\EOF
12703 #define wxUSE_RADIOBTN 1
12704 EOF
12705
12706 fi
12707
12708 if test "$wxUSE_SASH" = "yes"; then
12709 cat >> confdefs.h <<\EOF
12710 #define wxUSE_SASH 1
12711 EOF
12712
12713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
12714 fi
12715
12716 if test "$wxUSE_SCROLLBAR" = "yes"; then
12717 cat >> confdefs.h <<\EOF
12718 #define wxUSE_SCROLLBAR 1
12719 EOF
12720
12721 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
12722 fi
12723
12724 if test "$wxUSE_SLIDER" = "yes"; then
12725 cat >> confdefs.h <<\EOF
12726 #define wxUSE_SLIDER 1
12727 EOF
12728
12729 fi
12730
12731 if test "$wxUSE_SPINBTN" = "yes"; then
12732 cat >> confdefs.h <<\EOF
12733 #define wxUSE_SPINBTN 1
12734 EOF
12735
12736 fi
12737
12738 if test "$wxUSE_SPINCTRL" = "yes"; then
12739 cat >> confdefs.h <<\EOF
12740 #define wxUSE_SPINCTRL 1
12741 EOF
12742
12743 fi
12744
12745 if test "$wxUSE_SPLITTER" = "yes"; then
12746 cat >> confdefs.h <<\EOF
12747 #define wxUSE_SPLITTER 1
12748 EOF
12749
12750 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
12751 fi
12752
12753 if test "$wxUSE_STATBMP" = "yes"; then
12754 cat >> confdefs.h <<\EOF
12755 #define wxUSE_STATBMP 1
12756 EOF
12757
12758 fi
12759
12760 if test "$wxUSE_STATBOX" = "yes"; then
12761 cat >> confdefs.h <<\EOF
12762 #define wxUSE_STATBOX 1
12763 EOF
12764
12765 fi
12766
12767 if test "$wxUSE_STATLINE" = "yes"; then
12768 if test "$wxUSE_WINE" = 1 ; then
12769 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
12770 else
12771 cat >> confdefs.h <<\EOF
12772 #define wxUSE_STATLINE 1
12773 EOF
12774
12775 fi
12776 fi
12777
12778 if test "$wxUSE_STATUSBAR" = "yes"; then
12779 cat >> confdefs.h <<\EOF
12780 #define wxUSE_STATUSBAR 1
12781 EOF
12782
12783 fi
12784
12785 if test "$wxUSE_TABDIALOG" = "yes"; then
12786 cat >> confdefs.h <<\EOF
12787 #define wxUSE_TAB_DIALOG 1
12788 EOF
12789
12790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
12791 fi
12792
12793 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
12794 cat >> confdefs.h <<\EOF
12795 #define wxUSE_TOOLBAR_SIMPLE 1
12796 EOF
12797
12798 wxUSE_TOOLBAR="yes"
12799 fi
12800
12801 if test "$wxUSE_TOOLBAR" = "yes"; then
12802 cat >> confdefs.h <<\EOF
12803 #define wxUSE_TOOLBAR 1
12804 EOF
12805
12806
12807 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
12808 wxUSE_TOOLBAR_NATIVE="yes"
12809 fi
12810
12811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
12812 fi
12813
12814 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
12815 cat >> confdefs.h <<\EOF
12816 #define wxUSE_TOOLBAR_NATIVE 1
12817 EOF
12818
12819 fi
12820
12821 if test "$wxUSE_TOOLTIPS" = "yes"; then
12822 if test "$wxUSE_MOTIF" = 1; then
12823 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
12824 else
12825 if test "$wxUSE_WINE" = 1; then
12826 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
12827 else
12828 cat >> confdefs.h <<\EOF
12829 #define wxUSE_TOOLTIPS 1
12830 EOF
12831
12832 fi
12833 fi
12834 fi
12835
12836 if test "$wxUSE_TREECTRL" = "yes"; then
12837 if test "$wxUSE_IMAGLIST" = "yes"; then
12838 cat >> confdefs.h <<\EOF
12839 #define wxUSE_TREECTRL 1
12840 EOF
12841
12842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
12843 else
12844 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
12845 fi
12846 fi
12847
12848
12849
12850 if test "$wxUSE_METAFILE" = "yes"; then
12851 cat >> confdefs.h <<\EOF
12852 #define wxUSE_METAFILE 1
12853 EOF
12854
12855 fi
12856
12857 if test "$wxUSE_DIRDLG" = "yes"; then
12858 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12859 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
12860 else
12861 if test "$wxUSE_TREECTRL" != "yes"; then
12862 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
12863 else
12864 cat >> confdefs.h <<\EOF
12865 #define wxUSE_DIRDLG 1
12866 EOF
12867
12868 fi
12869 fi
12870 fi
12871
12872 if test "$wxUSE_TEXTDLG" = "yes"; then
12873 cat >> confdefs.h <<\EOF
12874 #define wxUSE_TEXTDLG 1
12875 EOF
12876
12877 fi
12878
12879 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
12880 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12881 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
12882 else
12883 cat >> confdefs.h <<\EOF
12884 #define wxUSE_STARTUP_TIPS 1
12885 EOF
12886
12887 fi
12888 fi
12889
12890 if test "$wxUSE_PROGRESSDLG" = "yes"; then
12891 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12892 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
12893 else
12894 cat >> confdefs.h <<\EOF
12895 #define wxUSE_PROGRESSDLG 1
12896 EOF
12897
12898 fi
12899 fi
12900
12901 if test "$wxUSE_MINIFRAME" = "yes"; then
12902 cat >> confdefs.h <<\EOF
12903 #define wxUSE_MINIFRAME 1
12904 EOF
12905
12906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
12907 fi
12908
12909 if test "$wxUSE_HTML" = "yes"; then
12910 cat >> confdefs.h <<\EOF
12911 #define wxUSE_HTML 1
12912 EOF
12913
12914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
12915 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
12916 fi
12917
12918 if test "$wxUSE_VALIDATORS" = "yes"; then
12919 cat >> confdefs.h <<\EOF
12920 #define wxUSE_VALIDATORS 1
12921 EOF
12922
12923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
12924 fi
12925
12926 if test "$wxUSE_GIF" = "yes" ; then
12927 cat >> confdefs.h <<\EOF
12928 #define wxUSE_GIF 1
12929 EOF
12930
12931 fi
12932
12933 if test "$wxUSE_PCX" = "yes" ; then
12934 cat >> confdefs.h <<\EOF
12935 #define wxUSE_PCX 1
12936 EOF
12937
12938 fi
12939
12940 if test "$wxUSE_PNM" = "yes" ; then
12941 cat >> confdefs.h <<\EOF
12942 #define wxUSE_PNM 1
12943 EOF
12944
12945 fi
12946
12947
12948 OSINFO=`uname -s -r -m`
12949 OSINFO="\"$OSINFO\""
12950 cat >> confdefs.h <<EOF
12951 #define WXWIN_OS_DESCRIPTION $OSINFO
12952 EOF
12953
12954
12955
12956 GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
12957
12958 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
12959 if test "$wxUSE_GUI" = "yes"; then
12960 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
12961 fi
12962
12963 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
12964
12965 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
12966
12967 if test "$GXX" = yes ; then
12968 CXXWARNINGS="-Wall"
12969 fi
12970 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
12971
12972 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
12973 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
12974
12975 LDFLAGS="$LDFLAGS $PROFILE"
12976
12977 if test "$wxUSE_GUI" = "yes"; then
12978
12979 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs drawing dynamic \
12980 font fractal image minimal richedit"
12981
12982 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS)"
12983 else
12984 SAMPLES_SUBDIRS=""
12985 fi
12986
12987 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
13052 echo "configure:13053: checking whether ${MAKE-make} sets \${MAKE}" >&5
13053 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13054 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13055 echo $ac_n "(cached) $ac_c" 1>&6
13056 else
13057 cat > conftestmake <<\EOF
13058 all:
13059 @echo 'ac_maketemp="${MAKE}"'
13060 EOF
13061 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13062 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13063 if test -n "$ac_maketemp"; then
13064 eval ac_cv_prog_make_${ac_make}_set=yes
13065 else
13066 eval ac_cv_prog_make_${ac_make}_set=no
13067 fi
13068 rm -f conftestmake
13069 fi
13070 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13071 echo "$ac_t""yes" 1>&6
13072 SET_MAKE=
13073 else
13074 echo "$ac_t""no" 1>&6
13075 SET_MAKE="MAKE=${MAKE-make}"
13076 fi
13077
13078
13079
13080
13081 if test "${TOOLKIT_DIR}" = "msw" ; then
13082 GL_TOOLKIT_DIR="win"
13083 else
13084 GL_TOOLKIT_DIR="${TOOLKIT_DIR}"
13085 fi
13086
13087
13088 trap '' 1 2 15
13089 cat > confcache <<\EOF
13090 # This file is a shell script that caches the results of configure
13091 # tests run on this system so they can be shared between configure
13092 # scripts and configure runs. It is not useful on other systems.
13093 # If it contains results you don't want to keep, you may remove or edit it.
13094 #
13095 # By default, configure uses ./config.cache as the cache file,
13096 # creating it if it does not exist already. You can give configure
13097 # the --cache-file=FILE option to use a different cache file; that is
13098 # what configure does when it calls configure scripts in
13099 # subdirectories, so they share the cache.
13100 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13101 # config.status only pays attention to the cache file if you give it the
13102 # --recheck option to rerun configure.
13103 #
13104 EOF
13105 # The following way of writing the cache mishandles newlines in values,
13106 # but we know of no workaround that is simple, portable, and efficient.
13107 # So, don't put newlines in cache variables' values.
13108 # Ultrix sh set writes to stderr and can't be redirected directly,
13109 # and sets the high bit in the cache file unless we assign to the vars.
13110 (set) 2>&1 |
13111 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13112 *ac_space=\ *)
13113 # `set' does not quote correctly, so add quotes (double-quote substitution
13114 # turns \\\\ into \\, and sed turns \\ into \).
13115 sed -n \
13116 -e "s/'/'\\\\''/g" \
13117 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13118 ;;
13119 *)
13120 # `set' quotes correctly as required by POSIX, so do not add quotes.
13121 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13122 ;;
13123 esac >> confcache
13124 if cmp -s $cache_file confcache; then
13125 :
13126 else
13127 if test -w $cache_file; then
13128 echo "updating cache $cache_file"
13129 cat confcache > $cache_file
13130 else
13131 echo "not updating unwritable cache $cache_file"
13132 fi
13133 fi
13134 rm -f confcache
13135
13136 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13137
13138 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13139 # Let make expand exec_prefix.
13140 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13141
13142 # Any assignment to VPATH causes Sun make to only execute
13143 # the first set of double-colon rules, so remove it if not needed.
13144 # If there is a colon in the path, we need to keep it.
13145 if test "x$srcdir" = x.; then
13146 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13147 fi
13148
13149 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13150
13151 DEFS=-DHAVE_CONFIG_H
13152
13153 # Without the "./", some shells look in PATH for config.status.
13154 : ${CONFIG_STATUS=./config.status}
13155
13156 echo creating $CONFIG_STATUS
13157 rm -f $CONFIG_STATUS
13158 cat > $CONFIG_STATUS <<EOF
13159 #! /bin/sh
13160 # Generated automatically by configure.
13161 # Run this file to recreate the current configuration.
13162 # This directory was configured as follows,
13163 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13164 #
13165 # $0 $ac_configure_args
13166 #
13167 # Compiler output produced by configure, useful for debugging
13168 # configure, is in ./config.log if it exists.
13169
13170 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13171 for ac_option
13172 do
13173 case "\$ac_option" in
13174 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13175 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13176 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13177 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13178 echo "$CONFIG_STATUS generated by autoconf version 2.14"
13179 exit 0 ;;
13180 -help | --help | --hel | --he | --h)
13181 echo "\$ac_cs_usage"; exit 0 ;;
13182 *) echo "\$ac_cs_usage"; exit 1 ;;
13183 esac
13184 done
13185
13186 ac_given_srcdir=$srcdir
13187 ac_given_INSTALL="$INSTALL"
13188
13189 trap 'rm -fr `echo "
13190 wx-config
13191 src/make.env
13192 src/makeprog.env
13193 src/makelib.env
13194 Makefile
13195 demos/Makefile
13196 demos/bombs/Makefile
13197 demos/forty/Makefile
13198 demos/fractal/Makefile
13199 demos/life/Makefile
13200 demos/poem/Makefile
13201 samples/Makefile
13202 samples/caret/Makefile
13203 samples/calendar/Makefile
13204 samples/checklst/Makefile
13205 samples/config/Makefile
13206 samples/controls/Makefile
13207 samples/console/Makefile
13208 samples/db/Makefile
13209 samples/dialogs/Makefile
13210 samples/docview/Makefile
13211 samples/docvwmdi/Makefile
13212 samples/dnd/Makefile
13213 samples/drawing/Makefile
13214 samples/exec/Makefile
13215 samples/font/Makefile
13216 samples/grid/Makefile
13217 samples/help/Makefile
13218 samples/image/Makefile
13219 samples/internat/Makefile
13220 samples/ipc/Makefile
13221 samples/layout/Makefile
13222 samples/listctrl/Makefile
13223 samples/mdi/Makefile
13224 samples/minifram/Makefile
13225 samples/minimal/Makefile
13226 samples/dialup/Makefile
13227 samples/newgrid/Makefile
13228 samples/notebook/Makefile
13229 samples/png/Makefile
13230 samples/printing/Makefile
13231 samples/proplist/Makefile
13232 samples/propsize/Makefile
13233 samples/richedit/Makefile
13234 samples/resource/Makefile
13235 samples/sashtest/Makefile
13236 samples/scroll/Makefile
13237 samples/scrollsub/Makefile
13238 samples/splitter/Makefile
13239 samples/text/Makefile
13240 samples/thread/Makefile
13241 samples/toolbar/Makefile
13242 samples/treectrl/Makefile
13243 samples/typetest/Makefile
13244 samples/validate/Makefile
13245 samples/sockets/Makefile
13246 samples/wizard/Makefile
13247 samples/html/Makefile
13248 samples/html/about/Makefile
13249 samples/html/help/Makefile
13250 samples/html/printing/Makefile
13251 samples/html/helpview/Makefile
13252 samples/html/test/Makefile
13253 samples/html/zip/Makefile
13254 samples/html/virtual/Makefile
13255 samples/html/widget/Makefile
13256 utils/Makefile
13257 utils/wxMMedia2/Makefile
13258 utils/wxMMedia2/lib/Makefile
13259 utils/wxMMedia2/sample/Makefile
13260 utils/glcanvas/Makefile
13261 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
13262 utils/ogl/Makefile
13263 utils/ogl/src/Makefile
13264 utils/makegen/Makefile
13265 utils/HelpGen/Makefile
13266 utils/HelpGen/src/Makefile
13267 utils/tex2rtf/Makefile
13268 utils/tex2rtf/src/Makefile
13269 utils/hhp2cached/Makefile
13270 utils/dialoged/Makefile
13271 utils/dialoged/src/Makefile
13272 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13273 EOF
13274 cat >> $CONFIG_STATUS <<EOF
13275
13276 # Protect against being on the right side of a sed subst in config.status.
13277 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13278 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13279 $ac_vpsub
13280 $extrasub
13281 s%@SHELL@%$SHELL%g
13282 s%@CFLAGS@%$CFLAGS%g
13283 s%@CPPFLAGS@%$CPPFLAGS%g
13284 s%@CXXFLAGS@%$CXXFLAGS%g
13285 s%@FFLAGS@%$FFLAGS%g
13286 s%@DEFS@%$DEFS%g
13287 s%@LDFLAGS@%$LDFLAGS%g
13288 s%@LIBS@%$LIBS%g
13289 s%@exec_prefix@%$exec_prefix%g
13290 s%@prefix@%$prefix%g
13291 s%@program_transform_name@%$program_transform_name%g
13292 s%@bindir@%$bindir%g
13293 s%@sbindir@%$sbindir%g
13294 s%@libexecdir@%$libexecdir%g
13295 s%@datadir@%$datadir%g
13296 s%@sysconfdir@%$sysconfdir%g
13297 s%@sharedstatedir@%$sharedstatedir%g
13298 s%@localstatedir@%$localstatedir%g
13299 s%@libdir@%$libdir%g
13300 s%@includedir@%$includedir%g
13301 s%@oldincludedir@%$oldincludedir%g
13302 s%@infodir@%$infodir%g
13303 s%@mandir@%$mandir%g
13304 s%@host@%$host%g
13305 s%@host_alias@%$host_alias%g
13306 s%@host_cpu@%$host_cpu%g
13307 s%@host_vendor@%$host_vendor%g
13308 s%@host_os@%$host_os%g
13309 s%@target@%$target%g
13310 s%@target_alias@%$target_alias%g
13311 s%@target_cpu@%$target_cpu%g
13312 s%@target_vendor@%$target_vendor%g
13313 s%@target_os@%$target_os%g
13314 s%@build@%$build%g
13315 s%@build_alias@%$build_alias%g
13316 s%@build_cpu@%$build_cpu%g
13317 s%@build_vendor@%$build_vendor%g
13318 s%@build_os@%$build_os%g
13319 s%@CC@%$CC%g
13320 s%@CPP@%$CPP%g
13321 s%@CXX@%$CXX%g
13322 s%@CXXCPP@%$CXXCPP%g
13323 s%@RANLIB@%$RANLIB%g
13324 s%@AR@%$AR%g
13325 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13326 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13327 s%@INSTALL_DATA@%$INSTALL_DATA%g
13328 s%@STRIP@%$STRIP%g
13329 s%@YACC@%$YACC%g
13330 s%@LEX@%$LEX%g
13331 s%@LEXLIB@%$LEXLIB%g
13332 s%@LN_S@%$LN_S%g
13333 s%@GTK_CONFIG@%$GTK_CONFIG%g
13334 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13335 s%@GTK_LIBS@%$GTK_LIBS%g
13336 s%@X_CFLAGS@%$X_CFLAGS%g
13337 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13338 s%@X_LIBS@%$X_LIBS%g
13339 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13340 s%@LEX_STEM@%$LEX_STEM%g
13341 s%@PATH_IFS@%$PATH_IFS%g
13342 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13343 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13344 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13345 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13346 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13347 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13348 s%@WX_LIBRARY@%$WX_LIBRARY%g
13349 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13350 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13351 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13352 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13353 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13354 s%@WX_ALL@%$WX_ALL%g
13355 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13356 s%@SHARED_LD@%$SHARED_LD%g
13357 s%@PIC_FLAG@%$PIC_FLAG%g
13358 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
13359 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
13360 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
13361 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
13362 s%@USE_GUI@%$USE_GUI%g
13363 s%@AFMINSTALL@%$AFMINSTALL%g
13364 s%@TOOLKIT@%$TOOLKIT%g
13365 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13366 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13367 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13368 s%@GUIHEADERS@%$GUIHEADERS%g
13369 s%@GUIOBJS@%$GUIOBJS%g
13370 s%@COMMONOBJS@%$COMMONOBJS%g
13371 s%@GENERICOBJS@%$GENERICOBJS%g
13372 s%@GUIDEPS@%$GUIDEPS%g
13373 s%@COMMONDEPS@%$COMMONDEPS%g
13374 s%@GENERICDEPS@%$GENERICDEPS%g
13375 s%@IODBCOBJS@%$IODBCOBJS%g
13376 s%@UNIXOBJS@%$UNIXOBJS%g
13377 s%@UNIXDEPS@%$UNIXDEPS%g
13378 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13379 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
13380 s%@ALL_HEADERS@%$ALL_HEADERS%g
13381 s%@GUIDIST@%$GUIDIST%g
13382 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13383 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13384 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13385 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13386 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13387 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13388 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
13389 s%@EXTRADEFS@%$EXTRADEFS%g
13390 s%@LD_LIBS@%$LD_LIBS%g
13391 s%@SET_MAKE@%$SET_MAKE%g
13392 s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
13393
13394 CEOF
13395 EOF
13396
13397 cat >> $CONFIG_STATUS <<\EOF
13398
13399 # Split the substitutions into bite-sized pieces for seds with
13400 # small command number limits, like on Digital OSF/1 and HP-UX.
13401 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13402 ac_file=1 # Number of current file.
13403 ac_beg=1 # First line for current file.
13404 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13405 ac_more_lines=:
13406 ac_sed_cmds=""
13407 while $ac_more_lines; do
13408 if test $ac_beg -gt 1; then
13409 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13410 else
13411 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13412 fi
13413 if test ! -s conftest.s$ac_file; then
13414 ac_more_lines=false
13415 rm -f conftest.s$ac_file
13416 else
13417 if test -z "$ac_sed_cmds"; then
13418 ac_sed_cmds="sed -f conftest.s$ac_file"
13419 else
13420 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13421 fi
13422 ac_file=`expr $ac_file + 1`
13423 ac_beg=$ac_end
13424 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13425 fi
13426 done
13427 if test -z "$ac_sed_cmds"; then
13428 ac_sed_cmds=cat
13429 fi
13430 EOF
13431
13432 cat >> $CONFIG_STATUS <<EOF
13433
13434 CONFIG_FILES=\${CONFIG_FILES-"wx-config
13435 src/make.env
13436 src/makeprog.env
13437 src/makelib.env
13438 Makefile
13439 demos/Makefile
13440 demos/bombs/Makefile
13441 demos/forty/Makefile
13442 demos/fractal/Makefile
13443 demos/life/Makefile
13444 demos/poem/Makefile
13445 samples/Makefile
13446 samples/caret/Makefile
13447 samples/calendar/Makefile
13448 samples/checklst/Makefile
13449 samples/config/Makefile
13450 samples/controls/Makefile
13451 samples/console/Makefile
13452 samples/db/Makefile
13453 samples/dialogs/Makefile
13454 samples/docview/Makefile
13455 samples/docvwmdi/Makefile
13456 samples/dnd/Makefile
13457 samples/drawing/Makefile
13458 samples/exec/Makefile
13459 samples/font/Makefile
13460 samples/grid/Makefile
13461 samples/help/Makefile
13462 samples/image/Makefile
13463 samples/internat/Makefile
13464 samples/ipc/Makefile
13465 samples/layout/Makefile
13466 samples/listctrl/Makefile
13467 samples/mdi/Makefile
13468 samples/minifram/Makefile
13469 samples/minimal/Makefile
13470 samples/dialup/Makefile
13471 samples/newgrid/Makefile
13472 samples/notebook/Makefile
13473 samples/png/Makefile
13474 samples/printing/Makefile
13475 samples/proplist/Makefile
13476 samples/propsize/Makefile
13477 samples/richedit/Makefile
13478 samples/resource/Makefile
13479 samples/sashtest/Makefile
13480 samples/scroll/Makefile
13481 samples/scrollsub/Makefile
13482 samples/splitter/Makefile
13483 samples/text/Makefile
13484 samples/thread/Makefile
13485 samples/toolbar/Makefile
13486 samples/treectrl/Makefile
13487 samples/typetest/Makefile
13488 samples/validate/Makefile
13489 samples/sockets/Makefile
13490 samples/wizard/Makefile
13491 samples/html/Makefile
13492 samples/html/about/Makefile
13493 samples/html/help/Makefile
13494 samples/html/printing/Makefile
13495 samples/html/helpview/Makefile
13496 samples/html/test/Makefile
13497 samples/html/zip/Makefile
13498 samples/html/virtual/Makefile
13499 samples/html/widget/Makefile
13500 utils/Makefile
13501 utils/wxMMedia2/Makefile
13502 utils/wxMMedia2/lib/Makefile
13503 utils/wxMMedia2/sample/Makefile
13504 utils/glcanvas/Makefile
13505 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
13506 utils/ogl/Makefile
13507 utils/ogl/src/Makefile
13508 utils/makegen/Makefile
13509 utils/HelpGen/Makefile
13510 utils/HelpGen/src/Makefile
13511 utils/tex2rtf/Makefile
13512 utils/tex2rtf/src/Makefile
13513 utils/hhp2cached/Makefile
13514 utils/dialoged/Makefile
13515 utils/dialoged/src/Makefile
13516 "}
13517 EOF
13518 cat >> $CONFIG_STATUS <<\EOF
13519 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13520 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13521 case "$ac_file" in
13522 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13523 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13524 *) ac_file_in="${ac_file}.in" ;;
13525 esac
13526
13527 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13528
13529 # Remove last slash and all that follows it. Not all systems have dirname.
13530 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13531 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13532 # The file is in a subdirectory.
13533 test ! -d "$ac_dir" && mkdir "$ac_dir"
13534 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13535 # A "../" for each directory in $ac_dir_suffix.
13536 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13537 else
13538 ac_dir_suffix= ac_dots=
13539 fi
13540
13541 case "$ac_given_srcdir" in
13542 .) srcdir=.
13543 if test -z "$ac_dots"; then top_srcdir=.
13544 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13545 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13546 *) # Relative path.
13547 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13548 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13549 esac
13550
13551 case "$ac_given_INSTALL" in
13552 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13553 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13554 esac
13555
13556 echo creating "$ac_file"
13557 rm -f "$ac_file"
13558 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13559 case "$ac_file" in
13560 *Makefile*) ac_comsub="1i\\
13561 # $configure_input" ;;
13562 *) ac_comsub= ;;
13563 esac
13564
13565 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13566 sed -e "$ac_comsub
13567 s%@configure_input@%$configure_input%g
13568 s%@srcdir@%$srcdir%g
13569 s%@top_srcdir@%$top_srcdir%g
13570 s%@INSTALL@%$INSTALL%g
13571 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13572 fi; done
13573 rm -f conftest.s*
13574
13575 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13576 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13577 #
13578 # ac_d sets the value in "#define NAME VALUE" lines.
13579 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13580 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13581 ac_dC='\3'
13582 ac_dD='%g'
13583 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13584 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13585 ac_uB='\([ ]\)%\1#\2define\3'
13586 ac_uC=' '
13587 ac_uD='\4%g'
13588 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13589 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13590 ac_eB='$%\1#\2define\3'
13591 ac_eC=' '
13592 ac_eD='%g'
13593
13594 if test "${CONFIG_HEADERS+set}" != set; then
13595 EOF
13596 cat >> $CONFIG_STATUS <<EOF
13597 CONFIG_HEADERS="setup.h:setup.h.in"
13598 EOF
13599 cat >> $CONFIG_STATUS <<\EOF
13600 fi
13601 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13602 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13603 case "$ac_file" in
13604 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13605 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13606 *) ac_file_in="${ac_file}.in" ;;
13607 esac
13608
13609 echo creating $ac_file
13610
13611 rm -f conftest.frag conftest.in conftest.out
13612 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13613 cat $ac_file_inputs > conftest.in
13614
13615 EOF
13616
13617 # Transform confdefs.h into a sed script conftest.vals that substitutes
13618 # the proper values into config.h.in to produce config.h. And first:
13619 # Protect against being on the right side of a sed subst in config.status.
13620 # Protect against being in an unquoted here document in config.status.
13621 rm -f conftest.vals
13622 cat > conftest.hdr <<\EOF
13623 s/[\\&%]/\\&/g
13624 s%[\\$`]%\\&%g
13625 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13626 s%ac_d%ac_u%gp
13627 s%ac_u%ac_e%gp
13628 EOF
13629 sed -n -f conftest.hdr confdefs.h > conftest.vals
13630 rm -f conftest.hdr
13631
13632 # This sed command replaces #undef with comments. This is necessary, for
13633 # example, in the case of _POSIX_SOURCE, which is predefined and required
13634 # on some systems where configure will not decide to define it.
13635 cat >> conftest.vals <<\EOF
13636 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13637 EOF
13638
13639 # Break up conftest.vals because some shells have a limit on
13640 # the size of here documents, and old seds have small limits too.
13641
13642 rm -f conftest.tail
13643 while :
13644 do
13645 ac_lines=`grep -c . conftest.vals`
13646 # grep -c gives empty output for an empty file on some AIX systems.
13647 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13648 # Write a limited-size here document to conftest.frag.
13649 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13650 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13651 echo 'CEOF
13652 sed -f conftest.frag conftest.in > conftest.out
13653 rm -f conftest.in
13654 mv conftest.out conftest.in
13655 ' >> $CONFIG_STATUS
13656 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13657 rm -f conftest.vals
13658 mv conftest.tail conftest.vals
13659 done
13660 rm -f conftest.vals
13661
13662 cat >> $CONFIG_STATUS <<\EOF
13663 rm -f conftest.frag conftest.h
13664 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13665 cat conftest.in >> conftest.h
13666 rm -f conftest.in
13667 if cmp -s $ac_file conftest.h 2>/dev/null; then
13668 echo "$ac_file is unchanged"
13669 rm -f conftest.h
13670 else
13671 # Remove last slash and all that follows it. Not all systems have dirname.
13672 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13673 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13674 # The file is in a subdirectory.
13675 test ! -d "$ac_dir" && mkdir "$ac_dir"
13676 fi
13677 rm -f $ac_file
13678 mv conftest.h $ac_file
13679 fi
13680 fi; done
13681
13682 EOF
13683 cat >> $CONFIG_STATUS <<EOF
13684
13685 TOOLKIT_DIR="${TOOLKIT_DIR}"
13686
13687
13688 EOF
13689 cat >> $CONFIG_STATUS <<\EOF
13690
13691 chmod +x wx-config
13692 if test ! -d include; then
13693 mkdir include
13694 fi
13695 if test ! -d include/wx; then
13696 mkdir include/wx
13697 fi
13698 if test ! -d include/wx/${TOOLKIT_DIR}; then
13699 mkdir include/wx/${TOOLKIT_DIR}
13700 fi
13701 if test -f setup.h; then
13702 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13703 fi
13704
13705 exit 0
13706 EOF
13707 chmod +x $CONFIG_STATUS
13708 rm -fr confdefs* $ac_clean_files
13709 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13710
13711