]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
a0b9e27f MB |
3 | # From configure.in Id: configure.in |
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
52127426 | 25 | |
52127426 | 26 | |
8284b0c5 MB |
27 | |
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
8284b0c5 MB |
36 | |
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
8284b0c5 MB |
44 | |
45 | ||
46 | ||
247f5006 | 47 | |
247f5006 | 48 | |
a0b9e27f MB |
49 | |
50 | ||
51 | ||
52 | ||
53 | ||
54 | ||
55 | ||
56 | ||
57 | ||
58 | ||
59 | # Configure paths for GTK+ | |
60 | # Owen Taylor 1997-2001 | |
61 | ||
62 | ||
63 | ||
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 | # Configure paths for GTK+ | |
70 | # Owen Taylor 97-11-3 | |
71 | ||
72 | ||
73 | ||
74 | # Guess values for system-dependent variables and create Makefiles. | |
75 | # Generated automatically using autoconf version 2.13 | |
76 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
77 | # | |
78 | # This configure script is free software; the Free Software Foundation | |
79 | # gives unlimited permission to copy, distribute and modify it. | |
80 | ||
81 | # Defaults: | |
82 | ac_help= | |
83 | ac_default_prefix=/usr/local | |
84 | # Any additions from configure.in: | |
85 | ac_help="$ac_help | |
86 | --enable-gui use GUI classes" | |
87 | ac_help="$ac_help | |
88 | --enable-universal use wxWindows GUI controls instead of native ones" | |
89 | ac_help="$ac_help | |
90 | --with-gtk use GTK+" | |
91 | ac_help="$ac_help | |
92 | --with-motif use Motif/Lesstif" | |
93 | ac_help="$ac_help | |
94 | --with-mac use Mac OS X" | |
95 | ac_help="$ac_help | |
96 | --with-wine use WINE" | |
97 | ac_help="$ac_help | |
98 | --with-msw use MS-Windows" | |
99 | ac_help="$ac_help | |
100 | --with-pm use OS/2 Presentation Manager" | |
101 | ac_help="$ac_help | |
102 | --with-mgl use SciTech MGL" | |
103 | ac_help="$ac_help | |
104 | --with-microwin use MicroWindows" | |
105 | ac_help="$ac_help | |
106 | --with-x11 use X11" | |
107 | ac_help="$ac_help | |
108 | --enable-nanox use NanoX" | |
109 | ac_help="$ac_help | |
110 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
111 | ac_help="$ac_help | |
112 | --with-libpng use libpng (PNG image format)" | |
113 | ac_help="$ac_help | |
114 | --with-libjpeg use libjpeg (JPEG file format)" | |
115 | ac_help="$ac_help | |
116 | --with-libtiff use libtiff (TIFF file format)" | |
117 | ac_help="$ac_help | |
118 | --with-opengl use OpenGL (or Mesa)" | |
119 | ac_help="$ac_help | |
120 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" | |
121 | ac_help="$ac_help | |
122 | --with-regex enable support for wxRegEx class" | |
123 | ac_help="$ac_help | |
124 | --with-zlib use zlib for LZW compression" | |
125 | ac_help="$ac_help | |
126 | --with-odbc use the IODBC and wxODBC classes" | |
127 | ac_help="$ac_help | |
128 | --enable-shared create shared library code" | |
129 | ac_help="$ac_help | |
130 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
131 | ac_help="$ac_help | |
132 | --enable-optimise create optimised code" | |
133 | ac_help="$ac_help | |
134 | --enable-debug same as debug_flag and debug_info" | |
135 | ac_help="$ac_help | |
b2fee376 | 136 | --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)" |
a0b9e27f MB |
137 | ac_help="$ac_help |
138 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
139 | ac_help="$ac_help | |
140 | --enable-debug_info create code with debugging information" | |
141 | ac_help="$ac_help | |
142 | --enable-debug_gdb create code with extra GDB debugging information" | |
143 | ac_help="$ac_help | |
144 | --enable-debug_cntxt use wxDebugContext" | |
145 | ac_help="$ac_help | |
146 | --enable-mem_tracing create code with memory tracing" | |
147 | ac_help="$ac_help | |
148 | --enable-profile create code with profiling information" | |
149 | ac_help="$ac_help | |
150 | --enable-no_rtti create code without RTTI information" | |
151 | ac_help="$ac_help | |
152 | --enable-no_exceptions create code without C++ exceptions handling" | |
153 | ac_help="$ac_help | |
154 | --enable-permissive compile code disregarding strict ANSI" | |
155 | ac_help="$ac_help | |
156 | --enable-no_deps create code without dependency information" | |
157 | ac_help="$ac_help | |
158 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
159 | ac_help="$ac_help | |
160 | --disable-compat22 disable wxWindows 2.2 compatibility" | |
161 | ac_help="$ac_help | |
162 | --enable-rpath=DIR output the rpath flag from wx-config" | |
163 | ac_help="$ac_help | |
164 | --enable-intl use internationalization system" | |
165 | ac_help="$ac_help | |
166 | --enable-config use wxConfig (and derived) classes" | |
167 | ac_help="$ac_help | |
168 | --enable-protocols use wxProtocol and derived classes" | |
169 | ac_help="$ac_help | |
170 | --enable-ftp use wxFTP (requires wxProtocol" | |
171 | ac_help="$ac_help | |
172 | --enable-http use wxHTTP (requires wxProtocol" | |
173 | ac_help="$ac_help | |
174 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
175 | ac_help="$ac_help | |
176 | --enable-sockets use socket/network classes" | |
3bce6687 JS |
177 | ac_help="$ac_help |
178 | --enable-ole use OLE classes" | |
179 | ac_help="$ac_help | |
180 | --enable-dataobj use data object classes" | |
a0b9e27f MB |
181 | ac_help="$ac_help |
182 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
183 | ac_help="$ac_help | |
184 | --enable-cmdline use wxCmdLineParser class" | |
185 | ac_help="$ac_help | |
186 | --enable-datetime use wxDateTime class" | |
187 | ac_help="$ac_help | |
188 | --enable-timedate use obsolete wxDate/wxTime classes" | |
189 | ac_help="$ac_help | |
190 | --enable-stopwatch use wxStopWatch class" | |
191 | ac_help="$ac_help | |
192 | --enable-dialupman use dialup network classes" | |
193 | ac_help="$ac_help | |
194 | --enable-apple_ieee use the Apple IEEE codec" | |
195 | ac_help="$ac_help | |
196 | --enable-timer use wxTimer class" | |
197 | ac_help="$ac_help | |
198 | --enable-wave use wxWave class" | |
199 | ac_help="$ac_help | |
200 | --enable-fraction use wxFraction class" | |
201 | ac_help="$ac_help | |
202 | --enable-dynlib use wxLibrary class for DLL loading" | |
203 | ac_help="$ac_help | |
204 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
205 | ac_help="$ac_help | |
206 | --enable-longlong use wxLongLong class" | |
207 | ac_help="$ac_help | |
208 | --enable-geometry use geometry class" | |
209 | ac_help="$ac_help | |
210 | --enable-log use logging system" | |
211 | ac_help="$ac_help | |
212 | --enable-streams use wxStream etc classes" | |
213 | ac_help="$ac_help | |
214 | --enable-file use wxFile classes" | |
215 | ac_help="$ac_help | |
216 | --enable-ffile use wxFFile classes" | |
217 | ac_help="$ac_help | |
218 | --enable-textbuf use wxTextBuffer class" | |
219 | ac_help="$ac_help | |
220 | --enable-textfile use wxTextFile class" | |
221 | ac_help="$ac_help | |
222 | --enable-fontmap use font encodings conversion classes" | |
223 | ac_help="$ac_help | |
224 | --enable-unicode compile wxString with Unicode support" | |
225 | ac_help="$ac_help | |
226 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
227 | ac_help="$ac_help | |
228 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
229 | ac_help="$ac_help | |
230 | --enable-std_iostreams use standard C++ stream classes" | |
231 | ac_help="$ac_help | |
232 | --enable-filesystem use virtual file systems classes" | |
233 | ac_help="$ac_help | |
234 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
235 | ac_help="$ac_help | |
236 | --enable-fs_zip use virtual ZIP filesystems" | |
237 | ac_help="$ac_help | |
238 | --enable-zipstream use wxZipInputStream" | |
239 | ac_help="$ac_help | |
240 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
241 | ac_help="$ac_help | |
242 | --enable-snglinst use wxSingleInstanceChecker class" | |
243 | ac_help="$ac_help | |
244 | --enable-mimetype use wxMimeTypesManager" | |
245 | ac_help="$ac_help | |
246 | --enable-sysoptions use wxSystemOptions" | |
247 | ac_help="$ac_help | |
248 | --enable-url use wxURL class" | |
249 | ac_help="$ac_help | |
250 | --enable-protocol use wxProtocol class" | |
251 | ac_help="$ac_help | |
252 | --enable-protocol-http HTTP support in wxProtocol" | |
253 | ac_help="$ac_help | |
254 | --enable-protocol-ftp FTP support in wxProtocol" | |
255 | ac_help="$ac_help | |
256 | --enable-protocol-file FILE support in wxProtocol" | |
257 | ac_help="$ac_help | |
258 | --enable-threads use threads" | |
259 | ac_help="$ac_help | |
260 | --enable-docview use document view architecture" | |
261 | ac_help="$ac_help | |
262 | --enable-help use help subsystem" | |
263 | ac_help="$ac_help | |
264 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
265 | ac_help="$ac_help | |
266 | --enable-html use wxHTML sub-library" | |
267 | ac_help="$ac_help | |
268 | --enable-htmlhelp use wxHTML-based help" | |
269 | ac_help="$ac_help | |
270 | --enable-constraints use layout-constraints system" | |
271 | ac_help="$ac_help | |
272 | --enable-printarch use printing architecture" | |
273 | ac_help="$ac_help | |
274 | --enable-mdi use multiple document interface architecture" | |
275 | ac_help="$ac_help | |
276 | --enable-loggui use standard GUI logger" | |
277 | ac_help="$ac_help | |
278 | --enable-logwin use wxLogWindow" | |
279 | ac_help="$ac_help | |
280 | --enable-logdialog use wxLogDialog" | |
281 | ac_help="$ac_help | |
282 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
283 | ac_help="$ac_help | |
284 | --enable-prologio use Prolog IO library" | |
285 | ac_help="$ac_help | |
286 | --enable-resources use wxWindows resources" | |
287 | ac_help="$ac_help | |
288 | --enable-xresources use X resources for save (default for gtk+)" | |
289 | ac_help="$ac_help | |
290 | --enable-clipboard use wxClipboard classes" | |
291 | ac_help="$ac_help | |
292 | --enable-dnd use Drag'n'Drop classes" | |
293 | ac_help="$ac_help | |
294 | --enable-metafile use win32 metafiles" | |
295 | ac_help="$ac_help | |
296 | --enable-treelayout use wxTreeLayout classes" | |
297 | ac_help="$ac_help | |
298 | --enable-controls use all usual controls" | |
299 | ac_help="$ac_help | |
300 | --enable-accel use accelerators" | |
301 | ac_help="$ac_help | |
302 | --enable-button use wxButton class" | |
303 | ac_help="$ac_help | |
304 | --enable-bmpbutton use wxBitmapButton class" | |
305 | ac_help="$ac_help | |
306 | --enable-calendar use wxCalendarCtrl class" | |
307 | ac_help="$ac_help | |
308 | --enable-caret use wxCaret class" | |
309 | ac_help="$ac_help | |
310 | --enable-checkbox use wxCheckBox class" | |
311 | ac_help="$ac_help | |
312 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
313 | ac_help="$ac_help | |
314 | --enable-choice use wxChoice class" | |
315 | ac_help="$ac_help | |
316 | --enable-combobox use wxComboBox classes" | |
317 | ac_help="$ac_help | |
318 | --enable-gauge use wxGauge class" | |
319 | ac_help="$ac_help | |
320 | --enable-grid use wxGrid class" | |
321 | ac_help="$ac_help | |
322 | --enable-newgrid use new wxGrid class" | |
323 | ac_help="$ac_help | |
324 | --enable-imaglist use wxImageList class" | |
325 | ac_help="$ac_help | |
326 | --enable-listbox use wxListBox class" | |
327 | ac_help="$ac_help | |
328 | --enable-listctrl use wxListCtrl class" | |
329 | ac_help="$ac_help | |
330 | --enable-notebook use wxNotebook class" | |
331 | ac_help="$ac_help | |
332 | --enable-propsheet use wxPropertySheet class" | |
333 | ac_help="$ac_help | |
334 | --enable-radiobox use wxRadioBox class" | |
335 | ac_help="$ac_help | |
336 | --enable-radiobtn use wxRadioButton class" | |
337 | ac_help="$ac_help | |
338 | --enable-sash use wxSashWindow class" | |
339 | ac_help="$ac_help | |
340 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
341 | ac_help="$ac_help | |
342 | --enable-slider use wxSlider class" | |
343 | ac_help="$ac_help | |
344 | --enable-spinbtn use wxSpinButton class" | |
345 | ac_help="$ac_help | |
346 | --enable-spinctrl use wxSpinCtrl class" | |
347 | ac_help="$ac_help | |
348 | --enable-splitter use wxSplitterWindow class" | |
349 | ac_help="$ac_help | |
350 | --enable-statbmp use wxStaticBitmap class" | |
351 | ac_help="$ac_help | |
352 | --enable-statbox use wxStaticBox class" | |
353 | ac_help="$ac_help | |
354 | --enable-statline use wxStaticLine class" | |
355 | ac_help="$ac_help | |
356 | --enable-stattext use wxStaticText class" | |
357 | ac_help="$ac_help | |
358 | --enable-statusbar use wxStatusBar class" | |
359 | ac_help="$ac_help | |
360 | --enable-tabdialog use wxTabControl class" | |
361 | ac_help="$ac_help | |
362 | --enable-textctrl use wxTextCtrl class" | |
363 | ac_help="$ac_help | |
364 | --enable-togglebtn use wxToggleButton class" | |
365 | ac_help="$ac_help | |
366 | --enable-toolbar use wxToolBar class" | |
367 | ac_help="$ac_help | |
368 | --enable-tbarnative use native wxToolBar class" | |
369 | ac_help="$ac_help | |
370 | --enable-tbarsmpl use wxToolBarSimple class" | |
371 | ac_help="$ac_help | |
372 | --enable-treectrl use wxTreeCtrl class" | |
373 | ac_help="$ac_help | |
374 | --enable-tipwindow use wxTipWindow class" | |
375 | ac_help="$ac_help | |
376 | --enable-popupwin use wxPopUpWindow class" | |
377 | ac_help="$ac_help | |
378 | --enable-commondlg use all common dialogs" | |
379 | ac_help="$ac_help | |
380 | --enable-choicedlg use wxChoiceDialog" | |
381 | ac_help="$ac_help | |
382 | --enable-coldlg use wxColourDialog" | |
383 | ac_help="$ac_help | |
384 | --enable-filedlg use wxFileDialog" | |
385 | ac_help="$ac_help | |
386 | --enable-finddlg use wxFindReplaceDialog" | |
387 | ac_help="$ac_help | |
388 | --enable-fontdlg use wxFontDialog" | |
389 | ac_help="$ac_help | |
390 | --enable-dirdlg use wxDirDialog" | |
391 | ac_help="$ac_help | |
392 | --enable-msgdlg use wxMessageDialog" | |
393 | ac_help="$ac_help | |
394 | --enable-numberdlg use wxNumberEntryDialog" | |
395 | ac_help="$ac_help | |
396 | --enable-splash use wxSplashScreen" | |
397 | ac_help="$ac_help | |
398 | --enable-textdlg use wxTextDialog" | |
399 | ac_help="$ac_help | |
400 | --enable-tipdlg use startup tips" | |
401 | ac_help="$ac_help | |
402 | --enable-progressdlg use wxProgressDialog" | |
403 | ac_help="$ac_help | |
404 | --enable-wizarddlg use wxWizard" | |
405 | ac_help="$ac_help | |
406 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
407 | ac_help="$ac_help | |
408 | --enable-miniframe use wxMiniFrame class" | |
409 | ac_help="$ac_help | |
410 | --enable-tooltips use wxToolTip class" | |
411 | ac_help="$ac_help | |
412 | --enable-splines use spline drawing code" | |
413 | ac_help="$ac_help | |
414 | --enable-validators use wxValidator and derived classes" | |
415 | ac_help="$ac_help | |
416 | --enable-busyinfo use wxBusyInfo" | |
417 | ac_help="$ac_help | |
418 | --enable-joystick use wxJoystick (Linux only)" | |
419 | ac_help="$ac_help | |
420 | --enable-metafiles use wxMetaFile (Windows only)" | |
421 | ac_help="$ac_help | |
422 | --enable-dragimage use wxDragImage" | |
423 | ac_help="$ac_help | |
424 | --enable-palette use wxPalette class" | |
425 | ac_help="$ac_help | |
426 | --enable-image use wxImage class" | |
427 | ac_help="$ac_help | |
428 | --enable-gif use gif images (GIF file format)" | |
429 | ac_help="$ac_help | |
430 | --enable-pcx use pcx images (PCX file format)" | |
431 | ac_help="$ac_help | |
432 | --enable-iff use iff images (IFF file format)" | |
433 | ac_help="$ac_help | |
434 | --enable-pnm use pnm images (PNM file format)" | |
435 | ac_help="$ac_help | |
436 | --enable-xpm use xpm images (XPM file format)" | |
437 | ac_help="$ac_help | |
438 | --enable-icocur use Windows ICO and CUR formats" | |
439 | ac_help="$ac_help | |
440 | --disable-largefile omit support for large files" | |
441 | ac_help="$ac_help | |
442 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
443 | ac_help="$ac_help | |
444 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
445 | ac_help="$ac_help | |
446 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
447 | ac_help="$ac_help | |
448 | --disable-gtktest Do not try to compile and run a test GTK program" | |
449 | ac_help="$ac_help | |
450 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
451 | ac_help="$ac_help | |
452 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
453 | ac_help="$ac_help | |
454 | --disable-gtktest Do not try to compile and run a test GTK program" | |
455 | ac_help="$ac_help | |
456 | --with-x use the X Window System" | |
457 | ac_help="$ac_help | |
458 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
459 | |
460 | # Initialize some variables set by options. | |
461 | # The variables have the same names as the options, with | |
462 | # dashes changed to underlines. | |
a0b9e27f MB |
463 | build=NONE |
464 | cache_file=./config.cache | |
10f2d63a | 465 | exec_prefix=NONE |
a0b9e27f | 466 | host=NONE |
10f2d63a | 467 | no_create= |
a0b9e27f | 468 | nonopt=NONE |
10f2d63a VZ |
469 | no_recursion= |
470 | prefix=NONE | |
471 | program_prefix=NONE | |
472 | program_suffix=NONE | |
473 | program_transform_name=s,x,x, | |
474 | silent= | |
475 | site= | |
476 | srcdir= | |
a0b9e27f | 477 | target=NONE |
10f2d63a VZ |
478 | verbose= |
479 | x_includes=NONE | |
480 | x_libraries=NONE | |
481 | bindir='${exec_prefix}/bin' | |
482 | sbindir='${exec_prefix}/sbin' | |
483 | libexecdir='${exec_prefix}/libexec' | |
484 | datadir='${prefix}/share' | |
485 | sysconfdir='${prefix}/etc' | |
486 | sharedstatedir='${prefix}/com' | |
487 | localstatedir='${prefix}/var' | |
488 | libdir='${exec_prefix}/lib' | |
489 | includedir='${prefix}/include' | |
490 | oldincludedir='/usr/include' | |
491 | infodir='${prefix}/info' | |
492 | mandir='${prefix}/man' | |
493 | ||
a0b9e27f MB |
494 | # Initialize some other variables. |
495 | subdirs= | |
496 | MFLAGS= MAKEFLAGS= | |
497 | SHELL=${CONFIG_SHELL-/bin/sh} | |
498 | # Maximum number of lines to put in a shell here document. | |
499 | ac_max_here_lines=12 | |
500 | ||
10f2d63a VZ |
501 | ac_prev= |
502 | for ac_option | |
503 | do | |
a0b9e27f | 504 | |
10f2d63a VZ |
505 | # If the previous option needs an argument, assign it. |
506 | if test -n "$ac_prev"; then | |
507 | eval "$ac_prev=\$ac_option" | |
508 | ac_prev= | |
509 | continue | |
510 | fi | |
511 | ||
a0b9e27f MB |
512 | case "$ac_option" in |
513 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
514 | *) ac_optarg= ;; | |
515 | esac | |
10f2d63a VZ |
516 | |
517 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
518 | ||
a0b9e27f | 519 | case "$ac_option" in |
10f2d63a VZ |
520 | |
521 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
522 | ac_prev=bindir ;; | |
523 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
a0b9e27f | 524 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
525 | |
526 | -build | --build | --buil | --bui | --bu) | |
a0b9e27f | 527 | ac_prev=build ;; |
10f2d63a | 528 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
a0b9e27f | 529 | build="$ac_optarg" ;; |
10f2d63a VZ |
530 | |
531 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
532 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
533 | ac_prev=cache_file ;; | |
534 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
535 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
a0b9e27f | 536 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
537 | |
538 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
539 | ac_prev=datadir ;; | |
540 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
541 | | --da=*) | |
a0b9e27f | 542 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
543 | |
544 | -disable-* | --disable-*) | |
a0b9e27f | 545 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 546 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
547 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
548 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
549 | fi | |
550 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
551 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
552 | |
553 | -enable-* | --enable-*) | |
a0b9e27f | 554 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 555 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
556 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
557 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
558 | fi | |
559 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
560 | case "$ac_option" in | |
561 | *=*) ;; | |
10f2d63a VZ |
562 | *) ac_optarg=yes ;; |
563 | esac | |
a0b9e27f | 564 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
565 | |
566 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
567 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
568 | | --exec | --exe | --ex) | |
569 | ac_prev=exec_prefix ;; | |
570 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
571 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
572 | | --exec=* | --exe=* | --ex=*) | |
a0b9e27f | 573 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
574 | |
575 | -gas | --gas | --ga | --g) | |
576 | # Obsolete; use --with-gas. | |
577 | with_gas=yes ;; | |
578 | ||
a0b9e27f MB |
579 | -help | --help | --hel | --he) |
580 | # Omit some internal or obsolete options to make the list less imposing. | |
581 | # This message is too long to be a string in the A/UX 3.1 sh. | |
582 | cat << EOF | |
583 | Usage: configure [options] [host] | |
584 | Options: [defaults in brackets after descriptions] | |
585 | Configuration: | |
586 | --cache-file=FILE cache test results in FILE | |
587 | --help print this message | |
588 | --no-create do not create output files | |
589 | --quiet, --silent do not print \`checking...' messages | |
590 | --version print the version of autoconf that created configure | |
591 | Directory and file names: | |
592 | --prefix=PREFIX install architecture-independent files in PREFIX | |
593 | [$ac_default_prefix] | |
594 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
595 | [same as prefix] | |
596 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
597 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
598 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
599 | --datadir=DIR read-only architecture-independent data in DIR | |
600 | [PREFIX/share] | |
601 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
602 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
603 | [PREFIX/com] | |
604 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
605 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
606 | --includedir=DIR C header files in DIR [PREFIX/include] | |
607 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
608 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
609 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
610 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
611 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
612 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
613 | --program-transform-name=PROGRAM | |
614 | run sed PROGRAM on installed program names | |
615 | EOF | |
616 | cat << EOF | |
617 | Host type: | |
618 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
619 | --host=HOST configure for HOST [guessed] | |
620 | --target=TARGET configure for TARGET [TARGET=HOST] | |
621 | Features and packages: | |
622 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
623 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
624 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
625 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
626 | --x-includes=DIR X include files are in DIR | |
627 | --x-libraries=DIR X library files are in DIR | |
628 | EOF | |
629 | if test -n "$ac_help"; then | |
630 | echo "--enable and --with options recognized:$ac_help" | |
631 | fi | |
632 | exit 0 ;; | |
10f2d63a VZ |
633 | |
634 | -host | --host | --hos | --ho) | |
a0b9e27f | 635 | ac_prev=host ;; |
10f2d63a | 636 | -host=* | --host=* | --hos=* | --ho=*) |
a0b9e27f | 637 | host="$ac_optarg" ;; |
10f2d63a VZ |
638 | |
639 | -includedir | --includedir | --includedi | --included | --include \ | |
640 | | --includ | --inclu | --incl | --inc) | |
641 | ac_prev=includedir ;; | |
642 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
643 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
a0b9e27f | 644 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
645 | |
646 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
647 | ac_prev=infodir ;; | |
648 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
a0b9e27f | 649 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
650 | |
651 | -libdir | --libdir | --libdi | --libd) | |
652 | ac_prev=libdir ;; | |
653 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
a0b9e27f | 654 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
655 | |
656 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
657 | | --libexe | --libex | --libe) | |
658 | ac_prev=libexecdir ;; | |
659 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
660 | | --libexe=* | --libex=* | --libe=*) | |
a0b9e27f | 661 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
662 | |
663 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
664 | | --localstate | --localstat | --localsta | --localst \ | |
665 | | --locals | --local | --loca | --loc | --lo) | |
666 | ac_prev=localstatedir ;; | |
667 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
668 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
669 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
a0b9e27f | 670 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
671 | |
672 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
673 | ac_prev=mandir ;; | |
674 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
a0b9e27f | 675 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
676 | |
677 | -nfp | --nfp | --nf) | |
678 | # Obsolete; use --without-fp. | |
679 | with_fp=no ;; | |
680 | ||
681 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
a0b9e27f | 682 | | --no-cr | --no-c) |
10f2d63a VZ |
683 | no_create=yes ;; |
684 | ||
685 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
686 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
687 | no_recursion=yes ;; | |
688 | ||
689 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
690 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
691 | | --oldin | --oldi | --old | --ol | --o) | |
692 | ac_prev=oldincludedir ;; | |
693 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
694 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
695 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
a0b9e27f | 696 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
697 | |
698 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
699 | ac_prev=prefix ;; | |
700 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
a0b9e27f | 701 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
702 | |
703 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
704 | | --program-pre | --program-pr | --program-p) | |
705 | ac_prev=program_prefix ;; | |
706 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
707 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
a0b9e27f | 708 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
709 | |
710 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
711 | | --program-suf | --program-su | --program-s) | |
712 | ac_prev=program_suffix ;; | |
713 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
714 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
a0b9e27f | 715 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
716 | |
717 | -program-transform-name | --program-transform-name \ | |
718 | | --program-transform-nam | --program-transform-na \ | |
719 | | --program-transform-n | --program-transform- \ | |
720 | | --program-transform | --program-transfor \ | |
721 | | --program-transfo | --program-transf \ | |
722 | | --program-trans | --program-tran \ | |
723 | | --progr-tra | --program-tr | --program-t) | |
724 | ac_prev=program_transform_name ;; | |
725 | -program-transform-name=* | --program-transform-name=* \ | |
726 | | --program-transform-nam=* | --program-transform-na=* \ | |
727 | | --program-transform-n=* | --program-transform-=* \ | |
728 | | --program-transform=* | --program-transfor=* \ | |
729 | | --program-transfo=* | --program-transf=* \ | |
730 | | --program-trans=* | --program-tran=* \ | |
731 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
a0b9e27f | 732 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
733 | |
734 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
735 | | -silent | --silent | --silen | --sile | --sil) | |
736 | silent=yes ;; | |
737 | ||
738 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
739 | ac_prev=sbindir ;; | |
740 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
741 | | --sbi=* | --sb=*) | |
a0b9e27f | 742 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
743 | |
744 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
745 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
746 | | --sharedst | --shareds | --shared | --share | --shar \ | |
747 | | --sha | --sh) | |
748 | ac_prev=sharedstatedir ;; | |
749 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
750 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
751 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
752 | | --sha=* | --sh=*) | |
a0b9e27f | 753 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
754 | |
755 | -site | --site | --sit) | |
756 | ac_prev=site ;; | |
757 | -site=* | --site=* | --sit=*) | |
a0b9e27f | 758 | site="$ac_optarg" ;; |
10f2d63a VZ |
759 | |
760 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
761 | ac_prev=srcdir ;; | |
762 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
a0b9e27f | 763 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
764 | |
765 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
766 | | --syscon | --sysco | --sysc | --sys | --sy) | |
767 | ac_prev=sysconfdir ;; | |
768 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
769 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
a0b9e27f | 770 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
771 | |
772 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
a0b9e27f | 773 | ac_prev=target ;; |
10f2d63a | 774 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
a0b9e27f | 775 | target="$ac_optarg" ;; |
10f2d63a VZ |
776 | |
777 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
778 | verbose=yes ;; | |
779 | ||
a0b9e27f MB |
780 | -version | --version | --versio | --versi | --vers) |
781 | echo "configure generated by autoconf version 2.13" | |
782 | exit 0 ;; | |
10f2d63a VZ |
783 | |
784 | -with-* | --with-*) | |
a0b9e27f | 785 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 786 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
787 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
788 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
789 | fi | |
10f2d63a | 790 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
a0b9e27f MB |
791 | case "$ac_option" in |
792 | *=*) ;; | |
10f2d63a VZ |
793 | *) ac_optarg=yes ;; |
794 | esac | |
a0b9e27f | 795 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
796 | |
797 | -without-* | --without-*) | |
a0b9e27f | 798 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 799 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
800 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
801 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
802 | fi | |
803 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
804 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
805 | |
806 | --x) | |
807 | # Obsolete; use --with-x. | |
808 | with_x=yes ;; | |
809 | ||
810 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
811 | | --x-incl | --x-inc | --x-in | --x-i) | |
812 | ac_prev=x_includes ;; | |
813 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
814 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
a0b9e27f | 815 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
816 | |
817 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
818 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
819 | ac_prev=x_libraries ;; | |
820 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
821 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
a0b9e27f | 822 | x_libraries="$ac_optarg" ;; |
10f2d63a | 823 | |
a0b9e27f | 824 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
825 | ;; |
826 | ||
827 | *) | |
a0b9e27f MB |
828 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
829 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
830 | fi | |
831 | if test "x$nonopt" != xNONE; then | |
832 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
833 | fi | |
834 | nonopt="$ac_option" | |
10f2d63a VZ |
835 | ;; |
836 | ||
837 | esac | |
838 | done | |
839 | ||
840 | if test -n "$ac_prev"; then | |
a0b9e27f | 841 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
8284b0c5 | 842 | fi |
8284b0c5 | 843 | |
a0b9e27f MB |
844 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
845 | ||
846 | # File descriptor usage: | |
847 | # 0 standard input | |
848 | # 1 file creation | |
849 | # 2 errors and warnings | |
850 | # 3 some systems may open it to /dev/tty | |
851 | # 4 used on the Kubota Titan | |
852 | # 6 checking for... messages and results | |
853 | # 5 compiler messages saved in config.log | |
854 | if test "$silent" = yes; then | |
855 | exec 6>/dev/null | |
856 | else | |
857 | exec 6>&1 | |
858 | fi | |
859 | exec 5>./config.log | |
860 | ||
861 | echo "\ | |
862 | This file contains any messages produced by compilers while | |
863 | running configure, to aid debugging if configure makes a mistake. | |
864 | " 1>&5 | |
8284b0c5 | 865 | |
a0b9e27f MB |
866 | # Strip out --no-create and --no-recursion so they do not pile up. |
867 | # Also quote any args containing shell metacharacters. | |
868 | ac_configure_args= | |
869 | for ac_arg | |
10f2d63a | 870 | do |
a0b9e27f MB |
871 | case "$ac_arg" in |
872 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
873 | | --no-cr | --no-c) ;; | |
874 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
875 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
876 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
877 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
878 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
879 | esac |
880 | done | |
881 | ||
a0b9e27f MB |
882 | # NLS nuisances. |
883 | # Only set these to C if already set. These must not be set unconditionally | |
884 | # because not all systems understand e.g. LANG=C (notably SCO). | |
885 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
886 | # Non-C LC_CTYPE values break the ctype check. | |
887 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
888 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
889 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
890 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
247f5006 | 891 | |
a0b9e27f MB |
892 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
893 | rm -rf conftest* confdefs.h | |
894 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
895 | echo > confdefs.h | |
10f2d63a | 896 | |
a0b9e27f MB |
897 | # A filename unique to this package, relative to the directory that |
898 | # configure is in, which we can look for to find out if srcdir is correct. | |
899 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
900 | |
901 | # Find the source files, if location was not specified. | |
902 | if test -z "$srcdir"; then | |
903 | ac_srcdir_defaulted=yes | |
904 | # Try the directory containing this script, then its parent. | |
a0b9e27f MB |
905 | ac_prog=$0 |
906 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
907 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
10f2d63a VZ |
908 | srcdir=$ac_confdir |
909 | if test ! -r $srcdir/$ac_unique_file; then | |
910 | srcdir=.. | |
911 | fi | |
912 | else | |
913 | ac_srcdir_defaulted=no | |
914 | fi | |
915 | if test ! -r $srcdir/$ac_unique_file; then | |
916 | if test "$ac_srcdir_defaulted" = yes; then | |
a0b9e27f | 917 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 918 | else |
a0b9e27f | 919 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
920 | fi |
921 | fi | |
a0b9e27f | 922 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
328a083c | 923 | |
10f2d63a VZ |
924 | # Prefer explicitly selected file to automatically selected ones. |
925 | if test -z "$CONFIG_SITE"; then | |
926 | if test "x$prefix" != xNONE; then | |
927 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
928 | else | |
929 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
930 | fi | |
931 | fi | |
932 | for ac_site_file in $CONFIG_SITE; do | |
933 | if test -r "$ac_site_file"; then | |
a0b9e27f | 934 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
935 | . "$ac_site_file" |
936 | fi | |
937 | done | |
938 | ||
939 | if test -r "$cache_file"; then | |
a0b9e27f MB |
940 | echo "loading cache $cache_file" |
941 | . $cache_file | |
10f2d63a | 942 | else |
a0b9e27f MB |
943 | echo "creating cache $cache_file" |
944 | > $cache_file | |
10f2d63a VZ |
945 | fi |
946 | ||
947 | ac_ext=c | |
a0b9e27f | 948 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 949 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
950 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
951 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
952 | cross_compiling=$ac_cv_prog_cc_cross | |
953 | ||
954 | ac_exeext= | |
955 | ac_objext=o | |
956 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
957 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
958 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
959 | ac_n= ac_c=' | |
960 | ' ac_t=' ' | |
961 | else | |
962 | ac_n=-n ac_c= ac_t= | |
963 | fi | |
964 | else | |
965 | ac_n= ac_c='\c' ac_t= | |
966 | fi | |
8284b0c5 MB |
967 | |
968 | ||
10f2d63a | 969 | |
7c66a493 VZ |
970 | ac_aux_dir= |
971 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
972 | if test -f $ac_dir/install-sh; then | |
973 | ac_aux_dir=$ac_dir | |
974 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
975 | break | |
976 | elif test -f $ac_dir/install.sh; then | |
977 | ac_aux_dir=$ac_dir | |
978 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
979 | break | |
247f5006 | 980 | fi |
7c66a493 VZ |
981 | done |
982 | if test -z "$ac_aux_dir"; then | |
a0b9e27f | 983 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 984 | fi |
a0b9e27f MB |
985 | ac_config_guess=$ac_aux_dir/config.guess |
986 | ac_config_sub=$ac_aux_dir/config.sub | |
987 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
698dcdb6 | 988 | |
8284b0c5 | 989 | |
a0b9e27f MB |
990 | # Do some error checking and defaulting for the host and target type. |
991 | # The inputs are: | |
992 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
993 | # | |
994 | # The rules are: | |
995 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
996 | # same time. | |
997 | # 2. Host defaults to nonopt. | |
998 | # 3. If nonopt is not specified, then host defaults to the current host, | |
999 | # as determined by config.guess. | |
1000 | # 4. Target and build default to nonopt. | |
1001 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
1002 | |
1003 | # The aliases save the names the user supplied, while $host etc. | |
1004 | # will get canonicalized. | |
a0b9e27f MB |
1005 | case $host---$target---$nonopt in |
1006 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1007 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1008 | esac | |
1009 | ||
1010 | ||
1011 | # Make sure we can run config.sub. | |
1012 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1013 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1014 | fi | |
1015 | ||
1016 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
3bce6687 | 1017 | echo "configure:1018: checking host system type" >&5 |
a0b9e27f MB |
1018 | |
1019 | host_alias=$host | |
1020 | case "$host_alias" in | |
1021 | NONE) | |
1022 | case $nonopt in | |
1023 | NONE) | |
1024 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1025 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1026 | fi ;; | |
1027 | *) host_alias=$nonopt ;; | |
1028 | esac ;; | |
1029 | esac | |
1030 | ||
1031 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1032 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1033 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1034 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1035 | echo "$ac_t""$host" 1>&6 | |
1036 | ||
1037 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
3bce6687 | 1038 | echo "configure:1039: checking target system type" >&5 |
a0b9e27f MB |
1039 | |
1040 | target_alias=$target | |
1041 | case "$target_alias" in | |
1042 | NONE) | |
1043 | case $nonopt in | |
1044 | NONE) target_alias=$host_alias ;; | |
1045 | *) target_alias=$nonopt ;; | |
1046 | esac ;; | |
1047 | esac | |
1048 | ||
1049 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1050 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1051 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1052 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1053 | echo "$ac_t""$target" 1>&6 | |
1054 | ||
1055 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
3bce6687 | 1056 | echo "configure:1057: checking build system type" >&5 |
a0b9e27f MB |
1057 | |
1058 | build_alias=$build | |
1059 | case "$build_alias" in | |
1060 | NONE) | |
1061 | case $nonopt in | |
1062 | NONE) build_alias=$host_alias ;; | |
1063 | *) build_alias=$nonopt ;; | |
1064 | esac ;; | |
1065 | esac | |
1066 | ||
1067 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1068 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1069 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1070 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1071 | echo "$ac_t""$build" 1>&6 | |
1072 | ||
1073 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1074 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1075 | NONENONEs,x,x, && | |
1076 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1077 | |
1078 | ||
a0b9e27f | 1079 | |
10f2d63a | 1080 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1081 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1082 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1083 | |
10f2d63a | 1084 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1085 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1086 | |
978f1259 RL |
1087 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1088 | ||
a0d927d1 | 1089 | WX_CURRENT=2 |
6426998c RL |
1090 | WX_REVISION=0 |
1091 | WX_AGE=0 | |
1092 | ||
8284b0c5 MB |
1093 | |
1094 | ||
10f2d63a VZ |
1095 | USE_UNIX=1 |
1096 | USE_WIN32=0 | |
f9bc1684 | 1097 | USE_DOS=0 |
b12915c1 | 1098 | USE_BEOS=0 |
1216f52d | 1099 | USE_MAC=0 |
b12915c1 | 1100 | |
10f2d63a VZ |
1101 | USE_LINUX= |
1102 | USE_SGI= | |
1103 | USE_HPUX= | |
1104 | USE_SYSV= | |
1105 | USE_SVR4= | |
1106 | USE_AIX= | |
1107 | USE_SUN= | |
1108 | USE_SOLARIS= | |
1109 | USE_SUNOS= | |
1110 | USE_ALPHA= | |
1111 | USE_OSF= | |
1112 | USE_BSD= | |
f11bdd03 | 1113 | USE_DARWIN= |
10f2d63a | 1114 | USE_FREEBSD= |
95c8801c | 1115 | USE_OPENBSD= |
f6bcfd97 | 1116 | USE_NETBSD= |
10f2d63a VZ |
1117 | USE_VMS= |
1118 | USE_ULTRIX= | |
10f2d63a VZ |
1119 | USE_DATA_GENERAL= |
1120 | ||
ab9b9eab VZ |
1121 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1122 | ||
f79bd02d | 1123 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1124 | |
1125 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1126 | DEFAULT_wxUSE_MAC=0 |
1127 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1128 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1129 | DEFAULT_wxUSE_MOTIF=0 |
1130 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1131 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1132 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1133 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1134 | |
1135 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1136 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1137 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1138 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1139 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1140 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1141 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1142 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1143 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1144 | |
d6a55c4b | 1145 | PROGRAM_EXT= |
3a922bb4 | 1146 | SO_SUFFIX=so |
d6a55c4b | 1147 | |
10f2d63a VZ |
1148 | case "${host}" in |
1149 | *-hp-hpux* ) | |
1150 | USE_HPUX=1 | |
1151 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1152 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1153 | SO_SUFFIX=sl |
a0b9e27f | 1154 | cat >> confdefs.h <<\EOF |
10f2d63a | 1155 | #define __HPUX__ 1 |
a0b9e27f | 1156 | EOF |
10f2d63a VZ |
1157 | |
1158 | ;; | |
1159 | *-*-linux* ) | |
1160 | USE_LINUX=1 | |
a0b9e27f | 1161 | cat >> confdefs.h <<\EOF |
10f2d63a | 1162 | #define __LINUX__ 1 |
a0b9e27f | 1163 | EOF |
10f2d63a VZ |
1164 | |
1165 | TMP=`uname -m` | |
1166 | if test "x$TMP" = "xalpha"; then | |
1167 | USE_ALPHA=1 | |
a0b9e27f | 1168 | cat >> confdefs.h <<\EOF |
10f2d63a | 1169 | #define __ALPHA__ 1 |
a0b9e27f | 1170 | EOF |
10f2d63a VZ |
1171 | |
1172 | fi | |
1173 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1174 | ;; | |
1175 | *-*-irix5* | *-*-irix6* ) | |
1176 | USE_SGI=1 | |
1177 | USE_SVR4=1 | |
a0b9e27f | 1178 | cat >> confdefs.h <<\EOF |
10f2d63a | 1179 | #define __SGI__ 1 |
a0b9e27f | 1180 | EOF |
10f2d63a | 1181 | |
a0b9e27f | 1182 | cat >> confdefs.h <<\EOF |
10f2d63a | 1183 | #define __SVR4__ 1 |
a0b9e27f | 1184 | EOF |
10f2d63a VZ |
1185 | |
1186 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1187 | ;; | |
1188 | *-*-solaris2* ) | |
1189 | USE_SUN=1 | |
1190 | USE_SOLARIS=1 | |
1191 | USE_SVR4=1 | |
a0b9e27f | 1192 | cat >> confdefs.h <<\EOF |
10f2d63a | 1193 | #define __SUN__ 1 |
a0b9e27f | 1194 | EOF |
10f2d63a | 1195 | |
a0b9e27f | 1196 | cat >> confdefs.h <<\EOF |
10f2d63a | 1197 | #define __SOLARIS__ 1 |
a0b9e27f | 1198 | EOF |
10f2d63a | 1199 | |
a0b9e27f | 1200 | cat >> confdefs.h <<\EOF |
10f2d63a | 1201 | #define __SVR4__ 1 |
a0b9e27f | 1202 | EOF |
10f2d63a VZ |
1203 | |
1204 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1205 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1206 | ;; |
1207 | *-*-sunos4* ) | |
1208 | USE_SUN=1 | |
1209 | USE_SUNOS=1 | |
1210 | USE_BSD=1 | |
a0b9e27f | 1211 | cat >> confdefs.h <<\EOF |
10f2d63a | 1212 | #define __SUN__ 1 |
a0b9e27f | 1213 | EOF |
10f2d63a | 1214 | |
a0b9e27f | 1215 | cat >> confdefs.h <<\EOF |
10f2d63a | 1216 | #define __SUNOS__ 1 |
a0b9e27f | 1217 | EOF |
10f2d63a | 1218 | |
a0b9e27f | 1219 | cat >> confdefs.h <<\EOF |
10f2d63a | 1220 | #define __BSD__ 1 |
a0b9e27f | 1221 | EOF |
10f2d63a VZ |
1222 | |
1223 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1224 | ;; | |
f6bcfd97 | 1225 | *-*-freebsd*) |
10f2d63a VZ |
1226 | USE_BSD=1 |
1227 | USE_FREEBSD=1 | |
a0b9e27f | 1228 | cat >> confdefs.h <<\EOF |
10f2d63a | 1229 | #define __FREEBSD__ 1 |
a0b9e27f | 1230 | EOF |
10f2d63a | 1231 | |
a0b9e27f | 1232 | cat >> confdefs.h <<\EOF |
10f2d63a | 1233 | #define __BSD__ 1 |
a0b9e27f | 1234 | EOF |
95c8801c VS |
1235 | |
1236 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1237 | ;; | |
1238 | *-*-openbsd*) | |
1239 | USE_BSD=1 | |
1240 | USE_OPENBSD=1 | |
a0b9e27f | 1241 | cat >> confdefs.h <<\EOF |
95c8801c | 1242 | #define __FREEBSD__ 1 |
a0b9e27f | 1243 | EOF |
95c8801c | 1244 | |
a0b9e27f | 1245 | cat >> confdefs.h <<\EOF |
95c8801c | 1246 | #define __OPENBSD__ 1 |
a0b9e27f | 1247 | EOF |
f6bcfd97 BP |
1248 | |
1249 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1250 | ;; | |
1251 | *-*-netbsd*) | |
1252 | USE_BSD=1 | |
1253 | USE_NETBSD=1 | |
a0b9e27f | 1254 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1255 | #define __FREEBSD__ 1 |
a0b9e27f | 1256 | EOF |
f6bcfd97 | 1257 | |
a0b9e27f | 1258 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1259 | #define __NETBSD__ 1 |
a0b9e27f | 1260 | EOF |
10f2d63a VZ |
1261 | |
1262 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1263 | ;; | |
1264 | *-*-osf* ) | |
1265 | USE_ALPHA=1 | |
1266 | USE_OSF=1 | |
a0b9e27f | 1267 | cat >> confdefs.h <<\EOF |
10f2d63a | 1268 | #define __ALPHA__ 1 |
a0b9e27f | 1269 | EOF |
10f2d63a | 1270 | |
a0b9e27f | 1271 | cat >> confdefs.h <<\EOF |
10f2d63a | 1272 | #define __OSF__ 1 |
a0b9e27f | 1273 | EOF |
10f2d63a VZ |
1274 | |
1275 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1276 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1277 | ;; |
1278 | *-*-dgux5* ) | |
1279 | USE_ALPHA=1 | |
1280 | USE_SVR4=1 | |
a0b9e27f | 1281 | cat >> confdefs.h <<\EOF |
10f2d63a | 1282 | #define __ALPHA__ 1 |
a0b9e27f | 1283 | EOF |
10f2d63a | 1284 | |
a0b9e27f | 1285 | cat >> confdefs.h <<\EOF |
10f2d63a | 1286 | #define __SVR4__ 1 |
a0b9e27f | 1287 | EOF |
10f2d63a VZ |
1288 | |
1289 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1290 | ;; | |
1291 | *-*-sysv5* ) | |
1292 | USE_SYSV=1 | |
1293 | USE_SVR4=1 | |
a0b9e27f | 1294 | cat >> confdefs.h <<\EOF |
10f2d63a | 1295 | #define __SYSV__ 1 |
a0b9e27f | 1296 | EOF |
10f2d63a | 1297 | |
a0b9e27f | 1298 | cat >> confdefs.h <<\EOF |
10f2d63a | 1299 | #define __SVR4__ 1 |
a0b9e27f | 1300 | EOF |
10f2d63a VZ |
1301 | |
1302 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1303 | ;; | |
1304 | *-*-aix* ) | |
1305 | USE_AIX=1 | |
1306 | USE_SYSV=1 | |
1307 | USE_SVR4=1 | |
321d2b14 | 1308 | SO_SUFFIX=a |
a0b9e27f | 1309 | cat >> confdefs.h <<\EOF |
10f2d63a | 1310 | #define __AIX__ 1 |
a0b9e27f | 1311 | EOF |
10f2d63a | 1312 | |
a0b9e27f | 1313 | cat >> confdefs.h <<\EOF |
10f2d63a | 1314 | #define __SYSV__ 1 |
a0b9e27f | 1315 | EOF |
10f2d63a | 1316 | |
a0b9e27f | 1317 | cat >> confdefs.h <<\EOF |
10f2d63a | 1318 | #define __SVR4__ 1 |
a0b9e27f | 1319 | EOF |
10f2d63a VZ |
1320 | |
1321 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1322 | ;; | |
1323 | ||
1c8183e2 | 1324 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1325 | SO_SUFFIX=dll |
cf27ef00 | 1326 | PROGRAM_EXT=".exe" |
7b7a7637 | 1327 | RESCOMP=windres |
10f2d63a VZ |
1328 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1329 | ;; | |
1330 | ||
f9bc1684 VS |
1331 | *-pc-msdosdjgpp ) |
1332 | USE_UNIX=0 | |
1333 | USE_DOS=1 | |
a0b9e27f | 1334 | cat >> confdefs.h <<\EOF |
f9bc1684 | 1335 | #define __DOS__ 1 |
a0b9e27f | 1336 | EOF |
f9bc1684 VS |
1337 | |
1338 | PROGRAM_EXT=".exe" | |
1339 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1340 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1341 | ;; |
1342 | ||
6fa882bd | 1343 | *-pc-os2_emx | *-pc-os2-emx ) |
a0b9e27f | 1344 | cat >> confdefs.h <<\EOF |
10f2d63a | 1345 | #define __EMX__ 1 |
a0b9e27f | 1346 | EOF |
10f2d63a | 1347 | |
cf27ef00 | 1348 | PROGRAM_EXT=".exe" |
e07802fc | 1349 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1350 | ;; |
1351 | ||
d08b457b GD |
1352 | powerpc-*-darwin* ) |
1353 | USE_BSD=1 | |
f11bdd03 | 1354 | USE_DARWIN=1 |
3a922bb4 | 1355 | SO_SUFFIX=dylib |
a0b9e27f | 1356 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1357 | #define __BSD__ 1 |
a0b9e27f | 1358 | EOF |
b4085ce6 | 1359 | |
a0b9e27f | 1360 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1361 | #define __DARWIN__ 1 |
a0b9e27f | 1362 | EOF |
d08b457b | 1363 | |
a0b9e27f | 1364 | cat >> confdefs.h <<\EOF |
d08b457b | 1365 | #define __POWERPC__ 1 |
a0b9e27f | 1366 | EOF |
b4085ce6 GD |
1367 | |
1368 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1369 | ;; | |
1370 | ||
b12915c1 VZ |
1371 | *-*-beos* ) |
1372 | USE_BEOS=1 | |
a0b9e27f | 1373 | cat >> confdefs.h <<\EOF |
b12915c1 | 1374 | #define __BEOS__ 1 |
a0b9e27f | 1375 | EOF |
b12915c1 VZ |
1376 | |
1377 | ;; | |
1378 | ||
10f2d63a | 1379 | *) |
a0b9e27f | 1380 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1381 | esac |
1382 | ||
8284b0c5 MB |
1383 | |
1384 | ||
1385 | ||
1386 | wx_arg_cache_file="configarg.cache" | |
1387 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1388 | rm -f ${wx_arg_cache_file}.tmp |
1389 | touch ${wx_arg_cache_file}.tmp | |
1390 | touch ${wx_arg_cache_file} | |
a0b9e27f | 1391 | |
10f2d63a VZ |
1392 | |
1393 | DEBUG_CONFIGURE=0 | |
1394 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1395 | DEFAULT_wxUSE_UNIVERSAL=no |
1396 | ||
d8356fa3 VZ |
1397 | DEFAULT_wxUSE_NANOX=no |
1398 | ||
10f2d63a VZ |
1399 | DEFAULT_wxUSE_THREADS=yes |
1400 | ||
1401 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1402 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1403 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1404 | DEFAULT_wxUSE_PROFILE=no |
1405 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1406 | DEFAULT_wxUSE_NO_RTTI=no |
1407 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1408 | DEFAULT_wxUSE_PERMISSIVE=no |
1409 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1410 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1411 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1412 | DEFAULT_wxUSE_MEM_TRACING=no | |
1413 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1414 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1415 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1416 | DEFAULT_wxUSE_APPLE_IEEE=no |
1417 | ||
1418 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1419 | DEFAULT_wxUSE_LOGWINDOW=no |
1420 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1421 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1422 | |
1423 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1424 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1425 | |
3e44f09d | 1426 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1427 | DEFAULT_wxUSE_ZLIB=no |
1428 | DEFAULT_wxUSE_LIBPNG=no | |
1429 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1430 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1431 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1432 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1433 | |
eb4efbdc | 1434 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1435 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1436 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1437 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1438 | DEFAULT_wxUSE_DATETIME=no | |
1439 | DEFAULT_wxUSE_TIMEDATE=no | |
1440 | DEFAULT_wxUSE_TIMER=no | |
1441 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1442 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1443 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1444 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1445 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1446 | DEFAULT_wxUSE_WAVE=no |
1447 | DEFAULT_wxUSE_INTL=no | |
1448 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1449 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1450 | DEFAULT_wxUSE_STREAMS=no |
1451 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
1452 | DEFAULT_wxUSE_OLE=no |
1453 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 1454 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 1455 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1456 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1457 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1458 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1459 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1460 | |
1461 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1462 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1463 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1464 | ||
1465 | DEFAULT_wxUSE_X_RESOURCES=no | |
1466 | DEFAULT_wxUSE_CLIPBOARD=no | |
1467 | DEFAULT_wxUSE_TOOLTIPS=no | |
1468 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1469 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1470 | DEFAULT_wxUSE_SPLINES=no |
1471 | ||
1472 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1473 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1474 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1475 | ||
1476 | DEFAULT_wxUSE_PROLOGIO=no | |
1477 | DEFAULT_wxUSE_RESOURCES=no | |
1478 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1479 | DEFAULT_wxUSE_IPC=no | |
1480 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1481 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1482 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1483 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1484 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1485 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1486 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1487 | DEFAULT_wxUSE_PROTOCOL=no | |
1488 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1489 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1490 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1491 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1492 | |
10f2d63a | 1493 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1494 | DEFAULT_wxUSE_CHOICEDLG=no |
1495 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1496 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1497 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1498 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1499 | DEFAULT_wxUSE_FONTDLG=no |
1500 | DEFAULT_wxUSE_MSGDLG=no | |
1501 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1502 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1503 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1504 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1505 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1506 | DEFAULT_wxUSE_WIZARDDLG=no |
1507 | ||
1e6feb95 | 1508 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1509 | DEFAULT_wxUSE_MINIFRAME=no |
1510 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1511 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1512 | DEFAULT_wxUSE_FS_INET=no |
1513 | DEFAULT_wxUSE_FS_ZIP=no | |
1514 | DEFAULT_wxUSE_BUSYINFO=no | |
1515 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1516 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1517 | |
1518 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1519 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1520 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1521 | DEFAULT_wxUSE_CALCTRL=no |
1522 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1523 | DEFAULT_wxUSE_CHECKBOX=no |
1524 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1525 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1526 | DEFAULT_wxUSE_COMBOBOX=no |
1527 | DEFAULT_wxUSE_GAUGE=no | |
1528 | DEFAULT_wxUSE_GRID=no | |
1529 | DEFAULT_wxUSE_NEW_GRID=no | |
1530 | DEFAULT_wxUSE_IMAGLIST=no | |
1531 | DEFAULT_wxUSE_LISTBOX=no | |
1532 | DEFAULT_wxUSE_LISTCTRL=no | |
1533 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1534 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1535 | DEFAULT_wxUSE_RADIOBOX=no |
1536 | DEFAULT_wxUSE_RADIOBTN=no | |
1537 | DEFAULT_wxUSE_SASH=no | |
1538 | DEFAULT_wxUSE_SCROLLBAR=no | |
1539 | DEFAULT_wxUSE_SLIDER=no | |
1540 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1541 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1542 | DEFAULT_wxUSE_SPLITTER=no |
1543 | DEFAULT_wxUSE_STATBMP=no | |
1544 | DEFAULT_wxUSE_STATBOX=no | |
1545 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1546 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1547 | DEFAULT_wxUSE_STATUSBAR=yes |
1548 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1549 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1550 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1551 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1552 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1553 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1554 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1555 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1556 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1557 | |
1558 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1559 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1560 | DEFAULT_wxUSE_WCSRTOMBS=no |
1561 | ||
edae8572 | 1562 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1563 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1564 | DEFAULT_wxUSE_GIF=no |
1565 | DEFAULT_wxUSE_PCX=no | |
1566 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1567 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1568 | DEFAULT_wxUSE_XPM=no |
658974ae | 1569 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1570 | else |
1e6feb95 VZ |
1571 | DEFAULT_wxUSE_UNIVERSAL=no |
1572 | ||
d8356fa3 VZ |
1573 | DEFAULT_wxUSE_NANOX=no |
1574 | ||
10f2d63a VZ |
1575 | DEFAULT_wxUSE_THREADS=yes |
1576 | ||
1577 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1578 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1579 | DEFAULT_wxUSE_OPTIMISE=yes |
1580 | DEFAULT_wxUSE_PROFILE=no | |
1581 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1582 | DEFAULT_wxUSE_NO_RTTI=no |
1583 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1584 | DEFAULT_wxUSE_PERMISSIVE=no |
1585 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1586 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1587 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1588 | DEFAULT_wxUSE_MEM_TRACING=no | |
1589 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1590 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1591 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1592 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1593 | ||
1594 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1595 | DEFAULT_wxUSE_LOGWINDOW=yes |
1596 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1597 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1598 | |
1599 | DEFAULT_wxUSE_GUI=yes | |
1600 | ||
831b3152 | 1601 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1602 | DEFAULT_wxUSE_ZLIB=yes |
1603 | DEFAULT_wxUSE_LIBPNG=yes | |
1604 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1605 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1606 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1607 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1608 | |
eb4efbdc | 1609 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1610 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1611 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1612 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1613 | DEFAULT_wxUSE_DATETIME=yes | |
1614 | DEFAULT_wxUSE_TIMEDATE=no | |
1615 | DEFAULT_wxUSE_TIMER=yes | |
1616 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1617 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1618 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1619 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1620 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1621 | DEFAULT_wxUSE_WAVE=no |
1622 | DEFAULT_wxUSE_INTL=yes | |
1623 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1624 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1625 | DEFAULT_wxUSE_STREAMS=yes |
1626 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
1627 | DEFAULT_wxUSE_OLE=yes |
1628 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 1629 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 1630 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1631 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1632 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1633 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1634 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1635 | |
1636 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1637 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1638 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1639 | ||
1640 | DEFAULT_wxUSE_X_RESOURCES=no | |
1641 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1642 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1643 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1644 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1645 | DEFAULT_wxUSE_SPLINES=yes |
1646 | ||
1647 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1648 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1649 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1650 | ||
1651 | DEFAULT_wxUSE_PROLOGIO=yes | |
1652 | DEFAULT_wxUSE_RESOURCES=yes | |
1653 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1654 | DEFAULT_wxUSE_IPC=yes | |
1655 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1656 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1657 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1658 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1659 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1660 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1661 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1662 | DEFAULT_wxUSE_PROTOCOL=yes |
1663 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1664 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1665 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1666 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1667 | |
1668 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1669 | DEFAULT_wxUSE_CHOICEDLG=yes |
1670 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1671 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1672 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1673 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1674 | DEFAULT_wxUSE_FONTDLG=yes |
1675 | DEFAULT_wxUSE_MSGDLG=yes | |
1676 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1677 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1678 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1679 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1680 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1681 | DEFAULT_wxUSE_WIZARDDLG=yes |
1682 | ||
1e6feb95 | 1683 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1684 | DEFAULT_wxUSE_MINIFRAME=yes |
1685 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1686 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1687 | DEFAULT_wxUSE_FS_INET=yes |
1688 | DEFAULT_wxUSE_FS_ZIP=yes | |
1689 | DEFAULT_wxUSE_BUSYINFO=yes | |
1690 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1691 | DEFAULT_wxUSE_VALIDATORS=yes | |
1692 | ||
1693 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1694 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1695 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1696 | DEFAULT_wxUSE_CALCTRL=yes |
1697 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1698 | DEFAULT_wxUSE_CHECKBOX=yes |
1699 | DEFAULT_wxUSE_CHECKLST=yes | |
1700 | DEFAULT_wxUSE_CHOICE=yes | |
1701 | DEFAULT_wxUSE_COMBOBOX=yes | |
1702 | DEFAULT_wxUSE_GAUGE=yes | |
1703 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1704 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1705 | DEFAULT_wxUSE_IMAGLIST=yes |
1706 | DEFAULT_wxUSE_LISTBOX=yes | |
1707 | DEFAULT_wxUSE_LISTCTRL=yes | |
1708 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1709 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1710 | DEFAULT_wxUSE_RADIOBOX=yes |
1711 | DEFAULT_wxUSE_RADIOBTN=yes | |
1712 | DEFAULT_wxUSE_SASH=yes | |
1713 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1714 | DEFAULT_wxUSE_SLIDER=yes | |
1715 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1716 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1717 | DEFAULT_wxUSE_SPLITTER=yes |
1718 | DEFAULT_wxUSE_STATBMP=yes | |
1719 | DEFAULT_wxUSE_STATBOX=yes | |
1720 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1721 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1722 | DEFAULT_wxUSE_STATUSBAR=yes |
1723 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1724 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1725 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1726 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1727 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1728 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1729 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1730 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1731 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1732 | |
1733 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1734 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1735 | DEFAULT_wxUSE_WCSRTOMBS=no |
1736 | ||
edae8572 | 1737 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1738 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1739 | DEFAULT_wxUSE_GIF=yes |
1740 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1741 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1742 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1743 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1744 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1745 | fi |
1746 | ||
8284b0c5 MB |
1747 | |
1748 | ||
10f2d63a | 1749 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
1750 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
1751 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
1752 | has_toolkit_in_cache=1 |
1753 | eval "DEFAULT_$LINE" | |
1754 | eval "CACHE_$toolkit=1" | |
1755 | fi | |
1756 | done | |
1757 | ||
8284b0c5 MB |
1758 | |
1759 | ||
a0b9e27f | 1760 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 |
3bce6687 | 1761 | echo "configure:1762: checking for --enable-gui" >&5 |
10f2d63a VZ |
1762 | no_cache=0 |
1763 | # Check whether --enable-gui or --disable-gui was given. | |
1764 | if test "${enable_gui+set}" = set; then | |
1765 | enableval="$enable_gui" | |
a0b9e27f | 1766 | |
10f2d63a VZ |
1767 | if test "$enableval" = yes; then |
1768 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1769 | else | |
1770 | ac_cv_use_gui='wxUSE_GUI=no' | |
1771 | fi | |
a0b9e27f | 1772 | |
10f2d63a | 1773 | else |
a0b9e27f | 1774 | |
10f2d63a VZ |
1775 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1776 | if test "x$LINE" != x ; then | |
1777 | eval "DEFAULT_$LINE" | |
1778 | else | |
1779 | no_cache=1 | |
1780 | fi | |
1781 | ||
1782 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
a0b9e27f MB |
1783 | |
1784 | fi | |
10f2d63a VZ |
1785 | |
1786 | ||
1787 | eval "$ac_cv_use_gui" | |
1788 | if test "$no_cache" != 1; then | |
1789 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1790 | fi | |
1791 | ||
1792 | if test "$wxUSE_GUI" = yes; then | |
a0b9e27f | 1793 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1794 | else |
a0b9e27f | 1795 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1796 | fi |
a0b9e27f | 1797 | |
10f2d63a | 1798 | |
b12915c1 | 1799 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1800 | |
8284b0c5 | 1801 | |
a0b9e27f | 1802 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 |
3bce6687 | 1803 | echo "configure:1804: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1804 | no_cache=0 |
1805 | # Check whether --enable-universal or --disable-universal was given. | |
1806 | if test "${enable_universal+set}" = set; then | |
1807 | enableval="$enable_universal" | |
a0b9e27f | 1808 | |
1e6feb95 VZ |
1809 | if test "$enableval" = yes; then |
1810 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1811 | else | |
1812 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1813 | fi | |
a0b9e27f | 1814 | |
1e6feb95 | 1815 | else |
a0b9e27f | 1816 | |
1e6feb95 VZ |
1817 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1818 | if test "x$LINE" != x ; then | |
1819 | eval "DEFAULT_$LINE" | |
1820 | else | |
1821 | no_cache=1 | |
1822 | fi | |
1823 | ||
1824 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
a0b9e27f MB |
1825 | |
1826 | fi | |
1e6feb95 VZ |
1827 | |
1828 | ||
1829 | eval "$ac_cv_use_universal" | |
1830 | if test "$no_cache" != 1; then | |
1831 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1832 | fi | |
1833 | ||
1834 | if test "$wxUSE_UNIVERSAL" = yes; then | |
a0b9e27f | 1835 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1836 | else |
a0b9e27f | 1837 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1838 | fi |
a0b9e27f | 1839 | |
10f2d63a VZ |
1840 | # Check whether --with-gtk or --without-gtk was given. |
1841 | if test "${with_gtk+set}" = set; then | |
1842 | withval="$with_gtk" | |
1843 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1844 | fi |
10f2d63a VZ |
1845 | |
1846 | # Check whether --with-motif or --without-motif was given. | |
1847 | if test "${with_motif+set}" = set; then | |
1848 | withval="$with_motif" | |
1849 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1850 | fi |
10f2d63a | 1851 | |
b4085ce6 GD |
1852 | # Check whether --with-mac or --without-mac was given. |
1853 | if test "${with_mac+set}" = set; then | |
1854 | withval="$with_mac" | |
1855 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
a0b9e27f | 1856 | fi |
b4085ce6 | 1857 | |
10f2d63a VZ |
1858 | # Check whether --with-wine or --without-wine was given. |
1859 | if test "${with_wine+set}" = set; then | |
1860 | withval="$with_wine" | |
1861 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1862 | fi |
10f2d63a | 1863 | |
77e13408 RL |
1864 | # Check whether --with-msw or --without-msw was given. |
1865 | if test "${with_msw+set}" = set; then | |
1866 | withval="$with_msw" | |
b4efce5e | 1867 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1868 | fi |
10f2d63a | 1869 | |
e07802fc VZ |
1870 | # Check whether --with-pm or --without-pm was given. |
1871 | if test "${with_pm+set}" = set; then | |
1872 | withval="$with_pm" | |
1873 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1874 | fi |
698dcdb6 | 1875 | |
1e6feb95 VZ |
1876 | # Check whether --with-mgl or --without-mgl was given. |
1877 | if test "${with_mgl+set}" = set; then | |
1878 | withval="$with_mgl" | |
6c657b52 | 1879 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1880 | fi |
1e6feb95 | 1881 | |
1725144d RR |
1882 | # Check whether --with-microwin or --without-microwin was given. |
1883 | if test "${with_microwin+set}" = set; then | |
1884 | withval="$with_microwin" | |
1885 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1886 | fi |
1725144d | 1887 | |
f79bd02d JS |
1888 | # Check whether --with-x11 or --without-x11 was given. |
1889 | if test "${with_x11+set}" = set; then | |
1890 | withval="$with_x11" | |
3c011993 | 1891 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1892 | fi |
10f2d63a | 1893 | |
a0b9e27f MB |
1894 | |
1895 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 | |
3bce6687 | 1896 | echo "configure:1897: checking for --enable-nanox" >&5 |
d8356fa3 | 1897 | no_cache=0 |
ba875e66 VZ |
1898 | # Check whether --enable-nanox or --disable-nanox was given. |
1899 | if test "${enable_nanox+set}" = set; then | |
1900 | enableval="$enable_nanox" | |
a0b9e27f | 1901 | |
d8356fa3 | 1902 | if test "$enableval" = yes; then |
ba875e66 | 1903 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1904 | else |
ba875e66 | 1905 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1906 | fi |
a0b9e27f | 1907 | |
d8356fa3 | 1908 | else |
a0b9e27f | 1909 | |
d8356fa3 VZ |
1910 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1911 | if test "x$LINE" != x ; then | |
1912 | eval "DEFAULT_$LINE" | |
1913 | else | |
1914 | no_cache=1 | |
1915 | fi | |
1916 | ||
ba875e66 | 1917 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
a0b9e27f MB |
1918 | |
1919 | fi | |
d8356fa3 VZ |
1920 | |
1921 | ||
ba875e66 | 1922 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1923 | if test "$no_cache" != 1; then |
ba875e66 | 1924 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1925 | fi |
1926 | ||
1927 | if test "$wxUSE_NANOX" = yes; then | |
a0b9e27f | 1928 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1929 | else |
a0b9e27f | 1930 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1931 | fi |
a0b9e27f | 1932 | |
8284b0c5 | 1933 | |
d74f4b5a | 1934 | |
a0b9e27f | 1935 | echo $ac_n "checking for --enable-gtk2""... $ac_c" 1>&6 |
3bce6687 | 1936 | echo "configure:1937: checking for --enable-gtk2" >&5 |
d74f4b5a VZ |
1937 | no_cache=0 |
1938 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
1939 | if test "${enable_gtk2+set}" = set; then |
1940 | enableval="$enable_gtk2" | |
a0b9e27f | 1941 | |
d74f4b5a VZ |
1942 | if test "$enableval" = yes; then |
1943 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
1944 | else | |
1945 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
1946 | fi | |
a0b9e27f | 1947 | |
10f2d63a | 1948 | else |
a0b9e27f | 1949 | |
d74f4b5a VZ |
1950 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
1951 | if test "x$LINE" != x ; then | |
1952 | eval "DEFAULT_$LINE" | |
1953 | else | |
1954 | no_cache=1 | |
1955 | fi | |
1956 | ||
1957 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
a0b9e27f MB |
1958 | |
1959 | fi | |
52127426 | 1960 | |
328a083c | 1961 | |
d74f4b5a VZ |
1962 | eval "$ac_cv_use_gtk2" |
1963 | if test "$no_cache" != 1; then | |
1964 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
1965 | fi | |
1966 | ||
1967 | if test "$wxUSE_GTK2" = yes; then | |
a0b9e27f | 1968 | echo "$ac_t""yes" 1>&6 |
d74f4b5a | 1969 | else |
a0b9e27f | 1970 | echo "$ac_t""no" 1>&6 |
d74f4b5a | 1971 | fi |
a0b9e27f | 1972 | |
d74f4b5a | 1973 | |
5c6fa7d2 | 1974 | |
a0b9e27f | 1975 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
3bce6687 | 1976 | echo "configure:1977: checking for --with-libpng" >&5 |
8284b0c5 | 1977 | no_cache=0 |
a0b9e27f | 1978 | # Check whether --with-libpng or --without-libpng was given. |
b12915c1 VZ |
1979 | if test "${with_libpng+set}" = set; then |
1980 | withval="$with_libpng" | |
a0b9e27f | 1981 | |
10f2d63a | 1982 | if test "$withval" = yes; then |
b12915c1 | 1983 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1984 | elif test "$withval" = no; then |
b12915c1 | 1985 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1986 | elif test "$withval" = sys; then |
1987 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1988 | elif test "$withval" = builtin; then |
1989 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1990 | else |
a0b9e27f | 1991 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1992 | fi |
a0b9e27f | 1993 | |
10f2d63a | 1994 | else |
a0b9e27f | 1995 | |
b12915c1 | 1996 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1997 | if test "x$LINE" != x ; then |
1998 | eval "DEFAULT_$LINE" | |
1999 | else | |
2000 | no_cache=1 | |
2001 | fi | |
2002 | ||
b12915c1 | 2003 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
a0b9e27f MB |
2004 | |
2005 | fi | |
10f2d63a VZ |
2006 | |
2007 | ||
b12915c1 | 2008 | eval "$ac_cv_use_libpng" |
10f2d63a | 2009 | if test "$no_cache" != 1; then |
b12915c1 | 2010 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2011 | fi |
2012 | ||
b12915c1 | 2013 | if test "$wxUSE_LIBPNG" = yes; then |
a0b9e27f | 2014 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2015 | elif test "$wxUSE_LIBPNG" = no; then |
a0b9e27f | 2016 | echo "$ac_t""no" 1>&6 |
422107f9 | 2017 | elif test "$wxUSE_LIBPNG" = sys; then |
a0b9e27f | 2018 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2019 | elif test "$wxUSE_LIBPNG" = builtin; then |
a0b9e27f | 2020 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2021 | else |
a0b9e27f | 2022 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2023 | fi |
a0b9e27f | 2024 | |
10f2d63a | 2025 | |
a0b9e27f | 2026 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
3bce6687 | 2027 | echo "configure:2028: checking for --with-libjpeg" >&5 |
10f2d63a | 2028 | no_cache=0 |
a0b9e27f | 2029 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2030 | if test "${with_libjpeg+set}" = set; then |
2031 | withval="$with_libjpeg" | |
a0b9e27f | 2032 | |
10f2d63a | 2033 | if test "$withval" = yes; then |
b12915c1 | 2034 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2035 | elif test "$withval" = no; then |
b12915c1 | 2036 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2037 | elif test "$withval" = sys; then |
2038 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2039 | elif test "$withval" = builtin; then |
2040 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2041 | else |
a0b9e27f | 2042 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2043 | fi |
a0b9e27f | 2044 | |
10f2d63a | 2045 | else |
a0b9e27f | 2046 | |
b12915c1 | 2047 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2048 | if test "x$LINE" != x ; then |
2049 | eval "DEFAULT_$LINE" | |
2050 | else | |
2051 | no_cache=1 | |
2052 | fi | |
2053 | ||
b12915c1 | 2054 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
a0b9e27f MB |
2055 | |
2056 | fi | |
10f2d63a VZ |
2057 | |
2058 | ||
b12915c1 | 2059 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2060 | if test "$no_cache" != 1; then |
b12915c1 | 2061 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2062 | fi |
2063 | ||
b12915c1 | 2064 | if test "$wxUSE_LIBJPEG" = yes; then |
a0b9e27f | 2065 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2066 | elif test "$wxUSE_LIBJPEG" = no; then |
a0b9e27f | 2067 | echo "$ac_t""no" 1>&6 |
422107f9 | 2068 | elif test "$wxUSE_LIBJPEG" = sys; then |
a0b9e27f | 2069 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2070 | elif test "$wxUSE_LIBJPEG" = builtin; then |
a0b9e27f | 2071 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2072 | else |
a0b9e27f | 2073 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2074 | fi |
a0b9e27f | 2075 | |
10f2d63a | 2076 | |
a0b9e27f | 2077 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
3bce6687 | 2078 | echo "configure:2079: checking for --with-libtiff" >&5 |
10f2d63a | 2079 | no_cache=0 |
a0b9e27f | 2080 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2081 | if test "${with_libtiff+set}" = set; then |
2082 | withval="$with_libtiff" | |
a0b9e27f | 2083 | |
10f2d63a | 2084 | if test "$withval" = yes; then |
b12915c1 | 2085 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2086 | elif test "$withval" = no; then |
b12915c1 | 2087 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2088 | elif test "$withval" = sys; then |
2089 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2090 | elif test "$withval" = builtin; then |
2091 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2092 | else |
a0b9e27f | 2093 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2094 | fi |
a0b9e27f | 2095 | |
10f2d63a | 2096 | else |
a0b9e27f | 2097 | |
b12915c1 | 2098 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2099 | if test "x$LINE" != x ; then |
2100 | eval "DEFAULT_$LINE" | |
2101 | else | |
2102 | no_cache=1 | |
2103 | fi | |
2104 | ||
b12915c1 | 2105 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
a0b9e27f MB |
2106 | |
2107 | fi | |
10f2d63a VZ |
2108 | |
2109 | ||
b12915c1 | 2110 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2111 | if test "$no_cache" != 1; then |
b12915c1 | 2112 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2113 | fi |
2114 | ||
b12915c1 | 2115 | if test "$wxUSE_LIBTIFF" = yes; then |
a0b9e27f | 2116 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2117 | elif test "$wxUSE_LIBTIFF" = no; then |
a0b9e27f | 2118 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2119 | elif test "$wxUSE_LIBTIFF" = sys; then |
a0b9e27f | 2120 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2121 | elif test "$wxUSE_LIBTIFF" = builtin; then |
a0b9e27f | 2122 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2123 | else |
a0b9e27f | 2124 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2125 | fi |
a0b9e27f | 2126 | |
10f2d63a | 2127 | |
a0b9e27f | 2128 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
3bce6687 | 2129 | echo "configure:2130: checking for --with-opengl" >&5 |
10f2d63a | 2130 | no_cache=0 |
a0b9e27f | 2131 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2132 | if test "${with_opengl+set}" = set; then |
2133 | withval="$with_opengl" | |
a0b9e27f | 2134 | |
10f2d63a | 2135 | if test "$withval" = yes; then |
b12915c1 | 2136 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2137 | else |
b12915c1 | 2138 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2139 | fi |
a0b9e27f | 2140 | |
10f2d63a | 2141 | else |
a0b9e27f | 2142 | |
b12915c1 | 2143 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2144 | if test "x$LINE" != x ; then |
2145 | eval "DEFAULT_$LINE" | |
2146 | else | |
2147 | no_cache=1 | |
2148 | fi | |
2149 | ||
b12915c1 | 2150 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
a0b9e27f MB |
2151 | |
2152 | fi | |
10f2d63a VZ |
2153 | |
2154 | ||
b12915c1 | 2155 | eval "$ac_cv_use_opengl" |
10f2d63a | 2156 | if test "$no_cache" != 1; then |
b12915c1 | 2157 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2158 | fi |
2159 | ||
b12915c1 | 2160 | if test "$wxUSE_OPENGL" = yes; then |
a0b9e27f | 2161 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2162 | else |
a0b9e27f | 2163 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2164 | fi |
a0b9e27f | 2165 | |
10f2d63a | 2166 | |
b12915c1 VZ |
2167 | fi |
2168 | ||
5c6fa7d2 | 2169 | |
a0b9e27f | 2170 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
3bce6687 | 2171 | echo "configure:2172: checking for --with-dmalloc" >&5 |
8284b0c5 | 2172 | no_cache=0 |
a0b9e27f | 2173 | # Check whether --with-dmalloc or --without-dmalloc was given. |
b12915c1 VZ |
2174 | if test "${with_dmalloc+set}" = set; then |
2175 | withval="$with_dmalloc" | |
a0b9e27f | 2176 | |
c7a2bf27 | 2177 | if test "$withval" = yes; then |
b12915c1 | 2178 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2179 | else |
b12915c1 | 2180 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2181 | fi |
a0b9e27f | 2182 | |
c7a2bf27 | 2183 | else |
a0b9e27f | 2184 | |
b12915c1 | 2185 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2186 | if test "x$LINE" != x ; then |
2187 | eval "DEFAULT_$LINE" | |
2188 | else | |
2189 | no_cache=1 | |
2190 | fi | |
2191 | ||
b12915c1 | 2192 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
a0b9e27f MB |
2193 | |
2194 | fi | |
c7a2bf27 RR |
2195 | |
2196 | ||
b12915c1 | 2197 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2198 | if test "$no_cache" != 1; then |
b12915c1 | 2199 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2200 | fi |
2201 | ||
b12915c1 | 2202 | if test "$wxUSE_DMALLOC" = yes; then |
a0b9e27f | 2203 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2204 | else |
a0b9e27f | 2205 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2206 | fi |
a0b9e27f | 2207 | |
c7a2bf27 | 2208 | |
a0b9e27f | 2209 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
3bce6687 | 2210 | echo "configure:2211: checking for --with-regex" >&5 |
3e44f09d | 2211 | no_cache=0 |
a0b9e27f | 2212 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2213 | if test "${with_regex+set}" = set; then |
2214 | withval="$with_regex" | |
a0b9e27f | 2215 | |
3e44f09d VZ |
2216 | if test "$withval" = yes; then |
2217 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2218 | elif test "$withval" = no; then | |
2219 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2220 | elif test "$withval" = sys; then | |
2221 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2222 | elif test "$withval" = builtin; then |
2223 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2224 | else |
a0b9e27f | 2225 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2226 | fi |
a0b9e27f | 2227 | |
3e44f09d | 2228 | else |
a0b9e27f | 2229 | |
3e44f09d VZ |
2230 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2231 | if test "x$LINE" != x ; then | |
2232 | eval "DEFAULT_$LINE" | |
2233 | else | |
2234 | no_cache=1 | |
2235 | fi | |
2236 | ||
2237 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
a0b9e27f MB |
2238 | |
2239 | fi | |
3e44f09d VZ |
2240 | |
2241 | ||
2242 | eval "$ac_cv_use_regex" | |
2243 | if test "$no_cache" != 1; then | |
2244 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2245 | fi | |
2246 | ||
2247 | if test "$wxUSE_REGEX" = yes; then | |
a0b9e27f | 2248 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2249 | elif test "$wxUSE_REGEX" = no; then |
a0b9e27f | 2250 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2251 | elif test "$wxUSE_REGEX" = sys; then |
a0b9e27f | 2252 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2253 | elif test "$wxUSE_REGEX" = builtin; then |
a0b9e27f | 2254 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2255 | else |
a0b9e27f | 2256 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2257 | fi |
a0b9e27f | 2258 | |
3e44f09d | 2259 | |
a0b9e27f | 2260 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
3bce6687 | 2261 | echo "configure:2262: checking for --with-zlib" >&5 |
10f2d63a | 2262 | no_cache=0 |
a0b9e27f | 2263 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2264 | if test "${with_zlib+set}" = set; then |
2265 | withval="$with_zlib" | |
a0b9e27f | 2266 | |
10f2d63a | 2267 | if test "$withval" = yes; then |
b12915c1 | 2268 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2269 | elif test "$withval" = no; then |
b12915c1 | 2270 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2271 | elif test "$withval" = sys; then |
2272 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2273 | elif test "$withval" = builtin; then |
2274 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2275 | else |
a0b9e27f | 2276 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2277 | fi |
a0b9e27f | 2278 | |
10f2d63a | 2279 | else |
a0b9e27f | 2280 | |
b12915c1 | 2281 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2282 | if test "x$LINE" != x ; then |
2283 | eval "DEFAULT_$LINE" | |
2284 | else | |
2285 | no_cache=1 | |
2286 | fi | |
2287 | ||
b12915c1 | 2288 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
a0b9e27f MB |
2289 | |
2290 | fi | |
10f2d63a VZ |
2291 | |
2292 | ||
b12915c1 | 2293 | eval "$ac_cv_use_zlib" |
10f2d63a | 2294 | if test "$no_cache" != 1; then |
b12915c1 | 2295 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2296 | fi |
2297 | ||
b12915c1 | 2298 | if test "$wxUSE_ZLIB" = yes; then |
a0b9e27f | 2299 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2300 | elif test "$wxUSE_ZLIB" = no; then |
a0b9e27f | 2301 | echo "$ac_t""no" 1>&6 |
422107f9 | 2302 | elif test "$wxUSE_ZLIB" = sys; then |
a0b9e27f | 2303 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2304 | elif test "$wxUSE_ZLIB" = builtin; then |
a0b9e27f | 2305 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2306 | else |
a0b9e27f | 2307 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2308 | fi |
a0b9e27f | 2309 | |
10f2d63a | 2310 | |
a0b9e27f | 2311 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
3bce6687 | 2312 | echo "configure:2313: checking for --with-odbc" >&5 |
10f2d63a | 2313 | no_cache=0 |
a0b9e27f | 2314 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2315 | if test "${with_odbc+set}" = set; then |
2316 | withval="$with_odbc" | |
a0b9e27f | 2317 | |
10f2d63a VZ |
2318 | if test "$withval" = yes; then |
2319 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2320 | else | |
2321 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2322 | fi | |
a0b9e27f | 2323 | |
10f2d63a | 2324 | else |
a0b9e27f | 2325 | |
10f2d63a VZ |
2326 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2327 | if test "x$LINE" != x ; then | |
2328 | eval "DEFAULT_$LINE" | |
2329 | else | |
2330 | no_cache=1 | |
2331 | fi | |
2332 | ||
2333 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
a0b9e27f MB |
2334 | |
2335 | fi | |
10f2d63a VZ |
2336 | |
2337 | ||
2338 | eval "$ac_cv_use_odbc" | |
2339 | if test "$no_cache" != 1; then | |
2340 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2341 | fi | |
2342 | ||
2343 | if test "$wxUSE_ODBC" = yes; then | |
a0b9e27f | 2344 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2345 | else |
a0b9e27f | 2346 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2347 | fi |
a0b9e27f | 2348 | |
52127426 | 2349 | |
8284b0c5 MB |
2350 | |
2351 | ||
a0b9e27f | 2352 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
3bce6687 | 2353 | echo "configure:2354: checking for --enable-shared" >&5 |
10f2d63a VZ |
2354 | no_cache=0 |
2355 | # Check whether --enable-shared or --disable-shared was given. | |
2356 | if test "${enable_shared+set}" = set; then | |
2357 | enableval="$enable_shared" | |
a0b9e27f | 2358 | |
10f2d63a VZ |
2359 | if test "$enableval" = yes; then |
2360 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2361 | else | |
2362 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2363 | fi | |
a0b9e27f | 2364 | |
10f2d63a | 2365 | else |
a0b9e27f | 2366 | |
10f2d63a VZ |
2367 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2368 | if test "x$LINE" != x ; then | |
2369 | eval "DEFAULT_$LINE" | |
2370 | else | |
2371 | no_cache=1 | |
2372 | fi | |
2373 | ||
2374 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
a0b9e27f MB |
2375 | |
2376 | fi | |
10f2d63a VZ |
2377 | |
2378 | ||
2379 | eval "$ac_cv_use_shared" | |
2380 | if test "$no_cache" != 1; then | |
2381 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2382 | fi | |
2383 | ||
2384 | if test "$wxUSE_SHARED" = yes; then | |
a0b9e27f | 2385 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2386 | else |
a0b9e27f | 2387 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2388 | fi |
a0b9e27f | 2389 | |
10f2d63a | 2390 | |
a0b9e27f | 2391 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
3bce6687 | 2392 | echo "configure:2393: checking for --enable-soname" >&5 |
00cf1208 | 2393 | no_cache=0 |
3a922bb4 RL |
2394 | # Check whether --enable-soname or --disable-soname was given. |
2395 | if test "${enable_soname+set}" = set; then | |
2396 | enableval="$enable_soname" | |
a0b9e27f | 2397 | |
00cf1208 | 2398 | if test "$enableval" = yes; then |
3a922bb4 | 2399 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2400 | else |
3a922bb4 | 2401 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2402 | fi |
a0b9e27f | 2403 | |
00cf1208 | 2404 | else |
a0b9e27f | 2405 | |
3a922bb4 | 2406 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2407 | if test "x$LINE" != x ; then |
2408 | eval "DEFAULT_$LINE" | |
2409 | else | |
2410 | no_cache=1 | |
2411 | fi | |
2412 | ||
3a922bb4 | 2413 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
a0b9e27f MB |
2414 | |
2415 | fi | |
00cf1208 RR |
2416 | |
2417 | ||
3a922bb4 | 2418 | eval "$ac_cv_use_soname" |
00cf1208 | 2419 | if test "$no_cache" != 1; then |
3a922bb4 | 2420 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2421 | fi |
2422 | ||
3a922bb4 | 2423 | if test "$wxUSE_SONAME" = yes; then |
a0b9e27f | 2424 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2425 | else |
a0b9e27f | 2426 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2427 | fi |
a0b9e27f | 2428 | |
00cf1208 | 2429 | |
a0b9e27f | 2430 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
3bce6687 | 2431 | echo "configure:2432: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2432 | no_cache=0 |
2433 | # Check whether --enable-optimise or --disable-optimise was given. | |
2434 | if test "${enable_optimise+set}" = set; then | |
2435 | enableval="$enable_optimise" | |
a0b9e27f | 2436 | |
10f2d63a VZ |
2437 | if test "$enableval" = yes; then |
2438 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2439 | else | |
2440 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2441 | fi | |
a0b9e27f | 2442 | |
10f2d63a | 2443 | else |
a0b9e27f | 2444 | |
10f2d63a VZ |
2445 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2446 | if test "x$LINE" != x ; then | |
2447 | eval "DEFAULT_$LINE" | |
2448 | else | |
2449 | no_cache=1 | |
2450 | fi | |
2451 | ||
2452 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
a0b9e27f MB |
2453 | |
2454 | fi | |
10f2d63a VZ |
2455 | |
2456 | ||
2457 | eval "$ac_cv_use_optimise" | |
2458 | if test "$no_cache" != 1; then | |
2459 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2460 | fi | |
2461 | ||
2462 | if test "$wxUSE_OPTIMISE" = yes; then | |
a0b9e27f | 2463 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2464 | else |
a0b9e27f | 2465 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2466 | fi |
a0b9e27f | 2467 | |
10f2d63a | 2468 | |
a0b9e27f | 2469 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
3bce6687 | 2470 | echo "configure:2471: checking for --enable-debug" >&5 |
10f2d63a VZ |
2471 | no_cache=0 |
2472 | # Check whether --enable-debug or --disable-debug was given. | |
2473 | if test "${enable_debug+set}" = set; then | |
2474 | enableval="$enable_debug" | |
a0b9e27f | 2475 | |
10f2d63a VZ |
2476 | if test "$enableval" = yes; then |
2477 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2478 | else | |
2479 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2480 | fi | |
a0b9e27f | 2481 | |
10f2d63a | 2482 | else |
a0b9e27f | 2483 | |
10f2d63a VZ |
2484 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2485 | if test "x$LINE" != x ; then | |
2486 | eval "DEFAULT_$LINE" | |
2487 | else | |
2488 | no_cache=1 | |
2489 | fi | |
2490 | ||
2491 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
a0b9e27f MB |
2492 | |
2493 | fi | |
10f2d63a VZ |
2494 | |
2495 | ||
2496 | eval "$ac_cv_use_debug" | |
2497 | if test "$no_cache" != 1; then | |
2498 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2499 | fi | |
2500 | ||
2501 | if test "$wxUSE_DEBUG" = yes; then | |
a0b9e27f | 2502 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2503 | else |
a0b9e27f | 2504 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2505 | fi |
a0b9e27f | 2506 | |
52127426 | 2507 | |
8284b0c5 | 2508 | |
a0b9e27f | 2509 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 |
3bce6687 | 2510 | echo "configure:2511: checking for --enable-precomp" >&5 |
683dccda GD |
2511 | no_cache=0 |
2512 | # Check whether --enable-precomp or --disable-precomp was given. | |
2513 | if test "${enable_precomp+set}" = set; then | |
2514 | enableval="$enable_precomp" | |
a0b9e27f | 2515 | |
683dccda GD |
2516 | if test "$enableval" = yes; then |
2517 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2518 | else | |
2519 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2520 | fi | |
a0b9e27f | 2521 | |
683dccda | 2522 | else |
a0b9e27f | 2523 | |
683dccda GD |
2524 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2525 | if test "x$LINE" != x ; then | |
2526 | eval "DEFAULT_$LINE" | |
2527 | else | |
2528 | no_cache=1 | |
2529 | fi | |
2530 | ||
2531 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
a0b9e27f MB |
2532 | |
2533 | fi | |
683dccda GD |
2534 | |
2535 | ||
2536 | eval "$ac_cv_use_precomp" | |
2537 | if test "$no_cache" != 1; then | |
2538 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2539 | fi | |
2540 | ||
2541 | if test "$wxUSE_PRECOMP" = yes; then | |
a0b9e27f | 2542 | echo "$ac_t""yes" 1>&6 |
683dccda | 2543 | else |
a0b9e27f | 2544 | echo "$ac_t""no" 1>&6 |
683dccda | 2545 | fi |
a0b9e27f | 2546 | |
683dccda | 2547 | |
10f2d63a VZ |
2548 | if test "$wxUSE_DEBUG" = "yes"; then |
2549 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2550 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2551 | elif test "$wxUSE_DEBUG" = "no"; then | |
2552 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2553 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2554 | fi | |
2555 | ||
8284b0c5 | 2556 | |
a0b9e27f | 2557 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 |
3bce6687 | 2558 | echo "configure:2559: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2559 | no_cache=0 |
2560 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2561 | if test "${enable_debug_flag+set}" = set; then | |
2562 | enableval="$enable_debug_flag" | |
a0b9e27f | 2563 | |
10f2d63a VZ |
2564 | if test "$enableval" = yes; then |
2565 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2566 | else | |
2567 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2568 | fi | |
a0b9e27f | 2569 | |
10f2d63a | 2570 | else |
a0b9e27f | 2571 | |
10f2d63a VZ |
2572 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2573 | if test "x$LINE" != x ; then | |
2574 | eval "DEFAULT_$LINE" | |
2575 | else | |
2576 | no_cache=1 | |
2577 | fi | |
2578 | ||
2579 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
a0b9e27f MB |
2580 | |
2581 | fi | |
10f2d63a VZ |
2582 | |
2583 | ||
2584 | eval "$ac_cv_use_debug_flag" | |
2585 | if test "$no_cache" != 1; then | |
2586 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2587 | fi | |
2588 | ||
2589 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
a0b9e27f | 2590 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2591 | else |
a0b9e27f | 2592 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2593 | fi |
a0b9e27f | 2594 | |
10f2d63a | 2595 | |
a0b9e27f | 2596 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
3bce6687 | 2597 | echo "configure:2598: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2598 | no_cache=0 |
2599 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2600 | if test "${enable_debug_info+set}" = set; then | |
2601 | enableval="$enable_debug_info" | |
a0b9e27f | 2602 | |
10f2d63a VZ |
2603 | if test "$enableval" = yes; then |
2604 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2605 | else | |
2606 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2607 | fi | |
a0b9e27f | 2608 | |
10f2d63a | 2609 | else |
a0b9e27f | 2610 | |
10f2d63a VZ |
2611 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2612 | if test "x$LINE" != x ; then | |
2613 | eval "DEFAULT_$LINE" | |
2614 | else | |
2615 | no_cache=1 | |
2616 | fi | |
2617 | ||
2618 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
a0b9e27f MB |
2619 | |
2620 | fi | |
10f2d63a VZ |
2621 | |
2622 | ||
2623 | eval "$ac_cv_use_debug_info" | |
2624 | if test "$no_cache" != 1; then | |
2625 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2626 | fi | |
2627 | ||
2628 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
a0b9e27f | 2629 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2630 | else |
a0b9e27f | 2631 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2632 | fi |
a0b9e27f | 2633 | |
10f2d63a | 2634 | |
a0b9e27f | 2635 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
3bce6687 | 2636 | echo "configure:2637: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2637 | no_cache=0 |
2638 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2639 | if test "${enable_debug_gdb+set}" = set; then | |
2640 | enableval="$enable_debug_gdb" | |
a0b9e27f | 2641 | |
10f2d63a VZ |
2642 | if test "$enableval" = yes; then |
2643 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2644 | else | |
2645 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2646 | fi | |
a0b9e27f | 2647 | |
10f2d63a | 2648 | else |
a0b9e27f | 2649 | |
10f2d63a VZ |
2650 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2651 | if test "x$LINE" != x ; then | |
2652 | eval "DEFAULT_$LINE" | |
2653 | else | |
2654 | no_cache=1 | |
2655 | fi | |
2656 | ||
2657 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
a0b9e27f MB |
2658 | |
2659 | fi | |
10f2d63a VZ |
2660 | |
2661 | ||
2662 | eval "$ac_cv_use_debug_gdb" | |
2663 | if test "$no_cache" != 1; then | |
2664 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2665 | fi | |
2666 | ||
2667 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
a0b9e27f | 2668 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2669 | else |
a0b9e27f | 2670 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2671 | fi |
a0b9e27f | 2672 | |
10f2d63a | 2673 | |
a0b9e27f | 2674 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
3bce6687 | 2675 | echo "configure:2676: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2676 | no_cache=0 |
2677 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2678 | if test "${enable_debug_cntxt+set}" = set; then | |
2679 | enableval="$enable_debug_cntxt" | |
a0b9e27f | 2680 | |
10f2d63a VZ |
2681 | if test "$enableval" = yes; then |
2682 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2683 | else | |
2684 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2685 | fi | |
a0b9e27f | 2686 | |
10f2d63a | 2687 | else |
a0b9e27f | 2688 | |
10f2d63a VZ |
2689 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2690 | if test "x$LINE" != x ; then | |
2691 | eval "DEFAULT_$LINE" | |
2692 | else | |
2693 | no_cache=1 | |
2694 | fi | |
2695 | ||
2696 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
a0b9e27f MB |
2697 | |
2698 | fi | |
10f2d63a VZ |
2699 | |
2700 | ||
2701 | eval "$ac_cv_use_debug_cntxt" | |
2702 | if test "$no_cache" != 1; then | |
2703 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2704 | fi | |
2705 | ||
2706 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
a0b9e27f | 2707 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2708 | else |
a0b9e27f | 2709 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2710 | fi |
a0b9e27f | 2711 | |
10f2d63a | 2712 | |
a0b9e27f | 2713 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
3bce6687 | 2714 | echo "configure:2715: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2715 | no_cache=0 |
2716 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2717 | if test "${enable_mem_tracing+set}" = set; then | |
2718 | enableval="$enable_mem_tracing" | |
a0b9e27f | 2719 | |
10f2d63a VZ |
2720 | if test "$enableval" = yes; then |
2721 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2722 | else | |
2723 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2724 | fi | |
a0b9e27f | 2725 | |
10f2d63a | 2726 | else |
a0b9e27f | 2727 | |
10f2d63a VZ |
2728 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2729 | if test "x$LINE" != x ; then | |
2730 | eval "DEFAULT_$LINE" | |
2731 | else | |
2732 | no_cache=1 | |
2733 | fi | |
2734 | ||
2735 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
a0b9e27f MB |
2736 | |
2737 | fi | |
10f2d63a VZ |
2738 | |
2739 | ||
2740 | eval "$ac_cv_use_mem_tracing" | |
2741 | if test "$no_cache" != 1; then | |
2742 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2743 | fi | |
2744 | ||
2745 | if test "$wxUSE_MEM_TRACING" = yes; then | |
a0b9e27f | 2746 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2747 | else |
a0b9e27f | 2748 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2749 | fi |
a0b9e27f | 2750 | |
10f2d63a | 2751 | |
a0b9e27f | 2752 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
3bce6687 | 2753 | echo "configure:2754: checking for --enable-profile" >&5 |
10f2d63a VZ |
2754 | no_cache=0 |
2755 | # Check whether --enable-profile or --disable-profile was given. | |
2756 | if test "${enable_profile+set}" = set; then | |
2757 | enableval="$enable_profile" | |
a0b9e27f | 2758 | |
10f2d63a VZ |
2759 | if test "$enableval" = yes; then |
2760 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2761 | else | |
2762 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2763 | fi | |
a0b9e27f | 2764 | |
10f2d63a | 2765 | else |
a0b9e27f | 2766 | |
10f2d63a VZ |
2767 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2768 | if test "x$LINE" != x ; then | |
2769 | eval "DEFAULT_$LINE" | |
2770 | else | |
2771 | no_cache=1 | |
2772 | fi | |
2773 | ||
2774 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
a0b9e27f MB |
2775 | |
2776 | fi | |
10f2d63a VZ |
2777 | |
2778 | ||
2779 | eval "$ac_cv_use_profile" | |
2780 | if test "$no_cache" != 1; then | |
2781 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2782 | fi | |
2783 | ||
2784 | if test "$wxUSE_PROFILE" = yes; then | |
a0b9e27f | 2785 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2786 | else |
a0b9e27f | 2787 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2788 | fi |
a0b9e27f | 2789 | |
10f2d63a | 2790 | |
a0b9e27f | 2791 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
3bce6687 | 2792 | echo "configure:2793: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2793 | no_cache=0 |
2794 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2795 | if test "${enable_no_rtti+set}" = set; then | |
2796 | enableval="$enable_no_rtti" | |
a0b9e27f | 2797 | |
10f2d63a VZ |
2798 | if test "$enableval" = yes; then |
2799 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2800 | else | |
2801 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2802 | fi | |
a0b9e27f | 2803 | |
10f2d63a | 2804 | else |
a0b9e27f | 2805 | |
10f2d63a VZ |
2806 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2807 | if test "x$LINE" != x ; then | |
2808 | eval "DEFAULT_$LINE" | |
2809 | else | |
2810 | no_cache=1 | |
2811 | fi | |
2812 | ||
2813 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
a0b9e27f MB |
2814 | |
2815 | fi | |
10f2d63a VZ |
2816 | |
2817 | ||
2818 | eval "$ac_cv_use_no_rtti" | |
2819 | if test "$no_cache" != 1; then | |
2820 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2821 | fi | |
2822 | ||
2823 | if test "$wxUSE_NO_RTTI" = yes; then | |
a0b9e27f | 2824 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2825 | else |
a0b9e27f | 2826 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2827 | fi |
a0b9e27f | 2828 | |
10f2d63a | 2829 | |
a0b9e27f | 2830 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
3bce6687 | 2831 | echo "configure:2832: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2832 | no_cache=0 |
2833 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2834 | if test "${enable_no_exceptions+set}" = set; then | |
2835 | enableval="$enable_no_exceptions" | |
a0b9e27f | 2836 | |
10f2d63a VZ |
2837 | if test "$enableval" = yes; then |
2838 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2839 | else | |
2840 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2841 | fi | |
a0b9e27f | 2842 | |
10f2d63a | 2843 | else |
a0b9e27f | 2844 | |
10f2d63a VZ |
2845 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2846 | if test "x$LINE" != x ; then | |
2847 | eval "DEFAULT_$LINE" | |
2848 | else | |
2849 | no_cache=1 | |
2850 | fi | |
2851 | ||
2852 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
a0b9e27f MB |
2853 | |
2854 | fi | |
10f2d63a VZ |
2855 | |
2856 | ||
2857 | eval "$ac_cv_use_no_exceptions" | |
2858 | if test "$no_cache" != 1; then | |
2859 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2860 | fi | |
2861 | ||
2862 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
a0b9e27f | 2863 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2864 | else |
a0b9e27f | 2865 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2866 | fi |
a0b9e27f | 2867 | |
10f2d63a | 2868 | |
a0b9e27f | 2869 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
3bce6687 | 2870 | echo "configure:2871: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2871 | no_cache=0 |
2872 | # Check whether --enable-permissive or --disable-permissive was given. | |
2873 | if test "${enable_permissive+set}" = set; then | |
2874 | enableval="$enable_permissive" | |
a0b9e27f | 2875 | |
10f2d63a VZ |
2876 | if test "$enableval" = yes; then |
2877 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2878 | else | |
2879 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2880 | fi | |
a0b9e27f | 2881 | |
10f2d63a | 2882 | else |
a0b9e27f | 2883 | |
10f2d63a VZ |
2884 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2885 | if test "x$LINE" != x ; then | |
2886 | eval "DEFAULT_$LINE" | |
2887 | else | |
2888 | no_cache=1 | |
2889 | fi | |
2890 | ||
2891 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
a0b9e27f MB |
2892 | |
2893 | fi | |
10f2d63a VZ |
2894 | |
2895 | ||
2896 | eval "$ac_cv_use_permissive" | |
2897 | if test "$no_cache" != 1; then | |
2898 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2899 | fi | |
2900 | ||
2901 | if test "$wxUSE_PERMISSIVE" = yes; then | |
a0b9e27f | 2902 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2903 | else |
a0b9e27f | 2904 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2905 | fi |
a0b9e27f | 2906 | |
10f2d63a | 2907 | |
a0b9e27f | 2908 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
3bce6687 | 2909 | echo "configure:2910: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2910 | no_cache=0 |
2911 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2912 | if test "${enable_no_deps+set}" = set; then | |
2913 | enableval="$enable_no_deps" | |
a0b9e27f | 2914 | |
10f2d63a VZ |
2915 | if test "$enableval" = yes; then |
2916 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2917 | else | |
2918 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2919 | fi | |
a0b9e27f | 2920 | |
10f2d63a | 2921 | else |
a0b9e27f | 2922 | |
10f2d63a VZ |
2923 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2924 | if test "x$LINE" != x ; then | |
2925 | eval "DEFAULT_$LINE" | |
2926 | else | |
2927 | no_cache=1 | |
2928 | fi | |
2929 | ||
2930 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
a0b9e27f MB |
2931 | |
2932 | fi | |
10f2d63a VZ |
2933 | |
2934 | ||
2935 | eval "$ac_cv_use_no_deps" | |
2936 | if test "$no_cache" != 1; then | |
2937 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2938 | fi | |
2939 | ||
2940 | if test "$wxUSE_NO_DEPS" = yes; then | |
a0b9e27f | 2941 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2942 | else |
a0b9e27f | 2943 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2944 | fi |
a0b9e27f | 2945 | |
52127426 | 2946 | |
8284b0c5 | 2947 | |
a0b9e27f | 2948 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
3bce6687 | 2949 | echo "configure:2950: checking for --enable-compat20" >&5 |
54276ccf VZ |
2950 | no_cache=0 |
2951 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2952 | if test "${enable_compat20+set}" = set; then | |
2953 | enableval="$enable_compat20" | |
a0b9e27f | 2954 | |
54276ccf VZ |
2955 | if test "$enableval" = yes; then |
2956 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2957 | else | |
2958 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2959 | fi | |
a0b9e27f | 2960 | |
54276ccf | 2961 | else |
a0b9e27f | 2962 | |
54276ccf VZ |
2963 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
2964 | if test "x$LINE" != x ; then | |
2965 | eval "DEFAULT_$LINE" | |
2966 | else | |
2967 | no_cache=1 | |
2968 | fi | |
2969 | ||
2970 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
a0b9e27f MB |
2971 | |
2972 | fi | |
54276ccf VZ |
2973 | |
2974 | ||
2975 | eval "$ac_cv_use_compat20" | |
2976 | if test "$no_cache" != 1; then | |
2977 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2978 | fi | |
2979 | ||
2980 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
a0b9e27f | 2981 | echo "$ac_t""yes" 1>&6 |
54276ccf | 2982 | else |
a0b9e27f | 2983 | echo "$ac_t""no" 1>&6 |
54276ccf | 2984 | fi |
a0b9e27f | 2985 | |
54276ccf | 2986 | |
a0b9e27f | 2987 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 |
3bce6687 | 2988 | echo "configure:2989: checking for --enable-compat22" >&5 |
54276ccf VZ |
2989 | no_cache=0 |
2990 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2991 | if test "${enable_compat22+set}" = set; then | |
2992 | enableval="$enable_compat22" | |
a0b9e27f | 2993 | |
54276ccf VZ |
2994 | if test "$enableval" = yes; then |
2995 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2996 | else | |
2997 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2998 | fi | |
a0b9e27f | 2999 | |
54276ccf | 3000 | else |
a0b9e27f | 3001 | |
54276ccf VZ |
3002 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3003 | if test "x$LINE" != x ; then | |
3004 | eval "DEFAULT_$LINE" | |
3005 | else | |
3006 | no_cache=1 | |
3007 | fi | |
3008 | ||
3009 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
a0b9e27f MB |
3010 | |
3011 | fi | |
54276ccf VZ |
3012 | |
3013 | ||
3014 | eval "$ac_cv_use_compat22" | |
3015 | if test "$no_cache" != 1; then | |
3016 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3017 | fi | |
3018 | ||
3019 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
a0b9e27f | 3020 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3021 | else |
a0b9e27f | 3022 | echo "$ac_t""no" 1>&6 |
54276ccf | 3023 | fi |
a0b9e27f | 3024 | |
54276ccf | 3025 | |
3bd8fb5f RD |
3026 | # Check whether --enable-rpath or --disable-rpath was given. |
3027 | if test "${enable_rpath+set}" = set; then | |
3028 | enableval="$enable_rpath" | |
3029 | wxRPATH_DIR="$enableval" | |
a0b9e27f MB |
3030 | fi |
3031 | ||
3bd8fb5f RD |
3032 | |
3033 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3034 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3035 | fi | |
3036 | ||
8284b0c5 MB |
3037 | |
3038 | ||
3039 | ||
a0b9e27f | 3040 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 |
3bce6687 | 3041 | echo "configure:3042: checking for --enable-intl" >&5 |
10f2d63a VZ |
3042 | no_cache=0 |
3043 | # Check whether --enable-intl or --disable-intl was given. | |
3044 | if test "${enable_intl+set}" = set; then | |
3045 | enableval="$enable_intl" | |
a0b9e27f | 3046 | |
10f2d63a VZ |
3047 | if test "$enableval" = yes; then |
3048 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3049 | else | |
3050 | ac_cv_use_intl='wxUSE_INTL=no' | |
3051 | fi | |
a0b9e27f | 3052 | |
10f2d63a | 3053 | else |
a0b9e27f | 3054 | |
10f2d63a VZ |
3055 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3056 | if test "x$LINE" != x ; then | |
3057 | eval "DEFAULT_$LINE" | |
3058 | else | |
3059 | no_cache=1 | |
3060 | fi | |
3061 | ||
3062 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
a0b9e27f MB |
3063 | |
3064 | fi | |
10f2d63a VZ |
3065 | |
3066 | ||
3067 | eval "$ac_cv_use_intl" | |
3068 | if test "$no_cache" != 1; then | |
3069 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3070 | fi | |
3071 | ||
3072 | if test "$wxUSE_INTL" = yes; then | |
a0b9e27f | 3073 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3074 | else |
a0b9e27f | 3075 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3076 | fi |
a0b9e27f | 3077 | |
10f2d63a | 3078 | |
a0b9e27f | 3079 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
3bce6687 | 3080 | echo "configure:3081: checking for --enable-config" >&5 |
10f2d63a VZ |
3081 | no_cache=0 |
3082 | # Check whether --enable-config or --disable-config was given. | |
3083 | if test "${enable_config+set}" = set; then | |
3084 | enableval="$enable_config" | |
a0b9e27f | 3085 | |
10f2d63a VZ |
3086 | if test "$enableval" = yes; then |
3087 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3088 | else | |
3089 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3090 | fi | |
a0b9e27f | 3091 | |
10f2d63a | 3092 | else |
a0b9e27f | 3093 | |
10f2d63a VZ |
3094 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3095 | if test "x$LINE" != x ; then | |
3096 | eval "DEFAULT_$LINE" | |
3097 | else | |
3098 | no_cache=1 | |
3099 | fi | |
3100 | ||
3101 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
a0b9e27f MB |
3102 | |
3103 | fi | |
10f2d63a VZ |
3104 | |
3105 | ||
3106 | eval "$ac_cv_use_config" | |
3107 | if test "$no_cache" != 1; then | |
3108 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3109 | fi | |
3110 | ||
3111 | if test "$wxUSE_CONFIG" = yes; then | |
a0b9e27f | 3112 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3113 | else |
a0b9e27f | 3114 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3115 | fi |
a0b9e27f | 3116 | |
52127426 | 3117 | |
8284b0c5 | 3118 | |
a0b9e27f | 3119 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
3bce6687 | 3120 | echo "configure:3121: checking for --enable-protocols" >&5 |
a1622950 VZ |
3121 | no_cache=0 |
3122 | # Check whether --enable-protocols or --disable-protocols was given. | |
3123 | if test "${enable_protocols+set}" = set; then | |
3124 | enableval="$enable_protocols" | |
a0b9e27f | 3125 | |
a1622950 VZ |
3126 | if test "$enableval" = yes; then |
3127 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3128 | else | |
3129 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3130 | fi | |
a0b9e27f | 3131 | |
a1622950 | 3132 | else |
a0b9e27f | 3133 | |
a1622950 VZ |
3134 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3135 | if test "x$LINE" != x ; then | |
3136 | eval "DEFAULT_$LINE" | |
3137 | else | |
3138 | no_cache=1 | |
3139 | fi | |
3140 | ||
3141 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
3142 | |
3143 | fi | |
a1622950 VZ |
3144 | |
3145 | ||
3146 | eval "$ac_cv_use_protocols" | |
3147 | if test "$no_cache" != 1; then | |
3148 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3149 | fi | |
3150 | ||
3151 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 3152 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3153 | else |
a0b9e27f | 3154 | echo "$ac_t""no" 1>&6 |
a1622950 | 3155 | fi |
a0b9e27f | 3156 | |
a1622950 | 3157 | |
a0b9e27f | 3158 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 |
3bce6687 | 3159 | echo "configure:3160: checking for --enable-ftp" >&5 |
a1622950 VZ |
3160 | no_cache=0 |
3161 | # Check whether --enable-ftp or --disable-ftp was given. | |
3162 | if test "${enable_ftp+set}" = set; then | |
3163 | enableval="$enable_ftp" | |
a0b9e27f | 3164 | |
a1622950 VZ |
3165 | if test "$enableval" = yes; then |
3166 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3167 | else | |
3168 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3169 | fi | |
a0b9e27f | 3170 | |
a1622950 | 3171 | else |
a0b9e27f | 3172 | |
a1622950 VZ |
3173 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3174 | if test "x$LINE" != x ; then | |
3175 | eval "DEFAULT_$LINE" | |
3176 | else | |
3177 | no_cache=1 | |
3178 | fi | |
3179 | ||
3180 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
3181 | |
3182 | fi | |
a1622950 VZ |
3183 | |
3184 | ||
3185 | eval "$ac_cv_use_ftp" | |
3186 | if test "$no_cache" != 1; then | |
3187 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3188 | fi | |
3189 | ||
3190 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 3191 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3192 | else |
a0b9e27f | 3193 | echo "$ac_t""no" 1>&6 |
a1622950 | 3194 | fi |
a0b9e27f | 3195 | |
a1622950 | 3196 | |
a0b9e27f | 3197 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 |
3bce6687 | 3198 | echo "configure:3199: checking for --enable-http" >&5 |
a1622950 VZ |
3199 | no_cache=0 |
3200 | # Check whether --enable-http or --disable-http was given. | |
3201 | if test "${enable_http+set}" = set; then | |
3202 | enableval="$enable_http" | |
a0b9e27f | 3203 | |
a1622950 VZ |
3204 | if test "$enableval" = yes; then |
3205 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3206 | else | |
3207 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3208 | fi | |
a0b9e27f | 3209 | |
a1622950 | 3210 | else |
a0b9e27f | 3211 | |
a1622950 VZ |
3212 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3213 | if test "x$LINE" != x ; then | |
3214 | eval "DEFAULT_$LINE" | |
3215 | else | |
3216 | no_cache=1 | |
3217 | fi | |
3218 | ||
3219 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
3220 | |
3221 | fi | |
a1622950 VZ |
3222 | |
3223 | ||
3224 | eval "$ac_cv_use_http" | |
3225 | if test "$no_cache" != 1; then | |
3226 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3227 | fi | |
3228 | ||
3229 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 3230 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3231 | else |
a0b9e27f | 3232 | echo "$ac_t""no" 1>&6 |
a1622950 | 3233 | fi |
a0b9e27f | 3234 | |
a1622950 | 3235 | |
a0b9e27f | 3236 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 |
3bce6687 | 3237 | echo "configure:3238: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3238 | no_cache=0 |
3239 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3240 | if test "${enable_fileproto+set}" = set; then | |
3241 | enableval="$enable_fileproto" | |
a0b9e27f | 3242 | |
a1622950 VZ |
3243 | if test "$enableval" = yes; then |
3244 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3245 | else | |
3246 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3247 | fi | |
a0b9e27f | 3248 | |
a1622950 | 3249 | else |
a0b9e27f | 3250 | |
a1622950 VZ |
3251 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3252 | if test "x$LINE" != x ; then | |
3253 | eval "DEFAULT_$LINE" | |
3254 | else | |
3255 | no_cache=1 | |
3256 | fi | |
3257 | ||
3258 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
3259 | |
3260 | fi | |
a1622950 VZ |
3261 | |
3262 | ||
3263 | eval "$ac_cv_use_fileproto" | |
3264 | if test "$no_cache" != 1; then | |
3265 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3266 | fi | |
3267 | ||
3268 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 3269 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3270 | else |
a0b9e27f | 3271 | echo "$ac_t""no" 1>&6 |
a1622950 | 3272 | fi |
a0b9e27f | 3273 | |
a1622950 | 3274 | |
a0b9e27f | 3275 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
3bce6687 | 3276 | echo "configure:3277: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3277 | no_cache=0 |
3278 | # Check whether --enable-sockets or --disable-sockets was given. | |
3279 | if test "${enable_sockets+set}" = set; then | |
3280 | enableval="$enable_sockets" | |
a0b9e27f | 3281 | |
10f2d63a VZ |
3282 | if test "$enableval" = yes; then |
3283 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3284 | else | |
3285 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3286 | fi | |
a0b9e27f | 3287 | |
10f2d63a | 3288 | else |
a0b9e27f | 3289 | |
10f2d63a VZ |
3290 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3291 | if test "x$LINE" != x ; then | |
3292 | eval "DEFAULT_$LINE" | |
3293 | else | |
3294 | no_cache=1 | |
3295 | fi | |
3296 | ||
3297 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
a0b9e27f MB |
3298 | |
3299 | fi | |
10f2d63a VZ |
3300 | |
3301 | ||
3302 | eval "$ac_cv_use_sockets" | |
3303 | if test "$no_cache" != 1; then | |
3304 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3305 | fi | |
3306 | ||
3307 | if test "$wxUSE_SOCKETS" = yes; then | |
a0b9e27f | 3308 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3309 | else |
a0b9e27f | 3310 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3311 | fi |
a0b9e27f | 3312 | |
8284b0c5 | 3313 | |
3bce6687 JS |
3314 | echo $ac_n "checking for --enable-ole""... $ac_c" 1>&6 |
3315 | echo "configure:3316: checking for --enable-ole" >&5 | |
3316 | no_cache=0 | |
3317 | # Check whether --enable-ole or --disable-ole was given. | |
3318 | if test "${enable_ole+set}" = set; then | |
3319 | enableval="$enable_ole" | |
3320 | ||
3321 | if test "$enableval" = yes; then | |
3322 | ac_cv_use_ole='wxUSE_OLE=yes' | |
3323 | else | |
3324 | ac_cv_use_ole='wxUSE_OLE=no' | |
3325 | fi | |
3326 | ||
3327 | else | |
3328 | ||
3329 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
3330 | if test "x$LINE" != x ; then | |
3331 | eval "DEFAULT_$LINE" | |
3332 | else | |
3333 | no_cache=1 | |
3334 | fi | |
3335 | ||
3336 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3337 | ||
3338 | fi | |
3339 | ||
3340 | ||
3341 | eval "$ac_cv_use_ole" | |
3342 | if test "$no_cache" != 1; then | |
3343 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
3344 | fi | |
3345 | ||
3346 | if test "$wxUSE_OLE" = yes; then | |
3347 | echo "$ac_t""yes" 1>&6 | |
3348 | else | |
3349 | echo "$ac_t""no" 1>&6 | |
3350 | fi | |
3351 | ||
3352 | ||
3353 | echo $ac_n "checking for --enable-dataobj""... $ac_c" 1>&6 | |
3354 | echo "configure:3355: checking for --enable-dataobj" >&5 | |
3355 | no_cache=0 | |
3356 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
3357 | if test "${enable_dataobj+set}" = set; then | |
3358 | enableval="$enable_dataobj" | |
3359 | ||
3360 | if test "$enableval" = yes; then | |
3361 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
3362 | else | |
3363 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
3364 | fi | |
3365 | ||
3366 | else | |
3367 | ||
3368 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
3369 | if test "x$LINE" != x ; then | |
3370 | eval "DEFAULT_$LINE" | |
3371 | else | |
3372 | no_cache=1 | |
3373 | fi | |
3374 | ||
3375 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3376 | ||
3377 | fi | |
3378 | ||
3379 | ||
3380 | eval "$ac_cv_use_dataobj" | |
3381 | if test "$no_cache" != 1; then | |
3382 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
3383 | fi | |
3384 | ||
3385 | if test "$wxUSE_DATAOBJ" = yes; then | |
3386 | echo "$ac_t""yes" 1>&6 | |
3387 | else | |
3388 | echo "$ac_t""no" 1>&6 | |
3389 | fi | |
3390 | ||
3391 | ||
52127426 | 3392 | |
a0b9e27f | 3393 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 |
3bce6687 | 3394 | echo "configure:3395: checking for --enable-ipc" >&5 |
10f2d63a | 3395 | no_cache=0 |
eb4efbdc VZ |
3396 | # Check whether --enable-ipc or --disable-ipc was given. |
3397 | if test "${enable_ipc+set}" = set; then | |
3398 | enableval="$enable_ipc" | |
a0b9e27f | 3399 | |
10f2d63a | 3400 | if test "$enableval" = yes; then |
eb4efbdc | 3401 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3402 | else |
eb4efbdc | 3403 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3404 | fi |
a0b9e27f | 3405 | |
10f2d63a | 3406 | else |
a0b9e27f | 3407 | |
eb4efbdc | 3408 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3409 | if test "x$LINE" != x ; then |
3410 | eval "DEFAULT_$LINE" | |
3411 | else | |
3412 | no_cache=1 | |
3413 | fi | |
3414 | ||
eb4efbdc | 3415 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
a0b9e27f MB |
3416 | |
3417 | fi | |
10f2d63a VZ |
3418 | |
3419 | ||
eb4efbdc | 3420 | eval "$ac_cv_use_ipc" |
10f2d63a | 3421 | if test "$no_cache" != 1; then |
eb4efbdc | 3422 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3423 | fi |
3424 | ||
eb4efbdc | 3425 | if test "$wxUSE_IPC" = yes; then |
a0b9e27f | 3426 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3427 | else |
a0b9e27f | 3428 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3429 | fi |
a0b9e27f | 3430 | |
52127426 | 3431 | |
8284b0c5 | 3432 | |
a0b9e27f | 3433 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
3bce6687 | 3434 | echo "configure:3435: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3435 | no_cache=0 |
3436 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3437 | if test "${enable_cmdline+set}" = set; then | |
3438 | enableval="$enable_cmdline" | |
a0b9e27f | 3439 | |
1e6feb95 VZ |
3440 | if test "$enableval" = yes; then |
3441 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3442 | else | |
3443 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3444 | fi | |
a0b9e27f | 3445 | |
1e6feb95 | 3446 | else |
a0b9e27f | 3447 | |
1e6feb95 VZ |
3448 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3449 | if test "x$LINE" != x ; then | |
3450 | eval "DEFAULT_$LINE" | |
3451 | else | |
3452 | no_cache=1 | |
3453 | fi | |
3454 | ||
3455 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
a0b9e27f MB |
3456 | |
3457 | fi | |
1e6feb95 VZ |
3458 | |
3459 | ||
3460 | eval "$ac_cv_use_cmdline" | |
3461 | if test "$no_cache" != 1; then | |
3462 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3463 | fi | |
3464 | ||
3465 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
a0b9e27f | 3466 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3467 | else |
a0b9e27f | 3468 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3469 | fi |
a0b9e27f | 3470 | |
1e6feb95 | 3471 | |
a0b9e27f | 3472 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 |
3bce6687 | 3473 | echo "configure:3474: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3474 | no_cache=0 |
3475 | # Check whether --enable-datetime or --disable-datetime was given. | |
3476 | if test "${enable_datetime+set}" = set; then | |
3477 | enableval="$enable_datetime" | |
a0b9e27f | 3478 | |
1e6feb95 VZ |
3479 | if test "$enableval" = yes; then |
3480 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3481 | else | |
3482 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3483 | fi | |
a0b9e27f | 3484 | |
1e6feb95 | 3485 | else |
a0b9e27f | 3486 | |
1e6feb95 VZ |
3487 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3488 | if test "x$LINE" != x ; then | |
3489 | eval "DEFAULT_$LINE" | |
3490 | else | |
3491 | no_cache=1 | |
3492 | fi | |
3493 | ||
3494 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
a0b9e27f MB |
3495 | |
3496 | fi | |
1e6feb95 VZ |
3497 | |
3498 | ||
3499 | eval "$ac_cv_use_datetime" | |
3500 | if test "$no_cache" != 1; then | |
3501 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3502 | fi | |
3503 | ||
3504 | if test "$wxUSE_DATETIME" = yes; then | |
a0b9e27f | 3505 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3506 | else |
a0b9e27f | 3507 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3508 | fi |
a0b9e27f | 3509 | |
1e6feb95 | 3510 | |
a0b9e27f | 3511 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 |
3bce6687 | 3512 | echo "configure:3513: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3513 | no_cache=0 |
3514 | # Check whether --enable-timedate or --disable-timedate was given. | |
3515 | if test "${enable_timedate+set}" = set; then | |
3516 | enableval="$enable_timedate" | |
a0b9e27f | 3517 | |
1e6feb95 VZ |
3518 | if test "$enableval" = yes; then |
3519 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3520 | else | |
3521 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3522 | fi | |
a0b9e27f | 3523 | |
1e6feb95 | 3524 | else |
a0b9e27f | 3525 | |
1e6feb95 VZ |
3526 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` |
3527 | if test "x$LINE" != x ; then | |
3528 | eval "DEFAULT_$LINE" | |
3529 | else | |
3530 | no_cache=1 | |
3531 | fi | |
3532 | ||
3533 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
a0b9e27f MB |
3534 | |
3535 | fi | |
1e6feb95 VZ |
3536 | |
3537 | ||
3538 | eval "$ac_cv_use_timedate" | |
3539 | if test "$no_cache" != 1; then | |
3540 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3541 | fi | |
3542 | ||
3543 | if test "$wxUSE_TIMEDATE" = yes; then | |
a0b9e27f | 3544 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3545 | else |
a0b9e27f | 3546 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3547 | fi |
a0b9e27f | 3548 | |
1e6feb95 | 3549 | |
a0b9e27f | 3550 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 |
3bce6687 | 3551 | echo "configure:3552: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3552 | no_cache=0 |
3553 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3554 | if test "${enable_stopwatch+set}" = set; then | |
3555 | enableval="$enable_stopwatch" | |
a0b9e27f | 3556 | |
1e6feb95 VZ |
3557 | if test "$enableval" = yes; then |
3558 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3559 | else | |
3560 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3561 | fi | |
a0b9e27f | 3562 | |
1e6feb95 | 3563 | else |
a0b9e27f | 3564 | |
1e6feb95 VZ |
3565 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3566 | if test "x$LINE" != x ; then | |
3567 | eval "DEFAULT_$LINE" | |
3568 | else | |
3569 | no_cache=1 | |
3570 | fi | |
3571 | ||
3572 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
a0b9e27f MB |
3573 | |
3574 | fi | |
1e6feb95 VZ |
3575 | |
3576 | ||
3577 | eval "$ac_cv_use_stopwatch" | |
3578 | if test "$no_cache" != 1; then | |
3579 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3580 | fi | |
3581 | ||
3582 | if test "$wxUSE_STOPWATCH" = yes; then | |
a0b9e27f | 3583 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3584 | else |
a0b9e27f | 3585 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3586 | fi |
a0b9e27f | 3587 | |
1e6feb95 | 3588 | |
a0b9e27f | 3589 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
3bce6687 | 3590 | echo "configure:3591: checking for --enable-dialupman" >&5 |
10f2d63a | 3591 | no_cache=0 |
eb4efbdc VZ |
3592 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3593 | if test "${enable_dialupman+set}" = set; then | |
3594 | enableval="$enable_dialupman" | |
a0b9e27f | 3595 | |
10f2d63a | 3596 | if test "$enableval" = yes; then |
eb4efbdc | 3597 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3598 | else |
eb4efbdc | 3599 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3600 | fi |
a0b9e27f | 3601 | |
10f2d63a | 3602 | else |
a0b9e27f | 3603 | |
eb4efbdc | 3604 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3605 | if test "x$LINE" != x ; then |
3606 | eval "DEFAULT_$LINE" | |
3607 | else | |
3608 | no_cache=1 | |
3609 | fi | |
3610 | ||
eb4efbdc | 3611 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
a0b9e27f MB |
3612 | |
3613 | fi | |
10f2d63a VZ |
3614 | |
3615 | ||
eb4efbdc | 3616 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3617 | if test "$no_cache" != 1; then |
eb4efbdc | 3618 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3619 | fi |
3620 | ||
eb4efbdc | 3621 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
a0b9e27f | 3622 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3623 | else |
a0b9e27f | 3624 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3625 | fi |
a0b9e27f | 3626 | |
10f2d63a | 3627 | |
a0b9e27f | 3628 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
3bce6687 | 3629 | echo "configure:3630: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3630 | no_cache=0 |
3631 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3632 | if test "${enable_apple_ieee+set}" = set; then | |
3633 | enableval="$enable_apple_ieee" | |
a0b9e27f | 3634 | |
10f2d63a VZ |
3635 | if test "$enableval" = yes; then |
3636 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3637 | else | |
3638 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3639 | fi | |
a0b9e27f | 3640 | |
10f2d63a | 3641 | else |
a0b9e27f | 3642 | |
10f2d63a VZ |
3643 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3644 | if test "x$LINE" != x ; then | |
3645 | eval "DEFAULT_$LINE" | |
3646 | else | |
3647 | no_cache=1 | |
3648 | fi | |
3649 | ||
3650 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
a0b9e27f MB |
3651 | |
3652 | fi | |
10f2d63a VZ |
3653 | |
3654 | ||
3655 | eval "$ac_cv_use_apple_ieee" | |
3656 | if test "$no_cache" != 1; then | |
3657 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3658 | fi | |
3659 | ||
3660 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
a0b9e27f | 3661 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3662 | else |
a0b9e27f | 3663 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3664 | fi |
a0b9e27f | 3665 | |
10f2d63a | 3666 | |
a0b9e27f | 3667 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
3bce6687 | 3668 | echo "configure:3669: checking for --enable-timer" >&5 |
10f2d63a | 3669 | no_cache=0 |
1e6feb95 VZ |
3670 | # Check whether --enable-timer or --disable-timer was given. |
3671 | if test "${enable_timer+set}" = set; then | |
3672 | enableval="$enable_timer" | |
a0b9e27f | 3673 | |
10f2d63a | 3674 | if test "$enableval" = yes; then |
1e6feb95 | 3675 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3676 | else |
1e6feb95 | 3677 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3678 | fi |
a0b9e27f | 3679 | |
10f2d63a | 3680 | else |
a0b9e27f | 3681 | |
1e6feb95 | 3682 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3683 | if test "x$LINE" != x ; then |
3684 | eval "DEFAULT_$LINE" | |
3685 | else | |
3686 | no_cache=1 | |
3687 | fi | |
3688 | ||
1e6feb95 | 3689 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
a0b9e27f MB |
3690 | |
3691 | fi | |
10f2d63a VZ |
3692 | |
3693 | ||
1e6feb95 | 3694 | eval "$ac_cv_use_timer" |
10f2d63a | 3695 | if test "$no_cache" != 1; then |
1e6feb95 | 3696 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3697 | fi |
3698 | ||
1e6feb95 | 3699 | if test "$wxUSE_TIMER" = yes; then |
a0b9e27f | 3700 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3701 | else |
a0b9e27f | 3702 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3703 | fi |
a0b9e27f | 3704 | |
10f2d63a | 3705 | |
a0b9e27f | 3706 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
3bce6687 | 3707 | echo "configure:3708: checking for --enable-wave" >&5 |
10f2d63a VZ |
3708 | no_cache=0 |
3709 | # Check whether --enable-wave or --disable-wave was given. | |
3710 | if test "${enable_wave+set}" = set; then | |
3711 | enableval="$enable_wave" | |
a0b9e27f | 3712 | |
10f2d63a VZ |
3713 | if test "$enableval" = yes; then |
3714 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3715 | else | |
3716 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3717 | fi | |
a0b9e27f | 3718 | |
10f2d63a | 3719 | else |
a0b9e27f | 3720 | |
10f2d63a VZ |
3721 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3722 | if test "x$LINE" != x ; then | |
3723 | eval "DEFAULT_$LINE" | |
3724 | else | |
3725 | no_cache=1 | |
3726 | fi | |
3727 | ||
3728 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
a0b9e27f MB |
3729 | |
3730 | fi | |
10f2d63a VZ |
3731 | |
3732 | ||
3733 | eval "$ac_cv_use_wave" | |
3734 | if test "$no_cache" != 1; then | |
3735 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3736 | fi | |
3737 | ||
3738 | if test "$wxUSE_WAVE" = yes; then | |
a0b9e27f | 3739 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3740 | else |
a0b9e27f | 3741 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3742 | fi |
a0b9e27f | 3743 | |
10f2d63a | 3744 | |
a0b9e27f | 3745 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
3bce6687 | 3746 | echo "configure:3747: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3747 | no_cache=0 |
3748 | # Check whether --enable-fraction or --disable-fraction was given. | |
3749 | if test "${enable_fraction+set}" = set; then | |
3750 | enableval="$enable_fraction" | |
a0b9e27f | 3751 | |
10f2d63a VZ |
3752 | if test "$enableval" = yes; then |
3753 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3754 | else | |
3755 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3756 | fi | |
a0b9e27f | 3757 | |
10f2d63a | 3758 | else |
a0b9e27f | 3759 | |
10f2d63a VZ |
3760 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3761 | if test "x$LINE" != x ; then | |
3762 | eval "DEFAULT_$LINE" | |
3763 | else | |
3764 | no_cache=1 | |
3765 | fi | |
3766 | ||
3767 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
a0b9e27f MB |
3768 | |
3769 | fi | |
10f2d63a VZ |
3770 | |
3771 | ||
3772 | eval "$ac_cv_use_fraction" | |
3773 | if test "$no_cache" != 1; then | |
3774 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3775 | fi | |
3776 | ||
3777 | if test "$wxUSE_FRACTION" = yes; then | |
a0b9e27f | 3778 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3779 | else |
a0b9e27f | 3780 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3781 | fi |
a0b9e27f | 3782 | |
10f2d63a | 3783 | |
a0b9e27f | 3784 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
3bce6687 | 3785 | echo "configure:3786: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3786 | no_cache=0 |
3787 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3788 | if test "${enable_dynlib+set}" = set; then | |
3789 | enableval="$enable_dynlib" | |
a0b9e27f | 3790 | |
10f2d63a VZ |
3791 | if test "$enableval" = yes; then |
3792 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3793 | else | |
3794 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3795 | fi | |
a0b9e27f | 3796 | |
10f2d63a | 3797 | else |
a0b9e27f | 3798 | |
10f2d63a VZ |
3799 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3800 | if test "x$LINE" != x ; then | |
3801 | eval "DEFAULT_$LINE" | |
3802 | else | |
3803 | no_cache=1 | |
3804 | fi | |
3805 | ||
3806 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
a0b9e27f MB |
3807 | |
3808 | fi | |
10f2d63a VZ |
3809 | |
3810 | ||
3811 | eval "$ac_cv_use_dynlib" | |
3812 | if test "$no_cache" != 1; then | |
3813 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3814 | fi | |
3815 | ||
3816 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
a0b9e27f | 3817 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3818 | else |
a0b9e27f | 3819 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3820 | fi |
a0b9e27f | 3821 | |
10f2d63a | 3822 | |
a0b9e27f | 3823 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
3bce6687 | 3824 | echo "configure:3825: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3825 | no_cache=0 |
3826 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3827 | if test "${enable_dynamicloader+set}" = set; then | |
3828 | enableval="$enable_dynamicloader" | |
a0b9e27f | 3829 | |
0b9ab0bd RL |
3830 | if test "$enableval" = yes; then |
3831 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3832 | else | |
3833 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3834 | fi | |
a0b9e27f | 3835 | |
0b9ab0bd | 3836 | else |
a0b9e27f | 3837 | |
0b9ab0bd RL |
3838 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3839 | if test "x$LINE" != x ; then | |
3840 | eval "DEFAULT_$LINE" | |
3841 | else | |
3842 | no_cache=1 | |
3843 | fi | |
3844 | ||
3845 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
a0b9e27f MB |
3846 | |
3847 | fi | |
0b9ab0bd RL |
3848 | |
3849 | ||
3850 | eval "$ac_cv_use_dynamicloader" | |
3851 | if test "$no_cache" != 1; then | |
3852 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3853 | fi | |
3854 | ||
3855 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
a0b9e27f | 3856 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3857 | else |
a0b9e27f | 3858 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3859 | fi |
a0b9e27f | 3860 | |
0b9ab0bd | 3861 | |
a0b9e27f | 3862 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
3bce6687 | 3863 | echo "configure:3864: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3864 | no_cache=0 |
3865 | # Check whether --enable-longlong or --disable-longlong was given. | |
3866 | if test "${enable_longlong+set}" = set; then | |
3867 | enableval="$enable_longlong" | |
a0b9e27f | 3868 | |
10f2d63a VZ |
3869 | if test "$enableval" = yes; then |
3870 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3871 | else | |
3872 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3873 | fi | |
a0b9e27f | 3874 | |
10f2d63a | 3875 | else |
a0b9e27f | 3876 | |
10f2d63a VZ |
3877 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3878 | if test "x$LINE" != x ; then | |
3879 | eval "DEFAULT_$LINE" | |
3880 | else | |
3881 | no_cache=1 | |
3882 | fi | |
3883 | ||
3884 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
a0b9e27f MB |
3885 | |
3886 | fi | |
10f2d63a VZ |
3887 | |
3888 | ||
3889 | eval "$ac_cv_use_longlong" | |
3890 | if test "$no_cache" != 1; then | |
3891 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3892 | fi | |
3893 | ||
3894 | if test "$wxUSE_LONGLONG" = yes; then | |
a0b9e27f | 3895 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3896 | else |
a0b9e27f | 3897 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3898 | fi |
a0b9e27f | 3899 | |
10f2d63a | 3900 | |
a0b9e27f | 3901 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
3bce6687 | 3902 | echo "configure:3903: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3903 | no_cache=0 |
3904 | # Check whether --enable-geometry or --disable-geometry was given. | |
3905 | if test "${enable_geometry+set}" = set; then | |
3906 | enableval="$enable_geometry" | |
a0b9e27f | 3907 | |
e8f65ba6 RR |
3908 | if test "$enableval" = yes; then |
3909 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3910 | else | |
3911 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3912 | fi | |
a0b9e27f | 3913 | |
e8f65ba6 | 3914 | else |
a0b9e27f | 3915 | |
e8f65ba6 RR |
3916 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3917 | if test "x$LINE" != x ; then | |
3918 | eval "DEFAULT_$LINE" | |
3919 | else | |
3920 | no_cache=1 | |
3921 | fi | |
3922 | ||
3923 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
a0b9e27f MB |
3924 | |
3925 | fi | |
e8f65ba6 RR |
3926 | |
3927 | ||
3928 | eval "$ac_cv_use_geometry" | |
3929 | if test "$no_cache" != 1; then | |
3930 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3931 | fi | |
3932 | ||
3933 | if test "$wxUSE_GEOMETRY" = yes; then | |
a0b9e27f | 3934 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3935 | else |
a0b9e27f | 3936 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3937 | fi |
a0b9e27f | 3938 | |
e8f65ba6 | 3939 | |
a0b9e27f | 3940 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
3bce6687 | 3941 | echo "configure:3942: checking for --enable-log" >&5 |
10f2d63a VZ |
3942 | no_cache=0 |
3943 | # Check whether --enable-log or --disable-log was given. | |
3944 | if test "${enable_log+set}" = set; then | |
3945 | enableval="$enable_log" | |
a0b9e27f | 3946 | |
10f2d63a VZ |
3947 | if test "$enableval" = yes; then |
3948 | ac_cv_use_log='wxUSE_LOG=yes' | |
3949 | else | |
3950 | ac_cv_use_log='wxUSE_LOG=no' | |
3951 | fi | |
a0b9e27f | 3952 | |
10f2d63a | 3953 | else |
a0b9e27f | 3954 | |
10f2d63a VZ |
3955 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3956 | if test "x$LINE" != x ; then | |
3957 | eval "DEFAULT_$LINE" | |
3958 | else | |
3959 | no_cache=1 | |
3960 | fi | |
3961 | ||
3962 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
a0b9e27f MB |
3963 | |
3964 | fi | |
10f2d63a VZ |
3965 | |
3966 | ||
3967 | eval "$ac_cv_use_log" | |
3968 | if test "$no_cache" != 1; then | |
3969 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3970 | fi | |
3971 | ||
3972 | if test "$wxUSE_LOG" = yes; then | |
a0b9e27f | 3973 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3974 | else |
a0b9e27f | 3975 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3976 | fi |
a0b9e27f | 3977 | |
10f2d63a | 3978 | |
a0b9e27f | 3979 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
3bce6687 | 3980 | echo "configure:3981: checking for --enable-streams" >&5 |
10f2d63a VZ |
3981 | no_cache=0 |
3982 | # Check whether --enable-streams or --disable-streams was given. | |
3983 | if test "${enable_streams+set}" = set; then | |
3984 | enableval="$enable_streams" | |
a0b9e27f | 3985 | |
10f2d63a VZ |
3986 | if test "$enableval" = yes; then |
3987 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3988 | else | |
3989 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3990 | fi | |
a0b9e27f | 3991 | |
10f2d63a | 3992 | else |
a0b9e27f | 3993 | |
10f2d63a VZ |
3994 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3995 | if test "x$LINE" != x ; then | |
3996 | eval "DEFAULT_$LINE" | |
3997 | else | |
3998 | no_cache=1 | |
3999 | fi | |
4000 | ||
4001 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
a0b9e27f MB |
4002 | |
4003 | fi | |
10f2d63a VZ |
4004 | |
4005 | ||
4006 | eval "$ac_cv_use_streams" | |
4007 | if test "$no_cache" != 1; then | |
4008 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4009 | fi | |
4010 | ||
4011 | if test "$wxUSE_STREAMS" = yes; then | |
a0b9e27f | 4012 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4013 | else |
a0b9e27f | 4014 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4015 | fi |
a0b9e27f | 4016 | |
10f2d63a | 4017 | |
a0b9e27f | 4018 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
3bce6687 | 4019 | echo "configure:4020: checking for --enable-file" >&5 |
10f2d63a VZ |
4020 | no_cache=0 |
4021 | # Check whether --enable-file or --disable-file was given. | |
4022 | if test "${enable_file+set}" = set; then | |
4023 | enableval="$enable_file" | |
a0b9e27f | 4024 | |
10f2d63a VZ |
4025 | if test "$enableval" = yes; then |
4026 | ac_cv_use_file='wxUSE_FILE=yes' | |
4027 | else | |
4028 | ac_cv_use_file='wxUSE_FILE=no' | |
4029 | fi | |
a0b9e27f | 4030 | |
10f2d63a | 4031 | else |
a0b9e27f | 4032 | |
10f2d63a VZ |
4033 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4034 | if test "x$LINE" != x ; then | |
4035 | eval "DEFAULT_$LINE" | |
4036 | else | |
4037 | no_cache=1 | |
4038 | fi | |
4039 | ||
4040 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
a0b9e27f MB |
4041 | |
4042 | fi | |
10f2d63a VZ |
4043 | |
4044 | ||
4045 | eval "$ac_cv_use_file" | |
4046 | if test "$no_cache" != 1; then | |
4047 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4048 | fi | |
4049 | ||
4050 | if test "$wxUSE_FILE" = yes; then | |
a0b9e27f | 4051 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4052 | else |
a0b9e27f | 4053 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4054 | fi |
a0b9e27f | 4055 | |
10f2d63a | 4056 | |
a0b9e27f | 4057 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
3bce6687 | 4058 | echo "configure:4059: checking for --enable-ffile" >&5 |
10f2d63a | 4059 | no_cache=0 |
1e6feb95 VZ |
4060 | # Check whether --enable-ffile or --disable-ffile was given. |
4061 | if test "${enable_ffile+set}" = set; then | |
4062 | enableval="$enable_ffile" | |
a0b9e27f | 4063 | |
10f2d63a | 4064 | if test "$enableval" = yes; then |
1e6feb95 | 4065 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4066 | else |
1e6feb95 | 4067 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4068 | fi |
a0b9e27f | 4069 | |
10f2d63a | 4070 | else |
a0b9e27f | 4071 | |
1e6feb95 | 4072 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4073 | if test "x$LINE" != x ; then |
4074 | eval "DEFAULT_$LINE" | |
4075 | else | |
4076 | no_cache=1 | |
4077 | fi | |
4078 | ||
1e6feb95 | 4079 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
a0b9e27f MB |
4080 | |
4081 | fi | |
10f2d63a VZ |
4082 | |
4083 | ||
1e6feb95 | 4084 | eval "$ac_cv_use_ffile" |
10f2d63a | 4085 | if test "$no_cache" != 1; then |
1e6feb95 | 4086 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4087 | fi |
4088 | ||
1e6feb95 | 4089 | if test "$wxUSE_FFILE" = yes; then |
a0b9e27f | 4090 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4091 | else |
a0b9e27f | 4092 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4093 | fi |
a0b9e27f | 4094 | |
10f2d63a | 4095 | |
a0b9e27f | 4096 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
3bce6687 | 4097 | echo "configure:4098: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
4098 | no_cache=0 |
4099 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4100 | if test "${enable_textbuf+set}" = set; then | |
4101 | enableval="$enable_textbuf" | |
a0b9e27f | 4102 | |
a3a584a7 VZ |
4103 | if test "$enableval" = yes; then |
4104 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4105 | else | |
4106 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4107 | fi | |
a0b9e27f | 4108 | |
a3a584a7 | 4109 | else |
a0b9e27f | 4110 | |
a3a584a7 VZ |
4111 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4112 | if test "x$LINE" != x ; then | |
4113 | eval "DEFAULT_$LINE" | |
4114 | else | |
4115 | no_cache=1 | |
4116 | fi | |
4117 | ||
4118 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a0b9e27f MB |
4119 | |
4120 | fi | |
a3a584a7 VZ |
4121 | |
4122 | ||
4123 | eval "$ac_cv_use_textbuf" | |
4124 | if test "$no_cache" != 1; then | |
4125 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4126 | fi | |
4127 | ||
4128 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
a0b9e27f | 4129 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4130 | else |
a0b9e27f | 4131 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4132 | fi |
a0b9e27f | 4133 | |
a3a584a7 | 4134 | |
a0b9e27f | 4135 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
3bce6687 | 4136 | echo "configure:4137: checking for --enable-textfile" >&5 |
10f2d63a | 4137 | no_cache=0 |
1e6feb95 VZ |
4138 | # Check whether --enable-textfile or --disable-textfile was given. |
4139 | if test "${enable_textfile+set}" = set; then | |
4140 | enableval="$enable_textfile" | |
a0b9e27f | 4141 | |
10f2d63a | 4142 | if test "$enableval" = yes; then |
1e6feb95 | 4143 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4144 | else |
1e6feb95 | 4145 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4146 | fi |
a0b9e27f | 4147 | |
10f2d63a | 4148 | else |
a0b9e27f | 4149 | |
1e6feb95 | 4150 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4151 | if test "x$LINE" != x ; then |
4152 | eval "DEFAULT_$LINE" | |
4153 | else | |
4154 | no_cache=1 | |
4155 | fi | |
4156 | ||
1e6feb95 | 4157 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
a0b9e27f MB |
4158 | |
4159 | fi | |
10f2d63a VZ |
4160 | |
4161 | ||
1e6feb95 | 4162 | eval "$ac_cv_use_textfile" |
10f2d63a | 4163 | if test "$no_cache" != 1; then |
1e6feb95 | 4164 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4165 | fi |
4166 | ||
1e6feb95 | 4167 | if test "$wxUSE_TEXTFILE" = yes; then |
a0b9e27f | 4168 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4169 | else |
a0b9e27f | 4170 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4171 | fi |
a0b9e27f | 4172 | |
10f2d63a | 4173 | |
a0b9e27f | 4174 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
3bce6687 | 4175 | echo "configure:4176: checking for --enable-fontmap" >&5 |
10f2d63a | 4176 | no_cache=0 |
1e6feb95 VZ |
4177 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4178 | if test "${enable_fontmap+set}" = set; then | |
4179 | enableval="$enable_fontmap" | |
a0b9e27f | 4180 | |
10f2d63a | 4181 | if test "$enableval" = yes; then |
1e6feb95 | 4182 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4183 | else |
1e6feb95 | 4184 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4185 | fi |
a0b9e27f | 4186 | |
10f2d63a | 4187 | else |
a0b9e27f | 4188 | |
1e6feb95 | 4189 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4190 | if test "x$LINE" != x ; then |
4191 | eval "DEFAULT_$LINE" | |
4192 | else | |
4193 | no_cache=1 | |
4194 | fi | |
4195 | ||
1e6feb95 | 4196 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
a0b9e27f MB |
4197 | |
4198 | fi | |
10f2d63a VZ |
4199 | |
4200 | ||
1e6feb95 | 4201 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4202 | if test "$no_cache" != 1; then |
1e6feb95 | 4203 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4204 | fi |
4205 | ||
1e6feb95 | 4206 | if test "$wxUSE_FONTMAP" = yes; then |
a0b9e27f | 4207 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4208 | else |
a0b9e27f | 4209 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4210 | fi |
a0b9e27f | 4211 | |
10f2d63a | 4212 | |
a0b9e27f | 4213 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
3bce6687 | 4214 | echo "configure:4215: checking for --enable-unicode" >&5 |
10f2d63a | 4215 | no_cache=0 |
1e6feb95 VZ |
4216 | # Check whether --enable-unicode or --disable-unicode was given. |
4217 | if test "${enable_unicode+set}" = set; then | |
4218 | enableval="$enable_unicode" | |
a0b9e27f | 4219 | |
1e6feb95 VZ |
4220 | if test "$enableval" = yes; then |
4221 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4222 | else | |
4223 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4224 | fi | |
a0b9e27f | 4225 | |
1e6feb95 | 4226 | else |
a0b9e27f | 4227 | |
1e6feb95 VZ |
4228 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4229 | if test "x$LINE" != x ; then | |
4230 | eval "DEFAULT_$LINE" | |
4231 | else | |
4232 | no_cache=1 | |
4233 | fi | |
4234 | ||
4235 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
a0b9e27f MB |
4236 | |
4237 | fi | |
1e6feb95 VZ |
4238 | |
4239 | ||
4240 | eval "$ac_cv_use_unicode" | |
4241 | if test "$no_cache" != 1; then | |
4242 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4243 | fi | |
4244 | ||
4245 | if test "$wxUSE_UNICODE" = yes; then | |
a0b9e27f | 4246 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4247 | else |
a0b9e27f | 4248 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4249 | fi |
a0b9e27f | 4250 | |
1e6feb95 | 4251 | |
a0b9e27f | 4252 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
3bce6687 | 4253 | echo "configure:4254: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4254 | no_cache=0 |
4255 | # Check whether --enable-mslu or --disable-mslu was given. | |
4256 | if test "${enable_mslu+set}" = set; then | |
4257 | enableval="$enable_mslu" | |
a0b9e27f | 4258 | |
a72a4bfa VS |
4259 | if test "$enableval" = yes; then |
4260 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4261 | else | |
4262 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4263 | fi | |
a0b9e27f | 4264 | |
a72a4bfa | 4265 | else |
a0b9e27f | 4266 | |
a72a4bfa VS |
4267 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4268 | if test "x$LINE" != x ; then | |
4269 | eval "DEFAULT_$LINE" | |
4270 | else | |
4271 | no_cache=1 | |
4272 | fi | |
4273 | ||
4274 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a0b9e27f MB |
4275 | |
4276 | fi | |
a72a4bfa VS |
4277 | |
4278 | ||
4279 | eval "$ac_cv_use_mslu" | |
4280 | if test "$no_cache" != 1; then | |
4281 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4282 | fi | |
4283 | ||
4284 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
a0b9e27f | 4285 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4286 | else |
a0b9e27f | 4287 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4288 | fi |
a0b9e27f | 4289 | |
a72a4bfa | 4290 | |
a0b9e27f | 4291 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
3bce6687 | 4292 | echo "configure:4293: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4293 | no_cache=0 |
4294 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4295 | if test "${enable_wxprintfv+set}" = set; then | |
4296 | enableval="$enable_wxprintfv" | |
a0b9e27f | 4297 | |
1e6feb95 | 4298 | if test "$enableval" = yes; then |
10f2d63a VZ |
4299 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4300 | else | |
4301 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4302 | fi | |
a0b9e27f | 4303 | |
10f2d63a | 4304 | else |
a0b9e27f | 4305 | |
10f2d63a VZ |
4306 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4307 | if test "x$LINE" != x ; then | |
4308 | eval "DEFAULT_$LINE" | |
4309 | else | |
4310 | no_cache=1 | |
4311 | fi | |
4312 | ||
4313 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
a0b9e27f MB |
4314 | |
4315 | fi | |
10f2d63a VZ |
4316 | |
4317 | ||
4318 | eval "$ac_cv_use_wxprintfv" | |
4319 | if test "$no_cache" != 1; then | |
4320 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4321 | fi | |
4322 | ||
4323 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
a0b9e27f | 4324 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4325 | else |
a0b9e27f | 4326 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4327 | fi |
a0b9e27f | 4328 | |
10f2d63a | 4329 | |
a0b9e27f | 4330 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
3bce6687 | 4331 | echo "configure:4332: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4332 | no_cache=0 |
4333 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4334 | if test "${enable_std_iostreams+set}" = set; then | |
4335 | enableval="$enable_std_iostreams" | |
a0b9e27f | 4336 | |
10f2d63a VZ |
4337 | if test "$enableval" = yes; then |
4338 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4339 | else | |
4340 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4341 | fi | |
a0b9e27f | 4342 | |
10f2d63a | 4343 | else |
a0b9e27f | 4344 | |
10f2d63a VZ |
4345 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4346 | if test "x$LINE" != x ; then | |
4347 | eval "DEFAULT_$LINE" | |
4348 | else | |
4349 | no_cache=1 | |
4350 | fi | |
4351 | ||
4352 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
a0b9e27f MB |
4353 | |
4354 | fi | |
10f2d63a VZ |
4355 | |
4356 | ||
4357 | eval "$ac_cv_use_std_iostreams" | |
4358 | if test "$no_cache" != 1; then | |
4359 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4360 | fi | |
4361 | ||
4362 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
a0b9e27f | 4363 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4364 | else |
a0b9e27f | 4365 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4366 | fi |
a0b9e27f | 4367 | |
10f2d63a | 4368 | |
a0b9e27f | 4369 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
3bce6687 | 4370 | echo "configure:4371: checking for --enable-filesystem" >&5 |
24528b0c VS |
4371 | no_cache=0 |
4372 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4373 | if test "${enable_filesystem+set}" = set; then | |
4374 | enableval="$enable_filesystem" | |
a0b9e27f | 4375 | |
24528b0c VS |
4376 | if test "$enableval" = yes; then |
4377 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4378 | else | |
4379 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4380 | fi | |
a0b9e27f | 4381 | |
24528b0c | 4382 | else |
a0b9e27f | 4383 | |
24528b0c VS |
4384 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4385 | if test "x$LINE" != x ; then | |
4386 | eval "DEFAULT_$LINE" | |
4387 | else | |
4388 | no_cache=1 | |
4389 | fi | |
4390 | ||
4391 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
a0b9e27f MB |
4392 | |
4393 | fi | |
24528b0c VS |
4394 | |
4395 | ||
4396 | eval "$ac_cv_use_filesystem" | |
4397 | if test "$no_cache" != 1; then | |
4398 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4399 | fi | |
4400 | ||
4401 | if test "$wxUSE_FILESYSTEM" = yes; then | |
a0b9e27f | 4402 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4403 | else |
a0b9e27f | 4404 | echo "$ac_t""no" 1>&6 |
24528b0c | 4405 | fi |
a0b9e27f | 4406 | |
24528b0c | 4407 | |
a0b9e27f | 4408 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
3bce6687 | 4409 | echo "configure:4410: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4410 | no_cache=0 |
4411 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4412 | if test "${enable_fs_inet+set}" = set; then | |
4413 | enableval="$enable_fs_inet" | |
a0b9e27f | 4414 | |
10f2d63a VZ |
4415 | if test "$enableval" = yes; then |
4416 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4417 | else | |
4418 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4419 | fi | |
a0b9e27f | 4420 | |
10f2d63a | 4421 | else |
a0b9e27f | 4422 | |
10f2d63a VZ |
4423 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4424 | if test "x$LINE" != x ; then | |
4425 | eval "DEFAULT_$LINE" | |
4426 | else | |
4427 | no_cache=1 | |
4428 | fi | |
4429 | ||
4430 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
a0b9e27f MB |
4431 | |
4432 | fi | |
10f2d63a VZ |
4433 | |
4434 | ||
4435 | eval "$ac_cv_use_fs_inet" | |
4436 | if test "$no_cache" != 1; then | |
4437 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4438 | fi | |
4439 | ||
4440 | if test "$wxUSE_FS_INET" = yes; then | |
a0b9e27f | 4441 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4442 | else |
a0b9e27f | 4443 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4444 | fi |
a0b9e27f | 4445 | |
10f2d63a | 4446 | |
a0b9e27f | 4447 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
3bce6687 | 4448 | echo "configure:4449: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4449 | no_cache=0 |
4450 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4451 | if test "${enable_fs_zip+set}" = set; then | |
4452 | enableval="$enable_fs_zip" | |
a0b9e27f | 4453 | |
10f2d63a VZ |
4454 | if test "$enableval" = yes; then |
4455 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4456 | else | |
4457 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4458 | fi | |
a0b9e27f | 4459 | |
10f2d63a | 4460 | else |
a0b9e27f | 4461 | |
10f2d63a VZ |
4462 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4463 | if test "x$LINE" != x ; then | |
4464 | eval "DEFAULT_$LINE" | |
4465 | else | |
4466 | no_cache=1 | |
4467 | fi | |
4468 | ||
4469 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
a0b9e27f MB |
4470 | |
4471 | fi | |
10f2d63a VZ |
4472 | |
4473 | ||
4474 | eval "$ac_cv_use_fs_zip" | |
4475 | if test "$no_cache" != 1; then | |
4476 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4477 | fi | |
4478 | ||
4479 | if test "$wxUSE_FS_ZIP" = yes; then | |
a0b9e27f | 4480 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4481 | else |
a0b9e27f | 4482 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4483 | fi |
a0b9e27f | 4484 | |
10f2d63a | 4485 | |
a0b9e27f | 4486 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
3bce6687 | 4487 | echo "configure:4488: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4488 | no_cache=0 |
4489 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4490 | if test "${enable_zipstream+set}" = set; then | |
4491 | enableval="$enable_zipstream" | |
a0b9e27f | 4492 | |
10f2d63a VZ |
4493 | if test "$enableval" = yes; then |
4494 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4495 | else | |
4496 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4497 | fi | |
a0b9e27f | 4498 | |
10f2d63a | 4499 | else |
a0b9e27f | 4500 | |
10f2d63a VZ |
4501 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4502 | if test "x$LINE" != x ; then | |
4503 | eval "DEFAULT_$LINE" | |
4504 | else | |
4505 | no_cache=1 | |
4506 | fi | |
4507 | ||
4508 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
a0b9e27f MB |
4509 | |
4510 | fi | |
10f2d63a VZ |
4511 | |
4512 | ||
4513 | eval "$ac_cv_use_zipstream" | |
4514 | if test "$no_cache" != 1; then | |
4515 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4516 | fi | |
4517 | ||
4518 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
a0b9e27f | 4519 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4520 | else |
a0b9e27f | 4521 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4522 | fi |
a0b9e27f | 4523 | |
8284b0c5 | 4524 | |
52127426 | 4525 | |
a0b9e27f | 4526 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 |
3bce6687 | 4527 | echo "configure:4528: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4528 | no_cache=0 |
4529 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4530 | if test "${enable_catch_segvs+set}" = set; then | |
4531 | enableval="$enable_catch_segvs" | |
a0b9e27f | 4532 | |
eb4efbdc VZ |
4533 | if test "$enableval" = yes; then |
4534 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4535 | else | |
4536 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4537 | fi | |
a0b9e27f | 4538 | |
eb4efbdc | 4539 | else |
a0b9e27f | 4540 | |
eb4efbdc VZ |
4541 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4542 | if test "x$LINE" != x ; then | |
4543 | eval "DEFAULT_$LINE" | |
4544 | else | |
4545 | no_cache=1 | |
4546 | fi | |
4547 | ||
4548 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
a0b9e27f MB |
4549 | |
4550 | fi | |
eb4efbdc VZ |
4551 | |
4552 | ||
4553 | eval "$ac_cv_use_catch_segvs" | |
4554 | if test "$no_cache" != 1; then | |
4555 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4556 | fi | |
4557 | ||
4558 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
a0b9e27f | 4559 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4560 | else |
a0b9e27f | 4561 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4562 | fi |
a0b9e27f | 4563 | |
eb4efbdc | 4564 | |
a0b9e27f | 4565 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
3bce6687 | 4566 | echo "configure:4567: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4567 | no_cache=0 |
4568 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4569 | if test "${enable_snglinst+set}" = set; then | |
4570 | enableval="$enable_snglinst" | |
a0b9e27f | 4571 | |
4f3c5f06 VZ |
4572 | if test "$enableval" = yes; then |
4573 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4574 | else | |
4575 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4576 | fi | |
a0b9e27f | 4577 | |
4f3c5f06 | 4578 | else |
a0b9e27f | 4579 | |
4f3c5f06 VZ |
4580 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4581 | if test "x$LINE" != x ; then | |
4582 | eval "DEFAULT_$LINE" | |
4583 | else | |
4584 | no_cache=1 | |
4585 | fi | |
4586 | ||
4587 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
a0b9e27f MB |
4588 | |
4589 | fi | |
4f3c5f06 VZ |
4590 | |
4591 | ||
4592 | eval "$ac_cv_use_snglinst" | |
4593 | if test "$no_cache" != 1; then | |
4594 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4595 | fi | |
4596 | ||
4597 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
a0b9e27f | 4598 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4599 | else |
a0b9e27f | 4600 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4601 | fi |
a0b9e27f | 4602 | |
52127426 | 4603 | |
8284b0c5 | 4604 | |
a0b9e27f | 4605 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
3bce6687 | 4606 | echo "configure:4607: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4607 | no_cache=0 |
4608 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4609 | if test "${enable_mimetype+set}" = set; then | |
4610 | enableval="$enable_mimetype" | |
a0b9e27f | 4611 | |
1e6feb95 VZ |
4612 | if test "$enableval" = yes; then |
4613 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4614 | else | |
4615 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4616 | fi | |
a0b9e27f | 4617 | |
1e6feb95 | 4618 | else |
a0b9e27f | 4619 | |
1e6feb95 VZ |
4620 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
4621 | if test "x$LINE" != x ; then | |
4622 | eval "DEFAULT_$LINE" | |
4623 | else | |
4624 | no_cache=1 | |
4625 | fi | |
4626 | ||
4627 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
a0b9e27f MB |
4628 | |
4629 | fi | |
1e6feb95 VZ |
4630 | |
4631 | ||
4632 | eval "$ac_cv_use_mimetype" | |
4633 | if test "$no_cache" != 1; then | |
4634 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4635 | fi | |
4636 | ||
4637 | if test "$wxUSE_MIMETYPE" = yes; then | |
a0b9e27f | 4638 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4639 | else |
a0b9e27f | 4640 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4641 | fi |
a0b9e27f | 4642 | |
1e6feb95 | 4643 | |
a0b9e27f | 4644 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
3bce6687 | 4645 | echo "configure:4646: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4646 | no_cache=0 |
4647 | # Check whether --enable-system_options or --disable-system_options was given. | |
4648 | if test "${enable_system_options+set}" = set; then | |
4649 | enableval="$enable_system_options" | |
a0b9e27f | 4650 | |
3e44f09d VZ |
4651 | if test "$enableval" = yes; then |
4652 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4653 | else | |
4654 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4655 | fi | |
a0b9e27f | 4656 | |
3e44f09d | 4657 | else |
a0b9e27f | 4658 | |
3e44f09d VZ |
4659 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4660 | if test "x$LINE" != x ; then | |
4661 | eval "DEFAULT_$LINE" | |
4662 | else | |
4663 | no_cache=1 | |
4664 | fi | |
4665 | ||
4666 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
a0b9e27f MB |
4667 | |
4668 | fi | |
3e44f09d VZ |
4669 | |
4670 | ||
4671 | eval "$ac_cv_use_system_options" | |
4672 | if test "$no_cache" != 1; then | |
4673 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4674 | fi | |
4675 | ||
4676 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
a0b9e27f | 4677 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4678 | else |
a0b9e27f | 4679 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4680 | fi |
a0b9e27f | 4681 | |
8284b0c5 | 4682 | |
52127426 | 4683 | |
a0b9e27f | 4684 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
3bce6687 | 4685 | echo "configure:4686: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4686 | no_cache=0 |
4687 | # Check whether --enable-url or --disable-url was given. | |
4688 | if test "${enable_url+set}" = set; then | |
4689 | enableval="$enable_url" | |
a0b9e27f | 4690 | |
4cdb0ab0 VS |
4691 | if test "$enableval" = yes; then |
4692 | ac_cv_use_url='wxUSE_URL=yes' | |
4693 | else | |
4694 | ac_cv_use_url='wxUSE_URL=no' | |
4695 | fi | |
a0b9e27f | 4696 | |
4cdb0ab0 | 4697 | else |
a0b9e27f | 4698 | |
4cdb0ab0 VS |
4699 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4700 | if test "x$LINE" != x ; then | |
4701 | eval "DEFAULT_$LINE" | |
4702 | else | |
4703 | no_cache=1 | |
4704 | fi | |
4705 | ||
4706 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
a0b9e27f MB |
4707 | |
4708 | fi | |
4cdb0ab0 VS |
4709 | |
4710 | ||
4711 | eval "$ac_cv_use_url" | |
4712 | if test "$no_cache" != 1; then | |
4713 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4714 | fi | |
4715 | ||
4716 | if test "$wxUSE_URL" = yes; then | |
a0b9e27f | 4717 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4718 | else |
a0b9e27f | 4719 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4720 | fi |
a0b9e27f | 4721 | |
4cdb0ab0 | 4722 | |
a0b9e27f | 4723 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 |
3bce6687 | 4724 | echo "configure:4725: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4725 | no_cache=0 |
4726 | # Check whether --enable-protocol or --disable-protocol was given. | |
4727 | if test "${enable_protocol+set}" = set; then | |
4728 | enableval="$enable_protocol" | |
a0b9e27f | 4729 | |
4cdb0ab0 VS |
4730 | if test "$enableval" = yes; then |
4731 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4732 | else | |
4733 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4734 | fi | |
a0b9e27f | 4735 | |
4cdb0ab0 | 4736 | else |
a0b9e27f | 4737 | |
4cdb0ab0 VS |
4738 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4739 | if test "x$LINE" != x ; then | |
4740 | eval "DEFAULT_$LINE" | |
4741 | else | |
4742 | no_cache=1 | |
4743 | fi | |
4744 | ||
4745 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
4746 | |
4747 | fi | |
4cdb0ab0 VS |
4748 | |
4749 | ||
4750 | eval "$ac_cv_use_protocol" | |
4751 | if test "$no_cache" != 1; then | |
4752 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4753 | fi | |
4754 | ||
4755 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 4756 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4757 | else |
a0b9e27f | 4758 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4759 | fi |
a0b9e27f | 4760 | |
4cdb0ab0 | 4761 | |
a0b9e27f | 4762 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 |
3bce6687 | 4763 | echo "configure:4764: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4764 | no_cache=0 |
4765 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4766 | if test "${enable_protocol_http+set}" = set; then | |
4767 | enableval="$enable_protocol_http" | |
a0b9e27f | 4768 | |
4cdb0ab0 VS |
4769 | if test "$enableval" = yes; then |
4770 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4771 | else | |
4772 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4773 | fi | |
a0b9e27f | 4774 | |
4cdb0ab0 | 4775 | else |
a0b9e27f | 4776 | |
4cdb0ab0 VS |
4777 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4778 | if test "x$LINE" != x ; then | |
4779 | eval "DEFAULT_$LINE" | |
4780 | else | |
4781 | no_cache=1 | |
4782 | fi | |
4783 | ||
4784 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
4785 | |
4786 | fi | |
4cdb0ab0 VS |
4787 | |
4788 | ||
4789 | eval "$ac_cv_use_protocol_http" | |
4790 | if test "$no_cache" != 1; then | |
4791 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4792 | fi | |
4793 | ||
4794 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 4795 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4796 | else |
a0b9e27f | 4797 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4798 | fi |
a0b9e27f | 4799 | |
4cdb0ab0 | 4800 | |
a0b9e27f | 4801 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 |
3bce6687 | 4802 | echo "configure:4803: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4803 | no_cache=0 |
4804 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4805 | if test "${enable_protocol_ftp+set}" = set; then | |
4806 | enableval="$enable_protocol_ftp" | |
a0b9e27f | 4807 | |
4cdb0ab0 VS |
4808 | if test "$enableval" = yes; then |
4809 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4810 | else | |
4811 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4812 | fi | |
a0b9e27f | 4813 | |
4cdb0ab0 | 4814 | else |
a0b9e27f | 4815 | |
4cdb0ab0 VS |
4816 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4817 | if test "x$LINE" != x ; then | |
4818 | eval "DEFAULT_$LINE" | |
4819 | else | |
4820 | no_cache=1 | |
4821 | fi | |
4822 | ||
4823 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
4824 | |
4825 | fi | |
4cdb0ab0 VS |
4826 | |
4827 | ||
4828 | eval "$ac_cv_use_protocol_ftp" | |
4829 | if test "$no_cache" != 1; then | |
4830 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4831 | fi | |
4832 | ||
4833 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 4834 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4835 | else |
a0b9e27f | 4836 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4837 | fi |
a0b9e27f | 4838 | |
4cdb0ab0 | 4839 | |
a0b9e27f | 4840 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 |
3bce6687 | 4841 | echo "configure:4842: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4842 | no_cache=0 |
4843 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4844 | if test "${enable_protocol_file+set}" = set; then | |
4845 | enableval="$enable_protocol_file" | |
a0b9e27f | 4846 | |
4cdb0ab0 VS |
4847 | if test "$enableval" = yes; then |
4848 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4849 | else | |
4850 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4851 | fi | |
a0b9e27f | 4852 | |
4cdb0ab0 | 4853 | else |
a0b9e27f | 4854 | |
4cdb0ab0 VS |
4855 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4856 | if test "x$LINE" != x ; then | |
4857 | eval "DEFAULT_$LINE" | |
4858 | else | |
4859 | no_cache=1 | |
4860 | fi | |
4861 | ||
4862 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
4863 | |
4864 | fi | |
4cdb0ab0 VS |
4865 | |
4866 | ||
4867 | eval "$ac_cv_use_protocol_file" | |
4868 | if test "$no_cache" != 1; then | |
4869 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4870 | fi | |
4871 | ||
4872 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 4873 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4874 | else |
a0b9e27f | 4875 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4876 | fi |
a0b9e27f | 4877 | |
52127426 | 4878 | |
8284b0c5 MB |
4879 | |
4880 | ||
4881 | ||
a0b9e27f | 4882 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 |
3bce6687 | 4883 | echo "configure:4884: checking for --enable-threads" >&5 |
10f2d63a VZ |
4884 | no_cache=0 |
4885 | # Check whether --enable-threads or --disable-threads was given. | |
4886 | if test "${enable_threads+set}" = set; then | |
4887 | enableval="$enable_threads" | |
a0b9e27f | 4888 | |
10f2d63a VZ |
4889 | if test "$enableval" = yes; then |
4890 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4891 | else | |
4892 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4893 | fi | |
a0b9e27f | 4894 | |
10f2d63a | 4895 | else |
a0b9e27f | 4896 | |
10f2d63a VZ |
4897 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4898 | if test "x$LINE" != x ; then | |
4899 | eval "DEFAULT_$LINE" | |
4900 | else | |
4901 | no_cache=1 | |
4902 | fi | |
4903 | ||
4904 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
a0b9e27f MB |
4905 | |
4906 | fi | |
10f2d63a VZ |
4907 | |
4908 | ||
4909 | eval "$ac_cv_use_threads" | |
4910 | if test "$no_cache" != 1; then | |
4911 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4912 | fi | |
4913 | ||
4914 | if test "$wxUSE_THREADS" = yes; then | |
a0b9e27f | 4915 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4916 | else |
a0b9e27f | 4917 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4918 | fi |
a0b9e27f | 4919 | |
10f2d63a | 4920 | |
b12915c1 VZ |
4921 | if test "$wxUSE_GUI" = "yes"; then |
4922 | ||
8284b0c5 MB |
4923 | |
4924 | ||
a0b9e27f | 4925 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 |
3bce6687 | 4926 | echo "configure:4927: checking for --enable-docview" >&5 |
10f2d63a VZ |
4927 | no_cache=0 |
4928 | # Check whether --enable-docview or --disable-docview was given. | |
4929 | if test "${enable_docview+set}" = set; then | |
4930 | enableval="$enable_docview" | |
a0b9e27f | 4931 | |
10f2d63a VZ |
4932 | if test "$enableval" = yes; then |
4933 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4934 | else | |
4935 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4936 | fi | |
a0b9e27f | 4937 | |
10f2d63a | 4938 | else |
a0b9e27f | 4939 | |
10f2d63a VZ |
4940 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4941 | if test "x$LINE" != x ; then | |
4942 | eval "DEFAULT_$LINE" | |
4943 | else | |
4944 | no_cache=1 | |
4945 | fi | |
4946 | ||
4947 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
a0b9e27f MB |
4948 | |
4949 | fi | |
10f2d63a VZ |
4950 | |
4951 | ||
4952 | eval "$ac_cv_use_docview" | |
4953 | if test "$no_cache" != 1; then | |
4954 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4955 | fi | |
4956 | ||
4957 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
a0b9e27f | 4958 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4959 | else |
a0b9e27f | 4960 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4961 | fi |
a0b9e27f | 4962 | |
10f2d63a | 4963 | |
a0b9e27f | 4964 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
3bce6687 | 4965 | echo "configure:4966: checking for --enable-help" >&5 |
10f2d63a VZ |
4966 | no_cache=0 |
4967 | # Check whether --enable-help or --disable-help was given. | |
4968 | if test "${enable_help+set}" = set; then | |
4969 | enableval="$enable_help" | |
a0b9e27f | 4970 | |
10f2d63a VZ |
4971 | if test "$enableval" = yes; then |
4972 | ac_cv_use_help='wxUSE_HELP=yes' | |
4973 | else | |
4974 | ac_cv_use_help='wxUSE_HELP=no' | |
4975 | fi | |
a0b9e27f | 4976 | |
10f2d63a | 4977 | else |
a0b9e27f | 4978 | |
10f2d63a VZ |
4979 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4980 | if test "x$LINE" != x ; then | |
4981 | eval "DEFAULT_$LINE" | |
4982 | else | |
4983 | no_cache=1 | |
4984 | fi | |
4985 | ||
4986 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
a0b9e27f MB |
4987 | |
4988 | fi | |
10f2d63a VZ |
4989 | |
4990 | ||
4991 | eval "$ac_cv_use_help" | |
4992 | if test "$no_cache" != 1; then | |
4993 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4994 | fi | |
4995 | ||
4996 | if test "$wxUSE_HELP" = yes; then | |
a0b9e27f | 4997 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4998 | else |
a0b9e27f | 4999 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5000 | fi |
a0b9e27f | 5001 | |
10f2d63a | 5002 | |
a0b9e27f | 5003 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
3bce6687 | 5004 | echo "configure:5005: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
5005 | no_cache=0 |
5006 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5007 | if test "${enable_mshtmlhelp+set}" = set; then | |
5008 | enableval="$enable_mshtmlhelp" | |
a0b9e27f | 5009 | |
29fd3c0c VS |
5010 | if test "$enableval" = yes; then |
5011 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5012 | else | |
5013 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5014 | fi | |
a0b9e27f | 5015 | |
29fd3c0c | 5016 | else |
a0b9e27f | 5017 | |
29fd3c0c VS |
5018 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5019 | if test "x$LINE" != x ; then | |
5020 | eval "DEFAULT_$LINE" | |
5021 | else | |
5022 | no_cache=1 | |
5023 | fi | |
5024 | ||
5025 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
a0b9e27f MB |
5026 | |
5027 | fi | |
29fd3c0c VS |
5028 | |
5029 | ||
5030 | eval "$ac_cv_use_mshtmlhelp" | |
5031 | if test "$no_cache" != 1; then | |
5032 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5033 | fi | |
5034 | ||
5035 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
a0b9e27f | 5036 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 5037 | else |
a0b9e27f | 5038 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 5039 | fi |
a0b9e27f | 5040 | |
29fd3c0c | 5041 | |
a0b9e27f | 5042 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
3bce6687 | 5043 | echo "configure:5044: checking for --enable-html" >&5 |
3379ed37 VZ |
5044 | no_cache=0 |
5045 | # Check whether --enable-html or --disable-html was given. | |
5046 | if test "${enable_html+set}" = set; then | |
5047 | enableval="$enable_html" | |
a0b9e27f | 5048 | |
3379ed37 VZ |
5049 | if test "$enableval" = yes; then |
5050 | ac_cv_use_html='wxUSE_HTML=yes' | |
5051 | else | |
5052 | ac_cv_use_html='wxUSE_HTML=no' | |
5053 | fi | |
a0b9e27f | 5054 | |
3379ed37 | 5055 | else |
a0b9e27f | 5056 | |
3379ed37 VZ |
5057 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5058 | if test "x$LINE" != x ; then | |
5059 | eval "DEFAULT_$LINE" | |
5060 | else | |
5061 | no_cache=1 | |
5062 | fi | |
5063 | ||
5064 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
a0b9e27f MB |
5065 | |
5066 | fi | |
3379ed37 VZ |
5067 | |
5068 | ||
5069 | eval "$ac_cv_use_html" | |
5070 | if test "$no_cache" != 1; then | |
5071 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5072 | fi | |
5073 | ||
5074 | if test "$wxUSE_HTML" = yes; then | |
a0b9e27f | 5075 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5076 | else |
a0b9e27f | 5077 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5078 | fi |
a0b9e27f | 5079 | |
3379ed37 | 5080 | |
a0b9e27f | 5081 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 |
3bce6687 | 5082 | echo "configure:5083: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
5083 | no_cache=0 |
5084 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5085 | if test "${enable_htmlhelp+set}" = set; then | |
5086 | enableval="$enable_htmlhelp" | |
a0b9e27f | 5087 | |
3379ed37 VZ |
5088 | if test "$enableval" = yes; then |
5089 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5090 | else | |
5091 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5092 | fi | |
a0b9e27f | 5093 | |
3379ed37 | 5094 | else |
a0b9e27f | 5095 | |
3379ed37 VZ |
5096 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5097 | if test "x$LINE" != x ; then | |
5098 | eval "DEFAULT_$LINE" | |
5099 | else | |
5100 | no_cache=1 | |
5101 | fi | |
5102 | ||
5103 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
a0b9e27f MB |
5104 | |
5105 | fi | |
3379ed37 VZ |
5106 | |
5107 | ||
5108 | eval "$ac_cv_use_htmlhelp" | |
5109 | if test "$no_cache" != 1; then | |
5110 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5111 | fi | |
5112 | ||
5113 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
a0b9e27f | 5114 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5115 | else |
a0b9e27f | 5116 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5117 | fi |
a0b9e27f | 5118 | |
3379ed37 | 5119 | |
a0b9e27f | 5120 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
3bce6687 | 5121 | echo "configure:5122: checking for --enable-constraints" >&5 |
10f2d63a VZ |
5122 | no_cache=0 |
5123 | # Check whether --enable-constraints or --disable-constraints was given. | |
5124 | if test "${enable_constraints+set}" = set; then | |
5125 | enableval="$enable_constraints" | |
a0b9e27f | 5126 | |
10f2d63a VZ |
5127 | if test "$enableval" = yes; then |
5128 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5129 | else | |
5130 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5131 | fi | |
a0b9e27f | 5132 | |
10f2d63a | 5133 | else |
a0b9e27f | 5134 | |
10f2d63a VZ |
5135 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5136 | if test "x$LINE" != x ; then | |
5137 | eval "DEFAULT_$LINE" | |
5138 | else | |
5139 | no_cache=1 | |
5140 | fi | |
5141 | ||
5142 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
a0b9e27f MB |
5143 | |
5144 | fi | |
10f2d63a VZ |
5145 | |
5146 | ||
5147 | eval "$ac_cv_use_constraints" | |
5148 | if test "$no_cache" != 1; then | |
5149 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5150 | fi | |
5151 | ||
5152 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
a0b9e27f | 5153 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5154 | else |
a0b9e27f | 5155 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5156 | fi |
a0b9e27f | 5157 | |
10f2d63a | 5158 | |
a0b9e27f | 5159 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
3bce6687 | 5160 | echo "configure:5161: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5161 | no_cache=0 |
5162 | # Check whether --enable-printarch or --disable-printarch was given. | |
5163 | if test "${enable_printarch+set}" = set; then | |
5164 | enableval="$enable_printarch" | |
a0b9e27f | 5165 | |
10f2d63a VZ |
5166 | if test "$enableval" = yes; then |
5167 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5168 | else | |
5169 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5170 | fi | |
a0b9e27f | 5171 | |
10f2d63a | 5172 | else |
a0b9e27f | 5173 | |
10f2d63a VZ |
5174 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5175 | if test "x$LINE" != x ; then | |
5176 | eval "DEFAULT_$LINE" | |
5177 | else | |
5178 | no_cache=1 | |
5179 | fi | |
5180 | ||
5181 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
a0b9e27f MB |
5182 | |
5183 | fi | |
10f2d63a VZ |
5184 | |
5185 | ||
5186 | eval "$ac_cv_use_printarch" | |
5187 | if test "$no_cache" != 1; then | |
5188 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5189 | fi | |
5190 | ||
5191 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
a0b9e27f | 5192 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5193 | else |
a0b9e27f | 5194 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5195 | fi |
a0b9e27f | 5196 | |
10f2d63a | 5197 | |
a0b9e27f | 5198 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
3bce6687 | 5199 | echo "configure:5200: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5200 | no_cache=0 |
5201 | # Check whether --enable-mdi or --disable-mdi was given. | |
5202 | if test "${enable_mdi+set}" = set; then | |
5203 | enableval="$enable_mdi" | |
a0b9e27f | 5204 | |
10f2d63a VZ |
5205 | if test "$enableval" = yes; then |
5206 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5207 | else | |
5208 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5209 | fi | |
a0b9e27f | 5210 | |
10f2d63a | 5211 | else |
a0b9e27f | 5212 | |
10f2d63a VZ |
5213 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5214 | if test "x$LINE" != x ; then | |
5215 | eval "DEFAULT_$LINE" | |
5216 | else | |
5217 | no_cache=1 | |
5218 | fi | |
5219 | ||
5220 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
a0b9e27f MB |
5221 | |
5222 | fi | |
10f2d63a VZ |
5223 | |
5224 | ||
5225 | eval "$ac_cv_use_mdi" | |
5226 | if test "$no_cache" != 1; then | |
5227 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5228 | fi | |
5229 | ||
5230 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
a0b9e27f | 5231 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5232 | else |
a0b9e27f | 5233 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5234 | fi |
a0b9e27f | 5235 | |
698dcdb6 | 5236 | |
a0b9e27f | 5237 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
3bce6687 | 5238 | echo "configure:5239: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5239 | no_cache=0 |
5240 | # Check whether --enable-loggui or --disable-loggui was given. | |
5241 | if test "${enable_loggui+set}" = set; then | |
5242 | enableval="$enable_loggui" | |
a0b9e27f | 5243 | |
1e6feb95 VZ |
5244 | if test "$enableval" = yes; then |
5245 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5246 | else | |
5247 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5248 | fi | |
a0b9e27f | 5249 | |
1e6feb95 | 5250 | else |
a0b9e27f | 5251 | |
1e6feb95 VZ |
5252 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5253 | if test "x$LINE" != x ; then | |
5254 | eval "DEFAULT_$LINE" | |
5255 | else | |
5256 | no_cache=1 | |
5257 | fi | |
5258 | ||
5259 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
a0b9e27f MB |
5260 | |
5261 | fi | |
1e6feb95 VZ |
5262 | |
5263 | ||
5264 | eval "$ac_cv_use_loggui" | |
5265 | if test "$no_cache" != 1; then | |
5266 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5267 | fi | |
5268 | ||
5269 | if test "$wxUSE_LOGGUI" = yes; then | |
a0b9e27f | 5270 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5271 | else |
a0b9e27f | 5272 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5273 | fi |
a0b9e27f | 5274 | |
1e6feb95 | 5275 | |
a0b9e27f | 5276 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 |
3bce6687 | 5277 | echo "configure:5278: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5278 | no_cache=0 |
5279 | # Check whether --enable-logwin or --disable-logwin was given. | |
5280 | if test "${enable_logwin+set}" = set; then | |
5281 | enableval="$enable_logwin" | |
a0b9e27f | 5282 | |
1e6feb95 VZ |
5283 | if test "$enableval" = yes; then |
5284 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5285 | else | |
5286 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5287 | fi | |
a0b9e27f | 5288 | |
1e6feb95 | 5289 | else |
a0b9e27f | 5290 | |
1e6feb95 VZ |
5291 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5292 | if test "x$LINE" != x ; then | |
5293 | eval "DEFAULT_$LINE" | |
5294 | else | |
5295 | no_cache=1 | |
5296 | fi | |
5297 | ||
5298 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
a0b9e27f MB |
5299 | |
5300 | fi | |
1e6feb95 VZ |
5301 | |
5302 | ||
5303 | eval "$ac_cv_use_logwin" | |
5304 | if test "$no_cache" != 1; then | |
5305 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5306 | fi | |
5307 | ||
5308 | if test "$wxUSE_LOGWINDOW" = yes; then | |
a0b9e27f | 5309 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5310 | else |
a0b9e27f | 5311 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5312 | fi |
a0b9e27f | 5313 | |
1e6feb95 | 5314 | |
a0b9e27f | 5315 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
3bce6687 | 5316 | echo "configure:5317: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5317 | no_cache=0 |
5318 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5319 | if test "${enable_logdialog+set}" = set; then | |
5320 | enableval="$enable_logdialog" | |
a0b9e27f | 5321 | |
69d27ff7 MB |
5322 | if test "$enableval" = yes; then |
5323 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5324 | else | |
5325 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5326 | fi | |
a0b9e27f | 5327 | |
69d27ff7 | 5328 | else |
a0b9e27f | 5329 | |
69d27ff7 MB |
5330 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5331 | if test "x$LINE" != x ; then | |
5332 | eval "DEFAULT_$LINE" | |
5333 | else | |
5334 | no_cache=1 | |
5335 | fi | |
5336 | ||
5337 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
a0b9e27f MB |
5338 | |
5339 | fi | |
69d27ff7 MB |
5340 | |
5341 | ||
5342 | eval "$ac_cv_use_logdialog" | |
5343 | if test "$no_cache" != 1; then | |
5344 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5345 | fi | |
5346 | ||
5347 | if test "$wxUSE_LOGDIALOG" = yes; then | |
a0b9e27f | 5348 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5349 | else |
a0b9e27f | 5350 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5351 | fi |
a0b9e27f | 5352 | |
8284b0c5 | 5353 | |
52127426 | 5354 | |
a0b9e27f | 5355 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
3bce6687 | 5356 | echo "configure:5357: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5357 | no_cache=0 |
5358 | # Check whether --enable-postscript or --disable-postscript was given. | |
5359 | if test "${enable_postscript+set}" = set; then | |
5360 | enableval="$enable_postscript" | |
a0b9e27f | 5361 | |
10f2d63a VZ |
5362 | if test "$enableval" = yes; then |
5363 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5364 | else | |
5365 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5366 | fi | |
a0b9e27f | 5367 | |
10f2d63a | 5368 | else |
a0b9e27f | 5369 | |
10f2d63a VZ |
5370 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5371 | if test "x$LINE" != x ; then | |
5372 | eval "DEFAULT_$LINE" | |
5373 | else | |
5374 | no_cache=1 | |
5375 | fi | |
5376 | ||
5377 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
a0b9e27f MB |
5378 | |
5379 | fi | |
10f2d63a VZ |
5380 | |
5381 | ||
5382 | eval "$ac_cv_use_postscript" | |
5383 | if test "$no_cache" != 1; then | |
5384 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5385 | fi | |
5386 | ||
5387 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
a0b9e27f | 5388 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5389 | else |
a0b9e27f | 5390 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5391 | fi |
a0b9e27f | 5392 | |
8284b0c5 MB |
5393 | |
5394 | ||
52127426 | 5395 | |
8284b0c5 | 5396 | |
a0b9e27f | 5397 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
3bce6687 | 5398 | echo "configure:5399: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5399 | no_cache=0 |
5400 | # Check whether --enable-prologio or --disable-prologio was given. | |
5401 | if test "${enable_prologio+set}" = set; then | |
5402 | enableval="$enable_prologio" | |
a0b9e27f | 5403 | |
10f2d63a VZ |
5404 | if test "$enableval" = yes; then |
5405 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5406 | else | |
5407 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5408 | fi | |
a0b9e27f | 5409 | |
10f2d63a | 5410 | else |
a0b9e27f | 5411 | |
10f2d63a VZ |
5412 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5413 | if test "x$LINE" != x ; then | |
5414 | eval "DEFAULT_$LINE" | |
5415 | else | |
5416 | no_cache=1 | |
5417 | fi | |
5418 | ||
5419 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
a0b9e27f MB |
5420 | |
5421 | fi | |
10f2d63a VZ |
5422 | |
5423 | ||
5424 | eval "$ac_cv_use_prologio" | |
5425 | if test "$no_cache" != 1; then | |
5426 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5427 | fi | |
5428 | ||
5429 | if test "$wxUSE_PROLOGIO" = yes; then | |
a0b9e27f | 5430 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5431 | else |
a0b9e27f | 5432 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5433 | fi |
a0b9e27f | 5434 | |
10f2d63a | 5435 | |
a0b9e27f | 5436 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
3bce6687 | 5437 | echo "configure:5438: checking for --enable-resources" >&5 |
10f2d63a VZ |
5438 | no_cache=0 |
5439 | # Check whether --enable-resources or --disable-resources was given. | |
5440 | if test "${enable_resources+set}" = set; then | |
5441 | enableval="$enable_resources" | |
a0b9e27f | 5442 | |
10f2d63a VZ |
5443 | if test "$enableval" = yes; then |
5444 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5445 | else | |
5446 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5447 | fi | |
a0b9e27f | 5448 | |
10f2d63a | 5449 | else |
a0b9e27f | 5450 | |
10f2d63a VZ |
5451 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5452 | if test "x$LINE" != x ; then | |
5453 | eval "DEFAULT_$LINE" | |
5454 | else | |
5455 | no_cache=1 | |
5456 | fi | |
5457 | ||
5458 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
a0b9e27f MB |
5459 | |
5460 | fi | |
10f2d63a VZ |
5461 | |
5462 | ||
5463 | eval "$ac_cv_use_resources" | |
5464 | if test "$no_cache" != 1; then | |
5465 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5466 | fi | |
5467 | ||
5468 | if test "$wxUSE_RESOURCES" = yes; then | |
a0b9e27f | 5469 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5470 | else |
a0b9e27f | 5471 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5472 | fi |
a0b9e27f | 5473 | |
8284b0c5 | 5474 | |
52127426 | 5475 | |
a0b9e27f | 5476 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 |
3bce6687 | 5477 | echo "configure:5478: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5478 | no_cache=0 |
5479 | # Check whether --enable-xresources or --disable-xresources was given. | |
5480 | if test "${enable_xresources+set}" = set; then | |
5481 | enableval="$enable_xresources" | |
a0b9e27f | 5482 | |
10f2d63a VZ |
5483 | if test "$enableval" = yes; then |
5484 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5485 | else | |
5486 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5487 | fi | |
a0b9e27f | 5488 | |
10f2d63a | 5489 | else |
a0b9e27f | 5490 | |
10f2d63a VZ |
5491 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5492 | if test "x$LINE" != x ; then | |
5493 | eval "DEFAULT_$LINE" | |
5494 | else | |
5495 | no_cache=1 | |
5496 | fi | |
5497 | ||
5498 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
a0b9e27f MB |
5499 | |
5500 | fi | |
10f2d63a VZ |
5501 | |
5502 | ||
5503 | eval "$ac_cv_use_xresources" | |
5504 | if test "$no_cache" != 1; then | |
5505 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5506 | fi | |
5507 | ||
5508 | if test "$wxUSE_X_RESOURCES" = yes; then | |
a0b9e27f | 5509 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5510 | else |
a0b9e27f | 5511 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5512 | fi |
a0b9e27f | 5513 | |
8284b0c5 MB |
5514 | |
5515 | ||
52127426 | 5516 | |
a0b9e27f | 5517 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 |
3bce6687 | 5518 | echo "configure:5519: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5519 | no_cache=0 |
5520 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5521 | if test "${enable_clipboard+set}" = set; then | |
5522 | enableval="$enable_clipboard" | |
a0b9e27f | 5523 | |
10f2d63a VZ |
5524 | if test "$enableval" = yes; then |
5525 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5526 | else | |
5527 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5528 | fi | |
a0b9e27f | 5529 | |
10f2d63a | 5530 | else |
a0b9e27f | 5531 | |
10f2d63a VZ |
5532 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5533 | if test "x$LINE" != x ; then | |
5534 | eval "DEFAULT_$LINE" | |
5535 | else | |
5536 | no_cache=1 | |
5537 | fi | |
5538 | ||
5539 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
a0b9e27f MB |
5540 | |
5541 | fi | |
10f2d63a VZ |
5542 | |
5543 | ||
5544 | eval "$ac_cv_use_clipboard" | |
5545 | if test "$no_cache" != 1; then | |
5546 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5547 | fi | |
5548 | ||
5549 | if test "$wxUSE_CLIPBOARD" = yes; then | |
a0b9e27f | 5550 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5551 | else |
a0b9e27f | 5552 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5553 | fi |
a0b9e27f | 5554 | |
10f2d63a | 5555 | |
a0b9e27f | 5556 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
3bce6687 | 5557 | echo "configure:5558: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5558 | no_cache=0 |
5559 | # Check whether --enable-dnd or --disable-dnd was given. | |
5560 | if test "${enable_dnd+set}" = set; then | |
5561 | enableval="$enable_dnd" | |
a0b9e27f | 5562 | |
10f2d63a VZ |
5563 | if test "$enableval" = yes; then |
5564 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5565 | else | |
5566 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5567 | fi | |
a0b9e27f | 5568 | |
10f2d63a | 5569 | else |
a0b9e27f | 5570 | |
10f2d63a VZ |
5571 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5572 | if test "x$LINE" != x ; then | |
5573 | eval "DEFAULT_$LINE" | |
5574 | else | |
5575 | no_cache=1 | |
5576 | fi | |
5577 | ||
5578 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
a0b9e27f MB |
5579 | |
5580 | fi | |
10f2d63a VZ |
5581 | |
5582 | ||
5583 | eval "$ac_cv_use_dnd" | |
5584 | if test "$no_cache" != 1; then | |
5585 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5586 | fi | |
5587 | ||
5588 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
a0b9e27f | 5589 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5590 | else |
a0b9e27f | 5591 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5592 | fi |
a0b9e27f | 5593 | |
10f2d63a | 5594 | |
a0b9e27f | 5595 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
3bce6687 | 5596 | echo "configure:5597: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5597 | no_cache=0 |
5598 | # Check whether --enable-metafile or --disable-metafile was given. | |
5599 | if test "${enable_metafile+set}" = set; then | |
5600 | enableval="$enable_metafile" | |
a0b9e27f | 5601 | |
b64f0a5f RL |
5602 | if test "$enableval" = yes; then |
5603 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5604 | else | |
5605 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5606 | fi | |
a0b9e27f | 5607 | |
b64f0a5f | 5608 | else |
a0b9e27f | 5609 | |
b64f0a5f RL |
5610 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5611 | if test "x$LINE" != x ; then | |
5612 | eval "DEFAULT_$LINE" | |
5613 | else | |
5614 | no_cache=1 | |
5615 | fi | |
5616 | ||
5617 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
5618 | |
5619 | fi | |
b64f0a5f RL |
5620 | |
5621 | ||
5622 | eval "$ac_cv_use_metafile" | |
5623 | if test "$no_cache" != 1; then | |
5624 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5625 | fi | |
5626 | ||
5627 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 5628 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5629 | else |
a0b9e27f | 5630 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5631 | fi |
a0b9e27f | 5632 | |
52127426 | 5633 | |
8284b0c5 | 5634 | |
a0b9e27f | 5635 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
3bce6687 | 5636 | echo "configure:5637: checking for --enable-treelayout" >&5 |
10f2d63a | 5637 | no_cache=0 |
24176f2c GD |
5638 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5639 | if test "${enable_treelayout+set}" = set; then | |
5640 | enableval="$enable_treelayout" | |
a0b9e27f | 5641 | |
10f2d63a | 5642 | if test "$enableval" = yes; then |
24176f2c | 5643 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5644 | else |
24176f2c | 5645 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5646 | fi |
a0b9e27f | 5647 | |
10f2d63a | 5648 | else |
a0b9e27f | 5649 | |
24176f2c | 5650 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5651 | if test "x$LINE" != x ; then |
5652 | eval "DEFAULT_$LINE" | |
5653 | else | |
5654 | no_cache=1 | |
5655 | fi | |
5656 | ||
24176f2c | 5657 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
a0b9e27f MB |
5658 | |
5659 | fi | |
10f2d63a VZ |
5660 | |
5661 | ||
24176f2c | 5662 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5663 | if test "$no_cache" != 1; then |
24176f2c | 5664 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5665 | fi |
5666 | ||
24176f2c | 5667 | if test "$wxUSE_TREELAYOUT" = yes; then |
a0b9e27f | 5668 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5669 | else |
a0b9e27f | 5670 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5671 | fi |
a0b9e27f | 5672 | |
8284b0c5 | 5673 | |
52127426 | 5674 | |
8284b0c5 | 5675 | |
a0b9e27f | 5676 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 |
3bce6687 | 5677 | echo "configure:5678: checking for --enable-controls" >&5 |
10f2d63a VZ |
5678 | no_cache=0 |
5679 | # Check whether --enable-controls or --disable-controls was given. | |
5680 | if test "${enable_controls+set}" = set; then | |
5681 | enableval="$enable_controls" | |
a0b9e27f | 5682 | |
10f2d63a VZ |
5683 | if test "$enableval" = yes; then |
5684 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5685 | else | |
5686 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5687 | fi | |
a0b9e27f | 5688 | |
10f2d63a | 5689 | else |
a0b9e27f | 5690 | |
10f2d63a VZ |
5691 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5692 | if test "x$LINE" != x ; then | |
5693 | eval "DEFAULT_$LINE" | |
5694 | else | |
5695 | no_cache=1 | |
5696 | fi | |
5697 | ||
5698 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
a0b9e27f MB |
5699 | |
5700 | fi | |
10f2d63a VZ |
5701 | |
5702 | ||
5703 | eval "$ac_cv_use_controls" | |
5704 | if test "$no_cache" != 1; then | |
5705 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5706 | fi | |
5707 | ||
5708 | if test "$wxUSE_CONTROLS" = yes; then | |
a0b9e27f | 5709 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5710 | else |
a0b9e27f | 5711 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5712 | fi |
a0b9e27f | 5713 | |
10f2d63a VZ |
5714 | |
5715 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5716 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5717 | DEFAULT_wxUSE_BMPBUTTON=yes |
5718 | DEFAULT_wxUSE_BUTTON=yes | |
5719 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5720 | DEFAULT_wxUSE_CARET=yes |
5721 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5722 | DEFAULT_wxUSE_CHECKBOX=yes |
5723 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5724 | DEFAULT_wxUSE_CHOICE=yes | |
5725 | DEFAULT_wxUSE_GAUGE=yes | |
5726 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5727 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5728 | DEFAULT_wxUSE_IMAGLIST=yes |
5729 | DEFAULT_wxUSE_LISTBOX=yes | |
5730 | DEFAULT_wxUSE_LISTCTRL=yes | |
5731 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5732 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5733 | DEFAULT_wxUSE_RADIOBOX=yes |
5734 | DEFAULT_wxUSE_RADIOBTN=yes | |
5735 | DEFAULT_wxUSE_SASH=yes | |
5736 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5737 | DEFAULT_wxUSE_SLIDER=yes | |
5738 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5739 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5740 | DEFAULT_wxUSE_SPLITTER=yes |
5741 | DEFAULT_wxUSE_STATBMP=yes | |
5742 | DEFAULT_wxUSE_STATBOX=yes | |
5743 | DEFAULT_wxUSE_STATLINE=yes | |
5744 | DEFAULT_wxUSE_STATUSBAR=yes | |
5745 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5746 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5747 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5748 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5749 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5750 | DEFAULT_wxUSE_TOOLTIPS=yes |
5751 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5752 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5753 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5754 | elif test "$wxUSE_CONTROLS" = "no"; then |
5755 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5756 | DEFAULT_wxUSE_BMPBUTTON=no |
5757 | DEFAULT_wxUSE_BUTTON=no | |
5758 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5759 | DEFAULT_wxUSE_CARET=no |
5760 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5761 | DEFAULT_wxUSE_CHECKBOX=no |
5762 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5763 | DEFAULT_wxUSE_CHOICE=no | |
5764 | DEFAULT_wxUSE_GAUGE=no | |
5765 | DEFAULT_wxUSE_GRID=no | |
5766 | DEFAULT_wxUSE_NEW_GRID=no | |
5767 | DEFAULT_wxUSE_IMAGLIST=no | |
5768 | DEFAULT_wxUSE_LISTBOX=no | |
5769 | DEFAULT_wxUSE_LISTCTRL=no | |
5770 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5771 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5772 | DEFAULT_wxUSE_RADIOBOX=no |
5773 | DEFAULT_wxUSE_RADIOBTN=no | |
5774 | DEFAULT_wxUSE_SASH=no | |
5775 | DEFAULT_wxUSE_SCROLLBAR=no | |
5776 | DEFAULT_wxUSE_SLIDER=no | |
5777 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5778 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5779 | DEFAULT_wxUSE_SPLITTER=no |
5780 | DEFAULT_wxUSE_STATBMP=no | |
5781 | DEFAULT_wxUSE_STATBOX=no | |
5782 | DEFAULT_wxUSE_STATLINE=no | |
5783 | DEFAULT_wxUSE_STATUSBAR=no | |
5784 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5785 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5786 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5787 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5788 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5789 | DEFAULT_wxUSE_TOOLTIPS=no |
5790 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5791 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5792 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5793 | fi |
5794 | ||
8284b0c5 | 5795 | |
a0b9e27f | 5796 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 |
3bce6687 | 5797 | echo "configure:5798: checking for --enable-accel" >&5 |
10f2d63a VZ |
5798 | no_cache=0 |
5799 | # Check whether --enable-accel or --disable-accel was given. | |
5800 | if test "${enable_accel+set}" = set; then | |
5801 | enableval="$enable_accel" | |
a0b9e27f | 5802 | |
10f2d63a VZ |
5803 | if test "$enableval" = yes; then |
5804 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5805 | else | |
5806 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5807 | fi | |
a0b9e27f | 5808 | |
10f2d63a | 5809 | else |
a0b9e27f | 5810 | |
10f2d63a VZ |
5811 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5812 | if test "x$LINE" != x ; then | |
5813 | eval "DEFAULT_$LINE" | |
5814 | else | |
5815 | no_cache=1 | |
5816 | fi | |
5817 | ||
5818 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
a0b9e27f MB |
5819 | |
5820 | fi | |
10f2d63a VZ |
5821 | |
5822 | ||
5823 | eval "$ac_cv_use_accel" | |
5824 | if test "$no_cache" != 1; then | |
5825 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5826 | fi | |
5827 | ||
5828 | if test "$wxUSE_ACCEL" = yes; then | |
a0b9e27f | 5829 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5830 | else |
a0b9e27f | 5831 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5832 | fi |
a0b9e27f | 5833 | |
10f2d63a | 5834 | |
a0b9e27f | 5835 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
3bce6687 | 5836 | echo "configure:5837: checking for --enable-button" >&5 |
10f2d63a | 5837 | no_cache=0 |
1e6feb95 VZ |
5838 | # Check whether --enable-button or --disable-button was given. |
5839 | if test "${enable_button+set}" = set; then | |
5840 | enableval="$enable_button" | |
a0b9e27f | 5841 | |
10f2d63a | 5842 | if test "$enableval" = yes; then |
1e6feb95 | 5843 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5844 | else |
1e6feb95 | 5845 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5846 | fi |
a0b9e27f | 5847 | |
10f2d63a | 5848 | else |
a0b9e27f | 5849 | |
1e6feb95 | 5850 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5851 | if test "x$LINE" != x ; then |
5852 | eval "DEFAULT_$LINE" | |
5853 | else | |
5854 | no_cache=1 | |
5855 | fi | |
5856 | ||
1e6feb95 | 5857 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
a0b9e27f MB |
5858 | |
5859 | fi | |
10f2d63a VZ |
5860 | |
5861 | ||
1e6feb95 | 5862 | eval "$ac_cv_use_button" |
10f2d63a | 5863 | if test "$no_cache" != 1; then |
1e6feb95 | 5864 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5865 | fi |
5866 | ||
1e6feb95 | 5867 | if test "$wxUSE_BUTTON" = yes; then |
a0b9e27f | 5868 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5869 | else |
a0b9e27f | 5870 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5871 | fi |
a0b9e27f | 5872 | |
10f2d63a | 5873 | |
a0b9e27f | 5874 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
3bce6687 | 5875 | echo "configure:5876: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5876 | no_cache=0 |
5877 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5878 | if test "${enable_bmpbutton+set}" = set; then | |
5879 | enableval="$enable_bmpbutton" | |
a0b9e27f | 5880 | |
10f2d63a VZ |
5881 | if test "$enableval" = yes; then |
5882 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5883 | else | |
5884 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5885 | fi | |
a0b9e27f | 5886 | |
10f2d63a | 5887 | else |
a0b9e27f | 5888 | |
10f2d63a VZ |
5889 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5890 | if test "x$LINE" != x ; then | |
5891 | eval "DEFAULT_$LINE" | |
5892 | else | |
5893 | no_cache=1 | |
5894 | fi | |
5895 | ||
5896 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
a0b9e27f MB |
5897 | |
5898 | fi | |
10f2d63a VZ |
5899 | |
5900 | ||
5901 | eval "$ac_cv_use_bmpbutton" | |
5902 | if test "$no_cache" != 1; then | |
5903 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5904 | fi | |
5905 | ||
5906 | if test "$wxUSE_BMPBUTTON" = yes; then | |
a0b9e27f | 5907 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5908 | else |
a0b9e27f | 5909 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5910 | fi |
a0b9e27f | 5911 | |
10f2d63a | 5912 | |
a0b9e27f | 5913 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
3bce6687 | 5914 | echo "configure:5915: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5915 | no_cache=0 |
5916 | # Check whether --enable-calendar or --disable-calendar was given. | |
5917 | if test "${enable_calendar+set}" = set; then | |
5918 | enableval="$enable_calendar" | |
a0b9e27f | 5919 | |
1e6feb95 VZ |
5920 | if test "$enableval" = yes; then |
5921 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5922 | else | |
5923 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5924 | fi | |
a0b9e27f | 5925 | |
1e6feb95 | 5926 | else |
a0b9e27f | 5927 | |
1e6feb95 VZ |
5928 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
5929 | if test "x$LINE" != x ; then | |
5930 | eval "DEFAULT_$LINE" | |
5931 | else | |
5932 | no_cache=1 | |
5933 | fi | |
5934 | ||
5935 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
a0b9e27f MB |
5936 | |
5937 | fi | |
1e6feb95 VZ |
5938 | |
5939 | ||
5940 | eval "$ac_cv_use_calendar" | |
5941 | if test "$no_cache" != 1; then | |
5942 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5943 | fi | |
5944 | ||
5945 | if test "$wxUSE_CALCTRL" = yes; then | |
a0b9e27f | 5946 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5947 | else |
a0b9e27f | 5948 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5949 | fi |
a0b9e27f | 5950 | |
1e6feb95 | 5951 | |
a0b9e27f | 5952 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 |
3bce6687 | 5953 | echo "configure:5954: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5954 | no_cache=0 |
5955 | # Check whether --enable-caret or --disable-caret was given. | |
5956 | if test "${enable_caret+set}" = set; then | |
5957 | enableval="$enable_caret" | |
a0b9e27f | 5958 | |
1e6feb95 VZ |
5959 | if test "$enableval" = yes; then |
5960 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5961 | else | |
5962 | ac_cv_use_caret='wxUSE_CARET=no' | |
5963 | fi | |
a0b9e27f | 5964 | |
1e6feb95 | 5965 | else |
a0b9e27f | 5966 | |
1e6feb95 VZ |
5967 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
5968 | if test "x$LINE" != x ; then | |
5969 | eval "DEFAULT_$LINE" | |
5970 | else | |
5971 | no_cache=1 | |
5972 | fi | |
5973 | ||
5974 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
a0b9e27f MB |
5975 | |
5976 | fi | |
1e6feb95 VZ |
5977 | |
5978 | ||
5979 | eval "$ac_cv_use_caret" | |
5980 | if test "$no_cache" != 1; then | |
5981 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5982 | fi | |
5983 | ||
5984 | if test "$wxUSE_CARET" = yes; then | |
a0b9e27f | 5985 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5986 | else |
a0b9e27f | 5987 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5988 | fi |
a0b9e27f | 5989 | |
1e6feb95 | 5990 | |
a0b9e27f | 5991 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
3bce6687 | 5992 | echo "configure:5993: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5993 | no_cache=0 |
5994 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5995 | if test "${enable_checkbox+set}" = set; then | |
5996 | enableval="$enable_checkbox" | |
a0b9e27f | 5997 | |
10f2d63a VZ |
5998 | if test "$enableval" = yes; then |
5999 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6000 | else | |
6001 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6002 | fi | |
a0b9e27f | 6003 | |
10f2d63a | 6004 | else |
a0b9e27f | 6005 | |
10f2d63a VZ |
6006 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6007 | if test "x$LINE" != x ; then | |
6008 | eval "DEFAULT_$LINE" | |
6009 | else | |
6010 | no_cache=1 | |
6011 | fi | |
6012 | ||
6013 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
a0b9e27f MB |
6014 | |
6015 | fi | |
10f2d63a VZ |
6016 | |
6017 | ||
6018 | eval "$ac_cv_use_checkbox" | |
6019 | if test "$no_cache" != 1; then | |
6020 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6021 | fi | |
6022 | ||
6023 | if test "$wxUSE_CHECKBOX" = yes; then | |
a0b9e27f | 6024 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6025 | else |
a0b9e27f | 6026 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6027 | fi |
a0b9e27f | 6028 | |
10f2d63a | 6029 | |
a0b9e27f | 6030 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
3bce6687 | 6031 | echo "configure:6032: checking for --enable-checklst" >&5 |
10f2d63a VZ |
6032 | no_cache=0 |
6033 | # Check whether --enable-checklst or --disable-checklst was given. | |
6034 | if test "${enable_checklst+set}" = set; then | |
6035 | enableval="$enable_checklst" | |
a0b9e27f | 6036 | |
10f2d63a VZ |
6037 | if test "$enableval" = yes; then |
6038 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6039 | else | |
6040 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6041 | fi | |
a0b9e27f | 6042 | |
10f2d63a | 6043 | else |
a0b9e27f | 6044 | |
10f2d63a VZ |
6045 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6046 | if test "x$LINE" != x ; then | |
6047 | eval "DEFAULT_$LINE" | |
6048 | else | |
6049 | no_cache=1 | |
6050 | fi | |
6051 | ||
6052 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
a0b9e27f MB |
6053 | |
6054 | fi | |
10f2d63a VZ |
6055 | |
6056 | ||
6057 | eval "$ac_cv_use_checklst" | |
6058 | if test "$no_cache" != 1; then | |
6059 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6060 | fi | |
6061 | ||
6062 | if test "$wxUSE_CHECKLST" = yes; then | |
a0b9e27f | 6063 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6064 | else |
a0b9e27f | 6065 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6066 | fi |
a0b9e27f | 6067 | |
10f2d63a | 6068 | |
a0b9e27f | 6069 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
3bce6687 | 6070 | echo "configure:6071: checking for --enable-choice" >&5 |
10f2d63a VZ |
6071 | no_cache=0 |
6072 | # Check whether --enable-choice or --disable-choice was given. | |
6073 | if test "${enable_choice+set}" = set; then | |
6074 | enableval="$enable_choice" | |
a0b9e27f | 6075 | |
10f2d63a VZ |
6076 | if test "$enableval" = yes; then |
6077 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6078 | else | |
6079 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6080 | fi | |
a0b9e27f | 6081 | |
10f2d63a | 6082 | else |
a0b9e27f | 6083 | |
10f2d63a VZ |
6084 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6085 | if test "x$LINE" != x ; then | |
6086 | eval "DEFAULT_$LINE" | |
6087 | else | |
6088 | no_cache=1 | |
6089 | fi | |
6090 | ||
6091 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
a0b9e27f MB |
6092 | |
6093 | fi | |
10f2d63a VZ |
6094 | |
6095 | ||
6096 | eval "$ac_cv_use_choice" | |
6097 | if test "$no_cache" != 1; then | |
6098 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6099 | fi | |
6100 | ||
6101 | if test "$wxUSE_CHOICE" = yes; then | |
a0b9e27f | 6102 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6103 | else |
a0b9e27f | 6104 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6105 | fi |
a0b9e27f | 6106 | |
10f2d63a | 6107 | |
a0b9e27f | 6108 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
3bce6687 | 6109 | echo "configure:6110: checking for --enable-combobox" >&5 |
10f2d63a VZ |
6110 | no_cache=0 |
6111 | # Check whether --enable-combobox or --disable-combobox was given. | |
6112 | if test "${enable_combobox+set}" = set; then | |
6113 | enableval="$enable_combobox" | |
a0b9e27f | 6114 | |
10f2d63a VZ |
6115 | if test "$enableval" = yes; then |
6116 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6117 | else | |
6118 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6119 | fi | |
a0b9e27f | 6120 | |
10f2d63a | 6121 | else |
a0b9e27f | 6122 | |
10f2d63a VZ |
6123 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6124 | if test "x$LINE" != x ; then | |
6125 | eval "DEFAULT_$LINE" | |
6126 | else | |
6127 | no_cache=1 | |
6128 | fi | |
6129 | ||
6130 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
a0b9e27f MB |
6131 | |
6132 | fi | |
10f2d63a VZ |
6133 | |
6134 | ||
6135 | eval "$ac_cv_use_combobox" | |
6136 | if test "$no_cache" != 1; then | |
6137 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6138 | fi | |
6139 | ||
6140 | if test "$wxUSE_COMBOBOX" = yes; then | |
a0b9e27f | 6141 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6142 | else |
a0b9e27f | 6143 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6144 | fi |
a0b9e27f | 6145 | |
10f2d63a | 6146 | |
a0b9e27f | 6147 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
3bce6687 | 6148 | echo "configure:6149: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6149 | no_cache=0 |
6150 | # Check whether --enable-gauge or --disable-gauge was given. | |
6151 | if test "${enable_gauge+set}" = set; then | |
6152 | enableval="$enable_gauge" | |
a0b9e27f | 6153 | |
10f2d63a VZ |
6154 | if test "$enableval" = yes; then |
6155 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6156 | else | |
6157 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6158 | fi | |
a0b9e27f | 6159 | |
10f2d63a | 6160 | else |
a0b9e27f | 6161 | |
10f2d63a VZ |
6162 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6163 | if test "x$LINE" != x ; then | |
6164 | eval "DEFAULT_$LINE" | |
6165 | else | |
6166 | no_cache=1 | |
6167 | fi | |
6168 | ||
6169 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
a0b9e27f MB |
6170 | |
6171 | fi | |
10f2d63a VZ |
6172 | |
6173 | ||
6174 | eval "$ac_cv_use_gauge" | |
6175 | if test "$no_cache" != 1; then | |
6176 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6177 | fi | |
6178 | ||
6179 | if test "$wxUSE_GAUGE" = yes; then | |
a0b9e27f | 6180 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6181 | else |
a0b9e27f | 6182 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6183 | fi |
a0b9e27f | 6184 | |
10f2d63a | 6185 | |
a0b9e27f | 6186 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
3bce6687 | 6187 | echo "configure:6188: checking for --enable-grid" >&5 |
10f2d63a VZ |
6188 | no_cache=0 |
6189 | # Check whether --enable-grid or --disable-grid was given. | |
6190 | if test "${enable_grid+set}" = set; then | |
6191 | enableval="$enable_grid" | |
a0b9e27f | 6192 | |
10f2d63a VZ |
6193 | if test "$enableval" = yes; then |
6194 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6195 | else | |
6196 | ac_cv_use_grid='wxUSE_GRID=no' | |
6197 | fi | |
a0b9e27f | 6198 | |
10f2d63a | 6199 | else |
a0b9e27f | 6200 | |
10f2d63a VZ |
6201 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6202 | if test "x$LINE" != x ; then | |
6203 | eval "DEFAULT_$LINE" | |
6204 | else | |
6205 | no_cache=1 | |
6206 | fi | |
6207 | ||
6208 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
a0b9e27f MB |
6209 | |
6210 | fi | |
10f2d63a VZ |
6211 | |
6212 | ||
6213 | eval "$ac_cv_use_grid" | |
6214 | if test "$no_cache" != 1; then | |
6215 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6216 | fi | |
6217 | ||
6218 | if test "$wxUSE_GRID" = yes; then | |
a0b9e27f | 6219 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6220 | else |
a0b9e27f | 6221 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6222 | fi |
a0b9e27f | 6223 | |
10f2d63a | 6224 | |
a0b9e27f | 6225 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
3bce6687 | 6226 | echo "configure:6227: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6227 | no_cache=0 |
6228 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6229 | if test "${enable_newgrid+set}" = set; then | |
6230 | enableval="$enable_newgrid" | |
a0b9e27f | 6231 | |
10f2d63a VZ |
6232 | if test "$enableval" = yes; then |
6233 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6234 | else | |
6235 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6236 | fi | |
a0b9e27f | 6237 | |
10f2d63a | 6238 | else |
a0b9e27f | 6239 | |
10f2d63a VZ |
6240 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6241 | if test "x$LINE" != x ; then | |
6242 | eval "DEFAULT_$LINE" | |
6243 | else | |
6244 | no_cache=1 | |
6245 | fi | |
6246 | ||
6247 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
a0b9e27f MB |
6248 | |
6249 | fi | |
10f2d63a VZ |
6250 | |
6251 | ||
6252 | eval "$ac_cv_use_newgrid" | |
6253 | if test "$no_cache" != 1; then | |
6254 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6255 | fi | |
6256 | ||
6257 | if test "$wxUSE_NEW_GRID" = yes; then | |
a0b9e27f | 6258 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6259 | else |
a0b9e27f | 6260 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6261 | fi |
a0b9e27f | 6262 | |
10f2d63a | 6263 | |
a0b9e27f | 6264 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
3bce6687 | 6265 | echo "configure:6266: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6266 | no_cache=0 |
6267 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6268 | if test "${enable_imaglist+set}" = set; then | |
6269 | enableval="$enable_imaglist" | |
a0b9e27f | 6270 | |
10f2d63a VZ |
6271 | if test "$enableval" = yes; then |
6272 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6273 | else | |
6274 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6275 | fi | |
a0b9e27f | 6276 | |
10f2d63a | 6277 | else |
a0b9e27f | 6278 | |
10f2d63a VZ |
6279 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6280 | if test "x$LINE" != x ; then | |
6281 | eval "DEFAULT_$LINE" | |
6282 | else | |
6283 | no_cache=1 | |
6284 | fi | |
6285 | ||
6286 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
a0b9e27f MB |
6287 | |
6288 | fi | |
10f2d63a VZ |
6289 | |
6290 | ||
6291 | eval "$ac_cv_use_imaglist" | |
6292 | if test "$no_cache" != 1; then | |
6293 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6294 | fi | |
6295 | ||
6296 | if test "$wxUSE_IMAGLIST" = yes; then | |
a0b9e27f | 6297 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6298 | else |
a0b9e27f | 6299 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6300 | fi |
a0b9e27f | 6301 | |
10f2d63a | 6302 | |
a0b9e27f | 6303 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
3bce6687 | 6304 | echo "configure:6305: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6305 | no_cache=0 |
6306 | # Check whether --enable-listbox or --disable-listbox was given. | |
6307 | if test "${enable_listbox+set}" = set; then | |
6308 | enableval="$enable_listbox" | |
a0b9e27f | 6309 | |
10f2d63a VZ |
6310 | if test "$enableval" = yes; then |
6311 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6312 | else | |
6313 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6314 | fi | |
a0b9e27f | 6315 | |
10f2d63a | 6316 | else |
a0b9e27f | 6317 | |
10f2d63a VZ |
6318 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6319 | if test "x$LINE" != x ; then | |
6320 | eval "DEFAULT_$LINE" | |
6321 | else | |
6322 | no_cache=1 | |
6323 | fi | |
6324 | ||
6325 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
a0b9e27f MB |
6326 | |
6327 | fi | |
10f2d63a VZ |
6328 | |
6329 | ||
6330 | eval "$ac_cv_use_listbox" | |
6331 | if test "$no_cache" != 1; then | |
6332 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6333 | fi | |
6334 | ||
6335 | if test "$wxUSE_LISTBOX" = yes; then | |
a0b9e27f | 6336 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6337 | else |
a0b9e27f | 6338 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6339 | fi |
a0b9e27f | 6340 | |
10f2d63a | 6341 | |
a0b9e27f | 6342 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
3bce6687 | 6343 | echo "configure:6344: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6344 | no_cache=0 |
6345 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6346 | if test "${enable_listctrl+set}" = set; then | |
6347 | enableval="$enable_listctrl" | |
a0b9e27f | 6348 | |
10f2d63a VZ |
6349 | if test "$enableval" = yes; then |
6350 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6351 | else | |
6352 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6353 | fi | |
a0b9e27f | 6354 | |
10f2d63a | 6355 | else |
a0b9e27f | 6356 | |
10f2d63a VZ |
6357 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6358 | if test "x$LINE" != x ; then | |
6359 | eval "DEFAULT_$LINE" | |
6360 | else | |
6361 | no_cache=1 | |
6362 | fi | |
6363 | ||
6364 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
a0b9e27f MB |
6365 | |
6366 | fi | |
10f2d63a VZ |
6367 | |
6368 | ||
6369 | eval "$ac_cv_use_listctrl" | |
6370 | if test "$no_cache" != 1; then | |
6371 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6372 | fi | |
6373 | ||
6374 | if test "$wxUSE_LISTCTRL" = yes; then | |
a0b9e27f | 6375 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6376 | else |
a0b9e27f | 6377 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6378 | fi |
a0b9e27f | 6379 | |
10f2d63a | 6380 | |
a0b9e27f | 6381 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
3bce6687 | 6382 | echo "configure:6383: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6383 | no_cache=0 |
6384 | # Check whether --enable-notebook or --disable-notebook was given. | |
6385 | if test "${enable_notebook+set}" = set; then | |
6386 | enableval="$enable_notebook" | |
a0b9e27f | 6387 | |
10f2d63a VZ |
6388 | if test "$enableval" = yes; then |
6389 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6390 | else | |
6391 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6392 | fi | |
a0b9e27f | 6393 | |
10f2d63a | 6394 | else |
a0b9e27f | 6395 | |
10f2d63a VZ |
6396 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6397 | if test "x$LINE" != x ; then | |
6398 | eval "DEFAULT_$LINE" | |
6399 | else | |
6400 | no_cache=1 | |
6401 | fi | |
6402 | ||
6403 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
a0b9e27f MB |
6404 | |
6405 | fi | |
10f2d63a VZ |
6406 | |
6407 | ||
6408 | eval "$ac_cv_use_notebook" | |
6409 | if test "$no_cache" != 1; then | |
6410 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6411 | fi | |
6412 | ||
6413 | if test "$wxUSE_NOTEBOOK" = yes; then | |
a0b9e27f | 6414 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6415 | else |
a0b9e27f | 6416 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6417 | fi |
a0b9e27f | 6418 | |
10f2d63a | 6419 | |
a0b9e27f | 6420 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
3bce6687 | 6421 | echo "configure:6422: checking for --enable-propsheet" >&5 |
24176f2c GD |
6422 | no_cache=0 |
6423 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6424 | if test "${enable_propsheet+set}" = set; then | |
6425 | enableval="$enable_propsheet" | |
a0b9e27f | 6426 | |
24176f2c GD |
6427 | if test "$enableval" = yes; then |
6428 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6429 | else | |
6430 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6431 | fi | |
a0b9e27f | 6432 | |
24176f2c | 6433 | else |
a0b9e27f | 6434 | |
24176f2c GD |
6435 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` |
6436 | if test "x$LINE" != x ; then | |
6437 | eval "DEFAULT_$LINE" | |
6438 | else | |
6439 | no_cache=1 | |
6440 | fi | |
6441 | ||
6442 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
a0b9e27f MB |
6443 | |
6444 | fi | |
24176f2c GD |
6445 | |
6446 | ||
6447 | eval "$ac_cv_use_propsheet" | |
6448 | if test "$no_cache" != 1; then | |
6449 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6450 | fi | |
6451 | ||
6452 | if test "$wxUSE_PROPSHEET" = yes; then | |
a0b9e27f | 6453 | echo "$ac_t""yes" 1>&6 |
24176f2c | 6454 | else |
a0b9e27f | 6455 | echo "$ac_t""no" 1>&6 |
24176f2c | 6456 | fi |
a0b9e27f | 6457 | |
24176f2c | 6458 | |
a0b9e27f | 6459 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
3bce6687 | 6460 | echo "configure:6461: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6461 | no_cache=0 |
6462 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6463 | if test "${enable_radiobox+set}" = set; then | |
6464 | enableval="$enable_radiobox" | |
a0b9e27f | 6465 | |
10f2d63a VZ |
6466 | if test "$enableval" = yes; then |
6467 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6468 | else | |
6469 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6470 | fi | |
a0b9e27f | 6471 | |
10f2d63a | 6472 | else |
a0b9e27f | 6473 | |
10f2d63a VZ |
6474 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6475 | if test "x$LINE" != x ; then | |
6476 | eval "DEFAULT_$LINE" | |
6477 | else | |
6478 | no_cache=1 | |
6479 | fi | |
6480 | ||
6481 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
a0b9e27f MB |
6482 | |
6483 | fi | |
10f2d63a VZ |
6484 | |
6485 | ||
6486 | eval "$ac_cv_use_radiobox" | |
6487 | if test "$no_cache" != 1; then | |
6488 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6489 | fi | |
6490 | ||
6491 | if test "$wxUSE_RADIOBOX" = yes; then | |
a0b9e27f | 6492 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6493 | else |
a0b9e27f | 6494 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6495 | fi |
a0b9e27f | 6496 | |
10f2d63a | 6497 | |
a0b9e27f | 6498 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
3bce6687 | 6499 | echo "configure:6500: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6500 | no_cache=0 |
6501 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6502 | if test "${enable_radiobtn+set}" = set; then | |
6503 | enableval="$enable_radiobtn" | |
a0b9e27f | 6504 | |
10f2d63a VZ |
6505 | if test "$enableval" = yes; then |
6506 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6507 | else | |
6508 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6509 | fi | |
a0b9e27f | 6510 | |
10f2d63a | 6511 | else |
a0b9e27f | 6512 | |
10f2d63a VZ |
6513 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6514 | if test "x$LINE" != x ; then | |
6515 | eval "DEFAULT_$LINE" | |
6516 | else | |
6517 | no_cache=1 | |
6518 | fi | |
6519 | ||
6520 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
a0b9e27f MB |
6521 | |
6522 | fi | |
10f2d63a VZ |
6523 | |
6524 | ||
6525 | eval "$ac_cv_use_radiobtn" | |
6526 | if test "$no_cache" != 1; then | |
6527 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6528 | fi | |
6529 | ||
6530 | if test "$wxUSE_RADIOBTN" = yes; then | |
a0b9e27f | 6531 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6532 | else |
a0b9e27f | 6533 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6534 | fi |
a0b9e27f | 6535 | |
10f2d63a | 6536 | |
a0b9e27f | 6537 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
3bce6687 | 6538 | echo "configure:6539: checking for --enable-sash" >&5 |
10f2d63a VZ |
6539 | no_cache=0 |
6540 | # Check whether --enable-sash or --disable-sash was given. | |
6541 | if test "${enable_sash+set}" = set; then | |
6542 | enableval="$enable_sash" | |
a0b9e27f | 6543 | |
10f2d63a VZ |
6544 | if test "$enableval" = yes; then |
6545 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6546 | else | |
6547 | ac_cv_use_sash='wxUSE_SASH=no' | |
6548 | fi | |
a0b9e27f | 6549 | |
10f2d63a | 6550 | else |
a0b9e27f | 6551 | |
10f2d63a VZ |
6552 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6553 | if test "x$LINE" != x ; then | |
6554 | eval "DEFAULT_$LINE" | |
6555 | else | |
6556 | no_cache=1 | |
6557 | fi | |
6558 | ||
6559 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
a0b9e27f MB |
6560 | |
6561 | fi | |
10f2d63a VZ |
6562 | |
6563 | ||
6564 | eval "$ac_cv_use_sash" | |
6565 | if test "$no_cache" != 1; then | |
6566 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6567 | fi | |
6568 | ||
6569 | if test "$wxUSE_SASH" = yes; then | |
a0b9e27f | 6570 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6571 | else |
a0b9e27f | 6572 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6573 | fi |
a0b9e27f | 6574 | |
10f2d63a | 6575 | |
a0b9e27f | 6576 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
3bce6687 | 6577 | echo "configure:6578: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6578 | no_cache=0 |
6579 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6580 | if test "${enable_scrollbar+set}" = set; then | |
6581 | enableval="$enable_scrollbar" | |
a0b9e27f | 6582 | |
10f2d63a VZ |
6583 | if test "$enableval" = yes; then |
6584 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6585 | else | |
6586 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6587 | fi | |
a0b9e27f | 6588 | |
10f2d63a | 6589 | else |
a0b9e27f | 6590 | |
10f2d63a VZ |
6591 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6592 | if test "x$LINE" != x ; then | |
6593 | eval "DEFAULT_$LINE" | |
6594 | else | |
6595 | no_cache=1 | |
6596 | fi | |
6597 | ||
6598 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
a0b9e27f MB |
6599 | |
6600 | fi | |
10f2d63a VZ |
6601 | |
6602 | ||
6603 | eval "$ac_cv_use_scrollbar" | |
6604 | if test "$no_cache" != 1; then | |
6605 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6606 | fi | |
6607 | ||
6608 | if test "$wxUSE_SCROLLBAR" = yes; then | |
a0b9e27f | 6609 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6610 | else |
a0b9e27f | 6611 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6612 | fi |
a0b9e27f | 6613 | |
10f2d63a | 6614 | |
a0b9e27f | 6615 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
3bce6687 | 6616 | echo "configure:6617: checking for --enable-slider" >&5 |
10f2d63a VZ |
6617 | no_cache=0 |
6618 | # Check whether --enable-slider or --disable-slider was given. | |
6619 | if test "${enable_slider+set}" = set; then | |
6620 | enableval="$enable_slider" | |
a0b9e27f | 6621 | |
10f2d63a VZ |
6622 | if test "$enableval" = yes; then |
6623 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6624 | else | |
6625 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6626 | fi | |
a0b9e27f | 6627 | |
10f2d63a | 6628 | else |
a0b9e27f | 6629 | |
10f2d63a VZ |
6630 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6631 | if test "x$LINE" != x ; then | |
6632 | eval "DEFAULT_$LINE" | |
6633 | else | |
6634 | no_cache=1 | |
6635 | fi | |
6636 | ||
6637 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
a0b9e27f MB |
6638 | |
6639 | fi | |
10f2d63a VZ |
6640 | |
6641 | ||
6642 | eval "$ac_cv_use_slider" | |
6643 | if test "$no_cache" != 1; then | |
6644 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6645 | fi | |
6646 | ||
6647 | if test "$wxUSE_SLIDER" = yes; then | |
a0b9e27f | 6648 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6649 | else |
a0b9e27f | 6650 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6651 | fi |
a0b9e27f | 6652 | |
10f2d63a | 6653 | |
a0b9e27f | 6654 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
3bce6687 | 6655 | echo "configure:6656: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6656 | no_cache=0 |
6657 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6658 | if test "${enable_spinbtn+set}" = set; then | |
6659 | enableval="$enable_spinbtn" | |
a0b9e27f | 6660 | |
10f2d63a VZ |
6661 | if test "$enableval" = yes; then |
6662 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6663 | else | |
6664 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6665 | fi | |
a0b9e27f | 6666 | |
10f2d63a | 6667 | else |
a0b9e27f | 6668 | |
10f2d63a VZ |
6669 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6670 | if test "x$LINE" != x ; then | |
6671 | eval "DEFAULT_$LINE" | |
6672 | else | |
6673 | no_cache=1 | |
6674 | fi | |
6675 | ||
6676 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
a0b9e27f MB |
6677 | |
6678 | fi | |
10f2d63a VZ |
6679 | |
6680 | ||
6681 | eval "$ac_cv_use_spinbtn" | |
6682 | if test "$no_cache" != 1; then | |
6683 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6684 | fi | |
6685 | ||
6686 | if test "$wxUSE_SPINBTN" = yes; then | |
a0b9e27f | 6687 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6688 | else |
a0b9e27f | 6689 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6690 | fi |
a0b9e27f | 6691 | |
10f2d63a | 6692 | |
a0b9e27f | 6693 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
3bce6687 | 6694 | echo "configure:6695: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6695 | no_cache=0 |
6696 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6697 | if test "${enable_spinctrl+set}" = set; then | |
6698 | enableval="$enable_spinctrl" | |
a0b9e27f | 6699 | |
56cfaa52 RR |
6700 | if test "$enableval" = yes; then |
6701 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6702 | else | |
6703 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6704 | fi | |
a0b9e27f | 6705 | |
56cfaa52 | 6706 | else |
a0b9e27f | 6707 | |
56cfaa52 RR |
6708 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6709 | if test "x$LINE" != x ; then | |
6710 | eval "DEFAULT_$LINE" | |
6711 | else | |
6712 | no_cache=1 | |
6713 | fi | |
6714 | ||
6715 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
a0b9e27f MB |
6716 | |
6717 | fi | |
56cfaa52 RR |
6718 | |
6719 | ||
6720 | eval "$ac_cv_use_spinctrl" | |
6721 | if test "$no_cache" != 1; then | |
6722 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6723 | fi | |
6724 | ||
6725 | if test "$wxUSE_SPINCTRL" = yes; then | |
a0b9e27f | 6726 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6727 | else |
a0b9e27f | 6728 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6729 | fi |
a0b9e27f | 6730 | |
56cfaa52 | 6731 | |
a0b9e27f | 6732 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
3bce6687 | 6733 | echo "configure:6734: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6734 | no_cache=0 |
6735 | # Check whether --enable-splitter or --disable-splitter was given. | |
6736 | if test "${enable_splitter+set}" = set; then | |
6737 | enableval="$enable_splitter" | |
a0b9e27f | 6738 | |
10f2d63a VZ |
6739 | if test "$enableval" = yes; then |
6740 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6741 | else | |
6742 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6743 | fi | |
a0b9e27f | 6744 | |
10f2d63a | 6745 | else |
a0b9e27f | 6746 | |
10f2d63a VZ |
6747 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6748 | if test "x$LINE" != x ; then | |
6749 | eval "DEFAULT_$LINE" | |
6750 | else | |
6751 | no_cache=1 | |
6752 | fi | |
6753 | ||
6754 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
a0b9e27f MB |
6755 | |
6756 | fi | |
10f2d63a VZ |
6757 | |
6758 | ||
6759 | eval "$ac_cv_use_splitter" | |
6760 | if test "$no_cache" != 1; then | |
6761 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6762 | fi | |
6763 | ||
6764 | if test "$wxUSE_SPLITTER" = yes; then | |
a0b9e27f | 6765 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6766 | else |
a0b9e27f | 6767 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6768 | fi |
a0b9e27f | 6769 | |
10f2d63a | 6770 | |
a0b9e27f | 6771 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
3bce6687 | 6772 | echo "configure:6773: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6773 | no_cache=0 |
6774 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6775 | if test "${enable_statbmp+set}" = set; then | |
6776 | enableval="$enable_statbmp" | |
a0b9e27f | 6777 | |
10f2d63a VZ |
6778 | if test "$enableval" = yes; then |
6779 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6780 | else | |
6781 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6782 | fi | |
a0b9e27f | 6783 | |
10f2d63a | 6784 | else |
a0b9e27f | 6785 | |
10f2d63a VZ |
6786 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6787 | if test "x$LINE" != x ; then | |
6788 | eval "DEFAULT_$LINE" | |
6789 | else | |
6790 | no_cache=1 | |
6791 | fi | |
6792 | ||
6793 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
a0b9e27f MB |
6794 | |
6795 | fi | |
10f2d63a VZ |
6796 | |
6797 | ||
6798 | eval "$ac_cv_use_statbmp" | |
6799 | if test "$no_cache" != 1; then | |
6800 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6801 | fi | |
6802 | ||
6803 | if test "$wxUSE_STATBMP" = yes; then | |
a0b9e27f | 6804 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6805 | else |
a0b9e27f | 6806 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6807 | fi |
a0b9e27f | 6808 | |
10f2d63a | 6809 | |
a0b9e27f | 6810 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
3bce6687 | 6811 | echo "configure:6812: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6812 | no_cache=0 |
6813 | # Check whether --enable-statbox or --disable-statbox was given. | |
6814 | if test "${enable_statbox+set}" = set; then | |
6815 | enableval="$enable_statbox" | |
a0b9e27f | 6816 | |
10f2d63a VZ |
6817 | if test "$enableval" = yes; then |
6818 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6819 | else | |
6820 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6821 | fi | |
a0b9e27f | 6822 | |
10f2d63a | 6823 | else |
a0b9e27f | 6824 | |
10f2d63a VZ |
6825 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6826 | if test "x$LINE" != x ; then | |
6827 | eval "DEFAULT_$LINE" | |
6828 | else | |
6829 | no_cache=1 | |
6830 | fi | |
6831 | ||
6832 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
a0b9e27f MB |
6833 | |
6834 | fi | |
10f2d63a VZ |
6835 | |
6836 | ||
6837 | eval "$ac_cv_use_statbox" | |
6838 | if test "$no_cache" != 1; then | |
6839 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6840 | fi | |
6841 | ||
6842 | if test "$wxUSE_STATBOX" = yes; then | |
a0b9e27f | 6843 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6844 | else |
a0b9e27f | 6845 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6846 | fi |
a0b9e27f | 6847 | |
10f2d63a | 6848 | |
a0b9e27f | 6849 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
3bce6687 | 6850 | echo "configure:6851: checking for --enable-statline" >&5 |
10f2d63a VZ |
6851 | no_cache=0 |
6852 | # Check whether --enable-statline or --disable-statline was given. | |
6853 | if test "${enable_statline+set}" = set; then | |
6854 | enableval="$enable_statline" | |
a0b9e27f | 6855 | |
10f2d63a VZ |
6856 | if test "$enableval" = yes; then |
6857 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6858 | else | |
6859 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6860 | fi | |
a0b9e27f | 6861 | |
10f2d63a | 6862 | else |
a0b9e27f | 6863 | |
10f2d63a VZ |
6864 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6865 | if test "x$LINE" != x ; then | |
6866 | eval "DEFAULT_$LINE" | |
6867 | else | |
6868 | no_cache=1 | |
6869 | fi | |
6870 | ||
6871 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
a0b9e27f MB |
6872 | |
6873 | fi | |
10f2d63a VZ |
6874 | |
6875 | ||
6876 | eval "$ac_cv_use_statline" | |
6877 | if test "$no_cache" != 1; then | |
6878 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6879 | fi | |
6880 | ||
6881 | if test "$wxUSE_STATLINE" = yes; then | |
a0b9e27f | 6882 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6883 | else |
a0b9e27f | 6884 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6885 | fi |
a0b9e27f | 6886 | |
10f2d63a | 6887 | |
a0b9e27f | 6888 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
3bce6687 | 6889 | echo "configure:6890: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6890 | no_cache=0 |
6891 | # Check whether --enable-stattext or --disable-stattext was given. | |
6892 | if test "${enable_stattext+set}" = set; then | |
6893 | enableval="$enable_stattext" | |
a0b9e27f | 6894 | |
1e6feb95 VZ |
6895 | if test "$enableval" = yes; then |
6896 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6897 | else | |
6898 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6899 | fi | |
a0b9e27f | 6900 | |
1e6feb95 | 6901 | else |
a0b9e27f | 6902 | |
1e6feb95 VZ |
6903 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
6904 | if test "x$LINE" != x ; then | |
6905 | eval "DEFAULT_$LINE" | |
6906 | else | |
6907 | no_cache=1 | |
6908 | fi | |
6909 | ||
6910 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
a0b9e27f MB |
6911 | |
6912 | fi | |
1e6feb95 VZ |
6913 | |
6914 | ||
6915 | eval "$ac_cv_use_stattext" | |
6916 | if test "$no_cache" != 1; then | |
6917 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6918 | fi | |
6919 | ||
6920 | if test "$wxUSE_STATTEXT" = yes; then | |
a0b9e27f | 6921 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6922 | else |
a0b9e27f | 6923 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6924 | fi |
a0b9e27f | 6925 | |
1e6feb95 | 6926 | |
a0b9e27f | 6927 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
3bce6687 | 6928 | echo "configure:6929: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6929 | no_cache=0 |
6930 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6931 | if test "${enable_statusbar+set}" = set; then | |
6932 | enableval="$enable_statusbar" | |
a0b9e27f | 6933 | |
10f2d63a VZ |
6934 | if test "$enableval" = yes; then |
6935 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6936 | else | |
6937 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6938 | fi | |
a0b9e27f | 6939 | |
10f2d63a | 6940 | else |
a0b9e27f | 6941 | |
10f2d63a VZ |
6942 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6943 | if test "x$LINE" != x ; then | |
6944 | eval "DEFAULT_$LINE" | |
6945 | else | |
6946 | no_cache=1 | |
6947 | fi | |
6948 | ||
6949 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
a0b9e27f MB |
6950 | |
6951 | fi | |
10f2d63a VZ |
6952 | |
6953 | ||
6954 | eval "$ac_cv_use_statusbar" | |
6955 | if test "$no_cache" != 1; then | |
6956 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6957 | fi | |
6958 | ||
6959 | if test "$wxUSE_STATUSBAR" = yes; then | |
a0b9e27f | 6960 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6961 | else |
a0b9e27f | 6962 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6963 | fi |
a0b9e27f | 6964 | |
10f2d63a | 6965 | |
a0b9e27f | 6966 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
3bce6687 | 6967 | echo "configure:6968: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6968 | no_cache=0 |
6969 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6970 | if test "${enable_tabdialog+set}" = set; then | |
6971 | enableval="$enable_tabdialog" | |
a0b9e27f | 6972 | |
10f2d63a VZ |
6973 | if test "$enableval" = yes; then |
6974 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6975 | else | |
6976 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6977 | fi | |
a0b9e27f | 6978 | |
10f2d63a | 6979 | else |
a0b9e27f | 6980 | |
10f2d63a VZ |
6981 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6982 | if test "x$LINE" != x ; then | |
6983 | eval "DEFAULT_$LINE" | |
6984 | else | |
6985 | no_cache=1 | |
6986 | fi | |
6987 | ||
6988 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
a0b9e27f MB |
6989 | |
6990 | fi | |
10f2d63a VZ |
6991 | |
6992 | ||
6993 | eval "$ac_cv_use_tabdialog" | |
6994 | if test "$no_cache" != 1; then | |
6995 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6996 | fi | |
6997 | ||
6998 | if test "$wxUSE_TABDIALOG" = yes; then | |
a0b9e27f | 6999 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7000 | else |
a0b9e27f | 7001 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7002 | fi |
a0b9e27f | 7003 | |
10f2d63a | 7004 | |
a0b9e27f | 7005 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
3bce6687 | 7006 | echo "configure:7007: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
7007 | no_cache=0 |
7008 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7009 | if test "${enable_textctrl+set}" = set; then | |
7010 | enableval="$enable_textctrl" | |
a0b9e27f | 7011 | |
1e6feb95 VZ |
7012 | if test "$enableval" = yes; then |
7013 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7014 | else | |
7015 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7016 | fi | |
a0b9e27f | 7017 | |
1e6feb95 | 7018 | else |
a0b9e27f | 7019 | |
1e6feb95 VZ |
7020 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7021 | if test "x$LINE" != x ; then | |
7022 | eval "DEFAULT_$LINE" | |
7023 | else | |
7024 | no_cache=1 | |
7025 | fi | |
7026 | ||
7027 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
a0b9e27f MB |
7028 | |
7029 | fi | |
1e6feb95 VZ |
7030 | |
7031 | ||
7032 | eval "$ac_cv_use_textctrl" | |
7033 | if test "$no_cache" != 1; then | |
7034 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7035 | fi | |
7036 | ||
7037 | if test "$wxUSE_TEXTCTRL" = yes; then | |
a0b9e27f | 7038 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7039 | else |
a0b9e27f | 7040 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7041 | fi |
a0b9e27f | 7042 | |
1e6feb95 | 7043 | |
a0b9e27f | 7044 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
3bce6687 | 7045 | echo "configure:7046: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
7046 | no_cache=0 |
7047 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7048 | if test "${enable_togglebtn+set}" = set; then | |
7049 | enableval="$enable_togglebtn" | |
a0b9e27f | 7050 | |
1db8dc4a VZ |
7051 | if test "$enableval" = yes; then |
7052 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7053 | else | |
7054 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7055 | fi | |
a0b9e27f | 7056 | |
1db8dc4a | 7057 | else |
a0b9e27f | 7058 | |
1db8dc4a VZ |
7059 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7060 | if test "x$LINE" != x ; then | |
7061 | eval "DEFAULT_$LINE" | |
7062 | else | |
7063 | no_cache=1 | |
7064 | fi | |
7065 | ||
7066 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
a0b9e27f MB |
7067 | |
7068 | fi | |
1db8dc4a VZ |
7069 | |
7070 | ||
7071 | eval "$ac_cv_use_togglebtn" | |
7072 | if test "$no_cache" != 1; then | |
7073 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7074 | fi | |
7075 | ||
7076 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
a0b9e27f | 7077 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7078 | else |
a0b9e27f | 7079 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7080 | fi |
a0b9e27f | 7081 | |
1db8dc4a | 7082 | |
a0b9e27f | 7083 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
3bce6687 | 7084 | echo "configure:7085: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
7085 | no_cache=0 |
7086 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7087 | if test "${enable_toolbar+set}" = set; then | |
7088 | enableval="$enable_toolbar" | |
a0b9e27f | 7089 | |
10f2d63a VZ |
7090 | if test "$enableval" = yes; then |
7091 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7092 | else | |
7093 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7094 | fi | |
a0b9e27f | 7095 | |
10f2d63a | 7096 | else |
a0b9e27f | 7097 | |
10f2d63a VZ |
7098 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7099 | if test "x$LINE" != x ; then | |
7100 | eval "DEFAULT_$LINE" | |
7101 | else | |
7102 | no_cache=1 | |
7103 | fi | |
7104 | ||
7105 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
a0b9e27f MB |
7106 | |
7107 | fi | |
10f2d63a VZ |
7108 | |
7109 | ||
7110 | eval "$ac_cv_use_toolbar" | |
7111 | if test "$no_cache" != 1; then | |
7112 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7113 | fi | |
7114 | ||
7115 | if test "$wxUSE_TOOLBAR" = yes; then | |
a0b9e27f | 7116 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7117 | else |
a0b9e27f | 7118 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7119 | fi |
a0b9e27f | 7120 | |
10f2d63a | 7121 | |
a0b9e27f | 7122 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
3bce6687 | 7123 | echo "configure:7124: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
7124 | no_cache=0 |
7125 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7126 | if test "${enable_tbarnative+set}" = set; then | |
7127 | enableval="$enable_tbarnative" | |
a0b9e27f | 7128 | |
360d6699 VZ |
7129 | if test "$enableval" = yes; then |
7130 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7131 | else | |
7132 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7133 | fi | |
a0b9e27f | 7134 | |
360d6699 | 7135 | else |
a0b9e27f | 7136 | |
360d6699 VZ |
7137 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7138 | if test "x$LINE" != x ; then | |
7139 | eval "DEFAULT_$LINE" | |
7140 | else | |
7141 | no_cache=1 | |
7142 | fi | |
7143 | ||
7144 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
a0b9e27f MB |
7145 | |
7146 | fi | |
360d6699 VZ |
7147 | |
7148 | ||
7149 | eval "$ac_cv_use_tbarnative" | |
7150 | if test "$no_cache" != 1; then | |
7151 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7152 | fi | |
7153 | ||
7154 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
a0b9e27f | 7155 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7156 | else |
a0b9e27f | 7157 | echo "$ac_t""no" 1>&6 |
360d6699 | 7158 | fi |
a0b9e27f | 7159 | |
360d6699 | 7160 | |
a0b9e27f | 7161 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
3bce6687 | 7162 | echo "configure:7163: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7163 | no_cache=0 |
7164 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7165 | if test "${enable_tbarsmpl+set}" = set; then | |
7166 | enableval="$enable_tbarsmpl" | |
a0b9e27f | 7167 | |
360d6699 VZ |
7168 | if test "$enableval" = yes; then |
7169 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7170 | else | |
7171 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7172 | fi | |
a0b9e27f | 7173 | |
360d6699 | 7174 | else |
a0b9e27f | 7175 | |
360d6699 VZ |
7176 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7177 | if test "x$LINE" != x ; then | |
7178 | eval "DEFAULT_$LINE" | |
7179 | else | |
7180 | no_cache=1 | |
7181 | fi | |
7182 | ||
7183 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
a0b9e27f MB |
7184 | |
7185 | fi | |
360d6699 VZ |
7186 | |
7187 | ||
7188 | eval "$ac_cv_use_tbarsmpl" | |
7189 | if test "$no_cache" != 1; then | |
7190 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7191 | fi | |
7192 | ||
7193 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
a0b9e27f | 7194 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7195 | else |
a0b9e27f | 7196 | echo "$ac_t""no" 1>&6 |
360d6699 | 7197 | fi |
a0b9e27f | 7198 | |
360d6699 | 7199 | |
a0b9e27f | 7200 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
3bce6687 | 7201 | echo "configure:7202: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7202 | no_cache=0 |
7203 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7204 | if test "${enable_treectrl+set}" = set; then | |
7205 | enableval="$enable_treectrl" | |
a0b9e27f | 7206 | |
10f2d63a VZ |
7207 | if test "$enableval" = yes; then |
7208 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7209 | else | |
7210 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7211 | fi | |
a0b9e27f | 7212 | |
10f2d63a | 7213 | else |
a0b9e27f | 7214 | |
10f2d63a VZ |
7215 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7216 | if test "x$LINE" != x ; then | |
7217 | eval "DEFAULT_$LINE" | |
7218 | else | |
7219 | no_cache=1 | |
7220 | fi | |
7221 | ||
7222 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
a0b9e27f MB |
7223 | |
7224 | fi | |
10f2d63a VZ |
7225 | |
7226 | ||
1e6feb95 VZ |
7227 | eval "$ac_cv_use_treectrl" |
7228 | if test "$no_cache" != 1; then | |
7229 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7230 | fi | |
7231 | ||
7232 | if test "$wxUSE_TREECTRL" = yes; then | |
a0b9e27f | 7233 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7234 | else |
a0b9e27f | 7235 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7236 | fi |
a0b9e27f | 7237 | |
1e6feb95 | 7238 | |
a0b9e27f | 7239 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
3bce6687 | 7240 | echo "configure:7241: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7241 | no_cache=0 |
7242 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7243 | if test "${enable_tipwindow+set}" = set; then | |
7244 | enableval="$enable_tipwindow" | |
a0b9e27f | 7245 | |
9926e4a4 VZ |
7246 | if test "$enableval" = yes; then |
7247 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7248 | else | |
7249 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7250 | fi | |
a0b9e27f | 7251 | |
9926e4a4 | 7252 | else |
a0b9e27f | 7253 | |
9926e4a4 VZ |
7254 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7255 | if test "x$LINE" != x ; then | |
7256 | eval "DEFAULT_$LINE" | |
7257 | else | |
7258 | no_cache=1 | |
7259 | fi | |
7260 | ||
7261 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
a0b9e27f MB |
7262 | |
7263 | fi | |
9926e4a4 VZ |
7264 | |
7265 | ||
7266 | eval "$ac_cv_use_tipwindow" | |
7267 | if test "$no_cache" != 1; then | |
7268 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7269 | fi | |
7270 | ||
7271 | if test "$wxUSE_TIPWINDOW" = yes; then | |
a0b9e27f | 7272 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7273 | else |
a0b9e27f | 7274 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7275 | fi |
a0b9e27f | 7276 | |
9926e4a4 | 7277 | |
a0b9e27f | 7278 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
3bce6687 | 7279 | echo "configure:7280: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7280 | no_cache=0 |
7281 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7282 | if test "${enable_popupwin+set}" = set; then | |
7283 | enableval="$enable_popupwin" | |
a0b9e27f | 7284 | |
9f41d601 RR |
7285 | if test "$enableval" = yes; then |
7286 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7287 | else | |
7288 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7289 | fi | |
a0b9e27f | 7290 | |
9f41d601 | 7291 | else |
a0b9e27f | 7292 | |
9f41d601 RR |
7293 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7294 | if test "x$LINE" != x ; then | |
7295 | eval "DEFAULT_$LINE" | |
7296 | else | |
7297 | no_cache=1 | |
7298 | fi | |
7299 | ||
7300 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
a0b9e27f MB |
7301 | |
7302 | fi | |
9f41d601 RR |
7303 | |
7304 | ||
7305 | eval "$ac_cv_use_popupwin" | |
7306 | if test "$no_cache" != 1; then | |
7307 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7308 | fi | |
7309 | ||
7310 | if test "$wxUSE_POPUPWIN" = yes; then | |
a0b9e27f | 7311 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7312 | else |
a0b9e27f | 7313 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7314 | fi |
a0b9e27f | 7315 | |
52127426 | 7316 | |
8284b0c5 MB |
7317 | |
7318 | ||
a0b9e27f | 7319 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 |
3bce6687 | 7320 | echo "configure:7321: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7321 | no_cache=0 |
7322 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7323 | if test "${enable_commondlg+set}" = set; then | |
7324 | enableval="$enable_commondlg" | |
a0b9e27f | 7325 | |
1e6feb95 VZ |
7326 | if test "$enableval" = yes; then |
7327 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7328 | else | |
7329 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7330 | fi | |
a0b9e27f | 7331 | |
1e6feb95 | 7332 | else |
a0b9e27f | 7333 | |
1e6feb95 VZ |
7334 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7335 | if test "x$LINE" != x ; then | |
7336 | eval "DEFAULT_$LINE" | |
7337 | else | |
7338 | no_cache=1 | |
7339 | fi | |
7340 | ||
7341 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
a0b9e27f MB |
7342 | |
7343 | fi | |
1e6feb95 VZ |
7344 | |
7345 | ||
7346 | eval "$ac_cv_use_commondlg" | |
7347 | if test "$no_cache" != 1; then | |
7348 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7349 | fi | |
7350 | ||
7351 | if test "$wxUSE_COMMONDLGS" = yes; then | |
a0b9e27f | 7352 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7353 | else |
a0b9e27f | 7354 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7355 | fi |
a0b9e27f | 7356 | |
1e6feb95 | 7357 | |
a0b9e27f | 7358 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 |
3bce6687 | 7359 | echo "configure:7360: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7360 | no_cache=0 |
7361 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7362 | if test "${enable_choicedlg+set}" = set; then | |
7363 | enableval="$enable_choicedlg" | |
a0b9e27f | 7364 | |
1e6feb95 VZ |
7365 | if test "$enableval" = yes; then |
7366 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7367 | else | |
7368 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7369 | fi | |
a0b9e27f | 7370 | |
1e6feb95 | 7371 | else |
a0b9e27f | 7372 | |
1e6feb95 VZ |
7373 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7374 | if test "x$LINE" != x ; then | |
7375 | eval "DEFAULT_$LINE" | |
7376 | else | |
7377 | no_cache=1 | |
7378 | fi | |
7379 | ||
7380 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
a0b9e27f MB |
7381 | |
7382 | fi | |
1e6feb95 VZ |
7383 | |
7384 | ||
7385 | eval "$ac_cv_use_choicedlg" | |
7386 | if test "$no_cache" != 1; then | |
7387 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7388 | fi | |
7389 | ||
7390 | if test "$wxUSE_CHOICEDLG" = yes; then | |
a0b9e27f | 7391 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7392 | else |
a0b9e27f | 7393 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7394 | fi |
a0b9e27f | 7395 | |
1e6feb95 | 7396 | |
a0b9e27f | 7397 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 |
3bce6687 | 7398 | echo "configure:7399: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7399 | no_cache=0 |
7400 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7401 | if test "${enable_coldlg+set}" = set; then | |
7402 | enableval="$enable_coldlg" | |
a0b9e27f | 7403 | |
1e6feb95 VZ |
7404 | if test "$enableval" = yes; then |
7405 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7406 | else | |
7407 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7408 | fi | |
a0b9e27f | 7409 | |
1e6feb95 | 7410 | else |
a0b9e27f | 7411 | |
1e6feb95 VZ |
7412 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7413 | if test "x$LINE" != x ; then | |
7414 | eval "DEFAULT_$LINE" | |
7415 | else | |
7416 | no_cache=1 | |
7417 | fi | |
7418 | ||
7419 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
a0b9e27f MB |
7420 | |
7421 | fi | |
1e6feb95 VZ |
7422 | |
7423 | ||
7424 | eval "$ac_cv_use_coldlg" | |
7425 | if test "$no_cache" != 1; then | |
7426 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7427 | fi | |
7428 | ||
7429 | if test "$wxUSE_COLOURDLG" = yes; then | |
a0b9e27f | 7430 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7431 | else |
a0b9e27f | 7432 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7433 | fi |
a0b9e27f | 7434 | |
1e6feb95 | 7435 | |
a0b9e27f | 7436 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 |
3bce6687 | 7437 | echo "configure:7438: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7438 | no_cache=0 |
7439 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7440 | if test "${enable_filedlg+set}" = set; then | |
7441 | enableval="$enable_filedlg" | |
a0b9e27f | 7442 | |
1e6feb95 VZ |
7443 | if test "$enableval" = yes; then |
7444 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7445 | else | |
7446 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7447 | fi | |
a0b9e27f | 7448 | |
1e6feb95 | 7449 | else |
a0b9e27f | 7450 | |
1e6feb95 VZ |
7451 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7452 | if test "x$LINE" != x ; then | |
7453 | eval "DEFAULT_$LINE" | |
7454 | else | |
7455 | no_cache=1 | |
7456 | fi | |
7457 | ||
7458 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
a0b9e27f MB |
7459 | |
7460 | fi | |
1e6feb95 VZ |
7461 | |
7462 | ||
7463 | eval "$ac_cv_use_filedlg" | |
7464 | if test "$no_cache" != 1; then | |
7465 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7466 | fi | |
7467 | ||
7468 | if test "$wxUSE_FILEDLG" = yes; then | |
a0b9e27f | 7469 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7470 | else |
a0b9e27f | 7471 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7472 | fi |
a0b9e27f | 7473 | |
1e6feb95 | 7474 | |
a0b9e27f | 7475 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
3bce6687 | 7476 | echo "configure:7477: checking for --enable-finddlg" >&5 |
8db37e06 | 7477 | no_cache=0 |
69d27ff7 MB |
7478 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7479 | if test "${enable_finddlg+set}" = set; then | |
7480 | enableval="$enable_finddlg" | |
a0b9e27f | 7481 | |
8db37e06 | 7482 | if test "$enableval" = yes; then |
69d27ff7 | 7483 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7484 | else |
69d27ff7 | 7485 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7486 | fi |
a0b9e27f | 7487 | |
8db37e06 | 7488 | else |
a0b9e27f | 7489 | |
8db37e06 VZ |
7490 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7491 | if test "x$LINE" != x ; then | |
7492 | eval "DEFAULT_$LINE" | |
7493 | else | |
7494 | no_cache=1 | |
7495 | fi | |
7496 | ||
69d27ff7 | 7497 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
a0b9e27f MB |
7498 | |
7499 | fi | |
8db37e06 VZ |
7500 | |
7501 | ||
69d27ff7 | 7502 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7503 | if test "$no_cache" != 1; then |
69d27ff7 | 7504 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7505 | fi |
7506 | ||
7507 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
a0b9e27f | 7508 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7509 | else |
a0b9e27f | 7510 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7511 | fi |
a0b9e27f | 7512 | |
8db37e06 | 7513 | |
a0b9e27f | 7514 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
3bce6687 | 7515 | echo "configure:7516: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7516 | no_cache=0 |
7517 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7518 | if test "${enable_fontdlg+set}" = set; then | |
7519 | enableval="$enable_fontdlg" | |
a0b9e27f | 7520 | |
1e6feb95 VZ |
7521 | if test "$enableval" = yes; then |
7522 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7523 | else | |
7524 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7525 | fi | |
a0b9e27f | 7526 | |
1e6feb95 | 7527 | else |
a0b9e27f | 7528 | |
1e6feb95 VZ |
7529 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7530 | if test "x$LINE" != x ; then | |
7531 | eval "DEFAULT_$LINE" | |
7532 | else | |
7533 | no_cache=1 | |
7534 | fi | |
7535 | ||
7536 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
a0b9e27f MB |
7537 | |
7538 | fi | |
1e6feb95 VZ |
7539 | |
7540 | ||
7541 | eval "$ac_cv_use_fontdlg" | |
7542 | if test "$no_cache" != 1; then | |
7543 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7544 | fi | |
7545 | ||
7546 | if test "$wxUSE_FONTDLG" = yes; then | |
a0b9e27f | 7547 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7548 | else |
a0b9e27f | 7549 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7550 | fi |
a0b9e27f | 7551 | |
1e6feb95 | 7552 | |
a0b9e27f | 7553 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 |
3bce6687 | 7554 | echo "configure:7555: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7555 | no_cache=0 |
7556 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7557 | if test "${enable_dirdlg+set}" = set; then | |
7558 | enableval="$enable_dirdlg" | |
a0b9e27f | 7559 | |
1e6feb95 VZ |
7560 | if test "$enableval" = yes; then |
7561 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7562 | else | |
7563 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7564 | fi | |
a0b9e27f | 7565 | |
1e6feb95 | 7566 | else |
a0b9e27f | 7567 | |
1e6feb95 VZ |
7568 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7569 | if test "x$LINE" != x ; then | |
7570 | eval "DEFAULT_$LINE" | |
7571 | else | |
7572 | no_cache=1 | |
7573 | fi | |
7574 | ||
7575 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
a0b9e27f MB |
7576 | |
7577 | fi | |
1e6feb95 VZ |
7578 | |
7579 | ||
7580 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7581 | if test "$no_cache" != 1; then |
1e6feb95 | 7582 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7583 | fi |
7584 | ||
1e6feb95 | 7585 | if test "$wxUSE_DIRDLG" = yes; then |
a0b9e27f | 7586 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7587 | else |
a0b9e27f | 7588 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7589 | fi |
a0b9e27f | 7590 | |
698dcdb6 | 7591 | |
a0b9e27f | 7592 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
3bce6687 | 7593 | echo "configure:7594: checking for --enable-msgdlg" >&5 |
10f2d63a | 7594 | no_cache=0 |
1e6feb95 VZ |
7595 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7596 | if test "${enable_msgdlg+set}" = set; then | |
7597 | enableval="$enable_msgdlg" | |
a0b9e27f | 7598 | |
10f2d63a | 7599 | if test "$enableval" = yes; then |
1e6feb95 | 7600 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7601 | else |
1e6feb95 | 7602 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7603 | fi |
a0b9e27f | 7604 | |
10f2d63a | 7605 | else |
a0b9e27f | 7606 | |
1e6feb95 | 7607 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7608 | if test "x$LINE" != x ; then |
7609 | eval "DEFAULT_$LINE" | |
7610 | else | |
7611 | no_cache=1 | |
7612 | fi | |
7613 | ||
1e6feb95 | 7614 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
a0b9e27f MB |
7615 | |
7616 | fi | |
10f2d63a VZ |
7617 | |
7618 | ||
1e6feb95 | 7619 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7620 | if test "$no_cache" != 1; then |
1e6feb95 | 7621 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7622 | fi |
7623 | ||
1e6feb95 | 7624 | if test "$wxUSE_MSGDLG" = yes; then |
a0b9e27f | 7625 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7626 | else |
a0b9e27f | 7627 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7628 | fi |
a0b9e27f | 7629 | |
10f2d63a | 7630 | |
a0b9e27f | 7631 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
3bce6687 | 7632 | echo "configure:7633: checking for --enable-numberdlg" >&5 |
10f2d63a | 7633 | no_cache=0 |
1e6feb95 VZ |
7634 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7635 | if test "${enable_numberdlg+set}" = set; then | |
7636 | enableval="$enable_numberdlg" | |
a0b9e27f | 7637 | |
10f2d63a | 7638 | if test "$enableval" = yes; then |
1e6feb95 | 7639 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7640 | else |
1e6feb95 | 7641 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7642 | fi |
a0b9e27f | 7643 | |
10f2d63a | 7644 | else |
a0b9e27f | 7645 | |
1e6feb95 | 7646 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7647 | if test "x$LINE" != x ; then |
7648 | eval "DEFAULT_$LINE" | |
7649 | else | |
7650 | no_cache=1 | |
7651 | fi | |
7652 | ||
1e6feb95 | 7653 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
a0b9e27f MB |
7654 | |
7655 | fi | |
10f2d63a VZ |
7656 | |
7657 | ||
1e6feb95 | 7658 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7659 | if test "$no_cache" != 1; then |
1e6feb95 | 7660 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7661 | fi |
7662 | ||
1e6feb95 | 7663 | if test "$wxUSE_NUMBERDLG" = yes; then |
a0b9e27f | 7664 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7665 | else |
a0b9e27f | 7666 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7667 | fi |
a0b9e27f | 7668 | |
10f2d63a | 7669 | |
a0b9e27f | 7670 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
3bce6687 | 7671 | echo "configure:7672: checking for --enable-splash" >&5 |
cbca9943 VZ |
7672 | no_cache=0 |
7673 | # Check whether --enable-splash or --disable-splash was given. | |
7674 | if test "${enable_splash+set}" = set; then | |
7675 | enableval="$enable_splash" | |
a0b9e27f | 7676 | |
cbca9943 VZ |
7677 | if test "$enableval" = yes; then |
7678 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7679 | else | |
7680 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7681 | fi | |
a0b9e27f | 7682 | |
cbca9943 | 7683 | else |
a0b9e27f | 7684 | |
cbca9943 VZ |
7685 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
7686 | if test "x$LINE" != x ; then | |
7687 | eval "DEFAULT_$LINE" | |
7688 | else | |
7689 | no_cache=1 | |
7690 | fi | |
7691 | ||
7692 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
a0b9e27f MB |
7693 | |
7694 | fi | |
cbca9943 VZ |
7695 | |
7696 | ||
7697 | eval "$ac_cv_use_splash" | |
7698 | if test "$no_cache" != 1; then | |
7699 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7700 | fi | |
7701 | ||
7702 | if test "$wxUSE_SPLASH" = yes; then | |
a0b9e27f | 7703 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7704 | else |
a0b9e27f | 7705 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7706 | fi |
a0b9e27f | 7707 | |
cbca9943 | 7708 | |
a0b9e27f | 7709 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
3bce6687 | 7710 | echo "configure:7711: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7711 | no_cache=0 |
7712 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7713 | if test "${enable_textdlg+set}" = set; then | |
7714 | enableval="$enable_textdlg" | |
a0b9e27f | 7715 | |
10f2d63a VZ |
7716 | if test "$enableval" = yes; then |
7717 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7718 | else | |
7719 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7720 | fi | |
a0b9e27f | 7721 | |
10f2d63a | 7722 | else |
a0b9e27f | 7723 | |
10f2d63a VZ |
7724 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7725 | if test "x$LINE" != x ; then | |
7726 | eval "DEFAULT_$LINE" | |
7727 | else | |
7728 | no_cache=1 | |
7729 | fi | |
7730 | ||
7731 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
a0b9e27f MB |
7732 | |
7733 | fi | |
10f2d63a VZ |
7734 | |
7735 | ||
7736 | eval "$ac_cv_use_textdlg" | |
7737 | if test "$no_cache" != 1; then | |
7738 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7739 | fi | |
7740 | ||
7741 | if test "$wxUSE_TEXTDLG" = yes; then | |
a0b9e27f | 7742 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7743 | else |
a0b9e27f | 7744 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7745 | fi |
a0b9e27f | 7746 | |
10f2d63a | 7747 | |
a0b9e27f | 7748 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
3bce6687 | 7749 | echo "configure:7750: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7750 | no_cache=0 |
7751 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7752 | if test "${enable_tipdlg+set}" = set; then | |
7753 | enableval="$enable_tipdlg" | |
a0b9e27f | 7754 | |
10f2d63a VZ |
7755 | if test "$enableval" = yes; then |
7756 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7757 | else | |
7758 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7759 | fi | |
a0b9e27f | 7760 | |
10f2d63a | 7761 | else |
a0b9e27f | 7762 | |
10f2d63a VZ |
7763 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7764 | if test "x$LINE" != x ; then | |
7765 | eval "DEFAULT_$LINE" | |
7766 | else | |
7767 | no_cache=1 | |
7768 | fi | |
7769 | ||
7770 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
a0b9e27f MB |
7771 | |
7772 | fi | |
10f2d63a VZ |
7773 | |
7774 | ||
7775 | eval "$ac_cv_use_tipdlg" | |
7776 | if test "$no_cache" != 1; then | |
7777 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7778 | fi | |
7779 | ||
7780 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
a0b9e27f | 7781 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7782 | else |
a0b9e27f | 7783 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7784 | fi |
a0b9e27f | 7785 | |
10f2d63a | 7786 | |
a0b9e27f | 7787 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
3bce6687 | 7788 | echo "configure:7789: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7789 | no_cache=0 |
7790 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7791 | if test "${enable_progressdlg+set}" = set; then | |
7792 | enableval="$enable_progressdlg" | |
a0b9e27f | 7793 | |
10f2d63a VZ |
7794 | if test "$enableval" = yes; then |
7795 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7796 | else | |
7797 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7798 | fi | |
a0b9e27f | 7799 | |
10f2d63a | 7800 | else |
a0b9e27f | 7801 | |
10f2d63a VZ |
7802 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7803 | if test "x$LINE" != x ; then | |
7804 | eval "DEFAULT_$LINE" | |
7805 | else | |
7806 | no_cache=1 | |
7807 | fi | |
7808 | ||
7809 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
a0b9e27f MB |
7810 | |
7811 | fi | |
10f2d63a VZ |
7812 | |
7813 | ||
7814 | eval "$ac_cv_use_progressdlg" | |
7815 | if test "$no_cache" != 1; then | |
7816 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7817 | fi | |
7818 | ||
7819 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
a0b9e27f | 7820 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7821 | else |
a0b9e27f | 7822 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7823 | fi |
a0b9e27f | 7824 | |
10f2d63a | 7825 | |
a0b9e27f | 7826 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
3bce6687 | 7827 | echo "configure:7828: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7828 | no_cache=0 |
7829 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7830 | if test "${enable_wizarddlg+set}" = set; then | |
7831 | enableval="$enable_wizarddlg" | |
a0b9e27f | 7832 | |
b1f5d087 VZ |
7833 | if test "$enableval" = yes; then |
7834 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7835 | else | |
7836 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7837 | fi | |
a0b9e27f | 7838 | |
b1f5d087 | 7839 | else |
a0b9e27f | 7840 | |
b1f5d087 VZ |
7841 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
7842 | if test "x$LINE" != x ; then | |
7843 | eval "DEFAULT_$LINE" | |
7844 | else | |
7845 | no_cache=1 | |
7846 | fi | |
7847 | ||
7848 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
a0b9e27f MB |
7849 | |
7850 | fi | |
b1f5d087 VZ |
7851 | |
7852 | ||
7853 | eval "$ac_cv_use_wizarddlg" | |
7854 | if test "$no_cache" != 1; then | |
7855 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7856 | fi | |
7857 | ||
7858 | if test "$wxUSE_WIZARDDLG" = yes; then | |
a0b9e27f | 7859 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 7860 | else |
a0b9e27f | 7861 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 7862 | fi |
a0b9e27f | 7863 | |
8284b0c5 MB |
7864 | |
7865 | ||
52127426 | 7866 | |
a0b9e27f | 7867 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
3bce6687 | 7868 | echo "configure:7869: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7869 | no_cache=0 |
7870 | # Check whether --enable-menus or --disable-menus was given. | |
7871 | if test "${enable_menus+set}" = set; then | |
7872 | enableval="$enable_menus" | |
a0b9e27f | 7873 | |
1e6feb95 VZ |
7874 | if test "$enableval" = yes; then |
7875 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7876 | else | |
7877 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7878 | fi | |
a0b9e27f | 7879 | |
1e6feb95 | 7880 | else |
a0b9e27f | 7881 | |
1e6feb95 VZ |
7882 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
7883 | if test "x$LINE" != x ; then | |
7884 | eval "DEFAULT_$LINE" | |
7885 | else | |
7886 | no_cache=1 | |
7887 | fi | |
7888 | ||
7889 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
a0b9e27f MB |
7890 | |
7891 | fi | |
1e6feb95 VZ |
7892 | |
7893 | ||
7894 | eval "$ac_cv_use_menus" | |
7895 | if test "$no_cache" != 1; then | |
7896 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7897 | fi | |
7898 | ||
7899 | if test "$wxUSE_MENUS" = yes; then | |
a0b9e27f | 7900 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7901 | else |
a0b9e27f | 7902 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7903 | fi |
a0b9e27f | 7904 | |
1e6feb95 | 7905 | |
a0b9e27f | 7906 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
3bce6687 | 7907 | echo "configure:7908: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7908 | no_cache=0 |
7909 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7910 | if test "${enable_miniframe+set}" = set; then | |
7911 | enableval="$enable_miniframe" | |
a0b9e27f | 7912 | |
10f2d63a VZ |
7913 | if test "$enableval" = yes; then |
7914 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7915 | else | |
7916 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7917 | fi | |
a0b9e27f | 7918 | |
10f2d63a | 7919 | else |
a0b9e27f | 7920 | |
10f2d63a VZ |
7921 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7922 | if test "x$LINE" != x ; then | |
7923 | eval "DEFAULT_$LINE" | |
7924 | else | |
7925 | no_cache=1 | |
7926 | fi | |
7927 | ||
7928 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
a0b9e27f MB |
7929 | |
7930 | fi | |
10f2d63a VZ |
7931 | |
7932 | ||
7933 | eval "$ac_cv_use_miniframe" | |
7934 | if test "$no_cache" != 1; then | |
7935 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7936 | fi | |
7937 | ||
7938 | if test "$wxUSE_MINIFRAME" = yes; then | |
a0b9e27f | 7939 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7940 | else |
a0b9e27f | 7941 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7942 | fi |
a0b9e27f | 7943 | |
10f2d63a | 7944 | |
a0b9e27f | 7945 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
3bce6687 | 7946 | echo "configure:7947: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7947 | no_cache=0 |
7948 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7949 | if test "${enable_tooltips+set}" = set; then | |
7950 | enableval="$enable_tooltips" | |
a0b9e27f | 7951 | |
10f2d63a VZ |
7952 | if test "$enableval" = yes; then |
7953 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7954 | else | |
7955 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7956 | fi | |
a0b9e27f | 7957 | |
10f2d63a | 7958 | else |
a0b9e27f | 7959 | |
10f2d63a VZ |
7960 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7961 | if test "x$LINE" != x ; then | |
7962 | eval "DEFAULT_$LINE" | |
7963 | else | |
7964 | no_cache=1 | |
7965 | fi | |
7966 | ||
7967 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
a0b9e27f MB |
7968 | |
7969 | fi | |
10f2d63a VZ |
7970 | |
7971 | ||
7972 | eval "$ac_cv_use_tooltips" | |
7973 | if test "$no_cache" != 1; then | |
7974 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7975 | fi | |
7976 | ||
7977 | if test "$wxUSE_TOOLTIPS" = yes; then | |
a0b9e27f | 7978 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7979 | else |
a0b9e27f | 7980 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7981 | fi |
a0b9e27f | 7982 | |
10f2d63a | 7983 | |
a0b9e27f | 7984 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
3bce6687 | 7985 | echo "configure:7986: checking for --enable-splines" >&5 |
10f2d63a VZ |
7986 | no_cache=0 |
7987 | # Check whether --enable-splines or --disable-splines was given. | |
7988 | if test "${enable_splines+set}" = set; then | |
7989 | enableval="$enable_splines" | |
a0b9e27f | 7990 | |
10f2d63a VZ |
7991 | if test "$enableval" = yes; then |
7992 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7993 | else | |
7994 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7995 | fi | |
a0b9e27f | 7996 | |
10f2d63a | 7997 | else |
a0b9e27f | 7998 | |
10f2d63a VZ |
7999 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8000 | if test "x$LINE" != x ; then | |
8001 | eval "DEFAULT_$LINE" | |
8002 | else | |
8003 | no_cache=1 | |
8004 | fi | |
8005 | ||
8006 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
a0b9e27f MB |
8007 | |
8008 | fi | |
10f2d63a VZ |
8009 | |
8010 | ||
8011 | eval "$ac_cv_use_splines" | |
8012 | if test "$no_cache" != 1; then | |
8013 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8014 | fi | |
8015 | ||
8016 | if test "$wxUSE_SPLINES" = yes; then | |
a0b9e27f | 8017 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8018 | else |
a0b9e27f | 8019 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8020 | fi |
a0b9e27f | 8021 | |
10f2d63a | 8022 | |
a0b9e27f | 8023 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
3bce6687 | 8024 | echo "configure:8025: checking for --enable-validators" >&5 |
10f2d63a VZ |
8025 | no_cache=0 |
8026 | # Check whether --enable-validators or --disable-validators was given. | |
8027 | if test "${enable_validators+set}" = set; then | |
8028 | enableval="$enable_validators" | |
a0b9e27f | 8029 | |
10f2d63a VZ |
8030 | if test "$enableval" = yes; then |
8031 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8032 | else | |
8033 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8034 | fi | |
a0b9e27f | 8035 | |
10f2d63a | 8036 | else |
a0b9e27f | 8037 | |
10f2d63a VZ |
8038 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8039 | if test "x$LINE" != x ; then | |
8040 | eval "DEFAULT_$LINE" | |
8041 | else | |
8042 | no_cache=1 | |
8043 | fi | |
8044 | ||
8045 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
a0b9e27f MB |
8046 | |
8047 | fi | |
10f2d63a VZ |
8048 | |
8049 | ||
8050 | eval "$ac_cv_use_validators" | |
8051 | if test "$no_cache" != 1; then | |
8052 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8053 | fi | |
8054 | ||
8055 | if test "$wxUSE_VALIDATORS" = yes; then | |
a0b9e27f | 8056 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8057 | else |
a0b9e27f | 8058 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8059 | fi |
a0b9e27f | 8060 | |
10f2d63a | 8061 | |
a0b9e27f | 8062 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
3bce6687 | 8063 | echo "configure:8064: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
8064 | no_cache=0 |
8065 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8066 | if test "${enable_busyinfo+set}" = set; then | |
8067 | enableval="$enable_busyinfo" | |
a0b9e27f | 8068 | |
10f2d63a VZ |
8069 | if test "$enableval" = yes; then |
8070 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8071 | else | |
8072 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8073 | fi | |
a0b9e27f | 8074 | |
10f2d63a | 8075 | else |
a0b9e27f | 8076 | |
10f2d63a VZ |
8077 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8078 | if test "x$LINE" != x ; then | |
8079 | eval "DEFAULT_$LINE" | |
8080 | else | |
8081 | no_cache=1 | |
8082 | fi | |
8083 | ||
8084 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
a0b9e27f MB |
8085 | |
8086 | fi | |
10f2d63a VZ |
8087 | |
8088 | ||
8089 | eval "$ac_cv_use_busyinfo" | |
8090 | if test "$no_cache" != 1; then | |
8091 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8092 | fi | |
8093 | ||
8094 | if test "$wxUSE_BUSYINFO" = yes; then | |
a0b9e27f | 8095 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8096 | else |
a0b9e27f | 8097 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8098 | fi |
a0b9e27f | 8099 | |
10f2d63a | 8100 | |
a0b9e27f | 8101 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
3bce6687 | 8102 | echo "configure:8103: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
8103 | no_cache=0 |
8104 | # Check whether --enable-joystick or --disable-joystick was given. | |
8105 | if test "${enable_joystick+set}" = set; then | |
8106 | enableval="$enable_joystick" | |
a0b9e27f | 8107 | |
f6bcfd97 BP |
8108 | if test "$enableval" = yes; then |
8109 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8110 | else | |
8111 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8112 | fi | |
a0b9e27f | 8113 | |
f6bcfd97 | 8114 | else |
a0b9e27f | 8115 | |
f6bcfd97 BP |
8116 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8117 | if test "x$LINE" != x ; then | |
8118 | eval "DEFAULT_$LINE" | |
8119 | else | |
8120 | no_cache=1 | |
8121 | fi | |
8122 | ||
8123 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
a0b9e27f MB |
8124 | |
8125 | fi | |
f6bcfd97 BP |
8126 | |
8127 | ||
8128 | eval "$ac_cv_use_joystick" | |
8129 | if test "$no_cache" != 1; then | |
8130 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8131 | fi | |
8132 | ||
8133 | if test "$wxUSE_JOYSTICK" = yes; then | |
a0b9e27f | 8134 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8135 | else |
a0b9e27f | 8136 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8137 | fi |
a0b9e27f | 8138 | |
698dcdb6 | 8139 | |
a0b9e27f | 8140 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
3bce6687 | 8141 | echo "configure:8142: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8142 | no_cache=0 |
8143 | # Check whether --enable-metafile or --disable-metafile was given. | |
8144 | if test "${enable_metafile+set}" = set; then | |
8145 | enableval="$enable_metafile" | |
a0b9e27f | 8146 | |
1e6feb95 VZ |
8147 | if test "$enableval" = yes; then |
8148 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8149 | else | |
8150 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8151 | fi | |
a0b9e27f | 8152 | |
1e6feb95 | 8153 | else |
a0b9e27f | 8154 | |
1e6feb95 VZ |
8155 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8156 | if test "x$LINE" != x ; then | |
8157 | eval "DEFAULT_$LINE" | |
8158 | else | |
8159 | no_cache=1 | |
8160 | fi | |
8161 | ||
8162 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
8163 | |
8164 | fi | |
1e6feb95 VZ |
8165 | |
8166 | ||
8167 | eval "$ac_cv_use_metafile" | |
8168 | if test "$no_cache" != 1; then | |
8169 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8170 | fi | |
8171 | ||
8172 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 8173 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8174 | else |
a0b9e27f | 8175 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8176 | fi |
a0b9e27f | 8177 | |
1e6feb95 | 8178 | |
a0b9e27f | 8179 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
3bce6687 | 8180 | echo "configure:8181: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8181 | no_cache=0 |
8182 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8183 | if test "${enable_dragimage+set}" = set; then | |
8184 | enableval="$enable_dragimage" | |
a0b9e27f | 8185 | |
24fd6d87 VZ |
8186 | if test "$enableval" = yes; then |
8187 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8188 | else | |
8189 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8190 | fi | |
a0b9e27f | 8191 | |
24fd6d87 | 8192 | else |
a0b9e27f | 8193 | |
24fd6d87 VZ |
8194 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8195 | if test "x$LINE" != x ; then | |
8196 | eval "DEFAULT_$LINE" | |
8197 | else | |
8198 | no_cache=1 | |
8199 | fi | |
8200 | ||
8201 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
a0b9e27f MB |
8202 | |
8203 | fi | |
24fd6d87 VZ |
8204 | |
8205 | ||
8206 | eval "$ac_cv_use_dragimage" | |
8207 | if test "$no_cache" != 1; then | |
8208 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8209 | fi | |
8210 | ||
8211 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
a0b9e27f | 8212 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8213 | else |
a0b9e27f | 8214 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8215 | fi |
a0b9e27f | 8216 | |
52127426 | 8217 | |
8284b0c5 MB |
8218 | |
8219 | ||
a0b9e27f | 8220 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
3bce6687 | 8221 | echo "configure:8222: checking for --enable-palette" >&5 |
edae8572 VZ |
8222 | no_cache=0 |
8223 | # Check whether --enable-palette or --disable-palette was given. | |
8224 | if test "${enable_palette+set}" = set; then | |
8225 | enableval="$enable_palette" | |
a0b9e27f | 8226 | |
edae8572 VZ |
8227 | if test "$enableval" = yes; then |
8228 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8229 | else | |
8230 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8231 | fi | |
a0b9e27f | 8232 | |
edae8572 | 8233 | else |
a0b9e27f | 8234 | |
edae8572 VZ |
8235 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8236 | if test "x$LINE" != x ; then | |
8237 | eval "DEFAULT_$LINE" | |
8238 | else | |
8239 | no_cache=1 | |
8240 | fi | |
8241 | ||
8242 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
a0b9e27f MB |
8243 | |
8244 | fi | |
edae8572 VZ |
8245 | |
8246 | ||
8247 | eval "$ac_cv_use_palette" | |
8248 | if test "$no_cache" != 1; then | |
8249 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8250 | fi | |
8251 | ||
8252 | if test "$wxUSE_PALETTE" = yes; then | |
a0b9e27f | 8253 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8254 | else |
a0b9e27f | 8255 | echo "$ac_t""no" 1>&6 |
edae8572 | 8256 | fi |
a0b9e27f | 8257 | |
edae8572 | 8258 | |
a0b9e27f | 8259 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
3bce6687 | 8260 | echo "configure:8261: checking for --enable-image" >&5 |
0046ff7c VS |
8261 | no_cache=0 |
8262 | # Check whether --enable-image or --disable-image was given. | |
8263 | if test "${enable_image+set}" = set; then | |
8264 | enableval="$enable_image" | |
a0b9e27f | 8265 | |
0046ff7c VS |
8266 | if test "$enableval" = yes; then |
8267 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8268 | else | |
8269 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8270 | fi | |
a0b9e27f | 8271 | |
0046ff7c | 8272 | else |
a0b9e27f | 8273 | |
0046ff7c VS |
8274 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8275 | if test "x$LINE" != x ; then | |
8276 | eval "DEFAULT_$LINE" | |
8277 | else | |
8278 | no_cache=1 | |
8279 | fi | |
8280 | ||
8281 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
a0b9e27f MB |
8282 | |
8283 | fi | |
0046ff7c VS |
8284 | |
8285 | ||
8286 | eval "$ac_cv_use_image" | |
8287 | if test "$no_cache" != 1; then | |
8288 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8289 | fi | |
8290 | ||
8291 | if test "$wxUSE_IMAGE" = yes; then | |
a0b9e27f | 8292 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8293 | else |
a0b9e27f | 8294 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8295 | fi |
a0b9e27f | 8296 | |
0046ff7c | 8297 | |
a0b9e27f | 8298 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
3bce6687 | 8299 | echo "configure:8300: checking for --enable-gif" >&5 |
10f2d63a VZ |
8300 | no_cache=0 |
8301 | # Check whether --enable-gif or --disable-gif was given. | |
8302 | if test "${enable_gif+set}" = set; then | |
8303 | enableval="$enable_gif" | |
a0b9e27f | 8304 | |
10f2d63a VZ |
8305 | if test "$enableval" = yes; then |
8306 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8307 | else | |
8308 | ac_cv_use_gif='wxUSE_GIF=no' | |
8309 | fi | |
a0b9e27f | 8310 | |
10f2d63a | 8311 | else |
a0b9e27f | 8312 | |
10f2d63a VZ |
8313 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8314 | if test "x$LINE" != x ; then | |
8315 | eval "DEFAULT_$LINE" | |
8316 | else | |
8317 | no_cache=1 | |
8318 | fi | |
8319 | ||
8320 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
a0b9e27f MB |
8321 | |
8322 | fi | |
10f2d63a VZ |
8323 | |
8324 | ||
8325 | eval "$ac_cv_use_gif" | |
8326 | if test "$no_cache" != 1; then | |
8327 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8328 | fi | |
8329 | ||
8330 | if test "$wxUSE_GIF" = yes; then | |
a0b9e27f | 8331 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8332 | else |
a0b9e27f | 8333 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8334 | fi |
a0b9e27f | 8335 | |
10f2d63a | 8336 | |
a0b9e27f | 8337 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
3bce6687 | 8338 | echo "configure:8339: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8339 | no_cache=0 |
8340 | # Check whether --enable-pcx or --disable-pcx was given. | |
8341 | if test "${enable_pcx+set}" = set; then | |
8342 | enableval="$enable_pcx" | |
a0b9e27f | 8343 | |
10f2d63a VZ |
8344 | if test "$enableval" = yes; then |
8345 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8346 | else | |
8347 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8348 | fi | |
a0b9e27f | 8349 | |
10f2d63a | 8350 | else |
a0b9e27f | 8351 | |
10f2d63a VZ |
8352 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8353 | if test "x$LINE" != x ; then | |
8354 | eval "DEFAULT_$LINE" | |
8355 | else | |
8356 | no_cache=1 | |
8357 | fi | |
8358 | ||
8359 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
a0b9e27f MB |
8360 | |
8361 | fi | |
10f2d63a VZ |
8362 | |
8363 | ||
8364 | eval "$ac_cv_use_pcx" | |
8365 | if test "$no_cache" != 1; then | |
8366 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8367 | fi | |
8368 | ||
8369 | if test "$wxUSE_PCX" = yes; then | |
a0b9e27f | 8370 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8371 | else |
a0b9e27f | 8372 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8373 | fi |
a0b9e27f | 8374 | |
10f2d63a | 8375 | |
a0b9e27f | 8376 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
3bce6687 | 8377 | echo "configure:8378: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8378 | no_cache=0 |
8379 | # Check whether --enable-iff or --disable-iff was given. | |
8380 | if test "${enable_iff+set}" = set; then | |
8381 | enableval="$enable_iff" | |
a0b9e27f | 8382 | |
4b6b4dfc RR |
8383 | if test "$enableval" = yes; then |
8384 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8385 | else | |
8386 | ac_cv_use_iff='wxUSE_IFF=no' | |
8387 | fi | |
a0b9e27f | 8388 | |
4b6b4dfc | 8389 | else |
a0b9e27f | 8390 | |
4b6b4dfc RR |
8391 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8392 | if test "x$LINE" != x ; then | |
8393 | eval "DEFAULT_$LINE" | |
8394 | else | |
8395 | no_cache=1 | |
8396 | fi | |
8397 | ||
8398 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
a0b9e27f MB |
8399 | |
8400 | fi | |
4b6b4dfc RR |
8401 | |
8402 | ||
8403 | eval "$ac_cv_use_iff" | |
8404 | if test "$no_cache" != 1; then | |
8405 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8406 | fi | |
8407 | ||
8408 | if test "$wxUSE_IFF" = yes; then | |
a0b9e27f | 8409 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8410 | else |
a0b9e27f | 8411 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8412 | fi |
a0b9e27f | 8413 | |
4b6b4dfc | 8414 | |
a0b9e27f | 8415 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
3bce6687 | 8416 | echo "configure:8417: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8417 | no_cache=0 |
8418 | # Check whether --enable-pnm or --disable-pnm was given. | |
8419 | if test "${enable_pnm+set}" = set; then | |
8420 | enableval="$enable_pnm" | |
a0b9e27f | 8421 | |
10f2d63a VZ |
8422 | if test "$enableval" = yes; then |
8423 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8424 | else | |
8425 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8426 | fi | |
a0b9e27f | 8427 | |
10f2d63a | 8428 | else |
a0b9e27f | 8429 | |
10f2d63a VZ |
8430 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8431 | if test "x$LINE" != x ; then | |
8432 | eval "DEFAULT_$LINE" | |
8433 | else | |
8434 | no_cache=1 | |
8435 | fi | |
8436 | ||
8437 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
a0b9e27f MB |
8438 | |
8439 | fi | |
10f2d63a VZ |
8440 | |
8441 | ||
8442 | eval "$ac_cv_use_pnm" | |
8443 | if test "$no_cache" != 1; then | |
8444 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8445 | fi | |
8446 | ||
8447 | if test "$wxUSE_PNM" = yes; then | |
a0b9e27f | 8448 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8449 | else |
a0b9e27f | 8450 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8451 | fi |
a0b9e27f | 8452 | |
10f2d63a | 8453 | |
a0b9e27f | 8454 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
3bce6687 | 8455 | echo "configure:8456: checking for --enable-xpm" >&5 |
0046ff7c | 8456 | no_cache=0 |
69d27ff7 MB |
8457 | # Check whether --enable-xpm or --disable-xpm was given. |
8458 | if test "${enable_xpm+set}" = set; then | |
8459 | enableval="$enable_xpm" | |
a0b9e27f | 8460 | |
0046ff7c | 8461 | if test "$enableval" = yes; then |
69d27ff7 | 8462 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8463 | else |
69d27ff7 | 8464 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8465 | fi |
a0b9e27f | 8466 | |
0046ff7c | 8467 | else |
a0b9e27f | 8468 | |
0046ff7c VS |
8469 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8470 | if test "x$LINE" != x ; then | |
8471 | eval "DEFAULT_$LINE" | |
8472 | else | |
8473 | no_cache=1 | |
8474 | fi | |
8475 | ||
69d27ff7 | 8476 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
a0b9e27f MB |
8477 | |
8478 | fi | |
0046ff7c VS |
8479 | |
8480 | ||
69d27ff7 | 8481 | eval "$ac_cv_use_xpm" |
0046ff7c | 8482 | if test "$no_cache" != 1; then |
69d27ff7 | 8483 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8484 | fi |
8485 | ||
8486 | if test "$wxUSE_XPM" = yes; then | |
a0b9e27f | 8487 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8488 | else |
a0b9e27f | 8489 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8490 | fi |
a0b9e27f | 8491 | |
0046ff7c | 8492 | |
a0b9e27f | 8493 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
3bce6687 | 8494 | echo "configure:8495: checking for --enable-ico_cur" >&5 |
658974ae | 8495 | no_cache=0 |
c7206e64 VS |
8496 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8497 | if test "${enable_ico_cur+set}" = set; then | |
8498 | enableval="$enable_ico_cur" | |
a0b9e27f | 8499 | |
658974ae | 8500 | if test "$enableval" = yes; then |
c7206e64 | 8501 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8502 | else |
c7206e64 | 8503 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8504 | fi |
a0b9e27f | 8505 | |
658974ae | 8506 | else |
a0b9e27f | 8507 | |
658974ae VS |
8508 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8509 | if test "x$LINE" != x ; then | |
8510 | eval "DEFAULT_$LINE" | |
8511 | else | |
8512 | no_cache=1 | |
8513 | fi | |
8514 | ||
c7206e64 | 8515 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
a0b9e27f MB |
8516 | |
8517 | fi | |
658974ae VS |
8518 | |
8519 | ||
c7206e64 | 8520 | eval "$ac_cv_use_ico_cur" |
658974ae | 8521 | if test "$no_cache" != 1; then |
c7206e64 | 8522 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8523 | fi |
8524 | ||
8525 | if test "$wxUSE_ICO_CUR" = yes; then | |
a0b9e27f | 8526 | echo "$ac_t""yes" 1>&6 |
658974ae | 8527 | else |
a0b9e27f | 8528 | echo "$ac_t""no" 1>&6 |
658974ae | 8529 | fi |
a0b9e27f | 8530 | |
658974ae | 8531 | |
b12915c1 VZ |
8532 | fi |
8533 | ||
d558c907 VS |
8534 | case "${host}" in |
8535 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
8536 | PATH_IFS=';' |
8537 | LEX_STEM="lexyy" | |
d558c907 VS |
8538 | ;; |
8539 | *) | |
8540 | PATH_IFS=':' | |
8541 | LEX_STEM="lex.yy" | |
8542 | ;; | |
8543 | esac | |
8544 | ||
8284b0c5 MB |
8545 | |
8546 | ||
10f2d63a VZ |
8547 | echo "saving argument cache $wx_arg_cache_file" |
8548 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
a0b9e27f | 8549 | |
52127426 | 8550 | |
8284b0c5 | 8551 | |
a0b9e27f | 8552 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 |
3bce6687 | 8553 | echo "configure:8554: checking for toolkit" >&5 |
10f2d63a VZ |
8554 | |
8555 | if test "$wxUSE_GUI" = "yes"; then | |
8556 | ||
3a922bb4 | 8557 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 8558 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8559 | fi |
b12915c1 | 8560 | |
3a922bb4 RL |
8561 | if test "$TOOLKIT_GIVEN" = 1; then |
8562 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8563 | var=wxUSE_$toolkit | |
8564 | eval "value=\$${var}" | |
8565 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8566 | done | |
10f2d63a | 8567 | else |
3a922bb4 RL |
8568 | for toolkit in `echo $ALL_TOOLKITS`; do |
8569 | if test "$has_toolkit_in_cache" != 1; then | |
8570 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8571 | else | |
8572 | var=DEFAULT_wxUSE_$toolkit | |
8573 | fi | |
8574 | eval "wxUSE_$toolkit=\$${var}" | |
8575 | done | |
10f2d63a | 8576 | fi |
10f2d63a | 8577 | |
3a922bb4 | 8578 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8579 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8580 | |
d558c907 | 8581 | case "${host}" in |
6fa882bd | 8582 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8583 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8584 | esac |
10f2d63a | 8585 | |
3a922bb4 RL |
8586 | case "$NUM_TOOLKITS" in |
8587 | 1) | |
8588 | ;; | |
8589 | 0) | |
a0b9e27f | 8590 | { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8591 | ;; |
8592 | *) | |
a0b9e27f | 8593 | { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; } |
3a922bb4 | 8594 | esac |
10f2d63a | 8595 | |
3a922bb4 RL |
8596 | for toolkit in `echo $ALL_TOOLKITS`; do |
8597 | var=wxUSE_$toolkit | |
8598 | eval "value=\$${var}" | |
8599 | if test "x$value" != x; then | |
8600 | cache_var=CACHE_$toolkit | |
8601 | eval "cache=\$${cache_var}" | |
8602 | if test "$cache" = 1; then | |
8603 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8604 | fi | |
8605 | if test "$value" = 1; then | |
8606 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
a0b9e27f | 8607 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8608 | fi |
8609 | fi | |
8610 | done | |
10f2d63a | 8611 | else |
a0b9e27f | 8612 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8613 | fi |
8614 | ||
6969f178 MB |
8615 | case "${host}" in |
8616 | *-pc-os2_emx | *-pc-os2-emx ) | |
8617 | LIBS="$LIBS -lstdcpp" | |
8618 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
8619 | echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6 | |
3bce6687 | 8620 | echo "configure:8621: checking for drand48 in -lcExt" >&5 |
6969f178 MB |
8621 | ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'` |
8622 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8623 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8624 | else | |
8625 | ac_save_LIBS="$LIBS" | |
8626 | LIBS="-lcExt $LIBS" | |
8627 | cat > conftest.$ac_ext <<EOF | |
3bce6687 | 8628 | #line 8629 "configure" |
6969f178 MB |
8629 | #include "confdefs.h" |
8630 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8631 | /* We use char because int might match the return type of a gcc2 | |
8632 | builtin and then its argument prototype would still apply. */ | |
8633 | char drand48(); | |
8634 | ||
8635 | int main() { | |
8636 | drand48() | |
8637 | ; return 0; } | |
8638 | EOF | |
3bce6687 | 8639 | if { (eval echo configure:8640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6969f178 MB |
8640 | rm -rf conftest* |
8641 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8642 | else | |
8643 | echo "configure: failed program was:" >&5 | |
8644 | cat conftest.$ac_ext >&5 | |
8645 | rm -rf conftest* | |
8646 | eval "ac_cv_lib_$ac_lib_var=no" | |
8647 | fi | |
8648 | rm -f conftest* | |
8649 | LIBS="$ac_save_LIBS" | |
8650 | ||
8651 | fi | |
8652 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8653 | echo "$ac_t""yes" 1>&6 | |
8654 | LIBS="$LIBS -lcExt" | |
8655 | else | |
8656 | echo "$ac_t""no" 1>&6 | |
8657 | fi | |
8658 | ||
8659 | else | |
8660 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
8661 | fi | |
8662 | ;; | |
8663 | esac | |
8284b0c5 | 8664 | |
43d99b6d VS |
8665 | wants_win32=0 |
8666 | doesnt_want_win32=0 | |
17234b26 MB |
8667 | case "${host}" in |
8668 | *-*-cygwin*) | |
8669 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8670 | wants_win32=1 |
8671 | else | |
8672 | doesnt_want_win32=1 | |
17234b26 MB |
8673 | fi |
8674 | ;; | |
8675 | *-*-mingw*) | |
43d99b6d | 8676 | wants_win32=1 |
17234b26 MB |
8677 | ;; |
8678 | esac | |
8679 | ||
43d99b6d | 8680 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8681 | USE_UNIX=0 |
8682 | USE_WIN32=1 | |
a0b9e27f | 8683 | cat >> confdefs.h <<\EOF |
17234b26 | 8684 | #define __WIN32__ 1 |
a0b9e27f | 8685 | EOF |
17234b26 | 8686 | |
a0b9e27f | 8687 | cat >> confdefs.h <<\EOF |
17234b26 | 8688 | #define __WIN95__ 1 |
a0b9e27f | 8689 | EOF |
17234b26 | 8690 | |
a0b9e27f | 8691 | cat >> confdefs.h <<\EOF |
17234b26 | 8692 | #define __WINDOWS__ 1 |
a0b9e27f | 8693 | EOF |
17234b26 | 8694 | |
a0b9e27f | 8695 | cat >> confdefs.h <<\EOF |
17234b26 | 8696 | #define __GNUWIN32__ 1 |
a0b9e27f | 8697 | EOF |
17234b26 | 8698 | |
a0b9e27f | 8699 | cat >> confdefs.h <<\EOF |
17234b26 | 8700 | #define STRICT 1 |
a0b9e27f | 8701 | EOF |
17234b26 | 8702 | |
a0b9e27f | 8703 | cat >> confdefs.h <<\EOF |
17234b26 | 8704 | #define WINVER 0x0400 |
a0b9e27f | 8705 | EOF |
17234b26 | 8706 | |
43d99b6d VS |
8707 | fi |
8708 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8709 | USE_UNIX=1 |
8710 | USE_WIN32=0 | |
8711 | fi | |
8712 | ||
8713 | if test "$USE_UNIX" = 1 ; then | |
8714 | wxUSE_UNIX=yes | |
a0b9e27f | 8715 | cat >> confdefs.h <<\EOF |
17234b26 | 8716 | #define __UNIX__ 1 |
a0b9e27f | 8717 | EOF |
17234b26 MB |
8718 | |
8719 | fi | |
8720 | ||
8284b0c5 | 8721 | |
a0b9e27f | 8722 | cat > confcache <<\EOF |
10f2d63a VZ |
8723 | # This file is a shell script that caches the results of configure |
8724 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
8725 | # scripts and configure runs. It is not useful on other systems. |
8726 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8727 | # |
a0b9e27f MB |
8728 | # By default, configure uses ./config.cache as the cache file, |
8729 | # creating it if it does not exist already. You can give configure | |
8730 | # the --cache-file=FILE option to use a different cache file; that is | |
8731 | # what configure does when it calls configure scripts in | |
8732 | # subdirectories, so they share the cache. | |
8733 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8734 | # config.status only pays attention to the cache file if you give it the | |
8735 | # --recheck option to rerun configure. | |
10f2d63a | 8736 | # |
a0b9e27f | 8737 | EOF |
10f2d63a VZ |
8738 | # The following way of writing the cache mishandles newlines in values, |
8739 | # but we know of no workaround that is simple, portable, and efficient. | |
8740 | # So, don't put newlines in cache variables' values. | |
8741 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8742 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
8743 | (set) 2>&1 | |
8744 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8745 | *ac_space=\ *) | |
8746 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8747 | # turns \\\\ into \\, and sed turns \\ into \). | |
8748 | sed -n \ | |
8749 | -e "s/'/'\\\\''/g" \ | |
8750 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8751 | ;; | |
8752 | *) | |
8753 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8754 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8755 | ;; | |
8756 | esac >> confcache | |
8757 | if cmp -s $cache_file confcache; then | |
8758 | : | |
8759 | else | |
10f2d63a | 8760 | if test -w $cache_file; then |
a0b9e27f MB |
8761 | echo "updating cache $cache_file" |
8762 | cat confcache > $cache_file | |
10f2d63a VZ |
8763 | else |
8764 | echo "not updating unwritable cache $cache_file" | |
8765 | fi | |
8766 | fi | |
8767 | rm -f confcache | |
8768 | ||
a0b9e27f | 8769 | |
e59890c3 | 8770 | if test "$build" != "$host" ; then |
9d353d4a | 8771 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8772 | CC=$host_alias-gcc |
8773 | CXX=$host_alias-c++ | |
8774 | AR=$host_alias-ar | |
8775 | RANLIB=$host_alias-ranlib | |
8776 | DLLTOOL=$host_alias-dlltool | |
8777 | RESCOMP=$host_alias-windres | |
8778 | LD=$host_alias-ld | |
8779 | NM=$host_alias-nm | |
8780 | STRIP=$host_alias-strip | |
8781 | else | |
a0b9e27f | 8782 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 8783 | fi |
10f2d63a VZ |
8784 | fi |
8785 | ||
ec603395 | 8786 | CFLAGS=${CFLAGS:=} |
a0b9e27f | 8787 | # Extract the first word of "gcc", so it can be a program name with args. |
8284b0c5 | 8788 | set dummy gcc; ac_word=$2 |
a0b9e27f | 8789 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3bce6687 | 8790 | echo "configure:8791: checking for $ac_word" >&5 |
a0b9e27f MB |
8791 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8792 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8793 | else |
8794 | if test -n "$CC"; then | |
8795 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8796 | else |
a0b9e27f MB |
8797 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8798 | ac_dummy="$PATH" | |
8799 | for ac_dir in $ac_dummy; do | |
8800 | test -z "$ac_dir" && ac_dir=. | |
8801 | if test -f $ac_dir/$ac_word; then | |
8802 | ac_cv_prog_CC="gcc" | |
8803 | break | |
8804 | fi | |
8805 | done | |
8806 | IFS="$ac_save_ifs" | |
10f2d63a | 8807 | fi |
6232543b | 8808 | fi |
a0b9e27f | 8809 | CC="$ac_cv_prog_CC" |
6232543b | 8810 | if test -n "$CC"; then |
a0b9e27f | 8811 | echo "$ac_t""$CC" 1>&6 |
247f5006 | 8812 | else |
a0b9e27f | 8813 | echo "$ac_t""no" 1>&6 |
247f5006 VZ |
8814 | fi |
8815 | ||
5c6fa7d2 RR |
8816 | if test -z "$CC"; then |
8817 | # Extract the first word of "cc", so it can be a program name with args. | |
8818 | set dummy cc; ac_word=$2 | |
a0b9e27f | 8819 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3bce6687 | 8820 | echo "configure:8821: checking for $ac_word" >&5 |
a0b9e27f MB |
8821 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8822 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 RR |
8823 | else |
8824 | if test -n "$CC"; then | |
8825 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8826 | else | |
a0b9e27f | 8827 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5c6fa7d2 | 8828 | ac_prog_rejected=no |
a0b9e27f MB |
8829 | ac_dummy="$PATH" |
8830 | for ac_dir in $ac_dummy; do | |
8831 | test -z "$ac_dir" && ac_dir=. | |
8832 | if test -f $ac_dir/$ac_word; then | |
8833 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8834 | ac_prog_rejected=yes | |
8835 | continue | |
8836 | fi | |
8837 | ac_cv_prog_CC="cc" | |
8838 | break | |
8839 | fi | |
8840 | done | |
8841 | IFS="$ac_save_ifs" | |
328a083c RR |
8842 | if test $ac_prog_rejected = yes; then |
8843 | # We found a bogon in the path, so make sure we never use it. | |
8844 | set dummy $ac_cv_prog_CC | |
8845 | shift | |
a0b9e27f | 8846 | if test $# -gt 0; then |
328a083c | 8847 | # We chose a different compiler from the bogus one. |
1e487827 VS |
8848 | # However, it has the same basename, so the bogon will be chosen |
8849 | # first if we set CC to just the basename; use the full file name. | |
8850 | shift | |
a0b9e27f | 8851 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8852 | shift |
8853 | ac_cv_prog_CC="$@" | |
703e0a69 | 8854 | fi |
1e487827 VS |
8855 | fi |
8856 | fi | |
8857 | fi | |
a0b9e27f | 8858 | CC="$ac_cv_prog_CC" |
1e487827 | 8859 | if test -n "$CC"; then |
a0b9e27f | 8860 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8861 | else |
a0b9e27f | 8862 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8863 | fi |
1e487827 | 8864 | |
a0b9e27f MB |
8865 | if test -z "$CC"; then |
8866 | case "`uname -s`" in | |
8867 | *win32* | *WIN32*) | |
8868 | # Extract the first word of "cl", so it can be a program name with args. | |
8869 | set dummy cl; ac_word=$2 | |
8870 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3bce6687 | 8871 | echo "configure:8872: checking for $ac_word" >&5 |
a0b9e27f MB |
8872 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8873 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf VS |
8874 | else |
8875 | if test -n "$CC"; then | |
8876 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8877 | else | |
a0b9e27f MB |
8878 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8879 | ac_dummy="$PATH" | |
8880 | for ac_dir in $ac_dummy; do | |
8881 | test -z "$ac_dir" && ac_dir=. | |
8882 | if test -f $ac_dir/$ac_word; then | |
8883 | ac_cv_prog_CC="cl" | |
8884 | break | |
8885 | fi | |
8886 | done | |
8887 | IFS="$ac_save_ifs" | |
f09359cf VS |
8888 | fi |
8889 | fi | |
a0b9e27f | 8890 | CC="$ac_cv_prog_CC" |
f09359cf | 8891 | if test -n "$CC"; then |
a0b9e27f | 8892 | echo "$ac_t""$CC" 1>&6 |
f09359cf | 8893 | else |
a0b9e27f | 8894 | echo "$ac_t""no" 1>&6 |
247f5006 | 8895 | fi |
a0b9e27f MB |
8896 | ;; |
8897 | esac | |
8284b0c5 | 8898 | fi |
a0b9e27f | 8899 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5c6fa7d2 | 8900 | fi |
1e487827 | 8901 | |
a0b9e27f | 8902 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
3bce6687 | 8903 | echo "configure:8904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
f09359cf | 8904 | |
a0b9e27f MB |
8905 | ac_ext=c |
8906 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8907 | ac_cpp='$CPP $CPPFLAGS' | |
8908 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8909 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8910 | cross_compiling=$ac_cv_prog_cc_cross | |
f09359cf | 8911 | |
a0b9e27f | 8912 | cat > conftest.$ac_ext << EOF |
247f5006 | 8913 | |
3bce6687 | 8914 | #line 8915 "configure" |
a0b9e27f | 8915 | #include "confdefs.h" |
247f5006 | 8916 | |
a0b9e27f MB |
8917 | main(){return(0);} |
8918 | EOF | |
3bce6687 | 8919 | if { (eval echo configure:8920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
8920 | ac_cv_prog_cc_works=yes |
8921 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8922 | if (./conftest; exit) 2>/dev/null; then | |
8923 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 8924 | else |
a0b9e27f | 8925 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 8926 | fi |
7b4a847f | 8927 | else |
a0b9e27f MB |
8928 | echo "configure: failed program was:" >&5 |
8929 | cat conftest.$ac_ext >&5 | |
8930 | ac_cv_prog_cc_works=no | |
52127426 | 8931 | fi |
a0b9e27f MB |
8932 | rm -fr conftest* |
8933 | ac_ext=c | |
8934 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8935 | ac_cpp='$CPP $CPPFLAGS' | |
8936 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8937 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8938 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 8939 | |
a0b9e27f MB |
8940 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
8941 | if test $ac_cv_prog_cc_works = no; then | |
8942 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8943 | fi | |
8944 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
3bce6687 | 8945 | echo "configure:8946: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
8946 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8947 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 8948 | |
a0b9e27f | 8949 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
3bce6687 | 8950 | echo "configure:8951: checking whether we are using GNU C" >&5 |
a0b9e27f MB |
8951 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8952 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 8953 | else |
a0b9e27f MB |
8954 | cat > conftest.c <<EOF |
8955 | #ifdef __GNUC__ | |
8956 | yes; | |
8284b0c5 | 8957 | #endif |
a0b9e27f | 8958 | EOF |
3bce6687 | 8959 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f | 8960 | ac_cv_prog_gcc=yes |
5c6fa7d2 | 8961 | else |
a0b9e27f | 8962 | ac_cv_prog_gcc=no |
8284b0c5 MB |
8963 | fi |
8964 | fi | |
1e487827 | 8965 | |
a0b9e27f | 8966 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
f09359cf | 8967 | |
a0b9e27f MB |
8968 | if test $ac_cv_prog_gcc = yes; then |
8969 | GCC=yes | |
8970 | else | |
8971 | GCC= | |
8972 | fi | |
247f5006 | 8973 | |
a0b9e27f MB |
8974 | ac_test_CFLAGS="${CFLAGS+set}" |
8975 | ac_save_CFLAGS="$CFLAGS" | |
8976 | CFLAGS= | |
8977 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
3bce6687 | 8978 | echo "configure:8979: checking whether ${CC-cc} accepts -g" >&5 |
a0b9e27f MB |
8979 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8980 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8981 | else | |
8982 | echo 'void f(){}' > conftest.c | |
8983 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8984 | ac_cv_prog_cc_g=yes |
8985 | else | |
a0b9e27f | 8986 | ac_cv_prog_cc_g=no |
10f2d63a | 8987 | fi |
a0b9e27f MB |
8988 | rm -f conftest* |
8989 | ||
10f2d63a | 8990 | fi |
a0b9e27f MB |
8991 | |
8992 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
f09359cf | 8993 | if test "$ac_test_CFLAGS" = set; then |
a0b9e27f | 8994 | CFLAGS="$ac_save_CFLAGS" |
f09359cf VS |
8995 | elif test $ac_cv_prog_cc_g = yes; then |
8996 | if test "$GCC" = yes; then | |
10f2d63a VZ |
8997 | CFLAGS="-g -O2" |
8998 | else | |
f09359cf | 8999 | CFLAGS="-g" |
10f2d63a | 9000 | fi |
5c0a20c3 | 9001 | else |
f09359cf VS |
9002 | if test "$GCC" = yes; then |
9003 | CFLAGS="-O2" | |
9004 | else | |
9005 | CFLAGS= | |
9006 | fi | |
10f2d63a VZ |
9007 | fi |
9008 | ||
9009 | ||
a0b9e27f | 9010 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
3bce6687 | 9011 | echo "configure:9012: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
9012 | # On Suns, sometimes $CPP names a directory. |
9013 | if test -n "$CPP" && test -d "$CPP"; then | |
9014 | CPP= | |
9015 | fi | |
9016 | if test -z "$CPP"; then | |
a0b9e27f MB |
9017 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
9018 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9019 | else | |
9020 | # This must be in double quotes, not single quotes, because CPP may get | |
9021 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
9022 | CPP="${CC-cc} -E" | |
10f2d63a | 9023 | # On the NeXT, cc -E runs the code through the compiler's parser, |
a0b9e27f MB |
9024 | # not just through cpp. |
9025 | cat > conftest.$ac_ext <<EOF | |
3bce6687 | 9026 | #line 9027 "configure" |
10f2d63a VZ |
9027 | #include "confdefs.h" |
9028 | #include <assert.h> | |
a0b9e27f MB |
9029 | Syntax Error |
9030 | EOF | |
9031 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3bce6687 | 9032 | { (eval echo configure:9033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9033 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9034 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9035 | : |
9036 | else | |
a0b9e27f MB |
9037 | echo "$ac_err" >&5 |
9038 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9039 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9040 | rm -rf conftest* |
9041 | CPP="${CC-cc} -E -traditional-cpp" | |
9042 | cat > conftest.$ac_ext <<EOF | |
3bce6687 | 9043 | #line 9044 "configure" |
f09359cf | 9044 | #include "confdefs.h" |
a0b9e27f MB |
9045 | #include <assert.h> |
9046 | Syntax Error | |
9047 | EOF | |
9048 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3bce6687 | 9049 | { (eval echo configure:9050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9050 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9051 | if test -z "$ac_err"; then | |
9052 | : | |
247f5006 | 9053 | else |
a0b9e27f MB |
9054 | echo "$ac_err" >&5 |
9055 | echo "configure: failed program was:" >&5 | |
f09359cf | 9056 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9057 | rm -rf conftest* |
9058 | CPP="${CC-cc} -nologo -E" | |
9059 | cat > conftest.$ac_ext <<EOF | |
3bce6687 | 9060 | #line 9061 "configure" |
10f2d63a VZ |
9061 | #include "confdefs.h" |
9062 | #include <assert.h> | |
a0b9e27f MB |
9063 | Syntax Error |
9064 | EOF | |
9065 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3bce6687 | 9066 | { (eval echo configure:9067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9067 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9068 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9069 | : |
9070 | else | |
a0b9e27f MB |
9071 | echo "$ac_err" >&5 |
9072 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9073 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9074 | rm -rf conftest* |
9075 | CPP=/lib/cpp | |
579d8138 | 9076 | fi |
a0b9e27f | 9077 | rm -f conftest* |
52127426 | 9078 | fi |
a0b9e27f | 9079 | rm -f conftest* |
8284b0c5 | 9080 | fi |
a0b9e27f MB |
9081 | rm -f conftest* |
9082 | ac_cv_prog_CPP="$CPP" | |
9083 | fi | |
9084 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 9085 | else |
a0b9e27f | 9086 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 9087 | fi |
a0b9e27f | 9088 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 9089 | |
a0b9e27f MB |
9090 | if test $ac_cv_prog_gcc = yes; then |
9091 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
3bce6687 | 9092 | echo "configure:9093: checking whether ${CC-cc} needs -traditional" >&5 |
a0b9e27f MB |
9093 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
9094 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9095 | else |
9096 | ac_pattern="Autoconf.*'x'" | |
a0b9e27f | 9097 | cat > conftest.$ac_ext <<EOF |
3bce6687 | 9098 | #line 9099 "configure" |
10f2d63a VZ |
9099 | #include "confdefs.h" |
9100 | #include <sgtty.h> | |
9101 | Autoconf TIOCGETP | |
a0b9e27f | 9102 | EOF |
10f2d63a VZ |
9103 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9104 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9105 | rm -rf conftest* |
10f2d63a VZ |
9106 | ac_cv_prog_gcc_traditional=yes |
9107 | else | |
a0b9e27f | 9108 | rm -rf conftest* |
10f2d63a VZ |
9109 | ac_cv_prog_gcc_traditional=no |
9110 | fi | |
9111 | rm -f conftest* | |
9112 | ||
8284b0c5 | 9113 | |
10f2d63a | 9114 | if test $ac_cv_prog_gcc_traditional = no; then |
a0b9e27f | 9115 | cat > conftest.$ac_ext <<EOF |
3bce6687 | 9116 | #line 9117 "configure" |
10f2d63a VZ |
9117 | #include "confdefs.h" |
9118 | #include <termio.h> | |
9119 | Autoconf TCGETA | |
a0b9e27f | 9120 | EOF |
10f2d63a VZ |
9121 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9122 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9123 | rm -rf conftest* |
10f2d63a VZ |
9124 | ac_cv_prog_gcc_traditional=yes |
9125 | fi | |
9126 | rm -f conftest* | |
9127 | ||
9128 | fi | |
9129 | fi | |
a0b9e27f MB |
9130 | |
9131 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
9132 | if test $ac_cv_prog_gcc_traditional = yes; then |
9133 | CC="$CC -traditional" | |
9134 | fi | |
9135 | fi | |
9136 | ||
8284b0c5 MB |
9137 | |
9138 | ||
a0b9e27f MB |
9139 | ac_ext=C |
9140 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 9141 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
9142 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9143 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9144 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9145 | |
698dcdb6 | 9146 | |
ec603395 | 9147 | CXXFLAGS=${CXXFLAGS:=} |
a0b9e27f MB |
9148 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
9149 | do | |
9150 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9151 | set dummy $ac_prog; ac_word=$2 | |
9152 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3bce6687 | 9153 | echo "configure:9154: checking for $ac_word" >&5 |
a0b9e27f MB |
9154 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
9155 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9156 | else |
9157 | if test -n "$CXX"; then | |
9158 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9159 | else | |
a0b9e27f MB |
9160 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9161 | ac_dummy="$PATH" | |
9162 | for ac_dir in $ac_dummy; do | |
9163 | test -z "$ac_dir" && ac_dir=. | |
9164 | if test -f $ac_dir/$ac_word; then | |
9165 | ac_cv_prog_CXX="$ac_prog" | |
9166 | break | |
9167 | fi | |
9168 | done | |
9169 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9170 | fi |
9171 | fi | |
a0b9e27f | 9172 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9173 | if test -n "$CXX"; then |
a0b9e27f | 9174 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9175 | else |
a0b9e27f | 9176 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9177 | fi |
9178 | ||
a0b9e27f | 9179 | test -n "$CXX" && break |
10f2d63a | 9180 | done |
a0b9e27f | 9181 | test -n "$CXX" || CXX="gcc" |
f09359cf | 9182 | |
a0b9e27f MB |
9183 | |
9184 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
3bce6687 | 9185 | echo "configure:9186: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
a0b9e27f MB |
9186 | |
9187 | ac_ext=C | |
9188 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9189 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9190 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9191 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9192 | cross_compiling=$ac_cv_prog_cxx_cross | |
9193 | ||
9194 | cat > conftest.$ac_ext << EOF | |
9195 | ||
3bce6687 | 9196 | #line 9197 "configure" |
a0b9e27f MB |
9197 | #include "confdefs.h" |
9198 | ||
9199 | int main(){return(0);} | |
9200 | EOF | |
3bce6687 | 9201 | if { (eval echo configure:9202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9202 | ac_cv_prog_cxx_works=yes |
9203 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9204 | if (./conftest; exit) 2>/dev/null; then | |
9205 | ac_cv_prog_cxx_cross=no | |
9206 | else | |
9207 | ac_cv_prog_cxx_cross=yes | |
9208 | fi | |
8284b0c5 | 9209 | else |
a0b9e27f MB |
9210 | echo "configure: failed program was:" >&5 |
9211 | cat conftest.$ac_ext >&5 | |
9212 | ac_cv_prog_cxx_works=no | |
8284b0c5 | 9213 | fi |
a0b9e27f MB |
9214 | rm -fr conftest* |
9215 | ac_ext=C | |
9216 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9217 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9218 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9219 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9220 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9221 | |
a0b9e27f MB |
9222 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
9223 | if test $ac_cv_prog_cxx_works = no; then | |
9224 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9225 | fi | |
9226 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
3bce6687 | 9227 | echo "configure:9228: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9228 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9229 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9230 | |
a0b9e27f | 9231 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
3bce6687 | 9232 | echo "configure:9233: checking whether we are using GNU C++" >&5 |
a0b9e27f MB |
9233 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9234 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9235 | else | |
9236 | cat > conftest.C <<EOF | |
9237 | #ifdef __GNUC__ | |
9238 | yes; | |
10f2d63a | 9239 | #endif |
a0b9e27f | 9240 | EOF |
3bce6687 | 9241 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f MB |
9242 | ac_cv_prog_gxx=yes |
9243 | else | |
9244 | ac_cv_prog_gxx=no | |
9245 | fi | |
9246 | fi | |
10f2d63a | 9247 | |
a0b9e27f | 9248 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9249 | |
a0b9e27f MB |
9250 | if test $ac_cv_prog_gxx = yes; then |
9251 | GXX=yes | |
9252 | else | |
9253 | GXX= | |
9254 | fi | |
f09359cf | 9255 | |
a0b9e27f MB |
9256 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9257 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9258 | CXXFLAGS= | |
9259 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
3bce6687 | 9260 | echo "configure:9261: checking whether ${CXX-g++} accepts -g" >&5 |
a0b9e27f MB |
9261 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9263 | else | |
9264 | echo 'void f(){}' > conftest.cc | |
9265 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9266 | ac_cv_prog_cxx_g=yes |
9267 | else | |
a0b9e27f | 9268 | ac_cv_prog_cxx_g=no |
10f2d63a | 9269 | fi |
a0b9e27f MB |
9270 | rm -f conftest* |
9271 | ||
10f2d63a | 9272 | fi |
a0b9e27f MB |
9273 | |
9274 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
f09359cf | 9275 | if test "$ac_test_CXXFLAGS" = set; then |
a0b9e27f | 9276 | CXXFLAGS="$ac_save_CXXFLAGS" |
f09359cf VS |
9277 | elif test $ac_cv_prog_cxx_g = yes; then |
9278 | if test "$GXX" = yes; then | |
10f2d63a VZ |
9279 | CXXFLAGS="-g -O2" |
9280 | else | |
f09359cf | 9281 | CXXFLAGS="-g" |
10f2d63a | 9282 | fi |
5c0a20c3 | 9283 | else |
f09359cf VS |
9284 | if test "$GXX" = yes; then |
9285 | CXXFLAGS="-O2" | |
9286 | else | |
9287 | CXXFLAGS= | |
9288 | fi | |
10f2d63a VZ |
9289 | fi |
9290 | ||
9291 | ||
10f2d63a | 9292 | ac_ext=c |
a0b9e27f | 9293 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9294 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
9295 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9296 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9297 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 MB |
9298 | |
9299 | ||
a0b9e27f MB |
9300 | # Extract the first word of "ranlib", so it can be a program name with args. |
9301 | set dummy ranlib; ac_word=$2 | |
9302 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3bce6687 | 9303 | echo "configure:9304: checking for $ac_word" >&5 |
a0b9e27f MB |
9304 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9306 | else |
9307 | if test -n "$RANLIB"; then | |
9308 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9309 | else | |
a0b9e27f MB |
9310 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9311 | ac_dummy="$PATH" | |
9312 | for ac_dir in $ac_dummy; do | |
9313 | test -z "$ac_dir" && ac_dir=. | |
9314 | if test -f $ac_dir/$ac_word; then | |
9315 | ac_cv_prog_RANLIB="ranlib" | |
9316 | break | |
9317 | fi | |
9318 | done | |
9319 | IFS="$ac_save_ifs" | |
9320 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9321 | fi |
9322 | fi | |
a0b9e27f | 9323 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9324 | if test -n "$RANLIB"; then |
a0b9e27f | 9325 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9326 | else |
a0b9e27f | 9327 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9328 | fi |
9329 | ||
10f2d63a VZ |
9330 | |
9331 | # Extract the first word of "ar", so it can be a program name with args. | |
9332 | set dummy ar; ac_word=$2 | |
a0b9e27f | 9333 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3bce6687 | 9334 | echo "configure:9335: checking for $ac_word" >&5 |
a0b9e27f MB |
9335 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9336 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9337 | else |
9338 | if test -n "$AR"; then | |
9339 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9340 | else | |
a0b9e27f MB |
9341 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9342 | ac_dummy="$PATH" | |
9343 | for ac_dir in $ac_dummy; do | |
9344 | test -z "$ac_dir" && ac_dir=. | |
9345 | if test -f $ac_dir/$ac_word; then | |
9346 | ac_cv_prog_AR="ar" | |
9347 | break | |
9348 | fi | |
9349 | done | |
9350 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9351 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9352 | fi | |
9353 | fi | |
a0b9e27f | 9354 | AR="$ac_cv_prog_AR" |
10f2d63a | 9355 | if test -n "$AR"; then |
a0b9e27f | 9356 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9357 | else |
a0b9e27f | 9358 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9359 | fi |
9360 | ||
8284b0c5 | 9361 | |
6054113a | 9362 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9363 | # so one script is as good as another. But avoid the broken or |
9364 | # incompatible versions: | |
9365 | # SysV /etc/install, /usr/sbin/install | |
9366 | # SunOS /usr/etc/install | |
9367 | # IRIX /sbin/install | |
9368 | # AIX /bin/install | |
f09359cf | 9369 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
9370 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9371 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9372 | # ./install, which can be erroneously created by make from ./install.sh. | |
a0b9e27f | 9373 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
3bce6687 | 9374 | echo "configure:9375: checking for a BSD compatible install" >&5 |
10f2d63a | 9375 | if test -z "$INSTALL"; then |
a0b9e27f MB |
9376 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9378 | else | |
9379 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9380 | for ac_dir in $PATH; do | |
9381 | # Account for people who put trailing slashes in PATH elements. | |
9382 | case "$ac_dir/" in | |
9383 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9384 | *) | |
9385 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9386 | # Don't use installbsd from OSF since it installs stuff as root | |
9387 | # by default. | |
9388 | for ac_prog in ginstall scoinst install; do | |
9389 | if test -f $ac_dir/$ac_prog; then | |
9390 | if test $ac_prog = install && | |
9391 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9392 | # AIX install. It has an incompatible calling convention. | |
9393 | : | |
9394 | else | |
9395 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9396 | break 2 | |
9397 | fi | |
9398 | fi | |
10f2d63a | 9399 | done |
a0b9e27f MB |
9400 | ;; |
9401 | esac | |
9402 | done | |
9403 | IFS="$ac_save_IFS" | |
10f2d63a VZ |
9404 | |
9405 | fi | |
9406 | if test "${ac_cv_path_install+set}" = set; then | |
a0b9e27f | 9407 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9408 | else |
9409 | # As a last resort, use the slow shell script. We don't cache a | |
9410 | # path for INSTALL within a source directory, because that will | |
9411 | # break other packages using the cache if that directory is | |
9412 | # removed, or if the path is relative. | |
a0b9e27f | 9413 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9414 | fi |
9415 | fi | |
a0b9e27f | 9416 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9417 | |
9418 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9419 | # It thinks the first close brace ends the variable substitution. | |
9420 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9421 | ||
a0b9e27f | 9422 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
f09359cf | 9423 | |
10f2d63a VZ |
9424 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9425 | ||
8284b0c5 | 9426 | |
1d1b75ac VZ |
9427 | case ${INSTALL} in |
9428 | /* ) # Absolute | |
9429 | ;; | |
3bd8fb5f | 9430 | *) |
1d1b75ac VZ |
9431 | INSTALL=`pwd`/${INSTALL} ;; |
9432 | esac | |
9433 | ||
8284b0c5 | 9434 | |
6054113a GD |
9435 | case "${host}" in |
9436 | ||
b5853384 | 9437 | powerpc-*-darwin* ) |
eb99ae0b GD |
9438 | INSTALL_PROGRAM="cp -fp" |
9439 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9440 | ;; |
9441 | *) | |
9442 | ;; | |
d6853540 | 9443 | esac |
698dcdb6 | 9444 | |
10f2d63a VZ |
9445 | # Extract the first word of "strip", so it can be a program name with args. |
9446 | set dummy strip; ac_word=$2 | |
a0b9e27f | 9447 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3bce6687 | 9448 | echo "configure:9449: checking for $ac_word" >&5 |
a0b9e27f MB |
9449 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9450 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9451 | else |
9452 | if test -n "$STRIP"; then | |
9453 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9454 | else | |
a0b9e27f MB |
9455 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9456 | ac_dummy="$PATH" | |
9457 | for ac_dir in $ac_dummy; do | |
9458 | test -z "$ac_dir" && ac_dir=. | |
9459 | if test -f $ac_dir/$ac_word; then | |
9460 | ac_cv_prog_STRIP="strip" | |
9461 | break | |
9462 | fi | |
9463 | done | |
9464 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9465 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9466 | fi | |
9467 | fi | |
a0b9e27f | 9468 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9469 | if test -n "$STRIP"; then |
a0b9e27f | 9470 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9471 | else |
a0b9e27f | 9472 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9473 | fi |
9474 | ||
5c6fa7d2 | 9475 | |
a0b9e27f | 9476 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
3bce6687 | 9477 | echo "configure:9478: checking if make is GNU make" >&5 |
a0b9e27f MB |
9478 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9480 | else |
a0b9e27f | 9481 | |
414eab6d | 9482 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9483 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9484 | wx_cv_prog_makeisgnu="yes" |
9485 | else | |
9486 | wx_cv_prog_makeisgnu="no" | |
9487 | fi | |
9488 | ||
9489 | fi | |
a0b9e27f MB |
9490 | |
9491 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9492 | |
9493 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9494 | IF_GNU_MAKE="" | |
9495 | else | |
9496 | IF_GNU_MAKE="#" | |
9497 | fi | |
9498 | ||
8284b0c5 MB |
9499 | |
9500 | ||
414eab6d | 9501 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
a0b9e27f | 9502 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
3bce6687 | 9503 | echo "configure:9504: checking if make supports VPATH" >&5 |
a0b9e27f MB |
9504 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9505 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9506 | else |
a0b9e27f | 9507 | |
10f2d63a VZ |
9508 | cat - << EOF > confMake |
9509 | check : file | |
9510 | cp \$? \$@ | |
9511 | cp \$? final_file | |
9512 | EOF | |
9513 | ||
9514 | if test ! -d sub ; then | |
9515 | mkdir sub | |
9516 | fi | |
9517 | echo dummy > sub/file | |
f6bcfd97 | 9518 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9519 | RESULT=$? |
9520 | rm -f sub/file check final_file confMake | |
9521 | rmdir sub | |
9522 | if test "$RESULT" = 0; then | |
04e7a216 | 9523 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9524 | else |
04e7a216 VZ |
9525 | wx_cv_prog_makevpath="no" |
9526 | fi | |
9527 | ||
9528 | fi | |
a0b9e27f MB |
9529 | |
9530 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9531 | |
9532 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
a0b9e27f | 9533 | { echo "configure: error: |
5c6fa7d2 RR |
9534 | You need a make-utility that is able to use the variable |
9535 | VPATH correctly. | |
9536 | If your version of make does not support VPATH correctly, | |
9537 | please install GNU-make (possibly as gmake), and start | |
9538 | configure with the following command: | |
9539 | export MAKE=gmake; ./configure for sh-type shells | |
9540 | setenv MAKE gmake; ./configure for csh-type shells | |
9541 | Also please do remember to use gmake in this case every time | |
9542 | you are trying to compile. | |
a0b9e27f MB |
9543 | " 1>&2; exit 1; } |
9544 | fi fi | |
10f2d63a VZ |
9545 | for ac_prog in 'bison -y' byacc |
9546 | do | |
a0b9e27f | 9547 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9548 | set dummy $ac_prog; ac_word=$2 |
a0b9e27f | 9549 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3bce6687 | 9550 | echo "configure:9551: checking for $ac_word" >&5 |
a0b9e27f MB |
9551 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9552 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9553 | else |
9554 | if test -n "$YACC"; then | |
9555 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9556 | else | |
a0b9e27f MB |
9557 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9558 | ac_dummy="$PATH" | |
9559 | for ac_dir in $ac_dummy; do | |
9560 | test -z "$ac_dir" && ac_dir=. | |
9561 | if test -f $ac_dir/$ac_word; then | |
9562 | ac_cv_prog_YACC="$ac_prog" | |
9563 | break | |
9564 | fi | |
9565 | done | |
9566 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9567 | fi |
9568 | fi | |
a0b9e27f | 9569 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9570 | if test -n "$YACC"; then |
a0b9e27f | 9571 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9572 | else |
a0b9e27f | 9573 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9574 | fi |
9575 | ||
a0b9e27f | 9576 | test -n "$YACC" && break |
10f2d63a VZ |
9577 | done |
9578 | test -n "$YACC" || YACC="yacc" | |
9579 | ||
8284b0c5 | 9580 | |
a0b9e27f MB |
9581 | # Extract the first word of "flex", so it can be a program name with args. |
9582 | set dummy flex; ac_word=$2 | |
9583 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3bce6687 | 9584 | echo "configure:9585: checking for $ac_word" >&5 |
a0b9e27f MB |
9585 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9586 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9587 | else |
9588 | if test -n "$LEX"; then | |
9589 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9590 | else | |
a0b9e27f MB |
9591 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9592 | ac_dummy="$PATH" | |
9593 | for ac_dir in $ac_dummy; do | |
9594 | test -z "$ac_dir" && ac_dir=. | |
9595 | if test -f $ac_dir/$ac_word; then | |
9596 | ac_cv_prog_LEX="flex" | |
9597 | break | |
9598 | fi | |
9599 | done | |
9600 | IFS="$ac_save_ifs" | |
9601 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9602 | fi |
9603 | fi | |
a0b9e27f | 9604 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9605 | if test -n "$LEX"; then |
a0b9e27f | 9606 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9607 | else |
a0b9e27f | 9608 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9609 | fi |
9610 | ||
9611 | if test -z "$LEXLIB" | |
9612 | then | |
a0b9e27f MB |
9613 | case "$LEX" in |
9614 | flex*) ac_lib=fl ;; | |
9615 | *) ac_lib=l ;; | |
9616 | esac | |
9617 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
3bce6687 | 9618 | echo "configure:9619: checking for yywrap in -l$ac_lib" >&5 |
a0b9e27f MB |
9619 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9620 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9621 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9622 | else | |
9623 | ac_save_LIBS="$LIBS" | |
9624 | LIBS="-l$ac_lib $LIBS" | |
9625 | cat > conftest.$ac_ext <<EOF | |
3bce6687 | 9626 | #line 9627 "configure" |
247f5006 | 9627 | #include "confdefs.h" |
247f5006 | 9628 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 9629 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
9630 | builtin and then its argument prototype would still apply. */ |
9631 | char yywrap(); | |
10f2d63a | 9632 | |
a0b9e27f MB |
9633 | int main() { |
9634 | yywrap() | |
9635 | ; return 0; } | |
9636 | EOF | |
3bce6687 | 9637 | if { (eval echo configure:9638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9638 | rm -rf conftest* |
9639 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9640 | else | |
9641 | echo "configure: failed program was:" >&5 | |
9642 | cat conftest.$ac_ext >&5 | |
9643 | rm -rf conftest* | |
9644 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9645 | fi |
a0b9e27f MB |
9646 | rm -f conftest* |
9647 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 9648 | |
10f2d63a | 9649 | fi |
a0b9e27f MB |
9650 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9651 | echo "$ac_t""yes" 1>&6 | |
9652 | LEXLIB="-l$ac_lib" | |
8284b0c5 | 9653 | else |
a0b9e27f | 9654 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9655 | fi |
9656 | ||
a0b9e27f | 9657 | fi |
10f2d63a VZ |
9658 | |
9659 | ||
a0b9e27f | 9660 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
3bce6687 | 9661 | echo "configure:9662: checking whether ln -s works" >&5 |
a0b9e27f MB |
9662 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9663 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9664 | else |
a0b9e27f MB |
9665 | rm -f conftestdata |
9666 | if ln -s X conftestdata 2>/dev/null | |
9667 | then | |
9668 | rm -f conftestdata | |
9669 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9670 | else |
a0b9e27f | 9671 | ac_cv_prog_LN_S=ln |
10f2d63a | 9672 | fi |
a0b9e27f MB |
9673 | fi |
9674 | LN_S="$ac_cv_prog_LN_S" | |
9675 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9676 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9677 | else |
a0b9e27f | 9678 | echo "$ac_t""no" 1>&6 |
5c6fa7d2 | 9679 | fi |
5c6fa7d2 | 9680 | |
247f5006 | 9681 | |
a0b9e27f MB |
9682 | |
9683 | if test "$wxUSE_MAC" != 1; then | |
9684 | for ac_hdr in strings.h | |
9685 | do | |
9686 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9687 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3bce6687 | 9688 | echo "configure:9689: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9689 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9690 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9691 | else | |
9692 | cat > conftest.$ac_ext <<EOF | |
3bce6687 | 9693 | #line 9694 "configure" |
a0b9e27f MB |
9694 | #include "confdefs.h" |
9695 | #include <$ac_hdr> | |
9696 | EOF | |
9697 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3bce6687 | 9698 | { (eval echo configure:9699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9699 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9700 | if test -z "$ac_err"; then | |
9701 | rm -rf conftest* | |
9702 | eval "ac_cv_header_$ac_safe=yes" | |
9703 | else | |
9704 | echo "$ac_err" >&5 | |
9705 | echo "configure: failed program was:" >&5 | |
9706 | cat conftest.$ac_ext >&5 | |
9707 | rm -rf conftest* | |
9708 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 9709 | fi |
247f5006 | 9710 | rm -f conftest* |
19bc6aad | 9711 | fi |
a0b9e27f MB |
9712 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9713 | echo "$ac_t""yes" 1>&6 | |
9714 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9715 | cat >> confdefs.h <<EOF | |
9716 | #define $ac_tr_hdr 1 | |
9717 | EOF | |
9718 | ||
247f5006 | 9719 | else |
a0b9e27f | 9720 | echo "$ac_t""no" 1>&6 |
18dbb1f6 | 9721 | fi |
a0b9e27f | 9722 | done |
247f5006 | 9723 | |
90dd450c | 9724 | fi |
90dd450c | 9725 | |
a0b9e27f MB |
9726 | for ac_hdr in stdlib.h |
9727 | do | |
9728 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9729 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3bce6687 | 9730 | echo "configure:9731: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9731 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9732 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9733 | else | |
9734 | cat > conftest.$ac_ext <<EOF | |
3bce6687 | 9735 | #line 9736 "configure" |
90dd450c | 9736 | #include "confdefs.h" |
a0b9e27f MB |
9737 | #include <$ac_hdr> |
9738 | EOF | |
9739 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3bce6687 | 9740 | { (eval echo configure:9741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9741 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9742 | if test -z "$ac_err"; then | |
9743 | rm -rf conftest* | |
9744 | eval "ac_cv_header_$ac_safe=yes" | |
9745 | else | |
9746 | echo "$ac_err" >&5 | |
9747 | echo "configure: failed program was:" >&5 | |
9748 | cat conftest.$ac_ext >&5 | |
9749 | rm -rf conftest* | |
9750 | eval "ac_cv_header_$ac_safe=no" | |
9751 | fi | |
9752 | rm -f conftest* | |
9753 | fi | |
9754 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9755 | echo "$ac_t""yes" 1>&6 | |
9756 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9757 | cat >> confdefs.h <<EOF | |
9758 | #define $ac_tr_hdr 1 | |
9759 | EOF | |
9760 | ||
8284b0c5 | 9761 | else |
a0b9e27f | 9762 | echo "$ac_t""no" 1>&6 |
21d1c967 | 9763 | fi |
a0b9e27f MB |
9764 | done |
9765 | ||
9766 | for ac_hdr in malloc.h | |
9767 | do | |
9768 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9769 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3bce6687 | 9770 | echo "configure:9771: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9771 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9772 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9773 | else | |
9774 | cat > conftest.$ac_ext <<EOF | |
3bce6687 | 9775 | #line 9776 "configure" |
a0b9e27f MB |
9776 | #include "confdefs.h" |
9777 | #include <$ac_hdr> | |
9778 | EOF | |
9779 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3bce6687 | 9780 | { (eval echo configure:9781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9781 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9782 | if test -z "$ac_err"; then | |
9783 | rm -rf conftest* | |
9784 | eval "ac_cv_header_$ac_safe=yes" | |
9785 | else | |
9786 | echo "$ac_err" >&5 | |
9787 | echo "configure: failed program was:" >&5 | |
9788 | cat conftest.$ac_ext >&5 | |
9789 | rm -rf conftest* | |
9790 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9791 | fi |
a0b9e27f | 9792 | rm -f conftest* |
90dd450c | 9793 | fi |
a0b9e27f MB |
9794 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9795 | echo "$ac_t""yes" 1>&6 | |
9796 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9797 | cat >> confdefs.h <<EOF | |
9798 | #define $ac_tr_hdr 1 | |
9799 | EOF | |
9800 | ||
9801 | else | |
9802 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 9803 | fi |
a0b9e27f | 9804 | done |
247f5006 | 9805 | |
a0b9e27f MB |
9806 | for ac_hdr in unistd.h |
9807 | do | |
9808 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9809 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3bce6687 | 9810 | echo "configure:9811: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9811 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9813 | else | |
9814 | cat > conftest.$ac_ext <<EOF | |
3bce6687 | 9815 | #line 9816 "configure" |
a0b9e27f MB |
9816 | #include "confdefs.h" |
9817 | #include <$ac_hdr> | |
9818 | EOF | |
9819 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3bce6687 | 9820 | { (eval echo configure:9821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9821 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9822 | if test -z "$ac_err"; then | |
9823 | rm -rf conftest* | |
9824 | eval "ac_cv_header_$ac_safe=yes" | |
9825 | else | |
9826 | echo "$ac_err" >&5 | |
9827 | echo "configure: failed program was:" >&5 | |
9828 | cat conftest.$ac_ext >&5 | |
9829 | rm -rf conftest* | |
9830 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 9831 | fi |
a0b9e27f MB |
9832 | rm -f conftest* |
9833 | fi | |
9834 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9835 | echo "$ac_t""yes" 1>&6 | |
9836 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9837 | cat >> confdefs.h <<EOF | |
9838 | #define $ac_tr_hdr 1 | |
9839 | EOF | |
9840 | ||
9841 | else | |
9842 | echo "$ac_t""no" 1>&6 | |
9843 | fi | |
9844 | done | |
90dd450c | 9845 | |
a0b9e27f | 9846 | for ac_hdr in wchar.h |
21d1c967 | 9847 | do |
a0b9e27f MB |
9848 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9849 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3bce6687 | 9850 | echo "configure:9851: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9851 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9852 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9853 | else | |
9854 | cat > conftest.$ac_ext <<EOF | |
3bce6687 | 9855 | #line 9856 "configure" |
4f14bcd8 | 9856 | #include "confdefs.h" |
a0b9e27f MB |
9857 | #include <$ac_hdr> |
9858 | EOF | |
9859 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3bce6687 | 9860 | { (eval echo configure:9861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9861 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9862 | if test -z "$ac_err"; then | |
9863 | rm -rf conftest* | |
9864 | eval "ac_cv_header_$ac_safe=yes" | |
9865 | else | |
9866 | echo "$ac_err" >&5 | |
9867 | echo "configure: failed program was:" >&5 | |
9868 | cat conftest.$ac_ext >&5 | |
9869 | rm -rf conftest* | |
9870 | eval "ac_cv_header_$ac_safe=no" | |
9871 | fi | |
9872 | rm -f conftest* | |
9873 | fi | |
9874 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9875 | echo "$ac_t""yes" 1>&6 | |
9876 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9877 | cat >> confdefs.h <<EOF | |
9878 | #define $ac_tr_hdr 1 | |
9879 | EOF | |
9880 | ||
9881 | else | |
9882 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9883 | fi |
9884 | done | |
4f14bcd8 | 9885 | |
5c6fa7d2 | 9886 | |
a0b9e27f MB |
9887 | if test "$ac_cv_header_wchar_h" != "yes"; then |
9888 | for ac_hdr in wcstr.h | |
21d1c967 | 9889 | do |
a0b9e27f MB |
9890 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9891 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3bce6687 | 9892 | echo "configure:9893: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9893 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9895 | else | |
9896 | cat > conftest.$ac_ext <<EOF | |
3bce6687 | 9897 | #line 9898 "configure" |
d4158b5d | 9898 | #include "confdefs.h" |
a0b9e27f MB |
9899 | #include <$ac_hdr> |
9900 | EOF | |
9901 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3bce6687 | 9902 | { (eval echo configure:9903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9903 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9904 | if test -z "$ac_err"; then | |
9905 | rm -rf conftest* | |
9906 | eval "ac_cv_header_$ac_safe=yes" | |
9907 | else | |
9908 | echo "$ac_err" >&5 | |
9909 | echo "configure: failed program was:" >&5 | |
d4158b5d | 9910 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9911 | rm -rf conftest* |
9912 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 9913 | fi |
a0b9e27f | 9914 | rm -f conftest* |
21d1c967 | 9915 | fi |
a0b9e27f MB |
9916 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9917 | echo "$ac_t""yes" 1>&6 | |
9918 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9919 | cat >> confdefs.h <<EOF | |
9920 | #define $ac_tr_hdr 1 | |
9921 | EOF | |
9922 | ||
9923 | else | |
9924 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 9925 | fi |
21d1c967 | 9926 | done |
f6bcfd97 | 9927 | |
90dd450c | 9928 | fi |
90dd450c | 9929 | |
a0b9e27f | 9930 | for ac_hdr in fnmatch.h |
21d1c967 | 9931 | do |
a0b9e27f MB |
9932 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9933 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3bce6687 | 9934 | echo "configure:9935: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9935 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9936 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9937 | else | |
9938 | cat > conftest.$ac_ext <<EOF | |
3bce6687 | 9939 | #line 9940 "configure" |
90dd450c | 9940 | #include "confdefs.h" |
a0b9e27f MB |
9941 | #include <$ac_hdr> |
9942 | EOF | |
9943 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3bce6687 | 9944 | { (eval echo configure:9945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9945 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9946 | if test -z "$ac_err"; then | |
9947 | rm -rf conftest* | |
9948 | eval "ac_cv_header_$ac_safe=yes" | |
9949 | else | |
9950 | echo "$ac_err" >&5 | |
9951 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 9952 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9953 | rm -rf conftest* |
9954 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9955 | fi |
a0b9e27f | 9956 | rm -f conftest* |
4f14bcd8 | 9957 | fi |
a0b9e27f MB |
9958 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9959 | echo "$ac_t""yes" 1>&6 | |
9960 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9961 | cat >> confdefs.h <<EOF | |
9962 | #define $ac_tr_hdr 1 | |
9963 | EOF | |
9964 | ||
9965 | else | |
9966 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9967 | fi |
9968 | done | |
90dd450c | 9969 | |
5c6fa7d2 | 9970 | |
a0b9e27f MB |
9971 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
9972 | for ac_func in fnmatch | |
21d1c967 | 9973 | do |
a0b9e27f | 9974 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3bce6687 | 9975 | echo "configure:9976: checking for $ac_func" >&5 |
a0b9e27f MB |
9976 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9977 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 9978 | else |
a0b9e27f | 9979 | cat > conftest.$ac_ext <<EOF |
3bce6687 | 9980 | #line 9981 "configure" |
a0b9e27f MB |
9981 | #include "confdefs.h" |
9982 | /* System header to define __stub macros and hopefully few prototypes, | |
9983 | which can conflict with char $ac_func(); below. */ | |
9984 | #include <assert.h> | |
9985 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9986 | /* We use char because int might match the return type of a gcc2 | |
9987 | builtin and then its argument prototype would still apply. */ | |
9988 | char $ac_func(); | |
9989 | ||
9990 | int main() { | |
9991 | ||
9992 | /* The GNU C library defines this for functions which it implements | |
9993 | to always fail with ENOSYS. Some functions are actually named | |
9994 | something starting with __ and the normal name is an alias. */ | |
9995 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9996 | choke me | |
9997 | #else | |
9998 | $ac_func(); | |
9999 | #endif | |
10000 | ||
10001 | ; return 0; } | |
10002 | EOF | |
3bce6687 | 10003 | if { (eval echo configure:10004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
10004 | rm -rf conftest* |
10005 | eval "ac_cv_func_$ac_func=yes" | |
8284b0c5 | 10006 | else |
a0b9e27f | 10007 | echo "configure: failed program was:" >&5 |
8284b0c5 | 10008 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10009 | rm -rf conftest* |
10010 | eval "ac_cv_func_$ac_func=no" | |
8284b0c5 | 10011 | fi |
a0b9e27f | 10012 | rm -f conftest* |
8284b0c5 | 10013 | fi |
32832908 | 10014 | |
a0b9e27f MB |
10015 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10016 | echo "$ac_t""yes" 1>&6 | |
10017 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10018 | cat >> confdefs.h <<EOF | |
10019 | #define $ac_tr_func 1 | |
10020 | EOF | |
10021 | ||
10022 | else | |
10023 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10024 | fi |
10025 | done | |
90dd450c | 10026 | |
a0b9e27f | 10027 | fi |
90dd450c | 10028 | |
a0b9e27f | 10029 | for ac_hdr in langinfo.h |
21d1c967 | 10030 | do |
a0b9e27f MB |
10031 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10032 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3bce6687 | 10033 | echo "configure:10034: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10034 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10035 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10036 | else | |
10037 | cat > conftest.$ac_ext <<EOF | |
3bce6687 | 10038 | #line 10039 "configure" |
247f5006 | 10039 | #include "confdefs.h" |
a0b9e27f MB |
10040 | #include <$ac_hdr> |
10041 | EOF | |
10042 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3bce6687 | 10043 | { (eval echo configure:10044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10044 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10045 | if test -z "$ac_err"; then | |
10046 | rm -rf conftest* | |
10047 | eval "ac_cv_header_$ac_safe=yes" | |
10048 | else | |
10049 | echo "$ac_err" >&5 | |
10050 | echo "configure: failed program was:" >&5 | |
90dd450c | 10051 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10052 | rm -rf conftest* |
10053 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 10054 | fi |
a0b9e27f | 10055 | rm -f conftest* |
4f14bcd8 | 10056 | fi |
a0b9e27f MB |
10057 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10058 | echo "$ac_t""yes" 1>&6 | |
10059 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10060 | cat >> confdefs.h <<EOF | |
10061 | #define $ac_tr_hdr 1 | |
10062 | EOF | |
10063 | ||
10064 | else | |
10065 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10066 | fi |
10067 | done | |
3a922bb4 | 10068 | |
8284b0c5 | 10069 | |
a0b9e27f MB |
10070 | if test "$wxUSE_GUI" = "yes"; then |
10071 | if test "$wxUSE_UNIX" = "yes"; then | |
10072 | for ac_hdr in X11/XKBlib.h | |
21d1c967 | 10073 | do |
a0b9e27f MB |
10074 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10075 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3bce6687 | 10076 | echo "configure:10077: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10077 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10079 | else | |
10080 | cat > conftest.$ac_ext <<EOF | |
3bce6687 | 10081 | #line 10082 "configure" |
90dd450c | 10082 | #include "confdefs.h" |
a0b9e27f MB |
10083 | #include <$ac_hdr> |
10084 | EOF | |
10085 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3bce6687 | 10086 | { (eval echo configure:10087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10087 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10088 | if test -z "$ac_err"; then | |
10089 | rm -rf conftest* | |
10090 | eval "ac_cv_header_$ac_safe=yes" | |
10091 | else | |
10092 | echo "$ac_err" >&5 | |
10093 | echo "configure: failed program was:" >&5 | |
90dd450c | 10094 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10095 | rm -rf conftest* |
10096 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10097 | fi |
a0b9e27f | 10098 | rm -f conftest* |
90dd450c | 10099 | fi |
a0b9e27f MB |
10100 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10101 | echo "$ac_t""yes" 1>&6 | |
10102 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10103 | cat >> confdefs.h <<EOF | |
10104 | #define $ac_tr_hdr 1 | |
10105 | EOF | |
10106 | ||
10107 | else | |
10108 | echo "$ac_t""no" 1>&6 | |
247f5006 | 10109 | fi |
247f5006 VZ |
10110 | done |
10111 | ||
a0b9e27f MB |
10112 | fi |
10113 | fi | |
247f5006 | 10114 | |
247f5006 | 10115 | |
a0b9e27f | 10116 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
3bce6687 | 10117 | echo "configure:10118: checking for working const" >&5 |
a0b9e27f MB |
10118 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10120 | else |
a0b9e27f | 10121 | cat > conftest.$ac_ext <<EOF |
3bce6687 | 10122 | #line 10123 "configure" |
a0b9e27f MB |
10123 | #include "confdefs.h" |
10124 | ||
10125 | int main() { | |
10126 | ||
10127 | /* Ultrix mips cc rejects this. */ | |
10128 | typedef int charset[2]; const charset x; | |
10129 | /* SunOS 4.1.1 cc rejects this. */ | |
10130 | char const *const *ccp; | |
10131 | char **p; | |
10132 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10133 | struct point {int x, y;}; | |
10134 | static struct point const zero = {0,0}; | |
10135 | /* AIX XL C 1.02.0.0 rejects this. | |
10136 | It does not let you subtract one const X* pointer from another in an arm | |
10137 | of an if-expression whose if-part is not a constant expression */ | |
10138 | const char *g = "string"; | |
10139 | ccp = &g + (g ? g-g : 0); | |
10140 | /* HPUX 7.0 cc rejects these. */ | |
10141 | ++ccp; | |
10142 | p = (char**) ccp; | |
10143 | ccp = (char const *const *) p; | |
10144 | { /* SCO 3.2v4 cc rejects this. */ | |
10145 | char *t; | |
10146 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10147 | ||
10148 | *t++ = 0; | |
10149 | } | |
10150 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10151 | int x[] = {25, 17}; | |
10152 | const int *foo = &x[0]; | |
10153 | ++foo; | |
10154 | } | |
10155 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10156 | typedef const int *iptr; | |
10157 | iptr p = 0; | |
10158 | ++p; | |
10159 | } | |
10160 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10161 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10162 | struct s { int j; const int *ap[3]; }; | |
10163 | struct s *b; b->j = 5; | |
10164 | } | |
10165 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10166 | const int foo = 10; | |
10167 | } | |
10168 | ||
10169 | ; return 0; } | |
10170 | EOF | |
3bce6687 | 10171 | if { (eval echo configure:10172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10172 | rm -rf conftest* |
10173 | ac_cv_c_const=yes | |
247f5006 | 10174 | else |
a0b9e27f | 10175 | echo "configure: failed program was:" >&5 |
247f5006 | 10176 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10177 | rm -rf conftest* |
10178 | ac_cv_c_const=no | |
247f5006 | 10179 | fi |
a0b9e27f | 10180 | rm -f conftest* |
21d1c967 | 10181 | fi |
247f5006 | 10182 | |
a0b9e27f MB |
10183 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10184 | if test $ac_cv_c_const = no; then | |
10185 | cat >> confdefs.h <<\EOF | |
10186 | #define const | |
10187 | EOF | |
10f2d63a | 10188 | |
90dd450c | 10189 | fi |
81809c07 | 10190 | |
a0b9e27f | 10191 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
3bce6687 | 10192 | echo "configure:10193: checking for inline" >&5 |
a0b9e27f MB |
10193 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 10195 | else |
a0b9e27f MB |
10196 | ac_cv_c_inline=no |
10197 | for ac_kw in inline __inline__ __inline; do | |
10198 | cat > conftest.$ac_ext <<EOF | |
3bce6687 | 10199 | #line 10200 "configure" |
a0b9e27f MB |
10200 | #include "confdefs.h" |
10201 | ||
10202 | int main() { | |
10203 | } $ac_kw foo() { | |
10204 | ; return 0; } | |
10205 | EOF | |
3bce6687 | 10206 | if { (eval echo configure:10207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10207 | rm -rf conftest* |
10208 | ac_cv_c_inline=$ac_kw; break | |
247f5006 | 10209 | else |
a0b9e27f | 10210 | echo "configure: failed program was:" >&5 |
247f5006 | 10211 | cat conftest.$ac_ext >&5 |
247f5006 | 10212 | fi |
a0b9e27f MB |
10213 | rm -f conftest* |
10214 | done | |
247f5006 VZ |
10215 | |
10216 | fi | |
10217 | ||
a0b9e27f MB |
10218 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10219 | case "$ac_cv_c_inline" in | |
10220 | inline | yes) ;; | |
10221 | no) cat >> confdefs.h <<\EOF | |
10222 | #define inline | |
10223 | EOF | |
10224 | ;; | |
10225 | *) cat >> confdefs.h <<EOF | |
10226 | #define inline $ac_cv_c_inline | |
10227 | EOF | |
10228 | ;; | |
10229 | esac | |
247f5006 | 10230 | |
247f5006 | 10231 | |
a0b9e27f | 10232 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
3bce6687 | 10233 | echo "configure:10234: checking size of char" >&5 |
a0b9e27f MB |
10234 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10236 | else | |
10237 | if test "$cross_compiling" = yes; then | |
10238 | ac_cv_sizeof_char=1 | |
10239 | else | |
10240 | cat > conftest.$ac_ext <<EOF | |
3bce6687 | 10241 | #line 10242 "configure" |
4f14bcd8 | 10242 | #include "confdefs.h" |
a0b9e27f | 10243 | #include <stdio.h> |
a0b9e27f | 10244 | main() |
247f5006 | 10245 | { |
a0b9e27f MB |
10246 | FILE *f=fopen("conftestval", "w"); |
10247 | if (!f) exit(1); | |
10248 | fprintf(f, "%d\n", sizeof(char)); | |
10249 | exit(0); | |
52127426 | 10250 | } |
a0b9e27f | 10251 | EOF |
b2fee376 | 10252 | if { (eval echo configure:10253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10253 | then |
10254 | ac_cv_sizeof_char=`cat conftestval` | |
247f5006 | 10255 | else |
a0b9e27f | 10256 | echo "configure: failed program was:" >&5 |
247f5006 | 10257 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10258 | rm -fr conftest* |
10259 | ac_cv_sizeof_char=0 | |
247f5006 | 10260 | fi |
a0b9e27f | 10261 | rm -fr conftest* |
247f5006 | 10262 | fi |
247f5006 VZ |
10263 | |
10264 | fi | |
a0b9e27f MB |
10265 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10266 | cat >> confdefs.h <<EOF | |
10267 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10268 | EOF | |
247f5006 | 10269 | |
247f5006 | 10270 | |
a0b9e27f | 10271 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
b2fee376 | 10272 | echo "configure:10273: checking size of short" >&5 |
a0b9e27f MB |
10273 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10274 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10275 | else |
a0b9e27f MB |
10276 | if test "$cross_compiling" = yes; then |
10277 | ac_cv_sizeof_short=2 | |
247f5006 | 10278 | else |
a0b9e27f | 10279 | cat > conftest.$ac_ext <<EOF |
b2fee376 | 10280 | #line 10281 "configure" |
a0b9e27f MB |
10281 | #include "confdefs.h" |
10282 | #include <stdio.h> | |
a0b9e27f MB |
10283 | main() |
10284 | { | |
10285 | FILE *f=fopen("conftestval", "w"); | |
10286 | if (!f) exit(1); | |
10287 | fprintf(f, "%d\n", sizeof(short)); | |
10288 | exit(0); | |
10289 | } | |
10290 | EOF | |
b2fee376 | 10291 | if { (eval echo configure:10292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10292 | then |
10293 | ac_cv_sizeof_short=`cat conftestval` | |
247f5006 | 10294 | else |
a0b9e27f MB |
10295 | echo "configure: failed program was:" >&5 |
10296 | cat conftest.$ac_ext >&5 | |
10297 | rm -fr conftest* | |
10298 | ac_cv_sizeof_short=0 | |
247f5006 | 10299 | fi |
a0b9e27f | 10300 | rm -fr conftest* |
247f5006 VZ |
10301 | fi |
10302 | ||
247f5006 | 10303 | fi |
a0b9e27f MB |
10304 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10305 | cat >> confdefs.h <<EOF | |
10306 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10307 | EOF | |
247f5006 VZ |
10308 | |
10309 | ||
a0b9e27f | 10310 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
b2fee376 | 10311 | echo "configure:10312: checking size of void *" >&5 |
a0b9e27f MB |
10312 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
10313 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10314 | else | |
10315 | if test "$cross_compiling" = yes; then | |
10316 | ac_cv_sizeof_void_p=4 | |
247f5006 | 10317 | else |
a0b9e27f | 10318 | cat > conftest.$ac_ext <<EOF |
b2fee376 | 10319 | #line 10320 "configure" |
247f5006 | 10320 | #include "confdefs.h" |
247f5006 | 10321 | #include <stdio.h> |
a0b9e27f | 10322 | main() |
247f5006 | 10323 | { |
a0b9e27f MB |
10324 | FILE *f=fopen("conftestval", "w"); |
10325 | if (!f) exit(1); | |
10326 | fprintf(f, "%d\n", sizeof(void *)); | |
10327 | exit(0); | |
5c6fa7d2 | 10328 | } |
a0b9e27f | 10329 | EOF |
b2fee376 | 10330 | if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10331 | then |
10332 | ac_cv_sizeof_void_p=`cat conftestval` | |
10333 | else | |
10334 | echo "configure: failed program was:" >&5 | |
10335 | cat conftest.$ac_ext >&5 | |
10336 | rm -fr conftest* | |
10337 | ac_cv_sizeof_void_p=0 | |
10338 | fi | |
10339 | rm -fr conftest* | |
10340 | fi | |
8284b0c5 | 10341 | |
247f5006 | 10342 | fi |
a0b9e27f MB |
10343 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10344 | cat >> confdefs.h <<EOF | |
10345 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
10346 | EOF | |
247f5006 | 10347 | |
247f5006 | 10348 | |
a0b9e27f | 10349 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
b2fee376 | 10350 | echo "configure:10351: checking size of int" >&5 |
a0b9e27f MB |
10351 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10352 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10353 | else |
a0b9e27f MB |
10354 | if test "$cross_compiling" = yes; then |
10355 | ac_cv_sizeof_int=4 | |
10356 | else | |
10357 | cat > conftest.$ac_ext <<EOF | |
b2fee376 | 10358 | #line 10359 "configure" |
247f5006 | 10359 | #include "confdefs.h" |
a0b9e27f | 10360 | #include <stdio.h> |
a0b9e27f | 10361 | main() |
247f5006 | 10362 | { |
a0b9e27f MB |
10363 | FILE *f=fopen("conftestval", "w"); |
10364 | if (!f) exit(1); | |
10365 | fprintf(f, "%d\n", sizeof(int)); | |
10366 | exit(0); | |
247f5006 | 10367 | } |
a0b9e27f | 10368 | EOF |
b2fee376 | 10369 | if { (eval echo configure:10370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10370 | then |
10371 | ac_cv_sizeof_int=`cat conftestval` | |
6f72b082 | 10372 | else |
a0b9e27f MB |
10373 | echo "configure: failed program was:" >&5 |
10374 | cat conftest.$ac_ext >&5 | |
10375 | rm -fr conftest* | |
10376 | ac_cv_sizeof_int=0 | |
21d1c967 | 10377 | fi |
a0b9e27f | 10378 | rm -fr conftest* |
698dcdb6 | 10379 | fi |
4f14bcd8 | 10380 | |
21d1c967 | 10381 | fi |
a0b9e27f MB |
10382 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
10383 | cat >> confdefs.h <<EOF | |
10384 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10385 | EOF | |
4f14bcd8 | 10386 | |
5c6fa7d2 | 10387 | |
a0b9e27f | 10388 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
b2fee376 | 10389 | echo "configure:10390: checking size of long" >&5 |
a0b9e27f MB |
10390 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10391 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10392 | else |
247f5006 | 10393 | if test "$cross_compiling" = yes; then |
a0b9e27f | 10394 | ac_cv_sizeof_long=4 |
247f5006 | 10395 | else |
a0b9e27f | 10396 | cat > conftest.$ac_ext <<EOF |
b2fee376 | 10397 | #line 10398 "configure" |
247f5006 | 10398 | #include "confdefs.h" |
a0b9e27f | 10399 | #include <stdio.h> |
a0b9e27f | 10400 | main() |
247f5006 | 10401 | { |
a0b9e27f MB |
10402 | FILE *f=fopen("conftestval", "w"); |
10403 | if (!f) exit(1); | |
10404 | fprintf(f, "%d\n", sizeof(long)); | |
10405 | exit(0); | |
247f5006 | 10406 | } |
a0b9e27f | 10407 | EOF |
b2fee376 | 10408 | if { (eval echo configure:10409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10409 | then |
10410 | ac_cv_sizeof_long=`cat conftestval` | |
247f5006 | 10411 | else |
a0b9e27f MB |
10412 | echo "configure: failed program was:" >&5 |
10413 | cat conftest.$ac_ext >&5 | |
10414 | rm -fr conftest* | |
10415 | ac_cv_sizeof_long=0 | |
247f5006 | 10416 | fi |
a0b9e27f | 10417 | rm -fr conftest* |
247f5006 | 10418 | fi |
247f5006 | 10419 | |
5c6fa7d2 | 10420 | fi |
a0b9e27f MB |
10421 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10422 | cat >> confdefs.h <<EOF | |
10423 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10424 | EOF | |
247f5006 | 10425 | |
a0b9e27f MB |
10426 | |
10427 | ||
10428 | case "${host}" in | |
10429 | arm-*-linux* ) | |
10430 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
b2fee376 | 10431 | echo "configure:10432: checking size of long long" >&5 |
a0b9e27f MB |
10432 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10433 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10434 | else | |
10435 | if test "$cross_compiling" = yes; then | |
10436 | ac_cv_sizeof_long_long=8 | |
10437 | else | |
10438 | cat > conftest.$ac_ext <<EOF | |
b2fee376 | 10439 | #line 10440 "configure" |
247f5006 | 10440 | #include "confdefs.h" |
a0b9e27f | 10441 | #include <stdio.h> |
a0b9e27f | 10442 | main() |
247f5006 | 10443 | { |
a0b9e27f MB |
10444 | FILE *f=fopen("conftestval", "w"); |
10445 | if (!f) exit(1); | |
10446 | fprintf(f, "%d\n", sizeof(long long)); | |
10447 | exit(0); | |
247f5006 | 10448 | } |
a0b9e27f | 10449 | EOF |
b2fee376 | 10450 | if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10451 | then |
10452 | ac_cv_sizeof_long_long=`cat conftestval` | |
7b4a847f | 10453 | else |
a0b9e27f MB |
10454 | echo "configure: failed program was:" >&5 |
10455 | cat conftest.$ac_ext >&5 | |
10456 | rm -fr conftest* | |
10457 | ac_cv_sizeof_long_long=0 | |
5c6fa7d2 | 10458 | fi |
a0b9e27f | 10459 | rm -fr conftest* |
5c6fa7d2 | 10460 | fi |
8284b0c5 | 10461 | |
a0b9e27f MB |
10462 | fi |
10463 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10464 | cat >> confdefs.h <<EOF | |
10465 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10466 | EOF | |
10467 | ||
10468 | ||
10469 | ;; | |
4f57cf11 | 10470 | *-hp-hpux* ) |
a0b9e27f | 10471 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
b2fee376 | 10472 | echo "configure:10473: checking size of long long" >&5 |
a0b9e27f MB |
10473 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10474 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 MB |
10475 | else |
10476 | if test "$cross_compiling" = yes; then | |
a0b9e27f | 10477 | ac_cv_sizeof_long_long=0 |
8284b0c5 | 10478 | else |
a0b9e27f | 10479 | cat > conftest.$ac_ext <<EOF |
b2fee376 | 10480 | #line 10481 "configure" |
8284b0c5 MB |
10481 | #include "confdefs.h" |
10482 | #include <stdio.h> | |
a0b9e27f | 10483 | main() |
8284b0c5 | 10484 | { |
a0b9e27f MB |
10485 | FILE *f=fopen("conftestval", "w"); |
10486 | if (!f) exit(1); | |
10487 | fprintf(f, "%d\n", sizeof(long long)); | |
10488 | exit(0); | |
8284b0c5 | 10489 | } |
a0b9e27f | 10490 | EOF |
b2fee376 | 10491 | if { (eval echo configure:10492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10492 | then |
10493 | ac_cv_sizeof_long_long=`cat conftestval` | |
5c6fa7d2 | 10494 | else |
a0b9e27f MB |
10495 | echo "configure: failed program was:" >&5 |
10496 | cat conftest.$ac_ext >&5 | |
10497 | rm -fr conftest* | |
5c6fa7d2 | 10498 | ac_cv_sizeof_long_long=0 |
52127426 | 10499 | fi |
a0b9e27f MB |
10500 | rm -fr conftest* |
10501 | fi | |
10502 | ||
4f57cf11 GD |
10503 | fi |
10504 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10505 | cat >> confdefs.h <<EOF | |
10506 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10507 | EOF | |
10508 | ||
10509 | ||
10510 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
10511 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
10512 | fi | |
10513 | ;; | |
10514 | * ) | |
10515 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
10516 | echo "configure:10517: checking size of long long" >&5 | |
10517 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
10518 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10519 | else | |
10520 | if test "$cross_compiling" = yes; then | |
10521 | ac_cv_sizeof_long_long=0 | |
10522 | else | |
10523 | cat > conftest.$ac_ext <<EOF | |
10524 | #line 10525 "configure" | |
10525 | #include "confdefs.h" | |
10526 | #include <stdio.h> | |
10527 | main() | |
10528 | { | |
10529 | FILE *f=fopen("conftestval", "w"); | |
10530 | if (!f) exit(1); | |
10531 | fprintf(f, "%d\n", sizeof(long long)); | |
10532 | exit(0); | |
10533 | } | |
10534 | EOF | |
10535 | if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10536 | then | |
10537 | ac_cv_sizeof_long_long=`cat conftestval` | |
10538 | else | |
10539 | echo "configure: failed program was:" >&5 | |
10540 | cat conftest.$ac_ext >&5 | |
10541 | rm -fr conftest* | |
10542 | ac_cv_sizeof_long_long=0 | |
10543 | fi | |
10544 | rm -fr conftest* | |
10545 | fi | |
10546 | ||
7b4a847f | 10547 | fi |
a0b9e27f MB |
10548 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10549 | cat >> confdefs.h <<EOF | |
21d1c967 | 10550 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
a0b9e27f | 10551 | EOF |
9e691f46 | 10552 | |
8284b0c5 | 10553 | |
21d1c967 GD |
10554 | esac |
10555 | ||
a0b9e27f | 10556 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
4f57cf11 | 10557 | echo "configure:10558: checking size of wchar_t" >&5 |
a0b9e27f MB |
10558 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10559 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10560 | else |
a0b9e27f | 10561 | |
21d1c967 GD |
10562 | if test "$cross_compiling" = yes; then |
10563 | wx_cv_sizeof_wchar_t=4 | |
a0b9e27f | 10564 | |
6f72b082 | 10565 | else |
a0b9e27f | 10566 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 10567 | #line 10568 "configure" |
6f72b082 | 10568 | #include "confdefs.h" |
21d1c967 GD |
10569 | |
10570 | #ifdef HAVE_WCHAR_H | |
10571 | # ifdef __CYGWIN__ | |
10572 | # include <stddef.h> | |
10573 | # endif | |
10574 | # include <wchar.h> | |
10575 | #endif | |
10576 | #ifdef HAVE_STDLIB_H | |
10577 | # include <stdlib.h> | |
10578 | #endif | |
10579 | #include <stdio.h> | |
10580 | int main() | |
10581 | { | |
10582 | FILE *f=fopen("conftestval", "w"); | |
10583 | if (!f) exit(1); | |
10584 | fprintf(f, "%i", sizeof(wchar_t)); | |
10585 | exit(0); | |
10586 | } | |
a0b9e27f MB |
10587 | |
10588 | EOF | |
4f57cf11 | 10589 | if { (eval echo configure:10590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10590 | then |
21d1c967 | 10591 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10592 | else |
a0b9e27f MB |
10593 | echo "configure: failed program was:" >&5 |
10594 | cat conftest.$ac_ext >&5 | |
10595 | rm -fr conftest* | |
10596 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10597 | fi |
a0b9e27f | 10598 | rm -fr conftest* |
6f72b082 | 10599 | fi |
6f72b082 | 10600 | |
a0b9e27f | 10601 | |
3f345b47 VZ |
10602 | fi |
10603 | ||
a0b9e27f MB |
10604 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10605 | ||
10606 | cat >> confdefs.h <<EOF | |
21d1c967 | 10607 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
a0b9e27f | 10608 | EOF |
90dd450c | 10609 | |
8284b0c5 | 10610 | |
21d1c967 GD |
10611 | # Check whether --enable-largefile or --disable-largefile was given. |
10612 | if test "${enable_largefile+set}" = set; then | |
10613 | enableval="$enable_largefile" | |
a0b9e27f MB |
10614 | : |
10615 | fi | |
3f345b47 | 10616 | |
21d1c967 GD |
10617 | if test "$enable_largefile" != no; then |
10618 | wx_largefile=no | |
a0b9e27f MB |
10619 | |
10620 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
4f57cf11 | 10621 | echo "configure:10622: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
a0b9e27f MB |
10622 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
10623 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10624 | else | |
10625 | ||
10626 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 10627 | #line 10628 "configure" |
90dd450c | 10628 | #include "confdefs.h" |
21d1c967 GD |
10629 | #define _FILE_OFFSET_BITS 64 |
10630 | #include <sys/types.h> | |
a0b9e27f | 10631 | int main() { |
21d1c967 GD |
10632 | typedef struct { |
10633 | unsigned int field: sizeof(off_t) == 8; | |
10634 | } wxlf; | |
10635 | ||
a0b9e27f MB |
10636 | ; return 0; } |
10637 | EOF | |
4f57cf11 | 10638 | if { (eval echo configure:10639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10639 | rm -rf conftest* |
21d1c967 | 10640 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10641 | else |
a0b9e27f MB |
10642 | echo "configure: failed program was:" >&5 |
10643 | cat conftest.$ac_ext >&5 | |
10644 | rm -rf conftest* | |
10645 | ac_cv_sys_file_offset_bits=no | |
5c6fa7d2 | 10646 | fi |
a0b9e27f MB |
10647 | rm -f conftest* |
10648 | ||
10649 | ||
247f5006 | 10650 | fi |
a0b9e27f MB |
10651 | |
10652 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10653 | |
10654 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10655 | wx_largefile=yes | |
a0b9e27f | 10656 | cat >> confdefs.h <<EOF |
21d1c967 | 10657 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
a0b9e27f | 10658 | EOF |
21d1c967 GD |
10659 | |
10660 | fi | |
10661 | ||
10662 | if test "x$wx_largefile" != "xyes"; then | |
a0b9e27f MB |
10663 | |
10664 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
4f57cf11 | 10665 | echo "configure:10666: checking for _LARGE_FILES value needed for large files" >&5 |
a0b9e27f MB |
10666 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
10667 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10668 | else | |
10669 | ||
10670 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 10671 | #line 10672 "configure" |
f6bcfd97 | 10672 | #include "confdefs.h" |
21d1c967 GD |
10673 | #define _LARGE_FILES 1 |
10674 | #include <sys/types.h> | |
a0b9e27f | 10675 | int main() { |
21d1c967 GD |
10676 | typedef struct { |
10677 | unsigned int field: sizeof(off_t) == 8; | |
10678 | } wxlf; | |
10679 | ||
a0b9e27f MB |
10680 | ; return 0; } |
10681 | EOF | |
4f57cf11 | 10682 | if { (eval echo configure:10683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10683 | rm -rf conftest* |
21d1c967 | 10684 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10685 | else |
a0b9e27f MB |
10686 | echo "configure: failed program was:" >&5 |
10687 | cat conftest.$ac_ext >&5 | |
10688 | rm -rf conftest* | |
10689 | ac_cv_sys_large_files=no | |
5c6fa7d2 | 10690 | fi |
a0b9e27f MB |
10691 | rm -f conftest* |
10692 | ||
10693 | ||
247f5006 | 10694 | fi |
a0b9e27f MB |
10695 | |
10696 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 10697 | |
21d1c967 GD |
10698 | if test "$ac_cv_sys_large_files" != no; then |
10699 | wx_largefile=yes | |
a0b9e27f | 10700 | cat >> confdefs.h <<EOF |
21d1c967 | 10701 | #define _LARGE_FILES $ac_cv_sys_large_files |
a0b9e27f | 10702 | EOF |
90dd450c | 10703 | |
90dd450c VZ |
10704 | fi |
10705 | ||
90dd450c | 10706 | fi |
90dd450c | 10707 | |
a0b9e27f | 10708 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
4f57cf11 | 10709 | echo "configure:10710: checking if large file support is available" >&5 |
21d1c967 | 10710 | if test "x$wx_largefile" = "xyes"; then |
a0b9e27f | 10711 | cat >> confdefs.h <<\EOF |
21d1c967 | 10712 | #define HAVE_LARGEFILE_SUPPORT 1 |
a0b9e27f | 10713 | EOF |
90dd450c | 10714 | |
90dd450c | 10715 | fi |
a0b9e27f | 10716 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 10717 | fi |
90dd450c | 10718 | |
8284b0c5 | 10719 | |
f02444d0 | 10720 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
10721 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
10722 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 10723 | else |
e26c13cf | 10724 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 10725 | fi |
e26c13cf | 10726 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
10727 | fi |
10728 | ||
a0b9e27f | 10729 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
4f57cf11 | 10730 | echo "configure:10731: checking whether byte ordering is bigendian" >&5 |
a0b9e27f MB |
10731 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
10732 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 10733 | else |
21d1c967 GD |
10734 | ac_cv_c_bigendian=unknown |
10735 | # See if sys/param.h defines the BYTE_ORDER macro. | |
a0b9e27f | 10736 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 10737 | #line 10738 "configure" |
90dd450c | 10738 | #include "confdefs.h" |
21d1c967 GD |
10739 | #include <sys/types.h> |
10740 | #include <sys/param.h> | |
a0b9e27f | 10741 | int main() { |
21d1c967 GD |
10742 | |
10743 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10744 | bogus endian macros | |
10745 | #endif | |
a0b9e27f MB |
10746 | ; return 0; } |
10747 | EOF | |
4f57cf11 | 10748 | if { (eval echo configure:10749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10749 | rm -rf conftest* |
21d1c967 | 10750 | # It does; now see whether it defined to BIG_ENDIAN or not. |
a0b9e27f | 10751 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 10752 | #line 10753 "configure" |
90dd450c | 10753 | #include "confdefs.h" |
21d1c967 GD |
10754 | #include <sys/types.h> |
10755 | #include <sys/param.h> | |
a0b9e27f | 10756 | int main() { |
21d1c967 GD |
10757 | |
10758 | #if BYTE_ORDER != BIG_ENDIAN | |
10759 | not big endian | |
10760 | #endif | |
a0b9e27f MB |
10761 | ; return 0; } |
10762 | EOF | |
4f57cf11 | 10763 | if { (eval echo configure:10764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10764 | rm -rf conftest* |
21d1c967 | 10765 | ac_cv_c_bigendian=yes |
3f345b47 | 10766 | else |
a0b9e27f MB |
10767 | echo "configure: failed program was:" >&5 |
10768 | cat conftest.$ac_ext >&5 | |
10769 | rm -rf conftest* | |
10770 | ac_cv_c_bigendian=no | |
3f345b47 | 10771 | fi |
a0b9e27f | 10772 | rm -f conftest* |
3f345b47 | 10773 | else |
a0b9e27f MB |
10774 | echo "configure: failed program was:" >&5 |
10775 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10776 | fi |
a0b9e27f | 10777 | rm -f conftest* |
21d1c967 GD |
10778 | if test $ac_cv_c_bigendian = unknown; then |
10779 | if test "$cross_compiling" = yes; then | |
10780 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10781 | else |
a0b9e27f | 10782 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 10783 | #line 10784 "configure" |
90dd450c | 10784 | #include "confdefs.h" |
21d1c967 GD |
10785 | main () { |
10786 | /* Are we little or big endian? From Harbison&Steele. */ | |
10787 | union | |
10788 | { | |
10789 | long l; | |
10790 | char c[sizeof (long)]; | |
10791 | } u; | |
10792 | u.l = 1; | |
10793 | exit (u.c[sizeof (long) - 1] == 1); | |
10794 | } | |
a0b9e27f | 10795 | EOF |
4f57cf11 | 10796 | if { (eval echo configure:10797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10797 | then |
21d1c967 | 10798 | ac_cv_c_bigendian=no |
3f345b47 | 10799 | else |
a0b9e27f MB |
10800 | echo "configure: failed program was:" >&5 |
10801 | cat conftest.$ac_ext >&5 | |
10802 | rm -fr conftest* | |
10803 | ac_cv_c_bigendian=yes | |
247f5006 | 10804 | fi |
a0b9e27f | 10805 | rm -fr conftest* |
247f5006 | 10806 | fi |
a0b9e27f | 10807 | |
3f345b47 | 10808 | fi |
8168de4c | 10809 | fi |
a0b9e27f MB |
10810 | |
10811 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
247f5006 | 10812 | if test $ac_cv_c_bigendian = unknown; then |
a0b9e27f | 10813 | 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 |
247f5006 VZ |
10814 | fi |
10815 | if test $ac_cv_c_bigendian = yes; then | |
a0b9e27f | 10816 | cat >> confdefs.h <<\EOF |
247f5006 | 10817 | #define WORDS_BIGENDIAN 1 |
a0b9e27f | 10818 | EOF |
247f5006 VZ |
10819 | |
10820 | fi | |
10821 | ||
10822 | ||
a0b9e27f | 10823 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
4f57cf11 | 10824 | echo "configure:10825: checking how to run the C++ preprocessor" >&5 |
247f5006 | 10825 | if test -z "$CXXCPP"; then |
a0b9e27f MB |
10826 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
10827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10828 | else |
a0b9e27f MB |
10829 | ac_ext=C |
10830 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10831 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10832 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10833 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10834 | cross_compiling=$ac_cv_prog_cxx_cross | |
10835 | CXXCPP="${CXX-g++} -E" | |
10836 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 10837 | #line 10838 "configure" |
5c6fa7d2 | 10838 | #include "confdefs.h" |
a0b9e27f MB |
10839 | #include <stdlib.h> |
10840 | EOF | |
10841 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f57cf11 | 10842 | { (eval echo configure:10843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10843 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10844 | if test -z "$ac_err"; then | |
21d1c967 | 10845 | : |
698dcdb6 | 10846 | else |
a0b9e27f MB |
10847 | echo "$ac_err" >&5 |
10848 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 10849 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10850 | rm -rf conftest* |
10851 | CXXCPP=/lib/cpp | |
247f5006 | 10852 | fi |
a0b9e27f MB |
10853 | rm -f conftest* |
10854 | ac_cv_prog_CXXCPP="$CXXCPP" | |
10855 | ac_ext=C | |
10856 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10857 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10858 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10859 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10860 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 10861 | fi |
90dd450c | 10862 | fi |
a0b9e27f MB |
10863 | CXXCPP="$ac_cv_prog_CXXCPP" |
10864 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 10865 | |
1725144d | 10866 | |
21d1c967 | 10867 | if test "$cross_compiling" = "yes"; then |
a0b9e27f | 10868 | cat >> confdefs.h <<\EOF |
21d1c967 | 10869 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 10870 | EOF |
ab9b9eab | 10871 | |
21d1c967 | 10872 | else |
a0b9e27f MB |
10873 | |
10874 | ac_ext=C | |
10875 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 10876 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
10877 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10878 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10879 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 10880 | |
247f5006 | 10881 | |
a0b9e27f | 10882 | for ac_hdr in iostream |
21d1c967 | 10883 | do |
a0b9e27f MB |
10884 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10885 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f57cf11 | 10886 | echo "configure:10887: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10887 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10889 | else | |
10890 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 10891 | #line 10892 "configure" |
ab9b9eab | 10892 | #include "confdefs.h" |
a0b9e27f MB |
10893 | #include <$ac_hdr> |
10894 | EOF | |
10895 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f57cf11 | 10896 | { (eval echo configure:10897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10897 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10898 | if test -z "$ac_err"; then | |
10899 | rm -rf conftest* | |
10900 | eval "ac_cv_header_$ac_safe=yes" | |
10901 | else | |
10902 | echo "$ac_err" >&5 | |
10903 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 10904 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10905 | rm -rf conftest* |
10906 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 10907 | fi |
a0b9e27f | 10908 | rm -f conftest* |
90dd450c | 10909 | fi |
a0b9e27f MB |
10910 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10911 | echo "$ac_t""yes" 1>&6 | |
10912 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10913 | cat >> confdefs.h <<EOF | |
10914 | #define $ac_tr_hdr 1 | |
10915 | EOF | |
10916 | ||
10917 | else | |
10918 | echo "$ac_t""no" 1>&6 | |
90dd450c | 10919 | fi |
21d1c967 | 10920 | done |
10f2d63a | 10921 | |
8284b0c5 | 10922 | |
21d1c967 GD |
10923 | if test "$ac_cv_header_iostream" = "yes" ; then |
10924 | : | |
10925 | else | |
a0b9e27f | 10926 | cat >> confdefs.h <<\EOF |
21d1c967 | 10927 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 10928 | EOF |
788deba1 | 10929 | |
90dd450c | 10930 | fi |
ab9b9eab | 10931 | |
21d1c967 | 10932 | ac_ext=c |
a0b9e27f | 10933 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 10934 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
10935 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10936 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10937 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 10938 | |
21d1c967 | 10939 | fi |
ab9b9eab | 10940 | |
52127426 | 10941 | |
8284b0c5 | 10942 | |
a0b9e27f | 10943 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
4f57cf11 | 10944 | echo "configure:10945: checking if C++ compiler supports bool" >&5 |
a0b9e27f MB |
10945 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
10946 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 10947 | else |
a0b9e27f MB |
10948 | |
10949 | ||
10950 | ac_ext=C | |
10951 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 10952 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
10953 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10954 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10955 | cross_compiling=$ac_cv_prog_cxx_cross | |
21d1c967 | 10956 | |
8284b0c5 | 10957 | |
a0b9e27f | 10958 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 10959 | #line 10960 "configure" |
ab9b9eab | 10960 | #include "confdefs.h" |
21d1c967 | 10961 | |
a0b9e27f MB |
10962 | |
10963 | int main() { | |
21d1c967 GD |
10964 | |
10965 | bool b = true; | |
10966 | ||
10967 | return 0; | |
a0b9e27f MB |
10968 | |
10969 | ; return 0; } | |
10970 | EOF | |
4f57cf11 | 10971 | if { (eval echo configure:10972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10972 | rm -rf conftest* |
10973 | ||
21d1c967 | 10974 | wx_cv_cpp_bool=yes |
a0b9e27f | 10975 | |
698dcdb6 | 10976 | else |
a0b9e27f MB |
10977 | echo "configure: failed program was:" >&5 |
10978 | cat conftest.$ac_ext >&5 | |
10979 | rm -rf conftest* | |
10980 | ||
21d1c967 | 10981 | wx_cv_cpp_bool=no |
a0b9e27f MB |
10982 | |
10983 | ||
698dcdb6 | 10984 | fi |
a0b9e27f | 10985 | rm -f conftest* |
21d1c967 GD |
10986 | |
10987 | ac_ext=c | |
a0b9e27f | 10988 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 10989 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
10990 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10991 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10992 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 10993 | |
a0b9e27f | 10994 | |
247f5006 | 10995 | fi |
a0b9e27f MB |
10996 | |
10997 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
10998 | |
10999 | if test "$wx_cv_cpp_bool" = "yes"; then | |
a0b9e27f | 11000 | cat >> confdefs.h <<\EOF |
21d1c967 | 11001 | #define HAVE_BOOL 1 |
a0b9e27f | 11002 | EOF |
ab9b9eab | 11003 | |
21d1c967 GD |
11004 | fi |
11005 | ||
52127426 | 11006 | |
8284b0c5 | 11007 | |
a0b9e27f | 11008 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
4f57cf11 | 11009 | echo "configure:11010: checking if C++ compiler supports the explicit keyword" >&5 |
a0b9e27f MB |
11010 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
11011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11012 | else |
a0b9e27f MB |
11013 | |
11014 | ||
11015 | ac_ext=C | |
11016 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11017 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11018 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11019 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11020 | cross_compiling=$ac_cv_prog_cxx_cross | |
986ecc86 | 11021 | |
8284b0c5 | 11022 | |
a0b9e27f | 11023 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 11024 | #line 11025 "configure" |
986ecc86 VZ |
11025 | #include "confdefs.h" |
11026 | ||
11027 | class Foo { public: explicit Foo(int) {} }; | |
a0b9e27f MB |
11028 | |
11029 | int main() { | |
986ecc86 VZ |
11030 | |
11031 | return 0; | |
a0b9e27f MB |
11032 | |
11033 | ; return 0; } | |
11034 | EOF | |
4f57cf11 | 11035 | if { (eval echo configure:11036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11036 | rm -rf conftest* |
11037 | ||
11038 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 11039 | #line 11040 "configure" |
986ecc86 VZ |
11040 | #include "confdefs.h" |
11041 | ||
11042 | class Foo { public: explicit Foo(int) {} }; | |
11043 | static void TakeFoo(const Foo& foo) { } | |
a0b9e27f MB |
11044 | |
11045 | int main() { | |
986ecc86 VZ |
11046 | |
11047 | TakeFoo(17); | |
11048 | return 0; | |
a0b9e27f MB |
11049 | |
11050 | ; return 0; } | |
11051 | EOF | |
4f57cf11 | 11052 | if { (eval echo configure:11053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11053 | rm -rf conftest* |
986ecc86 VZ |
11054 | wx_cv_explicit=no |
11055 | else | |
a0b9e27f MB |
11056 | echo "configure: failed program was:" >&5 |
11057 | cat conftest.$ac_ext >&5 | |
11058 | rm -rf conftest* | |
11059 | wx_cv_explicit=yes | |
11060 | ||
986ecc86 | 11061 | fi |
a0b9e27f MB |
11062 | rm -f conftest* |
11063 | ||
986ecc86 | 11064 | else |
a0b9e27f MB |
11065 | echo "configure: failed program was:" >&5 |
11066 | cat conftest.$ac_ext >&5 | |
11067 | rm -rf conftest* | |
11068 | wx_cv_explicit=no | |
11069 | ||
986ecc86 | 11070 | fi |
a0b9e27f | 11071 | rm -f conftest* |
986ecc86 VZ |
11072 | |
11073 | ac_ext=c | |
a0b9e27f | 11074 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 11075 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11076 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11077 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11078 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11079 | |
a0b9e27f | 11080 | |
247f5006 | 11081 | fi |
a0b9e27f MB |
11082 | |
11083 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
11084 | |
11085 | if test "$wx_cv_explicit" = "yes"; then | |
a0b9e27f | 11086 | cat >> confdefs.h <<\EOF |
986ecc86 | 11087 | #define HAVE_EXPLICIT 1 |
a0b9e27f | 11088 | EOF |
986ecc86 VZ |
11089 | |
11090 | fi | |
11091 | ||
8284b0c5 MB |
11092 | |
11093 | ||
21d1c967 GD |
11094 | SEARCH_INCLUDE="\ |
11095 | /usr/local/include \ | |
11096 | \ | |
11097 | /usr/Motif-1.2/include \ | |
11098 | /usr/Motif-2.1/include \ | |
11099 | \ | |
11100 | /usr/include/Motif1.2 \ | |
11101 | /opt/xpm/include/X11 \ | |
11102 | /opt/GBxpm/include/ \ | |
11103 | /opt/GBxpm/X11/include/ \ | |
11104 | \ | |
11105 | /usr/Motif1.2/include \ | |
11106 | /usr/dt/include \ | |
11107 | /usr/openwin/include \ | |
11108 | \ | |
11109 | /usr/include/Xm \ | |
11110 | \ | |
11111 | /usr/X11R6/include \ | |
11112 | /usr/X11R6.4/include \ | |
11113 | /usr/X11R5/include \ | |
11114 | /usr/X11R4/include \ | |
11115 | \ | |
11116 | /usr/include/X11R6 \ | |
11117 | /usr/include/X11R5 \ | |
11118 | /usr/include/X11R4 \ | |
11119 | \ | |
11120 | /usr/local/X11R6/include \ | |
11121 | /usr/local/X11R5/include \ | |
11122 | /usr/local/X11R4/include \ | |
11123 | \ | |
11124 | /usr/local/include/X11R6 \ | |
11125 | /usr/local/include/X11R5 \ | |
11126 | /usr/local/include/X11R4 \ | |
11127 | \ | |
11128 | /usr/X11/include \ | |
11129 | /usr/include/X11 \ | |
11130 | /usr/local/X11/include \ | |
11131 | /usr/local/include/X11 \ | |
11132 | \ | |
11133 | /usr/X386/include \ | |
11134 | /usr/x386/include \ | |
11135 | /usr/XFree86/include/X11 \ | |
11136 | \ | |
11137 | X:/XFree86/include \ | |
11138 | X:/XFree86/include/X11 \ | |
11139 | \ | |
11140 | /usr/include/gtk \ | |
11141 | /usr/local/include/gtk \ | |
11142 | /usr/include/glib \ | |
11143 | /usr/local/include/glib \ | |
11144 | \ | |
11145 | /usr/include/qt \ | |
11146 | /usr/local/include/qt \ | |
11147 | \ | |
11148 | /usr/include/windows \ | |
11149 | /usr/include/wine \ | |
11150 | /usr/local/include/wine \ | |
11151 | \ | |
11152 | /usr/unsupported/include \ | |
11153 | /usr/athena/include \ | |
11154 | /usr/local/x11r5/include \ | |
11155 | /usr/lpp/Xamples/include \ | |
11156 | \ | |
a85030bd RL |
11157 | /usr/openwin/share/include \ |
11158 | /usr/include" | |
21d1c967 GD |
11159 | |
11160 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
11161 | ||
8284b0c5 | 11162 | |
a0b9e27f | 11163 | cat > confcache <<\EOF |
21d1c967 GD |
11164 | # This file is a shell script that caches the results of configure |
11165 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
11166 | # scripts and configure runs. It is not useful on other systems. |
11167 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 11168 | # |
a0b9e27f MB |
11169 | # By default, configure uses ./config.cache as the cache file, |
11170 | # creating it if it does not exist already. You can give configure | |
11171 | # the --cache-file=FILE option to use a different cache file; that is | |
11172 | # what configure does when it calls configure scripts in | |
11173 | # subdirectories, so they share the cache. | |
11174 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11175 | # config.status only pays attention to the cache file if you give it the | |
11176 | # --recheck option to rerun configure. | |
21d1c967 | 11177 | # |
a0b9e27f | 11178 | EOF |
21d1c967 GD |
11179 | # The following way of writing the cache mishandles newlines in values, |
11180 | # but we know of no workaround that is simple, portable, and efficient. | |
11181 | # So, don't put newlines in cache variables' values. | |
11182 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11183 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
11184 | (set) 2>&1 | |
11185 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11186 | *ac_space=\ *) | |
11187 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11188 | # turns \\\\ into \\, and sed turns \\ into \). | |
11189 | sed -n \ | |
11190 | -e "s/'/'\\\\''/g" \ | |
11191 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11192 | ;; | |
11193 | *) | |
11194 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11195 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11196 | ;; | |
11197 | esac >> confcache | |
11198 | if cmp -s $cache_file confcache; then | |
11199 | : | |
11200 | else | |
21d1c967 | 11201 | if test -w $cache_file; then |
a0b9e27f MB |
11202 | echo "updating cache $cache_file" |
11203 | cat confcache > $cache_file | |
21d1c967 GD |
11204 | else |
11205 | echo "not updating unwritable cache $cache_file" | |
11206 | fi | |
ab9b9eab | 11207 | fi |
21d1c967 | 11208 | rm -f confcache |
ab9b9eab | 11209 | |
247f5006 | 11210 | |
a0b9e27f MB |
11211 | if test "$USE_LINUX" = 1; then |
11212 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
4f57cf11 | 11213 | echo "configure:11214: checking for glibc 2.1 or later" >&5 |
a0b9e27f MB |
11214 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
11215 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11216 | else | |
11217 | ||
11218 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 11219 | #line 11220 "configure" |
ab9b9eab | 11220 | #include "confdefs.h" |
21d1c967 | 11221 | #include <features.h> |
a0b9e27f | 11222 | int main() { |
ab9b9eab | 11223 | |
21d1c967 GD |
11224 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11225 | #error not glibc2.1 | |
11226 | #endif | |
a0b9e27f MB |
11227 | |
11228 | ; return 0; } | |
11229 | EOF | |
4f57cf11 | 11230 | if { (eval echo configure:11231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11231 | rm -rf conftest* |
11232 | ||
21d1c967 | 11233 | wx_cv_lib_glibc21=yes |
a0b9e27f | 11234 | |
698dcdb6 | 11235 | else |
a0b9e27f MB |
11236 | echo "configure: failed program was:" >&5 |
11237 | cat conftest.$ac_ext >&5 | |
11238 | rm -rf conftest* | |
11239 | ||
21d1c967 | 11240 | wx_cv_lib_glibc21=no |
a0b9e27f MB |
11241 | |
11242 | ||
5c6fa7d2 | 11243 | fi |
a0b9e27f MB |
11244 | rm -f conftest* |
11245 | ||
247f5006 | 11246 | fi |
a0b9e27f MB |
11247 | |
11248 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
21d1c967 | 11249 | if test "$wx_cv_lib_glibc21" = "yes"; then |
a0b9e27f | 11250 | cat >> confdefs.h <<\EOF |
21d1c967 | 11251 | #define wxHAVE_GLIBC2 1 |
a0b9e27f | 11252 | EOF |
1e487827 | 11253 | |
90dd450c | 11254 | fi |
ab9b9eab VZ |
11255 | fi |
11256 | ||
5c0a20c3 VZ |
11257 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
11258 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 11259 | cat >> confdefs.h <<\EOF |
5c0a20c3 | 11260 | #define _GNU_SOURCE 1 |
a0b9e27f | 11261 | EOF |
5c0a20c3 VZ |
11262 | |
11263 | fi | |
11264 | fi | |
11265 | ||
8284b0c5 MB |
11266 | |
11267 | ||
21d1c967 GD |
11268 | REGEX_INCLUDE= |
11269 | if test "$wxUSE_REGEX" != "no"; then | |
a0b9e27f | 11270 | cat >> confdefs.h <<\EOF |
21d1c967 | 11271 | #define wxUSE_REGEX 1 |
a0b9e27f | 11272 | EOF |
698dcdb6 | 11273 | |
8284b0c5 | 11274 | |
21d1c967 | 11275 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
a0b9e27f MB |
11276 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
11277 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
4f57cf11 | 11278 | echo "configure:11279: checking for regex.h" >&5 |
a0b9e27f MB |
11279 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11280 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11281 | else | |
11282 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 11283 | #line 11284 "configure" |
247f5006 VZ |
11284 | #include "confdefs.h" |
11285 | #include <regex.h> | |
a0b9e27f MB |
11286 | EOF |
11287 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f57cf11 | 11288 | { (eval echo configure:11289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11289 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11290 | if test -z "$ac_err"; then | |
11291 | rm -rf conftest* | |
11292 | eval "ac_cv_header_$ac_safe=yes" | |
11293 | else | |
11294 | echo "$ac_err" >&5 | |
11295 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11296 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11297 | rm -rf conftest* |
11298 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11299 | fi |
a0b9e27f | 11300 | rm -f conftest* |
698dcdb6 | 11301 | fi |
a0b9e27f MB |
11302 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11303 | echo "$ac_t""yes" 1>&6 | |
11304 | for ac_func in regcomp | |
21d1c967 | 11305 | do |
a0b9e27f | 11306 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 11307 | echo "configure:11308: checking for $ac_func" >&5 |
a0b9e27f MB |
11308 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11309 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11310 | else |
a0b9e27f | 11311 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 11312 | #line 11313 "configure" |
a0b9e27f MB |
11313 | #include "confdefs.h" |
11314 | /* System header to define __stub macros and hopefully few prototypes, | |
11315 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
11316 | #include <assert.h> |
11317 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11318 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11319 | builtin and then its argument prototype would still apply. */ |
11320 | char $ac_func(); | |
11321 | ||
11322 | int main() { | |
11323 | ||
21d1c967 GD |
11324 | /* The GNU C library defines this for functions which it implements |
11325 | to always fail with ENOSYS. Some functions are actually named | |
11326 | something starting with __ and the normal name is an alias. */ | |
11327 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11328 | choke me | |
11329 | #else | |
a0b9e27f | 11330 | $ac_func(); |
21d1c967 | 11331 | #endif |
90dd450c | 11332 | |
a0b9e27f MB |
11333 | ; return 0; } |
11334 | EOF | |
4f57cf11 | 11335 | if { (eval echo configure:11336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11336 | rm -rf conftest* |
11337 | eval "ac_cv_func_$ac_func=yes" | |
11338 | else | |
11339 | echo "configure: failed program was:" >&5 | |
11340 | cat conftest.$ac_ext >&5 | |
11341 | rm -rf conftest* | |
11342 | eval "ac_cv_func_$ac_func=no" | |
11343 | fi | |
11344 | rm -f conftest* | |
11345 | fi | |
5c6fa7d2 | 11346 | |
a0b9e27f MB |
11347 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11348 | echo "$ac_t""yes" 1>&6 | |
11349 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11350 | cat >> confdefs.h <<EOF | |
11351 | #define $ac_tr_func 1 | |
11352 | EOF | |
11353 | ||
11354 | else | |
11355 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11356 | fi |
21d1c967 GD |
11357 | done |
11358 | ||
a0b9e27f MB |
11359 | else |
11360 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11361 | fi |
11362 | ||
8284b0c5 | 11363 | |
21d1c967 GD |
11364 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11365 | if test "$wxUSE_REGEX" = "sys" ; then | |
a0b9e27f | 11366 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11367 | else |
a0b9e27f | 11368 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11369 | wxUSE_REGEX=builtin |
11370 | fi | |
11371 | else | |
11372 | wxUSE_REGEX=sys | |
11373 | fi | |
ab9b9eab | 11374 | fi |
90dd450c | 11375 | |
21d1c967 GD |
11376 | if test "$wxUSE_REGEX" = "builtin" ; then |
11377 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11378 | fi |
21d1c967 | 11379 | fi |
90dd450c | 11380 | |
8284b0c5 | 11381 | |
21d1c967 GD |
11382 | ZLIB_INCLUDE= |
11383 | ZLIB_LINK= | |
11384 | if test "$wxUSE_ZLIB" != "no" ; then | |
a0b9e27f | 11385 | cat >> confdefs.h <<\EOF |
21d1c967 | 11386 | #define wxUSE_ZLIB 1 |
a0b9e27f | 11387 | EOF |
21d1c967 | 11388 | |
8284b0c5 | 11389 | |
21d1c967 | 11390 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
a0b9e27f MB |
11391 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
11392 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
4f57cf11 | 11393 | echo "configure:11394: checking for zlib.h" >&5 |
a0b9e27f MB |
11394 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11395 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11396 | else | |
11397 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 11398 | #line 11399 "configure" |
ab9b9eab | 11399 | #include "confdefs.h" |
21d1c967 | 11400 | #include <zlib.h> |
a0b9e27f MB |
11401 | EOF |
11402 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f57cf11 | 11403 | { (eval echo configure:11404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11404 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11405 | if test -z "$ac_err"; then | |
11406 | rm -rf conftest* | |
11407 | eval "ac_cv_header_$ac_safe=yes" | |
11408 | else | |
11409 | echo "$ac_err" >&5 | |
11410 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11411 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11412 | rm -rf conftest* |
11413 | eval "ac_cv_header_$ac_safe=no" | |
698dcdb6 | 11414 | fi |
a0b9e27f | 11415 | rm -f conftest* |
ab9b9eab | 11416 | fi |
a0b9e27f MB |
11417 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11418 | echo "$ac_t""yes" 1>&6 | |
11419 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
4f57cf11 | 11420 | echo "configure:11421: checking for deflate in -lz" >&5 |
a0b9e27f MB |
11421 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11422 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11423 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11424 | else |
a0b9e27f | 11425 | ac_save_LIBS="$LIBS" |
21d1c967 | 11426 | LIBS="-lz $LIBS" |
a0b9e27f | 11427 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 11428 | #line 11429 "configure" |
ab9b9eab | 11429 | #include "confdefs.h" |
21d1c967 GD |
11430 | /* Override any gcc2 internal prototype to avoid an error. */ |
11431 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11432 | builtin and then its argument prototype would still apply. */ |
11433 | char deflate(); | |
11434 | ||
11435 | int main() { | |
11436 | deflate() | |
11437 | ; return 0; } | |
11438 | EOF | |
4f57cf11 | 11439 | if { (eval echo configure:11440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11440 | rm -rf conftest* |
11441 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11442 | else | |
11443 | echo "configure: failed program was:" >&5 | |
11444 | cat conftest.$ac_ext >&5 | |
11445 | rm -rf conftest* | |
11446 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 11447 | fi |
a0b9e27f MB |
11448 | rm -f conftest* |
11449 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 11450 | |
698dcdb6 | 11451 | fi |
a0b9e27f MB |
11452 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11453 | echo "$ac_t""yes" 1>&6 | |
11454 | ZLIB_LINK=" -lz" | |
11455 | else | |
11456 | echo "$ac_t""no" 1>&6 | |
11457 | fi | |
698dcdb6 | 11458 | |
a0b9e27f MB |
11459 | else |
11460 | echo "$ac_t""no" 1>&6 | |
11461 | fi | |
8284b0c5 | 11462 | |
247f5006 | 11463 | |
21d1c967 GD |
11464 | if test "x$ZLIB_LINK" = "x" ; then |
11465 | if test "$wxUSE_ZLIB" = "sys" ; then | |
a0b9e27f | 11466 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11467 | else |
a0b9e27f | 11468 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11469 | wxUSE_ZLIB=builtin |
11470 | fi | |
11471 | else | |
11472 | wxUSE_ZLIB=sys | |
11473 | fi | |
11474 | fi | |
11475 | ||
11476 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11477 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11478 | fi | |
ab9b9eab VZ |
11479 | fi |
11480 | ||
8284b0c5 | 11481 | |
21d1c967 GD |
11482 | PNG_INCLUDE= |
11483 | PNG_LINK= | |
11484 | if test "$wxUSE_LIBPNG" != "no" ; then | |
a0b9e27f | 11485 | cat >> confdefs.h <<\EOF |
21d1c967 | 11486 | #define wxUSE_LIBPNG 1 |
a0b9e27f | 11487 | EOF |
90dd450c | 11488 | |
8284b0c5 | 11489 | |
21d1c967 | 11490 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
a0b9e27f | 11491 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11492 | wxUSE_LIBPNG=sys |
11493 | fi | |
90dd450c | 11494 | |
21d1c967 | 11495 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a0b9e27f | 11496 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11497 | wxUSE_LIBPNG=builtin |
11498 | fi | |
11499 | ||
11500 | if test "$wxUSE_MGL" != 1 ; then | |
11501 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
a0b9e27f MB |
11502 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
11503 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
4f57cf11 | 11504 | echo "configure:11505: checking for png.h" >&5 |
a0b9e27f MB |
11505 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11507 | else | |
11508 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 11509 | #line 11510 "configure" |
21d1c967 GD |
11510 | #include "confdefs.h" |
11511 | #include <png.h> | |
a0b9e27f MB |
11512 | EOF |
11513 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f57cf11 | 11514 | { (eval echo configure:11515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11515 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11516 | if test -z "$ac_err"; then | |
11517 | rm -rf conftest* | |
11518 | eval "ac_cv_header_$ac_safe=yes" | |
11519 | else | |
11520 | echo "$ac_err" >&5 | |
11521 | echo "configure: failed program was:" >&5 | |
90dd450c | 11522 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11523 | rm -rf conftest* |
11524 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11525 | fi |
a0b9e27f | 11526 | rm -f conftest* |
90dd450c | 11527 | fi |
a0b9e27f MB |
11528 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11529 | echo "$ac_t""yes" 1>&6 | |
11530 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
4f57cf11 | 11531 | echo "configure:11532: checking for png_check_sig in -lpng" >&5 |
a0b9e27f MB |
11532 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11533 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11534 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11535 | else |
a0b9e27f | 11536 | ac_save_LIBS="$LIBS" |
21d1c967 | 11537 | LIBS="-lpng -lz -lm $LIBS" |
a0b9e27f | 11538 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 11539 | #line 11540 "configure" |
90dd450c | 11540 | #include "confdefs.h" |
21d1c967 GD |
11541 | /* Override any gcc2 internal prototype to avoid an error. */ |
11542 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11543 | builtin and then its argument prototype would still apply. */ |
11544 | char png_check_sig(); | |
90dd450c | 11545 | |
a0b9e27f MB |
11546 | int main() { |
11547 | png_check_sig() | |
11548 | ; return 0; } | |
11549 | EOF | |
4f57cf11 | 11550 | if { (eval echo configure:11551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11551 | rm -rf conftest* |
11552 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11553 | else | |
11554 | echo "configure: failed program was:" >&5 | |
11555 | cat conftest.$ac_ext >&5 | |
11556 | rm -rf conftest* | |
11557 | eval "ac_cv_lib_$ac_lib_var=no" | |
11558 | fi | |
11559 | rm -f conftest* | |
11560 | LIBS="$ac_save_LIBS" | |
247f5006 | 11561 | |
90dd450c | 11562 | fi |
a0b9e27f MB |
11563 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11564 | echo "$ac_t""yes" 1>&6 | |
11565 | PNG_LINK=" -lpng" | |
11566 | else | |
11567 | echo "$ac_t""no" 1>&6 | |
11568 | fi | |
90dd450c | 11569 | |
a0b9e27f MB |
11570 | |
11571 | else | |
11572 | echo "$ac_t""no" 1>&6 | |
11573 | fi | |
8284b0c5 | 11574 | |
247f5006 | 11575 | |
21d1c967 GD |
11576 | if test "x$PNG_LINK" = "x" ; then |
11577 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
a0b9e27f | 11578 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11579 | else |
a0b9e27f | 11580 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11581 | wxUSE_LIBPNG=builtin |
11582 | fi | |
11583 | else | |
11584 | wxUSE_LIBPNG=yes | |
11585 | fi | |
11586 | fi | |
11587 | fi | |
90dd450c | 11588 | |
21d1c967 GD |
11589 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11590 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11591 | fi | |
90dd450c | 11592 | |
21d1c967 | 11593 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11594 | fi |
11595 | ||
8284b0c5 | 11596 | |
21d1c967 GD |
11597 | JPEG_INCLUDE= |
11598 | JPEG_LINK= | |
11599 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
a0b9e27f | 11600 | cat >> confdefs.h <<\EOF |
21d1c967 | 11601 | #define wxUSE_LIBJPEG 1 |
a0b9e27f | 11602 | EOF |
90dd450c | 11603 | |
8284b0c5 | 11604 | |
21d1c967 | 11605 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
a0b9e27f | 11606 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11607 | wxUSE_LIBJPEG=sys |
11608 | fi | |
90dd450c | 11609 | |
21d1c967 GD |
11610 | if test "$wxUSE_MGL" != 1 ; then |
11611 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
a0b9e27f | 11612 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
4f57cf11 | 11613 | echo "configure:11614: checking for jpeglib.h" >&5 |
a0b9e27f MB |
11614 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
11615 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11616 | else |
a0b9e27f | 11617 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 11618 | #line 11619 "configure" |
21d1c967 | 11619 | #include "confdefs.h" |
90dd450c | 11620 | |
21d1c967 GD |
11621 | #undef HAVE_STDLIB_H |
11622 | #include <stdio.h> | |
11623 | #include <jpeglib.h> | |
a0b9e27f MB |
11624 | |
11625 | int main() { | |
90dd450c | 11626 | |
a0b9e27f MB |
11627 | |
11628 | ; return 0; } | |
11629 | EOF | |
4f57cf11 | 11630 | if { (eval echo configure:11631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11631 | rm -rf conftest* |
21d1c967 | 11632 | ac_cv_header_jpeglib_h=yes |
90dd450c | 11633 | else |
a0b9e27f MB |
11634 | echo "configure: failed program was:" >&5 |
11635 | cat conftest.$ac_ext >&5 | |
11636 | rm -rf conftest* | |
11637 | ac_cv_header_jpeglib_h=no | |
11638 | ||
90dd450c | 11639 | fi |
a0b9e27f MB |
11640 | rm -f conftest* |
11641 | ||
90dd450c VZ |
11642 | fi |
11643 | ||
a0b9e27f | 11644 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11645 | |
21d1c967 | 11646 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
a0b9e27f | 11647 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
4f57cf11 | 11648 | echo "configure:11649: checking for jpeg_read_header in -ljpeg" >&5 |
a0b9e27f MB |
11649 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11650 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11651 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11652 | else |
a0b9e27f | 11653 | ac_save_LIBS="$LIBS" |
21d1c967 | 11654 | LIBS="-ljpeg $LIBS" |
a0b9e27f | 11655 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 11656 | #line 11657 "configure" |
21d1c967 GD |
11657 | #include "confdefs.h" |
11658 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11659 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11660 | builtin and then its argument prototype would still apply. */ |
11661 | char jpeg_read_header(); | |
11662 | ||
11663 | int main() { | |
11664 | jpeg_read_header() | |
11665 | ; return 0; } | |
11666 | EOF | |
4f57cf11 | 11667 | if { (eval echo configure:11668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11668 | rm -rf conftest* |
11669 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11670 | else | |
11671 | echo "configure: failed program was:" >&5 | |
11672 | cat conftest.$ac_ext >&5 | |
11673 | rm -rf conftest* | |
11674 | eval "ac_cv_lib_$ac_lib_var=no" | |
11675 | fi | |
11676 | rm -f conftest* | |
11677 | LIBS="$ac_save_LIBS" | |
11678 | ||
11679 | fi | |
11680 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11681 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11682 | JPEG_LINK=" -ljpeg" |
a0b9e27f MB |
11683 | else |
11684 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11685 | fi |
11686 | ||
21d1c967 | 11687 | fi |
90dd450c | 11688 | |
21d1c967 GD |
11689 | if test "x$JPEG_LINK" = "x" ; then |
11690 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
a0b9e27f | 11691 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11692 | else |
a0b9e27f | 11693 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11694 | wxUSE_LIBJPEG=builtin |
11695 | fi | |
11696 | else | |
11697 | wxUSE_LIBJPEG=sys | |
11698 | fi | |
11699 | fi | |
11700 | fi | |
90dd450c | 11701 | |
21d1c967 GD |
11702 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
11703 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11704 | fi | |
11705 | fi | |
90dd450c | 11706 | |
8284b0c5 | 11707 | |
21d1c967 GD |
11708 | TIFF_INCLUDE= |
11709 | TIFF_LINK= | |
11710 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
a0b9e27f | 11711 | cat >> confdefs.h <<\EOF |
21d1c967 | 11712 | #define wxUSE_LIBTIFF 1 |
a0b9e27f | 11713 | EOF |
21d1c967 | 11714 | |
8284b0c5 | 11715 | |
21d1c967 | 11716 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
a0b9e27f MB |
11717 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
11718 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
4f57cf11 | 11719 | echo "configure:11720: checking for tiffio.h" >&5 |
a0b9e27f MB |
11720 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11721 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11722 | else | |
11723 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 11724 | #line 11725 "configure" |
247f5006 VZ |
11725 | #include "confdefs.h" |
11726 | #include <tiffio.h> | |
a0b9e27f MB |
11727 | EOF |
11728 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f57cf11 | 11729 | { (eval echo configure:11730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11730 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11731 | if test -z "$ac_err"; then | |
11732 | rm -rf conftest* | |
11733 | eval "ac_cv_header_$ac_safe=yes" | |
11734 | else | |
11735 | echo "$ac_err" >&5 | |
11736 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11737 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11738 | rm -rf conftest* |
11739 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11740 | fi |
a0b9e27f | 11741 | rm -f conftest* |
21d1c967 | 11742 | fi |
a0b9e27f MB |
11743 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11744 | echo "$ac_t""yes" 1>&6 | |
11745 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
4f57cf11 | 11746 | echo "configure:11747: checking for TIFFError in -ltiff" >&5 |
a0b9e27f MB |
11747 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
11748 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 11750 | else |
a0b9e27f | 11751 | ac_save_LIBS="$LIBS" |
21d1c967 | 11752 | LIBS="-ltiff -lm $LIBS" |
a0b9e27f | 11753 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 11754 | #line 11755 "configure" |
ab9b9eab VZ |
11755 | #include "confdefs.h" |
11756 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11757 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11758 | builtin and then its argument prototype would still apply. */ |
11759 | char TIFFError(); | |
ab9b9eab | 11760 | |
a0b9e27f MB |
11761 | int main() { |
11762 | TIFFError() | |
11763 | ; return 0; } | |
11764 | EOF | |
4f57cf11 | 11765 | if { (eval echo configure:11766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11766 | rm -rf conftest* |
11767 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11768 | else | |
11769 | echo "configure: failed program was:" >&5 | |
11770 | cat conftest.$ac_ext >&5 | |
11771 | rm -rf conftest* | |
11772 | eval "ac_cv_lib_$ac_lib_var=no" | |
11773 | fi | |
11774 | rm -f conftest* | |
11775 | LIBS="$ac_save_LIBS" | |
247f5006 | 11776 | |
21d1c967 | 11777 | fi |
a0b9e27f MB |
11778 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11779 | echo "$ac_t""yes" 1>&6 | |
11780 | TIFF_LINK=" -ltiff" | |
11781 | else | |
11782 | echo "$ac_t""no" 1>&6 | |
11783 | fi | |
cd6d6d5b | 11784 | |
a0b9e27f MB |
11785 | |
11786 | else | |
11787 | echo "$ac_t""no" 1>&6 | |
11788 | fi | |
8284b0c5 | 11789 | |
247f5006 | 11790 | |
21d1c967 GD |
11791 | if test "x$TIFF_LINK" = "x" ; then |
11792 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
a0b9e27f | 11793 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 11794 | else |
a0b9e27f | 11795 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 11796 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 11797 | fi |
d8356fa3 | 11798 | else |
21d1c967 | 11799 | wxUSE_LIBTIFF=sys |
d8356fa3 | 11800 | fi |
21d1c967 | 11801 | fi |
d8356fa3 | 11802 | |
21d1c967 GD |
11803 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
11804 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 11805 | fi |
21d1c967 | 11806 | fi |
10f2d63a | 11807 | |
8284b0c5 | 11808 | |
21d1c967 | 11809 | AFMINSTALL= |
90dd450c | 11810 | |
21d1c967 GD |
11811 | TOOLKIT= |
11812 | TOOLKIT_INCLUDE= | |
11813 | WIDGET_SET= | |
11814 | ||
11815 | if test "$USE_WIN32" = 1 ; then | |
a0b9e27f | 11816 | for ac_hdr in w32api.h |
21d1c967 | 11817 | do |
a0b9e27f MB |
11818 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11819 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f57cf11 | 11820 | echo "configure:11821: checking for $ac_hdr" >&5 |
a0b9e27f MB |
11821 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11822 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11823 | else | |
11824 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 11825 | #line 11826 "configure" |
247f5006 | 11826 | #include "confdefs.h" |
a0b9e27f MB |
11827 | #include <$ac_hdr> |
11828 | EOF | |
11829 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f57cf11 | 11830 | { (eval echo configure:11831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11831 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11832 | if test -z "$ac_err"; then | |
11833 | rm -rf conftest* | |
11834 | eval "ac_cv_header_$ac_safe=yes" | |
11835 | else | |
11836 | echo "$ac_err" >&5 | |
11837 | echo "configure: failed program was:" >&5 | |
f79bd02d | 11838 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11839 | rm -rf conftest* |
11840 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 11841 | fi |
a0b9e27f | 11842 | rm -f conftest* |
21d1c967 | 11843 | fi |
a0b9e27f MB |
11844 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11845 | echo "$ac_t""yes" 1>&6 | |
11846 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11847 | cat >> confdefs.h <<EOF | |
11848 | #define $ac_tr_hdr 1 | |
11849 | EOF | |
11850 | ||
11851 | else | |
11852 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
11853 | fi |
11854 | done | |
f79bd02d | 11855 | |
a0b9e27f MB |
11856 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
11857 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
4f57cf11 | 11858 | echo "configure:11859: checking for windows.h" >&5 |
a0b9e27f MB |
11859 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11860 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11861 | else |
a0b9e27f | 11862 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 11863 | #line 11864 "configure" |
247f5006 VZ |
11864 | #include "confdefs.h" |
11865 | #include <windows.h> | |
a0b9e27f MB |
11866 | EOF |
11867 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f57cf11 | 11868 | { (eval echo configure:11869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11869 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11870 | if test -z "$ac_err"; then | |
11871 | rm -rf conftest* | |
11872 | eval "ac_cv_header_$ac_safe=yes" | |
11873 | else | |
11874 | echo "$ac_err" >&5 | |
11875 | echo "configure: failed program was:" >&5 | |
90dd450c | 11876 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11877 | rm -rf conftest* |
11878 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11879 | fi |
a0b9e27f | 11880 | rm -f conftest* |
90dd450c | 11881 | fi |
a0b9e27f MB |
11882 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11883 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11884 | : |
90dd450c | 11885 | else |
a0b9e27f | 11886 | echo "$ac_t""no" 1>&6 |
21d1c967 | 11887 | |
a0b9e27f MB |
11888 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
11889 | ||
5c6fa7d2 | 11890 | fi |
7b4a847f | 11891 | |
5c6fa7d2 | 11892 | |
a0b9e27f | 11893 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
4f57cf11 | 11894 | echo "configure:11895: checking if w32api has good enough MSIE support" >&5 |
a0b9e27f MB |
11895 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
11896 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11897 | else |
a0b9e27f MB |
11898 | |
11899 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 11900 | #line 11901 "configure" |
f79bd02d | 11901 | #include "confdefs.h" |
21d1c967 | 11902 | #include <w32api.h> |
a0b9e27f | 11903 | int main() { |
f79bd02d | 11904 | |
21d1c967 GD |
11905 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
11906 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
11907 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
11908 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
11909 | ||
11910 | #if !wxCHECK_W32API_VERSION(1,1) | |
11911 | #error You need w32api 1.1 or newer | |
11912 | #endif | |
a0b9e27f MB |
11913 | |
11914 | ; return 0; } | |
11915 | EOF | |
4f57cf11 | 11916 | if { (eval echo configure:11917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11917 | rm -rf conftest* |
11918 | ||
21d1c967 | 11919 | wx_cv_w32api_win32_ie=yes |
a0b9e27f | 11920 | |
f79bd02d | 11921 | else |
a0b9e27f MB |
11922 | echo "configure: failed program was:" >&5 |
11923 | cat conftest.$ac_ext >&5 | |
11924 | rm -rf conftest* | |
11925 | ||
21d1c967 | 11926 | wx_cv_w32api_win32_ie=no |
a0b9e27f | 11927 | |
5c6fa7d2 | 11928 | fi |
a0b9e27f MB |
11929 | rm -f conftest* |
11930 | ||
247f5006 | 11931 | fi |
a0b9e27f MB |
11932 | |
11933 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
11934 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
11935 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
11936 | fi | |
f79bd02d | 11937 | |
21d1c967 GD |
11938 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
11939 | ||
11940 | case "${host}" in | |
11941 | *-*-cygwin* ) | |
11942 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
11943 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 11944 | esac |
f79bd02d | 11945 | |
21d1c967 GD |
11946 | if test "$wxUSE_ODBC" = "yes" ; then |
11947 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
11948 | fi | |
f79bd02d | 11949 | |
21d1c967 GD |
11950 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
11951 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
f79bd02d | 11952 | fi |
f79bd02d | 11953 | |
b2fee376 | 11954 | if test "$USE_DARWIN" = 1; then |
50bcbd3d | 11955 | if test "$wxUSE_PRECOMP" = "yes"; then |
b2fee376 GD |
11956 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
11957 | else | |
11958 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
11959 | fi | |
11960 | fi | |
11961 | ||
21d1c967 GD |
11962 | if test "$wxUSE_GUI" = "yes"; then |
11963 | USE_GUI=1 | |
f79bd02d | 11964 | |
21d1c967 | 11965 | GUI_TK_LIBRARY= |
f79bd02d | 11966 | |
21d1c967 GD |
11967 | WXGTK12= |
11968 | WXGTK127= | |
11969 | WXGTK20= | |
f79bd02d | 11970 | |
21d1c967 GD |
11971 | if test "$wxUSE_MSW" = 1 ; then |
11972 | TOOLKIT=MSW | |
11973 | GUIDIST=MSW_DIST | |
f79bd02d | 11974 | |
21d1c967 GD |
11975 | case "${host}" in |
11976 | *-*-mingw32* ) | |
11977 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
11978 | esac | |
f79bd02d JS |
11979 | fi |
11980 | ||
21d1c967 | 11981 | if test "$wxUSE_GTK" = 1; then |
a0b9e27f | 11982 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
4f57cf11 | 11983 | echo "configure:11984: checking for GTK+ version" >&5 |
21d1c967 GD |
11984 | |
11985 | gtk_version_cached=1 | |
a0b9e27f MB |
11986 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
11987 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 11988 | else |
a0b9e27f | 11989 | |
21d1c967 | 11990 | gtk_version_cached=0 |
a0b9e27f | 11991 | echo "$ac_t""" 1>&6 |
f79bd02d | 11992 | |
21d1c967 GD |
11993 | GTK_MODULES= |
11994 | if test "$wxUSE_THREADS" = "yes"; then | |
11995 | GTK_MODULES=gthread | |
11996 | fi | |
f79bd02d | 11997 | |
21d1c967 GD |
11998 | wx_cv_lib_gtk= |
11999 | if test "x$wxUSE_GTK2" = "xyes"; then | |
12000 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12001 | if test "${enable_gtktest+set}" = set; then | |
12002 | enableval="$enable_gtktest" | |
a0b9e27f | 12003 | : |
f79bd02d | 12004 | else |
21d1c967 | 12005 | enable_gtktest=yes |
a0b9e27f MB |
12006 | fi |
12007 | ||
f79bd02d | 12008 | |
21d1c967 GD |
12009 | pkg_config_args=gtk+-2.0 |
12010 | for module in . $GTK_MODULES | |
12011 | do | |
12012 | case "$module" in | |
a0b9e27f | 12013 | gthread) |
21d1c967 GD |
12014 | pkg_config_args="$pkg_config_args gthread-2.0" |
12015 | ;; | |
12016 | esac | |
12017 | done | |
12018 | ||
12019 | no_gtk="" | |
f79bd02d | 12020 | |
21d1c967 GD |
12021 | # Extract the first word of "pkg-config", so it can be a program name with args. |
12022 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 12023 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4f57cf11 | 12024 | echo "configure:12025: checking for $ac_word" >&5 |
a0b9e27f MB |
12025 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
12026 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12027 | else |
a0b9e27f MB |
12028 | case "$PKG_CONFIG" in |
12029 | /*) | |
21d1c967 GD |
12030 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12031 | ;; | |
a0b9e27f MB |
12032 | ?:/*) |
12033 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12034 | ;; | |
21d1c967 | 12035 | *) |
a0b9e27f MB |
12036 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12037 | ac_dummy="$PATH" | |
12038 | for ac_dir in $ac_dummy; do | |
12039 | test -z "$ac_dir" && ac_dir=. | |
12040 | if test -f $ac_dir/$ac_word; then | |
12041 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12042 | break | |
12043 | fi | |
12044 | done | |
12045 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12046 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12047 | ;; | |
12048 | esac | |
f79bd02d | 12049 | fi |
a0b9e27f | 12050 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 12051 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 12052 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 12053 | else |
a0b9e27f | 12054 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
12055 | fi |
12056 | ||
8284b0c5 | 12057 | |
21d1c967 GD |
12058 | if test x$PKG_CONFIG != xno ; then |
12059 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
12060 | : | |
12061 | else | |
12062 | echo *** pkg-config too old; version 0.7 or better required. | |
12063 | no_gtk=yes | |
12064 | PKG_CONFIG=no | |
12065 | fi | |
12066 | else | |
12067 | no_gtk=yes | |
12068 | fi | |
f79bd02d | 12069 | |
21d1c967 | 12070 | min_gtk_version=2.0.0 |
a0b9e27f | 12071 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
4f57cf11 | 12072 | echo "configure:12073: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 12073 | |
21d1c967 GD |
12074 | if test x$PKG_CONFIG != xno ; then |
12075 | ## don't try to run the test against uninstalled libtool libs | |
12076 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
12077 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
12078 | enable_gtktest=no | |
12079 | fi | |
f79bd02d | 12080 | |
21d1c967 GD |
12081 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
12082 | : | |
12083 | else | |
12084 | no_gtk=yes | |
12085 | fi | |
12086 | fi | |
f79bd02d | 12087 | |
21d1c967 GD |
12088 | if test x"$no_gtk" = x ; then |
12089 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
12090 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
12091 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12092 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12093 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12094 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12095 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12096 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12097 | if test "x$enable_gtktest" = "xyes" ; then | |
12098 | ac_save_CFLAGS="$CFLAGS" | |
12099 | ac_save_LIBS="$LIBS" | |
12100 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12101 | LIBS="$GTK_LIBS $LIBS" | |
12102 | rm -f conf.gtktest | |
12103 | if test "$cross_compiling" = yes; then | |
12104 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12105 | else |
a0b9e27f | 12106 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 12107 | #line 12108 "configure" |
f79bd02d | 12108 | #include "confdefs.h" |
f79bd02d | 12109 | |
21d1c967 GD |
12110 | #include <gtk/gtk.h> |
12111 | #include <stdio.h> | |
12112 | #include <stdlib.h> | |
f79bd02d | 12113 | |
a0b9e27f | 12114 | int |
21d1c967 GD |
12115 | main () |
12116 | { | |
12117 | int major, minor, micro; | |
12118 | char *tmp_version; | |
f79bd02d | 12119 | |
21d1c967 | 12120 | system ("touch conf.gtktest"); |
f79bd02d | 12121 | |
21d1c967 GD |
12122 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
12123 | tmp_version = g_strdup("$min_gtk_version"); | |
12124 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12125 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12126 | exit(1); | |
12127 | } | |
f79bd02d | 12128 | |
21d1c967 GD |
12129 | if ((gtk_major_version != $gtk_config_major_version) || |
12130 | (gtk_minor_version != $gtk_config_minor_version) || | |
12131 | (gtk_micro_version != $gtk_config_micro_version)) | |
12132 | { | |
a0b9e27f | 12133 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12134 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12135 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12136 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
12137 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12138 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12139 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12140 | printf("*** required on your system.\n"); | |
12141 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
12142 | printf("*** to point to the correct configuration files\n"); | |
a0b9e27f | 12143 | } |
21d1c967 GD |
12144 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
12145 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12146 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12147 | { | |
12148 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12149 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12150 | printf("*** library (version %d.%d.%d)\n", | |
12151 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12152 | } | |
12153 | else | |
12154 | { | |
12155 | if ((gtk_major_version > major) || | |
12156 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12157 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12158 | { | |
12159 | return 0; | |
12160 | } | |
12161 | else | |
12162 | { | |
12163 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12164 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12165 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12166 | major, minor, micro); | |
12167 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12168 | printf("***\n"); | |
12169 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12170 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
12171 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12172 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
12173 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
12174 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12175 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12176 | } | |
12177 | } | |
12178 | return 1; | |
12179 | } | |
f79bd02d | 12180 | |
a0b9e27f | 12181 | EOF |
4f57cf11 | 12182 | if { (eval echo configure:12183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12183 | then |
21d1c967 | 12184 | : |
f79bd02d | 12185 | else |
a0b9e27f MB |
12186 | echo "configure: failed program was:" >&5 |
12187 | cat conftest.$ac_ext >&5 | |
12188 | rm -fr conftest* | |
12189 | no_gtk=yes | |
f79bd02d | 12190 | fi |
a0b9e27f | 12191 | rm -fr conftest* |
f79bd02d | 12192 | fi |
a0b9e27f | 12193 | |
21d1c967 GD |
12194 | CFLAGS="$ac_save_CFLAGS" |
12195 | LIBS="$ac_save_LIBS" | |
12196 | fi | |
12197 | fi | |
12198 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12199 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
12200 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 12201 | else |
a0b9e27f | 12202 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12203 | if test "$PKG_CONFIG" = "no" ; then |
12204 | echo "*** A new enough version of pkg-config was not found." | |
12205 | echo "*** See http://pkgconfig.sourceforge.net" | |
12206 | else | |
12207 | if test -f conf.gtktest ; then | |
12208 | : | |
12209 | else | |
12210 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
12211 | ac_save_CFLAGS="$CFLAGS" |
12212 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
12213 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
12214 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12215 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 12216 | #line 12217 "configure" |
f79bd02d | 12217 | #include "confdefs.h" |
21d1c967 GD |
12218 | |
12219 | #include <gtk/gtk.h> | |
12220 | #include <stdio.h> | |
f79bd02d | 12221 | |
a0b9e27f MB |
12222 | int main() { |
12223 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12224 | ; return 0; } | |
12225 | EOF | |
4f57cf11 | 12226 | if { (eval echo configure:12227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12227 | rm -rf conftest* |
21d1c967 GD |
12228 | echo "*** The test program compiled, but did not run. This usually means" |
12229 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12230 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12231 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12232 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12233 | echo "*** is required on your system" | |
12234 | echo "***" | |
12235 | echo "*** If you have an old version installed, it is best to remove it, although" | |
a0b9e27f | 12236 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 12237 | else |
a0b9e27f MB |
12238 | echo "configure: failed program was:" >&5 |
12239 | cat conftest.$ac_ext >&5 | |
12240 | rm -rf conftest* | |
12241 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 12242 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 12243 | fi |
a0b9e27f | 12244 | rm -f conftest* |
21d1c967 GD |
12245 | CFLAGS="$ac_save_CFLAGS" |
12246 | LIBS="$ac_save_LIBS" | |
12247 | fi | |
12248 | fi | |
12249 | GTK_CFLAGS="" | |
12250 | GTK_LIBS="" | |
12251 | : | |
12252 | fi | |
a0b9e27f MB |
12253 | |
12254 | ||
21d1c967 | 12255 | rm -f conf.gtktest |
f79bd02d | 12256 | |
21d1c967 | 12257 | fi |
f79bd02d | 12258 | |
21d1c967 | 12259 | if test -z "$wx_cv_lib_gtk"; then |
a0b9e27f | 12260 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12261 | if test "${with_gtk_prefix+set}" = set; then |
12262 | withval="$with_gtk_prefix" | |
12263 | gtk_config_prefix="$withval" | |
12264 | else | |
12265 | gtk_config_prefix="" | |
a0b9e27f | 12266 | fi |
f79bd02d | 12267 | |
21d1c967 GD |
12268 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12269 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12270 | withval="$with_gtk_exec_prefix" | |
12271 | gtk_config_exec_prefix="$withval" | |
12272 | else | |
12273 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12274 | fi |
12275 | ||
21d1c967 GD |
12276 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12277 | if test "${enable_gtktest+set}" = set; then | |
12278 | enableval="$enable_gtktest" | |
a0b9e27f | 12279 | : |
21d1c967 GD |
12280 | else |
12281 | enable_gtktest=yes | |
a0b9e27f MB |
12282 | fi |
12283 | ||
21d1c967 GD |
12284 | |
12285 | for module in . $GTK_MODULES | |
12286 | do | |
12287 | case "$module" in | |
a0b9e27f | 12288 | gthread) |
21d1c967 GD |
12289 | gtk_config_args="$gtk_config_args gthread" |
12290 | ;; | |
12291 | esac | |
12292 | done | |
12293 | ||
12294 | if test x$gtk_config_exec_prefix != x ; then | |
12295 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12296 | if test x${GTK_CONFIG+set} != xset ; then | |
12297 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12298 | fi | |
12299 | fi | |
12300 | if test x$gtk_config_prefix != x ; then | |
12301 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12302 | if test x${GTK_CONFIG+set} != xset ; then | |
12303 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12304 | fi | |
12305 | fi | |
12306 | ||
12307 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12308 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12309 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4f57cf11 | 12310 | echo "configure:12311: checking for $ac_word" >&5 |
a0b9e27f MB |
12311 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12312 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12313 | else |
a0b9e27f MB |
12314 | case "$GTK_CONFIG" in |
12315 | /*) | |
21d1c967 GD |
12316 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12317 | ;; | |
a0b9e27f MB |
12318 | ?:/*) |
12319 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12320 | ;; | |
21d1c967 | 12321 | *) |
a0b9e27f MB |
12322 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12323 | ac_dummy="$PATH" | |
12324 | for ac_dir in $ac_dummy; do | |
12325 | test -z "$ac_dir" && ac_dir=. | |
12326 | if test -f $ac_dir/$ac_word; then | |
12327 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12328 | break | |
12329 | fi | |
12330 | done | |
12331 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12332 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12333 | ;; | |
12334 | esac | |
12335 | fi | |
a0b9e27f | 12336 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12337 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12338 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12339 | else |
a0b9e27f | 12340 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12341 | fi |
12342 | ||
12343 | min_gtk_version=1.2.7 | |
a0b9e27f | 12344 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
4f57cf11 | 12345 | echo "configure:12346: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12346 | no_gtk="" |
12347 | if test "$GTK_CONFIG" = "no" ; then | |
12348 | no_gtk=yes | |
12349 | else | |
12350 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12351 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12352 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12353 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12354 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12355 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12356 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12357 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12358 | if test "x$enable_gtktest" = "xyes" ; then | |
12359 | ac_save_CFLAGS="$CFLAGS" | |
12360 | ac_save_LIBS="$LIBS" | |
12361 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12362 | LIBS="$GTK_LIBS $LIBS" | |
12363 | rm -f conf.gtktest | |
12364 | if test "$cross_compiling" = yes; then | |
12365 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12366 | else |
a0b9e27f | 12367 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 12368 | #line 12369 "configure" |
f79bd02d JS |
12369 | #include "confdefs.h" |
12370 | ||
21d1c967 GD |
12371 | #include <gtk/gtk.h> |
12372 | #include <stdio.h> | |
12373 | #include <stdlib.h> | |
f79bd02d | 12374 | |
a0b9e27f | 12375 | int |
21d1c967 GD |
12376 | main () |
12377 | { | |
12378 | int major, minor, micro; | |
12379 | char *tmp_version; | |
12380 | ||
12381 | system ("touch conf.gtktest"); | |
12382 | ||
12383 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12384 | tmp_version = g_strdup("$min_gtk_version"); | |
12385 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12386 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12387 | exit(1); | |
12388 | } | |
90dd450c | 12389 | |
21d1c967 GD |
12390 | if ((gtk_major_version != $gtk_config_major_version) || |
12391 | (gtk_minor_version != $gtk_config_minor_version) || | |
12392 | (gtk_micro_version != $gtk_config_micro_version)) | |
12393 | { | |
a0b9e27f | 12394 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12395 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12396 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12397 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12398 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12399 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12400 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12401 | printf("*** required on your system.\n"); | |
12402 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12403 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12404 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12405 | } |
21d1c967 GD |
12406 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12407 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12408 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12409 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12410 | { | |
12411 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12412 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12413 | printf("*** library (version %d.%d.%d)\n", | |
12414 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12415 | } | |
12416 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12417 | else | |
12418 | { | |
12419 | if ((gtk_major_version > major) || | |
12420 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12421 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12422 | { | |
12423 | return 0; | |
12424 | } | |
12425 | else | |
12426 | { | |
12427 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12428 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12429 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12430 | major, minor, micro); | |
12431 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12432 | printf("***\n"); | |
12433 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12434 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12435 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12436 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12437 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12438 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12439 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12440 | } | |
12441 | } | |
12442 | return 1; | |
12443 | } | |
12444 | ||
a0b9e27f | 12445 | EOF |
4f57cf11 | 12446 | if { (eval echo configure:12447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12447 | then |
21d1c967 GD |
12448 | : |
12449 | else | |
a0b9e27f MB |
12450 | echo "configure: failed program was:" >&5 |
12451 | cat conftest.$ac_ext >&5 | |
12452 | rm -fr conftest* | |
12453 | no_gtk=yes | |
21d1c967 | 12454 | fi |
a0b9e27f | 12455 | rm -fr conftest* |
21d1c967 | 12456 | fi |
a0b9e27f | 12457 | |
21d1c967 GD |
12458 | CFLAGS="$ac_save_CFLAGS" |
12459 | LIBS="$ac_save_LIBS" | |
12460 | fi | |
12461 | fi | |
12462 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12463 | echo "$ac_t""yes" 1>&6 |
12464 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12465 | else |
a0b9e27f | 12466 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12467 | if test "$GTK_CONFIG" = "no" ; then |
12468 | echo "*** The gtk-config script installed by GTK could not be found" | |
12469 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12470 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12471 | echo "*** full path to gtk-config." | |
12472 | else | |
12473 | if test -f conf.gtktest ; then | |
12474 | : | |
12475 | else | |
12476 | echo "*** Could not run GTK test program, checking why..." | |
12477 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12478 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12479 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 12480 | #line 12481 "configure" |
21d1c967 GD |
12481 | #include "confdefs.h" |
12482 | ||
12483 | #include <gtk/gtk.h> | |
12484 | #include <stdio.h> | |
12485 | ||
a0b9e27f MB |
12486 | int main() { |
12487 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12488 | ; return 0; } | |
12489 | EOF | |
4f57cf11 | 12490 | if { (eval echo configure:12491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12491 | rm -rf conftest* |
21d1c967 GD |
12492 | echo "*** The test program compiled, but did not run. This usually means" |
12493 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12494 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12495 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12496 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12497 | echo "*** is required on your system" | |
12498 | echo "***" | |
12499 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12500 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12501 | echo "***" | |
12502 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12503 | echo "*** came with the system with the command" | |
12504 | echo "***" | |
a0b9e27f | 12505 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12506 | else |
a0b9e27f MB |
12507 | echo "configure: failed program was:" >&5 |
12508 | cat conftest.$ac_ext >&5 | |
12509 | rm -rf conftest* | |
12510 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12511 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12512 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 12513 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12514 | fi |
a0b9e27f | 12515 | rm -f conftest* |
21d1c967 GD |
12516 | CFLAGS="$ac_save_CFLAGS" |
12517 | LIBS="$ac_save_LIBS" | |
12518 | fi | |
12519 | fi | |
12520 | GTK_CFLAGS="" | |
12521 | GTK_LIBS="" | |
12522 | : | |
12523 | fi | |
a0b9e27f MB |
12524 | |
12525 | ||
21d1c967 GD |
12526 | rm -f conf.gtktest |
12527 | ||
12528 | fi | |
12529 | ||
12530 | if test -z "$wx_cv_lib_gtk"; then | |
a0b9e27f | 12531 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12532 | if test "${with_gtk_prefix+set}" = set; then |
12533 | withval="$with_gtk_prefix" | |
12534 | gtk_config_prefix="$withval" | |
12535 | else | |
12536 | gtk_config_prefix="" | |
a0b9e27f | 12537 | fi |
f79bd02d | 12538 | |
21d1c967 GD |
12539 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12540 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12541 | withval="$with_gtk_exec_prefix" | |
12542 | gtk_config_exec_prefix="$withval" | |
12543 | else | |
12544 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12545 | fi |
12546 | ||
21d1c967 GD |
12547 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12548 | if test "${enable_gtktest+set}" = set; then | |
12549 | enableval="$enable_gtktest" | |
a0b9e27f | 12550 | : |
90dd450c | 12551 | else |
21d1c967 | 12552 | enable_gtktest=yes |
a0b9e27f MB |
12553 | fi |
12554 | ||
21d1c967 GD |
12555 | |
12556 | for module in . $GTK_MODULES | |
12557 | do | |
12558 | case "$module" in | |
a0b9e27f | 12559 | gthread) |
21d1c967 GD |
12560 | gtk_config_args="$gtk_config_args gthread" |
12561 | ;; | |
12562 | esac | |
12563 | done | |
12564 | ||
12565 | if test x$gtk_config_exec_prefix != x ; then | |
12566 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12567 | if test x${GTK_CONFIG+set} != xset ; then | |
12568 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12569 | fi | |
12570 | fi | |
12571 | if test x$gtk_config_prefix != x ; then | |
12572 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12573 | if test x${GTK_CONFIG+set} != xset ; then | |
12574 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12575 | fi | |
12576 | fi | |
12577 | ||
12578 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12579 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12580 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4f57cf11 | 12581 | echo "configure:12582: checking for $ac_word" >&5 |
a0b9e27f MB |
12582 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12584 | else |
a0b9e27f MB |
12585 | case "$GTK_CONFIG" in |
12586 | /*) | |
21d1c967 GD |
12587 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12588 | ;; | |
a0b9e27f MB |
12589 | ?:/*) |
12590 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12591 | ;; | |
21d1c967 | 12592 | *) |
a0b9e27f MB |
12593 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12594 | ac_dummy="$PATH" | |
12595 | for ac_dir in $ac_dummy; do | |
12596 | test -z "$ac_dir" && ac_dir=. | |
12597 | if test -f $ac_dir/$ac_word; then | |
12598 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12599 | break | |
12600 | fi | |
12601 | done | |
12602 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12603 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12604 | ;; | |
12605 | esac | |
12606 | fi | |
a0b9e27f | 12607 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12608 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12609 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12610 | else |
a0b9e27f | 12611 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12612 | fi |
12613 | ||
12614 | min_gtk_version=1.2.3 | |
a0b9e27f | 12615 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
4f57cf11 | 12616 | echo "configure:12617: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12617 | no_gtk="" |
12618 | if test "$GTK_CONFIG" = "no" ; then | |
12619 | no_gtk=yes | |
12620 | else | |
12621 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12622 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12623 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12624 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12625 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12626 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12627 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12628 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12629 | if test "x$enable_gtktest" = "xyes" ; then | |
12630 | ac_save_CFLAGS="$CFLAGS" | |
12631 | ac_save_LIBS="$LIBS" | |
12632 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12633 | LIBS="$GTK_LIBS $LIBS" | |
12634 | rm -f conf.gtktest | |
12635 | if test "$cross_compiling" = yes; then | |
12636 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12637 | else | |
a0b9e27f | 12638 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 12639 | #line 12640 "configure" |
f79bd02d | 12640 | #include "confdefs.h" |
21d1c967 GD |
12641 | |
12642 | #include <gtk/gtk.h> | |
12643 | #include <stdio.h> | |
12644 | #include <stdlib.h> | |
12645 | ||
a0b9e27f | 12646 | int |
21d1c967 GD |
12647 | main () |
12648 | { | |
12649 | int major, minor, micro; | |
12650 | char *tmp_version; | |
12651 | ||
12652 | system ("touch conf.gtktest"); | |
12653 | ||
12654 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12655 | tmp_version = g_strdup("$min_gtk_version"); | |
12656 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12657 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12658 | exit(1); | |
12659 | } | |
12660 | ||
12661 | if ((gtk_major_version != $gtk_config_major_version) || | |
12662 | (gtk_minor_version != $gtk_config_minor_version) || | |
12663 | (gtk_micro_version != $gtk_config_micro_version)) | |
12664 | { | |
a0b9e27f | 12665 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12666 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12667 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12668 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12669 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12670 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12671 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12672 | printf("*** required on your system.\n"); | |
12673 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12674 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12675 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12676 | } |
21d1c967 GD |
12677 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12678 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12679 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12680 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12681 | { | |
12682 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12683 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12684 | printf("*** library (version %d.%d.%d)\n", | |
12685 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12686 | } | |
12687 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12688 | else | |
12689 | { | |
12690 | if ((gtk_major_version > major) || | |
12691 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12692 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12693 | { | |
12694 | return 0; | |
12695 | } | |
12696 | else | |
12697 | { | |
12698 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12699 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12700 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12701 | major, minor, micro); | |
12702 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12703 | printf("***\n"); | |
12704 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12705 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12706 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12707 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12708 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12709 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12710 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12711 | } | |
12712 | } | |
12713 | return 1; | |
12714 | } | |
12715 | ||
a0b9e27f | 12716 | EOF |
4f57cf11 | 12717 | if { (eval echo configure:12718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12718 | then |
21d1c967 GD |
12719 | : |
12720 | else | |
a0b9e27f MB |
12721 | echo "configure: failed program was:" >&5 |
12722 | cat conftest.$ac_ext >&5 | |
12723 | rm -fr conftest* | |
12724 | no_gtk=yes | |
21d1c967 | 12725 | fi |
a0b9e27f | 12726 | rm -fr conftest* |
21d1c967 | 12727 | fi |
a0b9e27f | 12728 | |
21d1c967 GD |
12729 | CFLAGS="$ac_save_CFLAGS" |
12730 | LIBS="$ac_save_LIBS" | |
12731 | fi | |
12732 | fi | |
12733 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12734 | echo "$ac_t""yes" 1>&6 |
12735 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 12736 | else |
a0b9e27f | 12737 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12738 | if test "$GTK_CONFIG" = "no" ; then |
12739 | echo "*** The gtk-config script installed by GTK could not be found" | |
12740 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12741 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12742 | echo "*** full path to gtk-config." | |
12743 | else | |
12744 | if test -f conf.gtktest ; then | |
12745 | : | |
12746 | else | |
12747 | echo "*** Could not run GTK test program, checking why..." | |
12748 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12749 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12750 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 12751 | #line 12752 "configure" |
21d1c967 GD |
12752 | #include "confdefs.h" |
12753 | ||
12754 | #include <gtk/gtk.h> | |
12755 | #include <stdio.h> | |
f79bd02d | 12756 | |
a0b9e27f MB |
12757 | int main() { |
12758 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12759 | ; return 0; } | |
12760 | EOF | |
4f57cf11 | 12761 | if { (eval echo configure:12762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12762 | rm -rf conftest* |
21d1c967 GD |
12763 | echo "*** The test program compiled, but did not run. This usually means" |
12764 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12765 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12766 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12767 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12768 | echo "*** is required on your system" | |
12769 | echo "***" | |
12770 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12771 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12772 | echo "***" | |
12773 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12774 | echo "*** came with the system with the command" | |
12775 | echo "***" | |
a0b9e27f | 12776 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12777 | else |
a0b9e27f MB |
12778 | echo "configure: failed program was:" >&5 |
12779 | cat conftest.$ac_ext >&5 | |
12780 | rm -rf conftest* | |
12781 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12782 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12783 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 12784 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12785 | fi |
a0b9e27f | 12786 | rm -f conftest* |
21d1c967 GD |
12787 | CFLAGS="$ac_save_CFLAGS" |
12788 | LIBS="$ac_save_LIBS" | |
12789 | fi | |
12790 | fi | |
12791 | GTK_CFLAGS="" | |
12792 | GTK_LIBS="" | |
12793 | : | |
12794 | fi | |
a0b9e27f MB |
12795 | |
12796 | ||
21d1c967 | 12797 | rm -f conf.gtktest |
f79bd02d | 12798 | |
21d1c967 GD |
12799 | fi |
12800 | ||
12801 | if test -z "$wx_cv_lib_gtk"; then | |
12802 | wx_cv_lib_gtk=none | |
12803 | else | |
12804 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
12805 | wx_cv_libs_gtk=$GTK_LIBS | |
12806 | fi | |
a0b9e27f MB |
12807 | |
12808 | ||
5c6fa7d2 | 12809 | fi |
52127426 | 12810 | |
8284b0c5 | 12811 | |
21d1c967 | 12812 | if test "$gtk_version_cached" = 1; then |
a0b9e27f | 12813 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
12814 | fi |
12815 | ||
12816 | case "$wx_cv_lib_gtk" in | |
12817 | 2.0) WXGTK20=1 | |
12818 | ;; | |
12819 | 1.2.7) WXGTK127=1 | |
12820 | WXGTK12=1 | |
12821 | ;; | |
12822 | 1.2.3) WXGTK12=1 | |
12823 | ;; | |
a0b9e27f | 12824 | *) { echo "configure: error: |
247f5006 VZ |
12825 | Please check that gtk-config is in path, the directory |
12826 | where GTK+ libraries are installed (returned by | |
12827 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
12828 | equivalent variable and GTK+ is version 1.2.3 or above. | |
a0b9e27f | 12829 | " 1>&2; exit 1; } |
21d1c967 GD |
12830 | ;; |
12831 | esac | |
12832 | ||
b13cd66e VZ |
12833 | if test "$WXGTK20" = 1; then |
12834 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 12835 | |
f09359cf VS |
12836 | succeeded=no |
12837 | ||
12838 | if test -z "$PKG_CONFIG"; then | |
12839 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
12840 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 12841 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4f57cf11 | 12842 | echo "configure:12843: checking for $ac_word" >&5 |
a0b9e27f MB |
12843 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
12844 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf | 12845 | else |
a0b9e27f MB |
12846 | case "$PKG_CONFIG" in |
12847 | /*) | |
f09359cf VS |
12848 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12849 | ;; | |
a0b9e27f MB |
12850 | ?:/*) |
12851 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12852 | ;; | |
f09359cf | 12853 | *) |
a0b9e27f MB |
12854 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12855 | ac_dummy="$PATH" | |
12856 | for ac_dir in $ac_dummy; do | |
12857 | test -z "$ac_dir" && ac_dir=. | |
12858 | if test -f $ac_dir/$ac_word; then | |
12859 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12860 | break | |
12861 | fi | |
12862 | done | |
12863 | IFS="$ac_save_ifs" | |
f09359cf VS |
12864 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12865 | ;; | |
12866 | esac | |
12867 | fi | |
a0b9e27f | 12868 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
f09359cf | 12869 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 12870 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f09359cf | 12871 | else |
a0b9e27f | 12872 | echo "$ac_t""no" 1>&6 |
f09359cf VS |
12873 | fi |
12874 | ||
12875 | fi | |
12876 | ||
12877 | if test "$PKG_CONFIG" = "no" ; then | |
12878 | echo "*** The pkg-config script could not be found. Make sure it is" | |
12879 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
12880 | echo "*** to the full path to pkg-config." | |
12881 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
12882 | else | |
12883 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
12884 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
a0b9e27f | 12885 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 |
4f57cf11 | 12886 | echo "configure:12887: checking for pangoft2" >&5 |
f09359cf VS |
12887 | |
12888 | if $PKG_CONFIG --exists "pangoft2" ; then | |
a0b9e27f | 12889 | echo "$ac_t""yes" 1>&6 |
f09359cf VS |
12890 | succeeded=yes |
12891 | ||
a0b9e27f | 12892 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 |
4f57cf11 | 12893 | echo "configure:12894: checking PANGOFT2_CFLAGS" >&5 |
f09359cf | 12894 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
a0b9e27f | 12895 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 |
f09359cf | 12896 | |
a0b9e27f | 12897 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 |
4f57cf11 | 12898 | echo "configure:12899: checking PANGOFT2_LIBS" >&5 |
f09359cf | 12899 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
a0b9e27f | 12900 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 |
f09359cf VS |
12901 | else |
12902 | PANGOFT2_CFLAGS="" | |
12903 | PANGOFT2_LIBS="" | |
a0b9e27f | 12904 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
12905 | ## do set a variable so people can do so. |
12906 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
a0b9e27f | 12907 | |
f09359cf VS |
12908 | fi |
12909 | ||
a0b9e27f MB |
12910 | |
12911 | ||
f09359cf VS |
12912 | else |
12913 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
12914 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
12915 | fi | |
12916 | fi | |
12917 | ||
12918 | if test $succeeded = yes; then | |
a0b9e27f | 12919 | |
b13cd66e VZ |
12920 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
12921 | LIBS="$LIBS $PANGOFT2_LIBS" | |
a0b9e27f | 12922 | |
f09359cf | 12923 | else |
a0b9e27f MB |
12924 | |
12925 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
b13cd66e | 12926 | wxUSE_PRINTING_ARCHITECTURE="no" |
a0b9e27f MB |
12927 | |
12928 | ||
f09359cf VS |
12929 | fi |
12930 | ||
b13cd66e | 12931 | fi |
f09359cf VS |
12932 | fi |
12933 | ||
21d1c967 GD |
12934 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
12935 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
12936 | ||
12937 | AFMINSTALL=afminstall | |
12938 | TOOLKIT=GTK | |
12939 | GUIDIST=GTK_DIST | |
12940 | ||
a0b9e27f | 12941 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
4f57cf11 | 12942 | echo "configure:12943: checking for gdk_im_open in -lgdk" >&5 |
a0b9e27f MB |
12943 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
12944 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12945 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12946 | else |
a0b9e27f | 12947 | ac_save_LIBS="$LIBS" |
21d1c967 | 12948 | LIBS="-lgdk $LIBS" |
a0b9e27f | 12949 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 12950 | #line 12951 "configure" |
90dd450c | 12951 | #include "confdefs.h" |
5c6fa7d2 | 12952 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 12953 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
12954 | builtin and then its argument prototype would still apply. */ |
12955 | char gdk_im_open(); | |
12956 | ||
12957 | int main() { | |
12958 | gdk_im_open() | |
12959 | ; return 0; } | |
12960 | EOF | |
4f57cf11 | 12961 | if { (eval echo configure:12962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12962 | rm -rf conftest* |
12963 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12964 | else | |
12965 | echo "configure: failed program was:" >&5 | |
12966 | cat conftest.$ac_ext >&5 | |
12967 | rm -rf conftest* | |
12968 | eval "ac_cv_lib_$ac_lib_var=no" | |
12969 | fi | |
12970 | rm -f conftest* | |
12971 | LIBS="$ac_save_LIBS" | |
12972 | ||
12973 | fi | |
12974 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12975 | echo "$ac_t""yes" 1>&6 | |
12976 | cat >> confdefs.h <<\EOF | |
21d1c967 | 12977 | #define HAVE_XIM 1 |
a0b9e27f | 12978 | EOF |
21d1c967 | 12979 | |
a0b9e27f MB |
12980 | else |
12981 | echo "$ac_t""no" 1>&6 | |
90dd450c | 12982 | fi |
1e6feb95 | 12983 | |
21d1c967 | 12984 | fi |
1e6feb95 | 12985 | |
21d1c967 | 12986 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 12987 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
4f57cf11 | 12988 | echo "configure:12989: checking for SciTech MGL library" >&5 |
21d1c967 | 12989 | if test "x$MGL_ROOT" = x ; then |
a0b9e27f MB |
12990 | echo "$ac_t""not found" 1>&6 |
12991 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 12992 | else |
a0b9e27f | 12993 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
12994 | fi |
12995 | ||
12996 | case "${host}" in | |
12997 | *-*-linux* ) | |
12998 | mgl_os=linux/gcc/glibc | |
12999 | ;; | |
13000 | *-pc-msdosdjgpp ) | |
13001 | mgl_os=dos32/dj2 | |
13002 | ;; | |
13003 | *) | |
a0b9e27f | 13004 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 13005 | esac |
1e6feb95 | 13006 | |
21d1c967 | 13007 | mgl_lib_type="" |
3fcdd07b | 13008 | |
21d1c967 GD |
13009 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
13010 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
13011 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
13012 | mgl_lib_type=debug | |
13013 | fi | |
13014 | fi | |
13015 | if test "x$mgl_lib_type" = x ; then | |
13016 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
13017 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
13018 | mgl_lib_type=release | |
13019 | else | |
a0b9e27f | 13020 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } |
21d1c967 | 13021 | fi |
90dd450c | 13022 | fi |
2224580a | 13023 | |
1d1b75ac VZ |
13024 | wxUSE_UNIVERSAL="yes" |
13025 | ||
21d1c967 GD |
13026 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
13027 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
13028 | ||
90dd450c | 13029 | AFMINSTALL=afminstall |
21d1c967 GD |
13030 | TOOLKIT=MGL |
13031 | GUIDIST=MGL_DIST | |
13032 | fi | |
dad6c0ea | 13033 | |
21d1c967 | 13034 | if test "$wxUSE_MICROWIN" = 1; then |
a0b9e27f | 13035 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
4f57cf11 | 13036 | echo "configure:13037: checking for MicroWindows" >&5 |
21d1c967 | 13037 | if test "x$MICROWINDOWS" = x ; then |
a0b9e27f MB |
13038 | echo "$ac_t""not found" 1>&6 |
13039 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 13040 | else |
a0b9e27f | 13041 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 13042 | fi |
f6bcfd97 | 13043 | |
21d1c967 | 13044 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
a0b9e27f | 13045 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 13046 | else |
a0b9e27f | 13047 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 13048 | fi |
0b2effe9 | 13049 | |
21d1c967 GD |
13050 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
13051 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
13052 | ||
1d1b75ac VZ |
13053 | wxUSE_UNIVERSAL="yes" |
13054 | ||
21d1c967 GD |
13055 | AFMINSTALL=afminstall |
13056 | TOOLKIT=MICROWIN | |
13057 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
13058 | |
13059 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 13060 | fi |
f6bcfd97 | 13061 | |
21d1c967 | 13062 | if test "$wxUSE_X11" = 1; then |
a0b9e27f MB |
13063 | # If we find X, set shell vars x_includes and x_libraries to the |
13064 | # paths, otherwise set no_x=yes. | |
13065 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
13066 | # --without-x overrides everything else, but does not touch the cache. | |
13067 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
4f57cf11 | 13068 | echo "configure:13069: checking for X" >&5 |
d8356fa3 | 13069 | |
21d1c967 GD |
13070 | # Check whether --with-x or --without-x was given. |
13071 | if test "${with_x+set}" = set; then | |
13072 | withval="$with_x" | |
a0b9e27f MB |
13073 | : |
13074 | fi | |
2224580a | 13075 | |
21d1c967 GD |
13076 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
13077 | if test "x$with_x" = xno; then | |
13078 | # The user explicitly disabled X. | |
13079 | have_x=disabled | |
13080 | else | |
13081 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
13082 | # Both variables are already set. | |
13083 | have_x=yes | |
13084 | else | |
a0b9e27f MB |
13085 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
13086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
13087 | else |
13088 | # One or both of the vars are not set, and there is no cached value. | |
a0b9e27f MB |
13089 | ac_x_includes=NO ac_x_libraries=NO |
13090 | rm -fr conftestdir | |
13091 | if mkdir conftestdir; then | |
13092 | cd conftestdir | |
21d1c967 | 13093 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
a0b9e27f | 13094 | cat > Imakefile <<'EOF' |
21d1c967 GD |
13095 | acfindx: |
13096 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
a0b9e27f | 13097 | EOF |
21d1c967 GD |
13098 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
13099 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13100 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
13101 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
13102 | for ac_extension in a so sl; do | |
13103 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
a0b9e27f | 13104 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
13105 | ac_im_usrlibdir=$ac_im_libdir; break |
13106 | fi | |
13107 | done | |
13108 | # Screen out bogus values from the imake configuration. They are | |
13109 | # bogus both because they are the default anyway, and because | |
13110 | # using them would break gcc on systems where it needs fixed includes. | |
a0b9e27f | 13111 | case "$ac_im_incroot" in |
21d1c967 | 13112 | /usr/include) ;; |
a0b9e27f | 13113 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 13114 | esac |
a0b9e27f | 13115 | case "$ac_im_usrlibdir" in |
21d1c967 | 13116 | /usr/lib | /lib) ;; |
a0b9e27f | 13117 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
13118 | esac |
13119 | fi | |
13120 | cd .. | |
a0b9e27f | 13121 | rm -fr conftestdir |
21d1c967 | 13122 | fi |
10f2d63a | 13123 | |
a0b9e27f MB |
13124 | if test "$ac_x_includes" = NO; then |
13125 | # Guess where to find include files, by looking for this one X11 .h file. | |
13126 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
13127 | ||
21d1c967 | 13128 | # First, try using that file with no special directory specified. |
a0b9e27f | 13129 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 13130 | #line 13131 "configure" |
21d1c967 | 13131 | #include "confdefs.h" |
a0b9e27f MB |
13132 | #include <$x_direct_test_include> |
13133 | EOF | |
13134 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f57cf11 | 13135 | { (eval echo configure:13136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
13136 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13137 | if test -z "$ac_err"; then | |
13138 | rm -rf conftest* | |
21d1c967 GD |
13139 | # We can compile using X headers with no special include directory. |
13140 | ac_x_includes= | |
90dd450c | 13141 | else |
a0b9e27f MB |
13142 | echo "$ac_err" >&5 |
13143 | echo "configure: failed program was:" >&5 | |
90dd450c | 13144 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
13145 | rm -rf conftest* |
13146 | # Look for the header file in a standard set of common directories. | |
13147 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13148 | for ac_dir in \ | |
13149 | /usr/X11/include \ | |
13150 | /usr/X11R6/include \ | |
13151 | /usr/X11R5/include \ | |
13152 | /usr/X11R4/include \ | |
13153 | \ | |
13154 | /usr/include/X11 \ | |
13155 | /usr/include/X11R6 \ | |
13156 | /usr/include/X11R5 \ | |
13157 | /usr/include/X11R4 \ | |
13158 | \ | |
13159 | /usr/local/X11/include \ | |
13160 | /usr/local/X11R6/include \ | |
13161 | /usr/local/X11R5/include \ | |
13162 | /usr/local/X11R4/include \ | |
13163 | \ | |
13164 | /usr/local/include/X11 \ | |
13165 | /usr/local/include/X11R6 \ | |
13166 | /usr/local/include/X11R5 \ | |
13167 | /usr/local/include/X11R4 \ | |
13168 | \ | |
13169 | /usr/X386/include \ | |
13170 | /usr/x386/include \ | |
13171 | /usr/XFree86/include/X11 \ | |
13172 | \ | |
13173 | /usr/include \ | |
13174 | /usr/local/include \ | |
13175 | /usr/unsupported/include \ | |
13176 | /usr/athena/include \ | |
13177 | /usr/local/x11r5/include \ | |
13178 | /usr/lpp/Xamples/include \ | |
13179 | \ | |
13180 | /usr/openwin/include \ | |
13181 | /usr/openwin/share/include \ | |
13182 | ; \ | |
13183 | do | |
13184 | if test -r "$ac_dir/$x_direct_test_include"; then | |
13185 | ac_x_includes=$ac_dir | |
13186 | break | |
13187 | fi | |
13188 | done | |
3a922bb4 | 13189 | fi |
a0b9e27f MB |
13190 | rm -f conftest* |
13191 | fi # $ac_x_includes = NO | |
10f2d63a | 13192 | |
a0b9e27f | 13193 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 13194 | # Check for the libraries. |
a0b9e27f MB |
13195 | |
13196 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
13197 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
13198 | ||
21d1c967 GD |
13199 | # See if we find them without any special options. |
13200 | # Don't add to $LIBS permanently. | |
a0b9e27f MB |
13201 | ac_save_LIBS="$LIBS" |
13202 | LIBS="-l$x_direct_test_library $LIBS" | |
13203 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 13204 | #line 13205 "configure" |
3a922bb4 | 13205 | #include "confdefs.h" |
a0b9e27f MB |
13206 | |
13207 | int main() { | |
13208 | ${x_direct_test_function}() | |
13209 | ; return 0; } | |
13210 | EOF | |
4f57cf11 | 13211 | if { (eval echo configure:13212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13212 | rm -rf conftest* |
13213 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
13214 | # We can link X programs with no special library path. |
13215 | ac_x_libraries= | |
3a922bb4 | 13216 | else |
a0b9e27f MB |
13217 | echo "configure: failed program was:" >&5 |
13218 | cat conftest.$ac_ext >&5 | |
13219 | rm -rf conftest* | |
13220 | LIBS="$ac_save_LIBS" | |
13221 | # First see if replacing the include by lib works. | |
13222 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13223 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
13224 | /usr/X11/lib \ | |
13225 | /usr/X11R6/lib \ | |
13226 | /usr/X11R5/lib \ | |
13227 | /usr/X11R4/lib \ | |
13228 | \ | |
13229 | /usr/lib/X11 \ | |
13230 | /usr/lib/X11R6 \ | |
13231 | /usr/lib/X11R5 \ | |
13232 | /usr/lib/X11R4 \ | |
13233 | \ | |
13234 | /usr/local/X11/lib \ | |
13235 | /usr/local/X11R6/lib \ | |
13236 | /usr/local/X11R5/lib \ | |
13237 | /usr/local/X11R4/lib \ | |
13238 | \ | |
13239 | /usr/local/lib/X11 \ | |
13240 | /usr/local/lib/X11R6 \ | |
13241 | /usr/local/lib/X11R5 \ | |
13242 | /usr/local/lib/X11R4 \ | |
13243 | \ | |
13244 | /usr/X386/lib \ | |
13245 | /usr/x386/lib \ | |
13246 | /usr/XFree86/lib/X11 \ | |
13247 | \ | |
13248 | /usr/lib \ | |
13249 | /usr/local/lib \ | |
13250 | /usr/unsupported/lib \ | |
13251 | /usr/athena/lib \ | |
13252 | /usr/local/x11r5/lib \ | |
13253 | /usr/lpp/Xamples/lib \ | |
13254 | /lib/usr/lib/X11 \ | |
13255 | \ | |
13256 | /usr/openwin/lib \ | |
13257 | /usr/openwin/share/lib \ | |
13258 | ; \ | |
21d1c967 GD |
13259 | do |
13260 | for ac_extension in a so sl; do | |
a0b9e27f | 13261 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
13262 | ac_x_libraries=$ac_dir |
13263 | break 2 | |
13264 | fi | |
13265 | done | |
13266 | done | |
3a922bb4 | 13267 | fi |
a0b9e27f MB |
13268 | rm -f conftest* |
13269 | fi # $ac_x_libraries = NO | |
90dd450c | 13270 | |
a0b9e27f | 13271 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
13272 | # Didn't find X anywhere. Cache the known absence of X. |
13273 | ac_cv_have_x="have_x=no" | |
13274 | else | |
13275 | # Record where we found X for the cache. | |
13276 | ac_cv_have_x="have_x=yes \ | |
13277 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 13278 | fi |
21d1c967 GD |
13279 | fi |
13280 | fi | |
13281 | eval "$ac_cv_have_x" | |
13282 | fi # $with_x != no | |
90dd450c | 13283 | |
21d1c967 | 13284 | if test "$have_x" != yes; then |
a0b9e27f | 13285 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
13286 | no_x=yes |
13287 | else | |
13288 | # If each of the values was on the command line, it overrides each guess. | |
13289 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13290 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13291 | # Update the cache value to reflect the command line values. | |
13292 | ac_cv_have_x="have_x=yes \ | |
13293 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
a0b9e27f | 13294 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 13295 | fi |
90dd450c | 13296 | |
21d1c967 | 13297 | if test "$no_x" = yes; then |
90dd450c | 13298 | # Not all programs may use this symbol, but it does not hurt to define it. |
a0b9e27f | 13299 | cat >> confdefs.h <<\EOF |
90dd450c | 13300 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 13301 | EOF |
90dd450c VZ |
13302 | |
13303 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13304 | else | |
13305 | if test -n "$x_includes"; then | |
13306 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13307 | fi |
3a922bb4 | 13308 | |
90dd450c VZ |
13309 | # It would also be nice to do this for all -L options, not just this one. |
13310 | if test -n "$x_libraries"; then | |
13311 | X_LIBS="$X_LIBS -L$x_libraries" | |
13312 | # For Solaris; some versions of Sun CC require a space after -R and | |
13313 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 13314 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 13315 | "SunOS 5"*) |
a0b9e27f | 13316 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
4f57cf11 | 13317 | echo "configure:13318: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
13318 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13319 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 13320 | #line 13321 "configure" |
90dd450c VZ |
13321 | #include "confdefs.h" |
13322 | ||
a0b9e27f | 13323 | int main() { |
90dd450c | 13324 | |
a0b9e27f MB |
13325 | ; return 0; } |
13326 | EOF | |
4f57cf11 | 13327 | if { (eval echo configure:13328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13328 | rm -rf conftest* |
90dd450c | 13329 | ac_R_nospace=yes |
3a922bb4 | 13330 | else |
a0b9e27f MB |
13331 | echo "configure: failed program was:" >&5 |
13332 | cat conftest.$ac_ext >&5 | |
13333 | rm -rf conftest* | |
13334 | ac_R_nospace=no | |
3a922bb4 | 13335 | fi |
a0b9e27f | 13336 | rm -f conftest* |
90dd450c | 13337 | if test $ac_R_nospace = yes; then |
a0b9e27f | 13338 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
13339 | X_LIBS="$X_LIBS -R$x_libraries" |
13340 | else | |
13341 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 13342 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 13343 | #line 13344 "configure" |
90dd450c | 13344 | #include "confdefs.h" |
3a922bb4 | 13345 | |
a0b9e27f | 13346 | int main() { |
6f754473 | 13347 | |
a0b9e27f MB |
13348 | ; return 0; } |
13349 | EOF | |
4f57cf11 | 13350 | if { (eval echo configure:13351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13351 | rm -rf conftest* |
90dd450c VZ |
13352 | ac_R_space=yes |
13353 | else | |
a0b9e27f MB |
13354 | echo "configure: failed program was:" >&5 |
13355 | cat conftest.$ac_ext >&5 | |
13356 | rm -rf conftest* | |
13357 | ac_R_space=no | |
90dd450c | 13358 | fi |
a0b9e27f | 13359 | rm -f conftest* |
90dd450c | 13360 | if test $ac_R_space = yes; then |
a0b9e27f | 13361 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13362 | X_LIBS="$X_LIBS -R $x_libraries" |
13363 | else | |
a0b9e27f | 13364 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13365 | fi |
13366 | fi | |
a0b9e27f | 13367 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13368 | esac |
13369 | fi | |
13370 | ||
13371 | # Check for system-dependent libraries X programs must link with. | |
13372 | # Do this before checking for the system-independent R6 libraries | |
13373 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13374 | |
90dd450c VZ |
13375 | if test "$ISC" = yes; then |
13376 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13377 | else | |
a0b9e27f MB |
13378 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13379 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13380 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 13381 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
4f57cf11 | 13382 | echo "configure:13383: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
13383 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13384 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13385 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 13386 | else |
a0b9e27f | 13387 | ac_save_LIBS="$LIBS" |
247f5006 | 13388 | LIBS="-ldnet $LIBS" |
a0b9e27f | 13389 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 13390 | #line 13391 "configure" |
247f5006 | 13391 | #include "confdefs.h" |
247f5006 | 13392 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 13393 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13394 | builtin and then its argument prototype would still apply. */ |
13395 | char dnet_ntoa(); | |
13396 | ||
13397 | int main() { | |
13398 | dnet_ntoa() | |
13399 | ; return 0; } | |
13400 | EOF | |
4f57cf11 | 13401 | if { (eval echo configure:13402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13402 | rm -rf conftest* |
13403 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13404 | else | |
13405 | echo "configure: failed program was:" >&5 | |
13406 | cat conftest.$ac_ext >&5 | |
13407 | rm -rf conftest* | |
13408 | eval "ac_cv_lib_$ac_lib_var=no" | |
13409 | fi | |
13410 | rm -f conftest* | |
13411 | LIBS="$ac_save_LIBS" | |
13412 | ||
13413 | fi | |
13414 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13415 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13416 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
13417 | else |
13418 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13419 | fi |
13420 | ||
90dd450c | 13421 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 13422 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
4f57cf11 | 13423 | echo "configure:13424: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
13424 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13425 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13426 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13427 | else |
a0b9e27f | 13428 | ac_save_LIBS="$LIBS" |
90dd450c | 13429 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 13430 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 13431 | #line 13432 "configure" |
90dd450c VZ |
13432 | #include "confdefs.h" |
13433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13434 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13435 | builtin and then its argument prototype would still apply. */ |
13436 | char dnet_ntoa(); | |
13437 | ||
13438 | int main() { | |
13439 | dnet_ntoa() | |
13440 | ; return 0; } | |
13441 | EOF | |
4f57cf11 | 13442 | if { (eval echo configure:13443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13443 | rm -rf conftest* |
13444 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13445 | else | |
13446 | echo "configure: failed program was:" >&5 | |
13447 | cat conftest.$ac_ext >&5 | |
13448 | rm -rf conftest* | |
13449 | eval "ac_cv_lib_$ac_lib_var=no" | |
13450 | fi | |
13451 | rm -f conftest* | |
13452 | LIBS="$ac_save_LIBS" | |
13453 | ||
13454 | fi | |
13455 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13456 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13457 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
13458 | else |
13459 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13460 | fi |
13461 | ||
90dd450c | 13462 | fi |
978f1259 | 13463 | |
90dd450c VZ |
13464 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13465 | # to get the SysV transport functions. | |
a0b9e27f | 13466 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
13467 | # needs -lnsl. |
13468 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
13469 | # on Irix 5.2, according to dickey@clark.net. |
13470 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
4f57cf11 | 13471 | echo "configure:13472: checking for gethostbyname" >&5 |
a0b9e27f MB |
13472 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13473 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13474 | else | |
13475 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 13476 | #line 13477 "configure" |
90dd450c VZ |
13477 | #include "confdefs.h" |
13478 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13479 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
13480 | #include <assert.h> |
13481 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13482 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13483 | builtin and then its argument prototype would still apply. */ |
13484 | char gethostbyname(); | |
13485 | ||
13486 | int main() { | |
13487 | ||
90dd450c VZ |
13488 | /* The GNU C library defines this for functions which it implements |
13489 | to always fail with ENOSYS. Some functions are actually named | |
13490 | something starting with __ and the normal name is an alias. */ | |
13491 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13492 | choke me | |
13493 | #else | |
a0b9e27f | 13494 | gethostbyname(); |
90dd450c | 13495 | #endif |
978f1259 | 13496 | |
a0b9e27f MB |
13497 | ; return 0; } |
13498 | EOF | |
4f57cf11 | 13499 | if { (eval echo configure:13500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13500 | rm -rf conftest* |
13501 | eval "ac_cv_func_gethostbyname=yes" | |
13502 | else | |
13503 | echo "configure: failed program was:" >&5 | |
13504 | cat conftest.$ac_ext >&5 | |
13505 | rm -rf conftest* | |
13506 | eval "ac_cv_func_gethostbyname=no" | |
13507 | fi | |
13508 | rm -f conftest* | |
13509 | fi | |
13510 | ||
13511 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
13512 | echo "$ac_t""yes" 1>&6 | |
13513 | : | |
13514 | else | |
13515 | echo "$ac_t""no" 1>&6 | |
13516 | fi | |
698dcdb6 | 13517 | |
90dd450c | 13518 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 13519 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
4f57cf11 | 13520 | echo "configure:13521: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
13521 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13522 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13523 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13524 | else |
a0b9e27f | 13525 | ac_save_LIBS="$LIBS" |
90dd450c | 13526 | LIBS="-lnsl $LIBS" |
a0b9e27f | 13527 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 13528 | #line 13529 "configure" |
90dd450c VZ |
13529 | #include "confdefs.h" |
13530 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13531 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13532 | builtin and then its argument prototype would still apply. */ |
13533 | char gethostbyname(); | |
5c6fa7d2 | 13534 | |
a0b9e27f MB |
13535 | int main() { |
13536 | gethostbyname() | |
13537 | ; return 0; } | |
13538 | EOF | |
4f57cf11 | 13539 | if { (eval echo configure:13540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13540 | rm -rf conftest* |
13541 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 13542 | else |
a0b9e27f MB |
13543 | echo "configure: failed program was:" >&5 |
13544 | cat conftest.$ac_ext >&5 | |
13545 | rm -rf conftest* | |
13546 | eval "ac_cv_lib_$ac_lib_var=no" | |
13547 | fi | |
13548 | rm -f conftest* | |
13549 | LIBS="$ac_save_LIBS" | |
247f5006 | 13550 | |
a0b9e27f MB |
13551 | fi |
13552 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13553 | echo "$ac_t""yes" 1>&6 | |
13554 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13555 | else | |
13556 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13557 | fi |
b12915c1 | 13558 | |
90dd450c VZ |
13559 | fi |
13560 | ||
13561 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13562 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13563 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
13564 | # on later versions), says simon@lia.di.epfl.ch: it contains |
13565 | # gethostby* variants that don't use the nameserver (or something). | |
13566 | # -lsocket must be given before -lnsl if both are needed. | |
13567 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13568 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
4f57cf11 | 13569 | echo "configure:13570: checking for connect" >&5 |
a0b9e27f MB |
13570 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
13571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13572 | else | |
13573 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 13574 | #line 13575 "configure" |
55e80573 | 13575 | #include "confdefs.h" |
90dd450c | 13576 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 13577 | which can conflict with char connect(); below. */ |
90dd450c VZ |
13578 | #include <assert.h> |
13579 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13580 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13581 | builtin and then its argument prototype would still apply. */ |
13582 | char connect(); | |
13583 | ||
13584 | int main() { | |
13585 | ||
90dd450c VZ |
13586 | /* The GNU C library defines this for functions which it implements |
13587 | to always fail with ENOSYS. Some functions are actually named | |
13588 | something starting with __ and the normal name is an alias. */ | |
13589 | #if defined (__stub_connect) || defined (__stub___connect) | |
13590 | choke me | |
13591 | #else | |
a0b9e27f | 13592 | connect(); |
90dd450c VZ |
13593 | #endif |
13594 | ||
a0b9e27f MB |
13595 | ; return 0; } |
13596 | EOF | |
4f57cf11 | 13597 | if { (eval echo configure:13598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13598 | rm -rf conftest* |
13599 | eval "ac_cv_func_connect=yes" | |
13600 | else | |
13601 | echo "configure: failed program was:" >&5 | |
13602 | cat conftest.$ac_ext >&5 | |
13603 | rm -rf conftest* | |
13604 | eval "ac_cv_func_connect=no" | |
13605 | fi | |
13606 | rm -f conftest* | |
13607 | fi | |
13608 | ||
13609 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
13610 | echo "$ac_t""yes" 1>&6 | |
13611 | : | |
13612 | else | |
13613 | echo "$ac_t""no" 1>&6 | |
13614 | fi | |
55e80573 | 13615 | |
90dd450c | 13616 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 13617 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
4f57cf11 | 13618 | echo "configure:13619: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
13619 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
13620 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13621 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13622 | else |
a0b9e27f | 13623 | ac_save_LIBS="$LIBS" |
90dd450c | 13624 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 13625 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 13626 | #line 13627 "configure" |
90dd450c VZ |
13627 | #include "confdefs.h" |
13628 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13629 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13630 | builtin and then its argument prototype would still apply. */ |
13631 | char connect(); | |
13632 | ||
13633 | int main() { | |
13634 | connect() | |
13635 | ; return 0; } | |
13636 | EOF | |
4f57cf11 | 13637 | if { (eval echo configure:13638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13638 | rm -rf conftest* |
13639 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13640 | else | |
13641 | echo "configure: failed program was:" >&5 | |
13642 | cat conftest.$ac_ext >&5 | |
13643 | rm -rf conftest* | |
13644 | eval "ac_cv_lib_$ac_lib_var=no" | |
13645 | fi | |
13646 | rm -f conftest* | |
13647 | LIBS="$ac_save_LIBS" | |
13648 | ||
13649 | fi | |
13650 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13651 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13652 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
13653 | else |
13654 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13655 | fi |
77e13408 | 13656 | |
90dd450c | 13657 | fi |
25d0687a | 13658 | |
a0b9e27f MB |
13659 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
13660 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
4f57cf11 | 13661 | echo "configure:13662: checking for remove" >&5 |
a0b9e27f MB |
13662 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
13663 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13664 | else |
a0b9e27f | 13665 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 13666 | #line 13667 "configure" |
90dd450c VZ |
13667 | #include "confdefs.h" |
13668 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13669 | which can conflict with char remove(); below. */ |
90dd450c VZ |
13670 | #include <assert.h> |
13671 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13672 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13673 | builtin and then its argument prototype would still apply. */ |
13674 | char remove(); | |
13675 | ||
13676 | int main() { | |
13677 | ||
90dd450c VZ |
13678 | /* The GNU C library defines this for functions which it implements |
13679 | to always fail with ENOSYS. Some functions are actually named | |
13680 | something starting with __ and the normal name is an alias. */ | |
13681 | #if defined (__stub_remove) || defined (__stub___remove) | |
13682 | choke me | |
13683 | #else | |
a0b9e27f | 13684 | remove(); |
90dd450c | 13685 | #endif |
55e80573 | 13686 | |
a0b9e27f MB |
13687 | ; return 0; } |
13688 | EOF | |
4f57cf11 | 13689 | if { (eval echo configure:13690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13690 | rm -rf conftest* |
13691 | eval "ac_cv_func_remove=yes" | |
13692 | else | |
13693 | echo "configure: failed program was:" >&5 | |
13694 | cat conftest.$ac_ext >&5 | |
13695 | rm -rf conftest* | |
13696 | eval "ac_cv_func_remove=no" | |
13697 | fi | |
13698 | rm -f conftest* | |
13699 | fi | |
13700 | ||
13701 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
13702 | echo "$ac_t""yes" 1>&6 | |
13703 | : | |
13704 | else | |
13705 | echo "$ac_t""no" 1>&6 | |
13706 | fi | |
10f2d63a | 13707 | |
90dd450c | 13708 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 13709 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
4f57cf11 | 13710 | echo "configure:13711: checking for remove in -lposix" >&5 |
a0b9e27f MB |
13711 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
13712 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13713 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13714 | else |
a0b9e27f | 13715 | ac_save_LIBS="$LIBS" |
90dd450c | 13716 | LIBS="-lposix $LIBS" |
a0b9e27f | 13717 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 13718 | #line 13719 "configure" |
90dd450c VZ |
13719 | #include "confdefs.h" |
13720 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13721 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13722 | builtin and then its argument prototype would still apply. */ |
13723 | char remove(); | |
13724 | ||
13725 | int main() { | |
13726 | remove() | |
13727 | ; return 0; } | |
13728 | EOF | |
4f57cf11 | 13729 | if { (eval echo configure:13730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13730 | rm -rf conftest* |
13731 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13732 | else | |
13733 | echo "configure: failed program was:" >&5 | |
13734 | cat conftest.$ac_ext >&5 | |
13735 | rm -rf conftest* | |
13736 | eval "ac_cv_lib_$ac_lib_var=no" | |
13737 | fi | |
13738 | rm -f conftest* | |
13739 | LIBS="$ac_save_LIBS" | |
13740 | ||
13741 | fi | |
13742 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13743 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13744 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
13745 | else |
13746 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13747 | fi |
f6bcfd97 | 13748 | |
6fa882bd RR |
13749 | fi |
13750 | ||
90dd450c | 13751 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 13752 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
4f57cf11 | 13753 | echo "configure:13754: checking for shmat" >&5 |
a0b9e27f MB |
13754 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
13755 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13756 | else |
a0b9e27f | 13757 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 13758 | #line 13759 "configure" |
90dd450c VZ |
13759 | #include "confdefs.h" |
13760 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13761 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
13762 | #include <assert.h> |
13763 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13764 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13765 | builtin and then its argument prototype would still apply. */ |
13766 | char shmat(); | |
13767 | ||
13768 | int main() { | |
13769 | ||
90dd450c VZ |
13770 | /* The GNU C library defines this for functions which it implements |
13771 | to always fail with ENOSYS. Some functions are actually named | |
13772 | something starting with __ and the normal name is an alias. */ | |
13773 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
13774 | choke me | |
13775 | #else | |
a0b9e27f | 13776 | shmat(); |
90dd450c | 13777 | #endif |
10f2d63a | 13778 | |
a0b9e27f MB |
13779 | ; return 0; } |
13780 | EOF | |
4f57cf11 | 13781 | if { (eval echo configure:13782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13782 | rm -rf conftest* |
13783 | eval "ac_cv_func_shmat=yes" | |
13784 | else | |
13785 | echo "configure: failed program was:" >&5 | |
13786 | cat conftest.$ac_ext >&5 | |
13787 | rm -rf conftest* | |
13788 | eval "ac_cv_func_shmat=no" | |
13789 | fi | |
13790 | rm -f conftest* | |
13791 | fi | |
13792 | ||
13793 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
13794 | echo "$ac_t""yes" 1>&6 | |
13795 | : | |
13796 | else | |
13797 | echo "$ac_t""no" 1>&6 | |
13798 | fi | |
d08b457b | 13799 | |
90dd450c | 13800 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 13801 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
4f57cf11 | 13802 | echo "configure:13803: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
13803 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
13804 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13805 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 13806 | else |
a0b9e27f | 13807 | ac_save_LIBS="$LIBS" |
90dd450c | 13808 | LIBS="-lipc $LIBS" |
a0b9e27f | 13809 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 13810 | #line 13811 "configure" |
90dd450c | 13811 | #include "confdefs.h" |
8284b0c5 | 13812 | /* Override any gcc2 internal prototype to avoid an error. */ |
90dd450c | 13813 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13814 | builtin and then its argument prototype would still apply. */ |
13815 | char shmat(); | |
13816 | ||
13817 | int main() { | |
13818 | shmat() | |
13819 | ; return 0; } | |
13820 | EOF | |
4f57cf11 | 13821 | if { (eval echo configure:13822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13822 | rm -rf conftest* |
13823 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13824 | else | |
13825 | echo "configure: failed program was:" >&5 | |
13826 | cat conftest.$ac_ext >&5 | |
13827 | rm -rf conftest* | |
13828 | eval "ac_cv_lib_$ac_lib_var=no" | |
13829 | fi | |
13830 | rm -f conftest* | |
13831 | LIBS="$ac_save_LIBS" | |
13832 | ||
13833 | fi | |
13834 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13835 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13836 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
13837 | else |
13838 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
13839 | fi |
13840 | ||
d558c907 | 13841 | fi |
90dd450c | 13842 | fi |
3a922bb4 | 13843 | |
90dd450c | 13844 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 13845 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
13846 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
13847 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
13848 | # check for ICE first), but we must link in the order -lSM -lICE or | |
13849 | # we get undefined symbols. So assume we have SM if we have ICE. | |
13850 | # These have to be linked with before -lX11, unlike the other | |
13851 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
13852 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
13853 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
4f57cf11 | 13854 | echo "configure:13855: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
13855 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
13856 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13857 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13858 | else | |
13859 | ac_save_LIBS="$LIBS" | |
f09359cf | 13860 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 13861 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 13862 | #line 13863 "configure" |
9cfadba2 | 13863 | #include "confdefs.h" |
90dd450c VZ |
13864 | /* Override any gcc2 internal prototype to avoid an error. */ |
13865 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13866 | builtin and then its argument prototype would still apply. */ |
13867 | char IceConnectionNumber(); | |
13868 | ||
13869 | int main() { | |
13870 | IceConnectionNumber() | |
13871 | ; return 0; } | |
13872 | EOF | |
4f57cf11 | 13873 | if { (eval echo configure:13874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13874 | rm -rf conftest* |
13875 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13876 | else | |
13877 | echo "configure: failed program was:" >&5 | |
13878 | cat conftest.$ac_ext >&5 | |
13879 | rm -rf conftest* | |
13880 | eval "ac_cv_lib_$ac_lib_var=no" | |
13881 | fi | |
13882 | rm -f conftest* | |
13883 | LIBS="$ac_save_LIBS" | |
13884 | ||
13885 | fi | |
13886 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13887 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13888 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
13889 | else |
13890 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 13891 | fi |
10f2d63a | 13892 | |
a0b9e27f | 13893 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
13894 | |
13895 | fi | |
13896 | ||
8284b0c5 | 13897 | |
90dd450c | 13898 | if test "$no_x" = "yes"; then |
a0b9e27f | 13899 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
13900 | fi |
13901 | ||
13902 | GUI_TK_LIBRARY="$X_LIBS" | |
13903 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
13904 | AFMINSTALL=afminstall | |
13905 | COMPILED_X_PROGRAM=0 | |
13906 | ||
21d1c967 | 13907 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 13908 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
4f57cf11 | 13909 | echo "configure:13910: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 | 13910 | if test "x$MICROWIN" = x ; then |
a0b9e27f MB |
13911 | echo "$ac_t""not found" 1>&6 |
13912 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 13913 | else |
a0b9e27f MB |
13914 | echo "$ac_t""$MICROWIN" 1>&6 |
13915 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13916 | #define wxUSE_NANOX 1 |
a0b9e27f | 13917 | EOF |
21d1c967 | 13918 | |
90dd450c VZ |
13919 | fi |
13920 | fi | |
13921 | ||
13922 | xpm_link= | |
a0b9e27f | 13923 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
4f57cf11 | 13924 | echo "configure:13925: checking for Xpm library" >&5 |
a0b9e27f | 13925 | |
90dd450c VZ |
13926 | ac_find_libraries= |
13927 | for ac_dir in $SEARCH_LIB; | |
13928 | do | |
13929 | for ac_extension in a so sl dylib; do | |
13930 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13931 | ac_find_libraries=$ac_dir | |
13932 | break 2 | |
13933 | fi | |
13934 | done | |
13935 | done | |
13936 | ||
13937 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 13938 | |
90dd450c VZ |
13939 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
13940 | result=$? | |
13941 | if test $result = 0; then | |
13942 | ac_path_to_link="" | |
13943 | else | |
13944 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 13945 | fi |
90dd450c | 13946 | |
21d1c967 GD |
13947 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
13948 | xpm_link=" -lXpm" | |
a0b9e27f | 13949 | cat >> confdefs.h <<\EOF |
21d1c967 | 13950 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 13951 | EOF |
90dd450c | 13952 | |
a0b9e27f | 13953 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 13954 | else |
a0b9e27f | 13955 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 13956 | #line 13957 "configure" |
21d1c967 | 13957 | #include "confdefs.h" |
90dd450c | 13958 | |
21d1c967 | 13959 | #include <X11/xpm.h> |
a0b9e27f MB |
13960 | |
13961 | int main() { | |
6f72b082 | 13962 | |
21d1c967 GD |
13963 | int version; |
13964 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
13965 | |
13966 | ; return 0; } | |
13967 | EOF | |
4f57cf11 | 13968 | if { (eval echo configure:13969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
13969 | rm -rf conftest* |
13970 | ||
21d1c967 | 13971 | xpm_link=" -lXpm" |
a0b9e27f | 13972 | cat >> confdefs.h <<\EOF |
21d1c967 | 13973 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 13974 | EOF |
90dd450c | 13975 | |
a0b9e27f | 13976 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 13977 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 13978 | |
21d1c967 | 13979 | else |
a0b9e27f MB |
13980 | echo "configure: failed program was:" >&5 |
13981 | cat conftest.$ac_ext >&5 | |
13982 | rm -rf conftest* | |
13983 | ||
13984 | echo "$ac_t""no" 1>&6 | |
13985 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13986 | ||
13987 | ||
6f72b082 | 13988 | fi |
a0b9e27f | 13989 | rm -f conftest* |
21d1c967 | 13990 | fi |
90dd450c | 13991 | |
1d1b75ac VZ |
13992 | wxUSE_UNIVERSAL="yes" |
13993 | ||
21d1c967 GD |
13994 | if test "$wxUSE_NANOX" = "yes"; then |
13995 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
13996 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1" | |
13997 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
13998 | else | |
13999 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
14000 | fi | |
6f72b082 | 14001 | |
21d1c967 GD |
14002 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
14003 | TOOLKIT=X11 | |
14004 | GUIDIST=X11_DIST | |
14005 | fi | |
90dd450c | 14006 | |
21d1c967 | 14007 | if test "$wxUSE_WINE" = 1; then |
a0b9e27f MB |
14008 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
14009 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
4f57cf11 | 14010 | echo "configure:14011: checking for windows.h" >&5 |
a0b9e27f MB |
14011 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14013 | else | |
14014 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 14015 | #line 14016 "configure" |
247f5006 VZ |
14016 | #include "confdefs.h" |
14017 | #include <windows.h> | |
a0b9e27f MB |
14018 | EOF |
14019 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f57cf11 | 14020 | { (eval echo configure:14021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
14021 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14022 | if test -z "$ac_err"; then | |
14023 | rm -rf conftest* | |
14024 | eval "ac_cv_header_$ac_safe=yes" | |
14025 | else | |
14026 | echo "$ac_err" >&5 | |
14027 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14028 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
14029 | rm -rf conftest* |
14030 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14031 | fi |
a0b9e27f | 14032 | rm -f conftest* |
10f2d63a | 14033 | fi |
a0b9e27f MB |
14034 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14035 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
14036 | : |
14037 | else | |
a0b9e27f | 14038 | echo "$ac_t""no" 1>&6 |
21d1c967 | 14039 | |
a0b9e27f MB |
14040 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
14041 | ||
5c6fa7d2 | 14042 | fi |
7b4a847f | 14043 | |
5c6fa7d2 | 14044 | |
8284b0c5 | 14045 | xpm_link= |
a0b9e27f | 14046 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
4f57cf11 | 14047 | echo "configure:14048: checking for Xpm library" >&5 |
a0b9e27f | 14048 | |
90dd450c VZ |
14049 | ac_find_libraries= |
14050 | for ac_dir in $SEARCH_LIB; | |
14051 | do | |
14052 | for ac_extension in a so sl dylib; do | |
21d1c967 | 14053 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
90dd450c VZ |
14054 | ac_find_libraries=$ac_dir |
14055 | break 2 | |
14056 | fi | |
14057 | done | |
14058 | done | |
14059 | ||
21d1c967 GD |
14060 | if test "$ac_find_libraries" != "" ; then |
14061 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
14062 | xpm_link=" -lXpm" | |
a0b9e27f | 14063 | cat >> confdefs.h <<\EOF |
21d1c967 | 14064 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14065 | EOF |
90dd450c | 14066 | |
a0b9e27f | 14067 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14068 | else |
a0b9e27f MB |
14069 | echo "$ac_t""no" 1>&6 |
14070 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
21d1c967 GD |
14071 | fi |
14072 | ||
14073 | mesa_link= | |
a0b9e27f | 14074 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
4f57cf11 | 14075 | echo "configure:14076: checking for Mesa library" >&5 |
a0b9e27f | 14076 | |
90dd450c VZ |
14077 | ac_find_libraries= |
14078 | for ac_dir in $SEARCH_LIB; | |
14079 | do | |
14080 | for ac_extension in a so sl dylib; do | |
14081 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
14082 | ac_find_libraries=$ac_dir | |
14083 | break 2 | |
14084 | fi | |
14085 | done | |
14086 | done | |
14087 | ||
21d1c967 GD |
14088 | if test "$ac_find_libraries" != "" ; then |
14089 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
14090 | mesa_link=" -lMesaGL" | |
a0b9e27f | 14091 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14092 | else |
3bce6687 JS |
14093 | mesa_link="" |
14094 | echo "$ac_t""no" 1>&6 | |
14095 | echo "configure: warning: library will be compiled without Mesa support" 1>&2 | |
21d1c967 GD |
14096 | fi |
14097 | ||
14098 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
14099 | TOOLKIT=MSW | |
14100 | GUIDIST=MSW_DIST | |
14101 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
14102 | fi | |
14103 | ||
14104 | if test "$wxUSE_MOTIF" = 1; then | |
14105 | if test "$no_x" = yes; then | |
14106 | # Not all programs may use this symbol, but it does not hurt to define it. | |
a0b9e27f | 14107 | cat >> confdefs.h <<\EOF |
21d1c967 | 14108 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 14109 | EOF |
21d1c967 GD |
14110 | |
14111 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
14112 | else | |
14113 | if test -n "$x_includes"; then | |
14114 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
14115 | fi |
14116 | ||
21d1c967 GD |
14117 | # It would also be nice to do this for all -L options, not just this one. |
14118 | if test -n "$x_libraries"; then | |
14119 | X_LIBS="$X_LIBS -L$x_libraries" | |
14120 | # For Solaris; some versions of Sun CC require a space after -R and | |
14121 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 14122 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 14123 | "SunOS 5"*) |
a0b9e27f | 14124 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
4f57cf11 | 14125 | echo "configure:14126: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
14126 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
14127 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 14128 | #line 14129 "configure" |
21d1c967 GD |
14129 | #include "confdefs.h" |
14130 | ||
a0b9e27f | 14131 | int main() { |
21d1c967 | 14132 | |
a0b9e27f MB |
14133 | ; return 0; } |
14134 | EOF | |
4f57cf11 | 14135 | if { (eval echo configure:14136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14136 | rm -rf conftest* |
21d1c967 | 14137 | ac_R_nospace=yes |
698dcdb6 | 14138 | else |
a0b9e27f MB |
14139 | echo "configure: failed program was:" >&5 |
14140 | cat conftest.$ac_ext >&5 | |
14141 | rm -rf conftest* | |
14142 | ac_R_nospace=no | |
10f2d63a | 14143 | fi |
a0b9e27f | 14144 | rm -f conftest* |
21d1c967 | 14145 | if test $ac_R_nospace = yes; then |
a0b9e27f | 14146 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14147 | X_LIBS="$X_LIBS -R$x_libraries" |
14148 | else | |
14149 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 14150 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 14151 | #line 14152 "configure" |
21d1c967 | 14152 | #include "confdefs.h" |
10f2d63a | 14153 | |
a0b9e27f | 14154 | int main() { |
f0c87536 | 14155 | |
a0b9e27f MB |
14156 | ; return 0; } |
14157 | EOF | |
4f57cf11 | 14158 | if { (eval echo configure:14159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14159 | rm -rf conftest* |
21d1c967 GD |
14160 | ac_R_space=yes |
14161 | else | |
a0b9e27f MB |
14162 | echo "configure: failed program was:" >&5 |
14163 | cat conftest.$ac_ext >&5 | |
14164 | rm -rf conftest* | |
14165 | ac_R_space=no | |
21d1c967 | 14166 | fi |
a0b9e27f | 14167 | rm -f conftest* |
21d1c967 | 14168 | if test $ac_R_space = yes; then |
a0b9e27f | 14169 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
14170 | X_LIBS="$X_LIBS -R $x_libraries" |
14171 | else | |
a0b9e27f | 14172 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
14173 | fi |
14174 | fi | |
a0b9e27f | 14175 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
14176 | esac |
14177 | fi | |
90dd450c | 14178 | |
21d1c967 GD |
14179 | # Check for system-dependent libraries X programs must link with. |
14180 | # Do this before checking for the system-independent R6 libraries | |
14181 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
14182 | ||
14183 | if test "$ISC" = yes; then | |
14184 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
14185 | else | |
a0b9e27f MB |
14186 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
14187 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 14188 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 14189 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
4f57cf11 | 14190 | echo "configure:14191: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
14191 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14192 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14193 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 14194 | else |
a0b9e27f | 14195 | ac_save_LIBS="$LIBS" |
247f5006 | 14196 | LIBS="-ldnet $LIBS" |
a0b9e27f | 14197 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 14198 | #line 14199 "configure" |
247f5006 | 14199 | #include "confdefs.h" |
247f5006 | 14200 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 14201 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14202 | builtin and then its argument prototype would still apply. */ |
14203 | char dnet_ntoa(); | |
14204 | ||
14205 | int main() { | |
14206 | dnet_ntoa() | |
14207 | ; return 0; } | |
14208 | EOF | |
4f57cf11 | 14209 | if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14210 | rm -rf conftest* |
14211 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14212 | else | |
14213 | echo "configure: failed program was:" >&5 | |
14214 | cat conftest.$ac_ext >&5 | |
14215 | rm -rf conftest* | |
14216 | eval "ac_cv_lib_$ac_lib_var=no" | |
14217 | fi | |
14218 | rm -f conftest* | |
14219 | LIBS="$ac_save_LIBS" | |
14220 | ||
14221 | fi | |
14222 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14223 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14224 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
14225 | else |
14226 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 14227 | fi |
0fb0dd83 | 14228 | |
21d1c967 | 14229 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 14230 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
4f57cf11 | 14231 | echo "configure:14232: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
14232 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14233 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14234 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14235 | else |
a0b9e27f | 14236 | ac_save_LIBS="$LIBS" |
21d1c967 | 14237 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 14238 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 14239 | #line 14240 "configure" |
21d1c967 GD |
14240 | #include "confdefs.h" |
14241 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14242 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14243 | builtin and then its argument prototype would still apply. */ |
14244 | char dnet_ntoa(); | |
14245 | ||
14246 | int main() { | |
14247 | dnet_ntoa() | |
14248 | ; return 0; } | |
14249 | EOF | |
4f57cf11 | 14250 | if { (eval echo configure:14251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14251 | rm -rf conftest* |
14252 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14253 | else | |
14254 | echo "configure: failed program was:" >&5 | |
14255 | cat conftest.$ac_ext >&5 | |
14256 | rm -rf conftest* | |
14257 | eval "ac_cv_lib_$ac_lib_var=no" | |
14258 | fi | |
14259 | rm -f conftest* | |
14260 | LIBS="$ac_save_LIBS" | |
14261 | ||
14262 | fi | |
14263 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14264 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14265 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
14266 | else |
14267 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
14268 | fi |
14269 | ||
21d1c967 | 14270 | fi |
90dd450c | 14271 | |
21d1c967 GD |
14272 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
14273 | # to get the SysV transport functions. | |
a0b9e27f | 14274 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
14275 | # needs -lnsl. |
14276 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
14277 | # on Irix 5.2, according to dickey@clark.net. |
14278 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
4f57cf11 | 14279 | echo "configure:14280: checking for gethostbyname" >&5 |
a0b9e27f MB |
14280 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
14281 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14282 | else | |
14283 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 14284 | #line 14285 "configure" |
21d1c967 GD |
14285 | #include "confdefs.h" |
14286 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14287 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
14288 | #include <assert.h> |
14289 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14290 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14291 | builtin and then its argument prototype would still apply. */ |
14292 | char gethostbyname(); | |
14293 | ||
14294 | int main() { | |
14295 | ||
21d1c967 GD |
14296 | /* The GNU C library defines this for functions which it implements |
14297 | to always fail with ENOSYS. Some functions are actually named | |
14298 | something starting with __ and the normal name is an alias. */ | |
14299 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14300 | choke me | |
14301 | #else | |
a0b9e27f | 14302 | gethostbyname(); |
21d1c967 | 14303 | #endif |
90dd450c | 14304 | |
a0b9e27f MB |
14305 | ; return 0; } |
14306 | EOF | |
4f57cf11 | 14307 | if { (eval echo configure:14308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14308 | rm -rf conftest* |
14309 | eval "ac_cv_func_gethostbyname=yes" | |
14310 | else | |
14311 | echo "configure: failed program was:" >&5 | |
14312 | cat conftest.$ac_ext >&5 | |
14313 | rm -rf conftest* | |
14314 | eval "ac_cv_func_gethostbyname=no" | |
14315 | fi | |
14316 | rm -f conftest* | |
14317 | fi | |
14318 | ||
14319 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14320 | echo "$ac_t""yes" 1>&6 | |
14321 | : | |
14322 | else | |
14323 | echo "$ac_t""no" 1>&6 | |
14324 | fi | |
90dd450c | 14325 | |
21d1c967 | 14326 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 14327 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
4f57cf11 | 14328 | echo "configure:14329: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
14329 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
14330 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14331 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14332 | else |
a0b9e27f | 14333 | ac_save_LIBS="$LIBS" |
21d1c967 | 14334 | LIBS="-lnsl $LIBS" |
a0b9e27f | 14335 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 14336 | #line 14337 "configure" |
21d1c967 GD |
14337 | #include "confdefs.h" |
14338 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14339 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14340 | builtin and then its argument prototype would still apply. */ |
14341 | char gethostbyname(); | |
5c6fa7d2 | 14342 | |
a0b9e27f MB |
14343 | int main() { |
14344 | gethostbyname() | |
14345 | ; return 0; } | |
14346 | EOF | |
4f57cf11 | 14347 | if { (eval echo configure:14348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14348 | rm -rf conftest* |
14349 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 14350 | else |
a0b9e27f MB |
14351 | echo "configure: failed program was:" >&5 |
14352 | cat conftest.$ac_ext >&5 | |
14353 | rm -rf conftest* | |
14354 | eval "ac_cv_lib_$ac_lib_var=no" | |
14355 | fi | |
14356 | rm -f conftest* | |
14357 | LIBS="$ac_save_LIBS" | |
247f5006 | 14358 | |
a0b9e27f MB |
14359 | fi |
14360 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14361 | echo "$ac_t""yes" 1>&6 | |
14362 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14363 | else | |
14364 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14365 | fi |
90dd450c | 14366 | |
90dd450c VZ |
14367 | fi |
14368 | ||
21d1c967 GD |
14369 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
14370 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14371 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
14372 | # on later versions), says simon@lia.di.epfl.ch: it contains |
14373 | # gethostby* variants that don't use the nameserver (or something). | |
14374 | # -lsocket must be given before -lnsl if both are needed. | |
14375 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14376 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
4f57cf11 | 14377 | echo "configure:14378: checking for connect" >&5 |
a0b9e27f MB |
14378 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
14379 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14380 | else | |
14381 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 14382 | #line 14383 "configure" |
21d1c967 GD |
14383 | #include "confdefs.h" |
14384 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14385 | which can conflict with char connect(); below. */ |
21d1c967 GD |
14386 | #include <assert.h> |
14387 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14388 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14389 | builtin and then its argument prototype would still apply. */ |
14390 | char connect(); | |
14391 | ||
14392 | int main() { | |
14393 | ||
21d1c967 GD |
14394 | /* The GNU C library defines this for functions which it implements |
14395 | to always fail with ENOSYS. Some functions are actually named | |
14396 | something starting with __ and the normal name is an alias. */ | |
14397 | #if defined (__stub_connect) || defined (__stub___connect) | |
14398 | choke me | |
14399 | #else | |
a0b9e27f | 14400 | connect(); |
21d1c967 | 14401 | #endif |
90dd450c | 14402 | |
a0b9e27f MB |
14403 | ; return 0; } |
14404 | EOF | |
4f57cf11 | 14405 | if { (eval echo configure:14406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14406 | rm -rf conftest* |
14407 | eval "ac_cv_func_connect=yes" | |
14408 | else | |
14409 | echo "configure: failed program was:" >&5 | |
14410 | cat conftest.$ac_ext >&5 | |
14411 | rm -rf conftest* | |
14412 | eval "ac_cv_func_connect=no" | |
14413 | fi | |
14414 | rm -f conftest* | |
14415 | fi | |
14416 | ||
14417 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
14418 | echo "$ac_t""yes" 1>&6 | |
14419 | : | |
14420 | else | |
14421 | echo "$ac_t""no" 1>&6 | |
14422 | fi | |
1f8ae82f | 14423 | |
21d1c967 | 14424 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 14425 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
4f57cf11 | 14426 | echo "configure:14427: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
14427 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
14428 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14429 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 14430 | else |
a0b9e27f | 14431 | ac_save_LIBS="$LIBS" |
21d1c967 | 14432 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14433 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 14434 | #line 14435 "configure" |
0fbb762e | 14435 | #include "confdefs.h" |
21d1c967 GD |
14436 | /* Override any gcc2 internal prototype to avoid an error. */ |
14437 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14438 | builtin and then its argument prototype would still apply. */ |
14439 | char connect(); | |
14440 | ||
14441 | int main() { | |
14442 | connect() | |
14443 | ; return 0; } | |
14444 | EOF | |
4f57cf11 | 14445 | if { (eval echo configure:14446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14446 | rm -rf conftest* |
14447 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14448 | else | |
14449 | echo "configure: failed program was:" >&5 | |
14450 | cat conftest.$ac_ext >&5 | |
14451 | rm -rf conftest* | |
14452 | eval "ac_cv_lib_$ac_lib_var=no" | |
14453 | fi | |
14454 | rm -f conftest* | |
14455 | LIBS="$ac_save_LIBS" | |
14456 | ||
14457 | fi | |
14458 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14459 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14460 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
14461 | else |
14462 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14463 | fi |
90dd450c | 14464 | |
21d1c967 | 14465 | fi |
90dd450c | 14466 | |
a0b9e27f MB |
14467 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14468 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
4f57cf11 | 14469 | echo "configure:14470: checking for remove" >&5 |
a0b9e27f MB |
14470 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14472 | else |
a0b9e27f | 14473 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 14474 | #line 14475 "configure" |
21d1c967 GD |
14475 | #include "confdefs.h" |
14476 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14477 | which can conflict with char remove(); below. */ |
21d1c967 GD |
14478 | #include <assert.h> |
14479 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14480 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14481 | builtin and then its argument prototype would still apply. */ |
14482 | char remove(); | |
14483 | ||
14484 | int main() { | |
14485 | ||
21d1c967 GD |
14486 | /* The GNU C library defines this for functions which it implements |
14487 | to always fail with ENOSYS. Some functions are actually named | |
14488 | something starting with __ and the normal name is an alias. */ | |
14489 | #if defined (__stub_remove) || defined (__stub___remove) | |
14490 | choke me | |
14491 | #else | |
a0b9e27f | 14492 | remove(); |
21d1c967 | 14493 | #endif |
90dd450c | 14494 | |
a0b9e27f MB |
14495 | ; return 0; } |
14496 | EOF | |
4f57cf11 | 14497 | if { (eval echo configure:14498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14498 | rm -rf conftest* |
14499 | eval "ac_cv_func_remove=yes" | |
14500 | else | |
14501 | echo "configure: failed program was:" >&5 | |
14502 | cat conftest.$ac_ext >&5 | |
14503 | rm -rf conftest* | |
14504 | eval "ac_cv_func_remove=no" | |
14505 | fi | |
14506 | rm -f conftest* | |
14507 | fi | |
14508 | ||
14509 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14510 | echo "$ac_t""yes" 1>&6 | |
14511 | : | |
14512 | else | |
14513 | echo "$ac_t""no" 1>&6 | |
14514 | fi | |
90dd450c | 14515 | |
21d1c967 | 14516 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 14517 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
4f57cf11 | 14518 | echo "configure:14519: checking for remove in -lposix" >&5 |
a0b9e27f MB |
14519 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14520 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14521 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14522 | else |
a0b9e27f | 14523 | ac_save_LIBS="$LIBS" |
21d1c967 | 14524 | LIBS="-lposix $LIBS" |
a0b9e27f | 14525 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 14526 | #line 14527 "configure" |
21d1c967 GD |
14527 | #include "confdefs.h" |
14528 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14529 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14530 | builtin and then its argument prototype would still apply. */ |
14531 | char remove(); | |
14532 | ||
14533 | int main() { | |
14534 | remove() | |
14535 | ; return 0; } | |
14536 | EOF | |
4f57cf11 | 14537 | if { (eval echo configure:14538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14538 | rm -rf conftest* |
14539 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14540 | else | |
14541 | echo "configure: failed program was:" >&5 | |
14542 | cat conftest.$ac_ext >&5 | |
14543 | rm -rf conftest* | |
14544 | eval "ac_cv_lib_$ac_lib_var=no" | |
14545 | fi | |
14546 | rm -f conftest* | |
14547 | LIBS="$ac_save_LIBS" | |
14548 | ||
14549 | fi | |
14550 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14551 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14552 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
14553 | else |
14554 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14555 | fi |
19bc6aad | 14556 | |
90dd450c | 14557 | fi |
19bc6aad | 14558 | |
21d1c967 | 14559 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 14560 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
4f57cf11 | 14561 | echo "configure:14562: checking for shmat" >&5 |
a0b9e27f MB |
14562 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14563 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14564 | else |
a0b9e27f | 14565 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 14566 | #line 14567 "configure" |
21d1c967 GD |
14567 | #include "confdefs.h" |
14568 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14569 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
14570 | #include <assert.h> |
14571 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14572 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14573 | builtin and then its argument prototype would still apply. */ |
14574 | char shmat(); | |
14575 | ||
14576 | int main() { | |
14577 | ||
21d1c967 GD |
14578 | /* The GNU C library defines this for functions which it implements |
14579 | to always fail with ENOSYS. Some functions are actually named | |
14580 | something starting with __ and the normal name is an alias. */ | |
14581 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14582 | choke me | |
14583 | #else | |
a0b9e27f | 14584 | shmat(); |
21d1c967 | 14585 | #endif |
90dd450c | 14586 | |
a0b9e27f MB |
14587 | ; return 0; } |
14588 | EOF | |
4f57cf11 | 14589 | if { (eval echo configure:14590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14590 | rm -rf conftest* |
14591 | eval "ac_cv_func_shmat=yes" | |
14592 | else | |
14593 | echo "configure: failed program was:" >&5 | |
14594 | cat conftest.$ac_ext >&5 | |
14595 | rm -rf conftest* | |
14596 | eval "ac_cv_func_shmat=no" | |
14597 | fi | |
14598 | rm -f conftest* | |
14599 | fi | |
14600 | ||
14601 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14602 | echo "$ac_t""yes" 1>&6 | |
14603 | : | |
14604 | else | |
14605 | echo "$ac_t""no" 1>&6 | |
14606 | fi | |
19bc6aad | 14607 | |
21d1c967 | 14608 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 14609 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
4f57cf11 | 14610 | echo "configure:14611: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
14611 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14612 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14613 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 14614 | else |
a0b9e27f | 14615 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 14616 | LIBS="-lipc $LIBS" |
a0b9e27f | 14617 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 14618 | #line 14619 "configure" |
5c6fa7d2 | 14619 | #include "confdefs.h" |
5c6fa7d2 | 14620 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 14621 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14622 | builtin and then its argument prototype would still apply. */ |
14623 | char shmat(); | |
14624 | ||
14625 | int main() { | |
14626 | shmat() | |
14627 | ; return 0; } | |
14628 | EOF | |
4f57cf11 | 14629 | if { (eval echo configure:14630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14630 | rm -rf conftest* |
14631 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14632 | else | |
14633 | echo "configure: failed program was:" >&5 | |
14634 | cat conftest.$ac_ext >&5 | |
14635 | rm -rf conftest* | |
14636 | eval "ac_cv_lib_$ac_lib_var=no" | |
14637 | fi | |
14638 | rm -f conftest* | |
14639 | LIBS="$ac_save_LIBS" | |
14640 | ||
14641 | fi | |
14642 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14643 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14644 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
14645 | else |
14646 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 14647 | fi |
90dd450c | 14648 | |
90dd450c | 14649 | fi |
21d1c967 | 14650 | fi |
10f2d63a | 14651 | |
21d1c967 | 14652 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 14653 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
14654 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14655 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14656 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14657 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14658 | # These have to be linked with before -lX11, unlike the other | |
14659 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
14660 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14661 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
4f57cf11 | 14662 | echo "configure:14663: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
14663 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14664 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14666 | else | |
14667 | ac_save_LIBS="$LIBS" | |
f09359cf | 14668 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14669 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 14670 | #line 14671 "configure" |
29fd3c0c | 14671 | #include "confdefs.h" |
21d1c967 GD |
14672 | /* Override any gcc2 internal prototype to avoid an error. */ |
14673 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14674 | builtin and then its argument prototype would still apply. */ |
14675 | char IceConnectionNumber(); | |
14676 | ||
14677 | int main() { | |
14678 | IceConnectionNumber() | |
14679 | ; return 0; } | |
14680 | EOF | |
4f57cf11 | 14681 | if { (eval echo configure:14682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14682 | rm -rf conftest* |
14683 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14684 | else | |
14685 | echo "configure: failed program was:" >&5 | |
14686 | cat conftest.$ac_ext >&5 | |
14687 | rm -rf conftest* | |
14688 | eval "ac_cv_lib_$ac_lib_var=no" | |
14689 | fi | |
14690 | rm -f conftest* | |
14691 | LIBS="$ac_save_LIBS" | |
14692 | ||
14693 | fi | |
14694 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14695 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14696 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
14697 | else |
14698 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 14699 | fi |
21d1c967 | 14700 | |
a0b9e27f | 14701 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 14702 | |
10f2d63a VZ |
14703 | fi |
14704 | ||
8284b0c5 | 14705 | |
21d1c967 | 14706 | if test "$no_x" = "yes"; then |
a0b9e27f | 14707 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
14708 | fi |
14709 | ||
14710 | GUI_TK_LIBRARY="$X_LIBS" | |
14711 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14712 | AFMINSTALL=afminstall | |
14713 | COMPILED_X_PROGRAM=0 | |
14714 | ||
a0b9e27f | 14715 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
4f57cf11 | 14716 | echo "configure:14717: checking for Motif/Lesstif headers" >&5 |
a0b9e27f | 14717 | |
21d1c967 GD |
14718 | ac_find_includes= |
14719 | for ac_dir in $SEARCH_INCLUDE; | |
14720 | do | |
14721 | if test -f "$ac_dir/Xm/Xm.h"; then | |
14722 | ac_find_includes=$ac_dir | |
14723 | break | |
14724 | fi | |
14725 | done | |
14726 | ||
14727 | if test "$ac_find_includes" != "" ; then | |
a0b9e27f MB |
14728 | echo "$ac_t""found in $ac_find_includes" 1>&6 |
14729 | ||
dd0e4a90 VZ |
14730 | ac_path_to_include=$ac_find_includes |
14731 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
14732 | result=$? | |
14733 | if test $result = 0; then | |
14734 | ac_path_to_include="" | |
14735 | else | |
14736 | ac_path_to_include=" -I$ac_find_includes" | |
14737 | fi | |
14738 | ||
14739 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 14740 | else |
a0b9e27f | 14741 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 14742 | #line 14743 "configure" |
10f2d63a | 14743 | #include "confdefs.h" |
21d1c967 GD |
14744 | |
14745 | #include <Xm/Xm.h> | |
a0b9e27f MB |
14746 | |
14747 | int main() { | |
21d1c967 GD |
14748 | |
14749 | int version; | |
14750 | version = xmUseVersion; | |
a0b9e27f MB |
14751 | |
14752 | ; return 0; } | |
14753 | EOF | |
4f57cf11 | 14754 | if { (eval echo configure:14755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14755 | rm -rf conftest* |
14756 | ||
14757 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 14758 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 14759 | |
10f2d63a | 14760 | else |
a0b9e27f MB |
14761 | echo "configure: failed program was:" >&5 |
14762 | cat conftest.$ac_ext >&5 | |
14763 | rm -rf conftest* | |
14764 | ||
14765 | echo "$ac_t""no" 1>&6 | |
14766 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
14767 | ||
14768 | ||
10f2d63a | 14769 | fi |
a0b9e27f | 14770 | rm -f conftest* |
21d1c967 | 14771 | fi |
10f2d63a | 14772 | |
21d1c967 | 14773 | if test "$COMPILED_X_PROGRAM" = 0; then |
a0b9e27f | 14774 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
4f57cf11 | 14775 | echo "configure:14776: checking for Motif/Lesstif library" >&5 |
a0b9e27f | 14776 | |
21d1c967 GD |
14777 | ac_find_libraries= |
14778 | for ac_dir in $SEARCH_LIB; | |
14779 | do | |
14780 | for ac_extension in a so sl dylib; do | |
14781 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
14782 | ac_find_libraries=$ac_dir | |
14783 | break 2 | |
14784 | fi | |
14785 | done | |
14786 | done | |
14787 | ||
14788 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14789 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14790 | |
a0b9e27f | 14791 | |
21d1c967 GD |
14792 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14793 | result=$? | |
14794 | if test $result = 0; then | |
14795 | ac_path_to_link="" | |
14796 | else | |
14797 | ac_path_to_link=" -L$ac_find_libraries" | |
14798 | fi | |
14799 | ||
21d1c967 | 14800 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 14801 | else |
dd0e4a90 VZ |
14802 | save_CFLAGS=$CFLAGS |
14803 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
14804 | ||
a0b9e27f | 14805 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 14806 | #line 14807 "configure" |
d836ee96 | 14807 | #include "confdefs.h" |
21d1c967 GD |
14808 | |
14809 | #include <Xm/Xm.h> | |
a0b9e27f MB |
14810 | |
14811 | int main() { | |
21d1c967 GD |
14812 | |
14813 | int version; | |
14814 | version = xmUseVersion; | |
a0b9e27f MB |
14815 | |
14816 | ; return 0; } | |
14817 | EOF | |
4f57cf11 | 14818 | if { (eval echo configure:14819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14819 | rm -rf conftest* |
14820 | ||
14821 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 14822 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 14823 | |
d836ee96 | 14824 | else |
a0b9e27f MB |
14825 | echo "configure: failed program was:" >&5 |
14826 | cat conftest.$ac_ext >&5 | |
14827 | rm -rf conftest* | |
14828 | ||
14829 | echo "$ac_t""no" 1>&6 | |
14830 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
14831 | ||
14832 | ||
d836ee96 | 14833 | fi |
a0b9e27f | 14834 | rm -f conftest* |
dd0e4a90 VZ |
14835 | |
14836 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
14837 | fi |
14838 | fi | |
14839 | ||
14840 | xpm_link= | |
a0b9e27f | 14841 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
4f57cf11 | 14842 | echo "configure:14843: checking for Xpm library" >&5 |
a0b9e27f | 14843 | |
21d1c967 GD |
14844 | ac_find_libraries= |
14845 | for ac_dir in $SEARCH_LIB; | |
14846 | do | |
14847 | for ac_extension in a so sl dylib; do | |
14848 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14849 | ac_find_libraries=$ac_dir | |
14850 | break 2 | |
14851 | fi | |
14852 | done | |
14853 | done | |
14854 | ||
14855 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14856 | |
21d1c967 GD |
14857 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14858 | result=$? | |
14859 | if test $result = 0; then | |
14860 | ac_path_to_link="" | |
14861 | else | |
14862 | ac_path_to_link=" -L$ac_find_libraries" | |
14863 | fi | |
14864 | ||
14865 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 14866 | |
21d1c967 | 14867 | xpm_link=" -lXpm" |
a0b9e27f | 14868 | cat >> confdefs.h <<\EOF |
21d1c967 | 14869 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14870 | EOF |
90dd450c | 14871 | |
a0b9e27f | 14872 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14873 | else |
dd0e4a90 VZ |
14874 | save_CFLAGS=$CFLAGS |
14875 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
14876 | ||
a0b9e27f | 14877 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 14878 | #line 14879 "configure" |
d836ee96 | 14879 | #include "confdefs.h" |
21d1c967 GD |
14880 | |
14881 | #include <X11/xpm.h> | |
a0b9e27f MB |
14882 | |
14883 | int main() { | |
21d1c967 GD |
14884 | |
14885 | int version; | |
14886 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
14887 | |
14888 | ; return 0; } | |
14889 | EOF | |
4f57cf11 | 14890 | if { (eval echo configure:14891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14891 | rm -rf conftest* |
14892 | ||
21d1c967 | 14893 | xpm_link=" -lXpm" |
a0b9e27f | 14894 | cat >> confdefs.h <<\EOF |
21d1c967 | 14895 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14896 | EOF |
21d1c967 | 14897 | |
a0b9e27f | 14898 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14899 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 14900 | |
d836ee96 | 14901 | else |
a0b9e27f MB |
14902 | echo "configure: failed program was:" >&5 |
14903 | cat conftest.$ac_ext >&5 | |
14904 | rm -rf conftest* | |
14905 | ||
14906 | echo "$ac_t""no" 1>&6 | |
14907 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14908 | ||
14909 | ||
d836ee96 | 14910 | fi |
a0b9e27f | 14911 | rm -f conftest* |
dd0e4a90 VZ |
14912 | |
14913 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
14914 | fi |
14915 | ||
a0b9e27f | 14916 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
4f57cf11 | 14917 | echo "configure:14918: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
14918 | libp_link="" |
14919 | libsm_ice_link="" | |
14920 | libs_found=0 | |
14921 | for libp in "" " -lXp"; do | |
14922 | if test "$libs_found" = "0"; then | |
14923 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 14924 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
14925 | save_LIBS="$LIBS" |
14926 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
14927 | save_CFLAGS=$CFLAGS |
14928 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
14929 | ||
a0b9e27f | 14930 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 14931 | #line 14932 "configure" |
6a30f1c8 | 14932 | #include "confdefs.h" |
17234b26 | 14933 | |
6a30f1c8 MB |
14934 | #include <Xm/Xm.h> |
14935 | #include <Xm/List.h> | |
a0b9e27f MB |
14936 | |
14937 | int main() { | |
6a30f1c8 MB |
14938 | |
14939 | XmString string = NULL; | |
14940 | Widget w = NULL; | |
14941 | int position = 0; | |
14942 | XmListAddItem(w, string, position); | |
a0b9e27f MB |
14943 | |
14944 | ; return 0; } | |
14945 | EOF | |
4f57cf11 | 14946 | if { (eval echo configure:14947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14947 | rm -rf conftest* |
14948 | ||
6a30f1c8 MB |
14949 | libp_link="$libp" |
14950 | libsm_ice_link="$libsm_ice" | |
a0b9e27f | 14951 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 14952 | libs_found=1 |
a0b9e27f | 14953 | |
6a30f1c8 | 14954 | else |
a0b9e27f MB |
14955 | echo "configure: failed program was:" >&5 |
14956 | cat conftest.$ac_ext >&5 | |
14957 | rm -rf conftest* | |
14958 | ||
14959 | ||
6a30f1c8 | 14960 | fi |
a0b9e27f | 14961 | rm -f conftest* |
dd0e4a90 | 14962 | |
6a30f1c8 | 14963 | LIBS="$save_LIBS" |
dd0e4a90 | 14964 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
14965 | fi |
14966 | done | |
14967 | fi | |
14968 | done | |
14969 | ||
14970 | if test "$libs_found" = "0"; then | |
a0b9e27f MB |
14971 | echo "$ac_t""can't find the right libraries" 1>&6 |
14972 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
14973 | fi |
14974 | ||
14975 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
21d1c967 GD |
14976 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
14977 | TOOLKIT=MOTIF | |
14978 | GUIDIST=MOTIF_DIST | |
14979 | fi | |
14980 | ||
14981 | if test "$wxUSE_MAC" = 1; then | |
b2fee376 | 14982 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefile -I/Developer/Headers/FlatCarbon" |
21d1c967 GD |
14983 | |
14984 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
14985 | TOOLKIT=MAC | |
14986 | GUIDIST=MACX_DIST | |
14987 | fi | |
14988 | ||
14989 | if test "$wxUSE_PM" = 1; then | |
14990 | TOOLKIT=PM | |
14991 | GUIDIST=GTK_DIST | |
14992 | fi | |
14993 | ||
14994 | if test "$TOOLKIT" = "PM" ; then | |
14995 | TOOLKIT_DIR="os2" | |
14996 | else | |
14997 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
14998 | fi | |
14999 | ||
15000 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
15001 | ||
15002 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
15003 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
15004 | ||
15005 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
15006 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
15007 | ||
15008 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
15009 | if test "$wxUSE_X11" = 1; then | |
15010 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
15011 | else | |
15012 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
15013 | fi | |
15014 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
15015 | WIDGET_SET=univ | |
15016 | else | |
15017 | ALL_OBJECTS="\$(GUIOBJS)" | |
15018 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15019 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15020 | fi | |
15021 | ||
15022 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
15023 | ||
15024 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
15025 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
15026 | fi | |
15027 | ||
15028 | if test "$wxUSE_HTML" = "yes"; then | |
15029 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
15030 | fi | |
15031 | ||
15032 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
15033 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
15034 | fi | |
15035 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
15036 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
15037 | fi | |
15038 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
15039 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
15040 | fi | |
15041 | ||
15042 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
15043 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 15044 | else |
21d1c967 GD |
15045 | USE_GUI=0 |
15046 | ||
15047 | TOOLKIT_DIR="base" | |
15048 | ||
15049 | if test "$USE_WIN32" = 1 ; then | |
15050 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
15051 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
15052 | ||
15053 | TOOLKIT="MSW" | |
15054 | else | |
15055 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
15056 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
15057 | fi | |
15058 | ||
15059 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15060 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15061 | ||
15062 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
15063 | ||
15064 | GUIDIST="BASE_DIST" | |
15065 | DISTDIR="wxBase" | |
d836ee96 VZ |
15066 | fi |
15067 | ||
8284b0c5 | 15068 | |
21d1c967 GD |
15069 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
15070 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 15071 | fi |
21d1c967 GD |
15072 | |
15073 | if test "$wxUSE_REGEX" = "builtin" ; then | |
15074 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 15075 | fi |
21d1c967 GD |
15076 | if test "$wxUSE_ZLIB" = "builtin" ; then |
15077 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
15078 | fi |
15079 | ||
8284b0c5 | 15080 | |
21d1c967 GD |
15081 | if test "$wxUSE_OPENGL" = "yes"; then |
15082 | if test "$wxUSE_MAC" = 1; then | |
15083 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
15084 | elif test "$wxUSE_MSW" = 1; then | |
15085 | OPENGL_LIBS="-lopengl32 -lglu32" | |
15086 | else | |
a0b9e27f MB |
15087 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15088 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
4f57cf11 | 15089 | echo "configure:15090: checking for GL/gl.h" >&5 |
a0b9e27f MB |
15090 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15092 | else | |
15093 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 15094 | #line 15095 "configure" |
10f2d63a | 15095 | #include "confdefs.h" |
21d1c967 | 15096 | #include <GL/gl.h> |
a0b9e27f MB |
15097 | EOF |
15098 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f57cf11 | 15099 | { (eval echo configure:15100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
15100 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15101 | if test -z "$ac_err"; then | |
15102 | rm -rf conftest* | |
15103 | eval "ac_cv_header_$ac_safe=yes" | |
15104 | else | |
15105 | echo "$ac_err" >&5 | |
15106 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 15107 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
15108 | rm -rf conftest* |
15109 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 15110 | fi |
a0b9e27f | 15111 | rm -f conftest* |
698dcdb6 | 15112 | fi |
a0b9e27f MB |
15113 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15114 | echo "$ac_t""yes" 1>&6 | |
15115 | ||
15116 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
4f57cf11 | 15117 | echo "configure:15118: checking for -lGL" >&5 |
a0b9e27f | 15118 | |
21d1c967 GD |
15119 | ac_find_libraries= |
15120 | for ac_dir in $SEARCH_LIB; | |
15121 | do | |
15122 | for ac_extension in a so sl dylib; do | |
15123 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
15124 | ac_find_libraries=$ac_dir | |
15125 | break 2 | |
15126 | fi | |
15127 | done | |
15128 | done | |
15129 | ||
15130 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15131 | |
21d1c967 GD |
15132 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15133 | result=$? | |
15134 | if test $result = 0; then | |
15135 | ac_path_to_link="" | |
15136 | else | |
15137 | ac_path_to_link=" -L$ac_find_libraries" | |
15138 | fi | |
15139 | ||
15140 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
15141 | LDFLAGS_GL="$LDFLAGS" | |
15142 | else | |
15143 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15144 | fi | |
15145 | OPENGL_LIBS="-lGL -lGLU" | |
a0b9e27f | 15146 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15147 | else |
a0b9e27f MB |
15148 | echo "$ac_t""no" 1>&6 |
15149 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
4f57cf11 | 15150 | echo "configure:15151: checking for -lMesaGL" >&5 |
a0b9e27f | 15151 | |
21d1c967 GD |
15152 | ac_find_libraries= |
15153 | for ac_dir in $SEARCH_LIB; | |
15154 | do | |
15155 | for ac_extension in a so sl dylib; do | |
15156 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
15157 | ac_find_libraries=$ac_dir | |
15158 | break 2 | |
15159 | fi | |
15160 | done | |
15161 | done | |
15162 | ||
15163 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15164 | |
21d1c967 GD |
15165 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15166 | result=$? | |
15167 | if test $result = 0; then | |
15168 | ac_path_to_link="" | |
15169 | else | |
15170 | ac_path_to_link=" -L$ac_find_libraries" | |
15171 | fi | |
15172 | ||
15173 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15174 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
a0b9e27f | 15175 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15176 | else |
a0b9e27f | 15177 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
15178 | fi |
15179 | fi | |
a0b9e27f MB |
15180 | |
15181 | else | |
15182 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 15183 | fi |
52127426 | 15184 | |
8284b0c5 | 15185 | |
21d1c967 | 15186 | if test "x$OPENGL_LIBS" = "x"; then |
a0b9e27f | 15187 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
15188 | fi |
15189 | fi | |
90dd450c | 15190 | |
21d1c967 | 15191 | if test "$wxUSE_OPENGL" = "yes"; then |
a0b9e27f | 15192 | cat >> confdefs.h <<\EOF |
21d1c967 | 15193 | #define wxUSE_OPENGL 1 |
a0b9e27f | 15194 | EOF |
21d1c967 | 15195 | |
a0b9e27f | 15196 | cat >> confdefs.h <<\EOF |
21d1c967 | 15197 | #define wxUSE_GLCANVAS 1 |
a0b9e27f | 15198 | EOF |
21d1c967 GD |
15199 | |
15200 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
15201 | fi | |
10f2d63a | 15202 | fi |
21d1c967 GD |
15203 | |
15204 | if test -z "$TOOLKIT_VPATH" ; then | |
15205 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 15206 | fi |
21d1c967 GD |
15207 | |
15208 | if test -n "$TOOLKIT" ; then | |
15209 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
15210 | fi | |
15211 | ||
15212 | lib_unicode_suffix= | |
15213 | if test "$wxUSE_UNICODE" = "yes"; then | |
15214 | lib_unicode_suffix=u | |
90dd450c | 15215 | fi |
698dcdb6 | 15216 | |
21d1c967 GD |
15217 | lib_debug_suffix= |
15218 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
15219 | lib_debug_suffix=d | |
15220 | fi | |
698dcdb6 | 15221 | |
21d1c967 GD |
15222 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
15223 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
15224 | ||
15225 | if test "$cross_compiling" = "yes"; then | |
15226 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
15227 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
15228 | fi | |
15229 | ||
15230 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
15231 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
15232 | ||
15233 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15234 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15235 | ||
15236 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
15237 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15238 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
15239 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15240 | ||
15241 | case "${host}" in | |
15242 | *-*-cygwin* | *-*-mingw32* ) | |
15243 | ||
a0b9e27f MB |
15244 | |
15245 | ||
17234b26 | 15246 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
15247 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
15248 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
15249 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
15250 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15251 | else | |
15252 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15253 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15254 | fi | |
15255 | ;; | |
15256 | ||
15257 | *-*-darwin* ) | |
15258 | if test "$wxUSE_MAC" = 1; then | |
3bd8fb5f | 15259 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" |
21d1c967 GD |
15260 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" |
15261 | fi | |
15262 | ;; | |
15263 | esac | |
15264 | ||
15265 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
15266 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
15267 | ||
15268 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
15269 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
15270 | ||
15271 | if test "$wxUSE_OPENGL" = "yes"; then | |
15272 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
15273 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
15274 | fi | |
15275 | ||
8284b0c5 MB |
15276 | |
15277 | ||
21d1c967 GD |
15278 | if test "$wxUSE_SHARED" = "yes"; then |
15279 | case "${host}" in | |
15280 | *-pc-os2_emx | *-pc-os2-emx | \ | |
15281 | *-pc-msdosdjgpp ) | |
15282 | wxUSE_SHARED=no | |
a0b9e27f | 15283 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
15284 | ;; |
15285 | esac | |
15286 | fi | |
15287 | ||
15288 | if test "$wxUSE_SHARED" = "yes"; then | |
15289 | ||
15290 | if test "$wxUSE_OPENGL" = "yes"; then | |
15291 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
15292 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
15293 | else | |
15294 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
15295 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
15296 | fi | |
15297 | ||
15298 | if test "$GCC" = "yes"; then | |
15299 | PIC_FLAG="-fPIC" | |
15300 | fi | |
15301 | ||
15302 | SHARED_LD="${CXX} -shared -o" | |
15303 | ||
15304 | case "${host}" in | |
15305 | *-hp-hpux* ) | |
ad2622f1 | 15306 | if test "$GCC" = "yes"; then |
85d5e282 | 15307 | SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" |
21d1c967 GD |
15308 | else |
15309 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
15310 | ||
15311 | SHARED_LD="${CXX} -b -o" | |
15312 | PIC_FLAG="+Z" | |
15313 | fi | |
15314 | ||
15315 | if test "$wxUSE_OPENGL" = "yes"; then | |
15316 | WX_ALL_INSTALLED="preinstall_gl" | |
15317 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
15318 | else | |
15319 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
15320 | fi | |
15321 | ;; | |
15322 | ||
15323 | *-*-linux* ) | |
15324 | if test "$GCC" != "yes"; then | |
a0b9e27f | 15325 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
4f57cf11 | 15326 | echo "configure:15327: checking for Intel compiler" >&5 |
a0b9e27f MB |
15327 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
15328 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15329 | else | |
15330 | ||
15331 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 15332 | #line 15333 "configure" |
698dcdb6 | 15333 | #include "confdefs.h" |
90dd450c | 15334 | |
a0b9e27f | 15335 | int main() { |
90dd450c | 15336 | |
21d1c967 GD |
15337 | #ifndef __INTEL_COMPILER |
15338 | #error Not icc | |
15339 | #endif | |
a0b9e27f MB |
15340 | |
15341 | ; return 0; } | |
15342 | EOF | |
4f57cf11 | 15343 | if { (eval echo configure:15344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 15344 | rm -rf conftest* |
21d1c967 | 15345 | wx_cv_prog_icc=yes |
6232543b | 15346 | else |
a0b9e27f MB |
15347 | echo "configure: failed program was:" >&5 |
15348 | cat conftest.$ac_ext >&5 | |
15349 | rm -rf conftest* | |
15350 | wx_cv_prog_icc=no | |
15351 | ||
5c6fa7d2 | 15352 | fi |
a0b9e27f MB |
15353 | rm -f conftest* |
15354 | ||
247f5006 | 15355 | fi |
a0b9e27f MB |
15356 | |
15357 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
15358 | if test "$wx_cv_prog_icc" = "yes"; then |
15359 | PIC_FLAG="-KPIC" | |
15360 | fi | |
15361 | fi | |
15362 | ||
15363 | if test "$wxUSE_SONAME" = "yes" ; then | |
15364 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
15365 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
15366 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
15367 | fi | |
15368 | ;; | |
15369 | ||
15370 | *-*-solaris2* ) | |
15371 | if test "$GCC" = yes ; then | |
15372 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
15373 | else | |
15374 | SHARED_LD="${CXX} -G -o" | |
15375 | PIC_FLAG="-KPIC" | |
15376 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
15377 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
15378 | fi | |
15379 | ;; | |
15380 | ||
15381 | *-*-darwin* ) | |
b2fee376 GD |
15382 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL" |
15383 | CFLAGS="$CFLAGS -fno-common" | |
15384 | CXXFLAGS="$CXXFLAGS -fno-common" | |
21d1c967 GD |
15385 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" |
15386 | PIC_FLAG="-dynamic -fPIC" | |
15387 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
15388 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
15389 | ;; | |
15390 | ||
15391 | *-*-aix* ) | |
321d2b14 VZ |
15392 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. |
15393 | set dummy makeC++SharedLib; ac_word=$2 | |
a0b9e27f | 15394 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4f57cf11 | 15395 | echo "configure:15396: checking for $ac_word" >&5 |
a0b9e27f MB |
15396 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
15397 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
15398 | else |
15399 | if test -n "$AIX_CXX_LD"; then | |
15400 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
15401 | else | |
a0b9e27f MB |
15402 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15403 | ac_dummy="$PATH" | |
15404 | for ac_dir in $ac_dummy; do | |
15405 | test -z "$ac_dir" && ac_dir=. | |
15406 | if test -f $ac_dir/$ac_word; then | |
15407 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
15408 | break | |
15409 | fi | |
15410 | done | |
15411 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
15412 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
15413 | fi | |
15414 | fi | |
a0b9e27f | 15415 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 15416 | if test -n "$AIX_CXX_LD"; then |
a0b9e27f | 15417 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 15418 | else |
a0b9e27f | 15419 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
15420 | fi |
15421 | ||
8284b0c5 | 15422 | |
321d2b14 | 15423 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
21d1c967 GD |
15424 | ;; |
15425 | ||
15426 | *-*-cygwin* | *-*-mingw32* ) | |
15427 | ||
15428 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
15429 | ||
15430 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
15431 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
15432 | ||
15433 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
15434 | ||
15435 | if test "$wxUSE_OPENGL" = "yes"; then | |
15436 | WX_ALL_INSTALLED="preinstall_gl" | |
15437 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
15438 | else | |
15439 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
15440 | fi | |
15441 | ;; | |
15442 | ||
15443 | *-*-beos* ) | |
15444 | SHARED_LD="${LD} -shared -o" | |
15445 | ;; | |
15446 | ||
15447 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
15448 | *-*-sunos4* | \ | |
15449 | *-*-irix5* | *-*-irix6* | \ | |
15450 | *-*-osf* | \ | |
15451 | *-*-dgux5* | \ | |
15452 | *-*-sysv5* ) | |
15453 | ;; | |
15454 | ||
15455 | *) | |
a0b9e27f | 15456 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
15457 | esac |
15458 | ||
15459 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
15460 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
15461 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
15462 | fi | |
15463 | ||
15464 | WX_TARGET_LIBRARY_TYPE="so" | |
15465 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 15466 | fi |
10f2d63a | 15467 | |
21d1c967 GD |
15468 | if test "$wxUSE_SHARED" = "no"; then |
15469 | ||
15470 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
15471 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15472 | fi | |
15473 | ||
15474 | if test "$wxUSE_MAC" = 1; then | |
15475 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15476 | fi | |
15477 | ||
15478 | if test "$wxUSE_OPENGL" = "yes"; then | |
15479 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
15480 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
15481 | else | |
15482 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
15483 | fi | |
15484 | ||
15485 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
15486 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
15487 | ||
15488 | WX_TARGET_LIBRARY_TYPE="a" | |
15489 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
15490 | |
15491 | STATIC_FLAG="yes" | |
15492 | else | |
15493 | STATIC_FLAG="no" | |
90dd450c | 15494 | fi |
1e487827 | 15495 | |
21d1c967 GD |
15496 | if test "$wxUSE_MAC" = 1; then |
15497 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
15498 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
15499 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
15500 | # Extract the first word of "Rez", so it can be a program name with args. | |
15501 | set dummy Rez; ac_word=$2 | |
a0b9e27f | 15502 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4f57cf11 | 15503 | echo "configure:15504: checking for $ac_word" >&5 |
a0b9e27f MB |
15504 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
15505 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 15506 | else |
21d1c967 GD |
15507 | if test -n "$RESCOMP"; then |
15508 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 15509 | else |
a0b9e27f MB |
15510 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15511 | ac_dummy="$PATH" | |
15512 | for ac_dir in $ac_dummy; do | |
15513 | test -z "$ac_dir" && ac_dir=. | |
15514 | if test -f $ac_dir/$ac_word; then | |
15515 | ac_cv_prog_RESCOMP="Rez" | |
15516 | break | |
15517 | fi | |
15518 | done | |
15519 | IFS="$ac_save_ifs" | |
21d1c967 | 15520 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 15521 | fi |
b93d0d08 | 15522 | fi |
a0b9e27f | 15523 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 15524 | if test -n "$RESCOMP"; then |
a0b9e27f | 15525 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 15526 | else |
a0b9e27f | 15527 | echo "$ac_t""no" 1>&6 |
90dd450c | 15528 | fi |
b93d0d08 | 15529 | |
21d1c967 GD |
15530 | # Extract the first word of "DeRez", so it can be a program name with args. |
15531 | set dummy DeRez; ac_word=$2 | |
a0b9e27f | 15532 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4f57cf11 | 15533 | echo "configure:15534: checking for $ac_word" >&5 |
a0b9e27f MB |
15534 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
15535 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 15536 | else |
21d1c967 GD |
15537 | if test -n "$DEREZ"; then |
15538 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 15539 | else |
a0b9e27f MB |
15540 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15541 | ac_dummy="$PATH" | |
15542 | for ac_dir in $ac_dummy; do | |
15543 | test -z "$ac_dir" && ac_dir=. | |
15544 | if test -f $ac_dir/$ac_word; then | |
15545 | ac_cv_prog_DEREZ="DeRez" | |
15546 | break | |
15547 | fi | |
15548 | done | |
15549 | IFS="$ac_save_ifs" | |
21d1c967 | 15550 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 15551 | fi |
90dd450c | 15552 | fi |
a0b9e27f | 15553 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 15554 | if test -n "$DEREZ"; then |
a0b9e27f | 15555 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 15556 | else |
a0b9e27f | 15557 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 15558 | fi |
698dcdb6 | 15559 | |
21d1c967 GD |
15560 | MACOSX_BUNDLE="bundle" |
15561 | if test "$wxUSE_SHARED" = "yes"; then | |
15562 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)" | |
15563 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o" | |
15564 | else | |
15565 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
15566 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
15567 | fi | |
15568 | else | |
15569 | if test "$wxUSE_PM" = 1; then | |
15570 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
90dd450c | 15571 | fi |
4f14bcd8 | 15572 | fi |
10f2d63a | 15573 | |
8284b0c5 | 15574 | |
a0b9e27f | 15575 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
4f57cf11 | 15576 | echo "configure:15577: checking for ANSI C header files" >&5 |
a0b9e27f MB |
15577 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
15578 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 15579 | else |
a0b9e27f | 15580 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 15581 | #line 15582 "configure" |
52127426 | 15582 | #include "confdefs.h" |
a0b9e27f MB |
15583 | #include <stdlib.h> |
15584 | #include <stdarg.h> | |
15585 | #include <string.h> | |
15586 | #include <float.h> | |
15587 | EOF | |
15588 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f57cf11 | 15589 | { (eval echo configure:15590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
15590 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15591 | if test -z "$ac_err"; then | |
15592 | rm -rf conftest* | |
15593 | ac_cv_header_stdc=yes | |
15594 | else | |
15595 | echo "$ac_err" >&5 | |
15596 | echo "configure: failed program was:" >&5 | |
15597 | cat conftest.$ac_ext >&5 | |
15598 | rm -rf conftest* | |
15599 | ac_cv_header_stdc=no | |
15600 | fi | |
15601 | rm -f conftest* | |
15602 | ||
15603 | if test $ac_cv_header_stdc = yes; then | |
15604 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15605 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 15606 | #line 15607 "configure" |
a0b9e27f MB |
15607 | #include "confdefs.h" |
15608 | #include <string.h> | |
15609 | EOF | |
15610 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15611 | egrep "memchr" >/dev/null 2>&1; then | |
15612 | : | |
15613 | else | |
15614 | rm -rf conftest* | |
15615 | ac_cv_header_stdc=no | |
15616 | fi | |
15617 | rm -f conftest* | |
15618 | ||
15619 | fi | |
15620 | ||
15621 | if test $ac_cv_header_stdc = yes; then | |
15622 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15623 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 15624 | #line 15625 "configure" |
a0b9e27f MB |
15625 | #include "confdefs.h" |
15626 | #include <stdlib.h> | |
15627 | EOF | |
15628 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15629 | egrep "free" >/dev/null 2>&1; then | |
15630 | : | |
7b4a847f | 15631 | else |
a0b9e27f MB |
15632 | rm -rf conftest* |
15633 | ac_cv_header_stdc=no | |
52127426 | 15634 | fi |
a0b9e27f MB |
15635 | rm -f conftest* |
15636 | ||
52127426 | 15637 | fi |
a0b9e27f MB |
15638 | |
15639 | if test $ac_cv_header_stdc = yes; then | |
15640 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15641 | if test "$cross_compiling" = yes; then | |
247f5006 VZ |
15642 | : |
15643 | else | |
a0b9e27f | 15644 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 15645 | #line 15646 "configure" |
a0b9e27f MB |
15646 | #include "confdefs.h" |
15647 | #include <ctype.h> | |
15648 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15649 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15650 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15651 | int main () { int i; for (i = 0; i < 256; i++) | |
15652 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
15653 | exit (0); } | |
247f5006 | 15654 | |
a0b9e27f | 15655 | EOF |
4f57cf11 | 15656 | if { (eval echo configure:15657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
15657 | then |
15658 | : | |
15659 | else | |
15660 | echo "configure: failed program was:" >&5 | |
15661 | cat conftest.$ac_ext >&5 | |
15662 | rm -fr conftest* | |
15663 | ac_cv_header_stdc=no | |
15664 | fi | |
15665 | rm -fr conftest* | |
15666 | fi | |
15667 | ||
15668 | fi | |
15669 | fi | |
15670 | ||
15671 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
15672 | if test $ac_cv_header_stdc = yes; then | |
15673 | cat >> confdefs.h <<\EOF | |
15674 | #define STDC_HEADERS 1 | |
15675 | EOF | |
8284b0c5 MB |
15676 | |
15677 | fi | |
15678 | ||
a0b9e27f | 15679 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
4f57cf11 | 15680 | echo "configure:15681: checking for mode_t" >&5 |
a0b9e27f MB |
15681 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
15682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 15683 | else |
a0b9e27f | 15684 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 15685 | #line 15686 "configure" |
8284b0c5 | 15686 | #include "confdefs.h" |
a0b9e27f MB |
15687 | #include <sys/types.h> |
15688 | #if STDC_HEADERS | |
15689 | #include <stdlib.h> | |
15690 | #include <stddef.h> | |
8284b0c5 | 15691 | #endif |
a0b9e27f MB |
15692 | EOF |
15693 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15694 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15695 | rm -rf conftest* | |
15696 | ac_cv_type_mode_t=yes | |
5c6fa7d2 | 15697 | else |
a0b9e27f MB |
15698 | rm -rf conftest* |
15699 | ac_cv_type_mode_t=no | |
15700 | fi | |
15701 | rm -f conftest* | |
15702 | ||
8284b0c5 | 15703 | fi |
a0b9e27f MB |
15704 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
15705 | if test $ac_cv_type_mode_t = no; then | |
15706 | cat >> confdefs.h <<\EOF | |
15707 | #define mode_t int | |
15708 | EOF | |
15709 | ||
8284b0c5 | 15710 | fi |
a0b9e27f MB |
15711 | |
15712 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
4f57cf11 | 15713 | echo "configure:15714: checking for off_t" >&5 |
a0b9e27f MB |
15714 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
15715 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15716 | else | |
15717 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 15718 | #line 15719 "configure" |
a0b9e27f MB |
15719 | #include "confdefs.h" |
15720 | #include <sys/types.h> | |
15721 | #if STDC_HEADERS | |
15722 | #include <stdlib.h> | |
15723 | #include <stddef.h> | |
15724 | #endif | |
15725 | EOF | |
15726 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15727 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15728 | rm -rf conftest* | |
15729 | ac_cv_type_off_t=yes | |
247f5006 | 15730 | else |
a0b9e27f MB |
15731 | rm -rf conftest* |
15732 | ac_cv_type_off_t=no | |
15733 | fi | |
15734 | rm -f conftest* | |
247f5006 | 15735 | |
a0b9e27f MB |
15736 | fi |
15737 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
15738 | if test $ac_cv_type_off_t = no; then | |
15739 | cat >> confdefs.h <<\EOF | |
90dd450c | 15740 | #define off_t long |
a0b9e27f | 15741 | EOF |
10f2d63a | 15742 | |
90dd450c | 15743 | fi |
10f2d63a | 15744 | |
a0b9e27f | 15745 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
4f57cf11 | 15746 | echo "configure:15747: checking for pid_t" >&5 |
a0b9e27f MB |
15747 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
15748 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 15749 | else |
a0b9e27f | 15750 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 15751 | #line 15752 "configure" |
10f2d63a | 15752 | #include "confdefs.h" |
a0b9e27f MB |
15753 | #include <sys/types.h> |
15754 | #if STDC_HEADERS | |
15755 | #include <stdlib.h> | |
15756 | #include <stddef.h> | |
8284b0c5 | 15757 | #endif |
a0b9e27f MB |
15758 | EOF |
15759 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15760 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15761 | rm -rf conftest* | |
90dd450c | 15762 | ac_cv_type_pid_t=yes |
698dcdb6 | 15763 | else |
a0b9e27f MB |
15764 | rm -rf conftest* |
15765 | ac_cv_type_pid_t=no | |
8284b0c5 | 15766 | fi |
a0b9e27f | 15767 | rm -f conftest* |
247f5006 | 15768 | |
a0b9e27f MB |
15769 | fi |
15770 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
15771 | if test $ac_cv_type_pid_t = no; then | |
15772 | cat >> confdefs.h <<\EOF | |
90dd450c | 15773 | #define pid_t int |
a0b9e27f | 15774 | EOF |
10f2d63a | 15775 | |
7b4a847f RR |
15776 | fi |
15777 | ||
a0b9e27f | 15778 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
4f57cf11 | 15779 | echo "configure:15780: checking for size_t" >&5 |
a0b9e27f MB |
15780 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
15781 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 15782 | else |
a0b9e27f | 15783 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 15784 | #line 15785 "configure" |
7b4a847f | 15785 | #include "confdefs.h" |
a0b9e27f MB |
15786 | #include <sys/types.h> |
15787 | #if STDC_HEADERS | |
15788 | #include <stdlib.h> | |
15789 | #include <stddef.h> | |
8284b0c5 | 15790 | #endif |
a0b9e27f MB |
15791 | EOF |
15792 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15793 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15794 | rm -rf conftest* | |
90dd450c | 15795 | ac_cv_type_size_t=yes |
18dbb1f6 | 15796 | else |
a0b9e27f MB |
15797 | rm -rf conftest* |
15798 | ac_cv_type_size_t=no | |
52127426 | 15799 | fi |
a0b9e27f | 15800 | rm -f conftest* |
247f5006 | 15801 | |
a0b9e27f MB |
15802 | fi |
15803 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
15804 | if test $ac_cv_type_size_t = no; then | |
15805 | cat >> confdefs.h <<\EOF | |
90dd450c | 15806 | #define size_t unsigned |
a0b9e27f | 15807 | EOF |
90dd450c VZ |
15808 | |
15809 | fi | |
15810 | ||
a0b9e27f | 15811 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
4f57cf11 | 15812 | echo "configure:15813: checking for uid_t in sys/types.h" >&5 |
a0b9e27f MB |
15813 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
15814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 15815 | else |
a0b9e27f | 15816 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 15817 | #line 15818 "configure" |
b3e8d00a | 15818 | #include "confdefs.h" |
90dd450c | 15819 | #include <sys/types.h> |
a0b9e27f | 15820 | EOF |
90dd450c VZ |
15821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15822 | egrep "uid_t" >/dev/null 2>&1; then | |
a0b9e27f | 15823 | rm -rf conftest* |
90dd450c | 15824 | ac_cv_type_uid_t=yes |
b3e8d00a | 15825 | else |
a0b9e27f | 15826 | rm -rf conftest* |
90dd450c | 15827 | ac_cv_type_uid_t=no |
b3e8d00a | 15828 | fi |
90dd450c | 15829 | rm -f conftest* |
b3e8d00a | 15830 | |
4f14bcd8 | 15831 | fi |
247f5006 | 15832 | |
a0b9e27f MB |
15833 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
15834 | if test $ac_cv_type_uid_t = no; then | |
15835 | cat >> confdefs.h <<\EOF | |
90dd450c | 15836 | #define uid_t int |
a0b9e27f | 15837 | EOF |
247f5006 | 15838 | |
a0b9e27f | 15839 | cat >> confdefs.h <<\EOF |
90dd450c | 15840 | #define gid_t int |
a0b9e27f | 15841 | EOF |
4f14bcd8 | 15842 | |
b3e8d00a | 15843 | fi |
b3e8d00a | 15844 | |
8284b0c5 MB |
15845 | |
15846 | ||
a0b9e27f MB |
15847 | ac_ext=C |
15848 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 15849 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
15850 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15851 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15852 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c | 15853 | |
a0b9e27f | 15854 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
4f57cf11 | 15855 | echo "configure:15856: checking if size_t is unsigned int" >&5 |
a0b9e27f MB |
15856 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
15857 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 15858 | else |
a0b9e27f | 15859 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 15860 | #line 15861 "configure" |
10f2d63a | 15861 | #include "confdefs.h" |
90dd450c | 15862 | #include <stddef.h> |
a0b9e27f | 15863 | int main() { |
90dd450c VZ |
15864 | |
15865 | return 0; } | |
15866 | ||
15867 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
15868 | ||
15869 | int bar() { | |
a0b9e27f MB |
15870 | |
15871 | ; return 0; } | |
15872 | EOF | |
4f57cf11 | 15873 | if { (eval echo configure:15874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 15874 | rm -rf conftest* |
90dd450c | 15875 | wx_cv_size_t_is_uint=no |
698dcdb6 | 15876 | else |
a0b9e27f MB |
15877 | echo "configure: failed program was:" >&5 |
15878 | cat conftest.$ac_ext >&5 | |
15879 | rm -rf conftest* | |
15880 | wx_cv_size_t_is_uint=yes | |
15881 | ||
5c6fa7d2 | 15882 | fi |
a0b9e27f | 15883 | rm -f conftest* |
8284b0c5 | 15884 | |
247f5006 | 15885 | fi |
a0b9e27f MB |
15886 | |
15887 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 15888 | |
90dd450c | 15889 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
a0b9e27f | 15890 | cat >> confdefs.h <<\EOF |
90dd450c | 15891 | #define wxSIZE_T_IS_UINT 1 |
a0b9e27f | 15892 | EOF |
698dcdb6 | 15893 | |
90dd450c | 15894 | else |
a0b9e27f | 15895 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
4f57cf11 | 15896 | echo "configure:15897: checking if size_t is unsigned long" >&5 |
a0b9e27f MB |
15897 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
15898 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 15899 | else |
a0b9e27f | 15900 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 15901 | #line 15902 "configure" |
10f2d63a | 15902 | #include "confdefs.h" |
90dd450c | 15903 | #include <stddef.h> |
a0b9e27f | 15904 | int main() { |
90dd450c VZ |
15905 | |
15906 | return 0; } | |
15907 | ||
15908 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
15909 | ||
15910 | int bar() { | |
a0b9e27f MB |
15911 | |
15912 | ; return 0; } | |
15913 | EOF | |
4f57cf11 | 15914 | if { (eval echo configure:15915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 15915 | rm -rf conftest* |
90dd450c | 15916 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 15917 | else |
a0b9e27f MB |
15918 | echo "configure: failed program was:" >&5 |
15919 | cat conftest.$ac_ext >&5 | |
15920 | rm -rf conftest* | |
15921 | wx_cv_size_t_is_ulong=yes | |
15922 | ||
5c6fa7d2 | 15923 | fi |
a0b9e27f MB |
15924 | rm -f conftest* |
15925 | ||
247f5006 | 15926 | fi |
a0b9e27f MB |
15927 | |
15928 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 15929 | |
90dd450c | 15930 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
a0b9e27f | 15931 | cat >> confdefs.h <<\EOF |
90dd450c | 15932 | #define wxSIZE_T_IS_ULONG 1 |
a0b9e27f | 15933 | EOF |
4f14bcd8 GD |
15934 | |
15935 | fi | |
90dd450c | 15936 | fi |
1e487827 | 15937 | |
90dd450c | 15938 | ac_ext=c |
a0b9e27f | 15939 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 15940 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
15941 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15942 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15943 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 15944 | |
5c6fa7d2 | 15945 | |
8284b0c5 | 15946 | |
a0b9e27f | 15947 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
4f57cf11 | 15948 | echo "configure:15949: checking for pw_gecos in struct passwd" >&5 |
a0b9e27f MB |
15949 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
15950 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 15951 | else |
a0b9e27f MB |
15952 | |
15953 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 15954 | #line 15955 "configure" |
4f14bcd8 | 15955 | #include "confdefs.h" |
90dd450c | 15956 | #include <pwd.h> |
a0b9e27f | 15957 | int main() { |
f6bcfd97 | 15958 | |
90dd450c VZ |
15959 | char *p; |
15960 | struct passwd *pw; | |
15961 | p = pw->pw_gecos; | |
a0b9e27f MB |
15962 | |
15963 | ; return 0; } | |
15964 | EOF | |
4f57cf11 | 15965 | if { (eval echo configure:15966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15966 | rm -rf conftest* |
15967 | ||
90dd450c | 15968 | wx_cv_struct_pw_gecos=yes |
a0b9e27f | 15969 | |
10f2d63a | 15970 | else |
a0b9e27f MB |
15971 | echo "configure: failed program was:" >&5 |
15972 | cat conftest.$ac_ext >&5 | |
15973 | rm -rf conftest* | |
15974 | ||
90dd450c | 15975 | wx_cv_struct_pw_gecos=no |
a0b9e27f MB |
15976 | |
15977 | ||
5c6fa7d2 | 15978 | fi |
a0b9e27f MB |
15979 | rm -f conftest* |
15980 | ||
247f5006 VZ |
15981 | |
15982 | fi | |
a0b9e27f MB |
15983 | |
15984 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 15985 | |
90dd450c | 15986 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
a0b9e27f | 15987 | cat >> confdefs.h <<\EOF |
90dd450c | 15988 | #define HAVE_PW_GECOS 1 |
a0b9e27f | 15989 | EOF |
c521c494 | 15990 | |
90dd450c | 15991 | fi |
4f14bcd8 | 15992 | |
8284b0c5 | 15993 | |
d29b553b | 15994 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
a0b9e27f | 15995 | cat >> confdefs.h <<\EOF |
d74f4b5a | 15996 | #define wxUSE_WCHAR_T 1 |
a0b9e27f | 15997 | EOF |
d74f4b5a | 15998 | |
8284b0c5 | 15999 | |
d74f4b5a VZ |
16000 | WCSLEN_FOUND=0 |
16001 | WCHAR_LINK= | |
a0b9e27f | 16002 | for ac_func in wcslen |
7a30264c | 16003 | do |
a0b9e27f | 16004 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 16005 | echo "configure:16006: checking for $ac_func" >&5 |
a0b9e27f MB |
16006 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16008 | else | |
16009 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 16010 | #line 16011 "configure" |
4f14bcd8 | 16011 | #include "confdefs.h" |
7a30264c | 16012 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16013 | which can conflict with char $ac_func(); below. */ |
7a30264c | 16014 | #include <assert.h> |
4f14bcd8 GD |
16015 | /* Override any gcc2 internal prototype to avoid an error. */ |
16016 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16017 | builtin and then its argument prototype would still apply. */ |
16018 | char $ac_func(); | |
16019 | ||
16020 | int main() { | |
16021 | ||
7a30264c VZ |
16022 | /* The GNU C library defines this for functions which it implements |
16023 | to always fail with ENOSYS. Some functions are actually named | |
16024 | something starting with __ and the normal name is an alias. */ | |
16025 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16026 | choke me | |
16027 | #else | |
a0b9e27f | 16028 | $ac_func(); |
7a30264c VZ |
16029 | #endif |
16030 | ||
a0b9e27f MB |
16031 | ; return 0; } |
16032 | EOF | |
4f57cf11 | 16033 | if { (eval echo configure:16034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16034 | rm -rf conftest* |
16035 | eval "ac_cv_func_$ac_func=yes" | |
16036 | else | |
16037 | echo "configure: failed program was:" >&5 | |
16038 | cat conftest.$ac_ext >&5 | |
16039 | rm -rf conftest* | |
16040 | eval "ac_cv_func_$ac_func=no" | |
16041 | fi | |
16042 | rm -f conftest* | |
16043 | fi | |
16044 | ||
16045 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16046 | echo "$ac_t""yes" 1>&6 | |
16047 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16048 | cat >> confdefs.h <<EOF | |
16049 | #define $ac_tr_func 1 | |
16050 | EOF | |
d74f4b5a | 16051 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16052 | else |
16053 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
16054 | fi |
16055 | done | |
9d8deca0 | 16056 | |
8284b0c5 | 16057 | |
d74f4b5a | 16058 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 16059 | if test "$TOOLKIT" = "MSW"; then |
a0b9e27f | 16060 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
4f57cf11 | 16061 | echo "configure:16062: checking for wcslen in -lmsvcrt" >&5 |
a0b9e27f MB |
16062 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
16063 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16065 | else |
a0b9e27f | 16066 | ac_save_LIBS="$LIBS" |
7a30264c | 16067 | LIBS="-lmsvcrt $LIBS" |
a0b9e27f | 16068 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 16069 | #line 16070 "configure" |
10f2d63a | 16070 | #include "confdefs.h" |
4f14bcd8 GD |
16071 | /* Override any gcc2 internal prototype to avoid an error. */ |
16072 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16073 | builtin and then its argument prototype would still apply. */ |
16074 | char wcslen(); | |
16075 | ||
16076 | int main() { | |
16077 | wcslen() | |
16078 | ; return 0; } | |
16079 | EOF | |
4f57cf11 | 16080 | if { (eval echo configure:16081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16081 | rm -rf conftest* |
16082 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16083 | else | |
16084 | echo "configure: failed program was:" >&5 | |
16085 | cat conftest.$ac_ext >&5 | |
16086 | rm -rf conftest* | |
16087 | eval "ac_cv_lib_$ac_lib_var=no" | |
16088 | fi | |
16089 | rm -f conftest* | |
16090 | LIBS="$ac_save_LIBS" | |
16091 | ||
16092 | fi | |
16093 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16094 | echo "$ac_t""yes" 1>&6 | |
d74f4b5a | 16095 | WCHAR_OK=1 |
a0b9e27f MB |
16096 | else |
16097 | echo "$ac_t""no" 1>&6 | |
d29b553b | 16098 | fi |
698dcdb6 | 16099 | |
7a30264c | 16100 | else |
a0b9e27f | 16101 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
4f57cf11 | 16102 | echo "configure:16103: checking for wcslen in -lw" >&5 |
a0b9e27f MB |
16103 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
16104 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16106 | else |
a0b9e27f | 16107 | ac_save_LIBS="$LIBS" |
7a30264c | 16108 | LIBS="-lw $LIBS" |
a0b9e27f | 16109 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 16110 | #line 16111 "configure" |
95c8801c | 16111 | #include "confdefs.h" |
4f14bcd8 GD |
16112 | /* Override any gcc2 internal prototype to avoid an error. */ |
16113 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16114 | builtin and then its argument prototype would still apply. */ |
16115 | char wcslen(); | |
52127426 | 16116 | |
a0b9e27f MB |
16117 | int main() { |
16118 | wcslen() | |
16119 | ; return 0; } | |
16120 | EOF | |
4f57cf11 | 16121 | if { (eval echo configure:16122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16122 | rm -rf conftest* |
16123 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16124 | else | |
16125 | echo "configure: failed program was:" >&5 | |
16126 | cat conftest.$ac_ext >&5 | |
16127 | rm -rf conftest* | |
16128 | eval "ac_cv_lib_$ac_lib_var=no" | |
16129 | fi | |
16130 | rm -f conftest* | |
16131 | LIBS="$ac_save_LIBS" | |
16132 | ||
16133 | fi | |
16134 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16135 | echo "$ac_t""yes" 1>&6 | |
16136 | ||
7a30264c | 16137 | WCHAR_LINK=" -lw" |
d74f4b5a | 16138 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16139 | |
16140 | else | |
16141 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16142 | fi |
10f2d63a | 16143 | |
7a30264c | 16144 | fi |
d29b553b | 16145 | fi |
95c8801c | 16146 | |
d74f4b5a | 16147 | if test "$WCSLEN_FOUND" = 1; then |
a0b9e27f | 16148 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16149 | #define HAVE_WCSLEN 1 |
a0b9e27f | 16150 | EOF |
10f2d63a | 16151 | |
d74f4b5a | 16152 | fi |
52127426 | 16153 | |
a0b9e27f | 16154 | for ac_func in wcsrtombs |
eb4efbdc | 16155 | do |
a0b9e27f | 16156 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 16157 | echo "configure:16158: checking for $ac_func" >&5 |
a0b9e27f MB |
16158 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16159 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16160 | else | |
16161 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 16162 | #line 16163 "configure" |
eb4efbdc VZ |
16163 | #include "confdefs.h" |
16164 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16165 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
16166 | #include <assert.h> |
16167 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4f14bcd8 | 16168 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16169 | builtin and then its argument prototype would still apply. */ |
16170 | char $ac_func(); | |
16171 | ||
16172 | int main() { | |
16173 | ||
10f2d63a VZ |
16174 | /* The GNU C library defines this for functions which it implements |
16175 | to always fail with ENOSYS. Some functions are actually named | |
16176 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 16177 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
16178 | choke me |
16179 | #else | |
a0b9e27f | 16180 | $ac_func(); |
10f2d63a VZ |
16181 | #endif |
16182 | ||
a0b9e27f MB |
16183 | ; return 0; } |
16184 | EOF | |
4f57cf11 | 16185 | if { (eval echo configure:16186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16186 | rm -rf conftest* |
16187 | eval "ac_cv_func_$ac_func=yes" | |
16188 | else | |
16189 | echo "configure: failed program was:" >&5 | |
16190 | cat conftest.$ac_ext >&5 | |
16191 | rm -rf conftest* | |
16192 | eval "ac_cv_func_$ac_func=no" | |
16193 | fi | |
16194 | rm -f conftest* | |
16195 | fi | |
270a909e | 16196 | |
a0b9e27f MB |
16197 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16198 | echo "$ac_t""yes" 1>&6 | |
16199 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16200 | cat >> confdefs.h <<EOF | |
16201 | #define $ac_tr_func 1 | |
16202 | EOF | |
16203 | ||
16204 | else | |
16205 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16206 | fi |
247f5006 | 16207 | done |
1e487827 | 16208 | |
af15babd | 16209 | else |
a0b9e27f | 16210 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
7b4a847f | 16211 | fi |
52127426 | 16212 | |
8284b0c5 | 16213 | |
a0b9e27f MB |
16214 | ac_ext=C |
16215 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
247f5006 | 16216 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16217 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16218 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16219 | cross_compiling=$ac_cv_prog_cxx_cross | |
af15babd | 16220 | |
247f5006 VZ |
16221 | |
16222 | for ac_func in vsnprintf | |
16223 | do | |
a0b9e27f | 16224 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 16225 | echo "configure:16226: checking for $ac_func" >&5 |
a0b9e27f MB |
16226 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16227 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16228 | else | |
16229 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 16230 | #line 16231 "configure" |
af15babd | 16231 | #include "confdefs.h" |
247f5006 | 16232 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16233 | which can conflict with char $ac_func(); below. */ |
247f5006 VZ |
16234 | #include <assert.h> |
16235 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16236 | #ifdef __cplusplus | |
16237 | extern "C" | |
16238 | #endif | |
16239 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16240 | builtin and then its argument prototype would still apply. */ |
16241 | char $ac_func(); | |
16242 | ||
16243 | int main() { | |
16244 | ||
247f5006 VZ |
16245 | /* The GNU C library defines this for functions which it implements |
16246 | to always fail with ENOSYS. Some functions are actually named | |
16247 | something starting with __ and the normal name is an alias. */ | |
16248 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16249 | choke me | |
16250 | #else | |
a0b9e27f | 16251 | $ac_func(); |
247f5006 | 16252 | #endif |
af15babd | 16253 | |
a0b9e27f MB |
16254 | ; return 0; } |
16255 | EOF | |
4f57cf11 | 16256 | if { (eval echo configure:16257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16257 | rm -rf conftest* |
16258 | eval "ac_cv_func_$ac_func=yes" | |
16259 | else | |
16260 | echo "configure: failed program was:" >&5 | |
16261 | cat conftest.$ac_ext >&5 | |
16262 | rm -rf conftest* | |
16263 | eval "ac_cv_func_$ac_func=no" | |
16264 | fi | |
16265 | rm -f conftest* | |
16266 | fi | |
52127426 | 16267 | |
a0b9e27f MB |
16268 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16269 | echo "$ac_t""yes" 1>&6 | |
16270 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16271 | cat >> confdefs.h <<EOF | |
16272 | #define $ac_tr_func 1 | |
16273 | EOF | |
16274 | ||
16275 | else | |
16276 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 16277 | fi |
247f5006 | 16278 | done |
8284b0c5 | 16279 | |
4f14bcd8 | 16280 | |
247f5006 | 16281 | if test "$wxUSE_UNICODE" = yes; then |
a0b9e27f | 16282 | for ac_func in fputwc wprintf vswprintf |
d74f4b5a | 16283 | do |
a0b9e27f | 16284 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 16285 | echo "configure:16286: checking for $ac_func" >&5 |
a0b9e27f MB |
16286 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16287 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16288 | else | |
16289 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 16290 | #line 16291 "configure" |
d74f4b5a VZ |
16291 | #include "confdefs.h" |
16292 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16293 | which can conflict with char $ac_func(); below. */ |
d74f4b5a VZ |
16294 | #include <assert.h> |
16295 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
16296 | #ifdef __cplusplus |
16297 | extern "C" | |
16298 | #endif | |
d74f4b5a | 16299 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16300 | builtin and then its argument prototype would still apply. */ |
16301 | char $ac_func(); | |
16302 | ||
16303 | int main() { | |
16304 | ||
d74f4b5a VZ |
16305 | /* The GNU C library defines this for functions which it implements |
16306 | to always fail with ENOSYS. Some functions are actually named | |
16307 | something starting with __ and the normal name is an alias. */ | |
16308 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16309 | choke me | |
16310 | #else | |
a0b9e27f | 16311 | $ac_func(); |
d74f4b5a VZ |
16312 | #endif |
16313 | ||
a0b9e27f MB |
16314 | ; return 0; } |
16315 | EOF | |
4f57cf11 | 16316 | if { (eval echo configure:16317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16317 | rm -rf conftest* |
16318 | eval "ac_cv_func_$ac_func=yes" | |
16319 | else | |
16320 | echo "configure: failed program was:" >&5 | |
16321 | cat conftest.$ac_ext >&5 | |
16322 | rm -rf conftest* | |
16323 | eval "ac_cv_func_$ac_func=no" | |
16324 | fi | |
16325 | rm -f conftest* | |
16326 | fi | |
d74f4b5a | 16327 | |
a0b9e27f MB |
16328 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16329 | echo "$ac_t""yes" 1>&6 | |
16330 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16331 | cat >> confdefs.h <<EOF | |
16332 | #define $ac_tr_func 1 | |
16333 | EOF | |
16334 | ||
16335 | else | |
16336 | echo "$ac_t""no" 1>&6 | |
d74f4b5a VZ |
16337 | fi |
16338 | done | |
16339 | ||
16340 | fi | |
16341 | ||
247f5006 | 16342 | ac_ext=c |
a0b9e27f | 16343 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
247f5006 | 16344 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16345 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16346 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16347 | cross_compiling=$ac_cv_prog_cc_cross | |
247f5006 VZ |
16348 | |
16349 | ||
16350 | ||
16351 | ||
4f14bcd8 | 16352 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 16353 | |
8284b0c5 MB |
16354 | |
16355 | ||
a0b9e27f MB |
16356 | ac_ext=C |
16357 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16358 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16359 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16360 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16361 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 16362 | |
52127426 | 16363 | |
a0b9e27f MB |
16364 | |
16365 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
16366 | if test "${with_libiconv_prefix+set}" = set; then |
16367 | withval="$with_libiconv_prefix" | |
a0b9e27f | 16368 | |
b040e242 VS |
16369 | for dir in `echo "$withval" | tr : ' '`; do |
16370 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
16371 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
16372 | done | |
a0b9e27f MB |
16373 | |
16374 | fi | |
b040e242 VS |
16375 | |
16376 | ||
a0b9e27f | 16377 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
4f57cf11 | 16378 | echo "configure:16379: checking for iconv" >&5 |
a0b9e27f MB |
16379 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
16380 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 16381 | else |
a0b9e27f | 16382 | |
b040e242 VS |
16383 | am_cv_func_iconv="no, consider installing GNU libiconv" |
16384 | am_cv_lib_iconv=no | |
a0b9e27f | 16385 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 16386 | #line 16387 "configure" |
af15babd | 16387 | #include "confdefs.h" |
b040e242 | 16388 | #include <stdlib.h> |
4f14bcd8 | 16389 | #include <iconv.h> |
a0b9e27f | 16390 | int main() { |
b040e242 VS |
16391 | iconv_t cd = iconv_open("",""); |
16392 | iconv(cd,NULL,NULL,NULL,NULL); | |
16393 | iconv_close(cd); | |
a0b9e27f MB |
16394 | ; return 0; } |
16395 | EOF | |
4f57cf11 | 16396 | if { (eval echo configure:16397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 16397 | rm -rf conftest* |
b040e242 | 16398 | am_cv_func_iconv=yes |
af15babd | 16399 | else |
a0b9e27f MB |
16400 | echo "configure: failed program was:" >&5 |
16401 | cat conftest.$ac_ext >&5 | |
b040e242 | 16402 | fi |
a0b9e27f | 16403 | rm -f conftest* |
b040e242 VS |
16404 | if test "$am_cv_func_iconv" != yes; then |
16405 | am_save_LIBS="$LIBS" | |
16406 | LIBS="$LIBS -liconv" | |
a0b9e27f | 16407 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 16408 | #line 16409 "configure" |
b040e242 VS |
16409 | #include "confdefs.h" |
16410 | #include <stdlib.h> | |
16411 | #include <iconv.h> | |
a0b9e27f | 16412 | int main() { |
b040e242 VS |
16413 | iconv_t cd = iconv_open("",""); |
16414 | iconv(cd,NULL,NULL,NULL,NULL); | |
16415 | iconv_close(cd); | |
a0b9e27f MB |
16416 | ; return 0; } |
16417 | EOF | |
4f57cf11 | 16418 | if { (eval echo configure:16419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 16419 | rm -rf conftest* |
b040e242 VS |
16420 | am_cv_lib_iconv=yes |
16421 | am_cv_func_iconv=yes | |
16422 | else | |
a0b9e27f MB |
16423 | echo "configure: failed program was:" >&5 |
16424 | cat conftest.$ac_ext >&5 | |
af15babd | 16425 | fi |
a0b9e27f | 16426 | rm -f conftest* |
b040e242 VS |
16427 | LIBS="$am_save_LIBS" |
16428 | fi | |
a0b9e27f | 16429 | |
247f5006 | 16430 | fi |
247f5006 | 16431 | |
a0b9e27f MB |
16432 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
16433 | if test "$am_cv_func_iconv" = yes; then | |
16434 | cat >> confdefs.h <<\EOF | |
b040e242 | 16435 | #define HAVE_ICONV 1 |
a0b9e27f | 16436 | EOF |
b040e242 | 16437 | |
a0b9e27f | 16438 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
4f57cf11 | 16439 | echo "configure:16440: checking if iconv needs const" >&5 |
a0b9e27f MB |
16440 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
16441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 16442 | else |
a0b9e27f | 16443 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 16444 | #line 16445 "configure" |
b040e242 VS |
16445 | #include "confdefs.h" |
16446 | ||
16447 | #include <stdlib.h> | |
16448 | #include <iconv.h> | |
16449 | extern | |
16450 | #ifdef __cplusplus | |
16451 | "C" | |
16452 | #endif | |
16453 | #if defined(__STDC__) || defined(__cplusplus) | |
16454 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
16455 | #else | |
16456 | size_t iconv(); | |
16457 | #endif | |
a0b9e27f MB |
16458 | |
16459 | int main() { | |
af15babd | 16460 | |
a0b9e27f MB |
16461 | ; return 0; } |
16462 | EOF | |
4f57cf11 | 16463 | if { (eval echo configure:16464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16464 | rm -rf conftest* |
b7043674 | 16465 | wx_cv_func_iconv_const="no" |
b040e242 | 16466 | else |
a0b9e27f MB |
16467 | echo "configure: failed program was:" >&5 |
16468 | cat conftest.$ac_ext >&5 | |
16469 | rm -rf conftest* | |
16470 | wx_cv_func_iconv_const="yes" | |
16471 | ||
5c6fa7d2 | 16472 | fi |
a0b9e27f MB |
16473 | rm -f conftest* |
16474 | ||
247f5006 | 16475 | fi |
a0b9e27f MB |
16476 | |
16477 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
16478 | |
16479 | iconv_const= | |
1c405bb5 | 16480 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
16481 | iconv_const="const" |
16482 | fi | |
16483 | ||
a0b9e27f | 16484 | cat >> confdefs.h <<EOF |
f09359cf | 16485 | #define ICONV_CONST $iconv_const |
a0b9e27f | 16486 | EOF |
b040e242 VS |
16487 | |
16488 | fi | |
16489 | LIBICONV= | |
16490 | if test "$am_cv_lib_iconv" = yes; then | |
16491 | LIBICONV="-liconv" | |
16492 | fi | |
a0b9e27f | 16493 | |
b040e242 VS |
16494 | |
16495 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 16496 | ac_ext=c |
a0b9e27f | 16497 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16498 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16499 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16500 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16501 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 16502 | |
5c6fa7d2 | 16503 | |
8284b0c5 | 16504 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 16505 | for ac_func in sigaction |
af15babd | 16506 | do |
a0b9e27f | 16507 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 16508 | echo "configure:16509: checking for $ac_func" >&5 |
a0b9e27f MB |
16509 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16510 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16511 | else | |
16512 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 16513 | #line 16514 "configure" |
af15babd VZ |
16514 | #include "confdefs.h" |
16515 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16516 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16517 | #include <assert.h> |
16518 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16519 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16520 | builtin and then its argument prototype would still apply. */ |
16521 | char $ac_func(); | |
16522 | ||
16523 | int main() { | |
16524 | ||
af15babd VZ |
16525 | /* The GNU C library defines this for functions which it implements |
16526 | to always fail with ENOSYS. Some functions are actually named | |
16527 | something starting with __ and the normal name is an alias. */ | |
16528 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16529 | choke me | |
16530 | #else | |
a0b9e27f | 16531 | $ac_func(); |
af15babd VZ |
16532 | #endif |
16533 | ||
a0b9e27f MB |
16534 | ; return 0; } |
16535 | EOF | |
4f57cf11 | 16536 | if { (eval echo configure:16537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16537 | rm -rf conftest* |
16538 | eval "ac_cv_func_$ac_func=yes" | |
16539 | else | |
16540 | echo "configure: failed program was:" >&5 | |
16541 | cat conftest.$ac_ext >&5 | |
16542 | rm -rf conftest* | |
16543 | eval "ac_cv_func_$ac_func=no" | |
16544 | fi | |
16545 | rm -f conftest* | |
16546 | fi | |
7b4a847f | 16547 | |
a0b9e27f MB |
16548 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16549 | echo "$ac_t""yes" 1>&6 | |
16550 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16551 | cat >> confdefs.h <<EOF | |
16552 | #define $ac_tr_func 1 | |
16553 | EOF | |
16554 | ||
16555 | else | |
16556 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16557 | fi |
16558 | done | |
16559 | ||
8284b0c5 | 16560 | |
4f14bcd8 | 16561 | if test "$ac_cv_func_sigaction" = "no"; then |
a0b9e27f | 16562 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
16563 | wxUSE_ON_FATAL_EXCEPTION=no |
16564 | fi | |
16565 | ||
16566 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a0b9e27f MB |
16567 | |
16568 | ac_ext=C | |
16569 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 16570 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16571 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16572 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16573 | cross_compiling=$ac_cv_prog_cxx_cross | |
7b4a847f | 16574 | |
5c6fa7d2 | 16575 | |
a0b9e27f | 16576 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
4f57cf11 | 16577 | echo "configure:16578: checking for sa_handler type" >&5 |
a0b9e27f MB |
16578 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
16579 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16580 | else |
a0b9e27f MB |
16581 | |
16582 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 16583 | #line 16584 "configure" |
af15babd | 16584 | #include "confdefs.h" |
4f14bcd8 | 16585 | #include <signal.h> |
a0b9e27f | 16586 | int main() { |
4f14bcd8 GD |
16587 | |
16588 | extern void testSigHandler(int); | |
16589 | ||
16590 | struct sigaction sa; | |
16591 | sa.sa_handler = testSigHandler; | |
a0b9e27f MB |
16592 | |
16593 | ; return 0; } | |
16594 | EOF | |
4f57cf11 | 16595 | if { (eval echo configure:16596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16596 | rm -rf conftest* |
16597 | ||
4f14bcd8 | 16598 | wx_cv_type_sa_handler=int |
a0b9e27f | 16599 | |
af15babd | 16600 | else |
a0b9e27f MB |
16601 | echo "configure: failed program was:" >&5 |
16602 | cat conftest.$ac_ext >&5 | |
16603 | rm -rf conftest* | |
16604 | ||
4f14bcd8 | 16605 | wx_cv_type_sa_handler=void |
a0b9e27f | 16606 | |
5c6fa7d2 | 16607 | fi |
a0b9e27f MB |
16608 | rm -f conftest* |
16609 | ||
247f5006 | 16610 | fi |
a0b9e27f MB |
16611 | |
16612 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
16613 | |
16614 | ac_ext=c | |
a0b9e27f | 16615 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16616 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16617 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16618 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16619 | cross_compiling=$ac_cv_prog_cc_cross | |
579d8138 | 16620 | |
8284b0c5 | 16621 | |
a0b9e27f | 16622 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16623 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
a0b9e27f | 16624 | EOF |
af15babd | 16625 | |
4f14bcd8 GD |
16626 | fi |
16627 | fi | |
af15babd | 16628 | |
a1d22ad7 | 16629 | for ac_func in mkstemp mktemp |
af15babd | 16630 | do |
a0b9e27f | 16631 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 16632 | echo "configure:16633: checking for $ac_func" >&5 |
a0b9e27f MB |
16633 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16635 | else | |
16636 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 16637 | #line 16638 "configure" |
af15babd VZ |
16638 | #include "confdefs.h" |
16639 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16640 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16641 | #include <assert.h> |
16642 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16643 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16644 | builtin and then its argument prototype would still apply. */ |
16645 | char $ac_func(); | |
16646 | ||
16647 | int main() { | |
16648 | ||
af15babd VZ |
16649 | /* The GNU C library defines this for functions which it implements |
16650 | to always fail with ENOSYS. Some functions are actually named | |
16651 | something starting with __ and the normal name is an alias. */ | |
16652 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16653 | choke me | |
16654 | #else | |
a0b9e27f | 16655 | $ac_func(); |
af15babd VZ |
16656 | #endif |
16657 | ||
a0b9e27f MB |
16658 | ; return 0; } |
16659 | EOF | |
4f57cf11 | 16660 | if { (eval echo configure:16661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16661 | rm -rf conftest* |
16662 | eval "ac_cv_func_$ac_func=yes" | |
16663 | else | |
16664 | echo "configure: failed program was:" >&5 | |
16665 | cat conftest.$ac_ext >&5 | |
16666 | rm -rf conftest* | |
16667 | eval "ac_cv_func_$ac_func=no" | |
16668 | fi | |
16669 | rm -f conftest* | |
16670 | fi | |
af15babd | 16671 | |
a0b9e27f MB |
16672 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16673 | echo "$ac_t""yes" 1>&6 | |
16674 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16675 | cat >> confdefs.h <<EOF | |
16676 | #define $ac_tr_func 1 | |
16677 | EOF | |
ade35f11 | 16678 | break |
a0b9e27f MB |
16679 | else |
16680 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
16681 | fi |
16682 | done | |
16683 | ||
8284b0c5 | 16684 | |
a0b9e27f | 16685 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
4f57cf11 | 16686 | echo "configure:16687: checking for statfs" >&5 |
a0b9e27f MB |
16687 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16688 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16689 | else |
a0b9e27f | 16690 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 16691 | #line 16692 "configure" |
4f14bcd8 GD |
16692 | #include "confdefs.h" |
16693 | ||
16694 | #if defined(__BSD__) | |
16695 | #include <sys/param.h> | |
16696 | #include <sys/mount.h> | |
16697 | #else | |
16698 | #include <sys/vfs.h> | |
16699 | #endif | |
a0b9e27f MB |
16700 | |
16701 | int main() { | |
4f14bcd8 GD |
16702 | |
16703 | long l; | |
16704 | struct statfs fs; | |
16705 | statfs("/", &fs); | |
16706 | l = fs.f_bsize; | |
16707 | l += fs.f_blocks; | |
16708 | l += fs.f_bavail; | |
a0b9e27f MB |
16709 | |
16710 | ; return 0; } | |
16711 | EOF | |
4f57cf11 | 16712 | if { (eval echo configure:16713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16713 | rm -rf conftest* |
16714 | ||
4f14bcd8 | 16715 | wx_cv_func_statfs=yes |
a0b9e27f | 16716 | |
4f14bcd8 | 16717 | else |
a0b9e27f MB |
16718 | echo "configure: failed program was:" >&5 |
16719 | cat conftest.$ac_ext >&5 | |
16720 | rm -rf conftest* | |
16721 | ||
4f14bcd8 | 16722 | wx_cv_func_statfs=no |
a0b9e27f MB |
16723 | |
16724 | ||
5c6fa7d2 | 16725 | fi |
a0b9e27f | 16726 | rm -f conftest* |
8284b0c5 | 16727 | |
247f5006 | 16728 | fi |
a0b9e27f MB |
16729 | |
16730 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
16731 | |
16732 | if test "$wx_cv_func_statfs" = "yes"; then | |
a0b9e27f | 16733 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16734 | #define HAVE_STATFS 1 |
a0b9e27f | 16735 | EOF |
4f14bcd8 GD |
16736 | |
16737 | else | |
a0b9e27f | 16738 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
4f57cf11 | 16739 | echo "configure:16740: checking for statvfs" >&5 |
a0b9e27f MB |
16740 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
16741 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 16742 | else |
a0b9e27f | 16743 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 16744 | #line 16745 "configure" |
af15babd | 16745 | #include "confdefs.h" |
af15babd | 16746 | |
4f14bcd8 | 16747 | #include <sys/statvfs.h> |
a0b9e27f MB |
16748 | |
16749 | int main() { | |
af15babd | 16750 | |
4f14bcd8 GD |
16751 | long l; |
16752 | struct statvfs fs; | |
16753 | statvfs("/", &fs); | |
16754 | l = fs.f_bsize; | |
16755 | l += fs.f_blocks; | |
16756 | l += fs.f_bavail; | |
a0b9e27f MB |
16757 | |
16758 | ; return 0; } | |
16759 | EOF | |
4f57cf11 | 16760 | if { (eval echo configure:16761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16761 | rm -rf conftest* |
16762 | ||
4f14bcd8 | 16763 | wx_cv_func_statvfs=yes |
a0b9e27f | 16764 | |
af15babd | 16765 | else |
a0b9e27f MB |
16766 | echo "configure: failed program was:" >&5 |
16767 | cat conftest.$ac_ext >&5 | |
16768 | rm -rf conftest* | |
16769 | ||
4f14bcd8 | 16770 | wx_cv_func_statvfs=no |
a0b9e27f MB |
16771 | |
16772 | ||
5c6fa7d2 | 16773 | fi |
a0b9e27f MB |
16774 | rm -f conftest* |
16775 | ||
247f5006 | 16776 | fi |
a0b9e27f MB |
16777 | |
16778 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 16779 | |
4f14bcd8 | 16780 | if test "$wx_cv_func_statvfs" = "yes"; then |
a0b9e27f | 16781 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16782 | #define HAVE_STATVFS 1 |
a0b9e27f | 16783 | EOF |
af15babd | 16784 | |
4f14bcd8 | 16785 | else |
a0b9e27f | 16786 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 |
4f14bcd8 GD |
16787 | fi |
16788 | fi | |
af15babd | 16789 | |
4f14bcd8 | 16790 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 16791 | for ac_func in fcntl flock |
af15babd | 16792 | do |
a0b9e27f | 16793 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 16794 | echo "configure:16795: checking for $ac_func" >&5 |
a0b9e27f MB |
16795 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16796 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16797 | else | |
16798 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 16799 | #line 16800 "configure" |
af15babd VZ |
16800 | #include "confdefs.h" |
16801 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16802 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16803 | #include <assert.h> |
16804 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 16805 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16806 | builtin and then its argument prototype would still apply. */ |
16807 | char $ac_func(); | |
16808 | ||
16809 | int main() { | |
16810 | ||
af15babd VZ |
16811 | /* The GNU C library defines this for functions which it implements |
16812 | to always fail with ENOSYS. Some functions are actually named | |
16813 | something starting with __ and the normal name is an alias. */ | |
16814 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16815 | choke me | |
16816 | #else | |
a0b9e27f | 16817 | $ac_func(); |
af15babd VZ |
16818 | #endif |
16819 | ||
a0b9e27f MB |
16820 | ; return 0; } |
16821 | EOF | |
4f57cf11 | 16822 | if { (eval echo configure:16823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16823 | rm -rf conftest* |
16824 | eval "ac_cv_func_$ac_func=yes" | |
16825 | else | |
16826 | echo "configure: failed program was:" >&5 | |
16827 | cat conftest.$ac_ext >&5 | |
16828 | rm -rf conftest* | |
16829 | eval "ac_cv_func_$ac_func=no" | |
16830 | fi | |
16831 | rm -f conftest* | |
16832 | fi | |
16833 | ||
16834 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16835 | echo "$ac_t""yes" 1>&6 | |
16836 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16837 | cat >> confdefs.h <<EOF | |
16838 | #define $ac_tr_func 1 | |
16839 | EOF | |
4f14bcd8 | 16840 | break |
a0b9e27f MB |
16841 | else |
16842 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16843 | fi |
16844 | done | |
16845 | ||
8284b0c5 | 16846 | |
4f14bcd8 | 16847 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
a0b9e27f | 16848 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
16849 | wxUSE_SNGLINST_CHECKER=no |
16850 | fi | |
16851 | fi | |
af15babd | 16852 | |
4f14bcd8 | 16853 | for ac_func in timegm |
af15babd | 16854 | do |
a0b9e27f | 16855 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 16856 | echo "configure:16857: checking for $ac_func" >&5 |
a0b9e27f MB |
16857 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16858 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16859 | else | |
16860 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 16861 | #line 16862 "configure" |
af15babd VZ |
16862 | #include "confdefs.h" |
16863 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16864 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16865 | #include <assert.h> |
16866 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16867 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16868 | builtin and then its argument prototype would still apply. */ |
16869 | char $ac_func(); | |
16870 | ||
16871 | int main() { | |
16872 | ||
af15babd VZ |
16873 | /* The GNU C library defines this for functions which it implements |
16874 | to always fail with ENOSYS. Some functions are actually named | |
16875 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
16876 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
16877 | choke me | |
16878 | #else | |
a0b9e27f | 16879 | $ac_func(); |
247f5006 VZ |
16880 | #endif |
16881 | ||
a0b9e27f MB |
16882 | ; return 0; } |
16883 | EOF | |
4f57cf11 | 16884 | if { (eval echo configure:16885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16885 | rm -rf conftest* |
16886 | eval "ac_cv_func_$ac_func=yes" | |
16887 | else | |
16888 | echo "configure: failed program was:" >&5 | |
16889 | cat conftest.$ac_ext >&5 | |
16890 | rm -rf conftest* | |
16891 | eval "ac_cv_func_$ac_func=no" | |
16892 | fi | |
16893 | rm -f conftest* | |
16894 | fi | |
703e0a69 | 16895 | |
a0b9e27f MB |
16896 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16897 | echo "$ac_t""yes" 1>&6 | |
16898 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16899 | cat >> confdefs.h <<EOF | |
16900 | #define $ac_tr_func 1 | |
16901 | EOF | |
16902 | ||
16903 | else | |
16904 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16905 | fi |
16906 | done | |
16907 | ||
8284b0c5 | 16908 | |
4f14bcd8 | 16909 | for ac_func in putenv setenv |
10f2d63a | 16910 | do |
a0b9e27f | 16911 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 16912 | echo "configure:16913: checking for $ac_func" >&5 |
a0b9e27f MB |
16913 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16914 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16915 | else | |
16916 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 16917 | #line 16918 "configure" |
af15babd VZ |
16918 | #include "confdefs.h" |
16919 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16920 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16921 | #include <assert.h> |
16922 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16923 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16924 | builtin and then its argument prototype would still apply. */ |
16925 | char $ac_func(); | |
16926 | ||
16927 | int main() { | |
16928 | ||
af15babd VZ |
16929 | /* The GNU C library defines this for functions which it implements |
16930 | to always fail with ENOSYS. Some functions are actually named | |
16931 | something starting with __ and the normal name is an alias. */ | |
16932 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16933 | choke me | |
16934 | #else | |
a0b9e27f | 16935 | $ac_func(); |
af15babd VZ |
16936 | #endif |
16937 | ||
a0b9e27f MB |
16938 | ; return 0; } |
16939 | EOF | |
4f57cf11 | 16940 | if { (eval echo configure:16941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16941 | rm -rf conftest* |
16942 | eval "ac_cv_func_$ac_func=yes" | |
16943 | else | |
16944 | echo "configure: failed program was:" >&5 | |
16945 | cat conftest.$ac_ext >&5 | |
16946 | rm -rf conftest* | |
16947 | eval "ac_cv_func_$ac_func=no" | |
16948 | fi | |
16949 | rm -f conftest* | |
16950 | fi | |
16951 | ||
16952 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16953 | echo "$ac_t""yes" 1>&6 | |
16954 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16955 | cat >> confdefs.h <<EOF | |
16956 | #define $ac_tr_func 1 | |
16957 | EOF | |
4f14bcd8 | 16958 | break |
a0b9e27f MB |
16959 | else |
16960 | echo "$ac_t""no" 1>&6 | |
af15babd | 16961 | fi |
af15babd VZ |
16962 | done |
16963 | ||
8284b0c5 | 16964 | |
4f14bcd8 GD |
16965 | HAVE_SOME_SLEEP_FUNC=0 |
16966 | if test "$USE_BEOS" = 1; then | |
a0b9e27f | 16967 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16968 | #define HAVE_SLEEP 1 |
a0b9e27f | 16969 | EOF |
af15babd | 16970 | |
4f14bcd8 | 16971 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16972 | fi |
16973 | ||
4f14bcd8 | 16974 | if test "$USE_DARWIN" = 1; then |
a0b9e27f | 16975 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16976 | #define HAVE_USLEEP 1 |
a0b9e27f | 16977 | EOF |
10f2d63a | 16978 | |
4f14bcd8 | 16979 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16980 | fi |
16981 | ||
4f14bcd8 GD |
16982 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
16983 | POSIX4_LINK= | |
a0b9e27f | 16984 | for ac_func in nanosleep |
4f14bcd8 | 16985 | do |
a0b9e27f | 16986 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 16987 | echo "configure:16988: checking for $ac_func" >&5 |
a0b9e27f MB |
16988 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16989 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16990 | else | |
16991 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 16992 | #line 16993 "configure" |
10f2d63a | 16993 | #include "confdefs.h" |
4f14bcd8 | 16994 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16995 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 16996 | #include <assert.h> |
10f2d63a VZ |
16997 | /* Override any gcc2 internal prototype to avoid an error. */ |
16998 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16999 | builtin and then its argument prototype would still apply. */ |
17000 | char $ac_func(); | |
17001 | ||
17002 | int main() { | |
17003 | ||
4f14bcd8 GD |
17004 | /* The GNU C library defines this for functions which it implements |
17005 | to always fail with ENOSYS. Some functions are actually named | |
17006 | something starting with __ and the normal name is an alias. */ | |
17007 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17008 | choke me | |
17009 | #else | |
a0b9e27f | 17010 | $ac_func(); |
4f14bcd8 GD |
17011 | #endif |
17012 | ||
a0b9e27f MB |
17013 | ; return 0; } |
17014 | EOF | |
4f57cf11 | 17015 | if { (eval echo configure:17016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17016 | rm -rf conftest* |
17017 | eval "ac_cv_func_$ac_func=yes" | |
17018 | else | |
17019 | echo "configure: failed program was:" >&5 | |
17020 | cat conftest.$ac_ext >&5 | |
17021 | rm -rf conftest* | |
17022 | eval "ac_cv_func_$ac_func=no" | |
17023 | fi | |
17024 | rm -f conftest* | |
17025 | fi | |
17026 | ||
17027 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17028 | echo "$ac_t""yes" 1>&6 | |
17029 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17030 | cat >> confdefs.h <<EOF | |
17031 | #define $ac_tr_func 1 | |
17032 | EOF | |
17033 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17034 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 17035 | EOF |
4f14bcd8 | 17036 | |
10f2d63a | 17037 | else |
a0b9e27f MB |
17038 | echo "$ac_t""no" 1>&6 |
17039 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
4f57cf11 | 17040 | echo "configure:17041: checking for nanosleep in -lposix4" >&5 |
a0b9e27f MB |
17041 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
17042 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17043 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17044 | else |
a0b9e27f | 17045 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17046 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 17047 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 17048 | #line 17049 "configure" |
10f2d63a VZ |
17049 | #include "confdefs.h" |
17050 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17051 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17052 | builtin and then its argument prototype would still apply. */ |
17053 | char nanosleep(); | |
17054 | ||
17055 | int main() { | |
17056 | nanosleep() | |
17057 | ; return 0; } | |
17058 | EOF | |
4f57cf11 | 17059 | if { (eval echo configure:17060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17060 | rm -rf conftest* |
17061 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17062 | else | |
17063 | echo "configure: failed program was:" >&5 | |
17064 | cat conftest.$ac_ext >&5 | |
17065 | rm -rf conftest* | |
17066 | eval "ac_cv_lib_$ac_lib_var=no" | |
17067 | fi | |
17068 | rm -f conftest* | |
17069 | LIBS="$ac_save_LIBS" | |
17070 | ||
17071 | fi | |
17072 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17073 | echo "$ac_t""yes" 1>&6 | |
17074 | ||
17075 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17076 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 17077 | EOF |
4f14bcd8 | 17078 | |
3d63bc3a | 17079 | POSIX4_LINK=" -lposix4" |
a0b9e27f | 17080 | |
10f2d63a | 17081 | else |
a0b9e27f | 17082 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17083 | |
a0b9e27f | 17084 | for ac_func in usleep |
4f14bcd8 | 17085 | do |
a0b9e27f | 17086 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 17087 | echo "configure:17088: checking for $ac_func" >&5 |
a0b9e27f MB |
17088 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17089 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17090 | else | |
17091 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 17092 | #line 17093 "configure" |
10f2d63a | 17093 | #include "confdefs.h" |
4f14bcd8 | 17094 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17095 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17096 | #include <assert.h> |
17097 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17098 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17099 | builtin and then its argument prototype would still apply. */ |
17100 | char $ac_func(); | |
17101 | ||
17102 | int main() { | |
17103 | ||
4f14bcd8 GD |
17104 | /* The GNU C library defines this for functions which it implements |
17105 | to always fail with ENOSYS. Some functions are actually named | |
17106 | something starting with __ and the normal name is an alias. */ | |
17107 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17108 | choke me | |
17109 | #else | |
a0b9e27f | 17110 | $ac_func(); |
4f14bcd8 GD |
17111 | #endif |
17112 | ||
a0b9e27f MB |
17113 | ; return 0; } |
17114 | EOF | |
4f57cf11 | 17115 | if { (eval echo configure:17116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17116 | rm -rf conftest* |
17117 | eval "ac_cv_func_$ac_func=yes" | |
17118 | else | |
17119 | echo "configure: failed program was:" >&5 | |
17120 | cat conftest.$ac_ext >&5 | |
17121 | rm -rf conftest* | |
17122 | eval "ac_cv_func_$ac_func=no" | |
17123 | fi | |
17124 | rm -f conftest* | |
17125 | fi | |
17126 | ||
17127 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17128 | echo "$ac_t""yes" 1>&6 | |
17129 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17130 | cat >> confdefs.h <<EOF | |
17131 | #define $ac_tr_func 1 | |
17132 | EOF | |
17133 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17134 | #define HAVE_USLEEP 1 |
a0b9e27f | 17135 | EOF |
4f14bcd8 | 17136 | |
698dcdb6 | 17137 | else |
a0b9e27f MB |
17138 | echo "$ac_t""no" 1>&6 |
17139 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
17140 | ||
10f2d63a | 17141 | fi |
4f14bcd8 | 17142 | done |
10f2d63a | 17143 | |
a0b9e27f MB |
17144 | |
17145 | ||
6232543b | 17146 | fi |
10f2d63a | 17147 | |
a0b9e27f MB |
17148 | |
17149 | ||
1e487827 | 17150 | fi |
4f14bcd8 | 17151 | done |
703e0a69 | 17152 | |
10f2d63a VZ |
17153 | fi |
17154 | ||
4f14bcd8 | 17155 | for ac_func in uname gethostname |
70846f0a | 17156 | do |
a0b9e27f | 17157 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 17158 | echo "configure:17159: checking for $ac_func" >&5 |
a0b9e27f MB |
17159 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17160 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17161 | else | |
17162 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 17163 | #line 17164 "configure" |
70846f0a VZ |
17164 | #include "confdefs.h" |
17165 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17166 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
17167 | #include <assert.h> |
17168 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17169 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17170 | builtin and then its argument prototype would still apply. */ |
17171 | char $ac_func(); | |
17172 | ||
17173 | int main() { | |
17174 | ||
70846f0a VZ |
17175 | /* The GNU C library defines this for functions which it implements |
17176 | to always fail with ENOSYS. Some functions are actually named | |
17177 | something starting with __ and the normal name is an alias. */ | |
17178 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17179 | choke me | |
17180 | #else | |
a0b9e27f | 17181 | $ac_func(); |
70846f0a VZ |
17182 | #endif |
17183 | ||
a0b9e27f MB |
17184 | ; return 0; } |
17185 | EOF | |
4f57cf11 | 17186 | if { (eval echo configure:17187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17187 | rm -rf conftest* |
17188 | eval "ac_cv_func_$ac_func=yes" | |
17189 | else | |
17190 | echo "configure: failed program was:" >&5 | |
17191 | cat conftest.$ac_ext >&5 | |
17192 | rm -rf conftest* | |
17193 | eval "ac_cv_func_$ac_func=no" | |
17194 | fi | |
17195 | rm -f conftest* | |
17196 | fi | |
17197 | ||
17198 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17199 | echo "$ac_t""yes" 1>&6 | |
17200 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17201 | cat >> confdefs.h <<EOF | |
17202 | #define $ac_tr_func 1 | |
17203 | EOF | |
4f14bcd8 | 17204 | break |
a0b9e27f MB |
17205 | else |
17206 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
17207 | fi |
17208 | done | |
17209 | ||
8284b0c5 MB |
17210 | |
17211 | ||
a0b9e27f MB |
17212 | ac_ext=C |
17213 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17214 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17215 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17216 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17217 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17218 | |
4f14bcd8 GD |
17219 | |
17220 | for ac_func in strtok_r | |
10f2d63a | 17221 | do |
a0b9e27f | 17222 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 17223 | echo "configure:17224: checking for $ac_func" >&5 |
a0b9e27f MB |
17224 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17225 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17226 | else | |
17227 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 17228 | #line 17229 "configure" |
10f2d63a | 17229 | #include "confdefs.h" |
4f14bcd8 | 17230 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17231 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17232 | #include <assert.h> |
17233 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17234 | #ifdef __cplusplus | |
17235 | extern "C" | |
17236 | #endif | |
17237 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17238 | builtin and then its argument prototype would still apply. */ |
17239 | char $ac_func(); | |
17240 | ||
17241 | int main() { | |
17242 | ||
4f14bcd8 GD |
17243 | /* The GNU C library defines this for functions which it implements |
17244 | to always fail with ENOSYS. Some functions are actually named | |
17245 | something starting with __ and the normal name is an alias. */ | |
17246 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17247 | choke me | |
17248 | #else | |
a0b9e27f | 17249 | $ac_func(); |
4f14bcd8 GD |
17250 | #endif |
17251 | ||
a0b9e27f MB |
17252 | ; return 0; } |
17253 | EOF | |
4f57cf11 | 17254 | if { (eval echo configure:17255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17255 | rm -rf conftest* |
17256 | eval "ac_cv_func_$ac_func=yes" | |
17257 | else | |
17258 | echo "configure: failed program was:" >&5 | |
17259 | cat conftest.$ac_ext >&5 | |
17260 | rm -rf conftest* | |
17261 | eval "ac_cv_func_$ac_func=no" | |
17262 | fi | |
17263 | rm -f conftest* | |
17264 | fi | |
4f14bcd8 | 17265 | |
a0b9e27f MB |
17266 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17267 | echo "$ac_t""yes" 1>&6 | |
17268 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17269 | cat >> confdefs.h <<EOF | |
17270 | #define $ac_tr_func 1 | |
17271 | EOF | |
17272 | ||
17273 | else | |
17274 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17275 | fi |
17276 | done | |
17277 | ||
8284b0c5 | 17278 | |
4f14bcd8 | 17279 | ac_ext=c |
a0b9e27f | 17280 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17281 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17282 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17283 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17284 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 17285 | |
5c6fa7d2 | 17286 | |
8284b0c5 | 17287 | INET_LINK= |
4f14bcd8 GD |
17288 | for ac_func in inet_addr |
17289 | do | |
a0b9e27f | 17290 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 17291 | echo "configure:17292: checking for $ac_func" >&5 |
a0b9e27f MB |
17292 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17294 | else | |
17295 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 17296 | #line 17297 "configure" |
10f2d63a | 17297 | #include "confdefs.h" |
4f14bcd8 | 17298 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17299 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17300 | #include <assert.h> |
10f2d63a VZ |
17301 | /* Override any gcc2 internal prototype to avoid an error. */ |
17302 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17303 | builtin and then its argument prototype would still apply. */ |
17304 | char $ac_func(); | |
17305 | ||
17306 | int main() { | |
17307 | ||
4f14bcd8 GD |
17308 | /* The GNU C library defines this for functions which it implements |
17309 | to always fail with ENOSYS. Some functions are actually named | |
17310 | something starting with __ and the normal name is an alias. */ | |
17311 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17312 | choke me | |
17313 | #else | |
a0b9e27f | 17314 | $ac_func(); |
4f14bcd8 GD |
17315 | #endif |
17316 | ||
a0b9e27f MB |
17317 | ; return 0; } |
17318 | EOF | |
4f57cf11 | 17319 | if { (eval echo configure:17320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17320 | rm -rf conftest* |
17321 | eval "ac_cv_func_$ac_func=yes" | |
17322 | else | |
17323 | echo "configure: failed program was:" >&5 | |
17324 | cat conftest.$ac_ext >&5 | |
17325 | rm -rf conftest* | |
17326 | eval "ac_cv_func_$ac_func=no" | |
17327 | fi | |
17328 | rm -f conftest* | |
17329 | fi | |
17330 | ||
17331 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17332 | echo "$ac_t""yes" 1>&6 | |
17333 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17334 | cat >> confdefs.h <<EOF | |
17335 | #define $ac_tr_func 1 | |
17336 | EOF | |
17337 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17338 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 17339 | EOF |
10f2d63a VZ |
17340 | |
17341 | else | |
a0b9e27f MB |
17342 | echo "$ac_t""no" 1>&6 |
17343 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
4f57cf11 | 17344 | echo "configure:17345: checking for inet_addr in -lnsl" >&5 |
a0b9e27f MB |
17345 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
17346 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17347 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17348 | else |
a0b9e27f | 17349 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17350 | LIBS="-lnsl $LIBS" |
a0b9e27f | 17351 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 17352 | #line 17353 "configure" |
10f2d63a VZ |
17353 | #include "confdefs.h" |
17354 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17355 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17356 | builtin and then its argument prototype would still apply. */ |
17357 | char inet_addr(); | |
17358 | ||
17359 | int main() { | |
17360 | inet_addr() | |
17361 | ; return 0; } | |
17362 | EOF | |
4f57cf11 | 17363 | if { (eval echo configure:17364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17364 | rm -rf conftest* |
17365 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17366 | else | |
17367 | echo "configure: failed program was:" >&5 | |
17368 | cat conftest.$ac_ext >&5 | |
17369 | rm -rf conftest* | |
17370 | eval "ac_cv_lib_$ac_lib_var=no" | |
17371 | fi | |
17372 | rm -f conftest* | |
17373 | LIBS="$ac_save_LIBS" | |
17374 | ||
17375 | fi | |
17376 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17377 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17378 | INET_LINK="nsl" |
10f2d63a | 17379 | else |
a0b9e27f MB |
17380 | echo "$ac_t""no" 1>&6 |
17381 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
4f57cf11 | 17382 | echo "configure:17383: checking for inet_addr in -lresolv" >&5 |
a0b9e27f MB |
17383 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
17384 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17385 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17386 | else |
a0b9e27f | 17387 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17388 | LIBS="-lresolv $LIBS" |
a0b9e27f | 17389 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 17390 | #line 17391 "configure" |
7b4a847f | 17391 | #include "confdefs.h" |
5c6fa7d2 | 17392 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 17393 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17394 | builtin and then its argument prototype would still apply. */ |
17395 | char inet_addr(); | |
17396 | ||
17397 | int main() { | |
17398 | inet_addr() | |
17399 | ; return 0; } | |
17400 | EOF | |
4f57cf11 | 17401 | if { (eval echo configure:17402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17402 | rm -rf conftest* |
17403 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17404 | else | |
17405 | echo "configure: failed program was:" >&5 | |
17406 | cat conftest.$ac_ext >&5 | |
17407 | rm -rf conftest* | |
17408 | eval "ac_cv_lib_$ac_lib_var=no" | |
17409 | fi | |
17410 | rm -f conftest* | |
17411 | LIBS="$ac_save_LIBS" | |
17412 | ||
17413 | fi | |
17414 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17415 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17416 | INET_LINK="resolv" |
698dcdb6 | 17417 | else |
a0b9e27f MB |
17418 | echo "$ac_t""no" 1>&6 |
17419 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
4f57cf11 | 17420 | echo "configure:17421: checking for inet_addr in -lsocket" >&5 |
a0b9e27f MB |
17421 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
17422 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17423 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 17424 | else |
a0b9e27f | 17425 | ac_save_LIBS="$LIBS" |
3c011993 | 17426 | LIBS="-lsocket $LIBS" |
a0b9e27f | 17427 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 17428 | #line 17429 "configure" |
3c011993 VZ |
17429 | #include "confdefs.h" |
17430 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17431 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17432 | builtin and then its argument prototype would still apply. */ |
17433 | char inet_addr(); | |
4f14bcd8 | 17434 | |
a0b9e27f MB |
17435 | int main() { |
17436 | inet_addr() | |
17437 | ; return 0; } | |
17438 | EOF | |
4f57cf11 | 17439 | if { (eval echo configure:17440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17440 | rm -rf conftest* |
17441 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17442 | else | |
17443 | echo "configure: failed program was:" >&5 | |
17444 | cat conftest.$ac_ext >&5 | |
17445 | rm -rf conftest* | |
17446 | eval "ac_cv_lib_$ac_lib_var=no" | |
8284b0c5 | 17447 | fi |
a0b9e27f MB |
17448 | rm -f conftest* |
17449 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 17450 | |
7b4a847f | 17451 | fi |
a0b9e27f MB |
17452 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17453 | echo "$ac_t""yes" 1>&6 | |
17454 | INET_LINK="socket" | |
17455 | ||
17456 | else | |
17457 | echo "$ac_t""no" 1>&6 | |
17458 | fi | |
579d8138 | 17459 | |
a0b9e27f | 17460 | |
5c6fa7d2 | 17461 | fi |
52127426 | 17462 | |
a0b9e27f MB |
17463 | |
17464 | fi | |
247f5006 | 17465 | |
a0b9e27f | 17466 | |
8284b0c5 | 17467 | |
698dcdb6 | 17468 | fi |
4f14bcd8 GD |
17469 | done |
17470 | ||
8284b0c5 | 17471 | |
4f14bcd8 GD |
17472 | for ac_func in inet_aton |
17473 | do | |
a0b9e27f | 17474 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 17475 | echo "configure:17476: checking for $ac_func" >&5 |
a0b9e27f MB |
17476 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17477 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17478 | else | |
17479 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 17480 | #line 17481 "configure" |
f6bcfd97 | 17481 | #include "confdefs.h" |
4f14bcd8 | 17482 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17483 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17484 | #include <assert.h> |
f6bcfd97 BP |
17485 | /* Override any gcc2 internal prototype to avoid an error. */ |
17486 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17487 | builtin and then its argument prototype would still apply. */ |
17488 | char $ac_func(); | |
17489 | ||
17490 | int main() { | |
17491 | ||
4f14bcd8 GD |
17492 | /* The GNU C library defines this for functions which it implements |
17493 | to always fail with ENOSYS. Some functions are actually named | |
17494 | something starting with __ and the normal name is an alias. */ | |
17495 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17496 | choke me | |
17497 | #else | |
a0b9e27f | 17498 | $ac_func(); |
4f14bcd8 GD |
17499 | #endif |
17500 | ||
a0b9e27f MB |
17501 | ; return 0; } |
17502 | EOF | |
4f57cf11 | 17503 | if { (eval echo configure:17504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17504 | rm -rf conftest* |
17505 | eval "ac_cv_func_$ac_func=yes" | |
17506 | else | |
17507 | echo "configure: failed program was:" >&5 | |
17508 | cat conftest.$ac_ext >&5 | |
17509 | rm -rf conftest* | |
17510 | eval "ac_cv_func_$ac_func=no" | |
17511 | fi | |
17512 | rm -f conftest* | |
17513 | fi | |
17514 | ||
17515 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17516 | echo "$ac_t""yes" 1>&6 | |
17517 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17518 | cat >> confdefs.h <<EOF | |
17519 | #define $ac_tr_func 1 | |
17520 | EOF | |
17521 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17522 | #define HAVE_INET_ATON 1 |
a0b9e27f | 17523 | EOF |
4f14bcd8 | 17524 | |
10f2d63a | 17525 | else |
a0b9e27f MB |
17526 | echo "$ac_t""no" 1>&6 |
17527 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
4f57cf11 | 17528 | echo "configure:17529: checking for inet_aton in -l$INET_LINK" >&5 |
a0b9e27f MB |
17529 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
17530 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17531 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 17532 | else |
a0b9e27f | 17533 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17534 | LIBS="-l$INET_LINK $LIBS" |
a0b9e27f | 17535 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 17536 | #line 17537 "configure" |
10f2d63a | 17537 | #include "confdefs.h" |
6232543b | 17538 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 17539 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17540 | builtin and then its argument prototype would still apply. */ |
17541 | char inet_aton(); | |
17542 | ||
17543 | int main() { | |
17544 | inet_aton() | |
17545 | ; return 0; } | |
17546 | EOF | |
4f57cf11 | 17547 | if { (eval echo configure:17548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17548 | rm -rf conftest* |
17549 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17550 | else | |
17551 | echo "configure: failed program was:" >&5 | |
17552 | cat conftest.$ac_ext >&5 | |
17553 | rm -rf conftest* | |
17554 | eval "ac_cv_lib_$ac_lib_var=no" | |
17555 | fi | |
17556 | rm -f conftest* | |
17557 | LIBS="$ac_save_LIBS" | |
4f14bcd8 | 17558 | |
10f2d63a | 17559 | fi |
a0b9e27f MB |
17560 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17561 | echo "$ac_t""yes" 1>&6 | |
17562 | cat >> confdefs.h <<\EOF | |
17563 | #define HAVE_INET_ATON 1 | |
17564 | EOF | |
10f2d63a | 17565 | |
a0b9e27f MB |
17566 | else |
17567 | echo "$ac_t""no" 1>&6 | |
17568 | fi | |
247f5006 | 17569 | |
a0b9e27f | 17570 | |
10f2d63a | 17571 | fi |
4f14bcd8 | 17572 | done |
10f2d63a | 17573 | |
8284b0c5 | 17574 | |
4f14bcd8 | 17575 | if test "x$INET_LINK" != "x"; then |
a0b9e27f | 17576 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17577 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 17578 | EOF |
4f14bcd8 | 17579 | |
3d63bc3a | 17580 | INET_LINK=" -l$INET_LINK" |
6232543b | 17581 | fi |
10f2d63a | 17582 | |
1e487827 | 17583 | fi |
703e0a69 | 17584 | |
8284b0c5 | 17585 | |
a0b9e27f | 17586 | cat > confcache <<\EOF |
4f14bcd8 GD |
17587 | # This file is a shell script that caches the results of configure |
17588 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
17589 | # scripts and configure runs. It is not useful on other systems. |
17590 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 17591 | # |
a0b9e27f MB |
17592 | # By default, configure uses ./config.cache as the cache file, |
17593 | # creating it if it does not exist already. You can give configure | |
17594 | # the --cache-file=FILE option to use a different cache file; that is | |
17595 | # what configure does when it calls configure scripts in | |
17596 | # subdirectories, so they share the cache. | |
17597 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17598 | # config.status only pays attention to the cache file if you give it the | |
17599 | # --recheck option to rerun configure. | |
4f14bcd8 | 17600 | # |
a0b9e27f | 17601 | EOF |
4f14bcd8 GD |
17602 | # The following way of writing the cache mishandles newlines in values, |
17603 | # but we know of no workaround that is simple, portable, and efficient. | |
17604 | # So, don't put newlines in cache variables' values. | |
17605 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17606 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
17607 | (set) 2>&1 | |
17608 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17609 | *ac_space=\ *) | |
17610 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17611 | # turns \\\\ into \\, and sed turns \\ into \). | |
17612 | sed -n \ | |
17613 | -e "s/'/'\\\\''/g" \ | |
17614 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17615 | ;; | |
17616 | *) | |
17617 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17618 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17619 | ;; | |
17620 | esac >> confcache | |
17621 | if cmp -s $cache_file confcache; then | |
17622 | : | |
17623 | else | |
4f14bcd8 | 17624 | if test -w $cache_file; then |
a0b9e27f MB |
17625 | echo "updating cache $cache_file" |
17626 | cat confcache > $cache_file | |
f6bcfd97 | 17627 | else |
4f14bcd8 | 17628 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 17629 | fi |
4f14bcd8 GD |
17630 | fi |
17631 | rm -f confcache | |
f6bcfd97 | 17632 | |
8284b0c5 | 17633 | |
a0b9e27f | 17634 | |
009fead0 | 17635 | CPP_MT_FLAG= |
4f14bcd8 GD |
17636 | if test "$TOOLKIT" != "MSW"; then |
17637 | ||
a0b9e27f | 17638 | |
7274f1c7 | 17639 | THREADS_LINK= |
009fead0 | 17640 | THREADS_CFLAGS= |
7274f1c7 RL |
17641 | |
17642 | if test "$wxUSE_THREADS" = "yes" ; then | |
17643 | if test "$wxUSE_WINE" = 1 ; then | |
a0b9e27f | 17644 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
17645 | wxUSE_THREADS="no" |
17646 | elif test "$USE_BEOS" = 1; then | |
a0b9e27f | 17647 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
17648 | wxUSE_THREADS="no" |
17649 | fi | |
4f14bcd8 | 17650 | fi |
4f14bcd8 | 17651 | |
7274f1c7 | 17652 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f MB |
17653 | |
17654 | ||
009fead0 VZ |
17655 | THREAD_OPTS="-pthread" |
17656 | case "${host}" in | |
17657 | *-*-solaris2* | *-*-sunos4* ) | |
17658 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 17659 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
17660 | else |
17661 | THREAD_OPTS="-mt $THREAD_OPTS" | |
17662 | fi | |
17663 | ;; | |
17664 | *-*-freebsd*) | |
17665 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
17666 | ;; | |
17234b26 MB |
17667 | *-*-darwin* | *-*-cygwin* ) |
17668 | THREAD_OPTS="" | |
4101db81 | 17669 | ;; |
8f4a9a10 | 17670 | *-*-aix*) |
009fead0 VZ |
17671 | THREAD_OPTS="pthreads" |
17672 | ;; | |
009fead0 | 17673 | esac |
4f14bcd8 | 17674 | |
02a1dfba | 17675 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 17676 | |
009fead0 VZ |
17677 | THREADS_OK=no |
17678 | for flag in $THREAD_OPTS; do | |
17679 | case $flag in | |
17680 | none) | |
a0b9e27f | 17681 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
4f57cf11 | 17682 | echo "configure:17683: checking whether pthreads work without any flags" >&5 |
009fead0 | 17683 | ;; |
698dcdb6 | 17684 | |
009fead0 | 17685 | -*) |
a0b9e27f | 17686 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
4f57cf11 | 17687 | echo "configure:17688: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
17688 | THREADS_CFLAGS="$flag" |
17689 | ;; | |
698dcdb6 | 17690 | |
009fead0 | 17691 | *) |
a0b9e27f | 17692 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
4f57cf11 | 17693 | echo "configure:17694: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
17694 | THREADS_LINK="-l$flag" |
17695 | ;; | |
17696 | esac | |
10f2d63a | 17697 | |
009fead0 VZ |
17698 | save_LIBS="$LIBS" |
17699 | save_CFLAGS="$CFLAGS" | |
17700 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 17701 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 17702 | |
a0b9e27f | 17703 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 17704 | #line 17705 "configure" |
009fead0 VZ |
17705 | #include "confdefs.h" |
17706 | #include <pthread.h> | |
a0b9e27f | 17707 | int main() { |
009fead0 | 17708 | pthread_create(0,0,0,0); |
a0b9e27f MB |
17709 | ; return 0; } |
17710 | EOF | |
4f57cf11 | 17711 | if { (eval echo configure:17712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17712 | rm -rf conftest* |
009fead0 | 17713 | THREADS_OK=yes |
10f2d63a | 17714 | else |
a0b9e27f MB |
17715 | echo "configure: failed program was:" >&5 |
17716 | cat conftest.$ac_ext >&5 | |
6232543b | 17717 | fi |
a0b9e27f | 17718 | rm -f conftest* |
698dcdb6 | 17719 | |
009fead0 VZ |
17720 | LIBS="$save_LIBS" |
17721 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 17722 | |
a0b9e27f | 17723 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
17724 | if test "x$THREADS_OK" = "xyes"; then |
17725 | break; | |
17726 | fi | |
d9b9876f | 17727 | |
009fead0 VZ |
17728 | THREADS_LINK="" |
17729 | THREADS_CFLAGS="" | |
17730 | done | |
4f14bcd8 | 17731 | |
009fead0 VZ |
17732 | if test "x$THREADS_OK" != "xyes"; then |
17733 | wxUSE_THREADS=no | |
a0b9e27f | 17734 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 17735 | else |
fe5a9cab VZ |
17736 | LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS" |
17737 | ||
a0b9e27f | 17738 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
4f57cf11 | 17739 | echo "configure:17740: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
17740 | flag=no |
17741 | case "${host}" in | |
17742 | *-aix* | *-freebsd*) | |
17743 | flag="-D_THREAD_SAFE" | |
17744 | ;; | |
06313569 GD |
17745 | *-hp-hpux* ) |
17746 | flag="-D_REENTRANT" | |
17747 | ;; | |
009fead0 VZ |
17748 | *solaris* | alpha*-osf*) |
17749 | flag="-D_REENTRANT" | |
17750 | ;; | |
17751 | esac | |
a0b9e27f | 17752 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 17753 | if test "x$flag" != xno; then |
04727afd | 17754 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
17755 | fi |
17756 | ||
009fead0 | 17757 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 17758 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
17759 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
17760 | fi | |
17761 | fi | |
4f14bcd8 | 17762 | fi |
4f14bcd8 | 17763 | |
7274f1c7 | 17764 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f | 17765 | for ac_func in thr_setconcurrency |
4f14bcd8 | 17766 | do |
a0b9e27f | 17767 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 17768 | echo "configure:17769: checking for $ac_func" >&5 |
a0b9e27f MB |
17769 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17770 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17771 | else | |
17772 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 17773 | #line 17774 "configure" |
d9b9876f | 17774 | #include "confdefs.h" |
4f14bcd8 | 17775 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17776 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17777 | #include <assert.h> |
17778 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17779 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17780 | builtin and then its argument prototype would still apply. */ |
17781 | char $ac_func(); | |
17782 | ||
17783 | int main() { | |
17784 | ||
4f14bcd8 GD |
17785 | /* The GNU C library defines this for functions which it implements |
17786 | to always fail with ENOSYS. Some functions are actually named | |
17787 | something starting with __ and the normal name is an alias. */ | |
17788 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17789 | choke me | |
17790 | #else | |
a0b9e27f | 17791 | $ac_func(); |
4f14bcd8 GD |
17792 | #endif |
17793 | ||
a0b9e27f MB |
17794 | ; return 0; } |
17795 | EOF | |
4f57cf11 | 17796 | if { (eval echo configure:17797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17797 | rm -rf conftest* |
17798 | eval "ac_cv_func_$ac_func=yes" | |
17799 | else | |
17800 | echo "configure: failed program was:" >&5 | |
17801 | cat conftest.$ac_ext >&5 | |
17802 | rm -rf conftest* | |
17803 | eval "ac_cv_func_$ac_func=no" | |
17804 | fi | |
17805 | rm -f conftest* | |
17806 | fi | |
698dcdb6 | 17807 | |
a0b9e27f MB |
17808 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17809 | echo "$ac_t""yes" 1>&6 | |
17810 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17811 | cat >> confdefs.h <<EOF | |
17812 | #define $ac_tr_func 1 | |
17813 | EOF | |
17814 | ||
17815 | else | |
17816 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17817 | fi |
4f14bcd8 | 17818 | done |
10f2d63a | 17819 | |
8284b0c5 | 17820 | |
a0b9e27f | 17821 | for ac_hdr in sched.h |
4f14bcd8 | 17822 | do |
a0b9e27f MB |
17823 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17824 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f57cf11 | 17825 | echo "configure:17826: checking for $ac_hdr" >&5 |
a0b9e27f MB |
17826 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17828 | else | |
17829 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 17830 | #line 17831 "configure" |
247f5006 | 17831 | #include "confdefs.h" |
a0b9e27f MB |
17832 | #include <$ac_hdr> |
17833 | EOF | |
17834 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f57cf11 | 17835 | { (eval echo configure:17836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
17836 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17837 | if test -z "$ac_err"; then | |
17838 | rm -rf conftest* | |
17839 | eval "ac_cv_header_$ac_safe=yes" | |
17840 | else | |
17841 | echo "$ac_err" >&5 | |
17842 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 17843 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
17844 | rm -rf conftest* |
17845 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17846 | fi |
a0b9e27f | 17847 | rm -f conftest* |
10f2d63a | 17848 | fi |
a0b9e27f MB |
17849 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17850 | echo "$ac_t""yes" 1>&6 | |
17851 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17852 | cat >> confdefs.h <<EOF | |
17853 | #define $ac_tr_hdr 1 | |
17854 | EOF | |
17855 | ||
17856 | else | |
17857 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17858 | fi |
4f14bcd8 | 17859 | done |
f6bcfd97 | 17860 | |
009fead0 | 17861 | if test "$ac_cv_header_sched_h" = "yes"; then |
a0b9e27f | 17862 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
4f57cf11 | 17863 | echo "configure:17864: checking for sched_yield" >&5 |
a0b9e27f MB |
17864 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
17865 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17866 | else |
a0b9e27f | 17867 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 17868 | #line 17869 "configure" |
4f14bcd8 | 17869 | #include "confdefs.h" |
009fead0 | 17870 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17871 | which can conflict with char sched_yield(); below. */ |
009fead0 | 17872 | #include <assert.h> |
4f14bcd8 GD |
17873 | /* Override any gcc2 internal prototype to avoid an error. */ |
17874 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17875 | builtin and then its argument prototype would still apply. */ |
17876 | char sched_yield(); | |
17877 | ||
17878 | int main() { | |
17879 | ||
009fead0 VZ |
17880 | /* The GNU C library defines this for functions which it implements |
17881 | to always fail with ENOSYS. Some functions are actually named | |
17882 | something starting with __ and the normal name is an alias. */ | |
17883 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
17884 | choke me | |
17885 | #else | |
a0b9e27f | 17886 | sched_yield(); |
009fead0 VZ |
17887 | #endif |
17888 | ||
a0b9e27f MB |
17889 | ; return 0; } |
17890 | EOF | |
4f57cf11 | 17891 | if { (eval echo configure:17892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17892 | rm -rf conftest* |
17893 | eval "ac_cv_func_sched_yield=yes" | |
17894 | else | |
17895 | echo "configure: failed program was:" >&5 | |
17896 | cat conftest.$ac_ext >&5 | |
17897 | rm -rf conftest* | |
17898 | eval "ac_cv_func_sched_yield=no" | |
17899 | fi | |
17900 | rm -f conftest* | |
17901 | fi | |
17902 | ||
17903 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
17904 | echo "$ac_t""yes" 1>&6 | |
17905 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17906 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 17907 | EOF |
10f2d63a | 17908 | |
4f14bcd8 | 17909 | else |
a0b9e27f | 17910 | echo "$ac_t""no" 1>&6 |
009fead0 | 17911 | |
a0b9e27f | 17912 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
4f57cf11 | 17913 | echo "configure:17914: checking for sched_yield in -lposix4" >&5 |
a0b9e27f MB |
17914 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
17915 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17916 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17917 | else |
a0b9e27f | 17918 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17919 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 17920 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 17921 | #line 17922 "configure" |
4f14bcd8 GD |
17922 | #include "confdefs.h" |
17923 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17924 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17925 | builtin and then its argument prototype would still apply. */ |
17926 | char sched_yield(); | |
17927 | ||
17928 | int main() { | |
17929 | sched_yield() | |
17930 | ; return 0; } | |
17931 | EOF | |
4f57cf11 | 17932 | if { (eval echo configure:17933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17933 | rm -rf conftest* |
17934 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17935 | else | |
17936 | echo "configure: failed program was:" >&5 | |
17937 | cat conftest.$ac_ext >&5 | |
17938 | rm -rf conftest* | |
17939 | eval "ac_cv_lib_$ac_lib_var=no" | |
17940 | fi | |
17941 | rm -f conftest* | |
17942 | LIBS="$ac_save_LIBS" | |
17943 | ||
17944 | fi | |
17945 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17946 | echo "$ac_t""yes" 1>&6 | |
17947 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17948 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 17949 | EOF |
3d63bc3a | 17950 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 17951 | else |
a0b9e27f MB |
17952 | echo "$ac_t""no" 1>&6 |
17953 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
17954 | ||
54276ccf VZ |
17955 | fi |
17956 | ||
a0b9e27f MB |
17957 | |
17958 | ||
4f14bcd8 | 17959 | fi |
698dcdb6 | 17960 | |
009fead0 | 17961 | fi |
10f2d63a | 17962 | |
7274f1c7 | 17963 | HAVE_PRIOR_FUNCS=0 |
a0b9e27f | 17964 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
4f57cf11 | 17965 | echo "configure:17966: checking for pthread_attr_getschedpolicy" >&5 |
a0b9e27f MB |
17966 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
17967 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 17968 | else |
a0b9e27f | 17969 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 17970 | #line 17971 "configure" |
422107f9 | 17971 | #include "confdefs.h" |
009fead0 | 17972 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17973 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 17974 | #include <assert.h> |
4f14bcd8 GD |
17975 | /* Override any gcc2 internal prototype to avoid an error. */ |
17976 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17977 | builtin and then its argument prototype would still apply. */ |
17978 | char pthread_attr_getschedpolicy(); | |
17979 | ||
17980 | int main() { | |
17981 | ||
009fead0 VZ |
17982 | /* The GNU C library defines this for functions which it implements |
17983 | to always fail with ENOSYS. Some functions are actually named | |
17984 | something starting with __ and the normal name is an alias. */ | |
17985 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
17986 | choke me | |
17987 | #else | |
a0b9e27f | 17988 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
17989 | #endif |
17990 | ||
a0b9e27f MB |
17991 | ; return 0; } |
17992 | EOF | |
4f57cf11 | 17993 | if { (eval echo configure:17994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17994 | rm -rf conftest* |
17995 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
17996 | else | |
17997 | echo "configure: failed program was:" >&5 | |
17998 | cat conftest.$ac_ext >&5 | |
17999 | rm -rf conftest* | |
18000 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
18001 | fi | |
18002 | rm -f conftest* | |
18003 | fi | |
18004 | ||
18005 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
18006 | echo "$ac_t""yes" 1>&6 | |
18007 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
4f57cf11 | 18008 | echo "configure:18009: checking for pthread_attr_setschedparam" >&5 |
a0b9e27f MB |
18009 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
18010 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 18011 | else |
a0b9e27f | 18012 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 18013 | #line 18014 "configure" |
a0b9e27f MB |
18014 | #include "confdefs.h" |
18015 | /* System header to define __stub macros and hopefully few prototypes, | |
18016 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 18017 | #include <assert.h> |
422107f9 VZ |
18018 | /* Override any gcc2 internal prototype to avoid an error. */ |
18019 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18020 | builtin and then its argument prototype would still apply. */ |
18021 | char pthread_attr_setschedparam(); | |
18022 | ||
18023 | int main() { | |
18024 | ||
009fead0 VZ |
18025 | /* The GNU C library defines this for functions which it implements |
18026 | to always fail with ENOSYS. Some functions are actually named | |
18027 | something starting with __ and the normal name is an alias. */ | |
18028 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
18029 | choke me | |
18030 | #else | |
a0b9e27f | 18031 | pthread_attr_setschedparam(); |
009fead0 VZ |
18032 | #endif |
18033 | ||
a0b9e27f MB |
18034 | ; return 0; } |
18035 | EOF | |
4f57cf11 | 18036 | if { (eval echo configure:18037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18037 | rm -rf conftest* |
18038 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
18039 | else | |
18040 | echo "configure: failed program was:" >&5 | |
18041 | cat conftest.$ac_ext >&5 | |
18042 | rm -rf conftest* | |
18043 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
18044 | fi | |
18045 | rm -f conftest* | |
18046 | fi | |
18047 | ||
18048 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
18049 | echo "$ac_t""yes" 1>&6 | |
18050 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
4f57cf11 | 18051 | echo "configure:18052: checking for sched_get_priority_max" >&5 |
a0b9e27f MB |
18052 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
18053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18054 | else | |
18055 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 18056 | #line 18057 "configure" |
422107f9 | 18057 | #include "confdefs.h" |
009fead0 VZ |
18058 | /* System header to define __stub macros and hopefully few prototypes |
18059 | else | |
a0b9e27f MB |
18060 | echo "$ac_t""no" 1>&6 |
18061 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 18062 | #include <assert.h> |
4f14bcd8 GD |
18063 | /* Override any gcc2 internal prototype to avoid an error. */ |
18064 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18065 | builtin and then its argument prototype would still apply. */ |
18066 | char sched_get_priority_max(); | |
18067 | ||
18068 | int main() { | |
18069 | ||
009fead0 VZ |
18070 | /* The GNU C library defines this for functions which it implements |
18071 | to always fail with ENOSYS. Some functions are actually named | |
18072 | something starting with __ and the normal name is an alias. */ | |
18073 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
18074 | choke me | |
18075 | #else | |
a0b9e27f | 18076 | sched_get_priority_max(); |
009fead0 VZ |
18077 | #endif |
18078 | ||
a0b9e27f MB |
18079 | ; return 0; } |
18080 | EOF | |
4f57cf11 | 18081 | if { (eval echo configure:18082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18082 | rm -rf conftest* |
18083 | eval "ac_cv_func_sched_get_priority_max=yes" | |
18084 | else | |
18085 | echo "configure: failed program was:" >&5 | |
18086 | cat conftest.$ac_ext >&5 | |
18087 | rm -rf conftest* | |
18088 | eval "ac_cv_func_sched_get_priority_max=no" | |
18089 | fi | |
18090 | rm -f conftest* | |
18091 | fi | |
18092 | ||
18093 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
18094 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
18095 | HAVE_PRIOR_FUNCS=1 |
18096 | else | |
a0b9e27f MB |
18097 | echo "$ac_t""no" 1>&6 |
18098 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
4f57cf11 | 18099 | echo "configure:18100: checking for sched_get_priority_max in -lposix4" >&5 |
a0b9e27f MB |
18100 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
18101 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18102 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18103 | else |
a0b9e27f | 18104 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18105 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18106 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 18107 | #line 18108 "configure" |
422107f9 VZ |
18108 | #include "confdefs.h" |
18109 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18110 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18111 | builtin and then its argument prototype would still apply. */ |
18112 | char sched_get_priority_max(); | |
18113 | ||
18114 | int main() { | |
18115 | sched_get_priority_max() | |
18116 | ; return 0; } | |
18117 | EOF | |
4f57cf11 | 18118 | if { (eval echo configure:18119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18119 | rm -rf conftest* |
18120 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18121 | else | |
18122 | echo "configure: failed program was:" >&5 | |
18123 | cat conftest.$ac_ext >&5 | |
18124 | rm -rf conftest* | |
18125 | eval "ac_cv_lib_$ac_lib_var=no" | |
18126 | fi | |
18127 | rm -f conftest* | |
18128 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18129 | |
a0b9e27f MB |
18130 | fi |
18131 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18132 | echo "$ac_t""yes" 1>&6 | |
18133 | ||
7274f1c7 RL |
18134 | HAVE_PRIOR_FUNCS=1 |
18135 | POSIX4_LINK=" -lposix4" | |
a0b9e27f MB |
18136 | |
18137 | else | |
18138 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 18139 | fi |
463abc64 | 18140 | |
a0b9e27f | 18141 | |
328a083c | 18142 | fi |
463abc64 | 18143 | |
a0b9e27f MB |
18144 | |
18145 | else | |
18146 | echo "$ac_t""no" 1>&6 | |
7b4a847f | 18147 | fi |
579d8138 | 18148 | |
a0b9e27f | 18149 | |
5c6fa7d2 | 18150 | fi |
52127426 | 18151 | |
8284b0c5 | 18152 | |
7274f1c7 | 18153 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
a0b9e27f | 18154 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18155 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
a0b9e27f | 18156 | EOF |
463abc64 | 18157 | |
7274f1c7 | 18158 | else |
a0b9e27f | 18159 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 18160 | fi |
463abc64 | 18161 | |
a0b9e27f | 18162 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
4f57cf11 | 18163 | echo "configure:18164: checking for pthread_cancel" >&5 |
a0b9e27f MB |
18164 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
18165 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18166 | else |
a0b9e27f | 18167 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 18168 | #line 18169 "configure" |
422107f9 | 18169 | #include "confdefs.h" |
009fead0 | 18170 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18171 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 18172 | #include <assert.h> |
422107f9 VZ |
18173 | /* Override any gcc2 internal prototype to avoid an error. */ |
18174 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18175 | builtin and then its argument prototype would still apply. */ |
18176 | char pthread_cancel(); | |
18177 | ||
18178 | int main() { | |
18179 | ||
009fead0 VZ |
18180 | /* The GNU C library defines this for functions which it implements |
18181 | to always fail with ENOSYS. Some functions are actually named | |
18182 | something starting with __ and the normal name is an alias. */ | |
18183 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
18184 | choke me | |
18185 | #else | |
a0b9e27f | 18186 | pthread_cancel(); |
009fead0 VZ |
18187 | #endif |
18188 | ||
a0b9e27f MB |
18189 | ; return 0; } |
18190 | EOF | |
4f57cf11 | 18191 | if { (eval echo configure:18192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18192 | rm -rf conftest* |
18193 | eval "ac_cv_func_pthread_cancel=yes" | |
18194 | else | |
18195 | echo "configure: failed program was:" >&5 | |
18196 | cat conftest.$ac_ext >&5 | |
18197 | rm -rf conftest* | |
18198 | eval "ac_cv_func_pthread_cancel=no" | |
18199 | fi | |
18200 | rm -f conftest* | |
18201 | fi | |
18202 | ||
18203 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
18204 | echo "$ac_t""yes" 1>&6 | |
18205 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18206 | #define HAVE_PTHREAD_CANCEL 1 |
a0b9e27f | 18207 | EOF |
4f14bcd8 | 18208 | |
698dcdb6 | 18209 | else |
a0b9e27f MB |
18210 | echo "$ac_t""no" 1>&6 |
18211 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
18212 | fi |
18213 | ||
5c6fa7d2 | 18214 | |
a0b9e27f | 18215 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
4f57cf11 | 18216 | echo "configure:18217: checking for pthread_cleanup_push/pop" >&5 |
a0b9e27f MB |
18217 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
18218 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 18219 | else |
a0b9e27f MB |
18220 | |
18221 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 18222 | #line 18223 "configure" |
4f14bcd8 GD |
18223 | #include "confdefs.h" |
18224 | #include <pthread.h> | |
a0b9e27f | 18225 | int main() { |
4f14bcd8 | 18226 | |
7274f1c7 RL |
18227 | pthread_cleanup_push(NULL, NULL); |
18228 | pthread_cleanup_pop(0); | |
a0b9e27f MB |
18229 | |
18230 | ; return 0; } | |
18231 | EOF | |
4f57cf11 | 18232 | if { (eval echo configure:18233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18233 | rm -rf conftest* |
18234 | ||
7274f1c7 | 18235 | wx_cv_func_pthread_cleanup_push=yes |
a0b9e27f | 18236 | |
4f14bcd8 | 18237 | else |
a0b9e27f MB |
18238 | echo "configure: failed program was:" >&5 |
18239 | cat conftest.$ac_ext >&5 | |
18240 | rm -rf conftest* | |
18241 | ||
7274f1c7 | 18242 | wx_cv_func_pthread_cleanup_push=no |
a0b9e27f | 18243 | |
5c6fa7d2 | 18244 | fi |
a0b9e27f MB |
18245 | rm -f conftest* |
18246 | ||
247f5006 | 18247 | fi |
a0b9e27f MB |
18248 | |
18249 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 18250 | |
7274f1c7 | 18251 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
a0b9e27f | 18252 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18253 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
a0b9e27f | 18254 | EOF |
c7a2bf27 | 18255 | |
7274f1c7 | 18256 | fi |
4f14bcd8 | 18257 | |
a0b9e27f MB |
18258 | |
18259 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
4f57cf11 | 18260 | echo "configure:18261: checking for pthread_mutexattr_t" >&5 |
a0b9e27f MB |
18261 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
18262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 18263 | else |
a0b9e27f MB |
18264 | |
18265 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 18266 | #line 18267 "configure" |
0dcf9893 | 18267 | #include "confdefs.h" |
4f14bcd8 | 18268 | #include <pthread.h> |
a0b9e27f | 18269 | int main() { |
4f14bcd8 | 18270 | |
7274f1c7 RL |
18271 | pthread_mutexattr_t attr; |
18272 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
a0b9e27f MB |
18273 | |
18274 | ; return 0; } | |
18275 | EOF | |
4f57cf11 | 18276 | if { (eval echo configure:18277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18277 | rm -rf conftest* |
18278 | ||
7274f1c7 | 18279 | wx_cv_type_pthread_mutexattr_t=yes |
a0b9e27f | 18280 | |
3fed1840 | 18281 | else |
a0b9e27f MB |
18282 | echo "configure: failed program was:" >&5 |
18283 | cat conftest.$ac_ext >&5 | |
18284 | rm -rf conftest* | |
18285 | ||
7274f1c7 | 18286 | wx_cv_type_pthread_mutexattr_t=no |
a0b9e27f MB |
18287 | |
18288 | ||
5c6fa7d2 | 18289 | fi |
a0b9e27f MB |
18290 | rm -f conftest* |
18291 | ||
247f5006 | 18292 | fi |
a0b9e27f MB |
18293 | |
18294 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 18295 | |
7274f1c7 | 18296 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
a0b9e27f | 18297 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18298 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
a0b9e27f | 18299 | EOF |
4f14bcd8 | 18300 | |
7274f1c7 | 18301 | else |
a0b9e27f | 18302 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
4f57cf11 | 18303 | echo "configure:18304: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
a0b9e27f MB |
18304 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
18305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18306 | else | |
18307 | ||
18308 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 18309 | #line 18310 "configure" |
3fed1840 | 18310 | #include "confdefs.h" |
4f14bcd8 | 18311 | #include <pthread.h> |
a0b9e27f | 18312 | int main() { |
4f14bcd8 | 18313 | |
7274f1c7 | 18314 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
a0b9e27f MB |
18315 | |
18316 | ; return 0; } | |
18317 | EOF | |
4f57cf11 | 18318 | if { (eval echo configure:18319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18319 | rm -rf conftest* |
18320 | ||
7274f1c7 | 18321 | wx_cv_type_pthread_rec_mutex_init=yes |
a0b9e27f | 18322 | |
698dcdb6 | 18323 | else |
a0b9e27f MB |
18324 | echo "configure: failed program was:" >&5 |
18325 | cat conftest.$ac_ext >&5 | |
18326 | rm -rf conftest* | |
18327 | ||
7274f1c7 | 18328 | wx_cv_type_pthread_rec_mutex_init=no |
a0b9e27f MB |
18329 | |
18330 | ||
5c6fa7d2 | 18331 | fi |
a0b9e27f MB |
18332 | rm -f conftest* |
18333 | ||
247f5006 | 18334 | fi |
a0b9e27f MB |
18335 | |
18336 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 18337 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
a0b9e27f | 18338 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18339 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
a0b9e27f | 18340 | EOF |
3fed1840 | 18341 | |
7274f1c7 | 18342 | else |
a0b9e27f | 18343 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
18344 | fi |
18345 | fi | |
7274f1c7 | 18346 | fi |
3fed1840 | 18347 | |
a0b9e27f MB |
18348 | else |
18349 | if test "$wxUSE_THREADS" = "yes" ; then | |
18350 | case "${host}" in | |
18351 | *-*-mingw32* ) | |
ca8e52b3 | 18352 | echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6 |
4f57cf11 | 18353 | echo "configure:18354: checking if compiler supports -mthreads" >&5 |
ca8e52b3 VZ |
18354 | if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then |
18355 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18356 | else | |
18357 | ||
18358 | CFLAGS_OLD="$CFLAGS" | |
18359 | CFLAGS="$CFLAGS -mthreads" | |
18360 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 18361 | #line 18362 "configure" |
ca8e52b3 VZ |
18362 | #include "confdefs.h" |
18363 | ||
18364 | int main() { | |
18365 | ||
18366 | ; return 0; } | |
18367 | EOF | |
4f57cf11 | 18368 | if { (eval echo configure:18369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ca8e52b3 VZ |
18369 | rm -rf conftest* |
18370 | wx_cv_cflags_mthread=yes | |
18371 | else | |
18372 | echo "configure: failed program was:" >&5 | |
18373 | cat conftest.$ac_ext >&5 | |
18374 | rm -rf conftest* | |
18375 | wx_cv_cflags_mthread=no | |
18376 | ||
18377 | fi | |
18378 | rm -f conftest* | |
18379 | ||
18380 | ||
18381 | fi | |
18382 | ||
18383 | echo "$ac_t""$wx_cv_cflags_mthread" 1>&6 | |
18384 | ||
18385 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
18386 | CXXFLAGS="$CXXFLAGS -mthreads" | |
18387 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
18388 | LDFLAGS="$LDFLAGS -mthreads" | |
18389 | else | |
18390 | CFLAGS="$CFLAGS_OLD" | |
18391 | fi | |
a0b9e27f MB |
18392 | ;; |
18393 | esac | |
18394 | fi | |
4f14bcd8 GD |
18395 | fi |
18396 | ||
18397 | if test "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 18398 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18399 | #define wxUSE_THREADS 1 |
a0b9e27f | 18400 | EOF |
7b6058cd | 18401 | |
8284b0c5 | 18402 | |
4f14bcd8 | 18403 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 18404 | else |
4f14bcd8 | 18405 | if test "$ac_cv_func_strtok_r" = "yes"; then |
a0b9e27f | 18406 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
4f57cf11 | 18407 | echo "configure:18408: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
18408 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
18409 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
a0b9e27f | 18410 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 18411 | else |
a0b9e27f | 18412 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
18413 | fi |
18414 | fi | |
18415 | fi | |
18416 | ||
18417 | if test "$WXGTK20" = 1 ; then | |
a0b9e27f | 18418 | cat >> confdefs.h <<EOF |
4f14bcd8 | 18419 | #define __WXGTK20__ $WXGTK20 |
a0b9e27f | 18420 | EOF |
4f14bcd8 GD |
18421 | |
18422 | WXGTK12=1 | |
10f2d63a | 18423 | fi |
4f14bcd8 GD |
18424 | |
18425 | if test "$WXGTK12" = 1 ; then | |
a0b9e27f | 18426 | cat >> confdefs.h <<EOF |
4f14bcd8 | 18427 | #define __WXGTK12__ $WXGTK12 |
a0b9e27f | 18428 | EOF |
4f14bcd8 | 18429 | |
10f2d63a | 18430 | fi |
698dcdb6 | 18431 | |
4f14bcd8 | 18432 | if test "$WXGTK127" = 1 ; then |
a0b9e27f | 18433 | cat >> confdefs.h <<EOF |
4f14bcd8 | 18434 | #define __WXGTK127__ $WXGTK127 |
a0b9e27f | 18435 | EOF |
4f14bcd8 | 18436 | |
698dcdb6 | 18437 | fi |
10f2d63a | 18438 | |
4f14bcd8 GD |
18439 | WXDEBUG= |
18440 | ||
18441 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
18442 | WXDEBUG="-g" | |
18443 | wxUSE_OPTIMISE=no | |
698dcdb6 | 18444 | fi |
4f14bcd8 GD |
18445 | |
18446 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
18447 | wxUSE_DEBUG_INFO=yes | |
18448 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
18449 | fi |
18450 | ||
4f14bcd8 | 18451 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
a0b9e27f | 18452 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18453 | #define WXDEBUG 1 |
a0b9e27f | 18454 | EOF |
4f14bcd8 GD |
18455 | |
18456 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 18457 | else |
4f14bcd8 GD |
18458 | if test "$wxUSE_GTK" = 1 ; then |
18459 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
18460 | fi | |
18461 | fi | |
18462 | ||
18463 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
a0b9e27f | 18464 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18465 | #define wxUSE_MEMORY_TRACING 1 |
a0b9e27f | 18466 | EOF |
4f14bcd8 | 18467 | |
a0b9e27f | 18468 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18469 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
a0b9e27f | 18470 | EOF |
4f14bcd8 | 18471 | |
a0b9e27f | 18472 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18473 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
a0b9e27f | 18474 | EOF |
4f14bcd8 GD |
18475 | |
18476 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
18477 | fi | |
18478 | ||
18479 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 18480 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
18481 | fi |
18482 | ||
18483 | PROFILE= | |
18484 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 18485 | PROFILE=" -pg" |
10f2d63a VZ |
18486 | fi |
18487 | ||
009fead0 VZ |
18488 | CODE_GEN_FLAGS= |
18489 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 18490 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
18491 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
18492 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 18493 | fi |
4f14bcd8 GD |
18494 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
18495 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
18496 | fi | |
18497 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
18498 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
18499 | fi | |
4f14bcd8 GD |
18500 | if test "$USE_WIN32" = 1 ; then |
18501 | # I'm not even really sure what this was ever added to solve, | |
18502 | # but someone added it for mingw native builds, so I guess | |
18503 | # they had a reason, right?? | |
18504 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
18505 | fi | |
1d1b75ac VZ |
18506 | |
18507 | case "${host}" in | |
18508 | powerpc*-*-aix* ) | |
18509 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
18510 | ;; | |
18511 | esac | |
4f14bcd8 GD |
18512 | fi |
18513 | ||
4f14bcd8 GD |
18514 | if test "$wxUSE_OPTIMISE" = "no" ; then |
18515 | OPTIMISE= | |
18516 | else | |
18517 | if test "$GCC" = yes ; then | |
18518 | OPTIMISE="-O2" | |
18519 | case "${host}" in | |
18520 | i586-*-*|i686-*-* ) | |
18521 | OPTIMISE="${OPTIMISE} " | |
18522 | ;; | |
18523 | esac | |
18524 | else | |
18525 | OPTIMISE="-O" | |
18526 | fi | |
18527 | fi | |
18528 | ||
18529 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
a0b9e27f | 18530 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18531 | #define WXWIN_COMPATIBILITY_2 1 |
a0b9e27f | 18532 | EOF |
4f14bcd8 | 18533 | |
8284b0c5 | 18534 | |
4f14bcd8 GD |
18535 | WXWIN_COMPATIBILITY_2_2="yes" |
18536 | fi | |
18537 | ||
0c9a1c32 | 18538 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
a0b9e27f | 18539 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18540 | #define WXWIN_COMPATIBILITY_2_2 1 |
a0b9e27f | 18541 | EOF |
4f14bcd8 | 18542 | |
10f2d63a VZ |
18543 | fi |
18544 | ||
8284b0c5 | 18545 | |
10f2d63a | 18546 | if test "$wxUSE_GUI" = "yes"; then |
a0b9e27f | 18547 | cat >> confdefs.h <<\EOF |
10f2d63a | 18548 | #define wxUSE_GUI 1 |
a0b9e27f | 18549 | EOF |
10f2d63a | 18550 | |
8284b0c5 | 18551 | |
10f2d63a | 18552 | else |
a0b9e27f | 18553 | cat >> confdefs.h <<\EOF |
10f2d63a | 18554 | #define wxUSE_NOGUI 1 |
a0b9e27f | 18555 | EOF |
10f2d63a VZ |
18556 | |
18557 | fi | |
18558 | ||
8284b0c5 | 18559 | |
10f2d63a | 18560 | if test "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 18561 | cat >> confdefs.h <<\EOF |
10f2d63a | 18562 | #define wxUSE_UNIX 1 |
a0b9e27f | 18563 | EOF |
10f2d63a VZ |
18564 | |
18565 | fi | |
18566 | ||
8284b0c5 | 18567 | |
10f2d63a | 18568 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
a0b9e27f | 18569 | cat >> confdefs.h <<\EOF |
10f2d63a | 18570 | #define wxUSE_APPLE_IEEE 1 |
a0b9e27f | 18571 | EOF |
10f2d63a VZ |
18572 | |
18573 | fi | |
18574 | ||
1e6feb95 | 18575 | if test "$wxUSE_TIMER" = "yes"; then |
a0b9e27f | 18576 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18577 | #define wxUSE_TIMER 1 |
a0b9e27f | 18578 | EOF |
1e6feb95 VZ |
18579 | |
18580 | fi | |
18581 | ||
10f2d63a | 18582 | if test "$wxUSE_WAVE" = "yes"; then |
a0b9e27f | 18583 | cat >> confdefs.h <<\EOF |
10f2d63a | 18584 | #define wxUSE_WAVE 1 |
a0b9e27f | 18585 | EOF |
10f2d63a VZ |
18586 | |
18587 | fi | |
18588 | ||
1e6feb95 | 18589 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
a0b9e27f | 18590 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18591 | #define wxUSE_CMDLINE_PARSER 1 |
a0b9e27f | 18592 | EOF |
1e6feb95 VZ |
18593 | |
18594 | fi | |
18595 | ||
18596 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
a0b9e27f | 18597 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18598 | #define wxUSE_STOPWATCH 1 |
a0b9e27f | 18599 | EOF |
1e6feb95 VZ |
18600 | |
18601 | fi | |
18602 | ||
18603 | if test "$wxUSE_DATETIME" = "yes"; then | |
a0b9e27f | 18604 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18605 | #define wxUSE_DATETIME 1 |
a0b9e27f | 18606 | EOF |
1e6feb95 VZ |
18607 | |
18608 | fi | |
18609 | ||
18610 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
a0b9e27f | 18611 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18612 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 18613 | EOF |
1e6feb95 VZ |
18614 | |
18615 | fi | |
18616 | ||
10f2d63a | 18617 | if test "$wxUSE_FILE" = "yes"; then |
a0b9e27f | 18618 | cat >> confdefs.h <<\EOF |
10f2d63a | 18619 | #define wxUSE_FILE 1 |
a0b9e27f | 18620 | EOF |
10f2d63a VZ |
18621 | |
18622 | fi | |
18623 | ||
1e6feb95 | 18624 | if test "$wxUSE_FFILE" = "yes"; then |
a0b9e27f | 18625 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18626 | #define wxUSE_FFILE 1 |
a0b9e27f | 18627 | EOF |
1e6feb95 VZ |
18628 | |
18629 | fi | |
18630 | ||
24528b0c | 18631 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
a0b9e27f | 18632 | cat >> confdefs.h <<\EOF |
24528b0c | 18633 | #define wxUSE_FILESYSTEM 1 |
a0b9e27f | 18634 | EOF |
24528b0c VS |
18635 | |
18636 | fi | |
18637 | ||
10f2d63a | 18638 | if test "$wxUSE_FS_INET" = "yes"; then |
a0b9e27f | 18639 | cat >> confdefs.h <<\EOF |
10f2d63a | 18640 | #define wxUSE_FS_INET 1 |
a0b9e27f | 18641 | EOF |
10f2d63a VZ |
18642 | |
18643 | fi | |
18644 | ||
18645 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
a0b9e27f | 18646 | cat >> confdefs.h <<\EOF |
10f2d63a | 18647 | #define wxUSE_FS_ZIP 1 |
a0b9e27f | 18648 | EOF |
10f2d63a VZ |
18649 | |
18650 | fi | |
18651 | ||
18652 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
a0b9e27f | 18653 | cat >> confdefs.h <<\EOF |
10f2d63a | 18654 | #define wxUSE_ZIPSTREAM 1 |
a0b9e27f | 18655 | EOF |
10f2d63a VZ |
18656 | |
18657 | fi | |
18658 | ||
eb4efbdc | 18659 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
a0b9e27f | 18660 | cat >> confdefs.h <<\EOF |
eb4efbdc | 18661 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
a0b9e27f | 18662 | EOF |
eb4efbdc VZ |
18663 | |
18664 | fi | |
18665 | ||
4f3c5f06 | 18666 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 18667 | cat >> confdefs.h <<\EOF |
4f3c5f06 | 18668 | #define wxUSE_SNGLINST_CHECKER 1 |
a0b9e27f | 18669 | EOF |
4f3c5f06 VZ |
18670 | |
18671 | fi | |
18672 | ||
10f2d63a | 18673 | if test "$wxUSE_BUSYINFO" = "yes"; then |
a0b9e27f | 18674 | cat >> confdefs.h <<\EOF |
10f2d63a | 18675 | #define wxUSE_BUSYINFO 1 |
a0b9e27f | 18676 | EOF |
10f2d63a VZ |
18677 | |
18678 | fi | |
18679 | ||
18680 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
a0b9e27f | 18681 | cat >> confdefs.h <<\EOF |
10f2d63a | 18682 | #define wxUSE_STD_IOSTREAM 1 |
a0b9e27f | 18683 | EOF |
10f2d63a VZ |
18684 | |
18685 | fi | |
18686 | ||
a3a584a7 | 18687 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
a0b9e27f | 18688 | cat >> confdefs.h <<\EOF |
a3a584a7 | 18689 | #define wxUSE_TEXTBUFFER 1 |
a0b9e27f | 18690 | EOF |
a3a584a7 VZ |
18691 | |
18692 | fi | |
18693 | ||
10f2d63a | 18694 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 18695 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
a0b9e27f | 18696 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 18697 | else |
a0b9e27f | 18698 | cat >> confdefs.h <<\EOF |
10f2d63a | 18699 | #define wxUSE_TEXTFILE 1 |
a0b9e27f | 18700 | EOF |
10f2d63a VZ |
18701 | |
18702 | fi | |
18703 | fi | |
18704 | ||
18705 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18706 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
a0b9e27f | 18707 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 18708 | else |
a0b9e27f | 18709 | cat >> confdefs.h <<\EOF |
10f2d63a | 18710 | #define wxUSE_CONFIG 1 |
a0b9e27f | 18711 | EOF |
10f2d63a VZ |
18712 | |
18713 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18714 | fi | |
18715 | fi | |
18716 | ||
18717 | if test "$wxUSE_INTL" = "yes" ; then | |
18718 | if test "$wxUSE_FILE" != "yes"; then | |
a0b9e27f | 18719 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18720 | else |
a0b9e27f | 18721 | cat >> confdefs.h <<\EOF |
10f2d63a | 18722 | #define wxUSE_INTL 1 |
a0b9e27f | 18723 | EOF |
10f2d63a VZ |
18724 | |
18725 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18726 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18727 | fi |
18728 | fi | |
18729 | ||
18730 | if test "$wxUSE_LOG" = "yes"; then | |
a0b9e27f | 18731 | cat >> confdefs.h <<\EOF |
10f2d63a | 18732 | #define wxUSE_LOG 1 |
a0b9e27f | 18733 | EOF |
10f2d63a | 18734 | |
8284b0c5 | 18735 | |
d73be714 | 18736 | if test "$wxUSE_LOGGUI" = "yes"; then |
a0b9e27f | 18737 | cat >> confdefs.h <<\EOF |
d73be714 | 18738 | #define wxUSE_LOGGUI 1 |
a0b9e27f | 18739 | EOF |
d73be714 VZ |
18740 | |
18741 | fi | |
18742 | ||
18743 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
a0b9e27f | 18744 | cat >> confdefs.h <<\EOF |
d73be714 | 18745 | #define wxUSE_LOGWINDOW 1 |
a0b9e27f | 18746 | EOF |
69d27ff7 MB |
18747 | |
18748 | fi | |
18749 | ||
18750 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
a0b9e27f | 18751 | cat >> confdefs.h <<\EOF |
69d27ff7 | 18752 | #define wxUSE_LOG_DIALOG 1 |
a0b9e27f | 18753 | EOF |
d73be714 VZ |
18754 | |
18755 | fi | |
10f2d63a VZ |
18756 | fi |
18757 | ||
18758 | if test "$wxUSE_LONGLONG" = "yes"; then | |
a0b9e27f | 18759 | cat >> confdefs.h <<\EOF |
10f2d63a | 18760 | #define wxUSE_LONGLONG 1 |
a0b9e27f | 18761 | EOF |
10f2d63a VZ |
18762 | |
18763 | fi | |
18764 | ||
e8f65ba6 | 18765 | if test "$wxUSE_GEOMETRY" = "yes"; then |
a0b9e27f | 18766 | cat >> confdefs.h <<\EOF |
e8f65ba6 | 18767 | #define wxUSE_GEOMETRY 1 |
a0b9e27f | 18768 | EOF |
e8f65ba6 RR |
18769 | |
18770 | fi | |
18771 | ||
10f2d63a | 18772 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
a0b9e27f | 18773 | cat >> confdefs.h <<\EOF |
10f2d63a | 18774 | #define wxUSE_DIALUP_MANAGER 1 |
a0b9e27f | 18775 | EOF |
10f2d63a | 18776 | |
70f7a477 | 18777 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18778 | fi |
18779 | ||
18780 | if test "$wxUSE_STREAMS" = "yes" ; then | |
a0b9e27f | 18781 | cat >> confdefs.h <<\EOF |
10f2d63a | 18782 | #define wxUSE_STREAMS 1 |
a0b9e27f | 18783 | EOF |
10f2d63a VZ |
18784 | |
18785 | fi | |
18786 | ||
5c6fa7d2 | 18787 | |
8284b0c5 | 18788 | if test "$wxUSE_DATETIME" = "yes"; then |
a0b9e27f | 18789 | for ac_func in strptime |
83307f33 | 18790 | do |
a0b9e27f | 18791 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 18792 | echo "configure:18793: checking for $ac_func" >&5 |
a0b9e27f MB |
18793 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18794 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18795 | else | |
18796 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 18797 | #line 18798 "configure" |
83307f33 VZ |
18798 | #include "confdefs.h" |
18799 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18800 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18801 | #include <assert.h> |
18802 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18803 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18804 | builtin and then its argument prototype would still apply. */ |
18805 | char $ac_func(); | |
18806 | ||
18807 | int main() { | |
18808 | ||
83307f33 VZ |
18809 | /* The GNU C library defines this for functions which it implements |
18810 | to always fail with ENOSYS. Some functions are actually named | |
18811 | something starting with __ and the normal name is an alias. */ | |
18812 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18813 | choke me | |
18814 | #else | |
a0b9e27f | 18815 | $ac_func(); |
83307f33 VZ |
18816 | #endif |
18817 | ||
a0b9e27f MB |
18818 | ; return 0; } |
18819 | EOF | |
4f57cf11 | 18820 | if { (eval echo configure:18821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18821 | rm -rf conftest* |
18822 | eval "ac_cv_func_$ac_func=yes" | |
18823 | else | |
18824 | echo "configure: failed program was:" >&5 | |
18825 | cat conftest.$ac_ext >&5 | |
18826 | rm -rf conftest* | |
18827 | eval "ac_cv_func_$ac_func=no" | |
18828 | fi | |
18829 | rm -f conftest* | |
18830 | fi | |
83307f33 | 18831 | |
a0b9e27f MB |
18832 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18833 | echo "$ac_t""yes" 1>&6 | |
18834 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18835 | cat >> confdefs.h <<EOF | |
18836 | #define $ac_tr_func 1 | |
18837 | EOF | |
18838 | ||
18839 | else | |
18840 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
18841 | fi |
18842 | done | |
18843 | ||
5c6fa7d2 | 18844 | |
a0b9e27f | 18845 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
4f57cf11 | 18846 | echo "configure:18847: checking for timezone variable in <time.h>" >&5 |
a0b9e27f MB |
18847 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
18848 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 18849 | else |
a0b9e27f MB |
18850 | |
18851 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 18852 | #line 18853 "configure" |
360d6699 VZ |
18853 | #include "confdefs.h" |
18854 | ||
b4085ce6 | 18855 | #include <time.h> |
a0b9e27f MB |
18856 | |
18857 | int main() { | |
360d6699 VZ |
18858 | |
18859 | int tz; | |
4f11a343 | 18860 | tz = timezone; |
a0b9e27f MB |
18861 | |
18862 | ; return 0; } | |
18863 | EOF | |
4f57cf11 | 18864 | if { (eval echo configure:18865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18865 | rm -rf conftest* |
18866 | ||
4f11a343 | 18867 | wx_cv_var_timezone=timezone |
a0b9e27f | 18868 | |
360d6699 | 18869 | else |
a0b9e27f MB |
18870 | echo "configure: failed program was:" >&5 |
18871 | cat conftest.$ac_ext >&5 | |
18872 | rm -rf conftest* | |
18873 | ||
18874 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 18875 | #line 18876 "configure" |
360d6699 VZ |
18876 | #include "confdefs.h" |
18877 | ||
b4085ce6 | 18878 | #include <time.h> |
a0b9e27f MB |
18879 | |
18880 | int main() { | |
360d6699 VZ |
18881 | |
18882 | int tz; | |
18883 | tz = _timezone; | |
a0b9e27f MB |
18884 | |
18885 | ; return 0; } | |
18886 | EOF | |
4f57cf11 | 18887 | if { (eval echo configure:18888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18888 | rm -rf conftest* |
18889 | ||
360d6699 | 18890 | wx_cv_var_timezone=_timezone |
a0b9e27f | 18891 | |
5357c8e8 | 18892 | else |
a0b9e27f MB |
18893 | echo "configure: failed program was:" >&5 |
18894 | cat conftest.$ac_ext >&5 | |
18895 | rm -rf conftest* | |
18896 | ||
18897 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 18898 | #line 18899 "configure" |
5357c8e8 VZ |
18899 | #include "confdefs.h" |
18900 | ||
b4085ce6 | 18901 | #include <time.h> |
a0b9e27f MB |
18902 | |
18903 | int main() { | |
5357c8e8 VZ |
18904 | |
18905 | int tz; | |
4f11a343 | 18906 | tz = __timezone; |
a0b9e27f MB |
18907 | |
18908 | ; return 0; } | |
18909 | EOF | |
4f57cf11 | 18910 | if { (eval echo configure:18911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18911 | rm -rf conftest* |
18912 | ||
4f11a343 | 18913 | wx_cv_var_timezone=__timezone |
a0b9e27f | 18914 | |
360d6699 | 18915 | else |
a0b9e27f MB |
18916 | echo "configure: failed program was:" >&5 |
18917 | cat conftest.$ac_ext >&5 | |
18918 | rm -rf conftest* | |
18919 | ||
f9bc1684 | 18920 | if test "$USE_DOS" = 0 ; then |
a0b9e27f | 18921 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 18922 | fi |
a0b9e27f MB |
18923 | |
18924 | ||
328a083c | 18925 | fi |
a0b9e27f MB |
18926 | rm -f conftest* |
18927 | ||
18928 | ||
7b4a847f | 18929 | fi |
a0b9e27f MB |
18930 | rm -f conftest* |
18931 | ||
18932 | ||
5c6fa7d2 | 18933 | fi |
a0b9e27f MB |
18934 | rm -f conftest* |
18935 | ||
18936 | ||
247f5006 | 18937 | fi |
a0b9e27f MB |
18938 | |
18939 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 18940 | |
f9bc1684 | 18941 | if test "x$wx_cv_var_timezone" != x ; then |
a0b9e27f | 18942 | cat >> confdefs.h <<EOF |
360d6699 | 18943 | #define WX_TIMEZONE $wx_cv_var_timezone |
a0b9e27f | 18944 | EOF |
360d6699 | 18945 | |
f9bc1684 | 18946 | fi |
698dcdb6 | 18947 | |
a0b9e27f | 18948 | for ac_func in localtime |
afc31813 | 18949 | do |
a0b9e27f | 18950 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 18951 | echo "configure:18952: checking for $ac_func" >&5 |
a0b9e27f MB |
18952 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18953 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18954 | else | |
18955 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 18956 | #line 18957 "configure" |
10f2d63a | 18957 | #include "confdefs.h" |
afc31813 | 18958 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18959 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
18960 | #include <assert.h> |
18961 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18962 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18963 | builtin and then its argument prototype would still apply. */ |
18964 | char $ac_func(); | |
18965 | ||
18966 | int main() { | |
18967 | ||
afc31813 VZ |
18968 | /* The GNU C library defines this for functions which it implements |
18969 | to always fail with ENOSYS. Some functions are actually named | |
18970 | something starting with __ and the normal name is an alias. */ | |
18971 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18972 | choke me | |
18973 | #else | |
a0b9e27f | 18974 | $ac_func(); |
afc31813 VZ |
18975 | #endif |
18976 | ||
a0b9e27f MB |
18977 | ; return 0; } |
18978 | EOF | |
4f57cf11 | 18979 | if { (eval echo configure:18980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18980 | rm -rf conftest* |
18981 | eval "ac_cv_func_$ac_func=yes" | |
18982 | else | |
18983 | echo "configure: failed program was:" >&5 | |
18984 | cat conftest.$ac_ext >&5 | |
18985 | rm -rf conftest* | |
18986 | eval "ac_cv_func_$ac_func=no" | |
18987 | fi | |
18988 | rm -f conftest* | |
18989 | fi | |
afc31813 | 18990 | |
a0b9e27f MB |
18991 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18992 | echo "$ac_t""yes" 1>&6 | |
18993 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18994 | cat >> confdefs.h <<EOF | |
18995 | #define $ac_tr_func 1 | |
18996 | EOF | |
18997 | ||
18998 | else | |
18999 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
19000 | fi |
19001 | done | |
19002 | ||
5c6fa7d2 | 19003 | |
8284b0c5 | 19004 | if test "$ac_cv_func_localtime" = "yes"; then |
a0b9e27f | 19005 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
4f57cf11 | 19006 | echo "configure:19007: checking for tm_gmtoff in struct tm" >&5 |
a0b9e27f MB |
19007 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
19008 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19009 | else | |
19010 | ||
19011 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 19012 | #line 19013 "configure" |
0470b1e6 VZ |
19013 | #include "confdefs.h" |
19014 | ||
b4085ce6 | 19015 | #include <time.h> |
a0b9e27f MB |
19016 | |
19017 | int main() { | |
0470b1e6 VZ |
19018 | |
19019 | struct tm tm; | |
19020 | tm.tm_gmtoff++; | |
a0b9e27f MB |
19021 | |
19022 | ; return 0; } | |
19023 | EOF | |
4f57cf11 | 19024 | if { (eval echo configure:19025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19025 | rm -rf conftest* |
19026 | ||
f03a98d8 | 19027 | wx_cv_struct_tm_has_gmtoff=yes |
a0b9e27f | 19028 | |
0470b1e6 | 19029 | else |
a0b9e27f MB |
19030 | echo "configure: failed program was:" >&5 |
19031 | cat conftest.$ac_ext >&5 | |
19032 | rm -rf conftest* | |
19033 | wx_cv_struct_tm_has_gmtoff=no | |
19034 | ||
5c6fa7d2 | 19035 | fi |
a0b9e27f MB |
19036 | rm -f conftest* |
19037 | ||
247f5006 | 19038 | fi |
a0b9e27f MB |
19039 | |
19040 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
19041 | fi |
19042 | ||
19043 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
a0b9e27f | 19044 | cat >> confdefs.h <<\EOF |
6232543b | 19045 | #define WX_GMTOFF_IN_TM 1 |
a0b9e27f | 19046 | EOF |
0470b1e6 | 19047 | |
3fcdd07b VZ |
19048 | fi |
19049 | ||
a0b9e27f | 19050 | for ac_func in gettimeofday ftime |
3fcdd07b | 19051 | do |
a0b9e27f | 19052 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 19053 | echo "configure:19054: checking for $ac_func" >&5 |
a0b9e27f MB |
19054 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19055 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19056 | else | |
19057 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 19058 | #line 19059 "configure" |
3fcdd07b VZ |
19059 | #include "confdefs.h" |
19060 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19061 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
19062 | #include <assert.h> |
19063 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19064 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19065 | builtin and then its argument prototype would still apply. */ |
19066 | char $ac_func(); | |
19067 | ||
19068 | int main() { | |
19069 | ||
3fcdd07b VZ |
19070 | /* The GNU C library defines this for functions which it implements |
19071 | to always fail with ENOSYS. Some functions are actually named | |
19072 | something starting with __ and the normal name is an alias. */ | |
19073 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19074 | choke me | |
19075 | #else | |
a0b9e27f | 19076 | $ac_func(); |
3fcdd07b VZ |
19077 | #endif |
19078 | ||
a0b9e27f MB |
19079 | ; return 0; } |
19080 | EOF | |
4f57cf11 | 19081 | if { (eval echo configure:19082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19082 | rm -rf conftest* |
19083 | eval "ac_cv_func_$ac_func=yes" | |
19084 | else | |
19085 | echo "configure: failed program was:" >&5 | |
19086 | cat conftest.$ac_ext >&5 | |
19087 | rm -rf conftest* | |
19088 | eval "ac_cv_func_$ac_func=no" | |
19089 | fi | |
19090 | rm -f conftest* | |
19091 | fi | |
19092 | ||
19093 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19094 | echo "$ac_t""yes" 1>&6 | |
19095 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19096 | cat >> confdefs.h <<EOF | |
19097 | #define $ac_tr_func 1 | |
19098 | EOF | |
3fcdd07b | 19099 | break |
a0b9e27f MB |
19100 | else |
19101 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
19102 | fi |
19103 | done | |
19104 | ||
698dcdb6 | 19105 | |
8284b0c5 | 19106 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
a0b9e27f | 19107 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
4f57cf11 | 19108 | echo "configure:19109: checking whether gettimeofday takes two arguments" >&5 |
a0b9e27f MB |
19109 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
19110 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19111 | else | |
19112 | ||
19113 | ||
19114 | ac_ext=C | |
19115 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 19116 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
19117 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19118 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19119 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 19120 | |
8284b0c5 | 19121 | |
a0b9e27f | 19122 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 19123 | #line 19124 "configure" |
10f2d63a | 19124 | #include "confdefs.h" |
afc31813 VZ |
19125 | |
19126 | #include <sys/time.h> | |
19127 | #include <unistd.h> | |
a0b9e27f MB |
19128 | |
19129 | int main() { | |
afc31813 VZ |
19130 | |
19131 | struct timeval tv; | |
776862b4 | 19132 | gettimeofday(&tv, NULL); |
a0b9e27f MB |
19133 | |
19134 | ; return 0; } | |
19135 | EOF | |
4f57cf11 | 19136 | if { (eval echo configure:19137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19137 | rm -rf conftest* |
afc31813 | 19138 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 19139 | else |
a0b9e27f MB |
19140 | echo "configure: failed program was:" >&5 |
19141 | cat conftest.$ac_ext >&5 | |
19142 | rm -rf conftest* | |
19143 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 19144 | #line 19145 "configure" |
10f2d63a | 19145 | #include "confdefs.h" |
afc31813 VZ |
19146 | |
19147 | #include <sys/time.h> | |
19148 | #include <unistd.h> | |
a0b9e27f MB |
19149 | |
19150 | int main() { | |
afc31813 VZ |
19151 | |
19152 | struct timeval tv; | |
19153 | gettimeofday(&tv); | |
a0b9e27f MB |
19154 | |
19155 | ; return 0; } | |
19156 | EOF | |
4f57cf11 | 19157 | if { (eval echo configure:19158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19158 | rm -rf conftest* |
afc31813 | 19159 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 19160 | else |
a0b9e27f MB |
19161 | echo "configure: failed program was:" >&5 |
19162 | cat conftest.$ac_ext >&5 | |
19163 | rm -rf conftest* | |
19164 | ||
19165 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 19166 | wx_cv_func_gettimeofday_has_2_args=unknown |
a0b9e27f MB |
19167 | |
19168 | ||
10f2d63a | 19169 | fi |
a0b9e27f MB |
19170 | rm -f conftest* |
19171 | ||
10f2d63a | 19172 | fi |
a0b9e27f | 19173 | rm -f conftest* |
afc31813 | 19174 | ac_ext=c |
a0b9e27f | 19175 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 19176 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
19177 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19178 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19179 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 19180 | |
a0b9e27f | 19181 | |
247f5006 | 19182 | fi |
a0b9e27f MB |
19183 | |
19184 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 19185 | |
afc31813 | 19186 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
a0b9e27f | 19187 | cat >> confdefs.h <<\EOF |
afc31813 | 19188 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
a0b9e27f | 19189 | EOF |
afc31813 VZ |
19190 | |
19191 | fi | |
19192 | fi | |
19193 | ||
a0b9e27f | 19194 | cat >> confdefs.h <<\EOF |
afc31813 | 19195 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 19196 | EOF |
afc31813 VZ |
19197 | |
19198 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
19199 | fi | |
19200 | ||
8284b0c5 | 19201 | |
52127426 | 19202 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 19203 | if test "$wxUSE_MGL" = "1"; then |
a0b9e27f | 19204 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
19205 | wxUSE_SOCKETS="no" |
19206 | fi | |
0feee163 | 19207 | fi |
b089607b | 19208 | |
0feee163 VZ |
19209 | if test "$wxUSE_SOCKETS" = "yes"; then |
19210 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 19211 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
4f57cf11 | 19212 | echo "configure:19213: checking for socket" >&5 |
a0b9e27f MB |
19213 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
19214 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19215 | else |
a0b9e27f | 19216 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 19217 | #line 19218 "configure" |
c63c7106 VZ |
19218 | #include "confdefs.h" |
19219 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19220 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
19221 | #include <assert.h> |
19222 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19223 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19224 | builtin and then its argument prototype would still apply. */ |
19225 | char socket(); | |
19226 | ||
19227 | int main() { | |
19228 | ||
c63c7106 VZ |
19229 | /* The GNU C library defines this for functions which it implements |
19230 | to always fail with ENOSYS. Some functions are actually named | |
19231 | something starting with __ and the normal name is an alias. */ | |
19232 | #if defined (__stub_socket) || defined (__stub___socket) | |
19233 | choke me | |
19234 | #else | |
a0b9e27f | 19235 | socket(); |
c63c7106 VZ |
19236 | #endif |
19237 | ||
a0b9e27f MB |
19238 | ; return 0; } |
19239 | EOF | |
4f57cf11 | 19240 | if { (eval echo configure:19241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19241 | rm -rf conftest* |
19242 | eval "ac_cv_func_socket=yes" | |
19243 | else | |
19244 | echo "configure: failed program was:" >&5 | |
19245 | cat conftest.$ac_ext >&5 | |
19246 | rm -rf conftest* | |
19247 | eval "ac_cv_func_socket=no" | |
19248 | fi | |
19249 | rm -f conftest* | |
19250 | fi | |
19251 | ||
19252 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
19253 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
19254 | : |
19255 | else | |
a0b9e27f MB |
19256 | echo "$ac_t""no" 1>&6 |
19257 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
4f57cf11 | 19258 | echo "configure:19259: checking for socket in -lsocket" >&5 |
a0b9e27f MB |
19259 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
19260 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19261 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19262 | else |
a0b9e27f | 19263 | ac_save_LIBS="$LIBS" |
c63c7106 | 19264 | LIBS="-lsocket $LIBS" |
a0b9e27f | 19265 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 19266 | #line 19267 "configure" |
c63c7106 VZ |
19267 | #include "confdefs.h" |
19268 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19269 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19270 | builtin and then its argument prototype would still apply. */ |
19271 | char socket(); | |
19272 | ||
19273 | int main() { | |
19274 | socket() | |
19275 | ; return 0; } | |
19276 | EOF | |
4f57cf11 | 19277 | if { (eval echo configure:19278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19278 | rm -rf conftest* |
19279 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19280 | else | |
19281 | echo "configure: failed program was:" >&5 | |
19282 | cat conftest.$ac_ext >&5 | |
19283 | rm -rf conftest* | |
19284 | eval "ac_cv_lib_$ac_lib_var=no" | |
19285 | fi | |
19286 | rm -f conftest* | |
19287 | LIBS="$ac_save_LIBS" | |
19288 | ||
19289 | fi | |
19290 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19291 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
19292 | if test "$INET_LINK" != " -lsocket"; then |
19293 | INET_LINK="$INET_LINK -lsocket" | |
19294 | fi | |
c63c7106 | 19295 | else |
a0b9e27f | 19296 | echo "$ac_t""no" 1>&6 |
afc31813 | 19297 | |
a0b9e27f | 19298 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 19299 | wxUSE_SOCKETS=no |
a0b9e27f MB |
19300 | |
19301 | ||
6232543b | 19302 | fi |
b089607b | 19303 | |
a0b9e27f | 19304 | |
1e487827 | 19305 | fi |
afc31813 | 19306 | |
3a922bb4 | 19307 | fi |
0feee163 | 19308 | fi |
51a9faba | 19309 | |
0feee163 VZ |
19310 | if test "$wxUSE_SOCKETS" = "yes" ; then |
19311 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 19312 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
4f57cf11 | 19313 | echo "configure:19314: checking what is the type of the third argument of getsockname" >&5 |
a0b9e27f MB |
19314 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
19315 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19316 | else | |
19317 | ||
19318 | ||
19319 | ac_ext=C | |
19320 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 19321 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
19322 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19323 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19324 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 19325 | |
8284b0c5 | 19326 | |
a0b9e27f | 19327 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 19328 | #line 19329 "configure" |
afc31813 | 19329 | #include "confdefs.h" |
51a9faba | 19330 | |
3a922bb4 RL |
19331 | #include <sys/types.h> |
19332 | #include <sys/socket.h> | |
a0b9e27f MB |
19333 | |
19334 | int main() { | |
51a9faba | 19335 | |
3a922bb4 RL |
19336 | socklen_t len; |
19337 | getsockname(0, 0, &len); | |
a0b9e27f MB |
19338 | |
19339 | ; return 0; } | |
19340 | EOF | |
4f57cf11 | 19341 | if { (eval echo configure:19342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19342 | rm -rf conftest* |
51a9faba | 19343 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 19344 | else |
a0b9e27f MB |
19345 | echo "configure: failed program was:" >&5 |
19346 | cat conftest.$ac_ext >&5 | |
19347 | rm -rf conftest* | |
19348 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 19349 | #line 19350 "configure" |
afc31813 | 19350 | #include "confdefs.h" |
51a9faba | 19351 | |
3a922bb4 RL |
19352 | #include <sys/types.h> |
19353 | #include <sys/socket.h> | |
a0b9e27f MB |
19354 | |
19355 | int main() { | |
51a9faba | 19356 | |
3a922bb4 RL |
19357 | size_t len; |
19358 | getsockname(0, 0, &len); | |
a0b9e27f MB |
19359 | |
19360 | ; return 0; } | |
19361 | EOF | |
4f57cf11 | 19362 | if { (eval echo configure:19363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19363 | rm -rf conftest* |
51a9faba | 19364 | wx_cv_type_getsockname3=size_t |
afc31813 | 19365 | else |
a0b9e27f MB |
19366 | echo "configure: failed program was:" >&5 |
19367 | cat conftest.$ac_ext >&5 | |
19368 | rm -rf conftest* | |
19369 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 19370 | #line 19371 "configure" |
afc31813 | 19371 | #include "confdefs.h" |
51a9faba | 19372 | |
3a922bb4 RL |
19373 | #include <sys/types.h> |
19374 | #include <sys/socket.h> | |
a0b9e27f MB |
19375 | |
19376 | int main() { | |
51a9faba | 19377 | |
3a922bb4 RL |
19378 | int len; |
19379 | getsockname(0, 0, &len); | |
a0b9e27f MB |
19380 | |
19381 | ; return 0; } | |
19382 | EOF | |
4f57cf11 | 19383 | if { (eval echo configure:19384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19384 | rm -rf conftest* |
51a9faba | 19385 | wx_cv_type_getsockname3=int |
afc31813 | 19386 | else |
a0b9e27f MB |
19387 | echo "configure: failed program was:" >&5 |
19388 | cat conftest.$ac_ext >&5 | |
19389 | rm -rf conftest* | |
19390 | wx_cv_type_getsockname3=unknown | |
19391 | ||
afc31813 | 19392 | fi |
a0b9e27f MB |
19393 | rm -f conftest* |
19394 | ||
afc31813 | 19395 | fi |
a0b9e27f MB |
19396 | rm -f conftest* |
19397 | ||
afc31813 | 19398 | fi |
a0b9e27f | 19399 | rm -f conftest* |
51a9faba | 19400 | |
3a922bb4 | 19401 | ac_ext=c |
a0b9e27f | 19402 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 19403 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
19404 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19405 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19406 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 19407 | |
a0b9e27f | 19408 | |
247f5006 | 19409 | fi |
a0b9e27f MB |
19410 | |
19411 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 19412 | |
3a922bb4 RL |
19413 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
19414 | wxUSE_SOCKETS=no | |
a0b9e27f | 19415 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 19416 | else |
a0b9e27f | 19417 | cat >> confdefs.h <<EOF |
51a9faba | 19418 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
a0b9e27f | 19419 | EOF |
51a9faba | 19420 | |
3a922bb4 | 19421 | fi |
51a9faba VZ |
19422 | fi |
19423 | fi | |
afc31813 | 19424 | |
51a9faba | 19425 | if test "$wxUSE_SOCKETS" = "yes" ; then |
a0b9e27f | 19426 | cat >> confdefs.h <<\EOF |
afc31813 | 19427 | #define wxUSE_SOCKETS 1 |
a0b9e27f | 19428 | EOF |
afc31813 | 19429 | |
70f7a477 | 19430 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
19431 | fi |
19432 | ||
8284b0c5 | 19433 | |
dc3d889d VZ |
19434 | if test "$wxUSE_GUI" = "yes"; then |
19435 | ||
156b2523 | 19436 | if test "$TOOLKIT" = "MAC"; then |
a0b9e27f | 19437 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
19438 | wxUSE_JOYSTICK=no |
19439 | fi | |
19440 | if test "$TOOLKIT" = "MOTIF"; then | |
a0b9e27f | 19441 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 19442 | wxUSE_JOYSTICK=no |
f79bd02d JS |
19443 | fi |
19444 | if test "$TOOLKIT" = "X11"; then | |
a0b9e27f | 19445 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 19446 | wxUSE_JOYSTICK=no |
156b2523 GD |
19447 | fi |
19448 | ||
3a922bb4 RL |
19449 | if test "$TOOLKIT" != "MSW"; then |
19450 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
a0b9e27f | 19451 | for ac_hdr in linux/joystick.h |
10f2d63a | 19452 | do |
a0b9e27f MB |
19453 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19454 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f57cf11 | 19455 | echo "configure:19456: checking for $ac_hdr" >&5 |
a0b9e27f MB |
19456 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19457 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19458 | else | |
19459 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 19460 | #line 19461 "configure" |
247f5006 | 19461 | #include "confdefs.h" |
a0b9e27f MB |
19462 | #include <$ac_hdr> |
19463 | EOF | |
19464 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f57cf11 | 19465 | { (eval echo configure:19466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
19466 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19467 | if test -z "$ac_err"; then | |
19468 | rm -rf conftest* | |
19469 | eval "ac_cv_header_$ac_safe=yes" | |
19470 | else | |
19471 | echo "$ac_err" >&5 | |
19472 | echo "configure: failed program was:" >&5 | |
247f5006 | 19473 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
19474 | rm -rf conftest* |
19475 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 19476 | fi |
a0b9e27f | 19477 | rm -f conftest* |
10f2d63a | 19478 | fi |
a0b9e27f MB |
19479 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19480 | echo "$ac_t""yes" 1>&6 | |
19481 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19482 | cat >> confdefs.h <<EOF | |
19483 | #define $ac_tr_hdr 1 | |
19484 | EOF | |
19485 | ||
19486 | else | |
19487 | echo "$ac_t""no" 1>&6 | |
247f5006 | 19488 | fi |
10f2d63a VZ |
19489 | done |
19490 | ||
3a922bb4 RL |
19491 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
19492 | wxUSE_JOYSTICK=no | |
a0b9e27f | 19493 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
19494 | fi |
19495 | fi | |
19496 | fi | |
b089607b | 19497 | |
3a922bb4 | 19498 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a0b9e27f | 19499 | cat >> confdefs.h <<\EOF |
10f2d63a | 19500 | #define wxUSE_JOYSTICK 1 |
a0b9e27f | 19501 | EOF |
10f2d63a | 19502 | |
3a922bb4 RL |
19503 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
19504 | fi | |
dc3d889d VZ |
19505 | fi |
19506 | ||
8284b0c5 | 19507 | |
b089607b VZ |
19508 | if test "$TOOLKIT" != "MSW"; then |
19509 | ||
3a922bb4 RL |
19510 | HAVE_DL_FUNCS=0 |
19511 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 19512 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
19513 | if test "$USE_DARWIN" = 1; then |
19514 | HAVE_DL_FUNCS=1 | |
19515 | else | |
a0b9e27f | 19516 | for ac_func in dlopen |
10f2d63a | 19517 | do |
a0b9e27f | 19518 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 19519 | echo "configure:19520: checking for $ac_func" >&5 |
a0b9e27f MB |
19520 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19521 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19522 | else | |
19523 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 19524 | #line 19525 "configure" |
10f2d63a VZ |
19525 | #include "confdefs.h" |
19526 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19527 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19528 | #include <assert.h> |
19529 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19530 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19531 | builtin and then its argument prototype would still apply. */ |
19532 | char $ac_func(); | |
19533 | ||
19534 | int main() { | |
19535 | ||
10f2d63a VZ |
19536 | /* The GNU C library defines this for functions which it implements |
19537 | to always fail with ENOSYS. Some functions are actually named | |
19538 | something starting with __ and the normal name is an alias. */ | |
19539 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19540 | choke me | |
19541 | #else | |
a0b9e27f | 19542 | $ac_func(); |
10f2d63a VZ |
19543 | #endif |
19544 | ||
a0b9e27f MB |
19545 | ; return 0; } |
19546 | EOF | |
4f57cf11 | 19547 | if { (eval echo configure:19548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19548 | rm -rf conftest* |
19549 | eval "ac_cv_func_$ac_func=yes" | |
19550 | else | |
19551 | echo "configure: failed program was:" >&5 | |
19552 | cat conftest.$ac_ext >&5 | |
19553 | rm -rf conftest* | |
19554 | eval "ac_cv_func_$ac_func=no" | |
19555 | fi | |
19556 | rm -f conftest* | |
19557 | fi | |
19558 | ||
19559 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19560 | echo "$ac_t""yes" 1>&6 | |
19561 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19562 | cat >> confdefs.h <<EOF | |
19563 | #define $ac_tr_func 1 | |
19564 | EOF | |
19565 | ||
19566 | cat >> confdefs.h <<\EOF | |
10f2d63a | 19567 | #define HAVE_DLOPEN 1 |
a0b9e27f | 19568 | EOF |
10f2d63a | 19569 | |
3a922bb4 | 19570 | HAVE_DL_FUNCS=1 |
a0b9e27f | 19571 | |
10f2d63a | 19572 | else |
a0b9e27f MB |
19573 | echo "$ac_t""no" 1>&6 |
19574 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
4f57cf11 | 19575 | echo "configure:19576: checking for dlopen in -ldl" >&5 |
a0b9e27f MB |
19576 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
19577 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19578 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19579 | else |
a0b9e27f | 19580 | ac_save_LIBS="$LIBS" |
10f2d63a | 19581 | LIBS="-ldl $LIBS" |
a0b9e27f | 19582 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 19583 | #line 19584 "configure" |
10f2d63a VZ |
19584 | #include "confdefs.h" |
19585 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19586 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19587 | builtin and then its argument prototype would still apply. */ |
19588 | char dlopen(); | |
19589 | ||
19590 | int main() { | |
19591 | dlopen() | |
19592 | ; return 0; } | |
19593 | EOF | |
4f57cf11 | 19594 | if { (eval echo configure:19595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19595 | rm -rf conftest* |
19596 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19597 | else | |
19598 | echo "configure: failed program was:" >&5 | |
19599 | cat conftest.$ac_ext >&5 | |
19600 | rm -rf conftest* | |
19601 | eval "ac_cv_lib_$ac_lib_var=no" | |
19602 | fi | |
19603 | rm -f conftest* | |
19604 | LIBS="$ac_save_LIBS" | |
19605 | ||
19606 | fi | |
19607 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19608 | echo "$ac_t""yes" 1>&6 | |
19609 | ||
19610 | cat >> confdefs.h <<\EOF | |
10f2d63a | 19611 | #define HAVE_DLOPEN 1 |
a0b9e27f | 19612 | EOF |
10f2d63a | 19613 | |
3a922bb4 | 19614 | HAVE_DL_FUNCS=1 |
3d63bc3a | 19615 | DL_LINK=" -ldl$DL_LINK" |
a0b9e27f | 19616 | |
10f2d63a | 19617 | else |
a0b9e27f | 19618 | echo "$ac_t""no" 1>&6 |
10f2d63a | 19619 | |
a0b9e27f | 19620 | for ac_func in shl_load |
10f2d63a | 19621 | do |
a0b9e27f | 19622 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 19623 | echo "configure:19624: checking for $ac_func" >&5 |
a0b9e27f MB |
19624 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19625 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19626 | else | |
19627 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 19628 | #line 19629 "configure" |
10f2d63a VZ |
19629 | #include "confdefs.h" |
19630 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19631 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19632 | #include <assert.h> |
19633 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19634 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19635 | builtin and then its argument prototype would still apply. */ |
19636 | char $ac_func(); | |
19637 | ||
19638 | int main() { | |
19639 | ||
10f2d63a VZ |
19640 | /* The GNU C library defines this for functions which it implements |
19641 | to always fail with ENOSYS. Some functions are actually named | |
19642 | something starting with __ and the normal name is an alias. */ | |
19643 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19644 | choke me | |
19645 | #else | |
a0b9e27f | 19646 | $ac_func(); |
10f2d63a VZ |
19647 | #endif |
19648 | ||
a0b9e27f MB |
19649 | ; return 0; } |
19650 | EOF | |
4f57cf11 | 19651 | if { (eval echo configure:19652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19652 | rm -rf conftest* |
19653 | eval "ac_cv_func_$ac_func=yes" | |
19654 | else | |
19655 | echo "configure: failed program was:" >&5 | |
19656 | cat conftest.$ac_ext >&5 | |
19657 | rm -rf conftest* | |
19658 | eval "ac_cv_func_$ac_func=no" | |
19659 | fi | |
19660 | rm -f conftest* | |
19661 | fi | |
19662 | ||
19663 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19664 | echo "$ac_t""yes" 1>&6 | |
19665 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19666 | cat >> confdefs.h <<EOF | |
19667 | #define $ac_tr_func 1 | |
19668 | EOF | |
19669 | ||
19670 | cat >> confdefs.h <<\EOF | |
10f2d63a | 19671 | #define HAVE_SHL_LOAD 1 |
a0b9e27f | 19672 | EOF |
10f2d63a | 19673 | |
3a922bb4 | 19674 | HAVE_SHL_FUNCS=1 |
a0b9e27f | 19675 | |
10f2d63a | 19676 | else |
a0b9e27f MB |
19677 | echo "$ac_t""no" 1>&6 |
19678 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
4f57cf11 | 19679 | echo "configure:19680: checking for dld in -lshl_load" >&5 |
a0b9e27f MB |
19680 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
19681 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19683 | else |
a0b9e27f | 19684 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19685 | LIBS="-lshl_load $LIBS" |
a0b9e27f | 19686 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 19687 | #line 19688 "configure" |
f6bcfd97 | 19688 | #include "confdefs.h" |
8284b0c5 | 19689 | /* Override any gcc2 internal prototype to avoid an error. */ |
f6bcfd97 | 19690 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
19691 | builtin and then its argument prototype would still apply. */ |
19692 | char dld(); | |
19693 | ||
19694 | int main() { | |
19695 | dld() | |
19696 | ; return 0; } | |
19697 | EOF | |
4f57cf11 | 19698 | if { (eval echo configure:19699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19699 | rm -rf conftest* |
19700 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19701 | else | |
19702 | echo "configure: failed program was:" >&5 | |
19703 | cat conftest.$ac_ext >&5 | |
19704 | rm -rf conftest* | |
19705 | eval "ac_cv_lib_$ac_lib_var=no" | |
19706 | fi | |
19707 | rm -f conftest* | |
19708 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 19709 | |
a0b9e27f MB |
19710 | fi |
19711 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19712 | echo "$ac_t""yes" 1>&6 | |
19713 | ||
3a922bb4 | 19714 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 19715 | DL_LINK=" -ldld$DL_LINK" |
a0b9e27f MB |
19716 | |
19717 | else | |
19718 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19719 | fi |
19720 | ||
a0b9e27f | 19721 | |
10f2d63a VZ |
19722 | fi |
19723 | done | |
19724 | ||
a0b9e27f | 19725 | |
10f2d63a VZ |
19726 | fi |
19727 | ||
a0b9e27f | 19728 | |
10f2d63a VZ |
19729 | fi |
19730 | done | |
19731 | ||
5c6fa7d2 | 19732 | |
8284b0c5 | 19733 | if test "$HAVE_DL_FUNCS" = 1; then |
a0b9e27f | 19734 | for ac_func in dlerror |
f6bcfd97 | 19735 | do |
a0b9e27f | 19736 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f57cf11 | 19737 | echo "configure:19738: checking for $ac_func" >&5 |
a0b9e27f MB |
19738 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19739 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19740 | else | |
19741 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 19742 | #line 19743 "configure" |
f6bcfd97 BP |
19743 | #include "confdefs.h" |
19744 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19745 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19746 | #include <assert.h> |
19747 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19748 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19749 | builtin and then its argument prototype would still apply. */ |
19750 | char $ac_func(); | |
19751 | ||
19752 | int main() { | |
19753 | ||
f6bcfd97 BP |
19754 | /* The GNU C library defines this for functions which it implements |
19755 | to always fail with ENOSYS. Some functions are actually named | |
19756 | something starting with __ and the normal name is an alias. */ | |
19757 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19758 | choke me | |
19759 | #else | |
a0b9e27f | 19760 | $ac_func(); |
f6bcfd97 BP |
19761 | #endif |
19762 | ||
a0b9e27f MB |
19763 | ; return 0; } |
19764 | EOF | |
4f57cf11 | 19765 | if { (eval echo configure:19766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19766 | rm -rf conftest* |
19767 | eval "ac_cv_func_$ac_func=yes" | |
19768 | else | |
19769 | echo "configure: failed program was:" >&5 | |
19770 | cat conftest.$ac_ext >&5 | |
19771 | rm -rf conftest* | |
19772 | eval "ac_cv_func_$ac_func=no" | |
19773 | fi | |
19774 | rm -f conftest* | |
19775 | fi | |
19776 | ||
19777 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19778 | echo "$ac_t""yes" 1>&6 | |
19779 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19780 | cat >> confdefs.h <<EOF | |
19781 | #define $ac_tr_func 1 | |
19782 | EOF | |
19783 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 19784 | #define HAVE_DLERROR 1 |
a0b9e27f | 19785 | EOF |
f6bcfd97 BP |
19786 | |
19787 | else | |
a0b9e27f MB |
19788 | echo "$ac_t""no" 1>&6 |
19789 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
4f57cf11 | 19790 | echo "configure:19791: checking for dlerror in -ldl" >&5 |
a0b9e27f MB |
19791 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
19792 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19793 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19794 | else |
a0b9e27f | 19795 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19796 | LIBS="-ldl $LIBS" |
a0b9e27f | 19797 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 19798 | #line 19799 "configure" |
f6bcfd97 BP |
19799 | #include "confdefs.h" |
19800 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19801 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19802 | builtin and then its argument prototype would still apply. */ |
19803 | char dlerror(); | |
19804 | ||
19805 | int main() { | |
19806 | dlerror() | |
19807 | ; return 0; } | |
19808 | EOF | |
4f57cf11 | 19809 | if { (eval echo configure:19810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19810 | rm -rf conftest* |
19811 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19812 | else | |
19813 | echo "configure: failed program was:" >&5 | |
19814 | cat conftest.$ac_ext >&5 | |
19815 | rm -rf conftest* | |
19816 | eval "ac_cv_lib_$ac_lib_var=no" | |
19817 | fi | |
19818 | rm -f conftest* | |
19819 | LIBS="$ac_save_LIBS" | |
19820 | ||
19821 | fi | |
19822 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19823 | echo "$ac_t""yes" 1>&6 | |
19824 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 19825 | #define HAVE_DLERROR 1 |
a0b9e27f | 19826 | EOF |
f6bcfd97 | 19827 | |
a0b9e27f MB |
19828 | else |
19829 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19830 | fi |
19831 | ||
19832 | fi | |
19833 | done | |
19834 | ||
3a922bb4 RL |
19835 | fi |
19836 | fi | |
f6bcfd97 | 19837 | |
3a922bb4 RL |
19838 | if test "$HAVE_DL_FUNCS" = 0; then |
19839 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19840 | if test "$USE_UNIX" = 1; then | |
a0b9e27f | 19841 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 19842 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
19843 | wxUSE_DYNLIB_CLASS=no |
19844 | else | |
a0b9e27f | 19845 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
19846 | fi |
19847 | fi | |
10f2d63a VZ |
19848 | fi |
19849 | fi | |
19850 | fi | |
19851 | ||
0b9ab0bd | 19852 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
a0b9e27f | 19853 | cat >> confdefs.h <<\EOF |
0b9ab0bd | 19854 | #define wxUSE_DYNAMIC_LOADER 1 |
a0b9e27f | 19855 | EOF |
0b9ab0bd RL |
19856 | |
19857 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
a0b9e27f | 19858 | cat >> confdefs.h <<\EOF |
10f2d63a | 19859 | #define wxUSE_DYNLIB_CLASS 1 |
a0b9e27f | 19860 | EOF |
10f2d63a VZ |
19861 | |
19862 | fi | |
19863 | ||
8284b0c5 | 19864 | |
1e6feb95 | 19865 | if test "$wxUSE_FONTMAP" = "yes" ; then |
a0b9e27f | 19866 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19867 | #define wxUSE_FONTMAP 1 |
a0b9e27f | 19868 | EOF |
1e6feb95 VZ |
19869 | |
19870 | fi | |
19871 | ||
10f2d63a | 19872 | if test "$wxUSE_UNICODE" = "yes" ; then |
a0b9e27f | 19873 | cat >> confdefs.h <<\EOF |
10f2d63a | 19874 | #define wxUSE_UNICODE 1 |
a0b9e27f | 19875 | EOF |
10f2d63a | 19876 | |
8284b0c5 | 19877 | |
bbc3925a VS |
19878 | if test "$wxUSE_MSW" != 1; then |
19879 | wxUSE_UNICODE_MSLU=no | |
19880 | fi | |
a72a4bfa VS |
19881 | |
19882 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
a0b9e27f | 19883 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
4f57cf11 | 19884 | echo "configure:19885: checking for main in -lunicows" >&5 |
a0b9e27f MB |
19885 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
19886 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 19888 | else |
a0b9e27f | 19889 | ac_save_LIBS="$LIBS" |
a72a4bfa | 19890 | LIBS="-lunicows $LIBS" |
a0b9e27f | 19891 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 19892 | #line 19893 "configure" |
a72a4bfa VS |
19893 | #include "confdefs.h" |
19894 | ||
a0b9e27f MB |
19895 | int main() { |
19896 | main() | |
19897 | ; return 0; } | |
19898 | EOF | |
4f57cf11 | 19899 | if { (eval echo configure:19900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19900 | rm -rf conftest* |
19901 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19902 | else | |
19903 | echo "configure: failed program was:" >&5 | |
19904 | cat conftest.$ac_ext >&5 | |
19905 | rm -rf conftest* | |
19906 | eval "ac_cv_lib_$ac_lib_var=no" | |
19907 | fi | |
19908 | rm -f conftest* | |
19909 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 19910 | |
a0b9e27f MB |
19911 | fi |
19912 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19913 | echo "$ac_t""yes" 1>&6 | |
19914 | ||
19915 | cat >> confdefs.h <<\EOF | |
a72a4bfa | 19916 | #define wxUSE_UNICODE_MSLU 1 |
a0b9e27f | 19917 | EOF |
a72a4bfa | 19918 | |
a0b9e27f | 19919 | |
a72a4bfa | 19920 | else |
a0b9e27f | 19921 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 19922 | |
a0b9e27f MB |
19923 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
19924 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 19925 | wxUSE_UNICODE_MSLU=no |
a0b9e27f | 19926 | |
a72a4bfa VS |
19927 | fi |
19928 | ||
19929 | fi | |
10f2d63a VZ |
19930 | fi |
19931 | ||
10f2d63a | 19932 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
a0b9e27f | 19933 | cat >> confdefs.h <<\EOF |
10f2d63a | 19934 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
a0b9e27f | 19935 | EOF |
10f2d63a VZ |
19936 | |
19937 | fi | |
19938 | ||
8284b0c5 MB |
19939 | |
19940 | ||
10f2d63a VZ |
19941 | IODBC_C_SRC="" |
19942 | if test "$wxUSE_ODBC" = "yes" ; then | |
a0b9e27f | 19943 | cat >> confdefs.h <<\EOF |
10f2d63a | 19944 | #define wxUSE_ODBC 1 |
a0b9e27f | 19945 | EOF |
10f2d63a VZ |
19946 | |
19947 | WXODBCFLAG="-D_IODBC_" | |
19948 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19949 | fi |
19950 | ||
8284b0c5 | 19951 | |
10f2d63a | 19952 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
a0b9e27f | 19953 | cat >> confdefs.h <<\EOF |
10f2d63a | 19954 | #define wxUSE_POSTSCRIPT 1 |
a0b9e27f | 19955 | EOF |
10f2d63a VZ |
19956 | |
19957 | fi | |
19958 | ||
a0b9e27f | 19959 | cat >> confdefs.h <<\EOF |
10f2d63a | 19960 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
a0b9e27f | 19961 | EOF |
10f2d63a | 19962 | |
8284b0c5 | 19963 | |
a0b9e27f | 19964 | cat >> confdefs.h <<\EOF |
10f2d63a | 19965 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
a0b9e27f | 19966 | EOF |
10f2d63a | 19967 | |
8284b0c5 MB |
19968 | |
19969 | ||
10f2d63a | 19970 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
a0b9e27f | 19971 | cat >> confdefs.h <<\EOF |
10f2d63a | 19972 | #define wxUSE_CONSTRAINTS 1 |
a0b9e27f | 19973 | EOF |
10f2d63a VZ |
19974 | |
19975 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19976 | fi | |
19977 | ||
19978 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 19979 | |
8284b0c5 | 19980 | |
bb811f17 | 19981 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
a0b9e27f | 19982 | cat >> confdefs.h <<\EOF |
10f2d63a | 19983 | #define wxUSE_MDI_ARCHITECTURE 1 |
a0b9e27f | 19984 | EOF |
10f2d63a | 19985 | |
bb811f17 JS |
19986 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
19987 | fi | |
10f2d63a VZ |
19988 | fi |
19989 | ||
19990 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 19991 | cat >> confdefs.h <<\EOF |
10f2d63a | 19992 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
a0b9e27f | 19993 | EOF |
10f2d63a VZ |
19994 | |
19995 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19996 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19997 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19998 | fi | |
19999 | fi | |
20000 | ||
20001 | if test "$wxUSE_HELP" = "yes"; then | |
a0b9e27f | 20002 | cat >> confdefs.h <<\EOF |
10f2d63a | 20003 | #define wxUSE_HELP 1 |
a0b9e27f | 20004 | EOF |
10f2d63a VZ |
20005 | |
20006 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 20007 | |
77e13408 | 20008 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 20009 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
a0b9e27f | 20010 | cat >> confdefs.h <<\EOF |
29fd3c0c | 20011 | #define wxUSE_MS_HTML_HELP 1 |
a0b9e27f | 20012 | EOF |
29fd3c0c | 20013 | |
3e44f09d | 20014 | fi |
3379ed37 | 20015 | fi |
031d8228 VS |
20016 | |
20017 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
20018 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 20019 | cat >> confdefs.h <<\EOF |
031d8228 | 20020 | #define wxUSE_WXHTML_HELP 1 |
a0b9e27f | 20021 | EOF |
031d8228 VS |
20022 | |
20023 | else | |
a0b9e27f | 20024 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
20025 | wxUSE_WXHTML_HELP=no |
20026 | fi | |
20027 | fi | |
10f2d63a VZ |
20028 | fi |
20029 | ||
20030 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
20031 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 20032 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 20033 | else |
a0b9e27f | 20034 | cat >> confdefs.h <<\EOF |
10f2d63a | 20035 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
a0b9e27f | 20036 | EOF |
10f2d63a VZ |
20037 | |
20038 | fi | |
20039 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
20040 | fi | |
20041 | ||
20042 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
a0b9e27f | 20043 | cat >> confdefs.h <<\EOF |
10f2d63a | 20044 | #define wxUSE_PROLOGIO 1 |
a0b9e27f | 20045 | EOF |
10f2d63a VZ |
20046 | |
20047 | fi | |
20048 | ||
20049 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea | 20050 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 20051 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 |
e334d0ea | 20052 | else |
a0b9e27f | 20053 | cat >> confdefs.h <<\EOF |
10f2d63a | 20054 | #define wxUSE_RESOURCES 1 |
a0b9e27f | 20055 | EOF |
10f2d63a | 20056 | |
e334d0ea JS |
20057 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
20058 | fi | |
10f2d63a VZ |
20059 | fi |
20060 | ||
20061 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
a0b9e27f | 20062 | cat >> confdefs.h <<\EOF |
10f2d63a | 20063 | #define wxUSE_X_RESOURCES 1 |
a0b9e27f | 20064 | EOF |
10f2d63a VZ |
20065 | |
20066 | fi | |
20067 | ||
8284b0c5 | 20068 | |
77e13408 RL |
20069 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
20070 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
3bce6687 | 20071 | -o "$wxUSE_OLE" = "yes" \ |
77e13408 | 20072 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then |
a0b9e27f | 20073 | for ac_hdr in ole2.h |
10f2d63a | 20074 | do |
a0b9e27f MB |
20075 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20076 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f57cf11 | 20077 | echo "configure:20078: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20078 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20079 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20080 | else | |
20081 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 20082 | #line 20083 "configure" |
10f2d63a | 20083 | #include "confdefs.h" |
a0b9e27f MB |
20084 | #include <$ac_hdr> |
20085 | EOF | |
20086 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f57cf11 | 20087 | { (eval echo configure:20088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20088 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20089 | if test -z "$ac_err"; then | |
20090 | rm -rf conftest* | |
20091 | eval "ac_cv_header_$ac_safe=yes" | |
20092 | else | |
20093 | echo "$ac_err" >&5 | |
20094 | echo "configure: failed program was:" >&5 | |
10f2d63a | 20095 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20096 | rm -rf conftest* |
20097 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 20098 | fi |
a0b9e27f | 20099 | rm -f conftest* |
10f2d63a | 20100 | fi |
a0b9e27f MB |
20101 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20102 | echo "$ac_t""yes" 1>&6 | |
20103 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20104 | cat >> confdefs.h <<EOF | |
20105 | #define $ac_tr_hdr 1 | |
20106 | EOF | |
20107 | ||
20108 | else | |
20109 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
20110 | fi |
20111 | done | |
20112 | ||
8284b0c5 | 20113 | |
2b9bdf71 VZ |
20114 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
20115 | if test "$GCC" = yes ; then | |
a0b9e27f MB |
20116 | |
20117 | ac_ext=C | |
20118 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8284b0c5 | 20119 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20120 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20121 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20122 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 MB |
20123 | |
20124 | ||
a0b9e27f | 20125 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 |
4f57cf11 | 20126 | echo "configure:20127: checking if g++ requires -fvtable-thunks" >&5 |
a0b9e27f | 20127 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 20128 | #line 20129 "configure" |
8284b0c5 MB |
20129 | #include "confdefs.h" |
20130 | #include <windows.h> | |
20131 | #include <ole2.h> | |
a0b9e27f | 20132 | int main() { |
8284b0c5 | 20133 | |
a0b9e27f MB |
20134 | ; return 0; } |
20135 | EOF | |
4f57cf11 | 20136 | if { (eval echo configure:20137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20137 | rm -rf conftest* |
20138 | echo "$ac_t""no" 1>&6 | |
20139 | else | |
20140 | echo "configure: failed program was:" >&5 | |
20141 | cat conftest.$ac_ext >&5 | |
20142 | rm -rf conftest* | |
20143 | echo "$ac_t""yes" 1>&6 | |
8284b0c5 MB |
20144 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
20145 | fi | |
a0b9e27f | 20146 | rm -f conftest* |
8284b0c5 | 20147 | ac_ext=c |
a0b9e27f | 20148 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8284b0c5 | 20149 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20150 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20151 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20152 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20153 | |
2b9bdf71 | 20154 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 20155 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
a0b9e27f | 20156 | cat >> confdefs.h <<\EOF |
4f11a343 | 20157 | #define wxUSE_OLE 1 |
a0b9e27f | 20158 | EOF |
4f11a343 | 20159 | |
8284b0c5 | 20160 | |
2b9bdf71 VZ |
20161 | fi |
20162 | ||
a0b9e27f | 20163 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 20164 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 20165 | EOF |
2b9bdf71 VZ |
20166 | |
20167 | else | |
a0b9e27f | 20168 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
20169 | |
20170 | wxUSE_CLIPBOARD=no | |
20171 | wxUSE_DRAG_AND_DROP=no | |
20172 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
20173 | wxUSE_OLE=no |
20174 | fi | |
20175 | ||
20176 | if test "$wxUSE_METAFILE" = "yes"; then | |
20177 | cat >> confdefs.h <<\EOF | |
20178 | #define wxUSE_METAFILE 1 | |
20179 | EOF | |
20180 | ||
20181 | ||
20182 | cat >> confdefs.h <<\EOF | |
20183 | #define wxUSE_ENH_METAFILE 1 | |
20184 | EOF | |
20185 | ||
20186 | fi | |
20187 | fi | |
20188 | ||
20189 | if test "$wxUSE_WINE" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
20190 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
20191 | -o "$wxUSE_OLE" = "yes" \ | |
20192 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
20193 | for ac_hdr in ole2.h | |
20194 | do | |
20195 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
20196 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f57cf11 | 20197 | echo "configure:20198: checking for $ac_hdr" >&5 |
3bce6687 JS |
20198 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20199 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20200 | else | |
20201 | cat > conftest.$ac_ext <<EOF | |
4f57cf11 | 20202 | #line 20203 "configure" |
3bce6687 JS |
20203 | #include "confdefs.h" |
20204 | #include <$ac_hdr> | |
20205 | EOF | |
20206 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f57cf11 | 20207 | { (eval echo configure:20208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3bce6687 JS |
20208 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20209 | if test -z "$ac_err"; then | |
20210 | rm -rf conftest* | |
20211 | eval "ac_cv_header_$ac_safe=yes" | |
20212 | else | |
20213 | echo "$ac_err" >&5 | |
20214 | echo "configure: failed program was:" >&5 | |
20215 | cat conftest.$ac_ext >&5 | |
20216 | rm -rf conftest* | |
20217 | eval "ac_cv_header_$ac_safe=no" | |
20218 | fi | |
20219 | rm -f conftest* | |
20220 | fi | |
20221 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
20222 | echo "$ac_t""yes" 1>&6 | |
20223 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20224 | cat >> confdefs.h <<EOF | |
20225 | #define $ac_tr_hdr 1 | |
20226 | EOF | |
20227 | ||
20228 | else | |
20229 | echo "$ac_t""no" 1>&6 | |
20230 | fi | |
20231 | done | |
20232 | ||
20233 | ||
20234 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
20235 | if test "$GCC" = yes ; then | |
20236 | ||
20237 | ac_ext=C | |
20238 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
20239 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20240 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
20241 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20242 | cross_compiling=$ac_cv_prog_cxx_cross | |
20243 | ||
20244 | ||
20245 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 | |
4f57cf11 | 20246 | echo "configure:20247: checking if g++ requires -fvtable-thunks" >&5 |
3bce6687 | 20247 | cat > conftest.$ac_ext <<EOF |
4f57cf11 | 20248 | #line 20249 "configure" |
3bce6687 JS |
20249 | #include "confdefs.h" |
20250 | #include <windows.h> | |
20251 | #include <ole2.h> | |
20252 | int main() { | |
20253 | ||
20254 | ; return 0; } | |
20255 | EOF | |
4f57cf11 | 20256 | if { (eval echo configure:20257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3bce6687 JS |
20257 | rm -rf conftest* |
20258 | echo "$ac_t""no" 1>&6 | |
20259 | else | |
20260 | echo "configure: failed program was:" >&5 | |
20261 | cat conftest.$ac_ext >&5 | |
20262 | rm -rf conftest* | |
20263 | echo "$ac_t""yes" 1>&6 | |
20264 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
20265 | fi | |
20266 | rm -f conftest* | |
20267 | ac_ext=c | |
20268 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
20269 | ac_cpp='$CPP $CPPFLAGS' | |
20270 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
20271 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20272 | cross_compiling=$ac_cv_prog_cc_cross | |
20273 | ||
20274 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
20275 | LIBS=" -lwine_uuid$LIBS" | |
20276 | cat >> confdefs.h <<\EOF | |
20277 | #define wxUSE_OLE 1 | |
20278 | EOF | |
20279 | ||
20280 | ||
20281 | fi | |
20282 | ||
20283 | cat >> confdefs.h <<\EOF | |
20284 | #define wxUSE_DATAOBJ 1 | |
20285 | EOF | |
20286 | ||
20287 | else | |
20288 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
20289 | ||
20290 | wxUSE_CLIPBOARD=no | |
20291 | wxUSE_DRAG_AND_DROP=no | |
20292 | wxUSE_DATAOBJ=no | |
20293 | wxUSE_OLE=no | |
2b9bdf71 VZ |
20294 | fi |
20295 | ||
77e13408 | 20296 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 20297 | cat >> confdefs.h <<\EOF |
b64f0a5f | 20298 | #define wxUSE_METAFILE 1 |
a0b9e27f | 20299 | EOF |
b64f0a5f | 20300 | |
8284b0c5 | 20301 | |
a0b9e27f | 20302 | cat >> confdefs.h <<\EOF |
b64f0a5f | 20303 | #define wxUSE_ENH_METAFILE 1 |
a0b9e27f | 20304 | EOF |
b64f0a5f | 20305 | |
2b9bdf71 VZ |
20306 | fi |
20307 | fi | |
20308 | ||
20309 | if test "$wxUSE_IPC" = "yes"; then | |
20310 | if test "$wxUSE_SOCKETS" != "yes"; then | |
a0b9e27f | 20311 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
20312 | fi |
20313 | ||
a0b9e27f | 20314 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 20315 | #define wxUSE_IPC 1 |
a0b9e27f | 20316 | EOF |
2b9bdf71 VZ |
20317 | |
20318 | fi | |
20319 | ||
20320 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 20321 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 20322 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20323 | wxUSE_CLIPBOARD=no |
20324 | fi | |
20325 | ||
20326 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
a0b9e27f | 20327 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 20328 | #define wxUSE_CLIPBOARD 1 |
a0b9e27f | 20329 | EOF |
2b9bdf71 | 20330 | |
8284b0c5 | 20331 | |
a0b9e27f | 20332 | cat >> confdefs.h <<\EOF |
673f4220 | 20333 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 20334 | EOF |
673f4220 | 20335 | |
6c657b52 | 20336 | fi |
2b9bdf71 VZ |
20337 | fi |
20338 | ||
20339 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
20340 | if test "$wxUSE_GTK" = 1; then | |
20341 | if test "$WXGTK12" != 1; then | |
a0b9e27f | 20342 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
20343 | wxUSE_DRAG_AND_DROP=no |
20344 | fi | |
20345 | fi | |
20346 | ||
2b9bdf71 | 20347 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 20348 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
20349 | wxUSE_DRAG_AND_DROP=no |
20350 | fi | |
20351 | ||
f79bd02d | 20352 | if test "$wxUSE_X11" = 1; then |
a0b9e27f | 20353 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
20354 | wxUSE_DRAG_AND_DROP=no |
20355 | fi | |
20356 | ||
6c657b52 | 20357 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 20358 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20359 | wxUSE_DRAG_AND_DROP=no |
20360 | fi | |
20361 | ||
10f2d63a | 20362 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
a0b9e27f | 20363 | cat >> confdefs.h <<\EOF |
10f2d63a | 20364 | #define wxUSE_DRAG_AND_DROP 1 |
a0b9e27f | 20365 | EOF |
10f2d63a VZ |
20366 | |
20367 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
20368 | fi | |
20369 | ||
20370 | fi | |
20371 | ||
20372 | if test "$wxUSE_SPLINES" = "yes" ; then | |
a0b9e27f | 20373 | cat >> confdefs.h <<\EOF |
10f2d63a | 20374 | #define wxUSE_SPLINES 1 |
a0b9e27f | 20375 | EOF |
10f2d63a VZ |
20376 | |
20377 | fi | |
20378 | ||
8284b0c5 | 20379 | |
1e6feb95 VZ |
20380 | USES_CONTROLS=0 |
20381 | if test "$wxUSE_CONTROLS" = "yes"; then | |
20382 | USES_CONTROLS=1 | |
20383 | fi | |
20384 | ||
10f2d63a | 20385 | if test "$wxUSE_ACCEL" = "yes"; then |
a0b9e27f | 20386 | cat >> confdefs.h <<\EOF |
10f2d63a | 20387 | #define wxUSE_ACCEL 1 |
a0b9e27f | 20388 | EOF |
10f2d63a | 20389 | |
1e6feb95 VZ |
20390 | USES_CONTROLS=1 |
20391 | fi | |
20392 | ||
20393 | if test "$wxUSE_BUTTON" = "yes"; then | |
a0b9e27f | 20394 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20395 | #define wxUSE_BUTTON 1 |
a0b9e27f | 20396 | EOF |
1e6feb95 VZ |
20397 | |
20398 | USES_CONTROLS=1 | |
20399 | fi | |
20400 | ||
20401 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
a0b9e27f | 20402 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20403 | #define wxUSE_BMPBUTTON 1 |
a0b9e27f | 20404 | EOF |
1e6feb95 VZ |
20405 | |
20406 | USES_CONTROLS=1 | |
20407 | fi | |
20408 | ||
20409 | if test "$wxUSE_CALCTRL" = "yes"; then | |
a0b9e27f | 20410 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20411 | #define wxUSE_CALENDARCTRL 1 |
a0b9e27f | 20412 | EOF |
1e6feb95 VZ |
20413 | |
20414 | USES_CONTROLS=1 | |
20415 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
20416 | fi |
20417 | ||
20418 | if test "$wxUSE_CARET" = "yes"; then | |
a0b9e27f | 20419 | cat >> confdefs.h <<\EOF |
10f2d63a | 20420 | #define wxUSE_CARET 1 |
a0b9e27f | 20421 | EOF |
10f2d63a | 20422 | |
1e6feb95 | 20423 | USES_CONTROLS=1 |
10f2d63a VZ |
20424 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
20425 | fi | |
20426 | ||
20427 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
a0b9e27f | 20428 | cat >> confdefs.h <<\EOF |
10f2d63a | 20429 | #define wxUSE_COMBOBOX 1 |
a0b9e27f | 20430 | EOF |
10f2d63a | 20431 | |
1e6feb95 | 20432 | USES_CONTROLS=1 |
10f2d63a VZ |
20433 | fi |
20434 | ||
20435 | if test "$wxUSE_CHOICE" = "yes"; then | |
a0b9e27f | 20436 | cat >> confdefs.h <<\EOF |
10f2d63a | 20437 | #define wxUSE_CHOICE 1 |
a0b9e27f | 20438 | EOF |
10f2d63a | 20439 | |
1e6feb95 | 20440 | USES_CONTROLS=1 |
10f2d63a VZ |
20441 | fi |
20442 | ||
20443 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
a0b9e27f | 20444 | cat >> confdefs.h <<\EOF |
10f2d63a | 20445 | #define wxUSE_CHECKBOX 1 |
a0b9e27f | 20446 | EOF |
10f2d63a | 20447 | |
1e6feb95 | 20448 | USES_CONTROLS=1 |
10f2d63a VZ |
20449 | fi |
20450 | ||
20451 | if test "$wxUSE_CHECKLST" = "yes"; then | |
a0b9e27f | 20452 | cat >> confdefs.h <<\EOF |
10f2d63a | 20453 | #define wxUSE_CHECKLISTBOX 1 |
a0b9e27f | 20454 | EOF |
10f2d63a | 20455 | |
1e6feb95 | 20456 | USES_CONTROLS=1 |
10f2d63a VZ |
20457 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
20458 | fi | |
20459 | ||
20460 | if test "$wxUSE_GAUGE" = "yes"; then | |
a0b9e27f | 20461 | cat >> confdefs.h <<\EOF |
10f2d63a | 20462 | #define wxUSE_GAUGE 1 |
a0b9e27f | 20463 | EOF |
10f2d63a | 20464 | |
1e6feb95 | 20465 | USES_CONTROLS=1 |
10f2d63a VZ |
20466 | fi |
20467 | ||
d6a55c4b VZ |
20468 | if test "$wxUSE_NEW_GRID" = "yes"; then |
20469 | wxUSE_GRID="yes" | |
a0b9e27f | 20470 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20471 | #define wxUSE_NEW_GRID 1 |
a0b9e27f | 20472 | EOF |
10f2d63a | 20473 | |
1e6feb95 | 20474 | USES_CONTROLS=1 |
d6a55c4b | 20475 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
20476 | fi |
20477 | ||
d6a55c4b | 20478 | if test "$wxUSE_GRID" = "yes"; then |
a0b9e27f | 20479 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20480 | #define wxUSE_GRID 1 |
a0b9e27f | 20481 | EOF |
10f2d63a | 20482 | |
1e6feb95 | 20483 | USES_CONTROLS=1 |
d6a55c4b | 20484 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
20485 | fi |
20486 | ||
20487 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 20488 | cat >> confdefs.h <<\EOF |
10f2d63a | 20489 | #define wxUSE_IMAGLIST 1 |
a0b9e27f | 20490 | EOF |
10f2d63a VZ |
20491 | |
20492 | fi | |
20493 | ||
20494 | if test "$wxUSE_LISTBOX" = "yes"; then | |
a0b9e27f | 20495 | cat >> confdefs.h <<\EOF |
10f2d63a | 20496 | #define wxUSE_LISTBOX 1 |
a0b9e27f | 20497 | EOF |
10f2d63a | 20498 | |
1e6feb95 | 20499 | USES_CONTROLS=1 |
10f2d63a VZ |
20500 | fi |
20501 | ||
20502 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
20503 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 20504 | cat >> confdefs.h <<\EOF |
10f2d63a | 20505 | #define wxUSE_LISTCTRL 1 |
a0b9e27f | 20506 | EOF |
10f2d63a | 20507 | |
1e6feb95 | 20508 | USES_CONTROLS=1 |
10f2d63a VZ |
20509 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
20510 | else | |
a0b9e27f | 20511 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20512 | fi |
20513 | fi | |
20514 | ||
20515 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
a0b9e27f | 20516 | cat >> confdefs.h <<\EOF |
10f2d63a | 20517 | #define wxUSE_NOTEBOOK 1 |
a0b9e27f | 20518 | EOF |
10f2d63a | 20519 | |
1e6feb95 | 20520 | USES_CONTROLS=1 |
10f2d63a VZ |
20521 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
20522 | fi | |
20523 | ||
24176f2c | 20524 | if test "$wxUSE_PROPSHEET" = "yes"; then |
a0b9e27f | 20525 | cat >> confdefs.h <<\EOF |
24176f2c | 20526 | #define wxUSE_PROPSHEET 1 |
a0b9e27f | 20527 | EOF |
24176f2c GD |
20528 | |
20529 | USES_CONTROLS=1 | |
20530 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
20531 | fi | |
20532 | ||
10f2d63a | 20533 | if test "$wxUSE_RADIOBOX" = "yes"; then |
a0b9e27f | 20534 | cat >> confdefs.h <<\EOF |
10f2d63a | 20535 | #define wxUSE_RADIOBOX 1 |
a0b9e27f | 20536 | EOF |
10f2d63a | 20537 | |
1e6feb95 | 20538 | USES_CONTROLS=1 |
10f2d63a VZ |
20539 | fi |
20540 | ||
20541 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
a0b9e27f | 20542 | cat >> confdefs.h <<\EOF |
10f2d63a | 20543 | #define wxUSE_RADIOBTN 1 |
a0b9e27f | 20544 | EOF |
10f2d63a | 20545 | |
1e6feb95 | 20546 | USES_CONTROLS=1 |
10f2d63a VZ |
20547 | fi |
20548 | ||
20549 | if test "$wxUSE_SASH" = "yes"; then | |
a0b9e27f | 20550 | cat >> confdefs.h <<\EOF |
10f2d63a | 20551 | #define wxUSE_SASH 1 |
a0b9e27f | 20552 | EOF |
10f2d63a VZ |
20553 | |
20554 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
20555 | fi | |
20556 | ||
20557 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
a0b9e27f | 20558 | cat >> confdefs.h <<\EOF |
10f2d63a | 20559 | #define wxUSE_SCROLLBAR 1 |
a0b9e27f | 20560 | EOF |
10f2d63a | 20561 | |
1e6feb95 | 20562 | USES_CONTROLS=1 |
741a9306 | 20563 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
20564 | fi |
20565 | ||
20566 | if test "$wxUSE_SLIDER" = "yes"; then | |
a0b9e27f | 20567 | cat >> confdefs.h <<\EOF |
10f2d63a | 20568 | #define wxUSE_SLIDER 1 |
a0b9e27f | 20569 | EOF |
10f2d63a | 20570 | |
1e6feb95 | 20571 | USES_CONTROLS=1 |
10f2d63a VZ |
20572 | fi |
20573 | ||
20574 | if test "$wxUSE_SPINBTN" = "yes"; then | |
a0b9e27f | 20575 | cat >> confdefs.h <<\EOF |
10f2d63a | 20576 | #define wxUSE_SPINBTN 1 |
a0b9e27f | 20577 | EOF |
10f2d63a | 20578 | |
1e6feb95 | 20579 | USES_CONTROLS=1 |
10f2d63a VZ |
20580 | fi |
20581 | ||
56cfaa52 | 20582 | if test "$wxUSE_SPINCTRL" = "yes"; then |
a0b9e27f | 20583 | cat >> confdefs.h <<\EOF |
56cfaa52 | 20584 | #define wxUSE_SPINCTRL 1 |
a0b9e27f | 20585 | EOF |
56cfaa52 | 20586 | |
1e6feb95 | 20587 | USES_CONTROLS=1 |
56cfaa52 RR |
20588 | fi |
20589 | ||
10f2d63a | 20590 | if test "$wxUSE_SPLITTER" = "yes"; then |
a0b9e27f | 20591 | cat >> confdefs.h <<\EOF |
10f2d63a | 20592 | #define wxUSE_SPLITTER 1 |
a0b9e27f | 20593 | EOF |
10f2d63a VZ |
20594 | |
20595 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
20596 | fi | |
20597 | ||
20598 | if test "$wxUSE_STATBMP" = "yes"; then | |
a0b9e27f | 20599 | cat >> confdefs.h <<\EOF |
10f2d63a | 20600 | #define wxUSE_STATBMP 1 |
a0b9e27f | 20601 | EOF |
10f2d63a | 20602 | |
1e6feb95 | 20603 | USES_CONTROLS=1 |
10f2d63a VZ |
20604 | fi |
20605 | ||
20606 | if test "$wxUSE_STATBOX" = "yes"; then | |
a0b9e27f | 20607 | cat >> confdefs.h <<\EOF |
10f2d63a | 20608 | #define wxUSE_STATBOX 1 |
a0b9e27f | 20609 | EOF |
10f2d63a | 20610 | |
1e6feb95 VZ |
20611 | USES_CONTROLS=1 |
20612 | fi | |
20613 | ||
20614 | if test "$wxUSE_STATTEXT" = "yes"; then | |
a0b9e27f | 20615 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20616 | #define wxUSE_STATTEXT 1 |
a0b9e27f | 20617 | EOF |
1e6feb95 VZ |
20618 | |
20619 | USES_CONTROLS=1 | |
10f2d63a VZ |
20620 | fi |
20621 | ||
20622 | if test "$wxUSE_STATLINE" = "yes"; then | |
20623 | if test "$wxUSE_WINE" = 1 ; then | |
a0b9e27f | 20624 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 20625 | else |
a0b9e27f | 20626 | cat >> confdefs.h <<\EOF |
10f2d63a | 20627 | #define wxUSE_STATLINE 1 |
a0b9e27f | 20628 | EOF |
10f2d63a | 20629 | |
1e6feb95 | 20630 | USES_CONTROLS=1 |
10f2d63a VZ |
20631 | fi |
20632 | fi | |
20633 | ||
20634 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
a0b9e27f | 20635 | cat >> confdefs.h <<\EOF |
10f2d63a | 20636 | #define wxUSE_STATUSBAR 1 |
a0b9e27f | 20637 | EOF |
10f2d63a | 20638 | |
1e6feb95 | 20639 | USES_CONTROLS=1 |
698dcdb6 | 20640 | |
2286341c | 20641 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
20642 | fi |
20643 | ||
20644 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
a0b9e27f | 20645 | cat >> confdefs.h <<\EOF |
10f2d63a | 20646 | #define wxUSE_TAB_DIALOG 1 |
a0b9e27f | 20647 | EOF |
10f2d63a VZ |
20648 | |
20649 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
20650 | fi | |
20651 | ||
1e6feb95 | 20652 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
a0b9e27f | 20653 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20654 | #define wxUSE_TEXTCTRL 1 |
a0b9e27f | 20655 | EOF |
1e6feb95 VZ |
20656 | |
20657 | USES_CONTROLS=1 | |
20658 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
20659 | fi | |
20660 | ||
1db8dc4a | 20661 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 | 20662 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 20663 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20664 | wxUSE_TOGGLEBTN=no |
20665 | fi | |
20666 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
a0b9e27f | 20667 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
20668 | wxUSE_TOGGLEBTN=no |
20669 | fi | |
20670 | ||
20671 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
a0b9e27f | 20672 | cat >> confdefs.h <<\EOF |
1db8dc4a | 20673 | #define wxUSE_TOGGLEBTN 1 |
a0b9e27f | 20674 | EOF |
1db8dc4a | 20675 | |
1e6feb95 | 20676 | USES_CONTROLS=1 |
a45d7ab7 | 20677 | fi |
1db8dc4a VZ |
20678 | fi |
20679 | ||
360d6699 | 20680 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
a0b9e27f | 20681 | cat >> confdefs.h <<\EOF |
360d6699 | 20682 | #define wxUSE_TOOLBAR_SIMPLE 1 |
a0b9e27f | 20683 | EOF |
360d6699 VZ |
20684 | |
20685 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 20686 | USES_CONTROLS=1 |
360d6699 VZ |
20687 | fi |
20688 | ||
10f2d63a | 20689 | if test "$wxUSE_TOOLBAR" = "yes"; then |
a0b9e27f | 20690 | cat >> confdefs.h <<\EOF |
10f2d63a | 20691 | #define wxUSE_TOOLBAR 1 |
a0b9e27f | 20692 | EOF |
10f2d63a | 20693 | |
1e6feb95 | 20694 | USES_CONTROLS=1 |
698dcdb6 | 20695 | |
360d6699 VZ |
20696 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
20697 | wxUSE_TOOLBAR_NATIVE="yes" | |
20698 | fi | |
20699 | ||
1e6feb95 | 20700 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
a0b9e27f | 20701 | cat >> confdefs.h <<\EOF |
360d6699 | 20702 | #define wxUSE_TOOLBAR_NATIVE 1 |
a0b9e27f | 20703 | EOF |
360d6699 | 20704 | |
1e6feb95 VZ |
20705 | USES_CONTROLS=1 |
20706 | fi | |
20707 | ||
20708 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
20709 | fi |
20710 | ||
10f2d63a VZ |
20711 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
20712 | if test "$wxUSE_MOTIF" = 1; then | |
a0b9e27f | 20713 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
20714 | else |
20715 | if test "$wxUSE_WINE" = 1; then | |
a0b9e27f | 20716 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 20717 | else |
69d27ff7 | 20718 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a0b9e27f | 20719 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 20720 | else |
a0b9e27f | 20721 | cat >> confdefs.h <<\EOF |
10f2d63a | 20722 | #define wxUSE_TOOLTIPS 1 |
a0b9e27f | 20723 | EOF |
10f2d63a | 20724 | |
69d27ff7 | 20725 | fi |
10f2d63a VZ |
20726 | fi |
20727 | fi | |
20728 | fi | |
20729 | ||
20730 | if test "$wxUSE_TREECTRL" = "yes"; then | |
20731 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 20732 | cat >> confdefs.h <<\EOF |
10f2d63a | 20733 | #define wxUSE_TREECTRL 1 |
a0b9e27f | 20734 | EOF |
10f2d63a | 20735 | |
1e6feb95 | 20736 | USES_CONTROLS=1 |
10f2d63a VZ |
20737 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
20738 | else | |
a0b9e27f | 20739 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20740 | fi |
20741 | fi | |
20742 | ||
9f41d601 | 20743 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 20744 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 20745 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 20746 | else |
485cf710 | 20747 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 20748 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 20749 | else |
3c011993 | 20750 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 20751 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 20752 | else |
a0b9e27f | 20753 | cat >> confdefs.h <<\EOF |
9f41d601 | 20754 | #define wxUSE_POPUPWIN 1 |
a0b9e27f | 20755 | EOF |
9f41d601 | 20756 | |
8284b0c5 | 20757 | |
3c011993 VZ |
20758 | USES_CONTROLS=1 |
20759 | fi | |
485cf710 | 20760 | fi |
6abe4b65 | 20761 | fi |
9f41d601 RR |
20762 | fi |
20763 | ||
dd964dcc | 20764 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 20765 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 20766 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 20767 | else |
a0b9e27f | 20768 | cat >> confdefs.h <<\EOF |
dd964dcc | 20769 | #define wxUSE_TIPWINDOW 1 |
a0b9e27f | 20770 | EOF |
dd964dcc | 20771 | |
3c011993 | 20772 | fi |
dd964dcc VZ |
20773 | fi |
20774 | ||
1e6feb95 | 20775 | if test "$USES_CONTROLS" = 1; then |
a0b9e27f | 20776 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20777 | #define wxUSE_CONTROLS 1 |
a0b9e27f | 20778 | EOF |
10f2d63a | 20779 | |
10f2d63a VZ |
20780 | fi |
20781 | ||
8284b0c5 | 20782 | |
24176f2c | 20783 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
a0b9e27f | 20784 | cat >> confdefs.h <<\EOF |
24176f2c | 20785 | #define wxUSE_TREELAYOUT 1 |
a0b9e27f | 20786 | EOF |
24176f2c GD |
20787 | |
20788 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20789 | fi | |
1e6feb95 | 20790 | |
24fd6d87 | 20791 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
a0b9e27f | 20792 | cat >> confdefs.h <<\EOF |
24fd6d87 | 20793 | #define wxUSE_DRAGIMAGE 1 |
a0b9e27f | 20794 | EOF |
24fd6d87 VZ |
20795 | |
20796 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20797 | fi | |
20798 | ||
1e6feb95 | 20799 | if test "$wxUSE_MENUS" = "yes"; then |
a0b9e27f | 20800 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20801 | #define wxUSE_MENUS 1 |
a0b9e27f | 20802 | EOF |
10f2d63a | 20803 | |
1e6feb95 | 20804 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
20805 | fi |
20806 | ||
1e6feb95 | 20807 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 20808 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20809 | #define wxUSE_METAFILE 1 |
a0b9e27f | 20810 | EOF |
10f2d63a | 20811 | |
10f2d63a VZ |
20812 | fi |
20813 | ||
1e6feb95 | 20814 | if test "$wxUSE_MIMETYPE" = "yes"; then |
a0b9e27f | 20815 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20816 | #define wxUSE_MIMETYPE 1 |
a0b9e27f | 20817 | EOF |
10f2d63a | 20818 | |
10f2d63a VZ |
20819 | fi |
20820 | ||
3e44f09d | 20821 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
a0b9e27f | 20822 | cat >> confdefs.h <<\EOF |
3e44f09d | 20823 | #define wxUSE_SYSTEM_OPTIONS 1 |
a0b9e27f | 20824 | EOF |
3e44f09d | 20825 | |
321d2b14 VZ |
20826 | if test "$TOOLKIT" = "MSW"; then |
20827 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
20828 | fi | |
20829 | ||
3e44f09d VZ |
20830 | fi |
20831 | ||
4cdb0ab0 | 20832 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 20833 | if test "$wxUSE_SOCKETS" != "yes"; then |
a0b9e27f | 20834 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
20835 | wxUSE_PROTOCOL=no |
20836 | fi | |
20837 | ||
20838 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
a0b9e27f | 20839 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 20840 | #define wxUSE_PROTOCOL 1 |
a0b9e27f | 20841 | EOF |
4cdb0ab0 | 20842 | |
8284b0c5 | 20843 | |
3954f9ca | 20844 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
a0b9e27f | 20845 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 20846 | #define wxUSE_PROTOCOL_HTTP 1 |
a0b9e27f | 20847 | EOF |
4cdb0ab0 | 20848 | |
3954f9ca VS |
20849 | fi |
20850 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
a0b9e27f | 20851 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 20852 | #define wxUSE_PROTOCOL_FTP 1 |
a0b9e27f | 20853 | EOF |
4cdb0ab0 | 20854 | |
3954f9ca VS |
20855 | fi |
20856 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
a0b9e27f | 20857 | cat >> confdefs.h <<\EOF |
3954f9ca | 20858 | #define wxUSE_PROTOCOL_FILE 1 |
a0b9e27f | 20859 | EOF |
3954f9ca VS |
20860 | |
20861 | fi | |
4cdb0ab0 | 20862 | fi |
3954f9ca VS |
20863 | fi |
20864 | ||
20865 | if test "$wxUSE_URL" = "yes"; then | |
20866 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
a0b9e27f | 20867 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
20868 | wxUSE_URL=no |
20869 | fi | |
20870 | if test "$wxUSE_URL" = "yes"; then | |
a0b9e27f | 20871 | cat >> confdefs.h <<\EOF |
3954f9ca | 20872 | #define wxUSE_URL 1 |
a0b9e27f | 20873 | EOF |
4cdb0ab0 VS |
20874 | |
20875 | fi | |
20876 | fi | |
20877 | ||
10f2d63a | 20878 | if test "$wxUSE_MINIFRAME" = "yes"; then |
a0b9e27f | 20879 | cat >> confdefs.h <<\EOF |
10f2d63a | 20880 | #define wxUSE_MINIFRAME 1 |
a0b9e27f | 20881 | EOF |
10f2d63a VZ |
20882 | |
20883 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20884 | fi | |
20885 | ||
20886 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 20887 | cat >> confdefs.h <<\EOF |
10f2d63a | 20888 | #define wxUSE_HTML 1 |
a0b9e27f | 20889 | EOF |
10f2d63a VZ |
20890 | |
20891 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
20892 | fi |
20893 | ||
20894 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
a0b9e27f | 20895 | cat >> confdefs.h <<\EOF |
1e487827 | 20896 | #define wxUSE_VALIDATORS 1 |
a0b9e27f | 20897 | EOF |
703e0a69 | 20898 | |
698dcdb6 VZ |
20899 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20900 | fi | |
20901 | ||
edae8572 | 20902 | if test "$wxUSE_PALETTE" = "yes" ; then |
a0b9e27f | 20903 | cat >> confdefs.h <<\EOF |
edae8572 | 20904 | #define wxUSE_PALETTE 1 |
a0b9e27f | 20905 | EOF |
edae8572 VZ |
20906 | |
20907 | fi | |
20908 | ||
698dcdb6 | 20909 | if test "$wxUSE_IMAGE" = "yes" ; then |
a0b9e27f | 20910 | cat >> confdefs.h <<\EOF |
698dcdb6 | 20911 | #define wxUSE_IMAGE 1 |
a0b9e27f | 20912 | EOF |
698dcdb6 VZ |
20913 | |
20914 | fi | |
20915 | ||
20916 | if test "$wxUSE_GIF" = "yes" ; then | |
a0b9e27f | 20917 | cat >> confdefs.h <<\EOF |
698dcdb6 | 20918 | #define wxUSE_GIF 1 |
a0b9e27f | 20919 | EOF |
698dcdb6 VZ |
20920 | |
20921 | fi | |
20922 | ||
20923 | if test "$wxUSE_PCX" = "yes" ; then | |
a0b9e27f | 20924 | cat >> confdefs.h <<\EOF |
698dcdb6 | 20925 | #define wxUSE_PCX 1 |
a0b9e27f | 20926 | EOF |
698dcdb6 VZ |
20927 | |
20928 | fi | |
20929 | ||
4b6b4dfc | 20930 | if test "$wxUSE_IFF" = "yes" ; then |
a0b9e27f | 20931 | cat >> confdefs.h <<\EOF |
4b6b4dfc | 20932 | #define wxUSE_IFF 1 |
a0b9e27f | 20933 | EOF |
4b6b4dfc RR |
20934 | |
20935 | fi | |
20936 | ||
698dcdb6 | 20937 | if test "$wxUSE_PNM" = "yes" ; then |
a0b9e27f | 20938 | cat >> confdefs.h <<\EOF |
698dcdb6 | 20939 | #define wxUSE_PNM 1 |
a0b9e27f | 20940 | EOF |
698dcdb6 VZ |
20941 | |
20942 | fi | |
20943 | ||
20944 | if test "$wxUSE_XPM" = "yes" ; then | |
a0b9e27f | 20945 | cat >> confdefs.h <<\EOF |
698dcdb6 | 20946 | #define wxUSE_XPM 1 |
a0b9e27f | 20947 | EOF |
698dcdb6 VZ |
20948 | |
20949 | fi | |
20950 | ||
658974ae | 20951 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
a0b9e27f | 20952 | cat >> confdefs.h <<\EOF |
658974ae | 20953 | #define wxUSE_ICO_CUR 1 |
a0b9e27f | 20954 | EOF |
658974ae VS |
20955 | |
20956 | fi | |
20957 | ||
a72a4bfa VS |
20958 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
20959 | LIBS=" -lunicows $LIBS" | |
20960 | fi | |
20961 | ||
8284b0c5 | 20962 | |
1e6feb95 | 20963 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
a0b9e27f | 20964 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20965 | #define wxUSE_CHOICEDLG 1 |
a0b9e27f | 20966 | EOF |
1e6feb95 VZ |
20967 | |
20968 | fi | |
20969 | ||
20970 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
a0b9e27f | 20971 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20972 | #define wxUSE_COLOURDLG 1 |
a0b9e27f | 20973 | EOF |
1e6feb95 VZ |
20974 | |
20975 | fi | |
20976 | ||
20977 | if test "$wxUSE_FILEDLG" = "yes"; then | |
a0b9e27f | 20978 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20979 | #define wxUSE_FILEDLG 1 |
a0b9e27f | 20980 | EOF |
1e6feb95 VZ |
20981 | |
20982 | fi | |
20983 | ||
8db37e06 | 20984 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
a0b9e27f | 20985 | cat >> confdefs.h <<\EOF |
8db37e06 | 20986 | #define wxUSE_FINDREPLDLG 1 |
a0b9e27f | 20987 | EOF |
8db37e06 VZ |
20988 | |
20989 | fi | |
20990 | ||
1e6feb95 | 20991 | if test "$wxUSE_FONTDLG" = "yes"; then |
a0b9e27f | 20992 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20993 | #define wxUSE_FONTDLG 1 |
a0b9e27f | 20994 | EOF |
1e6feb95 VZ |
20995 | |
20996 | fi | |
20997 | ||
20998 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 20999 | if test "$wxUSE_TREECTRL" != "yes"; then |
a0b9e27f | 21000 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 21001 | else |
a0b9e27f | 21002 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21003 | #define wxUSE_DIRDLG 1 |
a0b9e27f | 21004 | EOF |
1e6feb95 | 21005 | |
1e6feb95 VZ |
21006 | fi |
21007 | fi | |
21008 | ||
21009 | if test "$wxUSE_MSGDLG" = "yes"; then | |
a0b9e27f | 21010 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21011 | #define wxUSE_MSGDLG 1 |
a0b9e27f | 21012 | EOF |
1e6feb95 VZ |
21013 | |
21014 | fi | |
21015 | ||
21016 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
a0b9e27f | 21017 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21018 | #define wxUSE_NUMBERDLG 1 |
a0b9e27f | 21019 | EOF |
1e6feb95 VZ |
21020 | |
21021 | fi | |
21022 | ||
21023 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
21024 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21025 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 21026 | else |
a0b9e27f | 21027 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21028 | #define wxUSE_PROGRESSDLG 1 |
a0b9e27f | 21029 | EOF |
1e6feb95 VZ |
21030 | |
21031 | fi | |
21032 | fi | |
21033 | ||
cbca9943 | 21034 | if test "$wxUSE_SPLASH" = "yes"; then |
a0b9e27f | 21035 | cat >> confdefs.h <<\EOF |
cbca9943 | 21036 | #define wxUSE_SPLASH 1 |
a0b9e27f | 21037 | EOF |
cbca9943 VZ |
21038 | |
21039 | fi | |
21040 | ||
1e6feb95 VZ |
21041 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
21042 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21043 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 21044 | else |
a0b9e27f | 21045 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21046 | #define wxUSE_STARTUP_TIPS 1 |
a0b9e27f | 21047 | EOF |
1e6feb95 | 21048 | |
7b4a847f RR |
21049 | fi |
21050 | fi | |
579d8138 | 21051 | |
8284b0c5 | 21052 | if test "$wxUSE_TEXTDLG" = "yes"; then |
a0b9e27f | 21053 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21054 | #define wxUSE_TEXTDLG 1 |
a0b9e27f | 21055 | EOF |
8284b0c5 MB |
21056 | |
21057 | fi | |
21058 | ||
21059 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
a0b9e27f | 21060 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21061 | #define wxUSE_WIZARDDLG 1 |
a0b9e27f | 21062 | EOF |
8284b0c5 MB |
21063 | |
21064 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
21065 | fi | |
21066 | ||
21067 | ||
21068 | if test "$cross_compiling" = "yes"; then | |
21069 | OSINFO="\"$host\"" | |
21070 | else | |
21071 | OSINFO=`uname -s -r -m` | |
21072 | OSINFO="\"$OSINFO\"" | |
21073 | fi | |
21074 | ||
a0b9e27f | 21075 | cat >> confdefs.h <<EOF |
8284b0c5 | 21076 | #define WXWIN_OS_DESCRIPTION $OSINFO |
a0b9e27f | 21077 | EOF |
8284b0c5 MB |
21078 | |
21079 | ||
21080 | ||
21081 | if test "x$prefix" != "xNONE"; then | |
21082 | wxPREFIX=$prefix | |
21083 | else | |
21084 | wxPREFIX=$ac_default_prefix | |
21085 | fi | |
21086 | ||
a0b9e27f | 21087 | cat >> confdefs.h <<EOF |
8284b0c5 | 21088 | #define wxINSTALL_PREFIX "$wxPREFIX" |
a0b9e27f | 21089 | EOF |
8284b0c5 MB |
21090 | |
21091 | ||
21092 | ||
21093 | ||
21094 | ||
21095 | if test "$wxUSE_MAC" = 1 ; then | |
21096 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
21097 | fi | |
21098 | ||
21099 | ||
21100 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS" | |
21101 | ||
21102 | if test "$wxUSE_GUI" = "yes"; then | |
21103 | ||
21104 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
21105 | ||
a0b9e27f | 21106 | |
8284b0c5 MB |
21107 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
21108 | drawing dynamic erase event exec font image \ | |
21109 | minimal propsize rotate widgets" | |
21110 | ||
21111 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
21112 | else | |
21113 | SAMPLES_SUBDIRS="console" | |
21114 | fi | |
21115 | ||
21116 | ||
21117 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
21118 | -I\${top_srcdir}/include \ | |
21119 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
21120 | $TOOLKIT_INCLUDE" | |
21121 | ||
21122 | if test "$wxUSE_GTK" = 1; then | |
21123 | WXCONFIG_INCLUDE= | |
21124 | else | |
21125 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
21126 | fi | |
21127 | ||
21128 | if test "$GXX" = yes ; then | |
21129 | CXXWARNINGS="-Wall" | |
a0b9e27f | 21130 | |
8284b0c5 MB |
21131 | if test "$wxUSE_NO_DEPS" = "no" ; then |
21132 | CFLAGS="-MMD $CFLAGS" | |
21133 | CXXFLAGS="-MMD $CXXFLAGS" | |
21134 | fi | |
21135 | fi | |
21136 | ||
b2fee376 | 21137 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" |
8284b0c5 | 21138 | |
b2fee376 | 21139 | CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
8284b0c5 MB |
21140 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
21141 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
21142 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
21143 | ||
21144 | LDFLAGS="$LDFLAGS $PROFILE" | |
21145 | ||
21146 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
21147 | ||
21148 | ||
21149 | ||
21150 | ||
21151 | ||
21152 | ||
21153 | ||
21154 | ||
21155 | ||
21156 | ||
21157 | ||
21158 | ||
21159 | ||
21160 | ||
21161 | ||
21162 | ||
21163 | ||
21164 | ||
21165 | ||
21166 | ||
21167 | ||
21168 | ||
21169 | ||
21170 | ||
21171 | ||
21172 | ||
21173 | ||
21174 | ||
21175 | ||
21176 | ||
21177 | ||
21178 | ||
21179 | ||
21180 | ||
21181 | ||
21182 | ||
21183 | ||
21184 | ||
21185 | ||
21186 | ||
21187 | ||
21188 | ||
21189 | ||
21190 | ||
21191 | ||
21192 | ||
21193 | ||
21194 | ||
21195 | ||
21196 | ||
21197 | ||
21198 | ||
21199 | ||
21200 | ||
21201 | ||
21202 | ||
21203 | ||
21204 | ||
21205 | ||
21206 | ||
21207 | ||
21208 | ||
21209 | ||
21210 | ||
21211 | ||
21212 | ||
21213 | ||
21214 | ||
2f51a9ec GD |
21215 | |
21216 | ||
21217 | ||
21218 | ||
f6bcfd97 | 21219 | |
dad6c0ea | 21220 | |
caa2c79b | 21221 | |
3711412e | 21222 | |
1e6feb95 VZ |
21223 | |
21224 | ||
885d4bf5 VS |
21225 | |
21226 | ||
21227 | ||
21228 | ||
9b695262 VZ |
21229 | |
21230 | ||
62d0491b | 21231 | |
ef7f2189 | 21232 | |
40f7145c | 21233 | |
2bffed64 VZ |
21234 | |
21235 | ||
3bd8fb5f | 21236 | |
e26c13cf | 21237 | |
10f2d63a | 21238 | |
a0b9e27f MB |
21239 | |
21240 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
4f57cf11 | 21241 | echo "configure:21242: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a0b9e27f MB |
21242 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
21243 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
21244 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 21245 | else |
a0b9e27f | 21246 | cat > conftestmake <<\EOF |
10f2d63a VZ |
21247 | all: |
21248 | @echo 'ac_maketemp="${MAKE}"' | |
a0b9e27f | 21249 | EOF |
10f2d63a | 21250 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
a0b9e27f | 21251 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
21252 | if test -n "$ac_maketemp"; then |
21253 | eval ac_cv_prog_make_${ac_make}_set=yes | |
21254 | else | |
21255 | eval ac_cv_prog_make_${ac_make}_set=no | |
21256 | fi | |
a0b9e27f | 21257 | rm -f conftestmake |
10f2d63a VZ |
21258 | fi |
21259 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
a0b9e27f | 21260 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
21261 | SET_MAKE= |
21262 | else | |
a0b9e27f | 21263 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
21264 | SET_MAKE="MAKE=${MAKE-make}" |
21265 | fi | |
21266 | ||
8284b0c5 | 21267 | |
3a922bb4 RL |
21268 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
21269 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 21270 | fi |
665bbe97 | 21271 | |
8284b0c5 | 21272 | |
10f2d63a | 21273 | |
57973b9c VZ |
21274 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
21275 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
21276 | wx_cv_path_ifs=$PATH_IFS | |
21277 | wx_cv_program_ext=$PROGRAM_EXT | |
21278 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
21279 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
21280 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
21281 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ | |
21282 | wx_cv_path_ifs wx_cv_program_ext \ | |
21283 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype | |
21284 | ||
a0b9e27f | 21285 | subdirs="demos samples utils contrib" |
8284b0c5 | 21286 | |
10f2d63a | 21287 | |
a0b9e27f MB |
21288 | trap '' 1 2 15 |
21289 | cat > confcache <<\EOF | |
10f2d63a VZ |
21290 | # This file is a shell script that caches the results of configure |
21291 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
21292 | # scripts and configure runs. It is not useful on other systems. |
21293 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 21294 | # |
a0b9e27f MB |
21295 | # By default, configure uses ./config.cache as the cache file, |
21296 | # creating it if it does not exist already. You can give configure | |
21297 | # the --cache-file=FILE option to use a different cache file; that is | |
21298 | # what configure does when it calls configure scripts in | |
21299 | # subdirectories, so they share the cache. | |
21300 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
21301 | # config.status only pays attention to the cache file if you give it the | |
21302 | # --recheck option to rerun configure. | |
10f2d63a | 21303 | # |
a0b9e27f | 21304 | EOF |
10f2d63a VZ |
21305 | # The following way of writing the cache mishandles newlines in values, |
21306 | # but we know of no workaround that is simple, portable, and efficient. | |
21307 | # So, don't put newlines in cache variables' values. | |
21308 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21309 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
21310 | (set) 2>&1 | |
21311 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21312 | *ac_space=\ *) | |
21313 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
21314 | # turns \\\\ into \\, and sed turns \\ into \). | |
21315 | sed -n \ | |
21316 | -e "s/'/'\\\\''/g" \ | |
21317 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
21318 | ;; | |
21319 | *) | |
21320 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21321 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
21322 | ;; | |
21323 | esac >> confcache | |
21324 | if cmp -s $cache_file confcache; then | |
21325 | : | |
21326 | else | |
10f2d63a | 21327 | if test -w $cache_file; then |
a0b9e27f MB |
21328 | echo "updating cache $cache_file" |
21329 | cat confcache > $cache_file | |
10f2d63a VZ |
21330 | else |
21331 | echo "not updating unwritable cache $cache_file" | |
21332 | fi | |
21333 | fi | |
21334 | rm -f confcache | |
21335 | ||
a0b9e27f MB |
21336 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
21337 | ||
10f2d63a VZ |
21338 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
21339 | # Let make expand exec_prefix. | |
21340 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21341 | ||
a0b9e27f MB |
21342 | # Any assignment to VPATH causes Sun make to only execute |
21343 | # the first set of double-colon rules, so remove it if not needed. | |
21344 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 21345 | if test "x$srcdir" = x.; then |
a0b9e27f | 21346 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
21347 | fi |
21348 | ||
a0b9e27f | 21349 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
10f2d63a | 21350 | |
a0b9e27f | 21351 | DEFS=-DHAVE_CONFIG_H |
8284b0c5 | 21352 | |
a0b9e27f | 21353 | # Without the "./", some shells look in PATH for config.status. |
247f5006 | 21354 | : ${CONFIG_STATUS=./config.status} |
52127426 | 21355 | |
a0b9e27f MB |
21356 | echo creating $CONFIG_STATUS |
21357 | rm -f $CONFIG_STATUS | |
21358 | cat > $CONFIG_STATUS <<EOF | |
21359 | #! /bin/sh | |
21360 | # Generated automatically by configure. | |
21361 | # Run this file to recreate the current configuration. | |
21362 | # This directory was configured as follows, | |
21363 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
247f5006 | 21364 | # |
a0b9e27f | 21365 | # $0 $ac_configure_args |
247f5006 | 21366 | # |
a0b9e27f MB |
21367 | # Compiler output produced by configure, useful for debugging |
21368 | # configure, is in ./config.log if it exists. | |
247f5006 | 21369 | |
a0b9e27f MB |
21370 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
21371 | for ac_option | |
247f5006 | 21372 | do |
a0b9e27f MB |
21373 | case "\$ac_option" in |
21374 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
21375 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
21376 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
21377 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
21378 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
21379 | exit 0 ;; | |
21380 | -help | --help | --hel | --he | --h) | |
21381 | echo "\$ac_cs_usage"; exit 0 ;; | |
21382 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
247f5006 VZ |
21383 | esac |
21384 | done | |
21385 | ||
a0b9e27f MB |
21386 | ac_given_srcdir=$srcdir |
21387 | ac_given_INSTALL="$INSTALL" | |
247f5006 | 21388 | |
a0b9e27f MB |
21389 | trap 'rm -fr `echo " |
21390 | wx-config | |
21391 | src/make.env | |
21392 | src/makeprog.env | |
21393 | src/makelib.env | |
21394 | Makefile | |
21395 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
21396 | EOF | |
21397 | cat >> $CONFIG_STATUS <<EOF | |
247f5006 | 21398 | |
a0b9e27f MB |
21399 | # Protect against being on the right side of a sed subst in config.status. |
21400 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
21401 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
21402 | $ac_vpsub | |
21403 | $extrasub | |
21404 | s%@SHELL@%$SHELL%g | |
21405 | s%@CFLAGS@%$CFLAGS%g | |
21406 | s%@CPPFLAGS@%$CPPFLAGS%g | |
21407 | s%@CXXFLAGS@%$CXXFLAGS%g | |
21408 | s%@FFLAGS@%$FFLAGS%g | |
21409 | s%@DEFS@%$DEFS%g | |
21410 | s%@LDFLAGS@%$LDFLAGS%g | |
21411 | s%@LIBS@%$LIBS%g | |
21412 | s%@exec_prefix@%$exec_prefix%g | |
21413 | s%@prefix@%$prefix%g | |
21414 | s%@program_transform_name@%$program_transform_name%g | |
21415 | s%@bindir@%$bindir%g | |
21416 | s%@sbindir@%$sbindir%g | |
21417 | s%@libexecdir@%$libexecdir%g | |
21418 | s%@datadir@%$datadir%g | |
21419 | s%@sysconfdir@%$sysconfdir%g | |
21420 | s%@sharedstatedir@%$sharedstatedir%g | |
21421 | s%@localstatedir@%$localstatedir%g | |
21422 | s%@libdir@%$libdir%g | |
21423 | s%@includedir@%$includedir%g | |
21424 | s%@oldincludedir@%$oldincludedir%g | |
21425 | s%@infodir@%$infodir%g | |
21426 | s%@mandir@%$mandir%g | |
21427 | s%@host@%$host%g | |
21428 | s%@host_alias@%$host_alias%g | |
21429 | s%@host_cpu@%$host_cpu%g | |
21430 | s%@host_vendor@%$host_vendor%g | |
21431 | s%@host_os@%$host_os%g | |
21432 | s%@target@%$target%g | |
21433 | s%@target_alias@%$target_alias%g | |
21434 | s%@target_cpu@%$target_cpu%g | |
21435 | s%@target_vendor@%$target_vendor%g | |
21436 | s%@target_os@%$target_os%g | |
21437 | s%@build@%$build%g | |
21438 | s%@build_alias@%$build_alias%g | |
21439 | s%@build_cpu@%$build_cpu%g | |
21440 | s%@build_vendor@%$build_vendor%g | |
21441 | s%@build_os@%$build_os%g | |
21442 | s%@CC@%$CC%g | |
21443 | s%@CPP@%$CPP%g | |
21444 | s%@CXX@%$CXX%g | |
21445 | s%@RANLIB@%$RANLIB%g | |
21446 | s%@AR@%$AR%g | |
21447 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
21448 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
21449 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
21450 | s%@STRIP@%$STRIP%g | |
21451 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
21452 | s%@YACC@%$YACC%g | |
21453 | s%@LEX@%$LEX%g | |
21454 | s%@LEXLIB@%$LEXLIB%g | |
21455 | s%@LN_S@%$LN_S%g | |
21456 | s%@CXXCPP@%$CXXCPP%g | |
21457 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
21458 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
21459 | s%@GTK_LIBS@%$GTK_LIBS%g | |
21460 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
21461 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
21462 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
21463 | s%@X_CFLAGS@%$X_CFLAGS%g | |
21464 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
21465 | s%@X_LIBS@%$X_LIBS%g | |
21466 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
21467 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g | |
21468 | s%@RESCOMP@%$RESCOMP%g | |
21469 | s%@DEREZ@%$DEREZ%g | |
21470 | s%@LIBICONV@%$LIBICONV%g | |
21471 | s%@LEX_STEM@%$LEX_STEM%g | |
21472 | s%@PATH_IFS@%$PATH_IFS%g | |
21473 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
21474 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
21475 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
21476 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
21477 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
21478 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g | |
21479 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
21480 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
21481 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
21482 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
21483 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
21484 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
21485 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
21486 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
21487 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
21488 | s%@WX_ALL@%$WX_ALL%g | |
21489 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
21490 | s%@SHARED_LD@%$SHARED_LD%g | |
21491 | s%@PIC_FLAG@%$PIC_FLAG%g | |
21492 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
21493 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
21494 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
21495 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
21496 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
21497 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
2bffed64 | 21498 | s%@STATIC_FLAG@%$STATIC_FLAG%g |
a0b9e27f MB |
21499 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
21500 | s%@USE_GUI@%$USE_GUI%g | |
21501 | s%@AFMINSTALL@%$AFMINSTALL%g | |
21502 | s%@TOOLKIT@%$TOOLKIT%g | |
21503 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
21504 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
21505 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
21506 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
21507 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
21508 | s%@cross_compiling@%$cross_compiling%g | |
21509 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
21510 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
21511 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
21512 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
21513 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
21514 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
e26c13cf | 21515 | s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g |
a0b9e27f MB |
21516 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
21517 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
21518 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
21519 | s%@GUIDIST@%$GUIDIST%g | |
21520 | s%@PORT_FILES@%$PORT_FILES%g | |
21521 | s%@DISTDIR@%$DISTDIR%g | |
a0b9e27f MB |
21522 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
21523 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
21524 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g | |
21525 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
21526 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
21527 | s%@EXTRADEFS@%$EXTRADEFS%g | |
21528 | s%@RESFLAGS@%$RESFLAGS%g | |
21529 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
21530 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
21531 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
21532 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
21533 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
21534 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
21535 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g | |
21536 | s%@DLLTOOL@%$DLLTOOL%g | |
21537 | s%@AS@%$AS%g | |
21538 | s%@NM@%$NM%g | |
21539 | s%@LD@%$LD%g | |
21540 | s%@MAKEINFO@%$MAKEINFO%g | |
21541 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
21542 | s%@SET_MAKE@%$SET_MAKE%g | |
21543 | s%@subdirs@%$subdirs%g | |
247f5006 | 21544 | |
247f5006 | 21545 | CEOF |
a0b9e27f | 21546 | EOF |
247f5006 | 21547 | |
a0b9e27f MB |
21548 | cat >> $CONFIG_STATUS <<\EOF |
21549 | ||
21550 | # Split the substitutions into bite-sized pieces for seds with | |
21551 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
21552 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
21553 | ac_file=1 # Number of current file. | |
21554 | ac_beg=1 # First line for current file. | |
21555 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
21556 | ac_more_lines=: | |
21557 | ac_sed_cmds="" | |
21558 | while $ac_more_lines; do | |
21559 | if test $ac_beg -gt 1; then | |
21560 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
21561 | else | |
21562 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
21563 | fi | |
21564 | if test ! -s conftest.s$ac_file; then | |
21565 | ac_more_lines=false | |
21566 | rm -f conftest.s$ac_file | |
21567 | else | |
21568 | if test -z "$ac_sed_cmds"; then | |
21569 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
247f5006 | 21570 | else |
a0b9e27f | 21571 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
247f5006 | 21572 | fi |
a0b9e27f MB |
21573 | ac_file=`expr $ac_file + 1` |
21574 | ac_beg=$ac_end | |
21575 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 21576 | fi |
a0b9e27f MB |
21577 | done |
21578 | if test -z "$ac_sed_cmds"; then | |
21579 | ac_sed_cmds=cat | |
21580 | fi | |
21581 | EOF | |
10f2d63a | 21582 | |
a0b9e27f | 21583 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 21584 | |
a0b9e27f MB |
21585 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
21586 | src/make.env | |
21587 | src/makeprog.env | |
21588 | src/makelib.env | |
21589 | Makefile | |
21590 | "} | |
21591 | EOF | |
21592 | cat >> $CONFIG_STATUS <<\EOF | |
21593 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
21594 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
21595 | case "$ac_file" in | |
21596 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21597 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21598 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a | 21599 | esac |
247f5006 | 21600 | |
a0b9e27f | 21601 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
247f5006 | 21602 | |
a0b9e27f MB |
21603 | # Remove last slash and all that follows it. Not all systems have dirname. |
21604 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21605 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21606 | # The file is in a subdirectory. | |
21607 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
21608 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
21609 | # A "../" for each directory in $ac_dir_suffix. | |
21610 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
21611 | else | |
21612 | ac_dir_suffix= ac_dots= | |
21613 | fi | |
247f5006 | 21614 | |
a0b9e27f MB |
21615 | case "$ac_given_srcdir" in |
21616 | .) srcdir=. | |
21617 | if test -z "$ac_dots"; then top_srcdir=. | |
21618 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
21619 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
247f5006 | 21620 | *) # Relative path. |
a0b9e27f MB |
21621 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
21622 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8284b0c5 | 21623 | esac |
10f2d63a | 21624 | |
a0b9e27f MB |
21625 | case "$ac_given_INSTALL" in |
21626 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21627 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21628 | esac | |
247f5006 | 21629 | |
a0b9e27f MB |
21630 | echo creating "$ac_file" |
21631 | rm -f "$ac_file" | |
21632 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
21633 | case "$ac_file" in | |
21634 | *Makefile*) ac_comsub="1i\\ | |
21635 | # $configure_input" ;; | |
21636 | *) ac_comsub= ;; | |
21637 | esac | |
247f5006 | 21638 | |
a0b9e27f MB |
21639 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
21640 | sed -e "$ac_comsub | |
21641 | s%@configure_input@%$configure_input%g | |
21642 | s%@srcdir@%$srcdir%g | |
21643 | s%@top_srcdir@%$top_srcdir%g | |
21644 | s%@INSTALL@%$INSTALL%g | |
21645 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
21646 | fi; done | |
21647 | rm -f conftest.s* | |
10f2d63a VZ |
21648 | |
21649 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21650 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21651 | # | |
21652 | # ac_d sets the value in "#define NAME VALUE" lines. | |
a0b9e27f MB |
21653 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
21654 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
21655 | ac_dC='\3' | |
21656 | ac_dD='%g' | |
21657 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
21658 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21659 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 21660 | ac_uC=' ' |
a0b9e27f MB |
21661 | ac_uD='\4%g' |
21662 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21663 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21664 | ac_eB='$%\1#\2define\3' | |
21665 | ac_eC=' ' | |
21666 | ac_eD='%g' | |
21667 | ||
21668 | if test "${CONFIG_HEADERS+set}" != set; then | |
21669 | EOF | |
21670 | cat >> $CONFIG_STATUS <<EOF | |
21671 | CONFIG_HEADERS="setup.h:setup.h.in" | |
21672 | EOF | |
21673 | cat >> $CONFIG_STATUS <<\EOF | |
21674 | fi | |
21675 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 21676 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
a0b9e27f MB |
21677 | case "$ac_file" in |
21678 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21679 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21680 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21681 | esac |
21682 | ||
a0b9e27f MB |
21683 | echo creating $ac_file |
21684 | ||
21685 | rm -f conftest.frag conftest.in conftest.out | |
21686 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
21687 | cat $ac_file_inputs > conftest.in | |
21688 | ||
21689 | EOF | |
21690 | ||
21691 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
21692 | # the proper values into config.h.in to produce config.h. And first: | |
21693 | # Protect against being on the right side of a sed subst in config.status. | |
21694 | # Protect against being in an unquoted here document in config.status. | |
21695 | rm -f conftest.vals | |
21696 | cat > conftest.hdr <<\EOF | |
21697 | s/[\\&%]/\\&/g | |
21698 | s%[\\$`]%\\&%g | |
21699 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
21700 | s%ac_d%ac_u%gp | |
21701 | s%ac_u%ac_e%gp | |
21702 | EOF | |
21703 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
21704 | rm -f conftest.hdr | |
10f2d63a VZ |
21705 | |
21706 | # This sed command replaces #undef with comments. This is necessary, for | |
21707 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21708 | # on some systems where configure will not decide to define it. | |
a0b9e27f MB |
21709 | cat >> conftest.vals <<\EOF |
21710 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
21711 | EOF | |
21712 | ||
21713 | # Break up conftest.vals because some shells have a limit on | |
21714 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
21715 | |
21716 | rm -f conftest.tail | |
a0b9e27f | 21717 | while : |
10f2d63a | 21718 | do |
a0b9e27f MB |
21719 | ac_lines=`grep -c . conftest.vals` |
21720 | # grep -c gives empty output for an empty file on some AIX systems. | |
21721 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
21722 | # Write a limited-size here document to conftest.frag. | |
21723 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
21724 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 21725 | echo 'CEOF |
a0b9e27f MB |
21726 | sed -f conftest.frag conftest.in > conftest.out |
21727 | rm -f conftest.in | |
21728 | mv conftest.out conftest.in | |
21729 | ' >> $CONFIG_STATUS | |
21730 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
21731 | rm -f conftest.vals | |
21732 | mv conftest.tail conftest.vals | |
10f2d63a | 21733 | done |
a0b9e27f MB |
21734 | rm -f conftest.vals |
21735 | ||
21736 | cat >> $CONFIG_STATUS <<\EOF | |
21737 | rm -f conftest.frag conftest.h | |
21738 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
21739 | cat conftest.in >> conftest.h | |
21740 | rm -f conftest.in | |
21741 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
21742 | echo "$ac_file is unchanged" | |
21743 | rm -f conftest.h | |
10f2d63a | 21744 | else |
a0b9e27f MB |
21745 | # Remove last slash and all that follows it. Not all systems have dirname. |
21746 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21747 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21748 | # The file is in a subdirectory. | |
21749 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
247f5006 | 21750 | fi |
a0b9e27f MB |
21751 | rm -f $ac_file |
21752 | mv conftest.h $ac_file | |
247f5006 | 21753 | fi |
a0b9e27f MB |
21754 | fi; done |
21755 | ||
21756 | EOF | |
21757 | cat >> $CONFIG_STATUS <<EOF | |
21758 | ||
21759 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
21760 | LN_S="${LN_S}" | |
21761 | ||
21762 | ||
21763 | EOF | |
21764 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 21765 | |
652d930d | 21766 | if test ! -h wx-config; then |
991a5759 | 21767 | chmod +x wx-config |
3a922bb4 RL |
21768 | mv wx-config wx${TOOLCHAIN_NAME}-config |
21769 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 21770 | fi |
665bbe97 | 21771 | |
00cf1208 RR |
21772 | if test ! -d lib; then |
21773 | mkdir lib | |
21774 | fi | |
21775 | if test ! -d lib/wx; then | |
21776 | mkdir lib/wx | |
21777 | fi | |
21778 | if test ! -d lib/wx/include; then | |
21779 | mkdir lib/wx/include | |
21780 | fi | |
3a922bb4 RL |
21781 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
21782 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 21783 | fi |
3a922bb4 RL |
21784 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
21785 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
21786 | fi |
21787 | if test -f setup.h; then | |
3a922bb4 | 21788 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 21789 | fi |
a0b9e27f MB |
21790 | |
21791 | exit 0 | |
21792 | EOF | |
10f2d63a | 21793 | chmod +x $CONFIG_STATUS |
a0b9e27f MB |
21794 | rm -fr confdefs* $ac_clean_files |
21795 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 21796 | |
2224580a VZ |
21797 | if test "$no_recursion" != yes; then |
21798 | ||
21799 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21800 | ac_sub_configure_args= | |
21801 | ac_prev= | |
21802 | for ac_arg in $ac_configure_args; do | |
21803 | if test -n "$ac_prev"; then | |
21804 | ac_prev= | |
21805 | continue | |
21806 | fi | |
a0b9e27f | 21807 | case "$ac_arg" in |
2224580a VZ |
21808 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
21809 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21810 | ac_prev=cache_file ;; | |
21811 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
a0b9e27f | 21812 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
21813 | ;; |
21814 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21815 | ac_prev=srcdir ;; | |
21816 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21817 | ;; | |
21818 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21819 | esac | |
21820 | done | |
21821 | ||
a0b9e27f | 21822 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
21823 | |
21824 | # Do not complain, so a configure script can configure whichever | |
21825 | # parts of a large source tree are present. | |
a0b9e27f MB |
21826 | if test ! -d $srcdir/$ac_config_dir; then |
21827 | continue | |
21828 | fi | |
2224580a | 21829 | |
a0b9e27f | 21830 | echo configuring in $ac_config_dir |
2224580a | 21831 | |
a0b9e27f MB |
21832 | case "$srcdir" in |
21833 | .) ;; | |
21834 | *) | |
21835 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
21836 | else | |
21837 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
21838 | fi | |
21839 | ;; | |
21840 | esac | |
2224580a | 21841 | |
a0b9e27f MB |
21842 | ac_popdir=`pwd` |
21843 | cd $ac_config_dir | |
247f5006 | 21844 | |
a0b9e27f MB |
21845 | # A "../" for each directory in /$ac_config_dir. |
21846 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
247f5006 | 21847 | |
a0b9e27f MB |
21848 | case "$srcdir" in |
21849 | .) # No --srcdir option. We are building in place. | |
21850 | ac_sub_srcdir=$srcdir ;; | |
21851 | /*) # Absolute path. | |
21852 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
21853 | *) # Relative path. | |
21854 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
21855 | esac | |
2224580a VZ |
21856 | |
21857 | # Check for guested configure; otherwise get Cygnus style configure. | |
a0b9e27f MB |
21858 | if test -f $ac_sub_srcdir/configure; then |
21859 | ac_sub_configure=$ac_sub_srcdir/configure | |
21860 | elif test -f $ac_sub_srcdir/configure.in; then | |
2224580a VZ |
21861 | ac_sub_configure=$ac_configure |
21862 | else | |
a0b9e27f | 21863 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
21864 | ac_sub_configure= |
21865 | fi | |
21866 | ||
21867 | # The recursion is here. | |
21868 | if test -n "$ac_sub_configure"; then | |
a0b9e27f | 21869 | |
2224580a | 21870 | # Make the cache file name correct relative to the subdirectory. |
a0b9e27f MB |
21871 | case "$cache_file" in |
21872 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 21873 | *) # Relative path. |
a0b9e27f | 21874 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 21875 | esac |
a0b9e27f MB |
21876 | case "$ac_given_INSTALL" in |
21877 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21878 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21879 | esac | |
2224580a | 21880 | |
a0b9e27f | 21881 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 21882 | # The eval makes quoting arguments work. |
a0b9e27f MB |
21883 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
21884 | then : | |
21885 | else | |
21886 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21887 | fi | |
2224580a VZ |
21888 | fi |
21889 | ||
21890 | cd $ac_popdir | |
21891 | done | |
21892 | fi | |
21893 | ||
8284b0c5 | 21894 |