]> git.saurik.com Git - wxWidgets.git/blob - configure
More mostly cross compiling related mods..
[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
41
42 # Configure paths for GTK+
43 # Owen Taylor 97-11-3
44
45
46 # Guess values for system-dependent variables and create Makefiles.
47 # Generated automatically using autoconf version 2.13
48 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
49 #
50 # This configure script is free software; the Free Software Foundation
51 # gives unlimited permission to copy, distribute and modify it.
52
53 # Defaults:
54 ac_help=
55 ac_default_prefix=/usr/local
56 # Any additions from configure.in:
57 ac_help="$ac_help
58 --enable-gui use GUI classes"
59 ac_help="$ac_help
60 --with-gtk use GTK+"
61 ac_help="$ac_help
62 --with-motif use Motif/Lesstif"
63 ac_help="$ac_help
64 --with-mac use Mac OS X"
65 ac_help="$ac_help
66 --with-wine use WINE"
67 ac_help="$ac_help
68 --with-cygwin use Cygwin for MS-Windows"
69 ac_help="$ac_help
70 --with-mingw use GCC Minimal MS-Windows"
71 ac_help="$ac_help
72 --with-pm use OS/2 Presentation Manager"
73 ac_help="$ac_help
74 --with-gtk-prefix=PFX Prefix where GTK is installed"
75 ac_help="$ac_help
76 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
77 ac_help="$ac_help
78 --with-libpng use libpng (PNG image format)"
79 ac_help="$ac_help
80 --with-libjpeg use libjpeg (JPEG file format)"
81 ac_help="$ac_help
82 --with-libtiff use libtiff (TIFF file format)"
83 ac_help="$ac_help
84 --with-freetype use freetype (font rasterizer)"
85 ac_help="$ac_help
86 --with-opengl use OpenGL (or Mesa)"
87 ac_help="$ac_help
88 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
89 ac_help="$ac_help
90 --with-zlib use zlib for LZW compression"
91 ac_help="$ac_help
92 --with-odbc use the IODBC and wxODBC classes"
93 ac_help="$ac_help
94 --enable-shared create shared library code"
95 ac_help="$ac_help
96 --enable-burnt_name create set name in shared library "
97 ac_help="$ac_help
98 --enable-optimise create optimised code"
99 ac_help="$ac_help
100 --enable-debug same as debug_flag and debug_info"
101 ac_help="$ac_help
102 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
103 ac_help="$ac_help
104 --enable-debug_info create code with debugging information"
105 ac_help="$ac_help
106 --enable-debug_gdb create code with extra GDB debugging information"
107 ac_help="$ac_help
108 --enable-debug_cntxt use wxDebugContext"
109 ac_help="$ac_help
110 --enable-mem_tracing create code with memory tracing"
111 ac_help="$ac_help
112 --enable-profile create code with profiling information"
113 ac_help="$ac_help
114 --enable-no_rtti create code without RTTI information"
115 ac_help="$ac_help
116 --enable-no_exceptions create code without exceptions information"
117 ac_help="$ac_help
118 --enable-permissive compile code disregarding strict ANSI"
119 ac_help="$ac_help
120 --enable-no_deps create code without dependency information"
121 ac_help="$ac_help
122 --enable-intl use internationalization system"
123 ac_help="$ac_help
124 --enable-config use wxConfig (and derived) classes"
125 ac_help="$ac_help
126 --enable-sockets use socket/network classes"
127 ac_help="$ac_help
128 --enable-ipc use interprocess communication (wxSocket etc.)"
129 ac_help="$ac_help
130 --enable-dialupman use dialup network classes"
131 ac_help="$ac_help
132 --enable-apple_ieee use the Apple IEEE codec"
133 ac_help="$ac_help
134 --enable-timedate use date/time classes"
135 ac_help="$ac_help
136 --enable-wave use wxWave class"
137 ac_help="$ac_help
138 --enable-fraction use wxFraction class"
139 ac_help="$ac_help
140 --enable-dynlib use wxLibrary class for DLL loading"
141 ac_help="$ac_help
142 --enable-longlong use wxLongLong class"
143 ac_help="$ac_help
144 --enable-geometry use geometry class"
145 ac_help="$ac_help
146 --enable-log use logging system"
147 ac_help="$ac_help
148 --enable-streams use wxStream etc classes"
149 ac_help="$ac_help
150 --enable-file use wxFile classes"
151 ac_help="$ac_help
152 --enable-textfile use wxTextFile classes"
153 ac_help="$ac_help
154 --enable-unicode compile wxString with Unicode support"
155 ac_help="$ac_help
156 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
157 ac_help="$ac_help
158 --enable-wxprintfv use wxWindows implementation of vprintf()"
159 ac_help="$ac_help
160 --enable-std_iostreams use standard C++ stream classes"
161 ac_help="$ac_help
162 --enable-filesystem use virtual file systems classes"
163 ac_help="$ac_help
164 --enable-fs_inet use virtual HTTP/FTP filesystems"
165 ac_help="$ac_help
166 --enable-fs_zip use virtual ZIP filesystems"
167 ac_help="$ac_help
168 --enable-zipstream use wxZipInputStream"
169 ac_help="$ac_help
170 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
171 ac_help="$ac_help
172 --enable-threads use threads"
173 ac_help="$ac_help
174 --enable-serial use class serialization"
175 ac_help="$ac_help
176 --enable-docview use document view architecture"
177 ac_help="$ac_help
178 --enable-help use help (using external browser at present)"
179 ac_help="$ac_help
180 --enable-constraints use layout-constraints system"
181 ac_help="$ac_help
182 --enable-printarch use printing architecture"
183 ac_help="$ac_help
184 --enable-mdi use multiple document interface architecture"
185 ac_help="$ac_help
186 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
187 ac_help="$ac_help
188 --enable-prologio use Prolog IO library"
189 ac_help="$ac_help
190 --enable-resources use wxWindows resources"
191 ac_help="$ac_help
192 --enable-xresources use X resources for save (default for gtk+)"
193 ac_help="$ac_help
194 --enable-clipboard use wxClipboard classes"
195 ac_help="$ac_help
196 --enable-dnd use Drag'n'Drop classes"
197 ac_help="$ac_help
198 --enable-metafile use win32 metafiles"
199 ac_help="$ac_help
200 --enable-wxtree make wxTree library"
201 ac_help="$ac_help
202 --enable-controls use all usual controls"
203 ac_help="$ac_help
204 --enable-accel use accelerators"
205 ac_help="$ac_help
206 --enable-caret use wxCaret class"
207 ac_help="$ac_help
208 --enable-bmpbutton use wxBitmapButton class"
209 ac_help="$ac_help
210 --enable-checkbox use wxCheckBox class"
211 ac_help="$ac_help
212 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
213 ac_help="$ac_help
214 --enable-choice use wxChoice class"
215 ac_help="$ac_help
216 --enable-combobox use wxComboBox classes"
217 ac_help="$ac_help
218 --enable-gauge use wxGauge class"
219 ac_help="$ac_help
220 --enable-grid use wxGrid class"
221 ac_help="$ac_help
222 --enable-newgrid use new wxGrid class"
223 ac_help="$ac_help
224 --enable-imaglist use wxImageList class"
225 ac_help="$ac_help
226 --enable-listbox use wxListBox class"
227 ac_help="$ac_help
228 --enable-listctrl use wxListCtrl class"
229 ac_help="$ac_help
230 --enable-notebook use wxNotebook class"
231 ac_help="$ac_help
232 --enable-radiobox use wxRadioBox class"
233 ac_help="$ac_help
234 --enable-radiobtn use wxRadioButton class"
235 ac_help="$ac_help
236 --enable-sash use wxSashWindow class"
237 ac_help="$ac_help
238 --enable-scrollbar use wxScrollBar class and scrollable windows"
239 ac_help="$ac_help
240 --enable-slider use wxSlider class"
241 ac_help="$ac_help
242 --enable-spinbtn use wxSpinButton class"
243 ac_help="$ac_help
244 --enable-spinctrl use wxSpinCtrl class"
245 ac_help="$ac_help
246 --enable-splitter use wxSplitterWindow class"
247 ac_help="$ac_help
248 --enable-statbmp use wxStaticBitmap class"
249 ac_help="$ac_help
250 --enable-statbox use wxStaticBox class"
251 ac_help="$ac_help
252 --enable-statline use wxStaticLine class"
253 ac_help="$ac_help
254 --enable-statusbar use wxStatusBar class"
255 ac_help="$ac_help
256 --enable-tabdialog use wxTabControl class"
257 ac_help="$ac_help
258 --enable-toolbar use wxToolBar class"
259 ac_help="$ac_help
260 --enable-tbarnative use native wxToolBar class"
261 ac_help="$ac_help
262 --enable-tbarsmpl use wxToolBarSimple class"
263 ac_help="$ac_help
264 --enable-treectrl use wxTreeCtrl class"
265 ac_help="$ac_help
266 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
267 ac_help="$ac_help
268 --enable-dirdlg use wxDirDialog"
269 ac_help="$ac_help
270 --enable-textdlg use wxTextDialog"
271 ac_help="$ac_help
272 --enable-tipdlg use startup tips"
273 ac_help="$ac_help
274 --enable-progressdlg use wxProgressDialog"
275 ac_help="$ac_help
276 --enable-miniframe use wxMiniFrame class"
277 ac_help="$ac_help
278 --enable-html use wxHTML sub-library"
279 ac_help="$ac_help
280 --enable-tooltips use wxToolTip class"
281 ac_help="$ac_help
282 --enable-splines use spline drawing code"
283 ac_help="$ac_help
284 --enable-validators use wxValidator and derived classes"
285 ac_help="$ac_help
286 --enable-busyinfo use wxBusyInfo"
287 ac_help="$ac_help
288 --enable-joystick compile in joystick support (Linux only)"
289 ac_help="$ac_help
290 --enable-gif use gif images (GIF file format)"
291 ac_help="$ac_help
292 --enable-pcx use pcx images (PCX file format)"
293 ac_help="$ac_help
294 --enable-pnm use pnm images (PNM file format)"
295 ac_help="$ac_help
296 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
297 ac_help="$ac_help
298 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
299 ac_help="$ac_help
300 --disable-gtktest Do not try to compile and run a test GTK program"
301 ac_help="$ac_help
302 --with-x use the X Window System"
303
304 # Initialize some variables set by options.
305 # The variables have the same names as the options, with
306 # dashes changed to underlines.
307 build=NONE
308 cache_file=./config.cache
309 exec_prefix=NONE
310 host=NONE
311 no_create=
312 nonopt=NONE
313 no_recursion=
314 prefix=NONE
315 program_prefix=NONE
316 program_suffix=NONE
317 program_transform_name=s,x,x,
318 silent=
319 site=
320 srcdir=
321 target=NONE
322 verbose=
323 x_includes=NONE
324 x_libraries=NONE
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 # Initialize some other variables.
339 subdirs=
340 MFLAGS= MAKEFLAGS=
341 SHELL=${CONFIG_SHELL-/bin/sh}
342 # Maximum number of lines to put in a shell here document.
343 ac_max_here_lines=12
344
345 ac_prev=
346 for ac_option
347 do
348
349 # If the previous option needs an argument, assign it.
350 if test -n "$ac_prev"; then
351 eval "$ac_prev=\$ac_option"
352 ac_prev=
353 continue
354 fi
355
356 case "$ac_option" in
357 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
358 *) ac_optarg= ;;
359 esac
360
361 # Accept the important Cygnus configure options, so we can diagnose typos.
362
363 case "$ac_option" in
364
365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
366 ac_prev=bindir ;;
367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
368 bindir="$ac_optarg" ;;
369
370 -build | --build | --buil | --bui | --bu)
371 ac_prev=build ;;
372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373 build="$ac_optarg" ;;
374
375 -cache-file | --cache-file | --cache-fil | --cache-fi \
376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377 ac_prev=cache_file ;;
378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380 cache_file="$ac_optarg" ;;
381
382 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
383 ac_prev=datadir ;;
384 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
385 | --da=*)
386 datadir="$ac_optarg" ;;
387
388 -disable-* | --disable-*)
389 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
392 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
393 fi
394 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
395 eval "enable_${ac_feature}=no" ;;
396
397 -enable-* | --enable-*)
398 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
402 fi
403 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
404 case "$ac_option" in
405 *=*) ;;
406 *) ac_optarg=yes ;;
407 esac
408 eval "enable_${ac_feature}='$ac_optarg'" ;;
409
410 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
411 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
412 | --exec | --exe | --ex)
413 ac_prev=exec_prefix ;;
414 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
415 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
416 | --exec=* | --exe=* | --ex=*)
417 exec_prefix="$ac_optarg" ;;
418
419 -gas | --gas | --ga | --g)
420 # Obsolete; use --with-gas.
421 with_gas=yes ;;
422
423 -help | --help | --hel | --he)
424 # Omit some internal or obsolete options to make the list less imposing.
425 # This message is too long to be a string in the A/UX 3.1 sh.
426 cat << EOF
427 Usage: configure [options] [host]
428 Options: [defaults in brackets after descriptions]
429 Configuration:
430 --cache-file=FILE cache test results in FILE
431 --help print this message
432 --no-create do not create output files
433 --quiet, --silent do not print \`checking...' messages
434 --version print the version of autoconf that created configure
435 Directory and file names:
436 --prefix=PREFIX install architecture-independent files in PREFIX
437 [$ac_default_prefix]
438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
439 [same as prefix]
440 --bindir=DIR user executables in DIR [EPREFIX/bin]
441 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
442 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
443 --datadir=DIR read-only architecture-independent data in DIR
444 [PREFIX/share]
445 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
446 --sharedstatedir=DIR modifiable architecture-independent data in DIR
447 [PREFIX/com]
448 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
449 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
450 --includedir=DIR C header files in DIR [PREFIX/include]
451 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
452 --infodir=DIR info documentation in DIR [PREFIX/info]
453 --mandir=DIR man documentation in DIR [PREFIX/man]
454 --srcdir=DIR find the sources in DIR [configure dir or ..]
455 --program-prefix=PREFIX prepend PREFIX to installed program names
456 --program-suffix=SUFFIX append SUFFIX to installed program names
457 --program-transform-name=PROGRAM
458 run sed PROGRAM on installed program names
459 EOF
460 cat << EOF
461 Host type:
462 --build=BUILD configure for building on BUILD [BUILD=HOST]
463 --host=HOST configure for HOST [guessed]
464 --target=TARGET configure for TARGET [TARGET=HOST]
465 Features and packages:
466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
470 --x-includes=DIR X include files are in DIR
471 --x-libraries=DIR X library files are in DIR
472 EOF
473 if test -n "$ac_help"; then
474 echo "--enable and --with options recognized:$ac_help"
475 fi
476 exit 0 ;;
477
478 -host | --host | --hos | --ho)
479 ac_prev=host ;;
480 -host=* | --host=* | --hos=* | --ho=*)
481 host="$ac_optarg" ;;
482
483 -includedir | --includedir | --includedi | --included | --include \
484 | --includ | --inclu | --incl | --inc)
485 ac_prev=includedir ;;
486 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
487 | --includ=* | --inclu=* | --incl=* | --inc=*)
488 includedir="$ac_optarg" ;;
489
490 -infodir | --infodir | --infodi | --infod | --info | --inf)
491 ac_prev=infodir ;;
492 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
493 infodir="$ac_optarg" ;;
494
495 -libdir | --libdir | --libdi | --libd)
496 ac_prev=libdir ;;
497 -libdir=* | --libdir=* | --libdi=* | --libd=*)
498 libdir="$ac_optarg" ;;
499
500 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
501 | --libexe | --libex | --libe)
502 ac_prev=libexecdir ;;
503 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
504 | --libexe=* | --libex=* | --libe=*)
505 libexecdir="$ac_optarg" ;;
506
507 -localstatedir | --localstatedir | --localstatedi | --localstated \
508 | --localstate | --localstat | --localsta | --localst \
509 | --locals | --local | --loca | --loc | --lo)
510 ac_prev=localstatedir ;;
511 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
512 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
513 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
514 localstatedir="$ac_optarg" ;;
515
516 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
517 ac_prev=mandir ;;
518 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
519 mandir="$ac_optarg" ;;
520
521 -nfp | --nfp | --nf)
522 # Obsolete; use --without-fp.
523 with_fp=no ;;
524
525 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
526 | --no-cr | --no-c)
527 no_create=yes ;;
528
529 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
530 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
531 no_recursion=yes ;;
532
533 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
534 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
535 | --oldin | --oldi | --old | --ol | --o)
536 ac_prev=oldincludedir ;;
537 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
538 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
539 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
540 oldincludedir="$ac_optarg" ;;
541
542 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
543 ac_prev=prefix ;;
544 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
545 prefix="$ac_optarg" ;;
546
547 -program-prefix | --program-prefix | --program-prefi | --program-pref \
548 | --program-pre | --program-pr | --program-p)
549 ac_prev=program_prefix ;;
550 -program-prefix=* | --program-prefix=* | --program-prefi=* \
551 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
552 program_prefix="$ac_optarg" ;;
553
554 -program-suffix | --program-suffix | --program-suffi | --program-suff \
555 | --program-suf | --program-su | --program-s)
556 ac_prev=program_suffix ;;
557 -program-suffix=* | --program-suffix=* | --program-suffi=* \
558 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
559 program_suffix="$ac_optarg" ;;
560
561 -program-transform-name | --program-transform-name \
562 | --program-transform-nam | --program-transform-na \
563 | --program-transform-n | --program-transform- \
564 | --program-transform | --program-transfor \
565 | --program-transfo | --program-transf \
566 | --program-trans | --program-tran \
567 | --progr-tra | --program-tr | --program-t)
568 ac_prev=program_transform_name ;;
569 -program-transform-name=* | --program-transform-name=* \
570 | --program-transform-nam=* | --program-transform-na=* \
571 | --program-transform-n=* | --program-transform-=* \
572 | --program-transform=* | --program-transfor=* \
573 | --program-transfo=* | --program-transf=* \
574 | --program-trans=* | --program-tran=* \
575 | --progr-tra=* | --program-tr=* | --program-t=*)
576 program_transform_name="$ac_optarg" ;;
577
578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
579 | -silent | --silent | --silen | --sile | --sil)
580 silent=yes ;;
581
582 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
583 ac_prev=sbindir ;;
584 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
585 | --sbi=* | --sb=*)
586 sbindir="$ac_optarg" ;;
587
588 -sharedstatedir | --sharedstatedir | --sharedstatedi \
589 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
590 | --sharedst | --shareds | --shared | --share | --shar \
591 | --sha | --sh)
592 ac_prev=sharedstatedir ;;
593 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
594 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
595 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
596 | --sha=* | --sh=*)
597 sharedstatedir="$ac_optarg" ;;
598
599 -site | --site | --sit)
600 ac_prev=site ;;
601 -site=* | --site=* | --sit=*)
602 site="$ac_optarg" ;;
603
604 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
605 ac_prev=srcdir ;;
606 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
607 srcdir="$ac_optarg" ;;
608
609 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
610 | --syscon | --sysco | --sysc | --sys | --sy)
611 ac_prev=sysconfdir ;;
612 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
613 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
614 sysconfdir="$ac_optarg" ;;
615
616 -target | --target | --targe | --targ | --tar | --ta | --t)
617 ac_prev=target ;;
618 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
619 target="$ac_optarg" ;;
620
621 -v | -verbose | --verbose | --verbos | --verbo | --verb)
622 verbose=yes ;;
623
624 -version | --version | --versio | --versi | --vers)
625 echo "configure generated by autoconf version 2.13"
626 exit 0 ;;
627
628 -with-* | --with-*)
629 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
630 # Reject names that are not valid shell variable names.
631 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
632 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
633 fi
634 ac_package=`echo $ac_package| sed 's/-/_/g'`
635 case "$ac_option" in
636 *=*) ;;
637 *) ac_optarg=yes ;;
638 esac
639 eval "with_${ac_package}='$ac_optarg'" ;;
640
641 -without-* | --without-*)
642 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
643 # Reject names that are not valid shell variable names.
644 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
645 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
646 fi
647 ac_package=`echo $ac_package| sed 's/-/_/g'`
648 eval "with_${ac_package}=no" ;;
649
650 --x)
651 # Obsolete; use --with-x.
652 with_x=yes ;;
653
654 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
655 | --x-incl | --x-inc | --x-in | --x-i)
656 ac_prev=x_includes ;;
657 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
658 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
659 x_includes="$ac_optarg" ;;
660
661 -x-libraries | --x-libraries | --x-librarie | --x-librari \
662 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
663 ac_prev=x_libraries ;;
664 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
665 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
666 x_libraries="$ac_optarg" ;;
667
668 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
669 ;;
670
671 *)
672 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
673 echo "configure: warning: $ac_option: invalid host type" 1>&2
674 fi
675 if test "x$nonopt" != xNONE; then
676 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
677 fi
678 nonopt="$ac_option"
679 ;;
680
681 esac
682 done
683
684 if test -n "$ac_prev"; then
685 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
686 fi
687
688 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
689
690 # File descriptor usage:
691 # 0 standard input
692 # 1 file creation
693 # 2 errors and warnings
694 # 3 some systems may open it to /dev/tty
695 # 4 used on the Kubota Titan
696 # 6 checking for... messages and results
697 # 5 compiler messages saved in config.log
698 if test "$silent" = yes; then
699 exec 6>/dev/null
700 else
701 exec 6>&1
702 fi
703 exec 5>./config.log
704
705 echo "\
706 This file contains any messages produced by compilers while
707 running configure, to aid debugging if configure makes a mistake.
708 " 1>&5
709
710 # Strip out --no-create and --no-recursion so they do not pile up.
711 # Also quote any args containing shell metacharacters.
712 ac_configure_args=
713 for ac_arg
714 do
715 case "$ac_arg" in
716 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
717 | --no-cr | --no-c) ;;
718 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
719 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
720 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
721 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
722 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
723 esac
724 done
725
726 # NLS nuisances.
727 # Only set these to C if already set. These must not be set unconditionally
728 # because not all systems understand e.g. LANG=C (notably SCO).
729 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
730 # Non-C LC_CTYPE values break the ctype check.
731 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
732 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
733 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
734 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
735
736 # confdefs.h avoids OS command line length limits that DEFS can exceed.
737 rm -rf conftest* confdefs.h
738 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
739 echo > confdefs.h
740
741 # A filename unique to this package, relative to the directory that
742 # configure is in, which we can look for to find out if srcdir is correct.
743 ac_unique_file=wx-config.in
744
745 # Find the source files, if location was not specified.
746 if test -z "$srcdir"; then
747 ac_srcdir_defaulted=yes
748 # Try the directory containing this script, then its parent.
749 ac_prog=$0
750 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
751 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
752 srcdir=$ac_confdir
753 if test ! -r $srcdir/$ac_unique_file; then
754 srcdir=..
755 fi
756 else
757 ac_srcdir_defaulted=no
758 fi
759 if test ! -r $srcdir/$ac_unique_file; then
760 if test "$ac_srcdir_defaulted" = yes; then
761 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
762 else
763 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
764 fi
765 fi
766 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
767
768 # Prefer explicitly selected file to automatically selected ones.
769 if test -z "$CONFIG_SITE"; then
770 if test "x$prefix" != xNONE; then
771 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
772 else
773 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
774 fi
775 fi
776 for ac_site_file in $CONFIG_SITE; do
777 if test -r "$ac_site_file"; then
778 echo "loading site script $ac_site_file"
779 . "$ac_site_file"
780 fi
781 done
782
783 if test -r "$cache_file"; then
784 echo "loading cache $cache_file"
785 . $cache_file
786 else
787 echo "creating cache $cache_file"
788 > $cache_file
789 fi
790
791 ac_ext=c
792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
793 ac_cpp='$CPP $CPPFLAGS'
794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
796 cross_compiling=$ac_cv_prog_cc_cross
797
798 ac_exeext=
799 ac_objext=o
800 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
801 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
802 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
803 ac_n= ac_c='
804 ' ac_t=' '
805 else
806 ac_n=-n ac_c= ac_t=
807 fi
808 else
809 ac_n= ac_c='\c' ac_t=
810 fi
811
812
813
814 ac_aux_dir=
815 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
816 if test -f $ac_dir/install-sh; then
817 ac_aux_dir=$ac_dir
818 ac_install_sh="$ac_aux_dir/install-sh -c"
819 break
820 elif test -f $ac_dir/install.sh; then
821 ac_aux_dir=$ac_dir
822 ac_install_sh="$ac_aux_dir/install.sh -c"
823 break
824 fi
825 done
826 if test -z "$ac_aux_dir"; then
827 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
828 fi
829 ac_config_guess=$ac_aux_dir/config.guess
830 ac_config_sub=$ac_aux_dir/config.sub
831 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
832
833
834 # Do some error checking and defaulting for the host and target type.
835 # The inputs are:
836 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
837 #
838 # The rules are:
839 # 1. You are not allowed to specify --host, --target, and nonopt at the
840 # same time.
841 # 2. Host defaults to nonopt.
842 # 3. If nonopt is not specified, then host defaults to the current host,
843 # as determined by config.guess.
844 # 4. Target and build default to nonopt.
845 # 5. If nonopt is not specified, then target and build default to host.
846
847 # The aliases save the names the user supplied, while $host etc.
848 # will get canonicalized.
849 case $host---$target---$nonopt in
850 NONE---*---* | *---NONE---* | *---*---NONE) ;;
851 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
852 esac
853
854
855 # Make sure we can run config.sub.
856 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
857 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
858 fi
859
860 echo $ac_n "checking host system type""... $ac_c" 1>&6
861 echo "configure:862: checking host system type" >&5
862
863 host_alias=$host
864 case "$host_alias" in
865 NONE)
866 case $nonopt in
867 NONE)
868 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
869 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
870 fi ;;
871 *) host_alias=$nonopt ;;
872 esac ;;
873 esac
874
875 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
876 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
877 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
878 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
879 echo "$ac_t""$host" 1>&6
880
881 echo $ac_n "checking target system type""... $ac_c" 1>&6
882 echo "configure:883: checking target system type" >&5
883
884 target_alias=$target
885 case "$target_alias" in
886 NONE)
887 case $nonopt in
888 NONE) target_alias=$host_alias ;;
889 *) target_alias=$nonopt ;;
890 esac ;;
891 esac
892
893 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
894 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
895 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
896 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
897 echo "$ac_t""$target" 1>&6
898
899 echo $ac_n "checking build system type""... $ac_c" 1>&6
900 echo "configure:901: checking build system type" >&5
901
902 build_alias=$build
903 case "$build_alias" in
904 NONE)
905 case $nonopt in
906 NONE) build_alias=$host_alias ;;
907 *) build_alias=$nonopt ;;
908 esac ;;
909 esac
910
911 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
912 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
913 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
914 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
915 echo "$ac_t""$build" 1>&6
916
917 test "$host_alias" != "$target_alias" &&
918 test "$program_prefix$program_suffix$program_transform_name" = \
919 NONENONEs,x,x, &&
920 program_prefix=${target_alias}-
921
922
923
924 WX_MAJOR_VERSION_NUMBER=2
925 WX_MINOR_VERSION_NUMBER=3
926 WX_RELEASE_NUMBER=0
927
928 WX_INTERFACE_AGE=0
929 WX_BINARY_AGE=0
930
931 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
932
933 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
934 WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
935 WX_REVISION=$WX_INTERFACE_AGE
936 WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
937
938
939 USE_UNIX=1
940 USE_WIN32=0
941 USE_BEOS=0
942
943 USE_LINUX=
944 USE_SGI=
945 USE_HPUX=
946 USE_SYSV=
947 USE_SVR4=
948 USE_AIX=
949 USE_SUN=
950 USE_SOLARIS=
951 USE_SUNOS=
952 USE_ALPHA=
953 USE_OSF=
954 USE_BSD=
955 USE_FREEBSD=
956 USE_NETBSD=
957 USE_VMS=
958 USE_ULTRIX=
959 USE_CYGWIN=
960 USE_MINGW=
961 USE_DATA_GENERAL=
962
963 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
964
965 ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF MAC WINE PM"
966
967 DEFAULT_wxUSE_GTK=0
968 DEFAULT_wxUSE_MOTIF=0
969 DEFAULT_wxUSE_MSW=0
970 DEFAULT_wxUSE_MAC=0
971 DEFAULT_wxUSE_WINE=0
972 DEFAULT_wxUSE_PM=0
973
974 DEFAULT_DEFAULT_wxUSE_GTK=0
975 DEFAULT_DEFAULT_wxUSE_MOTIF=0
976 DEFAULT_DEFAULT_wxUSE_MSW=0
977 DEFAULT_DEFAULT_wxUSE_MAC=0
978 DEFAULT_DEFAULT_wxUSE_WINE=0
979 DEFAULT_DEFAULT_wxUSE_PM=0
980
981 PROGRAM_EXT=
982
983 case "${host}" in
984 *-hp-hpux* )
985 USE_HPUX=1
986 DEFAULT_DEFAULT_wxUSE_MOTIF=1
987 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
988 cat >> confdefs.h <<\EOF
989 #define __HPUX__ 1
990 EOF
991
992 ;;
993 *-*-linux* )
994 USE_LINUX=1
995 cat >> confdefs.h <<\EOF
996 #define __LINUX__ 1
997 EOF
998
999 TMP=`uname -m`
1000 if test "x$TMP" = "xalpha"; then
1001 USE_ALPHA=1
1002 cat >> confdefs.h <<\EOF
1003 #define __ALPHA__ 1
1004 EOF
1005
1006 fi
1007 DEFAULT_DEFAULT_wxUSE_GTK=1
1008 ;;
1009 *-*-irix5* | *-*-irix6* )
1010 USE_SGI=1
1011 USE_SVR4=1
1012 cat >> confdefs.h <<\EOF
1013 #define __SGI__ 1
1014 EOF
1015
1016 cat >> confdefs.h <<\EOF
1017 #define __SVR4__ 1
1018 EOF
1019
1020 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1021 ;;
1022 *-*-solaris2* )
1023 USE_SUN=1
1024 USE_SOLARIS=1
1025 USE_SVR4=1
1026 cat >> confdefs.h <<\EOF
1027 #define __SUN__ 1
1028 EOF
1029
1030 cat >> confdefs.h <<\EOF
1031 #define __SOLARIS__ 1
1032 EOF
1033
1034 cat >> confdefs.h <<\EOF
1035 #define __SVR4__ 1
1036 EOF
1037
1038 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1039 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1040 ;;
1041 *-*-sunos4* )
1042 USE_SUN=1
1043 USE_SUNOS=1
1044 USE_BSD=1
1045 cat >> confdefs.h <<\EOF
1046 #define __SUN__ 1
1047 EOF
1048
1049 cat >> confdefs.h <<\EOF
1050 #define __SUNOS__ 1
1051 EOF
1052
1053 cat >> confdefs.h <<\EOF
1054 #define __BSD__ 1
1055 EOF
1056
1057 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1058 ;;
1059 *-*-freebsd*)
1060 USE_BSD=1
1061 USE_FREEBSD=1
1062 cat >> confdefs.h <<\EOF
1063 #define __FREEBSD__ 1
1064 EOF
1065
1066 cat >> confdefs.h <<\EOF
1067 #define __BSD__ 1
1068 EOF
1069
1070 DEFAULT_DEFAULT_wxUSE_GTK=1
1071 ;;
1072 *-*-netbsd*)
1073 USE_BSD=1
1074 USE_NETBSD=1
1075 cat >> confdefs.h <<\EOF
1076 #define __FREEBSD__ 1
1077 EOF
1078
1079 cat >> confdefs.h <<\EOF
1080 #define __NETBSD__ 1
1081 EOF
1082
1083 DEFAULT_DEFAULT_wxUSE_GTK=1
1084 ;;
1085 *-*-osf* )
1086 USE_ALPHA=1
1087 USE_OSF=1
1088 cat >> confdefs.h <<\EOF
1089 #define __ALPHA__ 1
1090 EOF
1091
1092 cat >> confdefs.h <<\EOF
1093 #define __OSF__ 1
1094 EOF
1095
1096 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1097 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1098 ;;
1099 *-*-dgux5* )
1100 USE_ALPHA=1
1101 USE_SVR4=1
1102 cat >> confdefs.h <<\EOF
1103 #define __ALPHA__ 1
1104 EOF
1105
1106 cat >> confdefs.h <<\EOF
1107 #define __SVR4__ 1
1108 EOF
1109
1110 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1111 ;;
1112 *-*-sysv5* )
1113 USE_SYSV=1
1114 USE_SVR4=1
1115 cat >> confdefs.h <<\EOF
1116 #define __SYSV__ 1
1117 EOF
1118
1119 cat >> confdefs.h <<\EOF
1120 #define __SVR4__ 1
1121 EOF
1122
1123 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1124 ;;
1125 *-*-aix* )
1126 USE_AIX=1
1127 USE_SYSV=1
1128 USE_SVR4=1
1129 cat >> confdefs.h <<\EOF
1130 #define __AIX__ 1
1131 EOF
1132
1133 cat >> confdefs.h <<\EOF
1134 #define __SYSV__ 1
1135 EOF
1136
1137 cat >> confdefs.h <<\EOF
1138 #define __SVR4__ 1
1139 EOF
1140
1141 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1142 ;;
1143
1144 *-*-cygwin32* | *-*-mingw32* )
1145 USE_UNIX=0
1146 USE_WIN32=1
1147 cat >> confdefs.h <<\EOF
1148 #define __WIN32__ 1
1149 EOF
1150
1151 cat >> confdefs.h <<\EOF
1152 #define __WIN95__ 1
1153 EOF
1154
1155 cat >> confdefs.h <<\EOF
1156 #define __WINDOWS__ 1
1157 EOF
1158
1159 cat >> confdefs.h <<\EOF
1160 #define __GNUWIN32__ 1
1161 EOF
1162
1163 cat >> confdefs.h <<\EOF
1164 #define STRICT 1
1165 EOF
1166
1167 cat >> confdefs.h <<\EOF
1168 #define WINVER 0x0400
1169 EOF
1170
1171 PROGRAM_EXT=".exe"
1172 DEFAULT_DEFAULT_wxUSE_MSW=1
1173 ;;
1174
1175 *-pc-os2_emx )
1176 cat >> confdefs.h <<\EOF
1177 #define __EMX__ 1
1178 EOF
1179
1180 PROGRAM_EXT=".exe"
1181 DEFAULT_DEFAULT_wxUSE_PM=1
1182 ;;
1183
1184 *-*-darwin* )
1185 USE_BSD=1
1186 USE_MAC=1
1187 cat >> confdefs.h <<\EOF
1188 #define __MAC__ 1
1189 EOF
1190
1191 cat >> confdefs.h <<\EOF
1192 #define __BSD__ 1
1193 EOF
1194
1195 cat >> confdefs.h <<\EOF
1196 #define __UNIX__ 1
1197 EOF
1198
1199 DEFAULT_DEFAULT_wxUSE_MAC=1
1200 ;;
1201
1202 *-*-beos* )
1203 USE_BEOS=1
1204 cat >> confdefs.h <<\EOF
1205 #define __BEOS__ 1
1206 EOF
1207
1208 ;;
1209
1210 *)
1211 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1212 esac
1213
1214 if test "$USE_UNIX" = 1 ; then
1215 wxUSE_UNIX=yes
1216 cat >> confdefs.h <<\EOF
1217 #define __UNIX__ 1
1218 EOF
1219
1220
1221 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1222 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1223 fi
1224
1225 if test "$USE_BEOS" = 1; then
1226 SRC_SUBDIRS="$SRC_SUBDIRS be"
1227 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1228 fi
1229
1230 if test "$USE_LINUX" = 1; then
1231 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1232 echo "configure:1233: checking for gettext in -lc" >&5
1233 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1236 else
1237 ac_save_LIBS="$LIBS"
1238 LIBS="-lc $LIBS"
1239 cat > conftest.$ac_ext <<EOF
1240 #line 1241 "configure"
1241 #include "confdefs.h"
1242 /* Override any gcc2 internal prototype to avoid an error. */
1243 /* We use char because int might match the return type of a gcc2
1244 builtin and then its argument prototype would still apply. */
1245 char gettext();
1246
1247 int main() {
1248 gettext()
1249 ; return 0; }
1250 EOF
1251 if { (eval echo configure:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1252 rm -rf conftest*
1253 eval "ac_cv_lib_$ac_lib_var=yes"
1254 else
1255 echo "configure: failed program was:" >&5
1256 cat conftest.$ac_ext >&5
1257 rm -rf conftest*
1258 eval "ac_cv_lib_$ac_lib_var=no"
1259 fi
1260 rm -f conftest*
1261 LIBS="$ac_save_LIBS"
1262
1263 fi
1264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1265 echo "$ac_t""yes" 1>&6
1266 cat >> confdefs.h <<\EOF
1267 #define wxHAVE_GLIBC2 1
1268 EOF
1269
1270 else
1271 echo "$ac_t""no" 1>&6
1272 fi
1273
1274 fi
1275
1276
1277
1278
1279 wx_arg_cache_file="configarg.cache"
1280 echo "loading argument cache $wx_arg_cache_file"
1281 rm -f ${wx_arg_cache_file}.tmp
1282 touch ${wx_arg_cache_file}.tmp
1283 touch ${wx_arg_cache_file}
1284
1285
1286 DEBUG_CONFIGURE=0
1287 if test $DEBUG_CONFIGURE = 1; then
1288 DEFAULT_wxUSE_THREADS=yes
1289
1290 DEFAULT_wxUSE_SHARED=yes
1291 DEFAULT_wxUSE_BURNT_NAME=no
1292 DEFAULT_wxUSE_OPTIMISE=yes
1293 DEFAULT_wxUSE_PROFILE=no
1294 DEFAULT_wxUSE_NO_DEPS=no
1295 DEFAULT_wxUSE_NO_RTTI=no
1296 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1297 DEFAULT_wxUSE_PERMISSIVE=no
1298 DEFAULT_wxUSE_DEBUG_FLAG=yes
1299 DEFAULT_wxUSE_DEBUG_INFO=yes
1300 DEFAULT_wxUSE_DEBUG_GDB=yes
1301 DEFAULT_wxUSE_MEM_TRACING=no
1302 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1303 DEFAULT_wxUSE_DMALLOC=no
1304 DEFAULT_wxUSE_APPLE_IEEE=no
1305
1306 DEFAULT_wxUSE_LOG=yes
1307
1308 DEFAULT_wxUSE_GUI=yes
1309
1310 DEFAULT_wxUSE_ZLIB=no
1311 DEFAULT_wxUSE_LIBPNG=no
1312 DEFAULT_wxUSE_LIBJPEG=no
1313 DEFAULT_wxUSE_LIBTIFF=no
1314 DEFAULT_wxUSE_ODBC=no
1315 DEFAULT_wxUSE_FREETYPE=no
1316 DEFAULT_wxUSE_OPENGL=no
1317
1318 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1319 DEFAULT_wxUSE_STD_IOSTREAM=no
1320 DEFAULT_wxUSE_FILE=no
1321 DEFAULT_wxUSE_TEXTFILE=no
1322 DEFAULT_wxUSE_TIMEDATE=no
1323 DEFAULT_wxUSE_WAVE=no
1324 DEFAULT_wxUSE_INTL=no
1325 DEFAULT_wxUSE_CONFIG=no
1326 DEFAULT_wxUSE_STREAMS=no
1327 DEFAULT_wxUSE_SOCKETS=no
1328 DEFAULT_wxUSE_DIALUP_MANAGER=no
1329 DEFAULT_wxUSE_SERIAL=no
1330 DEFAULT_wxUSE_JOYSTICK=no
1331 DEFAULT_wxUSE_DYNLIB_CLASS=no
1332 DEFAULT_wxUSE_LONGLONG=no
1333 DEFAULT_wxUSE_GEOMETRY=no
1334
1335 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1336 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1337 DEFAULT_wxUSE_POSTSCRIPT=no
1338
1339 DEFAULT_wxUSE_X_RESOURCES=no
1340 DEFAULT_wxUSE_CLIPBOARD=no
1341 DEFAULT_wxUSE_TOOLTIPS=no
1342 DEFAULT_wxUSE_DRAG_AND_DROP=no
1343 DEFAULT_wxUSE_SPLINES=no
1344
1345 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1346 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1347 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1348
1349 DEFAULT_wxUSE_PROLOGIO=no
1350 DEFAULT_wxUSE_RESOURCES=no
1351 DEFAULT_wxUSE_CONSTRAINTS=no
1352 DEFAULT_wxUSE_IPC=no
1353 DEFAULT_wxUSE_HELP=no
1354 DEFAULT_wxUSE_WXTREE=no
1355 DEFAULT_wxUSE_METAFILE=no
1356
1357 DEFAULT_wxUSE_COMMONDLGS=no
1358 DEFAULT_wxUSE_DIRDLG=no
1359 DEFAULT_wxUSE_TEXTDLG=no
1360 DEFAULT_wxUSE_STARTUP_TIPS=no
1361 DEFAULT_wxUSE_PROGRESSDLG=no
1362 DEFAULT_wxUSE_MINIFRAME=no
1363 DEFAULT_wxUSE_HTML=no
1364 DEFAULT_wxUSE_FILESYSTEM=no
1365 DEFAULT_wxUSE_FS_INET=no
1366 DEFAULT_wxUSE_FS_ZIP=no
1367 DEFAULT_wxUSE_BUSYINFO=no
1368 DEFAULT_wxUSE_ZIPSTREAM=no
1369 DEFAULT_wxUSE_VALIDATORS=yes
1370
1371 DEFAULT_wxUSE_ACCEL=no
1372 DEFAULT_wxUSE_CARET=no
1373 DEFAULT_wxUSE_BMPBUTTON=no
1374 DEFAULT_wxUSE_CHECKBOX=no
1375 DEFAULT_wxUSE_CHECKLST=no
1376 DEFAULT_wxUSE_CHOICE=yes
1377 DEFAULT_wxUSE_COMBOBOX=no
1378 DEFAULT_wxUSE_GAUGE=no
1379 DEFAULT_wxUSE_GRID=no
1380 DEFAULT_wxUSE_NEW_GRID=no
1381 DEFAULT_wxUSE_IMAGLIST=no
1382 DEFAULT_wxUSE_LISTBOX=no
1383 DEFAULT_wxUSE_LISTCTRL=no
1384 DEFAULT_wxUSE_NOTEBOOK=no
1385 DEFAULT_wxUSE_RADIOBOX=no
1386 DEFAULT_wxUSE_RADIOBTN=no
1387 DEFAULT_wxUSE_SASH=no
1388 DEFAULT_wxUSE_SCROLLBAR=no
1389 DEFAULT_wxUSE_SLIDER=no
1390 DEFAULT_wxUSE_SPINBTN=no
1391 DEFAULT_wxUSE_SPINCTRL=no
1392 DEFAULT_wxUSE_SPLITTER=no
1393 DEFAULT_wxUSE_STATBMP=no
1394 DEFAULT_wxUSE_STATBOX=no
1395 DEFAULT_wxUSE_STATLINE=no
1396 DEFAULT_wxUSE_STATUSBAR=yes
1397 DEFAULT_wxUSE_TABDIALOG=no
1398 DEFAULT_wxUSE_TOOLBAR=no
1399 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1400 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1401 DEFAULT_wxUSE_TREECTRL=no
1402
1403 DEFAULT_wxUSE_UNICODE=no
1404 DEFAULT_wxUSE_WCSRTOMBS=no
1405
1406 DEFAULT_wxUSE_GIF=no
1407 DEFAULT_wxUSE_PCX=no
1408 DEFAULT_wxUSE_PNM=no
1409 else
1410 DEFAULT_wxUSE_THREADS=yes
1411
1412 DEFAULT_wxUSE_SHARED=yes
1413 DEFAULT_wxUSE_BURNT_NAME=no
1414 DEFAULT_wxUSE_OPTIMISE=yes
1415 DEFAULT_wxUSE_PROFILE=no
1416 DEFAULT_wxUSE_NO_DEPS=no
1417 DEFAULT_wxUSE_NO_RTTI=no
1418 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1419 DEFAULT_wxUSE_PERMISSIVE=no
1420 DEFAULT_wxUSE_DEBUG_FLAG=no
1421 DEFAULT_wxUSE_DEBUG_INFO=no
1422 DEFAULT_wxUSE_DEBUG_GDB=no
1423 DEFAULT_wxUSE_MEM_TRACING=no
1424 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1425 DEFAULT_wxUSE_DMALLOC=no
1426 DEFAULT_wxUSE_APPLE_IEEE=yes
1427
1428 DEFAULT_wxUSE_LOG=yes
1429
1430 DEFAULT_wxUSE_GUI=yes
1431
1432 DEFAULT_wxUSE_ZLIB=yes
1433 DEFAULT_wxUSE_LIBPNG=yes
1434 DEFAULT_wxUSE_LIBJPEG=yes
1435 DEFAULT_wxUSE_LIBTIFF=yes
1436 DEFAULT_wxUSE_ODBC=no
1437 DEFAULT_wxUSE_FREETYPE=no
1438 DEFAULT_wxUSE_OPENGL=no
1439
1440 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1441 DEFAULT_wxUSE_STD_IOSTREAM=no
1442 DEFAULT_wxUSE_FILE=yes
1443 DEFAULT_wxUSE_TEXTFILE=yes
1444 DEFAULT_wxUSE_TIMEDATE=yes
1445 DEFAULT_wxUSE_WAVE=no
1446 DEFAULT_wxUSE_INTL=yes
1447 DEFAULT_wxUSE_CONFIG=yes
1448 DEFAULT_wxUSE_STREAMS=yes
1449 DEFAULT_wxUSE_SOCKETS=yes
1450 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1451 DEFAULT_wxUSE_SERIAL=yes
1452 DEFAULT_wxUSE_JOYSTICK=yes
1453 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1454 DEFAULT_wxUSE_LONGLONG=yes
1455 DEFAULT_wxUSE_GEOMETRY=yes
1456
1457 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1458 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1459 DEFAULT_wxUSE_POSTSCRIPT=yes
1460
1461 DEFAULT_wxUSE_X_RESOURCES=no
1462 DEFAULT_wxUSE_CLIPBOARD=yes
1463 DEFAULT_wxUSE_TOOLTIPS=yes
1464 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1465 DEFAULT_wxUSE_SPLINES=yes
1466
1467 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1468 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1469 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1470
1471 DEFAULT_wxUSE_PROLOGIO=yes
1472 DEFAULT_wxUSE_RESOURCES=yes
1473 DEFAULT_wxUSE_CONSTRAINTS=yes
1474 DEFAULT_wxUSE_IPC=yes
1475 DEFAULT_wxUSE_HELP=yes
1476 DEFAULT_wxUSE_WXTREE=yes
1477 DEFAULT_wxUSE_METAFILE=yes
1478
1479 DEFAULT_wxUSE_COMMONDLGS=yes
1480 DEFAULT_wxUSE_DIRDLG=yes
1481 DEFAULT_wxUSE_TEXTDLG=yes
1482 DEFAULT_wxUSE_STARTUP_TIPS=yes
1483 DEFAULT_wxUSE_PROGRESSDLG=yes
1484 DEFAULT_wxUSE_MINIFRAME=yes
1485 DEFAULT_wxUSE_HTML=yes
1486 DEFAULT_wxUSE_FILESYSTEM=yes
1487 DEFAULT_wxUSE_FS_INET=yes
1488 DEFAULT_wxUSE_FS_ZIP=yes
1489 DEFAULT_wxUSE_BUSYINFO=yes
1490 DEFAULT_wxUSE_ZIPSTREAM=yes
1491 DEFAULT_wxUSE_VALIDATORS=yes
1492
1493 DEFAULT_wxUSE_ACCEL=yes
1494 DEFAULT_wxUSE_CARET=yes
1495 DEFAULT_wxUSE_BMPBUTTON=yes
1496 DEFAULT_wxUSE_CHECKBOX=yes
1497 DEFAULT_wxUSE_CHECKLST=yes
1498 DEFAULT_wxUSE_CHOICE=yes
1499 DEFAULT_wxUSE_COMBOBOX=yes
1500 DEFAULT_wxUSE_GAUGE=yes
1501 DEFAULT_wxUSE_GRID=yes
1502 DEFAULT_wxUSE_NEW_GRID=yes
1503 DEFAULT_wxUSE_IMAGLIST=yes
1504 DEFAULT_wxUSE_LISTBOX=yes
1505 DEFAULT_wxUSE_LISTCTRL=yes
1506 DEFAULT_wxUSE_NOTEBOOK=yes
1507 DEFAULT_wxUSE_RADIOBOX=yes
1508 DEFAULT_wxUSE_RADIOBTN=yes
1509 DEFAULT_wxUSE_SASH=yes
1510 DEFAULT_wxUSE_SCROLLBAR=yes
1511 DEFAULT_wxUSE_SLIDER=yes
1512 DEFAULT_wxUSE_SPINBTN=yes
1513 DEFAULT_wxUSE_SPINCTRL=yes
1514 DEFAULT_wxUSE_SPLITTER=yes
1515 DEFAULT_wxUSE_STATBMP=yes
1516 DEFAULT_wxUSE_STATBOX=yes
1517 DEFAULT_wxUSE_STATLINE=yes
1518 DEFAULT_wxUSE_STATUSBAR=yes
1519 DEFAULT_wxUSE_TABDIALOG=no
1520 DEFAULT_wxUSE_TOOLBAR=yes
1521 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1522 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1523 DEFAULT_wxUSE_TREECTRL=yes
1524
1525 DEFAULT_wxUSE_UNICODE=no
1526 DEFAULT_wxUSE_WCSRTOMBS=no
1527
1528 DEFAULT_wxUSE_GIF=yes
1529 DEFAULT_wxUSE_PCX=yes
1530 DEFAULT_wxUSE_PNM=yes
1531 fi
1532
1533
1534
1535 for toolkit in `echo $ALL_TOOLKITS`; do
1536 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1537 if test "x$LINE" != x ; then
1538 has_toolkit_in_cache=1
1539 eval "DEFAULT_$LINE"
1540 eval "CACHE_$toolkit=1"
1541 fi
1542 done
1543
1544
1545
1546 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1547 echo "configure:1548: checking "for --enable-gui"" >&5
1548 no_cache=0
1549 # Check whether --enable-gui or --disable-gui was given.
1550 if test "${enable_gui+set}" = set; then
1551 enableval="$enable_gui"
1552
1553 if test "$enableval" = yes; then
1554 ac_cv_use_gui='wxUSE_GUI=yes'
1555 else
1556 ac_cv_use_gui='wxUSE_GUI=no'
1557 fi
1558
1559 else
1560
1561 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1562 if test "x$LINE" != x ; then
1563 eval "DEFAULT_$LINE"
1564 else
1565 no_cache=1
1566 fi
1567
1568 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1569
1570 fi
1571
1572
1573 eval "$ac_cv_use_gui"
1574 if test "$no_cache" != 1; then
1575 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1576 fi
1577
1578 if test "$wxUSE_GUI" = yes; then
1579 echo "$ac_t""yes" 1>&6
1580 else
1581 echo "$ac_t""no" 1>&6
1582 fi
1583
1584
1585 if test "$wxUSE_GUI" = "yes"; then
1586
1587 # Check whether --with-gtk or --without-gtk was given.
1588 if test "${with_gtk+set}" = set; then
1589 withval="$with_gtk"
1590 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1591 fi
1592
1593 # Check whether --with-motif or --without-motif was given.
1594 if test "${with_motif+set}" = set; then
1595 withval="$with_motif"
1596 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1597 fi
1598
1599 # Check whether --with-mac or --without-mac was given.
1600 if test "${with_mac+set}" = set; then
1601 withval="$with_mac"
1602 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1603 fi
1604
1605 # Check whether --with-wine or --without-wine was given.
1606 if test "${with_wine+set}" = set; then
1607 withval="$with_wine"
1608 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1609 fi
1610
1611 # Check whether --with-cygwin or --without-cygwin was given.
1612 if test "${with_cygwin+set}" = set; then
1613 withval="$with_cygwin"
1614 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1615 fi
1616
1617 # Check whether --with-mingw or --without-mingw was given.
1618 if test "${with_mingw+set}" = set; then
1619 withval="$with_mingw"
1620 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1621 fi
1622
1623 # Check whether --with-pm or --without-pm was given.
1624 if test "${with_pm+set}" = set; then
1625 withval="$with_pm"
1626 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1627 fi
1628
1629
1630 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1631 if test "${with_gtk_prefix+set}" = set; then
1632 withval="$with_gtk_prefix"
1633 gtk_config_prefix="$withval"
1634 else
1635 gtk_config_prefix=""
1636 fi
1637
1638 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1639 if test "${with_gtk_exec_prefix+set}" = set; then
1640 withval="$with_gtk_exec_prefix"
1641 gtk_config_exec_prefix="$withval"
1642 else
1643 gtk_config_exec_prefix=""
1644 fi
1645
1646
1647
1648 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1649 echo "configure:1650: checking "for --with-libpng"" >&5
1650 no_cache=0
1651 # Check whether --with-libpng or --without-libpng was given.
1652 if test "${with_libpng+set}" = set; then
1653 withval="$with_libpng"
1654
1655 if test "$withval" = yes; then
1656 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1657 elif test "$withval" = no; then
1658 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1659 elif test "$withval" = sys; then
1660 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1661 else
1662 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1663 fi
1664
1665 else
1666
1667 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1668 if test "x$LINE" != x ; then
1669 eval "DEFAULT_$LINE"
1670 else
1671 no_cache=1
1672 fi
1673
1674 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1675
1676 fi
1677
1678
1679 eval "$ac_cv_use_libpng"
1680 if test "$no_cache" != 1; then
1681 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1682 fi
1683
1684 if test "$wxUSE_LIBPNG" = yes; then
1685 echo "$ac_t""yes" 1>&6
1686 elif test "$wxUSE_LIBPNG" = no; then
1687 echo "$ac_t""no" 1>&6
1688 elif test "$wxUSE_LIBPNG" = sys; then
1689 echo "$ac_t""system version" 1>&6
1690 else
1691 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1692 fi
1693
1694
1695 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1696 echo "configure:1697: checking "for --with-libjpeg"" >&5
1697 no_cache=0
1698 # Check whether --with-libjpeg or --without-libjpeg was given.
1699 if test "${with_libjpeg+set}" = set; then
1700 withval="$with_libjpeg"
1701
1702 if test "$withval" = yes; then
1703 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1704 elif test "$withval" = no; then
1705 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1706 elif test "$withval" = sys; then
1707 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1708 else
1709 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1710 fi
1711
1712 else
1713
1714 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1715 if test "x$LINE" != x ; then
1716 eval "DEFAULT_$LINE"
1717 else
1718 no_cache=1
1719 fi
1720
1721 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1722
1723 fi
1724
1725
1726 eval "$ac_cv_use_libjpeg"
1727 if test "$no_cache" != 1; then
1728 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1729 fi
1730
1731 if test "$wxUSE_LIBJPEG" = yes; then
1732 echo "$ac_t""yes" 1>&6
1733 elif test "$wxUSE_LIBJPEG" = no; then
1734 echo "$ac_t""no" 1>&6
1735 elif test "$wxUSE_LIBJPEG" = sys; then
1736 echo "$ac_t""system version" 1>&6
1737 else
1738 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1739 fi
1740
1741
1742 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1743 echo "configure:1744: checking "for --with-libtiff"" >&5
1744 no_cache=0
1745 # Check whether --with-libtiff or --without-libtiff was given.
1746 if test "${with_libtiff+set}" = set; then
1747 withval="$with_libtiff"
1748
1749 if test "$withval" = yes; then
1750 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1751 elif test "$withval" = no; then
1752 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1753 elif test "$withval" = sys; then
1754 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1755 else
1756 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1757 fi
1758
1759 else
1760
1761 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1762 if test "x$LINE" != x ; then
1763 eval "DEFAULT_$LINE"
1764 else
1765 no_cache=1
1766 fi
1767
1768 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1769
1770 fi
1771
1772
1773 eval "$ac_cv_use_libtiff"
1774 if test "$no_cache" != 1; then
1775 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1776 fi
1777
1778 if test "$wxUSE_LIBTIFF" = yes; then
1779 echo "$ac_t""yes" 1>&6
1780 elif test "$wxUSE_LIBTIFF" = no; then
1781 echo "$ac_t""no" 1>&6
1782 elif test "$wxUSE_LIBTIFF" = sys; then
1783 echo "$ac_t""system version" 1>&6
1784 else
1785 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1786 fi
1787
1788
1789 echo $ac_n "checking "for --with-freetype"""... $ac_c" 1>&6
1790 echo "configure:1791: checking "for --with-freetype"" >&5
1791 no_cache=0
1792 # Check whether --with-freetype or --without-freetype was given.
1793 if test "${with_freetype+set}" = set; then
1794 withval="$with_freetype"
1795
1796 if test "$withval" = yes; then
1797 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1798 elif test "$withval" = no; then
1799 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1800 elif test "$withval" = sys; then
1801 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1802 else
1803 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1804 fi
1805
1806 else
1807
1808 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1809 if test "x$LINE" != x ; then
1810 eval "DEFAULT_$LINE"
1811 else
1812 no_cache=1
1813 fi
1814
1815 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1816
1817 fi
1818
1819
1820 eval "$ac_cv_use_freetype"
1821 if test "$no_cache" != 1; then
1822 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1823 fi
1824
1825 if test "$wxUSE_FREETYPE" = yes; then
1826 echo "$ac_t""yes" 1>&6
1827 elif test "$wxUSE_FREETYPE" = no; then
1828 echo "$ac_t""no" 1>&6
1829 elif test "$wxUSE_FREETYPE" = sys; then
1830 echo "$ac_t""system version" 1>&6
1831 else
1832 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1833 fi
1834
1835
1836 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1837 echo "configure:1838: checking "for --with-opengl"" >&5
1838 no_cache=0
1839 # Check whether --with-opengl or --without-opengl was given.
1840 if test "${with_opengl+set}" = set; then
1841 withval="$with_opengl"
1842
1843 if test "$withval" = yes; then
1844 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1845 else
1846 ac_cv_use_opengl='wxUSE_OPENGL=no'
1847 fi
1848
1849 else
1850
1851 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1852 if test "x$LINE" != x ; then
1853 eval "DEFAULT_$LINE"
1854 else
1855 no_cache=1
1856 fi
1857
1858 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1859
1860 fi
1861
1862
1863 eval "$ac_cv_use_opengl"
1864 if test "$no_cache" != 1; then
1865 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1866 fi
1867
1868 if test "$wxUSE_OPENGL" = yes; then
1869 echo "$ac_t""yes" 1>&6
1870 else
1871 echo "$ac_t""no" 1>&6
1872 fi
1873
1874
1875 fi
1876
1877
1878 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1879 echo "configure:1880: checking "for --with-dmalloc"" >&5
1880 no_cache=0
1881 # Check whether --with-dmalloc or --without-dmalloc was given.
1882 if test "${with_dmalloc+set}" = set; then
1883 withval="$with_dmalloc"
1884
1885 if test "$withval" = yes; then
1886 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1887 else
1888 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1889 fi
1890
1891 else
1892
1893 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1894 if test "x$LINE" != x ; then
1895 eval "DEFAULT_$LINE"
1896 else
1897 no_cache=1
1898 fi
1899
1900 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1901
1902 fi
1903
1904
1905 eval "$ac_cv_use_dmalloc"
1906 if test "$no_cache" != 1; then
1907 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1908 fi
1909
1910 if test "$wxUSE_DMALLOC" = yes; then
1911 echo "$ac_t""yes" 1>&6
1912 else
1913 echo "$ac_t""no" 1>&6
1914 fi
1915
1916
1917 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1918 echo "configure:1919: checking "for --with-zlib"" >&5
1919 no_cache=0
1920 # Check whether --with-zlib or --without-zlib was given.
1921 if test "${with_zlib+set}" = set; then
1922 withval="$with_zlib"
1923
1924 if test "$withval" = yes; then
1925 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1926 elif test "$withval" = no; then
1927 ac_cv_use_zlib='wxUSE_ZLIB=no'
1928 elif test "$withval" = sys; then
1929 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1930 else
1931 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
1932 fi
1933
1934 else
1935
1936 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1937 if test "x$LINE" != x ; then
1938 eval "DEFAULT_$LINE"
1939 else
1940 no_cache=1
1941 fi
1942
1943 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1944
1945 fi
1946
1947
1948 eval "$ac_cv_use_zlib"
1949 if test "$no_cache" != 1; then
1950 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1951 fi
1952
1953 if test "$wxUSE_ZLIB" = yes; then
1954 echo "$ac_t""yes" 1>&6
1955 elif test "$wxUSE_ZLIB" = no; then
1956 echo "$ac_t""no" 1>&6
1957 elif test "$wxUSE_ZLIB" = sys; then
1958 echo "$ac_t""system version" 1>&6
1959 else
1960 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
1961 fi
1962
1963
1964 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1965 echo "configure:1966: checking "for --with-odbc"" >&5
1966 no_cache=0
1967 # Check whether --with-odbc or --without-odbc was given.
1968 if test "${with_odbc+set}" = set; then
1969 withval="$with_odbc"
1970
1971 if test "$withval" = yes; then
1972 ac_cv_use_odbc='wxUSE_ODBC=yes'
1973 else
1974 ac_cv_use_odbc='wxUSE_ODBC=no'
1975 fi
1976
1977 else
1978
1979 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1980 if test "x$LINE" != x ; then
1981 eval "DEFAULT_$LINE"
1982 else
1983 no_cache=1
1984 fi
1985
1986 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1987
1988 fi
1989
1990
1991 eval "$ac_cv_use_odbc"
1992 if test "$no_cache" != 1; then
1993 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1994 fi
1995
1996 if test "$wxUSE_ODBC" = yes; then
1997 echo "$ac_t""yes" 1>&6
1998 else
1999 echo "$ac_t""no" 1>&6
2000 fi
2001
2002
2003
2004
2005
2006 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
2007 echo "configure:2008: checking "for --enable-shared"" >&5
2008 no_cache=0
2009 # Check whether --enable-shared or --disable-shared was given.
2010 if test "${enable_shared+set}" = set; then
2011 enableval="$enable_shared"
2012
2013 if test "$enableval" = yes; then
2014 ac_cv_use_shared='wxUSE_SHARED=yes'
2015 else
2016 ac_cv_use_shared='wxUSE_SHARED=no'
2017 fi
2018
2019 else
2020
2021 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2022 if test "x$LINE" != x ; then
2023 eval "DEFAULT_$LINE"
2024 else
2025 no_cache=1
2026 fi
2027
2028 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2029
2030 fi
2031
2032
2033 eval "$ac_cv_use_shared"
2034 if test "$no_cache" != 1; then
2035 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2036 fi
2037
2038 if test "$wxUSE_SHARED" = yes; then
2039 echo "$ac_t""yes" 1>&6
2040 else
2041 echo "$ac_t""no" 1>&6
2042 fi
2043
2044
2045 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
2046 echo "configure:2047: checking "for --enable-burnt_name"" >&5
2047 no_cache=0
2048 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2049 if test "${enable_burnt_name+set}" = set; then
2050 enableval="$enable_burnt_name"
2051
2052 if test "$enableval" = yes; then
2053 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2054 else
2055 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2056 fi
2057
2058 else
2059
2060 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2061 if test "x$LINE" != x ; then
2062 eval "DEFAULT_$LINE"
2063 else
2064 no_cache=1
2065 fi
2066
2067 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2068
2069 fi
2070
2071
2072 eval "$ac_cv_use_burnt_name"
2073 if test "$no_cache" != 1; then
2074 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2075 fi
2076
2077 if test "$wxUSE_BURNT_NAME" = yes; then
2078 echo "$ac_t""yes" 1>&6
2079 else
2080 echo "$ac_t""no" 1>&6
2081 fi
2082
2083
2084 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
2085 echo "configure:2086: checking "for --enable-optimise"" >&5
2086 no_cache=0
2087 # Check whether --enable-optimise or --disable-optimise was given.
2088 if test "${enable_optimise+set}" = set; then
2089 enableval="$enable_optimise"
2090
2091 if test "$enableval" = yes; then
2092 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2093 else
2094 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2095 fi
2096
2097 else
2098
2099 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2100 if test "x$LINE" != x ; then
2101 eval "DEFAULT_$LINE"
2102 else
2103 no_cache=1
2104 fi
2105
2106 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2107
2108 fi
2109
2110
2111 eval "$ac_cv_use_optimise"
2112 if test "$no_cache" != 1; then
2113 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2114 fi
2115
2116 if test "$wxUSE_OPTIMISE" = yes; then
2117 echo "$ac_t""yes" 1>&6
2118 else
2119 echo "$ac_t""no" 1>&6
2120 fi
2121
2122
2123 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
2124 echo "configure:2125: checking "for --enable-debug"" >&5
2125 no_cache=0
2126 # Check whether --enable-debug or --disable-debug was given.
2127 if test "${enable_debug+set}" = set; then
2128 enableval="$enable_debug"
2129
2130 if test "$enableval" = yes; then
2131 ac_cv_use_debug='wxUSE_DEBUG=yes'
2132 else
2133 ac_cv_use_debug='wxUSE_DEBUG=no'
2134 fi
2135
2136 else
2137
2138 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2139 if test "x$LINE" != x ; then
2140 eval "DEFAULT_$LINE"
2141 else
2142 no_cache=1
2143 fi
2144
2145 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2146
2147 fi
2148
2149
2150 eval "$ac_cv_use_debug"
2151 if test "$no_cache" != 1; then
2152 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2153 fi
2154
2155 if test "$wxUSE_DEBUG" = yes; then
2156 echo "$ac_t""yes" 1>&6
2157 else
2158 echo "$ac_t""no" 1>&6
2159 fi
2160
2161
2162 if test "$wxUSE_DEBUG" = "yes"; then
2163 DEFAULT_wxUSE_DEBUG_FLAG=yes
2164 DEFAULT_wxUSE_DEBUG_INFO=yes
2165 elif test "$wxUSE_DEBUG" = "no"; then
2166 DEFAULT_wxUSE_DEBUG_FLAG=no
2167 DEFAULT_wxUSE_DEBUG_INFO=no
2168 fi
2169
2170
2171 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
2172 echo "configure:2173: checking "for --enable-debug_flag"" >&5
2173 no_cache=0
2174 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2175 if test "${enable_debug_flag+set}" = set; then
2176 enableval="$enable_debug_flag"
2177
2178 if test "$enableval" = yes; then
2179 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2180 else
2181 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2182 fi
2183
2184 else
2185
2186 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2187 if test "x$LINE" != x ; then
2188 eval "DEFAULT_$LINE"
2189 else
2190 no_cache=1
2191 fi
2192
2193 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2194
2195 fi
2196
2197
2198 eval "$ac_cv_use_debug_flag"
2199 if test "$no_cache" != 1; then
2200 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2201 fi
2202
2203 if test "$wxUSE_DEBUG_FLAG" = yes; then
2204 echo "$ac_t""yes" 1>&6
2205 else
2206 echo "$ac_t""no" 1>&6
2207 fi
2208
2209
2210 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
2211 echo "configure:2212: checking "for --enable-debug_info"" >&5
2212 no_cache=0
2213 # Check whether --enable-debug_info or --disable-debug_info was given.
2214 if test "${enable_debug_info+set}" = set; then
2215 enableval="$enable_debug_info"
2216
2217 if test "$enableval" = yes; then
2218 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2219 else
2220 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2221 fi
2222
2223 else
2224
2225 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2226 if test "x$LINE" != x ; then
2227 eval "DEFAULT_$LINE"
2228 else
2229 no_cache=1
2230 fi
2231
2232 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2233
2234 fi
2235
2236
2237 eval "$ac_cv_use_debug_info"
2238 if test "$no_cache" != 1; then
2239 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2240 fi
2241
2242 if test "$wxUSE_DEBUG_INFO" = yes; then
2243 echo "$ac_t""yes" 1>&6
2244 else
2245 echo "$ac_t""no" 1>&6
2246 fi
2247
2248
2249 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
2250 echo "configure:2251: checking "for --enable-debug_gdb"" >&5
2251 no_cache=0
2252 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2253 if test "${enable_debug_gdb+set}" = set; then
2254 enableval="$enable_debug_gdb"
2255
2256 if test "$enableval" = yes; then
2257 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2258 else
2259 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2260 fi
2261
2262 else
2263
2264 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2265 if test "x$LINE" != x ; then
2266 eval "DEFAULT_$LINE"
2267 else
2268 no_cache=1
2269 fi
2270
2271 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2272
2273 fi
2274
2275
2276 eval "$ac_cv_use_debug_gdb"
2277 if test "$no_cache" != 1; then
2278 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2279 fi
2280
2281 if test "$wxUSE_DEBUG_GDB" = yes; then
2282 echo "$ac_t""yes" 1>&6
2283 else
2284 echo "$ac_t""no" 1>&6
2285 fi
2286
2287
2288 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
2289 echo "configure:2290: checking "for --enable-debug_cntxt"" >&5
2290 no_cache=0
2291 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2292 if test "${enable_debug_cntxt+set}" = set; then
2293 enableval="$enable_debug_cntxt"
2294
2295 if test "$enableval" = yes; then
2296 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2297 else
2298 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2299 fi
2300
2301 else
2302
2303 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2304 if test "x$LINE" != x ; then
2305 eval "DEFAULT_$LINE"
2306 else
2307 no_cache=1
2308 fi
2309
2310 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2311
2312 fi
2313
2314
2315 eval "$ac_cv_use_debug_cntxt"
2316 if test "$no_cache" != 1; then
2317 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2318 fi
2319
2320 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2321 echo "$ac_t""yes" 1>&6
2322 else
2323 echo "$ac_t""no" 1>&6
2324 fi
2325
2326
2327 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
2328 echo "configure:2329: checking "for --enable-mem_tracing"" >&5
2329 no_cache=0
2330 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2331 if test "${enable_mem_tracing+set}" = set; then
2332 enableval="$enable_mem_tracing"
2333
2334 if test "$enableval" = yes; then
2335 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2336 else
2337 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2338 fi
2339
2340 else
2341
2342 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2343 if test "x$LINE" != x ; then
2344 eval "DEFAULT_$LINE"
2345 else
2346 no_cache=1
2347 fi
2348
2349 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2350
2351 fi
2352
2353
2354 eval "$ac_cv_use_mem_tracing"
2355 if test "$no_cache" != 1; then
2356 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2357 fi
2358
2359 if test "$wxUSE_MEM_TRACING" = yes; then
2360 echo "$ac_t""yes" 1>&6
2361 else
2362 echo "$ac_t""no" 1>&6
2363 fi
2364
2365
2366 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
2367 echo "configure:2368: checking "for --enable-profile"" >&5
2368 no_cache=0
2369 # Check whether --enable-profile or --disable-profile was given.
2370 if test "${enable_profile+set}" = set; then
2371 enableval="$enable_profile"
2372
2373 if test "$enableval" = yes; then
2374 ac_cv_use_profile='wxUSE_PROFILE=yes'
2375 else
2376 ac_cv_use_profile='wxUSE_PROFILE=no'
2377 fi
2378
2379 else
2380
2381 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2382 if test "x$LINE" != x ; then
2383 eval "DEFAULT_$LINE"
2384 else
2385 no_cache=1
2386 fi
2387
2388 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2389
2390 fi
2391
2392
2393 eval "$ac_cv_use_profile"
2394 if test "$no_cache" != 1; then
2395 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2396 fi
2397
2398 if test "$wxUSE_PROFILE" = yes; then
2399 echo "$ac_t""yes" 1>&6
2400 else
2401 echo "$ac_t""no" 1>&6
2402 fi
2403
2404
2405 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
2406 echo "configure:2407: checking "for --enable-no_rtti"" >&5
2407 no_cache=0
2408 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2409 if test "${enable_no_rtti+set}" = set; then
2410 enableval="$enable_no_rtti"
2411
2412 if test "$enableval" = yes; then
2413 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2414 else
2415 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2416 fi
2417
2418 else
2419
2420 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2421 if test "x$LINE" != x ; then
2422 eval "DEFAULT_$LINE"
2423 else
2424 no_cache=1
2425 fi
2426
2427 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2428
2429 fi
2430
2431
2432 eval "$ac_cv_use_no_rtti"
2433 if test "$no_cache" != 1; then
2434 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2435 fi
2436
2437 if test "$wxUSE_NO_RTTI" = yes; then
2438 echo "$ac_t""yes" 1>&6
2439 else
2440 echo "$ac_t""no" 1>&6
2441 fi
2442
2443
2444 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
2445 echo "configure:2446: checking "for --enable-no_exceptions"" >&5
2446 no_cache=0
2447 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2448 if test "${enable_no_exceptions+set}" = set; then
2449 enableval="$enable_no_exceptions"
2450
2451 if test "$enableval" = yes; then
2452 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2453 else
2454 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2455 fi
2456
2457 else
2458
2459 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2460 if test "x$LINE" != x ; then
2461 eval "DEFAULT_$LINE"
2462 else
2463 no_cache=1
2464 fi
2465
2466 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2467
2468 fi
2469
2470
2471 eval "$ac_cv_use_no_exceptions"
2472 if test "$no_cache" != 1; then
2473 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2474 fi
2475
2476 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2477 echo "$ac_t""yes" 1>&6
2478 else
2479 echo "$ac_t""no" 1>&6
2480 fi
2481
2482
2483 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
2484 echo "configure:2485: checking "for --enable-permissive"" >&5
2485 no_cache=0
2486 # Check whether --enable-permissive or --disable-permissive was given.
2487 if test "${enable_permissive+set}" = set; then
2488 enableval="$enable_permissive"
2489
2490 if test "$enableval" = yes; then
2491 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2492 else
2493 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2494 fi
2495
2496 else
2497
2498 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2499 if test "x$LINE" != x ; then
2500 eval "DEFAULT_$LINE"
2501 else
2502 no_cache=1
2503 fi
2504
2505 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2506
2507 fi
2508
2509
2510 eval "$ac_cv_use_permissive"
2511 if test "$no_cache" != 1; then
2512 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2513 fi
2514
2515 if test "$wxUSE_PERMISSIVE" = yes; then
2516 echo "$ac_t""yes" 1>&6
2517 else
2518 echo "$ac_t""no" 1>&6
2519 fi
2520
2521
2522 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
2523 echo "configure:2524: checking "for --enable-no_deps"" >&5
2524 no_cache=0
2525 # Check whether --enable-no_deps or --disable-no_deps was given.
2526 if test "${enable_no_deps+set}" = set; then
2527 enableval="$enable_no_deps"
2528
2529 if test "$enableval" = yes; then
2530 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2531 else
2532 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2533 fi
2534
2535 else
2536
2537 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2538 if test "x$LINE" != x ; then
2539 eval "DEFAULT_$LINE"
2540 else
2541 no_cache=1
2542 fi
2543
2544 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2545
2546 fi
2547
2548
2549 eval "$ac_cv_use_no_deps"
2550 if test "$no_cache" != 1; then
2551 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2552 fi
2553
2554 if test "$wxUSE_NO_DEPS" = yes; then
2555 echo "$ac_t""yes" 1>&6
2556 else
2557 echo "$ac_t""no" 1>&6
2558 fi
2559
2560
2561
2562
2563 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
2564 echo "configure:2565: checking "for --enable-intl"" >&5
2565 no_cache=0
2566 # Check whether --enable-intl or --disable-intl was given.
2567 if test "${enable_intl+set}" = set; then
2568 enableval="$enable_intl"
2569
2570 if test "$enableval" = yes; then
2571 ac_cv_use_intl='wxUSE_INTL=yes'
2572 else
2573 ac_cv_use_intl='wxUSE_INTL=no'
2574 fi
2575
2576 else
2577
2578 LINE=`grep "wxUSE_INTL" ${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_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2586
2587 fi
2588
2589
2590 eval "$ac_cv_use_intl"
2591 if test "$no_cache" != 1; then
2592 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2593 fi
2594
2595 if test "$wxUSE_INTL" = 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-config"""... $ac_c" 1>&6
2603 echo "configure:2604: checking "for --enable-config"" >&5
2604 no_cache=0
2605 # Check whether --enable-config or --disable-config was given.
2606 if test "${enable_config+set}" = set; then
2607 enableval="$enable_config"
2608
2609 if test "$enableval" = yes; then
2610 ac_cv_use_config='wxUSE_CONFIG=yes'
2611 else
2612 ac_cv_use_config='wxUSE_CONFIG=no'
2613 fi
2614
2615 else
2616
2617 LINE=`grep "wxUSE_CONFIG" ${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_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2625
2626 fi
2627
2628
2629 eval "$ac_cv_use_config"
2630 if test "$no_cache" != 1; then
2631 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2632 fi
2633
2634 if test "$wxUSE_CONFIG" = yes; then
2635 echo "$ac_t""yes" 1>&6
2636 else
2637 echo "$ac_t""no" 1>&6
2638 fi
2639
2640
2641
2642 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
2643 echo "configure:2644: checking "for --enable-sockets"" >&5
2644 no_cache=0
2645 # Check whether --enable-sockets or --disable-sockets was given.
2646 if test "${enable_sockets+set}" = set; then
2647 enableval="$enable_sockets"
2648
2649 if test "$enableval" = yes; then
2650 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2651 else
2652 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2653 fi
2654
2655 else
2656
2657 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2658 if test "x$LINE" != x ; then
2659 eval "DEFAULT_$LINE"
2660 else
2661 no_cache=1
2662 fi
2663
2664 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2665
2666 fi
2667
2668
2669 eval "$ac_cv_use_sockets"
2670 if test "$no_cache" != 1; then
2671 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2672 fi
2673
2674 if test "$wxUSE_SOCKETS" = yes; then
2675 echo "$ac_t""yes" 1>&6
2676 else
2677 echo "$ac_t""no" 1>&6
2678 fi
2679
2680
2681
2682 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2683 echo "configure:2684: checking "for --enable-ipc"" >&5
2684 no_cache=0
2685 # Check whether --enable-ipc or --disable-ipc was given.
2686 if test "${enable_ipc+set}" = set; then
2687 enableval="$enable_ipc"
2688
2689 if test "$enableval" = yes; then
2690 ac_cv_use_ipc='wxUSE_IPC=yes'
2691 else
2692 ac_cv_use_ipc='wxUSE_IPC=no'
2693 fi
2694
2695 else
2696
2697 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2698 if test "x$LINE" != x ; then
2699 eval "DEFAULT_$LINE"
2700 else
2701 no_cache=1
2702 fi
2703
2704 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2705
2706 fi
2707
2708
2709 eval "$ac_cv_use_ipc"
2710 if test "$no_cache" != 1; then
2711 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2712 fi
2713
2714 if test "$wxUSE_IPC" = yes; then
2715 echo "$ac_t""yes" 1>&6
2716 else
2717 echo "$ac_t""no" 1>&6
2718 fi
2719
2720
2721
2722 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2723 echo "configure:2724: checking "for --enable-dialupman"" >&5
2724 no_cache=0
2725 # Check whether --enable-dialupman or --disable-dialupman was given.
2726 if test "${enable_dialupman+set}" = set; then
2727 enableval="$enable_dialupman"
2728
2729 if test "$enableval" = yes; then
2730 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2731 else
2732 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2733 fi
2734
2735 else
2736
2737 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2738 if test "x$LINE" != x ; then
2739 eval "DEFAULT_$LINE"
2740 else
2741 no_cache=1
2742 fi
2743
2744 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2745
2746 fi
2747
2748
2749 eval "$ac_cv_use_dialupman"
2750 if test "$no_cache" != 1; then
2751 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2752 fi
2753
2754 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2755 echo "$ac_t""yes" 1>&6
2756 else
2757 echo "$ac_t""no" 1>&6
2758 fi
2759
2760
2761 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
2762 echo "configure:2763: checking "for --enable-apple_ieee"" >&5
2763 no_cache=0
2764 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2765 if test "${enable_apple_ieee+set}" = set; then
2766 enableval="$enable_apple_ieee"
2767
2768 if test "$enableval" = yes; then
2769 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2770 else
2771 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2772 fi
2773
2774 else
2775
2776 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2777 if test "x$LINE" != x ; then
2778 eval "DEFAULT_$LINE"
2779 else
2780 no_cache=1
2781 fi
2782
2783 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2784
2785 fi
2786
2787
2788 eval "$ac_cv_use_apple_ieee"
2789 if test "$no_cache" != 1; then
2790 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2791 fi
2792
2793 if test "$wxUSE_APPLE_IEEE" = yes; then
2794 echo "$ac_t""yes" 1>&6
2795 else
2796 echo "$ac_t""no" 1>&6
2797 fi
2798
2799
2800 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
2801 echo "configure:2802: checking "for --enable-timedate"" >&5
2802 no_cache=0
2803 # Check whether --enable-timedate or --disable-timedate was given.
2804 if test "${enable_timedate+set}" = set; then
2805 enableval="$enable_timedate"
2806
2807 if test "$enableval" = yes; then
2808 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2809 else
2810 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2811 fi
2812
2813 else
2814
2815 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2816 if test "x$LINE" != x ; then
2817 eval "DEFAULT_$LINE"
2818 else
2819 no_cache=1
2820 fi
2821
2822 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2823
2824 fi
2825
2826
2827 eval "$ac_cv_use_timedate"
2828 if test "$no_cache" != 1; then
2829 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2830 fi
2831
2832 if test "$wxUSE_TIMEDATE" = yes; then
2833 echo "$ac_t""yes" 1>&6
2834 else
2835 echo "$ac_t""no" 1>&6
2836 fi
2837
2838
2839 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
2840 echo "configure:2841: checking "for --enable-wave"" >&5
2841 no_cache=0
2842 # Check whether --enable-wave or --disable-wave was given.
2843 if test "${enable_wave+set}" = set; then
2844 enableval="$enable_wave"
2845
2846 if test "$enableval" = yes; then
2847 ac_cv_use_wave='wxUSE_WAVE=yes'
2848 else
2849 ac_cv_use_wave='wxUSE_WAVE=no'
2850 fi
2851
2852 else
2853
2854 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2855 if test "x$LINE" != x ; then
2856 eval "DEFAULT_$LINE"
2857 else
2858 no_cache=1
2859 fi
2860
2861 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2862
2863 fi
2864
2865
2866 eval "$ac_cv_use_wave"
2867 if test "$no_cache" != 1; then
2868 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2869 fi
2870
2871 if test "$wxUSE_WAVE" = yes; then
2872 echo "$ac_t""yes" 1>&6
2873 else
2874 echo "$ac_t""no" 1>&6
2875 fi
2876
2877
2878 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
2879 echo "configure:2880: checking "for --enable-fraction"" >&5
2880 no_cache=0
2881 # Check whether --enable-fraction or --disable-fraction was given.
2882 if test "${enable_fraction+set}" = set; then
2883 enableval="$enable_fraction"
2884
2885 if test "$enableval" = yes; then
2886 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2887 else
2888 ac_cv_use_fraction='wxUSE_FRACTION=no'
2889 fi
2890
2891 else
2892
2893 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2894 if test "x$LINE" != x ; then
2895 eval "DEFAULT_$LINE"
2896 else
2897 no_cache=1
2898 fi
2899
2900 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2901
2902 fi
2903
2904
2905 eval "$ac_cv_use_fraction"
2906 if test "$no_cache" != 1; then
2907 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2908 fi
2909
2910 if test "$wxUSE_FRACTION" = yes; then
2911 echo "$ac_t""yes" 1>&6
2912 else
2913 echo "$ac_t""no" 1>&6
2914 fi
2915
2916
2917 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
2918 echo "configure:2919: checking "for --enable-dynlib"" >&5
2919 no_cache=0
2920 # Check whether --enable-dynlib or --disable-dynlib was given.
2921 if test "${enable_dynlib+set}" = set; then
2922 enableval="$enable_dynlib"
2923
2924 if test "$enableval" = yes; then
2925 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2926 else
2927 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2928 fi
2929
2930 else
2931
2932 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2933 if test "x$LINE" != x ; then
2934 eval "DEFAULT_$LINE"
2935 else
2936 no_cache=1
2937 fi
2938
2939 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2940
2941 fi
2942
2943
2944 eval "$ac_cv_use_dynlib"
2945 if test "$no_cache" != 1; then
2946 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2947 fi
2948
2949 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2950 echo "$ac_t""yes" 1>&6
2951 else
2952 echo "$ac_t""no" 1>&6
2953 fi
2954
2955
2956 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
2957 echo "configure:2958: checking "for --enable-longlong"" >&5
2958 no_cache=0
2959 # Check whether --enable-longlong or --disable-longlong was given.
2960 if test "${enable_longlong+set}" = set; then
2961 enableval="$enable_longlong"
2962
2963 if test "$enableval" = yes; then
2964 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2965 else
2966 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2967 fi
2968
2969 else
2970
2971 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2972 if test "x$LINE" != x ; then
2973 eval "DEFAULT_$LINE"
2974 else
2975 no_cache=1
2976 fi
2977
2978 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2979
2980 fi
2981
2982
2983 eval "$ac_cv_use_longlong"
2984 if test "$no_cache" != 1; then
2985 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2986 fi
2987
2988 if test "$wxUSE_LONGLONG" = yes; then
2989 echo "$ac_t""yes" 1>&6
2990 else
2991 echo "$ac_t""no" 1>&6
2992 fi
2993
2994
2995 echo $ac_n "checking "for --enable-geometry"""... $ac_c" 1>&6
2996 echo "configure:2997: checking "for --enable-geometry"" >&5
2997 no_cache=0
2998 # Check whether --enable-geometry or --disable-geometry was given.
2999 if test "${enable_geometry+set}" = set; then
3000 enableval="$enable_geometry"
3001
3002 if test "$enableval" = yes; then
3003 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3004 else
3005 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3006 fi
3007
3008 else
3009
3010 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3011 if test "x$LINE" != x ; then
3012 eval "DEFAULT_$LINE"
3013 else
3014 no_cache=1
3015 fi
3016
3017 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3018
3019 fi
3020
3021
3022 eval "$ac_cv_use_geometry"
3023 if test "$no_cache" != 1; then
3024 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3025 fi
3026
3027 if test "$wxUSE_GEOMETRY" = yes; then
3028 echo "$ac_t""yes" 1>&6
3029 else
3030 echo "$ac_t""no" 1>&6
3031 fi
3032
3033
3034 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
3035 echo "configure:3036: checking "for --enable-log"" >&5
3036 no_cache=0
3037 # Check whether --enable-log or --disable-log was given.
3038 if test "${enable_log+set}" = set; then
3039 enableval="$enable_log"
3040
3041 if test "$enableval" = yes; then
3042 ac_cv_use_log='wxUSE_LOG=yes'
3043 else
3044 ac_cv_use_log='wxUSE_LOG=no'
3045 fi
3046
3047 else
3048
3049 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3050 if test "x$LINE" != x ; then
3051 eval "DEFAULT_$LINE"
3052 else
3053 no_cache=1
3054 fi
3055
3056 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3057
3058 fi
3059
3060
3061 eval "$ac_cv_use_log"
3062 if test "$no_cache" != 1; then
3063 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3064 fi
3065
3066 if test "$wxUSE_LOG" = yes; then
3067 echo "$ac_t""yes" 1>&6
3068 else
3069 echo "$ac_t""no" 1>&6
3070 fi
3071
3072
3073 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
3074 echo "configure:3075: checking "for --enable-streams"" >&5
3075 no_cache=0
3076 # Check whether --enable-streams or --disable-streams was given.
3077 if test "${enable_streams+set}" = set; then
3078 enableval="$enable_streams"
3079
3080 if test "$enableval" = yes; then
3081 ac_cv_use_streams='wxUSE_STREAMS=yes'
3082 else
3083 ac_cv_use_streams='wxUSE_STREAMS=no'
3084 fi
3085
3086 else
3087
3088 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3089 if test "x$LINE" != x ; then
3090 eval "DEFAULT_$LINE"
3091 else
3092 no_cache=1
3093 fi
3094
3095 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3096
3097 fi
3098
3099
3100 eval "$ac_cv_use_streams"
3101 if test "$no_cache" != 1; then
3102 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3103 fi
3104
3105 if test "$wxUSE_STREAMS" = yes; then
3106 echo "$ac_t""yes" 1>&6
3107 else
3108 echo "$ac_t""no" 1>&6
3109 fi
3110
3111
3112 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
3113 echo "configure:3114: checking "for --enable-file"" >&5
3114 no_cache=0
3115 # Check whether --enable-file or --disable-file was given.
3116 if test "${enable_file+set}" = set; then
3117 enableval="$enable_file"
3118
3119 if test "$enableval" = yes; then
3120 ac_cv_use_file='wxUSE_FILE=yes'
3121 else
3122 ac_cv_use_file='wxUSE_FILE=no'
3123 fi
3124
3125 else
3126
3127 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3128 if test "x$LINE" != x ; then
3129 eval "DEFAULT_$LINE"
3130 else
3131 no_cache=1
3132 fi
3133
3134 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3135
3136 fi
3137
3138
3139 eval "$ac_cv_use_file"
3140 if test "$no_cache" != 1; then
3141 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3142 fi
3143
3144 if test "$wxUSE_FILE" = yes; then
3145 echo "$ac_t""yes" 1>&6
3146 else
3147 echo "$ac_t""no" 1>&6
3148 fi
3149
3150
3151 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
3152 echo "configure:3153: checking "for --enable-textfile"" >&5
3153 no_cache=0
3154 # Check whether --enable-textfile or --disable-textfile was given.
3155 if test "${enable_textfile+set}" = set; then
3156 enableval="$enable_textfile"
3157
3158 if test "$enableval" = yes; then
3159 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3160 else
3161 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3162 fi
3163
3164 else
3165
3166 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3167 if test "x$LINE" != x ; then
3168 eval "DEFAULT_$LINE"
3169 else
3170 no_cache=1
3171 fi
3172
3173 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3174
3175 fi
3176
3177
3178 eval "$ac_cv_use_textfile"
3179 if test "$no_cache" != 1; then
3180 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3181 fi
3182
3183 if test "$wxUSE_TEXTFILE" = yes; then
3184 echo "$ac_t""yes" 1>&6
3185 else
3186 echo "$ac_t""no" 1>&6
3187 fi
3188
3189
3190 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
3191 echo "configure:3192: checking "for --enable-unicode"" >&5
3192 no_cache=0
3193 # Check whether --enable-unicode or --disable-unicode was given.
3194 if test "${enable_unicode+set}" = set; then
3195 enableval="$enable_unicode"
3196
3197 if test "$enableval" = yes; then
3198 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3199 else
3200 ac_cv_use_unicode='wxUSE_UNICODE=no'
3201 fi
3202
3203 else
3204
3205 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3206 if test "x$LINE" != x ; then
3207 eval "DEFAULT_$LINE"
3208 else
3209 no_cache=1
3210 fi
3211
3212 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3213
3214 fi
3215
3216
3217 eval "$ac_cv_use_unicode"
3218 if test "$no_cache" != 1; then
3219 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3220 fi
3221
3222 if test "$wxUSE_UNICODE" = yes; then
3223 echo "$ac_t""yes" 1>&6
3224 else
3225 echo "$ac_t""no" 1>&6
3226 fi
3227
3228
3229 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
3230 echo "configure:3231: checking "for --enable-wcsrtombs"" >&5
3231 no_cache=0
3232 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3233 if test "${enable_wcsrtombs+set}" = set; then
3234 enableval="$enable_wcsrtombs"
3235
3236 if test "$enableval" = yes; then
3237 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3238 else
3239 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3240 fi
3241
3242 else
3243
3244 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3245 if test "x$LINE" != x ; then
3246 eval "DEFAULT_$LINE"
3247 else
3248 no_cache=1
3249 fi
3250
3251 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3252
3253 fi
3254
3255
3256 eval "$ac_cv_use_wcsrtombs"
3257 if test "$no_cache" != 1; then
3258 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3259 fi
3260
3261 if test "$wxUSE_WCSRTOMBS" = yes; then
3262 echo "$ac_t""yes" 1>&6
3263 else
3264 echo "$ac_t""no" 1>&6
3265 fi
3266
3267
3268 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
3269 echo "configure:3270: checking "for --enable-wxprintfv"" >&5
3270 no_cache=0
3271 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3272 if test "${enable_wxprintfv+set}" = set; then
3273 enableval="$enable_wxprintfv"
3274
3275 if test "$enableval" = yes; then
3276 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3277 else
3278 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3279 fi
3280
3281 else
3282
3283 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3284 if test "x$LINE" != x ; then
3285 eval "DEFAULT_$LINE"
3286 else
3287 no_cache=1
3288 fi
3289
3290 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3291
3292 fi
3293
3294
3295 eval "$ac_cv_use_wxprintfv"
3296 if test "$no_cache" != 1; then
3297 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3298 fi
3299
3300 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3301 echo "$ac_t""yes" 1>&6
3302 else
3303 echo "$ac_t""no" 1>&6
3304 fi
3305
3306
3307 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3308 echo "configure:3309: checking "for --enable-std_iostreams"" >&5
3309 no_cache=0
3310 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3311 if test "${enable_std_iostreams+set}" = set; then
3312 enableval="$enable_std_iostreams"
3313
3314 if test "$enableval" = yes; then
3315 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3316 else
3317 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3318 fi
3319
3320 else
3321
3322 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3323 if test "x$LINE" != x ; then
3324 eval "DEFAULT_$LINE"
3325 else
3326 no_cache=1
3327 fi
3328
3329 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3330
3331 fi
3332
3333
3334 eval "$ac_cv_use_std_iostreams"
3335 if test "$no_cache" != 1; then
3336 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3337 fi
3338
3339 if test "$wxUSE_STD_IOSTREAM" = yes; then
3340 echo "$ac_t""yes" 1>&6
3341 else
3342 echo "$ac_t""no" 1>&6
3343 fi
3344
3345
3346 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
3347 echo "configure:3348: checking "for --enable-filesystem"" >&5
3348 no_cache=0
3349 # Check whether --enable-filesystem or --disable-filesystem was given.
3350 if test "${enable_filesystem+set}" = set; then
3351 enableval="$enable_filesystem"
3352
3353 if test "$enableval" = yes; then
3354 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3355 else
3356 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3357 fi
3358
3359 else
3360
3361 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3362 if test "x$LINE" != x ; then
3363 eval "DEFAULT_$LINE"
3364 else
3365 no_cache=1
3366 fi
3367
3368 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3369
3370 fi
3371
3372
3373 eval "$ac_cv_use_filesystem"
3374 if test "$no_cache" != 1; then
3375 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3376 fi
3377
3378 if test "$wxUSE_FILESYSTEM" = yes; then
3379 echo "$ac_t""yes" 1>&6
3380 else
3381 echo "$ac_t""no" 1>&6
3382 fi
3383
3384
3385 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3386 echo "configure:3387: checking "for --enable-fs_inet"" >&5
3387 no_cache=0
3388 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3389 if test "${enable_fs_inet+set}" = set; then
3390 enableval="$enable_fs_inet"
3391
3392 if test "$enableval" = yes; then
3393 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3394 else
3395 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3396 fi
3397
3398 else
3399
3400 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3401 if test "x$LINE" != x ; then
3402 eval "DEFAULT_$LINE"
3403 else
3404 no_cache=1
3405 fi
3406
3407 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3408
3409 fi
3410
3411
3412 eval "$ac_cv_use_fs_inet"
3413 if test "$no_cache" != 1; then
3414 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3415 fi
3416
3417 if test "$wxUSE_FS_INET" = yes; then
3418 echo "$ac_t""yes" 1>&6
3419 else
3420 echo "$ac_t""no" 1>&6
3421 fi
3422
3423
3424 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3425 echo "configure:3426: checking "for --enable-fs_zip"" >&5
3426 no_cache=0
3427 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3428 if test "${enable_fs_zip+set}" = set; then
3429 enableval="$enable_fs_zip"
3430
3431 if test "$enableval" = yes; then
3432 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3433 else
3434 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3435 fi
3436
3437 else
3438
3439 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3440 if test "x$LINE" != x ; then
3441 eval "DEFAULT_$LINE"
3442 else
3443 no_cache=1
3444 fi
3445
3446 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3447
3448 fi
3449
3450
3451 eval "$ac_cv_use_fs_zip"
3452 if test "$no_cache" != 1; then
3453 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3454 fi
3455
3456 if test "$wxUSE_FS_ZIP" = yes; then
3457 echo "$ac_t""yes" 1>&6
3458 else
3459 echo "$ac_t""no" 1>&6
3460 fi
3461
3462
3463 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3464 echo "configure:3465: checking "for --enable-zipstream"" >&5
3465 no_cache=0
3466 # Check whether --enable-zipstream or --disable-zipstream was given.
3467 if test "${enable_zipstream+set}" = set; then
3468 enableval="$enable_zipstream"
3469
3470 if test "$enableval" = yes; then
3471 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3472 else
3473 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3474 fi
3475
3476 else
3477
3478 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3479 if test "x$LINE" != x ; then
3480 eval "DEFAULT_$LINE"
3481 else
3482 no_cache=1
3483 fi
3484
3485 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3486
3487 fi
3488
3489
3490 eval "$ac_cv_use_zipstream"
3491 if test "$no_cache" != 1; then
3492 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3493 fi
3494
3495 if test "$wxUSE_ZIPSTREAM" = yes; then
3496 echo "$ac_t""yes" 1>&6
3497 else
3498 echo "$ac_t""no" 1>&6
3499 fi
3500
3501
3502
3503 echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6
3504 echo "configure:3505: checking "for --enable-catch_segvs"" >&5
3505 no_cache=0
3506 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3507 if test "${enable_catch_segvs+set}" = set; then
3508 enableval="$enable_catch_segvs"
3509
3510 if test "$enableval" = yes; then
3511 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3512 else
3513 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3514 fi
3515
3516 else
3517
3518 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3519 if test "x$LINE" != x ; then
3520 eval "DEFAULT_$LINE"
3521 else
3522 no_cache=1
3523 fi
3524
3525 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3526
3527 fi
3528
3529
3530 eval "$ac_cv_use_catch_segvs"
3531 if test "$no_cache" != 1; then
3532 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3533 fi
3534
3535 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3536 echo "$ac_t""yes" 1>&6
3537 else
3538 echo "$ac_t""no" 1>&6
3539 fi
3540
3541
3542
3543
3544 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3545 echo "configure:3546: checking "for --enable-threads"" >&5
3546 no_cache=0
3547 # Check whether --enable-threads or --disable-threads was given.
3548 if test "${enable_threads+set}" = set; then
3549 enableval="$enable_threads"
3550
3551 if test "$enableval" = yes; then
3552 ac_cv_use_threads='wxUSE_THREADS=yes'
3553 else
3554 ac_cv_use_threads='wxUSE_THREADS=no'
3555 fi
3556
3557 else
3558
3559 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3560 if test "x$LINE" != x ; then
3561 eval "DEFAULT_$LINE"
3562 else
3563 no_cache=1
3564 fi
3565
3566 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3567
3568 fi
3569
3570
3571 eval "$ac_cv_use_threads"
3572 if test "$no_cache" != 1; then
3573 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3574 fi
3575
3576 if test "$wxUSE_THREADS" = yes; then
3577 echo "$ac_t""yes" 1>&6
3578 else
3579 echo "$ac_t""no" 1>&6
3580 fi
3581
3582
3583 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3584 echo "configure:3585: checking "for --enable-serial"" >&5
3585 no_cache=0
3586 # Check whether --enable-serial or --disable-serial was given.
3587 if test "${enable_serial+set}" = set; then
3588 enableval="$enable_serial"
3589
3590 if test "$enableval" = yes; then
3591 ac_cv_use_serial='wxUSE_SERIAL=yes'
3592 else
3593 ac_cv_use_serial='wxUSE_SERIAL=no'
3594 fi
3595
3596 else
3597
3598 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3599 if test "x$LINE" != x ; then
3600 eval "DEFAULT_$LINE"
3601 else
3602 no_cache=1
3603 fi
3604
3605 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3606
3607 fi
3608
3609
3610 eval "$ac_cv_use_serial"
3611 if test "$no_cache" != 1; then
3612 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3613 fi
3614
3615 if test "$wxUSE_SERIAL" = yes; then
3616 echo "$ac_t""yes" 1>&6
3617 else
3618 echo "$ac_t""no" 1>&6
3619 fi
3620
3621
3622 if test "$wxUSE_GUI" = "yes"; then
3623
3624
3625
3626 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3627 echo "configure:3628: checking "for --enable-docview"" >&5
3628 no_cache=0
3629 # Check whether --enable-docview or --disable-docview was given.
3630 if test "${enable_docview+set}" = set; then
3631 enableval="$enable_docview"
3632
3633 if test "$enableval" = yes; then
3634 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3635 else
3636 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3637 fi
3638
3639 else
3640
3641 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3642 if test "x$LINE" != x ; then
3643 eval "DEFAULT_$LINE"
3644 else
3645 no_cache=1
3646 fi
3647
3648 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3649
3650 fi
3651
3652
3653 eval "$ac_cv_use_docview"
3654 if test "$no_cache" != 1; then
3655 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3656 fi
3657
3658 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3659 echo "$ac_t""yes" 1>&6
3660 else
3661 echo "$ac_t""no" 1>&6
3662 fi
3663
3664
3665 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3666 echo "configure:3667: checking "for --enable-help"" >&5
3667 no_cache=0
3668 # Check whether --enable-help or --disable-help was given.
3669 if test "${enable_help+set}" = set; then
3670 enableval="$enable_help"
3671
3672 if test "$enableval" = yes; then
3673 ac_cv_use_help='wxUSE_HELP=yes'
3674 else
3675 ac_cv_use_help='wxUSE_HELP=no'
3676 fi
3677
3678 else
3679
3680 LINE=`grep "wxUSE_HELP" ${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_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3688
3689 fi
3690
3691
3692 eval "$ac_cv_use_help"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_HELP" = yes; then
3698 echo "$ac_t""yes" 1>&6
3699 else
3700 echo "$ac_t""no" 1>&6
3701 fi
3702
3703
3704 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3705 echo "configure:3706: checking "for --enable-constraints"" >&5
3706 no_cache=0
3707 # Check whether --enable-constraints or --disable-constraints was given.
3708 if test "${enable_constraints+set}" = set; then
3709 enableval="$enable_constraints"
3710
3711 if test "$enableval" = yes; then
3712 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3713 else
3714 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3715 fi
3716
3717 else
3718
3719 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
3726 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3727
3728 fi
3729
3730
3731 eval "$ac_cv_use_constraints"
3732 if test "$no_cache" != 1; then
3733 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3734 fi
3735
3736 if test "$wxUSE_CONSTRAINTS" = yes; then
3737 echo "$ac_t""yes" 1>&6
3738 else
3739 echo "$ac_t""no" 1>&6
3740 fi
3741
3742
3743 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3744 echo "configure:3745: checking "for --enable-printarch"" >&5
3745 no_cache=0
3746 # Check whether --enable-printarch or --disable-printarch was given.
3747 if test "${enable_printarch+set}" = set; then
3748 enableval="$enable_printarch"
3749
3750 if test "$enableval" = yes; then
3751 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3752 else
3753 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3754 fi
3755
3756 else
3757
3758 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3759 if test "x$LINE" != x ; then
3760 eval "DEFAULT_$LINE"
3761 else
3762 no_cache=1
3763 fi
3764
3765 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3766
3767 fi
3768
3769
3770 eval "$ac_cv_use_printarch"
3771 if test "$no_cache" != 1; then
3772 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3773 fi
3774
3775 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3776 echo "$ac_t""yes" 1>&6
3777 else
3778 echo "$ac_t""no" 1>&6
3779 fi
3780
3781
3782 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3783 echo "configure:3784: checking "for --enable-mdi"" >&5
3784 no_cache=0
3785 # Check whether --enable-mdi or --disable-mdi was given.
3786 if test "${enable_mdi+set}" = set; then
3787 enableval="$enable_mdi"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3791 else
3792 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3793 fi
3794
3795 else
3796
3797 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3805
3806 fi
3807
3808
3809 eval "$ac_cv_use_mdi"
3810 if test "$no_cache" != 1; then
3811 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3812 fi
3813
3814 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3815 echo "$ac_t""yes" 1>&6
3816 else
3817 echo "$ac_t""no" 1>&6
3818 fi
3819
3820
3821
3822 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3823 echo "configure:3824: checking "for --enable-postscript"" >&5
3824 no_cache=0
3825 # Check whether --enable-postscript or --disable-postscript was given.
3826 if test "${enable_postscript+set}" = set; then
3827 enableval="$enable_postscript"
3828
3829 if test "$enableval" = yes; then
3830 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3831 else
3832 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3833 fi
3834
3835 else
3836
3837 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3838 if test "x$LINE" != x ; then
3839 eval "DEFAULT_$LINE"
3840 else
3841 no_cache=1
3842 fi
3843
3844 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3845
3846 fi
3847
3848
3849 eval "$ac_cv_use_postscript"
3850 if test "$no_cache" != 1; then
3851 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3852 fi
3853
3854 if test "$wxUSE_POSTSCRIPT" = yes; then
3855 echo "$ac_t""yes" 1>&6
3856 else
3857 echo "$ac_t""no" 1>&6
3858 fi
3859
3860
3861
3862
3863 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3864 echo "configure:3865: checking "for --enable-prologio"" >&5
3865 no_cache=0
3866 # Check whether --enable-prologio or --disable-prologio was given.
3867 if test "${enable_prologio+set}" = set; then
3868 enableval="$enable_prologio"
3869
3870 if test "$enableval" = yes; then
3871 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3872 else
3873 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3874 fi
3875
3876 else
3877
3878 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3879 if test "x$LINE" != x ; then
3880 eval "DEFAULT_$LINE"
3881 else
3882 no_cache=1
3883 fi
3884
3885 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3886
3887 fi
3888
3889
3890 eval "$ac_cv_use_prologio"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_PROLOGIO" = yes; then
3896 echo "$ac_t""yes" 1>&6
3897 else
3898 echo "$ac_t""no" 1>&6
3899 fi
3900
3901
3902 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3903 echo "configure:3904: checking "for --enable-resources"" >&5
3904 no_cache=0
3905 # Check whether --enable-resources or --disable-resources was given.
3906 if test "${enable_resources+set}" = set; then
3907 enableval="$enable_resources"
3908
3909 if test "$enableval" = yes; then
3910 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3911 else
3912 ac_cv_use_resources='wxUSE_RESOURCES=no'
3913 fi
3914
3915 else
3916
3917 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3918 if test "x$LINE" != x ; then
3919 eval "DEFAULT_$LINE"
3920 else
3921 no_cache=1
3922 fi
3923
3924 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3925
3926 fi
3927
3928
3929 eval "$ac_cv_use_resources"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_RESOURCES" = yes; then
3935 echo "$ac_t""yes" 1>&6
3936 else
3937 echo "$ac_t""no" 1>&6
3938 fi
3939
3940
3941
3942 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
3943 echo "configure:3944: checking "for --enable-xresources"" >&5
3944 no_cache=0
3945 # Check whether --enable-xresources or --disable-xresources was given.
3946 if test "${enable_xresources+set}" = set; then
3947 enableval="$enable_xresources"
3948
3949 if test "$enableval" = yes; then
3950 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3951 else
3952 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3953 fi
3954
3955 else
3956
3957 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3958 if test "x$LINE" != x ; then
3959 eval "DEFAULT_$LINE"
3960 else
3961 no_cache=1
3962 fi
3963
3964 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3965
3966 fi
3967
3968
3969 eval "$ac_cv_use_xresources"
3970 if test "$no_cache" != 1; then
3971 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3972 fi
3973
3974 if test "$wxUSE_X_RESOURCES" = yes; then
3975 echo "$ac_t""yes" 1>&6
3976 else
3977 echo "$ac_t""no" 1>&6
3978 fi
3979
3980
3981
3982
3983 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
3984 echo "configure:3985: checking "for --enable-clipboard"" >&5
3985 no_cache=0
3986 # Check whether --enable-clipboard or --disable-clipboard was given.
3987 if test "${enable_clipboard+set}" = set; then
3988 enableval="$enable_clipboard"
3989
3990 if test "$enableval" = yes; then
3991 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3992 else
3993 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3994 fi
3995
3996 else
3997
3998 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3999 if test "x$LINE" != x ; then
4000 eval "DEFAULT_$LINE"
4001 else
4002 no_cache=1
4003 fi
4004
4005 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4006
4007 fi
4008
4009
4010 eval "$ac_cv_use_clipboard"
4011 if test "$no_cache" != 1; then
4012 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4013 fi
4014
4015 if test "$wxUSE_CLIPBOARD" = yes; then
4016 echo "$ac_t""yes" 1>&6
4017 else
4018 echo "$ac_t""no" 1>&6
4019 fi
4020
4021
4022 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
4023 echo "configure:4024: checking "for --enable-dnd"" >&5
4024 no_cache=0
4025 # Check whether --enable-dnd or --disable-dnd was given.
4026 if test "${enable_dnd+set}" = set; then
4027 enableval="$enable_dnd"
4028
4029 if test "$enableval" = yes; then
4030 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4031 else
4032 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4033 fi
4034
4035 else
4036
4037 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4038 if test "x$LINE" != x ; then
4039 eval "DEFAULT_$LINE"
4040 else
4041 no_cache=1
4042 fi
4043
4044 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4045
4046 fi
4047
4048
4049 eval "$ac_cv_use_dnd"
4050 if test "$no_cache" != 1; then
4051 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4052 fi
4053
4054 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4055 echo "$ac_t""yes" 1>&6
4056 else
4057 echo "$ac_t""no" 1>&6
4058 fi
4059
4060
4061 echo $ac_n "checking "for --enable-metafile"""... $ac_c" 1>&6
4062 echo "configure:4063: checking "for --enable-metafile"" >&5
4063 no_cache=0
4064 # Check whether --enable-metafile or --disable-metafile was given.
4065 if test "${enable_metafile+set}" = set; then
4066 enableval="$enable_metafile"
4067
4068 if test "$enableval" = yes; then
4069 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4070 else
4071 ac_cv_use_metafile='wxUSE_METAFILE=no'
4072 fi
4073
4074 else
4075
4076 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4077 if test "x$LINE" != x ; then
4078 eval "DEFAULT_$LINE"
4079 else
4080 no_cache=1
4081 fi
4082
4083 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4084
4085 fi
4086
4087
4088 eval "$ac_cv_use_metafile"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$wxUSE_METAFILE" = yes; then
4094 echo "$ac_t""yes" 1>&6
4095 else
4096 echo "$ac_t""no" 1>&6
4097 fi
4098
4099
4100
4101 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
4102 echo "configure:4103: checking "for --enable-wxtree"" >&5
4103 no_cache=0
4104 # Check whether --enable-wxtree or --disable-wxtree was given.
4105 if test "${enable_wxtree+set}" = set; then
4106 enableval="$enable_wxtree"
4107
4108 if test "$enableval" = yes; then
4109 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4110 else
4111 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4112 fi
4113
4114 else
4115
4116 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4117 if test "x$LINE" != x ; then
4118 eval "DEFAULT_$LINE"
4119 else
4120 no_cache=1
4121 fi
4122
4123 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4124
4125 fi
4126
4127
4128 eval "$ac_cv_use_wxtree"
4129 if test "$no_cache" != 1; then
4130 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4131 fi
4132
4133 if test "$wxUSE_WXTREE" = yes; then
4134 echo "$ac_t""yes" 1>&6
4135 else
4136 echo "$ac_t""no" 1>&6
4137 fi
4138
4139
4140
4141
4142 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
4143 echo "configure:4144: checking "for --enable-controls"" >&5
4144 no_cache=0
4145 # Check whether --enable-controls or --disable-controls was given.
4146 if test "${enable_controls+set}" = set; then
4147 enableval="$enable_controls"
4148
4149 if test "$enableval" = yes; then
4150 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4151 else
4152 ac_cv_use_controls='wxUSE_CONTROLS=no'
4153 fi
4154
4155 else
4156
4157 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4158 if test "x$LINE" != x ; then
4159 eval "DEFAULT_$LINE"
4160 else
4161 no_cache=1
4162 fi
4163
4164 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4165
4166 fi
4167
4168
4169 eval "$ac_cv_use_controls"
4170 if test "$no_cache" != 1; then
4171 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4172 fi
4173
4174 if test "$wxUSE_CONTROLS" = yes; then
4175 echo "$ac_t""yes" 1>&6
4176 else
4177 echo "$ac_t""no" 1>&6
4178 fi
4179
4180
4181 if test "$wxUSE_CONTROLS" = "yes"; then
4182 DEFAULT_wxUSE_ACCEL=yes
4183 DEFAULT_wxUSE_CARET=yes
4184 DEFAULT_wxUSE_COMBOBOX=yes
4185 DEFAULT_wxUSE_BMPBUTTON=yes
4186 DEFAULT_wxUSE_CHECKBOX=yes
4187 DEFAULT_wxUSE_CHECKLISTBOX=yes
4188 DEFAULT_wxUSE_CHOICE=yes
4189 DEFAULT_wxUSE_GAUGE=yes
4190 DEFAULT_wxUSE_GRID=yes
4191 DEFAULT_wxUSE_NEW_GRID=yes
4192 DEFAULT_wxUSE_IMAGLIST=yes
4193 DEFAULT_wxUSE_LISTBOX=yes
4194 DEFAULT_wxUSE_LISTCTRL=yes
4195 DEFAULT_wxUSE_NOTEBOOK=yes
4196 DEFAULT_wxUSE_RADIOBOX=yes
4197 DEFAULT_wxUSE_RADIOBTN=yes
4198 DEFAULT_wxUSE_SASH=yes
4199 DEFAULT_wxUSE_SCROLLBAR=yes
4200 DEFAULT_wxUSE_SLIDER=yes
4201 DEFAULT_wxUSE_SPINBTN=yes
4202 DEFAULT_wxUSE_SPINCTRL=yes
4203 DEFAULT_wxUSE_SPLITTER=yes
4204 DEFAULT_wxUSE_STATBMP=yes
4205 DEFAULT_wxUSE_STATBOX=yes
4206 DEFAULT_wxUSE_STATLINE=yes
4207 DEFAULT_wxUSE_STATUSBAR=yes
4208 DEFAULT_wxUSE_TAB_DIALOG=yes
4209 DEFAULT_wxUSE_TOOLBAR=yes
4210 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4211 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
4212 DEFAULT_wxUSE_TOOLTIPS=yes
4213 DEFAULT_wxUSE_TREECTRL=yes
4214 elif test "$wxUSE_CONTROLS" = "no"; then
4215 DEFAULT_wxUSE_ACCEL=no
4216 DEFAULT_wxUSE_CARET=no
4217 DEFAULT_wxUSE_COMBOBOX=no
4218 DEFAULT_wxUSE_BMPBUTTON=no
4219 DEFAULT_wxUSE_CHECKBOX=no
4220 DEFAULT_wxUSE_CHECKLISTBOX=no
4221 DEFAULT_wxUSE_CHOICE=no
4222 DEFAULT_wxUSE_GAUGE=no
4223 DEFAULT_wxUSE_GRID=no
4224 DEFAULT_wxUSE_NEW_GRID=no
4225 DEFAULT_wxUSE_IMAGLIST=no
4226 DEFAULT_wxUSE_LISTBOX=no
4227 DEFAULT_wxUSE_LISTCTRL=no
4228 DEFAULT_wxUSE_NOTEBOOK=no
4229 DEFAULT_wxUSE_RADIOBOX=no
4230 DEFAULT_wxUSE_RADIOBTN=no
4231 DEFAULT_wxUSE_SASH=no
4232 DEFAULT_wxUSE_SCROLLBAR=no
4233 DEFAULT_wxUSE_SLIDER=no
4234 DEFAULT_wxUSE_SPINBTN=no
4235 DEFAULT_wxUSE_SPINCTRL=no
4236 DEFAULT_wxUSE_SPLITTER=no
4237 DEFAULT_wxUSE_STATBMP=no
4238 DEFAULT_wxUSE_STATBOX=no
4239 DEFAULT_wxUSE_STATLINE=no
4240 DEFAULT_wxUSE_STATUSBAR=no
4241 DEFAULT_wxUSE_TAB_DIALOG=no
4242 DEFAULT_wxUSE_TOOLBAR=no
4243 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4244 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
4245 DEFAULT_wxUSE_TOOLTIPS=no
4246 DEFAULT_wxUSE_TREECTRL=no
4247 fi
4248
4249
4250 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
4251 echo "configure:4252: checking "for --enable-accel"" >&5
4252 no_cache=0
4253 # Check whether --enable-accel or --disable-accel was given.
4254 if test "${enable_accel+set}" = set; then
4255 enableval="$enable_accel"
4256
4257 if test "$enableval" = yes; then
4258 ac_cv_use_accel='wxUSE_ACCEL=yes'
4259 else
4260 ac_cv_use_accel='wxUSE_ACCEL=no'
4261 fi
4262
4263 else
4264
4265 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4266 if test "x$LINE" != x ; then
4267 eval "DEFAULT_$LINE"
4268 else
4269 no_cache=1
4270 fi
4271
4272 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4273
4274 fi
4275
4276
4277 eval "$ac_cv_use_accel"
4278 if test "$no_cache" != 1; then
4279 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4280 fi
4281
4282 if test "$wxUSE_ACCEL" = yes; then
4283 echo "$ac_t""yes" 1>&6
4284 else
4285 echo "$ac_t""no" 1>&6
4286 fi
4287
4288
4289 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
4290 echo "configure:4291: checking "for --enable-caret"" >&5
4291 no_cache=0
4292 # Check whether --enable-caret or --disable-caret was given.
4293 if test "${enable_caret+set}" = set; then
4294 enableval="$enable_caret"
4295
4296 if test "$enableval" = yes; then
4297 ac_cv_use_caret='wxUSE_CARET=yes'
4298 else
4299 ac_cv_use_caret='wxUSE_CARET=no'
4300 fi
4301
4302 else
4303
4304 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4305 if test "x$LINE" != x ; then
4306 eval "DEFAULT_$LINE"
4307 else
4308 no_cache=1
4309 fi
4310
4311 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4312
4313 fi
4314
4315
4316 eval "$ac_cv_use_caret"
4317 if test "$no_cache" != 1; then
4318 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4319 fi
4320
4321 if test "$wxUSE_CARET" = yes; then
4322 echo "$ac_t""yes" 1>&6
4323 else
4324 echo "$ac_t""no" 1>&6
4325 fi
4326
4327
4328 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
4329 echo "configure:4330: checking "for --enable-bmpbutton"" >&5
4330 no_cache=0
4331 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4332 if test "${enable_bmpbutton+set}" = set; then
4333 enableval="$enable_bmpbutton"
4334
4335 if test "$enableval" = yes; then
4336 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4337 else
4338 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4339 fi
4340
4341 else
4342
4343 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4344 if test "x$LINE" != x ; then
4345 eval "DEFAULT_$LINE"
4346 else
4347 no_cache=1
4348 fi
4349
4350 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4351
4352 fi
4353
4354
4355 eval "$ac_cv_use_bmpbutton"
4356 if test "$no_cache" != 1; then
4357 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4358 fi
4359
4360 if test "$wxUSE_BMPBUTTON" = yes; then
4361 echo "$ac_t""yes" 1>&6
4362 else
4363 echo "$ac_t""no" 1>&6
4364 fi
4365
4366
4367 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
4368 echo "configure:4369: checking "for --enable-checkbox"" >&5
4369 no_cache=0
4370 # Check whether --enable-checkbox or --disable-checkbox was given.
4371 if test "${enable_checkbox+set}" = set; then
4372 enableval="$enable_checkbox"
4373
4374 if test "$enableval" = yes; then
4375 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4376 else
4377 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4378 fi
4379
4380 else
4381
4382 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4383 if test "x$LINE" != x ; then
4384 eval "DEFAULT_$LINE"
4385 else
4386 no_cache=1
4387 fi
4388
4389 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4390
4391 fi
4392
4393
4394 eval "$ac_cv_use_checkbox"
4395 if test "$no_cache" != 1; then
4396 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4397 fi
4398
4399 if test "$wxUSE_CHECKBOX" = yes; then
4400 echo "$ac_t""yes" 1>&6
4401 else
4402 echo "$ac_t""no" 1>&6
4403 fi
4404
4405
4406 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
4407 echo "configure:4408: checking "for --enable-checklst"" >&5
4408 no_cache=0
4409 # Check whether --enable-checklst or --disable-checklst was given.
4410 if test "${enable_checklst+set}" = set; then
4411 enableval="$enable_checklst"
4412
4413 if test "$enableval" = yes; then
4414 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4415 else
4416 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4417 fi
4418
4419 else
4420
4421 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4422 if test "x$LINE" != x ; then
4423 eval "DEFAULT_$LINE"
4424 else
4425 no_cache=1
4426 fi
4427
4428 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4429
4430 fi
4431
4432
4433 eval "$ac_cv_use_checklst"
4434 if test "$no_cache" != 1; then
4435 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4436 fi
4437
4438 if test "$wxUSE_CHECKLST" = yes; then
4439 echo "$ac_t""yes" 1>&6
4440 else
4441 echo "$ac_t""no" 1>&6
4442 fi
4443
4444
4445 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4446 echo "configure:4447: checking "for --enable-choice"" >&5
4447 no_cache=0
4448 # Check whether --enable-choice or --disable-choice was given.
4449 if test "${enable_choice+set}" = set; then
4450 enableval="$enable_choice"
4451
4452 if test "$enableval" = yes; then
4453 ac_cv_use_choice='wxUSE_CHOICE=yes'
4454 else
4455 ac_cv_use_choice='wxUSE_CHOICE=no'
4456 fi
4457
4458 else
4459
4460 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4461 if test "x$LINE" != x ; then
4462 eval "DEFAULT_$LINE"
4463 else
4464 no_cache=1
4465 fi
4466
4467 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4468
4469 fi
4470
4471
4472 eval "$ac_cv_use_choice"
4473 if test "$no_cache" != 1; then
4474 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4475 fi
4476
4477 if test "$wxUSE_CHOICE" = yes; then
4478 echo "$ac_t""yes" 1>&6
4479 else
4480 echo "$ac_t""no" 1>&6
4481 fi
4482
4483
4484 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4485 echo "configure:4486: checking "for --enable-combobox"" >&5
4486 no_cache=0
4487 # Check whether --enable-combobox or --disable-combobox was given.
4488 if test "${enable_combobox+set}" = set; then
4489 enableval="$enable_combobox"
4490
4491 if test "$enableval" = yes; then
4492 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4493 else
4494 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4495 fi
4496
4497 else
4498
4499 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4500 if test "x$LINE" != x ; then
4501 eval "DEFAULT_$LINE"
4502 else
4503 no_cache=1
4504 fi
4505
4506 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4507
4508 fi
4509
4510
4511 eval "$ac_cv_use_combobox"
4512 if test "$no_cache" != 1; then
4513 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4514 fi
4515
4516 if test "$wxUSE_COMBOBOX" = yes; then
4517 echo "$ac_t""yes" 1>&6
4518 else
4519 echo "$ac_t""no" 1>&6
4520 fi
4521
4522
4523 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4524 echo "configure:4525: checking "for --enable-gauge"" >&5
4525 no_cache=0
4526 # Check whether --enable-gauge or --disable-gauge was given.
4527 if test "${enable_gauge+set}" = set; then
4528 enableval="$enable_gauge"
4529
4530 if test "$enableval" = yes; then
4531 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4532 else
4533 ac_cv_use_gauge='wxUSE_GAUGE=no'
4534 fi
4535
4536 else
4537
4538 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4539 if test "x$LINE" != x ; then
4540 eval "DEFAULT_$LINE"
4541 else
4542 no_cache=1
4543 fi
4544
4545 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4546
4547 fi
4548
4549
4550 eval "$ac_cv_use_gauge"
4551 if test "$no_cache" != 1; then
4552 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4553 fi
4554
4555 if test "$wxUSE_GAUGE" = yes; then
4556 echo "$ac_t""yes" 1>&6
4557 else
4558 echo "$ac_t""no" 1>&6
4559 fi
4560
4561
4562 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4563 echo "configure:4564: checking "for --enable-grid"" >&5
4564 no_cache=0
4565 # Check whether --enable-grid or --disable-grid was given.
4566 if test "${enable_grid+set}" = set; then
4567 enableval="$enable_grid"
4568
4569 if test "$enableval" = yes; then
4570 ac_cv_use_grid='wxUSE_GRID=yes'
4571 else
4572 ac_cv_use_grid='wxUSE_GRID=no'
4573 fi
4574
4575 else
4576
4577 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4578 if test "x$LINE" != x ; then
4579 eval "DEFAULT_$LINE"
4580 else
4581 no_cache=1
4582 fi
4583
4584 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4585
4586 fi
4587
4588
4589 eval "$ac_cv_use_grid"
4590 if test "$no_cache" != 1; then
4591 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4592 fi
4593
4594 if test "$wxUSE_GRID" = yes; then
4595 echo "$ac_t""yes" 1>&6
4596 else
4597 echo "$ac_t""no" 1>&6
4598 fi
4599
4600
4601 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
4602 echo "configure:4603: checking "for --enable-newgrid"" >&5
4603 no_cache=0
4604 # Check whether --enable-newgrid or --disable-newgrid was given.
4605 if test "${enable_newgrid+set}" = set; then
4606 enableval="$enable_newgrid"
4607
4608 if test "$enableval" = yes; then
4609 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4610 else
4611 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4612 fi
4613
4614 else
4615
4616 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4617 if test "x$LINE" != x ; then
4618 eval "DEFAULT_$LINE"
4619 else
4620 no_cache=1
4621 fi
4622
4623 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4624
4625 fi
4626
4627
4628 eval "$ac_cv_use_newgrid"
4629 if test "$no_cache" != 1; then
4630 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4631 fi
4632
4633 if test "$wxUSE_NEW_GRID" = yes; then
4634 echo "$ac_t""yes" 1>&6
4635 else
4636 echo "$ac_t""no" 1>&6
4637 fi
4638
4639
4640 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4641 echo "configure:4642: checking "for --enable-imaglist"" >&5
4642 no_cache=0
4643 # Check whether --enable-imaglist or --disable-imaglist was given.
4644 if test "${enable_imaglist+set}" = set; then
4645 enableval="$enable_imaglist"
4646
4647 if test "$enableval" = yes; then
4648 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4649 else
4650 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4651 fi
4652
4653 else
4654
4655 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4656 if test "x$LINE" != x ; then
4657 eval "DEFAULT_$LINE"
4658 else
4659 no_cache=1
4660 fi
4661
4662 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4663
4664 fi
4665
4666
4667 eval "$ac_cv_use_imaglist"
4668 if test "$no_cache" != 1; then
4669 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4670 fi
4671
4672 if test "$wxUSE_IMAGLIST" = yes; then
4673 echo "$ac_t""yes" 1>&6
4674 else
4675 echo "$ac_t""no" 1>&6
4676 fi
4677
4678
4679 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4680 echo "configure:4681: checking "for --enable-listbox"" >&5
4681 no_cache=0
4682 # Check whether --enable-listbox or --disable-listbox was given.
4683 if test "${enable_listbox+set}" = set; then
4684 enableval="$enable_listbox"
4685
4686 if test "$enableval" = yes; then
4687 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4688 else
4689 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4690 fi
4691
4692 else
4693
4694 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4695 if test "x$LINE" != x ; then
4696 eval "DEFAULT_$LINE"
4697 else
4698 no_cache=1
4699 fi
4700
4701 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4702
4703 fi
4704
4705
4706 eval "$ac_cv_use_listbox"
4707 if test "$no_cache" != 1; then
4708 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4709 fi
4710
4711 if test "$wxUSE_LISTBOX" = yes; then
4712 echo "$ac_t""yes" 1>&6
4713 else
4714 echo "$ac_t""no" 1>&6
4715 fi
4716
4717
4718 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4719 echo "configure:4720: checking "for --enable-listctrl"" >&5
4720 no_cache=0
4721 # Check whether --enable-listctrl or --disable-listctrl was given.
4722 if test "${enable_listctrl+set}" = set; then
4723 enableval="$enable_listctrl"
4724
4725 if test "$enableval" = yes; then
4726 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4727 else
4728 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4729 fi
4730
4731 else
4732
4733 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4734 if test "x$LINE" != x ; then
4735 eval "DEFAULT_$LINE"
4736 else
4737 no_cache=1
4738 fi
4739
4740 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4741
4742 fi
4743
4744
4745 eval "$ac_cv_use_listctrl"
4746 if test "$no_cache" != 1; then
4747 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4748 fi
4749
4750 if test "$wxUSE_LISTCTRL" = yes; then
4751 echo "$ac_t""yes" 1>&6
4752 else
4753 echo "$ac_t""no" 1>&6
4754 fi
4755
4756
4757 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4758 echo "configure:4759: checking "for --enable-notebook"" >&5
4759 no_cache=0
4760 # Check whether --enable-notebook or --disable-notebook was given.
4761 if test "${enable_notebook+set}" = set; then
4762 enableval="$enable_notebook"
4763
4764 if test "$enableval" = yes; then
4765 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4766 else
4767 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4768 fi
4769
4770 else
4771
4772 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4773 if test "x$LINE" != x ; then
4774 eval "DEFAULT_$LINE"
4775 else
4776 no_cache=1
4777 fi
4778
4779 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4780
4781 fi
4782
4783
4784 eval "$ac_cv_use_notebook"
4785 if test "$no_cache" != 1; then
4786 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4787 fi
4788
4789 if test "$wxUSE_NOTEBOOK" = yes; then
4790 echo "$ac_t""yes" 1>&6
4791 else
4792 echo "$ac_t""no" 1>&6
4793 fi
4794
4795
4796 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4797 echo "configure:4798: checking "for --enable-radiobox"" >&5
4798 no_cache=0
4799 # Check whether --enable-radiobox or --disable-radiobox was given.
4800 if test "${enable_radiobox+set}" = set; then
4801 enableval="$enable_radiobox"
4802
4803 if test "$enableval" = yes; then
4804 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4805 else
4806 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4807 fi
4808
4809 else
4810
4811 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4812 if test "x$LINE" != x ; then
4813 eval "DEFAULT_$LINE"
4814 else
4815 no_cache=1
4816 fi
4817
4818 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4819
4820 fi
4821
4822
4823 eval "$ac_cv_use_radiobox"
4824 if test "$no_cache" != 1; then
4825 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4826 fi
4827
4828 if test "$wxUSE_RADIOBOX" = yes; then
4829 echo "$ac_t""yes" 1>&6
4830 else
4831 echo "$ac_t""no" 1>&6
4832 fi
4833
4834
4835 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4836 echo "configure:4837: checking "for --enable-radiobtn"" >&5
4837 no_cache=0
4838 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4839 if test "${enable_radiobtn+set}" = set; then
4840 enableval="$enable_radiobtn"
4841
4842 if test "$enableval" = yes; then
4843 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4844 else
4845 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4846 fi
4847
4848 else
4849
4850 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4851 if test "x$LINE" != x ; then
4852 eval "DEFAULT_$LINE"
4853 else
4854 no_cache=1
4855 fi
4856
4857 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4858
4859 fi
4860
4861
4862 eval "$ac_cv_use_radiobtn"
4863 if test "$no_cache" != 1; then
4864 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4865 fi
4866
4867 if test "$wxUSE_RADIOBTN" = yes; then
4868 echo "$ac_t""yes" 1>&6
4869 else
4870 echo "$ac_t""no" 1>&6
4871 fi
4872
4873
4874 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4875 echo "configure:4876: checking "for --enable-sash"" >&5
4876 no_cache=0
4877 # Check whether --enable-sash or --disable-sash was given.
4878 if test "${enable_sash+set}" = set; then
4879 enableval="$enable_sash"
4880
4881 if test "$enableval" = yes; then
4882 ac_cv_use_sash='wxUSE_SASH=yes'
4883 else
4884 ac_cv_use_sash='wxUSE_SASH=no'
4885 fi
4886
4887 else
4888
4889 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4890 if test "x$LINE" != x ; then
4891 eval "DEFAULT_$LINE"
4892 else
4893 no_cache=1
4894 fi
4895
4896 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4897
4898 fi
4899
4900
4901 eval "$ac_cv_use_sash"
4902 if test "$no_cache" != 1; then
4903 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4904 fi
4905
4906 if test "$wxUSE_SASH" = yes; then
4907 echo "$ac_t""yes" 1>&6
4908 else
4909 echo "$ac_t""no" 1>&6
4910 fi
4911
4912
4913 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4914 echo "configure:4915: checking "for --enable-scrollbar"" >&5
4915 no_cache=0
4916 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4917 if test "${enable_scrollbar+set}" = set; then
4918 enableval="$enable_scrollbar"
4919
4920 if test "$enableval" = yes; then
4921 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4922 else
4923 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4924 fi
4925
4926 else
4927
4928 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4929 if test "x$LINE" != x ; then
4930 eval "DEFAULT_$LINE"
4931 else
4932 no_cache=1
4933 fi
4934
4935 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4936
4937 fi
4938
4939
4940 eval "$ac_cv_use_scrollbar"
4941 if test "$no_cache" != 1; then
4942 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4943 fi
4944
4945 if test "$wxUSE_SCROLLBAR" = yes; then
4946 echo "$ac_t""yes" 1>&6
4947 else
4948 echo "$ac_t""no" 1>&6
4949 fi
4950
4951
4952 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
4953 echo "configure:4954: checking "for --enable-slider"" >&5
4954 no_cache=0
4955 # Check whether --enable-slider or --disable-slider was given.
4956 if test "${enable_slider+set}" = set; then
4957 enableval="$enable_slider"
4958
4959 if test "$enableval" = yes; then
4960 ac_cv_use_slider='wxUSE_SLIDER=yes'
4961 else
4962 ac_cv_use_slider='wxUSE_SLIDER=no'
4963 fi
4964
4965 else
4966
4967 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4968 if test "x$LINE" != x ; then
4969 eval "DEFAULT_$LINE"
4970 else
4971 no_cache=1
4972 fi
4973
4974 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4975
4976 fi
4977
4978
4979 eval "$ac_cv_use_slider"
4980 if test "$no_cache" != 1; then
4981 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4982 fi
4983
4984 if test "$wxUSE_SLIDER" = yes; then
4985 echo "$ac_t""yes" 1>&6
4986 else
4987 echo "$ac_t""no" 1>&6
4988 fi
4989
4990
4991 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
4992 echo "configure:4993: checking "for --enable-spinbtn"" >&5
4993 no_cache=0
4994 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4995 if test "${enable_spinbtn+set}" = set; then
4996 enableval="$enable_spinbtn"
4997
4998 if test "$enableval" = yes; then
4999 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5000 else
5001 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5002 fi
5003
5004 else
5005
5006 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5007 if test "x$LINE" != x ; then
5008 eval "DEFAULT_$LINE"
5009 else
5010 no_cache=1
5011 fi
5012
5013 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5014
5015 fi
5016
5017
5018 eval "$ac_cv_use_spinbtn"
5019 if test "$no_cache" != 1; then
5020 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5021 fi
5022
5023 if test "$wxUSE_SPINBTN" = yes; then
5024 echo "$ac_t""yes" 1>&6
5025 else
5026 echo "$ac_t""no" 1>&6
5027 fi
5028
5029
5030 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
5031 echo "configure:5032: checking "for --enable-spinctrl"" >&5
5032 no_cache=0
5033 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5034 if test "${enable_spinctrl+set}" = set; then
5035 enableval="$enable_spinctrl"
5036
5037 if test "$enableval" = yes; then
5038 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5039 else
5040 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5041 fi
5042
5043 else
5044
5045 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5046 if test "x$LINE" != x ; then
5047 eval "DEFAULT_$LINE"
5048 else
5049 no_cache=1
5050 fi
5051
5052 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
5053
5054 fi
5055
5056
5057 eval "$ac_cv_use_spinctrl"
5058 if test "$no_cache" != 1; then
5059 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5060 fi
5061
5062 if test "$wxUSE_SPINCTRL" = yes; then
5063 echo "$ac_t""yes" 1>&6
5064 else
5065 echo "$ac_t""no" 1>&6
5066 fi
5067
5068
5069 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
5070 echo "configure:5071: checking "for --enable-splitter"" >&5
5071 no_cache=0
5072 # Check whether --enable-splitter or --disable-splitter was given.
5073 if test "${enable_splitter+set}" = set; then
5074 enableval="$enable_splitter"
5075
5076 if test "$enableval" = yes; then
5077 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5078 else
5079 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5080 fi
5081
5082 else
5083
5084 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5085 if test "x$LINE" != x ; then
5086 eval "DEFAULT_$LINE"
5087 else
5088 no_cache=1
5089 fi
5090
5091 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5092
5093 fi
5094
5095
5096 eval "$ac_cv_use_splitter"
5097 if test "$no_cache" != 1; then
5098 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5099 fi
5100
5101 if test "$wxUSE_SPLITTER" = yes; then
5102 echo "$ac_t""yes" 1>&6
5103 else
5104 echo "$ac_t""no" 1>&6
5105 fi
5106
5107
5108 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
5109 echo "configure:5110: checking "for --enable-statbmp"" >&5
5110 no_cache=0
5111 # Check whether --enable-statbmp or --disable-statbmp was given.
5112 if test "${enable_statbmp+set}" = set; then
5113 enableval="$enable_statbmp"
5114
5115 if test "$enableval" = yes; then
5116 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5117 else
5118 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5119 fi
5120
5121 else
5122
5123 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5124 if test "x$LINE" != x ; then
5125 eval "DEFAULT_$LINE"
5126 else
5127 no_cache=1
5128 fi
5129
5130 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5131
5132 fi
5133
5134
5135 eval "$ac_cv_use_statbmp"
5136 if test "$no_cache" != 1; then
5137 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5138 fi
5139
5140 if test "$wxUSE_STATBMP" = yes; then
5141 echo "$ac_t""yes" 1>&6
5142 else
5143 echo "$ac_t""no" 1>&6
5144 fi
5145
5146
5147 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
5148 echo "configure:5149: checking "for --enable-statbox"" >&5
5149 no_cache=0
5150 # Check whether --enable-statbox or --disable-statbox was given.
5151 if test "${enable_statbox+set}" = set; then
5152 enableval="$enable_statbox"
5153
5154 if test "$enableval" = yes; then
5155 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5156 else
5157 ac_cv_use_statbox='wxUSE_STATBOX=no'
5158 fi
5159
5160 else
5161
5162 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5163 if test "x$LINE" != x ; then
5164 eval "DEFAULT_$LINE"
5165 else
5166 no_cache=1
5167 fi
5168
5169 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5170
5171 fi
5172
5173
5174 eval "$ac_cv_use_statbox"
5175 if test "$no_cache" != 1; then
5176 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5177 fi
5178
5179 if test "$wxUSE_STATBOX" = yes; then
5180 echo "$ac_t""yes" 1>&6
5181 else
5182 echo "$ac_t""no" 1>&6
5183 fi
5184
5185
5186 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
5187 echo "configure:5188: checking "for --enable-statline"" >&5
5188 no_cache=0
5189 # Check whether --enable-statline or --disable-statline was given.
5190 if test "${enable_statline+set}" = set; then
5191 enableval="$enable_statline"
5192
5193 if test "$enableval" = yes; then
5194 ac_cv_use_statline='wxUSE_STATLINE=yes'
5195 else
5196 ac_cv_use_statline='wxUSE_STATLINE=no'
5197 fi
5198
5199 else
5200
5201 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5202 if test "x$LINE" != x ; then
5203 eval "DEFAULT_$LINE"
5204 else
5205 no_cache=1
5206 fi
5207
5208 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5209
5210 fi
5211
5212
5213 eval "$ac_cv_use_statline"
5214 if test "$no_cache" != 1; then
5215 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5216 fi
5217
5218 if test "$wxUSE_STATLINE" = yes; then
5219 echo "$ac_t""yes" 1>&6
5220 else
5221 echo "$ac_t""no" 1>&6
5222 fi
5223
5224
5225 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
5226 echo "configure:5227: checking "for --enable-statusbar"" >&5
5227 no_cache=0
5228 # Check whether --enable-statusbar or --disable-statusbar was given.
5229 if test "${enable_statusbar+set}" = set; then
5230 enableval="$enable_statusbar"
5231
5232 if test "$enableval" = yes; then
5233 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5234 else
5235 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5236 fi
5237
5238 else
5239
5240 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5241 if test "x$LINE" != x ; then
5242 eval "DEFAULT_$LINE"
5243 else
5244 no_cache=1
5245 fi
5246
5247 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5248
5249 fi
5250
5251
5252 eval "$ac_cv_use_statusbar"
5253 if test "$no_cache" != 1; then
5254 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5255 fi
5256
5257 if test "$wxUSE_STATUSBAR" = yes; then
5258 echo "$ac_t""yes" 1>&6
5259 else
5260 echo "$ac_t""no" 1>&6
5261 fi
5262
5263
5264 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
5265 echo "configure:5266: checking "for --enable-tabdialog"" >&5
5266 no_cache=0
5267 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5268 if test "${enable_tabdialog+set}" = set; then
5269 enableval="$enable_tabdialog"
5270
5271 if test "$enableval" = yes; then
5272 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5273 else
5274 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5275 fi
5276
5277 else
5278
5279 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5280 if test "x$LINE" != x ; then
5281 eval "DEFAULT_$LINE"
5282 else
5283 no_cache=1
5284 fi
5285
5286 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5287
5288 fi
5289
5290
5291 eval "$ac_cv_use_tabdialog"
5292 if test "$no_cache" != 1; then
5293 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5294 fi
5295
5296 if test "$wxUSE_TABDIALOG" = yes; then
5297 echo "$ac_t""yes" 1>&6
5298 else
5299 echo "$ac_t""no" 1>&6
5300 fi
5301
5302
5303 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
5304 echo "configure:5305: checking "for --enable-toolbar"" >&5
5305 no_cache=0
5306 # Check whether --enable-toolbar or --disable-toolbar was given.
5307 if test "${enable_toolbar+set}" = set; then
5308 enableval="$enable_toolbar"
5309
5310 if test "$enableval" = yes; then
5311 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5312 else
5313 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5314 fi
5315
5316 else
5317
5318 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5319 if test "x$LINE" != x ; then
5320 eval "DEFAULT_$LINE"
5321 else
5322 no_cache=1
5323 fi
5324
5325 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5326
5327 fi
5328
5329
5330 eval "$ac_cv_use_toolbar"
5331 if test "$no_cache" != 1; then
5332 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5333 fi
5334
5335 if test "$wxUSE_TOOLBAR" = yes; then
5336 echo "$ac_t""yes" 1>&6
5337 else
5338 echo "$ac_t""no" 1>&6
5339 fi
5340
5341
5342 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
5343 echo "configure:5344: checking "for --enable-tbarnative"" >&5
5344 no_cache=0
5345 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5346 if test "${enable_tbarnative+set}" = set; then
5347 enableval="$enable_tbarnative"
5348
5349 if test "$enableval" = yes; then
5350 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5351 else
5352 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5353 fi
5354
5355 else
5356
5357 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5358 if test "x$LINE" != x ; then
5359 eval "DEFAULT_$LINE"
5360 else
5361 no_cache=1
5362 fi
5363
5364 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5365
5366 fi
5367
5368
5369 eval "$ac_cv_use_tbarnative"
5370 if test "$no_cache" != 1; then
5371 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5372 fi
5373
5374 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5375 echo "$ac_t""yes" 1>&6
5376 else
5377 echo "$ac_t""no" 1>&6
5378 fi
5379
5380
5381 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
5382 echo "configure:5383: checking "for --enable-tbarsmpl"" >&5
5383 no_cache=0
5384 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5385 if test "${enable_tbarsmpl+set}" = set; then
5386 enableval="$enable_tbarsmpl"
5387
5388 if test "$enableval" = yes; then
5389 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5390 else
5391 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5392 fi
5393
5394 else
5395
5396 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5397 if test "x$LINE" != x ; then
5398 eval "DEFAULT_$LINE"
5399 else
5400 no_cache=1
5401 fi
5402
5403 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5404
5405 fi
5406
5407
5408 eval "$ac_cv_use_tbarsmpl"
5409 if test "$no_cache" != 1; then
5410 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5411 fi
5412
5413 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5414 echo "$ac_t""yes" 1>&6
5415 else
5416 echo "$ac_t""no" 1>&6
5417 fi
5418
5419
5420 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
5421 echo "configure:5422: checking "for --enable-treectrl"" >&5
5422 no_cache=0
5423 # Check whether --enable-treectrl or --disable-treectrl was given.
5424 if test "${enable_treectrl+set}" = set; then
5425 enableval="$enable_treectrl"
5426
5427 if test "$enableval" = yes; then
5428 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5429 else
5430 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5431 fi
5432
5433 else
5434
5435 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5436 if test "x$LINE" != x ; then
5437 eval "DEFAULT_$LINE"
5438 else
5439 no_cache=1
5440 fi
5441
5442 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5443
5444 fi
5445
5446
5447 eval "$ac_cv_use_treectrl"
5448 if test "$no_cache" != 1; then
5449 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5450 fi
5451
5452 if test "$wxUSE_TREECTRL" = yes; then
5453 echo "$ac_t""yes" 1>&6
5454 else
5455 echo "$ac_t""no" 1>&6
5456 fi
5457
5458
5459
5460
5461 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
5462 echo "configure:5463: checking "for --enable-commondlg"" >&5
5463 no_cache=0
5464 # Check whether --enable-commondlg or --disable-commondlg was given.
5465 if test "${enable_commondlg+set}" = set; then
5466 enableval="$enable_commondlg"
5467
5468 if test "$enableval" = yes; then
5469 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5470 else
5471 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5472 fi
5473
5474 else
5475
5476 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5477 if test "x$LINE" != x ; then
5478 eval "DEFAULT_$LINE"
5479 else
5480 no_cache=1
5481 fi
5482
5483 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5484
5485 fi
5486
5487
5488 eval "$ac_cv_use_commondlg"
5489 if test "$no_cache" != 1; then
5490 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5491 fi
5492
5493 if test "$wxUSE_COMMONDLGS" = yes; then
5494 echo "$ac_t""yes" 1>&6
5495 else
5496 echo "$ac_t""no" 1>&6
5497 fi
5498
5499
5500 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
5501 echo "configure:5502: checking "for --enable-dirdlg"" >&5
5502 no_cache=0
5503 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5504 if test "${enable_dirdlg+set}" = set; then
5505 enableval="$enable_dirdlg"
5506
5507 if test "$enableval" = yes; then
5508 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5509 else
5510 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5511 fi
5512
5513 else
5514
5515 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5516 if test "x$LINE" != x ; then
5517 eval "DEFAULT_$LINE"
5518 else
5519 no_cache=1
5520 fi
5521
5522 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5523
5524 fi
5525
5526
5527 eval "$ac_cv_use_dirdlg"
5528 if test "$no_cache" != 1; then
5529 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5530 fi
5531
5532 if test "$wxUSE_DIRDLG" = yes; then
5533 echo "$ac_t""yes" 1>&6
5534 else
5535 echo "$ac_t""no" 1>&6
5536 fi
5537
5538
5539 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
5540 echo "configure:5541: checking "for --enable-textdlg"" >&5
5541 no_cache=0
5542 # Check whether --enable-textdlg or --disable-textdlg was given.
5543 if test "${enable_textdlg+set}" = set; then
5544 enableval="$enable_textdlg"
5545
5546 if test "$enableval" = yes; then
5547 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5548 else
5549 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5550 fi
5551
5552 else
5553
5554 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5555 if test "x$LINE" != x ; then
5556 eval "DEFAULT_$LINE"
5557 else
5558 no_cache=1
5559 fi
5560
5561 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5562
5563 fi
5564
5565
5566 eval "$ac_cv_use_textdlg"
5567 if test "$no_cache" != 1; then
5568 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5569 fi
5570
5571 if test "$wxUSE_TEXTDLG" = yes; then
5572 echo "$ac_t""yes" 1>&6
5573 else
5574 echo "$ac_t""no" 1>&6
5575 fi
5576
5577
5578 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
5579 echo "configure:5580: checking "for --enable-tipdlg"" >&5
5580 no_cache=0
5581 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5582 if test "${enable_tipdlg+set}" = set; then
5583 enableval="$enable_tipdlg"
5584
5585 if test "$enableval" = yes; then
5586 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5587 else
5588 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5589 fi
5590
5591 else
5592
5593 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5594 if test "x$LINE" != x ; then
5595 eval "DEFAULT_$LINE"
5596 else
5597 no_cache=1
5598 fi
5599
5600 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5601
5602 fi
5603
5604
5605 eval "$ac_cv_use_tipdlg"
5606 if test "$no_cache" != 1; then
5607 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5608 fi
5609
5610 if test "$wxUSE_STARTUP_TIPS" = yes; then
5611 echo "$ac_t""yes" 1>&6
5612 else
5613 echo "$ac_t""no" 1>&6
5614 fi
5615
5616
5617 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
5618 echo "configure:5619: checking "for --enable-progressdlg"" >&5
5619 no_cache=0
5620 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5621 if test "${enable_progressdlg+set}" = set; then
5622 enableval="$enable_progressdlg"
5623
5624 if test "$enableval" = yes; then
5625 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5626 else
5627 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5628 fi
5629
5630 else
5631
5632 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5633 if test "x$LINE" != x ; then
5634 eval "DEFAULT_$LINE"
5635 else
5636 no_cache=1
5637 fi
5638
5639 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5640
5641 fi
5642
5643
5644 eval "$ac_cv_use_progressdlg"
5645 if test "$no_cache" != 1; then
5646 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5647 fi
5648
5649 if test "$wxUSE_PROGRESSDLG" = yes; then
5650 echo "$ac_t""yes" 1>&6
5651 else
5652 echo "$ac_t""no" 1>&6
5653 fi
5654
5655
5656 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
5657 echo "configure:5658: checking "for --enable-miniframe"" >&5
5658 no_cache=0
5659 # Check whether --enable-miniframe or --disable-miniframe was given.
5660 if test "${enable_miniframe+set}" = set; then
5661 enableval="$enable_miniframe"
5662
5663 if test "$enableval" = yes; then
5664 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5665 else
5666 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5667 fi
5668
5669 else
5670
5671 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5672 if test "x$LINE" != x ; then
5673 eval "DEFAULT_$LINE"
5674 else
5675 no_cache=1
5676 fi
5677
5678 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5679
5680 fi
5681
5682
5683 eval "$ac_cv_use_miniframe"
5684 if test "$no_cache" != 1; then
5685 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5686 fi
5687
5688 if test "$wxUSE_MINIFRAME" = yes; then
5689 echo "$ac_t""yes" 1>&6
5690 else
5691 echo "$ac_t""no" 1>&6
5692 fi
5693
5694
5695 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
5696 echo "configure:5697: checking "for --enable-html"" >&5
5697 no_cache=0
5698 # Check whether --enable-html or --disable-html was given.
5699 if test "${enable_html+set}" = set; then
5700 enableval="$enable_html"
5701
5702 if test "$enableval" = yes; then
5703 ac_cv_use_html='wxUSE_HTML=yes'
5704 else
5705 ac_cv_use_html='wxUSE_HTML=no'
5706 fi
5707
5708 else
5709
5710 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5711 if test "x$LINE" != x ; then
5712 eval "DEFAULT_$LINE"
5713 else
5714 no_cache=1
5715 fi
5716
5717 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5718
5719 fi
5720
5721
5722 eval "$ac_cv_use_html"
5723 if test "$no_cache" != 1; then
5724 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5725 fi
5726
5727 if test "$wxUSE_HTML" = yes; then
5728 echo "$ac_t""yes" 1>&6
5729 else
5730 echo "$ac_t""no" 1>&6
5731 fi
5732
5733
5734 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
5735 echo "configure:5736: checking "for --enable-tooltips"" >&5
5736 no_cache=0
5737 # Check whether --enable-tooltips or --disable-tooltips was given.
5738 if test "${enable_tooltips+set}" = set; then
5739 enableval="$enable_tooltips"
5740
5741 if test "$enableval" = yes; then
5742 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5743 else
5744 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5745 fi
5746
5747 else
5748
5749 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5750 if test "x$LINE" != x ; then
5751 eval "DEFAULT_$LINE"
5752 else
5753 no_cache=1
5754 fi
5755
5756 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5757
5758 fi
5759
5760
5761 eval "$ac_cv_use_tooltips"
5762 if test "$no_cache" != 1; then
5763 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5764 fi
5765
5766 if test "$wxUSE_TOOLTIPS" = yes; then
5767 echo "$ac_t""yes" 1>&6
5768 else
5769 echo "$ac_t""no" 1>&6
5770 fi
5771
5772
5773 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
5774 echo "configure:5775: checking "for --enable-splines"" >&5
5775 no_cache=0
5776 # Check whether --enable-splines or --disable-splines was given.
5777 if test "${enable_splines+set}" = set; then
5778 enableval="$enable_splines"
5779
5780 if test "$enableval" = yes; then
5781 ac_cv_use_splines='wxUSE_SPLINES=yes'
5782 else
5783 ac_cv_use_splines='wxUSE_SPLINES=no'
5784 fi
5785
5786 else
5787
5788 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5789 if test "x$LINE" != x ; then
5790 eval "DEFAULT_$LINE"
5791 else
5792 no_cache=1
5793 fi
5794
5795 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5796
5797 fi
5798
5799
5800 eval "$ac_cv_use_splines"
5801 if test "$no_cache" != 1; then
5802 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5803 fi
5804
5805 if test "$wxUSE_SPLINES" = yes; then
5806 echo "$ac_t""yes" 1>&6
5807 else
5808 echo "$ac_t""no" 1>&6
5809 fi
5810
5811
5812 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
5813 echo "configure:5814: checking "for --enable-validators"" >&5
5814 no_cache=0
5815 # Check whether --enable-validators or --disable-validators was given.
5816 if test "${enable_validators+set}" = set; then
5817 enableval="$enable_validators"
5818
5819 if test "$enableval" = yes; then
5820 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5821 else
5822 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5823 fi
5824
5825 else
5826
5827 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5828 if test "x$LINE" != x ; then
5829 eval "DEFAULT_$LINE"
5830 else
5831 no_cache=1
5832 fi
5833
5834 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5835
5836 fi
5837
5838
5839 eval "$ac_cv_use_validators"
5840 if test "$no_cache" != 1; then
5841 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5842 fi
5843
5844 if test "$wxUSE_VALIDATORS" = yes; then
5845 echo "$ac_t""yes" 1>&6
5846 else
5847 echo "$ac_t""no" 1>&6
5848 fi
5849
5850
5851 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
5852 echo "configure:5853: checking "for --enable-busyinfo"" >&5
5853 no_cache=0
5854 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5855 if test "${enable_busyinfo+set}" = set; then
5856 enableval="$enable_busyinfo"
5857
5858 if test "$enableval" = yes; then
5859 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5860 else
5861 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5862 fi
5863
5864 else
5865
5866 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5867 if test "x$LINE" != x ; then
5868 eval "DEFAULT_$LINE"
5869 else
5870 no_cache=1
5871 fi
5872
5873 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5874
5875 fi
5876
5877
5878 eval "$ac_cv_use_busyinfo"
5879 if test "$no_cache" != 1; then
5880 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5881 fi
5882
5883 if test "$wxUSE_BUSYINFO" = yes; then
5884 echo "$ac_t""yes" 1>&6
5885 else
5886 echo "$ac_t""no" 1>&6
5887 fi
5888
5889
5890 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
5891 echo "configure:5892: checking "for --enable-joystick"" >&5
5892 no_cache=0
5893 # Check whether --enable-joystick or --disable-joystick was given.
5894 if test "${enable_joystick+set}" = set; then
5895 enableval="$enable_joystick"
5896
5897 if test "$enableval" = yes; then
5898 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
5899 else
5900 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
5901 fi
5902
5903 else
5904
5905 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
5906 if test "x$LINE" != x ; then
5907 eval "DEFAULT_$LINE"
5908 else
5909 no_cache=1
5910 fi
5911
5912 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
5913
5914 fi
5915
5916
5917 eval "$ac_cv_use_joystick"
5918 if test "$no_cache" != 1; then
5919 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
5920 fi
5921
5922 if test "$wxUSE_JOYSTICK" = yes; then
5923 echo "$ac_t""yes" 1>&6
5924 else
5925 echo "$ac_t""no" 1>&6
5926 fi
5927
5928
5929
5930
5931 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
5932 echo "configure:5933: checking "for --enable-gif"" >&5
5933 no_cache=0
5934 # Check whether --enable-gif or --disable-gif was given.
5935 if test "${enable_gif+set}" = set; then
5936 enableval="$enable_gif"
5937
5938 if test "$enableval" = yes; then
5939 ac_cv_use_gif='wxUSE_GIF=yes'
5940 else
5941 ac_cv_use_gif='wxUSE_GIF=no'
5942 fi
5943
5944 else
5945
5946 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5947 if test "x$LINE" != x ; then
5948 eval "DEFAULT_$LINE"
5949 else
5950 no_cache=1
5951 fi
5952
5953 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5954
5955 fi
5956
5957
5958 eval "$ac_cv_use_gif"
5959 if test "$no_cache" != 1; then
5960 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5961 fi
5962
5963 if test "$wxUSE_GIF" = yes; then
5964 echo "$ac_t""yes" 1>&6
5965 else
5966 echo "$ac_t""no" 1>&6
5967 fi
5968
5969
5970 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
5971 echo "configure:5972: checking "for --enable-pcx"" >&5
5972 no_cache=0
5973 # Check whether --enable-pcx or --disable-pcx was given.
5974 if test "${enable_pcx+set}" = set; then
5975 enableval="$enable_pcx"
5976
5977 if test "$enableval" = yes; then
5978 ac_cv_use_pcx='wxUSE_PCX=yes'
5979 else
5980 ac_cv_use_pcx='wxUSE_PCX=no'
5981 fi
5982
5983 else
5984
5985 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5986 if test "x$LINE" != x ; then
5987 eval "DEFAULT_$LINE"
5988 else
5989 no_cache=1
5990 fi
5991
5992 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5993
5994 fi
5995
5996
5997 eval "$ac_cv_use_pcx"
5998 if test "$no_cache" != 1; then
5999 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
6000 fi
6001
6002 if test "$wxUSE_PCX" = yes; then
6003 echo "$ac_t""yes" 1>&6
6004 else
6005 echo "$ac_t""no" 1>&6
6006 fi
6007
6008
6009 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
6010 echo "configure:6011: checking "for --enable-pnm"" >&5
6011 no_cache=0
6012 # Check whether --enable-pnm or --disable-pnm was given.
6013 if test "${enable_pnm+set}" = set; then
6014 enableval="$enable_pnm"
6015
6016 if test "$enableval" = yes; then
6017 ac_cv_use_pnm='wxUSE_PNM=yes'
6018 else
6019 ac_cv_use_pnm='wxUSE_PNM=no'
6020 fi
6021
6022 else
6023
6024 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
6032
6033 fi
6034
6035
6036 eval "$ac_cv_use_pnm"
6037 if test "$no_cache" != 1; then
6038 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
6039 fi
6040
6041 if test "$wxUSE_PNM" = yes; then
6042 echo "$ac_t""yes" 1>&6
6043 else
6044 echo "$ac_t""no" 1>&6
6045 fi
6046
6047
6048 fi
6049
6050
6051 echo "saving argument cache $wx_arg_cache_file"
6052 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
6053
6054
6055
6056 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
6057 echo "configure:6058: checking for toolkit" >&5
6058
6059 if test "$wxUSE_GUI" = "yes"; then
6060
6061 if test "$USE_BEOS" = 1; then
6062 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
6063 fi
6064
6065 if test "$TOOLKIT_GIVEN" = 1; then
6066 for toolkit in `echo $ALL_TOOLKITS`; do
6067 var=wxUSE_$toolkit
6068 eval "value=\$${var}"
6069 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
6070 done
6071 else
6072 for toolkit in `echo $ALL_TOOLKITS`; do
6073 if test "$has_toolkit_in_cache" != 1; then
6074 var=DEFAULT_DEFAULT_wxUSE_$toolkit
6075 else
6076 var=DEFAULT_wxUSE_$toolkit
6077 fi
6078 eval "wxUSE_$toolkit=\$${var}"
6079 done
6080 fi
6081
6082 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
6083
6084 case "${host}" in
6085 *-pc-os2_emx )
6086 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
6087 # PATH_IFS is autodetected by OS/2's configure (usually ';')
6088 LEX_STEM="lexyy"
6089 ;;
6090 *)
6091 PATH_IFS=':'
6092 LEX_STEM="lex.yy"
6093 ;;
6094 esac
6095
6096 case "$NUM_TOOLKITS" in
6097 1)
6098 ;;
6099 0)
6100 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
6101 ;;
6102 *)
6103 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
6104 esac
6105
6106 for toolkit in `echo $ALL_TOOLKITS`; do
6107 var=wxUSE_$toolkit
6108 eval "value=\$${var}"
6109 if test "x$value" != x; then
6110 cache_var=CACHE_$toolkit
6111 eval "cache=\$${cache_var}"
6112 if test "$cache" = 1; then
6113 echo "$var=$value" >> ${wx_arg_cache_file}
6114 fi
6115 if test "$value" = 1; then
6116 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
6117 fi
6118 fi
6119 done
6120
6121 else
6122 PATH_IFS=':'
6123 echo "$ac_t""base only" 1>&6
6124 fi
6125
6126
6127 cat > confcache <<\EOF
6128 # This file is a shell script that caches the results of configure
6129 # tests run on this system so they can be shared between configure
6130 # scripts and configure runs. It is not useful on other systems.
6131 # If it contains results you don't want to keep, you may remove or edit it.
6132 #
6133 # By default, configure uses ./config.cache as the cache file,
6134 # creating it if it does not exist already. You can give configure
6135 # the --cache-file=FILE option to use a different cache file; that is
6136 # what configure does when it calls configure scripts in
6137 # subdirectories, so they share the cache.
6138 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6139 # config.status only pays attention to the cache file if you give it the
6140 # --recheck option to rerun configure.
6141 #
6142 EOF
6143 # The following way of writing the cache mishandles newlines in values,
6144 # but we know of no workaround that is simple, portable, and efficient.
6145 # So, don't put newlines in cache variables' values.
6146 # Ultrix sh set writes to stderr and can't be redirected directly,
6147 # and sets the high bit in the cache file unless we assign to the vars.
6148 (set) 2>&1 |
6149 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6150 *ac_space=\ *)
6151 # `set' does not quote correctly, so add quotes (double-quote substitution
6152 # turns \\\\ into \\, and sed turns \\ into \).
6153 sed -n \
6154 -e "s/'/'\\\\''/g" \
6155 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6156 ;;
6157 *)
6158 # `set' quotes correctly as required by POSIX, so do not add quotes.
6159 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6160 ;;
6161 esac >> confcache
6162 if cmp -s $cache_file confcache; then
6163 :
6164 else
6165 if test -w $cache_file; then
6166 echo "updating cache $cache_file"
6167 cat confcache > $cache_file
6168 else
6169 echo "not updating unwritable cache $cache_file"
6170 fi
6171 fi
6172 rm -f confcache
6173
6174
6175 if test "$build" != "$host" ; then
6176 CC=$host_alias-gcc
6177 CXX=$host_alias-c++
6178 AR=$host_alias-ar
6179 RANLIB=$host_alias-ranlib
6180 DLLTOOL=$host_alias-dlltool
6181 RESCOMP=$host_alias-windres
6182 LD=$host_alias-ld
6183 NM=$host_alias-nm
6184 STRIP=$host_alias-strip
6185 fi
6186
6187 # Extract the first word of "gcc", so it can be a program name with args.
6188 set dummy gcc; ac_word=$2
6189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6190 echo "configure:6191: checking for $ac_word" >&5
6191 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6192 echo $ac_n "(cached) $ac_c" 1>&6
6193 else
6194 if test -n "$CC"; then
6195 ac_cv_prog_CC="$CC" # Let the user override the test.
6196 else
6197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6198 ac_dummy="$PATH"
6199 for ac_dir in $ac_dummy; do
6200 test -z "$ac_dir" && ac_dir=.
6201 if test -f $ac_dir/$ac_word; then
6202 ac_cv_prog_CC="gcc"
6203 break
6204 fi
6205 done
6206 IFS="$ac_save_ifs"
6207 fi
6208 fi
6209 CC="$ac_cv_prog_CC"
6210 if test -n "$CC"; then
6211 echo "$ac_t""$CC" 1>&6
6212 else
6213 echo "$ac_t""no" 1>&6
6214 fi
6215
6216 if test -z "$CC"; then
6217 # Extract the first word of "cc", so it can be a program name with args.
6218 set dummy cc; ac_word=$2
6219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6220 echo "configure:6221: checking for $ac_word" >&5
6221 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6222 echo $ac_n "(cached) $ac_c" 1>&6
6223 else
6224 if test -n "$CC"; then
6225 ac_cv_prog_CC="$CC" # Let the user override the test.
6226 else
6227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6228 ac_prog_rejected=no
6229 ac_dummy="$PATH"
6230 for ac_dir in $ac_dummy; do
6231 test -z "$ac_dir" && ac_dir=.
6232 if test -f $ac_dir/$ac_word; then
6233 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6234 ac_prog_rejected=yes
6235 continue
6236 fi
6237 ac_cv_prog_CC="cc"
6238 break
6239 fi
6240 done
6241 IFS="$ac_save_ifs"
6242 if test $ac_prog_rejected = yes; then
6243 # We found a bogon in the path, so make sure we never use it.
6244 set dummy $ac_cv_prog_CC
6245 shift
6246 if test $# -gt 0; then
6247 # We chose a different compiler from the bogus one.
6248 # However, it has the same basename, so the bogon will be chosen
6249 # first if we set CC to just the basename; use the full file name.
6250 shift
6251 set dummy "$ac_dir/$ac_word" "$@"
6252 shift
6253 ac_cv_prog_CC="$@"
6254 fi
6255 fi
6256 fi
6257 fi
6258 CC="$ac_cv_prog_CC"
6259 if test -n "$CC"; then
6260 echo "$ac_t""$CC" 1>&6
6261 else
6262 echo "$ac_t""no" 1>&6
6263 fi
6264
6265 if test -z "$CC"; then
6266 case "`uname -s`" in
6267 *win32* | *WIN32*)
6268 # Extract the first word of "cl", so it can be a program name with args.
6269 set dummy cl; ac_word=$2
6270 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6271 echo "configure:6272: checking for $ac_word" >&5
6272 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6274 else
6275 if test -n "$CC"; then
6276 ac_cv_prog_CC="$CC" # Let the user override the test.
6277 else
6278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6279 ac_dummy="$PATH"
6280 for ac_dir in $ac_dummy; do
6281 test -z "$ac_dir" && ac_dir=.
6282 if test -f $ac_dir/$ac_word; then
6283 ac_cv_prog_CC="cl"
6284 break
6285 fi
6286 done
6287 IFS="$ac_save_ifs"
6288 fi
6289 fi
6290 CC="$ac_cv_prog_CC"
6291 if test -n "$CC"; then
6292 echo "$ac_t""$CC" 1>&6
6293 else
6294 echo "$ac_t""no" 1>&6
6295 fi
6296 ;;
6297 esac
6298 fi
6299 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6300 fi
6301
6302 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6303 echo "configure:6304: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
6304
6305 ac_ext=c
6306 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6307 ac_cpp='$CPP $CPPFLAGS'
6308 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6309 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6310 cross_compiling=$ac_cv_prog_cc_cross
6311
6312 cat > conftest.$ac_ext << EOF
6313
6314 #line 6315 "configure"
6315 #include "confdefs.h"
6316
6317 main(){return(0);}
6318 EOF
6319 if { (eval echo configure:6320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6320 ac_cv_prog_cc_works=yes
6321 # If we can't run a trivial program, we are probably using a cross compiler.
6322 if (./conftest; exit) 2>/dev/null; then
6323 ac_cv_prog_cc_cross=no
6324 else
6325 ac_cv_prog_cc_cross=yes
6326 fi
6327 else
6328 echo "configure: failed program was:" >&5
6329 cat conftest.$ac_ext >&5
6330 ac_cv_prog_cc_works=no
6331 fi
6332 rm -fr conftest*
6333 ac_ext=c
6334 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6335 ac_cpp='$CPP $CPPFLAGS'
6336 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6337 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6338 cross_compiling=$ac_cv_prog_cc_cross
6339
6340 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6341 if test $ac_cv_prog_cc_works = no; then
6342 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6343 fi
6344 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6345 echo "configure:6346: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
6346 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6347 cross_compiling=$ac_cv_prog_cc_cross
6348
6349 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6350 echo "configure:6351: checking whether we are using GNU C" >&5
6351 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6352 echo $ac_n "(cached) $ac_c" 1>&6
6353 else
6354 cat > conftest.c <<EOF
6355 #ifdef __GNUC__
6356 yes;
6357 #endif
6358 EOF
6359 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6360 ac_cv_prog_gcc=yes
6361 else
6362 ac_cv_prog_gcc=no
6363 fi
6364 fi
6365
6366 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6367
6368 if test $ac_cv_prog_gcc = yes; then
6369 GCC=yes
6370 else
6371 GCC=
6372 fi
6373
6374 ac_test_CFLAGS="${CFLAGS+set}"
6375 ac_save_CFLAGS="$CFLAGS"
6376 CFLAGS=
6377 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
6378 echo "configure:6379: checking whether ${CC-cc} accepts -g" >&5
6379 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6381 else
6382 echo 'void f(){}' > conftest.c
6383 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6384 ac_cv_prog_cc_g=yes
6385 else
6386 ac_cv_prog_cc_g=no
6387 fi
6388 rm -f conftest*
6389
6390 fi
6391
6392 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6393 if test "$ac_test_CFLAGS" = set; then
6394 CFLAGS="$ac_save_CFLAGS"
6395 elif test $ac_cv_prog_cc_g = yes; then
6396 if test "$GCC" = yes; then
6397 CFLAGS="-g -O2"
6398 else
6399 CFLAGS="-g"
6400 fi
6401 else
6402 if test "$GCC" = yes; then
6403 CFLAGS="-O2"
6404 else
6405 CFLAGS=
6406 fi
6407 fi
6408
6409
6410 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6411
6412 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
6413 echo "configure:6414: checking how to run the C preprocessor" >&5
6414 # On Suns, sometimes $CPP names a directory.
6415 if test -n "$CPP" && test -d "$CPP"; then
6416 CPP=
6417 fi
6418 if test -z "$CPP"; then
6419 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6420 echo $ac_n "(cached) $ac_c" 1>&6
6421 else
6422 # This must be in double quotes, not single quotes, because CPP may get
6423 # substituted into the Makefile and "${CC-cc}" will confuse make.
6424 CPP="${CC-cc} -E"
6425 # On the NeXT, cc -E runs the code through the compiler's parser,
6426 # not just through cpp.
6427 cat > conftest.$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6430 #include <assert.h>
6431 Syntax Error
6432 EOF
6433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6434 { (eval echo configure:6435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6436 if test -z "$ac_err"; then
6437 :
6438 else
6439 echo "$ac_err" >&5
6440 echo "configure: failed program was:" >&5
6441 cat conftest.$ac_ext >&5
6442 rm -rf conftest*
6443 CPP="${CC-cc} -E -traditional-cpp"
6444 cat > conftest.$ac_ext <<EOF
6445 #line 6446 "configure"
6446 #include "confdefs.h"
6447 #include <assert.h>
6448 Syntax Error
6449 EOF
6450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6451 { (eval echo configure:6452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6453 if test -z "$ac_err"; then
6454 :
6455 else
6456 echo "$ac_err" >&5
6457 echo "configure: failed program was:" >&5
6458 cat conftest.$ac_ext >&5
6459 rm -rf conftest*
6460 CPP="${CC-cc} -nologo -E"
6461 cat > conftest.$ac_ext <<EOF
6462 #line 6463 "configure"
6463 #include "confdefs.h"
6464 #include <assert.h>
6465 Syntax Error
6466 EOF
6467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6468 { (eval echo configure:6469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6470 if test -z "$ac_err"; then
6471 :
6472 else
6473 echo "$ac_err" >&5
6474 echo "configure: failed program was:" >&5
6475 cat conftest.$ac_ext >&5
6476 rm -rf conftest*
6477 CPP=/lib/cpp
6478 fi
6479 rm -f conftest*
6480 fi
6481 rm -f conftest*
6482 fi
6483 rm -f conftest*
6484 ac_cv_prog_CPP="$CPP"
6485 fi
6486 CPP="$ac_cv_prog_CPP"
6487 else
6488 ac_cv_prog_CPP="$CPP"
6489 fi
6490 echo "$ac_t""$CPP" 1>&6
6491
6492
6493 if test $ac_cv_prog_gcc = yes; then
6494 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
6495 echo "configure:6496: checking whether ${CC-cc} needs -traditional" >&5
6496 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6498 else
6499 ac_pattern="Autoconf.*'x'"
6500 cat > conftest.$ac_ext <<EOF
6501 #line 6502 "configure"
6502 #include "confdefs.h"
6503 #include <sgtty.h>
6504 Autoconf TIOCGETP
6505 EOF
6506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6507 egrep "$ac_pattern" >/dev/null 2>&1; then
6508 rm -rf conftest*
6509 ac_cv_prog_gcc_traditional=yes
6510 else
6511 rm -rf conftest*
6512 ac_cv_prog_gcc_traditional=no
6513 fi
6514 rm -f conftest*
6515
6516
6517 if test $ac_cv_prog_gcc_traditional = no; then
6518 cat > conftest.$ac_ext <<EOF
6519 #line 6520 "configure"
6520 #include "confdefs.h"
6521 #include <termio.h>
6522 Autoconf TCGETA
6523 EOF
6524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6525 egrep "$ac_pattern" >/dev/null 2>&1; then
6526 rm -rf conftest*
6527 ac_cv_prog_gcc_traditional=yes
6528 fi
6529 rm -f conftest*
6530
6531 fi
6532 fi
6533
6534 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6535 if test $ac_cv_prog_gcc_traditional = yes; then
6536 CC="$CC -traditional"
6537 fi
6538 fi
6539
6540
6541
6542 ac_ext=C
6543 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6544 ac_cpp='$CXXCPP $CPPFLAGS'
6545 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6546 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6547 cross_compiling=$ac_cv_prog_cxx_cross
6548
6549
6550 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6551 do
6552 # Extract the first word of "$ac_prog", so it can be a program name with args.
6553 set dummy $ac_prog; ac_word=$2
6554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6555 echo "configure:6556: checking for $ac_word" >&5
6556 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6557 echo $ac_n "(cached) $ac_c" 1>&6
6558 else
6559 if test -n "$CXX"; then
6560 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6561 else
6562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6563 ac_dummy="$PATH"
6564 for ac_dir in $ac_dummy; do
6565 test -z "$ac_dir" && ac_dir=.
6566 if test -f $ac_dir/$ac_word; then
6567 ac_cv_prog_CXX="$ac_prog"
6568 break
6569 fi
6570 done
6571 IFS="$ac_save_ifs"
6572 fi
6573 fi
6574 CXX="$ac_cv_prog_CXX"
6575 if test -n "$CXX"; then
6576 echo "$ac_t""$CXX" 1>&6
6577 else
6578 echo "$ac_t""no" 1>&6
6579 fi
6580
6581 test -n "$CXX" && break
6582 done
6583 test -n "$CXX" || CXX="gcc"
6584
6585
6586 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6587 echo "configure:6588: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
6588
6589 ac_ext=C
6590 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6591 ac_cpp='$CXXCPP $CPPFLAGS'
6592 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6593 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6594 cross_compiling=$ac_cv_prog_cxx_cross
6595
6596 cat > conftest.$ac_ext << EOF
6597
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6600
6601 int main(){return(0);}
6602 EOF
6603 if { (eval echo configure:6604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6604 ac_cv_prog_cxx_works=yes
6605 # If we can't run a trivial program, we are probably using a cross compiler.
6606 if (./conftest; exit) 2>/dev/null; then
6607 ac_cv_prog_cxx_cross=no
6608 else
6609 ac_cv_prog_cxx_cross=yes
6610 fi
6611 else
6612 echo "configure: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 ac_cv_prog_cxx_works=no
6615 fi
6616 rm -fr conftest*
6617 ac_ext=C
6618 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6619 ac_cpp='$CXXCPP $CPPFLAGS'
6620 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6621 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6622 cross_compiling=$ac_cv_prog_cxx_cross
6623
6624 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6625 if test $ac_cv_prog_cxx_works = no; then
6626 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6627 fi
6628 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6629 echo "configure:6630: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
6630 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6631 cross_compiling=$ac_cv_prog_cxx_cross
6632
6633 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6634 echo "configure:6635: checking whether we are using GNU C++" >&5
6635 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6636 echo $ac_n "(cached) $ac_c" 1>&6
6637 else
6638 cat > conftest.C <<EOF
6639 #ifdef __GNUC__
6640 yes;
6641 #endif
6642 EOF
6643 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6644 ac_cv_prog_gxx=yes
6645 else
6646 ac_cv_prog_gxx=no
6647 fi
6648 fi
6649
6650 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6651
6652 if test $ac_cv_prog_gxx = yes; then
6653 GXX=yes
6654 else
6655 GXX=
6656 fi
6657
6658 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6659 ac_save_CXXFLAGS="$CXXFLAGS"
6660 CXXFLAGS=
6661 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6662 echo "configure:6663: checking whether ${CXX-g++} accepts -g" >&5
6663 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6664 echo $ac_n "(cached) $ac_c" 1>&6
6665 else
6666 echo 'void f(){}' > conftest.cc
6667 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6668 ac_cv_prog_cxx_g=yes
6669 else
6670 ac_cv_prog_cxx_g=no
6671 fi
6672 rm -f conftest*
6673
6674 fi
6675
6676 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6677 if test "$ac_test_CXXFLAGS" = set; then
6678 CXXFLAGS="$ac_save_CXXFLAGS"
6679 elif test $ac_cv_prog_cxx_g = yes; then
6680 if test "$GXX" = yes; then
6681 CXXFLAGS="-g -O2"
6682 else
6683 CXXFLAGS="-g"
6684 fi
6685 else
6686 if test "$GXX" = yes; then
6687 CXXFLAGS="-O2"
6688 else
6689 CXXFLAGS=
6690 fi
6691 fi
6692
6693
6694 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6695 echo "configure:6696: checking how to run the C++ preprocessor" >&5
6696 if test -z "$CXXCPP"; then
6697 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6698 echo $ac_n "(cached) $ac_c" 1>&6
6699 else
6700 ac_ext=C
6701 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6702 ac_cpp='$CXXCPP $CPPFLAGS'
6703 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6704 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6705 cross_compiling=$ac_cv_prog_cxx_cross
6706 CXXCPP="${CXX-g++} -E"
6707 cat > conftest.$ac_ext <<EOF
6708 #line 6709 "configure"
6709 #include "confdefs.h"
6710 #include <stdlib.h>
6711 EOF
6712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6713 { (eval echo configure:6714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6715 if test -z "$ac_err"; then
6716 :
6717 else
6718 echo "$ac_err" >&5
6719 echo "configure: failed program was:" >&5
6720 cat conftest.$ac_ext >&5
6721 rm -rf conftest*
6722 CXXCPP=/lib/cpp
6723 fi
6724 rm -f conftest*
6725 ac_cv_prog_CXXCPP="$CXXCPP"
6726 ac_ext=C
6727 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6728 ac_cpp='$CXXCPP $CPPFLAGS'
6729 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6730 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6731 cross_compiling=$ac_cv_prog_cxx_cross
6732 fi
6733 fi
6734 CXXCPP="$ac_cv_prog_CXXCPP"
6735 echo "$ac_t""$CXXCPP" 1>&6
6736
6737
6738 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6739
6740 ac_ext=c
6741 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6742 ac_cpp='$CPP $CPPFLAGS'
6743 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6744 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6745 cross_compiling=$ac_cv_prog_cc_cross
6746
6747
6748 # Extract the first word of "ranlib", so it can be a program name with args.
6749 set dummy ranlib; ac_word=$2
6750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6751 echo "configure:6752: checking for $ac_word" >&5
6752 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6753 echo $ac_n "(cached) $ac_c" 1>&6
6754 else
6755 if test -n "$RANLIB"; then
6756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6757 else
6758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6759 ac_dummy="$PATH"
6760 for ac_dir in $ac_dummy; do
6761 test -z "$ac_dir" && ac_dir=.
6762 if test -f $ac_dir/$ac_word; then
6763 ac_cv_prog_RANLIB="ranlib"
6764 break
6765 fi
6766 done
6767 IFS="$ac_save_ifs"
6768 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6769 fi
6770 fi
6771 RANLIB="$ac_cv_prog_RANLIB"
6772 if test -n "$RANLIB"; then
6773 echo "$ac_t""$RANLIB" 1>&6
6774 else
6775 echo "$ac_t""no" 1>&6
6776 fi
6777
6778
6779 # Extract the first word of "ar", so it can be a program name with args.
6780 set dummy ar; ac_word=$2
6781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6782 echo "configure:6783: checking for $ac_word" >&5
6783 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6784 echo $ac_n "(cached) $ac_c" 1>&6
6785 else
6786 if test -n "$AR"; then
6787 ac_cv_prog_AR="$AR" # Let the user override the test.
6788 else
6789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6790 ac_dummy="$PATH"
6791 for ac_dir in $ac_dummy; do
6792 test -z "$ac_dir" && ac_dir=.
6793 if test -f $ac_dir/$ac_word; then
6794 ac_cv_prog_AR="ar"
6795 break
6796 fi
6797 done
6798 IFS="$ac_save_ifs"
6799 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6800 fi
6801 fi
6802 AR="$ac_cv_prog_AR"
6803 if test -n "$AR"; then
6804 echo "$ac_t""$AR" 1>&6
6805 else
6806 echo "$ac_t""no" 1>&6
6807 fi
6808
6809
6810 # Find a good install program. We prefer a C program (faster),
6811 # so one script is as good as another. But avoid the broken or
6812 # incompatible versions:
6813 # SysV /etc/install, /usr/sbin/install
6814 # SunOS /usr/etc/install
6815 # IRIX /sbin/install
6816 # AIX /bin/install
6817 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6818 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6819 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6820 # ./install, which can be erroneously created by make from ./install.sh.
6821 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6822 echo "configure:6823: checking for a BSD compatible install" >&5
6823 if test -z "$INSTALL"; then
6824 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6825 echo $ac_n "(cached) $ac_c" 1>&6
6826 else
6827 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6828 for ac_dir in $PATH; do
6829 # Account for people who put trailing slashes in PATH elements.
6830 case "$ac_dir/" in
6831 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6832 *)
6833 # OSF1 and SCO ODT 3.0 have their own names for install.
6834 # Don't use installbsd from OSF since it installs stuff as root
6835 # by default.
6836 for ac_prog in ginstall scoinst install; do
6837 if test -f $ac_dir/$ac_prog; then
6838 if test $ac_prog = install &&
6839 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6840 # AIX install. It has an incompatible calling convention.
6841 :
6842 else
6843 ac_cv_path_install="$ac_dir/$ac_prog -c"
6844 break 2
6845 fi
6846 fi
6847 done
6848 ;;
6849 esac
6850 done
6851 IFS="$ac_save_IFS"
6852
6853 fi
6854 if test "${ac_cv_path_install+set}" = set; then
6855 INSTALL="$ac_cv_path_install"
6856 else
6857 # As a last resort, use the slow shell script. We don't cache a
6858 # path for INSTALL within a source directory, because that will
6859 # break other packages using the cache if that directory is
6860 # removed, or if the path is relative.
6861 INSTALL="$ac_install_sh"
6862 fi
6863 fi
6864 echo "$ac_t""$INSTALL" 1>&6
6865
6866 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6867 # It thinks the first close brace ends the variable substitution.
6868 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6869
6870 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6871
6872 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6873
6874
6875 # Extract the first word of "strip", so it can be a program name with args.
6876 set dummy strip; ac_word=$2
6877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6878 echo "configure:6879: checking for $ac_word" >&5
6879 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6880 echo $ac_n "(cached) $ac_c" 1>&6
6881 else
6882 if test -n "$STRIP"; then
6883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6884 else
6885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6886 ac_dummy="$PATH"
6887 for ac_dir in $ac_dummy; do
6888 test -z "$ac_dir" && ac_dir=.
6889 if test -f $ac_dir/$ac_word; then
6890 ac_cv_prog_STRIP="strip"
6891 break
6892 fi
6893 done
6894 IFS="$ac_save_ifs"
6895 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6896 fi
6897 fi
6898 STRIP="$ac_cv_prog_STRIP"
6899 if test -n "$STRIP"; then
6900 echo "$ac_t""$STRIP" 1>&6
6901 else
6902 echo "$ac_t""no" 1>&6
6903 fi
6904
6905
6906 echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
6907 echo "configure:6908: checking "make for VPATH support"" >&5
6908 cat - << EOF > confMake
6909 check : file
6910 cp \$? \$@
6911 cp \$? final_file
6912 EOF
6913
6914 if test ! -d sub ; then
6915 mkdir sub
6916 fi
6917 echo dummy > sub/file
6918 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
6919 RESULT=$?
6920 rm -f sub/file check final_file confMake
6921 rmdir sub
6922 if test "$RESULT" = 0; then
6923 echo "$ac_t""yes" 1>&6
6924 else
6925 echo "$ac_t""no" 1>&6
6926 { echo "configure: error: You need a make-utility that is able to use the variable
6927 VPATH correctly.
6928 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6929 fi
6930
6931 for ac_prog in 'bison -y' byacc
6932 do
6933 # Extract the first word of "$ac_prog", so it can be a program name with args.
6934 set dummy $ac_prog; ac_word=$2
6935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6936 echo "configure:6937: checking for $ac_word" >&5
6937 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6938 echo $ac_n "(cached) $ac_c" 1>&6
6939 else
6940 if test -n "$YACC"; then
6941 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6942 else
6943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6944 ac_dummy="$PATH"
6945 for ac_dir in $ac_dummy; do
6946 test -z "$ac_dir" && ac_dir=.
6947 if test -f $ac_dir/$ac_word; then
6948 ac_cv_prog_YACC="$ac_prog"
6949 break
6950 fi
6951 done
6952 IFS="$ac_save_ifs"
6953 fi
6954 fi
6955 YACC="$ac_cv_prog_YACC"
6956 if test -n "$YACC"; then
6957 echo "$ac_t""$YACC" 1>&6
6958 else
6959 echo "$ac_t""no" 1>&6
6960 fi
6961
6962 test -n "$YACC" && break
6963 done
6964 test -n "$YACC" || YACC="yacc"
6965
6966
6967 # Extract the first word of "flex", so it can be a program name with args.
6968 set dummy flex; ac_word=$2
6969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6970 echo "configure:6971: checking for $ac_word" >&5
6971 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6972 echo $ac_n "(cached) $ac_c" 1>&6
6973 else
6974 if test -n "$LEX"; then
6975 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6976 else
6977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6978 ac_dummy="$PATH"
6979 for ac_dir in $ac_dummy; do
6980 test -z "$ac_dir" && ac_dir=.
6981 if test -f $ac_dir/$ac_word; then
6982 ac_cv_prog_LEX="flex"
6983 break
6984 fi
6985 done
6986 IFS="$ac_save_ifs"
6987 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6988 fi
6989 fi
6990 LEX="$ac_cv_prog_LEX"
6991 if test -n "$LEX"; then
6992 echo "$ac_t""$LEX" 1>&6
6993 else
6994 echo "$ac_t""no" 1>&6
6995 fi
6996
6997 if test -z "$LEXLIB"
6998 then
6999 case "$LEX" in
7000 flex*) ac_lib=fl ;;
7001 *) ac_lib=l ;;
7002 esac
7003 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
7004 echo "configure:7005: checking for yywrap in -l$ac_lib" >&5
7005 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
7006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7007 echo $ac_n "(cached) $ac_c" 1>&6
7008 else
7009 ac_save_LIBS="$LIBS"
7010 LIBS="-l$ac_lib $LIBS"
7011 cat > conftest.$ac_ext <<EOF
7012 #line 7013 "configure"
7013 #include "confdefs.h"
7014 /* Override any gcc2 internal prototype to avoid an error. */
7015 /* We use char because int might match the return type of a gcc2
7016 builtin and then its argument prototype would still apply. */
7017 char yywrap();
7018
7019 int main() {
7020 yywrap()
7021 ; return 0; }
7022 EOF
7023 if { (eval echo configure:7024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7024 rm -rf conftest*
7025 eval "ac_cv_lib_$ac_lib_var=yes"
7026 else
7027 echo "configure: failed program was:" >&5
7028 cat conftest.$ac_ext >&5
7029 rm -rf conftest*
7030 eval "ac_cv_lib_$ac_lib_var=no"
7031 fi
7032 rm -f conftest*
7033 LIBS="$ac_save_LIBS"
7034
7035 fi
7036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7037 echo "$ac_t""yes" 1>&6
7038 LEXLIB="-l$ac_lib"
7039 else
7040 echo "$ac_t""no" 1>&6
7041 fi
7042
7043 fi
7044
7045
7046 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7047 echo "configure:7048: checking whether ln -s works" >&5
7048 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7049 echo $ac_n "(cached) $ac_c" 1>&6
7050 else
7051 rm -f conftestdata
7052 if ln -s X conftestdata 2>/dev/null
7053 then
7054 rm -f conftestdata
7055 ac_cv_prog_LN_S="ln -s"
7056 else
7057 ac_cv_prog_LN_S=ln
7058 fi
7059 fi
7060 LN_S="$ac_cv_prog_LN_S"
7061 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7062 echo "$ac_t""yes" 1>&6
7063 else
7064 echo "$ac_t""no" 1>&6
7065 fi
7066
7067
7068
7069 SEARCH_INCLUDE="\
7070 /usr/local/include \
7071 \
7072 /usr/Motif-1.2/include \
7073 /usr/Motif-2.1/include \
7074 \
7075 /usr/include/Motif1.2 \
7076 /opt/xpm/include/X11 \
7077 /opt/GBxpm/include/ \
7078 /opt/GBxpm/X11/include/ \
7079 \
7080 /usr/Motif1.2/include \
7081 /usr/dt/include \
7082 /usr/openwin/include \
7083 \
7084 /usr/include/Xm \
7085 \
7086 /usr/X11R6/include \
7087 /usr/X11R6.4/include \
7088 /usr/X11R5/include \
7089 /usr/X11R4/include \
7090 \
7091 /usr/include/X11R6 \
7092 /usr/include/X11R5 \
7093 /usr/include/X11R4 \
7094 \
7095 /usr/local/X11R6/include \
7096 /usr/local/X11R5/include \
7097 /usr/local/X11R4/include \
7098 \
7099 /usr/local/include/X11R6 \
7100 /usr/local/include/X11R5 \
7101 /usr/local/include/X11R4 \
7102 \
7103 /usr/X11/include \
7104 /usr/include/X11 \
7105 /usr/local/X11/include \
7106 /usr/local/include/X11 \
7107 \
7108 /usr/X386/include \
7109 /usr/x386/include \
7110 /usr/XFree86/include/X11 \
7111 \
7112 X:/XFree86/include \
7113 X:/XFree86/include/X11 \
7114 \
7115 /usr/include/gtk \
7116 /usr/local/include/gtk \
7117 /usr/include/glib \
7118 /usr/local/include/glib \
7119 \
7120 /usr/include/qt \
7121 /usr/local/include/qt \
7122 \
7123 /usr/include/windows \
7124 /usr/include/wine \
7125 /usr/local/include/wine \
7126 \
7127 /usr/unsupported/include \
7128 /usr/athena/include \
7129 /usr/local/x11r5/include \
7130 /usr/lpp/Xamples/include \
7131 \
7132 /usr/openwin/share/include \
7133 \
7134 /usr/include"
7135
7136 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
7137
7138
7139 cat > confcache <<\EOF
7140 # This file is a shell script that caches the results of configure
7141 # tests run on this system so they can be shared between configure
7142 # scripts and configure runs. It is not useful on other systems.
7143 # If it contains results you don't want to keep, you may remove or edit it.
7144 #
7145 # By default, configure uses ./config.cache as the cache file,
7146 # creating it if it does not exist already. You can give configure
7147 # the --cache-file=FILE option to use a different cache file; that is
7148 # what configure does when it calls configure scripts in
7149 # subdirectories, so they share the cache.
7150 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7151 # config.status only pays attention to the cache file if you give it the
7152 # --recheck option to rerun configure.
7153 #
7154 EOF
7155 # The following way of writing the cache mishandles newlines in values,
7156 # but we know of no workaround that is simple, portable, and efficient.
7157 # So, don't put newlines in cache variables' values.
7158 # Ultrix sh set writes to stderr and can't be redirected directly,
7159 # and sets the high bit in the cache file unless we assign to the vars.
7160 (set) 2>&1 |
7161 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7162 *ac_space=\ *)
7163 # `set' does not quote correctly, so add quotes (double-quote substitution
7164 # turns \\\\ into \\, and sed turns \\ into \).
7165 sed -n \
7166 -e "s/'/'\\\\''/g" \
7167 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7168 ;;
7169 *)
7170 # `set' quotes correctly as required by POSIX, so do not add quotes.
7171 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7172 ;;
7173 esac >> confcache
7174 if cmp -s $cache_file confcache; then
7175 :
7176 else
7177 if test -w $cache_file; then
7178 echo "updating cache $cache_file"
7179 cat confcache > $cache_file
7180 else
7181 echo "not updating unwritable cache $cache_file"
7182 fi
7183 fi
7184 rm -f confcache
7185
7186
7187
7188 AFMINSTALL=
7189
7190 if test "$wxUSE_GUI" = "yes"; then
7191
7192 USE_GUI=1
7193
7194 TOOLKIT=
7195 TOOLKIT_INCLUDE=
7196
7197 GUIOBJS=
7198 COMMONOBJS=
7199 GENERICOBJS=
7200
7201 GUI_TK_LIBRARY=
7202 GUI_TK_LINK=
7203
7204 WXGTK12=
7205 WXGTK127=
7206 WXGTK20=
7207
7208 WXWINE=
7209
7210 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7211 if test "$cross_compiling" = "yes" ; then
7212 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
7213 else
7214 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
7215 echo "configure:7216: checking for Windows headers" >&5
7216
7217 ac_find_includes=
7218 for ac_dir in $SEARCH_INCLUDE;
7219 do
7220 if test -f "$ac_dir/windows.h"; then
7221 ac_find_includes=$ac_dir
7222 break
7223 fi
7224 done
7225
7226 if test "$ac_find_includes" != "" ; then
7227 echo "$ac_t""found $ac_find_includes" 1>&6
7228 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7229 else
7230 echo "$ac_t""no" 1>&6
7231 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7232 fi
7233 fi
7234
7235 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7236 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7237
7238 if test "$wxUSE_ODBC" = "yes" ; then
7239 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7240 fi
7241
7242 if test "$wxUSE_MINGW" = 1; then
7243 LDFLAGS="$LDFLAGS -mwindows"
7244 fi
7245
7246 TOOLKIT=MSW
7247
7248 GUIOBJS="\$(MSW_GUIOBJS)"
7249 GUIHEADERS="\$(MSW_HEADERS)"
7250 COMMONOBJS="\$(MSW_COMMONOBJS)"
7251 GENERICOBJS="\$(MSW_GENERICOBJS)"
7252 UNIXOBJS=
7253 GUIDIST=MSW_DIST
7254
7255 RCINCSWITCH="--include-dir"
7256 RCDEFSWITCH="--define"
7257 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7258 RCINPUTSWITCH="-i"
7259 RCOUTPUTSWITCH="-o"
7260 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7261
7262 RESPROGRAM="\$(RES_PROGRAM)"
7263
7264 fi
7265
7266 if test "$wxUSE_GTK" = 1; then
7267 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7268 if test "${with_gtk_prefix+set}" = set; then
7269 withval="$with_gtk_prefix"
7270 gtk_config_prefix="$withval"
7271 else
7272 gtk_config_prefix=""
7273 fi
7274
7275 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7276 if test "${with_gtk_exec_prefix+set}" = set; then
7277 withval="$with_gtk_exec_prefix"
7278 gtk_config_exec_prefix="$withval"
7279 else
7280 gtk_config_exec_prefix=""
7281 fi
7282
7283 # Check whether --enable-gtktest or --disable-gtktest was given.
7284 if test "${enable_gtktest+set}" = set; then
7285 enableval="$enable_gtktest"
7286 :
7287 else
7288 enable_gtktest=yes
7289 fi
7290
7291
7292 for module in . gthread
7293 do
7294 case "$module" in
7295 gthread)
7296 gtk_config_args="$gtk_config_args gthread"
7297 ;;
7298 esac
7299 done
7300
7301 if test x$gtk_config_exec_prefix != x ; then
7302 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7303 if test x${GTK_CONFIG_2_0+set} != xset ; then
7304 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
7305 fi
7306 fi
7307 if test x$gtk_config_prefix != x ; then
7308 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7309 if test x${GTK_CONFIG_2_0+set} != xset ; then
7310 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
7311 fi
7312 fi
7313
7314 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
7315 set dummy gtk-config-2.0; ac_word=$2
7316 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7317 echo "configure:7318: checking for $ac_word" >&5
7318 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
7319 echo $ac_n "(cached) $ac_c" 1>&6
7320 else
7321 case "$GTK_CONFIG_2_0" in
7322 /*)
7323 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
7324 ;;
7325 ?:/*)
7326 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
7327 ;;
7328 *)
7329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7330 ac_dummy="$PATH"
7331 for ac_dir in $ac_dummy; do
7332 test -z "$ac_dir" && ac_dir=.
7333 if test -f $ac_dir/$ac_word; then
7334 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
7335 break
7336 fi
7337 done
7338 IFS="$ac_save_ifs"
7339 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
7340 ;;
7341 esac
7342 fi
7343 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
7344 if test -n "$GTK_CONFIG_2_0"; then
7345 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
7346 else
7347 echo "$ac_t""no" 1>&6
7348 fi
7349
7350 min_gtk_version=1.3.1
7351 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7352 echo "configure:7353: checking for GTK - version >= $min_gtk_version" >&5
7353 no_gtk=""
7354 if test "$GTK_CONFIG_2_0" = "no" ; then
7355 no_gtk=yes
7356 else
7357 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
7358 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
7359 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7360 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7361 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7362 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7363 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7364 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7365 if test "x$enable_gtktest" = "xyes" ; then
7366 ac_save_CFLAGS="$CFLAGS"
7367 ac_save_LIBS="$LIBS"
7368 CFLAGS="$CFLAGS $GTK_CFLAGS"
7369 LIBS="$GTK_LIBS $LIBS"
7370 rm -f conf.gtktest
7371 if test "$cross_compiling" = yes; then
7372 echo $ac_n "cross compiling; assumed OK... $ac_c"
7373 else
7374 cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure"
7376 #include "confdefs.h"
7377
7378 #include <gtk/gtk.h>
7379 #include <stdio.h>
7380 #include <stdlib.h>
7381
7382 int
7383 main ()
7384 {
7385 int major, minor, micro;
7386 char *tmp_version;
7387
7388 system ("touch conf.gtktest");
7389
7390 /* HP/UX 9 (%@#!) writes to sscanf strings */
7391 tmp_version = g_strdup("$min_gtk_version");
7392 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7393 printf("%s, bad version string\n", "$min_gtk_version");
7394 exit(1);
7395 }
7396
7397 if ((gtk_major_version != $gtk_config_major_version) ||
7398 (gtk_minor_version != $gtk_config_minor_version) ||
7399 (gtk_micro_version != $gtk_config_micro_version))
7400 {
7401 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7402 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7403 gtk_major_version, gtk_minor_version, gtk_micro_version);
7404 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
7405 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7406 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7407 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7408 printf("*** required on your system.\n");
7409 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
7410 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
7411 printf("*** before re-running configure\n");
7412 }
7413 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
7414 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7415 (gtk_minor_version != GTK_MINOR_VERSION) ||
7416 (gtk_micro_version != GTK_MICRO_VERSION))
7417 {
7418 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7419 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7420 printf("*** library (version %d.%d.%d)\n",
7421 gtk_major_version, gtk_minor_version, gtk_micro_version);
7422 }
7423 #endif /* defined (GTK_MAJOR_VERSION) ... */
7424 else
7425 {
7426 if ((gtk_major_version > major) ||
7427 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7428 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7429 {
7430 return 0;
7431 }
7432 else
7433 {
7434 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7435 gtk_major_version, gtk_minor_version, gtk_micro_version);
7436 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7437 major, minor, micro);
7438 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7439 printf("***\n");
7440 printf("*** If you have already installed a sufficiently new version, this error\n");
7441 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
7442 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7443 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
7444 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
7445 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7446 printf("*** so that the correct libraries are found at run-time))\n");
7447 }
7448 }
7449 return 1;
7450 }
7451
7452 EOF
7453 if { (eval echo configure:7454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7454 then
7455 :
7456 else
7457 echo "configure: failed program was:" >&5
7458 cat conftest.$ac_ext >&5
7459 rm -fr conftest*
7460 no_gtk=yes
7461 fi
7462 rm -fr conftest*
7463 fi
7464
7465 CFLAGS="$ac_save_CFLAGS"
7466 LIBS="$ac_save_LIBS"
7467 fi
7468 fi
7469 if test "x$no_gtk" = x ; then
7470 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
7471 WXGTK20=1
7472 else
7473 echo "$ac_t""no" 1>&6
7474 if test "$GTK_CONFIG_2_0" = "no" ; then
7475 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
7476 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
7477 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
7478 echo "*** full path to gtk-config-2.0."
7479 else
7480 if test -f conf.gtktest ; then
7481 :
7482 else
7483 echo "*** Could not run GTK test program, checking why..."
7484 CFLAGS="$CFLAGS $GTK_CFLAGS"
7485 LIBS="$LIBS $GTK_LIBS"
7486 cat > conftest.$ac_ext <<EOF
7487 #line 7488 "configure"
7488 #include "confdefs.h"
7489
7490 #include <gtk/gtk.h>
7491 #include <stdio.h>
7492
7493 int main() {
7494 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7495 ; return 0; }
7496 EOF
7497 if { (eval echo configure:7498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7498 rm -rf conftest*
7499 echo "*** The test program compiled, but did not run. This usually means"
7500 echo "*** that the run-time linker is not finding GTK or finding the wrong"
7501 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
7502 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7503 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7504 echo "*** is required on your system"
7505 echo "***"
7506 echo "*** If you have an old version installed, it is best to remove it, although"
7507 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7508 echo "***"
7509 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7510 echo "*** came with the system with the command"
7511 echo "***"
7512 echo "*** rpm --erase --nodeps gtk gtk-devel"
7513 else
7514 echo "configure: failed program was:" >&5
7515 cat conftest.$ac_ext >&5
7516 rm -rf conftest*
7517 echo "*** The test program failed to compile or link. See the file config.log for the"
7518 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
7519 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
7520 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
7521 fi
7522 rm -f conftest*
7523 CFLAGS="$ac_save_CFLAGS"
7524 LIBS="$ac_save_LIBS"
7525 fi
7526 fi
7527 GTK_CFLAGS=""
7528 GTK_LIBS=""
7529
7530
7531 if test x$gtk_config_exec_prefix != x ; then
7532 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7533 if test x${GTK_CONFIG+set} != xset ; then
7534 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7535 fi
7536 fi
7537 if test x$gtk_config_prefix != x ; then
7538 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7539 if test x${GTK_CONFIG+set} != xset ; then
7540 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7541 fi
7542 fi
7543
7544 # Extract the first word of "gtk-config", so it can be a program name with args.
7545 set dummy gtk-config; ac_word=$2
7546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7547 echo "configure:7548: checking for $ac_word" >&5
7548 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7550 else
7551 case "$GTK_CONFIG" in
7552 /*)
7553 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7554 ;;
7555 ?:/*)
7556 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7557 ;;
7558 *)
7559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7560 ac_dummy="$PATH"
7561 for ac_dir in $ac_dummy; do
7562 test -z "$ac_dir" && ac_dir=.
7563 if test -f $ac_dir/$ac_word; then
7564 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7565 break
7566 fi
7567 done
7568 IFS="$ac_save_ifs"
7569 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7570 ;;
7571 esac
7572 fi
7573 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7574 if test -n "$GTK_CONFIG"; then
7575 echo "$ac_t""$GTK_CONFIG" 1>&6
7576 else
7577 echo "$ac_t""no" 1>&6
7578 fi
7579
7580 min_gtk_version=1.2.7
7581 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7582 echo "configure:7583: checking for GTK - version >= $min_gtk_version" >&5
7583 no_gtk=""
7584 if test "$GTK_CONFIG" != "no" ; then
7585 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7586 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7587 ac_save_CFLAGS="$CFLAGS"
7588 ac_save_LIBS="$LIBS"
7589 CFLAGS="$CFLAGS $GTK_CFLAGS"
7590 LIBS="$LIBS $GTK_LIBS"
7591 if test "$cross_compiling" = yes; then
7592 echo $ac_n "cross compiling; assumed OK... $ac_c"
7593 else
7594 cat > conftest.$ac_ext <<EOF
7595 #line 7596 "configure"
7596 #include "confdefs.h"
7597
7598 #include <gtk/gtk.h>
7599 #include <gtk/gtkfeatures.h>
7600 #include <stdio.h>
7601 #include <stdlib.h>
7602
7603 int
7604 main ()
7605 {
7606 int major, minor, micro;
7607
7608 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7609 printf("%s, bad version string\n", "$min_gtk_version");
7610 exit(1);
7611 }
7612
7613 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7614 (GTK_MINOR_VERSION != gtk_minor_version) ||
7615 (GTK_MICRO_VERSION != gtk_micro_version)) {
7616 printf("Headers vs. library version mismatch!\n");
7617 exit(1);
7618 }
7619
7620 if (gtk_minor_version == 1) return FALSE;
7621
7622 return !((gtk_major_version > major) ||
7623 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7624 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7625 }
7626
7627 EOF
7628 if { (eval echo configure:7629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7629 then
7630 :
7631 else
7632 echo "configure: failed program was:" >&5
7633 cat conftest.$ac_ext >&5
7634 rm -fr conftest*
7635 no_gtk=yes
7636 fi
7637 rm -fr conftest*
7638 fi
7639
7640 CFLAGS="$ac_save_CFLAGS"
7641 LIBS="$ac_save_LIBS"
7642 else
7643 no_gtk=yes
7644 fi
7645 if test "x$no_gtk" = x ; then
7646 echo "$ac_t""yes" 1>&6
7647 WXGTK127=1
7648 else
7649 echo "$ac_t""no" 1>&6
7650 GTK_CFLAGS=""
7651 GTK_LIBS=""
7652 :
7653 fi
7654
7655
7656
7657
7658 if test x$gtk_config_exec_prefix != x ; then
7659 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7660 if test x${GTK_CONFIG+set} != xset ; then
7661 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7662 fi
7663 fi
7664 if test x$gtk_config_prefix != x ; then
7665 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7666 if test x${GTK_CONFIG+set} != xset ; then
7667 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7668 fi
7669 fi
7670
7671 # Extract the first word of "gtk-config", so it can be a program name with args.
7672 set dummy gtk-config; ac_word=$2
7673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7674 echo "configure:7675: checking for $ac_word" >&5
7675 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7676 echo $ac_n "(cached) $ac_c" 1>&6
7677 else
7678 case "$GTK_CONFIG" in
7679 /*)
7680 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7681 ;;
7682 ?:/*)
7683 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7684 ;;
7685 *)
7686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7687 ac_dummy="$PATH"
7688 for ac_dir in $ac_dummy; do
7689 test -z "$ac_dir" && ac_dir=.
7690 if test -f $ac_dir/$ac_word; then
7691 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7692 break
7693 fi
7694 done
7695 IFS="$ac_save_ifs"
7696 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7697 ;;
7698 esac
7699 fi
7700 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7701 if test -n "$GTK_CONFIG"; then
7702 echo "$ac_t""$GTK_CONFIG" 1>&6
7703 else
7704 echo "$ac_t""no" 1>&6
7705 fi
7706
7707 min_gtk_version=1.2.3
7708 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7709 echo "configure:7710: checking for GTK - version >= $min_gtk_version" >&5
7710 no_gtk=""
7711 if test "$GTK_CONFIG" != "no" ; then
7712 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7713 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7714 ac_save_CFLAGS="$CFLAGS"
7715 ac_save_LIBS="$LIBS"
7716 CFLAGS="$CFLAGS $GTK_CFLAGS"
7717 LIBS="$LIBS $GTK_LIBS"
7718 if test "$cross_compiling" = yes; then
7719 echo $ac_n "cross compiling; assumed OK... $ac_c"
7720 else
7721 cat > conftest.$ac_ext <<EOF
7722 #line 7723 "configure"
7723 #include "confdefs.h"
7724
7725 #include <gtk/gtk.h>
7726 #include <gtk/gtkfeatures.h>
7727 #include <stdio.h>
7728 #include <stdlib.h>
7729
7730 int
7731 main ()
7732 {
7733 int major, minor, micro;
7734
7735 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7736 printf("%s, bad version string\n", "$min_gtk_version");
7737 exit(1);
7738 }
7739
7740 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7741 (GTK_MINOR_VERSION != gtk_minor_version) ||
7742 (GTK_MICRO_VERSION != gtk_micro_version)) {
7743 printf("Headers vs. library version mismatch!\n");
7744 exit(1);
7745 }
7746
7747 if (gtk_minor_version == 1) return FALSE;
7748
7749 return !((gtk_major_version > major) ||
7750 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7751 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7752 }
7753
7754 EOF
7755 if { (eval echo configure:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7756 then
7757 :
7758 else
7759 echo "configure: failed program was:" >&5
7760 cat conftest.$ac_ext >&5
7761 rm -fr conftest*
7762 no_gtk=yes
7763 fi
7764 rm -fr conftest*
7765 fi
7766
7767 CFLAGS="$ac_save_CFLAGS"
7768 LIBS="$ac_save_LIBS"
7769 else
7770 no_gtk=yes
7771 fi
7772 if test "x$no_gtk" = x ; then
7773 echo "$ac_t""yes" 1>&6
7774 WXGTK12=1
7775 else
7776 echo "$ac_t""no" 1>&6
7777 GTK_CFLAGS=""
7778 GTK_LIBS=""
7779 :
7780 fi
7781
7782
7783
7784
7785 fi
7786
7787
7788 rm -f conf.gtktest
7789
7790
7791 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
7792 { echo "configure: error:
7793 Please check that gtk-config is in path, the directory
7794 where GTK+ libraries are installed (returned by
7795 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7796 equivalent variable and GTK+ is version 1.2.3 or above.
7797 " 1>&2; exit 1; }
7798 fi
7799
7800 TOOLKIT_INCLUDE="$GTK_CFLAGS"
7801
7802
7803 GUI_TK_LIBRARY="$GTK_LIBS"
7804
7805 TOOLKIT=GTK
7806
7807 AFMINSTALL=afminstall
7808
7809 GUIOBJS="\$(GTK_GUIOBJS)"
7810 GUIHEADERS="\$(GTK_HEADERS)"
7811 COMMONOBJS="\$(GTK_COMMONOBJS)"
7812 GENERICOBJS="\$(GTK_GENERICOBJS)"
7813 GUIDEPS="\$(GTK_GUIDEPS)"
7814 COMMONDEPS="\$(GTK_COMMONDEPS)"
7815 GENERICDEPS="\$(GTK_GENERICDEPS)"
7816 UNIXOBJS="\$(UNIX_OBJS)"
7817 UNIXDEPS="\$(UNIX_DEPS)"
7818 GUIDIST=GTK_DIST
7819
7820 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7821 echo "configure:7822: checking for gdk_im_open in -lgdk" >&5
7822 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7824 echo $ac_n "(cached) $ac_c" 1>&6
7825 else
7826 ac_save_LIBS="$LIBS"
7827 LIBS="-lgdk $LIBS"
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7831 /* Override any gcc2 internal prototype to avoid an error. */
7832 /* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */
7834 char gdk_im_open();
7835
7836 int main() {
7837 gdk_im_open()
7838 ; return 0; }
7839 EOF
7840 if { (eval echo configure:7841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7841 rm -rf conftest*
7842 eval "ac_cv_lib_$ac_lib_var=yes"
7843 else
7844 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7846 rm -rf conftest*
7847 eval "ac_cv_lib_$ac_lib_var=no"
7848 fi
7849 rm -f conftest*
7850 LIBS="$ac_save_LIBS"
7851
7852 fi
7853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7854 echo "$ac_t""yes" 1>&6
7855 cat >> confdefs.h <<\EOF
7856 #define HAVE_XIM 1
7857 EOF
7858
7859 else
7860 echo "$ac_t""no" 1>&6
7861 fi
7862
7863 fi
7864
7865 if test "$wxUSE_WINE" = 1; then
7866 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
7867 echo "configure:7868: checking for WINE includes" >&5
7868
7869 ac_find_includes=
7870 for ac_dir in $SEARCH_INCLUDE;
7871 do
7872 if test -f "$ac_dir/windows.h"; then
7873 ac_find_includes=$ac_dir
7874 break
7875 fi
7876 done
7877
7878 if test "$ac_find_includes" != "" ; then
7879 echo "$ac_t""found $ac_find_includes" 1>&6
7880 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7881 else
7882 echo "$ac_t""no" 1>&6
7883 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7884 fi
7885
7886 XPM_LINK=""
7887 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7888 echo "configure:7889: checking for Xpm library" >&5
7889
7890 ac_find_libraries=
7891 for ac_dir in $SEARCH_LIB;
7892 do
7893 for ac_extension in a so sl; do
7894 if test -f "$ac_dir/libXpm.$ac_extension"; then
7895 ac_find_libraries=$ac_dir
7896 break 2
7897 fi
7898 done
7899 done
7900
7901 if test "$ac_find_libraries" != "" ; then
7902 GUI_TK_LIBRARY="-L$ac_find_libraries"
7903 XPM_LINK="-lXpm"
7904 cat >> confdefs.h <<\EOF
7905 #define wxHAVE_LIB_XPM 1
7906 EOF
7907
7908 echo "$ac_t""found at $ac_find_libraries" 1>&6
7909 else
7910 echo "$ac_t""no" 1>&6
7911 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7912 fi
7913
7914 MESA_LINK=""
7915 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
7916 echo "configure:7917: checking for Mesa library" >&5
7917
7918 ac_find_libraries=
7919 for ac_dir in $SEARCH_LIB;
7920 do
7921 for ac_extension in a so sl; do
7922 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7923 ac_find_libraries=$ac_dir
7924 break 2
7925 fi
7926 done
7927 done
7928
7929 if test "$ac_find_libraries" != "" ; then
7930 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7931 MESA_LINK="-lMesaGL"
7932 echo "$ac_t""found at $ac_find_libraries" 1>&6
7933 else
7934 { echo "configure: error: no" 1>&2; exit 1; }
7935 fi
7936
7937 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
7938 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7939 WXWINE=1
7940 TOOLKIT=MSW
7941
7942 GUIHEADERS="\$(MSW_HEADERS)"
7943 GUIOBJS="\$(MSW_GUIOBJS)"
7944 COMMONOBJS="\$(MSW_COMMONOBJS)"
7945 GENERICOBJS="\$(MSW_GENERICOBJS)"
7946 GUIDEPS="\$(MSW_GUIDEPS)"
7947 COMMONDEPS="\$(MSW_COMMONDEPS)"
7948 GENERICDEPS="\$(MSW_GENERICDEPS)"
7949 UNIXOBJS="\$(UNIX_OBJS)"
7950 UNIXDEPS="\$(UNIX_DEPS)"
7951 GUIDIST=MSW_DIST
7952 fi
7953
7954
7955 # If we find X, set shell vars x_includes and x_libraries to the
7956 # paths, otherwise set no_x=yes.
7957 # Uses ac_ vars as temps to allow command line to override cache and checks.
7958 # --without-x overrides everything else, but does not touch the cache.
7959 echo $ac_n "checking for X""... $ac_c" 1>&6
7960 echo "configure:7961: checking for X" >&5
7961
7962 # Check whether --with-x or --without-x was given.
7963 if test "${with_x+set}" = set; then
7964 withval="$with_x"
7965 :
7966 fi
7967
7968 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7969 if test "x$with_x" = xno; then
7970 # The user explicitly disabled X.
7971 have_x=disabled
7972 else
7973 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7974 # Both variables are already set.
7975 have_x=yes
7976 else
7977 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7978 echo $ac_n "(cached) $ac_c" 1>&6
7979 else
7980 # One or both of the vars are not set, and there is no cached value.
7981 ac_x_includes=NO ac_x_libraries=NO
7982 rm -fr conftestdir
7983 if mkdir conftestdir; then
7984 cd conftestdir
7985 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7986 cat > Imakefile <<'EOF'
7987 acfindx:
7988 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7989 EOF
7990 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7991 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7992 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7993 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7994 for ac_extension in a so sl; do
7995 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7996 test -f $ac_im_libdir/libX11.$ac_extension; then
7997 ac_im_usrlibdir=$ac_im_libdir; break
7998 fi
7999 done
8000 # Screen out bogus values from the imake configuration. They are
8001 # bogus both because they are the default anyway, and because
8002 # using them would break gcc on systems where it needs fixed includes.
8003 case "$ac_im_incroot" in
8004 /usr/include) ;;
8005 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
8006 esac
8007 case "$ac_im_usrlibdir" in
8008 /usr/lib | /lib) ;;
8009 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
8010 esac
8011 fi
8012 cd ..
8013 rm -fr conftestdir
8014 fi
8015
8016 if test "$ac_x_includes" = NO; then
8017 # Guess where to find include files, by looking for this one X11 .h file.
8018 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
8019
8020 # First, try using that file with no special directory specified.
8021 cat > conftest.$ac_ext <<EOF
8022 #line 8023 "configure"
8023 #include "confdefs.h"
8024 #include <$x_direct_test_include>
8025 EOF
8026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8027 { (eval echo configure:8028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8029 if test -z "$ac_err"; then
8030 rm -rf conftest*
8031 # We can compile using X headers with no special include directory.
8032 ac_x_includes=
8033 else
8034 echo "$ac_err" >&5
8035 echo "configure: failed program was:" >&5
8036 cat conftest.$ac_ext >&5
8037 rm -rf conftest*
8038 # Look for the header file in a standard set of common directories.
8039 # Check X11 before X11Rn because it is often a symlink to the current release.
8040 for ac_dir in \
8041 /usr/X11/include \
8042 /usr/X11R6/include \
8043 /usr/X11R5/include \
8044 /usr/X11R4/include \
8045 \
8046 /usr/include/X11 \
8047 /usr/include/X11R6 \
8048 /usr/include/X11R5 \
8049 /usr/include/X11R4 \
8050 \
8051 /usr/local/X11/include \
8052 /usr/local/X11R6/include \
8053 /usr/local/X11R5/include \
8054 /usr/local/X11R4/include \
8055 \
8056 /usr/local/include/X11 \
8057 /usr/local/include/X11R6 \
8058 /usr/local/include/X11R5 \
8059 /usr/local/include/X11R4 \
8060 \
8061 /usr/X386/include \
8062 /usr/x386/include \
8063 /usr/XFree86/include/X11 \
8064 \
8065 /usr/include \
8066 /usr/local/include \
8067 /usr/unsupported/include \
8068 /usr/athena/include \
8069 /usr/local/x11r5/include \
8070 /usr/lpp/Xamples/include \
8071 \
8072 /usr/openwin/include \
8073 /usr/openwin/share/include \
8074 ; \
8075 do
8076 if test -r "$ac_dir/$x_direct_test_include"; then
8077 ac_x_includes=$ac_dir
8078 break
8079 fi
8080 done
8081 fi
8082 rm -f conftest*
8083 fi # $ac_x_includes = NO
8084
8085 if test "$ac_x_libraries" = NO; then
8086 # Check for the libraries.
8087
8088 test -z "$x_direct_test_library" && x_direct_test_library=Xt
8089 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
8090
8091 # See if we find them without any special options.
8092 # Don't add to $LIBS permanently.
8093 ac_save_LIBS="$LIBS"
8094 LIBS="-l$x_direct_test_library $LIBS"
8095 cat > conftest.$ac_ext <<EOF
8096 #line 8097 "configure"
8097 #include "confdefs.h"
8098
8099 int main() {
8100 ${x_direct_test_function}()
8101 ; return 0; }
8102 EOF
8103 if { (eval echo configure:8104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8104 rm -rf conftest*
8105 LIBS="$ac_save_LIBS"
8106 # We can link X programs with no special library path.
8107 ac_x_libraries=
8108 else
8109 echo "configure: failed program was:" >&5
8110 cat conftest.$ac_ext >&5
8111 rm -rf conftest*
8112 LIBS="$ac_save_LIBS"
8113 # First see if replacing the include by lib works.
8114 # Check X11 before X11Rn because it is often a symlink to the current release.
8115 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
8116 /usr/X11/lib \
8117 /usr/X11R6/lib \
8118 /usr/X11R5/lib \
8119 /usr/X11R4/lib \
8120 \
8121 /usr/lib/X11 \
8122 /usr/lib/X11R6 \
8123 /usr/lib/X11R5 \
8124 /usr/lib/X11R4 \
8125 \
8126 /usr/local/X11/lib \
8127 /usr/local/X11R6/lib \
8128 /usr/local/X11R5/lib \
8129 /usr/local/X11R4/lib \
8130 \
8131 /usr/local/lib/X11 \
8132 /usr/local/lib/X11R6 \
8133 /usr/local/lib/X11R5 \
8134 /usr/local/lib/X11R4 \
8135 \
8136 /usr/X386/lib \
8137 /usr/x386/lib \
8138 /usr/XFree86/lib/X11 \
8139 \
8140 /usr/lib \
8141 /usr/local/lib \
8142 /usr/unsupported/lib \
8143 /usr/athena/lib \
8144 /usr/local/x11r5/lib \
8145 /usr/lpp/Xamples/lib \
8146 /lib/usr/lib/X11 \
8147 \
8148 /usr/openwin/lib \
8149 /usr/openwin/share/lib \
8150 ; \
8151 do
8152 for ac_extension in a so sl; do
8153 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
8154 ac_x_libraries=$ac_dir
8155 break 2
8156 fi
8157 done
8158 done
8159 fi
8160 rm -f conftest*
8161 fi # $ac_x_libraries = NO
8162
8163 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
8164 # Didn't find X anywhere. Cache the known absence of X.
8165 ac_cv_have_x="have_x=no"
8166 else
8167 # Record where we found X for the cache.
8168 ac_cv_have_x="have_x=yes \
8169 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8170 fi
8171 fi
8172 fi
8173 eval "$ac_cv_have_x"
8174 fi # $with_x != no
8175
8176 if test "$have_x" != yes; then
8177 echo "$ac_t""$have_x" 1>&6
8178 no_x=yes
8179 else
8180 # If each of the values was on the command line, it overrides each guess.
8181 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8182 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8183 # Update the cache value to reflect the command line values.
8184 ac_cv_have_x="have_x=yes \
8185 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8186 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8187 fi
8188
8189 if test "$no_x" = yes; then
8190 # Not all programs may use this symbol, but it does not hurt to define it.
8191 cat >> confdefs.h <<\EOF
8192 #define X_DISPLAY_MISSING 1
8193 EOF
8194
8195 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8196 else
8197 if test -n "$x_includes"; then
8198 X_CFLAGS="$X_CFLAGS -I$x_includes"
8199 fi
8200
8201 # It would also be nice to do this for all -L options, not just this one.
8202 if test -n "$x_libraries"; then
8203 X_LIBS="$X_LIBS -L$x_libraries"
8204 # For Solaris; some versions of Sun CC require a space after -R and
8205 # others require no space. Words are not sufficient . . . .
8206 case "`(uname -sr) 2>/dev/null`" in
8207 "SunOS 5"*)
8208 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
8209 echo "configure:8210: checking whether -R must be followed by a space" >&5
8210 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
8211 cat > conftest.$ac_ext <<EOF
8212 #line 8213 "configure"
8213 #include "confdefs.h"
8214
8215 int main() {
8216
8217 ; return 0; }
8218 EOF
8219 if { (eval echo configure:8220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8220 rm -rf conftest*
8221 ac_R_nospace=yes
8222 else
8223 echo "configure: failed program was:" >&5
8224 cat conftest.$ac_ext >&5
8225 rm -rf conftest*
8226 ac_R_nospace=no
8227 fi
8228 rm -f conftest*
8229 if test $ac_R_nospace = yes; then
8230 echo "$ac_t""no" 1>&6
8231 X_LIBS="$X_LIBS -R$x_libraries"
8232 else
8233 LIBS="$ac_xsave_LIBS -R $x_libraries"
8234 cat > conftest.$ac_ext <<EOF
8235 #line 8236 "configure"
8236 #include "confdefs.h"
8237
8238 int main() {
8239
8240 ; return 0; }
8241 EOF
8242 if { (eval echo configure:8243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8243 rm -rf conftest*
8244 ac_R_space=yes
8245 else
8246 echo "configure: failed program was:" >&5
8247 cat conftest.$ac_ext >&5
8248 rm -rf conftest*
8249 ac_R_space=no
8250 fi
8251 rm -f conftest*
8252 if test $ac_R_space = yes; then
8253 echo "$ac_t""yes" 1>&6
8254 X_LIBS="$X_LIBS -R $x_libraries"
8255 else
8256 echo "$ac_t""neither works" 1>&6
8257 fi
8258 fi
8259 LIBS="$ac_xsave_LIBS"
8260 esac
8261 fi
8262
8263 # Check for system-dependent libraries X programs must link with.
8264 # Do this before checking for the system-independent R6 libraries
8265 # (-lICE), since we may need -lsocket or whatever for X linking.
8266
8267 if test "$ISC" = yes; then
8268 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8269 else
8270 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
8271 # libraries were built with DECnet support. And karl@cs.umb.edu says
8272 # the Alpha needs dnet_stub (dnet does not exist).
8273 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
8274 echo "configure:8275: checking for dnet_ntoa in -ldnet" >&5
8275 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8277 echo $ac_n "(cached) $ac_c" 1>&6
8278 else
8279 ac_save_LIBS="$LIBS"
8280 LIBS="-ldnet $LIBS"
8281 cat > conftest.$ac_ext <<EOF
8282 #line 8283 "configure"
8283 #include "confdefs.h"
8284 /* Override any gcc2 internal prototype to avoid an error. */
8285 /* We use char because int might match the return type of a gcc2
8286 builtin and then its argument prototype would still apply. */
8287 char dnet_ntoa();
8288
8289 int main() {
8290 dnet_ntoa()
8291 ; return 0; }
8292 EOF
8293 if { (eval echo configure:8294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8294 rm -rf conftest*
8295 eval "ac_cv_lib_$ac_lib_var=yes"
8296 else
8297 echo "configure: failed program was:" >&5
8298 cat conftest.$ac_ext >&5
8299 rm -rf conftest*
8300 eval "ac_cv_lib_$ac_lib_var=no"
8301 fi
8302 rm -f conftest*
8303 LIBS="$ac_save_LIBS"
8304
8305 fi
8306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8307 echo "$ac_t""yes" 1>&6
8308 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8309 else
8310 echo "$ac_t""no" 1>&6
8311 fi
8312
8313 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8314 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
8315 echo "configure:8316: checking for dnet_ntoa in -ldnet_stub" >&5
8316 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8318 echo $ac_n "(cached) $ac_c" 1>&6
8319 else
8320 ac_save_LIBS="$LIBS"
8321 LIBS="-ldnet_stub $LIBS"
8322 cat > conftest.$ac_ext <<EOF
8323 #line 8324 "configure"
8324 #include "confdefs.h"
8325 /* Override any gcc2 internal prototype to avoid an error. */
8326 /* We use char because int might match the return type of a gcc2
8327 builtin and then its argument prototype would still apply. */
8328 char dnet_ntoa();
8329
8330 int main() {
8331 dnet_ntoa()
8332 ; return 0; }
8333 EOF
8334 if { (eval echo configure:8335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8335 rm -rf conftest*
8336 eval "ac_cv_lib_$ac_lib_var=yes"
8337 else
8338 echo "configure: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8340 rm -rf conftest*
8341 eval "ac_cv_lib_$ac_lib_var=no"
8342 fi
8343 rm -f conftest*
8344 LIBS="$ac_save_LIBS"
8345
8346 fi
8347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8348 echo "$ac_t""yes" 1>&6
8349 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8350 else
8351 echo "$ac_t""no" 1>&6
8352 fi
8353
8354 fi
8355
8356 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8357 # to get the SysV transport functions.
8358 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
8359 # needs -lnsl.
8360 # The nsl library prevents programs from opening the X display
8361 # on Irix 5.2, according to dickey@clark.net.
8362 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
8363 echo "configure:8364: checking for gethostbyname" >&5
8364 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
8365 echo $ac_n "(cached) $ac_c" 1>&6
8366 else
8367 cat > conftest.$ac_ext <<EOF
8368 #line 8369 "configure"
8369 #include "confdefs.h"
8370 /* System header to define __stub macros and hopefully few prototypes,
8371 which can conflict with char gethostbyname(); below. */
8372 #include <assert.h>
8373 /* Override any gcc2 internal prototype to avoid an error. */
8374 /* We use char because int might match the return type of a gcc2
8375 builtin and then its argument prototype would still apply. */
8376 char gethostbyname();
8377
8378 int main() {
8379
8380 /* The GNU C library defines this for functions which it implements
8381 to always fail with ENOSYS. Some functions are actually named
8382 something starting with __ and the normal name is an alias. */
8383 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8384 choke me
8385 #else
8386 gethostbyname();
8387 #endif
8388
8389 ; return 0; }
8390 EOF
8391 if { (eval echo configure:8392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8392 rm -rf conftest*
8393 eval "ac_cv_func_gethostbyname=yes"
8394 else
8395 echo "configure: failed program was:" >&5
8396 cat conftest.$ac_ext >&5
8397 rm -rf conftest*
8398 eval "ac_cv_func_gethostbyname=no"
8399 fi
8400 rm -f conftest*
8401 fi
8402
8403 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8404 echo "$ac_t""yes" 1>&6
8405 :
8406 else
8407 echo "$ac_t""no" 1>&6
8408 fi
8409
8410 if test $ac_cv_func_gethostbyname = no; then
8411 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
8412 echo "configure:8413: checking for gethostbyname in -lnsl" >&5
8413 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8415 echo $ac_n "(cached) $ac_c" 1>&6
8416 else
8417 ac_save_LIBS="$LIBS"
8418 LIBS="-lnsl $LIBS"
8419 cat > conftest.$ac_ext <<EOF
8420 #line 8421 "configure"
8421 #include "confdefs.h"
8422 /* Override any gcc2 internal prototype to avoid an error. */
8423 /* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */
8425 char gethostbyname();
8426
8427 int main() {
8428 gethostbyname()
8429 ; return 0; }
8430 EOF
8431 if { (eval echo configure:8432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8432 rm -rf conftest*
8433 eval "ac_cv_lib_$ac_lib_var=yes"
8434 else
8435 echo "configure: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8437 rm -rf conftest*
8438 eval "ac_cv_lib_$ac_lib_var=no"
8439 fi
8440 rm -f conftest*
8441 LIBS="$ac_save_LIBS"
8442
8443 fi
8444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8445 echo "$ac_t""yes" 1>&6
8446 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8447 else
8448 echo "$ac_t""no" 1>&6
8449 fi
8450
8451 fi
8452
8453 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8454 # socket/setsockopt and other routines are undefined under SCO ODT
8455 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8456 # on later versions), says simon@lia.di.epfl.ch: it contains
8457 # gethostby* variants that don't use the nameserver (or something).
8458 # -lsocket must be given before -lnsl if both are needed.
8459 # We assume that if connect needs -lnsl, so does gethostbyname.
8460 echo $ac_n "checking for connect""... $ac_c" 1>&6
8461 echo "configure:8462: checking for connect" >&5
8462 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
8463 echo $ac_n "(cached) $ac_c" 1>&6
8464 else
8465 cat > conftest.$ac_ext <<EOF
8466 #line 8467 "configure"
8467 #include "confdefs.h"
8468 /* System header to define __stub macros and hopefully few prototypes,
8469 which can conflict with char connect(); below. */
8470 #include <assert.h>
8471 /* Override any gcc2 internal prototype to avoid an error. */
8472 /* We use char because int might match the return type of a gcc2
8473 builtin and then its argument prototype would still apply. */
8474 char connect();
8475
8476 int main() {
8477
8478 /* The GNU C library defines this for functions which it implements
8479 to always fail with ENOSYS. Some functions are actually named
8480 something starting with __ and the normal name is an alias. */
8481 #if defined (__stub_connect) || defined (__stub___connect)
8482 choke me
8483 #else
8484 connect();
8485 #endif
8486
8487 ; return 0; }
8488 EOF
8489 if { (eval echo configure:8490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8490 rm -rf conftest*
8491 eval "ac_cv_func_connect=yes"
8492 else
8493 echo "configure: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8495 rm -rf conftest*
8496 eval "ac_cv_func_connect=no"
8497 fi
8498 rm -f conftest*
8499 fi
8500
8501 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8502 echo "$ac_t""yes" 1>&6
8503 :
8504 else
8505 echo "$ac_t""no" 1>&6
8506 fi
8507
8508 if test $ac_cv_func_connect = no; then
8509 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
8510 echo "configure:8511: checking for connect in -lsocket" >&5
8511 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
8512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8513 echo $ac_n "(cached) $ac_c" 1>&6
8514 else
8515 ac_save_LIBS="$LIBS"
8516 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8517 cat > conftest.$ac_ext <<EOF
8518 #line 8519 "configure"
8519 #include "confdefs.h"
8520 /* Override any gcc2 internal prototype to avoid an error. */
8521 /* We use char because int might match the return type of a gcc2
8522 builtin and then its argument prototype would still apply. */
8523 char connect();
8524
8525 int main() {
8526 connect()
8527 ; return 0; }
8528 EOF
8529 if { (eval echo configure:8530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8530 rm -rf conftest*
8531 eval "ac_cv_lib_$ac_lib_var=yes"
8532 else
8533 echo "configure: failed program was:" >&5
8534 cat conftest.$ac_ext >&5
8535 rm -rf conftest*
8536 eval "ac_cv_lib_$ac_lib_var=no"
8537 fi
8538 rm -f conftest*
8539 LIBS="$ac_save_LIBS"
8540
8541 fi
8542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8543 echo "$ac_t""yes" 1>&6
8544 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8545 else
8546 echo "$ac_t""no" 1>&6
8547 fi
8548
8549 fi
8550
8551 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
8552 echo $ac_n "checking for remove""... $ac_c" 1>&6
8553 echo "configure:8554: checking for remove" >&5
8554 if eval "test \"`echo '$''{'ac_cv_func_remove'+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 /* System header to define __stub macros and hopefully few prototypes,
8561 which can conflict with char remove(); below. */
8562 #include <assert.h>
8563 /* Override any gcc2 internal prototype to avoid an error. */
8564 /* We use char because int might match the return type of a gcc2
8565 builtin and then its argument prototype would still apply. */
8566 char remove();
8567
8568 int main() {
8569
8570 /* The GNU C library defines this for functions which it implements
8571 to always fail with ENOSYS. Some functions are actually named
8572 something starting with __ and the normal name is an alias. */
8573 #if defined (__stub_remove) || defined (__stub___remove)
8574 choke me
8575 #else
8576 remove();
8577 #endif
8578
8579 ; return 0; }
8580 EOF
8581 if { (eval echo configure:8582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8582 rm -rf conftest*
8583 eval "ac_cv_func_remove=yes"
8584 else
8585 echo "configure: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8587 rm -rf conftest*
8588 eval "ac_cv_func_remove=no"
8589 fi
8590 rm -f conftest*
8591 fi
8592
8593 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8594 echo "$ac_t""yes" 1>&6
8595 :
8596 else
8597 echo "$ac_t""no" 1>&6
8598 fi
8599
8600 if test $ac_cv_func_remove = no; then
8601 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
8602 echo "configure:8603: checking for remove in -lposix" >&5
8603 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8605 echo $ac_n "(cached) $ac_c" 1>&6
8606 else
8607 ac_save_LIBS="$LIBS"
8608 LIBS="-lposix $LIBS"
8609 cat > conftest.$ac_ext <<EOF
8610 #line 8611 "configure"
8611 #include "confdefs.h"
8612 /* Override any gcc2 internal prototype to avoid an error. */
8613 /* We use char because int might match the return type of a gcc2
8614 builtin and then its argument prototype would still apply. */
8615 char remove();
8616
8617 int main() {
8618 remove()
8619 ; return 0; }
8620 EOF
8621 if { (eval echo configure:8622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8622 rm -rf conftest*
8623 eval "ac_cv_lib_$ac_lib_var=yes"
8624 else
8625 echo "configure: failed program was:" >&5
8626 cat conftest.$ac_ext >&5
8627 rm -rf conftest*
8628 eval "ac_cv_lib_$ac_lib_var=no"
8629 fi
8630 rm -f conftest*
8631 LIBS="$ac_save_LIBS"
8632
8633 fi
8634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8635 echo "$ac_t""yes" 1>&6
8636 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8637 else
8638 echo "$ac_t""no" 1>&6
8639 fi
8640
8641 fi
8642
8643 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8644 echo $ac_n "checking for shmat""... $ac_c" 1>&6
8645 echo "configure:8646: checking for shmat" >&5
8646 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8647 echo $ac_n "(cached) $ac_c" 1>&6
8648 else
8649 cat > conftest.$ac_ext <<EOF
8650 #line 8651 "configure"
8651 #include "confdefs.h"
8652 /* System header to define __stub macros and hopefully few prototypes,
8653 which can conflict with char shmat(); below. */
8654 #include <assert.h>
8655 /* Override any gcc2 internal prototype to avoid an error. */
8656 /* We use char because int might match the return type of a gcc2
8657 builtin and then its argument prototype would still apply. */
8658 char shmat();
8659
8660 int main() {
8661
8662 /* The GNU C library defines this for functions which it implements
8663 to always fail with ENOSYS. Some functions are actually named
8664 something starting with __ and the normal name is an alias. */
8665 #if defined (__stub_shmat) || defined (__stub___shmat)
8666 choke me
8667 #else
8668 shmat();
8669 #endif
8670
8671 ; return 0; }
8672 EOF
8673 if { (eval echo configure:8674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8674 rm -rf conftest*
8675 eval "ac_cv_func_shmat=yes"
8676 else
8677 echo "configure: failed program was:" >&5
8678 cat conftest.$ac_ext >&5
8679 rm -rf conftest*
8680 eval "ac_cv_func_shmat=no"
8681 fi
8682 rm -f conftest*
8683 fi
8684
8685 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8686 echo "$ac_t""yes" 1>&6
8687 :
8688 else
8689 echo "$ac_t""no" 1>&6
8690 fi
8691
8692 if test $ac_cv_func_shmat = no; then
8693 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
8694 echo "configure:8695: checking for shmat in -lipc" >&5
8695 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8697 echo $ac_n "(cached) $ac_c" 1>&6
8698 else
8699 ac_save_LIBS="$LIBS"
8700 LIBS="-lipc $LIBS"
8701 cat > conftest.$ac_ext <<EOF
8702 #line 8703 "configure"
8703 #include "confdefs.h"
8704 /* Override any gcc2 internal prototype to avoid an error. */
8705 /* We use char because int might match the return type of a gcc2
8706 builtin and then its argument prototype would still apply. */
8707 char shmat();
8708
8709 int main() {
8710 shmat()
8711 ; return 0; }
8712 EOF
8713 if { (eval echo configure:8714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8714 rm -rf conftest*
8715 eval "ac_cv_lib_$ac_lib_var=yes"
8716 else
8717 echo "configure: failed program was:" >&5
8718 cat conftest.$ac_ext >&5
8719 rm -rf conftest*
8720 eval "ac_cv_lib_$ac_lib_var=no"
8721 fi
8722 rm -f conftest*
8723 LIBS="$ac_save_LIBS"
8724
8725 fi
8726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8727 echo "$ac_t""yes" 1>&6
8728 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8729 else
8730 echo "$ac_t""no" 1>&6
8731 fi
8732
8733 fi
8734 fi
8735
8736 # Check for libraries that X11R6 Xt/Xaw programs need.
8737 ac_save_LDFLAGS="$LDFLAGS"
8738 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8739 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8740 # check for ICE first), but we must link in the order -lSM -lICE or
8741 # we get undefined symbols. So assume we have SM if we have ICE.
8742 # These have to be linked with before -lX11, unlike the other
8743 # libraries we check for below, so use a different variable.
8744 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8745 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8746 echo "configure:8747: checking for IceConnectionNumber in -lICE" >&5
8747 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8749 echo $ac_n "(cached) $ac_c" 1>&6
8750 else
8751 ac_save_LIBS="$LIBS"
8752 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8753 cat > conftest.$ac_ext <<EOF
8754 #line 8755 "configure"
8755 #include "confdefs.h"
8756 /* Override any gcc2 internal prototype to avoid an error. */
8757 /* We use char because int might match the return type of a gcc2
8758 builtin and then its argument prototype would still apply. */
8759 char IceConnectionNumber();
8760
8761 int main() {
8762 IceConnectionNumber()
8763 ; return 0; }
8764 EOF
8765 if { (eval echo configure:8766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8766 rm -rf conftest*
8767 eval "ac_cv_lib_$ac_lib_var=yes"
8768 else
8769 echo "configure: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8771 rm -rf conftest*
8772 eval "ac_cv_lib_$ac_lib_var=no"
8773 fi
8774 rm -f conftest*
8775 LIBS="$ac_save_LIBS"
8776
8777 fi
8778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8779 echo "$ac_t""yes" 1>&6
8780 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8781 else
8782 echo "$ac_t""no" 1>&6
8783 fi
8784
8785 LDFLAGS="$ac_save_LDFLAGS"
8786
8787 fi
8788
8789 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8790 LDFLAGS="$LDFLAGS $X_LIBS"
8791
8792 if test "$wxUSE_MOTIF" = 1; then
8793 if test "$no_x" = "yes"; then
8794 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8795 fi
8796
8797 GUI_TK_LIBRARY="$X_LIBS"
8798 TOOLKIT_INCLUDE="$X_CFLAGS"
8799
8800 AFMINSTALL=afminstall
8801
8802
8803 COMPILED_X_PROGRAM=0
8804
8805 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
8806 echo "configure:8807: checking for Motif/Lesstif headers" >&5
8807
8808 ac_find_includes=
8809 for ac_dir in $SEARCH_INCLUDE;
8810 do
8811 if test -f "$ac_dir/Xm/Xm.h"; then
8812 ac_find_includes=$ac_dir
8813 break
8814 fi
8815 done
8816
8817 if test "$ac_find_includes" != "" ; then
8818 echo "$ac_t""found $ac_find_includes" 1>&6
8819 else
8820 cat > conftest.$ac_ext <<EOF
8821 #line 8822 "configure"
8822 #include "confdefs.h"
8823
8824 #include <Xm/Xm.h>
8825
8826 int main() {
8827
8828 int version;
8829
8830 version = xmUseVersion;
8831
8832 ; return 0; }
8833 EOF
8834 if { (eval echo configure:8835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8835 rm -rf conftest*
8836
8837 echo "$ac_t""found in default search path" 1>&6
8838 COMPILED_X_PROGRAM=1
8839
8840 else
8841 echo "configure: failed program was:" >&5
8842 cat conftest.$ac_ext >&5
8843 rm -rf conftest*
8844
8845 echo "$ac_t""no" 1>&6
8846 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8847
8848
8849 fi
8850 rm -f conftest*
8851 fi
8852
8853 if test "$COMPILED_X_PROGRAM" = 0; then
8854 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
8855 echo "configure:8856: checking for Motif/Lesstif library" >&5
8856
8857 ac_find_libraries=
8858 for ac_dir in $SEARCH_LIB;
8859 do
8860 for ac_extension in a so sl; do
8861 if test -f "$ac_dir/libXm.$ac_extension"; then
8862 ac_find_libraries=$ac_dir
8863 break 2
8864 fi
8865 done
8866 done
8867
8868 if test "$ac_find_libraries" != "" ; then
8869
8870 ac_path_to_include=$ac_find_includes
8871 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8872 result=$?
8873 if test $result = 0; then
8874 ac_path_to_include=""
8875 else
8876 ac_path_to_include="-I$ac_find_includes"
8877 fi
8878
8879
8880 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8881 result=$?
8882 if test $result = 0; then
8883 ac_path_to_link=""
8884 else
8885 ac_path_to_link="-L$ac_find_libraries"
8886 fi
8887
8888
8889 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8890 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8891 echo "$ac_t""found at $ac_find_libraries" 1>&6
8892 else
8893 cat > conftest.$ac_ext <<EOF
8894 #line 8895 "configure"
8895 #include "confdefs.h"
8896
8897 #include <Xm/Xm.h>
8898
8899 int main() {
8900
8901 int version;
8902
8903 version = xmUseVersion;
8904
8905 ; return 0; }
8906 EOF
8907 if { (eval echo configure:8908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8908 rm -rf conftest*
8909
8910 echo "$ac_t""found in default search path" 1>&6
8911 COMPILED_X_PROGRAM=1
8912
8913 else
8914 echo "configure: failed program was:" >&5
8915 cat conftest.$ac_ext >&5
8916 rm -rf conftest*
8917
8918 echo "$ac_t""no" 1>&6
8919 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8920
8921
8922 fi
8923 rm -f conftest*
8924 fi
8925 fi
8926
8927
8928 XPM_LINK=""
8929 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8930 echo "configure:8931: checking for Xpm library" >&5
8931
8932 ac_find_libraries=
8933 for ac_dir in $SEARCH_LIB;
8934 do
8935 for ac_extension in a so sl; do
8936 if test -f "$ac_dir/libXpm.$ac_extension"; then
8937 ac_find_libraries=$ac_dir
8938 break 2
8939 fi
8940 done
8941 done
8942
8943 if test "$ac_find_libraries" != "" ; then
8944
8945 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8946 result=$?
8947 if test $result = 0; then
8948 ac_path_to_link=""
8949 else
8950 ac_path_to_link="-L$ac_find_libraries"
8951 fi
8952
8953 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8954 XPM_LINK="-lXpm "
8955 cat >> confdefs.h <<\EOF
8956 #define wxHAVE_LIB_XPM 1
8957 EOF
8958
8959 echo "$ac_t""found at $ac_find_libraries" 1>&6
8960 else
8961 cat > conftest.$ac_ext <<EOF
8962 #line 8963 "configure"
8963 #include "confdefs.h"
8964
8965 #include <X11/xpm.h>
8966
8967 int main() {
8968
8969 int version;
8970
8971 version = XpmLibraryVersion();
8972
8973 ; return 0; }
8974 EOF
8975 if { (eval echo configure:8976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8976 rm -rf conftest*
8977
8978 XPM_LINK="-lXpm "
8979 cat >> confdefs.h <<\EOF
8980 #define wxHAVE_LIB_XPM 1
8981 EOF
8982
8983 echo "$ac_t""found in default search path" 1>&6
8984 COMPILED_X_PROGRAM=0
8985
8986 else
8987 echo "configure: failed program was:" >&5
8988 cat conftest.$ac_ext >&5
8989 rm -rf conftest*
8990
8991 echo "$ac_t""no" 1>&6
8992 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8993
8994
8995 fi
8996 rm -f conftest*
8997 fi
8998
8999 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
9000 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9001 TOOLKIT=MOTIF
9002
9003 GUIHEADERS="\$(MOTIF_HEADERS)"
9004 GUIOBJS="\$(MOTIF_GUIOBJS)"
9005 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
9006 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
9007 GUIDEPS="\$(MOTIF_GUIDEPS)"
9008 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
9009 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
9010 UNIXOBJS="\$(UNIX_OBJS)"
9011 UNIXDEPS="\$(UNIX_DEPS)"
9012 GUIDIST=MOTIF_DIST
9013 fi
9014
9015 if test "$wxUSE_MAC" = 1; then
9016 TOOLKIT=MAC
9017 UNIXOBJS="\$(UNIX_OBJS)"
9018 UNIXDEPS="\$(UNIX_DEPS)"
9019 GUIDIST=MACX_DIST
9020 fi
9021
9022 if test "$wxUSE_PM" = 1; then
9023 TOOLKIT=PM
9024
9025 GUIOBJS="\$(PM_GUIOBJS)"
9026 GUIHEADERS="\$(PM_HEADERS)"
9027 COMMONOBJS="\$(PM_COMMONOBJS)"
9028 GENERICOBJS="\$(PM_GENERICOBJS)"
9029 GUIDEPS="\$(PM_GUIDEPS)"
9030 COMMONDEPS="\$(PM_COMMONDEPS)"
9031 GENERICDEPS="\$(PM_GENERICDEPS)"
9032 UNIXOBJS=
9033 UNIXDEPS=
9034 GUIDIST=GTK_DIST
9035 fi
9036
9037 if test "$TOOLKIT" != "PM" ; then
9038 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
9039 else
9040 TOOLKIT_DIR="os2"
9041 fi
9042
9043 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9044 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9045 else
9046 TOOLKIT_NAME="${TOOLKIT_DIR}"
9047 fi
9048
9049 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
9050
9051 WX_LIBRARY="wx_${TOOLKIT_NAME}"
9052
9053 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
9054
9055 if test "$TOOLKIT" != "MSW"; then
9056 if test "$wxUSE_ODBC" = "yes" ; then
9057 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
9058 fi
9059 fi
9060
9061 if test "$wxUSE_LIBJPEG" = "yes" ; then
9062 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
9063 fi
9064 if test "$wxUSE_LIBTIFF" = "yes" ; then
9065 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
9066 fi
9067 if test "$wxUSE_LIBPNG" = "yes" ; then
9068 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
9069 fi
9070 if test "$wxUSE_ZLIB" = "yes" ; then
9071 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9072 fi
9073 if test "$wxUSE_FREETYPE" = "yes" ; then
9074 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
9075 fi
9076 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
9077
9078 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
9079 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
9080 RPM_SPEC="wx\$(TOOLKIT).spec"
9081
9082 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
9083 DISTDIR="wx\$(TOOLKIT)"
9084 else
9085 USE_GUI=0
9086
9087 TOOLKIT_DIR="base"
9088
9089 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9090 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9091 else
9092 TOOLKIT_NAME="${TOOLKIT_DIR}"
9093 fi
9094
9095 TOOLKIT_DEF="-D__WXBASE__"
9096
9097 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
9098 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
9099
9100 if test "$wxUSE_ZLIB" = "yes" ; then
9101 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9102 fi
9103
9104 WX_LIBRARY="wx_${TOOLKIT_NAME}"
9105
9106 PORT_FILES="src/files.lst"
9107 RPM_FILES="src/rpmfiles.lst"
9108 RPM_SPEC="wxBase.spec"
9109
9110 GUIDIST="BASE_DIST"
9111 DISTDIR="wxBase"
9112
9113 if test "$USE_UNIX" = 1 ; then
9114 ALL_OBJECTS="${ALL_OBJECTS} dl_macosx.o"
9115 ALL_DEPFILES="${ALL_DEPFILES} dl_macosx.d"
9116 fi
9117 fi
9118
9119 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
9120 WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
9121
9122 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
9123 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
9124
9125 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
9126 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
9127
9128 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
9129 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
9130 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
9131 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
9132 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
9133 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
9134
9135 SHARED_LD=
9136 PIC_FLAG=
9137 WX_ALL=
9138 WX_ALL_INSTALLED=
9139 BURNT_LIBRARY_NAME=
9140 WX_TARGET_LIBRARY_SONAME=
9141
9142
9143 if test "$wxUSE_SHARED" = "yes"; then
9144 case "${host}" in
9145 *-hp-hpux* )
9146 if test "$GCC" = yes ; then
9147 SHARED_LD="${CC} -shared -fPIC -o"
9148 PIC_FLAG="-fPIC"
9149 else
9150 LDFLAGS="-L/usr/lib"
9151
9152 SHARED_LD="${CXX} -b -o"
9153 PIC_FLAG="+Z"
9154 fi
9155 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
9156 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
9157 if test "$wxUSE_OPENGL" = "yes"; then
9158 WX_ALL_INSTALLED="preinstall_gl"
9159 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
9160 else
9161 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
9162 fi
9163 ;;
9164
9165 *-*-linux* )
9166 SHARED_LD="${CC} -shared -o"
9167 PIC_FLAG="-fPIC"
9168 if test "$wxUSE_BURNT_NAME" = "yes" ; then
9169 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
9170 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
9171 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
9172 fi
9173 if test "$wxUSE_OPENGL" = "yes"; then
9174 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9175 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9176 else
9177 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9178 WX_ALL="CREATE_LINKS"
9179 fi
9180 ;;
9181 *-*-irix5* | *-*-irix6* )
9182 if test "$GCC" = yes ; then
9183 SHARED_LD="${CC} -shared -o"
9184 PIC_FLAG="-fPIC"
9185 else
9186 SHARED_LD="${CXX} -shared -o"
9187 fi
9188 if test "$wxUSE_OPENGL" = "yes"; then
9189 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9190 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9191 else
9192 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9193 WX_ALL="CREATE_LINKS"
9194 fi
9195 ;;
9196 *-*-solaris2* )
9197 if test "$GCC" = yes ; then
9198 SHARED_LD="${CC} -shared -o"
9199 PIC_FLAG="-fPIC"
9200
9201 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
9202 else
9203 SHARED_LD="${CXX} -G -o"
9204 PIC_FLAG="-KPIC"
9205 fi
9206 if test "$wxUSE_OPENGL" = "yes"; then
9207 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9208 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9209 else
9210 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9211 WX_ALL="CREATE_LINKS"
9212 fi
9213 ;;
9214 *-*-sunos4* )
9215 SHARED_LD="${CC} -shared -o"
9216 PIC_FLAG="-fPIC"
9217 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9218 WX_ALL="CREATE_LINKS"
9219 ;;
9220 *-*-freebsd* | *-*-netbsd* )
9221 SHARED_LD="${CC} -shared -o"
9222 PIC_FLAG="-fPIC"
9223 if test "$wxUSE_OPENGL" = "yes"; then
9224 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9225 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9226 else
9227 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9228 WX_ALL="CREATE_LINKS"
9229 fi
9230 ;;
9231 *-*-darwin* )
9232 SHARED_LD="libtool -dynamic -o"
9233 PIC_FLAG="-fPIC"
9234 if test "$wxUSE_OPENGL" = "yes"; then
9235 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9236 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9237 else
9238 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9239 WX_ALL="CREATE_LINKS"
9240 fi
9241 ;;
9242 *-*-osf* )
9243 SHARED_LD="${CXX} -shared -o"
9244 PIC_FLAG="-fPIC"
9245 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9246 WX_ALL="CREATE_LINKS"
9247 ;;
9248 *-*-dgux5* )
9249 SHARED_LD="${CXX} -shared -o"
9250 PIC_FLAG="-fPIC"
9251 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9252 WX_ALL="CREATE_LINKS"
9253 ;;
9254 *-*-sysv5* )
9255 SHARED_LD="${CC} -shared -o"
9256 PIC_FLAG="-fPIC"
9257 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9258 WX_ALL="CREATE_LINKS"
9259 ;;
9260 *-*-aix* )
9261 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
9262 WX_ALL=${WX_LIBRARY_NAME_SHARED}
9263 ;;
9264 *-*-cygwin32* )
9265 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9266 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
9267 if test "$wxUSE_OPENGL" = "yes"; then
9268 WX_ALL_INSTALLED="preinstall_gl"
9269 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9270 else
9271 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9272 fi
9273 ;;
9274 *-*-mingw32* )
9275 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9276 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
9277 if test "$wxUSE_OPENGL" = "yes"; then
9278 WX_ALL_INSTALLED="preinstall_gl"
9279 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9280 else
9281 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9282 fi
9283 ;;
9284 *-pc-os2_emx )
9285 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9286 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9287 ;;
9288 *-*-beos* )
9289 SHARED_LD="${LD} -shared -o"
9290 PIC_FLAG="-fPIC"
9291 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9292 WX_ALL="CREATE_LINKS"
9293 ;;
9294 *)
9295 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
9296 esac
9297
9298 if test "x$WX_TARGET_LIBRARY" = "x"; then
9299 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
9300 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
9301 fi
9302 WX_TARGET_LIBRARY_TYPE="so"
9303 else
9304 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9305 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
9306
9307 if test "$wxUSE_OPENGL" = "yes"; then
9308 WX_ALL_INSTALLED="preinstall_gl"
9309 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9310 else
9311 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9312 fi
9313
9314 if test "$wxUSE_GUI" = "no"; then
9315 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
9316 fi
9317
9318 WX_TARGET_LIBRARY_TYPE="a"
9319 fi
9320
9321
9322 for ac_hdr in strings.h
9323 do
9324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9326 echo "configure:9327: checking for $ac_hdr" >&5
9327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9328 echo $ac_n "(cached) $ac_c" 1>&6
9329 else
9330 cat > conftest.$ac_ext <<EOF
9331 #line 9332 "configure"
9332 #include "confdefs.h"
9333 #include <$ac_hdr>
9334 EOF
9335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9336 { (eval echo configure:9337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9338 if test -z "$ac_err"; then
9339 rm -rf conftest*
9340 eval "ac_cv_header_$ac_safe=yes"
9341 else
9342 echo "$ac_err" >&5
9343 echo "configure: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9345 rm -rf conftest*
9346 eval "ac_cv_header_$ac_safe=no"
9347 fi
9348 rm -f conftest*
9349 fi
9350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9351 echo "$ac_t""yes" 1>&6
9352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9353 cat >> confdefs.h <<EOF
9354 #define $ac_tr_hdr 1
9355 EOF
9356
9357 else
9358 echo "$ac_t""no" 1>&6
9359 fi
9360 done
9361
9362 for ac_hdr in unistd.h
9363 do
9364 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9365 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9366 echo "configure:9367: checking for $ac_hdr" >&5
9367 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9368 echo $ac_n "(cached) $ac_c" 1>&6
9369 else
9370 cat > conftest.$ac_ext <<EOF
9371 #line 9372 "configure"
9372 #include "confdefs.h"
9373 #include <$ac_hdr>
9374 EOF
9375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9376 { (eval echo configure:9377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9378 if test -z "$ac_err"; then
9379 rm -rf conftest*
9380 eval "ac_cv_header_$ac_safe=yes"
9381 else
9382 echo "$ac_err" >&5
9383 echo "configure: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9385 rm -rf conftest*
9386 eval "ac_cv_header_$ac_safe=no"
9387 fi
9388 rm -f conftest*
9389 fi
9390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9391 echo "$ac_t""yes" 1>&6
9392 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9393 cat >> confdefs.h <<EOF
9394 #define $ac_tr_hdr 1
9395 EOF
9396
9397 else
9398 echo "$ac_t""no" 1>&6
9399 fi
9400 done
9401
9402 for ac_hdr in fcntl.h
9403 do
9404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9406 echo "configure:9407: checking for $ac_hdr" >&5
9407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9408 echo $ac_n "(cached) $ac_c" 1>&6
9409 else
9410 cat > conftest.$ac_ext <<EOF
9411 #line 9412 "configure"
9412 #include "confdefs.h"
9413 #include <$ac_hdr>
9414 EOF
9415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9416 { (eval echo configure:9417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9418 if test -z "$ac_err"; then
9419 rm -rf conftest*
9420 eval "ac_cv_header_$ac_safe=yes"
9421 else
9422 echo "$ac_err" >&5
9423 echo "configure: failed program was:" >&5
9424 cat conftest.$ac_ext >&5
9425 rm -rf conftest*
9426 eval "ac_cv_header_$ac_safe=no"
9427 fi
9428 rm -f conftest*
9429 fi
9430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9431 echo "$ac_t""yes" 1>&6
9432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9433 cat >> confdefs.h <<EOF
9434 #define $ac_tr_hdr 1
9435 EOF
9436
9437 else
9438 echo "$ac_t""no" 1>&6
9439 fi
9440 done
9441
9442 for ac_hdr in wchar.h
9443 do
9444 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9445 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9446 echo "configure:9447: checking for $ac_hdr" >&5
9447 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
9449 else
9450 cat > conftest.$ac_ext <<EOF
9451 #line 9452 "configure"
9452 #include "confdefs.h"
9453 #include <$ac_hdr>
9454 EOF
9455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9456 { (eval echo configure:9457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9458 if test -z "$ac_err"; then
9459 rm -rf conftest*
9460 eval "ac_cv_header_$ac_safe=yes"
9461 else
9462 echo "$ac_err" >&5
9463 echo "configure: failed program was:" >&5
9464 cat conftest.$ac_ext >&5
9465 rm -rf conftest*
9466 eval "ac_cv_header_$ac_safe=no"
9467 fi
9468 rm -f conftest*
9469 fi
9470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9471 echo "$ac_t""yes" 1>&6
9472 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9473 cat >> confdefs.h <<EOF
9474 #define $ac_tr_hdr 1
9475 EOF
9476
9477 else
9478 echo "$ac_t""no" 1>&6
9479 fi
9480 done
9481
9482 for ac_hdr in wcstr.h
9483 do
9484 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9486 echo "configure:9487: checking for $ac_hdr" >&5
9487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9488 echo $ac_n "(cached) $ac_c" 1>&6
9489 else
9490 cat > conftest.$ac_ext <<EOF
9491 #line 9492 "configure"
9492 #include "confdefs.h"
9493 #include <$ac_hdr>
9494 EOF
9495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9496 { (eval echo configure:9497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9498 if test -z "$ac_err"; then
9499 rm -rf conftest*
9500 eval "ac_cv_header_$ac_safe=yes"
9501 else
9502 echo "$ac_err" >&5
9503 echo "configure: failed program was:" >&5
9504 cat conftest.$ac_ext >&5
9505 rm -rf conftest*
9506 eval "ac_cv_header_$ac_safe=no"
9507 fi
9508 rm -f conftest*
9509 fi
9510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9511 echo "$ac_t""yes" 1>&6
9512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9513 cat >> confdefs.h <<EOF
9514 #define $ac_tr_hdr 1
9515 EOF
9516
9517 else
9518 echo "$ac_t""no" 1>&6
9519 fi
9520 done
9521
9522 for ac_hdr in fnmatch.h
9523 do
9524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9526 echo "configure:9527: checking for $ac_hdr" >&5
9527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9528 echo $ac_n "(cached) $ac_c" 1>&6
9529 else
9530 cat > conftest.$ac_ext <<EOF
9531 #line 9532 "configure"
9532 #include "confdefs.h"
9533 #include <$ac_hdr>
9534 EOF
9535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9536 { (eval echo configure:9537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9538 if test -z "$ac_err"; then
9539 rm -rf conftest*
9540 eval "ac_cv_header_$ac_safe=yes"
9541 else
9542 echo "$ac_err" >&5
9543 echo "configure: failed program was:" >&5
9544 cat conftest.$ac_ext >&5
9545 rm -rf conftest*
9546 eval "ac_cv_header_$ac_safe=no"
9547 fi
9548 rm -f conftest*
9549 fi
9550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9551 echo "$ac_t""yes" 1>&6
9552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9553 cat >> confdefs.h <<EOF
9554 #define $ac_tr_hdr 1
9555 EOF
9556
9557 else
9558 echo "$ac_t""no" 1>&6
9559 fi
9560 done
9561
9562 for ac_hdr in iconv.h
9563 do
9564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9566 echo "configure:9567: checking for $ac_hdr" >&5
9567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9568 echo $ac_n "(cached) $ac_c" 1>&6
9569 else
9570 cat > conftest.$ac_ext <<EOF
9571 #line 9572 "configure"
9572 #include "confdefs.h"
9573 #include <$ac_hdr>
9574 EOF
9575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9576 { (eval echo configure:9577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9578 if test -z "$ac_err"; then
9579 rm -rf conftest*
9580 eval "ac_cv_header_$ac_safe=yes"
9581 else
9582 echo "$ac_err" >&5
9583 echo "configure: failed program was:" >&5
9584 cat conftest.$ac_ext >&5
9585 rm -rf conftest*
9586 eval "ac_cv_header_$ac_safe=no"
9587 fi
9588 rm -f conftest*
9589 fi
9590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9591 echo "$ac_t""yes" 1>&6
9592 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9593 cat >> confdefs.h <<EOF
9594 #define $ac_tr_hdr 1
9595 EOF
9596
9597 else
9598 echo "$ac_t""no" 1>&6
9599 fi
9600 done
9601
9602 for ac_hdr in langinfo.h
9603 do
9604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9605 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9606 echo "configure:9607: checking for $ac_hdr" >&5
9607 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9608 echo $ac_n "(cached) $ac_c" 1>&6
9609 else
9610 cat > conftest.$ac_ext <<EOF
9611 #line 9612 "configure"
9612 #include "confdefs.h"
9613 #include <$ac_hdr>
9614 EOF
9615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9616 { (eval echo configure:9617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9618 if test -z "$ac_err"; then
9619 rm -rf conftest*
9620 eval "ac_cv_header_$ac_safe=yes"
9621 else
9622 echo "$ac_err" >&5
9623 echo "configure: failed program was:" >&5
9624 cat conftest.$ac_ext >&5
9625 rm -rf conftest*
9626 eval "ac_cv_header_$ac_safe=no"
9627 fi
9628 rm -f conftest*
9629 fi
9630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9631 echo "$ac_t""yes" 1>&6
9632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9633 cat >> confdefs.h <<EOF
9634 #define $ac_tr_hdr 1
9635 EOF
9636
9637 else
9638 echo "$ac_t""no" 1>&6
9639 fi
9640 done
9641
9642
9643 if test "$wxUSE_GUI" = "yes"; then
9644 if test "$wxUSE_UNIX" = "yes"; then
9645 for ac_hdr in X11/XKBlib.h
9646 do
9647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9649 echo "configure:9650: checking for $ac_hdr" >&5
9650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9651 echo $ac_n "(cached) $ac_c" 1>&6
9652 else
9653 cat > conftest.$ac_ext <<EOF
9654 #line 9655 "configure"
9655 #include "confdefs.h"
9656 #include <$ac_hdr>
9657 EOF
9658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9659 { (eval echo configure:9660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9661 if test -z "$ac_err"; then
9662 rm -rf conftest*
9663 eval "ac_cv_header_$ac_safe=yes"
9664 else
9665 echo "$ac_err" >&5
9666 echo "configure: failed program was:" >&5
9667 cat conftest.$ac_ext >&5
9668 rm -rf conftest*
9669 eval "ac_cv_header_$ac_safe=no"
9670 fi
9671 rm -f conftest*
9672 fi
9673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9674 echo "$ac_t""yes" 1>&6
9675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9676 cat >> confdefs.h <<EOF
9677 #define $ac_tr_hdr 1
9678 EOF
9679
9680 else
9681 echo "$ac_t""no" 1>&6
9682 fi
9683 done
9684
9685 fi
9686 fi
9687
9688
9689 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9690 echo "configure:9691: checking for ANSI C header files" >&5
9691 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9692 echo $ac_n "(cached) $ac_c" 1>&6
9693 else
9694 cat > conftest.$ac_ext <<EOF
9695 #line 9696 "configure"
9696 #include "confdefs.h"
9697 #include <stdlib.h>
9698 #include <stdarg.h>
9699 #include <string.h>
9700 #include <float.h>
9701 EOF
9702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9703 { (eval echo configure:9704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9705 if test -z "$ac_err"; then
9706 rm -rf conftest*
9707 ac_cv_header_stdc=yes
9708 else
9709 echo "$ac_err" >&5
9710 echo "configure: failed program was:" >&5
9711 cat conftest.$ac_ext >&5
9712 rm -rf conftest*
9713 ac_cv_header_stdc=no
9714 fi
9715 rm -f conftest*
9716
9717 if test $ac_cv_header_stdc = yes; then
9718 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9719 cat > conftest.$ac_ext <<EOF
9720 #line 9721 "configure"
9721 #include "confdefs.h"
9722 #include <string.h>
9723 EOF
9724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9725 egrep "memchr" >/dev/null 2>&1; then
9726 :
9727 else
9728 rm -rf conftest*
9729 ac_cv_header_stdc=no
9730 fi
9731 rm -f conftest*
9732
9733 fi
9734
9735 if test $ac_cv_header_stdc = yes; then
9736 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9737 cat > conftest.$ac_ext <<EOF
9738 #line 9739 "configure"
9739 #include "confdefs.h"
9740 #include <stdlib.h>
9741 EOF
9742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9743 egrep "free" >/dev/null 2>&1; then
9744 :
9745 else
9746 rm -rf conftest*
9747 ac_cv_header_stdc=no
9748 fi
9749 rm -f conftest*
9750
9751 fi
9752
9753 if test $ac_cv_header_stdc = yes; then
9754 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9755 if test "$cross_compiling" = yes; then
9756 :
9757 else
9758 cat > conftest.$ac_ext <<EOF
9759 #line 9760 "configure"
9760 #include "confdefs.h"
9761 #include <ctype.h>
9762 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9763 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9765 int main () { int i; for (i = 0; i < 256; i++)
9766 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9767 exit (0); }
9768
9769 EOF
9770 if { (eval echo configure:9771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9771 then
9772 :
9773 else
9774 echo "configure: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9776 rm -fr conftest*
9777 ac_cv_header_stdc=no
9778 fi
9779 rm -fr conftest*
9780 fi
9781
9782 fi
9783 fi
9784
9785 echo "$ac_t""$ac_cv_header_stdc" 1>&6
9786 if test $ac_cv_header_stdc = yes; then
9787 cat >> confdefs.h <<\EOF
9788 #define STDC_HEADERS 1
9789 EOF
9790
9791 fi
9792
9793 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9794 echo "configure:9795: checking for mode_t" >&5
9795 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9796 echo $ac_n "(cached) $ac_c" 1>&6
9797 else
9798 cat > conftest.$ac_ext <<EOF
9799 #line 9800 "configure"
9800 #include "confdefs.h"
9801 #include <sys/types.h>
9802 #if STDC_HEADERS
9803 #include <stdlib.h>
9804 #include <stddef.h>
9805 #endif
9806 EOF
9807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9808 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9809 rm -rf conftest*
9810 ac_cv_type_mode_t=yes
9811 else
9812 rm -rf conftest*
9813 ac_cv_type_mode_t=no
9814 fi
9815 rm -f conftest*
9816
9817 fi
9818 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9819 if test $ac_cv_type_mode_t = no; then
9820 cat >> confdefs.h <<\EOF
9821 #define mode_t int
9822 EOF
9823
9824 fi
9825
9826 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9827 echo "configure:9828: checking for off_t" >&5
9828 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
9830 else
9831 cat > conftest.$ac_ext <<EOF
9832 #line 9833 "configure"
9833 #include "confdefs.h"
9834 #include <sys/types.h>
9835 #if STDC_HEADERS
9836 #include <stdlib.h>
9837 #include <stddef.h>
9838 #endif
9839 EOF
9840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9841 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9842 rm -rf conftest*
9843 ac_cv_type_off_t=yes
9844 else
9845 rm -rf conftest*
9846 ac_cv_type_off_t=no
9847 fi
9848 rm -f conftest*
9849
9850 fi
9851 echo "$ac_t""$ac_cv_type_off_t" 1>&6
9852 if test $ac_cv_type_off_t = no; then
9853 cat >> confdefs.h <<\EOF
9854 #define off_t long
9855 EOF
9856
9857 fi
9858
9859 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9860 echo "configure:9861: checking for pid_t" >&5
9861 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9862 echo $ac_n "(cached) $ac_c" 1>&6
9863 else
9864 cat > conftest.$ac_ext <<EOF
9865 #line 9866 "configure"
9866 #include "confdefs.h"
9867 #include <sys/types.h>
9868 #if STDC_HEADERS
9869 #include <stdlib.h>
9870 #include <stddef.h>
9871 #endif
9872 EOF
9873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9874 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9875 rm -rf conftest*
9876 ac_cv_type_pid_t=yes
9877 else
9878 rm -rf conftest*
9879 ac_cv_type_pid_t=no
9880 fi
9881 rm -f conftest*
9882
9883 fi
9884 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9885 if test $ac_cv_type_pid_t = no; then
9886 cat >> confdefs.h <<\EOF
9887 #define pid_t int
9888 EOF
9889
9890 fi
9891
9892 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9893 echo "configure:9894: checking for size_t" >&5
9894 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9895 echo $ac_n "(cached) $ac_c" 1>&6
9896 else
9897 cat > conftest.$ac_ext <<EOF
9898 #line 9899 "configure"
9899 #include "confdefs.h"
9900 #include <sys/types.h>
9901 #if STDC_HEADERS
9902 #include <stdlib.h>
9903 #include <stddef.h>
9904 #endif
9905 EOF
9906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9907 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9908 rm -rf conftest*
9909 ac_cv_type_size_t=yes
9910 else
9911 rm -rf conftest*
9912 ac_cv_type_size_t=no
9913 fi
9914 rm -f conftest*
9915
9916 fi
9917 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9918 if test $ac_cv_type_size_t = no; then
9919 cat >> confdefs.h <<\EOF
9920 #define size_t unsigned
9921 EOF
9922
9923 fi
9924
9925 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9926 echo "configure:9927: checking for uid_t in sys/types.h" >&5
9927 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9928 echo $ac_n "(cached) $ac_c" 1>&6
9929 else
9930 cat > conftest.$ac_ext <<EOF
9931 #line 9932 "configure"
9932 #include "confdefs.h"
9933 #include <sys/types.h>
9934 EOF
9935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9936 egrep "uid_t" >/dev/null 2>&1; then
9937 rm -rf conftest*
9938 ac_cv_type_uid_t=yes
9939 else
9940 rm -rf conftest*
9941 ac_cv_type_uid_t=no
9942 fi
9943 rm -f conftest*
9944
9945 fi
9946
9947 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9948 if test $ac_cv_type_uid_t = no; then
9949 cat >> confdefs.h <<\EOF
9950 #define uid_t int
9951 EOF
9952
9953 cat >> confdefs.h <<\EOF
9954 #define gid_t int
9955 EOF
9956
9957 fi
9958
9959
9960
9961 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
9962 echo "configure:9963: checking for pw_gecos in struct passwd" >&5
9963 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9964 echo $ac_n "(cached) $ac_c" 1>&6
9965 else
9966
9967 cat > conftest.$ac_ext <<EOF
9968 #line 9969 "configure"
9969 #include "confdefs.h"
9970 #include <pwd.h>
9971 int main() {
9972
9973 char *p;
9974 struct passwd *pw;
9975 p = pw->pw_gecos;
9976
9977 ; return 0; }
9978 EOF
9979 if { (eval echo configure:9980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9980 rm -rf conftest*
9981
9982 wx_cv_struct_pw_gecos=yes
9983
9984 else
9985 echo "configure: failed program was:" >&5
9986 cat conftest.$ac_ext >&5
9987 rm -rf conftest*
9988
9989 wx_cv_struct_pw_gecos=no
9990
9991
9992 fi
9993 rm -f conftest*
9994
9995
9996 fi
9997
9998 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9999
10000 if test "$wx_cv_struct_pw_gecos" = "yes"; then
10001 cat >> confdefs.h <<\EOF
10002 #define HAVE_PW_GECOS 1
10003 EOF
10004
10005 fi
10006
10007
10008 echo $ac_n "checking for working const""... $ac_c" 1>&6
10009 echo "configure:10010: checking for working const" >&5
10010 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
10012 else
10013 cat > conftest.$ac_ext <<EOF
10014 #line 10015 "configure"
10015 #include "confdefs.h"
10016
10017 int main() {
10018
10019 /* Ultrix mips cc rejects this. */
10020 typedef int charset[2]; const charset x;
10021 /* SunOS 4.1.1 cc rejects this. */
10022 char const *const *ccp;
10023 char **p;
10024 /* NEC SVR4.0.2 mips cc rejects this. */
10025 struct point {int x, y;};
10026 static struct point const zero = {0,0};
10027 /* AIX XL C 1.02.0.0 rejects this.
10028 It does not let you subtract one const X* pointer from another in an arm
10029 of an if-expression whose if-part is not a constant expression */
10030 const char *g = "string";
10031 ccp = &g + (g ? g-g : 0);
10032 /* HPUX 7.0 cc rejects these. */
10033 ++ccp;
10034 p = (char**) ccp;
10035 ccp = (char const *const *) p;
10036 { /* SCO 3.2v4 cc rejects this. */
10037 char *t;
10038 char const *s = 0 ? (char *) 0 : (char const *) 0;
10039
10040 *t++ = 0;
10041 }
10042 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10043 int x[] = {25, 17};
10044 const int *foo = &x[0];
10045 ++foo;
10046 }
10047 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10048 typedef const int *iptr;
10049 iptr p = 0;
10050 ++p;
10051 }
10052 { /* AIX XL C 1.02.0.0 rejects this saying
10053 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10054 struct s { int j; const int *ap[3]; };
10055 struct s *b; b->j = 5;
10056 }
10057 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10058 const int foo = 10;
10059 }
10060
10061 ; return 0; }
10062 EOF
10063 if { (eval echo configure:10064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10064 rm -rf conftest*
10065 ac_cv_c_const=yes
10066 else
10067 echo "configure: failed program was:" >&5
10068 cat conftest.$ac_ext >&5
10069 rm -rf conftest*
10070 ac_cv_c_const=no
10071 fi
10072 rm -f conftest*
10073 fi
10074
10075 echo "$ac_t""$ac_cv_c_const" 1>&6
10076 if test $ac_cv_c_const = no; then
10077 cat >> confdefs.h <<\EOF
10078 #define const
10079 EOF
10080
10081 fi
10082
10083 echo $ac_n "checking for inline""... $ac_c" 1>&6
10084 echo "configure:10085: checking for inline" >&5
10085 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10086 echo $ac_n "(cached) $ac_c" 1>&6
10087 else
10088 ac_cv_c_inline=no
10089 for ac_kw in inline __inline__ __inline; do
10090 cat > conftest.$ac_ext <<EOF
10091 #line 10092 "configure"
10092 #include "confdefs.h"
10093
10094 int main() {
10095 } $ac_kw foo() {
10096 ; return 0; }
10097 EOF
10098 if { (eval echo configure:10099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10099 rm -rf conftest*
10100 ac_cv_c_inline=$ac_kw; break
10101 else
10102 echo "configure: failed program was:" >&5
10103 cat conftest.$ac_ext >&5
10104 fi
10105 rm -f conftest*
10106 done
10107
10108 fi
10109
10110 echo "$ac_t""$ac_cv_c_inline" 1>&6
10111 case "$ac_cv_c_inline" in
10112 inline | yes) ;;
10113 no) cat >> confdefs.h <<\EOF
10114 #define inline
10115 EOF
10116 ;;
10117 *) cat >> confdefs.h <<EOF
10118 #define inline $ac_cv_c_inline
10119 EOF
10120 ;;
10121 esac
10122
10123
10124 echo $ac_n "checking size of char""... $ac_c" 1>&6
10125 echo "configure:10126: checking size of char" >&5
10126 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10127 echo $ac_n "(cached) $ac_c" 1>&6
10128 else
10129 if test "$cross_compiling" = yes; then
10130 ac_cv_sizeof_char=1
10131 else
10132 cat > conftest.$ac_ext <<EOF
10133 #line 10134 "configure"
10134 #include "confdefs.h"
10135 #include <stdio.h>
10136 main()
10137 {
10138 FILE *f=fopen("conftestval", "w");
10139 if (!f) exit(1);
10140 fprintf(f, "%d\n", sizeof(char));
10141 exit(0);
10142 }
10143 EOF
10144 if { (eval echo configure:10145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10145 then
10146 ac_cv_sizeof_char=`cat conftestval`
10147 else
10148 echo "configure: failed program was:" >&5
10149 cat conftest.$ac_ext >&5
10150 rm -fr conftest*
10151 ac_cv_sizeof_char=0
10152 fi
10153 rm -fr conftest*
10154 fi
10155
10156 fi
10157 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10158 cat >> confdefs.h <<EOF
10159 #define SIZEOF_CHAR $ac_cv_sizeof_char
10160 EOF
10161
10162
10163 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10164 echo "configure:10165: checking size of wchar_t" >&5
10165 if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
10166 echo $ac_n "(cached) $ac_c" 1>&6
10167 else
10168 if test "$cross_compiling" = yes; then
10169 ac_cv_sizeof_wchar_t=4
10170 else
10171 cat > conftest.$ac_ext <<EOF
10172 #line 10173 "configure"
10173 #include "confdefs.h"
10174 #include <stdio.h>
10175 main()
10176 {
10177 FILE *f=fopen("conftestval", "w");
10178 if (!f) exit(1);
10179 fprintf(f, "%d\n", sizeof(wchar_t));
10180 exit(0);
10181 }
10182 EOF
10183 if { (eval echo configure:10184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10184 then
10185 ac_cv_sizeof_wchar_t=`cat conftestval`
10186 else
10187 echo "configure: failed program was:" >&5
10188 cat conftest.$ac_ext >&5
10189 rm -fr conftest*
10190 ac_cv_sizeof_wchar_t=0
10191 fi
10192 rm -fr conftest*
10193 fi
10194
10195 fi
10196 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
10197 cat >> confdefs.h <<EOF
10198 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
10199 EOF
10200
10201
10202 echo $ac_n "checking size of short""... $ac_c" 1>&6
10203 echo "configure:10204: checking size of short" >&5
10204 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10205 echo $ac_n "(cached) $ac_c" 1>&6
10206 else
10207 if test "$cross_compiling" = yes; then
10208 ac_cv_sizeof_short=2
10209 else
10210 cat > conftest.$ac_ext <<EOF
10211 #line 10212 "configure"
10212 #include "confdefs.h"
10213 #include <stdio.h>
10214 main()
10215 {
10216 FILE *f=fopen("conftestval", "w");
10217 if (!f) exit(1);
10218 fprintf(f, "%d\n", sizeof(short));
10219 exit(0);
10220 }
10221 EOF
10222 if { (eval echo configure:10223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10223 then
10224 ac_cv_sizeof_short=`cat conftestval`
10225 else
10226 echo "configure: failed program was:" >&5
10227 cat conftest.$ac_ext >&5
10228 rm -fr conftest*
10229 ac_cv_sizeof_short=0
10230 fi
10231 rm -fr conftest*
10232 fi
10233
10234 fi
10235 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10236 cat >> confdefs.h <<EOF
10237 #define SIZEOF_SHORT $ac_cv_sizeof_short
10238 EOF
10239
10240
10241 echo $ac_n "checking size of int *""... $ac_c" 1>&6
10242 echo "configure:10243: checking size of int *" >&5
10243 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
10244 echo $ac_n "(cached) $ac_c" 1>&6
10245 else
10246 if test "$cross_compiling" = yes; then
10247 ac_cv_sizeof_int_p=4
10248 else
10249 cat > conftest.$ac_ext <<EOF
10250 #line 10251 "configure"
10251 #include "confdefs.h"
10252 #include <stdio.h>
10253 main()
10254 {
10255 FILE *f=fopen("conftestval", "w");
10256 if (!f) exit(1);
10257 fprintf(f, "%d\n", sizeof(int *));
10258 exit(0);
10259 }
10260 EOF
10261 if { (eval echo configure:10262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10262 then
10263 ac_cv_sizeof_int_p=`cat conftestval`
10264 else
10265 echo "configure: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10267 rm -fr conftest*
10268 ac_cv_sizeof_int_p=0
10269 fi
10270 rm -fr conftest*
10271 fi
10272
10273 fi
10274 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
10275 cat >> confdefs.h <<EOF
10276 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
10277 EOF
10278
10279
10280 echo $ac_n "checking size of int""... $ac_c" 1>&6
10281 echo "configure:10282: checking size of int" >&5
10282 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10283 echo $ac_n "(cached) $ac_c" 1>&6
10284 else
10285 if test "$cross_compiling" = yes; then
10286 ac_cv_sizeof_int=4
10287 else
10288 cat > conftest.$ac_ext <<EOF
10289 #line 10290 "configure"
10290 #include "confdefs.h"
10291 #include <stdio.h>
10292 main()
10293 {
10294 FILE *f=fopen("conftestval", "w");
10295 if (!f) exit(1);
10296 fprintf(f, "%d\n", sizeof(int));
10297 exit(0);
10298 }
10299 EOF
10300 if { (eval echo configure:10301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10301 then
10302 ac_cv_sizeof_int=`cat conftestval`
10303 else
10304 echo "configure: failed program was:" >&5
10305 cat conftest.$ac_ext >&5
10306 rm -fr conftest*
10307 ac_cv_sizeof_int=0
10308 fi
10309 rm -fr conftest*
10310 fi
10311
10312 fi
10313 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10314 cat >> confdefs.h <<EOF
10315 #define SIZEOF_INT $ac_cv_sizeof_int
10316 EOF
10317
10318
10319 echo $ac_n "checking size of long""... $ac_c" 1>&6
10320 echo "configure:10321: checking size of long" >&5
10321 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10322 echo $ac_n "(cached) $ac_c" 1>&6
10323 else
10324 if test "$cross_compiling" = yes; then
10325 ac_cv_sizeof_long=4
10326 else
10327 cat > conftest.$ac_ext <<EOF
10328 #line 10329 "configure"
10329 #include "confdefs.h"
10330 #include <stdio.h>
10331 main()
10332 {
10333 FILE *f=fopen("conftestval", "w");
10334 if (!f) exit(1);
10335 fprintf(f, "%d\n", sizeof(long));
10336 exit(0);
10337 }
10338 EOF
10339 if { (eval echo configure:10340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10340 then
10341 ac_cv_sizeof_long=`cat conftestval`
10342 else
10343 echo "configure: failed program was:" >&5
10344 cat conftest.$ac_ext >&5
10345 rm -fr conftest*
10346 ac_cv_sizeof_long=0
10347 fi
10348 rm -fr conftest*
10349 fi
10350
10351 fi
10352 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10353 cat >> confdefs.h <<EOF
10354 #define SIZEOF_LONG $ac_cv_sizeof_long
10355 EOF
10356
10357
10358 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10359 echo "configure:10360: checking size of long long" >&5
10360 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10361 echo $ac_n "(cached) $ac_c" 1>&6
10362 else
10363 if test "$cross_compiling" = yes; then
10364 ac_cv_sizeof_long_long=0
10365 else
10366 cat > conftest.$ac_ext <<EOF
10367 #line 10368 "configure"
10368 #include "confdefs.h"
10369 #include <stdio.h>
10370 main()
10371 {
10372 FILE *f=fopen("conftestval", "w");
10373 if (!f) exit(1);
10374 fprintf(f, "%d\n", sizeof(long long));
10375 exit(0);
10376 }
10377 EOF
10378 if { (eval echo configure:10379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10379 then
10380 ac_cv_sizeof_long_long=`cat conftestval`
10381 else
10382 echo "configure: failed program was:" >&5
10383 cat conftest.$ac_ext >&5
10384 rm -fr conftest*
10385 ac_cv_sizeof_long_long=0
10386 fi
10387 rm -fr conftest*
10388 fi
10389
10390 fi
10391 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10392 cat >> confdefs.h <<EOF
10393 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10394 EOF
10395
10396
10397
10398 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10399 echo "configure:10400: checking whether byte ordering is bigendian" >&5
10400 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10401 echo $ac_n "(cached) $ac_c" 1>&6
10402 else
10403 ac_cv_c_bigendian=unknown
10404 # See if sys/param.h defines the BYTE_ORDER macro.
10405 cat > conftest.$ac_ext <<EOF
10406 #line 10407 "configure"
10407 #include "confdefs.h"
10408 #include <sys/types.h>
10409 #include <sys/param.h>
10410 int main() {
10411
10412 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10413 bogus endian macros
10414 #endif
10415 ; return 0; }
10416 EOF
10417 if { (eval echo configure:10418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10418 rm -rf conftest*
10419 # It does; now see whether it defined to BIG_ENDIAN or not.
10420 cat > conftest.$ac_ext <<EOF
10421 #line 10422 "configure"
10422 #include "confdefs.h"
10423 #include <sys/types.h>
10424 #include <sys/param.h>
10425 int main() {
10426
10427 #if BYTE_ORDER != BIG_ENDIAN
10428 not big endian
10429 #endif
10430 ; return 0; }
10431 EOF
10432 if { (eval echo configure:10433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10433 rm -rf conftest*
10434 ac_cv_c_bigendian=yes
10435 else
10436 echo "configure: failed program was:" >&5
10437 cat conftest.$ac_ext >&5
10438 rm -rf conftest*
10439 ac_cv_c_bigendian=no
10440 fi
10441 rm -f conftest*
10442 else
10443 echo "configure: failed program was:" >&5
10444 cat conftest.$ac_ext >&5
10445 fi
10446 rm -f conftest*
10447 if test $ac_cv_c_bigendian = unknown; then
10448 if test "$cross_compiling" = yes; then
10449 ac_cv_c_bigendian=unknown
10450 else
10451 cat > conftest.$ac_ext <<EOF
10452 #line 10453 "configure"
10453 #include "confdefs.h"
10454 main () {
10455 /* Are we little or big endian? From Harbison&Steele. */
10456 union
10457 {
10458 long l;
10459 char c[sizeof (long)];
10460 } u;
10461 u.l = 1;
10462 exit (u.c[sizeof (long) - 1] == 1);
10463 }
10464 EOF
10465 if { (eval echo configure:10466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10466 then
10467 ac_cv_c_bigendian=no
10468 else
10469 echo "configure: failed program was:" >&5
10470 cat conftest.$ac_ext >&5
10471 rm -fr conftest*
10472 ac_cv_c_bigendian=yes
10473 fi
10474 rm -fr conftest*
10475 fi
10476
10477 fi
10478 fi
10479
10480 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10481 if test $ac_cv_c_bigendian = unknown; then
10482 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
10483 fi
10484 if test $ac_cv_c_bigendian = yes; then
10485 cat >> confdefs.h <<\EOF
10486 #define WORDS_BIGENDIAN 1
10487 EOF
10488
10489 fi
10490
10491
10492
10493 if test "$cross_compiling" = "yes"; then
10494 cat >> confdefs.h <<\EOF
10495 #define wxUSE_IOSTREAMH 1
10496 EOF
10497
10498 else
10499
10500 ac_ext=C
10501 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10502 ac_cpp='$CXXCPP $CPPFLAGS'
10503 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10504 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10505 cross_compiling=$ac_cv_prog_cxx_cross
10506
10507
10508 for ac_hdr in iostream
10509 do
10510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10512 echo "configure:10513: checking for $ac_hdr" >&5
10513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10514 echo $ac_n "(cached) $ac_c" 1>&6
10515 else
10516 cat > conftest.$ac_ext <<EOF
10517 #line 10518 "configure"
10518 #include "confdefs.h"
10519 #include <$ac_hdr>
10520 EOF
10521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10522 { (eval echo configure:10523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10524 if test -z "$ac_err"; then
10525 rm -rf conftest*
10526 eval "ac_cv_header_$ac_safe=yes"
10527 else
10528 echo "$ac_err" >&5
10529 echo "configure: failed program was:" >&5
10530 cat conftest.$ac_ext >&5
10531 rm -rf conftest*
10532 eval "ac_cv_header_$ac_safe=no"
10533 fi
10534 rm -f conftest*
10535 fi
10536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10537 echo "$ac_t""yes" 1>&6
10538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10539 cat >> confdefs.h <<EOF
10540 #define $ac_tr_hdr 1
10541 EOF
10542
10543 else
10544 echo "$ac_t""no" 1>&6
10545 fi
10546 done
10547
10548
10549 if test "x$HAVE_IOSTREAM" = x ; then
10550 cat >> confdefs.h <<\EOF
10551 #define wxUSE_IOSTREAMH 1
10552 EOF
10553
10554 else
10555 :
10556 fi
10557
10558 ac_ext=c
10559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10560 ac_cpp='$CPP $CPPFLAGS'
10561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10563 cross_compiling=$ac_cv_prog_cc_cross
10564
10565 fi
10566
10567
10568
10569 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10570 echo "configure:10571: checking if C++ compiler supports bool" >&5
10571 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10572 echo $ac_n "(cached) $ac_c" 1>&6
10573 else
10574
10575
10576 ac_ext=C
10577 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10578 ac_cpp='$CXXCPP $CPPFLAGS'
10579 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10580 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10581 cross_compiling=$ac_cv_prog_cxx_cross
10582
10583
10584 cat > conftest.$ac_ext <<EOF
10585 #line 10586 "configure"
10586 #include "confdefs.h"
10587
10588
10589 int main() {
10590
10591 bool b = true;
10592
10593 return 0;
10594
10595 ; return 0; }
10596 EOF
10597 if { (eval echo configure:10598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10598 rm -rf conftest*
10599
10600 cat >> confdefs.h <<\EOF
10601 #define HAVE_BOOL 1
10602 EOF
10603
10604 wx_cv_cpp_bool=yes
10605
10606 else
10607 echo "configure: failed program was:" >&5
10608 cat conftest.$ac_ext >&5
10609 rm -rf conftest*
10610
10611 wx_cv_cpp_bool=no
10612
10613
10614 fi
10615 rm -f conftest*
10616
10617 ac_ext=c
10618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10619 ac_cpp='$CPP $CPPFLAGS'
10620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10621 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10622 cross_compiling=$ac_cv_prog_cc_cross
10623
10624
10625 fi
10626
10627 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10628
10629 if test "$wx_cv_cpp_bool" = "yes"; then
10630 cat >> confdefs.h <<\EOF
10631 #define HAVE_BOOL 1
10632 EOF
10633
10634 fi
10635
10636
10637
10638 echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
10639 echo "configure:10640: checking if you need GNU extensions" >&5
10640 if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
10641 echo $ac_n "(cached) $ac_c" 1>&6
10642 else
10643
10644 cat > conftest.$ac_ext <<EOF
10645 #line 10646 "configure"
10646 #include "confdefs.h"
10647 #include <features.h>
10648 int main() {
10649
10650
10651 #ifndef __GNU_LIBRARY__
10652 Compile error wanted
10653 #endif
10654
10655
10656 ; return 0; }
10657 EOF
10658 if { (eval echo configure:10659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10659 rm -rf conftest*
10660 wx_cv_gnu_extensions=yes
10661 else
10662 echo "configure: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10664 rm -rf conftest*
10665 wx_cv_gnu_extensions=no
10666 fi
10667 rm -f conftest*
10668
10669 fi
10670
10671
10672 echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
10673 if test "$wx_cv_gnu_extensions" = "yes"; then
10674 cat >> confdefs.h <<EOF
10675 #define _GNU_SOURCE 1
10676 EOF
10677
10678 fi
10679
10680
10681
10682 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
10683 echo "configure:10684: checking for wcslen in -lc" >&5
10684 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
10685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10686 echo $ac_n "(cached) $ac_c" 1>&6
10687 else
10688 ac_save_LIBS="$LIBS"
10689 LIBS="-lc $LIBS"
10690 cat > conftest.$ac_ext <<EOF
10691 #line 10692 "configure"
10692 #include "confdefs.h"
10693 /* Override any gcc2 internal prototype to avoid an error. */
10694 /* We use char because int might match the return type of a gcc2
10695 builtin and then its argument prototype would still apply. */
10696 char wcslen();
10697
10698 int main() {
10699 wcslen()
10700 ; return 0; }
10701 EOF
10702 if { (eval echo configure:10703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10703 rm -rf conftest*
10704 eval "ac_cv_lib_$ac_lib_var=yes"
10705 else
10706 echo "configure: failed program was:" >&5
10707 cat conftest.$ac_ext >&5
10708 rm -rf conftest*
10709 eval "ac_cv_lib_$ac_lib_var=no"
10710 fi
10711 rm -f conftest*
10712 LIBS="$ac_save_LIBS"
10713
10714 fi
10715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10716 echo "$ac_t""yes" 1>&6
10717
10718 cat >> confdefs.h <<\EOF
10719 #define HAVE_WCSLEN 1
10720 EOF
10721
10722 WCHAR_LINK=""
10723
10724 else
10725 echo "$ac_t""no" 1>&6
10726
10727 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
10728 echo "configure:10729: checking for wcslen in -lw" >&5
10729 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
10730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10731 echo $ac_n "(cached) $ac_c" 1>&6
10732 else
10733 ac_save_LIBS="$LIBS"
10734 LIBS="-lw $LIBS"
10735 cat > conftest.$ac_ext <<EOF
10736 #line 10737 "configure"
10737 #include "confdefs.h"
10738 /* Override any gcc2 internal prototype to avoid an error. */
10739 /* We use char because int might match the return type of a gcc2
10740 builtin and then its argument prototype would still apply. */
10741 char wcslen();
10742
10743 int main() {
10744 wcslen()
10745 ; return 0; }
10746 EOF
10747 if { (eval echo configure:10748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10748 rm -rf conftest*
10749 eval "ac_cv_lib_$ac_lib_var=yes"
10750 else
10751 echo "configure: failed program was:" >&5
10752 cat conftest.$ac_ext >&5
10753 rm -rf conftest*
10754 eval "ac_cv_lib_$ac_lib_var=no"
10755 fi
10756 rm -f conftest*
10757 LIBS="$ac_save_LIBS"
10758
10759 fi
10760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10761 echo "$ac_t""yes" 1>&6
10762
10763 cat >> confdefs.h <<\EOF
10764 #define HAVE_WCSLEN 1
10765 EOF
10766
10767 WCHAR_LINK="-lw"
10768
10769 else
10770 echo "$ac_t""no" 1>&6
10771 fi
10772
10773
10774 fi
10775
10776
10777 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10778 echo "configure:10779: checking for vprintf" >&5
10779 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10780 echo $ac_n "(cached) $ac_c" 1>&6
10781 else
10782 cat > conftest.$ac_ext <<EOF
10783 #line 10784 "configure"
10784 #include "confdefs.h"
10785 /* System header to define __stub macros and hopefully few prototypes,
10786 which can conflict with char vprintf(); below. */
10787 #include <assert.h>
10788 /* Override any gcc2 internal prototype to avoid an error. */
10789 /* We use char because int might match the return type of a gcc2
10790 builtin and then its argument prototype would still apply. */
10791 char vprintf();
10792
10793 int main() {
10794
10795 /* The GNU C library defines this for functions which it implements
10796 to always fail with ENOSYS. Some functions are actually named
10797 something starting with __ and the normal name is an alias. */
10798 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10799 choke me
10800 #else
10801 vprintf();
10802 #endif
10803
10804 ; return 0; }
10805 EOF
10806 if { (eval echo configure:10807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10807 rm -rf conftest*
10808 eval "ac_cv_func_vprintf=yes"
10809 else
10810 echo "configure: failed program was:" >&5
10811 cat conftest.$ac_ext >&5
10812 rm -rf conftest*
10813 eval "ac_cv_func_vprintf=no"
10814 fi
10815 rm -f conftest*
10816 fi
10817
10818 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10819 echo "$ac_t""yes" 1>&6
10820 cat >> confdefs.h <<\EOF
10821 #define HAVE_VPRINTF 1
10822 EOF
10823
10824 else
10825 echo "$ac_t""no" 1>&6
10826 fi
10827
10828 if test "$ac_cv_func_vprintf" != yes; then
10829 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
10830 echo "configure:10831: checking for _doprnt" >&5
10831 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10832 echo $ac_n "(cached) $ac_c" 1>&6
10833 else
10834 cat > conftest.$ac_ext <<EOF
10835 #line 10836 "configure"
10836 #include "confdefs.h"
10837 /* System header to define __stub macros and hopefully few prototypes,
10838 which can conflict with char _doprnt(); below. */
10839 #include <assert.h>
10840 /* Override any gcc2 internal prototype to avoid an error. */
10841 /* We use char because int might match the return type of a gcc2
10842 builtin and then its argument prototype would still apply. */
10843 char _doprnt();
10844
10845 int main() {
10846
10847 /* The GNU C library defines this for functions which it implements
10848 to always fail with ENOSYS. Some functions are actually named
10849 something starting with __ and the normal name is an alias. */
10850 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10851 choke me
10852 #else
10853 _doprnt();
10854 #endif
10855
10856 ; return 0; }
10857 EOF
10858 if { (eval echo configure:10859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10859 rm -rf conftest*
10860 eval "ac_cv_func__doprnt=yes"
10861 else
10862 echo "configure: failed program was:" >&5
10863 cat conftest.$ac_ext >&5
10864 rm -rf conftest*
10865 eval "ac_cv_func__doprnt=no"
10866 fi
10867 rm -f conftest*
10868 fi
10869
10870 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10871 echo "$ac_t""yes" 1>&6
10872 cat >> confdefs.h <<\EOF
10873 #define HAVE_DOPRNT 1
10874 EOF
10875
10876 else
10877 echo "$ac_t""no" 1>&6
10878 fi
10879
10880 fi
10881
10882
10883
10884 ac_ext=C
10885 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10886 ac_cpp='$CXXCPP $CPPFLAGS'
10887 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10888 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10889 cross_compiling=$ac_cv_prog_cxx_cross
10890
10891
10892
10893
10894
10895 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
10896 echo "configure:10897: checking for vsnprintf" >&5
10897 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
10898 echo $ac_n "(cached) $ac_c" 1>&6
10899 else
10900
10901 cat > conftest.$ac_ext <<EOF
10902 #line 10903 "configure"
10903 #include "confdefs.h"
10904
10905 #include <stdio.h>
10906 #include <stdarg.h>
10907
10908 int main() {
10909
10910 int wx_test_vsnprintf(const char *, ...);
10911
10912 wx_test_vsnprintf("%s");
10913 return 0;
10914 }
10915
10916 int wx_test_vsnprintf(const char *fmt, ...)
10917 {
10918 char *s;
10919
10920 va_list argp;
10921 va_start(argp, fmt);
10922 vsnprintf(s, 42, fmt, argp);
10923 va_end(argp);
10924
10925 ; return 0; }
10926 EOF
10927 if { (eval echo configure:10928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10928 rm -rf conftest*
10929
10930 cat >> confdefs.h <<\EOF
10931 #define HAVE_VSNPRINTF 1
10932 EOF
10933
10934 wx_cv_func_vsnprintf=yes
10935
10936 else
10937 echo "configure: failed program was:" >&5
10938 cat conftest.$ac_ext >&5
10939 rm -rf conftest*
10940
10941 cat > conftest.$ac_ext <<EOF
10942 #line 10943 "configure"
10943 #include "confdefs.h"
10944
10945 #include <stdio.h>
10946 #include <stdarg.h>
10947
10948 int main() {
10949
10950 int wx_test_vsnprintf(const char *, ...);
10951
10952 wx_test_vsnprintf("%s");
10953 return 0;
10954 }
10955
10956 int wx_test_vsnprintf(const char *fmt, ...)
10957 {
10958 char *s;
10959
10960 va_list argp;
10961 va_start(argp, fmt);
10962 _vsnprintf(s, 42, fmt, argp);
10963 va_end(argp);
10964
10965 ; return 0; }
10966 EOF
10967 if { (eval echo configure:10968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10968 rm -rf conftest*
10969
10970 cat >> confdefs.h <<\EOF
10971 #define HAVE_VSNPRINTF 1
10972 EOF
10973
10974 wx_cv_func_vsnprintf=yes
10975
10976 else
10977 echo "configure: failed program was:" >&5
10978 cat conftest.$ac_ext >&5
10979 rm -rf conftest*
10980
10981 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10982 wx_cv_func_vsnprintf=no
10983
10984 fi
10985 rm -f conftest*
10986
10987 fi
10988 rm -f conftest*
10989
10990 fi
10991
10992 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10993
10994 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
10995 echo "configure:10996: checking for vsscanf" >&5
10996 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10997 echo $ac_n "(cached) $ac_c" 1>&6
10998 else
10999
11000 cat > conftest.$ac_ext <<EOF
11001 #line 11002 "configure"
11002 #include "confdefs.h"
11003
11004 #include <stdio.h>
11005 #include <stdarg.h>
11006
11007 int main() {
11008
11009 int wx_test_vsscanf(const char *, ...);
11010
11011 wx_test_vsscanf("%d");
11012 return 0;
11013 }
11014
11015 int wx_test_vsscanf(const char *fmt, ...)
11016 {
11017 va_list argp;
11018 va_start(argp, fmt);
11019 vsscanf("42", fmt, argp);
11020 va_end(argp);
11021
11022 ; return 0; }
11023 EOF
11024 if { (eval echo configure:11025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11025 rm -rf conftest*
11026
11027 cat >> confdefs.h <<\EOF
11028 #define HAVE_VSSCANF 1
11029 EOF
11030
11031 wx_cv_func_vsscanf=yes
11032
11033 else
11034 echo "configure: failed program was:" >&5
11035 cat conftest.$ac_ext >&5
11036 rm -rf conftest*
11037
11038 wx_cv_func_vsscanf=no
11039
11040 fi
11041 rm -f conftest*
11042
11043 fi
11044
11045 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
11046
11047 ac_ext=c
11048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11049 ac_cpp='$CPP $CPPFLAGS'
11050 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11051 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11052 cross_compiling=$ac_cv_prog_cc_cross
11053
11054
11055 if test "$TOOLKIT" != "MSW"; then
11056
11057 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
11058 for ac_func in sigaction
11059 do
11060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11061 echo "configure:11062: checking for $ac_func" >&5
11062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11063 echo $ac_n "(cached) $ac_c" 1>&6
11064 else
11065 cat > conftest.$ac_ext <<EOF
11066 #line 11067 "configure"
11067 #include "confdefs.h"
11068 /* System header to define __stub macros and hopefully few prototypes,
11069 which can conflict with char $ac_func(); below. */
11070 #include <assert.h>
11071 /* Override any gcc2 internal prototype to avoid an error. */
11072 /* We use char because int might match the return type of a gcc2
11073 builtin and then its argument prototype would still apply. */
11074 char $ac_func();
11075
11076 int main() {
11077
11078 /* The GNU C library defines this for functions which it implements
11079 to always fail with ENOSYS. Some functions are actually named
11080 something starting with __ and the normal name is an alias. */
11081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11082 choke me
11083 #else
11084 $ac_func();
11085 #endif
11086
11087 ; return 0; }
11088 EOF
11089 if { (eval echo configure:11090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11090 rm -rf conftest*
11091 eval "ac_cv_func_$ac_func=yes"
11092 else
11093 echo "configure: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11095 rm -rf conftest*
11096 eval "ac_cv_func_$ac_func=no"
11097 fi
11098 rm -f conftest*
11099 fi
11100
11101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11102 echo "$ac_t""yes" 1>&6
11103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11104 cat >> confdefs.h <<EOF
11105 #define $ac_tr_func 1
11106 EOF
11107
11108 else
11109 echo "$ac_t""no" 1>&6
11110 fi
11111 done
11112
11113
11114 if test "$ac_cv_func_sigaction" = "no"; then
11115 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
11116 wxUSE_ON_FATAL_EXCEPTION=no
11117 fi
11118
11119 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
11120
11121 ac_ext=C
11122 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11123 ac_cpp='$CXXCPP $CPPFLAGS'
11124 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11125 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11126 cross_compiling=$ac_cv_prog_cxx_cross
11127
11128
11129 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
11130 echo "configure:11131: checking for sa_handler type" >&5
11131 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
11132 echo $ac_n "(cached) $ac_c" 1>&6
11133 else
11134
11135 cat > conftest.$ac_ext <<EOF
11136 #line 11137 "configure"
11137 #include "confdefs.h"
11138 #include <signal.h>
11139 int main() {
11140
11141 extern void testSigHandler(int);
11142
11143 struct sigaction sa;
11144 sa.sa_handler = testSigHandler;
11145
11146 ; return 0; }
11147 EOF
11148 if { (eval echo configure:11149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11149 rm -rf conftest*
11150
11151 wx_cv_type_sa_handler=int
11152
11153 else
11154 echo "configure: failed program was:" >&5
11155 cat conftest.$ac_ext >&5
11156 rm -rf conftest*
11157
11158 wx_cv_type_sa_handler=void
11159
11160 fi
11161 rm -f conftest*
11162
11163 fi
11164
11165 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
11166
11167 ac_ext=c
11168 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11169 ac_cpp='$CPP $CPPFLAGS'
11170 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11171 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11172 cross_compiling=$ac_cv_prog_cc_cross
11173
11174
11175 cat >> confdefs.h <<EOF
11176 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
11177 EOF
11178
11179 fi
11180 fi
11181
11182 for ac_func in vfork
11183 do
11184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11185 echo "configure:11186: checking for $ac_func" >&5
11186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11187 echo $ac_n "(cached) $ac_c" 1>&6
11188 else
11189 cat > conftest.$ac_ext <<EOF
11190 #line 11191 "configure"
11191 #include "confdefs.h"
11192 /* System header to define __stub macros and hopefully few prototypes,
11193 which can conflict with char $ac_func(); below. */
11194 #include <assert.h>
11195 /* Override any gcc2 internal prototype to avoid an error. */
11196 /* We use char because int might match the return type of a gcc2
11197 builtin and then its argument prototype would still apply. */
11198 char $ac_func();
11199
11200 int main() {
11201
11202 /* The GNU C library defines this for functions which it implements
11203 to always fail with ENOSYS. Some functions are actually named
11204 something starting with __ and the normal name is an alias. */
11205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11206 choke me
11207 #else
11208 $ac_func();
11209 #endif
11210
11211 ; return 0; }
11212 EOF
11213 if { (eval echo configure:11214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11214 rm -rf conftest*
11215 eval "ac_cv_func_$ac_func=yes"
11216 else
11217 echo "configure: failed program was:" >&5
11218 cat conftest.$ac_ext >&5
11219 rm -rf conftest*
11220 eval "ac_cv_func_$ac_func=no"
11221 fi
11222 rm -f conftest*
11223 fi
11224
11225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11226 echo "$ac_t""yes" 1>&6
11227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11228 cat >> confdefs.h <<EOF
11229 #define $ac_tr_func 1
11230 EOF
11231
11232 else
11233 echo "$ac_t""no" 1>&6
11234 fi
11235 done
11236
11237
11238 for ac_func in timegm
11239 do
11240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11241 echo "configure:11242: checking for $ac_func" >&5
11242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11243 echo $ac_n "(cached) $ac_c" 1>&6
11244 else
11245 cat > conftest.$ac_ext <<EOF
11246 #line 11247 "configure"
11247 #include "confdefs.h"
11248 /* System header to define __stub macros and hopefully few prototypes,
11249 which can conflict with char $ac_func(); below. */
11250 #include <assert.h>
11251 /* Override any gcc2 internal prototype to avoid an error. */
11252 /* We use char because int might match the return type of a gcc2
11253 builtin and then its argument prototype would still apply. */
11254 char $ac_func();
11255
11256 int main() {
11257
11258 /* The GNU C library defines this for functions which it implements
11259 to always fail with ENOSYS. Some functions are actually named
11260 something starting with __ and the normal name is an alias. */
11261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11262 choke me
11263 #else
11264 $ac_func();
11265 #endif
11266
11267 ; return 0; }
11268 EOF
11269 if { (eval echo configure:11270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11270 rm -rf conftest*
11271 eval "ac_cv_func_$ac_func=yes"
11272 else
11273 echo "configure: failed program was:" >&5
11274 cat conftest.$ac_ext >&5
11275 rm -rf conftest*
11276 eval "ac_cv_func_$ac_func=no"
11277 fi
11278 rm -f conftest*
11279 fi
11280
11281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11282 echo "$ac_t""yes" 1>&6
11283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11284 cat >> confdefs.h <<EOF
11285 #define $ac_tr_func 1
11286 EOF
11287
11288 else
11289 echo "$ac_t""no" 1>&6
11290 fi
11291 done
11292
11293
11294 for ac_func in putenv setenv
11295 do
11296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11297 echo "configure:11298: checking for $ac_func" >&5
11298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11299 echo $ac_n "(cached) $ac_c" 1>&6
11300 else
11301 cat > conftest.$ac_ext <<EOF
11302 #line 11303 "configure"
11303 #include "confdefs.h"
11304 /* System header to define __stub macros and hopefully few prototypes,
11305 which can conflict with char $ac_func(); below. */
11306 #include <assert.h>
11307 /* Override any gcc2 internal prototype to avoid an error. */
11308 /* We use char because int might match the return type of a gcc2
11309 builtin and then its argument prototype would still apply. */
11310 char $ac_func();
11311
11312 int main() {
11313
11314 /* The GNU C library defines this for functions which it implements
11315 to always fail with ENOSYS. Some functions are actually named
11316 something starting with __ and the normal name is an alias. */
11317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11318 choke me
11319 #else
11320 $ac_func();
11321 #endif
11322
11323 ; return 0; }
11324 EOF
11325 if { (eval echo configure:11326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11326 rm -rf conftest*
11327 eval "ac_cv_func_$ac_func=yes"
11328 else
11329 echo "configure: failed program was:" >&5
11330 cat conftest.$ac_ext >&5
11331 rm -rf conftest*
11332 eval "ac_cv_func_$ac_func=no"
11333 fi
11334 rm -f conftest*
11335 fi
11336
11337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11338 echo "$ac_t""yes" 1>&6
11339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11340 cat >> confdefs.h <<EOF
11341 #define $ac_tr_func 1
11342 EOF
11343 break
11344 else
11345 echo "$ac_t""no" 1>&6
11346 fi
11347 done
11348
11349
11350 HAVE_SOME_SLEEP_FUNC=0
11351 if test "$USE_BEOS" = 1; then
11352 cat >> confdefs.h <<\EOF
11353 #define HAVE_SLEEP 1
11354 EOF
11355
11356 HAVE_SOME_SLEEP_FUNC=1
11357 fi
11358
11359 if test "$USE_MAC" = 1; then
11360 cat >> confdefs.h <<\EOF
11361 #define HAVE_USLEEP 1
11362 EOF
11363
11364 HAVE_SOME_SLEEP_FUNC=1
11365 fi
11366
11367 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
11368 POSIX4_LINK=
11369 for ac_func in nanosleep
11370 do
11371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11372 echo "configure:11373: checking for $ac_func" >&5
11373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11374 echo $ac_n "(cached) $ac_c" 1>&6
11375 else
11376 cat > conftest.$ac_ext <<EOF
11377 #line 11378 "configure"
11378 #include "confdefs.h"
11379 /* System header to define __stub macros and hopefully few prototypes,
11380 which can conflict with char $ac_func(); below. */
11381 #include <assert.h>
11382 /* Override any gcc2 internal prototype to avoid an error. */
11383 /* We use char because int might match the return type of a gcc2
11384 builtin and then its argument prototype would still apply. */
11385 char $ac_func();
11386
11387 int main() {
11388
11389 /* The GNU C library defines this for functions which it implements
11390 to always fail with ENOSYS. Some functions are actually named
11391 something starting with __ and the normal name is an alias. */
11392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11393 choke me
11394 #else
11395 $ac_func();
11396 #endif
11397
11398 ; return 0; }
11399 EOF
11400 if { (eval echo configure:11401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11401 rm -rf conftest*
11402 eval "ac_cv_func_$ac_func=yes"
11403 else
11404 echo "configure: failed program was:" >&5
11405 cat conftest.$ac_ext >&5
11406 rm -rf conftest*
11407 eval "ac_cv_func_$ac_func=no"
11408 fi
11409 rm -f conftest*
11410 fi
11411
11412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11413 echo "$ac_t""yes" 1>&6
11414 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11415 cat >> confdefs.h <<EOF
11416 #define $ac_tr_func 1
11417 EOF
11418 cat >> confdefs.h <<\EOF
11419 #define HAVE_NANOSLEEP 1
11420 EOF
11421
11422 else
11423 echo "$ac_t""no" 1>&6
11424 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
11425 echo "configure:11426: checking for nanosleep in -lposix4" >&5
11426 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
11427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11428 echo $ac_n "(cached) $ac_c" 1>&6
11429 else
11430 ac_save_LIBS="$LIBS"
11431 LIBS="-lposix4 $LIBS"
11432 cat > conftest.$ac_ext <<EOF
11433 #line 11434 "configure"
11434 #include "confdefs.h"
11435 /* Override any gcc2 internal prototype to avoid an error. */
11436 /* We use char because int might match the return type of a gcc2
11437 builtin and then its argument prototype would still apply. */
11438 char nanosleep();
11439
11440 int main() {
11441 nanosleep()
11442 ; return 0; }
11443 EOF
11444 if { (eval echo configure:11445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11445 rm -rf conftest*
11446 eval "ac_cv_lib_$ac_lib_var=yes"
11447 else
11448 echo "configure: failed program was:" >&5
11449 cat conftest.$ac_ext >&5
11450 rm -rf conftest*
11451 eval "ac_cv_lib_$ac_lib_var=no"
11452 fi
11453 rm -f conftest*
11454 LIBS="$ac_save_LIBS"
11455
11456 fi
11457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11458 echo "$ac_t""yes" 1>&6
11459
11460 cat >> confdefs.h <<\EOF
11461 #define HAVE_NANOSLEEP 1
11462 EOF
11463
11464 POSIX4_LINK="-lposix4"
11465
11466 else
11467 echo "$ac_t""no" 1>&6
11468
11469 for ac_func in usleep
11470 do
11471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11472 echo "configure:11473: checking for $ac_func" >&5
11473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11474 echo $ac_n "(cached) $ac_c" 1>&6
11475 else
11476 cat > conftest.$ac_ext <<EOF
11477 #line 11478 "configure"
11478 #include "confdefs.h"
11479 /* System header to define __stub macros and hopefully few prototypes,
11480 which can conflict with char $ac_func(); below. */
11481 #include <assert.h>
11482 /* Override any gcc2 internal prototype to avoid an error. */
11483 /* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11485 char $ac_func();
11486
11487 int main() {
11488
11489 /* The GNU C library defines this for functions which it implements
11490 to always fail with ENOSYS. Some functions are actually named
11491 something starting with __ and the normal name is an alias. */
11492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11493 choke me
11494 #else
11495 $ac_func();
11496 #endif
11497
11498 ; return 0; }
11499 EOF
11500 if { (eval echo configure:11501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11501 rm -rf conftest*
11502 eval "ac_cv_func_$ac_func=yes"
11503 else
11504 echo "configure: failed program was:" >&5
11505 cat conftest.$ac_ext >&5
11506 rm -rf conftest*
11507 eval "ac_cv_func_$ac_func=no"
11508 fi
11509 rm -f conftest*
11510 fi
11511
11512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11513 echo "$ac_t""yes" 1>&6
11514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11515 cat >> confdefs.h <<EOF
11516 #define $ac_tr_func 1
11517 EOF
11518 cat >> confdefs.h <<\EOF
11519 #define HAVE_USLEEP 1
11520 EOF
11521
11522 else
11523 echo "$ac_t""no" 1>&6
11524 fi
11525 done
11526
11527 echo "configure: warning: wxSleep() function will not work" 1>&2
11528
11529
11530 fi
11531
11532
11533
11534 fi
11535 done
11536
11537 fi
11538
11539 for ac_func in uname gethostname
11540 do
11541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11542 echo "configure:11543: checking for $ac_func" >&5
11543 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11544 echo $ac_n "(cached) $ac_c" 1>&6
11545 else
11546 cat > conftest.$ac_ext <<EOF
11547 #line 11548 "configure"
11548 #include "confdefs.h"
11549 /* System header to define __stub macros and hopefully few prototypes,
11550 which can conflict with char $ac_func(); below. */
11551 #include <assert.h>
11552 /* Override any gcc2 internal prototype to avoid an error. */
11553 /* We use char because int might match the return type of a gcc2
11554 builtin and then its argument prototype would still apply. */
11555 char $ac_func();
11556
11557 int main() {
11558
11559 /* The GNU C library defines this for functions which it implements
11560 to always fail with ENOSYS. Some functions are actually named
11561 something starting with __ and the normal name is an alias. */
11562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11563 choke me
11564 #else
11565 $ac_func();
11566 #endif
11567
11568 ; return 0; }
11569 EOF
11570 if { (eval echo configure:11571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11571 rm -rf conftest*
11572 eval "ac_cv_func_$ac_func=yes"
11573 else
11574 echo "configure: failed program was:" >&5
11575 cat conftest.$ac_ext >&5
11576 rm -rf conftest*
11577 eval "ac_cv_func_$ac_func=no"
11578 fi
11579 rm -f conftest*
11580 fi
11581
11582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11583 echo "$ac_t""yes" 1>&6
11584 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11585 cat >> confdefs.h <<EOF
11586 #define $ac_tr_func 1
11587 EOF
11588 break
11589 else
11590 echo "$ac_t""no" 1>&6
11591 fi
11592 done
11593
11594
11595
11596 ac_ext=C
11597 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11598 ac_cpp='$CXXCPP $CPPFLAGS'
11599 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11600 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11601 cross_compiling=$ac_cv_prog_cxx_cross
11602
11603
11604 for ac_func in strtok_r
11605 do
11606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11607 echo "configure:11608: checking for $ac_func" >&5
11608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11609 echo $ac_n "(cached) $ac_c" 1>&6
11610 else
11611 cat > conftest.$ac_ext <<EOF
11612 #line 11613 "configure"
11613 #include "confdefs.h"
11614 /* System header to define __stub macros and hopefully few prototypes,
11615 which can conflict with char $ac_func(); below. */
11616 #include <assert.h>
11617 /* Override any gcc2 internal prototype to avoid an error. */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 /* We use char because int might match the return type of a gcc2
11622 builtin and then its argument prototype would still apply. */
11623 char $ac_func();
11624
11625 int main() {
11626
11627 /* The GNU C library defines this for functions which it implements
11628 to always fail with ENOSYS. Some functions are actually named
11629 something starting with __ and the normal name is an alias. */
11630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11631 choke me
11632 #else
11633 $ac_func();
11634 #endif
11635
11636 ; return 0; }
11637 EOF
11638 if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11639 rm -rf conftest*
11640 eval "ac_cv_func_$ac_func=yes"
11641 else
11642 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5
11644 rm -rf conftest*
11645 eval "ac_cv_func_$ac_func=no"
11646 fi
11647 rm -f conftest*
11648 fi
11649
11650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11651 echo "$ac_t""yes" 1>&6
11652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11653 cat >> confdefs.h <<EOF
11654 #define $ac_tr_func 1
11655 EOF
11656
11657 else
11658 echo "$ac_t""no" 1>&6
11659 fi
11660 done
11661
11662
11663 ac_ext=c
11664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11665 ac_cpp='$CPP $CPPFLAGS'
11666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11668 cross_compiling=$ac_cv_prog_cc_cross
11669
11670
11671 INET_LINK=
11672 for ac_func in inet_addr
11673 do
11674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11675 echo "configure:11676: checking for $ac_func" >&5
11676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11677 echo $ac_n "(cached) $ac_c" 1>&6
11678 else
11679 cat > conftest.$ac_ext <<EOF
11680 #line 11681 "configure"
11681 #include "confdefs.h"
11682 /* System header to define __stub macros and hopefully few prototypes,
11683 which can conflict with char $ac_func(); below. */
11684 #include <assert.h>
11685 /* Override any gcc2 internal prototype to avoid an error. */
11686 /* We use char because int might match the return type of a gcc2
11687 builtin and then its argument prototype would still apply. */
11688 char $ac_func();
11689
11690 int main() {
11691
11692 /* The GNU C library defines this for functions which it implements
11693 to always fail with ENOSYS. Some functions are actually named
11694 something starting with __ and the normal name is an alias. */
11695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11696 choke me
11697 #else
11698 $ac_func();
11699 #endif
11700
11701 ; return 0; }
11702 EOF
11703 if { (eval echo configure:11704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11704 rm -rf conftest*
11705 eval "ac_cv_func_$ac_func=yes"
11706 else
11707 echo "configure: failed program was:" >&5
11708 cat conftest.$ac_ext >&5
11709 rm -rf conftest*
11710 eval "ac_cv_func_$ac_func=no"
11711 fi
11712 rm -f conftest*
11713 fi
11714
11715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11716 echo "$ac_t""yes" 1>&6
11717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11718 cat >> confdefs.h <<EOF
11719 #define $ac_tr_func 1
11720 EOF
11721 cat >> confdefs.h <<\EOF
11722 #define HAVE_INET_ADDR 1
11723 EOF
11724
11725 else
11726 echo "$ac_t""no" 1>&6
11727 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
11728 echo "configure:11729: checking for inet_addr in -lnsl" >&5
11729 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
11730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11731 echo $ac_n "(cached) $ac_c" 1>&6
11732 else
11733 ac_save_LIBS="$LIBS"
11734 LIBS="-lnsl $LIBS"
11735 cat > conftest.$ac_ext <<EOF
11736 #line 11737 "configure"
11737 #include "confdefs.h"
11738 /* Override any gcc2 internal prototype to avoid an error. */
11739 /* We use char because int might match the return type of a gcc2
11740 builtin and then its argument prototype would still apply. */
11741 char inet_addr();
11742
11743 int main() {
11744 inet_addr()
11745 ; return 0; }
11746 EOF
11747 if { (eval echo configure:11748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11748 rm -rf conftest*
11749 eval "ac_cv_lib_$ac_lib_var=yes"
11750 else
11751 echo "configure: failed program was:" >&5
11752 cat conftest.$ac_ext >&5
11753 rm -rf conftest*
11754 eval "ac_cv_lib_$ac_lib_var=no"
11755 fi
11756 rm -f conftest*
11757 LIBS="$ac_save_LIBS"
11758
11759 fi
11760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11761 echo "$ac_t""yes" 1>&6
11762 INET_LINK="nsl"
11763 else
11764 echo "$ac_t""no" 1>&6
11765 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
11766 echo "configure:11767: checking for inet_addr in -lresolv" >&5
11767 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
11768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11769 echo $ac_n "(cached) $ac_c" 1>&6
11770 else
11771 ac_save_LIBS="$LIBS"
11772 LIBS="-lresolv $LIBS"
11773 cat > conftest.$ac_ext <<EOF
11774 #line 11775 "configure"
11775 #include "confdefs.h"
11776 /* Override any gcc2 internal prototype to avoid an error. */
11777 /* We use char because int might match the return type of a gcc2
11778 builtin and then its argument prototype would still apply. */
11779 char inet_addr();
11780
11781 int main() {
11782 inet_addr()
11783 ; return 0; }
11784 EOF
11785 if { (eval echo configure:11786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11786 rm -rf conftest*
11787 eval "ac_cv_lib_$ac_lib_var=yes"
11788 else
11789 echo "configure: failed program was:" >&5
11790 cat conftest.$ac_ext >&5
11791 rm -rf conftest*
11792 eval "ac_cv_lib_$ac_lib_var=no"
11793 fi
11794 rm -f conftest*
11795 LIBS="$ac_save_LIBS"
11796
11797 fi
11798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11799 echo "$ac_t""yes" 1>&6
11800 INET_LINK="resolv"
11801
11802 else
11803 echo "$ac_t""no" 1>&6
11804 fi
11805
11806
11807 fi
11808
11809
11810
11811 fi
11812 done
11813
11814
11815 for ac_func in inet_aton
11816 do
11817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11818 echo "configure:11819: checking for $ac_func" >&5
11819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11820 echo $ac_n "(cached) $ac_c" 1>&6
11821 else
11822 cat > conftest.$ac_ext <<EOF
11823 #line 11824 "configure"
11824 #include "confdefs.h"
11825 /* System header to define __stub macros and hopefully few prototypes,
11826 which can conflict with char $ac_func(); below. */
11827 #include <assert.h>
11828 /* Override any gcc2 internal prototype to avoid an error. */
11829 /* We use char because int might match the return type of a gcc2
11830 builtin and then its argument prototype would still apply. */
11831 char $ac_func();
11832
11833 int main() {
11834
11835 /* The GNU C library defines this for functions which it implements
11836 to always fail with ENOSYS. Some functions are actually named
11837 something starting with __ and the normal name is an alias. */
11838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11839 choke me
11840 #else
11841 $ac_func();
11842 #endif
11843
11844 ; return 0; }
11845 EOF
11846 if { (eval echo configure:11847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11847 rm -rf conftest*
11848 eval "ac_cv_func_$ac_func=yes"
11849 else
11850 echo "configure: failed program was:" >&5
11851 cat conftest.$ac_ext >&5
11852 rm -rf conftest*
11853 eval "ac_cv_func_$ac_func=no"
11854 fi
11855 rm -f conftest*
11856 fi
11857
11858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11859 echo "$ac_t""yes" 1>&6
11860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11861 cat >> confdefs.h <<EOF
11862 #define $ac_tr_func 1
11863 EOF
11864 cat >> confdefs.h <<\EOF
11865 #define HAVE_INET_ATON 1
11866 EOF
11867
11868 else
11869 echo "$ac_t""no" 1>&6
11870 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
11871 echo "configure:11872: checking for inet_aton in -l$INET_LINK" >&5
11872 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
11873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11874 echo $ac_n "(cached) $ac_c" 1>&6
11875 else
11876 ac_save_LIBS="$LIBS"
11877 LIBS="-l$INET_LINK $LIBS"
11878 cat > conftest.$ac_ext <<EOF
11879 #line 11880 "configure"
11880 #include "confdefs.h"
11881 /* Override any gcc2 internal prototype to avoid an error. */
11882 /* We use char because int might match the return type of a gcc2
11883 builtin and then its argument prototype would still apply. */
11884 char inet_aton();
11885
11886 int main() {
11887 inet_aton()
11888 ; return 0; }
11889 EOF
11890 if { (eval echo configure:11891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11891 rm -rf conftest*
11892 eval "ac_cv_lib_$ac_lib_var=yes"
11893 else
11894 echo "configure: failed program was:" >&5
11895 cat conftest.$ac_ext >&5
11896 rm -rf conftest*
11897 eval "ac_cv_lib_$ac_lib_var=no"
11898 fi
11899 rm -f conftest*
11900 LIBS="$ac_save_LIBS"
11901
11902 fi
11903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11904 echo "$ac_t""yes" 1>&6
11905 cat >> confdefs.h <<\EOF
11906 #define HAVE_INET_ATON 1
11907 EOF
11908
11909 else
11910 echo "$ac_t""no" 1>&6
11911 fi
11912
11913
11914 fi
11915 done
11916
11917
11918 if test "x$INET_LINK" != "x"; then
11919 cat >> confdefs.h <<\EOF
11920 #define HAVE_INET_ADDR 1
11921 EOF
11922
11923 INET_LINK="-l$INET_LINK"
11924 fi
11925
11926 fi
11927
11928
11929 cat > confcache <<\EOF
11930 # This file is a shell script that caches the results of configure
11931 # tests run on this system so they can be shared between configure
11932 # scripts and configure runs. It is not useful on other systems.
11933 # If it contains results you don't want to keep, you may remove or edit it.
11934 #
11935 # By default, configure uses ./config.cache as the cache file,
11936 # creating it if it does not exist already. You can give configure
11937 # the --cache-file=FILE option to use a different cache file; that is
11938 # what configure does when it calls configure scripts in
11939 # subdirectories, so they share the cache.
11940 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11941 # config.status only pays attention to the cache file if you give it the
11942 # --recheck option to rerun configure.
11943 #
11944 EOF
11945 # The following way of writing the cache mishandles newlines in values,
11946 # but we know of no workaround that is simple, portable, and efficient.
11947 # So, don't put newlines in cache variables' values.
11948 # Ultrix sh set writes to stderr and can't be redirected directly,
11949 # and sets the high bit in the cache file unless we assign to the vars.
11950 (set) 2>&1 |
11951 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11952 *ac_space=\ *)
11953 # `set' does not quote correctly, so add quotes (double-quote substitution
11954 # turns \\\\ into \\, and sed turns \\ into \).
11955 sed -n \
11956 -e "s/'/'\\\\''/g" \
11957 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11958 ;;
11959 *)
11960 # `set' quotes correctly as required by POSIX, so do not add quotes.
11961 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11962 ;;
11963 esac >> confcache
11964 if cmp -s $cache_file confcache; then
11965 :
11966 else
11967 if test -w $cache_file; then
11968 echo "updating cache $cache_file"
11969 cat confcache > $cache_file
11970 else
11971 echo "not updating unwritable cache $cache_file"
11972 fi
11973 fi
11974 rm -f confcache
11975
11976
11977
11978 if test "$TOOLKIT" != "MSW"; then
11979
11980
11981 THREADS_LINK=""
11982 THREADS_OBJ=""
11983
11984 if test "$wxUSE_THREADS" = "yes" ; then
11985 if test "$wxUSE_WINE" = 1 ; then
11986 echo "configure: warning: Threads are not supported under WINE" 1>&2
11987 wxUSE_THREADS="no"
11988 elif test "$USE_BEOS" = 1; then
11989 echo "configure: warning: BeOS threads are not yet supported" 1>&2
11990 wxUSE_THREADS="no"
11991 fi
11992 fi
11993
11994 if test "$wxUSE_THREADS" = "yes" ; then
11995
11996 if test "$USE_AIX" = 1; then
11997 THREADS_LIB=pthreads
11998 else
11999 THREADS_LIB=pthread
12000 fi
12001
12002 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
12003 echo "configure:12004: checking for pthread_create in -l$THREADS_LIB" >&5
12004 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
12005 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12006 echo $ac_n "(cached) $ac_c" 1>&6
12007 else
12008 ac_save_LIBS="$LIBS"
12009 LIBS="-l$THREADS_LIB $LIBS"
12010 cat > conftest.$ac_ext <<EOF
12011 #line 12012 "configure"
12012 #include "confdefs.h"
12013 /* Override any gcc2 internal prototype to avoid an error. */
12014 /* We use char because int might match the return type of a gcc2
12015 builtin and then its argument prototype would still apply. */
12016 char pthread_create();
12017
12018 int main() {
12019 pthread_create()
12020 ; return 0; }
12021 EOF
12022 if { (eval echo configure:12023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12023 rm -rf conftest*
12024 eval "ac_cv_lib_$ac_lib_var=yes"
12025 else
12026 echo "configure: failed program was:" >&5
12027 cat conftest.$ac_ext >&5
12028 rm -rf conftest*
12029 eval "ac_cv_lib_$ac_lib_var=no"
12030 fi
12031 rm -f conftest*
12032 LIBS="$ac_save_LIBS"
12033
12034 fi
12035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12036 echo "$ac_t""yes" 1>&6
12037
12038 THREADS_OBJ="threadpsx.lo"
12039 THREADS_LINK=$THREADS_LIB
12040
12041 else
12042 echo "$ac_t""no" 1>&6
12043
12044 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
12045 echo "configure:12046: checking for pthread_create in -lc_r" >&5
12046 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
12047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12048 echo $ac_n "(cached) $ac_c" 1>&6
12049 else
12050 ac_save_LIBS="$LIBS"
12051 LIBS="-lc_r $LIBS"
12052 cat > conftest.$ac_ext <<EOF
12053 #line 12054 "configure"
12054 #include "confdefs.h"
12055 /* Override any gcc2 internal prototype to avoid an error. */
12056 /* We use char because int might match the return type of a gcc2
12057 builtin and then its argument prototype would still apply. */
12058 char pthread_create();
12059
12060 int main() {
12061 pthread_create()
12062 ; return 0; }
12063 EOF
12064 if { (eval echo configure:12065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12065 rm -rf conftest*
12066 eval "ac_cv_lib_$ac_lib_var=yes"
12067 else
12068 echo "configure: failed program was:" >&5
12069 cat conftest.$ac_ext >&5
12070 rm -rf conftest*
12071 eval "ac_cv_lib_$ac_lib_var=no"
12072 fi
12073 rm -f conftest*
12074 LIBS="$ac_save_LIBS"
12075
12076 fi
12077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12078 echo "$ac_t""yes" 1>&6
12079
12080 THREADS_OBJ="threadpsx.lo"
12081 THREADS_LINK="c_r"
12082
12083 else
12084 echo "$ac_t""no" 1>&6
12085
12086 echo $ac_n "checking for pthread_create in -lcc_dynamic""... $ac_c" 1>&6
12087 echo "configure:12088: checking for pthread_create in -lcc_dynamic" >&5
12088 ac_lib_var=`echo cc_dynamic'_'pthread_create | sed 'y%./+-%__p_%'`
12089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12090 echo $ac_n "(cached) $ac_c" 1>&6
12091 else
12092 ac_save_LIBS="$LIBS"
12093 LIBS="-lcc_dynamic $LIBS"
12094 cat > conftest.$ac_ext <<EOF
12095 #line 12096 "configure"
12096 #include "confdefs.h"
12097 /* Override any gcc2 internal prototype to avoid an error. */
12098 /* We use char because int might match the return type of a gcc2
12099 builtin and then its argument prototype would still apply. */
12100 char pthread_create();
12101
12102 int main() {
12103 pthread_create()
12104 ; return 0; }
12105 EOF
12106 if { (eval echo configure:12107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12107 rm -rf conftest*
12108 eval "ac_cv_lib_$ac_lib_var=yes"
12109 else
12110 echo "configure: failed program was:" >&5
12111 cat conftest.$ac_ext >&5
12112 rm -rf conftest*
12113 eval "ac_cv_lib_$ac_lib_var=no"
12114 fi
12115 rm -f conftest*
12116 LIBS="$ac_save_LIBS"
12117
12118 fi
12119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12120 echo "$ac_t""yes" 1>&6
12121
12122 THREADS_OBJ="threadpsx.lo"
12123 THREADS_LINK="cc_dynamic"
12124
12125 else
12126 echo "$ac_t""no" 1>&6
12127
12128 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
12129 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
12130 echo "configure:12131: checking for sys/prctl.h" >&5
12131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12132 echo $ac_n "(cached) $ac_c" 1>&6
12133 else
12134 cat > conftest.$ac_ext <<EOF
12135 #line 12136 "configure"
12136 #include "confdefs.h"
12137 #include <sys/prctl.h>
12138 EOF
12139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12140 { (eval echo configure:12141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12142 if test -z "$ac_err"; then
12143 rm -rf conftest*
12144 eval "ac_cv_header_$ac_safe=yes"
12145 else
12146 echo "$ac_err" >&5
12147 echo "configure: failed program was:" >&5
12148 cat conftest.$ac_ext >&5
12149 rm -rf conftest*
12150 eval "ac_cv_header_$ac_safe=no"
12151 fi
12152 rm -f conftest*
12153 fi
12154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12155 echo "$ac_t""yes" 1>&6
12156
12157 THREADS_OBJ="threadsgi.lo"
12158
12159 else
12160 echo "$ac_t""no" 1>&6
12161 fi
12162
12163
12164 fi
12165
12166
12167 fi
12168
12169
12170 fi
12171
12172
12173 if test -z "$THREADS_OBJ" ; then
12174 wxUSE_THREADS=no
12175 echo "configure: warning: No thread support on this system" 1>&2
12176 fi
12177 fi
12178
12179 if test "$wxUSE_THREADS" = "yes" ; then
12180 for ac_func in thr_setconcurrency
12181 do
12182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12183 echo "configure:12184: checking for $ac_func" >&5
12184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12185 echo $ac_n "(cached) $ac_c" 1>&6
12186 else
12187 cat > conftest.$ac_ext <<EOF
12188 #line 12189 "configure"
12189 #include "confdefs.h"
12190 /* System header to define __stub macros and hopefully few prototypes,
12191 which can conflict with char $ac_func(); below. */
12192 #include <assert.h>
12193 /* Override any gcc2 internal prototype to avoid an error. */
12194 /* We use char because int might match the return type of a gcc2
12195 builtin and then its argument prototype would still apply. */
12196 char $ac_func();
12197
12198 int main() {
12199
12200 /* The GNU C library defines this for functions which it implements
12201 to always fail with ENOSYS. Some functions are actually named
12202 something starting with __ and the normal name is an alias. */
12203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12204 choke me
12205 #else
12206 $ac_func();
12207 #endif
12208
12209 ; return 0; }
12210 EOF
12211 if { (eval echo configure:12212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12212 rm -rf conftest*
12213 eval "ac_cv_func_$ac_func=yes"
12214 else
12215 echo "configure: failed program was:" >&5
12216 cat conftest.$ac_ext >&5
12217 rm -rf conftest*
12218 eval "ac_cv_func_$ac_func=no"
12219 fi
12220 rm -f conftest*
12221 fi
12222
12223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12224 echo "$ac_t""yes" 1>&6
12225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12226 cat >> confdefs.h <<EOF
12227 #define $ac_tr_func 1
12228 EOF
12229
12230 else
12231 echo "$ac_t""no" 1>&6
12232 fi
12233 done
12234
12235
12236
12237 for ac_hdr in sched.h
12238 do
12239 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12241 echo "configure:12242: checking for $ac_hdr" >&5
12242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12243 echo $ac_n "(cached) $ac_c" 1>&6
12244 else
12245 cat > conftest.$ac_ext <<EOF
12246 #line 12247 "configure"
12247 #include "confdefs.h"
12248 #include <$ac_hdr>
12249 EOF
12250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12251 { (eval echo configure:12252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12253 if test -z "$ac_err"; then
12254 rm -rf conftest*
12255 eval "ac_cv_header_$ac_safe=yes"
12256 else
12257 echo "$ac_err" >&5
12258 echo "configure: failed program was:" >&5
12259 cat conftest.$ac_ext >&5
12260 rm -rf conftest*
12261 eval "ac_cv_header_$ac_safe=no"
12262 fi
12263 rm -f conftest*
12264 fi
12265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12266 echo "$ac_t""yes" 1>&6
12267 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12268 cat >> confdefs.h <<EOF
12269 #define $ac_tr_hdr 1
12270 EOF
12271
12272 else
12273 echo "$ac_t""no" 1>&6
12274 fi
12275 done
12276
12277
12278 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
12279 echo "configure:12280: checking for sched_yield in -l$THREADS_LINK" >&5
12280 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
12281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12282 echo $ac_n "(cached) $ac_c" 1>&6
12283 else
12284 ac_save_LIBS="$LIBS"
12285 LIBS="-l$THREADS_LINK $LIBS"
12286 cat > conftest.$ac_ext <<EOF
12287 #line 12288 "configure"
12288 #include "confdefs.h"
12289 /* Override any gcc2 internal prototype to avoid an error. */
12290 /* We use char because int might match the return type of a gcc2
12291 builtin and then its argument prototype would still apply. */
12292 char sched_yield();
12293
12294 int main() {
12295 sched_yield()
12296 ; return 0; }
12297 EOF
12298 if { (eval echo configure:12299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12299 rm -rf conftest*
12300 eval "ac_cv_lib_$ac_lib_var=yes"
12301 else
12302 echo "configure: failed program was:" >&5
12303 cat conftest.$ac_ext >&5
12304 rm -rf conftest*
12305 eval "ac_cv_lib_$ac_lib_var=no"
12306 fi
12307 rm -f conftest*
12308 LIBS="$ac_save_LIBS"
12309
12310 fi
12311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12312 echo "$ac_t""yes" 1>&6
12313 cat >> confdefs.h <<\EOF
12314 #define HAVE_SCHED_YIELD 1
12315 EOF
12316
12317 else
12318 echo "$ac_t""no" 1>&6
12319 echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
12320 echo "configure:12321: checking for sched_yield in -l"posix4"" >&5
12321 ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
12322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12323 echo $ac_n "(cached) $ac_c" 1>&6
12324 else
12325 ac_save_LIBS="$LIBS"
12326 LIBS="-l"posix4" $LIBS"
12327 cat > conftest.$ac_ext <<EOF
12328 #line 12329 "configure"
12329 #include "confdefs.h"
12330 /* Override any gcc2 internal prototype to avoid an error. */
12331 /* We use char because int might match the return type of a gcc2
12332 builtin and then its argument prototype would still apply. */
12333 char sched_yield();
12334
12335 int main() {
12336 sched_yield()
12337 ; return 0; }
12338 EOF
12339 if { (eval echo configure:12340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12340 rm -rf conftest*
12341 eval "ac_cv_lib_$ac_lib_var=yes"
12342 else
12343 echo "configure: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12345 rm -rf conftest*
12346 eval "ac_cv_lib_$ac_lib_var=no"
12347 fi
12348 rm -f conftest*
12349 LIBS="$ac_save_LIBS"
12350
12351 fi
12352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12353 echo "$ac_t""yes" 1>&6
12354 cat >> confdefs.h <<\EOF
12355 #define HAVE_SCHED_YIELD 1
12356 EOF
12357 POSIX4_LINK="-lposix4"
12358 else
12359 echo "$ac_t""no" 1>&6
12360 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
12361
12362 fi
12363
12364
12365 fi
12366
12367
12368 HAVE_PRIOR_FUNCS=0
12369 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
12370 echo "configure:12371: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
12371 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
12372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12373 echo $ac_n "(cached) $ac_c" 1>&6
12374 else
12375 ac_save_LIBS="$LIBS"
12376 LIBS="-l$THREADS_LINK $LIBS"
12377 cat > conftest.$ac_ext <<EOF
12378 #line 12379 "configure"
12379 #include "confdefs.h"
12380 /* Override any gcc2 internal prototype to avoid an error. */
12381 /* We use char because int might match the return type of a gcc2
12382 builtin and then its argument prototype would still apply. */
12383 char pthread_attr_getschedpolicy();
12384
12385 int main() {
12386 pthread_attr_getschedpolicy()
12387 ; return 0; }
12388 EOF
12389 if { (eval echo configure:12390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12390 rm -rf conftest*
12391 eval "ac_cv_lib_$ac_lib_var=yes"
12392 else
12393 echo "configure: failed program was:" >&5
12394 cat conftest.$ac_ext >&5
12395 rm -rf conftest*
12396 eval "ac_cv_lib_$ac_lib_var=no"
12397 fi
12398 rm -f conftest*
12399 LIBS="$ac_save_LIBS"
12400
12401 fi
12402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12403 echo "$ac_t""yes" 1>&6
12404 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
12405 echo "configure:12406: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
12406 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
12407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12408 echo $ac_n "(cached) $ac_c" 1>&6
12409 else
12410 ac_save_LIBS="$LIBS"
12411 LIBS="-l$THREADS_LINK $LIBS"
12412 cat > conftest.$ac_ext <<EOF
12413 #line 12414 "configure"
12414 #include "confdefs.h"
12415 /* Override any gcc2 internal prototype to avoid an error. */
12416 /* We use char because int might match the return type of a gcc2
12417 builtin and then its argument prototype would still apply. */
12418 char pthread_attr_setschedparam();
12419
12420 int main() {
12421 pthread_attr_setschedparam()
12422 ; return 0; }
12423 EOF
12424 if { (eval echo configure:12425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12425 rm -rf conftest*
12426 eval "ac_cv_lib_$ac_lib_var=yes"
12427 else
12428 echo "configure: failed program was:" >&5
12429 cat conftest.$ac_ext >&5
12430 rm -rf conftest*
12431 eval "ac_cv_lib_$ac_lib_var=no"
12432 fi
12433 rm -f conftest*
12434 LIBS="$ac_save_LIBS"
12435
12436 fi
12437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12438 echo "$ac_t""yes" 1>&6
12439 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
12440 echo "configure:12441: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
12441 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12443 echo $ac_n "(cached) $ac_c" 1>&6
12444 else
12445 ac_save_LIBS="$LIBS"
12446 LIBS="-l$THREADS_LINK $LIBS"
12447 cat > conftest.$ac_ext <<EOF
12448 #line 12449 "configure"
12449 #include "confdefs.h"
12450 /* Override any gcc2 internal prototype to avoid an error. */
12451 /* We use char because int might match the return type of a gcc2
12452 builtin and then its argument prototype would still apply. */
12453 char sched_get_priority_max();
12454
12455 int main() {
12456 sched_get_priority_max()
12457 ; return 0; }
12458 EOF
12459 if { (eval echo configure:12460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12460 rm -rf conftest*
12461 eval "ac_cv_lib_$ac_lib_var=yes"
12462 else
12463 echo "configure: failed program was:" >&5
12464 cat conftest.$ac_ext >&5
12465 rm -rf conftest*
12466 eval "ac_cv_lib_$ac_lib_var=no"
12467 fi
12468 rm -f conftest*
12469 LIBS="$ac_save_LIBS"
12470
12471 fi
12472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12473 echo "$ac_t""yes" 1>&6
12474 HAVE_PRIOR_FUNCS=1
12475 else
12476 echo "$ac_t""no" 1>&6
12477 echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6
12478 echo "configure:12479: checking for sched_get_priority_max in -l"posix4"" >&5
12479 ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12481 echo $ac_n "(cached) $ac_c" 1>&6
12482 else
12483 ac_save_LIBS="$LIBS"
12484 LIBS="-l"posix4" $LIBS"
12485 cat > conftest.$ac_ext <<EOF
12486 #line 12487 "configure"
12487 #include "confdefs.h"
12488 /* Override any gcc2 internal prototype to avoid an error. */
12489 /* We use char because int might match the return type of a gcc2
12490 builtin and then its argument prototype would still apply. */
12491 char sched_get_priority_max();
12492
12493 int main() {
12494 sched_get_priority_max()
12495 ; return 0; }
12496 EOF
12497 if { (eval echo configure:12498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12498 rm -rf conftest*
12499 eval "ac_cv_lib_$ac_lib_var=yes"
12500 else
12501 echo "configure: failed program was:" >&5
12502 cat conftest.$ac_ext >&5
12503 rm -rf conftest*
12504 eval "ac_cv_lib_$ac_lib_var=no"
12505 fi
12506 rm -f conftest*
12507 LIBS="$ac_save_LIBS"
12508
12509 fi
12510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12511 echo "$ac_t""yes" 1>&6
12512
12513 HAVE_PRIOR_FUNCS=1
12514 POSIX4_LINK="-lposix4"
12515
12516 else
12517 echo "$ac_t""no" 1>&6
12518 fi
12519
12520
12521 fi
12522
12523
12524 else
12525 echo "$ac_t""no" 1>&6
12526 fi
12527
12528
12529 else
12530 echo "$ac_t""no" 1>&6
12531 fi
12532
12533
12534 if test "$HAVE_PRIOR_FUNCS" = 1; then
12535 cat >> confdefs.h <<\EOF
12536 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
12537 EOF
12538
12539 else
12540 echo "configure: warning: Setting thread priority will not work" 1>&2
12541 fi
12542
12543 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
12544 echo "configure:12545: checking for pthread_cancel in -l$THREADS_LINK" >&5
12545 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
12546 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12547 echo $ac_n "(cached) $ac_c" 1>&6
12548 else
12549 ac_save_LIBS="$LIBS"
12550 LIBS="-l$THREADS_LINK $LIBS"
12551 cat > conftest.$ac_ext <<EOF
12552 #line 12553 "configure"
12553 #include "confdefs.h"
12554 /* Override any gcc2 internal prototype to avoid an error. */
12555 /* We use char because int might match the return type of a gcc2
12556 builtin and then its argument prototype would still apply. */
12557 char pthread_cancel();
12558
12559 int main() {
12560 pthread_cancel()
12561 ; return 0; }
12562 EOF
12563 if { (eval echo configure:12564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12564 rm -rf conftest*
12565 eval "ac_cv_lib_$ac_lib_var=yes"
12566 else
12567 echo "configure: failed program was:" >&5
12568 cat conftest.$ac_ext >&5
12569 rm -rf conftest*
12570 eval "ac_cv_lib_$ac_lib_var=no"
12571 fi
12572 rm -f conftest*
12573 LIBS="$ac_save_LIBS"
12574
12575 fi
12576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12577 echo "$ac_t""yes" 1>&6
12578 cat >> confdefs.h <<\EOF
12579 #define HAVE_PTHREAD_CANCEL 1
12580 EOF
12581
12582 else
12583 echo "$ac_t""no" 1>&6
12584 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
12585 fi
12586
12587
12588 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
12589 echo "configure:12590: checking for pthread_cleanup_push/pop" >&5
12590 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
12591 echo $ac_n "(cached) $ac_c" 1>&6
12592 else
12593
12594 cat > conftest.$ac_ext <<EOF
12595 #line 12596 "configure"
12596 #include "confdefs.h"
12597 #include <pthread.h>
12598 int main() {
12599
12600 pthread_cleanup_push(NULL, NULL);
12601 pthread_cleanup_pop(0);
12602
12603 ; return 0; }
12604 EOF
12605 if { (eval echo configure:12606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12606 rm -rf conftest*
12607
12608 wx_cv_func_pthread_cleanup_push=yes
12609 cat >> confdefs.h <<\EOF
12610 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
12611 EOF
12612
12613
12614 else
12615 echo "configure: failed program was:" >&5
12616 cat conftest.$ac_ext >&5
12617 rm -rf conftest*
12618
12619 wx_cv_func_pthread_cleanup_push=no
12620
12621 fi
12622 rm -f conftest*
12623
12624 fi
12625
12626 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
12627
12628 THREADS_LINK="-l$THREADS_LINK"
12629
12630 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
12631 CFLAGS="${CFLAGS} -mt"
12632 CXXFLAGS="${CXXFLAGS} -mt"
12633 LDFLAGS="${LDFLAGS} -mt"
12634 fi
12635 fi
12636
12637 fi
12638
12639 if test "$wxUSE_THREADS" = "yes"; then
12640 cat >> confdefs.h <<\EOF
12641 #define wxUSE_THREADS 1
12642 EOF
12643
12644
12645 CFLAGS="${CFLAGS} -D_REENTRANT"
12646 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12647
12648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
12649 else
12650 if test "$ac_cv_func_strtok_r" = "yes"; then
12651 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
12652 echo "configure:12653: checking if -D_REENTRANT is needed" >&5
12653 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
12654 CFLAGS="${CFLAGS} -D_REENTRANT"
12655 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12656 echo "$ac_t""yes" 1>&6
12657 else
12658 echo "$ac_t""no" 1>&6
12659 fi
12660 fi
12661 fi
12662
12663 if test "$WXGTK20" = 1 ; then
12664 cat >> confdefs.h <<EOF
12665 #define __WXGTK20__ $WXGTK20
12666 EOF
12667
12668 WXGTK12=1
12669 fi
12670
12671 if test "$WXGTK12" = 1 ; then
12672 cat >> confdefs.h <<EOF
12673 #define __WXGTK12__ $WXGTK12
12674 EOF
12675
12676 fi
12677
12678 if test "$WXGTK127" = 1 ; then
12679 cat >> confdefs.h <<EOF
12680 #define __WXGTK127__ $WXGTK127
12681 EOF
12682
12683 fi
12684
12685 if test "$WXWINE" = 1 ; then
12686 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
12687 fi
12688
12689 if test "$wxUSE_MAC" = 1 ; then
12690 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -DTARGET_CARBON"
12691 TOOLKIT_INCLUDE="${TOOLKIT_INCLUDE}"
12692 fi
12693
12694 if test "$wxUSE_CYGWIN" = 1 ; then
12695 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
12696 fi
12697
12698 WXDEBUG=
12699
12700 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
12701 WXDEBUG="-g"
12702 wxUSE_OPTIMISE=no
12703 fi
12704
12705 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
12706 wxUSE_DEBUG_INFO=yes
12707 WXDEBUG="-ggdb"
12708 fi
12709
12710 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
12711 cat >> confdefs.h <<\EOF
12712 #define WXDEBUG 1
12713 EOF
12714
12715 WXDEBUG_DEFINE="-D__WXDEBUG__"
12716 else
12717 if test "$wxUSE_GTK" = 1 ; then
12718 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
12719 fi
12720 fi
12721
12722 if test "$wxUSE_MEM_TRACING" = "yes" ; then
12723 cat >> confdefs.h <<\EOF
12724 #define wxUSE_MEMORY_TRACING 1
12725 EOF
12726
12727 cat >> confdefs.h <<\EOF
12728 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
12729 EOF
12730
12731 cat >> confdefs.h <<\EOF
12732 #define wxUSE_DEBUG_NEW_ALWAYS 1
12733 EOF
12734
12735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
12736 fi
12737
12738 if test "$wxUSE_DMALLOC" = "yes" ; then
12739 DMALLOC_LINK="-ldmalloc"
12740 fi
12741
12742 PROFILE=
12743 if test "$wxUSE_PROFILE" = "yes" ; then
12744 PROFILE="-pg"
12745 fi
12746
12747 DEP_INFO_FLAGS=
12748 CODE_GEN_FLAGS=
12749 if test "$GCC" = yes ; then
12750 if test "$wxUSE_NO_RTTI" = "yes" ; then
12751 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
12752 fi
12753 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
12754 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
12755 fi
12756 if test "$wxUSE_PERMISSIVE" = "yes" ; then
12757 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
12758 fi
12759 if test "$wxUSE_NO_DEPS" = "no" ; then
12760 DEP_INFO_FLAGS="-MMD"
12761 fi
12762 fi
12763
12764
12765 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
12766 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
12767 if test "$wxUSE_OPTIMISE" = "no" ; then
12768 OPTIMISE=
12769 else
12770 if test "$GCC" = yes ; then
12771 OPTIMISE="-O2"
12772 case "${host}" in
12773 i586-*-*|i686-*-* )
12774 OPTIMISE="${OPTIMISE} "
12775 ;;
12776 esac
12777 else
12778 OPTIMISE="-O"
12779 fi
12780 fi
12781
12782
12783 ZLIB_INCLUDE=
12784 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
12785 cat >> confdefs.h <<\EOF
12786 #define wxUSE_ZLIB 1
12787 EOF
12788
12789 if test "$wxUSE_ZLIB" = "yes" ; then
12790 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
12791 else
12792 ZLIB_LINK=
12793 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
12794 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
12795 echo "configure:12796: checking for zlib.h" >&5
12796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12797 echo $ac_n "(cached) $ac_c" 1>&6
12798 else
12799 cat > conftest.$ac_ext <<EOF
12800 #line 12801 "configure"
12801 #include "confdefs.h"
12802 #include <zlib.h>
12803 EOF
12804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12805 { (eval echo configure:12806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12807 if test -z "$ac_err"; then
12808 rm -rf conftest*
12809 eval "ac_cv_header_$ac_safe=yes"
12810 else
12811 echo "$ac_err" >&5
12812 echo "configure: failed program was:" >&5
12813 cat conftest.$ac_ext >&5
12814 rm -rf conftest*
12815 eval "ac_cv_header_$ac_safe=no"
12816 fi
12817 rm -f conftest*
12818 fi
12819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12820 echo "$ac_t""yes" 1>&6
12821 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
12822 echo "configure:12823: checking for deflate in -lz" >&5
12823 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
12824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12825 echo $ac_n "(cached) $ac_c" 1>&6
12826 else
12827 ac_save_LIBS="$LIBS"
12828 LIBS="-lz $LIBS"
12829 cat > conftest.$ac_ext <<EOF
12830 #line 12831 "configure"
12831 #include "confdefs.h"
12832 /* Override any gcc2 internal prototype to avoid an error. */
12833 /* We use char because int might match the return type of a gcc2
12834 builtin and then its argument prototype would still apply. */
12835 char deflate();
12836
12837 int main() {
12838 deflate()
12839 ; return 0; }
12840 EOF
12841 if { (eval echo configure:12842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12842 rm -rf conftest*
12843 eval "ac_cv_lib_$ac_lib_var=yes"
12844 else
12845 echo "configure: failed program was:" >&5
12846 cat conftest.$ac_ext >&5
12847 rm -rf conftest*
12848 eval "ac_cv_lib_$ac_lib_var=no"
12849 fi
12850 rm -f conftest*
12851 LIBS="$ac_save_LIBS"
12852
12853 fi
12854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12855 echo "$ac_t""yes" 1>&6
12856 ZLIB_LINK="-lz"
12857 else
12858 echo "$ac_t""no" 1>&6
12859 fi
12860
12861 else
12862 echo "$ac_t""no" 1>&6
12863 fi
12864
12865 if test "x$ZLIB_LINK" = "x" ; then
12866 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
12867 fi
12868 fi
12869 fi
12870
12871 PNG_INCLUDE=
12872 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
12873 cat >> confdefs.h <<\EOF
12874 #define wxUSE_LIBPNG 1
12875 EOF
12876
12877 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
12878 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
12879 wxUSE_LIBPNG=yes
12880 fi
12881
12882 if test "$wxUSE_LIBPNG" = "yes" ; then
12883 PNG_INCLUDE="-I\${top_srcdir}/src/png"
12884 else
12885 PNG_LINK=
12886 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
12887 echo $ac_n "checking for png.h""... $ac_c" 1>&6
12888 echo "configure:12889: checking for png.h" >&5
12889 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12890 echo $ac_n "(cached) $ac_c" 1>&6
12891 else
12892 cat > conftest.$ac_ext <<EOF
12893 #line 12894 "configure"
12894 #include "confdefs.h"
12895 #include <png.h>
12896 EOF
12897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12898 { (eval echo configure:12899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12900 if test -z "$ac_err"; then
12901 rm -rf conftest*
12902 eval "ac_cv_header_$ac_safe=yes"
12903 else
12904 echo "$ac_err" >&5
12905 echo "configure: failed program was:" >&5
12906 cat conftest.$ac_ext >&5
12907 rm -rf conftest*
12908 eval "ac_cv_header_$ac_safe=no"
12909 fi
12910 rm -f conftest*
12911 fi
12912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12913 echo "$ac_t""yes" 1>&6
12914 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
12915 echo "configure:12916: checking for png_check_sig in -lpng" >&5
12916 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
12917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12918 echo $ac_n "(cached) $ac_c" 1>&6
12919 else
12920 ac_save_LIBS="$LIBS"
12921 LIBS="-lpng -lz -lm $LIBS"
12922 cat > conftest.$ac_ext <<EOF
12923 #line 12924 "configure"
12924 #include "confdefs.h"
12925 /* Override any gcc2 internal prototype to avoid an error. */
12926 /* We use char because int might match the return type of a gcc2
12927 builtin and then its argument prototype would still apply. */
12928 char png_check_sig();
12929
12930 int main() {
12931 png_check_sig()
12932 ; return 0; }
12933 EOF
12934 if { (eval echo configure:12935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12935 rm -rf conftest*
12936 eval "ac_cv_lib_$ac_lib_var=yes"
12937 else
12938 echo "configure: failed program was:" >&5
12939 cat conftest.$ac_ext >&5
12940 rm -rf conftest*
12941 eval "ac_cv_lib_$ac_lib_var=no"
12942 fi
12943 rm -f conftest*
12944 LIBS="$ac_save_LIBS"
12945
12946 fi
12947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12948 echo "$ac_t""yes" 1>&6
12949 PNG_LINK="-lpng"
12950 else
12951 echo "$ac_t""no" 1>&6
12952 fi
12953
12954
12955 else
12956 echo "$ac_t""no" 1>&6
12957 fi
12958
12959 if test "x$PNG_LINK" = "x" ; then
12960 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
12961 fi
12962 fi
12963
12964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
12965 fi
12966
12967 JPEG_INCLUDE=
12968 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
12969 cat >> confdefs.h <<\EOF
12970 #define wxUSE_LIBJPEG 1
12971 EOF
12972
12973 if test "$wxUSE_LIBJPEG" = "yes" ; then
12974 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12975 else
12976 JPEG_LINK=
12977 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
12978 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
12979 echo "configure:12980: checking for jpeglib.h" >&5
12980 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12981 echo $ac_n "(cached) $ac_c" 1>&6
12982 else
12983 cat > conftest.$ac_ext <<EOF
12984 #line 12985 "configure"
12985 #include "confdefs.h"
12986 #include <jpeglib.h>
12987 EOF
12988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12989 { (eval echo configure:12990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12990 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12991 if test -z "$ac_err"; then
12992 rm -rf conftest*
12993 eval "ac_cv_header_$ac_safe=yes"
12994 else
12995 echo "$ac_err" >&5
12996 echo "configure: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12998 rm -rf conftest*
12999 eval "ac_cv_header_$ac_safe=no"
13000 fi
13001 rm -f conftest*
13002 fi
13003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13004 echo "$ac_t""yes" 1>&6
13005 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
13006 echo "configure:13007: checking for jpeg_read_header in -ljpeg" >&5
13007 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
13008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13009 echo $ac_n "(cached) $ac_c" 1>&6
13010 else
13011 ac_save_LIBS="$LIBS"
13012 LIBS="-ljpeg $LIBS"
13013 cat > conftest.$ac_ext <<EOF
13014 #line 13015 "configure"
13015 #include "confdefs.h"
13016 /* Override any gcc2 internal prototype to avoid an error. */
13017 /* We use char because int might match the return type of a gcc2
13018 builtin and then its argument prototype would still apply. */
13019 char jpeg_read_header();
13020
13021 int main() {
13022 jpeg_read_header()
13023 ; return 0; }
13024 EOF
13025 if { (eval echo configure:13026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13026 rm -rf conftest*
13027 eval "ac_cv_lib_$ac_lib_var=yes"
13028 else
13029 echo "configure: failed program was:" >&5
13030 cat conftest.$ac_ext >&5
13031 rm -rf conftest*
13032 eval "ac_cv_lib_$ac_lib_var=no"
13033 fi
13034 rm -f conftest*
13035 LIBS="$ac_save_LIBS"
13036
13037 fi
13038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13039 echo "$ac_t""yes" 1>&6
13040 JPEG_LINK="-ljpeg"
13041 else
13042 echo "$ac_t""no" 1>&6
13043 fi
13044
13045 else
13046 echo "$ac_t""no" 1>&6
13047 fi
13048
13049 if test "x$JPEG_LINK" = "x" ; then
13050 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
13051 fi
13052 fi
13053 fi
13054
13055 TIFF_INCLUDE=
13056 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
13057 cat >> confdefs.h <<\EOF
13058 #define wxUSE_LIBTIFF 1
13059 EOF
13060
13061 if test "$wxUSE_LIBTIFF" = "yes" ; then
13062 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
13063 else
13064 TIFF_LINK=
13065 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
13066 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
13067 echo "configure:13068: checking for tiffio.h" >&5
13068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13069 echo $ac_n "(cached) $ac_c" 1>&6
13070 else
13071 cat > conftest.$ac_ext <<EOF
13072 #line 13073 "configure"
13073 #include "confdefs.h"
13074 #include <tiffio.h>
13075 EOF
13076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13077 { (eval echo configure:13078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13079 if test -z "$ac_err"; then
13080 rm -rf conftest*
13081 eval "ac_cv_header_$ac_safe=yes"
13082 else
13083 echo "$ac_err" >&5
13084 echo "configure: failed program was:" >&5
13085 cat conftest.$ac_ext >&5
13086 rm -rf conftest*
13087 eval "ac_cv_header_$ac_safe=no"
13088 fi
13089 rm -f conftest*
13090 fi
13091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13092 echo "$ac_t""yes" 1>&6
13093 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
13094 echo "configure:13095: checking for TIFFError in -ltiff" >&5
13095 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
13096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13097 echo $ac_n "(cached) $ac_c" 1>&6
13098 else
13099 ac_save_LIBS="$LIBS"
13100 LIBS="-ltiff -lm $LIBS"
13101 cat > conftest.$ac_ext <<EOF
13102 #line 13103 "configure"
13103 #include "confdefs.h"
13104 /* Override any gcc2 internal prototype to avoid an error. */
13105 /* We use char because int might match the return type of a gcc2
13106 builtin and then its argument prototype would still apply. */
13107 char TIFFError();
13108
13109 int main() {
13110 TIFFError()
13111 ; return 0; }
13112 EOF
13113 if { (eval echo configure:13114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13114 rm -rf conftest*
13115 eval "ac_cv_lib_$ac_lib_var=yes"
13116 else
13117 echo "configure: failed program was:" >&5
13118 cat conftest.$ac_ext >&5
13119 rm -rf conftest*
13120 eval "ac_cv_lib_$ac_lib_var=no"
13121 fi
13122 rm -f conftest*
13123 LIBS="$ac_save_LIBS"
13124
13125 fi
13126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13127 echo "$ac_t""yes" 1>&6
13128 TIFF_LINK="-ltiff"
13129 else
13130 echo "$ac_t""no" 1>&6
13131 fi
13132
13133 else
13134 echo "$ac_t""no" 1>&6
13135 fi
13136
13137 if test "x$TIFF_LINK" = "x" ; then
13138 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
13139 fi
13140 fi
13141 fi
13142
13143 FREETYPE_INCLUDE=
13144 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
13145 cat >> confdefs.h <<\EOF
13146 #define wxUSE_FREETYPE 1
13147 EOF
13148
13149 if test "$wxUSE_FREETYPE" = "yes" ; then
13150 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
13151 else
13152 FREETYPE_LINK=
13153 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
13154 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
13155 echo "configure:13156: checking for freetype.h" >&5
13156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13157 echo $ac_n "(cached) $ac_c" 1>&6
13158 else
13159 cat > conftest.$ac_ext <<EOF
13160 #line 13161 "configure"
13161 #include "confdefs.h"
13162 #include <freetype.h>
13163 EOF
13164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13165 { (eval echo configure:13166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13167 if test -z "$ac_err"; then
13168 rm -rf conftest*
13169 eval "ac_cv_header_$ac_safe=yes"
13170 else
13171 echo "$ac_err" >&5
13172 echo "configure: failed program was:" >&5
13173 cat conftest.$ac_ext >&5
13174 rm -rf conftest*
13175 eval "ac_cv_header_$ac_safe=no"
13176 fi
13177 rm -f conftest*
13178 fi
13179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13180 echo "$ac_t""yes" 1>&6
13181 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
13182 echo "configure:13183: checking for FT_Render_Glyph in -lfreetype" >&5
13183 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
13184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13185 echo $ac_n "(cached) $ac_c" 1>&6
13186 else
13187 ac_save_LIBS="$LIBS"
13188 LIBS="-lfreetype -lm $LIBS"
13189 cat > conftest.$ac_ext <<EOF
13190 #line 13191 "configure"
13191 #include "confdefs.h"
13192 /* Override any gcc2 internal prototype to avoid an error. */
13193 /* We use char because int might match the return type of a gcc2
13194 builtin and then its argument prototype would still apply. */
13195 char FT_Render_Glyph();
13196
13197 int main() {
13198 FT_Render_Glyph()
13199 ; return 0; }
13200 EOF
13201 if { (eval echo configure:13202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13202 rm -rf conftest*
13203 eval "ac_cv_lib_$ac_lib_var=yes"
13204 else
13205 echo "configure: failed program was:" >&5
13206 cat conftest.$ac_ext >&5
13207 rm -rf conftest*
13208 eval "ac_cv_lib_$ac_lib_var=no"
13209 fi
13210 rm -f conftest*
13211 LIBS="$ac_save_LIBS"
13212
13213 fi
13214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13215 echo "$ac_t""yes" 1>&6
13216 FREETYPE_LINK="-lfreetype"
13217 else
13218 echo "$ac_t""no" 1>&6
13219 fi
13220
13221
13222 else
13223 echo "$ac_t""no" 1>&6
13224 fi
13225
13226 if test "x$FREETYPE_LINK" = "x" ; then
13227 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
13228 fi
13229 fi
13230 fi
13231
13232 if test "$wxUSE_OPENGL" = "yes"; then
13233 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13234 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
13235 echo "configure:13236: checking for GL/gl.h" >&5
13236 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13237 echo $ac_n "(cached) $ac_c" 1>&6
13238 else
13239 cat > conftest.$ac_ext <<EOF
13240 #line 13241 "configure"
13241 #include "confdefs.h"
13242 #include <GL/gl.h>
13243 EOF
13244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13245 { (eval echo configure:13246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13247 if test -z "$ac_err"; then
13248 rm -rf conftest*
13249 eval "ac_cv_header_$ac_safe=yes"
13250 else
13251 echo "$ac_err" >&5
13252 echo "configure: failed program was:" >&5
13253 cat conftest.$ac_ext >&5
13254 rm -rf conftest*
13255 eval "ac_cv_header_$ac_safe=no"
13256 fi
13257 rm -f conftest*
13258 fi
13259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13260 echo "$ac_t""yes" 1>&6
13261
13262 cat >> confdefs.h <<\EOF
13263 #define wxUSE_OPENGL 1
13264 EOF
13265
13266 cat >> confdefs.h <<\EOF
13267 #define wxUSE_GLCANVAS 1
13268 EOF
13269
13270 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
13271 echo "configure:13272: checking for glFlush in -lGL" >&5
13272 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
13273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13274 echo $ac_n "(cached) $ac_c" 1>&6
13275 else
13276 ac_save_LIBS="$LIBS"
13277 LIBS="-lGL $LIBS"
13278 cat > conftest.$ac_ext <<EOF
13279 #line 13280 "configure"
13280 #include "confdefs.h"
13281 /* Override any gcc2 internal prototype to avoid an error. */
13282 /* We use char because int might match the return type of a gcc2
13283 builtin and then its argument prototype would still apply. */
13284 char glFlush();
13285
13286 int main() {
13287 glFlush()
13288 ; return 0; }
13289 EOF
13290 if { (eval echo configure:13291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13291 rm -rf conftest*
13292 eval "ac_cv_lib_$ac_lib_var=yes"
13293 else
13294 echo "configure: failed program was:" >&5
13295 cat conftest.$ac_ext >&5
13296 rm -rf conftest*
13297 eval "ac_cv_lib_$ac_lib_var=no"
13298 fi
13299 rm -f conftest*
13300 LIBS="$ac_save_LIBS"
13301
13302 fi
13303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13304 echo "$ac_t""yes" 1>&6
13305
13306 OPENGL_LINK="-lGL -lGLU"
13307
13308 else
13309 echo "$ac_t""no" 1>&6
13310
13311 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
13312 echo "configure:13313: checking for glFlush in -lMesaGL" >&5
13313 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
13314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13315 echo $ac_n "(cached) $ac_c" 1>&6
13316 else
13317 ac_save_LIBS="$LIBS"
13318 LIBS="-lMesaGL $LIBS"
13319 cat > conftest.$ac_ext <<EOF
13320 #line 13321 "configure"
13321 #include "confdefs.h"
13322 /* Override any gcc2 internal prototype to avoid an error. */
13323 /* We use char because int might match the return type of a gcc2
13324 builtin and then its argument prototype would still apply. */
13325 char glFlush();
13326
13327 int main() {
13328 glFlush()
13329 ; return 0; }
13330 EOF
13331 if { (eval echo configure:13332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13332 rm -rf conftest*
13333 eval "ac_cv_lib_$ac_lib_var=yes"
13334 else
13335 echo "configure: failed program was:" >&5
13336 cat conftest.$ac_ext >&5
13337 rm -rf conftest*
13338 eval "ac_cv_lib_$ac_lib_var=no"
13339 fi
13340 rm -f conftest*
13341 LIBS="$ac_save_LIBS"
13342
13343 fi
13344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13345 echo "$ac_t""yes" 1>&6
13346
13347 OPENGL_LINK="-lMesaGL -lMesaGLU"
13348
13349 else
13350 echo "$ac_t""no" 1>&6
13351 fi
13352
13353
13354 fi
13355
13356
13357 else
13358 echo "$ac_t""no" 1>&6
13359 wxUSE_OPENGL=0
13360 fi
13361
13362 fi
13363
13364
13365 if test "$wxUSE_GUI" = "yes"; then
13366 cat >> confdefs.h <<\EOF
13367 #define wxUSE_GUI 1
13368 EOF
13369
13370
13371 else
13372 cat >> confdefs.h <<\EOF
13373 #define wxUSE_NOGUI 1
13374 EOF
13375
13376 fi
13377
13378
13379 if test "$wxUSE_UNIX" = "yes"; then
13380 cat >> confdefs.h <<\EOF
13381 #define wxUSE_UNIX 1
13382 EOF
13383
13384 fi
13385
13386
13387 if test "$wxUSE_APPLE_IEEE" = "yes"; then
13388 cat >> confdefs.h <<\EOF
13389 #define wxUSE_APPLE_IEEE 1
13390 EOF
13391
13392 fi
13393
13394 if test "$wxUSE_WAVE" = "yes"; then
13395 cat >> confdefs.h <<\EOF
13396 #define wxUSE_WAVE 1
13397 EOF
13398
13399 fi
13400
13401 if test "$wxUSE_FILE" = "yes"; then
13402 cat >> confdefs.h <<\EOF
13403 #define wxUSE_FILE 1
13404 EOF
13405
13406 fi
13407
13408 if test "$wxUSE_FILESYSTEM" = "yes"; then
13409 cat >> confdefs.h <<\EOF
13410 #define wxUSE_FILESYSTEM 1
13411 EOF
13412
13413 fi
13414
13415 if test "$wxUSE_FS_INET" = "yes"; then
13416 cat >> confdefs.h <<\EOF
13417 #define wxUSE_FS_INET 1
13418 EOF
13419
13420 fi
13421
13422 if test "$wxUSE_FS_ZIP" = "yes"; then
13423 cat >> confdefs.h <<\EOF
13424 #define wxUSE_FS_ZIP 1
13425 EOF
13426
13427 fi
13428
13429 if test "$wxUSE_ZIPSTREAM" = "yes"; then
13430 cat >> confdefs.h <<\EOF
13431 #define wxUSE_ZIPSTREAM 1
13432 EOF
13433
13434 fi
13435
13436 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13437 cat >> confdefs.h <<\EOF
13438 #define wxUSE_ON_FATAL_EXCEPTION 1
13439 EOF
13440
13441 fi
13442
13443 if test "$wxUSE_BUSYINFO" = "yes"; then
13444 cat >> confdefs.h <<\EOF
13445 #define wxUSE_BUSYINFO 1
13446 EOF
13447
13448 fi
13449
13450 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
13451 cat >> confdefs.h <<\EOF
13452 #define wxUSE_STD_IOSTREAM 1
13453 EOF
13454
13455 fi
13456
13457 if test "$wxUSE_TEXTFILE" = "yes"; then
13458 if test "$wxUSE_FILE" != "yes"; then
13459 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
13460 else
13461 cat >> confdefs.h <<\EOF
13462 #define wxUSE_TEXTFILE 1
13463 EOF
13464
13465 fi
13466 fi
13467
13468 if test "$wxUSE_CONFIG" = "yes" ; then
13469 if test "$wxUSE_TEXTFILE" != "yes"; then
13470 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
13471 else
13472 cat >> confdefs.h <<\EOF
13473 #define wxUSE_CONFIG 1
13474 EOF
13475
13476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
13477 fi
13478 fi
13479
13480 if test "$wxUSE_INTL" = "yes" ; then
13481 if test "$wxUSE_FILE" != "yes"; then
13482 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
13483 else
13484 cat >> confdefs.h <<\EOF
13485 #define wxUSE_INTL 1
13486 EOF
13487
13488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
13489 GUIDIST="$GUIDIST INTL_DIST"
13490 fi
13491 fi
13492
13493 if test "$wxUSE_LOG" = "yes"; then
13494 cat >> confdefs.h <<\EOF
13495 #define wxUSE_LOG 1
13496 EOF
13497
13498 fi
13499
13500 if test "$wxUSE_LONGLONG" = "yes"; then
13501 cat >> confdefs.h <<\EOF
13502 #define wxUSE_LONGLONG 1
13503 EOF
13504
13505 fi
13506
13507 if test "$wxUSE_GEOMETRY" = "yes"; then
13508 cat >> confdefs.h <<\EOF
13509 #define wxUSE_GEOMETRY 1
13510 EOF
13511
13512 fi
13513
13514 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
13515 cat >> confdefs.h <<\EOF
13516 #define wxUSE_DIALUP_MANAGER 1
13517 EOF
13518
13519 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
13520 fi
13521
13522 if test "$wxUSE_STREAMS" = "yes" ; then
13523 cat >> confdefs.h <<\EOF
13524 #define wxUSE_STREAMS 1
13525 EOF
13526
13527 fi
13528
13529
13530 if test "$wxUSE_TIMEDATE" = "yes"; then
13531 for ac_func in strptime
13532 do
13533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13534 echo "configure:13535: checking for $ac_func" >&5
13535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13536 echo $ac_n "(cached) $ac_c" 1>&6
13537 else
13538 cat > conftest.$ac_ext <<EOF
13539 #line 13540 "configure"
13540 #include "confdefs.h"
13541 /* System header to define __stub macros and hopefully few prototypes,
13542 which can conflict with char $ac_func(); below. */
13543 #include <assert.h>
13544 /* Override any gcc2 internal prototype to avoid an error. */
13545 /* We use char because int might match the return type of a gcc2
13546 builtin and then its argument prototype would still apply. */
13547 char $ac_func();
13548
13549 int main() {
13550
13551 /* The GNU C library defines this for functions which it implements
13552 to always fail with ENOSYS. Some functions are actually named
13553 something starting with __ and the normal name is an alias. */
13554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13555 choke me
13556 #else
13557 $ac_func();
13558 #endif
13559
13560 ; return 0; }
13561 EOF
13562 if { (eval echo configure:13563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13563 rm -rf conftest*
13564 eval "ac_cv_func_$ac_func=yes"
13565 else
13566 echo "configure: failed program was:" >&5
13567 cat conftest.$ac_ext >&5
13568 rm -rf conftest*
13569 eval "ac_cv_func_$ac_func=no"
13570 fi
13571 rm -f conftest*
13572 fi
13573
13574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13575 echo "$ac_t""yes" 1>&6
13576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13577 cat >> confdefs.h <<EOF
13578 #define $ac_tr_func 1
13579 EOF
13580
13581 else
13582 echo "$ac_t""no" 1>&6
13583 fi
13584 done
13585
13586
13587 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
13588 echo "configure:13589: checking for timezone variable in <time.h>" >&5
13589 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
13590 echo $ac_n "(cached) $ac_c" 1>&6
13591 else
13592
13593 cat > conftest.$ac_ext <<EOF
13594 #line 13595 "configure"
13595 #include "confdefs.h"
13596
13597 #include <time.h>
13598
13599 int main() {
13600
13601 int tz;
13602 tz = __timezone;
13603
13604 ; return 0; }
13605 EOF
13606 if { (eval echo configure:13607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13607 rm -rf conftest*
13608
13609 wx_cv_var_timezone=__timezone
13610
13611 else
13612 echo "configure: failed program was:" >&5
13613 cat conftest.$ac_ext >&5
13614 rm -rf conftest*
13615
13616 cat > conftest.$ac_ext <<EOF
13617 #line 13618 "configure"
13618 #include "confdefs.h"
13619
13620 #include <time.h>
13621
13622 int main() {
13623
13624 int tz;
13625 tz = _timezone;
13626
13627 ; return 0; }
13628 EOF
13629 if { (eval echo configure:13630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13630 rm -rf conftest*
13631
13632 wx_cv_var_timezone=_timezone
13633
13634 else
13635 echo "configure: failed program was:" >&5
13636 cat conftest.$ac_ext >&5
13637 rm -rf conftest*
13638
13639 cat > conftest.$ac_ext <<EOF
13640 #line 13641 "configure"
13641 #include "confdefs.h"
13642
13643 #include <time.h>
13644
13645 int main() {
13646
13647 int tz;
13648 tz = timezone;
13649
13650 ; return 0; }
13651 EOF
13652 if { (eval echo configure:13653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13653 rm -rf conftest*
13654
13655 wx_cv_var_timezone=timezone
13656
13657 else
13658 echo "configure: failed program was:" >&5
13659 cat conftest.$ac_ext >&5
13660 rm -rf conftest*
13661 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
13662
13663 fi
13664 rm -f conftest*
13665
13666
13667 fi
13668 rm -f conftest*
13669
13670
13671 fi
13672 rm -f conftest*
13673
13674
13675 fi
13676
13677 echo "$ac_t""$wx_cv_var_timezone" 1>&6
13678
13679 cat >> confdefs.h <<EOF
13680 #define WX_TIMEZONE $wx_cv_var_timezone
13681 EOF
13682
13683
13684 for ac_func in localtime
13685 do
13686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13687 echo "configure:13688: checking for $ac_func" >&5
13688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13689 echo $ac_n "(cached) $ac_c" 1>&6
13690 else
13691 cat > conftest.$ac_ext <<EOF
13692 #line 13693 "configure"
13693 #include "confdefs.h"
13694 /* System header to define __stub macros and hopefully few prototypes,
13695 which can conflict with char $ac_func(); below. */
13696 #include <assert.h>
13697 /* Override any gcc2 internal prototype to avoid an error. */
13698 /* We use char because int might match the return type of a gcc2
13699 builtin and then its argument prototype would still apply. */
13700 char $ac_func();
13701
13702 int main() {
13703
13704 /* The GNU C library defines this for functions which it implements
13705 to always fail with ENOSYS. Some functions are actually named
13706 something starting with __ and the normal name is an alias. */
13707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13708 choke me
13709 #else
13710 $ac_func();
13711 #endif
13712
13713 ; return 0; }
13714 EOF
13715 if { (eval echo configure:13716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13716 rm -rf conftest*
13717 eval "ac_cv_func_$ac_func=yes"
13718 else
13719 echo "configure: failed program was:" >&5
13720 cat conftest.$ac_ext >&5
13721 rm -rf conftest*
13722 eval "ac_cv_func_$ac_func=no"
13723 fi
13724 rm -f conftest*
13725 fi
13726
13727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13728 echo "$ac_t""yes" 1>&6
13729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13730 cat >> confdefs.h <<EOF
13731 #define $ac_tr_func 1
13732 EOF
13733
13734 else
13735 echo "$ac_t""no" 1>&6
13736 fi
13737 done
13738
13739
13740 if test "$ac_cv_func_localtime" = "yes"; then
13741 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
13742 echo "configure:13743: checking for tm_gmtoff in struct tm" >&5
13743 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
13744 echo $ac_n "(cached) $ac_c" 1>&6
13745 else
13746
13747 cat > conftest.$ac_ext <<EOF
13748 #line 13749 "configure"
13749 #include "confdefs.h"
13750
13751 #include <time.h>
13752
13753 int main() {
13754
13755 struct tm tm;
13756 tm.tm_gmtoff++;
13757
13758 ; return 0; }
13759 EOF
13760 if { (eval echo configure:13761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13761 rm -rf conftest*
13762
13763 wx_cv_struct_tm_has_gmtoff=yes
13764 cat >> confdefs.h <<\EOF
13765 #define WX_GMTOFF_IN_TM 1
13766 EOF
13767
13768
13769 else
13770 echo "configure: failed program was:" >&5
13771 cat conftest.$ac_ext >&5
13772 rm -rf conftest*
13773 wx_cv_struct_tm_has_gmtoff=no
13774
13775 fi
13776 rm -f conftest*
13777
13778 fi
13779
13780 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
13781 fi
13782
13783 for ac_func in gettimeofday ftime
13784 do
13785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13786 echo "configure:13787: checking for $ac_func" >&5
13787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13788 echo $ac_n "(cached) $ac_c" 1>&6
13789 else
13790 cat > conftest.$ac_ext <<EOF
13791 #line 13792 "configure"
13792 #include "confdefs.h"
13793 /* System header to define __stub macros and hopefully few prototypes,
13794 which can conflict with char $ac_func(); below. */
13795 #include <assert.h>
13796 /* Override any gcc2 internal prototype to avoid an error. */
13797 /* We use char because int might match the return type of a gcc2
13798 builtin and then its argument prototype would still apply. */
13799 char $ac_func();
13800
13801 int main() {
13802
13803 /* The GNU C library defines this for functions which it implements
13804 to always fail with ENOSYS. Some functions are actually named
13805 something starting with __ and the normal name is an alias. */
13806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13807 choke me
13808 #else
13809 $ac_func();
13810 #endif
13811
13812 ; return 0; }
13813 EOF
13814 if { (eval echo configure:13815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13815 rm -rf conftest*
13816 eval "ac_cv_func_$ac_func=yes"
13817 else
13818 echo "configure: failed program was:" >&5
13819 cat conftest.$ac_ext >&5
13820 rm -rf conftest*
13821 eval "ac_cv_func_$ac_func=no"
13822 fi
13823 rm -f conftest*
13824 fi
13825
13826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13827 echo "$ac_t""yes" 1>&6
13828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13829 cat >> confdefs.h <<EOF
13830 #define $ac_tr_func 1
13831 EOF
13832 break
13833 else
13834 echo "$ac_t""no" 1>&6
13835 fi
13836 done
13837
13838
13839 if test "$ac_cv_func_gettimeofday" = "yes"; then
13840 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
13841 echo "configure:13842: checking whether gettimeofday takes two arguments" >&5
13842 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
13843 echo $ac_n "(cached) $ac_c" 1>&6
13844 else
13845
13846
13847 ac_ext=C
13848 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13849 ac_cpp='$CXXCPP $CPPFLAGS'
13850 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13851 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13852 cross_compiling=$ac_cv_prog_cxx_cross
13853
13854
13855 cat > conftest.$ac_ext <<EOF
13856 #line 13857 "configure"
13857 #include "confdefs.h"
13858
13859 #include <sys/time.h>
13860 #include <unistd.h>
13861
13862 int main() {
13863
13864 struct timeval tv;
13865 struct timezone tz;
13866 gettimeofday(&tv, &tz);
13867
13868 ; return 0; }
13869 EOF
13870 if { (eval echo configure:13871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13871 rm -rf conftest*
13872 wx_cv_func_gettimeofday_has_2_args=yes
13873 else
13874 echo "configure: failed program was:" >&5
13875 cat conftest.$ac_ext >&5
13876 rm -rf conftest*
13877 cat > conftest.$ac_ext <<EOF
13878 #line 13879 "configure"
13879 #include "confdefs.h"
13880
13881 #include <sys/time.h>
13882 #include <unistd.h>
13883
13884 int main() {
13885
13886 struct timeval tv;
13887 gettimeofday(&tv);
13888
13889 ; return 0; }
13890 EOF
13891 if { (eval echo configure:13892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13892 rm -rf conftest*
13893 wx_cv_func_gettimeofday_has_2_args=no
13894 else
13895 echo "configure: failed program was:" >&5
13896 cat conftest.$ac_ext >&5
13897 rm -rf conftest*
13898 wx_cv_func_gettimeofday_has_2_args=unknown
13899
13900 fi
13901 rm -f conftest*
13902
13903 fi
13904 rm -f conftest*
13905 ac_ext=c
13906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13907 ac_cpp='$CPP $CPPFLAGS'
13908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13910 cross_compiling=$ac_cv_prog_cc_cross
13911
13912
13913 fi
13914
13915 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
13916
13917 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
13918 cat >> confdefs.h <<\EOF
13919 #define WX_GETTIMEOFDAY_NO_TZ 1
13920 EOF
13921
13922 fi
13923 fi
13924
13925 cat >> confdefs.h <<\EOF
13926 #define wxUSE_TIMEDATE 1
13927 EOF
13928
13929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
13930 fi
13931
13932
13933 if test "$TOOLKIT" != "MSW"; then
13934
13935 if test "$wxUSE_SOCKETS" = "yes"; then
13936 echo $ac_n "checking for socket""... $ac_c" 1>&6
13937 echo "configure:13938: checking for socket" >&5
13938 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
13939 echo $ac_n "(cached) $ac_c" 1>&6
13940 else
13941 cat > conftest.$ac_ext <<EOF
13942 #line 13943 "configure"
13943 #include "confdefs.h"
13944 /* System header to define __stub macros and hopefully few prototypes,
13945 which can conflict with char socket(); below. */
13946 #include <assert.h>
13947 /* Override any gcc2 internal prototype to avoid an error. */
13948 /* We use char because int might match the return type of a gcc2
13949 builtin and then its argument prototype would still apply. */
13950 char socket();
13951
13952 int main() {
13953
13954 /* The GNU C library defines this for functions which it implements
13955 to always fail with ENOSYS. Some functions are actually named
13956 something starting with __ and the normal name is an alias. */
13957 #if defined (__stub_socket) || defined (__stub___socket)
13958 choke me
13959 #else
13960 socket();
13961 #endif
13962
13963 ; return 0; }
13964 EOF
13965 if { (eval echo configure:13966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13966 rm -rf conftest*
13967 eval "ac_cv_func_socket=yes"
13968 else
13969 echo "configure: failed program was:" >&5
13970 cat conftest.$ac_ext >&5
13971 rm -rf conftest*
13972 eval "ac_cv_func_socket=no"
13973 fi
13974 rm -f conftest*
13975 fi
13976
13977 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
13978 echo "$ac_t""yes" 1>&6
13979 :
13980 else
13981 echo "$ac_t""no" 1>&6
13982 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
13983 echo "configure:13984: checking for socket in -lsocket" >&5
13984 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
13985 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13986 echo $ac_n "(cached) $ac_c" 1>&6
13987 else
13988 ac_save_LIBS="$LIBS"
13989 LIBS="-lsocket $LIBS"
13990 cat > conftest.$ac_ext <<EOF
13991 #line 13992 "configure"
13992 #include "confdefs.h"
13993 /* Override any gcc2 internal prototype to avoid an error. */
13994 /* We use char because int might match the return type of a gcc2
13995 builtin and then its argument prototype would still apply. */
13996 char socket();
13997
13998 int main() {
13999 socket()
14000 ; return 0; }
14001 EOF
14002 if { (eval echo configure:14003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14003 rm -rf conftest*
14004 eval "ac_cv_lib_$ac_lib_var=yes"
14005 else
14006 echo "configure: failed program was:" >&5
14007 cat conftest.$ac_ext >&5
14008 rm -rf conftest*
14009 eval "ac_cv_lib_$ac_lib_var=no"
14010 fi
14011 rm -f conftest*
14012 LIBS="$ac_save_LIBS"
14013
14014 fi
14015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14016 echo "$ac_t""yes" 1>&6
14017 INET_LINK="$INET_LINK -lsocket"
14018 else
14019 echo "$ac_t""no" 1>&6
14020
14021 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
14022 wxUSE_SOCKETS=no
14023
14024
14025 fi
14026
14027
14028 fi
14029
14030 fi
14031
14032
14033 if test "$wxUSE_SOCKETS" = "yes" ; then
14034 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
14035 echo "configure:14036: checking what is the type of the third argument of getsockname" >&5
14036 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
14037 echo $ac_n "(cached) $ac_c" 1>&6
14038 else
14039
14040
14041 ac_ext=C
14042 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14043 ac_cpp='$CXXCPP $CPPFLAGS'
14044 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14045 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14046 cross_compiling=$ac_cv_prog_cxx_cross
14047
14048
14049 cat > conftest.$ac_ext <<EOF
14050 #line 14051 "configure"
14051 #include "confdefs.h"
14052
14053 #include <sys/types.h>
14054 #include <sys/socket.h>
14055
14056 int main() {
14057
14058 socklen_t len;
14059 getsockname(0, 0, &len);
14060
14061 ; return 0; }
14062 EOF
14063 if { (eval echo configure:14064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14064 rm -rf conftest*
14065 wx_cv_type_getsockname3=socklen_t
14066 else
14067 echo "configure: failed program was:" >&5
14068 cat conftest.$ac_ext >&5
14069 rm -rf conftest*
14070 cat > conftest.$ac_ext <<EOF
14071 #line 14072 "configure"
14072 #include "confdefs.h"
14073
14074 #include <sys/types.h>
14075 #include <sys/socket.h>
14076
14077 int main() {
14078
14079 size_t len;
14080 getsockname(0, 0, &len);
14081
14082 ; return 0; }
14083 EOF
14084 if { (eval echo configure:14085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14085 rm -rf conftest*
14086 wx_cv_type_getsockname3=size_t
14087 else
14088 echo "configure: failed program was:" >&5
14089 cat conftest.$ac_ext >&5
14090 rm -rf conftest*
14091 cat > conftest.$ac_ext <<EOF
14092 #line 14093 "configure"
14093 #include "confdefs.h"
14094
14095 #include <sys/types.h>
14096 #include <sys/socket.h>
14097
14098 int main() {
14099
14100 int len;
14101 getsockname(0, 0, &len);
14102
14103 ; return 0; }
14104 EOF
14105 if { (eval echo configure:14106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14106 rm -rf conftest*
14107 wx_cv_type_getsockname3=int
14108 else
14109 echo "configure: failed program was:" >&5
14110 cat conftest.$ac_ext >&5
14111 rm -rf conftest*
14112 wx_cv_type_getsockname3=unknown
14113
14114 fi
14115 rm -f conftest*
14116
14117 fi
14118 rm -f conftest*
14119
14120 fi
14121 rm -f conftest*
14122
14123 ac_ext=c
14124 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14125 ac_cpp='$CPP $CPPFLAGS'
14126 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14127 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14128 cross_compiling=$ac_cv_prog_cc_cross
14129
14130
14131 fi
14132
14133 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
14134
14135 if test "$wx_cv_type_getsockname3" = "unknown"; then
14136 wxUSE_SOCKETS=no
14137 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
14138 else
14139 cat >> confdefs.h <<EOF
14140 #define SOCKLEN_T $wx_cv_type_getsockname3
14141 EOF
14142
14143 fi
14144 fi
14145
14146 fi
14147
14148 if test "$wxUSE_SOCKETS" = "yes" ; then
14149 cat >> confdefs.h <<\EOF
14150 #define wxUSE_SOCKETS 1
14151 EOF
14152
14153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
14154 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
14155 fi
14156
14157
14158 if test "$wxUSE_GUI" = "yes"; then
14159
14160 if test "$TOOLKIT" != "MSW"; then
14161
14162 if test "$wxUSE_JOYSTICK" = "yes"; then
14163 for ac_hdr in linux/joystick.h
14164 do
14165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14167 echo "configure:14168: checking for $ac_hdr" >&5
14168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14169 echo $ac_n "(cached) $ac_c" 1>&6
14170 else
14171 cat > conftest.$ac_ext <<EOF
14172 #line 14173 "configure"
14173 #include "confdefs.h"
14174 #include <$ac_hdr>
14175 EOF
14176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14177 { (eval echo configure:14178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14179 if test -z "$ac_err"; then
14180 rm -rf conftest*
14181 eval "ac_cv_header_$ac_safe=yes"
14182 else
14183 echo "$ac_err" >&5
14184 echo "configure: failed program was:" >&5
14185 cat conftest.$ac_ext >&5
14186 rm -rf conftest*
14187 eval "ac_cv_header_$ac_safe=no"
14188 fi
14189 rm -f conftest*
14190 fi
14191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14192 echo "$ac_t""yes" 1>&6
14193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14194 cat >> confdefs.h <<EOF
14195 #define $ac_tr_hdr 1
14196 EOF
14197
14198 else
14199 echo "$ac_t""no" 1>&6
14200 fi
14201 done
14202
14203 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
14204 wxUSE_JOYSTICK=no
14205 echo "configure: warning: Joystick not supported by this system" 1>&2
14206 fi
14207 fi
14208
14209 fi
14210
14211 if test "$wxUSE_JOYSTICK" = "yes"; then
14212 cat >> confdefs.h <<\EOF
14213 #define wxUSE_JOYSTICK 1
14214 EOF
14215
14216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
14217 fi
14218
14219 fi
14220
14221
14222 if test "$TOOLKIT" != "MSW"; then
14223
14224 HAVE_DL_FUNCS=0
14225 HAVE_SHL_FUNCS=0
14226 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
14227 if test "$USE_MAC" = 1; then
14228 HAVE_DL_FUNCS=1
14229 else
14230 for ac_func in dlopen
14231 do
14232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14233 echo "configure:14234: checking for $ac_func" >&5
14234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14235 echo $ac_n "(cached) $ac_c" 1>&6
14236 else
14237 cat > conftest.$ac_ext <<EOF
14238 #line 14239 "configure"
14239 #include "confdefs.h"
14240 /* System header to define __stub macros and hopefully few prototypes,
14241 which can conflict with char $ac_func(); below. */
14242 #include <assert.h>
14243 /* Override any gcc2 internal prototype to avoid an error. */
14244 /* We use char because int might match the return type of a gcc2
14245 builtin and then its argument prototype would still apply. */
14246 char $ac_func();
14247
14248 int main() {
14249
14250 /* The GNU C library defines this for functions which it implements
14251 to always fail with ENOSYS. Some functions are actually named
14252 something starting with __ and the normal name is an alias. */
14253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14254 choke me
14255 #else
14256 $ac_func();
14257 #endif
14258
14259 ; return 0; }
14260 EOF
14261 if { (eval echo configure:14262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14262 rm -rf conftest*
14263 eval "ac_cv_func_$ac_func=yes"
14264 else
14265 echo "configure: failed program was:" >&5
14266 cat conftest.$ac_ext >&5
14267 rm -rf conftest*
14268 eval "ac_cv_func_$ac_func=no"
14269 fi
14270 rm -f conftest*
14271 fi
14272
14273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14274 echo "$ac_t""yes" 1>&6
14275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14276 cat >> confdefs.h <<EOF
14277 #define $ac_tr_func 1
14278 EOF
14279
14280 cat >> confdefs.h <<\EOF
14281 #define HAVE_DLOPEN 1
14282 EOF
14283
14284 HAVE_DL_FUNCS=1
14285
14286 else
14287 echo "$ac_t""no" 1>&6
14288 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14289 echo "configure:14290: checking for dlopen in -ldl" >&5
14290 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
14291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14292 echo $ac_n "(cached) $ac_c" 1>&6
14293 else
14294 ac_save_LIBS="$LIBS"
14295 LIBS="-ldl $LIBS"
14296 cat > conftest.$ac_ext <<EOF
14297 #line 14298 "configure"
14298 #include "confdefs.h"
14299 /* Override any gcc2 internal prototype to avoid an error. */
14300 /* We use char because int might match the return type of a gcc2
14301 builtin and then its argument prototype would still apply. */
14302 char dlopen();
14303
14304 int main() {
14305 dlopen()
14306 ; return 0; }
14307 EOF
14308 if { (eval echo configure:14309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14309 rm -rf conftest*
14310 eval "ac_cv_lib_$ac_lib_var=yes"
14311 else
14312 echo "configure: failed program was:" >&5
14313 cat conftest.$ac_ext >&5
14314 rm -rf conftest*
14315 eval "ac_cv_lib_$ac_lib_var=no"
14316 fi
14317 rm -f conftest*
14318 LIBS="$ac_save_LIBS"
14319
14320 fi
14321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14322 echo "$ac_t""yes" 1>&6
14323
14324 cat >> confdefs.h <<\EOF
14325 #define HAVE_DLOPEN 1
14326 EOF
14327
14328 HAVE_DL_FUNCS=1
14329 LIBS="$LIBS -ldl"
14330
14331 else
14332 echo "$ac_t""no" 1>&6
14333
14334 for ac_func in shl_load
14335 do
14336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14337 echo "configure:14338: checking for $ac_func" >&5
14338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14339 echo $ac_n "(cached) $ac_c" 1>&6
14340 else
14341 cat > conftest.$ac_ext <<EOF
14342 #line 14343 "configure"
14343 #include "confdefs.h"
14344 /* System header to define __stub macros and hopefully few prototypes,
14345 which can conflict with char $ac_func(); below. */
14346 #include <assert.h>
14347 /* Override any gcc2 internal prototype to avoid an error. */
14348 /* We use char because int might match the return type of a gcc2
14349 builtin and then its argument prototype would still apply. */
14350 char $ac_func();
14351
14352 int main() {
14353
14354 /* The GNU C library defines this for functions which it implements
14355 to always fail with ENOSYS. Some functions are actually named
14356 something starting with __ and the normal name is an alias. */
14357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14358 choke me
14359 #else
14360 $ac_func();
14361 #endif
14362
14363 ; return 0; }
14364 EOF
14365 if { (eval echo configure:14366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14366 rm -rf conftest*
14367 eval "ac_cv_func_$ac_func=yes"
14368 else
14369 echo "configure: failed program was:" >&5
14370 cat conftest.$ac_ext >&5
14371 rm -rf conftest*
14372 eval "ac_cv_func_$ac_func=no"
14373 fi
14374 rm -f conftest*
14375 fi
14376
14377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14378 echo "$ac_t""yes" 1>&6
14379 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14380 cat >> confdefs.h <<EOF
14381 #define $ac_tr_func 1
14382 EOF
14383
14384 cat >> confdefs.h <<\EOF
14385 #define HAVE_SHL_LOAD 1
14386 EOF
14387
14388 HAVE_SHL_FUNCS=1
14389
14390 else
14391 echo "$ac_t""no" 1>&6
14392 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
14393 echo "configure:14394: checking for dld in -lshl_load" >&5
14394 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
14395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14396 echo $ac_n "(cached) $ac_c" 1>&6
14397 else
14398 ac_save_LIBS="$LIBS"
14399 LIBS="-lshl_load $LIBS"
14400 cat > conftest.$ac_ext <<EOF
14401 #line 14402 "configure"
14402 #include "confdefs.h"
14403 /* Override any gcc2 internal prototype to avoid an error. */
14404 /* We use char because int might match the return type of a gcc2
14405 builtin and then its argument prototype would still apply. */
14406 char dld();
14407
14408 int main() {
14409 dld()
14410 ; return 0; }
14411 EOF
14412 if { (eval echo configure:14413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14413 rm -rf conftest*
14414 eval "ac_cv_lib_$ac_lib_var=yes"
14415 else
14416 echo "configure: failed program was:" >&5
14417 cat conftest.$ac_ext >&5
14418 rm -rf conftest*
14419 eval "ac_cv_lib_$ac_lib_var=no"
14420 fi
14421 rm -f conftest*
14422 LIBS="$ac_save_LIBS"
14423
14424 fi
14425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14426 echo "$ac_t""yes" 1>&6
14427
14428 HAVE_SHL_FUNCS=1
14429 LIBS="$LIBS -ldld"
14430
14431 else
14432 echo "$ac_t""no" 1>&6
14433 fi
14434
14435
14436 fi
14437 done
14438
14439
14440 fi
14441
14442
14443 fi
14444 done
14445
14446
14447 if test "$HAVE_DL_FUNCS" = 1; then
14448 for ac_func in dlerror
14449 do
14450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14451 echo "configure:14452: checking for $ac_func" >&5
14452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14453 echo $ac_n "(cached) $ac_c" 1>&6
14454 else
14455 cat > conftest.$ac_ext <<EOF
14456 #line 14457 "configure"
14457 #include "confdefs.h"
14458 /* System header to define __stub macros and hopefully few prototypes,
14459 which can conflict with char $ac_func(); below. */
14460 #include <assert.h>
14461 /* Override any gcc2 internal prototype to avoid an error. */
14462 /* We use char because int might match the return type of a gcc2
14463 builtin and then its argument prototype would still apply. */
14464 char $ac_func();
14465
14466 int main() {
14467
14468 /* The GNU C library defines this for functions which it implements
14469 to always fail with ENOSYS. Some functions are actually named
14470 something starting with __ and the normal name is an alias. */
14471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14472 choke me
14473 #else
14474 $ac_func();
14475 #endif
14476
14477 ; return 0; }
14478 EOF
14479 if { (eval echo configure:14480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14480 rm -rf conftest*
14481 eval "ac_cv_func_$ac_func=yes"
14482 else
14483 echo "configure: failed program was:" >&5
14484 cat conftest.$ac_ext >&5
14485 rm -rf conftest*
14486 eval "ac_cv_func_$ac_func=no"
14487 fi
14488 rm -f conftest*
14489 fi
14490
14491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14492 echo "$ac_t""yes" 1>&6
14493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14494 cat >> confdefs.h <<EOF
14495 #define $ac_tr_func 1
14496 EOF
14497 cat >> confdefs.h <<\EOF
14498 #define HAVE_DLERROR 1
14499 EOF
14500
14501 else
14502 echo "$ac_t""no" 1>&6
14503 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
14504 echo "configure:14505: checking for dlerror in -ldl" >&5
14505 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
14506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14507 echo $ac_n "(cached) $ac_c" 1>&6
14508 else
14509 ac_save_LIBS="$LIBS"
14510 LIBS="-ldl $LIBS"
14511 cat > conftest.$ac_ext <<EOF
14512 #line 14513 "configure"
14513 #include "confdefs.h"
14514 /* Override any gcc2 internal prototype to avoid an error. */
14515 /* We use char because int might match the return type of a gcc2
14516 builtin and then its argument prototype would still apply. */
14517 char dlerror();
14518
14519 int main() {
14520 dlerror()
14521 ; return 0; }
14522 EOF
14523 if { (eval echo configure:14524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14524 rm -rf conftest*
14525 eval "ac_cv_lib_$ac_lib_var=yes"
14526 else
14527 echo "configure: failed program was:" >&5
14528 cat conftest.$ac_ext >&5
14529 rm -rf conftest*
14530 eval "ac_cv_lib_$ac_lib_var=no"
14531 fi
14532 rm -f conftest*
14533 LIBS="$ac_save_LIBS"
14534
14535 fi
14536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14537 echo "$ac_t""yes" 1>&6
14538 cat >> confdefs.h <<\EOF
14539 #define HAVE_DLERROR 1
14540 EOF
14541
14542 else
14543 echo "$ac_t""no" 1>&6
14544 fi
14545
14546 fi
14547 done
14548
14549 fi
14550 fi
14551
14552 if test "$HAVE_DL_FUNCS" = 0; then
14553 if test "$HAVE_SHL_FUNCS" = 0; then
14554 if test "$USE_UNIX" = 1; then
14555 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
14556 wxUSE_DYNLIB_CLASS=no
14557 else
14558 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
14559 fi
14560 fi
14561 fi
14562 fi
14563
14564 fi
14565
14566 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
14567 cat >> confdefs.h <<\EOF
14568 #define wxUSE_DYNLIB_CLASS 1
14569 EOF
14570
14571 else
14572 wxUSE_ODBC=no
14573 wxUSE_SERIAL=no
14574 fi
14575
14576
14577 if test "$wxUSE_UNICODE" = "yes" ; then
14578 cat >> confdefs.h <<\EOF
14579 #define wxUSE_UNICODE 1
14580 EOF
14581
14582 fi
14583
14584 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
14585 cat >> confdefs.h <<\EOF
14586 #define wxUSE_WCSRTOMBS 1
14587 EOF
14588
14589 fi
14590
14591 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
14592 cat >> confdefs.h <<\EOF
14593 #define wxUSE_EXPERIMENTAL_PRINTF 1
14594 EOF
14595
14596 fi
14597
14598
14599 if test "$wxUSE_SERIAL" = "yes" ; then
14600 cat >> confdefs.h <<\EOF
14601 #define wxUSE_SERIAL 1
14602 EOF
14603
14604 fi
14605
14606
14607 IODBC_C_SRC=""
14608 if test "$wxUSE_ODBC" = "yes" ; then
14609 cat >> confdefs.h <<\EOF
14610 #define wxUSE_ODBC 1
14611 EOF
14612
14613 WXODBCFLAG="-D_IODBC_"
14614 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
14615 IODBCOBJS="\$(IODBC_OBJS)"
14616 else
14617 IODBCOBJS=
14618 fi
14619
14620
14621 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
14622 cat >> confdefs.h <<\EOF
14623 #define wxUSE_POSTSCRIPT 1
14624 EOF
14625
14626 fi
14627
14628 cat >> confdefs.h <<\EOF
14629 #define wxUSE_AFM_FOR_POSTSCRIPT 1
14630 EOF
14631
14632
14633 cat >> confdefs.h <<\EOF
14634 #define wxUSE_NORMALIZED_PS_FONTS 1
14635 EOF
14636
14637
14638
14639 if test "$wxUSE_CONSTRAINTS" = "yes"; then
14640 cat >> confdefs.h <<\EOF
14641 #define wxUSE_CONSTRAINTS 1
14642 EOF
14643
14644 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
14645 fi
14646
14647 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14648 cat >> confdefs.h <<\EOF
14649 #define wxUSE_MDI_ARCHITECTURE 1
14650 EOF
14651
14652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
14653 fi
14654
14655 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
14656 cat >> confdefs.h <<\EOF
14657 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
14658 EOF
14659
14660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
14661 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
14663 fi
14664 fi
14665
14666 if test "$wxUSE_HELP" = "yes"; then
14667 cat >> confdefs.h <<\EOF
14668 #define wxUSE_HELP 1
14669 EOF
14670
14671 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
14672 fi
14673
14674 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
14675 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14676 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
14677 else
14678 cat >> confdefs.h <<\EOF
14679 #define wxUSE_PRINTING_ARCHITECTURE 1
14680 EOF
14681
14682 fi
14683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
14684 fi
14685
14686 if test "$wxUSE_PROLOGIO" = "yes" ; then
14687 cat >> confdefs.h <<\EOF
14688 #define wxUSE_PROLOGIO 1
14689 EOF
14690
14691 fi
14692
14693 if test "$wxUSE_RESOURCES" = "yes" ; then
14694 if test "$wxUSE_PROLOGIO" = "yes" ; then
14695 cat >> confdefs.h <<\EOF
14696 #define wxUSE_RESOURCES 1
14697 EOF
14698
14699 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
14700 else
14701 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
14702 fi
14703 fi
14704
14705 if test "$wxUSE_X_RESOURCES" = "yes"; then
14706 cat >> confdefs.h <<\EOF
14707 #define wxUSE_X_RESOURCES 1
14708 EOF
14709
14710 fi
14711
14712
14713 if test "$wxUSE_IPC" = "yes"; then
14714 if test "$wxUSE_SOCKETS" != "yes"; then
14715 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
14716 fi
14717
14718 cat >> confdefs.h <<\EOF
14719 #define wxUSE_IPC 1
14720 EOF
14721
14722 fi
14723
14724 if test "$wxUSE_CLIPBOARD" = "yes"; then
14725 cat >> confdefs.h <<\EOF
14726 #define wxUSE_CLIPBOARD 1
14727 EOF
14728
14729 fi
14730
14731 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
14732 if test "$wxUSE_GTK" = 1; then
14733 if test "$WXGTK12" != 1; then
14734 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
14735 wxUSE_DRAG_AND_DROP=no
14736 fi
14737 fi
14738
14739 if test "$wxUSE_MOTIF" = 1; then
14740 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
14741 wxUSE_DRAG_AND_DROP=no
14742 fi
14743
14744 if test "$USE_WIN32" = 1; then
14745
14746 for ac_hdr in ole2.h
14747 do
14748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14750 echo "configure:14751: checking for $ac_hdr" >&5
14751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14752 echo $ac_n "(cached) $ac_c" 1>&6
14753 else
14754 cat > conftest.$ac_ext <<EOF
14755 #line 14756 "configure"
14756 #include "confdefs.h"
14757 #include <$ac_hdr>
14758 EOF
14759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14760 { (eval echo configure:14761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14762 if test -z "$ac_err"; then
14763 rm -rf conftest*
14764 eval "ac_cv_header_$ac_safe=yes"
14765 else
14766 echo "$ac_err" >&5
14767 echo "configure: failed program was:" >&5
14768 cat conftest.$ac_ext >&5
14769 rm -rf conftest*
14770 eval "ac_cv_header_$ac_safe=no"
14771 fi
14772 rm -f conftest*
14773 fi
14774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14775 echo "$ac_t""yes" 1>&6
14776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14777 cat >> confdefs.h <<EOF
14778 #define $ac_tr_hdr 1
14779 EOF
14780
14781 else
14782 echo "$ac_t""no" 1>&6
14783 fi
14784 done
14785
14786
14787 if test "$ac_cv_header_ole2_h" = "yes" ; then
14788 if test "$GCC" = yes ; then
14789 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
14790 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
14791 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
14792 LIBS="$LIBS -lole32 -luuid"
14793
14794 if test "$wxUSE_METAFILE" = "yes"; then
14795 cat >> confdefs.h <<\EOF
14796 #define wxUSE_METAFILE 1
14797 EOF
14798
14799 cat >> confdefs.h <<\EOF
14800 #define wxUSE_ENH_METAFILE 1
14801 EOF
14802
14803 fi
14804 fi
14805 else
14806 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
14807 wxUSE_DRAG_AND_DROP=no
14808 fi
14809 fi
14810
14811 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
14812 cat >> confdefs.h <<\EOF
14813 #define wxUSE_DRAG_AND_DROP 1
14814 EOF
14815
14816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
14817 fi
14818
14819 fi
14820
14821 if test "$wxUSE_SPLINES" = "yes" ; then
14822 cat >> confdefs.h <<\EOF
14823 #define wxUSE_SPLINES 1
14824 EOF
14825
14826 fi
14827
14828
14829 if test "$wxUSE_ACCEL" = "yes"; then
14830 cat >> confdefs.h <<\EOF
14831 #define wxUSE_ACCEL 1
14832 EOF
14833
14834 fi
14835
14836 if test "$wxUSE_CARET" = "yes"; then
14837 cat >> confdefs.h <<\EOF
14838 #define wxUSE_CARET 1
14839 EOF
14840
14841 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
14842 fi
14843
14844 if test "$wxUSE_COMBOBOX" = "yes"; then
14845 cat >> confdefs.h <<\EOF
14846 #define wxUSE_COMBOBOX 1
14847 EOF
14848
14849 fi
14850
14851 if test "$wxUSE_CHOICE" = "yes"; then
14852 cat >> confdefs.h <<\EOF
14853 #define wxUSE_CHOICE 1
14854 EOF
14855
14856 fi
14857
14858 if test "$wxUSE_BMPBUTTON" = "yes"; then
14859 cat >> confdefs.h <<\EOF
14860 #define wxUSE_BMPBUTTON 1
14861 EOF
14862
14863 fi
14864
14865 if test "$wxUSE_CHECKBOX" = "yes"; then
14866 cat >> confdefs.h <<\EOF
14867 #define wxUSE_CHECKBOX 1
14868 EOF
14869
14870 fi
14871
14872 if test "$wxUSE_CHECKLST" = "yes"; then
14873 cat >> confdefs.h <<\EOF
14874 #define wxUSE_CHECKLISTBOX 1
14875 EOF
14876
14877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
14878 fi
14879
14880 if test "$wxUSE_GAUGE" = "yes"; then
14881 cat >> confdefs.h <<\EOF
14882 #define wxUSE_GAUGE 1
14883 EOF
14884
14885 fi
14886
14887 if test "$wxUSE_NEW_GRID" = "yes"; then
14888 wxUSE_GRID="yes"
14889 cat >> confdefs.h <<\EOF
14890 #define wxUSE_NEW_GRID 1
14891 EOF
14892
14893 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
14894 fi
14895
14896 if test "$wxUSE_GRID" = "yes"; then
14897 cat >> confdefs.h <<\EOF
14898 #define wxUSE_GRID 1
14899 EOF
14900
14901 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
14902 fi
14903
14904 if test "$wxUSE_IMAGLIST" = "yes"; then
14905 cat >> confdefs.h <<\EOF
14906 #define wxUSE_IMAGLIST 1
14907 EOF
14908
14909 fi
14910
14911 if test "$wxUSE_LISTBOX" = "yes"; then
14912 cat >> confdefs.h <<\EOF
14913 #define wxUSE_LISTBOX 1
14914 EOF
14915
14916 fi
14917
14918 if test "$wxUSE_LISTCTRL" = "yes"; then
14919 if test "$wxUSE_IMAGLIST" = "yes"; then
14920 cat >> confdefs.h <<\EOF
14921 #define wxUSE_LISTCTRL 1
14922 EOF
14923
14924 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
14925 else
14926 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
14927 fi
14928 fi
14929
14930 if test "$wxUSE_NOTEBOOK" = "yes"; then
14931 cat >> confdefs.h <<\EOF
14932 #define wxUSE_NOTEBOOK 1
14933 EOF
14934
14935 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
14936 fi
14937
14938 if test "$wxUSE_RADIOBOX" = "yes"; then
14939 cat >> confdefs.h <<\EOF
14940 #define wxUSE_RADIOBOX 1
14941 EOF
14942
14943 fi
14944
14945 if test "$wxUSE_RADIOBTN" = "yes"; then
14946 cat >> confdefs.h <<\EOF
14947 #define wxUSE_RADIOBTN 1
14948 EOF
14949
14950 fi
14951
14952 if test "$wxUSE_SASH" = "yes"; then
14953 cat >> confdefs.h <<\EOF
14954 #define wxUSE_SASH 1
14955 EOF
14956
14957 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
14958 fi
14959
14960 if test "$wxUSE_SCROLLBAR" = "yes"; then
14961 cat >> confdefs.h <<\EOF
14962 #define wxUSE_SCROLLBAR 1
14963 EOF
14964
14965 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
14966 fi
14967
14968 if test "$wxUSE_SLIDER" = "yes"; then
14969 cat >> confdefs.h <<\EOF
14970 #define wxUSE_SLIDER 1
14971 EOF
14972
14973 fi
14974
14975 if test "$wxUSE_SPINBTN" = "yes"; then
14976 cat >> confdefs.h <<\EOF
14977 #define wxUSE_SPINBTN 1
14978 EOF
14979
14980 fi
14981
14982 if test "$wxUSE_SPINCTRL" = "yes"; then
14983 cat >> confdefs.h <<\EOF
14984 #define wxUSE_SPINCTRL 1
14985 EOF
14986
14987 fi
14988
14989 if test "$wxUSE_SPLITTER" = "yes"; then
14990 cat >> confdefs.h <<\EOF
14991 #define wxUSE_SPLITTER 1
14992 EOF
14993
14994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
14995 fi
14996
14997 if test "$wxUSE_STATBMP" = "yes"; then
14998 cat >> confdefs.h <<\EOF
14999 #define wxUSE_STATBMP 1
15000 EOF
15001
15002 fi
15003
15004 if test "$wxUSE_STATBOX" = "yes"; then
15005 cat >> confdefs.h <<\EOF
15006 #define wxUSE_STATBOX 1
15007 EOF
15008
15009 fi
15010
15011 if test "$wxUSE_STATLINE" = "yes"; then
15012 if test "$wxUSE_WINE" = 1 ; then
15013 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
15014 else
15015 cat >> confdefs.h <<\EOF
15016 #define wxUSE_STATLINE 1
15017 EOF
15018
15019 fi
15020 fi
15021
15022 if test "$wxUSE_STATUSBAR" = "yes"; then
15023 cat >> confdefs.h <<\EOF
15024 #define wxUSE_STATUSBAR 1
15025 EOF
15026
15027
15028 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
15029 fi
15030
15031 if test "$wxUSE_TABDIALOG" = "yes"; then
15032 cat >> confdefs.h <<\EOF
15033 #define wxUSE_TAB_DIALOG 1
15034 EOF
15035
15036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
15037 fi
15038
15039 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
15040 cat >> confdefs.h <<\EOF
15041 #define wxUSE_TOOLBAR_SIMPLE 1
15042 EOF
15043
15044 wxUSE_TOOLBAR="yes"
15045 fi
15046
15047 if test "$wxUSE_TOOLBAR" = "yes"; then
15048 cat >> confdefs.h <<\EOF
15049 #define wxUSE_TOOLBAR 1
15050 EOF
15051
15052
15053 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
15054 wxUSE_TOOLBAR_NATIVE="yes"
15055 fi
15056
15057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
15058 fi
15059
15060 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
15061 cat >> confdefs.h <<\EOF
15062 #define wxUSE_TOOLBAR_NATIVE 1
15063 EOF
15064
15065 fi
15066
15067 if test "$wxUSE_TOOLTIPS" = "yes"; then
15068 if test "$wxUSE_MOTIF" = 1; then
15069 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
15070 else
15071 if test "$wxUSE_WINE" = 1; then
15072 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
15073 else
15074 cat >> confdefs.h <<\EOF
15075 #define wxUSE_TOOLTIPS 1
15076 EOF
15077
15078 fi
15079 fi
15080 fi
15081
15082 if test "$wxUSE_TREECTRL" = "yes"; then
15083 if test "$wxUSE_IMAGLIST" = "yes"; then
15084 cat >> confdefs.h <<\EOF
15085 #define wxUSE_TREECTRL 1
15086 EOF
15087
15088 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
15089 else
15090 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
15091 fi
15092 fi
15093
15094
15095
15096 if test "$wxUSE_DIRDLG" = "yes"; then
15097 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15098 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
15099 else
15100 if test "$wxUSE_TREECTRL" != "yes"; then
15101 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
15102 else
15103 cat >> confdefs.h <<\EOF
15104 #define wxUSE_DIRDLG 1
15105 EOF
15106
15107 fi
15108 fi
15109 fi
15110
15111 if test "$wxUSE_TEXTDLG" = "yes"; then
15112 cat >> confdefs.h <<\EOF
15113 #define wxUSE_TEXTDLG 1
15114 EOF
15115
15116 fi
15117
15118 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
15119 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15120 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
15121 else
15122 cat >> confdefs.h <<\EOF
15123 #define wxUSE_STARTUP_TIPS 1
15124 EOF
15125
15126 fi
15127 fi
15128
15129 if test "$wxUSE_PROGRESSDLG" = "yes"; then
15130 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15131 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
15132 else
15133 cat >> confdefs.h <<\EOF
15134 #define wxUSE_PROGRESSDLG 1
15135 EOF
15136
15137 fi
15138 fi
15139
15140 if test "$wxUSE_MINIFRAME" = "yes"; then
15141 cat >> confdefs.h <<\EOF
15142 #define wxUSE_MINIFRAME 1
15143 EOF
15144
15145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
15146 fi
15147
15148 if test "$wxUSE_HTML" = "yes"; then
15149 cat >> confdefs.h <<\EOF
15150 #define wxUSE_HTML 1
15151 EOF
15152
15153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
15154 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
15155 fi
15156
15157 if test "$wxUSE_VALIDATORS" = "yes"; then
15158 cat >> confdefs.h <<\EOF
15159 #define wxUSE_VALIDATORS 1
15160 EOF
15161
15162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
15163 fi
15164
15165 if test "$wxUSE_GIF" = "yes" ; then
15166 cat >> confdefs.h <<\EOF
15167 #define wxUSE_GIF 1
15168 EOF
15169
15170 fi
15171
15172 if test "$wxUSE_PCX" = "yes" ; then
15173 cat >> confdefs.h <<\EOF
15174 #define wxUSE_PCX 1
15175 EOF
15176
15177 fi
15178
15179 if test "$wxUSE_PNM" = "yes" ; then
15180 cat >> confdefs.h <<\EOF
15181 #define wxUSE_PNM 1
15182 EOF
15183
15184 fi
15185
15186
15187 if test "$cross_compiling" = "yes"; then
15188 OSINFO="\"$host\""
15189 else
15190 OSINFO=`uname -s -r -m`
15191 OSINFO="\"$OSINFO\""
15192 fi
15193
15194 cat >> confdefs.h <<EOF
15195 #define WXWIN_OS_DESCRIPTION $OSINFO
15196 EOF
15197
15198
15199
15200 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
15201 OPENGL_LIBS="$OPENGL_LINK"
15202
15203 if test "$USE_MAC" = 1 ; then
15204 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -framework System"
15205 CFLAGS="${CFLAGS} -fpascal-strings"
15206 CPPFLAGS="${CPPFLAGS} -fpascal-strings"
15207 else
15208 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
15209 fi
15210 if test "$wxUSE_GUI" = "yes"; then
15211 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
15212 fi
15213
15214 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
15215
15216 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
15217
15218 if test "$wxUSE_GTK" = 1; then
15219 WXCONFIG_INCLUDE=""
15220 else
15221 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
15222 fi
15223
15224 if test "$GXX" = yes ; then
15225 CXXWARNINGS="-Wall"
15226 fi
15227 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
15228
15229 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
15230 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
15231
15232 LDFLAGS="$LDFLAGS $PROFILE"
15233
15234 if test "$wxUSE_GUI" = "yes"; then
15235
15236 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
15237 drawing dynamic event font fractal image menu \
15238 minimal richedit"
15239
15240 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
15241 else
15242 SAMPLES_SUBDIRS=""
15243 fi
15244
15245 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
15342 echo "configure:15343: checking whether ${MAKE-make} sets \${MAKE}" >&5
15343 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
15344 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
15345 echo $ac_n "(cached) $ac_c" 1>&6
15346 else
15347 cat > conftestmake <<\EOF
15348 all:
15349 @echo 'ac_maketemp="${MAKE}"'
15350 EOF
15351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15352 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
15353 if test -n "$ac_maketemp"; then
15354 eval ac_cv_prog_make_${ac_make}_set=yes
15355 else
15356 eval ac_cv_prog_make_${ac_make}_set=no
15357 fi
15358 rm -f conftestmake
15359 fi
15360 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
15361 echo "$ac_t""yes" 1>&6
15362 SET_MAKE=
15363 else
15364 echo "$ac_t""no" 1>&6
15365 SET_MAKE="MAKE=${MAKE-make}"
15366 fi
15367
15368
15369 if test -d include; then
15370 if test -d include/wx; then
15371 if test -d include/wx/${TOOLKIT_DIR}; then
15372 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
15373 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
15374 fi
15375 fi
15376 fi
15377 fi
15378
15379
15380
15381 if test "$wxUSE_GUI" = "yes"; then
15382 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
15383 wx_cv_path_ifs=$PATH_IFS
15384 wx_cv_program_ext=$PROGRAM_EXT
15385 wx_cv_target_library=$WX_TARGET_LIBRARY
15386 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
15387 subdirs="demos samples utils contrib"
15388
15389 fi
15390
15391 trap '' 1 2 15
15392 cat > confcache <<\EOF
15393 # This file is a shell script that caches the results of configure
15394 # tests run on this system so they can be shared between configure
15395 # scripts and configure runs. It is not useful on other systems.
15396 # If it contains results you don't want to keep, you may remove or edit it.
15397 #
15398 # By default, configure uses ./config.cache as the cache file,
15399 # creating it if it does not exist already. You can give configure
15400 # the --cache-file=FILE option to use a different cache file; that is
15401 # what configure does when it calls configure scripts in
15402 # subdirectories, so they share the cache.
15403 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15404 # config.status only pays attention to the cache file if you give it the
15405 # --recheck option to rerun configure.
15406 #
15407 EOF
15408 # The following way of writing the cache mishandles newlines in values,
15409 # but we know of no workaround that is simple, portable, and efficient.
15410 # So, don't put newlines in cache variables' values.
15411 # Ultrix sh set writes to stderr and can't be redirected directly,
15412 # and sets the high bit in the cache file unless we assign to the vars.
15413 (set) 2>&1 |
15414 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15415 *ac_space=\ *)
15416 # `set' does not quote correctly, so add quotes (double-quote substitution
15417 # turns \\\\ into \\, and sed turns \\ into \).
15418 sed -n \
15419 -e "s/'/'\\\\''/g" \
15420 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15421 ;;
15422 *)
15423 # `set' quotes correctly as required by POSIX, so do not add quotes.
15424 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15425 ;;
15426 esac >> confcache
15427 if cmp -s $cache_file confcache; then
15428 :
15429 else
15430 if test -w $cache_file; then
15431 echo "updating cache $cache_file"
15432 cat confcache > $cache_file
15433 else
15434 echo "not updating unwritable cache $cache_file"
15435 fi
15436 fi
15437 rm -f confcache
15438
15439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15440
15441 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15442 # Let make expand exec_prefix.
15443 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15444
15445 # Any assignment to VPATH causes Sun make to only execute
15446 # the first set of double-colon rules, so remove it if not needed.
15447 # If there is a colon in the path, we need to keep it.
15448 if test "x$srcdir" = x.; then
15449 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15450 fi
15451
15452 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15453
15454 DEFS=-DHAVE_CONFIG_H
15455
15456 # Without the "./", some shells look in PATH for config.status.
15457 : ${CONFIG_STATUS=./config.status}
15458
15459 echo creating $CONFIG_STATUS
15460 rm -f $CONFIG_STATUS
15461 cat > $CONFIG_STATUS <<EOF
15462 #! /bin/sh
15463 # Generated automatically by configure.
15464 # Run this file to recreate the current configuration.
15465 # This directory was configured as follows,
15466 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15467 #
15468 # $0 $ac_configure_args
15469 #
15470 # Compiler output produced by configure, useful for debugging
15471 # configure, is in ./config.log if it exists.
15472
15473 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15474 for ac_option
15475 do
15476 case "\$ac_option" in
15477 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15478 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15479 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15480 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15481 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15482 exit 0 ;;
15483 -help | --help | --hel | --he | --h)
15484 echo "\$ac_cs_usage"; exit 0 ;;
15485 *) echo "\$ac_cs_usage"; exit 1 ;;
15486 esac
15487 done
15488
15489 ac_given_srcdir=$srcdir
15490 ac_given_INSTALL="$INSTALL"
15491
15492 trap 'rm -fr `echo "
15493 wx-config
15494 src/make.env
15495 src/makeprog.env
15496 src/makelib.env
15497 Makefile
15498 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15499 EOF
15500 cat >> $CONFIG_STATUS <<EOF
15501
15502 # Protect against being on the right side of a sed subst in config.status.
15503 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15504 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15505 $ac_vpsub
15506 $extrasub
15507 s%@SHELL@%$SHELL%g
15508 s%@CFLAGS@%$CFLAGS%g
15509 s%@CPPFLAGS@%$CPPFLAGS%g
15510 s%@CXXFLAGS@%$CXXFLAGS%g
15511 s%@FFLAGS@%$FFLAGS%g
15512 s%@DEFS@%$DEFS%g
15513 s%@LDFLAGS@%$LDFLAGS%g
15514 s%@LIBS@%$LIBS%g
15515 s%@exec_prefix@%$exec_prefix%g
15516 s%@prefix@%$prefix%g
15517 s%@program_transform_name@%$program_transform_name%g
15518 s%@bindir@%$bindir%g
15519 s%@sbindir@%$sbindir%g
15520 s%@libexecdir@%$libexecdir%g
15521 s%@datadir@%$datadir%g
15522 s%@sysconfdir@%$sysconfdir%g
15523 s%@sharedstatedir@%$sharedstatedir%g
15524 s%@localstatedir@%$localstatedir%g
15525 s%@libdir@%$libdir%g
15526 s%@includedir@%$includedir%g
15527 s%@oldincludedir@%$oldincludedir%g
15528 s%@infodir@%$infodir%g
15529 s%@mandir@%$mandir%g
15530 s%@host@%$host%g
15531 s%@host_alias@%$host_alias%g
15532 s%@host_cpu@%$host_cpu%g
15533 s%@host_vendor@%$host_vendor%g
15534 s%@host_os@%$host_os%g
15535 s%@target@%$target%g
15536 s%@target_alias@%$target_alias%g
15537 s%@target_cpu@%$target_cpu%g
15538 s%@target_vendor@%$target_vendor%g
15539 s%@target_os@%$target_os%g
15540 s%@build@%$build%g
15541 s%@build_alias@%$build_alias%g
15542 s%@build_cpu@%$build_cpu%g
15543 s%@build_vendor@%$build_vendor%g
15544 s%@build_os@%$build_os%g
15545 s%@CC@%$CC%g
15546 s%@CPP@%$CPP%g
15547 s%@CXX@%$CXX%g
15548 s%@CXXCPP@%$CXXCPP%g
15549 s%@RANLIB@%$RANLIB%g
15550 s%@AR@%$AR%g
15551 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15552 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15553 s%@INSTALL_DATA@%$INSTALL_DATA%g
15554 s%@STRIP@%$STRIP%g
15555 s%@YACC@%$YACC%g
15556 s%@LEX@%$LEX%g
15557 s%@LEXLIB@%$LEXLIB%g
15558 s%@LN_S@%$LN_S%g
15559 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
15560 s%@GTK_CONFIG@%$GTK_CONFIG%g
15561 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
15562 s%@GTK_LIBS@%$GTK_LIBS%g
15563 s%@X_CFLAGS@%$X_CFLAGS%g
15564 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15565 s%@X_LIBS@%$X_LIBS%g
15566 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15567 s%@LEX_STEM@%$LEX_STEM%g
15568 s%@PATH_IFS@%$PATH_IFS%g
15569 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
15570 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
15571 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
15572 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
15573 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
15574 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
15575 s%@WX_LIBRARY@%$WX_LIBRARY%g
15576 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
15577 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
15578 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
15579 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
15580 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
15581 s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
15582 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
15583 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
15584 s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
15585 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
15586 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
15587 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
15588 s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
15589 s%@WX_ALL@%$WX_ALL%g
15590 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
15591 s%@SHARED_LD@%$SHARED_LD%g
15592 s%@PIC_FLAG@%$PIC_FLAG%g
15593 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
15594 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
15595 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
15596 s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
15597 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
15598 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
15599 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
15600 s%@USE_GUI@%$USE_GUI%g
15601 s%@AFMINSTALL@%$AFMINSTALL%g
15602 s%@TOOLKIT@%$TOOLKIT%g
15603 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
15604 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
15605 s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
15606 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
15607 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
15608 s%@GUIHEADERS@%$GUIHEADERS%g
15609 s%@GUIOBJS@%$GUIOBJS%g
15610 s%@COMMONOBJS@%$COMMONOBJS%g
15611 s%@GENERICOBJS@%$GENERICOBJS%g
15612 s%@GUIDEPS@%$GUIDEPS%g
15613 s%@COMMONDEPS@%$COMMONDEPS%g
15614 s%@GENERICDEPS@%$GENERICDEPS%g
15615 s%@IODBCOBJS@%$IODBCOBJS%g
15616 s%@UNIXOBJS@%$UNIXOBJS%g
15617 s%@UNIXDEPS@%$UNIXDEPS%g
15618 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
15619 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
15620 s%@GUIDIST@%$GUIDIST%g
15621 s%@PORT_FILES@%$PORT_FILES%g
15622 s%@DISTDIR@%$DISTDIR%g
15623 s%@RPM_SPEC@%$RPM_SPEC%g
15624 s%@RPM_FILES@%$RPM_FILES%g
15625 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
15626 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
15627 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
15628 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
15629 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
15630 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
15631 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
15632 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
15633 s%@EXTRADEFS@%$EXTRADEFS%g
15634 s%@LD_LIBS@%$LD_LIBS%g
15635 s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
15636 s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
15637 s%@RESPROGRAM@%$RESPROGRAM%g
15638 s%@RESCOMP@%$RESCOMP%g
15639 s%@RESFLAGS@%$RESFLAGS%g
15640 s%@DLLTOOL@%$DLLTOOL%g
15641 s%@AS@%$AS%g
15642 s%@NM@%$NM%g
15643 s%@LD@%$LD%g
15644 s%@MAKEINFO@%$MAKEINFO%g
15645 s%@SET_MAKE@%$SET_MAKE%g
15646 s%@subdirs@%$subdirs%g
15647
15648 CEOF
15649 EOF
15650
15651 cat >> $CONFIG_STATUS <<\EOF
15652
15653 # Split the substitutions into bite-sized pieces for seds with
15654 # small command number limits, like on Digital OSF/1 and HP-UX.
15655 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15656 ac_file=1 # Number of current file.
15657 ac_beg=1 # First line for current file.
15658 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15659 ac_more_lines=:
15660 ac_sed_cmds=""
15661 while $ac_more_lines; do
15662 if test $ac_beg -gt 1; then
15663 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15664 else
15665 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15666 fi
15667 if test ! -s conftest.s$ac_file; then
15668 ac_more_lines=false
15669 rm -f conftest.s$ac_file
15670 else
15671 if test -z "$ac_sed_cmds"; then
15672 ac_sed_cmds="sed -f conftest.s$ac_file"
15673 else
15674 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15675 fi
15676 ac_file=`expr $ac_file + 1`
15677 ac_beg=$ac_end
15678 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15679 fi
15680 done
15681 if test -z "$ac_sed_cmds"; then
15682 ac_sed_cmds=cat
15683 fi
15684 EOF
15685
15686 cat >> $CONFIG_STATUS <<EOF
15687
15688 CONFIG_FILES=\${CONFIG_FILES-"wx-config
15689 src/make.env
15690 src/makeprog.env
15691 src/makelib.env
15692 Makefile
15693 "}
15694 EOF
15695 cat >> $CONFIG_STATUS <<\EOF
15696 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15697 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15698 case "$ac_file" in
15699 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15700 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15701 *) ac_file_in="${ac_file}.in" ;;
15702 esac
15703
15704 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15705
15706 # Remove last slash and all that follows it. Not all systems have dirname.
15707 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15708 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15709 # The file is in a subdirectory.
15710 test ! -d "$ac_dir" && mkdir "$ac_dir"
15711 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15712 # A "../" for each directory in $ac_dir_suffix.
15713 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15714 else
15715 ac_dir_suffix= ac_dots=
15716 fi
15717
15718 case "$ac_given_srcdir" in
15719 .) srcdir=.
15720 if test -z "$ac_dots"; then top_srcdir=.
15721 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15722 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15723 *) # Relative path.
15724 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15725 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15726 esac
15727
15728 case "$ac_given_INSTALL" in
15729 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15730 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15731 esac
15732
15733 echo creating "$ac_file"
15734 rm -f "$ac_file"
15735 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15736 case "$ac_file" in
15737 *Makefile*) ac_comsub="1i\\
15738 # $configure_input" ;;
15739 *) ac_comsub= ;;
15740 esac
15741
15742 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15743 sed -e "$ac_comsub
15744 s%@configure_input@%$configure_input%g
15745 s%@srcdir@%$srcdir%g
15746 s%@top_srcdir@%$top_srcdir%g
15747 s%@INSTALL@%$INSTALL%g
15748 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15749 fi; done
15750 rm -f conftest.s*
15751
15752 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15753 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15754 #
15755 # ac_d sets the value in "#define NAME VALUE" lines.
15756 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15757 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15758 ac_dC='\3'
15759 ac_dD='%g'
15760 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15761 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15762 ac_uB='\([ ]\)%\1#\2define\3'
15763 ac_uC=' '
15764 ac_uD='\4%g'
15765 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15766 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15767 ac_eB='$%\1#\2define\3'
15768 ac_eC=' '
15769 ac_eD='%g'
15770
15771 if test "${CONFIG_HEADERS+set}" != set; then
15772 EOF
15773 cat >> $CONFIG_STATUS <<EOF
15774 CONFIG_HEADERS="setup.h:setup.h.in"
15775 EOF
15776 cat >> $CONFIG_STATUS <<\EOF
15777 fi
15778 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15779 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15780 case "$ac_file" in
15781 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15782 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15783 *) ac_file_in="${ac_file}.in" ;;
15784 esac
15785
15786 echo creating $ac_file
15787
15788 rm -f conftest.frag conftest.in conftest.out
15789 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15790 cat $ac_file_inputs > conftest.in
15791
15792 EOF
15793
15794 # Transform confdefs.h into a sed script conftest.vals that substitutes
15795 # the proper values into config.h.in to produce config.h. And first:
15796 # Protect against being on the right side of a sed subst in config.status.
15797 # Protect against being in an unquoted here document in config.status.
15798 rm -f conftest.vals
15799 cat > conftest.hdr <<\EOF
15800 s/[\\&%]/\\&/g
15801 s%[\\$`]%\\&%g
15802 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15803 s%ac_d%ac_u%gp
15804 s%ac_u%ac_e%gp
15805 EOF
15806 sed -n -f conftest.hdr confdefs.h > conftest.vals
15807 rm -f conftest.hdr
15808
15809 # This sed command replaces #undef with comments. This is necessary, for
15810 # example, in the case of _POSIX_SOURCE, which is predefined and required
15811 # on some systems where configure will not decide to define it.
15812 cat >> conftest.vals <<\EOF
15813 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15814 EOF
15815
15816 # Break up conftest.vals because some shells have a limit on
15817 # the size of here documents, and old seds have small limits too.
15818
15819 rm -f conftest.tail
15820 while :
15821 do
15822 ac_lines=`grep -c . conftest.vals`
15823 # grep -c gives empty output for an empty file on some AIX systems.
15824 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15825 # Write a limited-size here document to conftest.frag.
15826 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15827 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15828 echo 'CEOF
15829 sed -f conftest.frag conftest.in > conftest.out
15830 rm -f conftest.in
15831 mv conftest.out conftest.in
15832 ' >> $CONFIG_STATUS
15833 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15834 rm -f conftest.vals
15835 mv conftest.tail conftest.vals
15836 done
15837 rm -f conftest.vals
15838
15839 cat >> $CONFIG_STATUS <<\EOF
15840 rm -f conftest.frag conftest.h
15841 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15842 cat conftest.in >> conftest.h
15843 rm -f conftest.in
15844 if cmp -s $ac_file conftest.h 2>/dev/null; then
15845 echo "$ac_file is unchanged"
15846 rm -f conftest.h
15847 else
15848 # Remove last slash and all that follows it. Not all systems have dirname.
15849 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15850 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15851 # The file is in a subdirectory.
15852 test ! -d "$ac_dir" && mkdir "$ac_dir"
15853 fi
15854 rm -f $ac_file
15855 mv conftest.h $ac_file
15856 fi
15857 fi; done
15858
15859 EOF
15860 cat >> $CONFIG_STATUS <<EOF
15861
15862 TOOLKIT_DIR="${TOOLKIT_DIR}"
15863 TOOLKIT_NAME="${TOOLKIT_NAME}"
15864 LN_S="${LN_S}"
15865
15866
15867 EOF
15868 cat >> $CONFIG_STATUS <<\EOF
15869
15870 chmod +x wx-config
15871 mv wx-config wx${TOOLKIT_NAME}-config
15872 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
15873
15874
15875 if test ! -d lib; then
15876 mkdir lib
15877 fi
15878 if test ! -d lib/wx; then
15879 mkdir lib/wx
15880 fi
15881 if test ! -d lib/wx/include; then
15882 mkdir lib/wx/include
15883 fi
15884 if test ! -d lib/wx/include/wx; then
15885 mkdir lib/wx/include/wx
15886 fi
15887 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
15888 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
15889 fi
15890 if test -f setup.h; then
15891 cp -f setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
15892 fi
15893
15894
15895 if test ! -d include; then
15896 mkdir include
15897 fi
15898 if test ! -d include/wx; then
15899 mkdir include/wx
15900 fi
15901 if test ! -d include/wx/${TOOLKIT_DIR}; then
15902 mkdir include/wx/${TOOLKIT_DIR}
15903 fi
15904 if test -f setup.h; then
15905 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
15906 fi
15907
15908
15909 exit 0
15910 EOF
15911 chmod +x $CONFIG_STATUS
15912 rm -fr confdefs* $ac_clean_files
15913 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
15914
15915 if test "$no_recursion" != yes; then
15916
15917 # Remove --cache-file and --srcdir arguments so they do not pile up.
15918 ac_sub_configure_args=
15919 ac_prev=
15920 for ac_arg in $ac_configure_args; do
15921 if test -n "$ac_prev"; then
15922 ac_prev=
15923 continue
15924 fi
15925 case "$ac_arg" in
15926 -cache-file | --cache-file | --cache-fil | --cache-fi \
15927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15928 ac_prev=cache_file ;;
15929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
15931 ;;
15932 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15933 ac_prev=srcdir ;;
15934 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15935 ;;
15936 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
15937 esac
15938 done
15939
15940 for ac_config_dir in demos samples utils contrib; do
15941
15942 # Do not complain, so a configure script can configure whichever
15943 # parts of a large source tree are present.
15944 if test ! -d $srcdir/$ac_config_dir; then
15945 continue
15946 fi
15947
15948 echo configuring in $ac_config_dir
15949
15950 case "$srcdir" in
15951 .) ;;
15952 *)
15953 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
15954 else
15955 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
15956 fi
15957 ;;
15958 esac
15959
15960 ac_popdir=`pwd`
15961 cd $ac_config_dir
15962
15963 # A "../" for each directory in /$ac_config_dir.
15964 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
15965
15966 case "$srcdir" in
15967 .) # No --srcdir option. We are building in place.
15968 ac_sub_srcdir=$srcdir ;;
15969 /*) # Absolute path.
15970 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
15971 *) # Relative path.
15972 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
15973 esac
15974
15975 # Check for guested configure; otherwise get Cygnus style configure.
15976 if test -f $ac_sub_srcdir/configure; then
15977 ac_sub_configure=$ac_sub_srcdir/configure
15978 elif test -f $ac_sub_srcdir/configure.in; then
15979 ac_sub_configure=$ac_configure
15980 else
15981 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
15982 ac_sub_configure=
15983 fi
15984
15985 # The recursion is here.
15986 if test -n "$ac_sub_configure"; then
15987
15988 # Make the cache file name correct relative to the subdirectory.
15989 case "$cache_file" in
15990 /*) ac_sub_cache_file=$cache_file ;;
15991 *) # Relative path.
15992 ac_sub_cache_file="$ac_dots$cache_file" ;;
15993 esac
15994 case "$ac_given_INSTALL" in
15995 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15996 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15997 esac
15998
15999 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
16000 # The eval makes quoting arguments work.
16001 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
16002 then :
16003 else
16004 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
16005 fi
16006 fi
16007
16008 cd $ac_popdir
16009 done
16010 fi
16011
16012