]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
2c6025bc | 3 | # From configure.in Id: configure.in |
10f2d63a VZ |
4 | |
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
10f2d63a | 36 | |
422107f9 VZ |
37 | |
38 | ||
10f2d63a | 39 | |
6f72b082 OK |
40 | |
41 | ||
42 | # Configure paths for GTK+ | |
43 | # Owen Taylor 97-11-3 | |
10f2d63a VZ |
44 | |
45 | ||
46 | # Guess values for system-dependent variables and create Makefiles. | |
e8482f24 | 47 | # Generated automatically using autoconf version 2.13 |
10f2d63a VZ |
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" | |
b4085ce6 GD |
63 | ac_help="$ac_help |
64 | --with-mac use Mac OS X" | |
10f2d63a VZ |
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" | |
e07802fc VZ |
71 | ac_help="$ac_help |
72 | --with-pm use OS/2 Presentation Manager" | |
10f2d63a VZ |
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 | |
10f2d63a VZ |
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 | |
c7a2bf27 RR |
82 | --with-libtiff use libtiff (TIFF file format)" |
83 | ac_help="$ac_help | |
3fed1840 RR |
84 | --with-freetype use freetype (font rasterizer)" |
85 | ac_help="$ac_help | |
10f2d63a VZ |
86 | --with-opengl use OpenGL (or Mesa)" |
87 | ac_help="$ac_help | |
b12915c1 VZ |
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 | |
10f2d63a VZ |
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 | |
00cf1208 RR |
96 | --enable-burnt_name create set name in shared library " |
97 | ac_help="$ac_help | |
10f2d63a VZ |
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 | |
10f2d63a VZ |
128 | --enable-ipc use interprocess communication (wxSocket etc.)" |
129 | ac_help="$ac_help | |
eb4efbdc VZ |
130 | --enable-dialupman use dialup network classes" |
131 | ac_help="$ac_help | |
10f2d63a VZ |
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 | |
e8f65ba6 RR |
144 | --enable-geometry use geometry class" |
145 | ac_help="$ac_help | |
10f2d63a VZ |
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 | |
10f2d63a VZ |
160 | --enable-std_iostreams use standard C++ stream classes" |
161 | ac_help="$ac_help | |
24528b0c VS |
162 | --enable-filesystem use virtual file systems classes" |
163 | ac_help="$ac_help | |
10f2d63a VZ |
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 | |
eb4efbdc VZ |
170 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
171 | ac_help="$ac_help | |
10f2d63a VZ |
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 | |
b64f0a5f RL |
198 | --enable-metafile use win32 metafiles" |
199 | ac_help="$ac_help | |
10f2d63a VZ |
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 | |
56cfaa52 RR |
244 | --enable-spinctrl use wxSpinCtrl class" |
245 | ac_help="$ac_help | |
10f2d63a VZ |
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 | |
1db8dc4a VZ |
258 | --enable-togglebtn use wxToggleButton class" |
259 | ac_help="$ac_help | |
10f2d63a VZ |
260 | --enable-toolbar use wxToolBar class" |
261 | ac_help="$ac_help | |
360d6699 VZ |
262 | --enable-tbarnative use native wxToolBar class" |
263 | ac_help="$ac_help | |
264 | --enable-tbarsmpl use wxToolBarSimple class" | |
265 | ac_help="$ac_help | |
10f2d63a VZ |
266 | --enable-treectrl use wxTreeCtrl class" |
267 | ac_help="$ac_help | |
268 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
269 | ac_help="$ac_help | |
270 | --enable-dirdlg use wxDirDialog" | |
271 | ac_help="$ac_help | |
272 | --enable-textdlg use wxTextDialog" | |
273 | ac_help="$ac_help | |
274 | --enable-tipdlg use startup tips" | |
275 | ac_help="$ac_help | |
276 | --enable-progressdlg use wxProgressDialog" | |
277 | ac_help="$ac_help | |
278 | --enable-miniframe use wxMiniFrame class" | |
279 | ac_help="$ac_help | |
280 | --enable-html use wxHTML sub-library" | |
281 | ac_help="$ac_help | |
282 | --enable-tooltips use wxToolTip class" | |
283 | ac_help="$ac_help | |
284 | --enable-splines use spline drawing code" | |
285 | ac_help="$ac_help | |
286 | --enable-validators use wxValidator and derived classes" | |
287 | ac_help="$ac_help | |
288 | --enable-busyinfo use wxBusyInfo" | |
289 | ac_help="$ac_help | |
f6bcfd97 BP |
290 | --enable-joystick compile in joystick support (Linux only)" |
291 | ac_help="$ac_help | |
10f2d63a VZ |
292 | --enable-gif use gif images (GIF file format)" |
293 | ac_help="$ac_help | |
294 | --enable-pcx use pcx images (PCX file format)" | |
295 | ac_help="$ac_help | |
296 | --enable-pnm use pnm images (PNM file format)" | |
6f72b082 OK |
297 | ac_help="$ac_help |
298 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
299 | ac_help="$ac_help | |
300 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
301 | ac_help="$ac_help | |
302 | --disable-gtktest Do not try to compile and run a test GTK program" | |
ab9b9eab VZ |
303 | ac_help="$ac_help |
304 | --with-x use the X Window System" | |
10f2d63a VZ |
305 | |
306 | # Initialize some variables set by options. | |
307 | # The variables have the same names as the options, with | |
308 | # dashes changed to underlines. | |
309 | build=NONE | |
310 | cache_file=./config.cache | |
311 | exec_prefix=NONE | |
312 | host=NONE | |
313 | no_create= | |
314 | nonopt=NONE | |
315 | no_recursion= | |
316 | prefix=NONE | |
317 | program_prefix=NONE | |
318 | program_suffix=NONE | |
319 | program_transform_name=s,x,x, | |
320 | silent= | |
321 | site= | |
322 | srcdir= | |
323 | target=NONE | |
324 | verbose= | |
325 | x_includes=NONE | |
326 | x_libraries=NONE | |
327 | bindir='${exec_prefix}/bin' | |
328 | sbindir='${exec_prefix}/sbin' | |
329 | libexecdir='${exec_prefix}/libexec' | |
330 | datadir='${prefix}/share' | |
331 | sysconfdir='${prefix}/etc' | |
332 | sharedstatedir='${prefix}/com' | |
333 | localstatedir='${prefix}/var' | |
334 | libdir='${exec_prefix}/lib' | |
335 | includedir='${prefix}/include' | |
336 | oldincludedir='/usr/include' | |
337 | infodir='${prefix}/info' | |
338 | mandir='${prefix}/man' | |
339 | ||
340 | # Initialize some other variables. | |
341 | subdirs= | |
342 | MFLAGS= MAKEFLAGS= | |
343 | SHELL=${CONFIG_SHELL-/bin/sh} | |
344 | # Maximum number of lines to put in a shell here document. | |
345 | ac_max_here_lines=12 | |
346 | ||
347 | ac_prev= | |
348 | for ac_option | |
349 | do | |
350 | ||
351 | # If the previous option needs an argument, assign it. | |
352 | if test -n "$ac_prev"; then | |
353 | eval "$ac_prev=\$ac_option" | |
354 | ac_prev= | |
355 | continue | |
356 | fi | |
357 | ||
358 | case "$ac_option" in | |
359 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
360 | *) ac_optarg= ;; | |
361 | esac | |
362 | ||
363 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
364 | ||
365 | case "$ac_option" in | |
366 | ||
367 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
368 | ac_prev=bindir ;; | |
369 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
370 | bindir="$ac_optarg" ;; | |
371 | ||
372 | -build | --build | --buil | --bui | --bu) | |
373 | ac_prev=build ;; | |
374 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
375 | build="$ac_optarg" ;; | |
376 | ||
377 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
378 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
379 | ac_prev=cache_file ;; | |
380 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
381 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
382 | cache_file="$ac_optarg" ;; | |
383 | ||
384 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
385 | ac_prev=datadir ;; | |
386 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
387 | | --da=*) | |
388 | datadir="$ac_optarg" ;; | |
389 | ||
390 | -disable-* | --disable-*) | |
391 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
392 | # Reject names that are not valid shell variable names. | |
393 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
394 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
395 | fi | |
396 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
397 | eval "enable_${ac_feature}=no" ;; | |
398 | ||
399 | -enable-* | --enable-*) | |
400 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
403 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
404 | fi | |
405 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
406 | case "$ac_option" in | |
407 | *=*) ;; | |
408 | *) ac_optarg=yes ;; | |
409 | esac | |
410 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
411 | ||
412 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
413 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
414 | | --exec | --exe | --ex) | |
415 | ac_prev=exec_prefix ;; | |
416 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
417 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
418 | | --exec=* | --exe=* | --ex=*) | |
419 | exec_prefix="$ac_optarg" ;; | |
420 | ||
421 | -gas | --gas | --ga | --g) | |
422 | # Obsolete; use --with-gas. | |
423 | with_gas=yes ;; | |
424 | ||
425 | -help | --help | --hel | --he) | |
426 | # Omit some internal or obsolete options to make the list less imposing. | |
427 | # This message is too long to be a string in the A/UX 3.1 sh. | |
428 | cat << EOF | |
429 | Usage: configure [options] [host] | |
430 | Options: [defaults in brackets after descriptions] | |
431 | Configuration: | |
432 | --cache-file=FILE cache test results in FILE | |
433 | --help print this message | |
434 | --no-create do not create output files | |
435 | --quiet, --silent do not print \`checking...' messages | |
436 | --version print the version of autoconf that created configure | |
437 | Directory and file names: | |
438 | --prefix=PREFIX install architecture-independent files in PREFIX | |
439 | [$ac_default_prefix] | |
440 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
441 | [same as prefix] | |
442 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
443 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
444 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
445 | --datadir=DIR read-only architecture-independent data in DIR | |
446 | [PREFIX/share] | |
447 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
448 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
449 | [PREFIX/com] | |
450 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
451 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
452 | --includedir=DIR C header files in DIR [PREFIX/include] | |
453 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
454 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
455 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
456 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
457 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
458 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
459 | --program-transform-name=PROGRAM | |
460 | run sed PROGRAM on installed program names | |
461 | EOF | |
462 | cat << EOF | |
463 | Host type: | |
464 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
465 | --host=HOST configure for HOST [guessed] | |
466 | --target=TARGET configure for TARGET [TARGET=HOST] | |
467 | Features and packages: | |
468 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
469 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
470 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
471 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
472 | --x-includes=DIR X include files are in DIR | |
473 | --x-libraries=DIR X library files are in DIR | |
474 | EOF | |
475 | if test -n "$ac_help"; then | |
476 | echo "--enable and --with options recognized:$ac_help" | |
477 | fi | |
478 | exit 0 ;; | |
479 | ||
480 | -host | --host | --hos | --ho) | |
481 | ac_prev=host ;; | |
482 | -host=* | --host=* | --hos=* | --ho=*) | |
483 | host="$ac_optarg" ;; | |
484 | ||
485 | -includedir | --includedir | --includedi | --included | --include \ | |
486 | | --includ | --inclu | --incl | --inc) | |
487 | ac_prev=includedir ;; | |
488 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
489 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
490 | includedir="$ac_optarg" ;; | |
491 | ||
492 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
493 | ac_prev=infodir ;; | |
494 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
495 | infodir="$ac_optarg" ;; | |
496 | ||
497 | -libdir | --libdir | --libdi | --libd) | |
498 | ac_prev=libdir ;; | |
499 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
500 | libdir="$ac_optarg" ;; | |
501 | ||
502 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
503 | | --libexe | --libex | --libe) | |
504 | ac_prev=libexecdir ;; | |
505 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
506 | | --libexe=* | --libex=* | --libe=*) | |
507 | libexecdir="$ac_optarg" ;; | |
508 | ||
509 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
510 | | --localstate | --localstat | --localsta | --localst \ | |
511 | | --locals | --local | --loca | --loc | --lo) | |
512 | ac_prev=localstatedir ;; | |
513 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
514 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
515 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
516 | localstatedir="$ac_optarg" ;; | |
517 | ||
518 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
519 | ac_prev=mandir ;; | |
520 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
521 | mandir="$ac_optarg" ;; | |
522 | ||
523 | -nfp | --nfp | --nf) | |
524 | # Obsolete; use --without-fp. | |
525 | with_fp=no ;; | |
526 | ||
527 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
528 | | --no-cr | --no-c) | |
529 | no_create=yes ;; | |
530 | ||
531 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
532 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
533 | no_recursion=yes ;; | |
534 | ||
535 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
536 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
537 | | --oldin | --oldi | --old | --ol | --o) | |
538 | ac_prev=oldincludedir ;; | |
539 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
540 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
541 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
542 | oldincludedir="$ac_optarg" ;; | |
543 | ||
544 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
545 | ac_prev=prefix ;; | |
546 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
547 | prefix="$ac_optarg" ;; | |
548 | ||
549 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
550 | | --program-pre | --program-pr | --program-p) | |
551 | ac_prev=program_prefix ;; | |
552 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
553 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
554 | program_prefix="$ac_optarg" ;; | |
555 | ||
556 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
557 | | --program-suf | --program-su | --program-s) | |
558 | ac_prev=program_suffix ;; | |
559 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
560 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
561 | program_suffix="$ac_optarg" ;; | |
562 | ||
563 | -program-transform-name | --program-transform-name \ | |
564 | | --program-transform-nam | --program-transform-na \ | |
565 | | --program-transform-n | --program-transform- \ | |
566 | | --program-transform | --program-transfor \ | |
567 | | --program-transfo | --program-transf \ | |
568 | | --program-trans | --program-tran \ | |
569 | | --progr-tra | --program-tr | --program-t) | |
570 | ac_prev=program_transform_name ;; | |
571 | -program-transform-name=* | --program-transform-name=* \ | |
572 | | --program-transform-nam=* | --program-transform-na=* \ | |
573 | | --program-transform-n=* | --program-transform-=* \ | |
574 | | --program-transform=* | --program-transfor=* \ | |
575 | | --program-transfo=* | --program-transf=* \ | |
576 | | --program-trans=* | --program-tran=* \ | |
577 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
578 | program_transform_name="$ac_optarg" ;; | |
579 | ||
580 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
581 | | -silent | --silent | --silen | --sile | --sil) | |
582 | silent=yes ;; | |
583 | ||
584 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
585 | ac_prev=sbindir ;; | |
586 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
587 | | --sbi=* | --sb=*) | |
588 | sbindir="$ac_optarg" ;; | |
589 | ||
590 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
591 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
592 | | --sharedst | --shareds | --shared | --share | --shar \ | |
593 | | --sha | --sh) | |
594 | ac_prev=sharedstatedir ;; | |
595 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
596 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
597 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
598 | | --sha=* | --sh=*) | |
599 | sharedstatedir="$ac_optarg" ;; | |
600 | ||
601 | -site | --site | --sit) | |
602 | ac_prev=site ;; | |
603 | -site=* | --site=* | --sit=*) | |
604 | site="$ac_optarg" ;; | |
605 | ||
606 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
607 | ac_prev=srcdir ;; | |
608 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
609 | srcdir="$ac_optarg" ;; | |
610 | ||
611 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
612 | | --syscon | --sysco | --sysc | --sys | --sy) | |
613 | ac_prev=sysconfdir ;; | |
614 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
615 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
616 | sysconfdir="$ac_optarg" ;; | |
617 | ||
618 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
619 | ac_prev=target ;; | |
620 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
621 | target="$ac_optarg" ;; | |
622 | ||
623 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
624 | verbose=yes ;; | |
625 | ||
626 | -version | --version | --versio | --versi | --vers) | |
e8482f24 | 627 | echo "configure generated by autoconf version 2.13" |
10f2d63a VZ |
628 | exit 0 ;; |
629 | ||
630 | -with-* | --with-*) | |
631 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
632 | # Reject names that are not valid shell variable names. | |
633 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
634 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
635 | fi | |
636 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
637 | case "$ac_option" in | |
638 | *=*) ;; | |
639 | *) ac_optarg=yes ;; | |
640 | esac | |
641 | eval "with_${ac_package}='$ac_optarg'" ;; | |
642 | ||
643 | -without-* | --without-*) | |
644 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
645 | # Reject names that are not valid shell variable names. | |
646 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
647 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
648 | fi | |
649 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
650 | eval "with_${ac_package}=no" ;; | |
651 | ||
652 | --x) | |
653 | # Obsolete; use --with-x. | |
654 | with_x=yes ;; | |
655 | ||
656 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
657 | | --x-incl | --x-inc | --x-in | --x-i) | |
658 | ac_prev=x_includes ;; | |
659 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
660 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
661 | x_includes="$ac_optarg" ;; | |
662 | ||
663 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
664 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
665 | ac_prev=x_libraries ;; | |
666 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
667 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
668 | x_libraries="$ac_optarg" ;; | |
669 | ||
670 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
671 | ;; | |
672 | ||
673 | *) | |
674 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
675 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
676 | fi | |
677 | if test "x$nonopt" != xNONE; then | |
678 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
679 | fi | |
680 | nonopt="$ac_option" | |
681 | ;; | |
682 | ||
683 | esac | |
684 | done | |
685 | ||
686 | if test -n "$ac_prev"; then | |
687 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
688 | fi | |
689 | ||
690 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
691 | ||
692 | # File descriptor usage: | |
693 | # 0 standard input | |
694 | # 1 file creation | |
695 | # 2 errors and warnings | |
696 | # 3 some systems may open it to /dev/tty | |
697 | # 4 used on the Kubota Titan | |
698 | # 6 checking for... messages and results | |
699 | # 5 compiler messages saved in config.log | |
700 | if test "$silent" = yes; then | |
701 | exec 6>/dev/null | |
702 | else | |
703 | exec 6>&1 | |
704 | fi | |
705 | exec 5>./config.log | |
706 | ||
707 | echo "\ | |
708 | This file contains any messages produced by compilers while | |
709 | running configure, to aid debugging if configure makes a mistake. | |
710 | " 1>&5 | |
711 | ||
712 | # Strip out --no-create and --no-recursion so they do not pile up. | |
713 | # Also quote any args containing shell metacharacters. | |
714 | ac_configure_args= | |
715 | for ac_arg | |
716 | do | |
717 | case "$ac_arg" in | |
718 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
719 | | --no-cr | --no-c) ;; | |
720 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
721 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
722 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
723 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
724 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
725 | esac | |
726 | done | |
727 | ||
728 | # NLS nuisances. | |
729 | # Only set these to C if already set. These must not be set unconditionally | |
730 | # because not all systems understand e.g. LANG=C (notably SCO). | |
731 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
732 | # Non-C LC_CTYPE values break the ctype check. | |
733 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
734 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
735 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
736 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
737 | ||
738 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
739 | rm -rf conftest* confdefs.h | |
740 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
741 | echo > confdefs.h | |
742 | ||
743 | # A filename unique to this package, relative to the directory that | |
744 | # configure is in, which we can look for to find out if srcdir is correct. | |
745 | ac_unique_file=wx-config.in | |
746 | ||
747 | # Find the source files, if location was not specified. | |
748 | if test -z "$srcdir"; then | |
749 | ac_srcdir_defaulted=yes | |
750 | # Try the directory containing this script, then its parent. | |
751 | ac_prog=$0 | |
752 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
753 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
754 | srcdir=$ac_confdir | |
755 | if test ! -r $srcdir/$ac_unique_file; then | |
756 | srcdir=.. | |
757 | fi | |
758 | else | |
759 | ac_srcdir_defaulted=no | |
760 | fi | |
761 | if test ! -r $srcdir/$ac_unique_file; then | |
762 | if test "$ac_srcdir_defaulted" = yes; then | |
763 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
764 | else | |
765 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
766 | fi | |
767 | fi | |
768 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
769 | ||
770 | # Prefer explicitly selected file to automatically selected ones. | |
771 | if test -z "$CONFIG_SITE"; then | |
772 | if test "x$prefix" != xNONE; then | |
773 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
774 | else | |
775 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
776 | fi | |
777 | fi | |
778 | for ac_site_file in $CONFIG_SITE; do | |
779 | if test -r "$ac_site_file"; then | |
780 | echo "loading site script $ac_site_file" | |
781 | . "$ac_site_file" | |
782 | fi | |
783 | done | |
784 | ||
785 | if test -r "$cache_file"; then | |
786 | echo "loading cache $cache_file" | |
787 | . $cache_file | |
788 | else | |
789 | echo "creating cache $cache_file" | |
790 | > $cache_file | |
791 | fi | |
792 | ||
793 | ac_ext=c | |
794 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
795 | ac_cpp='$CPP $CPPFLAGS' | |
796 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
797 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
798 | cross_compiling=$ac_cv_prog_cc_cross | |
799 | ||
800 | ac_exeext= | |
801 | ac_objext=o | |
802 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
803 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
804 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
805 | ac_n= ac_c=' | |
806 | ' ac_t=' ' | |
807 | else | |
808 | ac_n=-n ac_c= ac_t= | |
809 | fi | |
810 | else | |
811 | ac_n= ac_c='\c' ac_t= | |
812 | fi | |
813 | ||
814 | ||
815 | ||
7c66a493 VZ |
816 | ac_aux_dir= |
817 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
818 | if test -f $ac_dir/install-sh; then | |
819 | ac_aux_dir=$ac_dir | |
820 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
821 | break | |
822 | elif test -f $ac_dir/install.sh; then | |
823 | ac_aux_dir=$ac_dir | |
824 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
825 | break | |
826 | fi | |
827 | done | |
828 | if test -z "$ac_aux_dir"; then | |
829 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
830 | fi | |
831 | ac_config_guess=$ac_aux_dir/config.guess | |
832 | ac_config_sub=$ac_aux_dir/config.sub | |
833 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
834 | ||
835 | ||
836 | # Do some error checking and defaulting for the host and target type. | |
837 | # The inputs are: | |
838 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
839 | # | |
840 | # The rules are: | |
841 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
842 | # same time. | |
843 | # 2. Host defaults to nonopt. | |
844 | # 3. If nonopt is not specified, then host defaults to the current host, | |
845 | # as determined by config.guess. | |
846 | # 4. Target and build default to nonopt. | |
847 | # 5. If nonopt is not specified, then target and build default to host. | |
848 | ||
849 | # The aliases save the names the user supplied, while $host etc. | |
850 | # will get canonicalized. | |
851 | case $host---$target---$nonopt in | |
852 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
853 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
854 | esac | |
855 | ||
856 | ||
857 | # Make sure we can run config.sub. | |
858 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
859 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
860 | fi | |
861 | ||
862 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
1db8dc4a | 863 | echo "configure:864: checking host system type" >&5 |
7c66a493 VZ |
864 | |
865 | host_alias=$host | |
866 | case "$host_alias" in | |
867 | NONE) | |
868 | case $nonopt in | |
869 | NONE) | |
870 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
871 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
872 | fi ;; | |
873 | *) host_alias=$nonopt ;; | |
874 | esac ;; | |
875 | esac | |
876 | ||
877 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
878 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
879 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
880 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
881 | echo "$ac_t""$host" 1>&6 | |
882 | ||
883 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
1db8dc4a | 884 | echo "configure:885: checking target system type" >&5 |
7c66a493 VZ |
885 | |
886 | target_alias=$target | |
887 | case "$target_alias" in | |
888 | NONE) | |
889 | case $nonopt in | |
890 | NONE) target_alias=$host_alias ;; | |
891 | *) target_alias=$nonopt ;; | |
892 | esac ;; | |
893 | esac | |
894 | ||
895 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
896 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
897 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
898 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
899 | echo "$ac_t""$target" 1>&6 | |
900 | ||
901 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
1db8dc4a | 902 | echo "configure:903: checking build system type" >&5 |
7c66a493 VZ |
903 | |
904 | build_alias=$build | |
905 | case "$build_alias" in | |
906 | NONE) | |
907 | case $nonopt in | |
908 | NONE) build_alias=$host_alias ;; | |
909 | *) build_alias=$nonopt ;; | |
910 | esac ;; | |
911 | esac | |
912 | ||
913 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
914 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
915 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
916 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
917 | echo "$ac_t""$build" 1>&6 | |
918 | ||
919 | test "$host_alias" != "$target_alias" && | |
920 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
921 | NONENONEs,x,x, && | |
922 | program_prefix=${target_alias}- | |
923 | ||
924 | ||
10f2d63a VZ |
925 | |
926 | WX_MAJOR_VERSION_NUMBER=2 | |
37d403aa | 927 | WX_MINOR_VERSION_NUMBER=3 |
f6bcfd97 | 928 | WX_RELEASE_NUMBER=0 |
10f2d63a VZ |
929 | |
930 | WX_INTERFACE_AGE=0 | |
e8f65ba6 | 931 | WX_BINARY_AGE=0 |
10f2d63a VZ |
932 | |
933 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
934 | ||
935 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
936 | WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE` | |
937 | WX_REVISION=$WX_INTERFACE_AGE | |
938 | WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE` | |
939 | ||
940 | ||
941 | USE_UNIX=1 | |
942 | USE_WIN32=0 | |
b12915c1 VZ |
943 | USE_BEOS=0 |
944 | ||
10f2d63a VZ |
945 | USE_LINUX= |
946 | USE_SGI= | |
947 | USE_HPUX= | |
948 | USE_SYSV= | |
949 | USE_SVR4= | |
950 | USE_AIX= | |
951 | USE_SUN= | |
952 | USE_SOLARIS= | |
953 | USE_SUNOS= | |
954 | USE_ALPHA= | |
955 | USE_OSF= | |
956 | USE_BSD= | |
957 | USE_FREEBSD= | |
f6bcfd97 | 958 | USE_NETBSD= |
10f2d63a VZ |
959 | USE_VMS= |
960 | USE_ULTRIX= | |
961 | USE_CYGWIN= | |
962 | USE_MINGW= | |
963 | USE_DATA_GENERAL= | |
964 | ||
ab9b9eab VZ |
965 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
966 | ||
b4085ce6 | 967 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF MAC WINE PM" |
10f2d63a VZ |
968 | |
969 | DEFAULT_wxUSE_GTK=0 | |
970 | DEFAULT_wxUSE_MOTIF=0 | |
971 | DEFAULT_wxUSE_MSW=0 | |
b4085ce6 | 972 | DEFAULT_wxUSE_MAC=0 |
10f2d63a | 973 | DEFAULT_wxUSE_WINE=0 |
e07802fc | 974 | DEFAULT_wxUSE_PM=0 |
10f2d63a VZ |
975 | |
976 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
977 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
978 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
b4085ce6 | 979 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
10f2d63a | 980 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
e07802fc | 981 | DEFAULT_DEFAULT_wxUSE_PM=0 |
10f2d63a | 982 | |
d6a55c4b VZ |
983 | PROGRAM_EXT= |
984 | ||
10f2d63a VZ |
985 | case "${host}" in |
986 | *-hp-hpux* ) | |
987 | USE_HPUX=1 | |
988 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 989 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
990 | cat >> confdefs.h <<\EOF |
991 | #define __HPUX__ 1 | |
992 | EOF | |
993 | ||
994 | ;; | |
995 | *-*-linux* ) | |
996 | USE_LINUX=1 | |
997 | cat >> confdefs.h <<\EOF | |
998 | #define __LINUX__ 1 | |
999 | EOF | |
1000 | ||
1001 | TMP=`uname -m` | |
1002 | if test "x$TMP" = "xalpha"; then | |
1003 | USE_ALPHA=1 | |
1004 | cat >> confdefs.h <<\EOF | |
1005 | #define __ALPHA__ 1 | |
1006 | EOF | |
1007 | ||
1008 | fi | |
1009 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1010 | ;; | |
1011 | *-*-irix5* | *-*-irix6* ) | |
1012 | USE_SGI=1 | |
1013 | USE_SVR4=1 | |
1014 | cat >> confdefs.h <<\EOF | |
1015 | #define __SGI__ 1 | |
1016 | EOF | |
1017 | ||
1018 | cat >> confdefs.h <<\EOF | |
1019 | #define __SVR4__ 1 | |
1020 | EOF | |
1021 | ||
1022 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1023 | ;; | |
1024 | *-*-solaris2* ) | |
1025 | USE_SUN=1 | |
1026 | USE_SOLARIS=1 | |
1027 | USE_SVR4=1 | |
1028 | cat >> confdefs.h <<\EOF | |
1029 | #define __SUN__ 1 | |
1030 | EOF | |
1031 | ||
1032 | cat >> confdefs.h <<\EOF | |
1033 | #define __SOLARIS__ 1 | |
1034 | EOF | |
1035 | ||
1036 | cat >> confdefs.h <<\EOF | |
1037 | #define __SVR4__ 1 | |
1038 | EOF | |
1039 | ||
1040 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1041 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1042 | ;; |
1043 | *-*-sunos4* ) | |
1044 | USE_SUN=1 | |
1045 | USE_SUNOS=1 | |
1046 | USE_BSD=1 | |
1047 | cat >> confdefs.h <<\EOF | |
1048 | #define __SUN__ 1 | |
1049 | EOF | |
1050 | ||
1051 | cat >> confdefs.h <<\EOF | |
1052 | #define __SUNOS__ 1 | |
1053 | EOF | |
1054 | ||
1055 | cat >> confdefs.h <<\EOF | |
1056 | #define __BSD__ 1 | |
1057 | EOF | |
1058 | ||
1059 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1060 | ;; | |
f6bcfd97 | 1061 | *-*-freebsd*) |
10f2d63a VZ |
1062 | USE_BSD=1 |
1063 | USE_FREEBSD=1 | |
1064 | cat >> confdefs.h <<\EOF | |
1065 | #define __FREEBSD__ 1 | |
1066 | EOF | |
1067 | ||
1068 | cat >> confdefs.h <<\EOF | |
1069 | #define __BSD__ 1 | |
f6bcfd97 BP |
1070 | EOF |
1071 | ||
1072 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1073 | ;; | |
1074 | *-*-netbsd*) | |
1075 | USE_BSD=1 | |
1076 | USE_NETBSD=1 | |
1077 | cat >> confdefs.h <<\EOF | |
1078 | #define __FREEBSD__ 1 | |
1079 | EOF | |
1080 | ||
1081 | cat >> confdefs.h <<\EOF | |
1082 | #define __NETBSD__ 1 | |
10f2d63a VZ |
1083 | EOF |
1084 | ||
1085 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1086 | ;; | |
1087 | *-*-osf* ) | |
1088 | USE_ALPHA=1 | |
1089 | USE_OSF=1 | |
1090 | cat >> confdefs.h <<\EOF | |
1091 | #define __ALPHA__ 1 | |
1092 | EOF | |
1093 | ||
1094 | cat >> confdefs.h <<\EOF | |
1095 | #define __OSF__ 1 | |
1096 | EOF | |
1097 | ||
1098 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1099 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1100 | ;; |
1101 | *-*-dgux5* ) | |
1102 | USE_ALPHA=1 | |
1103 | USE_SVR4=1 | |
1104 | cat >> confdefs.h <<\EOF | |
1105 | #define __ALPHA__ 1 | |
1106 | EOF | |
1107 | ||
1108 | cat >> confdefs.h <<\EOF | |
1109 | #define __SVR4__ 1 | |
1110 | EOF | |
1111 | ||
1112 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1113 | ;; | |
1114 | *-*-sysv5* ) | |
1115 | USE_SYSV=1 | |
1116 | USE_SVR4=1 | |
1117 | cat >> confdefs.h <<\EOF | |
1118 | #define __SYSV__ 1 | |
1119 | EOF | |
1120 | ||
1121 | cat >> confdefs.h <<\EOF | |
1122 | #define __SVR4__ 1 | |
1123 | EOF | |
1124 | ||
1125 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1126 | ;; | |
1127 | *-*-aix* ) | |
1128 | USE_AIX=1 | |
1129 | USE_SYSV=1 | |
1130 | USE_SVR4=1 | |
1131 | cat >> confdefs.h <<\EOF | |
1132 | #define __AIX__ 1 | |
1133 | EOF | |
1134 | ||
1135 | cat >> confdefs.h <<\EOF | |
1136 | #define __SYSV__ 1 | |
1137 | EOF | |
1138 | ||
1139 | cat >> confdefs.h <<\EOF | |
1140 | #define __SVR4__ 1 | |
1141 | EOF | |
1142 | ||
1143 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1144 | ;; | |
1145 | ||
7eef8db2 | 1146 | *-*-cygwin32* | *-*-mingw32* ) |
10f2d63a VZ |
1147 | USE_UNIX=0 |
1148 | USE_WIN32=1 | |
1149 | cat >> confdefs.h <<\EOF | |
1150 | #define __WIN32__ 1 | |
1151 | EOF | |
1152 | ||
1153 | cat >> confdefs.h <<\EOF | |
1154 | #define __WIN95__ 1 | |
1155 | EOF | |
1156 | ||
1157 | cat >> confdefs.h <<\EOF | |
1158 | #define __WINDOWS__ 1 | |
1159 | EOF | |
1160 | ||
1161 | cat >> confdefs.h <<\EOF | |
1162 | #define __GNUWIN32__ 1 | |
1163 | EOF | |
1164 | ||
1165 | cat >> confdefs.h <<\EOF | |
1166 | #define STRICT 1 | |
1167 | EOF | |
1168 | ||
1169 | cat >> confdefs.h <<\EOF | |
1170 | #define WINVER 0x0400 | |
1171 | EOF | |
1172 | ||
cf27ef00 | 1173 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1174 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1175 | ;; | |
1176 | ||
1177 | *-pc-os2_emx ) | |
1178 | cat >> confdefs.h <<\EOF | |
1179 | #define __EMX__ 1 | |
1180 | EOF | |
1181 | ||
cf27ef00 | 1182 | PROGRAM_EXT=".exe" |
e07802fc | 1183 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1184 | ;; |
1185 | ||
b4085ce6 GD |
1186 | *-*-darwin* ) |
1187 | USE_BSD=1 | |
1188 | USE_MAC=1 | |
1189 | cat >> confdefs.h <<\EOF | |
1190 | #define __MAC__ 1 | |
1191 | EOF | |
1192 | ||
1193 | cat >> confdefs.h <<\EOF | |
1194 | #define __BSD__ 1 | |
1195 | EOF | |
1196 | ||
1197 | cat >> confdefs.h <<\EOF | |
1198 | #define __UNIX__ 1 | |
1199 | EOF | |
1200 | ||
1201 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1202 | ;; | |
1203 | ||
b12915c1 VZ |
1204 | *-*-beos* ) |
1205 | USE_BEOS=1 | |
1206 | cat >> confdefs.h <<\EOF | |
1207 | #define __BEOS__ 1 | |
1208 | EOF | |
1209 | ||
1210 | ;; | |
1211 | ||
10f2d63a VZ |
1212 | *) |
1213 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1214 | esac | |
1215 | ||
1216 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 VZ |
1217 | wxUSE_UNIX=yes |
1218 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
1219 | #define __UNIX__ 1 |
1220 | EOF | |
1221 | ||
b12915c1 VZ |
1222 | |
1223 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1224 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1225 | fi | |
1226 | ||
1227 | if test "$USE_BEOS" = 1; then | |
1228 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1229 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1230 | fi |
1231 | ||
1232 | if test "$USE_LINUX" = 1; then | |
1233 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
1db8dc4a | 1234 | echo "configure:1235: checking for gettext in -lc" >&5 |
10f2d63a VZ |
1235 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1236 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1238 | else | |
1239 | ac_save_LIBS="$LIBS" | |
1240 | LIBS="-lc $LIBS" | |
1241 | cat > conftest.$ac_ext <<EOF | |
1db8dc4a | 1242 | #line 1243 "configure" |
10f2d63a VZ |
1243 | #include "confdefs.h" |
1244 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1245 | /* We use char because int might match the return type of a gcc2 | |
1246 | builtin and then its argument prototype would still apply. */ | |
1247 | char gettext(); | |
1248 | ||
1249 | int main() { | |
1250 | gettext() | |
1251 | ; return 0; } | |
1252 | EOF | |
1db8dc4a | 1253 | if { (eval echo configure:1254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
1254 | rm -rf conftest* |
1255 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1256 | else | |
1257 | echo "configure: failed program was:" >&5 | |
1258 | cat conftest.$ac_ext >&5 | |
1259 | rm -rf conftest* | |
1260 | eval "ac_cv_lib_$ac_lib_var=no" | |
1261 | fi | |
1262 | rm -f conftest* | |
1263 | LIBS="$ac_save_LIBS" | |
1264 | ||
1265 | fi | |
1266 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1267 | echo "$ac_t""yes" 1>&6 | |
1268 | cat >> confdefs.h <<\EOF | |
1269 | #define wxHAVE_GLIBC2 1 | |
1270 | EOF | |
1271 | ||
1272 | else | |
1273 | echo "$ac_t""no" 1>&6 | |
1274 | fi | |
1275 | ||
1276 | fi | |
1277 | ||
1278 | ||
1279 | ||
1280 | ||
1281 | wx_arg_cache_file="configarg.cache" | |
1282 | echo "loading argument cache $wx_arg_cache_file" | |
1283 | rm -f ${wx_arg_cache_file}.tmp | |
1284 | touch ${wx_arg_cache_file}.tmp | |
1285 | touch ${wx_arg_cache_file} | |
1286 | ||
1287 | ||
1288 | DEBUG_CONFIGURE=0 | |
1289 | if test $DEBUG_CONFIGURE = 1; then | |
1290 | DEFAULT_wxUSE_THREADS=yes | |
1291 | ||
1292 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1293 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1294 | DEFAULT_wxUSE_OPTIMISE=yes |
1295 | DEFAULT_wxUSE_PROFILE=no | |
1296 | DEFAULT_wxUSE_NO_DEPS=no | |
1297 | DEFAULT_wxUSE_NO_RTTI=no | |
1298 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1299 | DEFAULT_wxUSE_PERMISSIVE=no | |
1300 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1301 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1302 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1303 | DEFAULT_wxUSE_MEM_TRACING=no | |
1304 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1305 | DEFAULT_wxUSE_DMALLOC=no | |
1306 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1307 | ||
1308 | DEFAULT_wxUSE_LOG=yes | |
1309 | ||
1310 | DEFAULT_wxUSE_GUI=yes | |
1311 | ||
1312 | DEFAULT_wxUSE_ZLIB=no | |
1313 | DEFAULT_wxUSE_LIBPNG=no | |
1314 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1315 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1316 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1317 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1318 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1319 | |
eb4efbdc | 1320 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
10f2d63a VZ |
1321 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1322 | DEFAULT_wxUSE_FILE=no | |
1323 | DEFAULT_wxUSE_TEXTFILE=no | |
1324 | DEFAULT_wxUSE_TIMEDATE=no | |
1325 | DEFAULT_wxUSE_WAVE=no | |
1326 | DEFAULT_wxUSE_INTL=no | |
1327 | DEFAULT_wxUSE_CONFIG=no | |
1328 | DEFAULT_wxUSE_STREAMS=no | |
1329 | DEFAULT_wxUSE_SOCKETS=no | |
1330 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1331 | DEFAULT_wxUSE_SERIAL=no | |
1332 | DEFAULT_wxUSE_JOYSTICK=no | |
1333 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1334 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1335 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1336 | |
1337 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1338 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1339 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1340 | ||
1341 | DEFAULT_wxUSE_X_RESOURCES=no | |
1342 | DEFAULT_wxUSE_CLIPBOARD=no | |
1343 | DEFAULT_wxUSE_TOOLTIPS=no | |
1344 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1345 | DEFAULT_wxUSE_SPLINES=no | |
1346 | ||
1347 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1348 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1349 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1350 | ||
1351 | DEFAULT_wxUSE_PROLOGIO=no | |
1352 | DEFAULT_wxUSE_RESOURCES=no | |
1353 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1354 | DEFAULT_wxUSE_IPC=no | |
1355 | DEFAULT_wxUSE_HELP=no | |
1356 | DEFAULT_wxUSE_WXTREE=no | |
1357 | DEFAULT_wxUSE_METAFILE=no | |
1358 | ||
1359 | DEFAULT_wxUSE_COMMONDLGS=no | |
1360 | DEFAULT_wxUSE_DIRDLG=no | |
1361 | DEFAULT_wxUSE_TEXTDLG=no | |
1362 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1363 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1364 | DEFAULT_wxUSE_MINIFRAME=no | |
1365 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1366 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1367 | DEFAULT_wxUSE_FS_INET=no |
1368 | DEFAULT_wxUSE_FS_ZIP=no | |
1369 | DEFAULT_wxUSE_BUSYINFO=no | |
1370 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1371 | DEFAULT_wxUSE_VALIDATORS=yes | |
1372 | ||
1373 | DEFAULT_wxUSE_ACCEL=no | |
1374 | DEFAULT_wxUSE_CARET=no | |
1375 | DEFAULT_wxUSE_BMPBUTTON=no | |
1376 | DEFAULT_wxUSE_CHECKBOX=no | |
1377 | DEFAULT_wxUSE_CHECKLST=no | |
1378 | DEFAULT_wxUSE_CHOICE=yes | |
1379 | DEFAULT_wxUSE_COMBOBOX=no | |
1380 | DEFAULT_wxUSE_GAUGE=no | |
1381 | DEFAULT_wxUSE_GRID=no | |
1382 | DEFAULT_wxUSE_NEW_GRID=no | |
1383 | DEFAULT_wxUSE_IMAGLIST=no | |
1384 | DEFAULT_wxUSE_LISTBOX=no | |
1385 | DEFAULT_wxUSE_LISTCTRL=no | |
1386 | DEFAULT_wxUSE_NOTEBOOK=no | |
1387 | DEFAULT_wxUSE_RADIOBOX=no | |
1388 | DEFAULT_wxUSE_RADIOBTN=no | |
1389 | DEFAULT_wxUSE_SASH=no | |
1390 | DEFAULT_wxUSE_SCROLLBAR=no | |
1391 | DEFAULT_wxUSE_SLIDER=no | |
1392 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1393 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1394 | DEFAULT_wxUSE_SPLITTER=no |
1395 | DEFAULT_wxUSE_STATBMP=no | |
1396 | DEFAULT_wxUSE_STATBOX=no | |
1397 | DEFAULT_wxUSE_STATLINE=no | |
1398 | DEFAULT_wxUSE_STATUSBAR=yes | |
1399 | DEFAULT_wxUSE_TABDIALOG=no | |
1db8dc4a | 1400 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1401 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1402 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1403 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1404 | DEFAULT_wxUSE_TREECTRL=no |
1405 | ||
1406 | DEFAULT_wxUSE_UNICODE=no | |
1407 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1408 | ||
1409 | DEFAULT_wxUSE_GIF=no | |
1410 | DEFAULT_wxUSE_PCX=no | |
1411 | DEFAULT_wxUSE_PNM=no | |
1412 | else | |
1413 | DEFAULT_wxUSE_THREADS=yes | |
1414 | ||
1415 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1416 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1417 | DEFAULT_wxUSE_OPTIMISE=yes |
1418 | DEFAULT_wxUSE_PROFILE=no | |
1419 | DEFAULT_wxUSE_NO_DEPS=no | |
1420 | DEFAULT_wxUSE_NO_RTTI=no | |
1421 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1422 | DEFAULT_wxUSE_PERMISSIVE=no | |
1423 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1424 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1425 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1426 | DEFAULT_wxUSE_MEM_TRACING=no | |
1427 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1428 | DEFAULT_wxUSE_DMALLOC=no | |
1429 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1430 | ||
1431 | DEFAULT_wxUSE_LOG=yes | |
1432 | ||
1433 | DEFAULT_wxUSE_GUI=yes | |
1434 | ||
1435 | DEFAULT_wxUSE_ZLIB=yes | |
1436 | DEFAULT_wxUSE_LIBPNG=yes | |
1437 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1438 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1439 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1440 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1441 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1442 | |
eb4efbdc | 1443 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
10f2d63a VZ |
1444 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1445 | DEFAULT_wxUSE_FILE=yes | |
1446 | DEFAULT_wxUSE_TEXTFILE=yes | |
1447 | DEFAULT_wxUSE_TIMEDATE=yes | |
1448 | DEFAULT_wxUSE_WAVE=no | |
1449 | DEFAULT_wxUSE_INTL=yes | |
1450 | DEFAULT_wxUSE_CONFIG=yes | |
1451 | DEFAULT_wxUSE_STREAMS=yes | |
1452 | DEFAULT_wxUSE_SOCKETS=yes | |
1453 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1454 | DEFAULT_wxUSE_SERIAL=yes | |
1455 | DEFAULT_wxUSE_JOYSTICK=yes | |
1456 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1457 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1458 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1459 | |
1460 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1461 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1462 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1463 | ||
1464 | DEFAULT_wxUSE_X_RESOURCES=no | |
1465 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1466 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1467 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1468 | DEFAULT_wxUSE_SPLINES=yes | |
1469 | ||
1470 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1471 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1472 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1473 | ||
1474 | DEFAULT_wxUSE_PROLOGIO=yes | |
1475 | DEFAULT_wxUSE_RESOURCES=yes | |
1476 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1477 | DEFAULT_wxUSE_IPC=yes | |
1478 | DEFAULT_wxUSE_HELP=yes | |
1479 | DEFAULT_wxUSE_WXTREE=yes | |
1480 | DEFAULT_wxUSE_METAFILE=yes | |
1481 | ||
1482 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1483 | DEFAULT_wxUSE_DIRDLG=yes | |
1484 | DEFAULT_wxUSE_TEXTDLG=yes | |
1485 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1486 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1487 | DEFAULT_wxUSE_MINIFRAME=yes | |
1488 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1489 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1490 | DEFAULT_wxUSE_FS_INET=yes |
1491 | DEFAULT_wxUSE_FS_ZIP=yes | |
1492 | DEFAULT_wxUSE_BUSYINFO=yes | |
1493 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1494 | DEFAULT_wxUSE_VALIDATORS=yes | |
1495 | ||
1496 | DEFAULT_wxUSE_ACCEL=yes | |
1497 | DEFAULT_wxUSE_CARET=yes | |
1498 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1499 | DEFAULT_wxUSE_CHECKBOX=yes | |
1500 | DEFAULT_wxUSE_CHECKLST=yes | |
1501 | DEFAULT_wxUSE_CHOICE=yes | |
1502 | DEFAULT_wxUSE_COMBOBOX=yes | |
1503 | DEFAULT_wxUSE_GAUGE=yes | |
1504 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1505 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1506 | DEFAULT_wxUSE_IMAGLIST=yes |
1507 | DEFAULT_wxUSE_LISTBOX=yes | |
1508 | DEFAULT_wxUSE_LISTCTRL=yes | |
1509 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1510 | DEFAULT_wxUSE_RADIOBOX=yes | |
1511 | DEFAULT_wxUSE_RADIOBTN=yes | |
1512 | DEFAULT_wxUSE_SASH=yes | |
1513 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1514 | DEFAULT_wxUSE_SLIDER=yes | |
1515 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1516 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1517 | DEFAULT_wxUSE_SPLITTER=yes |
1518 | DEFAULT_wxUSE_STATBMP=yes | |
1519 | DEFAULT_wxUSE_STATBOX=yes | |
1520 | DEFAULT_wxUSE_STATLINE=yes | |
1521 | DEFAULT_wxUSE_STATUSBAR=yes | |
1522 | DEFAULT_wxUSE_TABDIALOG=no | |
1db8dc4a | 1523 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1524 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1525 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1526 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
1527 | DEFAULT_wxUSE_TREECTRL=yes |
1528 | ||
1529 | DEFAULT_wxUSE_UNICODE=no | |
1530 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1531 | ||
1532 | DEFAULT_wxUSE_GIF=yes | |
1533 | DEFAULT_wxUSE_PCX=yes | |
1534 | DEFAULT_wxUSE_PNM=yes | |
1535 | fi | |
1536 | ||
1537 | ||
1538 | ||
1539 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1540 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1541 | if test "x$LINE" != x ; then | |
1542 | has_toolkit_in_cache=1 | |
1543 | eval "DEFAULT_$LINE" | |
1544 | eval "CACHE_$toolkit=1" | |
1545 | fi | |
1546 | done | |
1547 | ||
1548 | ||
1549 | ||
1550 | echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6 | |
1db8dc4a | 1551 | echo "configure:1552: checking "for --enable-gui"" >&5 |
10f2d63a VZ |
1552 | no_cache=0 |
1553 | # Check whether --enable-gui or --disable-gui was given. | |
1554 | if test "${enable_gui+set}" = set; then | |
1555 | enableval="$enable_gui" | |
1556 | ||
1557 | if test "$enableval" = yes; then | |
1558 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1559 | else | |
1560 | ac_cv_use_gui='wxUSE_GUI=no' | |
1561 | fi | |
1562 | ||
1563 | else | |
1564 | ||
1565 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1566 | if test "x$LINE" != x ; then | |
1567 | eval "DEFAULT_$LINE" | |
1568 | else | |
1569 | no_cache=1 | |
1570 | fi | |
1571 | ||
1572 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1573 | ||
1574 | fi | |
1575 | ||
1576 | ||
1577 | eval "$ac_cv_use_gui" | |
1578 | if test "$no_cache" != 1; then | |
1579 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1580 | fi | |
1581 | ||
1582 | if test "$wxUSE_GUI" = yes; then | |
1583 | echo "$ac_t""yes" 1>&6 | |
1584 | else | |
1585 | echo "$ac_t""no" 1>&6 | |
1586 | fi | |
1587 | ||
1588 | ||
b12915c1 | 1589 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a VZ |
1590 | |
1591 | # Check whether --with-gtk or --without-gtk was given. | |
1592 | if test "${with_gtk+set}" = set; then | |
1593 | withval="$with_gtk" | |
1594 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1595 | fi | |
1596 | ||
1597 | # Check whether --with-motif or --without-motif was given. | |
1598 | if test "${with_motif+set}" = set; then | |
1599 | withval="$with_motif" | |
1600 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1601 | fi | |
1602 | ||
b4085ce6 GD |
1603 | # Check whether --with-mac or --without-mac was given. |
1604 | if test "${with_mac+set}" = set; then | |
1605 | withval="$with_mac" | |
1606 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
1607 | fi | |
1608 | ||
10f2d63a VZ |
1609 | # Check whether --with-wine or --without-wine was given. |
1610 | if test "${with_wine+set}" = set; then | |
1611 | withval="$with_wine" | |
1612 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1613 | fi | |
1614 | ||
1615 | # Check whether --with-cygwin or --without-cygwin was given. | |
1616 | if test "${with_cygwin+set}" = set; then | |
1617 | withval="$with_cygwin" | |
1618 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1619 | fi | |
1620 | ||
1621 | # Check whether --with-mingw or --without-mingw was given. | |
1622 | if test "${with_mingw+set}" = set; then | |
1623 | withval="$with_mingw" | |
1624 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1625 | fi | |
1626 | ||
e07802fc VZ |
1627 | # Check whether --with-pm or --without-pm was given. |
1628 | if test "${with_pm+set}" = set; then | |
1629 | withval="$with_pm" | |
1630 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
1631 | fi | |
1632 | ||
10f2d63a VZ |
1633 | |
1634 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1635 | if test "${with_gtk_prefix+set}" = set; then | |
1636 | withval="$with_gtk_prefix" | |
1637 | gtk_config_prefix="$withval" | |
1638 | else | |
1639 | gtk_config_prefix="" | |
1640 | fi | |
1641 | ||
1642 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1643 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1644 | withval="$with_gtk_exec_prefix" | |
1645 | gtk_config_exec_prefix="$withval" | |
1646 | else | |
1647 | gtk_config_exec_prefix="" | |
1648 | fi | |
1649 | ||
1650 | ||
1651 | ||
b12915c1 | 1652 | echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6 |
1db8dc4a | 1653 | echo "configure:1654: checking "for --with-libpng"" >&5 |
10f2d63a | 1654 | no_cache=0 |
b12915c1 VZ |
1655 | # Check whether --with-libpng or --without-libpng was given. |
1656 | if test "${with_libpng+set}" = set; then | |
1657 | withval="$with_libpng" | |
10f2d63a VZ |
1658 | |
1659 | if test "$withval" = yes; then | |
b12915c1 | 1660 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1661 | elif test "$withval" = no; then |
b12915c1 | 1662 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1663 | elif test "$withval" = sys; then |
1664 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1665 | else | |
1666 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1667 | fi |
1668 | ||
1669 | else | |
1670 | ||
b12915c1 | 1671 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1672 | if test "x$LINE" != x ; then |
1673 | eval "DEFAULT_$LINE" | |
1674 | else | |
1675 | no_cache=1 | |
1676 | fi | |
1677 | ||
b12915c1 | 1678 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a VZ |
1679 | |
1680 | fi | |
1681 | ||
1682 | ||
b12915c1 | 1683 | eval "$ac_cv_use_libpng" |
10f2d63a | 1684 | if test "$no_cache" != 1; then |
b12915c1 | 1685 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1686 | fi |
1687 | ||
b12915c1 | 1688 | if test "$wxUSE_LIBPNG" = yes; then |
10f2d63a | 1689 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1690 | elif test "$wxUSE_LIBPNG" = no; then |
10f2d63a | 1691 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1692 | elif test "$wxUSE_LIBPNG" = sys; then |
1693 | echo "$ac_t""system version" 1>&6 | |
1694 | else | |
1695 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1696 | fi |
1697 | ||
1698 | ||
b12915c1 | 1699 | echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6 |
1db8dc4a | 1700 | echo "configure:1701: checking "for --with-libjpeg"" >&5 |
10f2d63a | 1701 | no_cache=0 |
b12915c1 VZ |
1702 | # Check whether --with-libjpeg or --without-libjpeg was given. |
1703 | if test "${with_libjpeg+set}" = set; then | |
1704 | withval="$with_libjpeg" | |
10f2d63a VZ |
1705 | |
1706 | if test "$withval" = yes; then | |
b12915c1 | 1707 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1708 | elif test "$withval" = no; then |
b12915c1 | 1709 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1710 | elif test "$withval" = sys; then |
1711 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1712 | else | |
1713 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1714 | fi |
1715 | ||
1716 | else | |
1717 | ||
b12915c1 | 1718 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1719 | if test "x$LINE" != x ; then |
1720 | eval "DEFAULT_$LINE" | |
1721 | else | |
1722 | no_cache=1 | |
1723 | fi | |
1724 | ||
b12915c1 | 1725 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a VZ |
1726 | |
1727 | fi | |
1728 | ||
1729 | ||
b12915c1 | 1730 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1731 | if test "$no_cache" != 1; then |
b12915c1 | 1732 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1733 | fi |
1734 | ||
b12915c1 | 1735 | if test "$wxUSE_LIBJPEG" = yes; then |
10f2d63a | 1736 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1737 | elif test "$wxUSE_LIBJPEG" = no; then |
10f2d63a | 1738 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1739 | elif test "$wxUSE_LIBJPEG" = sys; then |
1740 | echo "$ac_t""system version" 1>&6 | |
1741 | else | |
1742 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1743 | fi |
1744 | ||
1745 | ||
b12915c1 | 1746 | echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6 |
1db8dc4a | 1747 | echo "configure:1748: checking "for --with-libtiff"" >&5 |
10f2d63a | 1748 | no_cache=0 |
b12915c1 VZ |
1749 | # Check whether --with-libtiff or --without-libtiff was given. |
1750 | if test "${with_libtiff+set}" = set; then | |
1751 | withval="$with_libtiff" | |
10f2d63a VZ |
1752 | |
1753 | if test "$withval" = yes; then | |
b12915c1 | 1754 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1755 | elif test "$withval" = no; then |
b12915c1 | 1756 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1757 | elif test "$withval" = sys; then |
1758 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1759 | else | |
1760 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1761 | fi |
1762 | ||
1763 | else | |
1764 | ||
b12915c1 | 1765 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1766 | if test "x$LINE" != x ; then |
1767 | eval "DEFAULT_$LINE" | |
1768 | else | |
1769 | no_cache=1 | |
1770 | fi | |
1771 | ||
b12915c1 | 1772 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a VZ |
1773 | |
1774 | fi | |
1775 | ||
1776 | ||
b12915c1 | 1777 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1778 | if test "$no_cache" != 1; then |
b12915c1 | 1779 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1780 | fi |
1781 | ||
b12915c1 | 1782 | if test "$wxUSE_LIBTIFF" = yes; then |
10f2d63a | 1783 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1784 | elif test "$wxUSE_LIBTIFF" = no; then |
10f2d63a | 1785 | echo "$ac_t""no" 1>&6 |
0dcf9893 VZ |
1786 | elif test "$wxUSE_LIBTIFF" = sys; then |
1787 | echo "$ac_t""system version" 1>&6 | |
1788 | else | |
1789 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1790 | fi |
1791 | ||
1792 | ||
3fed1840 | 1793 | echo $ac_n "checking "for --with-freetype"""... $ac_c" 1>&6 |
1db8dc4a | 1794 | echo "configure:1795: checking "for --with-freetype"" >&5 |
3fed1840 RR |
1795 | no_cache=0 |
1796 | # Check whether --with-freetype or --without-freetype was given. | |
1797 | if test "${with_freetype+set}" = set; then | |
1798 | withval="$with_freetype" | |
1799 | ||
1800 | if test "$withval" = yes; then | |
1801 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1802 | elif test "$withval" = no; then | |
1803 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1804 | elif test "$withval" = sys; then | |
1805 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
1806 | else | |
1807 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } | |
1808 | fi | |
1809 | ||
1810 | else | |
1811 | ||
1812 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` | |
1813 | if test "x$LINE" != x ; then | |
1814 | eval "DEFAULT_$LINE" | |
1815 | else | |
1816 | no_cache=1 | |
1817 | fi | |
1818 | ||
1819 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
1820 | ||
1821 | fi | |
1822 | ||
1823 | ||
1824 | eval "$ac_cv_use_freetype" | |
1825 | if test "$no_cache" != 1; then | |
1826 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
1827 | fi | |
1828 | ||
1829 | if test "$wxUSE_FREETYPE" = yes; then | |
1830 | echo "$ac_t""yes" 1>&6 | |
1831 | elif test "$wxUSE_FREETYPE" = no; then | |
1832 | echo "$ac_t""no" 1>&6 | |
1833 | elif test "$wxUSE_FREETYPE" = sys; then | |
1834 | echo "$ac_t""system version" 1>&6 | |
1835 | else | |
1836 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } | |
1837 | fi | |
1838 | ||
1839 | ||
b12915c1 | 1840 | echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6 |
1db8dc4a | 1841 | echo "configure:1842: checking "for --with-opengl"" >&5 |
10f2d63a | 1842 | no_cache=0 |
b12915c1 VZ |
1843 | # Check whether --with-opengl or --without-opengl was given. |
1844 | if test "${with_opengl+set}" = set; then | |
1845 | withval="$with_opengl" | |
10f2d63a VZ |
1846 | |
1847 | if test "$withval" = yes; then | |
b12915c1 | 1848 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 1849 | else |
b12915c1 | 1850 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a VZ |
1851 | fi |
1852 | ||
1853 | else | |
1854 | ||
b12915c1 | 1855 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
1856 | if test "x$LINE" != x ; then |
1857 | eval "DEFAULT_$LINE" | |
1858 | else | |
1859 | no_cache=1 | |
1860 | fi | |
1861 | ||
b12915c1 | 1862 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a VZ |
1863 | |
1864 | fi | |
1865 | ||
1866 | ||
b12915c1 | 1867 | eval "$ac_cv_use_opengl" |
10f2d63a | 1868 | if test "$no_cache" != 1; then |
b12915c1 | 1869 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1870 | fi |
1871 | ||
b12915c1 | 1872 | if test "$wxUSE_OPENGL" = yes; then |
10f2d63a VZ |
1873 | echo "$ac_t""yes" 1>&6 |
1874 | else | |
1875 | echo "$ac_t""no" 1>&6 | |
1876 | fi | |
1877 | ||
1878 | ||
b12915c1 VZ |
1879 | fi |
1880 | ||
1881 | ||
1882 | echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6 | |
1db8dc4a | 1883 | echo "configure:1884: checking "for --with-dmalloc"" >&5 |
c7a2bf27 | 1884 | no_cache=0 |
b12915c1 VZ |
1885 | # Check whether --with-dmalloc or --without-dmalloc was given. |
1886 | if test "${with_dmalloc+set}" = set; then | |
1887 | withval="$with_dmalloc" | |
c7a2bf27 RR |
1888 | |
1889 | if test "$withval" = yes; then | |
b12915c1 | 1890 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 1891 | else |
b12915c1 | 1892 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 RR |
1893 | fi |
1894 | ||
1895 | else | |
1896 | ||
b12915c1 | 1897 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
1898 | if test "x$LINE" != x ; then |
1899 | eval "DEFAULT_$LINE" | |
1900 | else | |
1901 | no_cache=1 | |
1902 | fi | |
1903 | ||
b12915c1 | 1904 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 RR |
1905 | |
1906 | fi | |
1907 | ||
1908 | ||
b12915c1 | 1909 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 1910 | if test "$no_cache" != 1; then |
b12915c1 | 1911 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
1912 | fi |
1913 | ||
b12915c1 | 1914 | if test "$wxUSE_DMALLOC" = yes; then |
c7a2bf27 RR |
1915 | echo "$ac_t""yes" 1>&6 |
1916 | else | |
1917 | echo "$ac_t""no" 1>&6 | |
1918 | fi | |
1919 | ||
1920 | ||
b12915c1 | 1921 | echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6 |
1db8dc4a | 1922 | echo "configure:1923: checking "for --with-zlib"" >&5 |
10f2d63a | 1923 | no_cache=0 |
b12915c1 VZ |
1924 | # Check whether --with-zlib or --without-zlib was given. |
1925 | if test "${with_zlib+set}" = set; then | |
1926 | withval="$with_zlib" | |
10f2d63a VZ |
1927 | |
1928 | if test "$withval" = yes; then | |
b12915c1 | 1929 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 1930 | elif test "$withval" = no; then |
b12915c1 | 1931 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
1932 | elif test "$withval" = sys; then |
1933 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
1934 | else | |
1935 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1936 | fi |
1937 | ||
1938 | else | |
1939 | ||
b12915c1 | 1940 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
1941 | if test "x$LINE" != x ; then |
1942 | eval "DEFAULT_$LINE" | |
1943 | else | |
1944 | no_cache=1 | |
1945 | fi | |
1946 | ||
b12915c1 | 1947 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a VZ |
1948 | |
1949 | fi | |
1950 | ||
1951 | ||
b12915c1 | 1952 | eval "$ac_cv_use_zlib" |
10f2d63a | 1953 | if test "$no_cache" != 1; then |
b12915c1 | 1954 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1955 | fi |
1956 | ||
b12915c1 | 1957 | if test "$wxUSE_ZLIB" = yes; then |
10f2d63a | 1958 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1959 | elif test "$wxUSE_ZLIB" = no; then |
bdad4e7e | 1960 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1961 | elif test "$wxUSE_ZLIB" = sys; then |
1962 | echo "$ac_t""system version" 1>&6 | |
1963 | else | |
1964 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1965 | fi |
1966 | ||
1967 | ||
1968 | echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6 | |
1db8dc4a | 1969 | echo "configure:1970: checking "for --with-odbc"" >&5 |
10f2d63a VZ |
1970 | no_cache=0 |
1971 | # Check whether --with-odbc or --without-odbc was given. | |
1972 | if test "${with_odbc+set}" = set; then | |
1973 | withval="$with_odbc" | |
1974 | ||
1975 | if test "$withval" = yes; then | |
1976 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
1977 | else | |
1978 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
1979 | fi | |
1980 | ||
1981 | else | |
1982 | ||
1983 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
1984 | if test "x$LINE" != x ; then | |
1985 | eval "DEFAULT_$LINE" | |
1986 | else | |
1987 | no_cache=1 | |
1988 | fi | |
1989 | ||
1990 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
1991 | ||
1992 | fi | |
1993 | ||
1994 | ||
1995 | eval "$ac_cv_use_odbc" | |
1996 | if test "$no_cache" != 1; then | |
1997 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
1998 | fi | |
1999 | ||
2000 | if test "$wxUSE_ODBC" = yes; then | |
2001 | echo "$ac_t""yes" 1>&6 | |
2002 | else | |
2003 | echo "$ac_t""no" 1>&6 | |
2004 | fi | |
2005 | ||
2006 | ||
2007 | ||
2008 | ||
2009 | ||
2010 | echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6 | |
1db8dc4a | 2011 | echo "configure:2012: checking "for --enable-shared"" >&5 |
10f2d63a VZ |
2012 | no_cache=0 |
2013 | # Check whether --enable-shared or --disable-shared was given. | |
2014 | if test "${enable_shared+set}" = set; then | |
2015 | enableval="$enable_shared" | |
2016 | ||
2017 | if test "$enableval" = yes; then | |
2018 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2019 | else | |
2020 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2021 | fi | |
2022 | ||
2023 | else | |
2024 | ||
2025 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
2026 | if test "x$LINE" != x ; then | |
2027 | eval "DEFAULT_$LINE" | |
2028 | else | |
2029 | no_cache=1 | |
2030 | fi | |
2031 | ||
2032 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
2033 | ||
2034 | fi | |
2035 | ||
2036 | ||
2037 | eval "$ac_cv_use_shared" | |
2038 | if test "$no_cache" != 1; then | |
2039 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2040 | fi | |
2041 | ||
2042 | if test "$wxUSE_SHARED" = yes; then | |
2043 | echo "$ac_t""yes" 1>&6 | |
2044 | else | |
2045 | echo "$ac_t""no" 1>&6 | |
2046 | fi | |
2047 | ||
2048 | ||
00cf1208 | 2049 | echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6 |
1db8dc4a | 2050 | echo "configure:2051: checking "for --enable-burnt_name"" >&5 |
00cf1208 RR |
2051 | no_cache=0 |
2052 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
2053 | if test "${enable_burnt_name+set}" = set; then | |
2054 | enableval="$enable_burnt_name" | |
2055 | ||
2056 | if test "$enableval" = yes; then | |
2057 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
2058 | else | |
2059 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
2060 | fi | |
2061 | ||
2062 | else | |
2063 | ||
2064 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` | |
2065 | if test "x$LINE" != x ; then | |
2066 | eval "DEFAULT_$LINE" | |
2067 | else | |
2068 | no_cache=1 | |
2069 | fi | |
2070 | ||
2071 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
2072 | ||
2073 | fi | |
2074 | ||
2075 | ||
2076 | eval "$ac_cv_use_burnt_name" | |
2077 | if test "$no_cache" != 1; then | |
2078 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
2079 | fi | |
2080 | ||
2081 | if test "$wxUSE_BURNT_NAME" = yes; then | |
2082 | echo "$ac_t""yes" 1>&6 | |
2083 | else | |
2084 | echo "$ac_t""no" 1>&6 | |
2085 | fi | |
2086 | ||
2087 | ||
10f2d63a | 2088 | echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6 |
1db8dc4a | 2089 | echo "configure:2090: checking "for --enable-optimise"" >&5 |
10f2d63a VZ |
2090 | no_cache=0 |
2091 | # Check whether --enable-optimise or --disable-optimise was given. | |
2092 | if test "${enable_optimise+set}" = set; then | |
2093 | enableval="$enable_optimise" | |
2094 | ||
2095 | if test "$enableval" = yes; then | |
2096 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2097 | else | |
2098 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2099 | fi | |
2100 | ||
2101 | else | |
2102 | ||
2103 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
2104 | if test "x$LINE" != x ; then | |
2105 | eval "DEFAULT_$LINE" | |
2106 | else | |
2107 | no_cache=1 | |
2108 | fi | |
2109 | ||
2110 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
2111 | ||
2112 | fi | |
2113 | ||
2114 | ||
2115 | eval "$ac_cv_use_optimise" | |
2116 | if test "$no_cache" != 1; then | |
2117 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2118 | fi | |
2119 | ||
2120 | if test "$wxUSE_OPTIMISE" = yes; then | |
2121 | echo "$ac_t""yes" 1>&6 | |
2122 | else | |
2123 | echo "$ac_t""no" 1>&6 | |
2124 | fi | |
2125 | ||
2126 | ||
2127 | echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6 | |
1db8dc4a | 2128 | echo "configure:2129: checking "for --enable-debug"" >&5 |
10f2d63a VZ |
2129 | no_cache=0 |
2130 | # Check whether --enable-debug or --disable-debug was given. | |
2131 | if test "${enable_debug+set}" = set; then | |
2132 | enableval="$enable_debug" | |
2133 | ||
2134 | if test "$enableval" = yes; then | |
2135 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2136 | else | |
2137 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2138 | fi | |
2139 | ||
2140 | else | |
2141 | ||
2142 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
2143 | if test "x$LINE" != x ; then | |
2144 | eval "DEFAULT_$LINE" | |
2145 | else | |
2146 | no_cache=1 | |
2147 | fi | |
2148 | ||
2149 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
2150 | ||
2151 | fi | |
2152 | ||
2153 | ||
2154 | eval "$ac_cv_use_debug" | |
2155 | if test "$no_cache" != 1; then | |
2156 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2157 | fi | |
2158 | ||
2159 | if test "$wxUSE_DEBUG" = yes; then | |
2160 | echo "$ac_t""yes" 1>&6 | |
2161 | else | |
2162 | echo "$ac_t""no" 1>&6 | |
2163 | fi | |
2164 | ||
2165 | ||
2166 | if test "$wxUSE_DEBUG" = "yes"; then | |
2167 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2168 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2169 | elif test "$wxUSE_DEBUG" = "no"; then | |
2170 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2171 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2172 | fi | |
2173 | ||
2174 | ||
2175 | echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6 | |
1db8dc4a | 2176 | echo "configure:2177: checking "for --enable-debug_flag"" >&5 |
10f2d63a VZ |
2177 | no_cache=0 |
2178 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2179 | if test "${enable_debug_flag+set}" = set; then | |
2180 | enableval="$enable_debug_flag" | |
2181 | ||
2182 | if test "$enableval" = yes; then | |
2183 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2184 | else | |
2185 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2186 | fi | |
2187 | ||
2188 | else | |
2189 | ||
2190 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
2191 | if test "x$LINE" != x ; then | |
2192 | eval "DEFAULT_$LINE" | |
2193 | else | |
2194 | no_cache=1 | |
2195 | fi | |
2196 | ||
2197 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2198 | ||
2199 | fi | |
2200 | ||
2201 | ||
2202 | eval "$ac_cv_use_debug_flag" | |
2203 | if test "$no_cache" != 1; then | |
2204 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2205 | fi | |
2206 | ||
2207 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2208 | echo "$ac_t""yes" 1>&6 | |
2209 | else | |
2210 | echo "$ac_t""no" 1>&6 | |
2211 | fi | |
2212 | ||
2213 | ||
2214 | echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6 | |
1db8dc4a | 2215 | echo "configure:2216: checking "for --enable-debug_info"" >&5 |
10f2d63a VZ |
2216 | no_cache=0 |
2217 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2218 | if test "${enable_debug_info+set}" = set; then | |
2219 | enableval="$enable_debug_info" | |
2220 | ||
2221 | if test "$enableval" = yes; then | |
2222 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2223 | else | |
2224 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2225 | fi | |
2226 | ||
2227 | else | |
2228 | ||
2229 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2230 | if test "x$LINE" != x ; then | |
2231 | eval "DEFAULT_$LINE" | |
2232 | else | |
2233 | no_cache=1 | |
2234 | fi | |
2235 | ||
2236 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2237 | ||
2238 | fi | |
2239 | ||
2240 | ||
2241 | eval "$ac_cv_use_debug_info" | |
2242 | if test "$no_cache" != 1; then | |
2243 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2244 | fi | |
2245 | ||
2246 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2247 | echo "$ac_t""yes" 1>&6 | |
2248 | else | |
2249 | echo "$ac_t""no" 1>&6 | |
2250 | fi | |
2251 | ||
2252 | ||
2253 | echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6 | |
1db8dc4a | 2254 | echo "configure:2255: checking "for --enable-debug_gdb"" >&5 |
10f2d63a VZ |
2255 | no_cache=0 |
2256 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2257 | if test "${enable_debug_gdb+set}" = set; then | |
2258 | enableval="$enable_debug_gdb" | |
2259 | ||
2260 | if test "$enableval" = yes; then | |
2261 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2262 | else | |
2263 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2264 | fi | |
2265 | ||
2266 | else | |
2267 | ||
2268 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2269 | if test "x$LINE" != x ; then | |
2270 | eval "DEFAULT_$LINE" | |
2271 | else | |
2272 | no_cache=1 | |
2273 | fi | |
2274 | ||
2275 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2276 | ||
2277 | fi | |
2278 | ||
2279 | ||
2280 | eval "$ac_cv_use_debug_gdb" | |
2281 | if test "$no_cache" != 1; then | |
2282 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2283 | fi | |
2284 | ||
2285 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2286 | echo "$ac_t""yes" 1>&6 | |
2287 | else | |
2288 | echo "$ac_t""no" 1>&6 | |
2289 | fi | |
2290 | ||
2291 | ||
2292 | echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6 | |
1db8dc4a | 2293 | echo "configure:2294: checking "for --enable-debug_cntxt"" >&5 |
10f2d63a VZ |
2294 | no_cache=0 |
2295 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2296 | if test "${enable_debug_cntxt+set}" = set; then | |
2297 | enableval="$enable_debug_cntxt" | |
2298 | ||
2299 | if test "$enableval" = yes; then | |
2300 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2301 | else | |
2302 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2303 | fi | |
2304 | ||
2305 | else | |
2306 | ||
2307 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2308 | if test "x$LINE" != x ; then | |
2309 | eval "DEFAULT_$LINE" | |
2310 | else | |
2311 | no_cache=1 | |
2312 | fi | |
2313 | ||
2314 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2315 | ||
2316 | fi | |
2317 | ||
2318 | ||
2319 | eval "$ac_cv_use_debug_cntxt" | |
2320 | if test "$no_cache" != 1; then | |
2321 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2322 | fi | |
2323 | ||
2324 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2325 | echo "$ac_t""yes" 1>&6 | |
2326 | else | |
2327 | echo "$ac_t""no" 1>&6 | |
2328 | fi | |
2329 | ||
2330 | ||
2331 | echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6 | |
1db8dc4a | 2332 | echo "configure:2333: checking "for --enable-mem_tracing"" >&5 |
10f2d63a VZ |
2333 | no_cache=0 |
2334 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2335 | if test "${enable_mem_tracing+set}" = set; then | |
2336 | enableval="$enable_mem_tracing" | |
2337 | ||
2338 | if test "$enableval" = yes; then | |
2339 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2340 | else | |
2341 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2342 | fi | |
2343 | ||
2344 | else | |
2345 | ||
2346 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2347 | if test "x$LINE" != x ; then | |
2348 | eval "DEFAULT_$LINE" | |
2349 | else | |
2350 | no_cache=1 | |
2351 | fi | |
2352 | ||
2353 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2354 | ||
2355 | fi | |
2356 | ||
2357 | ||
2358 | eval "$ac_cv_use_mem_tracing" | |
2359 | if test "$no_cache" != 1; then | |
2360 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2361 | fi | |
2362 | ||
2363 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2364 | echo "$ac_t""yes" 1>&6 | |
2365 | else | |
2366 | echo "$ac_t""no" 1>&6 | |
2367 | fi | |
2368 | ||
2369 | ||
2370 | echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6 | |
1db8dc4a | 2371 | echo "configure:2372: checking "for --enable-profile"" >&5 |
10f2d63a VZ |
2372 | no_cache=0 |
2373 | # Check whether --enable-profile or --disable-profile was given. | |
2374 | if test "${enable_profile+set}" = set; then | |
2375 | enableval="$enable_profile" | |
2376 | ||
2377 | if test "$enableval" = yes; then | |
2378 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2379 | else | |
2380 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2381 | fi | |
2382 | ||
2383 | else | |
2384 | ||
2385 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2386 | if test "x$LINE" != x ; then | |
2387 | eval "DEFAULT_$LINE" | |
2388 | else | |
2389 | no_cache=1 | |
2390 | fi | |
2391 | ||
2392 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2393 | ||
2394 | fi | |
2395 | ||
2396 | ||
2397 | eval "$ac_cv_use_profile" | |
2398 | if test "$no_cache" != 1; then | |
2399 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2400 | fi | |
2401 | ||
2402 | if test "$wxUSE_PROFILE" = yes; then | |
2403 | echo "$ac_t""yes" 1>&6 | |
2404 | else | |
2405 | echo "$ac_t""no" 1>&6 | |
2406 | fi | |
2407 | ||
2408 | ||
2409 | echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6 | |
1db8dc4a | 2410 | echo "configure:2411: checking "for --enable-no_rtti"" >&5 |
10f2d63a VZ |
2411 | no_cache=0 |
2412 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2413 | if test "${enable_no_rtti+set}" = set; then | |
2414 | enableval="$enable_no_rtti" | |
2415 | ||
2416 | if test "$enableval" = yes; then | |
2417 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2418 | else | |
2419 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2420 | fi | |
2421 | ||
2422 | else | |
2423 | ||
2424 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2425 | if test "x$LINE" != x ; then | |
2426 | eval "DEFAULT_$LINE" | |
2427 | else | |
2428 | no_cache=1 | |
2429 | fi | |
2430 | ||
2431 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2432 | ||
2433 | fi | |
2434 | ||
2435 | ||
2436 | eval "$ac_cv_use_no_rtti" | |
2437 | if test "$no_cache" != 1; then | |
2438 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2439 | fi | |
2440 | ||
2441 | if test "$wxUSE_NO_RTTI" = yes; then | |
2442 | echo "$ac_t""yes" 1>&6 | |
2443 | else | |
2444 | echo "$ac_t""no" 1>&6 | |
2445 | fi | |
2446 | ||
2447 | ||
2448 | echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6 | |
1db8dc4a | 2449 | echo "configure:2450: checking "for --enable-no_exceptions"" >&5 |
10f2d63a VZ |
2450 | no_cache=0 |
2451 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2452 | if test "${enable_no_exceptions+set}" = set; then | |
2453 | enableval="$enable_no_exceptions" | |
2454 | ||
2455 | if test "$enableval" = yes; then | |
2456 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2457 | else | |
2458 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2459 | fi | |
2460 | ||
2461 | else | |
2462 | ||
2463 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2464 | if test "x$LINE" != x ; then | |
2465 | eval "DEFAULT_$LINE" | |
2466 | else | |
2467 | no_cache=1 | |
2468 | fi | |
2469 | ||
2470 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2471 | ||
2472 | fi | |
2473 | ||
2474 | ||
2475 | eval "$ac_cv_use_no_exceptions" | |
2476 | if test "$no_cache" != 1; then | |
2477 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2478 | fi | |
2479 | ||
2480 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2481 | echo "$ac_t""yes" 1>&6 | |
2482 | else | |
2483 | echo "$ac_t""no" 1>&6 | |
2484 | fi | |
2485 | ||
2486 | ||
2487 | echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6 | |
1db8dc4a | 2488 | echo "configure:2489: checking "for --enable-permissive"" >&5 |
10f2d63a VZ |
2489 | no_cache=0 |
2490 | # Check whether --enable-permissive or --disable-permissive was given. | |
2491 | if test "${enable_permissive+set}" = set; then | |
2492 | enableval="$enable_permissive" | |
2493 | ||
2494 | if test "$enableval" = yes; then | |
2495 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2496 | else | |
2497 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2498 | fi | |
2499 | ||
2500 | else | |
2501 | ||
2502 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2503 | if test "x$LINE" != x ; then | |
2504 | eval "DEFAULT_$LINE" | |
2505 | else | |
2506 | no_cache=1 | |
2507 | fi | |
2508 | ||
2509 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2510 | ||
2511 | fi | |
2512 | ||
2513 | ||
2514 | eval "$ac_cv_use_permissive" | |
2515 | if test "$no_cache" != 1; then | |
2516 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2517 | fi | |
2518 | ||
2519 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2520 | echo "$ac_t""yes" 1>&6 | |
2521 | else | |
2522 | echo "$ac_t""no" 1>&6 | |
2523 | fi | |
2524 | ||
2525 | ||
2526 | echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6 | |
1db8dc4a | 2527 | echo "configure:2528: checking "for --enable-no_deps"" >&5 |
10f2d63a VZ |
2528 | no_cache=0 |
2529 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2530 | if test "${enable_no_deps+set}" = set; then | |
2531 | enableval="$enable_no_deps" | |
2532 | ||
2533 | if test "$enableval" = yes; then | |
2534 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2535 | else | |
2536 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2537 | fi | |
2538 | ||
2539 | else | |
2540 | ||
2541 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2542 | if test "x$LINE" != x ; then | |
2543 | eval "DEFAULT_$LINE" | |
2544 | else | |
2545 | no_cache=1 | |
2546 | fi | |
2547 | ||
2548 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2549 | ||
2550 | fi | |
2551 | ||
2552 | ||
2553 | eval "$ac_cv_use_no_deps" | |
2554 | if test "$no_cache" != 1; then | |
2555 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2556 | fi | |
2557 | ||
2558 | if test "$wxUSE_NO_DEPS" = yes; then | |
2559 | echo "$ac_t""yes" 1>&6 | |
2560 | else | |
2561 | echo "$ac_t""no" 1>&6 | |
2562 | fi | |
2563 | ||
2564 | ||
2565 | ||
2566 | ||
2567 | echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6 | |
1db8dc4a | 2568 | echo "configure:2569: checking "for --enable-intl"" >&5 |
10f2d63a VZ |
2569 | no_cache=0 |
2570 | # Check whether --enable-intl or --disable-intl was given. | |
2571 | if test "${enable_intl+set}" = set; then | |
2572 | enableval="$enable_intl" | |
2573 | ||
2574 | if test "$enableval" = yes; then | |
2575 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2576 | else | |
2577 | ac_cv_use_intl='wxUSE_INTL=no' | |
2578 | fi | |
2579 | ||
2580 | else | |
2581 | ||
2582 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
2583 | if test "x$LINE" != x ; then | |
2584 | eval "DEFAULT_$LINE" | |
2585 | else | |
2586 | no_cache=1 | |
2587 | fi | |
2588 | ||
2589 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2590 | ||
2591 | fi | |
2592 | ||
2593 | ||
2594 | eval "$ac_cv_use_intl" | |
2595 | if test "$no_cache" != 1; then | |
2596 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2597 | fi | |
2598 | ||
2599 | if test "$wxUSE_INTL" = yes; then | |
2600 | echo "$ac_t""yes" 1>&6 | |
2601 | else | |
2602 | echo "$ac_t""no" 1>&6 | |
2603 | fi | |
2604 | ||
2605 | ||
2606 | echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6 | |
1db8dc4a | 2607 | echo "configure:2608: checking "for --enable-config"" >&5 |
10f2d63a VZ |
2608 | no_cache=0 |
2609 | # Check whether --enable-config or --disable-config was given. | |
2610 | if test "${enable_config+set}" = set; then | |
2611 | enableval="$enable_config" | |
2612 | ||
2613 | if test "$enableval" = yes; then | |
2614 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2615 | else | |
2616 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2617 | fi | |
2618 | ||
2619 | else | |
2620 | ||
2621 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
2622 | if test "x$LINE" != x ; then | |
2623 | eval "DEFAULT_$LINE" | |
2624 | else | |
2625 | no_cache=1 | |
2626 | fi | |
2627 | ||
2628 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2629 | ||
2630 | fi | |
2631 | ||
2632 | ||
2633 | eval "$ac_cv_use_config" | |
2634 | if test "$no_cache" != 1; then | |
2635 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2636 | fi | |
2637 | ||
2638 | if test "$wxUSE_CONFIG" = yes; then | |
2639 | echo "$ac_t""yes" 1>&6 | |
2640 | else | |
2641 | echo "$ac_t""no" 1>&6 | |
2642 | fi | |
2643 | ||
2644 | ||
b12915c1 | 2645 | |
10f2d63a | 2646 | echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6 |
1db8dc4a | 2647 | echo "configure:2648: checking "for --enable-sockets"" >&5 |
10f2d63a VZ |
2648 | no_cache=0 |
2649 | # Check whether --enable-sockets or --disable-sockets was given. | |
2650 | if test "${enable_sockets+set}" = set; then | |
2651 | enableval="$enable_sockets" | |
2652 | ||
2653 | if test "$enableval" = yes; then | |
2654 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2655 | else | |
2656 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2657 | fi | |
2658 | ||
2659 | else | |
2660 | ||
2661 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
2662 | if test "x$LINE" != x ; then | |
2663 | eval "DEFAULT_$LINE" | |
2664 | else | |
2665 | no_cache=1 | |
2666 | fi | |
2667 | ||
2668 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2669 | ||
2670 | fi | |
2671 | ||
2672 | ||
2673 | eval "$ac_cv_use_sockets" | |
2674 | if test "$no_cache" != 1; then | |
2675 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2676 | fi | |
2677 | ||
2678 | if test "$wxUSE_SOCKETS" = yes; then | |
2679 | echo "$ac_t""yes" 1>&6 | |
2680 | else | |
2681 | echo "$ac_t""no" 1>&6 | |
2682 | fi | |
2683 | ||
b12915c1 | 2684 | |
10f2d63a | 2685 | |
eb4efbdc | 2686 | echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6 |
1db8dc4a | 2687 | echo "configure:2688: checking "for --enable-ipc"" >&5 |
10f2d63a | 2688 | no_cache=0 |
eb4efbdc VZ |
2689 | # Check whether --enable-ipc or --disable-ipc was given. |
2690 | if test "${enable_ipc+set}" = set; then | |
2691 | enableval="$enable_ipc" | |
10f2d63a VZ |
2692 | |
2693 | if test "$enableval" = yes; then | |
eb4efbdc | 2694 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 2695 | else |
eb4efbdc | 2696 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a VZ |
2697 | fi |
2698 | ||
2699 | else | |
2700 | ||
eb4efbdc | 2701 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
2702 | if test "x$LINE" != x ; then |
2703 | eval "DEFAULT_$LINE" | |
2704 | else | |
2705 | no_cache=1 | |
2706 | fi | |
2707 | ||
eb4efbdc | 2708 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a VZ |
2709 | |
2710 | fi | |
2711 | ||
2712 | ||
eb4efbdc | 2713 | eval "$ac_cv_use_ipc" |
10f2d63a | 2714 | if test "$no_cache" != 1; then |
eb4efbdc | 2715 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2716 | fi |
2717 | ||
eb4efbdc | 2718 | if test "$wxUSE_IPC" = yes; then |
10f2d63a VZ |
2719 | echo "$ac_t""yes" 1>&6 |
2720 | else | |
2721 | echo "$ac_t""no" 1>&6 | |
2722 | fi | |
2723 | ||
2724 | ||
eb4efbdc VZ |
2725 | |
2726 | echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6 | |
1db8dc4a | 2727 | echo "configure:2728: checking "for --enable-dialupman"" >&5 |
10f2d63a | 2728 | no_cache=0 |
eb4efbdc VZ |
2729 | # Check whether --enable-dialupman or --disable-dialupman was given. |
2730 | if test "${enable_dialupman+set}" = set; then | |
2731 | enableval="$enable_dialupman" | |
10f2d63a VZ |
2732 | |
2733 | if test "$enableval" = yes; then | |
eb4efbdc | 2734 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 2735 | else |
eb4efbdc | 2736 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a VZ |
2737 | fi |
2738 | ||
2739 | else | |
2740 | ||
eb4efbdc | 2741 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
2742 | if test "x$LINE" != x ; then |
2743 | eval "DEFAULT_$LINE" | |
2744 | else | |
2745 | no_cache=1 | |
2746 | fi | |
2747 | ||
eb4efbdc | 2748 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a VZ |
2749 | |
2750 | fi | |
2751 | ||
2752 | ||
eb4efbdc | 2753 | eval "$ac_cv_use_dialupman" |
10f2d63a | 2754 | if test "$no_cache" != 1; then |
eb4efbdc | 2755 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2756 | fi |
2757 | ||
eb4efbdc | 2758 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
10f2d63a VZ |
2759 | echo "$ac_t""yes" 1>&6 |
2760 | else | |
2761 | echo "$ac_t""no" 1>&6 | |
2762 | fi | |
2763 | ||
2764 | ||
2765 | echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6 | |
1db8dc4a | 2766 | echo "configure:2767: checking "for --enable-apple_ieee"" >&5 |
10f2d63a VZ |
2767 | no_cache=0 |
2768 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2769 | if test "${enable_apple_ieee+set}" = set; then | |
2770 | enableval="$enable_apple_ieee" | |
2771 | ||
2772 | if test "$enableval" = yes; then | |
2773 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2774 | else | |
2775 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2776 | fi | |
2777 | ||
2778 | else | |
2779 | ||
2780 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
2781 | if test "x$LINE" != x ; then | |
2782 | eval "DEFAULT_$LINE" | |
2783 | else | |
2784 | no_cache=1 | |
2785 | fi | |
2786 | ||
2787 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
2788 | ||
2789 | fi | |
2790 | ||
2791 | ||
2792 | eval "$ac_cv_use_apple_ieee" | |
2793 | if test "$no_cache" != 1; then | |
2794 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2795 | fi | |
2796 | ||
2797 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
2798 | echo "$ac_t""yes" 1>&6 | |
2799 | else | |
2800 | echo "$ac_t""no" 1>&6 | |
2801 | fi | |
2802 | ||
2803 | ||
2804 | echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6 | |
1db8dc4a | 2805 | echo "configure:2806: checking "for --enable-timedate"" >&5 |
10f2d63a VZ |
2806 | no_cache=0 |
2807 | # Check whether --enable-timedate or --disable-timedate was given. | |
2808 | if test "${enable_timedate+set}" = set; then | |
2809 | enableval="$enable_timedate" | |
2810 | ||
2811 | if test "$enableval" = yes; then | |
2812 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2813 | else | |
2814 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2815 | fi | |
2816 | ||
2817 | else | |
2818 | ||
2819 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
2820 | if test "x$LINE" != x ; then | |
2821 | eval "DEFAULT_$LINE" | |
2822 | else | |
2823 | no_cache=1 | |
2824 | fi | |
2825 | ||
2826 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
2827 | ||
2828 | fi | |
2829 | ||
2830 | ||
2831 | eval "$ac_cv_use_timedate" | |
2832 | if test "$no_cache" != 1; then | |
2833 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2834 | fi | |
2835 | ||
2836 | if test "$wxUSE_TIMEDATE" = yes; then | |
2837 | echo "$ac_t""yes" 1>&6 | |
2838 | else | |
2839 | echo "$ac_t""no" 1>&6 | |
2840 | fi | |
2841 | ||
2842 | ||
2843 | echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6 | |
1db8dc4a | 2844 | echo "configure:2845: checking "for --enable-wave"" >&5 |
10f2d63a VZ |
2845 | no_cache=0 |
2846 | # Check whether --enable-wave or --disable-wave was given. | |
2847 | if test "${enable_wave+set}" = set; then | |
2848 | enableval="$enable_wave" | |
2849 | ||
2850 | if test "$enableval" = yes; then | |
2851 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2852 | else | |
2853 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2854 | fi | |
2855 | ||
2856 | else | |
2857 | ||
2858 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
2859 | if test "x$LINE" != x ; then | |
2860 | eval "DEFAULT_$LINE" | |
2861 | else | |
2862 | no_cache=1 | |
2863 | fi | |
2864 | ||
2865 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
2866 | ||
2867 | fi | |
2868 | ||
2869 | ||
2870 | eval "$ac_cv_use_wave" | |
2871 | if test "$no_cache" != 1; then | |
2872 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2873 | fi | |
2874 | ||
2875 | if test "$wxUSE_WAVE" = yes; then | |
2876 | echo "$ac_t""yes" 1>&6 | |
2877 | else | |
2878 | echo "$ac_t""no" 1>&6 | |
2879 | fi | |
2880 | ||
2881 | ||
2882 | echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6 | |
1db8dc4a | 2883 | echo "configure:2884: checking "for --enable-fraction"" >&5 |
10f2d63a VZ |
2884 | no_cache=0 |
2885 | # Check whether --enable-fraction or --disable-fraction was given. | |
2886 | if test "${enable_fraction+set}" = set; then | |
2887 | enableval="$enable_fraction" | |
2888 | ||
2889 | if test "$enableval" = yes; then | |
2890 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2891 | else | |
2892 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2893 | fi | |
2894 | ||
2895 | else | |
2896 | ||
2897 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
2898 | if test "x$LINE" != x ; then | |
2899 | eval "DEFAULT_$LINE" | |
2900 | else | |
2901 | no_cache=1 | |
2902 | fi | |
2903 | ||
2904 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
2905 | ||
2906 | fi | |
2907 | ||
2908 | ||
2909 | eval "$ac_cv_use_fraction" | |
2910 | if test "$no_cache" != 1; then | |
2911 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2912 | fi | |
2913 | ||
2914 | if test "$wxUSE_FRACTION" = yes; then | |
2915 | echo "$ac_t""yes" 1>&6 | |
2916 | else | |
2917 | echo "$ac_t""no" 1>&6 | |
2918 | fi | |
2919 | ||
2920 | ||
2921 | echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6 | |
1db8dc4a | 2922 | echo "configure:2923: checking "for --enable-dynlib"" >&5 |
10f2d63a VZ |
2923 | no_cache=0 |
2924 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2925 | if test "${enable_dynlib+set}" = set; then | |
2926 | enableval="$enable_dynlib" | |
2927 | ||
2928 | if test "$enableval" = yes; then | |
2929 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2930 | else | |
2931 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2932 | fi | |
2933 | ||
2934 | else | |
2935 | ||
2936 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
2937 | if test "x$LINE" != x ; then | |
2938 | eval "DEFAULT_$LINE" | |
2939 | else | |
2940 | no_cache=1 | |
2941 | fi | |
2942 | ||
2943 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
2944 | ||
2945 | fi | |
2946 | ||
2947 | ||
2948 | eval "$ac_cv_use_dynlib" | |
2949 | if test "$no_cache" != 1; then | |
2950 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2951 | fi | |
2952 | ||
2953 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
2954 | echo "$ac_t""yes" 1>&6 | |
2955 | else | |
2956 | echo "$ac_t""no" 1>&6 | |
2957 | fi | |
2958 | ||
2959 | ||
2960 | echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6 | |
1db8dc4a | 2961 | echo "configure:2962: checking "for --enable-longlong"" >&5 |
10f2d63a VZ |
2962 | no_cache=0 |
2963 | # Check whether --enable-longlong or --disable-longlong was given. | |
2964 | if test "${enable_longlong+set}" = set; then | |
2965 | enableval="$enable_longlong" | |
2966 | ||
2967 | if test "$enableval" = yes; then | |
2968 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2969 | else | |
2970 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2971 | fi | |
2972 | ||
2973 | else | |
2974 | ||
2975 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
2976 | if test "x$LINE" != x ; then | |
2977 | eval "DEFAULT_$LINE" | |
2978 | else | |
2979 | no_cache=1 | |
2980 | fi | |
2981 | ||
2982 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
2983 | ||
2984 | fi | |
2985 | ||
2986 | ||
2987 | eval "$ac_cv_use_longlong" | |
2988 | if test "$no_cache" != 1; then | |
2989 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
2990 | fi | |
2991 | ||
2992 | if test "$wxUSE_LONGLONG" = yes; then | |
2993 | echo "$ac_t""yes" 1>&6 | |
2994 | else | |
2995 | echo "$ac_t""no" 1>&6 | |
2996 | fi | |
2997 | ||
2998 | ||
e8f65ba6 | 2999 | echo $ac_n "checking "for --enable-geometry"""... $ac_c" 1>&6 |
1db8dc4a | 3000 | echo "configure:3001: checking "for --enable-geometry"" >&5 |
e8f65ba6 RR |
3001 | no_cache=0 |
3002 | # Check whether --enable-geometry or --disable-geometry was given. | |
3003 | if test "${enable_geometry+set}" = set; then | |
3004 | enableval="$enable_geometry" | |
3005 | ||
3006 | if test "$enableval" = yes; then | |
3007 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3008 | else | |
3009 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3010 | fi | |
3011 | ||
3012 | else | |
3013 | ||
3014 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
3015 | if test "x$LINE" != x ; then | |
3016 | eval "DEFAULT_$LINE" | |
3017 | else | |
3018 | no_cache=1 | |
3019 | fi | |
3020 | ||
3021 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
3022 | ||
3023 | fi | |
3024 | ||
3025 | ||
3026 | eval "$ac_cv_use_geometry" | |
3027 | if test "$no_cache" != 1; then | |
3028 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3029 | fi | |
3030 | ||
3031 | if test "$wxUSE_GEOMETRY" = yes; then | |
3032 | echo "$ac_t""yes" 1>&6 | |
3033 | else | |
3034 | echo "$ac_t""no" 1>&6 | |
3035 | fi | |
3036 | ||
3037 | ||
10f2d63a | 3038 | echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6 |
1db8dc4a | 3039 | echo "configure:3040: checking "for --enable-log"" >&5 |
10f2d63a VZ |
3040 | no_cache=0 |
3041 | # Check whether --enable-log or --disable-log was given. | |
3042 | if test "${enable_log+set}" = set; then | |
3043 | enableval="$enable_log" | |
3044 | ||
3045 | if test "$enableval" = yes; then | |
3046 | ac_cv_use_log='wxUSE_LOG=yes' | |
3047 | else | |
3048 | ac_cv_use_log='wxUSE_LOG=no' | |
3049 | fi | |
3050 | ||
3051 | else | |
3052 | ||
3053 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
3054 | if test "x$LINE" != x ; then | |
3055 | eval "DEFAULT_$LINE" | |
3056 | else | |
3057 | no_cache=1 | |
3058 | fi | |
3059 | ||
3060 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
3061 | ||
3062 | fi | |
3063 | ||
3064 | ||
3065 | eval "$ac_cv_use_log" | |
3066 | if test "$no_cache" != 1; then | |
3067 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3068 | fi | |
3069 | ||
3070 | if test "$wxUSE_LOG" = yes; then | |
3071 | echo "$ac_t""yes" 1>&6 | |
3072 | else | |
3073 | echo "$ac_t""no" 1>&6 | |
3074 | fi | |
3075 | ||
3076 | ||
3077 | echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6 | |
1db8dc4a | 3078 | echo "configure:3079: checking "for --enable-streams"" >&5 |
10f2d63a VZ |
3079 | no_cache=0 |
3080 | # Check whether --enable-streams or --disable-streams was given. | |
3081 | if test "${enable_streams+set}" = set; then | |
3082 | enableval="$enable_streams" | |
3083 | ||
3084 | if test "$enableval" = yes; then | |
3085 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3086 | else | |
3087 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3088 | fi | |
3089 | ||
3090 | else | |
3091 | ||
3092 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
3093 | if test "x$LINE" != x ; then | |
3094 | eval "DEFAULT_$LINE" | |
3095 | else | |
3096 | no_cache=1 | |
3097 | fi | |
3098 | ||
3099 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
3100 | ||
3101 | fi | |
3102 | ||
3103 | ||
3104 | eval "$ac_cv_use_streams" | |
3105 | if test "$no_cache" != 1; then | |
3106 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3107 | fi | |
3108 | ||
3109 | if test "$wxUSE_STREAMS" = yes; then | |
3110 | echo "$ac_t""yes" 1>&6 | |
3111 | else | |
3112 | echo "$ac_t""no" 1>&6 | |
3113 | fi | |
3114 | ||
3115 | ||
3116 | echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6 | |
1db8dc4a | 3117 | echo "configure:3118: checking "for --enable-file"" >&5 |
10f2d63a VZ |
3118 | no_cache=0 |
3119 | # Check whether --enable-file or --disable-file was given. | |
3120 | if test "${enable_file+set}" = set; then | |
3121 | enableval="$enable_file" | |
3122 | ||
3123 | if test "$enableval" = yes; then | |
3124 | ac_cv_use_file='wxUSE_FILE=yes' | |
3125 | else | |
3126 | ac_cv_use_file='wxUSE_FILE=no' | |
3127 | fi | |
3128 | ||
3129 | else | |
3130 | ||
3131 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
3132 | if test "x$LINE" != x ; then | |
3133 | eval "DEFAULT_$LINE" | |
3134 | else | |
3135 | no_cache=1 | |
3136 | fi | |
3137 | ||
3138 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
3139 | ||
3140 | fi | |
3141 | ||
3142 | ||
3143 | eval "$ac_cv_use_file" | |
3144 | if test "$no_cache" != 1; then | |
3145 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3146 | fi | |
3147 | ||
3148 | if test "$wxUSE_FILE" = yes; then | |
3149 | echo "$ac_t""yes" 1>&6 | |
3150 | else | |
3151 | echo "$ac_t""no" 1>&6 | |
3152 | fi | |
3153 | ||
3154 | ||
3155 | echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6 | |
1db8dc4a | 3156 | echo "configure:3157: checking "for --enable-textfile"" >&5 |
10f2d63a VZ |
3157 | no_cache=0 |
3158 | # Check whether --enable-textfile or --disable-textfile was given. | |
3159 | if test "${enable_textfile+set}" = set; then | |
3160 | enableval="$enable_textfile" | |
3161 | ||
3162 | if test "$enableval" = yes; then | |
3163 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
3164 | else | |
3165 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
3166 | fi | |
3167 | ||
3168 | else | |
3169 | ||
3170 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
3171 | if test "x$LINE" != x ; then | |
3172 | eval "DEFAULT_$LINE" | |
3173 | else | |
3174 | no_cache=1 | |
3175 | fi | |
3176 | ||
3177 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
3178 | ||
3179 | fi | |
3180 | ||
3181 | ||
3182 | eval "$ac_cv_use_textfile" | |
3183 | if test "$no_cache" != 1; then | |
3184 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
3185 | fi | |
3186 | ||
3187 | if test "$wxUSE_TEXTFILE" = yes; then | |
3188 | echo "$ac_t""yes" 1>&6 | |
3189 | else | |
3190 | echo "$ac_t""no" 1>&6 | |
3191 | fi | |
3192 | ||
3193 | ||
3194 | echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6 | |
1db8dc4a | 3195 | echo "configure:3196: checking "for --enable-unicode"" >&5 |
10f2d63a VZ |
3196 | no_cache=0 |
3197 | # Check whether --enable-unicode or --disable-unicode was given. | |
3198 | if test "${enable_unicode+set}" = set; then | |
3199 | enableval="$enable_unicode" | |
3200 | ||
3201 | if test "$enableval" = yes; then | |
3202 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3203 | else | |
3204 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3205 | fi | |
3206 | ||
3207 | else | |
3208 | ||
3209 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3210 | if test "x$LINE" != x ; then | |
3211 | eval "DEFAULT_$LINE" | |
3212 | else | |
3213 | no_cache=1 | |
3214 | fi | |
3215 | ||
3216 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3217 | ||
3218 | fi | |
3219 | ||
3220 | ||
3221 | eval "$ac_cv_use_unicode" | |
3222 | if test "$no_cache" != 1; then | |
3223 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3224 | fi | |
3225 | ||
3226 | if test "$wxUSE_UNICODE" = yes; then | |
3227 | echo "$ac_t""yes" 1>&6 | |
3228 | else | |
3229 | echo "$ac_t""no" 1>&6 | |
3230 | fi | |
3231 | ||
3232 | ||
3233 | echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6 | |
1db8dc4a | 3234 | echo "configure:3235: checking "for --enable-wcsrtombs"" >&5 |
10f2d63a VZ |
3235 | no_cache=0 |
3236 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3237 | if test "${enable_wcsrtombs+set}" = set; then | |
3238 | enableval="$enable_wcsrtombs" | |
3239 | ||
3240 | if test "$enableval" = yes; then | |
3241 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3242 | else | |
3243 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3244 | fi | |
3245 | ||
3246 | else | |
3247 | ||
3248 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3249 | if test "x$LINE" != x ; then | |
3250 | eval "DEFAULT_$LINE" | |
3251 | else | |
3252 | no_cache=1 | |
3253 | fi | |
3254 | ||
3255 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3256 | ||
3257 | fi | |
3258 | ||
3259 | ||
3260 | eval "$ac_cv_use_wcsrtombs" | |
3261 | if test "$no_cache" != 1; then | |
3262 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3263 | fi | |
3264 | ||
3265 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3266 | echo "$ac_t""yes" 1>&6 | |
3267 | else | |
3268 | echo "$ac_t""no" 1>&6 | |
3269 | fi | |
3270 | ||
3271 | ||
3272 | echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6 | |
1db8dc4a | 3273 | echo "configure:3274: checking "for --enable-wxprintfv"" >&5 |
10f2d63a VZ |
3274 | no_cache=0 |
3275 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3276 | if test "${enable_wxprintfv+set}" = set; then | |
3277 | enableval="$enable_wxprintfv" | |
3278 | ||
3279 | if test "$enableval" = yes; then | |
3280 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3281 | else | |
3282 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3283 | fi | |
3284 | ||
3285 | else | |
3286 | ||
3287 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3288 | if test "x$LINE" != x ; then | |
3289 | eval "DEFAULT_$LINE" | |
3290 | else | |
3291 | no_cache=1 | |
3292 | fi | |
3293 | ||
3294 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3295 | ||
3296 | fi | |
3297 | ||
3298 | ||
3299 | eval "$ac_cv_use_wxprintfv" | |
3300 | if test "$no_cache" != 1; then | |
3301 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3302 | fi | |
3303 | ||
3304 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3305 | echo "$ac_t""yes" 1>&6 | |
3306 | else | |
3307 | echo "$ac_t""no" 1>&6 | |
3308 | fi | |
3309 | ||
3310 | ||
10f2d63a | 3311 | echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6 |
1db8dc4a | 3312 | echo "configure:3313: checking "for --enable-std_iostreams"" >&5 |
10f2d63a VZ |
3313 | no_cache=0 |
3314 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3315 | if test "${enable_std_iostreams+set}" = set; then | |
3316 | enableval="$enable_std_iostreams" | |
3317 | ||
3318 | if test "$enableval" = yes; then | |
3319 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3320 | else | |
3321 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3322 | fi | |
3323 | ||
3324 | else | |
3325 | ||
3326 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3327 | if test "x$LINE" != x ; then | |
3328 | eval "DEFAULT_$LINE" | |
3329 | else | |
3330 | no_cache=1 | |
3331 | fi | |
3332 | ||
3333 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3334 | ||
3335 | fi | |
3336 | ||
3337 | ||
3338 | eval "$ac_cv_use_std_iostreams" | |
3339 | if test "$no_cache" != 1; then | |
3340 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3341 | fi | |
3342 | ||
3343 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3344 | echo "$ac_t""yes" 1>&6 | |
3345 | else | |
3346 | echo "$ac_t""no" 1>&6 | |
3347 | fi | |
3348 | ||
3349 | ||
24528b0c | 3350 | echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6 |
1db8dc4a | 3351 | echo "configure:3352: checking "for --enable-filesystem"" >&5 |
24528b0c VS |
3352 | no_cache=0 |
3353 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3354 | if test "${enable_filesystem+set}" = set; then | |
3355 | enableval="$enable_filesystem" | |
3356 | ||
3357 | if test "$enableval" = yes; then | |
3358 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3359 | else | |
3360 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3361 | fi | |
3362 | ||
3363 | else | |
3364 | ||
3365 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
3366 | if test "x$LINE" != x ; then | |
3367 | eval "DEFAULT_$LINE" | |
3368 | else | |
3369 | no_cache=1 | |
3370 | fi | |
3371 | ||
3372 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
3373 | ||
3374 | fi | |
3375 | ||
3376 | ||
3377 | eval "$ac_cv_use_filesystem" | |
3378 | if test "$no_cache" != 1; then | |
3379 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3380 | fi | |
3381 | ||
3382 | if test "$wxUSE_FILESYSTEM" = yes; then | |
3383 | echo "$ac_t""yes" 1>&6 | |
3384 | else | |
3385 | echo "$ac_t""no" 1>&6 | |
3386 | fi | |
3387 | ||
3388 | ||
10f2d63a | 3389 | echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6 |
1db8dc4a | 3390 | echo "configure:3391: checking "for --enable-fs_inet"" >&5 |
10f2d63a VZ |
3391 | no_cache=0 |
3392 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3393 | if test "${enable_fs_inet+set}" = set; then | |
3394 | enableval="$enable_fs_inet" | |
3395 | ||
3396 | if test "$enableval" = yes; then | |
3397 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3398 | else | |
3399 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3400 | fi | |
3401 | ||
3402 | else | |
3403 | ||
3404 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3405 | if test "x$LINE" != x ; then | |
3406 | eval "DEFAULT_$LINE" | |
3407 | else | |
3408 | no_cache=1 | |
3409 | fi | |
3410 | ||
3411 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3412 | ||
3413 | fi | |
3414 | ||
3415 | ||
3416 | eval "$ac_cv_use_fs_inet" | |
3417 | if test "$no_cache" != 1; then | |
3418 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3419 | fi | |
3420 | ||
3421 | if test "$wxUSE_FS_INET" = yes; then | |
3422 | echo "$ac_t""yes" 1>&6 | |
3423 | else | |
3424 | echo "$ac_t""no" 1>&6 | |
3425 | fi | |
3426 | ||
3427 | ||
3428 | echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6 | |
1db8dc4a | 3429 | echo "configure:3430: checking "for --enable-fs_zip"" >&5 |
10f2d63a VZ |
3430 | no_cache=0 |
3431 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3432 | if test "${enable_fs_zip+set}" = set; then | |
3433 | enableval="$enable_fs_zip" | |
3434 | ||
3435 | if test "$enableval" = yes; then | |
3436 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3437 | else | |
3438 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3439 | fi | |
3440 | ||
3441 | else | |
3442 | ||
3443 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
3444 | if test "x$LINE" != x ; then | |
3445 | eval "DEFAULT_$LINE" | |
3446 | else | |
3447 | no_cache=1 | |
3448 | fi | |
3449 | ||
3450 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3451 | ||
3452 | fi | |
3453 | ||
3454 | ||
3455 | eval "$ac_cv_use_fs_zip" | |
3456 | if test "$no_cache" != 1; then | |
3457 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3458 | fi | |
3459 | ||
3460 | if test "$wxUSE_FS_ZIP" = yes; then | |
3461 | echo "$ac_t""yes" 1>&6 | |
3462 | else | |
3463 | echo "$ac_t""no" 1>&6 | |
3464 | fi | |
3465 | ||
3466 | ||
3467 | echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6 | |
1db8dc4a | 3468 | echo "configure:3469: checking "for --enable-zipstream"" >&5 |
10f2d63a VZ |
3469 | no_cache=0 |
3470 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3471 | if test "${enable_zipstream+set}" = set; then | |
3472 | enableval="$enable_zipstream" | |
3473 | ||
3474 | if test "$enableval" = yes; then | |
3475 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3476 | else | |
3477 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3478 | fi | |
3479 | ||
3480 | else | |
3481 | ||
3482 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3483 | if test "x$LINE" != x ; then | |
3484 | eval "DEFAULT_$LINE" | |
3485 | else | |
3486 | no_cache=1 | |
3487 | fi | |
3488 | ||
3489 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3490 | ||
3491 | fi | |
3492 | ||
3493 | ||
3494 | eval "$ac_cv_use_zipstream" | |
3495 | if test "$no_cache" != 1; then | |
3496 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3497 | fi | |
3498 | ||
3499 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3500 | echo "$ac_t""yes" 1>&6 | |
3501 | else | |
3502 | echo "$ac_t""no" 1>&6 | |
3503 | fi | |
3504 | ||
3505 | ||
3506 | ||
eb4efbdc | 3507 | echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6 |
1db8dc4a | 3508 | echo "configure:3509: checking "for --enable-catch_segvs"" >&5 |
eb4efbdc VZ |
3509 | no_cache=0 |
3510 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
3511 | if test "${enable_catch_segvs+set}" = set; then | |
3512 | enableval="$enable_catch_segvs" | |
3513 | ||
3514 | if test "$enableval" = yes; then | |
3515 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
3516 | else | |
3517 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
3518 | fi | |
3519 | ||
3520 | else | |
3521 | ||
3522 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
3523 | if test "x$LINE" != x ; then | |
3524 | eval "DEFAULT_$LINE" | |
3525 | else | |
3526 | no_cache=1 | |
3527 | fi | |
3528 | ||
3529 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
3530 | ||
3531 | fi | |
3532 | ||
3533 | ||
3534 | eval "$ac_cv_use_catch_segvs" | |
3535 | if test "$no_cache" != 1; then | |
3536 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
3537 | fi | |
3538 | ||
3539 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
3540 | echo "$ac_t""yes" 1>&6 | |
3541 | else | |
3542 | echo "$ac_t""no" 1>&6 | |
3543 | fi | |
3544 | ||
3545 | ||
3546 | ||
10f2d63a VZ |
3547 | |
3548 | echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6 | |
1db8dc4a | 3549 | echo "configure:3550: checking "for --enable-threads"" >&5 |
10f2d63a VZ |
3550 | no_cache=0 |
3551 | # Check whether --enable-threads or --disable-threads was given. | |
3552 | if test "${enable_threads+set}" = set; then | |
3553 | enableval="$enable_threads" | |
3554 | ||
3555 | if test "$enableval" = yes; then | |
3556 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3557 | else | |
3558 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3559 | fi | |
3560 | ||
3561 | else | |
3562 | ||
3563 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
3564 | if test "x$LINE" != x ; then | |
3565 | eval "DEFAULT_$LINE" | |
3566 | else | |
3567 | no_cache=1 | |
3568 | fi | |
3569 | ||
3570 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
3571 | ||
3572 | fi | |
3573 | ||
3574 | ||
3575 | eval "$ac_cv_use_threads" | |
3576 | if test "$no_cache" != 1; then | |
3577 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3578 | fi | |
3579 | ||
3580 | if test "$wxUSE_THREADS" = yes; then | |
3581 | echo "$ac_t""yes" 1>&6 | |
3582 | else | |
3583 | echo "$ac_t""no" 1>&6 | |
3584 | fi | |
3585 | ||
3586 | ||
3587 | echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6 | |
1db8dc4a | 3588 | echo "configure:3589: checking "for --enable-serial"" >&5 |
10f2d63a VZ |
3589 | no_cache=0 |
3590 | # Check whether --enable-serial or --disable-serial was given. | |
3591 | if test "${enable_serial+set}" = set; then | |
3592 | enableval="$enable_serial" | |
3593 | ||
3594 | if test "$enableval" = yes; then | |
3595 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3596 | else | |
3597 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3598 | fi | |
3599 | ||
3600 | else | |
3601 | ||
3602 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
3603 | if test "x$LINE" != x ; then | |
3604 | eval "DEFAULT_$LINE" | |
3605 | else | |
3606 | no_cache=1 | |
3607 | fi | |
3608 | ||
3609 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
3610 | ||
3611 | fi | |
3612 | ||
3613 | ||
3614 | eval "$ac_cv_use_serial" | |
3615 | if test "$no_cache" != 1; then | |
3616 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3617 | fi | |
3618 | ||
3619 | if test "$wxUSE_SERIAL" = yes; then | |
3620 | echo "$ac_t""yes" 1>&6 | |
3621 | else | |
3622 | echo "$ac_t""no" 1>&6 | |
3623 | fi | |
3624 | ||
3625 | ||
b12915c1 VZ |
3626 | if test "$wxUSE_GUI" = "yes"; then |
3627 | ||
10f2d63a VZ |
3628 | |
3629 | ||
3630 | echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6 | |
1db8dc4a | 3631 | echo "configure:3632: checking "for --enable-docview"" >&5 |
10f2d63a VZ |
3632 | no_cache=0 |
3633 | # Check whether --enable-docview or --disable-docview was given. | |
3634 | if test "${enable_docview+set}" = set; then | |
3635 | enableval="$enable_docview" | |
3636 | ||
3637 | if test "$enableval" = yes; then | |
3638 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3639 | else | |
3640 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3641 | fi | |
3642 | ||
3643 | else | |
3644 | ||
3645 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
3646 | if test "x$LINE" != x ; then | |
3647 | eval "DEFAULT_$LINE" | |
3648 | else | |
3649 | no_cache=1 | |
3650 | fi | |
3651 | ||
3652 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
3653 | ||
3654 | fi | |
3655 | ||
3656 | ||
3657 | eval "$ac_cv_use_docview" | |
3658 | if test "$no_cache" != 1; then | |
3659 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3660 | fi | |
3661 | ||
3662 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
3663 | echo "$ac_t""yes" 1>&6 | |
3664 | else | |
3665 | echo "$ac_t""no" 1>&6 | |
3666 | fi | |
3667 | ||
3668 | ||
3669 | echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6 | |
1db8dc4a | 3670 | echo "configure:3671: checking "for --enable-help"" >&5 |
10f2d63a VZ |
3671 | no_cache=0 |
3672 | # Check whether --enable-help or --disable-help was given. | |
3673 | if test "${enable_help+set}" = set; then | |
3674 | enableval="$enable_help" | |
3675 | ||
3676 | if test "$enableval" = yes; then | |
3677 | ac_cv_use_help='wxUSE_HELP=yes' | |
3678 | else | |
3679 | ac_cv_use_help='wxUSE_HELP=no' | |
3680 | fi | |
3681 | ||
3682 | else | |
3683 | ||
3684 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
3685 | if test "x$LINE" != x ; then | |
3686 | eval "DEFAULT_$LINE" | |
3687 | else | |
3688 | no_cache=1 | |
3689 | fi | |
3690 | ||
3691 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
3692 | ||
3693 | fi | |
3694 | ||
3695 | ||
3696 | eval "$ac_cv_use_help" | |
3697 | if test "$no_cache" != 1; then | |
3698 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3699 | fi | |
3700 | ||
3701 | if test "$wxUSE_HELP" = yes; then | |
3702 | echo "$ac_t""yes" 1>&6 | |
3703 | else | |
3704 | echo "$ac_t""no" 1>&6 | |
3705 | fi | |
3706 | ||
3707 | ||
3708 | echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6 | |
1db8dc4a | 3709 | echo "configure:3710: checking "for --enable-constraints"" >&5 |
10f2d63a VZ |
3710 | no_cache=0 |
3711 | # Check whether --enable-constraints or --disable-constraints was given. | |
3712 | if test "${enable_constraints+set}" = set; then | |
3713 | enableval="$enable_constraints" | |
3714 | ||
3715 | if test "$enableval" = yes; then | |
3716 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3717 | else | |
3718 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3719 | fi | |
3720 | ||
3721 | else | |
3722 | ||
3723 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
3724 | if test "x$LINE" != x ; then | |
3725 | eval "DEFAULT_$LINE" | |
3726 | else | |
3727 | no_cache=1 | |
3728 | fi | |
3729 | ||
3730 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
3731 | ||
3732 | fi | |
3733 | ||
3734 | ||
3735 | eval "$ac_cv_use_constraints" | |
3736 | if test "$no_cache" != 1; then | |
3737 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3738 | fi | |
3739 | ||
3740 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
3741 | echo "$ac_t""yes" 1>&6 | |
3742 | else | |
3743 | echo "$ac_t""no" 1>&6 | |
3744 | fi | |
3745 | ||
3746 | ||
3747 | echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6 | |
1db8dc4a | 3748 | echo "configure:3749: checking "for --enable-printarch"" >&5 |
10f2d63a VZ |
3749 | no_cache=0 |
3750 | # Check whether --enable-printarch or --disable-printarch was given. | |
3751 | if test "${enable_printarch+set}" = set; then | |
3752 | enableval="$enable_printarch" | |
3753 | ||
3754 | if test "$enableval" = yes; then | |
3755 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3756 | else | |
3757 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3758 | fi | |
3759 | ||
3760 | else | |
3761 | ||
3762 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
3763 | if test "x$LINE" != x ; then | |
3764 | eval "DEFAULT_$LINE" | |
3765 | else | |
3766 | no_cache=1 | |
3767 | fi | |
3768 | ||
3769 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
3770 | ||
3771 | fi | |
3772 | ||
3773 | ||
3774 | eval "$ac_cv_use_printarch" | |
3775 | if test "$no_cache" != 1; then | |
3776 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3777 | fi | |
3778 | ||
3779 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
3780 | echo "$ac_t""yes" 1>&6 | |
3781 | else | |
3782 | echo "$ac_t""no" 1>&6 | |
3783 | fi | |
3784 | ||
3785 | ||
3786 | echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6 | |
1db8dc4a | 3787 | echo "configure:3788: checking "for --enable-mdi"" >&5 |
10f2d63a VZ |
3788 | no_cache=0 |
3789 | # Check whether --enable-mdi or --disable-mdi was given. | |
3790 | if test "${enable_mdi+set}" = set; then | |
3791 | enableval="$enable_mdi" | |
3792 | ||
3793 | if test "$enableval" = yes; then | |
3794 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3795 | else | |
3796 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3797 | fi | |
3798 | ||
3799 | else | |
3800 | ||
3801 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
3802 | if test "x$LINE" != x ; then | |
3803 | eval "DEFAULT_$LINE" | |
3804 | else | |
3805 | no_cache=1 | |
3806 | fi | |
3807 | ||
3808 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
3809 | ||
3810 | fi | |
3811 | ||
3812 | ||
3813 | eval "$ac_cv_use_mdi" | |
3814 | if test "$no_cache" != 1; then | |
3815 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3816 | fi | |
3817 | ||
3818 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
3819 | echo "$ac_t""yes" 1>&6 | |
3820 | else | |
3821 | echo "$ac_t""no" 1>&6 | |
3822 | fi | |
3823 | ||
3824 | ||
3825 | ||
3826 | echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6 | |
1db8dc4a | 3827 | echo "configure:3828: checking "for --enable-postscript"" >&5 |
10f2d63a VZ |
3828 | no_cache=0 |
3829 | # Check whether --enable-postscript or --disable-postscript was given. | |
3830 | if test "${enable_postscript+set}" = set; then | |
3831 | enableval="$enable_postscript" | |
3832 | ||
3833 | if test "$enableval" = yes; then | |
3834 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3835 | else | |
3836 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3837 | fi | |
3838 | ||
3839 | else | |
3840 | ||
3841 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
3842 | if test "x$LINE" != x ; then | |
3843 | eval "DEFAULT_$LINE" | |
3844 | else | |
3845 | no_cache=1 | |
3846 | fi | |
3847 | ||
3848 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
3849 | ||
3850 | fi | |
3851 | ||
3852 | ||
3853 | eval "$ac_cv_use_postscript" | |
3854 | if test "$no_cache" != 1; then | |
3855 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3856 | fi | |
3857 | ||
3858 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
3859 | echo "$ac_t""yes" 1>&6 | |
3860 | else | |
3861 | echo "$ac_t""no" 1>&6 | |
3862 | fi | |
3863 | ||
3864 | ||
3865 | ||
3866 | ||
3867 | echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6 | |
1db8dc4a | 3868 | echo "configure:3869: checking "for --enable-prologio"" >&5 |
10f2d63a VZ |
3869 | no_cache=0 |
3870 | # Check whether --enable-prologio or --disable-prologio was given. | |
3871 | if test "${enable_prologio+set}" = set; then | |
3872 | enableval="$enable_prologio" | |
3873 | ||
3874 | if test "$enableval" = yes; then | |
3875 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3876 | else | |
3877 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3878 | fi | |
3879 | ||
3880 | else | |
3881 | ||
3882 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
3883 | if test "x$LINE" != x ; then | |
3884 | eval "DEFAULT_$LINE" | |
3885 | else | |
3886 | no_cache=1 | |
3887 | fi | |
3888 | ||
3889 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
3890 | ||
3891 | fi | |
3892 | ||
3893 | ||
3894 | eval "$ac_cv_use_prologio" | |
3895 | if test "$no_cache" != 1; then | |
3896 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3897 | fi | |
3898 | ||
3899 | if test "$wxUSE_PROLOGIO" = yes; then | |
3900 | echo "$ac_t""yes" 1>&6 | |
3901 | else | |
3902 | echo "$ac_t""no" 1>&6 | |
3903 | fi | |
3904 | ||
3905 | ||
3906 | echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6 | |
1db8dc4a | 3907 | echo "configure:3908: checking "for --enable-resources"" >&5 |
10f2d63a VZ |
3908 | no_cache=0 |
3909 | # Check whether --enable-resources or --disable-resources was given. | |
3910 | if test "${enable_resources+set}" = set; then | |
3911 | enableval="$enable_resources" | |
3912 | ||
3913 | if test "$enableval" = yes; then | |
3914 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3915 | else | |
3916 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3917 | fi | |
3918 | ||
3919 | else | |
3920 | ||
3921 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
3922 | if test "x$LINE" != x ; then | |
3923 | eval "DEFAULT_$LINE" | |
3924 | else | |
3925 | no_cache=1 | |
3926 | fi | |
3927 | ||
3928 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
3929 | ||
3930 | fi | |
3931 | ||
3932 | ||
3933 | eval "$ac_cv_use_resources" | |
3934 | if test "$no_cache" != 1; then | |
3935 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
3936 | fi | |
3937 | ||
3938 | if test "$wxUSE_RESOURCES" = yes; then | |
3939 | echo "$ac_t""yes" 1>&6 | |
3940 | else | |
3941 | echo "$ac_t""no" 1>&6 | |
3942 | fi | |
3943 | ||
3944 | ||
3945 | ||
3946 | echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6 | |
1db8dc4a | 3947 | echo "configure:3948: checking "for --enable-xresources"" >&5 |
10f2d63a VZ |
3948 | no_cache=0 |
3949 | # Check whether --enable-xresources or --disable-xresources was given. | |
3950 | if test "${enable_xresources+set}" = set; then | |
3951 | enableval="$enable_xresources" | |
3952 | ||
3953 | if test "$enableval" = yes; then | |
3954 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
3955 | else | |
3956 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
3957 | fi | |
3958 | ||
3959 | else | |
3960 | ||
3961 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
3962 | if test "x$LINE" != x ; then | |
3963 | eval "DEFAULT_$LINE" | |
3964 | else | |
3965 | no_cache=1 | |
3966 | fi | |
3967 | ||
3968 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
3969 | ||
3970 | fi | |
3971 | ||
3972 | ||
3973 | eval "$ac_cv_use_xresources" | |
3974 | if test "$no_cache" != 1; then | |
3975 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
3976 | fi | |
3977 | ||
3978 | if test "$wxUSE_X_RESOURCES" = yes; then | |
3979 | echo "$ac_t""yes" 1>&6 | |
3980 | else | |
3981 | echo "$ac_t""no" 1>&6 | |
3982 | fi | |
3983 | ||
3984 | ||
3985 | ||
3986 | ||
3987 | echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6 | |
1db8dc4a | 3988 | echo "configure:3989: checking "for --enable-clipboard"" >&5 |
10f2d63a VZ |
3989 | no_cache=0 |
3990 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
3991 | if test "${enable_clipboard+set}" = set; then | |
3992 | enableval="$enable_clipboard" | |
3993 | ||
3994 | if test "$enableval" = yes; then | |
3995 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
3996 | else | |
3997 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
3998 | fi | |
3999 | ||
4000 | else | |
4001 | ||
4002 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
4003 | if test "x$LINE" != x ; then | |
4004 | eval "DEFAULT_$LINE" | |
4005 | else | |
4006 | no_cache=1 | |
4007 | fi | |
4008 | ||
4009 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
4010 | ||
4011 | fi | |
4012 | ||
4013 | ||
4014 | eval "$ac_cv_use_clipboard" | |
4015 | if test "$no_cache" != 1; then | |
4016 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4017 | fi | |
4018 | ||
4019 | if test "$wxUSE_CLIPBOARD" = yes; then | |
4020 | echo "$ac_t""yes" 1>&6 | |
4021 | else | |
4022 | echo "$ac_t""no" 1>&6 | |
4023 | fi | |
4024 | ||
4025 | ||
4026 | echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6 | |
1db8dc4a | 4027 | echo "configure:4028: checking "for --enable-dnd"" >&5 |
10f2d63a VZ |
4028 | no_cache=0 |
4029 | # Check whether --enable-dnd or --disable-dnd was given. | |
4030 | if test "${enable_dnd+set}" = set; then | |
4031 | enableval="$enable_dnd" | |
4032 | ||
4033 | if test "$enableval" = yes; then | |
4034 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4035 | else | |
4036 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4037 | fi | |
4038 | ||
4039 | else | |
4040 | ||
4041 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
4042 | if test "x$LINE" != x ; then | |
4043 | eval "DEFAULT_$LINE" | |
4044 | else | |
4045 | no_cache=1 | |
4046 | fi | |
4047 | ||
4048 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
4049 | ||
4050 | fi | |
4051 | ||
4052 | ||
4053 | eval "$ac_cv_use_dnd" | |
4054 | if test "$no_cache" != 1; then | |
4055 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4056 | fi | |
4057 | ||
4058 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
4059 | echo "$ac_t""yes" 1>&6 | |
4060 | else | |
4061 | echo "$ac_t""no" 1>&6 | |
4062 | fi | |
4063 | ||
4064 | ||
b64f0a5f | 4065 | echo $ac_n "checking "for --enable-metafile"""... $ac_c" 1>&6 |
1db8dc4a | 4066 | echo "configure:4067: checking "for --enable-metafile"" >&5 |
b64f0a5f RL |
4067 | no_cache=0 |
4068 | # Check whether --enable-metafile or --disable-metafile was given. | |
4069 | if test "${enable_metafile+set}" = set; then | |
4070 | enableval="$enable_metafile" | |
4071 | ||
4072 | if test "$enableval" = yes; then | |
4073 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4074 | else | |
4075 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4076 | fi | |
4077 | ||
4078 | else | |
4079 | ||
4080 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
4081 | if test "x$LINE" != x ; then | |
4082 | eval "DEFAULT_$LINE" | |
4083 | else | |
4084 | no_cache=1 | |
4085 | fi | |
4086 | ||
4087 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
4088 | ||
4089 | fi | |
4090 | ||
4091 | ||
4092 | eval "$ac_cv_use_metafile" | |
4093 | if test "$no_cache" != 1; then | |
4094 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4095 | fi | |
4096 | ||
4097 | if test "$wxUSE_METAFILE" = yes; then | |
4098 | echo "$ac_t""yes" 1>&6 | |
4099 | else | |
4100 | echo "$ac_t""no" 1>&6 | |
4101 | fi | |
4102 | ||
4103 | ||
10f2d63a VZ |
4104 | |
4105 | echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6 | |
1db8dc4a | 4106 | echo "configure:4107: checking "for --enable-wxtree"" >&5 |
10f2d63a VZ |
4107 | no_cache=0 |
4108 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
4109 | if test "${enable_wxtree+set}" = set; then | |
4110 | enableval="$enable_wxtree" | |
4111 | ||
4112 | if test "$enableval" = yes; then | |
4113 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
4114 | else | |
4115 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
4116 | fi | |
4117 | ||
4118 | else | |
4119 | ||
4120 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
4121 | if test "x$LINE" != x ; then | |
4122 | eval "DEFAULT_$LINE" | |
4123 | else | |
4124 | no_cache=1 | |
4125 | fi | |
4126 | ||
4127 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
4128 | ||
4129 | fi | |
4130 | ||
4131 | ||
4132 | eval "$ac_cv_use_wxtree" | |
4133 | if test "$no_cache" != 1; then | |
4134 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
4135 | fi | |
4136 | ||
4137 | if test "$wxUSE_WXTREE" = yes; then | |
4138 | echo "$ac_t""yes" 1>&6 | |
4139 | else | |
4140 | echo "$ac_t""no" 1>&6 | |
4141 | fi | |
4142 | ||
4143 | ||
4144 | ||
4145 | ||
4146 | echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6 | |
1db8dc4a | 4147 | echo "configure:4148: checking "for --enable-controls"" >&5 |
10f2d63a VZ |
4148 | no_cache=0 |
4149 | # Check whether --enable-controls or --disable-controls was given. | |
4150 | if test "${enable_controls+set}" = set; then | |
4151 | enableval="$enable_controls" | |
4152 | ||
4153 | if test "$enableval" = yes; then | |
4154 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
4155 | else | |
4156 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
4157 | fi | |
4158 | ||
4159 | else | |
4160 | ||
4161 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
4162 | if test "x$LINE" != x ; then | |
4163 | eval "DEFAULT_$LINE" | |
4164 | else | |
4165 | no_cache=1 | |
4166 | fi | |
4167 | ||
4168 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
4169 | ||
4170 | fi | |
4171 | ||
4172 | ||
4173 | eval "$ac_cv_use_controls" | |
4174 | if test "$no_cache" != 1; then | |
4175 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
4176 | fi | |
4177 | ||
4178 | if test "$wxUSE_CONTROLS" = yes; then | |
4179 | echo "$ac_t""yes" 1>&6 | |
4180 | else | |
4181 | echo "$ac_t""no" 1>&6 | |
4182 | fi | |
4183 | ||
4184 | ||
4185 | if test "$wxUSE_CONTROLS" = "yes"; then | |
4186 | DEFAULT_wxUSE_ACCEL=yes | |
4187 | DEFAULT_wxUSE_CARET=yes | |
4188 | DEFAULT_wxUSE_COMBOBOX=yes | |
4189 | DEFAULT_wxUSE_BMPBUTTON=yes | |
4190 | DEFAULT_wxUSE_CHECKBOX=yes | |
4191 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
4192 | DEFAULT_wxUSE_CHOICE=yes | |
4193 | DEFAULT_wxUSE_GAUGE=yes | |
4194 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 4195 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
4196 | DEFAULT_wxUSE_IMAGLIST=yes |
4197 | DEFAULT_wxUSE_LISTBOX=yes | |
4198 | DEFAULT_wxUSE_LISTCTRL=yes | |
4199 | DEFAULT_wxUSE_NOTEBOOK=yes | |
4200 | DEFAULT_wxUSE_RADIOBOX=yes | |
4201 | DEFAULT_wxUSE_RADIOBTN=yes | |
4202 | DEFAULT_wxUSE_SASH=yes | |
4203 | DEFAULT_wxUSE_SCROLLBAR=yes | |
4204 | DEFAULT_wxUSE_SLIDER=yes | |
4205 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 4206 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
4207 | DEFAULT_wxUSE_SPLITTER=yes |
4208 | DEFAULT_wxUSE_STATBMP=yes | |
4209 | DEFAULT_wxUSE_STATBOX=yes | |
4210 | DEFAULT_wxUSE_STATLINE=yes | |
4211 | DEFAULT_wxUSE_STATUSBAR=yes | |
4212 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 4213 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 4214 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
4215 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
4216 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
4217 | DEFAULT_wxUSE_TOOLTIPS=yes |
4218 | DEFAULT_wxUSE_TREECTRL=yes | |
4219 | elif test "$wxUSE_CONTROLS" = "no"; then | |
4220 | DEFAULT_wxUSE_ACCEL=no | |
4221 | DEFAULT_wxUSE_CARET=no | |
4222 | DEFAULT_wxUSE_COMBOBOX=no | |
4223 | DEFAULT_wxUSE_BMPBUTTON=no | |
4224 | DEFAULT_wxUSE_CHECKBOX=no | |
4225 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
4226 | DEFAULT_wxUSE_CHOICE=no | |
4227 | DEFAULT_wxUSE_GAUGE=no | |
4228 | DEFAULT_wxUSE_GRID=no | |
4229 | DEFAULT_wxUSE_NEW_GRID=no | |
4230 | DEFAULT_wxUSE_IMAGLIST=no | |
4231 | DEFAULT_wxUSE_LISTBOX=no | |
4232 | DEFAULT_wxUSE_LISTCTRL=no | |
4233 | DEFAULT_wxUSE_NOTEBOOK=no | |
4234 | DEFAULT_wxUSE_RADIOBOX=no | |
4235 | DEFAULT_wxUSE_RADIOBTN=no | |
4236 | DEFAULT_wxUSE_SASH=no | |
4237 | DEFAULT_wxUSE_SCROLLBAR=no | |
4238 | DEFAULT_wxUSE_SLIDER=no | |
4239 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 4240 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
4241 | DEFAULT_wxUSE_SPLITTER=no |
4242 | DEFAULT_wxUSE_STATBMP=no | |
4243 | DEFAULT_wxUSE_STATBOX=no | |
4244 | DEFAULT_wxUSE_STATLINE=no | |
4245 | DEFAULT_wxUSE_STATUSBAR=no | |
4246 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 4247 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 4248 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
4249 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
4250 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
4251 | DEFAULT_wxUSE_TOOLTIPS=no |
4252 | DEFAULT_wxUSE_TREECTRL=no | |
4253 | fi | |
4254 | ||
4255 | ||
4256 | echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6 | |
1db8dc4a | 4257 | echo "configure:4258: checking "for --enable-accel"" >&5 |
10f2d63a VZ |
4258 | no_cache=0 |
4259 | # Check whether --enable-accel or --disable-accel was given. | |
4260 | if test "${enable_accel+set}" = set; then | |
4261 | enableval="$enable_accel" | |
4262 | ||
4263 | if test "$enableval" = yes; then | |
4264 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
4265 | else | |
4266 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
4267 | fi | |
4268 | ||
4269 | else | |
4270 | ||
4271 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
4272 | if test "x$LINE" != x ; then | |
4273 | eval "DEFAULT_$LINE" | |
4274 | else | |
4275 | no_cache=1 | |
4276 | fi | |
4277 | ||
4278 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
4279 | ||
4280 | fi | |
4281 | ||
4282 | ||
4283 | eval "$ac_cv_use_accel" | |
4284 | if test "$no_cache" != 1; then | |
4285 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
4286 | fi | |
4287 | ||
4288 | if test "$wxUSE_ACCEL" = yes; then | |
4289 | echo "$ac_t""yes" 1>&6 | |
4290 | else | |
4291 | echo "$ac_t""no" 1>&6 | |
4292 | fi | |
4293 | ||
4294 | ||
4295 | echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6 | |
1db8dc4a | 4296 | echo "configure:4297: checking "for --enable-caret"" >&5 |
10f2d63a VZ |
4297 | no_cache=0 |
4298 | # Check whether --enable-caret or --disable-caret was given. | |
4299 | if test "${enable_caret+set}" = set; then | |
4300 | enableval="$enable_caret" | |
4301 | ||
4302 | if test "$enableval" = yes; then | |
4303 | ac_cv_use_caret='wxUSE_CARET=yes' | |
4304 | else | |
4305 | ac_cv_use_caret='wxUSE_CARET=no' | |
4306 | fi | |
4307 | ||
4308 | else | |
4309 | ||
4310 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
4311 | if test "x$LINE" != x ; then | |
4312 | eval "DEFAULT_$LINE" | |
4313 | else | |
4314 | no_cache=1 | |
4315 | fi | |
4316 | ||
4317 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
4318 | ||
4319 | fi | |
4320 | ||
4321 | ||
4322 | eval "$ac_cv_use_caret" | |
4323 | if test "$no_cache" != 1; then | |
4324 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
4325 | fi | |
4326 | ||
4327 | if test "$wxUSE_CARET" = yes; then | |
4328 | echo "$ac_t""yes" 1>&6 | |
4329 | else | |
4330 | echo "$ac_t""no" 1>&6 | |
4331 | fi | |
4332 | ||
4333 | ||
4334 | echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6 | |
1db8dc4a | 4335 | echo "configure:4336: checking "for --enable-bmpbutton"" >&5 |
10f2d63a VZ |
4336 | no_cache=0 |
4337 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4338 | if test "${enable_bmpbutton+set}" = set; then | |
4339 | enableval="$enable_bmpbutton" | |
4340 | ||
4341 | if test "$enableval" = yes; then | |
4342 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4343 | else | |
4344 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4345 | fi | |
4346 | ||
4347 | else | |
4348 | ||
4349 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
4350 | if test "x$LINE" != x ; then | |
4351 | eval "DEFAULT_$LINE" | |
4352 | else | |
4353 | no_cache=1 | |
4354 | fi | |
4355 | ||
4356 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
4357 | ||
4358 | fi | |
4359 | ||
4360 | ||
4361 | eval "$ac_cv_use_bmpbutton" | |
4362 | if test "$no_cache" != 1; then | |
4363 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4364 | fi | |
4365 | ||
4366 | if test "$wxUSE_BMPBUTTON" = yes; then | |
4367 | echo "$ac_t""yes" 1>&6 | |
4368 | else | |
4369 | echo "$ac_t""no" 1>&6 | |
4370 | fi | |
4371 | ||
4372 | ||
4373 | echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6 | |
1db8dc4a | 4374 | echo "configure:4375: checking "for --enable-checkbox"" >&5 |
10f2d63a VZ |
4375 | no_cache=0 |
4376 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
4377 | if test "${enable_checkbox+set}" = set; then | |
4378 | enableval="$enable_checkbox" | |
4379 | ||
4380 | if test "$enableval" = yes; then | |
4381 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
4382 | else | |
4383 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
4384 | fi | |
4385 | ||
4386 | else | |
4387 | ||
4388 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
4389 | if test "x$LINE" != x ; then | |
4390 | eval "DEFAULT_$LINE" | |
4391 | else | |
4392 | no_cache=1 | |
4393 | fi | |
4394 | ||
4395 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
4396 | ||
4397 | fi | |
4398 | ||
4399 | ||
4400 | eval "$ac_cv_use_checkbox" | |
4401 | if test "$no_cache" != 1; then | |
4402 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
4403 | fi | |
4404 | ||
4405 | if test "$wxUSE_CHECKBOX" = yes; then | |
4406 | echo "$ac_t""yes" 1>&6 | |
4407 | else | |
4408 | echo "$ac_t""no" 1>&6 | |
4409 | fi | |
4410 | ||
4411 | ||
4412 | echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6 | |
1db8dc4a | 4413 | echo "configure:4414: checking "for --enable-checklst"" >&5 |
10f2d63a VZ |
4414 | no_cache=0 |
4415 | # Check whether --enable-checklst or --disable-checklst was given. | |
4416 | if test "${enable_checklst+set}" = set; then | |
4417 | enableval="$enable_checklst" | |
4418 | ||
4419 | if test "$enableval" = yes; then | |
4420 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
4421 | else | |
4422 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
4423 | fi | |
4424 | ||
4425 | else | |
4426 | ||
4427 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
4428 | if test "x$LINE" != x ; then | |
4429 | eval "DEFAULT_$LINE" | |
4430 | else | |
4431 | no_cache=1 | |
4432 | fi | |
4433 | ||
4434 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
4435 | ||
4436 | fi | |
4437 | ||
4438 | ||
4439 | eval "$ac_cv_use_checklst" | |
4440 | if test "$no_cache" != 1; then | |
4441 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4442 | fi | |
4443 | ||
4444 | if test "$wxUSE_CHECKLST" = yes; then | |
4445 | echo "$ac_t""yes" 1>&6 | |
4446 | else | |
4447 | echo "$ac_t""no" 1>&6 | |
4448 | fi | |
4449 | ||
4450 | ||
4451 | echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6 | |
1db8dc4a | 4452 | echo "configure:4453: checking "for --enable-choice"" >&5 |
10f2d63a VZ |
4453 | no_cache=0 |
4454 | # Check whether --enable-choice or --disable-choice was given. | |
4455 | if test "${enable_choice+set}" = set; then | |
4456 | enableval="$enable_choice" | |
4457 | ||
4458 | if test "$enableval" = yes; then | |
4459 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4460 | else | |
4461 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4462 | fi | |
4463 | ||
4464 | else | |
4465 | ||
4466 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
4467 | if test "x$LINE" != x ; then | |
4468 | eval "DEFAULT_$LINE" | |
4469 | else | |
4470 | no_cache=1 | |
4471 | fi | |
4472 | ||
4473 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
4474 | ||
4475 | fi | |
4476 | ||
4477 | ||
4478 | eval "$ac_cv_use_choice" | |
4479 | if test "$no_cache" != 1; then | |
4480 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4481 | fi | |
4482 | ||
4483 | if test "$wxUSE_CHOICE" = yes; then | |
4484 | echo "$ac_t""yes" 1>&6 | |
4485 | else | |
4486 | echo "$ac_t""no" 1>&6 | |
4487 | fi | |
4488 | ||
4489 | ||
4490 | echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6 | |
1db8dc4a | 4491 | echo "configure:4492: checking "for --enable-combobox"" >&5 |
10f2d63a VZ |
4492 | no_cache=0 |
4493 | # Check whether --enable-combobox or --disable-combobox was given. | |
4494 | if test "${enable_combobox+set}" = set; then | |
4495 | enableval="$enable_combobox" | |
4496 | ||
4497 | if test "$enableval" = yes; then | |
4498 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4499 | else | |
4500 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4501 | fi | |
4502 | ||
4503 | else | |
4504 | ||
4505 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
4506 | if test "x$LINE" != x ; then | |
4507 | eval "DEFAULT_$LINE" | |
4508 | else | |
4509 | no_cache=1 | |
4510 | fi | |
4511 | ||
4512 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
4513 | ||
4514 | fi | |
4515 | ||
4516 | ||
4517 | eval "$ac_cv_use_combobox" | |
4518 | if test "$no_cache" != 1; then | |
4519 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4520 | fi | |
4521 | ||
4522 | if test "$wxUSE_COMBOBOX" = yes; then | |
4523 | echo "$ac_t""yes" 1>&6 | |
4524 | else | |
4525 | echo "$ac_t""no" 1>&6 | |
4526 | fi | |
4527 | ||
4528 | ||
4529 | echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6 | |
1db8dc4a | 4530 | echo "configure:4531: checking "for --enable-gauge"" >&5 |
10f2d63a VZ |
4531 | no_cache=0 |
4532 | # Check whether --enable-gauge or --disable-gauge was given. | |
4533 | if test "${enable_gauge+set}" = set; then | |
4534 | enableval="$enable_gauge" | |
4535 | ||
4536 | if test "$enableval" = yes; then | |
4537 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4538 | else | |
4539 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4540 | fi | |
4541 | ||
4542 | else | |
4543 | ||
4544 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
4545 | if test "x$LINE" != x ; then | |
4546 | eval "DEFAULT_$LINE" | |
4547 | else | |
4548 | no_cache=1 | |
4549 | fi | |
4550 | ||
4551 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
4552 | ||
4553 | fi | |
4554 | ||
4555 | ||
4556 | eval "$ac_cv_use_gauge" | |
4557 | if test "$no_cache" != 1; then | |
4558 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4559 | fi | |
4560 | ||
4561 | if test "$wxUSE_GAUGE" = yes; then | |
4562 | echo "$ac_t""yes" 1>&6 | |
4563 | else | |
4564 | echo "$ac_t""no" 1>&6 | |
4565 | fi | |
4566 | ||
4567 | ||
4568 | echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6 | |
1db8dc4a | 4569 | echo "configure:4570: checking "for --enable-grid"" >&5 |
10f2d63a VZ |
4570 | no_cache=0 |
4571 | # Check whether --enable-grid or --disable-grid was given. | |
4572 | if test "${enable_grid+set}" = set; then | |
4573 | enableval="$enable_grid" | |
4574 | ||
4575 | if test "$enableval" = yes; then | |
4576 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4577 | else | |
4578 | ac_cv_use_grid='wxUSE_GRID=no' | |
4579 | fi | |
4580 | ||
4581 | else | |
4582 | ||
4583 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
4584 | if test "x$LINE" != x ; then | |
4585 | eval "DEFAULT_$LINE" | |
4586 | else | |
4587 | no_cache=1 | |
4588 | fi | |
4589 | ||
4590 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
4591 | ||
4592 | fi | |
4593 | ||
4594 | ||
4595 | eval "$ac_cv_use_grid" | |
4596 | if test "$no_cache" != 1; then | |
4597 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4598 | fi | |
4599 | ||
4600 | if test "$wxUSE_GRID" = yes; then | |
4601 | echo "$ac_t""yes" 1>&6 | |
4602 | else | |
4603 | echo "$ac_t""no" 1>&6 | |
4604 | fi | |
4605 | ||
4606 | ||
4607 | echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6 | |
1db8dc4a | 4608 | echo "configure:4609: checking "for --enable-newgrid"" >&5 |
10f2d63a VZ |
4609 | no_cache=0 |
4610 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
4611 | if test "${enable_newgrid+set}" = set; then | |
4612 | enableval="$enable_newgrid" | |
4613 | ||
4614 | if test "$enableval" = yes; then | |
4615 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
4616 | else | |
4617 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
4618 | fi | |
4619 | ||
4620 | else | |
4621 | ||
4622 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
4623 | if test "x$LINE" != x ; then | |
4624 | eval "DEFAULT_$LINE" | |
4625 | else | |
4626 | no_cache=1 | |
4627 | fi | |
4628 | ||
4629 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
4630 | ||
4631 | fi | |
4632 | ||
4633 | ||
4634 | eval "$ac_cv_use_newgrid" | |
4635 | if test "$no_cache" != 1; then | |
4636 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
4637 | fi | |
4638 | ||
4639 | if test "$wxUSE_NEW_GRID" = yes; then | |
4640 | echo "$ac_t""yes" 1>&6 | |
4641 | else | |
4642 | echo "$ac_t""no" 1>&6 | |
4643 | fi | |
4644 | ||
4645 | ||
4646 | echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6 | |
1db8dc4a | 4647 | echo "configure:4648: checking "for --enable-imaglist"" >&5 |
10f2d63a VZ |
4648 | no_cache=0 |
4649 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4650 | if test "${enable_imaglist+set}" = set; then | |
4651 | enableval="$enable_imaglist" | |
4652 | ||
4653 | if test "$enableval" = yes; then | |
4654 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4655 | else | |
4656 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4657 | fi | |
4658 | ||
4659 | else | |
4660 | ||
4661 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
4662 | if test "x$LINE" != x ; then | |
4663 | eval "DEFAULT_$LINE" | |
4664 | else | |
4665 | no_cache=1 | |
4666 | fi | |
4667 | ||
4668 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
4669 | ||
4670 | fi | |
4671 | ||
4672 | ||
4673 | eval "$ac_cv_use_imaglist" | |
4674 | if test "$no_cache" != 1; then | |
4675 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4676 | fi | |
4677 | ||
4678 | if test "$wxUSE_IMAGLIST" = yes; then | |
4679 | echo "$ac_t""yes" 1>&6 | |
4680 | else | |
4681 | echo "$ac_t""no" 1>&6 | |
4682 | fi | |
4683 | ||
4684 | ||
4685 | echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6 | |
1db8dc4a | 4686 | echo "configure:4687: checking "for --enable-listbox"" >&5 |
10f2d63a VZ |
4687 | no_cache=0 |
4688 | # Check whether --enable-listbox or --disable-listbox was given. | |
4689 | if test "${enable_listbox+set}" = set; then | |
4690 | enableval="$enable_listbox" | |
4691 | ||
4692 | if test "$enableval" = yes; then | |
4693 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4694 | else | |
4695 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4696 | fi | |
4697 | ||
4698 | else | |
4699 | ||
4700 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
4701 | if test "x$LINE" != x ; then | |
4702 | eval "DEFAULT_$LINE" | |
4703 | else | |
4704 | no_cache=1 | |
4705 | fi | |
4706 | ||
4707 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
4708 | ||
4709 | fi | |
4710 | ||
4711 | ||
4712 | eval "$ac_cv_use_listbox" | |
4713 | if test "$no_cache" != 1; then | |
4714 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4715 | fi | |
4716 | ||
4717 | if test "$wxUSE_LISTBOX" = yes; then | |
4718 | echo "$ac_t""yes" 1>&6 | |
4719 | else | |
4720 | echo "$ac_t""no" 1>&6 | |
4721 | fi | |
4722 | ||
4723 | ||
4724 | echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6 | |
1db8dc4a | 4725 | echo "configure:4726: checking "for --enable-listctrl"" >&5 |
10f2d63a VZ |
4726 | no_cache=0 |
4727 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4728 | if test "${enable_listctrl+set}" = set; then | |
4729 | enableval="$enable_listctrl" | |
4730 | ||
4731 | if test "$enableval" = yes; then | |
4732 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4733 | else | |
4734 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4735 | fi | |
4736 | ||
4737 | else | |
4738 | ||
4739 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
4740 | if test "x$LINE" != x ; then | |
4741 | eval "DEFAULT_$LINE" | |
4742 | else | |
4743 | no_cache=1 | |
4744 | fi | |
4745 | ||
4746 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
4747 | ||
4748 | fi | |
4749 | ||
4750 | ||
4751 | eval "$ac_cv_use_listctrl" | |
4752 | if test "$no_cache" != 1; then | |
4753 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4754 | fi | |
4755 | ||
4756 | if test "$wxUSE_LISTCTRL" = yes; then | |
4757 | echo "$ac_t""yes" 1>&6 | |
4758 | else | |
4759 | echo "$ac_t""no" 1>&6 | |
4760 | fi | |
4761 | ||
4762 | ||
4763 | echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6 | |
1db8dc4a | 4764 | echo "configure:4765: checking "for --enable-notebook"" >&5 |
10f2d63a VZ |
4765 | no_cache=0 |
4766 | # Check whether --enable-notebook or --disable-notebook was given. | |
4767 | if test "${enable_notebook+set}" = set; then | |
4768 | enableval="$enable_notebook" | |
4769 | ||
4770 | if test "$enableval" = yes; then | |
4771 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4772 | else | |
4773 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4774 | fi | |
4775 | ||
4776 | else | |
4777 | ||
4778 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
4779 | if test "x$LINE" != x ; then | |
4780 | eval "DEFAULT_$LINE" | |
4781 | else | |
4782 | no_cache=1 | |
4783 | fi | |
4784 | ||
4785 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
4786 | ||
4787 | fi | |
4788 | ||
4789 | ||
4790 | eval "$ac_cv_use_notebook" | |
4791 | if test "$no_cache" != 1; then | |
4792 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4793 | fi | |
4794 | ||
4795 | if test "$wxUSE_NOTEBOOK" = yes; then | |
4796 | echo "$ac_t""yes" 1>&6 | |
4797 | else | |
4798 | echo "$ac_t""no" 1>&6 | |
4799 | fi | |
4800 | ||
4801 | ||
4802 | echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6 | |
1db8dc4a | 4803 | echo "configure:4804: checking "for --enable-radiobox"" >&5 |
10f2d63a VZ |
4804 | no_cache=0 |
4805 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4806 | if test "${enable_radiobox+set}" = set; then | |
4807 | enableval="$enable_radiobox" | |
4808 | ||
4809 | if test "$enableval" = yes; then | |
4810 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4811 | else | |
4812 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4813 | fi | |
4814 | ||
4815 | else | |
4816 | ||
4817 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
4818 | if test "x$LINE" != x ; then | |
4819 | eval "DEFAULT_$LINE" | |
4820 | else | |
4821 | no_cache=1 | |
4822 | fi | |
4823 | ||
4824 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
4825 | ||
4826 | fi | |
4827 | ||
4828 | ||
4829 | eval "$ac_cv_use_radiobox" | |
4830 | if test "$no_cache" != 1; then | |
4831 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4832 | fi | |
4833 | ||
4834 | if test "$wxUSE_RADIOBOX" = yes; then | |
4835 | echo "$ac_t""yes" 1>&6 | |
4836 | else | |
4837 | echo "$ac_t""no" 1>&6 | |
4838 | fi | |
4839 | ||
4840 | ||
4841 | echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6 | |
1db8dc4a | 4842 | echo "configure:4843: checking "for --enable-radiobtn"" >&5 |
10f2d63a VZ |
4843 | no_cache=0 |
4844 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4845 | if test "${enable_radiobtn+set}" = set; then | |
4846 | enableval="$enable_radiobtn" | |
4847 | ||
4848 | if test "$enableval" = yes; then | |
4849 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4850 | else | |
4851 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4852 | fi | |
4853 | ||
4854 | else | |
4855 | ||
4856 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
4857 | if test "x$LINE" != x ; then | |
4858 | eval "DEFAULT_$LINE" | |
4859 | else | |
4860 | no_cache=1 | |
4861 | fi | |
4862 | ||
4863 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
4864 | ||
4865 | fi | |
4866 | ||
4867 | ||
4868 | eval "$ac_cv_use_radiobtn" | |
4869 | if test "$no_cache" != 1; then | |
4870 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4871 | fi | |
4872 | ||
4873 | if test "$wxUSE_RADIOBTN" = yes; then | |
4874 | echo "$ac_t""yes" 1>&6 | |
4875 | else | |
4876 | echo "$ac_t""no" 1>&6 | |
4877 | fi | |
4878 | ||
4879 | ||
4880 | echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6 | |
1db8dc4a | 4881 | echo "configure:4882: checking "for --enable-sash"" >&5 |
10f2d63a VZ |
4882 | no_cache=0 |
4883 | # Check whether --enable-sash or --disable-sash was given. | |
4884 | if test "${enable_sash+set}" = set; then | |
4885 | enableval="$enable_sash" | |
4886 | ||
4887 | if test "$enableval" = yes; then | |
4888 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4889 | else | |
4890 | ac_cv_use_sash='wxUSE_SASH=no' | |
4891 | fi | |
4892 | ||
4893 | else | |
4894 | ||
4895 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
4896 | if test "x$LINE" != x ; then | |
4897 | eval "DEFAULT_$LINE" | |
4898 | else | |
4899 | no_cache=1 | |
4900 | fi | |
4901 | ||
4902 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
4903 | ||
4904 | fi | |
4905 | ||
4906 | ||
4907 | eval "$ac_cv_use_sash" | |
4908 | if test "$no_cache" != 1; then | |
4909 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4910 | fi | |
4911 | ||
4912 | if test "$wxUSE_SASH" = yes; then | |
4913 | echo "$ac_t""yes" 1>&6 | |
4914 | else | |
4915 | echo "$ac_t""no" 1>&6 | |
4916 | fi | |
4917 | ||
4918 | ||
4919 | echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6 | |
1db8dc4a | 4920 | echo "configure:4921: checking "for --enable-scrollbar"" >&5 |
10f2d63a VZ |
4921 | no_cache=0 |
4922 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4923 | if test "${enable_scrollbar+set}" = set; then | |
4924 | enableval="$enable_scrollbar" | |
4925 | ||
4926 | if test "$enableval" = yes; then | |
4927 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4928 | else | |
4929 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4930 | fi | |
4931 | ||
4932 | else | |
4933 | ||
4934 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
4935 | if test "x$LINE" != x ; then | |
4936 | eval "DEFAULT_$LINE" | |
4937 | else | |
4938 | no_cache=1 | |
4939 | fi | |
4940 | ||
4941 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
4942 | ||
4943 | fi | |
4944 | ||
4945 | ||
4946 | eval "$ac_cv_use_scrollbar" | |
4947 | if test "$no_cache" != 1; then | |
4948 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
4949 | fi | |
4950 | ||
4951 | if test "$wxUSE_SCROLLBAR" = yes; then | |
4952 | echo "$ac_t""yes" 1>&6 | |
4953 | else | |
4954 | echo "$ac_t""no" 1>&6 | |
4955 | fi | |
4956 | ||
4957 | ||
4958 | echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6 | |
1db8dc4a | 4959 | echo "configure:4960: checking "for --enable-slider"" >&5 |
10f2d63a VZ |
4960 | no_cache=0 |
4961 | # Check whether --enable-slider or --disable-slider was given. | |
4962 | if test "${enable_slider+set}" = set; then | |
4963 | enableval="$enable_slider" | |
4964 | ||
4965 | if test "$enableval" = yes; then | |
4966 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
4967 | else | |
4968 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
4969 | fi | |
4970 | ||
4971 | else | |
4972 | ||
4973 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
4974 | if test "x$LINE" != x ; then | |
4975 | eval "DEFAULT_$LINE" | |
4976 | else | |
4977 | no_cache=1 | |
4978 | fi | |
4979 | ||
4980 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
4981 | ||
4982 | fi | |
4983 | ||
4984 | ||
4985 | eval "$ac_cv_use_slider" | |
4986 | if test "$no_cache" != 1; then | |
4987 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
4988 | fi | |
4989 | ||
4990 | if test "$wxUSE_SLIDER" = yes; then | |
4991 | echo "$ac_t""yes" 1>&6 | |
4992 | else | |
4993 | echo "$ac_t""no" 1>&6 | |
4994 | fi | |
4995 | ||
4996 | ||
4997 | echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6 | |
1db8dc4a | 4998 | echo "configure:4999: checking "for --enable-spinbtn"" >&5 |
10f2d63a VZ |
4999 | no_cache=0 |
5000 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5001 | if test "${enable_spinbtn+set}" = set; then | |
5002 | enableval="$enable_spinbtn" | |
5003 | ||
5004 | if test "$enableval" = yes; then | |
5005 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5006 | else | |
5007 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5008 | fi | |
5009 | ||
5010 | else | |
5011 | ||
5012 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
5013 | if test "x$LINE" != x ; then | |
5014 | eval "DEFAULT_$LINE" | |
5015 | else | |
5016 | no_cache=1 | |
5017 | fi | |
5018 | ||
5019 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
5020 | ||
5021 | fi | |
5022 | ||
5023 | ||
5024 | eval "$ac_cv_use_spinbtn" | |
5025 | if test "$no_cache" != 1; then | |
5026 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5027 | fi | |
5028 | ||
5029 | if test "$wxUSE_SPINBTN" = yes; then | |
5030 | echo "$ac_t""yes" 1>&6 | |
5031 | else | |
5032 | echo "$ac_t""no" 1>&6 | |
5033 | fi | |
5034 | ||
5035 | ||
56cfaa52 | 5036 | echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6 |
1db8dc4a | 5037 | echo "configure:5038: checking "for --enable-spinctrl"" >&5 |
56cfaa52 RR |
5038 | no_cache=0 |
5039 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5040 | if test "${enable_spinctrl+set}" = set; then | |
5041 | enableval="$enable_spinctrl" | |
5042 | ||
5043 | if test "$enableval" = yes; then | |
5044 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
5045 | else | |
5046 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
5047 | fi | |
5048 | ||
5049 | else | |
5050 | ||
5051 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
5052 | if test "x$LINE" != x ; then | |
5053 | eval "DEFAULT_$LINE" | |
5054 | else | |
5055 | no_cache=1 | |
5056 | fi | |
5057 | ||
5058 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
5059 | ||
5060 | fi | |
5061 | ||
5062 | ||
5063 | eval "$ac_cv_use_spinctrl" | |
5064 | if test "$no_cache" != 1; then | |
5065 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
5066 | fi | |
5067 | ||
5068 | if test "$wxUSE_SPINCTRL" = yes; then | |
5069 | echo "$ac_t""yes" 1>&6 | |
5070 | else | |
5071 | echo "$ac_t""no" 1>&6 | |
5072 | fi | |
5073 | ||
5074 | ||
10f2d63a | 5075 | echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6 |
1db8dc4a | 5076 | echo "configure:5077: checking "for --enable-splitter"" >&5 |
10f2d63a VZ |
5077 | no_cache=0 |
5078 | # Check whether --enable-splitter or --disable-splitter was given. | |
5079 | if test "${enable_splitter+set}" = set; then | |
5080 | enableval="$enable_splitter" | |
5081 | ||
5082 | if test "$enableval" = yes; then | |
5083 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
5084 | else | |
5085 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
5086 | fi | |
5087 | ||
5088 | else | |
5089 | ||
5090 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
5091 | if test "x$LINE" != x ; then | |
5092 | eval "DEFAULT_$LINE" | |
5093 | else | |
5094 | no_cache=1 | |
5095 | fi | |
5096 | ||
5097 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
5098 | ||
5099 | fi | |
5100 | ||
5101 | ||
5102 | eval "$ac_cv_use_splitter" | |
5103 | if test "$no_cache" != 1; then | |
5104 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
5105 | fi | |
5106 | ||
5107 | if test "$wxUSE_SPLITTER" = yes; then | |
5108 | echo "$ac_t""yes" 1>&6 | |
5109 | else | |
5110 | echo "$ac_t""no" 1>&6 | |
5111 | fi | |
5112 | ||
5113 | ||
5114 | echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6 | |
1db8dc4a | 5115 | echo "configure:5116: checking "for --enable-statbmp"" >&5 |
10f2d63a VZ |
5116 | no_cache=0 |
5117 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
5118 | if test "${enable_statbmp+set}" = set; then | |
5119 | enableval="$enable_statbmp" | |
5120 | ||
5121 | if test "$enableval" = yes; then | |
5122 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
5123 | else | |
5124 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
5125 | fi | |
5126 | ||
5127 | else | |
5128 | ||
5129 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
5130 | if test "x$LINE" != x ; then | |
5131 | eval "DEFAULT_$LINE" | |
5132 | else | |
5133 | no_cache=1 | |
5134 | fi | |
5135 | ||
5136 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
5137 | ||
5138 | fi | |
5139 | ||
5140 | ||
5141 | eval "$ac_cv_use_statbmp" | |
5142 | if test "$no_cache" != 1; then | |
5143 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
5144 | fi | |
5145 | ||
5146 | if test "$wxUSE_STATBMP" = yes; then | |
5147 | echo "$ac_t""yes" 1>&6 | |
5148 | else | |
5149 | echo "$ac_t""no" 1>&6 | |
5150 | fi | |
5151 | ||
5152 | ||
5153 | echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6 | |
1db8dc4a | 5154 | echo "configure:5155: checking "for --enable-statbox"" >&5 |
10f2d63a VZ |
5155 | no_cache=0 |
5156 | # Check whether --enable-statbox or --disable-statbox was given. | |
5157 | if test "${enable_statbox+set}" = set; then | |
5158 | enableval="$enable_statbox" | |
5159 | ||
5160 | if test "$enableval" = yes; then | |
5161 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
5162 | else | |
5163 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
5164 | fi | |
5165 | ||
5166 | else | |
5167 | ||
5168 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
5169 | if test "x$LINE" != x ; then | |
5170 | eval "DEFAULT_$LINE" | |
5171 | else | |
5172 | no_cache=1 | |
5173 | fi | |
5174 | ||
5175 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
5176 | ||
5177 | fi | |
5178 | ||
5179 | ||
5180 | eval "$ac_cv_use_statbox" | |
5181 | if test "$no_cache" != 1; then | |
5182 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
5183 | fi | |
5184 | ||
5185 | if test "$wxUSE_STATBOX" = yes; then | |
5186 | echo "$ac_t""yes" 1>&6 | |
5187 | else | |
5188 | echo "$ac_t""no" 1>&6 | |
5189 | fi | |
5190 | ||
5191 | ||
5192 | echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6 | |
1db8dc4a | 5193 | echo "configure:5194: checking "for --enable-statline"" >&5 |
10f2d63a VZ |
5194 | no_cache=0 |
5195 | # Check whether --enable-statline or --disable-statline was given. | |
5196 | if test "${enable_statline+set}" = set; then | |
5197 | enableval="$enable_statline" | |
5198 | ||
5199 | if test "$enableval" = yes; then | |
5200 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
5201 | else | |
5202 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
5203 | fi | |
5204 | ||
5205 | else | |
5206 | ||
5207 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
5208 | if test "x$LINE" != x ; then | |
5209 | eval "DEFAULT_$LINE" | |
5210 | else | |
5211 | no_cache=1 | |
5212 | fi | |
5213 | ||
5214 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
5215 | ||
5216 | fi | |
5217 | ||
5218 | ||
5219 | eval "$ac_cv_use_statline" | |
5220 | if test "$no_cache" != 1; then | |
5221 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
5222 | fi | |
5223 | ||
5224 | if test "$wxUSE_STATLINE" = yes; then | |
5225 | echo "$ac_t""yes" 1>&6 | |
5226 | else | |
5227 | echo "$ac_t""no" 1>&6 | |
5228 | fi | |
5229 | ||
5230 | ||
5231 | echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6 | |
1db8dc4a | 5232 | echo "configure:5233: checking "for --enable-statusbar"" >&5 |
10f2d63a VZ |
5233 | no_cache=0 |
5234 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
5235 | if test "${enable_statusbar+set}" = set; then | |
5236 | enableval="$enable_statusbar" | |
5237 | ||
5238 | if test "$enableval" = yes; then | |
5239 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
5240 | else | |
5241 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
5242 | fi | |
5243 | ||
5244 | else | |
5245 | ||
5246 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
5247 | if test "x$LINE" != x ; then | |
5248 | eval "DEFAULT_$LINE" | |
5249 | else | |
5250 | no_cache=1 | |
5251 | fi | |
5252 | ||
5253 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
5254 | ||
5255 | fi | |
5256 | ||
5257 | ||
5258 | eval "$ac_cv_use_statusbar" | |
5259 | if test "$no_cache" != 1; then | |
5260 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
5261 | fi | |
5262 | ||
5263 | if test "$wxUSE_STATUSBAR" = yes; then | |
5264 | echo "$ac_t""yes" 1>&6 | |
5265 | else | |
5266 | echo "$ac_t""no" 1>&6 | |
5267 | fi | |
5268 | ||
5269 | ||
5270 | echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6 | |
1db8dc4a | 5271 | echo "configure:5272: checking "for --enable-tabdialog"" >&5 |
10f2d63a VZ |
5272 | no_cache=0 |
5273 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
5274 | if test "${enable_tabdialog+set}" = set; then | |
5275 | enableval="$enable_tabdialog" | |
5276 | ||
5277 | if test "$enableval" = yes; then | |
5278 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
5279 | else | |
5280 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
5281 | fi | |
5282 | ||
5283 | else | |
5284 | ||
5285 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
5286 | if test "x$LINE" != x ; then | |
5287 | eval "DEFAULT_$LINE" | |
5288 | else | |
5289 | no_cache=1 | |
5290 | fi | |
5291 | ||
5292 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
5293 | ||
5294 | fi | |
5295 | ||
5296 | ||
5297 | eval "$ac_cv_use_tabdialog" | |
5298 | if test "$no_cache" != 1; then | |
5299 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
5300 | fi | |
5301 | ||
5302 | if test "$wxUSE_TABDIALOG" = yes; then | |
5303 | echo "$ac_t""yes" 1>&6 | |
5304 | else | |
5305 | echo "$ac_t""no" 1>&6 | |
5306 | fi | |
5307 | ||
5308 | ||
1db8dc4a VZ |
5309 | echo $ac_n "checking "for --enable-togglebtn"""... $ac_c" 1>&6 |
5310 | echo "configure:5311: checking "for --enable-togglebtn"" >&5 | |
5311 | no_cache=0 | |
5312 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
5313 | if test "${enable_togglebtn+set}" = set; then | |
5314 | enableval="$enable_togglebtn" | |
5315 | ||
5316 | if test "$enableval" = yes; then | |
5317 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
5318 | else | |
5319 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
5320 | fi | |
5321 | ||
5322 | else | |
5323 | ||
5324 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
5325 | if test "x$LINE" != x ; then | |
5326 | eval "DEFAULT_$LINE" | |
5327 | else | |
5328 | no_cache=1 | |
5329 | fi | |
5330 | ||
5331 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
5332 | ||
5333 | fi | |
5334 | ||
5335 | ||
5336 | eval "$ac_cv_use_togglebtn" | |
5337 | if test "$no_cache" != 1; then | |
5338 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
5339 | fi | |
5340 | ||
5341 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
5342 | echo "$ac_t""yes" 1>&6 | |
5343 | else | |
5344 | echo "$ac_t""no" 1>&6 | |
5345 | fi | |
5346 | ||
5347 | ||
10f2d63a | 5348 | echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6 |
1db8dc4a | 5349 | echo "configure:5350: checking "for --enable-toolbar"" >&5 |
10f2d63a VZ |
5350 | no_cache=0 |
5351 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
5352 | if test "${enable_toolbar+set}" = set; then | |
5353 | enableval="$enable_toolbar" | |
5354 | ||
5355 | if test "$enableval" = yes; then | |
5356 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
5357 | else | |
5358 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
5359 | fi | |
5360 | ||
5361 | else | |
5362 | ||
5363 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
5364 | if test "x$LINE" != x ; then | |
5365 | eval "DEFAULT_$LINE" | |
5366 | else | |
5367 | no_cache=1 | |
5368 | fi | |
5369 | ||
5370 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
5371 | ||
5372 | fi | |
5373 | ||
5374 | ||
5375 | eval "$ac_cv_use_toolbar" | |
5376 | if test "$no_cache" != 1; then | |
5377 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
5378 | fi | |
5379 | ||
5380 | if test "$wxUSE_TOOLBAR" = yes; then | |
5381 | echo "$ac_t""yes" 1>&6 | |
5382 | else | |
5383 | echo "$ac_t""no" 1>&6 | |
5384 | fi | |
5385 | ||
5386 | ||
360d6699 | 5387 | echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6 |
1db8dc4a | 5388 | echo "configure:5389: checking "for --enable-tbarnative"" >&5 |
360d6699 VZ |
5389 | no_cache=0 |
5390 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
5391 | if test "${enable_tbarnative+set}" = set; then | |
5392 | enableval="$enable_tbarnative" | |
5393 | ||
5394 | if test "$enableval" = yes; then | |
5395 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
5396 | else | |
5397 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
5398 | fi | |
5399 | ||
5400 | else | |
5401 | ||
5402 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
5403 | if test "x$LINE" != x ; then | |
5404 | eval "DEFAULT_$LINE" | |
5405 | else | |
5406 | no_cache=1 | |
5407 | fi | |
5408 | ||
5409 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
5410 | ||
5411 | fi | |
5412 | ||
5413 | ||
5414 | eval "$ac_cv_use_tbarnative" | |
5415 | if test "$no_cache" != 1; then | |
5416 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
5417 | fi | |
5418 | ||
5419 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
5420 | echo "$ac_t""yes" 1>&6 | |
5421 | else | |
5422 | echo "$ac_t""no" 1>&6 | |
5423 | fi | |
5424 | ||
5425 | ||
5426 | echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6 | |
1db8dc4a | 5427 | echo "configure:5428: checking "for --enable-tbarsmpl"" >&5 |
360d6699 VZ |
5428 | no_cache=0 |
5429 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
5430 | if test "${enable_tbarsmpl+set}" = set; then | |
5431 | enableval="$enable_tbarsmpl" | |
5432 | ||
5433 | if test "$enableval" = yes; then | |
5434 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
5435 | else | |
5436 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
5437 | fi | |
5438 | ||
5439 | else | |
5440 | ||
5441 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
5442 | if test "x$LINE" != x ; then | |
5443 | eval "DEFAULT_$LINE" | |
5444 | else | |
5445 | no_cache=1 | |
5446 | fi | |
5447 | ||
5448 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
5449 | ||
5450 | fi | |
5451 | ||
5452 | ||
5453 | eval "$ac_cv_use_tbarsmpl" | |
5454 | if test "$no_cache" != 1; then | |
5455 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
5456 | fi | |
5457 | ||
5458 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
5459 | echo "$ac_t""yes" 1>&6 | |
5460 | else | |
5461 | echo "$ac_t""no" 1>&6 | |
5462 | fi | |
5463 | ||
5464 | ||
10f2d63a | 5465 | echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6 |
1db8dc4a | 5466 | echo "configure:5467: checking "for --enable-treectrl"" >&5 |
10f2d63a VZ |
5467 | no_cache=0 |
5468 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
5469 | if test "${enable_treectrl+set}" = set; then | |
5470 | enableval="$enable_treectrl" | |
5471 | ||
5472 | if test "$enableval" = yes; then | |
5473 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
5474 | else | |
5475 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
5476 | fi | |
5477 | ||
5478 | else | |
5479 | ||
5480 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
5481 | if test "x$LINE" != x ; then | |
5482 | eval "DEFAULT_$LINE" | |
5483 | else | |
5484 | no_cache=1 | |
5485 | fi | |
5486 | ||
5487 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
5488 | ||
5489 | fi | |
5490 | ||
5491 | ||
5492 | eval "$ac_cv_use_treectrl" | |
5493 | if test "$no_cache" != 1; then | |
5494 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
5495 | fi | |
5496 | ||
5497 | if test "$wxUSE_TREECTRL" = yes; then | |
5498 | echo "$ac_t""yes" 1>&6 | |
5499 | else | |
5500 | echo "$ac_t""no" 1>&6 | |
5501 | fi | |
5502 | ||
5503 | ||
5504 | ||
5505 | ||
5506 | echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6 | |
1db8dc4a | 5507 | echo "configure:5508: checking "for --enable-commondlg"" >&5 |
10f2d63a VZ |
5508 | no_cache=0 |
5509 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
5510 | if test "${enable_commondlg+set}" = set; then | |
5511 | enableval="$enable_commondlg" | |
5512 | ||
5513 | if test "$enableval" = yes; then | |
5514 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
5515 | else | |
5516 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
5517 | fi | |
5518 | ||
5519 | else | |
5520 | ||
5521 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
5522 | if test "x$LINE" != x ; then | |
5523 | eval "DEFAULT_$LINE" | |
5524 | else | |
5525 | no_cache=1 | |
5526 | fi | |
5527 | ||
5528 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
5529 | ||
5530 | fi | |
5531 | ||
5532 | ||
5533 | eval "$ac_cv_use_commondlg" | |
5534 | if test "$no_cache" != 1; then | |
5535 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
5536 | fi | |
5537 | ||
5538 | if test "$wxUSE_COMMONDLGS" = yes; then | |
5539 | echo "$ac_t""yes" 1>&6 | |
5540 | else | |
5541 | echo "$ac_t""no" 1>&6 | |
5542 | fi | |
5543 | ||
5544 | ||
5545 | echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6 | |
1db8dc4a | 5546 | echo "configure:5547: checking "for --enable-dirdlg"" >&5 |
10f2d63a VZ |
5547 | no_cache=0 |
5548 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
5549 | if test "${enable_dirdlg+set}" = set; then | |
5550 | enableval="$enable_dirdlg" | |
5551 | ||
5552 | if test "$enableval" = yes; then | |
5553 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
5554 | else | |
5555 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
5556 | fi | |
5557 | ||
5558 | else | |
5559 | ||
5560 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
5561 | if test "x$LINE" != x ; then | |
5562 | eval "DEFAULT_$LINE" | |
5563 | else | |
5564 | no_cache=1 | |
5565 | fi | |
5566 | ||
5567 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
5568 | ||
5569 | fi | |
5570 | ||
5571 | ||
5572 | eval "$ac_cv_use_dirdlg" | |
5573 | if test "$no_cache" != 1; then | |
5574 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
5575 | fi | |
5576 | ||
5577 | if test "$wxUSE_DIRDLG" = yes; then | |
5578 | echo "$ac_t""yes" 1>&6 | |
5579 | else | |
5580 | echo "$ac_t""no" 1>&6 | |
5581 | fi | |
5582 | ||
5583 | ||
5584 | echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6 | |
1db8dc4a | 5585 | echo "configure:5586: checking "for --enable-textdlg"" >&5 |
10f2d63a VZ |
5586 | no_cache=0 |
5587 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
5588 | if test "${enable_textdlg+set}" = set; then | |
5589 | enableval="$enable_textdlg" | |
5590 | ||
5591 | if test "$enableval" = yes; then | |
5592 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
5593 | else | |
5594 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
5595 | fi | |
5596 | ||
5597 | else | |
5598 | ||
5599 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
5600 | if test "x$LINE" != x ; then | |
5601 | eval "DEFAULT_$LINE" | |
5602 | else | |
5603 | no_cache=1 | |
5604 | fi | |
5605 | ||
5606 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
5607 | ||
5608 | fi | |
5609 | ||
5610 | ||
5611 | eval "$ac_cv_use_textdlg" | |
5612 | if test "$no_cache" != 1; then | |
5613 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
5614 | fi | |
5615 | ||
5616 | if test "$wxUSE_TEXTDLG" = yes; then | |
5617 | echo "$ac_t""yes" 1>&6 | |
5618 | else | |
5619 | echo "$ac_t""no" 1>&6 | |
5620 | fi | |
5621 | ||
5622 | ||
5623 | echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6 | |
1db8dc4a | 5624 | echo "configure:5625: checking "for --enable-tipdlg"" >&5 |
10f2d63a VZ |
5625 | no_cache=0 |
5626 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5627 | if test "${enable_tipdlg+set}" = set; then | |
5628 | enableval="$enable_tipdlg" | |
5629 | ||
5630 | if test "$enableval" = yes; then | |
5631 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5632 | else | |
5633 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5634 | fi | |
5635 | ||
5636 | else | |
5637 | ||
5638 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
5639 | if test "x$LINE" != x ; then | |
5640 | eval "DEFAULT_$LINE" | |
5641 | else | |
5642 | no_cache=1 | |
5643 | fi | |
5644 | ||
5645 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
5646 | ||
5647 | fi | |
5648 | ||
5649 | ||
5650 | eval "$ac_cv_use_tipdlg" | |
5651 | if test "$no_cache" != 1; then | |
5652 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5653 | fi | |
5654 | ||
5655 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
5656 | echo "$ac_t""yes" 1>&6 | |
5657 | else | |
5658 | echo "$ac_t""no" 1>&6 | |
5659 | fi | |
5660 | ||
5661 | ||
5662 | echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6 | |
1db8dc4a | 5663 | echo "configure:5664: checking "for --enable-progressdlg"" >&5 |
10f2d63a VZ |
5664 | no_cache=0 |
5665 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5666 | if test "${enable_progressdlg+set}" = set; then | |
5667 | enableval="$enable_progressdlg" | |
5668 | ||
5669 | if test "$enableval" = yes; then | |
5670 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5671 | else | |
5672 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5673 | fi | |
5674 | ||
5675 | else | |
5676 | ||
5677 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
5678 | if test "x$LINE" != x ; then | |
5679 | eval "DEFAULT_$LINE" | |
5680 | else | |
5681 | no_cache=1 | |
5682 | fi | |
5683 | ||
5684 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
5685 | ||
5686 | fi | |
5687 | ||
5688 | ||
5689 | eval "$ac_cv_use_progressdlg" | |
5690 | if test "$no_cache" != 1; then | |
5691 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5692 | fi | |
5693 | ||
5694 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
5695 | echo "$ac_t""yes" 1>&6 | |
5696 | else | |
5697 | echo "$ac_t""no" 1>&6 | |
5698 | fi | |
5699 | ||
5700 | ||
5701 | echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6 | |
1db8dc4a | 5702 | echo "configure:5703: checking "for --enable-miniframe"" >&5 |
10f2d63a VZ |
5703 | no_cache=0 |
5704 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5705 | if test "${enable_miniframe+set}" = set; then | |
5706 | enableval="$enable_miniframe" | |
5707 | ||
5708 | if test "$enableval" = yes; then | |
5709 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5710 | else | |
5711 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5712 | fi | |
5713 | ||
5714 | else | |
5715 | ||
5716 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
5717 | if test "x$LINE" != x ; then | |
5718 | eval "DEFAULT_$LINE" | |
5719 | else | |
5720 | no_cache=1 | |
5721 | fi | |
5722 | ||
5723 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
5724 | ||
5725 | fi | |
5726 | ||
5727 | ||
5728 | eval "$ac_cv_use_miniframe" | |
5729 | if test "$no_cache" != 1; then | |
5730 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5731 | fi | |
5732 | ||
5733 | if test "$wxUSE_MINIFRAME" = yes; then | |
5734 | echo "$ac_t""yes" 1>&6 | |
5735 | else | |
5736 | echo "$ac_t""no" 1>&6 | |
5737 | fi | |
5738 | ||
5739 | ||
5740 | echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6 | |
1db8dc4a | 5741 | echo "configure:5742: checking "for --enable-html"" >&5 |
10f2d63a VZ |
5742 | no_cache=0 |
5743 | # Check whether --enable-html or --disable-html was given. | |
5744 | if test "${enable_html+set}" = set; then | |
5745 | enableval="$enable_html" | |
5746 | ||
5747 | if test "$enableval" = yes; then | |
5748 | ac_cv_use_html='wxUSE_HTML=yes' | |
5749 | else | |
5750 | ac_cv_use_html='wxUSE_HTML=no' | |
5751 | fi | |
5752 | ||
5753 | else | |
5754 | ||
5755 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5756 | if test "x$LINE" != x ; then | |
5757 | eval "DEFAULT_$LINE" | |
5758 | else | |
5759 | no_cache=1 | |
5760 | fi | |
5761 | ||
5762 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5763 | ||
5764 | fi | |
5765 | ||
5766 | ||
5767 | eval "$ac_cv_use_html" | |
5768 | if test "$no_cache" != 1; then | |
5769 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5770 | fi | |
5771 | ||
5772 | if test "$wxUSE_HTML" = yes; then | |
5773 | echo "$ac_t""yes" 1>&6 | |
5774 | else | |
5775 | echo "$ac_t""no" 1>&6 | |
5776 | fi | |
5777 | ||
5778 | ||
5779 | echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6 | |
1db8dc4a | 5780 | echo "configure:5781: checking "for --enable-tooltips"" >&5 |
10f2d63a VZ |
5781 | no_cache=0 |
5782 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5783 | if test "${enable_tooltips+set}" = set; then | |
5784 | enableval="$enable_tooltips" | |
5785 | ||
5786 | if test "$enableval" = yes; then | |
5787 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5788 | else | |
5789 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5790 | fi | |
5791 | ||
5792 | else | |
5793 | ||
5794 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
5795 | if test "x$LINE" != x ; then | |
5796 | eval "DEFAULT_$LINE" | |
5797 | else | |
5798 | no_cache=1 | |
5799 | fi | |
5800 | ||
5801 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
5802 | ||
5803 | fi | |
5804 | ||
5805 | ||
5806 | eval "$ac_cv_use_tooltips" | |
5807 | if test "$no_cache" != 1; then | |
5808 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5809 | fi | |
5810 | ||
5811 | if test "$wxUSE_TOOLTIPS" = yes; then | |
5812 | echo "$ac_t""yes" 1>&6 | |
5813 | else | |
5814 | echo "$ac_t""no" 1>&6 | |
5815 | fi | |
5816 | ||
5817 | ||
5818 | echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6 | |
1db8dc4a | 5819 | echo "configure:5820: checking "for --enable-splines"" >&5 |
10f2d63a VZ |
5820 | no_cache=0 |
5821 | # Check whether --enable-splines or --disable-splines was given. | |
5822 | if test "${enable_splines+set}" = set; then | |
5823 | enableval="$enable_splines" | |
5824 | ||
5825 | if test "$enableval" = yes; then | |
5826 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5827 | else | |
5828 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5829 | fi | |
5830 | ||
5831 | else | |
5832 | ||
5833 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
5834 | if test "x$LINE" != x ; then | |
5835 | eval "DEFAULT_$LINE" | |
5836 | else | |
5837 | no_cache=1 | |
5838 | fi | |
5839 | ||
5840 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
5841 | ||
5842 | fi | |
5843 | ||
5844 | ||
5845 | eval "$ac_cv_use_splines" | |
5846 | if test "$no_cache" != 1; then | |
5847 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5848 | fi | |
5849 | ||
5850 | if test "$wxUSE_SPLINES" = yes; then | |
5851 | echo "$ac_t""yes" 1>&6 | |
5852 | else | |
5853 | echo "$ac_t""no" 1>&6 | |
5854 | fi | |
5855 | ||
5856 | ||
5857 | echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6 | |
1db8dc4a | 5858 | echo "configure:5859: checking "for --enable-validators"" >&5 |
10f2d63a VZ |
5859 | no_cache=0 |
5860 | # Check whether --enable-validators or --disable-validators was given. | |
5861 | if test "${enable_validators+set}" = set; then | |
5862 | enableval="$enable_validators" | |
5863 | ||
5864 | if test "$enableval" = yes; then | |
5865 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5866 | else | |
5867 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5868 | fi | |
5869 | ||
5870 | else | |
5871 | ||
5872 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
5873 | if test "x$LINE" != x ; then | |
5874 | eval "DEFAULT_$LINE" | |
5875 | else | |
5876 | no_cache=1 | |
5877 | fi | |
5878 | ||
5879 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
5880 | ||
5881 | fi | |
5882 | ||
5883 | ||
5884 | eval "$ac_cv_use_validators" | |
5885 | if test "$no_cache" != 1; then | |
5886 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5887 | fi | |
5888 | ||
5889 | if test "$wxUSE_VALIDATORS" = yes; then | |
5890 | echo "$ac_t""yes" 1>&6 | |
5891 | else | |
5892 | echo "$ac_t""no" 1>&6 | |
5893 | fi | |
5894 | ||
5895 | ||
5896 | echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6 | |
1db8dc4a | 5897 | echo "configure:5898: checking "for --enable-busyinfo"" >&5 |
10f2d63a VZ |
5898 | no_cache=0 |
5899 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5900 | if test "${enable_busyinfo+set}" = set; then | |
5901 | enableval="$enable_busyinfo" | |
5902 | ||
5903 | if test "$enableval" = yes; then | |
5904 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5905 | else | |
5906 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5907 | fi | |
5908 | ||
5909 | else | |
5910 | ||
5911 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
5912 | if test "x$LINE" != x ; then | |
5913 | eval "DEFAULT_$LINE" | |
5914 | else | |
5915 | no_cache=1 | |
5916 | fi | |
5917 | ||
5918 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
5919 | ||
5920 | fi | |
5921 | ||
5922 | ||
5923 | eval "$ac_cv_use_busyinfo" | |
5924 | if test "$no_cache" != 1; then | |
5925 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5926 | fi | |
5927 | ||
5928 | if test "$wxUSE_BUSYINFO" = yes; then | |
5929 | echo "$ac_t""yes" 1>&6 | |
5930 | else | |
5931 | echo "$ac_t""no" 1>&6 | |
5932 | fi | |
5933 | ||
5934 | ||
f6bcfd97 | 5935 | echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6 |
1db8dc4a | 5936 | echo "configure:5937: checking "for --enable-joystick"" >&5 |
f6bcfd97 BP |
5937 | no_cache=0 |
5938 | # Check whether --enable-joystick or --disable-joystick was given. | |
5939 | if test "${enable_joystick+set}" = set; then | |
5940 | enableval="$enable_joystick" | |
5941 | ||
5942 | if test "$enableval" = yes; then | |
5943 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
5944 | else | |
5945 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
5946 | fi | |
5947 | ||
5948 | else | |
5949 | ||
5950 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
5951 | if test "x$LINE" != x ; then | |
5952 | eval "DEFAULT_$LINE" | |
5953 | else | |
5954 | no_cache=1 | |
5955 | fi | |
5956 | ||
5957 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
5958 | ||
5959 | fi | |
5960 | ||
5961 | ||
5962 | eval "$ac_cv_use_joystick" | |
5963 | if test "$no_cache" != 1; then | |
5964 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
5965 | fi | |
5966 | ||
5967 | if test "$wxUSE_JOYSTICK" = yes; then | |
5968 | echo "$ac_t""yes" 1>&6 | |
5969 | else | |
5970 | echo "$ac_t""no" 1>&6 | |
5971 | fi | |
5972 | ||
5973 | ||
10f2d63a VZ |
5974 | |
5975 | ||
5976 | echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6 | |
1db8dc4a | 5977 | echo "configure:5978: checking "for --enable-gif"" >&5 |
10f2d63a VZ |
5978 | no_cache=0 |
5979 | # Check whether --enable-gif or --disable-gif was given. | |
5980 | if test "${enable_gif+set}" = set; then | |
5981 | enableval="$enable_gif" | |
5982 | ||
5983 | if test "$enableval" = yes; then | |
5984 | ac_cv_use_gif='wxUSE_GIF=yes' | |
5985 | else | |
5986 | ac_cv_use_gif='wxUSE_GIF=no' | |
5987 | fi | |
5988 | ||
5989 | else | |
5990 | ||
5991 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
5992 | if test "x$LINE" != x ; then | |
5993 | eval "DEFAULT_$LINE" | |
5994 | else | |
5995 | no_cache=1 | |
5996 | fi | |
5997 | ||
5998 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
5999 | ||
6000 | fi | |
6001 | ||
6002 | ||
6003 | eval "$ac_cv_use_gif" | |
6004 | if test "$no_cache" != 1; then | |
6005 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
6006 | fi | |
6007 | ||
6008 | if test "$wxUSE_GIF" = yes; then | |
6009 | echo "$ac_t""yes" 1>&6 | |
6010 | else | |
6011 | echo "$ac_t""no" 1>&6 | |
6012 | fi | |
6013 | ||
6014 | ||
6015 | echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6 | |
1db8dc4a | 6016 | echo "configure:6017: checking "for --enable-pcx"" >&5 |
10f2d63a VZ |
6017 | no_cache=0 |
6018 | # Check whether --enable-pcx or --disable-pcx was given. | |
6019 | if test "${enable_pcx+set}" = set; then | |
6020 | enableval="$enable_pcx" | |
6021 | ||
6022 | if test "$enableval" = yes; then | |
6023 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
6024 | else | |
6025 | ac_cv_use_pcx='wxUSE_PCX=no' | |
6026 | fi | |
6027 | ||
6028 | else | |
6029 | ||
6030 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
6031 | if test "x$LINE" != x ; then | |
6032 | eval "DEFAULT_$LINE" | |
6033 | else | |
6034 | no_cache=1 | |
6035 | fi | |
6036 | ||
6037 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
6038 | ||
6039 | fi | |
6040 | ||
6041 | ||
6042 | eval "$ac_cv_use_pcx" | |
6043 | if test "$no_cache" != 1; then | |
6044 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
6045 | fi | |
6046 | ||
6047 | if test "$wxUSE_PCX" = yes; then | |
6048 | echo "$ac_t""yes" 1>&6 | |
6049 | else | |
6050 | echo "$ac_t""no" 1>&6 | |
6051 | fi | |
6052 | ||
6053 | ||
6054 | echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6 | |
1db8dc4a | 6055 | echo "configure:6056: checking "for --enable-pnm"" >&5 |
10f2d63a VZ |
6056 | no_cache=0 |
6057 | # Check whether --enable-pnm or --disable-pnm was given. | |
6058 | if test "${enable_pnm+set}" = set; then | |
6059 | enableval="$enable_pnm" | |
6060 | ||
6061 | if test "$enableval" = yes; then | |
6062 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
6063 | else | |
6064 | ac_cv_use_pnm='wxUSE_PNM=no' | |
6065 | fi | |
6066 | ||
6067 | else | |
6068 | ||
6069 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
6070 | if test "x$LINE" != x ; then | |
6071 | eval "DEFAULT_$LINE" | |
6072 | else | |
6073 | no_cache=1 | |
6074 | fi | |
6075 | ||
6076 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
6077 | ||
6078 | fi | |
6079 | ||
6080 | ||
6081 | eval "$ac_cv_use_pnm" | |
6082 | if test "$no_cache" != 1; then | |
6083 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
6084 | fi | |
6085 | ||
6086 | if test "$wxUSE_PNM" = yes; then | |
6087 | echo "$ac_t""yes" 1>&6 | |
6088 | else | |
6089 | echo "$ac_t""no" 1>&6 | |
6090 | fi | |
6091 | ||
6092 | ||
b12915c1 VZ |
6093 | fi |
6094 | ||
10f2d63a VZ |
6095 | |
6096 | echo "saving argument cache $wx_arg_cache_file" | |
6097 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
6098 | ||
6099 | ||
6100 | ||
6101 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
1db8dc4a | 6102 | echo "configure:6103: checking for toolkit" >&5 |
10f2d63a VZ |
6103 | |
6104 | if test "$wxUSE_GUI" = "yes"; then | |
6105 | ||
b12915c1 VZ |
6106 | if test "$USE_BEOS" = 1; then |
6107 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
6108 | fi | |
6109 | ||
10f2d63a VZ |
6110 | if test "$TOOLKIT_GIVEN" = 1; then |
6111 | for toolkit in `echo $ALL_TOOLKITS`; do | |
6112 | var=wxUSE_$toolkit | |
6113 | eval "value=\$${var}" | |
6114 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
6115 | done | |
6116 | else | |
6117 | for toolkit in `echo $ALL_TOOLKITS`; do | |
6118 | if test "$has_toolkit_in_cache" != 1; then | |
6119 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
6120 | else | |
6121 | var=DEFAULT_wxUSE_$toolkit | |
6122 | fi | |
6123 | eval "wxUSE_$toolkit=\$${var}" | |
6124 | done | |
6125 | fi | |
6126 | ||
b4085ce6 | 6127 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` |
cf27ef00 | 6128 | |
ec14dd32 VZ |
6129 | case "${host}" in |
6130 | *-pc-os2_emx ) | |
6131 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
6132 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
6133 | LEX_STEM="lexyy" | |
6134 | ;; | |
6135 | *) | |
6136 | PATH_IFS=':' | |
6137 | LEX_STEM="lex.yy" | |
6138 | ;; | |
6139 | esac | |
10f2d63a VZ |
6140 | |
6141 | case "$NUM_TOOLKITS" in | |
6142 | 1) | |
6143 | ;; | |
6144 | 0) | |
6145 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
6146 | ;; | |
6147 | *) | |
6148 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
6149 | esac | |
6150 | ||
6151 | for toolkit in `echo $ALL_TOOLKITS`; do | |
6152 | var=wxUSE_$toolkit | |
6153 | eval "value=\$${var}" | |
6154 | if test "x$value" != x; then | |
6155 | cache_var=CACHE_$toolkit | |
6156 | eval "cache=\$${cache_var}" | |
6157 | if test "$cache" = 1; then | |
6158 | echo "$var=$value" >> ${wx_arg_cache_file} | |
6159 | fi | |
6160 | if test "$value" = 1; then | |
6161 | echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6 | |
6162 | fi | |
6163 | fi | |
6164 | done | |
6165 | ||
6166 | else | |
cf27ef00 | 6167 | PATH_IFS=':' |
10f2d63a VZ |
6168 | echo "$ac_t""base only" 1>&6 |
6169 | fi | |
6170 | ||
6171 | ||
6172 | cat > confcache <<\EOF | |
6173 | # This file is a shell script that caches the results of configure | |
6174 | # tests run on this system so they can be shared between configure | |
6175 | # scripts and configure runs. It is not useful on other systems. | |
6176 | # If it contains results you don't want to keep, you may remove or edit it. | |
6177 | # | |
6178 | # By default, configure uses ./config.cache as the cache file, | |
6179 | # creating it if it does not exist already. You can give configure | |
6180 | # the --cache-file=FILE option to use a different cache file; that is | |
6181 | # what configure does when it calls configure scripts in | |
6182 | # subdirectories, so they share the cache. | |
6183 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6184 | # config.status only pays attention to the cache file if you give it the | |
6185 | # --recheck option to rerun configure. | |
6186 | # | |
6187 | EOF | |
6188 | # The following way of writing the cache mishandles newlines in values, | |
6189 | # but we know of no workaround that is simple, portable, and efficient. | |
6190 | # So, don't put newlines in cache variables' values. | |
6191 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6192 | # and sets the high bit in the cache file unless we assign to the vars. | |
6193 | (set) 2>&1 | | |
6194 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6195 | *ac_space=\ *) | |
6196 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6197 | # turns \\\\ into \\, and sed turns \\ into \). | |
6198 | sed -n \ | |
6199 | -e "s/'/'\\\\''/g" \ | |
6200 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6201 | ;; | |
6202 | *) | |
6203 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6204 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6205 | ;; | |
6206 | esac >> confcache | |
6207 | if cmp -s $cache_file confcache; then | |
6208 | : | |
6209 | else | |
6210 | if test -w $cache_file; then | |
6211 | echo "updating cache $cache_file" | |
6212 | cat confcache > $cache_file | |
6213 | else | |
6214 | echo "not updating unwritable cache $cache_file" | |
6215 | fi | |
6216 | fi | |
6217 | rm -f confcache | |
6218 | ||
6219 | ||
e59890c3 | 6220 | if test "$build" != "$host" ; then |
10f2d63a VZ |
6221 | CC=$host_alias-gcc |
6222 | CXX=$host_alias-c++ | |
6223 | AR=$host_alias-ar | |
6224 | RANLIB=$host_alias-ranlib | |
6225 | DLLTOOL=$host_alias-dlltool | |
32832908 | 6226 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
6227 | LD=$host_alias-ld |
6228 | NM=$host_alias-nm | |
6229 | STRIP=$host_alias-strip | |
10f2d63a VZ |
6230 | fi |
6231 | ||
6232 | # Extract the first word of "gcc", so it can be a program name with args. | |
6233 | set dummy gcc; ac_word=$2 | |
6234 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1db8dc4a | 6235 | echo "configure:6236: checking for $ac_word" >&5 |
10f2d63a VZ |
6236 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6238 | else | |
6239 | if test -n "$CC"; then | |
6240 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6241 | else | |
6242 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6243 | ac_dummy="$PATH" | |
6244 | for ac_dir in $ac_dummy; do | |
6245 | test -z "$ac_dir" && ac_dir=. | |
6246 | if test -f $ac_dir/$ac_word; then | |
6247 | ac_cv_prog_CC="gcc" | |
6248 | break | |
6249 | fi | |
6250 | done | |
6251 | IFS="$ac_save_ifs" | |
6252 | fi | |
6253 | fi | |
6254 | CC="$ac_cv_prog_CC" | |
6255 | if test -n "$CC"; then | |
6256 | echo "$ac_t""$CC" 1>&6 | |
6257 | else | |
6258 | echo "$ac_t""no" 1>&6 | |
6259 | fi | |
6260 | ||
6261 | if test -z "$CC"; then | |
6262 | # Extract the first word of "cc", so it can be a program name with args. | |
6263 | set dummy cc; ac_word=$2 | |
6264 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1db8dc4a | 6265 | echo "configure:6266: checking for $ac_word" >&5 |
10f2d63a VZ |
6266 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6267 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6268 | else | |
6269 | if test -n "$CC"; then | |
6270 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6271 | else | |
6272 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6273 | ac_prog_rejected=no | |
6274 | ac_dummy="$PATH" | |
6275 | for ac_dir in $ac_dummy; do | |
6276 | test -z "$ac_dir" && ac_dir=. | |
6277 | if test -f $ac_dir/$ac_word; then | |
6278 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
6279 | ac_prog_rejected=yes | |
6280 | continue | |
6281 | fi | |
6282 | ac_cv_prog_CC="cc" | |
6283 | break | |
6284 | fi | |
6285 | done | |
6286 | IFS="$ac_save_ifs" | |
6287 | if test $ac_prog_rejected = yes; then | |
6288 | # We found a bogon in the path, so make sure we never use it. | |
6289 | set dummy $ac_cv_prog_CC | |
6290 | shift | |
6291 | if test $# -gt 0; then | |
6292 | # We chose a different compiler from the bogus one. | |
6293 | # However, it has the same basename, so the bogon will be chosen | |
6294 | # first if we set CC to just the basename; use the full file name. | |
6295 | shift | |
6296 | set dummy "$ac_dir/$ac_word" "$@" | |
6297 | shift | |
6298 | ac_cv_prog_CC="$@" | |
6299 | fi | |
6300 | fi | |
6301 | fi | |
6302 | fi | |
6303 | CC="$ac_cv_prog_CC" | |
6304 | if test -n "$CC"; then | |
6305 | echo "$ac_t""$CC" 1>&6 | |
6306 | else | |
6307 | echo "$ac_t""no" 1>&6 | |
6308 | fi | |
6309 | ||
6310 | if test -z "$CC"; then | |
6311 | case "`uname -s`" in | |
6312 | *win32* | *WIN32*) | |
6313 | # Extract the first word of "cl", so it can be a program name with args. | |
6314 | set dummy cl; ac_word=$2 | |
6315 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1db8dc4a | 6316 | echo "configure:6317: checking for $ac_word" >&5 |
10f2d63a VZ |
6317 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6318 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6319 | else | |
6320 | if test -n "$CC"; then | |
6321 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6322 | else | |
6323 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6324 | ac_dummy="$PATH" | |
6325 | for ac_dir in $ac_dummy; do | |
6326 | test -z "$ac_dir" && ac_dir=. | |
6327 | if test -f $ac_dir/$ac_word; then | |
6328 | ac_cv_prog_CC="cl" | |
6329 | break | |
6330 | fi | |
6331 | done | |
6332 | IFS="$ac_save_ifs" | |
6333 | fi | |
6334 | fi | |
6335 | CC="$ac_cv_prog_CC" | |
6336 | if test -n "$CC"; then | |
6337 | echo "$ac_t""$CC" 1>&6 | |
6338 | else | |
6339 | echo "$ac_t""no" 1>&6 | |
6340 | fi | |
6341 | ;; | |
6342 | esac | |
6343 | fi | |
6344 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
6345 | fi | |
6346 | ||
6347 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
1db8dc4a | 6348 | echo "configure:6349: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6349 | |
6350 | ac_ext=c | |
6351 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6352 | ac_cpp='$CPP $CPPFLAGS' | |
6353 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6354 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6355 | cross_compiling=$ac_cv_prog_cc_cross | |
6356 | ||
6357 | cat > conftest.$ac_ext << EOF | |
6358 | ||
1db8dc4a | 6359 | #line 6360 "configure" |
10f2d63a VZ |
6360 | #include "confdefs.h" |
6361 | ||
6362 | main(){return(0);} | |
6363 | EOF | |
1db8dc4a | 6364 | if { (eval echo configure:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6365 | ac_cv_prog_cc_works=yes |
6366 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6367 | if (./conftest; exit) 2>/dev/null; then | |
6368 | ac_cv_prog_cc_cross=no | |
6369 | else | |
6370 | ac_cv_prog_cc_cross=yes | |
6371 | fi | |
6372 | else | |
6373 | echo "configure: failed program was:" >&5 | |
6374 | cat conftest.$ac_ext >&5 | |
6375 | ac_cv_prog_cc_works=no | |
6376 | fi | |
6377 | rm -fr conftest* | |
6378 | ac_ext=c | |
6379 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6380 | ac_cpp='$CPP $CPPFLAGS' | |
6381 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6382 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6383 | cross_compiling=$ac_cv_prog_cc_cross | |
6384 | ||
6385 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
6386 | if test $ac_cv_prog_cc_works = no; then | |
6387 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
6388 | fi | |
6389 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
1db8dc4a | 6390 | echo "configure:6391: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6391 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
6392 | cross_compiling=$ac_cv_prog_cc_cross | |
6393 | ||
6394 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
1db8dc4a | 6395 | echo "configure:6396: checking whether we are using GNU C" >&5 |
10f2d63a VZ |
6396 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
6397 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6398 | else | |
6399 | cat > conftest.c <<EOF | |
6400 | #ifdef __GNUC__ | |
6401 | yes; | |
6402 | #endif | |
6403 | EOF | |
1db8dc4a | 6404 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6405 | ac_cv_prog_gcc=yes |
6406 | else | |
6407 | ac_cv_prog_gcc=no | |
6408 | fi | |
6409 | fi | |
6410 | ||
6411 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
6412 | ||
6413 | if test $ac_cv_prog_gcc = yes; then | |
6414 | GCC=yes | |
6415 | else | |
6416 | GCC= | |
6417 | fi | |
6418 | ||
6419 | ac_test_CFLAGS="${CFLAGS+set}" | |
6420 | ac_save_CFLAGS="$CFLAGS" | |
6421 | CFLAGS= | |
6422 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
1db8dc4a | 6423 | echo "configure:6424: checking whether ${CC-cc} accepts -g" >&5 |
10f2d63a VZ |
6424 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
6425 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6426 | else | |
6427 | echo 'void f(){}' > conftest.c | |
6428 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
6429 | ac_cv_prog_cc_g=yes | |
6430 | else | |
6431 | ac_cv_prog_cc_g=no | |
6432 | fi | |
6433 | rm -f conftest* | |
6434 | ||
6435 | fi | |
6436 | ||
6437 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
6438 | if test "$ac_test_CFLAGS" = set; then | |
6439 | CFLAGS="$ac_save_CFLAGS" | |
6440 | elif test $ac_cv_prog_cc_g = yes; then | |
6441 | if test "$GCC" = yes; then | |
6442 | CFLAGS="-g -O2" | |
6443 | else | |
6444 | CFLAGS="-g" | |
6445 | fi | |
6446 | else | |
6447 | if test "$GCC" = yes; then | |
6448 | CFLAGS="-O2" | |
6449 | else | |
6450 | CFLAGS= | |
6451 | fi | |
6452 | fi | |
6453 | ||
6454 | ||
6455 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
6456 | ||
6457 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
1db8dc4a | 6458 | echo "configure:6459: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
6459 | # On Suns, sometimes $CPP names a directory. |
6460 | if test -n "$CPP" && test -d "$CPP"; then | |
6461 | CPP= | |
6462 | fi | |
6463 | if test -z "$CPP"; then | |
6464 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
6465 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6466 | else | |
6467 | # This must be in double quotes, not single quotes, because CPP may get | |
6468 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
6469 | CPP="${CC-cc} -E" | |
6470 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6471 | # not just through cpp. | |
6472 | cat > conftest.$ac_ext <<EOF | |
1db8dc4a | 6473 | #line 6474 "configure" |
10f2d63a VZ |
6474 | #include "confdefs.h" |
6475 | #include <assert.h> | |
6476 | Syntax Error | |
6477 | EOF | |
6478 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1db8dc4a | 6479 | { (eval echo configure:6480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6480 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6481 | if test -z "$ac_err"; then | |
6482 | : | |
6483 | else | |
6484 | echo "$ac_err" >&5 | |
6485 | echo "configure: failed program was:" >&5 | |
6486 | cat conftest.$ac_ext >&5 | |
6487 | rm -rf conftest* | |
6488 | CPP="${CC-cc} -E -traditional-cpp" | |
6489 | cat > conftest.$ac_ext <<EOF | |
1db8dc4a | 6490 | #line 6491 "configure" |
10f2d63a VZ |
6491 | #include "confdefs.h" |
6492 | #include <assert.h> | |
6493 | Syntax Error | |
6494 | EOF | |
6495 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1db8dc4a | 6496 | { (eval echo configure:6497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6497 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6498 | if test -z "$ac_err"; then | |
6499 | : | |
6500 | else | |
6501 | echo "$ac_err" >&5 | |
6502 | echo "configure: failed program was:" >&5 | |
6503 | cat conftest.$ac_ext >&5 | |
6504 | rm -rf conftest* | |
6505 | CPP="${CC-cc} -nologo -E" | |
6506 | cat > conftest.$ac_ext <<EOF | |
1db8dc4a | 6507 | #line 6508 "configure" |
10f2d63a VZ |
6508 | #include "confdefs.h" |
6509 | #include <assert.h> | |
6510 | Syntax Error | |
6511 | EOF | |
6512 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1db8dc4a | 6513 | { (eval echo configure:6514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6514 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6515 | if test -z "$ac_err"; then | |
6516 | : | |
6517 | else | |
6518 | echo "$ac_err" >&5 | |
6519 | echo "configure: failed program was:" >&5 | |
6520 | cat conftest.$ac_ext >&5 | |
6521 | rm -rf conftest* | |
6522 | CPP=/lib/cpp | |
6523 | fi | |
6524 | rm -f conftest* | |
6525 | fi | |
6526 | rm -f conftest* | |
6527 | fi | |
6528 | rm -f conftest* | |
6529 | ac_cv_prog_CPP="$CPP" | |
6530 | fi | |
6531 | CPP="$ac_cv_prog_CPP" | |
6532 | else | |
6533 | ac_cv_prog_CPP="$CPP" | |
6534 | fi | |
6535 | echo "$ac_t""$CPP" 1>&6 | |
6536 | ||
6537 | ||
6538 | if test $ac_cv_prog_gcc = yes; then | |
6539 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
1db8dc4a | 6540 | echo "configure:6541: checking whether ${CC-cc} needs -traditional" >&5 |
10f2d63a VZ |
6541 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
6542 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6543 | else | |
6544 | ac_pattern="Autoconf.*'x'" | |
6545 | cat > conftest.$ac_ext <<EOF | |
1db8dc4a | 6546 | #line 6547 "configure" |
10f2d63a VZ |
6547 | #include "confdefs.h" |
6548 | #include <sgtty.h> | |
6549 | Autoconf TIOCGETP | |
6550 | EOF | |
6551 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6552 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6553 | rm -rf conftest* | |
6554 | ac_cv_prog_gcc_traditional=yes | |
6555 | else | |
6556 | rm -rf conftest* | |
6557 | ac_cv_prog_gcc_traditional=no | |
6558 | fi | |
6559 | rm -f conftest* | |
6560 | ||
6561 | ||
6562 | if test $ac_cv_prog_gcc_traditional = no; then | |
6563 | cat > conftest.$ac_ext <<EOF | |
1db8dc4a | 6564 | #line 6565 "configure" |
10f2d63a VZ |
6565 | #include "confdefs.h" |
6566 | #include <termio.h> | |
6567 | Autoconf TCGETA | |
6568 | EOF | |
6569 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6570 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6571 | rm -rf conftest* | |
6572 | ac_cv_prog_gcc_traditional=yes | |
6573 | fi | |
6574 | rm -f conftest* | |
6575 | ||
6576 | fi | |
6577 | fi | |
6578 | ||
6579 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
6580 | if test $ac_cv_prog_gcc_traditional = yes; then | |
6581 | CC="$CC -traditional" | |
6582 | fi | |
6583 | fi | |
6584 | ||
6585 | ||
6586 | ||
6587 | ac_ext=C | |
6588 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6589 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6590 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6591 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6592 | cross_compiling=$ac_cv_prog_cxx_cross | |
6593 | ||
6594 | ||
6595 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
6596 | do | |
6597 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6598 | set dummy $ac_prog; ac_word=$2 | |
6599 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1db8dc4a | 6600 | echo "configure:6601: checking for $ac_word" >&5 |
10f2d63a VZ |
6601 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
6602 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6603 | else | |
6604 | if test -n "$CXX"; then | |
6605 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6606 | else | |
6607 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6608 | ac_dummy="$PATH" | |
6609 | for ac_dir in $ac_dummy; do | |
6610 | test -z "$ac_dir" && ac_dir=. | |
6611 | if test -f $ac_dir/$ac_word; then | |
6612 | ac_cv_prog_CXX="$ac_prog" | |
6613 | break | |
6614 | fi | |
6615 | done | |
6616 | IFS="$ac_save_ifs" | |
6617 | fi | |
6618 | fi | |
6619 | CXX="$ac_cv_prog_CXX" | |
6620 | if test -n "$CXX"; then | |
6621 | echo "$ac_t""$CXX" 1>&6 | |
6622 | else | |
6623 | echo "$ac_t""no" 1>&6 | |
6624 | fi | |
6625 | ||
6626 | test -n "$CXX" && break | |
6627 | done | |
6628 | test -n "$CXX" || CXX="gcc" | |
6629 | ||
6630 | ||
6631 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
1db8dc4a | 6632 | echo "configure:6633: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6633 | |
6634 | ac_ext=C | |
6635 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6636 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6637 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6638 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6639 | cross_compiling=$ac_cv_prog_cxx_cross | |
6640 | ||
6641 | cat > conftest.$ac_ext << EOF | |
6642 | ||
1db8dc4a | 6643 | #line 6644 "configure" |
10f2d63a VZ |
6644 | #include "confdefs.h" |
6645 | ||
6646 | int main(){return(0);} | |
6647 | EOF | |
1db8dc4a | 6648 | if { (eval echo configure:6649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6649 | ac_cv_prog_cxx_works=yes |
6650 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6651 | if (./conftest; exit) 2>/dev/null; then | |
6652 | ac_cv_prog_cxx_cross=no | |
6653 | else | |
6654 | ac_cv_prog_cxx_cross=yes | |
6655 | fi | |
6656 | else | |
6657 | echo "configure: failed program was:" >&5 | |
6658 | cat conftest.$ac_ext >&5 | |
6659 | ac_cv_prog_cxx_works=no | |
6660 | fi | |
6661 | rm -fr conftest* | |
6662 | ac_ext=C | |
6663 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6664 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6665 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6666 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6667 | cross_compiling=$ac_cv_prog_cxx_cross | |
6668 | ||
6669 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
6670 | if test $ac_cv_prog_cxx_works = no; then | |
6671 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
6672 | fi | |
6673 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
1db8dc4a | 6674 | echo "configure:6675: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6675 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
6676 | cross_compiling=$ac_cv_prog_cxx_cross | |
6677 | ||
6678 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
1db8dc4a | 6679 | echo "configure:6680: checking whether we are using GNU C++" >&5 |
10f2d63a VZ |
6680 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
6681 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6682 | else | |
6683 | cat > conftest.C <<EOF | |
6684 | #ifdef __GNUC__ | |
6685 | yes; | |
6686 | #endif | |
6687 | EOF | |
1db8dc4a | 6688 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6689 | ac_cv_prog_gxx=yes |
6690 | else | |
6691 | ac_cv_prog_gxx=no | |
6692 | fi | |
6693 | fi | |
6694 | ||
6695 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
6696 | ||
6697 | if test $ac_cv_prog_gxx = yes; then | |
6698 | GXX=yes | |
6699 | else | |
6700 | GXX= | |
6701 | fi | |
6702 | ||
6703 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
6704 | ac_save_CXXFLAGS="$CXXFLAGS" | |
6705 | CXXFLAGS= | |
6706 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
1db8dc4a | 6707 | echo "configure:6708: checking whether ${CXX-g++} accepts -g" >&5 |
10f2d63a VZ |
6708 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
6709 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6710 | else | |
6711 | echo 'void f(){}' > conftest.cc | |
6712 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
6713 | ac_cv_prog_cxx_g=yes | |
6714 | else | |
6715 | ac_cv_prog_cxx_g=no | |
6716 | fi | |
6717 | rm -f conftest* | |
6718 | ||
6719 | fi | |
6720 | ||
6721 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
6722 | if test "$ac_test_CXXFLAGS" = set; then | |
6723 | CXXFLAGS="$ac_save_CXXFLAGS" | |
6724 | elif test $ac_cv_prog_cxx_g = yes; then | |
6725 | if test "$GXX" = yes; then | |
6726 | CXXFLAGS="-g -O2" | |
6727 | else | |
6728 | CXXFLAGS="-g" | |
6729 | fi | |
6730 | else | |
6731 | if test "$GXX" = yes; then | |
6732 | CXXFLAGS="-O2" | |
6733 | else | |
6734 | CXXFLAGS= | |
6735 | fi | |
6736 | fi | |
6737 | ||
6738 | ||
6739 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
1db8dc4a | 6740 | echo "configure:6741: checking how to run the C++ preprocessor" >&5 |
10f2d63a VZ |
6741 | if test -z "$CXXCPP"; then |
6742 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
6743 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6744 | else | |
6745 | ac_ext=C | |
6746 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6747 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6748 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6749 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6750 | cross_compiling=$ac_cv_prog_cxx_cross | |
6751 | CXXCPP="${CXX-g++} -E" | |
6752 | cat > conftest.$ac_ext <<EOF | |
1db8dc4a | 6753 | #line 6754 "configure" |
10f2d63a VZ |
6754 | #include "confdefs.h" |
6755 | #include <stdlib.h> | |
6756 | EOF | |
6757 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1db8dc4a | 6758 | { (eval echo configure:6759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6759 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6760 | if test -z "$ac_err"; then | |
6761 | : | |
6762 | else | |
6763 | echo "$ac_err" >&5 | |
6764 | echo "configure: failed program was:" >&5 | |
6765 | cat conftest.$ac_ext >&5 | |
6766 | rm -rf conftest* | |
6767 | CXXCPP=/lib/cpp | |
6768 | fi | |
6769 | rm -f conftest* | |
6770 | ac_cv_prog_CXXCPP="$CXXCPP" | |
6771 | ac_ext=C | |
6772 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6773 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6774 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6775 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6776 | cross_compiling=$ac_cv_prog_cxx_cross | |
6777 | fi | |
6778 | fi | |
6779 | CXXCPP="$ac_cv_prog_CXXCPP" | |
6780 | echo "$ac_t""$CXXCPP" 1>&6 | |
6781 | ||
6782 | ||
6783 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
6784 | ||
6785 | ac_ext=c | |
6786 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6787 | ac_cpp='$CPP $CPPFLAGS' | |
6788 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6789 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6790 | cross_compiling=$ac_cv_prog_cc_cross | |
6791 | ||
6792 | ||
6793 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6794 | set dummy ranlib; ac_word=$2 | |
6795 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1db8dc4a | 6796 | echo "configure:6797: checking for $ac_word" >&5 |
10f2d63a VZ |
6797 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
6798 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6799 | else | |
6800 | if test -n "$RANLIB"; then | |
6801 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6802 | else | |
6803 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6804 | ac_dummy="$PATH" | |
6805 | for ac_dir in $ac_dummy; do | |
6806 | test -z "$ac_dir" && ac_dir=. | |
6807 | if test -f $ac_dir/$ac_word; then | |
6808 | ac_cv_prog_RANLIB="ranlib" | |
6809 | break | |
6810 | fi | |
6811 | done | |
6812 | IFS="$ac_save_ifs" | |
6813 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
6814 | fi | |
6815 | fi | |
6816 | RANLIB="$ac_cv_prog_RANLIB" | |
6817 | if test -n "$RANLIB"; then | |
6818 | echo "$ac_t""$RANLIB" 1>&6 | |
6819 | else | |
6820 | echo "$ac_t""no" 1>&6 | |
6821 | fi | |
6822 | ||
6823 | ||
6824 | # Extract the first word of "ar", so it can be a program name with args. | |
6825 | set dummy ar; ac_word=$2 | |
6826 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1db8dc4a | 6827 | echo "configure:6828: checking for $ac_word" >&5 |
10f2d63a VZ |
6828 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
6829 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6830 | else | |
6831 | if test -n "$AR"; then | |
6832 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6833 | else | |
6834 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6835 | ac_dummy="$PATH" | |
6836 | for ac_dir in $ac_dummy; do | |
6837 | test -z "$ac_dir" && ac_dir=. | |
6838 | if test -f $ac_dir/$ac_word; then | |
6839 | ac_cv_prog_AR="ar" | |
6840 | break | |
6841 | fi | |
6842 | done | |
6843 | IFS="$ac_save_ifs" | |
6844 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
6845 | fi | |
6846 | fi | |
6847 | AR="$ac_cv_prog_AR" | |
6848 | if test -n "$AR"; then | |
6849 | echo "$ac_t""$AR" 1>&6 | |
6850 | else | |
6851 | echo "$ac_t""no" 1>&6 | |
6852 | fi | |
6853 | ||
6854 | ||
6855 | # Find a good install program. We prefer a C program (faster), | |
6856 | # so one script is as good as another. But avoid the broken or | |
6857 | # incompatible versions: | |
6858 | # SysV /etc/install, /usr/sbin/install | |
6859 | # SunOS /usr/etc/install | |
6860 | # IRIX /sbin/install | |
6861 | # AIX /bin/install | |
6862 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6863 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6864 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6865 | # ./install, which can be erroneously created by make from ./install.sh. | |
6866 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
1db8dc4a | 6867 | echo "configure:6868: checking for a BSD compatible install" >&5 |
10f2d63a VZ |
6868 | if test -z "$INSTALL"; then |
6869 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
6870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6871 | else | |
6872 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
6873 | for ac_dir in $PATH; do | |
6874 | # Account for people who put trailing slashes in PATH elements. | |
6875 | case "$ac_dir/" in | |
6876 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
6877 | *) | |
6878 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6879 | # Don't use installbsd from OSF since it installs stuff as root | |
6880 | # by default. | |
6881 | for ac_prog in ginstall scoinst install; do | |
6882 | if test -f $ac_dir/$ac_prog; then | |
6883 | if test $ac_prog = install && | |
6884 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
6885 | # AIX install. It has an incompatible calling convention. | |
6886 | : | |
6887 | else | |
6888 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6889 | break 2 | |
6890 | fi | |
6891 | fi | |
6892 | done | |
6893 | ;; | |
6894 | esac | |
6895 | done | |
6896 | IFS="$ac_save_IFS" | |
6897 | ||
6898 | fi | |
6899 | if test "${ac_cv_path_install+set}" = set; then | |
6900 | INSTALL="$ac_cv_path_install" | |
6901 | else | |
6902 | # As a last resort, use the slow shell script. We don't cache a | |
6903 | # path for INSTALL within a source directory, because that will | |
6904 | # break other packages using the cache if that directory is | |
6905 | # removed, or if the path is relative. | |
6906 | INSTALL="$ac_install_sh" | |
6907 | fi | |
6908 | fi | |
6909 | echo "$ac_t""$INSTALL" 1>&6 | |
6910 | ||
6911 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6912 | # It thinks the first close brace ends the variable substitution. | |
6913 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6914 | ||
6915 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
6916 | ||
6917 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6918 | ||
6919 | ||
6920 | # Extract the first word of "strip", so it can be a program name with args. | |
6921 | set dummy strip; ac_word=$2 | |
6922 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1db8dc4a | 6923 | echo "configure:6924: checking for $ac_word" >&5 |
10f2d63a VZ |
6924 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
6925 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6926 | else | |
6927 | if test -n "$STRIP"; then | |
6928 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6929 | else | |
6930 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6931 | ac_dummy="$PATH" | |
6932 | for ac_dir in $ac_dummy; do | |
6933 | test -z "$ac_dir" && ac_dir=. | |
6934 | if test -f $ac_dir/$ac_word; then | |
6935 | ac_cv_prog_STRIP="strip" | |
6936 | break | |
6937 | fi | |
6938 | done | |
6939 | IFS="$ac_save_ifs" | |
6940 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
6941 | fi | |
6942 | fi | |
6943 | STRIP="$ac_cv_prog_STRIP" | |
6944 | if test -n "$STRIP"; then | |
6945 | echo "$ac_t""$STRIP" 1>&6 | |
6946 | else | |
6947 | echo "$ac_t""no" 1>&6 | |
6948 | fi | |
6949 | ||
6950 | ||
6951 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
1db8dc4a | 6952 | echo "configure:6953: checking "make for VPATH support"" >&5 |
10f2d63a VZ |
6953 | cat - << EOF > confMake |
6954 | check : file | |
6955 | cp \$? \$@ | |
6956 | cp \$? final_file | |
6957 | EOF | |
6958 | ||
6959 | if test ! -d sub ; then | |
6960 | mkdir sub | |
6961 | fi | |
6962 | echo dummy > sub/file | |
f6bcfd97 | 6963 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
6964 | RESULT=$? |
6965 | rm -f sub/file check final_file confMake | |
6966 | rmdir sub | |
6967 | if test "$RESULT" = 0; then | |
6968 | echo "$ac_t""yes" 1>&6 | |
6969 | else | |
6970 | echo "$ac_t""no" 1>&6 | |
6971 | { echo "configure: error: You need a make-utility that is able to use the variable | |
6972 | VPATH correctly. | |
6973 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
6974 | fi | |
6975 | ||
6976 | for ac_prog in 'bison -y' byacc | |
6977 | do | |
6978 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6979 | set dummy $ac_prog; ac_word=$2 | |
6980 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1db8dc4a | 6981 | echo "configure:6982: checking for $ac_word" >&5 |
10f2d63a VZ |
6982 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
6983 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6984 | else | |
6985 | if test -n "$YACC"; then | |
6986 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6987 | else | |
6988 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6989 | ac_dummy="$PATH" | |
6990 | for ac_dir in $ac_dummy; do | |
6991 | test -z "$ac_dir" && ac_dir=. | |
6992 | if test -f $ac_dir/$ac_word; then | |
6993 | ac_cv_prog_YACC="$ac_prog" | |
6994 | break | |
6995 | fi | |
6996 | done | |
6997 | IFS="$ac_save_ifs" | |
6998 | fi | |
6999 | fi | |
7000 | YACC="$ac_cv_prog_YACC" | |
7001 | if test -n "$YACC"; then | |
7002 | echo "$ac_t""$YACC" 1>&6 | |
7003 | else | |
7004 | echo "$ac_t""no" 1>&6 | |
7005 | fi | |
7006 | ||
7007 | test -n "$YACC" && break | |
7008 | done | |
7009 | test -n "$YACC" || YACC="yacc" | |
7010 | ||
7011 | ||
7012 | # Extract the first word of "flex", so it can be a program name with args. | |
7013 | set dummy flex; ac_word=$2 | |
7014 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1db8dc4a | 7015 | echo "configure:7016: checking for $ac_word" >&5 |
10f2d63a VZ |
7016 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
7017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7018 | else | |
7019 | if test -n "$LEX"; then | |
7020 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7021 | else | |
7022 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7023 | ac_dummy="$PATH" | |
7024 | for ac_dir in $ac_dummy; do | |
7025 | test -z "$ac_dir" && ac_dir=. | |
7026 | if test -f $ac_dir/$ac_word; then | |
7027 | ac_cv_prog_LEX="flex" | |
7028 | break | |
7029 | fi | |
7030 | done | |
7031 | IFS="$ac_save_ifs" | |
7032 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
7033 | fi | |
7034 | fi | |
7035 | LEX="$ac_cv_prog_LEX" | |
7036 | if test -n "$LEX"; then | |
7037 | echo "$ac_t""$LEX" 1>&6 | |
7038 | else | |
7039 | echo "$ac_t""no" 1>&6 | |
7040 | fi | |
7041 | ||
7042 | if test -z "$LEXLIB" | |
7043 | then | |
7044 | case "$LEX" in | |
7045 | flex*) ac_lib=fl ;; | |
7046 | *) ac_lib=l ;; | |
7047 | esac | |
7048 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
1db8dc4a | 7049 | echo "configure:7050: checking for yywrap in -l$ac_lib" >&5 |
10f2d63a VZ |
7050 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
7051 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7052 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7053 | else | |
7054 | ac_save_LIBS="$LIBS" | |
7055 | LIBS="-l$ac_lib $LIBS" | |
7056 | cat > conftest.$ac_ext <<EOF | |
1db8dc4a | 7057 | #line 7058 "configure" |
10f2d63a VZ |
7058 | #include "confdefs.h" |
7059 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7060 | /* We use char because int might match the return type of a gcc2 | |
7061 | builtin and then its argument prototype would still apply. */ | |
7062 | char yywrap(); | |
7063 | ||
7064 | int main() { | |
7065 | yywrap() | |
7066 | ; return 0; } | |
7067 | EOF | |
1db8dc4a | 7068 | if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
7069 | rm -rf conftest* |
7070 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7071 | else | |
7072 | echo "configure: failed program was:" >&5 | |
7073 | cat conftest.$ac_ext >&5 | |
7074 | rm -rf conftest* | |
7075 | eval "ac_cv_lib_$ac_lib_var=no" | |
7076 | fi | |
7077 | rm -f conftest* | |
7078 | LIBS="$ac_save_LIBS" | |
7079 | ||
7080 | fi | |
7081 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7082 | echo "$ac_t""yes" 1>&6 | |
7083 | LEXLIB="-l$ac_lib" | |
7084 | else | |
7085 | echo "$ac_t""no" 1>&6 | |
7086 | fi | |
7087 | ||
7088 | fi | |
7089 | ||
7090 | ||
7091 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
1db8dc4a | 7092 | echo "configure:7093: checking whether ln -s works" >&5 |
10f2d63a VZ |
7093 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
7094 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7095 | else | |
7096 | rm -f conftestdata | |
7097 | if ln -s X conftestdata 2>/dev/null | |
7098 | then | |
7099 | rm -f conftestdata | |
7100 | ac_cv_prog_LN_S="ln -s" | |
7101 | else | |
7102 | ac_cv_prog_LN_S=ln | |
7103 | fi | |
7104 | fi | |
7105 | LN_S="$ac_cv_prog_LN_S" | |
7106 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
7107 | echo "$ac_t""yes" 1>&6 | |
7108 | else | |
7109 | echo "$ac_t""no" 1>&6 | |
7110 | fi | |
7111 | ||
7112 | ||
7113 | ||
7114 | SEARCH_INCLUDE="\ | |
7115 | /usr/local/include \ | |
7116 | \ | |
7117 | /usr/Motif-1.2/include \ | |
7118 | /usr/Motif-2.1/include \ | |
7119 | \ | |
7120 | /usr/include/Motif1.2 \ | |
7121 | /opt/xpm/include/X11 \ | |
7122 | /opt/GBxpm/include/ \ | |
7123 | /opt/GBxpm/X11/include/ \ | |
7124 | \ | |
7125 | /usr/Motif1.2/include \ | |
7126 | /usr/dt/include \ | |
afc31813 VZ |
7127 | /usr/openwin/include \ |
7128 | \ | |
10f2d63a VZ |
7129 | /usr/include/Xm \ |
7130 | \ | |
7131 | /usr/X11R6/include \ | |
afc31813 | 7132 | /usr/X11R6.4/include \ |
10f2d63a VZ |
7133 | /usr/X11R5/include \ |
7134 | /usr/X11R4/include \ | |
7135 | \ | |
10f2d63a VZ |
7136 | /usr/include/X11R6 \ |
7137 | /usr/include/X11R5 \ | |
7138 | /usr/include/X11R4 \ | |
7139 | \ | |
7140 | /usr/local/X11R6/include \ | |
7141 | /usr/local/X11R5/include \ | |
7142 | /usr/local/X11R4/include \ | |
7143 | \ | |
7144 | /usr/local/include/X11R6 \ | |
7145 | /usr/local/include/X11R5 \ | |
7146 | /usr/local/include/X11R4 \ | |
7147 | \ | |
7148 | /usr/X11/include \ | |
7149 | /usr/include/X11 \ | |
7150 | /usr/local/X11/include \ | |
7151 | /usr/local/include/X11 \ | |
7152 | \ | |
7153 | /usr/X386/include \ | |
7154 | /usr/x386/include \ | |
7155 | /usr/XFree86/include/X11 \ | |
7156 | \ | |
cf27ef00 | 7157 | X:/XFree86/include \ |
ec14dd32 VZ |
7158 | X:/XFree86/include/X11 \ |
7159 | \ | |
10f2d63a VZ |
7160 | /usr/include/gtk \ |
7161 | /usr/local/include/gtk \ | |
7162 | /usr/include/glib \ | |
7163 | /usr/local/include/glib \ | |
7164 | \ | |
7165 | /usr/include/qt \ | |
7166 | /usr/local/include/qt \ | |
7167 | \ | |
7168 | /usr/include/windows \ | |
7169 | /usr/include/wine \ | |
7170 | /usr/local/include/wine \ | |
7171 | \ | |
7172 | /usr/unsupported/include \ | |
7173 | /usr/athena/include \ | |
7174 | /usr/local/x11r5/include \ | |
7175 | /usr/lpp/Xamples/include \ | |
7176 | \ | |
10f2d63a | 7177 | /usr/openwin/share/include \ |
928b5c08 VZ |
7178 | \ |
7179 | /usr/include" | |
10f2d63a VZ |
7180 | |
7181 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
7182 | ||
7183 | ||
7184 | cat > confcache <<\EOF | |
7185 | # This file is a shell script that caches the results of configure | |
7186 | # tests run on this system so they can be shared between configure | |
7187 | # scripts and configure runs. It is not useful on other systems. | |
7188 | # If it contains results you don't want to keep, you may remove or edit it. | |
7189 | # | |
7190 | # By default, configure uses ./config.cache as the cache file, | |
7191 | # creating it if it does not exist already. You can give configure | |
7192 | # the --cache-file=FILE option to use a different cache file; that is | |
7193 | # what configure does when it calls configure scripts in | |
7194 | # subdirectories, so they share the cache. | |
7195 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7196 | # config.status only pays attention to the cache file if you give it the | |
7197 | # --recheck option to rerun configure. | |
7198 | # | |
7199 | EOF | |
7200 | # The following way of writing the cache mishandles newlines in values, | |
7201 | # but we know of no workaround that is simple, portable, and efficient. | |
7202 | # So, don't put newlines in cache variables' values. | |
7203 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7204 | # and sets the high bit in the cache file unless we assign to the vars. | |
7205 | (set) 2>&1 | | |
7206 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7207 | *ac_space=\ *) | |
7208 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7209 | # turns \\\\ into \\, and sed turns \\ into \). | |
7210 | sed -n \ | |
7211 | -e "s/'/'\\\\''/g" \ | |
7212 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7213 | ;; | |
7214 | *) | |
7215 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7216 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7217 | ;; | |
7218 | esac >> confcache | |
7219 | if cmp -s $cache_file confcache; then | |
7220 | : | |
7221 | else | |
7222 | if test -w $cache_file; then | |
7223 | echo "updating cache $cache_file" | |
7224 | cat confcache > $cache_file | |
7225 | else | |
7226 | echo "not updating unwritable cache $cache_file" | |
7227 | fi | |
7228 | fi | |
7229 | rm -f confcache | |
7230 | ||
7231 | ||
7232 | ||
dad6c0ea VZ |
7233 | AFMINSTALL= |
7234 | ||
10f2d63a VZ |
7235 | if test "$wxUSE_GUI" = "yes"; then |
7236 | ||
dad6c0ea VZ |
7237 | USE_GUI=1 |
7238 | ||
10f2d63a VZ |
7239 | TOOLKIT= |
7240 | TOOLKIT_INCLUDE= | |
7241 | ||
10f2d63a VZ |
7242 | GUI_TK_LIBRARY= |
7243 | GUI_TK_LINK= | |
7244 | ||
7245 | WXGTK12= | |
f6bcfd97 | 7246 | WXGTK127= |
6f72b082 | 7247 | WXGTK20= |
10f2d63a VZ |
7248 | |
7249 | WXWINE= | |
7250 | ||
10f2d63a VZ |
7251 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
7252 | if test "$cross_compiling" = "yes" ; then | |
e59890c3 | 7253 | echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2 |
10f2d63a VZ |
7254 | else |
7255 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
9ad43c8b | 7256 | echo "configure:7257: checking for Windows headers" >&5 |
10f2d63a VZ |
7257 | |
7258 | ac_find_includes= | |
7259 | for ac_dir in $SEARCH_INCLUDE; | |
7260 | do | |
7261 | if test -f "$ac_dir/windows.h"; then | |
7262 | ac_find_includes=$ac_dir | |
7263 | break | |
7264 | fi | |
7265 | done | |
7266 | ||
7267 | if test "$ac_find_includes" != "" ; then | |
7268 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7269 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
7270 | else | |
7271 | echo "$ac_t""no" 1>&6 | |
7272 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
7273 | fi | |
7274 | fi | |
7275 | ||
7276 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
7277 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
7278 | ||
f6bcfd97 BP |
7279 | if test "$wxUSE_ODBC" = "yes" ; then |
7280 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
7281 | fi | |
7282 | ||
10f2d63a VZ |
7283 | if test "$wxUSE_MINGW" = 1; then |
7284 | LDFLAGS="$LDFLAGS -mwindows" | |
7285 | fi | |
7286 | ||
7287 | TOOLKIT=MSW | |
10f2d63a | 7288 | GUIDIST=MSW_DIST |
32832908 VZ |
7289 | |
7290 | RCINCSWITCH="--include-dir" | |
7291 | RCDEFSWITCH="--define" | |
7292 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
7293 | RCINPUTSWITCH="-i" | |
7294 | RCOUTPUTSWITCH="-o" | |
7295 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
7296 | ||
7297 | RESPROGRAM="\$(RES_PROGRAM)" | |
7298 | ||
10f2d63a VZ |
7299 | fi |
7300 | ||
7301 | if test "$wxUSE_GTK" = 1; then | |
6f72b082 OK |
7302 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
7303 | if test "${with_gtk_prefix+set}" = set; then | |
7304 | withval="$with_gtk_prefix" | |
7305 | gtk_config_prefix="$withval" | |
7306 | else | |
7307 | gtk_config_prefix="" | |
7308 | fi | |
7309 | ||
7310 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
7311 | if test "${with_gtk_exec_prefix+set}" = set; then | |
7312 | withval="$with_gtk_exec_prefix" | |
7313 | gtk_config_exec_prefix="$withval" | |
7314 | else | |
7315 | gtk_config_exec_prefix="" | |
7316 | fi | |
7317 | ||
7318 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
7319 | if test "${enable_gtktest+set}" = set; then | |
7320 | enableval="$enable_gtktest" | |
7321 | : | |
7322 | else | |
7323 | enable_gtktest=yes | |
7324 | fi | |
7325 | ||
7326 | ||
7327 | for module in . gthread | |
7328 | do | |
7329 | case "$module" in | |
7330 | gthread) | |
7331 | gtk_config_args="$gtk_config_args gthread" | |
7332 | ;; | |
7333 | esac | |
7334 | done | |
7335 | ||
7336 | if test x$gtk_config_exec_prefix != x ; then | |
7337 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7338 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
7339 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
7340 | fi | |
7341 | fi | |
7342 | if test x$gtk_config_prefix != x ; then | |
7343 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7344 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
7345 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
7346 | fi | |
7347 | fi | |
7348 | ||
7349 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
7350 | set dummy gtk-config-2.0; ac_word=$2 | |
7351 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9ad43c8b | 7352 | echo "configure:7353: checking for $ac_word" >&5 |
6f72b082 OK |
7353 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
7354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7355 | else | |
7356 | case "$GTK_CONFIG_2_0" in | |
7357 | /*) | |
7358 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. | |
7359 | ;; | |
7360 | ?:/*) | |
7361 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
7362 | ;; | |
7363 | *) | |
7364 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7365 | ac_dummy="$PATH" | |
7366 | for ac_dir in $ac_dummy; do | |
7367 | test -z "$ac_dir" && ac_dir=. | |
7368 | if test -f $ac_dir/$ac_word; then | |
7369 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
7370 | break | |
7371 | fi | |
7372 | done | |
7373 | IFS="$ac_save_ifs" | |
7374 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" | |
7375 | ;; | |
7376 | esac | |
7377 | fi | |
7378 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" | |
7379 | if test -n "$GTK_CONFIG_2_0"; then | |
7380 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 | |
7381 | else | |
7382 | echo "$ac_t""no" 1>&6 | |
7383 | fi | |
7384 | ||
7385 | min_gtk_version=1.3.1 | |
7386 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
9ad43c8b | 7387 | echo "configure:7388: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
7388 | no_gtk="" |
7389 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
7390 | no_gtk=yes | |
7391 | else | |
7392 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
7393 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
7394 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
7395 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
7396 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
7397 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
7398 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
7399 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
7400 | if test "x$enable_gtktest" = "xyes" ; then | |
7401 | ac_save_CFLAGS="$CFLAGS" | |
7402 | ac_save_LIBS="$LIBS" | |
7403 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7404 | LIBS="$GTK_LIBS $LIBS" | |
7405 | rm -f conf.gtktest | |
7406 | if test "$cross_compiling" = yes; then | |
7407 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7408 | else | |
7409 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 7410 | #line 7411 "configure" |
6f72b082 OK |
7411 | #include "confdefs.h" |
7412 | ||
7413 | #include <gtk/gtk.h> | |
7414 | #include <stdio.h> | |
7415 | #include <stdlib.h> | |
7416 | ||
7417 | int | |
7418 | main () | |
7419 | { | |
7420 | int major, minor, micro; | |
7421 | char *tmp_version; | |
7422 | ||
7423 | system ("touch conf.gtktest"); | |
7424 | ||
7425 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
7426 | tmp_version = g_strdup("$min_gtk_version"); | |
7427 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
7428 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7429 | exit(1); | |
7430 | } | |
7431 | ||
7432 | if ((gtk_major_version != $gtk_config_major_version) || | |
7433 | (gtk_minor_version != $gtk_config_minor_version) || | |
7434 | (gtk_micro_version != $gtk_config_micro_version)) | |
7435 | { | |
7436 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
7437 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
7438 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
7439 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
7440 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
7441 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
7442 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
7443 | printf("*** required on your system.\n"); | |
7444 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
7445 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
7446 | printf("*** before re-running configure\n"); | |
7447 | } | |
7448 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
7449 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
7450 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
7451 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
7452 | { | |
7453 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
7454 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
7455 | printf("*** library (version %d.%d.%d)\n", | |
7456 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
7457 | } | |
7458 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
7459 | else | |
7460 | { | |
7461 | if ((gtk_major_version > major) || | |
7462 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7463 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
7464 | { | |
7465 | return 0; | |
7466 | } | |
7467 | else | |
7468 | { | |
7469 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
7470 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
7471 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
7472 | major, minor, micro); | |
7473 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
7474 | printf("***\n"); | |
7475 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
7476 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
7477 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
7478 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
7479 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
7480 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
7481 | printf("*** so that the correct libraries are found at run-time))\n"); | |
7482 | } | |
7483 | } | |
7484 | return 1; | |
7485 | } | |
7486 | ||
7487 | EOF | |
9ad43c8b | 7488 | if { (eval echo configure:7489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6f72b082 OK |
7489 | then |
7490 | : | |
7491 | else | |
7492 | echo "configure: failed program was:" >&5 | |
7493 | cat conftest.$ac_ext >&5 | |
7494 | rm -fr conftest* | |
7495 | no_gtk=yes | |
7496 | fi | |
7497 | rm -fr conftest* | |
7498 | fi | |
7499 | ||
7500 | CFLAGS="$ac_save_CFLAGS" | |
7501 | LIBS="$ac_save_LIBS" | |
7502 | fi | |
7503 | fi | |
7504 | if test "x$no_gtk" = x ; then | |
7505 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 | |
7506 | WXGTK20=1 | |
7507 | else | |
7508 | echo "$ac_t""no" 1>&6 | |
7509 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
7510 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
7511 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
7512 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
7513 | echo "*** full path to gtk-config-2.0." | |
7514 | else | |
7515 | if test -f conf.gtktest ; then | |
7516 | : | |
7517 | else | |
7518 | echo "*** Could not run GTK test program, checking why..." | |
7519 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7520 | LIBS="$LIBS $GTK_LIBS" | |
7521 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 7522 | #line 7523 "configure" |
6f72b082 OK |
7523 | #include "confdefs.h" |
7524 | ||
7525 | #include <gtk/gtk.h> | |
7526 | #include <stdio.h> | |
7527 | ||
7528 | int main() { | |
7529 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
7530 | ; return 0; } | |
7531 | EOF | |
9ad43c8b | 7532 | if { (eval echo configure:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6f72b082 OK |
7533 | rm -rf conftest* |
7534 | echo "*** The test program compiled, but did not run. This usually means" | |
7535 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
7536 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
7537 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
7538 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
7539 | echo "*** is required on your system" | |
7540 | echo "***" | |
7541 | echo "*** If you have an old version installed, it is best to remove it, although" | |
7542 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
7543 | echo "***" | |
7544 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
7545 | echo "*** came with the system with the command" | |
7546 | echo "***" | |
7547 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
7548 | else | |
7549 | echo "configure: failed program was:" >&5 | |
7550 | cat conftest.$ac_ext >&5 | |
7551 | rm -rf conftest* | |
7552 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
7553 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
7554 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
7555 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" | |
7556 | fi | |
7557 | rm -f conftest* | |
7558 | CFLAGS="$ac_save_CFLAGS" | |
7559 | LIBS="$ac_save_LIBS" | |
7560 | fi | |
7561 | fi | |
7562 | GTK_CFLAGS="" | |
7563 | GTK_LIBS="" | |
7564 | ||
7565 | ||
10f2d63a VZ |
7566 | if test x$gtk_config_exec_prefix != x ; then |
7567 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7568 | if test x${GTK_CONFIG+set} != xset ; then | |
7569 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
7570 | fi | |
7571 | fi | |
7572 | if test x$gtk_config_prefix != x ; then | |
7573 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7574 | if test x${GTK_CONFIG+set} != xset ; then | |
7575 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
7576 | fi | |
7577 | fi | |
7578 | ||
7579 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
7580 | set dummy gtk-config; ac_word=$2 | |
7581 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9ad43c8b | 7582 | echo "configure:7583: checking for $ac_word" >&5 |
f6bcfd97 BP |
7583 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
7584 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7585 | else | |
7586 | case "$GTK_CONFIG" in | |
7587 | /*) | |
7588 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
7589 | ;; | |
7590 | ?:/*) | |
7591 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
7592 | ;; | |
7593 | *) | |
7594 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7595 | ac_dummy="$PATH" | |
7596 | for ac_dir in $ac_dummy; do | |
7597 | test -z "$ac_dir" && ac_dir=. | |
7598 | if test -f $ac_dir/$ac_word; then | |
7599 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
7600 | break | |
7601 | fi | |
7602 | done | |
7603 | IFS="$ac_save_ifs" | |
7604 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
7605 | ;; | |
7606 | esac | |
7607 | fi | |
7608 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
7609 | if test -n "$GTK_CONFIG"; then | |
7610 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
7611 | else | |
7612 | echo "$ac_t""no" 1>&6 | |
7613 | fi | |
7614 | ||
7615 | min_gtk_version=1.2.7 | |
7616 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
9ad43c8b | 7617 | echo "configure:7618: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
7618 | no_gtk="" |
7619 | if test "$GTK_CONFIG" != "no" ; then | |
7620 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
7621 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
7622 | ac_save_CFLAGS="$CFLAGS" | |
7623 | ac_save_LIBS="$LIBS" | |
7624 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7625 | LIBS="$LIBS $GTK_LIBS" | |
7626 | if test "$cross_compiling" = yes; then | |
7627 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7628 | else | |
7629 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 7630 | #line 7631 "configure" |
f6bcfd97 BP |
7631 | #include "confdefs.h" |
7632 | ||
7633 | #include <gtk/gtk.h> | |
7634 | #include <gtk/gtkfeatures.h> | |
7635 | #include <stdio.h> | |
7636 | #include <stdlib.h> | |
7637 | ||
7638 | int | |
7639 | main () | |
7640 | { | |
7641 | int major, minor, micro; | |
7642 | ||
7643 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
7644 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7645 | exit(1); | |
7646 | } | |
7647 | ||
7648 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
7649 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
7650 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
7651 | printf("Headers vs. library version mismatch!\n"); | |
7652 | exit(1); | |
7653 | } | |
7654 | ||
7655 | if (gtk_minor_version == 1) return FALSE; | |
7656 | ||
7657 | return !((gtk_major_version > major) || | |
7658 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7659 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
7660 | } | |
7661 | ||
7662 | EOF | |
9ad43c8b | 7663 | if { (eval echo configure:7664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
f6bcfd97 BP |
7664 | then |
7665 | : | |
7666 | else | |
7667 | echo "configure: failed program was:" >&5 | |
7668 | cat conftest.$ac_ext >&5 | |
7669 | rm -fr conftest* | |
7670 | no_gtk=yes | |
7671 | fi | |
7672 | rm -fr conftest* | |
7673 | fi | |
7674 | ||
7675 | CFLAGS="$ac_save_CFLAGS" | |
7676 | LIBS="$ac_save_LIBS" | |
7677 | else | |
7678 | no_gtk=yes | |
7679 | fi | |
7680 | if test "x$no_gtk" = x ; then | |
7681 | echo "$ac_t""yes" 1>&6 | |
7682 | WXGTK127=1 | |
7683 | else | |
7684 | echo "$ac_t""no" 1>&6 | |
7685 | GTK_CFLAGS="" | |
7686 | GTK_LIBS="" | |
7687 | : | |
7688 | fi | |
7689 | ||
7690 | ||
7691 | ||
6f72b082 | 7692 | |
f6bcfd97 BP |
7693 | if test x$gtk_config_exec_prefix != x ; then |
7694 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7695 | if test x${GTK_CONFIG+set} != xset ; then | |
7696 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
7697 | fi | |
7698 | fi | |
7699 | if test x$gtk_config_prefix != x ; then | |
7700 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7701 | if test x${GTK_CONFIG+set} != xset ; then | |
7702 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
7703 | fi | |
7704 | fi | |
7705 | ||
7706 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
7707 | set dummy gtk-config; ac_word=$2 | |
7708 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9ad43c8b | 7709 | echo "configure:7710: checking for $ac_word" >&5 |
10f2d63a VZ |
7710 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
7711 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7712 | else | |
7713 | case "$GTK_CONFIG" in | |
7714 | /*) | |
7715 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
7716 | ;; | |
7717 | ?:/*) | |
7718 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
7719 | ;; | |
7720 | *) | |
7721 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7722 | ac_dummy="$PATH" | |
7723 | for ac_dir in $ac_dummy; do | |
7724 | test -z "$ac_dir" && ac_dir=. | |
7725 | if test -f $ac_dir/$ac_word; then | |
7726 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
7727 | break | |
7728 | fi | |
7729 | done | |
7730 | IFS="$ac_save_ifs" | |
7731 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
7732 | ;; | |
7733 | esac | |
7734 | fi | |
7735 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
7736 | if test -n "$GTK_CONFIG"; then | |
7737 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
7738 | else | |
7739 | echo "$ac_t""no" 1>&6 | |
7740 | fi | |
7741 | ||
04165bec | 7742 | min_gtk_version=1.2.3 |
10f2d63a | 7743 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
9ad43c8b | 7744 | echo "configure:7745: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
7745 | no_gtk="" |
7746 | if test "$GTK_CONFIG" != "no" ; then | |
7747 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 7748 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
7749 | ac_save_CFLAGS="$CFLAGS" |
7750 | ac_save_LIBS="$LIBS" | |
7751 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7752 | LIBS="$LIBS $GTK_LIBS" | |
7753 | if test "$cross_compiling" = yes; then | |
7754 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7755 | else | |
7756 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 7757 | #line 7758 "configure" |
10f2d63a VZ |
7758 | #include "confdefs.h" |
7759 | ||
7760 | #include <gtk/gtk.h> | |
f49f2b0c | 7761 | #include <gtk/gtkfeatures.h> |
10f2d63a | 7762 | #include <stdio.h> |
32832908 | 7763 | #include <stdlib.h> |
10f2d63a VZ |
7764 | |
7765 | int | |
7766 | main () | |
7767 | { | |
7768 | int major, minor, micro; | |
7769 | ||
7770 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
7771 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7772 | exit(1); | |
7773 | } | |
7774 | ||
f49f2b0c RR |
7775 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
7776 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
7777 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
7778 | printf("Headers vs. library version mismatch!\n"); | |
7779 | exit(1); | |
7780 | } | |
7781 | ||
10f2d63a VZ |
7782 | if (gtk_minor_version == 1) return FALSE; |
7783 | ||
7784 | return !((gtk_major_version > major) || | |
7785 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7786 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
7787 | } | |
7788 | ||
7789 | EOF | |
9ad43c8b | 7790 | if { (eval echo configure:7791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
7791 | then |
7792 | : | |
7793 | else | |
7794 | echo "configure: failed program was:" >&5 | |
7795 | cat conftest.$ac_ext >&5 | |
7796 | rm -fr conftest* | |
7797 | no_gtk=yes | |
7798 | fi | |
7799 | rm -fr conftest* | |
7800 | fi | |
7801 | ||
7802 | CFLAGS="$ac_save_CFLAGS" | |
7803 | LIBS="$ac_save_LIBS" | |
7804 | else | |
7805 | no_gtk=yes | |
7806 | fi | |
7807 | if test "x$no_gtk" = x ; then | |
7808 | echo "$ac_t""yes" 1>&6 | |
7809 | WXGTK12=1 | |
7810 | else | |
7811 | echo "$ac_t""no" 1>&6 | |
7812 | GTK_CFLAGS="" | |
7813 | GTK_LIBS="" | |
7e99ad86 | 7814 | : |
10f2d63a VZ |
7815 | fi |
7816 | ||
7817 | ||
7818 | ||
6f72b082 OK |
7819 | |
7820 | fi | |
7821 | ||
7822 | ||
7823 | rm -f conf.gtktest | |
7824 | ||
10f2d63a | 7825 | |
6f72b082 | 7826 | if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then |
7e99ad86 VZ |
7827 | { echo "configure: error: |
7828 | Please check that gtk-config is in path, the directory | |
7829 | where GTK+ libraries are installed (returned by | |
7830 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
7831 | equivalent variable and GTK+ is version 1.2.3 or above. | |
7832 | " 1>&2; exit 1; } | |
7833 | fi | |
7834 | ||
10f2d63a | 7835 | TOOLKIT_INCLUDE="$GTK_CFLAGS" |
2224580a VZ |
7836 | |
7837 | ||
7838 | GUI_TK_LIBRARY="$GTK_LIBS" | |
7839 | ||
10f2d63a | 7840 | |
dad6c0ea | 7841 | AFMINSTALL=afminstall |
9ad43c8b | 7842 | TOOLKIT=GTK |
10f2d63a | 7843 | GUIDIST=GTK_DIST |
7ec2881a | 7844 | |
2224580a | 7845 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
9ad43c8b | 7846 | echo "configure:7847: checking for gdk_im_open in -lgdk" >&5 |
7ec2881a RR |
7847 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
7848 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7850 | else | |
7851 | ac_save_LIBS="$LIBS" | |
7852 | LIBS="-lgdk $LIBS" | |
7853 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 7854 | #line 7855 "configure" |
7ec2881a RR |
7855 | #include "confdefs.h" |
7856 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7857 | /* We use char because int might match the return type of a gcc2 | |
7858 | builtin and then its argument prototype would still apply. */ | |
7859 | char gdk_im_open(); | |
7860 | ||
7861 | int main() { | |
7862 | gdk_im_open() | |
7863 | ; return 0; } | |
7864 | EOF | |
9ad43c8b | 7865 | if { (eval echo configure:7866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7ec2881a RR |
7866 | rm -rf conftest* |
7867 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7868 | else | |
7869 | echo "configure: failed program was:" >&5 | |
7870 | cat conftest.$ac_ext >&5 | |
7871 | rm -rf conftest* | |
7872 | eval "ac_cv_lib_$ac_lib_var=no" | |
7873 | fi | |
7874 | rm -f conftest* | |
7875 | LIBS="$ac_save_LIBS" | |
7876 | ||
7877 | fi | |
7878 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7879 | echo "$ac_t""yes" 1>&6 | |
7880 | cat >> confdefs.h <<\EOF | |
7881 | #define HAVE_XIM 1 | |
7882 | EOF | |
7883 | ||
7884 | else | |
7885 | echo "$ac_t""no" 1>&6 | |
7886 | fi | |
7887 | ||
10f2d63a VZ |
7888 | fi |
7889 | ||
7890 | if test "$wxUSE_WINE" = 1; then | |
7891 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
9ad43c8b | 7892 | echo "configure:7893: checking for WINE includes" >&5 |
10f2d63a VZ |
7893 | |
7894 | ac_find_includes= | |
7895 | for ac_dir in $SEARCH_INCLUDE; | |
7896 | do | |
7897 | if test -f "$ac_dir/windows.h"; then | |
7898 | ac_find_includes=$ac_dir | |
7899 | break | |
7900 | fi | |
7901 | done | |
7902 | ||
7903 | if test "$ac_find_includes" != "" ; then | |
7904 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7905 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
7906 | else | |
7907 | echo "$ac_t""no" 1>&6 | |
7908 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
7909 | fi | |
7910 | ||
7911 | XPM_LINK="" | |
7912 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
9ad43c8b | 7913 | echo "configure:7914: checking for Xpm library" >&5 |
10f2d63a VZ |
7914 | |
7915 | ac_find_libraries= | |
7916 | for ac_dir in $SEARCH_LIB; | |
7917 | do | |
7918 | for ac_extension in a so sl; do | |
7919 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
7920 | ac_find_libraries=$ac_dir | |
7921 | break 2 | |
7922 | fi | |
7923 | done | |
7924 | done | |
7925 | ||
7926 | if test "$ac_find_libraries" != "" ; then | |
7927 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
7928 | XPM_LINK="-lXpm" | |
7929 | cat >> confdefs.h <<\EOF | |
7930 | #define wxHAVE_LIB_XPM 1 | |
7931 | EOF | |
7932 | ||
7933 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7934 | else | |
7935 | echo "$ac_t""no" 1>&6 | |
7936 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
7937 | fi | |
7938 | ||
7939 | MESA_LINK="" | |
7940 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
9ad43c8b | 7941 | echo "configure:7942: checking for Mesa library" >&5 |
10f2d63a VZ |
7942 | |
7943 | ac_find_libraries= | |
7944 | for ac_dir in $SEARCH_LIB; | |
7945 | do | |
7946 | for ac_extension in a so sl; do | |
7947 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
7948 | ac_find_libraries=$ac_dir | |
7949 | break 2 | |
7950 | fi | |
7951 | done | |
7952 | done | |
7953 | ||
7954 | if test "$ac_find_libraries" != "" ; then | |
7955 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
7956 | MESA_LINK="-lMesaGL" | |
7957 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7958 | else | |
7959 | { echo "configure: error: no" 1>&2; exit 1; } | |
7960 | fi | |
7961 | ||
8916026b | 7962 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
10f2d63a VZ |
7963 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
7964 | WXWINE=1 | |
7965 | TOOLKIT=MSW | |
10f2d63a VZ |
7966 | GUIDIST=MSW_DIST |
7967 | fi | |
7968 | ||
37d403aa JS |
7969 | |
7970 | # If we find X, set shell vars x_includes and x_libraries to the | |
ab9b9eab VZ |
7971 | # paths, otherwise set no_x=yes. |
7972 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
7973 | # --without-x overrides everything else, but does not touch the cache. | |
7974 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
9ad43c8b | 7975 | echo "configure:7976: checking for X" >&5 |
ab9b9eab VZ |
7976 | |
7977 | # Check whether --with-x or --without-x was given. | |
7978 | if test "${with_x+set}" = set; then | |
7979 | withval="$with_x" | |
7980 | : | |
7981 | fi | |
ba337fe7 | 7982 | |
ab9b9eab VZ |
7983 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
7984 | if test "x$with_x" = xno; then | |
7985 | # The user explicitly disabled X. | |
7986 | have_x=disabled | |
7987 | else | |
7988 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
7989 | # Both variables are already set. | |
7990 | have_x=yes | |
7991 | else | |
7992 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
7993 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7994 | else | |
7995 | # One or both of the vars are not set, and there is no cached value. | |
7996 | ac_x_includes=NO ac_x_libraries=NO | |
7997 | rm -fr conftestdir | |
7998 | if mkdir conftestdir; then | |
7999 | cd conftestdir | |
8000 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
8001 | cat > Imakefile <<'EOF' | |
8002 | acfindx: | |
8003 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
8004 | EOF | |
8005 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
8006 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
8007 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
8008 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 8009 | for ac_extension in a so sl; do |
ab9b9eab VZ |
8010 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
8011 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
8012 | ac_im_usrlibdir=$ac_im_libdir; break | |
10f2d63a VZ |
8013 | fi |
8014 | done | |
ab9b9eab VZ |
8015 | # Screen out bogus values from the imake configuration. They are |
8016 | # bogus both because they are the default anyway, and because | |
8017 | # using them would break gcc on systems where it needs fixed includes. | |
8018 | case "$ac_im_incroot" in | |
8019 | /usr/include) ;; | |
8020 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
8021 | esac | |
8022 | case "$ac_im_usrlibdir" in | |
8023 | /usr/lib | /lib) ;; | |
8024 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
8025 | esac | |
ba337fe7 | 8026 | fi |
ab9b9eab VZ |
8027 | cd .. |
8028 | rm -fr conftestdir | |
8029 | fi | |
10f2d63a | 8030 | |
ab9b9eab VZ |
8031 | if test "$ac_x_includes" = NO; then |
8032 | # Guess where to find include files, by looking for this one X11 .h file. | |
8033 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
ba337fe7 | 8034 | |
ab9b9eab VZ |
8035 | # First, try using that file with no special directory specified. |
8036 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 8037 | #line 8038 "configure" |
ab9b9eab VZ |
8038 | #include "confdefs.h" |
8039 | #include <$x_direct_test_include> | |
8040 | EOF | |
8041 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9ad43c8b | 8042 | { (eval echo configure:8043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ab9b9eab VZ |
8043 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8044 | if test -z "$ac_err"; then | |
8045 | rm -rf conftest* | |
8046 | # We can compile using X headers with no special include directory. | |
8047 | ac_x_includes= | |
8048 | else | |
8049 | echo "$ac_err" >&5 | |
8050 | echo "configure: failed program was:" >&5 | |
8051 | cat conftest.$ac_ext >&5 | |
8052 | rm -rf conftest* | |
8053 | # Look for the header file in a standard set of common directories. | |
8054 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
8055 | for ac_dir in \ | |
8056 | /usr/X11/include \ | |
8057 | /usr/X11R6/include \ | |
8058 | /usr/X11R5/include \ | |
8059 | /usr/X11R4/include \ | |
8060 | \ | |
8061 | /usr/include/X11 \ | |
8062 | /usr/include/X11R6 \ | |
8063 | /usr/include/X11R5 \ | |
8064 | /usr/include/X11R4 \ | |
8065 | \ | |
8066 | /usr/local/X11/include \ | |
8067 | /usr/local/X11R6/include \ | |
8068 | /usr/local/X11R5/include \ | |
8069 | /usr/local/X11R4/include \ | |
8070 | \ | |
8071 | /usr/local/include/X11 \ | |
8072 | /usr/local/include/X11R6 \ | |
8073 | /usr/local/include/X11R5 \ | |
8074 | /usr/local/include/X11R4 \ | |
8075 | \ | |
8076 | /usr/X386/include \ | |
8077 | /usr/x386/include \ | |
8078 | /usr/XFree86/include/X11 \ | |
8079 | \ | |
8080 | /usr/include \ | |
8081 | /usr/local/include \ | |
8082 | /usr/unsupported/include \ | |
8083 | /usr/athena/include \ | |
8084 | /usr/local/x11r5/include \ | |
8085 | /usr/lpp/Xamples/include \ | |
8086 | \ | |
8087 | /usr/openwin/include \ | |
8088 | /usr/openwin/share/include \ | |
8089 | ; \ | |
10f2d63a | 8090 | do |
ab9b9eab VZ |
8091 | if test -r "$ac_dir/$x_direct_test_include"; then |
8092 | ac_x_includes=$ac_dir | |
10f2d63a VZ |
8093 | break |
8094 | fi | |
8095 | done | |
ab9b9eab VZ |
8096 | fi |
8097 | rm -f conftest* | |
8098 | fi # $ac_x_includes = NO | |
10f2d63a | 8099 | |
ab9b9eab VZ |
8100 | if test "$ac_x_libraries" = NO; then |
8101 | # Check for the libraries. | |
10f2d63a | 8102 | |
ab9b9eab VZ |
8103 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
8104 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
10f2d63a | 8105 | |
ab9b9eab VZ |
8106 | # See if we find them without any special options. |
8107 | # Don't add to $LIBS permanently. | |
8108 | ac_save_LIBS="$LIBS" | |
8109 | LIBS="-l$x_direct_test_library $LIBS" | |
8110 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 8111 | #line 8112 "configure" |
ab9b9eab | 8112 | #include "confdefs.h" |
10f2d63a | 8113 | |
ab9b9eab VZ |
8114 | int main() { |
8115 | ${x_direct_test_function}() | |
8116 | ; return 0; } | |
8117 | EOF | |
9ad43c8b | 8118 | if { (eval echo configure:8119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8119 | rm -rf conftest* |
8120 | LIBS="$ac_save_LIBS" | |
8121 | # We can link X programs with no special library path. | |
8122 | ac_x_libraries= | |
8123 | else | |
8124 | echo "configure: failed program was:" >&5 | |
8125 | cat conftest.$ac_ext >&5 | |
8126 | rm -rf conftest* | |
8127 | LIBS="$ac_save_LIBS" | |
8128 | # First see if replacing the include by lib works. | |
8129 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
8130 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
8131 | /usr/X11/lib \ | |
8132 | /usr/X11R6/lib \ | |
8133 | /usr/X11R5/lib \ | |
8134 | /usr/X11R4/lib \ | |
8135 | \ | |
8136 | /usr/lib/X11 \ | |
8137 | /usr/lib/X11R6 \ | |
8138 | /usr/lib/X11R5 \ | |
8139 | /usr/lib/X11R4 \ | |
8140 | \ | |
8141 | /usr/local/X11/lib \ | |
8142 | /usr/local/X11R6/lib \ | |
8143 | /usr/local/X11R5/lib \ | |
8144 | /usr/local/X11R4/lib \ | |
8145 | \ | |
8146 | /usr/local/lib/X11 \ | |
8147 | /usr/local/lib/X11R6 \ | |
8148 | /usr/local/lib/X11R5 \ | |
8149 | /usr/local/lib/X11R4 \ | |
8150 | \ | |
8151 | /usr/X386/lib \ | |
8152 | /usr/x386/lib \ | |
8153 | /usr/XFree86/lib/X11 \ | |
8154 | \ | |
8155 | /usr/lib \ | |
8156 | /usr/local/lib \ | |
8157 | /usr/unsupported/lib \ | |
8158 | /usr/athena/lib \ | |
8159 | /usr/local/x11r5/lib \ | |
8160 | /usr/lpp/Xamples/lib \ | |
8161 | /lib/usr/lib/X11 \ | |
8162 | \ | |
8163 | /usr/openwin/lib \ | |
8164 | /usr/openwin/share/lib \ | |
8165 | ; \ | |
8166 | do | |
8167 | for ac_extension in a so sl; do | |
8168 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
8169 | ac_x_libraries=$ac_dir | |
8170 | break 2 | |
10f2d63a | 8171 | fi |
10f2d63a | 8172 | done |
ab9b9eab VZ |
8173 | done |
8174 | fi | |
8175 | rm -f conftest* | |
8176 | fi # $ac_x_libraries = NO | |
10f2d63a | 8177 | |
ab9b9eab VZ |
8178 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
8179 | # Didn't find X anywhere. Cache the known absence of X. | |
8180 | ac_cv_have_x="have_x=no" | |
8181 | else | |
8182 | # Record where we found X for the cache. | |
8183 | ac_cv_have_x="have_x=yes \ | |
8184 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
8185 | fi | |
8186 | fi | |
10f2d63a | 8187 | fi |
ab9b9eab VZ |
8188 | eval "$ac_cv_have_x" |
8189 | fi # $with_x != no | |
10f2d63a | 8190 | |
ab9b9eab VZ |
8191 | if test "$have_x" != yes; then |
8192 | echo "$ac_t""$have_x" 1>&6 | |
8193 | no_x=yes | |
8194 | else | |
8195 | # If each of the values was on the command line, it overrides each guess. | |
8196 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
8197 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
8198 | # Update the cache value to reflect the command line values. | |
8199 | ac_cv_have_x="have_x=yes \ | |
8200 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
8201 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
8202 | fi | |
10f2d63a | 8203 | |
ab9b9eab VZ |
8204 | if test "$no_x" = yes; then |
8205 | # Not all programs may use this symbol, but it does not hurt to define it. | |
8206 | cat >> confdefs.h <<\EOF | |
8207 | #define X_DISPLAY_MISSING 1 | |
8208 | EOF | |
10f2d63a | 8209 | |
ab9b9eab VZ |
8210 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
8211 | else | |
8212 | if test -n "$x_includes"; then | |
8213 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
8214 | fi |
8215 | ||
ab9b9eab VZ |
8216 | # It would also be nice to do this for all -L options, not just this one. |
8217 | if test -n "$x_libraries"; then | |
8218 | X_LIBS="$X_LIBS -L$x_libraries" | |
8219 | # For Solaris; some versions of Sun CC require a space after -R and | |
8220 | # others require no space. Words are not sufficient . . . . | |
8221 | case "`(uname -sr) 2>/dev/null`" in | |
8222 | "SunOS 5"*) | |
8223 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
9ad43c8b | 8224 | echo "configure:8225: checking whether -R must be followed by a space" >&5 |
ab9b9eab VZ |
8225 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
8226 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 8227 | #line 8228 "configure" |
ab9b9eab | 8228 | #include "confdefs.h" |
10f2d63a | 8229 | |
ab9b9eab | 8230 | int main() { |
788deba1 | 8231 | |
ab9b9eab VZ |
8232 | ; return 0; } |
8233 | EOF | |
9ad43c8b | 8234 | if { (eval echo configure:8235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8235 | rm -rf conftest* |
8236 | ac_R_nospace=yes | |
8237 | else | |
8238 | echo "configure: failed program was:" >&5 | |
8239 | cat conftest.$ac_ext >&5 | |
8240 | rm -rf conftest* | |
8241 | ac_R_nospace=no | |
8242 | fi | |
8243 | rm -f conftest* | |
8244 | if test $ac_R_nospace = yes; then | |
8245 | echo "$ac_t""no" 1>&6 | |
8246 | X_LIBS="$X_LIBS -R$x_libraries" | |
8247 | else | |
8248 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
8249 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 8250 | #line 8251 "configure" |
ab9b9eab | 8251 | #include "confdefs.h" |
788deba1 | 8252 | |
ab9b9eab VZ |
8253 | int main() { |
8254 | ||
8255 | ; return 0; } | |
8256 | EOF | |
9ad43c8b | 8257 | if { (eval echo configure:8258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8258 | rm -rf conftest* |
8259 | ac_R_space=yes | |
8260 | else | |
8261 | echo "configure: failed program was:" >&5 | |
8262 | cat conftest.$ac_ext >&5 | |
8263 | rm -rf conftest* | |
8264 | ac_R_space=no | |
8265 | fi | |
8266 | rm -f conftest* | |
8267 | if test $ac_R_space = yes; then | |
8268 | echo "$ac_t""yes" 1>&6 | |
8269 | X_LIBS="$X_LIBS -R $x_libraries" | |
8270 | else | |
8271 | echo "$ac_t""neither works" 1>&6 | |
8272 | fi | |
8273 | fi | |
8274 | LIBS="$ac_xsave_LIBS" | |
8275 | esac | |
8276 | fi | |
8277 | ||
8278 | # Check for system-dependent libraries X programs must link with. | |
8279 | # Do this before checking for the system-independent R6 libraries | |
8280 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
8281 | ||
8282 | if test "$ISC" = yes; then | |
8283 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
8284 | else | |
8285 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
8286 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
8287 | # the Alpha needs dnet_stub (dnet does not exist). | |
8288 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
9ad43c8b | 8289 | echo "configure:8290: checking for dnet_ntoa in -ldnet" >&5 |
ab9b9eab VZ |
8290 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
8291 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8292 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8293 | else | |
8294 | ac_save_LIBS="$LIBS" | |
8295 | LIBS="-ldnet $LIBS" | |
8296 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 8297 | #line 8298 "configure" |
ab9b9eab VZ |
8298 | #include "confdefs.h" |
8299 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8300 | /* We use char because int might match the return type of a gcc2 | |
8301 | builtin and then its argument prototype would still apply. */ | |
8302 | char dnet_ntoa(); | |
8303 | ||
8304 | int main() { | |
8305 | dnet_ntoa() | |
8306 | ; return 0; } | |
8307 | EOF | |
9ad43c8b | 8308 | if { (eval echo configure:8309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8309 | rm -rf conftest* |
8310 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8311 | else | |
8312 | echo "configure: failed program was:" >&5 | |
8313 | cat conftest.$ac_ext >&5 | |
8314 | rm -rf conftest* | |
8315 | eval "ac_cv_lib_$ac_lib_var=no" | |
8316 | fi | |
8317 | rm -f conftest* | |
8318 | LIBS="$ac_save_LIBS" | |
8319 | ||
8320 | fi | |
8321 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8322 | echo "$ac_t""yes" 1>&6 | |
8323 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
8324 | else | |
8325 | echo "$ac_t""no" 1>&6 | |
8326 | fi | |
8327 | ||
8328 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
8329 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
9ad43c8b | 8330 | echo "configure:8331: checking for dnet_ntoa in -ldnet_stub" >&5 |
ab9b9eab VZ |
8331 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
8332 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8333 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8334 | else | |
8335 | ac_save_LIBS="$LIBS" | |
8336 | LIBS="-ldnet_stub $LIBS" | |
8337 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 8338 | #line 8339 "configure" |
ab9b9eab VZ |
8339 | #include "confdefs.h" |
8340 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8341 | /* We use char because int might match the return type of a gcc2 | |
8342 | builtin and then its argument prototype would still apply. */ | |
8343 | char dnet_ntoa(); | |
8344 | ||
8345 | int main() { | |
8346 | dnet_ntoa() | |
8347 | ; return 0; } | |
8348 | EOF | |
9ad43c8b | 8349 | if { (eval echo configure:8350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8350 | rm -rf conftest* |
8351 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8352 | else | |
8353 | echo "configure: failed program was:" >&5 | |
8354 | cat conftest.$ac_ext >&5 | |
8355 | rm -rf conftest* | |
8356 | eval "ac_cv_lib_$ac_lib_var=no" | |
8357 | fi | |
8358 | rm -f conftest* | |
8359 | LIBS="$ac_save_LIBS" | |
8360 | ||
8361 | fi | |
8362 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8363 | echo "$ac_t""yes" 1>&6 | |
8364 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
8365 | else | |
8366 | echo "$ac_t""no" 1>&6 | |
8367 | fi | |
8368 | ||
8369 | fi | |
8370 | ||
8371 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
8372 | # to get the SysV transport functions. | |
8373 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
8374 | # needs -lnsl. | |
8375 | # The nsl library prevents programs from opening the X display | |
8376 | # on Irix 5.2, according to dickey@clark.net. | |
8377 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
9ad43c8b | 8378 | echo "configure:8379: checking for gethostbyname" >&5 |
ab9b9eab VZ |
8379 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
8380 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8381 | else | |
8382 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 8383 | #line 8384 "configure" |
ab9b9eab VZ |
8384 | #include "confdefs.h" |
8385 | /* System header to define __stub macros and hopefully few prototypes, | |
8386 | which can conflict with char gethostbyname(); below. */ | |
8387 | #include <assert.h> | |
8388 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8389 | /* We use char because int might match the return type of a gcc2 | |
8390 | builtin and then its argument prototype would still apply. */ | |
8391 | char gethostbyname(); | |
8392 | ||
8393 | int main() { | |
8394 | ||
8395 | /* The GNU C library defines this for functions which it implements | |
8396 | to always fail with ENOSYS. Some functions are actually named | |
8397 | something starting with __ and the normal name is an alias. */ | |
8398 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
8399 | choke me | |
8400 | #else | |
e8482f24 | 8401 | gethostbyname(); |
ab9b9eab VZ |
8402 | #endif |
8403 | ||
8404 | ; return 0; } | |
8405 | EOF | |
9ad43c8b | 8406 | if { (eval echo configure:8407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8407 | rm -rf conftest* |
8408 | eval "ac_cv_func_gethostbyname=yes" | |
8409 | else | |
8410 | echo "configure: failed program was:" >&5 | |
8411 | cat conftest.$ac_ext >&5 | |
8412 | rm -rf conftest* | |
8413 | eval "ac_cv_func_gethostbyname=no" | |
8414 | fi | |
8415 | rm -f conftest* | |
8416 | fi | |
8417 | ||
8418 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
8419 | echo "$ac_t""yes" 1>&6 | |
8420 | : | |
8421 | else | |
8422 | echo "$ac_t""no" 1>&6 | |
8423 | fi | |
8424 | ||
8425 | if test $ac_cv_func_gethostbyname = no; then | |
8426 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
9ad43c8b | 8427 | echo "configure:8428: checking for gethostbyname in -lnsl" >&5 |
ab9b9eab VZ |
8428 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
8429 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8430 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8431 | else | |
8432 | ac_save_LIBS="$LIBS" | |
8433 | LIBS="-lnsl $LIBS" | |
8434 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 8435 | #line 8436 "configure" |
ab9b9eab VZ |
8436 | #include "confdefs.h" |
8437 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8438 | /* We use char because int might match the return type of a gcc2 | |
8439 | builtin and then its argument prototype would still apply. */ | |
8440 | char gethostbyname(); | |
8441 | ||
8442 | int main() { | |
8443 | gethostbyname() | |
8444 | ; return 0; } | |
8445 | EOF | |
9ad43c8b | 8446 | if { (eval echo configure:8447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8447 | rm -rf conftest* |
8448 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8449 | else | |
8450 | echo "configure: failed program was:" >&5 | |
8451 | cat conftest.$ac_ext >&5 | |
8452 | rm -rf conftest* | |
8453 | eval "ac_cv_lib_$ac_lib_var=no" | |
8454 | fi | |
8455 | rm -f conftest* | |
8456 | LIBS="$ac_save_LIBS" | |
8457 | ||
8458 | fi | |
8459 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8460 | echo "$ac_t""yes" 1>&6 | |
8461 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
8462 | else | |
8463 | echo "$ac_t""no" 1>&6 | |
8464 | fi | |
8465 | ||
8466 | fi | |
8467 | ||
8468 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
8469 | # socket/setsockopt and other routines are undefined under SCO ODT | |
8470 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
8471 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
8472 | # gethostby* variants that don't use the nameserver (or something). | |
8473 | # -lsocket must be given before -lnsl if both are needed. | |
8474 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
8475 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
9ad43c8b | 8476 | echo "configure:8477: checking for connect" >&5 |
ab9b9eab VZ |
8477 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
8478 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8479 | else | |
8480 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 8481 | #line 8482 "configure" |
ab9b9eab VZ |
8482 | #include "confdefs.h" |
8483 | /* System header to define __stub macros and hopefully few prototypes, | |
8484 | which can conflict with char connect(); below. */ | |
8485 | #include <assert.h> | |
8486 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8487 | /* We use char because int might match the return type of a gcc2 | |
8488 | builtin and then its argument prototype would still apply. */ | |
8489 | char connect(); | |
8490 | ||
8491 | int main() { | |
8492 | ||
8493 | /* The GNU C library defines this for functions which it implements | |
8494 | to always fail with ENOSYS. Some functions are actually named | |
8495 | something starting with __ and the normal name is an alias. */ | |
8496 | #if defined (__stub_connect) || defined (__stub___connect) | |
8497 | choke me | |
8498 | #else | |
e8482f24 | 8499 | connect(); |
ab9b9eab VZ |
8500 | #endif |
8501 | ||
8502 | ; return 0; } | |
8503 | EOF | |
9ad43c8b | 8504 | if { (eval echo configure:8505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8505 | rm -rf conftest* |
8506 | eval "ac_cv_func_connect=yes" | |
8507 | else | |
8508 | echo "configure: failed program was:" >&5 | |
8509 | cat conftest.$ac_ext >&5 | |
8510 | rm -rf conftest* | |
8511 | eval "ac_cv_func_connect=no" | |
8512 | fi | |
8513 | rm -f conftest* | |
8514 | fi | |
8515 | ||
8516 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
8517 | echo "$ac_t""yes" 1>&6 | |
8518 | : | |
8519 | else | |
8520 | echo "$ac_t""no" 1>&6 | |
8521 | fi | |
8522 | ||
8523 | if test $ac_cv_func_connect = no; then | |
8524 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
9ad43c8b | 8525 | echo "configure:8526: checking for connect in -lsocket" >&5 |
ab9b9eab VZ |
8526 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
8527 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8528 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8529 | else | |
8530 | ac_save_LIBS="$LIBS" | |
8531 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
8532 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 8533 | #line 8534 "configure" |
ab9b9eab VZ |
8534 | #include "confdefs.h" |
8535 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8536 | /* We use char because int might match the return type of a gcc2 | |
8537 | builtin and then its argument prototype would still apply. */ | |
8538 | char connect(); | |
8539 | ||
8540 | int main() { | |
8541 | connect() | |
8542 | ; return 0; } | |
8543 | EOF | |
9ad43c8b | 8544 | if { (eval echo configure:8545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8545 | rm -rf conftest* |
8546 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8547 | else | |
8548 | echo "configure: failed program was:" >&5 | |
8549 | cat conftest.$ac_ext >&5 | |
8550 | rm -rf conftest* | |
8551 | eval "ac_cv_lib_$ac_lib_var=no" | |
8552 | fi | |
8553 | rm -f conftest* | |
8554 | LIBS="$ac_save_LIBS" | |
8555 | ||
8556 | fi | |
8557 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8558 | echo "$ac_t""yes" 1>&6 | |
8559 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
8560 | else | |
8561 | echo "$ac_t""no" 1>&6 | |
8562 | fi | |
8563 | ||
8564 | fi | |
8565 | ||
8566 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
8567 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
9ad43c8b | 8568 | echo "configure:8569: checking for remove" >&5 |
ab9b9eab VZ |
8569 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
8570 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8571 | else | |
8572 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 8573 | #line 8574 "configure" |
ab9b9eab VZ |
8574 | #include "confdefs.h" |
8575 | /* System header to define __stub macros and hopefully few prototypes, | |
8576 | which can conflict with char remove(); below. */ | |
8577 | #include <assert.h> | |
8578 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8579 | /* We use char because int might match the return type of a gcc2 | |
8580 | builtin and then its argument prototype would still apply. */ | |
8581 | char remove(); | |
8582 | ||
8583 | int main() { | |
8584 | ||
8585 | /* The GNU C library defines this for functions which it implements | |
8586 | to always fail with ENOSYS. Some functions are actually named | |
8587 | something starting with __ and the normal name is an alias. */ | |
8588 | #if defined (__stub_remove) || defined (__stub___remove) | |
8589 | choke me | |
8590 | #else | |
e8482f24 | 8591 | remove(); |
ab9b9eab VZ |
8592 | #endif |
8593 | ||
8594 | ; return 0; } | |
8595 | EOF | |
9ad43c8b | 8596 | if { (eval echo configure:8597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8597 | rm -rf conftest* |
8598 | eval "ac_cv_func_remove=yes" | |
8599 | else | |
8600 | echo "configure: failed program was:" >&5 | |
8601 | cat conftest.$ac_ext >&5 | |
8602 | rm -rf conftest* | |
8603 | eval "ac_cv_func_remove=no" | |
8604 | fi | |
8605 | rm -f conftest* | |
8606 | fi | |
8607 | ||
8608 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
8609 | echo "$ac_t""yes" 1>&6 | |
8610 | : | |
8611 | else | |
8612 | echo "$ac_t""no" 1>&6 | |
8613 | fi | |
8614 | ||
8615 | if test $ac_cv_func_remove = no; then | |
8616 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
9ad43c8b | 8617 | echo "configure:8618: checking for remove in -lposix" >&5 |
ab9b9eab VZ |
8618 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
8619 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8620 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8621 | else | |
8622 | ac_save_LIBS="$LIBS" | |
8623 | LIBS="-lposix $LIBS" | |
8624 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 8625 | #line 8626 "configure" |
ab9b9eab VZ |
8626 | #include "confdefs.h" |
8627 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8628 | /* We use char because int might match the return type of a gcc2 | |
8629 | builtin and then its argument prototype would still apply. */ | |
8630 | char remove(); | |
8631 | ||
8632 | int main() { | |
8633 | remove() | |
8634 | ; return 0; } | |
8635 | EOF | |
9ad43c8b | 8636 | if { (eval echo configure:8637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8637 | rm -rf conftest* |
8638 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8639 | else | |
8640 | echo "configure: failed program was:" >&5 | |
8641 | cat conftest.$ac_ext >&5 | |
8642 | rm -rf conftest* | |
8643 | eval "ac_cv_lib_$ac_lib_var=no" | |
8644 | fi | |
8645 | rm -f conftest* | |
8646 | LIBS="$ac_save_LIBS" | |
8647 | ||
8648 | fi | |
8649 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8650 | echo "$ac_t""yes" 1>&6 | |
8651 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
8652 | else | |
8653 | echo "$ac_t""no" 1>&6 | |
8654 | fi | |
8655 | ||
8656 | fi | |
8657 | ||
8658 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
8659 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
9ad43c8b | 8660 | echo "configure:8661: checking for shmat" >&5 |
ab9b9eab VZ |
8661 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
8662 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8663 | else | |
8664 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 8665 | #line 8666 "configure" |
ab9b9eab VZ |
8666 | #include "confdefs.h" |
8667 | /* System header to define __stub macros and hopefully few prototypes, | |
8668 | which can conflict with char shmat(); below. */ | |
8669 | #include <assert.h> | |
8670 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8671 | /* We use char because int might match the return type of a gcc2 | |
8672 | builtin and then its argument prototype would still apply. */ | |
8673 | char shmat(); | |
8674 | ||
8675 | int main() { | |
8676 | ||
8677 | /* The GNU C library defines this for functions which it implements | |
8678 | to always fail with ENOSYS. Some functions are actually named | |
8679 | something starting with __ and the normal name is an alias. */ | |
8680 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
8681 | choke me | |
8682 | #else | |
e8482f24 | 8683 | shmat(); |
ab9b9eab VZ |
8684 | #endif |
8685 | ||
8686 | ; return 0; } | |
8687 | EOF | |
9ad43c8b | 8688 | if { (eval echo configure:8689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8689 | rm -rf conftest* |
8690 | eval "ac_cv_func_shmat=yes" | |
8691 | else | |
8692 | echo "configure: failed program was:" >&5 | |
8693 | cat conftest.$ac_ext >&5 | |
8694 | rm -rf conftest* | |
8695 | eval "ac_cv_func_shmat=no" | |
8696 | fi | |
8697 | rm -f conftest* | |
8698 | fi | |
8699 | ||
8700 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
8701 | echo "$ac_t""yes" 1>&6 | |
8702 | : | |
8703 | else | |
8704 | echo "$ac_t""no" 1>&6 | |
8705 | fi | |
8706 | ||
8707 | if test $ac_cv_func_shmat = no; then | |
8708 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
9ad43c8b | 8709 | echo "configure:8710: checking for shmat in -lipc" >&5 |
ab9b9eab VZ |
8710 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
8711 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8712 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8713 | else | |
8714 | ac_save_LIBS="$LIBS" | |
8715 | LIBS="-lipc $LIBS" | |
8716 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 8717 | #line 8718 "configure" |
ab9b9eab VZ |
8718 | #include "confdefs.h" |
8719 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8720 | /* We use char because int might match the return type of a gcc2 | |
8721 | builtin and then its argument prototype would still apply. */ | |
8722 | char shmat(); | |
8723 | ||
8724 | int main() { | |
8725 | shmat() | |
8726 | ; return 0; } | |
8727 | EOF | |
9ad43c8b | 8728 | if { (eval echo configure:8729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8729 | rm -rf conftest* |
8730 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8731 | else | |
8732 | echo "configure: failed program was:" >&5 | |
8733 | cat conftest.$ac_ext >&5 | |
8734 | rm -rf conftest* | |
8735 | eval "ac_cv_lib_$ac_lib_var=no" | |
8736 | fi | |
8737 | rm -f conftest* | |
8738 | LIBS="$ac_save_LIBS" | |
8739 | ||
8740 | fi | |
8741 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8742 | echo "$ac_t""yes" 1>&6 | |
8743 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
8744 | else | |
8745 | echo "$ac_t""no" 1>&6 | |
8746 | fi | |
8747 | ||
8748 | fi | |
8749 | fi | |
8750 | ||
8751 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
8752 | ac_save_LDFLAGS="$LDFLAGS" | |
8753 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
8754 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
8755 | # check for ICE first), but we must link in the order -lSM -lICE or | |
8756 | # we get undefined symbols. So assume we have SM if we have ICE. | |
8757 | # These have to be linked with before -lX11, unlike the other | |
8758 | # libraries we check for below, so use a different variable. | |
8759 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
8760 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
9ad43c8b | 8761 | echo "configure:8762: checking for IceConnectionNumber in -lICE" >&5 |
ab9b9eab VZ |
8762 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
8763 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8764 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8765 | else | |
8766 | ac_save_LIBS="$LIBS" | |
8767 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
8768 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 8769 | #line 8770 "configure" |
ab9b9eab VZ |
8770 | #include "confdefs.h" |
8771 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8772 | /* We use char because int might match the return type of a gcc2 | |
8773 | builtin and then its argument prototype would still apply. */ | |
8774 | char IceConnectionNumber(); | |
8775 | ||
8776 | int main() { | |
8777 | IceConnectionNumber() | |
8778 | ; return 0; } | |
8779 | EOF | |
9ad43c8b | 8780 | if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8781 | rm -rf conftest* |
8782 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8783 | else | |
8784 | echo "configure: failed program was:" >&5 | |
8785 | cat conftest.$ac_ext >&5 | |
8786 | rm -rf conftest* | |
8787 | eval "ac_cv_lib_$ac_lib_var=no" | |
8788 | fi | |
8789 | rm -f conftest* | |
8790 | LIBS="$ac_save_LIBS" | |
8791 | ||
8792 | fi | |
8793 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8794 | echo "$ac_t""yes" 1>&6 | |
8795 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
8796 | else | |
8797 | echo "$ac_t""no" 1>&6 | |
8798 | fi | |
8799 | ||
8800 | LDFLAGS="$ac_save_LDFLAGS" | |
8801 | ||
8802 | fi | |
8803 | ||
37d403aa JS |
8804 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
8805 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 8806 | |
37d403aa | 8807 | if test "$wxUSE_MOTIF" = 1; then |
ab9b9eab | 8808 | if test "$no_x" = "yes"; then |
37d403aa | 8809 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
ab9b9eab VZ |
8810 | fi |
8811 | ||
8812 | GUI_TK_LIBRARY="$X_LIBS" | |
8813 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
8814 | ||
dad6c0ea VZ |
8815 | AFMINSTALL=afminstall |
8816 | ||
ab9b9eab | 8817 | |
cd6d6d5b VZ |
8818 | COMPILED_X_PROGRAM=0 |
8819 | ||
ab9b9eab | 8820 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
9ad43c8b | 8821 | echo "configure:8822: checking for Motif/Lesstif headers" >&5 |
ab9b9eab VZ |
8822 | |
8823 | ac_find_includes= | |
8824 | for ac_dir in $SEARCH_INCLUDE; | |
8825 | do | |
8826 | if test -f "$ac_dir/Xm/Xm.h"; then | |
8827 | ac_find_includes=$ac_dir | |
8828 | break | |
8829 | fi | |
8830 | done | |
8831 | ||
8832 | if test "$ac_find_includes" != "" ; then | |
8833 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8834 | else | |
cd6d6d5b | 8835 | cat > conftest.$ac_ext <<EOF |
9ad43c8b | 8836 | #line 8837 "configure" |
cd6d6d5b VZ |
8837 | #include "confdefs.h" |
8838 | ||
8839 | #include <Xm/Xm.h> | |
8840 | ||
8841 | int main() { | |
8842 | ||
8843 | int version; | |
8844 | ||
8845 | version = xmUseVersion; | |
8846 | ||
8847 | ; return 0; } | |
8848 | EOF | |
9ad43c8b | 8849 | if { (eval echo configure:8850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8850 | rm -rf conftest* |
8851 | ||
8852 | echo "$ac_t""found in default search path" 1>&6 | |
8853 | COMPILED_X_PROGRAM=1 | |
8854 | ||
8855 | else | |
8856 | echo "configure: failed program was:" >&5 | |
8857 | cat conftest.$ac_ext >&5 | |
8858 | rm -rf conftest* | |
8859 | ||
8860 | echo "$ac_t""no" 1>&6 | |
8861 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
8862 | ||
8863 | ||
8864 | fi | |
8865 | rm -f conftest* | |
ab9b9eab VZ |
8866 | fi |
8867 | ||
cd6d6d5b VZ |
8868 | if test "$COMPILED_X_PROGRAM" = 0; then |
8869 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
9ad43c8b | 8870 | echo "configure:8871: checking for Motif/Lesstif library" >&5 |
cd6d6d5b | 8871 | |
ab9b9eab VZ |
8872 | ac_find_libraries= |
8873 | for ac_dir in $SEARCH_LIB; | |
8874 | do | |
8875 | for ac_extension in a so sl; do | |
8876 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
8877 | ac_find_libraries=$ac_dir | |
8878 | break 2 | |
8879 | fi | |
8880 | done | |
8881 | done | |
8882 | ||
cd6d6d5b VZ |
8883 | if test "$ac_find_libraries" != "" ; then |
8884 | ||
ab9b9eab VZ |
8885 | ac_path_to_include=$ac_find_includes |
8886 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
8887 | result=$? | |
8888 | if test $result = 0; then | |
8889 | ac_path_to_include="" | |
8890 | else | |
8891 | ac_path_to_include="-I$ac_find_includes" | |
8892 | fi | |
8893 | ||
cd6d6d5b | 8894 | |
ab9b9eab VZ |
8895 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
8896 | result=$? | |
8897 | if test $result = 0; then | |
8898 | ac_path_to_link="" | |
8899 | else | |
8900 | ac_path_to_link="-L$ac_find_libraries" | |
8901 | fi | |
8902 | ||
8903 | ||
cd6d6d5b VZ |
8904 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
8905 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
8906 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8907 | else | |
8908 | cat > conftest.$ac_ext <<EOF | |
9ad43c8b | 8909 | #line 8910 "configure" |
cd6d6d5b | 8910 | #include "confdefs.h" |
ab9b9eab | 8911 | |
cd6d6d5b VZ |
8912 | #include <Xm/Xm.h> |
8913 | ||
8914 | int main() { | |
ab9b9eab | 8915 | |
cd6d6d5b | 8916 | int version; |
ab9b9eab | 8917 | |
cd6d6d5b VZ |
8918 | version = xmUseVersion; |
8919 | ||
8920 | ; return 0; } | |
8921 | EOF | |
9ad43c8b | 8922 | if { (eval echo configure:8923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8923 | rm -rf conftest* |
8924 | ||
8925 | echo "$ac_t""found in default search path" 1>&6 | |
8926 | COMPILED_X_PROGRAM=1 | |
8927 | ||
8928 | else | |
8929 | echo "configure: failed program was:" >&5 | |
8930 | cat conftest.$ac_ext >&5 | |
8931 | rm -rf conftest* | |
8932 | ||
8933 | echo "$ac_t""no" 1>&6 | |
8934 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
8935 | ||
8936 | ||
8937 | fi | |
8938 | rm -f conftest* | |
8939 | fi | |
ab9b9eab VZ |
8940 | fi |
8941 | ||
cd6d6d5b | 8942 | |
ab9b9eab VZ |
8943 | XPM_LINK="" |
8944 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
9ad43c8b | 8945 | echo "configure:8946: checking for Xpm library" >&5 |
ab9b9eab VZ |
8946 | |
8947 | ac_find_libraries= | |
8948 | for ac_dir in $SEARCH_LIB; | |
8949 | do | |
8950 | for ac_extension in a so sl; do | |
8951 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
8952 | ac_find_libraries=$ac_dir | |
8953 | break 2 | |
8954 | fi | |
8955 | done | |
8956 | done | |
8957 | ||
8958 | if test "$ac_find_libraries" != "" ; then | |
8959 | ||
8960 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8961 | result=$? | |
8962 | if test $result = 0; then | |
8963 | ac_path_to_link="" | |
8964 | else | |
8965 | ac_path_to_link="-L$ac_find_libraries" | |
8966 | fi | |
8967 | ||
8968 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8969 | XPM_LINK="-lXpm " | |
8970 | cat >> confdefs.h <<\EOF | |
8971 | #define wxHAVE_LIB_XPM 1 | |
8972 | EOF | |
8973 | ||
8974 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8975 | else | |
cd6d6d5b | 8976 | cat > conftest.$ac_ext <<EOF |
9ad43c8b | 8977 | #line 8978 "configure" |
cd6d6d5b VZ |
8978 | #include "confdefs.h" |
8979 | ||
8980 | #include <X11/xpm.h> | |
8981 | ||
8982 | int main() { | |
8983 | ||
8984 | int version; | |
8985 | ||
8986 | version = XpmLibraryVersion(); | |
8987 | ||
8988 | ; return 0; } | |
8989 | EOF | |
9ad43c8b | 8990 | if { (eval echo configure:8991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8991 | rm -rf conftest* |
8992 | ||
f6bcfd97 BP |
8993 | XPM_LINK="-lXpm " |
8994 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
8995 | #define wxHAVE_LIB_XPM 1 |
8996 | EOF | |
8997 | ||
8998 | echo "$ac_t""found in default search path" 1>&6 | |
cd6d6d5b VZ |
8999 | COMPILED_X_PROGRAM=0 |
9000 | ||
9001 | else | |
9002 | echo "configure: failed program was:" >&5 | |
9003 | cat conftest.$ac_ext >&5 | |
9004 | rm -rf conftest* | |
9005 | ||
9006 | echo "$ac_t""no" 1>&6 | |
9007 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9008 | ||
9009 | ||
9010 | fi | |
9011 | rm -f conftest* | |
ab9b9eab VZ |
9012 | fi |
9013 | ||
8916026b | 9014 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" |
ab9b9eab VZ |
9015 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
9016 | TOOLKIT=MOTIF | |
10f2d63a VZ |
9017 | GUIDIST=MOTIF_DIST |
9018 | fi | |
9019 | ||
b4085ce6 GD |
9020 | if test "$wxUSE_MAC" = 1; then |
9021 | TOOLKIT=MAC | |
c521c494 | 9022 | GUIDIST=MACX_DIST |
b4085ce6 GD |
9023 | fi |
9024 | ||
e07802fc VZ |
9025 | if test "$wxUSE_PM" = 1; then |
9026 | TOOLKIT=PM | |
e07802fc VZ |
9027 | GUIDIST=GTK_DIST |
9028 | fi | |
9029 | ||
9030 | if test "$TOOLKIT" != "PM" ; then | |
ec14dd32 | 9031 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` |
e07802fc VZ |
9032 | else |
9033 | TOOLKIT_DIR="os2" | |
9034 | fi | |
10f2d63a | 9035 | |
f6bcfd97 BP |
9036 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
9037 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
9038 | else | |
9039 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
9040 | fi | |
9041 | ||
2224580a | 9042 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
10f2d63a | 9043 | |
f6bcfd97 | 9044 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 9045 | |
bdad4e7e | 9046 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)" |
3fcdd07b | 9047 | |
9ad43c8b RL |
9048 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
9049 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
3fcdd07b VZ |
9050 | fi |
9051 | ||
d9d8273d | 9052 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 9053 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
9054 | fi |
9055 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
9056 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
9057 | fi | |
9058 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
9059 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
9060 | fi | |
9061 | if test "$wxUSE_ZLIB" = "yes" ; then | |
9062 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
9063 | fi | |
3fed1840 RR |
9064 | if test "$wxUSE_FREETYPE" = "yes" ; then |
9065 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
9066 | fi | |
bdad4e7e | 9067 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)" |
2224580a VZ |
9068 | |
9069 | PORT_FILES="src/\$(TOOLKITDIR)/files.lst" | |
9070 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" | |
9071 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
9072 | ||
9073 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
9074 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 9075 | else |
dad6c0ea VZ |
9076 | USE_GUI=0 |
9077 | ||
f6bcfd97 BP |
9078 | TOOLKIT_DIR="base" |
9079 | ||
9080 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
9081 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
9082 | else | |
9083 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
9084 | fi | |
9085 | ||
07eb77a6 RL |
9086 | TOOLKIT_DEF="-D__WXBASE__" |
9087 | ||
b4085ce6 GD |
9088 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" |
9089 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10f2d63a | 9090 | |
a20b6d3a VZ |
9091 | if test "$wxUSE_ZLIB" = "yes" ; then |
9092 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
9093 | fi | |
9094 | ||
f6bcfd97 | 9095 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a VZ |
9096 | |
9097 | PORT_FILES="src/files.lst" | |
9098 | RPM_FILES="src/rpmfiles.lst" | |
9099 | RPM_SPEC="wxBase.spec" | |
9100 | ||
9101 | GUIDIST="BASE_DIST" | |
9102 | DISTDIR="wxBase" | |
10f2d63a VZ |
9103 | fi |
9104 | ||
9105 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 9106 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
9107 | |
9108 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 9109 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
9110 | |
9111 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 9112 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
9113 | |
9114 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
9115 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
9116 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
9117 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
9118 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
9119 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
9120 | |
9121 | SHARED_LD= | |
9122 | PIC_FLAG= | |
9123 | WX_ALL= | |
9124 | WX_ALL_INSTALLED= | |
1d62a8b4 | 9125 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 9126 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 9127 | |
b12915c1 | 9128 | |
10f2d63a VZ |
9129 | if test "$wxUSE_SHARED" = "yes"; then |
9130 | case "${host}" in | |
9131 | *-hp-hpux* ) | |
9132 | if test "$GCC" = yes ; then | |
69ffe1d2 | 9133 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
9134 | PIC_FLAG="-fPIC" |
9135 | else | |
f6bcfd97 BP |
9136 | LDFLAGS="-L/usr/lib" |
9137 | ||
10f2d63a VZ |
9138 | SHARED_LD="${CXX} -b -o" |
9139 | PIC_FLAG="+Z" | |
9140 | fi | |
f6bcfd97 BP |
9141 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
9142 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 9143 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 9144 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
9145 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
9146 | else | |
9147 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
9148 | fi | |
10f2d63a | 9149 | ;; |
b12915c1 VZ |
9150 | |
9151 | *-*-linux* ) | |
10f2d63a VZ |
9152 | SHARED_LD="${CC} -shared -o" |
9153 | PIC_FLAG="-fPIC" | |
00cf1208 | 9154 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 9155 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 9156 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 9157 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 9158 | fi |
c661ecca RR |
9159 | if test "$wxUSE_OPENGL" = "yes"; then |
9160 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9161 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9162 | else | |
9163 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9164 | WX_ALL="CREATE_LINKS" | |
422107f9 | 9165 | fi |
00cf1208 | 9166 | ;; |
10f2d63a VZ |
9167 | *-*-irix5* | *-*-irix6* ) |
9168 | if test "$GCC" = yes ; then | |
9169 | SHARED_LD="${CC} -shared -o" | |
9170 | PIC_FLAG="-fPIC" | |
9171 | else | |
9172 | SHARED_LD="${CXX} -shared -o" | |
9173 | fi | |
c661ecca RR |
9174 | if test "$wxUSE_OPENGL" = "yes"; then |
9175 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9176 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9177 | else | |
9178 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9179 | WX_ALL="CREATE_LINKS" | |
422107f9 | 9180 | fi |
10f2d63a VZ |
9181 | ;; |
9182 | *-*-solaris2* ) | |
9183 | if test "$GCC" = yes ; then | |
9184 | SHARED_LD="${CC} -shared -o" | |
9185 | PIC_FLAG="-fPIC" | |
f6bcfd97 BP |
9186 | |
9187 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
9188 | else |
9189 | SHARED_LD="${CXX} -G -o" | |
9190 | PIC_FLAG="-KPIC" | |
9191 | fi | |
c661ecca RR |
9192 | if test "$wxUSE_OPENGL" = "yes"; then |
9193 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9194 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9195 | else | |
9196 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9197 | WX_ALL="CREATE_LINKS" | |
9198 | fi | |
10f2d63a VZ |
9199 | ;; |
9200 | *-*-sunos4* ) | |
9201 | SHARED_LD="${CC} -shared -o" | |
9202 | PIC_FLAG="-fPIC" | |
9203 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9204 | WX_ALL="CREATE_LINKS" | |
9205 | ;; | |
b4085ce6 | 9206 | *-*-freebsd* | *-*-netbsd* ) |
10f2d63a VZ |
9207 | SHARED_LD="${CC} -shared -o" |
9208 | PIC_FLAG="-fPIC" | |
37d403aa JS |
9209 | if test "$wxUSE_OPENGL" = "yes"; then |
9210 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9211 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9212 | else | |
9213 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9214 | WX_ALL="CREATE_LINKS" | |
9215 | fi | |
10f2d63a | 9216 | ;; |
b4085ce6 GD |
9217 | *-*-darwin* ) |
9218 | SHARED_LD="libtool -dynamic -o" | |
9219 | PIC_FLAG="-fPIC" | |
9220 | if test "$wxUSE_OPENGL" = "yes"; then | |
9221 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9222 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9223 | else | |
9224 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9225 | WX_ALL="CREATE_LINKS" | |
9226 | fi | |
9227 | ;; | |
10f2d63a VZ |
9228 | *-*-osf* ) |
9229 | SHARED_LD="${CXX} -shared -o" | |
9230 | PIC_FLAG="-fPIC" | |
9231 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9232 | WX_ALL="CREATE_LINKS" | |
9233 | ;; | |
9234 | *-*-dgux5* ) | |
9235 | SHARED_LD="${CXX} -shared -o" | |
9236 | PIC_FLAG="-fPIC" | |
9237 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9238 | WX_ALL="CREATE_LINKS" | |
9239 | ;; | |
9240 | *-*-sysv5* ) | |
9241 | SHARED_LD="${CC} -shared -o" | |
9242 | PIC_FLAG="-fPIC" | |
9243 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9244 | WX_ALL="CREATE_LINKS" | |
9245 | ;; | |
9246 | *-*-aix* ) | |
9247 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
9248 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
9249 | ;; | |
9250 | *-*-cygwin32* ) | |
9251 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 9252 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
9253 | if test "$wxUSE_OPENGL" = "yes"; then |
9254 | WX_ALL_INSTALLED="preinstall_gl" | |
9255 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
9256 | else | |
9257 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
9258 | fi | |
10f2d63a | 9259 | ;; |
b12915c1 | 9260 | *-*-mingw32* ) |
10f2d63a | 9261 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 9262 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
9263 | if test "$wxUSE_OPENGL" = "yes"; then |
9264 | WX_ALL_INSTALLED="preinstall_gl" | |
9265 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
9266 | else | |
9267 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
9268 | fi | |
10f2d63a VZ |
9269 | ;; |
9270 | *-pc-os2_emx ) | |
e07802fc VZ |
9271 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
9272 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 9273 | ;; |
b12915c1 | 9274 | *-*-beos* ) |
e2b8b066 | 9275 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
9276 | PIC_FLAG="-fPIC" |
9277 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9278 | WX_ALL="CREATE_LINKS" | |
9279 | ;; | |
10f2d63a VZ |
9280 | *) |
9281 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
9282 | esac | |
9283 | ||
9284 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
9285 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 9286 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 9287 | fi |
3711412e | 9288 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
9289 | else |
9290 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 9291 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
9292 | |
9293 | if test "$wxUSE_OPENGL" = "yes"; then | |
9294 | WX_ALL_INSTALLED="preinstall_gl" | |
9295 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
9296 | else | |
9297 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
9298 | fi | |
9299 | ||
9300 | if test "$wxUSE_GUI" = "no"; then | |
9301 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
9302 | fi | |
9303 | ||
3711412e | 9304 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
9305 | fi |
9306 | ||
9307 | ||
9308 | for ac_hdr in strings.h | |
9309 | do | |
9310 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9311 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2c6025bc | 9312 | echo "configure:9313: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9313 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9314 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9315 | else | |
9316 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9317 | #line 9318 "configure" |
10f2d63a VZ |
9318 | #include "confdefs.h" |
9319 | #include <$ac_hdr> | |
9320 | EOF | |
9321 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 9322 | { (eval echo configure:9323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9323 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9324 | if test -z "$ac_err"; then | |
9325 | rm -rf conftest* | |
9326 | eval "ac_cv_header_$ac_safe=yes" | |
9327 | else | |
9328 | echo "$ac_err" >&5 | |
9329 | echo "configure: failed program was:" >&5 | |
9330 | cat conftest.$ac_ext >&5 | |
9331 | rm -rf conftest* | |
9332 | eval "ac_cv_header_$ac_safe=no" | |
9333 | fi | |
9334 | rm -f conftest* | |
9335 | fi | |
9336 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9337 | echo "$ac_t""yes" 1>&6 | |
9338 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9339 | cat >> confdefs.h <<EOF | |
9340 | #define $ac_tr_hdr 1 | |
9341 | EOF | |
9342 | ||
9343 | else | |
9344 | echo "$ac_t""no" 1>&6 | |
9345 | fi | |
9346 | done | |
9347 | ||
9348 | for ac_hdr in unistd.h | |
9349 | do | |
9350 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9351 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2c6025bc | 9352 | echo "configure:9353: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9353 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9355 | else | |
9356 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9357 | #line 9358 "configure" |
10f2d63a VZ |
9358 | #include "confdefs.h" |
9359 | #include <$ac_hdr> | |
9360 | EOF | |
9361 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 9362 | { (eval echo configure:9363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9363 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9364 | if test -z "$ac_err"; then | |
9365 | rm -rf conftest* | |
9366 | eval "ac_cv_header_$ac_safe=yes" | |
9367 | else | |
9368 | echo "$ac_err" >&5 | |
9369 | echo "configure: failed program was:" >&5 | |
9370 | cat conftest.$ac_ext >&5 | |
9371 | rm -rf conftest* | |
9372 | eval "ac_cv_header_$ac_safe=no" | |
9373 | fi | |
9374 | rm -f conftest* | |
9375 | fi | |
9376 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9377 | echo "$ac_t""yes" 1>&6 | |
9378 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9379 | cat >> confdefs.h <<EOF | |
9380 | #define $ac_tr_hdr 1 | |
9381 | EOF | |
9382 | ||
9383 | else | |
9384 | echo "$ac_t""no" 1>&6 | |
9385 | fi | |
9386 | done | |
9387 | ||
0fb0dd83 | 9388 | for ac_hdr in fcntl.h |
10f2d63a VZ |
9389 | do |
9390 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9391 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2c6025bc | 9392 | echo "configure:9393: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9393 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9394 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9395 | else | |
9396 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9397 | #line 9398 "configure" |
10f2d63a VZ |
9398 | #include "confdefs.h" |
9399 | #include <$ac_hdr> | |
9400 | EOF | |
9401 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 9402 | { (eval echo configure:9403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9403 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9404 | if test -z "$ac_err"; then | |
9405 | rm -rf conftest* | |
9406 | eval "ac_cv_header_$ac_safe=yes" | |
9407 | else | |
9408 | echo "$ac_err" >&5 | |
9409 | echo "configure: failed program was:" >&5 | |
9410 | cat conftest.$ac_ext >&5 | |
9411 | rm -rf conftest* | |
9412 | eval "ac_cv_header_$ac_safe=no" | |
9413 | fi | |
9414 | rm -f conftest* | |
9415 | fi | |
9416 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9417 | echo "$ac_t""yes" 1>&6 | |
9418 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9419 | cat >> confdefs.h <<EOF | |
9420 | #define $ac_tr_hdr 1 | |
9421 | EOF | |
9422 | ||
9423 | else | |
9424 | echo "$ac_t""no" 1>&6 | |
9425 | fi | |
9426 | done | |
9427 | ||
0fb0dd83 | 9428 | for ac_hdr in wchar.h |
10f2d63a VZ |
9429 | do |
9430 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9431 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2c6025bc | 9432 | echo "configure:9433: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9433 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9434 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9435 | else | |
9436 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9437 | #line 9438 "configure" |
10f2d63a VZ |
9438 | #include "confdefs.h" |
9439 | #include <$ac_hdr> | |
9440 | EOF | |
9441 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 9442 | { (eval echo configure:9443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9443 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9444 | if test -z "$ac_err"; then | |
9445 | rm -rf conftest* | |
9446 | eval "ac_cv_header_$ac_safe=yes" | |
9447 | else | |
9448 | echo "$ac_err" >&5 | |
9449 | echo "configure: failed program was:" >&5 | |
9450 | cat conftest.$ac_ext >&5 | |
9451 | rm -rf conftest* | |
9452 | eval "ac_cv_header_$ac_safe=no" | |
9453 | fi | |
9454 | rm -f conftest* | |
9455 | fi | |
9456 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9457 | echo "$ac_t""yes" 1>&6 | |
9458 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9459 | cat >> confdefs.h <<EOF | |
9460 | #define $ac_tr_hdr 1 | |
9461 | EOF | |
9462 | ||
9463 | else | |
9464 | echo "$ac_t""no" 1>&6 | |
9465 | fi | |
9466 | done | |
9467 | ||
0fb0dd83 | 9468 | for ac_hdr in wcstr.h |
10f2d63a VZ |
9469 | do |
9470 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9471 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2c6025bc | 9472 | echo "configure:9473: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9473 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9474 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9475 | else | |
9476 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9477 | #line 9478 "configure" |
10f2d63a VZ |
9478 | #include "confdefs.h" |
9479 | #include <$ac_hdr> | |
9480 | EOF | |
9481 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 9482 | { (eval echo configure:9483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6f72b082 OK |
9483 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9484 | if test -z "$ac_err"; then | |
9485 | rm -rf conftest* | |
9486 | eval "ac_cv_header_$ac_safe=yes" | |
9487 | else | |
9488 | echo "$ac_err" >&5 | |
9489 | echo "configure: failed program was:" >&5 | |
9490 | cat conftest.$ac_ext >&5 | |
9491 | rm -rf conftest* | |
9492 | eval "ac_cv_header_$ac_safe=no" | |
9493 | fi | |
9494 | rm -f conftest* | |
9495 | fi | |
9496 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9497 | echo "$ac_t""yes" 1>&6 | |
9498 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9499 | cat >> confdefs.h <<EOF | |
9500 | #define $ac_tr_hdr 1 | |
9501 | EOF | |
9502 | ||
9503 | else | |
9504 | echo "$ac_t""no" 1>&6 | |
9505 | fi | |
9506 | done | |
9507 | ||
0fb0dd83 | 9508 | for ac_hdr in fnmatch.h |
6f72b082 OK |
9509 | do |
9510 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9511 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2c6025bc | 9512 | echo "configure:9513: checking for $ac_hdr" >&5 |
6f72b082 OK |
9513 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9514 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9515 | else | |
9516 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9517 | #line 9518 "configure" |
6f72b082 OK |
9518 | #include "confdefs.h" |
9519 | #include <$ac_hdr> | |
9520 | EOF | |
9521 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 9522 | { (eval echo configure:9523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6f72b082 OK |
9523 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9524 | if test -z "$ac_err"; then | |
9525 | rm -rf conftest* | |
9526 | eval "ac_cv_header_$ac_safe=yes" | |
9527 | else | |
9528 | echo "$ac_err" >&5 | |
9529 | echo "configure: failed program was:" >&5 | |
9530 | cat conftest.$ac_ext >&5 | |
9531 | rm -rf conftest* | |
9532 | eval "ac_cv_header_$ac_safe=no" | |
9533 | fi | |
9534 | rm -f conftest* | |
9535 | fi | |
9536 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9537 | echo "$ac_t""yes" 1>&6 | |
9538 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9539 | cat >> confdefs.h <<EOF | |
9540 | #define $ac_tr_hdr 1 | |
9541 | EOF | |
9542 | ||
9543 | else | |
9544 | echo "$ac_t""no" 1>&6 | |
9545 | fi | |
9546 | done | |
9547 | ||
0fb0dd83 | 9548 | for ac_hdr in iconv.h |
6f72b082 OK |
9549 | do |
9550 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9551 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2c6025bc | 9552 | echo "configure:9553: checking for $ac_hdr" >&5 |
6f72b082 OK |
9553 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9554 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9555 | else | |
9556 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9557 | #line 9558 "configure" |
6f72b082 OK |
9558 | #include "confdefs.h" |
9559 | #include <$ac_hdr> | |
9560 | EOF | |
9561 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 9562 | { (eval echo configure:9563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9563 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9564 | if test -z "$ac_err"; then | |
9565 | rm -rf conftest* | |
9566 | eval "ac_cv_header_$ac_safe=yes" | |
9567 | else | |
9568 | echo "$ac_err" >&5 | |
9569 | echo "configure: failed program was:" >&5 | |
9570 | cat conftest.$ac_ext >&5 | |
9571 | rm -rf conftest* | |
9572 | eval "ac_cv_header_$ac_safe=no" | |
9573 | fi | |
9574 | rm -f conftest* | |
9575 | fi | |
9576 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9577 | echo "$ac_t""yes" 1>&6 | |
9578 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9579 | cat >> confdefs.h <<EOF | |
9580 | #define $ac_tr_hdr 1 | |
9581 | EOF | |
9582 | ||
9583 | else | |
9584 | echo "$ac_t""no" 1>&6 | |
9585 | fi | |
9586 | done | |
9587 | ||
0fb0dd83 RR |
9588 | for ac_hdr in langinfo.h |
9589 | do | |
9590 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9591 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2c6025bc | 9592 | echo "configure:9593: checking for $ac_hdr" >&5 |
0fb0dd83 RR |
9593 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9594 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9595 | else | |
9596 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9597 | #line 9598 "configure" |
0fb0dd83 RR |
9598 | #include "confdefs.h" |
9599 | #include <$ac_hdr> | |
9600 | EOF | |
9601 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 9602 | { (eval echo configure:9603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0fb0dd83 RR |
9603 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9604 | if test -z "$ac_err"; then | |
9605 | rm -rf conftest* | |
9606 | eval "ac_cv_header_$ac_safe=yes" | |
9607 | else | |
9608 | echo "$ac_err" >&5 | |
9609 | echo "configure: failed program was:" >&5 | |
9610 | cat conftest.$ac_ext >&5 | |
9611 | rm -rf conftest* | |
9612 | eval "ac_cv_header_$ac_safe=no" | |
9613 | fi | |
9614 | rm -f conftest* | |
9615 | fi | |
9616 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9617 | echo "$ac_t""yes" 1>&6 | |
9618 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9619 | cat >> confdefs.h <<EOF | |
9620 | #define $ac_tr_hdr 1 | |
9621 | EOF | |
9622 | ||
9623 | else | |
9624 | echo "$ac_t""no" 1>&6 | |
9625 | fi | |
9626 | done | |
9627 | ||
10f2d63a | 9628 | |
73fd4a60 VZ |
9629 | if test "$wxUSE_GUI" = "yes"; then |
9630 | if test "$wxUSE_UNIX" = "yes"; then | |
9631 | for ac_hdr in X11/XKBlib.h | |
10f2d63a VZ |
9632 | do |
9633 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9634 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2c6025bc | 9635 | echo "configure:9636: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9636 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9637 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9638 | else | |
9639 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9640 | #line 9641 "configure" |
10f2d63a VZ |
9641 | #include "confdefs.h" |
9642 | #include <$ac_hdr> | |
9643 | EOF | |
9644 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 9645 | { (eval echo configure:9646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9646 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9647 | if test -z "$ac_err"; then | |
9648 | rm -rf conftest* | |
9649 | eval "ac_cv_header_$ac_safe=yes" | |
9650 | else | |
9651 | echo "$ac_err" >&5 | |
9652 | echo "configure: failed program was:" >&5 | |
9653 | cat conftest.$ac_ext >&5 | |
9654 | rm -rf conftest* | |
9655 | eval "ac_cv_header_$ac_safe=no" | |
9656 | fi | |
9657 | rm -f conftest* | |
9658 | fi | |
9659 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9660 | echo "$ac_t""yes" 1>&6 | |
9661 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9662 | cat >> confdefs.h <<EOF | |
9663 | #define $ac_tr_hdr 1 | |
9664 | EOF | |
9665 | ||
9666 | else | |
9667 | echo "$ac_t""no" 1>&6 | |
9668 | fi | |
9669 | done | |
9670 | ||
73fd4a60 | 9671 | fi |
10f2d63a VZ |
9672 | fi |
9673 | ||
9674 | ||
9675 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
2c6025bc | 9676 | echo "configure:9677: checking for ANSI C header files" >&5 |
10f2d63a VZ |
9677 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
9678 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9679 | else | |
9680 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9681 | #line 9682 "configure" |
10f2d63a VZ |
9682 | #include "confdefs.h" |
9683 | #include <stdlib.h> | |
9684 | #include <stdarg.h> | |
9685 | #include <string.h> | |
9686 | #include <float.h> | |
9687 | EOF | |
9688 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 9689 | { (eval echo configure:9690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9690 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9691 | if test -z "$ac_err"; then | |
9692 | rm -rf conftest* | |
9693 | ac_cv_header_stdc=yes | |
9694 | else | |
9695 | echo "$ac_err" >&5 | |
9696 | echo "configure: failed program was:" >&5 | |
9697 | cat conftest.$ac_ext >&5 | |
9698 | rm -rf conftest* | |
9699 | ac_cv_header_stdc=no | |
9700 | fi | |
9701 | rm -f conftest* | |
9702 | ||
9703 | if test $ac_cv_header_stdc = yes; then | |
9704 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
9705 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9706 | #line 9707 "configure" |
10f2d63a VZ |
9707 | #include "confdefs.h" |
9708 | #include <string.h> | |
9709 | EOF | |
9710 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9711 | egrep "memchr" >/dev/null 2>&1; then | |
9712 | : | |
9713 | else | |
9714 | rm -rf conftest* | |
9715 | ac_cv_header_stdc=no | |
9716 | fi | |
9717 | rm -f conftest* | |
9718 | ||
9719 | fi | |
9720 | ||
9721 | if test $ac_cv_header_stdc = yes; then | |
9722 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
9723 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9724 | #line 9725 "configure" |
10f2d63a VZ |
9725 | #include "confdefs.h" |
9726 | #include <stdlib.h> | |
9727 | EOF | |
9728 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9729 | egrep "free" >/dev/null 2>&1; then | |
9730 | : | |
9731 | else | |
9732 | rm -rf conftest* | |
9733 | ac_cv_header_stdc=no | |
9734 | fi | |
9735 | rm -f conftest* | |
9736 | ||
9737 | fi | |
9738 | ||
9739 | if test $ac_cv_header_stdc = yes; then | |
9740 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
9741 | if test "$cross_compiling" = yes; then | |
9742 | : | |
9743 | else | |
9744 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9745 | #line 9746 "configure" |
10f2d63a VZ |
9746 | #include "confdefs.h" |
9747 | #include <ctype.h> | |
9748 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
9749 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
9750 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
9751 | int main () { int i; for (i = 0; i < 256; i++) | |
9752 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
9753 | exit (0); } | |
9754 | ||
9755 | EOF | |
2c6025bc | 9756 | if { (eval echo configure:9757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9757 | then |
9758 | : | |
9759 | else | |
9760 | echo "configure: failed program was:" >&5 | |
9761 | cat conftest.$ac_ext >&5 | |
9762 | rm -fr conftest* | |
9763 | ac_cv_header_stdc=no | |
9764 | fi | |
9765 | rm -fr conftest* | |
9766 | fi | |
9767 | ||
9768 | fi | |
9769 | fi | |
9770 | ||
9771 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
9772 | if test $ac_cv_header_stdc = yes; then | |
9773 | cat >> confdefs.h <<\EOF | |
9774 | #define STDC_HEADERS 1 | |
9775 | EOF | |
9776 | ||
9777 | fi | |
9778 | ||
9779 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
2c6025bc | 9780 | echo "configure:9781: checking for mode_t" >&5 |
10f2d63a VZ |
9781 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
9782 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9783 | else | |
9784 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9785 | #line 9786 "configure" |
10f2d63a VZ |
9786 | #include "confdefs.h" |
9787 | #include <sys/types.h> | |
9788 | #if STDC_HEADERS | |
9789 | #include <stdlib.h> | |
9790 | #include <stddef.h> | |
9791 | #endif | |
9792 | EOF | |
9793 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9794 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9795 | rm -rf conftest* | |
9796 | ac_cv_type_mode_t=yes | |
9797 | else | |
9798 | rm -rf conftest* | |
9799 | ac_cv_type_mode_t=no | |
9800 | fi | |
9801 | rm -f conftest* | |
9802 | ||
9803 | fi | |
9804 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
9805 | if test $ac_cv_type_mode_t = no; then | |
9806 | cat >> confdefs.h <<\EOF | |
9807 | #define mode_t int | |
9808 | EOF | |
9809 | ||
9810 | fi | |
9811 | ||
9812 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
2c6025bc | 9813 | echo "configure:9814: checking for off_t" >&5 |
10f2d63a VZ |
9814 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
9815 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9816 | else | |
9817 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9818 | #line 9819 "configure" |
10f2d63a VZ |
9819 | #include "confdefs.h" |
9820 | #include <sys/types.h> | |
9821 | #if STDC_HEADERS | |
9822 | #include <stdlib.h> | |
9823 | #include <stddef.h> | |
9824 | #endif | |
9825 | EOF | |
9826 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9827 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9828 | rm -rf conftest* | |
9829 | ac_cv_type_off_t=yes | |
9830 | else | |
9831 | rm -rf conftest* | |
9832 | ac_cv_type_off_t=no | |
9833 | fi | |
9834 | rm -f conftest* | |
9835 | ||
9836 | fi | |
9837 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
9838 | if test $ac_cv_type_off_t = no; then | |
9839 | cat >> confdefs.h <<\EOF | |
9840 | #define off_t long | |
9841 | EOF | |
9842 | ||
9843 | fi | |
9844 | ||
9845 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
2c6025bc | 9846 | echo "configure:9847: checking for pid_t" >&5 |
10f2d63a VZ |
9847 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
9848 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9849 | else | |
9850 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9851 | #line 9852 "configure" |
10f2d63a VZ |
9852 | #include "confdefs.h" |
9853 | #include <sys/types.h> | |
9854 | #if STDC_HEADERS | |
9855 | #include <stdlib.h> | |
9856 | #include <stddef.h> | |
9857 | #endif | |
9858 | EOF | |
9859 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9860 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9861 | rm -rf conftest* | |
9862 | ac_cv_type_pid_t=yes | |
9863 | else | |
9864 | rm -rf conftest* | |
9865 | ac_cv_type_pid_t=no | |
9866 | fi | |
9867 | rm -f conftest* | |
9868 | ||
9869 | fi | |
9870 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
9871 | if test $ac_cv_type_pid_t = no; then | |
9872 | cat >> confdefs.h <<\EOF | |
9873 | #define pid_t int | |
9874 | EOF | |
9875 | ||
9876 | fi | |
9877 | ||
9878 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
2c6025bc | 9879 | echo "configure:9880: checking for size_t" >&5 |
10f2d63a VZ |
9880 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
9881 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9882 | else | |
9883 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9884 | #line 9885 "configure" |
10f2d63a VZ |
9885 | #include "confdefs.h" |
9886 | #include <sys/types.h> | |
9887 | #if STDC_HEADERS | |
9888 | #include <stdlib.h> | |
9889 | #include <stddef.h> | |
9890 | #endif | |
9891 | EOF | |
9892 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9893 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9894 | rm -rf conftest* | |
9895 | ac_cv_type_size_t=yes | |
9896 | else | |
9897 | rm -rf conftest* | |
9898 | ac_cv_type_size_t=no | |
9899 | fi | |
9900 | rm -f conftest* | |
9901 | ||
9902 | fi | |
9903 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
9904 | if test $ac_cv_type_size_t = no; then | |
9905 | cat >> confdefs.h <<\EOF | |
9906 | #define size_t unsigned | |
9907 | EOF | |
9908 | ||
9909 | fi | |
9910 | ||
9911 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
2c6025bc | 9912 | echo "configure:9913: checking for uid_t in sys/types.h" >&5 |
10f2d63a VZ |
9913 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
9914 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9915 | else | |
9916 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9917 | #line 9918 "configure" |
10f2d63a VZ |
9918 | #include "confdefs.h" |
9919 | #include <sys/types.h> | |
9920 | EOF | |
9921 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9922 | egrep "uid_t" >/dev/null 2>&1; then | |
9923 | rm -rf conftest* | |
9924 | ac_cv_type_uid_t=yes | |
9925 | else | |
9926 | rm -rf conftest* | |
9927 | ac_cv_type_uid_t=no | |
9928 | fi | |
9929 | rm -f conftest* | |
9930 | ||
9931 | fi | |
9932 | ||
9933 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
9934 | if test $ac_cv_type_uid_t = no; then | |
9935 | cat >> confdefs.h <<\EOF | |
9936 | #define uid_t int | |
9937 | EOF | |
9938 | ||
9939 | cat >> confdefs.h <<\EOF | |
9940 | #define gid_t int | |
9941 | EOF | |
9942 | ||
9943 | fi | |
9944 | ||
9945 | ||
9946 | ||
b12915c1 | 9947 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
2c6025bc | 9948 | echo "configure:9949: checking for pw_gecos in struct passwd" >&5 |
b12915c1 VZ |
9949 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
9950 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9951 | else | |
9952 | ||
9953 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 9954 | #line 9955 "configure" |
b12915c1 VZ |
9955 | #include "confdefs.h" |
9956 | #include <pwd.h> | |
9957 | int main() { | |
9958 | ||
9959 | char *p; | |
9960 | struct passwd *pw; | |
9961 | p = pw->pw_gecos; | |
9962 | ||
9963 | ; return 0; } | |
9964 | EOF | |
2c6025bc | 9965 | if { (eval echo configure:9966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b12915c1 VZ |
9966 | rm -rf conftest* |
9967 | ||
9968 | wx_cv_struct_pw_gecos=yes | |
b12915c1 VZ |
9969 | |
9970 | else | |
9971 | echo "configure: failed program was:" >&5 | |
9972 | cat conftest.$ac_ext >&5 | |
9973 | rm -rf conftest* | |
9974 | ||
9975 | wx_cv_struct_pw_gecos=no | |
9976 | ||
9977 | ||
9978 | fi | |
9979 | rm -f conftest* | |
9980 | ||
9981 | ||
9982 | fi | |
9983 | ||
9984 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
9985 | ||
bd3277fe VZ |
9986 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
9987 | cat >> confdefs.h <<\EOF | |
9988 | #define HAVE_PW_GECOS 1 | |
9989 | EOF | |
9990 | ||
9991 | fi | |
9992 | ||
10f2d63a VZ |
9993 | |
9994 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
2c6025bc | 9995 | echo "configure:9996: checking for working const" >&5 |
10f2d63a VZ |
9996 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
9997 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9998 | else | |
9999 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10000 | #line 10001 "configure" |
10f2d63a VZ |
10001 | #include "confdefs.h" |
10002 | ||
10003 | int main() { | |
10004 | ||
10005 | /* Ultrix mips cc rejects this. */ | |
186837b0 | 10006 | typedef int charset[2]; const charset x; |
10f2d63a VZ |
10007 | /* SunOS 4.1.1 cc rejects this. */ |
10008 | char const *const *ccp; | |
10009 | char **p; | |
10010 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10011 | struct point {int x, y;}; | |
10012 | static struct point const zero = {0,0}; | |
10013 | /* AIX XL C 1.02.0.0 rejects this. | |
10014 | It does not let you subtract one const X* pointer from another in an arm | |
10015 | of an if-expression whose if-part is not a constant expression */ | |
10016 | const char *g = "string"; | |
10017 | ccp = &g + (g ? g-g : 0); | |
10018 | /* HPUX 7.0 cc rejects these. */ | |
10019 | ++ccp; | |
10020 | p = (char**) ccp; | |
10021 | ccp = (char const *const *) p; | |
10022 | { /* SCO 3.2v4 cc rejects this. */ | |
10023 | char *t; | |
10024 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10025 | ||
10026 | *t++ = 0; | |
10027 | } | |
10028 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10029 | int x[] = {25, 17}; | |
10030 | const int *foo = &x[0]; | |
10031 | ++foo; | |
10032 | } | |
10033 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10034 | typedef const int *iptr; | |
10035 | iptr p = 0; | |
10036 | ++p; | |
10037 | } | |
10038 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10039 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10040 | struct s { int j; const int *ap[3]; }; | |
10041 | struct s *b; b->j = 5; | |
10042 | } | |
10043 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10044 | const int foo = 10; | |
10045 | } | |
10046 | ||
10047 | ; return 0; } | |
10048 | EOF | |
2c6025bc | 10049 | if { (eval echo configure:10050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10050 | rm -rf conftest* |
10051 | ac_cv_c_const=yes | |
10052 | else | |
10053 | echo "configure: failed program was:" >&5 | |
10054 | cat conftest.$ac_ext >&5 | |
10055 | rm -rf conftest* | |
10056 | ac_cv_c_const=no | |
10057 | fi | |
10058 | rm -f conftest* | |
10059 | fi | |
10060 | ||
10061 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
10062 | if test $ac_cv_c_const = no; then | |
10063 | cat >> confdefs.h <<\EOF | |
10064 | #define const | |
10065 | EOF | |
10066 | ||
10067 | fi | |
10068 | ||
10069 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
2c6025bc | 10070 | echo "configure:10071: checking for inline" >&5 |
10f2d63a VZ |
10071 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10072 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10073 | else | |
10074 | ac_cv_c_inline=no | |
10075 | for ac_kw in inline __inline__ __inline; do | |
10076 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10077 | #line 10078 "configure" |
10f2d63a VZ |
10078 | #include "confdefs.h" |
10079 | ||
10080 | int main() { | |
186837b0 | 10081 | } $ac_kw foo() { |
10f2d63a VZ |
10082 | ; return 0; } |
10083 | EOF | |
2c6025bc | 10084 | if { (eval echo configure:10085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10085 | rm -rf conftest* |
10086 | ac_cv_c_inline=$ac_kw; break | |
10087 | else | |
10088 | echo "configure: failed program was:" >&5 | |
10089 | cat conftest.$ac_ext >&5 | |
10090 | fi | |
10091 | rm -f conftest* | |
10092 | done | |
10093 | ||
10094 | fi | |
10095 | ||
10096 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
10097 | case "$ac_cv_c_inline" in | |
10098 | inline | yes) ;; | |
10099 | no) cat >> confdefs.h <<\EOF | |
10100 | #define inline | |
10101 | EOF | |
10102 | ;; | |
10103 | *) cat >> confdefs.h <<EOF | |
10104 | #define inline $ac_cv_c_inline | |
10105 | EOF | |
10106 | ;; | |
10107 | esac | |
10108 | ||
10109 | ||
10110 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
2c6025bc | 10111 | echo "configure:10112: checking size of char" >&5 |
10f2d63a VZ |
10112 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10113 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10114 | else | |
10115 | if test "$cross_compiling" = yes; then | |
10116 | ac_cv_sizeof_char=1 | |
10117 | else | |
10118 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10119 | #line 10120 "configure" |
10f2d63a VZ |
10120 | #include "confdefs.h" |
10121 | #include <stdio.h> | |
10122 | main() | |
10123 | { | |
10124 | FILE *f=fopen("conftestval", "w"); | |
10125 | if (!f) exit(1); | |
10126 | fprintf(f, "%d\n", sizeof(char)); | |
10127 | exit(0); | |
10128 | } | |
10129 | EOF | |
2c6025bc | 10130 | if { (eval echo configure:10131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10131 | then |
10132 | ac_cv_sizeof_char=`cat conftestval` | |
10133 | else | |
10134 | echo "configure: failed program was:" >&5 | |
10135 | cat conftest.$ac_ext >&5 | |
10136 | rm -fr conftest* | |
10137 | ac_cv_sizeof_char=0 | |
10138 | fi | |
10139 | rm -fr conftest* | |
10140 | fi | |
10141 | ||
10142 | fi | |
10143 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
10144 | cat >> confdefs.h <<EOF | |
10145 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10146 | EOF | |
10147 | ||
10148 | ||
6f72b082 | 10149 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
2c6025bc | 10150 | echo "configure:10151: checking size of wchar_t" >&5 |
6f72b082 OK |
10151 | if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10152 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10153 | else | |
10154 | if test "$cross_compiling" = yes; then | |
10155 | ac_cv_sizeof_wchar_t=4 | |
10156 | else | |
10157 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10158 | #line 10159 "configure" |
6f72b082 OK |
10159 | #include "confdefs.h" |
10160 | #include <stdio.h> | |
10161 | main() | |
10162 | { | |
10163 | FILE *f=fopen("conftestval", "w"); | |
10164 | if (!f) exit(1); | |
10165 | fprintf(f, "%d\n", sizeof(wchar_t)); | |
10166 | exit(0); | |
10167 | } | |
10168 | EOF | |
2c6025bc | 10169 | if { (eval echo configure:10170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6f72b082 OK |
10170 | then |
10171 | ac_cv_sizeof_wchar_t=`cat conftestval` | |
10172 | else | |
10173 | echo "configure: failed program was:" >&5 | |
10174 | cat conftest.$ac_ext >&5 | |
10175 | rm -fr conftest* | |
10176 | ac_cv_sizeof_wchar_t=0 | |
10177 | fi | |
10178 | rm -fr conftest* | |
10179 | fi | |
10180 | ||
10181 | fi | |
10182 | echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6 | |
10183 | cat >> confdefs.h <<EOF | |
10184 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | |
10185 | EOF | |
10186 | ||
10187 | ||
10f2d63a | 10188 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
2c6025bc | 10189 | echo "configure:10190: checking size of short" >&5 |
10f2d63a VZ |
10190 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10191 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10192 | else | |
10193 | if test "$cross_compiling" = yes; then | |
10194 | ac_cv_sizeof_short=2 | |
10195 | else | |
10196 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10197 | #line 10198 "configure" |
10f2d63a VZ |
10198 | #include "confdefs.h" |
10199 | #include <stdio.h> | |
10200 | main() | |
10201 | { | |
10202 | FILE *f=fopen("conftestval", "w"); | |
10203 | if (!f) exit(1); | |
10204 | fprintf(f, "%d\n", sizeof(short)); | |
10205 | exit(0); | |
10206 | } | |
10207 | EOF | |
2c6025bc | 10208 | if { (eval echo configure:10209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10209 | then |
10210 | ac_cv_sizeof_short=`cat conftestval` | |
10211 | else | |
10212 | echo "configure: failed program was:" >&5 | |
10213 | cat conftest.$ac_ext >&5 | |
10214 | rm -fr conftest* | |
10215 | ac_cv_sizeof_short=0 | |
10216 | fi | |
10217 | rm -fr conftest* | |
10218 | fi | |
10219 | ||
10220 | fi | |
10221 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
10222 | cat >> confdefs.h <<EOF | |
10223 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10224 | EOF | |
10225 | ||
10226 | ||
10227 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
2c6025bc | 10228 | echo "configure:10229: checking size of int *" >&5 |
10f2d63a VZ |
10229 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
10230 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10231 | else | |
10232 | if test "$cross_compiling" = yes; then | |
10233 | ac_cv_sizeof_int_p=4 | |
10234 | else | |
10235 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10236 | #line 10237 "configure" |
10f2d63a VZ |
10237 | #include "confdefs.h" |
10238 | #include <stdio.h> | |
10239 | main() | |
10240 | { | |
10241 | FILE *f=fopen("conftestval", "w"); | |
10242 | if (!f) exit(1); | |
10243 | fprintf(f, "%d\n", sizeof(int *)); | |
10244 | exit(0); | |
10245 | } | |
10246 | EOF | |
2c6025bc | 10247 | if { (eval echo configure:10248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10248 | then |
10249 | ac_cv_sizeof_int_p=`cat conftestval` | |
10250 | else | |
10251 | echo "configure: failed program was:" >&5 | |
10252 | cat conftest.$ac_ext >&5 | |
10253 | rm -fr conftest* | |
10254 | ac_cv_sizeof_int_p=0 | |
10255 | fi | |
10256 | rm -fr conftest* | |
10257 | fi | |
10258 | ||
10259 | fi | |
10260 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
10261 | cat >> confdefs.h <<EOF | |
10262 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10263 | EOF | |
10264 | ||
10265 | ||
10266 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
2c6025bc | 10267 | echo "configure:10268: checking size of int" >&5 |
10f2d63a VZ |
10268 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10269 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10270 | else | |
10271 | if test "$cross_compiling" = yes; then | |
10272 | ac_cv_sizeof_int=4 | |
10273 | else | |
10274 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10275 | #line 10276 "configure" |
10f2d63a VZ |
10276 | #include "confdefs.h" |
10277 | #include <stdio.h> | |
10278 | main() | |
10279 | { | |
10280 | FILE *f=fopen("conftestval", "w"); | |
10281 | if (!f) exit(1); | |
10282 | fprintf(f, "%d\n", sizeof(int)); | |
10283 | exit(0); | |
10284 | } | |
10285 | EOF | |
2c6025bc | 10286 | if { (eval echo configure:10287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10287 | then |
10288 | ac_cv_sizeof_int=`cat conftestval` | |
10289 | else | |
10290 | echo "configure: failed program was:" >&5 | |
10291 | cat conftest.$ac_ext >&5 | |
10292 | rm -fr conftest* | |
10293 | ac_cv_sizeof_int=0 | |
10294 | fi | |
10295 | rm -fr conftest* | |
10296 | fi | |
10297 | ||
10298 | fi | |
10299 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
10300 | cat >> confdefs.h <<EOF | |
10301 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10302 | EOF | |
10303 | ||
10304 | ||
10305 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
2c6025bc | 10306 | echo "configure:10307: checking size of long" >&5 |
10f2d63a VZ |
10307 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10308 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10309 | else | |
10310 | if test "$cross_compiling" = yes; then | |
10311 | ac_cv_sizeof_long=4 | |
10312 | else | |
10313 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10314 | #line 10315 "configure" |
10f2d63a VZ |
10315 | #include "confdefs.h" |
10316 | #include <stdio.h> | |
10317 | main() | |
10318 | { | |
10319 | FILE *f=fopen("conftestval", "w"); | |
10320 | if (!f) exit(1); | |
10321 | fprintf(f, "%d\n", sizeof(long)); | |
10322 | exit(0); | |
10323 | } | |
10324 | EOF | |
2c6025bc | 10325 | if { (eval echo configure:10326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10326 | then |
10327 | ac_cv_sizeof_long=`cat conftestval` | |
10328 | else | |
10329 | echo "configure: failed program was:" >&5 | |
10330 | cat conftest.$ac_ext >&5 | |
10331 | rm -fr conftest* | |
10332 | ac_cv_sizeof_long=0 | |
10333 | fi | |
10334 | rm -fr conftest* | |
10335 | fi | |
10336 | ||
10337 | fi | |
10338 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
10339 | cat >> confdefs.h <<EOF | |
10340 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10341 | EOF | |
10342 | ||
10343 | ||
10344 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
2c6025bc | 10345 | echo "configure:10346: checking size of long long" >&5 |
10f2d63a VZ |
10346 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10347 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10348 | else | |
10349 | if test "$cross_compiling" = yes; then | |
10350 | ac_cv_sizeof_long_long=0 | |
10351 | else | |
10352 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10353 | #line 10354 "configure" |
10f2d63a VZ |
10354 | #include "confdefs.h" |
10355 | #include <stdio.h> | |
10356 | main() | |
10357 | { | |
10358 | FILE *f=fopen("conftestval", "w"); | |
10359 | if (!f) exit(1); | |
10360 | fprintf(f, "%d\n", sizeof(long long)); | |
10361 | exit(0); | |
10362 | } | |
10363 | EOF | |
2c6025bc | 10364 | if { (eval echo configure:10365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10365 | then |
10366 | ac_cv_sizeof_long_long=`cat conftestval` | |
10367 | else | |
10368 | echo "configure: failed program was:" >&5 | |
10369 | cat conftest.$ac_ext >&5 | |
10370 | rm -fr conftest* | |
10371 | ac_cv_sizeof_long_long=0 | |
10372 | fi | |
10373 | rm -fr conftest* | |
10374 | fi | |
10375 | ||
10376 | fi | |
10377 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10378 | cat >> confdefs.h <<EOF | |
10379 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10380 | EOF | |
10381 | ||
10382 | ||
10383 | ||
10384 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
2c6025bc | 10385 | echo "configure:10386: checking whether byte ordering is bigendian" >&5 |
10f2d63a VZ |
10386 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
10387 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10388 | else | |
10389 | ac_cv_c_bigendian=unknown | |
10390 | # See if sys/param.h defines the BYTE_ORDER macro. | |
10391 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10392 | #line 10393 "configure" |
10f2d63a VZ |
10393 | #include "confdefs.h" |
10394 | #include <sys/types.h> | |
10395 | #include <sys/param.h> | |
10396 | int main() { | |
10397 | ||
10398 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10399 | bogus endian macros | |
10400 | #endif | |
10401 | ; return 0; } | |
10402 | EOF | |
2c6025bc | 10403 | if { (eval echo configure:10404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10404 | rm -rf conftest* |
10405 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
10406 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10407 | #line 10408 "configure" |
10f2d63a VZ |
10408 | #include "confdefs.h" |
10409 | #include <sys/types.h> | |
10410 | #include <sys/param.h> | |
10411 | int main() { | |
10412 | ||
10413 | #if BYTE_ORDER != BIG_ENDIAN | |
10414 | not big endian | |
10415 | #endif | |
10416 | ; return 0; } | |
10417 | EOF | |
2c6025bc | 10418 | if { (eval echo configure:10419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10419 | rm -rf conftest* |
10420 | ac_cv_c_bigendian=yes | |
10421 | else | |
10422 | echo "configure: failed program was:" >&5 | |
10423 | cat conftest.$ac_ext >&5 | |
10424 | rm -rf conftest* | |
10425 | ac_cv_c_bigendian=no | |
10426 | fi | |
10427 | rm -f conftest* | |
10428 | else | |
10429 | echo "configure: failed program was:" >&5 | |
10430 | cat conftest.$ac_ext >&5 | |
10431 | fi | |
10432 | rm -f conftest* | |
10433 | if test $ac_cv_c_bigendian = unknown; then | |
10434 | if test "$cross_compiling" = yes; then | |
10435 | ac_cv_c_bigendian=unknown | |
10436 | else | |
10437 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10438 | #line 10439 "configure" |
10f2d63a VZ |
10439 | #include "confdefs.h" |
10440 | main () { | |
10441 | /* Are we little or big endian? From Harbison&Steele. */ | |
10442 | union | |
10443 | { | |
10444 | long l; | |
10445 | char c[sizeof (long)]; | |
10446 | } u; | |
10447 | u.l = 1; | |
10448 | exit (u.c[sizeof (long) - 1] == 1); | |
10449 | } | |
10450 | EOF | |
2c6025bc | 10451 | if { (eval echo configure:10452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10452 | then |
10453 | ac_cv_c_bigendian=no | |
10454 | else | |
10455 | echo "configure: failed program was:" >&5 | |
10456 | cat conftest.$ac_ext >&5 | |
10457 | rm -fr conftest* | |
10458 | ac_cv_c_bigendian=yes | |
10459 | fi | |
10460 | rm -fr conftest* | |
10461 | fi | |
10462 | ||
10463 | fi | |
10464 | fi | |
10465 | ||
10466 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10467 | if test $ac_cv_c_bigendian = unknown; then | |
10468 | 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 | |
10469 | fi | |
10470 | if test $ac_cv_c_bigendian = yes; then | |
10471 | cat >> confdefs.h <<\EOF | |
10472 | #define WORDS_BIGENDIAN 1 | |
10473 | EOF | |
10474 | ||
10475 | fi | |
10476 | ||
10477 | ||
10478 | ||
10479 | if test "$cross_compiling" = "yes"; then | |
10480 | cat >> confdefs.h <<\EOF | |
10481 | #define wxUSE_IOSTREAMH 1 | |
10482 | EOF | |
10483 | ||
10484 | else | |
10485 | ||
10486 | ac_ext=C | |
10487 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10488 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10489 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10490 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10491 | cross_compiling=$ac_cv_prog_cxx_cross | |
10492 | ||
10493 | ||
10494 | for ac_hdr in iostream | |
10495 | do | |
10496 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10497 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2c6025bc | 10498 | echo "configure:10499: checking for $ac_hdr" >&5 |
10f2d63a VZ |
10499 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10500 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10501 | else | |
10502 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10503 | #line 10504 "configure" |
10f2d63a VZ |
10504 | #include "confdefs.h" |
10505 | #include <$ac_hdr> | |
10506 | EOF | |
10507 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 10508 | { (eval echo configure:10509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
10509 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10510 | if test -z "$ac_err"; then | |
10511 | rm -rf conftest* | |
10512 | eval "ac_cv_header_$ac_safe=yes" | |
10513 | else | |
10514 | echo "$ac_err" >&5 | |
10515 | echo "configure: failed program was:" >&5 | |
10516 | cat conftest.$ac_ext >&5 | |
10517 | rm -rf conftest* | |
10518 | eval "ac_cv_header_$ac_safe=no" | |
10519 | fi | |
10520 | rm -f conftest* | |
10521 | fi | |
10522 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10523 | echo "$ac_t""yes" 1>&6 | |
10524 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10525 | cat >> confdefs.h <<EOF | |
10526 | #define $ac_tr_hdr 1 | |
10527 | EOF | |
10528 | ||
10529 | else | |
10530 | echo "$ac_t""no" 1>&6 | |
10531 | fi | |
10532 | done | |
10533 | ||
10534 | ||
10535 | if test "x$HAVE_IOSTREAM" = x ; then | |
10536 | cat >> confdefs.h <<\EOF | |
10537 | #define wxUSE_IOSTREAMH 1 | |
10538 | EOF | |
10539 | ||
10540 | else | |
10541 | : | |
10542 | fi | |
10543 | ||
10544 | ac_ext=c | |
10545 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10546 | ac_cpp='$CPP $CPPFLAGS' | |
10547 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10548 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10549 | cross_compiling=$ac_cv_prog_cc_cross | |
10550 | ||
10551 | fi | |
10552 | ||
10553 | ||
10554 | ||
10555 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
2c6025bc | 10556 | echo "configure:10557: checking if C++ compiler supports bool" >&5 |
10f2d63a VZ |
10557 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
10558 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10559 | else | |
10560 | ||
10561 | ||
10562 | ac_ext=C | |
10563 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10564 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10565 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10566 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10567 | cross_compiling=$ac_cv_prog_cxx_cross | |
10568 | ||
10569 | ||
10570 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10571 | #line 10572 "configure" |
10f2d63a VZ |
10572 | #include "confdefs.h" |
10573 | ||
10574 | ||
10575 | int main() { | |
10576 | ||
10577 | bool b = true; | |
10578 | ||
10579 | return 0; | |
10580 | ||
10581 | ; return 0; } | |
10582 | EOF | |
2c6025bc | 10583 | if { (eval echo configure:10584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10584 | rm -rf conftest* |
10585 | ||
10586 | cat >> confdefs.h <<\EOF | |
10587 | #define HAVE_BOOL 1 | |
10588 | EOF | |
10589 | ||
10590 | wx_cv_cpp_bool=yes | |
10591 | ||
10592 | else | |
10593 | echo "configure: failed program was:" >&5 | |
10594 | cat conftest.$ac_ext >&5 | |
10595 | rm -rf conftest* | |
10596 | ||
10597 | wx_cv_cpp_bool=no | |
10598 | ||
10599 | ||
10600 | fi | |
10601 | rm -f conftest* | |
10602 | ||
10603 | ac_ext=c | |
10604 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10605 | ac_cpp='$CPP $CPPFLAGS' | |
10606 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10607 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10608 | cross_compiling=$ac_cv_prog_cc_cross | |
10609 | ||
10610 | ||
10611 | fi | |
10612 | ||
10613 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10614 | ||
10615 | if test "$wx_cv_cpp_bool" = "yes"; then | |
10616 | cat >> confdefs.h <<\EOF | |
10617 | #define HAVE_BOOL 1 | |
10618 | EOF | |
10619 | ||
10620 | fi | |
10621 | ||
10622 | ||
10623 | ||
10f2d63a | 10624 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 |
2c6025bc | 10625 | echo "configure:10626: checking if you need GNU extensions" >&5 |
10f2d63a VZ |
10626 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then |
10627 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10628 | else | |
10629 | ||
10630 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10631 | #line 10632 "configure" |
10f2d63a VZ |
10632 | #include "confdefs.h" |
10633 | #include <features.h> | |
10634 | int main() { | |
10635 | ||
10636 | ||
10637 | #ifndef __GNU_LIBRARY__ | |
10638 | Compile error wanted | |
10639 | #endif | |
10640 | ||
10641 | ||
10642 | ; return 0; } | |
10643 | EOF | |
2c6025bc | 10644 | if { (eval echo configure:10645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10645 | rm -rf conftest* |
10646 | wx_cv_gnu_extensions=yes | |
10647 | else | |
10648 | echo "configure: failed program was:" >&5 | |
10649 | cat conftest.$ac_ext >&5 | |
10650 | rm -rf conftest* | |
10651 | wx_cv_gnu_extensions=no | |
10652 | fi | |
10653 | rm -f conftest* | |
10654 | ||
10655 | fi | |
10656 | ||
10657 | ||
10658 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
10659 | if test "$wx_cv_gnu_extensions" = "yes"; then | |
10660 | cat >> confdefs.h <<EOF | |
10661 | #define _GNU_SOURCE 1 | |
10662 | EOF | |
10663 | ||
10664 | fi | |
10665 | ||
10666 | ||
10667 | ||
10668 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
2c6025bc | 10669 | echo "configure:10670: checking for wcslen in -lc" >&5 |
10f2d63a VZ |
10670 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
10671 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10672 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10673 | else | |
10674 | ac_save_LIBS="$LIBS" | |
10675 | LIBS="-lc $LIBS" | |
10676 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10677 | #line 10678 "configure" |
10f2d63a VZ |
10678 | #include "confdefs.h" |
10679 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10680 | /* We use char because int might match the return type of a gcc2 | |
10681 | builtin and then its argument prototype would still apply. */ | |
10682 | char wcslen(); | |
10683 | ||
10684 | int main() { | |
10685 | wcslen() | |
10686 | ; return 0; } | |
10687 | EOF | |
2c6025bc | 10688 | if { (eval echo configure:10689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10689 | rm -rf conftest* |
10690 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10691 | else | |
10692 | echo "configure: failed program was:" >&5 | |
10693 | cat conftest.$ac_ext >&5 | |
10694 | rm -rf conftest* | |
10695 | eval "ac_cv_lib_$ac_lib_var=no" | |
10696 | fi | |
10697 | rm -f conftest* | |
10698 | LIBS="$ac_save_LIBS" | |
10699 | ||
10700 | fi | |
10701 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10702 | echo "$ac_t""yes" 1>&6 | |
10703 | ||
10704 | cat >> confdefs.h <<\EOF | |
10705 | #define HAVE_WCSLEN 1 | |
10706 | EOF | |
10707 | ||
10708 | WCHAR_LINK="" | |
10709 | ||
10710 | else | |
10711 | echo "$ac_t""no" 1>&6 | |
10712 | ||
10713 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
2c6025bc | 10714 | echo "configure:10715: checking for wcslen in -lw" >&5 |
10f2d63a VZ |
10715 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
10716 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10717 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10718 | else | |
10719 | ac_save_LIBS="$LIBS" | |
10720 | LIBS="-lw $LIBS" | |
10721 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10722 | #line 10723 "configure" |
10f2d63a VZ |
10723 | #include "confdefs.h" |
10724 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10725 | /* We use char because int might match the return type of a gcc2 | |
10726 | builtin and then its argument prototype would still apply. */ | |
10727 | char wcslen(); | |
10728 | ||
10729 | int main() { | |
10730 | wcslen() | |
10731 | ; return 0; } | |
10732 | EOF | |
2c6025bc | 10733 | if { (eval echo configure:10734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10734 | rm -rf conftest* |
10735 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10736 | else | |
10737 | echo "configure: failed program was:" >&5 | |
10738 | cat conftest.$ac_ext >&5 | |
10739 | rm -rf conftest* | |
10740 | eval "ac_cv_lib_$ac_lib_var=no" | |
10741 | fi | |
10742 | rm -f conftest* | |
10743 | LIBS="$ac_save_LIBS" | |
10744 | ||
10745 | fi | |
10746 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10747 | echo "$ac_t""yes" 1>&6 | |
10748 | ||
10749 | cat >> confdefs.h <<\EOF | |
10750 | #define HAVE_WCSLEN 1 | |
10751 | EOF | |
10752 | ||
10753 | WCHAR_LINK="-lw" | |
10754 | ||
10755 | else | |
10756 | echo "$ac_t""no" 1>&6 | |
10757 | fi | |
10758 | ||
10759 | ||
10760 | fi | |
10761 | ||
10762 | ||
10763 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
2c6025bc | 10764 | echo "configure:10765: checking for vprintf" >&5 |
10f2d63a VZ |
10765 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
10766 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10767 | else | |
10768 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10769 | #line 10770 "configure" |
10f2d63a VZ |
10770 | #include "confdefs.h" |
10771 | /* System header to define __stub macros and hopefully few prototypes, | |
10772 | which can conflict with char vprintf(); below. */ | |
10773 | #include <assert.h> | |
10774 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10775 | /* We use char because int might match the return type of a gcc2 | |
10776 | builtin and then its argument prototype would still apply. */ | |
10777 | char vprintf(); | |
10778 | ||
10779 | int main() { | |
10780 | ||
10781 | /* The GNU C library defines this for functions which it implements | |
10782 | to always fail with ENOSYS. Some functions are actually named | |
10783 | something starting with __ and the normal name is an alias. */ | |
10784 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
10785 | choke me | |
10786 | #else | |
e8482f24 | 10787 | vprintf(); |
10f2d63a VZ |
10788 | #endif |
10789 | ||
10790 | ; return 0; } | |
10791 | EOF | |
2c6025bc | 10792 | if { (eval echo configure:10793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10793 | rm -rf conftest* |
10794 | eval "ac_cv_func_vprintf=yes" | |
10795 | else | |
10796 | echo "configure: failed program was:" >&5 | |
10797 | cat conftest.$ac_ext >&5 | |
10798 | rm -rf conftest* | |
10799 | eval "ac_cv_func_vprintf=no" | |
10800 | fi | |
10801 | rm -f conftest* | |
10802 | fi | |
10803 | ||
10804 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
10805 | echo "$ac_t""yes" 1>&6 | |
10806 | cat >> confdefs.h <<\EOF | |
10807 | #define HAVE_VPRINTF 1 | |
10808 | EOF | |
10809 | ||
10810 | else | |
10811 | echo "$ac_t""no" 1>&6 | |
10812 | fi | |
10813 | ||
10814 | if test "$ac_cv_func_vprintf" != yes; then | |
10815 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
2c6025bc | 10816 | echo "configure:10817: checking for _doprnt" >&5 |
10f2d63a VZ |
10817 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
10818 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10819 | else | |
10820 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10821 | #line 10822 "configure" |
10f2d63a VZ |
10822 | #include "confdefs.h" |
10823 | /* System header to define __stub macros and hopefully few prototypes, | |
10824 | which can conflict with char _doprnt(); below. */ | |
10825 | #include <assert.h> | |
10826 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10827 | /* We use char because int might match the return type of a gcc2 | |
10828 | builtin and then its argument prototype would still apply. */ | |
10829 | char _doprnt(); | |
10830 | ||
10831 | int main() { | |
10832 | ||
10833 | /* The GNU C library defines this for functions which it implements | |
10834 | to always fail with ENOSYS. Some functions are actually named | |
10835 | something starting with __ and the normal name is an alias. */ | |
10836 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
10837 | choke me | |
10838 | #else | |
e8482f24 | 10839 | _doprnt(); |
10f2d63a VZ |
10840 | #endif |
10841 | ||
10842 | ; return 0; } | |
10843 | EOF | |
2c6025bc | 10844 | if { (eval echo configure:10845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10845 | rm -rf conftest* |
10846 | eval "ac_cv_func__doprnt=yes" | |
10847 | else | |
10848 | echo "configure: failed program was:" >&5 | |
10849 | cat conftest.$ac_ext >&5 | |
10850 | rm -rf conftest* | |
10851 | eval "ac_cv_func__doprnt=no" | |
10852 | fi | |
10853 | rm -f conftest* | |
10854 | fi | |
10855 | ||
10856 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
10857 | echo "$ac_t""yes" 1>&6 | |
10858 | cat >> confdefs.h <<\EOF | |
10859 | #define HAVE_DOPRNT 1 | |
10860 | EOF | |
10861 | ||
10862 | else | |
10863 | echo "$ac_t""no" 1>&6 | |
10864 | fi | |
10865 | ||
10866 | fi | |
10867 | ||
10868 | ||
10f2d63a | 10869 | |
f6bcfd97 BP |
10870 | ac_ext=C |
10871 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10872 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10873 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10874 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10875 | cross_compiling=$ac_cv_prog_cxx_cross | |
10876 | ||
10877 | ||
10878 | ||
10879 | ||
c521c494 | 10880 | |
9d8deca0 | 10881 | |
f6bcfd97 | 10882 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
2c6025bc | 10883 | echo "configure:10884: checking for vsnprintf" >&5 |
f6bcfd97 BP |
10884 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
10885 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10886 | else | |
10887 | ||
10888 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 10889 | #line 10890 "configure" |
f6bcfd97 BP |
10890 | #include "confdefs.h" |
10891 | ||
10892 | #include <stdio.h> | |
10893 | #include <stdarg.h> | |
10894 | ||
10f2d63a VZ |
10895 | int main() { |
10896 | ||
f6bcfd97 | 10897 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 10898 | |
f6bcfd97 BP |
10899 | wx_test_vsnprintf("%s"); |
10900 | return 0; | |
10901 | } | |
10902 | ||
10903 | int wx_test_vsnprintf(const char *fmt, ...) | |
10904 | { | |
10905 | char *s; | |
10906 | ||
10907 | va_list argp; | |
10908 | va_start(argp, fmt); | |
10909 | vsnprintf(s, 42, fmt, argp); | |
10910 | va_end(argp); | |
10911 | ||
10f2d63a VZ |
10912 | ; return 0; } |
10913 | EOF | |
2c6025bc | 10914 | if { (eval echo configure:10915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 10915 | rm -rf conftest* |
f6bcfd97 | 10916 | |
f6bcfd97 BP |
10917 | wx_cv_func_vsnprintf=yes |
10918 | ||
10f2d63a VZ |
10919 | else |
10920 | echo "configure: failed program was:" >&5 | |
10921 | cat conftest.$ac_ext >&5 | |
10922 | rm -rf conftest* | |
f6bcfd97 | 10923 | |
c521c494 | 10924 | cat > conftest.$ac_ext <<EOF |
2c6025bc | 10925 | #line 10926 "configure" |
c521c494 RL |
10926 | #include "confdefs.h" |
10927 | ||
10928 | #include <stdio.h> | |
10929 | #include <stdarg.h> | |
10930 | ||
10931 | int main() { | |
10932 | ||
10933 | int wx_test_vsnprintf(const char *, ...); | |
10934 | ||
10935 | wx_test_vsnprintf("%s"); | |
10936 | return 0; | |
10937 | } | |
10938 | ||
10939 | int wx_test_vsnprintf(const char *fmt, ...) | |
10940 | { | |
10941 | char *s; | |
10942 | ||
10943 | va_list argp; | |
10944 | va_start(argp, fmt); | |
10945 | _vsnprintf(s, 42, fmt, argp); | |
10946 | va_end(argp); | |
10947 | ||
10948 | ; return 0; } | |
10949 | EOF | |
2c6025bc | 10950 | if { (eval echo configure:10951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c521c494 RL |
10951 | rm -rf conftest* |
10952 | ||
c521c494 RL |
10953 | wx_cv_func_vsnprintf=yes |
10954 | ||
10955 | else | |
10956 | echo "configure: failed program was:" >&5 | |
10957 | cat conftest.$ac_ext >&5 | |
10958 | rm -rf conftest* | |
10959 | ||
c521c494 RL |
10960 | wx_cv_func_vsnprintf=no |
10961 | ||
10962 | fi | |
10963 | rm -f conftest* | |
f6bcfd97 | 10964 | |
10f2d63a VZ |
10965 | fi |
10966 | rm -f conftest* | |
10f2d63a | 10967 | |
10f2d63a | 10968 | fi |
10f2d63a | 10969 | |
f6bcfd97 | 10970 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
10f2d63a | 10971 | |
9d8deca0 VZ |
10972 | if test "$wx_cv_func_vsnprintf" = yes; then |
10973 | cat >> confdefs.h <<\EOF | |
10974 | #define HAVE_VSNPRINTF 1 | |
10975 | EOF | |
10976 | ||
10977 | else | |
10978 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
10979 | fi | |
10980 | ||
10f2d63a | 10981 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
2c6025bc | 10982 | echo "configure:10983: checking for vsscanf" >&5 |
10f2d63a VZ |
10983 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
10984 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10985 | else | |
10986 | ||
10f2d63a | 10987 | cat > conftest.$ac_ext <<EOF |
2c6025bc | 10988 | #line 10989 "configure" |
10f2d63a | 10989 | #include "confdefs.h" |
10f2d63a | 10990 | |
f6bcfd97 BP |
10991 | #include <stdio.h> |
10992 | #include <stdarg.h> | |
10993 | ||
10994 | int main() { | |
10f2d63a | 10995 | |
f6bcfd97 | 10996 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 10997 | |
f6bcfd97 BP |
10998 | wx_test_vsscanf("%d"); |
10999 | return 0; | |
10f2d63a VZ |
11000 | } |
11001 | ||
f6bcfd97 | 11002 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 11003 | { |
f6bcfd97 BP |
11004 | va_list argp; |
11005 | va_start(argp, fmt); | |
11006 | vsscanf("42", fmt, argp); | |
11007 | va_end(argp); | |
11008 | ||
11009 | ; return 0; } | |
10f2d63a | 11010 | EOF |
2c6025bc | 11011 | if { (eval echo configure:11012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f6bcfd97 | 11012 | rm -rf conftest* |
10f2d63a | 11013 | |
f6bcfd97 BP |
11014 | wx_cv_func_vsscanf=yes |
11015 | ||
10f2d63a VZ |
11016 | else |
11017 | echo "configure: failed program was:" >&5 | |
11018 | cat conftest.$ac_ext >&5 | |
f6bcfd97 BP |
11019 | rm -rf conftest* |
11020 | ||
11021 | wx_cv_func_vsscanf=no | |
11022 | ||
10f2d63a | 11023 | fi |
f6bcfd97 | 11024 | rm -f conftest* |
10f2d63a VZ |
11025 | |
11026 | fi | |
11027 | ||
11028 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
11029 | ||
9d8deca0 VZ |
11030 | if test "$wx_cv_func_vsscanf" = yes; then |
11031 | cat >> confdefs.h <<\EOF | |
11032 | #define HAVE_VSSCANF 1 | |
11033 | EOF | |
11034 | ||
11035 | fi | |
11036 | ||
10f2d63a VZ |
11037 | ac_ext=c |
11038 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11039 | ac_cpp='$CPP $CPPFLAGS' | |
11040 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11041 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11042 | cross_compiling=$ac_cv_prog_cc_cross | |
11043 | ||
11044 | ||
b089607b | 11045 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 11046 | |
eb4efbdc VZ |
11047 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
11048 | for ac_func in sigaction | |
11049 | do | |
11050 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 11051 | echo "configure:11052: checking for $ac_func" >&5 |
eb4efbdc VZ |
11052 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11054 | else | |
11055 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 11056 | #line 11057 "configure" |
eb4efbdc VZ |
11057 | #include "confdefs.h" |
11058 | /* System header to define __stub macros and hopefully few prototypes, | |
11059 | which can conflict with char $ac_func(); below. */ | |
11060 | #include <assert.h> | |
11061 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11062 | /* We use char because int might match the return type of a gcc2 | |
11063 | builtin and then its argument prototype would still apply. */ | |
11064 | char $ac_func(); | |
11065 | ||
11066 | int main() { | |
11067 | ||
11068 | /* The GNU C library defines this for functions which it implements | |
11069 | to always fail with ENOSYS. Some functions are actually named | |
11070 | something starting with __ and the normal name is an alias. */ | |
11071 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11072 | choke me | |
11073 | #else | |
11074 | $ac_func(); | |
11075 | #endif | |
11076 | ||
11077 | ; return 0; } | |
11078 | EOF | |
2c6025bc | 11079 | if { (eval echo configure:11080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
eb4efbdc VZ |
11080 | rm -rf conftest* |
11081 | eval "ac_cv_func_$ac_func=yes" | |
11082 | else | |
11083 | echo "configure: failed program was:" >&5 | |
11084 | cat conftest.$ac_ext >&5 | |
11085 | rm -rf conftest* | |
11086 | eval "ac_cv_func_$ac_func=no" | |
11087 | fi | |
11088 | rm -f conftest* | |
11089 | fi | |
11090 | ||
11091 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11092 | echo "$ac_t""yes" 1>&6 | |
11093 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11094 | cat >> confdefs.h <<EOF | |
11095 | #define $ac_tr_func 1 | |
11096 | EOF | |
11097 | ||
11098 | else | |
11099 | echo "$ac_t""no" 1>&6 | |
11100 | fi | |
11101 | done | |
11102 | ||
11103 | ||
11104 | if test "$ac_cv_func_sigaction" = "no"; then | |
11105 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
11106 | wxUSE_ON_FATAL_EXCEPTION=no | |
11107 | fi | |
f6bcfd97 BP |
11108 | |
11109 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
11110 | ||
11111 | ac_ext=C | |
11112 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11113 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11114 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11115 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11116 | cross_compiling=$ac_cv_prog_cxx_cross | |
11117 | ||
11118 | ||
11119 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
2c6025bc | 11120 | echo "configure:11121: checking for sa_handler type" >&5 |
f6bcfd97 BP |
11121 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
11122 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11123 | else | |
11124 | ||
11125 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 11126 | #line 11127 "configure" |
f6bcfd97 BP |
11127 | #include "confdefs.h" |
11128 | #include <signal.h> | |
11129 | int main() { | |
11130 | ||
11131 | extern void testSigHandler(int); | |
11132 | ||
11133 | struct sigaction sa; | |
11134 | sa.sa_handler = testSigHandler; | |
11135 | ||
11136 | ; return 0; } | |
11137 | EOF | |
2c6025bc | 11138 | if { (eval echo configure:11139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f6bcfd97 BP |
11139 | rm -rf conftest* |
11140 | ||
11141 | wx_cv_type_sa_handler=int | |
11142 | ||
11143 | else | |
11144 | echo "configure: failed program was:" >&5 | |
11145 | cat conftest.$ac_ext >&5 | |
11146 | rm -rf conftest* | |
11147 | ||
11148 | wx_cv_type_sa_handler=void | |
11149 | ||
11150 | fi | |
11151 | rm -f conftest* | |
11152 | ||
11153 | fi | |
11154 | ||
11155 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
11156 | ||
11157 | ac_ext=c | |
11158 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11159 | ac_cpp='$CPP $CPPFLAGS' | |
11160 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11161 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11162 | cross_compiling=$ac_cv_prog_cc_cross | |
11163 | ||
11164 | ||
11165 | cat >> confdefs.h <<EOF | |
11166 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
11167 | EOF | |
11168 | ||
11169 | fi | |
eb4efbdc VZ |
11170 | fi |
11171 | ||
10f2d63a VZ |
11172 | for ac_func in vfork |
11173 | do | |
11174 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 11175 | echo "configure:11176: checking for $ac_func" >&5 |
10f2d63a VZ |
11176 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11177 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11178 | else | |
11179 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 11180 | #line 11181 "configure" |
10f2d63a VZ |
11181 | #include "confdefs.h" |
11182 | /* System header to define __stub macros and hopefully few prototypes, | |
11183 | which can conflict with char $ac_func(); below. */ | |
11184 | #include <assert.h> | |
11185 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11186 | /* We use char because int might match the return type of a gcc2 | |
11187 | builtin and then its argument prototype would still apply. */ | |
11188 | char $ac_func(); | |
11189 | ||
11190 | int main() { | |
11191 | ||
11192 | /* The GNU C library defines this for functions which it implements | |
11193 | to always fail with ENOSYS. Some functions are actually named | |
11194 | something starting with __ and the normal name is an alias. */ | |
11195 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11196 | choke me | |
11197 | #else | |
e8482f24 | 11198 | $ac_func(); |
10f2d63a VZ |
11199 | #endif |
11200 | ||
11201 | ; return 0; } | |
11202 | EOF | |
2c6025bc | 11203 | if { (eval echo configure:11204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
270a909e VZ |
11204 | rm -rf conftest* |
11205 | eval "ac_cv_func_$ac_func=yes" | |
11206 | else | |
11207 | echo "configure: failed program was:" >&5 | |
11208 | cat conftest.$ac_ext >&5 | |
11209 | rm -rf conftest* | |
11210 | eval "ac_cv_func_$ac_func=no" | |
11211 | fi | |
11212 | rm -f conftest* | |
11213 | fi | |
11214 | ||
11215 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11216 | echo "$ac_t""yes" 1>&6 | |
11217 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11218 | cat >> confdefs.h <<EOF | |
11219 | #define $ac_tr_func 1 | |
11220 | EOF | |
11221 | ||
11222 | else | |
11223 | echo "$ac_t""no" 1>&6 | |
11224 | fi | |
11225 | done | |
11226 | ||
11227 | ||
11228 | for ac_func in timegm | |
11229 | do | |
11230 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 11231 | echo "configure:11232: checking for $ac_func" >&5 |
270a909e VZ |
11232 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11233 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11234 | else | |
11235 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 11236 | #line 11237 "configure" |
270a909e VZ |
11237 | #include "confdefs.h" |
11238 | /* System header to define __stub macros and hopefully few prototypes, | |
11239 | which can conflict with char $ac_func(); below. */ | |
11240 | #include <assert.h> | |
11241 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11242 | /* We use char because int might match the return type of a gcc2 | |
11243 | builtin and then its argument prototype would still apply. */ | |
11244 | char $ac_func(); | |
11245 | ||
11246 | int main() { | |
11247 | ||
11248 | /* The GNU C library defines this for functions which it implements | |
11249 | to always fail with ENOSYS. Some functions are actually named | |
11250 | something starting with __ and the normal name is an alias. */ | |
11251 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11252 | choke me | |
11253 | #else | |
e8482f24 | 11254 | $ac_func(); |
270a909e VZ |
11255 | #endif |
11256 | ||
11257 | ; return 0; } | |
11258 | EOF | |
2c6025bc | 11259 | if { (eval echo configure:11260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11260 | rm -rf conftest* |
11261 | eval "ac_cv_func_$ac_func=yes" | |
11262 | else | |
11263 | echo "configure: failed program was:" >&5 | |
11264 | cat conftest.$ac_ext >&5 | |
11265 | rm -rf conftest* | |
11266 | eval "ac_cv_func_$ac_func=no" | |
11267 | fi | |
11268 | rm -f conftest* | |
11269 | fi | |
11270 | ||
11271 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11272 | echo "$ac_t""yes" 1>&6 | |
11273 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11274 | cat >> confdefs.h <<EOF | |
11275 | #define $ac_tr_func 1 | |
11276 | EOF | |
11277 | ||
11278 | else | |
11279 | echo "$ac_t""no" 1>&6 | |
11280 | fi | |
11281 | done | |
11282 | ||
11283 | ||
8fd0d89b VZ |
11284 | for ac_func in putenv setenv |
11285 | do | |
11286 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 11287 | echo "configure:11288: checking for $ac_func" >&5 |
8fd0d89b VZ |
11288 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11290 | else | |
11291 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 11292 | #line 11293 "configure" |
8fd0d89b VZ |
11293 | #include "confdefs.h" |
11294 | /* System header to define __stub macros and hopefully few prototypes, | |
11295 | which can conflict with char $ac_func(); below. */ | |
11296 | #include <assert.h> | |
11297 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11298 | /* We use char because int might match the return type of a gcc2 | |
11299 | builtin and then its argument prototype would still apply. */ | |
11300 | char $ac_func(); | |
11301 | ||
11302 | int main() { | |
11303 | ||
11304 | /* The GNU C library defines this for functions which it implements | |
11305 | to always fail with ENOSYS. Some functions are actually named | |
11306 | something starting with __ and the normal name is an alias. */ | |
11307 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11308 | choke me | |
11309 | #else | |
11310 | $ac_func(); | |
11311 | #endif | |
11312 | ||
11313 | ; return 0; } | |
11314 | EOF | |
2c6025bc | 11315 | if { (eval echo configure:11316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8fd0d89b VZ |
11316 | rm -rf conftest* |
11317 | eval "ac_cv_func_$ac_func=yes" | |
11318 | else | |
11319 | echo "configure: failed program was:" >&5 | |
11320 | cat conftest.$ac_ext >&5 | |
11321 | rm -rf conftest* | |
11322 | eval "ac_cv_func_$ac_func=no" | |
11323 | fi | |
11324 | rm -f conftest* | |
11325 | fi | |
11326 | ||
11327 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11328 | echo "$ac_t""yes" 1>&6 | |
11329 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11330 | cat >> confdefs.h <<EOF | |
11331 | #define $ac_tr_func 1 | |
11332 | EOF | |
11333 | break | |
11334 | else | |
11335 | echo "$ac_t""no" 1>&6 | |
11336 | fi | |
11337 | done | |
11338 | ||
11339 | ||
b12915c1 VZ |
11340 | HAVE_SOME_SLEEP_FUNC=0 |
11341 | if test "$USE_BEOS" = 1; then | |
11342 | cat >> confdefs.h <<\EOF | |
11343 | #define HAVE_SLEEP 1 | |
11344 | EOF | |
11345 | ||
11346 | HAVE_SOME_SLEEP_FUNC=1 | |
11347 | fi | |
11348 | ||
b4085ce6 GD |
11349 | if test "$USE_MAC" = 1; then |
11350 | cat >> confdefs.h <<\EOF | |
11351 | #define HAVE_USLEEP 1 | |
11352 | EOF | |
11353 | ||
11354 | HAVE_SOME_SLEEP_FUNC=1 | |
11355 | fi | |
11356 | ||
b12915c1 VZ |
11357 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
11358 | POSIX4_LINK= | |
11359 | for ac_func in nanosleep | |
10f2d63a VZ |
11360 | do |
11361 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 11362 | echo "configure:11363: checking for $ac_func" >&5 |
10f2d63a VZ |
11363 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11365 | else | |
11366 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 11367 | #line 11368 "configure" |
10f2d63a VZ |
11368 | #include "confdefs.h" |
11369 | /* System header to define __stub macros and hopefully few prototypes, | |
11370 | which can conflict with char $ac_func(); below. */ | |
11371 | #include <assert.h> | |
11372 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11373 | /* We use char because int might match the return type of a gcc2 | |
11374 | builtin and then its argument prototype would still apply. */ | |
11375 | char $ac_func(); | |
11376 | ||
11377 | int main() { | |
11378 | ||
11379 | /* The GNU C library defines this for functions which it implements | |
11380 | to always fail with ENOSYS. Some functions are actually named | |
11381 | something starting with __ and the normal name is an alias. */ | |
11382 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11383 | choke me | |
11384 | #else | |
e8482f24 | 11385 | $ac_func(); |
10f2d63a VZ |
11386 | #endif |
11387 | ||
11388 | ; return 0; } | |
11389 | EOF | |
2c6025bc | 11390 | if { (eval echo configure:11391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11391 | rm -rf conftest* |
11392 | eval "ac_cv_func_$ac_func=yes" | |
11393 | else | |
11394 | echo "configure: failed program was:" >&5 | |
11395 | cat conftest.$ac_ext >&5 | |
11396 | rm -rf conftest* | |
11397 | eval "ac_cv_func_$ac_func=no" | |
11398 | fi | |
11399 | rm -f conftest* | |
11400 | fi | |
11401 | ||
11402 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11403 | echo "$ac_t""yes" 1>&6 | |
11404 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11405 | cat >> confdefs.h <<EOF | |
11406 | #define $ac_tr_func 1 | |
11407 | EOF | |
11408 | cat >> confdefs.h <<\EOF | |
11409 | #define HAVE_NANOSLEEP 1 | |
11410 | EOF | |
11411 | ||
11412 | else | |
11413 | echo "$ac_t""no" 1>&6 | |
11414 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
2c6025bc | 11415 | echo "configure:11416: checking for nanosleep in -lposix4" >&5 |
10f2d63a VZ |
11416 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
11417 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11418 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11419 | else | |
11420 | ac_save_LIBS="$LIBS" | |
11421 | LIBS="-lposix4 $LIBS" | |
11422 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 11423 | #line 11424 "configure" |
10f2d63a VZ |
11424 | #include "confdefs.h" |
11425 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11426 | /* We use char because int might match the return type of a gcc2 | |
11427 | builtin and then its argument prototype would still apply. */ | |
11428 | char nanosleep(); | |
11429 | ||
11430 | int main() { | |
11431 | nanosleep() | |
11432 | ; return 0; } | |
11433 | EOF | |
2c6025bc | 11434 | if { (eval echo configure:11435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11435 | rm -rf conftest* |
11436 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11437 | else | |
11438 | echo "configure: failed program was:" >&5 | |
11439 | cat conftest.$ac_ext >&5 | |
11440 | rm -rf conftest* | |
11441 | eval "ac_cv_lib_$ac_lib_var=no" | |
11442 | fi | |
11443 | rm -f conftest* | |
11444 | LIBS="$ac_save_LIBS" | |
11445 | ||
11446 | fi | |
11447 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11448 | echo "$ac_t""yes" 1>&6 | |
11449 | ||
b12915c1 | 11450 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11451 | #define HAVE_NANOSLEEP 1 |
11452 | EOF | |
11453 | ||
b12915c1 VZ |
11454 | POSIX4_LINK="-lposix4" |
11455 | ||
10f2d63a VZ |
11456 | else |
11457 | echo "$ac_t""no" 1>&6 | |
11458 | ||
b12915c1 | 11459 | for ac_func in usleep |
10f2d63a VZ |
11460 | do |
11461 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 11462 | echo "configure:11463: checking for $ac_func" >&5 |
10f2d63a VZ |
11463 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11464 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11465 | else | |
11466 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 11467 | #line 11468 "configure" |
10f2d63a VZ |
11468 | #include "confdefs.h" |
11469 | /* System header to define __stub macros and hopefully few prototypes, | |
11470 | which can conflict with char $ac_func(); below. */ | |
11471 | #include <assert.h> | |
11472 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11473 | /* We use char because int might match the return type of a gcc2 | |
11474 | builtin and then its argument prototype would still apply. */ | |
11475 | char $ac_func(); | |
11476 | ||
11477 | int main() { | |
11478 | ||
11479 | /* The GNU C library defines this for functions which it implements | |
11480 | to always fail with ENOSYS. Some functions are actually named | |
11481 | something starting with __ and the normal name is an alias. */ | |
11482 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11483 | choke me | |
11484 | #else | |
e8482f24 | 11485 | $ac_func(); |
10f2d63a VZ |
11486 | #endif |
11487 | ||
11488 | ; return 0; } | |
11489 | EOF | |
2c6025bc | 11490 | if { (eval echo configure:11491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11491 | rm -rf conftest* |
11492 | eval "ac_cv_func_$ac_func=yes" | |
11493 | else | |
11494 | echo "configure: failed program was:" >&5 | |
11495 | cat conftest.$ac_ext >&5 | |
11496 | rm -rf conftest* | |
11497 | eval "ac_cv_func_$ac_func=no" | |
11498 | fi | |
11499 | rm -f conftest* | |
11500 | fi | |
11501 | ||
11502 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11503 | echo "$ac_t""yes" 1>&6 | |
11504 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11505 | cat >> confdefs.h <<EOF | |
11506 | #define $ac_tr_func 1 | |
11507 | EOF | |
b4085ce6 GD |
11508 | cat >> confdefs.h <<\EOF |
11509 | #define HAVE_USLEEP 1 | |
11510 | EOF | |
11511 | ||
10f2d63a VZ |
11512 | else |
11513 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11514 | fi |
11515 | done | |
11516 | ||
b12915c1 VZ |
11517 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
11518 | ||
11519 | ||
10f2d63a VZ |
11520 | fi |
11521 | ||
b12915c1 VZ |
11522 | |
11523 | ||
10f2d63a VZ |
11524 | fi |
11525 | done | |
11526 | ||
b12915c1 | 11527 | fi |
10f2d63a VZ |
11528 | |
11529 | for ac_func in uname gethostname | |
11530 | do | |
11531 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 11532 | echo "configure:11533: checking for $ac_func" >&5 |
10f2d63a VZ |
11533 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11534 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11535 | else | |
11536 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 11537 | #line 11538 "configure" |
10f2d63a VZ |
11538 | #include "confdefs.h" |
11539 | /* System header to define __stub macros and hopefully few prototypes, | |
11540 | which can conflict with char $ac_func(); below. */ | |
11541 | #include <assert.h> | |
11542 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11543 | /* We use char because int might match the return type of a gcc2 | |
11544 | builtin and then its argument prototype would still apply. */ | |
11545 | char $ac_func(); | |
11546 | ||
11547 | int main() { | |
11548 | ||
11549 | /* The GNU C library defines this for functions which it implements | |
11550 | to always fail with ENOSYS. Some functions are actually named | |
11551 | something starting with __ and the normal name is an alias. */ | |
11552 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11553 | choke me | |
11554 | #else | |
e8482f24 | 11555 | $ac_func(); |
10f2d63a VZ |
11556 | #endif |
11557 | ||
11558 | ; return 0; } | |
11559 | EOF | |
2c6025bc | 11560 | if { (eval echo configure:11561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11561 | rm -rf conftest* |
11562 | eval "ac_cv_func_$ac_func=yes" | |
11563 | else | |
11564 | echo "configure: failed program was:" >&5 | |
11565 | cat conftest.$ac_ext >&5 | |
11566 | rm -rf conftest* | |
11567 | eval "ac_cv_func_$ac_func=no" | |
11568 | fi | |
11569 | rm -f conftest* | |
11570 | fi | |
11571 | ||
11572 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11573 | echo "$ac_t""yes" 1>&6 | |
11574 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11575 | cat >> confdefs.h <<EOF | |
11576 | #define $ac_tr_func 1 | |
11577 | EOF | |
11578 | break | |
11579 | else | |
11580 | echo "$ac_t""no" 1>&6 | |
11581 | fi | |
11582 | done | |
11583 | ||
11584 | ||
6098c7f9 VZ |
11585 | |
11586 | ac_ext=C | |
11587 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11588 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11589 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11590 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11591 | cross_compiling=$ac_cv_prog_cxx_cross | |
11592 | ||
11593 | ||
10f2d63a VZ |
11594 | for ac_func in strtok_r |
11595 | do | |
11596 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 11597 | echo "configure:11598: checking for $ac_func" >&5 |
10f2d63a VZ |
11598 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11599 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11600 | else | |
11601 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 11602 | #line 11603 "configure" |
10f2d63a VZ |
11603 | #include "confdefs.h" |
11604 | /* System header to define __stub macros and hopefully few prototypes, | |
11605 | which can conflict with char $ac_func(); below. */ | |
11606 | #include <assert.h> | |
11607 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
11608 | #ifdef __cplusplus |
11609 | extern "C" | |
11610 | #endif | |
10f2d63a VZ |
11611 | /* We use char because int might match the return type of a gcc2 |
11612 | builtin and then its argument prototype would still apply. */ | |
11613 | char $ac_func(); | |
11614 | ||
11615 | int main() { | |
11616 | ||
11617 | /* The GNU C library defines this for functions which it implements | |
11618 | to always fail with ENOSYS. Some functions are actually named | |
11619 | something starting with __ and the normal name is an alias. */ | |
11620 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11621 | choke me | |
11622 | #else | |
e8482f24 | 11623 | $ac_func(); |
10f2d63a VZ |
11624 | #endif |
11625 | ||
11626 | ; return 0; } | |
11627 | EOF | |
2c6025bc | 11628 | if { (eval echo configure:11629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11629 | rm -rf conftest* |
11630 | eval "ac_cv_func_$ac_func=yes" | |
11631 | else | |
11632 | echo "configure: failed program was:" >&5 | |
11633 | cat conftest.$ac_ext >&5 | |
11634 | rm -rf conftest* | |
11635 | eval "ac_cv_func_$ac_func=no" | |
11636 | fi | |
11637 | rm -f conftest* | |
11638 | fi | |
11639 | ||
11640 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11641 | echo "$ac_t""yes" 1>&6 | |
11642 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11643 | cat >> confdefs.h <<EOF | |
11644 | #define $ac_tr_func 1 | |
11645 | EOF | |
11646 | ||
11647 | else | |
11648 | echo "$ac_t""no" 1>&6 | |
11649 | fi | |
11650 | done | |
11651 | ||
11652 | ||
6098c7f9 VZ |
11653 | ac_ext=c |
11654 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11655 | ac_cpp='$CPP $CPPFLAGS' | |
11656 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11657 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11658 | cross_compiling=$ac_cv_prog_cc_cross | |
11659 | ||
11660 | ||
c63c7106 | 11661 | INET_LINK= |
10f2d63a VZ |
11662 | for ac_func in inet_addr |
11663 | do | |
11664 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 11665 | echo "configure:11666: checking for $ac_func" >&5 |
10f2d63a VZ |
11666 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11667 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11668 | else | |
11669 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 11670 | #line 11671 "configure" |
10f2d63a VZ |
11671 | #include "confdefs.h" |
11672 | /* System header to define __stub macros and hopefully few prototypes, | |
11673 | which can conflict with char $ac_func(); below. */ | |
11674 | #include <assert.h> | |
11675 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11676 | /* We use char because int might match the return type of a gcc2 | |
11677 | builtin and then its argument prototype would still apply. */ | |
11678 | char $ac_func(); | |
11679 | ||
11680 | int main() { | |
11681 | ||
11682 | /* The GNU C library defines this for functions which it implements | |
11683 | to always fail with ENOSYS. Some functions are actually named | |
11684 | something starting with __ and the normal name is an alias. */ | |
11685 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11686 | choke me | |
11687 | #else | |
e8482f24 | 11688 | $ac_func(); |
10f2d63a VZ |
11689 | #endif |
11690 | ||
11691 | ; return 0; } | |
11692 | EOF | |
2c6025bc | 11693 | if { (eval echo configure:11694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11694 | rm -rf conftest* |
11695 | eval "ac_cv_func_$ac_func=yes" | |
11696 | else | |
11697 | echo "configure: failed program was:" >&5 | |
11698 | cat conftest.$ac_ext >&5 | |
11699 | rm -rf conftest* | |
11700 | eval "ac_cv_func_$ac_func=no" | |
11701 | fi | |
11702 | rm -f conftest* | |
11703 | fi | |
11704 | ||
11705 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11706 | echo "$ac_t""yes" 1>&6 | |
11707 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11708 | cat >> confdefs.h <<EOF | |
11709 | #define $ac_tr_func 1 | |
11710 | EOF | |
c63c7106 VZ |
11711 | cat >> confdefs.h <<\EOF |
11712 | #define HAVE_INET_ADDR 1 | |
11713 | EOF | |
11714 | ||
10f2d63a VZ |
11715 | else |
11716 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 11717 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
2c6025bc | 11718 | echo "configure:11719: checking for inet_addr in -lnsl" >&5 |
c63c7106 VZ |
11719 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
11720 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11721 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11722 | else | |
11723 | ac_save_LIBS="$LIBS" | |
11724 | LIBS="-lnsl $LIBS" | |
11725 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 11726 | #line 11727 "configure" |
c63c7106 VZ |
11727 | #include "confdefs.h" |
11728 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11729 | /* We use char because int might match the return type of a gcc2 | |
11730 | builtin and then its argument prototype would still apply. */ | |
11731 | char inet_addr(); | |
11732 | ||
11733 | int main() { | |
11734 | inet_addr() | |
11735 | ; return 0; } | |
11736 | EOF | |
2c6025bc | 11737 | if { (eval echo configure:11738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
11738 | rm -rf conftest* |
11739 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11740 | else | |
11741 | echo "configure: failed program was:" >&5 | |
11742 | cat conftest.$ac_ext >&5 | |
11743 | rm -rf conftest* | |
11744 | eval "ac_cv_lib_$ac_lib_var=no" | |
11745 | fi | |
11746 | rm -f conftest* | |
11747 | LIBS="$ac_save_LIBS" | |
11748 | ||
11749 | fi | |
11750 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11751 | echo "$ac_t""yes" 1>&6 | |
11752 | INET_LINK="nsl" | |
11753 | else | |
11754 | echo "$ac_t""no" 1>&6 | |
11755 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
2c6025bc | 11756 | echo "configure:11757: checking for inet_addr in -lresolv" >&5 |
c63c7106 VZ |
11757 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
11758 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11759 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11760 | else | |
11761 | ac_save_LIBS="$LIBS" | |
11762 | LIBS="-lresolv $LIBS" | |
11763 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 11764 | #line 11765 "configure" |
c63c7106 VZ |
11765 | #include "confdefs.h" |
11766 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11767 | /* We use char because int might match the return type of a gcc2 | |
11768 | builtin and then its argument prototype would still apply. */ | |
11769 | char inet_addr(); | |
11770 | ||
11771 | int main() { | |
11772 | inet_addr() | |
11773 | ; return 0; } | |
11774 | EOF | |
2c6025bc | 11775 | if { (eval echo configure:11776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
11776 | rm -rf conftest* |
11777 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11778 | else | |
11779 | echo "configure: failed program was:" >&5 | |
11780 | cat conftest.$ac_ext >&5 | |
11781 | rm -rf conftest* | |
11782 | eval "ac_cv_lib_$ac_lib_var=no" | |
11783 | fi | |
11784 | rm -f conftest* | |
11785 | LIBS="$ac_save_LIBS" | |
11786 | ||
11787 | fi | |
11788 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11789 | echo "$ac_t""yes" 1>&6 | |
11790 | INET_LINK="resolv" | |
11791 | ||
11792 | else | |
11793 | echo "$ac_t""no" 1>&6 | |
11794 | fi | |
11795 | ||
11796 | ||
11797 | fi | |
11798 | ||
11799 | ||
11800 | ||
10f2d63a VZ |
11801 | fi |
11802 | done | |
11803 | ||
c63c7106 | 11804 | |
10f2d63a VZ |
11805 | for ac_func in inet_aton |
11806 | do | |
11807 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 11808 | echo "configure:11809: checking for $ac_func" >&5 |
10f2d63a VZ |
11809 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11810 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11811 | else | |
11812 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 11813 | #line 11814 "configure" |
10f2d63a VZ |
11814 | #include "confdefs.h" |
11815 | /* System header to define __stub macros and hopefully few prototypes, | |
11816 | which can conflict with char $ac_func(); below. */ | |
11817 | #include <assert.h> | |
11818 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11819 | /* We use char because int might match the return type of a gcc2 | |
11820 | builtin and then its argument prototype would still apply. */ | |
11821 | char $ac_func(); | |
11822 | ||
11823 | int main() { | |
11824 | ||
11825 | /* The GNU C library defines this for functions which it implements | |
11826 | to always fail with ENOSYS. Some functions are actually named | |
11827 | something starting with __ and the normal name is an alias. */ | |
11828 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11829 | choke me | |
11830 | #else | |
e8482f24 | 11831 | $ac_func(); |
10f2d63a VZ |
11832 | #endif |
11833 | ||
11834 | ; return 0; } | |
11835 | EOF | |
2c6025bc | 11836 | if { (eval echo configure:11837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11837 | rm -rf conftest* |
11838 | eval "ac_cv_func_$ac_func=yes" | |
11839 | else | |
11840 | echo "configure: failed program was:" >&5 | |
11841 | cat conftest.$ac_ext >&5 | |
11842 | rm -rf conftest* | |
11843 | eval "ac_cv_func_$ac_func=no" | |
11844 | fi | |
11845 | rm -f conftest* | |
11846 | fi | |
11847 | ||
11848 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11849 | echo "$ac_t""yes" 1>&6 | |
11850 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11851 | cat >> confdefs.h <<EOF | |
11852 | #define $ac_tr_func 1 | |
11853 | EOF | |
c63c7106 VZ |
11854 | cat >> confdefs.h <<\EOF |
11855 | #define HAVE_INET_ATON 1 | |
11856 | EOF | |
11857 | ||
10f2d63a VZ |
11858 | else |
11859 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 11860 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
2c6025bc | 11861 | echo "configure:11862: checking for inet_aton in -l$INET_LINK" >&5 |
c63c7106 | 11862 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
11863 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
11864 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11865 | else | |
11866 | ac_save_LIBS="$LIBS" | |
c63c7106 | 11867 | LIBS="-l$INET_LINK $LIBS" |
10f2d63a | 11868 | cat > conftest.$ac_ext <<EOF |
2c6025bc | 11869 | #line 11870 "configure" |
10f2d63a VZ |
11870 | #include "confdefs.h" |
11871 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11872 | /* We use char because int might match the return type of a gcc2 | |
11873 | builtin and then its argument prototype would still apply. */ | |
11874 | char inet_aton(); | |
11875 | ||
11876 | int main() { | |
11877 | inet_aton() | |
11878 | ; return 0; } | |
11879 | EOF | |
2c6025bc | 11880 | if { (eval echo configure:11881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11881 | rm -rf conftest* |
11882 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11883 | else | |
11884 | echo "configure: failed program was:" >&5 | |
11885 | cat conftest.$ac_ext >&5 | |
11886 | rm -rf conftest* | |
11887 | eval "ac_cv_lib_$ac_lib_var=no" | |
11888 | fi | |
11889 | rm -f conftest* | |
11890 | LIBS="$ac_save_LIBS" | |
11891 | ||
11892 | fi | |
11893 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11894 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
11895 | cat >> confdefs.h <<\EOF |
11896 | #define HAVE_INET_ATON 1 | |
10f2d63a VZ |
11897 | EOF |
11898 | ||
10f2d63a VZ |
11899 | else |
11900 | echo "$ac_t""no" 1>&6 | |
11901 | fi | |
11902 | ||
c63c7106 VZ |
11903 | |
11904 | fi | |
11905 | done | |
11906 | ||
11907 | ||
11908 | if test "x$INET_LINK" != "x"; then | |
11909 | cat >> confdefs.h <<\EOF | |
11910 | #define HAVE_INET_ADDR 1 | |
11911 | EOF | |
11912 | ||
11913 | INET_LINK="-l$INET_LINK" | |
11914 | fi | |
10f2d63a VZ |
11915 | |
11916 | fi | |
11917 | ||
11918 | ||
11919 | cat > confcache <<\EOF | |
11920 | # This file is a shell script that caches the results of configure | |
11921 | # tests run on this system so they can be shared between configure | |
11922 | # scripts and configure runs. It is not useful on other systems. | |
11923 | # If it contains results you don't want to keep, you may remove or edit it. | |
11924 | # | |
11925 | # By default, configure uses ./config.cache as the cache file, | |
11926 | # creating it if it does not exist already. You can give configure | |
11927 | # the --cache-file=FILE option to use a different cache file; that is | |
11928 | # what configure does when it calls configure scripts in | |
11929 | # subdirectories, so they share the cache. | |
11930 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11931 | # config.status only pays attention to the cache file if you give it the | |
11932 | # --recheck option to rerun configure. | |
11933 | # | |
11934 | EOF | |
11935 | # The following way of writing the cache mishandles newlines in values, | |
11936 | # but we know of no workaround that is simple, portable, and efficient. | |
11937 | # So, don't put newlines in cache variables' values. | |
11938 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11939 | # and sets the high bit in the cache file unless we assign to the vars. | |
11940 | (set) 2>&1 | | |
11941 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11942 | *ac_space=\ *) | |
11943 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11944 | # turns \\\\ into \\, and sed turns \\ into \). | |
11945 | sed -n \ | |
11946 | -e "s/'/'\\\\''/g" \ | |
11947 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11948 | ;; | |
11949 | *) | |
11950 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11951 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11952 | ;; | |
11953 | esac >> confcache | |
11954 | if cmp -s $cache_file confcache; then | |
11955 | : | |
11956 | else | |
11957 | if test -w $cache_file; then | |
11958 | echo "updating cache $cache_file" | |
11959 | cat confcache > $cache_file | |
11960 | else | |
11961 | echo "not updating unwritable cache $cache_file" | |
11962 | fi | |
11963 | fi | |
11964 | rm -f confcache | |
11965 | ||
11966 | ||
11967 | ||
b089607b | 11968 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a VZ |
11969 | |
11970 | ||
11971 | THREADS_LINK="" | |
11972 | THREADS_OBJ="" | |
11973 | ||
11974 | if test "$wxUSE_THREADS" = "yes" ; then | |
11975 | if test "$wxUSE_WINE" = 1 ; then | |
11976 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
11977 | wxUSE_THREADS="no" | |
b12915c1 VZ |
11978 | elif test "$USE_BEOS" = 1; then |
11979 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 | |
11980 | wxUSE_THREADS="no" | |
10f2d63a VZ |
11981 | fi |
11982 | fi | |
11983 | ||
11984 | if test "$wxUSE_THREADS" = "yes" ; then | |
11985 | ||
186837b0 | 11986 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
11987 | THREADS_LIB=pthreads |
11988 | else | |
11989 | THREADS_LIB=pthread | |
11990 | fi | |
11991 | ||
11992 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 | |
2c6025bc | 11993 | echo "configure:11994: checking for pthread_create in -l$THREADS_LIB" >&5 |
f6bcfd97 | 11994 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
11995 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
11996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11997 | else | |
11998 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 11999 | LIBS="-l$THREADS_LIB $LIBS" |
10f2d63a | 12000 | cat > conftest.$ac_ext <<EOF |
2c6025bc | 12001 | #line 12002 "configure" |
10f2d63a VZ |
12002 | #include "confdefs.h" |
12003 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12004 | /* We use char because int might match the return type of a gcc2 | |
12005 | builtin and then its argument prototype would still apply. */ | |
12006 | char pthread_create(); | |
12007 | ||
12008 | int main() { | |
12009 | pthread_create() | |
12010 | ; return 0; } | |
12011 | EOF | |
2c6025bc | 12012 | if { (eval echo configure:12013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12013 | rm -rf conftest* |
12014 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12015 | else | |
12016 | echo "configure: failed program was:" >&5 | |
12017 | cat conftest.$ac_ext >&5 | |
12018 | rm -rf conftest* | |
12019 | eval "ac_cv_lib_$ac_lib_var=no" | |
12020 | fi | |
12021 | rm -f conftest* | |
12022 | LIBS="$ac_save_LIBS" | |
12023 | ||
12024 | fi | |
12025 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12026 | echo "$ac_t""yes" 1>&6 | |
12027 | ||
12028 | THREADS_OBJ="threadpsx.lo" | |
f6bcfd97 | 12029 | THREADS_LINK=$THREADS_LIB |
10f2d63a VZ |
12030 | |
12031 | else | |
12032 | echo "$ac_t""no" 1>&6 | |
12033 | ||
12034 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
2c6025bc | 12035 | echo "configure:12036: checking for pthread_create in -lc_r" >&5 |
10f2d63a VZ |
12036 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
12037 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12038 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12039 | else | |
12040 | ac_save_LIBS="$LIBS" | |
12041 | LIBS="-lc_r $LIBS" | |
12042 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12043 | #line 12044 "configure" |
10f2d63a VZ |
12044 | #include "confdefs.h" |
12045 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12046 | /* We use char because int might match the return type of a gcc2 | |
12047 | builtin and then its argument prototype would still apply. */ | |
12048 | char pthread_create(); | |
12049 | ||
12050 | int main() { | |
12051 | pthread_create() | |
12052 | ; return 0; } | |
12053 | EOF | |
2c6025bc | 12054 | if { (eval echo configure:12055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12055 | rm -rf conftest* |
12056 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12057 | else | |
12058 | echo "configure: failed program was:" >&5 | |
12059 | cat conftest.$ac_ext >&5 | |
12060 | rm -rf conftest* | |
12061 | eval "ac_cv_lib_$ac_lib_var=no" | |
12062 | fi | |
12063 | rm -f conftest* | |
12064 | LIBS="$ac_save_LIBS" | |
12065 | ||
12066 | fi | |
12067 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12068 | echo "$ac_t""yes" 1>&6 | |
12069 | ||
12070 | THREADS_OBJ="threadpsx.lo" | |
12071 | THREADS_LINK="c_r" | |
12072 | ||
12073 | else | |
12074 | echo "$ac_t""no" 1>&6 | |
12075 | ||
b4085ce6 | 12076 | echo $ac_n "checking for pthread_create in -lcc_dynamic""... $ac_c" 1>&6 |
2c6025bc | 12077 | echo "configure:12078: checking for pthread_create in -lcc_dynamic" >&5 |
b4085ce6 GD |
12078 | ac_lib_var=`echo cc_dynamic'_'pthread_create | sed 'y%./+-%__p_%'` |
12079 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12080 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12081 | else | |
12082 | ac_save_LIBS="$LIBS" | |
12083 | LIBS="-lcc_dynamic $LIBS" | |
12084 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12085 | #line 12086 "configure" |
b4085ce6 GD |
12086 | #include "confdefs.h" |
12087 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12088 | /* We use char because int might match the return type of a gcc2 | |
12089 | builtin and then its argument prototype would still apply. */ | |
12090 | char pthread_create(); | |
12091 | ||
12092 | int main() { | |
12093 | pthread_create() | |
12094 | ; return 0; } | |
12095 | EOF | |
2c6025bc | 12096 | if { (eval echo configure:12097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b4085ce6 GD |
12097 | rm -rf conftest* |
12098 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12099 | else | |
12100 | echo "configure: failed program was:" >&5 | |
12101 | cat conftest.$ac_ext >&5 | |
12102 | rm -rf conftest* | |
12103 | eval "ac_cv_lib_$ac_lib_var=no" | |
12104 | fi | |
12105 | rm -f conftest* | |
12106 | LIBS="$ac_save_LIBS" | |
12107 | ||
12108 | fi | |
12109 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12110 | echo "$ac_t""yes" 1>&6 | |
12111 | ||
12112 | THREADS_OBJ="threadpsx.lo" | |
12113 | THREADS_LINK="cc_dynamic" | |
12114 | ||
12115 | else | |
12116 | echo "$ac_t""no" 1>&6 | |
12117 | ||
12118 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
10f2d63a | 12119 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 |
2c6025bc | 12120 | echo "configure:12121: checking for sys/prctl.h" >&5 |
10f2d63a VZ |
12121 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12122 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12123 | else | |
12124 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12125 | #line 12126 "configure" |
10f2d63a VZ |
12126 | #include "confdefs.h" |
12127 | #include <sys/prctl.h> | |
12128 | EOF | |
12129 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 12130 | { (eval echo configure:12131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
12131 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12132 | if test -z "$ac_err"; then | |
12133 | rm -rf conftest* | |
12134 | eval "ac_cv_header_$ac_safe=yes" | |
12135 | else | |
12136 | echo "$ac_err" >&5 | |
12137 | echo "configure: failed program was:" >&5 | |
12138 | cat conftest.$ac_ext >&5 | |
12139 | rm -rf conftest* | |
12140 | eval "ac_cv_header_$ac_safe=no" | |
12141 | fi | |
12142 | rm -f conftest* | |
12143 | fi | |
12144 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12145 | echo "$ac_t""yes" 1>&6 | |
12146 | ||
b4085ce6 GD |
12147 | THREADS_OBJ="threadsgi.lo" |
12148 | ||
10f2d63a VZ |
12149 | else |
12150 | echo "$ac_t""no" 1>&6 | |
12151 | fi | |
12152 | ||
b4085ce6 GD |
12153 | |
12154 | fi | |
12155 | ||
10f2d63a VZ |
12156 | |
12157 | fi | |
12158 | ||
12159 | ||
12160 | fi | |
12161 | ||
12162 | ||
12163 | if test -z "$THREADS_OBJ" ; then | |
12164 | wxUSE_THREADS=no | |
12165 | echo "configure: warning: No thread support on this system" 1>&2 | |
12166 | fi | |
12167 | fi | |
12168 | ||
12169 | if test "$wxUSE_THREADS" = "yes" ; then | |
70846f0a VZ |
12170 | for ac_func in thr_setconcurrency |
12171 | do | |
12172 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 12173 | echo "configure:12174: checking for $ac_func" >&5 |
70846f0a VZ |
12174 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12175 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12176 | else | |
12177 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12178 | #line 12179 "configure" |
70846f0a VZ |
12179 | #include "confdefs.h" |
12180 | /* System header to define __stub macros and hopefully few prototypes, | |
12181 | which can conflict with char $ac_func(); below. */ | |
12182 | #include <assert.h> | |
12183 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12184 | /* We use char because int might match the return type of a gcc2 | |
12185 | builtin and then its argument prototype would still apply. */ | |
12186 | char $ac_func(); | |
12187 | ||
12188 | int main() { | |
12189 | ||
12190 | /* The GNU C library defines this for functions which it implements | |
12191 | to always fail with ENOSYS. Some functions are actually named | |
12192 | something starting with __ and the normal name is an alias. */ | |
12193 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12194 | choke me | |
12195 | #else | |
e8482f24 | 12196 | $ac_func(); |
70846f0a VZ |
12197 | #endif |
12198 | ||
12199 | ; return 0; } | |
12200 | EOF | |
2c6025bc | 12201 | if { (eval echo configure:12202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
70846f0a VZ |
12202 | rm -rf conftest* |
12203 | eval "ac_cv_func_$ac_func=yes" | |
12204 | else | |
12205 | echo "configure: failed program was:" >&5 | |
12206 | cat conftest.$ac_ext >&5 | |
12207 | rm -rf conftest* | |
12208 | eval "ac_cv_func_$ac_func=no" | |
12209 | fi | |
12210 | rm -f conftest* | |
12211 | fi | |
12212 | ||
12213 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12214 | echo "$ac_t""yes" 1>&6 | |
12215 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12216 | cat >> confdefs.h <<EOF | |
12217 | #define $ac_tr_func 1 | |
12218 | EOF | |
12219 | ||
12220 | else | |
12221 | echo "$ac_t""no" 1>&6 | |
12222 | fi | |
12223 | done | |
12224 | ||
12225 | ||
10f2d63a VZ |
12226 | |
12227 | for ac_hdr in sched.h | |
12228 | do | |
12229 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12230 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2c6025bc | 12231 | echo "configure:12232: checking for $ac_hdr" >&5 |
10f2d63a VZ |
12232 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12233 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12234 | else | |
12235 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12236 | #line 12237 "configure" |
10f2d63a VZ |
12237 | #include "confdefs.h" |
12238 | #include <$ac_hdr> | |
12239 | EOF | |
12240 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 12241 | { (eval echo configure:12242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
12242 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12243 | if test -z "$ac_err"; then | |
12244 | rm -rf conftest* | |
12245 | eval "ac_cv_header_$ac_safe=yes" | |
12246 | else | |
12247 | echo "$ac_err" >&5 | |
12248 | echo "configure: failed program was:" >&5 | |
12249 | cat conftest.$ac_ext >&5 | |
12250 | rm -rf conftest* | |
12251 | eval "ac_cv_header_$ac_safe=no" | |
12252 | fi | |
12253 | rm -f conftest* | |
12254 | fi | |
12255 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12256 | echo "$ac_t""yes" 1>&6 | |
12257 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12258 | cat >> confdefs.h <<EOF | |
12259 | #define $ac_tr_hdr 1 | |
12260 | EOF | |
12261 | ||
12262 | else | |
12263 | echo "$ac_t""no" 1>&6 | |
12264 | fi | |
12265 | done | |
12266 | ||
12267 | ||
12268 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
2c6025bc | 12269 | echo "configure:12270: checking for sched_yield in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
12270 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
12271 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12273 | else | |
12274 | ac_save_LIBS="$LIBS" | |
12275 | LIBS="-l$THREADS_LINK $LIBS" | |
12276 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12277 | #line 12278 "configure" |
10f2d63a VZ |
12278 | #include "confdefs.h" |
12279 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12280 | /* We use char because int might match the return type of a gcc2 | |
12281 | builtin and then its argument prototype would still apply. */ | |
12282 | char sched_yield(); | |
12283 | ||
12284 | int main() { | |
12285 | sched_yield() | |
12286 | ; return 0; } | |
12287 | EOF | |
2c6025bc | 12288 | if { (eval echo configure:12289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12289 | rm -rf conftest* |
12290 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12291 | else | |
12292 | echo "configure: failed program was:" >&5 | |
12293 | cat conftest.$ac_ext >&5 | |
12294 | rm -rf conftest* | |
12295 | eval "ac_cv_lib_$ac_lib_var=no" | |
12296 | fi | |
12297 | rm -f conftest* | |
12298 | LIBS="$ac_save_LIBS" | |
12299 | ||
12300 | fi | |
12301 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12302 | echo "$ac_t""yes" 1>&6 | |
12303 | cat >> confdefs.h <<\EOF | |
12304 | #define HAVE_SCHED_YIELD 1 | |
12305 | EOF | |
12306 | ||
12307 | else | |
12308 | echo "$ac_t""no" 1>&6 | |
12309 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
2c6025bc | 12310 | echo "configure:12311: checking for sched_yield in -l"posix4"" >&5 |
10f2d63a VZ |
12311 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` |
12312 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12313 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12314 | else | |
12315 | ac_save_LIBS="$LIBS" | |
12316 | LIBS="-l"posix4" $LIBS" | |
12317 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12318 | #line 12319 "configure" |
10f2d63a VZ |
12319 | #include "confdefs.h" |
12320 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12321 | /* We use char because int might match the return type of a gcc2 | |
12322 | builtin and then its argument prototype would still apply. */ | |
12323 | char sched_yield(); | |
12324 | ||
12325 | int main() { | |
12326 | sched_yield() | |
12327 | ; return 0; } | |
12328 | EOF | |
2c6025bc | 12329 | if { (eval echo configure:12330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12330 | rm -rf conftest* |
12331 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12332 | else | |
12333 | echo "configure: failed program was:" >&5 | |
12334 | cat conftest.$ac_ext >&5 | |
12335 | rm -rf conftest* | |
12336 | eval "ac_cv_lib_$ac_lib_var=no" | |
12337 | fi | |
12338 | rm -f conftest* | |
12339 | LIBS="$ac_save_LIBS" | |
12340 | ||
12341 | fi | |
12342 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12343 | echo "$ac_t""yes" 1>&6 | |
12344 | cat >> confdefs.h <<\EOF | |
12345 | #define HAVE_SCHED_YIELD 1 | |
12346 | EOF | |
12347 | POSIX4_LINK="-lposix4" | |
12348 | else | |
12349 | echo "$ac_t""no" 1>&6 | |
12350 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
12351 | ||
12352 | fi | |
12353 | ||
12354 | ||
12355 | fi | |
12356 | ||
12357 | ||
f6bcfd97 BP |
12358 | HAVE_PRIOR_FUNCS=0 |
12359 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
2c6025bc | 12360 | echo "configure:12361: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
12361 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
12362 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12364 | else | |
12365 | ac_save_LIBS="$LIBS" | |
12366 | LIBS="-l$THREADS_LINK $LIBS" | |
12367 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12368 | #line 12369 "configure" |
10f2d63a VZ |
12369 | #include "confdefs.h" |
12370 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12371 | /* We use char because int might match the return type of a gcc2 | |
12372 | builtin and then its argument prototype would still apply. */ | |
12373 | char pthread_attr_getschedpolicy(); | |
12374 | ||
12375 | int main() { | |
12376 | pthread_attr_getschedpolicy() | |
12377 | ; return 0; } | |
12378 | EOF | |
2c6025bc | 12379 | if { (eval echo configure:12380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12380 | rm -rf conftest* |
12381 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12382 | else | |
12383 | echo "configure: failed program was:" >&5 | |
12384 | cat conftest.$ac_ext >&5 | |
12385 | rm -rf conftest* | |
12386 | eval "ac_cv_lib_$ac_lib_var=no" | |
12387 | fi | |
12388 | rm -f conftest* | |
12389 | LIBS="$ac_save_LIBS" | |
12390 | ||
12391 | fi | |
12392 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12393 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 12394 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
2c6025bc | 12395 | echo "configure:12396: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
f6bcfd97 BP |
12396 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
12397 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12398 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12399 | else | |
12400 | ac_save_LIBS="$LIBS" | |
12401 | LIBS="-l$THREADS_LINK $LIBS" | |
12402 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12403 | #line 12404 "configure" |
f6bcfd97 BP |
12404 | #include "confdefs.h" |
12405 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12406 | /* We use char because int might match the return type of a gcc2 | |
12407 | builtin and then its argument prototype would still apply. */ | |
12408 | char pthread_attr_setschedparam(); | |
12409 | ||
12410 | int main() { | |
12411 | pthread_attr_setschedparam() | |
12412 | ; return 0; } | |
10f2d63a | 12413 | EOF |
2c6025bc | 12414 | if { (eval echo configure:12415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
12415 | rm -rf conftest* |
12416 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12417 | else | |
12418 | echo "configure: failed program was:" >&5 | |
12419 | cat conftest.$ac_ext >&5 | |
12420 | rm -rf conftest* | |
12421 | eval "ac_cv_lib_$ac_lib_var=no" | |
12422 | fi | |
12423 | rm -f conftest* | |
12424 | LIBS="$ac_save_LIBS" | |
10f2d63a | 12425 | |
f6bcfd97 BP |
12426 | fi |
12427 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12428 | echo "$ac_t""yes" 1>&6 | |
12429 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
2c6025bc | 12430 | echo "configure:12431: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
f6bcfd97 BP |
12431 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
12432 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12433 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12434 | else | |
12435 | ac_save_LIBS="$LIBS" | |
12436 | LIBS="-l$THREADS_LINK $LIBS" | |
12437 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12438 | #line 12439 "configure" |
f6bcfd97 BP |
12439 | #include "confdefs.h" |
12440 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12441 | /* We use char because int might match the return type of a gcc2 | |
12442 | builtin and then its argument prototype would still apply. */ | |
12443 | char sched_get_priority_max(); | |
12444 | ||
12445 | int main() { | |
12446 | sched_get_priority_max() | |
12447 | ; return 0; } | |
12448 | EOF | |
2c6025bc | 12449 | if { (eval echo configure:12450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
12450 | rm -rf conftest* |
12451 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12452 | else | |
12453 | echo "configure: failed program was:" >&5 | |
12454 | cat conftest.$ac_ext >&5 | |
12455 | rm -rf conftest* | |
12456 | eval "ac_cv_lib_$ac_lib_var=no" | |
12457 | fi | |
12458 | rm -f conftest* | |
12459 | LIBS="$ac_save_LIBS" | |
12460 | ||
12461 | fi | |
12462 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12463 | echo "$ac_t""yes" 1>&6 | |
12464 | HAVE_PRIOR_FUNCS=1 | |
10f2d63a VZ |
12465 | else |
12466 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 12467 | echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6 |
2c6025bc | 12468 | echo "configure:12469: checking for sched_get_priority_max in -l"posix4"" >&5 |
f6bcfd97 | 12469 | ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
12470 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12472 | else | |
12473 | ac_save_LIBS="$LIBS" | |
12474 | LIBS="-l"posix4" $LIBS" | |
12475 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12476 | #line 12477 "configure" |
10f2d63a VZ |
12477 | #include "confdefs.h" |
12478 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12479 | /* We use char because int might match the return type of a gcc2 | |
12480 | builtin and then its argument prototype would still apply. */ | |
f6bcfd97 | 12481 | char sched_get_priority_max(); |
10f2d63a VZ |
12482 | |
12483 | int main() { | |
f6bcfd97 | 12484 | sched_get_priority_max() |
10f2d63a VZ |
12485 | ; return 0; } |
12486 | EOF | |
2c6025bc | 12487 | if { (eval echo configure:12488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12488 | rm -rf conftest* |
12489 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12490 | else | |
12491 | echo "configure: failed program was:" >&5 | |
12492 | cat conftest.$ac_ext >&5 | |
12493 | rm -rf conftest* | |
12494 | eval "ac_cv_lib_$ac_lib_var=no" | |
12495 | fi | |
12496 | rm -f conftest* | |
12497 | LIBS="$ac_save_LIBS" | |
12498 | ||
12499 | fi | |
12500 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12501 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 BP |
12502 | |
12503 | HAVE_PRIOR_FUNCS=1 | |
12504 | POSIX4_LINK="-lposix4" | |
12505 | ||
12506 | else | |
12507 | echo "$ac_t""no" 1>&6 | |
12508 | fi | |
12509 | ||
12510 | ||
12511 | fi | |
12512 | ||
12513 | ||
10f2d63a VZ |
12514 | else |
12515 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12516 | fi |
12517 | ||
12518 | ||
f6bcfd97 BP |
12519 | else |
12520 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12521 | fi |
12522 | ||
12523 | ||
f6bcfd97 BP |
12524 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
12525 | cat >> confdefs.h <<\EOF | |
12526 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
12527 | EOF | |
12528 | ||
12529 | else | |
12530 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
12531 | fi | |
12532 | ||
10f2d63a | 12533 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
2c6025bc | 12534 | echo "configure:12535: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
12535 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
12536 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12537 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12538 | else | |
12539 | ac_save_LIBS="$LIBS" | |
12540 | LIBS="-l$THREADS_LINK $LIBS" | |
12541 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12542 | #line 12543 "configure" |
10f2d63a VZ |
12543 | #include "confdefs.h" |
12544 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12545 | /* We use char because int might match the return type of a gcc2 | |
12546 | builtin and then its argument prototype would still apply. */ | |
12547 | char pthread_cancel(); | |
12548 | ||
12549 | int main() { | |
12550 | pthread_cancel() | |
12551 | ; return 0; } | |
12552 | EOF | |
2c6025bc | 12553 | if { (eval echo configure:12554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12554 | rm -rf conftest* |
12555 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12556 | else | |
12557 | echo "configure: failed program was:" >&5 | |
12558 | cat conftest.$ac_ext >&5 | |
12559 | rm -rf conftest* | |
12560 | eval "ac_cv_lib_$ac_lib_var=no" | |
12561 | fi | |
12562 | rm -f conftest* | |
12563 | LIBS="$ac_save_LIBS" | |
12564 | ||
12565 | fi | |
12566 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12567 | echo "$ac_t""yes" 1>&6 | |
12568 | cat >> confdefs.h <<\EOF | |
12569 | #define HAVE_PTHREAD_CANCEL 1 | |
12570 | EOF | |
12571 | ||
12572 | else | |
12573 | echo "$ac_t""no" 1>&6 | |
12574 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
12575 | fi | |
12576 | ||
12577 | ||
12578 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
2c6025bc | 12579 | echo "configure:12580: checking for pthread_cleanup_push/pop" >&5 |
10f2d63a VZ |
12580 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
12581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12582 | else | |
12583 | ||
12584 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12585 | #line 12586 "configure" |
10f2d63a VZ |
12586 | #include "confdefs.h" |
12587 | #include <pthread.h> | |
12588 | int main() { | |
12589 | ||
12590 | pthread_cleanup_push(NULL, NULL); | |
12591 | pthread_cleanup_pop(0); | |
12592 | ||
12593 | ; return 0; } | |
12594 | EOF | |
2c6025bc | 12595 | if { (eval echo configure:12596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
12596 | rm -rf conftest* |
12597 | ||
12598 | wx_cv_func_pthread_cleanup_push=yes | |
12599 | cat >> confdefs.h <<\EOF | |
12600 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
12601 | EOF | |
12602 | ||
12603 | ||
12604 | else | |
12605 | echo "configure: failed program was:" >&5 | |
12606 | cat conftest.$ac_ext >&5 | |
12607 | rm -rf conftest* | |
12608 | ||
12609 | wx_cv_func_pthread_cleanup_push=no | |
12610 | ||
12611 | fi | |
12612 | rm -f conftest* | |
12613 | ||
12614 | fi | |
12615 | ||
12616 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
12617 | ||
12618 | THREADS_LINK="-l$THREADS_LINK" | |
186837b0 VZ |
12619 | |
12620 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
12621 | CFLAGS="${CFLAGS} -mt" | |
12622 | CXXFLAGS="${CXXFLAGS} -mt" | |
12623 | LDFLAGS="${LDFLAGS} -mt" | |
12624 | fi | |
10f2d63a VZ |
12625 | fi |
12626 | ||
12627 | fi | |
12628 | ||
12629 | if test "$wxUSE_THREADS" = "yes"; then | |
12630 | cat >> confdefs.h <<\EOF | |
12631 | #define wxUSE_THREADS 1 | |
12632 | EOF | |
12633 | ||
12634 | ||
2c6025bc | 12635 | if test "$wxUSE_MAC" = "0"; then |
10f2d63a | 12636 | CFLAGS="${CFLAGS} -D_REENTRANT" |
2c6025bc GD |
12637 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" |
12638 | fi | |
10f2d63a VZ |
12639 | |
12640 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
12641 | else | |
12642 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
ab9b9eab | 12643 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
2c6025bc | 12644 | echo "configure:12645: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
12645 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
12646 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
12647 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
12648 | echo "$ac_t""yes" 1>&6 | |
12649 | else | |
12650 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12651 | fi |
12652 | fi | |
12653 | fi | |
12654 | ||
6f72b082 | 12655 | if test "$WXGTK20" = 1 ; then |
13111b2a | 12656 | cat >> confdefs.h <<EOF |
6f72b082 | 12657 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
12658 | EOF |
12659 | ||
12660 | WXGTK12=1 | |
12661 | fi | |
12662 | ||
10f2d63a VZ |
12663 | if test "$WXGTK12" = 1 ; then |
12664 | cat >> confdefs.h <<EOF | |
12665 | #define __WXGTK12__ $WXGTK12 | |
12666 | EOF | |
12667 | ||
12668 | fi | |
12669 | ||
f6bcfd97 BP |
12670 | if test "$WXGTK127" = 1 ; then |
12671 | cat >> confdefs.h <<EOF | |
12672 | #define __WXGTK127__ $WXGTK127 | |
12673 | EOF | |
12674 | ||
12675 | fi | |
12676 | ||
10f2d63a VZ |
12677 | if test "$WXWINE" = 1 ; then |
12678 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
12679 | fi | |
12680 | ||
b4085ce6 | 12681 | if test "$wxUSE_MAC" = 1 ; then |
2c6025bc | 12682 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON" |
b4085ce6 GD |
12683 | TOOLKIT_INCLUDE="${TOOLKIT_INCLUDE}" |
12684 | fi | |
12685 | ||
10f2d63a VZ |
12686 | if test "$wxUSE_CYGWIN" = 1 ; then |
12687 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
12688 | fi | |
12689 | ||
12690 | WXDEBUG= | |
12691 | ||
12692 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
12693 | WXDEBUG="-g" | |
12694 | wxUSE_OPTIMISE=no | |
12695 | fi | |
12696 | ||
12697 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
12698 | wxUSE_DEBUG_INFO=yes | |
12699 | WXDEBUG="-ggdb" | |
12700 | fi | |
12701 | ||
12702 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
12703 | cat >> confdefs.h <<\EOF | |
12704 | #define WXDEBUG 1 | |
12705 | EOF | |
12706 | ||
12707 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
12708 | else | |
12709 | if test "$wxUSE_GTK" = 1 ; then | |
12710 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
12711 | fi | |
12712 | fi | |
12713 | ||
12714 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
12715 | cat >> confdefs.h <<\EOF | |
12716 | #define wxUSE_MEMORY_TRACING 1 | |
12717 | EOF | |
12718 | ||
12719 | cat >> confdefs.h <<\EOF | |
12720 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
47c13eb7 VS |
12721 | EOF |
12722 | ||
12723 | cat >> confdefs.h <<\EOF | |
12724 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
10f2d63a VZ |
12725 | EOF |
12726 | ||
12727 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
12728 | fi | |
12729 | ||
12730 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
12731 | DMALLOC_LINK="-ldmalloc" | |
12732 | fi | |
12733 | ||
12734 | PROFILE= | |
12735 | if test "$wxUSE_PROFILE" = "yes" ; then | |
12736 | PROFILE="-pg" | |
12737 | fi | |
12738 | ||
12739 | DEP_INFO_FLAGS= | |
caa2c79b | 12740 | CODE_GEN_FLAGS= |
0f3f1cbc | 12741 | CODE_GEN_FLAGS_CXX= |
10f2d63a VZ |
12742 | if test "$GCC" = yes ; then |
12743 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
0f3f1cbc | 12744 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
12745 | fi |
12746 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
0f3f1cbc | 12747 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
12748 | fi |
12749 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 12750 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
12751 | fi |
12752 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
12753 | DEP_INFO_FLAGS="-MMD" | |
12754 | fi | |
12755 | fi | |
12756 | ||
12757 | ||
12758 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
12759 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
12760 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
12761 | OPTIMISE= | |
12762 | else | |
12763 | if test "$GCC" = yes ; then | |
12764 | OPTIMISE="-O2" | |
12765 | case "${host}" in | |
12766 | i586-*-*|i686-*-* ) | |
12767 | OPTIMISE="${OPTIMISE} " | |
12768 | ;; | |
12769 | esac | |
12770 | else | |
12771 | OPTIMISE="-O" | |
12772 | fi | |
12773 | fi | |
12774 | ||
12775 | ||
12776 | ZLIB_INCLUDE= | |
422107f9 | 12777 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
10f2d63a VZ |
12778 | cat >> confdefs.h <<\EOF |
12779 | #define wxUSE_ZLIB 1 | |
12780 | EOF | |
12781 | ||
422107f9 VZ |
12782 | if test "$wxUSE_ZLIB" = "yes" ; then |
12783 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
12784 | else | |
12785 | ZLIB_LINK= | |
12786 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
12787 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
2c6025bc | 12788 | echo "configure:12789: checking for zlib.h" >&5 |
422107f9 VZ |
12789 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12790 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12791 | else | |
12792 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12793 | #line 12794 "configure" |
422107f9 VZ |
12794 | #include "confdefs.h" |
12795 | #include <zlib.h> | |
12796 | EOF | |
12797 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 12798 | { (eval echo configure:12799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
12799 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12800 | if test -z "$ac_err"; then | |
12801 | rm -rf conftest* | |
12802 | eval "ac_cv_header_$ac_safe=yes" | |
12803 | else | |
12804 | echo "$ac_err" >&5 | |
12805 | echo "configure: failed program was:" >&5 | |
12806 | cat conftest.$ac_ext >&5 | |
12807 | rm -rf conftest* | |
12808 | eval "ac_cv_header_$ac_safe=no" | |
12809 | fi | |
12810 | rm -f conftest* | |
12811 | fi | |
12812 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12813 | echo "$ac_t""yes" 1>&6 | |
12814 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
2c6025bc | 12815 | echo "configure:12816: checking for deflate in -lz" >&5 |
422107f9 VZ |
12816 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
12817 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12818 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12819 | else | |
12820 | ac_save_LIBS="$LIBS" | |
12821 | LIBS="-lz $LIBS" | |
12822 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12823 | #line 12824 "configure" |
422107f9 VZ |
12824 | #include "confdefs.h" |
12825 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12826 | /* We use char because int might match the return type of a gcc2 | |
12827 | builtin and then its argument prototype would still apply. */ | |
12828 | char deflate(); | |
12829 | ||
12830 | int main() { | |
12831 | deflate() | |
12832 | ; return 0; } | |
12833 | EOF | |
2c6025bc | 12834 | if { (eval echo configure:12835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
12835 | rm -rf conftest* |
12836 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12837 | else | |
12838 | echo "configure: failed program was:" >&5 | |
12839 | cat conftest.$ac_ext >&5 | |
12840 | rm -rf conftest* | |
12841 | eval "ac_cv_lib_$ac_lib_var=no" | |
12842 | fi | |
12843 | rm -f conftest* | |
12844 | LIBS="$ac_save_LIBS" | |
12845 | ||
12846 | fi | |
12847 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12848 | echo "$ac_t""yes" 1>&6 | |
12849 | ZLIB_LINK="-lz" | |
12850 | else | |
12851 | echo "$ac_t""no" 1>&6 | |
12852 | fi | |
12853 | ||
12854 | else | |
12855 | echo "$ac_t""no" 1>&6 | |
12856 | fi | |
12857 | ||
12858 | if test "x$ZLIB_LINK" = "x" ; then | |
12859 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } | |
12860 | fi | |
12861 | fi | |
10f2d63a VZ |
12862 | fi |
12863 | ||
12864 | PNG_INCLUDE= | |
422107f9 | 12865 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
10f2d63a VZ |
12866 | cat >> confdefs.h <<\EOF |
12867 | #define wxUSE_LIBPNG 1 | |
12868 | EOF | |
12869 | ||
41fd4136 | 12870 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
422107f9 VZ |
12871 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
12872 | wxUSE_LIBPNG=yes | |
12873 | fi | |
12874 | ||
12875 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
12876 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
12877 | else | |
12878 | PNG_LINK= | |
12879 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
12880 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
2c6025bc | 12881 | echo "configure:12882: checking for png.h" >&5 |
422107f9 VZ |
12882 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12883 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12884 | else | |
12885 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12886 | #line 12887 "configure" |
422107f9 VZ |
12887 | #include "confdefs.h" |
12888 | #include <png.h> | |
12889 | EOF | |
12890 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 12891 | { (eval echo configure:12892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
12892 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12893 | if test -z "$ac_err"; then | |
12894 | rm -rf conftest* | |
12895 | eval "ac_cv_header_$ac_safe=yes" | |
12896 | else | |
12897 | echo "$ac_err" >&5 | |
12898 | echo "configure: failed program was:" >&5 | |
12899 | cat conftest.$ac_ext >&5 | |
12900 | rm -rf conftest* | |
12901 | eval "ac_cv_header_$ac_safe=no" | |
12902 | fi | |
12903 | rm -f conftest* | |
12904 | fi | |
12905 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12906 | echo "$ac_t""yes" 1>&6 | |
12907 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
2c6025bc | 12908 | echo "configure:12909: checking for png_check_sig in -lpng" >&5 |
422107f9 VZ |
12909 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
12910 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12911 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12912 | else | |
12913 | ac_save_LIBS="$LIBS" | |
12914 | LIBS="-lpng -lz -lm $LIBS" | |
12915 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12916 | #line 12917 "configure" |
422107f9 VZ |
12917 | #include "confdefs.h" |
12918 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12919 | /* We use char because int might match the return type of a gcc2 | |
12920 | builtin and then its argument prototype would still apply. */ | |
12921 | char png_check_sig(); | |
12922 | ||
12923 | int main() { | |
12924 | png_check_sig() | |
12925 | ; return 0; } | |
12926 | EOF | |
2c6025bc | 12927 | if { (eval echo configure:12928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
12928 | rm -rf conftest* |
12929 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12930 | else | |
12931 | echo "configure: failed program was:" >&5 | |
12932 | cat conftest.$ac_ext >&5 | |
12933 | rm -rf conftest* | |
12934 | eval "ac_cv_lib_$ac_lib_var=no" | |
12935 | fi | |
12936 | rm -f conftest* | |
12937 | LIBS="$ac_save_LIBS" | |
12938 | ||
12939 | fi | |
12940 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12941 | echo "$ac_t""yes" 1>&6 | |
12942 | PNG_LINK="-lpng" | |
12943 | else | |
12944 | echo "$ac_t""no" 1>&6 | |
12945 | fi | |
12946 | ||
12947 | ||
12948 | else | |
12949 | echo "$ac_t""no" 1>&6 | |
12950 | fi | |
12951 | ||
12952 | if test "x$PNG_LINK" = "x" ; then | |
0dcf9893 | 12953 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
12954 | fi |
12955 | fi | |
12956 | ||
10f2d63a VZ |
12957 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
12958 | fi | |
12959 | ||
12960 | JPEG_INCLUDE= | |
422107f9 | 12961 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
10f2d63a VZ |
12962 | cat >> confdefs.h <<\EOF |
12963 | #define wxUSE_LIBJPEG 1 | |
12964 | EOF | |
12965 | ||
422107f9 VZ |
12966 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
12967 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
12968 | else | |
12969 | JPEG_LINK= | |
12970 | ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` | |
12971 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
2c6025bc | 12972 | echo "configure:12973: checking for jpeglib.h" >&5 |
422107f9 VZ |
12973 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12974 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12975 | else | |
12976 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 12977 | #line 12978 "configure" |
422107f9 VZ |
12978 | #include "confdefs.h" |
12979 | #include <jpeglib.h> | |
12980 | EOF | |
12981 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 12982 | { (eval echo configure:12983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
12983 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12984 | if test -z "$ac_err"; then | |
12985 | rm -rf conftest* | |
12986 | eval "ac_cv_header_$ac_safe=yes" | |
12987 | else | |
12988 | echo "$ac_err" >&5 | |
12989 | echo "configure: failed program was:" >&5 | |
12990 | cat conftest.$ac_ext >&5 | |
12991 | rm -rf conftest* | |
12992 | eval "ac_cv_header_$ac_safe=no" | |
12993 | fi | |
12994 | rm -f conftest* | |
12995 | fi | |
12996 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12997 | echo "$ac_t""yes" 1>&6 | |
12998 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
2c6025bc | 12999 | echo "configure:13000: checking for jpeg_read_header in -ljpeg" >&5 |
422107f9 VZ |
13000 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
13001 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13002 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13003 | else | |
13004 | ac_save_LIBS="$LIBS" | |
13005 | LIBS="-ljpeg $LIBS" | |
13006 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13007 | #line 13008 "configure" |
422107f9 VZ |
13008 | #include "confdefs.h" |
13009 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13010 | /* We use char because int might match the return type of a gcc2 | |
13011 | builtin and then its argument prototype would still apply. */ | |
13012 | char jpeg_read_header(); | |
13013 | ||
13014 | int main() { | |
13015 | jpeg_read_header() | |
13016 | ; return 0; } | |
13017 | EOF | |
2c6025bc | 13018 | if { (eval echo configure:13019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
13019 | rm -rf conftest* |
13020 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13021 | else | |
13022 | echo "configure: failed program was:" >&5 | |
13023 | cat conftest.$ac_ext >&5 | |
13024 | rm -rf conftest* | |
13025 | eval "ac_cv_lib_$ac_lib_var=no" | |
13026 | fi | |
13027 | rm -f conftest* | |
13028 | LIBS="$ac_save_LIBS" | |
13029 | ||
13030 | fi | |
13031 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13032 | echo "$ac_t""yes" 1>&6 | |
13033 | JPEG_LINK="-ljpeg" | |
13034 | else | |
13035 | echo "$ac_t""no" 1>&6 | |
13036 | fi | |
13037 | ||
13038 | else | |
13039 | echo "$ac_t""no" 1>&6 | |
13040 | fi | |
13041 | ||
13042 | if test "x$JPEG_LINK" = "x" ; then | |
0dcf9893 | 13043 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
13044 | fi |
13045 | fi | |
10f2d63a VZ |
13046 | fi |
13047 | ||
c7a2bf27 | 13048 | TIFF_INCLUDE= |
0dcf9893 | 13049 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
c7a2bf27 RR |
13050 | cat >> confdefs.h <<\EOF |
13051 | #define wxUSE_LIBTIFF 1 | |
13052 | EOF | |
13053 | ||
0dcf9893 VZ |
13054 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
13055 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
13056 | else | |
13057 | TIFF_LINK= | |
13058 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
13059 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
2c6025bc | 13060 | echo "configure:13061: checking for tiffio.h" >&5 |
0dcf9893 VZ |
13061 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13062 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13063 | else | |
13064 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13065 | #line 13066 "configure" |
0dcf9893 VZ |
13066 | #include "confdefs.h" |
13067 | #include <tiffio.h> | |
13068 | EOF | |
13069 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 13070 | { (eval echo configure:13071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0dcf9893 VZ |
13071 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13072 | if test -z "$ac_err"; then | |
13073 | rm -rf conftest* | |
13074 | eval "ac_cv_header_$ac_safe=yes" | |
13075 | else | |
13076 | echo "$ac_err" >&5 | |
13077 | echo "configure: failed program was:" >&5 | |
13078 | cat conftest.$ac_ext >&5 | |
13079 | rm -rf conftest* | |
13080 | eval "ac_cv_header_$ac_safe=no" | |
13081 | fi | |
13082 | rm -f conftest* | |
13083 | fi | |
13084 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13085 | echo "$ac_t""yes" 1>&6 | |
13086 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
2c6025bc | 13087 | echo "configure:13088: checking for TIFFError in -ltiff" >&5 |
0dcf9893 VZ |
13088 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
13089 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13090 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13091 | else | |
13092 | ac_save_LIBS="$LIBS" | |
13093 | LIBS="-ltiff -lm $LIBS" | |
13094 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13095 | #line 13096 "configure" |
0dcf9893 VZ |
13096 | #include "confdefs.h" |
13097 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13098 | /* We use char because int might match the return type of a gcc2 | |
13099 | builtin and then its argument prototype would still apply. */ | |
13100 | char TIFFError(); | |
13101 | ||
13102 | int main() { | |
13103 | TIFFError() | |
13104 | ; return 0; } | |
13105 | EOF | |
2c6025bc | 13106 | if { (eval echo configure:13107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0dcf9893 VZ |
13107 | rm -rf conftest* |
13108 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13109 | else | |
13110 | echo "configure: failed program was:" >&5 | |
13111 | cat conftest.$ac_ext >&5 | |
13112 | rm -rf conftest* | |
13113 | eval "ac_cv_lib_$ac_lib_var=no" | |
13114 | fi | |
13115 | rm -f conftest* | |
13116 | LIBS="$ac_save_LIBS" | |
13117 | ||
13118 | fi | |
13119 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13120 | echo "$ac_t""yes" 1>&6 | |
13121 | TIFF_LINK="-ltiff" | |
13122 | else | |
13123 | echo "$ac_t""no" 1>&6 | |
13124 | fi | |
13125 | ||
13126 | else | |
13127 | echo "$ac_t""no" 1>&6 | |
13128 | fi | |
13129 | ||
13130 | if test "x$TIFF_LINK" = "x" ; then | |
13131 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } | |
13132 | fi | |
13133 | fi | |
c7a2bf27 RR |
13134 | fi |
13135 | ||
3fed1840 RR |
13136 | FREETYPE_INCLUDE= |
13137 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
13138 | cat >> confdefs.h <<\EOF | |
13139 | #define wxUSE_FREETYPE 1 | |
13140 | EOF | |
13141 | ||
13142 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
13143 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
13144 | else | |
13145 | FREETYPE_LINK= | |
13146 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
13147 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
2c6025bc | 13148 | echo "configure:13149: checking for freetype.h" >&5 |
3fed1840 RR |
13149 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13150 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13151 | else | |
13152 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13153 | #line 13154 "configure" |
3fed1840 RR |
13154 | #include "confdefs.h" |
13155 | #include <freetype.h> | |
13156 | EOF | |
13157 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 13158 | { (eval echo configure:13159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3fed1840 RR |
13159 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13160 | if test -z "$ac_err"; then | |
13161 | rm -rf conftest* | |
13162 | eval "ac_cv_header_$ac_safe=yes" | |
13163 | else | |
13164 | echo "$ac_err" >&5 | |
13165 | echo "configure: failed program was:" >&5 | |
13166 | cat conftest.$ac_ext >&5 | |
13167 | rm -rf conftest* | |
13168 | eval "ac_cv_header_$ac_safe=no" | |
13169 | fi | |
13170 | rm -f conftest* | |
13171 | fi | |
13172 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13173 | echo "$ac_t""yes" 1>&6 | |
13174 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
2c6025bc | 13175 | echo "configure:13176: checking for FT_Render_Glyph in -lfreetype" >&5 |
3fed1840 RR |
13176 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
13177 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13178 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13179 | else | |
13180 | ac_save_LIBS="$LIBS" | |
13181 | LIBS="-lfreetype -lm $LIBS" | |
13182 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13183 | #line 13184 "configure" |
3fed1840 RR |
13184 | #include "confdefs.h" |
13185 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13186 | /* We use char because int might match the return type of a gcc2 | |
13187 | builtin and then its argument prototype would still apply. */ | |
13188 | char FT_Render_Glyph(); | |
13189 | ||
13190 | int main() { | |
13191 | FT_Render_Glyph() | |
13192 | ; return 0; } | |
13193 | EOF | |
2c6025bc | 13194 | if { (eval echo configure:13195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3fed1840 RR |
13195 | rm -rf conftest* |
13196 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13197 | else | |
13198 | echo "configure: failed program was:" >&5 | |
13199 | cat conftest.$ac_ext >&5 | |
13200 | rm -rf conftest* | |
13201 | eval "ac_cv_lib_$ac_lib_var=no" | |
13202 | fi | |
13203 | rm -f conftest* | |
13204 | LIBS="$ac_save_LIBS" | |
13205 | ||
13206 | fi | |
13207 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13208 | echo "$ac_t""yes" 1>&6 | |
13209 | FREETYPE_LINK="-lfreetype" | |
13210 | else | |
13211 | echo "$ac_t""no" 1>&6 | |
13212 | fi | |
13213 | ||
13214 | ||
13215 | else | |
13216 | echo "$ac_t""no" 1>&6 | |
13217 | fi | |
13218 | ||
13219 | if test "x$FREETYPE_LINK" = "x" ; then | |
13220 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } | |
13221 | fi | |
13222 | fi | |
13223 | fi | |
13224 | ||
10f2d63a VZ |
13225 | if test "$wxUSE_OPENGL" = "yes"; then |
13226 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
13227 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
2c6025bc | 13228 | echo "configure:13229: checking for GL/gl.h" >&5 |
10f2d63a VZ |
13229 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13230 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13231 | else | |
13232 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13233 | #line 13234 "configure" |
10f2d63a VZ |
13234 | #include "confdefs.h" |
13235 | #include <GL/gl.h> | |
13236 | EOF | |
13237 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 13238 | { (eval echo configure:13239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
13239 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13240 | if test -z "$ac_err"; then | |
13241 | rm -rf conftest* | |
13242 | eval "ac_cv_header_$ac_safe=yes" | |
13243 | else | |
13244 | echo "$ac_err" >&5 | |
13245 | echo "configure: failed program was:" >&5 | |
13246 | cat conftest.$ac_ext >&5 | |
13247 | rm -rf conftest* | |
13248 | eval "ac_cv_header_$ac_safe=no" | |
13249 | fi | |
13250 | rm -f conftest* | |
13251 | fi | |
13252 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13253 | echo "$ac_t""yes" 1>&6 | |
13254 | ||
bdad4e7e RR |
13255 | cat >> confdefs.h <<\EOF |
13256 | #define wxUSE_OPENGL 1 | |
13257 | EOF | |
13258 | ||
13259 | cat >> confdefs.h <<\EOF | |
13260 | #define wxUSE_GLCANVAS 1 | |
13261 | EOF | |
13262 | ||
13263 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 | |
2c6025bc | 13264 | echo "configure:13265: checking for glFlush in -lGL" >&5 |
bdad4e7e | 13265 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
13266 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
13267 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13268 | else | |
13269 | ac_save_LIBS="$LIBS" | |
bdad4e7e | 13270 | LIBS="-lGL $LIBS" |
10f2d63a | 13271 | cat > conftest.$ac_ext <<EOF |
2c6025bc | 13272 | #line 13273 "configure" |
10f2d63a VZ |
13273 | #include "confdefs.h" |
13274 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13275 | /* We use char because int might match the return type of a gcc2 | |
13276 | builtin and then its argument prototype would still apply. */ | |
bdad4e7e | 13277 | char glFlush(); |
10f2d63a VZ |
13278 | |
13279 | int main() { | |
bdad4e7e | 13280 | glFlush() |
10f2d63a VZ |
13281 | ; return 0; } |
13282 | EOF | |
2c6025bc | 13283 | if { (eval echo configure:13284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
13284 | rm -rf conftest* |
13285 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13286 | else | |
13287 | echo "configure: failed program was:" >&5 | |
13288 | cat conftest.$ac_ext >&5 | |
13289 | rm -rf conftest* | |
13290 | eval "ac_cv_lib_$ac_lib_var=no" | |
13291 | fi | |
13292 | rm -f conftest* | |
13293 | LIBS="$ac_save_LIBS" | |
13294 | ||
13295 | fi | |
13296 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13297 | echo "$ac_t""yes" 1>&6 | |
13298 | ||
f6bcfd97 | 13299 | OPENGL_LINK="-lGL -lGLU" |
10f2d63a VZ |
13300 | |
13301 | else | |
13302 | echo "$ac_t""no" 1>&6 | |
13303 | ||
bdad4e7e | 13304 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
2c6025bc | 13305 | echo "configure:13306: checking for glFlush in -lMesaGL" >&5 |
bdad4e7e | 13306 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
13307 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
13308 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13309 | else | |
13310 | ac_save_LIBS="$LIBS" | |
13311 | LIBS="-lMesaGL $LIBS" | |
13312 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13313 | #line 13314 "configure" |
10f2d63a VZ |
13314 | #include "confdefs.h" |
13315 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13316 | /* We use char because int might match the return type of a gcc2 | |
13317 | builtin and then its argument prototype would still apply. */ | |
bdad4e7e | 13318 | char glFlush(); |
10f2d63a VZ |
13319 | |
13320 | int main() { | |
bdad4e7e | 13321 | glFlush() |
10f2d63a VZ |
13322 | ; return 0; } |
13323 | EOF | |
2c6025bc | 13324 | if { (eval echo configure:13325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
13325 | rm -rf conftest* |
13326 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13327 | else | |
13328 | echo "configure: failed program was:" >&5 | |
13329 | cat conftest.$ac_ext >&5 | |
13330 | rm -rf conftest* | |
13331 | eval "ac_cv_lib_$ac_lib_var=no" | |
13332 | fi | |
13333 | rm -f conftest* | |
13334 | LIBS="$ac_save_LIBS" | |
13335 | ||
13336 | fi | |
13337 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13338 | echo "$ac_t""yes" 1>&6 | |
13339 | ||
f6bcfd97 | 13340 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
10f2d63a VZ |
13341 | |
13342 | else | |
13343 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13344 | fi |
13345 | ||
13346 | ||
13347 | fi | |
13348 | ||
13349 | ||
13350 | else | |
13351 | echo "$ac_t""no" 1>&6 | |
13352 | wxUSE_OPENGL=0 | |
13353 | fi | |
13354 | ||
13355 | fi | |
13356 | ||
13357 | ||
13358 | if test "$wxUSE_GUI" = "yes"; then | |
13359 | cat >> confdefs.h <<\EOF | |
13360 | #define wxUSE_GUI 1 | |
13361 | EOF | |
13362 | ||
13363 | ||
13364 | else | |
13365 | cat >> confdefs.h <<\EOF | |
13366 | #define wxUSE_NOGUI 1 | |
13367 | EOF | |
13368 | ||
13369 | fi | |
13370 | ||
13371 | ||
13372 | if test "$wxUSE_UNIX" = "yes"; then | |
13373 | cat >> confdefs.h <<\EOF | |
13374 | #define wxUSE_UNIX 1 | |
13375 | EOF | |
13376 | ||
13377 | fi | |
13378 | ||
13379 | ||
13380 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
13381 | cat >> confdefs.h <<\EOF | |
13382 | #define wxUSE_APPLE_IEEE 1 | |
13383 | EOF | |
13384 | ||
13385 | fi | |
13386 | ||
10f2d63a VZ |
13387 | if test "$wxUSE_WAVE" = "yes"; then |
13388 | cat >> confdefs.h <<\EOF | |
13389 | #define wxUSE_WAVE 1 | |
13390 | EOF | |
13391 | ||
13392 | fi | |
13393 | ||
13394 | if test "$wxUSE_FILE" = "yes"; then | |
13395 | cat >> confdefs.h <<\EOF | |
13396 | #define wxUSE_FILE 1 | |
13397 | EOF | |
13398 | ||
13399 | fi | |
13400 | ||
24528b0c VS |
13401 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
13402 | cat >> confdefs.h <<\EOF | |
13403 | #define wxUSE_FILESYSTEM 1 | |
13404 | EOF | |
13405 | ||
13406 | fi | |
13407 | ||
10f2d63a VZ |
13408 | if test "$wxUSE_FS_INET" = "yes"; then |
13409 | cat >> confdefs.h <<\EOF | |
13410 | #define wxUSE_FS_INET 1 | |
13411 | EOF | |
13412 | ||
13413 | fi | |
13414 | ||
13415 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
13416 | cat >> confdefs.h <<\EOF | |
13417 | #define wxUSE_FS_ZIP 1 | |
13418 | EOF | |
13419 | ||
13420 | fi | |
13421 | ||
13422 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
13423 | cat >> confdefs.h <<\EOF | |
13424 | #define wxUSE_ZIPSTREAM 1 | |
13425 | EOF | |
13426 | ||
13427 | fi | |
13428 | ||
eb4efbdc VZ |
13429 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
13430 | cat >> confdefs.h <<\EOF | |
13431 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
13432 | EOF | |
13433 | ||
13434 | fi | |
13435 | ||
10f2d63a VZ |
13436 | if test "$wxUSE_BUSYINFO" = "yes"; then |
13437 | cat >> confdefs.h <<\EOF | |
13438 | #define wxUSE_BUSYINFO 1 | |
13439 | EOF | |
13440 | ||
13441 | fi | |
13442 | ||
13443 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
13444 | cat >> confdefs.h <<\EOF | |
13445 | #define wxUSE_STD_IOSTREAM 1 | |
13446 | EOF | |
13447 | ||
13448 | fi | |
13449 | ||
13450 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
13451 | if test "$wxUSE_FILE" != "yes"; then | |
13452 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
13453 | else | |
13454 | cat >> confdefs.h <<\EOF | |
13455 | #define wxUSE_TEXTFILE 1 | |
13456 | EOF | |
13457 | ||
13458 | fi | |
13459 | fi | |
13460 | ||
13461 | if test "$wxUSE_CONFIG" = "yes" ; then | |
13462 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
13463 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
13464 | else | |
13465 | cat >> confdefs.h <<\EOF | |
13466 | #define wxUSE_CONFIG 1 | |
13467 | EOF | |
13468 | ||
13469 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
13470 | fi | |
13471 | fi | |
13472 | ||
13473 | if test "$wxUSE_INTL" = "yes" ; then | |
13474 | if test "$wxUSE_FILE" != "yes"; then | |
13475 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
13476 | else | |
13477 | cat >> confdefs.h <<\EOF | |
13478 | #define wxUSE_INTL 1 | |
13479 | EOF | |
13480 | ||
13481 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 13482 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
13483 | fi |
13484 | fi | |
13485 | ||
13486 | if test "$wxUSE_LOG" = "yes"; then | |
13487 | cat >> confdefs.h <<\EOF | |
13488 | #define wxUSE_LOG 1 | |
13489 | EOF | |
13490 | ||
13491 | fi | |
13492 | ||
13493 | if test "$wxUSE_LONGLONG" = "yes"; then | |
13494 | cat >> confdefs.h <<\EOF | |
13495 | #define wxUSE_LONGLONG 1 | |
13496 | EOF | |
13497 | ||
13498 | fi | |
13499 | ||
e8f65ba6 RR |
13500 | if test "$wxUSE_GEOMETRY" = "yes"; then |
13501 | cat >> confdefs.h <<\EOF | |
13502 | #define wxUSE_GEOMETRY 1 | |
13503 | EOF | |
13504 | ||
13505 | fi | |
13506 | ||
10f2d63a VZ |
13507 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
13508 | cat >> confdefs.h <<\EOF | |
13509 | #define wxUSE_DIALUP_MANAGER 1 | |
13510 | EOF | |
13511 | ||
70f7a477 | 13512 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
13513 | fi |
13514 | ||
13515 | if test "$wxUSE_STREAMS" = "yes" ; then | |
13516 | cat >> confdefs.h <<\EOF | |
13517 | #define wxUSE_STREAMS 1 | |
13518 | EOF | |
13519 | ||
13520 | fi | |
13521 | ||
10f2d63a | 13522 | |
afc31813 | 13523 | if test "$wxUSE_TIMEDATE" = "yes"; then |
83307f33 VZ |
13524 | for ac_func in strptime |
13525 | do | |
13526 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 13527 | echo "configure:13528: checking for $ac_func" >&5 |
83307f33 VZ |
13528 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13529 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13530 | else | |
13531 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13532 | #line 13533 "configure" |
83307f33 VZ |
13533 | #include "confdefs.h" |
13534 | /* System header to define __stub macros and hopefully few prototypes, | |
13535 | which can conflict with char $ac_func(); below. */ | |
13536 | #include <assert.h> | |
13537 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13538 | /* We use char because int might match the return type of a gcc2 | |
13539 | builtin and then its argument prototype would still apply. */ | |
13540 | char $ac_func(); | |
13541 | ||
13542 | int main() { | |
13543 | ||
13544 | /* The GNU C library defines this for functions which it implements | |
13545 | to always fail with ENOSYS. Some functions are actually named | |
13546 | something starting with __ and the normal name is an alias. */ | |
13547 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13548 | choke me | |
13549 | #else | |
e8482f24 | 13550 | $ac_func(); |
83307f33 VZ |
13551 | #endif |
13552 | ||
13553 | ; return 0; } | |
13554 | EOF | |
2c6025bc | 13555 | if { (eval echo configure:13556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
83307f33 VZ |
13556 | rm -rf conftest* |
13557 | eval "ac_cv_func_$ac_func=yes" | |
13558 | else | |
13559 | echo "configure: failed program was:" >&5 | |
13560 | cat conftest.$ac_ext >&5 | |
13561 | rm -rf conftest* | |
13562 | eval "ac_cv_func_$ac_func=no" | |
13563 | fi | |
13564 | rm -f conftest* | |
13565 | fi | |
13566 | ||
13567 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13568 | echo "$ac_t""yes" 1>&6 | |
13569 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13570 | cat >> confdefs.h <<EOF | |
13571 | #define $ac_tr_func 1 | |
13572 | EOF | |
13573 | ||
13574 | else | |
13575 | echo "$ac_t""no" 1>&6 | |
13576 | fi | |
13577 | done | |
13578 | ||
13579 | ||
360d6699 | 13580 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
2c6025bc | 13581 | echo "configure:13582: checking for timezone variable in <time.h>" >&5 |
360d6699 VZ |
13582 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
13583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13584 | else | |
13585 | ||
13586 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13587 | #line 13588 "configure" |
360d6699 VZ |
13588 | #include "confdefs.h" |
13589 | ||
b4085ce6 | 13590 | #include <time.h> |
360d6699 VZ |
13591 | |
13592 | int main() { | |
13593 | ||
13594 | int tz; | |
13595 | tz = __timezone; | |
13596 | ||
13597 | ; return 0; } | |
13598 | EOF | |
2c6025bc | 13599 | if { (eval echo configure:13600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
360d6699 VZ |
13600 | rm -rf conftest* |
13601 | ||
13602 | wx_cv_var_timezone=__timezone | |
13603 | ||
13604 | else | |
13605 | echo "configure: failed program was:" >&5 | |
13606 | cat conftest.$ac_ext >&5 | |
13607 | rm -rf conftest* | |
13608 | ||
13609 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13610 | #line 13611 "configure" |
360d6699 VZ |
13611 | #include "confdefs.h" |
13612 | ||
b4085ce6 | 13613 | #include <time.h> |
360d6699 VZ |
13614 | |
13615 | int main() { | |
13616 | ||
13617 | int tz; | |
13618 | tz = _timezone; | |
13619 | ||
13620 | ; return 0; } | |
13621 | EOF | |
2c6025bc | 13622 | if { (eval echo configure:13623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
360d6699 VZ |
13623 | rm -rf conftest* |
13624 | ||
13625 | wx_cv_var_timezone=_timezone | |
13626 | ||
5357c8e8 VZ |
13627 | else |
13628 | echo "configure: failed program was:" >&5 | |
13629 | cat conftest.$ac_ext >&5 | |
13630 | rm -rf conftest* | |
13631 | ||
13632 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13633 | #line 13634 "configure" |
5357c8e8 VZ |
13634 | #include "confdefs.h" |
13635 | ||
b4085ce6 | 13636 | #include <time.h> |
5357c8e8 VZ |
13637 | |
13638 | int main() { | |
13639 | ||
13640 | int tz; | |
13641 | tz = timezone; | |
13642 | ||
13643 | ; return 0; } | |
13644 | EOF | |
2c6025bc | 13645 | if { (eval echo configure:13646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5357c8e8 VZ |
13646 | rm -rf conftest* |
13647 | ||
13648 | wx_cv_var_timezone=timezone | |
13649 | ||
360d6699 VZ |
13650 | else |
13651 | echo "configure: failed program was:" >&5 | |
13652 | cat conftest.$ac_ext >&5 | |
13653 | rm -rf conftest* | |
13654 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
5357c8e8 VZ |
13655 | |
13656 | fi | |
13657 | rm -f conftest* | |
13658 | ||
360d6699 VZ |
13659 | |
13660 | fi | |
13661 | rm -f conftest* | |
13662 | ||
13663 | ||
13664 | fi | |
13665 | rm -f conftest* | |
13666 | ||
13667 | ||
13668 | fi | |
13669 | ||
13670 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
13671 | ||
13672 | cat >> confdefs.h <<EOF | |
13673 | #define WX_TIMEZONE $wx_cv_var_timezone | |
13674 | EOF | |
13675 | ||
13676 | ||
3fcdd07b | 13677 | for ac_func in localtime |
afc31813 VZ |
13678 | do |
13679 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 13680 | echo "configure:13681: checking for $ac_func" >&5 |
afc31813 VZ |
13681 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13683 | else | |
13684 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13685 | #line 13686 "configure" |
10f2d63a | 13686 | #include "confdefs.h" |
afc31813 VZ |
13687 | /* System header to define __stub macros and hopefully few prototypes, |
13688 | which can conflict with char $ac_func(); below. */ | |
13689 | #include <assert.h> | |
13690 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13691 | /* We use char because int might match the return type of a gcc2 | |
13692 | builtin and then its argument prototype would still apply. */ | |
13693 | char $ac_func(); | |
13694 | ||
10f2d63a | 13695 | int main() { |
afc31813 VZ |
13696 | |
13697 | /* The GNU C library defines this for functions which it implements | |
13698 | to always fail with ENOSYS. Some functions are actually named | |
13699 | something starting with __ and the normal name is an alias. */ | |
13700 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13701 | choke me | |
13702 | #else | |
e8482f24 | 13703 | $ac_func(); |
afc31813 VZ |
13704 | #endif |
13705 | ||
10f2d63a VZ |
13706 | ; return 0; } |
13707 | EOF | |
2c6025bc | 13708 | if { (eval echo configure:13709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a | 13709 | rm -rf conftest* |
afc31813 | 13710 | eval "ac_cv_func_$ac_func=yes" |
10f2d63a VZ |
13711 | else |
13712 | echo "configure: failed program was:" >&5 | |
13713 | cat conftest.$ac_ext >&5 | |
13714 | rm -rf conftest* | |
afc31813 VZ |
13715 | eval "ac_cv_func_$ac_func=no" |
13716 | fi | |
13717 | rm -f conftest* | |
13718 | fi | |
13719 | ||
13720 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13721 | echo "$ac_t""yes" 1>&6 | |
13722 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13723 | cat >> confdefs.h <<EOF | |
13724 | #define $ac_tr_func 1 | |
13725 | EOF | |
3fcdd07b | 13726 | |
afc31813 VZ |
13727 | else |
13728 | echo "$ac_t""no" 1>&6 | |
13729 | fi | |
13730 | done | |
13731 | ||
13732 | ||
0470b1e6 VZ |
13733 | if test "$ac_cv_func_localtime" = "yes"; then |
13734 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
2c6025bc | 13735 | echo "configure:13736: checking for tm_gmtoff in struct tm" >&5 |
0470b1e6 VZ |
13736 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
13737 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13738 | else | |
13739 | ||
13740 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13741 | #line 13742 "configure" |
0470b1e6 VZ |
13742 | #include "confdefs.h" |
13743 | ||
b4085ce6 | 13744 | #include <time.h> |
0470b1e6 VZ |
13745 | |
13746 | int main() { | |
13747 | ||
13748 | struct tm tm; | |
13749 | tm.tm_gmtoff++; | |
13750 | ||
13751 | ; return 0; } | |
13752 | EOF | |
2c6025bc | 13753 | if { (eval echo configure:13754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0470b1e6 VZ |
13754 | rm -rf conftest* |
13755 | ||
f03a98d8 | 13756 | wx_cv_struct_tm_has_gmtoff=yes |
0470b1e6 VZ |
13757 | cat >> confdefs.h <<\EOF |
13758 | #define WX_GMTOFF_IN_TM 1 | |
13759 | EOF | |
13760 | ||
13761 | ||
13762 | else | |
13763 | echo "configure: failed program was:" >&5 | |
13764 | cat conftest.$ac_ext >&5 | |
13765 | rm -rf conftest* | |
13766 | wx_cv_struct_tm_has_gmtoff=no | |
13767 | ||
13768 | fi | |
13769 | rm -f conftest* | |
13770 | ||
13771 | fi | |
13772 | ||
13773 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
3fcdd07b VZ |
13774 | fi |
13775 | ||
13776 | for ac_func in gettimeofday ftime | |
13777 | do | |
13778 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 13779 | echo "configure:13780: checking for $ac_func" >&5 |
3fcdd07b VZ |
13780 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13781 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13782 | else | |
13783 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13784 | #line 13785 "configure" |
3fcdd07b VZ |
13785 | #include "confdefs.h" |
13786 | /* System header to define __stub macros and hopefully few prototypes, | |
13787 | which can conflict with char $ac_func(); below. */ | |
13788 | #include <assert.h> | |
13789 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13790 | /* We use char because int might match the return type of a gcc2 | |
13791 | builtin and then its argument prototype would still apply. */ | |
13792 | char $ac_func(); | |
13793 | ||
13794 | int main() { | |
13795 | ||
13796 | /* The GNU C library defines this for functions which it implements | |
13797 | to always fail with ENOSYS. Some functions are actually named | |
13798 | something starting with __ and the normal name is an alias. */ | |
13799 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13800 | choke me | |
13801 | #else | |
e8482f24 | 13802 | $ac_func(); |
3fcdd07b VZ |
13803 | #endif |
13804 | ||
13805 | ; return 0; } | |
13806 | EOF | |
2c6025bc | 13807 | if { (eval echo configure:13808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3fcdd07b VZ |
13808 | rm -rf conftest* |
13809 | eval "ac_cv_func_$ac_func=yes" | |
13810 | else | |
13811 | echo "configure: failed program was:" >&5 | |
13812 | cat conftest.$ac_ext >&5 | |
13813 | rm -rf conftest* | |
13814 | eval "ac_cv_func_$ac_func=no" | |
13815 | fi | |
13816 | rm -f conftest* | |
13817 | fi | |
13818 | ||
13819 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13820 | echo "$ac_t""yes" 1>&6 | |
13821 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13822 | cat >> confdefs.h <<EOF | |
13823 | #define $ac_tr_func 1 | |
13824 | EOF | |
13825 | break | |
13826 | else | |
13827 | echo "$ac_t""no" 1>&6 | |
13828 | fi | |
13829 | done | |
13830 | ||
13831 | ||
13832 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
afc31813 | 13833 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
2c6025bc | 13834 | echo "configure:13835: checking whether gettimeofday takes two arguments" >&5 |
afc31813 VZ |
13835 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
13836 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13837 | else | |
13838 | ||
13839 | ||
13840 | ac_ext=C | |
13841 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13842 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13843 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13844 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13845 | cross_compiling=$ac_cv_prog_cxx_cross | |
13846 | ||
13847 | ||
13848 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13849 | #line 13850 "configure" |
10f2d63a | 13850 | #include "confdefs.h" |
afc31813 VZ |
13851 | |
13852 | #include <sys/time.h> | |
13853 | #include <unistd.h> | |
13854 | ||
10f2d63a | 13855 | int main() { |
afc31813 VZ |
13856 | |
13857 | struct timeval tv; | |
13858 | struct timezone tz; | |
13859 | gettimeofday(&tv, &tz); | |
13860 | ||
10f2d63a VZ |
13861 | ; return 0; } |
13862 | EOF | |
2c6025bc | 13863 | if { (eval echo configure:13864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 13864 | rm -rf conftest* |
afc31813 | 13865 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a VZ |
13866 | else |
13867 | echo "configure: failed program was:" >&5 | |
13868 | cat conftest.$ac_ext >&5 | |
13869 | rm -rf conftest* | |
13870 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13871 | #line 13872 "configure" |
10f2d63a | 13872 | #include "confdefs.h" |
afc31813 VZ |
13873 | |
13874 | #include <sys/time.h> | |
13875 | #include <unistd.h> | |
13876 | ||
10f2d63a | 13877 | int main() { |
afc31813 VZ |
13878 | |
13879 | struct timeval tv; | |
13880 | gettimeofday(&tv); | |
13881 | ||
10f2d63a VZ |
13882 | ; return 0; } |
13883 | EOF | |
2c6025bc | 13884 | if { (eval echo configure:13885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 13885 | rm -rf conftest* |
afc31813 | 13886 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a VZ |
13887 | else |
13888 | echo "configure: failed program was:" >&5 | |
13889 | cat conftest.$ac_ext >&5 | |
13890 | rm -rf conftest* | |
afc31813 VZ |
13891 | wx_cv_func_gettimeofday_has_2_args=unknown |
13892 | ||
10f2d63a VZ |
13893 | fi |
13894 | rm -f conftest* | |
afc31813 | 13895 | |
10f2d63a VZ |
13896 | fi |
13897 | rm -f conftest* | |
afc31813 | 13898 | ac_ext=c |
10f2d63a VZ |
13899 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13900 | ac_cpp='$CPP $CPPFLAGS' | |
13901 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13902 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13903 | cross_compiling=$ac_cv_prog_cc_cross | |
13904 | ||
afc31813 VZ |
13905 | |
13906 | fi | |
13907 | ||
13908 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 13909 | |
afc31813 VZ |
13910 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
13911 | cat >> confdefs.h <<\EOF | |
13912 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
13913 | EOF | |
13914 | ||
13915 | fi | |
13916 | fi | |
13917 | ||
13918 | cat >> confdefs.h <<\EOF | |
13919 | #define wxUSE_TIMEDATE 1 | |
13920 | EOF | |
13921 | ||
13922 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
13923 | fi | |
13924 | ||
13925 | ||
b089607b VZ |
13926 | if test "$TOOLKIT" != "MSW"; then |
13927 | ||
afc31813 | 13928 | if test "$wxUSE_SOCKETS" = "yes"; then |
c63c7106 | 13929 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
2c6025bc | 13930 | echo "configure:13931: checking for socket" >&5 |
c63c7106 VZ |
13931 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
13932 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13933 | else | |
13934 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13935 | #line 13936 "configure" |
c63c7106 VZ |
13936 | #include "confdefs.h" |
13937 | /* System header to define __stub macros and hopefully few prototypes, | |
13938 | which can conflict with char socket(); below. */ | |
13939 | #include <assert.h> | |
13940 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13941 | /* We use char because int might match the return type of a gcc2 | |
13942 | builtin and then its argument prototype would still apply. */ | |
13943 | char socket(); | |
13944 | ||
13945 | int main() { | |
13946 | ||
13947 | /* The GNU C library defines this for functions which it implements | |
13948 | to always fail with ENOSYS. Some functions are actually named | |
13949 | something starting with __ and the normal name is an alias. */ | |
13950 | #if defined (__stub_socket) || defined (__stub___socket) | |
13951 | choke me | |
13952 | #else | |
e8482f24 | 13953 | socket(); |
c63c7106 VZ |
13954 | #endif |
13955 | ||
13956 | ; return 0; } | |
13957 | EOF | |
2c6025bc | 13958 | if { (eval echo configure:13959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
13959 | rm -rf conftest* |
13960 | eval "ac_cv_func_socket=yes" | |
13961 | else | |
13962 | echo "configure: failed program was:" >&5 | |
13963 | cat conftest.$ac_ext >&5 | |
13964 | rm -rf conftest* | |
13965 | eval "ac_cv_func_socket=no" | |
13966 | fi | |
13967 | rm -f conftest* | |
13968 | fi | |
13969 | ||
13970 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
13971 | echo "$ac_t""yes" 1>&6 | |
13972 | : | |
13973 | else | |
13974 | echo "$ac_t""no" 1>&6 | |
13975 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
2c6025bc | 13976 | echo "configure:13977: checking for socket in -lsocket" >&5 |
c63c7106 VZ |
13977 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
13978 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13979 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13980 | else | |
13981 | ac_save_LIBS="$LIBS" | |
13982 | LIBS="-lsocket $LIBS" | |
13983 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 13984 | #line 13985 "configure" |
c63c7106 VZ |
13985 | #include "confdefs.h" |
13986 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13987 | /* We use char because int might match the return type of a gcc2 | |
13988 | builtin and then its argument prototype would still apply. */ | |
13989 | char socket(); | |
13990 | ||
13991 | int main() { | |
13992 | socket() | |
13993 | ; return 0; } | |
13994 | EOF | |
2c6025bc | 13995 | if { (eval echo configure:13996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
13996 | rm -rf conftest* |
13997 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13998 | else | |
13999 | echo "configure: failed program was:" >&5 | |
14000 | cat conftest.$ac_ext >&5 | |
14001 | rm -rf conftest* | |
14002 | eval "ac_cv_lib_$ac_lib_var=no" | |
14003 | fi | |
14004 | rm -f conftest* | |
14005 | LIBS="$ac_save_LIBS" | |
14006 | ||
14007 | fi | |
14008 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14009 | echo "$ac_t""yes" 1>&6 | |
14010 | INET_LINK="$INET_LINK -lsocket" | |
c63c7106 VZ |
14011 | else |
14012 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
14013 | |
14014 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
14015 | wxUSE_SOCKETS=no | |
14016 | ||
14017 | ||
c63c7106 VZ |
14018 | fi |
14019 | ||
14020 | ||
14021 | fi | |
14022 | ||
10f2d63a VZ |
14023 | fi |
14024 | ||
b089607b | 14025 | |
afc31813 | 14026 | if test "$wxUSE_SOCKETS" = "yes" ; then |
51a9faba | 14027 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
2c6025bc | 14028 | echo "configure:14029: checking what is the type of the third argument of getsockname" >&5 |
51a9faba VZ |
14029 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
14030 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14031 | else | |
14032 | ||
14033 | ||
14034 | ac_ext=C | |
afc31813 VZ |
14035 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14036 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14037 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14038 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14039 | cross_compiling=$ac_cv_prog_cxx_cross | |
14040 | ||
51a9faba VZ |
14041 | |
14042 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 14043 | #line 14044 "configure" |
afc31813 | 14044 | #include "confdefs.h" |
51a9faba | 14045 | |
3ace2e6d | 14046 | #include <sys/types.h> |
51a9faba VZ |
14047 | #include <sys/socket.h> |
14048 | ||
afc31813 | 14049 | int main() { |
51a9faba VZ |
14050 | |
14051 | socklen_t len; | |
14052 | getsockname(0, 0, &len); | |
14053 | ||
afc31813 VZ |
14054 | ; return 0; } |
14055 | EOF | |
2c6025bc | 14056 | if { (eval echo configure:14057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 14057 | rm -rf conftest* |
51a9faba | 14058 | wx_cv_type_getsockname3=socklen_t |
afc31813 VZ |
14059 | else |
14060 | echo "configure: failed program was:" >&5 | |
14061 | cat conftest.$ac_ext >&5 | |
14062 | rm -rf conftest* | |
14063 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 14064 | #line 14065 "configure" |
afc31813 | 14065 | #include "confdefs.h" |
51a9faba | 14066 | |
3ace2e6d | 14067 | #include <sys/types.h> |
51a9faba VZ |
14068 | #include <sys/socket.h> |
14069 | ||
afc31813 | 14070 | int main() { |
51a9faba VZ |
14071 | |
14072 | size_t len; | |
14073 | getsockname(0, 0, &len); | |
14074 | ||
afc31813 VZ |
14075 | ; return 0; } |
14076 | EOF | |
2c6025bc | 14077 | if { (eval echo configure:14078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 14078 | rm -rf conftest* |
51a9faba | 14079 | wx_cv_type_getsockname3=size_t |
afc31813 VZ |
14080 | else |
14081 | echo "configure: failed program was:" >&5 | |
14082 | cat conftest.$ac_ext >&5 | |
14083 | rm -rf conftest* | |
14084 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 14085 | #line 14086 "configure" |
afc31813 | 14086 | #include "confdefs.h" |
51a9faba | 14087 | |
3ace2e6d | 14088 | #include <sys/types.h> |
51a9faba VZ |
14089 | #include <sys/socket.h> |
14090 | ||
afc31813 | 14091 | int main() { |
51a9faba VZ |
14092 | |
14093 | int len; | |
14094 | getsockname(0, 0, &len); | |
14095 | ||
afc31813 VZ |
14096 | ; return 0; } |
14097 | EOF | |
2c6025bc | 14098 | if { (eval echo configure:14099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 14099 | rm -rf conftest* |
51a9faba | 14100 | wx_cv_type_getsockname3=int |
afc31813 VZ |
14101 | else |
14102 | echo "configure: failed program was:" >&5 | |
14103 | cat conftest.$ac_ext >&5 | |
3ace2e6d SN |
14104 | rm -rf conftest* |
14105 | wx_cv_type_getsockname3=unknown | |
14106 | ||
afc31813 VZ |
14107 | fi |
14108 | rm -f conftest* | |
51a9faba | 14109 | |
afc31813 VZ |
14110 | fi |
14111 | rm -f conftest* | |
51a9faba | 14112 | |
afc31813 VZ |
14113 | fi |
14114 | rm -f conftest* | |
51a9faba VZ |
14115 | |
14116 | ac_ext=c | |
afc31813 VZ |
14117 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14118 | ac_cpp='$CPP $CPPFLAGS' | |
14119 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14120 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14121 | cross_compiling=$ac_cv_prog_cc_cross | |
14122 | ||
51a9faba VZ |
14123 | |
14124 | fi | |
14125 | ||
14126 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
14127 | ||
14128 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
14129 | wxUSE_SOCKETS=no | |
14130 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
14131 | else | |
14132 | cat >> confdefs.h <<EOF | |
14133 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
14134 | EOF | |
14135 | ||
14136 | fi | |
14137 | fi | |
afc31813 | 14138 | |
c521c494 RL |
14139 | fi |
14140 | ||
51a9faba | 14141 | if test "$wxUSE_SOCKETS" = "yes" ; then |
afc31813 VZ |
14142 | cat >> confdefs.h <<\EOF |
14143 | #define wxUSE_SOCKETS 1 | |
14144 | EOF | |
14145 | ||
70f7a477 | 14146 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
14147 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
14148 | fi | |
14149 | ||
10f2d63a | 14150 | |
dc3d889d VZ |
14151 | if test "$wxUSE_GUI" = "yes"; then |
14152 | ||
b089607b VZ |
14153 | if test "$TOOLKIT" != "MSW"; then |
14154 | ||
ceded8b9 | 14155 | if test "$wxUSE_JOYSTICK" = "yes"; then |
10f2d63a VZ |
14156 | for ac_hdr in linux/joystick.h |
14157 | do | |
14158 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14159 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2c6025bc | 14160 | echo "configure:14161: checking for $ac_hdr" >&5 |
10f2d63a VZ |
14161 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14163 | else | |
14164 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 14165 | #line 14166 "configure" |
10f2d63a VZ |
14166 | #include "confdefs.h" |
14167 | #include <$ac_hdr> | |
14168 | EOF | |
14169 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 14170 | { (eval echo configure:14171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
14171 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14172 | if test -z "$ac_err"; then | |
14173 | rm -rf conftest* | |
14174 | eval "ac_cv_header_$ac_safe=yes" | |
14175 | else | |
14176 | echo "$ac_err" >&5 | |
14177 | echo "configure: failed program was:" >&5 | |
14178 | cat conftest.$ac_ext >&5 | |
14179 | rm -rf conftest* | |
14180 | eval "ac_cv_header_$ac_safe=no" | |
14181 | fi | |
14182 | rm -f conftest* | |
14183 | fi | |
14184 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14185 | echo "$ac_t""yes" 1>&6 | |
14186 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14187 | cat >> confdefs.h <<EOF | |
14188 | #define $ac_tr_hdr 1 | |
14189 | EOF | |
14190 | ||
14191 | else | |
14192 | echo "$ac_t""no" 1>&6 | |
14193 | fi | |
14194 | done | |
14195 | ||
b089607b | 14196 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 14197 | wxUSE_JOYSTICK=no |
dc3d889d | 14198 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
14199 | fi |
14200 | fi | |
14201 | ||
14202 | fi | |
14203 | ||
ceded8b9 | 14204 | if test "$wxUSE_JOYSTICK" = "yes"; then |
10f2d63a VZ |
14205 | cat >> confdefs.h <<\EOF |
14206 | #define wxUSE_JOYSTICK 1 | |
14207 | EOF | |
14208 | ||
14209 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
14210 | fi |
14211 | ||
dc3d889d VZ |
14212 | fi |
14213 | ||
10f2d63a | 14214 | |
b089607b VZ |
14215 | if test "$TOOLKIT" != "MSW"; then |
14216 | ||
10f2d63a VZ |
14217 | HAVE_DL_FUNCS=0 |
14218 | HAVE_SHL_FUNCS=0 | |
14219 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
b4085ce6 GD |
14220 | if test "$USE_MAC" = 1; then |
14221 | HAVE_DL_FUNCS=1 | |
14222 | else | |
14223 | for ac_func in dlopen | |
10f2d63a VZ |
14224 | do |
14225 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 14226 | echo "configure:14227: checking for $ac_func" >&5 |
10f2d63a VZ |
14227 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14228 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14229 | else | |
14230 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 14231 | #line 14232 "configure" |
10f2d63a VZ |
14232 | #include "confdefs.h" |
14233 | /* System header to define __stub macros and hopefully few prototypes, | |
14234 | which can conflict with char $ac_func(); below. */ | |
14235 | #include <assert.h> | |
14236 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14237 | /* We use char because int might match the return type of a gcc2 | |
14238 | builtin and then its argument prototype would still apply. */ | |
14239 | char $ac_func(); | |
14240 | ||
14241 | int main() { | |
14242 | ||
14243 | /* The GNU C library defines this for functions which it implements | |
14244 | to always fail with ENOSYS. Some functions are actually named | |
14245 | something starting with __ and the normal name is an alias. */ | |
14246 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14247 | choke me | |
14248 | #else | |
e8482f24 | 14249 | $ac_func(); |
10f2d63a VZ |
14250 | #endif |
14251 | ||
14252 | ; return 0; } | |
14253 | EOF | |
2c6025bc | 14254 | if { (eval echo configure:14255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
14255 | rm -rf conftest* |
14256 | eval "ac_cv_func_$ac_func=yes" | |
14257 | else | |
14258 | echo "configure: failed program was:" >&5 | |
14259 | cat conftest.$ac_ext >&5 | |
14260 | rm -rf conftest* | |
14261 | eval "ac_cv_func_$ac_func=no" | |
14262 | fi | |
14263 | rm -f conftest* | |
14264 | fi | |
14265 | ||
14266 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14267 | echo "$ac_t""yes" 1>&6 | |
14268 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14269 | cat >> confdefs.h <<EOF | |
14270 | #define $ac_tr_func 1 | |
14271 | EOF | |
14272 | ||
14273 | cat >> confdefs.h <<\EOF | |
14274 | #define HAVE_DLOPEN 1 | |
14275 | EOF | |
14276 | ||
14277 | HAVE_DL_FUNCS=1 | |
14278 | ||
14279 | else | |
14280 | echo "$ac_t""no" 1>&6 | |
14281 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
2c6025bc | 14282 | echo "configure:14283: checking for dlopen in -ldl" >&5 |
10f2d63a VZ |
14283 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
14284 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14285 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14286 | else | |
14287 | ac_save_LIBS="$LIBS" | |
14288 | LIBS="-ldl $LIBS" | |
14289 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 14290 | #line 14291 "configure" |
10f2d63a VZ |
14291 | #include "confdefs.h" |
14292 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14293 | /* We use char because int might match the return type of a gcc2 | |
14294 | builtin and then its argument prototype would still apply. */ | |
14295 | char dlopen(); | |
14296 | ||
14297 | int main() { | |
14298 | dlopen() | |
14299 | ; return 0; } | |
14300 | EOF | |
2c6025bc | 14301 | if { (eval echo configure:14302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
14302 | rm -rf conftest* |
14303 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14304 | else | |
14305 | echo "configure: failed program was:" >&5 | |
14306 | cat conftest.$ac_ext >&5 | |
14307 | rm -rf conftest* | |
14308 | eval "ac_cv_lib_$ac_lib_var=no" | |
14309 | fi | |
14310 | rm -f conftest* | |
14311 | LIBS="$ac_save_LIBS" | |
14312 | ||
14313 | fi | |
14314 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14315 | echo "$ac_t""yes" 1>&6 | |
14316 | ||
14317 | cat >> confdefs.h <<\EOF | |
14318 | #define HAVE_DLOPEN 1 | |
14319 | EOF | |
14320 | ||
14321 | HAVE_DL_FUNCS=1 | |
14322 | LIBS="$LIBS -ldl" | |
14323 | ||
14324 | else | |
14325 | echo "$ac_t""no" 1>&6 | |
14326 | ||
14327 | for ac_func in shl_load | |
14328 | do | |
14329 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 14330 | echo "configure:14331: checking for $ac_func" >&5 |
10f2d63a VZ |
14331 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14333 | else | |
14334 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 14335 | #line 14336 "configure" |
10f2d63a VZ |
14336 | #include "confdefs.h" |
14337 | /* System header to define __stub macros and hopefully few prototypes, | |
14338 | which can conflict with char $ac_func(); below. */ | |
14339 | #include <assert.h> | |
14340 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14341 | /* We use char because int might match the return type of a gcc2 | |
14342 | builtin and then its argument prototype would still apply. */ | |
14343 | char $ac_func(); | |
14344 | ||
14345 | int main() { | |
14346 | ||
14347 | /* The GNU C library defines this for functions which it implements | |
14348 | to always fail with ENOSYS. Some functions are actually named | |
14349 | something starting with __ and the normal name is an alias. */ | |
14350 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14351 | choke me | |
14352 | #else | |
e8482f24 | 14353 | $ac_func(); |
10f2d63a VZ |
14354 | #endif |
14355 | ||
14356 | ; return 0; } | |
14357 | EOF | |
2c6025bc | 14358 | if { (eval echo configure:14359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
14359 | rm -rf conftest* |
14360 | eval "ac_cv_func_$ac_func=yes" | |
14361 | else | |
14362 | echo "configure: failed program was:" >&5 | |
14363 | cat conftest.$ac_ext >&5 | |
14364 | rm -rf conftest* | |
14365 | eval "ac_cv_func_$ac_func=no" | |
14366 | fi | |
14367 | rm -f conftest* | |
14368 | fi | |
14369 | ||
14370 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14371 | echo "$ac_t""yes" 1>&6 | |
14372 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14373 | cat >> confdefs.h <<EOF | |
14374 | #define $ac_tr_func 1 | |
14375 | EOF | |
14376 | ||
14377 | cat >> confdefs.h <<\EOF | |
14378 | #define HAVE_SHL_LOAD 1 | |
14379 | EOF | |
14380 | ||
14381 | HAVE_SHL_FUNCS=1 | |
14382 | ||
14383 | else | |
14384 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 14385 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 |
2c6025bc | 14386 | echo "configure:14387: checking for dld in -lshl_load" >&5 |
f6bcfd97 BP |
14387 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
14388 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14389 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14390 | else | |
14391 | ac_save_LIBS="$LIBS" | |
14392 | LIBS="-lshl_load $LIBS" | |
14393 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 14394 | #line 14395 "configure" |
f6bcfd97 BP |
14395 | #include "confdefs.h" |
14396 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14397 | /* We use char because int might match the return type of a gcc2 | |
14398 | builtin and then its argument prototype would still apply. */ | |
14399 | char dld(); | |
14400 | ||
14401 | int main() { | |
14402 | dld() | |
14403 | ; return 0; } | |
14404 | EOF | |
2c6025bc | 14405 | if { (eval echo configure:14406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
14406 | rm -rf conftest* |
14407 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14408 | else | |
14409 | echo "configure: failed program was:" >&5 | |
14410 | cat conftest.$ac_ext >&5 | |
14411 | rm -rf conftest* | |
14412 | eval "ac_cv_lib_$ac_lib_var=no" | |
14413 | fi | |
14414 | rm -f conftest* | |
14415 | LIBS="$ac_save_LIBS" | |
14416 | ||
14417 | fi | |
14418 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14419 | echo "$ac_t""yes" 1>&6 | |
14420 | ||
14421 | HAVE_SHL_FUNCS=1 | |
14422 | LIBS="$LIBS -ldld" | |
14423 | ||
14424 | else | |
14425 | echo "$ac_t""no" 1>&6 | |
14426 | fi | |
14427 | ||
14428 | ||
10f2d63a VZ |
14429 | fi |
14430 | done | |
14431 | ||
14432 | ||
14433 | fi | |
14434 | ||
14435 | ||
14436 | fi | |
14437 | done | |
14438 | ||
14439 | ||
f6bcfd97 BP |
14440 | if test "$HAVE_DL_FUNCS" = 1; then |
14441 | for ac_func in dlerror | |
14442 | do | |
14443 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2c6025bc | 14444 | echo "configure:14445: checking for $ac_func" >&5 |
f6bcfd97 BP |
14445 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14446 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14447 | else | |
14448 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 14449 | #line 14450 "configure" |
f6bcfd97 BP |
14450 | #include "confdefs.h" |
14451 | /* System header to define __stub macros and hopefully few prototypes, | |
14452 | which can conflict with char $ac_func(); below. */ | |
14453 | #include <assert.h> | |
14454 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14455 | /* We use char because int might match the return type of a gcc2 | |
14456 | builtin and then its argument prototype would still apply. */ | |
14457 | char $ac_func(); | |
14458 | ||
14459 | int main() { | |
14460 | ||
14461 | /* The GNU C library defines this for functions which it implements | |
14462 | to always fail with ENOSYS. Some functions are actually named | |
14463 | something starting with __ and the normal name is an alias. */ | |
14464 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14465 | choke me | |
14466 | #else | |
14467 | $ac_func(); | |
14468 | #endif | |
14469 | ||
14470 | ; return 0; } | |
14471 | EOF | |
2c6025bc | 14472 | if { (eval echo configure:14473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
14473 | rm -rf conftest* |
14474 | eval "ac_cv_func_$ac_func=yes" | |
14475 | else | |
14476 | echo "configure: failed program was:" >&5 | |
14477 | cat conftest.$ac_ext >&5 | |
14478 | rm -rf conftest* | |
14479 | eval "ac_cv_func_$ac_func=no" | |
14480 | fi | |
14481 | rm -f conftest* | |
14482 | fi | |
14483 | ||
14484 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14485 | echo "$ac_t""yes" 1>&6 | |
14486 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14487 | cat >> confdefs.h <<EOF | |
14488 | #define $ac_tr_func 1 | |
14489 | EOF | |
14490 | cat >> confdefs.h <<\EOF | |
14491 | #define HAVE_DLERROR 1 | |
14492 | EOF | |
14493 | ||
14494 | else | |
14495 | echo "$ac_t""no" 1>&6 | |
14496 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
2c6025bc | 14497 | echo "configure:14498: checking for dlerror in -ldl" >&5 |
f6bcfd97 BP |
14498 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
14499 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14500 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14501 | else | |
14502 | ac_save_LIBS="$LIBS" | |
14503 | LIBS="-ldl $LIBS" | |
14504 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 14505 | #line 14506 "configure" |
f6bcfd97 BP |
14506 | #include "confdefs.h" |
14507 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14508 | /* We use char because int might match the return type of a gcc2 | |
14509 | builtin and then its argument prototype would still apply. */ | |
14510 | char dlerror(); | |
14511 | ||
14512 | int main() { | |
14513 | dlerror() | |
14514 | ; return 0; } | |
14515 | EOF | |
2c6025bc | 14516 | if { (eval echo configure:14517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
14517 | rm -rf conftest* |
14518 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14519 | else | |
14520 | echo "configure: failed program was:" >&5 | |
14521 | cat conftest.$ac_ext >&5 | |
14522 | rm -rf conftest* | |
14523 | eval "ac_cv_lib_$ac_lib_var=no" | |
14524 | fi | |
14525 | rm -f conftest* | |
14526 | LIBS="$ac_save_LIBS" | |
14527 | ||
14528 | fi | |
14529 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14530 | echo "$ac_t""yes" 1>&6 | |
14531 | cat >> confdefs.h <<\EOF | |
14532 | #define HAVE_DLERROR 1 | |
14533 | EOF | |
14534 | ||
14535 | else | |
14536 | echo "$ac_t""no" 1>&6 | |
14537 | fi | |
14538 | ||
14539 | fi | |
14540 | done | |
14541 | ||
14542 | fi | |
b4085ce6 | 14543 | fi |
f6bcfd97 | 14544 | |
10f2d63a VZ |
14545 | if test "$HAVE_DL_FUNCS" = 0; then |
14546 | if test "$HAVE_SHL_FUNCS" = 0; then | |
14547 | if test "$USE_UNIX" = 1; then | |
b12915c1 | 14548 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
14549 | wxUSE_DYNLIB_CLASS=no |
14550 | else | |
b12915c1 | 14551 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
14552 | fi |
14553 | fi | |
14554 | fi | |
14555 | fi | |
14556 | ||
b089607b VZ |
14557 | fi |
14558 | ||
10f2d63a | 14559 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
b12915c1 | 14560 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14561 | #define wxUSE_DYNLIB_CLASS 1 |
14562 | EOF | |
14563 | ||
b12915c1 VZ |
14564 | else |
14565 | wxUSE_ODBC=no | |
14566 | wxUSE_SERIAL=no | |
10f2d63a VZ |
14567 | fi |
14568 | ||
14569 | ||
14570 | if test "$wxUSE_UNICODE" = "yes" ; then | |
14571 | cat >> confdefs.h <<\EOF | |
14572 | #define wxUSE_UNICODE 1 | |
14573 | EOF | |
14574 | ||
14575 | fi | |
14576 | ||
14577 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
14578 | cat >> confdefs.h <<\EOF | |
14579 | #define wxUSE_WCSRTOMBS 1 | |
14580 | EOF | |
14581 | ||
14582 | fi | |
14583 | ||
14584 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
14585 | cat >> confdefs.h <<\EOF | |
14586 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
14587 | EOF | |
14588 | ||
14589 | fi | |
14590 | ||
14591 | ||
b12915c1 VZ |
14592 | if test "$wxUSE_SERIAL" = "yes" ; then |
14593 | cat >> confdefs.h <<\EOF | |
14594 | #define wxUSE_SERIAL 1 | |
14595 | EOF | |
14596 | ||
14597 | fi | |
14598 | ||
14599 | ||
10f2d63a VZ |
14600 | IODBC_C_SRC="" |
14601 | if test "$wxUSE_ODBC" = "yes" ; then | |
14602 | cat >> confdefs.h <<\EOF | |
14603 | #define wxUSE_ODBC 1 | |
14604 | EOF | |
14605 | ||
14606 | WXODBCFLAG="-D_IODBC_" | |
14607 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
14608 | fi |
14609 | ||
14610 | ||
14611 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
14612 | cat >> confdefs.h <<\EOF | |
14613 | #define wxUSE_POSTSCRIPT 1 | |
14614 | EOF | |
14615 | ||
14616 | fi | |
14617 | ||
14618 | cat >> confdefs.h <<\EOF | |
14619 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
14620 | EOF | |
14621 | ||
14622 | ||
14623 | cat >> confdefs.h <<\EOF | |
14624 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
14625 | EOF | |
14626 | ||
14627 | ||
14628 | ||
14629 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
14630 | cat >> confdefs.h <<\EOF | |
14631 | #define wxUSE_CONSTRAINTS 1 | |
14632 | EOF | |
14633 | ||
14634 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
14635 | fi | |
14636 | ||
14637 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
14638 | cat >> confdefs.h <<\EOF | |
14639 | #define wxUSE_MDI_ARCHITECTURE 1 | |
14640 | EOF | |
14641 | ||
14642 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
14643 | fi | |
14644 | ||
14645 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
14646 | cat >> confdefs.h <<\EOF | |
14647 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
14648 | EOF | |
14649 | ||
14650 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
14651 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
14652 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
14653 | fi | |
14654 | fi | |
14655 | ||
14656 | if test "$wxUSE_HELP" = "yes"; then | |
14657 | cat >> confdefs.h <<\EOF | |
14658 | #define wxUSE_HELP 1 | |
14659 | EOF | |
14660 | ||
14661 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
14662 | fi | |
14663 | ||
14664 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
14665 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
14666 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
14667 | else | |
14668 | cat >> confdefs.h <<\EOF | |
14669 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
14670 | EOF | |
14671 | ||
14672 | fi | |
14673 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
14674 | fi | |
14675 | ||
14676 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
14677 | cat >> confdefs.h <<\EOF | |
14678 | #define wxUSE_PROLOGIO 1 | |
14679 | EOF | |
14680 | ||
14681 | fi | |
14682 | ||
14683 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
14684 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
14685 | cat >> confdefs.h <<\EOF | |
14686 | #define wxUSE_RESOURCES 1 | |
14687 | EOF | |
14688 | ||
14689 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
14690 | else | |
14691 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
14692 | fi | |
14693 | fi | |
14694 | ||
14695 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
14696 | cat >> confdefs.h <<\EOF | |
14697 | #define wxUSE_X_RESOURCES 1 | |
14698 | EOF | |
14699 | ||
14700 | fi | |
14701 | ||
14702 | ||
14703 | if test "$wxUSE_IPC" = "yes"; then | |
eb4efbdc VZ |
14704 | if test "$wxUSE_SOCKETS" != "yes"; then |
14705 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 | |
14706 | fi | |
14707 | ||
10f2d63a VZ |
14708 | cat >> confdefs.h <<\EOF |
14709 | #define wxUSE_IPC 1 | |
14710 | EOF | |
14711 | ||
14712 | fi | |
14713 | ||
14714 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
14715 | cat >> confdefs.h <<\EOF | |
14716 | #define wxUSE_CLIPBOARD 1 | |
14717 | EOF | |
14718 | ||
14719 | fi | |
14720 | ||
14721 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
14722 | if test "$wxUSE_GTK" = 1; then | |
14723 | if test "$WXGTK12" != 1; then | |
14724 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
14725 | wxUSE_DRAG_AND_DROP=no | |
14726 | fi | |
14727 | fi | |
14728 | ||
14729 | if test "$wxUSE_MOTIF" = 1; then | |
14730 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
14731 | wxUSE_DRAG_AND_DROP=no | |
14732 | fi | |
14733 | ||
2c6025bc GD |
14734 | if test "$wxUSE_MAC" = 1; then |
14735 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 | |
14736 | wxUSE_DRAG_AND_DROP=no | |
14737 | fi | |
14738 | ||
10f2d63a | 14739 | if test "$USE_WIN32" = 1; then |
c521c494 RL |
14740 | |
14741 | for ac_hdr in ole2.h | |
10f2d63a VZ |
14742 | do |
14743 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14744 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2c6025bc | 14745 | echo "configure:14746: checking for $ac_hdr" >&5 |
10f2d63a VZ |
14746 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14747 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14748 | else | |
14749 | cat > conftest.$ac_ext <<EOF | |
2c6025bc | 14750 | #line 14751 "configure" |
10f2d63a VZ |
14751 | #include "confdefs.h" |
14752 | #include <$ac_hdr> | |
14753 | EOF | |
14754 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2c6025bc | 14755 | { (eval echo configure:14756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
14756 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14757 | if test -z "$ac_err"; then | |
14758 | rm -rf conftest* | |
14759 | eval "ac_cv_header_$ac_safe=yes" | |
14760 | else | |
14761 | echo "$ac_err" >&5 | |
14762 | echo "configure: failed program was:" >&5 | |
14763 | cat conftest.$ac_ext >&5 | |
14764 | rm -rf conftest* | |
14765 | eval "ac_cv_header_$ac_safe=no" | |
14766 | fi | |
14767 | rm -f conftest* | |
14768 | fi | |
14769 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14770 | echo "$ac_t""yes" 1>&6 | |
14771 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14772 | cat >> confdefs.h <<EOF | |
14773 | #define $ac_tr_hdr 1 | |
14774 | EOF | |
14775 | ||
14776 | else | |
14777 | echo "$ac_t""no" 1>&6 | |
14778 | fi | |
14779 | done | |
14780 | ||
c521c494 RL |
14781 | |
14782 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
14783 | if test "$GCC" = yes ; then | |
b64f0a5f RL |
14784 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
14785 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
c521c494 | 14786 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
b64f0a5f RL |
14787 | LIBS="$LIBS -lole32 -luuid" |
14788 | ||
14789 | if test "$wxUSE_METAFILE" = "yes"; then | |
14790 | cat >> confdefs.h <<\EOF | |
14791 | #define wxUSE_METAFILE 1 | |
14792 | EOF | |
14793 | ||
14794 | cat >> confdefs.h <<\EOF | |
14795 | #define wxUSE_ENH_METAFILE 1 | |
14796 | EOF | |
14797 | ||
14798 | fi | |
c521c494 RL |
14799 | fi |
14800 | else | |
10f2d63a VZ |
14801 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 |
14802 | wxUSE_DRAG_AND_DROP=no | |
14803 | fi | |
14804 | fi | |
14805 | ||
14806 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
14807 | cat >> confdefs.h <<\EOF | |
14808 | #define wxUSE_DRAG_AND_DROP 1 | |
14809 | EOF | |
14810 | ||
14811 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
14812 | fi | |
14813 | ||
14814 | fi | |
14815 | ||
14816 | if test "$wxUSE_SPLINES" = "yes" ; then | |
14817 | cat >> confdefs.h <<\EOF | |
14818 | #define wxUSE_SPLINES 1 | |
14819 | EOF | |
14820 | ||
14821 | fi | |
14822 | ||
14823 | ||
14824 | if test "$wxUSE_ACCEL" = "yes"; then | |
14825 | cat >> confdefs.h <<\EOF | |
14826 | #define wxUSE_ACCEL 1 | |
14827 | EOF | |
14828 | ||
14829 | fi | |
14830 | ||
14831 | if test "$wxUSE_CARET" = "yes"; then | |
14832 | cat >> confdefs.h <<\EOF | |
14833 | #define wxUSE_CARET 1 | |
14834 | EOF | |
14835 | ||
14836 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
14837 | fi | |
14838 | ||
14839 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
14840 | cat >> confdefs.h <<\EOF | |
14841 | #define wxUSE_COMBOBOX 1 | |
14842 | EOF | |
14843 | ||
14844 | fi | |
14845 | ||
14846 | if test "$wxUSE_CHOICE" = "yes"; then | |
14847 | cat >> confdefs.h <<\EOF | |
14848 | #define wxUSE_CHOICE 1 | |
14849 | EOF | |
14850 | ||
14851 | fi | |
14852 | ||
14853 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
14854 | cat >> confdefs.h <<\EOF | |
14855 | #define wxUSE_BMPBUTTON 1 | |
14856 | EOF | |
14857 | ||
14858 | fi | |
14859 | ||
14860 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
14861 | cat >> confdefs.h <<\EOF | |
14862 | #define wxUSE_CHECKBOX 1 | |
14863 | EOF | |
14864 | ||
14865 | fi | |
14866 | ||
14867 | if test "$wxUSE_CHECKLST" = "yes"; then | |
14868 | cat >> confdefs.h <<\EOF | |
14869 | #define wxUSE_CHECKLISTBOX 1 | |
14870 | EOF | |
14871 | ||
14872 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
14873 | fi | |
14874 | ||
14875 | if test "$wxUSE_GAUGE" = "yes"; then | |
14876 | cat >> confdefs.h <<\EOF | |
14877 | #define wxUSE_GAUGE 1 | |
14878 | EOF | |
14879 | ||
14880 | fi | |
14881 | ||
d6a55c4b VZ |
14882 | if test "$wxUSE_NEW_GRID" = "yes"; then |
14883 | wxUSE_GRID="yes" | |
10f2d63a | 14884 | cat >> confdefs.h <<\EOF |
d6a55c4b | 14885 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
14886 | EOF |
14887 | ||
d6a55c4b | 14888 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
14889 | fi |
14890 | ||
d6a55c4b | 14891 | if test "$wxUSE_GRID" = "yes"; then |
10f2d63a | 14892 | cat >> confdefs.h <<\EOF |
d6a55c4b | 14893 | #define wxUSE_GRID 1 |
10f2d63a VZ |
14894 | EOF |
14895 | ||
d6a55c4b | 14896 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
14897 | fi |
14898 | ||
14899 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
14900 | cat >> confdefs.h <<\EOF | |
14901 | #define wxUSE_IMAGLIST 1 | |
14902 | EOF | |
14903 | ||
14904 | fi | |
14905 | ||
14906 | if test "$wxUSE_LISTBOX" = "yes"; then | |
14907 | cat >> confdefs.h <<\EOF | |
14908 | #define wxUSE_LISTBOX 1 | |
14909 | EOF | |
14910 | ||
14911 | fi | |
14912 | ||
14913 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
14914 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
14915 | cat >> confdefs.h <<\EOF | |
14916 | #define wxUSE_LISTCTRL 1 | |
14917 | EOF | |
14918 | ||
14919 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
14920 | else | |
14921 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
14922 | fi | |
14923 | fi | |
14924 | ||
14925 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
14926 | cat >> confdefs.h <<\EOF | |
14927 | #define wxUSE_NOTEBOOK 1 | |
14928 | EOF | |
14929 | ||
14930 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
14931 | fi | |
14932 | ||
14933 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
14934 | cat >> confdefs.h <<\EOF | |
14935 | #define wxUSE_RADIOBOX 1 | |
14936 | EOF | |
14937 | ||
14938 | fi | |
14939 | ||
14940 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
14941 | cat >> confdefs.h <<\EOF | |
14942 | #define wxUSE_RADIOBTN 1 | |
14943 | EOF | |
14944 | ||
14945 | fi | |
14946 | ||
14947 | if test "$wxUSE_SASH" = "yes"; then | |
14948 | cat >> confdefs.h <<\EOF | |
14949 | #define wxUSE_SASH 1 | |
14950 | EOF | |
14951 | ||
14952 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
14953 | fi | |
14954 | ||
14955 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
14956 | cat >> confdefs.h <<\EOF | |
14957 | #define wxUSE_SCROLLBAR 1 | |
14958 | EOF | |
14959 | ||
741a9306 | 14960 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
14961 | fi |
14962 | ||
14963 | if test "$wxUSE_SLIDER" = "yes"; then | |
14964 | cat >> confdefs.h <<\EOF | |
14965 | #define wxUSE_SLIDER 1 | |
14966 | EOF | |
14967 | ||
14968 | fi | |
14969 | ||
14970 | if test "$wxUSE_SPINBTN" = "yes"; then | |
14971 | cat >> confdefs.h <<\EOF | |
14972 | #define wxUSE_SPINBTN 1 | |
14973 | EOF | |
14974 | ||
14975 | fi | |
14976 | ||
56cfaa52 RR |
14977 | if test "$wxUSE_SPINCTRL" = "yes"; then |
14978 | cat >> confdefs.h <<\EOF | |
14979 | #define wxUSE_SPINCTRL 1 | |
14980 | EOF | |
14981 | ||
14982 | fi | |
14983 | ||
10f2d63a VZ |
14984 | if test "$wxUSE_SPLITTER" = "yes"; then |
14985 | cat >> confdefs.h <<\EOF | |
14986 | #define wxUSE_SPLITTER 1 | |
14987 | EOF | |
14988 | ||
14989 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
14990 | fi | |
14991 | ||
14992 | if test "$wxUSE_STATBMP" = "yes"; then | |
14993 | cat >> confdefs.h <<\EOF | |
14994 | #define wxUSE_STATBMP 1 | |
14995 | EOF | |
14996 | ||
14997 | fi | |
14998 | ||
14999 | if test "$wxUSE_STATBOX" = "yes"; then | |
15000 | cat >> confdefs.h <<\EOF | |
15001 | #define wxUSE_STATBOX 1 | |
15002 | EOF | |
15003 | ||
15004 | fi | |
15005 | ||
15006 | if test "$wxUSE_STATLINE" = "yes"; then | |
15007 | if test "$wxUSE_WINE" = 1 ; then | |
15008 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
15009 | else | |
15010 | cat >> confdefs.h <<\EOF | |
15011 | #define wxUSE_STATLINE 1 | |
15012 | EOF | |
15013 | ||
15014 | fi | |
15015 | fi | |
15016 | ||
15017 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
15018 | cat >> confdefs.h <<\EOF | |
15019 | #define wxUSE_STATUSBAR 1 | |
15020 | EOF | |
15021 | ||
2286341c VZ |
15022 | |
15023 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
10f2d63a VZ |
15024 | fi |
15025 | ||
15026 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
15027 | cat >> confdefs.h <<\EOF | |
15028 | #define wxUSE_TAB_DIALOG 1 | |
15029 | EOF | |
15030 | ||
15031 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
15032 | fi | |
15033 | ||
1db8dc4a VZ |
15034 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
15035 | cat >> confdefs.h <<\EOF | |
15036 | #define wxUSE_TOGGLEBTN 1 | |
15037 | EOF | |
15038 | ||
15039 | fi | |
15040 | ||
360d6699 VZ |
15041 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
15042 | cat >> confdefs.h <<\EOF | |
15043 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
15044 | EOF | |
15045 | ||
15046 | wxUSE_TOOLBAR="yes" | |
15047 | fi | |
15048 | ||
10f2d63a VZ |
15049 | if test "$wxUSE_TOOLBAR" = "yes"; then |
15050 | cat >> confdefs.h <<\EOF | |
15051 | #define wxUSE_TOOLBAR 1 | |
15052 | EOF | |
15053 | ||
360d6699 VZ |
15054 | |
15055 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
15056 | wxUSE_TOOLBAR_NATIVE="yes" | |
15057 | fi | |
15058 | ||
10f2d63a VZ |
15059 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" |
15060 | fi | |
15061 | ||
360d6699 VZ |
15062 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
15063 | cat >> confdefs.h <<\EOF | |
15064 | #define wxUSE_TOOLBAR_NATIVE 1 | |
15065 | EOF | |
15066 | ||
15067 | fi | |
15068 | ||
10f2d63a VZ |
15069 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
15070 | if test "$wxUSE_MOTIF" = 1; then | |
15071 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
15072 | else | |
15073 | if test "$wxUSE_WINE" = 1; then | |
15074 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
15075 | else | |
15076 | cat >> confdefs.h <<\EOF | |
15077 | #define wxUSE_TOOLTIPS 1 | |
15078 | EOF | |
15079 | ||
15080 | fi | |
15081 | fi | |
15082 | fi | |
15083 | ||
15084 | if test "$wxUSE_TREECTRL" = "yes"; then | |
15085 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
15086 | cat >> confdefs.h <<\EOF | |
15087 | #define wxUSE_TREECTRL 1 | |
15088 | EOF | |
15089 | ||
15090 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
15091 | else | |
15092 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
15093 | fi | |
15094 | fi | |
15095 | ||
15096 | ||
15097 | ||
10f2d63a VZ |
15098 | if test "$wxUSE_DIRDLG" = "yes"; then |
15099 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
15100 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
15101 | else | |
15102 | if test "$wxUSE_TREECTRL" != "yes"; then | |
15103 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
15104 | else | |
15105 | cat >> confdefs.h <<\EOF | |
15106 | #define wxUSE_DIRDLG 1 | |
15107 | EOF | |
15108 | ||
15109 | fi | |
15110 | fi | |
15111 | fi | |
15112 | ||
15113 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
15114 | cat >> confdefs.h <<\EOF | |
15115 | #define wxUSE_TEXTDLG 1 | |
15116 | EOF | |
15117 | ||
15118 | fi | |
15119 | ||
15120 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
15121 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
15122 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
15123 | else | |
15124 | cat >> confdefs.h <<\EOF | |
15125 | #define wxUSE_STARTUP_TIPS 1 | |
15126 | EOF | |
15127 | ||
15128 | fi | |
15129 | fi | |
15130 | ||
15131 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
15132 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
15133 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
15134 | else | |
15135 | cat >> confdefs.h <<\EOF | |
15136 | #define wxUSE_PROGRESSDLG 1 | |
15137 | EOF | |
15138 | ||
15139 | fi | |
15140 | fi | |
15141 | ||
15142 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
15143 | cat >> confdefs.h <<\EOF | |
15144 | #define wxUSE_MINIFRAME 1 | |
15145 | EOF | |
15146 | ||
15147 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
15148 | fi | |
15149 | ||
15150 | if test "$wxUSE_HTML" = "yes"; then | |
15151 | cat >> confdefs.h <<\EOF | |
15152 | #define wxUSE_HTML 1 | |
15153 | EOF | |
15154 | ||
15155 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
15156 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
15157 | fi | |
15158 | ||
15159 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
15160 | cat >> confdefs.h <<\EOF | |
15161 | #define wxUSE_VALIDATORS 1 | |
15162 | EOF | |
15163 | ||
15164 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
15165 | fi | |
15166 | ||
15167 | if test "$wxUSE_GIF" = "yes" ; then | |
15168 | cat >> confdefs.h <<\EOF | |
15169 | #define wxUSE_GIF 1 | |
15170 | EOF | |
15171 | ||
15172 | fi | |
15173 | ||
15174 | if test "$wxUSE_PCX" = "yes" ; then | |
15175 | cat >> confdefs.h <<\EOF | |
15176 | #define wxUSE_PCX 1 | |
15177 | EOF | |
15178 | ||
15179 | fi | |
15180 | ||
15181 | if test "$wxUSE_PNM" = "yes" ; then | |
15182 | cat >> confdefs.h <<\EOF | |
15183 | #define wxUSE_PNM 1 | |
15184 | EOF | |
15185 | ||
15186 | fi | |
15187 | ||
15188 | ||
32832908 VZ |
15189 | if test "$cross_compiling" = "yes"; then |
15190 | OSINFO="\"$host\"" | |
15191 | else | |
15192 | OSINFO=`uname -s -r -m` | |
15193 | OSINFO="\"$OSINFO\"" | |
15194 | fi | |
15195 | ||
aaa37c0d VZ |
15196 | cat >> confdefs.h <<EOF |
15197 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
15198 | EOF | |
15199 | ||
15200 | ||
15201 | ||
f6bcfd97 BP |
15202 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" |
15203 | OPENGL_LIBS="$OPENGL_LINK" | |
10f2d63a | 15204 | |
b4085ce6 GD |
15205 | if test "$USE_MAC" = 1 ; then |
15206 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -framework System" | |
15207 | CFLAGS="${CFLAGS} -fpascal-strings" | |
15208 | CPPFLAGS="${CPPFLAGS} -fpascal-strings" | |
15209 | else | |
15210 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
15211 | fi | |
10f2d63a | 15212 | if test "$wxUSE_GUI" = "yes"; then |
3fed1840 | 15213 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" |
10f2d63a VZ |
15214 | fi |
15215 | ||
15216 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
15217 | ||
3fed1840 | 15218 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" |
10f2d63a | 15219 | |
f6bcfd97 BP |
15220 | if test "$wxUSE_GTK" = 1; then |
15221 | WXCONFIG_INCLUDE="" | |
15222 | else | |
15223 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
15224 | fi | |
15225 | ||
10f2d63a VZ |
15226 | if test "$GXX" = yes ; then |
15227 | CXXWARNINGS="-Wall" | |
d6a55c4b | 15228 | fi |
10f2d63a VZ |
15229 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
15230 | ||
f6bcfd97 | 15231 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
10f2d63a VZ |
15232 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` |
15233 | ||
e694c22c VZ |
15234 | LDFLAGS="$LDFLAGS $PROFILE" |
15235 | ||
10f2d63a VZ |
15236 | if test "$wxUSE_GUI" = "yes"; then |
15237 | ||
6164f93c VZ |
15238 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \ |
15239 | drawing dynamic event font fractal image menu \ | |
15240 | minimal richedit" | |
b12915c1 | 15241 | |
88d3a15c | 15242 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
10f2d63a VZ |
15243 | else |
15244 | SAMPLES_SUBDIRS="" | |
15245 | fi | |
15246 | ||
ec14dd32 VZ |
15247 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
15248 | ||
15249 | ||
15250 | ||
10f2d63a VZ |
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 | ||
1d62a8b4 | 15303 | |
bdad4e7e RR |
15304 | |
15305 | ||
15306 | ||
15307 | ||
15308 | ||
15309 | ||
15310 | ||
32832908 VZ |
15311 | |
15312 | ||
15313 | ||
15314 | ||
15315 | ||
15316 | ||
15317 | ||
15318 | ||
15319 | ||
15320 | ||
15321 | ||
2224580a | 15322 | |
dad6c0ea | 15323 | |
f6bcfd97 BP |
15324 | |
15325 | ||
15326 | ||
15327 | ||
dad6c0ea | 15328 | |
caa2c79b | 15329 | |
3711412e | 15330 | |
0f3f1cbc | 15331 | |
10f2d63a VZ |
15332 | |
15333 | ||
15334 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
2c6025bc | 15335 | echo "configure:15336: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
10f2d63a VZ |
15336 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
15337 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
15338 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15339 | else | |
15340 | cat > conftestmake <<\EOF | |
15341 | all: | |
15342 | @echo 'ac_maketemp="${MAKE}"' | |
15343 | EOF | |
15344 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
15345 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
15346 | if test -n "$ac_maketemp"; then | |
15347 | eval ac_cv_prog_make_${ac_make}_set=yes | |
15348 | else | |
15349 | eval ac_cv_prog_make_${ac_make}_set=no | |
15350 | fi | |
15351 | rm -f conftestmake | |
15352 | fi | |
15353 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
15354 | echo "$ac_t""yes" 1>&6 | |
15355 | SET_MAKE= | |
15356 | else | |
15357 | echo "$ac_t""no" 1>&6 | |
15358 | SET_MAKE="MAKE=${MAKE-make}" | |
15359 | fi | |
15360 | ||
15361 | ||
00cf1208 RR |
15362 | if test -d include; then |
15363 | if test -d include/wx; then | |
15364 | if test -d include/wx/${TOOLKIT_DIR}; then | |
15365 | if test -f include/wx/${TOOLKIT_DIR}/setup.h; then | |
15366 | mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h | |
15367 | fi | |
15368 | fi | |
15369 | fi | |
15370 | fi | |
15371 | ||
10f2d63a VZ |
15372 | |
15373 | ||
2224580a | 15374 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 15375 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
15376 | wx_cv_path_ifs=$PATH_IFS |
15377 | wx_cv_program_ext=$PROGRAM_EXT | |
15378 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
3711412e | 15379 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
e8482f24 | 15380 | subdirs="demos samples utils contrib" |
2224580a VZ |
15381 | |
15382 | fi | |
10f2d63a VZ |
15383 | |
15384 | trap '' 1 2 15 | |
15385 | cat > confcache <<\EOF | |
15386 | # This file is a shell script that caches the results of configure | |
15387 | # tests run on this system so they can be shared between configure | |
15388 | # scripts and configure runs. It is not useful on other systems. | |
15389 | # If it contains results you don't want to keep, you may remove or edit it. | |
15390 | # | |
15391 | # By default, configure uses ./config.cache as the cache file, | |
15392 | # creating it if it does not exist already. You can give configure | |
15393 | # the --cache-file=FILE option to use a different cache file; that is | |
15394 | # what configure does when it calls configure scripts in | |
15395 | # subdirectories, so they share the cache. | |
15396 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
15397 | # config.status only pays attention to the cache file if you give it the | |
15398 | # --recheck option to rerun configure. | |
15399 | # | |
15400 | EOF | |
15401 | # The following way of writing the cache mishandles newlines in values, | |
15402 | # but we know of no workaround that is simple, portable, and efficient. | |
15403 | # So, don't put newlines in cache variables' values. | |
15404 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15405 | # and sets the high bit in the cache file unless we assign to the vars. | |
15406 | (set) 2>&1 | | |
15407 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
15408 | *ac_space=\ *) | |
15409 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
15410 | # turns \\\\ into \\, and sed turns \\ into \). | |
15411 | sed -n \ | |
15412 | -e "s/'/'\\\\''/g" \ | |
15413 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
15414 | ;; | |
15415 | *) | |
15416 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15417 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
15418 | ;; | |
15419 | esac >> confcache | |
15420 | if cmp -s $cache_file confcache; then | |
15421 | : | |
15422 | else | |
15423 | if test -w $cache_file; then | |
15424 | echo "updating cache $cache_file" | |
15425 | cat confcache > $cache_file | |
15426 | else | |
15427 | echo "not updating unwritable cache $cache_file" | |
15428 | fi | |
15429 | fi | |
15430 | rm -f confcache | |
15431 | ||
15432 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
15433 | ||
15434 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
15435 | # Let make expand exec_prefix. | |
15436 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15437 | ||
15438 | # Any assignment to VPATH causes Sun make to only execute | |
15439 | # the first set of double-colon rules, so remove it if not needed. | |
15440 | # If there is a colon in the path, we need to keep it. | |
15441 | if test "x$srcdir" = x.; then | |
15442 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
15443 | fi | |
15444 | ||
15445 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
15446 | ||
15447 | DEFS=-DHAVE_CONFIG_H | |
15448 | ||
15449 | # Without the "./", some shells look in PATH for config.status. | |
15450 | : ${CONFIG_STATUS=./config.status} | |
15451 | ||
15452 | echo creating $CONFIG_STATUS | |
15453 | rm -f $CONFIG_STATUS | |
15454 | cat > $CONFIG_STATUS <<EOF | |
15455 | #! /bin/sh | |
15456 | # Generated automatically by configure. | |
15457 | # Run this file to recreate the current configuration. | |
15458 | # This directory was configured as follows, | |
15459 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15460 | # | |
15461 | # $0 $ac_configure_args | |
15462 | # | |
15463 | # Compiler output produced by configure, useful for debugging | |
15464 | # configure, is in ./config.log if it exists. | |
15465 | ||
15466 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
15467 | for ac_option | |
15468 | do | |
15469 | case "\$ac_option" in | |
15470 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
15471 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
15472 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
15473 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
e8482f24 | 15474 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
10f2d63a VZ |
15475 | exit 0 ;; |
15476 | -help | --help | --hel | --he | --h) | |
15477 | echo "\$ac_cs_usage"; exit 0 ;; | |
15478 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
15479 | esac | |
15480 | done | |
15481 | ||
15482 | ac_given_srcdir=$srcdir | |
15483 | ac_given_INSTALL="$INSTALL" | |
15484 | ||
15485 | trap 'rm -fr `echo " | |
15486 | wx-config | |
15487 | src/make.env | |
15488 | src/makeprog.env | |
15489 | src/makelib.env | |
15490 | Makefile | |
10f2d63a VZ |
15491 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
15492 | EOF | |
15493 | cat >> $CONFIG_STATUS <<EOF | |
15494 | ||
15495 | # Protect against being on the right side of a sed subst in config.status. | |
15496 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
15497 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
15498 | $ac_vpsub | |
15499 | $extrasub | |
15500 | s%@SHELL@%$SHELL%g | |
15501 | s%@CFLAGS@%$CFLAGS%g | |
15502 | s%@CPPFLAGS@%$CPPFLAGS%g | |
15503 | s%@CXXFLAGS@%$CXXFLAGS%g | |
15504 | s%@FFLAGS@%$FFLAGS%g | |
15505 | s%@DEFS@%$DEFS%g | |
15506 | s%@LDFLAGS@%$LDFLAGS%g | |
15507 | s%@LIBS@%$LIBS%g | |
15508 | s%@exec_prefix@%$exec_prefix%g | |
15509 | s%@prefix@%$prefix%g | |
15510 | s%@program_transform_name@%$program_transform_name%g | |
15511 | s%@bindir@%$bindir%g | |
15512 | s%@sbindir@%$sbindir%g | |
15513 | s%@libexecdir@%$libexecdir%g | |
15514 | s%@datadir@%$datadir%g | |
15515 | s%@sysconfdir@%$sysconfdir%g | |
15516 | s%@sharedstatedir@%$sharedstatedir%g | |
15517 | s%@localstatedir@%$localstatedir%g | |
15518 | s%@libdir@%$libdir%g | |
15519 | s%@includedir@%$includedir%g | |
15520 | s%@oldincludedir@%$oldincludedir%g | |
15521 | s%@infodir@%$infodir%g | |
15522 | s%@mandir@%$mandir%g | |
7c66a493 VZ |
15523 | s%@host@%$host%g |
15524 | s%@host_alias@%$host_alias%g | |
15525 | s%@host_cpu@%$host_cpu%g | |
15526 | s%@host_vendor@%$host_vendor%g | |
15527 | s%@host_os@%$host_os%g | |
15528 | s%@target@%$target%g | |
15529 | s%@target_alias@%$target_alias%g | |
15530 | s%@target_cpu@%$target_cpu%g | |
15531 | s%@target_vendor@%$target_vendor%g | |
15532 | s%@target_os@%$target_os%g | |
15533 | s%@build@%$build%g | |
15534 | s%@build_alias@%$build_alias%g | |
15535 | s%@build_cpu@%$build_cpu%g | |
15536 | s%@build_vendor@%$build_vendor%g | |
15537 | s%@build_os@%$build_os%g | |
10f2d63a VZ |
15538 | s%@CC@%$CC%g |
15539 | s%@CPP@%$CPP%g | |
15540 | s%@CXX@%$CXX%g | |
15541 | s%@CXXCPP@%$CXXCPP%g | |
15542 | s%@RANLIB@%$RANLIB%g | |
15543 | s%@AR@%$AR%g | |
15544 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
15545 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
15546 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
15547 | s%@STRIP@%$STRIP%g | |
15548 | s%@YACC@%$YACC%g | |
15549 | s%@LEX@%$LEX%g | |
15550 | s%@LEXLIB@%$LEXLIB%g | |
15551 | s%@LN_S@%$LN_S%g | |
6f72b082 | 15552 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g |
10f2d63a VZ |
15553 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
15554 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
15555 | s%@GTK_LIBS@%$GTK_LIBS%g | |
ab9b9eab VZ |
15556 | s%@X_CFLAGS@%$X_CFLAGS%g |
15557 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
15558 | s%@X_LIBS@%$X_LIBS%g | |
15559 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
ec14dd32 VZ |
15560 | s%@LEX_STEM@%$LEX_STEM%g |
15561 | s%@PATH_IFS@%$PATH_IFS%g | |
10f2d63a VZ |
15562 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g |
15563 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
15564 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
15565 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
15566 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
15567 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
15568 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
15569 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
15570 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
15571 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
15572 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
15573 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
bdad4e7e RR |
15574 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g |
15575 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
15576 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
15577 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
15578 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
15579 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
15580 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
15581 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
10f2d63a VZ |
15582 | s%@WX_ALL@%$WX_ALL%g |
15583 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
15584 | s%@SHARED_LD@%$SHARED_LD%g | |
15585 | s%@PIC_FLAG@%$PIC_FLAG%g | |
15586 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
caa2c79b | 15587 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
0f3f1cbc | 15588 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g |
1d62a8b4 | 15589 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g |
bdad4e7e | 15590 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g |
f6bcfd97 | 15591 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
3711412e | 15592 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g |
10f2d63a | 15593 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
dad6c0ea VZ |
15594 | s%@USE_GUI@%$USE_GUI%g |
15595 | s%@AFMINSTALL@%$AFMINSTALL%g | |
10f2d63a VZ |
15596 | s%@TOOLKIT@%$TOOLKIT%g |
15597 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
15598 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
f6bcfd97 | 15599 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g |
10f2d63a | 15600 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g |
f6bcfd97 | 15601 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
10f2d63a VZ |
15602 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
15603 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
10f2d63a | 15604 | s%@GUIDIST@%$GUIDIST%g |
2224580a VZ |
15605 | s%@PORT_FILES@%$PORT_FILES%g |
15606 | s%@DISTDIR@%$DISTDIR%g | |
15607 | s%@RPM_SPEC@%$RPM_SPEC%g | |
15608 | s%@RPM_FILES@%$RPM_FILES%g | |
10f2d63a VZ |
15609 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g |
15610 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
15611 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
15612 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
15613 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
15614 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
15615 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
f6bcfd97 | 15616 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
b12915c1 | 15617 | s%@EXTRADEFS@%$EXTRADEFS%g |
10f2d63a | 15618 | s%@LD_LIBS@%$LD_LIBS%g |
32832908 VZ |
15619 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g |
15620 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
15621 | s%@RESPROGRAM@%$RESPROGRAM%g | |
15622 | s%@RESCOMP@%$RESCOMP%g | |
15623 | s%@RESFLAGS@%$RESFLAGS%g | |
15624 | s%@DLLTOOL@%$DLLTOOL%g | |
15625 | s%@AS@%$AS%g | |
15626 | s%@NM@%$NM%g | |
15627 | s%@LD@%$LD%g | |
15628 | s%@MAKEINFO@%$MAKEINFO%g | |
10f2d63a | 15629 | s%@SET_MAKE@%$SET_MAKE%g |
2224580a | 15630 | s%@subdirs@%$subdirs%g |
10f2d63a VZ |
15631 | |
15632 | CEOF | |
15633 | EOF | |
15634 | ||
15635 | cat >> $CONFIG_STATUS <<\EOF | |
15636 | ||
15637 | # Split the substitutions into bite-sized pieces for seds with | |
15638 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
15639 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
15640 | ac_file=1 # Number of current file. | |
15641 | ac_beg=1 # First line for current file. | |
15642 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
15643 | ac_more_lines=: | |
15644 | ac_sed_cmds="" | |
15645 | while $ac_more_lines; do | |
15646 | if test $ac_beg -gt 1; then | |
15647 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
15648 | else | |
15649 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
15650 | fi | |
15651 | if test ! -s conftest.s$ac_file; then | |
15652 | ac_more_lines=false | |
15653 | rm -f conftest.s$ac_file | |
15654 | else | |
15655 | if test -z "$ac_sed_cmds"; then | |
15656 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
15657 | else | |
15658 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
15659 | fi | |
15660 | ac_file=`expr $ac_file + 1` | |
15661 | ac_beg=$ac_end | |
15662 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
15663 | fi | |
15664 | done | |
15665 | if test -z "$ac_sed_cmds"; then | |
15666 | ac_sed_cmds=cat | |
15667 | fi | |
15668 | EOF | |
15669 | ||
15670 | cat >> $CONFIG_STATUS <<EOF | |
15671 | ||
15672 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
15673 | src/make.env | |
15674 | src/makeprog.env | |
15675 | src/makelib.env | |
15676 | Makefile | |
10f2d63a VZ |
15677 | "} |
15678 | EOF | |
15679 | cat >> $CONFIG_STATUS <<\EOF | |
15680 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
15681 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
15682 | case "$ac_file" in | |
15683 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
15684 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
15685 | *) ac_file_in="${ac_file}.in" ;; | |
15686 | esac | |
15687 | ||
15688 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
15689 | ||
15690 | # Remove last slash and all that follows it. Not all systems have dirname. | |
15691 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
15692 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
15693 | # The file is in a subdirectory. | |
15694 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
15695 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
15696 | # A "../" for each directory in $ac_dir_suffix. | |
15697 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
15698 | else | |
15699 | ac_dir_suffix= ac_dots= | |
15700 | fi | |
15701 | ||
15702 | case "$ac_given_srcdir" in | |
15703 | .) srcdir=. | |
15704 | if test -z "$ac_dots"; then top_srcdir=. | |
15705 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
15706 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
15707 | *) # Relative path. | |
15708 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
15709 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
15710 | esac | |
15711 | ||
15712 | case "$ac_given_INSTALL" in | |
15713 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
15714 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
15715 | esac | |
15716 | ||
15717 | echo creating "$ac_file" | |
15718 | rm -f "$ac_file" | |
15719 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
15720 | case "$ac_file" in | |
15721 | *Makefile*) ac_comsub="1i\\ | |
15722 | # $configure_input" ;; | |
15723 | *) ac_comsub= ;; | |
15724 | esac | |
15725 | ||
15726 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
15727 | sed -e "$ac_comsub | |
15728 | s%@configure_input@%$configure_input%g | |
15729 | s%@srcdir@%$srcdir%g | |
15730 | s%@top_srcdir@%$top_srcdir%g | |
15731 | s%@INSTALL@%$INSTALL%g | |
15732 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
15733 | fi; done | |
15734 | rm -f conftest.s* | |
15735 | ||
15736 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
15737 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
15738 | # | |
15739 | # ac_d sets the value in "#define NAME VALUE" lines. | |
15740 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
15741 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
15742 | ac_dC='\3' | |
15743 | ac_dD='%g' | |
15744 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
15745 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
15746 | ac_uB='\([ ]\)%\1#\2define\3' | |
15747 | ac_uC=' ' | |
15748 | ac_uD='\4%g' | |
15749 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
15750 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
15751 | ac_eB='$%\1#\2define\3' | |
15752 | ac_eC=' ' | |
15753 | ac_eD='%g' | |
15754 | ||
15755 | if test "${CONFIG_HEADERS+set}" != set; then | |
15756 | EOF | |
15757 | cat >> $CONFIG_STATUS <<EOF | |
15758 | CONFIG_HEADERS="setup.h:setup.h.in" | |
15759 | EOF | |
15760 | cat >> $CONFIG_STATUS <<\EOF | |
15761 | fi | |
15762 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
15763 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
15764 | case "$ac_file" in | |
15765 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
15766 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
15767 | *) ac_file_in="${ac_file}.in" ;; | |
15768 | esac | |
15769 | ||
15770 | echo creating $ac_file | |
15771 | ||
15772 | rm -f conftest.frag conftest.in conftest.out | |
15773 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
15774 | cat $ac_file_inputs > conftest.in | |
15775 | ||
15776 | EOF | |
15777 | ||
15778 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
15779 | # the proper values into config.h.in to produce config.h. And first: | |
15780 | # Protect against being on the right side of a sed subst in config.status. | |
15781 | # Protect against being in an unquoted here document in config.status. | |
15782 | rm -f conftest.vals | |
15783 | cat > conftest.hdr <<\EOF | |
15784 | s/[\\&%]/\\&/g | |
15785 | s%[\\$`]%\\&%g | |
15786 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
15787 | s%ac_d%ac_u%gp | |
15788 | s%ac_u%ac_e%gp | |
15789 | EOF | |
15790 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
15791 | rm -f conftest.hdr | |
15792 | ||
15793 | # This sed command replaces #undef with comments. This is necessary, for | |
15794 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
15795 | # on some systems where configure will not decide to define it. | |
15796 | cat >> conftest.vals <<\EOF | |
15797 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
15798 | EOF | |
15799 | ||
15800 | # Break up conftest.vals because some shells have a limit on | |
15801 | # the size of here documents, and old seds have small limits too. | |
15802 | ||
15803 | rm -f conftest.tail | |
15804 | while : | |
15805 | do | |
15806 | ac_lines=`grep -c . conftest.vals` | |
15807 | # grep -c gives empty output for an empty file on some AIX systems. | |
15808 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
15809 | # Write a limited-size here document to conftest.frag. | |
15810 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
15811 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
15812 | echo 'CEOF | |
15813 | sed -f conftest.frag conftest.in > conftest.out | |
15814 | rm -f conftest.in | |
15815 | mv conftest.out conftest.in | |
15816 | ' >> $CONFIG_STATUS | |
15817 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
15818 | rm -f conftest.vals | |
15819 | mv conftest.tail conftest.vals | |
15820 | done | |
15821 | rm -f conftest.vals | |
15822 | ||
15823 | cat >> $CONFIG_STATUS <<\EOF | |
15824 | rm -f conftest.frag conftest.h | |
15825 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
15826 | cat conftest.in >> conftest.h | |
15827 | rm -f conftest.in | |
15828 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
15829 | echo "$ac_file is unchanged" | |
15830 | rm -f conftest.h | |
15831 | else | |
15832 | # Remove last slash and all that follows it. Not all systems have dirname. | |
15833 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
15834 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
15835 | # The file is in a subdirectory. | |
15836 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
15837 | fi | |
15838 | rm -f $ac_file | |
15839 | mv conftest.h $ac_file | |
15840 | fi | |
15841 | fi; done | |
15842 | ||
15843 | EOF | |
15844 | cat >> $CONFIG_STATUS <<EOF | |
15845 | ||
15846 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
f6bcfd97 | 15847 | TOOLKIT_NAME="${TOOLKIT_NAME}" |
07eb77a6 | 15848 | LN_S="${LN_S}" |
10f2d63a VZ |
15849 | |
15850 | ||
15851 | EOF | |
15852 | cat >> $CONFIG_STATUS <<\EOF | |
15853 | ||
15854 | chmod +x wx-config | |
f6bcfd97 BP |
15855 | mv wx-config wx${TOOLKIT_NAME}-config |
15856 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
00cf1208 RR |
15857 | |
15858 | ||
15859 | if test ! -d lib; then | |
15860 | mkdir lib | |
15861 | fi | |
15862 | if test ! -d lib/wx; then | |
15863 | mkdir lib/wx | |
15864 | fi | |
15865 | if test ! -d lib/wx/include; then | |
15866 | mkdir lib/wx/include | |
15867 | fi | |
15868 | if test ! -d lib/wx/include/wx; then | |
15869 | mkdir lib/wx/include/wx | |
15870 | fi | |
f6bcfd97 BP |
15871 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
15872 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
15873 | fi |
15874 | if test -f setup.h; then | |
066b00aa | 15875 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 15876 | fi |
07eb77a6 | 15877 | |
00cf1208 | 15878 | |
10f2d63a VZ |
15879 | if test ! -d include; then |
15880 | mkdir include | |
15881 | fi | |
15882 | if test ! -d include/wx; then | |
15883 | mkdir include/wx | |
15884 | fi | |
15885 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
15886 | mkdir include/wx/${TOOLKIT_DIR} | |
15887 | fi | |
afc31813 | 15888 | if test -f setup.h; then |
066b00aa | 15889 | cp -fp setup.h include/wx/${TOOLKIT_DIR}/setup.h |
afc31813 | 15890 | fi |
00cf1208 | 15891 | |
10f2d63a VZ |
15892 | |
15893 | exit 0 | |
15894 | EOF | |
15895 | chmod +x $CONFIG_STATUS | |
15896 | rm -fr confdefs* $ac_clean_files | |
15897 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
15898 | ||
2224580a VZ |
15899 | if test "$no_recursion" != yes; then |
15900 | ||
15901 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
15902 | ac_sub_configure_args= | |
15903 | ac_prev= | |
15904 | for ac_arg in $ac_configure_args; do | |
15905 | if test -n "$ac_prev"; then | |
15906 | ac_prev= | |
15907 | continue | |
15908 | fi | |
15909 | case "$ac_arg" in | |
15910 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
15911 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
15912 | ac_prev=cache_file ;; | |
15913 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
15914 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
15915 | ;; | |
15916 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
15917 | ac_prev=srcdir ;; | |
15918 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
15919 | ;; | |
15920 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
15921 | esac | |
15922 | done | |
15923 | ||
e8482f24 | 15924 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
15925 | |
15926 | # Do not complain, so a configure script can configure whichever | |
15927 | # parts of a large source tree are present. | |
15928 | if test ! -d $srcdir/$ac_config_dir; then | |
15929 | continue | |
15930 | fi | |
15931 | ||
15932 | echo configuring in $ac_config_dir | |
15933 | ||
15934 | case "$srcdir" in | |
15935 | .) ;; | |
15936 | *) | |
15937 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
15938 | else | |
15939 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
15940 | fi | |
15941 | ;; | |
15942 | esac | |
15943 | ||
15944 | ac_popdir=`pwd` | |
15945 | cd $ac_config_dir | |
15946 | ||
15947 | # A "../" for each directory in /$ac_config_dir. | |
15948 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
15949 | ||
15950 | case "$srcdir" in | |
15951 | .) # No --srcdir option. We are building in place. | |
15952 | ac_sub_srcdir=$srcdir ;; | |
15953 | /*) # Absolute path. | |
15954 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
15955 | *) # Relative path. | |
15956 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
15957 | esac | |
15958 | ||
15959 | # Check for guested configure; otherwise get Cygnus style configure. | |
15960 | if test -f $ac_sub_srcdir/configure; then | |
15961 | ac_sub_configure=$ac_sub_srcdir/configure | |
15962 | elif test -f $ac_sub_srcdir/configure.in; then | |
15963 | ac_sub_configure=$ac_configure | |
15964 | else | |
15965 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
15966 | ac_sub_configure= | |
15967 | fi | |
15968 | ||
15969 | # The recursion is here. | |
15970 | if test -n "$ac_sub_configure"; then | |
15971 | ||
15972 | # Make the cache file name correct relative to the subdirectory. | |
15973 | case "$cache_file" in | |
15974 | /*) ac_sub_cache_file=$cache_file ;; | |
15975 | *) # Relative path. | |
15976 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
15977 | esac | |
15978 | case "$ac_given_INSTALL" in | |
15979 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
15980 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
15981 | esac | |
15982 | ||
15983 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
15984 | # The eval makes quoting arguments work. | |
15985 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
15986 | then : | |
15987 | else | |
15988 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
15989 | fi | |
15990 | fi | |
15991 | ||
15992 | cd $ac_popdir | |
15993 | done | |
15994 | fi | |
15995 | ||
10f2d63a | 15996 |