]>
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 | ||
2b5f62a0 VZ |
55 | |
56 | ||
57 | ||
a0b9e27f MB |
58 | |
59 | ||
60 | ||
61 | ||
62 | # Configure paths for GTK+ | |
63 | # Owen Taylor 1997-2001 | |
64 | ||
65 | ||
66 | ||
2b5f62a0 VZ |
67 | # Configure paths for GTK+ |
68 | # Owen Taylor 97-11-3 | |
a0b9e27f MB |
69 | |
70 | ||
71 | ||
72 | ||
73 | ||
a0b9e27f MB |
74 | |
75 | ||
76 | ||
77 | # Guess values for system-dependent variables and create Makefiles. | |
78 | # Generated automatically using autoconf version 2.13 | |
79 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
80 | # | |
81 | # This configure script is free software; the Free Software Foundation | |
82 | # gives unlimited permission to copy, distribute and modify it. | |
83 | ||
84 | # Defaults: | |
85 | ac_help= | |
86 | ac_default_prefix=/usr/local | |
87 | # Any additions from configure.in: | |
88 | ac_help="$ac_help | |
89 | --enable-gui use GUI classes" | |
90 | ac_help="$ac_help | |
91 | --enable-universal use wxWindows GUI controls instead of native ones" | |
92 | ac_help="$ac_help | |
93 | --with-gtk use GTK+" | |
94 | ac_help="$ac_help | |
95 | --with-motif use Motif/Lesstif" | |
96 | ac_help="$ac_help | |
97 | --with-mac use Mac OS X" | |
98 | ac_help="$ac_help | |
99 | --with-wine use WINE" | |
100 | ac_help="$ac_help | |
101 | --with-msw use MS-Windows" | |
102 | ac_help="$ac_help | |
103 | --with-pm use OS/2 Presentation Manager" | |
104 | ac_help="$ac_help | |
105 | --with-mgl use SciTech MGL" | |
106 | ac_help="$ac_help | |
107 | --with-microwin use MicroWindows" | |
108 | ac_help="$ac_help | |
109 | --with-x11 use X11" | |
110 | ac_help="$ac_help | |
111 | --enable-nanox use NanoX" | |
112 | ac_help="$ac_help | |
113 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
114 | ac_help="$ac_help | |
115 | --with-libpng use libpng (PNG image format)" | |
116 | ac_help="$ac_help | |
117 | --with-libjpeg use libjpeg (JPEG file format)" | |
118 | ac_help="$ac_help | |
119 | --with-libtiff use libtiff (TIFF file format)" | |
120 | ac_help="$ac_help | |
121 | --with-opengl use OpenGL (or Mesa)" | |
122 | ac_help="$ac_help | |
123 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" | |
124 | ac_help="$ac_help | |
125 | --with-regex enable support for wxRegEx class" | |
126 | ac_help="$ac_help | |
127 | --with-zlib use zlib for LZW compression" | |
128 | ac_help="$ac_help | |
129 | --with-odbc use the IODBC and wxODBC classes" | |
130 | ac_help="$ac_help | |
131 | --enable-shared create shared library code" | |
132 | ac_help="$ac_help | |
133 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
134 | ac_help="$ac_help | |
135 | --enable-optimise create optimised code" | |
136 | ac_help="$ac_help | |
137 | --enable-debug same as debug_flag and debug_info" | |
138 | ac_help="$ac_help | |
b2fee376 | 139 | --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)" |
a0b9e27f MB |
140 | ac_help="$ac_help |
141 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
142 | ac_help="$ac_help | |
143 | --enable-debug_info create code with debugging information" | |
144 | ac_help="$ac_help | |
145 | --enable-debug_gdb create code with extra GDB debugging information" | |
146 | ac_help="$ac_help | |
147 | --enable-debug_cntxt use wxDebugContext" | |
148 | ac_help="$ac_help | |
149 | --enable-mem_tracing create code with memory tracing" | |
150 | ac_help="$ac_help | |
151 | --enable-profile create code with profiling information" | |
152 | ac_help="$ac_help | |
153 | --enable-no_rtti create code without RTTI information" | |
154 | ac_help="$ac_help | |
155 | --enable-no_exceptions create code without C++ exceptions handling" | |
156 | ac_help="$ac_help | |
157 | --enable-permissive compile code disregarding strict ANSI" | |
158 | ac_help="$ac_help | |
159 | --enable-no_deps create code without dependency information" | |
160 | ac_help="$ac_help | |
161 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
162 | ac_help="$ac_help | |
163 | --disable-compat22 disable wxWindows 2.2 compatibility" | |
164 | ac_help="$ac_help | |
165 | --enable-rpath=DIR output the rpath flag from wx-config" | |
166 | ac_help="$ac_help | |
167 | --enable-intl use internationalization system" | |
168 | ac_help="$ac_help | |
169 | --enable-config use wxConfig (and derived) classes" | |
170 | ac_help="$ac_help | |
171 | --enable-protocols use wxProtocol and derived classes" | |
172 | ac_help="$ac_help | |
173 | --enable-ftp use wxFTP (requires wxProtocol" | |
174 | ac_help="$ac_help | |
175 | --enable-http use wxHTTP (requires wxProtocol" | |
176 | ac_help="$ac_help | |
177 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
178 | ac_help="$ac_help | |
179 | --enable-sockets use socket/network classes" | |
3bce6687 JS |
180 | ac_help="$ac_help |
181 | --enable-ole use OLE classes" | |
182 | ac_help="$ac_help | |
183 | --enable-dataobj use data object classes" | |
a0b9e27f MB |
184 | ac_help="$ac_help |
185 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
186 | ac_help="$ac_help | |
187 | --enable-cmdline use wxCmdLineParser class" | |
188 | ac_help="$ac_help | |
189 | --enable-datetime use wxDateTime class" | |
190 | ac_help="$ac_help | |
191 | --enable-timedate use obsolete wxDate/wxTime classes" | |
192 | ac_help="$ac_help | |
193 | --enable-stopwatch use wxStopWatch class" | |
194 | ac_help="$ac_help | |
195 | --enable-dialupman use dialup network classes" | |
196 | ac_help="$ac_help | |
197 | --enable-apple_ieee use the Apple IEEE codec" | |
198 | ac_help="$ac_help | |
199 | --enable-timer use wxTimer class" | |
200 | ac_help="$ac_help | |
201 | --enable-wave use wxWave class" | |
202 | ac_help="$ac_help | |
203 | --enable-fraction use wxFraction class" | |
204 | ac_help="$ac_help | |
205 | --enable-dynlib use wxLibrary class for DLL loading" | |
206 | ac_help="$ac_help | |
207 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
208 | ac_help="$ac_help | |
209 | --enable-longlong use wxLongLong class" | |
210 | ac_help="$ac_help | |
211 | --enable-geometry use geometry class" | |
212 | ac_help="$ac_help | |
213 | --enable-log use logging system" | |
214 | ac_help="$ac_help | |
215 | --enable-streams use wxStream etc classes" | |
216 | ac_help="$ac_help | |
217 | --enable-file use wxFile classes" | |
218 | ac_help="$ac_help | |
219 | --enable-ffile use wxFFile classes" | |
220 | ac_help="$ac_help | |
221 | --enable-textbuf use wxTextBuffer class" | |
222 | ac_help="$ac_help | |
223 | --enable-textfile use wxTextFile class" | |
224 | ac_help="$ac_help | |
225 | --enable-fontmap use font encodings conversion classes" | |
226 | ac_help="$ac_help | |
227 | --enable-unicode compile wxString with Unicode support" | |
228 | ac_help="$ac_help | |
229 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
230 | ac_help="$ac_help | |
231 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
232 | ac_help="$ac_help | |
233 | --enable-std_iostreams use standard C++ stream classes" | |
234 | ac_help="$ac_help | |
235 | --enable-filesystem use virtual file systems classes" | |
236 | ac_help="$ac_help | |
237 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
238 | ac_help="$ac_help | |
239 | --enable-fs_zip use virtual ZIP filesystems" | |
240 | ac_help="$ac_help | |
241 | --enable-zipstream use wxZipInputStream" | |
242 | ac_help="$ac_help | |
243 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
244 | ac_help="$ac_help | |
245 | --enable-snglinst use wxSingleInstanceChecker class" | |
246 | ac_help="$ac_help | |
247 | --enable-mimetype use wxMimeTypesManager" | |
248 | ac_help="$ac_help | |
249 | --enable-sysoptions use wxSystemOptions" | |
250 | ac_help="$ac_help | |
251 | --enable-url use wxURL class" | |
252 | ac_help="$ac_help | |
253 | --enable-protocol use wxProtocol class" | |
254 | ac_help="$ac_help | |
255 | --enable-protocol-http HTTP support in wxProtocol" | |
256 | ac_help="$ac_help | |
257 | --enable-protocol-ftp FTP support in wxProtocol" | |
258 | ac_help="$ac_help | |
259 | --enable-protocol-file FILE support in wxProtocol" | |
260 | ac_help="$ac_help | |
261 | --enable-threads use threads" | |
262 | ac_help="$ac_help | |
263 | --enable-docview use document view architecture" | |
264 | ac_help="$ac_help | |
265 | --enable-help use help subsystem" | |
266 | ac_help="$ac_help | |
267 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
268 | ac_help="$ac_help | |
269 | --enable-html use wxHTML sub-library" | |
270 | ac_help="$ac_help | |
271 | --enable-htmlhelp use wxHTML-based help" | |
272 | ac_help="$ac_help | |
273 | --enable-constraints use layout-constraints system" | |
274 | ac_help="$ac_help | |
275 | --enable-printarch use printing architecture" | |
276 | ac_help="$ac_help | |
277 | --enable-mdi use multiple document interface architecture" | |
278 | ac_help="$ac_help | |
279 | --enable-loggui use standard GUI logger" | |
280 | ac_help="$ac_help | |
281 | --enable-logwin use wxLogWindow" | |
282 | ac_help="$ac_help | |
283 | --enable-logdialog use wxLogDialog" | |
284 | ac_help="$ac_help | |
285 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
286 | ac_help="$ac_help | |
287 | --enable-prologio use Prolog IO library" | |
288 | ac_help="$ac_help | |
289 | --enable-resources use wxWindows resources" | |
290 | ac_help="$ac_help | |
291 | --enable-xresources use X resources for save (default for gtk+)" | |
292 | ac_help="$ac_help | |
293 | --enable-clipboard use wxClipboard classes" | |
294 | ac_help="$ac_help | |
295 | --enable-dnd use Drag'n'Drop classes" | |
296 | ac_help="$ac_help | |
297 | --enable-metafile use win32 metafiles" | |
298 | ac_help="$ac_help | |
299 | --enable-treelayout use wxTreeLayout classes" | |
300 | ac_help="$ac_help | |
301 | --enable-controls use all usual controls" | |
302 | ac_help="$ac_help | |
303 | --enable-accel use accelerators" | |
304 | ac_help="$ac_help | |
305 | --enable-button use wxButton class" | |
306 | ac_help="$ac_help | |
307 | --enable-bmpbutton use wxBitmapButton class" | |
308 | ac_help="$ac_help | |
309 | --enable-calendar use wxCalendarCtrl class" | |
310 | ac_help="$ac_help | |
311 | --enable-caret use wxCaret class" | |
312 | ac_help="$ac_help | |
313 | --enable-checkbox use wxCheckBox class" | |
314 | ac_help="$ac_help | |
315 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
316 | ac_help="$ac_help | |
317 | --enable-choice use wxChoice class" | |
318 | ac_help="$ac_help | |
319 | --enable-combobox use wxComboBox classes" | |
320 | ac_help="$ac_help | |
321 | --enable-gauge use wxGauge class" | |
322 | ac_help="$ac_help | |
323 | --enable-grid use wxGrid class" | |
324 | ac_help="$ac_help | |
325 | --enable-newgrid use new wxGrid class" | |
326 | ac_help="$ac_help | |
327 | --enable-imaglist use wxImageList class" | |
328 | ac_help="$ac_help | |
329 | --enable-listbox use wxListBox class" | |
330 | ac_help="$ac_help | |
331 | --enable-listctrl use wxListCtrl class" | |
332 | ac_help="$ac_help | |
333 | --enable-notebook use wxNotebook class" | |
334 | ac_help="$ac_help | |
335 | --enable-propsheet use wxPropertySheet class" | |
336 | ac_help="$ac_help | |
337 | --enable-radiobox use wxRadioBox class" | |
338 | ac_help="$ac_help | |
339 | --enable-radiobtn use wxRadioButton class" | |
340 | ac_help="$ac_help | |
341 | --enable-sash use wxSashWindow class" | |
342 | ac_help="$ac_help | |
343 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
344 | ac_help="$ac_help | |
345 | --enable-slider use wxSlider class" | |
346 | ac_help="$ac_help | |
347 | --enable-spinbtn use wxSpinButton class" | |
348 | ac_help="$ac_help | |
349 | --enable-spinctrl use wxSpinCtrl class" | |
350 | ac_help="$ac_help | |
351 | --enable-splitter use wxSplitterWindow class" | |
352 | ac_help="$ac_help | |
353 | --enable-statbmp use wxStaticBitmap class" | |
354 | ac_help="$ac_help | |
355 | --enable-statbox use wxStaticBox class" | |
356 | ac_help="$ac_help | |
357 | --enable-statline use wxStaticLine class" | |
358 | ac_help="$ac_help | |
359 | --enable-stattext use wxStaticText class" | |
360 | ac_help="$ac_help | |
361 | --enable-statusbar use wxStatusBar class" | |
362 | ac_help="$ac_help | |
363 | --enable-tabdialog use wxTabControl class" | |
364 | ac_help="$ac_help | |
365 | --enable-textctrl use wxTextCtrl class" | |
366 | ac_help="$ac_help | |
367 | --enable-togglebtn use wxToggleButton class" | |
368 | ac_help="$ac_help | |
369 | --enable-toolbar use wxToolBar class" | |
370 | ac_help="$ac_help | |
371 | --enable-tbarnative use native wxToolBar class" | |
372 | ac_help="$ac_help | |
373 | --enable-tbarsmpl use wxToolBarSimple class" | |
374 | ac_help="$ac_help | |
375 | --enable-treectrl use wxTreeCtrl class" | |
376 | ac_help="$ac_help | |
377 | --enable-tipwindow use wxTipWindow class" | |
378 | ac_help="$ac_help | |
379 | --enable-popupwin use wxPopUpWindow class" | |
380 | ac_help="$ac_help | |
381 | --enable-commondlg use all common dialogs" | |
382 | ac_help="$ac_help | |
383 | --enable-choicedlg use wxChoiceDialog" | |
384 | ac_help="$ac_help | |
385 | --enable-coldlg use wxColourDialog" | |
386 | ac_help="$ac_help | |
387 | --enable-filedlg use wxFileDialog" | |
388 | ac_help="$ac_help | |
389 | --enable-finddlg use wxFindReplaceDialog" | |
390 | ac_help="$ac_help | |
391 | --enable-fontdlg use wxFontDialog" | |
392 | ac_help="$ac_help | |
393 | --enable-dirdlg use wxDirDialog" | |
394 | ac_help="$ac_help | |
395 | --enable-msgdlg use wxMessageDialog" | |
396 | ac_help="$ac_help | |
397 | --enable-numberdlg use wxNumberEntryDialog" | |
398 | ac_help="$ac_help | |
399 | --enable-splash use wxSplashScreen" | |
400 | ac_help="$ac_help | |
401 | --enable-textdlg use wxTextDialog" | |
402 | ac_help="$ac_help | |
403 | --enable-tipdlg use startup tips" | |
404 | ac_help="$ac_help | |
405 | --enable-progressdlg use wxProgressDialog" | |
406 | ac_help="$ac_help | |
407 | --enable-wizarddlg use wxWizard" | |
408 | ac_help="$ac_help | |
409 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
410 | ac_help="$ac_help | |
411 | --enable-miniframe use wxMiniFrame class" | |
412 | ac_help="$ac_help | |
413 | --enable-tooltips use wxToolTip class" | |
414 | ac_help="$ac_help | |
415 | --enable-splines use spline drawing code" | |
416 | ac_help="$ac_help | |
417 | --enable-validators use wxValidator and derived classes" | |
418 | ac_help="$ac_help | |
419 | --enable-busyinfo use wxBusyInfo" | |
420 | ac_help="$ac_help | |
421 | --enable-joystick use wxJoystick (Linux only)" | |
422 | ac_help="$ac_help | |
423 | --enable-metafiles use wxMetaFile (Windows only)" | |
424 | ac_help="$ac_help | |
425 | --enable-dragimage use wxDragImage" | |
426 | ac_help="$ac_help | |
427 | --enable-palette use wxPalette class" | |
428 | ac_help="$ac_help | |
429 | --enable-image use wxImage class" | |
430 | ac_help="$ac_help | |
431 | --enable-gif use gif images (GIF file format)" | |
432 | ac_help="$ac_help | |
433 | --enable-pcx use pcx images (PCX file format)" | |
434 | ac_help="$ac_help | |
435 | --enable-iff use iff images (IFF file format)" | |
436 | ac_help="$ac_help | |
437 | --enable-pnm use pnm images (PNM file format)" | |
438 | ac_help="$ac_help | |
439 | --enable-xpm use xpm images (XPM file format)" | |
440 | ac_help="$ac_help | |
441 | --enable-icocur use Windows ICO and CUR formats" | |
442 | ac_help="$ac_help | |
443 | --disable-largefile omit support for large files" | |
444 | ac_help="$ac_help | |
445 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
446 | ac_help="$ac_help | |
447 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
448 | ac_help="$ac_help | |
449 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
450 | ac_help="$ac_help | |
451 | --disable-gtktest Do not try to compile and run a test GTK program" | |
452 | ac_help="$ac_help | |
453 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
454 | ac_help="$ac_help | |
455 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
456 | ac_help="$ac_help | |
457 | --disable-gtktest Do not try to compile and run a test GTK program" | |
458 | ac_help="$ac_help | |
459 | --with-x use the X Window System" | |
460 | ac_help="$ac_help | |
461 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
462 | |
463 | # Initialize some variables set by options. | |
464 | # The variables have the same names as the options, with | |
465 | # dashes changed to underlines. | |
a0b9e27f MB |
466 | build=NONE |
467 | cache_file=./config.cache | |
10f2d63a | 468 | exec_prefix=NONE |
a0b9e27f | 469 | host=NONE |
10f2d63a | 470 | no_create= |
a0b9e27f | 471 | nonopt=NONE |
10f2d63a VZ |
472 | no_recursion= |
473 | prefix=NONE | |
474 | program_prefix=NONE | |
475 | program_suffix=NONE | |
476 | program_transform_name=s,x,x, | |
477 | silent= | |
478 | site= | |
479 | srcdir= | |
a0b9e27f | 480 | target=NONE |
10f2d63a VZ |
481 | verbose= |
482 | x_includes=NONE | |
483 | x_libraries=NONE | |
484 | bindir='${exec_prefix}/bin' | |
485 | sbindir='${exec_prefix}/sbin' | |
486 | libexecdir='${exec_prefix}/libexec' | |
487 | datadir='${prefix}/share' | |
488 | sysconfdir='${prefix}/etc' | |
489 | sharedstatedir='${prefix}/com' | |
490 | localstatedir='${prefix}/var' | |
491 | libdir='${exec_prefix}/lib' | |
492 | includedir='${prefix}/include' | |
493 | oldincludedir='/usr/include' | |
494 | infodir='${prefix}/info' | |
495 | mandir='${prefix}/man' | |
496 | ||
a0b9e27f MB |
497 | # Initialize some other variables. |
498 | subdirs= | |
499 | MFLAGS= MAKEFLAGS= | |
500 | SHELL=${CONFIG_SHELL-/bin/sh} | |
501 | # Maximum number of lines to put in a shell here document. | |
502 | ac_max_here_lines=12 | |
503 | ||
10f2d63a VZ |
504 | ac_prev= |
505 | for ac_option | |
506 | do | |
a0b9e27f | 507 | |
10f2d63a VZ |
508 | # If the previous option needs an argument, assign it. |
509 | if test -n "$ac_prev"; then | |
510 | eval "$ac_prev=\$ac_option" | |
511 | ac_prev= | |
512 | continue | |
513 | fi | |
514 | ||
a0b9e27f MB |
515 | case "$ac_option" in |
516 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
517 | *) ac_optarg= ;; | |
518 | esac | |
10f2d63a VZ |
519 | |
520 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
521 | ||
a0b9e27f | 522 | case "$ac_option" in |
10f2d63a VZ |
523 | |
524 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
525 | ac_prev=bindir ;; | |
526 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
a0b9e27f | 527 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
528 | |
529 | -build | --build | --buil | --bui | --bu) | |
a0b9e27f | 530 | ac_prev=build ;; |
10f2d63a | 531 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
a0b9e27f | 532 | build="$ac_optarg" ;; |
10f2d63a VZ |
533 | |
534 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
535 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
536 | ac_prev=cache_file ;; | |
537 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
538 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
a0b9e27f | 539 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
540 | |
541 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
542 | ac_prev=datadir ;; | |
543 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
544 | | --da=*) | |
a0b9e27f | 545 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
546 | |
547 | -disable-* | --disable-*) | |
a0b9e27f | 548 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 549 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
550 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
551 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
552 | fi | |
553 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
554 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
555 | |
556 | -enable-* | --enable-*) | |
a0b9e27f | 557 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 558 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
559 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
560 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
561 | fi | |
562 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
563 | case "$ac_option" in | |
564 | *=*) ;; | |
10f2d63a VZ |
565 | *) ac_optarg=yes ;; |
566 | esac | |
a0b9e27f | 567 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
568 | |
569 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
570 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
571 | | --exec | --exe | --ex) | |
572 | ac_prev=exec_prefix ;; | |
573 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
574 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
575 | | --exec=* | --exe=* | --ex=*) | |
a0b9e27f | 576 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
577 | |
578 | -gas | --gas | --ga | --g) | |
579 | # Obsolete; use --with-gas. | |
580 | with_gas=yes ;; | |
581 | ||
a0b9e27f MB |
582 | -help | --help | --hel | --he) |
583 | # Omit some internal or obsolete options to make the list less imposing. | |
584 | # This message is too long to be a string in the A/UX 3.1 sh. | |
585 | cat << EOF | |
586 | Usage: configure [options] [host] | |
587 | Options: [defaults in brackets after descriptions] | |
588 | Configuration: | |
589 | --cache-file=FILE cache test results in FILE | |
590 | --help print this message | |
591 | --no-create do not create output files | |
592 | --quiet, --silent do not print \`checking...' messages | |
593 | --version print the version of autoconf that created configure | |
594 | Directory and file names: | |
595 | --prefix=PREFIX install architecture-independent files in PREFIX | |
596 | [$ac_default_prefix] | |
597 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
598 | [same as prefix] | |
599 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
600 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
601 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
602 | --datadir=DIR read-only architecture-independent data in DIR | |
603 | [PREFIX/share] | |
604 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
605 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
606 | [PREFIX/com] | |
607 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
608 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
609 | --includedir=DIR C header files in DIR [PREFIX/include] | |
610 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
611 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
612 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
613 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
614 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
615 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
616 | --program-transform-name=PROGRAM | |
617 | run sed PROGRAM on installed program names | |
618 | EOF | |
619 | cat << EOF | |
620 | Host type: | |
621 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
622 | --host=HOST configure for HOST [guessed] | |
623 | --target=TARGET configure for TARGET [TARGET=HOST] | |
624 | Features and packages: | |
625 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
626 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
627 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
628 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
629 | --x-includes=DIR X include files are in DIR | |
630 | --x-libraries=DIR X library files are in DIR | |
631 | EOF | |
632 | if test -n "$ac_help"; then | |
633 | echo "--enable and --with options recognized:$ac_help" | |
634 | fi | |
635 | exit 0 ;; | |
10f2d63a VZ |
636 | |
637 | -host | --host | --hos | --ho) | |
a0b9e27f | 638 | ac_prev=host ;; |
10f2d63a | 639 | -host=* | --host=* | --hos=* | --ho=*) |
a0b9e27f | 640 | host="$ac_optarg" ;; |
10f2d63a VZ |
641 | |
642 | -includedir | --includedir | --includedi | --included | --include \ | |
643 | | --includ | --inclu | --incl | --inc) | |
644 | ac_prev=includedir ;; | |
645 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
646 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
a0b9e27f | 647 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
648 | |
649 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
650 | ac_prev=infodir ;; | |
651 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
a0b9e27f | 652 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
653 | |
654 | -libdir | --libdir | --libdi | --libd) | |
655 | ac_prev=libdir ;; | |
656 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
a0b9e27f | 657 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
658 | |
659 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
660 | | --libexe | --libex | --libe) | |
661 | ac_prev=libexecdir ;; | |
662 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
663 | | --libexe=* | --libex=* | --libe=*) | |
a0b9e27f | 664 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
665 | |
666 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
667 | | --localstate | --localstat | --localsta | --localst \ | |
668 | | --locals | --local | --loca | --loc | --lo) | |
669 | ac_prev=localstatedir ;; | |
670 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
671 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
672 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
a0b9e27f | 673 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
674 | |
675 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
676 | ac_prev=mandir ;; | |
677 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
a0b9e27f | 678 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
679 | |
680 | -nfp | --nfp | --nf) | |
681 | # Obsolete; use --without-fp. | |
682 | with_fp=no ;; | |
683 | ||
684 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
a0b9e27f | 685 | | --no-cr | --no-c) |
10f2d63a VZ |
686 | no_create=yes ;; |
687 | ||
688 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
689 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
690 | no_recursion=yes ;; | |
691 | ||
692 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
693 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
694 | | --oldin | --oldi | --old | --ol | --o) | |
695 | ac_prev=oldincludedir ;; | |
696 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
697 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
698 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
a0b9e27f | 699 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
700 | |
701 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
702 | ac_prev=prefix ;; | |
703 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
a0b9e27f | 704 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
705 | |
706 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
707 | | --program-pre | --program-pr | --program-p) | |
708 | ac_prev=program_prefix ;; | |
709 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
710 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
a0b9e27f | 711 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
712 | |
713 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
714 | | --program-suf | --program-su | --program-s) | |
715 | ac_prev=program_suffix ;; | |
716 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
717 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
a0b9e27f | 718 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
719 | |
720 | -program-transform-name | --program-transform-name \ | |
721 | | --program-transform-nam | --program-transform-na \ | |
722 | | --program-transform-n | --program-transform- \ | |
723 | | --program-transform | --program-transfor \ | |
724 | | --program-transfo | --program-transf \ | |
725 | | --program-trans | --program-tran \ | |
726 | | --progr-tra | --program-tr | --program-t) | |
727 | ac_prev=program_transform_name ;; | |
728 | -program-transform-name=* | --program-transform-name=* \ | |
729 | | --program-transform-nam=* | --program-transform-na=* \ | |
730 | | --program-transform-n=* | --program-transform-=* \ | |
731 | | --program-transform=* | --program-transfor=* \ | |
732 | | --program-transfo=* | --program-transf=* \ | |
733 | | --program-trans=* | --program-tran=* \ | |
734 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
a0b9e27f | 735 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
736 | |
737 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
738 | | -silent | --silent | --silen | --sile | --sil) | |
739 | silent=yes ;; | |
740 | ||
741 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
742 | ac_prev=sbindir ;; | |
743 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
744 | | --sbi=* | --sb=*) | |
a0b9e27f | 745 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
746 | |
747 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
748 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
749 | | --sharedst | --shareds | --shared | --share | --shar \ | |
750 | | --sha | --sh) | |
751 | ac_prev=sharedstatedir ;; | |
752 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
753 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
754 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
755 | | --sha=* | --sh=*) | |
a0b9e27f | 756 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
757 | |
758 | -site | --site | --sit) | |
759 | ac_prev=site ;; | |
760 | -site=* | --site=* | --sit=*) | |
a0b9e27f | 761 | site="$ac_optarg" ;; |
10f2d63a VZ |
762 | |
763 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
764 | ac_prev=srcdir ;; | |
765 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
a0b9e27f | 766 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
767 | |
768 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
769 | | --syscon | --sysco | --sysc | --sys | --sy) | |
770 | ac_prev=sysconfdir ;; | |
771 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
772 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
a0b9e27f | 773 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
774 | |
775 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
a0b9e27f | 776 | ac_prev=target ;; |
10f2d63a | 777 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
a0b9e27f | 778 | target="$ac_optarg" ;; |
10f2d63a VZ |
779 | |
780 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
781 | verbose=yes ;; | |
782 | ||
a0b9e27f MB |
783 | -version | --version | --versio | --versi | --vers) |
784 | echo "configure generated by autoconf version 2.13" | |
785 | exit 0 ;; | |
10f2d63a VZ |
786 | |
787 | -with-* | --with-*) | |
a0b9e27f | 788 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 789 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
790 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
791 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
792 | fi | |
10f2d63a | 793 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
a0b9e27f MB |
794 | case "$ac_option" in |
795 | *=*) ;; | |
10f2d63a VZ |
796 | *) ac_optarg=yes ;; |
797 | esac | |
a0b9e27f | 798 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
799 | |
800 | -without-* | --without-*) | |
a0b9e27f | 801 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 802 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
803 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
804 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
805 | fi | |
806 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
807 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
808 | |
809 | --x) | |
810 | # Obsolete; use --with-x. | |
811 | with_x=yes ;; | |
812 | ||
813 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
814 | | --x-incl | --x-inc | --x-in | --x-i) | |
815 | ac_prev=x_includes ;; | |
816 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
817 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
a0b9e27f | 818 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
819 | |
820 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
821 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
822 | ac_prev=x_libraries ;; | |
823 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
824 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
a0b9e27f | 825 | x_libraries="$ac_optarg" ;; |
10f2d63a | 826 | |
a0b9e27f | 827 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
828 | ;; |
829 | ||
830 | *) | |
a0b9e27f MB |
831 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
832 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
833 | fi | |
834 | if test "x$nonopt" != xNONE; then | |
835 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
836 | fi | |
837 | nonopt="$ac_option" | |
10f2d63a VZ |
838 | ;; |
839 | ||
840 | esac | |
841 | done | |
842 | ||
843 | if test -n "$ac_prev"; then | |
a0b9e27f | 844 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
8284b0c5 | 845 | fi |
8284b0c5 | 846 | |
a0b9e27f MB |
847 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
848 | ||
849 | # File descriptor usage: | |
850 | # 0 standard input | |
851 | # 1 file creation | |
852 | # 2 errors and warnings | |
853 | # 3 some systems may open it to /dev/tty | |
854 | # 4 used on the Kubota Titan | |
855 | # 6 checking for... messages and results | |
856 | # 5 compiler messages saved in config.log | |
857 | if test "$silent" = yes; then | |
858 | exec 6>/dev/null | |
859 | else | |
860 | exec 6>&1 | |
861 | fi | |
862 | exec 5>./config.log | |
863 | ||
864 | echo "\ | |
865 | This file contains any messages produced by compilers while | |
866 | running configure, to aid debugging if configure makes a mistake. | |
867 | " 1>&5 | |
8284b0c5 | 868 | |
a0b9e27f MB |
869 | # Strip out --no-create and --no-recursion so they do not pile up. |
870 | # Also quote any args containing shell metacharacters. | |
871 | ac_configure_args= | |
872 | for ac_arg | |
10f2d63a | 873 | do |
a0b9e27f MB |
874 | case "$ac_arg" in |
875 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
876 | | --no-cr | --no-c) ;; | |
877 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
878 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
879 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
880 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
881 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
882 | esac |
883 | done | |
884 | ||
a0b9e27f MB |
885 | # NLS nuisances. |
886 | # Only set these to C if already set. These must not be set unconditionally | |
887 | # because not all systems understand e.g. LANG=C (notably SCO). | |
888 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
889 | # Non-C LC_CTYPE values break the ctype check. | |
890 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
891 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
892 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
893 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
247f5006 | 894 | |
a0b9e27f MB |
895 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
896 | rm -rf conftest* confdefs.h | |
897 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
898 | echo > confdefs.h | |
10f2d63a | 899 | |
a0b9e27f MB |
900 | # A filename unique to this package, relative to the directory that |
901 | # configure is in, which we can look for to find out if srcdir is correct. | |
902 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
903 | |
904 | # Find the source files, if location was not specified. | |
905 | if test -z "$srcdir"; then | |
906 | ac_srcdir_defaulted=yes | |
907 | # Try the directory containing this script, then its parent. | |
a0b9e27f MB |
908 | ac_prog=$0 |
909 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
910 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
10f2d63a VZ |
911 | srcdir=$ac_confdir |
912 | if test ! -r $srcdir/$ac_unique_file; then | |
913 | srcdir=.. | |
914 | fi | |
915 | else | |
916 | ac_srcdir_defaulted=no | |
917 | fi | |
918 | if test ! -r $srcdir/$ac_unique_file; then | |
919 | if test "$ac_srcdir_defaulted" = yes; then | |
a0b9e27f | 920 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 921 | else |
a0b9e27f | 922 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
923 | fi |
924 | fi | |
a0b9e27f | 925 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
328a083c | 926 | |
10f2d63a VZ |
927 | # Prefer explicitly selected file to automatically selected ones. |
928 | if test -z "$CONFIG_SITE"; then | |
929 | if test "x$prefix" != xNONE; then | |
930 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
931 | else | |
932 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
933 | fi | |
934 | fi | |
935 | for ac_site_file in $CONFIG_SITE; do | |
936 | if test -r "$ac_site_file"; then | |
a0b9e27f | 937 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
938 | . "$ac_site_file" |
939 | fi | |
940 | done | |
941 | ||
942 | if test -r "$cache_file"; then | |
a0b9e27f MB |
943 | echo "loading cache $cache_file" |
944 | . $cache_file | |
10f2d63a | 945 | else |
a0b9e27f MB |
946 | echo "creating cache $cache_file" |
947 | > $cache_file | |
10f2d63a VZ |
948 | fi |
949 | ||
950 | ac_ext=c | |
a0b9e27f | 951 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 952 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
953 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
954 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
955 | cross_compiling=$ac_cv_prog_cc_cross | |
956 | ||
957 | ac_exeext= | |
958 | ac_objext=o | |
959 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
960 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
961 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
962 | ac_n= ac_c=' | |
963 | ' ac_t=' ' | |
964 | else | |
965 | ac_n=-n ac_c= ac_t= | |
966 | fi | |
967 | else | |
968 | ac_n= ac_c='\c' ac_t= | |
969 | fi | |
8284b0c5 MB |
970 | |
971 | ||
10f2d63a | 972 | |
7c66a493 VZ |
973 | ac_aux_dir= |
974 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
975 | if test -f $ac_dir/install-sh; then | |
976 | ac_aux_dir=$ac_dir | |
977 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
978 | break | |
979 | elif test -f $ac_dir/install.sh; then | |
980 | ac_aux_dir=$ac_dir | |
981 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
982 | break | |
247f5006 | 983 | fi |
7c66a493 VZ |
984 | done |
985 | if test -z "$ac_aux_dir"; then | |
a0b9e27f | 986 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 987 | fi |
a0b9e27f MB |
988 | ac_config_guess=$ac_aux_dir/config.guess |
989 | ac_config_sub=$ac_aux_dir/config.sub | |
990 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
698dcdb6 | 991 | |
8284b0c5 | 992 | |
a0b9e27f MB |
993 | # Do some error checking and defaulting for the host and target type. |
994 | # The inputs are: | |
995 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
996 | # | |
997 | # The rules are: | |
998 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
999 | # same time. | |
1000 | # 2. Host defaults to nonopt. | |
1001 | # 3. If nonopt is not specified, then host defaults to the current host, | |
1002 | # as determined by config.guess. | |
1003 | # 4. Target and build default to nonopt. | |
1004 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
1005 | |
1006 | # The aliases save the names the user supplied, while $host etc. | |
1007 | # will get canonicalized. | |
a0b9e27f MB |
1008 | case $host---$target---$nonopt in |
1009 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1010 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1011 | esac | |
1012 | ||
1013 | ||
1014 | # Make sure we can run config.sub. | |
1015 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1016 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1017 | fi | |
1018 | ||
1019 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
2b5f62a0 | 1020 | echo "configure:1021: checking host system type" >&5 |
a0b9e27f MB |
1021 | |
1022 | host_alias=$host | |
1023 | case "$host_alias" in | |
1024 | NONE) | |
1025 | case $nonopt in | |
1026 | NONE) | |
1027 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1028 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1029 | fi ;; | |
1030 | *) host_alias=$nonopt ;; | |
1031 | esac ;; | |
1032 | esac | |
1033 | ||
1034 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1035 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1036 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1037 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1038 | echo "$ac_t""$host" 1>&6 | |
1039 | ||
1040 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
2b5f62a0 | 1041 | echo "configure:1042: checking target system type" >&5 |
a0b9e27f MB |
1042 | |
1043 | target_alias=$target | |
1044 | case "$target_alias" in | |
1045 | NONE) | |
1046 | case $nonopt in | |
1047 | NONE) target_alias=$host_alias ;; | |
1048 | *) target_alias=$nonopt ;; | |
1049 | esac ;; | |
1050 | esac | |
1051 | ||
1052 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1053 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1054 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1055 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1056 | echo "$ac_t""$target" 1>&6 | |
1057 | ||
1058 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
2b5f62a0 | 1059 | echo "configure:1060: checking build system type" >&5 |
a0b9e27f MB |
1060 | |
1061 | build_alias=$build | |
1062 | case "$build_alias" in | |
1063 | NONE) | |
1064 | case $nonopt in | |
1065 | NONE) build_alias=$host_alias ;; | |
1066 | *) build_alias=$nonopt ;; | |
1067 | esac ;; | |
1068 | esac | |
1069 | ||
1070 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1071 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1072 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1073 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1074 | echo "$ac_t""$build" 1>&6 | |
1075 | ||
1076 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1077 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1078 | NONENONEs,x,x, && | |
1079 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1080 | |
1081 | ||
a0b9e27f | 1082 | |
10f2d63a | 1083 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1084 | WX_MINOR_VERSION_NUMBER=3 |
2b5f62a0 | 1085 | WX_RELEASE_NUMBER=4 |
10f2d63a | 1086 | |
10f2d63a | 1087 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1088 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1089 | |
978f1259 RL |
1090 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1091 | ||
a0d927d1 | 1092 | WX_CURRENT=2 |
6426998c RL |
1093 | WX_REVISION=0 |
1094 | WX_AGE=0 | |
1095 | ||
8284b0c5 MB |
1096 | |
1097 | ||
10f2d63a VZ |
1098 | USE_UNIX=1 |
1099 | USE_WIN32=0 | |
f9bc1684 | 1100 | USE_DOS=0 |
b12915c1 | 1101 | USE_BEOS=0 |
1216f52d | 1102 | USE_MAC=0 |
b12915c1 | 1103 | |
10f2d63a VZ |
1104 | USE_LINUX= |
1105 | USE_SGI= | |
1106 | USE_HPUX= | |
1107 | USE_SYSV= | |
1108 | USE_SVR4= | |
1109 | USE_AIX= | |
1110 | USE_SUN= | |
1111 | USE_SOLARIS= | |
1112 | USE_SUNOS= | |
1113 | USE_ALPHA= | |
1114 | USE_OSF= | |
1115 | USE_BSD= | |
f11bdd03 | 1116 | USE_DARWIN= |
10f2d63a | 1117 | USE_FREEBSD= |
95c8801c | 1118 | USE_OPENBSD= |
f6bcfd97 | 1119 | USE_NETBSD= |
10f2d63a VZ |
1120 | USE_VMS= |
1121 | USE_ULTRIX= | |
10f2d63a VZ |
1122 | USE_DATA_GENERAL= |
1123 | ||
ab9b9eab VZ |
1124 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1125 | ||
f79bd02d | 1126 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1127 | |
1128 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1129 | DEFAULT_wxUSE_MAC=0 |
1130 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1131 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1132 | DEFAULT_wxUSE_MOTIF=0 |
1133 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1134 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1135 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1136 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1137 | |
1138 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1139 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1140 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1141 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1142 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1143 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1144 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1145 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1146 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1147 | |
d6a55c4b | 1148 | PROGRAM_EXT= |
3a922bb4 | 1149 | SO_SUFFIX=so |
d6a55c4b | 1150 | |
10f2d63a VZ |
1151 | case "${host}" in |
1152 | *-hp-hpux* ) | |
1153 | USE_HPUX=1 | |
1154 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1155 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1156 | SO_SUFFIX=sl |
a0b9e27f | 1157 | cat >> confdefs.h <<\EOF |
10f2d63a | 1158 | #define __HPUX__ 1 |
a0b9e27f | 1159 | EOF |
10f2d63a VZ |
1160 | |
1161 | ;; | |
1162 | *-*-linux* ) | |
1163 | USE_LINUX=1 | |
a0b9e27f | 1164 | cat >> confdefs.h <<\EOF |
10f2d63a | 1165 | #define __LINUX__ 1 |
a0b9e27f | 1166 | EOF |
10f2d63a VZ |
1167 | |
1168 | TMP=`uname -m` | |
1169 | if test "x$TMP" = "xalpha"; then | |
1170 | USE_ALPHA=1 | |
a0b9e27f | 1171 | cat >> confdefs.h <<\EOF |
10f2d63a | 1172 | #define __ALPHA__ 1 |
a0b9e27f | 1173 | EOF |
10f2d63a VZ |
1174 | |
1175 | fi | |
1176 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1177 | ;; | |
1178 | *-*-irix5* | *-*-irix6* ) | |
1179 | USE_SGI=1 | |
1180 | USE_SVR4=1 | |
a0b9e27f | 1181 | cat >> confdefs.h <<\EOF |
10f2d63a | 1182 | #define __SGI__ 1 |
a0b9e27f | 1183 | EOF |
10f2d63a | 1184 | |
a0b9e27f | 1185 | cat >> confdefs.h <<\EOF |
10f2d63a | 1186 | #define __SVR4__ 1 |
a0b9e27f | 1187 | EOF |
10f2d63a VZ |
1188 | |
1189 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1190 | ;; | |
1191 | *-*-solaris2* ) | |
1192 | USE_SUN=1 | |
1193 | USE_SOLARIS=1 | |
1194 | USE_SVR4=1 | |
a0b9e27f | 1195 | cat >> confdefs.h <<\EOF |
10f2d63a | 1196 | #define __SUN__ 1 |
a0b9e27f | 1197 | EOF |
10f2d63a | 1198 | |
a0b9e27f | 1199 | cat >> confdefs.h <<\EOF |
10f2d63a | 1200 | #define __SOLARIS__ 1 |
a0b9e27f | 1201 | EOF |
10f2d63a | 1202 | |
a0b9e27f | 1203 | cat >> confdefs.h <<\EOF |
10f2d63a | 1204 | #define __SVR4__ 1 |
a0b9e27f | 1205 | EOF |
10f2d63a VZ |
1206 | |
1207 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1208 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1209 | ;; |
1210 | *-*-sunos4* ) | |
1211 | USE_SUN=1 | |
1212 | USE_SUNOS=1 | |
1213 | USE_BSD=1 | |
a0b9e27f | 1214 | cat >> confdefs.h <<\EOF |
10f2d63a | 1215 | #define __SUN__ 1 |
a0b9e27f | 1216 | EOF |
10f2d63a | 1217 | |
a0b9e27f | 1218 | cat >> confdefs.h <<\EOF |
10f2d63a | 1219 | #define __SUNOS__ 1 |
a0b9e27f | 1220 | EOF |
10f2d63a | 1221 | |
a0b9e27f | 1222 | cat >> confdefs.h <<\EOF |
10f2d63a | 1223 | #define __BSD__ 1 |
a0b9e27f | 1224 | EOF |
10f2d63a VZ |
1225 | |
1226 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1227 | ;; | |
f6bcfd97 | 1228 | *-*-freebsd*) |
10f2d63a VZ |
1229 | USE_BSD=1 |
1230 | USE_FREEBSD=1 | |
a0b9e27f | 1231 | cat >> confdefs.h <<\EOF |
10f2d63a | 1232 | #define __FREEBSD__ 1 |
a0b9e27f | 1233 | EOF |
10f2d63a | 1234 | |
a0b9e27f | 1235 | cat >> confdefs.h <<\EOF |
10f2d63a | 1236 | #define __BSD__ 1 |
a0b9e27f | 1237 | EOF |
95c8801c VS |
1238 | |
1239 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1240 | ;; | |
1241 | *-*-openbsd*) | |
1242 | USE_BSD=1 | |
1243 | USE_OPENBSD=1 | |
a0b9e27f | 1244 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1245 | #define __OPENBSD__ 1 |
a0b9e27f | 1246 | EOF |
95c8801c | 1247 | |
a0b9e27f | 1248 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1249 | #define __BSD__ 1 |
a0b9e27f | 1250 | EOF |
f6bcfd97 BP |
1251 | |
1252 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1253 | ;; | |
1254 | *-*-netbsd*) | |
1255 | USE_BSD=1 | |
1256 | USE_NETBSD=1 | |
a0b9e27f | 1257 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1258 | #define __NETBSD__ 1 |
a0b9e27f | 1259 | EOF |
f6bcfd97 | 1260 | |
a0b9e27f | 1261 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1262 | #define __BSD__ 1 |
a0b9e27f | 1263 | EOF |
10f2d63a VZ |
1264 | |
1265 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1266 | ;; | |
1267 | *-*-osf* ) | |
1268 | USE_ALPHA=1 | |
1269 | USE_OSF=1 | |
a0b9e27f | 1270 | cat >> confdefs.h <<\EOF |
10f2d63a | 1271 | #define __ALPHA__ 1 |
a0b9e27f | 1272 | EOF |
10f2d63a | 1273 | |
a0b9e27f | 1274 | cat >> confdefs.h <<\EOF |
10f2d63a | 1275 | #define __OSF__ 1 |
a0b9e27f | 1276 | EOF |
10f2d63a VZ |
1277 | |
1278 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1279 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1280 | ;; |
1281 | *-*-dgux5* ) | |
1282 | USE_ALPHA=1 | |
1283 | USE_SVR4=1 | |
a0b9e27f | 1284 | cat >> confdefs.h <<\EOF |
10f2d63a | 1285 | #define __ALPHA__ 1 |
a0b9e27f | 1286 | EOF |
10f2d63a | 1287 | |
a0b9e27f | 1288 | cat >> confdefs.h <<\EOF |
10f2d63a | 1289 | #define __SVR4__ 1 |
a0b9e27f | 1290 | EOF |
10f2d63a VZ |
1291 | |
1292 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1293 | ;; | |
1294 | *-*-sysv5* ) | |
1295 | USE_SYSV=1 | |
1296 | USE_SVR4=1 | |
a0b9e27f | 1297 | cat >> confdefs.h <<\EOF |
10f2d63a | 1298 | #define __SYSV__ 1 |
a0b9e27f | 1299 | EOF |
10f2d63a | 1300 | |
a0b9e27f | 1301 | cat >> confdefs.h <<\EOF |
10f2d63a | 1302 | #define __SVR4__ 1 |
a0b9e27f | 1303 | EOF |
10f2d63a VZ |
1304 | |
1305 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1306 | ;; | |
1307 | *-*-aix* ) | |
1308 | USE_AIX=1 | |
1309 | USE_SYSV=1 | |
1310 | USE_SVR4=1 | |
2b5f62a0 | 1311 | SO_SUFFIX=a |
a0b9e27f | 1312 | cat >> confdefs.h <<\EOF |
10f2d63a | 1313 | #define __AIX__ 1 |
a0b9e27f | 1314 | EOF |
10f2d63a | 1315 | |
a0b9e27f | 1316 | cat >> confdefs.h <<\EOF |
10f2d63a | 1317 | #define __SYSV__ 1 |
a0b9e27f | 1318 | EOF |
10f2d63a | 1319 | |
a0b9e27f | 1320 | cat >> confdefs.h <<\EOF |
10f2d63a | 1321 | #define __SVR4__ 1 |
a0b9e27f | 1322 | EOF |
10f2d63a VZ |
1323 | |
1324 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1325 | ;; | |
1326 | ||
1c8183e2 | 1327 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1328 | SO_SUFFIX=dll |
cf27ef00 | 1329 | PROGRAM_EXT=".exe" |
7b7a7637 | 1330 | RESCOMP=windres |
10f2d63a VZ |
1331 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1332 | ;; | |
1333 | ||
f9bc1684 VS |
1334 | *-pc-msdosdjgpp ) |
1335 | USE_UNIX=0 | |
1336 | USE_DOS=1 | |
a0b9e27f | 1337 | cat >> confdefs.h <<\EOF |
f9bc1684 | 1338 | #define __DOS__ 1 |
a0b9e27f | 1339 | EOF |
f9bc1684 VS |
1340 | |
1341 | PROGRAM_EXT=".exe" | |
1342 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1343 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1344 | ;; |
1345 | ||
6fa882bd | 1346 | *-pc-os2_emx | *-pc-os2-emx ) |
a0b9e27f | 1347 | cat >> confdefs.h <<\EOF |
10f2d63a | 1348 | #define __EMX__ 1 |
a0b9e27f | 1349 | EOF |
10f2d63a | 1350 | |
cf27ef00 | 1351 | PROGRAM_EXT=".exe" |
e07802fc | 1352 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1353 | ;; |
1354 | ||
d08b457b GD |
1355 | powerpc-*-darwin* ) |
1356 | USE_BSD=1 | |
f11bdd03 | 1357 | USE_DARWIN=1 |
3a922bb4 | 1358 | SO_SUFFIX=dylib |
a0b9e27f | 1359 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1360 | #define __BSD__ 1 |
a0b9e27f | 1361 | EOF |
b4085ce6 | 1362 | |
a0b9e27f | 1363 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1364 | #define __DARWIN__ 1 |
a0b9e27f | 1365 | EOF |
d08b457b | 1366 | |
a0b9e27f | 1367 | cat >> confdefs.h <<\EOF |
d08b457b | 1368 | #define __POWERPC__ 1 |
a0b9e27f | 1369 | EOF |
b4085ce6 GD |
1370 | |
1371 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1372 | ;; | |
1373 | ||
b12915c1 VZ |
1374 | *-*-beos* ) |
1375 | USE_BEOS=1 | |
a0b9e27f | 1376 | cat >> confdefs.h <<\EOF |
b12915c1 | 1377 | #define __BEOS__ 1 |
a0b9e27f | 1378 | EOF |
b12915c1 VZ |
1379 | |
1380 | ;; | |
1381 | ||
10f2d63a | 1382 | *) |
a0b9e27f | 1383 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1384 | esac |
1385 | ||
8284b0c5 MB |
1386 | |
1387 | ||
1388 | ||
1389 | wx_arg_cache_file="configarg.cache" | |
1390 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1391 | rm -f ${wx_arg_cache_file}.tmp |
1392 | touch ${wx_arg_cache_file}.tmp | |
1393 | touch ${wx_arg_cache_file} | |
a0b9e27f | 1394 | |
10f2d63a VZ |
1395 | |
1396 | DEBUG_CONFIGURE=0 | |
1397 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1398 | DEFAULT_wxUSE_UNIVERSAL=no |
1399 | ||
d8356fa3 VZ |
1400 | DEFAULT_wxUSE_NANOX=no |
1401 | ||
10f2d63a VZ |
1402 | DEFAULT_wxUSE_THREADS=yes |
1403 | ||
1404 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1405 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1406 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1407 | DEFAULT_wxUSE_PROFILE=no |
1408 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1409 | DEFAULT_wxUSE_NO_RTTI=no |
1410 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1411 | DEFAULT_wxUSE_PERMISSIVE=no |
1412 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1413 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1414 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1415 | DEFAULT_wxUSE_MEM_TRACING=no | |
1416 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1417 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1418 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1419 | DEFAULT_wxUSE_APPLE_IEEE=no |
1420 | ||
1421 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1422 | DEFAULT_wxUSE_LOGWINDOW=no |
1423 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1424 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1425 | |
1426 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1427 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1428 | |
3e44f09d | 1429 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1430 | DEFAULT_wxUSE_ZLIB=no |
1431 | DEFAULT_wxUSE_LIBPNG=no | |
1432 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1433 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1434 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1435 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1436 | |
eb4efbdc | 1437 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1438 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1439 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1440 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1441 | DEFAULT_wxUSE_DATETIME=no | |
1442 | DEFAULT_wxUSE_TIMEDATE=no | |
1443 | DEFAULT_wxUSE_TIMER=no | |
1444 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1445 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1446 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1447 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1448 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1449 | DEFAULT_wxUSE_WAVE=no |
1450 | DEFAULT_wxUSE_INTL=no | |
1451 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1452 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1453 | DEFAULT_wxUSE_STREAMS=no |
1454 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
1455 | DEFAULT_wxUSE_OLE=no |
1456 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 1457 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 1458 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1459 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1460 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1461 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1462 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1463 | |
1464 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1465 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1466 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1467 | ||
1468 | DEFAULT_wxUSE_X_RESOURCES=no | |
1469 | DEFAULT_wxUSE_CLIPBOARD=no | |
1470 | DEFAULT_wxUSE_TOOLTIPS=no | |
1471 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1472 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1473 | DEFAULT_wxUSE_SPLINES=no |
1474 | ||
1475 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1476 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1477 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1478 | ||
1479 | DEFAULT_wxUSE_PROLOGIO=no | |
1480 | DEFAULT_wxUSE_RESOURCES=no | |
1481 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1482 | DEFAULT_wxUSE_IPC=no | |
1483 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1484 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1485 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1486 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1487 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1488 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1489 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1490 | DEFAULT_wxUSE_PROTOCOL=no | |
1491 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1492 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1493 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1494 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1495 | |
10f2d63a | 1496 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1497 | DEFAULT_wxUSE_CHOICEDLG=no |
1498 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1499 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1500 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1501 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1502 | DEFAULT_wxUSE_FONTDLG=no |
1503 | DEFAULT_wxUSE_MSGDLG=no | |
1504 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1505 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1506 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1507 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1508 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1509 | DEFAULT_wxUSE_WIZARDDLG=no |
1510 | ||
1e6feb95 | 1511 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1512 | DEFAULT_wxUSE_MINIFRAME=no |
1513 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1514 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1515 | DEFAULT_wxUSE_FS_INET=no |
1516 | DEFAULT_wxUSE_FS_ZIP=no | |
1517 | DEFAULT_wxUSE_BUSYINFO=no | |
1518 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1519 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1520 | |
1521 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1522 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1523 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1524 | DEFAULT_wxUSE_CALCTRL=no |
1525 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1526 | DEFAULT_wxUSE_CHECKBOX=no |
1527 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1528 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1529 | DEFAULT_wxUSE_COMBOBOX=no |
1530 | DEFAULT_wxUSE_GAUGE=no | |
1531 | DEFAULT_wxUSE_GRID=no | |
1532 | DEFAULT_wxUSE_NEW_GRID=no | |
1533 | DEFAULT_wxUSE_IMAGLIST=no | |
1534 | DEFAULT_wxUSE_LISTBOX=no | |
1535 | DEFAULT_wxUSE_LISTCTRL=no | |
1536 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1537 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1538 | DEFAULT_wxUSE_RADIOBOX=no |
1539 | DEFAULT_wxUSE_RADIOBTN=no | |
1540 | DEFAULT_wxUSE_SASH=no | |
1541 | DEFAULT_wxUSE_SCROLLBAR=no | |
1542 | DEFAULT_wxUSE_SLIDER=no | |
1543 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1544 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1545 | DEFAULT_wxUSE_SPLITTER=no |
1546 | DEFAULT_wxUSE_STATBMP=no | |
1547 | DEFAULT_wxUSE_STATBOX=no | |
1548 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1549 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1550 | DEFAULT_wxUSE_STATUSBAR=yes |
1551 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1552 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1553 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1554 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1555 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1556 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1557 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1558 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1559 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1560 | |
1561 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1562 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1563 | DEFAULT_wxUSE_WCSRTOMBS=no |
1564 | ||
edae8572 | 1565 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1566 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1567 | DEFAULT_wxUSE_GIF=no |
1568 | DEFAULT_wxUSE_PCX=no | |
1569 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1570 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1571 | DEFAULT_wxUSE_XPM=no |
658974ae | 1572 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1573 | else |
1e6feb95 VZ |
1574 | DEFAULT_wxUSE_UNIVERSAL=no |
1575 | ||
d8356fa3 VZ |
1576 | DEFAULT_wxUSE_NANOX=no |
1577 | ||
10f2d63a VZ |
1578 | DEFAULT_wxUSE_THREADS=yes |
1579 | ||
1580 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1581 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1582 | DEFAULT_wxUSE_OPTIMISE=yes |
1583 | DEFAULT_wxUSE_PROFILE=no | |
1584 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1585 | DEFAULT_wxUSE_NO_RTTI=no |
1586 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1587 | DEFAULT_wxUSE_PERMISSIVE=no |
1588 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1589 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1590 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1591 | DEFAULT_wxUSE_MEM_TRACING=no | |
1592 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1593 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1594 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1595 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1596 | ||
1597 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1598 | DEFAULT_wxUSE_LOGWINDOW=yes |
1599 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1600 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1601 | |
1602 | DEFAULT_wxUSE_GUI=yes | |
1603 | ||
831b3152 | 1604 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1605 | DEFAULT_wxUSE_ZLIB=yes |
1606 | DEFAULT_wxUSE_LIBPNG=yes | |
1607 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1608 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1609 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1610 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1611 | |
eb4efbdc | 1612 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1613 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1614 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1615 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1616 | DEFAULT_wxUSE_DATETIME=yes | |
1617 | DEFAULT_wxUSE_TIMEDATE=no | |
1618 | DEFAULT_wxUSE_TIMER=yes | |
1619 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1620 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1621 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1622 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1623 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1624 | DEFAULT_wxUSE_WAVE=no |
1625 | DEFAULT_wxUSE_INTL=yes | |
1626 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1627 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1628 | DEFAULT_wxUSE_STREAMS=yes |
1629 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
1630 | DEFAULT_wxUSE_OLE=yes |
1631 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 1632 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 1633 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1634 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1635 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1636 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1637 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1638 | |
1639 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1640 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1641 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1642 | ||
1643 | DEFAULT_wxUSE_X_RESOURCES=no | |
1644 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1645 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1646 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1647 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1648 | DEFAULT_wxUSE_SPLINES=yes |
1649 | ||
1650 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1651 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1652 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1653 | ||
2b5f62a0 VZ |
1654 | DEFAULT_wxUSE_PROLOGIO=no |
1655 | DEFAULT_wxUSE_RESOURCES=no | |
10f2d63a VZ |
1656 | DEFAULT_wxUSE_CONSTRAINTS=yes |
1657 | DEFAULT_wxUSE_IPC=yes | |
1658 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1659 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1660 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1661 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1662 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1663 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1664 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1665 | DEFAULT_wxUSE_PROTOCOL=yes |
1666 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1667 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1668 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1669 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1670 | |
1671 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1672 | DEFAULT_wxUSE_CHOICEDLG=yes |
1673 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1674 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1675 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1676 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1677 | DEFAULT_wxUSE_FONTDLG=yes |
1678 | DEFAULT_wxUSE_MSGDLG=yes | |
1679 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1680 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1681 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1682 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1683 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1684 | DEFAULT_wxUSE_WIZARDDLG=yes |
1685 | ||
1e6feb95 | 1686 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1687 | DEFAULT_wxUSE_MINIFRAME=yes |
1688 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1689 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1690 | DEFAULT_wxUSE_FS_INET=yes |
1691 | DEFAULT_wxUSE_FS_ZIP=yes | |
1692 | DEFAULT_wxUSE_BUSYINFO=yes | |
1693 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1694 | DEFAULT_wxUSE_VALIDATORS=yes | |
1695 | ||
1696 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1697 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1698 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1699 | DEFAULT_wxUSE_CALCTRL=yes |
1700 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1701 | DEFAULT_wxUSE_CHECKBOX=yes |
1702 | DEFAULT_wxUSE_CHECKLST=yes | |
1703 | DEFAULT_wxUSE_CHOICE=yes | |
1704 | DEFAULT_wxUSE_COMBOBOX=yes | |
1705 | DEFAULT_wxUSE_GAUGE=yes | |
1706 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1707 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1708 | DEFAULT_wxUSE_IMAGLIST=yes |
1709 | DEFAULT_wxUSE_LISTBOX=yes | |
1710 | DEFAULT_wxUSE_LISTCTRL=yes | |
1711 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1712 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1713 | DEFAULT_wxUSE_RADIOBOX=yes |
1714 | DEFAULT_wxUSE_RADIOBTN=yes | |
1715 | DEFAULT_wxUSE_SASH=yes | |
1716 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1717 | DEFAULT_wxUSE_SLIDER=yes | |
1718 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1719 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1720 | DEFAULT_wxUSE_SPLITTER=yes |
1721 | DEFAULT_wxUSE_STATBMP=yes | |
1722 | DEFAULT_wxUSE_STATBOX=yes | |
1723 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1724 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1725 | DEFAULT_wxUSE_STATUSBAR=yes |
1726 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1727 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1728 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1729 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1730 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1731 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1732 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1733 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1734 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1735 | |
1736 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1737 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1738 | DEFAULT_wxUSE_WCSRTOMBS=no |
1739 | ||
edae8572 | 1740 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1741 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1742 | DEFAULT_wxUSE_GIF=yes |
1743 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1744 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1745 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1746 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1747 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1748 | fi |
1749 | ||
8284b0c5 MB |
1750 | |
1751 | ||
10f2d63a | 1752 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
1753 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
1754 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
1755 | has_toolkit_in_cache=1 |
1756 | eval "DEFAULT_$LINE" | |
1757 | eval "CACHE_$toolkit=1" | |
1758 | fi | |
1759 | done | |
1760 | ||
8284b0c5 MB |
1761 | |
1762 | ||
5005acfe VZ |
1763 | enablestring= |
1764 | echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6 | |
2b5f62a0 | 1765 | echo "configure:1766: checking for --${enablestring:-enable}-gui" >&5 |
10f2d63a VZ |
1766 | no_cache=0 |
1767 | # Check whether --enable-gui or --disable-gui was given. | |
1768 | if test "${enable_gui+set}" = set; then | |
1769 | enableval="$enable_gui" | |
a0b9e27f | 1770 | |
10f2d63a VZ |
1771 | if test "$enableval" = yes; then |
1772 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1773 | else | |
1774 | ac_cv_use_gui='wxUSE_GUI=no' | |
1775 | fi | |
a0b9e27f | 1776 | |
10f2d63a | 1777 | else |
a0b9e27f | 1778 | |
10f2d63a VZ |
1779 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1780 | if test "x$LINE" != x ; then | |
1781 | eval "DEFAULT_$LINE" | |
1782 | else | |
1783 | no_cache=1 | |
1784 | fi | |
1785 | ||
1786 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
a0b9e27f MB |
1787 | |
1788 | fi | |
10f2d63a VZ |
1789 | |
1790 | ||
1791 | eval "$ac_cv_use_gui" | |
1792 | if test "$no_cache" != 1; then | |
1793 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1794 | fi | |
1795 | ||
1796 | if test "$wxUSE_GUI" = yes; then | |
a0b9e27f | 1797 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1798 | else |
a0b9e27f | 1799 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1800 | fi |
a0b9e27f | 1801 | |
10f2d63a | 1802 | |
b12915c1 | 1803 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1804 | |
8284b0c5 | 1805 | |
5005acfe VZ |
1806 | enablestring= |
1807 | echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6 | |
2b5f62a0 | 1808 | echo "configure:1809: checking for --${enablestring:-enable}-universal" >&5 |
1e6feb95 VZ |
1809 | no_cache=0 |
1810 | # Check whether --enable-universal or --disable-universal was given. | |
1811 | if test "${enable_universal+set}" = set; then | |
1812 | enableval="$enable_universal" | |
a0b9e27f | 1813 | |
1e6feb95 VZ |
1814 | if test "$enableval" = yes; then |
1815 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1816 | else | |
1817 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1818 | fi | |
a0b9e27f | 1819 | |
1e6feb95 | 1820 | else |
a0b9e27f | 1821 | |
1e6feb95 VZ |
1822 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1823 | if test "x$LINE" != x ; then | |
1824 | eval "DEFAULT_$LINE" | |
1825 | else | |
1826 | no_cache=1 | |
1827 | fi | |
1828 | ||
1829 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
a0b9e27f MB |
1830 | |
1831 | fi | |
1e6feb95 VZ |
1832 | |
1833 | ||
1834 | eval "$ac_cv_use_universal" | |
1835 | if test "$no_cache" != 1; then | |
1836 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1837 | fi | |
1838 | ||
1839 | if test "$wxUSE_UNIVERSAL" = yes; then | |
a0b9e27f | 1840 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1841 | else |
a0b9e27f | 1842 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1843 | fi |
a0b9e27f | 1844 | |
10f2d63a VZ |
1845 | # Check whether --with-gtk or --without-gtk was given. |
1846 | if test "${with_gtk+set}" = set; then | |
1847 | withval="$with_gtk" | |
1848 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1849 | fi |
10f2d63a VZ |
1850 | |
1851 | # Check whether --with-motif or --without-motif was given. | |
1852 | if test "${with_motif+set}" = set; then | |
1853 | withval="$with_motif" | |
1854 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1855 | fi |
10f2d63a | 1856 | |
b4085ce6 GD |
1857 | # Check whether --with-mac or --without-mac was given. |
1858 | if test "${with_mac+set}" = set; then | |
1859 | withval="$with_mac" | |
1860 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
a0b9e27f | 1861 | fi |
b4085ce6 | 1862 | |
10f2d63a VZ |
1863 | # Check whether --with-wine or --without-wine was given. |
1864 | if test "${with_wine+set}" = set; then | |
1865 | withval="$with_wine" | |
1866 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1867 | fi |
10f2d63a | 1868 | |
77e13408 RL |
1869 | # Check whether --with-msw or --without-msw was given. |
1870 | if test "${with_msw+set}" = set; then | |
1871 | withval="$with_msw" | |
b4efce5e | 1872 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1873 | fi |
10f2d63a | 1874 | |
e07802fc VZ |
1875 | # Check whether --with-pm or --without-pm was given. |
1876 | if test "${with_pm+set}" = set; then | |
1877 | withval="$with_pm" | |
1878 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1879 | fi |
698dcdb6 | 1880 | |
1e6feb95 VZ |
1881 | # Check whether --with-mgl or --without-mgl was given. |
1882 | if test "${with_mgl+set}" = set; then | |
1883 | withval="$with_mgl" | |
6c657b52 | 1884 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1885 | fi |
1e6feb95 | 1886 | |
1725144d RR |
1887 | # Check whether --with-microwin or --without-microwin was given. |
1888 | if test "${with_microwin+set}" = set; then | |
1889 | withval="$with_microwin" | |
1890 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1891 | fi |
1725144d | 1892 | |
f79bd02d JS |
1893 | # Check whether --with-x11 or --without-x11 was given. |
1894 | if test "${with_x11+set}" = set; then | |
1895 | withval="$with_x11" | |
3c011993 | 1896 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1897 | fi |
10f2d63a | 1898 | |
a0b9e27f | 1899 | |
5005acfe VZ |
1900 | enablestring= |
1901 | echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6 | |
2b5f62a0 | 1902 | echo "configure:1903: checking for --${enablestring:-enable}-nanox" >&5 |
d8356fa3 | 1903 | no_cache=0 |
ba875e66 VZ |
1904 | # Check whether --enable-nanox or --disable-nanox was given. |
1905 | if test "${enable_nanox+set}" = set; then | |
1906 | enableval="$enable_nanox" | |
a0b9e27f | 1907 | |
d8356fa3 | 1908 | if test "$enableval" = yes; then |
ba875e66 | 1909 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1910 | else |
ba875e66 | 1911 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1912 | fi |
a0b9e27f | 1913 | |
d8356fa3 | 1914 | else |
a0b9e27f | 1915 | |
d8356fa3 VZ |
1916 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1917 | if test "x$LINE" != x ; then | |
1918 | eval "DEFAULT_$LINE" | |
1919 | else | |
1920 | no_cache=1 | |
1921 | fi | |
1922 | ||
ba875e66 | 1923 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
a0b9e27f MB |
1924 | |
1925 | fi | |
d8356fa3 VZ |
1926 | |
1927 | ||
ba875e66 | 1928 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1929 | if test "$no_cache" != 1; then |
ba875e66 | 1930 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1931 | fi |
1932 | ||
1933 | if test "$wxUSE_NANOX" = yes; then | |
a0b9e27f | 1934 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1935 | else |
a0b9e27f | 1936 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1937 | fi |
a0b9e27f | 1938 | |
8284b0c5 | 1939 | |
d74f4b5a | 1940 | |
5005acfe VZ |
1941 | enablestring= |
1942 | echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6 | |
2b5f62a0 | 1943 | echo "configure:1944: checking for --${enablestring:-enable}-gtk2" >&5 |
d74f4b5a VZ |
1944 | no_cache=0 |
1945 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
1946 | if test "${enable_gtk2+set}" = set; then |
1947 | enableval="$enable_gtk2" | |
a0b9e27f | 1948 | |
d74f4b5a VZ |
1949 | if test "$enableval" = yes; then |
1950 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
1951 | else | |
1952 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
1953 | fi | |
a0b9e27f | 1954 | |
10f2d63a | 1955 | else |
a0b9e27f | 1956 | |
d74f4b5a VZ |
1957 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
1958 | if test "x$LINE" != x ; then | |
1959 | eval "DEFAULT_$LINE" | |
1960 | else | |
1961 | no_cache=1 | |
1962 | fi | |
1963 | ||
1964 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
a0b9e27f MB |
1965 | |
1966 | fi | |
52127426 | 1967 | |
328a083c | 1968 | |
d74f4b5a VZ |
1969 | eval "$ac_cv_use_gtk2" |
1970 | if test "$no_cache" != 1; then | |
1971 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
1972 | fi | |
1973 | ||
1974 | if test "$wxUSE_GTK2" = yes; then | |
a0b9e27f | 1975 | echo "$ac_t""yes" 1>&6 |
d74f4b5a | 1976 | else |
a0b9e27f | 1977 | echo "$ac_t""no" 1>&6 |
d74f4b5a | 1978 | fi |
a0b9e27f | 1979 | |
d74f4b5a | 1980 | |
5c6fa7d2 | 1981 | |
a0b9e27f | 1982 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
2b5f62a0 | 1983 | echo "configure:1984: checking for --with-libpng" >&5 |
8284b0c5 | 1984 | no_cache=0 |
a0b9e27f | 1985 | # Check whether --with-libpng or --without-libpng was given. |
b12915c1 VZ |
1986 | if test "${with_libpng+set}" = set; then |
1987 | withval="$with_libpng" | |
a0b9e27f | 1988 | |
10f2d63a | 1989 | if test "$withval" = yes; then |
b12915c1 | 1990 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1991 | elif test "$withval" = no; then |
b12915c1 | 1992 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1993 | elif test "$withval" = sys; then |
1994 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1995 | elif test "$withval" = builtin; then |
1996 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1997 | else |
a0b9e27f | 1998 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1999 | fi |
a0b9e27f | 2000 | |
10f2d63a | 2001 | else |
a0b9e27f | 2002 | |
b12915c1 | 2003 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2004 | if test "x$LINE" != x ; then |
2005 | eval "DEFAULT_$LINE" | |
2006 | else | |
2007 | no_cache=1 | |
2008 | fi | |
2009 | ||
b12915c1 | 2010 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
a0b9e27f MB |
2011 | |
2012 | fi | |
10f2d63a VZ |
2013 | |
2014 | ||
b12915c1 | 2015 | eval "$ac_cv_use_libpng" |
10f2d63a | 2016 | if test "$no_cache" != 1; then |
b12915c1 | 2017 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2018 | fi |
2019 | ||
b12915c1 | 2020 | if test "$wxUSE_LIBPNG" = yes; then |
a0b9e27f | 2021 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2022 | elif test "$wxUSE_LIBPNG" = no; then |
a0b9e27f | 2023 | echo "$ac_t""no" 1>&6 |
422107f9 | 2024 | elif test "$wxUSE_LIBPNG" = sys; then |
a0b9e27f | 2025 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2026 | elif test "$wxUSE_LIBPNG" = builtin; then |
a0b9e27f | 2027 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2028 | else |
a0b9e27f | 2029 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2030 | fi |
a0b9e27f | 2031 | |
10f2d63a | 2032 | |
a0b9e27f | 2033 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
2b5f62a0 | 2034 | echo "configure:2035: checking for --with-libjpeg" >&5 |
10f2d63a | 2035 | no_cache=0 |
a0b9e27f | 2036 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2037 | if test "${with_libjpeg+set}" = set; then |
2038 | withval="$with_libjpeg" | |
a0b9e27f | 2039 | |
10f2d63a | 2040 | if test "$withval" = yes; then |
b12915c1 | 2041 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2042 | elif test "$withval" = no; then |
b12915c1 | 2043 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2044 | elif test "$withval" = sys; then |
2045 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2046 | elif test "$withval" = builtin; then |
2047 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2048 | else |
a0b9e27f | 2049 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2050 | fi |
a0b9e27f | 2051 | |
10f2d63a | 2052 | else |
a0b9e27f | 2053 | |
b12915c1 | 2054 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2055 | if test "x$LINE" != x ; then |
2056 | eval "DEFAULT_$LINE" | |
2057 | else | |
2058 | no_cache=1 | |
2059 | fi | |
2060 | ||
b12915c1 | 2061 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
a0b9e27f MB |
2062 | |
2063 | fi | |
10f2d63a VZ |
2064 | |
2065 | ||
b12915c1 | 2066 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2067 | if test "$no_cache" != 1; then |
b12915c1 | 2068 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2069 | fi |
2070 | ||
b12915c1 | 2071 | if test "$wxUSE_LIBJPEG" = yes; then |
a0b9e27f | 2072 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2073 | elif test "$wxUSE_LIBJPEG" = no; then |
a0b9e27f | 2074 | echo "$ac_t""no" 1>&6 |
422107f9 | 2075 | elif test "$wxUSE_LIBJPEG" = sys; then |
a0b9e27f | 2076 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2077 | elif test "$wxUSE_LIBJPEG" = builtin; then |
a0b9e27f | 2078 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2079 | else |
a0b9e27f | 2080 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2081 | fi |
a0b9e27f | 2082 | |
10f2d63a | 2083 | |
a0b9e27f | 2084 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
2b5f62a0 | 2085 | echo "configure:2086: checking for --with-libtiff" >&5 |
10f2d63a | 2086 | no_cache=0 |
a0b9e27f | 2087 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2088 | if test "${with_libtiff+set}" = set; then |
2089 | withval="$with_libtiff" | |
a0b9e27f | 2090 | |
10f2d63a | 2091 | if test "$withval" = yes; then |
b12915c1 | 2092 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2093 | elif test "$withval" = no; then |
b12915c1 | 2094 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2095 | elif test "$withval" = sys; then |
2096 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2097 | elif test "$withval" = builtin; then |
2098 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2099 | else |
a0b9e27f | 2100 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2101 | fi |
a0b9e27f | 2102 | |
10f2d63a | 2103 | else |
a0b9e27f | 2104 | |
b12915c1 | 2105 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2106 | if test "x$LINE" != x ; then |
2107 | eval "DEFAULT_$LINE" | |
2108 | else | |
2109 | no_cache=1 | |
2110 | fi | |
2111 | ||
b12915c1 | 2112 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
a0b9e27f MB |
2113 | |
2114 | fi | |
10f2d63a VZ |
2115 | |
2116 | ||
b12915c1 | 2117 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2118 | if test "$no_cache" != 1; then |
b12915c1 | 2119 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2120 | fi |
2121 | ||
b12915c1 | 2122 | if test "$wxUSE_LIBTIFF" = yes; then |
a0b9e27f | 2123 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2124 | elif test "$wxUSE_LIBTIFF" = no; then |
a0b9e27f | 2125 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2126 | elif test "$wxUSE_LIBTIFF" = sys; then |
a0b9e27f | 2127 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2128 | elif test "$wxUSE_LIBTIFF" = builtin; then |
a0b9e27f | 2129 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2130 | else |
a0b9e27f | 2131 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2132 | fi |
a0b9e27f | 2133 | |
10f2d63a | 2134 | |
a0b9e27f | 2135 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
2b5f62a0 | 2136 | echo "configure:2137: checking for --with-opengl" >&5 |
10f2d63a | 2137 | no_cache=0 |
a0b9e27f | 2138 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2139 | if test "${with_opengl+set}" = set; then |
2140 | withval="$with_opengl" | |
a0b9e27f | 2141 | |
10f2d63a | 2142 | if test "$withval" = yes; then |
b12915c1 | 2143 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2144 | else |
b12915c1 | 2145 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2146 | fi |
a0b9e27f | 2147 | |
10f2d63a | 2148 | else |
a0b9e27f | 2149 | |
b12915c1 | 2150 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2151 | if test "x$LINE" != x ; then |
2152 | eval "DEFAULT_$LINE" | |
2153 | else | |
2154 | no_cache=1 | |
2155 | fi | |
2156 | ||
b12915c1 | 2157 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
a0b9e27f MB |
2158 | |
2159 | fi | |
10f2d63a VZ |
2160 | |
2161 | ||
b12915c1 | 2162 | eval "$ac_cv_use_opengl" |
10f2d63a | 2163 | if test "$no_cache" != 1; then |
b12915c1 | 2164 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2165 | fi |
2166 | ||
b12915c1 | 2167 | if test "$wxUSE_OPENGL" = yes; then |
a0b9e27f | 2168 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2169 | else |
a0b9e27f | 2170 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2171 | fi |
a0b9e27f | 2172 | |
10f2d63a | 2173 | |
b12915c1 VZ |
2174 | fi |
2175 | ||
5c6fa7d2 | 2176 | |
a0b9e27f | 2177 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
2b5f62a0 | 2178 | echo "configure:2179: checking for --with-dmalloc" >&5 |
8284b0c5 | 2179 | no_cache=0 |
a0b9e27f | 2180 | # Check whether --with-dmalloc or --without-dmalloc was given. |
b12915c1 VZ |
2181 | if test "${with_dmalloc+set}" = set; then |
2182 | withval="$with_dmalloc" | |
a0b9e27f | 2183 | |
c7a2bf27 | 2184 | if test "$withval" = yes; then |
b12915c1 | 2185 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2186 | else |
b12915c1 | 2187 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2188 | fi |
a0b9e27f | 2189 | |
c7a2bf27 | 2190 | else |
a0b9e27f | 2191 | |
b12915c1 | 2192 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2193 | if test "x$LINE" != x ; then |
2194 | eval "DEFAULT_$LINE" | |
2195 | else | |
2196 | no_cache=1 | |
2197 | fi | |
2198 | ||
b12915c1 | 2199 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
a0b9e27f MB |
2200 | |
2201 | fi | |
c7a2bf27 RR |
2202 | |
2203 | ||
b12915c1 | 2204 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2205 | if test "$no_cache" != 1; then |
b12915c1 | 2206 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2207 | fi |
2208 | ||
b12915c1 | 2209 | if test "$wxUSE_DMALLOC" = yes; then |
a0b9e27f | 2210 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2211 | else |
a0b9e27f | 2212 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2213 | fi |
a0b9e27f | 2214 | |
c7a2bf27 | 2215 | |
a0b9e27f | 2216 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
2b5f62a0 | 2217 | echo "configure:2218: checking for --with-regex" >&5 |
3e44f09d | 2218 | no_cache=0 |
a0b9e27f | 2219 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2220 | if test "${with_regex+set}" = set; then |
2221 | withval="$with_regex" | |
a0b9e27f | 2222 | |
3e44f09d VZ |
2223 | if test "$withval" = yes; then |
2224 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2225 | elif test "$withval" = no; then | |
2226 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2227 | elif test "$withval" = sys; then | |
2228 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2229 | elif test "$withval" = builtin; then |
2230 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2231 | else |
a0b9e27f | 2232 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2233 | fi |
a0b9e27f | 2234 | |
3e44f09d | 2235 | else |
a0b9e27f | 2236 | |
3e44f09d VZ |
2237 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2238 | if test "x$LINE" != x ; then | |
2239 | eval "DEFAULT_$LINE" | |
2240 | else | |
2241 | no_cache=1 | |
2242 | fi | |
2243 | ||
2244 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
a0b9e27f MB |
2245 | |
2246 | fi | |
3e44f09d VZ |
2247 | |
2248 | ||
2249 | eval "$ac_cv_use_regex" | |
2250 | if test "$no_cache" != 1; then | |
2251 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2252 | fi | |
2253 | ||
2254 | if test "$wxUSE_REGEX" = yes; then | |
a0b9e27f | 2255 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2256 | elif test "$wxUSE_REGEX" = no; then |
a0b9e27f | 2257 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2258 | elif test "$wxUSE_REGEX" = sys; then |
a0b9e27f | 2259 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2260 | elif test "$wxUSE_REGEX" = builtin; then |
a0b9e27f | 2261 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2262 | else |
a0b9e27f | 2263 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2264 | fi |
a0b9e27f | 2265 | |
3e44f09d | 2266 | |
a0b9e27f | 2267 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
2b5f62a0 | 2268 | echo "configure:2269: checking for --with-zlib" >&5 |
10f2d63a | 2269 | no_cache=0 |
a0b9e27f | 2270 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2271 | if test "${with_zlib+set}" = set; then |
2272 | withval="$with_zlib" | |
a0b9e27f | 2273 | |
10f2d63a | 2274 | if test "$withval" = yes; then |
b12915c1 | 2275 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2276 | elif test "$withval" = no; then |
b12915c1 | 2277 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2278 | elif test "$withval" = sys; then |
2279 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2280 | elif test "$withval" = builtin; then |
2281 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2282 | else |
a0b9e27f | 2283 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2284 | fi |
a0b9e27f | 2285 | |
10f2d63a | 2286 | else |
a0b9e27f | 2287 | |
b12915c1 | 2288 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2289 | if test "x$LINE" != x ; then |
2290 | eval "DEFAULT_$LINE" | |
2291 | else | |
2292 | no_cache=1 | |
2293 | fi | |
2294 | ||
b12915c1 | 2295 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
a0b9e27f MB |
2296 | |
2297 | fi | |
10f2d63a VZ |
2298 | |
2299 | ||
b12915c1 | 2300 | eval "$ac_cv_use_zlib" |
10f2d63a | 2301 | if test "$no_cache" != 1; then |
b12915c1 | 2302 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2303 | fi |
2304 | ||
b12915c1 | 2305 | if test "$wxUSE_ZLIB" = yes; then |
a0b9e27f | 2306 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2307 | elif test "$wxUSE_ZLIB" = no; then |
a0b9e27f | 2308 | echo "$ac_t""no" 1>&6 |
422107f9 | 2309 | elif test "$wxUSE_ZLIB" = sys; then |
a0b9e27f | 2310 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2311 | elif test "$wxUSE_ZLIB" = builtin; then |
a0b9e27f | 2312 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2313 | else |
a0b9e27f | 2314 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2315 | fi |
a0b9e27f | 2316 | |
10f2d63a | 2317 | |
a0b9e27f | 2318 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
2b5f62a0 | 2319 | echo "configure:2320: checking for --with-odbc" >&5 |
10f2d63a | 2320 | no_cache=0 |
a0b9e27f | 2321 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2322 | if test "${with_odbc+set}" = set; then |
2323 | withval="$with_odbc" | |
a0b9e27f | 2324 | |
10f2d63a VZ |
2325 | if test "$withval" = yes; then |
2326 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2327 | else | |
2328 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2329 | fi | |
a0b9e27f | 2330 | |
10f2d63a | 2331 | else |
a0b9e27f | 2332 | |
10f2d63a VZ |
2333 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2334 | if test "x$LINE" != x ; then | |
2335 | eval "DEFAULT_$LINE" | |
2336 | else | |
2337 | no_cache=1 | |
2338 | fi | |
2339 | ||
2340 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
a0b9e27f MB |
2341 | |
2342 | fi | |
10f2d63a VZ |
2343 | |
2344 | ||
2345 | eval "$ac_cv_use_odbc" | |
2346 | if test "$no_cache" != 1; then | |
2347 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2348 | fi | |
2349 | ||
2350 | if test "$wxUSE_ODBC" = yes; then | |
a0b9e27f | 2351 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2352 | else |
a0b9e27f | 2353 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2354 | fi |
a0b9e27f | 2355 | |
52127426 | 2356 | |
8284b0c5 MB |
2357 | |
2358 | ||
5005acfe VZ |
2359 | enablestring= |
2360 | echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6 | |
2b5f62a0 | 2361 | echo "configure:2362: checking for --${enablestring:-enable}-shared" >&5 |
10f2d63a VZ |
2362 | no_cache=0 |
2363 | # Check whether --enable-shared or --disable-shared was given. | |
2364 | if test "${enable_shared+set}" = set; then | |
2365 | enableval="$enable_shared" | |
a0b9e27f | 2366 | |
10f2d63a VZ |
2367 | if test "$enableval" = yes; then |
2368 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2369 | else | |
2370 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2371 | fi | |
a0b9e27f | 2372 | |
10f2d63a | 2373 | else |
a0b9e27f | 2374 | |
10f2d63a VZ |
2375 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2376 | if test "x$LINE" != x ; then | |
2377 | eval "DEFAULT_$LINE" | |
2378 | else | |
2379 | no_cache=1 | |
2380 | fi | |
2381 | ||
2382 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
a0b9e27f MB |
2383 | |
2384 | fi | |
10f2d63a VZ |
2385 | |
2386 | ||
2387 | eval "$ac_cv_use_shared" | |
2388 | if test "$no_cache" != 1; then | |
2389 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2390 | fi | |
2391 | ||
2392 | if test "$wxUSE_SHARED" = yes; then | |
a0b9e27f | 2393 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2394 | else |
a0b9e27f | 2395 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2396 | fi |
a0b9e27f | 2397 | |
10f2d63a | 2398 | |
5005acfe VZ |
2399 | enablestring= |
2400 | echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6 | |
2b5f62a0 | 2401 | echo "configure:2402: checking for --${enablestring:-enable}-soname" >&5 |
00cf1208 | 2402 | no_cache=0 |
3a922bb4 RL |
2403 | # Check whether --enable-soname or --disable-soname was given. |
2404 | if test "${enable_soname+set}" = set; then | |
2405 | enableval="$enable_soname" | |
a0b9e27f | 2406 | |
00cf1208 | 2407 | if test "$enableval" = yes; then |
3a922bb4 | 2408 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2409 | else |
3a922bb4 | 2410 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2411 | fi |
a0b9e27f | 2412 | |
00cf1208 | 2413 | else |
a0b9e27f | 2414 | |
3a922bb4 | 2415 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2416 | if test "x$LINE" != x ; then |
2417 | eval "DEFAULT_$LINE" | |
2418 | else | |
2419 | no_cache=1 | |
2420 | fi | |
2421 | ||
3a922bb4 | 2422 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
a0b9e27f MB |
2423 | |
2424 | fi | |
00cf1208 RR |
2425 | |
2426 | ||
3a922bb4 | 2427 | eval "$ac_cv_use_soname" |
00cf1208 | 2428 | if test "$no_cache" != 1; then |
3a922bb4 | 2429 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2430 | fi |
2431 | ||
3a922bb4 | 2432 | if test "$wxUSE_SONAME" = yes; then |
a0b9e27f | 2433 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2434 | else |
a0b9e27f | 2435 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2436 | fi |
a0b9e27f | 2437 | |
00cf1208 | 2438 | |
5005acfe VZ |
2439 | enablestring= |
2440 | echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6 | |
2b5f62a0 | 2441 | echo "configure:2442: checking for --${enablestring:-enable}-optimise" >&5 |
10f2d63a VZ |
2442 | no_cache=0 |
2443 | # Check whether --enable-optimise or --disable-optimise was given. | |
2444 | if test "${enable_optimise+set}" = set; then | |
2445 | enableval="$enable_optimise" | |
a0b9e27f | 2446 | |
10f2d63a VZ |
2447 | if test "$enableval" = yes; then |
2448 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2449 | else | |
2450 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2451 | fi | |
a0b9e27f | 2452 | |
10f2d63a | 2453 | else |
a0b9e27f | 2454 | |
10f2d63a VZ |
2455 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2456 | if test "x$LINE" != x ; then | |
2457 | eval "DEFAULT_$LINE" | |
2458 | else | |
2459 | no_cache=1 | |
2460 | fi | |
2461 | ||
2462 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
a0b9e27f MB |
2463 | |
2464 | fi | |
10f2d63a VZ |
2465 | |
2466 | ||
2467 | eval "$ac_cv_use_optimise" | |
2468 | if test "$no_cache" != 1; then | |
2469 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2470 | fi | |
2471 | ||
2472 | if test "$wxUSE_OPTIMISE" = yes; then | |
a0b9e27f | 2473 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2474 | else |
a0b9e27f | 2475 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2476 | fi |
a0b9e27f | 2477 | |
10f2d63a | 2478 | |
5005acfe VZ |
2479 | enablestring= |
2480 | echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6 | |
2b5f62a0 | 2481 | echo "configure:2482: checking for --${enablestring:-enable}-debug" >&5 |
10f2d63a VZ |
2482 | no_cache=0 |
2483 | # Check whether --enable-debug or --disable-debug was given. | |
2484 | if test "${enable_debug+set}" = set; then | |
2485 | enableval="$enable_debug" | |
a0b9e27f | 2486 | |
10f2d63a VZ |
2487 | if test "$enableval" = yes; then |
2488 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2489 | else | |
2490 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2491 | fi | |
a0b9e27f | 2492 | |
10f2d63a | 2493 | else |
a0b9e27f | 2494 | |
10f2d63a VZ |
2495 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2496 | if test "x$LINE" != x ; then | |
2497 | eval "DEFAULT_$LINE" | |
2498 | else | |
2499 | no_cache=1 | |
2500 | fi | |
2501 | ||
2502 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
a0b9e27f MB |
2503 | |
2504 | fi | |
10f2d63a VZ |
2505 | |
2506 | ||
2507 | eval "$ac_cv_use_debug" | |
2508 | if test "$no_cache" != 1; then | |
2509 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2510 | fi | |
2511 | ||
2512 | if test "$wxUSE_DEBUG" = yes; then | |
a0b9e27f | 2513 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2514 | else |
a0b9e27f | 2515 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2516 | fi |
a0b9e27f | 2517 | |
52127426 | 2518 | |
8284b0c5 | 2519 | |
5005acfe VZ |
2520 | enablestring= |
2521 | echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6 | |
2b5f62a0 | 2522 | echo "configure:2523: checking for --${enablestring:-enable}-precomp" >&5 |
683dccda GD |
2523 | no_cache=0 |
2524 | # Check whether --enable-precomp or --disable-precomp was given. | |
2525 | if test "${enable_precomp+set}" = set; then | |
2526 | enableval="$enable_precomp" | |
a0b9e27f | 2527 | |
683dccda GD |
2528 | if test "$enableval" = yes; then |
2529 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2530 | else | |
2531 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2532 | fi | |
a0b9e27f | 2533 | |
683dccda | 2534 | else |
a0b9e27f | 2535 | |
683dccda GD |
2536 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2537 | if test "x$LINE" != x ; then | |
2538 | eval "DEFAULT_$LINE" | |
2539 | else | |
2540 | no_cache=1 | |
2541 | fi | |
2542 | ||
2543 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
a0b9e27f MB |
2544 | |
2545 | fi | |
683dccda GD |
2546 | |
2547 | ||
2548 | eval "$ac_cv_use_precomp" | |
2549 | if test "$no_cache" != 1; then | |
2550 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2551 | fi | |
2552 | ||
2553 | if test "$wxUSE_PRECOMP" = yes; then | |
a0b9e27f | 2554 | echo "$ac_t""yes" 1>&6 |
683dccda | 2555 | else |
a0b9e27f | 2556 | echo "$ac_t""no" 1>&6 |
683dccda | 2557 | fi |
a0b9e27f | 2558 | |
683dccda | 2559 | |
10f2d63a VZ |
2560 | if test "$wxUSE_DEBUG" = "yes"; then |
2561 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2562 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2563 | elif test "$wxUSE_DEBUG" = "no"; then | |
2564 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2565 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2566 | fi | |
2567 | ||
8284b0c5 | 2568 | |
5005acfe VZ |
2569 | enablestring= |
2570 | echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6 | |
2b5f62a0 | 2571 | echo "configure:2572: checking for --${enablestring:-enable}-debug_flag" >&5 |
10f2d63a VZ |
2572 | no_cache=0 |
2573 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2574 | if test "${enable_debug_flag+set}" = set; then | |
2575 | enableval="$enable_debug_flag" | |
a0b9e27f | 2576 | |
10f2d63a VZ |
2577 | if test "$enableval" = yes; then |
2578 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2579 | else | |
2580 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2581 | fi | |
a0b9e27f | 2582 | |
10f2d63a | 2583 | else |
a0b9e27f | 2584 | |
10f2d63a VZ |
2585 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2586 | if test "x$LINE" != x ; then | |
2587 | eval "DEFAULT_$LINE" | |
2588 | else | |
2589 | no_cache=1 | |
2590 | fi | |
2591 | ||
2592 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
a0b9e27f MB |
2593 | |
2594 | fi | |
10f2d63a VZ |
2595 | |
2596 | ||
2597 | eval "$ac_cv_use_debug_flag" | |
2598 | if test "$no_cache" != 1; then | |
2599 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2600 | fi | |
2601 | ||
2602 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
a0b9e27f | 2603 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2604 | else |
a0b9e27f | 2605 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2606 | fi |
a0b9e27f | 2607 | |
10f2d63a | 2608 | |
5005acfe VZ |
2609 | enablestring= |
2610 | echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6 | |
2b5f62a0 | 2611 | echo "configure:2612: checking for --${enablestring:-enable}-debug_info" >&5 |
10f2d63a VZ |
2612 | no_cache=0 |
2613 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2614 | if test "${enable_debug_info+set}" = set; then | |
2615 | enableval="$enable_debug_info" | |
a0b9e27f | 2616 | |
10f2d63a VZ |
2617 | if test "$enableval" = yes; then |
2618 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2619 | else | |
2620 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2621 | fi | |
a0b9e27f | 2622 | |
10f2d63a | 2623 | else |
a0b9e27f | 2624 | |
10f2d63a VZ |
2625 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2626 | if test "x$LINE" != x ; then | |
2627 | eval "DEFAULT_$LINE" | |
2628 | else | |
2629 | no_cache=1 | |
2630 | fi | |
2631 | ||
2632 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
a0b9e27f MB |
2633 | |
2634 | fi | |
10f2d63a VZ |
2635 | |
2636 | ||
2637 | eval "$ac_cv_use_debug_info" | |
2638 | if test "$no_cache" != 1; then | |
2639 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2640 | fi | |
2641 | ||
2642 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
a0b9e27f | 2643 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2644 | else |
a0b9e27f | 2645 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2646 | fi |
a0b9e27f | 2647 | |
10f2d63a | 2648 | |
5005acfe VZ |
2649 | enablestring= |
2650 | echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6 | |
2b5f62a0 | 2651 | echo "configure:2652: checking for --${enablestring:-enable}-debug_gdb" >&5 |
10f2d63a VZ |
2652 | no_cache=0 |
2653 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2654 | if test "${enable_debug_gdb+set}" = set; then | |
2655 | enableval="$enable_debug_gdb" | |
a0b9e27f | 2656 | |
10f2d63a VZ |
2657 | if test "$enableval" = yes; then |
2658 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2659 | else | |
2660 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2661 | fi | |
a0b9e27f | 2662 | |
10f2d63a | 2663 | else |
a0b9e27f | 2664 | |
10f2d63a VZ |
2665 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2666 | if test "x$LINE" != x ; then | |
2667 | eval "DEFAULT_$LINE" | |
2668 | else | |
2669 | no_cache=1 | |
2670 | fi | |
2671 | ||
2672 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
a0b9e27f MB |
2673 | |
2674 | fi | |
10f2d63a VZ |
2675 | |
2676 | ||
2677 | eval "$ac_cv_use_debug_gdb" | |
2678 | if test "$no_cache" != 1; then | |
2679 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2680 | fi | |
2681 | ||
2682 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
a0b9e27f | 2683 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2684 | else |
a0b9e27f | 2685 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2686 | fi |
a0b9e27f | 2687 | |
10f2d63a | 2688 | |
5005acfe VZ |
2689 | enablestring= |
2690 | echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6 | |
2b5f62a0 | 2691 | echo "configure:2692: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
10f2d63a VZ |
2692 | no_cache=0 |
2693 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2694 | if test "${enable_debug_cntxt+set}" = set; then | |
2695 | enableval="$enable_debug_cntxt" | |
a0b9e27f | 2696 | |
10f2d63a VZ |
2697 | if test "$enableval" = yes; then |
2698 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2699 | else | |
2700 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2701 | fi | |
a0b9e27f | 2702 | |
10f2d63a | 2703 | else |
a0b9e27f | 2704 | |
10f2d63a VZ |
2705 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2706 | if test "x$LINE" != x ; then | |
2707 | eval "DEFAULT_$LINE" | |
2708 | else | |
2709 | no_cache=1 | |
2710 | fi | |
2711 | ||
2712 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
a0b9e27f MB |
2713 | |
2714 | fi | |
10f2d63a VZ |
2715 | |
2716 | ||
2717 | eval "$ac_cv_use_debug_cntxt" | |
2718 | if test "$no_cache" != 1; then | |
2719 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2720 | fi | |
2721 | ||
2722 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
a0b9e27f | 2723 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2724 | else |
a0b9e27f | 2725 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2726 | fi |
a0b9e27f | 2727 | |
10f2d63a | 2728 | |
5005acfe VZ |
2729 | enablestring= |
2730 | echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6 | |
2b5f62a0 | 2731 | echo "configure:2732: checking for --${enablestring:-enable}-mem_tracing" >&5 |
10f2d63a VZ |
2732 | no_cache=0 |
2733 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2734 | if test "${enable_mem_tracing+set}" = set; then | |
2735 | enableval="$enable_mem_tracing" | |
a0b9e27f | 2736 | |
10f2d63a VZ |
2737 | if test "$enableval" = yes; then |
2738 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2739 | else | |
2740 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2741 | fi | |
a0b9e27f | 2742 | |
10f2d63a | 2743 | else |
a0b9e27f | 2744 | |
10f2d63a VZ |
2745 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2746 | if test "x$LINE" != x ; then | |
2747 | eval "DEFAULT_$LINE" | |
2748 | else | |
2749 | no_cache=1 | |
2750 | fi | |
2751 | ||
2752 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
a0b9e27f MB |
2753 | |
2754 | fi | |
10f2d63a VZ |
2755 | |
2756 | ||
2757 | eval "$ac_cv_use_mem_tracing" | |
2758 | if test "$no_cache" != 1; then | |
2759 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2760 | fi | |
2761 | ||
2762 | if test "$wxUSE_MEM_TRACING" = yes; then | |
a0b9e27f | 2763 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2764 | else |
a0b9e27f | 2765 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2766 | fi |
a0b9e27f | 2767 | |
10f2d63a | 2768 | |
5005acfe VZ |
2769 | enablestring= |
2770 | echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6 | |
2b5f62a0 | 2771 | echo "configure:2772: checking for --${enablestring:-enable}-profile" >&5 |
10f2d63a VZ |
2772 | no_cache=0 |
2773 | # Check whether --enable-profile or --disable-profile was given. | |
2774 | if test "${enable_profile+set}" = set; then | |
2775 | enableval="$enable_profile" | |
a0b9e27f | 2776 | |
10f2d63a VZ |
2777 | if test "$enableval" = yes; then |
2778 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2779 | else | |
2780 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2781 | fi | |
a0b9e27f | 2782 | |
10f2d63a | 2783 | else |
a0b9e27f | 2784 | |
10f2d63a VZ |
2785 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2786 | if test "x$LINE" != x ; then | |
2787 | eval "DEFAULT_$LINE" | |
2788 | else | |
2789 | no_cache=1 | |
2790 | fi | |
2791 | ||
2792 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
a0b9e27f MB |
2793 | |
2794 | fi | |
10f2d63a VZ |
2795 | |
2796 | ||
2797 | eval "$ac_cv_use_profile" | |
2798 | if test "$no_cache" != 1; then | |
2799 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2800 | fi | |
2801 | ||
2802 | if test "$wxUSE_PROFILE" = yes; then | |
a0b9e27f | 2803 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2804 | else |
a0b9e27f | 2805 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2806 | fi |
a0b9e27f | 2807 | |
10f2d63a | 2808 | |
5005acfe VZ |
2809 | enablestring= |
2810 | echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6 | |
2b5f62a0 | 2811 | echo "configure:2812: checking for --${enablestring:-enable}-no_rtti" >&5 |
10f2d63a VZ |
2812 | no_cache=0 |
2813 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2814 | if test "${enable_no_rtti+set}" = set; then | |
2815 | enableval="$enable_no_rtti" | |
a0b9e27f | 2816 | |
10f2d63a VZ |
2817 | if test "$enableval" = yes; then |
2818 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2819 | else | |
2820 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2821 | fi | |
a0b9e27f | 2822 | |
10f2d63a | 2823 | else |
a0b9e27f | 2824 | |
10f2d63a VZ |
2825 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2826 | if test "x$LINE" != x ; then | |
2827 | eval "DEFAULT_$LINE" | |
2828 | else | |
2829 | no_cache=1 | |
2830 | fi | |
2831 | ||
2832 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
a0b9e27f MB |
2833 | |
2834 | fi | |
10f2d63a VZ |
2835 | |
2836 | ||
2837 | eval "$ac_cv_use_no_rtti" | |
2838 | if test "$no_cache" != 1; then | |
2839 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2840 | fi | |
2841 | ||
2842 | if test "$wxUSE_NO_RTTI" = yes; then | |
a0b9e27f | 2843 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2844 | else |
a0b9e27f | 2845 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2846 | fi |
a0b9e27f | 2847 | |
10f2d63a | 2848 | |
5005acfe VZ |
2849 | enablestring= |
2850 | echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6 | |
2b5f62a0 | 2851 | echo "configure:2852: checking for --${enablestring:-enable}-no_exceptions" >&5 |
10f2d63a VZ |
2852 | no_cache=0 |
2853 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2854 | if test "${enable_no_exceptions+set}" = set; then | |
2855 | enableval="$enable_no_exceptions" | |
a0b9e27f | 2856 | |
10f2d63a VZ |
2857 | if test "$enableval" = yes; then |
2858 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2859 | else | |
2860 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2861 | fi | |
a0b9e27f | 2862 | |
10f2d63a | 2863 | else |
a0b9e27f | 2864 | |
10f2d63a VZ |
2865 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2866 | if test "x$LINE" != x ; then | |
2867 | eval "DEFAULT_$LINE" | |
2868 | else | |
2869 | no_cache=1 | |
2870 | fi | |
2871 | ||
2872 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
a0b9e27f MB |
2873 | |
2874 | fi | |
10f2d63a VZ |
2875 | |
2876 | ||
2877 | eval "$ac_cv_use_no_exceptions" | |
2878 | if test "$no_cache" != 1; then | |
2879 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2880 | fi | |
2881 | ||
2882 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
a0b9e27f | 2883 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2884 | else |
a0b9e27f | 2885 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2886 | fi |
a0b9e27f | 2887 | |
10f2d63a | 2888 | |
5005acfe VZ |
2889 | enablestring= |
2890 | echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6 | |
2b5f62a0 | 2891 | echo "configure:2892: checking for --${enablestring:-enable}-permissive" >&5 |
10f2d63a VZ |
2892 | no_cache=0 |
2893 | # Check whether --enable-permissive or --disable-permissive was given. | |
2894 | if test "${enable_permissive+set}" = set; then | |
2895 | enableval="$enable_permissive" | |
a0b9e27f | 2896 | |
10f2d63a VZ |
2897 | if test "$enableval" = yes; then |
2898 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2899 | else | |
2900 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2901 | fi | |
a0b9e27f | 2902 | |
10f2d63a | 2903 | else |
a0b9e27f | 2904 | |
10f2d63a VZ |
2905 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2906 | if test "x$LINE" != x ; then | |
2907 | eval "DEFAULT_$LINE" | |
2908 | else | |
2909 | no_cache=1 | |
2910 | fi | |
2911 | ||
2912 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
a0b9e27f MB |
2913 | |
2914 | fi | |
10f2d63a VZ |
2915 | |
2916 | ||
2917 | eval "$ac_cv_use_permissive" | |
2918 | if test "$no_cache" != 1; then | |
2919 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2920 | fi | |
2921 | ||
2922 | if test "$wxUSE_PERMISSIVE" = yes; then | |
a0b9e27f | 2923 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2924 | else |
a0b9e27f | 2925 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2926 | fi |
a0b9e27f | 2927 | |
10f2d63a | 2928 | |
5005acfe VZ |
2929 | enablestring= |
2930 | echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6 | |
2b5f62a0 | 2931 | echo "configure:2932: checking for --${enablestring:-enable}-no_deps" >&5 |
10f2d63a VZ |
2932 | no_cache=0 |
2933 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2934 | if test "${enable_no_deps+set}" = set; then | |
2935 | enableval="$enable_no_deps" | |
a0b9e27f | 2936 | |
10f2d63a VZ |
2937 | if test "$enableval" = yes; then |
2938 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2939 | else | |
2940 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2941 | fi | |
a0b9e27f | 2942 | |
10f2d63a | 2943 | else |
a0b9e27f | 2944 | |
10f2d63a VZ |
2945 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2946 | if test "x$LINE" != x ; then | |
2947 | eval "DEFAULT_$LINE" | |
2948 | else | |
2949 | no_cache=1 | |
2950 | fi | |
2951 | ||
2952 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
a0b9e27f MB |
2953 | |
2954 | fi | |
10f2d63a VZ |
2955 | |
2956 | ||
2957 | eval "$ac_cv_use_no_deps" | |
2958 | if test "$no_cache" != 1; then | |
2959 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2960 | fi | |
2961 | ||
2962 | if test "$wxUSE_NO_DEPS" = yes; then | |
a0b9e27f | 2963 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2964 | else |
a0b9e27f | 2965 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2966 | fi |
a0b9e27f | 2967 | |
52127426 | 2968 | |
8284b0c5 | 2969 | |
5005acfe VZ |
2970 | enablestring= |
2971 | echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6 | |
2b5f62a0 | 2972 | echo "configure:2973: checking for --${enablestring:-enable}-compat20" >&5 |
54276ccf VZ |
2973 | no_cache=0 |
2974 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2975 | if test "${enable_compat20+set}" = set; then | |
2976 | enableval="$enable_compat20" | |
a0b9e27f | 2977 | |
54276ccf VZ |
2978 | if test "$enableval" = yes; then |
2979 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2980 | else | |
2981 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2982 | fi | |
a0b9e27f | 2983 | |
54276ccf | 2984 | else |
a0b9e27f | 2985 | |
54276ccf VZ |
2986 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
2987 | if test "x$LINE" != x ; then | |
2988 | eval "DEFAULT_$LINE" | |
2989 | else | |
2990 | no_cache=1 | |
2991 | fi | |
2992 | ||
2993 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
a0b9e27f MB |
2994 | |
2995 | fi | |
54276ccf VZ |
2996 | |
2997 | ||
2998 | eval "$ac_cv_use_compat20" | |
2999 | if test "$no_cache" != 1; then | |
3000 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3001 | fi | |
3002 | ||
3003 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
a0b9e27f | 3004 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3005 | else |
a0b9e27f | 3006 | echo "$ac_t""no" 1>&6 |
54276ccf | 3007 | fi |
a0b9e27f | 3008 | |
54276ccf | 3009 | |
5005acfe VZ |
3010 | enablestring=disable |
3011 | echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6 | |
2b5f62a0 | 3012 | echo "configure:3013: checking for --${enablestring:-enable}-compat22" >&5 |
54276ccf VZ |
3013 | no_cache=0 |
3014 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3015 | if test "${enable_compat22+set}" = set; then | |
3016 | enableval="$enable_compat22" | |
a0b9e27f | 3017 | |
54276ccf VZ |
3018 | if test "$enableval" = yes; then |
3019 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3020 | else | |
3021 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3022 | fi | |
a0b9e27f | 3023 | |
54276ccf | 3024 | else |
a0b9e27f | 3025 | |
54276ccf VZ |
3026 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3027 | if test "x$LINE" != x ; then | |
3028 | eval "DEFAULT_$LINE" | |
3029 | else | |
3030 | no_cache=1 | |
3031 | fi | |
3032 | ||
3033 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
a0b9e27f MB |
3034 | |
3035 | fi | |
54276ccf VZ |
3036 | |
3037 | ||
3038 | eval "$ac_cv_use_compat22" | |
3039 | if test "$no_cache" != 1; then | |
3040 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3041 | fi | |
3042 | ||
3043 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
a0b9e27f | 3044 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3045 | else |
a0b9e27f | 3046 | echo "$ac_t""no" 1>&6 |
54276ccf | 3047 | fi |
a0b9e27f | 3048 | |
54276ccf | 3049 | |
3bd8fb5f RD |
3050 | # Check whether --enable-rpath or --disable-rpath was given. |
3051 | if test "${enable_rpath+set}" = set; then | |
3052 | enableval="$enable_rpath" | |
3053 | wxRPATH_DIR="$enableval" | |
a0b9e27f MB |
3054 | fi |
3055 | ||
3bd8fb5f RD |
3056 | |
3057 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3058 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3059 | fi | |
3060 | ||
8284b0c5 MB |
3061 | |
3062 | ||
3063 | ||
5005acfe VZ |
3064 | enablestring= |
3065 | echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6 | |
2b5f62a0 | 3066 | echo "configure:3067: checking for --${enablestring:-enable}-intl" >&5 |
10f2d63a VZ |
3067 | no_cache=0 |
3068 | # Check whether --enable-intl or --disable-intl was given. | |
3069 | if test "${enable_intl+set}" = set; then | |
3070 | enableval="$enable_intl" | |
a0b9e27f | 3071 | |
10f2d63a VZ |
3072 | if test "$enableval" = yes; then |
3073 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3074 | else | |
3075 | ac_cv_use_intl='wxUSE_INTL=no' | |
3076 | fi | |
a0b9e27f | 3077 | |
10f2d63a | 3078 | else |
a0b9e27f | 3079 | |
10f2d63a VZ |
3080 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3081 | if test "x$LINE" != x ; then | |
3082 | eval "DEFAULT_$LINE" | |
3083 | else | |
3084 | no_cache=1 | |
3085 | fi | |
3086 | ||
3087 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
a0b9e27f MB |
3088 | |
3089 | fi | |
10f2d63a VZ |
3090 | |
3091 | ||
3092 | eval "$ac_cv_use_intl" | |
3093 | if test "$no_cache" != 1; then | |
3094 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3095 | fi | |
3096 | ||
3097 | if test "$wxUSE_INTL" = yes; then | |
a0b9e27f | 3098 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3099 | else |
a0b9e27f | 3100 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3101 | fi |
a0b9e27f | 3102 | |
10f2d63a | 3103 | |
5005acfe VZ |
3104 | enablestring= |
3105 | echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6 | |
2b5f62a0 | 3106 | echo "configure:3107: checking for --${enablestring:-enable}-config" >&5 |
10f2d63a VZ |
3107 | no_cache=0 |
3108 | # Check whether --enable-config or --disable-config was given. | |
3109 | if test "${enable_config+set}" = set; then | |
3110 | enableval="$enable_config" | |
a0b9e27f | 3111 | |
10f2d63a VZ |
3112 | if test "$enableval" = yes; then |
3113 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3114 | else | |
3115 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3116 | fi | |
a0b9e27f | 3117 | |
10f2d63a | 3118 | else |
a0b9e27f | 3119 | |
10f2d63a VZ |
3120 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3121 | if test "x$LINE" != x ; then | |
3122 | eval "DEFAULT_$LINE" | |
3123 | else | |
3124 | no_cache=1 | |
3125 | fi | |
3126 | ||
3127 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
a0b9e27f MB |
3128 | |
3129 | fi | |
10f2d63a VZ |
3130 | |
3131 | ||
3132 | eval "$ac_cv_use_config" | |
3133 | if test "$no_cache" != 1; then | |
3134 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3135 | fi | |
3136 | ||
3137 | if test "$wxUSE_CONFIG" = yes; then | |
a0b9e27f | 3138 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3139 | else |
a0b9e27f | 3140 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3141 | fi |
a0b9e27f | 3142 | |
52127426 | 3143 | |
8284b0c5 | 3144 | |
5005acfe VZ |
3145 | enablestring= |
3146 | echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6 | |
2b5f62a0 | 3147 | echo "configure:3148: checking for --${enablestring:-enable}-protocols" >&5 |
a1622950 VZ |
3148 | no_cache=0 |
3149 | # Check whether --enable-protocols or --disable-protocols was given. | |
3150 | if test "${enable_protocols+set}" = set; then | |
3151 | enableval="$enable_protocols" | |
a0b9e27f | 3152 | |
a1622950 VZ |
3153 | if test "$enableval" = yes; then |
3154 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3155 | else | |
3156 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3157 | fi | |
a0b9e27f | 3158 | |
a1622950 | 3159 | else |
a0b9e27f | 3160 | |
a1622950 VZ |
3161 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3162 | if test "x$LINE" != x ; then | |
3163 | eval "DEFAULT_$LINE" | |
3164 | else | |
3165 | no_cache=1 | |
3166 | fi | |
3167 | ||
3168 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
3169 | |
3170 | fi | |
a1622950 VZ |
3171 | |
3172 | ||
3173 | eval "$ac_cv_use_protocols" | |
3174 | if test "$no_cache" != 1; then | |
3175 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3176 | fi | |
3177 | ||
3178 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 3179 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3180 | else |
a0b9e27f | 3181 | echo "$ac_t""no" 1>&6 |
a1622950 | 3182 | fi |
a0b9e27f | 3183 | |
a1622950 | 3184 | |
5005acfe VZ |
3185 | enablestring= |
3186 | echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6 | |
2b5f62a0 | 3187 | echo "configure:3188: checking for --${enablestring:-enable}-ftp" >&5 |
a1622950 VZ |
3188 | no_cache=0 |
3189 | # Check whether --enable-ftp or --disable-ftp was given. | |
3190 | if test "${enable_ftp+set}" = set; then | |
3191 | enableval="$enable_ftp" | |
a0b9e27f | 3192 | |
a1622950 VZ |
3193 | if test "$enableval" = yes; then |
3194 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3195 | else | |
3196 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3197 | fi | |
a0b9e27f | 3198 | |
a1622950 | 3199 | else |
a0b9e27f | 3200 | |
a1622950 VZ |
3201 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3202 | if test "x$LINE" != x ; then | |
3203 | eval "DEFAULT_$LINE" | |
3204 | else | |
3205 | no_cache=1 | |
3206 | fi | |
3207 | ||
3208 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
3209 | |
3210 | fi | |
a1622950 VZ |
3211 | |
3212 | ||
3213 | eval "$ac_cv_use_ftp" | |
3214 | if test "$no_cache" != 1; then | |
3215 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3216 | fi | |
3217 | ||
3218 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 3219 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3220 | else |
a0b9e27f | 3221 | echo "$ac_t""no" 1>&6 |
a1622950 | 3222 | fi |
a0b9e27f | 3223 | |
a1622950 | 3224 | |
5005acfe VZ |
3225 | enablestring= |
3226 | echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6 | |
2b5f62a0 | 3227 | echo "configure:3228: checking for --${enablestring:-enable}-http" >&5 |
a1622950 VZ |
3228 | no_cache=0 |
3229 | # Check whether --enable-http or --disable-http was given. | |
3230 | if test "${enable_http+set}" = set; then | |
3231 | enableval="$enable_http" | |
a0b9e27f | 3232 | |
a1622950 VZ |
3233 | if test "$enableval" = yes; then |
3234 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3235 | else | |
3236 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3237 | fi | |
a0b9e27f | 3238 | |
a1622950 | 3239 | else |
a0b9e27f | 3240 | |
a1622950 VZ |
3241 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3242 | if test "x$LINE" != x ; then | |
3243 | eval "DEFAULT_$LINE" | |
3244 | else | |
3245 | no_cache=1 | |
3246 | fi | |
3247 | ||
3248 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
3249 | |
3250 | fi | |
a1622950 VZ |
3251 | |
3252 | ||
3253 | eval "$ac_cv_use_http" | |
3254 | if test "$no_cache" != 1; then | |
3255 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3256 | fi | |
3257 | ||
3258 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 3259 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3260 | else |
a0b9e27f | 3261 | echo "$ac_t""no" 1>&6 |
a1622950 | 3262 | fi |
a0b9e27f | 3263 | |
a1622950 | 3264 | |
5005acfe VZ |
3265 | enablestring= |
3266 | echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6 | |
2b5f62a0 | 3267 | echo "configure:3268: checking for --${enablestring:-enable}-fileproto" >&5 |
a1622950 VZ |
3268 | no_cache=0 |
3269 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3270 | if test "${enable_fileproto+set}" = set; then | |
3271 | enableval="$enable_fileproto" | |
a0b9e27f | 3272 | |
a1622950 VZ |
3273 | if test "$enableval" = yes; then |
3274 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3275 | else | |
3276 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3277 | fi | |
a0b9e27f | 3278 | |
a1622950 | 3279 | else |
a0b9e27f | 3280 | |
a1622950 VZ |
3281 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3282 | if test "x$LINE" != x ; then | |
3283 | eval "DEFAULT_$LINE" | |
3284 | else | |
3285 | no_cache=1 | |
3286 | fi | |
3287 | ||
3288 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
3289 | |
3290 | fi | |
a1622950 VZ |
3291 | |
3292 | ||
3293 | eval "$ac_cv_use_fileproto" | |
3294 | if test "$no_cache" != 1; then | |
3295 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3296 | fi | |
3297 | ||
3298 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 3299 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3300 | else |
a0b9e27f | 3301 | echo "$ac_t""no" 1>&6 |
a1622950 | 3302 | fi |
a0b9e27f | 3303 | |
a1622950 | 3304 | |
5005acfe VZ |
3305 | enablestring= |
3306 | echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6 | |
2b5f62a0 | 3307 | echo "configure:3308: checking for --${enablestring:-enable}-sockets" >&5 |
10f2d63a VZ |
3308 | no_cache=0 |
3309 | # Check whether --enable-sockets or --disable-sockets was given. | |
3310 | if test "${enable_sockets+set}" = set; then | |
3311 | enableval="$enable_sockets" | |
a0b9e27f | 3312 | |
10f2d63a VZ |
3313 | if test "$enableval" = yes; then |
3314 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3315 | else | |
3316 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3317 | fi | |
a0b9e27f | 3318 | |
10f2d63a | 3319 | else |
a0b9e27f | 3320 | |
10f2d63a VZ |
3321 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3322 | if test "x$LINE" != x ; then | |
3323 | eval "DEFAULT_$LINE" | |
3324 | else | |
3325 | no_cache=1 | |
3326 | fi | |
3327 | ||
3328 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
a0b9e27f MB |
3329 | |
3330 | fi | |
10f2d63a VZ |
3331 | |
3332 | ||
3333 | eval "$ac_cv_use_sockets" | |
3334 | if test "$no_cache" != 1; then | |
3335 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3336 | fi | |
3337 | ||
3338 | if test "$wxUSE_SOCKETS" = yes; then | |
a0b9e27f | 3339 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3340 | else |
a0b9e27f | 3341 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3342 | fi |
a0b9e27f | 3343 | |
8284b0c5 | 3344 | |
5005acfe VZ |
3345 | enablestring= |
3346 | echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6 | |
2b5f62a0 | 3347 | echo "configure:3348: checking for --${enablestring:-enable}-ole" >&5 |
3bce6687 JS |
3348 | no_cache=0 |
3349 | # Check whether --enable-ole or --disable-ole was given. | |
3350 | if test "${enable_ole+set}" = set; then | |
3351 | enableval="$enable_ole" | |
3352 | ||
3353 | if test "$enableval" = yes; then | |
3354 | ac_cv_use_ole='wxUSE_OLE=yes' | |
3355 | else | |
3356 | ac_cv_use_ole='wxUSE_OLE=no' | |
3357 | fi | |
3358 | ||
3359 | else | |
3360 | ||
3361 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
3362 | if test "x$LINE" != x ; then | |
3363 | eval "DEFAULT_$LINE" | |
3364 | else | |
3365 | no_cache=1 | |
3366 | fi | |
3367 | ||
3368 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3369 | ||
3370 | fi | |
3371 | ||
3372 | ||
3373 | eval "$ac_cv_use_ole" | |
3374 | if test "$no_cache" != 1; then | |
3375 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
3376 | fi | |
3377 | ||
3378 | if test "$wxUSE_OLE" = yes; then | |
3379 | echo "$ac_t""yes" 1>&6 | |
3380 | else | |
3381 | echo "$ac_t""no" 1>&6 | |
3382 | fi | |
3383 | ||
3384 | ||
5005acfe VZ |
3385 | enablestring= |
3386 | echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6 | |
2b5f62a0 | 3387 | echo "configure:3388: checking for --${enablestring:-enable}-dataobj" >&5 |
3bce6687 JS |
3388 | no_cache=0 |
3389 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
3390 | if test "${enable_dataobj+set}" = set; then | |
3391 | enableval="$enable_dataobj" | |
3392 | ||
3393 | if test "$enableval" = yes; then | |
3394 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
3395 | else | |
3396 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
3397 | fi | |
3398 | ||
3399 | else | |
3400 | ||
3401 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
3402 | if test "x$LINE" != x ; then | |
3403 | eval "DEFAULT_$LINE" | |
3404 | else | |
3405 | no_cache=1 | |
3406 | fi | |
3407 | ||
3408 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3409 | ||
3410 | fi | |
3411 | ||
3412 | ||
3413 | eval "$ac_cv_use_dataobj" | |
3414 | if test "$no_cache" != 1; then | |
3415 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
3416 | fi | |
3417 | ||
3418 | if test "$wxUSE_DATAOBJ" = yes; then | |
3419 | echo "$ac_t""yes" 1>&6 | |
3420 | else | |
3421 | echo "$ac_t""no" 1>&6 | |
3422 | fi | |
3423 | ||
3424 | ||
52127426 | 3425 | |
5005acfe VZ |
3426 | enablestring= |
3427 | echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6 | |
2b5f62a0 | 3428 | echo "configure:3429: checking for --${enablestring:-enable}-ipc" >&5 |
10f2d63a | 3429 | no_cache=0 |
eb4efbdc VZ |
3430 | # Check whether --enable-ipc or --disable-ipc was given. |
3431 | if test "${enable_ipc+set}" = set; then | |
3432 | enableval="$enable_ipc" | |
a0b9e27f | 3433 | |
10f2d63a | 3434 | if test "$enableval" = yes; then |
eb4efbdc | 3435 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3436 | else |
eb4efbdc | 3437 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3438 | fi |
a0b9e27f | 3439 | |
10f2d63a | 3440 | else |
a0b9e27f | 3441 | |
eb4efbdc | 3442 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3443 | if test "x$LINE" != x ; then |
3444 | eval "DEFAULT_$LINE" | |
3445 | else | |
3446 | no_cache=1 | |
3447 | fi | |
3448 | ||
eb4efbdc | 3449 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
a0b9e27f MB |
3450 | |
3451 | fi | |
10f2d63a VZ |
3452 | |
3453 | ||
eb4efbdc | 3454 | eval "$ac_cv_use_ipc" |
10f2d63a | 3455 | if test "$no_cache" != 1; then |
eb4efbdc | 3456 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3457 | fi |
3458 | ||
eb4efbdc | 3459 | if test "$wxUSE_IPC" = yes; then |
a0b9e27f | 3460 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3461 | else |
a0b9e27f | 3462 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3463 | fi |
a0b9e27f | 3464 | |
52127426 | 3465 | |
8284b0c5 | 3466 | |
5005acfe VZ |
3467 | enablestring= |
3468 | echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6 | |
2b5f62a0 | 3469 | echo "configure:3470: checking for --${enablestring:-enable}-cmdline" >&5 |
1e6feb95 VZ |
3470 | no_cache=0 |
3471 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3472 | if test "${enable_cmdline+set}" = set; then | |
3473 | enableval="$enable_cmdline" | |
a0b9e27f | 3474 | |
1e6feb95 VZ |
3475 | if test "$enableval" = yes; then |
3476 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3477 | else | |
3478 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3479 | fi | |
a0b9e27f | 3480 | |
1e6feb95 | 3481 | else |
a0b9e27f | 3482 | |
1e6feb95 VZ |
3483 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3484 | if test "x$LINE" != x ; then | |
3485 | eval "DEFAULT_$LINE" | |
3486 | else | |
3487 | no_cache=1 | |
3488 | fi | |
3489 | ||
3490 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
a0b9e27f MB |
3491 | |
3492 | fi | |
1e6feb95 VZ |
3493 | |
3494 | ||
3495 | eval "$ac_cv_use_cmdline" | |
3496 | if test "$no_cache" != 1; then | |
3497 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3498 | fi | |
3499 | ||
3500 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
a0b9e27f | 3501 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3502 | else |
a0b9e27f | 3503 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3504 | fi |
a0b9e27f | 3505 | |
1e6feb95 | 3506 | |
5005acfe VZ |
3507 | enablestring= |
3508 | echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6 | |
2b5f62a0 | 3509 | echo "configure:3510: checking for --${enablestring:-enable}-datetime" >&5 |
1e6feb95 VZ |
3510 | no_cache=0 |
3511 | # Check whether --enable-datetime or --disable-datetime was given. | |
3512 | if test "${enable_datetime+set}" = set; then | |
3513 | enableval="$enable_datetime" | |
a0b9e27f | 3514 | |
1e6feb95 VZ |
3515 | if test "$enableval" = yes; then |
3516 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3517 | else | |
3518 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3519 | fi | |
a0b9e27f | 3520 | |
1e6feb95 | 3521 | else |
a0b9e27f | 3522 | |
1e6feb95 VZ |
3523 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3524 | if test "x$LINE" != x ; then | |
3525 | eval "DEFAULT_$LINE" | |
3526 | else | |
3527 | no_cache=1 | |
3528 | fi | |
3529 | ||
3530 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
a0b9e27f MB |
3531 | |
3532 | fi | |
1e6feb95 VZ |
3533 | |
3534 | ||
3535 | eval "$ac_cv_use_datetime" | |
3536 | if test "$no_cache" != 1; then | |
3537 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3538 | fi | |
3539 | ||
3540 | if test "$wxUSE_DATETIME" = yes; then | |
a0b9e27f | 3541 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3542 | else |
a0b9e27f | 3543 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3544 | fi |
a0b9e27f | 3545 | |
1e6feb95 | 3546 | |
5005acfe VZ |
3547 | enablestring= |
3548 | echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6 | |
2b5f62a0 | 3549 | echo "configure:3550: checking for --${enablestring:-enable}-timedate" >&5 |
1e6feb95 VZ |
3550 | no_cache=0 |
3551 | # Check whether --enable-timedate or --disable-timedate was given. | |
3552 | if test "${enable_timedate+set}" = set; then | |
3553 | enableval="$enable_timedate" | |
a0b9e27f | 3554 | |
1e6feb95 VZ |
3555 | if test "$enableval" = yes; then |
3556 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3557 | else | |
3558 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3559 | fi | |
a0b9e27f | 3560 | |
1e6feb95 | 3561 | else |
a0b9e27f | 3562 | |
1e6feb95 VZ |
3563 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` |
3564 | if test "x$LINE" != x ; then | |
3565 | eval "DEFAULT_$LINE" | |
3566 | else | |
3567 | no_cache=1 | |
3568 | fi | |
3569 | ||
3570 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
a0b9e27f MB |
3571 | |
3572 | fi | |
1e6feb95 VZ |
3573 | |
3574 | ||
3575 | eval "$ac_cv_use_timedate" | |
3576 | if test "$no_cache" != 1; then | |
3577 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3578 | fi | |
3579 | ||
3580 | if test "$wxUSE_TIMEDATE" = yes; then | |
a0b9e27f | 3581 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3582 | else |
a0b9e27f | 3583 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3584 | fi |
a0b9e27f | 3585 | |
1e6feb95 | 3586 | |
5005acfe VZ |
3587 | enablestring= |
3588 | echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6 | |
2b5f62a0 | 3589 | echo "configure:3590: checking for --${enablestring:-enable}-stopwatch" >&5 |
1e6feb95 VZ |
3590 | no_cache=0 |
3591 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3592 | if test "${enable_stopwatch+set}" = set; then | |
3593 | enableval="$enable_stopwatch" | |
a0b9e27f | 3594 | |
1e6feb95 VZ |
3595 | if test "$enableval" = yes; then |
3596 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3597 | else | |
3598 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3599 | fi | |
a0b9e27f | 3600 | |
1e6feb95 | 3601 | else |
a0b9e27f | 3602 | |
1e6feb95 VZ |
3603 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3604 | if test "x$LINE" != x ; then | |
3605 | eval "DEFAULT_$LINE" | |
3606 | else | |
3607 | no_cache=1 | |
3608 | fi | |
3609 | ||
3610 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
a0b9e27f MB |
3611 | |
3612 | fi | |
1e6feb95 VZ |
3613 | |
3614 | ||
3615 | eval "$ac_cv_use_stopwatch" | |
3616 | if test "$no_cache" != 1; then | |
3617 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3618 | fi | |
3619 | ||
3620 | if test "$wxUSE_STOPWATCH" = yes; then | |
a0b9e27f | 3621 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3622 | else |
a0b9e27f | 3623 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3624 | fi |
a0b9e27f | 3625 | |
1e6feb95 | 3626 | |
5005acfe VZ |
3627 | enablestring= |
3628 | echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6 | |
2b5f62a0 | 3629 | echo "configure:3630: checking for --${enablestring:-enable}-dialupman" >&5 |
10f2d63a | 3630 | no_cache=0 |
eb4efbdc VZ |
3631 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3632 | if test "${enable_dialupman+set}" = set; then | |
3633 | enableval="$enable_dialupman" | |
a0b9e27f | 3634 | |
10f2d63a | 3635 | if test "$enableval" = yes; then |
eb4efbdc | 3636 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3637 | else |
eb4efbdc | 3638 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3639 | fi |
a0b9e27f | 3640 | |
10f2d63a | 3641 | else |
a0b9e27f | 3642 | |
eb4efbdc | 3643 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3644 | if test "x$LINE" != x ; then |
3645 | eval "DEFAULT_$LINE" | |
3646 | else | |
3647 | no_cache=1 | |
3648 | fi | |
3649 | ||
eb4efbdc | 3650 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
a0b9e27f MB |
3651 | |
3652 | fi | |
10f2d63a VZ |
3653 | |
3654 | ||
eb4efbdc | 3655 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3656 | if test "$no_cache" != 1; then |
eb4efbdc | 3657 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3658 | fi |
3659 | ||
eb4efbdc | 3660 | if test "$wxUSE_DIALUP_MANAGER" = 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 | |
5005acfe VZ |
3667 | enablestring= |
3668 | echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6 | |
2b5f62a0 | 3669 | echo "configure:3670: checking for --${enablestring:-enable}-apple_ieee" >&5 |
10f2d63a VZ |
3670 | no_cache=0 |
3671 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3672 | if test "${enable_apple_ieee+set}" = set; then | |
3673 | enableval="$enable_apple_ieee" | |
a0b9e27f | 3674 | |
10f2d63a VZ |
3675 | if test "$enableval" = yes; then |
3676 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3677 | else | |
3678 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3679 | fi | |
a0b9e27f | 3680 | |
10f2d63a | 3681 | else |
a0b9e27f | 3682 | |
10f2d63a VZ |
3683 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3684 | if test "x$LINE" != x ; then | |
3685 | eval "DEFAULT_$LINE" | |
3686 | else | |
3687 | no_cache=1 | |
3688 | fi | |
3689 | ||
3690 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
a0b9e27f MB |
3691 | |
3692 | fi | |
10f2d63a VZ |
3693 | |
3694 | ||
3695 | eval "$ac_cv_use_apple_ieee" | |
3696 | if test "$no_cache" != 1; then | |
3697 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3698 | fi | |
3699 | ||
3700 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
a0b9e27f | 3701 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3702 | else |
a0b9e27f | 3703 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3704 | fi |
a0b9e27f | 3705 | |
10f2d63a | 3706 | |
5005acfe VZ |
3707 | enablestring= |
3708 | echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6 | |
2b5f62a0 | 3709 | echo "configure:3710: checking for --${enablestring:-enable}-timer" >&5 |
10f2d63a | 3710 | no_cache=0 |
1e6feb95 VZ |
3711 | # Check whether --enable-timer or --disable-timer was given. |
3712 | if test "${enable_timer+set}" = set; then | |
3713 | enableval="$enable_timer" | |
a0b9e27f | 3714 | |
10f2d63a | 3715 | if test "$enableval" = yes; then |
1e6feb95 | 3716 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3717 | else |
1e6feb95 | 3718 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3719 | fi |
a0b9e27f | 3720 | |
10f2d63a | 3721 | else |
a0b9e27f | 3722 | |
1e6feb95 | 3723 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3724 | if test "x$LINE" != x ; then |
3725 | eval "DEFAULT_$LINE" | |
3726 | else | |
3727 | no_cache=1 | |
3728 | fi | |
3729 | ||
1e6feb95 | 3730 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
a0b9e27f MB |
3731 | |
3732 | fi | |
10f2d63a VZ |
3733 | |
3734 | ||
1e6feb95 | 3735 | eval "$ac_cv_use_timer" |
10f2d63a | 3736 | if test "$no_cache" != 1; then |
1e6feb95 | 3737 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3738 | fi |
3739 | ||
1e6feb95 | 3740 | if test "$wxUSE_TIMER" = yes; then |
a0b9e27f | 3741 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3742 | else |
a0b9e27f | 3743 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3744 | fi |
a0b9e27f | 3745 | |
10f2d63a | 3746 | |
5005acfe VZ |
3747 | enablestring= |
3748 | echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6 | |
2b5f62a0 | 3749 | echo "configure:3750: checking for --${enablestring:-enable}-wave" >&5 |
10f2d63a VZ |
3750 | no_cache=0 |
3751 | # Check whether --enable-wave or --disable-wave was given. | |
3752 | if test "${enable_wave+set}" = set; then | |
3753 | enableval="$enable_wave" | |
a0b9e27f | 3754 | |
10f2d63a VZ |
3755 | if test "$enableval" = yes; then |
3756 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3757 | else | |
3758 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3759 | fi | |
a0b9e27f | 3760 | |
10f2d63a | 3761 | else |
a0b9e27f | 3762 | |
10f2d63a VZ |
3763 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3764 | if test "x$LINE" != x ; then | |
3765 | eval "DEFAULT_$LINE" | |
3766 | else | |
3767 | no_cache=1 | |
3768 | fi | |
3769 | ||
3770 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
a0b9e27f MB |
3771 | |
3772 | fi | |
10f2d63a VZ |
3773 | |
3774 | ||
3775 | eval "$ac_cv_use_wave" | |
3776 | if test "$no_cache" != 1; then | |
3777 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3778 | fi | |
3779 | ||
3780 | if test "$wxUSE_WAVE" = yes; then | |
a0b9e27f | 3781 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3782 | else |
a0b9e27f | 3783 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3784 | fi |
a0b9e27f | 3785 | |
10f2d63a | 3786 | |
5005acfe VZ |
3787 | enablestring= |
3788 | echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6 | |
2b5f62a0 | 3789 | echo "configure:3790: checking for --${enablestring:-enable}-fraction" >&5 |
10f2d63a VZ |
3790 | no_cache=0 |
3791 | # Check whether --enable-fraction or --disable-fraction was given. | |
3792 | if test "${enable_fraction+set}" = set; then | |
3793 | enableval="$enable_fraction" | |
a0b9e27f | 3794 | |
10f2d63a VZ |
3795 | if test "$enableval" = yes; then |
3796 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3797 | else | |
3798 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3799 | fi | |
a0b9e27f | 3800 | |
10f2d63a | 3801 | else |
a0b9e27f | 3802 | |
10f2d63a VZ |
3803 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3804 | if test "x$LINE" != x ; then | |
3805 | eval "DEFAULT_$LINE" | |
3806 | else | |
3807 | no_cache=1 | |
3808 | fi | |
3809 | ||
3810 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
a0b9e27f MB |
3811 | |
3812 | fi | |
10f2d63a VZ |
3813 | |
3814 | ||
3815 | eval "$ac_cv_use_fraction" | |
3816 | if test "$no_cache" != 1; then | |
3817 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3818 | fi | |
3819 | ||
3820 | if test "$wxUSE_FRACTION" = yes; then | |
a0b9e27f | 3821 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3822 | else |
a0b9e27f | 3823 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3824 | fi |
a0b9e27f | 3825 | |
10f2d63a | 3826 | |
5005acfe VZ |
3827 | enablestring= |
3828 | echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6 | |
2b5f62a0 | 3829 | echo "configure:3830: checking for --${enablestring:-enable}-dynlib" >&5 |
10f2d63a VZ |
3830 | no_cache=0 |
3831 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3832 | if test "${enable_dynlib+set}" = set; then | |
3833 | enableval="$enable_dynlib" | |
a0b9e27f | 3834 | |
10f2d63a VZ |
3835 | if test "$enableval" = yes; then |
3836 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3837 | else | |
3838 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3839 | fi | |
a0b9e27f | 3840 | |
10f2d63a | 3841 | else |
a0b9e27f | 3842 | |
10f2d63a VZ |
3843 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3844 | if test "x$LINE" != x ; then | |
3845 | eval "DEFAULT_$LINE" | |
3846 | else | |
3847 | no_cache=1 | |
3848 | fi | |
3849 | ||
3850 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
a0b9e27f MB |
3851 | |
3852 | fi | |
10f2d63a VZ |
3853 | |
3854 | ||
3855 | eval "$ac_cv_use_dynlib" | |
3856 | if test "$no_cache" != 1; then | |
3857 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3858 | fi | |
3859 | ||
3860 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
a0b9e27f | 3861 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3862 | else |
a0b9e27f | 3863 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3864 | fi |
a0b9e27f | 3865 | |
10f2d63a | 3866 | |
5005acfe VZ |
3867 | enablestring= |
3868 | echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6 | |
2b5f62a0 | 3869 | echo "configure:3870: checking for --${enablestring:-enable}-dynamicloader" >&5 |
0b9ab0bd RL |
3870 | no_cache=0 |
3871 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3872 | if test "${enable_dynamicloader+set}" = set; then | |
3873 | enableval="$enable_dynamicloader" | |
a0b9e27f | 3874 | |
0b9ab0bd RL |
3875 | if test "$enableval" = yes; then |
3876 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3877 | else | |
3878 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3879 | fi | |
a0b9e27f | 3880 | |
0b9ab0bd | 3881 | else |
a0b9e27f | 3882 | |
0b9ab0bd RL |
3883 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3884 | if test "x$LINE" != x ; then | |
3885 | eval "DEFAULT_$LINE" | |
3886 | else | |
3887 | no_cache=1 | |
3888 | fi | |
3889 | ||
3890 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
a0b9e27f MB |
3891 | |
3892 | fi | |
0b9ab0bd RL |
3893 | |
3894 | ||
3895 | eval "$ac_cv_use_dynamicloader" | |
3896 | if test "$no_cache" != 1; then | |
3897 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3898 | fi | |
3899 | ||
3900 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
a0b9e27f | 3901 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3902 | else |
a0b9e27f | 3903 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3904 | fi |
a0b9e27f | 3905 | |
0b9ab0bd | 3906 | |
5005acfe VZ |
3907 | enablestring= |
3908 | echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6 | |
2b5f62a0 | 3909 | echo "configure:3910: checking for --${enablestring:-enable}-longlong" >&5 |
10f2d63a VZ |
3910 | no_cache=0 |
3911 | # Check whether --enable-longlong or --disable-longlong was given. | |
3912 | if test "${enable_longlong+set}" = set; then | |
3913 | enableval="$enable_longlong" | |
a0b9e27f | 3914 | |
10f2d63a VZ |
3915 | if test "$enableval" = yes; then |
3916 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3917 | else | |
3918 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3919 | fi | |
a0b9e27f | 3920 | |
10f2d63a | 3921 | else |
a0b9e27f | 3922 | |
10f2d63a VZ |
3923 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3924 | if test "x$LINE" != x ; then | |
3925 | eval "DEFAULT_$LINE" | |
3926 | else | |
3927 | no_cache=1 | |
3928 | fi | |
3929 | ||
3930 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
a0b9e27f MB |
3931 | |
3932 | fi | |
10f2d63a VZ |
3933 | |
3934 | ||
3935 | eval "$ac_cv_use_longlong" | |
3936 | if test "$no_cache" != 1; then | |
3937 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3938 | fi | |
3939 | ||
3940 | if test "$wxUSE_LONGLONG" = yes; then | |
a0b9e27f | 3941 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3942 | else |
a0b9e27f | 3943 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3944 | fi |
a0b9e27f | 3945 | |
10f2d63a | 3946 | |
5005acfe VZ |
3947 | enablestring= |
3948 | echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6 | |
2b5f62a0 | 3949 | echo "configure:3950: checking for --${enablestring:-enable}-geometry" >&5 |
e8f65ba6 RR |
3950 | no_cache=0 |
3951 | # Check whether --enable-geometry or --disable-geometry was given. | |
3952 | if test "${enable_geometry+set}" = set; then | |
3953 | enableval="$enable_geometry" | |
a0b9e27f | 3954 | |
e8f65ba6 RR |
3955 | if test "$enableval" = yes; then |
3956 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3957 | else | |
3958 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3959 | fi | |
a0b9e27f | 3960 | |
e8f65ba6 | 3961 | else |
a0b9e27f | 3962 | |
e8f65ba6 RR |
3963 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3964 | if test "x$LINE" != x ; then | |
3965 | eval "DEFAULT_$LINE" | |
3966 | else | |
3967 | no_cache=1 | |
3968 | fi | |
3969 | ||
3970 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
a0b9e27f MB |
3971 | |
3972 | fi | |
e8f65ba6 RR |
3973 | |
3974 | ||
3975 | eval "$ac_cv_use_geometry" | |
3976 | if test "$no_cache" != 1; then | |
3977 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3978 | fi | |
3979 | ||
3980 | if test "$wxUSE_GEOMETRY" = yes; then | |
a0b9e27f | 3981 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3982 | else |
a0b9e27f | 3983 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3984 | fi |
a0b9e27f | 3985 | |
e8f65ba6 | 3986 | |
5005acfe VZ |
3987 | enablestring= |
3988 | echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6 | |
2b5f62a0 | 3989 | echo "configure:3990: checking for --${enablestring:-enable}-log" >&5 |
10f2d63a VZ |
3990 | no_cache=0 |
3991 | # Check whether --enable-log or --disable-log was given. | |
3992 | if test "${enable_log+set}" = set; then | |
3993 | enableval="$enable_log" | |
a0b9e27f | 3994 | |
10f2d63a VZ |
3995 | if test "$enableval" = yes; then |
3996 | ac_cv_use_log='wxUSE_LOG=yes' | |
3997 | else | |
3998 | ac_cv_use_log='wxUSE_LOG=no' | |
3999 | fi | |
a0b9e27f | 4000 | |
10f2d63a | 4001 | else |
a0b9e27f | 4002 | |
10f2d63a VZ |
4003 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4004 | if test "x$LINE" != x ; then | |
4005 | eval "DEFAULT_$LINE" | |
4006 | else | |
4007 | no_cache=1 | |
4008 | fi | |
4009 | ||
4010 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
a0b9e27f MB |
4011 | |
4012 | fi | |
10f2d63a VZ |
4013 | |
4014 | ||
4015 | eval "$ac_cv_use_log" | |
4016 | if test "$no_cache" != 1; then | |
4017 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4018 | fi | |
4019 | ||
4020 | if test "$wxUSE_LOG" = yes; then | |
a0b9e27f | 4021 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4022 | else |
a0b9e27f | 4023 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4024 | fi |
a0b9e27f | 4025 | |
10f2d63a | 4026 | |
5005acfe VZ |
4027 | enablestring= |
4028 | echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6 | |
2b5f62a0 | 4029 | echo "configure:4030: checking for --${enablestring:-enable}-streams" >&5 |
10f2d63a VZ |
4030 | no_cache=0 |
4031 | # Check whether --enable-streams or --disable-streams was given. | |
4032 | if test "${enable_streams+set}" = set; then | |
4033 | enableval="$enable_streams" | |
a0b9e27f | 4034 | |
10f2d63a VZ |
4035 | if test "$enableval" = yes; then |
4036 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4037 | else | |
4038 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4039 | fi | |
a0b9e27f | 4040 | |
10f2d63a | 4041 | else |
a0b9e27f | 4042 | |
10f2d63a VZ |
4043 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4044 | if test "x$LINE" != x ; then | |
4045 | eval "DEFAULT_$LINE" | |
4046 | else | |
4047 | no_cache=1 | |
4048 | fi | |
4049 | ||
4050 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
a0b9e27f MB |
4051 | |
4052 | fi | |
10f2d63a VZ |
4053 | |
4054 | ||
4055 | eval "$ac_cv_use_streams" | |
4056 | if test "$no_cache" != 1; then | |
4057 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4058 | fi | |
4059 | ||
4060 | if test "$wxUSE_STREAMS" = yes; then | |
a0b9e27f | 4061 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4062 | else |
a0b9e27f | 4063 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4064 | fi |
a0b9e27f | 4065 | |
10f2d63a | 4066 | |
5005acfe VZ |
4067 | enablestring= |
4068 | echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6 | |
2b5f62a0 | 4069 | echo "configure:4070: checking for --${enablestring:-enable}-file" >&5 |
10f2d63a VZ |
4070 | no_cache=0 |
4071 | # Check whether --enable-file or --disable-file was given. | |
4072 | if test "${enable_file+set}" = set; then | |
4073 | enableval="$enable_file" | |
a0b9e27f | 4074 | |
10f2d63a VZ |
4075 | if test "$enableval" = yes; then |
4076 | ac_cv_use_file='wxUSE_FILE=yes' | |
4077 | else | |
4078 | ac_cv_use_file='wxUSE_FILE=no' | |
4079 | fi | |
a0b9e27f | 4080 | |
10f2d63a | 4081 | else |
a0b9e27f | 4082 | |
10f2d63a VZ |
4083 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4084 | if test "x$LINE" != x ; then | |
4085 | eval "DEFAULT_$LINE" | |
4086 | else | |
4087 | no_cache=1 | |
4088 | fi | |
4089 | ||
4090 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
a0b9e27f MB |
4091 | |
4092 | fi | |
10f2d63a VZ |
4093 | |
4094 | ||
4095 | eval "$ac_cv_use_file" | |
4096 | if test "$no_cache" != 1; then | |
4097 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4098 | fi | |
4099 | ||
4100 | if test "$wxUSE_FILE" = yes; then | |
a0b9e27f | 4101 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4102 | else |
a0b9e27f | 4103 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4104 | fi |
a0b9e27f | 4105 | |
10f2d63a | 4106 | |
5005acfe VZ |
4107 | enablestring= |
4108 | echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6 | |
2b5f62a0 | 4109 | echo "configure:4110: checking for --${enablestring:-enable}-ffile" >&5 |
10f2d63a | 4110 | no_cache=0 |
1e6feb95 VZ |
4111 | # Check whether --enable-ffile or --disable-ffile was given. |
4112 | if test "${enable_ffile+set}" = set; then | |
4113 | enableval="$enable_ffile" | |
a0b9e27f | 4114 | |
10f2d63a | 4115 | if test "$enableval" = yes; then |
1e6feb95 | 4116 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4117 | else |
1e6feb95 | 4118 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4119 | fi |
a0b9e27f | 4120 | |
10f2d63a | 4121 | else |
a0b9e27f | 4122 | |
1e6feb95 | 4123 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4124 | if test "x$LINE" != x ; then |
4125 | eval "DEFAULT_$LINE" | |
4126 | else | |
4127 | no_cache=1 | |
4128 | fi | |
4129 | ||
1e6feb95 | 4130 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
a0b9e27f MB |
4131 | |
4132 | fi | |
10f2d63a VZ |
4133 | |
4134 | ||
1e6feb95 | 4135 | eval "$ac_cv_use_ffile" |
10f2d63a | 4136 | if test "$no_cache" != 1; then |
1e6feb95 | 4137 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4138 | fi |
4139 | ||
1e6feb95 | 4140 | if test "$wxUSE_FFILE" = yes; then |
a0b9e27f | 4141 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4142 | else |
a0b9e27f | 4143 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4144 | fi |
a0b9e27f | 4145 | |
10f2d63a | 4146 | |
5005acfe VZ |
4147 | enablestring= |
4148 | echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6 | |
2b5f62a0 | 4149 | echo "configure:4150: checking for --${enablestring:-enable}-textbuf" >&5 |
a3a584a7 VZ |
4150 | no_cache=0 |
4151 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4152 | if test "${enable_textbuf+set}" = set; then | |
4153 | enableval="$enable_textbuf" | |
a0b9e27f | 4154 | |
a3a584a7 VZ |
4155 | if test "$enableval" = yes; then |
4156 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4157 | else | |
4158 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4159 | fi | |
a0b9e27f | 4160 | |
a3a584a7 | 4161 | else |
a0b9e27f | 4162 | |
a3a584a7 VZ |
4163 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4164 | if test "x$LINE" != x ; then | |
4165 | eval "DEFAULT_$LINE" | |
4166 | else | |
4167 | no_cache=1 | |
4168 | fi | |
4169 | ||
4170 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a0b9e27f MB |
4171 | |
4172 | fi | |
a3a584a7 VZ |
4173 | |
4174 | ||
4175 | eval "$ac_cv_use_textbuf" | |
4176 | if test "$no_cache" != 1; then | |
4177 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4178 | fi | |
4179 | ||
4180 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
a0b9e27f | 4181 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4182 | else |
a0b9e27f | 4183 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4184 | fi |
a0b9e27f | 4185 | |
a3a584a7 | 4186 | |
5005acfe VZ |
4187 | enablestring= |
4188 | echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6 | |
2b5f62a0 | 4189 | echo "configure:4190: checking for --${enablestring:-enable}-textfile" >&5 |
10f2d63a | 4190 | no_cache=0 |
1e6feb95 VZ |
4191 | # Check whether --enable-textfile or --disable-textfile was given. |
4192 | if test "${enable_textfile+set}" = set; then | |
4193 | enableval="$enable_textfile" | |
a0b9e27f | 4194 | |
10f2d63a | 4195 | if test "$enableval" = yes; then |
1e6feb95 | 4196 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4197 | else |
1e6feb95 | 4198 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4199 | fi |
a0b9e27f | 4200 | |
10f2d63a | 4201 | else |
a0b9e27f | 4202 | |
1e6feb95 | 4203 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4204 | if test "x$LINE" != x ; then |
4205 | eval "DEFAULT_$LINE" | |
4206 | else | |
4207 | no_cache=1 | |
4208 | fi | |
4209 | ||
1e6feb95 | 4210 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
a0b9e27f MB |
4211 | |
4212 | fi | |
10f2d63a VZ |
4213 | |
4214 | ||
1e6feb95 | 4215 | eval "$ac_cv_use_textfile" |
10f2d63a | 4216 | if test "$no_cache" != 1; then |
1e6feb95 | 4217 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4218 | fi |
4219 | ||
1e6feb95 | 4220 | if test "$wxUSE_TEXTFILE" = yes; then |
a0b9e27f | 4221 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4222 | else |
a0b9e27f | 4223 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4224 | fi |
a0b9e27f | 4225 | |
10f2d63a | 4226 | |
5005acfe VZ |
4227 | enablestring= |
4228 | echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6 | |
2b5f62a0 | 4229 | echo "configure:4230: checking for --${enablestring:-enable}-fontmap" >&5 |
10f2d63a | 4230 | no_cache=0 |
1e6feb95 VZ |
4231 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4232 | if test "${enable_fontmap+set}" = set; then | |
4233 | enableval="$enable_fontmap" | |
a0b9e27f | 4234 | |
10f2d63a | 4235 | if test "$enableval" = yes; then |
1e6feb95 | 4236 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4237 | else |
1e6feb95 | 4238 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4239 | fi |
a0b9e27f | 4240 | |
10f2d63a | 4241 | else |
a0b9e27f | 4242 | |
1e6feb95 | 4243 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4244 | if test "x$LINE" != x ; then |
4245 | eval "DEFAULT_$LINE" | |
4246 | else | |
4247 | no_cache=1 | |
4248 | fi | |
4249 | ||
1e6feb95 | 4250 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
a0b9e27f MB |
4251 | |
4252 | fi | |
10f2d63a VZ |
4253 | |
4254 | ||
1e6feb95 | 4255 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4256 | if test "$no_cache" != 1; then |
1e6feb95 | 4257 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4258 | fi |
4259 | ||
1e6feb95 | 4260 | if test "$wxUSE_FONTMAP" = yes; then |
a0b9e27f | 4261 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4262 | else |
a0b9e27f | 4263 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4264 | fi |
a0b9e27f | 4265 | |
10f2d63a | 4266 | |
5005acfe VZ |
4267 | enablestring= |
4268 | echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6 | |
2b5f62a0 | 4269 | echo "configure:4270: checking for --${enablestring:-enable}-unicode" >&5 |
10f2d63a | 4270 | no_cache=0 |
1e6feb95 VZ |
4271 | # Check whether --enable-unicode or --disable-unicode was given. |
4272 | if test "${enable_unicode+set}" = set; then | |
4273 | enableval="$enable_unicode" | |
a0b9e27f | 4274 | |
1e6feb95 VZ |
4275 | if test "$enableval" = yes; then |
4276 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4277 | else | |
4278 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4279 | fi | |
a0b9e27f | 4280 | |
1e6feb95 | 4281 | else |
a0b9e27f | 4282 | |
1e6feb95 VZ |
4283 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4284 | if test "x$LINE" != x ; then | |
4285 | eval "DEFAULT_$LINE" | |
4286 | else | |
4287 | no_cache=1 | |
4288 | fi | |
4289 | ||
4290 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
a0b9e27f MB |
4291 | |
4292 | fi | |
1e6feb95 VZ |
4293 | |
4294 | ||
4295 | eval "$ac_cv_use_unicode" | |
4296 | if test "$no_cache" != 1; then | |
4297 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4298 | fi | |
4299 | ||
4300 | if test "$wxUSE_UNICODE" = yes; then | |
a0b9e27f | 4301 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4302 | else |
a0b9e27f | 4303 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4304 | fi |
a0b9e27f | 4305 | |
1e6feb95 | 4306 | |
5005acfe VZ |
4307 | enablestring= |
4308 | echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6 | |
2b5f62a0 | 4309 | echo "configure:4310: checking for --${enablestring:-enable}-mslu" >&5 |
a72a4bfa VS |
4310 | no_cache=0 |
4311 | # Check whether --enable-mslu or --disable-mslu was given. | |
4312 | if test "${enable_mslu+set}" = set; then | |
4313 | enableval="$enable_mslu" | |
a0b9e27f | 4314 | |
a72a4bfa VS |
4315 | if test "$enableval" = yes; then |
4316 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4317 | else | |
4318 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4319 | fi | |
a0b9e27f | 4320 | |
a72a4bfa | 4321 | else |
a0b9e27f | 4322 | |
a72a4bfa VS |
4323 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4324 | if test "x$LINE" != x ; then | |
4325 | eval "DEFAULT_$LINE" | |
4326 | else | |
4327 | no_cache=1 | |
4328 | fi | |
4329 | ||
4330 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a0b9e27f MB |
4331 | |
4332 | fi | |
a72a4bfa VS |
4333 | |
4334 | ||
4335 | eval "$ac_cv_use_mslu" | |
4336 | if test "$no_cache" != 1; then | |
4337 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4338 | fi | |
4339 | ||
4340 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
a0b9e27f | 4341 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4342 | else |
a0b9e27f | 4343 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4344 | fi |
a0b9e27f | 4345 | |
a72a4bfa | 4346 | |
5005acfe VZ |
4347 | enablestring= |
4348 | echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6 | |
2b5f62a0 | 4349 | echo "configure:4350: checking for --${enablestring:-enable}-wxprintfv" >&5 |
1e6feb95 VZ |
4350 | no_cache=0 |
4351 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4352 | if test "${enable_wxprintfv+set}" = set; then | |
4353 | enableval="$enable_wxprintfv" | |
a0b9e27f | 4354 | |
1e6feb95 | 4355 | if test "$enableval" = yes; then |
10f2d63a VZ |
4356 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4357 | else | |
4358 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4359 | fi | |
a0b9e27f | 4360 | |
10f2d63a | 4361 | else |
a0b9e27f | 4362 | |
10f2d63a VZ |
4363 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4364 | if test "x$LINE" != x ; then | |
4365 | eval "DEFAULT_$LINE" | |
4366 | else | |
4367 | no_cache=1 | |
4368 | fi | |
4369 | ||
4370 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
a0b9e27f MB |
4371 | |
4372 | fi | |
10f2d63a VZ |
4373 | |
4374 | ||
4375 | eval "$ac_cv_use_wxprintfv" | |
4376 | if test "$no_cache" != 1; then | |
4377 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4378 | fi | |
4379 | ||
4380 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
a0b9e27f | 4381 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4382 | else |
a0b9e27f | 4383 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4384 | fi |
a0b9e27f | 4385 | |
10f2d63a | 4386 | |
5005acfe VZ |
4387 | enablestring= |
4388 | echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6 | |
2b5f62a0 | 4389 | echo "configure:4390: checking for --${enablestring:-enable}-std_iostreams" >&5 |
10f2d63a VZ |
4390 | no_cache=0 |
4391 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4392 | if test "${enable_std_iostreams+set}" = set; then | |
4393 | enableval="$enable_std_iostreams" | |
a0b9e27f | 4394 | |
10f2d63a VZ |
4395 | if test "$enableval" = yes; then |
4396 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4397 | else | |
4398 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4399 | fi | |
a0b9e27f | 4400 | |
10f2d63a | 4401 | else |
a0b9e27f | 4402 | |
10f2d63a VZ |
4403 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4404 | if test "x$LINE" != x ; then | |
4405 | eval "DEFAULT_$LINE" | |
4406 | else | |
4407 | no_cache=1 | |
4408 | fi | |
4409 | ||
4410 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
a0b9e27f MB |
4411 | |
4412 | fi | |
10f2d63a VZ |
4413 | |
4414 | ||
4415 | eval "$ac_cv_use_std_iostreams" | |
4416 | if test "$no_cache" != 1; then | |
4417 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4418 | fi | |
4419 | ||
4420 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
a0b9e27f | 4421 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4422 | else |
a0b9e27f | 4423 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4424 | fi |
a0b9e27f | 4425 | |
10f2d63a | 4426 | |
5005acfe VZ |
4427 | enablestring= |
4428 | echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6 | |
2b5f62a0 | 4429 | echo "configure:4430: checking for --${enablestring:-enable}-filesystem" >&5 |
24528b0c VS |
4430 | no_cache=0 |
4431 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4432 | if test "${enable_filesystem+set}" = set; then | |
4433 | enableval="$enable_filesystem" | |
a0b9e27f | 4434 | |
24528b0c VS |
4435 | if test "$enableval" = yes; then |
4436 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4437 | else | |
4438 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4439 | fi | |
a0b9e27f | 4440 | |
24528b0c | 4441 | else |
a0b9e27f | 4442 | |
24528b0c VS |
4443 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4444 | if test "x$LINE" != x ; then | |
4445 | eval "DEFAULT_$LINE" | |
4446 | else | |
4447 | no_cache=1 | |
4448 | fi | |
4449 | ||
4450 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
a0b9e27f MB |
4451 | |
4452 | fi | |
24528b0c VS |
4453 | |
4454 | ||
4455 | eval "$ac_cv_use_filesystem" | |
4456 | if test "$no_cache" != 1; then | |
4457 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4458 | fi | |
4459 | ||
4460 | if test "$wxUSE_FILESYSTEM" = yes; then | |
a0b9e27f | 4461 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4462 | else |
a0b9e27f | 4463 | echo "$ac_t""no" 1>&6 |
24528b0c | 4464 | fi |
a0b9e27f | 4465 | |
24528b0c | 4466 | |
5005acfe VZ |
4467 | enablestring= |
4468 | echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6 | |
2b5f62a0 | 4469 | echo "configure:4470: checking for --${enablestring:-enable}-fs_inet" >&5 |
10f2d63a VZ |
4470 | no_cache=0 |
4471 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4472 | if test "${enable_fs_inet+set}" = set; then | |
4473 | enableval="$enable_fs_inet" | |
a0b9e27f | 4474 | |
10f2d63a VZ |
4475 | if test "$enableval" = yes; then |
4476 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4477 | else | |
4478 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4479 | fi | |
a0b9e27f | 4480 | |
10f2d63a | 4481 | else |
a0b9e27f | 4482 | |
10f2d63a VZ |
4483 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4484 | if test "x$LINE" != x ; then | |
4485 | eval "DEFAULT_$LINE" | |
4486 | else | |
4487 | no_cache=1 | |
4488 | fi | |
4489 | ||
4490 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
a0b9e27f MB |
4491 | |
4492 | fi | |
10f2d63a VZ |
4493 | |
4494 | ||
4495 | eval "$ac_cv_use_fs_inet" | |
4496 | if test "$no_cache" != 1; then | |
4497 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4498 | fi | |
4499 | ||
4500 | if test "$wxUSE_FS_INET" = yes; then | |
a0b9e27f | 4501 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4502 | else |
a0b9e27f | 4503 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4504 | fi |
a0b9e27f | 4505 | |
10f2d63a | 4506 | |
5005acfe VZ |
4507 | enablestring= |
4508 | echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6 | |
2b5f62a0 | 4509 | echo "configure:4510: checking for --${enablestring:-enable}-fs_zip" >&5 |
10f2d63a VZ |
4510 | no_cache=0 |
4511 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4512 | if test "${enable_fs_zip+set}" = set; then | |
4513 | enableval="$enable_fs_zip" | |
a0b9e27f | 4514 | |
10f2d63a VZ |
4515 | if test "$enableval" = yes; then |
4516 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4517 | else | |
4518 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4519 | fi | |
a0b9e27f | 4520 | |
10f2d63a | 4521 | else |
a0b9e27f | 4522 | |
10f2d63a VZ |
4523 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4524 | if test "x$LINE" != x ; then | |
4525 | eval "DEFAULT_$LINE" | |
4526 | else | |
4527 | no_cache=1 | |
4528 | fi | |
4529 | ||
4530 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
a0b9e27f MB |
4531 | |
4532 | fi | |
10f2d63a VZ |
4533 | |
4534 | ||
4535 | eval "$ac_cv_use_fs_zip" | |
4536 | if test "$no_cache" != 1; then | |
4537 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4538 | fi | |
4539 | ||
4540 | if test "$wxUSE_FS_ZIP" = yes; then | |
a0b9e27f | 4541 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4542 | else |
a0b9e27f | 4543 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4544 | fi |
a0b9e27f | 4545 | |
10f2d63a | 4546 | |
5005acfe VZ |
4547 | enablestring= |
4548 | echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6 | |
2b5f62a0 | 4549 | echo "configure:4550: checking for --${enablestring:-enable}-zipstream" >&5 |
10f2d63a VZ |
4550 | no_cache=0 |
4551 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4552 | if test "${enable_zipstream+set}" = set; then | |
4553 | enableval="$enable_zipstream" | |
a0b9e27f | 4554 | |
10f2d63a VZ |
4555 | if test "$enableval" = yes; then |
4556 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4557 | else | |
4558 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4559 | fi | |
a0b9e27f | 4560 | |
10f2d63a | 4561 | else |
a0b9e27f | 4562 | |
10f2d63a VZ |
4563 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4564 | if test "x$LINE" != x ; then | |
4565 | eval "DEFAULT_$LINE" | |
4566 | else | |
4567 | no_cache=1 | |
4568 | fi | |
4569 | ||
4570 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
a0b9e27f MB |
4571 | |
4572 | fi | |
10f2d63a VZ |
4573 | |
4574 | ||
4575 | eval "$ac_cv_use_zipstream" | |
4576 | if test "$no_cache" != 1; then | |
4577 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4578 | fi | |
4579 | ||
4580 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
a0b9e27f | 4581 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4582 | else |
a0b9e27f | 4583 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4584 | fi |
a0b9e27f | 4585 | |
8284b0c5 | 4586 | |
52127426 | 4587 | |
5005acfe VZ |
4588 | enablestring= |
4589 | echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6 | |
2b5f62a0 | 4590 | echo "configure:4591: checking for --${enablestring:-enable}-catch_segvs" >&5 |
eb4efbdc VZ |
4591 | no_cache=0 |
4592 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4593 | if test "${enable_catch_segvs+set}" = set; then | |
4594 | enableval="$enable_catch_segvs" | |
a0b9e27f | 4595 | |
eb4efbdc VZ |
4596 | if test "$enableval" = yes; then |
4597 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4598 | else | |
4599 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4600 | fi | |
a0b9e27f | 4601 | |
eb4efbdc | 4602 | else |
a0b9e27f | 4603 | |
eb4efbdc VZ |
4604 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4605 | if test "x$LINE" != x ; then | |
4606 | eval "DEFAULT_$LINE" | |
4607 | else | |
4608 | no_cache=1 | |
4609 | fi | |
4610 | ||
4611 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
a0b9e27f MB |
4612 | |
4613 | fi | |
eb4efbdc VZ |
4614 | |
4615 | ||
4616 | eval "$ac_cv_use_catch_segvs" | |
4617 | if test "$no_cache" != 1; then | |
4618 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4619 | fi | |
4620 | ||
4621 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
a0b9e27f | 4622 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4623 | else |
a0b9e27f | 4624 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4625 | fi |
a0b9e27f | 4626 | |
eb4efbdc | 4627 | |
5005acfe VZ |
4628 | enablestring= |
4629 | echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6 | |
2b5f62a0 | 4630 | echo "configure:4631: checking for --${enablestring:-enable}-snglinst" >&5 |
4f3c5f06 VZ |
4631 | no_cache=0 |
4632 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4633 | if test "${enable_snglinst+set}" = set; then | |
4634 | enableval="$enable_snglinst" | |
a0b9e27f | 4635 | |
4f3c5f06 VZ |
4636 | if test "$enableval" = yes; then |
4637 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4638 | else | |
4639 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4640 | fi | |
a0b9e27f | 4641 | |
4f3c5f06 | 4642 | else |
a0b9e27f | 4643 | |
4f3c5f06 VZ |
4644 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4645 | if test "x$LINE" != x ; then | |
4646 | eval "DEFAULT_$LINE" | |
4647 | else | |
4648 | no_cache=1 | |
4649 | fi | |
4650 | ||
4651 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
a0b9e27f MB |
4652 | |
4653 | fi | |
4f3c5f06 VZ |
4654 | |
4655 | ||
4656 | eval "$ac_cv_use_snglinst" | |
4657 | if test "$no_cache" != 1; then | |
4658 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4659 | fi | |
4660 | ||
4661 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
a0b9e27f | 4662 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4663 | else |
a0b9e27f | 4664 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4665 | fi |
a0b9e27f | 4666 | |
52127426 | 4667 | |
8284b0c5 | 4668 | |
5005acfe VZ |
4669 | enablestring= |
4670 | echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6 | |
2b5f62a0 | 4671 | echo "configure:4672: checking for --${enablestring:-enable}-mimetype" >&5 |
1e6feb95 VZ |
4672 | no_cache=0 |
4673 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4674 | if test "${enable_mimetype+set}" = set; then | |
4675 | enableval="$enable_mimetype" | |
a0b9e27f | 4676 | |
1e6feb95 VZ |
4677 | if test "$enableval" = yes; then |
4678 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4679 | else | |
4680 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4681 | fi | |
a0b9e27f | 4682 | |
1e6feb95 | 4683 | else |
a0b9e27f | 4684 | |
1e6feb95 VZ |
4685 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
4686 | if test "x$LINE" != x ; then | |
4687 | eval "DEFAULT_$LINE" | |
4688 | else | |
4689 | no_cache=1 | |
4690 | fi | |
4691 | ||
4692 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
a0b9e27f MB |
4693 | |
4694 | fi | |
1e6feb95 VZ |
4695 | |
4696 | ||
4697 | eval "$ac_cv_use_mimetype" | |
4698 | if test "$no_cache" != 1; then | |
4699 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4700 | fi | |
4701 | ||
4702 | if test "$wxUSE_MIMETYPE" = yes; then | |
a0b9e27f | 4703 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4704 | else |
a0b9e27f | 4705 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4706 | fi |
a0b9e27f | 4707 | |
1e6feb95 | 4708 | |
5005acfe VZ |
4709 | enablestring= |
4710 | echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6 | |
2b5f62a0 | 4711 | echo "configure:4712: checking for --${enablestring:-enable}-system_options" >&5 |
3e44f09d VZ |
4712 | no_cache=0 |
4713 | # Check whether --enable-system_options or --disable-system_options was given. | |
4714 | if test "${enable_system_options+set}" = set; then | |
4715 | enableval="$enable_system_options" | |
a0b9e27f | 4716 | |
3e44f09d VZ |
4717 | if test "$enableval" = yes; then |
4718 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4719 | else | |
4720 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4721 | fi | |
a0b9e27f | 4722 | |
3e44f09d | 4723 | else |
a0b9e27f | 4724 | |
3e44f09d VZ |
4725 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4726 | if test "x$LINE" != x ; then | |
4727 | eval "DEFAULT_$LINE" | |
4728 | else | |
4729 | no_cache=1 | |
4730 | fi | |
4731 | ||
4732 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
a0b9e27f MB |
4733 | |
4734 | fi | |
3e44f09d VZ |
4735 | |
4736 | ||
4737 | eval "$ac_cv_use_system_options" | |
4738 | if test "$no_cache" != 1; then | |
4739 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4740 | fi | |
4741 | ||
4742 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
a0b9e27f | 4743 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4744 | else |
a0b9e27f | 4745 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4746 | fi |
a0b9e27f | 4747 | |
8284b0c5 | 4748 | |
52127426 | 4749 | |
5005acfe VZ |
4750 | enablestring= |
4751 | echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6 | |
2b5f62a0 | 4752 | echo "configure:4753: checking for --${enablestring:-enable}-url" >&5 |
4cdb0ab0 VS |
4753 | no_cache=0 |
4754 | # Check whether --enable-url or --disable-url was given. | |
4755 | if test "${enable_url+set}" = set; then | |
4756 | enableval="$enable_url" | |
a0b9e27f | 4757 | |
4cdb0ab0 VS |
4758 | if test "$enableval" = yes; then |
4759 | ac_cv_use_url='wxUSE_URL=yes' | |
4760 | else | |
4761 | ac_cv_use_url='wxUSE_URL=no' | |
4762 | fi | |
a0b9e27f | 4763 | |
4cdb0ab0 | 4764 | else |
a0b9e27f | 4765 | |
4cdb0ab0 VS |
4766 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4767 | if test "x$LINE" != x ; then | |
4768 | eval "DEFAULT_$LINE" | |
4769 | else | |
4770 | no_cache=1 | |
4771 | fi | |
4772 | ||
4773 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
a0b9e27f MB |
4774 | |
4775 | fi | |
4cdb0ab0 VS |
4776 | |
4777 | ||
4778 | eval "$ac_cv_use_url" | |
4779 | if test "$no_cache" != 1; then | |
4780 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4781 | fi | |
4782 | ||
4783 | if test "$wxUSE_URL" = yes; then | |
a0b9e27f | 4784 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4785 | else |
a0b9e27f | 4786 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4787 | fi |
a0b9e27f | 4788 | |
4cdb0ab0 | 4789 | |
5005acfe VZ |
4790 | enablestring= |
4791 | echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6 | |
2b5f62a0 | 4792 | echo "configure:4793: checking for --${enablestring:-enable}-protocol" >&5 |
4cdb0ab0 VS |
4793 | no_cache=0 |
4794 | # Check whether --enable-protocol or --disable-protocol was given. | |
4795 | if test "${enable_protocol+set}" = set; then | |
4796 | enableval="$enable_protocol" | |
a0b9e27f | 4797 | |
4cdb0ab0 VS |
4798 | if test "$enableval" = yes; then |
4799 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4800 | else | |
4801 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4802 | fi | |
a0b9e27f | 4803 | |
4cdb0ab0 | 4804 | else |
a0b9e27f | 4805 | |
4cdb0ab0 VS |
4806 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4807 | if test "x$LINE" != x ; then | |
4808 | eval "DEFAULT_$LINE" | |
4809 | else | |
4810 | no_cache=1 | |
4811 | fi | |
4812 | ||
4813 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
4814 | |
4815 | fi | |
4cdb0ab0 VS |
4816 | |
4817 | ||
4818 | eval "$ac_cv_use_protocol" | |
4819 | if test "$no_cache" != 1; then | |
4820 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4821 | fi | |
4822 | ||
4823 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 4824 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4825 | else |
a0b9e27f | 4826 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4827 | fi |
a0b9e27f | 4828 | |
4cdb0ab0 | 4829 | |
5005acfe VZ |
4830 | enablestring= |
4831 | echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6 | |
2b5f62a0 | 4832 | echo "configure:4833: checking for --${enablestring:-enable}-protocol_http" >&5 |
4cdb0ab0 VS |
4833 | no_cache=0 |
4834 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4835 | if test "${enable_protocol_http+set}" = set; then | |
4836 | enableval="$enable_protocol_http" | |
a0b9e27f | 4837 | |
4cdb0ab0 VS |
4838 | if test "$enableval" = yes; then |
4839 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4840 | else | |
4841 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4842 | fi | |
a0b9e27f | 4843 | |
4cdb0ab0 | 4844 | else |
a0b9e27f | 4845 | |
4cdb0ab0 VS |
4846 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4847 | if test "x$LINE" != x ; then | |
4848 | eval "DEFAULT_$LINE" | |
4849 | else | |
4850 | no_cache=1 | |
4851 | fi | |
4852 | ||
4853 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
4854 | |
4855 | fi | |
4cdb0ab0 VS |
4856 | |
4857 | ||
4858 | eval "$ac_cv_use_protocol_http" | |
4859 | if test "$no_cache" != 1; then | |
4860 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4861 | fi | |
4862 | ||
4863 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 4864 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4865 | else |
a0b9e27f | 4866 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4867 | fi |
a0b9e27f | 4868 | |
4cdb0ab0 | 4869 | |
5005acfe VZ |
4870 | enablestring= |
4871 | echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6 | |
2b5f62a0 | 4872 | echo "configure:4873: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
4cdb0ab0 VS |
4873 | no_cache=0 |
4874 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4875 | if test "${enable_protocol_ftp+set}" = set; then | |
4876 | enableval="$enable_protocol_ftp" | |
a0b9e27f | 4877 | |
4cdb0ab0 VS |
4878 | if test "$enableval" = yes; then |
4879 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4880 | else | |
4881 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4882 | fi | |
a0b9e27f | 4883 | |
4cdb0ab0 | 4884 | else |
a0b9e27f | 4885 | |
4cdb0ab0 VS |
4886 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4887 | if test "x$LINE" != x ; then | |
4888 | eval "DEFAULT_$LINE" | |
4889 | else | |
4890 | no_cache=1 | |
4891 | fi | |
4892 | ||
4893 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
4894 | |
4895 | fi | |
4cdb0ab0 VS |
4896 | |
4897 | ||
4898 | eval "$ac_cv_use_protocol_ftp" | |
4899 | if test "$no_cache" != 1; then | |
4900 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4901 | fi | |
4902 | ||
4903 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 4904 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4905 | else |
a0b9e27f | 4906 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4907 | fi |
a0b9e27f | 4908 | |
4cdb0ab0 | 4909 | |
5005acfe VZ |
4910 | enablestring= |
4911 | echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6 | |
2b5f62a0 | 4912 | echo "configure:4913: checking for --${enablestring:-enable}-protocol_file" >&5 |
4cdb0ab0 VS |
4913 | no_cache=0 |
4914 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4915 | if test "${enable_protocol_file+set}" = set; then | |
4916 | enableval="$enable_protocol_file" | |
a0b9e27f | 4917 | |
4cdb0ab0 VS |
4918 | if test "$enableval" = yes; then |
4919 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4920 | else | |
4921 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4922 | fi | |
a0b9e27f | 4923 | |
4cdb0ab0 | 4924 | else |
a0b9e27f | 4925 | |
4cdb0ab0 VS |
4926 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4927 | if test "x$LINE" != x ; then | |
4928 | eval "DEFAULT_$LINE" | |
4929 | else | |
4930 | no_cache=1 | |
4931 | fi | |
4932 | ||
4933 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
4934 | |
4935 | fi | |
4cdb0ab0 VS |
4936 | |
4937 | ||
4938 | eval "$ac_cv_use_protocol_file" | |
4939 | if test "$no_cache" != 1; then | |
4940 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4941 | fi | |
4942 | ||
4943 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 4944 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4945 | else |
a0b9e27f | 4946 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4947 | fi |
a0b9e27f | 4948 | |
52127426 | 4949 | |
8284b0c5 MB |
4950 | |
4951 | ||
4952 | ||
5005acfe VZ |
4953 | enablestring= |
4954 | echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6 | |
2b5f62a0 | 4955 | echo "configure:4956: checking for --${enablestring:-enable}-threads" >&5 |
10f2d63a VZ |
4956 | no_cache=0 |
4957 | # Check whether --enable-threads or --disable-threads was given. | |
4958 | if test "${enable_threads+set}" = set; then | |
4959 | enableval="$enable_threads" | |
a0b9e27f | 4960 | |
10f2d63a VZ |
4961 | if test "$enableval" = yes; then |
4962 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4963 | else | |
4964 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4965 | fi | |
a0b9e27f | 4966 | |
10f2d63a | 4967 | else |
a0b9e27f | 4968 | |
10f2d63a VZ |
4969 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4970 | if test "x$LINE" != x ; then | |
4971 | eval "DEFAULT_$LINE" | |
4972 | else | |
4973 | no_cache=1 | |
4974 | fi | |
4975 | ||
4976 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
a0b9e27f MB |
4977 | |
4978 | fi | |
10f2d63a VZ |
4979 | |
4980 | ||
4981 | eval "$ac_cv_use_threads" | |
4982 | if test "$no_cache" != 1; then | |
4983 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4984 | fi | |
4985 | ||
4986 | if test "$wxUSE_THREADS" = yes; then | |
a0b9e27f | 4987 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4988 | else |
a0b9e27f | 4989 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4990 | fi |
a0b9e27f | 4991 | |
10f2d63a | 4992 | |
b12915c1 VZ |
4993 | if test "$wxUSE_GUI" = "yes"; then |
4994 | ||
8284b0c5 MB |
4995 | |
4996 | ||
5005acfe VZ |
4997 | enablestring= |
4998 | echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6 | |
2b5f62a0 | 4999 | echo "configure:5000: checking for --${enablestring:-enable}-docview" >&5 |
10f2d63a VZ |
5000 | no_cache=0 |
5001 | # Check whether --enable-docview or --disable-docview was given. | |
5002 | if test "${enable_docview+set}" = set; then | |
5003 | enableval="$enable_docview" | |
a0b9e27f | 5004 | |
10f2d63a VZ |
5005 | if test "$enableval" = yes; then |
5006 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5007 | else | |
5008 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5009 | fi | |
a0b9e27f | 5010 | |
10f2d63a | 5011 | else |
a0b9e27f | 5012 | |
10f2d63a VZ |
5013 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5014 | if test "x$LINE" != x ; then | |
5015 | eval "DEFAULT_$LINE" | |
5016 | else | |
5017 | no_cache=1 | |
5018 | fi | |
5019 | ||
5020 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
a0b9e27f MB |
5021 | |
5022 | fi | |
10f2d63a VZ |
5023 | |
5024 | ||
5025 | eval "$ac_cv_use_docview" | |
5026 | if test "$no_cache" != 1; then | |
5027 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5028 | fi | |
5029 | ||
5030 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
a0b9e27f | 5031 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5032 | else |
a0b9e27f | 5033 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5034 | fi |
a0b9e27f | 5035 | |
10f2d63a | 5036 | |
5005acfe VZ |
5037 | enablestring= |
5038 | echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6 | |
2b5f62a0 | 5039 | echo "configure:5040: checking for --${enablestring:-enable}-help" >&5 |
10f2d63a VZ |
5040 | no_cache=0 |
5041 | # Check whether --enable-help or --disable-help was given. | |
5042 | if test "${enable_help+set}" = set; then | |
5043 | enableval="$enable_help" | |
a0b9e27f | 5044 | |
10f2d63a VZ |
5045 | if test "$enableval" = yes; then |
5046 | ac_cv_use_help='wxUSE_HELP=yes' | |
5047 | else | |
5048 | ac_cv_use_help='wxUSE_HELP=no' | |
5049 | fi | |
a0b9e27f | 5050 | |
10f2d63a | 5051 | else |
a0b9e27f | 5052 | |
10f2d63a VZ |
5053 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5054 | if test "x$LINE" != x ; then | |
5055 | eval "DEFAULT_$LINE" | |
5056 | else | |
5057 | no_cache=1 | |
5058 | fi | |
5059 | ||
5060 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
a0b9e27f MB |
5061 | |
5062 | fi | |
10f2d63a VZ |
5063 | |
5064 | ||
5065 | eval "$ac_cv_use_help" | |
5066 | if test "$no_cache" != 1; then | |
5067 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5068 | fi | |
5069 | ||
5070 | if test "$wxUSE_HELP" = yes; then | |
a0b9e27f | 5071 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5072 | else |
a0b9e27f | 5073 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5074 | fi |
a0b9e27f | 5075 | |
10f2d63a | 5076 | |
5005acfe VZ |
5077 | enablestring= |
5078 | echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6 | |
2b5f62a0 | 5079 | echo "configure:5080: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
29fd3c0c VS |
5080 | no_cache=0 |
5081 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5082 | if test "${enable_mshtmlhelp+set}" = set; then | |
5083 | enableval="$enable_mshtmlhelp" | |
a0b9e27f | 5084 | |
29fd3c0c VS |
5085 | if test "$enableval" = yes; then |
5086 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5087 | else | |
5088 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5089 | fi | |
a0b9e27f | 5090 | |
29fd3c0c | 5091 | else |
a0b9e27f | 5092 | |
29fd3c0c VS |
5093 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5094 | if test "x$LINE" != x ; then | |
5095 | eval "DEFAULT_$LINE" | |
5096 | else | |
5097 | no_cache=1 | |
5098 | fi | |
5099 | ||
5100 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
a0b9e27f MB |
5101 | |
5102 | fi | |
29fd3c0c VS |
5103 | |
5104 | ||
5105 | eval "$ac_cv_use_mshtmlhelp" | |
5106 | if test "$no_cache" != 1; then | |
5107 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5108 | fi | |
5109 | ||
5110 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
a0b9e27f | 5111 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 5112 | else |
a0b9e27f | 5113 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 5114 | fi |
a0b9e27f | 5115 | |
29fd3c0c | 5116 | |
5005acfe VZ |
5117 | enablestring= |
5118 | echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6 | |
2b5f62a0 | 5119 | echo "configure:5120: checking for --${enablestring:-enable}-html" >&5 |
3379ed37 VZ |
5120 | no_cache=0 |
5121 | # Check whether --enable-html or --disable-html was given. | |
5122 | if test "${enable_html+set}" = set; then | |
5123 | enableval="$enable_html" | |
a0b9e27f | 5124 | |
3379ed37 VZ |
5125 | if test "$enableval" = yes; then |
5126 | ac_cv_use_html='wxUSE_HTML=yes' | |
5127 | else | |
5128 | ac_cv_use_html='wxUSE_HTML=no' | |
5129 | fi | |
a0b9e27f | 5130 | |
3379ed37 | 5131 | else |
a0b9e27f | 5132 | |
3379ed37 VZ |
5133 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5134 | if test "x$LINE" != x ; then | |
5135 | eval "DEFAULT_$LINE" | |
5136 | else | |
5137 | no_cache=1 | |
5138 | fi | |
5139 | ||
5140 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
a0b9e27f MB |
5141 | |
5142 | fi | |
3379ed37 VZ |
5143 | |
5144 | ||
5145 | eval "$ac_cv_use_html" | |
5146 | if test "$no_cache" != 1; then | |
5147 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5148 | fi | |
5149 | ||
5150 | if test "$wxUSE_HTML" = yes; then | |
a0b9e27f | 5151 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5152 | else |
a0b9e27f | 5153 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5154 | fi |
a0b9e27f | 5155 | |
3379ed37 | 5156 | |
5005acfe VZ |
5157 | enablestring= |
5158 | echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6 | |
2b5f62a0 | 5159 | echo "configure:5160: checking for --${enablestring:-enable}-htmlhelp" >&5 |
3379ed37 VZ |
5160 | no_cache=0 |
5161 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5162 | if test "${enable_htmlhelp+set}" = set; then | |
5163 | enableval="$enable_htmlhelp" | |
a0b9e27f | 5164 | |
3379ed37 VZ |
5165 | if test "$enableval" = yes; then |
5166 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5167 | else | |
5168 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5169 | fi | |
a0b9e27f | 5170 | |
3379ed37 | 5171 | else |
a0b9e27f | 5172 | |
3379ed37 VZ |
5173 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5174 | if test "x$LINE" != x ; then | |
5175 | eval "DEFAULT_$LINE" | |
5176 | else | |
5177 | no_cache=1 | |
5178 | fi | |
5179 | ||
5180 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
a0b9e27f MB |
5181 | |
5182 | fi | |
3379ed37 VZ |
5183 | |
5184 | ||
5185 | eval "$ac_cv_use_htmlhelp" | |
5186 | if test "$no_cache" != 1; then | |
5187 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5188 | fi | |
5189 | ||
5190 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
a0b9e27f | 5191 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5192 | else |
a0b9e27f | 5193 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5194 | fi |
a0b9e27f | 5195 | |
3379ed37 | 5196 | |
5005acfe VZ |
5197 | enablestring= |
5198 | echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6 | |
2b5f62a0 | 5199 | echo "configure:5200: checking for --${enablestring:-enable}-constraints" >&5 |
10f2d63a VZ |
5200 | no_cache=0 |
5201 | # Check whether --enable-constraints or --disable-constraints was given. | |
5202 | if test "${enable_constraints+set}" = set; then | |
5203 | enableval="$enable_constraints" | |
a0b9e27f | 5204 | |
10f2d63a VZ |
5205 | if test "$enableval" = yes; then |
5206 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5207 | else | |
5208 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5209 | fi | |
a0b9e27f | 5210 | |
10f2d63a | 5211 | else |
a0b9e27f | 5212 | |
10f2d63a VZ |
5213 | LINE=`grep "wxUSE_CONSTRAINTS" ${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_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
a0b9e27f MB |
5221 | |
5222 | fi | |
10f2d63a VZ |
5223 | |
5224 | ||
5225 | eval "$ac_cv_use_constraints" | |
5226 | if test "$no_cache" != 1; then | |
5227 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5228 | fi | |
5229 | ||
5230 | if test "$wxUSE_CONSTRAINTS" = 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 | |
10f2d63a | 5236 | |
5005acfe VZ |
5237 | enablestring= |
5238 | echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6 | |
2b5f62a0 | 5239 | echo "configure:5240: checking for --${enablestring:-enable}-printarch" >&5 |
10f2d63a VZ |
5240 | no_cache=0 |
5241 | # Check whether --enable-printarch or --disable-printarch was given. | |
5242 | if test "${enable_printarch+set}" = set; then | |
5243 | enableval="$enable_printarch" | |
a0b9e27f | 5244 | |
10f2d63a VZ |
5245 | if test "$enableval" = yes; then |
5246 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5247 | else | |
5248 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5249 | fi | |
a0b9e27f | 5250 | |
10f2d63a | 5251 | else |
a0b9e27f | 5252 | |
10f2d63a VZ |
5253 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5254 | if test "x$LINE" != x ; then | |
5255 | eval "DEFAULT_$LINE" | |
5256 | else | |
5257 | no_cache=1 | |
5258 | fi | |
5259 | ||
5260 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
a0b9e27f MB |
5261 | |
5262 | fi | |
10f2d63a VZ |
5263 | |
5264 | ||
5265 | eval "$ac_cv_use_printarch" | |
5266 | if test "$no_cache" != 1; then | |
5267 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5268 | fi | |
5269 | ||
5270 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
a0b9e27f | 5271 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5272 | else |
a0b9e27f | 5273 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5274 | fi |
a0b9e27f | 5275 | |
10f2d63a | 5276 | |
5005acfe VZ |
5277 | enablestring= |
5278 | echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6 | |
2b5f62a0 | 5279 | echo "configure:5280: checking for --${enablestring:-enable}-mdi" >&5 |
10f2d63a VZ |
5280 | no_cache=0 |
5281 | # Check whether --enable-mdi or --disable-mdi was given. | |
5282 | if test "${enable_mdi+set}" = set; then | |
5283 | enableval="$enable_mdi" | |
a0b9e27f | 5284 | |
10f2d63a VZ |
5285 | if test "$enableval" = yes; then |
5286 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5287 | else | |
5288 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5289 | fi | |
a0b9e27f | 5290 | |
10f2d63a | 5291 | else |
a0b9e27f | 5292 | |
10f2d63a VZ |
5293 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5294 | if test "x$LINE" != x ; then | |
5295 | eval "DEFAULT_$LINE" | |
5296 | else | |
5297 | no_cache=1 | |
5298 | fi | |
5299 | ||
5300 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
a0b9e27f MB |
5301 | |
5302 | fi | |
10f2d63a VZ |
5303 | |
5304 | ||
5305 | eval "$ac_cv_use_mdi" | |
5306 | if test "$no_cache" != 1; then | |
5307 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5308 | fi | |
5309 | ||
5310 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
a0b9e27f | 5311 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5312 | else |
a0b9e27f | 5313 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5314 | fi |
a0b9e27f | 5315 | |
698dcdb6 | 5316 | |
5005acfe VZ |
5317 | enablestring= |
5318 | echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6 | |
2b5f62a0 | 5319 | echo "configure:5320: checking for --${enablestring:-enable}-loggui" >&5 |
1e6feb95 VZ |
5320 | no_cache=0 |
5321 | # Check whether --enable-loggui or --disable-loggui was given. | |
5322 | if test "${enable_loggui+set}" = set; then | |
5323 | enableval="$enable_loggui" | |
a0b9e27f | 5324 | |
1e6feb95 VZ |
5325 | if test "$enableval" = yes; then |
5326 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5327 | else | |
5328 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5329 | fi | |
a0b9e27f | 5330 | |
1e6feb95 | 5331 | else |
a0b9e27f | 5332 | |
1e6feb95 VZ |
5333 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5334 | if test "x$LINE" != x ; then | |
5335 | eval "DEFAULT_$LINE" | |
5336 | else | |
5337 | no_cache=1 | |
5338 | fi | |
5339 | ||
5340 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
a0b9e27f MB |
5341 | |
5342 | fi | |
1e6feb95 VZ |
5343 | |
5344 | ||
5345 | eval "$ac_cv_use_loggui" | |
5346 | if test "$no_cache" != 1; then | |
5347 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5348 | fi | |
5349 | ||
5350 | if test "$wxUSE_LOGGUI" = yes; then | |
a0b9e27f | 5351 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5352 | else |
a0b9e27f | 5353 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5354 | fi |
a0b9e27f | 5355 | |
1e6feb95 | 5356 | |
5005acfe VZ |
5357 | enablestring= |
5358 | echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6 | |
2b5f62a0 | 5359 | echo "configure:5360: checking for --${enablestring:-enable}-logwin" >&5 |
1e6feb95 VZ |
5360 | no_cache=0 |
5361 | # Check whether --enable-logwin or --disable-logwin was given. | |
5362 | if test "${enable_logwin+set}" = set; then | |
5363 | enableval="$enable_logwin" | |
a0b9e27f | 5364 | |
1e6feb95 VZ |
5365 | if test "$enableval" = yes; then |
5366 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5367 | else | |
5368 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5369 | fi | |
a0b9e27f | 5370 | |
1e6feb95 | 5371 | else |
a0b9e27f | 5372 | |
1e6feb95 VZ |
5373 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5374 | if test "x$LINE" != x ; then | |
5375 | eval "DEFAULT_$LINE" | |
5376 | else | |
5377 | no_cache=1 | |
5378 | fi | |
5379 | ||
5380 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
a0b9e27f MB |
5381 | |
5382 | fi | |
1e6feb95 VZ |
5383 | |
5384 | ||
5385 | eval "$ac_cv_use_logwin" | |
5386 | if test "$no_cache" != 1; then | |
5387 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5388 | fi | |
5389 | ||
5390 | if test "$wxUSE_LOGWINDOW" = yes; then | |
a0b9e27f | 5391 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5392 | else |
a0b9e27f | 5393 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5394 | fi |
a0b9e27f | 5395 | |
1e6feb95 | 5396 | |
5005acfe VZ |
5397 | enablestring= |
5398 | echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6 | |
2b5f62a0 | 5399 | echo "configure:5400: checking for --${enablestring:-enable}-logdialog" >&5 |
69d27ff7 MB |
5400 | no_cache=0 |
5401 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5402 | if test "${enable_logdialog+set}" = set; then | |
5403 | enableval="$enable_logdialog" | |
a0b9e27f | 5404 | |
69d27ff7 MB |
5405 | if test "$enableval" = yes; then |
5406 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5407 | else | |
5408 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5409 | fi | |
a0b9e27f | 5410 | |
69d27ff7 | 5411 | else |
a0b9e27f | 5412 | |
69d27ff7 MB |
5413 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5414 | if test "x$LINE" != x ; then | |
5415 | eval "DEFAULT_$LINE" | |
5416 | else | |
5417 | no_cache=1 | |
5418 | fi | |
5419 | ||
5420 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
a0b9e27f MB |
5421 | |
5422 | fi | |
69d27ff7 MB |
5423 | |
5424 | ||
5425 | eval "$ac_cv_use_logdialog" | |
5426 | if test "$no_cache" != 1; then | |
5427 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5428 | fi | |
5429 | ||
5430 | if test "$wxUSE_LOGDIALOG" = yes; then | |
a0b9e27f | 5431 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5432 | else |
a0b9e27f | 5433 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5434 | fi |
a0b9e27f | 5435 | |
8284b0c5 | 5436 | |
52127426 | 5437 | |
5005acfe VZ |
5438 | enablestring= |
5439 | echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6 | |
2b5f62a0 | 5440 | echo "configure:5441: checking for --${enablestring:-enable}-postscript" >&5 |
10f2d63a VZ |
5441 | no_cache=0 |
5442 | # Check whether --enable-postscript or --disable-postscript was given. | |
5443 | if test "${enable_postscript+set}" = set; then | |
5444 | enableval="$enable_postscript" | |
a0b9e27f | 5445 | |
10f2d63a VZ |
5446 | if test "$enableval" = yes; then |
5447 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5448 | else | |
5449 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5450 | fi | |
a0b9e27f | 5451 | |
10f2d63a | 5452 | else |
a0b9e27f | 5453 | |
10f2d63a VZ |
5454 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5455 | if test "x$LINE" != x ; then | |
5456 | eval "DEFAULT_$LINE" | |
5457 | else | |
5458 | no_cache=1 | |
5459 | fi | |
5460 | ||
5461 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
a0b9e27f MB |
5462 | |
5463 | fi | |
10f2d63a VZ |
5464 | |
5465 | ||
5466 | eval "$ac_cv_use_postscript" | |
5467 | if test "$no_cache" != 1; then | |
5468 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5469 | fi | |
5470 | ||
5471 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
a0b9e27f | 5472 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5473 | else |
a0b9e27f | 5474 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5475 | fi |
a0b9e27f | 5476 | |
8284b0c5 MB |
5477 | |
5478 | ||
52127426 | 5479 | |
8284b0c5 | 5480 | |
5005acfe VZ |
5481 | enablestring= |
5482 | echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6 | |
2b5f62a0 | 5483 | echo "configure:5484: checking for --${enablestring:-enable}-prologio" >&5 |
10f2d63a VZ |
5484 | no_cache=0 |
5485 | # Check whether --enable-prologio or --disable-prologio was given. | |
5486 | if test "${enable_prologio+set}" = set; then | |
5487 | enableval="$enable_prologio" | |
a0b9e27f | 5488 | |
10f2d63a VZ |
5489 | if test "$enableval" = yes; then |
5490 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5491 | else | |
5492 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5493 | fi | |
a0b9e27f | 5494 | |
10f2d63a | 5495 | else |
a0b9e27f | 5496 | |
10f2d63a VZ |
5497 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5498 | if test "x$LINE" != x ; then | |
5499 | eval "DEFAULT_$LINE" | |
5500 | else | |
5501 | no_cache=1 | |
5502 | fi | |
5503 | ||
5504 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
a0b9e27f MB |
5505 | |
5506 | fi | |
10f2d63a VZ |
5507 | |
5508 | ||
5509 | eval "$ac_cv_use_prologio" | |
5510 | if test "$no_cache" != 1; then | |
5511 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5512 | fi | |
5513 | ||
5514 | if test "$wxUSE_PROLOGIO" = yes; then | |
a0b9e27f | 5515 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5516 | else |
a0b9e27f | 5517 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5518 | fi |
a0b9e27f | 5519 | |
10f2d63a | 5520 | |
5005acfe VZ |
5521 | enablestring= |
5522 | echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6 | |
2b5f62a0 | 5523 | echo "configure:5524: checking for --${enablestring:-enable}-resources" >&5 |
10f2d63a VZ |
5524 | no_cache=0 |
5525 | # Check whether --enable-resources or --disable-resources was given. | |
5526 | if test "${enable_resources+set}" = set; then | |
5527 | enableval="$enable_resources" | |
a0b9e27f | 5528 | |
10f2d63a VZ |
5529 | if test "$enableval" = yes; then |
5530 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5531 | else | |
5532 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5533 | fi | |
a0b9e27f | 5534 | |
10f2d63a | 5535 | else |
a0b9e27f | 5536 | |
10f2d63a VZ |
5537 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5538 | if test "x$LINE" != x ; then | |
5539 | eval "DEFAULT_$LINE" | |
5540 | else | |
5541 | no_cache=1 | |
5542 | fi | |
5543 | ||
5544 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
a0b9e27f MB |
5545 | |
5546 | fi | |
10f2d63a VZ |
5547 | |
5548 | ||
5549 | eval "$ac_cv_use_resources" | |
5550 | if test "$no_cache" != 1; then | |
5551 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5552 | fi | |
5553 | ||
5554 | if test "$wxUSE_RESOURCES" = yes; then | |
a0b9e27f | 5555 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5556 | else |
a0b9e27f | 5557 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5558 | fi |
a0b9e27f | 5559 | |
8284b0c5 | 5560 | |
52127426 | 5561 | |
5005acfe VZ |
5562 | enablestring= |
5563 | echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6 | |
2b5f62a0 | 5564 | echo "configure:5565: checking for --${enablestring:-enable}-xresources" >&5 |
10f2d63a VZ |
5565 | no_cache=0 |
5566 | # Check whether --enable-xresources or --disable-xresources was given. | |
5567 | if test "${enable_xresources+set}" = set; then | |
5568 | enableval="$enable_xresources" | |
a0b9e27f | 5569 | |
10f2d63a VZ |
5570 | if test "$enableval" = yes; then |
5571 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5572 | else | |
5573 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5574 | fi | |
a0b9e27f | 5575 | |
10f2d63a | 5576 | else |
a0b9e27f | 5577 | |
10f2d63a VZ |
5578 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5579 | if test "x$LINE" != x ; then | |
5580 | eval "DEFAULT_$LINE" | |
5581 | else | |
5582 | no_cache=1 | |
5583 | fi | |
5584 | ||
5585 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
a0b9e27f MB |
5586 | |
5587 | fi | |
10f2d63a VZ |
5588 | |
5589 | ||
5590 | eval "$ac_cv_use_xresources" | |
5591 | if test "$no_cache" != 1; then | |
5592 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5593 | fi | |
5594 | ||
5595 | if test "$wxUSE_X_RESOURCES" = yes; then | |
a0b9e27f | 5596 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5597 | else |
a0b9e27f | 5598 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5599 | fi |
a0b9e27f | 5600 | |
8284b0c5 MB |
5601 | |
5602 | ||
52127426 | 5603 | |
5005acfe VZ |
5604 | enablestring= |
5605 | echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6 | |
2b5f62a0 | 5606 | echo "configure:5607: checking for --${enablestring:-enable}-clipboard" >&5 |
10f2d63a VZ |
5607 | no_cache=0 |
5608 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5609 | if test "${enable_clipboard+set}" = set; then | |
5610 | enableval="$enable_clipboard" | |
a0b9e27f | 5611 | |
10f2d63a VZ |
5612 | if test "$enableval" = yes; then |
5613 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5614 | else | |
5615 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5616 | fi | |
a0b9e27f | 5617 | |
10f2d63a | 5618 | else |
a0b9e27f | 5619 | |
10f2d63a VZ |
5620 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5621 | if test "x$LINE" != x ; then | |
5622 | eval "DEFAULT_$LINE" | |
5623 | else | |
5624 | no_cache=1 | |
5625 | fi | |
5626 | ||
5627 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
a0b9e27f MB |
5628 | |
5629 | fi | |
10f2d63a VZ |
5630 | |
5631 | ||
5632 | eval "$ac_cv_use_clipboard" | |
5633 | if test "$no_cache" != 1; then | |
5634 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5635 | fi | |
5636 | ||
5637 | if test "$wxUSE_CLIPBOARD" = yes; then | |
a0b9e27f | 5638 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5639 | else |
a0b9e27f | 5640 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5641 | fi |
a0b9e27f | 5642 | |
10f2d63a | 5643 | |
5005acfe VZ |
5644 | enablestring= |
5645 | echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6 | |
2b5f62a0 | 5646 | echo "configure:5647: checking for --${enablestring:-enable}-dnd" >&5 |
10f2d63a VZ |
5647 | no_cache=0 |
5648 | # Check whether --enable-dnd or --disable-dnd was given. | |
5649 | if test "${enable_dnd+set}" = set; then | |
5650 | enableval="$enable_dnd" | |
a0b9e27f | 5651 | |
10f2d63a VZ |
5652 | if test "$enableval" = yes; then |
5653 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5654 | else | |
5655 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5656 | fi | |
a0b9e27f | 5657 | |
10f2d63a | 5658 | else |
a0b9e27f | 5659 | |
10f2d63a VZ |
5660 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5661 | if test "x$LINE" != x ; then | |
5662 | eval "DEFAULT_$LINE" | |
5663 | else | |
5664 | no_cache=1 | |
5665 | fi | |
5666 | ||
5667 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
a0b9e27f MB |
5668 | |
5669 | fi | |
10f2d63a VZ |
5670 | |
5671 | ||
5672 | eval "$ac_cv_use_dnd" | |
5673 | if test "$no_cache" != 1; then | |
5674 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5675 | fi | |
5676 | ||
5677 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
a0b9e27f | 5678 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5679 | else |
a0b9e27f | 5680 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5681 | fi |
a0b9e27f | 5682 | |
10f2d63a | 5683 | |
5005acfe VZ |
5684 | enablestring= |
5685 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
2b5f62a0 | 5686 | echo "configure:5687: checking for --${enablestring:-enable}-metafile" >&5 |
b64f0a5f RL |
5687 | no_cache=0 |
5688 | # Check whether --enable-metafile or --disable-metafile was given. | |
5689 | if test "${enable_metafile+set}" = set; then | |
5690 | enableval="$enable_metafile" | |
a0b9e27f | 5691 | |
b64f0a5f RL |
5692 | if test "$enableval" = yes; then |
5693 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5694 | else | |
5695 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5696 | fi | |
a0b9e27f | 5697 | |
b64f0a5f | 5698 | else |
a0b9e27f | 5699 | |
b64f0a5f RL |
5700 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5701 | if test "x$LINE" != x ; then | |
5702 | eval "DEFAULT_$LINE" | |
5703 | else | |
5704 | no_cache=1 | |
5705 | fi | |
5706 | ||
5707 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
5708 | |
5709 | fi | |
b64f0a5f RL |
5710 | |
5711 | ||
5712 | eval "$ac_cv_use_metafile" | |
5713 | if test "$no_cache" != 1; then | |
5714 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5715 | fi | |
5716 | ||
5717 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 5718 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5719 | else |
a0b9e27f | 5720 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5721 | fi |
a0b9e27f | 5722 | |
52127426 | 5723 | |
8284b0c5 | 5724 | |
5005acfe VZ |
5725 | enablestring= |
5726 | echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6 | |
2b5f62a0 | 5727 | echo "configure:5728: checking for --${enablestring:-enable}-treelayout" >&5 |
10f2d63a | 5728 | no_cache=0 |
24176f2c GD |
5729 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5730 | if test "${enable_treelayout+set}" = set; then | |
5731 | enableval="$enable_treelayout" | |
a0b9e27f | 5732 | |
10f2d63a | 5733 | if test "$enableval" = yes; then |
24176f2c | 5734 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5735 | else |
24176f2c | 5736 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5737 | fi |
a0b9e27f | 5738 | |
10f2d63a | 5739 | else |
a0b9e27f | 5740 | |
24176f2c | 5741 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5742 | if test "x$LINE" != x ; then |
5743 | eval "DEFAULT_$LINE" | |
5744 | else | |
5745 | no_cache=1 | |
5746 | fi | |
5747 | ||
24176f2c | 5748 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
a0b9e27f MB |
5749 | |
5750 | fi | |
10f2d63a VZ |
5751 | |
5752 | ||
24176f2c | 5753 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5754 | if test "$no_cache" != 1; then |
24176f2c | 5755 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5756 | fi |
5757 | ||
24176f2c | 5758 | if test "$wxUSE_TREELAYOUT" = yes; then |
a0b9e27f | 5759 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5760 | else |
a0b9e27f | 5761 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5762 | fi |
a0b9e27f | 5763 | |
8284b0c5 | 5764 | |
52127426 | 5765 | |
8284b0c5 | 5766 | |
5005acfe VZ |
5767 | enablestring= |
5768 | echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6 | |
2b5f62a0 | 5769 | echo "configure:5770: checking for --${enablestring:-enable}-controls" >&5 |
10f2d63a VZ |
5770 | no_cache=0 |
5771 | # Check whether --enable-controls or --disable-controls was given. | |
5772 | if test "${enable_controls+set}" = set; then | |
5773 | enableval="$enable_controls" | |
a0b9e27f | 5774 | |
10f2d63a VZ |
5775 | if test "$enableval" = yes; then |
5776 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5777 | else | |
5778 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5779 | fi | |
a0b9e27f | 5780 | |
10f2d63a | 5781 | else |
a0b9e27f | 5782 | |
10f2d63a VZ |
5783 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5784 | if test "x$LINE" != x ; then | |
5785 | eval "DEFAULT_$LINE" | |
5786 | else | |
5787 | no_cache=1 | |
5788 | fi | |
5789 | ||
5790 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
a0b9e27f MB |
5791 | |
5792 | fi | |
10f2d63a VZ |
5793 | |
5794 | ||
5795 | eval "$ac_cv_use_controls" | |
5796 | if test "$no_cache" != 1; then | |
5797 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5798 | fi | |
5799 | ||
5800 | if test "$wxUSE_CONTROLS" = yes; then | |
a0b9e27f | 5801 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5802 | else |
a0b9e27f | 5803 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5804 | fi |
a0b9e27f | 5805 | |
10f2d63a VZ |
5806 | |
5807 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5808 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5809 | DEFAULT_wxUSE_BMPBUTTON=yes |
5810 | DEFAULT_wxUSE_BUTTON=yes | |
5811 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5812 | DEFAULT_wxUSE_CARET=yes |
5813 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5814 | DEFAULT_wxUSE_CHECKBOX=yes |
5815 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5816 | DEFAULT_wxUSE_CHOICE=yes | |
5817 | DEFAULT_wxUSE_GAUGE=yes | |
5818 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5819 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5820 | DEFAULT_wxUSE_IMAGLIST=yes |
5821 | DEFAULT_wxUSE_LISTBOX=yes | |
5822 | DEFAULT_wxUSE_LISTCTRL=yes | |
5823 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5824 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5825 | DEFAULT_wxUSE_RADIOBOX=yes |
5826 | DEFAULT_wxUSE_RADIOBTN=yes | |
5827 | DEFAULT_wxUSE_SASH=yes | |
5828 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5829 | DEFAULT_wxUSE_SLIDER=yes | |
5830 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5831 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5832 | DEFAULT_wxUSE_SPLITTER=yes |
5833 | DEFAULT_wxUSE_STATBMP=yes | |
5834 | DEFAULT_wxUSE_STATBOX=yes | |
5835 | DEFAULT_wxUSE_STATLINE=yes | |
5836 | DEFAULT_wxUSE_STATUSBAR=yes | |
5837 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5838 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5839 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5840 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5841 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5842 | DEFAULT_wxUSE_TOOLTIPS=yes |
5843 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5844 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5845 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5846 | elif test "$wxUSE_CONTROLS" = "no"; then |
5847 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5848 | DEFAULT_wxUSE_BMPBUTTON=no |
5849 | DEFAULT_wxUSE_BUTTON=no | |
5850 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5851 | DEFAULT_wxUSE_CARET=no |
5852 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5853 | DEFAULT_wxUSE_CHECKBOX=no |
5854 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5855 | DEFAULT_wxUSE_CHOICE=no | |
5856 | DEFAULT_wxUSE_GAUGE=no | |
5857 | DEFAULT_wxUSE_GRID=no | |
5858 | DEFAULT_wxUSE_NEW_GRID=no | |
5859 | DEFAULT_wxUSE_IMAGLIST=no | |
5860 | DEFAULT_wxUSE_LISTBOX=no | |
5861 | DEFAULT_wxUSE_LISTCTRL=no | |
5862 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5863 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5864 | DEFAULT_wxUSE_RADIOBOX=no |
5865 | DEFAULT_wxUSE_RADIOBTN=no | |
5866 | DEFAULT_wxUSE_SASH=no | |
5867 | DEFAULT_wxUSE_SCROLLBAR=no | |
5868 | DEFAULT_wxUSE_SLIDER=no | |
5869 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5870 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5871 | DEFAULT_wxUSE_SPLITTER=no |
5872 | DEFAULT_wxUSE_STATBMP=no | |
5873 | DEFAULT_wxUSE_STATBOX=no | |
5874 | DEFAULT_wxUSE_STATLINE=no | |
5875 | DEFAULT_wxUSE_STATUSBAR=no | |
5876 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5877 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5878 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5879 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5880 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5881 | DEFAULT_wxUSE_TOOLTIPS=no |
5882 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5883 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5884 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5885 | fi |
5886 | ||
8284b0c5 | 5887 | |
5005acfe VZ |
5888 | enablestring= |
5889 | echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6 | |
2b5f62a0 | 5890 | echo "configure:5891: checking for --${enablestring:-enable}-accel" >&5 |
10f2d63a VZ |
5891 | no_cache=0 |
5892 | # Check whether --enable-accel or --disable-accel was given. | |
5893 | if test "${enable_accel+set}" = set; then | |
5894 | enableval="$enable_accel" | |
a0b9e27f | 5895 | |
10f2d63a VZ |
5896 | if test "$enableval" = yes; then |
5897 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5898 | else | |
5899 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5900 | fi | |
a0b9e27f | 5901 | |
10f2d63a | 5902 | else |
a0b9e27f | 5903 | |
10f2d63a VZ |
5904 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5905 | if test "x$LINE" != x ; then | |
5906 | eval "DEFAULT_$LINE" | |
5907 | else | |
5908 | no_cache=1 | |
5909 | fi | |
5910 | ||
5911 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
a0b9e27f MB |
5912 | |
5913 | fi | |
10f2d63a VZ |
5914 | |
5915 | ||
5916 | eval "$ac_cv_use_accel" | |
5917 | if test "$no_cache" != 1; then | |
5918 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5919 | fi | |
5920 | ||
5921 | if test "$wxUSE_ACCEL" = yes; then | |
a0b9e27f | 5922 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5923 | else |
a0b9e27f | 5924 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5925 | fi |
a0b9e27f | 5926 | |
10f2d63a | 5927 | |
5005acfe VZ |
5928 | enablestring= |
5929 | echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6 | |
2b5f62a0 | 5930 | echo "configure:5931: checking for --${enablestring:-enable}-button" >&5 |
10f2d63a | 5931 | no_cache=0 |
1e6feb95 VZ |
5932 | # Check whether --enable-button or --disable-button was given. |
5933 | if test "${enable_button+set}" = set; then | |
5934 | enableval="$enable_button" | |
a0b9e27f | 5935 | |
10f2d63a | 5936 | if test "$enableval" = yes; then |
1e6feb95 | 5937 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5938 | else |
1e6feb95 | 5939 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5940 | fi |
a0b9e27f | 5941 | |
10f2d63a | 5942 | else |
a0b9e27f | 5943 | |
1e6feb95 | 5944 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5945 | if test "x$LINE" != x ; then |
5946 | eval "DEFAULT_$LINE" | |
5947 | else | |
5948 | no_cache=1 | |
5949 | fi | |
5950 | ||
1e6feb95 | 5951 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
a0b9e27f MB |
5952 | |
5953 | fi | |
10f2d63a VZ |
5954 | |
5955 | ||
1e6feb95 | 5956 | eval "$ac_cv_use_button" |
10f2d63a | 5957 | if test "$no_cache" != 1; then |
1e6feb95 | 5958 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5959 | fi |
5960 | ||
1e6feb95 | 5961 | if test "$wxUSE_BUTTON" = yes; then |
a0b9e27f | 5962 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5963 | else |
a0b9e27f | 5964 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5965 | fi |
a0b9e27f | 5966 | |
10f2d63a | 5967 | |
5005acfe VZ |
5968 | enablestring= |
5969 | echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6 | |
2b5f62a0 | 5970 | echo "configure:5971: checking for --${enablestring:-enable}-bmpbutton" >&5 |
10f2d63a VZ |
5971 | no_cache=0 |
5972 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5973 | if test "${enable_bmpbutton+set}" = set; then | |
5974 | enableval="$enable_bmpbutton" | |
a0b9e27f | 5975 | |
10f2d63a VZ |
5976 | if test "$enableval" = yes; then |
5977 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5978 | else | |
5979 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5980 | fi | |
a0b9e27f | 5981 | |
10f2d63a | 5982 | else |
a0b9e27f | 5983 | |
10f2d63a VZ |
5984 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5985 | if test "x$LINE" != x ; then | |
5986 | eval "DEFAULT_$LINE" | |
5987 | else | |
5988 | no_cache=1 | |
5989 | fi | |
5990 | ||
5991 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
a0b9e27f MB |
5992 | |
5993 | fi | |
10f2d63a VZ |
5994 | |
5995 | ||
5996 | eval "$ac_cv_use_bmpbutton" | |
5997 | if test "$no_cache" != 1; then | |
5998 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5999 | fi | |
6000 | ||
6001 | if test "$wxUSE_BMPBUTTON" = yes; then | |
a0b9e27f | 6002 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6003 | else |
a0b9e27f | 6004 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6005 | fi |
a0b9e27f | 6006 | |
10f2d63a | 6007 | |
5005acfe VZ |
6008 | enablestring= |
6009 | echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6 | |
2b5f62a0 | 6010 | echo "configure:6011: checking for --${enablestring:-enable}-calendar" >&5 |
1e6feb95 VZ |
6011 | no_cache=0 |
6012 | # Check whether --enable-calendar or --disable-calendar was given. | |
6013 | if test "${enable_calendar+set}" = set; then | |
6014 | enableval="$enable_calendar" | |
a0b9e27f | 6015 | |
1e6feb95 VZ |
6016 | if test "$enableval" = yes; then |
6017 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6018 | else | |
6019 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6020 | fi | |
a0b9e27f | 6021 | |
1e6feb95 | 6022 | else |
a0b9e27f | 6023 | |
1e6feb95 VZ |
6024 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6025 | if test "x$LINE" != x ; then | |
6026 | eval "DEFAULT_$LINE" | |
6027 | else | |
6028 | no_cache=1 | |
6029 | fi | |
6030 | ||
6031 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
a0b9e27f MB |
6032 | |
6033 | fi | |
1e6feb95 VZ |
6034 | |
6035 | ||
6036 | eval "$ac_cv_use_calendar" | |
6037 | if test "$no_cache" != 1; then | |
6038 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6039 | fi | |
6040 | ||
6041 | if test "$wxUSE_CALCTRL" = yes; then | |
a0b9e27f | 6042 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6043 | else |
a0b9e27f | 6044 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6045 | fi |
a0b9e27f | 6046 | |
1e6feb95 | 6047 | |
5005acfe VZ |
6048 | enablestring= |
6049 | echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6 | |
2b5f62a0 | 6050 | echo "configure:6051: checking for --${enablestring:-enable}-caret" >&5 |
1e6feb95 VZ |
6051 | no_cache=0 |
6052 | # Check whether --enable-caret or --disable-caret was given. | |
6053 | if test "${enable_caret+set}" = set; then | |
6054 | enableval="$enable_caret" | |
a0b9e27f | 6055 | |
1e6feb95 VZ |
6056 | if test "$enableval" = yes; then |
6057 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6058 | else | |
6059 | ac_cv_use_caret='wxUSE_CARET=no' | |
6060 | fi | |
a0b9e27f | 6061 | |
1e6feb95 | 6062 | else |
a0b9e27f | 6063 | |
1e6feb95 VZ |
6064 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6065 | if test "x$LINE" != x ; then | |
6066 | eval "DEFAULT_$LINE" | |
6067 | else | |
6068 | no_cache=1 | |
6069 | fi | |
6070 | ||
6071 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
a0b9e27f MB |
6072 | |
6073 | fi | |
1e6feb95 VZ |
6074 | |
6075 | ||
6076 | eval "$ac_cv_use_caret" | |
6077 | if test "$no_cache" != 1; then | |
6078 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6079 | fi | |
6080 | ||
6081 | if test "$wxUSE_CARET" = yes; then | |
a0b9e27f | 6082 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6083 | else |
a0b9e27f | 6084 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6085 | fi |
a0b9e27f | 6086 | |
1e6feb95 | 6087 | |
5005acfe VZ |
6088 | enablestring= |
6089 | echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6 | |
2b5f62a0 | 6090 | echo "configure:6091: checking for --${enablestring:-enable}-checkbox" >&5 |
10f2d63a VZ |
6091 | no_cache=0 |
6092 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6093 | if test "${enable_checkbox+set}" = set; then | |
6094 | enableval="$enable_checkbox" | |
a0b9e27f | 6095 | |
10f2d63a VZ |
6096 | if test "$enableval" = yes; then |
6097 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6098 | else | |
6099 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6100 | fi | |
a0b9e27f | 6101 | |
10f2d63a | 6102 | else |
a0b9e27f | 6103 | |
10f2d63a VZ |
6104 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6105 | if test "x$LINE" != x ; then | |
6106 | eval "DEFAULT_$LINE" | |
6107 | else | |
6108 | no_cache=1 | |
6109 | fi | |
6110 | ||
6111 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
a0b9e27f MB |
6112 | |
6113 | fi | |
10f2d63a VZ |
6114 | |
6115 | ||
6116 | eval "$ac_cv_use_checkbox" | |
6117 | if test "$no_cache" != 1; then | |
6118 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6119 | fi | |
6120 | ||
6121 | if test "$wxUSE_CHECKBOX" = yes; then | |
a0b9e27f | 6122 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6123 | else |
a0b9e27f | 6124 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6125 | fi |
a0b9e27f | 6126 | |
10f2d63a | 6127 | |
5005acfe VZ |
6128 | enablestring= |
6129 | echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6 | |
2b5f62a0 | 6130 | echo "configure:6131: checking for --${enablestring:-enable}-checklst" >&5 |
10f2d63a VZ |
6131 | no_cache=0 |
6132 | # Check whether --enable-checklst or --disable-checklst was given. | |
6133 | if test "${enable_checklst+set}" = set; then | |
6134 | enableval="$enable_checklst" | |
a0b9e27f | 6135 | |
10f2d63a VZ |
6136 | if test "$enableval" = yes; then |
6137 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6138 | else | |
6139 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6140 | fi | |
a0b9e27f | 6141 | |
10f2d63a | 6142 | else |
a0b9e27f | 6143 | |
10f2d63a VZ |
6144 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6145 | if test "x$LINE" != x ; then | |
6146 | eval "DEFAULT_$LINE" | |
6147 | else | |
6148 | no_cache=1 | |
6149 | fi | |
6150 | ||
6151 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
a0b9e27f MB |
6152 | |
6153 | fi | |
10f2d63a VZ |
6154 | |
6155 | ||
6156 | eval "$ac_cv_use_checklst" | |
6157 | if test "$no_cache" != 1; then | |
6158 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6159 | fi | |
6160 | ||
6161 | if test "$wxUSE_CHECKLST" = yes; then | |
a0b9e27f | 6162 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6163 | else |
a0b9e27f | 6164 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6165 | fi |
a0b9e27f | 6166 | |
10f2d63a | 6167 | |
5005acfe VZ |
6168 | enablestring= |
6169 | echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6 | |
2b5f62a0 | 6170 | echo "configure:6171: checking for --${enablestring:-enable}-choice" >&5 |
10f2d63a VZ |
6171 | no_cache=0 |
6172 | # Check whether --enable-choice or --disable-choice was given. | |
6173 | if test "${enable_choice+set}" = set; then | |
6174 | enableval="$enable_choice" | |
a0b9e27f | 6175 | |
10f2d63a VZ |
6176 | if test "$enableval" = yes; then |
6177 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6178 | else | |
6179 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6180 | fi | |
a0b9e27f | 6181 | |
10f2d63a | 6182 | else |
a0b9e27f | 6183 | |
10f2d63a VZ |
6184 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6185 | if test "x$LINE" != x ; then | |
6186 | eval "DEFAULT_$LINE" | |
6187 | else | |
6188 | no_cache=1 | |
6189 | fi | |
6190 | ||
6191 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
a0b9e27f MB |
6192 | |
6193 | fi | |
10f2d63a VZ |
6194 | |
6195 | ||
6196 | eval "$ac_cv_use_choice" | |
6197 | if test "$no_cache" != 1; then | |
6198 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6199 | fi | |
6200 | ||
6201 | if test "$wxUSE_CHOICE" = yes; then | |
a0b9e27f | 6202 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6203 | else |
a0b9e27f | 6204 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6205 | fi |
a0b9e27f | 6206 | |
10f2d63a | 6207 | |
5005acfe VZ |
6208 | enablestring= |
6209 | echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6 | |
2b5f62a0 | 6210 | echo "configure:6211: checking for --${enablestring:-enable}-combobox" >&5 |
10f2d63a VZ |
6211 | no_cache=0 |
6212 | # Check whether --enable-combobox or --disable-combobox was given. | |
6213 | if test "${enable_combobox+set}" = set; then | |
6214 | enableval="$enable_combobox" | |
a0b9e27f | 6215 | |
10f2d63a VZ |
6216 | if test "$enableval" = yes; then |
6217 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6218 | else | |
6219 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6220 | fi | |
a0b9e27f | 6221 | |
10f2d63a | 6222 | else |
a0b9e27f | 6223 | |
10f2d63a VZ |
6224 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6225 | if test "x$LINE" != x ; then | |
6226 | eval "DEFAULT_$LINE" | |
6227 | else | |
6228 | no_cache=1 | |
6229 | fi | |
6230 | ||
6231 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
a0b9e27f MB |
6232 | |
6233 | fi | |
10f2d63a VZ |
6234 | |
6235 | ||
6236 | eval "$ac_cv_use_combobox" | |
6237 | if test "$no_cache" != 1; then | |
6238 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6239 | fi | |
6240 | ||
6241 | if test "$wxUSE_COMBOBOX" = yes; then | |
a0b9e27f | 6242 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6243 | else |
a0b9e27f | 6244 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6245 | fi |
a0b9e27f | 6246 | |
10f2d63a | 6247 | |
5005acfe VZ |
6248 | enablestring= |
6249 | echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6 | |
2b5f62a0 | 6250 | echo "configure:6251: checking for --${enablestring:-enable}-gauge" >&5 |
10f2d63a VZ |
6251 | no_cache=0 |
6252 | # Check whether --enable-gauge or --disable-gauge was given. | |
6253 | if test "${enable_gauge+set}" = set; then | |
6254 | enableval="$enable_gauge" | |
a0b9e27f | 6255 | |
10f2d63a VZ |
6256 | if test "$enableval" = yes; then |
6257 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6258 | else | |
6259 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6260 | fi | |
a0b9e27f | 6261 | |
10f2d63a | 6262 | else |
a0b9e27f | 6263 | |
10f2d63a VZ |
6264 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6265 | if test "x$LINE" != x ; then | |
6266 | eval "DEFAULT_$LINE" | |
6267 | else | |
6268 | no_cache=1 | |
6269 | fi | |
6270 | ||
6271 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
a0b9e27f MB |
6272 | |
6273 | fi | |
10f2d63a VZ |
6274 | |
6275 | ||
6276 | eval "$ac_cv_use_gauge" | |
6277 | if test "$no_cache" != 1; then | |
6278 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6279 | fi | |
6280 | ||
6281 | if test "$wxUSE_GAUGE" = yes; then | |
a0b9e27f | 6282 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6283 | else |
a0b9e27f | 6284 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6285 | fi |
a0b9e27f | 6286 | |
10f2d63a | 6287 | |
5005acfe VZ |
6288 | enablestring= |
6289 | echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6 | |
2b5f62a0 | 6290 | echo "configure:6291: checking for --${enablestring:-enable}-grid" >&5 |
10f2d63a VZ |
6291 | no_cache=0 |
6292 | # Check whether --enable-grid or --disable-grid was given. | |
6293 | if test "${enable_grid+set}" = set; then | |
6294 | enableval="$enable_grid" | |
a0b9e27f | 6295 | |
10f2d63a VZ |
6296 | if test "$enableval" = yes; then |
6297 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6298 | else | |
6299 | ac_cv_use_grid='wxUSE_GRID=no' | |
6300 | fi | |
a0b9e27f | 6301 | |
10f2d63a | 6302 | else |
a0b9e27f | 6303 | |
10f2d63a VZ |
6304 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6305 | if test "x$LINE" != x ; then | |
6306 | eval "DEFAULT_$LINE" | |
6307 | else | |
6308 | no_cache=1 | |
6309 | fi | |
6310 | ||
6311 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
a0b9e27f MB |
6312 | |
6313 | fi | |
10f2d63a VZ |
6314 | |
6315 | ||
6316 | eval "$ac_cv_use_grid" | |
6317 | if test "$no_cache" != 1; then | |
6318 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6319 | fi | |
6320 | ||
6321 | if test "$wxUSE_GRID" = yes; then | |
a0b9e27f | 6322 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6323 | else |
a0b9e27f | 6324 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6325 | fi |
a0b9e27f | 6326 | |
10f2d63a | 6327 | |
5005acfe VZ |
6328 | enablestring= |
6329 | echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6 | |
2b5f62a0 | 6330 | echo "configure:6331: checking for --${enablestring:-enable}-newgrid" >&5 |
10f2d63a VZ |
6331 | no_cache=0 |
6332 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6333 | if test "${enable_newgrid+set}" = set; then | |
6334 | enableval="$enable_newgrid" | |
a0b9e27f | 6335 | |
10f2d63a VZ |
6336 | if test "$enableval" = yes; then |
6337 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6338 | else | |
6339 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6340 | fi | |
a0b9e27f | 6341 | |
10f2d63a | 6342 | else |
a0b9e27f | 6343 | |
10f2d63a VZ |
6344 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6345 | if test "x$LINE" != x ; then | |
6346 | eval "DEFAULT_$LINE" | |
6347 | else | |
6348 | no_cache=1 | |
6349 | fi | |
6350 | ||
6351 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
a0b9e27f MB |
6352 | |
6353 | fi | |
10f2d63a VZ |
6354 | |
6355 | ||
6356 | eval "$ac_cv_use_newgrid" | |
6357 | if test "$no_cache" != 1; then | |
6358 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6359 | fi | |
6360 | ||
6361 | if test "$wxUSE_NEW_GRID" = yes; then | |
a0b9e27f | 6362 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6363 | else |
a0b9e27f | 6364 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6365 | fi |
a0b9e27f | 6366 | |
10f2d63a | 6367 | |
5005acfe VZ |
6368 | enablestring= |
6369 | echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6 | |
2b5f62a0 | 6370 | echo "configure:6371: checking for --${enablestring:-enable}-imaglist" >&5 |
10f2d63a VZ |
6371 | no_cache=0 |
6372 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6373 | if test "${enable_imaglist+set}" = set; then | |
6374 | enableval="$enable_imaglist" | |
a0b9e27f | 6375 | |
10f2d63a VZ |
6376 | if test "$enableval" = yes; then |
6377 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6378 | else | |
6379 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6380 | fi | |
a0b9e27f | 6381 | |
10f2d63a | 6382 | else |
a0b9e27f | 6383 | |
10f2d63a VZ |
6384 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6385 | if test "x$LINE" != x ; then | |
6386 | eval "DEFAULT_$LINE" | |
6387 | else | |
6388 | no_cache=1 | |
6389 | fi | |
6390 | ||
6391 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
a0b9e27f MB |
6392 | |
6393 | fi | |
10f2d63a VZ |
6394 | |
6395 | ||
6396 | eval "$ac_cv_use_imaglist" | |
6397 | if test "$no_cache" != 1; then | |
6398 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6399 | fi | |
6400 | ||
6401 | if test "$wxUSE_IMAGLIST" = yes; then | |
a0b9e27f | 6402 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6403 | else |
a0b9e27f | 6404 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6405 | fi |
a0b9e27f | 6406 | |
10f2d63a | 6407 | |
5005acfe VZ |
6408 | enablestring= |
6409 | echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6 | |
2b5f62a0 | 6410 | echo "configure:6411: checking for --${enablestring:-enable}-listbox" >&5 |
10f2d63a VZ |
6411 | no_cache=0 |
6412 | # Check whether --enable-listbox or --disable-listbox was given. | |
6413 | if test "${enable_listbox+set}" = set; then | |
6414 | enableval="$enable_listbox" | |
a0b9e27f | 6415 | |
10f2d63a VZ |
6416 | if test "$enableval" = yes; then |
6417 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6418 | else | |
6419 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6420 | fi | |
a0b9e27f | 6421 | |
10f2d63a | 6422 | else |
a0b9e27f | 6423 | |
10f2d63a VZ |
6424 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6425 | if test "x$LINE" != x ; then | |
6426 | eval "DEFAULT_$LINE" | |
6427 | else | |
6428 | no_cache=1 | |
6429 | fi | |
6430 | ||
6431 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
a0b9e27f MB |
6432 | |
6433 | fi | |
10f2d63a VZ |
6434 | |
6435 | ||
6436 | eval "$ac_cv_use_listbox" | |
6437 | if test "$no_cache" != 1; then | |
6438 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6439 | fi | |
6440 | ||
6441 | if test "$wxUSE_LISTBOX" = yes; then | |
a0b9e27f | 6442 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6443 | else |
a0b9e27f | 6444 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6445 | fi |
a0b9e27f | 6446 | |
10f2d63a | 6447 | |
5005acfe VZ |
6448 | enablestring= |
6449 | echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6 | |
2b5f62a0 | 6450 | echo "configure:6451: checking for --${enablestring:-enable}-listctrl" >&5 |
10f2d63a VZ |
6451 | no_cache=0 |
6452 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6453 | if test "${enable_listctrl+set}" = set; then | |
6454 | enableval="$enable_listctrl" | |
a0b9e27f | 6455 | |
10f2d63a VZ |
6456 | if test "$enableval" = yes; then |
6457 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6458 | else | |
6459 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6460 | fi | |
a0b9e27f | 6461 | |
10f2d63a | 6462 | else |
a0b9e27f | 6463 | |
10f2d63a VZ |
6464 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6465 | if test "x$LINE" != x ; then | |
6466 | eval "DEFAULT_$LINE" | |
6467 | else | |
6468 | no_cache=1 | |
6469 | fi | |
6470 | ||
6471 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
a0b9e27f MB |
6472 | |
6473 | fi | |
10f2d63a VZ |
6474 | |
6475 | ||
6476 | eval "$ac_cv_use_listctrl" | |
6477 | if test "$no_cache" != 1; then | |
6478 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6479 | fi | |
6480 | ||
6481 | if test "$wxUSE_LISTCTRL" = yes; then | |
a0b9e27f | 6482 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6483 | else |
a0b9e27f | 6484 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6485 | fi |
a0b9e27f | 6486 | |
10f2d63a | 6487 | |
5005acfe VZ |
6488 | enablestring= |
6489 | echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6 | |
2b5f62a0 | 6490 | echo "configure:6491: checking for --${enablestring:-enable}-notebook" >&5 |
10f2d63a VZ |
6491 | no_cache=0 |
6492 | # Check whether --enable-notebook or --disable-notebook was given. | |
6493 | if test "${enable_notebook+set}" = set; then | |
6494 | enableval="$enable_notebook" | |
a0b9e27f | 6495 | |
10f2d63a VZ |
6496 | if test "$enableval" = yes; then |
6497 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6498 | else | |
6499 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6500 | fi | |
a0b9e27f | 6501 | |
10f2d63a | 6502 | else |
a0b9e27f | 6503 | |
10f2d63a VZ |
6504 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6505 | if test "x$LINE" != x ; then | |
6506 | eval "DEFAULT_$LINE" | |
6507 | else | |
6508 | no_cache=1 | |
6509 | fi | |
6510 | ||
6511 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
a0b9e27f MB |
6512 | |
6513 | fi | |
10f2d63a VZ |
6514 | |
6515 | ||
6516 | eval "$ac_cv_use_notebook" | |
6517 | if test "$no_cache" != 1; then | |
6518 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6519 | fi | |
6520 | ||
6521 | if test "$wxUSE_NOTEBOOK" = yes; then | |
a0b9e27f | 6522 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6523 | else |
a0b9e27f | 6524 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6525 | fi |
a0b9e27f | 6526 | |
10f2d63a | 6527 | |
5005acfe VZ |
6528 | enablestring= |
6529 | echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6 | |
2b5f62a0 | 6530 | echo "configure:6531: checking for --${enablestring:-enable}-propsheet" >&5 |
24176f2c GD |
6531 | no_cache=0 |
6532 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6533 | if test "${enable_propsheet+set}" = set; then | |
6534 | enableval="$enable_propsheet" | |
a0b9e27f | 6535 | |
24176f2c GD |
6536 | if test "$enableval" = yes; then |
6537 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6538 | else | |
6539 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6540 | fi | |
a0b9e27f | 6541 | |
24176f2c | 6542 | else |
a0b9e27f | 6543 | |
24176f2c GD |
6544 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` |
6545 | if test "x$LINE" != x ; then | |
6546 | eval "DEFAULT_$LINE" | |
6547 | else | |
6548 | no_cache=1 | |
6549 | fi | |
6550 | ||
6551 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
a0b9e27f MB |
6552 | |
6553 | fi | |
24176f2c GD |
6554 | |
6555 | ||
6556 | eval "$ac_cv_use_propsheet" | |
6557 | if test "$no_cache" != 1; then | |
6558 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6559 | fi | |
6560 | ||
6561 | if test "$wxUSE_PROPSHEET" = yes; then | |
a0b9e27f | 6562 | echo "$ac_t""yes" 1>&6 |
24176f2c | 6563 | else |
a0b9e27f | 6564 | echo "$ac_t""no" 1>&6 |
24176f2c | 6565 | fi |
a0b9e27f | 6566 | |
24176f2c | 6567 | |
5005acfe VZ |
6568 | enablestring= |
6569 | echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6 | |
2b5f62a0 | 6570 | echo "configure:6571: checking for --${enablestring:-enable}-radiobox" >&5 |
10f2d63a VZ |
6571 | no_cache=0 |
6572 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6573 | if test "${enable_radiobox+set}" = set; then | |
6574 | enableval="$enable_radiobox" | |
a0b9e27f | 6575 | |
10f2d63a VZ |
6576 | if test "$enableval" = yes; then |
6577 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6578 | else | |
6579 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6580 | fi | |
a0b9e27f | 6581 | |
10f2d63a | 6582 | else |
a0b9e27f | 6583 | |
10f2d63a VZ |
6584 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6585 | if test "x$LINE" != x ; then | |
6586 | eval "DEFAULT_$LINE" | |
6587 | else | |
6588 | no_cache=1 | |
6589 | fi | |
6590 | ||
6591 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
a0b9e27f MB |
6592 | |
6593 | fi | |
10f2d63a VZ |
6594 | |
6595 | ||
6596 | eval "$ac_cv_use_radiobox" | |
6597 | if test "$no_cache" != 1; then | |
6598 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6599 | fi | |
6600 | ||
6601 | if test "$wxUSE_RADIOBOX" = yes; then | |
a0b9e27f | 6602 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6603 | else |
a0b9e27f | 6604 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6605 | fi |
a0b9e27f | 6606 | |
10f2d63a | 6607 | |
5005acfe VZ |
6608 | enablestring= |
6609 | echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6 | |
2b5f62a0 | 6610 | echo "configure:6611: checking for --${enablestring:-enable}-radiobtn" >&5 |
10f2d63a VZ |
6611 | no_cache=0 |
6612 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6613 | if test "${enable_radiobtn+set}" = set; then | |
6614 | enableval="$enable_radiobtn" | |
a0b9e27f | 6615 | |
10f2d63a VZ |
6616 | if test "$enableval" = yes; then |
6617 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6618 | else | |
6619 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6620 | fi | |
a0b9e27f | 6621 | |
10f2d63a | 6622 | else |
a0b9e27f | 6623 | |
10f2d63a VZ |
6624 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6625 | if test "x$LINE" != x ; then | |
6626 | eval "DEFAULT_$LINE" | |
6627 | else | |
6628 | no_cache=1 | |
6629 | fi | |
6630 | ||
6631 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
a0b9e27f MB |
6632 | |
6633 | fi | |
10f2d63a VZ |
6634 | |
6635 | ||
6636 | eval "$ac_cv_use_radiobtn" | |
6637 | if test "$no_cache" != 1; then | |
6638 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6639 | fi | |
6640 | ||
6641 | if test "$wxUSE_RADIOBTN" = yes; then | |
a0b9e27f | 6642 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6643 | else |
a0b9e27f | 6644 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6645 | fi |
a0b9e27f | 6646 | |
10f2d63a | 6647 | |
5005acfe VZ |
6648 | enablestring= |
6649 | echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6 | |
2b5f62a0 | 6650 | echo "configure:6651: checking for --${enablestring:-enable}-sash" >&5 |
10f2d63a VZ |
6651 | no_cache=0 |
6652 | # Check whether --enable-sash or --disable-sash was given. | |
6653 | if test "${enable_sash+set}" = set; then | |
6654 | enableval="$enable_sash" | |
a0b9e27f | 6655 | |
10f2d63a VZ |
6656 | if test "$enableval" = yes; then |
6657 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6658 | else | |
6659 | ac_cv_use_sash='wxUSE_SASH=no' | |
6660 | fi | |
a0b9e27f | 6661 | |
10f2d63a | 6662 | else |
a0b9e27f | 6663 | |
10f2d63a VZ |
6664 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6665 | if test "x$LINE" != x ; then | |
6666 | eval "DEFAULT_$LINE" | |
6667 | else | |
6668 | no_cache=1 | |
6669 | fi | |
6670 | ||
6671 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
a0b9e27f MB |
6672 | |
6673 | fi | |
10f2d63a VZ |
6674 | |
6675 | ||
6676 | eval "$ac_cv_use_sash" | |
6677 | if test "$no_cache" != 1; then | |
6678 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6679 | fi | |
6680 | ||
6681 | if test "$wxUSE_SASH" = yes; then | |
a0b9e27f | 6682 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6683 | else |
a0b9e27f | 6684 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6685 | fi |
a0b9e27f | 6686 | |
10f2d63a | 6687 | |
5005acfe VZ |
6688 | enablestring= |
6689 | echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6 | |
2b5f62a0 | 6690 | echo "configure:6691: checking for --${enablestring:-enable}-scrollbar" >&5 |
10f2d63a VZ |
6691 | no_cache=0 |
6692 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6693 | if test "${enable_scrollbar+set}" = set; then | |
6694 | enableval="$enable_scrollbar" | |
a0b9e27f | 6695 | |
10f2d63a VZ |
6696 | if test "$enableval" = yes; then |
6697 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6698 | else | |
6699 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6700 | fi | |
a0b9e27f | 6701 | |
10f2d63a | 6702 | else |
a0b9e27f | 6703 | |
10f2d63a VZ |
6704 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6705 | if test "x$LINE" != x ; then | |
6706 | eval "DEFAULT_$LINE" | |
6707 | else | |
6708 | no_cache=1 | |
6709 | fi | |
6710 | ||
6711 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
a0b9e27f MB |
6712 | |
6713 | fi | |
10f2d63a VZ |
6714 | |
6715 | ||
6716 | eval "$ac_cv_use_scrollbar" | |
6717 | if test "$no_cache" != 1; then | |
6718 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6719 | fi | |
6720 | ||
6721 | if test "$wxUSE_SCROLLBAR" = yes; then | |
a0b9e27f | 6722 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6723 | else |
a0b9e27f | 6724 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6725 | fi |
a0b9e27f | 6726 | |
10f2d63a | 6727 | |
5005acfe VZ |
6728 | enablestring= |
6729 | echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6 | |
2b5f62a0 | 6730 | echo "configure:6731: checking for --${enablestring:-enable}-slider" >&5 |
10f2d63a VZ |
6731 | no_cache=0 |
6732 | # Check whether --enable-slider or --disable-slider was given. | |
6733 | if test "${enable_slider+set}" = set; then | |
6734 | enableval="$enable_slider" | |
a0b9e27f | 6735 | |
10f2d63a VZ |
6736 | if test "$enableval" = yes; then |
6737 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6738 | else | |
6739 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6740 | fi | |
a0b9e27f | 6741 | |
10f2d63a | 6742 | else |
a0b9e27f | 6743 | |
10f2d63a VZ |
6744 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6745 | if test "x$LINE" != x ; then | |
6746 | eval "DEFAULT_$LINE" | |
6747 | else | |
6748 | no_cache=1 | |
6749 | fi | |
6750 | ||
6751 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
a0b9e27f MB |
6752 | |
6753 | fi | |
10f2d63a VZ |
6754 | |
6755 | ||
6756 | eval "$ac_cv_use_slider" | |
6757 | if test "$no_cache" != 1; then | |
6758 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6759 | fi | |
6760 | ||
6761 | if test "$wxUSE_SLIDER" = yes; then | |
a0b9e27f | 6762 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6763 | else |
a0b9e27f | 6764 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6765 | fi |
a0b9e27f | 6766 | |
10f2d63a | 6767 | |
5005acfe VZ |
6768 | enablestring= |
6769 | echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6 | |
2b5f62a0 | 6770 | echo "configure:6771: checking for --${enablestring:-enable}-spinbtn" >&5 |
10f2d63a VZ |
6771 | no_cache=0 |
6772 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6773 | if test "${enable_spinbtn+set}" = set; then | |
6774 | enableval="$enable_spinbtn" | |
a0b9e27f | 6775 | |
10f2d63a VZ |
6776 | if test "$enableval" = yes; then |
6777 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6778 | else | |
6779 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6780 | fi | |
a0b9e27f | 6781 | |
10f2d63a | 6782 | else |
a0b9e27f | 6783 | |
10f2d63a VZ |
6784 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6785 | if test "x$LINE" != x ; then | |
6786 | eval "DEFAULT_$LINE" | |
6787 | else | |
6788 | no_cache=1 | |
6789 | fi | |
6790 | ||
6791 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
a0b9e27f MB |
6792 | |
6793 | fi | |
10f2d63a VZ |
6794 | |
6795 | ||
6796 | eval "$ac_cv_use_spinbtn" | |
6797 | if test "$no_cache" != 1; then | |
6798 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6799 | fi | |
6800 | ||
6801 | if test "$wxUSE_SPINBTN" = yes; then | |
a0b9e27f | 6802 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6803 | else |
a0b9e27f | 6804 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6805 | fi |
a0b9e27f | 6806 | |
10f2d63a | 6807 | |
5005acfe VZ |
6808 | enablestring= |
6809 | echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6 | |
2b5f62a0 | 6810 | echo "configure:6811: checking for --${enablestring:-enable}-spinctrl" >&5 |
56cfaa52 RR |
6811 | no_cache=0 |
6812 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6813 | if test "${enable_spinctrl+set}" = set; then | |
6814 | enableval="$enable_spinctrl" | |
a0b9e27f | 6815 | |
56cfaa52 RR |
6816 | if test "$enableval" = yes; then |
6817 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6818 | else | |
6819 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6820 | fi | |
a0b9e27f | 6821 | |
56cfaa52 | 6822 | else |
a0b9e27f | 6823 | |
56cfaa52 RR |
6824 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6825 | if test "x$LINE" != x ; then | |
6826 | eval "DEFAULT_$LINE" | |
6827 | else | |
6828 | no_cache=1 | |
6829 | fi | |
6830 | ||
6831 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
a0b9e27f MB |
6832 | |
6833 | fi | |
56cfaa52 RR |
6834 | |
6835 | ||
6836 | eval "$ac_cv_use_spinctrl" | |
6837 | if test "$no_cache" != 1; then | |
6838 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6839 | fi | |
6840 | ||
6841 | if test "$wxUSE_SPINCTRL" = yes; then | |
a0b9e27f | 6842 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6843 | else |
a0b9e27f | 6844 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6845 | fi |
a0b9e27f | 6846 | |
56cfaa52 | 6847 | |
5005acfe VZ |
6848 | enablestring= |
6849 | echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6 | |
2b5f62a0 | 6850 | echo "configure:6851: checking for --${enablestring:-enable}-splitter" >&5 |
10f2d63a VZ |
6851 | no_cache=0 |
6852 | # Check whether --enable-splitter or --disable-splitter was given. | |
6853 | if test "${enable_splitter+set}" = set; then | |
6854 | enableval="$enable_splitter" | |
a0b9e27f | 6855 | |
10f2d63a VZ |
6856 | if test "$enableval" = yes; then |
6857 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6858 | else | |
6859 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6860 | fi | |
a0b9e27f | 6861 | |
10f2d63a | 6862 | else |
a0b9e27f | 6863 | |
10f2d63a VZ |
6864 | LINE=`grep "wxUSE_SPLITTER" ${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_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
a0b9e27f MB |
6872 | |
6873 | fi | |
10f2d63a VZ |
6874 | |
6875 | ||
6876 | eval "$ac_cv_use_splitter" | |
6877 | if test "$no_cache" != 1; then | |
6878 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6879 | fi | |
6880 | ||
6881 | if test "$wxUSE_SPLITTER" = 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 | |
5005acfe VZ |
6888 | enablestring= |
6889 | echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6 | |
2b5f62a0 | 6890 | echo "configure:6891: checking for --${enablestring:-enable}-statbmp" >&5 |
10f2d63a VZ |
6891 | no_cache=0 |
6892 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6893 | if test "${enable_statbmp+set}" = set; then | |
6894 | enableval="$enable_statbmp" | |
a0b9e27f | 6895 | |
10f2d63a VZ |
6896 | if test "$enableval" = yes; then |
6897 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6898 | else | |
6899 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6900 | fi | |
a0b9e27f | 6901 | |
10f2d63a | 6902 | else |
a0b9e27f | 6903 | |
10f2d63a VZ |
6904 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6905 | if test "x$LINE" != x ; then | |
6906 | eval "DEFAULT_$LINE" | |
6907 | else | |
6908 | no_cache=1 | |
6909 | fi | |
6910 | ||
6911 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
a0b9e27f MB |
6912 | |
6913 | fi | |
10f2d63a VZ |
6914 | |
6915 | ||
6916 | eval "$ac_cv_use_statbmp" | |
6917 | if test "$no_cache" != 1; then | |
6918 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6919 | fi | |
6920 | ||
6921 | if test "$wxUSE_STATBMP" = yes; then | |
a0b9e27f | 6922 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6923 | else |
a0b9e27f | 6924 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6925 | fi |
a0b9e27f | 6926 | |
10f2d63a | 6927 | |
5005acfe VZ |
6928 | enablestring= |
6929 | echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6 | |
2b5f62a0 | 6930 | echo "configure:6931: checking for --${enablestring:-enable}-statbox" >&5 |
10f2d63a VZ |
6931 | no_cache=0 |
6932 | # Check whether --enable-statbox or --disable-statbox was given. | |
6933 | if test "${enable_statbox+set}" = set; then | |
6934 | enableval="$enable_statbox" | |
a0b9e27f | 6935 | |
10f2d63a VZ |
6936 | if test "$enableval" = yes; then |
6937 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6938 | else | |
6939 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6940 | fi | |
a0b9e27f | 6941 | |
10f2d63a | 6942 | else |
a0b9e27f | 6943 | |
10f2d63a VZ |
6944 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6945 | if test "x$LINE" != x ; then | |
6946 | eval "DEFAULT_$LINE" | |
6947 | else | |
6948 | no_cache=1 | |
6949 | fi | |
6950 | ||
6951 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
a0b9e27f MB |
6952 | |
6953 | fi | |
10f2d63a VZ |
6954 | |
6955 | ||
6956 | eval "$ac_cv_use_statbox" | |
6957 | if test "$no_cache" != 1; then | |
6958 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6959 | fi | |
6960 | ||
6961 | if test "$wxUSE_STATBOX" = yes; then | |
a0b9e27f | 6962 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6963 | else |
a0b9e27f | 6964 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6965 | fi |
a0b9e27f | 6966 | |
10f2d63a | 6967 | |
5005acfe VZ |
6968 | enablestring= |
6969 | echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6 | |
2b5f62a0 | 6970 | echo "configure:6971: checking for --${enablestring:-enable}-statline" >&5 |
10f2d63a VZ |
6971 | no_cache=0 |
6972 | # Check whether --enable-statline or --disable-statline was given. | |
6973 | if test "${enable_statline+set}" = set; then | |
6974 | enableval="$enable_statline" | |
a0b9e27f | 6975 | |
10f2d63a VZ |
6976 | if test "$enableval" = yes; then |
6977 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6978 | else | |
6979 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6980 | fi | |
a0b9e27f | 6981 | |
10f2d63a | 6982 | else |
a0b9e27f | 6983 | |
10f2d63a VZ |
6984 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6985 | if test "x$LINE" != x ; then | |
6986 | eval "DEFAULT_$LINE" | |
6987 | else | |
6988 | no_cache=1 | |
6989 | fi | |
6990 | ||
6991 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
a0b9e27f MB |
6992 | |
6993 | fi | |
10f2d63a VZ |
6994 | |
6995 | ||
6996 | eval "$ac_cv_use_statline" | |
6997 | if test "$no_cache" != 1; then | |
6998 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6999 | fi | |
7000 | ||
7001 | if test "$wxUSE_STATLINE" = yes; then | |
a0b9e27f | 7002 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7003 | else |
a0b9e27f | 7004 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7005 | fi |
a0b9e27f | 7006 | |
10f2d63a | 7007 | |
5005acfe VZ |
7008 | enablestring= |
7009 | echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6 | |
2b5f62a0 | 7010 | echo "configure:7011: checking for --${enablestring:-enable}-stattext" >&5 |
1e6feb95 VZ |
7011 | no_cache=0 |
7012 | # Check whether --enable-stattext or --disable-stattext was given. | |
7013 | if test "${enable_stattext+set}" = set; then | |
7014 | enableval="$enable_stattext" | |
a0b9e27f | 7015 | |
1e6feb95 VZ |
7016 | if test "$enableval" = yes; then |
7017 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7018 | else | |
7019 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7020 | fi | |
a0b9e27f | 7021 | |
1e6feb95 | 7022 | else |
a0b9e27f | 7023 | |
1e6feb95 VZ |
7024 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7025 | if test "x$LINE" != x ; then | |
7026 | eval "DEFAULT_$LINE" | |
7027 | else | |
7028 | no_cache=1 | |
7029 | fi | |
7030 | ||
7031 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
a0b9e27f MB |
7032 | |
7033 | fi | |
1e6feb95 VZ |
7034 | |
7035 | ||
7036 | eval "$ac_cv_use_stattext" | |
7037 | if test "$no_cache" != 1; then | |
7038 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7039 | fi | |
7040 | ||
7041 | if test "$wxUSE_STATTEXT" = yes; then | |
a0b9e27f | 7042 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7043 | else |
a0b9e27f | 7044 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7045 | fi |
a0b9e27f | 7046 | |
1e6feb95 | 7047 | |
5005acfe VZ |
7048 | enablestring= |
7049 | echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6 | |
2b5f62a0 | 7050 | echo "configure:7051: checking for --${enablestring:-enable}-statusbar" >&5 |
10f2d63a VZ |
7051 | no_cache=0 |
7052 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7053 | if test "${enable_statusbar+set}" = set; then | |
7054 | enableval="$enable_statusbar" | |
a0b9e27f | 7055 | |
10f2d63a VZ |
7056 | if test "$enableval" = yes; then |
7057 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7058 | else | |
7059 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7060 | fi | |
a0b9e27f | 7061 | |
10f2d63a | 7062 | else |
a0b9e27f | 7063 | |
10f2d63a VZ |
7064 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7065 | if test "x$LINE" != x ; then | |
7066 | eval "DEFAULT_$LINE" | |
7067 | else | |
7068 | no_cache=1 | |
7069 | fi | |
7070 | ||
7071 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
a0b9e27f MB |
7072 | |
7073 | fi | |
10f2d63a VZ |
7074 | |
7075 | ||
7076 | eval "$ac_cv_use_statusbar" | |
7077 | if test "$no_cache" != 1; then | |
7078 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7079 | fi | |
7080 | ||
7081 | if test "$wxUSE_STATUSBAR" = yes; then | |
a0b9e27f | 7082 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7083 | else |
a0b9e27f | 7084 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7085 | fi |
a0b9e27f | 7086 | |
10f2d63a | 7087 | |
5005acfe VZ |
7088 | enablestring= |
7089 | echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6 | |
2b5f62a0 | 7090 | echo "configure:7091: checking for --${enablestring:-enable}-tabdialog" >&5 |
10f2d63a VZ |
7091 | no_cache=0 |
7092 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7093 | if test "${enable_tabdialog+set}" = set; then | |
7094 | enableval="$enable_tabdialog" | |
a0b9e27f | 7095 | |
10f2d63a VZ |
7096 | if test "$enableval" = yes; then |
7097 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7098 | else | |
7099 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7100 | fi | |
a0b9e27f | 7101 | |
10f2d63a | 7102 | else |
a0b9e27f | 7103 | |
10f2d63a VZ |
7104 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7105 | if test "x$LINE" != x ; then | |
7106 | eval "DEFAULT_$LINE" | |
7107 | else | |
7108 | no_cache=1 | |
7109 | fi | |
7110 | ||
7111 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
a0b9e27f MB |
7112 | |
7113 | fi | |
10f2d63a VZ |
7114 | |
7115 | ||
7116 | eval "$ac_cv_use_tabdialog" | |
7117 | if test "$no_cache" != 1; then | |
7118 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7119 | fi | |
7120 | ||
7121 | if test "$wxUSE_TABDIALOG" = yes; then | |
a0b9e27f | 7122 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7123 | else |
a0b9e27f | 7124 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7125 | fi |
a0b9e27f | 7126 | |
10f2d63a | 7127 | |
5005acfe VZ |
7128 | enablestring= |
7129 | echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6 | |
2b5f62a0 | 7130 | echo "configure:7131: checking for --${enablestring:-enable}-textctrl" >&5 |
1e6feb95 VZ |
7131 | no_cache=0 |
7132 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7133 | if test "${enable_textctrl+set}" = set; then | |
7134 | enableval="$enable_textctrl" | |
a0b9e27f | 7135 | |
1e6feb95 VZ |
7136 | if test "$enableval" = yes; then |
7137 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7138 | else | |
7139 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7140 | fi | |
a0b9e27f | 7141 | |
1e6feb95 | 7142 | else |
a0b9e27f | 7143 | |
1e6feb95 VZ |
7144 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7145 | if test "x$LINE" != x ; then | |
7146 | eval "DEFAULT_$LINE" | |
7147 | else | |
7148 | no_cache=1 | |
7149 | fi | |
7150 | ||
7151 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
a0b9e27f MB |
7152 | |
7153 | fi | |
1e6feb95 VZ |
7154 | |
7155 | ||
7156 | eval "$ac_cv_use_textctrl" | |
7157 | if test "$no_cache" != 1; then | |
7158 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7159 | fi | |
7160 | ||
7161 | if test "$wxUSE_TEXTCTRL" = yes; then | |
a0b9e27f | 7162 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7163 | else |
a0b9e27f | 7164 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7165 | fi |
a0b9e27f | 7166 | |
1e6feb95 | 7167 | |
5005acfe VZ |
7168 | enablestring= |
7169 | echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6 | |
2b5f62a0 | 7170 | echo "configure:7171: checking for --${enablestring:-enable}-togglebtn" >&5 |
1db8dc4a VZ |
7171 | no_cache=0 |
7172 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7173 | if test "${enable_togglebtn+set}" = set; then | |
7174 | enableval="$enable_togglebtn" | |
a0b9e27f | 7175 | |
1db8dc4a VZ |
7176 | if test "$enableval" = yes; then |
7177 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7178 | else | |
7179 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7180 | fi | |
a0b9e27f | 7181 | |
1db8dc4a | 7182 | else |
a0b9e27f | 7183 | |
1db8dc4a VZ |
7184 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7185 | if test "x$LINE" != x ; then | |
7186 | eval "DEFAULT_$LINE" | |
7187 | else | |
7188 | no_cache=1 | |
7189 | fi | |
7190 | ||
7191 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
a0b9e27f MB |
7192 | |
7193 | fi | |
1db8dc4a VZ |
7194 | |
7195 | ||
7196 | eval "$ac_cv_use_togglebtn" | |
7197 | if test "$no_cache" != 1; then | |
7198 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7199 | fi | |
7200 | ||
7201 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
a0b9e27f | 7202 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7203 | else |
a0b9e27f | 7204 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7205 | fi |
a0b9e27f | 7206 | |
1db8dc4a | 7207 | |
5005acfe VZ |
7208 | enablestring= |
7209 | echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6 | |
2b5f62a0 | 7210 | echo "configure:7211: checking for --${enablestring:-enable}-toolbar" >&5 |
10f2d63a VZ |
7211 | no_cache=0 |
7212 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7213 | if test "${enable_toolbar+set}" = set; then | |
7214 | enableval="$enable_toolbar" | |
a0b9e27f | 7215 | |
10f2d63a VZ |
7216 | if test "$enableval" = yes; then |
7217 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7218 | else | |
7219 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7220 | fi | |
a0b9e27f | 7221 | |
10f2d63a | 7222 | else |
a0b9e27f | 7223 | |
10f2d63a VZ |
7224 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7225 | if test "x$LINE" != x ; then | |
7226 | eval "DEFAULT_$LINE" | |
7227 | else | |
7228 | no_cache=1 | |
7229 | fi | |
7230 | ||
7231 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
a0b9e27f MB |
7232 | |
7233 | fi | |
10f2d63a VZ |
7234 | |
7235 | ||
7236 | eval "$ac_cv_use_toolbar" | |
7237 | if test "$no_cache" != 1; then | |
7238 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7239 | fi | |
7240 | ||
7241 | if test "$wxUSE_TOOLBAR" = yes; then | |
a0b9e27f | 7242 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7243 | else |
a0b9e27f | 7244 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7245 | fi |
a0b9e27f | 7246 | |
10f2d63a | 7247 | |
5005acfe VZ |
7248 | enablestring= |
7249 | echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6 | |
2b5f62a0 | 7250 | echo "configure:7251: checking for --${enablestring:-enable}-tbarnative" >&5 |
360d6699 VZ |
7251 | no_cache=0 |
7252 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7253 | if test "${enable_tbarnative+set}" = set; then | |
7254 | enableval="$enable_tbarnative" | |
a0b9e27f | 7255 | |
360d6699 VZ |
7256 | if test "$enableval" = yes; then |
7257 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7258 | else | |
7259 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7260 | fi | |
a0b9e27f | 7261 | |
360d6699 | 7262 | else |
a0b9e27f | 7263 | |
360d6699 VZ |
7264 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7265 | if test "x$LINE" != x ; then | |
7266 | eval "DEFAULT_$LINE" | |
7267 | else | |
7268 | no_cache=1 | |
7269 | fi | |
7270 | ||
7271 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
a0b9e27f MB |
7272 | |
7273 | fi | |
360d6699 VZ |
7274 | |
7275 | ||
7276 | eval "$ac_cv_use_tbarnative" | |
7277 | if test "$no_cache" != 1; then | |
7278 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7279 | fi | |
7280 | ||
7281 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
a0b9e27f | 7282 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7283 | else |
a0b9e27f | 7284 | echo "$ac_t""no" 1>&6 |
360d6699 | 7285 | fi |
a0b9e27f | 7286 | |
360d6699 | 7287 | |
5005acfe VZ |
7288 | enablestring= |
7289 | echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6 | |
2b5f62a0 | 7290 | echo "configure:7291: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
360d6699 VZ |
7291 | no_cache=0 |
7292 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7293 | if test "${enable_tbarsmpl+set}" = set; then | |
7294 | enableval="$enable_tbarsmpl" | |
a0b9e27f | 7295 | |
360d6699 VZ |
7296 | if test "$enableval" = yes; then |
7297 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7298 | else | |
7299 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7300 | fi | |
a0b9e27f | 7301 | |
360d6699 | 7302 | else |
a0b9e27f | 7303 | |
360d6699 VZ |
7304 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7305 | if test "x$LINE" != x ; then | |
7306 | eval "DEFAULT_$LINE" | |
7307 | else | |
7308 | no_cache=1 | |
7309 | fi | |
7310 | ||
7311 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
a0b9e27f MB |
7312 | |
7313 | fi | |
360d6699 VZ |
7314 | |
7315 | ||
7316 | eval "$ac_cv_use_tbarsmpl" | |
7317 | if test "$no_cache" != 1; then | |
7318 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7319 | fi | |
7320 | ||
7321 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
a0b9e27f | 7322 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7323 | else |
a0b9e27f | 7324 | echo "$ac_t""no" 1>&6 |
360d6699 | 7325 | fi |
a0b9e27f | 7326 | |
360d6699 | 7327 | |
5005acfe VZ |
7328 | enablestring= |
7329 | echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6 | |
2b5f62a0 | 7330 | echo "configure:7331: checking for --${enablestring:-enable}-treectrl" >&5 |
10f2d63a VZ |
7331 | no_cache=0 |
7332 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7333 | if test "${enable_treectrl+set}" = set; then | |
7334 | enableval="$enable_treectrl" | |
a0b9e27f | 7335 | |
10f2d63a VZ |
7336 | if test "$enableval" = yes; then |
7337 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7338 | else | |
7339 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7340 | fi | |
a0b9e27f | 7341 | |
10f2d63a | 7342 | else |
a0b9e27f | 7343 | |
10f2d63a VZ |
7344 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7345 | if test "x$LINE" != x ; then | |
7346 | eval "DEFAULT_$LINE" | |
7347 | else | |
7348 | no_cache=1 | |
7349 | fi | |
7350 | ||
7351 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
a0b9e27f MB |
7352 | |
7353 | fi | |
10f2d63a VZ |
7354 | |
7355 | ||
1e6feb95 VZ |
7356 | eval "$ac_cv_use_treectrl" |
7357 | if test "$no_cache" != 1; then | |
7358 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7359 | fi | |
7360 | ||
7361 | if test "$wxUSE_TREECTRL" = yes; then | |
a0b9e27f | 7362 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7363 | else |
a0b9e27f | 7364 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7365 | fi |
a0b9e27f | 7366 | |
1e6feb95 | 7367 | |
5005acfe VZ |
7368 | enablestring= |
7369 | echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6 | |
2b5f62a0 | 7370 | echo "configure:7371: checking for --${enablestring:-enable}-tipwindow" >&5 |
9926e4a4 VZ |
7371 | no_cache=0 |
7372 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7373 | if test "${enable_tipwindow+set}" = set; then | |
7374 | enableval="$enable_tipwindow" | |
a0b9e27f | 7375 | |
9926e4a4 VZ |
7376 | if test "$enableval" = yes; then |
7377 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7378 | else | |
7379 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7380 | fi | |
a0b9e27f | 7381 | |
9926e4a4 | 7382 | else |
a0b9e27f | 7383 | |
9926e4a4 VZ |
7384 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7385 | if test "x$LINE" != x ; then | |
7386 | eval "DEFAULT_$LINE" | |
7387 | else | |
7388 | no_cache=1 | |
7389 | fi | |
7390 | ||
7391 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
a0b9e27f MB |
7392 | |
7393 | fi | |
9926e4a4 VZ |
7394 | |
7395 | ||
7396 | eval "$ac_cv_use_tipwindow" | |
7397 | if test "$no_cache" != 1; then | |
7398 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7399 | fi | |
7400 | ||
7401 | if test "$wxUSE_TIPWINDOW" = yes; then | |
a0b9e27f | 7402 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7403 | else |
a0b9e27f | 7404 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7405 | fi |
a0b9e27f | 7406 | |
9926e4a4 | 7407 | |
5005acfe VZ |
7408 | enablestring= |
7409 | echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6 | |
2b5f62a0 | 7410 | echo "configure:7411: checking for --${enablestring:-enable}-popupwin" >&5 |
9f41d601 RR |
7411 | no_cache=0 |
7412 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7413 | if test "${enable_popupwin+set}" = set; then | |
7414 | enableval="$enable_popupwin" | |
a0b9e27f | 7415 | |
9f41d601 RR |
7416 | if test "$enableval" = yes; then |
7417 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7418 | else | |
7419 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7420 | fi | |
a0b9e27f | 7421 | |
9f41d601 | 7422 | else |
a0b9e27f | 7423 | |
9f41d601 RR |
7424 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7425 | if test "x$LINE" != x ; then | |
7426 | eval "DEFAULT_$LINE" | |
7427 | else | |
7428 | no_cache=1 | |
7429 | fi | |
7430 | ||
7431 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
a0b9e27f MB |
7432 | |
7433 | fi | |
9f41d601 RR |
7434 | |
7435 | ||
7436 | eval "$ac_cv_use_popupwin" | |
7437 | if test "$no_cache" != 1; then | |
7438 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7439 | fi | |
7440 | ||
7441 | if test "$wxUSE_POPUPWIN" = yes; then | |
a0b9e27f | 7442 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7443 | else |
a0b9e27f | 7444 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7445 | fi |
a0b9e27f | 7446 | |
52127426 | 7447 | |
8284b0c5 MB |
7448 | |
7449 | ||
5005acfe VZ |
7450 | enablestring= |
7451 | echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7452 | echo "configure:7453: checking for --${enablestring:-enable}-commondlg" >&5 |
1e6feb95 VZ |
7453 | no_cache=0 |
7454 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7455 | if test "${enable_commondlg+set}" = set; then | |
7456 | enableval="$enable_commondlg" | |
a0b9e27f | 7457 | |
1e6feb95 VZ |
7458 | if test "$enableval" = yes; then |
7459 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7460 | else | |
7461 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7462 | fi | |
a0b9e27f | 7463 | |
1e6feb95 | 7464 | else |
a0b9e27f | 7465 | |
1e6feb95 VZ |
7466 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7467 | if test "x$LINE" != x ; then | |
7468 | eval "DEFAULT_$LINE" | |
7469 | else | |
7470 | no_cache=1 | |
7471 | fi | |
7472 | ||
7473 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
a0b9e27f MB |
7474 | |
7475 | fi | |
1e6feb95 VZ |
7476 | |
7477 | ||
7478 | eval "$ac_cv_use_commondlg" | |
7479 | if test "$no_cache" != 1; then | |
7480 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7481 | fi | |
7482 | ||
7483 | if test "$wxUSE_COMMONDLGS" = yes; then | |
a0b9e27f | 7484 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7485 | else |
a0b9e27f | 7486 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7487 | fi |
a0b9e27f | 7488 | |
1e6feb95 | 7489 | |
5005acfe VZ |
7490 | enablestring= |
7491 | echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7492 | echo "configure:7493: checking for --${enablestring:-enable}-choicedlg" >&5 |
1e6feb95 VZ |
7493 | no_cache=0 |
7494 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7495 | if test "${enable_choicedlg+set}" = set; then | |
7496 | enableval="$enable_choicedlg" | |
a0b9e27f | 7497 | |
1e6feb95 VZ |
7498 | if test "$enableval" = yes; then |
7499 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7500 | else | |
7501 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7502 | fi | |
a0b9e27f | 7503 | |
1e6feb95 | 7504 | else |
a0b9e27f | 7505 | |
1e6feb95 VZ |
7506 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7507 | if test "x$LINE" != x ; then | |
7508 | eval "DEFAULT_$LINE" | |
7509 | else | |
7510 | no_cache=1 | |
7511 | fi | |
7512 | ||
7513 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
a0b9e27f MB |
7514 | |
7515 | fi | |
1e6feb95 VZ |
7516 | |
7517 | ||
7518 | eval "$ac_cv_use_choicedlg" | |
7519 | if test "$no_cache" != 1; then | |
7520 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7521 | fi | |
7522 | ||
7523 | if test "$wxUSE_CHOICEDLG" = yes; then | |
a0b9e27f | 7524 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7525 | else |
a0b9e27f | 7526 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7527 | fi |
a0b9e27f | 7528 | |
1e6feb95 | 7529 | |
5005acfe VZ |
7530 | enablestring= |
7531 | echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7532 | echo "configure:7533: checking for --${enablestring:-enable}-coldlg" >&5 |
1e6feb95 VZ |
7533 | no_cache=0 |
7534 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7535 | if test "${enable_coldlg+set}" = set; then | |
7536 | enableval="$enable_coldlg" | |
a0b9e27f | 7537 | |
1e6feb95 VZ |
7538 | if test "$enableval" = yes; then |
7539 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7540 | else | |
7541 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7542 | fi | |
a0b9e27f | 7543 | |
1e6feb95 | 7544 | else |
a0b9e27f | 7545 | |
1e6feb95 VZ |
7546 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7547 | if test "x$LINE" != x ; then | |
7548 | eval "DEFAULT_$LINE" | |
7549 | else | |
7550 | no_cache=1 | |
7551 | fi | |
7552 | ||
7553 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
a0b9e27f MB |
7554 | |
7555 | fi | |
1e6feb95 VZ |
7556 | |
7557 | ||
7558 | eval "$ac_cv_use_coldlg" | |
7559 | if test "$no_cache" != 1; then | |
7560 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7561 | fi | |
7562 | ||
7563 | if test "$wxUSE_COLOURDLG" = yes; then | |
a0b9e27f | 7564 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7565 | else |
a0b9e27f | 7566 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7567 | fi |
a0b9e27f | 7568 | |
1e6feb95 | 7569 | |
5005acfe VZ |
7570 | enablestring= |
7571 | echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7572 | echo "configure:7573: checking for --${enablestring:-enable}-filedlg" >&5 |
1e6feb95 VZ |
7573 | no_cache=0 |
7574 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7575 | if test "${enable_filedlg+set}" = set; then | |
7576 | enableval="$enable_filedlg" | |
a0b9e27f | 7577 | |
1e6feb95 VZ |
7578 | if test "$enableval" = yes; then |
7579 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7580 | else | |
7581 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7582 | fi | |
a0b9e27f | 7583 | |
1e6feb95 | 7584 | else |
a0b9e27f | 7585 | |
1e6feb95 VZ |
7586 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7587 | if test "x$LINE" != x ; then | |
7588 | eval "DEFAULT_$LINE" | |
7589 | else | |
7590 | no_cache=1 | |
7591 | fi | |
7592 | ||
7593 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
a0b9e27f MB |
7594 | |
7595 | fi | |
1e6feb95 VZ |
7596 | |
7597 | ||
7598 | eval "$ac_cv_use_filedlg" | |
7599 | if test "$no_cache" != 1; then | |
7600 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7601 | fi | |
7602 | ||
7603 | if test "$wxUSE_FILEDLG" = yes; then | |
a0b9e27f | 7604 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7605 | else |
a0b9e27f | 7606 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7607 | fi |
a0b9e27f | 7608 | |
1e6feb95 | 7609 | |
5005acfe VZ |
7610 | enablestring= |
7611 | echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7612 | echo "configure:7613: checking for --${enablestring:-enable}-finddlg" >&5 |
8db37e06 | 7613 | no_cache=0 |
69d27ff7 MB |
7614 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7615 | if test "${enable_finddlg+set}" = set; then | |
7616 | enableval="$enable_finddlg" | |
a0b9e27f | 7617 | |
8db37e06 | 7618 | if test "$enableval" = yes; then |
69d27ff7 | 7619 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7620 | else |
69d27ff7 | 7621 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7622 | fi |
a0b9e27f | 7623 | |
8db37e06 | 7624 | else |
a0b9e27f | 7625 | |
8db37e06 VZ |
7626 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7627 | if test "x$LINE" != x ; then | |
7628 | eval "DEFAULT_$LINE" | |
7629 | else | |
7630 | no_cache=1 | |
7631 | fi | |
7632 | ||
69d27ff7 | 7633 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
a0b9e27f MB |
7634 | |
7635 | fi | |
8db37e06 VZ |
7636 | |
7637 | ||
69d27ff7 | 7638 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7639 | if test "$no_cache" != 1; then |
69d27ff7 | 7640 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7641 | fi |
7642 | ||
7643 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
a0b9e27f | 7644 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7645 | else |
a0b9e27f | 7646 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7647 | fi |
a0b9e27f | 7648 | |
8db37e06 | 7649 | |
5005acfe VZ |
7650 | enablestring= |
7651 | echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7652 | echo "configure:7653: checking for --${enablestring:-enable}-fontdlg" >&5 |
1e6feb95 VZ |
7653 | no_cache=0 |
7654 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7655 | if test "${enable_fontdlg+set}" = set; then | |
7656 | enableval="$enable_fontdlg" | |
a0b9e27f | 7657 | |
1e6feb95 VZ |
7658 | if test "$enableval" = yes; then |
7659 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7660 | else | |
7661 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7662 | fi | |
a0b9e27f | 7663 | |
1e6feb95 | 7664 | else |
a0b9e27f | 7665 | |
1e6feb95 VZ |
7666 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7667 | if test "x$LINE" != x ; then | |
7668 | eval "DEFAULT_$LINE" | |
7669 | else | |
7670 | no_cache=1 | |
7671 | fi | |
7672 | ||
7673 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
a0b9e27f MB |
7674 | |
7675 | fi | |
1e6feb95 VZ |
7676 | |
7677 | ||
7678 | eval "$ac_cv_use_fontdlg" | |
7679 | if test "$no_cache" != 1; then | |
7680 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7681 | fi | |
7682 | ||
7683 | if test "$wxUSE_FONTDLG" = yes; then | |
a0b9e27f | 7684 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7685 | else |
a0b9e27f | 7686 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7687 | fi |
a0b9e27f | 7688 | |
1e6feb95 | 7689 | |
5005acfe VZ |
7690 | enablestring= |
7691 | echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7692 | echo "configure:7693: checking for --${enablestring:-enable}-dirdlg" >&5 |
1e6feb95 VZ |
7693 | no_cache=0 |
7694 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7695 | if test "${enable_dirdlg+set}" = set; then | |
7696 | enableval="$enable_dirdlg" | |
a0b9e27f | 7697 | |
1e6feb95 VZ |
7698 | if test "$enableval" = yes; then |
7699 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7700 | else | |
7701 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7702 | fi | |
a0b9e27f | 7703 | |
1e6feb95 | 7704 | else |
a0b9e27f | 7705 | |
1e6feb95 VZ |
7706 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7707 | if test "x$LINE" != x ; then | |
7708 | eval "DEFAULT_$LINE" | |
7709 | else | |
7710 | no_cache=1 | |
7711 | fi | |
7712 | ||
7713 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
a0b9e27f MB |
7714 | |
7715 | fi | |
1e6feb95 VZ |
7716 | |
7717 | ||
7718 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7719 | if test "$no_cache" != 1; then |
1e6feb95 | 7720 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7721 | fi |
7722 | ||
1e6feb95 | 7723 | if test "$wxUSE_DIRDLG" = yes; then |
a0b9e27f | 7724 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7725 | else |
a0b9e27f | 7726 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7727 | fi |
a0b9e27f | 7728 | |
698dcdb6 | 7729 | |
5005acfe VZ |
7730 | enablestring= |
7731 | echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7732 | echo "configure:7733: checking for --${enablestring:-enable}-msgdlg" >&5 |
10f2d63a | 7733 | no_cache=0 |
1e6feb95 VZ |
7734 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7735 | if test "${enable_msgdlg+set}" = set; then | |
7736 | enableval="$enable_msgdlg" | |
a0b9e27f | 7737 | |
10f2d63a | 7738 | if test "$enableval" = yes; then |
1e6feb95 | 7739 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7740 | else |
1e6feb95 | 7741 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7742 | fi |
a0b9e27f | 7743 | |
10f2d63a | 7744 | else |
a0b9e27f | 7745 | |
1e6feb95 | 7746 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7747 | if test "x$LINE" != x ; then |
7748 | eval "DEFAULT_$LINE" | |
7749 | else | |
7750 | no_cache=1 | |
7751 | fi | |
7752 | ||
1e6feb95 | 7753 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
a0b9e27f MB |
7754 | |
7755 | fi | |
10f2d63a VZ |
7756 | |
7757 | ||
1e6feb95 | 7758 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7759 | if test "$no_cache" != 1; then |
1e6feb95 | 7760 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7761 | fi |
7762 | ||
1e6feb95 | 7763 | if test "$wxUSE_MSGDLG" = yes; then |
a0b9e27f | 7764 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7765 | else |
a0b9e27f | 7766 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7767 | fi |
a0b9e27f | 7768 | |
10f2d63a | 7769 | |
5005acfe VZ |
7770 | enablestring= |
7771 | echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7772 | echo "configure:7773: checking for --${enablestring:-enable}-numberdlg" >&5 |
10f2d63a | 7773 | no_cache=0 |
1e6feb95 VZ |
7774 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7775 | if test "${enable_numberdlg+set}" = set; then | |
7776 | enableval="$enable_numberdlg" | |
a0b9e27f | 7777 | |
10f2d63a | 7778 | if test "$enableval" = yes; then |
1e6feb95 | 7779 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7780 | else |
1e6feb95 | 7781 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7782 | fi |
a0b9e27f | 7783 | |
10f2d63a | 7784 | else |
a0b9e27f | 7785 | |
1e6feb95 | 7786 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7787 | if test "x$LINE" != x ; then |
7788 | eval "DEFAULT_$LINE" | |
7789 | else | |
7790 | no_cache=1 | |
7791 | fi | |
7792 | ||
1e6feb95 | 7793 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
a0b9e27f MB |
7794 | |
7795 | fi | |
10f2d63a VZ |
7796 | |
7797 | ||
1e6feb95 | 7798 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7799 | if test "$no_cache" != 1; then |
1e6feb95 | 7800 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7801 | fi |
7802 | ||
1e6feb95 | 7803 | if test "$wxUSE_NUMBERDLG" = yes; then |
a0b9e27f | 7804 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7805 | else |
a0b9e27f | 7806 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7807 | fi |
a0b9e27f | 7808 | |
10f2d63a | 7809 | |
5005acfe VZ |
7810 | enablestring= |
7811 | echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6 | |
2b5f62a0 | 7812 | echo "configure:7813: checking for --${enablestring:-enable}-splash" >&5 |
cbca9943 VZ |
7813 | no_cache=0 |
7814 | # Check whether --enable-splash or --disable-splash was given. | |
7815 | if test "${enable_splash+set}" = set; then | |
7816 | enableval="$enable_splash" | |
a0b9e27f | 7817 | |
cbca9943 VZ |
7818 | if test "$enableval" = yes; then |
7819 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7820 | else | |
7821 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7822 | fi | |
a0b9e27f | 7823 | |
cbca9943 | 7824 | else |
a0b9e27f | 7825 | |
cbca9943 VZ |
7826 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
7827 | if test "x$LINE" != x ; then | |
7828 | eval "DEFAULT_$LINE" | |
7829 | else | |
7830 | no_cache=1 | |
7831 | fi | |
7832 | ||
7833 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
a0b9e27f MB |
7834 | |
7835 | fi | |
cbca9943 VZ |
7836 | |
7837 | ||
7838 | eval "$ac_cv_use_splash" | |
7839 | if test "$no_cache" != 1; then | |
7840 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7841 | fi | |
7842 | ||
7843 | if test "$wxUSE_SPLASH" = yes; then | |
a0b9e27f | 7844 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7845 | else |
a0b9e27f | 7846 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7847 | fi |
a0b9e27f | 7848 | |
cbca9943 | 7849 | |
5005acfe VZ |
7850 | enablestring= |
7851 | echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7852 | echo "configure:7853: checking for --${enablestring:-enable}-textdlg" >&5 |
10f2d63a VZ |
7853 | no_cache=0 |
7854 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7855 | if test "${enable_textdlg+set}" = set; then | |
7856 | enableval="$enable_textdlg" | |
a0b9e27f | 7857 | |
10f2d63a VZ |
7858 | if test "$enableval" = yes; then |
7859 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7860 | else | |
7861 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7862 | fi | |
a0b9e27f | 7863 | |
10f2d63a | 7864 | else |
a0b9e27f | 7865 | |
10f2d63a VZ |
7866 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7867 | if test "x$LINE" != x ; then | |
7868 | eval "DEFAULT_$LINE" | |
7869 | else | |
7870 | no_cache=1 | |
7871 | fi | |
7872 | ||
7873 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
a0b9e27f MB |
7874 | |
7875 | fi | |
10f2d63a VZ |
7876 | |
7877 | ||
7878 | eval "$ac_cv_use_textdlg" | |
7879 | if test "$no_cache" != 1; then | |
7880 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7881 | fi | |
7882 | ||
7883 | if test "$wxUSE_TEXTDLG" = yes; then | |
a0b9e27f | 7884 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7885 | else |
a0b9e27f | 7886 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7887 | fi |
a0b9e27f | 7888 | |
10f2d63a | 7889 | |
5005acfe VZ |
7890 | enablestring= |
7891 | echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7892 | echo "configure:7893: checking for --${enablestring:-enable}-tipdlg" >&5 |
10f2d63a VZ |
7893 | no_cache=0 |
7894 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7895 | if test "${enable_tipdlg+set}" = set; then | |
7896 | enableval="$enable_tipdlg" | |
a0b9e27f | 7897 | |
10f2d63a VZ |
7898 | if test "$enableval" = yes; then |
7899 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7900 | else | |
7901 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7902 | fi | |
a0b9e27f | 7903 | |
10f2d63a | 7904 | else |
a0b9e27f | 7905 | |
10f2d63a VZ |
7906 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7907 | if test "x$LINE" != x ; then | |
7908 | eval "DEFAULT_$LINE" | |
7909 | else | |
7910 | no_cache=1 | |
7911 | fi | |
7912 | ||
7913 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
a0b9e27f MB |
7914 | |
7915 | fi | |
10f2d63a VZ |
7916 | |
7917 | ||
7918 | eval "$ac_cv_use_tipdlg" | |
7919 | if test "$no_cache" != 1; then | |
7920 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7921 | fi | |
7922 | ||
7923 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
a0b9e27f | 7924 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7925 | else |
a0b9e27f | 7926 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7927 | fi |
a0b9e27f | 7928 | |
10f2d63a | 7929 | |
5005acfe VZ |
7930 | enablestring= |
7931 | echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7932 | echo "configure:7933: checking for --${enablestring:-enable}-progressdlg" >&5 |
10f2d63a VZ |
7933 | no_cache=0 |
7934 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7935 | if test "${enable_progressdlg+set}" = set; then | |
7936 | enableval="$enable_progressdlg" | |
a0b9e27f | 7937 | |
10f2d63a VZ |
7938 | if test "$enableval" = yes; then |
7939 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7940 | else | |
7941 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7942 | fi | |
a0b9e27f | 7943 | |
10f2d63a | 7944 | else |
a0b9e27f | 7945 | |
10f2d63a VZ |
7946 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7947 | if test "x$LINE" != x ; then | |
7948 | eval "DEFAULT_$LINE" | |
7949 | else | |
7950 | no_cache=1 | |
7951 | fi | |
7952 | ||
7953 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
a0b9e27f MB |
7954 | |
7955 | fi | |
10f2d63a VZ |
7956 | |
7957 | ||
7958 | eval "$ac_cv_use_progressdlg" | |
7959 | if test "$no_cache" != 1; then | |
7960 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7961 | fi | |
7962 | ||
7963 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
a0b9e27f | 7964 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7965 | else |
a0b9e27f | 7966 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7967 | fi |
a0b9e27f | 7968 | |
10f2d63a | 7969 | |
5005acfe VZ |
7970 | enablestring= |
7971 | echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7972 | echo "configure:7973: checking for --${enablestring:-enable}-wizarddlg" >&5 |
b1f5d087 VZ |
7973 | no_cache=0 |
7974 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7975 | if test "${enable_wizarddlg+set}" = set; then | |
7976 | enableval="$enable_wizarddlg" | |
a0b9e27f | 7977 | |
b1f5d087 VZ |
7978 | if test "$enableval" = yes; then |
7979 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7980 | else | |
7981 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7982 | fi | |
a0b9e27f | 7983 | |
b1f5d087 | 7984 | else |
a0b9e27f | 7985 | |
b1f5d087 VZ |
7986 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
7987 | if test "x$LINE" != x ; then | |
7988 | eval "DEFAULT_$LINE" | |
7989 | else | |
7990 | no_cache=1 | |
7991 | fi | |
7992 | ||
7993 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
a0b9e27f MB |
7994 | |
7995 | fi | |
b1f5d087 VZ |
7996 | |
7997 | ||
7998 | eval "$ac_cv_use_wizarddlg" | |
7999 | if test "$no_cache" != 1; then | |
8000 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8001 | fi | |
8002 | ||
8003 | if test "$wxUSE_WIZARDDLG" = yes; then | |
a0b9e27f | 8004 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 8005 | else |
a0b9e27f | 8006 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 8007 | fi |
a0b9e27f | 8008 | |
8284b0c5 MB |
8009 | |
8010 | ||
52127426 | 8011 | |
5005acfe VZ |
8012 | enablestring= |
8013 | echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6 | |
2b5f62a0 | 8014 | echo "configure:8015: checking for --${enablestring:-enable}-menus" >&5 |
1e6feb95 VZ |
8015 | no_cache=0 |
8016 | # Check whether --enable-menus or --disable-menus was given. | |
8017 | if test "${enable_menus+set}" = set; then | |
8018 | enableval="$enable_menus" | |
a0b9e27f | 8019 | |
1e6feb95 VZ |
8020 | if test "$enableval" = yes; then |
8021 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8022 | else | |
8023 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8024 | fi | |
a0b9e27f | 8025 | |
1e6feb95 | 8026 | else |
a0b9e27f | 8027 | |
1e6feb95 VZ |
8028 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8029 | if test "x$LINE" != x ; then | |
8030 | eval "DEFAULT_$LINE" | |
8031 | else | |
8032 | no_cache=1 | |
8033 | fi | |
8034 | ||
8035 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
a0b9e27f MB |
8036 | |
8037 | fi | |
1e6feb95 VZ |
8038 | |
8039 | ||
8040 | eval "$ac_cv_use_menus" | |
8041 | if test "$no_cache" != 1; then | |
8042 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8043 | fi | |
8044 | ||
8045 | if test "$wxUSE_MENUS" = yes; then | |
a0b9e27f | 8046 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8047 | else |
a0b9e27f | 8048 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8049 | fi |
a0b9e27f | 8050 | |
1e6feb95 | 8051 | |
5005acfe VZ |
8052 | enablestring= |
8053 | echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6 | |
2b5f62a0 | 8054 | echo "configure:8055: checking for --${enablestring:-enable}-miniframe" >&5 |
10f2d63a VZ |
8055 | no_cache=0 |
8056 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8057 | if test "${enable_miniframe+set}" = set; then | |
8058 | enableval="$enable_miniframe" | |
a0b9e27f | 8059 | |
10f2d63a VZ |
8060 | if test "$enableval" = yes; then |
8061 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8062 | else | |
8063 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8064 | fi | |
a0b9e27f | 8065 | |
10f2d63a | 8066 | else |
a0b9e27f | 8067 | |
10f2d63a VZ |
8068 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8069 | if test "x$LINE" != x ; then | |
8070 | eval "DEFAULT_$LINE" | |
8071 | else | |
8072 | no_cache=1 | |
8073 | fi | |
8074 | ||
8075 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
a0b9e27f MB |
8076 | |
8077 | fi | |
10f2d63a VZ |
8078 | |
8079 | ||
8080 | eval "$ac_cv_use_miniframe" | |
8081 | if test "$no_cache" != 1; then | |
8082 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8083 | fi | |
8084 | ||
8085 | if test "$wxUSE_MINIFRAME" = yes; then | |
a0b9e27f | 8086 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8087 | else |
a0b9e27f | 8088 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8089 | fi |
a0b9e27f | 8090 | |
10f2d63a | 8091 | |
5005acfe VZ |
8092 | enablestring= |
8093 | echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6 | |
2b5f62a0 | 8094 | echo "configure:8095: checking for --${enablestring:-enable}-tooltips" >&5 |
10f2d63a VZ |
8095 | no_cache=0 |
8096 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8097 | if test "${enable_tooltips+set}" = set; then | |
8098 | enableval="$enable_tooltips" | |
a0b9e27f | 8099 | |
10f2d63a VZ |
8100 | if test "$enableval" = yes; then |
8101 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8102 | else | |
8103 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8104 | fi | |
a0b9e27f | 8105 | |
10f2d63a | 8106 | else |
a0b9e27f | 8107 | |
10f2d63a VZ |
8108 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8109 | if test "x$LINE" != x ; then | |
8110 | eval "DEFAULT_$LINE" | |
8111 | else | |
8112 | no_cache=1 | |
8113 | fi | |
8114 | ||
8115 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
a0b9e27f MB |
8116 | |
8117 | fi | |
10f2d63a VZ |
8118 | |
8119 | ||
8120 | eval "$ac_cv_use_tooltips" | |
8121 | if test "$no_cache" != 1; then | |
8122 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8123 | fi | |
8124 | ||
8125 | if test "$wxUSE_TOOLTIPS" = yes; then | |
a0b9e27f | 8126 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8127 | else |
a0b9e27f | 8128 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8129 | fi |
a0b9e27f | 8130 | |
10f2d63a | 8131 | |
5005acfe VZ |
8132 | enablestring= |
8133 | echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6 | |
2b5f62a0 | 8134 | echo "configure:8135: checking for --${enablestring:-enable}-splines" >&5 |
10f2d63a VZ |
8135 | no_cache=0 |
8136 | # Check whether --enable-splines or --disable-splines was given. | |
8137 | if test "${enable_splines+set}" = set; then | |
8138 | enableval="$enable_splines" | |
a0b9e27f | 8139 | |
10f2d63a VZ |
8140 | if test "$enableval" = yes; then |
8141 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8142 | else | |
8143 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8144 | fi | |
a0b9e27f | 8145 | |
10f2d63a | 8146 | else |
a0b9e27f | 8147 | |
10f2d63a VZ |
8148 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8149 | if test "x$LINE" != x ; then | |
8150 | eval "DEFAULT_$LINE" | |
8151 | else | |
8152 | no_cache=1 | |
8153 | fi | |
8154 | ||
8155 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
a0b9e27f MB |
8156 | |
8157 | fi | |
10f2d63a VZ |
8158 | |
8159 | ||
8160 | eval "$ac_cv_use_splines" | |
8161 | if test "$no_cache" != 1; then | |
8162 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8163 | fi | |
8164 | ||
8165 | if test "$wxUSE_SPLINES" = yes; then | |
a0b9e27f | 8166 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8167 | else |
a0b9e27f | 8168 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8169 | fi |
a0b9e27f | 8170 | |
10f2d63a | 8171 | |
5005acfe VZ |
8172 | enablestring= |
8173 | echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6 | |
2b5f62a0 | 8174 | echo "configure:8175: checking for --${enablestring:-enable}-validators" >&5 |
10f2d63a VZ |
8175 | no_cache=0 |
8176 | # Check whether --enable-validators or --disable-validators was given. | |
8177 | if test "${enable_validators+set}" = set; then | |
8178 | enableval="$enable_validators" | |
a0b9e27f | 8179 | |
10f2d63a VZ |
8180 | if test "$enableval" = yes; then |
8181 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8182 | else | |
8183 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8184 | fi | |
a0b9e27f | 8185 | |
10f2d63a | 8186 | else |
a0b9e27f | 8187 | |
10f2d63a VZ |
8188 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8189 | if test "x$LINE" != x ; then | |
8190 | eval "DEFAULT_$LINE" | |
8191 | else | |
8192 | no_cache=1 | |
8193 | fi | |
8194 | ||
8195 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
a0b9e27f MB |
8196 | |
8197 | fi | |
10f2d63a VZ |
8198 | |
8199 | ||
8200 | eval "$ac_cv_use_validators" | |
8201 | if test "$no_cache" != 1; then | |
8202 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8203 | fi | |
8204 | ||
8205 | if test "$wxUSE_VALIDATORS" = yes; then | |
a0b9e27f | 8206 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8207 | else |
a0b9e27f | 8208 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8209 | fi |
a0b9e27f | 8210 | |
10f2d63a | 8211 | |
5005acfe VZ |
8212 | enablestring= |
8213 | echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6 | |
2b5f62a0 | 8214 | echo "configure:8215: checking for --${enablestring:-enable}-busyinfo" >&5 |
10f2d63a VZ |
8215 | no_cache=0 |
8216 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8217 | if test "${enable_busyinfo+set}" = set; then | |
8218 | enableval="$enable_busyinfo" | |
a0b9e27f | 8219 | |
10f2d63a VZ |
8220 | if test "$enableval" = yes; then |
8221 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8222 | else | |
8223 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8224 | fi | |
a0b9e27f | 8225 | |
10f2d63a | 8226 | else |
a0b9e27f | 8227 | |
10f2d63a VZ |
8228 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8229 | if test "x$LINE" != x ; then | |
8230 | eval "DEFAULT_$LINE" | |
8231 | else | |
8232 | no_cache=1 | |
8233 | fi | |
8234 | ||
8235 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
a0b9e27f MB |
8236 | |
8237 | fi | |
10f2d63a VZ |
8238 | |
8239 | ||
8240 | eval "$ac_cv_use_busyinfo" | |
8241 | if test "$no_cache" != 1; then | |
8242 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8243 | fi | |
8244 | ||
8245 | if test "$wxUSE_BUSYINFO" = yes; then | |
a0b9e27f | 8246 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8247 | else |
a0b9e27f | 8248 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8249 | fi |
a0b9e27f | 8250 | |
10f2d63a | 8251 | |
5005acfe VZ |
8252 | enablestring= |
8253 | echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6 | |
2b5f62a0 | 8254 | echo "configure:8255: checking for --${enablestring:-enable}-joystick" >&5 |
f6bcfd97 BP |
8255 | no_cache=0 |
8256 | # Check whether --enable-joystick or --disable-joystick was given. | |
8257 | if test "${enable_joystick+set}" = set; then | |
8258 | enableval="$enable_joystick" | |
a0b9e27f | 8259 | |
f6bcfd97 BP |
8260 | if test "$enableval" = yes; then |
8261 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8262 | else | |
8263 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8264 | fi | |
a0b9e27f | 8265 | |
f6bcfd97 | 8266 | else |
a0b9e27f | 8267 | |
f6bcfd97 BP |
8268 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8269 | if test "x$LINE" != x ; then | |
8270 | eval "DEFAULT_$LINE" | |
8271 | else | |
8272 | no_cache=1 | |
8273 | fi | |
8274 | ||
8275 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
a0b9e27f MB |
8276 | |
8277 | fi | |
f6bcfd97 BP |
8278 | |
8279 | ||
8280 | eval "$ac_cv_use_joystick" | |
8281 | if test "$no_cache" != 1; then | |
8282 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8283 | fi | |
8284 | ||
8285 | if test "$wxUSE_JOYSTICK" = yes; then | |
a0b9e27f | 8286 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8287 | else |
a0b9e27f | 8288 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8289 | fi |
a0b9e27f | 8290 | |
698dcdb6 | 8291 | |
5005acfe VZ |
8292 | enablestring= |
8293 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
2b5f62a0 | 8294 | echo "configure:8295: checking for --${enablestring:-enable}-metafile" >&5 |
1e6feb95 VZ |
8295 | no_cache=0 |
8296 | # Check whether --enable-metafile or --disable-metafile was given. | |
8297 | if test "${enable_metafile+set}" = set; then | |
8298 | enableval="$enable_metafile" | |
a0b9e27f | 8299 | |
1e6feb95 VZ |
8300 | if test "$enableval" = yes; then |
8301 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8302 | else | |
8303 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8304 | fi | |
a0b9e27f | 8305 | |
1e6feb95 | 8306 | else |
a0b9e27f | 8307 | |
1e6feb95 VZ |
8308 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8309 | if test "x$LINE" != x ; then | |
8310 | eval "DEFAULT_$LINE" | |
8311 | else | |
8312 | no_cache=1 | |
8313 | fi | |
8314 | ||
8315 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
8316 | |
8317 | fi | |
1e6feb95 VZ |
8318 | |
8319 | ||
8320 | eval "$ac_cv_use_metafile" | |
8321 | if test "$no_cache" != 1; then | |
8322 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8323 | fi | |
8324 | ||
8325 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 8326 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8327 | else |
a0b9e27f | 8328 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8329 | fi |
a0b9e27f | 8330 | |
1e6feb95 | 8331 | |
5005acfe VZ |
8332 | enablestring= |
8333 | echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6 | |
2b5f62a0 | 8334 | echo "configure:8335: checking for --${enablestring:-enable}-dragimage" >&5 |
24fd6d87 VZ |
8335 | no_cache=0 |
8336 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8337 | if test "${enable_dragimage+set}" = set; then | |
8338 | enableval="$enable_dragimage" | |
a0b9e27f | 8339 | |
24fd6d87 VZ |
8340 | if test "$enableval" = yes; then |
8341 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8342 | else | |
8343 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8344 | fi | |
a0b9e27f | 8345 | |
24fd6d87 | 8346 | else |
a0b9e27f | 8347 | |
24fd6d87 VZ |
8348 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8349 | if test "x$LINE" != x ; then | |
8350 | eval "DEFAULT_$LINE" | |
8351 | else | |
8352 | no_cache=1 | |
8353 | fi | |
8354 | ||
8355 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
a0b9e27f MB |
8356 | |
8357 | fi | |
24fd6d87 VZ |
8358 | |
8359 | ||
8360 | eval "$ac_cv_use_dragimage" | |
8361 | if test "$no_cache" != 1; then | |
8362 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8363 | fi | |
8364 | ||
8365 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
a0b9e27f | 8366 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8367 | else |
a0b9e27f | 8368 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8369 | fi |
a0b9e27f | 8370 | |
52127426 | 8371 | |
8284b0c5 MB |
8372 | |
8373 | ||
5005acfe VZ |
8374 | enablestring= |
8375 | echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6 | |
2b5f62a0 | 8376 | echo "configure:8377: checking for --${enablestring:-enable}-palette" >&5 |
edae8572 VZ |
8377 | no_cache=0 |
8378 | # Check whether --enable-palette or --disable-palette was given. | |
8379 | if test "${enable_palette+set}" = set; then | |
8380 | enableval="$enable_palette" | |
a0b9e27f | 8381 | |
edae8572 VZ |
8382 | if test "$enableval" = yes; then |
8383 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8384 | else | |
8385 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8386 | fi | |
a0b9e27f | 8387 | |
edae8572 | 8388 | else |
a0b9e27f | 8389 | |
edae8572 VZ |
8390 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8391 | if test "x$LINE" != x ; then | |
8392 | eval "DEFAULT_$LINE" | |
8393 | else | |
8394 | no_cache=1 | |
8395 | fi | |
8396 | ||
8397 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
a0b9e27f MB |
8398 | |
8399 | fi | |
edae8572 VZ |
8400 | |
8401 | ||
8402 | eval "$ac_cv_use_palette" | |
8403 | if test "$no_cache" != 1; then | |
8404 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8405 | fi | |
8406 | ||
8407 | if test "$wxUSE_PALETTE" = yes; then | |
a0b9e27f | 8408 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8409 | else |
a0b9e27f | 8410 | echo "$ac_t""no" 1>&6 |
edae8572 | 8411 | fi |
a0b9e27f | 8412 | |
edae8572 | 8413 | |
5005acfe VZ |
8414 | enablestring= |
8415 | echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6 | |
2b5f62a0 | 8416 | echo "configure:8417: checking for --${enablestring:-enable}-image" >&5 |
0046ff7c VS |
8417 | no_cache=0 |
8418 | # Check whether --enable-image or --disable-image was given. | |
8419 | if test "${enable_image+set}" = set; then | |
8420 | enableval="$enable_image" | |
a0b9e27f | 8421 | |
0046ff7c VS |
8422 | if test "$enableval" = yes; then |
8423 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8424 | else | |
8425 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8426 | fi | |
a0b9e27f | 8427 | |
0046ff7c | 8428 | else |
a0b9e27f | 8429 | |
0046ff7c VS |
8430 | LINE=`grep "wxUSE_IMAGE" ${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_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
a0b9e27f MB |
8438 | |
8439 | fi | |
0046ff7c VS |
8440 | |
8441 | ||
8442 | eval "$ac_cv_use_image" | |
8443 | if test "$no_cache" != 1; then | |
8444 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8445 | fi | |
8446 | ||
8447 | if test "$wxUSE_IMAGE" = yes; then | |
a0b9e27f | 8448 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8449 | else |
a0b9e27f | 8450 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8451 | fi |
a0b9e27f | 8452 | |
0046ff7c | 8453 | |
5005acfe VZ |
8454 | enablestring= |
8455 | echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6 | |
2b5f62a0 | 8456 | echo "configure:8457: checking for --${enablestring:-enable}-gif" >&5 |
10f2d63a VZ |
8457 | no_cache=0 |
8458 | # Check whether --enable-gif or --disable-gif was given. | |
8459 | if test "${enable_gif+set}" = set; then | |
8460 | enableval="$enable_gif" | |
a0b9e27f | 8461 | |
10f2d63a VZ |
8462 | if test "$enableval" = yes; then |
8463 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8464 | else | |
8465 | ac_cv_use_gif='wxUSE_GIF=no' | |
8466 | fi | |
a0b9e27f | 8467 | |
10f2d63a | 8468 | else |
a0b9e27f | 8469 | |
10f2d63a VZ |
8470 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8471 | if test "x$LINE" != x ; then | |
8472 | eval "DEFAULT_$LINE" | |
8473 | else | |
8474 | no_cache=1 | |
8475 | fi | |
8476 | ||
8477 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
a0b9e27f MB |
8478 | |
8479 | fi | |
10f2d63a VZ |
8480 | |
8481 | ||
8482 | eval "$ac_cv_use_gif" | |
8483 | if test "$no_cache" != 1; then | |
8484 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8485 | fi | |
8486 | ||
8487 | if test "$wxUSE_GIF" = yes; then | |
a0b9e27f | 8488 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8489 | else |
a0b9e27f | 8490 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8491 | fi |
a0b9e27f | 8492 | |
10f2d63a | 8493 | |
5005acfe VZ |
8494 | enablestring= |
8495 | echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6 | |
2b5f62a0 | 8496 | echo "configure:8497: checking for --${enablestring:-enable}-pcx" >&5 |
10f2d63a VZ |
8497 | no_cache=0 |
8498 | # Check whether --enable-pcx or --disable-pcx was given. | |
8499 | if test "${enable_pcx+set}" = set; then | |
8500 | enableval="$enable_pcx" | |
a0b9e27f | 8501 | |
10f2d63a VZ |
8502 | if test "$enableval" = yes; then |
8503 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8504 | else | |
8505 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8506 | fi | |
a0b9e27f | 8507 | |
10f2d63a | 8508 | else |
a0b9e27f | 8509 | |
10f2d63a VZ |
8510 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8511 | if test "x$LINE" != x ; then | |
8512 | eval "DEFAULT_$LINE" | |
8513 | else | |
8514 | no_cache=1 | |
8515 | fi | |
8516 | ||
8517 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
a0b9e27f MB |
8518 | |
8519 | fi | |
10f2d63a VZ |
8520 | |
8521 | ||
8522 | eval "$ac_cv_use_pcx" | |
8523 | if test "$no_cache" != 1; then | |
8524 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8525 | fi | |
8526 | ||
8527 | if test "$wxUSE_PCX" = yes; then | |
a0b9e27f | 8528 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8529 | else |
a0b9e27f | 8530 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8531 | fi |
a0b9e27f | 8532 | |
10f2d63a | 8533 | |
5005acfe VZ |
8534 | enablestring= |
8535 | echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6 | |
2b5f62a0 | 8536 | echo "configure:8537: checking for --${enablestring:-enable}-iff" >&5 |
4b6b4dfc RR |
8537 | no_cache=0 |
8538 | # Check whether --enable-iff or --disable-iff was given. | |
8539 | if test "${enable_iff+set}" = set; then | |
8540 | enableval="$enable_iff" | |
a0b9e27f | 8541 | |
4b6b4dfc RR |
8542 | if test "$enableval" = yes; then |
8543 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8544 | else | |
8545 | ac_cv_use_iff='wxUSE_IFF=no' | |
8546 | fi | |
a0b9e27f | 8547 | |
4b6b4dfc | 8548 | else |
a0b9e27f | 8549 | |
4b6b4dfc RR |
8550 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8551 | if test "x$LINE" != x ; then | |
8552 | eval "DEFAULT_$LINE" | |
8553 | else | |
8554 | no_cache=1 | |
8555 | fi | |
8556 | ||
8557 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
a0b9e27f MB |
8558 | |
8559 | fi | |
4b6b4dfc RR |
8560 | |
8561 | ||
8562 | eval "$ac_cv_use_iff" | |
8563 | if test "$no_cache" != 1; then | |
8564 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8565 | fi | |
8566 | ||
8567 | if test "$wxUSE_IFF" = yes; then | |
a0b9e27f | 8568 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8569 | else |
a0b9e27f | 8570 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8571 | fi |
a0b9e27f | 8572 | |
4b6b4dfc | 8573 | |
5005acfe VZ |
8574 | enablestring= |
8575 | echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6 | |
2b5f62a0 | 8576 | echo "configure:8577: checking for --${enablestring:-enable}-pnm" >&5 |
10f2d63a VZ |
8577 | no_cache=0 |
8578 | # Check whether --enable-pnm or --disable-pnm was given. | |
8579 | if test "${enable_pnm+set}" = set; then | |
8580 | enableval="$enable_pnm" | |
a0b9e27f | 8581 | |
10f2d63a VZ |
8582 | if test "$enableval" = yes; then |
8583 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8584 | else | |
8585 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8586 | fi | |
a0b9e27f | 8587 | |
10f2d63a | 8588 | else |
a0b9e27f | 8589 | |
10f2d63a VZ |
8590 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8591 | if test "x$LINE" != x ; then | |
8592 | eval "DEFAULT_$LINE" | |
8593 | else | |
8594 | no_cache=1 | |
8595 | fi | |
8596 | ||
8597 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
a0b9e27f MB |
8598 | |
8599 | fi | |
10f2d63a VZ |
8600 | |
8601 | ||
8602 | eval "$ac_cv_use_pnm" | |
8603 | if test "$no_cache" != 1; then | |
8604 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8605 | fi | |
8606 | ||
8607 | if test "$wxUSE_PNM" = yes; then | |
a0b9e27f | 8608 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8609 | else |
a0b9e27f | 8610 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8611 | fi |
a0b9e27f | 8612 | |
10f2d63a | 8613 | |
5005acfe VZ |
8614 | enablestring= |
8615 | echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6 | |
2b5f62a0 | 8616 | echo "configure:8617: checking for --${enablestring:-enable}-xpm" >&5 |
0046ff7c | 8617 | no_cache=0 |
69d27ff7 MB |
8618 | # Check whether --enable-xpm or --disable-xpm was given. |
8619 | if test "${enable_xpm+set}" = set; then | |
8620 | enableval="$enable_xpm" | |
a0b9e27f | 8621 | |
0046ff7c | 8622 | if test "$enableval" = yes; then |
69d27ff7 | 8623 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8624 | else |
69d27ff7 | 8625 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8626 | fi |
a0b9e27f | 8627 | |
0046ff7c | 8628 | else |
a0b9e27f | 8629 | |
0046ff7c VS |
8630 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8631 | if test "x$LINE" != x ; then | |
8632 | eval "DEFAULT_$LINE" | |
8633 | else | |
8634 | no_cache=1 | |
8635 | fi | |
8636 | ||
69d27ff7 | 8637 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
a0b9e27f MB |
8638 | |
8639 | fi | |
0046ff7c VS |
8640 | |
8641 | ||
69d27ff7 | 8642 | eval "$ac_cv_use_xpm" |
0046ff7c | 8643 | if test "$no_cache" != 1; then |
69d27ff7 | 8644 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8645 | fi |
8646 | ||
8647 | if test "$wxUSE_XPM" = yes; then | |
a0b9e27f | 8648 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8649 | else |
a0b9e27f | 8650 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8651 | fi |
a0b9e27f | 8652 | |
0046ff7c | 8653 | |
5005acfe VZ |
8654 | enablestring= |
8655 | echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6 | |
2b5f62a0 | 8656 | echo "configure:8657: checking for --${enablestring:-enable}-ico_cur" >&5 |
658974ae | 8657 | no_cache=0 |
c7206e64 VS |
8658 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8659 | if test "${enable_ico_cur+set}" = set; then | |
8660 | enableval="$enable_ico_cur" | |
a0b9e27f | 8661 | |
658974ae | 8662 | if test "$enableval" = yes; then |
c7206e64 | 8663 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8664 | else |
c7206e64 | 8665 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8666 | fi |
a0b9e27f | 8667 | |
658974ae | 8668 | else |
a0b9e27f | 8669 | |
658974ae VS |
8670 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8671 | if test "x$LINE" != x ; then | |
8672 | eval "DEFAULT_$LINE" | |
8673 | else | |
8674 | no_cache=1 | |
8675 | fi | |
8676 | ||
c7206e64 | 8677 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
a0b9e27f MB |
8678 | |
8679 | fi | |
658974ae VS |
8680 | |
8681 | ||
c7206e64 | 8682 | eval "$ac_cv_use_ico_cur" |
658974ae | 8683 | if test "$no_cache" != 1; then |
c7206e64 | 8684 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8685 | fi |
8686 | ||
8687 | if test "$wxUSE_ICO_CUR" = yes; then | |
a0b9e27f | 8688 | echo "$ac_t""yes" 1>&6 |
658974ae | 8689 | else |
a0b9e27f | 8690 | echo "$ac_t""no" 1>&6 |
658974ae | 8691 | fi |
a0b9e27f | 8692 | |
658974ae | 8693 | |
b12915c1 VZ |
8694 | fi |
8695 | ||
d558c907 VS |
8696 | case "${host}" in |
8697 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
8698 | PATH_IFS=';' |
8699 | LEX_STEM="lexyy" | |
d558c907 VS |
8700 | ;; |
8701 | *) | |
8702 | PATH_IFS=':' | |
8703 | LEX_STEM="lex.yy" | |
8704 | ;; | |
8705 | esac | |
8706 | ||
8284b0c5 MB |
8707 | |
8708 | ||
10f2d63a VZ |
8709 | echo "saving argument cache $wx_arg_cache_file" |
8710 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
a0b9e27f | 8711 | |
52127426 | 8712 | |
8284b0c5 | 8713 | |
a0b9e27f | 8714 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 |
2b5f62a0 | 8715 | echo "configure:8716: checking for toolkit" >&5 |
10f2d63a VZ |
8716 | |
8717 | if test "$wxUSE_GUI" = "yes"; then | |
8718 | ||
3a922bb4 | 8719 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 8720 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8721 | fi |
b12915c1 | 8722 | |
3a922bb4 RL |
8723 | if test "$TOOLKIT_GIVEN" = 1; then |
8724 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8725 | var=wxUSE_$toolkit | |
8726 | eval "value=\$${var}" | |
8727 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8728 | done | |
10f2d63a | 8729 | else |
3a922bb4 RL |
8730 | for toolkit in `echo $ALL_TOOLKITS`; do |
8731 | if test "$has_toolkit_in_cache" != 1; then | |
8732 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8733 | else | |
8734 | var=DEFAULT_wxUSE_$toolkit | |
8735 | fi | |
8736 | eval "wxUSE_$toolkit=\$${var}" | |
8737 | done | |
10f2d63a | 8738 | fi |
10f2d63a | 8739 | |
3a922bb4 | 8740 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8741 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8742 | |
d558c907 | 8743 | case "${host}" in |
6fa882bd | 8744 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8745 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8746 | esac |
10f2d63a | 8747 | |
3a922bb4 RL |
8748 | case "$NUM_TOOLKITS" in |
8749 | 1) | |
8750 | ;; | |
8751 | 0) | |
a0b9e27f | 8752 | { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8753 | ;; |
8754 | *) | |
a0b9e27f | 8755 | { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; } |
3a922bb4 | 8756 | esac |
10f2d63a | 8757 | |
3a922bb4 RL |
8758 | for toolkit in `echo $ALL_TOOLKITS`; do |
8759 | var=wxUSE_$toolkit | |
8760 | eval "value=\$${var}" | |
8761 | if test "x$value" != x; then | |
8762 | cache_var=CACHE_$toolkit | |
8763 | eval "cache=\$${cache_var}" | |
8764 | if test "$cache" = 1; then | |
8765 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8766 | fi | |
8767 | if test "$value" = 1; then | |
8768 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
a0b9e27f | 8769 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8770 | fi |
8771 | fi | |
8772 | done | |
10f2d63a | 8773 | else |
a0b9e27f | 8774 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8775 | fi |
8776 | ||
43d99b6d VS |
8777 | wants_win32=0 |
8778 | doesnt_want_win32=0 | |
17234b26 MB |
8779 | case "${host}" in |
8780 | *-*-cygwin*) | |
8781 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8782 | wants_win32=1 |
8783 | else | |
8784 | doesnt_want_win32=1 | |
17234b26 MB |
8785 | fi |
8786 | ;; | |
8787 | *-*-mingw*) | |
43d99b6d | 8788 | wants_win32=1 |
17234b26 MB |
8789 | ;; |
8790 | esac | |
8791 | ||
43d99b6d | 8792 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8793 | USE_UNIX=0 |
8794 | USE_WIN32=1 | |
a0b9e27f | 8795 | cat >> confdefs.h <<\EOF |
17234b26 | 8796 | #define __WIN32__ 1 |
a0b9e27f | 8797 | EOF |
17234b26 | 8798 | |
a0b9e27f | 8799 | cat >> confdefs.h <<\EOF |
17234b26 | 8800 | #define __WIN95__ 1 |
a0b9e27f | 8801 | EOF |
17234b26 | 8802 | |
a0b9e27f | 8803 | cat >> confdefs.h <<\EOF |
17234b26 | 8804 | #define __WINDOWS__ 1 |
a0b9e27f | 8805 | EOF |
17234b26 | 8806 | |
a0b9e27f | 8807 | cat >> confdefs.h <<\EOF |
17234b26 | 8808 | #define __GNUWIN32__ 1 |
a0b9e27f | 8809 | EOF |
17234b26 | 8810 | |
a0b9e27f | 8811 | cat >> confdefs.h <<\EOF |
17234b26 | 8812 | #define STRICT 1 |
a0b9e27f | 8813 | EOF |
17234b26 | 8814 | |
a0b9e27f | 8815 | cat >> confdefs.h <<\EOF |
17234b26 | 8816 | #define WINVER 0x0400 |
a0b9e27f | 8817 | EOF |
17234b26 | 8818 | |
43d99b6d VS |
8819 | fi |
8820 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8821 | USE_UNIX=1 |
8822 | USE_WIN32=0 | |
8823 | fi | |
8824 | ||
8825 | if test "$USE_UNIX" = 1 ; then | |
8826 | wxUSE_UNIX=yes | |
a0b9e27f | 8827 | cat >> confdefs.h <<\EOF |
17234b26 | 8828 | #define __UNIX__ 1 |
a0b9e27f | 8829 | EOF |
17234b26 MB |
8830 | |
8831 | fi | |
8832 | ||
8284b0c5 | 8833 | |
a0b9e27f | 8834 | cat > confcache <<\EOF |
10f2d63a VZ |
8835 | # This file is a shell script that caches the results of configure |
8836 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
8837 | # scripts and configure runs. It is not useful on other systems. |
8838 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8839 | # |
a0b9e27f MB |
8840 | # By default, configure uses ./config.cache as the cache file, |
8841 | # creating it if it does not exist already. You can give configure | |
8842 | # the --cache-file=FILE option to use a different cache file; that is | |
8843 | # what configure does when it calls configure scripts in | |
8844 | # subdirectories, so they share the cache. | |
8845 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8846 | # config.status only pays attention to the cache file if you give it the | |
8847 | # --recheck option to rerun configure. | |
10f2d63a | 8848 | # |
a0b9e27f | 8849 | EOF |
10f2d63a VZ |
8850 | # The following way of writing the cache mishandles newlines in values, |
8851 | # but we know of no workaround that is simple, portable, and efficient. | |
8852 | # So, don't put newlines in cache variables' values. | |
8853 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8854 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
8855 | (set) 2>&1 | |
8856 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8857 | *ac_space=\ *) | |
8858 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8859 | # turns \\\\ into \\, and sed turns \\ into \). | |
8860 | sed -n \ | |
8861 | -e "s/'/'\\\\''/g" \ | |
8862 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8863 | ;; | |
8864 | *) | |
8865 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8866 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8867 | ;; | |
8868 | esac >> confcache | |
8869 | if cmp -s $cache_file confcache; then | |
8870 | : | |
8871 | else | |
10f2d63a | 8872 | if test -w $cache_file; then |
a0b9e27f MB |
8873 | echo "updating cache $cache_file" |
8874 | cat confcache > $cache_file | |
10f2d63a VZ |
8875 | else |
8876 | echo "not updating unwritable cache $cache_file" | |
8877 | fi | |
8878 | fi | |
8879 | rm -f confcache | |
8880 | ||
a0b9e27f | 8881 | |
e59890c3 | 8882 | if test "$build" != "$host" ; then |
9d353d4a | 8883 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8884 | CC=$host_alias-gcc |
8885 | CXX=$host_alias-c++ | |
8886 | AR=$host_alias-ar | |
8887 | RANLIB=$host_alias-ranlib | |
8888 | DLLTOOL=$host_alias-dlltool | |
8889 | RESCOMP=$host_alias-windres | |
8890 | LD=$host_alias-ld | |
8891 | NM=$host_alias-nm | |
8892 | STRIP=$host_alias-strip | |
8893 | else | |
a0b9e27f | 8894 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 8895 | fi |
10f2d63a VZ |
8896 | fi |
8897 | ||
ec603395 | 8898 | CFLAGS=${CFLAGS:=} |
a0b9e27f | 8899 | # Extract the first word of "gcc", so it can be a program name with args. |
8284b0c5 | 8900 | set dummy gcc; ac_word=$2 |
a0b9e27f | 8901 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2b5f62a0 | 8902 | echo "configure:8903: checking for $ac_word" >&5 |
a0b9e27f MB |
8903 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8905 | else |
8906 | if test -n "$CC"; then | |
8907 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8908 | else |
a0b9e27f MB |
8909 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8910 | ac_dummy="$PATH" | |
8911 | for ac_dir in $ac_dummy; do | |
8912 | test -z "$ac_dir" && ac_dir=. | |
8913 | if test -f $ac_dir/$ac_word; then | |
8914 | ac_cv_prog_CC="gcc" | |
8915 | break | |
8916 | fi | |
8917 | done | |
8918 | IFS="$ac_save_ifs" | |
10f2d63a | 8919 | fi |
6232543b | 8920 | fi |
a0b9e27f | 8921 | CC="$ac_cv_prog_CC" |
6232543b | 8922 | if test -n "$CC"; then |
a0b9e27f | 8923 | echo "$ac_t""$CC" 1>&6 |
247f5006 | 8924 | else |
a0b9e27f | 8925 | echo "$ac_t""no" 1>&6 |
247f5006 VZ |
8926 | fi |
8927 | ||
5c6fa7d2 RR |
8928 | if test -z "$CC"; then |
8929 | # Extract the first word of "cc", so it can be a program name with args. | |
8930 | set dummy cc; ac_word=$2 | |
a0b9e27f | 8931 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2b5f62a0 | 8932 | echo "configure:8933: checking for $ac_word" >&5 |
a0b9e27f MB |
8933 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8934 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 RR |
8935 | else |
8936 | if test -n "$CC"; then | |
8937 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8938 | else | |
a0b9e27f | 8939 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5c6fa7d2 | 8940 | ac_prog_rejected=no |
a0b9e27f MB |
8941 | ac_dummy="$PATH" |
8942 | for ac_dir in $ac_dummy; do | |
8943 | test -z "$ac_dir" && ac_dir=. | |
8944 | if test -f $ac_dir/$ac_word; then | |
8945 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8946 | ac_prog_rejected=yes | |
8947 | continue | |
8948 | fi | |
8949 | ac_cv_prog_CC="cc" | |
8950 | break | |
8951 | fi | |
8952 | done | |
8953 | IFS="$ac_save_ifs" | |
328a083c RR |
8954 | if test $ac_prog_rejected = yes; then |
8955 | # We found a bogon in the path, so make sure we never use it. | |
8956 | set dummy $ac_cv_prog_CC | |
8957 | shift | |
a0b9e27f | 8958 | if test $# -gt 0; then |
328a083c | 8959 | # We chose a different compiler from the bogus one. |
1e487827 VS |
8960 | # However, it has the same basename, so the bogon will be chosen |
8961 | # first if we set CC to just the basename; use the full file name. | |
8962 | shift | |
a0b9e27f | 8963 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8964 | shift |
8965 | ac_cv_prog_CC="$@" | |
703e0a69 | 8966 | fi |
1e487827 VS |
8967 | fi |
8968 | fi | |
8969 | fi | |
a0b9e27f | 8970 | CC="$ac_cv_prog_CC" |
1e487827 | 8971 | if test -n "$CC"; then |
a0b9e27f | 8972 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8973 | else |
a0b9e27f | 8974 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8975 | fi |
1e487827 | 8976 | |
a0b9e27f MB |
8977 | if test -z "$CC"; then |
8978 | case "`uname -s`" in | |
8979 | *win32* | *WIN32*) | |
8980 | # Extract the first word of "cl", so it can be a program name with args. | |
8981 | set dummy cl; ac_word=$2 | |
8982 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2b5f62a0 | 8983 | echo "configure:8984: checking for $ac_word" >&5 |
a0b9e27f MB |
8984 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8985 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf VS |
8986 | else |
8987 | if test -n "$CC"; then | |
8988 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8989 | else | |
a0b9e27f MB |
8990 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8991 | ac_dummy="$PATH" | |
8992 | for ac_dir in $ac_dummy; do | |
8993 | test -z "$ac_dir" && ac_dir=. | |
8994 | if test -f $ac_dir/$ac_word; then | |
8995 | ac_cv_prog_CC="cl" | |
8996 | break | |
8997 | fi | |
8998 | done | |
8999 | IFS="$ac_save_ifs" | |
f09359cf VS |
9000 | fi |
9001 | fi | |
a0b9e27f | 9002 | CC="$ac_cv_prog_CC" |
f09359cf | 9003 | if test -n "$CC"; then |
a0b9e27f | 9004 | echo "$ac_t""$CC" 1>&6 |
f09359cf | 9005 | else |
a0b9e27f | 9006 | echo "$ac_t""no" 1>&6 |
247f5006 | 9007 | fi |
a0b9e27f MB |
9008 | ;; |
9009 | esac | |
8284b0c5 | 9010 | fi |
a0b9e27f | 9011 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5c6fa7d2 | 9012 | fi |
1e487827 | 9013 | |
a0b9e27f | 9014 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
2b5f62a0 | 9015 | echo "configure:9016: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
f09359cf | 9016 | |
a0b9e27f MB |
9017 | ac_ext=c |
9018 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9019 | ac_cpp='$CPP $CPPFLAGS' | |
9020 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9021 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9022 | cross_compiling=$ac_cv_prog_cc_cross | |
f09359cf | 9023 | |
a0b9e27f | 9024 | cat > conftest.$ac_ext << EOF |
247f5006 | 9025 | |
2b5f62a0 | 9026 | #line 9027 "configure" |
a0b9e27f | 9027 | #include "confdefs.h" |
247f5006 | 9028 | |
a0b9e27f MB |
9029 | main(){return(0);} |
9030 | EOF | |
2b5f62a0 | 9031 | if { (eval echo configure:9032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9032 | ac_cv_prog_cc_works=yes |
9033 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9034 | if (./conftest; exit) 2>/dev/null; then | |
9035 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 9036 | else |
a0b9e27f | 9037 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 9038 | fi |
7b4a847f | 9039 | else |
a0b9e27f MB |
9040 | echo "configure: failed program was:" >&5 |
9041 | cat conftest.$ac_ext >&5 | |
9042 | ac_cv_prog_cc_works=no | |
52127426 | 9043 | fi |
a0b9e27f MB |
9044 | rm -fr conftest* |
9045 | ac_ext=c | |
9046 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9047 | ac_cpp='$CPP $CPPFLAGS' | |
9048 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9049 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9050 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9051 | |
a0b9e27f MB |
9052 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
9053 | if test $ac_cv_prog_cc_works = no; then | |
9054 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
9055 | fi | |
9056 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
2b5f62a0 | 9057 | echo "configure:9058: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9058 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
9059 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9060 | |
a0b9e27f | 9061 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
2b5f62a0 | 9062 | echo "configure:9063: checking whether we are using GNU C" >&5 |
a0b9e27f MB |
9063 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
9064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9065 | else |
a0b9e27f MB |
9066 | cat > conftest.c <<EOF |
9067 | #ifdef __GNUC__ | |
9068 | yes; | |
8284b0c5 | 9069 | #endif |
a0b9e27f | 9070 | EOF |
2b5f62a0 | 9071 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f | 9072 | ac_cv_prog_gcc=yes |
5c6fa7d2 | 9073 | else |
a0b9e27f | 9074 | ac_cv_prog_gcc=no |
8284b0c5 MB |
9075 | fi |
9076 | fi | |
1e487827 | 9077 | |
a0b9e27f | 9078 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
f09359cf | 9079 | |
a0b9e27f MB |
9080 | if test $ac_cv_prog_gcc = yes; then |
9081 | GCC=yes | |
9082 | else | |
9083 | GCC= | |
9084 | fi | |
247f5006 | 9085 | |
a0b9e27f MB |
9086 | ac_test_CFLAGS="${CFLAGS+set}" |
9087 | ac_save_CFLAGS="$CFLAGS" | |
9088 | CFLAGS= | |
9089 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
2b5f62a0 | 9090 | echo "configure:9091: checking whether ${CC-cc} accepts -g" >&5 |
a0b9e27f MB |
9091 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
9092 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9093 | else | |
9094 | echo 'void f(){}' > conftest.c | |
9095 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
9096 | ac_cv_prog_cc_g=yes |
9097 | else | |
a0b9e27f | 9098 | ac_cv_prog_cc_g=no |
10f2d63a | 9099 | fi |
a0b9e27f MB |
9100 | rm -f conftest* |
9101 | ||
10f2d63a | 9102 | fi |
a0b9e27f MB |
9103 | |
9104 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
f09359cf | 9105 | if test "$ac_test_CFLAGS" = set; then |
a0b9e27f | 9106 | CFLAGS="$ac_save_CFLAGS" |
f09359cf VS |
9107 | elif test $ac_cv_prog_cc_g = yes; then |
9108 | if test "$GCC" = yes; then | |
10f2d63a VZ |
9109 | CFLAGS="-g -O2" |
9110 | else | |
f09359cf | 9111 | CFLAGS="-g" |
10f2d63a | 9112 | fi |
5c0a20c3 | 9113 | else |
f09359cf VS |
9114 | if test "$GCC" = yes; then |
9115 | CFLAGS="-O2" | |
9116 | else | |
9117 | CFLAGS= | |
9118 | fi | |
10f2d63a VZ |
9119 | fi |
9120 | ||
9121 | ||
a0b9e27f | 9122 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
2b5f62a0 | 9123 | echo "configure:9124: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
9124 | # On Suns, sometimes $CPP names a directory. |
9125 | if test -n "$CPP" && test -d "$CPP"; then | |
9126 | CPP= | |
9127 | fi | |
9128 | if test -z "$CPP"; then | |
a0b9e27f MB |
9129 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
9130 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9131 | else | |
9132 | # This must be in double quotes, not single quotes, because CPP may get | |
9133 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
9134 | CPP="${CC-cc} -E" | |
10f2d63a | 9135 | # On the NeXT, cc -E runs the code through the compiler's parser, |
a0b9e27f MB |
9136 | # not just through cpp. |
9137 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 9138 | #line 9139 "configure" |
10f2d63a VZ |
9139 | #include "confdefs.h" |
9140 | #include <assert.h> | |
a0b9e27f MB |
9141 | Syntax Error |
9142 | EOF | |
9143 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 9144 | { (eval echo configure:9145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9145 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9146 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9147 | : |
9148 | else | |
a0b9e27f MB |
9149 | echo "$ac_err" >&5 |
9150 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9151 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9152 | rm -rf conftest* |
9153 | CPP="${CC-cc} -E -traditional-cpp" | |
9154 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 9155 | #line 9156 "configure" |
f09359cf | 9156 | #include "confdefs.h" |
a0b9e27f MB |
9157 | #include <assert.h> |
9158 | Syntax Error | |
9159 | EOF | |
9160 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 9161 | { (eval echo configure:9162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9162 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9163 | if test -z "$ac_err"; then | |
9164 | : | |
247f5006 | 9165 | else |
a0b9e27f MB |
9166 | echo "$ac_err" >&5 |
9167 | echo "configure: failed program was:" >&5 | |
f09359cf | 9168 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9169 | rm -rf conftest* |
9170 | CPP="${CC-cc} -nologo -E" | |
9171 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 9172 | #line 9173 "configure" |
10f2d63a VZ |
9173 | #include "confdefs.h" |
9174 | #include <assert.h> | |
a0b9e27f MB |
9175 | Syntax Error |
9176 | EOF | |
9177 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 9178 | { (eval echo configure:9179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9179 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9180 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9181 | : |
9182 | else | |
a0b9e27f MB |
9183 | echo "$ac_err" >&5 |
9184 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9185 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9186 | rm -rf conftest* |
9187 | CPP=/lib/cpp | |
579d8138 | 9188 | fi |
a0b9e27f | 9189 | rm -f conftest* |
52127426 | 9190 | fi |
a0b9e27f | 9191 | rm -f conftest* |
8284b0c5 | 9192 | fi |
a0b9e27f MB |
9193 | rm -f conftest* |
9194 | ac_cv_prog_CPP="$CPP" | |
9195 | fi | |
9196 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 9197 | else |
a0b9e27f | 9198 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 9199 | fi |
a0b9e27f | 9200 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 9201 | |
a0b9e27f MB |
9202 | if test $ac_cv_prog_gcc = yes; then |
9203 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
2b5f62a0 | 9204 | echo "configure:9205: checking whether ${CC-cc} needs -traditional" >&5 |
a0b9e27f MB |
9205 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
9206 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9207 | else |
9208 | ac_pattern="Autoconf.*'x'" | |
a0b9e27f | 9209 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 9210 | #line 9211 "configure" |
10f2d63a VZ |
9211 | #include "confdefs.h" |
9212 | #include <sgtty.h> | |
9213 | Autoconf TIOCGETP | |
a0b9e27f | 9214 | EOF |
10f2d63a VZ |
9215 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9216 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9217 | rm -rf conftest* |
10f2d63a VZ |
9218 | ac_cv_prog_gcc_traditional=yes |
9219 | else | |
a0b9e27f | 9220 | rm -rf conftest* |
10f2d63a VZ |
9221 | ac_cv_prog_gcc_traditional=no |
9222 | fi | |
9223 | rm -f conftest* | |
9224 | ||
8284b0c5 | 9225 | |
10f2d63a | 9226 | if test $ac_cv_prog_gcc_traditional = no; then |
a0b9e27f | 9227 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 9228 | #line 9229 "configure" |
10f2d63a VZ |
9229 | #include "confdefs.h" |
9230 | #include <termio.h> | |
9231 | Autoconf TCGETA | |
a0b9e27f | 9232 | EOF |
10f2d63a VZ |
9233 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9234 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9235 | rm -rf conftest* |
10f2d63a VZ |
9236 | ac_cv_prog_gcc_traditional=yes |
9237 | fi | |
9238 | rm -f conftest* | |
9239 | ||
9240 | fi | |
9241 | fi | |
a0b9e27f MB |
9242 | |
9243 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
9244 | if test $ac_cv_prog_gcc_traditional = yes; then |
9245 | CC="$CC -traditional" | |
9246 | fi | |
9247 | fi | |
9248 | ||
8284b0c5 MB |
9249 | |
9250 | ||
a0b9e27f MB |
9251 | ac_ext=C |
9252 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 9253 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
9254 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9255 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9256 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9257 | |
698dcdb6 | 9258 | |
ec603395 | 9259 | CXXFLAGS=${CXXFLAGS:=} |
a0b9e27f MB |
9260 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
9261 | do | |
9262 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9263 | set dummy $ac_prog; ac_word=$2 | |
9264 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2b5f62a0 | 9265 | echo "configure:9266: checking for $ac_word" >&5 |
a0b9e27f MB |
9266 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
9267 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9268 | else |
9269 | if test -n "$CXX"; then | |
9270 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9271 | else | |
a0b9e27f MB |
9272 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9273 | ac_dummy="$PATH" | |
9274 | for ac_dir in $ac_dummy; do | |
9275 | test -z "$ac_dir" && ac_dir=. | |
9276 | if test -f $ac_dir/$ac_word; then | |
9277 | ac_cv_prog_CXX="$ac_prog" | |
9278 | break | |
9279 | fi | |
9280 | done | |
9281 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9282 | fi |
9283 | fi | |
a0b9e27f | 9284 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9285 | if test -n "$CXX"; then |
a0b9e27f | 9286 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9287 | else |
a0b9e27f | 9288 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9289 | fi |
9290 | ||
a0b9e27f | 9291 | test -n "$CXX" && break |
10f2d63a | 9292 | done |
a0b9e27f | 9293 | test -n "$CXX" || CXX="gcc" |
f09359cf | 9294 | |
a0b9e27f MB |
9295 | |
9296 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
2b5f62a0 | 9297 | echo "configure:9298: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
a0b9e27f MB |
9298 | |
9299 | ac_ext=C | |
9300 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9301 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9302 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9303 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9304 | cross_compiling=$ac_cv_prog_cxx_cross | |
9305 | ||
9306 | cat > conftest.$ac_ext << EOF | |
9307 | ||
2b5f62a0 | 9308 | #line 9309 "configure" |
a0b9e27f MB |
9309 | #include "confdefs.h" |
9310 | ||
9311 | int main(){return(0);} | |
9312 | EOF | |
2b5f62a0 | 9313 | if { (eval echo configure:9314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9314 | ac_cv_prog_cxx_works=yes |
9315 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9316 | if (./conftest; exit) 2>/dev/null; then | |
9317 | ac_cv_prog_cxx_cross=no | |
9318 | else | |
9319 | ac_cv_prog_cxx_cross=yes | |
9320 | fi | |
8284b0c5 | 9321 | else |
a0b9e27f MB |
9322 | echo "configure: failed program was:" >&5 |
9323 | cat conftest.$ac_ext >&5 | |
9324 | ac_cv_prog_cxx_works=no | |
8284b0c5 | 9325 | fi |
a0b9e27f MB |
9326 | rm -fr conftest* |
9327 | ac_ext=C | |
9328 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9329 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9330 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9331 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9332 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9333 | |
a0b9e27f MB |
9334 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
9335 | if test $ac_cv_prog_cxx_works = no; then | |
9336 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9337 | fi | |
9338 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
2b5f62a0 | 9339 | echo "configure:9340: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9340 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9341 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9342 | |
a0b9e27f | 9343 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
2b5f62a0 | 9344 | echo "configure:9345: checking whether we are using GNU C++" >&5 |
a0b9e27f MB |
9345 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9346 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9347 | else | |
9348 | cat > conftest.C <<EOF | |
9349 | #ifdef __GNUC__ | |
9350 | yes; | |
10f2d63a | 9351 | #endif |
a0b9e27f | 9352 | EOF |
2b5f62a0 | 9353 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f MB |
9354 | ac_cv_prog_gxx=yes |
9355 | else | |
9356 | ac_cv_prog_gxx=no | |
9357 | fi | |
9358 | fi | |
10f2d63a | 9359 | |
a0b9e27f | 9360 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9361 | |
a0b9e27f MB |
9362 | if test $ac_cv_prog_gxx = yes; then |
9363 | GXX=yes | |
9364 | else | |
9365 | GXX= | |
9366 | fi | |
f09359cf | 9367 | |
a0b9e27f MB |
9368 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9369 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9370 | CXXFLAGS= | |
9371 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
2b5f62a0 | 9372 | echo "configure:9373: checking whether ${CXX-g++} accepts -g" >&5 |
a0b9e27f MB |
9373 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9374 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9375 | else | |
9376 | echo 'void f(){}' > conftest.cc | |
9377 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9378 | ac_cv_prog_cxx_g=yes |
9379 | else | |
a0b9e27f | 9380 | ac_cv_prog_cxx_g=no |
10f2d63a | 9381 | fi |
a0b9e27f MB |
9382 | rm -f conftest* |
9383 | ||
10f2d63a | 9384 | fi |
a0b9e27f MB |
9385 | |
9386 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
f09359cf | 9387 | if test "$ac_test_CXXFLAGS" = set; then |
a0b9e27f | 9388 | CXXFLAGS="$ac_save_CXXFLAGS" |
f09359cf VS |
9389 | elif test $ac_cv_prog_cxx_g = yes; then |
9390 | if test "$GXX" = yes; then | |
10f2d63a VZ |
9391 | CXXFLAGS="-g -O2" |
9392 | else | |
f09359cf | 9393 | CXXFLAGS="-g" |
10f2d63a | 9394 | fi |
5c0a20c3 | 9395 | else |
f09359cf VS |
9396 | if test "$GXX" = yes; then |
9397 | CXXFLAGS="-O2" | |
9398 | else | |
9399 | CXXFLAGS= | |
9400 | fi | |
10f2d63a VZ |
9401 | fi |
9402 | ||
9403 | ||
10f2d63a | 9404 | ac_ext=c |
a0b9e27f | 9405 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9406 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
9407 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9408 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9409 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 MB |
9410 | |
9411 | ||
a0b9e27f MB |
9412 | # Extract the first word of "ranlib", so it can be a program name with args. |
9413 | set dummy ranlib; ac_word=$2 | |
9414 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2b5f62a0 | 9415 | echo "configure:9416: checking for $ac_word" >&5 |
a0b9e27f MB |
9416 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9417 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9418 | else |
9419 | if test -n "$RANLIB"; then | |
9420 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9421 | else | |
a0b9e27f MB |
9422 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9423 | ac_dummy="$PATH" | |
9424 | for ac_dir in $ac_dummy; do | |
9425 | test -z "$ac_dir" && ac_dir=. | |
9426 | if test -f $ac_dir/$ac_word; then | |
9427 | ac_cv_prog_RANLIB="ranlib" | |
9428 | break | |
9429 | fi | |
9430 | done | |
9431 | IFS="$ac_save_ifs" | |
9432 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9433 | fi |
9434 | fi | |
a0b9e27f | 9435 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9436 | if test -n "$RANLIB"; then |
a0b9e27f | 9437 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9438 | else |
a0b9e27f | 9439 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9440 | fi |
9441 | ||
10f2d63a VZ |
9442 | |
9443 | # Extract the first word of "ar", so it can be a program name with args. | |
9444 | set dummy ar; ac_word=$2 | |
a0b9e27f | 9445 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2b5f62a0 | 9446 | echo "configure:9447: checking for $ac_word" >&5 |
a0b9e27f MB |
9447 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9448 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9449 | else |
9450 | if test -n "$AR"; then | |
9451 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9452 | else | |
a0b9e27f MB |
9453 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9454 | ac_dummy="$PATH" | |
9455 | for ac_dir in $ac_dummy; do | |
9456 | test -z "$ac_dir" && ac_dir=. | |
9457 | if test -f $ac_dir/$ac_word; then | |
9458 | ac_cv_prog_AR="ar" | |
9459 | break | |
9460 | fi | |
9461 | done | |
9462 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9463 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9464 | fi | |
9465 | fi | |
a0b9e27f | 9466 | AR="$ac_cv_prog_AR" |
10f2d63a | 9467 | if test -n "$AR"; then |
a0b9e27f | 9468 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9469 | else |
a0b9e27f | 9470 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9471 | fi |
9472 | ||
8284b0c5 | 9473 | |
6054113a | 9474 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9475 | # so one script is as good as another. But avoid the broken or |
9476 | # incompatible versions: | |
9477 | # SysV /etc/install, /usr/sbin/install | |
9478 | # SunOS /usr/etc/install | |
9479 | # IRIX /sbin/install | |
9480 | # AIX /bin/install | |
f09359cf | 9481 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
9482 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9483 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9484 | # ./install, which can be erroneously created by make from ./install.sh. | |
a0b9e27f | 9485 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
2b5f62a0 | 9486 | echo "configure:9487: checking for a BSD compatible install" >&5 |
10f2d63a | 9487 | if test -z "$INSTALL"; then |
a0b9e27f MB |
9488 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9489 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9490 | else | |
9491 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9492 | for ac_dir in $PATH; do | |
9493 | # Account for people who put trailing slashes in PATH elements. | |
9494 | case "$ac_dir/" in | |
9495 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9496 | *) | |
9497 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9498 | # Don't use installbsd from OSF since it installs stuff as root | |
9499 | # by default. | |
9500 | for ac_prog in ginstall scoinst install; do | |
9501 | if test -f $ac_dir/$ac_prog; then | |
9502 | if test $ac_prog = install && | |
9503 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9504 | # AIX install. It has an incompatible calling convention. | |
9505 | : | |
9506 | else | |
9507 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9508 | break 2 | |
9509 | fi | |
9510 | fi | |
10f2d63a | 9511 | done |
a0b9e27f MB |
9512 | ;; |
9513 | esac | |
9514 | done | |
9515 | IFS="$ac_save_IFS" | |
10f2d63a VZ |
9516 | |
9517 | fi | |
9518 | if test "${ac_cv_path_install+set}" = set; then | |
a0b9e27f | 9519 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9520 | else |
9521 | # As a last resort, use the slow shell script. We don't cache a | |
9522 | # path for INSTALL within a source directory, because that will | |
9523 | # break other packages using the cache if that directory is | |
9524 | # removed, or if the path is relative. | |
a0b9e27f | 9525 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9526 | fi |
9527 | fi | |
a0b9e27f | 9528 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9529 | |
9530 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9531 | # It thinks the first close brace ends the variable substitution. | |
9532 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9533 | ||
a0b9e27f | 9534 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
f09359cf | 9535 | |
10f2d63a VZ |
9536 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9537 | ||
8284b0c5 | 9538 | |
1d1b75ac VZ |
9539 | case ${INSTALL} in |
9540 | /* ) # Absolute | |
9541 | ;; | |
3bd8fb5f | 9542 | *) |
1d1b75ac VZ |
9543 | INSTALL=`pwd`/${INSTALL} ;; |
9544 | esac | |
9545 | ||
8284b0c5 | 9546 | |
6054113a GD |
9547 | case "${host}" in |
9548 | ||
b5853384 | 9549 | powerpc-*-darwin* ) |
eb99ae0b GD |
9550 | INSTALL_PROGRAM="cp -fp" |
9551 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9552 | ;; |
9553 | *) | |
9554 | ;; | |
d6853540 | 9555 | esac |
698dcdb6 | 9556 | |
10f2d63a VZ |
9557 | # Extract the first word of "strip", so it can be a program name with args. |
9558 | set dummy strip; ac_word=$2 | |
a0b9e27f | 9559 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2b5f62a0 | 9560 | echo "configure:9561: checking for $ac_word" >&5 |
a0b9e27f MB |
9561 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9562 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9563 | else |
9564 | if test -n "$STRIP"; then | |
9565 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9566 | else | |
a0b9e27f MB |
9567 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9568 | ac_dummy="$PATH" | |
9569 | for ac_dir in $ac_dummy; do | |
9570 | test -z "$ac_dir" && ac_dir=. | |
9571 | if test -f $ac_dir/$ac_word; then | |
9572 | ac_cv_prog_STRIP="strip" | |
9573 | break | |
9574 | fi | |
9575 | done | |
9576 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9577 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9578 | fi | |
9579 | fi | |
a0b9e27f | 9580 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9581 | if test -n "$STRIP"; then |
a0b9e27f | 9582 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9583 | else |
a0b9e27f | 9584 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9585 | fi |
9586 | ||
5c6fa7d2 | 9587 | |
a0b9e27f | 9588 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
2b5f62a0 | 9589 | echo "configure:9590: checking if make is GNU make" >&5 |
a0b9e27f MB |
9590 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9592 | else |
a0b9e27f | 9593 | |
414eab6d | 9594 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9595 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9596 | wx_cv_prog_makeisgnu="yes" |
9597 | else | |
9598 | wx_cv_prog_makeisgnu="no" | |
9599 | fi | |
9600 | ||
9601 | fi | |
a0b9e27f MB |
9602 | |
9603 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9604 | |
9605 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9606 | IF_GNU_MAKE="" | |
9607 | else | |
9608 | IF_GNU_MAKE="#" | |
9609 | fi | |
9610 | ||
8284b0c5 MB |
9611 | |
9612 | ||
414eab6d | 9613 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
a0b9e27f | 9614 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
2b5f62a0 | 9615 | echo "configure:9616: checking if make supports VPATH" >&5 |
a0b9e27f MB |
9616 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9618 | else |
a0b9e27f | 9619 | |
10f2d63a VZ |
9620 | cat - << EOF > confMake |
9621 | check : file | |
9622 | cp \$? \$@ | |
9623 | cp \$? final_file | |
9624 | EOF | |
9625 | ||
9626 | if test ! -d sub ; then | |
9627 | mkdir sub | |
9628 | fi | |
9629 | echo dummy > sub/file | |
f6bcfd97 | 9630 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9631 | RESULT=$? |
9632 | rm -f sub/file check final_file confMake | |
9633 | rmdir sub | |
9634 | if test "$RESULT" = 0; then | |
04e7a216 | 9635 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9636 | else |
04e7a216 VZ |
9637 | wx_cv_prog_makevpath="no" |
9638 | fi | |
9639 | ||
9640 | fi | |
a0b9e27f MB |
9641 | |
9642 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9643 | |
9644 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
a0b9e27f | 9645 | { echo "configure: error: |
5c6fa7d2 RR |
9646 | You need a make-utility that is able to use the variable |
9647 | VPATH correctly. | |
9648 | If your version of make does not support VPATH correctly, | |
9649 | please install GNU-make (possibly as gmake), and start | |
9650 | configure with the following command: | |
9651 | export MAKE=gmake; ./configure for sh-type shells | |
9652 | setenv MAKE gmake; ./configure for csh-type shells | |
9653 | Also please do remember to use gmake in this case every time | |
9654 | you are trying to compile. | |
a0b9e27f MB |
9655 | " 1>&2; exit 1; } |
9656 | fi fi | |
10f2d63a VZ |
9657 | for ac_prog in 'bison -y' byacc |
9658 | do | |
a0b9e27f | 9659 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9660 | set dummy $ac_prog; ac_word=$2 |
a0b9e27f | 9661 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2b5f62a0 | 9662 | echo "configure:9663: checking for $ac_word" >&5 |
a0b9e27f MB |
9663 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9665 | else |
9666 | if test -n "$YACC"; then | |
9667 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9668 | else | |
a0b9e27f MB |
9669 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9670 | ac_dummy="$PATH" | |
9671 | for ac_dir in $ac_dummy; do | |
9672 | test -z "$ac_dir" && ac_dir=. | |
9673 | if test -f $ac_dir/$ac_word; then | |
9674 | ac_cv_prog_YACC="$ac_prog" | |
9675 | break | |
9676 | fi | |
9677 | done | |
9678 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9679 | fi |
9680 | fi | |
a0b9e27f | 9681 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9682 | if test -n "$YACC"; then |
a0b9e27f | 9683 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9684 | else |
a0b9e27f | 9685 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9686 | fi |
9687 | ||
a0b9e27f | 9688 | test -n "$YACC" && break |
10f2d63a VZ |
9689 | done |
9690 | test -n "$YACC" || YACC="yacc" | |
9691 | ||
8284b0c5 | 9692 | |
a0b9e27f MB |
9693 | # Extract the first word of "flex", so it can be a program name with args. |
9694 | set dummy flex; ac_word=$2 | |
9695 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2b5f62a0 | 9696 | echo "configure:9697: checking for $ac_word" >&5 |
a0b9e27f MB |
9697 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9698 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9699 | else |
9700 | if test -n "$LEX"; then | |
9701 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9702 | else | |
a0b9e27f MB |
9703 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9704 | ac_dummy="$PATH" | |
9705 | for ac_dir in $ac_dummy; do | |
9706 | test -z "$ac_dir" && ac_dir=. | |
9707 | if test -f $ac_dir/$ac_word; then | |
9708 | ac_cv_prog_LEX="flex" | |
9709 | break | |
9710 | fi | |
9711 | done | |
9712 | IFS="$ac_save_ifs" | |
9713 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9714 | fi |
9715 | fi | |
a0b9e27f | 9716 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9717 | if test -n "$LEX"; then |
a0b9e27f | 9718 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9719 | else |
a0b9e27f | 9720 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9721 | fi |
9722 | ||
9723 | if test -z "$LEXLIB" | |
9724 | then | |
a0b9e27f MB |
9725 | case "$LEX" in |
9726 | flex*) ac_lib=fl ;; | |
9727 | *) ac_lib=l ;; | |
9728 | esac | |
9729 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
2b5f62a0 | 9730 | echo "configure:9731: checking for yywrap in -l$ac_lib" >&5 |
a0b9e27f MB |
9731 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9732 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9734 | else | |
9735 | ac_save_LIBS="$LIBS" | |
9736 | LIBS="-l$ac_lib $LIBS" | |
9737 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 9738 | #line 9739 "configure" |
247f5006 | 9739 | #include "confdefs.h" |
247f5006 | 9740 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 9741 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
9742 | builtin and then its argument prototype would still apply. */ |
9743 | char yywrap(); | |
10f2d63a | 9744 | |
a0b9e27f MB |
9745 | int main() { |
9746 | yywrap() | |
9747 | ; return 0; } | |
9748 | EOF | |
2b5f62a0 | 9749 | if { (eval echo configure:9750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9750 | rm -rf conftest* |
9751 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9752 | else | |
9753 | echo "configure: failed program was:" >&5 | |
9754 | cat conftest.$ac_ext >&5 | |
9755 | rm -rf conftest* | |
9756 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9757 | fi |
a0b9e27f MB |
9758 | rm -f conftest* |
9759 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 9760 | |
10f2d63a | 9761 | fi |
a0b9e27f MB |
9762 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9763 | echo "$ac_t""yes" 1>&6 | |
9764 | LEXLIB="-l$ac_lib" | |
8284b0c5 | 9765 | else |
a0b9e27f | 9766 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9767 | fi |
9768 | ||
a0b9e27f | 9769 | fi |
10f2d63a VZ |
9770 | |
9771 | ||
a0b9e27f | 9772 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
2b5f62a0 | 9773 | echo "configure:9774: checking whether ln -s works" >&5 |
a0b9e27f MB |
9774 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9776 | else |
a0b9e27f MB |
9777 | rm -f conftestdata |
9778 | if ln -s X conftestdata 2>/dev/null | |
9779 | then | |
9780 | rm -f conftestdata | |
9781 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9782 | else |
a0b9e27f | 9783 | ac_cv_prog_LN_S=ln |
10f2d63a | 9784 | fi |
a0b9e27f MB |
9785 | fi |
9786 | LN_S="$ac_cv_prog_LN_S" | |
9787 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9788 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9789 | else |
a0b9e27f | 9790 | echo "$ac_t""no" 1>&6 |
5c6fa7d2 | 9791 | fi |
5c6fa7d2 | 9792 | |
247f5006 | 9793 | |
2b5f62a0 VZ |
9794 | case "${host}" in |
9795 | *-pc-os2_emx | *-pc-os2-emx ) | |
9796 | LIBS="$LIBS -lstdcpp" | |
9797 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
9798 | echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6 | |
9799 | echo "configure:9800: checking for drand48 in -lcExt" >&5 | |
9800 | ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'` | |
9801 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9802 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9803 | else | |
9804 | ac_save_LIBS="$LIBS" | |
9805 | LIBS="-lcExt $LIBS" | |
9806 | cat > conftest.$ac_ext <<EOF | |
9807 | #line 9808 "configure" | |
9808 | #include "confdefs.h" | |
9809 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9810 | /* We use char because int might match the return type of a gcc2 | |
9811 | builtin and then its argument prototype would still apply. */ | |
9812 | char drand48(); | |
9813 | ||
9814 | int main() { | |
9815 | drand48() | |
9816 | ; return 0; } | |
9817 | EOF | |
9818 | if { (eval echo configure:9819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9819 | rm -rf conftest* | |
9820 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9821 | else | |
9822 | echo "configure: failed program was:" >&5 | |
9823 | cat conftest.$ac_ext >&5 | |
9824 | rm -rf conftest* | |
9825 | eval "ac_cv_lib_$ac_lib_var=no" | |
9826 | fi | |
9827 | rm -f conftest* | |
9828 | LIBS="$ac_save_LIBS" | |
9829 | ||
9830 | fi | |
9831 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9832 | echo "$ac_t""yes" 1>&6 | |
9833 | LIBS="$LIBS -lcExt" | |
9834 | else | |
9835 | echo "$ac_t""no" 1>&6 | |
9836 | fi | |
9837 | ||
9838 | else | |
9839 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
9840 | fi | |
9841 | ;; | |
9842 | esac | |
9843 | ||
a0b9e27f MB |
9844 | |
9845 | if test "$wxUSE_MAC" != 1; then | |
9846 | for ac_hdr in strings.h | |
9847 | do | |
9848 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9849 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 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 | |
2b5f62a0 | 9855 | #line 9856 "configure" |
a0b9e27f MB |
9856 | #include "confdefs.h" |
9857 | #include <$ac_hdr> | |
9858 | EOF | |
9859 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 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" | |
21d1c967 | 9871 | fi |
247f5006 | 9872 | rm -f conftest* |
19bc6aad | 9873 | fi |
a0b9e27f MB |
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 | ||
247f5006 | 9881 | else |
a0b9e27f | 9882 | echo "$ac_t""no" 1>&6 |
18dbb1f6 | 9883 | fi |
a0b9e27f | 9884 | done |
247f5006 | 9885 | |
90dd450c | 9886 | fi |
90dd450c | 9887 | |
a0b9e27f MB |
9888 | for ac_hdr in stdlib.h |
9889 | do | |
9890 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9891 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 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 | |
2b5f62a0 | 9897 | #line 9898 "configure" |
90dd450c | 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" | |
2b5f62a0 | 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 | |
9910 | cat conftest.$ac_ext >&5 | |
9911 | rm -rf conftest* | |
9912 | eval "ac_cv_header_$ac_safe=no" | |
9913 | fi | |
9914 | rm -f conftest* | |
9915 | fi | |
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 | ||
8284b0c5 | 9923 | else |
a0b9e27f | 9924 | echo "$ac_t""no" 1>&6 |
21d1c967 | 9925 | fi |
a0b9e27f MB |
9926 | done |
9927 | ||
9928 | for ac_hdr in malloc.h | |
9929 | do | |
9930 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9931 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 9932 | echo "configure:9933: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9933 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9934 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9935 | else | |
9936 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 9937 | #line 9938 "configure" |
a0b9e27f MB |
9938 | #include "confdefs.h" |
9939 | #include <$ac_hdr> | |
9940 | EOF | |
9941 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 9942 | { (eval echo configure:9943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9943 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9944 | if test -z "$ac_err"; then | |
9945 | rm -rf conftest* | |
9946 | eval "ac_cv_header_$ac_safe=yes" | |
9947 | else | |
9948 | echo "$ac_err" >&5 | |
9949 | echo "configure: failed program was:" >&5 | |
9950 | cat conftest.$ac_ext >&5 | |
9951 | rm -rf conftest* | |
9952 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9953 | fi |
a0b9e27f | 9954 | rm -f conftest* |
90dd450c | 9955 | fi |
a0b9e27f MB |
9956 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9957 | echo "$ac_t""yes" 1>&6 | |
9958 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9959 | cat >> confdefs.h <<EOF | |
9960 | #define $ac_tr_hdr 1 | |
9961 | EOF | |
9962 | ||
9963 | else | |
9964 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 9965 | fi |
a0b9e27f | 9966 | done |
247f5006 | 9967 | |
a0b9e27f MB |
9968 | for ac_hdr in unistd.h |
9969 | do | |
9970 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9971 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 9972 | echo "configure:9973: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9973 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9974 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9975 | else | |
9976 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 9977 | #line 9978 "configure" |
a0b9e27f MB |
9978 | #include "confdefs.h" |
9979 | #include <$ac_hdr> | |
9980 | EOF | |
9981 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 9982 | { (eval echo configure:9983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9983 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9984 | if test -z "$ac_err"; then | |
9985 | rm -rf conftest* | |
9986 | eval "ac_cv_header_$ac_safe=yes" | |
9987 | else | |
9988 | echo "$ac_err" >&5 | |
9989 | echo "configure: failed program was:" >&5 | |
9990 | cat conftest.$ac_ext >&5 | |
9991 | rm -rf conftest* | |
9992 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 9993 | fi |
a0b9e27f MB |
9994 | rm -f conftest* |
9995 | fi | |
9996 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9997 | echo "$ac_t""yes" 1>&6 | |
9998 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9999 | cat >> confdefs.h <<EOF | |
10000 | #define $ac_tr_hdr 1 | |
10001 | EOF | |
10002 | ||
10003 | else | |
10004 | echo "$ac_t""no" 1>&6 | |
10005 | fi | |
10006 | done | |
90dd450c | 10007 | |
a0b9e27f | 10008 | for ac_hdr in wchar.h |
21d1c967 | 10009 | do |
a0b9e27f MB |
10010 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10011 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 10012 | echo "configure:10013: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10013 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10014 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10015 | else | |
10016 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10017 | #line 10018 "configure" |
4f14bcd8 | 10018 | #include "confdefs.h" |
a0b9e27f MB |
10019 | #include <$ac_hdr> |
10020 | EOF | |
10021 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 10022 | { (eval echo configure:10023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10023 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10024 | if test -z "$ac_err"; then | |
10025 | rm -rf conftest* | |
10026 | eval "ac_cv_header_$ac_safe=yes" | |
10027 | else | |
10028 | echo "$ac_err" >&5 | |
10029 | echo "configure: failed program was:" >&5 | |
10030 | cat conftest.$ac_ext >&5 | |
10031 | rm -rf conftest* | |
10032 | eval "ac_cv_header_$ac_safe=no" | |
10033 | fi | |
10034 | rm -f conftest* | |
10035 | fi | |
10036 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10037 | echo "$ac_t""yes" 1>&6 | |
10038 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10039 | cat >> confdefs.h <<EOF | |
10040 | #define $ac_tr_hdr 1 | |
10041 | EOF | |
10042 | ||
10043 | else | |
10044 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10045 | fi |
10046 | done | |
4f14bcd8 | 10047 | |
5c6fa7d2 | 10048 | |
a0b9e27f MB |
10049 | if test "$ac_cv_header_wchar_h" != "yes"; then |
10050 | for ac_hdr in wcstr.h | |
21d1c967 | 10051 | do |
a0b9e27f MB |
10052 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10053 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 10054 | echo "configure:10055: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10055 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10057 | else | |
10058 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10059 | #line 10060 "configure" |
d4158b5d | 10060 | #include "confdefs.h" |
a0b9e27f MB |
10061 | #include <$ac_hdr> |
10062 | EOF | |
10063 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 10064 | { (eval echo configure:10065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10065 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10066 | if test -z "$ac_err"; then | |
10067 | rm -rf conftest* | |
10068 | eval "ac_cv_header_$ac_safe=yes" | |
10069 | else | |
10070 | echo "$ac_err" >&5 | |
10071 | echo "configure: failed program was:" >&5 | |
d4158b5d | 10072 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10073 | rm -rf conftest* |
10074 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 10075 | fi |
a0b9e27f | 10076 | rm -f conftest* |
21d1c967 | 10077 | fi |
a0b9e27f MB |
10078 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10079 | echo "$ac_t""yes" 1>&6 | |
10080 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10081 | cat >> confdefs.h <<EOF | |
10082 | #define $ac_tr_hdr 1 | |
10083 | EOF | |
10084 | ||
10085 | else | |
10086 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 10087 | fi |
21d1c967 | 10088 | done |
f6bcfd97 | 10089 | |
90dd450c | 10090 | fi |
90dd450c | 10091 | |
a0b9e27f | 10092 | for ac_hdr in fnmatch.h |
21d1c967 | 10093 | do |
a0b9e27f MB |
10094 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10095 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 10096 | echo "configure:10097: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10097 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10098 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10099 | else | |
10100 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10101 | #line 10102 "configure" |
90dd450c | 10102 | #include "confdefs.h" |
a0b9e27f MB |
10103 | #include <$ac_hdr> |
10104 | EOF | |
10105 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 10106 | { (eval echo configure:10107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10107 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10108 | if test -z "$ac_err"; then | |
10109 | rm -rf conftest* | |
10110 | eval "ac_cv_header_$ac_safe=yes" | |
10111 | else | |
10112 | echo "$ac_err" >&5 | |
10113 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 10114 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10115 | rm -rf conftest* |
10116 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10117 | fi |
a0b9e27f | 10118 | rm -f conftest* |
4f14bcd8 | 10119 | fi |
a0b9e27f MB |
10120 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10121 | echo "$ac_t""yes" 1>&6 | |
10122 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10123 | cat >> confdefs.h <<EOF | |
10124 | #define $ac_tr_hdr 1 | |
10125 | EOF | |
10126 | ||
10127 | else | |
10128 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10129 | fi |
10130 | done | |
90dd450c | 10131 | |
5c6fa7d2 | 10132 | |
a0b9e27f MB |
10133 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
10134 | for ac_func in fnmatch | |
21d1c967 | 10135 | do |
a0b9e27f | 10136 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2b5f62a0 | 10137 | echo "configure:10138: checking for $ac_func" >&5 |
a0b9e27f MB |
10138 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10140 | else |
a0b9e27f | 10141 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 10142 | #line 10143 "configure" |
a0b9e27f MB |
10143 | #include "confdefs.h" |
10144 | /* System header to define __stub macros and hopefully few prototypes, | |
10145 | which can conflict with char $ac_func(); below. */ | |
10146 | #include <assert.h> | |
10147 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10148 | /* We use char because int might match the return type of a gcc2 | |
10149 | builtin and then its argument prototype would still apply. */ | |
10150 | char $ac_func(); | |
10151 | ||
10152 | int main() { | |
10153 | ||
10154 | /* The GNU C library defines this for functions which it implements | |
10155 | to always fail with ENOSYS. Some functions are actually named | |
10156 | something starting with __ and the normal name is an alias. */ | |
10157 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10158 | choke me | |
10159 | #else | |
10160 | $ac_func(); | |
10161 | #endif | |
10162 | ||
10163 | ; return 0; } | |
10164 | EOF | |
2b5f62a0 | 10165 | if { (eval echo configure:10166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
10166 | rm -rf conftest* |
10167 | eval "ac_cv_func_$ac_func=yes" | |
8284b0c5 | 10168 | else |
a0b9e27f | 10169 | echo "configure: failed program was:" >&5 |
8284b0c5 | 10170 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10171 | rm -rf conftest* |
10172 | eval "ac_cv_func_$ac_func=no" | |
8284b0c5 | 10173 | fi |
a0b9e27f | 10174 | rm -f conftest* |
8284b0c5 | 10175 | fi |
32832908 | 10176 | |
a0b9e27f MB |
10177 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10178 | echo "$ac_t""yes" 1>&6 | |
10179 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10180 | cat >> confdefs.h <<EOF | |
10181 | #define $ac_tr_func 1 | |
10182 | EOF | |
10183 | ||
10184 | else | |
10185 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10186 | fi |
10187 | done | |
90dd450c | 10188 | |
a0b9e27f | 10189 | fi |
90dd450c | 10190 | |
a0b9e27f | 10191 | for ac_hdr in langinfo.h |
21d1c967 | 10192 | do |
a0b9e27f MB |
10193 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10194 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 10195 | echo "configure:10196: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10196 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10198 | else | |
10199 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10200 | #line 10201 "configure" |
247f5006 | 10201 | #include "confdefs.h" |
a0b9e27f MB |
10202 | #include <$ac_hdr> |
10203 | EOF | |
10204 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 10205 | { (eval echo configure:10206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10206 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10207 | if test -z "$ac_err"; then | |
10208 | rm -rf conftest* | |
10209 | eval "ac_cv_header_$ac_safe=yes" | |
10210 | else | |
10211 | echo "$ac_err" >&5 | |
10212 | echo "configure: failed program was:" >&5 | |
90dd450c | 10213 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10214 | rm -rf conftest* |
10215 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 10216 | fi |
a0b9e27f | 10217 | rm -f conftest* |
4f14bcd8 | 10218 | fi |
a0b9e27f MB |
10219 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10220 | echo "$ac_t""yes" 1>&6 | |
10221 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10222 | cat >> confdefs.h <<EOF | |
10223 | #define $ac_tr_hdr 1 | |
10224 | EOF | |
10225 | ||
10226 | else | |
10227 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10228 | fi |
10229 | done | |
3a922bb4 | 10230 | |
8284b0c5 | 10231 | |
a0b9e27f MB |
10232 | if test "$wxUSE_GUI" = "yes"; then |
10233 | if test "$wxUSE_UNIX" = "yes"; then | |
10234 | for ac_hdr in X11/XKBlib.h | |
21d1c967 | 10235 | do |
a0b9e27f MB |
10236 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10237 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 10238 | echo "configure:10239: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10239 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10240 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10241 | else | |
10242 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10243 | #line 10244 "configure" |
90dd450c | 10244 | #include "confdefs.h" |
a0b9e27f MB |
10245 | #include <$ac_hdr> |
10246 | EOF | |
10247 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 10248 | { (eval echo configure:10249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10249 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10250 | if test -z "$ac_err"; then | |
10251 | rm -rf conftest* | |
10252 | eval "ac_cv_header_$ac_safe=yes" | |
10253 | else | |
10254 | echo "$ac_err" >&5 | |
10255 | echo "configure: failed program was:" >&5 | |
90dd450c | 10256 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10257 | rm -rf conftest* |
10258 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10259 | fi |
a0b9e27f | 10260 | rm -f conftest* |
90dd450c | 10261 | fi |
a0b9e27f MB |
10262 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10263 | echo "$ac_t""yes" 1>&6 | |
10264 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10265 | cat >> confdefs.h <<EOF | |
10266 | #define $ac_tr_hdr 1 | |
10267 | EOF | |
10268 | ||
10269 | else | |
10270 | echo "$ac_t""no" 1>&6 | |
247f5006 | 10271 | fi |
247f5006 VZ |
10272 | done |
10273 | ||
a0b9e27f MB |
10274 | fi |
10275 | fi | |
247f5006 | 10276 | |
247f5006 | 10277 | |
a0b9e27f | 10278 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
2b5f62a0 | 10279 | echo "configure:10280: checking for working const" >&5 |
a0b9e27f MB |
10280 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10281 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10282 | else |
a0b9e27f | 10283 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 10284 | #line 10285 "configure" |
a0b9e27f MB |
10285 | #include "confdefs.h" |
10286 | ||
10287 | int main() { | |
10288 | ||
10289 | /* Ultrix mips cc rejects this. */ | |
10290 | typedef int charset[2]; const charset x; | |
10291 | /* SunOS 4.1.1 cc rejects this. */ | |
10292 | char const *const *ccp; | |
10293 | char **p; | |
10294 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10295 | struct point {int x, y;}; | |
10296 | static struct point const zero = {0,0}; | |
10297 | /* AIX XL C 1.02.0.0 rejects this. | |
10298 | It does not let you subtract one const X* pointer from another in an arm | |
10299 | of an if-expression whose if-part is not a constant expression */ | |
10300 | const char *g = "string"; | |
10301 | ccp = &g + (g ? g-g : 0); | |
10302 | /* HPUX 7.0 cc rejects these. */ | |
10303 | ++ccp; | |
10304 | p = (char**) ccp; | |
10305 | ccp = (char const *const *) p; | |
10306 | { /* SCO 3.2v4 cc rejects this. */ | |
10307 | char *t; | |
10308 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10309 | ||
10310 | *t++ = 0; | |
10311 | } | |
10312 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10313 | int x[] = {25, 17}; | |
10314 | const int *foo = &x[0]; | |
10315 | ++foo; | |
10316 | } | |
10317 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10318 | typedef const int *iptr; | |
10319 | iptr p = 0; | |
10320 | ++p; | |
10321 | } | |
10322 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10323 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10324 | struct s { int j; const int *ap[3]; }; | |
10325 | struct s *b; b->j = 5; | |
10326 | } | |
10327 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10328 | const int foo = 10; | |
10329 | } | |
10330 | ||
10331 | ; return 0; } | |
10332 | EOF | |
2b5f62a0 | 10333 | if { (eval echo configure:10334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10334 | rm -rf conftest* |
10335 | ac_cv_c_const=yes | |
247f5006 | 10336 | else |
a0b9e27f | 10337 | echo "configure: failed program was:" >&5 |
247f5006 | 10338 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10339 | rm -rf conftest* |
10340 | ac_cv_c_const=no | |
247f5006 | 10341 | fi |
a0b9e27f | 10342 | rm -f conftest* |
21d1c967 | 10343 | fi |
247f5006 | 10344 | |
a0b9e27f MB |
10345 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10346 | if test $ac_cv_c_const = no; then | |
10347 | cat >> confdefs.h <<\EOF | |
10348 | #define const | |
10349 | EOF | |
10f2d63a | 10350 | |
90dd450c | 10351 | fi |
81809c07 | 10352 | |
a0b9e27f | 10353 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
2b5f62a0 | 10354 | echo "configure:10355: checking for inline" >&5 |
a0b9e27f MB |
10355 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10356 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 10357 | else |
a0b9e27f MB |
10358 | ac_cv_c_inline=no |
10359 | for ac_kw in inline __inline__ __inline; do | |
10360 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10361 | #line 10362 "configure" |
a0b9e27f MB |
10362 | #include "confdefs.h" |
10363 | ||
10364 | int main() { | |
10365 | } $ac_kw foo() { | |
10366 | ; return 0; } | |
10367 | EOF | |
2b5f62a0 | 10368 | if { (eval echo configure:10369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10369 | rm -rf conftest* |
10370 | ac_cv_c_inline=$ac_kw; break | |
247f5006 | 10371 | else |
a0b9e27f | 10372 | echo "configure: failed program was:" >&5 |
247f5006 | 10373 | cat conftest.$ac_ext >&5 |
247f5006 | 10374 | fi |
a0b9e27f MB |
10375 | rm -f conftest* |
10376 | done | |
247f5006 VZ |
10377 | |
10378 | fi | |
10379 | ||
a0b9e27f MB |
10380 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10381 | case "$ac_cv_c_inline" in | |
10382 | inline | yes) ;; | |
10383 | no) cat >> confdefs.h <<\EOF | |
10384 | #define inline | |
10385 | EOF | |
10386 | ;; | |
10387 | *) cat >> confdefs.h <<EOF | |
10388 | #define inline $ac_cv_c_inline | |
10389 | EOF | |
10390 | ;; | |
10391 | esac | |
247f5006 | 10392 | |
247f5006 | 10393 | |
a0b9e27f | 10394 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
2b5f62a0 | 10395 | echo "configure:10396: checking size of char" >&5 |
a0b9e27f MB |
10396 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10397 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10398 | else | |
10399 | if test "$cross_compiling" = yes; then | |
10400 | ac_cv_sizeof_char=1 | |
10401 | else | |
10402 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10403 | #line 10404 "configure" |
4f14bcd8 | 10404 | #include "confdefs.h" |
a0b9e27f | 10405 | #include <stdio.h> |
2b5f62a0 | 10406 | #include <sys/types.h> |
a0b9e27f | 10407 | main() |
247f5006 | 10408 | { |
a0b9e27f MB |
10409 | FILE *f=fopen("conftestval", "w"); |
10410 | if (!f) exit(1); | |
10411 | fprintf(f, "%d\n", sizeof(char)); | |
10412 | exit(0); | |
52127426 | 10413 | } |
a0b9e27f | 10414 | EOF |
2b5f62a0 | 10415 | if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10416 | then |
10417 | ac_cv_sizeof_char=`cat conftestval` | |
247f5006 | 10418 | else |
a0b9e27f | 10419 | echo "configure: failed program was:" >&5 |
247f5006 | 10420 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10421 | rm -fr conftest* |
10422 | ac_cv_sizeof_char=0 | |
247f5006 | 10423 | fi |
a0b9e27f | 10424 | rm -fr conftest* |
247f5006 | 10425 | fi |
247f5006 VZ |
10426 | |
10427 | fi | |
a0b9e27f MB |
10428 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10429 | cat >> confdefs.h <<EOF | |
10430 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10431 | EOF | |
247f5006 | 10432 | |
247f5006 | 10433 | |
a0b9e27f | 10434 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
2b5f62a0 | 10435 | echo "configure:10436: checking size of short" >&5 |
a0b9e27f MB |
10436 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10437 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10438 | else |
a0b9e27f MB |
10439 | if test "$cross_compiling" = yes; then |
10440 | ac_cv_sizeof_short=2 | |
247f5006 | 10441 | else |
a0b9e27f | 10442 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 10443 | #line 10444 "configure" |
a0b9e27f MB |
10444 | #include "confdefs.h" |
10445 | #include <stdio.h> | |
2b5f62a0 | 10446 | #include <sys/types.h> |
a0b9e27f MB |
10447 | main() |
10448 | { | |
10449 | FILE *f=fopen("conftestval", "w"); | |
10450 | if (!f) exit(1); | |
10451 | fprintf(f, "%d\n", sizeof(short)); | |
10452 | exit(0); | |
10453 | } | |
10454 | EOF | |
2b5f62a0 | 10455 | if { (eval echo configure:10456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10456 | then |
10457 | ac_cv_sizeof_short=`cat conftestval` | |
247f5006 | 10458 | else |
a0b9e27f MB |
10459 | echo "configure: failed program was:" >&5 |
10460 | cat conftest.$ac_ext >&5 | |
10461 | rm -fr conftest* | |
10462 | ac_cv_sizeof_short=0 | |
247f5006 | 10463 | fi |
a0b9e27f | 10464 | rm -fr conftest* |
247f5006 VZ |
10465 | fi |
10466 | ||
247f5006 | 10467 | fi |
a0b9e27f MB |
10468 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10469 | cat >> confdefs.h <<EOF | |
10470 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10471 | EOF | |
247f5006 VZ |
10472 | |
10473 | ||
a0b9e27f | 10474 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
2b5f62a0 | 10475 | echo "configure:10476: checking size of void *" >&5 |
a0b9e27f MB |
10476 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
10477 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10478 | else | |
10479 | if test "$cross_compiling" = yes; then | |
10480 | ac_cv_sizeof_void_p=4 | |
247f5006 | 10481 | else |
a0b9e27f | 10482 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 10483 | #line 10484 "configure" |
247f5006 | 10484 | #include "confdefs.h" |
247f5006 | 10485 | #include <stdio.h> |
2b5f62a0 | 10486 | #include <sys/types.h> |
a0b9e27f | 10487 | main() |
247f5006 | 10488 | { |
a0b9e27f MB |
10489 | FILE *f=fopen("conftestval", "w"); |
10490 | if (!f) exit(1); | |
10491 | fprintf(f, "%d\n", sizeof(void *)); | |
10492 | exit(0); | |
5c6fa7d2 | 10493 | } |
a0b9e27f | 10494 | EOF |
2b5f62a0 | 10495 | if { (eval echo configure:10496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10496 | then |
10497 | ac_cv_sizeof_void_p=`cat conftestval` | |
10498 | else | |
10499 | echo "configure: failed program was:" >&5 | |
10500 | cat conftest.$ac_ext >&5 | |
10501 | rm -fr conftest* | |
10502 | ac_cv_sizeof_void_p=0 | |
10503 | fi | |
10504 | rm -fr conftest* | |
10505 | fi | |
8284b0c5 | 10506 | |
247f5006 | 10507 | fi |
a0b9e27f MB |
10508 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10509 | cat >> confdefs.h <<EOF | |
10510 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
10511 | EOF | |
247f5006 | 10512 | |
247f5006 | 10513 | |
a0b9e27f | 10514 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
2b5f62a0 | 10515 | echo "configure:10516: checking size of int" >&5 |
a0b9e27f MB |
10516 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10517 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10518 | else |
a0b9e27f MB |
10519 | if test "$cross_compiling" = yes; then |
10520 | ac_cv_sizeof_int=4 | |
10521 | else | |
10522 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10523 | #line 10524 "configure" |
247f5006 | 10524 | #include "confdefs.h" |
a0b9e27f | 10525 | #include <stdio.h> |
2b5f62a0 | 10526 | #include <sys/types.h> |
a0b9e27f | 10527 | main() |
247f5006 | 10528 | { |
a0b9e27f MB |
10529 | FILE *f=fopen("conftestval", "w"); |
10530 | if (!f) exit(1); | |
10531 | fprintf(f, "%d\n", sizeof(int)); | |
10532 | exit(0); | |
247f5006 | 10533 | } |
a0b9e27f | 10534 | EOF |
2b5f62a0 | 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 |
a0b9e27f MB |
10536 | then |
10537 | ac_cv_sizeof_int=`cat conftestval` | |
6f72b082 | 10538 | else |
a0b9e27f MB |
10539 | echo "configure: failed program was:" >&5 |
10540 | cat conftest.$ac_ext >&5 | |
10541 | rm -fr conftest* | |
10542 | ac_cv_sizeof_int=0 | |
21d1c967 | 10543 | fi |
a0b9e27f | 10544 | rm -fr conftest* |
698dcdb6 | 10545 | fi |
4f14bcd8 | 10546 | |
21d1c967 | 10547 | fi |
a0b9e27f MB |
10548 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
10549 | cat >> confdefs.h <<EOF | |
10550 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10551 | EOF | |
4f14bcd8 | 10552 | |
5c6fa7d2 | 10553 | |
a0b9e27f | 10554 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
2b5f62a0 | 10555 | echo "configure:10556: checking size of long" >&5 |
a0b9e27f MB |
10556 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10557 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10558 | else |
247f5006 | 10559 | if test "$cross_compiling" = yes; then |
a0b9e27f | 10560 | ac_cv_sizeof_long=4 |
247f5006 | 10561 | else |
a0b9e27f | 10562 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 10563 | #line 10564 "configure" |
247f5006 | 10564 | #include "confdefs.h" |
a0b9e27f | 10565 | #include <stdio.h> |
2b5f62a0 | 10566 | #include <sys/types.h> |
a0b9e27f | 10567 | main() |
247f5006 | 10568 | { |
a0b9e27f MB |
10569 | FILE *f=fopen("conftestval", "w"); |
10570 | if (!f) exit(1); | |
10571 | fprintf(f, "%d\n", sizeof(long)); | |
10572 | exit(0); | |
247f5006 | 10573 | } |
a0b9e27f | 10574 | EOF |
2b5f62a0 | 10575 | if { (eval echo configure:10576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10576 | then |
10577 | ac_cv_sizeof_long=`cat conftestval` | |
247f5006 | 10578 | else |
a0b9e27f MB |
10579 | echo "configure: failed program was:" >&5 |
10580 | cat conftest.$ac_ext >&5 | |
10581 | rm -fr conftest* | |
10582 | ac_cv_sizeof_long=0 | |
247f5006 | 10583 | fi |
a0b9e27f | 10584 | rm -fr conftest* |
247f5006 | 10585 | fi |
247f5006 | 10586 | |
5c6fa7d2 | 10587 | fi |
a0b9e27f MB |
10588 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10589 | cat >> confdefs.h <<EOF | |
10590 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10591 | EOF | |
247f5006 | 10592 | |
a0b9e27f MB |
10593 | |
10594 | ||
10595 | case "${host}" in | |
10596 | arm-*-linux* ) | |
10597 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
2b5f62a0 | 10598 | echo "configure:10599: checking size of long long" >&5 |
a0b9e27f MB |
10599 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10600 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10601 | else | |
10602 | if test "$cross_compiling" = yes; then | |
10603 | ac_cv_sizeof_long_long=8 | |
10604 | else | |
10605 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10606 | #line 10607 "configure" |
247f5006 | 10607 | #include "confdefs.h" |
a0b9e27f | 10608 | #include <stdio.h> |
2b5f62a0 | 10609 | #include <sys/types.h> |
a0b9e27f | 10610 | main() |
247f5006 | 10611 | { |
a0b9e27f MB |
10612 | FILE *f=fopen("conftestval", "w"); |
10613 | if (!f) exit(1); | |
10614 | fprintf(f, "%d\n", sizeof(long long)); | |
10615 | exit(0); | |
247f5006 | 10616 | } |
a0b9e27f | 10617 | EOF |
2b5f62a0 | 10618 | if { (eval echo configure:10619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10619 | then |
10620 | ac_cv_sizeof_long_long=`cat conftestval` | |
7b4a847f | 10621 | else |
a0b9e27f MB |
10622 | echo "configure: failed program was:" >&5 |
10623 | cat conftest.$ac_ext >&5 | |
10624 | rm -fr conftest* | |
10625 | ac_cv_sizeof_long_long=0 | |
5c6fa7d2 | 10626 | fi |
a0b9e27f | 10627 | rm -fr conftest* |
5c6fa7d2 | 10628 | fi |
8284b0c5 | 10629 | |
a0b9e27f MB |
10630 | fi |
10631 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10632 | cat >> confdefs.h <<EOF | |
10633 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10634 | EOF | |
10635 | ||
10636 | ||
10637 | ;; | |
4f57cf11 | 10638 | *-hp-hpux* ) |
a0b9e27f | 10639 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
2b5f62a0 | 10640 | echo "configure:10641: checking size of long long" >&5 |
a0b9e27f MB |
10641 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10642 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 MB |
10643 | else |
10644 | if test "$cross_compiling" = yes; then | |
a0b9e27f | 10645 | ac_cv_sizeof_long_long=0 |
8284b0c5 | 10646 | else |
a0b9e27f | 10647 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 10648 | #line 10649 "configure" |
8284b0c5 MB |
10649 | #include "confdefs.h" |
10650 | #include <stdio.h> | |
2b5f62a0 | 10651 | #include <sys/types.h> |
a0b9e27f | 10652 | main() |
8284b0c5 | 10653 | { |
a0b9e27f MB |
10654 | FILE *f=fopen("conftestval", "w"); |
10655 | if (!f) exit(1); | |
10656 | fprintf(f, "%d\n", sizeof(long long)); | |
10657 | exit(0); | |
8284b0c5 | 10658 | } |
a0b9e27f | 10659 | EOF |
2b5f62a0 | 10660 | if { (eval echo configure:10661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10661 | then |
10662 | ac_cv_sizeof_long_long=`cat conftestval` | |
5c6fa7d2 | 10663 | else |
a0b9e27f MB |
10664 | echo "configure: failed program was:" >&5 |
10665 | cat conftest.$ac_ext >&5 | |
10666 | rm -fr conftest* | |
5c6fa7d2 | 10667 | ac_cv_sizeof_long_long=0 |
52127426 | 10668 | fi |
a0b9e27f MB |
10669 | rm -fr conftest* |
10670 | fi | |
10671 | ||
4f57cf11 GD |
10672 | fi |
10673 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10674 | cat >> confdefs.h <<EOF | |
10675 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10676 | EOF | |
10677 | ||
10678 | ||
10679 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
10680 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
10681 | fi | |
10682 | ;; | |
10683 | * ) | |
10684 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
2b5f62a0 | 10685 | echo "configure:10686: checking size of long long" >&5 |
4f57cf11 GD |
10686 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10687 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10688 | else | |
10689 | if test "$cross_compiling" = yes; then | |
10690 | ac_cv_sizeof_long_long=0 | |
10691 | else | |
10692 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10693 | #line 10694 "configure" |
4f57cf11 GD |
10694 | #include "confdefs.h" |
10695 | #include <stdio.h> | |
2b5f62a0 | 10696 | #include <sys/types.h> |
4f57cf11 GD |
10697 | main() |
10698 | { | |
10699 | FILE *f=fopen("conftestval", "w"); | |
10700 | if (!f) exit(1); | |
10701 | fprintf(f, "%d\n", sizeof(long long)); | |
10702 | exit(0); | |
10703 | } | |
10704 | EOF | |
2b5f62a0 | 10705 | if { (eval echo configure:10706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f57cf11 GD |
10706 | then |
10707 | ac_cv_sizeof_long_long=`cat conftestval` | |
10708 | else | |
10709 | echo "configure: failed program was:" >&5 | |
10710 | cat conftest.$ac_ext >&5 | |
10711 | rm -fr conftest* | |
10712 | ac_cv_sizeof_long_long=0 | |
10713 | fi | |
10714 | rm -fr conftest* | |
10715 | fi | |
10716 | ||
7b4a847f | 10717 | fi |
a0b9e27f MB |
10718 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10719 | cat >> confdefs.h <<EOF | |
21d1c967 | 10720 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
a0b9e27f | 10721 | EOF |
9e691f46 | 10722 | |
8284b0c5 | 10723 | |
21d1c967 GD |
10724 | esac |
10725 | ||
a0b9e27f | 10726 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
2b5f62a0 | 10727 | echo "configure:10728: checking size of wchar_t" >&5 |
a0b9e27f MB |
10728 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10730 | else |
a0b9e27f | 10731 | |
21d1c967 | 10732 | if test "$cross_compiling" = yes; then |
2b5f62a0 VZ |
10733 | |
10734 | case "${host}" in | |
10735 | *-pc-msdosdjgpp ) | |
10736 | wx_cv_sizeof_wchar_t=0 | |
10737 | ;; | |
10738 | * ) | |
10739 | wx_cv_sizeof_wchar_t=4 | |
10740 | ;; | |
10741 | esac | |
10742 | ||
a0b9e27f | 10743 | |
6f72b082 | 10744 | else |
a0b9e27f | 10745 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 10746 | #line 10747 "configure" |
6f72b082 | 10747 | #include "confdefs.h" |
21d1c967 | 10748 | |
2b5f62a0 VZ |
10749 | /* DJGPP only has fake wchar_t: */ |
10750 | #ifdef __DJGPP__ | |
10751 | # error "fake wchar_t" | |
10752 | #endif | |
21d1c967 GD |
10753 | #ifdef HAVE_WCHAR_H |
10754 | # ifdef __CYGWIN__ | |
10755 | # include <stddef.h> | |
10756 | # endif | |
10757 | # include <wchar.h> | |
10758 | #endif | |
10759 | #ifdef HAVE_STDLIB_H | |
10760 | # include <stdlib.h> | |
10761 | #endif | |
10762 | #include <stdio.h> | |
10763 | int main() | |
10764 | { | |
10765 | FILE *f=fopen("conftestval", "w"); | |
10766 | if (!f) exit(1); | |
10767 | fprintf(f, "%i", sizeof(wchar_t)); | |
10768 | exit(0); | |
10769 | } | |
a0b9e27f MB |
10770 | |
10771 | EOF | |
2b5f62a0 | 10772 | if { (eval echo configure:10773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10773 | then |
21d1c967 | 10774 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10775 | else |
a0b9e27f MB |
10776 | echo "configure: failed program was:" >&5 |
10777 | cat conftest.$ac_ext >&5 | |
10778 | rm -fr conftest* | |
10779 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10780 | fi |
a0b9e27f | 10781 | rm -fr conftest* |
6f72b082 | 10782 | fi |
6f72b082 | 10783 | |
a0b9e27f | 10784 | |
3f345b47 VZ |
10785 | fi |
10786 | ||
a0b9e27f MB |
10787 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10788 | ||
10789 | cat >> confdefs.h <<EOF | |
21d1c967 | 10790 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
a0b9e27f | 10791 | EOF |
90dd450c | 10792 | |
8284b0c5 | 10793 | |
21d1c967 GD |
10794 | # Check whether --enable-largefile or --disable-largefile was given. |
10795 | if test "${enable_largefile+set}" = set; then | |
10796 | enableval="$enable_largefile" | |
a0b9e27f MB |
10797 | : |
10798 | fi | |
3f345b47 | 10799 | |
21d1c967 GD |
10800 | if test "$enable_largefile" != no; then |
10801 | wx_largefile=no | |
a0b9e27f MB |
10802 | |
10803 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
2b5f62a0 | 10804 | echo "configure:10805: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
a0b9e27f MB |
10805 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
10806 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10807 | else | |
10808 | ||
10809 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10810 | #line 10811 "configure" |
90dd450c | 10811 | #include "confdefs.h" |
21d1c967 GD |
10812 | #define _FILE_OFFSET_BITS 64 |
10813 | #include <sys/types.h> | |
a0b9e27f | 10814 | int main() { |
21d1c967 GD |
10815 | typedef struct { |
10816 | unsigned int field: sizeof(off_t) == 8; | |
10817 | } wxlf; | |
10818 | ||
a0b9e27f MB |
10819 | ; return 0; } |
10820 | EOF | |
2b5f62a0 | 10821 | if { (eval echo configure:10822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10822 | rm -rf conftest* |
21d1c967 | 10823 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10824 | else |
a0b9e27f MB |
10825 | echo "configure: failed program was:" >&5 |
10826 | cat conftest.$ac_ext >&5 | |
10827 | rm -rf conftest* | |
10828 | ac_cv_sys_file_offset_bits=no | |
5c6fa7d2 | 10829 | fi |
a0b9e27f MB |
10830 | rm -f conftest* |
10831 | ||
10832 | ||
247f5006 | 10833 | fi |
a0b9e27f MB |
10834 | |
10835 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10836 | |
10837 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10838 | wx_largefile=yes | |
a0b9e27f | 10839 | cat >> confdefs.h <<EOF |
21d1c967 | 10840 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
a0b9e27f | 10841 | EOF |
21d1c967 GD |
10842 | |
10843 | fi | |
10844 | ||
10845 | if test "x$wx_largefile" != "xyes"; then | |
a0b9e27f MB |
10846 | |
10847 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
2b5f62a0 | 10848 | echo "configure:10849: checking for _LARGE_FILES value needed for large files" >&5 |
a0b9e27f MB |
10849 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
10850 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10851 | else | |
10852 | ||
10853 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10854 | #line 10855 "configure" |
f6bcfd97 | 10855 | #include "confdefs.h" |
21d1c967 GD |
10856 | #define _LARGE_FILES 1 |
10857 | #include <sys/types.h> | |
a0b9e27f | 10858 | int main() { |
21d1c967 GD |
10859 | typedef struct { |
10860 | unsigned int field: sizeof(off_t) == 8; | |
10861 | } wxlf; | |
10862 | ||
a0b9e27f MB |
10863 | ; return 0; } |
10864 | EOF | |
2b5f62a0 | 10865 | if { (eval echo configure:10866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10866 | rm -rf conftest* |
21d1c967 | 10867 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10868 | else |
a0b9e27f MB |
10869 | echo "configure: failed program was:" >&5 |
10870 | cat conftest.$ac_ext >&5 | |
10871 | rm -rf conftest* | |
10872 | ac_cv_sys_large_files=no | |
5c6fa7d2 | 10873 | fi |
a0b9e27f MB |
10874 | rm -f conftest* |
10875 | ||
10876 | ||
247f5006 | 10877 | fi |
a0b9e27f MB |
10878 | |
10879 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 10880 | |
21d1c967 GD |
10881 | if test "$ac_cv_sys_large_files" != no; then |
10882 | wx_largefile=yes | |
a0b9e27f | 10883 | cat >> confdefs.h <<EOF |
21d1c967 | 10884 | #define _LARGE_FILES $ac_cv_sys_large_files |
a0b9e27f | 10885 | EOF |
90dd450c | 10886 | |
90dd450c VZ |
10887 | fi |
10888 | ||
90dd450c | 10889 | fi |
90dd450c | 10890 | |
a0b9e27f | 10891 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
2b5f62a0 | 10892 | echo "configure:10893: checking if large file support is available" >&5 |
21d1c967 | 10893 | if test "x$wx_largefile" = "xyes"; then |
a0b9e27f | 10894 | cat >> confdefs.h <<\EOF |
21d1c967 | 10895 | #define HAVE_LARGEFILE_SUPPORT 1 |
a0b9e27f | 10896 | EOF |
90dd450c | 10897 | |
90dd450c | 10898 | fi |
a0b9e27f | 10899 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 10900 | fi |
90dd450c | 10901 | |
8284b0c5 | 10902 | |
f02444d0 | 10903 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
10904 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
10905 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 10906 | else |
e26c13cf | 10907 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 10908 | fi |
e26c13cf | 10909 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
10910 | fi |
10911 | ||
a0b9e27f | 10912 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
2b5f62a0 | 10913 | echo "configure:10914: checking whether byte ordering is bigendian" >&5 |
a0b9e27f MB |
10914 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
10915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 10916 | else |
21d1c967 GD |
10917 | ac_cv_c_bigendian=unknown |
10918 | # See if sys/param.h defines the BYTE_ORDER macro. | |
a0b9e27f | 10919 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 10920 | #line 10921 "configure" |
90dd450c | 10921 | #include "confdefs.h" |
21d1c967 GD |
10922 | #include <sys/types.h> |
10923 | #include <sys/param.h> | |
a0b9e27f | 10924 | int main() { |
21d1c967 GD |
10925 | |
10926 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10927 | bogus endian macros | |
10928 | #endif | |
a0b9e27f MB |
10929 | ; return 0; } |
10930 | EOF | |
2b5f62a0 | 10931 | if { (eval echo configure:10932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10932 | rm -rf conftest* |
21d1c967 | 10933 | # It does; now see whether it defined to BIG_ENDIAN or not. |
a0b9e27f | 10934 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 10935 | #line 10936 "configure" |
90dd450c | 10936 | #include "confdefs.h" |
21d1c967 GD |
10937 | #include <sys/types.h> |
10938 | #include <sys/param.h> | |
a0b9e27f | 10939 | int main() { |
21d1c967 GD |
10940 | |
10941 | #if BYTE_ORDER != BIG_ENDIAN | |
10942 | not big endian | |
10943 | #endif | |
a0b9e27f MB |
10944 | ; return 0; } |
10945 | EOF | |
2b5f62a0 | 10946 | if { (eval echo configure:10947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10947 | rm -rf conftest* |
21d1c967 | 10948 | ac_cv_c_bigendian=yes |
3f345b47 | 10949 | else |
a0b9e27f MB |
10950 | echo "configure: failed program was:" >&5 |
10951 | cat conftest.$ac_ext >&5 | |
10952 | rm -rf conftest* | |
10953 | ac_cv_c_bigendian=no | |
3f345b47 | 10954 | fi |
a0b9e27f | 10955 | rm -f conftest* |
3f345b47 | 10956 | else |
a0b9e27f MB |
10957 | echo "configure: failed program was:" >&5 |
10958 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10959 | fi |
a0b9e27f | 10960 | rm -f conftest* |
21d1c967 GD |
10961 | if test $ac_cv_c_bigendian = unknown; then |
10962 | if test "$cross_compiling" = yes; then | |
10963 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10964 | else |
a0b9e27f | 10965 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 10966 | #line 10967 "configure" |
90dd450c | 10967 | #include "confdefs.h" |
21d1c967 GD |
10968 | main () { |
10969 | /* Are we little or big endian? From Harbison&Steele. */ | |
10970 | union | |
10971 | { | |
10972 | long l; | |
10973 | char c[sizeof (long)]; | |
10974 | } u; | |
10975 | u.l = 1; | |
10976 | exit (u.c[sizeof (long) - 1] == 1); | |
10977 | } | |
a0b9e27f | 10978 | EOF |
2b5f62a0 | 10979 | if { (eval echo configure:10980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10980 | then |
21d1c967 | 10981 | ac_cv_c_bigendian=no |
3f345b47 | 10982 | else |
a0b9e27f MB |
10983 | echo "configure: failed program was:" >&5 |
10984 | cat conftest.$ac_ext >&5 | |
10985 | rm -fr conftest* | |
10986 | ac_cv_c_bigendian=yes | |
247f5006 | 10987 | fi |
a0b9e27f | 10988 | rm -fr conftest* |
247f5006 | 10989 | fi |
a0b9e27f | 10990 | |
3f345b47 | 10991 | fi |
8168de4c | 10992 | fi |
a0b9e27f MB |
10993 | |
10994 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
247f5006 | 10995 | if test $ac_cv_c_bigendian = unknown; then |
a0b9e27f | 10996 | 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 |
10997 | fi |
10998 | if test $ac_cv_c_bigendian = yes; then | |
a0b9e27f | 10999 | cat >> confdefs.h <<\EOF |
247f5006 | 11000 | #define WORDS_BIGENDIAN 1 |
a0b9e27f | 11001 | EOF |
247f5006 VZ |
11002 | |
11003 | fi | |
11004 | ||
11005 | ||
a0b9e27f | 11006 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
2b5f62a0 | 11007 | echo "configure:11008: checking how to run the C++ preprocessor" >&5 |
247f5006 | 11008 | if test -z "$CXXCPP"; then |
a0b9e27f MB |
11009 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
11010 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11011 | else |
a0b9e27f MB |
11012 | ac_ext=C |
11013 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11014 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11015 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11016 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11017 | cross_compiling=$ac_cv_prog_cxx_cross | |
11018 | CXXCPP="${CXX-g++} -E" | |
11019 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 11020 | #line 11021 "configure" |
5c6fa7d2 | 11021 | #include "confdefs.h" |
a0b9e27f MB |
11022 | #include <stdlib.h> |
11023 | EOF | |
11024 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 11025 | { (eval echo configure:11026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11026 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11027 | if test -z "$ac_err"; then | |
21d1c967 | 11028 | : |
698dcdb6 | 11029 | else |
a0b9e27f MB |
11030 | echo "$ac_err" >&5 |
11031 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11032 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11033 | rm -rf conftest* |
11034 | CXXCPP=/lib/cpp | |
247f5006 | 11035 | fi |
a0b9e27f MB |
11036 | rm -f conftest* |
11037 | ac_cv_prog_CXXCPP="$CXXCPP" | |
11038 | ac_ext=C | |
11039 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11040 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11041 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11042 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11043 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 11044 | fi |
90dd450c | 11045 | fi |
a0b9e27f MB |
11046 | CXXCPP="$ac_cv_prog_CXXCPP" |
11047 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 11048 | |
1725144d | 11049 | |
21d1c967 | 11050 | if test "$cross_compiling" = "yes"; then |
a0b9e27f | 11051 | cat >> confdefs.h <<\EOF |
21d1c967 | 11052 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11053 | EOF |
ab9b9eab | 11054 | |
21d1c967 | 11055 | else |
a0b9e27f MB |
11056 | |
11057 | ac_ext=C | |
11058 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11059 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11060 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11061 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11062 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 11063 | |
247f5006 | 11064 | |
a0b9e27f | 11065 | for ac_hdr in iostream |
21d1c967 | 11066 | do |
a0b9e27f MB |
11067 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11068 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 11069 | echo "configure:11070: checking for $ac_hdr" >&5 |
a0b9e27f MB |
11070 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11071 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11072 | else | |
11073 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 11074 | #line 11075 "configure" |
ab9b9eab | 11075 | #include "confdefs.h" |
a0b9e27f MB |
11076 | #include <$ac_hdr> |
11077 | EOF | |
11078 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 11079 | { (eval echo configure:11080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11080 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11081 | if test -z "$ac_err"; then | |
11082 | rm -rf conftest* | |
11083 | eval "ac_cv_header_$ac_safe=yes" | |
11084 | else | |
11085 | echo "$ac_err" >&5 | |
11086 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11087 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11088 | rm -rf conftest* |
11089 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 11090 | fi |
a0b9e27f | 11091 | rm -f conftest* |
90dd450c | 11092 | fi |
a0b9e27f MB |
11093 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11094 | echo "$ac_t""yes" 1>&6 | |
11095 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11096 | cat >> confdefs.h <<EOF | |
11097 | #define $ac_tr_hdr 1 | |
11098 | EOF | |
11099 | ||
11100 | else | |
11101 | echo "$ac_t""no" 1>&6 | |
90dd450c | 11102 | fi |
21d1c967 | 11103 | done |
10f2d63a | 11104 | |
8284b0c5 | 11105 | |
21d1c967 GD |
11106 | if test "$ac_cv_header_iostream" = "yes" ; then |
11107 | : | |
11108 | else | |
a0b9e27f | 11109 | cat >> confdefs.h <<\EOF |
21d1c967 | 11110 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11111 | EOF |
788deba1 | 11112 | |
90dd450c | 11113 | fi |
ab9b9eab | 11114 | |
21d1c967 | 11115 | ac_ext=c |
a0b9e27f | 11116 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11117 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11118 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11119 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11120 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 11121 | |
21d1c967 | 11122 | fi |
ab9b9eab | 11123 | |
52127426 | 11124 | |
8284b0c5 | 11125 | |
a0b9e27f | 11126 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
2b5f62a0 | 11127 | echo "configure:11128: checking if C++ compiler supports bool" >&5 |
a0b9e27f MB |
11128 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
11129 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11130 | else |
a0b9e27f MB |
11131 | |
11132 | ||
11133 | ac_ext=C | |
11134 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11135 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11136 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11137 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11138 | cross_compiling=$ac_cv_prog_cxx_cross | |
21d1c967 | 11139 | |
8284b0c5 | 11140 | |
a0b9e27f | 11141 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 11142 | #line 11143 "configure" |
ab9b9eab | 11143 | #include "confdefs.h" |
21d1c967 | 11144 | |
a0b9e27f MB |
11145 | |
11146 | int main() { | |
21d1c967 GD |
11147 | |
11148 | bool b = true; | |
11149 | ||
11150 | return 0; | |
a0b9e27f MB |
11151 | |
11152 | ; return 0; } | |
11153 | EOF | |
2b5f62a0 | 11154 | if { (eval echo configure:11155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11155 | rm -rf conftest* |
11156 | ||
21d1c967 | 11157 | wx_cv_cpp_bool=yes |
a0b9e27f | 11158 | |
698dcdb6 | 11159 | else |
a0b9e27f MB |
11160 | echo "configure: failed program was:" >&5 |
11161 | cat conftest.$ac_ext >&5 | |
11162 | rm -rf conftest* | |
11163 | ||
21d1c967 | 11164 | wx_cv_cpp_bool=no |
a0b9e27f MB |
11165 | |
11166 | ||
698dcdb6 | 11167 | fi |
a0b9e27f | 11168 | rm -f conftest* |
21d1c967 GD |
11169 | |
11170 | ac_ext=c | |
a0b9e27f | 11171 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11172 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11173 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11174 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11175 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11176 | |
a0b9e27f | 11177 | |
247f5006 | 11178 | fi |
a0b9e27f MB |
11179 | |
11180 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
11181 | |
11182 | if test "$wx_cv_cpp_bool" = "yes"; then | |
a0b9e27f | 11183 | cat >> confdefs.h <<\EOF |
21d1c967 | 11184 | #define HAVE_BOOL 1 |
a0b9e27f | 11185 | EOF |
ab9b9eab | 11186 | |
21d1c967 GD |
11187 | fi |
11188 | ||
52127426 | 11189 | |
8284b0c5 | 11190 | |
a0b9e27f | 11191 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
2b5f62a0 | 11192 | echo "configure:11193: checking if C++ compiler supports the explicit keyword" >&5 |
a0b9e27f MB |
11193 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
11194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11195 | else |
a0b9e27f MB |
11196 | |
11197 | ||
11198 | ac_ext=C | |
11199 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11200 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11201 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11202 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11203 | cross_compiling=$ac_cv_prog_cxx_cross | |
986ecc86 | 11204 | |
8284b0c5 | 11205 | |
a0b9e27f | 11206 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 11207 | #line 11208 "configure" |
986ecc86 VZ |
11208 | #include "confdefs.h" |
11209 | ||
11210 | class Foo { public: explicit Foo(int) {} }; | |
a0b9e27f MB |
11211 | |
11212 | int main() { | |
986ecc86 VZ |
11213 | |
11214 | return 0; | |
a0b9e27f MB |
11215 | |
11216 | ; return 0; } | |
11217 | EOF | |
2b5f62a0 | 11218 | if { (eval echo configure:11219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11219 | rm -rf conftest* |
11220 | ||
11221 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 11222 | #line 11223 "configure" |
986ecc86 VZ |
11223 | #include "confdefs.h" |
11224 | ||
11225 | class Foo { public: explicit Foo(int) {} }; | |
11226 | static void TakeFoo(const Foo& foo) { } | |
a0b9e27f MB |
11227 | |
11228 | int main() { | |
986ecc86 VZ |
11229 | |
11230 | TakeFoo(17); | |
11231 | return 0; | |
a0b9e27f MB |
11232 | |
11233 | ; return 0; } | |
11234 | EOF | |
2b5f62a0 | 11235 | if { (eval echo configure:11236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11236 | rm -rf conftest* |
986ecc86 VZ |
11237 | wx_cv_explicit=no |
11238 | else | |
a0b9e27f MB |
11239 | echo "configure: failed program was:" >&5 |
11240 | cat conftest.$ac_ext >&5 | |
11241 | rm -rf conftest* | |
11242 | wx_cv_explicit=yes | |
11243 | ||
986ecc86 | 11244 | fi |
a0b9e27f MB |
11245 | rm -f conftest* |
11246 | ||
986ecc86 | 11247 | else |
a0b9e27f MB |
11248 | echo "configure: failed program was:" >&5 |
11249 | cat conftest.$ac_ext >&5 | |
11250 | rm -rf conftest* | |
11251 | wx_cv_explicit=no | |
11252 | ||
986ecc86 | 11253 | fi |
a0b9e27f | 11254 | rm -f conftest* |
986ecc86 VZ |
11255 | |
11256 | ac_ext=c | |
a0b9e27f | 11257 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 11258 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11259 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11260 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11261 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11262 | |
a0b9e27f | 11263 | |
247f5006 | 11264 | fi |
a0b9e27f MB |
11265 | |
11266 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
11267 | |
11268 | if test "$wx_cv_explicit" = "yes"; then | |
a0b9e27f | 11269 | cat >> confdefs.h <<\EOF |
986ecc86 | 11270 | #define HAVE_EXPLICIT 1 |
a0b9e27f | 11271 | EOF |
986ecc86 VZ |
11272 | |
11273 | fi | |
11274 | ||
8284b0c5 MB |
11275 | |
11276 | ||
21d1c967 GD |
11277 | SEARCH_INCLUDE="\ |
11278 | /usr/local/include \ | |
11279 | \ | |
11280 | /usr/Motif-1.2/include \ | |
11281 | /usr/Motif-2.1/include \ | |
11282 | \ | |
11283 | /usr/include/Motif1.2 \ | |
11284 | /opt/xpm/include/X11 \ | |
11285 | /opt/GBxpm/include/ \ | |
11286 | /opt/GBxpm/X11/include/ \ | |
11287 | \ | |
11288 | /usr/Motif1.2/include \ | |
11289 | /usr/dt/include \ | |
11290 | /usr/openwin/include \ | |
11291 | \ | |
11292 | /usr/include/Xm \ | |
11293 | \ | |
11294 | /usr/X11R6/include \ | |
11295 | /usr/X11R6.4/include \ | |
11296 | /usr/X11R5/include \ | |
11297 | /usr/X11R4/include \ | |
11298 | \ | |
11299 | /usr/include/X11R6 \ | |
11300 | /usr/include/X11R5 \ | |
11301 | /usr/include/X11R4 \ | |
11302 | \ | |
11303 | /usr/local/X11R6/include \ | |
11304 | /usr/local/X11R5/include \ | |
11305 | /usr/local/X11R4/include \ | |
11306 | \ | |
11307 | /usr/local/include/X11R6 \ | |
11308 | /usr/local/include/X11R5 \ | |
11309 | /usr/local/include/X11R4 \ | |
11310 | \ | |
11311 | /usr/X11/include \ | |
11312 | /usr/include/X11 \ | |
11313 | /usr/local/X11/include \ | |
11314 | /usr/local/include/X11 \ | |
11315 | \ | |
11316 | /usr/X386/include \ | |
11317 | /usr/x386/include \ | |
11318 | /usr/XFree86/include/X11 \ | |
11319 | \ | |
11320 | X:/XFree86/include \ | |
11321 | X:/XFree86/include/X11 \ | |
11322 | \ | |
11323 | /usr/include/gtk \ | |
11324 | /usr/local/include/gtk \ | |
11325 | /usr/include/glib \ | |
11326 | /usr/local/include/glib \ | |
11327 | \ | |
11328 | /usr/include/qt \ | |
11329 | /usr/local/include/qt \ | |
11330 | \ | |
11331 | /usr/include/windows \ | |
11332 | /usr/include/wine \ | |
11333 | /usr/local/include/wine \ | |
11334 | \ | |
11335 | /usr/unsupported/include \ | |
11336 | /usr/athena/include \ | |
11337 | /usr/local/x11r5/include \ | |
11338 | /usr/lpp/Xamples/include \ | |
11339 | \ | |
2b5f62a0 | 11340 | /usr/openwin/share/include" |
21d1c967 GD |
11341 | |
11342 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
11343 | ||
8284b0c5 | 11344 | |
a0b9e27f | 11345 | cat > confcache <<\EOF |
21d1c967 GD |
11346 | # This file is a shell script that caches the results of configure |
11347 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
11348 | # scripts and configure runs. It is not useful on other systems. |
11349 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 11350 | # |
a0b9e27f MB |
11351 | # By default, configure uses ./config.cache as the cache file, |
11352 | # creating it if it does not exist already. You can give configure | |
11353 | # the --cache-file=FILE option to use a different cache file; that is | |
11354 | # what configure does when it calls configure scripts in | |
11355 | # subdirectories, so they share the cache. | |
11356 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11357 | # config.status only pays attention to the cache file if you give it the | |
11358 | # --recheck option to rerun configure. | |
21d1c967 | 11359 | # |
a0b9e27f | 11360 | EOF |
21d1c967 GD |
11361 | # The following way of writing the cache mishandles newlines in values, |
11362 | # but we know of no workaround that is simple, portable, and efficient. | |
11363 | # So, don't put newlines in cache variables' values. | |
11364 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11365 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
11366 | (set) 2>&1 | |
11367 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11368 | *ac_space=\ *) | |
11369 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11370 | # turns \\\\ into \\, and sed turns \\ into \). | |
11371 | sed -n \ | |
11372 | -e "s/'/'\\\\''/g" \ | |
11373 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11374 | ;; | |
11375 | *) | |
11376 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11377 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11378 | ;; | |
11379 | esac >> confcache | |
11380 | if cmp -s $cache_file confcache; then | |
11381 | : | |
11382 | else | |
21d1c967 | 11383 | if test -w $cache_file; then |
a0b9e27f MB |
11384 | echo "updating cache $cache_file" |
11385 | cat confcache > $cache_file | |
21d1c967 GD |
11386 | else |
11387 | echo "not updating unwritable cache $cache_file" | |
11388 | fi | |
ab9b9eab | 11389 | fi |
21d1c967 | 11390 | rm -f confcache |
ab9b9eab | 11391 | |
247f5006 | 11392 | |
a0b9e27f MB |
11393 | if test "$USE_LINUX" = 1; then |
11394 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
2b5f62a0 | 11395 | echo "configure:11396: checking for glibc 2.1 or later" >&5 |
a0b9e27f MB |
11396 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
11397 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11398 | else | |
11399 | ||
11400 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 11401 | #line 11402 "configure" |
ab9b9eab | 11402 | #include "confdefs.h" |
21d1c967 | 11403 | #include <features.h> |
a0b9e27f | 11404 | int main() { |
ab9b9eab | 11405 | |
21d1c967 GD |
11406 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11407 | #error not glibc2.1 | |
11408 | #endif | |
a0b9e27f MB |
11409 | |
11410 | ; return 0; } | |
11411 | EOF | |
2b5f62a0 | 11412 | if { (eval echo configure:11413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11413 | rm -rf conftest* |
11414 | ||
21d1c967 | 11415 | wx_cv_lib_glibc21=yes |
a0b9e27f | 11416 | |
698dcdb6 | 11417 | else |
a0b9e27f MB |
11418 | echo "configure: failed program was:" >&5 |
11419 | cat conftest.$ac_ext >&5 | |
11420 | rm -rf conftest* | |
11421 | ||
21d1c967 | 11422 | wx_cv_lib_glibc21=no |
a0b9e27f MB |
11423 | |
11424 | ||
5c6fa7d2 | 11425 | fi |
a0b9e27f MB |
11426 | rm -f conftest* |
11427 | ||
247f5006 | 11428 | fi |
a0b9e27f MB |
11429 | |
11430 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
21d1c967 | 11431 | if test "$wx_cv_lib_glibc21" = "yes"; then |
a0b9e27f | 11432 | cat >> confdefs.h <<\EOF |
21d1c967 | 11433 | #define wxHAVE_GLIBC2 1 |
a0b9e27f | 11434 | EOF |
1e487827 | 11435 | |
90dd450c | 11436 | fi |
ab9b9eab VZ |
11437 | fi |
11438 | ||
5c0a20c3 VZ |
11439 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
11440 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 11441 | cat >> confdefs.h <<\EOF |
5c0a20c3 | 11442 | #define _GNU_SOURCE 1 |
a0b9e27f | 11443 | EOF |
5c0a20c3 VZ |
11444 | |
11445 | fi | |
11446 | fi | |
11447 | ||
8284b0c5 MB |
11448 | |
11449 | ||
21d1c967 GD |
11450 | REGEX_INCLUDE= |
11451 | if test "$wxUSE_REGEX" != "no"; then | |
a0b9e27f | 11452 | cat >> confdefs.h <<\EOF |
21d1c967 | 11453 | #define wxUSE_REGEX 1 |
a0b9e27f | 11454 | EOF |
698dcdb6 | 11455 | |
8284b0c5 | 11456 | |
21d1c967 | 11457 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
a0b9e27f MB |
11458 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
11459 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
2b5f62a0 | 11460 | echo "configure:11461: checking for regex.h" >&5 |
a0b9e27f MB |
11461 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11462 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11463 | else | |
11464 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 11465 | #line 11466 "configure" |
247f5006 VZ |
11466 | #include "confdefs.h" |
11467 | #include <regex.h> | |
a0b9e27f MB |
11468 | EOF |
11469 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 11470 | { (eval echo configure:11471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11471 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11472 | if test -z "$ac_err"; then | |
11473 | rm -rf conftest* | |
11474 | eval "ac_cv_header_$ac_safe=yes" | |
11475 | else | |
11476 | echo "$ac_err" >&5 | |
11477 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11478 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11479 | rm -rf conftest* |
11480 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11481 | fi |
a0b9e27f | 11482 | rm -f conftest* |
698dcdb6 | 11483 | fi |
a0b9e27f MB |
11484 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11485 | echo "$ac_t""yes" 1>&6 | |
11486 | for ac_func in regcomp | |
21d1c967 | 11487 | do |
a0b9e27f | 11488 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2b5f62a0 | 11489 | echo "configure:11490: checking for $ac_func" >&5 |
a0b9e27f MB |
11490 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11491 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11492 | else |
a0b9e27f | 11493 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 11494 | #line 11495 "configure" |
a0b9e27f MB |
11495 | #include "confdefs.h" |
11496 | /* System header to define __stub macros and hopefully few prototypes, | |
11497 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
11498 | #include <assert.h> |
11499 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11500 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11501 | builtin and then its argument prototype would still apply. */ |
11502 | char $ac_func(); | |
11503 | ||
11504 | int main() { | |
11505 | ||
21d1c967 GD |
11506 | /* The GNU C library defines this for functions which it implements |
11507 | to always fail with ENOSYS. Some functions are actually named | |
11508 | something starting with __ and the normal name is an alias. */ | |
11509 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11510 | choke me | |
11511 | #else | |
a0b9e27f | 11512 | $ac_func(); |
21d1c967 | 11513 | #endif |
90dd450c | 11514 | |
a0b9e27f MB |
11515 | ; return 0; } |
11516 | EOF | |
2b5f62a0 | 11517 | if { (eval echo configure:11518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11518 | rm -rf conftest* |
11519 | eval "ac_cv_func_$ac_func=yes" | |
11520 | else | |
11521 | echo "configure: failed program was:" >&5 | |
11522 | cat conftest.$ac_ext >&5 | |
11523 | rm -rf conftest* | |
11524 | eval "ac_cv_func_$ac_func=no" | |
11525 | fi | |
11526 | rm -f conftest* | |
11527 | fi | |
5c6fa7d2 | 11528 | |
a0b9e27f MB |
11529 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11530 | echo "$ac_t""yes" 1>&6 | |
11531 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11532 | cat >> confdefs.h <<EOF | |
11533 | #define $ac_tr_func 1 | |
11534 | EOF | |
11535 | ||
11536 | else | |
11537 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11538 | fi |
21d1c967 GD |
11539 | done |
11540 | ||
a0b9e27f MB |
11541 | else |
11542 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11543 | fi |
11544 | ||
8284b0c5 | 11545 | |
21d1c967 GD |
11546 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11547 | if test "$wxUSE_REGEX" = "sys" ; then | |
a0b9e27f | 11548 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11549 | else |
a0b9e27f | 11550 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11551 | wxUSE_REGEX=builtin |
11552 | fi | |
11553 | else | |
11554 | wxUSE_REGEX=sys | |
11555 | fi | |
ab9b9eab | 11556 | fi |
90dd450c | 11557 | |
21d1c967 GD |
11558 | if test "$wxUSE_REGEX" = "builtin" ; then |
11559 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11560 | fi |
21d1c967 | 11561 | fi |
90dd450c | 11562 | |
8284b0c5 | 11563 | |
21d1c967 GD |
11564 | ZLIB_INCLUDE= |
11565 | ZLIB_LINK= | |
11566 | if test "$wxUSE_ZLIB" != "no" ; then | |
a0b9e27f | 11567 | cat >> confdefs.h <<\EOF |
21d1c967 | 11568 | #define wxUSE_ZLIB 1 |
a0b9e27f | 11569 | EOF |
21d1c967 | 11570 | |
8284b0c5 | 11571 | |
21d1c967 | 11572 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d643b80e VZ |
11573 | echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6 |
11574 | echo "configure:11575: checking for zlib.h >= 1.1.4" >&5 | |
11575 | if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then | |
11576 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11577 | else | |
11578 | if test "$cross_compiling" = yes; then | |
11579 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
a0b9e27f | 11580 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 |
d643b80e | 11581 | echo "configure:11582: checking for zlib.h" >&5 |
a0b9e27f MB |
11582 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11584 | else | |
11585 | cat > conftest.$ac_ext <<EOF | |
d643b80e | 11586 | #line 11587 "configure" |
ab9b9eab | 11587 | #include "confdefs.h" |
21d1c967 | 11588 | #include <zlib.h> |
a0b9e27f MB |
11589 | EOF |
11590 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d643b80e | 11591 | { (eval echo configure:11592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11592 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11593 | if test -z "$ac_err"; then | |
11594 | rm -rf conftest* | |
11595 | eval "ac_cv_header_$ac_safe=yes" | |
11596 | else | |
11597 | echo "$ac_err" >&5 | |
11598 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11599 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11600 | rm -rf conftest* |
11601 | eval "ac_cv_header_$ac_safe=no" | |
698dcdb6 | 11602 | fi |
a0b9e27f | 11603 | rm -f conftest* |
ab9b9eab | 11604 | fi |
a0b9e27f MB |
11605 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11606 | echo "$ac_t""yes" 1>&6 | |
d643b80e VZ |
11607 | : |
11608 | else | |
11609 | echo "$ac_t""no" 1>&6 | |
11610 | fi | |
11611 | ||
11612 | ||
11613 | else | |
11614 | cat > conftest.$ac_ext <<EOF | |
11615 | #line 11616 "configure" | |
11616 | #include "confdefs.h" | |
11617 | ||
11618 | #include <zlib.h> | |
11619 | #include <stdio.h> | |
11620 | ||
11621 | ||
11622 | int main() | |
11623 | { | |
11624 | FILE *f=fopen("conftestval", "w"); | |
11625 | if (!f) exit(1); | |
11626 | fprintf(f, "%s", | |
11627 | ZLIB_VERSION[0] == '1' && | |
11628 | (ZLIB_VERSION[2] > '1' || | |
11629 | (ZLIB_VERSION[2] == '1' && | |
11630 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
11631 | exit(0); | |
11632 | } | |
11633 | ||
11634 | ||
11635 | EOF | |
11636 | if { (eval echo configure:11637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11637 | then | |
11638 | ac_cv_header_zlib_h=`cat conftestval` | |
11639 | else | |
11640 | echo "configure: failed program was:" >&5 | |
11641 | cat conftest.$ac_ext >&5 | |
11642 | rm -fr conftest* | |
11643 | ac_cv_header_zlib_h=no | |
11644 | fi | |
11645 | rm -fr conftest* | |
11646 | fi | |
11647 | ||
11648 | ||
11649 | fi | |
11650 | ||
11651 | echo "$ac_t""$ac_cv_header_zlib_h" 1>&6 | |
11652 | ||
11653 | if test "$ac_cv_header_zlib_h" = "yes"; then | |
11654 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
11655 | echo "configure:11656: checking for deflate in -lz" >&5 | |
a0b9e27f MB |
11656 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11657 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11658 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11659 | else |
a0b9e27f | 11660 | ac_save_LIBS="$LIBS" |
21d1c967 | 11661 | LIBS="-lz $LIBS" |
a0b9e27f | 11662 | cat > conftest.$ac_ext <<EOF |
d643b80e | 11663 | #line 11664 "configure" |
ab9b9eab | 11664 | #include "confdefs.h" |
21d1c967 GD |
11665 | /* Override any gcc2 internal prototype to avoid an error. */ |
11666 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11667 | builtin and then its argument prototype would still apply. */ |
11668 | char deflate(); | |
11669 | ||
11670 | int main() { | |
11671 | deflate() | |
11672 | ; return 0; } | |
11673 | EOF | |
d643b80e | 11674 | if { (eval echo configure:11675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11675 | rm -rf conftest* |
11676 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11677 | else | |
11678 | echo "configure: failed program was:" >&5 | |
11679 | cat conftest.$ac_ext >&5 | |
11680 | rm -rf conftest* | |
11681 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 11682 | fi |
a0b9e27f MB |
11683 | rm -f conftest* |
11684 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 11685 | |
698dcdb6 | 11686 | fi |
a0b9e27f MB |
11687 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11688 | echo "$ac_t""yes" 1>&6 | |
11689 | ZLIB_LINK=" -lz" | |
11690 | else | |
11691 | echo "$ac_t""no" 1>&6 | |
11692 | fi | |
698dcdb6 | 11693 | |
d643b80e | 11694 | fi |
247f5006 | 11695 | |
21d1c967 GD |
11696 | if test "x$ZLIB_LINK" = "x" ; then |
11697 | if test "$wxUSE_ZLIB" = "sys" ; then | |
d643b80e | 11698 | { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11699 | else |
d643b80e | 11700 | echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11701 | wxUSE_ZLIB=builtin |
11702 | fi | |
11703 | else | |
11704 | wxUSE_ZLIB=sys | |
11705 | fi | |
11706 | fi | |
11707 | ||
11708 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11709 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11710 | fi | |
ab9b9eab VZ |
11711 | fi |
11712 | ||
8284b0c5 | 11713 | |
21d1c967 GD |
11714 | PNG_INCLUDE= |
11715 | PNG_LINK= | |
11716 | if test "$wxUSE_LIBPNG" != "no" ; then | |
a0b9e27f | 11717 | cat >> confdefs.h <<\EOF |
21d1c967 | 11718 | #define wxUSE_LIBPNG 1 |
a0b9e27f | 11719 | EOF |
90dd450c | 11720 | |
8284b0c5 | 11721 | |
21d1c967 | 11722 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
a0b9e27f | 11723 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11724 | wxUSE_LIBPNG=sys |
11725 | fi | |
90dd450c | 11726 | |
21d1c967 | 11727 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a0b9e27f | 11728 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11729 | wxUSE_LIBPNG=builtin |
11730 | fi | |
11731 | ||
11732 | if test "$wxUSE_MGL" != 1 ; then | |
11733 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
5d3f766d VZ |
11734 | echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6 |
11735 | echo "configure:11736: checking for png.h > 0.90" >&5 | |
11736 | if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then | |
11737 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11738 | else | |
11739 | if test "$cross_compiling" = yes; then | |
11740 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
a0b9e27f | 11741 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
5d3f766d | 11742 | echo "configure:11743: checking for png.h" >&5 |
a0b9e27f MB |
11743 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11744 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11745 | else | |
11746 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 11747 | #line 11748 "configure" |
21d1c967 GD |
11748 | #include "confdefs.h" |
11749 | #include <png.h> | |
a0b9e27f MB |
11750 | EOF |
11751 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5d3f766d | 11752 | { (eval echo configure:11753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11753 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11754 | if test -z "$ac_err"; then | |
11755 | rm -rf conftest* | |
11756 | eval "ac_cv_header_$ac_safe=yes" | |
11757 | else | |
11758 | echo "$ac_err" >&5 | |
11759 | echo "configure: failed program was:" >&5 | |
90dd450c | 11760 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11761 | rm -rf conftest* |
11762 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11763 | fi |
a0b9e27f | 11764 | rm -f conftest* |
90dd450c | 11765 | fi |
a0b9e27f MB |
11766 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11767 | echo "$ac_t""yes" 1>&6 | |
5d3f766d VZ |
11768 | : |
11769 | else | |
11770 | echo "$ac_t""no" 1>&6 | |
11771 | fi | |
11772 | ||
11773 | ||
11774 | else | |
11775 | cat > conftest.$ac_ext <<EOF | |
11776 | #line 11777 "configure" | |
11777 | #include "confdefs.h" | |
11778 | ||
11779 | #include <png.h> | |
11780 | #include <stdio.h> | |
11781 | ||
11782 | int main() | |
11783 | { | |
11784 | FILE *f=fopen("conftestval", "w"); | |
11785 | if (!f) exit(1); | |
11786 | fprintf(f, "%s", | |
11787 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
11788 | exit(0); | |
11789 | } | |
11790 | ||
11791 | EOF | |
11792 | if { (eval echo configure:11793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11793 | then | |
11794 | ac_cv_header_png_h=`cat conftestval` | |
11795 | else | |
11796 | echo "configure: failed program was:" >&5 | |
11797 | cat conftest.$ac_ext >&5 | |
11798 | rm -fr conftest* | |
11799 | ac_cv_header_png_h=no | |
11800 | fi | |
11801 | rm -fr conftest* | |
11802 | fi | |
11803 | ||
11804 | ||
11805 | fi | |
11806 | ||
11807 | echo "$ac_t""$ac_cv_header_png_h" 1>&6 | |
11808 | ||
11809 | if test "$ac_cv_header_png_h" = "yes"; then | |
11810 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
11811 | echo "configure:11812: checking for png_check_sig in -lpng" >&5 | |
a0b9e27f MB |
11812 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11813 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11815 | else |
a0b9e27f | 11816 | ac_save_LIBS="$LIBS" |
21d1c967 | 11817 | LIBS="-lpng -lz -lm $LIBS" |
a0b9e27f | 11818 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 11819 | #line 11820 "configure" |
90dd450c | 11820 | #include "confdefs.h" |
21d1c967 GD |
11821 | /* Override any gcc2 internal prototype to avoid an error. */ |
11822 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11823 | builtin and then its argument prototype would still apply. */ |
11824 | char png_check_sig(); | |
90dd450c | 11825 | |
a0b9e27f MB |
11826 | int main() { |
11827 | png_check_sig() | |
11828 | ; return 0; } | |
11829 | EOF | |
5d3f766d | 11830 | if { (eval echo configure:11831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11831 | rm -rf conftest* |
11832 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11833 | else | |
11834 | echo "configure: failed program was:" >&5 | |
11835 | cat conftest.$ac_ext >&5 | |
11836 | rm -rf conftest* | |
11837 | eval "ac_cv_lib_$ac_lib_var=no" | |
11838 | fi | |
11839 | rm -f conftest* | |
11840 | LIBS="$ac_save_LIBS" | |
247f5006 | 11841 | |
90dd450c | 11842 | fi |
a0b9e27f MB |
11843 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11844 | echo "$ac_t""yes" 1>&6 | |
11845 | PNG_LINK=" -lpng" | |
11846 | else | |
11847 | echo "$ac_t""no" 1>&6 | |
11848 | fi | |
90dd450c | 11849 | |
5d3f766d | 11850 | fi |
247f5006 | 11851 | |
21d1c967 GD |
11852 | if test "x$PNG_LINK" = "x" ; then |
11853 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
a0b9e27f | 11854 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11855 | else |
5d3f766d | 11856 | echo "configure: warning: png library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11857 | wxUSE_LIBPNG=builtin |
11858 | fi | |
11859 | else | |
2b5f62a0 | 11860 | wxUSE_LIBPNG=sys |
21d1c967 GD |
11861 | fi |
11862 | fi | |
11863 | fi | |
90dd450c | 11864 | |
21d1c967 GD |
11865 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11866 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11867 | fi | |
90dd450c | 11868 | |
21d1c967 | 11869 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11870 | fi |
11871 | ||
8284b0c5 | 11872 | |
21d1c967 GD |
11873 | JPEG_INCLUDE= |
11874 | JPEG_LINK= | |
11875 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
a0b9e27f | 11876 | cat >> confdefs.h <<\EOF |
21d1c967 | 11877 | #define wxUSE_LIBJPEG 1 |
a0b9e27f | 11878 | EOF |
90dd450c | 11879 | |
8284b0c5 | 11880 | |
21d1c967 | 11881 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
a0b9e27f | 11882 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11883 | wxUSE_LIBJPEG=sys |
11884 | fi | |
90dd450c | 11885 | |
21d1c967 GD |
11886 | if test "$wxUSE_MGL" != 1 ; then |
11887 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
a0b9e27f | 11888 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
5d3f766d | 11889 | echo "configure:11890: checking for jpeglib.h" >&5 |
a0b9e27f MB |
11890 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
11891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11892 | else |
a0b9e27f | 11893 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 11894 | #line 11895 "configure" |
21d1c967 | 11895 | #include "confdefs.h" |
90dd450c | 11896 | |
21d1c967 GD |
11897 | #undef HAVE_STDLIB_H |
11898 | #include <stdio.h> | |
11899 | #include <jpeglib.h> | |
a0b9e27f MB |
11900 | |
11901 | int main() { | |
90dd450c | 11902 | |
a0b9e27f MB |
11903 | |
11904 | ; return 0; } | |
11905 | EOF | |
5d3f766d | 11906 | if { (eval echo configure:11907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11907 | rm -rf conftest* |
21d1c967 | 11908 | ac_cv_header_jpeglib_h=yes |
90dd450c | 11909 | else |
a0b9e27f MB |
11910 | echo "configure: failed program was:" >&5 |
11911 | cat conftest.$ac_ext >&5 | |
11912 | rm -rf conftest* | |
11913 | ac_cv_header_jpeglib_h=no | |
11914 | ||
90dd450c | 11915 | fi |
a0b9e27f MB |
11916 | rm -f conftest* |
11917 | ||
90dd450c VZ |
11918 | fi |
11919 | ||
a0b9e27f | 11920 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11921 | |
21d1c967 | 11922 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
a0b9e27f | 11923 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
5d3f766d | 11924 | echo "configure:11925: checking for jpeg_read_header in -ljpeg" >&5 |
a0b9e27f MB |
11925 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11926 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11927 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11928 | else |
a0b9e27f | 11929 | ac_save_LIBS="$LIBS" |
21d1c967 | 11930 | LIBS="-ljpeg $LIBS" |
a0b9e27f | 11931 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 11932 | #line 11933 "configure" |
21d1c967 GD |
11933 | #include "confdefs.h" |
11934 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11935 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11936 | builtin and then its argument prototype would still apply. */ |
11937 | char jpeg_read_header(); | |
11938 | ||
11939 | int main() { | |
11940 | jpeg_read_header() | |
11941 | ; return 0; } | |
11942 | EOF | |
5d3f766d | 11943 | if { (eval echo configure:11944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11944 | rm -rf conftest* |
11945 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11946 | else | |
11947 | echo "configure: failed program was:" >&5 | |
11948 | cat conftest.$ac_ext >&5 | |
11949 | rm -rf conftest* | |
11950 | eval "ac_cv_lib_$ac_lib_var=no" | |
11951 | fi | |
11952 | rm -f conftest* | |
11953 | LIBS="$ac_save_LIBS" | |
11954 | ||
11955 | fi | |
11956 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11957 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11958 | JPEG_LINK=" -ljpeg" |
a0b9e27f MB |
11959 | else |
11960 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11961 | fi |
11962 | ||
21d1c967 | 11963 | fi |
90dd450c | 11964 | |
21d1c967 GD |
11965 | if test "x$JPEG_LINK" = "x" ; then |
11966 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
a0b9e27f | 11967 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11968 | else |
a0b9e27f | 11969 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11970 | wxUSE_LIBJPEG=builtin |
11971 | fi | |
11972 | else | |
11973 | wxUSE_LIBJPEG=sys | |
11974 | fi | |
11975 | fi | |
11976 | fi | |
90dd450c | 11977 | |
21d1c967 GD |
11978 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
11979 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11980 | fi | |
11981 | fi | |
90dd450c | 11982 | |
8284b0c5 | 11983 | |
21d1c967 GD |
11984 | TIFF_INCLUDE= |
11985 | TIFF_LINK= | |
2b5f62a0 | 11986 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 11987 | if test "$wxUSE_LIBTIFF" != "no" ; then |
a0b9e27f | 11988 | cat >> confdefs.h <<\EOF |
21d1c967 | 11989 | #define wxUSE_LIBTIFF 1 |
a0b9e27f | 11990 | EOF |
21d1c967 | 11991 | |
8284b0c5 | 11992 | |
21d1c967 | 11993 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
11994 | if test "$wxUSE_LIBJPEG" = "sys"; then |
11995 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
11996 | fi | |
11997 | if test "$wxUSE_ZLIB" = "sys"; then | |
11998 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
11999 | fi | |
a0b9e27f MB |
12000 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
12001 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
5d3f766d | 12002 | echo "configure:12003: checking for tiffio.h" >&5 |
a0b9e27f MB |
12003 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12004 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12005 | else | |
12006 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 12007 | #line 12008 "configure" |
247f5006 VZ |
12008 | #include "confdefs.h" |
12009 | #include <tiffio.h> | |
a0b9e27f MB |
12010 | EOF |
12011 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5d3f766d | 12012 | { (eval echo configure:12013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12013 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12014 | if test -z "$ac_err"; then | |
12015 | rm -rf conftest* | |
12016 | eval "ac_cv_header_$ac_safe=yes" | |
12017 | else | |
12018 | echo "$ac_err" >&5 | |
12019 | echo "configure: failed program was:" >&5 | |
21d1c967 | 12020 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12021 | rm -rf conftest* |
12022 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 12023 | fi |
a0b9e27f | 12024 | rm -f conftest* |
21d1c967 | 12025 | fi |
a0b9e27f MB |
12026 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12027 | echo "$ac_t""yes" 1>&6 | |
12028 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
5d3f766d | 12029 | echo "configure:12030: checking for TIFFError in -ltiff" >&5 |
a0b9e27f MB |
12030 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
12031 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12032 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 12033 | else |
a0b9e27f | 12034 | ac_save_LIBS="$LIBS" |
2b5f62a0 | 12035 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
a0b9e27f | 12036 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 12037 | #line 12038 "configure" |
ab9b9eab VZ |
12038 | #include "confdefs.h" |
12039 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12040 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12041 | builtin and then its argument prototype would still apply. */ |
12042 | char TIFFError(); | |
ab9b9eab | 12043 | |
a0b9e27f MB |
12044 | int main() { |
12045 | TIFFError() | |
12046 | ; return 0; } | |
12047 | EOF | |
5d3f766d | 12048 | if { (eval echo configure:12049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12049 | rm -rf conftest* |
12050 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12051 | else | |
12052 | echo "configure: failed program was:" >&5 | |
12053 | cat conftest.$ac_ext >&5 | |
12054 | rm -rf conftest* | |
12055 | eval "ac_cv_lib_$ac_lib_var=no" | |
12056 | fi | |
12057 | rm -f conftest* | |
12058 | LIBS="$ac_save_LIBS" | |
247f5006 | 12059 | |
21d1c967 | 12060 | fi |
a0b9e27f MB |
12061 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
12062 | echo "$ac_t""yes" 1>&6 | |
12063 | TIFF_LINK=" -ltiff" | |
12064 | else | |
12065 | echo "$ac_t""no" 1>&6 | |
12066 | fi | |
cd6d6d5b | 12067 | |
a0b9e27f MB |
12068 | |
12069 | else | |
12070 | echo "$ac_t""no" 1>&6 | |
12071 | fi | |
8284b0c5 | 12072 | |
247f5006 | 12073 | |
21d1c967 GD |
12074 | if test "x$TIFF_LINK" = "x" ; then |
12075 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
a0b9e27f | 12076 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 12077 | else |
a0b9e27f | 12078 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 12079 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 12080 | fi |
d8356fa3 | 12081 | else |
21d1c967 | 12082 | wxUSE_LIBTIFF=sys |
d8356fa3 | 12083 | fi |
21d1c967 | 12084 | fi |
d8356fa3 | 12085 | |
21d1c967 GD |
12086 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
12087 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 12088 | fi |
21d1c967 | 12089 | fi |
10f2d63a | 12090 | |
8284b0c5 | 12091 | |
21d1c967 | 12092 | AFMINSTALL= |
2b5f62a0 | 12093 | WIN32INSTALL= |
90dd450c | 12094 | |
21d1c967 GD |
12095 | TOOLKIT= |
12096 | TOOLKIT_INCLUDE= | |
12097 | WIDGET_SET= | |
12098 | ||
12099 | if test "$USE_WIN32" = 1 ; then | |
a0b9e27f | 12100 | for ac_hdr in w32api.h |
21d1c967 | 12101 | do |
a0b9e27f MB |
12102 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12103 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5d3f766d | 12104 | echo "configure:12105: checking for $ac_hdr" >&5 |
a0b9e27f MB |
12105 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12106 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12107 | else | |
12108 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 12109 | #line 12110 "configure" |
247f5006 | 12110 | #include "confdefs.h" |
a0b9e27f MB |
12111 | #include <$ac_hdr> |
12112 | EOF | |
12113 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5d3f766d | 12114 | { (eval echo configure:12115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12115 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12116 | if test -z "$ac_err"; then | |
12117 | rm -rf conftest* | |
12118 | eval "ac_cv_header_$ac_safe=yes" | |
12119 | else | |
12120 | echo "$ac_err" >&5 | |
12121 | echo "configure: failed program was:" >&5 | |
f79bd02d | 12122 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12123 | rm -rf conftest* |
12124 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 12125 | fi |
a0b9e27f | 12126 | rm -f conftest* |
21d1c967 | 12127 | fi |
a0b9e27f MB |
12128 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12129 | echo "$ac_t""yes" 1>&6 | |
12130 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12131 | cat >> confdefs.h <<EOF | |
12132 | #define $ac_tr_hdr 1 | |
12133 | EOF | |
12134 | ||
12135 | else | |
12136 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
12137 | fi |
12138 | done | |
f79bd02d | 12139 | |
a0b9e27f MB |
12140 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
12141 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
5d3f766d | 12142 | echo "configure:12143: checking for windows.h" >&5 |
a0b9e27f MB |
12143 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12144 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12145 | else |
a0b9e27f | 12146 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 12147 | #line 12148 "configure" |
247f5006 VZ |
12148 | #include "confdefs.h" |
12149 | #include <windows.h> | |
a0b9e27f MB |
12150 | EOF |
12151 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5d3f766d | 12152 | { (eval echo configure:12153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12153 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12154 | if test -z "$ac_err"; then | |
12155 | rm -rf conftest* | |
12156 | eval "ac_cv_header_$ac_safe=yes" | |
12157 | else | |
12158 | echo "$ac_err" >&5 | |
12159 | echo "configure: failed program was:" >&5 | |
90dd450c | 12160 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12161 | rm -rf conftest* |
12162 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 12163 | fi |
a0b9e27f | 12164 | rm -f conftest* |
90dd450c | 12165 | fi |
a0b9e27f MB |
12166 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12167 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12168 | : |
90dd450c | 12169 | else |
a0b9e27f | 12170 | echo "$ac_t""no" 1>&6 |
21d1c967 | 12171 | |
a0b9e27f MB |
12172 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
12173 | ||
5c6fa7d2 | 12174 | fi |
7b4a847f | 12175 | |
5c6fa7d2 | 12176 | |
a0b9e27f | 12177 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
5d3f766d | 12178 | echo "configure:12179: checking if w32api has good enough MSIE support" >&5 |
a0b9e27f MB |
12179 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
12180 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 12181 | else |
a0b9e27f MB |
12182 | |
12183 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 12184 | #line 12185 "configure" |
f79bd02d | 12185 | #include "confdefs.h" |
21d1c967 | 12186 | #include <w32api.h> |
a0b9e27f | 12187 | int main() { |
f79bd02d | 12188 | |
21d1c967 GD |
12189 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
12190 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
12191 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
12192 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
12193 | ||
12194 | #if !wxCHECK_W32API_VERSION(1,1) | |
12195 | #error You need w32api 1.1 or newer | |
12196 | #endif | |
a0b9e27f MB |
12197 | |
12198 | ; return 0; } | |
12199 | EOF | |
5d3f766d | 12200 | if { (eval echo configure:12201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
12201 | rm -rf conftest* |
12202 | ||
21d1c967 | 12203 | wx_cv_w32api_win32_ie=yes |
a0b9e27f | 12204 | |
f79bd02d | 12205 | else |
a0b9e27f MB |
12206 | echo "configure: failed program was:" >&5 |
12207 | cat conftest.$ac_ext >&5 | |
12208 | rm -rf conftest* | |
12209 | ||
21d1c967 | 12210 | wx_cv_w32api_win32_ie=no |
a0b9e27f | 12211 | |
5c6fa7d2 | 12212 | fi |
a0b9e27f MB |
12213 | rm -f conftest* |
12214 | ||
247f5006 | 12215 | fi |
a0b9e27f MB |
12216 | |
12217 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
12218 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
12219 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
12220 | fi | |
f79bd02d | 12221 | |
21d1c967 GD |
12222 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
12223 | ||
12224 | case "${host}" in | |
12225 | *-*-cygwin* ) | |
12226 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
12227 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 12228 | esac |
f79bd02d | 12229 | |
21d1c967 GD |
12230 | if test "$wxUSE_ODBC" = "yes" ; then |
12231 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
12232 | fi | |
f79bd02d | 12233 | |
21d1c967 GD |
12234 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
12235 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
12236 | |
12237 | WIN32INSTALL=win32install | |
f79bd02d | 12238 | fi |
f79bd02d | 12239 | |
b2fee376 | 12240 | if test "$USE_DARWIN" = 1; then |
50bcbd3d | 12241 | if test "$wxUSE_PRECOMP" = "yes"; then |
b2fee376 GD |
12242 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
12243 | else | |
12244 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
12245 | fi | |
12246 | fi | |
12247 | ||
21d1c967 GD |
12248 | if test "$wxUSE_GUI" = "yes"; then |
12249 | USE_GUI=1 | |
f79bd02d | 12250 | |
21d1c967 | 12251 | GUI_TK_LIBRARY= |
f79bd02d | 12252 | |
21d1c967 GD |
12253 | WXGTK12= |
12254 | WXGTK127= | |
12255 | WXGTK20= | |
f79bd02d | 12256 | |
21d1c967 GD |
12257 | if test "$wxUSE_MSW" = 1 ; then |
12258 | TOOLKIT=MSW | |
12259 | GUIDIST=MSW_DIST | |
f79bd02d | 12260 | |
21d1c967 GD |
12261 | case "${host}" in |
12262 | *-*-mingw32* ) | |
12263 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
12264 | esac | |
f79bd02d JS |
12265 | fi |
12266 | ||
21d1c967 | 12267 | if test "$wxUSE_GTK" = 1; then |
a0b9e27f | 12268 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
5d3f766d | 12269 | echo "configure:12270: checking for GTK+ version" >&5 |
21d1c967 GD |
12270 | |
12271 | gtk_version_cached=1 | |
a0b9e27f MB |
12272 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
12273 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 12274 | else |
a0b9e27f | 12275 | |
21d1c967 | 12276 | gtk_version_cached=0 |
a0b9e27f | 12277 | echo "$ac_t""" 1>&6 |
f79bd02d | 12278 | |
21d1c967 GD |
12279 | GTK_MODULES= |
12280 | if test "$wxUSE_THREADS" = "yes"; then | |
12281 | GTK_MODULES=gthread | |
12282 | fi | |
f79bd02d | 12283 | |
2b5f62a0 | 12284 | wx_cv_lib_gtk= |
21d1c967 GD |
12285 | if test "x$wxUSE_GTK2" = "xyes"; then |
12286 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12287 | if test "${enable_gtktest+set}" = set; then | |
12288 | enableval="$enable_gtktest" | |
a0b9e27f | 12289 | : |
f79bd02d | 12290 | else |
21d1c967 | 12291 | enable_gtktest=yes |
a0b9e27f MB |
12292 | fi |
12293 | ||
f79bd02d | 12294 | |
21d1c967 GD |
12295 | pkg_config_args=gtk+-2.0 |
12296 | for module in . $GTK_MODULES | |
12297 | do | |
12298 | case "$module" in | |
a0b9e27f | 12299 | gthread) |
21d1c967 GD |
12300 | pkg_config_args="$pkg_config_args gthread-2.0" |
12301 | ;; | |
12302 | esac | |
12303 | done | |
12304 | ||
12305 | no_gtk="" | |
f79bd02d | 12306 | |
21d1c967 GD |
12307 | # Extract the first word of "pkg-config", so it can be a program name with args. |
12308 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 12309 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5d3f766d | 12310 | echo "configure:12311: checking for $ac_word" >&5 |
a0b9e27f MB |
12311 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
12312 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12313 | else |
a0b9e27f MB |
12314 | case "$PKG_CONFIG" in |
12315 | /*) | |
21d1c967 GD |
12316 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12317 | ;; | |
a0b9e27f MB |
12318 | ?:/*) |
12319 | ac_cv_path_PKG_CONFIG="$PKG_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_PKG_CONFIG="$ac_dir/$ac_word" | |
12328 | break | |
12329 | fi | |
12330 | done | |
12331 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12332 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12333 | ;; | |
12334 | esac | |
f79bd02d | 12335 | fi |
a0b9e27f | 12336 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 12337 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 12338 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 12339 | else |
a0b9e27f | 12340 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
12341 | fi |
12342 | ||
8284b0c5 | 12343 | |
21d1c967 GD |
12344 | if test x$PKG_CONFIG != xno ; then |
12345 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
12346 | : | |
12347 | else | |
12348 | echo *** pkg-config too old; version 0.7 or better required. | |
12349 | no_gtk=yes | |
12350 | PKG_CONFIG=no | |
12351 | fi | |
12352 | else | |
12353 | no_gtk=yes | |
12354 | fi | |
f79bd02d | 12355 | |
21d1c967 | 12356 | min_gtk_version=2.0.0 |
a0b9e27f | 12357 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
5d3f766d | 12358 | echo "configure:12359: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 12359 | |
21d1c967 GD |
12360 | if test x$PKG_CONFIG != xno ; then |
12361 | ## don't try to run the test against uninstalled libtool libs | |
12362 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
12363 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
12364 | enable_gtktest=no | |
12365 | fi | |
f79bd02d | 12366 | |
21d1c967 GD |
12367 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
12368 | : | |
12369 | else | |
12370 | no_gtk=yes | |
12371 | fi | |
12372 | fi | |
f79bd02d | 12373 | |
21d1c967 GD |
12374 | if test x"$no_gtk" = x ; then |
12375 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
12376 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
12377 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12378 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12379 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12380 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12381 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12382 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12383 | if test "x$enable_gtktest" = "xyes" ; then | |
12384 | ac_save_CFLAGS="$CFLAGS" | |
12385 | ac_save_LIBS="$LIBS" | |
12386 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12387 | LIBS="$GTK_LIBS $LIBS" | |
12388 | rm -f conf.gtktest | |
12389 | if test "$cross_compiling" = yes; then | |
12390 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12391 | else |
a0b9e27f | 12392 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 12393 | #line 12394 "configure" |
f79bd02d | 12394 | #include "confdefs.h" |
f79bd02d | 12395 | |
21d1c967 GD |
12396 | #include <gtk/gtk.h> |
12397 | #include <stdio.h> | |
12398 | #include <stdlib.h> | |
f79bd02d | 12399 | |
a0b9e27f | 12400 | int |
21d1c967 GD |
12401 | main () |
12402 | { | |
12403 | int major, minor, micro; | |
12404 | char *tmp_version; | |
f79bd02d | 12405 | |
21d1c967 | 12406 | system ("touch conf.gtktest"); |
f79bd02d | 12407 | |
21d1c967 GD |
12408 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
12409 | tmp_version = g_strdup("$min_gtk_version"); | |
12410 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12411 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12412 | exit(1); | |
12413 | } | |
f79bd02d | 12414 | |
21d1c967 GD |
12415 | if ((gtk_major_version != $gtk_config_major_version) || |
12416 | (gtk_minor_version != $gtk_config_minor_version) || | |
12417 | (gtk_micro_version != $gtk_config_micro_version)) | |
12418 | { | |
a0b9e27f | 12419 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12420 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12421 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12422 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
12423 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12424 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12425 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12426 | printf("*** required on your system.\n"); | |
12427 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
12428 | printf("*** to point to the correct configuration files\n"); | |
a0b9e27f | 12429 | } |
21d1c967 GD |
12430 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
12431 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12432 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12433 | { | |
12434 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12435 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12436 | printf("*** library (version %d.%d.%d)\n", | |
12437 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12438 | } | |
12439 | else | |
12440 | { | |
12441 | if ((gtk_major_version > major) || | |
12442 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12443 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12444 | { | |
12445 | return 0; | |
12446 | } | |
12447 | else | |
12448 | { | |
12449 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12450 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12451 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12452 | major, minor, micro); | |
12453 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12454 | printf("***\n"); | |
12455 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12456 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
12457 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12458 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
12459 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
12460 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12461 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12462 | } | |
12463 | } | |
12464 | return 1; | |
12465 | } | |
f79bd02d | 12466 | |
a0b9e27f | 12467 | EOF |
5d3f766d | 12468 | if { (eval echo configure:12469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12469 | then |
21d1c967 | 12470 | : |
f79bd02d | 12471 | else |
a0b9e27f MB |
12472 | echo "configure: failed program was:" >&5 |
12473 | cat conftest.$ac_ext >&5 | |
12474 | rm -fr conftest* | |
12475 | no_gtk=yes | |
f79bd02d | 12476 | fi |
a0b9e27f | 12477 | rm -fr conftest* |
f79bd02d | 12478 | fi |
a0b9e27f | 12479 | |
21d1c967 GD |
12480 | CFLAGS="$ac_save_CFLAGS" |
12481 | LIBS="$ac_save_LIBS" | |
12482 | fi | |
12483 | fi | |
12484 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12485 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
12486 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 12487 | else |
a0b9e27f | 12488 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12489 | if test "$PKG_CONFIG" = "no" ; then |
12490 | echo "*** A new enough version of pkg-config was not found." | |
12491 | echo "*** See http://pkgconfig.sourceforge.net" | |
12492 | else | |
12493 | if test -f conf.gtktest ; then | |
12494 | : | |
12495 | else | |
12496 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
12497 | ac_save_CFLAGS="$CFLAGS" |
12498 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
12499 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
12500 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12501 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 12502 | #line 12503 "configure" |
f79bd02d | 12503 | #include "confdefs.h" |
21d1c967 GD |
12504 | |
12505 | #include <gtk/gtk.h> | |
12506 | #include <stdio.h> | |
f79bd02d | 12507 | |
a0b9e27f MB |
12508 | int main() { |
12509 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12510 | ; return 0; } | |
12511 | EOF | |
5d3f766d | 12512 | if { (eval echo configure:12513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12513 | rm -rf conftest* |
21d1c967 GD |
12514 | echo "*** The test program compiled, but did not run. This usually means" |
12515 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12516 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12517 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12518 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12519 | echo "*** is required on your system" | |
12520 | echo "***" | |
12521 | echo "*** If you have an old version installed, it is best to remove it, although" | |
a0b9e27f | 12522 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 12523 | else |
a0b9e27f MB |
12524 | echo "configure: failed program was:" >&5 |
12525 | cat conftest.$ac_ext >&5 | |
12526 | rm -rf conftest* | |
12527 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 12528 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 12529 | fi |
a0b9e27f | 12530 | rm -f conftest* |
21d1c967 GD |
12531 | CFLAGS="$ac_save_CFLAGS" |
12532 | LIBS="$ac_save_LIBS" | |
12533 | fi | |
12534 | fi | |
12535 | GTK_CFLAGS="" | |
12536 | GTK_LIBS="" | |
12537 | : | |
12538 | fi | |
a0b9e27f MB |
12539 | |
12540 | ||
21d1c967 | 12541 | rm -f conf.gtktest |
f79bd02d | 12542 | |
2b5f62a0 | 12543 | else |
a0b9e27f | 12544 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12545 | if test "${with_gtk_prefix+set}" = set; then |
12546 | withval="$with_gtk_prefix" | |
12547 | gtk_config_prefix="$withval" | |
12548 | else | |
12549 | gtk_config_prefix="" | |
a0b9e27f | 12550 | fi |
f79bd02d | 12551 | |
21d1c967 GD |
12552 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12553 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12554 | withval="$with_gtk_exec_prefix" | |
12555 | gtk_config_exec_prefix="$withval" | |
12556 | else | |
12557 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12558 | fi |
12559 | ||
21d1c967 GD |
12560 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12561 | if test "${enable_gtktest+set}" = set; then | |
12562 | enableval="$enable_gtktest" | |
a0b9e27f | 12563 | : |
21d1c967 GD |
12564 | else |
12565 | enable_gtktest=yes | |
a0b9e27f MB |
12566 | fi |
12567 | ||
21d1c967 GD |
12568 | |
12569 | for module in . $GTK_MODULES | |
12570 | do | |
12571 | case "$module" in | |
a0b9e27f | 12572 | gthread) |
21d1c967 GD |
12573 | gtk_config_args="$gtk_config_args gthread" |
12574 | ;; | |
12575 | esac | |
12576 | done | |
12577 | ||
12578 | if test x$gtk_config_exec_prefix != x ; then | |
12579 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12580 | if test x${GTK_CONFIG+set} != xset ; then | |
12581 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12582 | fi | |
12583 | fi | |
12584 | if test x$gtk_config_prefix != x ; then | |
12585 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12586 | if test x${GTK_CONFIG+set} != xset ; then | |
12587 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12588 | fi | |
12589 | fi | |
12590 | ||
12591 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12592 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12593 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5d3f766d | 12594 | echo "configure:12595: checking for $ac_word" >&5 |
a0b9e27f MB |
12595 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12596 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12597 | else |
a0b9e27f MB |
12598 | case "$GTK_CONFIG" in |
12599 | /*) | |
21d1c967 GD |
12600 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12601 | ;; | |
a0b9e27f MB |
12602 | ?:/*) |
12603 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12604 | ;; | |
21d1c967 | 12605 | *) |
a0b9e27f MB |
12606 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12607 | ac_dummy="$PATH" | |
12608 | for ac_dir in $ac_dummy; do | |
12609 | test -z "$ac_dir" && ac_dir=. | |
12610 | if test -f $ac_dir/$ac_word; then | |
12611 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12612 | break | |
12613 | fi | |
12614 | done | |
12615 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12616 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12617 | ;; | |
12618 | esac | |
12619 | fi | |
a0b9e27f | 12620 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12621 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12622 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12623 | else |
a0b9e27f | 12624 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12625 | fi |
12626 | ||
12627 | min_gtk_version=1.2.7 | |
a0b9e27f | 12628 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
5d3f766d | 12629 | echo "configure:12630: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12630 | no_gtk="" |
12631 | if test "$GTK_CONFIG" = "no" ; then | |
12632 | no_gtk=yes | |
12633 | else | |
12634 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12635 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12636 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12637 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12638 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12639 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12640 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12641 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12642 | if test "x$enable_gtktest" = "xyes" ; then | |
12643 | ac_save_CFLAGS="$CFLAGS" | |
12644 | ac_save_LIBS="$LIBS" | |
12645 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12646 | LIBS="$GTK_LIBS $LIBS" | |
12647 | rm -f conf.gtktest | |
12648 | if test "$cross_compiling" = yes; then | |
12649 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12650 | else |
a0b9e27f | 12651 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 12652 | #line 12653 "configure" |
f79bd02d JS |
12653 | #include "confdefs.h" |
12654 | ||
21d1c967 GD |
12655 | #include <gtk/gtk.h> |
12656 | #include <stdio.h> | |
12657 | #include <stdlib.h> | |
f79bd02d | 12658 | |
a0b9e27f | 12659 | int |
21d1c967 GD |
12660 | main () |
12661 | { | |
12662 | int major, minor, micro; | |
12663 | char *tmp_version; | |
12664 | ||
12665 | system ("touch conf.gtktest"); | |
12666 | ||
12667 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12668 | tmp_version = g_strdup("$min_gtk_version"); | |
12669 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12670 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12671 | exit(1); | |
12672 | } | |
90dd450c | 12673 | |
21d1c967 GD |
12674 | if ((gtk_major_version != $gtk_config_major_version) || |
12675 | (gtk_minor_version != $gtk_config_minor_version) || | |
12676 | (gtk_micro_version != $gtk_config_micro_version)) | |
12677 | { | |
a0b9e27f | 12678 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12679 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12680 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12681 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12682 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12683 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12684 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12685 | printf("*** required on your system.\n"); | |
12686 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12687 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12688 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12689 | } |
21d1c967 GD |
12690 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12691 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12692 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12693 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12694 | { | |
12695 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12696 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12697 | printf("*** library (version %d.%d.%d)\n", | |
12698 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12699 | } | |
12700 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12701 | else | |
12702 | { | |
12703 | if ((gtk_major_version > major) || | |
12704 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12705 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12706 | { | |
12707 | return 0; | |
12708 | } | |
12709 | else | |
12710 | { | |
12711 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12712 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12713 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12714 | major, minor, micro); | |
12715 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12716 | printf("***\n"); | |
12717 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12718 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12719 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12720 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12721 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12722 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12723 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12724 | } | |
12725 | } | |
12726 | return 1; | |
12727 | } | |
12728 | ||
a0b9e27f | 12729 | EOF |
5d3f766d | 12730 | if { (eval echo configure:12731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12731 | then |
21d1c967 GD |
12732 | : |
12733 | else | |
a0b9e27f MB |
12734 | echo "configure: failed program was:" >&5 |
12735 | cat conftest.$ac_ext >&5 | |
12736 | rm -fr conftest* | |
12737 | no_gtk=yes | |
21d1c967 | 12738 | fi |
a0b9e27f | 12739 | rm -fr conftest* |
21d1c967 | 12740 | fi |
a0b9e27f | 12741 | |
21d1c967 GD |
12742 | CFLAGS="$ac_save_CFLAGS" |
12743 | LIBS="$ac_save_LIBS" | |
12744 | fi | |
12745 | fi | |
12746 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12747 | echo "$ac_t""yes" 1>&6 |
12748 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12749 | else |
a0b9e27f | 12750 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12751 | if test "$GTK_CONFIG" = "no" ; then |
12752 | echo "*** The gtk-config script installed by GTK could not be found" | |
12753 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12754 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12755 | echo "*** full path to gtk-config." | |
12756 | else | |
12757 | if test -f conf.gtktest ; then | |
12758 | : | |
12759 | else | |
12760 | echo "*** Could not run GTK test program, checking why..." | |
12761 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12762 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12763 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 12764 | #line 12765 "configure" |
21d1c967 GD |
12765 | #include "confdefs.h" |
12766 | ||
12767 | #include <gtk/gtk.h> | |
12768 | #include <stdio.h> | |
12769 | ||
a0b9e27f MB |
12770 | int main() { |
12771 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12772 | ; return 0; } | |
12773 | EOF | |
5d3f766d | 12774 | if { (eval echo configure:12775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12775 | rm -rf conftest* |
21d1c967 GD |
12776 | echo "*** The test program compiled, but did not run. This usually means" |
12777 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12778 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12779 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12780 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12781 | echo "*** is required on your system" | |
12782 | echo "***" | |
12783 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12784 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12785 | echo "***" | |
12786 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12787 | echo "*** came with the system with the command" | |
12788 | echo "***" | |
a0b9e27f | 12789 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12790 | else |
a0b9e27f MB |
12791 | echo "configure: failed program was:" >&5 |
12792 | cat conftest.$ac_ext >&5 | |
12793 | rm -rf conftest* | |
12794 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12795 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12796 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 12797 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12798 | fi |
a0b9e27f | 12799 | rm -f conftest* |
21d1c967 GD |
12800 | CFLAGS="$ac_save_CFLAGS" |
12801 | LIBS="$ac_save_LIBS" | |
12802 | fi | |
12803 | fi | |
12804 | GTK_CFLAGS="" | |
12805 | GTK_LIBS="" | |
12806 | : | |
12807 | fi | |
a0b9e27f MB |
12808 | |
12809 | ||
21d1c967 GD |
12810 | rm -f conf.gtktest |
12811 | ||
21d1c967 | 12812 | |
2b5f62a0 VZ |
12813 | if test -z "$wx_cv_lib_gtk"; then |
12814 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
12815 | if test "${with_gtk_prefix+set}" = set; then |
12816 | withval="$with_gtk_prefix" | |
12817 | gtk_config_prefix="$withval" | |
12818 | else | |
12819 | gtk_config_prefix="" | |
a0b9e27f | 12820 | fi |
f79bd02d | 12821 | |
21d1c967 GD |
12822 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12823 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12824 | withval="$with_gtk_exec_prefix" | |
12825 | gtk_config_exec_prefix="$withval" | |
12826 | else | |
12827 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12828 | fi |
12829 | ||
21d1c967 GD |
12830 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12831 | if test "${enable_gtktest+set}" = set; then | |
12832 | enableval="$enable_gtktest" | |
a0b9e27f | 12833 | : |
90dd450c | 12834 | else |
21d1c967 | 12835 | enable_gtktest=yes |
a0b9e27f MB |
12836 | fi |
12837 | ||
21d1c967 GD |
12838 | |
12839 | for module in . $GTK_MODULES | |
12840 | do | |
12841 | case "$module" in | |
a0b9e27f | 12842 | gthread) |
21d1c967 GD |
12843 | gtk_config_args="$gtk_config_args gthread" |
12844 | ;; | |
12845 | esac | |
12846 | done | |
12847 | ||
12848 | if test x$gtk_config_exec_prefix != x ; then | |
12849 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12850 | if test x${GTK_CONFIG+set} != xset ; then | |
12851 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12852 | fi | |
12853 | fi | |
12854 | if test x$gtk_config_prefix != x ; then | |
12855 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12856 | if test x${GTK_CONFIG+set} != xset ; then | |
12857 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12858 | fi | |
12859 | fi | |
12860 | ||
12861 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12862 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12863 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5d3f766d | 12864 | echo "configure:12865: checking for $ac_word" >&5 |
a0b9e27f MB |
12865 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12866 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12867 | else |
a0b9e27f MB |
12868 | case "$GTK_CONFIG" in |
12869 | /*) | |
21d1c967 GD |
12870 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12871 | ;; | |
a0b9e27f MB |
12872 | ?:/*) |
12873 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12874 | ;; | |
21d1c967 | 12875 | *) |
a0b9e27f MB |
12876 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12877 | ac_dummy="$PATH" | |
12878 | for ac_dir in $ac_dummy; do | |
12879 | test -z "$ac_dir" && ac_dir=. | |
12880 | if test -f $ac_dir/$ac_word; then | |
12881 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12882 | break | |
12883 | fi | |
12884 | done | |
12885 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12886 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12887 | ;; | |
12888 | esac | |
12889 | fi | |
a0b9e27f | 12890 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12891 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12892 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12893 | else |
a0b9e27f | 12894 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12895 | fi |
12896 | ||
12897 | min_gtk_version=1.2.3 | |
a0b9e27f | 12898 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
5d3f766d | 12899 | echo "configure:12900: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12900 | no_gtk="" |
12901 | if test "$GTK_CONFIG" = "no" ; then | |
12902 | no_gtk=yes | |
12903 | else | |
12904 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12905 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12906 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12907 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12908 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12909 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12910 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12911 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12912 | if test "x$enable_gtktest" = "xyes" ; then | |
12913 | ac_save_CFLAGS="$CFLAGS" | |
12914 | ac_save_LIBS="$LIBS" | |
12915 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12916 | LIBS="$GTK_LIBS $LIBS" | |
12917 | rm -f conf.gtktest | |
12918 | if test "$cross_compiling" = yes; then | |
12919 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12920 | else | |
a0b9e27f | 12921 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 12922 | #line 12923 "configure" |
f79bd02d | 12923 | #include "confdefs.h" |
21d1c967 GD |
12924 | |
12925 | #include <gtk/gtk.h> | |
12926 | #include <stdio.h> | |
12927 | #include <stdlib.h> | |
12928 | ||
a0b9e27f | 12929 | int |
21d1c967 GD |
12930 | main () |
12931 | { | |
12932 | int major, minor, micro; | |
12933 | char *tmp_version; | |
12934 | ||
12935 | system ("touch conf.gtktest"); | |
12936 | ||
12937 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12938 | tmp_version = g_strdup("$min_gtk_version"); | |
12939 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12940 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12941 | exit(1); | |
12942 | } | |
12943 | ||
12944 | if ((gtk_major_version != $gtk_config_major_version) || | |
12945 | (gtk_minor_version != $gtk_config_minor_version) || | |
12946 | (gtk_micro_version != $gtk_config_micro_version)) | |
12947 | { | |
a0b9e27f | 12948 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12949 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12950 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12951 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12952 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12953 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12954 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12955 | printf("*** required on your system.\n"); | |
12956 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12957 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12958 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12959 | } |
21d1c967 GD |
12960 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12961 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12962 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12963 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12964 | { | |
12965 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12966 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12967 | printf("*** library (version %d.%d.%d)\n", | |
12968 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12969 | } | |
12970 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12971 | else | |
12972 | { | |
12973 | if ((gtk_major_version > major) || | |
12974 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12975 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12976 | { | |
12977 | return 0; | |
12978 | } | |
12979 | else | |
12980 | { | |
12981 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12982 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12983 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12984 | major, minor, micro); | |
12985 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12986 | printf("***\n"); | |
12987 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12988 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12989 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12990 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12991 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12992 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12993 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12994 | } | |
12995 | } | |
12996 | return 1; | |
12997 | } | |
12998 | ||
a0b9e27f | 12999 | EOF |
5d3f766d | 13000 | if { (eval echo configure:13001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 13001 | then |
21d1c967 GD |
13002 | : |
13003 | else | |
a0b9e27f MB |
13004 | echo "configure: failed program was:" >&5 |
13005 | cat conftest.$ac_ext >&5 | |
13006 | rm -fr conftest* | |
13007 | no_gtk=yes | |
21d1c967 | 13008 | fi |
a0b9e27f | 13009 | rm -fr conftest* |
21d1c967 | 13010 | fi |
a0b9e27f | 13011 | |
21d1c967 GD |
13012 | CFLAGS="$ac_save_CFLAGS" |
13013 | LIBS="$ac_save_LIBS" | |
13014 | fi | |
13015 | fi | |
13016 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
13017 | echo "$ac_t""yes" 1>&6 |
13018 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 13019 | else |
a0b9e27f | 13020 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13021 | if test "$GTK_CONFIG" = "no" ; then |
13022 | echo "*** The gtk-config script installed by GTK could not be found" | |
13023 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
13024 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
13025 | echo "*** full path to gtk-config." | |
13026 | else | |
13027 | if test -f conf.gtktest ; then | |
13028 | : | |
13029 | else | |
13030 | echo "*** Could not run GTK test program, checking why..." | |
13031 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13032 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 13033 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 13034 | #line 13035 "configure" |
21d1c967 GD |
13035 | #include "confdefs.h" |
13036 | ||
13037 | #include <gtk/gtk.h> | |
13038 | #include <stdio.h> | |
f79bd02d | 13039 | |
a0b9e27f MB |
13040 | int main() { |
13041 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
13042 | ; return 0; } | |
13043 | EOF | |
5d3f766d | 13044 | if { (eval echo configure:13045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13045 | rm -rf conftest* |
21d1c967 GD |
13046 | echo "*** The test program compiled, but did not run. This usually means" |
13047 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
13048 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
13049 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
13050 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
13051 | echo "*** is required on your system" | |
13052 | echo "***" | |
13053 | echo "*** If you have an old version installed, it is best to remove it, although" | |
13054 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
13055 | echo "***" | |
13056 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
13057 | echo "*** came with the system with the command" | |
13058 | echo "***" | |
a0b9e27f | 13059 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 13060 | else |
a0b9e27f MB |
13061 | echo "configure: failed program was:" >&5 |
13062 | cat conftest.$ac_ext >&5 | |
13063 | rm -rf conftest* | |
13064 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
13065 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
13066 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 13067 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 13068 | fi |
a0b9e27f | 13069 | rm -f conftest* |
21d1c967 GD |
13070 | CFLAGS="$ac_save_CFLAGS" |
13071 | LIBS="$ac_save_LIBS" | |
13072 | fi | |
13073 | fi | |
13074 | GTK_CFLAGS="" | |
13075 | GTK_LIBS="" | |
13076 | : | |
13077 | fi | |
a0b9e27f MB |
13078 | |
13079 | ||
21d1c967 | 13080 | rm -f conf.gtktest |
f79bd02d | 13081 | |
2b5f62a0 | 13082 | fi |
21d1c967 GD |
13083 | fi |
13084 | ||
13085 | if test -z "$wx_cv_lib_gtk"; then | |
13086 | wx_cv_lib_gtk=none | |
13087 | else | |
13088 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
13089 | wx_cv_libs_gtk=$GTK_LIBS | |
13090 | fi | |
a0b9e27f MB |
13091 | |
13092 | ||
5c6fa7d2 | 13093 | fi |
52127426 | 13094 | |
8284b0c5 | 13095 | |
21d1c967 | 13096 | if test "$gtk_version_cached" = 1; then |
a0b9e27f | 13097 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
13098 | fi |
13099 | ||
13100 | case "$wx_cv_lib_gtk" in | |
13101 | 2.0) WXGTK20=1 | |
2b5f62a0 | 13102 | TOOLKIT_VERSION=2 |
21d1c967 GD |
13103 | ;; |
13104 | 1.2.7) WXGTK127=1 | |
13105 | WXGTK12=1 | |
13106 | ;; | |
13107 | 1.2.3) WXGTK12=1 | |
13108 | ;; | |
a0b9e27f | 13109 | *) { echo "configure: error: |
247f5006 VZ |
13110 | Please check that gtk-config is in path, the directory |
13111 | where GTK+ libraries are installed (returned by | |
13112 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
13113 | equivalent variable and GTK+ is version 1.2.3 or above. | |
a0b9e27f | 13114 | " 1>&2; exit 1; } |
21d1c967 GD |
13115 | ;; |
13116 | esac | |
13117 | ||
b13cd66e VZ |
13118 | if test "$WXGTK20" = 1; then |
13119 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 13120 | |
f09359cf VS |
13121 | succeeded=no |
13122 | ||
13123 | if test -z "$PKG_CONFIG"; then | |
13124 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13125 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 13126 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5d3f766d | 13127 | echo "configure:13128: checking for $ac_word" >&5 |
a0b9e27f MB |
13128 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
13129 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf | 13130 | else |
a0b9e27f MB |
13131 | case "$PKG_CONFIG" in |
13132 | /*) | |
f09359cf VS |
13133 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
13134 | ;; | |
a0b9e27f MB |
13135 | ?:/*) |
13136 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
13137 | ;; | |
f09359cf | 13138 | *) |
a0b9e27f MB |
13139 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13140 | ac_dummy="$PATH" | |
13141 | for ac_dir in $ac_dummy; do | |
13142 | test -z "$ac_dir" && ac_dir=. | |
13143 | if test -f $ac_dir/$ac_word; then | |
13144 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
13145 | break | |
13146 | fi | |
13147 | done | |
13148 | IFS="$ac_save_ifs" | |
f09359cf VS |
13149 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
13150 | ;; | |
13151 | esac | |
13152 | fi | |
a0b9e27f | 13153 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
f09359cf | 13154 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 13155 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f09359cf | 13156 | else |
a0b9e27f | 13157 | echo "$ac_t""no" 1>&6 |
f09359cf VS |
13158 | fi |
13159 | ||
13160 | fi | |
13161 | ||
13162 | if test "$PKG_CONFIG" = "no" ; then | |
13163 | echo "*** The pkg-config script could not be found. Make sure it is" | |
13164 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
13165 | echo "*** to the full path to pkg-config." | |
13166 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
13167 | else | |
13168 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13169 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
a0b9e27f | 13170 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 |
5d3f766d | 13171 | echo "configure:13172: checking for pangoft2" >&5 |
f09359cf VS |
13172 | |
13173 | if $PKG_CONFIG --exists "pangoft2" ; then | |
a0b9e27f | 13174 | echo "$ac_t""yes" 1>&6 |
f09359cf VS |
13175 | succeeded=yes |
13176 | ||
a0b9e27f | 13177 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 |
5d3f766d | 13178 | echo "configure:13179: checking PANGOFT2_CFLAGS" >&5 |
f09359cf | 13179 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
a0b9e27f | 13180 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 |
f09359cf | 13181 | |
a0b9e27f | 13182 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 |
5d3f766d | 13183 | echo "configure:13184: checking PANGOFT2_LIBS" >&5 |
f09359cf | 13184 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
a0b9e27f | 13185 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 |
f09359cf VS |
13186 | else |
13187 | PANGOFT2_CFLAGS="" | |
13188 | PANGOFT2_LIBS="" | |
a0b9e27f | 13189 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
13190 | ## do set a variable so people can do so. |
13191 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
a0b9e27f | 13192 | |
f09359cf VS |
13193 | fi |
13194 | ||
a0b9e27f MB |
13195 | |
13196 | ||
f09359cf VS |
13197 | else |
13198 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13199 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13200 | fi | |
13201 | fi | |
13202 | ||
13203 | if test $succeeded = yes; then | |
a0b9e27f | 13204 | |
b13cd66e VZ |
13205 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
13206 | LIBS="$LIBS $PANGOFT2_LIBS" | |
a0b9e27f | 13207 | |
f09359cf | 13208 | else |
a0b9e27f MB |
13209 | |
13210 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
b13cd66e | 13211 | wxUSE_PRINTING_ARCHITECTURE="no" |
a0b9e27f MB |
13212 | |
13213 | ||
f09359cf VS |
13214 | fi |
13215 | ||
b13cd66e | 13216 | fi |
2b5f62a0 VZ |
13217 | else |
13218 | if test "$wxUSE_UNICODE" = "yes"; then | |
13219 | echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2 | |
13220 | wxUSE_UNICODE=no | |
13221 | fi | |
13222 | fi | |
13223 | ||
13224 | if test "$USE_DARWIN" != 1; then | |
13225 | for ac_func in poll | |
13226 | do | |
13227 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5d3f766d | 13228 | echo "configure:13229: checking for $ac_func" >&5 |
2b5f62a0 VZ |
13229 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13230 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13231 | else | |
13232 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 13233 | #line 13234 "configure" |
2b5f62a0 VZ |
13234 | #include "confdefs.h" |
13235 | /* System header to define __stub macros and hopefully few prototypes, | |
13236 | which can conflict with char $ac_func(); below. */ | |
13237 | #include <assert.h> | |
13238 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13239 | /* We use char because int might match the return type of a gcc2 | |
13240 | builtin and then its argument prototype would still apply. */ | |
13241 | char $ac_func(); | |
13242 | ||
13243 | int main() { | |
13244 | ||
13245 | /* The GNU C library defines this for functions which it implements | |
13246 | to always fail with ENOSYS. Some functions are actually named | |
13247 | something starting with __ and the normal name is an alias. */ | |
13248 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13249 | choke me | |
13250 | #else | |
13251 | $ac_func(); | |
13252 | #endif | |
13253 | ||
13254 | ; return 0; } | |
13255 | EOF | |
5d3f766d | 13256 | if { (eval echo configure:13257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
13257 | rm -rf conftest* |
13258 | eval "ac_cv_func_$ac_func=yes" | |
13259 | else | |
13260 | echo "configure: failed program was:" >&5 | |
13261 | cat conftest.$ac_ext >&5 | |
13262 | rm -rf conftest* | |
13263 | eval "ac_cv_func_$ac_func=no" | |
13264 | fi | |
13265 | rm -f conftest* | |
13266 | fi | |
13267 | ||
13268 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13269 | echo "$ac_t""yes" 1>&6 | |
13270 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13271 | cat >> confdefs.h <<EOF | |
13272 | #define $ac_tr_func 1 | |
13273 | EOF | |
13274 | ||
13275 | else | |
13276 | echo "$ac_t""no" 1>&6 | |
13277 | fi | |
13278 | done | |
13279 | ||
f09359cf VS |
13280 | fi |
13281 | ||
21d1c967 GD |
13282 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
13283 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
13284 | ||
13285 | AFMINSTALL=afminstall | |
13286 | TOOLKIT=GTK | |
13287 | GUIDIST=GTK_DIST | |
13288 | ||
a0b9e27f | 13289 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
5d3f766d | 13290 | echo "configure:13291: checking for gdk_im_open in -lgdk" >&5 |
a0b9e27f MB |
13291 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
13292 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13294 | else |
a0b9e27f | 13295 | ac_save_LIBS="$LIBS" |
21d1c967 | 13296 | LIBS="-lgdk $LIBS" |
a0b9e27f | 13297 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 13298 | #line 13299 "configure" |
90dd450c | 13299 | #include "confdefs.h" |
5c6fa7d2 | 13300 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 13301 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13302 | builtin and then its argument prototype would still apply. */ |
13303 | char gdk_im_open(); | |
13304 | ||
13305 | int main() { | |
13306 | gdk_im_open() | |
13307 | ; return 0; } | |
13308 | EOF | |
5d3f766d | 13309 | if { (eval echo configure:13310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13310 | rm -rf conftest* |
13311 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13312 | else | |
13313 | echo "configure: failed program was:" >&5 | |
13314 | cat conftest.$ac_ext >&5 | |
13315 | rm -rf conftest* | |
13316 | eval "ac_cv_lib_$ac_lib_var=no" | |
13317 | fi | |
13318 | rm -f conftest* | |
13319 | LIBS="$ac_save_LIBS" | |
13320 | ||
13321 | fi | |
13322 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13323 | echo "$ac_t""yes" 1>&6 | |
13324 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13325 | #define HAVE_XIM 1 |
a0b9e27f | 13326 | EOF |
21d1c967 | 13327 | |
a0b9e27f MB |
13328 | else |
13329 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13330 | fi |
1e6feb95 | 13331 | |
21d1c967 | 13332 | fi |
1e6feb95 | 13333 | |
21d1c967 | 13334 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 13335 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
5d3f766d | 13336 | echo "configure:13337: checking for SciTech MGL library" >&5 |
21d1c967 | 13337 | if test "x$MGL_ROOT" = x ; then |
a0b9e27f MB |
13338 | echo "$ac_t""not found" 1>&6 |
13339 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 13340 | else |
a0b9e27f | 13341 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
13342 | fi |
13343 | ||
13344 | case "${host}" in | |
13345 | *-*-linux* ) | |
2b5f62a0 | 13346 | mgl_os="linux/gcc/glibc*" |
21d1c967 GD |
13347 | ;; |
13348 | *-pc-msdosdjgpp ) | |
13349 | mgl_os=dos32/dj2 | |
13350 | ;; | |
13351 | *) | |
a0b9e27f | 13352 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 13353 | esac |
1e6feb95 | 13354 | |
21d1c967 | 13355 | mgl_lib_type="" |
3fcdd07b | 13356 | |
21d1c967 GD |
13357 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
13358 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
13359 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
13360 | mgl_lib_type=debug | |
13361 | fi | |
13362 | fi | |
13363 | if test "x$mgl_lib_type" = x ; then | |
13364 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
13365 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
13366 | mgl_lib_type=release | |
13367 | else | |
a0b9e27f | 13368 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } |
21d1c967 | 13369 | fi |
90dd450c | 13370 | fi |
2224580a | 13371 | |
1d1b75ac VZ |
13372 | wxUSE_UNIVERSAL="yes" |
13373 | ||
21d1c967 GD |
13374 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
13375 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
13376 | ||
90dd450c | 13377 | AFMINSTALL=afminstall |
21d1c967 GD |
13378 | TOOLKIT=MGL |
13379 | GUIDIST=MGL_DIST | |
13380 | fi | |
dad6c0ea | 13381 | |
21d1c967 | 13382 | if test "$wxUSE_MICROWIN" = 1; then |
a0b9e27f | 13383 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
5d3f766d | 13384 | echo "configure:13385: checking for MicroWindows" >&5 |
21d1c967 | 13385 | if test "x$MICROWINDOWS" = x ; then |
a0b9e27f MB |
13386 | echo "$ac_t""not found" 1>&6 |
13387 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 13388 | else |
a0b9e27f | 13389 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 13390 | fi |
f6bcfd97 | 13391 | |
21d1c967 | 13392 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
a0b9e27f | 13393 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 13394 | else |
a0b9e27f | 13395 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 13396 | fi |
0b2effe9 | 13397 | |
21d1c967 GD |
13398 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
13399 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
13400 | ||
1d1b75ac VZ |
13401 | wxUSE_UNIVERSAL="yes" |
13402 | ||
21d1c967 GD |
13403 | AFMINSTALL=afminstall |
13404 | TOOLKIT=MICROWIN | |
13405 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
13406 | |
13407 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 13408 | fi |
f6bcfd97 | 13409 | |
21d1c967 | 13410 | if test "$wxUSE_X11" = 1; then |
a0b9e27f MB |
13411 | # If we find X, set shell vars x_includes and x_libraries to the |
13412 | # paths, otherwise set no_x=yes. | |
13413 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
13414 | # --without-x overrides everything else, but does not touch the cache. | |
13415 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
5d3f766d | 13416 | echo "configure:13417: checking for X" >&5 |
d8356fa3 | 13417 | |
21d1c967 GD |
13418 | # Check whether --with-x or --without-x was given. |
13419 | if test "${with_x+set}" = set; then | |
13420 | withval="$with_x" | |
a0b9e27f MB |
13421 | : |
13422 | fi | |
2224580a | 13423 | |
21d1c967 GD |
13424 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
13425 | if test "x$with_x" = xno; then | |
13426 | # The user explicitly disabled X. | |
13427 | have_x=disabled | |
13428 | else | |
13429 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
13430 | # Both variables are already set. | |
13431 | have_x=yes | |
13432 | else | |
a0b9e27f MB |
13433 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
13434 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
13435 | else |
13436 | # One or both of the vars are not set, and there is no cached value. | |
a0b9e27f MB |
13437 | ac_x_includes=NO ac_x_libraries=NO |
13438 | rm -fr conftestdir | |
13439 | if mkdir conftestdir; then | |
13440 | cd conftestdir | |
21d1c967 | 13441 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
a0b9e27f | 13442 | cat > Imakefile <<'EOF' |
21d1c967 GD |
13443 | acfindx: |
13444 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
a0b9e27f | 13445 | EOF |
21d1c967 GD |
13446 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
13447 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13448 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
13449 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
13450 | for ac_extension in a so sl; do | |
13451 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
a0b9e27f | 13452 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
13453 | ac_im_usrlibdir=$ac_im_libdir; break |
13454 | fi | |
13455 | done | |
13456 | # Screen out bogus values from the imake configuration. They are | |
13457 | # bogus both because they are the default anyway, and because | |
13458 | # using them would break gcc on systems where it needs fixed includes. | |
a0b9e27f | 13459 | case "$ac_im_incroot" in |
21d1c967 | 13460 | /usr/include) ;; |
a0b9e27f | 13461 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 13462 | esac |
a0b9e27f | 13463 | case "$ac_im_usrlibdir" in |
21d1c967 | 13464 | /usr/lib | /lib) ;; |
a0b9e27f | 13465 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
13466 | esac |
13467 | fi | |
13468 | cd .. | |
a0b9e27f | 13469 | rm -fr conftestdir |
21d1c967 | 13470 | fi |
10f2d63a | 13471 | |
a0b9e27f MB |
13472 | if test "$ac_x_includes" = NO; then |
13473 | # Guess where to find include files, by looking for this one X11 .h file. | |
13474 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
13475 | ||
21d1c967 | 13476 | # First, try using that file with no special directory specified. |
a0b9e27f | 13477 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 13478 | #line 13479 "configure" |
21d1c967 | 13479 | #include "confdefs.h" |
a0b9e27f MB |
13480 | #include <$x_direct_test_include> |
13481 | EOF | |
13482 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5d3f766d | 13483 | { (eval echo configure:13484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
13484 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13485 | if test -z "$ac_err"; then | |
13486 | rm -rf conftest* | |
21d1c967 GD |
13487 | # We can compile using X headers with no special include directory. |
13488 | ac_x_includes= | |
90dd450c | 13489 | else |
a0b9e27f MB |
13490 | echo "$ac_err" >&5 |
13491 | echo "configure: failed program was:" >&5 | |
90dd450c | 13492 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
13493 | rm -rf conftest* |
13494 | # Look for the header file in a standard set of common directories. | |
13495 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13496 | for ac_dir in \ | |
13497 | /usr/X11/include \ | |
13498 | /usr/X11R6/include \ | |
13499 | /usr/X11R5/include \ | |
13500 | /usr/X11R4/include \ | |
13501 | \ | |
13502 | /usr/include/X11 \ | |
13503 | /usr/include/X11R6 \ | |
13504 | /usr/include/X11R5 \ | |
13505 | /usr/include/X11R4 \ | |
13506 | \ | |
13507 | /usr/local/X11/include \ | |
13508 | /usr/local/X11R6/include \ | |
13509 | /usr/local/X11R5/include \ | |
13510 | /usr/local/X11R4/include \ | |
13511 | \ | |
13512 | /usr/local/include/X11 \ | |
13513 | /usr/local/include/X11R6 \ | |
13514 | /usr/local/include/X11R5 \ | |
13515 | /usr/local/include/X11R4 \ | |
13516 | \ | |
13517 | /usr/X386/include \ | |
13518 | /usr/x386/include \ | |
13519 | /usr/XFree86/include/X11 \ | |
13520 | \ | |
13521 | /usr/include \ | |
13522 | /usr/local/include \ | |
13523 | /usr/unsupported/include \ | |
13524 | /usr/athena/include \ | |
13525 | /usr/local/x11r5/include \ | |
13526 | /usr/lpp/Xamples/include \ | |
13527 | \ | |
13528 | /usr/openwin/include \ | |
13529 | /usr/openwin/share/include \ | |
13530 | ; \ | |
13531 | do | |
13532 | if test -r "$ac_dir/$x_direct_test_include"; then | |
13533 | ac_x_includes=$ac_dir | |
13534 | break | |
13535 | fi | |
13536 | done | |
3a922bb4 | 13537 | fi |
a0b9e27f MB |
13538 | rm -f conftest* |
13539 | fi # $ac_x_includes = NO | |
10f2d63a | 13540 | |
a0b9e27f | 13541 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 13542 | # Check for the libraries. |
a0b9e27f MB |
13543 | |
13544 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
13545 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
13546 | ||
21d1c967 GD |
13547 | # See if we find them without any special options. |
13548 | # Don't add to $LIBS permanently. | |
a0b9e27f MB |
13549 | ac_save_LIBS="$LIBS" |
13550 | LIBS="-l$x_direct_test_library $LIBS" | |
13551 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 13552 | #line 13553 "configure" |
3a922bb4 | 13553 | #include "confdefs.h" |
a0b9e27f MB |
13554 | |
13555 | int main() { | |
13556 | ${x_direct_test_function}() | |
13557 | ; return 0; } | |
13558 | EOF | |
5d3f766d | 13559 | if { (eval echo configure:13560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13560 | rm -rf conftest* |
13561 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
13562 | # We can link X programs with no special library path. |
13563 | ac_x_libraries= | |
3a922bb4 | 13564 | else |
a0b9e27f MB |
13565 | echo "configure: failed program was:" >&5 |
13566 | cat conftest.$ac_ext >&5 | |
13567 | rm -rf conftest* | |
13568 | LIBS="$ac_save_LIBS" | |
13569 | # First see if replacing the include by lib works. | |
13570 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13571 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
13572 | /usr/X11/lib \ | |
13573 | /usr/X11R6/lib \ | |
13574 | /usr/X11R5/lib \ | |
13575 | /usr/X11R4/lib \ | |
13576 | \ | |
13577 | /usr/lib/X11 \ | |
13578 | /usr/lib/X11R6 \ | |
13579 | /usr/lib/X11R5 \ | |
13580 | /usr/lib/X11R4 \ | |
13581 | \ | |
13582 | /usr/local/X11/lib \ | |
13583 | /usr/local/X11R6/lib \ | |
13584 | /usr/local/X11R5/lib \ | |
13585 | /usr/local/X11R4/lib \ | |
13586 | \ | |
13587 | /usr/local/lib/X11 \ | |
13588 | /usr/local/lib/X11R6 \ | |
13589 | /usr/local/lib/X11R5 \ | |
13590 | /usr/local/lib/X11R4 \ | |
13591 | \ | |
13592 | /usr/X386/lib \ | |
13593 | /usr/x386/lib \ | |
13594 | /usr/XFree86/lib/X11 \ | |
13595 | \ | |
13596 | /usr/lib \ | |
13597 | /usr/local/lib \ | |
13598 | /usr/unsupported/lib \ | |
13599 | /usr/athena/lib \ | |
13600 | /usr/local/x11r5/lib \ | |
13601 | /usr/lpp/Xamples/lib \ | |
13602 | /lib/usr/lib/X11 \ | |
13603 | \ | |
13604 | /usr/openwin/lib \ | |
13605 | /usr/openwin/share/lib \ | |
13606 | ; \ | |
21d1c967 GD |
13607 | do |
13608 | for ac_extension in a so sl; do | |
a0b9e27f | 13609 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
13610 | ac_x_libraries=$ac_dir |
13611 | break 2 | |
13612 | fi | |
13613 | done | |
13614 | done | |
3a922bb4 | 13615 | fi |
a0b9e27f MB |
13616 | rm -f conftest* |
13617 | fi # $ac_x_libraries = NO | |
90dd450c | 13618 | |
a0b9e27f | 13619 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
13620 | # Didn't find X anywhere. Cache the known absence of X. |
13621 | ac_cv_have_x="have_x=no" | |
13622 | else | |
13623 | # Record where we found X for the cache. | |
13624 | ac_cv_have_x="have_x=yes \ | |
13625 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 13626 | fi |
21d1c967 GD |
13627 | fi |
13628 | fi | |
13629 | eval "$ac_cv_have_x" | |
13630 | fi # $with_x != no | |
90dd450c | 13631 | |
21d1c967 | 13632 | if test "$have_x" != yes; then |
a0b9e27f | 13633 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
13634 | no_x=yes |
13635 | else | |
13636 | # If each of the values was on the command line, it overrides each guess. | |
13637 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13638 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13639 | # Update the cache value to reflect the command line values. | |
13640 | ac_cv_have_x="have_x=yes \ | |
13641 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
a0b9e27f | 13642 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 13643 | fi |
90dd450c | 13644 | |
21d1c967 | 13645 | if test "$no_x" = yes; then |
90dd450c | 13646 | # Not all programs may use this symbol, but it does not hurt to define it. |
a0b9e27f | 13647 | cat >> confdefs.h <<\EOF |
90dd450c | 13648 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 13649 | EOF |
90dd450c VZ |
13650 | |
13651 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13652 | else | |
13653 | if test -n "$x_includes"; then | |
13654 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13655 | fi |
3a922bb4 | 13656 | |
90dd450c VZ |
13657 | # It would also be nice to do this for all -L options, not just this one. |
13658 | if test -n "$x_libraries"; then | |
13659 | X_LIBS="$X_LIBS -L$x_libraries" | |
13660 | # For Solaris; some versions of Sun CC require a space after -R and | |
13661 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 13662 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 13663 | "SunOS 5"*) |
a0b9e27f | 13664 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
5d3f766d | 13665 | echo "configure:13666: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
13666 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13667 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 13668 | #line 13669 "configure" |
90dd450c VZ |
13669 | #include "confdefs.h" |
13670 | ||
a0b9e27f | 13671 | int main() { |
90dd450c | 13672 | |
a0b9e27f MB |
13673 | ; return 0; } |
13674 | EOF | |
5d3f766d | 13675 | if { (eval echo configure:13676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13676 | rm -rf conftest* |
90dd450c | 13677 | ac_R_nospace=yes |
3a922bb4 | 13678 | else |
a0b9e27f MB |
13679 | echo "configure: failed program was:" >&5 |
13680 | cat conftest.$ac_ext >&5 | |
13681 | rm -rf conftest* | |
13682 | ac_R_nospace=no | |
3a922bb4 | 13683 | fi |
a0b9e27f | 13684 | rm -f conftest* |
90dd450c | 13685 | if test $ac_R_nospace = yes; then |
a0b9e27f | 13686 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
13687 | X_LIBS="$X_LIBS -R$x_libraries" |
13688 | else | |
13689 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 13690 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 13691 | #line 13692 "configure" |
90dd450c | 13692 | #include "confdefs.h" |
3a922bb4 | 13693 | |
a0b9e27f | 13694 | int main() { |
6f754473 | 13695 | |
a0b9e27f MB |
13696 | ; return 0; } |
13697 | EOF | |
5d3f766d | 13698 | if { (eval echo configure:13699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13699 | rm -rf conftest* |
90dd450c VZ |
13700 | ac_R_space=yes |
13701 | else | |
a0b9e27f MB |
13702 | echo "configure: failed program was:" >&5 |
13703 | cat conftest.$ac_ext >&5 | |
13704 | rm -rf conftest* | |
13705 | ac_R_space=no | |
90dd450c | 13706 | fi |
a0b9e27f | 13707 | rm -f conftest* |
90dd450c | 13708 | if test $ac_R_space = yes; then |
a0b9e27f | 13709 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13710 | X_LIBS="$X_LIBS -R $x_libraries" |
13711 | else | |
a0b9e27f | 13712 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13713 | fi |
13714 | fi | |
a0b9e27f | 13715 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13716 | esac |
13717 | fi | |
13718 | ||
13719 | # Check for system-dependent libraries X programs must link with. | |
13720 | # Do this before checking for the system-independent R6 libraries | |
13721 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13722 | |
90dd450c VZ |
13723 | if test "$ISC" = yes; then |
13724 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13725 | else | |
a0b9e27f MB |
13726 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13727 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13728 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 13729 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
5d3f766d | 13730 | echo "configure:13731: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
13731 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13732 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 13734 | else |
a0b9e27f | 13735 | ac_save_LIBS="$LIBS" |
247f5006 | 13736 | LIBS="-ldnet $LIBS" |
a0b9e27f | 13737 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 13738 | #line 13739 "configure" |
247f5006 | 13739 | #include "confdefs.h" |
247f5006 | 13740 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 13741 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13742 | builtin and then its argument prototype would still apply. */ |
13743 | char dnet_ntoa(); | |
13744 | ||
13745 | int main() { | |
13746 | dnet_ntoa() | |
13747 | ; return 0; } | |
13748 | EOF | |
5d3f766d | 13749 | if { (eval echo configure:13750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13750 | rm -rf conftest* |
13751 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13752 | else | |
13753 | echo "configure: failed program was:" >&5 | |
13754 | cat conftest.$ac_ext >&5 | |
13755 | rm -rf conftest* | |
13756 | eval "ac_cv_lib_$ac_lib_var=no" | |
13757 | fi | |
13758 | rm -f conftest* | |
13759 | LIBS="$ac_save_LIBS" | |
13760 | ||
13761 | fi | |
13762 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13763 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13764 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
13765 | else |
13766 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13767 | fi |
13768 | ||
90dd450c | 13769 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 13770 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
5d3f766d | 13771 | echo "configure:13772: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
13772 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13773 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13774 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13775 | else |
a0b9e27f | 13776 | ac_save_LIBS="$LIBS" |
90dd450c | 13777 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 13778 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 13779 | #line 13780 "configure" |
90dd450c VZ |
13780 | #include "confdefs.h" |
13781 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13782 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13783 | builtin and then its argument prototype would still apply. */ |
13784 | char dnet_ntoa(); | |
13785 | ||
13786 | int main() { | |
13787 | dnet_ntoa() | |
13788 | ; return 0; } | |
13789 | EOF | |
5d3f766d | 13790 | if { (eval echo configure:13791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13791 | rm -rf conftest* |
13792 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13793 | else | |
13794 | echo "configure: failed program was:" >&5 | |
13795 | cat conftest.$ac_ext >&5 | |
13796 | rm -rf conftest* | |
13797 | eval "ac_cv_lib_$ac_lib_var=no" | |
13798 | fi | |
13799 | rm -f conftest* | |
13800 | LIBS="$ac_save_LIBS" | |
13801 | ||
13802 | fi | |
13803 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13804 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13805 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
13806 | else |
13807 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13808 | fi |
13809 | ||
90dd450c | 13810 | fi |
978f1259 | 13811 | |
90dd450c VZ |
13812 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13813 | # to get the SysV transport functions. | |
a0b9e27f | 13814 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
13815 | # needs -lnsl. |
13816 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
13817 | # on Irix 5.2, according to dickey@clark.net. |
13818 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
5d3f766d | 13819 | echo "configure:13820: checking for gethostbyname" >&5 |
a0b9e27f MB |
13820 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13821 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13822 | else | |
13823 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 13824 | #line 13825 "configure" |
90dd450c VZ |
13825 | #include "confdefs.h" |
13826 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13827 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
13828 | #include <assert.h> |
13829 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13830 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13831 | builtin and then its argument prototype would still apply. */ |
13832 | char gethostbyname(); | |
13833 | ||
13834 | int main() { | |
13835 | ||
90dd450c VZ |
13836 | /* The GNU C library defines this for functions which it implements |
13837 | to always fail with ENOSYS. Some functions are actually named | |
13838 | something starting with __ and the normal name is an alias. */ | |
13839 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13840 | choke me | |
13841 | #else | |
a0b9e27f | 13842 | gethostbyname(); |
90dd450c | 13843 | #endif |
978f1259 | 13844 | |
a0b9e27f MB |
13845 | ; return 0; } |
13846 | EOF | |
5d3f766d | 13847 | if { (eval echo configure:13848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13848 | rm -rf conftest* |
13849 | eval "ac_cv_func_gethostbyname=yes" | |
13850 | else | |
13851 | echo "configure: failed program was:" >&5 | |
13852 | cat conftest.$ac_ext >&5 | |
13853 | rm -rf conftest* | |
13854 | eval "ac_cv_func_gethostbyname=no" | |
13855 | fi | |
13856 | rm -f conftest* | |
13857 | fi | |
13858 | ||
13859 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
13860 | echo "$ac_t""yes" 1>&6 | |
13861 | : | |
13862 | else | |
13863 | echo "$ac_t""no" 1>&6 | |
13864 | fi | |
698dcdb6 | 13865 | |
90dd450c | 13866 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 13867 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
5d3f766d | 13868 | echo "configure:13869: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
13869 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13870 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13872 | else |
a0b9e27f | 13873 | ac_save_LIBS="$LIBS" |
90dd450c | 13874 | LIBS="-lnsl $LIBS" |
a0b9e27f | 13875 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 13876 | #line 13877 "configure" |
90dd450c VZ |
13877 | #include "confdefs.h" |
13878 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13879 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13880 | builtin and then its argument prototype would still apply. */ |
13881 | char gethostbyname(); | |
5c6fa7d2 | 13882 | |
a0b9e27f MB |
13883 | int main() { |
13884 | gethostbyname() | |
13885 | ; return 0; } | |
13886 | EOF | |
5d3f766d | 13887 | if { (eval echo configure:13888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13888 | rm -rf conftest* |
13889 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 13890 | else |
a0b9e27f MB |
13891 | echo "configure: failed program was:" >&5 |
13892 | cat conftest.$ac_ext >&5 | |
13893 | rm -rf conftest* | |
13894 | eval "ac_cv_lib_$ac_lib_var=no" | |
13895 | fi | |
13896 | rm -f conftest* | |
13897 | LIBS="$ac_save_LIBS" | |
247f5006 | 13898 | |
a0b9e27f MB |
13899 | fi |
13900 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13901 | echo "$ac_t""yes" 1>&6 | |
13902 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13903 | else | |
13904 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13905 | fi |
b12915c1 | 13906 | |
90dd450c VZ |
13907 | fi |
13908 | ||
13909 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13910 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13911 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
13912 | # on later versions), says simon@lia.di.epfl.ch: it contains |
13913 | # gethostby* variants that don't use the nameserver (or something). | |
13914 | # -lsocket must be given before -lnsl if both are needed. | |
13915 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13916 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
5d3f766d | 13917 | echo "configure:13918: checking for connect" >&5 |
a0b9e27f MB |
13918 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
13919 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13920 | else | |
13921 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 13922 | #line 13923 "configure" |
55e80573 | 13923 | #include "confdefs.h" |
90dd450c | 13924 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 13925 | which can conflict with char connect(); below. */ |
90dd450c VZ |
13926 | #include <assert.h> |
13927 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13928 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13929 | builtin and then its argument prototype would still apply. */ |
13930 | char connect(); | |
13931 | ||
13932 | int main() { | |
13933 | ||
90dd450c VZ |
13934 | /* The GNU C library defines this for functions which it implements |
13935 | to always fail with ENOSYS. Some functions are actually named | |
13936 | something starting with __ and the normal name is an alias. */ | |
13937 | #if defined (__stub_connect) || defined (__stub___connect) | |
13938 | choke me | |
13939 | #else | |
a0b9e27f | 13940 | connect(); |
90dd450c VZ |
13941 | #endif |
13942 | ||
a0b9e27f MB |
13943 | ; return 0; } |
13944 | EOF | |
5d3f766d | 13945 | if { (eval echo configure:13946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13946 | rm -rf conftest* |
13947 | eval "ac_cv_func_connect=yes" | |
13948 | else | |
13949 | echo "configure: failed program was:" >&5 | |
13950 | cat conftest.$ac_ext >&5 | |
13951 | rm -rf conftest* | |
13952 | eval "ac_cv_func_connect=no" | |
13953 | fi | |
13954 | rm -f conftest* | |
13955 | fi | |
13956 | ||
13957 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
13958 | echo "$ac_t""yes" 1>&6 | |
13959 | : | |
13960 | else | |
13961 | echo "$ac_t""no" 1>&6 | |
13962 | fi | |
55e80573 | 13963 | |
90dd450c | 13964 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 13965 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
5d3f766d | 13966 | echo "configure:13967: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
13967 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
13968 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13969 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13970 | else |
a0b9e27f | 13971 | ac_save_LIBS="$LIBS" |
90dd450c | 13972 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 13973 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 13974 | #line 13975 "configure" |
90dd450c VZ |
13975 | #include "confdefs.h" |
13976 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13977 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13978 | builtin and then its argument prototype would still apply. */ |
13979 | char connect(); | |
13980 | ||
13981 | int main() { | |
13982 | connect() | |
13983 | ; return 0; } | |
13984 | EOF | |
5d3f766d | 13985 | if { (eval echo configure:13986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13986 | rm -rf conftest* |
13987 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13988 | else | |
13989 | echo "configure: failed program was:" >&5 | |
13990 | cat conftest.$ac_ext >&5 | |
13991 | rm -rf conftest* | |
13992 | eval "ac_cv_lib_$ac_lib_var=no" | |
13993 | fi | |
13994 | rm -f conftest* | |
13995 | LIBS="$ac_save_LIBS" | |
13996 | ||
13997 | fi | |
13998 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13999 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14000 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
14001 | else |
14002 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14003 | fi |
77e13408 | 14004 | |
90dd450c | 14005 | fi |
25d0687a | 14006 | |
a0b9e27f MB |
14007 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14008 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
5d3f766d | 14009 | echo "configure:14010: checking for remove" >&5 |
a0b9e27f MB |
14010 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14012 | else |
a0b9e27f | 14013 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 14014 | #line 14015 "configure" |
90dd450c VZ |
14015 | #include "confdefs.h" |
14016 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14017 | which can conflict with char remove(); below. */ |
90dd450c VZ |
14018 | #include <assert.h> |
14019 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14020 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14021 | builtin and then its argument prototype would still apply. */ |
14022 | char remove(); | |
14023 | ||
14024 | int main() { | |
14025 | ||
90dd450c VZ |
14026 | /* The GNU C library defines this for functions which it implements |
14027 | to always fail with ENOSYS. Some functions are actually named | |
14028 | something starting with __ and the normal name is an alias. */ | |
14029 | #if defined (__stub_remove) || defined (__stub___remove) | |
14030 | choke me | |
14031 | #else | |
a0b9e27f | 14032 | remove(); |
90dd450c | 14033 | #endif |
55e80573 | 14034 | |
a0b9e27f MB |
14035 | ; return 0; } |
14036 | EOF | |
5d3f766d | 14037 | if { (eval echo configure:14038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14038 | rm -rf conftest* |
14039 | eval "ac_cv_func_remove=yes" | |
14040 | else | |
14041 | echo "configure: failed program was:" >&5 | |
14042 | cat conftest.$ac_ext >&5 | |
14043 | rm -rf conftest* | |
14044 | eval "ac_cv_func_remove=no" | |
14045 | fi | |
14046 | rm -f conftest* | |
14047 | fi | |
14048 | ||
14049 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14050 | echo "$ac_t""yes" 1>&6 | |
14051 | : | |
14052 | else | |
14053 | echo "$ac_t""no" 1>&6 | |
14054 | fi | |
10f2d63a | 14055 | |
90dd450c | 14056 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 14057 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
5d3f766d | 14058 | echo "configure:14059: checking for remove in -lposix" >&5 |
a0b9e27f MB |
14059 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14060 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14061 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14062 | else |
a0b9e27f | 14063 | ac_save_LIBS="$LIBS" |
90dd450c | 14064 | LIBS="-lposix $LIBS" |
a0b9e27f | 14065 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 14066 | #line 14067 "configure" |
90dd450c VZ |
14067 | #include "confdefs.h" |
14068 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14069 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14070 | builtin and then its argument prototype would still apply. */ |
14071 | char remove(); | |
14072 | ||
14073 | int main() { | |
14074 | remove() | |
14075 | ; return 0; } | |
14076 | EOF | |
5d3f766d | 14077 | if { (eval echo configure:14078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14078 | rm -rf conftest* |
14079 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14080 | else | |
14081 | echo "configure: failed program was:" >&5 | |
14082 | cat conftest.$ac_ext >&5 | |
14083 | rm -rf conftest* | |
14084 | eval "ac_cv_lib_$ac_lib_var=no" | |
14085 | fi | |
14086 | rm -f conftest* | |
14087 | LIBS="$ac_save_LIBS" | |
14088 | ||
14089 | fi | |
14090 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14091 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14092 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
14093 | else |
14094 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14095 | fi |
f6bcfd97 | 14096 | |
6fa882bd RR |
14097 | fi |
14098 | ||
90dd450c | 14099 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 14100 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
5d3f766d | 14101 | echo "configure:14102: checking for shmat" >&5 |
a0b9e27f MB |
14102 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14103 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14104 | else |
a0b9e27f | 14105 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 14106 | #line 14107 "configure" |
90dd450c VZ |
14107 | #include "confdefs.h" |
14108 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14109 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
14110 | #include <assert.h> |
14111 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14112 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14113 | builtin and then its argument prototype would still apply. */ |
14114 | char shmat(); | |
14115 | ||
14116 | int main() { | |
14117 | ||
90dd450c VZ |
14118 | /* The GNU C library defines this for functions which it implements |
14119 | to always fail with ENOSYS. Some functions are actually named | |
14120 | something starting with __ and the normal name is an alias. */ | |
14121 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14122 | choke me | |
14123 | #else | |
a0b9e27f | 14124 | shmat(); |
90dd450c | 14125 | #endif |
10f2d63a | 14126 | |
a0b9e27f MB |
14127 | ; return 0; } |
14128 | EOF | |
5d3f766d | 14129 | if { (eval echo configure:14130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14130 | rm -rf conftest* |
14131 | eval "ac_cv_func_shmat=yes" | |
14132 | else | |
14133 | echo "configure: failed program was:" >&5 | |
14134 | cat conftest.$ac_ext >&5 | |
14135 | rm -rf conftest* | |
14136 | eval "ac_cv_func_shmat=no" | |
14137 | fi | |
14138 | rm -f conftest* | |
14139 | fi | |
14140 | ||
14141 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14142 | echo "$ac_t""yes" 1>&6 | |
14143 | : | |
14144 | else | |
14145 | echo "$ac_t""no" 1>&6 | |
14146 | fi | |
d08b457b | 14147 | |
90dd450c | 14148 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 14149 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
5d3f766d | 14150 | echo "configure:14151: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
14151 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14152 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14153 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 14154 | else |
a0b9e27f | 14155 | ac_save_LIBS="$LIBS" |
90dd450c | 14156 | LIBS="-lipc $LIBS" |
a0b9e27f | 14157 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 14158 | #line 14159 "configure" |
90dd450c | 14159 | #include "confdefs.h" |
8284b0c5 | 14160 | /* Override any gcc2 internal prototype to avoid an error. */ |
90dd450c | 14161 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14162 | builtin and then its argument prototype would still apply. */ |
14163 | char shmat(); | |
14164 | ||
14165 | int main() { | |
14166 | shmat() | |
14167 | ; return 0; } | |
14168 | EOF | |
5d3f766d | 14169 | if { (eval echo configure:14170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14170 | rm -rf conftest* |
14171 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14172 | else | |
14173 | echo "configure: failed program was:" >&5 | |
14174 | cat conftest.$ac_ext >&5 | |
14175 | rm -rf conftest* | |
14176 | eval "ac_cv_lib_$ac_lib_var=no" | |
14177 | fi | |
14178 | rm -f conftest* | |
14179 | LIBS="$ac_save_LIBS" | |
14180 | ||
14181 | fi | |
14182 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14183 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14184 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
14185 | else |
14186 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
14187 | fi |
14188 | ||
d558c907 | 14189 | fi |
90dd450c | 14190 | fi |
3a922bb4 | 14191 | |
90dd450c | 14192 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 14193 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
14194 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14195 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14196 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14197 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14198 | # These have to be linked with before -lX11, unlike the other | |
14199 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
14200 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14201 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
5d3f766d | 14202 | echo "configure:14203: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
14203 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14204 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14205 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14206 | else | |
14207 | ac_save_LIBS="$LIBS" | |
f09359cf | 14208 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14209 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 14210 | #line 14211 "configure" |
9cfadba2 | 14211 | #include "confdefs.h" |
90dd450c VZ |
14212 | /* Override any gcc2 internal prototype to avoid an error. */ |
14213 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14214 | builtin and then its argument prototype would still apply. */ |
14215 | char IceConnectionNumber(); | |
14216 | ||
14217 | int main() { | |
14218 | IceConnectionNumber() | |
14219 | ; return 0; } | |
14220 | EOF | |
5d3f766d | 14221 | if { (eval echo configure:14222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14222 | rm -rf conftest* |
14223 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14224 | else | |
14225 | echo "configure: failed program was:" >&5 | |
14226 | cat conftest.$ac_ext >&5 | |
14227 | rm -rf conftest* | |
14228 | eval "ac_cv_lib_$ac_lib_var=no" | |
14229 | fi | |
14230 | rm -f conftest* | |
14231 | LIBS="$ac_save_LIBS" | |
14232 | ||
14233 | fi | |
14234 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14235 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14236 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
14237 | else |
14238 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 14239 | fi |
10f2d63a | 14240 | |
a0b9e27f | 14241 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
14242 | |
14243 | fi | |
14244 | ||
8284b0c5 | 14245 | |
90dd450c | 14246 | if test "$no_x" = "yes"; then |
a0b9e27f | 14247 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
14248 | fi |
14249 | ||
14250 | GUI_TK_LIBRARY="$X_LIBS" | |
14251 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14252 | AFMINSTALL=afminstall | |
14253 | COMPILED_X_PROGRAM=0 | |
14254 | ||
21d1c967 | 14255 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 14256 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
5d3f766d | 14257 | echo "configure:14258: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 | 14258 | if test "x$MICROWIN" = x ; then |
a0b9e27f MB |
14259 | echo "$ac_t""not found" 1>&6 |
14260 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 14261 | else |
a0b9e27f MB |
14262 | echo "$ac_t""$MICROWIN" 1>&6 |
14263 | cat >> confdefs.h <<\EOF | |
21d1c967 | 14264 | #define wxUSE_NANOX 1 |
a0b9e27f | 14265 | EOF |
21d1c967 | 14266 | |
90dd450c VZ |
14267 | fi |
14268 | fi | |
14269 | ||
14270 | xpm_link= | |
a0b9e27f | 14271 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
5d3f766d | 14272 | echo "configure:14273: checking for Xpm library" >&5 |
a0b9e27f | 14273 | |
90dd450c | 14274 | ac_find_libraries= |
2b5f62a0 | 14275 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
14276 | do |
14277 | for ac_extension in a so sl dylib; do | |
14278 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14279 | ac_find_libraries=$ac_dir | |
14280 | break 2 | |
14281 | fi | |
14282 | done | |
14283 | done | |
14284 | ||
14285 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14286 | |
90dd450c VZ |
14287 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14288 | result=$? | |
14289 | if test $result = 0; then | |
14290 | ac_path_to_link="" | |
14291 | else | |
14292 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 14293 | fi |
90dd450c | 14294 | |
21d1c967 GD |
14295 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
14296 | xpm_link=" -lXpm" | |
a0b9e27f | 14297 | cat >> confdefs.h <<\EOF |
21d1c967 | 14298 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14299 | EOF |
90dd450c | 14300 | |
a0b9e27f | 14301 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14302 | else |
a0b9e27f | 14303 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 14304 | #line 14305 "configure" |
21d1c967 | 14305 | #include "confdefs.h" |
90dd450c | 14306 | |
21d1c967 | 14307 | #include <X11/xpm.h> |
a0b9e27f MB |
14308 | |
14309 | int main() { | |
6f72b082 | 14310 | |
21d1c967 GD |
14311 | int version; |
14312 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
14313 | |
14314 | ; return 0; } | |
14315 | EOF | |
5d3f766d | 14316 | if { (eval echo configure:14317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14317 | rm -rf conftest* |
14318 | ||
21d1c967 | 14319 | xpm_link=" -lXpm" |
a0b9e27f | 14320 | cat >> confdefs.h <<\EOF |
21d1c967 | 14321 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14322 | EOF |
90dd450c | 14323 | |
a0b9e27f | 14324 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14325 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 14326 | |
21d1c967 | 14327 | else |
a0b9e27f MB |
14328 | echo "configure: failed program was:" >&5 |
14329 | cat conftest.$ac_ext >&5 | |
14330 | rm -rf conftest* | |
14331 | ||
14332 | echo "$ac_t""no" 1>&6 | |
14333 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14334 | ||
14335 | ||
6f72b082 | 14336 | fi |
a0b9e27f | 14337 | rm -f conftest* |
21d1c967 | 14338 | fi |
90dd450c | 14339 | |
2b5f62a0 VZ |
14340 | if test "$wxUSE_UNICODE" = "yes"; then |
14341 | ||
14342 | succeeded=no | |
90dd450c | 14343 | |
2b5f62a0 VZ |
14344 | if test -z "$PKG_CONFIG"; then |
14345 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14346 | set dummy pkg-config; ac_word=$2 | |
14347 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5d3f766d | 14348 | echo "configure:14349: checking for $ac_word" >&5 |
2b5f62a0 | 14349 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
a0b9e27f MB |
14350 | echo $ac_n "(cached) $ac_c" 1>&6 |
14351 | else | |
2b5f62a0 VZ |
14352 | case "$PKG_CONFIG" in |
14353 | /*) | |
14354 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14355 | ;; | |
14356 | ?:/*) | |
14357 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14358 | ;; | |
14359 | *) | |
14360 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14361 | ac_dummy="$PATH" | |
14362 | for ac_dir in $ac_dummy; do | |
14363 | test -z "$ac_dir" && ac_dir=. | |
14364 | if test -f $ac_dir/$ac_word; then | |
14365 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14366 | break | |
14367 | fi | |
14368 | done | |
14369 | IFS="$ac_save_ifs" | |
14370 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14371 | ;; | |
14372 | esac | |
14373 | fi | |
14374 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14375 | if test -n "$PKG_CONFIG"; then | |
14376 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14377 | else | |
14378 | echo "$ac_t""no" 1>&6 | |
14379 | fi | |
14380 | ||
14381 | fi | |
14382 | ||
14383 | if test "$PKG_CONFIG" = "no" ; then | |
14384 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14385 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14386 | echo "*** to the full path to pkg-config." | |
14387 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14388 | else | |
14389 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14390 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14391 | echo $ac_n "checking for pangox""... $ac_c" 1>&6 | |
5d3f766d | 14392 | echo "configure:14393: checking for pangox" >&5 |
2b5f62a0 VZ |
14393 | |
14394 | if $PKG_CONFIG --exists "pangox" ; then | |
14395 | echo "$ac_t""yes" 1>&6 | |
14396 | succeeded=yes | |
14397 | ||
14398 | echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6 | |
5d3f766d | 14399 | echo "configure:14400: checking PANGOX_CFLAGS" >&5 |
2b5f62a0 VZ |
14400 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
14401 | echo "$ac_t""$PANGOX_CFLAGS" 1>&6 | |
14402 | ||
14403 | echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6 | |
5d3f766d | 14404 | echo "configure:14405: checking PANGOX_LIBS" >&5 |
2b5f62a0 VZ |
14405 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
14406 | echo "$ac_t""$PANGOX_LIBS" 1>&6 | |
14407 | else | |
14408 | PANGOX_CFLAGS="" | |
14409 | PANGOX_LIBS="" | |
14410 | ## If we have a custom action on failure, don't print errors, but | |
14411 | ## do set a variable so people can do so. | |
14412 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
14413 | ||
14414 | fi | |
14415 | ||
14416 | ||
14417 | ||
14418 | else | |
14419 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14420 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14421 | fi | |
14422 | fi | |
14423 | ||
14424 | if test $succeeded = yes; then | |
14425 | ||
14426 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
14427 | LIBS="$LIBS $PANGOX_LIBS" | |
14428 | ||
14429 | else | |
14430 | ||
14431 | { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; } | |
14432 | ||
14433 | ||
14434 | fi | |
14435 | ||
14436 | ||
14437 | succeeded=no | |
14438 | ||
14439 | if test -z "$PKG_CONFIG"; then | |
14440 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14441 | set dummy pkg-config; ac_word=$2 | |
14442 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5d3f766d | 14443 | echo "configure:14444: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14444 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14445 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14446 | else | |
14447 | case "$PKG_CONFIG" in | |
14448 | /*) | |
14449 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14450 | ;; | |
14451 | ?:/*) | |
14452 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14453 | ;; | |
14454 | *) | |
14455 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14456 | ac_dummy="$PATH" | |
14457 | for ac_dir in $ac_dummy; do | |
14458 | test -z "$ac_dir" && ac_dir=. | |
14459 | if test -f $ac_dir/$ac_word; then | |
14460 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14461 | break | |
14462 | fi | |
14463 | done | |
14464 | IFS="$ac_save_ifs" | |
14465 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14466 | ;; | |
14467 | esac | |
14468 | fi | |
14469 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14470 | if test -n "$PKG_CONFIG"; then | |
14471 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14472 | else | |
14473 | echo "$ac_t""no" 1>&6 | |
14474 | fi | |
14475 | ||
14476 | fi | |
14477 | ||
14478 | if test "$PKG_CONFIG" = "no" ; then | |
14479 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14480 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14481 | echo "*** to the full path to pkg-config." | |
14482 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14483 | else | |
14484 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14485 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14486 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 | |
5d3f766d | 14487 | echo "configure:14488: checking for pangoft2" >&5 |
2b5f62a0 VZ |
14488 | |
14489 | if $PKG_CONFIG --exists "pangoft2" ; then | |
14490 | echo "$ac_t""yes" 1>&6 | |
14491 | succeeded=yes | |
14492 | ||
14493 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 | |
5d3f766d | 14494 | echo "configure:14495: checking PANGOFT2_CFLAGS" >&5 |
2b5f62a0 VZ |
14495 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
14496 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 | |
14497 | ||
14498 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 | |
5d3f766d | 14499 | echo "configure:14500: checking PANGOFT2_LIBS" >&5 |
2b5f62a0 VZ |
14500 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
14501 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 | |
14502 | else | |
14503 | PANGOFT2_CFLAGS="" | |
14504 | PANGOFT2_LIBS="" | |
14505 | ## If we have a custom action on failure, don't print errors, but | |
14506 | ## do set a variable so people can do so. | |
14507 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
14508 | ||
14509 | fi | |
14510 | ||
14511 | ||
14512 | ||
14513 | else | |
14514 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14515 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14516 | fi | |
14517 | fi | |
14518 | ||
14519 | if test $succeeded = yes; then | |
14520 | ||
14521 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
14522 | LIBS="$LIBS $PANGOFT2_LIBS" | |
14523 | ||
14524 | else | |
14525 | ||
14526 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
14527 | wxUSE_PRINTING_ARCHITECTURE="no" | |
14528 | ||
14529 | ||
14530 | fi | |
14531 | ||
14532 | ||
14533 | succeeded=no | |
14534 | ||
14535 | if test -z "$PKG_CONFIG"; then | |
14536 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14537 | set dummy pkg-config; ac_word=$2 | |
14538 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5d3f766d | 14539 | echo "configure:14540: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14540 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14541 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14542 | else | |
14543 | case "$PKG_CONFIG" in | |
14544 | /*) | |
14545 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14546 | ;; | |
14547 | ?:/*) | |
14548 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14549 | ;; | |
14550 | *) | |
14551 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14552 | ac_dummy="$PATH" | |
14553 | for ac_dir in $ac_dummy; do | |
14554 | test -z "$ac_dir" && ac_dir=. | |
14555 | if test -f $ac_dir/$ac_word; then | |
14556 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14557 | break | |
14558 | fi | |
14559 | done | |
14560 | IFS="$ac_save_ifs" | |
14561 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14562 | ;; | |
14563 | esac | |
14564 | fi | |
14565 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14566 | if test -n "$PKG_CONFIG"; then | |
14567 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14568 | else | |
14569 | echo "$ac_t""no" 1>&6 | |
14570 | fi | |
14571 | ||
14572 | fi | |
14573 | ||
14574 | if test "$PKG_CONFIG" = "no" ; then | |
14575 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14576 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14577 | echo "*** to the full path to pkg-config." | |
14578 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14579 | else | |
14580 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14581 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14582 | echo $ac_n "checking for pangoxft""... $ac_c" 1>&6 | |
5d3f766d | 14583 | echo "configure:14584: checking for pangoxft" >&5 |
2b5f62a0 VZ |
14584 | |
14585 | if $PKG_CONFIG --exists "pangoxft" ; then | |
14586 | echo "$ac_t""yes" 1>&6 | |
14587 | succeeded=yes | |
14588 | ||
14589 | echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6 | |
5d3f766d | 14590 | echo "configure:14591: checking PANGOXFT_CFLAGS" >&5 |
2b5f62a0 VZ |
14591 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
14592 | echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6 | |
14593 | ||
14594 | echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6 | |
5d3f766d | 14595 | echo "configure:14596: checking PANGOXFT_LIBS" >&5 |
2b5f62a0 VZ |
14596 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
14597 | echo "$ac_t""$PANGOXFT_LIBS" 1>&6 | |
14598 | else | |
14599 | PANGOXFT_CFLAGS="" | |
14600 | PANGOXFT_LIBS="" | |
14601 | ## If we have a custom action on failure, don't print errors, but | |
14602 | ## do set a variable so people can do so. | |
14603 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
14604 | ||
14605 | fi | |
14606 | ||
14607 | ||
14608 | ||
14609 | else | |
14610 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14611 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14612 | fi | |
14613 | fi | |
14614 | ||
14615 | if test $succeeded = yes; then | |
14616 | ||
14617 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
14618 | LIBS="$LIBS $PANGOXFT_LIBS" | |
14619 | ||
14620 | else | |
14621 | ||
14622 | echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2 | |
14623 | ||
14624 | ||
14625 | fi | |
14626 | ||
14627 | fi | |
14628 | ||
14629 | wxUSE_UNIVERSAL="yes" | |
14630 | ||
14631 | if test "$wxUSE_NANOX" = "yes"; then | |
14632 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
14633 | 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" | |
14634 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
14635 | else | |
14636 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
14637 | fi | |
14638 | ||
14639 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
14640 | TOOLKIT=X11 | |
14641 | GUIDIST=X11_DIST | |
14642 | fi | |
14643 | ||
14644 | if test "$wxUSE_WINE" = 1; then | |
14645 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
14646 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
5d3f766d | 14647 | echo "configure:14648: checking for windows.h" >&5 |
2b5f62a0 VZ |
14648 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14649 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14650 | else | |
14651 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 14652 | #line 14653 "configure" |
2b5f62a0 VZ |
14653 | #include "confdefs.h" |
14654 | #include <windows.h> | |
14655 | EOF | |
14656 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5d3f766d | 14657 | { (eval echo configure:14658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2b5f62a0 VZ |
14658 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14659 | if test -z "$ac_err"; then | |
14660 | rm -rf conftest* | |
14661 | eval "ac_cv_header_$ac_safe=yes" | |
14662 | else | |
14663 | echo "$ac_err" >&5 | |
14664 | echo "configure: failed program was:" >&5 | |
14665 | cat conftest.$ac_ext >&5 | |
14666 | rm -rf conftest* | |
14667 | eval "ac_cv_header_$ac_safe=no" | |
14668 | fi | |
14669 | rm -f conftest* | |
10f2d63a | 14670 | fi |
a0b9e27f MB |
14671 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14672 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
14673 | : |
14674 | else | |
a0b9e27f | 14675 | echo "$ac_t""no" 1>&6 |
21d1c967 | 14676 | |
a0b9e27f MB |
14677 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
14678 | ||
5c6fa7d2 | 14679 | fi |
7b4a847f | 14680 | |
5c6fa7d2 | 14681 | |
8284b0c5 | 14682 | xpm_link= |
a0b9e27f | 14683 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
5d3f766d | 14684 | echo "configure:14685: checking for Xpm library" >&5 |
a0b9e27f | 14685 | |
90dd450c | 14686 | ac_find_libraries= |
2b5f62a0 | 14687 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
14688 | do |
14689 | for ac_extension in a so sl dylib; do | |
21d1c967 | 14690 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
90dd450c VZ |
14691 | ac_find_libraries=$ac_dir |
14692 | break 2 | |
14693 | fi | |
14694 | done | |
14695 | done | |
14696 | ||
21d1c967 GD |
14697 | if test "$ac_find_libraries" != "" ; then |
14698 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
14699 | xpm_link=" -lXpm" | |
a0b9e27f | 14700 | cat >> confdefs.h <<\EOF |
21d1c967 | 14701 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14702 | EOF |
90dd450c | 14703 | |
a0b9e27f | 14704 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14705 | else |
a0b9e27f MB |
14706 | echo "$ac_t""no" 1>&6 |
14707 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
21d1c967 GD |
14708 | fi |
14709 | ||
14710 | mesa_link= | |
a0b9e27f | 14711 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
5d3f766d | 14712 | echo "configure:14713: checking for Mesa library" >&5 |
a0b9e27f | 14713 | |
90dd450c | 14714 | ac_find_libraries= |
2b5f62a0 | 14715 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
14716 | do |
14717 | for ac_extension in a so sl dylib; do | |
14718 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
14719 | ac_find_libraries=$ac_dir | |
14720 | break 2 | |
14721 | fi | |
14722 | done | |
14723 | done | |
14724 | ||
21d1c967 GD |
14725 | if test "$ac_find_libraries" != "" ; then |
14726 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
14727 | mesa_link=" -lMesaGL" | |
a0b9e27f | 14728 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14729 | else |
3bce6687 JS |
14730 | mesa_link="" |
14731 | echo "$ac_t""no" 1>&6 | |
14732 | echo "configure: warning: library will be compiled without Mesa support" 1>&2 | |
21d1c967 GD |
14733 | fi |
14734 | ||
14735 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
14736 | TOOLKIT=MSW | |
14737 | GUIDIST=MSW_DIST | |
14738 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
14739 | fi | |
14740 | ||
14741 | if test "$wxUSE_MOTIF" = 1; then | |
14742 | if test "$no_x" = yes; then | |
14743 | # Not all programs may use this symbol, but it does not hurt to define it. | |
a0b9e27f | 14744 | cat >> confdefs.h <<\EOF |
21d1c967 | 14745 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 14746 | EOF |
21d1c967 GD |
14747 | |
14748 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
14749 | else | |
14750 | if test -n "$x_includes"; then | |
14751 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
14752 | fi |
14753 | ||
21d1c967 GD |
14754 | # It would also be nice to do this for all -L options, not just this one. |
14755 | if test -n "$x_libraries"; then | |
14756 | X_LIBS="$X_LIBS -L$x_libraries" | |
14757 | # For Solaris; some versions of Sun CC require a space after -R and | |
14758 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 14759 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 14760 | "SunOS 5"*) |
a0b9e27f | 14761 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
5d3f766d | 14762 | echo "configure:14763: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
14763 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
14764 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 14765 | #line 14766 "configure" |
21d1c967 GD |
14766 | #include "confdefs.h" |
14767 | ||
a0b9e27f | 14768 | int main() { |
21d1c967 | 14769 | |
a0b9e27f MB |
14770 | ; return 0; } |
14771 | EOF | |
5d3f766d | 14772 | if { (eval echo configure:14773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14773 | rm -rf conftest* |
21d1c967 | 14774 | ac_R_nospace=yes |
698dcdb6 | 14775 | else |
a0b9e27f MB |
14776 | echo "configure: failed program was:" >&5 |
14777 | cat conftest.$ac_ext >&5 | |
14778 | rm -rf conftest* | |
14779 | ac_R_nospace=no | |
10f2d63a | 14780 | fi |
a0b9e27f | 14781 | rm -f conftest* |
21d1c967 | 14782 | if test $ac_R_nospace = yes; then |
a0b9e27f | 14783 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14784 | X_LIBS="$X_LIBS -R$x_libraries" |
14785 | else | |
14786 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 14787 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 14788 | #line 14789 "configure" |
21d1c967 | 14789 | #include "confdefs.h" |
10f2d63a | 14790 | |
a0b9e27f | 14791 | int main() { |
f0c87536 | 14792 | |
a0b9e27f MB |
14793 | ; return 0; } |
14794 | EOF | |
5d3f766d | 14795 | if { (eval echo configure:14796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14796 | rm -rf conftest* |
21d1c967 GD |
14797 | ac_R_space=yes |
14798 | else | |
a0b9e27f MB |
14799 | echo "configure: failed program was:" >&5 |
14800 | cat conftest.$ac_ext >&5 | |
14801 | rm -rf conftest* | |
14802 | ac_R_space=no | |
21d1c967 | 14803 | fi |
a0b9e27f | 14804 | rm -f conftest* |
21d1c967 | 14805 | if test $ac_R_space = yes; then |
a0b9e27f | 14806 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
14807 | X_LIBS="$X_LIBS -R $x_libraries" |
14808 | else | |
a0b9e27f | 14809 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
14810 | fi |
14811 | fi | |
a0b9e27f | 14812 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
14813 | esac |
14814 | fi | |
90dd450c | 14815 | |
21d1c967 GD |
14816 | # Check for system-dependent libraries X programs must link with. |
14817 | # Do this before checking for the system-independent R6 libraries | |
14818 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
14819 | ||
14820 | if test "$ISC" = yes; then | |
14821 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
14822 | else | |
a0b9e27f MB |
14823 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
14824 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 14825 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 14826 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
5d3f766d | 14827 | echo "configure:14828: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
14828 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14829 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14830 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 14831 | else |
a0b9e27f | 14832 | ac_save_LIBS="$LIBS" |
247f5006 | 14833 | LIBS="-ldnet $LIBS" |
a0b9e27f | 14834 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 14835 | #line 14836 "configure" |
247f5006 | 14836 | #include "confdefs.h" |
247f5006 | 14837 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 14838 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14839 | builtin and then its argument prototype would still apply. */ |
14840 | char dnet_ntoa(); | |
14841 | ||
14842 | int main() { | |
14843 | dnet_ntoa() | |
14844 | ; return 0; } | |
14845 | EOF | |
5d3f766d | 14846 | if { (eval echo configure:14847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14847 | rm -rf conftest* |
14848 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14849 | else | |
14850 | echo "configure: failed program was:" >&5 | |
14851 | cat conftest.$ac_ext >&5 | |
14852 | rm -rf conftest* | |
14853 | eval "ac_cv_lib_$ac_lib_var=no" | |
14854 | fi | |
14855 | rm -f conftest* | |
14856 | LIBS="$ac_save_LIBS" | |
14857 | ||
14858 | fi | |
14859 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14860 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14861 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
14862 | else |
14863 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 14864 | fi |
0fb0dd83 | 14865 | |
21d1c967 | 14866 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 14867 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
5d3f766d | 14868 | echo "configure:14869: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
14869 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14870 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14872 | else |
a0b9e27f | 14873 | ac_save_LIBS="$LIBS" |
21d1c967 | 14874 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 14875 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 14876 | #line 14877 "configure" |
21d1c967 GD |
14877 | #include "confdefs.h" |
14878 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14879 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14880 | builtin and then its argument prototype would still apply. */ |
14881 | char dnet_ntoa(); | |
14882 | ||
14883 | int main() { | |
14884 | dnet_ntoa() | |
14885 | ; return 0; } | |
14886 | EOF | |
5d3f766d | 14887 | if { (eval echo configure:14888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14888 | rm -rf conftest* |
14889 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14890 | else | |
14891 | echo "configure: failed program was:" >&5 | |
14892 | cat conftest.$ac_ext >&5 | |
14893 | rm -rf conftest* | |
14894 | eval "ac_cv_lib_$ac_lib_var=no" | |
14895 | fi | |
14896 | rm -f conftest* | |
14897 | LIBS="$ac_save_LIBS" | |
14898 | ||
14899 | fi | |
14900 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14901 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14902 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
14903 | else |
14904 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
14905 | fi |
14906 | ||
21d1c967 | 14907 | fi |
90dd450c | 14908 | |
21d1c967 GD |
14909 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
14910 | # to get the SysV transport functions. | |
a0b9e27f | 14911 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
14912 | # needs -lnsl. |
14913 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
14914 | # on Irix 5.2, according to dickey@clark.net. |
14915 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
5d3f766d | 14916 | echo "configure:14917: checking for gethostbyname" >&5 |
a0b9e27f MB |
14917 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
14918 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14919 | else | |
14920 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 14921 | #line 14922 "configure" |
21d1c967 GD |
14922 | #include "confdefs.h" |
14923 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14924 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
14925 | #include <assert.h> |
14926 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14927 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14928 | builtin and then its argument prototype would still apply. */ |
14929 | char gethostbyname(); | |
14930 | ||
14931 | int main() { | |
14932 | ||
21d1c967 GD |
14933 | /* The GNU C library defines this for functions which it implements |
14934 | to always fail with ENOSYS. Some functions are actually named | |
14935 | something starting with __ and the normal name is an alias. */ | |
14936 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14937 | choke me | |
14938 | #else | |
a0b9e27f | 14939 | gethostbyname(); |
21d1c967 | 14940 | #endif |
90dd450c | 14941 | |
a0b9e27f MB |
14942 | ; return 0; } |
14943 | EOF | |
5d3f766d | 14944 | if { (eval echo configure:14945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14945 | rm -rf conftest* |
14946 | eval "ac_cv_func_gethostbyname=yes" | |
14947 | else | |
14948 | echo "configure: failed program was:" >&5 | |
14949 | cat conftest.$ac_ext >&5 | |
14950 | rm -rf conftest* | |
14951 | eval "ac_cv_func_gethostbyname=no" | |
14952 | fi | |
14953 | rm -f conftest* | |
14954 | fi | |
14955 | ||
14956 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14957 | echo "$ac_t""yes" 1>&6 | |
14958 | : | |
14959 | else | |
14960 | echo "$ac_t""no" 1>&6 | |
14961 | fi | |
90dd450c | 14962 | |
21d1c967 | 14963 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 14964 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
5d3f766d | 14965 | echo "configure:14966: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
14966 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
14967 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14969 | else |
a0b9e27f | 14970 | ac_save_LIBS="$LIBS" |
21d1c967 | 14971 | LIBS="-lnsl $LIBS" |
a0b9e27f | 14972 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 14973 | #line 14974 "configure" |
21d1c967 GD |
14974 | #include "confdefs.h" |
14975 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14976 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14977 | builtin and then its argument prototype would still apply. */ |
14978 | char gethostbyname(); | |
5c6fa7d2 | 14979 | |
a0b9e27f MB |
14980 | int main() { |
14981 | gethostbyname() | |
14982 | ; return 0; } | |
14983 | EOF | |
5d3f766d | 14984 | if { (eval echo configure:14985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14985 | rm -rf conftest* |
14986 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 14987 | else |
a0b9e27f MB |
14988 | echo "configure: failed program was:" >&5 |
14989 | cat conftest.$ac_ext >&5 | |
14990 | rm -rf conftest* | |
14991 | eval "ac_cv_lib_$ac_lib_var=no" | |
14992 | fi | |
14993 | rm -f conftest* | |
14994 | LIBS="$ac_save_LIBS" | |
247f5006 | 14995 | |
a0b9e27f MB |
14996 | fi |
14997 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14998 | echo "$ac_t""yes" 1>&6 | |
14999 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
15000 | else | |
15001 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15002 | fi |
90dd450c | 15003 | |
90dd450c VZ |
15004 | fi |
15005 | ||
21d1c967 GD |
15006 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
15007 | # socket/setsockopt and other routines are undefined under SCO ODT | |
15008 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
15009 | # on later versions), says simon@lia.di.epfl.ch: it contains |
15010 | # gethostby* variants that don't use the nameserver (or something). | |
15011 | # -lsocket must be given before -lnsl if both are needed. | |
15012 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
15013 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
5d3f766d | 15014 | echo "configure:15015: checking for connect" >&5 |
a0b9e27f MB |
15015 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
15016 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15017 | else | |
15018 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 15019 | #line 15020 "configure" |
21d1c967 GD |
15020 | #include "confdefs.h" |
15021 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15022 | which can conflict with char connect(); below. */ |
21d1c967 GD |
15023 | #include <assert.h> |
15024 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15025 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15026 | builtin and then its argument prototype would still apply. */ |
15027 | char connect(); | |
15028 | ||
15029 | int main() { | |
15030 | ||
21d1c967 GD |
15031 | /* The GNU C library defines this for functions which it implements |
15032 | to always fail with ENOSYS. Some functions are actually named | |
15033 | something starting with __ and the normal name is an alias. */ | |
15034 | #if defined (__stub_connect) || defined (__stub___connect) | |
15035 | choke me | |
15036 | #else | |
a0b9e27f | 15037 | connect(); |
21d1c967 | 15038 | #endif |
90dd450c | 15039 | |
a0b9e27f MB |
15040 | ; return 0; } |
15041 | EOF | |
5d3f766d | 15042 | if { (eval echo configure:15043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15043 | rm -rf conftest* |
15044 | eval "ac_cv_func_connect=yes" | |
15045 | else | |
15046 | echo "configure: failed program was:" >&5 | |
15047 | cat conftest.$ac_ext >&5 | |
15048 | rm -rf conftest* | |
15049 | eval "ac_cv_func_connect=no" | |
15050 | fi | |
15051 | rm -f conftest* | |
15052 | fi | |
15053 | ||
15054 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
15055 | echo "$ac_t""yes" 1>&6 | |
15056 | : | |
15057 | else | |
15058 | echo "$ac_t""no" 1>&6 | |
15059 | fi | |
1f8ae82f | 15060 | |
21d1c967 | 15061 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 15062 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
5d3f766d | 15063 | echo "configure:15064: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
15064 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
15065 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15066 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 15067 | else |
a0b9e27f | 15068 | ac_save_LIBS="$LIBS" |
21d1c967 | 15069 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15070 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 15071 | #line 15072 "configure" |
0fbb762e | 15072 | #include "confdefs.h" |
21d1c967 GD |
15073 | /* Override any gcc2 internal prototype to avoid an error. */ |
15074 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15075 | builtin and then its argument prototype would still apply. */ |
15076 | char connect(); | |
15077 | ||
15078 | int main() { | |
15079 | connect() | |
15080 | ; return 0; } | |
15081 | EOF | |
5d3f766d | 15082 | if { (eval echo configure:15083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15083 | rm -rf conftest* |
15084 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15085 | else | |
15086 | echo "configure: failed program was:" >&5 | |
15087 | cat conftest.$ac_ext >&5 | |
15088 | rm -rf conftest* | |
15089 | eval "ac_cv_lib_$ac_lib_var=no" | |
15090 | fi | |
15091 | rm -f conftest* | |
15092 | LIBS="$ac_save_LIBS" | |
15093 | ||
15094 | fi | |
15095 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15096 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15097 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
15098 | else |
15099 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15100 | fi |
90dd450c | 15101 | |
21d1c967 | 15102 | fi |
90dd450c | 15103 | |
a0b9e27f MB |
15104 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
15105 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
5d3f766d | 15106 | echo "configure:15107: checking for remove" >&5 |
a0b9e27f MB |
15107 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
15108 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15109 | else |
a0b9e27f | 15110 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 15111 | #line 15112 "configure" |
21d1c967 GD |
15112 | #include "confdefs.h" |
15113 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15114 | which can conflict with char remove(); below. */ |
21d1c967 GD |
15115 | #include <assert.h> |
15116 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15117 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15118 | builtin and then its argument prototype would still apply. */ |
15119 | char remove(); | |
15120 | ||
15121 | int main() { | |
15122 | ||
21d1c967 GD |
15123 | /* The GNU C library defines this for functions which it implements |
15124 | to always fail with ENOSYS. Some functions are actually named | |
15125 | something starting with __ and the normal name is an alias. */ | |
15126 | #if defined (__stub_remove) || defined (__stub___remove) | |
15127 | choke me | |
15128 | #else | |
a0b9e27f | 15129 | remove(); |
21d1c967 | 15130 | #endif |
90dd450c | 15131 | |
a0b9e27f MB |
15132 | ; return 0; } |
15133 | EOF | |
5d3f766d | 15134 | if { (eval echo configure:15135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15135 | rm -rf conftest* |
15136 | eval "ac_cv_func_remove=yes" | |
15137 | else | |
15138 | echo "configure: failed program was:" >&5 | |
15139 | cat conftest.$ac_ext >&5 | |
15140 | rm -rf conftest* | |
15141 | eval "ac_cv_func_remove=no" | |
15142 | fi | |
15143 | rm -f conftest* | |
15144 | fi | |
15145 | ||
15146 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
15147 | echo "$ac_t""yes" 1>&6 | |
15148 | : | |
15149 | else | |
15150 | echo "$ac_t""no" 1>&6 | |
15151 | fi | |
90dd450c | 15152 | |
21d1c967 | 15153 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 15154 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
5d3f766d | 15155 | echo "configure:15156: checking for remove in -lposix" >&5 |
a0b9e27f MB |
15156 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
15157 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15158 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15159 | else |
a0b9e27f | 15160 | ac_save_LIBS="$LIBS" |
21d1c967 | 15161 | LIBS="-lposix $LIBS" |
a0b9e27f | 15162 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 15163 | #line 15164 "configure" |
21d1c967 GD |
15164 | #include "confdefs.h" |
15165 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15166 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15167 | builtin and then its argument prototype would still apply. */ |
15168 | char remove(); | |
15169 | ||
15170 | int main() { | |
15171 | remove() | |
15172 | ; return 0; } | |
15173 | EOF | |
5d3f766d | 15174 | if { (eval echo configure:15175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15175 | rm -rf conftest* |
15176 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15177 | else | |
15178 | echo "configure: failed program was:" >&5 | |
15179 | cat conftest.$ac_ext >&5 | |
15180 | rm -rf conftest* | |
15181 | eval "ac_cv_lib_$ac_lib_var=no" | |
15182 | fi | |
15183 | rm -f conftest* | |
15184 | LIBS="$ac_save_LIBS" | |
15185 | ||
15186 | fi | |
15187 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15188 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15189 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
15190 | else |
15191 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15192 | fi |
19bc6aad | 15193 | |
90dd450c | 15194 | fi |
19bc6aad | 15195 | |
21d1c967 | 15196 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 15197 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
5d3f766d | 15198 | echo "configure:15199: checking for shmat" >&5 |
a0b9e27f MB |
15199 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
15200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15201 | else |
a0b9e27f | 15202 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 15203 | #line 15204 "configure" |
21d1c967 GD |
15204 | #include "confdefs.h" |
15205 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15206 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
15207 | #include <assert.h> |
15208 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15209 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15210 | builtin and then its argument prototype would still apply. */ |
15211 | char shmat(); | |
15212 | ||
15213 | int main() { | |
15214 | ||
21d1c967 GD |
15215 | /* The GNU C library defines this for functions which it implements |
15216 | to always fail with ENOSYS. Some functions are actually named | |
15217 | something starting with __ and the normal name is an alias. */ | |
15218 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
15219 | choke me | |
15220 | #else | |
a0b9e27f | 15221 | shmat(); |
21d1c967 | 15222 | #endif |
90dd450c | 15223 | |
a0b9e27f MB |
15224 | ; return 0; } |
15225 | EOF | |
5d3f766d | 15226 | if { (eval echo configure:15227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15227 | rm -rf conftest* |
15228 | eval "ac_cv_func_shmat=yes" | |
15229 | else | |
15230 | echo "configure: failed program was:" >&5 | |
15231 | cat conftest.$ac_ext >&5 | |
15232 | rm -rf conftest* | |
15233 | eval "ac_cv_func_shmat=no" | |
15234 | fi | |
15235 | rm -f conftest* | |
15236 | fi | |
15237 | ||
15238 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
15239 | echo "$ac_t""yes" 1>&6 | |
15240 | : | |
15241 | else | |
15242 | echo "$ac_t""no" 1>&6 | |
15243 | fi | |
19bc6aad | 15244 | |
21d1c967 | 15245 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 15246 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
5d3f766d | 15247 | echo "configure:15248: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
15248 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
15249 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15250 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 15251 | else |
a0b9e27f | 15252 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 15253 | LIBS="-lipc $LIBS" |
a0b9e27f | 15254 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 15255 | #line 15256 "configure" |
5c6fa7d2 | 15256 | #include "confdefs.h" |
5c6fa7d2 | 15257 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 15258 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
15259 | builtin and then its argument prototype would still apply. */ |
15260 | char shmat(); | |
15261 | ||
15262 | int main() { | |
15263 | shmat() | |
15264 | ; return 0; } | |
15265 | EOF | |
5d3f766d | 15266 | if { (eval echo configure:15267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15267 | rm -rf conftest* |
15268 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15269 | else | |
15270 | echo "configure: failed program was:" >&5 | |
15271 | cat conftest.$ac_ext >&5 | |
15272 | rm -rf conftest* | |
15273 | eval "ac_cv_lib_$ac_lib_var=no" | |
15274 | fi | |
15275 | rm -f conftest* | |
15276 | LIBS="$ac_save_LIBS" | |
15277 | ||
15278 | fi | |
15279 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15280 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15281 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
15282 | else |
15283 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 15284 | fi |
90dd450c | 15285 | |
90dd450c | 15286 | fi |
21d1c967 | 15287 | fi |
10f2d63a | 15288 | |
21d1c967 | 15289 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 15290 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
15291 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
15292 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
15293 | # check for ICE first), but we must link in the order -lSM -lICE or | |
15294 | # we get undefined symbols. So assume we have SM if we have ICE. | |
15295 | # These have to be linked with before -lX11, unlike the other | |
15296 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
15297 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
15298 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
5d3f766d | 15299 | echo "configure:15300: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
15300 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
15301 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15302 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15303 | else | |
15304 | ac_save_LIBS="$LIBS" | |
f09359cf | 15305 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15306 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 15307 | #line 15308 "configure" |
29fd3c0c | 15308 | #include "confdefs.h" |
21d1c967 GD |
15309 | /* Override any gcc2 internal prototype to avoid an error. */ |
15310 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15311 | builtin and then its argument prototype would still apply. */ |
15312 | char IceConnectionNumber(); | |
15313 | ||
15314 | int main() { | |
15315 | IceConnectionNumber() | |
15316 | ; return 0; } | |
15317 | EOF | |
5d3f766d | 15318 | if { (eval echo configure:15319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15319 | rm -rf conftest* |
15320 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15321 | else | |
15322 | echo "configure: failed program was:" >&5 | |
15323 | cat conftest.$ac_ext >&5 | |
15324 | rm -rf conftest* | |
15325 | eval "ac_cv_lib_$ac_lib_var=no" | |
15326 | fi | |
15327 | rm -f conftest* | |
15328 | LIBS="$ac_save_LIBS" | |
15329 | ||
15330 | fi | |
15331 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15332 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15333 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
15334 | else |
15335 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 15336 | fi |
21d1c967 | 15337 | |
a0b9e27f | 15338 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 15339 | |
10f2d63a VZ |
15340 | fi |
15341 | ||
8284b0c5 | 15342 | |
21d1c967 | 15343 | if test "$no_x" = "yes"; then |
a0b9e27f | 15344 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
15345 | fi |
15346 | ||
2b5f62a0 VZ |
15347 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
15348 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
15349 | AFMINSTALL=afminstall |
15350 | COMPILED_X_PROGRAM=0 | |
15351 | ||
a0b9e27f | 15352 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
5d3f766d | 15353 | echo "configure:15354: checking for Motif/Lesstif headers" >&5 |
a0b9e27f | 15354 | |
21d1c967 | 15355 | ac_find_includes= |
2b5f62a0 | 15356 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
15357 | do |
15358 | if test -f "$ac_dir/Xm/Xm.h"; then | |
15359 | ac_find_includes=$ac_dir | |
15360 | break | |
15361 | fi | |
15362 | done | |
15363 | ||
15364 | if test "$ac_find_includes" != "" ; then | |
a0b9e27f MB |
15365 | echo "$ac_t""found in $ac_find_includes" 1>&6 |
15366 | ||
2b5f62a0 | 15367 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
15368 | ac_path_to_include="" |
15369 | else | |
2b5f62a0 VZ |
15370 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
15371 | result=$? | |
15372 | if test $result = 0; then | |
15373 | ac_path_to_include="" | |
15374 | else | |
15375 | ac_path_to_include=" -I$ac_find_includes" | |
15376 | fi | |
dd0e4a90 VZ |
15377 | fi |
15378 | ||
15379 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 15380 | else |
a0b9e27f | 15381 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 15382 | #line 15383 "configure" |
10f2d63a | 15383 | #include "confdefs.h" |
21d1c967 GD |
15384 | |
15385 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15386 | |
15387 | int main() { | |
21d1c967 GD |
15388 | |
15389 | int version; | |
15390 | version = xmUseVersion; | |
a0b9e27f MB |
15391 | |
15392 | ; return 0; } | |
15393 | EOF | |
5d3f766d | 15394 | if { (eval echo configure:15395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15395 | rm -rf conftest* |
15396 | ||
15397 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15398 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15399 | |
10f2d63a | 15400 | else |
a0b9e27f MB |
15401 | echo "configure: failed program was:" >&5 |
15402 | cat conftest.$ac_ext >&5 | |
15403 | rm -rf conftest* | |
15404 | ||
15405 | echo "$ac_t""no" 1>&6 | |
15406 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
15407 | ||
15408 | ||
10f2d63a | 15409 | fi |
a0b9e27f | 15410 | rm -f conftest* |
21d1c967 | 15411 | fi |
10f2d63a | 15412 | |
21d1c967 | 15413 | if test "$COMPILED_X_PROGRAM" = 0; then |
a0b9e27f | 15414 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
5d3f766d | 15415 | echo "configure:15416: checking for Motif/Lesstif library" >&5 |
a0b9e27f | 15416 | |
21d1c967 | 15417 | ac_find_libraries= |
2b5f62a0 | 15418 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15419 | do |
15420 | for ac_extension in a so sl dylib; do | |
15421 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
15422 | ac_find_libraries=$ac_dir | |
15423 | break 2 | |
15424 | fi | |
15425 | done | |
15426 | done | |
15427 | ||
15428 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15429 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15430 | |
a0b9e27f | 15431 | |
21d1c967 GD |
15432 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15433 | result=$? | |
15434 | if test $result = 0; then | |
15435 | ac_path_to_link="" | |
15436 | else | |
15437 | ac_path_to_link=" -L$ac_find_libraries" | |
15438 | fi | |
15439 | ||
21d1c967 | 15440 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 15441 | else |
dd0e4a90 VZ |
15442 | save_CFLAGS=$CFLAGS |
15443 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15444 | ||
a0b9e27f | 15445 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 15446 | #line 15447 "configure" |
d836ee96 | 15447 | #include "confdefs.h" |
21d1c967 GD |
15448 | |
15449 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15450 | |
15451 | int main() { | |
21d1c967 GD |
15452 | |
15453 | int version; | |
15454 | version = xmUseVersion; | |
a0b9e27f MB |
15455 | |
15456 | ; return 0; } | |
15457 | EOF | |
5d3f766d | 15458 | if { (eval echo configure:15459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15459 | rm -rf conftest* |
15460 | ||
15461 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15462 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15463 | |
d836ee96 | 15464 | else |
a0b9e27f MB |
15465 | echo "configure: failed program was:" >&5 |
15466 | cat conftest.$ac_ext >&5 | |
15467 | rm -rf conftest* | |
15468 | ||
15469 | echo "$ac_t""no" 1>&6 | |
15470 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
15471 | ||
15472 | ||
d836ee96 | 15473 | fi |
a0b9e27f | 15474 | rm -f conftest* |
dd0e4a90 VZ |
15475 | |
15476 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15477 | fi |
15478 | fi | |
15479 | ||
15480 | xpm_link= | |
a0b9e27f | 15481 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
5d3f766d | 15482 | echo "configure:15483: checking for Xpm library" >&5 |
a0b9e27f | 15483 | |
21d1c967 | 15484 | ac_find_libraries= |
2b5f62a0 | 15485 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15486 | do |
15487 | for ac_extension in a so sl dylib; do | |
15488 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
15489 | ac_find_libraries=$ac_dir | |
15490 | break 2 | |
15491 | fi | |
15492 | done | |
15493 | done | |
15494 | ||
15495 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15496 | |
21d1c967 GD |
15497 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15498 | result=$? | |
15499 | if test $result = 0; then | |
15500 | ac_path_to_link="" | |
15501 | else | |
15502 | ac_path_to_link=" -L$ac_find_libraries" | |
15503 | fi | |
15504 | ||
15505 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 15506 | |
21d1c967 | 15507 | xpm_link=" -lXpm" |
a0b9e27f | 15508 | cat >> confdefs.h <<\EOF |
21d1c967 | 15509 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15510 | EOF |
90dd450c | 15511 | |
a0b9e27f | 15512 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15513 | else |
dd0e4a90 VZ |
15514 | save_CFLAGS=$CFLAGS |
15515 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15516 | ||
a0b9e27f | 15517 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 15518 | #line 15519 "configure" |
d836ee96 | 15519 | #include "confdefs.h" |
21d1c967 GD |
15520 | |
15521 | #include <X11/xpm.h> | |
a0b9e27f MB |
15522 | |
15523 | int main() { | |
21d1c967 GD |
15524 | |
15525 | int version; | |
15526 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
15527 | |
15528 | ; return 0; } | |
15529 | EOF | |
5d3f766d | 15530 | if { (eval echo configure:15531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15531 | rm -rf conftest* |
15532 | ||
21d1c967 | 15533 | xpm_link=" -lXpm" |
a0b9e27f | 15534 | cat >> confdefs.h <<\EOF |
21d1c967 | 15535 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15536 | EOF |
21d1c967 | 15537 | |
a0b9e27f | 15538 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 15539 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 15540 | |
d836ee96 | 15541 | else |
a0b9e27f MB |
15542 | echo "configure: failed program was:" >&5 |
15543 | cat conftest.$ac_ext >&5 | |
15544 | rm -rf conftest* | |
15545 | ||
15546 | echo "$ac_t""no" 1>&6 | |
15547 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
15548 | ||
15549 | ||
d836ee96 | 15550 | fi |
a0b9e27f | 15551 | rm -f conftest* |
dd0e4a90 VZ |
15552 | |
15553 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15554 | fi |
15555 | ||
a0b9e27f | 15556 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
5d3f766d | 15557 | echo "configure:15558: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
15558 | libp_link="" |
15559 | libsm_ice_link="" | |
15560 | libs_found=0 | |
15561 | for libp in "" " -lXp"; do | |
15562 | if test "$libs_found" = "0"; then | |
15563 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 15564 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
15565 | save_LIBS="$LIBS" |
15566 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
15567 | save_CFLAGS=$CFLAGS |
15568 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15569 | ||
a0b9e27f | 15570 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 15571 | #line 15572 "configure" |
6a30f1c8 | 15572 | #include "confdefs.h" |
17234b26 | 15573 | |
6a30f1c8 MB |
15574 | #include <Xm/Xm.h> |
15575 | #include <Xm/List.h> | |
a0b9e27f MB |
15576 | |
15577 | int main() { | |
6a30f1c8 MB |
15578 | |
15579 | XmString string = NULL; | |
15580 | Widget w = NULL; | |
15581 | int position = 0; | |
15582 | XmListAddItem(w, string, position); | |
a0b9e27f MB |
15583 | |
15584 | ; return 0; } | |
15585 | EOF | |
5d3f766d | 15586 | if { (eval echo configure:15587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15587 | rm -rf conftest* |
15588 | ||
6a30f1c8 MB |
15589 | libp_link="$libp" |
15590 | libsm_ice_link="$libsm_ice" | |
a0b9e27f | 15591 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 15592 | libs_found=1 |
a0b9e27f | 15593 | |
6a30f1c8 | 15594 | else |
a0b9e27f MB |
15595 | echo "configure: failed program was:" >&5 |
15596 | cat conftest.$ac_ext >&5 | |
15597 | rm -rf conftest* | |
15598 | ||
15599 | ||
6a30f1c8 | 15600 | fi |
a0b9e27f | 15601 | rm -f conftest* |
dd0e4a90 | 15602 | |
6a30f1c8 | 15603 | LIBS="$save_LIBS" |
dd0e4a90 | 15604 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
15605 | fi |
15606 | done | |
15607 | fi | |
15608 | done | |
15609 | ||
15610 | if test "$libs_found" = "0"; then | |
a0b9e27f MB |
15611 | echo "$ac_t""can't find the right libraries" 1>&6 |
15612 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
15613 | fi |
15614 | ||
15615 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
21d1c967 GD |
15616 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
15617 | TOOLKIT=MOTIF | |
15618 | GUIDIST=MOTIF_DIST | |
15619 | fi | |
15620 | ||
15621 | if test "$wxUSE_MAC" = 1; then | |
b2fee376 | 15622 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefile -I/Developer/Headers/FlatCarbon" |
21d1c967 GD |
15623 | |
15624 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
15625 | TOOLKIT=MAC | |
15626 | GUIDIST=MACX_DIST | |
15627 | fi | |
15628 | ||
15629 | if test "$wxUSE_PM" = 1; then | |
15630 | TOOLKIT=PM | |
15631 | GUIDIST=GTK_DIST | |
2b5f62a0 VZ |
15632 | echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2 |
15633 | wxUSE_PROLOGIO="yes" | |
15634 | wxUSE_RESOURCES="yes" | |
15635 | echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2 | |
15636 | wxUSE_THREADS="no" | |
21d1c967 GD |
15637 | fi |
15638 | ||
15639 | if test "$TOOLKIT" = "PM" ; then | |
15640 | TOOLKIT_DIR="os2" | |
15641 | else | |
15642 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
15643 | fi | |
15644 | ||
15645 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
15646 | ||
15647 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
15648 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
15649 | ||
15650 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
15651 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
15652 | ||
15653 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
15654 | if test "$wxUSE_X11" = 1; then | |
15655 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
15656 | else | |
15657 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
15658 | fi | |
15659 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
15660 | WIDGET_SET=univ | |
15661 | else | |
15662 | ALL_OBJECTS="\$(GUIOBJS)" | |
15663 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15664 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15665 | fi | |
15666 | ||
15667 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
15668 | ||
15669 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
15670 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
15671 | fi | |
15672 | ||
15673 | if test "$wxUSE_HTML" = "yes"; then | |
15674 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
15675 | fi | |
15676 | ||
15677 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
15678 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
15679 | fi | |
15680 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
15681 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
15682 | fi | |
15683 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
15684 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
15685 | fi | |
15686 | ||
15687 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
15688 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 15689 | else |
21d1c967 GD |
15690 | USE_GUI=0 |
15691 | ||
15692 | TOOLKIT_DIR="base" | |
15693 | ||
15694 | if test "$USE_WIN32" = 1 ; then | |
15695 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
15696 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
15697 | ||
15698 | TOOLKIT="MSW" | |
15699 | else | |
15700 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
15701 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
15702 | fi | |
15703 | ||
15704 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15705 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15706 | ||
15707 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
15708 | ||
15709 | GUIDIST="BASE_DIST" | |
15710 | DISTDIR="wxBase" | |
d836ee96 VZ |
15711 | fi |
15712 | ||
8284b0c5 | 15713 | |
21d1c967 GD |
15714 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
15715 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 15716 | fi |
21d1c967 GD |
15717 | |
15718 | if test "$wxUSE_REGEX" = "builtin" ; then | |
15719 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 15720 | fi |
21d1c967 GD |
15721 | if test "$wxUSE_ZLIB" = "builtin" ; then |
15722 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
15723 | fi |
15724 | ||
8284b0c5 | 15725 | |
21d1c967 GD |
15726 | if test "$wxUSE_OPENGL" = "yes"; then |
15727 | if test "$wxUSE_MAC" = 1; then | |
15728 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
15729 | elif test "$wxUSE_MSW" = 1; then | |
15730 | OPENGL_LIBS="-lopengl32 -lglu32" | |
15731 | else | |
a0b9e27f MB |
15732 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15733 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
5d3f766d | 15734 | echo "configure:15735: checking for GL/gl.h" >&5 |
a0b9e27f MB |
15735 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15737 | else | |
15738 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 15739 | #line 15740 "configure" |
10f2d63a | 15740 | #include "confdefs.h" |
21d1c967 | 15741 | #include <GL/gl.h> |
a0b9e27f MB |
15742 | EOF |
15743 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5d3f766d | 15744 | { (eval echo configure:15745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
15745 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15746 | if test -z "$ac_err"; then | |
15747 | rm -rf conftest* | |
15748 | eval "ac_cv_header_$ac_safe=yes" | |
15749 | else | |
15750 | echo "$ac_err" >&5 | |
15751 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 15752 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
15753 | rm -rf conftest* |
15754 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 15755 | fi |
a0b9e27f | 15756 | rm -f conftest* |
698dcdb6 | 15757 | fi |
a0b9e27f MB |
15758 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15759 | echo "$ac_t""yes" 1>&6 | |
15760 | ||
15761 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
5d3f766d | 15762 | echo "configure:15763: checking for -lGL" >&5 |
a0b9e27f | 15763 | |
21d1c967 | 15764 | ac_find_libraries= |
2b5f62a0 | 15765 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15766 | do |
15767 | for ac_extension in a so sl dylib; do | |
15768 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
15769 | ac_find_libraries=$ac_dir | |
15770 | break 2 | |
15771 | fi | |
15772 | done | |
15773 | done | |
15774 | ||
15775 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15776 | |
21d1c967 GD |
15777 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15778 | result=$? | |
15779 | if test $result = 0; then | |
15780 | ac_path_to_link="" | |
15781 | else | |
15782 | ac_path_to_link=" -L$ac_find_libraries" | |
15783 | fi | |
15784 | ||
15785 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
15786 | LDFLAGS_GL="$LDFLAGS" | |
15787 | else | |
15788 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15789 | fi | |
15790 | OPENGL_LIBS="-lGL -lGLU" | |
a0b9e27f | 15791 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15792 | else |
a0b9e27f MB |
15793 | echo "$ac_t""no" 1>&6 |
15794 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
5d3f766d | 15795 | echo "configure:15796: checking for -lMesaGL" >&5 |
a0b9e27f | 15796 | |
21d1c967 | 15797 | ac_find_libraries= |
2b5f62a0 | 15798 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15799 | do |
15800 | for ac_extension in a so sl dylib; do | |
15801 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
15802 | ac_find_libraries=$ac_dir | |
15803 | break 2 | |
15804 | fi | |
15805 | done | |
15806 | done | |
15807 | ||
15808 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15809 | |
21d1c967 GD |
15810 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15811 | result=$? | |
15812 | if test $result = 0; then | |
15813 | ac_path_to_link="" | |
15814 | else | |
15815 | ac_path_to_link=" -L$ac_find_libraries" | |
15816 | fi | |
15817 | ||
15818 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15819 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
a0b9e27f | 15820 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15821 | else |
a0b9e27f | 15822 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
15823 | fi |
15824 | fi | |
a0b9e27f MB |
15825 | |
15826 | else | |
15827 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 15828 | fi |
52127426 | 15829 | |
8284b0c5 | 15830 | |
21d1c967 | 15831 | if test "x$OPENGL_LIBS" = "x"; then |
a0b9e27f | 15832 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
15833 | fi |
15834 | fi | |
90dd450c | 15835 | |
21d1c967 | 15836 | if test "$wxUSE_OPENGL" = "yes"; then |
a0b9e27f | 15837 | cat >> confdefs.h <<\EOF |
21d1c967 | 15838 | #define wxUSE_OPENGL 1 |
a0b9e27f | 15839 | EOF |
21d1c967 | 15840 | |
a0b9e27f | 15841 | cat >> confdefs.h <<\EOF |
21d1c967 | 15842 | #define wxUSE_GLCANVAS 1 |
a0b9e27f | 15843 | EOF |
21d1c967 GD |
15844 | |
15845 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
15846 | fi | |
10f2d63a | 15847 | fi |
21d1c967 GD |
15848 | |
15849 | if test -z "$TOOLKIT_VPATH" ; then | |
15850 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 15851 | fi |
21d1c967 GD |
15852 | |
15853 | if test -n "$TOOLKIT" ; then | |
15854 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
15855 | fi | |
15856 | ||
15857 | lib_unicode_suffix= | |
15858 | if test "$wxUSE_UNICODE" = "yes"; then | |
15859 | lib_unicode_suffix=u | |
90dd450c | 15860 | fi |
698dcdb6 | 15861 | |
21d1c967 GD |
15862 | lib_debug_suffix= |
15863 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
15864 | lib_debug_suffix=d | |
15865 | fi | |
698dcdb6 | 15866 | |
2b5f62a0 VZ |
15867 | WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
15868 | ||
15869 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
15870 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
15871 | |
15872 | if test "$cross_compiling" = "yes"; then | |
15873 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
15874 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
15875 | fi | |
15876 | ||
15877 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
15878 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
2b5f62a0 | 15879 | WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" |
21d1c967 GD |
15880 | |
15881 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15882 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15883 | ||
15884 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
15885 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15886 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
15887 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15888 | ||
15889 | case "${host}" in | |
15890 | *-*-cygwin* | *-*-mingw32* ) | |
15891 | ||
a0b9e27f MB |
15892 | |
15893 | ||
17234b26 | 15894 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
15895 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
15896 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
15897 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
15898 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15899 | else | |
15900 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15901 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15902 | fi | |
15903 | ;; | |
15904 | ||
15905 | *-*-darwin* ) | |
15906 | if test "$wxUSE_MAC" = 1; then | |
3bd8fb5f | 15907 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" |
21d1c967 GD |
15908 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" |
15909 | fi | |
15910 | ;; | |
15911 | esac | |
15912 | ||
15913 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
15914 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
15915 | ||
15916 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
15917 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
15918 | ||
15919 | if test "$wxUSE_OPENGL" = "yes"; then | |
15920 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
15921 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
15922 | fi | |
15923 | ||
8284b0c5 MB |
15924 | |
15925 | ||
21d1c967 GD |
15926 | if test "$wxUSE_SHARED" = "yes"; then |
15927 | case "${host}" in | |
15928 | *-pc-os2_emx | *-pc-os2-emx | \ | |
15929 | *-pc-msdosdjgpp ) | |
15930 | wxUSE_SHARED=no | |
a0b9e27f | 15931 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
15932 | ;; |
15933 | esac | |
15934 | fi | |
15935 | ||
2b5f62a0 VZ |
15936 | if test "$wxUSE_SHARED" = "yes"; then |
15937 | ||
15938 | if test "$wxUSE_OPENGL" = "yes"; then | |
15939 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
15940 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
15941 | else | |
15942 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
15943 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
15944 | fi | |
15945 | ||
15946 | if test "$GCC" = "yes"; then | |
15947 | PIC_FLAG="-fPIC" | |
15948 | fi | |
15949 | ||
15950 | ||
15951 | ||
15952 | found_versioning=no | |
15953 | ||
15954 | case "${host}" in | |
15955 | *-*-solaris2* ) | |
15956 | if test "x$GCC" != "xyes" ; then | |
15957 | LDFLAGS_VERSIONING="-M \$(top_builddir)/version-script" | |
15958 | found_versioning=yes | |
15959 | fi | |
15960 | ;; | |
15961 | esac | |
15962 | ||
15963 | if test $found_versioning = no ; then | |
15964 | echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6 | |
5d3f766d | 15965 | echo "configure:15966: checking if the linker accepts --version-script" >&5 |
2b5f62a0 VZ |
15966 | if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then |
15967 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15968 | else | |
15969 | ||
15970 | echo "VER_1 { *; };" >conftest.sym | |
15971 | echo "int main() { return 0; }" >conftest.cpp | |
15972 | ||
15973 | if { ac_try=' | |
15974 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
5d3f766d | 15975 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:15976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then |
2b5f62a0 VZ |
15976 | if test -s conftest.stderr ; then |
15977 | wx_cv_version_script=no | |
15978 | else | |
15979 | wx_cv_version_script=yes | |
15980 | fi | |
15981 | else | |
15982 | wx_cv_version_script=no | |
15983 | fi | |
15984 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
15985 | ||
15986 | fi | |
15987 | ||
15988 | echo "$ac_t""$wx_cv_version_script" 1>&6 | |
15989 | if test $wx_cv_version_script = yes ; then | |
15990 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script" | |
15991 | fi | |
15992 | fi | |
21d1c967 | 15993 | |
21d1c967 GD |
15994 | |
15995 | SHARED_LD="${CXX} -shared -o" | |
15996 | ||
15997 | case "${host}" in | |
15998 | *-hp-hpux* ) | |
ad2622f1 | 15999 | if test "$GCC" = "yes"; then |
85d5e282 | 16000 | SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" |
21d1c967 GD |
16001 | else |
16002 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
16003 | ||
16004 | SHARED_LD="${CXX} -b -o" | |
16005 | PIC_FLAG="+Z" | |
16006 | fi | |
16007 | ||
16008 | if test "$wxUSE_OPENGL" = "yes"; then | |
16009 | WX_ALL_INSTALLED="preinstall_gl" | |
16010 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
16011 | else | |
16012 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
16013 | fi | |
16014 | ;; | |
16015 | ||
16016 | *-*-linux* ) | |
16017 | if test "$GCC" != "yes"; then | |
a0b9e27f | 16018 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
5d3f766d | 16019 | echo "configure:16020: checking for Intel compiler" >&5 |
a0b9e27f MB |
16020 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
16021 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16022 | else | |
16023 | ||
16024 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 16025 | #line 16026 "configure" |
698dcdb6 | 16026 | #include "confdefs.h" |
90dd450c | 16027 | |
a0b9e27f | 16028 | int main() { |
90dd450c | 16029 | |
21d1c967 GD |
16030 | #ifndef __INTEL_COMPILER |
16031 | #error Not icc | |
16032 | #endif | |
a0b9e27f MB |
16033 | |
16034 | ; return 0; } | |
16035 | EOF | |
5d3f766d | 16036 | if { (eval echo configure:16037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16037 | rm -rf conftest* |
21d1c967 | 16038 | wx_cv_prog_icc=yes |
6232543b | 16039 | else |
a0b9e27f MB |
16040 | echo "configure: failed program was:" >&5 |
16041 | cat conftest.$ac_ext >&5 | |
16042 | rm -rf conftest* | |
16043 | wx_cv_prog_icc=no | |
16044 | ||
5c6fa7d2 | 16045 | fi |
a0b9e27f MB |
16046 | rm -f conftest* |
16047 | ||
247f5006 | 16048 | fi |
a0b9e27f MB |
16049 | |
16050 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
16051 | if test "$wx_cv_prog_icc" = "yes"; then |
16052 | PIC_FLAG="-KPIC" | |
16053 | fi | |
16054 | fi | |
16055 | ||
16056 | if test "$wxUSE_SONAME" = "yes" ; then | |
16057 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
16058 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
16059 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
16060 | fi | |
16061 | ;; | |
16062 | ||
16063 | *-*-solaris2* ) | |
16064 | if test "$GCC" = yes ; then | |
16065 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
16066 | else | |
16067 | SHARED_LD="${CXX} -G -o" | |
16068 | PIC_FLAG="-KPIC" | |
16069 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
16070 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
16071 | fi | |
16072 | ;; | |
16073 | ||
16074 | *-*-darwin* ) | |
b2fee376 GD |
16075 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL" |
16076 | CFLAGS="$CFLAGS -fno-common" | |
16077 | CXXFLAGS="$CXXFLAGS -fno-common" | |
21d1c967 GD |
16078 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" |
16079 | PIC_FLAG="-dynamic -fPIC" | |
16080 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
16081 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
16082 | ;; | |
16083 | ||
16084 | *-*-aix* ) | |
2b5f62a0 VZ |
16085 | if test "$GCC" != "yes"; then |
16086 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
321d2b14 | 16087 | set dummy makeC++SharedLib; ac_word=$2 |
a0b9e27f | 16088 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5d3f766d | 16089 | echo "configure:16090: checking for $ac_word" >&5 |
a0b9e27f MB |
16090 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
16091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
16092 | else |
16093 | if test -n "$AIX_CXX_LD"; then | |
16094 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
16095 | else | |
a0b9e27f MB |
16096 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16097 | ac_dummy="$PATH" | |
16098 | for ac_dir in $ac_dummy; do | |
16099 | test -z "$ac_dir" && ac_dir=. | |
16100 | if test -f $ac_dir/$ac_word; then | |
16101 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
16102 | break | |
16103 | fi | |
16104 | done | |
16105 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
16106 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
16107 | fi | |
16108 | fi | |
a0b9e27f | 16109 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 16110 | if test -n "$AIX_CXX_LD"; then |
a0b9e27f | 16111 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 16112 | else |
a0b9e27f | 16113 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
16114 | fi |
16115 | ||
8284b0c5 | 16116 | |
2b5f62a0 VZ |
16117 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
16118 | fi | |
21d1c967 GD |
16119 | ;; |
16120 | ||
16121 | *-*-cygwin* | *-*-mingw32* ) | |
21d1c967 GD |
16122 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
16123 | ||
16124 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
16125 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
16126 | ||
16127 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
16128 | ||
16129 | if test "$wxUSE_OPENGL" = "yes"; then | |
16130 | WX_ALL_INSTALLED="preinstall_gl" | |
16131 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
16132 | else | |
16133 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
16134 | fi | |
16135 | ;; | |
16136 | ||
16137 | *-*-beos* ) | |
16138 | SHARED_LD="${LD} -shared -o" | |
16139 | ;; | |
16140 | ||
2b5f62a0 VZ |
16141 | *-*-irix* ) |
16142 | if test "$GCC" != "yes"; then | |
16143 | PIC_FLAG="-KPIC" | |
16144 | fi | |
16145 | ;; | |
16146 | ||
21d1c967 GD |
16147 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
16148 | *-*-sunos4* | \ | |
21d1c967 GD |
16149 | *-*-osf* | \ |
16150 | *-*-dgux5* | \ | |
16151 | *-*-sysv5* ) | |
16152 | ;; | |
16153 | ||
16154 | *) | |
a0b9e27f | 16155 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
16156 | esac |
16157 | ||
16158 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
16159 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
16160 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
16161 | fi | |
16162 | ||
16163 | WX_TARGET_LIBRARY_TYPE="so" | |
16164 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 16165 | fi |
10f2d63a | 16166 | |
21d1c967 GD |
16167 | if test "$wxUSE_SHARED" = "no"; then |
16168 | ||
16169 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
16170 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16171 | fi | |
16172 | ||
16173 | if test "$wxUSE_MAC" = 1; then | |
16174 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16175 | fi | |
16176 | ||
16177 | if test "$wxUSE_OPENGL" = "yes"; then | |
16178 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
16179 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
16180 | else | |
16181 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
16182 | fi | |
16183 | ||
16184 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
16185 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
16186 | ||
16187 | WX_TARGET_LIBRARY_TYPE="a" | |
16188 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
16189 | |
16190 | STATIC_FLAG="yes" | |
16191 | else | |
16192 | STATIC_FLAG="no" | |
90dd450c | 16193 | fi |
1e487827 | 16194 | |
21d1c967 GD |
16195 | if test "$wxUSE_MAC" = 1; then |
16196 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
16197 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
16198 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
16199 | # Extract the first word of "Rez", so it can be a program name with args. | |
16200 | set dummy Rez; ac_word=$2 | |
a0b9e27f | 16201 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5d3f766d | 16202 | echo "configure:16203: checking for $ac_word" >&5 |
a0b9e27f MB |
16203 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
16204 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 16205 | else |
21d1c967 GD |
16206 | if test -n "$RESCOMP"; then |
16207 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 16208 | else |
a0b9e27f MB |
16209 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16210 | ac_dummy="$PATH" | |
16211 | for ac_dir in $ac_dummy; do | |
16212 | test -z "$ac_dir" && ac_dir=. | |
16213 | if test -f $ac_dir/$ac_word; then | |
16214 | ac_cv_prog_RESCOMP="Rez" | |
16215 | break | |
16216 | fi | |
16217 | done | |
16218 | IFS="$ac_save_ifs" | |
21d1c967 | 16219 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 16220 | fi |
b93d0d08 | 16221 | fi |
a0b9e27f | 16222 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 16223 | if test -n "$RESCOMP"; then |
a0b9e27f | 16224 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 16225 | else |
a0b9e27f | 16226 | echo "$ac_t""no" 1>&6 |
90dd450c | 16227 | fi |
b93d0d08 | 16228 | |
21d1c967 GD |
16229 | # Extract the first word of "DeRez", so it can be a program name with args. |
16230 | set dummy DeRez; ac_word=$2 | |
a0b9e27f | 16231 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5d3f766d | 16232 | echo "configure:16233: checking for $ac_word" >&5 |
a0b9e27f MB |
16233 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
16234 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 16235 | else |
21d1c967 GD |
16236 | if test -n "$DEREZ"; then |
16237 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 16238 | else |
a0b9e27f MB |
16239 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16240 | ac_dummy="$PATH" | |
16241 | for ac_dir in $ac_dummy; do | |
16242 | test -z "$ac_dir" && ac_dir=. | |
16243 | if test -f $ac_dir/$ac_word; then | |
16244 | ac_cv_prog_DEREZ="DeRez" | |
16245 | break | |
16246 | fi | |
16247 | done | |
16248 | IFS="$ac_save_ifs" | |
21d1c967 | 16249 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 16250 | fi |
90dd450c | 16251 | fi |
a0b9e27f | 16252 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 16253 | if test -n "$DEREZ"; then |
a0b9e27f | 16254 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 16255 | else |
a0b9e27f | 16256 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 16257 | fi |
698dcdb6 | 16258 | |
21d1c967 | 16259 | MACOSX_BUNDLE="bundle" |
2b5f62a0 VZ |
16260 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" |
16261 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
21d1c967 GD |
16262 | else |
16263 | if test "$wxUSE_PM" = 1; then | |
16264 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
90dd450c | 16265 | fi |
4f14bcd8 | 16266 | fi |
10f2d63a | 16267 | |
8284b0c5 | 16268 | |
a0b9e27f | 16269 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
5d3f766d | 16270 | echo "configure:16271: checking for ANSI C header files" >&5 |
a0b9e27f MB |
16271 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
16272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 16273 | else |
a0b9e27f | 16274 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 16275 | #line 16276 "configure" |
52127426 | 16276 | #include "confdefs.h" |
a0b9e27f MB |
16277 | #include <stdlib.h> |
16278 | #include <stdarg.h> | |
16279 | #include <string.h> | |
16280 | #include <float.h> | |
16281 | EOF | |
16282 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5d3f766d | 16283 | { (eval echo configure:16284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
16284 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16285 | if test -z "$ac_err"; then | |
16286 | rm -rf conftest* | |
16287 | ac_cv_header_stdc=yes | |
16288 | else | |
16289 | echo "$ac_err" >&5 | |
16290 | echo "configure: failed program was:" >&5 | |
16291 | cat conftest.$ac_ext >&5 | |
16292 | rm -rf conftest* | |
16293 | ac_cv_header_stdc=no | |
16294 | fi | |
16295 | rm -f conftest* | |
16296 | ||
16297 | if test $ac_cv_header_stdc = yes; then | |
16298 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16299 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 16300 | #line 16301 "configure" |
a0b9e27f MB |
16301 | #include "confdefs.h" |
16302 | #include <string.h> | |
16303 | EOF | |
16304 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16305 | egrep "memchr" >/dev/null 2>&1; then | |
16306 | : | |
16307 | else | |
16308 | rm -rf conftest* | |
16309 | ac_cv_header_stdc=no | |
16310 | fi | |
16311 | rm -f conftest* | |
16312 | ||
16313 | fi | |
16314 | ||
16315 | if test $ac_cv_header_stdc = yes; then | |
16316 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16317 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 16318 | #line 16319 "configure" |
a0b9e27f MB |
16319 | #include "confdefs.h" |
16320 | #include <stdlib.h> | |
16321 | EOF | |
16322 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16323 | egrep "free" >/dev/null 2>&1; then | |
16324 | : | |
7b4a847f | 16325 | else |
a0b9e27f MB |
16326 | rm -rf conftest* |
16327 | ac_cv_header_stdc=no | |
52127426 | 16328 | fi |
a0b9e27f MB |
16329 | rm -f conftest* |
16330 | ||
52127426 | 16331 | fi |
a0b9e27f MB |
16332 | |
16333 | if test $ac_cv_header_stdc = yes; then | |
16334 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16335 | if test "$cross_compiling" = yes; then | |
247f5006 VZ |
16336 | : |
16337 | else | |
a0b9e27f | 16338 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 16339 | #line 16340 "configure" |
a0b9e27f MB |
16340 | #include "confdefs.h" |
16341 | #include <ctype.h> | |
16342 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16343 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16344 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16345 | int main () { int i; for (i = 0; i < 256; i++) | |
16346 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
16347 | exit (0); } | |
247f5006 | 16348 | |
a0b9e27f | 16349 | EOF |
5d3f766d | 16350 | if { (eval echo configure:16351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
16351 | then |
16352 | : | |
16353 | else | |
16354 | echo "configure: failed program was:" >&5 | |
16355 | cat conftest.$ac_ext >&5 | |
16356 | rm -fr conftest* | |
16357 | ac_cv_header_stdc=no | |
16358 | fi | |
16359 | rm -fr conftest* | |
16360 | fi | |
16361 | ||
16362 | fi | |
16363 | fi | |
16364 | ||
16365 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
16366 | if test $ac_cv_header_stdc = yes; then | |
16367 | cat >> confdefs.h <<\EOF | |
16368 | #define STDC_HEADERS 1 | |
16369 | EOF | |
8284b0c5 MB |
16370 | |
16371 | fi | |
16372 | ||
a0b9e27f | 16373 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
5d3f766d | 16374 | echo "configure:16375: checking for mode_t" >&5 |
a0b9e27f MB |
16375 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
16376 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16377 | else |
a0b9e27f | 16378 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 16379 | #line 16380 "configure" |
8284b0c5 | 16380 | #include "confdefs.h" |
a0b9e27f MB |
16381 | #include <sys/types.h> |
16382 | #if STDC_HEADERS | |
16383 | #include <stdlib.h> | |
16384 | #include <stddef.h> | |
8284b0c5 | 16385 | #endif |
a0b9e27f MB |
16386 | EOF |
16387 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16388 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16389 | rm -rf conftest* | |
16390 | ac_cv_type_mode_t=yes | |
5c6fa7d2 | 16391 | else |
a0b9e27f MB |
16392 | rm -rf conftest* |
16393 | ac_cv_type_mode_t=no | |
16394 | fi | |
16395 | rm -f conftest* | |
16396 | ||
8284b0c5 | 16397 | fi |
a0b9e27f MB |
16398 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
16399 | if test $ac_cv_type_mode_t = no; then | |
16400 | cat >> confdefs.h <<\EOF | |
16401 | #define mode_t int | |
16402 | EOF | |
16403 | ||
8284b0c5 | 16404 | fi |
a0b9e27f MB |
16405 | |
16406 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
5d3f766d | 16407 | echo "configure:16408: checking for off_t" >&5 |
a0b9e27f MB |
16408 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
16409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16410 | else | |
16411 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 16412 | #line 16413 "configure" |
a0b9e27f MB |
16413 | #include "confdefs.h" |
16414 | #include <sys/types.h> | |
16415 | #if STDC_HEADERS | |
16416 | #include <stdlib.h> | |
16417 | #include <stddef.h> | |
16418 | #endif | |
16419 | EOF | |
16420 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16421 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16422 | rm -rf conftest* | |
16423 | ac_cv_type_off_t=yes | |
247f5006 | 16424 | else |
a0b9e27f MB |
16425 | rm -rf conftest* |
16426 | ac_cv_type_off_t=no | |
16427 | fi | |
16428 | rm -f conftest* | |
247f5006 | 16429 | |
a0b9e27f MB |
16430 | fi |
16431 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
16432 | if test $ac_cv_type_off_t = no; then | |
16433 | cat >> confdefs.h <<\EOF | |
90dd450c | 16434 | #define off_t long |
a0b9e27f | 16435 | EOF |
10f2d63a | 16436 | |
90dd450c | 16437 | fi |
10f2d63a | 16438 | |
a0b9e27f | 16439 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
5d3f766d | 16440 | echo "configure:16441: checking for pid_t" >&5 |
a0b9e27f MB |
16441 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
16442 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16443 | else |
a0b9e27f | 16444 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 16445 | #line 16446 "configure" |
10f2d63a | 16446 | #include "confdefs.h" |
a0b9e27f MB |
16447 | #include <sys/types.h> |
16448 | #if STDC_HEADERS | |
16449 | #include <stdlib.h> | |
16450 | #include <stddef.h> | |
8284b0c5 | 16451 | #endif |
a0b9e27f MB |
16452 | EOF |
16453 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16454 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16455 | rm -rf conftest* | |
90dd450c | 16456 | ac_cv_type_pid_t=yes |
698dcdb6 | 16457 | else |
a0b9e27f MB |
16458 | rm -rf conftest* |
16459 | ac_cv_type_pid_t=no | |
8284b0c5 | 16460 | fi |
a0b9e27f | 16461 | rm -f conftest* |
247f5006 | 16462 | |
a0b9e27f MB |
16463 | fi |
16464 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
16465 | if test $ac_cv_type_pid_t = no; then | |
16466 | cat >> confdefs.h <<\EOF | |
90dd450c | 16467 | #define pid_t int |
a0b9e27f | 16468 | EOF |
10f2d63a | 16469 | |
7b4a847f RR |
16470 | fi |
16471 | ||
a0b9e27f | 16472 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
5d3f766d | 16473 | echo "configure:16474: checking for size_t" >&5 |
a0b9e27f MB |
16474 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
16475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 16476 | else |
a0b9e27f | 16477 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 16478 | #line 16479 "configure" |
7b4a847f | 16479 | #include "confdefs.h" |
a0b9e27f MB |
16480 | #include <sys/types.h> |
16481 | #if STDC_HEADERS | |
16482 | #include <stdlib.h> | |
16483 | #include <stddef.h> | |
8284b0c5 | 16484 | #endif |
a0b9e27f MB |
16485 | EOF |
16486 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16487 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16488 | rm -rf conftest* | |
90dd450c | 16489 | ac_cv_type_size_t=yes |
18dbb1f6 | 16490 | else |
a0b9e27f MB |
16491 | rm -rf conftest* |
16492 | ac_cv_type_size_t=no | |
52127426 | 16493 | fi |
a0b9e27f | 16494 | rm -f conftest* |
247f5006 | 16495 | |
a0b9e27f MB |
16496 | fi |
16497 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
16498 | if test $ac_cv_type_size_t = no; then | |
16499 | cat >> confdefs.h <<\EOF | |
90dd450c | 16500 | #define size_t unsigned |
a0b9e27f | 16501 | EOF |
90dd450c VZ |
16502 | |
16503 | fi | |
16504 | ||
a0b9e27f | 16505 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
5d3f766d | 16506 | echo "configure:16507: checking for uid_t in sys/types.h" >&5 |
a0b9e27f MB |
16507 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
16508 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 16509 | else |
a0b9e27f | 16510 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 16511 | #line 16512 "configure" |
b3e8d00a | 16512 | #include "confdefs.h" |
90dd450c | 16513 | #include <sys/types.h> |
a0b9e27f | 16514 | EOF |
90dd450c VZ |
16515 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
16516 | egrep "uid_t" >/dev/null 2>&1; then | |
a0b9e27f | 16517 | rm -rf conftest* |
90dd450c | 16518 | ac_cv_type_uid_t=yes |
b3e8d00a | 16519 | else |
a0b9e27f | 16520 | rm -rf conftest* |
90dd450c | 16521 | ac_cv_type_uid_t=no |
b3e8d00a | 16522 | fi |
90dd450c | 16523 | rm -f conftest* |
b3e8d00a | 16524 | |
4f14bcd8 | 16525 | fi |
247f5006 | 16526 | |
a0b9e27f MB |
16527 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
16528 | if test $ac_cv_type_uid_t = no; then | |
16529 | cat >> confdefs.h <<\EOF | |
90dd450c | 16530 | #define uid_t int |
a0b9e27f | 16531 | EOF |
247f5006 | 16532 | |
a0b9e27f | 16533 | cat >> confdefs.h <<\EOF |
90dd450c | 16534 | #define gid_t int |
a0b9e27f | 16535 | EOF |
4f14bcd8 | 16536 | |
b3e8d00a | 16537 | fi |
b3e8d00a | 16538 | |
8284b0c5 MB |
16539 | |
16540 | ||
a0b9e27f MB |
16541 | ac_ext=C |
16542 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16543 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16544 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16545 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16546 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c | 16547 | |
a0b9e27f | 16548 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
5d3f766d | 16549 | echo "configure:16550: checking if size_t is unsigned int" >&5 |
a0b9e27f MB |
16550 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
16551 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 16552 | else |
a0b9e27f | 16553 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 16554 | #line 16555 "configure" |
10f2d63a | 16555 | #include "confdefs.h" |
90dd450c | 16556 | #include <stddef.h> |
a0b9e27f | 16557 | int main() { |
90dd450c VZ |
16558 | |
16559 | return 0; } | |
16560 | ||
16561 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
16562 | ||
16563 | int bar() { | |
a0b9e27f MB |
16564 | |
16565 | ; return 0; } | |
16566 | EOF | |
5d3f766d | 16567 | if { (eval echo configure:16568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16568 | rm -rf conftest* |
90dd450c | 16569 | wx_cv_size_t_is_uint=no |
698dcdb6 | 16570 | else |
a0b9e27f MB |
16571 | echo "configure: failed program was:" >&5 |
16572 | cat conftest.$ac_ext >&5 | |
16573 | rm -rf conftest* | |
16574 | wx_cv_size_t_is_uint=yes | |
16575 | ||
5c6fa7d2 | 16576 | fi |
a0b9e27f | 16577 | rm -f conftest* |
8284b0c5 | 16578 | |
247f5006 | 16579 | fi |
a0b9e27f MB |
16580 | |
16581 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 16582 | |
90dd450c | 16583 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
a0b9e27f | 16584 | cat >> confdefs.h <<\EOF |
90dd450c | 16585 | #define wxSIZE_T_IS_UINT 1 |
a0b9e27f | 16586 | EOF |
698dcdb6 | 16587 | |
90dd450c | 16588 | else |
a0b9e27f | 16589 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
5d3f766d | 16590 | echo "configure:16591: checking if size_t is unsigned long" >&5 |
a0b9e27f MB |
16591 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
16592 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16593 | else |
a0b9e27f | 16594 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 16595 | #line 16596 "configure" |
10f2d63a | 16596 | #include "confdefs.h" |
90dd450c | 16597 | #include <stddef.h> |
a0b9e27f | 16598 | int main() { |
90dd450c VZ |
16599 | |
16600 | return 0; } | |
16601 | ||
16602 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
16603 | ||
16604 | int bar() { | |
a0b9e27f MB |
16605 | |
16606 | ; return 0; } | |
16607 | EOF | |
5d3f766d | 16608 | if { (eval echo configure:16609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16609 | rm -rf conftest* |
90dd450c | 16610 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 16611 | else |
a0b9e27f MB |
16612 | echo "configure: failed program was:" >&5 |
16613 | cat conftest.$ac_ext >&5 | |
16614 | rm -rf conftest* | |
16615 | wx_cv_size_t_is_ulong=yes | |
16616 | ||
5c6fa7d2 | 16617 | fi |
a0b9e27f MB |
16618 | rm -f conftest* |
16619 | ||
247f5006 | 16620 | fi |
a0b9e27f MB |
16621 | |
16622 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 16623 | |
90dd450c | 16624 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
a0b9e27f | 16625 | cat >> confdefs.h <<\EOF |
90dd450c | 16626 | #define wxSIZE_T_IS_ULONG 1 |
a0b9e27f | 16627 | EOF |
4f14bcd8 GD |
16628 | |
16629 | fi | |
90dd450c | 16630 | fi |
1e487827 | 16631 | |
90dd450c | 16632 | ac_ext=c |
a0b9e27f | 16633 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16634 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16635 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16636 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16637 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 16638 | |
5c6fa7d2 | 16639 | |
8284b0c5 | 16640 | |
a0b9e27f | 16641 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
5d3f766d | 16642 | echo "configure:16643: checking for pw_gecos in struct passwd" >&5 |
a0b9e27f MB |
16643 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
16644 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16645 | else |
a0b9e27f MB |
16646 | |
16647 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 16648 | #line 16649 "configure" |
4f14bcd8 | 16649 | #include "confdefs.h" |
90dd450c | 16650 | #include <pwd.h> |
a0b9e27f | 16651 | int main() { |
f6bcfd97 | 16652 | |
90dd450c VZ |
16653 | char *p; |
16654 | struct passwd *pw; | |
16655 | p = pw->pw_gecos; | |
a0b9e27f MB |
16656 | |
16657 | ; return 0; } | |
16658 | EOF | |
5d3f766d | 16659 | if { (eval echo configure:16660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16660 | rm -rf conftest* |
16661 | ||
90dd450c | 16662 | wx_cv_struct_pw_gecos=yes |
a0b9e27f | 16663 | |
10f2d63a | 16664 | else |
a0b9e27f MB |
16665 | echo "configure: failed program was:" >&5 |
16666 | cat conftest.$ac_ext >&5 | |
16667 | rm -rf conftest* | |
16668 | ||
90dd450c | 16669 | wx_cv_struct_pw_gecos=no |
a0b9e27f MB |
16670 | |
16671 | ||
5c6fa7d2 | 16672 | fi |
a0b9e27f MB |
16673 | rm -f conftest* |
16674 | ||
247f5006 VZ |
16675 | |
16676 | fi | |
a0b9e27f MB |
16677 | |
16678 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 16679 | |
90dd450c | 16680 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
a0b9e27f | 16681 | cat >> confdefs.h <<\EOF |
90dd450c | 16682 | #define HAVE_PW_GECOS 1 |
a0b9e27f | 16683 | EOF |
c521c494 | 16684 | |
90dd450c | 16685 | fi |
4f14bcd8 | 16686 | |
8284b0c5 | 16687 | |
d29b553b | 16688 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
a0b9e27f | 16689 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16690 | #define wxUSE_WCHAR_T 1 |
a0b9e27f | 16691 | EOF |
d74f4b5a | 16692 | |
8284b0c5 | 16693 | |
d74f4b5a VZ |
16694 | WCSLEN_FOUND=0 |
16695 | WCHAR_LINK= | |
a0b9e27f | 16696 | for ac_func in wcslen |
7a30264c | 16697 | do |
a0b9e27f | 16698 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 16699 | echo "configure:16700: checking for $ac_func" >&5 |
a0b9e27f MB |
16700 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16701 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16702 | else | |
16703 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 16704 | #line 16705 "configure" |
4f14bcd8 | 16705 | #include "confdefs.h" |
7a30264c | 16706 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16707 | which can conflict with char $ac_func(); below. */ |
7a30264c | 16708 | #include <assert.h> |
4f14bcd8 GD |
16709 | /* Override any gcc2 internal prototype to avoid an error. */ |
16710 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16711 | builtin and then its argument prototype would still apply. */ |
16712 | char $ac_func(); | |
16713 | ||
16714 | int main() { | |
16715 | ||
7a30264c VZ |
16716 | /* The GNU C library defines this for functions which it implements |
16717 | to always fail with ENOSYS. Some functions are actually named | |
16718 | something starting with __ and the normal name is an alias. */ | |
16719 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16720 | choke me | |
16721 | #else | |
a0b9e27f | 16722 | $ac_func(); |
7a30264c VZ |
16723 | #endif |
16724 | ||
a0b9e27f MB |
16725 | ; return 0; } |
16726 | EOF | |
5d3f766d | 16727 | if { (eval echo configure:16728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16728 | rm -rf conftest* |
16729 | eval "ac_cv_func_$ac_func=yes" | |
16730 | else | |
16731 | echo "configure: failed program was:" >&5 | |
16732 | cat conftest.$ac_ext >&5 | |
16733 | rm -rf conftest* | |
16734 | eval "ac_cv_func_$ac_func=no" | |
16735 | fi | |
16736 | rm -f conftest* | |
16737 | fi | |
16738 | ||
16739 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16740 | echo "$ac_t""yes" 1>&6 | |
16741 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16742 | cat >> confdefs.h <<EOF | |
16743 | #define $ac_tr_func 1 | |
16744 | EOF | |
d74f4b5a | 16745 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16746 | else |
16747 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
16748 | fi |
16749 | done | |
9d8deca0 | 16750 | |
8284b0c5 | 16751 | |
d74f4b5a | 16752 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 16753 | if test "$TOOLKIT" = "MSW"; then |
a0b9e27f | 16754 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
5d3f766d | 16755 | echo "configure:16756: checking for wcslen in -lmsvcrt" >&5 |
a0b9e27f MB |
16756 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
16757 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16758 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16759 | else |
a0b9e27f | 16760 | ac_save_LIBS="$LIBS" |
7a30264c | 16761 | LIBS="-lmsvcrt $LIBS" |
a0b9e27f | 16762 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 16763 | #line 16764 "configure" |
10f2d63a | 16764 | #include "confdefs.h" |
4f14bcd8 GD |
16765 | /* Override any gcc2 internal prototype to avoid an error. */ |
16766 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16767 | builtin and then its argument prototype would still apply. */ |
16768 | char wcslen(); | |
16769 | ||
16770 | int main() { | |
16771 | wcslen() | |
16772 | ; return 0; } | |
16773 | EOF | |
5d3f766d | 16774 | if { (eval echo configure:16775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16775 | rm -rf conftest* |
16776 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16777 | else | |
16778 | echo "configure: failed program was:" >&5 | |
16779 | cat conftest.$ac_ext >&5 | |
16780 | rm -rf conftest* | |
16781 | eval "ac_cv_lib_$ac_lib_var=no" | |
16782 | fi | |
16783 | rm -f conftest* | |
16784 | LIBS="$ac_save_LIBS" | |
16785 | ||
16786 | fi | |
16787 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16788 | echo "$ac_t""yes" 1>&6 | |
d74f4b5a | 16789 | WCHAR_OK=1 |
a0b9e27f MB |
16790 | else |
16791 | echo "$ac_t""no" 1>&6 | |
d29b553b | 16792 | fi |
698dcdb6 | 16793 | |
7a30264c | 16794 | else |
a0b9e27f | 16795 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
5d3f766d | 16796 | echo "configure:16797: checking for wcslen in -lw" >&5 |
a0b9e27f MB |
16797 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
16798 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16799 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16800 | else |
a0b9e27f | 16801 | ac_save_LIBS="$LIBS" |
7a30264c | 16802 | LIBS="-lw $LIBS" |
a0b9e27f | 16803 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 16804 | #line 16805 "configure" |
95c8801c | 16805 | #include "confdefs.h" |
4f14bcd8 GD |
16806 | /* Override any gcc2 internal prototype to avoid an error. */ |
16807 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16808 | builtin and then its argument prototype would still apply. */ |
16809 | char wcslen(); | |
52127426 | 16810 | |
a0b9e27f MB |
16811 | int main() { |
16812 | wcslen() | |
16813 | ; return 0; } | |
16814 | EOF | |
5d3f766d | 16815 | if { (eval echo configure:16816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16816 | rm -rf conftest* |
16817 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16818 | else | |
16819 | echo "configure: failed program was:" >&5 | |
16820 | cat conftest.$ac_ext >&5 | |
16821 | rm -rf conftest* | |
16822 | eval "ac_cv_lib_$ac_lib_var=no" | |
16823 | fi | |
16824 | rm -f conftest* | |
16825 | LIBS="$ac_save_LIBS" | |
16826 | ||
16827 | fi | |
16828 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16829 | echo "$ac_t""yes" 1>&6 | |
16830 | ||
7a30264c | 16831 | WCHAR_LINK=" -lw" |
d74f4b5a | 16832 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16833 | |
16834 | else | |
16835 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16836 | fi |
10f2d63a | 16837 | |
7a30264c | 16838 | fi |
d29b553b | 16839 | fi |
95c8801c | 16840 | |
d74f4b5a | 16841 | if test "$WCSLEN_FOUND" = 1; then |
a0b9e27f | 16842 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16843 | #define HAVE_WCSLEN 1 |
a0b9e27f | 16844 | EOF |
10f2d63a | 16845 | |
d74f4b5a | 16846 | fi |
52127426 | 16847 | |
a0b9e27f | 16848 | for ac_func in wcsrtombs |
eb4efbdc | 16849 | do |
a0b9e27f | 16850 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 16851 | echo "configure:16852: checking for $ac_func" >&5 |
a0b9e27f MB |
16852 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16853 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16854 | else | |
16855 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 16856 | #line 16857 "configure" |
eb4efbdc VZ |
16857 | #include "confdefs.h" |
16858 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16859 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
16860 | #include <assert.h> |
16861 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4f14bcd8 | 16862 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16863 | builtin and then its argument prototype would still apply. */ |
16864 | char $ac_func(); | |
16865 | ||
16866 | int main() { | |
16867 | ||
10f2d63a VZ |
16868 | /* The GNU C library defines this for functions which it implements |
16869 | to always fail with ENOSYS. Some functions are actually named | |
16870 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 16871 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
16872 | choke me |
16873 | #else | |
a0b9e27f | 16874 | $ac_func(); |
10f2d63a VZ |
16875 | #endif |
16876 | ||
a0b9e27f MB |
16877 | ; return 0; } |
16878 | EOF | |
5d3f766d | 16879 | if { (eval echo configure:16880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16880 | rm -rf conftest* |
16881 | eval "ac_cv_func_$ac_func=yes" | |
16882 | else | |
16883 | echo "configure: failed program was:" >&5 | |
16884 | cat conftest.$ac_ext >&5 | |
16885 | rm -rf conftest* | |
16886 | eval "ac_cv_func_$ac_func=no" | |
16887 | fi | |
16888 | rm -f conftest* | |
16889 | fi | |
270a909e | 16890 | |
a0b9e27f MB |
16891 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16892 | echo "$ac_t""yes" 1>&6 | |
16893 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16894 | cat >> confdefs.h <<EOF | |
16895 | #define $ac_tr_func 1 | |
16896 | EOF | |
16897 | ||
16898 | else | |
16899 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16900 | fi |
247f5006 | 16901 | done |
1e487827 | 16902 | |
af15babd | 16903 | else |
a0b9e27f | 16904 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
7b4a847f | 16905 | fi |
52127426 | 16906 | |
8284b0c5 | 16907 | |
a0b9e27f MB |
16908 | ac_ext=C |
16909 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
247f5006 | 16910 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16911 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16912 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16913 | cross_compiling=$ac_cv_prog_cxx_cross | |
af15babd | 16914 | |
247f5006 VZ |
16915 | |
16916 | for ac_func in vsnprintf | |
16917 | do | |
a0b9e27f | 16918 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 16919 | echo "configure:16920: checking for $ac_func" >&5 |
a0b9e27f MB |
16920 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16922 | else | |
16923 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 16924 | #line 16925 "configure" |
af15babd | 16925 | #include "confdefs.h" |
247f5006 | 16926 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16927 | which can conflict with char $ac_func(); below. */ |
247f5006 VZ |
16928 | #include <assert.h> |
16929 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16930 | #ifdef __cplusplus | |
16931 | extern "C" | |
16932 | #endif | |
16933 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16934 | builtin and then its argument prototype would still apply. */ |
16935 | char $ac_func(); | |
16936 | ||
16937 | int main() { | |
16938 | ||
247f5006 VZ |
16939 | /* The GNU C library defines this for functions which it implements |
16940 | to always fail with ENOSYS. Some functions are actually named | |
16941 | something starting with __ and the normal name is an alias. */ | |
16942 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16943 | choke me | |
16944 | #else | |
a0b9e27f | 16945 | $ac_func(); |
247f5006 | 16946 | #endif |
af15babd | 16947 | |
a0b9e27f MB |
16948 | ; return 0; } |
16949 | EOF | |
5d3f766d | 16950 | if { (eval echo configure:16951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16951 | rm -rf conftest* |
16952 | eval "ac_cv_func_$ac_func=yes" | |
16953 | else | |
16954 | echo "configure: failed program was:" >&5 | |
16955 | cat conftest.$ac_ext >&5 | |
16956 | rm -rf conftest* | |
16957 | eval "ac_cv_func_$ac_func=no" | |
16958 | fi | |
16959 | rm -f conftest* | |
16960 | fi | |
52127426 | 16961 | |
a0b9e27f MB |
16962 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16963 | echo "$ac_t""yes" 1>&6 | |
16964 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16965 | cat >> confdefs.h <<EOF | |
16966 | #define $ac_tr_func 1 | |
16967 | EOF | |
16968 | ||
16969 | else | |
16970 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 16971 | fi |
247f5006 | 16972 | done |
8284b0c5 | 16973 | |
4f14bcd8 | 16974 | |
247f5006 | 16975 | if test "$wxUSE_UNICODE" = yes; then |
a0b9e27f | 16976 | for ac_func in fputwc wprintf vswprintf |
d74f4b5a | 16977 | do |
a0b9e27f | 16978 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 16979 | echo "configure:16980: checking for $ac_func" >&5 |
a0b9e27f MB |
16980 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16982 | else | |
16983 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 16984 | #line 16985 "configure" |
d74f4b5a VZ |
16985 | #include "confdefs.h" |
16986 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16987 | which can conflict with char $ac_func(); below. */ |
d74f4b5a VZ |
16988 | #include <assert.h> |
16989 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
16990 | #ifdef __cplusplus |
16991 | extern "C" | |
16992 | #endif | |
d74f4b5a | 16993 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16994 | builtin and then its argument prototype would still apply. */ |
16995 | char $ac_func(); | |
16996 | ||
16997 | int main() { | |
16998 | ||
d74f4b5a VZ |
16999 | /* The GNU C library defines this for functions which it implements |
17000 | to always fail with ENOSYS. Some functions are actually named | |
17001 | something starting with __ and the normal name is an alias. */ | |
17002 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17003 | choke me | |
17004 | #else | |
a0b9e27f | 17005 | $ac_func(); |
d74f4b5a VZ |
17006 | #endif |
17007 | ||
a0b9e27f MB |
17008 | ; return 0; } |
17009 | EOF | |
5d3f766d | 17010 | if { (eval echo configure:17011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17011 | rm -rf conftest* |
17012 | eval "ac_cv_func_$ac_func=yes" | |
17013 | else | |
17014 | echo "configure: failed program was:" >&5 | |
17015 | cat conftest.$ac_ext >&5 | |
17016 | rm -rf conftest* | |
17017 | eval "ac_cv_func_$ac_func=no" | |
17018 | fi | |
17019 | rm -f conftest* | |
17020 | fi | |
d74f4b5a | 17021 | |
a0b9e27f MB |
17022 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17023 | echo "$ac_t""yes" 1>&6 | |
17024 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17025 | cat >> confdefs.h <<EOF | |
17026 | #define $ac_tr_func 1 | |
17027 | EOF | |
17028 | ||
17029 | else | |
17030 | echo "$ac_t""no" 1>&6 | |
d74f4b5a VZ |
17031 | fi |
17032 | done | |
17033 | ||
79668cae | 17034 | echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6 |
5d3f766d | 17035 | echo "configure:17036: checking for _vsnwprintf" >&5 |
79668cae | 17036 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 17037 | #line 17038 "configure" |
79668cae MB |
17038 | #include "confdefs.h" |
17039 | #include <wchar.h> | |
17040 | int main() { | |
17041 | &_vsnwprintf; | |
17042 | ; return 0; } | |
17043 | EOF | |
5d3f766d | 17044 | if { (eval echo configure:17045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
79668cae MB |
17045 | rm -rf conftest* |
17046 | echo "$ac_t""yes" 1>&6 | |
17047 | cat >> confdefs.h <<\EOF | |
17048 | #define HAVE__VSNWPRINTF 1 | |
17049 | EOF | |
17050 | ||
17051 | else | |
17052 | echo "configure: failed program was:" >&5 | |
17053 | cat conftest.$ac_ext >&5 | |
17054 | rm -rf conftest* | |
17055 | echo "$ac_t""no" 1>&6 | |
17056 | fi | |
17057 | rm -f conftest*; | |
d74f4b5a VZ |
17058 | fi |
17059 | ||
247f5006 | 17060 | ac_ext=c |
a0b9e27f | 17061 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
247f5006 | 17062 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17063 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17064 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17065 | cross_compiling=$ac_cv_prog_cc_cross | |
247f5006 VZ |
17066 | |
17067 | ||
17068 | ||
17069 | ||
4f14bcd8 | 17070 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 17071 | |
8284b0c5 MB |
17072 | |
17073 | ||
a0b9e27f MB |
17074 | ac_ext=C |
17075 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17076 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17077 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17078 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17079 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17080 | |
52127426 | 17081 | |
a0b9e27f MB |
17082 | |
17083 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
17084 | if test "${with_libiconv_prefix+set}" = set; then |
17085 | withval="$with_libiconv_prefix" | |
a0b9e27f | 17086 | |
b040e242 VS |
17087 | for dir in `echo "$withval" | tr : ' '`; do |
17088 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
17089 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
17090 | done | |
a0b9e27f MB |
17091 | |
17092 | fi | |
b040e242 VS |
17093 | |
17094 | ||
a0b9e27f | 17095 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
5d3f766d | 17096 | echo "configure:17097: checking for iconv" >&5 |
a0b9e27f MB |
17097 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
17098 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17099 | else |
a0b9e27f | 17100 | |
b040e242 VS |
17101 | am_cv_func_iconv="no, consider installing GNU libiconv" |
17102 | am_cv_lib_iconv=no | |
a0b9e27f | 17103 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 17104 | #line 17105 "configure" |
af15babd | 17105 | #include "confdefs.h" |
b040e242 | 17106 | #include <stdlib.h> |
4f14bcd8 | 17107 | #include <iconv.h> |
a0b9e27f | 17108 | int main() { |
b040e242 VS |
17109 | iconv_t cd = iconv_open("",""); |
17110 | iconv(cd,NULL,NULL,NULL,NULL); | |
17111 | iconv_close(cd); | |
a0b9e27f MB |
17112 | ; return 0; } |
17113 | EOF | |
5d3f766d | 17114 | if { (eval echo configure:17115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17115 | rm -rf conftest* |
b040e242 | 17116 | am_cv_func_iconv=yes |
af15babd | 17117 | else |
a0b9e27f MB |
17118 | echo "configure: failed program was:" >&5 |
17119 | cat conftest.$ac_ext >&5 | |
b040e242 | 17120 | fi |
a0b9e27f | 17121 | rm -f conftest* |
b040e242 VS |
17122 | if test "$am_cv_func_iconv" != yes; then |
17123 | am_save_LIBS="$LIBS" | |
17124 | LIBS="$LIBS -liconv" | |
a0b9e27f | 17125 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 17126 | #line 17127 "configure" |
b040e242 VS |
17127 | #include "confdefs.h" |
17128 | #include <stdlib.h> | |
17129 | #include <iconv.h> | |
a0b9e27f | 17130 | int main() { |
b040e242 VS |
17131 | iconv_t cd = iconv_open("",""); |
17132 | iconv(cd,NULL,NULL,NULL,NULL); | |
17133 | iconv_close(cd); | |
a0b9e27f MB |
17134 | ; return 0; } |
17135 | EOF | |
5d3f766d | 17136 | if { (eval echo configure:17137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17137 | rm -rf conftest* |
b040e242 VS |
17138 | am_cv_lib_iconv=yes |
17139 | am_cv_func_iconv=yes | |
17140 | else | |
a0b9e27f MB |
17141 | echo "configure: failed program was:" >&5 |
17142 | cat conftest.$ac_ext >&5 | |
af15babd | 17143 | fi |
a0b9e27f | 17144 | rm -f conftest* |
b040e242 VS |
17145 | LIBS="$am_save_LIBS" |
17146 | fi | |
a0b9e27f | 17147 | |
247f5006 | 17148 | fi |
247f5006 | 17149 | |
a0b9e27f MB |
17150 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
17151 | if test "$am_cv_func_iconv" = yes; then | |
17152 | cat >> confdefs.h <<\EOF | |
b040e242 | 17153 | #define HAVE_ICONV 1 |
a0b9e27f | 17154 | EOF |
b040e242 | 17155 | |
a0b9e27f | 17156 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
5d3f766d | 17157 | echo "configure:17158: checking if iconv needs const" >&5 |
a0b9e27f MB |
17158 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
17159 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 17160 | else |
a0b9e27f | 17161 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 17162 | #line 17163 "configure" |
b040e242 VS |
17163 | #include "confdefs.h" |
17164 | ||
17165 | #include <stdlib.h> | |
17166 | #include <iconv.h> | |
17167 | extern | |
17168 | #ifdef __cplusplus | |
17169 | "C" | |
17170 | #endif | |
17171 | #if defined(__STDC__) || defined(__cplusplus) | |
17172 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
17173 | #else | |
17174 | size_t iconv(); | |
17175 | #endif | |
a0b9e27f MB |
17176 | |
17177 | int main() { | |
af15babd | 17178 | |
a0b9e27f MB |
17179 | ; return 0; } |
17180 | EOF | |
5d3f766d | 17181 | if { (eval echo configure:17182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17182 | rm -rf conftest* |
b7043674 | 17183 | wx_cv_func_iconv_const="no" |
b040e242 | 17184 | else |
a0b9e27f MB |
17185 | echo "configure: failed program was:" >&5 |
17186 | cat conftest.$ac_ext >&5 | |
17187 | rm -rf conftest* | |
17188 | wx_cv_func_iconv_const="yes" | |
17189 | ||
5c6fa7d2 | 17190 | fi |
a0b9e27f MB |
17191 | rm -f conftest* |
17192 | ||
247f5006 | 17193 | fi |
a0b9e27f MB |
17194 | |
17195 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
17196 | |
17197 | iconv_const= | |
1c405bb5 | 17198 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
17199 | iconv_const="const" |
17200 | fi | |
17201 | ||
a0b9e27f | 17202 | cat >> confdefs.h <<EOF |
f09359cf | 17203 | #define ICONV_CONST $iconv_const |
a0b9e27f | 17204 | EOF |
b040e242 VS |
17205 | |
17206 | fi | |
17207 | LIBICONV= | |
17208 | if test "$am_cv_lib_iconv" = yes; then | |
17209 | LIBICONV="-liconv" | |
17210 | fi | |
a0b9e27f | 17211 | |
b040e242 VS |
17212 | |
17213 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 17214 | ac_ext=c |
a0b9e27f | 17215 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17216 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17217 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17218 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17219 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 17220 | |
5c6fa7d2 | 17221 | |
8284b0c5 | 17222 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 17223 | for ac_func in sigaction |
af15babd | 17224 | do |
a0b9e27f | 17225 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 17226 | echo "configure:17227: checking for $ac_func" >&5 |
a0b9e27f MB |
17227 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17228 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17229 | else | |
17230 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 17231 | #line 17232 "configure" |
af15babd VZ |
17232 | #include "confdefs.h" |
17233 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17234 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17235 | #include <assert.h> |
17236 | /* Override any gcc2 internal prototype to avoid an error. */ | |
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 | ||
af15babd VZ |
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(); |
af15babd VZ |
17250 | #endif |
17251 | ||
a0b9e27f MB |
17252 | ; return 0; } |
17253 | EOF | |
5d3f766d | 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 | |
7b4a847f | 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 | |
4f14bcd8 GD |
17275 | fi |
17276 | done | |
17277 | ||
8284b0c5 | 17278 | |
4f14bcd8 | 17279 | if test "$ac_cv_func_sigaction" = "no"; then |
a0b9e27f | 17280 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
17281 | wxUSE_ON_FATAL_EXCEPTION=no |
17282 | fi | |
17283 | ||
17284 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a0b9e27f MB |
17285 | |
17286 | ac_ext=C | |
17287 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 17288 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17289 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17290 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17291 | cross_compiling=$ac_cv_prog_cxx_cross | |
7b4a847f | 17292 | |
5c6fa7d2 | 17293 | |
a0b9e27f | 17294 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
5d3f766d | 17295 | echo "configure:17296: checking for sa_handler type" >&5 |
a0b9e27f MB |
17296 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
17297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 17298 | else |
a0b9e27f MB |
17299 | |
17300 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 17301 | #line 17302 "configure" |
af15babd | 17302 | #include "confdefs.h" |
4f14bcd8 | 17303 | #include <signal.h> |
a0b9e27f | 17304 | int main() { |
4f14bcd8 GD |
17305 | |
17306 | extern void testSigHandler(int); | |
17307 | ||
17308 | struct sigaction sa; | |
17309 | sa.sa_handler = testSigHandler; | |
a0b9e27f MB |
17310 | |
17311 | ; return 0; } | |
17312 | EOF | |
5d3f766d | 17313 | if { (eval echo configure:17314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17314 | rm -rf conftest* |
17315 | ||
4f14bcd8 | 17316 | wx_cv_type_sa_handler=int |
a0b9e27f | 17317 | |
af15babd | 17318 | else |
a0b9e27f MB |
17319 | echo "configure: failed program was:" >&5 |
17320 | cat conftest.$ac_ext >&5 | |
17321 | rm -rf conftest* | |
17322 | ||
4f14bcd8 | 17323 | wx_cv_type_sa_handler=void |
a0b9e27f | 17324 | |
5c6fa7d2 | 17325 | fi |
a0b9e27f MB |
17326 | rm -f conftest* |
17327 | ||
247f5006 | 17328 | fi |
a0b9e27f MB |
17329 | |
17330 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
17331 | |
17332 | ac_ext=c | |
a0b9e27f | 17333 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17334 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17335 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17336 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17337 | cross_compiling=$ac_cv_prog_cc_cross | |
579d8138 | 17338 | |
8284b0c5 | 17339 | |
a0b9e27f | 17340 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17341 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
a0b9e27f | 17342 | EOF |
af15babd | 17343 | |
4f14bcd8 GD |
17344 | fi |
17345 | fi | |
af15babd | 17346 | |
a1d22ad7 | 17347 | for ac_func in mkstemp mktemp |
af15babd | 17348 | do |
a0b9e27f | 17349 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 17350 | echo "configure:17351: checking for $ac_func" >&5 |
a0b9e27f MB |
17351 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17352 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17353 | else | |
17354 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 17355 | #line 17356 "configure" |
af15babd VZ |
17356 | #include "confdefs.h" |
17357 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17358 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17359 | #include <assert.h> |
17360 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17361 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17362 | builtin and then its argument prototype would still apply. */ |
17363 | char $ac_func(); | |
17364 | ||
17365 | int main() { | |
17366 | ||
af15babd VZ |
17367 | /* The GNU C library defines this for functions which it implements |
17368 | to always fail with ENOSYS. Some functions are actually named | |
17369 | something starting with __ and the normal name is an alias. */ | |
17370 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17371 | choke me | |
17372 | #else | |
a0b9e27f | 17373 | $ac_func(); |
af15babd VZ |
17374 | #endif |
17375 | ||
a0b9e27f MB |
17376 | ; return 0; } |
17377 | EOF | |
5d3f766d | 17378 | if { (eval echo configure:17379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17379 | rm -rf conftest* |
17380 | eval "ac_cv_func_$ac_func=yes" | |
17381 | else | |
17382 | echo "configure: failed program was:" >&5 | |
17383 | cat conftest.$ac_ext >&5 | |
17384 | rm -rf conftest* | |
17385 | eval "ac_cv_func_$ac_func=no" | |
17386 | fi | |
17387 | rm -f conftest* | |
17388 | fi | |
af15babd | 17389 | |
a0b9e27f MB |
17390 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17391 | echo "$ac_t""yes" 1>&6 | |
17392 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17393 | cat >> confdefs.h <<EOF | |
17394 | #define $ac_tr_func 1 | |
17395 | EOF | |
ade35f11 | 17396 | break |
a0b9e27f MB |
17397 | else |
17398 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
17399 | fi |
17400 | done | |
17401 | ||
8284b0c5 | 17402 | |
a0b9e27f | 17403 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
5d3f766d | 17404 | echo "configure:17405: checking for statfs" >&5 |
a0b9e27f MB |
17405 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
17406 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17407 | else |
a0b9e27f | 17408 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 17409 | #line 17410 "configure" |
4f14bcd8 GD |
17410 | #include "confdefs.h" |
17411 | ||
17412 | #if defined(__BSD__) | |
17413 | #include <sys/param.h> | |
17414 | #include <sys/mount.h> | |
17415 | #else | |
17416 | #include <sys/vfs.h> | |
17417 | #endif | |
a0b9e27f MB |
17418 | |
17419 | int main() { | |
4f14bcd8 GD |
17420 | |
17421 | long l; | |
17422 | struct statfs fs; | |
17423 | statfs("/", &fs); | |
17424 | l = fs.f_bsize; | |
17425 | l += fs.f_blocks; | |
17426 | l += fs.f_bavail; | |
a0b9e27f MB |
17427 | |
17428 | ; return 0; } | |
17429 | EOF | |
5d3f766d | 17430 | if { (eval echo configure:17431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17431 | rm -rf conftest* |
17432 | ||
4f14bcd8 | 17433 | wx_cv_func_statfs=yes |
a0b9e27f | 17434 | |
4f14bcd8 | 17435 | else |
a0b9e27f MB |
17436 | echo "configure: failed program was:" >&5 |
17437 | cat conftest.$ac_ext >&5 | |
17438 | rm -rf conftest* | |
17439 | ||
4f14bcd8 | 17440 | wx_cv_func_statfs=no |
a0b9e27f MB |
17441 | |
17442 | ||
5c6fa7d2 | 17443 | fi |
a0b9e27f | 17444 | rm -f conftest* |
8284b0c5 | 17445 | |
247f5006 | 17446 | fi |
a0b9e27f MB |
17447 | |
17448 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
17449 | |
17450 | if test "$wx_cv_func_statfs" = "yes"; then | |
a0b9e27f | 17451 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17452 | #define HAVE_STATFS 1 |
a0b9e27f | 17453 | EOF |
4f14bcd8 GD |
17454 | |
17455 | else | |
a0b9e27f | 17456 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
5d3f766d | 17457 | echo "configure:17458: checking for statvfs" >&5 |
a0b9e27f MB |
17458 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
17459 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17460 | else |
a0b9e27f | 17461 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 17462 | #line 17463 "configure" |
af15babd | 17463 | #include "confdefs.h" |
af15babd | 17464 | |
4f14bcd8 | 17465 | #include <sys/statvfs.h> |
a0b9e27f MB |
17466 | |
17467 | int main() { | |
af15babd | 17468 | |
4f14bcd8 GD |
17469 | long l; |
17470 | struct statvfs fs; | |
17471 | statvfs("/", &fs); | |
17472 | l = fs.f_bsize; | |
17473 | l += fs.f_blocks; | |
17474 | l += fs.f_bavail; | |
a0b9e27f MB |
17475 | |
17476 | ; return 0; } | |
17477 | EOF | |
5d3f766d | 17478 | if { (eval echo configure:17479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17479 | rm -rf conftest* |
17480 | ||
4f14bcd8 | 17481 | wx_cv_func_statvfs=yes |
a0b9e27f | 17482 | |
af15babd | 17483 | else |
a0b9e27f MB |
17484 | echo "configure: failed program was:" >&5 |
17485 | cat conftest.$ac_ext >&5 | |
17486 | rm -rf conftest* | |
17487 | ||
4f14bcd8 | 17488 | wx_cv_func_statvfs=no |
a0b9e27f MB |
17489 | |
17490 | ||
5c6fa7d2 | 17491 | fi |
a0b9e27f MB |
17492 | rm -f conftest* |
17493 | ||
247f5006 | 17494 | fi |
a0b9e27f MB |
17495 | |
17496 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 17497 | |
4f14bcd8 | 17498 | if test "$wx_cv_func_statvfs" = "yes"; then |
a0b9e27f | 17499 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17500 | #define HAVE_STATVFS 1 |
a0b9e27f | 17501 | EOF |
af15babd | 17502 | |
4f14bcd8 | 17503 | else |
a0b9e27f | 17504 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 |
4f14bcd8 GD |
17505 | fi |
17506 | fi | |
af15babd | 17507 | |
4f14bcd8 | 17508 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 17509 | for ac_func in fcntl flock |
af15babd | 17510 | do |
a0b9e27f | 17511 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 17512 | echo "configure:17513: checking for $ac_func" >&5 |
a0b9e27f MB |
17513 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17514 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17515 | else | |
17516 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 17517 | #line 17518 "configure" |
af15babd VZ |
17518 | #include "confdefs.h" |
17519 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17520 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17521 | #include <assert.h> |
17522 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 17523 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17524 | builtin and then its argument prototype would still apply. */ |
17525 | char $ac_func(); | |
17526 | ||
17527 | int main() { | |
17528 | ||
af15babd VZ |
17529 | /* The GNU C library defines this for functions which it implements |
17530 | to always fail with ENOSYS. Some functions are actually named | |
17531 | something starting with __ and the normal name is an alias. */ | |
17532 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17533 | choke me | |
17534 | #else | |
a0b9e27f | 17535 | $ac_func(); |
af15babd VZ |
17536 | #endif |
17537 | ||
a0b9e27f MB |
17538 | ; return 0; } |
17539 | EOF | |
5d3f766d | 17540 | if { (eval echo configure:17541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17541 | rm -rf conftest* |
17542 | eval "ac_cv_func_$ac_func=yes" | |
17543 | else | |
17544 | echo "configure: failed program was:" >&5 | |
17545 | cat conftest.$ac_ext >&5 | |
17546 | rm -rf conftest* | |
17547 | eval "ac_cv_func_$ac_func=no" | |
17548 | fi | |
17549 | rm -f conftest* | |
17550 | fi | |
17551 | ||
17552 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17553 | echo "$ac_t""yes" 1>&6 | |
17554 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17555 | cat >> confdefs.h <<EOF | |
17556 | #define $ac_tr_func 1 | |
17557 | EOF | |
4f14bcd8 | 17558 | break |
a0b9e27f MB |
17559 | else |
17560 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17561 | fi |
17562 | done | |
17563 | ||
8284b0c5 | 17564 | |
4f14bcd8 | 17565 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
a0b9e27f | 17566 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
17567 | wxUSE_SNGLINST_CHECKER=no |
17568 | fi | |
17569 | fi | |
af15babd | 17570 | |
4f14bcd8 | 17571 | for ac_func in timegm |
af15babd | 17572 | do |
a0b9e27f | 17573 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 17574 | echo "configure:17575: checking for $ac_func" >&5 |
a0b9e27f MB |
17575 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17576 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17577 | else | |
17578 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 17579 | #line 17580 "configure" |
af15babd VZ |
17580 | #include "confdefs.h" |
17581 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17582 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17583 | #include <assert.h> |
17584 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17585 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17586 | builtin and then its argument prototype would still apply. */ |
17587 | char $ac_func(); | |
17588 | ||
17589 | int main() { | |
17590 | ||
af15babd VZ |
17591 | /* The GNU C library defines this for functions which it implements |
17592 | to always fail with ENOSYS. Some functions are actually named | |
17593 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
17594 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
17595 | choke me | |
17596 | #else | |
a0b9e27f | 17597 | $ac_func(); |
247f5006 VZ |
17598 | #endif |
17599 | ||
a0b9e27f MB |
17600 | ; return 0; } |
17601 | EOF | |
5d3f766d | 17602 | if { (eval echo configure:17603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17603 | rm -rf conftest* |
17604 | eval "ac_cv_func_$ac_func=yes" | |
17605 | else | |
17606 | echo "configure: failed program was:" >&5 | |
17607 | cat conftest.$ac_ext >&5 | |
17608 | rm -rf conftest* | |
17609 | eval "ac_cv_func_$ac_func=no" | |
17610 | fi | |
17611 | rm -f conftest* | |
17612 | fi | |
703e0a69 | 17613 | |
a0b9e27f MB |
17614 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17615 | echo "$ac_t""yes" 1>&6 | |
17616 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17617 | cat >> confdefs.h <<EOF | |
17618 | #define $ac_tr_func 1 | |
17619 | EOF | |
17620 | ||
17621 | else | |
17622 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17623 | fi |
17624 | done | |
17625 | ||
8284b0c5 | 17626 | |
4f14bcd8 | 17627 | for ac_func in putenv setenv |
10f2d63a | 17628 | do |
a0b9e27f | 17629 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 17630 | echo "configure:17631: checking for $ac_func" >&5 |
a0b9e27f MB |
17631 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17633 | else | |
17634 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 17635 | #line 17636 "configure" |
af15babd VZ |
17636 | #include "confdefs.h" |
17637 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17638 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17639 | #include <assert.h> |
17640 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17641 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17642 | builtin and then its argument prototype would still apply. */ |
17643 | char $ac_func(); | |
17644 | ||
17645 | int main() { | |
17646 | ||
af15babd VZ |
17647 | /* The GNU C library defines this for functions which it implements |
17648 | to always fail with ENOSYS. Some functions are actually named | |
17649 | something starting with __ and the normal name is an alias. */ | |
17650 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17651 | choke me | |
17652 | #else | |
a0b9e27f | 17653 | $ac_func(); |
af15babd VZ |
17654 | #endif |
17655 | ||
a0b9e27f MB |
17656 | ; return 0; } |
17657 | EOF | |
5d3f766d | 17658 | if { (eval echo configure:17659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17659 | rm -rf conftest* |
17660 | eval "ac_cv_func_$ac_func=yes" | |
17661 | else | |
17662 | echo "configure: failed program was:" >&5 | |
17663 | cat conftest.$ac_ext >&5 | |
17664 | rm -rf conftest* | |
17665 | eval "ac_cv_func_$ac_func=no" | |
17666 | fi | |
17667 | rm -f conftest* | |
17668 | fi | |
17669 | ||
17670 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17671 | echo "$ac_t""yes" 1>&6 | |
17672 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17673 | cat >> confdefs.h <<EOF | |
17674 | #define $ac_tr_func 1 | |
17675 | EOF | |
4f14bcd8 | 17676 | break |
a0b9e27f MB |
17677 | else |
17678 | echo "$ac_t""no" 1>&6 | |
af15babd | 17679 | fi |
af15babd VZ |
17680 | done |
17681 | ||
8284b0c5 | 17682 | |
4f14bcd8 GD |
17683 | HAVE_SOME_SLEEP_FUNC=0 |
17684 | if test "$USE_BEOS" = 1; then | |
a0b9e27f | 17685 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17686 | #define HAVE_SLEEP 1 |
a0b9e27f | 17687 | EOF |
af15babd | 17688 | |
4f14bcd8 | 17689 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
17690 | fi |
17691 | ||
4f14bcd8 | 17692 | if test "$USE_DARWIN" = 1; then |
a0b9e27f | 17693 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17694 | #define HAVE_USLEEP 1 |
a0b9e27f | 17695 | EOF |
10f2d63a | 17696 | |
4f14bcd8 | 17697 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
17698 | fi |
17699 | ||
4f14bcd8 GD |
17700 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
17701 | POSIX4_LINK= | |
a0b9e27f | 17702 | for ac_func in nanosleep |
4f14bcd8 | 17703 | do |
a0b9e27f | 17704 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 17705 | echo "configure:17706: checking for $ac_func" >&5 |
a0b9e27f MB |
17706 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17707 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17708 | else | |
17709 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 17710 | #line 17711 "configure" |
10f2d63a | 17711 | #include "confdefs.h" |
4f14bcd8 | 17712 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17713 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17714 | #include <assert.h> |
10f2d63a VZ |
17715 | /* Override any gcc2 internal prototype to avoid an error. */ |
17716 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17717 | builtin and then its argument prototype would still apply. */ |
17718 | char $ac_func(); | |
17719 | ||
17720 | int main() { | |
17721 | ||
4f14bcd8 GD |
17722 | /* The GNU C library defines this for functions which it implements |
17723 | to always fail with ENOSYS. Some functions are actually named | |
17724 | something starting with __ and the normal name is an alias. */ | |
17725 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17726 | choke me | |
17727 | #else | |
a0b9e27f | 17728 | $ac_func(); |
4f14bcd8 GD |
17729 | #endif |
17730 | ||
a0b9e27f MB |
17731 | ; return 0; } |
17732 | EOF | |
5d3f766d | 17733 | if { (eval echo configure:17734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17734 | rm -rf conftest* |
17735 | eval "ac_cv_func_$ac_func=yes" | |
17736 | else | |
17737 | echo "configure: failed program was:" >&5 | |
17738 | cat conftest.$ac_ext >&5 | |
17739 | rm -rf conftest* | |
17740 | eval "ac_cv_func_$ac_func=no" | |
17741 | fi | |
17742 | rm -f conftest* | |
17743 | fi | |
17744 | ||
17745 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17746 | echo "$ac_t""yes" 1>&6 | |
17747 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17748 | cat >> confdefs.h <<EOF | |
17749 | #define $ac_tr_func 1 | |
17750 | EOF | |
17751 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17752 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 17753 | EOF |
4f14bcd8 | 17754 | |
10f2d63a | 17755 | else |
a0b9e27f MB |
17756 | echo "$ac_t""no" 1>&6 |
17757 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
5d3f766d | 17758 | echo "configure:17759: checking for nanosleep in -lposix4" >&5 |
a0b9e27f MB |
17759 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
17760 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17761 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17762 | else |
a0b9e27f | 17763 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17764 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 17765 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 17766 | #line 17767 "configure" |
10f2d63a VZ |
17767 | #include "confdefs.h" |
17768 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17769 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17770 | builtin and then its argument prototype would still apply. */ |
17771 | char nanosleep(); | |
17772 | ||
17773 | int main() { | |
17774 | nanosleep() | |
17775 | ; return 0; } | |
17776 | EOF | |
5d3f766d | 17777 | if { (eval echo configure:17778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17778 | rm -rf conftest* |
17779 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17780 | else | |
17781 | echo "configure: failed program was:" >&5 | |
17782 | cat conftest.$ac_ext >&5 | |
17783 | rm -rf conftest* | |
17784 | eval "ac_cv_lib_$ac_lib_var=no" | |
17785 | fi | |
17786 | rm -f conftest* | |
17787 | LIBS="$ac_save_LIBS" | |
17788 | ||
17789 | fi | |
17790 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17791 | echo "$ac_t""yes" 1>&6 | |
17792 | ||
17793 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17794 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 17795 | EOF |
4f14bcd8 | 17796 | |
3d63bc3a | 17797 | POSIX4_LINK=" -lposix4" |
a0b9e27f | 17798 | |
10f2d63a | 17799 | else |
a0b9e27f | 17800 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17801 | |
a0b9e27f | 17802 | for ac_func in usleep |
4f14bcd8 | 17803 | do |
a0b9e27f | 17804 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 17805 | echo "configure:17806: checking for $ac_func" >&5 |
a0b9e27f MB |
17806 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17807 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17808 | else | |
17809 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 17810 | #line 17811 "configure" |
10f2d63a | 17811 | #include "confdefs.h" |
4f14bcd8 | 17812 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17813 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17814 | #include <assert.h> |
17815 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17816 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17817 | builtin and then its argument prototype would still apply. */ |
17818 | char $ac_func(); | |
17819 | ||
17820 | int main() { | |
17821 | ||
4f14bcd8 GD |
17822 | /* The GNU C library defines this for functions which it implements |
17823 | to always fail with ENOSYS. Some functions are actually named | |
17824 | something starting with __ and the normal name is an alias. */ | |
17825 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17826 | choke me | |
17827 | #else | |
a0b9e27f | 17828 | $ac_func(); |
4f14bcd8 GD |
17829 | #endif |
17830 | ||
a0b9e27f MB |
17831 | ; return 0; } |
17832 | EOF | |
5d3f766d | 17833 | if { (eval echo configure:17834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17834 | rm -rf conftest* |
17835 | eval "ac_cv_func_$ac_func=yes" | |
17836 | else | |
17837 | echo "configure: failed program was:" >&5 | |
17838 | cat conftest.$ac_ext >&5 | |
17839 | rm -rf conftest* | |
17840 | eval "ac_cv_func_$ac_func=no" | |
17841 | fi | |
17842 | rm -f conftest* | |
17843 | fi | |
17844 | ||
17845 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17846 | echo "$ac_t""yes" 1>&6 | |
17847 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17848 | cat >> confdefs.h <<EOF | |
17849 | #define $ac_tr_func 1 | |
17850 | EOF | |
17851 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17852 | #define HAVE_USLEEP 1 |
a0b9e27f | 17853 | EOF |
4f14bcd8 | 17854 | |
698dcdb6 | 17855 | else |
a0b9e27f MB |
17856 | echo "$ac_t""no" 1>&6 |
17857 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
17858 | ||
10f2d63a | 17859 | fi |
4f14bcd8 | 17860 | done |
10f2d63a | 17861 | |
a0b9e27f MB |
17862 | |
17863 | ||
6232543b | 17864 | fi |
10f2d63a | 17865 | |
a0b9e27f MB |
17866 | |
17867 | ||
1e487827 | 17868 | fi |
4f14bcd8 | 17869 | done |
703e0a69 | 17870 | |
10f2d63a VZ |
17871 | fi |
17872 | ||
4f14bcd8 | 17873 | for ac_func in uname gethostname |
70846f0a | 17874 | do |
a0b9e27f | 17875 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 17876 | echo "configure:17877: checking for $ac_func" >&5 |
a0b9e27f MB |
17877 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17878 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17879 | else | |
17880 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 17881 | #line 17882 "configure" |
70846f0a VZ |
17882 | #include "confdefs.h" |
17883 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17884 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
17885 | #include <assert.h> |
17886 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17887 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17888 | builtin and then its argument prototype would still apply. */ |
17889 | char $ac_func(); | |
17890 | ||
17891 | int main() { | |
17892 | ||
70846f0a VZ |
17893 | /* The GNU C library defines this for functions which it implements |
17894 | to always fail with ENOSYS. Some functions are actually named | |
17895 | something starting with __ and the normal name is an alias. */ | |
17896 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17897 | choke me | |
17898 | #else | |
a0b9e27f | 17899 | $ac_func(); |
70846f0a VZ |
17900 | #endif |
17901 | ||
a0b9e27f MB |
17902 | ; return 0; } |
17903 | EOF | |
5d3f766d | 17904 | if { (eval echo configure:17905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17905 | rm -rf conftest* |
17906 | eval "ac_cv_func_$ac_func=yes" | |
17907 | else | |
17908 | echo "configure: failed program was:" >&5 | |
17909 | cat conftest.$ac_ext >&5 | |
17910 | rm -rf conftest* | |
17911 | eval "ac_cv_func_$ac_func=no" | |
17912 | fi | |
17913 | rm -f conftest* | |
17914 | fi | |
17915 | ||
17916 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17917 | echo "$ac_t""yes" 1>&6 | |
17918 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17919 | cat >> confdefs.h <<EOF | |
17920 | #define $ac_tr_func 1 | |
17921 | EOF | |
4f14bcd8 | 17922 | break |
a0b9e27f MB |
17923 | else |
17924 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
17925 | fi |
17926 | done | |
17927 | ||
8284b0c5 MB |
17928 | |
17929 | ||
a0b9e27f MB |
17930 | ac_ext=C |
17931 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17932 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17933 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17934 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17935 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17936 | |
4f14bcd8 GD |
17937 | |
17938 | for ac_func in strtok_r | |
10f2d63a | 17939 | do |
a0b9e27f | 17940 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 17941 | echo "configure:17942: checking for $ac_func" >&5 |
a0b9e27f MB |
17942 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17944 | else | |
17945 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 17946 | #line 17947 "configure" |
10f2d63a | 17947 | #include "confdefs.h" |
4f14bcd8 | 17948 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17949 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17950 | #include <assert.h> |
17951 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17952 | #ifdef __cplusplus | |
17953 | extern "C" | |
17954 | #endif | |
17955 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17956 | builtin and then its argument prototype would still apply. */ |
17957 | char $ac_func(); | |
17958 | ||
17959 | int main() { | |
17960 | ||
4f14bcd8 GD |
17961 | /* The GNU C library defines this for functions which it implements |
17962 | to always fail with ENOSYS. Some functions are actually named | |
17963 | something starting with __ and the normal name is an alias. */ | |
17964 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17965 | choke me | |
17966 | #else | |
a0b9e27f | 17967 | $ac_func(); |
4f14bcd8 GD |
17968 | #endif |
17969 | ||
a0b9e27f MB |
17970 | ; return 0; } |
17971 | EOF | |
5d3f766d | 17972 | if { (eval echo configure:17973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17973 | rm -rf conftest* |
17974 | eval "ac_cv_func_$ac_func=yes" | |
17975 | else | |
17976 | echo "configure: failed program was:" >&5 | |
17977 | cat conftest.$ac_ext >&5 | |
17978 | rm -rf conftest* | |
17979 | eval "ac_cv_func_$ac_func=no" | |
17980 | fi | |
17981 | rm -f conftest* | |
17982 | fi | |
4f14bcd8 | 17983 | |
a0b9e27f MB |
17984 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17985 | echo "$ac_t""yes" 1>&6 | |
17986 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17987 | cat >> confdefs.h <<EOF | |
17988 | #define $ac_tr_func 1 | |
17989 | EOF | |
17990 | ||
17991 | else | |
17992 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17993 | fi |
17994 | done | |
17995 | ||
8284b0c5 | 17996 | |
4f14bcd8 | 17997 | ac_ext=c |
a0b9e27f | 17998 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17999 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
18000 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18001 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18002 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 18003 | |
5c6fa7d2 | 18004 | |
8284b0c5 | 18005 | INET_LINK= |
4f14bcd8 GD |
18006 | for ac_func in inet_addr |
18007 | do | |
a0b9e27f | 18008 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 18009 | echo "configure:18010: checking for $ac_func" >&5 |
a0b9e27f MB |
18010 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18012 | else | |
18013 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 18014 | #line 18015 "configure" |
10f2d63a | 18015 | #include "confdefs.h" |
4f14bcd8 | 18016 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18017 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18018 | #include <assert.h> |
10f2d63a VZ |
18019 | /* Override any gcc2 internal prototype to avoid an error. */ |
18020 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18021 | builtin and then its argument prototype would still apply. */ |
18022 | char $ac_func(); | |
18023 | ||
18024 | int main() { | |
18025 | ||
4f14bcd8 GD |
18026 | /* The GNU C library defines this for functions which it implements |
18027 | to always fail with ENOSYS. Some functions are actually named | |
18028 | something starting with __ and the normal name is an alias. */ | |
18029 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18030 | choke me | |
18031 | #else | |
a0b9e27f | 18032 | $ac_func(); |
4f14bcd8 GD |
18033 | #endif |
18034 | ||
a0b9e27f MB |
18035 | ; return 0; } |
18036 | EOF | |
5d3f766d | 18037 | if { (eval echo configure:18038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18038 | rm -rf conftest* |
18039 | eval "ac_cv_func_$ac_func=yes" | |
18040 | else | |
18041 | echo "configure: failed program was:" >&5 | |
18042 | cat conftest.$ac_ext >&5 | |
18043 | rm -rf conftest* | |
18044 | eval "ac_cv_func_$ac_func=no" | |
18045 | fi | |
18046 | rm -f conftest* | |
18047 | fi | |
18048 | ||
18049 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18050 | echo "$ac_t""yes" 1>&6 | |
18051 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18052 | cat >> confdefs.h <<EOF | |
18053 | #define $ac_tr_func 1 | |
18054 | EOF | |
18055 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18056 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18057 | EOF |
10f2d63a VZ |
18058 | |
18059 | else | |
a0b9e27f MB |
18060 | echo "$ac_t""no" 1>&6 |
18061 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
5d3f766d | 18062 | echo "configure:18063: checking for inet_addr in -lnsl" >&5 |
a0b9e27f MB |
18063 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
18064 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18065 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18066 | else |
a0b9e27f | 18067 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18068 | LIBS="-lnsl $LIBS" |
a0b9e27f | 18069 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 18070 | #line 18071 "configure" |
10f2d63a VZ |
18071 | #include "confdefs.h" |
18072 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18073 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18074 | builtin and then its argument prototype would still apply. */ |
18075 | char inet_addr(); | |
18076 | ||
18077 | int main() { | |
18078 | inet_addr() | |
18079 | ; return 0; } | |
18080 | EOF | |
5d3f766d | 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_lib_$ac_lib_var=yes" | |
18084 | else | |
18085 | echo "configure: failed program was:" >&5 | |
18086 | cat conftest.$ac_ext >&5 | |
18087 | rm -rf conftest* | |
18088 | eval "ac_cv_lib_$ac_lib_var=no" | |
18089 | fi | |
18090 | rm -f conftest* | |
18091 | LIBS="$ac_save_LIBS" | |
18092 | ||
18093 | fi | |
18094 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18095 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18096 | INET_LINK="nsl" |
10f2d63a | 18097 | else |
a0b9e27f MB |
18098 | echo "$ac_t""no" 1>&6 |
18099 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
5d3f766d | 18100 | echo "configure:18101: checking for inet_addr in -lresolv" >&5 |
a0b9e27f MB |
18101 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
18102 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18103 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18104 | else |
a0b9e27f | 18105 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18106 | LIBS="-lresolv $LIBS" |
a0b9e27f | 18107 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 18108 | #line 18109 "configure" |
7b4a847f | 18109 | #include "confdefs.h" |
5c6fa7d2 | 18110 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 18111 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18112 | builtin and then its argument prototype would still apply. */ |
18113 | char inet_addr(); | |
18114 | ||
18115 | int main() { | |
18116 | inet_addr() | |
18117 | ; return 0; } | |
18118 | EOF | |
5d3f766d | 18119 | if { (eval echo configure:18120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18120 | rm -rf conftest* |
18121 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18122 | else | |
18123 | echo "configure: failed program was:" >&5 | |
18124 | cat conftest.$ac_ext >&5 | |
18125 | rm -rf conftest* | |
18126 | eval "ac_cv_lib_$ac_lib_var=no" | |
18127 | fi | |
18128 | rm -f conftest* | |
18129 | LIBS="$ac_save_LIBS" | |
18130 | ||
18131 | fi | |
18132 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18133 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18134 | INET_LINK="resolv" |
698dcdb6 | 18135 | else |
a0b9e27f MB |
18136 | echo "$ac_t""no" 1>&6 |
18137 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
5d3f766d | 18138 | echo "configure:18139: checking for inet_addr in -lsocket" >&5 |
a0b9e27f MB |
18139 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
18140 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 18142 | else |
a0b9e27f | 18143 | ac_save_LIBS="$LIBS" |
3c011993 | 18144 | LIBS="-lsocket $LIBS" |
a0b9e27f | 18145 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 18146 | #line 18147 "configure" |
3c011993 VZ |
18147 | #include "confdefs.h" |
18148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18149 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18150 | builtin and then its argument prototype would still apply. */ |
18151 | char inet_addr(); | |
4f14bcd8 | 18152 | |
a0b9e27f MB |
18153 | int main() { |
18154 | inet_addr() | |
18155 | ; return 0; } | |
18156 | EOF | |
5d3f766d | 18157 | if { (eval echo configure:18158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18158 | rm -rf conftest* |
18159 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18160 | else | |
18161 | echo "configure: failed program was:" >&5 | |
18162 | cat conftest.$ac_ext >&5 | |
18163 | rm -rf conftest* | |
18164 | eval "ac_cv_lib_$ac_lib_var=no" | |
8284b0c5 | 18165 | fi |
a0b9e27f MB |
18166 | rm -f conftest* |
18167 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18168 | |
7b4a847f | 18169 | fi |
a0b9e27f MB |
18170 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18171 | echo "$ac_t""yes" 1>&6 | |
18172 | INET_LINK="socket" | |
18173 | ||
18174 | else | |
18175 | echo "$ac_t""no" 1>&6 | |
18176 | fi | |
579d8138 | 18177 | |
a0b9e27f | 18178 | |
5c6fa7d2 | 18179 | fi |
52127426 | 18180 | |
a0b9e27f MB |
18181 | |
18182 | fi | |
247f5006 | 18183 | |
a0b9e27f | 18184 | |
8284b0c5 | 18185 | |
698dcdb6 | 18186 | fi |
4f14bcd8 GD |
18187 | done |
18188 | ||
8284b0c5 | 18189 | |
4f14bcd8 GD |
18190 | for ac_func in inet_aton |
18191 | do | |
a0b9e27f | 18192 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 18193 | echo "configure:18194: checking for $ac_func" >&5 |
a0b9e27f MB |
18194 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18196 | else | |
18197 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 18198 | #line 18199 "configure" |
f6bcfd97 | 18199 | #include "confdefs.h" |
4f14bcd8 | 18200 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18201 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18202 | #include <assert.h> |
f6bcfd97 BP |
18203 | /* Override any gcc2 internal prototype to avoid an error. */ |
18204 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18205 | builtin and then its argument prototype would still apply. */ |
18206 | char $ac_func(); | |
18207 | ||
18208 | int main() { | |
18209 | ||
4f14bcd8 GD |
18210 | /* The GNU C library defines this for functions which it implements |
18211 | to always fail with ENOSYS. Some functions are actually named | |
18212 | something starting with __ and the normal name is an alias. */ | |
18213 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18214 | choke me | |
18215 | #else | |
a0b9e27f | 18216 | $ac_func(); |
4f14bcd8 GD |
18217 | #endif |
18218 | ||
a0b9e27f MB |
18219 | ; return 0; } |
18220 | EOF | |
5d3f766d | 18221 | if { (eval echo configure:18222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18222 | rm -rf conftest* |
18223 | eval "ac_cv_func_$ac_func=yes" | |
18224 | else | |
18225 | echo "configure: failed program was:" >&5 | |
18226 | cat conftest.$ac_ext >&5 | |
18227 | rm -rf conftest* | |
18228 | eval "ac_cv_func_$ac_func=no" | |
18229 | fi | |
18230 | rm -f conftest* | |
18231 | fi | |
18232 | ||
18233 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18234 | echo "$ac_t""yes" 1>&6 | |
18235 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18236 | cat >> confdefs.h <<EOF | |
18237 | #define $ac_tr_func 1 | |
18238 | EOF | |
18239 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18240 | #define HAVE_INET_ATON 1 |
a0b9e27f | 18241 | EOF |
4f14bcd8 | 18242 | |
10f2d63a | 18243 | else |
a0b9e27f MB |
18244 | echo "$ac_t""no" 1>&6 |
18245 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
5d3f766d | 18246 | echo "configure:18247: checking for inet_aton in -l$INET_LINK" >&5 |
a0b9e27f MB |
18247 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
18248 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18249 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 18250 | else |
a0b9e27f | 18251 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18252 | LIBS="-l$INET_LINK $LIBS" |
a0b9e27f | 18253 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 18254 | #line 18255 "configure" |
10f2d63a | 18255 | #include "confdefs.h" |
6232543b | 18256 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 18257 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18258 | builtin and then its argument prototype would still apply. */ |
18259 | char inet_aton(); | |
18260 | ||
18261 | int main() { | |
18262 | inet_aton() | |
18263 | ; return 0; } | |
18264 | EOF | |
5d3f766d | 18265 | if { (eval echo configure:18266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18266 | rm -rf conftest* |
18267 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18268 | else | |
18269 | echo "configure: failed program was:" >&5 | |
18270 | cat conftest.$ac_ext >&5 | |
18271 | rm -rf conftest* | |
18272 | eval "ac_cv_lib_$ac_lib_var=no" | |
18273 | fi | |
18274 | rm -f conftest* | |
18275 | LIBS="$ac_save_LIBS" | |
4f14bcd8 | 18276 | |
10f2d63a | 18277 | fi |
a0b9e27f MB |
18278 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18279 | echo "$ac_t""yes" 1>&6 | |
18280 | cat >> confdefs.h <<\EOF | |
18281 | #define HAVE_INET_ATON 1 | |
18282 | EOF | |
10f2d63a | 18283 | |
a0b9e27f MB |
18284 | else |
18285 | echo "$ac_t""no" 1>&6 | |
18286 | fi | |
247f5006 | 18287 | |
a0b9e27f | 18288 | |
10f2d63a | 18289 | fi |
4f14bcd8 | 18290 | done |
10f2d63a | 18291 | |
8284b0c5 | 18292 | |
4f14bcd8 | 18293 | if test "x$INET_LINK" != "x"; then |
a0b9e27f | 18294 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18295 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18296 | EOF |
4f14bcd8 | 18297 | |
3d63bc3a | 18298 | INET_LINK=" -l$INET_LINK" |
6232543b | 18299 | fi |
10f2d63a | 18300 | |
1e487827 | 18301 | fi |
703e0a69 | 18302 | |
8284b0c5 | 18303 | |
a0b9e27f | 18304 | cat > confcache <<\EOF |
4f14bcd8 GD |
18305 | # This file is a shell script that caches the results of configure |
18306 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
18307 | # scripts and configure runs. It is not useful on other systems. |
18308 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 18309 | # |
a0b9e27f MB |
18310 | # By default, configure uses ./config.cache as the cache file, |
18311 | # creating it if it does not exist already. You can give configure | |
18312 | # the --cache-file=FILE option to use a different cache file; that is | |
18313 | # what configure does when it calls configure scripts in | |
18314 | # subdirectories, so they share the cache. | |
18315 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18316 | # config.status only pays attention to the cache file if you give it the | |
18317 | # --recheck option to rerun configure. | |
4f14bcd8 | 18318 | # |
a0b9e27f | 18319 | EOF |
4f14bcd8 GD |
18320 | # The following way of writing the cache mishandles newlines in values, |
18321 | # but we know of no workaround that is simple, portable, and efficient. | |
18322 | # So, don't put newlines in cache variables' values. | |
18323 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18324 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
18325 | (set) 2>&1 | |
18326 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18327 | *ac_space=\ *) | |
18328 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18329 | # turns \\\\ into \\, and sed turns \\ into \). | |
18330 | sed -n \ | |
18331 | -e "s/'/'\\\\''/g" \ | |
18332 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18333 | ;; | |
18334 | *) | |
18335 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18336 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18337 | ;; | |
18338 | esac >> confcache | |
18339 | if cmp -s $cache_file confcache; then | |
18340 | : | |
18341 | else | |
4f14bcd8 | 18342 | if test -w $cache_file; then |
a0b9e27f MB |
18343 | echo "updating cache $cache_file" |
18344 | cat confcache > $cache_file | |
f6bcfd97 | 18345 | else |
4f14bcd8 | 18346 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 18347 | fi |
4f14bcd8 GD |
18348 | fi |
18349 | rm -f confcache | |
f6bcfd97 | 18350 | |
8284b0c5 | 18351 | |
a0b9e27f | 18352 | |
009fead0 | 18353 | CPP_MT_FLAG= |
4f14bcd8 GD |
18354 | if test "$TOOLKIT" != "MSW"; then |
18355 | ||
a0b9e27f | 18356 | |
7274f1c7 | 18357 | THREADS_LINK= |
009fead0 | 18358 | THREADS_CFLAGS= |
7274f1c7 RL |
18359 | |
18360 | if test "$wxUSE_THREADS" = "yes" ; then | |
18361 | if test "$wxUSE_WINE" = 1 ; then | |
a0b9e27f | 18362 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
18363 | wxUSE_THREADS="no" |
18364 | elif test "$USE_BEOS" = 1; then | |
a0b9e27f | 18365 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
18366 | wxUSE_THREADS="no" |
18367 | fi | |
4f14bcd8 | 18368 | fi |
4f14bcd8 | 18369 | |
7274f1c7 | 18370 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f MB |
18371 | |
18372 | ||
009fead0 VZ |
18373 | THREAD_OPTS="-pthread" |
18374 | case "${host}" in | |
18375 | *-*-solaris2* | *-*-sunos4* ) | |
18376 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 18377 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
18378 | else |
18379 | THREAD_OPTS="-mt $THREAD_OPTS" | |
18380 | fi | |
18381 | ;; | |
18382 | *-*-freebsd*) | |
18383 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
18384 | ;; | |
17234b26 MB |
18385 | *-*-darwin* | *-*-cygwin* ) |
18386 | THREAD_OPTS="" | |
4101db81 | 18387 | ;; |
8f4a9a10 | 18388 | *-*-aix*) |
009fead0 VZ |
18389 | THREAD_OPTS="pthreads" |
18390 | ;; | |
009fead0 | 18391 | esac |
4f14bcd8 | 18392 | |
02a1dfba | 18393 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 18394 | |
009fead0 VZ |
18395 | THREADS_OK=no |
18396 | for flag in $THREAD_OPTS; do | |
18397 | case $flag in | |
18398 | none) | |
a0b9e27f | 18399 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
5d3f766d | 18400 | echo "configure:18401: checking whether pthreads work without any flags" >&5 |
009fead0 | 18401 | ;; |
698dcdb6 | 18402 | |
009fead0 | 18403 | -*) |
a0b9e27f | 18404 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
5d3f766d | 18405 | echo "configure:18406: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
18406 | THREADS_CFLAGS="$flag" |
18407 | ;; | |
698dcdb6 | 18408 | |
009fead0 | 18409 | *) |
a0b9e27f | 18410 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
5d3f766d | 18411 | echo "configure:18412: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
18412 | THREADS_LINK="-l$flag" |
18413 | ;; | |
18414 | esac | |
10f2d63a | 18415 | |
009fead0 VZ |
18416 | save_LIBS="$LIBS" |
18417 | save_CFLAGS="$CFLAGS" | |
18418 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 18419 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 18420 | |
a0b9e27f | 18421 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 18422 | #line 18423 "configure" |
009fead0 VZ |
18423 | #include "confdefs.h" |
18424 | #include <pthread.h> | |
a0b9e27f | 18425 | int main() { |
009fead0 | 18426 | pthread_create(0,0,0,0); |
a0b9e27f MB |
18427 | ; return 0; } |
18428 | EOF | |
5d3f766d | 18429 | if { (eval echo configure:18430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 18430 | rm -rf conftest* |
009fead0 | 18431 | THREADS_OK=yes |
10f2d63a | 18432 | else |
a0b9e27f MB |
18433 | echo "configure: failed program was:" >&5 |
18434 | cat conftest.$ac_ext >&5 | |
6232543b | 18435 | fi |
a0b9e27f | 18436 | rm -f conftest* |
698dcdb6 | 18437 | |
009fead0 VZ |
18438 | LIBS="$save_LIBS" |
18439 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 18440 | |
a0b9e27f | 18441 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
18442 | if test "x$THREADS_OK" = "xyes"; then |
18443 | break; | |
18444 | fi | |
d9b9876f | 18445 | |
009fead0 VZ |
18446 | THREADS_LINK="" |
18447 | THREADS_CFLAGS="" | |
18448 | done | |
4f14bcd8 | 18449 | |
009fead0 VZ |
18450 | if test "x$THREADS_OK" != "xyes"; then |
18451 | wxUSE_THREADS=no | |
a0b9e27f | 18452 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 18453 | else |
db82f09e VZ |
18454 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
18455 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 18456 | |
a0b9e27f | 18457 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
5d3f766d | 18458 | echo "configure:18459: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
18459 | flag=no |
18460 | case "${host}" in | |
2b5f62a0 VZ |
18461 | *-aix*) |
18462 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
18463 | flag="-D_THREAD_SAFE" | |
18464 | ;; | |
18465 | *-freebsd*) | |
009fead0 VZ |
18466 | flag="-D_THREAD_SAFE" |
18467 | ;; | |
06313569 GD |
18468 | *-hp-hpux* ) |
18469 | flag="-D_REENTRANT" | |
18470 | ;; | |
009fead0 VZ |
18471 | *solaris* | alpha*-osf*) |
18472 | flag="-D_REENTRANT" | |
18473 | ;; | |
18474 | esac | |
a0b9e27f | 18475 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 18476 | if test "x$flag" != xno; then |
04727afd | 18477 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
18478 | fi |
18479 | ||
009fead0 | 18480 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 18481 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
18482 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
18483 | fi | |
18484 | fi | |
4f14bcd8 | 18485 | fi |
4f14bcd8 | 18486 | |
7274f1c7 | 18487 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f | 18488 | for ac_func in thr_setconcurrency |
4f14bcd8 | 18489 | do |
a0b9e27f | 18490 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 18491 | echo "configure:18492: checking for $ac_func" >&5 |
a0b9e27f MB |
18492 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18493 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18494 | else | |
18495 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 18496 | #line 18497 "configure" |
d9b9876f | 18497 | #include "confdefs.h" |
4f14bcd8 | 18498 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18499 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18500 | #include <assert.h> |
18501 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18502 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18503 | builtin and then its argument prototype would still apply. */ |
18504 | char $ac_func(); | |
18505 | ||
18506 | int main() { | |
18507 | ||
4f14bcd8 GD |
18508 | /* The GNU C library defines this for functions which it implements |
18509 | to always fail with ENOSYS. Some functions are actually named | |
18510 | something starting with __ and the normal name is an alias. */ | |
18511 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18512 | choke me | |
18513 | #else | |
a0b9e27f | 18514 | $ac_func(); |
4f14bcd8 GD |
18515 | #endif |
18516 | ||
a0b9e27f MB |
18517 | ; return 0; } |
18518 | EOF | |
5d3f766d | 18519 | if { (eval echo configure:18520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18520 | rm -rf conftest* |
18521 | eval "ac_cv_func_$ac_func=yes" | |
18522 | else | |
18523 | echo "configure: failed program was:" >&5 | |
18524 | cat conftest.$ac_ext >&5 | |
18525 | rm -rf conftest* | |
18526 | eval "ac_cv_func_$ac_func=no" | |
18527 | fi | |
18528 | rm -f conftest* | |
18529 | fi | |
698dcdb6 | 18530 | |
a0b9e27f MB |
18531 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18532 | echo "$ac_t""yes" 1>&6 | |
18533 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18534 | cat >> confdefs.h <<EOF | |
18535 | #define $ac_tr_func 1 | |
18536 | EOF | |
18537 | ||
18538 | else | |
18539 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 18540 | fi |
4f14bcd8 | 18541 | done |
10f2d63a | 18542 | |
8284b0c5 | 18543 | |
a0b9e27f | 18544 | for ac_hdr in sched.h |
4f14bcd8 | 18545 | do |
a0b9e27f MB |
18546 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18547 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5d3f766d | 18548 | echo "configure:18549: checking for $ac_hdr" >&5 |
a0b9e27f MB |
18549 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18550 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18551 | else | |
18552 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 18553 | #line 18554 "configure" |
247f5006 | 18554 | #include "confdefs.h" |
a0b9e27f MB |
18555 | #include <$ac_hdr> |
18556 | EOF | |
18557 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5d3f766d | 18558 | { (eval echo configure:18559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
18559 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18560 | if test -z "$ac_err"; then | |
18561 | rm -rf conftest* | |
18562 | eval "ac_cv_header_$ac_safe=yes" | |
18563 | else | |
18564 | echo "$ac_err" >&5 | |
18565 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 18566 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
18567 | rm -rf conftest* |
18568 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 18569 | fi |
a0b9e27f | 18570 | rm -f conftest* |
10f2d63a | 18571 | fi |
a0b9e27f MB |
18572 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18573 | echo "$ac_t""yes" 1>&6 | |
18574 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18575 | cat >> confdefs.h <<EOF | |
18576 | #define $ac_tr_hdr 1 | |
18577 | EOF | |
18578 | ||
18579 | else | |
18580 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 18581 | fi |
4f14bcd8 | 18582 | done |
f6bcfd97 | 18583 | |
009fead0 | 18584 | if test "$ac_cv_header_sched_h" = "yes"; then |
a0b9e27f | 18585 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
5d3f766d | 18586 | echo "configure:18587: checking for sched_yield" >&5 |
a0b9e27f MB |
18587 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
18588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18589 | else |
a0b9e27f | 18590 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 18591 | #line 18592 "configure" |
4f14bcd8 | 18592 | #include "confdefs.h" |
009fead0 | 18593 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18594 | which can conflict with char sched_yield(); below. */ |
009fead0 | 18595 | #include <assert.h> |
4f14bcd8 GD |
18596 | /* Override any gcc2 internal prototype to avoid an error. */ |
18597 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18598 | builtin and then its argument prototype would still apply. */ |
18599 | char sched_yield(); | |
18600 | ||
18601 | int main() { | |
18602 | ||
009fead0 VZ |
18603 | /* The GNU C library defines this for functions which it implements |
18604 | to always fail with ENOSYS. Some functions are actually named | |
18605 | something starting with __ and the normal name is an alias. */ | |
18606 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
18607 | choke me | |
18608 | #else | |
a0b9e27f | 18609 | sched_yield(); |
009fead0 VZ |
18610 | #endif |
18611 | ||
a0b9e27f MB |
18612 | ; return 0; } |
18613 | EOF | |
5d3f766d | 18614 | if { (eval echo configure:18615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18615 | rm -rf conftest* |
18616 | eval "ac_cv_func_sched_yield=yes" | |
18617 | else | |
18618 | echo "configure: failed program was:" >&5 | |
18619 | cat conftest.$ac_ext >&5 | |
18620 | rm -rf conftest* | |
18621 | eval "ac_cv_func_sched_yield=no" | |
18622 | fi | |
18623 | rm -f conftest* | |
18624 | fi | |
18625 | ||
18626 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
18627 | echo "$ac_t""yes" 1>&6 | |
18628 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18629 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18630 | EOF |
10f2d63a | 18631 | |
4f14bcd8 | 18632 | else |
a0b9e27f | 18633 | echo "$ac_t""no" 1>&6 |
009fead0 | 18634 | |
a0b9e27f | 18635 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
5d3f766d | 18636 | echo "configure:18637: checking for sched_yield in -lposix4" >&5 |
a0b9e27f MB |
18637 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
18638 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18639 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18640 | else |
a0b9e27f | 18641 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18642 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18643 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 18644 | #line 18645 "configure" |
4f14bcd8 GD |
18645 | #include "confdefs.h" |
18646 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18647 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18648 | builtin and then its argument prototype would still apply. */ |
18649 | char sched_yield(); | |
18650 | ||
18651 | int main() { | |
18652 | sched_yield() | |
18653 | ; return 0; } | |
18654 | EOF | |
5d3f766d | 18655 | if { (eval echo configure:18656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18656 | rm -rf conftest* |
18657 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18658 | else | |
18659 | echo "configure: failed program was:" >&5 | |
18660 | cat conftest.$ac_ext >&5 | |
18661 | rm -rf conftest* | |
18662 | eval "ac_cv_lib_$ac_lib_var=no" | |
18663 | fi | |
18664 | rm -f conftest* | |
18665 | LIBS="$ac_save_LIBS" | |
18666 | ||
18667 | fi | |
18668 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18669 | echo "$ac_t""yes" 1>&6 | |
18670 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18671 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18672 | EOF |
3d63bc3a | 18673 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 18674 | else |
a0b9e27f MB |
18675 | echo "$ac_t""no" 1>&6 |
18676 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
18677 | ||
54276ccf VZ |
18678 | fi |
18679 | ||
a0b9e27f MB |
18680 | |
18681 | ||
4f14bcd8 | 18682 | fi |
698dcdb6 | 18683 | |
009fead0 | 18684 | fi |
10f2d63a | 18685 | |
7274f1c7 | 18686 | HAVE_PRIOR_FUNCS=0 |
a0b9e27f | 18687 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
5d3f766d | 18688 | echo "configure:18689: checking for pthread_attr_getschedpolicy" >&5 |
a0b9e27f MB |
18689 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
18690 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 18691 | else |
a0b9e27f | 18692 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 18693 | #line 18694 "configure" |
422107f9 | 18694 | #include "confdefs.h" |
009fead0 | 18695 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18696 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 18697 | #include <assert.h> |
4f14bcd8 GD |
18698 | /* Override any gcc2 internal prototype to avoid an error. */ |
18699 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18700 | builtin and then its argument prototype would still apply. */ |
18701 | char pthread_attr_getschedpolicy(); | |
18702 | ||
18703 | int main() { | |
18704 | ||
009fead0 VZ |
18705 | /* The GNU C library defines this for functions which it implements |
18706 | to always fail with ENOSYS. Some functions are actually named | |
18707 | something starting with __ and the normal name is an alias. */ | |
18708 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
18709 | choke me | |
18710 | #else | |
a0b9e27f | 18711 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
18712 | #endif |
18713 | ||
a0b9e27f MB |
18714 | ; return 0; } |
18715 | EOF | |
5d3f766d | 18716 | if { (eval echo configure:18717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18717 | rm -rf conftest* |
18718 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
18719 | else | |
18720 | echo "configure: failed program was:" >&5 | |
18721 | cat conftest.$ac_ext >&5 | |
18722 | rm -rf conftest* | |
18723 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
18724 | fi | |
18725 | rm -f conftest* | |
18726 | fi | |
18727 | ||
18728 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
18729 | echo "$ac_t""yes" 1>&6 | |
18730 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
5d3f766d | 18731 | echo "configure:18732: checking for pthread_attr_setschedparam" >&5 |
a0b9e27f MB |
18732 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
18733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 18734 | else |
a0b9e27f | 18735 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 18736 | #line 18737 "configure" |
a0b9e27f MB |
18737 | #include "confdefs.h" |
18738 | /* System header to define __stub macros and hopefully few prototypes, | |
18739 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 18740 | #include <assert.h> |
422107f9 VZ |
18741 | /* Override any gcc2 internal prototype to avoid an error. */ |
18742 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18743 | builtin and then its argument prototype would still apply. */ |
18744 | char pthread_attr_setschedparam(); | |
18745 | ||
18746 | int main() { | |
18747 | ||
009fead0 VZ |
18748 | /* The GNU C library defines this for functions which it implements |
18749 | to always fail with ENOSYS. Some functions are actually named | |
18750 | something starting with __ and the normal name is an alias. */ | |
18751 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
18752 | choke me | |
18753 | #else | |
a0b9e27f | 18754 | pthread_attr_setschedparam(); |
009fead0 VZ |
18755 | #endif |
18756 | ||
a0b9e27f MB |
18757 | ; return 0; } |
18758 | EOF | |
5d3f766d | 18759 | if { (eval echo configure:18760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18760 | rm -rf conftest* |
18761 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
18762 | else | |
18763 | echo "configure: failed program was:" >&5 | |
18764 | cat conftest.$ac_ext >&5 | |
18765 | rm -rf conftest* | |
18766 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
18767 | fi | |
18768 | rm -f conftest* | |
18769 | fi | |
18770 | ||
18771 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
18772 | echo "$ac_t""yes" 1>&6 | |
18773 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
5d3f766d | 18774 | echo "configure:18775: checking for sched_get_priority_max" >&5 |
a0b9e27f MB |
18775 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
18776 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18777 | else | |
18778 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 18779 | #line 18780 "configure" |
422107f9 | 18780 | #include "confdefs.h" |
009fead0 VZ |
18781 | /* System header to define __stub macros and hopefully few prototypes |
18782 | else | |
a0b9e27f MB |
18783 | echo "$ac_t""no" 1>&6 |
18784 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 18785 | #include <assert.h> |
4f14bcd8 GD |
18786 | /* Override any gcc2 internal prototype to avoid an error. */ |
18787 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18788 | builtin and then its argument prototype would still apply. */ |
18789 | char sched_get_priority_max(); | |
18790 | ||
18791 | int main() { | |
18792 | ||
009fead0 VZ |
18793 | /* The GNU C library defines this for functions which it implements |
18794 | to always fail with ENOSYS. Some functions are actually named | |
18795 | something starting with __ and the normal name is an alias. */ | |
18796 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
18797 | choke me | |
18798 | #else | |
a0b9e27f | 18799 | sched_get_priority_max(); |
009fead0 VZ |
18800 | #endif |
18801 | ||
a0b9e27f MB |
18802 | ; return 0; } |
18803 | EOF | |
5d3f766d | 18804 | if { (eval echo configure:18805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18805 | rm -rf conftest* |
18806 | eval "ac_cv_func_sched_get_priority_max=yes" | |
18807 | else | |
18808 | echo "configure: failed program was:" >&5 | |
18809 | cat conftest.$ac_ext >&5 | |
18810 | rm -rf conftest* | |
18811 | eval "ac_cv_func_sched_get_priority_max=no" | |
18812 | fi | |
18813 | rm -f conftest* | |
18814 | fi | |
18815 | ||
18816 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
18817 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
18818 | HAVE_PRIOR_FUNCS=1 |
18819 | else | |
a0b9e27f MB |
18820 | echo "$ac_t""no" 1>&6 |
18821 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
5d3f766d | 18822 | echo "configure:18823: checking for sched_get_priority_max in -lposix4" >&5 |
a0b9e27f MB |
18823 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
18824 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18825 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18826 | else |
a0b9e27f | 18827 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18828 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18829 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 18830 | #line 18831 "configure" |
422107f9 VZ |
18831 | #include "confdefs.h" |
18832 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18833 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18834 | builtin and then its argument prototype would still apply. */ |
18835 | char sched_get_priority_max(); | |
18836 | ||
18837 | int main() { | |
18838 | sched_get_priority_max() | |
18839 | ; return 0; } | |
18840 | EOF | |
5d3f766d | 18841 | if { (eval echo configure:18842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18842 | rm -rf conftest* |
18843 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18844 | else | |
18845 | echo "configure: failed program was:" >&5 | |
18846 | cat conftest.$ac_ext >&5 | |
18847 | rm -rf conftest* | |
18848 | eval "ac_cv_lib_$ac_lib_var=no" | |
18849 | fi | |
18850 | rm -f conftest* | |
18851 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18852 | |
a0b9e27f MB |
18853 | fi |
18854 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18855 | echo "$ac_t""yes" 1>&6 | |
18856 | ||
7274f1c7 RL |
18857 | HAVE_PRIOR_FUNCS=1 |
18858 | POSIX4_LINK=" -lposix4" | |
a0b9e27f MB |
18859 | |
18860 | else | |
18861 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 18862 | fi |
463abc64 | 18863 | |
a0b9e27f | 18864 | |
328a083c | 18865 | fi |
463abc64 | 18866 | |
a0b9e27f MB |
18867 | |
18868 | else | |
18869 | echo "$ac_t""no" 1>&6 | |
7b4a847f | 18870 | fi |
579d8138 | 18871 | |
a0b9e27f | 18872 | |
5c6fa7d2 | 18873 | fi |
52127426 | 18874 | |
8284b0c5 | 18875 | |
7274f1c7 | 18876 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
a0b9e27f | 18877 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18878 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
a0b9e27f | 18879 | EOF |
463abc64 | 18880 | |
7274f1c7 | 18881 | else |
a0b9e27f | 18882 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 18883 | fi |
463abc64 | 18884 | |
a0b9e27f | 18885 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
5d3f766d | 18886 | echo "configure:18887: checking for pthread_cancel" >&5 |
a0b9e27f MB |
18887 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
18888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18889 | else |
a0b9e27f | 18890 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 18891 | #line 18892 "configure" |
422107f9 | 18892 | #include "confdefs.h" |
009fead0 | 18893 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18894 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 18895 | #include <assert.h> |
422107f9 VZ |
18896 | /* Override any gcc2 internal prototype to avoid an error. */ |
18897 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18898 | builtin and then its argument prototype would still apply. */ |
18899 | char pthread_cancel(); | |
18900 | ||
18901 | int main() { | |
18902 | ||
009fead0 VZ |
18903 | /* The GNU C library defines this for functions which it implements |
18904 | to always fail with ENOSYS. Some functions are actually named | |
18905 | something starting with __ and the normal name is an alias. */ | |
18906 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
18907 | choke me | |
18908 | #else | |
a0b9e27f | 18909 | pthread_cancel(); |
009fead0 VZ |
18910 | #endif |
18911 | ||
a0b9e27f MB |
18912 | ; return 0; } |
18913 | EOF | |
5d3f766d | 18914 | if { (eval echo configure:18915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18915 | rm -rf conftest* |
18916 | eval "ac_cv_func_pthread_cancel=yes" | |
18917 | else | |
18918 | echo "configure: failed program was:" >&5 | |
18919 | cat conftest.$ac_ext >&5 | |
18920 | rm -rf conftest* | |
18921 | eval "ac_cv_func_pthread_cancel=no" | |
18922 | fi | |
18923 | rm -f conftest* | |
18924 | fi | |
18925 | ||
18926 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
18927 | echo "$ac_t""yes" 1>&6 | |
18928 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18929 | #define HAVE_PTHREAD_CANCEL 1 |
a0b9e27f | 18930 | EOF |
4f14bcd8 | 18931 | |
698dcdb6 | 18932 | else |
a0b9e27f MB |
18933 | echo "$ac_t""no" 1>&6 |
18934 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
18935 | fi |
18936 | ||
5c6fa7d2 | 18937 | |
a0b9e27f | 18938 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
5d3f766d | 18939 | echo "configure:18940: checking for pthread_cleanup_push/pop" >&5 |
a0b9e27f MB |
18940 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
18941 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 18942 | else |
a0b9e27f MB |
18943 | |
18944 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 18945 | #line 18946 "configure" |
4f14bcd8 GD |
18946 | #include "confdefs.h" |
18947 | #include <pthread.h> | |
a0b9e27f | 18948 | int main() { |
4f14bcd8 | 18949 | |
7274f1c7 RL |
18950 | pthread_cleanup_push(NULL, NULL); |
18951 | pthread_cleanup_pop(0); | |
a0b9e27f MB |
18952 | |
18953 | ; return 0; } | |
18954 | EOF | |
5d3f766d | 18955 | if { (eval echo configure:18956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18956 | rm -rf conftest* |
18957 | ||
7274f1c7 | 18958 | wx_cv_func_pthread_cleanup_push=yes |
a0b9e27f | 18959 | |
4f14bcd8 | 18960 | else |
a0b9e27f MB |
18961 | echo "configure: failed program was:" >&5 |
18962 | cat conftest.$ac_ext >&5 | |
18963 | rm -rf conftest* | |
18964 | ||
7274f1c7 | 18965 | wx_cv_func_pthread_cleanup_push=no |
a0b9e27f | 18966 | |
5c6fa7d2 | 18967 | fi |
a0b9e27f MB |
18968 | rm -f conftest* |
18969 | ||
247f5006 | 18970 | fi |
a0b9e27f MB |
18971 | |
18972 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 18973 | |
7274f1c7 | 18974 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
a0b9e27f | 18975 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18976 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
a0b9e27f | 18977 | EOF |
c7a2bf27 | 18978 | |
7274f1c7 | 18979 | fi |
4f14bcd8 | 18980 | |
a0b9e27f MB |
18981 | |
18982 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
5d3f766d | 18983 | echo "configure:18984: checking for pthread_mutexattr_t" >&5 |
a0b9e27f MB |
18984 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
18985 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 18986 | else |
a0b9e27f MB |
18987 | |
18988 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 18989 | #line 18990 "configure" |
0dcf9893 | 18990 | #include "confdefs.h" |
4f14bcd8 | 18991 | #include <pthread.h> |
a0b9e27f | 18992 | int main() { |
4f14bcd8 | 18993 | |
7274f1c7 RL |
18994 | pthread_mutexattr_t attr; |
18995 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
a0b9e27f MB |
18996 | |
18997 | ; return 0; } | |
18998 | EOF | |
5d3f766d | 18999 | if { (eval echo configure:19000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19000 | rm -rf conftest* |
19001 | ||
7274f1c7 | 19002 | wx_cv_type_pthread_mutexattr_t=yes |
a0b9e27f | 19003 | |
3fed1840 | 19004 | else |
a0b9e27f MB |
19005 | echo "configure: failed program was:" >&5 |
19006 | cat conftest.$ac_ext >&5 | |
19007 | rm -rf conftest* | |
19008 | ||
7274f1c7 | 19009 | wx_cv_type_pthread_mutexattr_t=no |
a0b9e27f MB |
19010 | |
19011 | ||
5c6fa7d2 | 19012 | fi |
a0b9e27f MB |
19013 | rm -f conftest* |
19014 | ||
247f5006 | 19015 | fi |
a0b9e27f MB |
19016 | |
19017 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 19018 | |
7274f1c7 | 19019 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
a0b9e27f | 19020 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19021 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
a0b9e27f | 19022 | EOF |
4f14bcd8 | 19023 | |
7274f1c7 | 19024 | else |
a0b9e27f | 19025 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
5d3f766d | 19026 | echo "configure:19027: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
a0b9e27f MB |
19027 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
19028 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19029 | else | |
19030 | ||
19031 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 19032 | #line 19033 "configure" |
3fed1840 | 19033 | #include "confdefs.h" |
4f14bcd8 | 19034 | #include <pthread.h> |
a0b9e27f | 19035 | int main() { |
4f14bcd8 | 19036 | |
7274f1c7 | 19037 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
a0b9e27f MB |
19038 | |
19039 | ; return 0; } | |
19040 | EOF | |
5d3f766d | 19041 | if { (eval echo configure:19042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19042 | rm -rf conftest* |
19043 | ||
7274f1c7 | 19044 | wx_cv_type_pthread_rec_mutex_init=yes |
a0b9e27f | 19045 | |
698dcdb6 | 19046 | else |
a0b9e27f MB |
19047 | echo "configure: failed program was:" >&5 |
19048 | cat conftest.$ac_ext >&5 | |
19049 | rm -rf conftest* | |
19050 | ||
7274f1c7 | 19051 | wx_cv_type_pthread_rec_mutex_init=no |
a0b9e27f MB |
19052 | |
19053 | ||
5c6fa7d2 | 19054 | fi |
a0b9e27f MB |
19055 | rm -f conftest* |
19056 | ||
247f5006 | 19057 | fi |
a0b9e27f MB |
19058 | |
19059 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 19060 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
a0b9e27f | 19061 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19062 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
a0b9e27f | 19063 | EOF |
3fed1840 | 19064 | |
7274f1c7 | 19065 | else |
a0b9e27f | 19066 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
19067 | fi |
19068 | fi | |
7274f1c7 | 19069 | fi |
3fed1840 | 19070 | |
a0b9e27f MB |
19071 | else |
19072 | if test "$wxUSE_THREADS" = "yes" ; then | |
19073 | case "${host}" in | |
19074 | *-*-mingw32* ) | |
ca8e52b3 | 19075 | echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6 |
5d3f766d | 19076 | echo "configure:19077: checking if compiler supports -mthreads" >&5 |
ca8e52b3 VZ |
19077 | if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then |
19078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19079 | else | |
19080 | ||
19081 | CFLAGS_OLD="$CFLAGS" | |
19082 | CFLAGS="$CFLAGS -mthreads" | |
19083 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 19084 | #line 19085 "configure" |
ca8e52b3 VZ |
19085 | #include "confdefs.h" |
19086 | ||
19087 | int main() { | |
19088 | ||
19089 | ; return 0; } | |
19090 | EOF | |
5d3f766d | 19091 | if { (eval echo configure:19092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ca8e52b3 VZ |
19092 | rm -rf conftest* |
19093 | wx_cv_cflags_mthread=yes | |
19094 | else | |
19095 | echo "configure: failed program was:" >&5 | |
19096 | cat conftest.$ac_ext >&5 | |
19097 | rm -rf conftest* | |
19098 | wx_cv_cflags_mthread=no | |
19099 | ||
19100 | fi | |
19101 | rm -f conftest* | |
19102 | ||
19103 | ||
19104 | fi | |
19105 | ||
19106 | echo "$ac_t""$wx_cv_cflags_mthread" 1>&6 | |
19107 | ||
19108 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
19109 | CXXFLAGS="$CXXFLAGS -mthreads" | |
19110 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
19111 | LDFLAGS="$LDFLAGS -mthreads" | |
19112 | else | |
19113 | CFLAGS="$CFLAGS_OLD" | |
19114 | fi | |
a0b9e27f MB |
19115 | ;; |
19116 | esac | |
19117 | fi | |
4f14bcd8 GD |
19118 | fi |
19119 | ||
19120 | if test "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 19121 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19122 | #define wxUSE_THREADS 1 |
a0b9e27f | 19123 | EOF |
7b6058cd | 19124 | |
8284b0c5 | 19125 | |
4f14bcd8 | 19126 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 19127 | else |
4f14bcd8 | 19128 | if test "$ac_cv_func_strtok_r" = "yes"; then |
a0b9e27f | 19129 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
5d3f766d | 19130 | echo "configure:19131: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
19131 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
19132 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
a0b9e27f | 19133 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 19134 | else |
a0b9e27f | 19135 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
19136 | fi |
19137 | fi | |
19138 | fi | |
19139 | ||
19140 | if test "$WXGTK20" = 1 ; then | |
a0b9e27f | 19141 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19142 | #define __WXGTK20__ $WXGTK20 |
a0b9e27f | 19143 | EOF |
4f14bcd8 GD |
19144 | |
19145 | WXGTK12=1 | |
10f2d63a | 19146 | fi |
4f14bcd8 GD |
19147 | |
19148 | if test "$WXGTK12" = 1 ; then | |
a0b9e27f | 19149 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19150 | #define __WXGTK12__ $WXGTK12 |
a0b9e27f | 19151 | EOF |
4f14bcd8 | 19152 | |
10f2d63a | 19153 | fi |
698dcdb6 | 19154 | |
4f14bcd8 | 19155 | if test "$WXGTK127" = 1 ; then |
a0b9e27f | 19156 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19157 | #define __WXGTK127__ $WXGTK127 |
a0b9e27f | 19158 | EOF |
4f14bcd8 | 19159 | |
698dcdb6 | 19160 | fi |
10f2d63a | 19161 | |
4f14bcd8 GD |
19162 | WXDEBUG= |
19163 | ||
19164 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
19165 | WXDEBUG="-g" | |
19166 | wxUSE_OPTIMISE=no | |
698dcdb6 | 19167 | fi |
4f14bcd8 GD |
19168 | |
19169 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
19170 | wxUSE_DEBUG_INFO=yes | |
19171 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
19172 | fi |
19173 | ||
4f14bcd8 | 19174 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
a0b9e27f | 19175 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19176 | #define WXDEBUG 1 |
a0b9e27f | 19177 | EOF |
4f14bcd8 GD |
19178 | |
19179 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 19180 | else |
4f14bcd8 GD |
19181 | if test "$wxUSE_GTK" = 1 ; then |
19182 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
19183 | fi | |
19184 | fi | |
19185 | ||
19186 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
a0b9e27f | 19187 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19188 | #define wxUSE_MEMORY_TRACING 1 |
a0b9e27f | 19189 | EOF |
4f14bcd8 | 19190 | |
a0b9e27f | 19191 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19192 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
a0b9e27f | 19193 | EOF |
4f14bcd8 | 19194 | |
a0b9e27f | 19195 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19196 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
a0b9e27f | 19197 | EOF |
4f14bcd8 GD |
19198 | |
19199 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
19200 | fi | |
19201 | ||
19202 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 19203 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
19204 | fi |
19205 | ||
19206 | PROFILE= | |
19207 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 19208 | PROFILE=" -pg" |
10f2d63a VZ |
19209 | fi |
19210 | ||
009fead0 VZ |
19211 | CODE_GEN_FLAGS= |
19212 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 19213 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
19214 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
19215 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 19216 | fi |
4f14bcd8 GD |
19217 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
19218 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
19219 | fi | |
19220 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
19221 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
19222 | fi | |
4f14bcd8 GD |
19223 | if test "$USE_WIN32" = 1 ; then |
19224 | # I'm not even really sure what this was ever added to solve, | |
19225 | # but someone added it for mingw native builds, so I guess | |
19226 | # they had a reason, right?? | |
19227 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
19228 | fi | |
1d1b75ac | 19229 | |
2b5f62a0 | 19230 | case "${host}" in |
1d1b75ac VZ |
19231 | powerpc*-*-aix* ) |
19232 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
19233 | ;; | |
2b5f62a0 VZ |
19234 | *-hppa* ) |
19235 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
19236 | ;; | |
1d1b75ac | 19237 | esac |
4f14bcd8 GD |
19238 | fi |
19239 | ||
4f14bcd8 GD |
19240 | if test "$wxUSE_OPTIMISE" = "no" ; then |
19241 | OPTIMISE= | |
19242 | else | |
19243 | if test "$GCC" = yes ; then | |
19244 | OPTIMISE="-O2" | |
19245 | case "${host}" in | |
19246 | i586-*-*|i686-*-* ) | |
19247 | OPTIMISE="${OPTIMISE} " | |
19248 | ;; | |
19249 | esac | |
19250 | else | |
19251 | OPTIMISE="-O" | |
19252 | fi | |
19253 | fi | |
19254 | ||
19255 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
a0b9e27f | 19256 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19257 | #define WXWIN_COMPATIBILITY_2 1 |
a0b9e27f | 19258 | EOF |
4f14bcd8 | 19259 | |
8284b0c5 | 19260 | |
4f14bcd8 GD |
19261 | WXWIN_COMPATIBILITY_2_2="yes" |
19262 | fi | |
19263 | ||
0c9a1c32 | 19264 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
a0b9e27f | 19265 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19266 | #define WXWIN_COMPATIBILITY_2_2 1 |
a0b9e27f | 19267 | EOF |
4f14bcd8 | 19268 | |
10f2d63a VZ |
19269 | fi |
19270 | ||
8284b0c5 | 19271 | |
10f2d63a | 19272 | if test "$wxUSE_GUI" = "yes"; then |
a0b9e27f | 19273 | cat >> confdefs.h <<\EOF |
10f2d63a | 19274 | #define wxUSE_GUI 1 |
a0b9e27f | 19275 | EOF |
10f2d63a | 19276 | |
8284b0c5 | 19277 | |
10f2d63a | 19278 | else |
a0b9e27f | 19279 | cat >> confdefs.h <<\EOF |
10f2d63a | 19280 | #define wxUSE_NOGUI 1 |
a0b9e27f | 19281 | EOF |
10f2d63a VZ |
19282 | |
19283 | fi | |
19284 | ||
8284b0c5 | 19285 | |
10f2d63a | 19286 | if test "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 19287 | cat >> confdefs.h <<\EOF |
10f2d63a | 19288 | #define wxUSE_UNIX 1 |
a0b9e27f | 19289 | EOF |
10f2d63a VZ |
19290 | |
19291 | fi | |
19292 | ||
8284b0c5 | 19293 | |
10f2d63a | 19294 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
a0b9e27f | 19295 | cat >> confdefs.h <<\EOF |
10f2d63a | 19296 | #define wxUSE_APPLE_IEEE 1 |
a0b9e27f | 19297 | EOF |
10f2d63a VZ |
19298 | |
19299 | fi | |
19300 | ||
1e6feb95 | 19301 | if test "$wxUSE_TIMER" = "yes"; then |
a0b9e27f | 19302 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19303 | #define wxUSE_TIMER 1 |
a0b9e27f | 19304 | EOF |
1e6feb95 VZ |
19305 | |
19306 | fi | |
19307 | ||
10f2d63a | 19308 | if test "$wxUSE_WAVE" = "yes"; then |
a0b9e27f | 19309 | cat >> confdefs.h <<\EOF |
10f2d63a | 19310 | #define wxUSE_WAVE 1 |
a0b9e27f | 19311 | EOF |
10f2d63a VZ |
19312 | |
19313 | fi | |
19314 | ||
1e6feb95 | 19315 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
a0b9e27f | 19316 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19317 | #define wxUSE_CMDLINE_PARSER 1 |
a0b9e27f | 19318 | EOF |
1e6feb95 VZ |
19319 | |
19320 | fi | |
19321 | ||
19322 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
a0b9e27f | 19323 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19324 | #define wxUSE_STOPWATCH 1 |
a0b9e27f | 19325 | EOF |
1e6feb95 VZ |
19326 | |
19327 | fi | |
19328 | ||
19329 | if test "$wxUSE_DATETIME" = "yes"; then | |
a0b9e27f | 19330 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19331 | #define wxUSE_DATETIME 1 |
a0b9e27f | 19332 | EOF |
1e6feb95 VZ |
19333 | |
19334 | fi | |
19335 | ||
19336 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
a0b9e27f | 19337 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19338 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 19339 | EOF |
1e6feb95 VZ |
19340 | |
19341 | fi | |
19342 | ||
10f2d63a | 19343 | if test "$wxUSE_FILE" = "yes"; then |
a0b9e27f | 19344 | cat >> confdefs.h <<\EOF |
10f2d63a | 19345 | #define wxUSE_FILE 1 |
a0b9e27f | 19346 | EOF |
10f2d63a VZ |
19347 | |
19348 | fi | |
19349 | ||
1e6feb95 | 19350 | if test "$wxUSE_FFILE" = "yes"; then |
a0b9e27f | 19351 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19352 | #define wxUSE_FFILE 1 |
a0b9e27f | 19353 | EOF |
1e6feb95 VZ |
19354 | |
19355 | fi | |
19356 | ||
24528b0c | 19357 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
a0b9e27f | 19358 | cat >> confdefs.h <<\EOF |
24528b0c | 19359 | #define wxUSE_FILESYSTEM 1 |
a0b9e27f | 19360 | EOF |
24528b0c VS |
19361 | |
19362 | fi | |
19363 | ||
10f2d63a | 19364 | if test "$wxUSE_FS_INET" = "yes"; then |
a0b9e27f | 19365 | cat >> confdefs.h <<\EOF |
10f2d63a | 19366 | #define wxUSE_FS_INET 1 |
a0b9e27f | 19367 | EOF |
10f2d63a VZ |
19368 | |
19369 | fi | |
19370 | ||
19371 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
a0b9e27f | 19372 | cat >> confdefs.h <<\EOF |
10f2d63a | 19373 | #define wxUSE_FS_ZIP 1 |
a0b9e27f | 19374 | EOF |
10f2d63a VZ |
19375 | |
19376 | fi | |
19377 | ||
19378 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
a0b9e27f | 19379 | cat >> confdefs.h <<\EOF |
10f2d63a | 19380 | #define wxUSE_ZIPSTREAM 1 |
a0b9e27f | 19381 | EOF |
10f2d63a VZ |
19382 | |
19383 | fi | |
19384 | ||
eb4efbdc | 19385 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
a0b9e27f | 19386 | cat >> confdefs.h <<\EOF |
eb4efbdc | 19387 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
a0b9e27f | 19388 | EOF |
eb4efbdc VZ |
19389 | |
19390 | fi | |
19391 | ||
4f3c5f06 | 19392 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 19393 | cat >> confdefs.h <<\EOF |
4f3c5f06 | 19394 | #define wxUSE_SNGLINST_CHECKER 1 |
a0b9e27f | 19395 | EOF |
4f3c5f06 VZ |
19396 | |
19397 | fi | |
19398 | ||
10f2d63a | 19399 | if test "$wxUSE_BUSYINFO" = "yes"; then |
a0b9e27f | 19400 | cat >> confdefs.h <<\EOF |
10f2d63a | 19401 | #define wxUSE_BUSYINFO 1 |
a0b9e27f | 19402 | EOF |
10f2d63a VZ |
19403 | |
19404 | fi | |
19405 | ||
19406 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
a0b9e27f | 19407 | cat >> confdefs.h <<\EOF |
10f2d63a | 19408 | #define wxUSE_STD_IOSTREAM 1 |
a0b9e27f | 19409 | EOF |
10f2d63a VZ |
19410 | |
19411 | fi | |
19412 | ||
a3a584a7 | 19413 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
a0b9e27f | 19414 | cat >> confdefs.h <<\EOF |
a3a584a7 | 19415 | #define wxUSE_TEXTBUFFER 1 |
a0b9e27f | 19416 | EOF |
a3a584a7 VZ |
19417 | |
19418 | fi | |
19419 | ||
10f2d63a | 19420 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 19421 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
a0b9e27f | 19422 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 19423 | else |
a0b9e27f | 19424 | cat >> confdefs.h <<\EOF |
10f2d63a | 19425 | #define wxUSE_TEXTFILE 1 |
a0b9e27f | 19426 | EOF |
10f2d63a VZ |
19427 | |
19428 | fi | |
19429 | fi | |
19430 | ||
19431 | if test "$wxUSE_CONFIG" = "yes" ; then | |
19432 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
a0b9e27f | 19433 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 19434 | else |
a0b9e27f | 19435 | cat >> confdefs.h <<\EOF |
10f2d63a | 19436 | #define wxUSE_CONFIG 1 |
a0b9e27f | 19437 | EOF |
10f2d63a VZ |
19438 | |
19439 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
19440 | fi | |
19441 | fi | |
19442 | ||
19443 | if test "$wxUSE_INTL" = "yes" ; then | |
19444 | if test "$wxUSE_FILE" != "yes"; then | |
a0b9e27f | 19445 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 19446 | else |
a0b9e27f | 19447 | cat >> confdefs.h <<\EOF |
10f2d63a | 19448 | #define wxUSE_INTL 1 |
a0b9e27f | 19449 | EOF |
10f2d63a VZ |
19450 | |
19451 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 19452 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
19453 | fi |
19454 | fi | |
19455 | ||
19456 | if test "$wxUSE_LOG" = "yes"; then | |
a0b9e27f | 19457 | cat >> confdefs.h <<\EOF |
10f2d63a | 19458 | #define wxUSE_LOG 1 |
a0b9e27f | 19459 | EOF |
10f2d63a | 19460 | |
8284b0c5 | 19461 | |
d73be714 | 19462 | if test "$wxUSE_LOGGUI" = "yes"; then |
a0b9e27f | 19463 | cat >> confdefs.h <<\EOF |
d73be714 | 19464 | #define wxUSE_LOGGUI 1 |
a0b9e27f | 19465 | EOF |
d73be714 VZ |
19466 | |
19467 | fi | |
19468 | ||
19469 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
a0b9e27f | 19470 | cat >> confdefs.h <<\EOF |
d73be714 | 19471 | #define wxUSE_LOGWINDOW 1 |
a0b9e27f | 19472 | EOF |
69d27ff7 MB |
19473 | |
19474 | fi | |
19475 | ||
19476 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
a0b9e27f | 19477 | cat >> confdefs.h <<\EOF |
69d27ff7 | 19478 | #define wxUSE_LOG_DIALOG 1 |
a0b9e27f | 19479 | EOF |
d73be714 VZ |
19480 | |
19481 | fi | |
10f2d63a VZ |
19482 | fi |
19483 | ||
19484 | if test "$wxUSE_LONGLONG" = "yes"; then | |
a0b9e27f | 19485 | cat >> confdefs.h <<\EOF |
10f2d63a | 19486 | #define wxUSE_LONGLONG 1 |
a0b9e27f | 19487 | EOF |
10f2d63a VZ |
19488 | |
19489 | fi | |
19490 | ||
e8f65ba6 | 19491 | if test "$wxUSE_GEOMETRY" = "yes"; then |
a0b9e27f | 19492 | cat >> confdefs.h <<\EOF |
e8f65ba6 | 19493 | #define wxUSE_GEOMETRY 1 |
a0b9e27f | 19494 | EOF |
e8f65ba6 RR |
19495 | |
19496 | fi | |
19497 | ||
10f2d63a | 19498 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
a0b9e27f | 19499 | cat >> confdefs.h <<\EOF |
10f2d63a | 19500 | #define wxUSE_DIALUP_MANAGER 1 |
a0b9e27f | 19501 | EOF |
10f2d63a | 19502 | |
70f7a477 | 19503 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
19504 | fi |
19505 | ||
19506 | if test "$wxUSE_STREAMS" = "yes" ; then | |
a0b9e27f | 19507 | cat >> confdefs.h <<\EOF |
10f2d63a | 19508 | #define wxUSE_STREAMS 1 |
a0b9e27f | 19509 | EOF |
10f2d63a VZ |
19510 | |
19511 | fi | |
19512 | ||
5c6fa7d2 | 19513 | |
8284b0c5 | 19514 | if test "$wxUSE_DATETIME" = "yes"; then |
a0b9e27f | 19515 | for ac_func in strptime |
83307f33 | 19516 | do |
a0b9e27f | 19517 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 19518 | echo "configure:19519: checking for $ac_func" >&5 |
a0b9e27f MB |
19519 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19520 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19521 | else | |
19522 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 19523 | #line 19524 "configure" |
83307f33 VZ |
19524 | #include "confdefs.h" |
19525 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19526 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
19527 | #include <assert.h> |
19528 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19529 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19530 | builtin and then its argument prototype would still apply. */ |
19531 | char $ac_func(); | |
19532 | ||
19533 | int main() { | |
19534 | ||
83307f33 VZ |
19535 | /* The GNU C library defines this for functions which it implements |
19536 | to always fail with ENOSYS. Some functions are actually named | |
19537 | something starting with __ and the normal name is an alias. */ | |
19538 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19539 | choke me | |
19540 | #else | |
a0b9e27f | 19541 | $ac_func(); |
83307f33 VZ |
19542 | #endif |
19543 | ||
a0b9e27f MB |
19544 | ; return 0; } |
19545 | EOF | |
5d3f766d | 19546 | if { (eval echo configure:19547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19547 | rm -rf conftest* |
19548 | eval "ac_cv_func_$ac_func=yes" | |
19549 | else | |
19550 | echo "configure: failed program was:" >&5 | |
19551 | cat conftest.$ac_ext >&5 | |
19552 | rm -rf conftest* | |
19553 | eval "ac_cv_func_$ac_func=no" | |
19554 | fi | |
19555 | rm -f conftest* | |
19556 | fi | |
83307f33 | 19557 | |
a0b9e27f MB |
19558 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19559 | echo "$ac_t""yes" 1>&6 | |
19560 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19561 | cat >> confdefs.h <<EOF | |
19562 | #define $ac_tr_func 1 | |
19563 | EOF | |
19564 | ||
19565 | else | |
19566 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
19567 | fi |
19568 | done | |
19569 | ||
5c6fa7d2 | 19570 | |
a0b9e27f | 19571 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
5d3f766d | 19572 | echo "configure:19573: checking for timezone variable in <time.h>" >&5 |
a0b9e27f MB |
19573 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
19574 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19575 | else |
a0b9e27f MB |
19576 | |
19577 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 19578 | #line 19579 "configure" |
360d6699 VZ |
19579 | #include "confdefs.h" |
19580 | ||
b4085ce6 | 19581 | #include <time.h> |
a0b9e27f MB |
19582 | |
19583 | int main() { | |
360d6699 VZ |
19584 | |
19585 | int tz; | |
4f11a343 | 19586 | tz = timezone; |
a0b9e27f MB |
19587 | |
19588 | ; return 0; } | |
19589 | EOF | |
5d3f766d | 19590 | if { (eval echo configure:19591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19591 | rm -rf conftest* |
19592 | ||
4f11a343 | 19593 | wx_cv_var_timezone=timezone |
a0b9e27f | 19594 | |
360d6699 | 19595 | else |
a0b9e27f MB |
19596 | echo "configure: failed program was:" >&5 |
19597 | cat conftest.$ac_ext >&5 | |
19598 | rm -rf conftest* | |
19599 | ||
19600 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 19601 | #line 19602 "configure" |
360d6699 VZ |
19602 | #include "confdefs.h" |
19603 | ||
b4085ce6 | 19604 | #include <time.h> |
a0b9e27f MB |
19605 | |
19606 | int main() { | |
360d6699 VZ |
19607 | |
19608 | int tz; | |
19609 | tz = _timezone; | |
a0b9e27f MB |
19610 | |
19611 | ; return 0; } | |
19612 | EOF | |
5d3f766d | 19613 | if { (eval echo configure:19614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19614 | rm -rf conftest* |
19615 | ||
360d6699 | 19616 | wx_cv_var_timezone=_timezone |
a0b9e27f | 19617 | |
5357c8e8 | 19618 | else |
a0b9e27f MB |
19619 | echo "configure: failed program was:" >&5 |
19620 | cat conftest.$ac_ext >&5 | |
19621 | rm -rf conftest* | |
19622 | ||
19623 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 19624 | #line 19625 "configure" |
5357c8e8 VZ |
19625 | #include "confdefs.h" |
19626 | ||
b4085ce6 | 19627 | #include <time.h> |
a0b9e27f MB |
19628 | |
19629 | int main() { | |
5357c8e8 VZ |
19630 | |
19631 | int tz; | |
4f11a343 | 19632 | tz = __timezone; |
a0b9e27f MB |
19633 | |
19634 | ; return 0; } | |
19635 | EOF | |
5d3f766d | 19636 | if { (eval echo configure:19637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19637 | rm -rf conftest* |
19638 | ||
4f11a343 | 19639 | wx_cv_var_timezone=__timezone |
a0b9e27f | 19640 | |
360d6699 | 19641 | else |
a0b9e27f MB |
19642 | echo "configure: failed program was:" >&5 |
19643 | cat conftest.$ac_ext >&5 | |
19644 | rm -rf conftest* | |
19645 | ||
f9bc1684 | 19646 | if test "$USE_DOS" = 0 ; then |
a0b9e27f | 19647 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 19648 | fi |
a0b9e27f MB |
19649 | |
19650 | ||
328a083c | 19651 | fi |
a0b9e27f MB |
19652 | rm -f conftest* |
19653 | ||
19654 | ||
7b4a847f | 19655 | fi |
a0b9e27f MB |
19656 | rm -f conftest* |
19657 | ||
19658 | ||
5c6fa7d2 | 19659 | fi |
a0b9e27f MB |
19660 | rm -f conftest* |
19661 | ||
19662 | ||
247f5006 | 19663 | fi |
a0b9e27f MB |
19664 | |
19665 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 19666 | |
f9bc1684 | 19667 | if test "x$wx_cv_var_timezone" != x ; then |
a0b9e27f | 19668 | cat >> confdefs.h <<EOF |
360d6699 | 19669 | #define WX_TIMEZONE $wx_cv_var_timezone |
a0b9e27f | 19670 | EOF |
360d6699 | 19671 | |
f9bc1684 | 19672 | fi |
698dcdb6 | 19673 | |
a0b9e27f | 19674 | for ac_func in localtime |
afc31813 | 19675 | do |
a0b9e27f | 19676 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 19677 | echo "configure:19678: checking for $ac_func" >&5 |
a0b9e27f MB |
19678 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19680 | else | |
19681 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 19682 | #line 19683 "configure" |
10f2d63a | 19683 | #include "confdefs.h" |
afc31813 | 19684 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19685 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
19686 | #include <assert.h> |
19687 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19688 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19689 | builtin and then its argument prototype would still apply. */ |
19690 | char $ac_func(); | |
19691 | ||
19692 | int main() { | |
19693 | ||
afc31813 VZ |
19694 | /* The GNU C library defines this for functions which it implements |
19695 | to always fail with ENOSYS. Some functions are actually named | |
19696 | something starting with __ and the normal name is an alias. */ | |
19697 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19698 | choke me | |
19699 | #else | |
a0b9e27f | 19700 | $ac_func(); |
afc31813 VZ |
19701 | #endif |
19702 | ||
a0b9e27f MB |
19703 | ; return 0; } |
19704 | EOF | |
5d3f766d | 19705 | if { (eval echo configure:19706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19706 | rm -rf conftest* |
19707 | eval "ac_cv_func_$ac_func=yes" | |
19708 | else | |
19709 | echo "configure: failed program was:" >&5 | |
19710 | cat conftest.$ac_ext >&5 | |
19711 | rm -rf conftest* | |
19712 | eval "ac_cv_func_$ac_func=no" | |
19713 | fi | |
19714 | rm -f conftest* | |
19715 | fi | |
afc31813 | 19716 | |
a0b9e27f MB |
19717 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19718 | echo "$ac_t""yes" 1>&6 | |
19719 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19720 | cat >> confdefs.h <<EOF | |
19721 | #define $ac_tr_func 1 | |
19722 | EOF | |
19723 | ||
19724 | else | |
19725 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
19726 | fi |
19727 | done | |
19728 | ||
5c6fa7d2 | 19729 | |
8284b0c5 | 19730 | if test "$ac_cv_func_localtime" = "yes"; then |
a0b9e27f | 19731 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
5d3f766d | 19732 | echo "configure:19733: checking for tm_gmtoff in struct tm" >&5 |
a0b9e27f MB |
19733 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
19734 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19735 | else | |
19736 | ||
19737 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 19738 | #line 19739 "configure" |
0470b1e6 VZ |
19739 | #include "confdefs.h" |
19740 | ||
b4085ce6 | 19741 | #include <time.h> |
a0b9e27f MB |
19742 | |
19743 | int main() { | |
0470b1e6 VZ |
19744 | |
19745 | struct tm tm; | |
19746 | tm.tm_gmtoff++; | |
a0b9e27f MB |
19747 | |
19748 | ; return 0; } | |
19749 | EOF | |
5d3f766d | 19750 | if { (eval echo configure:19751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19751 | rm -rf conftest* |
19752 | ||
f03a98d8 | 19753 | wx_cv_struct_tm_has_gmtoff=yes |
a0b9e27f | 19754 | |
0470b1e6 | 19755 | else |
a0b9e27f MB |
19756 | echo "configure: failed program was:" >&5 |
19757 | cat conftest.$ac_ext >&5 | |
19758 | rm -rf conftest* | |
19759 | wx_cv_struct_tm_has_gmtoff=no | |
19760 | ||
5c6fa7d2 | 19761 | fi |
a0b9e27f MB |
19762 | rm -f conftest* |
19763 | ||
247f5006 | 19764 | fi |
a0b9e27f MB |
19765 | |
19766 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
19767 | fi |
19768 | ||
19769 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
a0b9e27f | 19770 | cat >> confdefs.h <<\EOF |
6232543b | 19771 | #define WX_GMTOFF_IN_TM 1 |
a0b9e27f | 19772 | EOF |
0470b1e6 | 19773 | |
3fcdd07b VZ |
19774 | fi |
19775 | ||
a0b9e27f | 19776 | for ac_func in gettimeofday ftime |
3fcdd07b | 19777 | do |
a0b9e27f | 19778 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 19779 | echo "configure:19780: checking for $ac_func" >&5 |
a0b9e27f MB |
19780 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19781 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19782 | else | |
19783 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 19784 | #line 19785 "configure" |
3fcdd07b VZ |
19785 | #include "confdefs.h" |
19786 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19787 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
19788 | #include <assert.h> |
19789 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19790 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19791 | builtin and then its argument prototype would still apply. */ |
19792 | char $ac_func(); | |
19793 | ||
19794 | int main() { | |
19795 | ||
3fcdd07b VZ |
19796 | /* The GNU C library defines this for functions which it implements |
19797 | to always fail with ENOSYS. Some functions are actually named | |
19798 | something starting with __ and the normal name is an alias. */ | |
19799 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19800 | choke me | |
19801 | #else | |
a0b9e27f | 19802 | $ac_func(); |
3fcdd07b VZ |
19803 | #endif |
19804 | ||
a0b9e27f MB |
19805 | ; return 0; } |
19806 | EOF | |
5d3f766d | 19807 | if { (eval echo configure:19808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19808 | rm -rf conftest* |
19809 | eval "ac_cv_func_$ac_func=yes" | |
19810 | else | |
19811 | echo "configure: failed program was:" >&5 | |
19812 | cat conftest.$ac_ext >&5 | |
19813 | rm -rf conftest* | |
19814 | eval "ac_cv_func_$ac_func=no" | |
19815 | fi | |
19816 | rm -f conftest* | |
19817 | fi | |
19818 | ||
19819 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19820 | echo "$ac_t""yes" 1>&6 | |
19821 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19822 | cat >> confdefs.h <<EOF | |
19823 | #define $ac_tr_func 1 | |
19824 | EOF | |
3fcdd07b | 19825 | break |
a0b9e27f MB |
19826 | else |
19827 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
19828 | fi |
19829 | done | |
19830 | ||
698dcdb6 | 19831 | |
8284b0c5 | 19832 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
a0b9e27f | 19833 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
5d3f766d | 19834 | echo "configure:19835: checking whether gettimeofday takes two arguments" >&5 |
a0b9e27f MB |
19835 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
19836 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19837 | else | |
19838 | ||
19839 | ||
19840 | ac_ext=C | |
19841 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 19842 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
19843 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19844 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19845 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 19846 | |
8284b0c5 | 19847 | |
a0b9e27f | 19848 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 19849 | #line 19850 "configure" |
10f2d63a | 19850 | #include "confdefs.h" |
afc31813 VZ |
19851 | |
19852 | #include <sys/time.h> | |
19853 | #include <unistd.h> | |
a0b9e27f MB |
19854 | |
19855 | int main() { | |
afc31813 VZ |
19856 | |
19857 | struct timeval tv; | |
776862b4 | 19858 | gettimeofday(&tv, NULL); |
a0b9e27f MB |
19859 | |
19860 | ; return 0; } | |
19861 | EOF | |
5d3f766d | 19862 | if { (eval echo configure:19863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19863 | rm -rf conftest* |
afc31813 | 19864 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 19865 | else |
a0b9e27f MB |
19866 | echo "configure: failed program was:" >&5 |
19867 | cat conftest.$ac_ext >&5 | |
19868 | rm -rf conftest* | |
19869 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 19870 | #line 19871 "configure" |
10f2d63a | 19871 | #include "confdefs.h" |
afc31813 VZ |
19872 | |
19873 | #include <sys/time.h> | |
19874 | #include <unistd.h> | |
a0b9e27f MB |
19875 | |
19876 | int main() { | |
afc31813 VZ |
19877 | |
19878 | struct timeval tv; | |
19879 | gettimeofday(&tv); | |
a0b9e27f MB |
19880 | |
19881 | ; return 0; } | |
19882 | EOF | |
5d3f766d | 19883 | if { (eval echo configure:19884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19884 | rm -rf conftest* |
afc31813 | 19885 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 19886 | else |
a0b9e27f MB |
19887 | echo "configure: failed program was:" >&5 |
19888 | cat conftest.$ac_ext >&5 | |
19889 | rm -rf conftest* | |
19890 | ||
19891 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 19892 | wx_cv_func_gettimeofday_has_2_args=unknown |
a0b9e27f MB |
19893 | |
19894 | ||
10f2d63a | 19895 | fi |
a0b9e27f MB |
19896 | rm -f conftest* |
19897 | ||
10f2d63a | 19898 | fi |
a0b9e27f | 19899 | rm -f conftest* |
afc31813 | 19900 | ac_ext=c |
a0b9e27f | 19901 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 19902 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
19903 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19904 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19905 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 19906 | |
a0b9e27f | 19907 | |
247f5006 | 19908 | fi |
a0b9e27f MB |
19909 | |
19910 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 19911 | |
afc31813 | 19912 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
a0b9e27f | 19913 | cat >> confdefs.h <<\EOF |
afc31813 | 19914 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
a0b9e27f | 19915 | EOF |
afc31813 VZ |
19916 | |
19917 | fi | |
19918 | fi | |
19919 | ||
a0b9e27f | 19920 | cat >> confdefs.h <<\EOF |
afc31813 | 19921 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 19922 | EOF |
afc31813 VZ |
19923 | |
19924 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
19925 | fi | |
19926 | ||
8284b0c5 | 19927 | |
52127426 | 19928 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 19929 | if test "$wxUSE_MGL" = "1"; then |
a0b9e27f | 19930 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
19931 | wxUSE_SOCKETS="no" |
19932 | fi | |
0feee163 | 19933 | fi |
b089607b | 19934 | |
0feee163 VZ |
19935 | if test "$wxUSE_SOCKETS" = "yes"; then |
19936 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 19937 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
5d3f766d | 19938 | echo "configure:19939: checking for socket" >&5 |
a0b9e27f MB |
19939 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
19940 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19941 | else |
a0b9e27f | 19942 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 19943 | #line 19944 "configure" |
c63c7106 VZ |
19944 | #include "confdefs.h" |
19945 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19946 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
19947 | #include <assert.h> |
19948 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19949 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19950 | builtin and then its argument prototype would still apply. */ |
19951 | char socket(); | |
19952 | ||
19953 | int main() { | |
19954 | ||
c63c7106 VZ |
19955 | /* The GNU C library defines this for functions which it implements |
19956 | to always fail with ENOSYS. Some functions are actually named | |
19957 | something starting with __ and the normal name is an alias. */ | |
19958 | #if defined (__stub_socket) || defined (__stub___socket) | |
19959 | choke me | |
19960 | #else | |
a0b9e27f | 19961 | socket(); |
c63c7106 VZ |
19962 | #endif |
19963 | ||
a0b9e27f MB |
19964 | ; return 0; } |
19965 | EOF | |
5d3f766d | 19966 | if { (eval echo configure:19967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19967 | rm -rf conftest* |
19968 | eval "ac_cv_func_socket=yes" | |
19969 | else | |
19970 | echo "configure: failed program was:" >&5 | |
19971 | cat conftest.$ac_ext >&5 | |
19972 | rm -rf conftest* | |
19973 | eval "ac_cv_func_socket=no" | |
19974 | fi | |
19975 | rm -f conftest* | |
19976 | fi | |
19977 | ||
19978 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
19979 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
19980 | : |
19981 | else | |
a0b9e27f MB |
19982 | echo "$ac_t""no" 1>&6 |
19983 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
5d3f766d | 19984 | echo "configure:19985: checking for socket in -lsocket" >&5 |
a0b9e27f MB |
19985 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
19986 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19987 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19988 | else |
a0b9e27f | 19989 | ac_save_LIBS="$LIBS" |
c63c7106 | 19990 | LIBS="-lsocket $LIBS" |
a0b9e27f | 19991 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 19992 | #line 19993 "configure" |
c63c7106 VZ |
19993 | #include "confdefs.h" |
19994 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19995 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19996 | builtin and then its argument prototype would still apply. */ |
19997 | char socket(); | |
19998 | ||
19999 | int main() { | |
20000 | socket() | |
20001 | ; return 0; } | |
20002 | EOF | |
5d3f766d | 20003 | if { (eval echo configure:20004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20004 | rm -rf conftest* |
20005 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20006 | else | |
20007 | echo "configure: failed program was:" >&5 | |
20008 | cat conftest.$ac_ext >&5 | |
20009 | rm -rf conftest* | |
20010 | eval "ac_cv_lib_$ac_lib_var=no" | |
20011 | fi | |
20012 | rm -f conftest* | |
20013 | LIBS="$ac_save_LIBS" | |
20014 | ||
20015 | fi | |
20016 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20017 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
20018 | if test "$INET_LINK" != " -lsocket"; then |
20019 | INET_LINK="$INET_LINK -lsocket" | |
20020 | fi | |
c63c7106 | 20021 | else |
a0b9e27f | 20022 | echo "$ac_t""no" 1>&6 |
afc31813 | 20023 | |
a0b9e27f | 20024 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 20025 | wxUSE_SOCKETS=no |
a0b9e27f MB |
20026 | |
20027 | ||
6232543b | 20028 | fi |
b089607b | 20029 | |
a0b9e27f | 20030 | |
1e487827 | 20031 | fi |
afc31813 | 20032 | |
3a922bb4 | 20033 | fi |
0feee163 | 20034 | fi |
51a9faba | 20035 | |
0feee163 VZ |
20036 | if test "$wxUSE_SOCKETS" = "yes" ; then |
20037 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20038 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
5d3f766d | 20039 | echo "configure:20040: checking what is the type of the third argument of getsockname" >&5 |
a0b9e27f MB |
20040 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
20041 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20042 | else | |
20043 | ||
20044 | ||
20045 | ac_ext=C | |
20046 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20047 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20048 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20049 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20050 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 20051 | |
8284b0c5 | 20052 | |
a0b9e27f | 20053 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 20054 | #line 20055 "configure" |
afc31813 | 20055 | #include "confdefs.h" |
51a9faba | 20056 | |
3a922bb4 RL |
20057 | #include <sys/types.h> |
20058 | #include <sys/socket.h> | |
a0b9e27f MB |
20059 | |
20060 | int main() { | |
51a9faba | 20061 | |
3a922bb4 RL |
20062 | socklen_t len; |
20063 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20064 | |
20065 | ; return 0; } | |
20066 | EOF | |
5d3f766d | 20067 | if { (eval echo configure:20068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20068 | rm -rf conftest* |
51a9faba | 20069 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 20070 | else |
a0b9e27f MB |
20071 | echo "configure: failed program was:" >&5 |
20072 | cat conftest.$ac_ext >&5 | |
20073 | rm -rf conftest* | |
20074 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 20075 | #line 20076 "configure" |
afc31813 | 20076 | #include "confdefs.h" |
51a9faba | 20077 | |
3a922bb4 RL |
20078 | #include <sys/types.h> |
20079 | #include <sys/socket.h> | |
a0b9e27f MB |
20080 | |
20081 | int main() { | |
51a9faba | 20082 | |
3a922bb4 RL |
20083 | size_t len; |
20084 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20085 | |
20086 | ; return 0; } | |
20087 | EOF | |
5d3f766d | 20088 | if { (eval echo configure:20089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20089 | rm -rf conftest* |
51a9faba | 20090 | wx_cv_type_getsockname3=size_t |
afc31813 | 20091 | else |
a0b9e27f MB |
20092 | echo "configure: failed program was:" >&5 |
20093 | cat conftest.$ac_ext >&5 | |
20094 | rm -rf conftest* | |
20095 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 20096 | #line 20097 "configure" |
afc31813 | 20097 | #include "confdefs.h" |
51a9faba | 20098 | |
3a922bb4 RL |
20099 | #include <sys/types.h> |
20100 | #include <sys/socket.h> | |
a0b9e27f MB |
20101 | |
20102 | int main() { | |
51a9faba | 20103 | |
3a922bb4 RL |
20104 | int len; |
20105 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20106 | |
20107 | ; return 0; } | |
20108 | EOF | |
5d3f766d | 20109 | if { (eval echo configure:20110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20110 | rm -rf conftest* |
51a9faba | 20111 | wx_cv_type_getsockname3=int |
afc31813 | 20112 | else |
a0b9e27f MB |
20113 | echo "configure: failed program was:" >&5 |
20114 | cat conftest.$ac_ext >&5 | |
20115 | rm -rf conftest* | |
20116 | wx_cv_type_getsockname3=unknown | |
20117 | ||
afc31813 | 20118 | fi |
a0b9e27f MB |
20119 | rm -f conftest* |
20120 | ||
afc31813 | 20121 | fi |
a0b9e27f MB |
20122 | rm -f conftest* |
20123 | ||
afc31813 | 20124 | fi |
a0b9e27f | 20125 | rm -f conftest* |
51a9faba | 20126 | |
3a922bb4 | 20127 | ac_ext=c |
a0b9e27f | 20128 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 20129 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20130 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20131 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20132 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20133 | |
a0b9e27f | 20134 | |
247f5006 | 20135 | fi |
a0b9e27f MB |
20136 | |
20137 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 20138 | |
3a922bb4 RL |
20139 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
20140 | wxUSE_SOCKETS=no | |
a0b9e27f | 20141 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 20142 | else |
a0b9e27f | 20143 | cat >> confdefs.h <<EOF |
51a9faba | 20144 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
a0b9e27f | 20145 | EOF |
51a9faba | 20146 | |
3a922bb4 | 20147 | fi |
51a9faba VZ |
20148 | fi |
20149 | fi | |
afc31813 | 20150 | |
51a9faba | 20151 | if test "$wxUSE_SOCKETS" = "yes" ; then |
a0b9e27f | 20152 | cat >> confdefs.h <<\EOF |
afc31813 | 20153 | #define wxUSE_SOCKETS 1 |
a0b9e27f | 20154 | EOF |
afc31813 | 20155 | |
70f7a477 | 20156 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
20157 | fi |
20158 | ||
8284b0c5 | 20159 | |
dc3d889d VZ |
20160 | if test "$wxUSE_GUI" = "yes"; then |
20161 | ||
156b2523 | 20162 | if test "$TOOLKIT" = "MAC"; then |
a0b9e27f | 20163 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20164 | wxUSE_JOYSTICK=no |
20165 | fi | |
20166 | if test "$TOOLKIT" = "MOTIF"; then | |
a0b9e27f | 20167 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 20168 | wxUSE_JOYSTICK=no |
f79bd02d JS |
20169 | fi |
20170 | if test "$TOOLKIT" = "X11"; then | |
a0b9e27f | 20171 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 20172 | wxUSE_JOYSTICK=no |
156b2523 GD |
20173 | fi |
20174 | ||
3a922bb4 RL |
20175 | if test "$TOOLKIT" != "MSW"; then |
20176 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
a0b9e27f | 20177 | for ac_hdr in linux/joystick.h |
10f2d63a | 20178 | do |
a0b9e27f MB |
20179 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20180 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5d3f766d | 20181 | echo "configure:20182: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20182 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20184 | else | |
20185 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 20186 | #line 20187 "configure" |
247f5006 | 20187 | #include "confdefs.h" |
a0b9e27f MB |
20188 | #include <$ac_hdr> |
20189 | EOF | |
20190 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5d3f766d | 20191 | { (eval echo configure:20192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20192 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20193 | if test -z "$ac_err"; then | |
20194 | rm -rf conftest* | |
20195 | eval "ac_cv_header_$ac_safe=yes" | |
20196 | else | |
20197 | echo "$ac_err" >&5 | |
20198 | echo "configure: failed program was:" >&5 | |
247f5006 | 20199 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20200 | rm -rf conftest* |
20201 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 20202 | fi |
a0b9e27f | 20203 | rm -f conftest* |
10f2d63a | 20204 | fi |
a0b9e27f MB |
20205 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20206 | echo "$ac_t""yes" 1>&6 | |
20207 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20208 | cat >> confdefs.h <<EOF | |
20209 | #define $ac_tr_hdr 1 | |
20210 | EOF | |
20211 | ||
20212 | else | |
20213 | echo "$ac_t""no" 1>&6 | |
247f5006 | 20214 | fi |
10f2d63a VZ |
20215 | done |
20216 | ||
3a922bb4 RL |
20217 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
20218 | wxUSE_JOYSTICK=no | |
a0b9e27f | 20219 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
20220 | fi |
20221 | fi | |
20222 | fi | |
b089607b | 20223 | |
3a922bb4 | 20224 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a0b9e27f | 20225 | cat >> confdefs.h <<\EOF |
10f2d63a | 20226 | #define wxUSE_JOYSTICK 1 |
a0b9e27f | 20227 | EOF |
10f2d63a | 20228 | |
3a922bb4 RL |
20229 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
20230 | fi | |
dc3d889d VZ |
20231 | fi |
20232 | ||
8284b0c5 | 20233 | |
b089607b VZ |
20234 | if test "$TOOLKIT" != "MSW"; then |
20235 | ||
3a922bb4 RL |
20236 | HAVE_DL_FUNCS=0 |
20237 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 20238 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
20239 | if test "$USE_DARWIN" = 1; then |
20240 | HAVE_DL_FUNCS=1 | |
20241 | else | |
a0b9e27f | 20242 | for ac_func in dlopen |
10f2d63a | 20243 | do |
a0b9e27f | 20244 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 20245 | echo "configure:20246: checking for $ac_func" >&5 |
a0b9e27f MB |
20246 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20247 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20248 | else | |
20249 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 20250 | #line 20251 "configure" |
10f2d63a VZ |
20251 | #include "confdefs.h" |
20252 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20253 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20254 | #include <assert.h> |
20255 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20256 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20257 | builtin and then its argument prototype would still apply. */ |
20258 | char $ac_func(); | |
20259 | ||
20260 | int main() { | |
20261 | ||
10f2d63a VZ |
20262 | /* The GNU C library defines this for functions which it implements |
20263 | to always fail with ENOSYS. Some functions are actually named | |
20264 | something starting with __ and the normal name is an alias. */ | |
20265 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20266 | choke me | |
20267 | #else | |
a0b9e27f | 20268 | $ac_func(); |
10f2d63a VZ |
20269 | #endif |
20270 | ||
a0b9e27f MB |
20271 | ; return 0; } |
20272 | EOF | |
5d3f766d | 20273 | if { (eval echo configure:20274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20274 | rm -rf conftest* |
20275 | eval "ac_cv_func_$ac_func=yes" | |
20276 | else | |
20277 | echo "configure: failed program was:" >&5 | |
20278 | cat conftest.$ac_ext >&5 | |
20279 | rm -rf conftest* | |
20280 | eval "ac_cv_func_$ac_func=no" | |
20281 | fi | |
20282 | rm -f conftest* | |
20283 | fi | |
20284 | ||
20285 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20286 | echo "$ac_t""yes" 1>&6 | |
20287 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20288 | cat >> confdefs.h <<EOF | |
20289 | #define $ac_tr_func 1 | |
20290 | EOF | |
20291 | ||
20292 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20293 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20294 | EOF |
10f2d63a | 20295 | |
3a922bb4 | 20296 | HAVE_DL_FUNCS=1 |
a0b9e27f | 20297 | |
10f2d63a | 20298 | else |
a0b9e27f MB |
20299 | echo "$ac_t""no" 1>&6 |
20300 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
5d3f766d | 20301 | echo "configure:20302: checking for dlopen in -ldl" >&5 |
a0b9e27f MB |
20302 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
20303 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20304 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20305 | else |
a0b9e27f | 20306 | ac_save_LIBS="$LIBS" |
10f2d63a | 20307 | LIBS="-ldl $LIBS" |
a0b9e27f | 20308 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 20309 | #line 20310 "configure" |
10f2d63a VZ |
20310 | #include "confdefs.h" |
20311 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20312 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20313 | builtin and then its argument prototype would still apply. */ |
20314 | char dlopen(); | |
20315 | ||
20316 | int main() { | |
20317 | dlopen() | |
20318 | ; return 0; } | |
20319 | EOF | |
5d3f766d | 20320 | if { (eval echo configure:20321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20321 | rm -rf conftest* |
20322 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20323 | else | |
20324 | echo "configure: failed program was:" >&5 | |
20325 | cat conftest.$ac_ext >&5 | |
20326 | rm -rf conftest* | |
20327 | eval "ac_cv_lib_$ac_lib_var=no" | |
20328 | fi | |
20329 | rm -f conftest* | |
20330 | LIBS="$ac_save_LIBS" | |
20331 | ||
20332 | fi | |
20333 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20334 | echo "$ac_t""yes" 1>&6 | |
20335 | ||
20336 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20337 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20338 | EOF |
10f2d63a | 20339 | |
3a922bb4 | 20340 | HAVE_DL_FUNCS=1 |
3d63bc3a | 20341 | DL_LINK=" -ldl$DL_LINK" |
a0b9e27f | 20342 | |
10f2d63a | 20343 | else |
a0b9e27f | 20344 | echo "$ac_t""no" 1>&6 |
10f2d63a | 20345 | |
a0b9e27f | 20346 | for ac_func in shl_load |
10f2d63a | 20347 | do |
a0b9e27f | 20348 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 20349 | echo "configure:20350: checking for $ac_func" >&5 |
a0b9e27f MB |
20350 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20351 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20352 | else | |
20353 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 20354 | #line 20355 "configure" |
10f2d63a VZ |
20355 | #include "confdefs.h" |
20356 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20357 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20358 | #include <assert.h> |
20359 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20360 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20361 | builtin and then its argument prototype would still apply. */ |
20362 | char $ac_func(); | |
20363 | ||
20364 | int main() { | |
20365 | ||
10f2d63a VZ |
20366 | /* The GNU C library defines this for functions which it implements |
20367 | to always fail with ENOSYS. Some functions are actually named | |
20368 | something starting with __ and the normal name is an alias. */ | |
20369 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20370 | choke me | |
20371 | #else | |
a0b9e27f | 20372 | $ac_func(); |
10f2d63a VZ |
20373 | #endif |
20374 | ||
a0b9e27f MB |
20375 | ; return 0; } |
20376 | EOF | |
5d3f766d | 20377 | if { (eval echo configure:20378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20378 | rm -rf conftest* |
20379 | eval "ac_cv_func_$ac_func=yes" | |
20380 | else | |
20381 | echo "configure: failed program was:" >&5 | |
20382 | cat conftest.$ac_ext >&5 | |
20383 | rm -rf conftest* | |
20384 | eval "ac_cv_func_$ac_func=no" | |
20385 | fi | |
20386 | rm -f conftest* | |
20387 | fi | |
20388 | ||
20389 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20390 | echo "$ac_t""yes" 1>&6 | |
20391 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20392 | cat >> confdefs.h <<EOF | |
20393 | #define $ac_tr_func 1 | |
20394 | EOF | |
20395 | ||
20396 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20397 | #define HAVE_SHL_LOAD 1 |
a0b9e27f | 20398 | EOF |
10f2d63a | 20399 | |
3a922bb4 | 20400 | HAVE_SHL_FUNCS=1 |
a0b9e27f | 20401 | |
10f2d63a | 20402 | else |
a0b9e27f MB |
20403 | echo "$ac_t""no" 1>&6 |
20404 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
5d3f766d | 20405 | echo "configure:20406: checking for dld in -lshl_load" >&5 |
a0b9e27f MB |
20406 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
20407 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20408 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20409 | else |
a0b9e27f | 20410 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20411 | LIBS="-lshl_load $LIBS" |
a0b9e27f | 20412 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 20413 | #line 20414 "configure" |
f6bcfd97 | 20414 | #include "confdefs.h" |
8284b0c5 | 20415 | /* Override any gcc2 internal prototype to avoid an error. */ |
f6bcfd97 | 20416 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
20417 | builtin and then its argument prototype would still apply. */ |
20418 | char dld(); | |
20419 | ||
20420 | int main() { | |
20421 | dld() | |
20422 | ; return 0; } | |
20423 | EOF | |
5d3f766d | 20424 | if { (eval echo configure:20425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20425 | rm -rf conftest* |
20426 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20427 | else | |
20428 | echo "configure: failed program was:" >&5 | |
20429 | cat conftest.$ac_ext >&5 | |
20430 | rm -rf conftest* | |
20431 | eval "ac_cv_lib_$ac_lib_var=no" | |
20432 | fi | |
20433 | rm -f conftest* | |
20434 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 20435 | |
a0b9e27f MB |
20436 | fi |
20437 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20438 | echo "$ac_t""yes" 1>&6 | |
20439 | ||
3a922bb4 | 20440 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 20441 | DL_LINK=" -ldld$DL_LINK" |
a0b9e27f MB |
20442 | |
20443 | else | |
20444 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20445 | fi |
20446 | ||
a0b9e27f | 20447 | |
10f2d63a VZ |
20448 | fi |
20449 | done | |
20450 | ||
a0b9e27f | 20451 | |
10f2d63a VZ |
20452 | fi |
20453 | ||
a0b9e27f | 20454 | |
10f2d63a VZ |
20455 | fi |
20456 | done | |
20457 | ||
5c6fa7d2 | 20458 | |
8284b0c5 | 20459 | if test "$HAVE_DL_FUNCS" = 1; then |
a0b9e27f | 20460 | for ac_func in dlerror |
f6bcfd97 | 20461 | do |
a0b9e27f | 20462 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5d3f766d | 20463 | echo "configure:20464: checking for $ac_func" >&5 |
a0b9e27f MB |
20464 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20465 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20466 | else | |
20467 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 20468 | #line 20469 "configure" |
f6bcfd97 BP |
20469 | #include "confdefs.h" |
20470 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20471 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
20472 | #include <assert.h> |
20473 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20474 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20475 | builtin and then its argument prototype would still apply. */ |
20476 | char $ac_func(); | |
20477 | ||
20478 | int main() { | |
20479 | ||
f6bcfd97 BP |
20480 | /* The GNU C library defines this for functions which it implements |
20481 | to always fail with ENOSYS. Some functions are actually named | |
20482 | something starting with __ and the normal name is an alias. */ | |
20483 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20484 | choke me | |
20485 | #else | |
a0b9e27f | 20486 | $ac_func(); |
f6bcfd97 BP |
20487 | #endif |
20488 | ||
a0b9e27f MB |
20489 | ; return 0; } |
20490 | EOF | |
5d3f766d | 20491 | if { (eval echo configure:20492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20492 | rm -rf conftest* |
20493 | eval "ac_cv_func_$ac_func=yes" | |
20494 | else | |
20495 | echo "configure: failed program was:" >&5 | |
20496 | cat conftest.$ac_ext >&5 | |
20497 | rm -rf conftest* | |
20498 | eval "ac_cv_func_$ac_func=no" | |
20499 | fi | |
20500 | rm -f conftest* | |
20501 | fi | |
20502 | ||
20503 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20504 | echo "$ac_t""yes" 1>&6 | |
20505 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20506 | cat >> confdefs.h <<EOF | |
20507 | #define $ac_tr_func 1 | |
20508 | EOF | |
20509 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20510 | #define HAVE_DLERROR 1 |
a0b9e27f | 20511 | EOF |
f6bcfd97 BP |
20512 | |
20513 | else | |
a0b9e27f MB |
20514 | echo "$ac_t""no" 1>&6 |
20515 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
5d3f766d | 20516 | echo "configure:20517: checking for dlerror in -ldl" >&5 |
a0b9e27f MB |
20517 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
20518 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20519 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20520 | else |
a0b9e27f | 20521 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20522 | LIBS="-ldl $LIBS" |
a0b9e27f | 20523 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 20524 | #line 20525 "configure" |
f6bcfd97 BP |
20525 | #include "confdefs.h" |
20526 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20527 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20528 | builtin and then its argument prototype would still apply. */ |
20529 | char dlerror(); | |
20530 | ||
20531 | int main() { | |
20532 | dlerror() | |
20533 | ; return 0; } | |
20534 | EOF | |
5d3f766d | 20535 | if { (eval echo configure:20536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20536 | rm -rf conftest* |
20537 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20538 | else | |
20539 | echo "configure: failed program was:" >&5 | |
20540 | cat conftest.$ac_ext >&5 | |
20541 | rm -rf conftest* | |
20542 | eval "ac_cv_lib_$ac_lib_var=no" | |
20543 | fi | |
20544 | rm -f conftest* | |
20545 | LIBS="$ac_save_LIBS" | |
20546 | ||
20547 | fi | |
20548 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20549 | echo "$ac_t""yes" 1>&6 | |
20550 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20551 | #define HAVE_DLERROR 1 |
a0b9e27f | 20552 | EOF |
f6bcfd97 | 20553 | |
a0b9e27f MB |
20554 | else |
20555 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20556 | fi |
20557 | ||
20558 | fi | |
20559 | done | |
20560 | ||
3a922bb4 RL |
20561 | fi |
20562 | fi | |
f6bcfd97 | 20563 | |
3a922bb4 RL |
20564 | if test "$HAVE_DL_FUNCS" = 0; then |
20565 | if test "$HAVE_SHL_FUNCS" = 0; then | |
20566 | if test "$USE_UNIX" = 1; then | |
a0b9e27f | 20567 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 20568 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
20569 | wxUSE_DYNLIB_CLASS=no |
20570 | else | |
a0b9e27f | 20571 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
20572 | fi |
20573 | fi | |
10f2d63a VZ |
20574 | fi |
20575 | fi | |
20576 | fi | |
20577 | ||
0b9ab0bd | 20578 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
a0b9e27f | 20579 | cat >> confdefs.h <<\EOF |
0b9ab0bd | 20580 | #define wxUSE_DYNAMIC_LOADER 1 |
a0b9e27f | 20581 | EOF |
0b9ab0bd RL |
20582 | |
20583 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
a0b9e27f | 20584 | cat >> confdefs.h <<\EOF |
10f2d63a | 20585 | #define wxUSE_DYNLIB_CLASS 1 |
a0b9e27f | 20586 | EOF |
10f2d63a VZ |
20587 | |
20588 | fi | |
20589 | ||
8284b0c5 | 20590 | |
1e6feb95 | 20591 | if test "$wxUSE_FONTMAP" = "yes" ; then |
a0b9e27f | 20592 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20593 | #define wxUSE_FONTMAP 1 |
a0b9e27f | 20594 | EOF |
1e6feb95 VZ |
20595 | |
20596 | fi | |
20597 | ||
10f2d63a | 20598 | if test "$wxUSE_UNICODE" = "yes" ; then |
a0b9e27f | 20599 | cat >> confdefs.h <<\EOF |
10f2d63a | 20600 | #define wxUSE_UNICODE 1 |
a0b9e27f | 20601 | EOF |
10f2d63a | 20602 | |
8284b0c5 | 20603 | |
bbc3925a VS |
20604 | if test "$wxUSE_MSW" != 1; then |
20605 | wxUSE_UNICODE_MSLU=no | |
20606 | fi | |
a72a4bfa VS |
20607 | |
20608 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
a0b9e27f | 20609 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
5d3f766d | 20610 | echo "configure:20611: checking for main in -lunicows" >&5 |
a0b9e27f MB |
20611 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
20612 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20613 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 20614 | else |
a0b9e27f | 20615 | ac_save_LIBS="$LIBS" |
a72a4bfa | 20616 | LIBS="-lunicows $LIBS" |
a0b9e27f | 20617 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 20618 | #line 20619 "configure" |
a72a4bfa VS |
20619 | #include "confdefs.h" |
20620 | ||
a0b9e27f MB |
20621 | int main() { |
20622 | main() | |
20623 | ; return 0; } | |
20624 | EOF | |
5d3f766d | 20625 | if { (eval echo configure:20626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20626 | rm -rf conftest* |
20627 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20628 | else | |
20629 | echo "configure: failed program was:" >&5 | |
20630 | cat conftest.$ac_ext >&5 | |
20631 | rm -rf conftest* | |
20632 | eval "ac_cv_lib_$ac_lib_var=no" | |
20633 | fi | |
20634 | rm -f conftest* | |
20635 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 20636 | |
a0b9e27f MB |
20637 | fi |
20638 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20639 | echo "$ac_t""yes" 1>&6 | |
20640 | ||
20641 | cat >> confdefs.h <<\EOF | |
a72a4bfa | 20642 | #define wxUSE_UNICODE_MSLU 1 |
a0b9e27f | 20643 | EOF |
a72a4bfa | 20644 | |
a0b9e27f | 20645 | |
a72a4bfa | 20646 | else |
a0b9e27f | 20647 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 20648 | |
a0b9e27f MB |
20649 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
20650 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 20651 | wxUSE_UNICODE_MSLU=no |
a0b9e27f | 20652 | |
a72a4bfa VS |
20653 | fi |
20654 | ||
20655 | fi | |
10f2d63a VZ |
20656 | fi |
20657 | ||
10f2d63a | 20658 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
a0b9e27f | 20659 | cat >> confdefs.h <<\EOF |
10f2d63a | 20660 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
a0b9e27f | 20661 | EOF |
10f2d63a VZ |
20662 | |
20663 | fi | |
20664 | ||
8284b0c5 MB |
20665 | |
20666 | ||
10f2d63a VZ |
20667 | IODBC_C_SRC="" |
20668 | if test "$wxUSE_ODBC" = "yes" ; then | |
a0b9e27f | 20669 | cat >> confdefs.h <<\EOF |
10f2d63a | 20670 | #define wxUSE_ODBC 1 |
a0b9e27f | 20671 | EOF |
10f2d63a VZ |
20672 | |
20673 | WXODBCFLAG="-D_IODBC_" | |
20674 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
20675 | fi |
20676 | ||
8284b0c5 | 20677 | |
10f2d63a | 20678 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
a0b9e27f | 20679 | cat >> confdefs.h <<\EOF |
10f2d63a | 20680 | #define wxUSE_POSTSCRIPT 1 |
a0b9e27f | 20681 | EOF |
10f2d63a VZ |
20682 | |
20683 | fi | |
20684 | ||
a0b9e27f | 20685 | cat >> confdefs.h <<\EOF |
10f2d63a | 20686 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
a0b9e27f | 20687 | EOF |
10f2d63a | 20688 | |
8284b0c5 | 20689 | |
a0b9e27f | 20690 | cat >> confdefs.h <<\EOF |
10f2d63a | 20691 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
a0b9e27f | 20692 | EOF |
10f2d63a | 20693 | |
8284b0c5 MB |
20694 | |
20695 | ||
10f2d63a | 20696 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
a0b9e27f | 20697 | cat >> confdefs.h <<\EOF |
10f2d63a | 20698 | #define wxUSE_CONSTRAINTS 1 |
a0b9e27f | 20699 | EOF |
10f2d63a VZ |
20700 | |
20701 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
20702 | fi | |
20703 | ||
20704 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 20705 | |
8284b0c5 | 20706 | |
bb811f17 | 20707 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
a0b9e27f | 20708 | cat >> confdefs.h <<\EOF |
10f2d63a | 20709 | #define wxUSE_MDI_ARCHITECTURE 1 |
a0b9e27f | 20710 | EOF |
10f2d63a | 20711 | |
bb811f17 JS |
20712 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
20713 | fi | |
10f2d63a VZ |
20714 | fi |
20715 | ||
20716 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 20717 | cat >> confdefs.h <<\EOF |
10f2d63a | 20718 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
a0b9e27f | 20719 | EOF |
10f2d63a VZ |
20720 | |
20721 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
20722 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
20723 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
20724 | fi | |
20725 | fi | |
20726 | ||
20727 | if test "$wxUSE_HELP" = "yes"; then | |
a0b9e27f | 20728 | cat >> confdefs.h <<\EOF |
10f2d63a | 20729 | #define wxUSE_HELP 1 |
a0b9e27f | 20730 | EOF |
10f2d63a VZ |
20731 | |
20732 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 20733 | |
77e13408 | 20734 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 20735 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
a0b9e27f | 20736 | cat >> confdefs.h <<\EOF |
29fd3c0c | 20737 | #define wxUSE_MS_HTML_HELP 1 |
a0b9e27f | 20738 | EOF |
29fd3c0c | 20739 | |
3e44f09d | 20740 | fi |
3379ed37 | 20741 | fi |
031d8228 VS |
20742 | |
20743 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
20744 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 20745 | cat >> confdefs.h <<\EOF |
031d8228 | 20746 | #define wxUSE_WXHTML_HELP 1 |
a0b9e27f | 20747 | EOF |
031d8228 VS |
20748 | |
20749 | else | |
a0b9e27f | 20750 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
20751 | wxUSE_WXHTML_HELP=no |
20752 | fi | |
20753 | fi | |
10f2d63a VZ |
20754 | fi |
20755 | ||
20756 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
20757 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 20758 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 20759 | else |
a0b9e27f | 20760 | cat >> confdefs.h <<\EOF |
10f2d63a | 20761 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
a0b9e27f | 20762 | EOF |
10f2d63a VZ |
20763 | |
20764 | fi | |
20765 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
20766 | fi | |
20767 | ||
20768 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
a0b9e27f | 20769 | cat >> confdefs.h <<\EOF |
10f2d63a | 20770 | #define wxUSE_PROLOGIO 1 |
a0b9e27f | 20771 | EOF |
10f2d63a | 20772 | |
2b5f62a0 | 20773 | ALL_OBJECTS="$ALL_OBJECTS parser.o" |
10f2d63a VZ |
20774 | fi |
20775 | ||
20776 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea | 20777 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 20778 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 |
2b5f62a0 VZ |
20779 | else |
20780 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20781 | #define wxUSE_RESOURCES 1 |
a0b9e27f | 20782 | EOF |
10f2d63a | 20783 | |
2b5f62a0 VZ |
20784 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
20785 | fi | |
20786 | if test "$wxUSE_PROLOGIO" != "yes" ; then | |
20787 | ALL_OBJECTS="$ALL_OBJECTS parser.o" | |
e334d0ea | 20788 | fi |
10f2d63a VZ |
20789 | fi |
20790 | ||
20791 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
a0b9e27f | 20792 | cat >> confdefs.h <<\EOF |
10f2d63a | 20793 | #define wxUSE_X_RESOURCES 1 |
a0b9e27f | 20794 | EOF |
10f2d63a VZ |
20795 | |
20796 | fi | |
20797 | ||
8284b0c5 | 20798 | |
77e13408 RL |
20799 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
20800 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
3bce6687 | 20801 | -o "$wxUSE_OLE" = "yes" \ |
77e13408 | 20802 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then |
a0b9e27f | 20803 | for ac_hdr in ole2.h |
10f2d63a | 20804 | do |
a0b9e27f MB |
20805 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20806 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5d3f766d | 20807 | echo "configure:20808: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20808 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20810 | else | |
20811 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 20812 | #line 20813 "configure" |
10f2d63a | 20813 | #include "confdefs.h" |
a0b9e27f MB |
20814 | #include <$ac_hdr> |
20815 | EOF | |
20816 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5d3f766d | 20817 | { (eval echo configure:20818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20818 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20819 | if test -z "$ac_err"; then | |
20820 | rm -rf conftest* | |
20821 | eval "ac_cv_header_$ac_safe=yes" | |
20822 | else | |
20823 | echo "$ac_err" >&5 | |
20824 | echo "configure: failed program was:" >&5 | |
10f2d63a | 20825 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20826 | rm -rf conftest* |
20827 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 20828 | fi |
a0b9e27f | 20829 | rm -f conftest* |
10f2d63a | 20830 | fi |
a0b9e27f MB |
20831 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20832 | echo "$ac_t""yes" 1>&6 | |
20833 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20834 | cat >> confdefs.h <<EOF | |
20835 | #define $ac_tr_hdr 1 | |
20836 | EOF | |
20837 | ||
20838 | else | |
20839 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
20840 | fi |
20841 | done | |
20842 | ||
8284b0c5 | 20843 | |
2b9bdf71 VZ |
20844 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
20845 | if test "$GCC" = yes ; then | |
a0b9e27f MB |
20846 | |
20847 | ac_ext=C | |
20848 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8284b0c5 | 20849 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20850 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20851 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20852 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 MB |
20853 | |
20854 | ||
a0b9e27f | 20855 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 |
5d3f766d | 20856 | echo "configure:20857: checking if g++ requires -fvtable-thunks" >&5 |
a0b9e27f | 20857 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 20858 | #line 20859 "configure" |
8284b0c5 MB |
20859 | #include "confdefs.h" |
20860 | #include <windows.h> | |
20861 | #include <ole2.h> | |
a0b9e27f | 20862 | int main() { |
8284b0c5 | 20863 | |
a0b9e27f MB |
20864 | ; return 0; } |
20865 | EOF | |
5d3f766d | 20866 | if { (eval echo configure:20867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20867 | rm -rf conftest* |
20868 | echo "$ac_t""no" 1>&6 | |
20869 | else | |
20870 | echo "configure: failed program was:" >&5 | |
20871 | cat conftest.$ac_ext >&5 | |
20872 | rm -rf conftest* | |
20873 | echo "$ac_t""yes" 1>&6 | |
8284b0c5 MB |
20874 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
20875 | fi | |
a0b9e27f | 20876 | rm -f conftest* |
8284b0c5 | 20877 | ac_ext=c |
a0b9e27f | 20878 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8284b0c5 | 20879 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20880 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20881 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20882 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20883 | |
2b9bdf71 | 20884 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 20885 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
a0b9e27f | 20886 | cat >> confdefs.h <<\EOF |
4f11a343 | 20887 | #define wxUSE_OLE 1 |
a0b9e27f | 20888 | EOF |
4f11a343 | 20889 | |
8284b0c5 | 20890 | |
2b9bdf71 VZ |
20891 | fi |
20892 | ||
a0b9e27f | 20893 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 20894 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 20895 | EOF |
2b9bdf71 VZ |
20896 | |
20897 | else | |
a0b9e27f | 20898 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
20899 | |
20900 | wxUSE_CLIPBOARD=no | |
20901 | wxUSE_DRAG_AND_DROP=no | |
20902 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
20903 | wxUSE_OLE=no |
20904 | fi | |
20905 | ||
20906 | if test "$wxUSE_METAFILE" = "yes"; then | |
20907 | cat >> confdefs.h <<\EOF | |
20908 | #define wxUSE_METAFILE 1 | |
20909 | EOF | |
20910 | ||
20911 | ||
20912 | cat >> confdefs.h <<\EOF | |
20913 | #define wxUSE_ENH_METAFILE 1 | |
20914 | EOF | |
20915 | ||
20916 | fi | |
20917 | fi | |
20918 | ||
20919 | if test "$wxUSE_WINE" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
20920 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
20921 | -o "$wxUSE_OLE" = "yes" \ | |
20922 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
20923 | for ac_hdr in ole2.h | |
20924 | do | |
20925 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
20926 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5d3f766d | 20927 | echo "configure:20928: checking for $ac_hdr" >&5 |
3bce6687 JS |
20928 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20929 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20930 | else | |
20931 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 20932 | #line 20933 "configure" |
3bce6687 JS |
20933 | #include "confdefs.h" |
20934 | #include <$ac_hdr> | |
20935 | EOF | |
20936 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5d3f766d | 20937 | { (eval echo configure:20938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3bce6687 JS |
20938 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20939 | if test -z "$ac_err"; then | |
20940 | rm -rf conftest* | |
20941 | eval "ac_cv_header_$ac_safe=yes" | |
20942 | else | |
20943 | echo "$ac_err" >&5 | |
20944 | echo "configure: failed program was:" >&5 | |
20945 | cat conftest.$ac_ext >&5 | |
20946 | rm -rf conftest* | |
20947 | eval "ac_cv_header_$ac_safe=no" | |
20948 | fi | |
20949 | rm -f conftest* | |
20950 | fi | |
20951 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
20952 | echo "$ac_t""yes" 1>&6 | |
20953 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20954 | cat >> confdefs.h <<EOF | |
20955 | #define $ac_tr_hdr 1 | |
20956 | EOF | |
20957 | ||
20958 | else | |
20959 | echo "$ac_t""no" 1>&6 | |
20960 | fi | |
20961 | done | |
20962 | ||
20963 | ||
20964 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
20965 | if test "$GCC" = yes ; then | |
20966 | ||
20967 | ac_ext=C | |
20968 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
20969 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20970 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
20971 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20972 | cross_compiling=$ac_cv_prog_cxx_cross | |
20973 | ||
20974 | ||
20975 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 | |
5d3f766d | 20976 | echo "configure:20977: checking if g++ requires -fvtable-thunks" >&5 |
3bce6687 | 20977 | cat > conftest.$ac_ext <<EOF |
5d3f766d | 20978 | #line 20979 "configure" |
3bce6687 JS |
20979 | #include "confdefs.h" |
20980 | #include <windows.h> | |
20981 | #include <ole2.h> | |
20982 | int main() { | |
20983 | ||
20984 | ; return 0; } | |
20985 | EOF | |
5d3f766d | 20986 | if { (eval echo configure:20987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3bce6687 JS |
20987 | rm -rf conftest* |
20988 | echo "$ac_t""no" 1>&6 | |
20989 | else | |
20990 | echo "configure: failed program was:" >&5 | |
20991 | cat conftest.$ac_ext >&5 | |
20992 | rm -rf conftest* | |
20993 | echo "$ac_t""yes" 1>&6 | |
20994 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
20995 | fi | |
20996 | rm -f conftest* | |
20997 | ac_ext=c | |
20998 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
20999 | ac_cpp='$CPP $CPPFLAGS' | |
21000 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
21001 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21002 | cross_compiling=$ac_cv_prog_cc_cross | |
21003 | ||
21004 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
21005 | LIBS=" -lwine_uuid$LIBS" | |
21006 | cat >> confdefs.h <<\EOF | |
21007 | #define wxUSE_OLE 1 | |
21008 | EOF | |
21009 | ||
21010 | ||
21011 | fi | |
21012 | ||
21013 | cat >> confdefs.h <<\EOF | |
21014 | #define wxUSE_DATAOBJ 1 | |
21015 | EOF | |
21016 | ||
21017 | else | |
21018 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
21019 | ||
21020 | wxUSE_CLIPBOARD=no | |
21021 | wxUSE_DRAG_AND_DROP=no | |
21022 | wxUSE_DATAOBJ=no | |
21023 | wxUSE_OLE=no | |
2b9bdf71 VZ |
21024 | fi |
21025 | ||
77e13408 | 21026 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 21027 | cat >> confdefs.h <<\EOF |
b64f0a5f | 21028 | #define wxUSE_METAFILE 1 |
a0b9e27f | 21029 | EOF |
b64f0a5f | 21030 | |
8284b0c5 | 21031 | |
a0b9e27f | 21032 | cat >> confdefs.h <<\EOF |
b64f0a5f | 21033 | #define wxUSE_ENH_METAFILE 1 |
a0b9e27f | 21034 | EOF |
b64f0a5f | 21035 | |
2b9bdf71 VZ |
21036 | fi |
21037 | fi | |
21038 | ||
21039 | if test "$wxUSE_IPC" = "yes"; then | |
21040 | if test "$wxUSE_SOCKETS" != "yes"; then | |
a0b9e27f | 21041 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
21042 | fi |
21043 | ||
a0b9e27f | 21044 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21045 | #define wxUSE_IPC 1 |
a0b9e27f | 21046 | EOF |
2b9bdf71 VZ |
21047 | |
21048 | fi | |
21049 | ||
21050 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 21051 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21052 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21053 | wxUSE_CLIPBOARD=no |
21054 | fi | |
21055 | ||
21056 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
a0b9e27f | 21057 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21058 | #define wxUSE_CLIPBOARD 1 |
a0b9e27f | 21059 | EOF |
2b9bdf71 | 21060 | |
8284b0c5 | 21061 | |
a0b9e27f | 21062 | cat >> confdefs.h <<\EOF |
673f4220 | 21063 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21064 | EOF |
673f4220 | 21065 | |
6c657b52 | 21066 | fi |
2b9bdf71 VZ |
21067 | fi |
21068 | ||
21069 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
21070 | if test "$wxUSE_GTK" = 1; then | |
21071 | if test "$WXGTK12" != 1; then | |
a0b9e27f | 21072 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
21073 | wxUSE_DRAG_AND_DROP=no |
21074 | fi | |
21075 | fi | |
21076 | ||
2b9bdf71 | 21077 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21078 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
21079 | wxUSE_DRAG_AND_DROP=no |
21080 | fi | |
21081 | ||
f79bd02d | 21082 | if test "$wxUSE_X11" = 1; then |
a0b9e27f | 21083 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
21084 | wxUSE_DRAG_AND_DROP=no |
21085 | fi | |
21086 | ||
6c657b52 | 21087 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21088 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21089 | wxUSE_DRAG_AND_DROP=no |
21090 | fi | |
21091 | ||
10f2d63a | 21092 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
a0b9e27f | 21093 | cat >> confdefs.h <<\EOF |
10f2d63a | 21094 | #define wxUSE_DRAG_AND_DROP 1 |
a0b9e27f | 21095 | EOF |
10f2d63a VZ |
21096 | |
21097 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
21098 | fi | |
21099 | ||
21100 | fi | |
21101 | ||
21102 | if test "$wxUSE_SPLINES" = "yes" ; then | |
a0b9e27f | 21103 | cat >> confdefs.h <<\EOF |
10f2d63a | 21104 | #define wxUSE_SPLINES 1 |
a0b9e27f | 21105 | EOF |
10f2d63a VZ |
21106 | |
21107 | fi | |
21108 | ||
8284b0c5 | 21109 | |
1e6feb95 VZ |
21110 | USES_CONTROLS=0 |
21111 | if test "$wxUSE_CONTROLS" = "yes"; then | |
21112 | USES_CONTROLS=1 | |
21113 | fi | |
21114 | ||
10f2d63a | 21115 | if test "$wxUSE_ACCEL" = "yes"; then |
a0b9e27f | 21116 | cat >> confdefs.h <<\EOF |
10f2d63a | 21117 | #define wxUSE_ACCEL 1 |
a0b9e27f | 21118 | EOF |
10f2d63a | 21119 | |
1e6feb95 VZ |
21120 | USES_CONTROLS=1 |
21121 | fi | |
21122 | ||
21123 | if test "$wxUSE_BUTTON" = "yes"; then | |
a0b9e27f | 21124 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21125 | #define wxUSE_BUTTON 1 |
a0b9e27f | 21126 | EOF |
1e6feb95 VZ |
21127 | |
21128 | USES_CONTROLS=1 | |
21129 | fi | |
21130 | ||
21131 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
a0b9e27f | 21132 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21133 | #define wxUSE_BMPBUTTON 1 |
a0b9e27f | 21134 | EOF |
1e6feb95 VZ |
21135 | |
21136 | USES_CONTROLS=1 | |
21137 | fi | |
21138 | ||
21139 | if test "$wxUSE_CALCTRL" = "yes"; then | |
a0b9e27f | 21140 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21141 | #define wxUSE_CALENDARCTRL 1 |
a0b9e27f | 21142 | EOF |
1e6feb95 VZ |
21143 | |
21144 | USES_CONTROLS=1 | |
21145 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
21146 | fi |
21147 | ||
21148 | if test "$wxUSE_CARET" = "yes"; then | |
a0b9e27f | 21149 | cat >> confdefs.h <<\EOF |
10f2d63a | 21150 | #define wxUSE_CARET 1 |
a0b9e27f | 21151 | EOF |
10f2d63a | 21152 | |
1e6feb95 | 21153 | USES_CONTROLS=1 |
10f2d63a VZ |
21154 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
21155 | fi | |
21156 | ||
21157 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
a0b9e27f | 21158 | cat >> confdefs.h <<\EOF |
10f2d63a | 21159 | #define wxUSE_COMBOBOX 1 |
a0b9e27f | 21160 | EOF |
10f2d63a | 21161 | |
1e6feb95 | 21162 | USES_CONTROLS=1 |
10f2d63a VZ |
21163 | fi |
21164 | ||
21165 | if test "$wxUSE_CHOICE" = "yes"; then | |
a0b9e27f | 21166 | cat >> confdefs.h <<\EOF |
10f2d63a | 21167 | #define wxUSE_CHOICE 1 |
a0b9e27f | 21168 | EOF |
10f2d63a | 21169 | |
1e6feb95 | 21170 | USES_CONTROLS=1 |
10f2d63a VZ |
21171 | fi |
21172 | ||
21173 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
a0b9e27f | 21174 | cat >> confdefs.h <<\EOF |
10f2d63a | 21175 | #define wxUSE_CHECKBOX 1 |
a0b9e27f | 21176 | EOF |
10f2d63a | 21177 | |
1e6feb95 | 21178 | USES_CONTROLS=1 |
10f2d63a VZ |
21179 | fi |
21180 | ||
21181 | if test "$wxUSE_CHECKLST" = "yes"; then | |
a0b9e27f | 21182 | cat >> confdefs.h <<\EOF |
10f2d63a | 21183 | #define wxUSE_CHECKLISTBOX 1 |
a0b9e27f | 21184 | EOF |
10f2d63a | 21185 | |
1e6feb95 | 21186 | USES_CONTROLS=1 |
10f2d63a VZ |
21187 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
21188 | fi | |
21189 | ||
21190 | if test "$wxUSE_GAUGE" = "yes"; then | |
a0b9e27f | 21191 | cat >> confdefs.h <<\EOF |
10f2d63a | 21192 | #define wxUSE_GAUGE 1 |
a0b9e27f | 21193 | EOF |
10f2d63a | 21194 | |
1e6feb95 | 21195 | USES_CONTROLS=1 |
10f2d63a VZ |
21196 | fi |
21197 | ||
d6a55c4b VZ |
21198 | if test "$wxUSE_NEW_GRID" = "yes"; then |
21199 | wxUSE_GRID="yes" | |
a0b9e27f | 21200 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21201 | #define wxUSE_NEW_GRID 1 |
a0b9e27f | 21202 | EOF |
10f2d63a | 21203 | |
1e6feb95 | 21204 | USES_CONTROLS=1 |
d6a55c4b | 21205 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
21206 | fi |
21207 | ||
d6a55c4b | 21208 | if test "$wxUSE_GRID" = "yes"; then |
a0b9e27f | 21209 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21210 | #define wxUSE_GRID 1 |
a0b9e27f | 21211 | EOF |
10f2d63a | 21212 | |
1e6feb95 | 21213 | USES_CONTROLS=1 |
d6a55c4b | 21214 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
21215 | fi |
21216 | ||
21217 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21218 | cat >> confdefs.h <<\EOF |
10f2d63a | 21219 | #define wxUSE_IMAGLIST 1 |
a0b9e27f | 21220 | EOF |
10f2d63a VZ |
21221 | |
21222 | fi | |
21223 | ||
21224 | if test "$wxUSE_LISTBOX" = "yes"; then | |
a0b9e27f | 21225 | cat >> confdefs.h <<\EOF |
10f2d63a | 21226 | #define wxUSE_LISTBOX 1 |
a0b9e27f | 21227 | EOF |
10f2d63a | 21228 | |
1e6feb95 | 21229 | USES_CONTROLS=1 |
10f2d63a VZ |
21230 | fi |
21231 | ||
21232 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
21233 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21234 | cat >> confdefs.h <<\EOF |
10f2d63a | 21235 | #define wxUSE_LISTCTRL 1 |
a0b9e27f | 21236 | EOF |
10f2d63a | 21237 | |
1e6feb95 | 21238 | USES_CONTROLS=1 |
10f2d63a VZ |
21239 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
21240 | else | |
a0b9e27f | 21241 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21242 | fi |
21243 | fi | |
21244 | ||
21245 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
a0b9e27f | 21246 | cat >> confdefs.h <<\EOF |
10f2d63a | 21247 | #define wxUSE_NOTEBOOK 1 |
a0b9e27f | 21248 | EOF |
10f2d63a | 21249 | |
1e6feb95 | 21250 | USES_CONTROLS=1 |
10f2d63a VZ |
21251 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
21252 | fi | |
21253 | ||
24176f2c | 21254 | if test "$wxUSE_PROPSHEET" = "yes"; then |
a0b9e27f | 21255 | cat >> confdefs.h <<\EOF |
24176f2c | 21256 | #define wxUSE_PROPSHEET 1 |
a0b9e27f | 21257 | EOF |
24176f2c GD |
21258 | |
21259 | USES_CONTROLS=1 | |
21260 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
21261 | fi | |
21262 | ||
10f2d63a | 21263 | if test "$wxUSE_RADIOBOX" = "yes"; then |
a0b9e27f | 21264 | cat >> confdefs.h <<\EOF |
10f2d63a | 21265 | #define wxUSE_RADIOBOX 1 |
a0b9e27f | 21266 | EOF |
10f2d63a | 21267 | |
1e6feb95 | 21268 | USES_CONTROLS=1 |
10f2d63a VZ |
21269 | fi |
21270 | ||
21271 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
a0b9e27f | 21272 | cat >> confdefs.h <<\EOF |
10f2d63a | 21273 | #define wxUSE_RADIOBTN 1 |
a0b9e27f | 21274 | EOF |
10f2d63a | 21275 | |
1e6feb95 | 21276 | USES_CONTROLS=1 |
10f2d63a VZ |
21277 | fi |
21278 | ||
21279 | if test "$wxUSE_SASH" = "yes"; then | |
a0b9e27f | 21280 | cat >> confdefs.h <<\EOF |
10f2d63a | 21281 | #define wxUSE_SASH 1 |
a0b9e27f | 21282 | EOF |
10f2d63a VZ |
21283 | |
21284 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
21285 | fi | |
21286 | ||
21287 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
a0b9e27f | 21288 | cat >> confdefs.h <<\EOF |
10f2d63a | 21289 | #define wxUSE_SCROLLBAR 1 |
a0b9e27f | 21290 | EOF |
10f2d63a | 21291 | |
1e6feb95 | 21292 | USES_CONTROLS=1 |
741a9306 | 21293 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
21294 | fi |
21295 | ||
21296 | if test "$wxUSE_SLIDER" = "yes"; then | |
a0b9e27f | 21297 | cat >> confdefs.h <<\EOF |
10f2d63a | 21298 | #define wxUSE_SLIDER 1 |
a0b9e27f | 21299 | EOF |
10f2d63a | 21300 | |
1e6feb95 | 21301 | USES_CONTROLS=1 |
10f2d63a VZ |
21302 | fi |
21303 | ||
21304 | if test "$wxUSE_SPINBTN" = "yes"; then | |
a0b9e27f | 21305 | cat >> confdefs.h <<\EOF |
10f2d63a | 21306 | #define wxUSE_SPINBTN 1 |
a0b9e27f | 21307 | EOF |
10f2d63a | 21308 | |
1e6feb95 | 21309 | USES_CONTROLS=1 |
10f2d63a VZ |
21310 | fi |
21311 | ||
56cfaa52 | 21312 | if test "$wxUSE_SPINCTRL" = "yes"; then |
a0b9e27f | 21313 | cat >> confdefs.h <<\EOF |
56cfaa52 | 21314 | #define wxUSE_SPINCTRL 1 |
a0b9e27f | 21315 | EOF |
56cfaa52 | 21316 | |
1e6feb95 | 21317 | USES_CONTROLS=1 |
56cfaa52 RR |
21318 | fi |
21319 | ||
10f2d63a | 21320 | if test "$wxUSE_SPLITTER" = "yes"; then |
a0b9e27f | 21321 | cat >> confdefs.h <<\EOF |
10f2d63a | 21322 | #define wxUSE_SPLITTER 1 |
a0b9e27f | 21323 | EOF |
10f2d63a VZ |
21324 | |
21325 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
21326 | fi | |
21327 | ||
21328 | if test "$wxUSE_STATBMP" = "yes"; then | |
a0b9e27f | 21329 | cat >> confdefs.h <<\EOF |
10f2d63a | 21330 | #define wxUSE_STATBMP 1 |
a0b9e27f | 21331 | EOF |
10f2d63a | 21332 | |
1e6feb95 | 21333 | USES_CONTROLS=1 |
10f2d63a VZ |
21334 | fi |
21335 | ||
21336 | if test "$wxUSE_STATBOX" = "yes"; then | |
a0b9e27f | 21337 | cat >> confdefs.h <<\EOF |
10f2d63a | 21338 | #define wxUSE_STATBOX 1 |
a0b9e27f | 21339 | EOF |
10f2d63a | 21340 | |
1e6feb95 VZ |
21341 | USES_CONTROLS=1 |
21342 | fi | |
21343 | ||
21344 | if test "$wxUSE_STATTEXT" = "yes"; then | |
a0b9e27f | 21345 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21346 | #define wxUSE_STATTEXT 1 |
a0b9e27f | 21347 | EOF |
1e6feb95 VZ |
21348 | |
21349 | USES_CONTROLS=1 | |
10f2d63a VZ |
21350 | fi |
21351 | ||
21352 | if test "$wxUSE_STATLINE" = "yes"; then | |
21353 | if test "$wxUSE_WINE" = 1 ; then | |
a0b9e27f | 21354 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 21355 | else |
a0b9e27f | 21356 | cat >> confdefs.h <<\EOF |
10f2d63a | 21357 | #define wxUSE_STATLINE 1 |
a0b9e27f | 21358 | EOF |
10f2d63a | 21359 | |
1e6feb95 | 21360 | USES_CONTROLS=1 |
10f2d63a VZ |
21361 | fi |
21362 | fi | |
21363 | ||
21364 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
a0b9e27f | 21365 | cat >> confdefs.h <<\EOF |
10f2d63a | 21366 | #define wxUSE_STATUSBAR 1 |
a0b9e27f | 21367 | EOF |
10f2d63a | 21368 | |
1e6feb95 | 21369 | USES_CONTROLS=1 |
698dcdb6 | 21370 | |
2286341c | 21371 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
21372 | fi |
21373 | ||
21374 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
a0b9e27f | 21375 | cat >> confdefs.h <<\EOF |
10f2d63a | 21376 | #define wxUSE_TAB_DIALOG 1 |
a0b9e27f | 21377 | EOF |
10f2d63a VZ |
21378 | |
21379 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
21380 | fi | |
21381 | ||
1e6feb95 | 21382 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
a0b9e27f | 21383 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21384 | #define wxUSE_TEXTCTRL 1 |
a0b9e27f | 21385 | EOF |
1e6feb95 VZ |
21386 | |
21387 | USES_CONTROLS=1 | |
21388 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
21389 | fi | |
21390 | ||
1db8dc4a | 21391 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 | 21392 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 21393 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
21394 | wxUSE_TOGGLEBTN=no |
21395 | fi | |
21396 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
a0b9e27f | 21397 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
21398 | wxUSE_TOGGLEBTN=no |
21399 | fi | |
21400 | ||
21401 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
a0b9e27f | 21402 | cat >> confdefs.h <<\EOF |
1db8dc4a | 21403 | #define wxUSE_TOGGLEBTN 1 |
a0b9e27f | 21404 | EOF |
1db8dc4a | 21405 | |
1e6feb95 | 21406 | USES_CONTROLS=1 |
a45d7ab7 | 21407 | fi |
1db8dc4a VZ |
21408 | fi |
21409 | ||
360d6699 | 21410 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
a0b9e27f | 21411 | cat >> confdefs.h <<\EOF |
360d6699 | 21412 | #define wxUSE_TOOLBAR_SIMPLE 1 |
a0b9e27f | 21413 | EOF |
360d6699 VZ |
21414 | |
21415 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 21416 | USES_CONTROLS=1 |
360d6699 VZ |
21417 | fi |
21418 | ||
10f2d63a | 21419 | if test "$wxUSE_TOOLBAR" = "yes"; then |
a0b9e27f | 21420 | cat >> confdefs.h <<\EOF |
10f2d63a | 21421 | #define wxUSE_TOOLBAR 1 |
a0b9e27f | 21422 | EOF |
10f2d63a | 21423 | |
1e6feb95 | 21424 | USES_CONTROLS=1 |
698dcdb6 | 21425 | |
360d6699 VZ |
21426 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
21427 | wxUSE_TOOLBAR_NATIVE="yes" | |
21428 | fi | |
21429 | ||
1e6feb95 | 21430 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
a0b9e27f | 21431 | cat >> confdefs.h <<\EOF |
360d6699 | 21432 | #define wxUSE_TOOLBAR_NATIVE 1 |
a0b9e27f | 21433 | EOF |
360d6699 | 21434 | |
1e6feb95 VZ |
21435 | USES_CONTROLS=1 |
21436 | fi | |
21437 | ||
21438 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
21439 | fi |
21440 | ||
10f2d63a VZ |
21441 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
21442 | if test "$wxUSE_MOTIF" = 1; then | |
a0b9e27f | 21443 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
21444 | else |
21445 | if test "$wxUSE_WINE" = 1; then | |
a0b9e27f | 21446 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 21447 | else |
69d27ff7 | 21448 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a0b9e27f | 21449 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 21450 | else |
a0b9e27f | 21451 | cat >> confdefs.h <<\EOF |
10f2d63a | 21452 | #define wxUSE_TOOLTIPS 1 |
a0b9e27f | 21453 | EOF |
10f2d63a | 21454 | |
69d27ff7 | 21455 | fi |
10f2d63a VZ |
21456 | fi |
21457 | fi | |
21458 | fi | |
21459 | ||
21460 | if test "$wxUSE_TREECTRL" = "yes"; then | |
21461 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21462 | cat >> confdefs.h <<\EOF |
10f2d63a | 21463 | #define wxUSE_TREECTRL 1 |
a0b9e27f | 21464 | EOF |
10f2d63a | 21465 | |
1e6feb95 | 21466 | USES_CONTROLS=1 |
10f2d63a VZ |
21467 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
21468 | else | |
a0b9e27f | 21469 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21470 | fi |
21471 | fi | |
21472 | ||
9f41d601 | 21473 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 21474 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 21475 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 21476 | else |
485cf710 | 21477 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21478 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 21479 | else |
3c011993 | 21480 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21481 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21482 | else |
a0b9e27f | 21483 | cat >> confdefs.h <<\EOF |
9f41d601 | 21484 | #define wxUSE_POPUPWIN 1 |
a0b9e27f | 21485 | EOF |
9f41d601 | 21486 | |
8284b0c5 | 21487 | |
3c011993 VZ |
21488 | USES_CONTROLS=1 |
21489 | fi | |
485cf710 | 21490 | fi |
6abe4b65 | 21491 | fi |
9f41d601 RR |
21492 | fi |
21493 | ||
dd964dcc | 21494 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 21495 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21496 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21497 | else |
a0b9e27f | 21498 | cat >> confdefs.h <<\EOF |
dd964dcc | 21499 | #define wxUSE_TIPWINDOW 1 |
a0b9e27f | 21500 | EOF |
dd964dcc | 21501 | |
3c011993 | 21502 | fi |
dd964dcc VZ |
21503 | fi |
21504 | ||
1e6feb95 | 21505 | if test "$USES_CONTROLS" = 1; then |
a0b9e27f | 21506 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21507 | #define wxUSE_CONTROLS 1 |
a0b9e27f | 21508 | EOF |
10f2d63a | 21509 | |
10f2d63a VZ |
21510 | fi |
21511 | ||
8284b0c5 | 21512 | |
24176f2c | 21513 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
a0b9e27f | 21514 | cat >> confdefs.h <<\EOF |
24176f2c | 21515 | #define wxUSE_TREELAYOUT 1 |
a0b9e27f | 21516 | EOF |
24176f2c GD |
21517 | |
21518 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
21519 | fi | |
1e6feb95 | 21520 | |
24fd6d87 | 21521 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
a0b9e27f | 21522 | cat >> confdefs.h <<\EOF |
24fd6d87 | 21523 | #define wxUSE_DRAGIMAGE 1 |
a0b9e27f | 21524 | EOF |
24fd6d87 VZ |
21525 | |
21526 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
21527 | fi | |
21528 | ||
1e6feb95 | 21529 | if test "$wxUSE_MENUS" = "yes"; then |
a0b9e27f | 21530 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21531 | #define wxUSE_MENUS 1 |
a0b9e27f | 21532 | EOF |
10f2d63a | 21533 | |
1e6feb95 | 21534 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
21535 | fi |
21536 | ||
1e6feb95 | 21537 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 21538 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21539 | #define wxUSE_METAFILE 1 |
a0b9e27f | 21540 | EOF |
10f2d63a | 21541 | |
10f2d63a VZ |
21542 | fi |
21543 | ||
1e6feb95 | 21544 | if test "$wxUSE_MIMETYPE" = "yes"; then |
a0b9e27f | 21545 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21546 | #define wxUSE_MIMETYPE 1 |
a0b9e27f | 21547 | EOF |
10f2d63a | 21548 | |
10f2d63a VZ |
21549 | fi |
21550 | ||
3e44f09d | 21551 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
a0b9e27f | 21552 | cat >> confdefs.h <<\EOF |
3e44f09d | 21553 | #define wxUSE_SYSTEM_OPTIONS 1 |
a0b9e27f | 21554 | EOF |
3e44f09d | 21555 | |
321d2b14 VZ |
21556 | if test "$TOOLKIT" = "MSW"; then |
21557 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
21558 | fi | |
21559 | ||
3e44f09d VZ |
21560 | fi |
21561 | ||
4cdb0ab0 | 21562 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 21563 | if test "$wxUSE_SOCKETS" != "yes"; then |
a0b9e27f | 21564 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
21565 | wxUSE_PROTOCOL=no |
21566 | fi | |
21567 | ||
21568 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
a0b9e27f | 21569 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21570 | #define wxUSE_PROTOCOL 1 |
a0b9e27f | 21571 | EOF |
4cdb0ab0 | 21572 | |
8284b0c5 | 21573 | |
3954f9ca | 21574 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
a0b9e27f | 21575 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21576 | #define wxUSE_PROTOCOL_HTTP 1 |
a0b9e27f | 21577 | EOF |
4cdb0ab0 | 21578 | |
3954f9ca VS |
21579 | fi |
21580 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
a0b9e27f | 21581 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21582 | #define wxUSE_PROTOCOL_FTP 1 |
a0b9e27f | 21583 | EOF |
4cdb0ab0 | 21584 | |
3954f9ca VS |
21585 | fi |
21586 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
a0b9e27f | 21587 | cat >> confdefs.h <<\EOF |
3954f9ca | 21588 | #define wxUSE_PROTOCOL_FILE 1 |
a0b9e27f | 21589 | EOF |
3954f9ca VS |
21590 | |
21591 | fi | |
4cdb0ab0 | 21592 | fi |
3954f9ca VS |
21593 | fi |
21594 | ||
21595 | if test "$wxUSE_URL" = "yes"; then | |
21596 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
a0b9e27f | 21597 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
21598 | wxUSE_URL=no |
21599 | fi | |
21600 | if test "$wxUSE_URL" = "yes"; then | |
a0b9e27f | 21601 | cat >> confdefs.h <<\EOF |
3954f9ca | 21602 | #define wxUSE_URL 1 |
a0b9e27f | 21603 | EOF |
4cdb0ab0 VS |
21604 | |
21605 | fi | |
21606 | fi | |
21607 | ||
10f2d63a | 21608 | if test "$wxUSE_MINIFRAME" = "yes"; then |
a0b9e27f | 21609 | cat >> confdefs.h <<\EOF |
10f2d63a | 21610 | #define wxUSE_MINIFRAME 1 |
a0b9e27f | 21611 | EOF |
10f2d63a VZ |
21612 | |
21613 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
21614 | fi | |
21615 | ||
21616 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21617 | cat >> confdefs.h <<\EOF |
10f2d63a | 21618 | #define wxUSE_HTML 1 |
a0b9e27f | 21619 | EOF |
10f2d63a VZ |
21620 | |
21621 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
21622 | fi |
21623 | ||
21624 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
a0b9e27f | 21625 | cat >> confdefs.h <<\EOF |
1e487827 | 21626 | #define wxUSE_VALIDATORS 1 |
a0b9e27f | 21627 | EOF |
703e0a69 | 21628 | |
698dcdb6 VZ |
21629 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
21630 | fi | |
21631 | ||
edae8572 | 21632 | if test "$wxUSE_PALETTE" = "yes" ; then |
a0b9e27f | 21633 | cat >> confdefs.h <<\EOF |
edae8572 | 21634 | #define wxUSE_PALETTE 1 |
a0b9e27f | 21635 | EOF |
edae8572 VZ |
21636 | |
21637 | fi | |
21638 | ||
698dcdb6 | 21639 | if test "$wxUSE_IMAGE" = "yes" ; then |
a0b9e27f | 21640 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21641 | #define wxUSE_IMAGE 1 |
a0b9e27f | 21642 | EOF |
698dcdb6 VZ |
21643 | |
21644 | fi | |
21645 | ||
21646 | if test "$wxUSE_GIF" = "yes" ; then | |
a0b9e27f | 21647 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21648 | #define wxUSE_GIF 1 |
a0b9e27f | 21649 | EOF |
698dcdb6 VZ |
21650 | |
21651 | fi | |
21652 | ||
21653 | if test "$wxUSE_PCX" = "yes" ; then | |
a0b9e27f | 21654 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21655 | #define wxUSE_PCX 1 |
a0b9e27f | 21656 | EOF |
698dcdb6 VZ |
21657 | |
21658 | fi | |
21659 | ||
4b6b4dfc | 21660 | if test "$wxUSE_IFF" = "yes" ; then |
a0b9e27f | 21661 | cat >> confdefs.h <<\EOF |
4b6b4dfc | 21662 | #define wxUSE_IFF 1 |
a0b9e27f | 21663 | EOF |
4b6b4dfc RR |
21664 | |
21665 | fi | |
21666 | ||
698dcdb6 | 21667 | if test "$wxUSE_PNM" = "yes" ; then |
a0b9e27f | 21668 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21669 | #define wxUSE_PNM 1 |
a0b9e27f | 21670 | EOF |
698dcdb6 VZ |
21671 | |
21672 | fi | |
21673 | ||
21674 | if test "$wxUSE_XPM" = "yes" ; then | |
a0b9e27f | 21675 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21676 | #define wxUSE_XPM 1 |
a0b9e27f | 21677 | EOF |
698dcdb6 VZ |
21678 | |
21679 | fi | |
21680 | ||
658974ae | 21681 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
a0b9e27f | 21682 | cat >> confdefs.h <<\EOF |
658974ae | 21683 | #define wxUSE_ICO_CUR 1 |
a0b9e27f | 21684 | EOF |
658974ae VS |
21685 | |
21686 | fi | |
21687 | ||
a72a4bfa VS |
21688 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
21689 | LIBS=" -lunicows $LIBS" | |
21690 | fi | |
21691 | ||
8284b0c5 | 21692 | |
1e6feb95 | 21693 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
a0b9e27f | 21694 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21695 | #define wxUSE_CHOICEDLG 1 |
a0b9e27f | 21696 | EOF |
1e6feb95 VZ |
21697 | |
21698 | fi | |
21699 | ||
21700 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
a0b9e27f | 21701 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21702 | #define wxUSE_COLOURDLG 1 |
a0b9e27f | 21703 | EOF |
1e6feb95 VZ |
21704 | |
21705 | fi | |
21706 | ||
21707 | if test "$wxUSE_FILEDLG" = "yes"; then | |
a0b9e27f | 21708 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21709 | #define wxUSE_FILEDLG 1 |
a0b9e27f | 21710 | EOF |
1e6feb95 VZ |
21711 | |
21712 | fi | |
21713 | ||
8db37e06 | 21714 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
a0b9e27f | 21715 | cat >> confdefs.h <<\EOF |
8db37e06 | 21716 | #define wxUSE_FINDREPLDLG 1 |
a0b9e27f | 21717 | EOF |
8db37e06 VZ |
21718 | |
21719 | fi | |
21720 | ||
1e6feb95 | 21721 | if test "$wxUSE_FONTDLG" = "yes"; then |
a0b9e27f | 21722 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21723 | #define wxUSE_FONTDLG 1 |
a0b9e27f | 21724 | EOF |
1e6feb95 VZ |
21725 | |
21726 | fi | |
21727 | ||
21728 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 21729 | if test "$wxUSE_TREECTRL" != "yes"; then |
a0b9e27f | 21730 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 21731 | else |
a0b9e27f | 21732 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21733 | #define wxUSE_DIRDLG 1 |
a0b9e27f | 21734 | EOF |
1e6feb95 | 21735 | |
1e6feb95 VZ |
21736 | fi |
21737 | fi | |
21738 | ||
21739 | if test "$wxUSE_MSGDLG" = "yes"; then | |
a0b9e27f | 21740 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21741 | #define wxUSE_MSGDLG 1 |
a0b9e27f | 21742 | EOF |
1e6feb95 VZ |
21743 | |
21744 | fi | |
21745 | ||
21746 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
a0b9e27f | 21747 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21748 | #define wxUSE_NUMBERDLG 1 |
a0b9e27f | 21749 | EOF |
1e6feb95 VZ |
21750 | |
21751 | fi | |
21752 | ||
21753 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
21754 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21755 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 21756 | else |
a0b9e27f | 21757 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21758 | #define wxUSE_PROGRESSDLG 1 |
a0b9e27f | 21759 | EOF |
1e6feb95 VZ |
21760 | |
21761 | fi | |
21762 | fi | |
21763 | ||
cbca9943 | 21764 | if test "$wxUSE_SPLASH" = "yes"; then |
a0b9e27f | 21765 | cat >> confdefs.h <<\EOF |
cbca9943 | 21766 | #define wxUSE_SPLASH 1 |
a0b9e27f | 21767 | EOF |
cbca9943 VZ |
21768 | |
21769 | fi | |
21770 | ||
1e6feb95 VZ |
21771 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
21772 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21773 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 21774 | else |
a0b9e27f | 21775 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21776 | #define wxUSE_STARTUP_TIPS 1 |
a0b9e27f | 21777 | EOF |
1e6feb95 | 21778 | |
7b4a847f RR |
21779 | fi |
21780 | fi | |
579d8138 | 21781 | |
8284b0c5 | 21782 | if test "$wxUSE_TEXTDLG" = "yes"; then |
a0b9e27f | 21783 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21784 | #define wxUSE_TEXTDLG 1 |
a0b9e27f | 21785 | EOF |
8284b0c5 MB |
21786 | |
21787 | fi | |
21788 | ||
21789 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
a0b9e27f | 21790 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21791 | #define wxUSE_WIZARDDLG 1 |
a0b9e27f | 21792 | EOF |
8284b0c5 MB |
21793 | |
21794 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
21795 | fi | |
21796 | ||
21797 | ||
21798 | if test "$cross_compiling" = "yes"; then | |
21799 | OSINFO="\"$host\"" | |
21800 | else | |
21801 | OSINFO=`uname -s -r -m` | |
21802 | OSINFO="\"$OSINFO\"" | |
21803 | fi | |
21804 | ||
a0b9e27f | 21805 | cat >> confdefs.h <<EOF |
8284b0c5 | 21806 | #define WXWIN_OS_DESCRIPTION $OSINFO |
a0b9e27f | 21807 | EOF |
8284b0c5 MB |
21808 | |
21809 | ||
21810 | ||
21811 | if test "x$prefix" != "xNONE"; then | |
21812 | wxPREFIX=$prefix | |
21813 | else | |
21814 | wxPREFIX=$ac_default_prefix | |
21815 | fi | |
21816 | ||
a0b9e27f | 21817 | cat >> confdefs.h <<EOF |
8284b0c5 | 21818 | #define wxINSTALL_PREFIX "$wxPREFIX" |
a0b9e27f | 21819 | EOF |
8284b0c5 MB |
21820 | |
21821 | ||
21822 | ||
21823 | ||
21824 | ||
21825 | if test "$wxUSE_MAC" = 1 ; then | |
21826 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
21827 | fi | |
21828 | ||
21829 | ||
2b5f62a0 VZ |
21830 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
21831 | ||
21832 | have_cos=0 | |
21833 | have_floor=0 | |
21834 | for ac_func in cos | |
21835 | do | |
21836 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5d3f766d | 21837 | echo "configure:21838: checking for $ac_func" >&5 |
2b5f62a0 VZ |
21838 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21839 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21840 | else | |
21841 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 21842 | #line 21843 "configure" |
2b5f62a0 VZ |
21843 | #include "confdefs.h" |
21844 | /* System header to define __stub macros and hopefully few prototypes, | |
21845 | which can conflict with char $ac_func(); below. */ | |
21846 | #include <assert.h> | |
21847 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21848 | /* We use char because int might match the return type of a gcc2 | |
21849 | builtin and then its argument prototype would still apply. */ | |
21850 | char $ac_func(); | |
21851 | ||
21852 | int main() { | |
21853 | ||
21854 | /* The GNU C library defines this for functions which it implements | |
21855 | to always fail with ENOSYS. Some functions are actually named | |
21856 | something starting with __ and the normal name is an alias. */ | |
21857 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21858 | choke me | |
21859 | #else | |
21860 | $ac_func(); | |
21861 | #endif | |
21862 | ||
21863 | ; return 0; } | |
21864 | EOF | |
5d3f766d | 21865 | if { (eval echo configure:21866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
21866 | rm -rf conftest* |
21867 | eval "ac_cv_func_$ac_func=yes" | |
21868 | else | |
21869 | echo "configure: failed program was:" >&5 | |
21870 | cat conftest.$ac_ext >&5 | |
21871 | rm -rf conftest* | |
21872 | eval "ac_cv_func_$ac_func=no" | |
21873 | fi | |
21874 | rm -f conftest* | |
21875 | fi | |
21876 | ||
21877 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
21878 | echo "$ac_t""yes" 1>&6 | |
21879 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
21880 | cat >> confdefs.h <<EOF | |
21881 | #define $ac_tr_func 1 | |
21882 | EOF | |
21883 | have_cos=1 | |
21884 | else | |
21885 | echo "$ac_t""no" 1>&6 | |
21886 | fi | |
21887 | done | |
21888 | ||
21889 | for ac_func in floor | |
21890 | do | |
21891 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5d3f766d | 21892 | echo "configure:21893: checking for $ac_func" >&5 |
2b5f62a0 VZ |
21893 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21895 | else | |
21896 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 21897 | #line 21898 "configure" |
2b5f62a0 VZ |
21898 | #include "confdefs.h" |
21899 | /* System header to define __stub macros and hopefully few prototypes, | |
21900 | which can conflict with char $ac_func(); below. */ | |
21901 | #include <assert.h> | |
21902 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21903 | /* We use char because int might match the return type of a gcc2 | |
21904 | builtin and then its argument prototype would still apply. */ | |
21905 | char $ac_func(); | |
21906 | ||
21907 | int main() { | |
21908 | ||
21909 | /* The GNU C library defines this for functions which it implements | |
21910 | to always fail with ENOSYS. Some functions are actually named | |
21911 | something starting with __ and the normal name is an alias. */ | |
21912 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21913 | choke me | |
21914 | #else | |
21915 | $ac_func(); | |
21916 | #endif | |
21917 | ||
21918 | ; return 0; } | |
21919 | EOF | |
5d3f766d | 21920 | if { (eval echo configure:21921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
21921 | rm -rf conftest* |
21922 | eval "ac_cv_func_$ac_func=yes" | |
21923 | else | |
21924 | echo "configure: failed program was:" >&5 | |
21925 | cat conftest.$ac_ext >&5 | |
21926 | rm -rf conftest* | |
21927 | eval "ac_cv_func_$ac_func=no" | |
21928 | fi | |
21929 | rm -f conftest* | |
21930 | fi | |
21931 | ||
21932 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
21933 | echo "$ac_t""yes" 1>&6 | |
21934 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
21935 | cat >> confdefs.h <<EOF | |
21936 | #define $ac_tr_func 1 | |
21937 | EOF | |
21938 | have_floor=1 | |
21939 | else | |
21940 | echo "$ac_t""no" 1>&6 | |
21941 | fi | |
21942 | done | |
21943 | ||
21944 | echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6 | |
5d3f766d | 21945 | echo "configure:21946: checking if floating point functions link without -lm" >&5 |
2b5f62a0 VZ |
21946 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
21947 | echo "$ac_t""yes" 1>&6 | |
21948 | else | |
21949 | echo "$ac_t""no" 1>&6 | |
21950 | LIBS="$LIBS -lm" | |
21951 | # use different functions to avoid configure caching | |
21952 | have_sin=0 | |
21953 | have_ceil=0 | |
21954 | for ac_func in sin | |
21955 | do | |
21956 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5d3f766d | 21957 | echo "configure:21958: checking for $ac_func" >&5 |
2b5f62a0 VZ |
21958 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21959 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21960 | else | |
21961 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 21962 | #line 21963 "configure" |
2b5f62a0 VZ |
21963 | #include "confdefs.h" |
21964 | /* System header to define __stub macros and hopefully few prototypes, | |
21965 | which can conflict with char $ac_func(); below. */ | |
21966 | #include <assert.h> | |
21967 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21968 | /* We use char because int might match the return type of a gcc2 | |
21969 | builtin and then its argument prototype would still apply. */ | |
21970 | char $ac_func(); | |
21971 | ||
21972 | int main() { | |
21973 | ||
21974 | /* The GNU C library defines this for functions which it implements | |
21975 | to always fail with ENOSYS. Some functions are actually named | |
21976 | something starting with __ and the normal name is an alias. */ | |
21977 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21978 | choke me | |
21979 | #else | |
21980 | $ac_func(); | |
21981 | #endif | |
21982 | ||
21983 | ; return 0; } | |
21984 | EOF | |
5d3f766d | 21985 | if { (eval echo configure:21986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
21986 | rm -rf conftest* |
21987 | eval "ac_cv_func_$ac_func=yes" | |
21988 | else | |
21989 | echo "configure: failed program was:" >&5 | |
21990 | cat conftest.$ac_ext >&5 | |
21991 | rm -rf conftest* | |
21992 | eval "ac_cv_func_$ac_func=no" | |
21993 | fi | |
21994 | rm -f conftest* | |
21995 | fi | |
21996 | ||
21997 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
21998 | echo "$ac_t""yes" 1>&6 | |
21999 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22000 | cat >> confdefs.h <<EOF | |
22001 | #define $ac_tr_func 1 | |
22002 | EOF | |
22003 | have_sin=1 | |
22004 | else | |
22005 | echo "$ac_t""no" 1>&6 | |
22006 | fi | |
22007 | done | |
22008 | ||
22009 | for ac_func in ceil | |
22010 | do | |
22011 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5d3f766d | 22012 | echo "configure:22013: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22013 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22014 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22015 | else | |
22016 | cat > conftest.$ac_ext <<EOF | |
5d3f766d | 22017 | #line 22018 "configure" |
2b5f62a0 VZ |
22018 | #include "confdefs.h" |
22019 | /* System header to define __stub macros and hopefully few prototypes, | |
22020 | which can conflict with char $ac_func(); below. */ | |
22021 | #include <assert.h> | |
22022 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22023 | /* We use char because int might match the return type of a gcc2 | |
22024 | builtin and then its argument prototype would still apply. */ | |
22025 | char $ac_func(); | |
22026 | ||
22027 | int main() { | |
22028 | ||
22029 | /* The GNU C library defines this for functions which it implements | |
22030 | to always fail with ENOSYS. Some functions are actually named | |
22031 | something starting with __ and the normal name is an alias. */ | |
22032 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22033 | choke me | |
22034 | #else | |
22035 | $ac_func(); | |
22036 | #endif | |
22037 | ||
22038 | ; return 0; } | |
22039 | EOF | |
5d3f766d | 22040 | if { (eval echo configure:22041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22041 | rm -rf conftest* |
22042 | eval "ac_cv_func_$ac_func=yes" | |
22043 | else | |
22044 | echo "configure: failed program was:" >&5 | |
22045 | cat conftest.$ac_ext >&5 | |
22046 | rm -rf conftest* | |
22047 | eval "ac_cv_func_$ac_func=no" | |
22048 | fi | |
22049 | rm -f conftest* | |
22050 | fi | |
22051 | ||
22052 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22053 | echo "$ac_t""yes" 1>&6 | |
22054 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22055 | cat >> confdefs.h <<EOF | |
22056 | #define $ac_tr_func 1 | |
22057 | EOF | |
22058 | have_ceil=1 | |
22059 | else | |
22060 | echo "$ac_t""no" 1>&6 | |
22061 | fi | |
22062 | done | |
22063 | ||
22064 | echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6 | |
5d3f766d | 22065 | echo "configure:22066: checking if floating point functions link with -lm" >&5 |
2b5f62a0 VZ |
22066 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
22067 | echo "$ac_t""yes" 1>&6 | |
22068 | else | |
22069 | echo "$ac_t""no" 1>&6 | |
22070 | # not sure we should warn the user, crash, etc. | |
22071 | fi | |
22072 | fi | |
8284b0c5 MB |
22073 | |
22074 | if test "$wxUSE_GUI" = "yes"; then | |
22075 | ||
22076 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
22077 | ||
a0b9e27f | 22078 | |
8284b0c5 MB |
22079 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
22080 | drawing dynamic erase event exec font image \ | |
22081 | minimal propsize rotate widgets" | |
22082 | ||
22083 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
22084 | else | |
22085 | SAMPLES_SUBDIRS="console" | |
22086 | fi | |
22087 | ||
22088 | ||
22089 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
22090 | -I\${top_srcdir}/include \ | |
22091 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
22092 | $TOOLKIT_INCLUDE" | |
22093 | ||
22094 | if test "$wxUSE_GTK" = 1; then | |
22095 | WXCONFIG_INCLUDE= | |
22096 | else | |
22097 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
22098 | fi | |
22099 | ||
22100 | if test "$GXX" = yes ; then | |
22101 | CXXWARNINGS="-Wall" | |
a0b9e27f | 22102 | |
8284b0c5 MB |
22103 | if test "$wxUSE_NO_DEPS" = "no" ; then |
22104 | CFLAGS="-MMD $CFLAGS" | |
22105 | CXXFLAGS="-MMD $CXXFLAGS" | |
22106 | fi | |
22107 | fi | |
22108 | ||
b2fee376 | 22109 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" |
8284b0c5 | 22110 | |
b2fee376 | 22111 | CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
8284b0c5 MB |
22112 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
22113 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
22114 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
22115 | ||
22116 | LDFLAGS="$LDFLAGS $PROFILE" | |
22117 | ||
22118 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
22119 | ||
22120 | ||
22121 | ||
22122 | ||
22123 | ||
22124 | ||
22125 | ||
22126 | ||
22127 | ||
22128 | ||
22129 | ||
22130 | ||
22131 | ||
22132 | ||
22133 | ||
22134 | ||
22135 | ||
22136 | ||
22137 | ||
22138 | ||
22139 | ||
22140 | ||
22141 | ||
22142 | ||
22143 | ||
22144 | ||
22145 | ||
22146 | ||
22147 | ||
22148 | ||
22149 | ||
22150 | ||
22151 | ||
22152 | ||
22153 | ||
22154 | ||
22155 | ||
22156 | ||
22157 | ||
22158 | ||
22159 | ||
22160 | ||
22161 | ||
22162 | ||
22163 | ||
22164 | ||
22165 | ||
22166 | ||
22167 | ||
22168 | ||
22169 | ||
22170 | ||
22171 | ||
22172 | ||
22173 | ||
22174 | ||
22175 | ||
22176 | ||
22177 | ||
22178 | ||
22179 | ||
22180 | ||
22181 | ||
22182 | ||
22183 | ||
22184 | ||
22185 | ||
22186 | ||
2f51a9ec GD |
22187 | |
22188 | ||
22189 | ||
22190 | ||
f6bcfd97 | 22191 | |
dad6c0ea | 22192 | |
caa2c79b | 22193 | |
3711412e | 22194 | |
1e6feb95 VZ |
22195 | |
22196 | ||
885d4bf5 VS |
22197 | |
22198 | ||
22199 | ||
22200 | ||
9b695262 VZ |
22201 | |
22202 | ||
62d0491b | 22203 | |
ef7f2189 | 22204 | |
40f7145c | 22205 | |
2b5f62a0 VZ |
22206 | |
22207 | ||
22208 | ||
22209 | ||
22210 | ||
2bffed64 VZ |
22211 | |
22212 | ||
3bd8fb5f | 22213 | |
e26c13cf | 22214 | |
10f2d63a | 22215 | |
a0b9e27f MB |
22216 | |
22217 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
5d3f766d | 22218 | echo "configure:22219: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a0b9e27f MB |
22219 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
22220 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
22221 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 22222 | else |
a0b9e27f | 22223 | cat > conftestmake <<\EOF |
10f2d63a VZ |
22224 | all: |
22225 | @echo 'ac_maketemp="${MAKE}"' | |
a0b9e27f | 22226 | EOF |
10f2d63a | 22227 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
a0b9e27f | 22228 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
22229 | if test -n "$ac_maketemp"; then |
22230 | eval ac_cv_prog_make_${ac_make}_set=yes | |
22231 | else | |
22232 | eval ac_cv_prog_make_${ac_make}_set=no | |
22233 | fi | |
a0b9e27f | 22234 | rm -f conftestmake |
10f2d63a VZ |
22235 | fi |
22236 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
a0b9e27f | 22237 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
22238 | SET_MAKE= |
22239 | else | |
a0b9e27f | 22240 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
22241 | SET_MAKE="MAKE=${MAKE-make}" |
22242 | fi | |
22243 | ||
8284b0c5 | 22244 | |
3a922bb4 RL |
22245 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
22246 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 22247 | fi |
665bbe97 | 22248 | |
8284b0c5 | 22249 | |
10f2d63a | 22250 | |
57973b9c VZ |
22251 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22252 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
22253 | wx_cv_path_ifs=$PATH_IFS | |
22254 | wx_cv_program_ext=$PROGRAM_EXT | |
22255 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
22256 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
22257 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
2b5f62a0 VZ |
22258 | wx_cv_library_basename=${WX_LIBRARY_BASENAME} |
22259 | wx_cv_release=${WX_RELEASE} | |
22260 | wx_cv_current=${WX_CURRENT} | |
22261 | wx_cv_revision=${WX_REVISION} | |
22262 | wx_cv_age=${WX_AGE} | |
27635a90 | 22263 | wx_cv_use_gui=${USE_GUI} |
5e66eee1 | 22264 | wx_cv_use_resources=${wxUSE_RESOURCES} |
57973b9c VZ |
22265 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
22266 | wx_cv_path_ifs wx_cv_program_ext \ | |
2b5f62a0 | 22267 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \ |
27635a90 | 22268 | wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \ |
5e66eee1 | 22269 | wx_cv_use_gui wx_cv_use_resources |
57973b9c | 22270 | |
a0b9e27f | 22271 | subdirs="demos samples utils contrib" |
8284b0c5 | 22272 | |
10f2d63a | 22273 | |
a0b9e27f MB |
22274 | trap '' 1 2 15 |
22275 | cat > confcache <<\EOF | |
10f2d63a VZ |
22276 | # This file is a shell script that caches the results of configure |
22277 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
22278 | # scripts and configure runs. It is not useful on other systems. |
22279 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 22280 | # |
a0b9e27f MB |
22281 | # By default, configure uses ./config.cache as the cache file, |
22282 | # creating it if it does not exist already. You can give configure | |
22283 | # the --cache-file=FILE option to use a different cache file; that is | |
22284 | # what configure does when it calls configure scripts in | |
22285 | # subdirectories, so they share the cache. | |
22286 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
22287 | # config.status only pays attention to the cache file if you give it the | |
22288 | # --recheck option to rerun configure. | |
10f2d63a | 22289 | # |
a0b9e27f | 22290 | EOF |
10f2d63a VZ |
22291 | # The following way of writing the cache mishandles newlines in values, |
22292 | # but we know of no workaround that is simple, portable, and efficient. | |
22293 | # So, don't put newlines in cache variables' values. | |
22294 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22295 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
22296 | (set) 2>&1 | |
22297 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22298 | *ac_space=\ *) | |
22299 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
22300 | # turns \\\\ into \\, and sed turns \\ into \). | |
22301 | sed -n \ | |
22302 | -e "s/'/'\\\\''/g" \ | |
22303 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
22304 | ;; | |
22305 | *) | |
22306 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22307 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
22308 | ;; | |
22309 | esac >> confcache | |
22310 | if cmp -s $cache_file confcache; then | |
22311 | : | |
22312 | else | |
10f2d63a | 22313 | if test -w $cache_file; then |
a0b9e27f MB |
22314 | echo "updating cache $cache_file" |
22315 | cat confcache > $cache_file | |
10f2d63a VZ |
22316 | else |
22317 | echo "not updating unwritable cache $cache_file" | |
22318 | fi | |
22319 | fi | |
22320 | rm -f confcache | |
22321 | ||
a0b9e27f MB |
22322 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
22323 | ||
10f2d63a VZ |
22324 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
22325 | # Let make expand exec_prefix. | |
22326 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22327 | ||
a0b9e27f MB |
22328 | # Any assignment to VPATH causes Sun make to only execute |
22329 | # the first set of double-colon rules, so remove it if not needed. | |
22330 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 22331 | if test "x$srcdir" = x.; then |
a0b9e27f | 22332 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
22333 | fi |
22334 | ||
a0b9e27f | 22335 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
10f2d63a | 22336 | |
a0b9e27f | 22337 | DEFS=-DHAVE_CONFIG_H |
8284b0c5 | 22338 | |
a0b9e27f | 22339 | # Without the "./", some shells look in PATH for config.status. |
247f5006 | 22340 | : ${CONFIG_STATUS=./config.status} |
52127426 | 22341 | |
a0b9e27f MB |
22342 | echo creating $CONFIG_STATUS |
22343 | rm -f $CONFIG_STATUS | |
22344 | cat > $CONFIG_STATUS <<EOF | |
22345 | #! /bin/sh | |
22346 | # Generated automatically by configure. | |
22347 | # Run this file to recreate the current configuration. | |
22348 | # This directory was configured as follows, | |
22349 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
247f5006 | 22350 | # |
a0b9e27f | 22351 | # $0 $ac_configure_args |
247f5006 | 22352 | # |
a0b9e27f MB |
22353 | # Compiler output produced by configure, useful for debugging |
22354 | # configure, is in ./config.log if it exists. | |
247f5006 | 22355 | |
a0b9e27f MB |
22356 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
22357 | for ac_option | |
247f5006 | 22358 | do |
a0b9e27f MB |
22359 | case "\$ac_option" in |
22360 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22361 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
22362 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
22363 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
22364 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
22365 | exit 0 ;; | |
22366 | -help | --help | --hel | --he | --h) | |
22367 | echo "\$ac_cs_usage"; exit 0 ;; | |
22368 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
247f5006 VZ |
22369 | esac |
22370 | done | |
22371 | ||
a0b9e27f MB |
22372 | ac_given_srcdir=$srcdir |
22373 | ac_given_INSTALL="$INSTALL" | |
247f5006 | 22374 | |
a0b9e27f MB |
22375 | trap 'rm -fr `echo " |
22376 | wx-config | |
2b5f62a0 | 22377 | version-script |
a0b9e27f MB |
22378 | src/make.env |
22379 | src/makeprog.env | |
22380 | src/makelib.env | |
22381 | Makefile | |
22382 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
22383 | EOF | |
22384 | cat >> $CONFIG_STATUS <<EOF | |
247f5006 | 22385 | |
a0b9e27f MB |
22386 | # Protect against being on the right side of a sed subst in config.status. |
22387 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
22388 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
22389 | $ac_vpsub | |
22390 | $extrasub | |
22391 | s%@SHELL@%$SHELL%g | |
22392 | s%@CFLAGS@%$CFLAGS%g | |
22393 | s%@CPPFLAGS@%$CPPFLAGS%g | |
22394 | s%@CXXFLAGS@%$CXXFLAGS%g | |
22395 | s%@FFLAGS@%$FFLAGS%g | |
22396 | s%@DEFS@%$DEFS%g | |
22397 | s%@LDFLAGS@%$LDFLAGS%g | |
22398 | s%@LIBS@%$LIBS%g | |
22399 | s%@exec_prefix@%$exec_prefix%g | |
22400 | s%@prefix@%$prefix%g | |
22401 | s%@program_transform_name@%$program_transform_name%g | |
22402 | s%@bindir@%$bindir%g | |
22403 | s%@sbindir@%$sbindir%g | |
22404 | s%@libexecdir@%$libexecdir%g | |
22405 | s%@datadir@%$datadir%g | |
22406 | s%@sysconfdir@%$sysconfdir%g | |
22407 | s%@sharedstatedir@%$sharedstatedir%g | |
22408 | s%@localstatedir@%$localstatedir%g | |
22409 | s%@libdir@%$libdir%g | |
22410 | s%@includedir@%$includedir%g | |
22411 | s%@oldincludedir@%$oldincludedir%g | |
22412 | s%@infodir@%$infodir%g | |
22413 | s%@mandir@%$mandir%g | |
22414 | s%@host@%$host%g | |
22415 | s%@host_alias@%$host_alias%g | |
22416 | s%@host_cpu@%$host_cpu%g | |
22417 | s%@host_vendor@%$host_vendor%g | |
22418 | s%@host_os@%$host_os%g | |
22419 | s%@target@%$target%g | |
22420 | s%@target_alias@%$target_alias%g | |
22421 | s%@target_cpu@%$target_cpu%g | |
22422 | s%@target_vendor@%$target_vendor%g | |
22423 | s%@target_os@%$target_os%g | |
22424 | s%@build@%$build%g | |
22425 | s%@build_alias@%$build_alias%g | |
22426 | s%@build_cpu@%$build_cpu%g | |
22427 | s%@build_vendor@%$build_vendor%g | |
22428 | s%@build_os@%$build_os%g | |
22429 | s%@CC@%$CC%g | |
22430 | s%@CPP@%$CPP%g | |
22431 | s%@CXX@%$CXX%g | |
22432 | s%@RANLIB@%$RANLIB%g | |
22433 | s%@AR@%$AR%g | |
22434 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
22435 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
22436 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
22437 | s%@STRIP@%$STRIP%g | |
22438 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
22439 | s%@YACC@%$YACC%g | |
22440 | s%@LEX@%$LEX%g | |
22441 | s%@LEXLIB@%$LEXLIB%g | |
22442 | s%@LN_S@%$LN_S%g | |
22443 | s%@CXXCPP@%$CXXCPP%g | |
22444 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
22445 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
22446 | s%@GTK_LIBS@%$GTK_LIBS%g | |
22447 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
22448 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
22449 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
22450 | s%@X_CFLAGS@%$X_CFLAGS%g | |
22451 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
22452 | s%@X_LIBS@%$X_LIBS%g | |
22453 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
2b5f62a0 VZ |
22454 | s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g |
22455 | s%@PANGOX_LIBS@%$PANGOX_LIBS%g | |
22456 | s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g | |
22457 | s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g | |
a0b9e27f MB |
22458 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g |
22459 | s%@RESCOMP@%$RESCOMP%g | |
22460 | s%@DEREZ@%$DEREZ%g | |
22461 | s%@LIBICONV@%$LIBICONV%g | |
22462 | s%@LEX_STEM@%$LEX_STEM%g | |
22463 | s%@PATH_IFS@%$PATH_IFS%g | |
22464 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
22465 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
22466 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
22467 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
22468 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
2b5f62a0 | 22469 | s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g |
a0b9e27f MB |
22470 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
22471 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
22472 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
22473 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
22474 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
22475 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
22476 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
22477 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
22478 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
22479 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
22480 | s%@WX_ALL@%$WX_ALL%g | |
22481 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
22482 | s%@SHARED_LD@%$SHARED_LD%g | |
22483 | s%@PIC_FLAG@%$PIC_FLAG%g | |
22484 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
22485 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
22486 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
22487 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
22488 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
22489 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
2bffed64 | 22490 | s%@STATIC_FLAG@%$STATIC_FLAG%g |
a0b9e27f MB |
22491 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
22492 | s%@USE_GUI@%$USE_GUI%g | |
22493 | s%@AFMINSTALL@%$AFMINSTALL%g | |
2b5f62a0 | 22494 | s%@WIN32INSTALL@%$WIN32INSTALL%g |
a0b9e27f MB |
22495 | s%@TOOLKIT@%$TOOLKIT%g |
22496 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
22497 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
22498 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
22499 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
22500 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
22501 | s%@cross_compiling@%$cross_compiling%g | |
22502 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
22503 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
22504 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
22505 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
22506 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
22507 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
e26c13cf | 22508 | s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g |
a0b9e27f MB |
22509 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
22510 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
22511 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
22512 | s%@GUIDIST@%$GUIDIST%g | |
22513 | s%@PORT_FILES@%$PORT_FILES%g | |
22514 | s%@DISTDIR@%$DISTDIR%g | |
a0b9e27f MB |
22515 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
22516 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
2b5f62a0 | 22517 | s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g |
a0b9e27f MB |
22518 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
22519 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
22520 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
22521 | s%@EXTRADEFS@%$EXTRADEFS%g | |
2b5f62a0 | 22522 | s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g |
a0b9e27f MB |
22523 | s%@RESFLAGS@%$RESFLAGS%g |
22524 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
22525 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
22526 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
22527 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
22528 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
22529 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
22530 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g | |
2b5f62a0 | 22531 | s%@GCC@%$GCC%g |
a0b9e27f MB |
22532 | s%@DLLTOOL@%$DLLTOOL%g |
22533 | s%@AS@%$AS%g | |
22534 | s%@NM@%$NM%g | |
22535 | s%@LD@%$LD%g | |
22536 | s%@MAKEINFO@%$MAKEINFO%g | |
22537 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
22538 | s%@SET_MAKE@%$SET_MAKE%g | |
22539 | s%@subdirs@%$subdirs%g | |
247f5006 | 22540 | |
247f5006 | 22541 | CEOF |
a0b9e27f | 22542 | EOF |
247f5006 | 22543 | |
a0b9e27f MB |
22544 | cat >> $CONFIG_STATUS <<\EOF |
22545 | ||
22546 | # Split the substitutions into bite-sized pieces for seds with | |
22547 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22548 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
22549 | ac_file=1 # Number of current file. | |
22550 | ac_beg=1 # First line for current file. | |
22551 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
22552 | ac_more_lines=: | |
22553 | ac_sed_cmds="" | |
22554 | while $ac_more_lines; do | |
22555 | if test $ac_beg -gt 1; then | |
22556 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
22557 | else | |
22558 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
22559 | fi | |
22560 | if test ! -s conftest.s$ac_file; then | |
22561 | ac_more_lines=false | |
22562 | rm -f conftest.s$ac_file | |
22563 | else | |
22564 | if test -z "$ac_sed_cmds"; then | |
22565 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
247f5006 | 22566 | else |
a0b9e27f | 22567 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
247f5006 | 22568 | fi |
a0b9e27f MB |
22569 | ac_file=`expr $ac_file + 1` |
22570 | ac_beg=$ac_end | |
22571 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 22572 | fi |
a0b9e27f MB |
22573 | done |
22574 | if test -z "$ac_sed_cmds"; then | |
22575 | ac_sed_cmds=cat | |
22576 | fi | |
22577 | EOF | |
10f2d63a | 22578 | |
a0b9e27f | 22579 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 22580 | |
a0b9e27f | 22581 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
2b5f62a0 | 22582 | version-script |
a0b9e27f MB |
22583 | src/make.env |
22584 | src/makeprog.env | |
22585 | src/makelib.env | |
22586 | Makefile | |
22587 | "} | |
22588 | EOF | |
22589 | cat >> $CONFIG_STATUS <<\EOF | |
22590 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
22591 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22592 | case "$ac_file" in | |
22593 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22594 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22595 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a | 22596 | esac |
247f5006 | 22597 | |
a0b9e27f | 22598 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
247f5006 | 22599 | |
a0b9e27f MB |
22600 | # Remove last slash and all that follows it. Not all systems have dirname. |
22601 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22602 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22603 | # The file is in a subdirectory. | |
22604 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
22605 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
22606 | # A "../" for each directory in $ac_dir_suffix. | |
22607 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
22608 | else | |
22609 | ac_dir_suffix= ac_dots= | |
22610 | fi | |
247f5006 | 22611 | |
a0b9e27f MB |
22612 | case "$ac_given_srcdir" in |
22613 | .) srcdir=. | |
22614 | if test -z "$ac_dots"; then top_srcdir=. | |
22615 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
22616 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
247f5006 | 22617 | *) # Relative path. |
a0b9e27f MB |
22618 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
22619 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8284b0c5 | 22620 | esac |
10f2d63a | 22621 | |
a0b9e27f MB |
22622 | case "$ac_given_INSTALL" in |
22623 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
22624 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
22625 | esac | |
247f5006 | 22626 | |
a0b9e27f MB |
22627 | echo creating "$ac_file" |
22628 | rm -f "$ac_file" | |
22629 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
22630 | case "$ac_file" in | |
22631 | *Makefile*) ac_comsub="1i\\ | |
22632 | # $configure_input" ;; | |
22633 | *) ac_comsub= ;; | |
22634 | esac | |
247f5006 | 22635 | |
a0b9e27f MB |
22636 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
22637 | sed -e "$ac_comsub | |
22638 | s%@configure_input@%$configure_input%g | |
22639 | s%@srcdir@%$srcdir%g | |
22640 | s%@top_srcdir@%$top_srcdir%g | |
22641 | s%@INSTALL@%$INSTALL%g | |
22642 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
22643 | fi; done | |
22644 | rm -f conftest.s* | |
10f2d63a VZ |
22645 | |
22646 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22647 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22648 | # | |
22649 | # ac_d sets the value in "#define NAME VALUE" lines. | |
a0b9e27f MB |
22650 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22651 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
22652 | ac_dC='\3' | |
22653 | ac_dD='%g' | |
22654 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
22655 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22656 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 22657 | ac_uC=' ' |
a0b9e27f MB |
22658 | ac_uD='\4%g' |
22659 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
22660 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22661 | ac_eB='$%\1#\2define\3' | |
22662 | ac_eC=' ' | |
22663 | ac_eD='%g' | |
22664 | ||
22665 | if test "${CONFIG_HEADERS+set}" != set; then | |
22666 | EOF | |
22667 | cat >> $CONFIG_STATUS <<EOF | |
22668 | CONFIG_HEADERS="setup.h:setup.h.in" | |
22669 | EOF | |
22670 | cat >> $CONFIG_STATUS <<\EOF | |
22671 | fi | |
22672 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 22673 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
a0b9e27f MB |
22674 | case "$ac_file" in |
22675 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22676 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22677 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
22678 | esac |
22679 | ||
a0b9e27f MB |
22680 | echo creating $ac_file |
22681 | ||
22682 | rm -f conftest.frag conftest.in conftest.out | |
22683 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
22684 | cat $ac_file_inputs > conftest.in | |
22685 | ||
22686 | EOF | |
22687 | ||
22688 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
22689 | # the proper values into config.h.in to produce config.h. And first: | |
22690 | # Protect against being on the right side of a sed subst in config.status. | |
22691 | # Protect against being in an unquoted here document in config.status. | |
22692 | rm -f conftest.vals | |
22693 | cat > conftest.hdr <<\EOF | |
22694 | s/[\\&%]/\\&/g | |
22695 | s%[\\$`]%\\&%g | |
22696 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
22697 | s%ac_d%ac_u%gp | |
22698 | s%ac_u%ac_e%gp | |
22699 | EOF | |
22700 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
22701 | rm -f conftest.hdr | |
10f2d63a VZ |
22702 | |
22703 | # This sed command replaces #undef with comments. This is necessary, for | |
22704 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22705 | # on some systems where configure will not decide to define it. | |
a0b9e27f MB |
22706 | cat >> conftest.vals <<\EOF |
22707 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
22708 | EOF | |
22709 | ||
22710 | # Break up conftest.vals because some shells have a limit on | |
22711 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
22712 | |
22713 | rm -f conftest.tail | |
a0b9e27f | 22714 | while : |
10f2d63a | 22715 | do |
a0b9e27f MB |
22716 | ac_lines=`grep -c . conftest.vals` |
22717 | # grep -c gives empty output for an empty file on some AIX systems. | |
22718 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
22719 | # Write a limited-size here document to conftest.frag. | |
22720 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
22721 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 22722 | echo 'CEOF |
a0b9e27f MB |
22723 | sed -f conftest.frag conftest.in > conftest.out |
22724 | rm -f conftest.in | |
22725 | mv conftest.out conftest.in | |
22726 | ' >> $CONFIG_STATUS | |
22727 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
22728 | rm -f conftest.vals | |
22729 | mv conftest.tail conftest.vals | |
10f2d63a | 22730 | done |
a0b9e27f MB |
22731 | rm -f conftest.vals |
22732 | ||
22733 | cat >> $CONFIG_STATUS <<\EOF | |
22734 | rm -f conftest.frag conftest.h | |
22735 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
22736 | cat conftest.in >> conftest.h | |
22737 | rm -f conftest.in | |
22738 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
22739 | echo "$ac_file is unchanged" | |
22740 | rm -f conftest.h | |
10f2d63a | 22741 | else |
a0b9e27f MB |
22742 | # Remove last slash and all that follows it. Not all systems have dirname. |
22743 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22744 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22745 | # The file is in a subdirectory. | |
22746 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
247f5006 | 22747 | fi |
a0b9e27f MB |
22748 | rm -f $ac_file |
22749 | mv conftest.h $ac_file | |
247f5006 | 22750 | fi |
a0b9e27f MB |
22751 | fi; done |
22752 | ||
22753 | EOF | |
22754 | cat >> $CONFIG_STATUS <<EOF | |
22755 | ||
22756 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
22757 | LN_S="${LN_S}" | |
22758 | ||
22759 | ||
22760 | EOF | |
22761 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 22762 | |
652d930d | 22763 | if test ! -h wx-config; then |
991a5759 | 22764 | chmod +x wx-config |
3a922bb4 RL |
22765 | mv wx-config wx${TOOLCHAIN_NAME}-config |
22766 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 22767 | fi |
665bbe97 | 22768 | |
00cf1208 RR |
22769 | if test ! -d lib; then |
22770 | mkdir lib | |
22771 | fi | |
22772 | if test ! -d lib/wx; then | |
22773 | mkdir lib/wx | |
22774 | fi | |
22775 | if test ! -d lib/wx/include; then | |
22776 | mkdir lib/wx/include | |
22777 | fi | |
3a922bb4 RL |
22778 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
22779 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 22780 | fi |
3a922bb4 RL |
22781 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
22782 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
22783 | fi |
22784 | if test -f setup.h; then | |
3a922bb4 | 22785 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 22786 | fi |
a0b9e27f MB |
22787 | |
22788 | exit 0 | |
22789 | EOF | |
10f2d63a | 22790 | chmod +x $CONFIG_STATUS |
a0b9e27f MB |
22791 | rm -fr confdefs* $ac_clean_files |
22792 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 22793 | |
2224580a VZ |
22794 | if test "$no_recursion" != yes; then |
22795 | ||
22796 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
22797 | ac_sub_configure_args= | |
22798 | ac_prev= | |
22799 | for ac_arg in $ac_configure_args; do | |
22800 | if test -n "$ac_prev"; then | |
22801 | ac_prev= | |
22802 | continue | |
22803 | fi | |
a0b9e27f | 22804 | case "$ac_arg" in |
2224580a VZ |
22805 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
22806 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
22807 | ac_prev=cache_file ;; | |
22808 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
a0b9e27f | 22809 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
22810 | ;; |
22811 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
22812 | ac_prev=srcdir ;; | |
22813 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
22814 | ;; | |
22815 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
22816 | esac | |
22817 | done | |
22818 | ||
a0b9e27f | 22819 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
22820 | |
22821 | # Do not complain, so a configure script can configure whichever | |
22822 | # parts of a large source tree are present. | |
a0b9e27f MB |
22823 | if test ! -d $srcdir/$ac_config_dir; then |
22824 | continue | |
22825 | fi | |
2224580a | 22826 | |
a0b9e27f | 22827 | echo configuring in $ac_config_dir |
2224580a | 22828 | |
a0b9e27f MB |
22829 | case "$srcdir" in |
22830 | .) ;; | |
22831 | *) | |
22832 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
22833 | else | |
22834 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
22835 | fi | |
22836 | ;; | |
22837 | esac | |
2224580a | 22838 | |
a0b9e27f MB |
22839 | ac_popdir=`pwd` |
22840 | cd $ac_config_dir | |
247f5006 | 22841 | |
a0b9e27f MB |
22842 | # A "../" for each directory in /$ac_config_dir. |
22843 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
247f5006 | 22844 | |
a0b9e27f MB |
22845 | case "$srcdir" in |
22846 | .) # No --srcdir option. We are building in place. | |
22847 | ac_sub_srcdir=$srcdir ;; | |
22848 | /*) # Absolute path. | |
22849 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
22850 | *) # Relative path. | |
22851 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
22852 | esac | |
2224580a VZ |
22853 | |
22854 | # Check for guested configure; otherwise get Cygnus style configure. | |
a0b9e27f MB |
22855 | if test -f $ac_sub_srcdir/configure; then |
22856 | ac_sub_configure=$ac_sub_srcdir/configure | |
22857 | elif test -f $ac_sub_srcdir/configure.in; then | |
2224580a VZ |
22858 | ac_sub_configure=$ac_configure |
22859 | else | |
a0b9e27f | 22860 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
22861 | ac_sub_configure= |
22862 | fi | |
22863 | ||
22864 | # The recursion is here. | |
22865 | if test -n "$ac_sub_configure"; then | |
a0b9e27f | 22866 | |
2224580a | 22867 | # Make the cache file name correct relative to the subdirectory. |
a0b9e27f MB |
22868 | case "$cache_file" in |
22869 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 22870 | *) # Relative path. |
a0b9e27f | 22871 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 22872 | esac |
a0b9e27f MB |
22873 | case "$ac_given_INSTALL" in |
22874 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
22875 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
22876 | esac | |
2224580a | 22877 | |
a0b9e27f | 22878 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 22879 | # The eval makes quoting arguments work. |
a0b9e27f MB |
22880 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
22881 | then : | |
22882 | else | |
22883 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
22884 | fi | |
2224580a VZ |
22885 | fi |
22886 | ||
22887 | cd $ac_popdir | |
22888 | done | |
22889 | fi | |
22890 | ||
8284b0c5 | 22891 | |
2b5f62a0 VZ |
22892 | echo |
22893 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
22894 | echo "" | |
22895 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
22896 | ||
22897 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
22898 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
22899 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
22900 | ||
22901 | echo " Which libraries should wxWindows use?" | |
22902 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
22903 | echo " png ${wxUSE_LIBPNG-none}" | |
22904 | echo " regex ${wxUSE_REGEX}" | |
22905 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
22906 | echo " zlib ${wxUSE_ZLIB}" | |
22907 | ||
22908 | echo "" | |
22909 |