]>
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 | |
89e6bf6d | 99 | --with-wine use Wine" |
a0b9e27f MB |
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 |
34bed6d9 VZ |
1084 | WX_MINOR_VERSION_NUMBER=5 |
1085 | WX_RELEASE_NUMBER=0 | |
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 | ||
34bed6d9 | 1092 | WX_CURRENT=0 |
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 | ||
89e6bf6d | 1126 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM 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 |
f79bd02d | 1135 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1136 | |
1137 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1138 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1139 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1140 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1141 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1142 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1143 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1144 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1145 | |
d6a55c4b | 1146 | PROGRAM_EXT= |
3a922bb4 | 1147 | SO_SUFFIX=so |
d6a55c4b | 1148 | |
10f2d63a VZ |
1149 | case "${host}" in |
1150 | *-hp-hpux* ) | |
1151 | USE_HPUX=1 | |
1152 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1153 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1154 | SO_SUFFIX=sl |
a0b9e27f | 1155 | cat >> confdefs.h <<\EOF |
10f2d63a | 1156 | #define __HPUX__ 1 |
a0b9e27f | 1157 | EOF |
10f2d63a VZ |
1158 | |
1159 | ;; | |
1160 | *-*-linux* ) | |
1161 | USE_LINUX=1 | |
a0b9e27f | 1162 | cat >> confdefs.h <<\EOF |
10f2d63a | 1163 | #define __LINUX__ 1 |
a0b9e27f | 1164 | EOF |
10f2d63a VZ |
1165 | |
1166 | TMP=`uname -m` | |
1167 | if test "x$TMP" = "xalpha"; then | |
1168 | USE_ALPHA=1 | |
a0b9e27f | 1169 | cat >> confdefs.h <<\EOF |
10f2d63a | 1170 | #define __ALPHA__ 1 |
a0b9e27f | 1171 | EOF |
10f2d63a VZ |
1172 | |
1173 | fi | |
1174 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1175 | ;; | |
1176 | *-*-irix5* | *-*-irix6* ) | |
1177 | USE_SGI=1 | |
1178 | USE_SVR4=1 | |
a0b9e27f | 1179 | cat >> confdefs.h <<\EOF |
10f2d63a | 1180 | #define __SGI__ 1 |
a0b9e27f | 1181 | EOF |
10f2d63a | 1182 | |
a0b9e27f | 1183 | cat >> confdefs.h <<\EOF |
10f2d63a | 1184 | #define __SVR4__ 1 |
a0b9e27f | 1185 | EOF |
10f2d63a VZ |
1186 | |
1187 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1188 | ;; | |
1189 | *-*-solaris2* ) | |
1190 | USE_SUN=1 | |
1191 | USE_SOLARIS=1 | |
1192 | USE_SVR4=1 | |
a0b9e27f | 1193 | cat >> confdefs.h <<\EOF |
10f2d63a | 1194 | #define __SUN__ 1 |
a0b9e27f | 1195 | EOF |
10f2d63a | 1196 | |
a0b9e27f | 1197 | cat >> confdefs.h <<\EOF |
10f2d63a | 1198 | #define __SOLARIS__ 1 |
a0b9e27f | 1199 | EOF |
10f2d63a | 1200 | |
a0b9e27f | 1201 | cat >> confdefs.h <<\EOF |
10f2d63a | 1202 | #define __SVR4__ 1 |
a0b9e27f | 1203 | EOF |
10f2d63a VZ |
1204 | |
1205 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1206 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1207 | ;; |
1208 | *-*-sunos4* ) | |
1209 | USE_SUN=1 | |
1210 | USE_SUNOS=1 | |
1211 | USE_BSD=1 | |
a0b9e27f | 1212 | cat >> confdefs.h <<\EOF |
10f2d63a | 1213 | #define __SUN__ 1 |
a0b9e27f | 1214 | EOF |
10f2d63a | 1215 | |
a0b9e27f | 1216 | cat >> confdefs.h <<\EOF |
10f2d63a | 1217 | #define __SUNOS__ 1 |
a0b9e27f | 1218 | EOF |
10f2d63a | 1219 | |
a0b9e27f | 1220 | cat >> confdefs.h <<\EOF |
10f2d63a | 1221 | #define __BSD__ 1 |
a0b9e27f | 1222 | EOF |
10f2d63a VZ |
1223 | |
1224 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1225 | ;; | |
f6bcfd97 | 1226 | *-*-freebsd*) |
10f2d63a VZ |
1227 | USE_BSD=1 |
1228 | USE_FREEBSD=1 | |
a0b9e27f | 1229 | cat >> confdefs.h <<\EOF |
10f2d63a | 1230 | #define __FREEBSD__ 1 |
a0b9e27f | 1231 | EOF |
10f2d63a | 1232 | |
a0b9e27f | 1233 | cat >> confdefs.h <<\EOF |
10f2d63a | 1234 | #define __BSD__ 1 |
a0b9e27f | 1235 | EOF |
95c8801c VS |
1236 | |
1237 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1238 | ;; | |
1239 | *-*-openbsd*) | |
1240 | USE_BSD=1 | |
1241 | USE_OPENBSD=1 | |
a0b9e27f | 1242 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1243 | #define __OPENBSD__ 1 |
a0b9e27f | 1244 | EOF |
95c8801c | 1245 | |
a0b9e27f | 1246 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1247 | #define __BSD__ 1 |
a0b9e27f | 1248 | EOF |
f6bcfd97 BP |
1249 | |
1250 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1251 | ;; | |
1252 | *-*-netbsd*) | |
1253 | USE_BSD=1 | |
1254 | USE_NETBSD=1 | |
a0b9e27f | 1255 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1256 | #define __NETBSD__ 1 |
a0b9e27f | 1257 | EOF |
f6bcfd97 | 1258 | |
a0b9e27f | 1259 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1260 | #define __BSD__ 1 |
a0b9e27f | 1261 | EOF |
10f2d63a VZ |
1262 | |
1263 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1264 | ;; | |
1265 | *-*-osf* ) | |
1266 | USE_ALPHA=1 | |
1267 | USE_OSF=1 | |
a0b9e27f | 1268 | cat >> confdefs.h <<\EOF |
10f2d63a | 1269 | #define __ALPHA__ 1 |
a0b9e27f | 1270 | EOF |
10f2d63a | 1271 | |
a0b9e27f | 1272 | cat >> confdefs.h <<\EOF |
10f2d63a | 1273 | #define __OSF__ 1 |
a0b9e27f | 1274 | EOF |
10f2d63a VZ |
1275 | |
1276 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1277 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1278 | ;; |
1279 | *-*-dgux5* ) | |
1280 | USE_ALPHA=1 | |
1281 | USE_SVR4=1 | |
a0b9e27f | 1282 | cat >> confdefs.h <<\EOF |
10f2d63a | 1283 | #define __ALPHA__ 1 |
a0b9e27f | 1284 | EOF |
10f2d63a | 1285 | |
a0b9e27f | 1286 | cat >> confdefs.h <<\EOF |
10f2d63a | 1287 | #define __SVR4__ 1 |
a0b9e27f | 1288 | EOF |
10f2d63a VZ |
1289 | |
1290 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1291 | ;; | |
1292 | *-*-sysv5* ) | |
1293 | USE_SYSV=1 | |
1294 | USE_SVR4=1 | |
a0b9e27f | 1295 | cat >> confdefs.h <<\EOF |
10f2d63a | 1296 | #define __SYSV__ 1 |
a0b9e27f | 1297 | EOF |
10f2d63a | 1298 | |
a0b9e27f | 1299 | cat >> confdefs.h <<\EOF |
10f2d63a | 1300 | #define __SVR4__ 1 |
a0b9e27f | 1301 | EOF |
10f2d63a VZ |
1302 | |
1303 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1304 | ;; | |
1305 | *-*-aix* ) | |
1306 | USE_AIX=1 | |
1307 | USE_SYSV=1 | |
1308 | USE_SVR4=1 | |
2b5f62a0 | 1309 | SO_SUFFIX=a |
a0b9e27f | 1310 | cat >> confdefs.h <<\EOF |
10f2d63a | 1311 | #define __AIX__ 1 |
a0b9e27f | 1312 | EOF |
10f2d63a | 1313 | |
a0b9e27f | 1314 | cat >> confdefs.h <<\EOF |
10f2d63a | 1315 | #define __SYSV__ 1 |
a0b9e27f | 1316 | EOF |
10f2d63a | 1317 | |
a0b9e27f | 1318 | cat >> confdefs.h <<\EOF |
10f2d63a | 1319 | #define __SVR4__ 1 |
a0b9e27f | 1320 | EOF |
10f2d63a VZ |
1321 | |
1322 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1323 | ;; | |
1324 | ||
1c8183e2 | 1325 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1326 | SO_SUFFIX=dll |
cf27ef00 | 1327 | PROGRAM_EXT=".exe" |
7b7a7637 | 1328 | RESCOMP=windres |
10f2d63a VZ |
1329 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1330 | ;; | |
1331 | ||
f9bc1684 VS |
1332 | *-pc-msdosdjgpp ) |
1333 | USE_UNIX=0 | |
1334 | USE_DOS=1 | |
a0b9e27f | 1335 | cat >> confdefs.h <<\EOF |
f9bc1684 | 1336 | #define __DOS__ 1 |
a0b9e27f | 1337 | EOF |
f9bc1684 VS |
1338 | |
1339 | PROGRAM_EXT=".exe" | |
1340 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1341 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1342 | ;; |
1343 | ||
6fa882bd | 1344 | *-pc-os2_emx | *-pc-os2-emx ) |
a0b9e27f | 1345 | cat >> confdefs.h <<\EOF |
10f2d63a | 1346 | #define __EMX__ 1 |
a0b9e27f | 1347 | EOF |
10f2d63a | 1348 | |
cf27ef00 | 1349 | PROGRAM_EXT=".exe" |
e07802fc | 1350 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1351 | ;; |
1352 | ||
d08b457b GD |
1353 | powerpc-*-darwin* ) |
1354 | USE_BSD=1 | |
f11bdd03 | 1355 | USE_DARWIN=1 |
3a922bb4 | 1356 | SO_SUFFIX=dylib |
a0b9e27f | 1357 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1358 | #define __BSD__ 1 |
a0b9e27f | 1359 | EOF |
b4085ce6 | 1360 | |
a0b9e27f | 1361 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1362 | #define __DARWIN__ 1 |
a0b9e27f | 1363 | EOF |
d08b457b | 1364 | |
a0b9e27f | 1365 | cat >> confdefs.h <<\EOF |
d08b457b | 1366 | #define __POWERPC__ 1 |
a0b9e27f | 1367 | EOF |
b4085ce6 GD |
1368 | |
1369 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1370 | ;; | |
1371 | ||
b12915c1 VZ |
1372 | *-*-beos* ) |
1373 | USE_BEOS=1 | |
a0b9e27f | 1374 | cat >> confdefs.h <<\EOF |
b12915c1 | 1375 | #define __BEOS__ 1 |
a0b9e27f | 1376 | EOF |
b12915c1 VZ |
1377 | |
1378 | ;; | |
1379 | ||
10f2d63a | 1380 | *) |
a0b9e27f | 1381 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1382 | esac |
1383 | ||
8284b0c5 MB |
1384 | |
1385 | ||
1386 | ||
1387 | wx_arg_cache_file="configarg.cache" | |
1388 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1389 | rm -f ${wx_arg_cache_file}.tmp |
1390 | touch ${wx_arg_cache_file}.tmp | |
1391 | touch ${wx_arg_cache_file} | |
a0b9e27f | 1392 | |
10f2d63a VZ |
1393 | |
1394 | DEBUG_CONFIGURE=0 | |
1395 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1396 | DEFAULT_wxUSE_UNIVERSAL=no |
1397 | ||
d8356fa3 VZ |
1398 | DEFAULT_wxUSE_NANOX=no |
1399 | ||
10f2d63a VZ |
1400 | DEFAULT_wxUSE_THREADS=yes |
1401 | ||
1402 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1403 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1404 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1405 | DEFAULT_wxUSE_PROFILE=no |
1406 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1407 | DEFAULT_wxUSE_NO_RTTI=no |
1408 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1409 | DEFAULT_wxUSE_PERMISSIVE=no |
1410 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1411 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1412 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1413 | DEFAULT_wxUSE_MEM_TRACING=no | |
1414 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1415 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1416 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1417 | DEFAULT_wxUSE_APPLE_IEEE=no |
1418 | ||
1419 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1420 | DEFAULT_wxUSE_LOGWINDOW=no |
1421 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1422 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1423 | |
1424 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1425 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1426 | |
3e44f09d | 1427 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1428 | DEFAULT_wxUSE_ZLIB=no |
1429 | DEFAULT_wxUSE_LIBPNG=no | |
1430 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1431 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1432 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1433 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1434 | |
eb4efbdc | 1435 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1436 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1437 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1438 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1439 | DEFAULT_wxUSE_DATETIME=no | |
1440 | DEFAULT_wxUSE_TIMEDATE=no | |
1441 | DEFAULT_wxUSE_TIMER=no | |
1442 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1443 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1444 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1445 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1446 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1447 | DEFAULT_wxUSE_WAVE=no |
1448 | DEFAULT_wxUSE_INTL=no | |
1449 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1450 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1451 | DEFAULT_wxUSE_STREAMS=no |
1452 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
1453 | DEFAULT_wxUSE_OLE=no |
1454 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 1455 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 1456 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1457 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1458 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1459 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1460 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1461 | |
1462 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1463 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1464 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1465 | ||
1466 | DEFAULT_wxUSE_X_RESOURCES=no | |
1467 | DEFAULT_wxUSE_CLIPBOARD=no | |
1468 | DEFAULT_wxUSE_TOOLTIPS=no | |
1469 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1470 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1471 | DEFAULT_wxUSE_SPLINES=no |
1472 | ||
1473 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1474 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1475 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1476 | ||
1477 | DEFAULT_wxUSE_PROLOGIO=no | |
1478 | DEFAULT_wxUSE_RESOURCES=no | |
1479 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1480 | DEFAULT_wxUSE_IPC=no | |
1481 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1482 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1483 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1484 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1485 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1486 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1487 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1488 | DEFAULT_wxUSE_PROTOCOL=no | |
1489 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1490 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1491 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1492 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1493 | |
10f2d63a | 1494 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1495 | DEFAULT_wxUSE_CHOICEDLG=no |
1496 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1497 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1498 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1499 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1500 | DEFAULT_wxUSE_FONTDLG=no |
1501 | DEFAULT_wxUSE_MSGDLG=no | |
1502 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1503 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1504 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1505 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1506 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1507 | DEFAULT_wxUSE_WIZARDDLG=no |
1508 | ||
1e6feb95 | 1509 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1510 | DEFAULT_wxUSE_MINIFRAME=no |
1511 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1512 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1513 | DEFAULT_wxUSE_FS_INET=no |
1514 | DEFAULT_wxUSE_FS_ZIP=no | |
1515 | DEFAULT_wxUSE_BUSYINFO=no | |
1516 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1517 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1518 | |
1519 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1520 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1521 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1522 | DEFAULT_wxUSE_CALCTRL=no |
1523 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1524 | DEFAULT_wxUSE_CHECKBOX=no |
1525 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1526 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1527 | DEFAULT_wxUSE_COMBOBOX=no |
1528 | DEFAULT_wxUSE_GAUGE=no | |
1529 | DEFAULT_wxUSE_GRID=no | |
1530 | DEFAULT_wxUSE_NEW_GRID=no | |
1531 | DEFAULT_wxUSE_IMAGLIST=no | |
1532 | DEFAULT_wxUSE_LISTBOX=no | |
1533 | DEFAULT_wxUSE_LISTCTRL=no | |
1534 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1535 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1536 | DEFAULT_wxUSE_RADIOBOX=no |
1537 | DEFAULT_wxUSE_RADIOBTN=no | |
1538 | DEFAULT_wxUSE_SASH=no | |
1539 | DEFAULT_wxUSE_SCROLLBAR=no | |
1540 | DEFAULT_wxUSE_SLIDER=no | |
1541 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1542 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1543 | DEFAULT_wxUSE_SPLITTER=no |
1544 | DEFAULT_wxUSE_STATBMP=no | |
1545 | DEFAULT_wxUSE_STATBOX=no | |
1546 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1547 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1548 | DEFAULT_wxUSE_STATUSBAR=yes |
1549 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1550 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1551 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1552 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1553 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1554 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1555 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1556 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1557 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1558 | |
1559 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1560 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1561 | DEFAULT_wxUSE_WCSRTOMBS=no |
1562 | ||
edae8572 | 1563 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1564 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1565 | DEFAULT_wxUSE_GIF=no |
1566 | DEFAULT_wxUSE_PCX=no | |
1567 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1568 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1569 | DEFAULT_wxUSE_XPM=no |
658974ae | 1570 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1571 | else |
1e6feb95 VZ |
1572 | DEFAULT_wxUSE_UNIVERSAL=no |
1573 | ||
d8356fa3 VZ |
1574 | DEFAULT_wxUSE_NANOX=no |
1575 | ||
10f2d63a VZ |
1576 | DEFAULT_wxUSE_THREADS=yes |
1577 | ||
1578 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1579 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1580 | DEFAULT_wxUSE_OPTIMISE=yes |
1581 | DEFAULT_wxUSE_PROFILE=no | |
1582 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1583 | DEFAULT_wxUSE_NO_RTTI=no |
1584 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1585 | DEFAULT_wxUSE_PERMISSIVE=no |
1586 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1587 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1588 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1589 | DEFAULT_wxUSE_MEM_TRACING=no | |
1590 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1591 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1592 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1593 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1594 | ||
1595 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1596 | DEFAULT_wxUSE_LOGWINDOW=yes |
1597 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1598 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1599 | |
1600 | DEFAULT_wxUSE_GUI=yes | |
1601 | ||
831b3152 | 1602 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1603 | DEFAULT_wxUSE_ZLIB=yes |
1604 | DEFAULT_wxUSE_LIBPNG=yes | |
1605 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1606 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1607 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1608 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1609 | |
eb4efbdc | 1610 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1611 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1612 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1613 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1614 | DEFAULT_wxUSE_DATETIME=yes | |
1615 | DEFAULT_wxUSE_TIMEDATE=no | |
1616 | DEFAULT_wxUSE_TIMER=yes | |
1617 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1618 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1619 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1620 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1621 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1622 | DEFAULT_wxUSE_WAVE=no |
1623 | DEFAULT_wxUSE_INTL=yes | |
1624 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1625 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1626 | DEFAULT_wxUSE_STREAMS=yes |
1627 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
1628 | DEFAULT_wxUSE_OLE=yes |
1629 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 1630 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 1631 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1632 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1633 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1634 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1635 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1636 | |
1637 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1638 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1639 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1640 | ||
1641 | DEFAULT_wxUSE_X_RESOURCES=no | |
1642 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1643 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1644 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1645 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1646 | DEFAULT_wxUSE_SPLINES=yes |
1647 | ||
1648 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1649 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1650 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1651 | ||
2b5f62a0 VZ |
1652 | DEFAULT_wxUSE_PROLOGIO=no |
1653 | DEFAULT_wxUSE_RESOURCES=no | |
10f2d63a VZ |
1654 | DEFAULT_wxUSE_CONSTRAINTS=yes |
1655 | DEFAULT_wxUSE_IPC=yes | |
1656 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1657 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1658 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1659 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1660 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1661 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1662 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1663 | DEFAULT_wxUSE_PROTOCOL=yes |
1664 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1665 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1666 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1667 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1668 | |
1669 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1670 | DEFAULT_wxUSE_CHOICEDLG=yes |
1671 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1672 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1673 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1674 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1675 | DEFAULT_wxUSE_FONTDLG=yes |
1676 | DEFAULT_wxUSE_MSGDLG=yes | |
1677 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1678 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1679 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1680 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1681 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1682 | DEFAULT_wxUSE_WIZARDDLG=yes |
1683 | ||
1e6feb95 | 1684 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1685 | DEFAULT_wxUSE_MINIFRAME=yes |
1686 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1687 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1688 | DEFAULT_wxUSE_FS_INET=yes |
1689 | DEFAULT_wxUSE_FS_ZIP=yes | |
1690 | DEFAULT_wxUSE_BUSYINFO=yes | |
1691 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1692 | DEFAULT_wxUSE_VALIDATORS=yes | |
1693 | ||
1694 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1695 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1696 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1697 | DEFAULT_wxUSE_CALCTRL=yes |
1698 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1699 | DEFAULT_wxUSE_CHECKBOX=yes |
1700 | DEFAULT_wxUSE_CHECKLST=yes | |
1701 | DEFAULT_wxUSE_CHOICE=yes | |
1702 | DEFAULT_wxUSE_COMBOBOX=yes | |
1703 | DEFAULT_wxUSE_GAUGE=yes | |
1704 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1705 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1706 | DEFAULT_wxUSE_IMAGLIST=yes |
1707 | DEFAULT_wxUSE_LISTBOX=yes | |
1708 | DEFAULT_wxUSE_LISTCTRL=yes | |
1709 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1710 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1711 | DEFAULT_wxUSE_RADIOBOX=yes |
1712 | DEFAULT_wxUSE_RADIOBTN=yes | |
1713 | DEFAULT_wxUSE_SASH=yes | |
1714 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1715 | DEFAULT_wxUSE_SLIDER=yes | |
1716 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1717 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1718 | DEFAULT_wxUSE_SPLITTER=yes |
1719 | DEFAULT_wxUSE_STATBMP=yes | |
1720 | DEFAULT_wxUSE_STATBOX=yes | |
1721 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1722 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1723 | DEFAULT_wxUSE_STATUSBAR=yes |
1724 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1725 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1726 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1727 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1728 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1729 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1730 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1731 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1732 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1733 | |
1734 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1735 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1736 | DEFAULT_wxUSE_WCSRTOMBS=no |
1737 | ||
edae8572 | 1738 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1739 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1740 | DEFAULT_wxUSE_GIF=yes |
1741 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1742 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1743 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1744 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1745 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1746 | fi |
1747 | ||
8284b0c5 MB |
1748 | |
1749 | ||
10f2d63a | 1750 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
1751 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
1752 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
1753 | has_toolkit_in_cache=1 |
1754 | eval "DEFAULT_$LINE" | |
1755 | eval "CACHE_$toolkit=1" | |
1756 | fi | |
1757 | done | |
1758 | ||
8284b0c5 MB |
1759 | |
1760 | ||
5005acfe VZ |
1761 | enablestring= |
1762 | echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6 | |
89e6bf6d | 1763 | echo "configure:1764: checking for --${enablestring:-enable}-gui" >&5 |
10f2d63a VZ |
1764 | no_cache=0 |
1765 | # Check whether --enable-gui or --disable-gui was given. | |
1766 | if test "${enable_gui+set}" = set; then | |
1767 | enableval="$enable_gui" | |
a0b9e27f | 1768 | |
10f2d63a VZ |
1769 | if test "$enableval" = yes; then |
1770 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1771 | else | |
1772 | ac_cv_use_gui='wxUSE_GUI=no' | |
1773 | fi | |
a0b9e27f | 1774 | |
10f2d63a | 1775 | else |
a0b9e27f | 1776 | |
10f2d63a VZ |
1777 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1778 | if test "x$LINE" != x ; then | |
1779 | eval "DEFAULT_$LINE" | |
1780 | else | |
1781 | no_cache=1 | |
1782 | fi | |
1783 | ||
1784 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
a0b9e27f MB |
1785 | |
1786 | fi | |
10f2d63a VZ |
1787 | |
1788 | ||
1789 | eval "$ac_cv_use_gui" | |
1790 | if test "$no_cache" != 1; then | |
1791 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1792 | fi | |
1793 | ||
1794 | if test "$wxUSE_GUI" = yes; then | |
a0b9e27f | 1795 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1796 | else |
a0b9e27f | 1797 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1798 | fi |
a0b9e27f | 1799 | |
10f2d63a | 1800 | |
b12915c1 | 1801 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1802 | |
8284b0c5 | 1803 | |
5005acfe VZ |
1804 | enablestring= |
1805 | echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6 | |
89e6bf6d | 1806 | echo "configure:1807: checking for --${enablestring:-enable}-universal" >&5 |
1e6feb95 VZ |
1807 | no_cache=0 |
1808 | # Check whether --enable-universal or --disable-universal was given. | |
1809 | if test "${enable_universal+set}" = set; then | |
1810 | enableval="$enable_universal" | |
a0b9e27f | 1811 | |
1e6feb95 VZ |
1812 | if test "$enableval" = yes; then |
1813 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1814 | else | |
1815 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1816 | fi | |
a0b9e27f | 1817 | |
1e6feb95 | 1818 | else |
a0b9e27f | 1819 | |
1e6feb95 VZ |
1820 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1821 | if test "x$LINE" != x ; then | |
1822 | eval "DEFAULT_$LINE" | |
1823 | else | |
1824 | no_cache=1 | |
1825 | fi | |
1826 | ||
1827 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
a0b9e27f MB |
1828 | |
1829 | fi | |
1e6feb95 VZ |
1830 | |
1831 | ||
1832 | eval "$ac_cv_use_universal" | |
1833 | if test "$no_cache" != 1; then | |
1834 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1835 | fi | |
1836 | ||
1837 | if test "$wxUSE_UNIVERSAL" = yes; then | |
a0b9e27f | 1838 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1839 | else |
a0b9e27f | 1840 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1841 | fi |
a0b9e27f | 1842 | |
10f2d63a VZ |
1843 | # Check whether --with-gtk or --without-gtk was given. |
1844 | if test "${with_gtk+set}" = set; then | |
1845 | withval="$with_gtk" | |
1846 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1847 | fi |
10f2d63a VZ |
1848 | |
1849 | # Check whether --with-motif or --without-motif was given. | |
1850 | if test "${with_motif+set}" = set; then | |
1851 | withval="$with_motif" | |
1852 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1853 | fi |
10f2d63a | 1854 | |
b4085ce6 GD |
1855 | # Check whether --with-mac or --without-mac was given. |
1856 | if test "${with_mac+set}" = set; then | |
1857 | withval="$with_mac" | |
1858 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
a0b9e27f | 1859 | fi |
b4085ce6 | 1860 | |
10f2d63a VZ |
1861 | # Check whether --with-wine or --without-wine was given. |
1862 | if test "${with_wine+set}" = set; then | |
1863 | withval="$with_wine" | |
89e6bf6d | 1864 | wxUSE_WINE="$withval" CACHE_WINE=1 |
a0b9e27f | 1865 | fi |
10f2d63a | 1866 | |
77e13408 RL |
1867 | # Check whether --with-msw or --without-msw was given. |
1868 | if test "${with_msw+set}" = set; then | |
1869 | withval="$with_msw" | |
b4efce5e | 1870 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1871 | fi |
10f2d63a | 1872 | |
e07802fc VZ |
1873 | # Check whether --with-pm or --without-pm was given. |
1874 | if test "${with_pm+set}" = set; then | |
1875 | withval="$with_pm" | |
1876 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1877 | fi |
698dcdb6 | 1878 | |
1e6feb95 VZ |
1879 | # Check whether --with-mgl or --without-mgl was given. |
1880 | if test "${with_mgl+set}" = set; then | |
1881 | withval="$with_mgl" | |
6c657b52 | 1882 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1883 | fi |
1e6feb95 | 1884 | |
1725144d RR |
1885 | # Check whether --with-microwin or --without-microwin was given. |
1886 | if test "${with_microwin+set}" = set; then | |
1887 | withval="$with_microwin" | |
1888 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1889 | fi |
1725144d | 1890 | |
f79bd02d JS |
1891 | # Check whether --with-x11 or --without-x11 was given. |
1892 | if test "${with_x11+set}" = set; then | |
1893 | withval="$with_x11" | |
3c011993 | 1894 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1895 | fi |
10f2d63a | 1896 | |
a0b9e27f | 1897 | |
5005acfe VZ |
1898 | enablestring= |
1899 | echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6 | |
89e6bf6d | 1900 | echo "configure:1901: checking for --${enablestring:-enable}-nanox" >&5 |
d8356fa3 | 1901 | no_cache=0 |
ba875e66 VZ |
1902 | # Check whether --enable-nanox or --disable-nanox was given. |
1903 | if test "${enable_nanox+set}" = set; then | |
1904 | enableval="$enable_nanox" | |
a0b9e27f | 1905 | |
d8356fa3 | 1906 | if test "$enableval" = yes; then |
ba875e66 | 1907 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1908 | else |
ba875e66 | 1909 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1910 | fi |
a0b9e27f | 1911 | |
d8356fa3 | 1912 | else |
a0b9e27f | 1913 | |
d8356fa3 VZ |
1914 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1915 | if test "x$LINE" != x ; then | |
1916 | eval "DEFAULT_$LINE" | |
1917 | else | |
1918 | no_cache=1 | |
1919 | fi | |
1920 | ||
ba875e66 | 1921 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
a0b9e27f MB |
1922 | |
1923 | fi | |
d8356fa3 VZ |
1924 | |
1925 | ||
ba875e66 | 1926 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1927 | if test "$no_cache" != 1; then |
ba875e66 | 1928 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1929 | fi |
1930 | ||
1931 | if test "$wxUSE_NANOX" = yes; then | |
a0b9e27f | 1932 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1933 | else |
a0b9e27f | 1934 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1935 | fi |
a0b9e27f | 1936 | |
8284b0c5 | 1937 | |
d74f4b5a | 1938 | |
5005acfe VZ |
1939 | enablestring= |
1940 | echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6 | |
89e6bf6d | 1941 | echo "configure:1942: checking for --${enablestring:-enable}-gtk2" >&5 |
d74f4b5a VZ |
1942 | no_cache=0 |
1943 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
1944 | if test "${enable_gtk2+set}" = set; then |
1945 | enableval="$enable_gtk2" | |
a0b9e27f | 1946 | |
d74f4b5a VZ |
1947 | if test "$enableval" = yes; then |
1948 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
1949 | else | |
1950 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
1951 | fi | |
a0b9e27f | 1952 | |
10f2d63a | 1953 | else |
a0b9e27f | 1954 | |
d74f4b5a VZ |
1955 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
1956 | if test "x$LINE" != x ; then | |
1957 | eval "DEFAULT_$LINE" | |
1958 | else | |
1959 | no_cache=1 | |
1960 | fi | |
1961 | ||
1962 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
a0b9e27f MB |
1963 | |
1964 | fi | |
52127426 | 1965 | |
328a083c | 1966 | |
d74f4b5a VZ |
1967 | eval "$ac_cv_use_gtk2" |
1968 | if test "$no_cache" != 1; then | |
1969 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
1970 | fi | |
1971 | ||
1972 | if test "$wxUSE_GTK2" = yes; then | |
a0b9e27f | 1973 | echo "$ac_t""yes" 1>&6 |
d74f4b5a | 1974 | else |
a0b9e27f | 1975 | echo "$ac_t""no" 1>&6 |
d74f4b5a | 1976 | fi |
a0b9e27f | 1977 | |
d74f4b5a | 1978 | |
5c6fa7d2 | 1979 | |
a0b9e27f | 1980 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
89e6bf6d | 1981 | echo "configure:1982: checking for --with-libpng" >&5 |
8284b0c5 | 1982 | no_cache=0 |
a0b9e27f | 1983 | # Check whether --with-libpng or --without-libpng was given. |
b12915c1 VZ |
1984 | if test "${with_libpng+set}" = set; then |
1985 | withval="$with_libpng" | |
a0b9e27f | 1986 | |
10f2d63a | 1987 | if test "$withval" = yes; then |
b12915c1 | 1988 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1989 | elif test "$withval" = no; then |
b12915c1 | 1990 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1991 | elif test "$withval" = sys; then |
1992 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1993 | elif test "$withval" = builtin; then |
1994 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1995 | else |
a0b9e27f | 1996 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1997 | fi |
a0b9e27f | 1998 | |
10f2d63a | 1999 | else |
a0b9e27f | 2000 | |
b12915c1 | 2001 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2002 | if test "x$LINE" != x ; then |
2003 | eval "DEFAULT_$LINE" | |
2004 | else | |
2005 | no_cache=1 | |
2006 | fi | |
2007 | ||
b12915c1 | 2008 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
a0b9e27f MB |
2009 | |
2010 | fi | |
10f2d63a VZ |
2011 | |
2012 | ||
b12915c1 | 2013 | eval "$ac_cv_use_libpng" |
10f2d63a | 2014 | if test "$no_cache" != 1; then |
b12915c1 | 2015 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2016 | fi |
2017 | ||
b12915c1 | 2018 | if test "$wxUSE_LIBPNG" = yes; then |
a0b9e27f | 2019 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2020 | elif test "$wxUSE_LIBPNG" = no; then |
a0b9e27f | 2021 | echo "$ac_t""no" 1>&6 |
422107f9 | 2022 | elif test "$wxUSE_LIBPNG" = sys; then |
a0b9e27f | 2023 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2024 | elif test "$wxUSE_LIBPNG" = builtin; then |
a0b9e27f | 2025 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2026 | else |
a0b9e27f | 2027 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2028 | fi |
a0b9e27f | 2029 | |
10f2d63a | 2030 | |
a0b9e27f | 2031 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
89e6bf6d | 2032 | echo "configure:2033: checking for --with-libjpeg" >&5 |
10f2d63a | 2033 | no_cache=0 |
a0b9e27f | 2034 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2035 | if test "${with_libjpeg+set}" = set; then |
2036 | withval="$with_libjpeg" | |
a0b9e27f | 2037 | |
10f2d63a | 2038 | if test "$withval" = yes; then |
b12915c1 | 2039 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2040 | elif test "$withval" = no; then |
b12915c1 | 2041 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2042 | elif test "$withval" = sys; then |
2043 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2044 | elif test "$withval" = builtin; then |
2045 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2046 | else |
a0b9e27f | 2047 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2048 | fi |
a0b9e27f | 2049 | |
10f2d63a | 2050 | else |
a0b9e27f | 2051 | |
b12915c1 | 2052 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2053 | if test "x$LINE" != x ; then |
2054 | eval "DEFAULT_$LINE" | |
2055 | else | |
2056 | no_cache=1 | |
2057 | fi | |
2058 | ||
b12915c1 | 2059 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
a0b9e27f MB |
2060 | |
2061 | fi | |
10f2d63a VZ |
2062 | |
2063 | ||
b12915c1 | 2064 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2065 | if test "$no_cache" != 1; then |
b12915c1 | 2066 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2067 | fi |
2068 | ||
b12915c1 | 2069 | if test "$wxUSE_LIBJPEG" = yes; then |
a0b9e27f | 2070 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2071 | elif test "$wxUSE_LIBJPEG" = no; then |
a0b9e27f | 2072 | echo "$ac_t""no" 1>&6 |
422107f9 | 2073 | elif test "$wxUSE_LIBJPEG" = sys; then |
a0b9e27f | 2074 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2075 | elif test "$wxUSE_LIBJPEG" = builtin; then |
a0b9e27f | 2076 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2077 | else |
a0b9e27f | 2078 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2079 | fi |
a0b9e27f | 2080 | |
10f2d63a | 2081 | |
a0b9e27f | 2082 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
89e6bf6d | 2083 | echo "configure:2084: checking for --with-libtiff" >&5 |
10f2d63a | 2084 | no_cache=0 |
a0b9e27f | 2085 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2086 | if test "${with_libtiff+set}" = set; then |
2087 | withval="$with_libtiff" | |
a0b9e27f | 2088 | |
10f2d63a | 2089 | if test "$withval" = yes; then |
b12915c1 | 2090 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2091 | elif test "$withval" = no; then |
b12915c1 | 2092 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2093 | elif test "$withval" = sys; then |
2094 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2095 | elif test "$withval" = builtin; then |
2096 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2097 | else |
a0b9e27f | 2098 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2099 | fi |
a0b9e27f | 2100 | |
10f2d63a | 2101 | else |
a0b9e27f | 2102 | |
b12915c1 | 2103 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2104 | if test "x$LINE" != x ; then |
2105 | eval "DEFAULT_$LINE" | |
2106 | else | |
2107 | no_cache=1 | |
2108 | fi | |
2109 | ||
b12915c1 | 2110 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
a0b9e27f MB |
2111 | |
2112 | fi | |
10f2d63a VZ |
2113 | |
2114 | ||
b12915c1 | 2115 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2116 | if test "$no_cache" != 1; then |
b12915c1 | 2117 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2118 | fi |
2119 | ||
b12915c1 | 2120 | if test "$wxUSE_LIBTIFF" = yes; then |
a0b9e27f | 2121 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2122 | elif test "$wxUSE_LIBTIFF" = no; then |
a0b9e27f | 2123 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2124 | elif test "$wxUSE_LIBTIFF" = sys; then |
a0b9e27f | 2125 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2126 | elif test "$wxUSE_LIBTIFF" = builtin; then |
a0b9e27f | 2127 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2128 | else |
a0b9e27f | 2129 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2130 | fi |
a0b9e27f | 2131 | |
10f2d63a | 2132 | |
a0b9e27f | 2133 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
89e6bf6d | 2134 | echo "configure:2135: checking for --with-opengl" >&5 |
10f2d63a | 2135 | no_cache=0 |
a0b9e27f | 2136 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2137 | if test "${with_opengl+set}" = set; then |
2138 | withval="$with_opengl" | |
a0b9e27f | 2139 | |
10f2d63a | 2140 | if test "$withval" = yes; then |
b12915c1 | 2141 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2142 | else |
b12915c1 | 2143 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2144 | fi |
a0b9e27f | 2145 | |
10f2d63a | 2146 | else |
a0b9e27f | 2147 | |
b12915c1 | 2148 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2149 | if test "x$LINE" != x ; then |
2150 | eval "DEFAULT_$LINE" | |
2151 | else | |
2152 | no_cache=1 | |
2153 | fi | |
2154 | ||
b12915c1 | 2155 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
a0b9e27f MB |
2156 | |
2157 | fi | |
10f2d63a VZ |
2158 | |
2159 | ||
b12915c1 | 2160 | eval "$ac_cv_use_opengl" |
10f2d63a | 2161 | if test "$no_cache" != 1; then |
b12915c1 | 2162 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2163 | fi |
2164 | ||
b12915c1 | 2165 | if test "$wxUSE_OPENGL" = yes; then |
a0b9e27f | 2166 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2167 | else |
a0b9e27f | 2168 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2169 | fi |
a0b9e27f | 2170 | |
10f2d63a | 2171 | |
b12915c1 VZ |
2172 | fi |
2173 | ||
5c6fa7d2 | 2174 | |
a0b9e27f | 2175 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
89e6bf6d | 2176 | echo "configure:2177: checking for --with-dmalloc" >&5 |
8284b0c5 | 2177 | no_cache=0 |
a0b9e27f | 2178 | # Check whether --with-dmalloc or --without-dmalloc was given. |
b12915c1 VZ |
2179 | if test "${with_dmalloc+set}" = set; then |
2180 | withval="$with_dmalloc" | |
a0b9e27f | 2181 | |
c7a2bf27 | 2182 | if test "$withval" = yes; then |
b12915c1 | 2183 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2184 | else |
b12915c1 | 2185 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2186 | fi |
a0b9e27f | 2187 | |
c7a2bf27 | 2188 | else |
a0b9e27f | 2189 | |
b12915c1 | 2190 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2191 | if test "x$LINE" != x ; then |
2192 | eval "DEFAULT_$LINE" | |
2193 | else | |
2194 | no_cache=1 | |
2195 | fi | |
2196 | ||
b12915c1 | 2197 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
a0b9e27f MB |
2198 | |
2199 | fi | |
c7a2bf27 RR |
2200 | |
2201 | ||
b12915c1 | 2202 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2203 | if test "$no_cache" != 1; then |
b12915c1 | 2204 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2205 | fi |
2206 | ||
b12915c1 | 2207 | if test "$wxUSE_DMALLOC" = yes; then |
a0b9e27f | 2208 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2209 | else |
a0b9e27f | 2210 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2211 | fi |
a0b9e27f | 2212 | |
c7a2bf27 | 2213 | |
a0b9e27f | 2214 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
89e6bf6d | 2215 | echo "configure:2216: checking for --with-regex" >&5 |
3e44f09d | 2216 | no_cache=0 |
a0b9e27f | 2217 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2218 | if test "${with_regex+set}" = set; then |
2219 | withval="$with_regex" | |
a0b9e27f | 2220 | |
3e44f09d VZ |
2221 | if test "$withval" = yes; then |
2222 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2223 | elif test "$withval" = no; then | |
2224 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2225 | elif test "$withval" = sys; then | |
2226 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2227 | elif test "$withval" = builtin; then |
2228 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2229 | else |
a0b9e27f | 2230 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2231 | fi |
a0b9e27f | 2232 | |
3e44f09d | 2233 | else |
a0b9e27f | 2234 | |
3e44f09d VZ |
2235 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2236 | if test "x$LINE" != x ; then | |
2237 | eval "DEFAULT_$LINE" | |
2238 | else | |
2239 | no_cache=1 | |
2240 | fi | |
2241 | ||
2242 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
a0b9e27f MB |
2243 | |
2244 | fi | |
3e44f09d VZ |
2245 | |
2246 | ||
2247 | eval "$ac_cv_use_regex" | |
2248 | if test "$no_cache" != 1; then | |
2249 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2250 | fi | |
2251 | ||
2252 | if test "$wxUSE_REGEX" = yes; then | |
a0b9e27f | 2253 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2254 | elif test "$wxUSE_REGEX" = no; then |
a0b9e27f | 2255 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2256 | elif test "$wxUSE_REGEX" = sys; then |
a0b9e27f | 2257 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2258 | elif test "$wxUSE_REGEX" = builtin; then |
a0b9e27f | 2259 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2260 | else |
a0b9e27f | 2261 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2262 | fi |
a0b9e27f | 2263 | |
3e44f09d | 2264 | |
a0b9e27f | 2265 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
89e6bf6d | 2266 | echo "configure:2267: checking for --with-zlib" >&5 |
10f2d63a | 2267 | no_cache=0 |
a0b9e27f | 2268 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2269 | if test "${with_zlib+set}" = set; then |
2270 | withval="$with_zlib" | |
a0b9e27f | 2271 | |
10f2d63a | 2272 | if test "$withval" = yes; then |
b12915c1 | 2273 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2274 | elif test "$withval" = no; then |
b12915c1 | 2275 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2276 | elif test "$withval" = sys; then |
2277 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2278 | elif test "$withval" = builtin; then |
2279 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2280 | else |
a0b9e27f | 2281 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2282 | fi |
a0b9e27f | 2283 | |
10f2d63a | 2284 | else |
a0b9e27f | 2285 | |
b12915c1 | 2286 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2287 | if test "x$LINE" != x ; then |
2288 | eval "DEFAULT_$LINE" | |
2289 | else | |
2290 | no_cache=1 | |
2291 | fi | |
2292 | ||
b12915c1 | 2293 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
a0b9e27f MB |
2294 | |
2295 | fi | |
10f2d63a VZ |
2296 | |
2297 | ||
b12915c1 | 2298 | eval "$ac_cv_use_zlib" |
10f2d63a | 2299 | if test "$no_cache" != 1; then |
b12915c1 | 2300 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2301 | fi |
2302 | ||
b12915c1 | 2303 | if test "$wxUSE_ZLIB" = yes; then |
a0b9e27f | 2304 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2305 | elif test "$wxUSE_ZLIB" = no; then |
a0b9e27f | 2306 | echo "$ac_t""no" 1>&6 |
422107f9 | 2307 | elif test "$wxUSE_ZLIB" = sys; then |
a0b9e27f | 2308 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2309 | elif test "$wxUSE_ZLIB" = builtin; then |
a0b9e27f | 2310 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2311 | else |
a0b9e27f | 2312 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2313 | fi |
a0b9e27f | 2314 | |
10f2d63a | 2315 | |
a0b9e27f | 2316 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
89e6bf6d | 2317 | echo "configure:2318: checking for --with-odbc" >&5 |
10f2d63a | 2318 | no_cache=0 |
a0b9e27f | 2319 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2320 | if test "${with_odbc+set}" = set; then |
2321 | withval="$with_odbc" | |
a0b9e27f | 2322 | |
10f2d63a VZ |
2323 | if test "$withval" = yes; then |
2324 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2325 | else | |
2326 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2327 | fi | |
a0b9e27f | 2328 | |
10f2d63a | 2329 | else |
a0b9e27f | 2330 | |
10f2d63a VZ |
2331 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2332 | if test "x$LINE" != x ; then | |
2333 | eval "DEFAULT_$LINE" | |
2334 | else | |
2335 | no_cache=1 | |
2336 | fi | |
2337 | ||
2338 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
a0b9e27f MB |
2339 | |
2340 | fi | |
10f2d63a VZ |
2341 | |
2342 | ||
2343 | eval "$ac_cv_use_odbc" | |
2344 | if test "$no_cache" != 1; then | |
2345 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2346 | fi | |
2347 | ||
2348 | if test "$wxUSE_ODBC" = yes; then | |
a0b9e27f | 2349 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2350 | else |
a0b9e27f | 2351 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2352 | fi |
a0b9e27f | 2353 | |
52127426 | 2354 | |
8284b0c5 MB |
2355 | |
2356 | ||
5005acfe VZ |
2357 | enablestring= |
2358 | echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6 | |
89e6bf6d | 2359 | echo "configure:2360: checking for --${enablestring:-enable}-shared" >&5 |
10f2d63a VZ |
2360 | no_cache=0 |
2361 | # Check whether --enable-shared or --disable-shared was given. | |
2362 | if test "${enable_shared+set}" = set; then | |
2363 | enableval="$enable_shared" | |
a0b9e27f | 2364 | |
10f2d63a VZ |
2365 | if test "$enableval" = yes; then |
2366 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2367 | else | |
2368 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2369 | fi | |
a0b9e27f | 2370 | |
10f2d63a | 2371 | else |
a0b9e27f | 2372 | |
10f2d63a VZ |
2373 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2374 | if test "x$LINE" != x ; then | |
2375 | eval "DEFAULT_$LINE" | |
2376 | else | |
2377 | no_cache=1 | |
2378 | fi | |
2379 | ||
2380 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
a0b9e27f MB |
2381 | |
2382 | fi | |
10f2d63a VZ |
2383 | |
2384 | ||
2385 | eval "$ac_cv_use_shared" | |
2386 | if test "$no_cache" != 1; then | |
2387 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2388 | fi | |
2389 | ||
2390 | if test "$wxUSE_SHARED" = yes; then | |
a0b9e27f | 2391 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2392 | else |
a0b9e27f | 2393 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2394 | fi |
a0b9e27f | 2395 | |
10f2d63a | 2396 | |
5005acfe VZ |
2397 | enablestring= |
2398 | echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6 | |
89e6bf6d | 2399 | echo "configure:2400: checking for --${enablestring:-enable}-soname" >&5 |
00cf1208 | 2400 | no_cache=0 |
3a922bb4 RL |
2401 | # Check whether --enable-soname or --disable-soname was given. |
2402 | if test "${enable_soname+set}" = set; then | |
2403 | enableval="$enable_soname" | |
a0b9e27f | 2404 | |
00cf1208 | 2405 | if test "$enableval" = yes; then |
3a922bb4 | 2406 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2407 | else |
3a922bb4 | 2408 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2409 | fi |
a0b9e27f | 2410 | |
00cf1208 | 2411 | else |
a0b9e27f | 2412 | |
3a922bb4 | 2413 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2414 | if test "x$LINE" != x ; then |
2415 | eval "DEFAULT_$LINE" | |
2416 | else | |
2417 | no_cache=1 | |
2418 | fi | |
2419 | ||
3a922bb4 | 2420 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
a0b9e27f MB |
2421 | |
2422 | fi | |
00cf1208 RR |
2423 | |
2424 | ||
3a922bb4 | 2425 | eval "$ac_cv_use_soname" |
00cf1208 | 2426 | if test "$no_cache" != 1; then |
3a922bb4 | 2427 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2428 | fi |
2429 | ||
3a922bb4 | 2430 | if test "$wxUSE_SONAME" = yes; then |
a0b9e27f | 2431 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2432 | else |
a0b9e27f | 2433 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2434 | fi |
a0b9e27f | 2435 | |
00cf1208 | 2436 | |
5005acfe VZ |
2437 | enablestring= |
2438 | echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6 | |
89e6bf6d | 2439 | echo "configure:2440: checking for --${enablestring:-enable}-optimise" >&5 |
10f2d63a VZ |
2440 | no_cache=0 |
2441 | # Check whether --enable-optimise or --disable-optimise was given. | |
2442 | if test "${enable_optimise+set}" = set; then | |
2443 | enableval="$enable_optimise" | |
a0b9e27f | 2444 | |
10f2d63a VZ |
2445 | if test "$enableval" = yes; then |
2446 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2447 | else | |
2448 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2449 | fi | |
a0b9e27f | 2450 | |
10f2d63a | 2451 | else |
a0b9e27f | 2452 | |
10f2d63a VZ |
2453 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2454 | if test "x$LINE" != x ; then | |
2455 | eval "DEFAULT_$LINE" | |
2456 | else | |
2457 | no_cache=1 | |
2458 | fi | |
2459 | ||
2460 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
a0b9e27f MB |
2461 | |
2462 | fi | |
10f2d63a VZ |
2463 | |
2464 | ||
2465 | eval "$ac_cv_use_optimise" | |
2466 | if test "$no_cache" != 1; then | |
2467 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2468 | fi | |
2469 | ||
2470 | if test "$wxUSE_OPTIMISE" = yes; then | |
a0b9e27f | 2471 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2472 | else |
a0b9e27f | 2473 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2474 | fi |
a0b9e27f | 2475 | |
10f2d63a | 2476 | |
5005acfe VZ |
2477 | enablestring= |
2478 | echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6 | |
89e6bf6d | 2479 | echo "configure:2480: checking for --${enablestring:-enable}-debug" >&5 |
10f2d63a VZ |
2480 | no_cache=0 |
2481 | # Check whether --enable-debug or --disable-debug was given. | |
2482 | if test "${enable_debug+set}" = set; then | |
2483 | enableval="$enable_debug" | |
a0b9e27f | 2484 | |
10f2d63a VZ |
2485 | if test "$enableval" = yes; then |
2486 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2487 | else | |
2488 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2489 | fi | |
a0b9e27f | 2490 | |
10f2d63a | 2491 | else |
a0b9e27f | 2492 | |
10f2d63a VZ |
2493 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2494 | if test "x$LINE" != x ; then | |
2495 | eval "DEFAULT_$LINE" | |
2496 | else | |
2497 | no_cache=1 | |
2498 | fi | |
2499 | ||
2500 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
a0b9e27f MB |
2501 | |
2502 | fi | |
10f2d63a VZ |
2503 | |
2504 | ||
2505 | eval "$ac_cv_use_debug" | |
2506 | if test "$no_cache" != 1; then | |
2507 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2508 | fi | |
2509 | ||
2510 | if test "$wxUSE_DEBUG" = yes; then | |
a0b9e27f | 2511 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2512 | else |
a0b9e27f | 2513 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2514 | fi |
a0b9e27f | 2515 | |
52127426 | 2516 | |
8284b0c5 | 2517 | |
5005acfe VZ |
2518 | enablestring= |
2519 | echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6 | |
89e6bf6d | 2520 | echo "configure:2521: checking for --${enablestring:-enable}-precomp" >&5 |
683dccda GD |
2521 | no_cache=0 |
2522 | # Check whether --enable-precomp or --disable-precomp was given. | |
2523 | if test "${enable_precomp+set}" = set; then | |
2524 | enableval="$enable_precomp" | |
a0b9e27f | 2525 | |
683dccda GD |
2526 | if test "$enableval" = yes; then |
2527 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2528 | else | |
2529 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2530 | fi | |
a0b9e27f | 2531 | |
683dccda | 2532 | else |
a0b9e27f | 2533 | |
683dccda GD |
2534 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2535 | if test "x$LINE" != x ; then | |
2536 | eval "DEFAULT_$LINE" | |
2537 | else | |
2538 | no_cache=1 | |
2539 | fi | |
2540 | ||
2541 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
a0b9e27f MB |
2542 | |
2543 | fi | |
683dccda GD |
2544 | |
2545 | ||
2546 | eval "$ac_cv_use_precomp" | |
2547 | if test "$no_cache" != 1; then | |
2548 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2549 | fi | |
2550 | ||
2551 | if test "$wxUSE_PRECOMP" = yes; then | |
a0b9e27f | 2552 | echo "$ac_t""yes" 1>&6 |
683dccda | 2553 | else |
a0b9e27f | 2554 | echo "$ac_t""no" 1>&6 |
683dccda | 2555 | fi |
a0b9e27f | 2556 | |
683dccda | 2557 | |
10f2d63a VZ |
2558 | if test "$wxUSE_DEBUG" = "yes"; then |
2559 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2560 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2561 | elif test "$wxUSE_DEBUG" = "no"; then | |
2562 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2563 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2564 | fi | |
2565 | ||
8284b0c5 | 2566 | |
5005acfe VZ |
2567 | enablestring= |
2568 | echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6 | |
89e6bf6d | 2569 | echo "configure:2570: checking for --${enablestring:-enable}-debug_flag" >&5 |
10f2d63a VZ |
2570 | no_cache=0 |
2571 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2572 | if test "${enable_debug_flag+set}" = set; then | |
2573 | enableval="$enable_debug_flag" | |
a0b9e27f | 2574 | |
10f2d63a VZ |
2575 | if test "$enableval" = yes; then |
2576 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2577 | else | |
2578 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2579 | fi | |
a0b9e27f | 2580 | |
10f2d63a | 2581 | else |
a0b9e27f | 2582 | |
10f2d63a VZ |
2583 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2584 | if test "x$LINE" != x ; then | |
2585 | eval "DEFAULT_$LINE" | |
2586 | else | |
2587 | no_cache=1 | |
2588 | fi | |
2589 | ||
2590 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
a0b9e27f MB |
2591 | |
2592 | fi | |
10f2d63a VZ |
2593 | |
2594 | ||
2595 | eval "$ac_cv_use_debug_flag" | |
2596 | if test "$no_cache" != 1; then | |
2597 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2598 | fi | |
2599 | ||
2600 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
a0b9e27f | 2601 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2602 | else |
a0b9e27f | 2603 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2604 | fi |
a0b9e27f | 2605 | |
10f2d63a | 2606 | |
5005acfe VZ |
2607 | enablestring= |
2608 | echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6 | |
89e6bf6d | 2609 | echo "configure:2610: checking for --${enablestring:-enable}-debug_info" >&5 |
10f2d63a VZ |
2610 | no_cache=0 |
2611 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2612 | if test "${enable_debug_info+set}" = set; then | |
2613 | enableval="$enable_debug_info" | |
a0b9e27f | 2614 | |
10f2d63a VZ |
2615 | if test "$enableval" = yes; then |
2616 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2617 | else | |
2618 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2619 | fi | |
a0b9e27f | 2620 | |
10f2d63a | 2621 | else |
a0b9e27f | 2622 | |
10f2d63a VZ |
2623 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2624 | if test "x$LINE" != x ; then | |
2625 | eval "DEFAULT_$LINE" | |
2626 | else | |
2627 | no_cache=1 | |
2628 | fi | |
2629 | ||
2630 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
a0b9e27f MB |
2631 | |
2632 | fi | |
10f2d63a VZ |
2633 | |
2634 | ||
2635 | eval "$ac_cv_use_debug_info" | |
2636 | if test "$no_cache" != 1; then | |
2637 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2638 | fi | |
2639 | ||
2640 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
a0b9e27f | 2641 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2642 | else |
a0b9e27f | 2643 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2644 | fi |
a0b9e27f | 2645 | |
10f2d63a | 2646 | |
5005acfe VZ |
2647 | enablestring= |
2648 | echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6 | |
89e6bf6d | 2649 | echo "configure:2650: checking for --${enablestring:-enable}-debug_gdb" >&5 |
10f2d63a VZ |
2650 | no_cache=0 |
2651 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2652 | if test "${enable_debug_gdb+set}" = set; then | |
2653 | enableval="$enable_debug_gdb" | |
a0b9e27f | 2654 | |
10f2d63a VZ |
2655 | if test "$enableval" = yes; then |
2656 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2657 | else | |
2658 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2659 | fi | |
a0b9e27f | 2660 | |
10f2d63a | 2661 | else |
a0b9e27f | 2662 | |
10f2d63a VZ |
2663 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2664 | if test "x$LINE" != x ; then | |
2665 | eval "DEFAULT_$LINE" | |
2666 | else | |
2667 | no_cache=1 | |
2668 | fi | |
2669 | ||
2670 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
a0b9e27f MB |
2671 | |
2672 | fi | |
10f2d63a VZ |
2673 | |
2674 | ||
2675 | eval "$ac_cv_use_debug_gdb" | |
2676 | if test "$no_cache" != 1; then | |
2677 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2678 | fi | |
2679 | ||
2680 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
a0b9e27f | 2681 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2682 | else |
a0b9e27f | 2683 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2684 | fi |
a0b9e27f | 2685 | |
10f2d63a | 2686 | |
5005acfe VZ |
2687 | enablestring= |
2688 | echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6 | |
89e6bf6d | 2689 | echo "configure:2690: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
10f2d63a VZ |
2690 | no_cache=0 |
2691 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2692 | if test "${enable_debug_cntxt+set}" = set; then | |
2693 | enableval="$enable_debug_cntxt" | |
a0b9e27f | 2694 | |
10f2d63a VZ |
2695 | if test "$enableval" = yes; then |
2696 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2697 | else | |
2698 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2699 | fi | |
a0b9e27f | 2700 | |
10f2d63a | 2701 | else |
a0b9e27f | 2702 | |
10f2d63a VZ |
2703 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2704 | if test "x$LINE" != x ; then | |
2705 | eval "DEFAULT_$LINE" | |
2706 | else | |
2707 | no_cache=1 | |
2708 | fi | |
2709 | ||
2710 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
a0b9e27f MB |
2711 | |
2712 | fi | |
10f2d63a VZ |
2713 | |
2714 | ||
2715 | eval "$ac_cv_use_debug_cntxt" | |
2716 | if test "$no_cache" != 1; then | |
2717 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2718 | fi | |
2719 | ||
2720 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
a0b9e27f | 2721 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2722 | else |
a0b9e27f | 2723 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2724 | fi |
a0b9e27f | 2725 | |
10f2d63a | 2726 | |
5005acfe VZ |
2727 | enablestring= |
2728 | echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6 | |
89e6bf6d | 2729 | echo "configure:2730: checking for --${enablestring:-enable}-mem_tracing" >&5 |
10f2d63a VZ |
2730 | no_cache=0 |
2731 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2732 | if test "${enable_mem_tracing+set}" = set; then | |
2733 | enableval="$enable_mem_tracing" | |
a0b9e27f | 2734 | |
10f2d63a VZ |
2735 | if test "$enableval" = yes; then |
2736 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2737 | else | |
2738 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2739 | fi | |
a0b9e27f | 2740 | |
10f2d63a | 2741 | else |
a0b9e27f | 2742 | |
10f2d63a VZ |
2743 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2744 | if test "x$LINE" != x ; then | |
2745 | eval "DEFAULT_$LINE" | |
2746 | else | |
2747 | no_cache=1 | |
2748 | fi | |
2749 | ||
2750 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
a0b9e27f MB |
2751 | |
2752 | fi | |
10f2d63a VZ |
2753 | |
2754 | ||
2755 | eval "$ac_cv_use_mem_tracing" | |
2756 | if test "$no_cache" != 1; then | |
2757 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2758 | fi | |
2759 | ||
2760 | if test "$wxUSE_MEM_TRACING" = yes; then | |
a0b9e27f | 2761 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2762 | else |
a0b9e27f | 2763 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2764 | fi |
a0b9e27f | 2765 | |
10f2d63a | 2766 | |
5005acfe VZ |
2767 | enablestring= |
2768 | echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6 | |
89e6bf6d | 2769 | echo "configure:2770: checking for --${enablestring:-enable}-profile" >&5 |
10f2d63a VZ |
2770 | no_cache=0 |
2771 | # Check whether --enable-profile or --disable-profile was given. | |
2772 | if test "${enable_profile+set}" = set; then | |
2773 | enableval="$enable_profile" | |
a0b9e27f | 2774 | |
10f2d63a VZ |
2775 | if test "$enableval" = yes; then |
2776 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2777 | else | |
2778 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2779 | fi | |
a0b9e27f | 2780 | |
10f2d63a | 2781 | else |
a0b9e27f | 2782 | |
10f2d63a VZ |
2783 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2784 | if test "x$LINE" != x ; then | |
2785 | eval "DEFAULT_$LINE" | |
2786 | else | |
2787 | no_cache=1 | |
2788 | fi | |
2789 | ||
2790 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
a0b9e27f MB |
2791 | |
2792 | fi | |
10f2d63a VZ |
2793 | |
2794 | ||
2795 | eval "$ac_cv_use_profile" | |
2796 | if test "$no_cache" != 1; then | |
2797 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2798 | fi | |
2799 | ||
2800 | if test "$wxUSE_PROFILE" = yes; then | |
a0b9e27f | 2801 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2802 | else |
a0b9e27f | 2803 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2804 | fi |
a0b9e27f | 2805 | |
10f2d63a | 2806 | |
5005acfe VZ |
2807 | enablestring= |
2808 | echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6 | |
89e6bf6d | 2809 | echo "configure:2810: checking for --${enablestring:-enable}-no_rtti" >&5 |
10f2d63a VZ |
2810 | no_cache=0 |
2811 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2812 | if test "${enable_no_rtti+set}" = set; then | |
2813 | enableval="$enable_no_rtti" | |
a0b9e27f | 2814 | |
10f2d63a VZ |
2815 | if test "$enableval" = yes; then |
2816 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2817 | else | |
2818 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2819 | fi | |
a0b9e27f | 2820 | |
10f2d63a | 2821 | else |
a0b9e27f | 2822 | |
10f2d63a VZ |
2823 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2824 | if test "x$LINE" != x ; then | |
2825 | eval "DEFAULT_$LINE" | |
2826 | else | |
2827 | no_cache=1 | |
2828 | fi | |
2829 | ||
2830 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
a0b9e27f MB |
2831 | |
2832 | fi | |
10f2d63a VZ |
2833 | |
2834 | ||
2835 | eval "$ac_cv_use_no_rtti" | |
2836 | if test "$no_cache" != 1; then | |
2837 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2838 | fi | |
2839 | ||
2840 | if test "$wxUSE_NO_RTTI" = yes; then | |
a0b9e27f | 2841 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2842 | else |
a0b9e27f | 2843 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2844 | fi |
a0b9e27f | 2845 | |
10f2d63a | 2846 | |
5005acfe VZ |
2847 | enablestring= |
2848 | echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6 | |
89e6bf6d | 2849 | echo "configure:2850: checking for --${enablestring:-enable}-no_exceptions" >&5 |
10f2d63a VZ |
2850 | no_cache=0 |
2851 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2852 | if test "${enable_no_exceptions+set}" = set; then | |
2853 | enableval="$enable_no_exceptions" | |
a0b9e27f | 2854 | |
10f2d63a VZ |
2855 | if test "$enableval" = yes; then |
2856 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2857 | else | |
2858 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2859 | fi | |
a0b9e27f | 2860 | |
10f2d63a | 2861 | else |
a0b9e27f | 2862 | |
10f2d63a VZ |
2863 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2864 | if test "x$LINE" != x ; then | |
2865 | eval "DEFAULT_$LINE" | |
2866 | else | |
2867 | no_cache=1 | |
2868 | fi | |
2869 | ||
2870 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
a0b9e27f MB |
2871 | |
2872 | fi | |
10f2d63a VZ |
2873 | |
2874 | ||
2875 | eval "$ac_cv_use_no_exceptions" | |
2876 | if test "$no_cache" != 1; then | |
2877 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2878 | fi | |
2879 | ||
2880 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
a0b9e27f | 2881 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2882 | else |
a0b9e27f | 2883 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2884 | fi |
a0b9e27f | 2885 | |
10f2d63a | 2886 | |
5005acfe VZ |
2887 | enablestring= |
2888 | echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6 | |
89e6bf6d | 2889 | echo "configure:2890: checking for --${enablestring:-enable}-permissive" >&5 |
10f2d63a VZ |
2890 | no_cache=0 |
2891 | # Check whether --enable-permissive or --disable-permissive was given. | |
2892 | if test "${enable_permissive+set}" = set; then | |
2893 | enableval="$enable_permissive" | |
a0b9e27f | 2894 | |
10f2d63a VZ |
2895 | if test "$enableval" = yes; then |
2896 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2897 | else | |
2898 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2899 | fi | |
a0b9e27f | 2900 | |
10f2d63a | 2901 | else |
a0b9e27f | 2902 | |
10f2d63a VZ |
2903 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2904 | if test "x$LINE" != x ; then | |
2905 | eval "DEFAULT_$LINE" | |
2906 | else | |
2907 | no_cache=1 | |
2908 | fi | |
2909 | ||
2910 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
a0b9e27f MB |
2911 | |
2912 | fi | |
10f2d63a VZ |
2913 | |
2914 | ||
2915 | eval "$ac_cv_use_permissive" | |
2916 | if test "$no_cache" != 1; then | |
2917 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2918 | fi | |
2919 | ||
2920 | if test "$wxUSE_PERMISSIVE" = yes; then | |
a0b9e27f | 2921 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2922 | else |
a0b9e27f | 2923 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2924 | fi |
a0b9e27f | 2925 | |
10f2d63a | 2926 | |
5005acfe VZ |
2927 | enablestring= |
2928 | echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6 | |
89e6bf6d | 2929 | echo "configure:2930: checking for --${enablestring:-enable}-no_deps" >&5 |
10f2d63a VZ |
2930 | no_cache=0 |
2931 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2932 | if test "${enable_no_deps+set}" = set; then | |
2933 | enableval="$enable_no_deps" | |
a0b9e27f | 2934 | |
10f2d63a VZ |
2935 | if test "$enableval" = yes; then |
2936 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2937 | else | |
2938 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2939 | fi | |
a0b9e27f | 2940 | |
10f2d63a | 2941 | else |
a0b9e27f | 2942 | |
10f2d63a VZ |
2943 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2944 | if test "x$LINE" != x ; then | |
2945 | eval "DEFAULT_$LINE" | |
2946 | else | |
2947 | no_cache=1 | |
2948 | fi | |
2949 | ||
2950 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
a0b9e27f MB |
2951 | |
2952 | fi | |
10f2d63a VZ |
2953 | |
2954 | ||
2955 | eval "$ac_cv_use_no_deps" | |
2956 | if test "$no_cache" != 1; then | |
2957 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2958 | fi | |
2959 | ||
2960 | if test "$wxUSE_NO_DEPS" = yes; then | |
a0b9e27f | 2961 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2962 | else |
a0b9e27f | 2963 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2964 | fi |
a0b9e27f | 2965 | |
52127426 | 2966 | |
8284b0c5 | 2967 | |
5005acfe VZ |
2968 | enablestring= |
2969 | echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6 | |
89e6bf6d | 2970 | echo "configure:2971: checking for --${enablestring:-enable}-compat20" >&5 |
54276ccf VZ |
2971 | no_cache=0 |
2972 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2973 | if test "${enable_compat20+set}" = set; then | |
2974 | enableval="$enable_compat20" | |
a0b9e27f | 2975 | |
54276ccf VZ |
2976 | if test "$enableval" = yes; then |
2977 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2978 | else | |
2979 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2980 | fi | |
a0b9e27f | 2981 | |
54276ccf | 2982 | else |
a0b9e27f | 2983 | |
54276ccf VZ |
2984 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
2985 | if test "x$LINE" != x ; then | |
2986 | eval "DEFAULT_$LINE" | |
2987 | else | |
2988 | no_cache=1 | |
2989 | fi | |
2990 | ||
2991 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
a0b9e27f MB |
2992 | |
2993 | fi | |
54276ccf VZ |
2994 | |
2995 | ||
2996 | eval "$ac_cv_use_compat20" | |
2997 | if test "$no_cache" != 1; then | |
2998 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2999 | fi | |
3000 | ||
3001 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
a0b9e27f | 3002 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3003 | else |
a0b9e27f | 3004 | echo "$ac_t""no" 1>&6 |
54276ccf | 3005 | fi |
a0b9e27f | 3006 | |
54276ccf | 3007 | |
5005acfe VZ |
3008 | enablestring=disable |
3009 | echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6 | |
89e6bf6d | 3010 | echo "configure:3011: checking for --${enablestring:-enable}-compat22" >&5 |
54276ccf VZ |
3011 | no_cache=0 |
3012 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3013 | if test "${enable_compat22+set}" = set; then | |
3014 | enableval="$enable_compat22" | |
a0b9e27f | 3015 | |
54276ccf VZ |
3016 | if test "$enableval" = yes; then |
3017 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3018 | else | |
3019 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3020 | fi | |
a0b9e27f | 3021 | |
54276ccf | 3022 | else |
a0b9e27f | 3023 | |
54276ccf VZ |
3024 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3025 | if test "x$LINE" != x ; then | |
3026 | eval "DEFAULT_$LINE" | |
3027 | else | |
3028 | no_cache=1 | |
3029 | fi | |
3030 | ||
3031 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
a0b9e27f MB |
3032 | |
3033 | fi | |
54276ccf VZ |
3034 | |
3035 | ||
3036 | eval "$ac_cv_use_compat22" | |
3037 | if test "$no_cache" != 1; then | |
3038 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3039 | fi | |
3040 | ||
3041 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
a0b9e27f | 3042 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3043 | else |
a0b9e27f | 3044 | echo "$ac_t""no" 1>&6 |
54276ccf | 3045 | fi |
a0b9e27f | 3046 | |
54276ccf | 3047 | |
3bd8fb5f RD |
3048 | # Check whether --enable-rpath or --disable-rpath was given. |
3049 | if test "${enable_rpath+set}" = set; then | |
3050 | enableval="$enable_rpath" | |
3051 | wxRPATH_DIR="$enableval" | |
a0b9e27f MB |
3052 | fi |
3053 | ||
3bd8fb5f RD |
3054 | |
3055 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3056 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3057 | fi | |
3058 | ||
8284b0c5 MB |
3059 | |
3060 | ||
3061 | ||
5005acfe VZ |
3062 | enablestring= |
3063 | echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6 | |
89e6bf6d | 3064 | echo "configure:3065: checking for --${enablestring:-enable}-intl" >&5 |
10f2d63a VZ |
3065 | no_cache=0 |
3066 | # Check whether --enable-intl or --disable-intl was given. | |
3067 | if test "${enable_intl+set}" = set; then | |
3068 | enableval="$enable_intl" | |
a0b9e27f | 3069 | |
10f2d63a VZ |
3070 | if test "$enableval" = yes; then |
3071 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3072 | else | |
3073 | ac_cv_use_intl='wxUSE_INTL=no' | |
3074 | fi | |
a0b9e27f | 3075 | |
10f2d63a | 3076 | else |
a0b9e27f | 3077 | |
10f2d63a VZ |
3078 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3079 | if test "x$LINE" != x ; then | |
3080 | eval "DEFAULT_$LINE" | |
3081 | else | |
3082 | no_cache=1 | |
3083 | fi | |
3084 | ||
3085 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
a0b9e27f MB |
3086 | |
3087 | fi | |
10f2d63a VZ |
3088 | |
3089 | ||
3090 | eval "$ac_cv_use_intl" | |
3091 | if test "$no_cache" != 1; then | |
3092 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3093 | fi | |
3094 | ||
3095 | if test "$wxUSE_INTL" = yes; then | |
a0b9e27f | 3096 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3097 | else |
a0b9e27f | 3098 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3099 | fi |
a0b9e27f | 3100 | |
10f2d63a | 3101 | |
5005acfe VZ |
3102 | enablestring= |
3103 | echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6 | |
89e6bf6d | 3104 | echo "configure:3105: checking for --${enablestring:-enable}-config" >&5 |
10f2d63a VZ |
3105 | no_cache=0 |
3106 | # Check whether --enable-config or --disable-config was given. | |
3107 | if test "${enable_config+set}" = set; then | |
3108 | enableval="$enable_config" | |
a0b9e27f | 3109 | |
10f2d63a VZ |
3110 | if test "$enableval" = yes; then |
3111 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3112 | else | |
3113 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3114 | fi | |
a0b9e27f | 3115 | |
10f2d63a | 3116 | else |
a0b9e27f | 3117 | |
10f2d63a VZ |
3118 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3119 | if test "x$LINE" != x ; then | |
3120 | eval "DEFAULT_$LINE" | |
3121 | else | |
3122 | no_cache=1 | |
3123 | fi | |
3124 | ||
3125 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
a0b9e27f MB |
3126 | |
3127 | fi | |
10f2d63a VZ |
3128 | |
3129 | ||
3130 | eval "$ac_cv_use_config" | |
3131 | if test "$no_cache" != 1; then | |
3132 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3133 | fi | |
3134 | ||
3135 | if test "$wxUSE_CONFIG" = yes; then | |
a0b9e27f | 3136 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3137 | else |
a0b9e27f | 3138 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3139 | fi |
a0b9e27f | 3140 | |
52127426 | 3141 | |
8284b0c5 | 3142 | |
5005acfe VZ |
3143 | enablestring= |
3144 | echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6 | |
89e6bf6d | 3145 | echo "configure:3146: checking for --${enablestring:-enable}-protocols" >&5 |
a1622950 VZ |
3146 | no_cache=0 |
3147 | # Check whether --enable-protocols or --disable-protocols was given. | |
3148 | if test "${enable_protocols+set}" = set; then | |
3149 | enableval="$enable_protocols" | |
a0b9e27f | 3150 | |
a1622950 VZ |
3151 | if test "$enableval" = yes; then |
3152 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3153 | else | |
3154 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3155 | fi | |
a0b9e27f | 3156 | |
a1622950 | 3157 | else |
a0b9e27f | 3158 | |
a1622950 VZ |
3159 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3160 | if test "x$LINE" != x ; then | |
3161 | eval "DEFAULT_$LINE" | |
3162 | else | |
3163 | no_cache=1 | |
3164 | fi | |
3165 | ||
3166 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
3167 | |
3168 | fi | |
a1622950 VZ |
3169 | |
3170 | ||
3171 | eval "$ac_cv_use_protocols" | |
3172 | if test "$no_cache" != 1; then | |
3173 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3174 | fi | |
3175 | ||
3176 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 3177 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3178 | else |
a0b9e27f | 3179 | echo "$ac_t""no" 1>&6 |
a1622950 | 3180 | fi |
a0b9e27f | 3181 | |
a1622950 | 3182 | |
5005acfe VZ |
3183 | enablestring= |
3184 | echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6 | |
89e6bf6d | 3185 | echo "configure:3186: checking for --${enablestring:-enable}-ftp" >&5 |
a1622950 VZ |
3186 | no_cache=0 |
3187 | # Check whether --enable-ftp or --disable-ftp was given. | |
3188 | if test "${enable_ftp+set}" = set; then | |
3189 | enableval="$enable_ftp" | |
a0b9e27f | 3190 | |
a1622950 VZ |
3191 | if test "$enableval" = yes; then |
3192 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3193 | else | |
3194 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3195 | fi | |
a0b9e27f | 3196 | |
a1622950 | 3197 | else |
a0b9e27f | 3198 | |
a1622950 VZ |
3199 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3200 | if test "x$LINE" != x ; then | |
3201 | eval "DEFAULT_$LINE" | |
3202 | else | |
3203 | no_cache=1 | |
3204 | fi | |
3205 | ||
3206 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
3207 | |
3208 | fi | |
a1622950 VZ |
3209 | |
3210 | ||
3211 | eval "$ac_cv_use_ftp" | |
3212 | if test "$no_cache" != 1; then | |
3213 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3214 | fi | |
3215 | ||
3216 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 3217 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3218 | else |
a0b9e27f | 3219 | echo "$ac_t""no" 1>&6 |
a1622950 | 3220 | fi |
a0b9e27f | 3221 | |
a1622950 | 3222 | |
5005acfe VZ |
3223 | enablestring= |
3224 | echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6 | |
89e6bf6d | 3225 | echo "configure:3226: checking for --${enablestring:-enable}-http" >&5 |
a1622950 VZ |
3226 | no_cache=0 |
3227 | # Check whether --enable-http or --disable-http was given. | |
3228 | if test "${enable_http+set}" = set; then | |
3229 | enableval="$enable_http" | |
a0b9e27f | 3230 | |
a1622950 VZ |
3231 | if test "$enableval" = yes; then |
3232 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3233 | else | |
3234 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3235 | fi | |
a0b9e27f | 3236 | |
a1622950 | 3237 | else |
a0b9e27f | 3238 | |
a1622950 VZ |
3239 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3240 | if test "x$LINE" != x ; then | |
3241 | eval "DEFAULT_$LINE" | |
3242 | else | |
3243 | no_cache=1 | |
3244 | fi | |
3245 | ||
3246 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
3247 | |
3248 | fi | |
a1622950 VZ |
3249 | |
3250 | ||
3251 | eval "$ac_cv_use_http" | |
3252 | if test "$no_cache" != 1; then | |
3253 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3254 | fi | |
3255 | ||
3256 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 3257 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3258 | else |
a0b9e27f | 3259 | echo "$ac_t""no" 1>&6 |
a1622950 | 3260 | fi |
a0b9e27f | 3261 | |
a1622950 | 3262 | |
5005acfe VZ |
3263 | enablestring= |
3264 | echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6 | |
89e6bf6d | 3265 | echo "configure:3266: checking for --${enablestring:-enable}-fileproto" >&5 |
a1622950 VZ |
3266 | no_cache=0 |
3267 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3268 | if test "${enable_fileproto+set}" = set; then | |
3269 | enableval="$enable_fileproto" | |
a0b9e27f | 3270 | |
a1622950 VZ |
3271 | if test "$enableval" = yes; then |
3272 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3273 | else | |
3274 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3275 | fi | |
a0b9e27f | 3276 | |
a1622950 | 3277 | else |
a0b9e27f | 3278 | |
a1622950 VZ |
3279 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3280 | if test "x$LINE" != x ; then | |
3281 | eval "DEFAULT_$LINE" | |
3282 | else | |
3283 | no_cache=1 | |
3284 | fi | |
3285 | ||
3286 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
3287 | |
3288 | fi | |
a1622950 VZ |
3289 | |
3290 | ||
3291 | eval "$ac_cv_use_fileproto" | |
3292 | if test "$no_cache" != 1; then | |
3293 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3294 | fi | |
3295 | ||
3296 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 3297 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3298 | else |
a0b9e27f | 3299 | echo "$ac_t""no" 1>&6 |
a1622950 | 3300 | fi |
a0b9e27f | 3301 | |
a1622950 | 3302 | |
5005acfe VZ |
3303 | enablestring= |
3304 | echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6 | |
89e6bf6d | 3305 | echo "configure:3306: checking for --${enablestring:-enable}-sockets" >&5 |
10f2d63a VZ |
3306 | no_cache=0 |
3307 | # Check whether --enable-sockets or --disable-sockets was given. | |
3308 | if test "${enable_sockets+set}" = set; then | |
3309 | enableval="$enable_sockets" | |
a0b9e27f | 3310 | |
10f2d63a VZ |
3311 | if test "$enableval" = yes; then |
3312 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3313 | else | |
3314 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3315 | fi | |
a0b9e27f | 3316 | |
10f2d63a | 3317 | else |
a0b9e27f | 3318 | |
10f2d63a VZ |
3319 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3320 | if test "x$LINE" != x ; then | |
3321 | eval "DEFAULT_$LINE" | |
3322 | else | |
3323 | no_cache=1 | |
3324 | fi | |
3325 | ||
3326 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
a0b9e27f MB |
3327 | |
3328 | fi | |
10f2d63a VZ |
3329 | |
3330 | ||
3331 | eval "$ac_cv_use_sockets" | |
3332 | if test "$no_cache" != 1; then | |
3333 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3334 | fi | |
3335 | ||
3336 | if test "$wxUSE_SOCKETS" = yes; then | |
a0b9e27f | 3337 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3338 | else |
a0b9e27f | 3339 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3340 | fi |
a0b9e27f | 3341 | |
8284b0c5 | 3342 | |
5005acfe VZ |
3343 | enablestring= |
3344 | echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6 | |
89e6bf6d | 3345 | echo "configure:3346: checking for --${enablestring:-enable}-ole" >&5 |
3bce6687 JS |
3346 | no_cache=0 |
3347 | # Check whether --enable-ole or --disable-ole was given. | |
3348 | if test "${enable_ole+set}" = set; then | |
3349 | enableval="$enable_ole" | |
3350 | ||
3351 | if test "$enableval" = yes; then | |
3352 | ac_cv_use_ole='wxUSE_OLE=yes' | |
3353 | else | |
3354 | ac_cv_use_ole='wxUSE_OLE=no' | |
3355 | fi | |
3356 | ||
3357 | else | |
3358 | ||
3359 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
3360 | if test "x$LINE" != x ; then | |
3361 | eval "DEFAULT_$LINE" | |
3362 | else | |
3363 | no_cache=1 | |
3364 | fi | |
3365 | ||
3366 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3367 | ||
3368 | fi | |
3369 | ||
3370 | ||
3371 | eval "$ac_cv_use_ole" | |
3372 | if test "$no_cache" != 1; then | |
3373 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
3374 | fi | |
3375 | ||
3376 | if test "$wxUSE_OLE" = yes; then | |
3377 | echo "$ac_t""yes" 1>&6 | |
3378 | else | |
3379 | echo "$ac_t""no" 1>&6 | |
3380 | fi | |
3381 | ||
3382 | ||
5005acfe VZ |
3383 | enablestring= |
3384 | echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6 | |
89e6bf6d | 3385 | echo "configure:3386: checking for --${enablestring:-enable}-dataobj" >&5 |
3bce6687 JS |
3386 | no_cache=0 |
3387 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
3388 | if test "${enable_dataobj+set}" = set; then | |
3389 | enableval="$enable_dataobj" | |
3390 | ||
3391 | if test "$enableval" = yes; then | |
3392 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
3393 | else | |
3394 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
3395 | fi | |
3396 | ||
3397 | else | |
3398 | ||
3399 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
3400 | if test "x$LINE" != x ; then | |
3401 | eval "DEFAULT_$LINE" | |
3402 | else | |
3403 | no_cache=1 | |
3404 | fi | |
3405 | ||
3406 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3407 | ||
3408 | fi | |
3409 | ||
3410 | ||
3411 | eval "$ac_cv_use_dataobj" | |
3412 | if test "$no_cache" != 1; then | |
3413 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
3414 | fi | |
3415 | ||
3416 | if test "$wxUSE_DATAOBJ" = yes; then | |
3417 | echo "$ac_t""yes" 1>&6 | |
3418 | else | |
3419 | echo "$ac_t""no" 1>&6 | |
3420 | fi | |
3421 | ||
3422 | ||
52127426 | 3423 | |
5005acfe VZ |
3424 | enablestring= |
3425 | echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6 | |
89e6bf6d | 3426 | echo "configure:3427: checking for --${enablestring:-enable}-ipc" >&5 |
10f2d63a | 3427 | no_cache=0 |
eb4efbdc VZ |
3428 | # Check whether --enable-ipc or --disable-ipc was given. |
3429 | if test "${enable_ipc+set}" = set; then | |
3430 | enableval="$enable_ipc" | |
a0b9e27f | 3431 | |
10f2d63a | 3432 | if test "$enableval" = yes; then |
eb4efbdc | 3433 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3434 | else |
eb4efbdc | 3435 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3436 | fi |
a0b9e27f | 3437 | |
10f2d63a | 3438 | else |
a0b9e27f | 3439 | |
eb4efbdc | 3440 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3441 | if test "x$LINE" != x ; then |
3442 | eval "DEFAULT_$LINE" | |
3443 | else | |
3444 | no_cache=1 | |
3445 | fi | |
3446 | ||
eb4efbdc | 3447 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
a0b9e27f MB |
3448 | |
3449 | fi | |
10f2d63a VZ |
3450 | |
3451 | ||
eb4efbdc | 3452 | eval "$ac_cv_use_ipc" |
10f2d63a | 3453 | if test "$no_cache" != 1; then |
eb4efbdc | 3454 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3455 | fi |
3456 | ||
eb4efbdc | 3457 | if test "$wxUSE_IPC" = yes; then |
a0b9e27f | 3458 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3459 | else |
a0b9e27f | 3460 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3461 | fi |
a0b9e27f | 3462 | |
52127426 | 3463 | |
8284b0c5 | 3464 | |
5005acfe VZ |
3465 | enablestring= |
3466 | echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6 | |
89e6bf6d | 3467 | echo "configure:3468: checking for --${enablestring:-enable}-cmdline" >&5 |
1e6feb95 VZ |
3468 | no_cache=0 |
3469 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3470 | if test "${enable_cmdline+set}" = set; then | |
3471 | enableval="$enable_cmdline" | |
a0b9e27f | 3472 | |
1e6feb95 VZ |
3473 | if test "$enableval" = yes; then |
3474 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3475 | else | |
3476 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3477 | fi | |
a0b9e27f | 3478 | |
1e6feb95 | 3479 | else |
a0b9e27f | 3480 | |
1e6feb95 VZ |
3481 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3482 | if test "x$LINE" != x ; then | |
3483 | eval "DEFAULT_$LINE" | |
3484 | else | |
3485 | no_cache=1 | |
3486 | fi | |
3487 | ||
3488 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
a0b9e27f MB |
3489 | |
3490 | fi | |
1e6feb95 VZ |
3491 | |
3492 | ||
3493 | eval "$ac_cv_use_cmdline" | |
3494 | if test "$no_cache" != 1; then | |
3495 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3496 | fi | |
3497 | ||
3498 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
a0b9e27f | 3499 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3500 | else |
a0b9e27f | 3501 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3502 | fi |
a0b9e27f | 3503 | |
1e6feb95 | 3504 | |
5005acfe VZ |
3505 | enablestring= |
3506 | echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6 | |
89e6bf6d | 3507 | echo "configure:3508: checking for --${enablestring:-enable}-datetime" >&5 |
1e6feb95 VZ |
3508 | no_cache=0 |
3509 | # Check whether --enable-datetime or --disable-datetime was given. | |
3510 | if test "${enable_datetime+set}" = set; then | |
3511 | enableval="$enable_datetime" | |
a0b9e27f | 3512 | |
1e6feb95 VZ |
3513 | if test "$enableval" = yes; then |
3514 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3515 | else | |
3516 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3517 | fi | |
a0b9e27f | 3518 | |
1e6feb95 | 3519 | else |
a0b9e27f | 3520 | |
1e6feb95 VZ |
3521 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3522 | if test "x$LINE" != x ; then | |
3523 | eval "DEFAULT_$LINE" | |
3524 | else | |
3525 | no_cache=1 | |
3526 | fi | |
3527 | ||
3528 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
a0b9e27f MB |
3529 | |
3530 | fi | |
1e6feb95 VZ |
3531 | |
3532 | ||
3533 | eval "$ac_cv_use_datetime" | |
3534 | if test "$no_cache" != 1; then | |
3535 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3536 | fi | |
3537 | ||
3538 | if test "$wxUSE_DATETIME" = yes; then | |
a0b9e27f | 3539 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3540 | else |
a0b9e27f | 3541 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3542 | fi |
a0b9e27f | 3543 | |
1e6feb95 | 3544 | |
5005acfe VZ |
3545 | enablestring= |
3546 | echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6 | |
89e6bf6d | 3547 | echo "configure:3548: checking for --${enablestring:-enable}-timedate" >&5 |
1e6feb95 VZ |
3548 | no_cache=0 |
3549 | # Check whether --enable-timedate or --disable-timedate was given. | |
3550 | if test "${enable_timedate+set}" = set; then | |
3551 | enableval="$enable_timedate" | |
a0b9e27f | 3552 | |
1e6feb95 VZ |
3553 | if test "$enableval" = yes; then |
3554 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3555 | else | |
3556 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3557 | fi | |
a0b9e27f | 3558 | |
1e6feb95 | 3559 | else |
a0b9e27f | 3560 | |
1e6feb95 VZ |
3561 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` |
3562 | if test "x$LINE" != x ; then | |
3563 | eval "DEFAULT_$LINE" | |
3564 | else | |
3565 | no_cache=1 | |
3566 | fi | |
3567 | ||
3568 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
a0b9e27f MB |
3569 | |
3570 | fi | |
1e6feb95 VZ |
3571 | |
3572 | ||
3573 | eval "$ac_cv_use_timedate" | |
3574 | if test "$no_cache" != 1; then | |
3575 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3576 | fi | |
3577 | ||
3578 | if test "$wxUSE_TIMEDATE" = yes; then | |
a0b9e27f | 3579 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3580 | else |
a0b9e27f | 3581 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3582 | fi |
a0b9e27f | 3583 | |
1e6feb95 | 3584 | |
5005acfe VZ |
3585 | enablestring= |
3586 | echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6 | |
89e6bf6d | 3587 | echo "configure:3588: checking for --${enablestring:-enable}-stopwatch" >&5 |
1e6feb95 VZ |
3588 | no_cache=0 |
3589 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3590 | if test "${enable_stopwatch+set}" = set; then | |
3591 | enableval="$enable_stopwatch" | |
a0b9e27f | 3592 | |
1e6feb95 VZ |
3593 | if test "$enableval" = yes; then |
3594 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3595 | else | |
3596 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3597 | fi | |
a0b9e27f | 3598 | |
1e6feb95 | 3599 | else |
a0b9e27f | 3600 | |
1e6feb95 VZ |
3601 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3602 | if test "x$LINE" != x ; then | |
3603 | eval "DEFAULT_$LINE" | |
3604 | else | |
3605 | no_cache=1 | |
3606 | fi | |
3607 | ||
3608 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
a0b9e27f MB |
3609 | |
3610 | fi | |
1e6feb95 VZ |
3611 | |
3612 | ||
3613 | eval "$ac_cv_use_stopwatch" | |
3614 | if test "$no_cache" != 1; then | |
3615 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3616 | fi | |
3617 | ||
3618 | if test "$wxUSE_STOPWATCH" = yes; then | |
a0b9e27f | 3619 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3620 | else |
a0b9e27f | 3621 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3622 | fi |
a0b9e27f | 3623 | |
1e6feb95 | 3624 | |
5005acfe VZ |
3625 | enablestring= |
3626 | echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6 | |
89e6bf6d | 3627 | echo "configure:3628: checking for --${enablestring:-enable}-dialupman" >&5 |
10f2d63a | 3628 | no_cache=0 |
eb4efbdc VZ |
3629 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3630 | if test "${enable_dialupman+set}" = set; then | |
3631 | enableval="$enable_dialupman" | |
a0b9e27f | 3632 | |
10f2d63a | 3633 | if test "$enableval" = yes; then |
eb4efbdc | 3634 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3635 | else |
eb4efbdc | 3636 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3637 | fi |
a0b9e27f | 3638 | |
10f2d63a | 3639 | else |
a0b9e27f | 3640 | |
eb4efbdc | 3641 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3642 | if test "x$LINE" != x ; then |
3643 | eval "DEFAULT_$LINE" | |
3644 | else | |
3645 | no_cache=1 | |
3646 | fi | |
3647 | ||
eb4efbdc | 3648 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
a0b9e27f MB |
3649 | |
3650 | fi | |
10f2d63a VZ |
3651 | |
3652 | ||
eb4efbdc | 3653 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3654 | if test "$no_cache" != 1; then |
eb4efbdc | 3655 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3656 | fi |
3657 | ||
eb4efbdc | 3658 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
a0b9e27f | 3659 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3660 | else |
a0b9e27f | 3661 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3662 | fi |
a0b9e27f | 3663 | |
10f2d63a | 3664 | |
5005acfe VZ |
3665 | enablestring= |
3666 | echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6 | |
89e6bf6d | 3667 | echo "configure:3668: checking for --${enablestring:-enable}-apple_ieee" >&5 |
10f2d63a VZ |
3668 | no_cache=0 |
3669 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3670 | if test "${enable_apple_ieee+set}" = set; then | |
3671 | enableval="$enable_apple_ieee" | |
a0b9e27f | 3672 | |
10f2d63a VZ |
3673 | if test "$enableval" = yes; then |
3674 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3675 | else | |
3676 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3677 | fi | |
a0b9e27f | 3678 | |
10f2d63a | 3679 | else |
a0b9e27f | 3680 | |
10f2d63a VZ |
3681 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3682 | if test "x$LINE" != x ; then | |
3683 | eval "DEFAULT_$LINE" | |
3684 | else | |
3685 | no_cache=1 | |
3686 | fi | |
3687 | ||
3688 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
a0b9e27f MB |
3689 | |
3690 | fi | |
10f2d63a VZ |
3691 | |
3692 | ||
3693 | eval "$ac_cv_use_apple_ieee" | |
3694 | if test "$no_cache" != 1; then | |
3695 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3696 | fi | |
3697 | ||
3698 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
a0b9e27f | 3699 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3700 | else |
a0b9e27f | 3701 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3702 | fi |
a0b9e27f | 3703 | |
10f2d63a | 3704 | |
5005acfe VZ |
3705 | enablestring= |
3706 | echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6 | |
89e6bf6d | 3707 | echo "configure:3708: checking for --${enablestring:-enable}-timer" >&5 |
10f2d63a | 3708 | no_cache=0 |
1e6feb95 VZ |
3709 | # Check whether --enable-timer or --disable-timer was given. |
3710 | if test "${enable_timer+set}" = set; then | |
3711 | enableval="$enable_timer" | |
a0b9e27f | 3712 | |
10f2d63a | 3713 | if test "$enableval" = yes; then |
1e6feb95 | 3714 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3715 | else |
1e6feb95 | 3716 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3717 | fi |
a0b9e27f | 3718 | |
10f2d63a | 3719 | else |
a0b9e27f | 3720 | |
1e6feb95 | 3721 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3722 | if test "x$LINE" != x ; then |
3723 | eval "DEFAULT_$LINE" | |
3724 | else | |
3725 | no_cache=1 | |
3726 | fi | |
3727 | ||
1e6feb95 | 3728 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
a0b9e27f MB |
3729 | |
3730 | fi | |
10f2d63a VZ |
3731 | |
3732 | ||
1e6feb95 | 3733 | eval "$ac_cv_use_timer" |
10f2d63a | 3734 | if test "$no_cache" != 1; then |
1e6feb95 | 3735 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3736 | fi |
3737 | ||
1e6feb95 | 3738 | if test "$wxUSE_TIMER" = yes; then |
a0b9e27f | 3739 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3740 | else |
a0b9e27f | 3741 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3742 | fi |
a0b9e27f | 3743 | |
10f2d63a | 3744 | |
5005acfe VZ |
3745 | enablestring= |
3746 | echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6 | |
89e6bf6d | 3747 | echo "configure:3748: checking for --${enablestring:-enable}-wave" >&5 |
10f2d63a VZ |
3748 | no_cache=0 |
3749 | # Check whether --enable-wave or --disable-wave was given. | |
3750 | if test "${enable_wave+set}" = set; then | |
3751 | enableval="$enable_wave" | |
a0b9e27f | 3752 | |
10f2d63a VZ |
3753 | if test "$enableval" = yes; then |
3754 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3755 | else | |
3756 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3757 | fi | |
a0b9e27f | 3758 | |
10f2d63a | 3759 | else |
a0b9e27f | 3760 | |
10f2d63a VZ |
3761 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3762 | if test "x$LINE" != x ; then | |
3763 | eval "DEFAULT_$LINE" | |
3764 | else | |
3765 | no_cache=1 | |
3766 | fi | |
3767 | ||
3768 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
a0b9e27f MB |
3769 | |
3770 | fi | |
10f2d63a VZ |
3771 | |
3772 | ||
3773 | eval "$ac_cv_use_wave" | |
3774 | if test "$no_cache" != 1; then | |
3775 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3776 | fi | |
3777 | ||
3778 | if test "$wxUSE_WAVE" = yes; then | |
a0b9e27f | 3779 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3780 | else |
a0b9e27f | 3781 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3782 | fi |
a0b9e27f | 3783 | |
10f2d63a | 3784 | |
5005acfe VZ |
3785 | enablestring= |
3786 | echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6 | |
89e6bf6d | 3787 | echo "configure:3788: checking for --${enablestring:-enable}-fraction" >&5 |
10f2d63a VZ |
3788 | no_cache=0 |
3789 | # Check whether --enable-fraction or --disable-fraction was given. | |
3790 | if test "${enable_fraction+set}" = set; then | |
3791 | enableval="$enable_fraction" | |
a0b9e27f | 3792 | |
10f2d63a VZ |
3793 | if test "$enableval" = yes; then |
3794 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3795 | else | |
3796 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3797 | fi | |
a0b9e27f | 3798 | |
10f2d63a | 3799 | else |
a0b9e27f | 3800 | |
10f2d63a VZ |
3801 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3802 | if test "x$LINE" != x ; then | |
3803 | eval "DEFAULT_$LINE" | |
3804 | else | |
3805 | no_cache=1 | |
3806 | fi | |
3807 | ||
3808 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
a0b9e27f MB |
3809 | |
3810 | fi | |
10f2d63a VZ |
3811 | |
3812 | ||
3813 | eval "$ac_cv_use_fraction" | |
3814 | if test "$no_cache" != 1; then | |
3815 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3816 | fi | |
3817 | ||
3818 | if test "$wxUSE_FRACTION" = yes; then | |
a0b9e27f | 3819 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3820 | else |
a0b9e27f | 3821 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3822 | fi |
a0b9e27f | 3823 | |
10f2d63a | 3824 | |
5005acfe VZ |
3825 | enablestring= |
3826 | echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6 | |
89e6bf6d | 3827 | echo "configure:3828: checking for --${enablestring:-enable}-dynlib" >&5 |
10f2d63a VZ |
3828 | no_cache=0 |
3829 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3830 | if test "${enable_dynlib+set}" = set; then | |
3831 | enableval="$enable_dynlib" | |
a0b9e27f | 3832 | |
10f2d63a VZ |
3833 | if test "$enableval" = yes; then |
3834 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3835 | else | |
3836 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3837 | fi | |
a0b9e27f | 3838 | |
10f2d63a | 3839 | else |
a0b9e27f | 3840 | |
10f2d63a VZ |
3841 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3842 | if test "x$LINE" != x ; then | |
3843 | eval "DEFAULT_$LINE" | |
3844 | else | |
3845 | no_cache=1 | |
3846 | fi | |
3847 | ||
3848 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
a0b9e27f MB |
3849 | |
3850 | fi | |
10f2d63a VZ |
3851 | |
3852 | ||
3853 | eval "$ac_cv_use_dynlib" | |
3854 | if test "$no_cache" != 1; then | |
3855 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3856 | fi | |
3857 | ||
3858 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
a0b9e27f | 3859 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3860 | else |
a0b9e27f | 3861 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3862 | fi |
a0b9e27f | 3863 | |
10f2d63a | 3864 | |
5005acfe VZ |
3865 | enablestring= |
3866 | echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6 | |
89e6bf6d | 3867 | echo "configure:3868: checking for --${enablestring:-enable}-dynamicloader" >&5 |
0b9ab0bd RL |
3868 | no_cache=0 |
3869 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3870 | if test "${enable_dynamicloader+set}" = set; then | |
3871 | enableval="$enable_dynamicloader" | |
a0b9e27f | 3872 | |
0b9ab0bd RL |
3873 | if test "$enableval" = yes; then |
3874 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3875 | else | |
3876 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3877 | fi | |
a0b9e27f | 3878 | |
0b9ab0bd | 3879 | else |
a0b9e27f | 3880 | |
0b9ab0bd RL |
3881 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3882 | if test "x$LINE" != x ; then | |
3883 | eval "DEFAULT_$LINE" | |
3884 | else | |
3885 | no_cache=1 | |
3886 | fi | |
3887 | ||
3888 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
a0b9e27f MB |
3889 | |
3890 | fi | |
0b9ab0bd RL |
3891 | |
3892 | ||
3893 | eval "$ac_cv_use_dynamicloader" | |
3894 | if test "$no_cache" != 1; then | |
3895 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3896 | fi | |
3897 | ||
3898 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
a0b9e27f | 3899 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3900 | else |
a0b9e27f | 3901 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3902 | fi |
a0b9e27f | 3903 | |
0b9ab0bd | 3904 | |
5005acfe VZ |
3905 | enablestring= |
3906 | echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6 | |
89e6bf6d | 3907 | echo "configure:3908: checking for --${enablestring:-enable}-longlong" >&5 |
10f2d63a VZ |
3908 | no_cache=0 |
3909 | # Check whether --enable-longlong or --disable-longlong was given. | |
3910 | if test "${enable_longlong+set}" = set; then | |
3911 | enableval="$enable_longlong" | |
a0b9e27f | 3912 | |
10f2d63a VZ |
3913 | if test "$enableval" = yes; then |
3914 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3915 | else | |
3916 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3917 | fi | |
a0b9e27f | 3918 | |
10f2d63a | 3919 | else |
a0b9e27f | 3920 | |
10f2d63a VZ |
3921 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3922 | if test "x$LINE" != x ; then | |
3923 | eval "DEFAULT_$LINE" | |
3924 | else | |
3925 | no_cache=1 | |
3926 | fi | |
3927 | ||
3928 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
a0b9e27f MB |
3929 | |
3930 | fi | |
10f2d63a VZ |
3931 | |
3932 | ||
3933 | eval "$ac_cv_use_longlong" | |
3934 | if test "$no_cache" != 1; then | |
3935 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3936 | fi | |
3937 | ||
3938 | if test "$wxUSE_LONGLONG" = yes; then | |
a0b9e27f | 3939 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3940 | else |
a0b9e27f | 3941 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3942 | fi |
a0b9e27f | 3943 | |
10f2d63a | 3944 | |
5005acfe VZ |
3945 | enablestring= |
3946 | echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6 | |
89e6bf6d | 3947 | echo "configure:3948: checking for --${enablestring:-enable}-geometry" >&5 |
e8f65ba6 RR |
3948 | no_cache=0 |
3949 | # Check whether --enable-geometry or --disable-geometry was given. | |
3950 | if test "${enable_geometry+set}" = set; then | |
3951 | enableval="$enable_geometry" | |
a0b9e27f | 3952 | |
e8f65ba6 RR |
3953 | if test "$enableval" = yes; then |
3954 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3955 | else | |
3956 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3957 | fi | |
a0b9e27f | 3958 | |
e8f65ba6 | 3959 | else |
a0b9e27f | 3960 | |
e8f65ba6 RR |
3961 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3962 | if test "x$LINE" != x ; then | |
3963 | eval "DEFAULT_$LINE" | |
3964 | else | |
3965 | no_cache=1 | |
3966 | fi | |
3967 | ||
3968 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
a0b9e27f MB |
3969 | |
3970 | fi | |
e8f65ba6 RR |
3971 | |
3972 | ||
3973 | eval "$ac_cv_use_geometry" | |
3974 | if test "$no_cache" != 1; then | |
3975 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3976 | fi | |
3977 | ||
3978 | if test "$wxUSE_GEOMETRY" = yes; then | |
a0b9e27f | 3979 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3980 | else |
a0b9e27f | 3981 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3982 | fi |
a0b9e27f | 3983 | |
e8f65ba6 | 3984 | |
5005acfe VZ |
3985 | enablestring= |
3986 | echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6 | |
89e6bf6d | 3987 | echo "configure:3988: checking for --${enablestring:-enable}-log" >&5 |
10f2d63a VZ |
3988 | no_cache=0 |
3989 | # Check whether --enable-log or --disable-log was given. | |
3990 | if test "${enable_log+set}" = set; then | |
3991 | enableval="$enable_log" | |
a0b9e27f | 3992 | |
10f2d63a VZ |
3993 | if test "$enableval" = yes; then |
3994 | ac_cv_use_log='wxUSE_LOG=yes' | |
3995 | else | |
3996 | ac_cv_use_log='wxUSE_LOG=no' | |
3997 | fi | |
a0b9e27f | 3998 | |
10f2d63a | 3999 | else |
a0b9e27f | 4000 | |
10f2d63a VZ |
4001 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4002 | if test "x$LINE" != x ; then | |
4003 | eval "DEFAULT_$LINE" | |
4004 | else | |
4005 | no_cache=1 | |
4006 | fi | |
4007 | ||
4008 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
a0b9e27f MB |
4009 | |
4010 | fi | |
10f2d63a VZ |
4011 | |
4012 | ||
4013 | eval "$ac_cv_use_log" | |
4014 | if test "$no_cache" != 1; then | |
4015 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4016 | fi | |
4017 | ||
4018 | if test "$wxUSE_LOG" = yes; then | |
a0b9e27f | 4019 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4020 | else |
a0b9e27f | 4021 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4022 | fi |
a0b9e27f | 4023 | |
10f2d63a | 4024 | |
5005acfe VZ |
4025 | enablestring= |
4026 | echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6 | |
89e6bf6d | 4027 | echo "configure:4028: checking for --${enablestring:-enable}-streams" >&5 |
10f2d63a VZ |
4028 | no_cache=0 |
4029 | # Check whether --enable-streams or --disable-streams was given. | |
4030 | if test "${enable_streams+set}" = set; then | |
4031 | enableval="$enable_streams" | |
a0b9e27f | 4032 | |
10f2d63a VZ |
4033 | if test "$enableval" = yes; then |
4034 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4035 | else | |
4036 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4037 | fi | |
a0b9e27f | 4038 | |
10f2d63a | 4039 | else |
a0b9e27f | 4040 | |
10f2d63a VZ |
4041 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4042 | if test "x$LINE" != x ; then | |
4043 | eval "DEFAULT_$LINE" | |
4044 | else | |
4045 | no_cache=1 | |
4046 | fi | |
4047 | ||
4048 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
a0b9e27f MB |
4049 | |
4050 | fi | |
10f2d63a VZ |
4051 | |
4052 | ||
4053 | eval "$ac_cv_use_streams" | |
4054 | if test "$no_cache" != 1; then | |
4055 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4056 | fi | |
4057 | ||
4058 | if test "$wxUSE_STREAMS" = yes; then | |
a0b9e27f | 4059 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4060 | else |
a0b9e27f | 4061 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4062 | fi |
a0b9e27f | 4063 | |
10f2d63a | 4064 | |
5005acfe VZ |
4065 | enablestring= |
4066 | echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6 | |
89e6bf6d | 4067 | echo "configure:4068: checking for --${enablestring:-enable}-file" >&5 |
10f2d63a VZ |
4068 | no_cache=0 |
4069 | # Check whether --enable-file or --disable-file was given. | |
4070 | if test "${enable_file+set}" = set; then | |
4071 | enableval="$enable_file" | |
a0b9e27f | 4072 | |
10f2d63a VZ |
4073 | if test "$enableval" = yes; then |
4074 | ac_cv_use_file='wxUSE_FILE=yes' | |
4075 | else | |
4076 | ac_cv_use_file='wxUSE_FILE=no' | |
4077 | fi | |
a0b9e27f | 4078 | |
10f2d63a | 4079 | else |
a0b9e27f | 4080 | |
10f2d63a VZ |
4081 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4082 | if test "x$LINE" != x ; then | |
4083 | eval "DEFAULT_$LINE" | |
4084 | else | |
4085 | no_cache=1 | |
4086 | fi | |
4087 | ||
4088 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
a0b9e27f MB |
4089 | |
4090 | fi | |
10f2d63a VZ |
4091 | |
4092 | ||
4093 | eval "$ac_cv_use_file" | |
4094 | if test "$no_cache" != 1; then | |
4095 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4096 | fi | |
4097 | ||
4098 | if test "$wxUSE_FILE" = yes; then | |
a0b9e27f | 4099 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4100 | else |
a0b9e27f | 4101 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4102 | fi |
a0b9e27f | 4103 | |
10f2d63a | 4104 | |
5005acfe VZ |
4105 | enablestring= |
4106 | echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6 | |
89e6bf6d | 4107 | echo "configure:4108: checking for --${enablestring:-enable}-ffile" >&5 |
10f2d63a | 4108 | no_cache=0 |
1e6feb95 VZ |
4109 | # Check whether --enable-ffile or --disable-ffile was given. |
4110 | if test "${enable_ffile+set}" = set; then | |
4111 | enableval="$enable_ffile" | |
a0b9e27f | 4112 | |
10f2d63a | 4113 | if test "$enableval" = yes; then |
1e6feb95 | 4114 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4115 | else |
1e6feb95 | 4116 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4117 | fi |
a0b9e27f | 4118 | |
10f2d63a | 4119 | else |
a0b9e27f | 4120 | |
1e6feb95 | 4121 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4122 | if test "x$LINE" != x ; then |
4123 | eval "DEFAULT_$LINE" | |
4124 | else | |
4125 | no_cache=1 | |
4126 | fi | |
4127 | ||
1e6feb95 | 4128 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
a0b9e27f MB |
4129 | |
4130 | fi | |
10f2d63a VZ |
4131 | |
4132 | ||
1e6feb95 | 4133 | eval "$ac_cv_use_ffile" |
10f2d63a | 4134 | if test "$no_cache" != 1; then |
1e6feb95 | 4135 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4136 | fi |
4137 | ||
1e6feb95 | 4138 | if test "$wxUSE_FFILE" = yes; then |
a0b9e27f | 4139 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4140 | else |
a0b9e27f | 4141 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4142 | fi |
a0b9e27f | 4143 | |
10f2d63a | 4144 | |
5005acfe VZ |
4145 | enablestring= |
4146 | echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6 | |
89e6bf6d | 4147 | echo "configure:4148: checking for --${enablestring:-enable}-textbuf" >&5 |
a3a584a7 VZ |
4148 | no_cache=0 |
4149 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4150 | if test "${enable_textbuf+set}" = set; then | |
4151 | enableval="$enable_textbuf" | |
a0b9e27f | 4152 | |
a3a584a7 VZ |
4153 | if test "$enableval" = yes; then |
4154 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4155 | else | |
4156 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4157 | fi | |
a0b9e27f | 4158 | |
a3a584a7 | 4159 | else |
a0b9e27f | 4160 | |
a3a584a7 VZ |
4161 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4162 | if test "x$LINE" != x ; then | |
4163 | eval "DEFAULT_$LINE" | |
4164 | else | |
4165 | no_cache=1 | |
4166 | fi | |
4167 | ||
4168 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a0b9e27f MB |
4169 | |
4170 | fi | |
a3a584a7 VZ |
4171 | |
4172 | ||
4173 | eval "$ac_cv_use_textbuf" | |
4174 | if test "$no_cache" != 1; then | |
4175 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4176 | fi | |
4177 | ||
4178 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
a0b9e27f | 4179 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4180 | else |
a0b9e27f | 4181 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4182 | fi |
a0b9e27f | 4183 | |
a3a584a7 | 4184 | |
5005acfe VZ |
4185 | enablestring= |
4186 | echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6 | |
89e6bf6d | 4187 | echo "configure:4188: checking for --${enablestring:-enable}-textfile" >&5 |
10f2d63a | 4188 | no_cache=0 |
1e6feb95 VZ |
4189 | # Check whether --enable-textfile or --disable-textfile was given. |
4190 | if test "${enable_textfile+set}" = set; then | |
4191 | enableval="$enable_textfile" | |
a0b9e27f | 4192 | |
10f2d63a | 4193 | if test "$enableval" = yes; then |
1e6feb95 | 4194 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4195 | else |
1e6feb95 | 4196 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4197 | fi |
a0b9e27f | 4198 | |
10f2d63a | 4199 | else |
a0b9e27f | 4200 | |
1e6feb95 | 4201 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4202 | if test "x$LINE" != x ; then |
4203 | eval "DEFAULT_$LINE" | |
4204 | else | |
4205 | no_cache=1 | |
4206 | fi | |
4207 | ||
1e6feb95 | 4208 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
a0b9e27f MB |
4209 | |
4210 | fi | |
10f2d63a VZ |
4211 | |
4212 | ||
1e6feb95 | 4213 | eval "$ac_cv_use_textfile" |
10f2d63a | 4214 | if test "$no_cache" != 1; then |
1e6feb95 | 4215 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4216 | fi |
4217 | ||
1e6feb95 | 4218 | if test "$wxUSE_TEXTFILE" = yes; then |
a0b9e27f | 4219 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4220 | else |
a0b9e27f | 4221 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4222 | fi |
a0b9e27f | 4223 | |
10f2d63a | 4224 | |
5005acfe VZ |
4225 | enablestring= |
4226 | echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6 | |
89e6bf6d | 4227 | echo "configure:4228: checking for --${enablestring:-enable}-fontmap" >&5 |
10f2d63a | 4228 | no_cache=0 |
1e6feb95 VZ |
4229 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4230 | if test "${enable_fontmap+set}" = set; then | |
4231 | enableval="$enable_fontmap" | |
a0b9e27f | 4232 | |
10f2d63a | 4233 | if test "$enableval" = yes; then |
1e6feb95 | 4234 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4235 | else |
1e6feb95 | 4236 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4237 | fi |
a0b9e27f | 4238 | |
10f2d63a | 4239 | else |
a0b9e27f | 4240 | |
1e6feb95 | 4241 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4242 | if test "x$LINE" != x ; then |
4243 | eval "DEFAULT_$LINE" | |
4244 | else | |
4245 | no_cache=1 | |
4246 | fi | |
4247 | ||
1e6feb95 | 4248 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
a0b9e27f MB |
4249 | |
4250 | fi | |
10f2d63a VZ |
4251 | |
4252 | ||
1e6feb95 | 4253 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4254 | if test "$no_cache" != 1; then |
1e6feb95 | 4255 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4256 | fi |
4257 | ||
1e6feb95 | 4258 | if test "$wxUSE_FONTMAP" = yes; then |
a0b9e27f | 4259 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4260 | else |
a0b9e27f | 4261 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4262 | fi |
a0b9e27f | 4263 | |
10f2d63a | 4264 | |
5005acfe VZ |
4265 | enablestring= |
4266 | echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6 | |
89e6bf6d | 4267 | echo "configure:4268: checking for --${enablestring:-enable}-unicode" >&5 |
10f2d63a | 4268 | no_cache=0 |
1e6feb95 VZ |
4269 | # Check whether --enable-unicode or --disable-unicode was given. |
4270 | if test "${enable_unicode+set}" = set; then | |
4271 | enableval="$enable_unicode" | |
a0b9e27f | 4272 | |
1e6feb95 VZ |
4273 | if test "$enableval" = yes; then |
4274 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4275 | else | |
4276 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4277 | fi | |
a0b9e27f | 4278 | |
1e6feb95 | 4279 | else |
a0b9e27f | 4280 | |
1e6feb95 VZ |
4281 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4282 | if test "x$LINE" != x ; then | |
4283 | eval "DEFAULT_$LINE" | |
4284 | else | |
4285 | no_cache=1 | |
4286 | fi | |
4287 | ||
4288 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
a0b9e27f MB |
4289 | |
4290 | fi | |
1e6feb95 VZ |
4291 | |
4292 | ||
4293 | eval "$ac_cv_use_unicode" | |
4294 | if test "$no_cache" != 1; then | |
4295 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4296 | fi | |
4297 | ||
4298 | if test "$wxUSE_UNICODE" = yes; then | |
a0b9e27f | 4299 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4300 | else |
a0b9e27f | 4301 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4302 | fi |
a0b9e27f | 4303 | |
1e6feb95 | 4304 | |
5005acfe VZ |
4305 | enablestring= |
4306 | echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6 | |
89e6bf6d | 4307 | echo "configure:4308: checking for --${enablestring:-enable}-mslu" >&5 |
a72a4bfa VS |
4308 | no_cache=0 |
4309 | # Check whether --enable-mslu or --disable-mslu was given. | |
4310 | if test "${enable_mslu+set}" = set; then | |
4311 | enableval="$enable_mslu" | |
a0b9e27f | 4312 | |
a72a4bfa VS |
4313 | if test "$enableval" = yes; then |
4314 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4315 | else | |
4316 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4317 | fi | |
a0b9e27f | 4318 | |
a72a4bfa | 4319 | else |
a0b9e27f | 4320 | |
a72a4bfa VS |
4321 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4322 | if test "x$LINE" != x ; then | |
4323 | eval "DEFAULT_$LINE" | |
4324 | else | |
4325 | no_cache=1 | |
4326 | fi | |
4327 | ||
4328 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a0b9e27f MB |
4329 | |
4330 | fi | |
a72a4bfa VS |
4331 | |
4332 | ||
4333 | eval "$ac_cv_use_mslu" | |
4334 | if test "$no_cache" != 1; then | |
4335 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4336 | fi | |
4337 | ||
4338 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
a0b9e27f | 4339 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4340 | else |
a0b9e27f | 4341 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4342 | fi |
a0b9e27f | 4343 | |
a72a4bfa | 4344 | |
5005acfe VZ |
4345 | enablestring= |
4346 | echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6 | |
89e6bf6d | 4347 | echo "configure:4348: checking for --${enablestring:-enable}-wxprintfv" >&5 |
1e6feb95 VZ |
4348 | no_cache=0 |
4349 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4350 | if test "${enable_wxprintfv+set}" = set; then | |
4351 | enableval="$enable_wxprintfv" | |
a0b9e27f | 4352 | |
1e6feb95 | 4353 | if test "$enableval" = yes; then |
10f2d63a VZ |
4354 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4355 | else | |
4356 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4357 | fi | |
a0b9e27f | 4358 | |
10f2d63a | 4359 | else |
a0b9e27f | 4360 | |
10f2d63a VZ |
4361 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4362 | if test "x$LINE" != x ; then | |
4363 | eval "DEFAULT_$LINE" | |
4364 | else | |
4365 | no_cache=1 | |
4366 | fi | |
4367 | ||
4368 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
a0b9e27f MB |
4369 | |
4370 | fi | |
10f2d63a VZ |
4371 | |
4372 | ||
4373 | eval "$ac_cv_use_wxprintfv" | |
4374 | if test "$no_cache" != 1; then | |
4375 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4376 | fi | |
4377 | ||
4378 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
a0b9e27f | 4379 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4380 | else |
a0b9e27f | 4381 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4382 | fi |
a0b9e27f | 4383 | |
10f2d63a | 4384 | |
5005acfe VZ |
4385 | enablestring= |
4386 | echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6 | |
89e6bf6d | 4387 | echo "configure:4388: checking for --${enablestring:-enable}-std_iostreams" >&5 |
10f2d63a VZ |
4388 | no_cache=0 |
4389 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4390 | if test "${enable_std_iostreams+set}" = set; then | |
4391 | enableval="$enable_std_iostreams" | |
a0b9e27f | 4392 | |
10f2d63a VZ |
4393 | if test "$enableval" = yes; then |
4394 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4395 | else | |
4396 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4397 | fi | |
a0b9e27f | 4398 | |
10f2d63a | 4399 | else |
a0b9e27f | 4400 | |
10f2d63a VZ |
4401 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4402 | if test "x$LINE" != x ; then | |
4403 | eval "DEFAULT_$LINE" | |
4404 | else | |
4405 | no_cache=1 | |
4406 | fi | |
4407 | ||
4408 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
a0b9e27f MB |
4409 | |
4410 | fi | |
10f2d63a VZ |
4411 | |
4412 | ||
4413 | eval "$ac_cv_use_std_iostreams" | |
4414 | if test "$no_cache" != 1; then | |
4415 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4416 | fi | |
4417 | ||
4418 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
a0b9e27f | 4419 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4420 | else |
a0b9e27f | 4421 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4422 | fi |
a0b9e27f | 4423 | |
10f2d63a | 4424 | |
5005acfe VZ |
4425 | enablestring= |
4426 | echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6 | |
89e6bf6d | 4427 | echo "configure:4428: checking for --${enablestring:-enable}-filesystem" >&5 |
24528b0c VS |
4428 | no_cache=0 |
4429 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4430 | if test "${enable_filesystem+set}" = set; then | |
4431 | enableval="$enable_filesystem" | |
a0b9e27f | 4432 | |
24528b0c VS |
4433 | if test "$enableval" = yes; then |
4434 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4435 | else | |
4436 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4437 | fi | |
a0b9e27f | 4438 | |
24528b0c | 4439 | else |
a0b9e27f | 4440 | |
24528b0c VS |
4441 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4442 | if test "x$LINE" != x ; then | |
4443 | eval "DEFAULT_$LINE" | |
4444 | else | |
4445 | no_cache=1 | |
4446 | fi | |
4447 | ||
4448 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
a0b9e27f MB |
4449 | |
4450 | fi | |
24528b0c VS |
4451 | |
4452 | ||
4453 | eval "$ac_cv_use_filesystem" | |
4454 | if test "$no_cache" != 1; then | |
4455 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4456 | fi | |
4457 | ||
4458 | if test "$wxUSE_FILESYSTEM" = yes; then | |
a0b9e27f | 4459 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4460 | else |
a0b9e27f | 4461 | echo "$ac_t""no" 1>&6 |
24528b0c | 4462 | fi |
a0b9e27f | 4463 | |
24528b0c | 4464 | |
5005acfe VZ |
4465 | enablestring= |
4466 | echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6 | |
89e6bf6d | 4467 | echo "configure:4468: checking for --${enablestring:-enable}-fs_inet" >&5 |
10f2d63a VZ |
4468 | no_cache=0 |
4469 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4470 | if test "${enable_fs_inet+set}" = set; then | |
4471 | enableval="$enable_fs_inet" | |
a0b9e27f | 4472 | |
10f2d63a VZ |
4473 | if test "$enableval" = yes; then |
4474 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4475 | else | |
4476 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4477 | fi | |
a0b9e27f | 4478 | |
10f2d63a | 4479 | else |
a0b9e27f | 4480 | |
10f2d63a VZ |
4481 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4482 | if test "x$LINE" != x ; then | |
4483 | eval "DEFAULT_$LINE" | |
4484 | else | |
4485 | no_cache=1 | |
4486 | fi | |
4487 | ||
4488 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
a0b9e27f MB |
4489 | |
4490 | fi | |
10f2d63a VZ |
4491 | |
4492 | ||
4493 | eval "$ac_cv_use_fs_inet" | |
4494 | if test "$no_cache" != 1; then | |
4495 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4496 | fi | |
4497 | ||
4498 | if test "$wxUSE_FS_INET" = yes; then | |
a0b9e27f | 4499 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4500 | else |
a0b9e27f | 4501 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4502 | fi |
a0b9e27f | 4503 | |
10f2d63a | 4504 | |
5005acfe VZ |
4505 | enablestring= |
4506 | echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6 | |
89e6bf6d | 4507 | echo "configure:4508: checking for --${enablestring:-enable}-fs_zip" >&5 |
10f2d63a VZ |
4508 | no_cache=0 |
4509 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4510 | if test "${enable_fs_zip+set}" = set; then | |
4511 | enableval="$enable_fs_zip" | |
a0b9e27f | 4512 | |
10f2d63a VZ |
4513 | if test "$enableval" = yes; then |
4514 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4515 | else | |
4516 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4517 | fi | |
a0b9e27f | 4518 | |
10f2d63a | 4519 | else |
a0b9e27f | 4520 | |
10f2d63a VZ |
4521 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4522 | if test "x$LINE" != x ; then | |
4523 | eval "DEFAULT_$LINE" | |
4524 | else | |
4525 | no_cache=1 | |
4526 | fi | |
4527 | ||
4528 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
a0b9e27f MB |
4529 | |
4530 | fi | |
10f2d63a VZ |
4531 | |
4532 | ||
4533 | eval "$ac_cv_use_fs_zip" | |
4534 | if test "$no_cache" != 1; then | |
4535 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4536 | fi | |
4537 | ||
4538 | if test "$wxUSE_FS_ZIP" = yes; then | |
a0b9e27f | 4539 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4540 | else |
a0b9e27f | 4541 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4542 | fi |
a0b9e27f | 4543 | |
10f2d63a | 4544 | |
5005acfe VZ |
4545 | enablestring= |
4546 | echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6 | |
89e6bf6d | 4547 | echo "configure:4548: checking for --${enablestring:-enable}-zipstream" >&5 |
10f2d63a VZ |
4548 | no_cache=0 |
4549 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4550 | if test "${enable_zipstream+set}" = set; then | |
4551 | enableval="$enable_zipstream" | |
a0b9e27f | 4552 | |
10f2d63a VZ |
4553 | if test "$enableval" = yes; then |
4554 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4555 | else | |
4556 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4557 | fi | |
a0b9e27f | 4558 | |
10f2d63a | 4559 | else |
a0b9e27f | 4560 | |
10f2d63a VZ |
4561 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4562 | if test "x$LINE" != x ; then | |
4563 | eval "DEFAULT_$LINE" | |
4564 | else | |
4565 | no_cache=1 | |
4566 | fi | |
4567 | ||
4568 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
a0b9e27f MB |
4569 | |
4570 | fi | |
10f2d63a VZ |
4571 | |
4572 | ||
4573 | eval "$ac_cv_use_zipstream" | |
4574 | if test "$no_cache" != 1; then | |
4575 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4576 | fi | |
4577 | ||
4578 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
a0b9e27f | 4579 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4580 | else |
a0b9e27f | 4581 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4582 | fi |
a0b9e27f | 4583 | |
8284b0c5 | 4584 | |
52127426 | 4585 | |
5005acfe VZ |
4586 | enablestring= |
4587 | echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6 | |
89e6bf6d | 4588 | echo "configure:4589: checking for --${enablestring:-enable}-catch_segvs" >&5 |
eb4efbdc VZ |
4589 | no_cache=0 |
4590 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4591 | if test "${enable_catch_segvs+set}" = set; then | |
4592 | enableval="$enable_catch_segvs" | |
a0b9e27f | 4593 | |
eb4efbdc VZ |
4594 | if test "$enableval" = yes; then |
4595 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4596 | else | |
4597 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4598 | fi | |
a0b9e27f | 4599 | |
eb4efbdc | 4600 | else |
a0b9e27f | 4601 | |
eb4efbdc VZ |
4602 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4603 | if test "x$LINE" != x ; then | |
4604 | eval "DEFAULT_$LINE" | |
4605 | else | |
4606 | no_cache=1 | |
4607 | fi | |
4608 | ||
4609 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
a0b9e27f MB |
4610 | |
4611 | fi | |
eb4efbdc VZ |
4612 | |
4613 | ||
4614 | eval "$ac_cv_use_catch_segvs" | |
4615 | if test "$no_cache" != 1; then | |
4616 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4617 | fi | |
4618 | ||
4619 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
a0b9e27f | 4620 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4621 | else |
a0b9e27f | 4622 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4623 | fi |
a0b9e27f | 4624 | |
eb4efbdc | 4625 | |
5005acfe VZ |
4626 | enablestring= |
4627 | echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6 | |
89e6bf6d | 4628 | echo "configure:4629: checking for --${enablestring:-enable}-snglinst" >&5 |
4f3c5f06 VZ |
4629 | no_cache=0 |
4630 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4631 | if test "${enable_snglinst+set}" = set; then | |
4632 | enableval="$enable_snglinst" | |
a0b9e27f | 4633 | |
4f3c5f06 VZ |
4634 | if test "$enableval" = yes; then |
4635 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4636 | else | |
4637 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4638 | fi | |
a0b9e27f | 4639 | |
4f3c5f06 | 4640 | else |
a0b9e27f | 4641 | |
4f3c5f06 VZ |
4642 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4643 | if test "x$LINE" != x ; then | |
4644 | eval "DEFAULT_$LINE" | |
4645 | else | |
4646 | no_cache=1 | |
4647 | fi | |
4648 | ||
4649 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
a0b9e27f MB |
4650 | |
4651 | fi | |
4f3c5f06 VZ |
4652 | |
4653 | ||
4654 | eval "$ac_cv_use_snglinst" | |
4655 | if test "$no_cache" != 1; then | |
4656 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4657 | fi | |
4658 | ||
4659 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
a0b9e27f | 4660 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4661 | else |
a0b9e27f | 4662 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4663 | fi |
a0b9e27f | 4664 | |
52127426 | 4665 | |
8284b0c5 | 4666 | |
5005acfe VZ |
4667 | enablestring= |
4668 | echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6 | |
89e6bf6d | 4669 | echo "configure:4670: checking for --${enablestring:-enable}-mimetype" >&5 |
1e6feb95 VZ |
4670 | no_cache=0 |
4671 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4672 | if test "${enable_mimetype+set}" = set; then | |
4673 | enableval="$enable_mimetype" | |
a0b9e27f | 4674 | |
1e6feb95 VZ |
4675 | if test "$enableval" = yes; then |
4676 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4677 | else | |
4678 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4679 | fi | |
a0b9e27f | 4680 | |
1e6feb95 | 4681 | else |
a0b9e27f | 4682 | |
1e6feb95 VZ |
4683 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
4684 | if test "x$LINE" != x ; then | |
4685 | eval "DEFAULT_$LINE" | |
4686 | else | |
4687 | no_cache=1 | |
4688 | fi | |
4689 | ||
4690 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
a0b9e27f MB |
4691 | |
4692 | fi | |
1e6feb95 VZ |
4693 | |
4694 | ||
4695 | eval "$ac_cv_use_mimetype" | |
4696 | if test "$no_cache" != 1; then | |
4697 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4698 | fi | |
4699 | ||
4700 | if test "$wxUSE_MIMETYPE" = yes; then | |
a0b9e27f | 4701 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4702 | else |
a0b9e27f | 4703 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4704 | fi |
a0b9e27f | 4705 | |
1e6feb95 | 4706 | |
5005acfe VZ |
4707 | enablestring= |
4708 | echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6 | |
89e6bf6d | 4709 | echo "configure:4710: checking for --${enablestring:-enable}-system_options" >&5 |
3e44f09d VZ |
4710 | no_cache=0 |
4711 | # Check whether --enable-system_options or --disable-system_options was given. | |
4712 | if test "${enable_system_options+set}" = set; then | |
4713 | enableval="$enable_system_options" | |
a0b9e27f | 4714 | |
3e44f09d VZ |
4715 | if test "$enableval" = yes; then |
4716 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4717 | else | |
4718 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4719 | fi | |
a0b9e27f | 4720 | |
3e44f09d | 4721 | else |
a0b9e27f | 4722 | |
3e44f09d VZ |
4723 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4724 | if test "x$LINE" != x ; then | |
4725 | eval "DEFAULT_$LINE" | |
4726 | else | |
4727 | no_cache=1 | |
4728 | fi | |
4729 | ||
4730 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
a0b9e27f MB |
4731 | |
4732 | fi | |
3e44f09d VZ |
4733 | |
4734 | ||
4735 | eval "$ac_cv_use_system_options" | |
4736 | if test "$no_cache" != 1; then | |
4737 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4738 | fi | |
4739 | ||
4740 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
a0b9e27f | 4741 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4742 | else |
a0b9e27f | 4743 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4744 | fi |
a0b9e27f | 4745 | |
8284b0c5 | 4746 | |
52127426 | 4747 | |
5005acfe VZ |
4748 | enablestring= |
4749 | echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6 | |
89e6bf6d | 4750 | echo "configure:4751: checking for --${enablestring:-enable}-url" >&5 |
4cdb0ab0 VS |
4751 | no_cache=0 |
4752 | # Check whether --enable-url or --disable-url was given. | |
4753 | if test "${enable_url+set}" = set; then | |
4754 | enableval="$enable_url" | |
a0b9e27f | 4755 | |
4cdb0ab0 VS |
4756 | if test "$enableval" = yes; then |
4757 | ac_cv_use_url='wxUSE_URL=yes' | |
4758 | else | |
4759 | ac_cv_use_url='wxUSE_URL=no' | |
4760 | fi | |
a0b9e27f | 4761 | |
4cdb0ab0 | 4762 | else |
a0b9e27f | 4763 | |
4cdb0ab0 VS |
4764 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4765 | if test "x$LINE" != x ; then | |
4766 | eval "DEFAULT_$LINE" | |
4767 | else | |
4768 | no_cache=1 | |
4769 | fi | |
4770 | ||
4771 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
a0b9e27f MB |
4772 | |
4773 | fi | |
4cdb0ab0 VS |
4774 | |
4775 | ||
4776 | eval "$ac_cv_use_url" | |
4777 | if test "$no_cache" != 1; then | |
4778 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4779 | fi | |
4780 | ||
4781 | if test "$wxUSE_URL" = yes; then | |
a0b9e27f | 4782 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4783 | else |
a0b9e27f | 4784 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4785 | fi |
a0b9e27f | 4786 | |
4cdb0ab0 | 4787 | |
5005acfe VZ |
4788 | enablestring= |
4789 | echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6 | |
89e6bf6d | 4790 | echo "configure:4791: checking for --${enablestring:-enable}-protocol" >&5 |
4cdb0ab0 VS |
4791 | no_cache=0 |
4792 | # Check whether --enable-protocol or --disable-protocol was given. | |
4793 | if test "${enable_protocol+set}" = set; then | |
4794 | enableval="$enable_protocol" | |
a0b9e27f | 4795 | |
4cdb0ab0 VS |
4796 | if test "$enableval" = yes; then |
4797 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4798 | else | |
4799 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4800 | fi | |
a0b9e27f | 4801 | |
4cdb0ab0 | 4802 | else |
a0b9e27f | 4803 | |
4cdb0ab0 VS |
4804 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4805 | if test "x$LINE" != x ; then | |
4806 | eval "DEFAULT_$LINE" | |
4807 | else | |
4808 | no_cache=1 | |
4809 | fi | |
4810 | ||
4811 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
4812 | |
4813 | fi | |
4cdb0ab0 VS |
4814 | |
4815 | ||
4816 | eval "$ac_cv_use_protocol" | |
4817 | if test "$no_cache" != 1; then | |
4818 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4819 | fi | |
4820 | ||
4821 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 4822 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4823 | else |
a0b9e27f | 4824 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4825 | fi |
a0b9e27f | 4826 | |
4cdb0ab0 | 4827 | |
5005acfe VZ |
4828 | enablestring= |
4829 | echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6 | |
89e6bf6d | 4830 | echo "configure:4831: checking for --${enablestring:-enable}-protocol_http" >&5 |
4cdb0ab0 VS |
4831 | no_cache=0 |
4832 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4833 | if test "${enable_protocol_http+set}" = set; then | |
4834 | enableval="$enable_protocol_http" | |
a0b9e27f | 4835 | |
4cdb0ab0 VS |
4836 | if test "$enableval" = yes; then |
4837 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4838 | else | |
4839 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4840 | fi | |
a0b9e27f | 4841 | |
4cdb0ab0 | 4842 | else |
a0b9e27f | 4843 | |
4cdb0ab0 VS |
4844 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4845 | if test "x$LINE" != x ; then | |
4846 | eval "DEFAULT_$LINE" | |
4847 | else | |
4848 | no_cache=1 | |
4849 | fi | |
4850 | ||
4851 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
4852 | |
4853 | fi | |
4cdb0ab0 VS |
4854 | |
4855 | ||
4856 | eval "$ac_cv_use_protocol_http" | |
4857 | if test "$no_cache" != 1; then | |
4858 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4859 | fi | |
4860 | ||
4861 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 4862 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4863 | else |
a0b9e27f | 4864 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4865 | fi |
a0b9e27f | 4866 | |
4cdb0ab0 | 4867 | |
5005acfe VZ |
4868 | enablestring= |
4869 | echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6 | |
89e6bf6d | 4870 | echo "configure:4871: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
4cdb0ab0 VS |
4871 | no_cache=0 |
4872 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4873 | if test "${enable_protocol_ftp+set}" = set; then | |
4874 | enableval="$enable_protocol_ftp" | |
a0b9e27f | 4875 | |
4cdb0ab0 VS |
4876 | if test "$enableval" = yes; then |
4877 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4878 | else | |
4879 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4880 | fi | |
a0b9e27f | 4881 | |
4cdb0ab0 | 4882 | else |
a0b9e27f | 4883 | |
4cdb0ab0 VS |
4884 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4885 | if test "x$LINE" != x ; then | |
4886 | eval "DEFAULT_$LINE" | |
4887 | else | |
4888 | no_cache=1 | |
4889 | fi | |
4890 | ||
4891 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
4892 | |
4893 | fi | |
4cdb0ab0 VS |
4894 | |
4895 | ||
4896 | eval "$ac_cv_use_protocol_ftp" | |
4897 | if test "$no_cache" != 1; then | |
4898 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4899 | fi | |
4900 | ||
4901 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 4902 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4903 | else |
a0b9e27f | 4904 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4905 | fi |
a0b9e27f | 4906 | |
4cdb0ab0 | 4907 | |
5005acfe VZ |
4908 | enablestring= |
4909 | echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6 | |
89e6bf6d | 4910 | echo "configure:4911: checking for --${enablestring:-enable}-protocol_file" >&5 |
4cdb0ab0 VS |
4911 | no_cache=0 |
4912 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4913 | if test "${enable_protocol_file+set}" = set; then | |
4914 | enableval="$enable_protocol_file" | |
a0b9e27f | 4915 | |
4cdb0ab0 VS |
4916 | if test "$enableval" = yes; then |
4917 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4918 | else | |
4919 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4920 | fi | |
a0b9e27f | 4921 | |
4cdb0ab0 | 4922 | else |
a0b9e27f | 4923 | |
4cdb0ab0 VS |
4924 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4925 | if test "x$LINE" != x ; then | |
4926 | eval "DEFAULT_$LINE" | |
4927 | else | |
4928 | no_cache=1 | |
4929 | fi | |
4930 | ||
4931 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
4932 | |
4933 | fi | |
4cdb0ab0 VS |
4934 | |
4935 | ||
4936 | eval "$ac_cv_use_protocol_file" | |
4937 | if test "$no_cache" != 1; then | |
4938 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4939 | fi | |
4940 | ||
4941 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 4942 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4943 | else |
a0b9e27f | 4944 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4945 | fi |
a0b9e27f | 4946 | |
52127426 | 4947 | |
8284b0c5 MB |
4948 | |
4949 | ||
4950 | ||
5005acfe VZ |
4951 | enablestring= |
4952 | echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6 | |
89e6bf6d | 4953 | echo "configure:4954: checking for --${enablestring:-enable}-threads" >&5 |
10f2d63a VZ |
4954 | no_cache=0 |
4955 | # Check whether --enable-threads or --disable-threads was given. | |
4956 | if test "${enable_threads+set}" = set; then | |
4957 | enableval="$enable_threads" | |
a0b9e27f | 4958 | |
10f2d63a VZ |
4959 | if test "$enableval" = yes; then |
4960 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4961 | else | |
4962 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4963 | fi | |
a0b9e27f | 4964 | |
10f2d63a | 4965 | else |
a0b9e27f | 4966 | |
10f2d63a VZ |
4967 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4968 | if test "x$LINE" != x ; then | |
4969 | eval "DEFAULT_$LINE" | |
4970 | else | |
4971 | no_cache=1 | |
4972 | fi | |
4973 | ||
4974 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
a0b9e27f MB |
4975 | |
4976 | fi | |
10f2d63a VZ |
4977 | |
4978 | ||
4979 | eval "$ac_cv_use_threads" | |
4980 | if test "$no_cache" != 1; then | |
4981 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4982 | fi | |
4983 | ||
4984 | if test "$wxUSE_THREADS" = yes; then | |
a0b9e27f | 4985 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4986 | else |
a0b9e27f | 4987 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4988 | fi |
a0b9e27f | 4989 | |
10f2d63a | 4990 | |
b12915c1 VZ |
4991 | if test "$wxUSE_GUI" = "yes"; then |
4992 | ||
8284b0c5 MB |
4993 | |
4994 | ||
5005acfe VZ |
4995 | enablestring= |
4996 | echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6 | |
89e6bf6d | 4997 | echo "configure:4998: checking for --${enablestring:-enable}-docview" >&5 |
10f2d63a VZ |
4998 | no_cache=0 |
4999 | # Check whether --enable-docview or --disable-docview was given. | |
5000 | if test "${enable_docview+set}" = set; then | |
5001 | enableval="$enable_docview" | |
a0b9e27f | 5002 | |
10f2d63a VZ |
5003 | if test "$enableval" = yes; then |
5004 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5005 | else | |
5006 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5007 | fi | |
a0b9e27f | 5008 | |
10f2d63a | 5009 | else |
a0b9e27f | 5010 | |
10f2d63a VZ |
5011 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5012 | if test "x$LINE" != x ; then | |
5013 | eval "DEFAULT_$LINE" | |
5014 | else | |
5015 | no_cache=1 | |
5016 | fi | |
5017 | ||
5018 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
a0b9e27f MB |
5019 | |
5020 | fi | |
10f2d63a VZ |
5021 | |
5022 | ||
5023 | eval "$ac_cv_use_docview" | |
5024 | if test "$no_cache" != 1; then | |
5025 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5026 | fi | |
5027 | ||
5028 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
a0b9e27f | 5029 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5030 | else |
a0b9e27f | 5031 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5032 | fi |
a0b9e27f | 5033 | |
10f2d63a | 5034 | |
5005acfe VZ |
5035 | enablestring= |
5036 | echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6 | |
89e6bf6d | 5037 | echo "configure:5038: checking for --${enablestring:-enable}-help" >&5 |
10f2d63a VZ |
5038 | no_cache=0 |
5039 | # Check whether --enable-help or --disable-help was given. | |
5040 | if test "${enable_help+set}" = set; then | |
5041 | enableval="$enable_help" | |
a0b9e27f | 5042 | |
10f2d63a VZ |
5043 | if test "$enableval" = yes; then |
5044 | ac_cv_use_help='wxUSE_HELP=yes' | |
5045 | else | |
5046 | ac_cv_use_help='wxUSE_HELP=no' | |
5047 | fi | |
a0b9e27f | 5048 | |
10f2d63a | 5049 | else |
a0b9e27f | 5050 | |
10f2d63a VZ |
5051 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5052 | if test "x$LINE" != x ; then | |
5053 | eval "DEFAULT_$LINE" | |
5054 | else | |
5055 | no_cache=1 | |
5056 | fi | |
5057 | ||
5058 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
a0b9e27f MB |
5059 | |
5060 | fi | |
10f2d63a VZ |
5061 | |
5062 | ||
5063 | eval "$ac_cv_use_help" | |
5064 | if test "$no_cache" != 1; then | |
5065 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5066 | fi | |
5067 | ||
5068 | if test "$wxUSE_HELP" = yes; then | |
a0b9e27f | 5069 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5070 | else |
a0b9e27f | 5071 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5072 | fi |
a0b9e27f | 5073 | |
10f2d63a | 5074 | |
5005acfe VZ |
5075 | enablestring= |
5076 | echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6 | |
89e6bf6d | 5077 | echo "configure:5078: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
29fd3c0c VS |
5078 | no_cache=0 |
5079 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5080 | if test "${enable_mshtmlhelp+set}" = set; then | |
5081 | enableval="$enable_mshtmlhelp" | |
a0b9e27f | 5082 | |
29fd3c0c VS |
5083 | if test "$enableval" = yes; then |
5084 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5085 | else | |
5086 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5087 | fi | |
a0b9e27f | 5088 | |
29fd3c0c | 5089 | else |
a0b9e27f | 5090 | |
29fd3c0c VS |
5091 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5092 | if test "x$LINE" != x ; then | |
5093 | eval "DEFAULT_$LINE" | |
5094 | else | |
5095 | no_cache=1 | |
5096 | fi | |
5097 | ||
5098 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
a0b9e27f MB |
5099 | |
5100 | fi | |
29fd3c0c VS |
5101 | |
5102 | ||
5103 | eval "$ac_cv_use_mshtmlhelp" | |
5104 | if test "$no_cache" != 1; then | |
5105 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5106 | fi | |
5107 | ||
5108 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
a0b9e27f | 5109 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 5110 | else |
a0b9e27f | 5111 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 5112 | fi |
a0b9e27f | 5113 | |
29fd3c0c | 5114 | |
5005acfe VZ |
5115 | enablestring= |
5116 | echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6 | |
89e6bf6d | 5117 | echo "configure:5118: checking for --${enablestring:-enable}-html" >&5 |
3379ed37 VZ |
5118 | no_cache=0 |
5119 | # Check whether --enable-html or --disable-html was given. | |
5120 | if test "${enable_html+set}" = set; then | |
5121 | enableval="$enable_html" | |
a0b9e27f | 5122 | |
3379ed37 VZ |
5123 | if test "$enableval" = yes; then |
5124 | ac_cv_use_html='wxUSE_HTML=yes' | |
5125 | else | |
5126 | ac_cv_use_html='wxUSE_HTML=no' | |
5127 | fi | |
a0b9e27f | 5128 | |
3379ed37 | 5129 | else |
a0b9e27f | 5130 | |
3379ed37 VZ |
5131 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5132 | if test "x$LINE" != x ; then | |
5133 | eval "DEFAULT_$LINE" | |
5134 | else | |
5135 | no_cache=1 | |
5136 | fi | |
5137 | ||
5138 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
a0b9e27f MB |
5139 | |
5140 | fi | |
3379ed37 VZ |
5141 | |
5142 | ||
5143 | eval "$ac_cv_use_html" | |
5144 | if test "$no_cache" != 1; then | |
5145 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5146 | fi | |
5147 | ||
5148 | if test "$wxUSE_HTML" = yes; then | |
a0b9e27f | 5149 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5150 | else |
a0b9e27f | 5151 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5152 | fi |
a0b9e27f | 5153 | |
3379ed37 | 5154 | |
5005acfe VZ |
5155 | enablestring= |
5156 | echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6 | |
89e6bf6d | 5157 | echo "configure:5158: checking for --${enablestring:-enable}-htmlhelp" >&5 |
3379ed37 VZ |
5158 | no_cache=0 |
5159 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5160 | if test "${enable_htmlhelp+set}" = set; then | |
5161 | enableval="$enable_htmlhelp" | |
a0b9e27f | 5162 | |
3379ed37 VZ |
5163 | if test "$enableval" = yes; then |
5164 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5165 | else | |
5166 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5167 | fi | |
a0b9e27f | 5168 | |
3379ed37 | 5169 | else |
a0b9e27f | 5170 | |
3379ed37 VZ |
5171 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5172 | if test "x$LINE" != x ; then | |
5173 | eval "DEFAULT_$LINE" | |
5174 | else | |
5175 | no_cache=1 | |
5176 | fi | |
5177 | ||
5178 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
a0b9e27f MB |
5179 | |
5180 | fi | |
3379ed37 VZ |
5181 | |
5182 | ||
5183 | eval "$ac_cv_use_htmlhelp" | |
5184 | if test "$no_cache" != 1; then | |
5185 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5186 | fi | |
5187 | ||
5188 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
a0b9e27f | 5189 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5190 | else |
a0b9e27f | 5191 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5192 | fi |
a0b9e27f | 5193 | |
3379ed37 | 5194 | |
5005acfe VZ |
5195 | enablestring= |
5196 | echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6 | |
89e6bf6d | 5197 | echo "configure:5198: checking for --${enablestring:-enable}-constraints" >&5 |
10f2d63a VZ |
5198 | no_cache=0 |
5199 | # Check whether --enable-constraints or --disable-constraints was given. | |
5200 | if test "${enable_constraints+set}" = set; then | |
5201 | enableval="$enable_constraints" | |
a0b9e27f | 5202 | |
10f2d63a VZ |
5203 | if test "$enableval" = yes; then |
5204 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5205 | else | |
5206 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5207 | fi | |
a0b9e27f | 5208 | |
10f2d63a | 5209 | else |
a0b9e27f | 5210 | |
10f2d63a VZ |
5211 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5212 | if test "x$LINE" != x ; then | |
5213 | eval "DEFAULT_$LINE" | |
5214 | else | |
5215 | no_cache=1 | |
5216 | fi | |
5217 | ||
5218 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
a0b9e27f MB |
5219 | |
5220 | fi | |
10f2d63a VZ |
5221 | |
5222 | ||
5223 | eval "$ac_cv_use_constraints" | |
5224 | if test "$no_cache" != 1; then | |
5225 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5226 | fi | |
5227 | ||
5228 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
a0b9e27f | 5229 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5230 | else |
a0b9e27f | 5231 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5232 | fi |
a0b9e27f | 5233 | |
10f2d63a | 5234 | |
5005acfe VZ |
5235 | enablestring= |
5236 | echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6 | |
89e6bf6d | 5237 | echo "configure:5238: checking for --${enablestring:-enable}-printarch" >&5 |
10f2d63a VZ |
5238 | no_cache=0 |
5239 | # Check whether --enable-printarch or --disable-printarch was given. | |
5240 | if test "${enable_printarch+set}" = set; then | |
5241 | enableval="$enable_printarch" | |
a0b9e27f | 5242 | |
10f2d63a VZ |
5243 | if test "$enableval" = yes; then |
5244 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5245 | else | |
5246 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5247 | fi | |
a0b9e27f | 5248 | |
10f2d63a | 5249 | else |
a0b9e27f | 5250 | |
10f2d63a VZ |
5251 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5252 | if test "x$LINE" != x ; then | |
5253 | eval "DEFAULT_$LINE" | |
5254 | else | |
5255 | no_cache=1 | |
5256 | fi | |
5257 | ||
5258 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
a0b9e27f MB |
5259 | |
5260 | fi | |
10f2d63a VZ |
5261 | |
5262 | ||
5263 | eval "$ac_cv_use_printarch" | |
5264 | if test "$no_cache" != 1; then | |
5265 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5266 | fi | |
5267 | ||
5268 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
a0b9e27f | 5269 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5270 | else |
a0b9e27f | 5271 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5272 | fi |
a0b9e27f | 5273 | |
10f2d63a | 5274 | |
5005acfe VZ |
5275 | enablestring= |
5276 | echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6 | |
89e6bf6d | 5277 | echo "configure:5278: checking for --${enablestring:-enable}-mdi" >&5 |
10f2d63a VZ |
5278 | no_cache=0 |
5279 | # Check whether --enable-mdi or --disable-mdi was given. | |
5280 | if test "${enable_mdi+set}" = set; then | |
5281 | enableval="$enable_mdi" | |
a0b9e27f | 5282 | |
10f2d63a VZ |
5283 | if test "$enableval" = yes; then |
5284 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5285 | else | |
5286 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5287 | fi | |
a0b9e27f | 5288 | |
10f2d63a | 5289 | else |
a0b9e27f | 5290 | |
10f2d63a VZ |
5291 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5292 | if test "x$LINE" != x ; then | |
5293 | eval "DEFAULT_$LINE" | |
5294 | else | |
5295 | no_cache=1 | |
5296 | fi | |
5297 | ||
5298 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
a0b9e27f MB |
5299 | |
5300 | fi | |
10f2d63a VZ |
5301 | |
5302 | ||
5303 | eval "$ac_cv_use_mdi" | |
5304 | if test "$no_cache" != 1; then | |
5305 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5306 | fi | |
5307 | ||
5308 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
a0b9e27f | 5309 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5310 | else |
a0b9e27f | 5311 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5312 | fi |
a0b9e27f | 5313 | |
698dcdb6 | 5314 | |
5005acfe VZ |
5315 | enablestring= |
5316 | echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6 | |
89e6bf6d | 5317 | echo "configure:5318: checking for --${enablestring:-enable}-loggui" >&5 |
1e6feb95 VZ |
5318 | no_cache=0 |
5319 | # Check whether --enable-loggui or --disable-loggui was given. | |
5320 | if test "${enable_loggui+set}" = set; then | |
5321 | enableval="$enable_loggui" | |
a0b9e27f | 5322 | |
1e6feb95 VZ |
5323 | if test "$enableval" = yes; then |
5324 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5325 | else | |
5326 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5327 | fi | |
a0b9e27f | 5328 | |
1e6feb95 | 5329 | else |
a0b9e27f | 5330 | |
1e6feb95 VZ |
5331 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5332 | if test "x$LINE" != x ; then | |
5333 | eval "DEFAULT_$LINE" | |
5334 | else | |
5335 | no_cache=1 | |
5336 | fi | |
5337 | ||
5338 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
a0b9e27f MB |
5339 | |
5340 | fi | |
1e6feb95 VZ |
5341 | |
5342 | ||
5343 | eval "$ac_cv_use_loggui" | |
5344 | if test "$no_cache" != 1; then | |
5345 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5346 | fi | |
5347 | ||
5348 | if test "$wxUSE_LOGGUI" = yes; then | |
a0b9e27f | 5349 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5350 | else |
a0b9e27f | 5351 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5352 | fi |
a0b9e27f | 5353 | |
1e6feb95 | 5354 | |
5005acfe VZ |
5355 | enablestring= |
5356 | echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6 | |
89e6bf6d | 5357 | echo "configure:5358: checking for --${enablestring:-enable}-logwin" >&5 |
1e6feb95 VZ |
5358 | no_cache=0 |
5359 | # Check whether --enable-logwin or --disable-logwin was given. | |
5360 | if test "${enable_logwin+set}" = set; then | |
5361 | enableval="$enable_logwin" | |
a0b9e27f | 5362 | |
1e6feb95 VZ |
5363 | if test "$enableval" = yes; then |
5364 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5365 | else | |
5366 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5367 | fi | |
a0b9e27f | 5368 | |
1e6feb95 | 5369 | else |
a0b9e27f | 5370 | |
1e6feb95 VZ |
5371 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5372 | if test "x$LINE" != x ; then | |
5373 | eval "DEFAULT_$LINE" | |
5374 | else | |
5375 | no_cache=1 | |
5376 | fi | |
5377 | ||
5378 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
a0b9e27f MB |
5379 | |
5380 | fi | |
1e6feb95 VZ |
5381 | |
5382 | ||
5383 | eval "$ac_cv_use_logwin" | |
5384 | if test "$no_cache" != 1; then | |
5385 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5386 | fi | |
5387 | ||
5388 | if test "$wxUSE_LOGWINDOW" = yes; then | |
a0b9e27f | 5389 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5390 | else |
a0b9e27f | 5391 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5392 | fi |
a0b9e27f | 5393 | |
1e6feb95 | 5394 | |
5005acfe VZ |
5395 | enablestring= |
5396 | echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6 | |
89e6bf6d | 5397 | echo "configure:5398: checking for --${enablestring:-enable}-logdialog" >&5 |
69d27ff7 MB |
5398 | no_cache=0 |
5399 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5400 | if test "${enable_logdialog+set}" = set; then | |
5401 | enableval="$enable_logdialog" | |
a0b9e27f | 5402 | |
69d27ff7 MB |
5403 | if test "$enableval" = yes; then |
5404 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5405 | else | |
5406 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5407 | fi | |
a0b9e27f | 5408 | |
69d27ff7 | 5409 | else |
a0b9e27f | 5410 | |
69d27ff7 MB |
5411 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5412 | if test "x$LINE" != x ; then | |
5413 | eval "DEFAULT_$LINE" | |
5414 | else | |
5415 | no_cache=1 | |
5416 | fi | |
5417 | ||
5418 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
a0b9e27f MB |
5419 | |
5420 | fi | |
69d27ff7 MB |
5421 | |
5422 | ||
5423 | eval "$ac_cv_use_logdialog" | |
5424 | if test "$no_cache" != 1; then | |
5425 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5426 | fi | |
5427 | ||
5428 | if test "$wxUSE_LOGDIALOG" = yes; then | |
a0b9e27f | 5429 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5430 | else |
a0b9e27f | 5431 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5432 | fi |
a0b9e27f | 5433 | |
8284b0c5 | 5434 | |
52127426 | 5435 | |
5005acfe VZ |
5436 | enablestring= |
5437 | echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6 | |
89e6bf6d | 5438 | echo "configure:5439: checking for --${enablestring:-enable}-postscript" >&5 |
10f2d63a VZ |
5439 | no_cache=0 |
5440 | # Check whether --enable-postscript or --disable-postscript was given. | |
5441 | if test "${enable_postscript+set}" = set; then | |
5442 | enableval="$enable_postscript" | |
a0b9e27f | 5443 | |
10f2d63a VZ |
5444 | if test "$enableval" = yes; then |
5445 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5446 | else | |
5447 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5448 | fi | |
a0b9e27f | 5449 | |
10f2d63a | 5450 | else |
a0b9e27f | 5451 | |
10f2d63a VZ |
5452 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5453 | if test "x$LINE" != x ; then | |
5454 | eval "DEFAULT_$LINE" | |
5455 | else | |
5456 | no_cache=1 | |
5457 | fi | |
5458 | ||
5459 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
a0b9e27f MB |
5460 | |
5461 | fi | |
10f2d63a VZ |
5462 | |
5463 | ||
5464 | eval "$ac_cv_use_postscript" | |
5465 | if test "$no_cache" != 1; then | |
5466 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5467 | fi | |
5468 | ||
5469 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
a0b9e27f | 5470 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5471 | else |
a0b9e27f | 5472 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5473 | fi |
a0b9e27f | 5474 | |
8284b0c5 MB |
5475 | |
5476 | ||
52127426 | 5477 | |
8284b0c5 | 5478 | |
5005acfe VZ |
5479 | enablestring= |
5480 | echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6 | |
89e6bf6d | 5481 | echo "configure:5482: checking for --${enablestring:-enable}-prologio" >&5 |
10f2d63a VZ |
5482 | no_cache=0 |
5483 | # Check whether --enable-prologio or --disable-prologio was given. | |
5484 | if test "${enable_prologio+set}" = set; then | |
5485 | enableval="$enable_prologio" | |
a0b9e27f | 5486 | |
10f2d63a VZ |
5487 | if test "$enableval" = yes; then |
5488 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5489 | else | |
5490 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5491 | fi | |
a0b9e27f | 5492 | |
10f2d63a | 5493 | else |
a0b9e27f | 5494 | |
10f2d63a VZ |
5495 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5496 | if test "x$LINE" != x ; then | |
5497 | eval "DEFAULT_$LINE" | |
5498 | else | |
5499 | no_cache=1 | |
5500 | fi | |
5501 | ||
5502 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
a0b9e27f MB |
5503 | |
5504 | fi | |
10f2d63a VZ |
5505 | |
5506 | ||
5507 | eval "$ac_cv_use_prologio" | |
5508 | if test "$no_cache" != 1; then | |
5509 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5510 | fi | |
5511 | ||
5512 | if test "$wxUSE_PROLOGIO" = yes; then | |
a0b9e27f | 5513 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5514 | else |
a0b9e27f | 5515 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5516 | fi |
a0b9e27f | 5517 | |
10f2d63a | 5518 | |
5005acfe VZ |
5519 | enablestring= |
5520 | echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6 | |
89e6bf6d | 5521 | echo "configure:5522: checking for --${enablestring:-enable}-resources" >&5 |
10f2d63a VZ |
5522 | no_cache=0 |
5523 | # Check whether --enable-resources or --disable-resources was given. | |
5524 | if test "${enable_resources+set}" = set; then | |
5525 | enableval="$enable_resources" | |
a0b9e27f | 5526 | |
10f2d63a VZ |
5527 | if test "$enableval" = yes; then |
5528 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5529 | else | |
5530 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5531 | fi | |
a0b9e27f | 5532 | |
10f2d63a | 5533 | else |
a0b9e27f | 5534 | |
10f2d63a VZ |
5535 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5536 | if test "x$LINE" != x ; then | |
5537 | eval "DEFAULT_$LINE" | |
5538 | else | |
5539 | no_cache=1 | |
5540 | fi | |
5541 | ||
5542 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
a0b9e27f MB |
5543 | |
5544 | fi | |
10f2d63a VZ |
5545 | |
5546 | ||
5547 | eval "$ac_cv_use_resources" | |
5548 | if test "$no_cache" != 1; then | |
5549 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5550 | fi | |
5551 | ||
5552 | if test "$wxUSE_RESOURCES" = yes; then | |
a0b9e27f | 5553 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5554 | else |
a0b9e27f | 5555 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5556 | fi |
a0b9e27f | 5557 | |
8284b0c5 | 5558 | |
52127426 | 5559 | |
5005acfe VZ |
5560 | enablestring= |
5561 | echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6 | |
89e6bf6d | 5562 | echo "configure:5563: checking for --${enablestring:-enable}-xresources" >&5 |
10f2d63a VZ |
5563 | no_cache=0 |
5564 | # Check whether --enable-xresources or --disable-xresources was given. | |
5565 | if test "${enable_xresources+set}" = set; then | |
5566 | enableval="$enable_xresources" | |
a0b9e27f | 5567 | |
10f2d63a VZ |
5568 | if test "$enableval" = yes; then |
5569 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5570 | else | |
5571 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5572 | fi | |
a0b9e27f | 5573 | |
10f2d63a | 5574 | else |
a0b9e27f | 5575 | |
10f2d63a VZ |
5576 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5577 | if test "x$LINE" != x ; then | |
5578 | eval "DEFAULT_$LINE" | |
5579 | else | |
5580 | no_cache=1 | |
5581 | fi | |
5582 | ||
5583 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
a0b9e27f MB |
5584 | |
5585 | fi | |
10f2d63a VZ |
5586 | |
5587 | ||
5588 | eval "$ac_cv_use_xresources" | |
5589 | if test "$no_cache" != 1; then | |
5590 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5591 | fi | |
5592 | ||
5593 | if test "$wxUSE_X_RESOURCES" = yes; then | |
a0b9e27f | 5594 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5595 | else |
a0b9e27f | 5596 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5597 | fi |
a0b9e27f | 5598 | |
8284b0c5 MB |
5599 | |
5600 | ||
52127426 | 5601 | |
5005acfe VZ |
5602 | enablestring= |
5603 | echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6 | |
89e6bf6d | 5604 | echo "configure:5605: checking for --${enablestring:-enable}-clipboard" >&5 |
10f2d63a VZ |
5605 | no_cache=0 |
5606 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5607 | if test "${enable_clipboard+set}" = set; then | |
5608 | enableval="$enable_clipboard" | |
a0b9e27f | 5609 | |
10f2d63a VZ |
5610 | if test "$enableval" = yes; then |
5611 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5612 | else | |
5613 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5614 | fi | |
a0b9e27f | 5615 | |
10f2d63a | 5616 | else |
a0b9e27f | 5617 | |
10f2d63a VZ |
5618 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5619 | if test "x$LINE" != x ; then | |
5620 | eval "DEFAULT_$LINE" | |
5621 | else | |
5622 | no_cache=1 | |
5623 | fi | |
5624 | ||
5625 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
a0b9e27f MB |
5626 | |
5627 | fi | |
10f2d63a VZ |
5628 | |
5629 | ||
5630 | eval "$ac_cv_use_clipboard" | |
5631 | if test "$no_cache" != 1; then | |
5632 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5633 | fi | |
5634 | ||
5635 | if test "$wxUSE_CLIPBOARD" = yes; then | |
a0b9e27f | 5636 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5637 | else |
a0b9e27f | 5638 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5639 | fi |
a0b9e27f | 5640 | |
10f2d63a | 5641 | |
5005acfe VZ |
5642 | enablestring= |
5643 | echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6 | |
89e6bf6d | 5644 | echo "configure:5645: checking for --${enablestring:-enable}-dnd" >&5 |
10f2d63a VZ |
5645 | no_cache=0 |
5646 | # Check whether --enable-dnd or --disable-dnd was given. | |
5647 | if test "${enable_dnd+set}" = set; then | |
5648 | enableval="$enable_dnd" | |
a0b9e27f | 5649 | |
10f2d63a VZ |
5650 | if test "$enableval" = yes; then |
5651 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5652 | else | |
5653 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5654 | fi | |
a0b9e27f | 5655 | |
10f2d63a | 5656 | else |
a0b9e27f | 5657 | |
10f2d63a VZ |
5658 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5659 | if test "x$LINE" != x ; then | |
5660 | eval "DEFAULT_$LINE" | |
5661 | else | |
5662 | no_cache=1 | |
5663 | fi | |
5664 | ||
5665 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
a0b9e27f MB |
5666 | |
5667 | fi | |
10f2d63a VZ |
5668 | |
5669 | ||
5670 | eval "$ac_cv_use_dnd" | |
5671 | if test "$no_cache" != 1; then | |
5672 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5673 | fi | |
5674 | ||
5675 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
a0b9e27f | 5676 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5677 | else |
a0b9e27f | 5678 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5679 | fi |
a0b9e27f | 5680 | |
10f2d63a | 5681 | |
5005acfe VZ |
5682 | enablestring= |
5683 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
89e6bf6d | 5684 | echo "configure:5685: checking for --${enablestring:-enable}-metafile" >&5 |
b64f0a5f RL |
5685 | no_cache=0 |
5686 | # Check whether --enable-metafile or --disable-metafile was given. | |
5687 | if test "${enable_metafile+set}" = set; then | |
5688 | enableval="$enable_metafile" | |
a0b9e27f | 5689 | |
b64f0a5f RL |
5690 | if test "$enableval" = yes; then |
5691 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5692 | else | |
5693 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5694 | fi | |
a0b9e27f | 5695 | |
b64f0a5f | 5696 | else |
a0b9e27f | 5697 | |
b64f0a5f RL |
5698 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5699 | if test "x$LINE" != x ; then | |
5700 | eval "DEFAULT_$LINE" | |
5701 | else | |
5702 | no_cache=1 | |
5703 | fi | |
5704 | ||
5705 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
5706 | |
5707 | fi | |
b64f0a5f RL |
5708 | |
5709 | ||
5710 | eval "$ac_cv_use_metafile" | |
5711 | if test "$no_cache" != 1; then | |
5712 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5713 | fi | |
5714 | ||
5715 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 5716 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5717 | else |
a0b9e27f | 5718 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5719 | fi |
a0b9e27f | 5720 | |
52127426 | 5721 | |
8284b0c5 | 5722 | |
5005acfe VZ |
5723 | enablestring= |
5724 | echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6 | |
89e6bf6d | 5725 | echo "configure:5726: checking for --${enablestring:-enable}-treelayout" >&5 |
10f2d63a | 5726 | no_cache=0 |
24176f2c GD |
5727 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5728 | if test "${enable_treelayout+set}" = set; then | |
5729 | enableval="$enable_treelayout" | |
a0b9e27f | 5730 | |
10f2d63a | 5731 | if test "$enableval" = yes; then |
24176f2c | 5732 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5733 | else |
24176f2c | 5734 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5735 | fi |
a0b9e27f | 5736 | |
10f2d63a | 5737 | else |
a0b9e27f | 5738 | |
24176f2c | 5739 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5740 | if test "x$LINE" != x ; then |
5741 | eval "DEFAULT_$LINE" | |
5742 | else | |
5743 | no_cache=1 | |
5744 | fi | |
5745 | ||
24176f2c | 5746 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
a0b9e27f MB |
5747 | |
5748 | fi | |
10f2d63a VZ |
5749 | |
5750 | ||
24176f2c | 5751 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5752 | if test "$no_cache" != 1; then |
24176f2c | 5753 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5754 | fi |
5755 | ||
24176f2c | 5756 | if test "$wxUSE_TREELAYOUT" = yes; then |
a0b9e27f | 5757 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5758 | else |
a0b9e27f | 5759 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5760 | fi |
a0b9e27f | 5761 | |
8284b0c5 | 5762 | |
52127426 | 5763 | |
8284b0c5 | 5764 | |
5005acfe VZ |
5765 | enablestring= |
5766 | echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6 | |
89e6bf6d | 5767 | echo "configure:5768: checking for --${enablestring:-enable}-controls" >&5 |
10f2d63a VZ |
5768 | no_cache=0 |
5769 | # Check whether --enable-controls or --disable-controls was given. | |
5770 | if test "${enable_controls+set}" = set; then | |
5771 | enableval="$enable_controls" | |
a0b9e27f | 5772 | |
10f2d63a VZ |
5773 | if test "$enableval" = yes; then |
5774 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5775 | else | |
5776 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5777 | fi | |
a0b9e27f | 5778 | |
10f2d63a | 5779 | else |
a0b9e27f | 5780 | |
10f2d63a VZ |
5781 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5782 | if test "x$LINE" != x ; then | |
5783 | eval "DEFAULT_$LINE" | |
5784 | else | |
5785 | no_cache=1 | |
5786 | fi | |
5787 | ||
5788 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
a0b9e27f MB |
5789 | |
5790 | fi | |
10f2d63a VZ |
5791 | |
5792 | ||
5793 | eval "$ac_cv_use_controls" | |
5794 | if test "$no_cache" != 1; then | |
5795 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5796 | fi | |
5797 | ||
5798 | if test "$wxUSE_CONTROLS" = yes; then | |
a0b9e27f | 5799 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5800 | else |
a0b9e27f | 5801 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5802 | fi |
a0b9e27f | 5803 | |
10f2d63a VZ |
5804 | |
5805 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5806 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5807 | DEFAULT_wxUSE_BMPBUTTON=yes |
5808 | DEFAULT_wxUSE_BUTTON=yes | |
5809 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5810 | DEFAULT_wxUSE_CARET=yes |
5811 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5812 | DEFAULT_wxUSE_CHECKBOX=yes |
5813 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5814 | DEFAULT_wxUSE_CHOICE=yes | |
5815 | DEFAULT_wxUSE_GAUGE=yes | |
5816 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5817 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5818 | DEFAULT_wxUSE_IMAGLIST=yes |
5819 | DEFAULT_wxUSE_LISTBOX=yes | |
5820 | DEFAULT_wxUSE_LISTCTRL=yes | |
5821 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5822 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5823 | DEFAULT_wxUSE_RADIOBOX=yes |
5824 | DEFAULT_wxUSE_RADIOBTN=yes | |
5825 | DEFAULT_wxUSE_SASH=yes | |
5826 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5827 | DEFAULT_wxUSE_SLIDER=yes | |
5828 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5829 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5830 | DEFAULT_wxUSE_SPLITTER=yes |
5831 | DEFAULT_wxUSE_STATBMP=yes | |
5832 | DEFAULT_wxUSE_STATBOX=yes | |
5833 | DEFAULT_wxUSE_STATLINE=yes | |
5834 | DEFAULT_wxUSE_STATUSBAR=yes | |
5835 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5836 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5837 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5838 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5839 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5840 | DEFAULT_wxUSE_TOOLTIPS=yes |
5841 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5842 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5843 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5844 | elif test "$wxUSE_CONTROLS" = "no"; then |
5845 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5846 | DEFAULT_wxUSE_BMPBUTTON=no |
5847 | DEFAULT_wxUSE_BUTTON=no | |
5848 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5849 | DEFAULT_wxUSE_CARET=no |
5850 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5851 | DEFAULT_wxUSE_CHECKBOX=no |
5852 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5853 | DEFAULT_wxUSE_CHOICE=no | |
5854 | DEFAULT_wxUSE_GAUGE=no | |
5855 | DEFAULT_wxUSE_GRID=no | |
5856 | DEFAULT_wxUSE_NEW_GRID=no | |
5857 | DEFAULT_wxUSE_IMAGLIST=no | |
5858 | DEFAULT_wxUSE_LISTBOX=no | |
5859 | DEFAULT_wxUSE_LISTCTRL=no | |
5860 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5861 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5862 | DEFAULT_wxUSE_RADIOBOX=no |
5863 | DEFAULT_wxUSE_RADIOBTN=no | |
5864 | DEFAULT_wxUSE_SASH=no | |
5865 | DEFAULT_wxUSE_SCROLLBAR=no | |
5866 | DEFAULT_wxUSE_SLIDER=no | |
5867 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5868 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5869 | DEFAULT_wxUSE_SPLITTER=no |
5870 | DEFAULT_wxUSE_STATBMP=no | |
5871 | DEFAULT_wxUSE_STATBOX=no | |
5872 | DEFAULT_wxUSE_STATLINE=no | |
5873 | DEFAULT_wxUSE_STATUSBAR=no | |
5874 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5875 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5876 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5877 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5878 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5879 | DEFAULT_wxUSE_TOOLTIPS=no |
5880 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5881 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5882 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5883 | fi |
5884 | ||
8284b0c5 | 5885 | |
5005acfe VZ |
5886 | enablestring= |
5887 | echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6 | |
89e6bf6d | 5888 | echo "configure:5889: checking for --${enablestring:-enable}-accel" >&5 |
10f2d63a VZ |
5889 | no_cache=0 |
5890 | # Check whether --enable-accel or --disable-accel was given. | |
5891 | if test "${enable_accel+set}" = set; then | |
5892 | enableval="$enable_accel" | |
a0b9e27f | 5893 | |
10f2d63a VZ |
5894 | if test "$enableval" = yes; then |
5895 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5896 | else | |
5897 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5898 | fi | |
a0b9e27f | 5899 | |
10f2d63a | 5900 | else |
a0b9e27f | 5901 | |
10f2d63a VZ |
5902 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5903 | if test "x$LINE" != x ; then | |
5904 | eval "DEFAULT_$LINE" | |
5905 | else | |
5906 | no_cache=1 | |
5907 | fi | |
5908 | ||
5909 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
a0b9e27f MB |
5910 | |
5911 | fi | |
10f2d63a VZ |
5912 | |
5913 | ||
5914 | eval "$ac_cv_use_accel" | |
5915 | if test "$no_cache" != 1; then | |
5916 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5917 | fi | |
5918 | ||
5919 | if test "$wxUSE_ACCEL" = yes; then | |
a0b9e27f | 5920 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5921 | else |
a0b9e27f | 5922 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5923 | fi |
a0b9e27f | 5924 | |
10f2d63a | 5925 | |
5005acfe VZ |
5926 | enablestring= |
5927 | echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6 | |
89e6bf6d | 5928 | echo "configure:5929: checking for --${enablestring:-enable}-button" >&5 |
10f2d63a | 5929 | no_cache=0 |
1e6feb95 VZ |
5930 | # Check whether --enable-button or --disable-button was given. |
5931 | if test "${enable_button+set}" = set; then | |
5932 | enableval="$enable_button" | |
a0b9e27f | 5933 | |
10f2d63a | 5934 | if test "$enableval" = yes; then |
1e6feb95 | 5935 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5936 | else |
1e6feb95 | 5937 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5938 | fi |
a0b9e27f | 5939 | |
10f2d63a | 5940 | else |
a0b9e27f | 5941 | |
1e6feb95 | 5942 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5943 | if test "x$LINE" != x ; then |
5944 | eval "DEFAULT_$LINE" | |
5945 | else | |
5946 | no_cache=1 | |
5947 | fi | |
5948 | ||
1e6feb95 | 5949 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
a0b9e27f MB |
5950 | |
5951 | fi | |
10f2d63a VZ |
5952 | |
5953 | ||
1e6feb95 | 5954 | eval "$ac_cv_use_button" |
10f2d63a | 5955 | if test "$no_cache" != 1; then |
1e6feb95 | 5956 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5957 | fi |
5958 | ||
1e6feb95 | 5959 | if test "$wxUSE_BUTTON" = yes; then |
a0b9e27f | 5960 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5961 | else |
a0b9e27f | 5962 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5963 | fi |
a0b9e27f | 5964 | |
10f2d63a | 5965 | |
5005acfe VZ |
5966 | enablestring= |
5967 | echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6 | |
89e6bf6d | 5968 | echo "configure:5969: checking for --${enablestring:-enable}-bmpbutton" >&5 |
10f2d63a VZ |
5969 | no_cache=0 |
5970 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5971 | if test "${enable_bmpbutton+set}" = set; then | |
5972 | enableval="$enable_bmpbutton" | |
a0b9e27f | 5973 | |
10f2d63a VZ |
5974 | if test "$enableval" = yes; then |
5975 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5976 | else | |
5977 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5978 | fi | |
a0b9e27f | 5979 | |
10f2d63a | 5980 | else |
a0b9e27f | 5981 | |
10f2d63a VZ |
5982 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5983 | if test "x$LINE" != x ; then | |
5984 | eval "DEFAULT_$LINE" | |
5985 | else | |
5986 | no_cache=1 | |
5987 | fi | |
5988 | ||
5989 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
a0b9e27f MB |
5990 | |
5991 | fi | |
10f2d63a VZ |
5992 | |
5993 | ||
5994 | eval "$ac_cv_use_bmpbutton" | |
5995 | if test "$no_cache" != 1; then | |
5996 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5997 | fi | |
5998 | ||
5999 | if test "$wxUSE_BMPBUTTON" = yes; then | |
a0b9e27f | 6000 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6001 | else |
a0b9e27f | 6002 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6003 | fi |
a0b9e27f | 6004 | |
10f2d63a | 6005 | |
5005acfe VZ |
6006 | enablestring= |
6007 | echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6 | |
89e6bf6d | 6008 | echo "configure:6009: checking for --${enablestring:-enable}-calendar" >&5 |
1e6feb95 VZ |
6009 | no_cache=0 |
6010 | # Check whether --enable-calendar or --disable-calendar was given. | |
6011 | if test "${enable_calendar+set}" = set; then | |
6012 | enableval="$enable_calendar" | |
a0b9e27f | 6013 | |
1e6feb95 VZ |
6014 | if test "$enableval" = yes; then |
6015 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6016 | else | |
6017 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6018 | fi | |
a0b9e27f | 6019 | |
1e6feb95 | 6020 | else |
a0b9e27f | 6021 | |
1e6feb95 VZ |
6022 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6023 | if test "x$LINE" != x ; then | |
6024 | eval "DEFAULT_$LINE" | |
6025 | else | |
6026 | no_cache=1 | |
6027 | fi | |
6028 | ||
6029 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
a0b9e27f MB |
6030 | |
6031 | fi | |
1e6feb95 VZ |
6032 | |
6033 | ||
6034 | eval "$ac_cv_use_calendar" | |
6035 | if test "$no_cache" != 1; then | |
6036 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6037 | fi | |
6038 | ||
6039 | if test "$wxUSE_CALCTRL" = yes; then | |
a0b9e27f | 6040 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6041 | else |
a0b9e27f | 6042 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6043 | fi |
a0b9e27f | 6044 | |
1e6feb95 | 6045 | |
5005acfe VZ |
6046 | enablestring= |
6047 | echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6 | |
89e6bf6d | 6048 | echo "configure:6049: checking for --${enablestring:-enable}-caret" >&5 |
1e6feb95 VZ |
6049 | no_cache=0 |
6050 | # Check whether --enable-caret or --disable-caret was given. | |
6051 | if test "${enable_caret+set}" = set; then | |
6052 | enableval="$enable_caret" | |
a0b9e27f | 6053 | |
1e6feb95 VZ |
6054 | if test "$enableval" = yes; then |
6055 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6056 | else | |
6057 | ac_cv_use_caret='wxUSE_CARET=no' | |
6058 | fi | |
a0b9e27f | 6059 | |
1e6feb95 | 6060 | else |
a0b9e27f | 6061 | |
1e6feb95 VZ |
6062 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6063 | if test "x$LINE" != x ; then | |
6064 | eval "DEFAULT_$LINE" | |
6065 | else | |
6066 | no_cache=1 | |
6067 | fi | |
6068 | ||
6069 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
a0b9e27f MB |
6070 | |
6071 | fi | |
1e6feb95 VZ |
6072 | |
6073 | ||
6074 | eval "$ac_cv_use_caret" | |
6075 | if test "$no_cache" != 1; then | |
6076 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6077 | fi | |
6078 | ||
6079 | if test "$wxUSE_CARET" = yes; then | |
a0b9e27f | 6080 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6081 | else |
a0b9e27f | 6082 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6083 | fi |
a0b9e27f | 6084 | |
1e6feb95 | 6085 | |
5005acfe VZ |
6086 | enablestring= |
6087 | echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6 | |
89e6bf6d | 6088 | echo "configure:6089: checking for --${enablestring:-enable}-checkbox" >&5 |
10f2d63a VZ |
6089 | no_cache=0 |
6090 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6091 | if test "${enable_checkbox+set}" = set; then | |
6092 | enableval="$enable_checkbox" | |
a0b9e27f | 6093 | |
10f2d63a VZ |
6094 | if test "$enableval" = yes; then |
6095 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6096 | else | |
6097 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6098 | fi | |
a0b9e27f | 6099 | |
10f2d63a | 6100 | else |
a0b9e27f | 6101 | |
10f2d63a VZ |
6102 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6103 | if test "x$LINE" != x ; then | |
6104 | eval "DEFAULT_$LINE" | |
6105 | else | |
6106 | no_cache=1 | |
6107 | fi | |
6108 | ||
6109 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
a0b9e27f MB |
6110 | |
6111 | fi | |
10f2d63a VZ |
6112 | |
6113 | ||
6114 | eval "$ac_cv_use_checkbox" | |
6115 | if test "$no_cache" != 1; then | |
6116 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6117 | fi | |
6118 | ||
6119 | if test "$wxUSE_CHECKBOX" = yes; then | |
a0b9e27f | 6120 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6121 | else |
a0b9e27f | 6122 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6123 | fi |
a0b9e27f | 6124 | |
10f2d63a | 6125 | |
5005acfe VZ |
6126 | enablestring= |
6127 | echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6 | |
89e6bf6d | 6128 | echo "configure:6129: checking for --${enablestring:-enable}-checklst" >&5 |
10f2d63a VZ |
6129 | no_cache=0 |
6130 | # Check whether --enable-checklst or --disable-checklst was given. | |
6131 | if test "${enable_checklst+set}" = set; then | |
6132 | enableval="$enable_checklst" | |
a0b9e27f | 6133 | |
10f2d63a VZ |
6134 | if test "$enableval" = yes; then |
6135 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6136 | else | |
6137 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6138 | fi | |
a0b9e27f | 6139 | |
10f2d63a | 6140 | else |
a0b9e27f | 6141 | |
10f2d63a VZ |
6142 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6143 | if test "x$LINE" != x ; then | |
6144 | eval "DEFAULT_$LINE" | |
6145 | else | |
6146 | no_cache=1 | |
6147 | fi | |
6148 | ||
6149 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
a0b9e27f MB |
6150 | |
6151 | fi | |
10f2d63a VZ |
6152 | |
6153 | ||
6154 | eval "$ac_cv_use_checklst" | |
6155 | if test "$no_cache" != 1; then | |
6156 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6157 | fi | |
6158 | ||
6159 | if test "$wxUSE_CHECKLST" = yes; then | |
a0b9e27f | 6160 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6161 | else |
a0b9e27f | 6162 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6163 | fi |
a0b9e27f | 6164 | |
10f2d63a | 6165 | |
5005acfe VZ |
6166 | enablestring= |
6167 | echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6 | |
89e6bf6d | 6168 | echo "configure:6169: checking for --${enablestring:-enable}-choice" >&5 |
10f2d63a VZ |
6169 | no_cache=0 |
6170 | # Check whether --enable-choice or --disable-choice was given. | |
6171 | if test "${enable_choice+set}" = set; then | |
6172 | enableval="$enable_choice" | |
a0b9e27f | 6173 | |
10f2d63a VZ |
6174 | if test "$enableval" = yes; then |
6175 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6176 | else | |
6177 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6178 | fi | |
a0b9e27f | 6179 | |
10f2d63a | 6180 | else |
a0b9e27f | 6181 | |
10f2d63a VZ |
6182 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6183 | if test "x$LINE" != x ; then | |
6184 | eval "DEFAULT_$LINE" | |
6185 | else | |
6186 | no_cache=1 | |
6187 | fi | |
6188 | ||
6189 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
a0b9e27f MB |
6190 | |
6191 | fi | |
10f2d63a VZ |
6192 | |
6193 | ||
6194 | eval "$ac_cv_use_choice" | |
6195 | if test "$no_cache" != 1; then | |
6196 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6197 | fi | |
6198 | ||
6199 | if test "$wxUSE_CHOICE" = yes; then | |
a0b9e27f | 6200 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6201 | else |
a0b9e27f | 6202 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6203 | fi |
a0b9e27f | 6204 | |
10f2d63a | 6205 | |
5005acfe VZ |
6206 | enablestring= |
6207 | echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6 | |
89e6bf6d | 6208 | echo "configure:6209: checking for --${enablestring:-enable}-combobox" >&5 |
10f2d63a VZ |
6209 | no_cache=0 |
6210 | # Check whether --enable-combobox or --disable-combobox was given. | |
6211 | if test "${enable_combobox+set}" = set; then | |
6212 | enableval="$enable_combobox" | |
a0b9e27f | 6213 | |
10f2d63a VZ |
6214 | if test "$enableval" = yes; then |
6215 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6216 | else | |
6217 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6218 | fi | |
a0b9e27f | 6219 | |
10f2d63a | 6220 | else |
a0b9e27f | 6221 | |
10f2d63a VZ |
6222 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6223 | if test "x$LINE" != x ; then | |
6224 | eval "DEFAULT_$LINE" | |
6225 | else | |
6226 | no_cache=1 | |
6227 | fi | |
6228 | ||
6229 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
a0b9e27f MB |
6230 | |
6231 | fi | |
10f2d63a VZ |
6232 | |
6233 | ||
6234 | eval "$ac_cv_use_combobox" | |
6235 | if test "$no_cache" != 1; then | |
6236 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6237 | fi | |
6238 | ||
6239 | if test "$wxUSE_COMBOBOX" = yes; then | |
a0b9e27f | 6240 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6241 | else |
a0b9e27f | 6242 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6243 | fi |
a0b9e27f | 6244 | |
10f2d63a | 6245 | |
5005acfe VZ |
6246 | enablestring= |
6247 | echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6 | |
89e6bf6d | 6248 | echo "configure:6249: checking for --${enablestring:-enable}-gauge" >&5 |
10f2d63a VZ |
6249 | no_cache=0 |
6250 | # Check whether --enable-gauge or --disable-gauge was given. | |
6251 | if test "${enable_gauge+set}" = set; then | |
6252 | enableval="$enable_gauge" | |
a0b9e27f | 6253 | |
10f2d63a VZ |
6254 | if test "$enableval" = yes; then |
6255 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6256 | else | |
6257 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6258 | fi | |
a0b9e27f | 6259 | |
10f2d63a | 6260 | else |
a0b9e27f | 6261 | |
10f2d63a VZ |
6262 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6263 | if test "x$LINE" != x ; then | |
6264 | eval "DEFAULT_$LINE" | |
6265 | else | |
6266 | no_cache=1 | |
6267 | fi | |
6268 | ||
6269 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
a0b9e27f MB |
6270 | |
6271 | fi | |
10f2d63a VZ |
6272 | |
6273 | ||
6274 | eval "$ac_cv_use_gauge" | |
6275 | if test "$no_cache" != 1; then | |
6276 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6277 | fi | |
6278 | ||
6279 | if test "$wxUSE_GAUGE" = yes; then | |
a0b9e27f | 6280 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6281 | else |
a0b9e27f | 6282 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6283 | fi |
a0b9e27f | 6284 | |
10f2d63a | 6285 | |
5005acfe VZ |
6286 | enablestring= |
6287 | echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6 | |
89e6bf6d | 6288 | echo "configure:6289: checking for --${enablestring:-enable}-grid" >&5 |
10f2d63a VZ |
6289 | no_cache=0 |
6290 | # Check whether --enable-grid or --disable-grid was given. | |
6291 | if test "${enable_grid+set}" = set; then | |
6292 | enableval="$enable_grid" | |
a0b9e27f | 6293 | |
10f2d63a VZ |
6294 | if test "$enableval" = yes; then |
6295 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6296 | else | |
6297 | ac_cv_use_grid='wxUSE_GRID=no' | |
6298 | fi | |
a0b9e27f | 6299 | |
10f2d63a | 6300 | else |
a0b9e27f | 6301 | |
10f2d63a VZ |
6302 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6303 | if test "x$LINE" != x ; then | |
6304 | eval "DEFAULT_$LINE" | |
6305 | else | |
6306 | no_cache=1 | |
6307 | fi | |
6308 | ||
6309 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
a0b9e27f MB |
6310 | |
6311 | fi | |
10f2d63a VZ |
6312 | |
6313 | ||
6314 | eval "$ac_cv_use_grid" | |
6315 | if test "$no_cache" != 1; then | |
6316 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6317 | fi | |
6318 | ||
6319 | if test "$wxUSE_GRID" = yes; then | |
a0b9e27f | 6320 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6321 | else |
a0b9e27f | 6322 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6323 | fi |
a0b9e27f | 6324 | |
10f2d63a | 6325 | |
5005acfe VZ |
6326 | enablestring= |
6327 | echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6 | |
89e6bf6d | 6328 | echo "configure:6329: checking for --${enablestring:-enable}-newgrid" >&5 |
10f2d63a VZ |
6329 | no_cache=0 |
6330 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6331 | if test "${enable_newgrid+set}" = set; then | |
6332 | enableval="$enable_newgrid" | |
a0b9e27f | 6333 | |
10f2d63a VZ |
6334 | if test "$enableval" = yes; then |
6335 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6336 | else | |
6337 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6338 | fi | |
a0b9e27f | 6339 | |
10f2d63a | 6340 | else |
a0b9e27f | 6341 | |
10f2d63a VZ |
6342 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6343 | if test "x$LINE" != x ; then | |
6344 | eval "DEFAULT_$LINE" | |
6345 | else | |
6346 | no_cache=1 | |
6347 | fi | |
6348 | ||
6349 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
a0b9e27f MB |
6350 | |
6351 | fi | |
10f2d63a VZ |
6352 | |
6353 | ||
6354 | eval "$ac_cv_use_newgrid" | |
6355 | if test "$no_cache" != 1; then | |
6356 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6357 | fi | |
6358 | ||
6359 | if test "$wxUSE_NEW_GRID" = yes; then | |
a0b9e27f | 6360 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6361 | else |
a0b9e27f | 6362 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6363 | fi |
a0b9e27f | 6364 | |
10f2d63a | 6365 | |
5005acfe VZ |
6366 | enablestring= |
6367 | echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6 | |
89e6bf6d | 6368 | echo "configure:6369: checking for --${enablestring:-enable}-imaglist" >&5 |
10f2d63a VZ |
6369 | no_cache=0 |
6370 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6371 | if test "${enable_imaglist+set}" = set; then | |
6372 | enableval="$enable_imaglist" | |
a0b9e27f | 6373 | |
10f2d63a VZ |
6374 | if test "$enableval" = yes; then |
6375 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6376 | else | |
6377 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6378 | fi | |
a0b9e27f | 6379 | |
10f2d63a | 6380 | else |
a0b9e27f | 6381 | |
10f2d63a VZ |
6382 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6383 | if test "x$LINE" != x ; then | |
6384 | eval "DEFAULT_$LINE" | |
6385 | else | |
6386 | no_cache=1 | |
6387 | fi | |
6388 | ||
6389 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
a0b9e27f MB |
6390 | |
6391 | fi | |
10f2d63a VZ |
6392 | |
6393 | ||
6394 | eval "$ac_cv_use_imaglist" | |
6395 | if test "$no_cache" != 1; then | |
6396 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6397 | fi | |
6398 | ||
6399 | if test "$wxUSE_IMAGLIST" = yes; then | |
a0b9e27f | 6400 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6401 | else |
a0b9e27f | 6402 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6403 | fi |
a0b9e27f | 6404 | |
10f2d63a | 6405 | |
5005acfe VZ |
6406 | enablestring= |
6407 | echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6 | |
89e6bf6d | 6408 | echo "configure:6409: checking for --${enablestring:-enable}-listbox" >&5 |
10f2d63a VZ |
6409 | no_cache=0 |
6410 | # Check whether --enable-listbox or --disable-listbox was given. | |
6411 | if test "${enable_listbox+set}" = set; then | |
6412 | enableval="$enable_listbox" | |
a0b9e27f | 6413 | |
10f2d63a VZ |
6414 | if test "$enableval" = yes; then |
6415 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6416 | else | |
6417 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6418 | fi | |
a0b9e27f | 6419 | |
10f2d63a | 6420 | else |
a0b9e27f | 6421 | |
10f2d63a VZ |
6422 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6423 | if test "x$LINE" != x ; then | |
6424 | eval "DEFAULT_$LINE" | |
6425 | else | |
6426 | no_cache=1 | |
6427 | fi | |
6428 | ||
6429 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
a0b9e27f MB |
6430 | |
6431 | fi | |
10f2d63a VZ |
6432 | |
6433 | ||
6434 | eval "$ac_cv_use_listbox" | |
6435 | if test "$no_cache" != 1; then | |
6436 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6437 | fi | |
6438 | ||
6439 | if test "$wxUSE_LISTBOX" = yes; then | |
a0b9e27f | 6440 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6441 | else |
a0b9e27f | 6442 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6443 | fi |
a0b9e27f | 6444 | |
10f2d63a | 6445 | |
5005acfe VZ |
6446 | enablestring= |
6447 | echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6 | |
89e6bf6d | 6448 | echo "configure:6449: checking for --${enablestring:-enable}-listctrl" >&5 |
10f2d63a VZ |
6449 | no_cache=0 |
6450 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6451 | if test "${enable_listctrl+set}" = set; then | |
6452 | enableval="$enable_listctrl" | |
a0b9e27f | 6453 | |
10f2d63a VZ |
6454 | if test "$enableval" = yes; then |
6455 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6456 | else | |
6457 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6458 | fi | |
a0b9e27f | 6459 | |
10f2d63a | 6460 | else |
a0b9e27f | 6461 | |
10f2d63a VZ |
6462 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6463 | if test "x$LINE" != x ; then | |
6464 | eval "DEFAULT_$LINE" | |
6465 | else | |
6466 | no_cache=1 | |
6467 | fi | |
6468 | ||
6469 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
a0b9e27f MB |
6470 | |
6471 | fi | |
10f2d63a VZ |
6472 | |
6473 | ||
6474 | eval "$ac_cv_use_listctrl" | |
6475 | if test "$no_cache" != 1; then | |
6476 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6477 | fi | |
6478 | ||
6479 | if test "$wxUSE_LISTCTRL" = yes; then | |
a0b9e27f | 6480 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6481 | else |
a0b9e27f | 6482 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6483 | fi |
a0b9e27f | 6484 | |
10f2d63a | 6485 | |
5005acfe VZ |
6486 | enablestring= |
6487 | echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6 | |
89e6bf6d | 6488 | echo "configure:6489: checking for --${enablestring:-enable}-notebook" >&5 |
10f2d63a VZ |
6489 | no_cache=0 |
6490 | # Check whether --enable-notebook or --disable-notebook was given. | |
6491 | if test "${enable_notebook+set}" = set; then | |
6492 | enableval="$enable_notebook" | |
a0b9e27f | 6493 | |
10f2d63a VZ |
6494 | if test "$enableval" = yes; then |
6495 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6496 | else | |
6497 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6498 | fi | |
a0b9e27f | 6499 | |
10f2d63a | 6500 | else |
a0b9e27f | 6501 | |
10f2d63a VZ |
6502 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6503 | if test "x$LINE" != x ; then | |
6504 | eval "DEFAULT_$LINE" | |
6505 | else | |
6506 | no_cache=1 | |
6507 | fi | |
6508 | ||
6509 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
a0b9e27f MB |
6510 | |
6511 | fi | |
10f2d63a VZ |
6512 | |
6513 | ||
6514 | eval "$ac_cv_use_notebook" | |
6515 | if test "$no_cache" != 1; then | |
6516 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6517 | fi | |
6518 | ||
6519 | if test "$wxUSE_NOTEBOOK" = yes; then | |
a0b9e27f | 6520 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6521 | else |
a0b9e27f | 6522 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6523 | fi |
a0b9e27f | 6524 | |
10f2d63a | 6525 | |
5005acfe VZ |
6526 | enablestring= |
6527 | echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6 | |
89e6bf6d | 6528 | echo "configure:6529: checking for --${enablestring:-enable}-propsheet" >&5 |
24176f2c GD |
6529 | no_cache=0 |
6530 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6531 | if test "${enable_propsheet+set}" = set; then | |
6532 | enableval="$enable_propsheet" | |
a0b9e27f | 6533 | |
24176f2c GD |
6534 | if test "$enableval" = yes; then |
6535 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6536 | else | |
6537 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6538 | fi | |
a0b9e27f | 6539 | |
24176f2c | 6540 | else |
a0b9e27f | 6541 | |
24176f2c GD |
6542 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` |
6543 | if test "x$LINE" != x ; then | |
6544 | eval "DEFAULT_$LINE" | |
6545 | else | |
6546 | no_cache=1 | |
6547 | fi | |
6548 | ||
6549 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
a0b9e27f MB |
6550 | |
6551 | fi | |
24176f2c GD |
6552 | |
6553 | ||
6554 | eval "$ac_cv_use_propsheet" | |
6555 | if test "$no_cache" != 1; then | |
6556 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6557 | fi | |
6558 | ||
6559 | if test "$wxUSE_PROPSHEET" = yes; then | |
a0b9e27f | 6560 | echo "$ac_t""yes" 1>&6 |
24176f2c | 6561 | else |
a0b9e27f | 6562 | echo "$ac_t""no" 1>&6 |
24176f2c | 6563 | fi |
a0b9e27f | 6564 | |
24176f2c | 6565 | |
5005acfe VZ |
6566 | enablestring= |
6567 | echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6 | |
89e6bf6d | 6568 | echo "configure:6569: checking for --${enablestring:-enable}-radiobox" >&5 |
10f2d63a VZ |
6569 | no_cache=0 |
6570 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6571 | if test "${enable_radiobox+set}" = set; then | |
6572 | enableval="$enable_radiobox" | |
a0b9e27f | 6573 | |
10f2d63a VZ |
6574 | if test "$enableval" = yes; then |
6575 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6576 | else | |
6577 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6578 | fi | |
a0b9e27f | 6579 | |
10f2d63a | 6580 | else |
a0b9e27f | 6581 | |
10f2d63a VZ |
6582 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6583 | if test "x$LINE" != x ; then | |
6584 | eval "DEFAULT_$LINE" | |
6585 | else | |
6586 | no_cache=1 | |
6587 | fi | |
6588 | ||
6589 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
a0b9e27f MB |
6590 | |
6591 | fi | |
10f2d63a VZ |
6592 | |
6593 | ||
6594 | eval "$ac_cv_use_radiobox" | |
6595 | if test "$no_cache" != 1; then | |
6596 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6597 | fi | |
6598 | ||
6599 | if test "$wxUSE_RADIOBOX" = yes; then | |
a0b9e27f | 6600 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6601 | else |
a0b9e27f | 6602 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6603 | fi |
a0b9e27f | 6604 | |
10f2d63a | 6605 | |
5005acfe VZ |
6606 | enablestring= |
6607 | echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6 | |
89e6bf6d | 6608 | echo "configure:6609: checking for --${enablestring:-enable}-radiobtn" >&5 |
10f2d63a VZ |
6609 | no_cache=0 |
6610 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6611 | if test "${enable_radiobtn+set}" = set; then | |
6612 | enableval="$enable_radiobtn" | |
a0b9e27f | 6613 | |
10f2d63a VZ |
6614 | if test "$enableval" = yes; then |
6615 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6616 | else | |
6617 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6618 | fi | |
a0b9e27f | 6619 | |
10f2d63a | 6620 | else |
a0b9e27f | 6621 | |
10f2d63a VZ |
6622 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6623 | if test "x$LINE" != x ; then | |
6624 | eval "DEFAULT_$LINE" | |
6625 | else | |
6626 | no_cache=1 | |
6627 | fi | |
6628 | ||
6629 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
a0b9e27f MB |
6630 | |
6631 | fi | |
10f2d63a VZ |
6632 | |
6633 | ||
6634 | eval "$ac_cv_use_radiobtn" | |
6635 | if test "$no_cache" != 1; then | |
6636 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6637 | fi | |
6638 | ||
6639 | if test "$wxUSE_RADIOBTN" = yes; then | |
a0b9e27f | 6640 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6641 | else |
a0b9e27f | 6642 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6643 | fi |
a0b9e27f | 6644 | |
10f2d63a | 6645 | |
5005acfe VZ |
6646 | enablestring= |
6647 | echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6 | |
89e6bf6d | 6648 | echo "configure:6649: checking for --${enablestring:-enable}-sash" >&5 |
10f2d63a VZ |
6649 | no_cache=0 |
6650 | # Check whether --enable-sash or --disable-sash was given. | |
6651 | if test "${enable_sash+set}" = set; then | |
6652 | enableval="$enable_sash" | |
a0b9e27f | 6653 | |
10f2d63a VZ |
6654 | if test "$enableval" = yes; then |
6655 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6656 | else | |
6657 | ac_cv_use_sash='wxUSE_SASH=no' | |
6658 | fi | |
a0b9e27f | 6659 | |
10f2d63a | 6660 | else |
a0b9e27f | 6661 | |
10f2d63a VZ |
6662 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6663 | if test "x$LINE" != x ; then | |
6664 | eval "DEFAULT_$LINE" | |
6665 | else | |
6666 | no_cache=1 | |
6667 | fi | |
6668 | ||
6669 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
a0b9e27f MB |
6670 | |
6671 | fi | |
10f2d63a VZ |
6672 | |
6673 | ||
6674 | eval "$ac_cv_use_sash" | |
6675 | if test "$no_cache" != 1; then | |
6676 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6677 | fi | |
6678 | ||
6679 | if test "$wxUSE_SASH" = yes; then | |
a0b9e27f | 6680 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6681 | else |
a0b9e27f | 6682 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6683 | fi |
a0b9e27f | 6684 | |
10f2d63a | 6685 | |
5005acfe VZ |
6686 | enablestring= |
6687 | echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6 | |
89e6bf6d | 6688 | echo "configure:6689: checking for --${enablestring:-enable}-scrollbar" >&5 |
10f2d63a VZ |
6689 | no_cache=0 |
6690 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6691 | if test "${enable_scrollbar+set}" = set; then | |
6692 | enableval="$enable_scrollbar" | |
a0b9e27f | 6693 | |
10f2d63a VZ |
6694 | if test "$enableval" = yes; then |
6695 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6696 | else | |
6697 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6698 | fi | |
a0b9e27f | 6699 | |
10f2d63a | 6700 | else |
a0b9e27f | 6701 | |
10f2d63a VZ |
6702 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6703 | if test "x$LINE" != x ; then | |
6704 | eval "DEFAULT_$LINE" | |
6705 | else | |
6706 | no_cache=1 | |
6707 | fi | |
6708 | ||
6709 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
a0b9e27f MB |
6710 | |
6711 | fi | |
10f2d63a VZ |
6712 | |
6713 | ||
6714 | eval "$ac_cv_use_scrollbar" | |
6715 | if test "$no_cache" != 1; then | |
6716 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6717 | fi | |
6718 | ||
6719 | if test "$wxUSE_SCROLLBAR" = yes; then | |
a0b9e27f | 6720 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6721 | else |
a0b9e27f | 6722 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6723 | fi |
a0b9e27f | 6724 | |
10f2d63a | 6725 | |
5005acfe VZ |
6726 | enablestring= |
6727 | echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6 | |
89e6bf6d | 6728 | echo "configure:6729: checking for --${enablestring:-enable}-slider" >&5 |
10f2d63a VZ |
6729 | no_cache=0 |
6730 | # Check whether --enable-slider or --disable-slider was given. | |
6731 | if test "${enable_slider+set}" = set; then | |
6732 | enableval="$enable_slider" | |
a0b9e27f | 6733 | |
10f2d63a VZ |
6734 | if test "$enableval" = yes; then |
6735 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6736 | else | |
6737 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6738 | fi | |
a0b9e27f | 6739 | |
10f2d63a | 6740 | else |
a0b9e27f | 6741 | |
10f2d63a VZ |
6742 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6743 | if test "x$LINE" != x ; then | |
6744 | eval "DEFAULT_$LINE" | |
6745 | else | |
6746 | no_cache=1 | |
6747 | fi | |
6748 | ||
6749 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
a0b9e27f MB |
6750 | |
6751 | fi | |
10f2d63a VZ |
6752 | |
6753 | ||
6754 | eval "$ac_cv_use_slider" | |
6755 | if test "$no_cache" != 1; then | |
6756 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6757 | fi | |
6758 | ||
6759 | if test "$wxUSE_SLIDER" = yes; then | |
a0b9e27f | 6760 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6761 | else |
a0b9e27f | 6762 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6763 | fi |
a0b9e27f | 6764 | |
10f2d63a | 6765 | |
5005acfe VZ |
6766 | enablestring= |
6767 | echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6 | |
89e6bf6d | 6768 | echo "configure:6769: checking for --${enablestring:-enable}-spinbtn" >&5 |
10f2d63a VZ |
6769 | no_cache=0 |
6770 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6771 | if test "${enable_spinbtn+set}" = set; then | |
6772 | enableval="$enable_spinbtn" | |
a0b9e27f | 6773 | |
10f2d63a VZ |
6774 | if test "$enableval" = yes; then |
6775 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6776 | else | |
6777 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6778 | fi | |
a0b9e27f | 6779 | |
10f2d63a | 6780 | else |
a0b9e27f | 6781 | |
10f2d63a VZ |
6782 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6783 | if test "x$LINE" != x ; then | |
6784 | eval "DEFAULT_$LINE" | |
6785 | else | |
6786 | no_cache=1 | |
6787 | fi | |
6788 | ||
6789 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
a0b9e27f MB |
6790 | |
6791 | fi | |
10f2d63a VZ |
6792 | |
6793 | ||
6794 | eval "$ac_cv_use_spinbtn" | |
6795 | if test "$no_cache" != 1; then | |
6796 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6797 | fi | |
6798 | ||
6799 | if test "$wxUSE_SPINBTN" = yes; then | |
a0b9e27f | 6800 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6801 | else |
a0b9e27f | 6802 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6803 | fi |
a0b9e27f | 6804 | |
10f2d63a | 6805 | |
5005acfe VZ |
6806 | enablestring= |
6807 | echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6 | |
89e6bf6d | 6808 | echo "configure:6809: checking for --${enablestring:-enable}-spinctrl" >&5 |
56cfaa52 RR |
6809 | no_cache=0 |
6810 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6811 | if test "${enable_spinctrl+set}" = set; then | |
6812 | enableval="$enable_spinctrl" | |
a0b9e27f | 6813 | |
56cfaa52 RR |
6814 | if test "$enableval" = yes; then |
6815 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6816 | else | |
6817 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6818 | fi | |
a0b9e27f | 6819 | |
56cfaa52 | 6820 | else |
a0b9e27f | 6821 | |
56cfaa52 RR |
6822 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6823 | if test "x$LINE" != x ; then | |
6824 | eval "DEFAULT_$LINE" | |
6825 | else | |
6826 | no_cache=1 | |
6827 | fi | |
6828 | ||
6829 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
a0b9e27f MB |
6830 | |
6831 | fi | |
56cfaa52 RR |
6832 | |
6833 | ||
6834 | eval "$ac_cv_use_spinctrl" | |
6835 | if test "$no_cache" != 1; then | |
6836 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6837 | fi | |
6838 | ||
6839 | if test "$wxUSE_SPINCTRL" = yes; then | |
a0b9e27f | 6840 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6841 | else |
a0b9e27f | 6842 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6843 | fi |
a0b9e27f | 6844 | |
56cfaa52 | 6845 | |
5005acfe VZ |
6846 | enablestring= |
6847 | echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6 | |
89e6bf6d | 6848 | echo "configure:6849: checking for --${enablestring:-enable}-splitter" >&5 |
10f2d63a VZ |
6849 | no_cache=0 |
6850 | # Check whether --enable-splitter or --disable-splitter was given. | |
6851 | if test "${enable_splitter+set}" = set; then | |
6852 | enableval="$enable_splitter" | |
a0b9e27f | 6853 | |
10f2d63a VZ |
6854 | if test "$enableval" = yes; then |
6855 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6856 | else | |
6857 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6858 | fi | |
a0b9e27f | 6859 | |
10f2d63a | 6860 | else |
a0b9e27f | 6861 | |
10f2d63a VZ |
6862 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6863 | if test "x$LINE" != x ; then | |
6864 | eval "DEFAULT_$LINE" | |
6865 | else | |
6866 | no_cache=1 | |
6867 | fi | |
6868 | ||
6869 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
a0b9e27f MB |
6870 | |
6871 | fi | |
10f2d63a VZ |
6872 | |
6873 | ||
6874 | eval "$ac_cv_use_splitter" | |
6875 | if test "$no_cache" != 1; then | |
6876 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6877 | fi | |
6878 | ||
6879 | if test "$wxUSE_SPLITTER" = yes; then | |
a0b9e27f | 6880 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6881 | else |
a0b9e27f | 6882 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6883 | fi |
a0b9e27f | 6884 | |
10f2d63a | 6885 | |
5005acfe VZ |
6886 | enablestring= |
6887 | echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6 | |
89e6bf6d | 6888 | echo "configure:6889: checking for --${enablestring:-enable}-statbmp" >&5 |
10f2d63a VZ |
6889 | no_cache=0 |
6890 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6891 | if test "${enable_statbmp+set}" = set; then | |
6892 | enableval="$enable_statbmp" | |
a0b9e27f | 6893 | |
10f2d63a VZ |
6894 | if test "$enableval" = yes; then |
6895 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6896 | else | |
6897 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6898 | fi | |
a0b9e27f | 6899 | |
10f2d63a | 6900 | else |
a0b9e27f | 6901 | |
10f2d63a VZ |
6902 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6903 | if test "x$LINE" != x ; then | |
6904 | eval "DEFAULT_$LINE" | |
6905 | else | |
6906 | no_cache=1 | |
6907 | fi | |
6908 | ||
6909 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
a0b9e27f MB |
6910 | |
6911 | fi | |
10f2d63a VZ |
6912 | |
6913 | ||
6914 | eval "$ac_cv_use_statbmp" | |
6915 | if test "$no_cache" != 1; then | |
6916 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6917 | fi | |
6918 | ||
6919 | if test "$wxUSE_STATBMP" = yes; then | |
a0b9e27f | 6920 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6921 | else |
a0b9e27f | 6922 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6923 | fi |
a0b9e27f | 6924 | |
10f2d63a | 6925 | |
5005acfe VZ |
6926 | enablestring= |
6927 | echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6 | |
89e6bf6d | 6928 | echo "configure:6929: checking for --${enablestring:-enable}-statbox" >&5 |
10f2d63a VZ |
6929 | no_cache=0 |
6930 | # Check whether --enable-statbox or --disable-statbox was given. | |
6931 | if test "${enable_statbox+set}" = set; then | |
6932 | enableval="$enable_statbox" | |
a0b9e27f | 6933 | |
10f2d63a VZ |
6934 | if test "$enableval" = yes; then |
6935 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6936 | else | |
6937 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6938 | fi | |
a0b9e27f | 6939 | |
10f2d63a | 6940 | else |
a0b9e27f | 6941 | |
10f2d63a VZ |
6942 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6943 | if test "x$LINE" != x ; then | |
6944 | eval "DEFAULT_$LINE" | |
6945 | else | |
6946 | no_cache=1 | |
6947 | fi | |
6948 | ||
6949 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
a0b9e27f MB |
6950 | |
6951 | fi | |
10f2d63a VZ |
6952 | |
6953 | ||
6954 | eval "$ac_cv_use_statbox" | |
6955 | if test "$no_cache" != 1; then | |
6956 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6957 | fi | |
6958 | ||
6959 | if test "$wxUSE_STATBOX" = yes; then | |
a0b9e27f | 6960 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6961 | else |
a0b9e27f | 6962 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6963 | fi |
a0b9e27f | 6964 | |
10f2d63a | 6965 | |
5005acfe VZ |
6966 | enablestring= |
6967 | echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6 | |
89e6bf6d | 6968 | echo "configure:6969: checking for --${enablestring:-enable}-statline" >&5 |
10f2d63a VZ |
6969 | no_cache=0 |
6970 | # Check whether --enable-statline or --disable-statline was given. | |
6971 | if test "${enable_statline+set}" = set; then | |
6972 | enableval="$enable_statline" | |
a0b9e27f | 6973 | |
10f2d63a VZ |
6974 | if test "$enableval" = yes; then |
6975 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6976 | else | |
6977 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6978 | fi | |
a0b9e27f | 6979 | |
10f2d63a | 6980 | else |
a0b9e27f | 6981 | |
10f2d63a VZ |
6982 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6983 | if test "x$LINE" != x ; then | |
6984 | eval "DEFAULT_$LINE" | |
6985 | else | |
6986 | no_cache=1 | |
6987 | fi | |
6988 | ||
6989 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
a0b9e27f MB |
6990 | |
6991 | fi | |
10f2d63a VZ |
6992 | |
6993 | ||
6994 | eval "$ac_cv_use_statline" | |
6995 | if test "$no_cache" != 1; then | |
6996 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6997 | fi | |
6998 | ||
6999 | if test "$wxUSE_STATLINE" = yes; then | |
a0b9e27f | 7000 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7001 | else |
a0b9e27f | 7002 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7003 | fi |
a0b9e27f | 7004 | |
10f2d63a | 7005 | |
5005acfe VZ |
7006 | enablestring= |
7007 | echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6 | |
89e6bf6d | 7008 | echo "configure:7009: checking for --${enablestring:-enable}-stattext" >&5 |
1e6feb95 VZ |
7009 | no_cache=0 |
7010 | # Check whether --enable-stattext or --disable-stattext was given. | |
7011 | if test "${enable_stattext+set}" = set; then | |
7012 | enableval="$enable_stattext" | |
a0b9e27f | 7013 | |
1e6feb95 VZ |
7014 | if test "$enableval" = yes; then |
7015 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7016 | else | |
7017 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7018 | fi | |
a0b9e27f | 7019 | |
1e6feb95 | 7020 | else |
a0b9e27f | 7021 | |
1e6feb95 VZ |
7022 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7023 | if test "x$LINE" != x ; then | |
7024 | eval "DEFAULT_$LINE" | |
7025 | else | |
7026 | no_cache=1 | |
7027 | fi | |
7028 | ||
7029 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
a0b9e27f MB |
7030 | |
7031 | fi | |
1e6feb95 VZ |
7032 | |
7033 | ||
7034 | eval "$ac_cv_use_stattext" | |
7035 | if test "$no_cache" != 1; then | |
7036 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7037 | fi | |
7038 | ||
7039 | if test "$wxUSE_STATTEXT" = yes; then | |
a0b9e27f | 7040 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7041 | else |
a0b9e27f | 7042 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7043 | fi |
a0b9e27f | 7044 | |
1e6feb95 | 7045 | |
5005acfe VZ |
7046 | enablestring= |
7047 | echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6 | |
89e6bf6d | 7048 | echo "configure:7049: checking for --${enablestring:-enable}-statusbar" >&5 |
10f2d63a VZ |
7049 | no_cache=0 |
7050 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7051 | if test "${enable_statusbar+set}" = set; then | |
7052 | enableval="$enable_statusbar" | |
a0b9e27f | 7053 | |
10f2d63a VZ |
7054 | if test "$enableval" = yes; then |
7055 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7056 | else | |
7057 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7058 | fi | |
a0b9e27f | 7059 | |
10f2d63a | 7060 | else |
a0b9e27f | 7061 | |
10f2d63a VZ |
7062 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7063 | if test "x$LINE" != x ; then | |
7064 | eval "DEFAULT_$LINE" | |
7065 | else | |
7066 | no_cache=1 | |
7067 | fi | |
7068 | ||
7069 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
a0b9e27f MB |
7070 | |
7071 | fi | |
10f2d63a VZ |
7072 | |
7073 | ||
7074 | eval "$ac_cv_use_statusbar" | |
7075 | if test "$no_cache" != 1; then | |
7076 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7077 | fi | |
7078 | ||
7079 | if test "$wxUSE_STATUSBAR" = yes; then | |
a0b9e27f | 7080 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7081 | else |
a0b9e27f | 7082 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7083 | fi |
a0b9e27f | 7084 | |
10f2d63a | 7085 | |
5005acfe VZ |
7086 | enablestring= |
7087 | echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6 | |
89e6bf6d | 7088 | echo "configure:7089: checking for --${enablestring:-enable}-tabdialog" >&5 |
10f2d63a VZ |
7089 | no_cache=0 |
7090 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7091 | if test "${enable_tabdialog+set}" = set; then | |
7092 | enableval="$enable_tabdialog" | |
a0b9e27f | 7093 | |
10f2d63a VZ |
7094 | if test "$enableval" = yes; then |
7095 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7096 | else | |
7097 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7098 | fi | |
a0b9e27f | 7099 | |
10f2d63a | 7100 | else |
a0b9e27f | 7101 | |
10f2d63a VZ |
7102 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7103 | if test "x$LINE" != x ; then | |
7104 | eval "DEFAULT_$LINE" | |
7105 | else | |
7106 | no_cache=1 | |
7107 | fi | |
7108 | ||
7109 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
a0b9e27f MB |
7110 | |
7111 | fi | |
10f2d63a VZ |
7112 | |
7113 | ||
7114 | eval "$ac_cv_use_tabdialog" | |
7115 | if test "$no_cache" != 1; then | |
7116 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7117 | fi | |
7118 | ||
7119 | if test "$wxUSE_TABDIALOG" = yes; then | |
a0b9e27f | 7120 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7121 | else |
a0b9e27f | 7122 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7123 | fi |
a0b9e27f | 7124 | |
10f2d63a | 7125 | |
5005acfe VZ |
7126 | enablestring= |
7127 | echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6 | |
89e6bf6d | 7128 | echo "configure:7129: checking for --${enablestring:-enable}-textctrl" >&5 |
1e6feb95 VZ |
7129 | no_cache=0 |
7130 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7131 | if test "${enable_textctrl+set}" = set; then | |
7132 | enableval="$enable_textctrl" | |
a0b9e27f | 7133 | |
1e6feb95 VZ |
7134 | if test "$enableval" = yes; then |
7135 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7136 | else | |
7137 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7138 | fi | |
a0b9e27f | 7139 | |
1e6feb95 | 7140 | else |
a0b9e27f | 7141 | |
1e6feb95 VZ |
7142 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7143 | if test "x$LINE" != x ; then | |
7144 | eval "DEFAULT_$LINE" | |
7145 | else | |
7146 | no_cache=1 | |
7147 | fi | |
7148 | ||
7149 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
a0b9e27f MB |
7150 | |
7151 | fi | |
1e6feb95 VZ |
7152 | |
7153 | ||
7154 | eval "$ac_cv_use_textctrl" | |
7155 | if test "$no_cache" != 1; then | |
7156 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7157 | fi | |
7158 | ||
7159 | if test "$wxUSE_TEXTCTRL" = yes; then | |
a0b9e27f | 7160 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7161 | else |
a0b9e27f | 7162 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7163 | fi |
a0b9e27f | 7164 | |
1e6feb95 | 7165 | |
5005acfe VZ |
7166 | enablestring= |
7167 | echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6 | |
89e6bf6d | 7168 | echo "configure:7169: checking for --${enablestring:-enable}-togglebtn" >&5 |
1db8dc4a VZ |
7169 | no_cache=0 |
7170 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7171 | if test "${enable_togglebtn+set}" = set; then | |
7172 | enableval="$enable_togglebtn" | |
a0b9e27f | 7173 | |
1db8dc4a VZ |
7174 | if test "$enableval" = yes; then |
7175 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7176 | else | |
7177 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7178 | fi | |
a0b9e27f | 7179 | |
1db8dc4a | 7180 | else |
a0b9e27f | 7181 | |
1db8dc4a VZ |
7182 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7183 | if test "x$LINE" != x ; then | |
7184 | eval "DEFAULT_$LINE" | |
7185 | else | |
7186 | no_cache=1 | |
7187 | fi | |
7188 | ||
7189 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
a0b9e27f MB |
7190 | |
7191 | fi | |
1db8dc4a VZ |
7192 | |
7193 | ||
7194 | eval "$ac_cv_use_togglebtn" | |
7195 | if test "$no_cache" != 1; then | |
7196 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7197 | fi | |
7198 | ||
7199 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
a0b9e27f | 7200 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7201 | else |
a0b9e27f | 7202 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7203 | fi |
a0b9e27f | 7204 | |
1db8dc4a | 7205 | |
5005acfe VZ |
7206 | enablestring= |
7207 | echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6 | |
89e6bf6d | 7208 | echo "configure:7209: checking for --${enablestring:-enable}-toolbar" >&5 |
10f2d63a VZ |
7209 | no_cache=0 |
7210 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7211 | if test "${enable_toolbar+set}" = set; then | |
7212 | enableval="$enable_toolbar" | |
a0b9e27f | 7213 | |
10f2d63a VZ |
7214 | if test "$enableval" = yes; then |
7215 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7216 | else | |
7217 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7218 | fi | |
a0b9e27f | 7219 | |
10f2d63a | 7220 | else |
a0b9e27f | 7221 | |
10f2d63a VZ |
7222 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7223 | if test "x$LINE" != x ; then | |
7224 | eval "DEFAULT_$LINE" | |
7225 | else | |
7226 | no_cache=1 | |
7227 | fi | |
7228 | ||
7229 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
a0b9e27f MB |
7230 | |
7231 | fi | |
10f2d63a VZ |
7232 | |
7233 | ||
7234 | eval "$ac_cv_use_toolbar" | |
7235 | if test "$no_cache" != 1; then | |
7236 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7237 | fi | |
7238 | ||
7239 | if test "$wxUSE_TOOLBAR" = yes; then | |
a0b9e27f | 7240 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7241 | else |
a0b9e27f | 7242 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7243 | fi |
a0b9e27f | 7244 | |
10f2d63a | 7245 | |
5005acfe VZ |
7246 | enablestring= |
7247 | echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6 | |
89e6bf6d | 7248 | echo "configure:7249: checking for --${enablestring:-enable}-tbarnative" >&5 |
360d6699 VZ |
7249 | no_cache=0 |
7250 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7251 | if test "${enable_tbarnative+set}" = set; then | |
7252 | enableval="$enable_tbarnative" | |
a0b9e27f | 7253 | |
360d6699 VZ |
7254 | if test "$enableval" = yes; then |
7255 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7256 | else | |
7257 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7258 | fi | |
a0b9e27f | 7259 | |
360d6699 | 7260 | else |
a0b9e27f | 7261 | |
360d6699 VZ |
7262 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7263 | if test "x$LINE" != x ; then | |
7264 | eval "DEFAULT_$LINE" | |
7265 | else | |
7266 | no_cache=1 | |
7267 | fi | |
7268 | ||
7269 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
a0b9e27f MB |
7270 | |
7271 | fi | |
360d6699 VZ |
7272 | |
7273 | ||
7274 | eval "$ac_cv_use_tbarnative" | |
7275 | if test "$no_cache" != 1; then | |
7276 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7277 | fi | |
7278 | ||
7279 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
a0b9e27f | 7280 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7281 | else |
a0b9e27f | 7282 | echo "$ac_t""no" 1>&6 |
360d6699 | 7283 | fi |
a0b9e27f | 7284 | |
360d6699 | 7285 | |
5005acfe VZ |
7286 | enablestring= |
7287 | echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6 | |
89e6bf6d | 7288 | echo "configure:7289: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
360d6699 VZ |
7289 | no_cache=0 |
7290 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7291 | if test "${enable_tbarsmpl+set}" = set; then | |
7292 | enableval="$enable_tbarsmpl" | |
a0b9e27f | 7293 | |
360d6699 VZ |
7294 | if test "$enableval" = yes; then |
7295 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7296 | else | |
7297 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7298 | fi | |
a0b9e27f | 7299 | |
360d6699 | 7300 | else |
a0b9e27f | 7301 | |
360d6699 VZ |
7302 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7303 | if test "x$LINE" != x ; then | |
7304 | eval "DEFAULT_$LINE" | |
7305 | else | |
7306 | no_cache=1 | |
7307 | fi | |
7308 | ||
7309 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
a0b9e27f MB |
7310 | |
7311 | fi | |
360d6699 VZ |
7312 | |
7313 | ||
7314 | eval "$ac_cv_use_tbarsmpl" | |
7315 | if test "$no_cache" != 1; then | |
7316 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7317 | fi | |
7318 | ||
7319 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
a0b9e27f | 7320 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7321 | else |
a0b9e27f | 7322 | echo "$ac_t""no" 1>&6 |
360d6699 | 7323 | fi |
a0b9e27f | 7324 | |
360d6699 | 7325 | |
5005acfe VZ |
7326 | enablestring= |
7327 | echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6 | |
89e6bf6d | 7328 | echo "configure:7329: checking for --${enablestring:-enable}-treectrl" >&5 |
10f2d63a VZ |
7329 | no_cache=0 |
7330 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7331 | if test "${enable_treectrl+set}" = set; then | |
7332 | enableval="$enable_treectrl" | |
a0b9e27f | 7333 | |
10f2d63a VZ |
7334 | if test "$enableval" = yes; then |
7335 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7336 | else | |
7337 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7338 | fi | |
a0b9e27f | 7339 | |
10f2d63a | 7340 | else |
a0b9e27f | 7341 | |
10f2d63a VZ |
7342 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7343 | if test "x$LINE" != x ; then | |
7344 | eval "DEFAULT_$LINE" | |
7345 | else | |
7346 | no_cache=1 | |
7347 | fi | |
7348 | ||
7349 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
a0b9e27f MB |
7350 | |
7351 | fi | |
10f2d63a VZ |
7352 | |
7353 | ||
1e6feb95 VZ |
7354 | eval "$ac_cv_use_treectrl" |
7355 | if test "$no_cache" != 1; then | |
7356 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7357 | fi | |
7358 | ||
7359 | if test "$wxUSE_TREECTRL" = yes; then | |
a0b9e27f | 7360 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7361 | else |
a0b9e27f | 7362 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7363 | fi |
a0b9e27f | 7364 | |
1e6feb95 | 7365 | |
5005acfe VZ |
7366 | enablestring= |
7367 | echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6 | |
89e6bf6d | 7368 | echo "configure:7369: checking for --${enablestring:-enable}-tipwindow" >&5 |
9926e4a4 VZ |
7369 | no_cache=0 |
7370 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7371 | if test "${enable_tipwindow+set}" = set; then | |
7372 | enableval="$enable_tipwindow" | |
a0b9e27f | 7373 | |
9926e4a4 VZ |
7374 | if test "$enableval" = yes; then |
7375 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7376 | else | |
7377 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7378 | fi | |
a0b9e27f | 7379 | |
9926e4a4 | 7380 | else |
a0b9e27f | 7381 | |
9926e4a4 VZ |
7382 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7383 | if test "x$LINE" != x ; then | |
7384 | eval "DEFAULT_$LINE" | |
7385 | else | |
7386 | no_cache=1 | |
7387 | fi | |
7388 | ||
7389 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
a0b9e27f MB |
7390 | |
7391 | fi | |
9926e4a4 VZ |
7392 | |
7393 | ||
7394 | eval "$ac_cv_use_tipwindow" | |
7395 | if test "$no_cache" != 1; then | |
7396 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7397 | fi | |
7398 | ||
7399 | if test "$wxUSE_TIPWINDOW" = yes; then | |
a0b9e27f | 7400 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7401 | else |
a0b9e27f | 7402 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7403 | fi |
a0b9e27f | 7404 | |
9926e4a4 | 7405 | |
5005acfe VZ |
7406 | enablestring= |
7407 | echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6 | |
89e6bf6d | 7408 | echo "configure:7409: checking for --${enablestring:-enable}-popupwin" >&5 |
9f41d601 RR |
7409 | no_cache=0 |
7410 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7411 | if test "${enable_popupwin+set}" = set; then | |
7412 | enableval="$enable_popupwin" | |
a0b9e27f | 7413 | |
9f41d601 RR |
7414 | if test "$enableval" = yes; then |
7415 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7416 | else | |
7417 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7418 | fi | |
a0b9e27f | 7419 | |
9f41d601 | 7420 | else |
a0b9e27f | 7421 | |
9f41d601 RR |
7422 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7423 | if test "x$LINE" != x ; then | |
7424 | eval "DEFAULT_$LINE" | |
7425 | else | |
7426 | no_cache=1 | |
7427 | fi | |
7428 | ||
7429 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
a0b9e27f MB |
7430 | |
7431 | fi | |
9f41d601 RR |
7432 | |
7433 | ||
7434 | eval "$ac_cv_use_popupwin" | |
7435 | if test "$no_cache" != 1; then | |
7436 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7437 | fi | |
7438 | ||
7439 | if test "$wxUSE_POPUPWIN" = yes; then | |
a0b9e27f | 7440 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7441 | else |
a0b9e27f | 7442 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7443 | fi |
a0b9e27f | 7444 | |
52127426 | 7445 | |
8284b0c5 MB |
7446 | |
7447 | ||
5005acfe VZ |
7448 | enablestring= |
7449 | echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6 | |
89e6bf6d | 7450 | echo "configure:7451: checking for --${enablestring:-enable}-commondlg" >&5 |
1e6feb95 VZ |
7451 | no_cache=0 |
7452 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7453 | if test "${enable_commondlg+set}" = set; then | |
7454 | enableval="$enable_commondlg" | |
a0b9e27f | 7455 | |
1e6feb95 VZ |
7456 | if test "$enableval" = yes; then |
7457 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7458 | else | |
7459 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7460 | fi | |
a0b9e27f | 7461 | |
1e6feb95 | 7462 | else |
a0b9e27f | 7463 | |
1e6feb95 VZ |
7464 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7465 | if test "x$LINE" != x ; then | |
7466 | eval "DEFAULT_$LINE" | |
7467 | else | |
7468 | no_cache=1 | |
7469 | fi | |
7470 | ||
7471 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
a0b9e27f MB |
7472 | |
7473 | fi | |
1e6feb95 VZ |
7474 | |
7475 | ||
7476 | eval "$ac_cv_use_commondlg" | |
7477 | if test "$no_cache" != 1; then | |
7478 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7479 | fi | |
7480 | ||
7481 | if test "$wxUSE_COMMONDLGS" = yes; then | |
a0b9e27f | 7482 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7483 | else |
a0b9e27f | 7484 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7485 | fi |
a0b9e27f | 7486 | |
1e6feb95 | 7487 | |
5005acfe VZ |
7488 | enablestring= |
7489 | echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6 | |
89e6bf6d | 7490 | echo "configure:7491: checking for --${enablestring:-enable}-choicedlg" >&5 |
1e6feb95 VZ |
7491 | no_cache=0 |
7492 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7493 | if test "${enable_choicedlg+set}" = set; then | |
7494 | enableval="$enable_choicedlg" | |
a0b9e27f | 7495 | |
1e6feb95 VZ |
7496 | if test "$enableval" = yes; then |
7497 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7498 | else | |
7499 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7500 | fi | |
a0b9e27f | 7501 | |
1e6feb95 | 7502 | else |
a0b9e27f | 7503 | |
1e6feb95 VZ |
7504 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7505 | if test "x$LINE" != x ; then | |
7506 | eval "DEFAULT_$LINE" | |
7507 | else | |
7508 | no_cache=1 | |
7509 | fi | |
7510 | ||
7511 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
a0b9e27f MB |
7512 | |
7513 | fi | |
1e6feb95 VZ |
7514 | |
7515 | ||
7516 | eval "$ac_cv_use_choicedlg" | |
7517 | if test "$no_cache" != 1; then | |
7518 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7519 | fi | |
7520 | ||
7521 | if test "$wxUSE_CHOICEDLG" = yes; then | |
a0b9e27f | 7522 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7523 | else |
a0b9e27f | 7524 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7525 | fi |
a0b9e27f | 7526 | |
1e6feb95 | 7527 | |
5005acfe VZ |
7528 | enablestring= |
7529 | echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6 | |
89e6bf6d | 7530 | echo "configure:7531: checking for --${enablestring:-enable}-coldlg" >&5 |
1e6feb95 VZ |
7531 | no_cache=0 |
7532 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7533 | if test "${enable_coldlg+set}" = set; then | |
7534 | enableval="$enable_coldlg" | |
a0b9e27f | 7535 | |
1e6feb95 VZ |
7536 | if test "$enableval" = yes; then |
7537 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7538 | else | |
7539 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7540 | fi | |
a0b9e27f | 7541 | |
1e6feb95 | 7542 | else |
a0b9e27f | 7543 | |
1e6feb95 VZ |
7544 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7545 | if test "x$LINE" != x ; then | |
7546 | eval "DEFAULT_$LINE" | |
7547 | else | |
7548 | no_cache=1 | |
7549 | fi | |
7550 | ||
7551 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
a0b9e27f MB |
7552 | |
7553 | fi | |
1e6feb95 VZ |
7554 | |
7555 | ||
7556 | eval "$ac_cv_use_coldlg" | |
7557 | if test "$no_cache" != 1; then | |
7558 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7559 | fi | |
7560 | ||
7561 | if test "$wxUSE_COLOURDLG" = yes; then | |
a0b9e27f | 7562 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7563 | else |
a0b9e27f | 7564 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7565 | fi |
a0b9e27f | 7566 | |
1e6feb95 | 7567 | |
5005acfe VZ |
7568 | enablestring= |
7569 | echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6 | |
89e6bf6d | 7570 | echo "configure:7571: checking for --${enablestring:-enable}-filedlg" >&5 |
1e6feb95 VZ |
7571 | no_cache=0 |
7572 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7573 | if test "${enable_filedlg+set}" = set; then | |
7574 | enableval="$enable_filedlg" | |
a0b9e27f | 7575 | |
1e6feb95 VZ |
7576 | if test "$enableval" = yes; then |
7577 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7578 | else | |
7579 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7580 | fi | |
a0b9e27f | 7581 | |
1e6feb95 | 7582 | else |
a0b9e27f | 7583 | |
1e6feb95 VZ |
7584 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7585 | if test "x$LINE" != x ; then | |
7586 | eval "DEFAULT_$LINE" | |
7587 | else | |
7588 | no_cache=1 | |
7589 | fi | |
7590 | ||
7591 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
a0b9e27f MB |
7592 | |
7593 | fi | |
1e6feb95 VZ |
7594 | |
7595 | ||
7596 | eval "$ac_cv_use_filedlg" | |
7597 | if test "$no_cache" != 1; then | |
7598 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7599 | fi | |
7600 | ||
7601 | if test "$wxUSE_FILEDLG" = yes; then | |
a0b9e27f | 7602 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7603 | else |
a0b9e27f | 7604 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7605 | fi |
a0b9e27f | 7606 | |
1e6feb95 | 7607 | |
5005acfe VZ |
7608 | enablestring= |
7609 | echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6 | |
89e6bf6d | 7610 | echo "configure:7611: checking for --${enablestring:-enable}-finddlg" >&5 |
8db37e06 | 7611 | no_cache=0 |
69d27ff7 MB |
7612 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7613 | if test "${enable_finddlg+set}" = set; then | |
7614 | enableval="$enable_finddlg" | |
a0b9e27f | 7615 | |
8db37e06 | 7616 | if test "$enableval" = yes; then |
69d27ff7 | 7617 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7618 | else |
69d27ff7 | 7619 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7620 | fi |
a0b9e27f | 7621 | |
8db37e06 | 7622 | else |
a0b9e27f | 7623 | |
8db37e06 VZ |
7624 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7625 | if test "x$LINE" != x ; then | |
7626 | eval "DEFAULT_$LINE" | |
7627 | else | |
7628 | no_cache=1 | |
7629 | fi | |
7630 | ||
69d27ff7 | 7631 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
a0b9e27f MB |
7632 | |
7633 | fi | |
8db37e06 VZ |
7634 | |
7635 | ||
69d27ff7 | 7636 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7637 | if test "$no_cache" != 1; then |
69d27ff7 | 7638 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7639 | fi |
7640 | ||
7641 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
a0b9e27f | 7642 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7643 | else |
a0b9e27f | 7644 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7645 | fi |
a0b9e27f | 7646 | |
8db37e06 | 7647 | |
5005acfe VZ |
7648 | enablestring= |
7649 | echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6 | |
89e6bf6d | 7650 | echo "configure:7651: checking for --${enablestring:-enable}-fontdlg" >&5 |
1e6feb95 VZ |
7651 | no_cache=0 |
7652 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7653 | if test "${enable_fontdlg+set}" = set; then | |
7654 | enableval="$enable_fontdlg" | |
a0b9e27f | 7655 | |
1e6feb95 VZ |
7656 | if test "$enableval" = yes; then |
7657 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7658 | else | |
7659 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7660 | fi | |
a0b9e27f | 7661 | |
1e6feb95 | 7662 | else |
a0b9e27f | 7663 | |
1e6feb95 VZ |
7664 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7665 | if test "x$LINE" != x ; then | |
7666 | eval "DEFAULT_$LINE" | |
7667 | else | |
7668 | no_cache=1 | |
7669 | fi | |
7670 | ||
7671 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
a0b9e27f MB |
7672 | |
7673 | fi | |
1e6feb95 VZ |
7674 | |
7675 | ||
7676 | eval "$ac_cv_use_fontdlg" | |
7677 | if test "$no_cache" != 1; then | |
7678 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7679 | fi | |
7680 | ||
7681 | if test "$wxUSE_FONTDLG" = yes; then | |
a0b9e27f | 7682 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7683 | else |
a0b9e27f | 7684 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7685 | fi |
a0b9e27f | 7686 | |
1e6feb95 | 7687 | |
5005acfe VZ |
7688 | enablestring= |
7689 | echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6 | |
89e6bf6d | 7690 | echo "configure:7691: checking for --${enablestring:-enable}-dirdlg" >&5 |
1e6feb95 VZ |
7691 | no_cache=0 |
7692 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7693 | if test "${enable_dirdlg+set}" = set; then | |
7694 | enableval="$enable_dirdlg" | |
a0b9e27f | 7695 | |
1e6feb95 VZ |
7696 | if test "$enableval" = yes; then |
7697 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7698 | else | |
7699 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7700 | fi | |
a0b9e27f | 7701 | |
1e6feb95 | 7702 | else |
a0b9e27f | 7703 | |
1e6feb95 VZ |
7704 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7705 | if test "x$LINE" != x ; then | |
7706 | eval "DEFAULT_$LINE" | |
7707 | else | |
7708 | no_cache=1 | |
7709 | fi | |
7710 | ||
7711 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
a0b9e27f MB |
7712 | |
7713 | fi | |
1e6feb95 VZ |
7714 | |
7715 | ||
7716 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7717 | if test "$no_cache" != 1; then |
1e6feb95 | 7718 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7719 | fi |
7720 | ||
1e6feb95 | 7721 | if test "$wxUSE_DIRDLG" = yes; then |
a0b9e27f | 7722 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7723 | else |
a0b9e27f | 7724 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7725 | fi |
a0b9e27f | 7726 | |
698dcdb6 | 7727 | |
5005acfe VZ |
7728 | enablestring= |
7729 | echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6 | |
89e6bf6d | 7730 | echo "configure:7731: checking for --${enablestring:-enable}-msgdlg" >&5 |
10f2d63a | 7731 | no_cache=0 |
1e6feb95 VZ |
7732 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7733 | if test "${enable_msgdlg+set}" = set; then | |
7734 | enableval="$enable_msgdlg" | |
a0b9e27f | 7735 | |
10f2d63a | 7736 | if test "$enableval" = yes; then |
1e6feb95 | 7737 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7738 | else |
1e6feb95 | 7739 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7740 | fi |
a0b9e27f | 7741 | |
10f2d63a | 7742 | else |
a0b9e27f | 7743 | |
1e6feb95 | 7744 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7745 | if test "x$LINE" != x ; then |
7746 | eval "DEFAULT_$LINE" | |
7747 | else | |
7748 | no_cache=1 | |
7749 | fi | |
7750 | ||
1e6feb95 | 7751 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
a0b9e27f MB |
7752 | |
7753 | fi | |
10f2d63a VZ |
7754 | |
7755 | ||
1e6feb95 | 7756 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7757 | if test "$no_cache" != 1; then |
1e6feb95 | 7758 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7759 | fi |
7760 | ||
1e6feb95 | 7761 | if test "$wxUSE_MSGDLG" = yes; then |
a0b9e27f | 7762 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7763 | else |
a0b9e27f | 7764 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7765 | fi |
a0b9e27f | 7766 | |
10f2d63a | 7767 | |
5005acfe VZ |
7768 | enablestring= |
7769 | echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6 | |
89e6bf6d | 7770 | echo "configure:7771: checking for --${enablestring:-enable}-numberdlg" >&5 |
10f2d63a | 7771 | no_cache=0 |
1e6feb95 VZ |
7772 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7773 | if test "${enable_numberdlg+set}" = set; then | |
7774 | enableval="$enable_numberdlg" | |
a0b9e27f | 7775 | |
10f2d63a | 7776 | if test "$enableval" = yes; then |
1e6feb95 | 7777 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7778 | else |
1e6feb95 | 7779 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7780 | fi |
a0b9e27f | 7781 | |
10f2d63a | 7782 | else |
a0b9e27f | 7783 | |
1e6feb95 | 7784 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7785 | if test "x$LINE" != x ; then |
7786 | eval "DEFAULT_$LINE" | |
7787 | else | |
7788 | no_cache=1 | |
7789 | fi | |
7790 | ||
1e6feb95 | 7791 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
a0b9e27f MB |
7792 | |
7793 | fi | |
10f2d63a VZ |
7794 | |
7795 | ||
1e6feb95 | 7796 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7797 | if test "$no_cache" != 1; then |
1e6feb95 | 7798 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7799 | fi |
7800 | ||
1e6feb95 | 7801 | if test "$wxUSE_NUMBERDLG" = yes; then |
a0b9e27f | 7802 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7803 | else |
a0b9e27f | 7804 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7805 | fi |
a0b9e27f | 7806 | |
10f2d63a | 7807 | |
5005acfe VZ |
7808 | enablestring= |
7809 | echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6 | |
89e6bf6d | 7810 | echo "configure:7811: checking for --${enablestring:-enable}-splash" >&5 |
cbca9943 VZ |
7811 | no_cache=0 |
7812 | # Check whether --enable-splash or --disable-splash was given. | |
7813 | if test "${enable_splash+set}" = set; then | |
7814 | enableval="$enable_splash" | |
a0b9e27f | 7815 | |
cbca9943 VZ |
7816 | if test "$enableval" = yes; then |
7817 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7818 | else | |
7819 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7820 | fi | |
a0b9e27f | 7821 | |
cbca9943 | 7822 | else |
a0b9e27f | 7823 | |
cbca9943 VZ |
7824 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
7825 | if test "x$LINE" != x ; then | |
7826 | eval "DEFAULT_$LINE" | |
7827 | else | |
7828 | no_cache=1 | |
7829 | fi | |
7830 | ||
7831 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
a0b9e27f MB |
7832 | |
7833 | fi | |
cbca9943 VZ |
7834 | |
7835 | ||
7836 | eval "$ac_cv_use_splash" | |
7837 | if test "$no_cache" != 1; then | |
7838 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7839 | fi | |
7840 | ||
7841 | if test "$wxUSE_SPLASH" = yes; then | |
a0b9e27f | 7842 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7843 | else |
a0b9e27f | 7844 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7845 | fi |
a0b9e27f | 7846 | |
cbca9943 | 7847 | |
5005acfe VZ |
7848 | enablestring= |
7849 | echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6 | |
89e6bf6d | 7850 | echo "configure:7851: checking for --${enablestring:-enable}-textdlg" >&5 |
10f2d63a VZ |
7851 | no_cache=0 |
7852 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7853 | if test "${enable_textdlg+set}" = set; then | |
7854 | enableval="$enable_textdlg" | |
a0b9e27f | 7855 | |
10f2d63a VZ |
7856 | if test "$enableval" = yes; then |
7857 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7858 | else | |
7859 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7860 | fi | |
a0b9e27f | 7861 | |
10f2d63a | 7862 | else |
a0b9e27f | 7863 | |
10f2d63a VZ |
7864 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7865 | if test "x$LINE" != x ; then | |
7866 | eval "DEFAULT_$LINE" | |
7867 | else | |
7868 | no_cache=1 | |
7869 | fi | |
7870 | ||
7871 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
a0b9e27f MB |
7872 | |
7873 | fi | |
10f2d63a VZ |
7874 | |
7875 | ||
7876 | eval "$ac_cv_use_textdlg" | |
7877 | if test "$no_cache" != 1; then | |
7878 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7879 | fi | |
7880 | ||
7881 | if test "$wxUSE_TEXTDLG" = yes; then | |
a0b9e27f | 7882 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7883 | else |
a0b9e27f | 7884 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7885 | fi |
a0b9e27f | 7886 | |
10f2d63a | 7887 | |
5005acfe VZ |
7888 | enablestring= |
7889 | echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6 | |
89e6bf6d | 7890 | echo "configure:7891: checking for --${enablestring:-enable}-tipdlg" >&5 |
10f2d63a VZ |
7891 | no_cache=0 |
7892 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7893 | if test "${enable_tipdlg+set}" = set; then | |
7894 | enableval="$enable_tipdlg" | |
a0b9e27f | 7895 | |
10f2d63a VZ |
7896 | if test "$enableval" = yes; then |
7897 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7898 | else | |
7899 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7900 | fi | |
a0b9e27f | 7901 | |
10f2d63a | 7902 | else |
a0b9e27f | 7903 | |
10f2d63a VZ |
7904 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7905 | if test "x$LINE" != x ; then | |
7906 | eval "DEFAULT_$LINE" | |
7907 | else | |
7908 | no_cache=1 | |
7909 | fi | |
7910 | ||
7911 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
a0b9e27f MB |
7912 | |
7913 | fi | |
10f2d63a VZ |
7914 | |
7915 | ||
7916 | eval "$ac_cv_use_tipdlg" | |
7917 | if test "$no_cache" != 1; then | |
7918 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7919 | fi | |
7920 | ||
7921 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
a0b9e27f | 7922 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7923 | else |
a0b9e27f | 7924 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7925 | fi |
a0b9e27f | 7926 | |
10f2d63a | 7927 | |
5005acfe VZ |
7928 | enablestring= |
7929 | echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6 | |
89e6bf6d | 7930 | echo "configure:7931: checking for --${enablestring:-enable}-progressdlg" >&5 |
10f2d63a VZ |
7931 | no_cache=0 |
7932 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7933 | if test "${enable_progressdlg+set}" = set; then | |
7934 | enableval="$enable_progressdlg" | |
a0b9e27f | 7935 | |
10f2d63a VZ |
7936 | if test "$enableval" = yes; then |
7937 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7938 | else | |
7939 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7940 | fi | |
a0b9e27f | 7941 | |
10f2d63a | 7942 | else |
a0b9e27f | 7943 | |
10f2d63a VZ |
7944 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7945 | if test "x$LINE" != x ; then | |
7946 | eval "DEFAULT_$LINE" | |
7947 | else | |
7948 | no_cache=1 | |
7949 | fi | |
7950 | ||
7951 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
a0b9e27f MB |
7952 | |
7953 | fi | |
10f2d63a VZ |
7954 | |
7955 | ||
7956 | eval "$ac_cv_use_progressdlg" | |
7957 | if test "$no_cache" != 1; then | |
7958 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7959 | fi | |
7960 | ||
7961 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
a0b9e27f | 7962 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7963 | else |
a0b9e27f | 7964 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7965 | fi |
a0b9e27f | 7966 | |
10f2d63a | 7967 | |
5005acfe VZ |
7968 | enablestring= |
7969 | echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6 | |
89e6bf6d | 7970 | echo "configure:7971: checking for --${enablestring:-enable}-wizarddlg" >&5 |
b1f5d087 VZ |
7971 | no_cache=0 |
7972 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7973 | if test "${enable_wizarddlg+set}" = set; then | |
7974 | enableval="$enable_wizarddlg" | |
a0b9e27f | 7975 | |
b1f5d087 VZ |
7976 | if test "$enableval" = yes; then |
7977 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7978 | else | |
7979 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7980 | fi | |
a0b9e27f | 7981 | |
b1f5d087 | 7982 | else |
a0b9e27f | 7983 | |
b1f5d087 VZ |
7984 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
7985 | if test "x$LINE" != x ; then | |
7986 | eval "DEFAULT_$LINE" | |
7987 | else | |
7988 | no_cache=1 | |
7989 | fi | |
7990 | ||
7991 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
a0b9e27f MB |
7992 | |
7993 | fi | |
b1f5d087 VZ |
7994 | |
7995 | ||
7996 | eval "$ac_cv_use_wizarddlg" | |
7997 | if test "$no_cache" != 1; then | |
7998 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7999 | fi | |
8000 | ||
8001 | if test "$wxUSE_WIZARDDLG" = yes; then | |
a0b9e27f | 8002 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 8003 | else |
a0b9e27f | 8004 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 8005 | fi |
a0b9e27f | 8006 | |
8284b0c5 MB |
8007 | |
8008 | ||
52127426 | 8009 | |
5005acfe VZ |
8010 | enablestring= |
8011 | echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6 | |
89e6bf6d | 8012 | echo "configure:8013: checking for --${enablestring:-enable}-menus" >&5 |
1e6feb95 VZ |
8013 | no_cache=0 |
8014 | # Check whether --enable-menus or --disable-menus was given. | |
8015 | if test "${enable_menus+set}" = set; then | |
8016 | enableval="$enable_menus" | |
a0b9e27f | 8017 | |
1e6feb95 VZ |
8018 | if test "$enableval" = yes; then |
8019 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8020 | else | |
8021 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8022 | fi | |
a0b9e27f | 8023 | |
1e6feb95 | 8024 | else |
a0b9e27f | 8025 | |
1e6feb95 VZ |
8026 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8027 | if test "x$LINE" != x ; then | |
8028 | eval "DEFAULT_$LINE" | |
8029 | else | |
8030 | no_cache=1 | |
8031 | fi | |
8032 | ||
8033 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
a0b9e27f MB |
8034 | |
8035 | fi | |
1e6feb95 VZ |
8036 | |
8037 | ||
8038 | eval "$ac_cv_use_menus" | |
8039 | if test "$no_cache" != 1; then | |
8040 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8041 | fi | |
8042 | ||
8043 | if test "$wxUSE_MENUS" = yes; then | |
a0b9e27f | 8044 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8045 | else |
a0b9e27f | 8046 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8047 | fi |
a0b9e27f | 8048 | |
1e6feb95 | 8049 | |
5005acfe VZ |
8050 | enablestring= |
8051 | echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6 | |
89e6bf6d | 8052 | echo "configure:8053: checking for --${enablestring:-enable}-miniframe" >&5 |
10f2d63a VZ |
8053 | no_cache=0 |
8054 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8055 | if test "${enable_miniframe+set}" = set; then | |
8056 | enableval="$enable_miniframe" | |
a0b9e27f | 8057 | |
10f2d63a VZ |
8058 | if test "$enableval" = yes; then |
8059 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8060 | else | |
8061 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8062 | fi | |
a0b9e27f | 8063 | |
10f2d63a | 8064 | else |
a0b9e27f | 8065 | |
10f2d63a VZ |
8066 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8067 | if test "x$LINE" != x ; then | |
8068 | eval "DEFAULT_$LINE" | |
8069 | else | |
8070 | no_cache=1 | |
8071 | fi | |
8072 | ||
8073 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
a0b9e27f MB |
8074 | |
8075 | fi | |
10f2d63a VZ |
8076 | |
8077 | ||
8078 | eval "$ac_cv_use_miniframe" | |
8079 | if test "$no_cache" != 1; then | |
8080 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8081 | fi | |
8082 | ||
8083 | if test "$wxUSE_MINIFRAME" = yes; then | |
a0b9e27f | 8084 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8085 | else |
a0b9e27f | 8086 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8087 | fi |
a0b9e27f | 8088 | |
10f2d63a | 8089 | |
5005acfe VZ |
8090 | enablestring= |
8091 | echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6 | |
89e6bf6d | 8092 | echo "configure:8093: checking for --${enablestring:-enable}-tooltips" >&5 |
10f2d63a VZ |
8093 | no_cache=0 |
8094 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8095 | if test "${enable_tooltips+set}" = set; then | |
8096 | enableval="$enable_tooltips" | |
a0b9e27f | 8097 | |
10f2d63a VZ |
8098 | if test "$enableval" = yes; then |
8099 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8100 | else | |
8101 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8102 | fi | |
a0b9e27f | 8103 | |
10f2d63a | 8104 | else |
a0b9e27f | 8105 | |
10f2d63a VZ |
8106 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8107 | if test "x$LINE" != x ; then | |
8108 | eval "DEFAULT_$LINE" | |
8109 | else | |
8110 | no_cache=1 | |
8111 | fi | |
8112 | ||
8113 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
a0b9e27f MB |
8114 | |
8115 | fi | |
10f2d63a VZ |
8116 | |
8117 | ||
8118 | eval "$ac_cv_use_tooltips" | |
8119 | if test "$no_cache" != 1; then | |
8120 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8121 | fi | |
8122 | ||
8123 | if test "$wxUSE_TOOLTIPS" = yes; then | |
a0b9e27f | 8124 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8125 | else |
a0b9e27f | 8126 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8127 | fi |
a0b9e27f | 8128 | |
10f2d63a | 8129 | |
5005acfe VZ |
8130 | enablestring= |
8131 | echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6 | |
89e6bf6d | 8132 | echo "configure:8133: checking for --${enablestring:-enable}-splines" >&5 |
10f2d63a VZ |
8133 | no_cache=0 |
8134 | # Check whether --enable-splines or --disable-splines was given. | |
8135 | if test "${enable_splines+set}" = set; then | |
8136 | enableval="$enable_splines" | |
a0b9e27f | 8137 | |
10f2d63a VZ |
8138 | if test "$enableval" = yes; then |
8139 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8140 | else | |
8141 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8142 | fi | |
a0b9e27f | 8143 | |
10f2d63a | 8144 | else |
a0b9e27f | 8145 | |
10f2d63a VZ |
8146 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8147 | if test "x$LINE" != x ; then | |
8148 | eval "DEFAULT_$LINE" | |
8149 | else | |
8150 | no_cache=1 | |
8151 | fi | |
8152 | ||
8153 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
a0b9e27f MB |
8154 | |
8155 | fi | |
10f2d63a VZ |
8156 | |
8157 | ||
8158 | eval "$ac_cv_use_splines" | |
8159 | if test "$no_cache" != 1; then | |
8160 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8161 | fi | |
8162 | ||
8163 | if test "$wxUSE_SPLINES" = yes; then | |
a0b9e27f | 8164 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8165 | else |
a0b9e27f | 8166 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8167 | fi |
a0b9e27f | 8168 | |
10f2d63a | 8169 | |
5005acfe VZ |
8170 | enablestring= |
8171 | echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6 | |
89e6bf6d | 8172 | echo "configure:8173: checking for --${enablestring:-enable}-validators" >&5 |
10f2d63a VZ |
8173 | no_cache=0 |
8174 | # Check whether --enable-validators or --disable-validators was given. | |
8175 | if test "${enable_validators+set}" = set; then | |
8176 | enableval="$enable_validators" | |
a0b9e27f | 8177 | |
10f2d63a VZ |
8178 | if test "$enableval" = yes; then |
8179 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8180 | else | |
8181 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8182 | fi | |
a0b9e27f | 8183 | |
10f2d63a | 8184 | else |
a0b9e27f | 8185 | |
10f2d63a VZ |
8186 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8187 | if test "x$LINE" != x ; then | |
8188 | eval "DEFAULT_$LINE" | |
8189 | else | |
8190 | no_cache=1 | |
8191 | fi | |
8192 | ||
8193 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
a0b9e27f MB |
8194 | |
8195 | fi | |
10f2d63a VZ |
8196 | |
8197 | ||
8198 | eval "$ac_cv_use_validators" | |
8199 | if test "$no_cache" != 1; then | |
8200 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8201 | fi | |
8202 | ||
8203 | if test "$wxUSE_VALIDATORS" = yes; then | |
a0b9e27f | 8204 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8205 | else |
a0b9e27f | 8206 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8207 | fi |
a0b9e27f | 8208 | |
10f2d63a | 8209 | |
5005acfe VZ |
8210 | enablestring= |
8211 | echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6 | |
89e6bf6d | 8212 | echo "configure:8213: checking for --${enablestring:-enable}-busyinfo" >&5 |
10f2d63a VZ |
8213 | no_cache=0 |
8214 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8215 | if test "${enable_busyinfo+set}" = set; then | |
8216 | enableval="$enable_busyinfo" | |
a0b9e27f | 8217 | |
10f2d63a VZ |
8218 | if test "$enableval" = yes; then |
8219 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8220 | else | |
8221 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8222 | fi | |
a0b9e27f | 8223 | |
10f2d63a | 8224 | else |
a0b9e27f | 8225 | |
10f2d63a VZ |
8226 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8227 | if test "x$LINE" != x ; then | |
8228 | eval "DEFAULT_$LINE" | |
8229 | else | |
8230 | no_cache=1 | |
8231 | fi | |
8232 | ||
8233 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
a0b9e27f MB |
8234 | |
8235 | fi | |
10f2d63a VZ |
8236 | |
8237 | ||
8238 | eval "$ac_cv_use_busyinfo" | |
8239 | if test "$no_cache" != 1; then | |
8240 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8241 | fi | |
8242 | ||
8243 | if test "$wxUSE_BUSYINFO" = yes; then | |
a0b9e27f | 8244 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8245 | else |
a0b9e27f | 8246 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8247 | fi |
a0b9e27f | 8248 | |
10f2d63a | 8249 | |
5005acfe VZ |
8250 | enablestring= |
8251 | echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6 | |
89e6bf6d | 8252 | echo "configure:8253: checking for --${enablestring:-enable}-joystick" >&5 |
f6bcfd97 BP |
8253 | no_cache=0 |
8254 | # Check whether --enable-joystick or --disable-joystick was given. | |
8255 | if test "${enable_joystick+set}" = set; then | |
8256 | enableval="$enable_joystick" | |
a0b9e27f | 8257 | |
f6bcfd97 BP |
8258 | if test "$enableval" = yes; then |
8259 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8260 | else | |
8261 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8262 | fi | |
a0b9e27f | 8263 | |
f6bcfd97 | 8264 | else |
a0b9e27f | 8265 | |
f6bcfd97 BP |
8266 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8267 | if test "x$LINE" != x ; then | |
8268 | eval "DEFAULT_$LINE" | |
8269 | else | |
8270 | no_cache=1 | |
8271 | fi | |
8272 | ||
8273 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
a0b9e27f MB |
8274 | |
8275 | fi | |
f6bcfd97 BP |
8276 | |
8277 | ||
8278 | eval "$ac_cv_use_joystick" | |
8279 | if test "$no_cache" != 1; then | |
8280 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8281 | fi | |
8282 | ||
8283 | if test "$wxUSE_JOYSTICK" = yes; then | |
a0b9e27f | 8284 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8285 | else |
a0b9e27f | 8286 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8287 | fi |
a0b9e27f | 8288 | |
698dcdb6 | 8289 | |
5005acfe VZ |
8290 | enablestring= |
8291 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
89e6bf6d | 8292 | echo "configure:8293: checking for --${enablestring:-enable}-metafile" >&5 |
1e6feb95 VZ |
8293 | no_cache=0 |
8294 | # Check whether --enable-metafile or --disable-metafile was given. | |
8295 | if test "${enable_metafile+set}" = set; then | |
8296 | enableval="$enable_metafile" | |
a0b9e27f | 8297 | |
1e6feb95 VZ |
8298 | if test "$enableval" = yes; then |
8299 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8300 | else | |
8301 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8302 | fi | |
a0b9e27f | 8303 | |
1e6feb95 | 8304 | else |
a0b9e27f | 8305 | |
1e6feb95 VZ |
8306 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8307 | if test "x$LINE" != x ; then | |
8308 | eval "DEFAULT_$LINE" | |
8309 | else | |
8310 | no_cache=1 | |
8311 | fi | |
8312 | ||
8313 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
8314 | |
8315 | fi | |
1e6feb95 VZ |
8316 | |
8317 | ||
8318 | eval "$ac_cv_use_metafile" | |
8319 | if test "$no_cache" != 1; then | |
8320 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8321 | fi | |
8322 | ||
8323 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 8324 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8325 | else |
a0b9e27f | 8326 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8327 | fi |
a0b9e27f | 8328 | |
1e6feb95 | 8329 | |
5005acfe VZ |
8330 | enablestring= |
8331 | echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6 | |
89e6bf6d | 8332 | echo "configure:8333: checking for --${enablestring:-enable}-dragimage" >&5 |
24fd6d87 VZ |
8333 | no_cache=0 |
8334 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8335 | if test "${enable_dragimage+set}" = set; then | |
8336 | enableval="$enable_dragimage" | |
a0b9e27f | 8337 | |
24fd6d87 VZ |
8338 | if test "$enableval" = yes; then |
8339 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8340 | else | |
8341 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8342 | fi | |
a0b9e27f | 8343 | |
24fd6d87 | 8344 | else |
a0b9e27f | 8345 | |
24fd6d87 VZ |
8346 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8347 | if test "x$LINE" != x ; then | |
8348 | eval "DEFAULT_$LINE" | |
8349 | else | |
8350 | no_cache=1 | |
8351 | fi | |
8352 | ||
8353 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
a0b9e27f MB |
8354 | |
8355 | fi | |
24fd6d87 VZ |
8356 | |
8357 | ||
8358 | eval "$ac_cv_use_dragimage" | |
8359 | if test "$no_cache" != 1; then | |
8360 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8361 | fi | |
8362 | ||
8363 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
a0b9e27f | 8364 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8365 | else |
a0b9e27f | 8366 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8367 | fi |
a0b9e27f | 8368 | |
52127426 | 8369 | |
8284b0c5 MB |
8370 | |
8371 | ||
5005acfe VZ |
8372 | enablestring= |
8373 | echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6 | |
89e6bf6d | 8374 | echo "configure:8375: checking for --${enablestring:-enable}-palette" >&5 |
edae8572 VZ |
8375 | no_cache=0 |
8376 | # Check whether --enable-palette or --disable-palette was given. | |
8377 | if test "${enable_palette+set}" = set; then | |
8378 | enableval="$enable_palette" | |
a0b9e27f | 8379 | |
edae8572 VZ |
8380 | if test "$enableval" = yes; then |
8381 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8382 | else | |
8383 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8384 | fi | |
a0b9e27f | 8385 | |
edae8572 | 8386 | else |
a0b9e27f | 8387 | |
edae8572 VZ |
8388 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8389 | if test "x$LINE" != x ; then | |
8390 | eval "DEFAULT_$LINE" | |
8391 | else | |
8392 | no_cache=1 | |
8393 | fi | |
8394 | ||
8395 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
a0b9e27f MB |
8396 | |
8397 | fi | |
edae8572 VZ |
8398 | |
8399 | ||
8400 | eval "$ac_cv_use_palette" | |
8401 | if test "$no_cache" != 1; then | |
8402 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8403 | fi | |
8404 | ||
8405 | if test "$wxUSE_PALETTE" = yes; then | |
a0b9e27f | 8406 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8407 | else |
a0b9e27f | 8408 | echo "$ac_t""no" 1>&6 |
edae8572 | 8409 | fi |
a0b9e27f | 8410 | |
edae8572 | 8411 | |
5005acfe VZ |
8412 | enablestring= |
8413 | echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6 | |
89e6bf6d | 8414 | echo "configure:8415: checking for --${enablestring:-enable}-image" >&5 |
0046ff7c VS |
8415 | no_cache=0 |
8416 | # Check whether --enable-image or --disable-image was given. | |
8417 | if test "${enable_image+set}" = set; then | |
8418 | enableval="$enable_image" | |
a0b9e27f | 8419 | |
0046ff7c VS |
8420 | if test "$enableval" = yes; then |
8421 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8422 | else | |
8423 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8424 | fi | |
a0b9e27f | 8425 | |
0046ff7c | 8426 | else |
a0b9e27f | 8427 | |
0046ff7c VS |
8428 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8429 | if test "x$LINE" != x ; then | |
8430 | eval "DEFAULT_$LINE" | |
8431 | else | |
8432 | no_cache=1 | |
8433 | fi | |
8434 | ||
8435 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
a0b9e27f MB |
8436 | |
8437 | fi | |
0046ff7c VS |
8438 | |
8439 | ||
8440 | eval "$ac_cv_use_image" | |
8441 | if test "$no_cache" != 1; then | |
8442 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8443 | fi | |
8444 | ||
8445 | if test "$wxUSE_IMAGE" = yes; then | |
a0b9e27f | 8446 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8447 | else |
a0b9e27f | 8448 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8449 | fi |
a0b9e27f | 8450 | |
0046ff7c | 8451 | |
5005acfe VZ |
8452 | enablestring= |
8453 | echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6 | |
89e6bf6d | 8454 | echo "configure:8455: checking for --${enablestring:-enable}-gif" >&5 |
10f2d63a VZ |
8455 | no_cache=0 |
8456 | # Check whether --enable-gif or --disable-gif was given. | |
8457 | if test "${enable_gif+set}" = set; then | |
8458 | enableval="$enable_gif" | |
a0b9e27f | 8459 | |
10f2d63a VZ |
8460 | if test "$enableval" = yes; then |
8461 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8462 | else | |
8463 | ac_cv_use_gif='wxUSE_GIF=no' | |
8464 | fi | |
a0b9e27f | 8465 | |
10f2d63a | 8466 | else |
a0b9e27f | 8467 | |
10f2d63a VZ |
8468 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8469 | if test "x$LINE" != x ; then | |
8470 | eval "DEFAULT_$LINE" | |
8471 | else | |
8472 | no_cache=1 | |
8473 | fi | |
8474 | ||
8475 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
a0b9e27f MB |
8476 | |
8477 | fi | |
10f2d63a VZ |
8478 | |
8479 | ||
8480 | eval "$ac_cv_use_gif" | |
8481 | if test "$no_cache" != 1; then | |
8482 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8483 | fi | |
8484 | ||
8485 | if test "$wxUSE_GIF" = yes; then | |
a0b9e27f | 8486 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8487 | else |
a0b9e27f | 8488 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8489 | fi |
a0b9e27f | 8490 | |
10f2d63a | 8491 | |
5005acfe VZ |
8492 | enablestring= |
8493 | echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6 | |
89e6bf6d | 8494 | echo "configure:8495: checking for --${enablestring:-enable}-pcx" >&5 |
10f2d63a VZ |
8495 | no_cache=0 |
8496 | # Check whether --enable-pcx or --disable-pcx was given. | |
8497 | if test "${enable_pcx+set}" = set; then | |
8498 | enableval="$enable_pcx" | |
a0b9e27f | 8499 | |
10f2d63a VZ |
8500 | if test "$enableval" = yes; then |
8501 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8502 | else | |
8503 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8504 | fi | |
a0b9e27f | 8505 | |
10f2d63a | 8506 | else |
a0b9e27f | 8507 | |
10f2d63a VZ |
8508 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8509 | if test "x$LINE" != x ; then | |
8510 | eval "DEFAULT_$LINE" | |
8511 | else | |
8512 | no_cache=1 | |
8513 | fi | |
8514 | ||
8515 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
a0b9e27f MB |
8516 | |
8517 | fi | |
10f2d63a VZ |
8518 | |
8519 | ||
8520 | eval "$ac_cv_use_pcx" | |
8521 | if test "$no_cache" != 1; then | |
8522 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8523 | fi | |
8524 | ||
8525 | if test "$wxUSE_PCX" = yes; then | |
a0b9e27f | 8526 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8527 | else |
a0b9e27f | 8528 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8529 | fi |
a0b9e27f | 8530 | |
10f2d63a | 8531 | |
5005acfe VZ |
8532 | enablestring= |
8533 | echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6 | |
89e6bf6d | 8534 | echo "configure:8535: checking for --${enablestring:-enable}-iff" >&5 |
4b6b4dfc RR |
8535 | no_cache=0 |
8536 | # Check whether --enable-iff or --disable-iff was given. | |
8537 | if test "${enable_iff+set}" = set; then | |
8538 | enableval="$enable_iff" | |
a0b9e27f | 8539 | |
4b6b4dfc RR |
8540 | if test "$enableval" = yes; then |
8541 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8542 | else | |
8543 | ac_cv_use_iff='wxUSE_IFF=no' | |
8544 | fi | |
a0b9e27f | 8545 | |
4b6b4dfc | 8546 | else |
a0b9e27f | 8547 | |
4b6b4dfc RR |
8548 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8549 | if test "x$LINE" != x ; then | |
8550 | eval "DEFAULT_$LINE" | |
8551 | else | |
8552 | no_cache=1 | |
8553 | fi | |
8554 | ||
8555 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
a0b9e27f MB |
8556 | |
8557 | fi | |
4b6b4dfc RR |
8558 | |
8559 | ||
8560 | eval "$ac_cv_use_iff" | |
8561 | if test "$no_cache" != 1; then | |
8562 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8563 | fi | |
8564 | ||
8565 | if test "$wxUSE_IFF" = yes; then | |
a0b9e27f | 8566 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8567 | else |
a0b9e27f | 8568 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8569 | fi |
a0b9e27f | 8570 | |
4b6b4dfc | 8571 | |
5005acfe VZ |
8572 | enablestring= |
8573 | echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6 | |
89e6bf6d | 8574 | echo "configure:8575: checking for --${enablestring:-enable}-pnm" >&5 |
10f2d63a VZ |
8575 | no_cache=0 |
8576 | # Check whether --enable-pnm or --disable-pnm was given. | |
8577 | if test "${enable_pnm+set}" = set; then | |
8578 | enableval="$enable_pnm" | |
a0b9e27f | 8579 | |
10f2d63a VZ |
8580 | if test "$enableval" = yes; then |
8581 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8582 | else | |
8583 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8584 | fi | |
a0b9e27f | 8585 | |
10f2d63a | 8586 | else |
a0b9e27f | 8587 | |
10f2d63a VZ |
8588 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8589 | if test "x$LINE" != x ; then | |
8590 | eval "DEFAULT_$LINE" | |
8591 | else | |
8592 | no_cache=1 | |
8593 | fi | |
8594 | ||
8595 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
a0b9e27f MB |
8596 | |
8597 | fi | |
10f2d63a VZ |
8598 | |
8599 | ||
8600 | eval "$ac_cv_use_pnm" | |
8601 | if test "$no_cache" != 1; then | |
8602 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8603 | fi | |
8604 | ||
8605 | if test "$wxUSE_PNM" = yes; then | |
a0b9e27f | 8606 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8607 | else |
a0b9e27f | 8608 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8609 | fi |
a0b9e27f | 8610 | |
10f2d63a | 8611 | |
5005acfe VZ |
8612 | enablestring= |
8613 | echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6 | |
89e6bf6d | 8614 | echo "configure:8615: checking for --${enablestring:-enable}-xpm" >&5 |
0046ff7c | 8615 | no_cache=0 |
69d27ff7 MB |
8616 | # Check whether --enable-xpm or --disable-xpm was given. |
8617 | if test "${enable_xpm+set}" = set; then | |
8618 | enableval="$enable_xpm" | |
a0b9e27f | 8619 | |
0046ff7c | 8620 | if test "$enableval" = yes; then |
69d27ff7 | 8621 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8622 | else |
69d27ff7 | 8623 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8624 | fi |
a0b9e27f | 8625 | |
0046ff7c | 8626 | else |
a0b9e27f | 8627 | |
0046ff7c VS |
8628 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8629 | if test "x$LINE" != x ; then | |
8630 | eval "DEFAULT_$LINE" | |
8631 | else | |
8632 | no_cache=1 | |
8633 | fi | |
8634 | ||
69d27ff7 | 8635 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
a0b9e27f MB |
8636 | |
8637 | fi | |
0046ff7c VS |
8638 | |
8639 | ||
69d27ff7 | 8640 | eval "$ac_cv_use_xpm" |
0046ff7c | 8641 | if test "$no_cache" != 1; then |
69d27ff7 | 8642 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8643 | fi |
8644 | ||
8645 | if test "$wxUSE_XPM" = yes; then | |
a0b9e27f | 8646 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8647 | else |
a0b9e27f | 8648 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8649 | fi |
a0b9e27f | 8650 | |
0046ff7c | 8651 | |
5005acfe VZ |
8652 | enablestring= |
8653 | echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6 | |
89e6bf6d | 8654 | echo "configure:8655: checking for --${enablestring:-enable}-ico_cur" >&5 |
658974ae | 8655 | no_cache=0 |
c7206e64 VS |
8656 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8657 | if test "${enable_ico_cur+set}" = set; then | |
8658 | enableval="$enable_ico_cur" | |
a0b9e27f | 8659 | |
658974ae | 8660 | if test "$enableval" = yes; then |
c7206e64 | 8661 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8662 | else |
c7206e64 | 8663 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8664 | fi |
a0b9e27f | 8665 | |
658974ae | 8666 | else |
a0b9e27f | 8667 | |
658974ae VS |
8668 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8669 | if test "x$LINE" != x ; then | |
8670 | eval "DEFAULT_$LINE" | |
8671 | else | |
8672 | no_cache=1 | |
8673 | fi | |
8674 | ||
c7206e64 | 8675 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
a0b9e27f MB |
8676 | |
8677 | fi | |
658974ae VS |
8678 | |
8679 | ||
c7206e64 | 8680 | eval "$ac_cv_use_ico_cur" |
658974ae | 8681 | if test "$no_cache" != 1; then |
c7206e64 | 8682 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8683 | fi |
8684 | ||
8685 | if test "$wxUSE_ICO_CUR" = yes; then | |
a0b9e27f | 8686 | echo "$ac_t""yes" 1>&6 |
658974ae | 8687 | else |
a0b9e27f | 8688 | echo "$ac_t""no" 1>&6 |
658974ae | 8689 | fi |
a0b9e27f | 8690 | |
658974ae | 8691 | |
b12915c1 VZ |
8692 | fi |
8693 | ||
d558c907 VS |
8694 | case "${host}" in |
8695 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
8696 | PATH_IFS=';' |
8697 | LEX_STEM="lexyy" | |
d558c907 VS |
8698 | ;; |
8699 | *) | |
8700 | PATH_IFS=':' | |
8701 | LEX_STEM="lex.yy" | |
8702 | ;; | |
8703 | esac | |
8704 | ||
8284b0c5 MB |
8705 | |
8706 | ||
10f2d63a VZ |
8707 | echo "saving argument cache $wx_arg_cache_file" |
8708 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
a0b9e27f | 8709 | |
52127426 | 8710 | |
8284b0c5 | 8711 | |
a0b9e27f | 8712 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 |
89e6bf6d VZ |
8713 | echo "configure:8714: checking for toolkit" >&5 |
8714 | ||
8715 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
8716 | if test "$wxUSE_WINE" = "yes"; then | |
8717 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
8718 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
8719 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
8720 | fi | |
10f2d63a VZ |
8721 | |
8722 | if test "$wxUSE_GUI" = "yes"; then | |
8723 | ||
3a922bb4 | 8724 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 8725 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8726 | fi |
b12915c1 | 8727 | |
3a922bb4 RL |
8728 | if test "$TOOLKIT_GIVEN" = 1; then |
8729 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8730 | var=wxUSE_$toolkit | |
8731 | eval "value=\$${var}" | |
8732 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8733 | done | |
10f2d63a | 8734 | else |
3a922bb4 RL |
8735 | for toolkit in `echo $ALL_TOOLKITS`; do |
8736 | if test "$has_toolkit_in_cache" != 1; then | |
8737 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8738 | else | |
8739 | var=DEFAULT_wxUSE_$toolkit | |
8740 | fi | |
8741 | eval "wxUSE_$toolkit=\$${var}" | |
8742 | done | |
10f2d63a | 8743 | fi |
10f2d63a | 8744 | |
3a922bb4 | 8745 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
89e6bf6d | 8746 | + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8747 | |
d558c907 | 8748 | case "${host}" in |
6fa882bd | 8749 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8750 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8751 | esac |
10f2d63a | 8752 | |
3a922bb4 RL |
8753 | case "$NUM_TOOLKITS" in |
8754 | 1) | |
8755 | ;; | |
8756 | 0) | |
a0b9e27f | 8757 | { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8758 | ;; |
8759 | *) | |
a0b9e27f | 8760 | { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; } |
3a922bb4 | 8761 | esac |
10f2d63a | 8762 | |
3a922bb4 RL |
8763 | for toolkit in `echo $ALL_TOOLKITS`; do |
8764 | var=wxUSE_$toolkit | |
8765 | eval "value=\$${var}" | |
8766 | if test "x$value" != x; then | |
8767 | cache_var=CACHE_$toolkit | |
8768 | eval "cache=\$${cache_var}" | |
8769 | if test "$cache" = 1; then | |
8770 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8771 | fi | |
8772 | if test "$value" = 1; then | |
8773 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
a0b9e27f | 8774 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8775 | fi |
8776 | fi | |
8777 | done | |
10f2d63a | 8778 | else |
a0b9e27f | 8779 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8780 | fi |
8781 | ||
43d99b6d VS |
8782 | wants_win32=0 |
8783 | doesnt_want_win32=0 | |
17234b26 MB |
8784 | case "${host}" in |
8785 | *-*-cygwin*) | |
8786 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8787 | wants_win32=1 |
8788 | else | |
8789 | doesnt_want_win32=1 | |
17234b26 MB |
8790 | fi |
8791 | ;; | |
8792 | *-*-mingw*) | |
43d99b6d | 8793 | wants_win32=1 |
17234b26 MB |
8794 | ;; |
8795 | esac | |
8796 | ||
89e6bf6d VZ |
8797 | if test "$wxUSE_WINE" = "yes"; then |
8798 | wants_win32=1 | |
8799 | CC=winegcc | |
8800 | CXX=wineg++ | |
8801 | RESCOMP=wrc | |
8802 | fi | |
8803 | ||
43d99b6d | 8804 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8805 | USE_UNIX=0 |
8806 | USE_WIN32=1 | |
a0b9e27f | 8807 | cat >> confdefs.h <<\EOF |
17234b26 | 8808 | #define __WIN32__ 1 |
a0b9e27f | 8809 | EOF |
17234b26 | 8810 | |
a0b9e27f | 8811 | cat >> confdefs.h <<\EOF |
17234b26 | 8812 | #define __WIN95__ 1 |
a0b9e27f | 8813 | EOF |
17234b26 | 8814 | |
a0b9e27f | 8815 | cat >> confdefs.h <<\EOF |
17234b26 | 8816 | #define __WINDOWS__ 1 |
a0b9e27f | 8817 | EOF |
17234b26 | 8818 | |
a0b9e27f | 8819 | cat >> confdefs.h <<\EOF |
17234b26 | 8820 | #define __GNUWIN32__ 1 |
a0b9e27f | 8821 | EOF |
17234b26 | 8822 | |
a0b9e27f | 8823 | cat >> confdefs.h <<\EOF |
17234b26 | 8824 | #define STRICT 1 |
a0b9e27f | 8825 | EOF |
17234b26 | 8826 | |
a0b9e27f | 8827 | cat >> confdefs.h <<\EOF |
17234b26 | 8828 | #define WINVER 0x0400 |
a0b9e27f | 8829 | EOF |
17234b26 | 8830 | |
43d99b6d VS |
8831 | fi |
8832 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8833 | USE_UNIX=1 |
8834 | USE_WIN32=0 | |
8835 | fi | |
8836 | ||
8837 | if test "$USE_UNIX" = 1 ; then | |
8838 | wxUSE_UNIX=yes | |
a0b9e27f | 8839 | cat >> confdefs.h <<\EOF |
17234b26 | 8840 | #define __UNIX__ 1 |
a0b9e27f | 8841 | EOF |
17234b26 MB |
8842 | |
8843 | fi | |
8844 | ||
8284b0c5 | 8845 | |
a0b9e27f | 8846 | cat > confcache <<\EOF |
10f2d63a VZ |
8847 | # This file is a shell script that caches the results of configure |
8848 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
8849 | # scripts and configure runs. It is not useful on other systems. |
8850 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8851 | # |
a0b9e27f MB |
8852 | # By default, configure uses ./config.cache as the cache file, |
8853 | # creating it if it does not exist already. You can give configure | |
8854 | # the --cache-file=FILE option to use a different cache file; that is | |
8855 | # what configure does when it calls configure scripts in | |
8856 | # subdirectories, so they share the cache. | |
8857 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8858 | # config.status only pays attention to the cache file if you give it the | |
8859 | # --recheck option to rerun configure. | |
10f2d63a | 8860 | # |
a0b9e27f | 8861 | EOF |
10f2d63a VZ |
8862 | # The following way of writing the cache mishandles newlines in values, |
8863 | # but we know of no workaround that is simple, portable, and efficient. | |
8864 | # So, don't put newlines in cache variables' values. | |
8865 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8866 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
8867 | (set) 2>&1 | |
8868 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8869 | *ac_space=\ *) | |
8870 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8871 | # turns \\\\ into \\, and sed turns \\ into \). | |
8872 | sed -n \ | |
8873 | -e "s/'/'\\\\''/g" \ | |
8874 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8875 | ;; | |
8876 | *) | |
8877 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8878 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8879 | ;; | |
8880 | esac >> confcache | |
8881 | if cmp -s $cache_file confcache; then | |
8882 | : | |
8883 | else | |
10f2d63a | 8884 | if test -w $cache_file; then |
a0b9e27f MB |
8885 | echo "updating cache $cache_file" |
8886 | cat confcache > $cache_file | |
10f2d63a VZ |
8887 | else |
8888 | echo "not updating unwritable cache $cache_file" | |
8889 | fi | |
8890 | fi | |
8891 | rm -f confcache | |
8892 | ||
a0b9e27f | 8893 | |
e59890c3 | 8894 | if test "$build" != "$host" ; then |
9d353d4a | 8895 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8896 | CC=$host_alias-gcc |
8897 | CXX=$host_alias-c++ | |
8898 | AR=$host_alias-ar | |
8899 | RANLIB=$host_alias-ranlib | |
8900 | DLLTOOL=$host_alias-dlltool | |
8901 | RESCOMP=$host_alias-windres | |
8902 | LD=$host_alias-ld | |
8903 | NM=$host_alias-nm | |
8904 | STRIP=$host_alias-strip | |
8905 | else | |
a0b9e27f | 8906 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 8907 | fi |
10f2d63a VZ |
8908 | fi |
8909 | ||
ec603395 | 8910 | CFLAGS=${CFLAGS:=} |
a0b9e27f | 8911 | # Extract the first word of "gcc", so it can be a program name with args. |
8284b0c5 | 8912 | set dummy gcc; ac_word=$2 |
a0b9e27f | 8913 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
89e6bf6d | 8914 | echo "configure:8915: checking for $ac_word" >&5 |
a0b9e27f MB |
8915 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8916 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8917 | else |
8918 | if test -n "$CC"; then | |
8919 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8920 | else |
a0b9e27f MB |
8921 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8922 | ac_dummy="$PATH" | |
8923 | for ac_dir in $ac_dummy; do | |
8924 | test -z "$ac_dir" && ac_dir=. | |
8925 | if test -f $ac_dir/$ac_word; then | |
8926 | ac_cv_prog_CC="gcc" | |
8927 | break | |
8928 | fi | |
8929 | done | |
8930 | IFS="$ac_save_ifs" | |
10f2d63a | 8931 | fi |
6232543b | 8932 | fi |
a0b9e27f | 8933 | CC="$ac_cv_prog_CC" |
6232543b | 8934 | if test -n "$CC"; then |
a0b9e27f | 8935 | echo "$ac_t""$CC" 1>&6 |
247f5006 | 8936 | else |
a0b9e27f | 8937 | echo "$ac_t""no" 1>&6 |
247f5006 VZ |
8938 | fi |
8939 | ||
5c6fa7d2 RR |
8940 | if test -z "$CC"; then |
8941 | # Extract the first word of "cc", so it can be a program name with args. | |
8942 | set dummy cc; ac_word=$2 | |
a0b9e27f | 8943 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
89e6bf6d | 8944 | echo "configure:8945: checking for $ac_word" >&5 |
a0b9e27f MB |
8945 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8946 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 RR |
8947 | else |
8948 | if test -n "$CC"; then | |
8949 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8950 | else | |
a0b9e27f | 8951 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5c6fa7d2 | 8952 | ac_prog_rejected=no |
a0b9e27f MB |
8953 | ac_dummy="$PATH" |
8954 | for ac_dir in $ac_dummy; do | |
8955 | test -z "$ac_dir" && ac_dir=. | |
8956 | if test -f $ac_dir/$ac_word; then | |
8957 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8958 | ac_prog_rejected=yes | |
8959 | continue | |
8960 | fi | |
8961 | ac_cv_prog_CC="cc" | |
8962 | break | |
8963 | fi | |
8964 | done | |
8965 | IFS="$ac_save_ifs" | |
328a083c RR |
8966 | if test $ac_prog_rejected = yes; then |
8967 | # We found a bogon in the path, so make sure we never use it. | |
8968 | set dummy $ac_cv_prog_CC | |
8969 | shift | |
a0b9e27f | 8970 | if test $# -gt 0; then |
328a083c | 8971 | # We chose a different compiler from the bogus one. |
1e487827 VS |
8972 | # However, it has the same basename, so the bogon will be chosen |
8973 | # first if we set CC to just the basename; use the full file name. | |
8974 | shift | |
a0b9e27f | 8975 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8976 | shift |
8977 | ac_cv_prog_CC="$@" | |
703e0a69 | 8978 | fi |
1e487827 VS |
8979 | fi |
8980 | fi | |
8981 | fi | |
a0b9e27f | 8982 | CC="$ac_cv_prog_CC" |
1e487827 | 8983 | if test -n "$CC"; then |
a0b9e27f | 8984 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8985 | else |
a0b9e27f | 8986 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8987 | fi |
1e487827 | 8988 | |
a0b9e27f MB |
8989 | if test -z "$CC"; then |
8990 | case "`uname -s`" in | |
8991 | *win32* | *WIN32*) | |
8992 | # Extract the first word of "cl", so it can be a program name with args. | |
8993 | set dummy cl; ac_word=$2 | |
8994 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
89e6bf6d | 8995 | echo "configure:8996: checking for $ac_word" >&5 |
a0b9e27f MB |
8996 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8997 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf VS |
8998 | else |
8999 | if test -n "$CC"; then | |
9000 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9001 | else | |
a0b9e27f MB |
9002 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9003 | ac_dummy="$PATH" | |
9004 | for ac_dir in $ac_dummy; do | |
9005 | test -z "$ac_dir" && ac_dir=. | |
9006 | if test -f $ac_dir/$ac_word; then | |
9007 | ac_cv_prog_CC="cl" | |
9008 | break | |
9009 | fi | |
9010 | done | |
9011 | IFS="$ac_save_ifs" | |
f09359cf VS |
9012 | fi |
9013 | fi | |
a0b9e27f | 9014 | CC="$ac_cv_prog_CC" |
f09359cf | 9015 | if test -n "$CC"; then |
a0b9e27f | 9016 | echo "$ac_t""$CC" 1>&6 |
f09359cf | 9017 | else |
a0b9e27f | 9018 | echo "$ac_t""no" 1>&6 |
247f5006 | 9019 | fi |
a0b9e27f MB |
9020 | ;; |
9021 | esac | |
8284b0c5 | 9022 | fi |
a0b9e27f | 9023 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5c6fa7d2 | 9024 | fi |
1e487827 | 9025 | |
a0b9e27f | 9026 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
89e6bf6d | 9027 | echo "configure:9028: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
f09359cf | 9028 | |
a0b9e27f MB |
9029 | ac_ext=c |
9030 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9031 | ac_cpp='$CPP $CPPFLAGS' | |
9032 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9033 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9034 | cross_compiling=$ac_cv_prog_cc_cross | |
f09359cf | 9035 | |
a0b9e27f | 9036 | cat > conftest.$ac_ext << EOF |
247f5006 | 9037 | |
89e6bf6d | 9038 | #line 9039 "configure" |
a0b9e27f | 9039 | #include "confdefs.h" |
247f5006 | 9040 | |
a0b9e27f MB |
9041 | main(){return(0);} |
9042 | EOF | |
89e6bf6d | 9043 | if { (eval echo configure:9044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9044 | ac_cv_prog_cc_works=yes |
9045 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9046 | if (./conftest; exit) 2>/dev/null; then | |
9047 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 9048 | else |
a0b9e27f | 9049 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 9050 | fi |
7b4a847f | 9051 | else |
a0b9e27f MB |
9052 | echo "configure: failed program was:" >&5 |
9053 | cat conftest.$ac_ext >&5 | |
9054 | ac_cv_prog_cc_works=no | |
52127426 | 9055 | fi |
a0b9e27f MB |
9056 | rm -fr conftest* |
9057 | ac_ext=c | |
9058 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9059 | ac_cpp='$CPP $CPPFLAGS' | |
9060 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9061 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9062 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9063 | |
a0b9e27f MB |
9064 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
9065 | if test $ac_cv_prog_cc_works = no; then | |
9066 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
9067 | fi | |
9068 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
89e6bf6d | 9069 | echo "configure:9070: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9070 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
9071 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9072 | |
a0b9e27f | 9073 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
89e6bf6d | 9074 | echo "configure:9075: checking whether we are using GNU C" >&5 |
a0b9e27f MB |
9075 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
9076 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9077 | else |
a0b9e27f MB |
9078 | cat > conftest.c <<EOF |
9079 | #ifdef __GNUC__ | |
9080 | yes; | |
8284b0c5 | 9081 | #endif |
a0b9e27f | 9082 | EOF |
89e6bf6d | 9083 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f | 9084 | ac_cv_prog_gcc=yes |
5c6fa7d2 | 9085 | else |
a0b9e27f | 9086 | ac_cv_prog_gcc=no |
8284b0c5 MB |
9087 | fi |
9088 | fi | |
1e487827 | 9089 | |
a0b9e27f | 9090 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
f09359cf | 9091 | |
a0b9e27f MB |
9092 | if test $ac_cv_prog_gcc = yes; then |
9093 | GCC=yes | |
9094 | else | |
9095 | GCC= | |
9096 | fi | |
247f5006 | 9097 | |
a0b9e27f MB |
9098 | ac_test_CFLAGS="${CFLAGS+set}" |
9099 | ac_save_CFLAGS="$CFLAGS" | |
9100 | CFLAGS= | |
9101 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
89e6bf6d | 9102 | echo "configure:9103: checking whether ${CC-cc} accepts -g" >&5 |
a0b9e27f MB |
9103 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
9104 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9105 | else | |
9106 | echo 'void f(){}' > conftest.c | |
9107 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
9108 | ac_cv_prog_cc_g=yes |
9109 | else | |
a0b9e27f | 9110 | ac_cv_prog_cc_g=no |
10f2d63a | 9111 | fi |
a0b9e27f MB |
9112 | rm -f conftest* |
9113 | ||
10f2d63a | 9114 | fi |
a0b9e27f MB |
9115 | |
9116 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
f09359cf | 9117 | if test "$ac_test_CFLAGS" = set; then |
a0b9e27f | 9118 | CFLAGS="$ac_save_CFLAGS" |
f09359cf VS |
9119 | elif test $ac_cv_prog_cc_g = yes; then |
9120 | if test "$GCC" = yes; then | |
10f2d63a VZ |
9121 | CFLAGS="-g -O2" |
9122 | else | |
f09359cf | 9123 | CFLAGS="-g" |
10f2d63a | 9124 | fi |
5c0a20c3 | 9125 | else |
f09359cf VS |
9126 | if test "$GCC" = yes; then |
9127 | CFLAGS="-O2" | |
9128 | else | |
9129 | CFLAGS= | |
9130 | fi | |
10f2d63a VZ |
9131 | fi |
9132 | ||
9133 | ||
a0b9e27f | 9134 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
89e6bf6d | 9135 | echo "configure:9136: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
9136 | # On Suns, sometimes $CPP names a directory. |
9137 | if test -n "$CPP" && test -d "$CPP"; then | |
9138 | CPP= | |
9139 | fi | |
9140 | if test -z "$CPP"; then | |
a0b9e27f MB |
9141 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
9142 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9143 | else | |
9144 | # This must be in double quotes, not single quotes, because CPP may get | |
9145 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
9146 | CPP="${CC-cc} -E" | |
10f2d63a | 9147 | # On the NeXT, cc -E runs the code through the compiler's parser, |
a0b9e27f MB |
9148 | # not just through cpp. |
9149 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 9150 | #line 9151 "configure" |
10f2d63a VZ |
9151 | #include "confdefs.h" |
9152 | #include <assert.h> | |
a0b9e27f MB |
9153 | Syntax Error |
9154 | EOF | |
9155 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 9156 | { (eval echo configure:9157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9157 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9158 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9159 | : |
9160 | else | |
a0b9e27f MB |
9161 | echo "$ac_err" >&5 |
9162 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9163 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9164 | rm -rf conftest* |
9165 | CPP="${CC-cc} -E -traditional-cpp" | |
9166 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 9167 | #line 9168 "configure" |
f09359cf | 9168 | #include "confdefs.h" |
a0b9e27f MB |
9169 | #include <assert.h> |
9170 | Syntax Error | |
9171 | EOF | |
9172 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 9173 | { (eval echo configure:9174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9174 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9175 | if test -z "$ac_err"; then | |
9176 | : | |
247f5006 | 9177 | else |
a0b9e27f MB |
9178 | echo "$ac_err" >&5 |
9179 | echo "configure: failed program was:" >&5 | |
f09359cf | 9180 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9181 | rm -rf conftest* |
9182 | CPP="${CC-cc} -nologo -E" | |
9183 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 9184 | #line 9185 "configure" |
10f2d63a VZ |
9185 | #include "confdefs.h" |
9186 | #include <assert.h> | |
a0b9e27f MB |
9187 | Syntax Error |
9188 | EOF | |
9189 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 9190 | { (eval echo configure:9191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9191 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9192 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9193 | : |
9194 | else | |
a0b9e27f MB |
9195 | echo "$ac_err" >&5 |
9196 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9197 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9198 | rm -rf conftest* |
9199 | CPP=/lib/cpp | |
579d8138 | 9200 | fi |
a0b9e27f | 9201 | rm -f conftest* |
52127426 | 9202 | fi |
a0b9e27f | 9203 | rm -f conftest* |
8284b0c5 | 9204 | fi |
a0b9e27f MB |
9205 | rm -f conftest* |
9206 | ac_cv_prog_CPP="$CPP" | |
9207 | fi | |
9208 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 9209 | else |
a0b9e27f | 9210 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 9211 | fi |
a0b9e27f | 9212 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 9213 | |
a0b9e27f MB |
9214 | if test $ac_cv_prog_gcc = yes; then |
9215 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
89e6bf6d | 9216 | echo "configure:9217: checking whether ${CC-cc} needs -traditional" >&5 |
a0b9e27f MB |
9217 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
9218 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9219 | else |
9220 | ac_pattern="Autoconf.*'x'" | |
a0b9e27f | 9221 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 9222 | #line 9223 "configure" |
10f2d63a VZ |
9223 | #include "confdefs.h" |
9224 | #include <sgtty.h> | |
9225 | Autoconf TIOCGETP | |
a0b9e27f | 9226 | EOF |
10f2d63a VZ |
9227 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9228 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9229 | rm -rf conftest* |
10f2d63a VZ |
9230 | ac_cv_prog_gcc_traditional=yes |
9231 | else | |
a0b9e27f | 9232 | rm -rf conftest* |
10f2d63a VZ |
9233 | ac_cv_prog_gcc_traditional=no |
9234 | fi | |
9235 | rm -f conftest* | |
9236 | ||
8284b0c5 | 9237 | |
10f2d63a | 9238 | if test $ac_cv_prog_gcc_traditional = no; then |
a0b9e27f | 9239 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 9240 | #line 9241 "configure" |
10f2d63a VZ |
9241 | #include "confdefs.h" |
9242 | #include <termio.h> | |
9243 | Autoconf TCGETA | |
a0b9e27f | 9244 | EOF |
10f2d63a VZ |
9245 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9246 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9247 | rm -rf conftest* |
10f2d63a VZ |
9248 | ac_cv_prog_gcc_traditional=yes |
9249 | fi | |
9250 | rm -f conftest* | |
9251 | ||
9252 | fi | |
9253 | fi | |
a0b9e27f MB |
9254 | |
9255 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
9256 | if test $ac_cv_prog_gcc_traditional = yes; then |
9257 | CC="$CC -traditional" | |
9258 | fi | |
9259 | fi | |
9260 | ||
8284b0c5 MB |
9261 | |
9262 | ||
a0b9e27f MB |
9263 | ac_ext=C |
9264 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 9265 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
9266 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9267 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9268 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9269 | |
698dcdb6 | 9270 | |
ec603395 | 9271 | CXXFLAGS=${CXXFLAGS:=} |
a0b9e27f MB |
9272 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
9273 | do | |
9274 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9275 | set dummy $ac_prog; ac_word=$2 | |
9276 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
89e6bf6d | 9277 | echo "configure:9278: checking for $ac_word" >&5 |
a0b9e27f MB |
9278 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
9279 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9280 | else |
9281 | if test -n "$CXX"; then | |
9282 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9283 | else | |
a0b9e27f MB |
9284 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9285 | ac_dummy="$PATH" | |
9286 | for ac_dir in $ac_dummy; do | |
9287 | test -z "$ac_dir" && ac_dir=. | |
9288 | if test -f $ac_dir/$ac_word; then | |
9289 | ac_cv_prog_CXX="$ac_prog" | |
9290 | break | |
9291 | fi | |
9292 | done | |
9293 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9294 | fi |
9295 | fi | |
a0b9e27f | 9296 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9297 | if test -n "$CXX"; then |
a0b9e27f | 9298 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9299 | else |
a0b9e27f | 9300 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9301 | fi |
9302 | ||
a0b9e27f | 9303 | test -n "$CXX" && break |
10f2d63a | 9304 | done |
a0b9e27f | 9305 | test -n "$CXX" || CXX="gcc" |
f09359cf | 9306 | |
a0b9e27f MB |
9307 | |
9308 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
89e6bf6d | 9309 | echo "configure:9310: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
a0b9e27f MB |
9310 | |
9311 | ac_ext=C | |
9312 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9313 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9314 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9315 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9316 | cross_compiling=$ac_cv_prog_cxx_cross | |
9317 | ||
9318 | cat > conftest.$ac_ext << EOF | |
9319 | ||
89e6bf6d | 9320 | #line 9321 "configure" |
a0b9e27f MB |
9321 | #include "confdefs.h" |
9322 | ||
9323 | int main(){return(0);} | |
9324 | EOF | |
89e6bf6d | 9325 | if { (eval echo configure:9326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9326 | ac_cv_prog_cxx_works=yes |
9327 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9328 | if (./conftest; exit) 2>/dev/null; then | |
9329 | ac_cv_prog_cxx_cross=no | |
9330 | else | |
9331 | ac_cv_prog_cxx_cross=yes | |
9332 | fi | |
8284b0c5 | 9333 | else |
a0b9e27f MB |
9334 | echo "configure: failed program was:" >&5 |
9335 | cat conftest.$ac_ext >&5 | |
9336 | ac_cv_prog_cxx_works=no | |
8284b0c5 | 9337 | fi |
a0b9e27f MB |
9338 | rm -fr conftest* |
9339 | ac_ext=C | |
9340 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9341 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9342 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9343 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9344 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9345 | |
a0b9e27f MB |
9346 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
9347 | if test $ac_cv_prog_cxx_works = no; then | |
9348 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9349 | fi | |
9350 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
89e6bf6d | 9351 | echo "configure:9352: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9352 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9353 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9354 | |
a0b9e27f | 9355 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
89e6bf6d | 9356 | echo "configure:9357: checking whether we are using GNU C++" >&5 |
a0b9e27f MB |
9357 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9358 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9359 | else | |
9360 | cat > conftest.C <<EOF | |
9361 | #ifdef __GNUC__ | |
9362 | yes; | |
10f2d63a | 9363 | #endif |
a0b9e27f | 9364 | EOF |
89e6bf6d | 9365 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f MB |
9366 | ac_cv_prog_gxx=yes |
9367 | else | |
9368 | ac_cv_prog_gxx=no | |
9369 | fi | |
9370 | fi | |
10f2d63a | 9371 | |
a0b9e27f | 9372 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9373 | |
a0b9e27f MB |
9374 | if test $ac_cv_prog_gxx = yes; then |
9375 | GXX=yes | |
9376 | else | |
9377 | GXX= | |
9378 | fi | |
f09359cf | 9379 | |
a0b9e27f MB |
9380 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9381 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9382 | CXXFLAGS= | |
9383 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
89e6bf6d | 9384 | echo "configure:9385: checking whether ${CXX-g++} accepts -g" >&5 |
a0b9e27f MB |
9385 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9387 | else | |
9388 | echo 'void f(){}' > conftest.cc | |
9389 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9390 | ac_cv_prog_cxx_g=yes |
9391 | else | |
a0b9e27f | 9392 | ac_cv_prog_cxx_g=no |
10f2d63a | 9393 | fi |
a0b9e27f MB |
9394 | rm -f conftest* |
9395 | ||
10f2d63a | 9396 | fi |
a0b9e27f MB |
9397 | |
9398 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
f09359cf | 9399 | if test "$ac_test_CXXFLAGS" = set; then |
a0b9e27f | 9400 | CXXFLAGS="$ac_save_CXXFLAGS" |
f09359cf VS |
9401 | elif test $ac_cv_prog_cxx_g = yes; then |
9402 | if test "$GXX" = yes; then | |
10f2d63a VZ |
9403 | CXXFLAGS="-g -O2" |
9404 | else | |
f09359cf | 9405 | CXXFLAGS="-g" |
10f2d63a | 9406 | fi |
5c0a20c3 | 9407 | else |
f09359cf VS |
9408 | if test "$GXX" = yes; then |
9409 | CXXFLAGS="-O2" | |
9410 | else | |
9411 | CXXFLAGS= | |
9412 | fi | |
10f2d63a VZ |
9413 | fi |
9414 | ||
9415 | ||
10f2d63a | 9416 | ac_ext=c |
a0b9e27f | 9417 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9418 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
9419 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9420 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9421 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 MB |
9422 | |
9423 | ||
a0b9e27f MB |
9424 | # Extract the first word of "ranlib", so it can be a program name with args. |
9425 | set dummy ranlib; ac_word=$2 | |
9426 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
89e6bf6d | 9427 | echo "configure:9428: checking for $ac_word" >&5 |
a0b9e27f MB |
9428 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9429 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9430 | else |
9431 | if test -n "$RANLIB"; then | |
9432 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9433 | else | |
a0b9e27f MB |
9434 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9435 | ac_dummy="$PATH" | |
9436 | for ac_dir in $ac_dummy; do | |
9437 | test -z "$ac_dir" && ac_dir=. | |
9438 | if test -f $ac_dir/$ac_word; then | |
9439 | ac_cv_prog_RANLIB="ranlib" | |
9440 | break | |
9441 | fi | |
9442 | done | |
9443 | IFS="$ac_save_ifs" | |
9444 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9445 | fi |
9446 | fi | |
a0b9e27f | 9447 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9448 | if test -n "$RANLIB"; then |
a0b9e27f | 9449 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9450 | else |
a0b9e27f | 9451 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9452 | fi |
9453 | ||
10f2d63a VZ |
9454 | |
9455 | # Extract the first word of "ar", so it can be a program name with args. | |
9456 | set dummy ar; ac_word=$2 | |
a0b9e27f | 9457 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
89e6bf6d | 9458 | echo "configure:9459: checking for $ac_word" >&5 |
a0b9e27f MB |
9459 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9460 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9461 | else |
9462 | if test -n "$AR"; then | |
9463 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9464 | else | |
a0b9e27f MB |
9465 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9466 | ac_dummy="$PATH" | |
9467 | for ac_dir in $ac_dummy; do | |
9468 | test -z "$ac_dir" && ac_dir=. | |
9469 | if test -f $ac_dir/$ac_word; then | |
9470 | ac_cv_prog_AR="ar" | |
9471 | break | |
9472 | fi | |
9473 | done | |
9474 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9475 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9476 | fi | |
9477 | fi | |
a0b9e27f | 9478 | AR="$ac_cv_prog_AR" |
10f2d63a | 9479 | if test -n "$AR"; then |
a0b9e27f | 9480 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9481 | else |
a0b9e27f | 9482 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9483 | fi |
9484 | ||
8284b0c5 | 9485 | |
6054113a | 9486 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9487 | # so one script is as good as another. But avoid the broken or |
9488 | # incompatible versions: | |
9489 | # SysV /etc/install, /usr/sbin/install | |
9490 | # SunOS /usr/etc/install | |
9491 | # IRIX /sbin/install | |
9492 | # AIX /bin/install | |
f09359cf | 9493 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
9494 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9495 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9496 | # ./install, which can be erroneously created by make from ./install.sh. | |
a0b9e27f | 9497 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
89e6bf6d | 9498 | echo "configure:9499: checking for a BSD compatible install" >&5 |
10f2d63a | 9499 | if test -z "$INSTALL"; then |
a0b9e27f MB |
9500 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9501 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9502 | else | |
9503 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9504 | for ac_dir in $PATH; do | |
9505 | # Account for people who put trailing slashes in PATH elements. | |
9506 | case "$ac_dir/" in | |
9507 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9508 | *) | |
9509 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9510 | # Don't use installbsd from OSF since it installs stuff as root | |
9511 | # by default. | |
9512 | for ac_prog in ginstall scoinst install; do | |
9513 | if test -f $ac_dir/$ac_prog; then | |
9514 | if test $ac_prog = install && | |
9515 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9516 | # AIX install. It has an incompatible calling convention. | |
9517 | : | |
9518 | else | |
9519 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9520 | break 2 | |
9521 | fi | |
9522 | fi | |
10f2d63a | 9523 | done |
a0b9e27f MB |
9524 | ;; |
9525 | esac | |
9526 | done | |
9527 | IFS="$ac_save_IFS" | |
10f2d63a VZ |
9528 | |
9529 | fi | |
9530 | if test "${ac_cv_path_install+set}" = set; then | |
a0b9e27f | 9531 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9532 | else |
9533 | # As a last resort, use the slow shell script. We don't cache a | |
9534 | # path for INSTALL within a source directory, because that will | |
9535 | # break other packages using the cache if that directory is | |
9536 | # removed, or if the path is relative. | |
a0b9e27f | 9537 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9538 | fi |
9539 | fi | |
a0b9e27f | 9540 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9541 | |
9542 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9543 | # It thinks the first close brace ends the variable substitution. | |
9544 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9545 | ||
a0b9e27f | 9546 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
f09359cf | 9547 | |
10f2d63a VZ |
9548 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9549 | ||
8284b0c5 | 9550 | |
1d1b75ac VZ |
9551 | case ${INSTALL} in |
9552 | /* ) # Absolute | |
9553 | ;; | |
3bd8fb5f | 9554 | *) |
1d1b75ac VZ |
9555 | INSTALL=`pwd`/${INSTALL} ;; |
9556 | esac | |
9557 | ||
8284b0c5 | 9558 | |
6054113a GD |
9559 | case "${host}" in |
9560 | ||
b5853384 | 9561 | powerpc-*-darwin* ) |
eb99ae0b GD |
9562 | INSTALL_PROGRAM="cp -fp" |
9563 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9564 | ;; |
9565 | *) | |
9566 | ;; | |
d6853540 | 9567 | esac |
698dcdb6 | 9568 | |
10f2d63a VZ |
9569 | # Extract the first word of "strip", so it can be a program name with args. |
9570 | set dummy strip; ac_word=$2 | |
a0b9e27f | 9571 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
89e6bf6d | 9572 | echo "configure:9573: checking for $ac_word" >&5 |
a0b9e27f MB |
9573 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9574 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9575 | else |
9576 | if test -n "$STRIP"; then | |
9577 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9578 | else | |
a0b9e27f MB |
9579 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9580 | ac_dummy="$PATH" | |
9581 | for ac_dir in $ac_dummy; do | |
9582 | test -z "$ac_dir" && ac_dir=. | |
9583 | if test -f $ac_dir/$ac_word; then | |
9584 | ac_cv_prog_STRIP="strip" | |
9585 | break | |
9586 | fi | |
9587 | done | |
9588 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9589 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9590 | fi | |
9591 | fi | |
a0b9e27f | 9592 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9593 | if test -n "$STRIP"; then |
a0b9e27f | 9594 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9595 | else |
a0b9e27f | 9596 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9597 | fi |
9598 | ||
5c6fa7d2 | 9599 | |
a0b9e27f | 9600 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
89e6bf6d | 9601 | echo "configure:9602: checking if make is GNU make" >&5 |
a0b9e27f MB |
9602 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9604 | else |
a0b9e27f | 9605 | |
414eab6d | 9606 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9607 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9608 | wx_cv_prog_makeisgnu="yes" |
9609 | else | |
9610 | wx_cv_prog_makeisgnu="no" | |
9611 | fi | |
9612 | ||
9613 | fi | |
a0b9e27f MB |
9614 | |
9615 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9616 | |
9617 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9618 | IF_GNU_MAKE="" | |
9619 | else | |
9620 | IF_GNU_MAKE="#" | |
9621 | fi | |
9622 | ||
8284b0c5 MB |
9623 | |
9624 | ||
414eab6d | 9625 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
a0b9e27f | 9626 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
89e6bf6d | 9627 | echo "configure:9628: checking if make supports VPATH" >&5 |
a0b9e27f MB |
9628 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9629 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9630 | else |
a0b9e27f | 9631 | |
10f2d63a VZ |
9632 | cat - << EOF > confMake |
9633 | check : file | |
9634 | cp \$? \$@ | |
9635 | cp \$? final_file | |
9636 | EOF | |
9637 | ||
9638 | if test ! -d sub ; then | |
9639 | mkdir sub | |
9640 | fi | |
9641 | echo dummy > sub/file | |
f6bcfd97 | 9642 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9643 | RESULT=$? |
9644 | rm -f sub/file check final_file confMake | |
9645 | rmdir sub | |
9646 | if test "$RESULT" = 0; then | |
04e7a216 | 9647 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9648 | else |
04e7a216 VZ |
9649 | wx_cv_prog_makevpath="no" |
9650 | fi | |
9651 | ||
9652 | fi | |
a0b9e27f MB |
9653 | |
9654 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9655 | |
9656 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
a0b9e27f | 9657 | { echo "configure: error: |
5c6fa7d2 RR |
9658 | You need a make-utility that is able to use the variable |
9659 | VPATH correctly. | |
9660 | If your version of make does not support VPATH correctly, | |
9661 | please install GNU-make (possibly as gmake), and start | |
9662 | configure with the following command: | |
9663 | export MAKE=gmake; ./configure for sh-type shells | |
9664 | setenv MAKE gmake; ./configure for csh-type shells | |
9665 | Also please do remember to use gmake in this case every time | |
9666 | you are trying to compile. | |
a0b9e27f MB |
9667 | " 1>&2; exit 1; } |
9668 | fi fi | |
10f2d63a VZ |
9669 | for ac_prog in 'bison -y' byacc |
9670 | do | |
a0b9e27f | 9671 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9672 | set dummy $ac_prog; ac_word=$2 |
a0b9e27f | 9673 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
89e6bf6d | 9674 | echo "configure:9675: checking for $ac_word" >&5 |
a0b9e27f MB |
9675 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9676 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9677 | else |
9678 | if test -n "$YACC"; then | |
9679 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9680 | else | |
a0b9e27f MB |
9681 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9682 | ac_dummy="$PATH" | |
9683 | for ac_dir in $ac_dummy; do | |
9684 | test -z "$ac_dir" && ac_dir=. | |
9685 | if test -f $ac_dir/$ac_word; then | |
9686 | ac_cv_prog_YACC="$ac_prog" | |
9687 | break | |
9688 | fi | |
9689 | done | |
9690 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9691 | fi |
9692 | fi | |
a0b9e27f | 9693 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9694 | if test -n "$YACC"; then |
a0b9e27f | 9695 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9696 | else |
a0b9e27f | 9697 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9698 | fi |
9699 | ||
a0b9e27f | 9700 | test -n "$YACC" && break |
10f2d63a VZ |
9701 | done |
9702 | test -n "$YACC" || YACC="yacc" | |
9703 | ||
8284b0c5 | 9704 | |
a0b9e27f MB |
9705 | # Extract the first word of "flex", so it can be a program name with args. |
9706 | set dummy flex; ac_word=$2 | |
9707 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
89e6bf6d | 9708 | echo "configure:9709: checking for $ac_word" >&5 |
a0b9e27f MB |
9709 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9710 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9711 | else |
9712 | if test -n "$LEX"; then | |
9713 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9714 | else | |
a0b9e27f MB |
9715 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9716 | ac_dummy="$PATH" | |
9717 | for ac_dir in $ac_dummy; do | |
9718 | test -z "$ac_dir" && ac_dir=. | |
9719 | if test -f $ac_dir/$ac_word; then | |
9720 | ac_cv_prog_LEX="flex" | |
9721 | break | |
9722 | fi | |
9723 | done | |
9724 | IFS="$ac_save_ifs" | |
9725 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9726 | fi |
9727 | fi | |
a0b9e27f | 9728 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9729 | if test -n "$LEX"; then |
a0b9e27f | 9730 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9731 | else |
a0b9e27f | 9732 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9733 | fi |
9734 | ||
9735 | if test -z "$LEXLIB" | |
9736 | then | |
a0b9e27f MB |
9737 | case "$LEX" in |
9738 | flex*) ac_lib=fl ;; | |
9739 | *) ac_lib=l ;; | |
9740 | esac | |
9741 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
89e6bf6d | 9742 | echo "configure:9743: checking for yywrap in -l$ac_lib" >&5 |
a0b9e27f MB |
9743 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9744 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9745 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9746 | else | |
9747 | ac_save_LIBS="$LIBS" | |
9748 | LIBS="-l$ac_lib $LIBS" | |
9749 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 9750 | #line 9751 "configure" |
247f5006 | 9751 | #include "confdefs.h" |
247f5006 | 9752 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 9753 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
9754 | builtin and then its argument prototype would still apply. */ |
9755 | char yywrap(); | |
10f2d63a | 9756 | |
a0b9e27f MB |
9757 | int main() { |
9758 | yywrap() | |
9759 | ; return 0; } | |
9760 | EOF | |
89e6bf6d | 9761 | if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9762 | rm -rf conftest* |
9763 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9764 | else | |
9765 | echo "configure: failed program was:" >&5 | |
9766 | cat conftest.$ac_ext >&5 | |
9767 | rm -rf conftest* | |
9768 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9769 | fi |
a0b9e27f MB |
9770 | rm -f conftest* |
9771 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 9772 | |
10f2d63a | 9773 | fi |
a0b9e27f MB |
9774 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9775 | echo "$ac_t""yes" 1>&6 | |
9776 | LEXLIB="-l$ac_lib" | |
8284b0c5 | 9777 | else |
a0b9e27f | 9778 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9779 | fi |
9780 | ||
a0b9e27f | 9781 | fi |
10f2d63a VZ |
9782 | |
9783 | ||
a0b9e27f | 9784 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
89e6bf6d | 9785 | echo "configure:9786: checking whether ln -s works" >&5 |
a0b9e27f MB |
9786 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9788 | else |
a0b9e27f MB |
9789 | rm -f conftestdata |
9790 | if ln -s X conftestdata 2>/dev/null | |
9791 | then | |
9792 | rm -f conftestdata | |
9793 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9794 | else |
a0b9e27f | 9795 | ac_cv_prog_LN_S=ln |
10f2d63a | 9796 | fi |
a0b9e27f MB |
9797 | fi |
9798 | LN_S="$ac_cv_prog_LN_S" | |
9799 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9800 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9801 | else |
a0b9e27f | 9802 | echo "$ac_t""no" 1>&6 |
5c6fa7d2 | 9803 | fi |
5c6fa7d2 | 9804 | |
247f5006 | 9805 | |
2b5f62a0 VZ |
9806 | case "${host}" in |
9807 | *-pc-os2_emx | *-pc-os2-emx ) | |
9808 | LIBS="$LIBS -lstdcpp" | |
9809 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
9810 | echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6 | |
89e6bf6d | 9811 | echo "configure:9812: checking for drand48 in -lcExt" >&5 |
2b5f62a0 VZ |
9812 | ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'` |
9813 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9815 | else | |
9816 | ac_save_LIBS="$LIBS" | |
9817 | LIBS="-lcExt $LIBS" | |
9818 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 9819 | #line 9820 "configure" |
2b5f62a0 VZ |
9820 | #include "confdefs.h" |
9821 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9822 | /* We use char because int might match the return type of a gcc2 | |
9823 | builtin and then its argument prototype would still apply. */ | |
9824 | char drand48(); | |
9825 | ||
9826 | int main() { | |
9827 | drand48() | |
9828 | ; return 0; } | |
9829 | EOF | |
89e6bf6d | 9830 | if { (eval echo configure:9831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
9831 | rm -rf conftest* |
9832 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9833 | else | |
9834 | echo "configure: failed program was:" >&5 | |
9835 | cat conftest.$ac_ext >&5 | |
9836 | rm -rf conftest* | |
9837 | eval "ac_cv_lib_$ac_lib_var=no" | |
9838 | fi | |
9839 | rm -f conftest* | |
9840 | LIBS="$ac_save_LIBS" | |
9841 | ||
9842 | fi | |
9843 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9844 | echo "$ac_t""yes" 1>&6 | |
9845 | LIBS="$LIBS -lcExt" | |
9846 | else | |
9847 | echo "$ac_t""no" 1>&6 | |
9848 | fi | |
9849 | ||
9850 | else | |
9851 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
9852 | fi | |
9853 | ;; | |
9854 | esac | |
9855 | ||
a0b9e27f MB |
9856 | |
9857 | if test "$wxUSE_MAC" != 1; then | |
9858 | for ac_hdr in strings.h | |
9859 | do | |
9860 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9861 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
89e6bf6d | 9862 | echo "configure:9863: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9863 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9864 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9865 | else | |
9866 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 9867 | #line 9868 "configure" |
a0b9e27f MB |
9868 | #include "confdefs.h" |
9869 | #include <$ac_hdr> | |
9870 | EOF | |
9871 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 9872 | { (eval echo configure:9873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9873 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9874 | if test -z "$ac_err"; then | |
9875 | rm -rf conftest* | |
9876 | eval "ac_cv_header_$ac_safe=yes" | |
9877 | else | |
9878 | echo "$ac_err" >&5 | |
9879 | echo "configure: failed program was:" >&5 | |
9880 | cat conftest.$ac_ext >&5 | |
9881 | rm -rf conftest* | |
9882 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 9883 | fi |
247f5006 | 9884 | rm -f conftest* |
19bc6aad | 9885 | fi |
a0b9e27f MB |
9886 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9887 | echo "$ac_t""yes" 1>&6 | |
9888 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9889 | cat >> confdefs.h <<EOF | |
9890 | #define $ac_tr_hdr 1 | |
9891 | EOF | |
9892 | ||
247f5006 | 9893 | else |
a0b9e27f | 9894 | echo "$ac_t""no" 1>&6 |
18dbb1f6 | 9895 | fi |
a0b9e27f | 9896 | done |
247f5006 | 9897 | |
90dd450c | 9898 | fi |
90dd450c | 9899 | |
a0b9e27f MB |
9900 | for ac_hdr in stdlib.h |
9901 | do | |
9902 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9903 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
89e6bf6d | 9904 | echo "configure:9905: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9905 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9906 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9907 | else | |
9908 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 9909 | #line 9910 "configure" |
90dd450c | 9910 | #include "confdefs.h" |
a0b9e27f MB |
9911 | #include <$ac_hdr> |
9912 | EOF | |
9913 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 9914 | { (eval echo configure:9915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9915 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9916 | if test -z "$ac_err"; then | |
9917 | rm -rf conftest* | |
9918 | eval "ac_cv_header_$ac_safe=yes" | |
9919 | else | |
9920 | echo "$ac_err" >&5 | |
9921 | echo "configure: failed program was:" >&5 | |
9922 | cat conftest.$ac_ext >&5 | |
9923 | rm -rf conftest* | |
9924 | eval "ac_cv_header_$ac_safe=no" | |
9925 | fi | |
9926 | rm -f conftest* | |
9927 | fi | |
9928 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9929 | echo "$ac_t""yes" 1>&6 | |
9930 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9931 | cat >> confdefs.h <<EOF | |
9932 | #define $ac_tr_hdr 1 | |
9933 | EOF | |
9934 | ||
8284b0c5 | 9935 | else |
a0b9e27f | 9936 | echo "$ac_t""no" 1>&6 |
21d1c967 | 9937 | fi |
a0b9e27f MB |
9938 | done |
9939 | ||
9940 | for ac_hdr in malloc.h | |
9941 | do | |
9942 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9943 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
89e6bf6d | 9944 | echo "configure:9945: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9945 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9946 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9947 | else | |
9948 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 9949 | #line 9950 "configure" |
a0b9e27f MB |
9950 | #include "confdefs.h" |
9951 | #include <$ac_hdr> | |
9952 | EOF | |
9953 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 9954 | { (eval echo configure:9955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9955 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9956 | if test -z "$ac_err"; then | |
9957 | rm -rf conftest* | |
9958 | eval "ac_cv_header_$ac_safe=yes" | |
9959 | else | |
9960 | echo "$ac_err" >&5 | |
9961 | echo "configure: failed program was:" >&5 | |
9962 | cat conftest.$ac_ext >&5 | |
9963 | rm -rf conftest* | |
9964 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9965 | fi |
a0b9e27f | 9966 | rm -f conftest* |
90dd450c | 9967 | fi |
a0b9e27f MB |
9968 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9969 | echo "$ac_t""yes" 1>&6 | |
9970 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9971 | cat >> confdefs.h <<EOF | |
9972 | #define $ac_tr_hdr 1 | |
9973 | EOF | |
9974 | ||
9975 | else | |
9976 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 9977 | fi |
a0b9e27f | 9978 | done |
247f5006 | 9979 | |
a0b9e27f MB |
9980 | for ac_hdr in unistd.h |
9981 | do | |
9982 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9983 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
89e6bf6d | 9984 | echo "configure:9985: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9985 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9986 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9987 | else | |
9988 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 9989 | #line 9990 "configure" |
a0b9e27f MB |
9990 | #include "confdefs.h" |
9991 | #include <$ac_hdr> | |
9992 | EOF | |
9993 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 9994 | { (eval echo configure:9995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9995 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9996 | if test -z "$ac_err"; then | |
9997 | rm -rf conftest* | |
9998 | eval "ac_cv_header_$ac_safe=yes" | |
9999 | else | |
10000 | echo "$ac_err" >&5 | |
10001 | echo "configure: failed program was:" >&5 | |
10002 | cat conftest.$ac_ext >&5 | |
10003 | rm -rf conftest* | |
10004 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 10005 | fi |
a0b9e27f MB |
10006 | rm -f conftest* |
10007 | fi | |
10008 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10009 | echo "$ac_t""yes" 1>&6 | |
10010 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10011 | cat >> confdefs.h <<EOF | |
10012 | #define $ac_tr_hdr 1 | |
10013 | EOF | |
10014 | ||
10015 | else | |
10016 | echo "$ac_t""no" 1>&6 | |
10017 | fi | |
10018 | done | |
90dd450c | 10019 | |
a0b9e27f | 10020 | for ac_hdr in wchar.h |
21d1c967 | 10021 | do |
a0b9e27f MB |
10022 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10023 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
89e6bf6d | 10024 | echo "configure:10025: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10025 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10026 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10027 | else | |
10028 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 10029 | #line 10030 "configure" |
4f14bcd8 | 10030 | #include "confdefs.h" |
a0b9e27f MB |
10031 | #include <$ac_hdr> |
10032 | EOF | |
10033 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 10034 | { (eval echo configure:10035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10035 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10036 | if test -z "$ac_err"; then | |
10037 | rm -rf conftest* | |
10038 | eval "ac_cv_header_$ac_safe=yes" | |
10039 | else | |
10040 | echo "$ac_err" >&5 | |
10041 | echo "configure: failed program was:" >&5 | |
10042 | cat conftest.$ac_ext >&5 | |
10043 | rm -rf conftest* | |
10044 | eval "ac_cv_header_$ac_safe=no" | |
10045 | fi | |
10046 | rm -f conftest* | |
10047 | fi | |
10048 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10049 | echo "$ac_t""yes" 1>&6 | |
10050 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10051 | cat >> confdefs.h <<EOF | |
10052 | #define $ac_tr_hdr 1 | |
10053 | EOF | |
10054 | ||
10055 | else | |
10056 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10057 | fi |
10058 | done | |
4f14bcd8 | 10059 | |
5c6fa7d2 | 10060 | |
a0b9e27f MB |
10061 | if test "$ac_cv_header_wchar_h" != "yes"; then |
10062 | for ac_hdr in wcstr.h | |
21d1c967 | 10063 | do |
a0b9e27f MB |
10064 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10065 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
89e6bf6d | 10066 | echo "configure:10067: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10067 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10068 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10069 | else | |
10070 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 10071 | #line 10072 "configure" |
d4158b5d | 10072 | #include "confdefs.h" |
a0b9e27f MB |
10073 | #include <$ac_hdr> |
10074 | EOF | |
10075 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 10076 | { (eval echo configure:10077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10077 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10078 | if test -z "$ac_err"; then | |
10079 | rm -rf conftest* | |
10080 | eval "ac_cv_header_$ac_safe=yes" | |
10081 | else | |
10082 | echo "$ac_err" >&5 | |
10083 | echo "configure: failed program was:" >&5 | |
d4158b5d | 10084 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10085 | rm -rf conftest* |
10086 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 10087 | fi |
a0b9e27f | 10088 | rm -f conftest* |
21d1c967 | 10089 | fi |
a0b9e27f MB |
10090 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10091 | echo "$ac_t""yes" 1>&6 | |
10092 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10093 | cat >> confdefs.h <<EOF | |
10094 | #define $ac_tr_hdr 1 | |
10095 | EOF | |
10096 | ||
10097 | else | |
10098 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 10099 | fi |
21d1c967 | 10100 | done |
f6bcfd97 | 10101 | |
90dd450c | 10102 | fi |
90dd450c | 10103 | |
a0b9e27f | 10104 | for ac_hdr in fnmatch.h |
21d1c967 | 10105 | do |
a0b9e27f MB |
10106 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10107 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
89e6bf6d | 10108 | echo "configure:10109: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10109 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10110 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10111 | else | |
10112 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 10113 | #line 10114 "configure" |
90dd450c | 10114 | #include "confdefs.h" |
a0b9e27f MB |
10115 | #include <$ac_hdr> |
10116 | EOF | |
10117 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 10118 | { (eval echo configure:10119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10119 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10120 | if test -z "$ac_err"; then | |
10121 | rm -rf conftest* | |
10122 | eval "ac_cv_header_$ac_safe=yes" | |
10123 | else | |
10124 | echo "$ac_err" >&5 | |
10125 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 10126 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10127 | rm -rf conftest* |
10128 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10129 | fi |
a0b9e27f | 10130 | rm -f conftest* |
4f14bcd8 | 10131 | fi |
a0b9e27f MB |
10132 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10133 | echo "$ac_t""yes" 1>&6 | |
10134 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10135 | cat >> confdefs.h <<EOF | |
10136 | #define $ac_tr_hdr 1 | |
10137 | EOF | |
10138 | ||
10139 | else | |
10140 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10141 | fi |
10142 | done | |
90dd450c | 10143 | |
5c6fa7d2 | 10144 | |
a0b9e27f MB |
10145 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
10146 | for ac_func in fnmatch | |
21d1c967 | 10147 | do |
a0b9e27f | 10148 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 10149 | echo "configure:10150: checking for $ac_func" >&5 |
a0b9e27f MB |
10150 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10151 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10152 | else |
a0b9e27f | 10153 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 10154 | #line 10155 "configure" |
a0b9e27f MB |
10155 | #include "confdefs.h" |
10156 | /* System header to define __stub macros and hopefully few prototypes, | |
10157 | which can conflict with char $ac_func(); below. */ | |
10158 | #include <assert.h> | |
10159 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10160 | /* We use char because int might match the return type of a gcc2 | |
10161 | builtin and then its argument prototype would still apply. */ | |
10162 | char $ac_func(); | |
10163 | ||
10164 | int main() { | |
10165 | ||
10166 | /* The GNU C library defines this for functions which it implements | |
10167 | to always fail with ENOSYS. Some functions are actually named | |
10168 | something starting with __ and the normal name is an alias. */ | |
10169 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10170 | choke me | |
10171 | #else | |
10172 | $ac_func(); | |
10173 | #endif | |
10174 | ||
10175 | ; return 0; } | |
10176 | EOF | |
89e6bf6d | 10177 | if { (eval echo configure:10178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
10178 | rm -rf conftest* |
10179 | eval "ac_cv_func_$ac_func=yes" | |
8284b0c5 | 10180 | else |
a0b9e27f | 10181 | echo "configure: failed program was:" >&5 |
8284b0c5 | 10182 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10183 | rm -rf conftest* |
10184 | eval "ac_cv_func_$ac_func=no" | |
8284b0c5 | 10185 | fi |
a0b9e27f | 10186 | rm -f conftest* |
8284b0c5 | 10187 | fi |
32832908 | 10188 | |
a0b9e27f MB |
10189 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10190 | echo "$ac_t""yes" 1>&6 | |
10191 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10192 | cat >> confdefs.h <<EOF | |
10193 | #define $ac_tr_func 1 | |
10194 | EOF | |
10195 | ||
10196 | else | |
10197 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10198 | fi |
10199 | done | |
90dd450c | 10200 | |
a0b9e27f | 10201 | fi |
90dd450c | 10202 | |
a0b9e27f | 10203 | for ac_hdr in langinfo.h |
21d1c967 | 10204 | do |
a0b9e27f MB |
10205 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10206 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
89e6bf6d | 10207 | echo "configure:10208: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10208 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10209 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10210 | else | |
10211 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 10212 | #line 10213 "configure" |
247f5006 | 10213 | #include "confdefs.h" |
a0b9e27f MB |
10214 | #include <$ac_hdr> |
10215 | EOF | |
10216 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 10217 | { (eval echo configure:10218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10218 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10219 | if test -z "$ac_err"; then | |
10220 | rm -rf conftest* | |
10221 | eval "ac_cv_header_$ac_safe=yes" | |
10222 | else | |
10223 | echo "$ac_err" >&5 | |
10224 | echo "configure: failed program was:" >&5 | |
90dd450c | 10225 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10226 | rm -rf conftest* |
10227 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 10228 | fi |
a0b9e27f | 10229 | rm -f conftest* |
4f14bcd8 | 10230 | fi |
a0b9e27f MB |
10231 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10232 | echo "$ac_t""yes" 1>&6 | |
10233 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10234 | cat >> confdefs.h <<EOF | |
10235 | #define $ac_tr_hdr 1 | |
10236 | EOF | |
10237 | ||
10238 | else | |
10239 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10240 | fi |
10241 | done | |
3a922bb4 | 10242 | |
8284b0c5 | 10243 | |
a0b9e27f MB |
10244 | if test "$wxUSE_GUI" = "yes"; then |
10245 | if test "$wxUSE_UNIX" = "yes"; then | |
10246 | for ac_hdr in X11/XKBlib.h | |
21d1c967 | 10247 | do |
a0b9e27f MB |
10248 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10249 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
89e6bf6d | 10250 | echo "configure:10251: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10251 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10252 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10253 | else | |
10254 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 10255 | #line 10256 "configure" |
90dd450c | 10256 | #include "confdefs.h" |
a0b9e27f MB |
10257 | #include <$ac_hdr> |
10258 | EOF | |
10259 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 10260 | { (eval echo configure:10261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10261 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10262 | if test -z "$ac_err"; then | |
10263 | rm -rf conftest* | |
10264 | eval "ac_cv_header_$ac_safe=yes" | |
10265 | else | |
10266 | echo "$ac_err" >&5 | |
10267 | echo "configure: failed program was:" >&5 | |
90dd450c | 10268 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10269 | rm -rf conftest* |
10270 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10271 | fi |
a0b9e27f | 10272 | rm -f conftest* |
90dd450c | 10273 | fi |
a0b9e27f MB |
10274 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10275 | echo "$ac_t""yes" 1>&6 | |
10276 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10277 | cat >> confdefs.h <<EOF | |
10278 | #define $ac_tr_hdr 1 | |
10279 | EOF | |
10280 | ||
10281 | else | |
10282 | echo "$ac_t""no" 1>&6 | |
247f5006 | 10283 | fi |
247f5006 VZ |
10284 | done |
10285 | ||
a0b9e27f MB |
10286 | fi |
10287 | fi | |
247f5006 | 10288 | |
247f5006 | 10289 | |
a0b9e27f | 10290 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
89e6bf6d | 10291 | echo "configure:10292: checking for working const" >&5 |
a0b9e27f MB |
10292 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10294 | else |
a0b9e27f | 10295 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 10296 | #line 10297 "configure" |
a0b9e27f MB |
10297 | #include "confdefs.h" |
10298 | ||
10299 | int main() { | |
10300 | ||
10301 | /* Ultrix mips cc rejects this. */ | |
10302 | typedef int charset[2]; const charset x; | |
10303 | /* SunOS 4.1.1 cc rejects this. */ | |
10304 | char const *const *ccp; | |
10305 | char **p; | |
10306 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10307 | struct point {int x, y;}; | |
10308 | static struct point const zero = {0,0}; | |
10309 | /* AIX XL C 1.02.0.0 rejects this. | |
10310 | It does not let you subtract one const X* pointer from another in an arm | |
10311 | of an if-expression whose if-part is not a constant expression */ | |
10312 | const char *g = "string"; | |
10313 | ccp = &g + (g ? g-g : 0); | |
10314 | /* HPUX 7.0 cc rejects these. */ | |
10315 | ++ccp; | |
10316 | p = (char**) ccp; | |
10317 | ccp = (char const *const *) p; | |
10318 | { /* SCO 3.2v4 cc rejects this. */ | |
10319 | char *t; | |
10320 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10321 | ||
10322 | *t++ = 0; | |
10323 | } | |
10324 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10325 | int x[] = {25, 17}; | |
10326 | const int *foo = &x[0]; | |
10327 | ++foo; | |
10328 | } | |
10329 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10330 | typedef const int *iptr; | |
10331 | iptr p = 0; | |
10332 | ++p; | |
10333 | } | |
10334 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10335 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10336 | struct s { int j; const int *ap[3]; }; | |
10337 | struct s *b; b->j = 5; | |
10338 | } | |
10339 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10340 | const int foo = 10; | |
10341 | } | |
10342 | ||
10343 | ; return 0; } | |
10344 | EOF | |
89e6bf6d | 10345 | if { (eval echo configure:10346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10346 | rm -rf conftest* |
10347 | ac_cv_c_const=yes | |
247f5006 | 10348 | else |
a0b9e27f | 10349 | echo "configure: failed program was:" >&5 |
247f5006 | 10350 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10351 | rm -rf conftest* |
10352 | ac_cv_c_const=no | |
247f5006 | 10353 | fi |
a0b9e27f | 10354 | rm -f conftest* |
21d1c967 | 10355 | fi |
247f5006 | 10356 | |
a0b9e27f MB |
10357 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10358 | if test $ac_cv_c_const = no; then | |
10359 | cat >> confdefs.h <<\EOF | |
10360 | #define const | |
10361 | EOF | |
10f2d63a | 10362 | |
90dd450c | 10363 | fi |
81809c07 | 10364 | |
a0b9e27f | 10365 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
89e6bf6d | 10366 | echo "configure:10367: checking for inline" >&5 |
a0b9e27f MB |
10367 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10368 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 10369 | else |
a0b9e27f MB |
10370 | ac_cv_c_inline=no |
10371 | for ac_kw in inline __inline__ __inline; do | |
10372 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 10373 | #line 10374 "configure" |
a0b9e27f MB |
10374 | #include "confdefs.h" |
10375 | ||
10376 | int main() { | |
10377 | } $ac_kw foo() { | |
10378 | ; return 0; } | |
10379 | EOF | |
89e6bf6d | 10380 | if { (eval echo configure:10381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10381 | rm -rf conftest* |
10382 | ac_cv_c_inline=$ac_kw; break | |
247f5006 | 10383 | else |
a0b9e27f | 10384 | echo "configure: failed program was:" >&5 |
247f5006 | 10385 | cat conftest.$ac_ext >&5 |
247f5006 | 10386 | fi |
a0b9e27f MB |
10387 | rm -f conftest* |
10388 | done | |
247f5006 VZ |
10389 | |
10390 | fi | |
10391 | ||
a0b9e27f MB |
10392 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10393 | case "$ac_cv_c_inline" in | |
10394 | inline | yes) ;; | |
10395 | no) cat >> confdefs.h <<\EOF | |
10396 | #define inline | |
10397 | EOF | |
10398 | ;; | |
10399 | *) cat >> confdefs.h <<EOF | |
10400 | #define inline $ac_cv_c_inline | |
10401 | EOF | |
10402 | ;; | |
10403 | esac | |
247f5006 | 10404 | |
247f5006 | 10405 | |
a0b9e27f | 10406 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
89e6bf6d | 10407 | echo "configure:10408: checking size of char" >&5 |
a0b9e27f MB |
10408 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10410 | else | |
10411 | if test "$cross_compiling" = yes; then | |
10412 | ac_cv_sizeof_char=1 | |
10413 | else | |
10414 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 10415 | #line 10416 "configure" |
4f14bcd8 | 10416 | #include "confdefs.h" |
a0b9e27f | 10417 | #include <stdio.h> |
54ab82b3 | 10418 | #include <sys/types.h> |
a0b9e27f | 10419 | main() |
247f5006 | 10420 | { |
a0b9e27f MB |
10421 | FILE *f=fopen("conftestval", "w"); |
10422 | if (!f) exit(1); | |
10423 | fprintf(f, "%d\n", sizeof(char)); | |
10424 | exit(0); | |
52127426 | 10425 | } |
a0b9e27f | 10426 | EOF |
89e6bf6d | 10427 | if { (eval echo configure:10428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10428 | then |
10429 | ac_cv_sizeof_char=`cat conftestval` | |
247f5006 | 10430 | else |
a0b9e27f | 10431 | echo "configure: failed program was:" >&5 |
247f5006 | 10432 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10433 | rm -fr conftest* |
10434 | ac_cv_sizeof_char=0 | |
247f5006 | 10435 | fi |
a0b9e27f | 10436 | rm -fr conftest* |
247f5006 | 10437 | fi |
247f5006 VZ |
10438 | |
10439 | fi | |
a0b9e27f MB |
10440 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10441 | cat >> confdefs.h <<EOF | |
10442 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10443 | EOF | |
247f5006 | 10444 | |
247f5006 | 10445 | |
a0b9e27f | 10446 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
89e6bf6d | 10447 | echo "configure:10448: checking size of short" >&5 |
a0b9e27f MB |
10448 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10449 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10450 | else |
a0b9e27f MB |
10451 | if test "$cross_compiling" = yes; then |
10452 | ac_cv_sizeof_short=2 | |
247f5006 | 10453 | else |
a0b9e27f | 10454 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 10455 | #line 10456 "configure" |
a0b9e27f MB |
10456 | #include "confdefs.h" |
10457 | #include <stdio.h> | |
54ab82b3 | 10458 | #include <sys/types.h> |
a0b9e27f MB |
10459 | main() |
10460 | { | |
10461 | FILE *f=fopen("conftestval", "w"); | |
10462 | if (!f) exit(1); | |
10463 | fprintf(f, "%d\n", sizeof(short)); | |
10464 | exit(0); | |
10465 | } | |
10466 | EOF | |
89e6bf6d | 10467 | if { (eval echo configure:10468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10468 | then |
10469 | ac_cv_sizeof_short=`cat conftestval` | |
247f5006 | 10470 | else |
a0b9e27f MB |
10471 | echo "configure: failed program was:" >&5 |
10472 | cat conftest.$ac_ext >&5 | |
10473 | rm -fr conftest* | |
10474 | ac_cv_sizeof_short=0 | |
247f5006 | 10475 | fi |
a0b9e27f | 10476 | rm -fr conftest* |
247f5006 VZ |
10477 | fi |
10478 | ||
247f5006 | 10479 | fi |
a0b9e27f MB |
10480 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10481 | cat >> confdefs.h <<EOF | |
10482 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10483 | EOF | |
247f5006 VZ |
10484 | |
10485 | ||
a0b9e27f | 10486 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
89e6bf6d | 10487 | echo "configure:10488: checking size of void *" >&5 |
a0b9e27f MB |
10488 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
10489 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10490 | else | |
10491 | if test "$cross_compiling" = yes; then | |
10492 | ac_cv_sizeof_void_p=4 | |
247f5006 | 10493 | else |
a0b9e27f | 10494 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 10495 | #line 10496 "configure" |
247f5006 | 10496 | #include "confdefs.h" |
247f5006 | 10497 | #include <stdio.h> |
54ab82b3 | 10498 | #include <sys/types.h> |
a0b9e27f | 10499 | main() |
247f5006 | 10500 | { |
a0b9e27f MB |
10501 | FILE *f=fopen("conftestval", "w"); |
10502 | if (!f) exit(1); | |
10503 | fprintf(f, "%d\n", sizeof(void *)); | |
10504 | exit(0); | |
5c6fa7d2 | 10505 | } |
a0b9e27f | 10506 | EOF |
89e6bf6d | 10507 | if { (eval echo configure:10508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10508 | then |
10509 | ac_cv_sizeof_void_p=`cat conftestval` | |
10510 | else | |
10511 | echo "configure: failed program was:" >&5 | |
10512 | cat conftest.$ac_ext >&5 | |
10513 | rm -fr conftest* | |
10514 | ac_cv_sizeof_void_p=0 | |
10515 | fi | |
10516 | rm -fr conftest* | |
10517 | fi | |
8284b0c5 | 10518 | |
247f5006 | 10519 | fi |
a0b9e27f MB |
10520 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10521 | cat >> confdefs.h <<EOF | |
10522 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
10523 | EOF | |
247f5006 | 10524 | |
247f5006 | 10525 | |
a0b9e27f | 10526 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
89e6bf6d | 10527 | echo "configure:10528: checking size of int" >&5 |
a0b9e27f MB |
10528 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10529 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10530 | else |
a0b9e27f MB |
10531 | if test "$cross_compiling" = yes; then |
10532 | ac_cv_sizeof_int=4 | |
10533 | else | |
10534 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 10535 | #line 10536 "configure" |
247f5006 | 10536 | #include "confdefs.h" |
a0b9e27f | 10537 | #include <stdio.h> |
54ab82b3 | 10538 | #include <sys/types.h> |
a0b9e27f | 10539 | main() |
247f5006 | 10540 | { |
a0b9e27f MB |
10541 | FILE *f=fopen("conftestval", "w"); |
10542 | if (!f) exit(1); | |
10543 | fprintf(f, "%d\n", sizeof(int)); | |
10544 | exit(0); | |
247f5006 | 10545 | } |
a0b9e27f | 10546 | EOF |
89e6bf6d | 10547 | if { (eval echo configure:10548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10548 | then |
10549 | ac_cv_sizeof_int=`cat conftestval` | |
6f72b082 | 10550 | else |
a0b9e27f MB |
10551 | echo "configure: failed program was:" >&5 |
10552 | cat conftest.$ac_ext >&5 | |
10553 | rm -fr conftest* | |
10554 | ac_cv_sizeof_int=0 | |
21d1c967 | 10555 | fi |
a0b9e27f | 10556 | rm -fr conftest* |
698dcdb6 | 10557 | fi |
4f14bcd8 | 10558 | |
21d1c967 | 10559 | fi |
a0b9e27f MB |
10560 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
10561 | cat >> confdefs.h <<EOF | |
10562 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10563 | EOF | |
4f14bcd8 | 10564 | |
5c6fa7d2 | 10565 | |
a0b9e27f | 10566 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
89e6bf6d | 10567 | echo "configure:10568: checking size of long" >&5 |
a0b9e27f MB |
10568 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10569 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10570 | else |
247f5006 | 10571 | if test "$cross_compiling" = yes; then |
a0b9e27f | 10572 | ac_cv_sizeof_long=4 |
247f5006 | 10573 | else |
a0b9e27f | 10574 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 10575 | #line 10576 "configure" |
247f5006 | 10576 | #include "confdefs.h" |
a0b9e27f | 10577 | #include <stdio.h> |
54ab82b3 | 10578 | #include <sys/types.h> |
a0b9e27f | 10579 | main() |
247f5006 | 10580 | { |
a0b9e27f MB |
10581 | FILE *f=fopen("conftestval", "w"); |
10582 | if (!f) exit(1); | |
10583 | fprintf(f, "%d\n", sizeof(long)); | |
10584 | exit(0); | |
247f5006 | 10585 | } |
a0b9e27f | 10586 | EOF |
89e6bf6d | 10587 | if { (eval echo configure:10588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10588 | then |
10589 | ac_cv_sizeof_long=`cat conftestval` | |
247f5006 | 10590 | else |
a0b9e27f MB |
10591 | echo "configure: failed program was:" >&5 |
10592 | cat conftest.$ac_ext >&5 | |
10593 | rm -fr conftest* | |
10594 | ac_cv_sizeof_long=0 | |
247f5006 | 10595 | fi |
a0b9e27f | 10596 | rm -fr conftest* |
247f5006 | 10597 | fi |
247f5006 | 10598 | |
5c6fa7d2 | 10599 | fi |
a0b9e27f MB |
10600 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10601 | cat >> confdefs.h <<EOF | |
10602 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10603 | EOF | |
247f5006 | 10604 | |
a0b9e27f MB |
10605 | |
10606 | ||
10607 | case "${host}" in | |
10608 | arm-*-linux* ) | |
10609 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
89e6bf6d | 10610 | echo "configure:10611: checking size of long long" >&5 |
a0b9e27f MB |
10611 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10612 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10613 | else | |
10614 | if test "$cross_compiling" = yes; then | |
10615 | ac_cv_sizeof_long_long=8 | |
10616 | else | |
10617 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 10618 | #line 10619 "configure" |
247f5006 | 10619 | #include "confdefs.h" |
a0b9e27f | 10620 | #include <stdio.h> |
54ab82b3 | 10621 | #include <sys/types.h> |
a0b9e27f | 10622 | main() |
247f5006 | 10623 | { |
a0b9e27f MB |
10624 | FILE *f=fopen("conftestval", "w"); |
10625 | if (!f) exit(1); | |
10626 | fprintf(f, "%d\n", sizeof(long long)); | |
10627 | exit(0); | |
247f5006 | 10628 | } |
a0b9e27f | 10629 | EOF |
89e6bf6d | 10630 | if { (eval echo configure:10631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10631 | then |
10632 | ac_cv_sizeof_long_long=`cat conftestval` | |
7b4a847f | 10633 | else |
a0b9e27f MB |
10634 | echo "configure: failed program was:" >&5 |
10635 | cat conftest.$ac_ext >&5 | |
10636 | rm -fr conftest* | |
10637 | ac_cv_sizeof_long_long=0 | |
5c6fa7d2 | 10638 | fi |
a0b9e27f | 10639 | rm -fr conftest* |
5c6fa7d2 | 10640 | fi |
8284b0c5 | 10641 | |
a0b9e27f MB |
10642 | fi |
10643 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10644 | cat >> confdefs.h <<EOF | |
10645 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10646 | EOF | |
10647 | ||
10648 | ||
10649 | ;; | |
4f57cf11 | 10650 | *-hp-hpux* ) |
a0b9e27f | 10651 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
89e6bf6d | 10652 | echo "configure:10653: checking size of long long" >&5 |
a0b9e27f MB |
10653 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10654 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 MB |
10655 | else |
10656 | if test "$cross_compiling" = yes; then | |
a0b9e27f | 10657 | ac_cv_sizeof_long_long=0 |
8284b0c5 | 10658 | else |
a0b9e27f | 10659 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 10660 | #line 10661 "configure" |
8284b0c5 MB |
10661 | #include "confdefs.h" |
10662 | #include <stdio.h> | |
54ab82b3 | 10663 | #include <sys/types.h> |
a0b9e27f | 10664 | main() |
8284b0c5 | 10665 | { |
a0b9e27f MB |
10666 | FILE *f=fopen("conftestval", "w"); |
10667 | if (!f) exit(1); | |
10668 | fprintf(f, "%d\n", sizeof(long long)); | |
10669 | exit(0); | |
8284b0c5 | 10670 | } |
a0b9e27f | 10671 | EOF |
89e6bf6d | 10672 | if { (eval echo configure:10673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10673 | then |
10674 | ac_cv_sizeof_long_long=`cat conftestval` | |
5c6fa7d2 | 10675 | else |
a0b9e27f MB |
10676 | echo "configure: failed program was:" >&5 |
10677 | cat conftest.$ac_ext >&5 | |
10678 | rm -fr conftest* | |
5c6fa7d2 | 10679 | ac_cv_sizeof_long_long=0 |
52127426 | 10680 | fi |
a0b9e27f MB |
10681 | rm -fr conftest* |
10682 | fi | |
10683 | ||
4f57cf11 GD |
10684 | fi |
10685 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10686 | cat >> confdefs.h <<EOF | |
10687 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10688 | EOF | |
10689 | ||
10690 | ||
10691 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
10692 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
10693 | fi | |
10694 | ;; | |
10695 | * ) | |
10696 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
89e6bf6d | 10697 | echo "configure:10698: checking size of long long" >&5 |
4f57cf11 GD |
10698 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10699 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10700 | else | |
10701 | if test "$cross_compiling" = yes; then | |
10702 | ac_cv_sizeof_long_long=0 | |
10703 | else | |
10704 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 10705 | #line 10706 "configure" |
4f57cf11 GD |
10706 | #include "confdefs.h" |
10707 | #include <stdio.h> | |
54ab82b3 | 10708 | #include <sys/types.h> |
4f57cf11 GD |
10709 | main() |
10710 | { | |
10711 | FILE *f=fopen("conftestval", "w"); | |
10712 | if (!f) exit(1); | |
10713 | fprintf(f, "%d\n", sizeof(long long)); | |
10714 | exit(0); | |
10715 | } | |
10716 | EOF | |
89e6bf6d | 10717 | if { (eval echo configure:10718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f57cf11 GD |
10718 | then |
10719 | ac_cv_sizeof_long_long=`cat conftestval` | |
10720 | else | |
10721 | echo "configure: failed program was:" >&5 | |
10722 | cat conftest.$ac_ext >&5 | |
10723 | rm -fr conftest* | |
10724 | ac_cv_sizeof_long_long=0 | |
10725 | fi | |
10726 | rm -fr conftest* | |
10727 | fi | |
10728 | ||
7b4a847f | 10729 | fi |
a0b9e27f MB |
10730 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10731 | cat >> confdefs.h <<EOF | |
21d1c967 | 10732 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
a0b9e27f | 10733 | EOF |
9e691f46 | 10734 | |
8284b0c5 | 10735 | |
21d1c967 GD |
10736 | esac |
10737 | ||
a0b9e27f | 10738 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
89e6bf6d | 10739 | echo "configure:10740: checking size of wchar_t" >&5 |
a0b9e27f MB |
10740 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10741 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10742 | else |
a0b9e27f | 10743 | |
21d1c967 | 10744 | if test "$cross_compiling" = yes; then |
2b5f62a0 VZ |
10745 | |
10746 | case "${host}" in | |
10747 | *-pc-msdosdjgpp ) | |
10748 | wx_cv_sizeof_wchar_t=0 | |
10749 | ;; | |
10750 | * ) | |
10751 | wx_cv_sizeof_wchar_t=4 | |
10752 | ;; | |
10753 | esac | |
10754 | ||
a0b9e27f | 10755 | |
6f72b082 | 10756 | else |
a0b9e27f | 10757 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 10758 | #line 10759 "configure" |
6f72b082 | 10759 | #include "confdefs.h" |
21d1c967 | 10760 | |
2b5f62a0 VZ |
10761 | /* DJGPP only has fake wchar_t: */ |
10762 | #ifdef __DJGPP__ | |
10763 | # error "fake wchar_t" | |
10764 | #endif | |
21d1c967 GD |
10765 | #ifdef HAVE_WCHAR_H |
10766 | # ifdef __CYGWIN__ | |
10767 | # include <stddef.h> | |
10768 | # endif | |
10769 | # include <wchar.h> | |
10770 | #endif | |
10771 | #ifdef HAVE_STDLIB_H | |
10772 | # include <stdlib.h> | |
10773 | #endif | |
10774 | #include <stdio.h> | |
10775 | int main() | |
10776 | { | |
10777 | FILE *f=fopen("conftestval", "w"); | |
10778 | if (!f) exit(1); | |
10779 | fprintf(f, "%i", sizeof(wchar_t)); | |
10780 | exit(0); | |
10781 | } | |
a0b9e27f MB |
10782 | |
10783 | EOF | |
89e6bf6d | 10784 | if { (eval echo configure:10785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10785 | then |
21d1c967 | 10786 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10787 | else |
a0b9e27f MB |
10788 | echo "configure: failed program was:" >&5 |
10789 | cat conftest.$ac_ext >&5 | |
10790 | rm -fr conftest* | |
10791 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10792 | fi |
a0b9e27f | 10793 | rm -fr conftest* |
6f72b082 | 10794 | fi |
6f72b082 | 10795 | |
a0b9e27f | 10796 | |
3f345b47 VZ |
10797 | fi |
10798 | ||
a0b9e27f MB |
10799 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10800 | ||
10801 | cat >> confdefs.h <<EOF | |
21d1c967 | 10802 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
a0b9e27f | 10803 | EOF |
90dd450c | 10804 | |
8284b0c5 | 10805 | |
21d1c967 GD |
10806 | # Check whether --enable-largefile or --disable-largefile was given. |
10807 | if test "${enable_largefile+set}" = set; then | |
10808 | enableval="$enable_largefile" | |
a0b9e27f MB |
10809 | : |
10810 | fi | |
3f345b47 | 10811 | |
21d1c967 GD |
10812 | if test "$enable_largefile" != no; then |
10813 | wx_largefile=no | |
a0b9e27f MB |
10814 | |
10815 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
89e6bf6d | 10816 | echo "configure:10817: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
a0b9e27f MB |
10817 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
10818 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10819 | else | |
10820 | ||
10821 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 10822 | #line 10823 "configure" |
90dd450c | 10823 | #include "confdefs.h" |
21d1c967 GD |
10824 | #define _FILE_OFFSET_BITS 64 |
10825 | #include <sys/types.h> | |
a0b9e27f | 10826 | int main() { |
21d1c967 GD |
10827 | typedef struct { |
10828 | unsigned int field: sizeof(off_t) == 8; | |
10829 | } wxlf; | |
10830 | ||
a0b9e27f MB |
10831 | ; return 0; } |
10832 | EOF | |
89e6bf6d | 10833 | if { (eval echo configure:10834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10834 | rm -rf conftest* |
21d1c967 | 10835 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10836 | else |
a0b9e27f MB |
10837 | echo "configure: failed program was:" >&5 |
10838 | cat conftest.$ac_ext >&5 | |
10839 | rm -rf conftest* | |
10840 | ac_cv_sys_file_offset_bits=no | |
5c6fa7d2 | 10841 | fi |
a0b9e27f MB |
10842 | rm -f conftest* |
10843 | ||
10844 | ||
247f5006 | 10845 | fi |
a0b9e27f MB |
10846 | |
10847 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10848 | |
10849 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10850 | wx_largefile=yes | |
a0b9e27f | 10851 | cat >> confdefs.h <<EOF |
21d1c967 | 10852 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
a0b9e27f | 10853 | EOF |
21d1c967 GD |
10854 | |
10855 | fi | |
10856 | ||
10857 | if test "x$wx_largefile" != "xyes"; then | |
a0b9e27f MB |
10858 | |
10859 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
89e6bf6d | 10860 | echo "configure:10861: checking for _LARGE_FILES value needed for large files" >&5 |
a0b9e27f MB |
10861 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
10862 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10863 | else | |
10864 | ||
10865 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 10866 | #line 10867 "configure" |
f6bcfd97 | 10867 | #include "confdefs.h" |
21d1c967 GD |
10868 | #define _LARGE_FILES 1 |
10869 | #include <sys/types.h> | |
a0b9e27f | 10870 | int main() { |
21d1c967 GD |
10871 | typedef struct { |
10872 | unsigned int field: sizeof(off_t) == 8; | |
10873 | } wxlf; | |
10874 | ||
a0b9e27f MB |
10875 | ; return 0; } |
10876 | EOF | |
89e6bf6d | 10877 | if { (eval echo configure:10878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10878 | rm -rf conftest* |
21d1c967 | 10879 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10880 | else |
a0b9e27f MB |
10881 | echo "configure: failed program was:" >&5 |
10882 | cat conftest.$ac_ext >&5 | |
10883 | rm -rf conftest* | |
10884 | ac_cv_sys_large_files=no | |
5c6fa7d2 | 10885 | fi |
a0b9e27f MB |
10886 | rm -f conftest* |
10887 | ||
10888 | ||
247f5006 | 10889 | fi |
a0b9e27f MB |
10890 | |
10891 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 10892 | |
21d1c967 GD |
10893 | if test "$ac_cv_sys_large_files" != no; then |
10894 | wx_largefile=yes | |
a0b9e27f | 10895 | cat >> confdefs.h <<EOF |
21d1c967 | 10896 | #define _LARGE_FILES $ac_cv_sys_large_files |
a0b9e27f | 10897 | EOF |
90dd450c | 10898 | |
90dd450c VZ |
10899 | fi |
10900 | ||
90dd450c | 10901 | fi |
90dd450c | 10902 | |
a0b9e27f | 10903 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
89e6bf6d | 10904 | echo "configure:10905: checking if large file support is available" >&5 |
21d1c967 | 10905 | if test "x$wx_largefile" = "xyes"; then |
a0b9e27f | 10906 | cat >> confdefs.h <<\EOF |
21d1c967 | 10907 | #define HAVE_LARGEFILE_SUPPORT 1 |
a0b9e27f | 10908 | EOF |
90dd450c | 10909 | |
90dd450c | 10910 | fi |
a0b9e27f | 10911 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 10912 | fi |
90dd450c | 10913 | |
8284b0c5 | 10914 | |
f02444d0 | 10915 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
10916 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
10917 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 10918 | else |
e26c13cf | 10919 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 10920 | fi |
e26c13cf | 10921 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
10922 | fi |
10923 | ||
a0b9e27f | 10924 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
89e6bf6d | 10925 | echo "configure:10926: checking whether byte ordering is bigendian" >&5 |
a0b9e27f MB |
10926 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
10927 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 10928 | else |
21d1c967 GD |
10929 | ac_cv_c_bigendian=unknown |
10930 | # See if sys/param.h defines the BYTE_ORDER macro. | |
a0b9e27f | 10931 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 10932 | #line 10933 "configure" |
90dd450c | 10933 | #include "confdefs.h" |
21d1c967 GD |
10934 | #include <sys/types.h> |
10935 | #include <sys/param.h> | |
a0b9e27f | 10936 | int main() { |
21d1c967 GD |
10937 | |
10938 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10939 | bogus endian macros | |
10940 | #endif | |
a0b9e27f MB |
10941 | ; return 0; } |
10942 | EOF | |
89e6bf6d | 10943 | if { (eval echo configure:10944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10944 | rm -rf conftest* |
21d1c967 | 10945 | # It does; now see whether it defined to BIG_ENDIAN or not. |
a0b9e27f | 10946 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 10947 | #line 10948 "configure" |
90dd450c | 10948 | #include "confdefs.h" |
21d1c967 GD |
10949 | #include <sys/types.h> |
10950 | #include <sys/param.h> | |
a0b9e27f | 10951 | int main() { |
21d1c967 GD |
10952 | |
10953 | #if BYTE_ORDER != BIG_ENDIAN | |
10954 | not big endian | |
10955 | #endif | |
a0b9e27f MB |
10956 | ; return 0; } |
10957 | EOF | |
89e6bf6d | 10958 | if { (eval echo configure:10959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10959 | rm -rf conftest* |
21d1c967 | 10960 | ac_cv_c_bigendian=yes |
3f345b47 | 10961 | else |
a0b9e27f MB |
10962 | echo "configure: failed program was:" >&5 |
10963 | cat conftest.$ac_ext >&5 | |
10964 | rm -rf conftest* | |
10965 | ac_cv_c_bigendian=no | |
3f345b47 | 10966 | fi |
a0b9e27f | 10967 | rm -f conftest* |
3f345b47 | 10968 | else |
a0b9e27f MB |
10969 | echo "configure: failed program was:" >&5 |
10970 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10971 | fi |
a0b9e27f | 10972 | rm -f conftest* |
21d1c967 GD |
10973 | if test $ac_cv_c_bigendian = unknown; then |
10974 | if test "$cross_compiling" = yes; then | |
10975 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10976 | else |
a0b9e27f | 10977 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 10978 | #line 10979 "configure" |
90dd450c | 10979 | #include "confdefs.h" |
21d1c967 GD |
10980 | main () { |
10981 | /* Are we little or big endian? From Harbison&Steele. */ | |
10982 | union | |
10983 | { | |
10984 | long l; | |
10985 | char c[sizeof (long)]; | |
10986 | } u; | |
10987 | u.l = 1; | |
10988 | exit (u.c[sizeof (long) - 1] == 1); | |
10989 | } | |
a0b9e27f | 10990 | EOF |
89e6bf6d | 10991 | if { (eval echo configure:10992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10992 | then |
21d1c967 | 10993 | ac_cv_c_bigendian=no |
3f345b47 | 10994 | else |
a0b9e27f MB |
10995 | echo "configure: failed program was:" >&5 |
10996 | cat conftest.$ac_ext >&5 | |
10997 | rm -fr conftest* | |
10998 | ac_cv_c_bigendian=yes | |
247f5006 | 10999 | fi |
a0b9e27f | 11000 | rm -fr conftest* |
247f5006 | 11001 | fi |
a0b9e27f | 11002 | |
3f345b47 | 11003 | fi |
8168de4c | 11004 | fi |
a0b9e27f MB |
11005 | |
11006 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
247f5006 | 11007 | if test $ac_cv_c_bigendian = unknown; then |
a0b9e27f | 11008 | 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 |
11009 | fi |
11010 | if test $ac_cv_c_bigendian = yes; then | |
a0b9e27f | 11011 | cat >> confdefs.h <<\EOF |
247f5006 | 11012 | #define WORDS_BIGENDIAN 1 |
a0b9e27f | 11013 | EOF |
247f5006 VZ |
11014 | |
11015 | fi | |
11016 | ||
11017 | ||
a0b9e27f | 11018 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
89e6bf6d | 11019 | echo "configure:11020: checking how to run the C++ preprocessor" >&5 |
247f5006 | 11020 | if test -z "$CXXCPP"; then |
a0b9e27f MB |
11021 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
11022 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11023 | else |
a0b9e27f MB |
11024 | ac_ext=C |
11025 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11026 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11027 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11028 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11029 | cross_compiling=$ac_cv_prog_cxx_cross | |
11030 | CXXCPP="${CXX-g++} -E" | |
11031 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 11032 | #line 11033 "configure" |
5c6fa7d2 | 11033 | #include "confdefs.h" |
a0b9e27f MB |
11034 | #include <stdlib.h> |
11035 | EOF | |
11036 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 11037 | { (eval echo configure:11038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11038 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11039 | if test -z "$ac_err"; then | |
21d1c967 | 11040 | : |
698dcdb6 | 11041 | else |
a0b9e27f MB |
11042 | echo "$ac_err" >&5 |
11043 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11044 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11045 | rm -rf conftest* |
11046 | CXXCPP=/lib/cpp | |
247f5006 | 11047 | fi |
a0b9e27f MB |
11048 | rm -f conftest* |
11049 | ac_cv_prog_CXXCPP="$CXXCPP" | |
11050 | ac_ext=C | |
11051 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11052 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11053 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11054 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11055 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 11056 | fi |
90dd450c | 11057 | fi |
a0b9e27f MB |
11058 | CXXCPP="$ac_cv_prog_CXXCPP" |
11059 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 11060 | |
1725144d | 11061 | |
21d1c967 | 11062 | if test "$cross_compiling" = "yes"; then |
a0b9e27f | 11063 | cat >> confdefs.h <<\EOF |
21d1c967 | 11064 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11065 | EOF |
ab9b9eab | 11066 | |
21d1c967 | 11067 | else |
a0b9e27f MB |
11068 | |
11069 | ac_ext=C | |
11070 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11071 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11072 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11073 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11074 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 11075 | |
247f5006 | 11076 | |
a0b9e27f | 11077 | for ac_hdr in iostream |
21d1c967 | 11078 | do |
a0b9e27f MB |
11079 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11080 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
89e6bf6d | 11081 | echo "configure:11082: checking for $ac_hdr" >&5 |
a0b9e27f MB |
11082 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11083 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11084 | else | |
11085 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 11086 | #line 11087 "configure" |
ab9b9eab | 11087 | #include "confdefs.h" |
a0b9e27f MB |
11088 | #include <$ac_hdr> |
11089 | EOF | |
11090 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 11091 | { (eval echo configure:11092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11092 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11093 | if test -z "$ac_err"; then | |
11094 | rm -rf conftest* | |
11095 | eval "ac_cv_header_$ac_safe=yes" | |
11096 | else | |
11097 | echo "$ac_err" >&5 | |
11098 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11099 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11100 | rm -rf conftest* |
11101 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 11102 | fi |
a0b9e27f | 11103 | rm -f conftest* |
90dd450c | 11104 | fi |
a0b9e27f MB |
11105 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11106 | echo "$ac_t""yes" 1>&6 | |
11107 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11108 | cat >> confdefs.h <<EOF | |
11109 | #define $ac_tr_hdr 1 | |
11110 | EOF | |
11111 | ||
11112 | else | |
11113 | echo "$ac_t""no" 1>&6 | |
90dd450c | 11114 | fi |
21d1c967 | 11115 | done |
10f2d63a | 11116 | |
8284b0c5 | 11117 | |
21d1c967 GD |
11118 | if test "$ac_cv_header_iostream" = "yes" ; then |
11119 | : | |
11120 | else | |
a0b9e27f | 11121 | cat >> confdefs.h <<\EOF |
21d1c967 | 11122 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11123 | EOF |
788deba1 | 11124 | |
90dd450c | 11125 | fi |
ab9b9eab | 11126 | |
21d1c967 | 11127 | ac_ext=c |
a0b9e27f | 11128 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11129 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11130 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11131 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11132 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 11133 | |
21d1c967 | 11134 | fi |
ab9b9eab | 11135 | |
52127426 | 11136 | |
8284b0c5 | 11137 | |
a0b9e27f | 11138 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
89e6bf6d | 11139 | echo "configure:11140: checking if C++ compiler supports bool" >&5 |
a0b9e27f MB |
11140 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
11141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11142 | else |
a0b9e27f MB |
11143 | |
11144 | ||
11145 | ac_ext=C | |
11146 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11147 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11148 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11149 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11150 | cross_compiling=$ac_cv_prog_cxx_cross | |
21d1c967 | 11151 | |
8284b0c5 | 11152 | |
a0b9e27f | 11153 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 11154 | #line 11155 "configure" |
ab9b9eab | 11155 | #include "confdefs.h" |
21d1c967 | 11156 | |
a0b9e27f MB |
11157 | |
11158 | int main() { | |
21d1c967 GD |
11159 | |
11160 | bool b = true; | |
11161 | ||
11162 | return 0; | |
a0b9e27f MB |
11163 | |
11164 | ; return 0; } | |
11165 | EOF | |
89e6bf6d | 11166 | if { (eval echo configure:11167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11167 | rm -rf conftest* |
11168 | ||
21d1c967 | 11169 | wx_cv_cpp_bool=yes |
a0b9e27f | 11170 | |
698dcdb6 | 11171 | else |
a0b9e27f MB |
11172 | echo "configure: failed program was:" >&5 |
11173 | cat conftest.$ac_ext >&5 | |
11174 | rm -rf conftest* | |
11175 | ||
21d1c967 | 11176 | wx_cv_cpp_bool=no |
a0b9e27f MB |
11177 | |
11178 | ||
698dcdb6 | 11179 | fi |
a0b9e27f | 11180 | rm -f conftest* |
21d1c967 GD |
11181 | |
11182 | ac_ext=c | |
a0b9e27f | 11183 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11184 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11185 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11186 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11187 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11188 | |
a0b9e27f | 11189 | |
247f5006 | 11190 | fi |
a0b9e27f MB |
11191 | |
11192 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
11193 | |
11194 | if test "$wx_cv_cpp_bool" = "yes"; then | |
a0b9e27f | 11195 | cat >> confdefs.h <<\EOF |
21d1c967 | 11196 | #define HAVE_BOOL 1 |
a0b9e27f | 11197 | EOF |
ab9b9eab | 11198 | |
21d1c967 GD |
11199 | fi |
11200 | ||
52127426 | 11201 | |
8284b0c5 | 11202 | |
a0b9e27f | 11203 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
89e6bf6d | 11204 | echo "configure:11205: checking if C++ compiler supports the explicit keyword" >&5 |
a0b9e27f MB |
11205 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
11206 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11207 | else |
a0b9e27f MB |
11208 | |
11209 | ||
11210 | ac_ext=C | |
11211 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11212 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11213 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11214 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11215 | cross_compiling=$ac_cv_prog_cxx_cross | |
986ecc86 | 11216 | |
8284b0c5 | 11217 | |
a0b9e27f | 11218 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 11219 | #line 11220 "configure" |
986ecc86 VZ |
11220 | #include "confdefs.h" |
11221 | ||
11222 | class Foo { public: explicit Foo(int) {} }; | |
a0b9e27f MB |
11223 | |
11224 | int main() { | |
986ecc86 VZ |
11225 | |
11226 | return 0; | |
a0b9e27f MB |
11227 | |
11228 | ; return 0; } | |
11229 | EOF | |
89e6bf6d | 11230 | if { (eval echo configure:11231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11231 | rm -rf conftest* |
11232 | ||
11233 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 11234 | #line 11235 "configure" |
986ecc86 VZ |
11235 | #include "confdefs.h" |
11236 | ||
11237 | class Foo { public: explicit Foo(int) {} }; | |
11238 | static void TakeFoo(const Foo& foo) { } | |
a0b9e27f MB |
11239 | |
11240 | int main() { | |
986ecc86 VZ |
11241 | |
11242 | TakeFoo(17); | |
11243 | return 0; | |
a0b9e27f MB |
11244 | |
11245 | ; return 0; } | |
11246 | EOF | |
89e6bf6d | 11247 | if { (eval echo configure:11248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11248 | rm -rf conftest* |
986ecc86 VZ |
11249 | wx_cv_explicit=no |
11250 | else | |
a0b9e27f MB |
11251 | echo "configure: failed program was:" >&5 |
11252 | cat conftest.$ac_ext >&5 | |
11253 | rm -rf conftest* | |
11254 | wx_cv_explicit=yes | |
11255 | ||
986ecc86 | 11256 | fi |
a0b9e27f MB |
11257 | rm -f conftest* |
11258 | ||
986ecc86 | 11259 | else |
a0b9e27f MB |
11260 | echo "configure: failed program was:" >&5 |
11261 | cat conftest.$ac_ext >&5 | |
11262 | rm -rf conftest* | |
11263 | wx_cv_explicit=no | |
11264 | ||
986ecc86 | 11265 | fi |
a0b9e27f | 11266 | rm -f conftest* |
986ecc86 VZ |
11267 | |
11268 | ac_ext=c | |
a0b9e27f | 11269 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 11270 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11271 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11272 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11273 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11274 | |
a0b9e27f | 11275 | |
247f5006 | 11276 | fi |
a0b9e27f MB |
11277 | |
11278 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
11279 | |
11280 | if test "$wx_cv_explicit" = "yes"; then | |
a0b9e27f | 11281 | cat >> confdefs.h <<\EOF |
986ecc86 | 11282 | #define HAVE_EXPLICIT 1 |
a0b9e27f | 11283 | EOF |
986ecc86 VZ |
11284 | |
11285 | fi | |
11286 | ||
8284b0c5 MB |
11287 | |
11288 | ||
21d1c967 GD |
11289 | SEARCH_INCLUDE="\ |
11290 | /usr/local/include \ | |
11291 | \ | |
11292 | /usr/Motif-1.2/include \ | |
11293 | /usr/Motif-2.1/include \ | |
11294 | \ | |
11295 | /usr/include/Motif1.2 \ | |
11296 | /opt/xpm/include/X11 \ | |
11297 | /opt/GBxpm/include/ \ | |
11298 | /opt/GBxpm/X11/include/ \ | |
11299 | \ | |
11300 | /usr/Motif1.2/include \ | |
11301 | /usr/dt/include \ | |
11302 | /usr/openwin/include \ | |
11303 | \ | |
11304 | /usr/include/Xm \ | |
11305 | \ | |
11306 | /usr/X11R6/include \ | |
11307 | /usr/X11R6.4/include \ | |
11308 | /usr/X11R5/include \ | |
11309 | /usr/X11R4/include \ | |
11310 | \ | |
11311 | /usr/include/X11R6 \ | |
11312 | /usr/include/X11R5 \ | |
11313 | /usr/include/X11R4 \ | |
11314 | \ | |
11315 | /usr/local/X11R6/include \ | |
11316 | /usr/local/X11R5/include \ | |
11317 | /usr/local/X11R4/include \ | |
11318 | \ | |
11319 | /usr/local/include/X11R6 \ | |
11320 | /usr/local/include/X11R5 \ | |
11321 | /usr/local/include/X11R4 \ | |
11322 | \ | |
11323 | /usr/X11/include \ | |
11324 | /usr/include/X11 \ | |
11325 | /usr/local/X11/include \ | |
11326 | /usr/local/include/X11 \ | |
11327 | \ | |
11328 | /usr/X386/include \ | |
11329 | /usr/x386/include \ | |
11330 | /usr/XFree86/include/X11 \ | |
11331 | \ | |
11332 | X:/XFree86/include \ | |
11333 | X:/XFree86/include/X11 \ | |
11334 | \ | |
11335 | /usr/include/gtk \ | |
11336 | /usr/local/include/gtk \ | |
11337 | /usr/include/glib \ | |
11338 | /usr/local/include/glib \ | |
11339 | \ | |
11340 | /usr/include/qt \ | |
11341 | /usr/local/include/qt \ | |
11342 | \ | |
11343 | /usr/include/windows \ | |
11344 | /usr/include/wine \ | |
11345 | /usr/local/include/wine \ | |
11346 | \ | |
11347 | /usr/unsupported/include \ | |
11348 | /usr/athena/include \ | |
11349 | /usr/local/x11r5/include \ | |
11350 | /usr/lpp/Xamples/include \ | |
11351 | \ | |
2b5f62a0 | 11352 | /usr/openwin/share/include" |
21d1c967 GD |
11353 | |
11354 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
11355 | ||
8284b0c5 | 11356 | |
a0b9e27f | 11357 | cat > confcache <<\EOF |
21d1c967 GD |
11358 | # This file is a shell script that caches the results of configure |
11359 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
11360 | # scripts and configure runs. It is not useful on other systems. |
11361 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 11362 | # |
a0b9e27f MB |
11363 | # By default, configure uses ./config.cache as the cache file, |
11364 | # creating it if it does not exist already. You can give configure | |
11365 | # the --cache-file=FILE option to use a different cache file; that is | |
11366 | # what configure does when it calls configure scripts in | |
11367 | # subdirectories, so they share the cache. | |
11368 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11369 | # config.status only pays attention to the cache file if you give it the | |
11370 | # --recheck option to rerun configure. | |
21d1c967 | 11371 | # |
a0b9e27f | 11372 | EOF |
21d1c967 GD |
11373 | # The following way of writing the cache mishandles newlines in values, |
11374 | # but we know of no workaround that is simple, portable, and efficient. | |
11375 | # So, don't put newlines in cache variables' values. | |
11376 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11377 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
11378 | (set) 2>&1 | |
11379 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11380 | *ac_space=\ *) | |
11381 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11382 | # turns \\\\ into \\, and sed turns \\ into \). | |
11383 | sed -n \ | |
11384 | -e "s/'/'\\\\''/g" \ | |
11385 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11386 | ;; | |
11387 | *) | |
11388 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11389 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11390 | ;; | |
11391 | esac >> confcache | |
11392 | if cmp -s $cache_file confcache; then | |
11393 | : | |
11394 | else | |
21d1c967 | 11395 | if test -w $cache_file; then |
a0b9e27f MB |
11396 | echo "updating cache $cache_file" |
11397 | cat confcache > $cache_file | |
21d1c967 GD |
11398 | else |
11399 | echo "not updating unwritable cache $cache_file" | |
11400 | fi | |
ab9b9eab | 11401 | fi |
21d1c967 | 11402 | rm -f confcache |
ab9b9eab | 11403 | |
247f5006 | 11404 | |
a0b9e27f MB |
11405 | if test "$USE_LINUX" = 1; then |
11406 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
89e6bf6d | 11407 | echo "configure:11408: checking for glibc 2.1 or later" >&5 |
a0b9e27f MB |
11408 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
11409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11410 | else | |
11411 | ||
11412 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 11413 | #line 11414 "configure" |
ab9b9eab | 11414 | #include "confdefs.h" |
21d1c967 | 11415 | #include <features.h> |
a0b9e27f | 11416 | int main() { |
ab9b9eab | 11417 | |
21d1c967 GD |
11418 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11419 | #error not glibc2.1 | |
11420 | #endif | |
a0b9e27f MB |
11421 | |
11422 | ; return 0; } | |
11423 | EOF | |
89e6bf6d | 11424 | if { (eval echo configure:11425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11425 | rm -rf conftest* |
11426 | ||
21d1c967 | 11427 | wx_cv_lib_glibc21=yes |
a0b9e27f | 11428 | |
698dcdb6 | 11429 | else |
a0b9e27f MB |
11430 | echo "configure: failed program was:" >&5 |
11431 | cat conftest.$ac_ext >&5 | |
11432 | rm -rf conftest* | |
11433 | ||
21d1c967 | 11434 | wx_cv_lib_glibc21=no |
a0b9e27f MB |
11435 | |
11436 | ||
5c6fa7d2 | 11437 | fi |
a0b9e27f MB |
11438 | rm -f conftest* |
11439 | ||
247f5006 | 11440 | fi |
a0b9e27f MB |
11441 | |
11442 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
21d1c967 | 11443 | if test "$wx_cv_lib_glibc21" = "yes"; then |
a0b9e27f | 11444 | cat >> confdefs.h <<\EOF |
21d1c967 | 11445 | #define wxHAVE_GLIBC2 1 |
a0b9e27f | 11446 | EOF |
1e487827 | 11447 | |
90dd450c | 11448 | fi |
ab9b9eab VZ |
11449 | fi |
11450 | ||
5c0a20c3 VZ |
11451 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
11452 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 11453 | cat >> confdefs.h <<\EOF |
5c0a20c3 | 11454 | #define _GNU_SOURCE 1 |
a0b9e27f | 11455 | EOF |
5c0a20c3 VZ |
11456 | |
11457 | fi | |
11458 | fi | |
11459 | ||
8284b0c5 MB |
11460 | |
11461 | ||
21d1c967 GD |
11462 | REGEX_INCLUDE= |
11463 | if test "$wxUSE_REGEX" != "no"; then | |
a0b9e27f | 11464 | cat >> confdefs.h <<\EOF |
21d1c967 | 11465 | #define wxUSE_REGEX 1 |
a0b9e27f | 11466 | EOF |
698dcdb6 | 11467 | |
8284b0c5 | 11468 | |
21d1c967 | 11469 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
a0b9e27f MB |
11470 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
11471 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
89e6bf6d | 11472 | echo "configure:11473: checking for regex.h" >&5 |
a0b9e27f MB |
11473 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11474 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11475 | else | |
11476 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 11477 | #line 11478 "configure" |
247f5006 VZ |
11478 | #include "confdefs.h" |
11479 | #include <regex.h> | |
a0b9e27f MB |
11480 | EOF |
11481 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 11482 | { (eval echo configure:11483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11483 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11484 | if test -z "$ac_err"; then | |
11485 | rm -rf conftest* | |
11486 | eval "ac_cv_header_$ac_safe=yes" | |
11487 | else | |
11488 | echo "$ac_err" >&5 | |
11489 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11490 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11491 | rm -rf conftest* |
11492 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11493 | fi |
a0b9e27f | 11494 | rm -f conftest* |
698dcdb6 | 11495 | fi |
a0b9e27f MB |
11496 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11497 | echo "$ac_t""yes" 1>&6 | |
11498 | for ac_func in regcomp | |
21d1c967 | 11499 | do |
a0b9e27f | 11500 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 11501 | echo "configure:11502: checking for $ac_func" >&5 |
a0b9e27f MB |
11502 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11503 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11504 | else |
a0b9e27f | 11505 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 11506 | #line 11507 "configure" |
a0b9e27f MB |
11507 | #include "confdefs.h" |
11508 | /* System header to define __stub macros and hopefully few prototypes, | |
11509 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
11510 | #include <assert.h> |
11511 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11512 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11513 | builtin and then its argument prototype would still apply. */ |
11514 | char $ac_func(); | |
11515 | ||
11516 | int main() { | |
11517 | ||
21d1c967 GD |
11518 | /* The GNU C library defines this for functions which it implements |
11519 | to always fail with ENOSYS. Some functions are actually named | |
11520 | something starting with __ and the normal name is an alias. */ | |
11521 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11522 | choke me | |
11523 | #else | |
a0b9e27f | 11524 | $ac_func(); |
21d1c967 | 11525 | #endif |
90dd450c | 11526 | |
a0b9e27f MB |
11527 | ; return 0; } |
11528 | EOF | |
89e6bf6d | 11529 | if { (eval echo configure:11530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11530 | rm -rf conftest* |
11531 | eval "ac_cv_func_$ac_func=yes" | |
11532 | else | |
11533 | echo "configure: failed program was:" >&5 | |
11534 | cat conftest.$ac_ext >&5 | |
11535 | rm -rf conftest* | |
11536 | eval "ac_cv_func_$ac_func=no" | |
11537 | fi | |
11538 | rm -f conftest* | |
11539 | fi | |
5c6fa7d2 | 11540 | |
a0b9e27f MB |
11541 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11542 | echo "$ac_t""yes" 1>&6 | |
11543 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11544 | cat >> confdefs.h <<EOF | |
11545 | #define $ac_tr_func 1 | |
11546 | EOF | |
11547 | ||
11548 | else | |
11549 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11550 | fi |
21d1c967 GD |
11551 | done |
11552 | ||
a0b9e27f MB |
11553 | else |
11554 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11555 | fi |
11556 | ||
8284b0c5 | 11557 | |
21d1c967 GD |
11558 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11559 | if test "$wxUSE_REGEX" = "sys" ; then | |
a0b9e27f | 11560 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11561 | else |
a0b9e27f | 11562 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11563 | wxUSE_REGEX=builtin |
11564 | fi | |
11565 | else | |
11566 | wxUSE_REGEX=sys | |
11567 | fi | |
ab9b9eab | 11568 | fi |
90dd450c | 11569 | |
21d1c967 GD |
11570 | if test "$wxUSE_REGEX" = "builtin" ; then |
11571 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11572 | fi |
21d1c967 | 11573 | fi |
90dd450c | 11574 | |
8284b0c5 | 11575 | |
21d1c967 GD |
11576 | ZLIB_INCLUDE= |
11577 | ZLIB_LINK= | |
11578 | if test "$wxUSE_ZLIB" != "no" ; then | |
a0b9e27f | 11579 | cat >> confdefs.h <<\EOF |
21d1c967 | 11580 | #define wxUSE_ZLIB 1 |
a0b9e27f | 11581 | EOF |
21d1c967 | 11582 | |
8284b0c5 | 11583 | |
21d1c967 | 11584 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
11585 | if test "$USE_DARWIN" = 1; then |
11586 | system_zlib_h_ok="yes" | |
11587 | else | |
11588 | echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6 | |
89e6bf6d | 11589 | echo "configure:11590: checking for zlib.h >= 1.1.4" >&5 |
d643b80e VZ |
11590 | if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then |
11591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11592 | else | |
11593 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11594 | unset ac_cv_header_zlib_h |
d775acfa | 11595 | |
d643b80e VZ |
11596 | else |
11597 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 11598 | #line 11599 "configure" |
d643b80e VZ |
11599 | #include "confdefs.h" |
11600 | ||
d775acfa VZ |
11601 | #include <zlib.h> |
11602 | #include <stdio.h> | |
d643b80e | 11603 | |
d775acfa VZ |
11604 | |
11605 | int main() | |
11606 | { | |
11607 | FILE *f=fopen("conftestval", "w"); | |
11608 | if (!f) exit(1); | |
11609 | fprintf(f, "%s", | |
11610 | ZLIB_VERSION[0] == '1' && | |
11611 | (ZLIB_VERSION[2] > '1' || | |
11612 | (ZLIB_VERSION[2] == '1' && | |
11613 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
11614 | exit(0); | |
11615 | } | |
11616 | ||
d643b80e | 11617 | |
d643b80e | 11618 | EOF |
89e6bf6d | 11619 | if { (eval echo configure:11620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
d643b80e VZ |
11620 | then |
11621 | ac_cv_header_zlib_h=`cat conftestval` | |
11622 | else | |
11623 | echo "configure: failed program was:" >&5 | |
11624 | cat conftest.$ac_ext >&5 | |
11625 | rm -fr conftest* | |
11626 | ac_cv_header_zlib_h=no | |
11627 | fi | |
11628 | rm -fr conftest* | |
11629 | fi | |
11630 | ||
d775acfa | 11631 | |
d643b80e VZ |
11632 | fi |
11633 | ||
11634 | echo "$ac_t""$ac_cv_header_zlib_h" 1>&6 | |
89e6bf6d VZ |
11635 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
11636 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
11637 | echo "configure:11638: checking for zlib.h" >&5 | |
11638 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11639 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11640 | else | |
11641 | cat > conftest.$ac_ext <<EOF | |
11642 | #line 11643 "configure" | |
11643 | #include "confdefs.h" | |
11644 | #include <zlib.h> | |
11645 | EOF | |
11646 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11647 | { (eval echo configure:11648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11648 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11649 | if test -z "$ac_err"; then | |
11650 | rm -rf conftest* | |
11651 | eval "ac_cv_header_$ac_safe=yes" | |
11652 | else | |
11653 | echo "$ac_err" >&5 | |
11654 | echo "configure: failed program was:" >&5 | |
11655 | cat conftest.$ac_ext >&5 | |
11656 | rm -rf conftest* | |
11657 | eval "ac_cv_header_$ac_safe=no" | |
11658 | fi | |
11659 | rm -f conftest* | |
11660 | fi | |
11661 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11662 | echo "$ac_t""yes" 1>&6 | |
11663 | : | |
11664 | else | |
11665 | echo "$ac_t""no" 1>&6 | |
11666 | fi | |
11667 | ||
d643b80e | 11668 | |
d775acfa VZ |
11669 | system_zlib_h_ok=$ac_cv_header_zlib_h |
11670 | fi | |
11671 | ||
11672 | if test "$system_zlib_h_ok" = "yes"; then | |
d643b80e | 11673 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
89e6bf6d | 11674 | echo "configure:11675: checking for deflate in -lz" >&5 |
a0b9e27f MB |
11675 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11676 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11677 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11678 | else |
a0b9e27f | 11679 | ac_save_LIBS="$LIBS" |
21d1c967 | 11680 | LIBS="-lz $LIBS" |
a0b9e27f | 11681 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 11682 | #line 11683 "configure" |
ab9b9eab | 11683 | #include "confdefs.h" |
21d1c967 GD |
11684 | /* Override any gcc2 internal prototype to avoid an error. */ |
11685 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11686 | builtin and then its argument prototype would still apply. */ |
11687 | char deflate(); | |
11688 | ||
11689 | int main() { | |
11690 | deflate() | |
11691 | ; return 0; } | |
11692 | EOF | |
89e6bf6d | 11693 | if { (eval echo configure:11694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11694 | rm -rf conftest* |
11695 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11696 | else | |
11697 | echo "configure: failed program was:" >&5 | |
11698 | cat conftest.$ac_ext >&5 | |
11699 | rm -rf conftest* | |
11700 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 11701 | fi |
a0b9e27f MB |
11702 | rm -f conftest* |
11703 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 11704 | |
698dcdb6 | 11705 | fi |
a0b9e27f MB |
11706 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11707 | echo "$ac_t""yes" 1>&6 | |
11708 | ZLIB_LINK=" -lz" | |
11709 | else | |
11710 | echo "$ac_t""no" 1>&6 | |
11711 | fi | |
698dcdb6 | 11712 | |
d643b80e | 11713 | fi |
247f5006 | 11714 | |
21d1c967 GD |
11715 | if test "x$ZLIB_LINK" = "x" ; then |
11716 | if test "$wxUSE_ZLIB" = "sys" ; then | |
d643b80e | 11717 | { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11718 | else |
d643b80e | 11719 | echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11720 | wxUSE_ZLIB=builtin |
11721 | fi | |
11722 | else | |
11723 | wxUSE_ZLIB=sys | |
11724 | fi | |
11725 | fi | |
11726 | ||
11727 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11728 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11729 | fi | |
ab9b9eab VZ |
11730 | fi |
11731 | ||
8284b0c5 | 11732 | |
21d1c967 GD |
11733 | PNG_INCLUDE= |
11734 | PNG_LINK= | |
11735 | if test "$wxUSE_LIBPNG" != "no" ; then | |
a0b9e27f | 11736 | cat >> confdefs.h <<\EOF |
21d1c967 | 11737 | #define wxUSE_LIBPNG 1 |
a0b9e27f | 11738 | EOF |
90dd450c | 11739 | |
8284b0c5 | 11740 | |
21d1c967 | 11741 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
a0b9e27f | 11742 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11743 | wxUSE_LIBPNG=sys |
11744 | fi | |
90dd450c | 11745 | |
21d1c967 | 11746 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a0b9e27f | 11747 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11748 | wxUSE_LIBPNG=builtin |
11749 | fi | |
11750 | ||
11751 | if test "$wxUSE_MGL" != 1 ; then | |
11752 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
5d3f766d | 11753 | echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6 |
89e6bf6d | 11754 | echo "configure:11755: checking for png.h > 0.90" >&5 |
5d3f766d VZ |
11755 | if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then |
11756 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11757 | else | |
11758 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11759 | unset ac_cv_header_png_h |
5d3f766d VZ |
11760 | |
11761 | else | |
11762 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 11763 | #line 11764 "configure" |
5d3f766d VZ |
11764 | #include "confdefs.h" |
11765 | ||
11766 | #include <png.h> | |
11767 | #include <stdio.h> | |
11768 | ||
11769 | int main() | |
11770 | { | |
11771 | FILE *f=fopen("conftestval", "w"); | |
11772 | if (!f) exit(1); | |
11773 | fprintf(f, "%s", | |
11774 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
11775 | exit(0); | |
11776 | } | |
11777 | ||
11778 | EOF | |
89e6bf6d | 11779 | if { (eval echo configure:11780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5d3f766d VZ |
11780 | then |
11781 | ac_cv_header_png_h=`cat conftestval` | |
11782 | else | |
11783 | echo "configure: failed program was:" >&5 | |
11784 | cat conftest.$ac_ext >&5 | |
11785 | rm -fr conftest* | |
11786 | ac_cv_header_png_h=no | |
11787 | fi | |
11788 | rm -fr conftest* | |
11789 | fi | |
11790 | ||
11791 | ||
11792 | fi | |
11793 | ||
11794 | echo "$ac_t""$ac_cv_header_png_h" 1>&6 | |
89e6bf6d VZ |
11795 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
11796 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
11797 | echo "configure:11798: checking for png.h" >&5 | |
11798 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11799 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11800 | else | |
11801 | cat > conftest.$ac_ext <<EOF | |
11802 | #line 11803 "configure" | |
11803 | #include "confdefs.h" | |
11804 | #include <png.h> | |
11805 | EOF | |
11806 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11807 | { (eval echo configure:11808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11808 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11809 | if test -z "$ac_err"; then | |
11810 | rm -rf conftest* | |
11811 | eval "ac_cv_header_$ac_safe=yes" | |
11812 | else | |
11813 | echo "$ac_err" >&5 | |
11814 | echo "configure: failed program was:" >&5 | |
11815 | cat conftest.$ac_ext >&5 | |
11816 | rm -rf conftest* | |
11817 | eval "ac_cv_header_$ac_safe=no" | |
11818 | fi | |
11819 | rm -f conftest* | |
11820 | fi | |
11821 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11822 | echo "$ac_t""yes" 1>&6 | |
11823 | : | |
11824 | else | |
11825 | echo "$ac_t""no" 1>&6 | |
11826 | fi | |
11827 | ||
5d3f766d VZ |
11828 | |
11829 | if test "$ac_cv_header_png_h" = "yes"; then | |
11830 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
89e6bf6d | 11831 | echo "configure:11832: checking for png_check_sig in -lpng" >&5 |
a0b9e27f MB |
11832 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11833 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11834 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11835 | else |
a0b9e27f | 11836 | ac_save_LIBS="$LIBS" |
21d1c967 | 11837 | LIBS="-lpng -lz -lm $LIBS" |
a0b9e27f | 11838 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 11839 | #line 11840 "configure" |
90dd450c | 11840 | #include "confdefs.h" |
21d1c967 GD |
11841 | /* Override any gcc2 internal prototype to avoid an error. */ |
11842 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11843 | builtin and then its argument prototype would still apply. */ |
11844 | char png_check_sig(); | |
90dd450c | 11845 | |
a0b9e27f MB |
11846 | int main() { |
11847 | png_check_sig() | |
11848 | ; return 0; } | |
11849 | EOF | |
89e6bf6d | 11850 | if { (eval echo configure:11851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11851 | rm -rf conftest* |
11852 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11853 | else | |
11854 | echo "configure: failed program was:" >&5 | |
11855 | cat conftest.$ac_ext >&5 | |
11856 | rm -rf conftest* | |
11857 | eval "ac_cv_lib_$ac_lib_var=no" | |
11858 | fi | |
11859 | rm -f conftest* | |
11860 | LIBS="$ac_save_LIBS" | |
247f5006 | 11861 | |
90dd450c | 11862 | fi |
a0b9e27f MB |
11863 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11864 | echo "$ac_t""yes" 1>&6 | |
11865 | PNG_LINK=" -lpng" | |
11866 | else | |
11867 | echo "$ac_t""no" 1>&6 | |
11868 | fi | |
90dd450c | 11869 | |
5d3f766d | 11870 | fi |
247f5006 | 11871 | |
21d1c967 GD |
11872 | if test "x$PNG_LINK" = "x" ; then |
11873 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
0c98a14e | 11874 | { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11875 | else |
0c98a14e | 11876 | echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11877 | wxUSE_LIBPNG=builtin |
11878 | fi | |
11879 | else | |
2b5f62a0 | 11880 | wxUSE_LIBPNG=sys |
21d1c967 GD |
11881 | fi |
11882 | fi | |
11883 | fi | |
90dd450c | 11884 | |
21d1c967 GD |
11885 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11886 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11887 | fi | |
90dd450c | 11888 | |
21d1c967 | 11889 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11890 | fi |
11891 | ||
8284b0c5 | 11892 | |
21d1c967 GD |
11893 | JPEG_INCLUDE= |
11894 | JPEG_LINK= | |
11895 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
a0b9e27f | 11896 | cat >> confdefs.h <<\EOF |
21d1c967 | 11897 | #define wxUSE_LIBJPEG 1 |
a0b9e27f | 11898 | EOF |
90dd450c | 11899 | |
8284b0c5 | 11900 | |
21d1c967 | 11901 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
a0b9e27f | 11902 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11903 | wxUSE_LIBJPEG=sys |
11904 | fi | |
90dd450c | 11905 | |
21d1c967 GD |
11906 | if test "$wxUSE_MGL" != 1 ; then |
11907 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
a0b9e27f | 11908 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
89e6bf6d | 11909 | echo "configure:11910: checking for jpeglib.h" >&5 |
a0b9e27f MB |
11910 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
11911 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11912 | else |
a0b9e27f | 11913 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 11914 | #line 11915 "configure" |
21d1c967 | 11915 | #include "confdefs.h" |
90dd450c | 11916 | |
21d1c967 GD |
11917 | #undef HAVE_STDLIB_H |
11918 | #include <stdio.h> | |
11919 | #include <jpeglib.h> | |
a0b9e27f MB |
11920 | |
11921 | int main() { | |
90dd450c | 11922 | |
a0b9e27f MB |
11923 | |
11924 | ; return 0; } | |
11925 | EOF | |
89e6bf6d | 11926 | if { (eval echo configure:11927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11927 | rm -rf conftest* |
21d1c967 | 11928 | ac_cv_header_jpeglib_h=yes |
90dd450c | 11929 | else |
a0b9e27f MB |
11930 | echo "configure: failed program was:" >&5 |
11931 | cat conftest.$ac_ext >&5 | |
11932 | rm -rf conftest* | |
11933 | ac_cv_header_jpeglib_h=no | |
11934 | ||
90dd450c | 11935 | fi |
a0b9e27f MB |
11936 | rm -f conftest* |
11937 | ||
90dd450c VZ |
11938 | fi |
11939 | ||
a0b9e27f | 11940 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11941 | |
21d1c967 | 11942 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
a0b9e27f | 11943 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
89e6bf6d | 11944 | echo "configure:11945: checking for jpeg_read_header in -ljpeg" >&5 |
a0b9e27f MB |
11945 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11946 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11947 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11948 | else |
a0b9e27f | 11949 | ac_save_LIBS="$LIBS" |
21d1c967 | 11950 | LIBS="-ljpeg $LIBS" |
a0b9e27f | 11951 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 11952 | #line 11953 "configure" |
21d1c967 GD |
11953 | #include "confdefs.h" |
11954 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11955 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11956 | builtin and then its argument prototype would still apply. */ |
11957 | char jpeg_read_header(); | |
11958 | ||
11959 | int main() { | |
11960 | jpeg_read_header() | |
11961 | ; return 0; } | |
11962 | EOF | |
89e6bf6d | 11963 | if { (eval echo configure:11964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11964 | rm -rf conftest* |
11965 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11966 | else | |
11967 | echo "configure: failed program was:" >&5 | |
11968 | cat conftest.$ac_ext >&5 | |
11969 | rm -rf conftest* | |
11970 | eval "ac_cv_lib_$ac_lib_var=no" | |
11971 | fi | |
11972 | rm -f conftest* | |
11973 | LIBS="$ac_save_LIBS" | |
11974 | ||
11975 | fi | |
11976 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11977 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11978 | JPEG_LINK=" -ljpeg" |
a0b9e27f MB |
11979 | else |
11980 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11981 | fi |
11982 | ||
21d1c967 | 11983 | fi |
90dd450c | 11984 | |
21d1c967 GD |
11985 | if test "x$JPEG_LINK" = "x" ; then |
11986 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
a0b9e27f | 11987 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11988 | else |
a0b9e27f | 11989 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11990 | wxUSE_LIBJPEG=builtin |
11991 | fi | |
11992 | else | |
11993 | wxUSE_LIBJPEG=sys | |
11994 | fi | |
11995 | fi | |
11996 | fi | |
90dd450c | 11997 | |
21d1c967 GD |
11998 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
11999 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
12000 | fi | |
12001 | fi | |
90dd450c | 12002 | |
8284b0c5 | 12003 | |
21d1c967 GD |
12004 | TIFF_INCLUDE= |
12005 | TIFF_LINK= | |
2b5f62a0 | 12006 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 12007 | if test "$wxUSE_LIBTIFF" != "no" ; then |
a0b9e27f | 12008 | cat >> confdefs.h <<\EOF |
21d1c967 | 12009 | #define wxUSE_LIBTIFF 1 |
a0b9e27f | 12010 | EOF |
21d1c967 | 12011 | |
8284b0c5 | 12012 | |
21d1c967 | 12013 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
12014 | if test "$wxUSE_LIBJPEG" = "sys"; then |
12015 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
12016 | fi | |
12017 | if test "$wxUSE_ZLIB" = "sys"; then | |
12018 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
12019 | fi | |
a0b9e27f MB |
12020 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
12021 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
89e6bf6d | 12022 | echo "configure:12023: checking for tiffio.h" >&5 |
a0b9e27f MB |
12023 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12024 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12025 | else | |
12026 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 12027 | #line 12028 "configure" |
247f5006 VZ |
12028 | #include "confdefs.h" |
12029 | #include <tiffio.h> | |
a0b9e27f MB |
12030 | EOF |
12031 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 12032 | { (eval echo configure:12033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12033 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12034 | if test -z "$ac_err"; then | |
12035 | rm -rf conftest* | |
12036 | eval "ac_cv_header_$ac_safe=yes" | |
12037 | else | |
12038 | echo "$ac_err" >&5 | |
12039 | echo "configure: failed program was:" >&5 | |
21d1c967 | 12040 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12041 | rm -rf conftest* |
12042 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 12043 | fi |
a0b9e27f | 12044 | rm -f conftest* |
21d1c967 | 12045 | fi |
a0b9e27f MB |
12046 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12047 | echo "$ac_t""yes" 1>&6 | |
12048 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
89e6bf6d | 12049 | echo "configure:12050: checking for TIFFError in -ltiff" >&5 |
a0b9e27f MB |
12050 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
12051 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12052 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 12053 | else |
a0b9e27f | 12054 | ac_save_LIBS="$LIBS" |
2b5f62a0 | 12055 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
a0b9e27f | 12056 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 12057 | #line 12058 "configure" |
ab9b9eab VZ |
12058 | #include "confdefs.h" |
12059 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12060 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12061 | builtin and then its argument prototype would still apply. */ |
12062 | char TIFFError(); | |
ab9b9eab | 12063 | |
a0b9e27f MB |
12064 | int main() { |
12065 | TIFFError() | |
12066 | ; return 0; } | |
12067 | EOF | |
89e6bf6d | 12068 | if { (eval echo configure:12069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12069 | rm -rf conftest* |
12070 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12071 | else | |
12072 | echo "configure: failed program was:" >&5 | |
12073 | cat conftest.$ac_ext >&5 | |
12074 | rm -rf conftest* | |
12075 | eval "ac_cv_lib_$ac_lib_var=no" | |
12076 | fi | |
12077 | rm -f conftest* | |
12078 | LIBS="$ac_save_LIBS" | |
247f5006 | 12079 | |
21d1c967 | 12080 | fi |
a0b9e27f MB |
12081 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
12082 | echo "$ac_t""yes" 1>&6 | |
12083 | TIFF_LINK=" -ltiff" | |
12084 | else | |
12085 | echo "$ac_t""no" 1>&6 | |
12086 | fi | |
cd6d6d5b | 12087 | |
a0b9e27f MB |
12088 | |
12089 | else | |
12090 | echo "$ac_t""no" 1>&6 | |
12091 | fi | |
8284b0c5 | 12092 | |
247f5006 | 12093 | |
21d1c967 GD |
12094 | if test "x$TIFF_LINK" = "x" ; then |
12095 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
a0b9e27f | 12096 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 12097 | else |
a0b9e27f | 12098 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 12099 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 12100 | fi |
d8356fa3 | 12101 | else |
21d1c967 | 12102 | wxUSE_LIBTIFF=sys |
d8356fa3 | 12103 | fi |
21d1c967 | 12104 | fi |
d8356fa3 | 12105 | |
21d1c967 GD |
12106 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
12107 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 12108 | fi |
21d1c967 | 12109 | fi |
10f2d63a | 12110 | |
8284b0c5 | 12111 | |
21d1c967 | 12112 | AFMINSTALL= |
2b5f62a0 | 12113 | WIN32INSTALL= |
90dd450c | 12114 | |
21d1c967 GD |
12115 | TOOLKIT= |
12116 | TOOLKIT_INCLUDE= | |
12117 | WIDGET_SET= | |
12118 | ||
12119 | if test "$USE_WIN32" = 1 ; then | |
a0b9e27f | 12120 | for ac_hdr in w32api.h |
21d1c967 | 12121 | do |
a0b9e27f MB |
12122 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12123 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
89e6bf6d | 12124 | echo "configure:12125: checking for $ac_hdr" >&5 |
a0b9e27f MB |
12125 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12126 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12127 | else | |
12128 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 12129 | #line 12130 "configure" |
247f5006 | 12130 | #include "confdefs.h" |
a0b9e27f MB |
12131 | #include <$ac_hdr> |
12132 | EOF | |
12133 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 12134 | { (eval echo configure:12135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12135 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12136 | if test -z "$ac_err"; then | |
12137 | rm -rf conftest* | |
12138 | eval "ac_cv_header_$ac_safe=yes" | |
12139 | else | |
12140 | echo "$ac_err" >&5 | |
12141 | echo "configure: failed program was:" >&5 | |
f79bd02d | 12142 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12143 | rm -rf conftest* |
12144 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 12145 | fi |
a0b9e27f | 12146 | rm -f conftest* |
21d1c967 | 12147 | fi |
a0b9e27f MB |
12148 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12149 | echo "$ac_t""yes" 1>&6 | |
12150 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12151 | cat >> confdefs.h <<EOF | |
12152 | #define $ac_tr_hdr 1 | |
12153 | EOF | |
12154 | ||
12155 | else | |
12156 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
12157 | fi |
12158 | done | |
f79bd02d | 12159 | |
a0b9e27f MB |
12160 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
12161 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
89e6bf6d | 12162 | echo "configure:12163: checking for windows.h" >&5 |
a0b9e27f MB |
12163 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12165 | else |
a0b9e27f | 12166 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 12167 | #line 12168 "configure" |
247f5006 VZ |
12168 | #include "confdefs.h" |
12169 | #include <windows.h> | |
a0b9e27f MB |
12170 | EOF |
12171 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 12172 | { (eval echo configure:12173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12173 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12174 | if test -z "$ac_err"; then | |
12175 | rm -rf conftest* | |
12176 | eval "ac_cv_header_$ac_safe=yes" | |
12177 | else | |
12178 | echo "$ac_err" >&5 | |
12179 | echo "configure: failed program was:" >&5 | |
90dd450c | 12180 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12181 | rm -rf conftest* |
12182 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 12183 | fi |
a0b9e27f | 12184 | rm -f conftest* |
90dd450c | 12185 | fi |
a0b9e27f MB |
12186 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12187 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12188 | : |
90dd450c | 12189 | else |
a0b9e27f | 12190 | echo "$ac_t""no" 1>&6 |
21d1c967 | 12191 | |
a0b9e27f MB |
12192 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
12193 | ||
5c6fa7d2 | 12194 | fi |
7b4a847f | 12195 | |
5c6fa7d2 | 12196 | |
a0b9e27f | 12197 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
89e6bf6d | 12198 | echo "configure:12199: checking if w32api has good enough MSIE support" >&5 |
a0b9e27f MB |
12199 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
12200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 12201 | else |
a0b9e27f MB |
12202 | |
12203 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 12204 | #line 12205 "configure" |
f79bd02d | 12205 | #include "confdefs.h" |
21d1c967 | 12206 | #include <w32api.h> |
a0b9e27f | 12207 | int main() { |
f79bd02d | 12208 | |
21d1c967 GD |
12209 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
12210 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
12211 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
12212 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
12213 | ||
12214 | #if !wxCHECK_W32API_VERSION(1,1) | |
12215 | #error You need w32api 1.1 or newer | |
12216 | #endif | |
a0b9e27f MB |
12217 | |
12218 | ; return 0; } | |
12219 | EOF | |
89e6bf6d | 12220 | if { (eval echo configure:12221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
12221 | rm -rf conftest* |
12222 | ||
21d1c967 | 12223 | wx_cv_w32api_win32_ie=yes |
a0b9e27f | 12224 | |
f79bd02d | 12225 | else |
a0b9e27f MB |
12226 | echo "configure: failed program was:" >&5 |
12227 | cat conftest.$ac_ext >&5 | |
12228 | rm -rf conftest* | |
12229 | ||
21d1c967 | 12230 | wx_cv_w32api_win32_ie=no |
a0b9e27f | 12231 | |
5c6fa7d2 | 12232 | fi |
a0b9e27f MB |
12233 | rm -f conftest* |
12234 | ||
247f5006 | 12235 | fi |
a0b9e27f MB |
12236 | |
12237 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
12238 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
12239 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
12240 | fi | |
f79bd02d | 12241 | |
21d1c967 GD |
12242 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
12243 | ||
12244 | case "${host}" in | |
12245 | *-*-cygwin* ) | |
12246 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
12247 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 12248 | esac |
f79bd02d | 12249 | |
21d1c967 GD |
12250 | if test "$wxUSE_ODBC" = "yes" ; then |
12251 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
12252 | fi | |
f79bd02d | 12253 | |
21d1c967 GD |
12254 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
12255 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
12256 | |
12257 | WIN32INSTALL=win32install | |
f79bd02d | 12258 | fi |
f79bd02d | 12259 | |
b2fee376 | 12260 | if test "$USE_DARWIN" = 1; then |
50bcbd3d | 12261 | if test "$wxUSE_PRECOMP" = "yes"; then |
b2fee376 GD |
12262 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
12263 | else | |
12264 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
12265 | fi | |
12266 | fi | |
12267 | ||
21d1c967 GD |
12268 | if test "$wxUSE_GUI" = "yes"; then |
12269 | USE_GUI=1 | |
f79bd02d | 12270 | |
21d1c967 | 12271 | GUI_TK_LIBRARY= |
f79bd02d | 12272 | |
21d1c967 GD |
12273 | WXGTK12= |
12274 | WXGTK127= | |
12275 | WXGTK20= | |
f79bd02d | 12276 | |
21d1c967 GD |
12277 | if test "$wxUSE_MSW" = 1 ; then |
12278 | TOOLKIT=MSW | |
12279 | GUIDIST=MSW_DIST | |
f79bd02d | 12280 | |
89e6bf6d | 12281 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
f79bd02d JS |
12282 | fi |
12283 | ||
21d1c967 | 12284 | if test "$wxUSE_GTK" = 1; then |
a0b9e27f | 12285 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
89e6bf6d | 12286 | echo "configure:12287: checking for GTK+ version" >&5 |
21d1c967 GD |
12287 | |
12288 | gtk_version_cached=1 | |
a0b9e27f MB |
12289 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
12290 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 12291 | else |
a0b9e27f | 12292 | |
21d1c967 | 12293 | gtk_version_cached=0 |
a0b9e27f | 12294 | echo "$ac_t""" 1>&6 |
f79bd02d | 12295 | |
21d1c967 GD |
12296 | GTK_MODULES= |
12297 | if test "$wxUSE_THREADS" = "yes"; then | |
12298 | GTK_MODULES=gthread | |
12299 | fi | |
f79bd02d | 12300 | |
2b5f62a0 | 12301 | wx_cv_lib_gtk= |
21d1c967 GD |
12302 | if test "x$wxUSE_GTK2" = "xyes"; then |
12303 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12304 | if test "${enable_gtktest+set}" = set; then | |
12305 | enableval="$enable_gtktest" | |
a0b9e27f | 12306 | : |
f79bd02d | 12307 | else |
21d1c967 | 12308 | enable_gtktest=yes |
a0b9e27f MB |
12309 | fi |
12310 | ||
f79bd02d | 12311 | |
21d1c967 GD |
12312 | pkg_config_args=gtk+-2.0 |
12313 | for module in . $GTK_MODULES | |
12314 | do | |
12315 | case "$module" in | |
a0b9e27f | 12316 | gthread) |
21d1c967 GD |
12317 | pkg_config_args="$pkg_config_args gthread-2.0" |
12318 | ;; | |
12319 | esac | |
12320 | done | |
12321 | ||
12322 | no_gtk="" | |
f79bd02d | 12323 | |
21d1c967 GD |
12324 | # Extract the first word of "pkg-config", so it can be a program name with args. |
12325 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 12326 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
89e6bf6d | 12327 | echo "configure:12328: checking for $ac_word" >&5 |
a0b9e27f MB |
12328 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
12329 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12330 | else |
a0b9e27f MB |
12331 | case "$PKG_CONFIG" in |
12332 | /*) | |
21d1c967 GD |
12333 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12334 | ;; | |
a0b9e27f MB |
12335 | ?:/*) |
12336 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12337 | ;; | |
21d1c967 | 12338 | *) |
a0b9e27f MB |
12339 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12340 | ac_dummy="$PATH" | |
12341 | for ac_dir in $ac_dummy; do | |
12342 | test -z "$ac_dir" && ac_dir=. | |
12343 | if test -f $ac_dir/$ac_word; then | |
12344 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12345 | break | |
12346 | fi | |
12347 | done | |
12348 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12349 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12350 | ;; | |
12351 | esac | |
f79bd02d | 12352 | fi |
a0b9e27f | 12353 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 12354 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 12355 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 12356 | else |
a0b9e27f | 12357 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
12358 | fi |
12359 | ||
8284b0c5 | 12360 | |
21d1c967 GD |
12361 | if test x$PKG_CONFIG != xno ; then |
12362 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
12363 | : | |
12364 | else | |
12365 | echo *** pkg-config too old; version 0.7 or better required. | |
12366 | no_gtk=yes | |
12367 | PKG_CONFIG=no | |
12368 | fi | |
12369 | else | |
12370 | no_gtk=yes | |
12371 | fi | |
f79bd02d | 12372 | |
21d1c967 | 12373 | min_gtk_version=2.0.0 |
a0b9e27f | 12374 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
89e6bf6d | 12375 | echo "configure:12376: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 12376 | |
21d1c967 GD |
12377 | if test x$PKG_CONFIG != xno ; then |
12378 | ## don't try to run the test against uninstalled libtool libs | |
12379 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
12380 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
12381 | enable_gtktest=no | |
12382 | fi | |
f79bd02d | 12383 | |
21d1c967 GD |
12384 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
12385 | : | |
12386 | else | |
12387 | no_gtk=yes | |
12388 | fi | |
12389 | fi | |
f79bd02d | 12390 | |
21d1c967 GD |
12391 | if test x"$no_gtk" = x ; then |
12392 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
12393 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
12394 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12395 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12396 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12397 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12398 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12399 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12400 | if test "x$enable_gtktest" = "xyes" ; then | |
12401 | ac_save_CFLAGS="$CFLAGS" | |
12402 | ac_save_LIBS="$LIBS" | |
12403 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12404 | LIBS="$GTK_LIBS $LIBS" | |
12405 | rm -f conf.gtktest | |
12406 | if test "$cross_compiling" = yes; then | |
12407 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12408 | else |
a0b9e27f | 12409 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 12410 | #line 12411 "configure" |
f79bd02d | 12411 | #include "confdefs.h" |
f79bd02d | 12412 | |
21d1c967 GD |
12413 | #include <gtk/gtk.h> |
12414 | #include <stdio.h> | |
12415 | #include <stdlib.h> | |
f79bd02d | 12416 | |
a0b9e27f | 12417 | int |
21d1c967 GD |
12418 | main () |
12419 | { | |
12420 | int major, minor, micro; | |
12421 | char *tmp_version; | |
f79bd02d | 12422 | |
21d1c967 | 12423 | system ("touch conf.gtktest"); |
f79bd02d | 12424 | |
21d1c967 GD |
12425 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
12426 | tmp_version = g_strdup("$min_gtk_version"); | |
12427 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12428 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12429 | exit(1); | |
12430 | } | |
f79bd02d | 12431 | |
21d1c967 GD |
12432 | if ((gtk_major_version != $gtk_config_major_version) || |
12433 | (gtk_minor_version != $gtk_config_minor_version) || | |
12434 | (gtk_micro_version != $gtk_config_micro_version)) | |
12435 | { | |
a0b9e27f | 12436 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12437 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12438 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12439 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
12440 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12441 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12442 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12443 | printf("*** required on your system.\n"); | |
12444 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
12445 | printf("*** to point to the correct configuration files\n"); | |
a0b9e27f | 12446 | } |
21d1c967 GD |
12447 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
12448 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12449 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12450 | { | |
12451 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12452 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12453 | printf("*** library (version %d.%d.%d)\n", | |
12454 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12455 | } | |
12456 | else | |
12457 | { | |
12458 | if ((gtk_major_version > major) || | |
12459 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12460 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12461 | { | |
12462 | return 0; | |
12463 | } | |
12464 | else | |
12465 | { | |
12466 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12467 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12468 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12469 | major, minor, micro); | |
12470 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12471 | printf("***\n"); | |
12472 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12473 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
12474 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12475 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
12476 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
12477 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12478 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12479 | } | |
12480 | } | |
12481 | return 1; | |
12482 | } | |
f79bd02d | 12483 | |
a0b9e27f | 12484 | EOF |
89e6bf6d | 12485 | if { (eval echo configure:12486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12486 | then |
21d1c967 | 12487 | : |
f79bd02d | 12488 | else |
a0b9e27f MB |
12489 | echo "configure: failed program was:" >&5 |
12490 | cat conftest.$ac_ext >&5 | |
12491 | rm -fr conftest* | |
12492 | no_gtk=yes | |
f79bd02d | 12493 | fi |
a0b9e27f | 12494 | rm -fr conftest* |
f79bd02d | 12495 | fi |
a0b9e27f | 12496 | |
21d1c967 GD |
12497 | CFLAGS="$ac_save_CFLAGS" |
12498 | LIBS="$ac_save_LIBS" | |
12499 | fi | |
12500 | fi | |
12501 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12502 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
12503 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 12504 | else |
a0b9e27f | 12505 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12506 | if test "$PKG_CONFIG" = "no" ; then |
12507 | echo "*** A new enough version of pkg-config was not found." | |
12508 | echo "*** See http://pkgconfig.sourceforge.net" | |
12509 | else | |
12510 | if test -f conf.gtktest ; then | |
12511 | : | |
12512 | else | |
12513 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
12514 | ac_save_CFLAGS="$CFLAGS" |
12515 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
12516 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
12517 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12518 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 12519 | #line 12520 "configure" |
f79bd02d | 12520 | #include "confdefs.h" |
21d1c967 GD |
12521 | |
12522 | #include <gtk/gtk.h> | |
12523 | #include <stdio.h> | |
f79bd02d | 12524 | |
a0b9e27f MB |
12525 | int main() { |
12526 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12527 | ; return 0; } | |
12528 | EOF | |
89e6bf6d | 12529 | if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12530 | rm -rf conftest* |
21d1c967 GD |
12531 | echo "*** The test program compiled, but did not run. This usually means" |
12532 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12533 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12534 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12535 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12536 | echo "*** is required on your system" | |
12537 | echo "***" | |
12538 | echo "*** If you have an old version installed, it is best to remove it, although" | |
a0b9e27f | 12539 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 12540 | else |
a0b9e27f MB |
12541 | echo "configure: failed program was:" >&5 |
12542 | cat conftest.$ac_ext >&5 | |
12543 | rm -rf conftest* | |
12544 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 12545 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 12546 | fi |
a0b9e27f | 12547 | rm -f conftest* |
21d1c967 GD |
12548 | CFLAGS="$ac_save_CFLAGS" |
12549 | LIBS="$ac_save_LIBS" | |
12550 | fi | |
12551 | fi | |
12552 | GTK_CFLAGS="" | |
12553 | GTK_LIBS="" | |
12554 | : | |
12555 | fi | |
a0b9e27f MB |
12556 | |
12557 | ||
21d1c967 | 12558 | rm -f conf.gtktest |
f79bd02d | 12559 | |
2b5f62a0 | 12560 | else |
a0b9e27f | 12561 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12562 | if test "${with_gtk_prefix+set}" = set; then |
12563 | withval="$with_gtk_prefix" | |
12564 | gtk_config_prefix="$withval" | |
12565 | else | |
12566 | gtk_config_prefix="" | |
a0b9e27f | 12567 | fi |
f79bd02d | 12568 | |
21d1c967 GD |
12569 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12570 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12571 | withval="$with_gtk_exec_prefix" | |
12572 | gtk_config_exec_prefix="$withval" | |
12573 | else | |
12574 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12575 | fi |
12576 | ||
21d1c967 GD |
12577 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12578 | if test "${enable_gtktest+set}" = set; then | |
12579 | enableval="$enable_gtktest" | |
a0b9e27f | 12580 | : |
21d1c967 GD |
12581 | else |
12582 | enable_gtktest=yes | |
a0b9e27f MB |
12583 | fi |
12584 | ||
21d1c967 GD |
12585 | |
12586 | for module in . $GTK_MODULES | |
12587 | do | |
12588 | case "$module" in | |
a0b9e27f | 12589 | gthread) |
21d1c967 GD |
12590 | gtk_config_args="$gtk_config_args gthread" |
12591 | ;; | |
12592 | esac | |
12593 | done | |
12594 | ||
12595 | if test x$gtk_config_exec_prefix != x ; then | |
12596 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12597 | if test x${GTK_CONFIG+set} != xset ; then | |
12598 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12599 | fi | |
12600 | fi | |
12601 | if test x$gtk_config_prefix != x ; then | |
12602 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12603 | if test x${GTK_CONFIG+set} != xset ; then | |
12604 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12605 | fi | |
12606 | fi | |
12607 | ||
12608 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12609 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12610 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
89e6bf6d | 12611 | echo "configure:12612: checking for $ac_word" >&5 |
a0b9e27f MB |
12612 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12613 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12614 | else |
a0b9e27f MB |
12615 | case "$GTK_CONFIG" in |
12616 | /*) | |
21d1c967 GD |
12617 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12618 | ;; | |
a0b9e27f MB |
12619 | ?:/*) |
12620 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12621 | ;; | |
21d1c967 | 12622 | *) |
a0b9e27f MB |
12623 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12624 | ac_dummy="$PATH" | |
12625 | for ac_dir in $ac_dummy; do | |
12626 | test -z "$ac_dir" && ac_dir=. | |
12627 | if test -f $ac_dir/$ac_word; then | |
12628 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12629 | break | |
12630 | fi | |
12631 | done | |
12632 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12633 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12634 | ;; | |
12635 | esac | |
12636 | fi | |
a0b9e27f | 12637 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12638 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12639 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12640 | else |
a0b9e27f | 12641 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12642 | fi |
12643 | ||
12644 | min_gtk_version=1.2.7 | |
a0b9e27f | 12645 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
89e6bf6d | 12646 | echo "configure:12647: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12647 | no_gtk="" |
12648 | if test "$GTK_CONFIG" = "no" ; then | |
12649 | no_gtk=yes | |
12650 | else | |
12651 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12652 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12653 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12654 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12655 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12656 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12657 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12658 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12659 | if test "x$enable_gtktest" = "xyes" ; then | |
12660 | ac_save_CFLAGS="$CFLAGS" | |
12661 | ac_save_LIBS="$LIBS" | |
12662 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12663 | LIBS="$GTK_LIBS $LIBS" | |
12664 | rm -f conf.gtktest | |
12665 | if test "$cross_compiling" = yes; then | |
12666 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12667 | else |
a0b9e27f | 12668 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 12669 | #line 12670 "configure" |
f79bd02d JS |
12670 | #include "confdefs.h" |
12671 | ||
21d1c967 GD |
12672 | #include <gtk/gtk.h> |
12673 | #include <stdio.h> | |
12674 | #include <stdlib.h> | |
f79bd02d | 12675 | |
a0b9e27f | 12676 | int |
21d1c967 GD |
12677 | main () |
12678 | { | |
12679 | int major, minor, micro; | |
12680 | char *tmp_version; | |
12681 | ||
12682 | system ("touch conf.gtktest"); | |
12683 | ||
12684 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12685 | tmp_version = g_strdup("$min_gtk_version"); | |
12686 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12687 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12688 | exit(1); | |
12689 | } | |
90dd450c | 12690 | |
21d1c967 GD |
12691 | if ((gtk_major_version != $gtk_config_major_version) || |
12692 | (gtk_minor_version != $gtk_config_minor_version) || | |
12693 | (gtk_micro_version != $gtk_config_micro_version)) | |
12694 | { | |
a0b9e27f | 12695 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12696 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12697 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12698 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12699 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12700 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12701 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12702 | printf("*** required on your system.\n"); | |
12703 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12704 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12705 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12706 | } |
21d1c967 GD |
12707 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12708 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12709 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12710 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12711 | { | |
12712 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12713 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12714 | printf("*** library (version %d.%d.%d)\n", | |
12715 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12716 | } | |
12717 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12718 | else | |
12719 | { | |
12720 | if ((gtk_major_version > major) || | |
12721 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12722 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12723 | { | |
12724 | return 0; | |
12725 | } | |
12726 | else | |
12727 | { | |
12728 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12729 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12730 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12731 | major, minor, micro); | |
12732 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12733 | printf("***\n"); | |
12734 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12735 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12736 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12737 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12738 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12739 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12740 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12741 | } | |
12742 | } | |
12743 | return 1; | |
12744 | } | |
12745 | ||
a0b9e27f | 12746 | EOF |
89e6bf6d | 12747 | if { (eval echo configure:12748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12748 | then |
21d1c967 GD |
12749 | : |
12750 | else | |
a0b9e27f MB |
12751 | echo "configure: failed program was:" >&5 |
12752 | cat conftest.$ac_ext >&5 | |
12753 | rm -fr conftest* | |
12754 | no_gtk=yes | |
21d1c967 | 12755 | fi |
a0b9e27f | 12756 | rm -fr conftest* |
21d1c967 | 12757 | fi |
a0b9e27f | 12758 | |
21d1c967 GD |
12759 | CFLAGS="$ac_save_CFLAGS" |
12760 | LIBS="$ac_save_LIBS" | |
12761 | fi | |
12762 | fi | |
12763 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12764 | echo "$ac_t""yes" 1>&6 |
12765 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12766 | else |
a0b9e27f | 12767 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12768 | if test "$GTK_CONFIG" = "no" ; then |
12769 | echo "*** The gtk-config script installed by GTK could not be found" | |
12770 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12771 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12772 | echo "*** full path to gtk-config." | |
12773 | else | |
12774 | if test -f conf.gtktest ; then | |
12775 | : | |
12776 | else | |
12777 | echo "*** Could not run GTK test program, checking why..." | |
12778 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12779 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12780 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 12781 | #line 12782 "configure" |
21d1c967 GD |
12782 | #include "confdefs.h" |
12783 | ||
12784 | #include <gtk/gtk.h> | |
12785 | #include <stdio.h> | |
12786 | ||
a0b9e27f MB |
12787 | int main() { |
12788 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12789 | ; return 0; } | |
12790 | EOF | |
89e6bf6d | 12791 | if { (eval echo configure:12792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12792 | rm -rf conftest* |
21d1c967 GD |
12793 | echo "*** The test program compiled, but did not run. This usually means" |
12794 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12795 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12796 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12797 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12798 | echo "*** is required on your system" | |
12799 | echo "***" | |
12800 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12801 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12802 | echo "***" | |
12803 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12804 | echo "*** came with the system with the command" | |
12805 | echo "***" | |
a0b9e27f | 12806 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12807 | else |
a0b9e27f MB |
12808 | echo "configure: failed program was:" >&5 |
12809 | cat conftest.$ac_ext >&5 | |
12810 | rm -rf conftest* | |
12811 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12812 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12813 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 12814 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12815 | fi |
a0b9e27f | 12816 | rm -f conftest* |
21d1c967 GD |
12817 | CFLAGS="$ac_save_CFLAGS" |
12818 | LIBS="$ac_save_LIBS" | |
12819 | fi | |
12820 | fi | |
12821 | GTK_CFLAGS="" | |
12822 | GTK_LIBS="" | |
12823 | : | |
12824 | fi | |
a0b9e27f MB |
12825 | |
12826 | ||
21d1c967 GD |
12827 | rm -f conf.gtktest |
12828 | ||
21d1c967 | 12829 | |
2b5f62a0 VZ |
12830 | if test -z "$wx_cv_lib_gtk"; then |
12831 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
12832 | if test "${with_gtk_prefix+set}" = set; then |
12833 | withval="$with_gtk_prefix" | |
12834 | gtk_config_prefix="$withval" | |
12835 | else | |
12836 | gtk_config_prefix="" | |
a0b9e27f | 12837 | fi |
f79bd02d | 12838 | |
21d1c967 GD |
12839 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12840 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12841 | withval="$with_gtk_exec_prefix" | |
12842 | gtk_config_exec_prefix="$withval" | |
12843 | else | |
12844 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12845 | fi |
12846 | ||
21d1c967 GD |
12847 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12848 | if test "${enable_gtktest+set}" = set; then | |
12849 | enableval="$enable_gtktest" | |
a0b9e27f | 12850 | : |
90dd450c | 12851 | else |
21d1c967 | 12852 | enable_gtktest=yes |
a0b9e27f MB |
12853 | fi |
12854 | ||
21d1c967 GD |
12855 | |
12856 | for module in . $GTK_MODULES | |
12857 | do | |
12858 | case "$module" in | |
a0b9e27f | 12859 | gthread) |
21d1c967 GD |
12860 | gtk_config_args="$gtk_config_args gthread" |
12861 | ;; | |
12862 | esac | |
12863 | done | |
12864 | ||
12865 | if test x$gtk_config_exec_prefix != x ; then | |
12866 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12867 | if test x${GTK_CONFIG+set} != xset ; then | |
12868 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12869 | fi | |
12870 | fi | |
12871 | if test x$gtk_config_prefix != x ; then | |
12872 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12873 | if test x${GTK_CONFIG+set} != xset ; then | |
12874 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12875 | fi | |
12876 | fi | |
12877 | ||
12878 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12879 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12880 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
89e6bf6d | 12881 | echo "configure:12882: checking for $ac_word" >&5 |
a0b9e27f MB |
12882 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12883 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12884 | else |
a0b9e27f MB |
12885 | case "$GTK_CONFIG" in |
12886 | /*) | |
21d1c967 GD |
12887 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12888 | ;; | |
a0b9e27f MB |
12889 | ?:/*) |
12890 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12891 | ;; | |
21d1c967 | 12892 | *) |
a0b9e27f MB |
12893 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12894 | ac_dummy="$PATH" | |
12895 | for ac_dir in $ac_dummy; do | |
12896 | test -z "$ac_dir" && ac_dir=. | |
12897 | if test -f $ac_dir/$ac_word; then | |
12898 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12899 | break | |
12900 | fi | |
12901 | done | |
12902 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12903 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12904 | ;; | |
12905 | esac | |
12906 | fi | |
a0b9e27f | 12907 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12908 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12909 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12910 | else |
a0b9e27f | 12911 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12912 | fi |
12913 | ||
12914 | min_gtk_version=1.2.3 | |
a0b9e27f | 12915 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
89e6bf6d | 12916 | echo "configure:12917: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12917 | no_gtk="" |
12918 | if test "$GTK_CONFIG" = "no" ; then | |
12919 | no_gtk=yes | |
12920 | else | |
12921 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12922 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12923 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12924 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12925 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12926 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12927 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12928 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12929 | if test "x$enable_gtktest" = "xyes" ; then | |
12930 | ac_save_CFLAGS="$CFLAGS" | |
12931 | ac_save_LIBS="$LIBS" | |
12932 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12933 | LIBS="$GTK_LIBS $LIBS" | |
12934 | rm -f conf.gtktest | |
12935 | if test "$cross_compiling" = yes; then | |
12936 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12937 | else | |
a0b9e27f | 12938 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 12939 | #line 12940 "configure" |
f79bd02d | 12940 | #include "confdefs.h" |
21d1c967 GD |
12941 | |
12942 | #include <gtk/gtk.h> | |
12943 | #include <stdio.h> | |
12944 | #include <stdlib.h> | |
12945 | ||
a0b9e27f | 12946 | int |
21d1c967 GD |
12947 | main () |
12948 | { | |
12949 | int major, minor, micro; | |
12950 | char *tmp_version; | |
12951 | ||
12952 | system ("touch conf.gtktest"); | |
12953 | ||
12954 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12955 | tmp_version = g_strdup("$min_gtk_version"); | |
12956 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12957 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12958 | exit(1); | |
12959 | } | |
12960 | ||
12961 | if ((gtk_major_version != $gtk_config_major_version) || | |
12962 | (gtk_minor_version != $gtk_config_minor_version) || | |
12963 | (gtk_micro_version != $gtk_config_micro_version)) | |
12964 | { | |
a0b9e27f | 12965 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12966 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12967 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12968 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12969 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12970 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12971 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12972 | printf("*** required on your system.\n"); | |
12973 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12974 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12975 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12976 | } |
21d1c967 GD |
12977 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12978 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12979 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12980 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12981 | { | |
12982 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12983 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12984 | printf("*** library (version %d.%d.%d)\n", | |
12985 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12986 | } | |
12987 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12988 | else | |
12989 | { | |
12990 | if ((gtk_major_version > major) || | |
12991 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12992 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12993 | { | |
12994 | return 0; | |
12995 | } | |
12996 | else | |
12997 | { | |
12998 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12999 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13000 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
13001 | major, minor, micro); | |
13002 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
13003 | printf("***\n"); | |
13004 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
13005 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
13006 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
13007 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
13008 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
13009 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
13010 | printf("*** so that the correct libraries are found at run-time))\n"); | |
13011 | } | |
13012 | } | |
13013 | return 1; | |
13014 | } | |
13015 | ||
a0b9e27f | 13016 | EOF |
89e6bf6d | 13017 | if { (eval echo configure:13018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 13018 | then |
21d1c967 GD |
13019 | : |
13020 | else | |
a0b9e27f MB |
13021 | echo "configure: failed program was:" >&5 |
13022 | cat conftest.$ac_ext >&5 | |
13023 | rm -fr conftest* | |
13024 | no_gtk=yes | |
21d1c967 | 13025 | fi |
a0b9e27f | 13026 | rm -fr conftest* |
21d1c967 | 13027 | fi |
a0b9e27f | 13028 | |
21d1c967 GD |
13029 | CFLAGS="$ac_save_CFLAGS" |
13030 | LIBS="$ac_save_LIBS" | |
13031 | fi | |
13032 | fi | |
13033 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
13034 | echo "$ac_t""yes" 1>&6 |
13035 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 13036 | else |
a0b9e27f | 13037 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13038 | if test "$GTK_CONFIG" = "no" ; then |
13039 | echo "*** The gtk-config script installed by GTK could not be found" | |
13040 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
13041 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
13042 | echo "*** full path to gtk-config." | |
13043 | else | |
13044 | if test -f conf.gtktest ; then | |
13045 | : | |
13046 | else | |
13047 | echo "*** Could not run GTK test program, checking why..." | |
13048 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13049 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 13050 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 13051 | #line 13052 "configure" |
21d1c967 GD |
13052 | #include "confdefs.h" |
13053 | ||
13054 | #include <gtk/gtk.h> | |
13055 | #include <stdio.h> | |
f79bd02d | 13056 | |
a0b9e27f MB |
13057 | int main() { |
13058 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
13059 | ; return 0; } | |
13060 | EOF | |
89e6bf6d | 13061 | if { (eval echo configure:13062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13062 | rm -rf conftest* |
21d1c967 GD |
13063 | echo "*** The test program compiled, but did not run. This usually means" |
13064 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
13065 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
13066 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
13067 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
13068 | echo "*** is required on your system" | |
13069 | echo "***" | |
13070 | echo "*** If you have an old version installed, it is best to remove it, although" | |
13071 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
13072 | echo "***" | |
13073 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
13074 | echo "*** came with the system with the command" | |
13075 | echo "***" | |
a0b9e27f | 13076 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 13077 | else |
a0b9e27f MB |
13078 | echo "configure: failed program was:" >&5 |
13079 | cat conftest.$ac_ext >&5 | |
13080 | rm -rf conftest* | |
13081 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
13082 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
13083 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 13084 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 13085 | fi |
a0b9e27f | 13086 | rm -f conftest* |
21d1c967 GD |
13087 | CFLAGS="$ac_save_CFLAGS" |
13088 | LIBS="$ac_save_LIBS" | |
13089 | fi | |
13090 | fi | |
13091 | GTK_CFLAGS="" | |
13092 | GTK_LIBS="" | |
13093 | : | |
13094 | fi | |
a0b9e27f MB |
13095 | |
13096 | ||
21d1c967 | 13097 | rm -f conf.gtktest |
f79bd02d | 13098 | |
2b5f62a0 | 13099 | fi |
21d1c967 GD |
13100 | fi |
13101 | ||
13102 | if test -z "$wx_cv_lib_gtk"; then | |
13103 | wx_cv_lib_gtk=none | |
13104 | else | |
13105 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
13106 | wx_cv_libs_gtk=$GTK_LIBS | |
13107 | fi | |
a0b9e27f MB |
13108 | |
13109 | ||
5c6fa7d2 | 13110 | fi |
52127426 | 13111 | |
8284b0c5 | 13112 | |
21d1c967 | 13113 | if test "$gtk_version_cached" = 1; then |
a0b9e27f | 13114 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
13115 | fi |
13116 | ||
13117 | case "$wx_cv_lib_gtk" in | |
13118 | 2.0) WXGTK20=1 | |
2b5f62a0 | 13119 | TOOLKIT_VERSION=2 |
21d1c967 GD |
13120 | ;; |
13121 | 1.2.7) WXGTK127=1 | |
13122 | WXGTK12=1 | |
13123 | ;; | |
13124 | 1.2.3) WXGTK12=1 | |
13125 | ;; | |
a0b9e27f | 13126 | *) { echo "configure: error: |
247f5006 VZ |
13127 | Please check that gtk-config is in path, the directory |
13128 | where GTK+ libraries are installed (returned by | |
13129 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
13130 | equivalent variable and GTK+ is version 1.2.3 or above. | |
a0b9e27f | 13131 | " 1>&2; exit 1; } |
21d1c967 GD |
13132 | ;; |
13133 | esac | |
13134 | ||
b13cd66e VZ |
13135 | if test "$WXGTK20" = 1; then |
13136 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 13137 | |
f09359cf VS |
13138 | succeeded=no |
13139 | ||
13140 | if test -z "$PKG_CONFIG"; then | |
13141 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13142 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 13143 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
89e6bf6d | 13144 | echo "configure:13145: checking for $ac_word" >&5 |
a0b9e27f MB |
13145 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
13146 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf | 13147 | else |
a0b9e27f MB |
13148 | case "$PKG_CONFIG" in |
13149 | /*) | |
f09359cf VS |
13150 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
13151 | ;; | |
a0b9e27f MB |
13152 | ?:/*) |
13153 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
13154 | ;; | |
f09359cf | 13155 | *) |
a0b9e27f MB |
13156 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13157 | ac_dummy="$PATH" | |
13158 | for ac_dir in $ac_dummy; do | |
13159 | test -z "$ac_dir" && ac_dir=. | |
13160 | if test -f $ac_dir/$ac_word; then | |
13161 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
13162 | break | |
13163 | fi | |
13164 | done | |
13165 | IFS="$ac_save_ifs" | |
f09359cf VS |
13166 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
13167 | ;; | |
13168 | esac | |
13169 | fi | |
a0b9e27f | 13170 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
f09359cf | 13171 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 13172 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f09359cf | 13173 | else |
a0b9e27f | 13174 | echo "$ac_t""no" 1>&6 |
f09359cf VS |
13175 | fi |
13176 | ||
13177 | fi | |
13178 | ||
13179 | if test "$PKG_CONFIG" = "no" ; then | |
13180 | echo "*** The pkg-config script could not be found. Make sure it is" | |
13181 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
13182 | echo "*** to the full path to pkg-config." | |
13183 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
13184 | else | |
13185 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13186 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
a0b9e27f | 13187 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 |
89e6bf6d | 13188 | echo "configure:13189: checking for pangoft2" >&5 |
f09359cf VS |
13189 | |
13190 | if $PKG_CONFIG --exists "pangoft2" ; then | |
a0b9e27f | 13191 | echo "$ac_t""yes" 1>&6 |
f09359cf VS |
13192 | succeeded=yes |
13193 | ||
a0b9e27f | 13194 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 |
89e6bf6d | 13195 | echo "configure:13196: checking PANGOFT2_CFLAGS" >&5 |
f09359cf | 13196 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
a0b9e27f | 13197 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 |
f09359cf | 13198 | |
a0b9e27f | 13199 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 |
89e6bf6d | 13200 | echo "configure:13201: checking PANGOFT2_LIBS" >&5 |
f09359cf | 13201 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
a0b9e27f | 13202 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 |
f09359cf VS |
13203 | else |
13204 | PANGOFT2_CFLAGS="" | |
13205 | PANGOFT2_LIBS="" | |
a0b9e27f | 13206 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
13207 | ## do set a variable so people can do so. |
13208 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
a0b9e27f | 13209 | |
f09359cf VS |
13210 | fi |
13211 | ||
a0b9e27f MB |
13212 | |
13213 | ||
f09359cf VS |
13214 | else |
13215 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13216 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13217 | fi | |
13218 | fi | |
13219 | ||
13220 | if test $succeeded = yes; then | |
a0b9e27f | 13221 | |
b13cd66e VZ |
13222 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
13223 | LIBS="$LIBS $PANGOFT2_LIBS" | |
a0b9e27f | 13224 | |
f09359cf | 13225 | else |
a0b9e27f MB |
13226 | |
13227 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
b13cd66e | 13228 | wxUSE_PRINTING_ARCHITECTURE="no" |
a0b9e27f MB |
13229 | |
13230 | ||
f09359cf VS |
13231 | fi |
13232 | ||
b13cd66e | 13233 | fi |
2b5f62a0 VZ |
13234 | else |
13235 | if test "$wxUSE_UNICODE" = "yes"; then | |
13236 | echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2 | |
13237 | wxUSE_UNICODE=no | |
13238 | fi | |
13239 | fi | |
13240 | ||
13241 | if test "$USE_DARWIN" != 1; then | |
13242 | for ac_func in poll | |
13243 | do | |
13244 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
89e6bf6d | 13245 | echo "configure:13246: checking for $ac_func" >&5 |
2b5f62a0 VZ |
13246 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13247 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13248 | else | |
13249 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 13250 | #line 13251 "configure" |
2b5f62a0 VZ |
13251 | #include "confdefs.h" |
13252 | /* System header to define __stub macros and hopefully few prototypes, | |
13253 | which can conflict with char $ac_func(); below. */ | |
13254 | #include <assert.h> | |
13255 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13256 | /* We use char because int might match the return type of a gcc2 | |
13257 | builtin and then its argument prototype would still apply. */ | |
13258 | char $ac_func(); | |
13259 | ||
13260 | int main() { | |
13261 | ||
13262 | /* The GNU C library defines this for functions which it implements | |
13263 | to always fail with ENOSYS. Some functions are actually named | |
13264 | something starting with __ and the normal name is an alias. */ | |
13265 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13266 | choke me | |
13267 | #else | |
13268 | $ac_func(); | |
13269 | #endif | |
13270 | ||
13271 | ; return 0; } | |
13272 | EOF | |
89e6bf6d | 13273 | if { (eval echo configure:13274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
13274 | rm -rf conftest* |
13275 | eval "ac_cv_func_$ac_func=yes" | |
13276 | else | |
13277 | echo "configure: failed program was:" >&5 | |
13278 | cat conftest.$ac_ext >&5 | |
13279 | rm -rf conftest* | |
13280 | eval "ac_cv_func_$ac_func=no" | |
13281 | fi | |
13282 | rm -f conftest* | |
13283 | fi | |
13284 | ||
13285 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13286 | echo "$ac_t""yes" 1>&6 | |
13287 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13288 | cat >> confdefs.h <<EOF | |
13289 | #define $ac_tr_func 1 | |
13290 | EOF | |
13291 | ||
13292 | else | |
13293 | echo "$ac_t""no" 1>&6 | |
13294 | fi | |
13295 | done | |
13296 | ||
f09359cf VS |
13297 | fi |
13298 | ||
21d1c967 GD |
13299 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
13300 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
13301 | ||
13302 | AFMINSTALL=afminstall | |
13303 | TOOLKIT=GTK | |
13304 | GUIDIST=GTK_DIST | |
13305 | ||
a0b9e27f | 13306 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
89e6bf6d | 13307 | echo "configure:13308: checking for gdk_im_open in -lgdk" >&5 |
a0b9e27f MB |
13308 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
13309 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13310 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13311 | else |
a0b9e27f | 13312 | ac_save_LIBS="$LIBS" |
21d1c967 | 13313 | LIBS="-lgdk $LIBS" |
a0b9e27f | 13314 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 13315 | #line 13316 "configure" |
90dd450c | 13316 | #include "confdefs.h" |
5c6fa7d2 | 13317 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 13318 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13319 | builtin and then its argument prototype would still apply. */ |
13320 | char gdk_im_open(); | |
13321 | ||
13322 | int main() { | |
13323 | gdk_im_open() | |
13324 | ; return 0; } | |
13325 | EOF | |
89e6bf6d | 13326 | if { (eval echo configure:13327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13327 | rm -rf conftest* |
13328 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13329 | else | |
13330 | echo "configure: failed program was:" >&5 | |
13331 | cat conftest.$ac_ext >&5 | |
13332 | rm -rf conftest* | |
13333 | eval "ac_cv_lib_$ac_lib_var=no" | |
13334 | fi | |
13335 | rm -f conftest* | |
13336 | LIBS="$ac_save_LIBS" | |
13337 | ||
13338 | fi | |
13339 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13340 | echo "$ac_t""yes" 1>&6 | |
13341 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13342 | #define HAVE_XIM 1 |
a0b9e27f | 13343 | EOF |
21d1c967 | 13344 | |
a0b9e27f MB |
13345 | else |
13346 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13347 | fi |
1e6feb95 | 13348 | |
21d1c967 | 13349 | fi |
1e6feb95 | 13350 | |
21d1c967 | 13351 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 13352 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
89e6bf6d | 13353 | echo "configure:13354: checking for SciTech MGL library" >&5 |
21d1c967 | 13354 | if test "x$MGL_ROOT" = x ; then |
a0b9e27f MB |
13355 | echo "$ac_t""not found" 1>&6 |
13356 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 13357 | else |
a0b9e27f | 13358 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
13359 | fi |
13360 | ||
13361 | case "${host}" in | |
13362 | *-*-linux* ) | |
2b5f62a0 | 13363 | mgl_os="linux/gcc/glibc*" |
21d1c967 GD |
13364 | ;; |
13365 | *-pc-msdosdjgpp ) | |
13366 | mgl_os=dos32/dj2 | |
13367 | ;; | |
13368 | *) | |
a0b9e27f | 13369 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 13370 | esac |
1e6feb95 | 13371 | |
21d1c967 | 13372 | mgl_lib_type="" |
3fcdd07b | 13373 | |
21d1c967 GD |
13374 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
13375 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
13376 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
13377 | mgl_lib_type=debug | |
13378 | fi | |
13379 | fi | |
13380 | if test "x$mgl_lib_type" = x ; then | |
13381 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
13382 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
13383 | mgl_lib_type=release | |
13384 | else | |
a0b9e27f | 13385 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } |
21d1c967 | 13386 | fi |
90dd450c | 13387 | fi |
2224580a | 13388 | |
1d1b75ac VZ |
13389 | wxUSE_UNIVERSAL="yes" |
13390 | ||
21d1c967 GD |
13391 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
13392 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
13393 | ||
90dd450c | 13394 | AFMINSTALL=afminstall |
21d1c967 GD |
13395 | TOOLKIT=MGL |
13396 | GUIDIST=MGL_DIST | |
13397 | fi | |
dad6c0ea | 13398 | |
21d1c967 | 13399 | if test "$wxUSE_MICROWIN" = 1; then |
a0b9e27f | 13400 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
89e6bf6d | 13401 | echo "configure:13402: checking for MicroWindows" >&5 |
21d1c967 | 13402 | if test "x$MICROWINDOWS" = x ; then |
a0b9e27f MB |
13403 | echo "$ac_t""not found" 1>&6 |
13404 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 13405 | else |
a0b9e27f | 13406 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 13407 | fi |
f6bcfd97 | 13408 | |
21d1c967 | 13409 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
a0b9e27f | 13410 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 13411 | else |
a0b9e27f | 13412 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 13413 | fi |
0b2effe9 | 13414 | |
21d1c967 GD |
13415 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
13416 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
13417 | ||
1d1b75ac VZ |
13418 | wxUSE_UNIVERSAL="yes" |
13419 | ||
21d1c967 GD |
13420 | AFMINSTALL=afminstall |
13421 | TOOLKIT=MICROWIN | |
13422 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
13423 | |
13424 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 13425 | fi |
f6bcfd97 | 13426 | |
21d1c967 | 13427 | if test "$wxUSE_X11" = 1; then |
a0b9e27f MB |
13428 | # If we find X, set shell vars x_includes and x_libraries to the |
13429 | # paths, otherwise set no_x=yes. | |
13430 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
13431 | # --without-x overrides everything else, but does not touch the cache. | |
13432 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
89e6bf6d | 13433 | echo "configure:13434: checking for X" >&5 |
d8356fa3 | 13434 | |
21d1c967 GD |
13435 | # Check whether --with-x or --without-x was given. |
13436 | if test "${with_x+set}" = set; then | |
13437 | withval="$with_x" | |
a0b9e27f MB |
13438 | : |
13439 | fi | |
2224580a | 13440 | |
21d1c967 GD |
13441 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
13442 | if test "x$with_x" = xno; then | |
13443 | # The user explicitly disabled X. | |
13444 | have_x=disabled | |
13445 | else | |
13446 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
13447 | # Both variables are already set. | |
13448 | have_x=yes | |
13449 | else | |
a0b9e27f MB |
13450 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
13451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
13452 | else |
13453 | # One or both of the vars are not set, and there is no cached value. | |
a0b9e27f MB |
13454 | ac_x_includes=NO ac_x_libraries=NO |
13455 | rm -fr conftestdir | |
13456 | if mkdir conftestdir; then | |
13457 | cd conftestdir | |
21d1c967 | 13458 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
a0b9e27f | 13459 | cat > Imakefile <<'EOF' |
21d1c967 GD |
13460 | acfindx: |
13461 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
a0b9e27f | 13462 | EOF |
21d1c967 GD |
13463 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
13464 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13465 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
13466 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
13467 | for ac_extension in a so sl; do | |
13468 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
a0b9e27f | 13469 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
13470 | ac_im_usrlibdir=$ac_im_libdir; break |
13471 | fi | |
13472 | done | |
13473 | # Screen out bogus values from the imake configuration. They are | |
13474 | # bogus both because they are the default anyway, and because | |
13475 | # using them would break gcc on systems where it needs fixed includes. | |
a0b9e27f | 13476 | case "$ac_im_incroot" in |
21d1c967 | 13477 | /usr/include) ;; |
a0b9e27f | 13478 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 13479 | esac |
a0b9e27f | 13480 | case "$ac_im_usrlibdir" in |
21d1c967 | 13481 | /usr/lib | /lib) ;; |
a0b9e27f | 13482 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
13483 | esac |
13484 | fi | |
13485 | cd .. | |
a0b9e27f | 13486 | rm -fr conftestdir |
21d1c967 | 13487 | fi |
10f2d63a | 13488 | |
a0b9e27f MB |
13489 | if test "$ac_x_includes" = NO; then |
13490 | # Guess where to find include files, by looking for this one X11 .h file. | |
13491 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
13492 | ||
21d1c967 | 13493 | # First, try using that file with no special directory specified. |
a0b9e27f | 13494 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 13495 | #line 13496 "configure" |
21d1c967 | 13496 | #include "confdefs.h" |
a0b9e27f MB |
13497 | #include <$x_direct_test_include> |
13498 | EOF | |
13499 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 13500 | { (eval echo configure:13501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
13501 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13502 | if test -z "$ac_err"; then | |
13503 | rm -rf conftest* | |
21d1c967 GD |
13504 | # We can compile using X headers with no special include directory. |
13505 | ac_x_includes= | |
90dd450c | 13506 | else |
a0b9e27f MB |
13507 | echo "$ac_err" >&5 |
13508 | echo "configure: failed program was:" >&5 | |
90dd450c | 13509 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
13510 | rm -rf conftest* |
13511 | # Look for the header file in a standard set of common directories. | |
13512 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13513 | for ac_dir in \ | |
13514 | /usr/X11/include \ | |
13515 | /usr/X11R6/include \ | |
13516 | /usr/X11R5/include \ | |
13517 | /usr/X11R4/include \ | |
13518 | \ | |
13519 | /usr/include/X11 \ | |
13520 | /usr/include/X11R6 \ | |
13521 | /usr/include/X11R5 \ | |
13522 | /usr/include/X11R4 \ | |
13523 | \ | |
13524 | /usr/local/X11/include \ | |
13525 | /usr/local/X11R6/include \ | |
13526 | /usr/local/X11R5/include \ | |
13527 | /usr/local/X11R4/include \ | |
13528 | \ | |
13529 | /usr/local/include/X11 \ | |
13530 | /usr/local/include/X11R6 \ | |
13531 | /usr/local/include/X11R5 \ | |
13532 | /usr/local/include/X11R4 \ | |
13533 | \ | |
13534 | /usr/X386/include \ | |
13535 | /usr/x386/include \ | |
13536 | /usr/XFree86/include/X11 \ | |
13537 | \ | |
13538 | /usr/include \ | |
13539 | /usr/local/include \ | |
13540 | /usr/unsupported/include \ | |
13541 | /usr/athena/include \ | |
13542 | /usr/local/x11r5/include \ | |
13543 | /usr/lpp/Xamples/include \ | |
13544 | \ | |
13545 | /usr/openwin/include \ | |
13546 | /usr/openwin/share/include \ | |
13547 | ; \ | |
13548 | do | |
13549 | if test -r "$ac_dir/$x_direct_test_include"; then | |
13550 | ac_x_includes=$ac_dir | |
13551 | break | |
13552 | fi | |
13553 | done | |
3a922bb4 | 13554 | fi |
a0b9e27f MB |
13555 | rm -f conftest* |
13556 | fi # $ac_x_includes = NO | |
10f2d63a | 13557 | |
a0b9e27f | 13558 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 13559 | # Check for the libraries. |
a0b9e27f MB |
13560 | |
13561 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
13562 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
13563 | ||
21d1c967 GD |
13564 | # See if we find them without any special options. |
13565 | # Don't add to $LIBS permanently. | |
a0b9e27f MB |
13566 | ac_save_LIBS="$LIBS" |
13567 | LIBS="-l$x_direct_test_library $LIBS" | |
13568 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 13569 | #line 13570 "configure" |
3a922bb4 | 13570 | #include "confdefs.h" |
a0b9e27f MB |
13571 | |
13572 | int main() { | |
13573 | ${x_direct_test_function}() | |
13574 | ; return 0; } | |
13575 | EOF | |
89e6bf6d | 13576 | if { (eval echo configure:13577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13577 | rm -rf conftest* |
13578 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
13579 | # We can link X programs with no special library path. |
13580 | ac_x_libraries= | |
3a922bb4 | 13581 | else |
a0b9e27f MB |
13582 | echo "configure: failed program was:" >&5 |
13583 | cat conftest.$ac_ext >&5 | |
13584 | rm -rf conftest* | |
13585 | LIBS="$ac_save_LIBS" | |
13586 | # First see if replacing the include by lib works. | |
13587 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13588 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
13589 | /usr/X11/lib \ | |
13590 | /usr/X11R6/lib \ | |
13591 | /usr/X11R5/lib \ | |
13592 | /usr/X11R4/lib \ | |
13593 | \ | |
13594 | /usr/lib/X11 \ | |
13595 | /usr/lib/X11R6 \ | |
13596 | /usr/lib/X11R5 \ | |
13597 | /usr/lib/X11R4 \ | |
13598 | \ | |
13599 | /usr/local/X11/lib \ | |
13600 | /usr/local/X11R6/lib \ | |
13601 | /usr/local/X11R5/lib \ | |
13602 | /usr/local/X11R4/lib \ | |
13603 | \ | |
13604 | /usr/local/lib/X11 \ | |
13605 | /usr/local/lib/X11R6 \ | |
13606 | /usr/local/lib/X11R5 \ | |
13607 | /usr/local/lib/X11R4 \ | |
13608 | \ | |
13609 | /usr/X386/lib \ | |
13610 | /usr/x386/lib \ | |
13611 | /usr/XFree86/lib/X11 \ | |
13612 | \ | |
13613 | /usr/lib \ | |
13614 | /usr/local/lib \ | |
13615 | /usr/unsupported/lib \ | |
13616 | /usr/athena/lib \ | |
13617 | /usr/local/x11r5/lib \ | |
13618 | /usr/lpp/Xamples/lib \ | |
13619 | /lib/usr/lib/X11 \ | |
13620 | \ | |
13621 | /usr/openwin/lib \ | |
13622 | /usr/openwin/share/lib \ | |
13623 | ; \ | |
21d1c967 GD |
13624 | do |
13625 | for ac_extension in a so sl; do | |
a0b9e27f | 13626 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
13627 | ac_x_libraries=$ac_dir |
13628 | break 2 | |
13629 | fi | |
13630 | done | |
13631 | done | |
3a922bb4 | 13632 | fi |
a0b9e27f MB |
13633 | rm -f conftest* |
13634 | fi # $ac_x_libraries = NO | |
90dd450c | 13635 | |
a0b9e27f | 13636 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
13637 | # Didn't find X anywhere. Cache the known absence of X. |
13638 | ac_cv_have_x="have_x=no" | |
13639 | else | |
13640 | # Record where we found X for the cache. | |
13641 | ac_cv_have_x="have_x=yes \ | |
13642 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 13643 | fi |
21d1c967 GD |
13644 | fi |
13645 | fi | |
13646 | eval "$ac_cv_have_x" | |
13647 | fi # $with_x != no | |
90dd450c | 13648 | |
21d1c967 | 13649 | if test "$have_x" != yes; then |
a0b9e27f | 13650 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
13651 | no_x=yes |
13652 | else | |
13653 | # If each of the values was on the command line, it overrides each guess. | |
13654 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13655 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13656 | # Update the cache value to reflect the command line values. | |
13657 | ac_cv_have_x="have_x=yes \ | |
13658 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
a0b9e27f | 13659 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 13660 | fi |
90dd450c | 13661 | |
21d1c967 | 13662 | if test "$no_x" = yes; then |
90dd450c | 13663 | # Not all programs may use this symbol, but it does not hurt to define it. |
a0b9e27f | 13664 | cat >> confdefs.h <<\EOF |
90dd450c | 13665 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 13666 | EOF |
90dd450c VZ |
13667 | |
13668 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13669 | else | |
13670 | if test -n "$x_includes"; then | |
13671 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13672 | fi |
3a922bb4 | 13673 | |
90dd450c VZ |
13674 | # It would also be nice to do this for all -L options, not just this one. |
13675 | if test -n "$x_libraries"; then | |
13676 | X_LIBS="$X_LIBS -L$x_libraries" | |
13677 | # For Solaris; some versions of Sun CC require a space after -R and | |
13678 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 13679 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 13680 | "SunOS 5"*) |
a0b9e27f | 13681 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
89e6bf6d | 13682 | echo "configure:13683: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
13683 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13684 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 13685 | #line 13686 "configure" |
90dd450c VZ |
13686 | #include "confdefs.h" |
13687 | ||
a0b9e27f | 13688 | int main() { |
90dd450c | 13689 | |
a0b9e27f MB |
13690 | ; return 0; } |
13691 | EOF | |
89e6bf6d | 13692 | if { (eval echo configure:13693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13693 | rm -rf conftest* |
90dd450c | 13694 | ac_R_nospace=yes |
3a922bb4 | 13695 | else |
a0b9e27f MB |
13696 | echo "configure: failed program was:" >&5 |
13697 | cat conftest.$ac_ext >&5 | |
13698 | rm -rf conftest* | |
13699 | ac_R_nospace=no | |
3a922bb4 | 13700 | fi |
a0b9e27f | 13701 | rm -f conftest* |
90dd450c | 13702 | if test $ac_R_nospace = yes; then |
a0b9e27f | 13703 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
13704 | X_LIBS="$X_LIBS -R$x_libraries" |
13705 | else | |
13706 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 13707 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 13708 | #line 13709 "configure" |
90dd450c | 13709 | #include "confdefs.h" |
3a922bb4 | 13710 | |
a0b9e27f | 13711 | int main() { |
6f754473 | 13712 | |
a0b9e27f MB |
13713 | ; return 0; } |
13714 | EOF | |
89e6bf6d | 13715 | if { (eval echo configure:13716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13716 | rm -rf conftest* |
90dd450c VZ |
13717 | ac_R_space=yes |
13718 | else | |
a0b9e27f MB |
13719 | echo "configure: failed program was:" >&5 |
13720 | cat conftest.$ac_ext >&5 | |
13721 | rm -rf conftest* | |
13722 | ac_R_space=no | |
90dd450c | 13723 | fi |
a0b9e27f | 13724 | rm -f conftest* |
90dd450c | 13725 | if test $ac_R_space = yes; then |
a0b9e27f | 13726 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13727 | X_LIBS="$X_LIBS -R $x_libraries" |
13728 | else | |
a0b9e27f | 13729 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13730 | fi |
13731 | fi | |
a0b9e27f | 13732 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13733 | esac |
13734 | fi | |
13735 | ||
13736 | # Check for system-dependent libraries X programs must link with. | |
13737 | # Do this before checking for the system-independent R6 libraries | |
13738 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13739 | |
90dd450c VZ |
13740 | if test "$ISC" = yes; then |
13741 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13742 | else | |
a0b9e27f MB |
13743 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13744 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13745 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 13746 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
89e6bf6d | 13747 | echo "configure:13748: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
13748 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13749 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13750 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 13751 | else |
a0b9e27f | 13752 | ac_save_LIBS="$LIBS" |
247f5006 | 13753 | LIBS="-ldnet $LIBS" |
a0b9e27f | 13754 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 13755 | #line 13756 "configure" |
247f5006 | 13756 | #include "confdefs.h" |
247f5006 | 13757 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 13758 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13759 | builtin and then its argument prototype would still apply. */ |
13760 | char dnet_ntoa(); | |
13761 | ||
13762 | int main() { | |
13763 | dnet_ntoa() | |
13764 | ; return 0; } | |
13765 | EOF | |
89e6bf6d | 13766 | if { (eval echo configure:13767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13767 | rm -rf conftest* |
13768 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13769 | else | |
13770 | echo "configure: failed program was:" >&5 | |
13771 | cat conftest.$ac_ext >&5 | |
13772 | rm -rf conftest* | |
13773 | eval "ac_cv_lib_$ac_lib_var=no" | |
13774 | fi | |
13775 | rm -f conftest* | |
13776 | LIBS="$ac_save_LIBS" | |
13777 | ||
13778 | fi | |
13779 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13780 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13781 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
13782 | else |
13783 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13784 | fi |
13785 | ||
90dd450c | 13786 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 13787 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
89e6bf6d | 13788 | echo "configure:13789: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
13789 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13790 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13791 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13792 | else |
a0b9e27f | 13793 | ac_save_LIBS="$LIBS" |
90dd450c | 13794 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 13795 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 13796 | #line 13797 "configure" |
90dd450c VZ |
13797 | #include "confdefs.h" |
13798 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13799 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13800 | builtin and then its argument prototype would still apply. */ |
13801 | char dnet_ntoa(); | |
13802 | ||
13803 | int main() { | |
13804 | dnet_ntoa() | |
13805 | ; return 0; } | |
13806 | EOF | |
89e6bf6d | 13807 | if { (eval echo configure:13808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13808 | rm -rf conftest* |
13809 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13810 | else | |
13811 | echo "configure: failed program was:" >&5 | |
13812 | cat conftest.$ac_ext >&5 | |
13813 | rm -rf conftest* | |
13814 | eval "ac_cv_lib_$ac_lib_var=no" | |
13815 | fi | |
13816 | rm -f conftest* | |
13817 | LIBS="$ac_save_LIBS" | |
13818 | ||
13819 | fi | |
13820 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13821 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13822 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
13823 | else |
13824 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13825 | fi |
13826 | ||
90dd450c | 13827 | fi |
978f1259 | 13828 | |
90dd450c VZ |
13829 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13830 | # to get the SysV transport functions. | |
a0b9e27f | 13831 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
13832 | # needs -lnsl. |
13833 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
13834 | # on Irix 5.2, according to dickey@clark.net. |
13835 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
89e6bf6d | 13836 | echo "configure:13837: checking for gethostbyname" >&5 |
a0b9e27f MB |
13837 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13838 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13839 | else | |
13840 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 13841 | #line 13842 "configure" |
90dd450c VZ |
13842 | #include "confdefs.h" |
13843 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13844 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
13845 | #include <assert.h> |
13846 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13847 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13848 | builtin and then its argument prototype would still apply. */ |
13849 | char gethostbyname(); | |
13850 | ||
13851 | int main() { | |
13852 | ||
90dd450c VZ |
13853 | /* The GNU C library defines this for functions which it implements |
13854 | to always fail with ENOSYS. Some functions are actually named | |
13855 | something starting with __ and the normal name is an alias. */ | |
13856 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13857 | choke me | |
13858 | #else | |
a0b9e27f | 13859 | gethostbyname(); |
90dd450c | 13860 | #endif |
978f1259 | 13861 | |
a0b9e27f MB |
13862 | ; return 0; } |
13863 | EOF | |
89e6bf6d | 13864 | if { (eval echo configure:13865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13865 | rm -rf conftest* |
13866 | eval "ac_cv_func_gethostbyname=yes" | |
13867 | else | |
13868 | echo "configure: failed program was:" >&5 | |
13869 | cat conftest.$ac_ext >&5 | |
13870 | rm -rf conftest* | |
13871 | eval "ac_cv_func_gethostbyname=no" | |
13872 | fi | |
13873 | rm -f conftest* | |
13874 | fi | |
13875 | ||
13876 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
13877 | echo "$ac_t""yes" 1>&6 | |
13878 | : | |
13879 | else | |
13880 | echo "$ac_t""no" 1>&6 | |
13881 | fi | |
698dcdb6 | 13882 | |
90dd450c | 13883 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 13884 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
89e6bf6d | 13885 | echo "configure:13886: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
13886 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13887 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13889 | else |
a0b9e27f | 13890 | ac_save_LIBS="$LIBS" |
90dd450c | 13891 | LIBS="-lnsl $LIBS" |
a0b9e27f | 13892 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 13893 | #line 13894 "configure" |
90dd450c VZ |
13894 | #include "confdefs.h" |
13895 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13896 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13897 | builtin and then its argument prototype would still apply. */ |
13898 | char gethostbyname(); | |
5c6fa7d2 | 13899 | |
a0b9e27f MB |
13900 | int main() { |
13901 | gethostbyname() | |
13902 | ; return 0; } | |
13903 | EOF | |
89e6bf6d | 13904 | if { (eval echo configure:13905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13905 | rm -rf conftest* |
13906 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 13907 | else |
a0b9e27f MB |
13908 | echo "configure: failed program was:" >&5 |
13909 | cat conftest.$ac_ext >&5 | |
13910 | rm -rf conftest* | |
13911 | eval "ac_cv_lib_$ac_lib_var=no" | |
13912 | fi | |
13913 | rm -f conftest* | |
13914 | LIBS="$ac_save_LIBS" | |
247f5006 | 13915 | |
a0b9e27f MB |
13916 | fi |
13917 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13918 | echo "$ac_t""yes" 1>&6 | |
13919 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13920 | else | |
13921 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13922 | fi |
b12915c1 | 13923 | |
90dd450c VZ |
13924 | fi |
13925 | ||
13926 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13927 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13928 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
13929 | # on later versions), says simon@lia.di.epfl.ch: it contains |
13930 | # gethostby* variants that don't use the nameserver (or something). | |
13931 | # -lsocket must be given before -lnsl if both are needed. | |
13932 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13933 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
89e6bf6d | 13934 | echo "configure:13935: checking for connect" >&5 |
a0b9e27f MB |
13935 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
13936 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13937 | else | |
13938 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 13939 | #line 13940 "configure" |
55e80573 | 13940 | #include "confdefs.h" |
90dd450c | 13941 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 13942 | which can conflict with char connect(); below. */ |
90dd450c VZ |
13943 | #include <assert.h> |
13944 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13945 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13946 | builtin and then its argument prototype would still apply. */ |
13947 | char connect(); | |
13948 | ||
13949 | int main() { | |
13950 | ||
90dd450c VZ |
13951 | /* The GNU C library defines this for functions which it implements |
13952 | to always fail with ENOSYS. Some functions are actually named | |
13953 | something starting with __ and the normal name is an alias. */ | |
13954 | #if defined (__stub_connect) || defined (__stub___connect) | |
13955 | choke me | |
13956 | #else | |
a0b9e27f | 13957 | connect(); |
90dd450c VZ |
13958 | #endif |
13959 | ||
a0b9e27f MB |
13960 | ; return 0; } |
13961 | EOF | |
89e6bf6d | 13962 | if { (eval echo configure:13963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13963 | rm -rf conftest* |
13964 | eval "ac_cv_func_connect=yes" | |
13965 | else | |
13966 | echo "configure: failed program was:" >&5 | |
13967 | cat conftest.$ac_ext >&5 | |
13968 | rm -rf conftest* | |
13969 | eval "ac_cv_func_connect=no" | |
13970 | fi | |
13971 | rm -f conftest* | |
13972 | fi | |
13973 | ||
13974 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
13975 | echo "$ac_t""yes" 1>&6 | |
13976 | : | |
13977 | else | |
13978 | echo "$ac_t""no" 1>&6 | |
13979 | fi | |
55e80573 | 13980 | |
90dd450c | 13981 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 13982 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
89e6bf6d | 13983 | echo "configure:13984: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
13984 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
13985 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13986 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13987 | else |
a0b9e27f | 13988 | ac_save_LIBS="$LIBS" |
90dd450c | 13989 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 13990 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 13991 | #line 13992 "configure" |
90dd450c VZ |
13992 | #include "confdefs.h" |
13993 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13994 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13995 | builtin and then its argument prototype would still apply. */ |
13996 | char connect(); | |
13997 | ||
13998 | int main() { | |
13999 | connect() | |
14000 | ; return 0; } | |
14001 | EOF | |
89e6bf6d | 14002 | if { (eval echo configure:14003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14003 | rm -rf conftest* |
14004 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14005 | else | |
14006 | echo "configure: failed program was:" >&5 | |
14007 | cat conftest.$ac_ext >&5 | |
14008 | rm -rf conftest* | |
14009 | eval "ac_cv_lib_$ac_lib_var=no" | |
14010 | fi | |
14011 | rm -f conftest* | |
14012 | LIBS="$ac_save_LIBS" | |
14013 | ||
14014 | fi | |
14015 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14016 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14017 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
14018 | else |
14019 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14020 | fi |
77e13408 | 14021 | |
90dd450c | 14022 | fi |
25d0687a | 14023 | |
a0b9e27f MB |
14024 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14025 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
89e6bf6d | 14026 | echo "configure:14027: checking for remove" >&5 |
a0b9e27f MB |
14027 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14028 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14029 | else |
a0b9e27f | 14030 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 14031 | #line 14032 "configure" |
90dd450c VZ |
14032 | #include "confdefs.h" |
14033 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14034 | which can conflict with char remove(); below. */ |
90dd450c VZ |
14035 | #include <assert.h> |
14036 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14037 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14038 | builtin and then its argument prototype would still apply. */ |
14039 | char remove(); | |
14040 | ||
14041 | int main() { | |
14042 | ||
90dd450c VZ |
14043 | /* The GNU C library defines this for functions which it implements |
14044 | to always fail with ENOSYS. Some functions are actually named | |
14045 | something starting with __ and the normal name is an alias. */ | |
14046 | #if defined (__stub_remove) || defined (__stub___remove) | |
14047 | choke me | |
14048 | #else | |
a0b9e27f | 14049 | remove(); |
90dd450c | 14050 | #endif |
55e80573 | 14051 | |
a0b9e27f MB |
14052 | ; return 0; } |
14053 | EOF | |
89e6bf6d | 14054 | if { (eval echo configure:14055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14055 | rm -rf conftest* |
14056 | eval "ac_cv_func_remove=yes" | |
14057 | else | |
14058 | echo "configure: failed program was:" >&5 | |
14059 | cat conftest.$ac_ext >&5 | |
14060 | rm -rf conftest* | |
14061 | eval "ac_cv_func_remove=no" | |
14062 | fi | |
14063 | rm -f conftest* | |
14064 | fi | |
14065 | ||
14066 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14067 | echo "$ac_t""yes" 1>&6 | |
14068 | : | |
14069 | else | |
14070 | echo "$ac_t""no" 1>&6 | |
14071 | fi | |
10f2d63a | 14072 | |
90dd450c | 14073 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 14074 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
89e6bf6d | 14075 | echo "configure:14076: checking for remove in -lposix" >&5 |
a0b9e27f MB |
14076 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14077 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14079 | else |
a0b9e27f | 14080 | ac_save_LIBS="$LIBS" |
90dd450c | 14081 | LIBS="-lposix $LIBS" |
a0b9e27f | 14082 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 14083 | #line 14084 "configure" |
90dd450c VZ |
14084 | #include "confdefs.h" |
14085 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14086 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14087 | builtin and then its argument prototype would still apply. */ |
14088 | char remove(); | |
14089 | ||
14090 | int main() { | |
14091 | remove() | |
14092 | ; return 0; } | |
14093 | EOF | |
89e6bf6d | 14094 | if { (eval echo configure:14095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14095 | rm -rf conftest* |
14096 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14097 | else | |
14098 | echo "configure: failed program was:" >&5 | |
14099 | cat conftest.$ac_ext >&5 | |
14100 | rm -rf conftest* | |
14101 | eval "ac_cv_lib_$ac_lib_var=no" | |
14102 | fi | |
14103 | rm -f conftest* | |
14104 | LIBS="$ac_save_LIBS" | |
14105 | ||
14106 | fi | |
14107 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14108 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14109 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
14110 | else |
14111 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14112 | fi |
f6bcfd97 | 14113 | |
6fa882bd RR |
14114 | fi |
14115 | ||
90dd450c | 14116 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 14117 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
89e6bf6d | 14118 | echo "configure:14119: checking for shmat" >&5 |
a0b9e27f MB |
14119 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14120 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14121 | else |
a0b9e27f | 14122 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 14123 | #line 14124 "configure" |
90dd450c VZ |
14124 | #include "confdefs.h" |
14125 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14126 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
14127 | #include <assert.h> |
14128 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14129 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14130 | builtin and then its argument prototype would still apply. */ |
14131 | char shmat(); | |
14132 | ||
14133 | int main() { | |
14134 | ||
90dd450c VZ |
14135 | /* The GNU C library defines this for functions which it implements |
14136 | to always fail with ENOSYS. Some functions are actually named | |
14137 | something starting with __ and the normal name is an alias. */ | |
14138 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14139 | choke me | |
14140 | #else | |
a0b9e27f | 14141 | shmat(); |
90dd450c | 14142 | #endif |
10f2d63a | 14143 | |
a0b9e27f MB |
14144 | ; return 0; } |
14145 | EOF | |
89e6bf6d | 14146 | if { (eval echo configure:14147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14147 | rm -rf conftest* |
14148 | eval "ac_cv_func_shmat=yes" | |
14149 | else | |
14150 | echo "configure: failed program was:" >&5 | |
14151 | cat conftest.$ac_ext >&5 | |
14152 | rm -rf conftest* | |
14153 | eval "ac_cv_func_shmat=no" | |
14154 | fi | |
14155 | rm -f conftest* | |
14156 | fi | |
14157 | ||
14158 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14159 | echo "$ac_t""yes" 1>&6 | |
14160 | : | |
14161 | else | |
14162 | echo "$ac_t""no" 1>&6 | |
14163 | fi | |
d08b457b | 14164 | |
90dd450c | 14165 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 14166 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
89e6bf6d | 14167 | echo "configure:14168: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
14168 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14169 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 14171 | else |
a0b9e27f | 14172 | ac_save_LIBS="$LIBS" |
90dd450c | 14173 | LIBS="-lipc $LIBS" |
a0b9e27f | 14174 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 14175 | #line 14176 "configure" |
90dd450c | 14176 | #include "confdefs.h" |
8284b0c5 | 14177 | /* Override any gcc2 internal prototype to avoid an error. */ |
90dd450c | 14178 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14179 | builtin and then its argument prototype would still apply. */ |
14180 | char shmat(); | |
14181 | ||
14182 | int main() { | |
14183 | shmat() | |
14184 | ; return 0; } | |
14185 | EOF | |
89e6bf6d | 14186 | if { (eval echo configure:14187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14187 | rm -rf conftest* |
14188 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14189 | else | |
14190 | echo "configure: failed program was:" >&5 | |
14191 | cat conftest.$ac_ext >&5 | |
14192 | rm -rf conftest* | |
14193 | eval "ac_cv_lib_$ac_lib_var=no" | |
14194 | fi | |
14195 | rm -f conftest* | |
14196 | LIBS="$ac_save_LIBS" | |
14197 | ||
14198 | fi | |
14199 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14200 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14201 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
14202 | else |
14203 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
14204 | fi |
14205 | ||
d558c907 | 14206 | fi |
90dd450c | 14207 | fi |
3a922bb4 | 14208 | |
90dd450c | 14209 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 14210 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
14211 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14212 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14213 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14214 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14215 | # These have to be linked with before -lX11, unlike the other | |
14216 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
14217 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14218 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
89e6bf6d | 14219 | echo "configure:14220: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
14220 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14221 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14222 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14223 | else | |
14224 | ac_save_LIBS="$LIBS" | |
f09359cf | 14225 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14226 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 14227 | #line 14228 "configure" |
9cfadba2 | 14228 | #include "confdefs.h" |
90dd450c VZ |
14229 | /* Override any gcc2 internal prototype to avoid an error. */ |
14230 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14231 | builtin and then its argument prototype would still apply. */ |
14232 | char IceConnectionNumber(); | |
14233 | ||
14234 | int main() { | |
14235 | IceConnectionNumber() | |
14236 | ; return 0; } | |
14237 | EOF | |
89e6bf6d | 14238 | if { (eval echo configure:14239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14239 | rm -rf conftest* |
14240 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14241 | else | |
14242 | echo "configure: failed program was:" >&5 | |
14243 | cat conftest.$ac_ext >&5 | |
14244 | rm -rf conftest* | |
14245 | eval "ac_cv_lib_$ac_lib_var=no" | |
14246 | fi | |
14247 | rm -f conftest* | |
14248 | LIBS="$ac_save_LIBS" | |
14249 | ||
14250 | fi | |
14251 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14252 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14253 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
14254 | else |
14255 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 14256 | fi |
10f2d63a | 14257 | |
a0b9e27f | 14258 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
14259 | |
14260 | fi | |
14261 | ||
8284b0c5 | 14262 | |
90dd450c | 14263 | if test "$no_x" = "yes"; then |
a0b9e27f | 14264 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
14265 | fi |
14266 | ||
14267 | GUI_TK_LIBRARY="$X_LIBS" | |
14268 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14269 | AFMINSTALL=afminstall | |
14270 | COMPILED_X_PROGRAM=0 | |
14271 | ||
21d1c967 | 14272 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 14273 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
89e6bf6d | 14274 | echo "configure:14275: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 | 14275 | if test "x$MICROWIN" = x ; then |
a0b9e27f MB |
14276 | echo "$ac_t""not found" 1>&6 |
14277 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 14278 | else |
a0b9e27f MB |
14279 | echo "$ac_t""$MICROWIN" 1>&6 |
14280 | cat >> confdefs.h <<\EOF | |
21d1c967 | 14281 | #define wxUSE_NANOX 1 |
a0b9e27f | 14282 | EOF |
21d1c967 | 14283 | |
90dd450c VZ |
14284 | fi |
14285 | fi | |
14286 | ||
14287 | xpm_link= | |
a0b9e27f | 14288 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
89e6bf6d | 14289 | echo "configure:14290: checking for Xpm library" >&5 |
a0b9e27f | 14290 | |
90dd450c | 14291 | ac_find_libraries= |
2b5f62a0 | 14292 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
14293 | do |
14294 | for ac_extension in a so sl dylib; do | |
14295 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14296 | ac_find_libraries=$ac_dir | |
14297 | break 2 | |
14298 | fi | |
14299 | done | |
14300 | done | |
14301 | ||
14302 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14303 | |
90dd450c VZ |
14304 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14305 | result=$? | |
14306 | if test $result = 0; then | |
14307 | ac_path_to_link="" | |
14308 | else | |
14309 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 14310 | fi |
90dd450c | 14311 | |
21d1c967 GD |
14312 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
14313 | xpm_link=" -lXpm" | |
a0b9e27f | 14314 | cat >> confdefs.h <<\EOF |
21d1c967 | 14315 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14316 | EOF |
90dd450c | 14317 | |
a0b9e27f | 14318 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14319 | else |
a0b9e27f | 14320 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 14321 | #line 14322 "configure" |
21d1c967 | 14322 | #include "confdefs.h" |
90dd450c | 14323 | |
21d1c967 | 14324 | #include <X11/xpm.h> |
a0b9e27f MB |
14325 | |
14326 | int main() { | |
6f72b082 | 14327 | |
21d1c967 GD |
14328 | int version; |
14329 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
14330 | |
14331 | ; return 0; } | |
14332 | EOF | |
89e6bf6d | 14333 | if { (eval echo configure:14334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14334 | rm -rf conftest* |
14335 | ||
21d1c967 | 14336 | xpm_link=" -lXpm" |
a0b9e27f | 14337 | cat >> confdefs.h <<\EOF |
21d1c967 | 14338 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14339 | EOF |
90dd450c | 14340 | |
a0b9e27f | 14341 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14342 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 14343 | |
21d1c967 | 14344 | else |
a0b9e27f MB |
14345 | echo "configure: failed program was:" >&5 |
14346 | cat conftest.$ac_ext >&5 | |
14347 | rm -rf conftest* | |
14348 | ||
14349 | echo "$ac_t""no" 1>&6 | |
14350 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14351 | ||
14352 | ||
6f72b082 | 14353 | fi |
a0b9e27f | 14354 | rm -f conftest* |
21d1c967 | 14355 | fi |
90dd450c | 14356 | |
2b5f62a0 VZ |
14357 | if test "$wxUSE_UNICODE" = "yes"; then |
14358 | ||
14359 | succeeded=no | |
90dd450c | 14360 | |
2b5f62a0 VZ |
14361 | if test -z "$PKG_CONFIG"; then |
14362 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14363 | set dummy pkg-config; ac_word=$2 | |
14364 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
89e6bf6d | 14365 | echo "configure:14366: checking for $ac_word" >&5 |
2b5f62a0 | 14366 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
a0b9e27f MB |
14367 | echo $ac_n "(cached) $ac_c" 1>&6 |
14368 | else | |
2b5f62a0 VZ |
14369 | case "$PKG_CONFIG" in |
14370 | /*) | |
14371 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14372 | ;; | |
14373 | ?:/*) | |
14374 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14375 | ;; | |
14376 | *) | |
14377 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14378 | ac_dummy="$PATH" | |
14379 | for ac_dir in $ac_dummy; do | |
14380 | test -z "$ac_dir" && ac_dir=. | |
14381 | if test -f $ac_dir/$ac_word; then | |
14382 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14383 | break | |
14384 | fi | |
14385 | done | |
14386 | IFS="$ac_save_ifs" | |
14387 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14388 | ;; | |
14389 | esac | |
14390 | fi | |
14391 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14392 | if test -n "$PKG_CONFIG"; then | |
14393 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14394 | else | |
14395 | echo "$ac_t""no" 1>&6 | |
14396 | fi | |
14397 | ||
14398 | fi | |
14399 | ||
14400 | if test "$PKG_CONFIG" = "no" ; then | |
14401 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14402 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14403 | echo "*** to the full path to pkg-config." | |
14404 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14405 | else | |
14406 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14407 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14408 | echo $ac_n "checking for pangox""... $ac_c" 1>&6 | |
89e6bf6d | 14409 | echo "configure:14410: checking for pangox" >&5 |
2b5f62a0 VZ |
14410 | |
14411 | if $PKG_CONFIG --exists "pangox" ; then | |
14412 | echo "$ac_t""yes" 1>&6 | |
14413 | succeeded=yes | |
14414 | ||
14415 | echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6 | |
89e6bf6d | 14416 | echo "configure:14417: checking PANGOX_CFLAGS" >&5 |
2b5f62a0 VZ |
14417 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
14418 | echo "$ac_t""$PANGOX_CFLAGS" 1>&6 | |
14419 | ||
14420 | echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6 | |
89e6bf6d | 14421 | echo "configure:14422: checking PANGOX_LIBS" >&5 |
2b5f62a0 VZ |
14422 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
14423 | echo "$ac_t""$PANGOX_LIBS" 1>&6 | |
14424 | else | |
14425 | PANGOX_CFLAGS="" | |
14426 | PANGOX_LIBS="" | |
14427 | ## If we have a custom action on failure, don't print errors, but | |
14428 | ## do set a variable so people can do so. | |
14429 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
14430 | ||
14431 | fi | |
14432 | ||
14433 | ||
14434 | ||
14435 | else | |
14436 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14437 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14438 | fi | |
14439 | fi | |
14440 | ||
14441 | if test $succeeded = yes; then | |
14442 | ||
14443 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
14444 | LIBS="$LIBS $PANGOX_LIBS" | |
14445 | ||
14446 | else | |
14447 | ||
14448 | { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; } | |
14449 | ||
14450 | ||
14451 | fi | |
14452 | ||
14453 | ||
14454 | succeeded=no | |
14455 | ||
14456 | if test -z "$PKG_CONFIG"; then | |
14457 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14458 | set dummy pkg-config; ac_word=$2 | |
14459 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
89e6bf6d | 14460 | echo "configure:14461: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14461 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14462 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14463 | else | |
14464 | case "$PKG_CONFIG" in | |
14465 | /*) | |
14466 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14467 | ;; | |
14468 | ?:/*) | |
14469 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14470 | ;; | |
14471 | *) | |
14472 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14473 | ac_dummy="$PATH" | |
14474 | for ac_dir in $ac_dummy; do | |
14475 | test -z "$ac_dir" && ac_dir=. | |
14476 | if test -f $ac_dir/$ac_word; then | |
14477 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14478 | break | |
14479 | fi | |
14480 | done | |
14481 | IFS="$ac_save_ifs" | |
14482 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14483 | ;; | |
14484 | esac | |
14485 | fi | |
14486 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14487 | if test -n "$PKG_CONFIG"; then | |
14488 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14489 | else | |
14490 | echo "$ac_t""no" 1>&6 | |
14491 | fi | |
14492 | ||
14493 | fi | |
14494 | ||
14495 | if test "$PKG_CONFIG" = "no" ; then | |
14496 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14497 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14498 | echo "*** to the full path to pkg-config." | |
14499 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14500 | else | |
14501 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14502 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14503 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 | |
89e6bf6d | 14504 | echo "configure:14505: checking for pangoft2" >&5 |
2b5f62a0 VZ |
14505 | |
14506 | if $PKG_CONFIG --exists "pangoft2" ; then | |
14507 | echo "$ac_t""yes" 1>&6 | |
14508 | succeeded=yes | |
14509 | ||
14510 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 | |
89e6bf6d | 14511 | echo "configure:14512: checking PANGOFT2_CFLAGS" >&5 |
2b5f62a0 VZ |
14512 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
14513 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 | |
14514 | ||
14515 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 | |
89e6bf6d | 14516 | echo "configure:14517: checking PANGOFT2_LIBS" >&5 |
2b5f62a0 VZ |
14517 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
14518 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 | |
14519 | else | |
14520 | PANGOFT2_CFLAGS="" | |
14521 | PANGOFT2_LIBS="" | |
14522 | ## If we have a custom action on failure, don't print errors, but | |
14523 | ## do set a variable so people can do so. | |
14524 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
14525 | ||
14526 | fi | |
14527 | ||
14528 | ||
14529 | ||
14530 | else | |
14531 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14532 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14533 | fi | |
14534 | fi | |
14535 | ||
14536 | if test $succeeded = yes; then | |
14537 | ||
14538 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
14539 | LIBS="$LIBS $PANGOFT2_LIBS" | |
14540 | ||
14541 | else | |
14542 | ||
14543 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
14544 | wxUSE_PRINTING_ARCHITECTURE="no" | |
14545 | ||
14546 | ||
14547 | fi | |
14548 | ||
14549 | ||
14550 | succeeded=no | |
14551 | ||
14552 | if test -z "$PKG_CONFIG"; then | |
14553 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14554 | set dummy pkg-config; ac_word=$2 | |
14555 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
89e6bf6d | 14556 | echo "configure:14557: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14557 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14558 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14559 | else | |
14560 | case "$PKG_CONFIG" in | |
14561 | /*) | |
14562 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14563 | ;; | |
14564 | ?:/*) | |
14565 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14566 | ;; | |
14567 | *) | |
14568 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14569 | ac_dummy="$PATH" | |
14570 | for ac_dir in $ac_dummy; do | |
14571 | test -z "$ac_dir" && ac_dir=. | |
14572 | if test -f $ac_dir/$ac_word; then | |
14573 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14574 | break | |
14575 | fi | |
14576 | done | |
14577 | IFS="$ac_save_ifs" | |
14578 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14579 | ;; | |
14580 | esac | |
14581 | fi | |
14582 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14583 | if test -n "$PKG_CONFIG"; then | |
14584 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14585 | else | |
14586 | echo "$ac_t""no" 1>&6 | |
14587 | fi | |
14588 | ||
14589 | fi | |
14590 | ||
14591 | if test "$PKG_CONFIG" = "no" ; then | |
14592 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14593 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14594 | echo "*** to the full path to pkg-config." | |
14595 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14596 | else | |
14597 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14598 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14599 | echo $ac_n "checking for pangoxft""... $ac_c" 1>&6 | |
89e6bf6d | 14600 | echo "configure:14601: checking for pangoxft" >&5 |
2b5f62a0 VZ |
14601 | |
14602 | if $PKG_CONFIG --exists "pangoxft" ; then | |
14603 | echo "$ac_t""yes" 1>&6 | |
14604 | succeeded=yes | |
14605 | ||
14606 | echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6 | |
89e6bf6d | 14607 | echo "configure:14608: checking PANGOXFT_CFLAGS" >&5 |
2b5f62a0 VZ |
14608 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
14609 | echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6 | |
14610 | ||
14611 | echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6 | |
89e6bf6d | 14612 | echo "configure:14613: checking PANGOXFT_LIBS" >&5 |
2b5f62a0 VZ |
14613 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
14614 | echo "$ac_t""$PANGOXFT_LIBS" 1>&6 | |
14615 | else | |
14616 | PANGOXFT_CFLAGS="" | |
14617 | PANGOXFT_LIBS="" | |
14618 | ## If we have a custom action on failure, don't print errors, but | |
14619 | ## do set a variable so people can do so. | |
14620 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
14621 | ||
14622 | fi | |
14623 | ||
14624 | ||
14625 | ||
14626 | else | |
14627 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14628 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14629 | fi | |
14630 | fi | |
14631 | ||
14632 | if test $succeeded = yes; then | |
14633 | ||
14634 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
14635 | LIBS="$LIBS $PANGOXFT_LIBS" | |
14636 | ||
14637 | else | |
14638 | ||
14639 | echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2 | |
14640 | ||
14641 | ||
14642 | fi | |
14643 | ||
14644 | fi | |
14645 | ||
14646 | wxUSE_UNIVERSAL="yes" | |
14647 | ||
14648 | if test "$wxUSE_NANOX" = "yes"; then | |
14649 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
14650 | 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" | |
14651 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
14652 | else | |
14653 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
14654 | fi | |
14655 | ||
14656 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
14657 | TOOLKIT=X11 | |
14658 | GUIDIST=X11_DIST | |
14659 | fi | |
14660 | ||
21d1c967 GD |
14661 | if test "$wxUSE_MOTIF" = 1; then |
14662 | if test "$no_x" = yes; then | |
14663 | # Not all programs may use this symbol, but it does not hurt to define it. | |
a0b9e27f | 14664 | cat >> confdefs.h <<\EOF |
21d1c967 | 14665 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 14666 | EOF |
21d1c967 GD |
14667 | |
14668 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
14669 | else | |
14670 | if test -n "$x_includes"; then | |
14671 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
14672 | fi |
14673 | ||
21d1c967 GD |
14674 | # It would also be nice to do this for all -L options, not just this one. |
14675 | if test -n "$x_libraries"; then | |
14676 | X_LIBS="$X_LIBS -L$x_libraries" | |
14677 | # For Solaris; some versions of Sun CC require a space after -R and | |
14678 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 14679 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 14680 | "SunOS 5"*) |
a0b9e27f | 14681 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
89e6bf6d | 14682 | echo "configure:14683: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
14683 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
14684 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 14685 | #line 14686 "configure" |
21d1c967 GD |
14686 | #include "confdefs.h" |
14687 | ||
a0b9e27f | 14688 | int main() { |
21d1c967 | 14689 | |
a0b9e27f MB |
14690 | ; return 0; } |
14691 | EOF | |
89e6bf6d | 14692 | if { (eval echo configure:14693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14693 | rm -rf conftest* |
21d1c967 | 14694 | ac_R_nospace=yes |
698dcdb6 | 14695 | else |
a0b9e27f MB |
14696 | echo "configure: failed program was:" >&5 |
14697 | cat conftest.$ac_ext >&5 | |
14698 | rm -rf conftest* | |
14699 | ac_R_nospace=no | |
10f2d63a | 14700 | fi |
a0b9e27f | 14701 | rm -f conftest* |
21d1c967 | 14702 | if test $ac_R_nospace = yes; then |
a0b9e27f | 14703 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14704 | X_LIBS="$X_LIBS -R$x_libraries" |
14705 | else | |
14706 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 14707 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 14708 | #line 14709 "configure" |
21d1c967 | 14709 | #include "confdefs.h" |
10f2d63a | 14710 | |
a0b9e27f | 14711 | int main() { |
f0c87536 | 14712 | |
a0b9e27f MB |
14713 | ; return 0; } |
14714 | EOF | |
89e6bf6d | 14715 | if { (eval echo configure:14716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14716 | rm -rf conftest* |
21d1c967 GD |
14717 | ac_R_space=yes |
14718 | else | |
a0b9e27f MB |
14719 | echo "configure: failed program was:" >&5 |
14720 | cat conftest.$ac_ext >&5 | |
14721 | rm -rf conftest* | |
14722 | ac_R_space=no | |
21d1c967 | 14723 | fi |
a0b9e27f | 14724 | rm -f conftest* |
21d1c967 | 14725 | if test $ac_R_space = yes; then |
a0b9e27f | 14726 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
14727 | X_LIBS="$X_LIBS -R $x_libraries" |
14728 | else | |
a0b9e27f | 14729 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
14730 | fi |
14731 | fi | |
a0b9e27f | 14732 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
14733 | esac |
14734 | fi | |
90dd450c | 14735 | |
21d1c967 GD |
14736 | # Check for system-dependent libraries X programs must link with. |
14737 | # Do this before checking for the system-independent R6 libraries | |
14738 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
14739 | ||
14740 | if test "$ISC" = yes; then | |
14741 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
14742 | else | |
a0b9e27f MB |
14743 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
14744 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 14745 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 14746 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
89e6bf6d | 14747 | echo "configure:14748: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
14748 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14749 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14750 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 14751 | else |
a0b9e27f | 14752 | ac_save_LIBS="$LIBS" |
247f5006 | 14753 | LIBS="-ldnet $LIBS" |
a0b9e27f | 14754 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 14755 | #line 14756 "configure" |
247f5006 | 14756 | #include "confdefs.h" |
247f5006 | 14757 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 14758 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14759 | builtin and then its argument prototype would still apply. */ |
14760 | char dnet_ntoa(); | |
14761 | ||
14762 | int main() { | |
14763 | dnet_ntoa() | |
14764 | ; return 0; } | |
14765 | EOF | |
89e6bf6d | 14766 | if { (eval echo configure:14767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14767 | rm -rf conftest* |
14768 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14769 | else | |
14770 | echo "configure: failed program was:" >&5 | |
14771 | cat conftest.$ac_ext >&5 | |
14772 | rm -rf conftest* | |
14773 | eval "ac_cv_lib_$ac_lib_var=no" | |
14774 | fi | |
14775 | rm -f conftest* | |
14776 | LIBS="$ac_save_LIBS" | |
14777 | ||
14778 | fi | |
14779 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14780 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14781 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
14782 | else |
14783 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 14784 | fi |
0fb0dd83 | 14785 | |
21d1c967 | 14786 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 14787 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
89e6bf6d | 14788 | echo "configure:14789: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
14789 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14790 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14791 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14792 | else |
a0b9e27f | 14793 | ac_save_LIBS="$LIBS" |
21d1c967 | 14794 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 14795 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 14796 | #line 14797 "configure" |
21d1c967 GD |
14797 | #include "confdefs.h" |
14798 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14799 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14800 | builtin and then its argument prototype would still apply. */ |
14801 | char dnet_ntoa(); | |
14802 | ||
14803 | int main() { | |
14804 | dnet_ntoa() | |
14805 | ; return 0; } | |
14806 | EOF | |
89e6bf6d | 14807 | if { (eval echo configure:14808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14808 | rm -rf conftest* |
14809 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14810 | else | |
14811 | echo "configure: failed program was:" >&5 | |
14812 | cat conftest.$ac_ext >&5 | |
14813 | rm -rf conftest* | |
14814 | eval "ac_cv_lib_$ac_lib_var=no" | |
14815 | fi | |
14816 | rm -f conftest* | |
14817 | LIBS="$ac_save_LIBS" | |
14818 | ||
14819 | fi | |
14820 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14821 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14822 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
14823 | else |
14824 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
14825 | fi |
14826 | ||
21d1c967 | 14827 | fi |
90dd450c | 14828 | |
21d1c967 GD |
14829 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
14830 | # to get the SysV transport functions. | |
a0b9e27f | 14831 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
14832 | # needs -lnsl. |
14833 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
14834 | # on Irix 5.2, according to dickey@clark.net. |
14835 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
89e6bf6d | 14836 | echo "configure:14837: checking for gethostbyname" >&5 |
a0b9e27f MB |
14837 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
14838 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14839 | else | |
14840 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 14841 | #line 14842 "configure" |
21d1c967 GD |
14842 | #include "confdefs.h" |
14843 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14844 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
14845 | #include <assert.h> |
14846 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14847 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14848 | builtin and then its argument prototype would still apply. */ |
14849 | char gethostbyname(); | |
14850 | ||
14851 | int main() { | |
14852 | ||
21d1c967 GD |
14853 | /* The GNU C library defines this for functions which it implements |
14854 | to always fail with ENOSYS. Some functions are actually named | |
14855 | something starting with __ and the normal name is an alias. */ | |
14856 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14857 | choke me | |
14858 | #else | |
a0b9e27f | 14859 | gethostbyname(); |
21d1c967 | 14860 | #endif |
90dd450c | 14861 | |
a0b9e27f MB |
14862 | ; return 0; } |
14863 | EOF | |
89e6bf6d | 14864 | if { (eval echo configure:14865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14865 | rm -rf conftest* |
14866 | eval "ac_cv_func_gethostbyname=yes" | |
14867 | else | |
14868 | echo "configure: failed program was:" >&5 | |
14869 | cat conftest.$ac_ext >&5 | |
14870 | rm -rf conftest* | |
14871 | eval "ac_cv_func_gethostbyname=no" | |
14872 | fi | |
14873 | rm -f conftest* | |
14874 | fi | |
14875 | ||
14876 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14877 | echo "$ac_t""yes" 1>&6 | |
14878 | : | |
14879 | else | |
14880 | echo "$ac_t""no" 1>&6 | |
14881 | fi | |
90dd450c | 14882 | |
21d1c967 | 14883 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 14884 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
89e6bf6d | 14885 | echo "configure:14886: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
14886 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
14887 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14889 | else |
a0b9e27f | 14890 | ac_save_LIBS="$LIBS" |
21d1c967 | 14891 | LIBS="-lnsl $LIBS" |
a0b9e27f | 14892 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 14893 | #line 14894 "configure" |
21d1c967 GD |
14894 | #include "confdefs.h" |
14895 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14896 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14897 | builtin and then its argument prototype would still apply. */ |
14898 | char gethostbyname(); | |
5c6fa7d2 | 14899 | |
a0b9e27f MB |
14900 | int main() { |
14901 | gethostbyname() | |
14902 | ; return 0; } | |
14903 | EOF | |
89e6bf6d | 14904 | if { (eval echo configure:14905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14905 | rm -rf conftest* |
14906 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 14907 | else |
a0b9e27f MB |
14908 | echo "configure: failed program was:" >&5 |
14909 | cat conftest.$ac_ext >&5 | |
14910 | rm -rf conftest* | |
14911 | eval "ac_cv_lib_$ac_lib_var=no" | |
14912 | fi | |
14913 | rm -f conftest* | |
14914 | LIBS="$ac_save_LIBS" | |
247f5006 | 14915 | |
a0b9e27f MB |
14916 | fi |
14917 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14918 | echo "$ac_t""yes" 1>&6 | |
14919 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14920 | else | |
14921 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14922 | fi |
90dd450c | 14923 | |
90dd450c VZ |
14924 | fi |
14925 | ||
21d1c967 GD |
14926 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
14927 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14928 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
14929 | # on later versions), says simon@lia.di.epfl.ch: it contains |
14930 | # gethostby* variants that don't use the nameserver (or something). | |
14931 | # -lsocket must be given before -lnsl if both are needed. | |
14932 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14933 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
89e6bf6d | 14934 | echo "configure:14935: checking for connect" >&5 |
a0b9e27f MB |
14935 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
14936 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14937 | else | |
14938 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 14939 | #line 14940 "configure" |
21d1c967 GD |
14940 | #include "confdefs.h" |
14941 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14942 | which can conflict with char connect(); below. */ |
21d1c967 GD |
14943 | #include <assert.h> |
14944 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14945 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14946 | builtin and then its argument prototype would still apply. */ |
14947 | char connect(); | |
14948 | ||
14949 | int main() { | |
14950 | ||
21d1c967 GD |
14951 | /* The GNU C library defines this for functions which it implements |
14952 | to always fail with ENOSYS. Some functions are actually named | |
14953 | something starting with __ and the normal name is an alias. */ | |
14954 | #if defined (__stub_connect) || defined (__stub___connect) | |
14955 | choke me | |
14956 | #else | |
a0b9e27f | 14957 | connect(); |
21d1c967 | 14958 | #endif |
90dd450c | 14959 | |
a0b9e27f MB |
14960 | ; return 0; } |
14961 | EOF | |
89e6bf6d | 14962 | if { (eval echo configure:14963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14963 | rm -rf conftest* |
14964 | eval "ac_cv_func_connect=yes" | |
14965 | else | |
14966 | echo "configure: failed program was:" >&5 | |
14967 | cat conftest.$ac_ext >&5 | |
14968 | rm -rf conftest* | |
14969 | eval "ac_cv_func_connect=no" | |
14970 | fi | |
14971 | rm -f conftest* | |
14972 | fi | |
14973 | ||
14974 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
14975 | echo "$ac_t""yes" 1>&6 | |
14976 | : | |
14977 | else | |
14978 | echo "$ac_t""no" 1>&6 | |
14979 | fi | |
1f8ae82f | 14980 | |
21d1c967 | 14981 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 14982 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
89e6bf6d | 14983 | echo "configure:14984: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
14984 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
14985 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14986 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 14987 | else |
a0b9e27f | 14988 | ac_save_LIBS="$LIBS" |
21d1c967 | 14989 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14990 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 14991 | #line 14992 "configure" |
0fbb762e | 14992 | #include "confdefs.h" |
21d1c967 GD |
14993 | /* Override any gcc2 internal prototype to avoid an error. */ |
14994 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14995 | builtin and then its argument prototype would still apply. */ |
14996 | char connect(); | |
14997 | ||
14998 | int main() { | |
14999 | connect() | |
15000 | ; return 0; } | |
15001 | EOF | |
89e6bf6d | 15002 | if { (eval echo configure:15003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15003 | rm -rf conftest* |
15004 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15005 | else | |
15006 | echo "configure: failed program was:" >&5 | |
15007 | cat conftest.$ac_ext >&5 | |
15008 | rm -rf conftest* | |
15009 | eval "ac_cv_lib_$ac_lib_var=no" | |
15010 | fi | |
15011 | rm -f conftest* | |
15012 | LIBS="$ac_save_LIBS" | |
15013 | ||
15014 | fi | |
15015 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15016 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15017 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
15018 | else |
15019 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15020 | fi |
90dd450c | 15021 | |
21d1c967 | 15022 | fi |
90dd450c | 15023 | |
a0b9e27f MB |
15024 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
15025 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
89e6bf6d | 15026 | echo "configure:15027: checking for remove" >&5 |
a0b9e27f MB |
15027 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
15028 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15029 | else |
a0b9e27f | 15030 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 15031 | #line 15032 "configure" |
21d1c967 GD |
15032 | #include "confdefs.h" |
15033 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15034 | which can conflict with char remove(); below. */ |
21d1c967 GD |
15035 | #include <assert.h> |
15036 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15037 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15038 | builtin and then its argument prototype would still apply. */ |
15039 | char remove(); | |
15040 | ||
15041 | int main() { | |
15042 | ||
21d1c967 GD |
15043 | /* The GNU C library defines this for functions which it implements |
15044 | to always fail with ENOSYS. Some functions are actually named | |
15045 | something starting with __ and the normal name is an alias. */ | |
15046 | #if defined (__stub_remove) || defined (__stub___remove) | |
15047 | choke me | |
15048 | #else | |
a0b9e27f | 15049 | remove(); |
21d1c967 | 15050 | #endif |
90dd450c | 15051 | |
a0b9e27f MB |
15052 | ; return 0; } |
15053 | EOF | |
89e6bf6d | 15054 | if { (eval echo configure:15055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15055 | rm -rf conftest* |
15056 | eval "ac_cv_func_remove=yes" | |
15057 | else | |
15058 | echo "configure: failed program was:" >&5 | |
15059 | cat conftest.$ac_ext >&5 | |
15060 | rm -rf conftest* | |
15061 | eval "ac_cv_func_remove=no" | |
15062 | fi | |
15063 | rm -f conftest* | |
15064 | fi | |
15065 | ||
15066 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
15067 | echo "$ac_t""yes" 1>&6 | |
15068 | : | |
15069 | else | |
15070 | echo "$ac_t""no" 1>&6 | |
15071 | fi | |
90dd450c | 15072 | |
21d1c967 | 15073 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 15074 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
89e6bf6d | 15075 | echo "configure:15076: checking for remove in -lposix" >&5 |
a0b9e27f MB |
15076 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
15077 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15079 | else |
a0b9e27f | 15080 | ac_save_LIBS="$LIBS" |
21d1c967 | 15081 | LIBS="-lposix $LIBS" |
a0b9e27f | 15082 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 15083 | #line 15084 "configure" |
21d1c967 GD |
15084 | #include "confdefs.h" |
15085 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15086 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15087 | builtin and then its argument prototype would still apply. */ |
15088 | char remove(); | |
15089 | ||
15090 | int main() { | |
15091 | remove() | |
15092 | ; return 0; } | |
15093 | EOF | |
89e6bf6d | 15094 | if { (eval echo configure:15095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15095 | rm -rf conftest* |
15096 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15097 | else | |
15098 | echo "configure: failed program was:" >&5 | |
15099 | cat conftest.$ac_ext >&5 | |
15100 | rm -rf conftest* | |
15101 | eval "ac_cv_lib_$ac_lib_var=no" | |
15102 | fi | |
15103 | rm -f conftest* | |
15104 | LIBS="$ac_save_LIBS" | |
15105 | ||
15106 | fi | |
15107 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15108 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15109 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
15110 | else |
15111 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15112 | fi |
19bc6aad | 15113 | |
90dd450c | 15114 | fi |
19bc6aad | 15115 | |
21d1c967 | 15116 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 15117 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
89e6bf6d | 15118 | echo "configure:15119: checking for shmat" >&5 |
a0b9e27f MB |
15119 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
15120 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15121 | else |
a0b9e27f | 15122 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 15123 | #line 15124 "configure" |
21d1c967 GD |
15124 | #include "confdefs.h" |
15125 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15126 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
15127 | #include <assert.h> |
15128 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15129 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15130 | builtin and then its argument prototype would still apply. */ |
15131 | char shmat(); | |
15132 | ||
15133 | int main() { | |
15134 | ||
21d1c967 GD |
15135 | /* The GNU C library defines this for functions which it implements |
15136 | to always fail with ENOSYS. Some functions are actually named | |
15137 | something starting with __ and the normal name is an alias. */ | |
15138 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
15139 | choke me | |
15140 | #else | |
a0b9e27f | 15141 | shmat(); |
21d1c967 | 15142 | #endif |
90dd450c | 15143 | |
a0b9e27f MB |
15144 | ; return 0; } |
15145 | EOF | |
89e6bf6d | 15146 | if { (eval echo configure:15147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15147 | rm -rf conftest* |
15148 | eval "ac_cv_func_shmat=yes" | |
15149 | else | |
15150 | echo "configure: failed program was:" >&5 | |
15151 | cat conftest.$ac_ext >&5 | |
15152 | rm -rf conftest* | |
15153 | eval "ac_cv_func_shmat=no" | |
15154 | fi | |
15155 | rm -f conftest* | |
15156 | fi | |
15157 | ||
15158 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
15159 | echo "$ac_t""yes" 1>&6 | |
15160 | : | |
15161 | else | |
15162 | echo "$ac_t""no" 1>&6 | |
15163 | fi | |
19bc6aad | 15164 | |
21d1c967 | 15165 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 15166 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
89e6bf6d | 15167 | echo "configure:15168: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
15168 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
15169 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 15171 | else |
a0b9e27f | 15172 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 15173 | LIBS="-lipc $LIBS" |
a0b9e27f | 15174 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 15175 | #line 15176 "configure" |
5c6fa7d2 | 15176 | #include "confdefs.h" |
5c6fa7d2 | 15177 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 15178 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
15179 | builtin and then its argument prototype would still apply. */ |
15180 | char shmat(); | |
15181 | ||
15182 | int main() { | |
15183 | shmat() | |
15184 | ; return 0; } | |
15185 | EOF | |
89e6bf6d | 15186 | if { (eval echo configure:15187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15187 | rm -rf conftest* |
15188 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15189 | else | |
15190 | echo "configure: failed program was:" >&5 | |
15191 | cat conftest.$ac_ext >&5 | |
15192 | rm -rf conftest* | |
15193 | eval "ac_cv_lib_$ac_lib_var=no" | |
15194 | fi | |
15195 | rm -f conftest* | |
15196 | LIBS="$ac_save_LIBS" | |
15197 | ||
15198 | fi | |
15199 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15200 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15201 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
15202 | else |
15203 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 15204 | fi |
90dd450c | 15205 | |
90dd450c | 15206 | fi |
21d1c967 | 15207 | fi |
10f2d63a | 15208 | |
21d1c967 | 15209 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 15210 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
15211 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
15212 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
15213 | # check for ICE first), but we must link in the order -lSM -lICE or | |
15214 | # we get undefined symbols. So assume we have SM if we have ICE. | |
15215 | # These have to be linked with before -lX11, unlike the other | |
15216 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
15217 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
15218 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
89e6bf6d | 15219 | echo "configure:15220: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
15220 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
15221 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15222 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15223 | else | |
15224 | ac_save_LIBS="$LIBS" | |
f09359cf | 15225 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15226 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 15227 | #line 15228 "configure" |
29fd3c0c | 15228 | #include "confdefs.h" |
21d1c967 GD |
15229 | /* Override any gcc2 internal prototype to avoid an error. */ |
15230 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15231 | builtin and then its argument prototype would still apply. */ |
15232 | char IceConnectionNumber(); | |
15233 | ||
15234 | int main() { | |
15235 | IceConnectionNumber() | |
15236 | ; return 0; } | |
15237 | EOF | |
89e6bf6d | 15238 | if { (eval echo configure:15239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15239 | rm -rf conftest* |
15240 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15241 | else | |
15242 | echo "configure: failed program was:" >&5 | |
15243 | cat conftest.$ac_ext >&5 | |
15244 | rm -rf conftest* | |
15245 | eval "ac_cv_lib_$ac_lib_var=no" | |
15246 | fi | |
15247 | rm -f conftest* | |
15248 | LIBS="$ac_save_LIBS" | |
15249 | ||
15250 | fi | |
15251 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15252 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15253 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
15254 | else |
15255 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 15256 | fi |
21d1c967 | 15257 | |
a0b9e27f | 15258 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 15259 | |
10f2d63a VZ |
15260 | fi |
15261 | ||
8284b0c5 | 15262 | |
21d1c967 | 15263 | if test "$no_x" = "yes"; then |
a0b9e27f | 15264 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
15265 | fi |
15266 | ||
2b5f62a0 VZ |
15267 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
15268 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
15269 | AFMINSTALL=afminstall |
15270 | COMPILED_X_PROGRAM=0 | |
15271 | ||
a0b9e27f | 15272 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
89e6bf6d | 15273 | echo "configure:15274: checking for Motif/Lesstif headers" >&5 |
a0b9e27f | 15274 | |
21d1c967 | 15275 | ac_find_includes= |
2b5f62a0 | 15276 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
15277 | do |
15278 | if test -f "$ac_dir/Xm/Xm.h"; then | |
15279 | ac_find_includes=$ac_dir | |
15280 | break | |
15281 | fi | |
15282 | done | |
15283 | ||
15284 | if test "$ac_find_includes" != "" ; then | |
a0b9e27f MB |
15285 | echo "$ac_t""found in $ac_find_includes" 1>&6 |
15286 | ||
2b5f62a0 | 15287 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
15288 | ac_path_to_include="" |
15289 | else | |
2b5f62a0 VZ |
15290 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
15291 | result=$? | |
15292 | if test $result = 0; then | |
15293 | ac_path_to_include="" | |
15294 | else | |
15295 | ac_path_to_include=" -I$ac_find_includes" | |
15296 | fi | |
dd0e4a90 VZ |
15297 | fi |
15298 | ||
15299 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 15300 | else |
a0b9e27f | 15301 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 15302 | #line 15303 "configure" |
10f2d63a | 15303 | #include "confdefs.h" |
21d1c967 GD |
15304 | |
15305 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15306 | |
15307 | int main() { | |
21d1c967 GD |
15308 | |
15309 | int version; | |
15310 | version = xmUseVersion; | |
a0b9e27f MB |
15311 | |
15312 | ; return 0; } | |
15313 | EOF | |
89e6bf6d | 15314 | if { (eval echo configure:15315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15315 | rm -rf conftest* |
15316 | ||
15317 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15318 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15319 | |
10f2d63a | 15320 | else |
a0b9e27f MB |
15321 | echo "configure: failed program was:" >&5 |
15322 | cat conftest.$ac_ext >&5 | |
15323 | rm -rf conftest* | |
15324 | ||
15325 | echo "$ac_t""no" 1>&6 | |
15326 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
15327 | ||
15328 | ||
10f2d63a | 15329 | fi |
a0b9e27f | 15330 | rm -f conftest* |
21d1c967 | 15331 | fi |
10f2d63a | 15332 | |
21d1c967 | 15333 | if test "$COMPILED_X_PROGRAM" = 0; then |
a0b9e27f | 15334 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
89e6bf6d | 15335 | echo "configure:15336: checking for Motif/Lesstif library" >&5 |
a0b9e27f | 15336 | |
21d1c967 | 15337 | ac_find_libraries= |
2b5f62a0 | 15338 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15339 | do |
15340 | for ac_extension in a so sl dylib; do | |
15341 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
15342 | ac_find_libraries=$ac_dir | |
15343 | break 2 | |
15344 | fi | |
15345 | done | |
15346 | done | |
15347 | ||
15348 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15349 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15350 | |
a0b9e27f | 15351 | |
21d1c967 GD |
15352 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15353 | result=$? | |
15354 | if test $result = 0; then | |
15355 | ac_path_to_link="" | |
15356 | else | |
15357 | ac_path_to_link=" -L$ac_find_libraries" | |
15358 | fi | |
15359 | ||
21d1c967 | 15360 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 15361 | else |
dd0e4a90 VZ |
15362 | save_CFLAGS=$CFLAGS |
15363 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15364 | ||
a0b9e27f | 15365 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 15366 | #line 15367 "configure" |
d836ee96 | 15367 | #include "confdefs.h" |
21d1c967 GD |
15368 | |
15369 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15370 | |
15371 | int main() { | |
21d1c967 GD |
15372 | |
15373 | int version; | |
15374 | version = xmUseVersion; | |
a0b9e27f MB |
15375 | |
15376 | ; return 0; } | |
15377 | EOF | |
89e6bf6d | 15378 | if { (eval echo configure:15379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15379 | rm -rf conftest* |
15380 | ||
15381 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15382 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15383 | |
d836ee96 | 15384 | else |
a0b9e27f MB |
15385 | echo "configure: failed program was:" >&5 |
15386 | cat conftest.$ac_ext >&5 | |
15387 | rm -rf conftest* | |
15388 | ||
15389 | echo "$ac_t""no" 1>&6 | |
15390 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
15391 | ||
15392 | ||
d836ee96 | 15393 | fi |
a0b9e27f | 15394 | rm -f conftest* |
dd0e4a90 VZ |
15395 | |
15396 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15397 | fi |
15398 | fi | |
15399 | ||
15400 | xpm_link= | |
a0b9e27f | 15401 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
89e6bf6d | 15402 | echo "configure:15403: checking for Xpm library" >&5 |
a0b9e27f | 15403 | |
21d1c967 | 15404 | ac_find_libraries= |
2b5f62a0 | 15405 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15406 | do |
15407 | for ac_extension in a so sl dylib; do | |
15408 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
15409 | ac_find_libraries=$ac_dir | |
15410 | break 2 | |
15411 | fi | |
15412 | done | |
15413 | done | |
15414 | ||
15415 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15416 | |
21d1c967 GD |
15417 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15418 | result=$? | |
15419 | if test $result = 0; then | |
15420 | ac_path_to_link="" | |
15421 | else | |
15422 | ac_path_to_link=" -L$ac_find_libraries" | |
15423 | fi | |
15424 | ||
15425 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 15426 | |
21d1c967 | 15427 | xpm_link=" -lXpm" |
a0b9e27f | 15428 | cat >> confdefs.h <<\EOF |
21d1c967 | 15429 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15430 | EOF |
90dd450c | 15431 | |
a0b9e27f | 15432 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15433 | else |
dd0e4a90 VZ |
15434 | save_CFLAGS=$CFLAGS |
15435 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15436 | ||
a0b9e27f | 15437 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 15438 | #line 15439 "configure" |
d836ee96 | 15439 | #include "confdefs.h" |
21d1c967 GD |
15440 | |
15441 | #include <X11/xpm.h> | |
a0b9e27f MB |
15442 | |
15443 | int main() { | |
21d1c967 GD |
15444 | |
15445 | int version; | |
15446 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
15447 | |
15448 | ; return 0; } | |
15449 | EOF | |
89e6bf6d | 15450 | if { (eval echo configure:15451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15451 | rm -rf conftest* |
15452 | ||
21d1c967 | 15453 | xpm_link=" -lXpm" |
a0b9e27f | 15454 | cat >> confdefs.h <<\EOF |
21d1c967 | 15455 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15456 | EOF |
21d1c967 | 15457 | |
a0b9e27f | 15458 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 15459 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 15460 | |
d836ee96 | 15461 | else |
a0b9e27f MB |
15462 | echo "configure: failed program was:" >&5 |
15463 | cat conftest.$ac_ext >&5 | |
15464 | rm -rf conftest* | |
15465 | ||
15466 | echo "$ac_t""no" 1>&6 | |
15467 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
15468 | ||
15469 | ||
d836ee96 | 15470 | fi |
a0b9e27f | 15471 | rm -f conftest* |
dd0e4a90 VZ |
15472 | |
15473 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15474 | fi |
15475 | ||
a0b9e27f | 15476 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
89e6bf6d | 15477 | echo "configure:15478: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
15478 | libp_link="" |
15479 | libsm_ice_link="" | |
15480 | libs_found=0 | |
15481 | for libp in "" " -lXp"; do | |
15482 | if test "$libs_found" = "0"; then | |
15483 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 15484 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
15485 | save_LIBS="$LIBS" |
15486 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
15487 | save_CFLAGS=$CFLAGS |
15488 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15489 | ||
a0b9e27f | 15490 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 15491 | #line 15492 "configure" |
6a30f1c8 | 15492 | #include "confdefs.h" |
17234b26 | 15493 | |
6a30f1c8 MB |
15494 | #include <Xm/Xm.h> |
15495 | #include <Xm/List.h> | |
a0b9e27f MB |
15496 | |
15497 | int main() { | |
6a30f1c8 MB |
15498 | |
15499 | XmString string = NULL; | |
15500 | Widget w = NULL; | |
15501 | int position = 0; | |
15502 | XmListAddItem(w, string, position); | |
a0b9e27f MB |
15503 | |
15504 | ; return 0; } | |
15505 | EOF | |
89e6bf6d | 15506 | if { (eval echo configure:15507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15507 | rm -rf conftest* |
15508 | ||
6a30f1c8 MB |
15509 | libp_link="$libp" |
15510 | libsm_ice_link="$libsm_ice" | |
a0b9e27f | 15511 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 15512 | libs_found=1 |
a0b9e27f | 15513 | |
6a30f1c8 | 15514 | else |
a0b9e27f MB |
15515 | echo "configure: failed program was:" >&5 |
15516 | cat conftest.$ac_ext >&5 | |
15517 | rm -rf conftest* | |
15518 | ||
15519 | ||
6a30f1c8 | 15520 | fi |
a0b9e27f | 15521 | rm -f conftest* |
dd0e4a90 | 15522 | |
6a30f1c8 | 15523 | LIBS="$save_LIBS" |
dd0e4a90 | 15524 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
15525 | fi |
15526 | done | |
15527 | fi | |
15528 | done | |
15529 | ||
15530 | if test "$libs_found" = "0"; then | |
a0b9e27f MB |
15531 | echo "$ac_t""can't find the right libraries" 1>&6 |
15532 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
15533 | fi |
15534 | ||
15535 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
21d1c967 GD |
15536 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
15537 | TOOLKIT=MOTIF | |
15538 | GUIDIST=MOTIF_DIST | |
15539 | fi | |
15540 | ||
15541 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 15542 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 15543 | |
0c98a14e | 15544 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
15545 | TOOLKIT=MAC |
15546 | GUIDIST=MACX_DIST | |
15547 | fi | |
15548 | ||
15549 | if test "$wxUSE_PM" = 1; then | |
15550 | TOOLKIT=PM | |
15551 | GUIDIST=GTK_DIST | |
2b5f62a0 | 15552 | echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2 |
f657dbe7 MB |
15553 | wxUSE_PROLOGIO="yes" |
15554 | wxUSE_RESOURCES="yes" | |
2b5f62a0 | 15555 | echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2 |
f657dbe7 | 15556 | wxUSE_THREADS="no" |
21d1c967 GD |
15557 | fi |
15558 | ||
15559 | if test "$TOOLKIT" = "PM" ; then | |
15560 | TOOLKIT_DIR="os2" | |
15561 | else | |
15562 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
15563 | fi | |
15564 | ||
15565 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
15566 | ||
15567 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
15568 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
15569 | ||
15570 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
15571 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
15572 | ||
15573 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
15574 | if test "$wxUSE_X11" = 1; then | |
15575 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
15576 | else | |
15577 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
15578 | fi | |
15579 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
15580 | WIDGET_SET=univ | |
15581 | else | |
15582 | ALL_OBJECTS="\$(GUIOBJS)" | |
15583 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15584 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15585 | fi | |
15586 | ||
15587 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
15588 | ||
15589 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
15590 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
15591 | fi | |
15592 | ||
15593 | if test "$wxUSE_HTML" = "yes"; then | |
15594 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
15595 | fi | |
15596 | ||
15597 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
15598 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
15599 | fi | |
15600 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
15601 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
15602 | fi | |
15603 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
15604 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
15605 | fi | |
15606 | ||
15607 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
15608 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 15609 | else |
21d1c967 GD |
15610 | USE_GUI=0 |
15611 | ||
15612 | TOOLKIT_DIR="base" | |
15613 | ||
15614 | if test "$USE_WIN32" = 1 ; then | |
15615 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
15616 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
15617 | ||
15618 | TOOLKIT="MSW" | |
15619 | else | |
15620 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
15621 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
15622 | fi | |
15623 | ||
15624 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15625 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15626 | ||
15627 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
15628 | ||
15629 | GUIDIST="BASE_DIST" | |
15630 | DISTDIR="wxBase" | |
d836ee96 VZ |
15631 | fi |
15632 | ||
8284b0c5 | 15633 | |
21d1c967 GD |
15634 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
15635 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 15636 | fi |
21d1c967 GD |
15637 | |
15638 | if test "$wxUSE_REGEX" = "builtin" ; then | |
15639 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 15640 | fi |
21d1c967 GD |
15641 | if test "$wxUSE_ZLIB" = "builtin" ; then |
15642 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
15643 | fi |
15644 | ||
8284b0c5 | 15645 | |
21d1c967 GD |
15646 | if test "$wxUSE_OPENGL" = "yes"; then |
15647 | if test "$wxUSE_MAC" = 1; then | |
15648 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
15649 | elif test "$wxUSE_MSW" = 1; then | |
15650 | OPENGL_LIBS="-lopengl32 -lglu32" | |
15651 | else | |
a0b9e27f MB |
15652 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15653 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
89e6bf6d | 15654 | echo "configure:15655: checking for GL/gl.h" >&5 |
a0b9e27f MB |
15655 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15657 | else | |
15658 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 15659 | #line 15660 "configure" |
10f2d63a | 15660 | #include "confdefs.h" |
21d1c967 | 15661 | #include <GL/gl.h> |
a0b9e27f MB |
15662 | EOF |
15663 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 15664 | { (eval echo configure:15665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
15665 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15666 | if test -z "$ac_err"; then | |
15667 | rm -rf conftest* | |
15668 | eval "ac_cv_header_$ac_safe=yes" | |
15669 | else | |
15670 | echo "$ac_err" >&5 | |
15671 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 15672 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
15673 | rm -rf conftest* |
15674 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 15675 | fi |
a0b9e27f | 15676 | rm -f conftest* |
698dcdb6 | 15677 | fi |
a0b9e27f MB |
15678 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15679 | echo "$ac_t""yes" 1>&6 | |
15680 | ||
15681 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
89e6bf6d | 15682 | echo "configure:15683: checking for -lGL" >&5 |
a0b9e27f | 15683 | |
21d1c967 | 15684 | ac_find_libraries= |
2b5f62a0 | 15685 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15686 | do |
15687 | for ac_extension in a so sl dylib; do | |
15688 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
15689 | ac_find_libraries=$ac_dir | |
15690 | break 2 | |
15691 | fi | |
15692 | done | |
15693 | done | |
15694 | ||
15695 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15696 | |
21d1c967 GD |
15697 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15698 | result=$? | |
15699 | if test $result = 0; then | |
15700 | ac_path_to_link="" | |
15701 | else | |
15702 | ac_path_to_link=" -L$ac_find_libraries" | |
15703 | fi | |
15704 | ||
15705 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
15706 | LDFLAGS_GL="$LDFLAGS" | |
15707 | else | |
15708 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15709 | fi | |
15710 | OPENGL_LIBS="-lGL -lGLU" | |
a0b9e27f | 15711 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15712 | else |
a0b9e27f MB |
15713 | echo "$ac_t""no" 1>&6 |
15714 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
89e6bf6d | 15715 | echo "configure:15716: checking for -lMesaGL" >&5 |
a0b9e27f | 15716 | |
21d1c967 | 15717 | ac_find_libraries= |
2b5f62a0 | 15718 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15719 | do |
15720 | for ac_extension in a so sl dylib; do | |
15721 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
15722 | ac_find_libraries=$ac_dir | |
15723 | break 2 | |
15724 | fi | |
15725 | done | |
15726 | done | |
15727 | ||
15728 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15729 | |
21d1c967 GD |
15730 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15731 | result=$? | |
15732 | if test $result = 0; then | |
15733 | ac_path_to_link="" | |
15734 | else | |
15735 | ac_path_to_link=" -L$ac_find_libraries" | |
15736 | fi | |
15737 | ||
15738 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15739 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
a0b9e27f | 15740 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15741 | else |
a0b9e27f | 15742 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
15743 | fi |
15744 | fi | |
a0b9e27f MB |
15745 | |
15746 | else | |
15747 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 15748 | fi |
52127426 | 15749 | |
8284b0c5 | 15750 | |
21d1c967 | 15751 | if test "x$OPENGL_LIBS" = "x"; then |
a0b9e27f | 15752 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
15753 | fi |
15754 | fi | |
90dd450c | 15755 | |
21d1c967 | 15756 | if test "$wxUSE_OPENGL" = "yes"; then |
a0b9e27f | 15757 | cat >> confdefs.h <<\EOF |
21d1c967 | 15758 | #define wxUSE_OPENGL 1 |
a0b9e27f | 15759 | EOF |
21d1c967 | 15760 | |
a0b9e27f | 15761 | cat >> confdefs.h <<\EOF |
21d1c967 | 15762 | #define wxUSE_GLCANVAS 1 |
a0b9e27f | 15763 | EOF |
21d1c967 GD |
15764 | |
15765 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
15766 | fi | |
10f2d63a | 15767 | fi |
21d1c967 GD |
15768 | |
15769 | if test -z "$TOOLKIT_VPATH" ; then | |
15770 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 15771 | fi |
21d1c967 GD |
15772 | |
15773 | if test -n "$TOOLKIT" ; then | |
15774 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
15775 | fi | |
15776 | ||
15777 | lib_unicode_suffix= | |
15778 | if test "$wxUSE_UNICODE" = "yes"; then | |
15779 | lib_unicode_suffix=u | |
90dd450c | 15780 | fi |
698dcdb6 | 15781 | |
21d1c967 GD |
15782 | lib_debug_suffix= |
15783 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
15784 | lib_debug_suffix=d | |
15785 | fi | |
698dcdb6 | 15786 | |
2b5f62a0 VZ |
15787 | WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
15788 | ||
15789 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
15790 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
15791 | |
15792 | if test "$cross_compiling" = "yes"; then | |
15793 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
15794 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
15795 | fi | |
15796 | ||
15797 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
15798 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
2b5f62a0 | 15799 | WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" |
21d1c967 GD |
15800 | |
15801 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15802 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15803 | ||
15804 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
15805 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15806 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
15807 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15808 | ||
15809 | case "${host}" in | |
15810 | *-*-cygwin* | *-*-mingw32* ) | |
15811 | ||
a0b9e27f MB |
15812 | |
15813 | ||
17234b26 | 15814 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
15815 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
15816 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
15817 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
15818 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15819 | else | |
15820 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15821 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15822 | fi | |
15823 | ;; | |
15824 | ||
15825 | *-*-darwin* ) | |
0c98a14e | 15826 | |
05159a27 GD |
15827 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
15828 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
15829 | ||
15830 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
15831 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15832 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
15833 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15834 | ||
21d1c967 | 15835 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
15836 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
15837 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
15838 | fi |
15839 | ;; | |
15840 | esac | |
15841 | ||
15842 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
15843 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
15844 | ||
15845 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
15846 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
15847 | ||
15848 | if test "$wxUSE_OPENGL" = "yes"; then | |
15849 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
15850 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
15851 | fi | |
15852 | ||
8284b0c5 MB |
15853 | |
15854 | ||
21d1c967 GD |
15855 | if test "$wxUSE_SHARED" = "yes"; then |
15856 | case "${host}" in | |
15857 | *-pc-os2_emx | *-pc-os2-emx | \ | |
15858 | *-pc-msdosdjgpp ) | |
15859 | wxUSE_SHARED=no | |
a0b9e27f | 15860 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
15861 | ;; |
15862 | esac | |
15863 | fi | |
15864 | ||
2b5f62a0 VZ |
15865 | if test "$wxUSE_SHARED" = "yes"; then |
15866 | ||
15867 | if test "$wxUSE_OPENGL" = "yes"; then | |
15868 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
15869 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
15870 | else | |
15871 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
15872 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
15873 | fi | |
15874 | ||
15875 | if test "$GCC" = "yes"; then | |
15876 | PIC_FLAG="-fPIC" | |
15877 | fi | |
15878 | ||
15879 | ||
15880 | ||
15881 | found_versioning=no | |
15882 | ||
b4eecb7e | 15883 | |
2b5f62a0 VZ |
15884 | if test $found_versioning = no ; then |
15885 | echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6 | |
89e6bf6d | 15886 | echo "configure:15887: checking if the linker accepts --version-script" >&5 |
2b5f62a0 VZ |
15887 | if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then |
15888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15889 | else | |
15890 | ||
15891 | echo "VER_1 { *; };" >conftest.sym | |
15892 | echo "int main() { return 0; }" >conftest.cpp | |
15893 | ||
15894 | if { ac_try=' | |
15895 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
89e6bf6d | 15896 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:15897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then |
2b5f62a0 VZ |
15897 | if test -s conftest.stderr ; then |
15898 | wx_cv_version_script=no | |
15899 | else | |
15900 | wx_cv_version_script=yes | |
15901 | fi | |
15902 | else | |
15903 | wx_cv_version_script=no | |
15904 | fi | |
15905 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
15906 | ||
15907 | fi | |
15908 | ||
15909 | echo "$ac_t""$wx_cv_version_script" 1>&6 | |
15910 | if test $wx_cv_version_script = yes ; then | |
15911 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script" | |
15912 | fi | |
15913 | fi | |
21d1c967 | 15914 | |
21d1c967 GD |
15915 | |
15916 | SHARED_LD="${CXX} -shared -o" | |
15917 | ||
15918 | case "${host}" in | |
15919 | *-hp-hpux* ) | |
ad2622f1 | 15920 | if test "$GCC" = "yes"; then |
85d5e282 | 15921 | SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" |
21d1c967 GD |
15922 | else |
15923 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
15924 | ||
15925 | SHARED_LD="${CXX} -b -o" | |
15926 | PIC_FLAG="+Z" | |
15927 | fi | |
15928 | ||
15929 | if test "$wxUSE_OPENGL" = "yes"; then | |
15930 | WX_ALL_INSTALLED="preinstall_gl" | |
15931 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
15932 | else | |
15933 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
15934 | fi | |
15935 | ;; | |
15936 | ||
15937 | *-*-linux* ) | |
15938 | if test "$GCC" != "yes"; then | |
a0b9e27f | 15939 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
89e6bf6d | 15940 | echo "configure:15941: checking for Intel compiler" >&5 |
a0b9e27f MB |
15941 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
15942 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15943 | else | |
15944 | ||
15945 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 15946 | #line 15947 "configure" |
698dcdb6 | 15947 | #include "confdefs.h" |
90dd450c | 15948 | |
a0b9e27f | 15949 | int main() { |
90dd450c | 15950 | |
21d1c967 GD |
15951 | #ifndef __INTEL_COMPILER |
15952 | #error Not icc | |
15953 | #endif | |
a0b9e27f MB |
15954 | |
15955 | ; return 0; } | |
15956 | EOF | |
89e6bf6d | 15957 | if { (eval echo configure:15958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 15958 | rm -rf conftest* |
21d1c967 | 15959 | wx_cv_prog_icc=yes |
6232543b | 15960 | else |
a0b9e27f MB |
15961 | echo "configure: failed program was:" >&5 |
15962 | cat conftest.$ac_ext >&5 | |
15963 | rm -rf conftest* | |
15964 | wx_cv_prog_icc=no | |
15965 | ||
5c6fa7d2 | 15966 | fi |
a0b9e27f MB |
15967 | rm -f conftest* |
15968 | ||
247f5006 | 15969 | fi |
a0b9e27f MB |
15970 | |
15971 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
15972 | if test "$wx_cv_prog_icc" = "yes"; then |
15973 | PIC_FLAG="-KPIC" | |
15974 | fi | |
15975 | fi | |
15976 | ||
15977 | if test "$wxUSE_SONAME" = "yes" ; then | |
15978 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
15979 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
15980 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
15981 | fi | |
15982 | ;; | |
15983 | ||
15984 | *-*-solaris2* ) | |
15985 | if test "$GCC" = yes ; then | |
15986 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
15987 | else | |
15988 | SHARED_LD="${CXX} -G -o" | |
15989 | PIC_FLAG="-KPIC" | |
15990 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
15991 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
15992 | fi | |
15993 | ;; | |
15994 | ||
15995 | *-*-darwin* ) | |
b2fee376 GD |
15996 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL" |
15997 | CFLAGS="$CFLAGS -fno-common" | |
15998 | CXXFLAGS="$CXXFLAGS -fno-common" | |
21d1c967 GD |
15999 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" |
16000 | PIC_FLAG="-dynamic -fPIC" | |
f346733b | 16001 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}" |
05159a27 | 16002 | SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}" |
21d1c967 GD |
16003 | ;; |
16004 | ||
16005 | *-*-aix* ) | |
2b5f62a0 VZ |
16006 | if test "$GCC" != "yes"; then |
16007 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
321d2b14 | 16008 | set dummy makeC++SharedLib; ac_word=$2 |
a0b9e27f | 16009 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
89e6bf6d | 16010 | echo "configure:16011: checking for $ac_word" >&5 |
a0b9e27f MB |
16011 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
16012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
16013 | else |
16014 | if test -n "$AIX_CXX_LD"; then | |
16015 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
16016 | else | |
a0b9e27f MB |
16017 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16018 | ac_dummy="$PATH" | |
16019 | for ac_dir in $ac_dummy; do | |
16020 | test -z "$ac_dir" && ac_dir=. | |
16021 | if test -f $ac_dir/$ac_word; then | |
16022 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
16023 | break | |
16024 | fi | |
16025 | done | |
16026 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
16027 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
16028 | fi | |
16029 | fi | |
a0b9e27f | 16030 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 16031 | if test -n "$AIX_CXX_LD"; then |
a0b9e27f | 16032 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 16033 | else |
a0b9e27f | 16034 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
16035 | fi |
16036 | ||
8284b0c5 | 16037 | |
2b5f62a0 VZ |
16038 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
16039 | fi | |
21d1c967 GD |
16040 | ;; |
16041 | ||
16042 | *-*-cygwin* | *-*-mingw32* ) | |
21d1c967 GD |
16043 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
16044 | ||
16045 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
16046 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
16047 | ||
16048 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
16049 | ||
f657dbe7 MB |
16050 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
16051 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16052 | ||
16053 | if test "$wxUSE_OPENGL" = "yes"; then | |
16054 | LIBS="${LIBS} ${OPENGL_LIBS}" | |
21d1c967 GD |
16055 | fi |
16056 | ;; | |
16057 | ||
16058 | *-*-beos* ) | |
16059 | SHARED_LD="${LD} -shared -o" | |
16060 | ;; | |
16061 | ||
2b5f62a0 VZ |
16062 | *-*-irix* ) |
16063 | if test "$GCC" != "yes"; then | |
16064 | PIC_FLAG="-KPIC" | |
16065 | fi | |
16066 | ;; | |
16067 | ||
21d1c967 GD |
16068 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
16069 | *-*-sunos4* | \ | |
21d1c967 GD |
16070 | *-*-osf* | \ |
16071 | *-*-dgux5* | \ | |
16072 | *-*-sysv5* ) | |
16073 | ;; | |
16074 | ||
16075 | *) | |
a0b9e27f | 16076 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
16077 | esac |
16078 | ||
16079 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
16080 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
16081 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
16082 | fi | |
16083 | ||
16084 | WX_TARGET_LIBRARY_TYPE="so" | |
16085 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 16086 | fi |
10f2d63a | 16087 | |
21d1c967 GD |
16088 | if test "$wxUSE_SHARED" = "no"; then |
16089 | ||
16090 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
16091 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16092 | fi | |
16093 | ||
16094 | if test "$wxUSE_MAC" = 1; then | |
16095 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16096 | fi | |
16097 | ||
16098 | if test "$wxUSE_OPENGL" = "yes"; then | |
16099 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
16100 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
16101 | else | |
16102 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
16103 | fi | |
16104 | ||
16105 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
16106 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
16107 | ||
16108 | WX_TARGET_LIBRARY_TYPE="a" | |
16109 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
16110 | |
16111 | STATIC_FLAG="yes" | |
16112 | else | |
16113 | STATIC_FLAG="no" | |
90dd450c | 16114 | fi |
1e487827 | 16115 | |
21d1c967 GD |
16116 | if test "$wxUSE_MAC" = 1; then |
16117 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
16118 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
16119 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
16120 | # Extract the first word of "Rez", so it can be a program name with args. | |
16121 | set dummy Rez; ac_word=$2 | |
a0b9e27f | 16122 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
89e6bf6d | 16123 | echo "configure:16124: checking for $ac_word" >&5 |
a0b9e27f MB |
16124 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
16125 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 16126 | else |
21d1c967 GD |
16127 | if test -n "$RESCOMP"; then |
16128 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 16129 | else |
a0b9e27f MB |
16130 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16131 | ac_dummy="$PATH" | |
16132 | for ac_dir in $ac_dummy; do | |
16133 | test -z "$ac_dir" && ac_dir=. | |
16134 | if test -f $ac_dir/$ac_word; then | |
16135 | ac_cv_prog_RESCOMP="Rez" | |
16136 | break | |
16137 | fi | |
16138 | done | |
16139 | IFS="$ac_save_ifs" | |
21d1c967 | 16140 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 16141 | fi |
b93d0d08 | 16142 | fi |
a0b9e27f | 16143 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 16144 | if test -n "$RESCOMP"; then |
a0b9e27f | 16145 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 16146 | else |
a0b9e27f | 16147 | echo "$ac_t""no" 1>&6 |
90dd450c | 16148 | fi |
b93d0d08 | 16149 | |
21d1c967 GD |
16150 | # Extract the first word of "DeRez", so it can be a program name with args. |
16151 | set dummy DeRez; ac_word=$2 | |
a0b9e27f | 16152 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
89e6bf6d | 16153 | echo "configure:16154: checking for $ac_word" >&5 |
a0b9e27f MB |
16154 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
16155 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 16156 | else |
21d1c967 GD |
16157 | if test -n "$DEREZ"; then |
16158 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 16159 | else |
a0b9e27f MB |
16160 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16161 | ac_dummy="$PATH" | |
16162 | for ac_dir in $ac_dummy; do | |
16163 | test -z "$ac_dir" && ac_dir=. | |
16164 | if test -f $ac_dir/$ac_word; then | |
16165 | ac_cv_prog_DEREZ="DeRez" | |
16166 | break | |
16167 | fi | |
16168 | done | |
16169 | IFS="$ac_save_ifs" | |
21d1c967 | 16170 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 16171 | fi |
90dd450c | 16172 | fi |
a0b9e27f | 16173 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 16174 | if test -n "$DEREZ"; then |
a0b9e27f | 16175 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 16176 | else |
a0b9e27f | 16177 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 16178 | fi |
698dcdb6 | 16179 | |
21d1c967 | 16180 | MACOSX_BUNDLE="bundle" |
2b5f62a0 VZ |
16181 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" |
16182 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
21d1c967 GD |
16183 | else |
16184 | if test "$wxUSE_PM" = 1; then | |
16185 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
90dd450c | 16186 | fi |
4f14bcd8 | 16187 | fi |
10f2d63a | 16188 | |
8284b0c5 | 16189 | |
a0b9e27f | 16190 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
89e6bf6d | 16191 | echo "configure:16192: checking for ANSI C header files" >&5 |
a0b9e27f MB |
16192 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
16193 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 16194 | else |
a0b9e27f | 16195 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 16196 | #line 16197 "configure" |
52127426 | 16197 | #include "confdefs.h" |
a0b9e27f MB |
16198 | #include <stdlib.h> |
16199 | #include <stdarg.h> | |
16200 | #include <string.h> | |
16201 | #include <float.h> | |
16202 | EOF | |
16203 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 16204 | { (eval echo configure:16205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
16205 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16206 | if test -z "$ac_err"; then | |
16207 | rm -rf conftest* | |
16208 | ac_cv_header_stdc=yes | |
16209 | else | |
16210 | echo "$ac_err" >&5 | |
16211 | echo "configure: failed program was:" >&5 | |
16212 | cat conftest.$ac_ext >&5 | |
16213 | rm -rf conftest* | |
16214 | ac_cv_header_stdc=no | |
16215 | fi | |
16216 | rm -f conftest* | |
16217 | ||
16218 | if test $ac_cv_header_stdc = yes; then | |
16219 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16220 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 16221 | #line 16222 "configure" |
a0b9e27f MB |
16222 | #include "confdefs.h" |
16223 | #include <string.h> | |
16224 | EOF | |
16225 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16226 | egrep "memchr" >/dev/null 2>&1; then | |
16227 | : | |
16228 | else | |
16229 | rm -rf conftest* | |
16230 | ac_cv_header_stdc=no | |
16231 | fi | |
16232 | rm -f conftest* | |
16233 | ||
16234 | fi | |
16235 | ||
16236 | if test $ac_cv_header_stdc = yes; then | |
16237 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16238 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 16239 | #line 16240 "configure" |
a0b9e27f MB |
16240 | #include "confdefs.h" |
16241 | #include <stdlib.h> | |
16242 | EOF | |
16243 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16244 | egrep "free" >/dev/null 2>&1; then | |
16245 | : | |
7b4a847f | 16246 | else |
a0b9e27f MB |
16247 | rm -rf conftest* |
16248 | ac_cv_header_stdc=no | |
52127426 | 16249 | fi |
a0b9e27f MB |
16250 | rm -f conftest* |
16251 | ||
52127426 | 16252 | fi |
a0b9e27f MB |
16253 | |
16254 | if test $ac_cv_header_stdc = yes; then | |
16255 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16256 | if test "$cross_compiling" = yes; then | |
247f5006 VZ |
16257 | : |
16258 | else | |
a0b9e27f | 16259 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 16260 | #line 16261 "configure" |
a0b9e27f MB |
16261 | #include "confdefs.h" |
16262 | #include <ctype.h> | |
16263 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16264 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16265 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16266 | int main () { int i; for (i = 0; i < 256; i++) | |
16267 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
16268 | exit (0); } | |
247f5006 | 16269 | |
a0b9e27f | 16270 | EOF |
89e6bf6d | 16271 | if { (eval echo configure:16272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
16272 | then |
16273 | : | |
16274 | else | |
16275 | echo "configure: failed program was:" >&5 | |
16276 | cat conftest.$ac_ext >&5 | |
16277 | rm -fr conftest* | |
16278 | ac_cv_header_stdc=no | |
16279 | fi | |
16280 | rm -fr conftest* | |
16281 | fi | |
16282 | ||
16283 | fi | |
16284 | fi | |
16285 | ||
16286 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
16287 | if test $ac_cv_header_stdc = yes; then | |
16288 | cat >> confdefs.h <<\EOF | |
16289 | #define STDC_HEADERS 1 | |
16290 | EOF | |
8284b0c5 MB |
16291 | |
16292 | fi | |
16293 | ||
a0b9e27f | 16294 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
89e6bf6d | 16295 | echo "configure:16296: checking for mode_t" >&5 |
a0b9e27f MB |
16296 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
16297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16298 | else |
a0b9e27f | 16299 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 16300 | #line 16301 "configure" |
8284b0c5 | 16301 | #include "confdefs.h" |
a0b9e27f MB |
16302 | #include <sys/types.h> |
16303 | #if STDC_HEADERS | |
16304 | #include <stdlib.h> | |
16305 | #include <stddef.h> | |
8284b0c5 | 16306 | #endif |
a0b9e27f MB |
16307 | EOF |
16308 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16309 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16310 | rm -rf conftest* | |
16311 | ac_cv_type_mode_t=yes | |
5c6fa7d2 | 16312 | else |
a0b9e27f MB |
16313 | rm -rf conftest* |
16314 | ac_cv_type_mode_t=no | |
16315 | fi | |
16316 | rm -f conftest* | |
16317 | ||
8284b0c5 | 16318 | fi |
a0b9e27f MB |
16319 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
16320 | if test $ac_cv_type_mode_t = no; then | |
16321 | cat >> confdefs.h <<\EOF | |
16322 | #define mode_t int | |
16323 | EOF | |
16324 | ||
8284b0c5 | 16325 | fi |
a0b9e27f MB |
16326 | |
16327 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
89e6bf6d | 16328 | echo "configure:16329: checking for off_t" >&5 |
a0b9e27f MB |
16329 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
16330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16331 | else | |
16332 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 16333 | #line 16334 "configure" |
a0b9e27f MB |
16334 | #include "confdefs.h" |
16335 | #include <sys/types.h> | |
16336 | #if STDC_HEADERS | |
16337 | #include <stdlib.h> | |
16338 | #include <stddef.h> | |
16339 | #endif | |
16340 | EOF | |
16341 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16342 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16343 | rm -rf conftest* | |
16344 | ac_cv_type_off_t=yes | |
247f5006 | 16345 | else |
a0b9e27f MB |
16346 | rm -rf conftest* |
16347 | ac_cv_type_off_t=no | |
16348 | fi | |
16349 | rm -f conftest* | |
247f5006 | 16350 | |
a0b9e27f MB |
16351 | fi |
16352 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
16353 | if test $ac_cv_type_off_t = no; then | |
16354 | cat >> confdefs.h <<\EOF | |
90dd450c | 16355 | #define off_t long |
a0b9e27f | 16356 | EOF |
10f2d63a | 16357 | |
90dd450c | 16358 | fi |
10f2d63a | 16359 | |
a0b9e27f | 16360 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
89e6bf6d | 16361 | echo "configure:16362: checking for pid_t" >&5 |
a0b9e27f MB |
16362 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
16363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16364 | else |
a0b9e27f | 16365 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 16366 | #line 16367 "configure" |
10f2d63a | 16367 | #include "confdefs.h" |
a0b9e27f MB |
16368 | #include <sys/types.h> |
16369 | #if STDC_HEADERS | |
16370 | #include <stdlib.h> | |
16371 | #include <stddef.h> | |
8284b0c5 | 16372 | #endif |
a0b9e27f MB |
16373 | EOF |
16374 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16375 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16376 | rm -rf conftest* | |
90dd450c | 16377 | ac_cv_type_pid_t=yes |
698dcdb6 | 16378 | else |
a0b9e27f MB |
16379 | rm -rf conftest* |
16380 | ac_cv_type_pid_t=no | |
8284b0c5 | 16381 | fi |
a0b9e27f | 16382 | rm -f conftest* |
247f5006 | 16383 | |
a0b9e27f MB |
16384 | fi |
16385 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
16386 | if test $ac_cv_type_pid_t = no; then | |
16387 | cat >> confdefs.h <<\EOF | |
90dd450c | 16388 | #define pid_t int |
a0b9e27f | 16389 | EOF |
10f2d63a | 16390 | |
7b4a847f RR |
16391 | fi |
16392 | ||
a0b9e27f | 16393 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
89e6bf6d | 16394 | echo "configure:16395: checking for size_t" >&5 |
a0b9e27f MB |
16395 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
16396 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 16397 | else |
a0b9e27f | 16398 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 16399 | #line 16400 "configure" |
7b4a847f | 16400 | #include "confdefs.h" |
a0b9e27f MB |
16401 | #include <sys/types.h> |
16402 | #if STDC_HEADERS | |
16403 | #include <stdlib.h> | |
16404 | #include <stddef.h> | |
8284b0c5 | 16405 | #endif |
a0b9e27f MB |
16406 | EOF |
16407 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16408 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16409 | rm -rf conftest* | |
90dd450c | 16410 | ac_cv_type_size_t=yes |
18dbb1f6 | 16411 | else |
a0b9e27f MB |
16412 | rm -rf conftest* |
16413 | ac_cv_type_size_t=no | |
52127426 | 16414 | fi |
a0b9e27f | 16415 | rm -f conftest* |
247f5006 | 16416 | |
a0b9e27f MB |
16417 | fi |
16418 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
16419 | if test $ac_cv_type_size_t = no; then | |
16420 | cat >> confdefs.h <<\EOF | |
90dd450c | 16421 | #define size_t unsigned |
a0b9e27f | 16422 | EOF |
90dd450c VZ |
16423 | |
16424 | fi | |
16425 | ||
a0b9e27f | 16426 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
89e6bf6d | 16427 | echo "configure:16428: checking for uid_t in sys/types.h" >&5 |
a0b9e27f MB |
16428 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
16429 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 16430 | else |
a0b9e27f | 16431 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 16432 | #line 16433 "configure" |
b3e8d00a | 16433 | #include "confdefs.h" |
90dd450c | 16434 | #include <sys/types.h> |
a0b9e27f | 16435 | EOF |
90dd450c VZ |
16436 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
16437 | egrep "uid_t" >/dev/null 2>&1; then | |
a0b9e27f | 16438 | rm -rf conftest* |
90dd450c | 16439 | ac_cv_type_uid_t=yes |
b3e8d00a | 16440 | else |
a0b9e27f | 16441 | rm -rf conftest* |
90dd450c | 16442 | ac_cv_type_uid_t=no |
b3e8d00a | 16443 | fi |
90dd450c | 16444 | rm -f conftest* |
b3e8d00a | 16445 | |
4f14bcd8 | 16446 | fi |
247f5006 | 16447 | |
a0b9e27f MB |
16448 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
16449 | if test $ac_cv_type_uid_t = no; then | |
16450 | cat >> confdefs.h <<\EOF | |
90dd450c | 16451 | #define uid_t int |
a0b9e27f | 16452 | EOF |
247f5006 | 16453 | |
a0b9e27f | 16454 | cat >> confdefs.h <<\EOF |
90dd450c | 16455 | #define gid_t int |
a0b9e27f | 16456 | EOF |
4f14bcd8 | 16457 | |
b3e8d00a | 16458 | fi |
b3e8d00a | 16459 | |
8284b0c5 MB |
16460 | |
16461 | ||
a0b9e27f MB |
16462 | ac_ext=C |
16463 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16464 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16465 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16466 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16467 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c | 16468 | |
a0b9e27f | 16469 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
89e6bf6d | 16470 | echo "configure:16471: checking if size_t is unsigned int" >&5 |
a0b9e27f MB |
16471 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
16472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 16473 | else |
a0b9e27f | 16474 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 16475 | #line 16476 "configure" |
10f2d63a | 16476 | #include "confdefs.h" |
90dd450c | 16477 | #include <stddef.h> |
a0b9e27f | 16478 | int main() { |
90dd450c VZ |
16479 | |
16480 | return 0; } | |
16481 | ||
16482 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
16483 | ||
16484 | int bar() { | |
a0b9e27f MB |
16485 | |
16486 | ; return 0; } | |
16487 | EOF | |
89e6bf6d | 16488 | if { (eval echo configure:16489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16489 | rm -rf conftest* |
90dd450c | 16490 | wx_cv_size_t_is_uint=no |
698dcdb6 | 16491 | else |
a0b9e27f MB |
16492 | echo "configure: failed program was:" >&5 |
16493 | cat conftest.$ac_ext >&5 | |
16494 | rm -rf conftest* | |
16495 | wx_cv_size_t_is_uint=yes | |
16496 | ||
5c6fa7d2 | 16497 | fi |
a0b9e27f | 16498 | rm -f conftest* |
8284b0c5 | 16499 | |
247f5006 | 16500 | fi |
a0b9e27f MB |
16501 | |
16502 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 16503 | |
90dd450c | 16504 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
a0b9e27f | 16505 | cat >> confdefs.h <<\EOF |
90dd450c | 16506 | #define wxSIZE_T_IS_UINT 1 |
a0b9e27f | 16507 | EOF |
698dcdb6 | 16508 | |
90dd450c | 16509 | else |
a0b9e27f | 16510 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
89e6bf6d | 16511 | echo "configure:16512: checking if size_t is unsigned long" >&5 |
a0b9e27f MB |
16512 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
16513 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16514 | else |
a0b9e27f | 16515 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 16516 | #line 16517 "configure" |
10f2d63a | 16517 | #include "confdefs.h" |
90dd450c | 16518 | #include <stddef.h> |
a0b9e27f | 16519 | int main() { |
90dd450c VZ |
16520 | |
16521 | return 0; } | |
16522 | ||
16523 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
16524 | ||
16525 | int bar() { | |
a0b9e27f MB |
16526 | |
16527 | ; return 0; } | |
16528 | EOF | |
89e6bf6d | 16529 | if { (eval echo configure:16530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16530 | rm -rf conftest* |
90dd450c | 16531 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 16532 | else |
a0b9e27f MB |
16533 | echo "configure: failed program was:" >&5 |
16534 | cat conftest.$ac_ext >&5 | |
16535 | rm -rf conftest* | |
16536 | wx_cv_size_t_is_ulong=yes | |
16537 | ||
5c6fa7d2 | 16538 | fi |
a0b9e27f MB |
16539 | rm -f conftest* |
16540 | ||
247f5006 | 16541 | fi |
a0b9e27f MB |
16542 | |
16543 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 16544 | |
90dd450c | 16545 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
a0b9e27f | 16546 | cat >> confdefs.h <<\EOF |
90dd450c | 16547 | #define wxSIZE_T_IS_ULONG 1 |
a0b9e27f | 16548 | EOF |
4f14bcd8 GD |
16549 | |
16550 | fi | |
90dd450c | 16551 | fi |
1e487827 | 16552 | |
90dd450c | 16553 | ac_ext=c |
a0b9e27f | 16554 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16555 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16556 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16557 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16558 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 16559 | |
5c6fa7d2 | 16560 | |
8284b0c5 | 16561 | |
a0b9e27f | 16562 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
89e6bf6d | 16563 | echo "configure:16564: checking for pw_gecos in struct passwd" >&5 |
a0b9e27f MB |
16564 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
16565 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16566 | else |
a0b9e27f MB |
16567 | |
16568 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 16569 | #line 16570 "configure" |
4f14bcd8 | 16570 | #include "confdefs.h" |
90dd450c | 16571 | #include <pwd.h> |
a0b9e27f | 16572 | int main() { |
f6bcfd97 | 16573 | |
90dd450c VZ |
16574 | char *p; |
16575 | struct passwd *pw; | |
16576 | p = pw->pw_gecos; | |
a0b9e27f MB |
16577 | |
16578 | ; return 0; } | |
16579 | EOF | |
89e6bf6d | 16580 | if { (eval echo configure:16581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16581 | rm -rf conftest* |
16582 | ||
90dd450c | 16583 | wx_cv_struct_pw_gecos=yes |
a0b9e27f | 16584 | |
10f2d63a | 16585 | else |
a0b9e27f MB |
16586 | echo "configure: failed program was:" >&5 |
16587 | cat conftest.$ac_ext >&5 | |
16588 | rm -rf conftest* | |
16589 | ||
90dd450c | 16590 | wx_cv_struct_pw_gecos=no |
a0b9e27f MB |
16591 | |
16592 | ||
5c6fa7d2 | 16593 | fi |
a0b9e27f MB |
16594 | rm -f conftest* |
16595 | ||
247f5006 VZ |
16596 | |
16597 | fi | |
a0b9e27f MB |
16598 | |
16599 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 16600 | |
90dd450c | 16601 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
a0b9e27f | 16602 | cat >> confdefs.h <<\EOF |
90dd450c | 16603 | #define HAVE_PW_GECOS 1 |
a0b9e27f | 16604 | EOF |
c521c494 | 16605 | |
90dd450c | 16606 | fi |
4f14bcd8 | 16607 | |
8284b0c5 | 16608 | |
d29b553b | 16609 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
a0b9e27f | 16610 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16611 | #define wxUSE_WCHAR_T 1 |
a0b9e27f | 16612 | EOF |
d74f4b5a | 16613 | |
8284b0c5 | 16614 | |
d74f4b5a VZ |
16615 | WCSLEN_FOUND=0 |
16616 | WCHAR_LINK= | |
a0b9e27f | 16617 | for ac_func in wcslen |
7a30264c | 16618 | do |
a0b9e27f | 16619 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 16620 | echo "configure:16621: checking for $ac_func" >&5 |
a0b9e27f MB |
16621 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16622 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16623 | else | |
16624 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 16625 | #line 16626 "configure" |
4f14bcd8 | 16626 | #include "confdefs.h" |
7a30264c | 16627 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16628 | which can conflict with char $ac_func(); below. */ |
7a30264c | 16629 | #include <assert.h> |
4f14bcd8 GD |
16630 | /* Override any gcc2 internal prototype to avoid an error. */ |
16631 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16632 | builtin and then its argument prototype would still apply. */ |
16633 | char $ac_func(); | |
16634 | ||
16635 | int main() { | |
16636 | ||
7a30264c VZ |
16637 | /* The GNU C library defines this for functions which it implements |
16638 | to always fail with ENOSYS. Some functions are actually named | |
16639 | something starting with __ and the normal name is an alias. */ | |
16640 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16641 | choke me | |
16642 | #else | |
a0b9e27f | 16643 | $ac_func(); |
7a30264c VZ |
16644 | #endif |
16645 | ||
a0b9e27f MB |
16646 | ; return 0; } |
16647 | EOF | |
89e6bf6d | 16648 | if { (eval echo configure:16649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16649 | rm -rf conftest* |
16650 | eval "ac_cv_func_$ac_func=yes" | |
16651 | else | |
16652 | echo "configure: failed program was:" >&5 | |
16653 | cat conftest.$ac_ext >&5 | |
16654 | rm -rf conftest* | |
16655 | eval "ac_cv_func_$ac_func=no" | |
16656 | fi | |
16657 | rm -f conftest* | |
16658 | fi | |
16659 | ||
16660 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16661 | echo "$ac_t""yes" 1>&6 | |
16662 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16663 | cat >> confdefs.h <<EOF | |
16664 | #define $ac_tr_func 1 | |
16665 | EOF | |
d74f4b5a | 16666 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16667 | else |
16668 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
16669 | fi |
16670 | done | |
9d8deca0 | 16671 | |
8284b0c5 | 16672 | |
d74f4b5a | 16673 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 16674 | if test "$TOOLKIT" = "MSW"; then |
a0b9e27f | 16675 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
89e6bf6d | 16676 | echo "configure:16677: checking for wcslen in -lmsvcrt" >&5 |
a0b9e27f MB |
16677 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
16678 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16680 | else |
a0b9e27f | 16681 | ac_save_LIBS="$LIBS" |
7a30264c | 16682 | LIBS="-lmsvcrt $LIBS" |
a0b9e27f | 16683 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 16684 | #line 16685 "configure" |
10f2d63a | 16685 | #include "confdefs.h" |
4f14bcd8 GD |
16686 | /* Override any gcc2 internal prototype to avoid an error. */ |
16687 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16688 | builtin and then its argument prototype would still apply. */ |
16689 | char wcslen(); | |
16690 | ||
16691 | int main() { | |
16692 | wcslen() | |
16693 | ; return 0; } | |
16694 | EOF | |
89e6bf6d | 16695 | if { (eval echo configure:16696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16696 | rm -rf conftest* |
16697 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16698 | else | |
16699 | echo "configure: failed program was:" >&5 | |
16700 | cat conftest.$ac_ext >&5 | |
16701 | rm -rf conftest* | |
16702 | eval "ac_cv_lib_$ac_lib_var=no" | |
16703 | fi | |
16704 | rm -f conftest* | |
16705 | LIBS="$ac_save_LIBS" | |
16706 | ||
16707 | fi | |
16708 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16709 | echo "$ac_t""yes" 1>&6 | |
d74f4b5a | 16710 | WCHAR_OK=1 |
a0b9e27f MB |
16711 | else |
16712 | echo "$ac_t""no" 1>&6 | |
d29b553b | 16713 | fi |
698dcdb6 | 16714 | |
7a30264c | 16715 | else |
a0b9e27f | 16716 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
89e6bf6d | 16717 | echo "configure:16718: checking for wcslen in -lw" >&5 |
a0b9e27f MB |
16718 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
16719 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16720 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16721 | else |
a0b9e27f | 16722 | ac_save_LIBS="$LIBS" |
7a30264c | 16723 | LIBS="-lw $LIBS" |
a0b9e27f | 16724 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 16725 | #line 16726 "configure" |
95c8801c | 16726 | #include "confdefs.h" |
4f14bcd8 GD |
16727 | /* Override any gcc2 internal prototype to avoid an error. */ |
16728 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16729 | builtin and then its argument prototype would still apply. */ |
16730 | char wcslen(); | |
52127426 | 16731 | |
a0b9e27f MB |
16732 | int main() { |
16733 | wcslen() | |
16734 | ; return 0; } | |
16735 | EOF | |
89e6bf6d | 16736 | if { (eval echo configure:16737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16737 | rm -rf conftest* |
16738 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16739 | else | |
16740 | echo "configure: failed program was:" >&5 | |
16741 | cat conftest.$ac_ext >&5 | |
16742 | rm -rf conftest* | |
16743 | eval "ac_cv_lib_$ac_lib_var=no" | |
16744 | fi | |
16745 | rm -f conftest* | |
16746 | LIBS="$ac_save_LIBS" | |
16747 | ||
16748 | fi | |
16749 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16750 | echo "$ac_t""yes" 1>&6 | |
16751 | ||
7a30264c | 16752 | WCHAR_LINK=" -lw" |
d74f4b5a | 16753 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16754 | |
16755 | else | |
16756 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16757 | fi |
10f2d63a | 16758 | |
7a30264c | 16759 | fi |
d29b553b | 16760 | fi |
95c8801c | 16761 | |
d74f4b5a | 16762 | if test "$WCSLEN_FOUND" = 1; then |
a0b9e27f | 16763 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16764 | #define HAVE_WCSLEN 1 |
a0b9e27f | 16765 | EOF |
10f2d63a | 16766 | |
d74f4b5a | 16767 | fi |
52127426 | 16768 | |
a0b9e27f | 16769 | for ac_func in wcsrtombs |
eb4efbdc | 16770 | do |
a0b9e27f | 16771 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 16772 | echo "configure:16773: checking for $ac_func" >&5 |
a0b9e27f MB |
16773 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16774 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16775 | else | |
16776 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 16777 | #line 16778 "configure" |
eb4efbdc VZ |
16778 | #include "confdefs.h" |
16779 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16780 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
16781 | #include <assert.h> |
16782 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4f14bcd8 | 16783 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16784 | builtin and then its argument prototype would still apply. */ |
16785 | char $ac_func(); | |
16786 | ||
16787 | int main() { | |
16788 | ||
10f2d63a VZ |
16789 | /* The GNU C library defines this for functions which it implements |
16790 | to always fail with ENOSYS. Some functions are actually named | |
16791 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 16792 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
16793 | choke me |
16794 | #else | |
a0b9e27f | 16795 | $ac_func(); |
10f2d63a VZ |
16796 | #endif |
16797 | ||
a0b9e27f MB |
16798 | ; return 0; } |
16799 | EOF | |
89e6bf6d | 16800 | if { (eval echo configure:16801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16801 | rm -rf conftest* |
16802 | eval "ac_cv_func_$ac_func=yes" | |
16803 | else | |
16804 | echo "configure: failed program was:" >&5 | |
16805 | cat conftest.$ac_ext >&5 | |
16806 | rm -rf conftest* | |
16807 | eval "ac_cv_func_$ac_func=no" | |
16808 | fi | |
16809 | rm -f conftest* | |
16810 | fi | |
270a909e | 16811 | |
a0b9e27f MB |
16812 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16813 | echo "$ac_t""yes" 1>&6 | |
16814 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16815 | cat >> confdefs.h <<EOF | |
16816 | #define $ac_tr_func 1 | |
16817 | EOF | |
16818 | ||
16819 | else | |
16820 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16821 | fi |
247f5006 | 16822 | done |
1e487827 | 16823 | |
af15babd | 16824 | else |
a0b9e27f | 16825 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
7b4a847f | 16826 | fi |
52127426 | 16827 | |
8284b0c5 | 16828 | |
a0b9e27f MB |
16829 | ac_ext=C |
16830 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
247f5006 | 16831 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16832 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16833 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16834 | cross_compiling=$ac_cv_prog_cxx_cross | |
af15babd | 16835 | |
247f5006 VZ |
16836 | |
16837 | for ac_func in vsnprintf | |
16838 | do | |
a0b9e27f | 16839 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 16840 | echo "configure:16841: checking for $ac_func" >&5 |
a0b9e27f MB |
16841 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16842 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16843 | else | |
16844 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 16845 | #line 16846 "configure" |
af15babd | 16846 | #include "confdefs.h" |
247f5006 | 16847 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16848 | which can conflict with char $ac_func(); below. */ |
247f5006 VZ |
16849 | #include <assert.h> |
16850 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16851 | #ifdef __cplusplus | |
16852 | extern "C" | |
16853 | #endif | |
16854 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16855 | builtin and then its argument prototype would still apply. */ |
16856 | char $ac_func(); | |
16857 | ||
16858 | int main() { | |
16859 | ||
247f5006 VZ |
16860 | /* The GNU C library defines this for functions which it implements |
16861 | to always fail with ENOSYS. Some functions are actually named | |
16862 | something starting with __ and the normal name is an alias. */ | |
16863 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16864 | choke me | |
16865 | #else | |
a0b9e27f | 16866 | $ac_func(); |
247f5006 | 16867 | #endif |
af15babd | 16868 | |
a0b9e27f MB |
16869 | ; return 0; } |
16870 | EOF | |
89e6bf6d | 16871 | if { (eval echo configure:16872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16872 | rm -rf conftest* |
16873 | eval "ac_cv_func_$ac_func=yes" | |
16874 | else | |
16875 | echo "configure: failed program was:" >&5 | |
16876 | cat conftest.$ac_ext >&5 | |
16877 | rm -rf conftest* | |
16878 | eval "ac_cv_func_$ac_func=no" | |
16879 | fi | |
16880 | rm -f conftest* | |
16881 | fi | |
52127426 | 16882 | |
a0b9e27f MB |
16883 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16884 | echo "$ac_t""yes" 1>&6 | |
16885 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16886 | cat >> confdefs.h <<EOF | |
16887 | #define $ac_tr_func 1 | |
16888 | EOF | |
16889 | ||
16890 | else | |
16891 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 16892 | fi |
247f5006 | 16893 | done |
8284b0c5 | 16894 | |
4f14bcd8 | 16895 | |
247f5006 | 16896 | if test "$wxUSE_UNICODE" = yes; then |
a0b9e27f | 16897 | for ac_func in fputwc wprintf vswprintf |
d74f4b5a | 16898 | do |
a0b9e27f | 16899 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 16900 | echo "configure:16901: checking for $ac_func" >&5 |
a0b9e27f MB |
16901 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16902 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16903 | else | |
16904 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 16905 | #line 16906 "configure" |
d74f4b5a VZ |
16906 | #include "confdefs.h" |
16907 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16908 | which can conflict with char $ac_func(); below. */ |
d74f4b5a VZ |
16909 | #include <assert.h> |
16910 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
16911 | #ifdef __cplusplus |
16912 | extern "C" | |
16913 | #endif | |
d74f4b5a | 16914 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16915 | builtin and then its argument prototype would still apply. */ |
16916 | char $ac_func(); | |
16917 | ||
16918 | int main() { | |
16919 | ||
d74f4b5a VZ |
16920 | /* The GNU C library defines this for functions which it implements |
16921 | to always fail with ENOSYS. Some functions are actually named | |
16922 | something starting with __ and the normal name is an alias. */ | |
16923 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16924 | choke me | |
16925 | #else | |
a0b9e27f | 16926 | $ac_func(); |
d74f4b5a VZ |
16927 | #endif |
16928 | ||
a0b9e27f MB |
16929 | ; return 0; } |
16930 | EOF | |
89e6bf6d | 16931 | if { (eval echo configure:16932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16932 | rm -rf conftest* |
16933 | eval "ac_cv_func_$ac_func=yes" | |
16934 | else | |
16935 | echo "configure: failed program was:" >&5 | |
16936 | cat conftest.$ac_ext >&5 | |
16937 | rm -rf conftest* | |
16938 | eval "ac_cv_func_$ac_func=no" | |
16939 | fi | |
16940 | rm -f conftest* | |
16941 | fi | |
d74f4b5a | 16942 | |
a0b9e27f MB |
16943 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16944 | echo "$ac_t""yes" 1>&6 | |
16945 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16946 | cat >> confdefs.h <<EOF | |
16947 | #define $ac_tr_func 1 | |
16948 | EOF | |
16949 | ||
16950 | else | |
16951 | echo "$ac_t""no" 1>&6 | |
d74f4b5a VZ |
16952 | fi |
16953 | done | |
16954 | ||
79668cae | 16955 | echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6 |
89e6bf6d | 16956 | echo "configure:16957: checking for _vsnwprintf" >&5 |
79668cae | 16957 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 16958 | #line 16959 "configure" |
79668cae MB |
16959 | #include "confdefs.h" |
16960 | #include <wchar.h> | |
16961 | int main() { | |
16962 | &_vsnwprintf; | |
16963 | ; return 0; } | |
16964 | EOF | |
89e6bf6d | 16965 | if { (eval echo configure:16966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
79668cae MB |
16966 | rm -rf conftest* |
16967 | echo "$ac_t""yes" 1>&6 | |
16968 | cat >> confdefs.h <<\EOF | |
16969 | #define HAVE__VSNWPRINTF 1 | |
16970 | EOF | |
16971 | ||
16972 | else | |
16973 | echo "configure: failed program was:" >&5 | |
16974 | cat conftest.$ac_ext >&5 | |
16975 | rm -rf conftest* | |
16976 | echo "$ac_t""no" 1>&6 | |
16977 | fi | |
16978 | rm -f conftest*; | |
d74f4b5a VZ |
16979 | fi |
16980 | ||
247f5006 | 16981 | ac_ext=c |
a0b9e27f | 16982 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
247f5006 | 16983 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16984 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16985 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16986 | cross_compiling=$ac_cv_prog_cc_cross | |
247f5006 VZ |
16987 | |
16988 | ||
16989 | ||
16990 | ||
4f14bcd8 | 16991 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 16992 | |
8284b0c5 MB |
16993 | |
16994 | ||
a0b9e27f MB |
16995 | ac_ext=C |
16996 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16997 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16998 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16999 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17000 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17001 | |
52127426 | 17002 | |
a0b9e27f MB |
17003 | |
17004 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
17005 | if test "${with_libiconv_prefix+set}" = set; then |
17006 | withval="$with_libiconv_prefix" | |
a0b9e27f | 17007 | |
b040e242 VS |
17008 | for dir in `echo "$withval" | tr : ' '`; do |
17009 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
17010 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
17011 | done | |
a0b9e27f MB |
17012 | |
17013 | fi | |
b040e242 VS |
17014 | |
17015 | ||
a0b9e27f | 17016 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
89e6bf6d | 17017 | echo "configure:17018: checking for iconv" >&5 |
a0b9e27f MB |
17018 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
17019 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17020 | else |
a0b9e27f | 17021 | |
b040e242 VS |
17022 | am_cv_func_iconv="no, consider installing GNU libiconv" |
17023 | am_cv_lib_iconv=no | |
a0b9e27f | 17024 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 17025 | #line 17026 "configure" |
af15babd | 17026 | #include "confdefs.h" |
b040e242 | 17027 | #include <stdlib.h> |
4f14bcd8 | 17028 | #include <iconv.h> |
a0b9e27f | 17029 | int main() { |
b040e242 VS |
17030 | iconv_t cd = iconv_open("",""); |
17031 | iconv(cd,NULL,NULL,NULL,NULL); | |
17032 | iconv_close(cd); | |
a0b9e27f MB |
17033 | ; return 0; } |
17034 | EOF | |
89e6bf6d | 17035 | if { (eval echo configure:17036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17036 | rm -rf conftest* |
b040e242 | 17037 | am_cv_func_iconv=yes |
af15babd | 17038 | else |
a0b9e27f MB |
17039 | echo "configure: failed program was:" >&5 |
17040 | cat conftest.$ac_ext >&5 | |
b040e242 | 17041 | fi |
a0b9e27f | 17042 | rm -f conftest* |
b040e242 VS |
17043 | if test "$am_cv_func_iconv" != yes; then |
17044 | am_save_LIBS="$LIBS" | |
17045 | LIBS="$LIBS -liconv" | |
a0b9e27f | 17046 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 17047 | #line 17048 "configure" |
b040e242 VS |
17048 | #include "confdefs.h" |
17049 | #include <stdlib.h> | |
17050 | #include <iconv.h> | |
a0b9e27f | 17051 | int main() { |
b040e242 VS |
17052 | iconv_t cd = iconv_open("",""); |
17053 | iconv(cd,NULL,NULL,NULL,NULL); | |
17054 | iconv_close(cd); | |
a0b9e27f MB |
17055 | ; return 0; } |
17056 | EOF | |
89e6bf6d | 17057 | if { (eval echo configure:17058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17058 | rm -rf conftest* |
b040e242 VS |
17059 | am_cv_lib_iconv=yes |
17060 | am_cv_func_iconv=yes | |
17061 | else | |
a0b9e27f MB |
17062 | echo "configure: failed program was:" >&5 |
17063 | cat conftest.$ac_ext >&5 | |
af15babd | 17064 | fi |
a0b9e27f | 17065 | rm -f conftest* |
b040e242 VS |
17066 | LIBS="$am_save_LIBS" |
17067 | fi | |
a0b9e27f | 17068 | |
247f5006 | 17069 | fi |
247f5006 | 17070 | |
a0b9e27f MB |
17071 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
17072 | if test "$am_cv_func_iconv" = yes; then | |
17073 | cat >> confdefs.h <<\EOF | |
b040e242 | 17074 | #define HAVE_ICONV 1 |
a0b9e27f | 17075 | EOF |
b040e242 | 17076 | |
a0b9e27f | 17077 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
89e6bf6d | 17078 | echo "configure:17079: checking if iconv needs const" >&5 |
a0b9e27f MB |
17079 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
17080 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 17081 | else |
a0b9e27f | 17082 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 17083 | #line 17084 "configure" |
b040e242 VS |
17084 | #include "confdefs.h" |
17085 | ||
17086 | #include <stdlib.h> | |
17087 | #include <iconv.h> | |
17088 | extern | |
17089 | #ifdef __cplusplus | |
17090 | "C" | |
17091 | #endif | |
17092 | #if defined(__STDC__) || defined(__cplusplus) | |
17093 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
17094 | #else | |
17095 | size_t iconv(); | |
17096 | #endif | |
a0b9e27f MB |
17097 | |
17098 | int main() { | |
af15babd | 17099 | |
a0b9e27f MB |
17100 | ; return 0; } |
17101 | EOF | |
89e6bf6d | 17102 | if { (eval echo configure:17103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17103 | rm -rf conftest* |
b7043674 | 17104 | wx_cv_func_iconv_const="no" |
b040e242 | 17105 | else |
a0b9e27f MB |
17106 | echo "configure: failed program was:" >&5 |
17107 | cat conftest.$ac_ext >&5 | |
17108 | rm -rf conftest* | |
17109 | wx_cv_func_iconv_const="yes" | |
17110 | ||
5c6fa7d2 | 17111 | fi |
a0b9e27f MB |
17112 | rm -f conftest* |
17113 | ||
247f5006 | 17114 | fi |
a0b9e27f MB |
17115 | |
17116 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
17117 | |
17118 | iconv_const= | |
1c405bb5 | 17119 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
17120 | iconv_const="const" |
17121 | fi | |
17122 | ||
a0b9e27f | 17123 | cat >> confdefs.h <<EOF |
f09359cf | 17124 | #define ICONV_CONST $iconv_const |
a0b9e27f | 17125 | EOF |
b040e242 VS |
17126 | |
17127 | fi | |
17128 | LIBICONV= | |
17129 | if test "$am_cv_lib_iconv" = yes; then | |
17130 | LIBICONV="-liconv" | |
17131 | fi | |
a0b9e27f | 17132 | |
b040e242 VS |
17133 | |
17134 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 17135 | ac_ext=c |
a0b9e27f | 17136 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17137 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17138 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17139 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17140 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 17141 | |
5c6fa7d2 | 17142 | |
8284b0c5 | 17143 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 17144 | for ac_func in sigaction |
af15babd | 17145 | do |
a0b9e27f | 17146 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 17147 | echo "configure:17148: checking for $ac_func" >&5 |
a0b9e27f MB |
17148 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17149 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17150 | else | |
17151 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 17152 | #line 17153 "configure" |
af15babd VZ |
17153 | #include "confdefs.h" |
17154 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17155 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17156 | #include <assert.h> |
17157 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17158 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17159 | builtin and then its argument prototype would still apply. */ |
17160 | char $ac_func(); | |
17161 | ||
17162 | int main() { | |
17163 | ||
af15babd VZ |
17164 | /* The GNU C library defines this for functions which it implements |
17165 | to always fail with ENOSYS. Some functions are actually named | |
17166 | something starting with __ and the normal name is an alias. */ | |
17167 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17168 | choke me | |
17169 | #else | |
a0b9e27f | 17170 | $ac_func(); |
af15babd VZ |
17171 | #endif |
17172 | ||
a0b9e27f MB |
17173 | ; return 0; } |
17174 | EOF | |
89e6bf6d | 17175 | if { (eval echo configure:17176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17176 | rm -rf conftest* |
17177 | eval "ac_cv_func_$ac_func=yes" | |
17178 | else | |
17179 | echo "configure: failed program was:" >&5 | |
17180 | cat conftest.$ac_ext >&5 | |
17181 | rm -rf conftest* | |
17182 | eval "ac_cv_func_$ac_func=no" | |
17183 | fi | |
17184 | rm -f conftest* | |
17185 | fi | |
7b4a847f | 17186 | |
a0b9e27f MB |
17187 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17188 | echo "$ac_t""yes" 1>&6 | |
17189 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17190 | cat >> confdefs.h <<EOF | |
17191 | #define $ac_tr_func 1 | |
17192 | EOF | |
17193 | ||
17194 | else | |
17195 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
17196 | fi |
17197 | done | |
17198 | ||
8284b0c5 | 17199 | |
4f14bcd8 | 17200 | if test "$ac_cv_func_sigaction" = "no"; then |
a0b9e27f | 17201 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
17202 | wxUSE_ON_FATAL_EXCEPTION=no |
17203 | fi | |
17204 | ||
17205 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a0b9e27f MB |
17206 | |
17207 | ac_ext=C | |
17208 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 17209 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17210 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17211 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17212 | cross_compiling=$ac_cv_prog_cxx_cross | |
7b4a847f | 17213 | |
5c6fa7d2 | 17214 | |
a0b9e27f | 17215 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
89e6bf6d | 17216 | echo "configure:17217: checking for sa_handler type" >&5 |
a0b9e27f MB |
17217 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
17218 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 17219 | else |
a0b9e27f MB |
17220 | |
17221 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 17222 | #line 17223 "configure" |
af15babd | 17223 | #include "confdefs.h" |
4f14bcd8 | 17224 | #include <signal.h> |
a0b9e27f | 17225 | int main() { |
4f14bcd8 GD |
17226 | |
17227 | extern void testSigHandler(int); | |
17228 | ||
17229 | struct sigaction sa; | |
17230 | sa.sa_handler = testSigHandler; | |
a0b9e27f MB |
17231 | |
17232 | ; return 0; } | |
17233 | EOF | |
89e6bf6d | 17234 | if { (eval echo configure:17235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17235 | rm -rf conftest* |
17236 | ||
4f14bcd8 | 17237 | wx_cv_type_sa_handler=int |
a0b9e27f | 17238 | |
af15babd | 17239 | else |
a0b9e27f MB |
17240 | echo "configure: failed program was:" >&5 |
17241 | cat conftest.$ac_ext >&5 | |
17242 | rm -rf conftest* | |
17243 | ||
4f14bcd8 | 17244 | wx_cv_type_sa_handler=void |
a0b9e27f | 17245 | |
5c6fa7d2 | 17246 | fi |
a0b9e27f MB |
17247 | rm -f conftest* |
17248 | ||
247f5006 | 17249 | fi |
a0b9e27f MB |
17250 | |
17251 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
17252 | |
17253 | ac_ext=c | |
a0b9e27f | 17254 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17255 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17256 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17257 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17258 | cross_compiling=$ac_cv_prog_cc_cross | |
579d8138 | 17259 | |
8284b0c5 | 17260 | |
a0b9e27f | 17261 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17262 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
a0b9e27f | 17263 | EOF |
af15babd | 17264 | |
4f14bcd8 GD |
17265 | fi |
17266 | fi | |
af15babd | 17267 | |
a1d22ad7 | 17268 | for ac_func in mkstemp mktemp |
af15babd | 17269 | do |
a0b9e27f | 17270 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 17271 | echo "configure:17272: checking for $ac_func" >&5 |
a0b9e27f MB |
17272 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17273 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17274 | else | |
17275 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 17276 | #line 17277 "configure" |
af15babd VZ |
17277 | #include "confdefs.h" |
17278 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17279 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17280 | #include <assert.h> |
17281 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17282 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17283 | builtin and then its argument prototype would still apply. */ |
17284 | char $ac_func(); | |
17285 | ||
17286 | int main() { | |
17287 | ||
af15babd VZ |
17288 | /* The GNU C library defines this for functions which it implements |
17289 | to always fail with ENOSYS. Some functions are actually named | |
17290 | something starting with __ and the normal name is an alias. */ | |
17291 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17292 | choke me | |
17293 | #else | |
a0b9e27f | 17294 | $ac_func(); |
af15babd VZ |
17295 | #endif |
17296 | ||
a0b9e27f MB |
17297 | ; return 0; } |
17298 | EOF | |
89e6bf6d | 17299 | if { (eval echo configure:17300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17300 | rm -rf conftest* |
17301 | eval "ac_cv_func_$ac_func=yes" | |
17302 | else | |
17303 | echo "configure: failed program was:" >&5 | |
17304 | cat conftest.$ac_ext >&5 | |
17305 | rm -rf conftest* | |
17306 | eval "ac_cv_func_$ac_func=no" | |
17307 | fi | |
17308 | rm -f conftest* | |
17309 | fi | |
af15babd | 17310 | |
a0b9e27f MB |
17311 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17312 | echo "$ac_t""yes" 1>&6 | |
17313 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17314 | cat >> confdefs.h <<EOF | |
17315 | #define $ac_tr_func 1 | |
17316 | EOF | |
ade35f11 | 17317 | break |
a0b9e27f MB |
17318 | else |
17319 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
17320 | fi |
17321 | done | |
17322 | ||
8284b0c5 | 17323 | |
a0b9e27f | 17324 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
89e6bf6d | 17325 | echo "configure:17326: checking for statfs" >&5 |
a0b9e27f MB |
17326 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
17327 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17328 | else |
a0b9e27f | 17329 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 17330 | #line 17331 "configure" |
4f14bcd8 GD |
17331 | #include "confdefs.h" |
17332 | ||
17333 | #if defined(__BSD__) | |
17334 | #include <sys/param.h> | |
17335 | #include <sys/mount.h> | |
17336 | #else | |
17337 | #include <sys/vfs.h> | |
17338 | #endif | |
a0b9e27f MB |
17339 | |
17340 | int main() { | |
4f14bcd8 GD |
17341 | |
17342 | long l; | |
17343 | struct statfs fs; | |
17344 | statfs("/", &fs); | |
17345 | l = fs.f_bsize; | |
17346 | l += fs.f_blocks; | |
17347 | l += fs.f_bavail; | |
a0b9e27f MB |
17348 | |
17349 | ; return 0; } | |
17350 | EOF | |
89e6bf6d | 17351 | if { (eval echo configure:17352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17352 | rm -rf conftest* |
17353 | ||
4f14bcd8 | 17354 | wx_cv_func_statfs=yes |
a0b9e27f | 17355 | |
4f14bcd8 | 17356 | else |
a0b9e27f MB |
17357 | echo "configure: failed program was:" >&5 |
17358 | cat conftest.$ac_ext >&5 | |
17359 | rm -rf conftest* | |
17360 | ||
4f14bcd8 | 17361 | wx_cv_func_statfs=no |
a0b9e27f MB |
17362 | |
17363 | ||
5c6fa7d2 | 17364 | fi |
a0b9e27f | 17365 | rm -f conftest* |
8284b0c5 | 17366 | |
247f5006 | 17367 | fi |
a0b9e27f MB |
17368 | |
17369 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
17370 | |
17371 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 17372 | wx_cv_type_statvfs_t="struct statfs" |
a0b9e27f | 17373 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17374 | #define HAVE_STATFS 1 |
a0b9e27f | 17375 | EOF |
4f14bcd8 GD |
17376 | |
17377 | else | |
a0b9e27f | 17378 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
89e6bf6d | 17379 | echo "configure:17380: checking for statvfs" >&5 |
a0b9e27f MB |
17380 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
17381 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17382 | else |
a0b9e27f | 17383 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 17384 | #line 17385 "configure" |
af15babd | 17385 | #include "confdefs.h" |
af15babd | 17386 | |
54ab82b3 VZ |
17387 | #include <stddef.h> |
17388 | #include <sys/statvfs.h> | |
a0b9e27f MB |
17389 | |
17390 | int main() { | |
af15babd | 17391 | |
54ab82b3 | 17392 | statvfs("/", NULL); |
a0b9e27f MB |
17393 | |
17394 | ; return 0; } | |
17395 | EOF | |
89e6bf6d | 17396 | if { (eval echo configure:17397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17397 | rm -rf conftest* |
54ab82b3 | 17398 | wx_cv_func_statvfs=yes |
af15babd | 17399 | else |
a0b9e27f MB |
17400 | echo "configure: failed program was:" >&5 |
17401 | cat conftest.$ac_ext >&5 | |
17402 | rm -rf conftest* | |
54ab82b3 | 17403 | wx_cv_func_statvfs=no |
a0b9e27f | 17404 | |
5c6fa7d2 | 17405 | fi |
a0b9e27f MB |
17406 | rm -f conftest* |
17407 | ||
247f5006 | 17408 | fi |
a0b9e27f MB |
17409 | |
17410 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 17411 | |
4f14bcd8 | 17412 | if test "$wx_cv_func_statvfs" = "yes"; then |
54ab82b3 VZ |
17413 | |
17414 | ac_ext=C | |
17415 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17416 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17417 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17418 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17419 | cross_compiling=$ac_cv_prog_cxx_cross | |
17420 | ||
17421 | ||
17422 | echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6 | |
89e6bf6d | 17423 | echo "configure:17424: checking for statvfs argument type" >&5 |
54ab82b3 VZ |
17424 | if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then |
17425 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17426 | else | |
17427 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 17428 | #line 17429 "configure" |
54ab82b3 VZ |
17429 | #include "confdefs.h" |
17430 | ||
17431 | #include <sys/statvfs.h> | |
17432 | ||
17433 | int main() { | |
17434 | ||
17435 | long l; | |
17436 | statvfs_t fs; | |
17437 | statvfs("/", &fs); | |
17438 | l = fs.f_bsize; | |
17439 | l += fs.f_blocks; | |
17440 | l += fs.f_bavail; | |
17441 | ||
17442 | ; return 0; } | |
17443 | EOF | |
89e6bf6d | 17444 | if { (eval echo configure:17445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
17445 | rm -rf conftest* |
17446 | wx_cv_type_statvfs_t=statvfs_t | |
17447 | else | |
17448 | echo "configure: failed program was:" >&5 | |
17449 | cat conftest.$ac_ext >&5 | |
17450 | rm -rf conftest* | |
17451 | ||
17452 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 17453 | #line 17454 "configure" |
54ab82b3 VZ |
17454 | #include "confdefs.h" |
17455 | ||
17456 | #include <sys/statvfs.h> | |
17457 | ||
17458 | int main() { | |
17459 | ||
17460 | long l; | |
17461 | statvfs_t fs; | |
17462 | statvfs("/", &fs); | |
17463 | l = fs.f_bsize; | |
17464 | l += fs.f_blocks; | |
17465 | l += fs.f_bavail; | |
17466 | ||
17467 | ; return 0; } | |
17468 | EOF | |
89e6bf6d | 17469 | if { (eval echo configure:17470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
17470 | rm -rf conftest* |
17471 | wx_cv_type_statvfs_t="struct statvfs" | |
17472 | else | |
17473 | echo "configure: failed program was:" >&5 | |
17474 | cat conftest.$ac_ext >&5 | |
17475 | rm -rf conftest* | |
17476 | wx_cv_type_statvfs_t="unknown" | |
17477 | ||
17478 | fi | |
17479 | rm -f conftest* | |
17480 | ||
17481 | ||
17482 | fi | |
17483 | rm -f conftest* | |
17484 | ||
17485 | fi | |
17486 | ||
17487 | echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6 | |
17488 | ||
17489 | ac_ext=c | |
17490 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17491 | ac_cpp='$CPP $CPPFLAGS' | |
17492 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17493 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17494 | cross_compiling=$ac_cv_prog_cc_cross | |
17495 | ||
17496 | ||
17497 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
17498 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17499 | #define HAVE_STATVFS 1 |
a0b9e27f | 17500 | EOF |
af15babd | 17501 | |
54ab82b3 | 17502 | fi |
4f14bcd8 | 17503 | else |
54ab82b3 | 17504 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
17505 | fi |
17506 | fi | |
af15babd | 17507 | |
54ab82b3 VZ |
17508 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
17509 | cat >> confdefs.h <<EOF | |
17510 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
17511 | EOF | |
17512 | ||
17513 | else | |
17514 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
17515 | fi | |
17516 | ||
4f14bcd8 | 17517 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 17518 | for ac_func in fcntl flock |
af15babd | 17519 | do |
a0b9e27f | 17520 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 17521 | echo "configure:17522: checking for $ac_func" >&5 |
a0b9e27f MB |
17522 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17523 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17524 | else | |
17525 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 17526 | #line 17527 "configure" |
af15babd VZ |
17527 | #include "confdefs.h" |
17528 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17529 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17530 | #include <assert.h> |
17531 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 17532 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17533 | builtin and then its argument prototype would still apply. */ |
17534 | char $ac_func(); | |
17535 | ||
17536 | int main() { | |
17537 | ||
af15babd VZ |
17538 | /* The GNU C library defines this for functions which it implements |
17539 | to always fail with ENOSYS. Some functions are actually named | |
17540 | something starting with __ and the normal name is an alias. */ | |
17541 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17542 | choke me | |
17543 | #else | |
a0b9e27f | 17544 | $ac_func(); |
af15babd VZ |
17545 | #endif |
17546 | ||
a0b9e27f MB |
17547 | ; return 0; } |
17548 | EOF | |
89e6bf6d | 17549 | if { (eval echo configure:17550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17550 | rm -rf conftest* |
17551 | eval "ac_cv_func_$ac_func=yes" | |
17552 | else | |
17553 | echo "configure: failed program was:" >&5 | |
17554 | cat conftest.$ac_ext >&5 | |
17555 | rm -rf conftest* | |
17556 | eval "ac_cv_func_$ac_func=no" | |
17557 | fi | |
17558 | rm -f conftest* | |
17559 | fi | |
17560 | ||
17561 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17562 | echo "$ac_t""yes" 1>&6 | |
17563 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17564 | cat >> confdefs.h <<EOF | |
17565 | #define $ac_tr_func 1 | |
17566 | EOF | |
4f14bcd8 | 17567 | break |
a0b9e27f MB |
17568 | else |
17569 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17570 | fi |
17571 | done | |
17572 | ||
8284b0c5 | 17573 | |
4f14bcd8 | 17574 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
a0b9e27f | 17575 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
17576 | wxUSE_SNGLINST_CHECKER=no |
17577 | fi | |
17578 | fi | |
af15babd | 17579 | |
4f14bcd8 | 17580 | for ac_func in timegm |
af15babd | 17581 | do |
a0b9e27f | 17582 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 17583 | echo "configure:17584: checking for $ac_func" >&5 |
a0b9e27f MB |
17584 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17585 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17586 | else | |
17587 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 17588 | #line 17589 "configure" |
af15babd VZ |
17589 | #include "confdefs.h" |
17590 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17591 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17592 | #include <assert.h> |
17593 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17594 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17595 | builtin and then its argument prototype would still apply. */ |
17596 | char $ac_func(); | |
17597 | ||
17598 | int main() { | |
17599 | ||
af15babd VZ |
17600 | /* The GNU C library defines this for functions which it implements |
17601 | to always fail with ENOSYS. Some functions are actually named | |
17602 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
17603 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
17604 | choke me | |
17605 | #else | |
a0b9e27f | 17606 | $ac_func(); |
247f5006 VZ |
17607 | #endif |
17608 | ||
a0b9e27f MB |
17609 | ; return 0; } |
17610 | EOF | |
89e6bf6d | 17611 | if { (eval echo configure:17612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17612 | rm -rf conftest* |
17613 | eval "ac_cv_func_$ac_func=yes" | |
17614 | else | |
17615 | echo "configure: failed program was:" >&5 | |
17616 | cat conftest.$ac_ext >&5 | |
17617 | rm -rf conftest* | |
17618 | eval "ac_cv_func_$ac_func=no" | |
17619 | fi | |
17620 | rm -f conftest* | |
17621 | fi | |
703e0a69 | 17622 | |
a0b9e27f MB |
17623 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17624 | echo "$ac_t""yes" 1>&6 | |
17625 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17626 | cat >> confdefs.h <<EOF | |
17627 | #define $ac_tr_func 1 | |
17628 | EOF | |
17629 | ||
17630 | else | |
17631 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17632 | fi |
17633 | done | |
17634 | ||
8284b0c5 | 17635 | |
4f14bcd8 | 17636 | for ac_func in putenv setenv |
10f2d63a | 17637 | do |
a0b9e27f | 17638 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 17639 | echo "configure:17640: checking for $ac_func" >&5 |
a0b9e27f MB |
17640 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17642 | else | |
17643 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 17644 | #line 17645 "configure" |
af15babd VZ |
17645 | #include "confdefs.h" |
17646 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17647 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17648 | #include <assert.h> |
17649 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17650 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17651 | builtin and then its argument prototype would still apply. */ |
17652 | char $ac_func(); | |
17653 | ||
17654 | int main() { | |
17655 | ||
af15babd VZ |
17656 | /* The GNU C library defines this for functions which it implements |
17657 | to always fail with ENOSYS. Some functions are actually named | |
17658 | something starting with __ and the normal name is an alias. */ | |
17659 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17660 | choke me | |
17661 | #else | |
a0b9e27f | 17662 | $ac_func(); |
af15babd VZ |
17663 | #endif |
17664 | ||
a0b9e27f MB |
17665 | ; return 0; } |
17666 | EOF | |
89e6bf6d | 17667 | if { (eval echo configure:17668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17668 | rm -rf conftest* |
17669 | eval "ac_cv_func_$ac_func=yes" | |
17670 | else | |
17671 | echo "configure: failed program was:" >&5 | |
17672 | cat conftest.$ac_ext >&5 | |
17673 | rm -rf conftest* | |
17674 | eval "ac_cv_func_$ac_func=no" | |
17675 | fi | |
17676 | rm -f conftest* | |
17677 | fi | |
17678 | ||
17679 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17680 | echo "$ac_t""yes" 1>&6 | |
17681 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17682 | cat >> confdefs.h <<EOF | |
17683 | #define $ac_tr_func 1 | |
17684 | EOF | |
4f14bcd8 | 17685 | break |
a0b9e27f MB |
17686 | else |
17687 | echo "$ac_t""no" 1>&6 | |
af15babd | 17688 | fi |
af15babd VZ |
17689 | done |
17690 | ||
8284b0c5 | 17691 | |
4f14bcd8 GD |
17692 | HAVE_SOME_SLEEP_FUNC=0 |
17693 | if test "$USE_BEOS" = 1; then | |
a0b9e27f | 17694 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17695 | #define HAVE_SLEEP 1 |
a0b9e27f | 17696 | EOF |
af15babd | 17697 | |
4f14bcd8 | 17698 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
17699 | fi |
17700 | ||
4f14bcd8 | 17701 | if test "$USE_DARWIN" = 1; then |
a0b9e27f | 17702 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17703 | #define HAVE_USLEEP 1 |
a0b9e27f | 17704 | EOF |
10f2d63a | 17705 | |
4f14bcd8 | 17706 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
17707 | fi |
17708 | ||
4f14bcd8 GD |
17709 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
17710 | POSIX4_LINK= | |
a0b9e27f | 17711 | for ac_func in nanosleep |
4f14bcd8 | 17712 | do |
a0b9e27f | 17713 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 17714 | echo "configure:17715: checking for $ac_func" >&5 |
a0b9e27f MB |
17715 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17716 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17717 | else | |
17718 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 17719 | #line 17720 "configure" |
10f2d63a | 17720 | #include "confdefs.h" |
4f14bcd8 | 17721 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17722 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17723 | #include <assert.h> |
10f2d63a VZ |
17724 | /* Override any gcc2 internal prototype to avoid an error. */ |
17725 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17726 | builtin and then its argument prototype would still apply. */ |
17727 | char $ac_func(); | |
17728 | ||
17729 | int main() { | |
17730 | ||
4f14bcd8 GD |
17731 | /* The GNU C library defines this for functions which it implements |
17732 | to always fail with ENOSYS. Some functions are actually named | |
17733 | something starting with __ and the normal name is an alias. */ | |
17734 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17735 | choke me | |
17736 | #else | |
a0b9e27f | 17737 | $ac_func(); |
4f14bcd8 GD |
17738 | #endif |
17739 | ||
a0b9e27f MB |
17740 | ; return 0; } |
17741 | EOF | |
89e6bf6d | 17742 | if { (eval echo configure:17743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17743 | rm -rf conftest* |
17744 | eval "ac_cv_func_$ac_func=yes" | |
17745 | else | |
17746 | echo "configure: failed program was:" >&5 | |
17747 | cat conftest.$ac_ext >&5 | |
17748 | rm -rf conftest* | |
17749 | eval "ac_cv_func_$ac_func=no" | |
17750 | fi | |
17751 | rm -f conftest* | |
17752 | fi | |
17753 | ||
17754 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17755 | echo "$ac_t""yes" 1>&6 | |
17756 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17757 | cat >> confdefs.h <<EOF | |
17758 | #define $ac_tr_func 1 | |
17759 | EOF | |
17760 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17761 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 17762 | EOF |
4f14bcd8 | 17763 | |
10f2d63a | 17764 | else |
a0b9e27f MB |
17765 | echo "$ac_t""no" 1>&6 |
17766 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
89e6bf6d | 17767 | echo "configure:17768: checking for nanosleep in -lposix4" >&5 |
a0b9e27f MB |
17768 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
17769 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17770 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17771 | else |
a0b9e27f | 17772 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17773 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 17774 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 17775 | #line 17776 "configure" |
10f2d63a VZ |
17776 | #include "confdefs.h" |
17777 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17778 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17779 | builtin and then its argument prototype would still apply. */ |
17780 | char nanosleep(); | |
17781 | ||
17782 | int main() { | |
17783 | nanosleep() | |
17784 | ; return 0; } | |
17785 | EOF | |
89e6bf6d | 17786 | if { (eval echo configure:17787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17787 | rm -rf conftest* |
17788 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17789 | else | |
17790 | echo "configure: failed program was:" >&5 | |
17791 | cat conftest.$ac_ext >&5 | |
17792 | rm -rf conftest* | |
17793 | eval "ac_cv_lib_$ac_lib_var=no" | |
17794 | fi | |
17795 | rm -f conftest* | |
17796 | LIBS="$ac_save_LIBS" | |
17797 | ||
17798 | fi | |
17799 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17800 | echo "$ac_t""yes" 1>&6 | |
17801 | ||
17802 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17803 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 17804 | EOF |
4f14bcd8 | 17805 | |
3d63bc3a | 17806 | POSIX4_LINK=" -lposix4" |
a0b9e27f | 17807 | |
10f2d63a | 17808 | else |
a0b9e27f | 17809 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17810 | |
a0b9e27f | 17811 | for ac_func in usleep |
4f14bcd8 | 17812 | do |
a0b9e27f | 17813 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 17814 | echo "configure:17815: checking for $ac_func" >&5 |
a0b9e27f MB |
17815 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17816 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17817 | else | |
17818 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 17819 | #line 17820 "configure" |
10f2d63a | 17820 | #include "confdefs.h" |
4f14bcd8 | 17821 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17822 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17823 | #include <assert.h> |
17824 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17825 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17826 | builtin and then its argument prototype would still apply. */ |
17827 | char $ac_func(); | |
17828 | ||
17829 | int main() { | |
17830 | ||
4f14bcd8 GD |
17831 | /* The GNU C library defines this for functions which it implements |
17832 | to always fail with ENOSYS. Some functions are actually named | |
17833 | something starting with __ and the normal name is an alias. */ | |
17834 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17835 | choke me | |
17836 | #else | |
a0b9e27f | 17837 | $ac_func(); |
4f14bcd8 GD |
17838 | #endif |
17839 | ||
a0b9e27f MB |
17840 | ; return 0; } |
17841 | EOF | |
89e6bf6d | 17842 | if { (eval echo configure:17843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17843 | rm -rf conftest* |
17844 | eval "ac_cv_func_$ac_func=yes" | |
17845 | else | |
17846 | echo "configure: failed program was:" >&5 | |
17847 | cat conftest.$ac_ext >&5 | |
17848 | rm -rf conftest* | |
17849 | eval "ac_cv_func_$ac_func=no" | |
17850 | fi | |
17851 | rm -f conftest* | |
17852 | fi | |
17853 | ||
17854 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17855 | echo "$ac_t""yes" 1>&6 | |
17856 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17857 | cat >> confdefs.h <<EOF | |
17858 | #define $ac_tr_func 1 | |
17859 | EOF | |
17860 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17861 | #define HAVE_USLEEP 1 |
a0b9e27f | 17862 | EOF |
4f14bcd8 | 17863 | |
698dcdb6 | 17864 | else |
a0b9e27f MB |
17865 | echo "$ac_t""no" 1>&6 |
17866 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
17867 | ||
10f2d63a | 17868 | fi |
4f14bcd8 | 17869 | done |
10f2d63a | 17870 | |
a0b9e27f MB |
17871 | |
17872 | ||
6232543b | 17873 | fi |
10f2d63a | 17874 | |
a0b9e27f MB |
17875 | |
17876 | ||
1e487827 | 17877 | fi |
4f14bcd8 | 17878 | done |
703e0a69 | 17879 | |
10f2d63a VZ |
17880 | fi |
17881 | ||
4f14bcd8 | 17882 | for ac_func in uname gethostname |
70846f0a | 17883 | do |
a0b9e27f | 17884 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 17885 | echo "configure:17886: checking for $ac_func" >&5 |
a0b9e27f MB |
17886 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17888 | else | |
17889 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 17890 | #line 17891 "configure" |
70846f0a VZ |
17891 | #include "confdefs.h" |
17892 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17893 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
17894 | #include <assert.h> |
17895 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17896 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17897 | builtin and then its argument prototype would still apply. */ |
17898 | char $ac_func(); | |
17899 | ||
17900 | int main() { | |
17901 | ||
70846f0a VZ |
17902 | /* The GNU C library defines this for functions which it implements |
17903 | to always fail with ENOSYS. Some functions are actually named | |
17904 | something starting with __ and the normal name is an alias. */ | |
17905 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17906 | choke me | |
17907 | #else | |
a0b9e27f | 17908 | $ac_func(); |
70846f0a VZ |
17909 | #endif |
17910 | ||
a0b9e27f MB |
17911 | ; return 0; } |
17912 | EOF | |
89e6bf6d | 17913 | if { (eval echo configure:17914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17914 | rm -rf conftest* |
17915 | eval "ac_cv_func_$ac_func=yes" | |
17916 | else | |
17917 | echo "configure: failed program was:" >&5 | |
17918 | cat conftest.$ac_ext >&5 | |
17919 | rm -rf conftest* | |
17920 | eval "ac_cv_func_$ac_func=no" | |
17921 | fi | |
17922 | rm -f conftest* | |
17923 | fi | |
17924 | ||
17925 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17926 | echo "$ac_t""yes" 1>&6 | |
17927 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17928 | cat >> confdefs.h <<EOF | |
17929 | #define $ac_tr_func 1 | |
17930 | EOF | |
4f14bcd8 | 17931 | break |
a0b9e27f MB |
17932 | else |
17933 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
17934 | fi |
17935 | done | |
17936 | ||
8284b0c5 MB |
17937 | |
17938 | ||
a0b9e27f MB |
17939 | ac_ext=C |
17940 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17941 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17942 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17943 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17944 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17945 | |
4f14bcd8 GD |
17946 | |
17947 | for ac_func in strtok_r | |
10f2d63a | 17948 | do |
a0b9e27f | 17949 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 17950 | echo "configure:17951: checking for $ac_func" >&5 |
a0b9e27f MB |
17951 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17952 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17953 | else | |
17954 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 17955 | #line 17956 "configure" |
10f2d63a | 17956 | #include "confdefs.h" |
4f14bcd8 | 17957 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17958 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17959 | #include <assert.h> |
17960 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17961 | #ifdef __cplusplus | |
17962 | extern "C" | |
17963 | #endif | |
17964 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17965 | builtin and then its argument prototype would still apply. */ |
17966 | char $ac_func(); | |
17967 | ||
17968 | int main() { | |
17969 | ||
4f14bcd8 GD |
17970 | /* The GNU C library defines this for functions which it implements |
17971 | to always fail with ENOSYS. Some functions are actually named | |
17972 | something starting with __ and the normal name is an alias. */ | |
17973 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17974 | choke me | |
17975 | #else | |
a0b9e27f | 17976 | $ac_func(); |
4f14bcd8 GD |
17977 | #endif |
17978 | ||
a0b9e27f MB |
17979 | ; return 0; } |
17980 | EOF | |
89e6bf6d | 17981 | if { (eval echo configure:17982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17982 | rm -rf conftest* |
17983 | eval "ac_cv_func_$ac_func=yes" | |
17984 | else | |
17985 | echo "configure: failed program was:" >&5 | |
17986 | cat conftest.$ac_ext >&5 | |
17987 | rm -rf conftest* | |
17988 | eval "ac_cv_func_$ac_func=no" | |
17989 | fi | |
17990 | rm -f conftest* | |
17991 | fi | |
4f14bcd8 | 17992 | |
a0b9e27f MB |
17993 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17994 | echo "$ac_t""yes" 1>&6 | |
17995 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17996 | cat >> confdefs.h <<EOF | |
17997 | #define $ac_tr_func 1 | |
17998 | EOF | |
17999 | ||
18000 | else | |
18001 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18002 | fi |
18003 | done | |
18004 | ||
8284b0c5 | 18005 | |
4f14bcd8 | 18006 | ac_ext=c |
a0b9e27f | 18007 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 18008 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
18009 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18010 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18011 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 18012 | |
5c6fa7d2 | 18013 | |
8284b0c5 | 18014 | INET_LINK= |
4f14bcd8 GD |
18015 | for ac_func in inet_addr |
18016 | do | |
a0b9e27f | 18017 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 18018 | echo "configure:18019: checking for $ac_func" >&5 |
a0b9e27f MB |
18019 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18021 | else | |
18022 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 18023 | #line 18024 "configure" |
10f2d63a | 18024 | #include "confdefs.h" |
4f14bcd8 | 18025 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18026 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18027 | #include <assert.h> |
10f2d63a VZ |
18028 | /* Override any gcc2 internal prototype to avoid an error. */ |
18029 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18030 | builtin and then its argument prototype would still apply. */ |
18031 | char $ac_func(); | |
18032 | ||
18033 | int main() { | |
18034 | ||
4f14bcd8 GD |
18035 | /* The GNU C library defines this for functions which it implements |
18036 | to always fail with ENOSYS. Some functions are actually named | |
18037 | something starting with __ and the normal name is an alias. */ | |
18038 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18039 | choke me | |
18040 | #else | |
a0b9e27f | 18041 | $ac_func(); |
4f14bcd8 GD |
18042 | #endif |
18043 | ||
a0b9e27f MB |
18044 | ; return 0; } |
18045 | EOF | |
89e6bf6d | 18046 | if { (eval echo configure:18047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18047 | rm -rf conftest* |
18048 | eval "ac_cv_func_$ac_func=yes" | |
18049 | else | |
18050 | echo "configure: failed program was:" >&5 | |
18051 | cat conftest.$ac_ext >&5 | |
18052 | rm -rf conftest* | |
18053 | eval "ac_cv_func_$ac_func=no" | |
18054 | fi | |
18055 | rm -f conftest* | |
18056 | fi | |
18057 | ||
18058 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18059 | echo "$ac_t""yes" 1>&6 | |
18060 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18061 | cat >> confdefs.h <<EOF | |
18062 | #define $ac_tr_func 1 | |
18063 | EOF | |
18064 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18065 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18066 | EOF |
10f2d63a VZ |
18067 | |
18068 | else | |
a0b9e27f MB |
18069 | echo "$ac_t""no" 1>&6 |
18070 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
89e6bf6d | 18071 | echo "configure:18072: checking for inet_addr in -lnsl" >&5 |
a0b9e27f MB |
18072 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
18073 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18074 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18075 | else |
a0b9e27f | 18076 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18077 | LIBS="-lnsl $LIBS" |
a0b9e27f | 18078 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 18079 | #line 18080 "configure" |
10f2d63a VZ |
18080 | #include "confdefs.h" |
18081 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18082 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18083 | builtin and then its argument prototype would still apply. */ |
18084 | char inet_addr(); | |
18085 | ||
18086 | int main() { | |
18087 | inet_addr() | |
18088 | ; return 0; } | |
18089 | EOF | |
89e6bf6d | 18090 | if { (eval echo configure:18091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18091 | rm -rf conftest* |
18092 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18093 | else | |
18094 | echo "configure: failed program was:" >&5 | |
18095 | cat conftest.$ac_ext >&5 | |
18096 | rm -rf conftest* | |
18097 | eval "ac_cv_lib_$ac_lib_var=no" | |
18098 | fi | |
18099 | rm -f conftest* | |
18100 | LIBS="$ac_save_LIBS" | |
18101 | ||
18102 | fi | |
18103 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18104 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18105 | INET_LINK="nsl" |
10f2d63a | 18106 | else |
a0b9e27f MB |
18107 | echo "$ac_t""no" 1>&6 |
18108 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
89e6bf6d | 18109 | echo "configure:18110: checking for inet_addr in -lresolv" >&5 |
a0b9e27f MB |
18110 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
18111 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18112 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18113 | else |
a0b9e27f | 18114 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18115 | LIBS="-lresolv $LIBS" |
a0b9e27f | 18116 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 18117 | #line 18118 "configure" |
7b4a847f | 18118 | #include "confdefs.h" |
5c6fa7d2 | 18119 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 18120 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18121 | builtin and then its argument prototype would still apply. */ |
18122 | char inet_addr(); | |
18123 | ||
18124 | int main() { | |
18125 | inet_addr() | |
18126 | ; return 0; } | |
18127 | EOF | |
89e6bf6d | 18128 | if { (eval echo configure:18129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18129 | rm -rf conftest* |
18130 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18131 | else | |
18132 | echo "configure: failed program was:" >&5 | |
18133 | cat conftest.$ac_ext >&5 | |
18134 | rm -rf conftest* | |
18135 | eval "ac_cv_lib_$ac_lib_var=no" | |
18136 | fi | |
18137 | rm -f conftest* | |
18138 | LIBS="$ac_save_LIBS" | |
18139 | ||
18140 | fi | |
18141 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18142 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18143 | INET_LINK="resolv" |
698dcdb6 | 18144 | else |
a0b9e27f MB |
18145 | echo "$ac_t""no" 1>&6 |
18146 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
89e6bf6d | 18147 | echo "configure:18148: checking for inet_addr in -lsocket" >&5 |
a0b9e27f MB |
18148 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
18149 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18150 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 18151 | else |
a0b9e27f | 18152 | ac_save_LIBS="$LIBS" |
3c011993 | 18153 | LIBS="-lsocket $LIBS" |
a0b9e27f | 18154 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 18155 | #line 18156 "configure" |
3c011993 VZ |
18156 | #include "confdefs.h" |
18157 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18158 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18159 | builtin and then its argument prototype would still apply. */ |
18160 | char inet_addr(); | |
4f14bcd8 | 18161 | |
a0b9e27f MB |
18162 | int main() { |
18163 | inet_addr() | |
18164 | ; return 0; } | |
18165 | EOF | |
89e6bf6d | 18166 | if { (eval echo configure:18167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18167 | rm -rf conftest* |
18168 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18169 | else | |
18170 | echo "configure: failed program was:" >&5 | |
18171 | cat conftest.$ac_ext >&5 | |
18172 | rm -rf conftest* | |
18173 | eval "ac_cv_lib_$ac_lib_var=no" | |
8284b0c5 | 18174 | fi |
a0b9e27f MB |
18175 | rm -f conftest* |
18176 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18177 | |
7b4a847f | 18178 | fi |
a0b9e27f MB |
18179 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18180 | echo "$ac_t""yes" 1>&6 | |
18181 | INET_LINK="socket" | |
18182 | ||
18183 | else | |
18184 | echo "$ac_t""no" 1>&6 | |
18185 | fi | |
579d8138 | 18186 | |
a0b9e27f | 18187 | |
5c6fa7d2 | 18188 | fi |
52127426 | 18189 | |
a0b9e27f MB |
18190 | |
18191 | fi | |
247f5006 | 18192 | |
a0b9e27f | 18193 | |
8284b0c5 | 18194 | |
698dcdb6 | 18195 | fi |
4f14bcd8 GD |
18196 | done |
18197 | ||
8284b0c5 | 18198 | |
4f14bcd8 GD |
18199 | for ac_func in inet_aton |
18200 | do | |
a0b9e27f | 18201 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 18202 | echo "configure:18203: checking for $ac_func" >&5 |
a0b9e27f MB |
18203 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18204 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18205 | else | |
18206 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 18207 | #line 18208 "configure" |
f6bcfd97 | 18208 | #include "confdefs.h" |
4f14bcd8 | 18209 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18210 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18211 | #include <assert.h> |
f6bcfd97 BP |
18212 | /* Override any gcc2 internal prototype to avoid an error. */ |
18213 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18214 | builtin and then its argument prototype would still apply. */ |
18215 | char $ac_func(); | |
18216 | ||
18217 | int main() { | |
18218 | ||
4f14bcd8 GD |
18219 | /* The GNU C library defines this for functions which it implements |
18220 | to always fail with ENOSYS. Some functions are actually named | |
18221 | something starting with __ and the normal name is an alias. */ | |
18222 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18223 | choke me | |
18224 | #else | |
a0b9e27f | 18225 | $ac_func(); |
4f14bcd8 GD |
18226 | #endif |
18227 | ||
a0b9e27f MB |
18228 | ; return 0; } |
18229 | EOF | |
89e6bf6d | 18230 | if { (eval echo configure:18231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18231 | rm -rf conftest* |
18232 | eval "ac_cv_func_$ac_func=yes" | |
18233 | else | |
18234 | echo "configure: failed program was:" >&5 | |
18235 | cat conftest.$ac_ext >&5 | |
18236 | rm -rf conftest* | |
18237 | eval "ac_cv_func_$ac_func=no" | |
18238 | fi | |
18239 | rm -f conftest* | |
18240 | fi | |
18241 | ||
18242 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18243 | echo "$ac_t""yes" 1>&6 | |
18244 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18245 | cat >> confdefs.h <<EOF | |
18246 | #define $ac_tr_func 1 | |
18247 | EOF | |
18248 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18249 | #define HAVE_INET_ATON 1 |
a0b9e27f | 18250 | EOF |
4f14bcd8 | 18251 | |
10f2d63a | 18252 | else |
a0b9e27f MB |
18253 | echo "$ac_t""no" 1>&6 |
18254 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
89e6bf6d | 18255 | echo "configure:18256: checking for inet_aton in -l$INET_LINK" >&5 |
a0b9e27f MB |
18256 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
18257 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18258 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 18259 | else |
a0b9e27f | 18260 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18261 | LIBS="-l$INET_LINK $LIBS" |
a0b9e27f | 18262 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 18263 | #line 18264 "configure" |
10f2d63a | 18264 | #include "confdefs.h" |
6232543b | 18265 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 18266 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18267 | builtin and then its argument prototype would still apply. */ |
18268 | char inet_aton(); | |
18269 | ||
18270 | int main() { | |
18271 | inet_aton() | |
18272 | ; return 0; } | |
18273 | EOF | |
89e6bf6d | 18274 | if { (eval echo configure:18275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18275 | rm -rf conftest* |
18276 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18277 | else | |
18278 | echo "configure: failed program was:" >&5 | |
18279 | cat conftest.$ac_ext >&5 | |
18280 | rm -rf conftest* | |
18281 | eval "ac_cv_lib_$ac_lib_var=no" | |
18282 | fi | |
18283 | rm -f conftest* | |
18284 | LIBS="$ac_save_LIBS" | |
4f14bcd8 | 18285 | |
10f2d63a | 18286 | fi |
a0b9e27f MB |
18287 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18288 | echo "$ac_t""yes" 1>&6 | |
18289 | cat >> confdefs.h <<\EOF | |
18290 | #define HAVE_INET_ATON 1 | |
18291 | EOF | |
10f2d63a | 18292 | |
a0b9e27f MB |
18293 | else |
18294 | echo "$ac_t""no" 1>&6 | |
18295 | fi | |
247f5006 | 18296 | |
a0b9e27f | 18297 | |
10f2d63a | 18298 | fi |
4f14bcd8 | 18299 | done |
10f2d63a | 18300 | |
8284b0c5 | 18301 | |
4f14bcd8 | 18302 | if test "x$INET_LINK" != "x"; then |
a0b9e27f | 18303 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18304 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18305 | EOF |
4f14bcd8 | 18306 | |
3d63bc3a | 18307 | INET_LINK=" -l$INET_LINK" |
6232543b | 18308 | fi |
10f2d63a | 18309 | |
1e487827 | 18310 | fi |
703e0a69 | 18311 | |
8284b0c5 | 18312 | |
a0b9e27f | 18313 | cat > confcache <<\EOF |
4f14bcd8 GD |
18314 | # This file is a shell script that caches the results of configure |
18315 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
18316 | # scripts and configure runs. It is not useful on other systems. |
18317 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 18318 | # |
a0b9e27f MB |
18319 | # By default, configure uses ./config.cache as the cache file, |
18320 | # creating it if it does not exist already. You can give configure | |
18321 | # the --cache-file=FILE option to use a different cache file; that is | |
18322 | # what configure does when it calls configure scripts in | |
18323 | # subdirectories, so they share the cache. | |
18324 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18325 | # config.status only pays attention to the cache file if you give it the | |
18326 | # --recheck option to rerun configure. | |
4f14bcd8 | 18327 | # |
a0b9e27f | 18328 | EOF |
4f14bcd8 GD |
18329 | # The following way of writing the cache mishandles newlines in values, |
18330 | # but we know of no workaround that is simple, portable, and efficient. | |
18331 | # So, don't put newlines in cache variables' values. | |
18332 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18333 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
18334 | (set) 2>&1 | |
18335 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18336 | *ac_space=\ *) | |
18337 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18338 | # turns \\\\ into \\, and sed turns \\ into \). | |
18339 | sed -n \ | |
18340 | -e "s/'/'\\\\''/g" \ | |
18341 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18342 | ;; | |
18343 | *) | |
18344 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18345 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18346 | ;; | |
18347 | esac >> confcache | |
18348 | if cmp -s $cache_file confcache; then | |
18349 | : | |
18350 | else | |
4f14bcd8 | 18351 | if test -w $cache_file; then |
a0b9e27f MB |
18352 | echo "updating cache $cache_file" |
18353 | cat confcache > $cache_file | |
f6bcfd97 | 18354 | else |
4f14bcd8 | 18355 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 18356 | fi |
4f14bcd8 GD |
18357 | fi |
18358 | rm -f confcache | |
f6bcfd97 | 18359 | |
8284b0c5 | 18360 | |
a0b9e27f | 18361 | |
009fead0 | 18362 | CPP_MT_FLAG= |
4f14bcd8 GD |
18363 | if test "$TOOLKIT" != "MSW"; then |
18364 | ||
a0b9e27f | 18365 | |
7274f1c7 | 18366 | THREADS_LINK= |
009fead0 | 18367 | THREADS_CFLAGS= |
7274f1c7 RL |
18368 | |
18369 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 18370 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 18371 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
18372 | wxUSE_THREADS="no" |
18373 | fi | |
4f14bcd8 | 18374 | fi |
4f14bcd8 | 18375 | |
7274f1c7 | 18376 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f MB |
18377 | |
18378 | ||
009fead0 VZ |
18379 | THREAD_OPTS="-pthread" |
18380 | case "${host}" in | |
18381 | *-*-solaris2* | *-*-sunos4* ) | |
18382 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 18383 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
18384 | else |
18385 | THREAD_OPTS="-mt $THREAD_OPTS" | |
18386 | fi | |
18387 | ;; | |
18388 | *-*-freebsd*) | |
18389 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
18390 | ;; | |
17234b26 MB |
18391 | *-*-darwin* | *-*-cygwin* ) |
18392 | THREAD_OPTS="" | |
4101db81 | 18393 | ;; |
8f4a9a10 | 18394 | *-*-aix*) |
009fead0 VZ |
18395 | THREAD_OPTS="pthreads" |
18396 | ;; | |
009fead0 | 18397 | esac |
4f14bcd8 | 18398 | |
02a1dfba | 18399 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 18400 | |
009fead0 VZ |
18401 | THREADS_OK=no |
18402 | for flag in $THREAD_OPTS; do | |
18403 | case $flag in | |
18404 | none) | |
a0b9e27f | 18405 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
89e6bf6d | 18406 | echo "configure:18407: checking whether pthreads work without any flags" >&5 |
009fead0 | 18407 | ;; |
698dcdb6 | 18408 | |
009fead0 | 18409 | -*) |
a0b9e27f | 18410 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
89e6bf6d | 18411 | echo "configure:18412: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
18412 | THREADS_CFLAGS="$flag" |
18413 | ;; | |
698dcdb6 | 18414 | |
009fead0 | 18415 | *) |
a0b9e27f | 18416 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
89e6bf6d | 18417 | echo "configure:18418: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
18418 | THREADS_LINK="-l$flag" |
18419 | ;; | |
18420 | esac | |
10f2d63a | 18421 | |
009fead0 VZ |
18422 | save_LIBS="$LIBS" |
18423 | save_CFLAGS="$CFLAGS" | |
18424 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 18425 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 18426 | |
a0b9e27f | 18427 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 18428 | #line 18429 "configure" |
009fead0 VZ |
18429 | #include "confdefs.h" |
18430 | #include <pthread.h> | |
a0b9e27f | 18431 | int main() { |
009fead0 | 18432 | pthread_create(0,0,0,0); |
a0b9e27f MB |
18433 | ; return 0; } |
18434 | EOF | |
89e6bf6d | 18435 | if { (eval echo configure:18436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 18436 | rm -rf conftest* |
009fead0 | 18437 | THREADS_OK=yes |
10f2d63a | 18438 | else |
a0b9e27f MB |
18439 | echo "configure: failed program was:" >&5 |
18440 | cat conftest.$ac_ext >&5 | |
6232543b | 18441 | fi |
a0b9e27f | 18442 | rm -f conftest* |
698dcdb6 | 18443 | |
009fead0 VZ |
18444 | LIBS="$save_LIBS" |
18445 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 18446 | |
a0b9e27f | 18447 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
18448 | if test "x$THREADS_OK" = "xyes"; then |
18449 | break; | |
18450 | fi | |
d9b9876f | 18451 | |
009fead0 VZ |
18452 | THREADS_LINK="" |
18453 | THREADS_CFLAGS="" | |
18454 | done | |
4f14bcd8 | 18455 | |
009fead0 VZ |
18456 | if test "x$THREADS_OK" != "xyes"; then |
18457 | wxUSE_THREADS=no | |
a0b9e27f | 18458 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 18459 | else |
db82f09e VZ |
18460 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
18461 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 18462 | |
a0b9e27f | 18463 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
89e6bf6d | 18464 | echo "configure:18465: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
18465 | flag=no |
18466 | case "${host}" in | |
2b5f62a0 VZ |
18467 | *-aix*) |
18468 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
18469 | flag="-D_THREAD_SAFE" | |
18470 | ;; | |
18471 | *-freebsd*) | |
009fead0 VZ |
18472 | flag="-D_THREAD_SAFE" |
18473 | ;; | |
06313569 GD |
18474 | *-hp-hpux* ) |
18475 | flag="-D_REENTRANT" | |
18476 | ;; | |
009fead0 VZ |
18477 | *solaris* | alpha*-osf*) |
18478 | flag="-D_REENTRANT" | |
18479 | ;; | |
18480 | esac | |
a0b9e27f | 18481 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 18482 | if test "x$flag" != xno; then |
04727afd | 18483 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
18484 | fi |
18485 | ||
009fead0 | 18486 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 18487 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
18488 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
18489 | fi | |
18490 | fi | |
4f14bcd8 | 18491 | fi |
4f14bcd8 | 18492 | |
7274f1c7 | 18493 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f | 18494 | for ac_func in thr_setconcurrency |
4f14bcd8 | 18495 | do |
a0b9e27f | 18496 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 18497 | echo "configure:18498: checking for $ac_func" >&5 |
a0b9e27f MB |
18498 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18499 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18500 | else | |
18501 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 18502 | #line 18503 "configure" |
d9b9876f | 18503 | #include "confdefs.h" |
4f14bcd8 | 18504 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18505 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18506 | #include <assert.h> |
18507 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18508 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18509 | builtin and then its argument prototype would still apply. */ |
18510 | char $ac_func(); | |
18511 | ||
18512 | int main() { | |
18513 | ||
4f14bcd8 GD |
18514 | /* The GNU C library defines this for functions which it implements |
18515 | to always fail with ENOSYS. Some functions are actually named | |
18516 | something starting with __ and the normal name is an alias. */ | |
18517 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18518 | choke me | |
18519 | #else | |
a0b9e27f | 18520 | $ac_func(); |
4f14bcd8 GD |
18521 | #endif |
18522 | ||
a0b9e27f MB |
18523 | ; return 0; } |
18524 | EOF | |
89e6bf6d | 18525 | if { (eval echo configure:18526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18526 | rm -rf conftest* |
18527 | eval "ac_cv_func_$ac_func=yes" | |
18528 | else | |
18529 | echo "configure: failed program was:" >&5 | |
18530 | cat conftest.$ac_ext >&5 | |
18531 | rm -rf conftest* | |
18532 | eval "ac_cv_func_$ac_func=no" | |
18533 | fi | |
18534 | rm -f conftest* | |
18535 | fi | |
698dcdb6 | 18536 | |
a0b9e27f MB |
18537 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18538 | echo "$ac_t""yes" 1>&6 | |
18539 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18540 | cat >> confdefs.h <<EOF | |
18541 | #define $ac_tr_func 1 | |
18542 | EOF | |
18543 | ||
18544 | else | |
18545 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 18546 | fi |
4f14bcd8 | 18547 | done |
10f2d63a | 18548 | |
8284b0c5 | 18549 | |
a0b9e27f | 18550 | for ac_hdr in sched.h |
4f14bcd8 | 18551 | do |
a0b9e27f MB |
18552 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18553 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
89e6bf6d | 18554 | echo "configure:18555: checking for $ac_hdr" >&5 |
a0b9e27f MB |
18555 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18556 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18557 | else | |
18558 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 18559 | #line 18560 "configure" |
247f5006 | 18560 | #include "confdefs.h" |
a0b9e27f MB |
18561 | #include <$ac_hdr> |
18562 | EOF | |
18563 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 18564 | { (eval echo configure:18565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
18565 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18566 | if test -z "$ac_err"; then | |
18567 | rm -rf conftest* | |
18568 | eval "ac_cv_header_$ac_safe=yes" | |
18569 | else | |
18570 | echo "$ac_err" >&5 | |
18571 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 18572 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
18573 | rm -rf conftest* |
18574 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 18575 | fi |
a0b9e27f | 18576 | rm -f conftest* |
10f2d63a | 18577 | fi |
a0b9e27f MB |
18578 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18579 | echo "$ac_t""yes" 1>&6 | |
18580 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18581 | cat >> confdefs.h <<EOF | |
18582 | #define $ac_tr_hdr 1 | |
18583 | EOF | |
18584 | ||
18585 | else | |
18586 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 18587 | fi |
4f14bcd8 | 18588 | done |
f6bcfd97 | 18589 | |
009fead0 | 18590 | if test "$ac_cv_header_sched_h" = "yes"; then |
a0b9e27f | 18591 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
89e6bf6d | 18592 | echo "configure:18593: checking for sched_yield" >&5 |
a0b9e27f MB |
18593 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
18594 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18595 | else |
a0b9e27f | 18596 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 18597 | #line 18598 "configure" |
4f14bcd8 | 18598 | #include "confdefs.h" |
009fead0 | 18599 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18600 | which can conflict with char sched_yield(); below. */ |
009fead0 | 18601 | #include <assert.h> |
4f14bcd8 GD |
18602 | /* Override any gcc2 internal prototype to avoid an error. */ |
18603 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18604 | builtin and then its argument prototype would still apply. */ |
18605 | char sched_yield(); | |
18606 | ||
18607 | int main() { | |
18608 | ||
009fead0 VZ |
18609 | /* The GNU C library defines this for functions which it implements |
18610 | to always fail with ENOSYS. Some functions are actually named | |
18611 | something starting with __ and the normal name is an alias. */ | |
18612 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
18613 | choke me | |
18614 | #else | |
a0b9e27f | 18615 | sched_yield(); |
009fead0 VZ |
18616 | #endif |
18617 | ||
a0b9e27f MB |
18618 | ; return 0; } |
18619 | EOF | |
89e6bf6d | 18620 | if { (eval echo configure:18621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18621 | rm -rf conftest* |
18622 | eval "ac_cv_func_sched_yield=yes" | |
18623 | else | |
18624 | echo "configure: failed program was:" >&5 | |
18625 | cat conftest.$ac_ext >&5 | |
18626 | rm -rf conftest* | |
18627 | eval "ac_cv_func_sched_yield=no" | |
18628 | fi | |
18629 | rm -f conftest* | |
18630 | fi | |
18631 | ||
18632 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
18633 | echo "$ac_t""yes" 1>&6 | |
18634 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18635 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18636 | EOF |
10f2d63a | 18637 | |
4f14bcd8 | 18638 | else |
a0b9e27f | 18639 | echo "$ac_t""no" 1>&6 |
009fead0 | 18640 | |
a0b9e27f | 18641 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
89e6bf6d | 18642 | echo "configure:18643: checking for sched_yield in -lposix4" >&5 |
a0b9e27f MB |
18643 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
18644 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18645 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18646 | else |
a0b9e27f | 18647 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18648 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18649 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 18650 | #line 18651 "configure" |
4f14bcd8 GD |
18651 | #include "confdefs.h" |
18652 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18653 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18654 | builtin and then its argument prototype would still apply. */ |
18655 | char sched_yield(); | |
18656 | ||
18657 | int main() { | |
18658 | sched_yield() | |
18659 | ; return 0; } | |
18660 | EOF | |
89e6bf6d | 18661 | if { (eval echo configure:18662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18662 | rm -rf conftest* |
18663 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18664 | else | |
18665 | echo "configure: failed program was:" >&5 | |
18666 | cat conftest.$ac_ext >&5 | |
18667 | rm -rf conftest* | |
18668 | eval "ac_cv_lib_$ac_lib_var=no" | |
18669 | fi | |
18670 | rm -f conftest* | |
18671 | LIBS="$ac_save_LIBS" | |
18672 | ||
18673 | fi | |
18674 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18675 | echo "$ac_t""yes" 1>&6 | |
18676 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18677 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18678 | EOF |
3d63bc3a | 18679 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 18680 | else |
a0b9e27f MB |
18681 | echo "$ac_t""no" 1>&6 |
18682 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
18683 | ||
54276ccf VZ |
18684 | fi |
18685 | ||
a0b9e27f MB |
18686 | |
18687 | ||
4f14bcd8 | 18688 | fi |
698dcdb6 | 18689 | |
009fead0 | 18690 | fi |
10f2d63a | 18691 | |
7274f1c7 | 18692 | HAVE_PRIOR_FUNCS=0 |
a0b9e27f | 18693 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
89e6bf6d | 18694 | echo "configure:18695: checking for pthread_attr_getschedpolicy" >&5 |
a0b9e27f MB |
18695 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
18696 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 18697 | else |
a0b9e27f | 18698 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 18699 | #line 18700 "configure" |
422107f9 | 18700 | #include "confdefs.h" |
009fead0 | 18701 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18702 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 18703 | #include <assert.h> |
4f14bcd8 GD |
18704 | /* Override any gcc2 internal prototype to avoid an error. */ |
18705 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18706 | builtin and then its argument prototype would still apply. */ |
18707 | char pthread_attr_getschedpolicy(); | |
18708 | ||
18709 | int main() { | |
18710 | ||
009fead0 VZ |
18711 | /* The GNU C library defines this for functions which it implements |
18712 | to always fail with ENOSYS. Some functions are actually named | |
18713 | something starting with __ and the normal name is an alias. */ | |
18714 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
18715 | choke me | |
18716 | #else | |
a0b9e27f | 18717 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
18718 | #endif |
18719 | ||
a0b9e27f MB |
18720 | ; return 0; } |
18721 | EOF | |
89e6bf6d | 18722 | if { (eval echo configure:18723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18723 | rm -rf conftest* |
18724 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
18725 | else | |
18726 | echo "configure: failed program was:" >&5 | |
18727 | cat conftest.$ac_ext >&5 | |
18728 | rm -rf conftest* | |
18729 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
18730 | fi | |
18731 | rm -f conftest* | |
18732 | fi | |
18733 | ||
18734 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
18735 | echo "$ac_t""yes" 1>&6 | |
18736 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
89e6bf6d | 18737 | echo "configure:18738: checking for pthread_attr_setschedparam" >&5 |
a0b9e27f MB |
18738 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
18739 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 18740 | else |
a0b9e27f | 18741 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 18742 | #line 18743 "configure" |
a0b9e27f MB |
18743 | #include "confdefs.h" |
18744 | /* System header to define __stub macros and hopefully few prototypes, | |
18745 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 18746 | #include <assert.h> |
422107f9 VZ |
18747 | /* Override any gcc2 internal prototype to avoid an error. */ |
18748 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18749 | builtin and then its argument prototype would still apply. */ |
18750 | char pthread_attr_setschedparam(); | |
18751 | ||
18752 | int main() { | |
18753 | ||
009fead0 VZ |
18754 | /* The GNU C library defines this for functions which it implements |
18755 | to always fail with ENOSYS. Some functions are actually named | |
18756 | something starting with __ and the normal name is an alias. */ | |
18757 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
18758 | choke me | |
18759 | #else | |
a0b9e27f | 18760 | pthread_attr_setschedparam(); |
009fead0 VZ |
18761 | #endif |
18762 | ||
a0b9e27f MB |
18763 | ; return 0; } |
18764 | EOF | |
89e6bf6d | 18765 | if { (eval echo configure:18766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18766 | rm -rf conftest* |
18767 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
18768 | else | |
18769 | echo "configure: failed program was:" >&5 | |
18770 | cat conftest.$ac_ext >&5 | |
18771 | rm -rf conftest* | |
18772 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
18773 | fi | |
18774 | rm -f conftest* | |
18775 | fi | |
18776 | ||
18777 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
18778 | echo "$ac_t""yes" 1>&6 | |
18779 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
89e6bf6d | 18780 | echo "configure:18781: checking for sched_get_priority_max" >&5 |
a0b9e27f MB |
18781 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
18782 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18783 | else | |
18784 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 18785 | #line 18786 "configure" |
422107f9 | 18786 | #include "confdefs.h" |
009fead0 VZ |
18787 | /* System header to define __stub macros and hopefully few prototypes |
18788 | else | |
a0b9e27f MB |
18789 | echo "$ac_t""no" 1>&6 |
18790 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 18791 | #include <assert.h> |
4f14bcd8 GD |
18792 | /* Override any gcc2 internal prototype to avoid an error. */ |
18793 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18794 | builtin and then its argument prototype would still apply. */ |
18795 | char sched_get_priority_max(); | |
18796 | ||
18797 | int main() { | |
18798 | ||
009fead0 VZ |
18799 | /* The GNU C library defines this for functions which it implements |
18800 | to always fail with ENOSYS. Some functions are actually named | |
18801 | something starting with __ and the normal name is an alias. */ | |
18802 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
18803 | choke me | |
18804 | #else | |
a0b9e27f | 18805 | sched_get_priority_max(); |
009fead0 VZ |
18806 | #endif |
18807 | ||
a0b9e27f MB |
18808 | ; return 0; } |
18809 | EOF | |
89e6bf6d | 18810 | if { (eval echo configure:18811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18811 | rm -rf conftest* |
18812 | eval "ac_cv_func_sched_get_priority_max=yes" | |
18813 | else | |
18814 | echo "configure: failed program was:" >&5 | |
18815 | cat conftest.$ac_ext >&5 | |
18816 | rm -rf conftest* | |
18817 | eval "ac_cv_func_sched_get_priority_max=no" | |
18818 | fi | |
18819 | rm -f conftest* | |
18820 | fi | |
18821 | ||
18822 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
18823 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
18824 | HAVE_PRIOR_FUNCS=1 |
18825 | else | |
a0b9e27f MB |
18826 | echo "$ac_t""no" 1>&6 |
18827 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
89e6bf6d | 18828 | echo "configure:18829: checking for sched_get_priority_max in -lposix4" >&5 |
a0b9e27f MB |
18829 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
18830 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18831 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18832 | else |
a0b9e27f | 18833 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18834 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18835 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 18836 | #line 18837 "configure" |
422107f9 VZ |
18837 | #include "confdefs.h" |
18838 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18839 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18840 | builtin and then its argument prototype would still apply. */ |
18841 | char sched_get_priority_max(); | |
18842 | ||
18843 | int main() { | |
18844 | sched_get_priority_max() | |
18845 | ; return 0; } | |
18846 | EOF | |
89e6bf6d | 18847 | if { (eval echo configure:18848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18848 | rm -rf conftest* |
18849 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18850 | else | |
18851 | echo "configure: failed program was:" >&5 | |
18852 | cat conftest.$ac_ext >&5 | |
18853 | rm -rf conftest* | |
18854 | eval "ac_cv_lib_$ac_lib_var=no" | |
18855 | fi | |
18856 | rm -f conftest* | |
18857 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18858 | |
a0b9e27f MB |
18859 | fi |
18860 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18861 | echo "$ac_t""yes" 1>&6 | |
18862 | ||
7274f1c7 RL |
18863 | HAVE_PRIOR_FUNCS=1 |
18864 | POSIX4_LINK=" -lposix4" | |
a0b9e27f MB |
18865 | |
18866 | else | |
18867 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 18868 | fi |
463abc64 | 18869 | |
a0b9e27f | 18870 | |
328a083c | 18871 | fi |
463abc64 | 18872 | |
a0b9e27f MB |
18873 | |
18874 | else | |
18875 | echo "$ac_t""no" 1>&6 | |
7b4a847f | 18876 | fi |
579d8138 | 18877 | |
a0b9e27f | 18878 | |
5c6fa7d2 | 18879 | fi |
52127426 | 18880 | |
8284b0c5 | 18881 | |
7274f1c7 | 18882 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
a0b9e27f | 18883 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18884 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
a0b9e27f | 18885 | EOF |
463abc64 | 18886 | |
7274f1c7 | 18887 | else |
a0b9e27f | 18888 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 18889 | fi |
463abc64 | 18890 | |
a0b9e27f | 18891 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
89e6bf6d | 18892 | echo "configure:18893: checking for pthread_cancel" >&5 |
a0b9e27f MB |
18893 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
18894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18895 | else |
a0b9e27f | 18896 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 18897 | #line 18898 "configure" |
422107f9 | 18898 | #include "confdefs.h" |
009fead0 | 18899 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18900 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 18901 | #include <assert.h> |
422107f9 VZ |
18902 | /* Override any gcc2 internal prototype to avoid an error. */ |
18903 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18904 | builtin and then its argument prototype would still apply. */ |
18905 | char pthread_cancel(); | |
18906 | ||
18907 | int main() { | |
18908 | ||
009fead0 VZ |
18909 | /* The GNU C library defines this for functions which it implements |
18910 | to always fail with ENOSYS. Some functions are actually named | |
18911 | something starting with __ and the normal name is an alias. */ | |
18912 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
18913 | choke me | |
18914 | #else | |
a0b9e27f | 18915 | pthread_cancel(); |
009fead0 VZ |
18916 | #endif |
18917 | ||
a0b9e27f MB |
18918 | ; return 0; } |
18919 | EOF | |
89e6bf6d | 18920 | if { (eval echo configure:18921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18921 | rm -rf conftest* |
18922 | eval "ac_cv_func_pthread_cancel=yes" | |
18923 | else | |
18924 | echo "configure: failed program was:" >&5 | |
18925 | cat conftest.$ac_ext >&5 | |
18926 | rm -rf conftest* | |
18927 | eval "ac_cv_func_pthread_cancel=no" | |
18928 | fi | |
18929 | rm -f conftest* | |
18930 | fi | |
18931 | ||
18932 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
18933 | echo "$ac_t""yes" 1>&6 | |
18934 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18935 | #define HAVE_PTHREAD_CANCEL 1 |
a0b9e27f | 18936 | EOF |
4f14bcd8 | 18937 | |
698dcdb6 | 18938 | else |
a0b9e27f MB |
18939 | echo "$ac_t""no" 1>&6 |
18940 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
18941 | fi |
18942 | ||
5c6fa7d2 | 18943 | |
a0b9e27f | 18944 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
89e6bf6d | 18945 | echo "configure:18946: checking for pthread_cleanup_push/pop" >&5 |
a0b9e27f MB |
18946 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
18947 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 18948 | else |
a0b9e27f MB |
18949 | |
18950 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 18951 | #line 18952 "configure" |
4f14bcd8 GD |
18952 | #include "confdefs.h" |
18953 | #include <pthread.h> | |
a0b9e27f | 18954 | int main() { |
4f14bcd8 | 18955 | |
7274f1c7 RL |
18956 | pthread_cleanup_push(NULL, NULL); |
18957 | pthread_cleanup_pop(0); | |
a0b9e27f MB |
18958 | |
18959 | ; return 0; } | |
18960 | EOF | |
89e6bf6d | 18961 | if { (eval echo configure:18962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18962 | rm -rf conftest* |
18963 | ||
7274f1c7 | 18964 | wx_cv_func_pthread_cleanup_push=yes |
a0b9e27f | 18965 | |
4f14bcd8 | 18966 | else |
a0b9e27f MB |
18967 | echo "configure: failed program was:" >&5 |
18968 | cat conftest.$ac_ext >&5 | |
18969 | rm -rf conftest* | |
18970 | ||
7274f1c7 | 18971 | wx_cv_func_pthread_cleanup_push=no |
a0b9e27f | 18972 | |
5c6fa7d2 | 18973 | fi |
a0b9e27f MB |
18974 | rm -f conftest* |
18975 | ||
247f5006 | 18976 | fi |
a0b9e27f MB |
18977 | |
18978 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 18979 | |
7274f1c7 | 18980 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
a0b9e27f | 18981 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18982 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
a0b9e27f | 18983 | EOF |
c7a2bf27 | 18984 | |
7274f1c7 | 18985 | fi |
4f14bcd8 | 18986 | |
a0b9e27f MB |
18987 | |
18988 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
89e6bf6d | 18989 | echo "configure:18990: checking for pthread_mutexattr_t" >&5 |
a0b9e27f MB |
18990 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
18991 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 18992 | else |
a0b9e27f MB |
18993 | |
18994 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 18995 | #line 18996 "configure" |
0dcf9893 | 18996 | #include "confdefs.h" |
4f14bcd8 | 18997 | #include <pthread.h> |
a0b9e27f | 18998 | int main() { |
4f14bcd8 | 18999 | |
7274f1c7 RL |
19000 | pthread_mutexattr_t attr; |
19001 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
a0b9e27f MB |
19002 | |
19003 | ; return 0; } | |
19004 | EOF | |
89e6bf6d | 19005 | if { (eval echo configure:19006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19006 | rm -rf conftest* |
19007 | ||
7274f1c7 | 19008 | wx_cv_type_pthread_mutexattr_t=yes |
a0b9e27f | 19009 | |
3fed1840 | 19010 | else |
a0b9e27f MB |
19011 | echo "configure: failed program was:" >&5 |
19012 | cat conftest.$ac_ext >&5 | |
19013 | rm -rf conftest* | |
19014 | ||
7274f1c7 | 19015 | wx_cv_type_pthread_mutexattr_t=no |
a0b9e27f MB |
19016 | |
19017 | ||
5c6fa7d2 | 19018 | fi |
a0b9e27f MB |
19019 | rm -f conftest* |
19020 | ||
247f5006 | 19021 | fi |
a0b9e27f MB |
19022 | |
19023 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 19024 | |
7274f1c7 | 19025 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
a0b9e27f | 19026 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19027 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
a0b9e27f | 19028 | EOF |
4f14bcd8 | 19029 | |
7274f1c7 | 19030 | else |
a0b9e27f | 19031 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
89e6bf6d | 19032 | echo "configure:19033: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
a0b9e27f MB |
19033 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
19034 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19035 | else | |
19036 | ||
19037 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 19038 | #line 19039 "configure" |
3fed1840 | 19039 | #include "confdefs.h" |
4f14bcd8 | 19040 | #include <pthread.h> |
a0b9e27f | 19041 | int main() { |
4f14bcd8 | 19042 | |
7274f1c7 | 19043 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
a0b9e27f MB |
19044 | |
19045 | ; return 0; } | |
19046 | EOF | |
89e6bf6d | 19047 | if { (eval echo configure:19048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19048 | rm -rf conftest* |
19049 | ||
7274f1c7 | 19050 | wx_cv_type_pthread_rec_mutex_init=yes |
a0b9e27f | 19051 | |
698dcdb6 | 19052 | else |
a0b9e27f MB |
19053 | echo "configure: failed program was:" >&5 |
19054 | cat conftest.$ac_ext >&5 | |
19055 | rm -rf conftest* | |
19056 | ||
7274f1c7 | 19057 | wx_cv_type_pthread_rec_mutex_init=no |
a0b9e27f MB |
19058 | |
19059 | ||
5c6fa7d2 | 19060 | fi |
a0b9e27f MB |
19061 | rm -f conftest* |
19062 | ||
247f5006 | 19063 | fi |
a0b9e27f MB |
19064 | |
19065 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 19066 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
a0b9e27f | 19067 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19068 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
a0b9e27f | 19069 | EOF |
3fed1840 | 19070 | |
7274f1c7 | 19071 | else |
a0b9e27f | 19072 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
19073 | fi |
19074 | fi | |
7274f1c7 | 19075 | fi |
3fed1840 | 19076 | |
a0b9e27f MB |
19077 | else |
19078 | if test "$wxUSE_THREADS" = "yes" ; then | |
19079 | case "${host}" in | |
19080 | *-*-mingw32* ) | |
ca8e52b3 | 19081 | echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6 |
89e6bf6d | 19082 | echo "configure:19083: checking if compiler supports -mthreads" >&5 |
ca8e52b3 VZ |
19083 | if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then |
19084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19085 | else | |
19086 | ||
19087 | CFLAGS_OLD="$CFLAGS" | |
19088 | CFLAGS="$CFLAGS -mthreads" | |
19089 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 19090 | #line 19091 "configure" |
ca8e52b3 VZ |
19091 | #include "confdefs.h" |
19092 | ||
19093 | int main() { | |
19094 | ||
19095 | ; return 0; } | |
19096 | EOF | |
89e6bf6d | 19097 | if { (eval echo configure:19098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ca8e52b3 VZ |
19098 | rm -rf conftest* |
19099 | wx_cv_cflags_mthread=yes | |
19100 | else | |
19101 | echo "configure: failed program was:" >&5 | |
19102 | cat conftest.$ac_ext >&5 | |
19103 | rm -rf conftest* | |
19104 | wx_cv_cflags_mthread=no | |
19105 | ||
19106 | fi | |
19107 | rm -f conftest* | |
19108 | ||
19109 | ||
19110 | fi | |
19111 | ||
19112 | echo "$ac_t""$wx_cv_cflags_mthread" 1>&6 | |
19113 | ||
19114 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
19115 | CXXFLAGS="$CXXFLAGS -mthreads" | |
19116 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
19117 | LDFLAGS="$LDFLAGS -mthreads" | |
19118 | else | |
19119 | CFLAGS="$CFLAGS_OLD" | |
19120 | fi | |
a0b9e27f MB |
19121 | ;; |
19122 | esac | |
19123 | fi | |
4f14bcd8 GD |
19124 | fi |
19125 | ||
19126 | if test "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 19127 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19128 | #define wxUSE_THREADS 1 |
a0b9e27f | 19129 | EOF |
7b6058cd | 19130 | |
8284b0c5 | 19131 | |
4f14bcd8 | 19132 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 19133 | else |
4f14bcd8 | 19134 | if test "$ac_cv_func_strtok_r" = "yes"; then |
a0b9e27f | 19135 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
89e6bf6d | 19136 | echo "configure:19137: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
19137 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
19138 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
a0b9e27f | 19139 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 19140 | else |
a0b9e27f | 19141 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
19142 | fi |
19143 | fi | |
19144 | fi | |
19145 | ||
19146 | if test "$WXGTK20" = 1 ; then | |
a0b9e27f | 19147 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19148 | #define __WXGTK20__ $WXGTK20 |
a0b9e27f | 19149 | EOF |
4f14bcd8 GD |
19150 | |
19151 | WXGTK12=1 | |
10f2d63a | 19152 | fi |
4f14bcd8 GD |
19153 | |
19154 | if test "$WXGTK12" = 1 ; then | |
a0b9e27f | 19155 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19156 | #define __WXGTK12__ $WXGTK12 |
a0b9e27f | 19157 | EOF |
4f14bcd8 | 19158 | |
10f2d63a | 19159 | fi |
698dcdb6 | 19160 | |
4f14bcd8 | 19161 | if test "$WXGTK127" = 1 ; then |
a0b9e27f | 19162 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19163 | #define __WXGTK127__ $WXGTK127 |
a0b9e27f | 19164 | EOF |
4f14bcd8 | 19165 | |
698dcdb6 | 19166 | fi |
10f2d63a | 19167 | |
4f14bcd8 GD |
19168 | WXDEBUG= |
19169 | ||
19170 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
19171 | WXDEBUG="-g" | |
19172 | wxUSE_OPTIMISE=no | |
698dcdb6 | 19173 | fi |
4f14bcd8 GD |
19174 | |
19175 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
19176 | wxUSE_DEBUG_INFO=yes | |
19177 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
19178 | fi |
19179 | ||
4f14bcd8 | 19180 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
a0b9e27f | 19181 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19182 | #define WXDEBUG 1 |
a0b9e27f | 19183 | EOF |
4f14bcd8 GD |
19184 | |
19185 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 19186 | else |
4f14bcd8 GD |
19187 | if test "$wxUSE_GTK" = 1 ; then |
19188 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
19189 | fi | |
19190 | fi | |
19191 | ||
19192 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
a0b9e27f | 19193 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19194 | #define wxUSE_MEMORY_TRACING 1 |
a0b9e27f | 19195 | EOF |
4f14bcd8 | 19196 | |
a0b9e27f | 19197 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19198 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
a0b9e27f | 19199 | EOF |
4f14bcd8 | 19200 | |
a0b9e27f | 19201 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19202 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
a0b9e27f | 19203 | EOF |
4f14bcd8 GD |
19204 | |
19205 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
19206 | fi | |
19207 | ||
19208 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 19209 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
19210 | fi |
19211 | ||
19212 | PROFILE= | |
19213 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 19214 | PROFILE=" -pg" |
10f2d63a VZ |
19215 | fi |
19216 | ||
009fead0 VZ |
19217 | CODE_GEN_FLAGS= |
19218 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 19219 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
19220 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
19221 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 19222 | fi |
4f14bcd8 GD |
19223 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
19224 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
19225 | fi | |
19226 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
19227 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
19228 | fi | |
4f14bcd8 GD |
19229 | if test "$USE_WIN32" = 1 ; then |
19230 | # I'm not even really sure what this was ever added to solve, | |
19231 | # but someone added it for mingw native builds, so I guess | |
19232 | # they had a reason, right?? | |
19233 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
19234 | fi | |
1d1b75ac | 19235 | |
2b5f62a0 | 19236 | case "${host}" in |
1d1b75ac VZ |
19237 | powerpc*-*-aix* ) |
19238 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
19239 | ;; | |
2b5f62a0 VZ |
19240 | *-hppa* ) |
19241 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
19242 | ;; | |
1d1b75ac | 19243 | esac |
4f14bcd8 GD |
19244 | fi |
19245 | ||
4f14bcd8 GD |
19246 | if test "$wxUSE_OPTIMISE" = "no" ; then |
19247 | OPTIMISE= | |
19248 | else | |
19249 | if test "$GCC" = yes ; then | |
19250 | OPTIMISE="-O2" | |
19251 | case "${host}" in | |
19252 | i586-*-*|i686-*-* ) | |
19253 | OPTIMISE="${OPTIMISE} " | |
19254 | ;; | |
19255 | esac | |
19256 | else | |
19257 | OPTIMISE="-O" | |
19258 | fi | |
19259 | fi | |
19260 | ||
19261 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
a0b9e27f | 19262 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19263 | #define WXWIN_COMPATIBILITY_2 1 |
a0b9e27f | 19264 | EOF |
4f14bcd8 | 19265 | |
8284b0c5 | 19266 | |
4f14bcd8 GD |
19267 | WXWIN_COMPATIBILITY_2_2="yes" |
19268 | fi | |
19269 | ||
0c9a1c32 | 19270 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
a0b9e27f | 19271 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19272 | #define WXWIN_COMPATIBILITY_2_2 1 |
a0b9e27f | 19273 | EOF |
4f14bcd8 | 19274 | |
10f2d63a VZ |
19275 | fi |
19276 | ||
8284b0c5 | 19277 | |
10f2d63a | 19278 | if test "$wxUSE_GUI" = "yes"; then |
a0b9e27f | 19279 | cat >> confdefs.h <<\EOF |
10f2d63a | 19280 | #define wxUSE_GUI 1 |
a0b9e27f | 19281 | EOF |
10f2d63a | 19282 | |
8284b0c5 | 19283 | |
10f2d63a | 19284 | else |
a0b9e27f | 19285 | cat >> confdefs.h <<\EOF |
10f2d63a | 19286 | #define wxUSE_NOGUI 1 |
a0b9e27f | 19287 | EOF |
10f2d63a VZ |
19288 | |
19289 | fi | |
19290 | ||
8284b0c5 | 19291 | |
10f2d63a | 19292 | if test "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 19293 | cat >> confdefs.h <<\EOF |
10f2d63a | 19294 | #define wxUSE_UNIX 1 |
a0b9e27f | 19295 | EOF |
10f2d63a VZ |
19296 | |
19297 | fi | |
19298 | ||
8284b0c5 | 19299 | |
10f2d63a | 19300 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
a0b9e27f | 19301 | cat >> confdefs.h <<\EOF |
10f2d63a | 19302 | #define wxUSE_APPLE_IEEE 1 |
a0b9e27f | 19303 | EOF |
10f2d63a VZ |
19304 | |
19305 | fi | |
19306 | ||
1e6feb95 | 19307 | if test "$wxUSE_TIMER" = "yes"; then |
a0b9e27f | 19308 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19309 | #define wxUSE_TIMER 1 |
a0b9e27f | 19310 | EOF |
1e6feb95 VZ |
19311 | |
19312 | fi | |
19313 | ||
10f2d63a | 19314 | if test "$wxUSE_WAVE" = "yes"; then |
a0b9e27f | 19315 | cat >> confdefs.h <<\EOF |
10f2d63a | 19316 | #define wxUSE_WAVE 1 |
a0b9e27f | 19317 | EOF |
10f2d63a VZ |
19318 | |
19319 | fi | |
19320 | ||
1e6feb95 | 19321 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
a0b9e27f | 19322 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19323 | #define wxUSE_CMDLINE_PARSER 1 |
a0b9e27f | 19324 | EOF |
1e6feb95 VZ |
19325 | |
19326 | fi | |
19327 | ||
19328 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
a0b9e27f | 19329 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19330 | #define wxUSE_STOPWATCH 1 |
a0b9e27f | 19331 | EOF |
1e6feb95 VZ |
19332 | |
19333 | fi | |
19334 | ||
19335 | if test "$wxUSE_DATETIME" = "yes"; then | |
a0b9e27f | 19336 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19337 | #define wxUSE_DATETIME 1 |
a0b9e27f | 19338 | EOF |
1e6feb95 VZ |
19339 | |
19340 | fi | |
19341 | ||
19342 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
a0b9e27f | 19343 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19344 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 19345 | EOF |
1e6feb95 VZ |
19346 | |
19347 | fi | |
19348 | ||
10f2d63a | 19349 | if test "$wxUSE_FILE" = "yes"; then |
a0b9e27f | 19350 | cat >> confdefs.h <<\EOF |
10f2d63a | 19351 | #define wxUSE_FILE 1 |
a0b9e27f | 19352 | EOF |
10f2d63a VZ |
19353 | |
19354 | fi | |
19355 | ||
1e6feb95 | 19356 | if test "$wxUSE_FFILE" = "yes"; then |
a0b9e27f | 19357 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19358 | #define wxUSE_FFILE 1 |
a0b9e27f | 19359 | EOF |
1e6feb95 VZ |
19360 | |
19361 | fi | |
19362 | ||
24528b0c | 19363 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
a0b9e27f | 19364 | cat >> confdefs.h <<\EOF |
24528b0c | 19365 | #define wxUSE_FILESYSTEM 1 |
a0b9e27f | 19366 | EOF |
24528b0c VS |
19367 | |
19368 | fi | |
19369 | ||
10f2d63a | 19370 | if test "$wxUSE_FS_INET" = "yes"; then |
a0b9e27f | 19371 | cat >> confdefs.h <<\EOF |
10f2d63a | 19372 | #define wxUSE_FS_INET 1 |
a0b9e27f | 19373 | EOF |
10f2d63a VZ |
19374 | |
19375 | fi | |
19376 | ||
19377 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
a0b9e27f | 19378 | cat >> confdefs.h <<\EOF |
10f2d63a | 19379 | #define wxUSE_FS_ZIP 1 |
a0b9e27f | 19380 | EOF |
10f2d63a VZ |
19381 | |
19382 | fi | |
19383 | ||
19384 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
a0b9e27f | 19385 | cat >> confdefs.h <<\EOF |
10f2d63a | 19386 | #define wxUSE_ZIPSTREAM 1 |
a0b9e27f | 19387 | EOF |
10f2d63a VZ |
19388 | |
19389 | fi | |
19390 | ||
eb4efbdc | 19391 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
a0b9e27f | 19392 | cat >> confdefs.h <<\EOF |
eb4efbdc | 19393 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
a0b9e27f | 19394 | EOF |
eb4efbdc VZ |
19395 | |
19396 | fi | |
19397 | ||
4f3c5f06 | 19398 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 19399 | cat >> confdefs.h <<\EOF |
4f3c5f06 | 19400 | #define wxUSE_SNGLINST_CHECKER 1 |
a0b9e27f | 19401 | EOF |
4f3c5f06 VZ |
19402 | |
19403 | fi | |
19404 | ||
10f2d63a | 19405 | if test "$wxUSE_BUSYINFO" = "yes"; then |
a0b9e27f | 19406 | cat >> confdefs.h <<\EOF |
10f2d63a | 19407 | #define wxUSE_BUSYINFO 1 |
a0b9e27f | 19408 | EOF |
10f2d63a VZ |
19409 | |
19410 | fi | |
19411 | ||
19412 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
a0b9e27f | 19413 | cat >> confdefs.h <<\EOF |
10f2d63a | 19414 | #define wxUSE_STD_IOSTREAM 1 |
a0b9e27f | 19415 | EOF |
10f2d63a VZ |
19416 | |
19417 | fi | |
19418 | ||
a3a584a7 | 19419 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
a0b9e27f | 19420 | cat >> confdefs.h <<\EOF |
a3a584a7 | 19421 | #define wxUSE_TEXTBUFFER 1 |
a0b9e27f | 19422 | EOF |
a3a584a7 VZ |
19423 | |
19424 | fi | |
19425 | ||
10f2d63a | 19426 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 19427 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
a0b9e27f | 19428 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 19429 | else |
a0b9e27f | 19430 | cat >> confdefs.h <<\EOF |
10f2d63a | 19431 | #define wxUSE_TEXTFILE 1 |
a0b9e27f | 19432 | EOF |
10f2d63a VZ |
19433 | |
19434 | fi | |
19435 | fi | |
19436 | ||
19437 | if test "$wxUSE_CONFIG" = "yes" ; then | |
19438 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
a0b9e27f | 19439 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 19440 | else |
a0b9e27f | 19441 | cat >> confdefs.h <<\EOF |
10f2d63a | 19442 | #define wxUSE_CONFIG 1 |
a0b9e27f | 19443 | EOF |
10f2d63a VZ |
19444 | |
19445 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
19446 | fi | |
19447 | fi | |
19448 | ||
19449 | if test "$wxUSE_INTL" = "yes" ; then | |
19450 | if test "$wxUSE_FILE" != "yes"; then | |
a0b9e27f | 19451 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 19452 | else |
a0b9e27f | 19453 | cat >> confdefs.h <<\EOF |
10f2d63a | 19454 | #define wxUSE_INTL 1 |
a0b9e27f | 19455 | EOF |
10f2d63a VZ |
19456 | |
19457 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 19458 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
19459 | fi |
19460 | fi | |
19461 | ||
19462 | if test "$wxUSE_LOG" = "yes"; then | |
a0b9e27f | 19463 | cat >> confdefs.h <<\EOF |
10f2d63a | 19464 | #define wxUSE_LOG 1 |
a0b9e27f | 19465 | EOF |
10f2d63a | 19466 | |
8284b0c5 | 19467 | |
d73be714 | 19468 | if test "$wxUSE_LOGGUI" = "yes"; then |
a0b9e27f | 19469 | cat >> confdefs.h <<\EOF |
d73be714 | 19470 | #define wxUSE_LOGGUI 1 |
a0b9e27f | 19471 | EOF |
d73be714 VZ |
19472 | |
19473 | fi | |
19474 | ||
19475 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
a0b9e27f | 19476 | cat >> confdefs.h <<\EOF |
d73be714 | 19477 | #define wxUSE_LOGWINDOW 1 |
a0b9e27f | 19478 | EOF |
69d27ff7 MB |
19479 | |
19480 | fi | |
19481 | ||
19482 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
a0b9e27f | 19483 | cat >> confdefs.h <<\EOF |
69d27ff7 | 19484 | #define wxUSE_LOG_DIALOG 1 |
a0b9e27f | 19485 | EOF |
d73be714 VZ |
19486 | |
19487 | fi | |
10f2d63a VZ |
19488 | fi |
19489 | ||
19490 | if test "$wxUSE_LONGLONG" = "yes"; then | |
a0b9e27f | 19491 | cat >> confdefs.h <<\EOF |
10f2d63a | 19492 | #define wxUSE_LONGLONG 1 |
a0b9e27f | 19493 | EOF |
10f2d63a VZ |
19494 | |
19495 | fi | |
19496 | ||
e8f65ba6 | 19497 | if test "$wxUSE_GEOMETRY" = "yes"; then |
a0b9e27f | 19498 | cat >> confdefs.h <<\EOF |
e8f65ba6 | 19499 | #define wxUSE_GEOMETRY 1 |
a0b9e27f | 19500 | EOF |
e8f65ba6 RR |
19501 | |
19502 | fi | |
19503 | ||
10f2d63a | 19504 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
a0b9e27f | 19505 | cat >> confdefs.h <<\EOF |
10f2d63a | 19506 | #define wxUSE_DIALUP_MANAGER 1 |
a0b9e27f | 19507 | EOF |
10f2d63a | 19508 | |
70f7a477 | 19509 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
19510 | fi |
19511 | ||
19512 | if test "$wxUSE_STREAMS" = "yes" ; then | |
a0b9e27f | 19513 | cat >> confdefs.h <<\EOF |
10f2d63a | 19514 | #define wxUSE_STREAMS 1 |
a0b9e27f | 19515 | EOF |
10f2d63a VZ |
19516 | |
19517 | fi | |
19518 | ||
5c6fa7d2 | 19519 | |
8284b0c5 | 19520 | if test "$wxUSE_DATETIME" = "yes"; then |
a0b9e27f | 19521 | for ac_func in strptime |
83307f33 | 19522 | do |
a0b9e27f | 19523 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 19524 | echo "configure:19525: checking for $ac_func" >&5 |
a0b9e27f MB |
19525 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19527 | else | |
19528 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 19529 | #line 19530 "configure" |
83307f33 VZ |
19530 | #include "confdefs.h" |
19531 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19532 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
19533 | #include <assert.h> |
19534 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19535 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19536 | builtin and then its argument prototype would still apply. */ |
19537 | char $ac_func(); | |
19538 | ||
19539 | int main() { | |
19540 | ||
83307f33 VZ |
19541 | /* The GNU C library defines this for functions which it implements |
19542 | to always fail with ENOSYS. Some functions are actually named | |
19543 | something starting with __ and the normal name is an alias. */ | |
19544 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19545 | choke me | |
19546 | #else | |
a0b9e27f | 19547 | $ac_func(); |
83307f33 VZ |
19548 | #endif |
19549 | ||
a0b9e27f MB |
19550 | ; return 0; } |
19551 | EOF | |
89e6bf6d | 19552 | if { (eval echo configure:19553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19553 | rm -rf conftest* |
19554 | eval "ac_cv_func_$ac_func=yes" | |
19555 | else | |
19556 | echo "configure: failed program was:" >&5 | |
19557 | cat conftest.$ac_ext >&5 | |
19558 | rm -rf conftest* | |
19559 | eval "ac_cv_func_$ac_func=no" | |
19560 | fi | |
19561 | rm -f conftest* | |
19562 | fi | |
83307f33 | 19563 | |
a0b9e27f MB |
19564 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19565 | echo "$ac_t""yes" 1>&6 | |
19566 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19567 | cat >> confdefs.h <<EOF | |
19568 | #define $ac_tr_func 1 | |
19569 | EOF | |
19570 | ||
19571 | else | |
19572 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
19573 | fi |
19574 | done | |
19575 | ||
5c6fa7d2 | 19576 | |
a0b9e27f | 19577 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
89e6bf6d | 19578 | echo "configure:19579: checking for timezone variable in <time.h>" >&5 |
a0b9e27f MB |
19579 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
19580 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19581 | else |
a0b9e27f MB |
19582 | |
19583 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 19584 | #line 19585 "configure" |
360d6699 VZ |
19585 | #include "confdefs.h" |
19586 | ||
b4085ce6 | 19587 | #include <time.h> |
a0b9e27f MB |
19588 | |
19589 | int main() { | |
360d6699 VZ |
19590 | |
19591 | int tz; | |
4f11a343 | 19592 | tz = timezone; |
a0b9e27f MB |
19593 | |
19594 | ; return 0; } | |
19595 | EOF | |
89e6bf6d | 19596 | if { (eval echo configure:19597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19597 | rm -rf conftest* |
19598 | ||
4f11a343 | 19599 | wx_cv_var_timezone=timezone |
a0b9e27f | 19600 | |
360d6699 | 19601 | else |
a0b9e27f MB |
19602 | echo "configure: failed program was:" >&5 |
19603 | cat conftest.$ac_ext >&5 | |
19604 | rm -rf conftest* | |
19605 | ||
19606 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 19607 | #line 19608 "configure" |
360d6699 VZ |
19608 | #include "confdefs.h" |
19609 | ||
b4085ce6 | 19610 | #include <time.h> |
a0b9e27f MB |
19611 | |
19612 | int main() { | |
360d6699 VZ |
19613 | |
19614 | int tz; | |
19615 | tz = _timezone; | |
a0b9e27f MB |
19616 | |
19617 | ; return 0; } | |
19618 | EOF | |
89e6bf6d | 19619 | if { (eval echo configure:19620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19620 | rm -rf conftest* |
19621 | ||
360d6699 | 19622 | wx_cv_var_timezone=_timezone |
a0b9e27f | 19623 | |
5357c8e8 | 19624 | else |
a0b9e27f MB |
19625 | echo "configure: failed program was:" >&5 |
19626 | cat conftest.$ac_ext >&5 | |
19627 | rm -rf conftest* | |
19628 | ||
19629 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 19630 | #line 19631 "configure" |
5357c8e8 VZ |
19631 | #include "confdefs.h" |
19632 | ||
b4085ce6 | 19633 | #include <time.h> |
a0b9e27f MB |
19634 | |
19635 | int main() { | |
5357c8e8 VZ |
19636 | |
19637 | int tz; | |
4f11a343 | 19638 | tz = __timezone; |
a0b9e27f MB |
19639 | |
19640 | ; return 0; } | |
19641 | EOF | |
89e6bf6d | 19642 | if { (eval echo configure:19643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19643 | rm -rf conftest* |
19644 | ||
4f11a343 | 19645 | wx_cv_var_timezone=__timezone |
a0b9e27f | 19646 | |
360d6699 | 19647 | else |
a0b9e27f MB |
19648 | echo "configure: failed program was:" >&5 |
19649 | cat conftest.$ac_ext >&5 | |
19650 | rm -rf conftest* | |
19651 | ||
f9bc1684 | 19652 | if test "$USE_DOS" = 0 ; then |
a0b9e27f | 19653 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 19654 | fi |
a0b9e27f MB |
19655 | |
19656 | ||
328a083c | 19657 | fi |
a0b9e27f MB |
19658 | rm -f conftest* |
19659 | ||
19660 | ||
7b4a847f | 19661 | fi |
a0b9e27f MB |
19662 | rm -f conftest* |
19663 | ||
19664 | ||
5c6fa7d2 | 19665 | fi |
a0b9e27f MB |
19666 | rm -f conftest* |
19667 | ||
19668 | ||
247f5006 | 19669 | fi |
a0b9e27f MB |
19670 | |
19671 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 19672 | |
f9bc1684 | 19673 | if test "x$wx_cv_var_timezone" != x ; then |
a0b9e27f | 19674 | cat >> confdefs.h <<EOF |
360d6699 | 19675 | #define WX_TIMEZONE $wx_cv_var_timezone |
a0b9e27f | 19676 | EOF |
360d6699 | 19677 | |
f9bc1684 | 19678 | fi |
698dcdb6 | 19679 | |
a0b9e27f | 19680 | for ac_func in localtime |
afc31813 | 19681 | do |
a0b9e27f | 19682 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 19683 | echo "configure:19684: checking for $ac_func" >&5 |
a0b9e27f MB |
19684 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19686 | else | |
19687 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 19688 | #line 19689 "configure" |
10f2d63a | 19689 | #include "confdefs.h" |
afc31813 | 19690 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19691 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
19692 | #include <assert.h> |
19693 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19694 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19695 | builtin and then its argument prototype would still apply. */ |
19696 | char $ac_func(); | |
19697 | ||
19698 | int main() { | |
19699 | ||
afc31813 VZ |
19700 | /* The GNU C library defines this for functions which it implements |
19701 | to always fail with ENOSYS. Some functions are actually named | |
19702 | something starting with __ and the normal name is an alias. */ | |
19703 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19704 | choke me | |
19705 | #else | |
a0b9e27f | 19706 | $ac_func(); |
afc31813 VZ |
19707 | #endif |
19708 | ||
a0b9e27f MB |
19709 | ; return 0; } |
19710 | EOF | |
89e6bf6d | 19711 | if { (eval echo configure:19712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19712 | rm -rf conftest* |
19713 | eval "ac_cv_func_$ac_func=yes" | |
19714 | else | |
19715 | echo "configure: failed program was:" >&5 | |
19716 | cat conftest.$ac_ext >&5 | |
19717 | rm -rf conftest* | |
19718 | eval "ac_cv_func_$ac_func=no" | |
19719 | fi | |
19720 | rm -f conftest* | |
19721 | fi | |
afc31813 | 19722 | |
a0b9e27f MB |
19723 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19724 | echo "$ac_t""yes" 1>&6 | |
19725 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19726 | cat >> confdefs.h <<EOF | |
19727 | #define $ac_tr_func 1 | |
19728 | EOF | |
19729 | ||
19730 | else | |
19731 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
19732 | fi |
19733 | done | |
19734 | ||
5c6fa7d2 | 19735 | |
8284b0c5 | 19736 | if test "$ac_cv_func_localtime" = "yes"; then |
a0b9e27f | 19737 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
89e6bf6d | 19738 | echo "configure:19739: checking for tm_gmtoff in struct tm" >&5 |
a0b9e27f MB |
19739 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
19740 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19741 | else | |
19742 | ||
19743 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 19744 | #line 19745 "configure" |
0470b1e6 VZ |
19745 | #include "confdefs.h" |
19746 | ||
b4085ce6 | 19747 | #include <time.h> |
a0b9e27f MB |
19748 | |
19749 | int main() { | |
0470b1e6 VZ |
19750 | |
19751 | struct tm tm; | |
19752 | tm.tm_gmtoff++; | |
a0b9e27f MB |
19753 | |
19754 | ; return 0; } | |
19755 | EOF | |
89e6bf6d | 19756 | if { (eval echo configure:19757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19757 | rm -rf conftest* |
19758 | ||
f03a98d8 | 19759 | wx_cv_struct_tm_has_gmtoff=yes |
a0b9e27f | 19760 | |
0470b1e6 | 19761 | else |
a0b9e27f MB |
19762 | echo "configure: failed program was:" >&5 |
19763 | cat conftest.$ac_ext >&5 | |
19764 | rm -rf conftest* | |
19765 | wx_cv_struct_tm_has_gmtoff=no | |
19766 | ||
5c6fa7d2 | 19767 | fi |
a0b9e27f MB |
19768 | rm -f conftest* |
19769 | ||
247f5006 | 19770 | fi |
a0b9e27f MB |
19771 | |
19772 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
19773 | fi |
19774 | ||
19775 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
a0b9e27f | 19776 | cat >> confdefs.h <<\EOF |
6232543b | 19777 | #define WX_GMTOFF_IN_TM 1 |
a0b9e27f | 19778 | EOF |
0470b1e6 | 19779 | |
3fcdd07b VZ |
19780 | fi |
19781 | ||
a0b9e27f | 19782 | for ac_func in gettimeofday ftime |
3fcdd07b | 19783 | do |
a0b9e27f | 19784 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 19785 | echo "configure:19786: checking for $ac_func" >&5 |
a0b9e27f MB |
19786 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19788 | else | |
19789 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 19790 | #line 19791 "configure" |
3fcdd07b VZ |
19791 | #include "confdefs.h" |
19792 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19793 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
19794 | #include <assert.h> |
19795 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19796 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19797 | builtin and then its argument prototype would still apply. */ |
19798 | char $ac_func(); | |
19799 | ||
19800 | int main() { | |
19801 | ||
3fcdd07b VZ |
19802 | /* The GNU C library defines this for functions which it implements |
19803 | to always fail with ENOSYS. Some functions are actually named | |
19804 | something starting with __ and the normal name is an alias. */ | |
19805 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19806 | choke me | |
19807 | #else | |
a0b9e27f | 19808 | $ac_func(); |
3fcdd07b VZ |
19809 | #endif |
19810 | ||
a0b9e27f MB |
19811 | ; return 0; } |
19812 | EOF | |
89e6bf6d | 19813 | if { (eval echo configure:19814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19814 | rm -rf conftest* |
19815 | eval "ac_cv_func_$ac_func=yes" | |
19816 | else | |
19817 | echo "configure: failed program was:" >&5 | |
19818 | cat conftest.$ac_ext >&5 | |
19819 | rm -rf conftest* | |
19820 | eval "ac_cv_func_$ac_func=no" | |
19821 | fi | |
19822 | rm -f conftest* | |
19823 | fi | |
19824 | ||
19825 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19826 | echo "$ac_t""yes" 1>&6 | |
19827 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19828 | cat >> confdefs.h <<EOF | |
19829 | #define $ac_tr_func 1 | |
19830 | EOF | |
3fcdd07b | 19831 | break |
a0b9e27f MB |
19832 | else |
19833 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
19834 | fi |
19835 | done | |
19836 | ||
698dcdb6 | 19837 | |
8284b0c5 | 19838 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
a0b9e27f | 19839 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
89e6bf6d | 19840 | echo "configure:19841: checking whether gettimeofday takes two arguments" >&5 |
a0b9e27f MB |
19841 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
19842 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19843 | else | |
19844 | ||
19845 | ||
19846 | ac_ext=C | |
19847 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 19848 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
19849 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19850 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19851 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 19852 | |
8284b0c5 | 19853 | |
a0b9e27f | 19854 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 19855 | #line 19856 "configure" |
10f2d63a | 19856 | #include "confdefs.h" |
afc31813 VZ |
19857 | |
19858 | #include <sys/time.h> | |
19859 | #include <unistd.h> | |
a0b9e27f MB |
19860 | |
19861 | int main() { | |
afc31813 VZ |
19862 | |
19863 | struct timeval tv; | |
776862b4 | 19864 | gettimeofday(&tv, NULL); |
a0b9e27f MB |
19865 | |
19866 | ; return 0; } | |
19867 | EOF | |
89e6bf6d | 19868 | if { (eval echo configure:19869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19869 | rm -rf conftest* |
afc31813 | 19870 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 19871 | else |
a0b9e27f MB |
19872 | echo "configure: failed program was:" >&5 |
19873 | cat conftest.$ac_ext >&5 | |
19874 | rm -rf conftest* | |
19875 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 19876 | #line 19877 "configure" |
10f2d63a | 19877 | #include "confdefs.h" |
afc31813 VZ |
19878 | |
19879 | #include <sys/time.h> | |
19880 | #include <unistd.h> | |
a0b9e27f MB |
19881 | |
19882 | int main() { | |
afc31813 VZ |
19883 | |
19884 | struct timeval tv; | |
19885 | gettimeofday(&tv); | |
a0b9e27f MB |
19886 | |
19887 | ; return 0; } | |
19888 | EOF | |
89e6bf6d | 19889 | if { (eval echo configure:19890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19890 | rm -rf conftest* |
afc31813 | 19891 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 19892 | else |
a0b9e27f MB |
19893 | echo "configure: failed program was:" >&5 |
19894 | cat conftest.$ac_ext >&5 | |
19895 | rm -rf conftest* | |
19896 | ||
19897 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 19898 | wx_cv_func_gettimeofday_has_2_args=unknown |
a0b9e27f MB |
19899 | |
19900 | ||
10f2d63a | 19901 | fi |
a0b9e27f MB |
19902 | rm -f conftest* |
19903 | ||
10f2d63a | 19904 | fi |
a0b9e27f | 19905 | rm -f conftest* |
afc31813 | 19906 | ac_ext=c |
a0b9e27f | 19907 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 19908 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
19909 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19910 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19911 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 19912 | |
a0b9e27f | 19913 | |
247f5006 | 19914 | fi |
a0b9e27f MB |
19915 | |
19916 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 19917 | |
afc31813 | 19918 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
a0b9e27f | 19919 | cat >> confdefs.h <<\EOF |
afc31813 | 19920 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
a0b9e27f | 19921 | EOF |
afc31813 VZ |
19922 | |
19923 | fi | |
19924 | fi | |
19925 | ||
a0b9e27f | 19926 | cat >> confdefs.h <<\EOF |
afc31813 | 19927 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 19928 | EOF |
afc31813 VZ |
19929 | |
19930 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
19931 | fi | |
19932 | ||
8284b0c5 | 19933 | |
52127426 | 19934 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 19935 | if test "$wxUSE_MGL" = "1"; then |
a0b9e27f | 19936 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
19937 | wxUSE_SOCKETS="no" |
19938 | fi | |
0feee163 | 19939 | fi |
b089607b | 19940 | |
0feee163 VZ |
19941 | if test "$wxUSE_SOCKETS" = "yes"; then |
19942 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 19943 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
89e6bf6d | 19944 | echo "configure:19945: checking for socket" >&5 |
a0b9e27f MB |
19945 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
19946 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19947 | else |
a0b9e27f | 19948 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 19949 | #line 19950 "configure" |
c63c7106 VZ |
19950 | #include "confdefs.h" |
19951 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19952 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
19953 | #include <assert.h> |
19954 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19955 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19956 | builtin and then its argument prototype would still apply. */ |
19957 | char socket(); | |
19958 | ||
19959 | int main() { | |
19960 | ||
c63c7106 VZ |
19961 | /* The GNU C library defines this for functions which it implements |
19962 | to always fail with ENOSYS. Some functions are actually named | |
19963 | something starting with __ and the normal name is an alias. */ | |
19964 | #if defined (__stub_socket) || defined (__stub___socket) | |
19965 | choke me | |
19966 | #else | |
a0b9e27f | 19967 | socket(); |
c63c7106 VZ |
19968 | #endif |
19969 | ||
a0b9e27f MB |
19970 | ; return 0; } |
19971 | EOF | |
89e6bf6d | 19972 | if { (eval echo configure:19973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19973 | rm -rf conftest* |
19974 | eval "ac_cv_func_socket=yes" | |
19975 | else | |
19976 | echo "configure: failed program was:" >&5 | |
19977 | cat conftest.$ac_ext >&5 | |
19978 | rm -rf conftest* | |
19979 | eval "ac_cv_func_socket=no" | |
19980 | fi | |
19981 | rm -f conftest* | |
19982 | fi | |
19983 | ||
19984 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
19985 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
19986 | : |
19987 | else | |
a0b9e27f MB |
19988 | echo "$ac_t""no" 1>&6 |
19989 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
89e6bf6d | 19990 | echo "configure:19991: checking for socket in -lsocket" >&5 |
a0b9e27f MB |
19991 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
19992 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19993 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19994 | else |
a0b9e27f | 19995 | ac_save_LIBS="$LIBS" |
c63c7106 | 19996 | LIBS="-lsocket $LIBS" |
a0b9e27f | 19997 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 19998 | #line 19999 "configure" |
c63c7106 VZ |
19999 | #include "confdefs.h" |
20000 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20001 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20002 | builtin and then its argument prototype would still apply. */ |
20003 | char socket(); | |
20004 | ||
20005 | int main() { | |
20006 | socket() | |
20007 | ; return 0; } | |
20008 | EOF | |
89e6bf6d | 20009 | if { (eval echo configure:20010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20010 | rm -rf conftest* |
20011 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20012 | else | |
20013 | echo "configure: failed program was:" >&5 | |
20014 | cat conftest.$ac_ext >&5 | |
20015 | rm -rf conftest* | |
20016 | eval "ac_cv_lib_$ac_lib_var=no" | |
20017 | fi | |
20018 | rm -f conftest* | |
20019 | LIBS="$ac_save_LIBS" | |
20020 | ||
20021 | fi | |
20022 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20023 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
20024 | if test "$INET_LINK" != " -lsocket"; then |
20025 | INET_LINK="$INET_LINK -lsocket" | |
20026 | fi | |
c63c7106 | 20027 | else |
a0b9e27f | 20028 | echo "$ac_t""no" 1>&6 |
afc31813 | 20029 | |
a0b9e27f | 20030 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 20031 | wxUSE_SOCKETS=no |
a0b9e27f MB |
20032 | |
20033 | ||
6232543b | 20034 | fi |
b089607b | 20035 | |
a0b9e27f | 20036 | |
1e487827 | 20037 | fi |
afc31813 | 20038 | |
3a922bb4 | 20039 | fi |
0feee163 | 20040 | fi |
51a9faba | 20041 | |
0feee163 VZ |
20042 | if test "$wxUSE_SOCKETS" = "yes" ; then |
20043 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20044 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
89e6bf6d | 20045 | echo "configure:20046: checking what is the type of the third argument of getsockname" >&5 |
a0b9e27f MB |
20046 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
20047 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20048 | else | |
20049 | ||
20050 | ||
20051 | ac_ext=C | |
20052 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20053 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20054 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20055 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20056 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 20057 | |
8284b0c5 | 20058 | |
a0b9e27f | 20059 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 20060 | #line 20061 "configure" |
afc31813 | 20061 | #include "confdefs.h" |
51a9faba | 20062 | |
3a922bb4 RL |
20063 | #include <sys/types.h> |
20064 | #include <sys/socket.h> | |
a0b9e27f MB |
20065 | |
20066 | int main() { | |
51a9faba | 20067 | |
3a922bb4 RL |
20068 | socklen_t len; |
20069 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20070 | |
20071 | ; return 0; } | |
20072 | EOF | |
89e6bf6d | 20073 | if { (eval echo configure:20074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20074 | rm -rf conftest* |
51a9faba | 20075 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 20076 | else |
a0b9e27f MB |
20077 | echo "configure: failed program was:" >&5 |
20078 | cat conftest.$ac_ext >&5 | |
20079 | rm -rf conftest* | |
20080 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 20081 | #line 20082 "configure" |
afc31813 | 20082 | #include "confdefs.h" |
51a9faba | 20083 | |
3a922bb4 RL |
20084 | #include <sys/types.h> |
20085 | #include <sys/socket.h> | |
a0b9e27f MB |
20086 | |
20087 | int main() { | |
51a9faba | 20088 | |
3a922bb4 RL |
20089 | size_t len; |
20090 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20091 | |
20092 | ; return 0; } | |
20093 | EOF | |
89e6bf6d | 20094 | if { (eval echo configure:20095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20095 | rm -rf conftest* |
51a9faba | 20096 | wx_cv_type_getsockname3=size_t |
afc31813 | 20097 | else |
a0b9e27f MB |
20098 | echo "configure: failed program was:" >&5 |
20099 | cat conftest.$ac_ext >&5 | |
20100 | rm -rf conftest* | |
20101 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 20102 | #line 20103 "configure" |
afc31813 | 20103 | #include "confdefs.h" |
51a9faba | 20104 | |
3a922bb4 RL |
20105 | #include <sys/types.h> |
20106 | #include <sys/socket.h> | |
a0b9e27f MB |
20107 | |
20108 | int main() { | |
51a9faba | 20109 | |
3a922bb4 RL |
20110 | int len; |
20111 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20112 | |
20113 | ; return 0; } | |
20114 | EOF | |
89e6bf6d | 20115 | if { (eval echo configure:20116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20116 | rm -rf conftest* |
51a9faba | 20117 | wx_cv_type_getsockname3=int |
afc31813 | 20118 | else |
a0b9e27f MB |
20119 | echo "configure: failed program was:" >&5 |
20120 | cat conftest.$ac_ext >&5 | |
20121 | rm -rf conftest* | |
20122 | wx_cv_type_getsockname3=unknown | |
20123 | ||
afc31813 | 20124 | fi |
a0b9e27f MB |
20125 | rm -f conftest* |
20126 | ||
afc31813 | 20127 | fi |
a0b9e27f MB |
20128 | rm -f conftest* |
20129 | ||
afc31813 | 20130 | fi |
a0b9e27f | 20131 | rm -f conftest* |
51a9faba | 20132 | |
3a922bb4 | 20133 | ac_ext=c |
a0b9e27f | 20134 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 20135 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20136 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20137 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20138 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20139 | |
a0b9e27f | 20140 | |
247f5006 | 20141 | fi |
a0b9e27f MB |
20142 | |
20143 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 20144 | |
3a922bb4 RL |
20145 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
20146 | wxUSE_SOCKETS=no | |
a0b9e27f | 20147 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 20148 | else |
a0b9e27f | 20149 | cat >> confdefs.h <<EOF |
51a9faba | 20150 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
a0b9e27f | 20151 | EOF |
51a9faba | 20152 | |
3a922bb4 | 20153 | fi |
51a9faba VZ |
20154 | fi |
20155 | fi | |
afc31813 | 20156 | |
51a9faba | 20157 | if test "$wxUSE_SOCKETS" = "yes" ; then |
a0b9e27f | 20158 | cat >> confdefs.h <<\EOF |
afc31813 | 20159 | #define wxUSE_SOCKETS 1 |
a0b9e27f | 20160 | EOF |
afc31813 | 20161 | |
70f7a477 | 20162 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
20163 | fi |
20164 | ||
8284b0c5 | 20165 | |
dc3d889d VZ |
20166 | if test "$wxUSE_GUI" = "yes"; then |
20167 | ||
156b2523 | 20168 | if test "$TOOLKIT" = "MAC"; then |
a0b9e27f | 20169 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20170 | wxUSE_JOYSTICK=no |
20171 | fi | |
20172 | if test "$TOOLKIT" = "MOTIF"; then | |
a0b9e27f | 20173 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 20174 | wxUSE_JOYSTICK=no |
f79bd02d JS |
20175 | fi |
20176 | if test "$TOOLKIT" = "X11"; then | |
a0b9e27f | 20177 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 20178 | wxUSE_JOYSTICK=no |
156b2523 GD |
20179 | fi |
20180 | ||
3a922bb4 RL |
20181 | if test "$TOOLKIT" != "MSW"; then |
20182 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
a0b9e27f | 20183 | for ac_hdr in linux/joystick.h |
10f2d63a | 20184 | do |
a0b9e27f MB |
20185 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20186 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
89e6bf6d | 20187 | echo "configure:20188: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20188 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20189 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20190 | else | |
20191 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 20192 | #line 20193 "configure" |
247f5006 | 20193 | #include "confdefs.h" |
a0b9e27f MB |
20194 | #include <$ac_hdr> |
20195 | EOF | |
20196 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 20197 | { (eval echo configure:20198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20198 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20199 | if test -z "$ac_err"; then | |
20200 | rm -rf conftest* | |
20201 | eval "ac_cv_header_$ac_safe=yes" | |
20202 | else | |
20203 | echo "$ac_err" >&5 | |
20204 | echo "configure: failed program was:" >&5 | |
247f5006 | 20205 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20206 | rm -rf conftest* |
20207 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 20208 | fi |
a0b9e27f | 20209 | rm -f conftest* |
10f2d63a | 20210 | fi |
a0b9e27f MB |
20211 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20212 | echo "$ac_t""yes" 1>&6 | |
20213 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20214 | cat >> confdefs.h <<EOF | |
20215 | #define $ac_tr_hdr 1 | |
20216 | EOF | |
20217 | ||
20218 | else | |
20219 | echo "$ac_t""no" 1>&6 | |
247f5006 | 20220 | fi |
10f2d63a VZ |
20221 | done |
20222 | ||
3a922bb4 RL |
20223 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
20224 | wxUSE_JOYSTICK=no | |
a0b9e27f | 20225 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
20226 | fi |
20227 | fi | |
20228 | fi | |
b089607b | 20229 | |
3a922bb4 | 20230 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a0b9e27f | 20231 | cat >> confdefs.h <<\EOF |
10f2d63a | 20232 | #define wxUSE_JOYSTICK 1 |
a0b9e27f | 20233 | EOF |
10f2d63a | 20234 | |
3a922bb4 RL |
20235 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
20236 | fi | |
dc3d889d VZ |
20237 | fi |
20238 | ||
8284b0c5 | 20239 | |
b089607b VZ |
20240 | if test "$TOOLKIT" != "MSW"; then |
20241 | ||
3a922bb4 RL |
20242 | HAVE_DL_FUNCS=0 |
20243 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 20244 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
20245 | if test "$USE_DARWIN" = 1; then |
20246 | HAVE_DL_FUNCS=1 | |
20247 | else | |
a0b9e27f | 20248 | for ac_func in dlopen |
10f2d63a | 20249 | do |
a0b9e27f | 20250 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 20251 | echo "configure:20252: checking for $ac_func" >&5 |
a0b9e27f MB |
20252 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20253 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20254 | else | |
20255 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 20256 | #line 20257 "configure" |
10f2d63a VZ |
20257 | #include "confdefs.h" |
20258 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20259 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20260 | #include <assert.h> |
20261 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20262 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20263 | builtin and then its argument prototype would still apply. */ |
20264 | char $ac_func(); | |
20265 | ||
20266 | int main() { | |
20267 | ||
10f2d63a VZ |
20268 | /* The GNU C library defines this for functions which it implements |
20269 | to always fail with ENOSYS. Some functions are actually named | |
20270 | something starting with __ and the normal name is an alias. */ | |
20271 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20272 | choke me | |
20273 | #else | |
a0b9e27f | 20274 | $ac_func(); |
10f2d63a VZ |
20275 | #endif |
20276 | ||
a0b9e27f MB |
20277 | ; return 0; } |
20278 | EOF | |
89e6bf6d | 20279 | if { (eval echo configure:20280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20280 | rm -rf conftest* |
20281 | eval "ac_cv_func_$ac_func=yes" | |
20282 | else | |
20283 | echo "configure: failed program was:" >&5 | |
20284 | cat conftest.$ac_ext >&5 | |
20285 | rm -rf conftest* | |
20286 | eval "ac_cv_func_$ac_func=no" | |
20287 | fi | |
20288 | rm -f conftest* | |
20289 | fi | |
20290 | ||
20291 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20292 | echo "$ac_t""yes" 1>&6 | |
20293 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20294 | cat >> confdefs.h <<EOF | |
20295 | #define $ac_tr_func 1 | |
20296 | EOF | |
20297 | ||
20298 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20299 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20300 | EOF |
10f2d63a | 20301 | |
3a922bb4 | 20302 | HAVE_DL_FUNCS=1 |
a0b9e27f | 20303 | |
10f2d63a | 20304 | else |
a0b9e27f MB |
20305 | echo "$ac_t""no" 1>&6 |
20306 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
89e6bf6d | 20307 | echo "configure:20308: checking for dlopen in -ldl" >&5 |
a0b9e27f MB |
20308 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
20309 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20310 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20311 | else |
a0b9e27f | 20312 | ac_save_LIBS="$LIBS" |
10f2d63a | 20313 | LIBS="-ldl $LIBS" |
a0b9e27f | 20314 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 20315 | #line 20316 "configure" |
10f2d63a VZ |
20316 | #include "confdefs.h" |
20317 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20318 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20319 | builtin and then its argument prototype would still apply. */ |
20320 | char dlopen(); | |
20321 | ||
20322 | int main() { | |
20323 | dlopen() | |
20324 | ; return 0; } | |
20325 | EOF | |
89e6bf6d | 20326 | if { (eval echo configure:20327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20327 | rm -rf conftest* |
20328 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20329 | else | |
20330 | echo "configure: failed program was:" >&5 | |
20331 | cat conftest.$ac_ext >&5 | |
20332 | rm -rf conftest* | |
20333 | eval "ac_cv_lib_$ac_lib_var=no" | |
20334 | fi | |
20335 | rm -f conftest* | |
20336 | LIBS="$ac_save_LIBS" | |
20337 | ||
20338 | fi | |
20339 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20340 | echo "$ac_t""yes" 1>&6 | |
20341 | ||
20342 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20343 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20344 | EOF |
10f2d63a | 20345 | |
3a922bb4 | 20346 | HAVE_DL_FUNCS=1 |
3d63bc3a | 20347 | DL_LINK=" -ldl$DL_LINK" |
a0b9e27f | 20348 | |
10f2d63a | 20349 | else |
a0b9e27f | 20350 | echo "$ac_t""no" 1>&6 |
10f2d63a | 20351 | |
a0b9e27f | 20352 | for ac_func in shl_load |
10f2d63a | 20353 | do |
a0b9e27f | 20354 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 20355 | echo "configure:20356: checking for $ac_func" >&5 |
a0b9e27f MB |
20356 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20357 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20358 | else | |
20359 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 20360 | #line 20361 "configure" |
10f2d63a VZ |
20361 | #include "confdefs.h" |
20362 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20363 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20364 | #include <assert.h> |
20365 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20366 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20367 | builtin and then its argument prototype would still apply. */ |
20368 | char $ac_func(); | |
20369 | ||
20370 | int main() { | |
20371 | ||
10f2d63a VZ |
20372 | /* The GNU C library defines this for functions which it implements |
20373 | to always fail with ENOSYS. Some functions are actually named | |
20374 | something starting with __ and the normal name is an alias. */ | |
20375 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20376 | choke me | |
20377 | #else | |
a0b9e27f | 20378 | $ac_func(); |
10f2d63a VZ |
20379 | #endif |
20380 | ||
a0b9e27f MB |
20381 | ; return 0; } |
20382 | EOF | |
89e6bf6d | 20383 | if { (eval echo configure:20384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20384 | rm -rf conftest* |
20385 | eval "ac_cv_func_$ac_func=yes" | |
20386 | else | |
20387 | echo "configure: failed program was:" >&5 | |
20388 | cat conftest.$ac_ext >&5 | |
20389 | rm -rf conftest* | |
20390 | eval "ac_cv_func_$ac_func=no" | |
20391 | fi | |
20392 | rm -f conftest* | |
20393 | fi | |
20394 | ||
20395 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20396 | echo "$ac_t""yes" 1>&6 | |
20397 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20398 | cat >> confdefs.h <<EOF | |
20399 | #define $ac_tr_func 1 | |
20400 | EOF | |
20401 | ||
20402 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20403 | #define HAVE_SHL_LOAD 1 |
a0b9e27f | 20404 | EOF |
10f2d63a | 20405 | |
3a922bb4 | 20406 | HAVE_SHL_FUNCS=1 |
a0b9e27f | 20407 | |
10f2d63a | 20408 | else |
a0b9e27f MB |
20409 | echo "$ac_t""no" 1>&6 |
20410 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
89e6bf6d | 20411 | echo "configure:20412: checking for dld in -lshl_load" >&5 |
a0b9e27f MB |
20412 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
20413 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20414 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20415 | else |
a0b9e27f | 20416 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20417 | LIBS="-lshl_load $LIBS" |
a0b9e27f | 20418 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 20419 | #line 20420 "configure" |
f6bcfd97 | 20420 | #include "confdefs.h" |
8284b0c5 | 20421 | /* Override any gcc2 internal prototype to avoid an error. */ |
f6bcfd97 | 20422 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
20423 | builtin and then its argument prototype would still apply. */ |
20424 | char dld(); | |
20425 | ||
20426 | int main() { | |
20427 | dld() | |
20428 | ; return 0; } | |
20429 | EOF | |
89e6bf6d | 20430 | if { (eval echo configure:20431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20431 | rm -rf conftest* |
20432 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20433 | else | |
20434 | echo "configure: failed program was:" >&5 | |
20435 | cat conftest.$ac_ext >&5 | |
20436 | rm -rf conftest* | |
20437 | eval "ac_cv_lib_$ac_lib_var=no" | |
20438 | fi | |
20439 | rm -f conftest* | |
20440 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 20441 | |
a0b9e27f MB |
20442 | fi |
20443 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20444 | echo "$ac_t""yes" 1>&6 | |
20445 | ||
3a922bb4 | 20446 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 20447 | DL_LINK=" -ldld$DL_LINK" |
a0b9e27f MB |
20448 | |
20449 | else | |
20450 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20451 | fi |
20452 | ||
a0b9e27f | 20453 | |
10f2d63a VZ |
20454 | fi |
20455 | done | |
20456 | ||
a0b9e27f | 20457 | |
10f2d63a VZ |
20458 | fi |
20459 | ||
a0b9e27f | 20460 | |
10f2d63a VZ |
20461 | fi |
20462 | done | |
20463 | ||
5c6fa7d2 | 20464 | |
8284b0c5 | 20465 | if test "$HAVE_DL_FUNCS" = 1; then |
a0b9e27f | 20466 | for ac_func in dlerror |
f6bcfd97 | 20467 | do |
a0b9e27f | 20468 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
89e6bf6d | 20469 | echo "configure:20470: checking for $ac_func" >&5 |
a0b9e27f MB |
20470 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20472 | else | |
20473 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 20474 | #line 20475 "configure" |
f6bcfd97 BP |
20475 | #include "confdefs.h" |
20476 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20477 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
20478 | #include <assert.h> |
20479 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20480 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20481 | builtin and then its argument prototype would still apply. */ |
20482 | char $ac_func(); | |
20483 | ||
20484 | int main() { | |
20485 | ||
f6bcfd97 BP |
20486 | /* The GNU C library defines this for functions which it implements |
20487 | to always fail with ENOSYS. Some functions are actually named | |
20488 | something starting with __ and the normal name is an alias. */ | |
20489 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20490 | choke me | |
20491 | #else | |
a0b9e27f | 20492 | $ac_func(); |
f6bcfd97 BP |
20493 | #endif |
20494 | ||
a0b9e27f MB |
20495 | ; return 0; } |
20496 | EOF | |
89e6bf6d | 20497 | if { (eval echo configure:20498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20498 | rm -rf conftest* |
20499 | eval "ac_cv_func_$ac_func=yes" | |
20500 | else | |
20501 | echo "configure: failed program was:" >&5 | |
20502 | cat conftest.$ac_ext >&5 | |
20503 | rm -rf conftest* | |
20504 | eval "ac_cv_func_$ac_func=no" | |
20505 | fi | |
20506 | rm -f conftest* | |
20507 | fi | |
20508 | ||
20509 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20510 | echo "$ac_t""yes" 1>&6 | |
20511 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20512 | cat >> confdefs.h <<EOF | |
20513 | #define $ac_tr_func 1 | |
20514 | EOF | |
20515 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20516 | #define HAVE_DLERROR 1 |
a0b9e27f | 20517 | EOF |
f6bcfd97 BP |
20518 | |
20519 | else | |
a0b9e27f MB |
20520 | echo "$ac_t""no" 1>&6 |
20521 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
89e6bf6d | 20522 | echo "configure:20523: checking for dlerror in -ldl" >&5 |
a0b9e27f MB |
20523 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
20524 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20525 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20526 | else |
a0b9e27f | 20527 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20528 | LIBS="-ldl $LIBS" |
a0b9e27f | 20529 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 20530 | #line 20531 "configure" |
f6bcfd97 BP |
20531 | #include "confdefs.h" |
20532 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20533 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20534 | builtin and then its argument prototype would still apply. */ |
20535 | char dlerror(); | |
20536 | ||
20537 | int main() { | |
20538 | dlerror() | |
20539 | ; return 0; } | |
20540 | EOF | |
89e6bf6d | 20541 | if { (eval echo configure:20542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20542 | rm -rf conftest* |
20543 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20544 | else | |
20545 | echo "configure: failed program was:" >&5 | |
20546 | cat conftest.$ac_ext >&5 | |
20547 | rm -rf conftest* | |
20548 | eval "ac_cv_lib_$ac_lib_var=no" | |
20549 | fi | |
20550 | rm -f conftest* | |
20551 | LIBS="$ac_save_LIBS" | |
20552 | ||
20553 | fi | |
20554 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20555 | echo "$ac_t""yes" 1>&6 | |
20556 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20557 | #define HAVE_DLERROR 1 |
a0b9e27f | 20558 | EOF |
f6bcfd97 | 20559 | |
a0b9e27f MB |
20560 | else |
20561 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20562 | fi |
20563 | ||
20564 | fi | |
20565 | done | |
20566 | ||
3a922bb4 RL |
20567 | fi |
20568 | fi | |
f6bcfd97 | 20569 | |
3a922bb4 RL |
20570 | if test "$HAVE_DL_FUNCS" = 0; then |
20571 | if test "$HAVE_SHL_FUNCS" = 0; then | |
20572 | if test "$USE_UNIX" = 1; then | |
a0b9e27f | 20573 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 20574 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
20575 | wxUSE_DYNLIB_CLASS=no |
20576 | else | |
a0b9e27f | 20577 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
20578 | fi |
20579 | fi | |
10f2d63a VZ |
20580 | fi |
20581 | fi | |
20582 | fi | |
20583 | ||
0b9ab0bd | 20584 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
a0b9e27f | 20585 | cat >> confdefs.h <<\EOF |
0b9ab0bd | 20586 | #define wxUSE_DYNAMIC_LOADER 1 |
a0b9e27f | 20587 | EOF |
0b9ab0bd RL |
20588 | |
20589 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
a0b9e27f | 20590 | cat >> confdefs.h <<\EOF |
10f2d63a | 20591 | #define wxUSE_DYNLIB_CLASS 1 |
a0b9e27f | 20592 | EOF |
10f2d63a VZ |
20593 | |
20594 | fi | |
20595 | ||
8284b0c5 | 20596 | |
1e6feb95 | 20597 | if test "$wxUSE_FONTMAP" = "yes" ; then |
a0b9e27f | 20598 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20599 | #define wxUSE_FONTMAP 1 |
a0b9e27f | 20600 | EOF |
1e6feb95 VZ |
20601 | |
20602 | fi | |
20603 | ||
10f2d63a | 20604 | if test "$wxUSE_UNICODE" = "yes" ; then |
a0b9e27f | 20605 | cat >> confdefs.h <<\EOF |
10f2d63a | 20606 | #define wxUSE_UNICODE 1 |
a0b9e27f | 20607 | EOF |
10f2d63a | 20608 | |
8284b0c5 | 20609 | |
bbc3925a VS |
20610 | if test "$wxUSE_MSW" != 1; then |
20611 | wxUSE_UNICODE_MSLU=no | |
20612 | fi | |
a72a4bfa VS |
20613 | |
20614 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
a0b9e27f | 20615 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
89e6bf6d | 20616 | echo "configure:20617: checking for main in -lunicows" >&5 |
a0b9e27f MB |
20617 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
20618 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 20620 | else |
a0b9e27f | 20621 | ac_save_LIBS="$LIBS" |
a72a4bfa | 20622 | LIBS="-lunicows $LIBS" |
a0b9e27f | 20623 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 20624 | #line 20625 "configure" |
a72a4bfa VS |
20625 | #include "confdefs.h" |
20626 | ||
a0b9e27f MB |
20627 | int main() { |
20628 | main() | |
20629 | ; return 0; } | |
20630 | EOF | |
89e6bf6d | 20631 | if { (eval echo configure:20632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20632 | rm -rf conftest* |
20633 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20634 | else | |
20635 | echo "configure: failed program was:" >&5 | |
20636 | cat conftest.$ac_ext >&5 | |
20637 | rm -rf conftest* | |
20638 | eval "ac_cv_lib_$ac_lib_var=no" | |
20639 | fi | |
20640 | rm -f conftest* | |
20641 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 20642 | |
a0b9e27f MB |
20643 | fi |
20644 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20645 | echo "$ac_t""yes" 1>&6 | |
20646 | ||
20647 | cat >> confdefs.h <<\EOF | |
a72a4bfa | 20648 | #define wxUSE_UNICODE_MSLU 1 |
a0b9e27f | 20649 | EOF |
a72a4bfa | 20650 | |
a0b9e27f | 20651 | |
a72a4bfa | 20652 | else |
a0b9e27f | 20653 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 20654 | |
a0b9e27f MB |
20655 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
20656 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 20657 | wxUSE_UNICODE_MSLU=no |
a0b9e27f | 20658 | |
a72a4bfa VS |
20659 | fi |
20660 | ||
20661 | fi | |
10f2d63a VZ |
20662 | fi |
20663 | ||
10f2d63a | 20664 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
a0b9e27f | 20665 | cat >> confdefs.h <<\EOF |
10f2d63a | 20666 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
a0b9e27f | 20667 | EOF |
10f2d63a VZ |
20668 | |
20669 | fi | |
20670 | ||
8284b0c5 MB |
20671 | |
20672 | ||
10f2d63a VZ |
20673 | IODBC_C_SRC="" |
20674 | if test "$wxUSE_ODBC" = "yes" ; then | |
a0b9e27f | 20675 | cat >> confdefs.h <<\EOF |
10f2d63a | 20676 | #define wxUSE_ODBC 1 |
a0b9e27f | 20677 | EOF |
10f2d63a VZ |
20678 | |
20679 | WXODBCFLAG="-D_IODBC_" | |
20680 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
20681 | fi |
20682 | ||
8284b0c5 | 20683 | |
10f2d63a | 20684 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
a0b9e27f | 20685 | cat >> confdefs.h <<\EOF |
10f2d63a | 20686 | #define wxUSE_POSTSCRIPT 1 |
a0b9e27f | 20687 | EOF |
10f2d63a VZ |
20688 | |
20689 | fi | |
20690 | ||
a0b9e27f | 20691 | cat >> confdefs.h <<\EOF |
10f2d63a | 20692 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
a0b9e27f | 20693 | EOF |
10f2d63a | 20694 | |
8284b0c5 | 20695 | |
a0b9e27f | 20696 | cat >> confdefs.h <<\EOF |
10f2d63a | 20697 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
a0b9e27f | 20698 | EOF |
10f2d63a | 20699 | |
8284b0c5 MB |
20700 | |
20701 | ||
10f2d63a | 20702 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
a0b9e27f | 20703 | cat >> confdefs.h <<\EOF |
10f2d63a | 20704 | #define wxUSE_CONSTRAINTS 1 |
a0b9e27f | 20705 | EOF |
10f2d63a VZ |
20706 | |
20707 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
20708 | fi | |
20709 | ||
20710 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 20711 | |
8284b0c5 | 20712 | |
bb811f17 | 20713 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
a0b9e27f | 20714 | cat >> confdefs.h <<\EOF |
10f2d63a | 20715 | #define wxUSE_MDI_ARCHITECTURE 1 |
a0b9e27f | 20716 | EOF |
10f2d63a | 20717 | |
bb811f17 JS |
20718 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
20719 | fi | |
10f2d63a VZ |
20720 | fi |
20721 | ||
20722 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 20723 | cat >> confdefs.h <<\EOF |
10f2d63a | 20724 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
a0b9e27f | 20725 | EOF |
10f2d63a VZ |
20726 | |
20727 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
20728 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
20729 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
20730 | fi | |
20731 | fi | |
20732 | ||
20733 | if test "$wxUSE_HELP" = "yes"; then | |
a0b9e27f | 20734 | cat >> confdefs.h <<\EOF |
10f2d63a | 20735 | #define wxUSE_HELP 1 |
a0b9e27f | 20736 | EOF |
10f2d63a VZ |
20737 | |
20738 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 20739 | |
77e13408 | 20740 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 20741 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
a0b9e27f | 20742 | cat >> confdefs.h <<\EOF |
29fd3c0c | 20743 | #define wxUSE_MS_HTML_HELP 1 |
a0b9e27f | 20744 | EOF |
29fd3c0c | 20745 | |
3e44f09d | 20746 | fi |
3379ed37 | 20747 | fi |
031d8228 VS |
20748 | |
20749 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
20750 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 20751 | cat >> confdefs.h <<\EOF |
031d8228 | 20752 | #define wxUSE_WXHTML_HELP 1 |
a0b9e27f | 20753 | EOF |
031d8228 VS |
20754 | |
20755 | else | |
a0b9e27f | 20756 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
20757 | wxUSE_WXHTML_HELP=no |
20758 | fi | |
20759 | fi | |
10f2d63a VZ |
20760 | fi |
20761 | ||
20762 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
20763 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 20764 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 20765 | else |
a0b9e27f | 20766 | cat >> confdefs.h <<\EOF |
10f2d63a | 20767 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
a0b9e27f | 20768 | EOF |
10f2d63a VZ |
20769 | |
20770 | fi | |
20771 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
20772 | fi | |
20773 | ||
20774 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
a0b9e27f | 20775 | cat >> confdefs.h <<\EOF |
10f2d63a | 20776 | #define wxUSE_PROLOGIO 1 |
a0b9e27f | 20777 | EOF |
10f2d63a | 20778 | |
2b5f62a0 | 20779 | ALL_OBJECTS="$ALL_OBJECTS parser.o" |
10f2d63a VZ |
20780 | fi |
20781 | ||
20782 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea | 20783 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 20784 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 |
2b5f62a0 VZ |
20785 | else |
20786 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20787 | #define wxUSE_RESOURCES 1 |
a0b9e27f | 20788 | EOF |
10f2d63a | 20789 | |
2b5f62a0 VZ |
20790 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
20791 | fi | |
20792 | if test "$wxUSE_PROLOGIO" != "yes" ; then | |
20793 | ALL_OBJECTS="$ALL_OBJECTS parser.o" | |
e334d0ea | 20794 | fi |
10f2d63a VZ |
20795 | fi |
20796 | ||
20797 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
a0b9e27f | 20798 | cat >> confdefs.h <<\EOF |
10f2d63a | 20799 | #define wxUSE_X_RESOURCES 1 |
a0b9e27f | 20800 | EOF |
10f2d63a VZ |
20801 | |
20802 | fi | |
20803 | ||
8284b0c5 | 20804 | |
77e13408 RL |
20805 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
20806 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
3bce6687 | 20807 | -o "$wxUSE_OLE" = "yes" \ |
77e13408 | 20808 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then |
a0b9e27f | 20809 | for ac_hdr in ole2.h |
10f2d63a | 20810 | do |
a0b9e27f MB |
20811 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20812 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
89e6bf6d | 20813 | echo "configure:20814: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20814 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20815 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20816 | else | |
20817 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 20818 | #line 20819 "configure" |
10f2d63a | 20819 | #include "confdefs.h" |
a0b9e27f MB |
20820 | #include <$ac_hdr> |
20821 | EOF | |
20822 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
89e6bf6d | 20823 | { (eval echo configure:20824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20824 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20825 | if test -z "$ac_err"; then | |
20826 | rm -rf conftest* | |
20827 | eval "ac_cv_header_$ac_safe=yes" | |
20828 | else | |
20829 | echo "$ac_err" >&5 | |
20830 | echo "configure: failed program was:" >&5 | |
10f2d63a | 20831 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20832 | rm -rf conftest* |
20833 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 20834 | fi |
a0b9e27f | 20835 | rm -f conftest* |
10f2d63a | 20836 | fi |
a0b9e27f MB |
20837 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20838 | echo "$ac_t""yes" 1>&6 | |
20839 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20840 | cat >> confdefs.h <<EOF | |
20841 | #define $ac_tr_hdr 1 | |
20842 | EOF | |
20843 | ||
20844 | else | |
20845 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
20846 | fi |
20847 | done | |
20848 | ||
8284b0c5 | 20849 | |
2b9bdf71 VZ |
20850 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
20851 | if test "$GCC" = yes ; then | |
a0b9e27f MB |
20852 | |
20853 | ac_ext=C | |
20854 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8284b0c5 | 20855 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20856 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20857 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20858 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 MB |
20859 | |
20860 | ||
a0b9e27f | 20861 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 |
89e6bf6d | 20862 | echo "configure:20863: checking if g++ requires -fvtable-thunks" >&5 |
a0b9e27f | 20863 | cat > conftest.$ac_ext <<EOF |
89e6bf6d | 20864 | #line 20865 "configure" |
8284b0c5 MB |
20865 | #include "confdefs.h" |
20866 | #include <windows.h> | |
20867 | #include <ole2.h> | |
a0b9e27f | 20868 | int main() { |
8284b0c5 | 20869 | |
a0b9e27f MB |
20870 | ; return 0; } |
20871 | EOF | |
89e6bf6d | 20872 | if { (eval echo configure:20873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20873 | rm -rf conftest* |
20874 | echo "$ac_t""no" 1>&6 | |
20875 | else | |
20876 | echo "configure: failed program was:" >&5 | |
20877 | cat conftest.$ac_ext >&5 | |
20878 | rm -rf conftest* | |
20879 | echo "$ac_t""yes" 1>&6 | |
8284b0c5 MB |
20880 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
20881 | fi | |
a0b9e27f | 20882 | rm -f conftest* |
8284b0c5 | 20883 | ac_ext=c |
a0b9e27f | 20884 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8284b0c5 | 20885 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20886 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20887 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20888 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20889 | |
2b9bdf71 | 20890 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 20891 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
a0b9e27f | 20892 | cat >> confdefs.h <<\EOF |
4f11a343 | 20893 | #define wxUSE_OLE 1 |
a0b9e27f | 20894 | EOF |
4f11a343 | 20895 | |
8284b0c5 | 20896 | |
2b9bdf71 VZ |
20897 | fi |
20898 | ||
a0b9e27f | 20899 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 20900 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 20901 | EOF |
2b9bdf71 VZ |
20902 | |
20903 | else | |
a0b9e27f | 20904 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
20905 | |
20906 | wxUSE_CLIPBOARD=no | |
20907 | wxUSE_DRAG_AND_DROP=no | |
20908 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
20909 | wxUSE_OLE=no |
20910 | fi | |
20911 | ||
20912 | if test "$wxUSE_METAFILE" = "yes"; then | |
20913 | cat >> confdefs.h <<\EOF | |
20914 | #define wxUSE_METAFILE 1 | |
20915 | EOF | |
20916 | ||
20917 | ||
20918 | cat >> confdefs.h <<\EOF | |
20919 | #define wxUSE_ENH_METAFILE 1 | |
20920 | EOF | |
20921 | ||
20922 | fi | |
20923 | fi | |
20924 | ||
2b9bdf71 VZ |
20925 | if test "$wxUSE_IPC" = "yes"; then |
20926 | if test "$wxUSE_SOCKETS" != "yes"; then | |
a0b9e27f | 20927 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
20928 | fi |
20929 | ||
a0b9e27f | 20930 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 20931 | #define wxUSE_IPC 1 |
a0b9e27f | 20932 | EOF |
2b9bdf71 VZ |
20933 | |
20934 | fi | |
20935 | ||
20936 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 20937 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 20938 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20939 | wxUSE_CLIPBOARD=no |
20940 | fi | |
20941 | ||
20942 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
a0b9e27f | 20943 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 20944 | #define wxUSE_CLIPBOARD 1 |
a0b9e27f | 20945 | EOF |
2b9bdf71 | 20946 | |
8284b0c5 | 20947 | |
a0b9e27f | 20948 | cat >> confdefs.h <<\EOF |
673f4220 | 20949 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 20950 | EOF |
673f4220 | 20951 | |
6c657b52 | 20952 | fi |
2b9bdf71 VZ |
20953 | fi |
20954 | ||
20955 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
20956 | if test "$wxUSE_GTK" = 1; then | |
20957 | if test "$WXGTK12" != 1; then | |
a0b9e27f | 20958 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
20959 | wxUSE_DRAG_AND_DROP=no |
20960 | fi | |
20961 | fi | |
20962 | ||
2b9bdf71 | 20963 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 20964 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
20965 | wxUSE_DRAG_AND_DROP=no |
20966 | fi | |
20967 | ||
f79bd02d | 20968 | if test "$wxUSE_X11" = 1; then |
a0b9e27f | 20969 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
20970 | wxUSE_DRAG_AND_DROP=no |
20971 | fi | |
20972 | ||
6c657b52 | 20973 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 20974 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20975 | wxUSE_DRAG_AND_DROP=no |
20976 | fi | |
20977 | ||
10f2d63a | 20978 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
a0b9e27f | 20979 | cat >> confdefs.h <<\EOF |
10f2d63a | 20980 | #define wxUSE_DRAG_AND_DROP 1 |
a0b9e27f | 20981 | EOF |
10f2d63a VZ |
20982 | |
20983 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
20984 | fi | |
20985 | ||
20986 | fi | |
20987 | ||
20988 | if test "$wxUSE_SPLINES" = "yes" ; then | |
a0b9e27f | 20989 | cat >> confdefs.h <<\EOF |
10f2d63a | 20990 | #define wxUSE_SPLINES 1 |
a0b9e27f | 20991 | EOF |
10f2d63a VZ |
20992 | |
20993 | fi | |
20994 | ||
8284b0c5 | 20995 | |
1e6feb95 VZ |
20996 | USES_CONTROLS=0 |
20997 | if test "$wxUSE_CONTROLS" = "yes"; then | |
20998 | USES_CONTROLS=1 | |
20999 | fi | |
21000 | ||
10f2d63a | 21001 | if test "$wxUSE_ACCEL" = "yes"; then |
a0b9e27f | 21002 | cat >> confdefs.h <<\EOF |
10f2d63a | 21003 | #define wxUSE_ACCEL 1 |
a0b9e27f | 21004 | EOF |
10f2d63a | 21005 | |
1e6feb95 VZ |
21006 | USES_CONTROLS=1 |
21007 | fi | |
21008 | ||
21009 | if test "$wxUSE_BUTTON" = "yes"; then | |
a0b9e27f | 21010 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21011 | #define wxUSE_BUTTON 1 |
a0b9e27f | 21012 | EOF |
1e6feb95 VZ |
21013 | |
21014 | USES_CONTROLS=1 | |
21015 | fi | |
21016 | ||
21017 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
a0b9e27f | 21018 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21019 | #define wxUSE_BMPBUTTON 1 |
a0b9e27f | 21020 | EOF |
1e6feb95 VZ |
21021 | |
21022 | USES_CONTROLS=1 | |
21023 | fi | |
21024 | ||
21025 | if test "$wxUSE_CALCTRL" = "yes"; then | |
a0b9e27f | 21026 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21027 | #define wxUSE_CALENDARCTRL 1 |
a0b9e27f | 21028 | EOF |
1e6feb95 VZ |
21029 | |
21030 | USES_CONTROLS=1 | |
21031 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
21032 | fi |
21033 | ||
21034 | if test "$wxUSE_CARET" = "yes"; then | |
a0b9e27f | 21035 | cat >> confdefs.h <<\EOF |
10f2d63a | 21036 | #define wxUSE_CARET 1 |
a0b9e27f | 21037 | EOF |
10f2d63a | 21038 | |
1e6feb95 | 21039 | USES_CONTROLS=1 |
10f2d63a VZ |
21040 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
21041 | fi | |
21042 | ||
21043 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
a0b9e27f | 21044 | cat >> confdefs.h <<\EOF |
10f2d63a | 21045 | #define wxUSE_COMBOBOX 1 |
a0b9e27f | 21046 | EOF |
10f2d63a | 21047 | |
1e6feb95 | 21048 | USES_CONTROLS=1 |
10f2d63a VZ |
21049 | fi |
21050 | ||
21051 | if test "$wxUSE_CHOICE" = "yes"; then | |
a0b9e27f | 21052 | cat >> confdefs.h <<\EOF |
10f2d63a | 21053 | #define wxUSE_CHOICE 1 |
a0b9e27f | 21054 | EOF |
10f2d63a | 21055 | |
1e6feb95 | 21056 | USES_CONTROLS=1 |
10f2d63a VZ |
21057 | fi |
21058 | ||
21059 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
a0b9e27f | 21060 | cat >> confdefs.h <<\EOF |
10f2d63a | 21061 | #define wxUSE_CHECKBOX 1 |
a0b9e27f | 21062 | EOF |
10f2d63a | 21063 | |
1e6feb95 | 21064 | USES_CONTROLS=1 |
10f2d63a VZ |
21065 | fi |
21066 | ||
21067 | if test "$wxUSE_CHECKLST" = "yes"; then | |
a0b9e27f | 21068 | cat >> confdefs.h <<\EOF |
10f2d63a | 21069 | #define wxUSE_CHECKLISTBOX 1 |
a0b9e27f | 21070 | EOF |
10f2d63a | 21071 | |
1e6feb95 | 21072 | USES_CONTROLS=1 |
10f2d63a VZ |
21073 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
21074 | fi | |
21075 | ||
21076 | if test "$wxUSE_GAUGE" = "yes"; then | |
a0b9e27f | 21077 | cat >> confdefs.h <<\EOF |
10f2d63a | 21078 | #define wxUSE_GAUGE 1 |
a0b9e27f | 21079 | EOF |
10f2d63a | 21080 | |
1e6feb95 | 21081 | USES_CONTROLS=1 |
10f2d63a VZ |
21082 | fi |
21083 | ||
d6a55c4b VZ |
21084 | if test "$wxUSE_NEW_GRID" = "yes"; then |
21085 | wxUSE_GRID="yes" | |
a0b9e27f | 21086 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21087 | #define wxUSE_NEW_GRID 1 |
a0b9e27f | 21088 | EOF |
10f2d63a | 21089 | |
1e6feb95 | 21090 | USES_CONTROLS=1 |
d6a55c4b | 21091 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
21092 | fi |
21093 | ||
d6a55c4b | 21094 | if test "$wxUSE_GRID" = "yes"; then |
a0b9e27f | 21095 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21096 | #define wxUSE_GRID 1 |
a0b9e27f | 21097 | EOF |
10f2d63a | 21098 | |
1e6feb95 | 21099 | USES_CONTROLS=1 |
d6a55c4b | 21100 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
21101 | fi |
21102 | ||
21103 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21104 | cat >> confdefs.h <<\EOF |
10f2d63a | 21105 | #define wxUSE_IMAGLIST 1 |
a0b9e27f | 21106 | EOF |
10f2d63a VZ |
21107 | |
21108 | fi | |
21109 | ||
21110 | if test "$wxUSE_LISTBOX" = "yes"; then | |
a0b9e27f | 21111 | cat >> confdefs.h <<\EOF |
10f2d63a | 21112 | #define wxUSE_LISTBOX 1 |
a0b9e27f | 21113 | EOF |
10f2d63a | 21114 | |
1e6feb95 | 21115 | USES_CONTROLS=1 |
10f2d63a VZ |
21116 | fi |
21117 | ||
21118 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
21119 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21120 | cat >> confdefs.h <<\EOF |
10f2d63a | 21121 | #define wxUSE_LISTCTRL 1 |
a0b9e27f | 21122 | EOF |
10f2d63a | 21123 | |
1e6feb95 | 21124 | USES_CONTROLS=1 |
10f2d63a VZ |
21125 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
21126 | else | |
a0b9e27f | 21127 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21128 | fi |
21129 | fi | |
21130 | ||
21131 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
a0b9e27f | 21132 | cat >> confdefs.h <<\EOF |
10f2d63a | 21133 | #define wxUSE_NOTEBOOK 1 |
a0b9e27f | 21134 | EOF |
10f2d63a | 21135 | |
1e6feb95 | 21136 | USES_CONTROLS=1 |
10f2d63a VZ |
21137 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
21138 | fi | |
21139 | ||
24176f2c | 21140 | if test "$wxUSE_PROPSHEET" = "yes"; then |
a0b9e27f | 21141 | cat >> confdefs.h <<\EOF |
24176f2c | 21142 | #define wxUSE_PROPSHEET 1 |
a0b9e27f | 21143 | EOF |
24176f2c GD |
21144 | |
21145 | USES_CONTROLS=1 | |
21146 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
21147 | fi | |
21148 | ||
10f2d63a | 21149 | if test "$wxUSE_RADIOBOX" = "yes"; then |
a0b9e27f | 21150 | cat >> confdefs.h <<\EOF |
10f2d63a | 21151 | #define wxUSE_RADIOBOX 1 |
a0b9e27f | 21152 | EOF |
10f2d63a | 21153 | |
1e6feb95 | 21154 | USES_CONTROLS=1 |
10f2d63a VZ |
21155 | fi |
21156 | ||
21157 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
a0b9e27f | 21158 | cat >> confdefs.h <<\EOF |
10f2d63a | 21159 | #define wxUSE_RADIOBTN 1 |
a0b9e27f | 21160 | EOF |
10f2d63a | 21161 | |
1e6feb95 | 21162 | USES_CONTROLS=1 |
10f2d63a VZ |
21163 | fi |
21164 | ||
21165 | if test "$wxUSE_SASH" = "yes"; then | |
a0b9e27f | 21166 | cat >> confdefs.h <<\EOF |
10f2d63a | 21167 | #define wxUSE_SASH 1 |
a0b9e27f | 21168 | EOF |
10f2d63a VZ |
21169 | |
21170 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
21171 | fi | |
21172 | ||
21173 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
a0b9e27f | 21174 | cat >> confdefs.h <<\EOF |
10f2d63a | 21175 | #define wxUSE_SCROLLBAR 1 |
a0b9e27f | 21176 | EOF |
10f2d63a | 21177 | |
1e6feb95 | 21178 | USES_CONTROLS=1 |
741a9306 | 21179 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
21180 | fi |
21181 | ||
21182 | if test "$wxUSE_SLIDER" = "yes"; then | |
a0b9e27f | 21183 | cat >> confdefs.h <<\EOF |
10f2d63a | 21184 | #define wxUSE_SLIDER 1 |
a0b9e27f | 21185 | EOF |
10f2d63a | 21186 | |
1e6feb95 | 21187 | USES_CONTROLS=1 |
10f2d63a VZ |
21188 | fi |
21189 | ||
21190 | if test "$wxUSE_SPINBTN" = "yes"; then | |
a0b9e27f | 21191 | cat >> confdefs.h <<\EOF |
10f2d63a | 21192 | #define wxUSE_SPINBTN 1 |
a0b9e27f | 21193 | EOF |
10f2d63a | 21194 | |
1e6feb95 | 21195 | USES_CONTROLS=1 |
10f2d63a VZ |
21196 | fi |
21197 | ||
56cfaa52 | 21198 | if test "$wxUSE_SPINCTRL" = "yes"; then |
a0b9e27f | 21199 | cat >> confdefs.h <<\EOF |
56cfaa52 | 21200 | #define wxUSE_SPINCTRL 1 |
a0b9e27f | 21201 | EOF |
56cfaa52 | 21202 | |
1e6feb95 | 21203 | USES_CONTROLS=1 |
56cfaa52 RR |
21204 | fi |
21205 | ||
10f2d63a | 21206 | if test "$wxUSE_SPLITTER" = "yes"; then |
a0b9e27f | 21207 | cat >> confdefs.h <<\EOF |
10f2d63a | 21208 | #define wxUSE_SPLITTER 1 |
a0b9e27f | 21209 | EOF |
10f2d63a VZ |
21210 | |
21211 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
21212 | fi | |
21213 | ||
21214 | if test "$wxUSE_STATBMP" = "yes"; then | |
a0b9e27f | 21215 | cat >> confdefs.h <<\EOF |
10f2d63a | 21216 | #define wxUSE_STATBMP 1 |
a0b9e27f | 21217 | EOF |
10f2d63a | 21218 | |
1e6feb95 | 21219 | USES_CONTROLS=1 |
10f2d63a VZ |
21220 | fi |
21221 | ||
21222 | if test "$wxUSE_STATBOX" = "yes"; then | |
a0b9e27f | 21223 | cat >> confdefs.h <<\EOF |
10f2d63a | 21224 | #define wxUSE_STATBOX 1 |
a0b9e27f | 21225 | EOF |
10f2d63a | 21226 | |
1e6feb95 VZ |
21227 | USES_CONTROLS=1 |
21228 | fi | |
21229 | ||
21230 | if test "$wxUSE_STATTEXT" = "yes"; then | |
a0b9e27f | 21231 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21232 | #define wxUSE_STATTEXT 1 |
a0b9e27f | 21233 | EOF |
1e6feb95 VZ |
21234 | |
21235 | USES_CONTROLS=1 | |
10f2d63a VZ |
21236 | fi |
21237 | ||
21238 | if test "$wxUSE_STATLINE" = "yes"; then | |
89e6bf6d | 21239 | cat >> confdefs.h <<\EOF |
10f2d63a | 21240 | #define wxUSE_STATLINE 1 |
a0b9e27f | 21241 | EOF |
10f2d63a | 21242 | |
89e6bf6d | 21243 | USES_CONTROLS=1 |
10f2d63a VZ |
21244 | fi |
21245 | ||
21246 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
a0b9e27f | 21247 | cat >> confdefs.h <<\EOF |
10f2d63a | 21248 | #define wxUSE_STATUSBAR 1 |
a0b9e27f | 21249 | EOF |
10f2d63a | 21250 | |
1e6feb95 | 21251 | USES_CONTROLS=1 |
698dcdb6 | 21252 | |
2286341c | 21253 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
21254 | fi |
21255 | ||
21256 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
a0b9e27f | 21257 | cat >> confdefs.h <<\EOF |
10f2d63a | 21258 | #define wxUSE_TAB_DIALOG 1 |
a0b9e27f | 21259 | EOF |
10f2d63a VZ |
21260 | |
21261 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
21262 | fi | |
21263 | ||
1e6feb95 | 21264 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
a0b9e27f | 21265 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21266 | #define wxUSE_TEXTCTRL 1 |
a0b9e27f | 21267 | EOF |
1e6feb95 VZ |
21268 | |
21269 | USES_CONTROLS=1 | |
21270 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
21271 | fi | |
21272 | ||
1db8dc4a | 21273 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 | 21274 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 21275 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
21276 | wxUSE_TOGGLEBTN=no |
21277 | fi | |
21278 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
a0b9e27f | 21279 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
21280 | wxUSE_TOGGLEBTN=no |
21281 | fi | |
21282 | ||
21283 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
a0b9e27f | 21284 | cat >> confdefs.h <<\EOF |
1db8dc4a | 21285 | #define wxUSE_TOGGLEBTN 1 |
a0b9e27f | 21286 | EOF |
1db8dc4a | 21287 | |
1e6feb95 | 21288 | USES_CONTROLS=1 |
a45d7ab7 | 21289 | fi |
1db8dc4a VZ |
21290 | fi |
21291 | ||
360d6699 | 21292 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
a0b9e27f | 21293 | cat >> confdefs.h <<\EOF |
360d6699 | 21294 | #define wxUSE_TOOLBAR_SIMPLE 1 |
a0b9e27f | 21295 | EOF |
360d6699 VZ |
21296 | |
21297 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 21298 | USES_CONTROLS=1 |
360d6699 VZ |
21299 | fi |
21300 | ||
10f2d63a | 21301 | if test "$wxUSE_TOOLBAR" = "yes"; then |
a0b9e27f | 21302 | cat >> confdefs.h <<\EOF |
10f2d63a | 21303 | #define wxUSE_TOOLBAR 1 |
a0b9e27f | 21304 | EOF |
10f2d63a | 21305 | |
1e6feb95 | 21306 | USES_CONTROLS=1 |
698dcdb6 | 21307 | |
360d6699 VZ |
21308 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
21309 | wxUSE_TOOLBAR_NATIVE="yes" | |
21310 | fi | |
21311 | ||
1e6feb95 | 21312 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
a0b9e27f | 21313 | cat >> confdefs.h <<\EOF |
360d6699 | 21314 | #define wxUSE_TOOLBAR_NATIVE 1 |
a0b9e27f | 21315 | EOF |
360d6699 | 21316 | |
1e6feb95 VZ |
21317 | USES_CONTROLS=1 |
21318 | fi | |
21319 | ||
21320 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
21321 | fi |
21322 | ||
10f2d63a VZ |
21323 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
21324 | if test "$wxUSE_MOTIF" = 1; then | |
a0b9e27f | 21325 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a | 21326 | else |
89e6bf6d VZ |
21327 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
21328 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 | |
10f2d63a | 21329 | else |
89e6bf6d | 21330 | cat >> confdefs.h <<\EOF |
10f2d63a | 21331 | #define wxUSE_TOOLTIPS 1 |
a0b9e27f | 21332 | EOF |
10f2d63a VZ |
21333 | |
21334 | fi | |
21335 | fi | |
21336 | fi | |
21337 | ||
21338 | if test "$wxUSE_TREECTRL" = "yes"; then | |
21339 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21340 | cat >> confdefs.h <<\EOF |
10f2d63a | 21341 | #define wxUSE_TREECTRL 1 |
a0b9e27f | 21342 | EOF |
10f2d63a | 21343 | |
1e6feb95 | 21344 | USES_CONTROLS=1 |
10f2d63a VZ |
21345 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
21346 | else | |
a0b9e27f | 21347 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21348 | fi |
21349 | fi | |
21350 | ||
9f41d601 | 21351 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 21352 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 21353 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 21354 | else |
485cf710 | 21355 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21356 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 21357 | else |
3c011993 | 21358 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21359 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21360 | else |
a0b9e27f | 21361 | cat >> confdefs.h <<\EOF |
9f41d601 | 21362 | #define wxUSE_POPUPWIN 1 |
a0b9e27f | 21363 | EOF |
9f41d601 | 21364 | |
8284b0c5 | 21365 | |
3c011993 VZ |
21366 | USES_CONTROLS=1 |
21367 | fi | |
485cf710 | 21368 | fi |
6abe4b65 | 21369 | fi |
9f41d601 RR |
21370 | fi |
21371 | ||
dd964dcc | 21372 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 21373 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21374 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21375 | else |
a0b9e27f | 21376 | cat >> confdefs.h <<\EOF |
dd964dcc | 21377 | #define wxUSE_TIPWINDOW 1 |
a0b9e27f | 21378 | EOF |
dd964dcc | 21379 | |
3c011993 | 21380 | fi |
dd964dcc VZ |
21381 | fi |
21382 | ||
1e6feb95 | 21383 | if test "$USES_CONTROLS" = 1; then |
a0b9e27f | 21384 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21385 | #define wxUSE_CONTROLS 1 |
a0b9e27f | 21386 | EOF |
10f2d63a | 21387 | |
10f2d63a VZ |
21388 | fi |
21389 | ||
8284b0c5 | 21390 | |
24176f2c | 21391 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
a0b9e27f | 21392 | cat >> confdefs.h <<\EOF |
24176f2c | 21393 | #define wxUSE_TREELAYOUT 1 |
a0b9e27f | 21394 | EOF |
24176f2c GD |
21395 | |
21396 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
21397 | fi | |
1e6feb95 | 21398 | |
24fd6d87 | 21399 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
a0b9e27f | 21400 | cat >> confdefs.h <<\EOF |
24fd6d87 | 21401 | #define wxUSE_DRAGIMAGE 1 |
a0b9e27f | 21402 | EOF |
24fd6d87 VZ |
21403 | |
21404 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
21405 | fi | |
21406 | ||
1e6feb95 | 21407 | if test "$wxUSE_MENUS" = "yes"; then |
a0b9e27f | 21408 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21409 | #define wxUSE_MENUS 1 |
a0b9e27f | 21410 | EOF |
10f2d63a | 21411 | |
1e6feb95 | 21412 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
21413 | fi |
21414 | ||
1e6feb95 | 21415 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 21416 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21417 | #define wxUSE_METAFILE 1 |
a0b9e27f | 21418 | EOF |
10f2d63a | 21419 | |
10f2d63a VZ |
21420 | fi |
21421 | ||
1e6feb95 | 21422 | if test "$wxUSE_MIMETYPE" = "yes"; then |
a0b9e27f | 21423 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21424 | #define wxUSE_MIMETYPE 1 |
a0b9e27f | 21425 | EOF |
10f2d63a | 21426 | |
10f2d63a VZ |
21427 | fi |
21428 | ||
3e44f09d | 21429 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
a0b9e27f | 21430 | cat >> confdefs.h <<\EOF |
3e44f09d | 21431 | #define wxUSE_SYSTEM_OPTIONS 1 |
a0b9e27f | 21432 | EOF |
3e44f09d | 21433 | |
321d2b14 VZ |
21434 | if test "$TOOLKIT" = "MSW"; then |
21435 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
21436 | fi | |
21437 | ||
3e44f09d VZ |
21438 | fi |
21439 | ||
4cdb0ab0 | 21440 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 21441 | if test "$wxUSE_SOCKETS" != "yes"; then |
a0b9e27f | 21442 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
21443 | wxUSE_PROTOCOL=no |
21444 | fi | |
21445 | ||
21446 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
a0b9e27f | 21447 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21448 | #define wxUSE_PROTOCOL 1 |
a0b9e27f | 21449 | EOF |
4cdb0ab0 | 21450 | |
8284b0c5 | 21451 | |
3954f9ca | 21452 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
a0b9e27f | 21453 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21454 | #define wxUSE_PROTOCOL_HTTP 1 |
a0b9e27f | 21455 | EOF |
4cdb0ab0 | 21456 | |
3954f9ca VS |
21457 | fi |
21458 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
a0b9e27f | 21459 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21460 | #define wxUSE_PROTOCOL_FTP 1 |
a0b9e27f | 21461 | EOF |
4cdb0ab0 | 21462 | |
3954f9ca VS |
21463 | fi |
21464 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
a0b9e27f | 21465 | cat >> confdefs.h <<\EOF |
3954f9ca | 21466 | #define wxUSE_PROTOCOL_FILE 1 |
a0b9e27f | 21467 | EOF |
3954f9ca VS |
21468 | |
21469 | fi | |
4cdb0ab0 | 21470 | fi |
3954f9ca VS |
21471 | fi |
21472 | ||
21473 | if test "$wxUSE_URL" = "yes"; then | |
21474 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
a0b9e27f | 21475 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
21476 | wxUSE_URL=no |
21477 | fi | |
21478 | if test "$wxUSE_URL" = "yes"; then | |
a0b9e27f | 21479 | cat >> confdefs.h <<\EOF |
3954f9ca | 21480 | #define wxUSE_URL 1 |
a0b9e27f | 21481 | EOF |
4cdb0ab0 VS |
21482 | |
21483 | fi | |
21484 | fi | |
21485 | ||
10f2d63a | 21486 | if test "$wxUSE_MINIFRAME" = "yes"; then |
a0b9e27f | 21487 | cat >> confdefs.h <<\EOF |
10f2d63a | 21488 | #define wxUSE_MINIFRAME 1 |
a0b9e27f | 21489 | EOF |
10f2d63a VZ |
21490 | |
21491 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
21492 | fi | |
21493 | ||
21494 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21495 | cat >> confdefs.h <<\EOF |
10f2d63a | 21496 | #define wxUSE_HTML 1 |
a0b9e27f | 21497 | EOF |
10f2d63a VZ |
21498 | |
21499 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
21500 | fi |
21501 | ||
21502 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
a0b9e27f | 21503 | cat >> confdefs.h <<\EOF |
1e487827 | 21504 | #define wxUSE_VALIDATORS 1 |
a0b9e27f | 21505 | EOF |
703e0a69 | 21506 | |
698dcdb6 VZ |
21507 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
21508 | fi | |
21509 | ||
edae8572 | 21510 | if test "$wxUSE_PALETTE" = "yes" ; then |
a0b9e27f | 21511 | cat >> confdefs.h <<\EOF |
edae8572 | 21512 | #define wxUSE_PALETTE 1 |
a0b9e27f | 21513 | EOF |
edae8572 VZ |
21514 | |
21515 | fi | |
21516 | ||
698dcdb6 | 21517 | if test "$wxUSE_IMAGE" = "yes" ; then |
a0b9e27f | 21518 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21519 | #define wxUSE_IMAGE 1 |
a0b9e27f | 21520 | EOF |
698dcdb6 VZ |
21521 | |
21522 | fi | |
21523 | ||
21524 | if test "$wxUSE_GIF" = "yes" ; then | |
a0b9e27f | 21525 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21526 | #define wxUSE_GIF 1 |
a0b9e27f | 21527 | EOF |
698dcdb6 VZ |
21528 | |
21529 | fi | |
21530 | ||
21531 | if test "$wxUSE_PCX" = "yes" ; then | |
a0b9e27f | 21532 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21533 | #define wxUSE_PCX 1 |
a0b9e27f | 21534 | EOF |
698dcdb6 VZ |
21535 | |
21536 | fi | |
21537 | ||
4b6b4dfc | 21538 | if test "$wxUSE_IFF" = "yes" ; then |
a0b9e27f | 21539 | cat >> confdefs.h <<\EOF |
4b6b4dfc | 21540 | #define wxUSE_IFF 1 |
a0b9e27f | 21541 | EOF |
4b6b4dfc RR |
21542 | |
21543 | fi | |
21544 | ||
698dcdb6 | 21545 | if test "$wxUSE_PNM" = "yes" ; then |
a0b9e27f | 21546 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21547 | #define wxUSE_PNM 1 |
a0b9e27f | 21548 | EOF |
698dcdb6 VZ |
21549 | |
21550 | fi | |
21551 | ||
21552 | if test "$wxUSE_XPM" = "yes" ; then | |
a0b9e27f | 21553 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21554 | #define wxUSE_XPM 1 |
a0b9e27f | 21555 | EOF |
698dcdb6 VZ |
21556 | |
21557 | fi | |
21558 | ||
658974ae | 21559 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
a0b9e27f | 21560 | cat >> confdefs.h <<\EOF |
658974ae | 21561 | #define wxUSE_ICO_CUR 1 |
a0b9e27f | 21562 | EOF |
658974ae VS |
21563 | |
21564 | fi | |
21565 | ||
a72a4bfa VS |
21566 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
21567 | LIBS=" -lunicows $LIBS" | |
21568 | fi | |
21569 | ||
8284b0c5 | 21570 | |
1e6feb95 | 21571 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
a0b9e27f | 21572 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21573 | #define wxUSE_CHOICEDLG 1 |
a0b9e27f | 21574 | EOF |
1e6feb95 VZ |
21575 | |
21576 | fi | |
21577 | ||
21578 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
a0b9e27f | 21579 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21580 | #define wxUSE_COLOURDLG 1 |
a0b9e27f | 21581 | EOF |
1e6feb95 VZ |
21582 | |
21583 | fi | |
21584 | ||
21585 | if test "$wxUSE_FILEDLG" = "yes"; then | |
a0b9e27f | 21586 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21587 | #define wxUSE_FILEDLG 1 |
a0b9e27f | 21588 | EOF |
1e6feb95 VZ |
21589 | |
21590 | fi | |
21591 | ||
8db37e06 | 21592 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
a0b9e27f | 21593 | cat >> confdefs.h <<\EOF |
8db37e06 | 21594 | #define wxUSE_FINDREPLDLG 1 |
a0b9e27f | 21595 | EOF |
8db37e06 VZ |
21596 | |
21597 | fi | |
21598 | ||
1e6feb95 | 21599 | if test "$wxUSE_FONTDLG" = "yes"; then |
a0b9e27f | 21600 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21601 | #define wxUSE_FONTDLG 1 |
a0b9e27f | 21602 | EOF |
1e6feb95 VZ |
21603 | |
21604 | fi | |
21605 | ||
21606 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 21607 | if test "$wxUSE_TREECTRL" != "yes"; then |
a0b9e27f | 21608 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 21609 | else |
a0b9e27f | 21610 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21611 | #define wxUSE_DIRDLG 1 |
a0b9e27f | 21612 | EOF |
1e6feb95 | 21613 | |
1e6feb95 VZ |
21614 | fi |
21615 | fi | |
21616 | ||
21617 | if test "$wxUSE_MSGDLG" = "yes"; then | |
a0b9e27f | 21618 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21619 | #define wxUSE_MSGDLG 1 |
a0b9e27f | 21620 | EOF |
1e6feb95 VZ |
21621 | |
21622 | fi | |
21623 | ||
21624 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
a0b9e27f | 21625 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21626 | #define wxUSE_NUMBERDLG 1 |
a0b9e27f | 21627 | EOF |
1e6feb95 VZ |
21628 | |
21629 | fi | |
21630 | ||
21631 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
21632 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21633 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 21634 | else |
a0b9e27f | 21635 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21636 | #define wxUSE_PROGRESSDLG 1 |
a0b9e27f | 21637 | EOF |
1e6feb95 VZ |
21638 | |
21639 | fi | |
21640 | fi | |
21641 | ||
cbca9943 | 21642 | if test "$wxUSE_SPLASH" = "yes"; then |
a0b9e27f | 21643 | cat >> confdefs.h <<\EOF |
cbca9943 | 21644 | #define wxUSE_SPLASH 1 |
a0b9e27f | 21645 | EOF |
cbca9943 VZ |
21646 | |
21647 | fi | |
21648 | ||
1e6feb95 VZ |
21649 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
21650 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21651 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 21652 | else |
a0b9e27f | 21653 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21654 | #define wxUSE_STARTUP_TIPS 1 |
a0b9e27f | 21655 | EOF |
1e6feb95 | 21656 | |
7b4a847f RR |
21657 | fi |
21658 | fi | |
579d8138 | 21659 | |
8284b0c5 | 21660 | if test "$wxUSE_TEXTDLG" = "yes"; then |
a0b9e27f | 21661 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21662 | #define wxUSE_TEXTDLG 1 |
a0b9e27f | 21663 | EOF |
8284b0c5 MB |
21664 | |
21665 | fi | |
21666 | ||
21667 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
a0b9e27f | 21668 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21669 | #define wxUSE_WIZARDDLG 1 |
a0b9e27f | 21670 | EOF |
8284b0c5 MB |
21671 | |
21672 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
21673 | fi | |
21674 | ||
21675 | ||
21676 | if test "$cross_compiling" = "yes"; then | |
21677 | OSINFO="\"$host\"" | |
21678 | else | |
21679 | OSINFO=`uname -s -r -m` | |
21680 | OSINFO="\"$OSINFO\"" | |
21681 | fi | |
21682 | ||
a0b9e27f | 21683 | cat >> confdefs.h <<EOF |
8284b0c5 | 21684 | #define WXWIN_OS_DESCRIPTION $OSINFO |
a0b9e27f | 21685 | EOF |
8284b0c5 MB |
21686 | |
21687 | ||
21688 | ||
21689 | if test "x$prefix" != "xNONE"; then | |
21690 | wxPREFIX=$prefix | |
21691 | else | |
21692 | wxPREFIX=$ac_default_prefix | |
21693 | fi | |
21694 | ||
a0b9e27f | 21695 | cat >> confdefs.h <<EOF |
8284b0c5 | 21696 | #define wxINSTALL_PREFIX "$wxPREFIX" |
a0b9e27f | 21697 | EOF |
8284b0c5 MB |
21698 | |
21699 | ||
21700 | ||
21701 | ||
21702 | ||
21703 | if test "$wxUSE_MAC" = 1 ; then | |
21704 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
21705 | fi | |
21706 | ||
21707 | ||
2b5f62a0 VZ |
21708 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
21709 | ||
21710 | have_cos=0 | |
21711 | have_floor=0 | |
21712 | for ac_func in cos | |
21713 | do | |
21714 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
89e6bf6d | 21715 | echo "configure:21716: checking for $ac_func" >&5 |
2b5f62a0 VZ |
21716 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21717 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21718 | else | |
21719 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 21720 | #line 21721 "configure" |
2b5f62a0 VZ |
21721 | #include "confdefs.h" |
21722 | /* System header to define __stub macros and hopefully few prototypes, | |
21723 | which can conflict with char $ac_func(); below. */ | |
21724 | #include <assert.h> | |
21725 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21726 | /* We use char because int might match the return type of a gcc2 | |
21727 | builtin and then its argument prototype would still apply. */ | |
21728 | char $ac_func(); | |
21729 | ||
21730 | int main() { | |
21731 | ||
21732 | /* The GNU C library defines this for functions which it implements | |
21733 | to always fail with ENOSYS. Some functions are actually named | |
21734 | something starting with __ and the normal name is an alias. */ | |
21735 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21736 | choke me | |
21737 | #else | |
21738 | $ac_func(); | |
21739 | #endif | |
21740 | ||
21741 | ; return 0; } | |
21742 | EOF | |
89e6bf6d | 21743 | if { (eval echo configure:21744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
21744 | rm -rf conftest* |
21745 | eval "ac_cv_func_$ac_func=yes" | |
21746 | else | |
21747 | echo "configure: failed program was:" >&5 | |
21748 | cat conftest.$ac_ext >&5 | |
21749 | rm -rf conftest* | |
21750 | eval "ac_cv_func_$ac_func=no" | |
21751 | fi | |
21752 | rm -f conftest* | |
21753 | fi | |
21754 | ||
21755 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
21756 | echo "$ac_t""yes" 1>&6 | |
21757 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
21758 | cat >> confdefs.h <<EOF | |
21759 | #define $ac_tr_func 1 | |
21760 | EOF | |
21761 | have_cos=1 | |
21762 | else | |
21763 | echo "$ac_t""no" 1>&6 | |
21764 | fi | |
21765 | done | |
21766 | ||
21767 | for ac_func in floor | |
21768 | do | |
21769 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
89e6bf6d | 21770 | echo "configure:21771: checking for $ac_func" >&5 |
2b5f62a0 VZ |
21771 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21772 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21773 | else | |
21774 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 21775 | #line 21776 "configure" |
2b5f62a0 VZ |
21776 | #include "confdefs.h" |
21777 | /* System header to define __stub macros and hopefully few prototypes, | |
21778 | which can conflict with char $ac_func(); below. */ | |
21779 | #include <assert.h> | |
21780 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21781 | /* We use char because int might match the return type of a gcc2 | |
21782 | builtin and then its argument prototype would still apply. */ | |
21783 | char $ac_func(); | |
21784 | ||
21785 | int main() { | |
21786 | ||
21787 | /* The GNU C library defines this for functions which it implements | |
21788 | to always fail with ENOSYS. Some functions are actually named | |
21789 | something starting with __ and the normal name is an alias. */ | |
21790 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21791 | choke me | |
21792 | #else | |
21793 | $ac_func(); | |
21794 | #endif | |
21795 | ||
21796 | ; return 0; } | |
21797 | EOF | |
89e6bf6d | 21798 | if { (eval echo configure:21799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
21799 | rm -rf conftest* |
21800 | eval "ac_cv_func_$ac_func=yes" | |
21801 | else | |
21802 | echo "configure: failed program was:" >&5 | |
21803 | cat conftest.$ac_ext >&5 | |
21804 | rm -rf conftest* | |
21805 | eval "ac_cv_func_$ac_func=no" | |
21806 | fi | |
21807 | rm -f conftest* | |
21808 | fi | |
21809 | ||
21810 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
21811 | echo "$ac_t""yes" 1>&6 | |
21812 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
21813 | cat >> confdefs.h <<EOF | |
21814 | #define $ac_tr_func 1 | |
21815 | EOF | |
21816 | have_floor=1 | |
21817 | else | |
21818 | echo "$ac_t""no" 1>&6 | |
21819 | fi | |
21820 | done | |
21821 | ||
21822 | echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6 | |
89e6bf6d | 21823 | echo "configure:21824: checking if floating point functions link without -lm" >&5 |
2b5f62a0 VZ |
21824 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
21825 | echo "$ac_t""yes" 1>&6 | |
21826 | else | |
21827 | echo "$ac_t""no" 1>&6 | |
21828 | LIBS="$LIBS -lm" | |
21829 | # use different functions to avoid configure caching | |
21830 | have_sin=0 | |
21831 | have_ceil=0 | |
21832 | for ac_func in sin | |
21833 | do | |
21834 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
89e6bf6d | 21835 | echo "configure:21836: checking for $ac_func" >&5 |
2b5f62a0 VZ |
21836 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21837 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21838 | else | |
21839 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 21840 | #line 21841 "configure" |
2b5f62a0 VZ |
21841 | #include "confdefs.h" |
21842 | /* System header to define __stub macros and hopefully few prototypes, | |
21843 | which can conflict with char $ac_func(); below. */ | |
21844 | #include <assert.h> | |
21845 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21846 | /* We use char because int might match the return type of a gcc2 | |
21847 | builtin and then its argument prototype would still apply. */ | |
21848 | char $ac_func(); | |
21849 | ||
21850 | int main() { | |
21851 | ||
21852 | /* The GNU C library defines this for functions which it implements | |
21853 | to always fail with ENOSYS. Some functions are actually named | |
21854 | something starting with __ and the normal name is an alias. */ | |
21855 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21856 | choke me | |
21857 | #else | |
21858 | $ac_func(); | |
21859 | #endif | |
21860 | ||
21861 | ; return 0; } | |
21862 | EOF | |
89e6bf6d | 21863 | if { (eval echo configure:21864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
21864 | rm -rf conftest* |
21865 | eval "ac_cv_func_$ac_func=yes" | |
21866 | else | |
21867 | echo "configure: failed program was:" >&5 | |
21868 | cat conftest.$ac_ext >&5 | |
21869 | rm -rf conftest* | |
21870 | eval "ac_cv_func_$ac_func=no" | |
21871 | fi | |
21872 | rm -f conftest* | |
21873 | fi | |
21874 | ||
21875 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
21876 | echo "$ac_t""yes" 1>&6 | |
21877 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
21878 | cat >> confdefs.h <<EOF | |
21879 | #define $ac_tr_func 1 | |
21880 | EOF | |
21881 | have_sin=1 | |
21882 | else | |
21883 | echo "$ac_t""no" 1>&6 | |
21884 | fi | |
21885 | done | |
21886 | ||
21887 | for ac_func in ceil | |
21888 | do | |
21889 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
89e6bf6d | 21890 | echo "configure:21891: checking for $ac_func" >&5 |
2b5f62a0 VZ |
21891 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21892 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21893 | else | |
21894 | cat > conftest.$ac_ext <<EOF | |
89e6bf6d | 21895 | #line 21896 "configure" |
2b5f62a0 VZ |
21896 | #include "confdefs.h" |
21897 | /* System header to define __stub macros and hopefully few prototypes, | |
21898 | which can conflict with char $ac_func(); below. */ | |
21899 | #include <assert.h> | |
21900 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21901 | /* We use char because int might match the return type of a gcc2 | |
21902 | builtin and then its argument prototype would still apply. */ | |
21903 | char $ac_func(); | |
21904 | ||
21905 | int main() { | |
21906 | ||
21907 | /* The GNU C library defines this for functions which it implements | |
21908 | to always fail with ENOSYS. Some functions are actually named | |
21909 | something starting with __ and the normal name is an alias. */ | |
21910 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21911 | choke me | |
21912 | #else | |
21913 | $ac_func(); | |
21914 | #endif | |
21915 | ||
21916 | ; return 0; } | |
21917 | EOF | |
89e6bf6d | 21918 | if { (eval echo configure:21919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
21919 | rm -rf conftest* |
21920 | eval "ac_cv_func_$ac_func=yes" | |
21921 | else | |
21922 | echo "configure: failed program was:" >&5 | |
21923 | cat conftest.$ac_ext >&5 | |
21924 | rm -rf conftest* | |
21925 | eval "ac_cv_func_$ac_func=no" | |
21926 | fi | |
21927 | rm -f conftest* | |
21928 | fi | |
21929 | ||
21930 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
21931 | echo "$ac_t""yes" 1>&6 | |
21932 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
21933 | cat >> confdefs.h <<EOF | |
21934 | #define $ac_tr_func 1 | |
21935 | EOF | |
21936 | have_ceil=1 | |
21937 | else | |
21938 | echo "$ac_t""no" 1>&6 | |
21939 | fi | |
21940 | done | |
21941 | ||
21942 | echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6 | |
89e6bf6d | 21943 | echo "configure:21944: checking if floating point functions link with -lm" >&5 |
2b5f62a0 VZ |
21944 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
21945 | echo "$ac_t""yes" 1>&6 | |
21946 | else | |
21947 | echo "$ac_t""no" 1>&6 | |
21948 | # not sure we should warn the user, crash, etc. | |
21949 | fi | |
21950 | fi | |
8284b0c5 MB |
21951 | |
21952 | if test "$wxUSE_GUI" = "yes"; then | |
21953 | ||
21954 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
21955 | ||
a0b9e27f | 21956 | |
8284b0c5 MB |
21957 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
21958 | drawing dynamic erase event exec font image \ | |
21959 | minimal propsize rotate widgets" | |
21960 | ||
21961 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
21962 | else | |
21963 | SAMPLES_SUBDIRS="console" | |
21964 | fi | |
21965 | ||
21966 | ||
21967 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
21968 | -I\${top_srcdir}/include \ | |
21969 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
21970 | $TOOLKIT_INCLUDE" | |
21971 | ||
21972 | if test "$wxUSE_GTK" = 1; then | |
21973 | WXCONFIG_INCLUDE= | |
21974 | else | |
21975 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
21976 | fi | |
21977 | ||
21978 | if test "$GXX" = yes ; then | |
21979 | CXXWARNINGS="-Wall" | |
a0b9e27f | 21980 | |
8284b0c5 MB |
21981 | if test "$wxUSE_NO_DEPS" = "no" ; then |
21982 | CFLAGS="-MMD $CFLAGS" | |
21983 | CXXFLAGS="-MMD $CXXFLAGS" | |
21984 | fi | |
21985 | fi | |
21986 | ||
b2fee376 | 21987 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" |
8284b0c5 | 21988 | |
b2fee376 | 21989 | CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
8284b0c5 MB |
21990 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
21991 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
21992 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
21993 | ||
21994 | LDFLAGS="$LDFLAGS $PROFILE" | |
21995 | ||
21996 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
21997 | ||
21998 | ||
21999 | ||
22000 | ||
22001 | ||
22002 | ||
22003 | ||
22004 | ||
22005 | ||
22006 | ||
22007 | ||
22008 | ||
22009 | ||
22010 | ||
22011 | ||
22012 | ||
22013 | ||
22014 | ||
22015 | ||
22016 | ||
22017 | ||
22018 | ||
22019 | ||
22020 | ||
22021 | ||
22022 | ||
22023 | ||
22024 | ||
22025 | ||
22026 | ||
22027 | ||
22028 | ||
22029 | ||
22030 | ||
22031 | ||
22032 | ||
22033 | ||
22034 | ||
22035 | ||
22036 | ||
22037 | ||
22038 | ||
22039 | ||
22040 | ||
22041 | ||
22042 | ||
22043 | ||
22044 | ||
22045 | ||
22046 | ||
22047 | ||
22048 | ||
22049 | ||
22050 | ||
22051 | ||
22052 | ||
22053 | ||
22054 | ||
22055 | ||
22056 | ||
22057 | ||
22058 | ||
22059 | ||
22060 | ||
22061 | ||
22062 | ||
22063 | ||
22064 | ||
2f51a9ec GD |
22065 | |
22066 | ||
22067 | ||
22068 | ||
f6bcfd97 | 22069 | |
dad6c0ea | 22070 | |
caa2c79b | 22071 | |
3711412e | 22072 | |
1e6feb95 VZ |
22073 | |
22074 | ||
885d4bf5 VS |
22075 | |
22076 | ||
22077 | ||
22078 | ||
9b695262 VZ |
22079 | |
22080 | ||
62d0491b | 22081 | |
ef7f2189 | 22082 | |
40f7145c | 22083 | |
2b5f62a0 VZ |
22084 | |
22085 | ||
22086 | ||
22087 | ||
22088 | ||
2bffed64 VZ |
22089 | |
22090 | ||
3bd8fb5f | 22091 | |
e26c13cf | 22092 | |
10f2d63a | 22093 | |
a0b9e27f MB |
22094 | |
22095 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
89e6bf6d | 22096 | echo "configure:22097: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a0b9e27f MB |
22097 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
22098 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
22099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 22100 | else |
a0b9e27f | 22101 | cat > conftestmake <<\EOF |
10f2d63a VZ |
22102 | all: |
22103 | @echo 'ac_maketemp="${MAKE}"' | |
a0b9e27f | 22104 | EOF |
10f2d63a | 22105 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
a0b9e27f | 22106 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
22107 | if test -n "$ac_maketemp"; then |
22108 | eval ac_cv_prog_make_${ac_make}_set=yes | |
22109 | else | |
22110 | eval ac_cv_prog_make_${ac_make}_set=no | |
22111 | fi | |
a0b9e27f | 22112 | rm -f conftestmake |
10f2d63a VZ |
22113 | fi |
22114 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
a0b9e27f | 22115 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
22116 | SET_MAKE= |
22117 | else | |
a0b9e27f | 22118 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
22119 | SET_MAKE="MAKE=${MAKE-make}" |
22120 | fi | |
22121 | ||
8284b0c5 | 22122 | |
3a922bb4 RL |
22123 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
22124 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 22125 | fi |
665bbe97 | 22126 | |
8284b0c5 | 22127 | |
10f2d63a | 22128 | |
57973b9c VZ |
22129 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22130 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
22131 | wx_cv_path_ifs=$PATH_IFS | |
22132 | wx_cv_program_ext=$PROGRAM_EXT | |
22133 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
22134 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
22135 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
2b5f62a0 VZ |
22136 | wx_cv_library_basename=${WX_LIBRARY_BASENAME} |
22137 | wx_cv_release=${WX_RELEASE} | |
22138 | wx_cv_current=${WX_CURRENT} | |
22139 | wx_cv_revision=${WX_REVISION} | |
22140 | wx_cv_age=${WX_AGE} | |
27635a90 | 22141 | wx_cv_use_gui=${USE_GUI} |
5e66eee1 | 22142 | wx_cv_use_resources=${wxUSE_RESOURCES} |
57973b9c VZ |
22143 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
22144 | wx_cv_path_ifs wx_cv_program_ext \ | |
2b5f62a0 | 22145 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \ |
27635a90 | 22146 | wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \ |
5e66eee1 | 22147 | wx_cv_use_gui wx_cv_use_resources |
57973b9c | 22148 | |
a0b9e27f | 22149 | subdirs="demos samples utils contrib" |
8284b0c5 | 22150 | |
10f2d63a | 22151 | |
a0b9e27f MB |
22152 | trap '' 1 2 15 |
22153 | cat > confcache <<\EOF | |
10f2d63a VZ |
22154 | # This file is a shell script that caches the results of configure |
22155 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
22156 | # scripts and configure runs. It is not useful on other systems. |
22157 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 22158 | # |
a0b9e27f MB |
22159 | # By default, configure uses ./config.cache as the cache file, |
22160 | # creating it if it does not exist already. You can give configure | |
22161 | # the --cache-file=FILE option to use a different cache file; that is | |
22162 | # what configure does when it calls configure scripts in | |
22163 | # subdirectories, so they share the cache. | |
22164 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
22165 | # config.status only pays attention to the cache file if you give it the | |
22166 | # --recheck option to rerun configure. | |
10f2d63a | 22167 | # |
a0b9e27f | 22168 | EOF |
10f2d63a VZ |
22169 | # The following way of writing the cache mishandles newlines in values, |
22170 | # but we know of no workaround that is simple, portable, and efficient. | |
22171 | # So, don't put newlines in cache variables' values. | |
22172 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22173 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
22174 | (set) 2>&1 | |
22175 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22176 | *ac_space=\ *) | |
22177 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
22178 | # turns \\\\ into \\, and sed turns \\ into \). | |
22179 | sed -n \ | |
22180 | -e "s/'/'\\\\''/g" \ | |
22181 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
22182 | ;; | |
22183 | *) | |
22184 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22185 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
22186 | ;; | |
22187 | esac >> confcache | |
22188 | if cmp -s $cache_file confcache; then | |
22189 | : | |
22190 | else | |
10f2d63a | 22191 | if test -w $cache_file; then |
a0b9e27f MB |
22192 | echo "updating cache $cache_file" |
22193 | cat confcache > $cache_file | |
10f2d63a VZ |
22194 | else |
22195 | echo "not updating unwritable cache $cache_file" | |
22196 | fi | |
22197 | fi | |
22198 | rm -f confcache | |
22199 | ||
a0b9e27f MB |
22200 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
22201 | ||
10f2d63a VZ |
22202 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
22203 | # Let make expand exec_prefix. | |
22204 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22205 | ||
a0b9e27f MB |
22206 | # Any assignment to VPATH causes Sun make to only execute |
22207 | # the first set of double-colon rules, so remove it if not needed. | |
22208 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 22209 | if test "x$srcdir" = x.; then |
a0b9e27f | 22210 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
22211 | fi |
22212 | ||
a0b9e27f | 22213 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
10f2d63a | 22214 | |
a0b9e27f | 22215 | DEFS=-DHAVE_CONFIG_H |
8284b0c5 | 22216 | |
a0b9e27f | 22217 | # Without the "./", some shells look in PATH for config.status. |
247f5006 | 22218 | : ${CONFIG_STATUS=./config.status} |
52127426 | 22219 | |
a0b9e27f MB |
22220 | echo creating $CONFIG_STATUS |
22221 | rm -f $CONFIG_STATUS | |
22222 | cat > $CONFIG_STATUS <<EOF | |
22223 | #! /bin/sh | |
22224 | # Generated automatically by configure. | |
22225 | # Run this file to recreate the current configuration. | |
22226 | # This directory was configured as follows, | |
22227 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
247f5006 | 22228 | # |
a0b9e27f | 22229 | # $0 $ac_configure_args |
247f5006 | 22230 | # |
a0b9e27f MB |
22231 | # Compiler output produced by configure, useful for debugging |
22232 | # configure, is in ./config.log if it exists. | |
247f5006 | 22233 | |
a0b9e27f MB |
22234 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
22235 | for ac_option | |
247f5006 | 22236 | do |
a0b9e27f MB |
22237 | case "\$ac_option" in |
22238 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22239 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
22240 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
22241 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
22242 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
22243 | exit 0 ;; | |
22244 | -help | --help | --hel | --he | --h) | |
22245 | echo "\$ac_cs_usage"; exit 0 ;; | |
22246 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
247f5006 VZ |
22247 | esac |
22248 | done | |
22249 | ||
a0b9e27f MB |
22250 | ac_given_srcdir=$srcdir |
22251 | ac_given_INSTALL="$INSTALL" | |
247f5006 | 22252 | |
a0b9e27f MB |
22253 | trap 'rm -fr `echo " |
22254 | wx-config | |
2b5f62a0 | 22255 | version-script |
a0b9e27f MB |
22256 | src/make.env |
22257 | src/makeprog.env | |
22258 | src/makelib.env | |
22259 | Makefile | |
22260 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
22261 | EOF | |
22262 | cat >> $CONFIG_STATUS <<EOF | |
247f5006 | 22263 | |
a0b9e27f MB |
22264 | # Protect against being on the right side of a sed subst in config.status. |
22265 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
22266 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
22267 | $ac_vpsub | |
22268 | $extrasub | |
22269 | s%@SHELL@%$SHELL%g | |
22270 | s%@CFLAGS@%$CFLAGS%g | |
22271 | s%@CPPFLAGS@%$CPPFLAGS%g | |
22272 | s%@CXXFLAGS@%$CXXFLAGS%g | |
22273 | s%@FFLAGS@%$FFLAGS%g | |
22274 | s%@DEFS@%$DEFS%g | |
22275 | s%@LDFLAGS@%$LDFLAGS%g | |
22276 | s%@LIBS@%$LIBS%g | |
22277 | s%@exec_prefix@%$exec_prefix%g | |
22278 | s%@prefix@%$prefix%g | |
22279 | s%@program_transform_name@%$program_transform_name%g | |
22280 | s%@bindir@%$bindir%g | |
22281 | s%@sbindir@%$sbindir%g | |
22282 | s%@libexecdir@%$libexecdir%g | |
22283 | s%@datadir@%$datadir%g | |
22284 | s%@sysconfdir@%$sysconfdir%g | |
22285 | s%@sharedstatedir@%$sharedstatedir%g | |
22286 | s%@localstatedir@%$localstatedir%g | |
22287 | s%@libdir@%$libdir%g | |
22288 | s%@includedir@%$includedir%g | |
22289 | s%@oldincludedir@%$oldincludedir%g | |
22290 | s%@infodir@%$infodir%g | |
22291 | s%@mandir@%$mandir%g | |
22292 | s%@host@%$host%g | |
22293 | s%@host_alias@%$host_alias%g | |
22294 | s%@host_cpu@%$host_cpu%g | |
22295 | s%@host_vendor@%$host_vendor%g | |
22296 | s%@host_os@%$host_os%g | |
22297 | s%@target@%$target%g | |
22298 | s%@target_alias@%$target_alias%g | |
22299 | s%@target_cpu@%$target_cpu%g | |
22300 | s%@target_vendor@%$target_vendor%g | |
22301 | s%@target_os@%$target_os%g | |
22302 | s%@build@%$build%g | |
22303 | s%@build_alias@%$build_alias%g | |
22304 | s%@build_cpu@%$build_cpu%g | |
22305 | s%@build_vendor@%$build_vendor%g | |
22306 | s%@build_os@%$build_os%g | |
22307 | s%@CC@%$CC%g | |
22308 | s%@CPP@%$CPP%g | |
22309 | s%@CXX@%$CXX%g | |
22310 | s%@RANLIB@%$RANLIB%g | |
22311 | s%@AR@%$AR%g | |
22312 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
22313 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
22314 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
22315 | s%@STRIP@%$STRIP%g | |
22316 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
22317 | s%@YACC@%$YACC%g | |
22318 | s%@LEX@%$LEX%g | |
22319 | s%@LEXLIB@%$LEXLIB%g | |
22320 | s%@LN_S@%$LN_S%g | |
22321 | s%@CXXCPP@%$CXXCPP%g | |
22322 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
22323 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
22324 | s%@GTK_LIBS@%$GTK_LIBS%g | |
22325 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
22326 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
22327 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
22328 | s%@X_CFLAGS@%$X_CFLAGS%g | |
22329 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
22330 | s%@X_LIBS@%$X_LIBS%g | |
22331 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
2b5f62a0 VZ |
22332 | s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g |
22333 | s%@PANGOX_LIBS@%$PANGOX_LIBS%g | |
22334 | s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g | |
22335 | s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g | |
a0b9e27f MB |
22336 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g |
22337 | s%@RESCOMP@%$RESCOMP%g | |
22338 | s%@DEREZ@%$DEREZ%g | |
22339 | s%@LIBICONV@%$LIBICONV%g | |
22340 | s%@LEX_STEM@%$LEX_STEM%g | |
22341 | s%@PATH_IFS@%$PATH_IFS%g | |
22342 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
22343 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
22344 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
22345 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
22346 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
2b5f62a0 | 22347 | s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g |
a0b9e27f MB |
22348 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
22349 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
22350 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
22351 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
22352 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
22353 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
22354 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
22355 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
22356 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
22357 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
22358 | s%@WX_ALL@%$WX_ALL%g | |
22359 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
22360 | s%@SHARED_LD@%$SHARED_LD%g | |
22361 | s%@PIC_FLAG@%$PIC_FLAG%g | |
22362 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
22363 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
22364 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
22365 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
22366 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
22367 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
2bffed64 | 22368 | s%@STATIC_FLAG@%$STATIC_FLAG%g |
a0b9e27f MB |
22369 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
22370 | s%@USE_GUI@%$USE_GUI%g | |
22371 | s%@AFMINSTALL@%$AFMINSTALL%g | |
2b5f62a0 | 22372 | s%@WIN32INSTALL@%$WIN32INSTALL%g |
a0b9e27f MB |
22373 | s%@TOOLKIT@%$TOOLKIT%g |
22374 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
22375 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
22376 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
22377 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
22378 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
22379 | s%@cross_compiling@%$cross_compiling%g | |
22380 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
22381 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
22382 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
22383 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
22384 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
22385 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
e26c13cf | 22386 | s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g |
a0b9e27f MB |
22387 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
22388 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
22389 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
22390 | s%@GUIDIST@%$GUIDIST%g | |
22391 | s%@PORT_FILES@%$PORT_FILES%g | |
22392 | s%@DISTDIR@%$DISTDIR%g | |
a0b9e27f MB |
22393 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
22394 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
2b5f62a0 | 22395 | s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g |
a0b9e27f MB |
22396 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
22397 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
22398 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
22399 | s%@EXTRADEFS@%$EXTRADEFS%g | |
2b5f62a0 | 22400 | s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g |
a0b9e27f MB |
22401 | s%@RESFLAGS@%$RESFLAGS%g |
22402 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
22403 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
22404 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
22405 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
22406 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
22407 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
22408 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g | |
2b5f62a0 | 22409 | s%@GCC@%$GCC%g |
a0b9e27f MB |
22410 | s%@DLLTOOL@%$DLLTOOL%g |
22411 | s%@AS@%$AS%g | |
22412 | s%@NM@%$NM%g | |
22413 | s%@LD@%$LD%g | |
22414 | s%@MAKEINFO@%$MAKEINFO%g | |
22415 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
22416 | s%@SET_MAKE@%$SET_MAKE%g | |
22417 | s%@subdirs@%$subdirs%g | |
247f5006 | 22418 | |
247f5006 | 22419 | CEOF |
a0b9e27f | 22420 | EOF |
247f5006 | 22421 | |
a0b9e27f MB |
22422 | cat >> $CONFIG_STATUS <<\EOF |
22423 | ||
22424 | # Split the substitutions into bite-sized pieces for seds with | |
22425 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22426 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
22427 | ac_file=1 # Number of current file. | |
22428 | ac_beg=1 # First line for current file. | |
22429 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
22430 | ac_more_lines=: | |
22431 | ac_sed_cmds="" | |
22432 | while $ac_more_lines; do | |
22433 | if test $ac_beg -gt 1; then | |
22434 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
22435 | else | |
22436 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
22437 | fi | |
22438 | if test ! -s conftest.s$ac_file; then | |
22439 | ac_more_lines=false | |
22440 | rm -f conftest.s$ac_file | |
22441 | else | |
22442 | if test -z "$ac_sed_cmds"; then | |
22443 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
247f5006 | 22444 | else |
a0b9e27f | 22445 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
247f5006 | 22446 | fi |
a0b9e27f MB |
22447 | ac_file=`expr $ac_file + 1` |
22448 | ac_beg=$ac_end | |
22449 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 22450 | fi |
a0b9e27f MB |
22451 | done |
22452 | if test -z "$ac_sed_cmds"; then | |
22453 | ac_sed_cmds=cat | |
22454 | fi | |
22455 | EOF | |
10f2d63a | 22456 | |
a0b9e27f | 22457 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 22458 | |
a0b9e27f | 22459 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
2b5f62a0 | 22460 | version-script |
a0b9e27f MB |
22461 | src/make.env |
22462 | src/makeprog.env | |
22463 | src/makelib.env | |
22464 | Makefile | |
22465 | "} | |
22466 | EOF | |
22467 | cat >> $CONFIG_STATUS <<\EOF | |
22468 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
22469 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22470 | case "$ac_file" in | |
22471 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22472 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22473 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a | 22474 | esac |
247f5006 | 22475 | |
a0b9e27f | 22476 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
247f5006 | 22477 | |
a0b9e27f MB |
22478 | # Remove last slash and all that follows it. Not all systems have dirname. |
22479 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22480 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22481 | # The file is in a subdirectory. | |
22482 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
22483 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
22484 | # A "../" for each directory in $ac_dir_suffix. | |
22485 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
22486 | else | |
22487 | ac_dir_suffix= ac_dots= | |
22488 | fi | |
247f5006 | 22489 | |
a0b9e27f MB |
22490 | case "$ac_given_srcdir" in |
22491 | .) srcdir=. | |
22492 | if test -z "$ac_dots"; then top_srcdir=. | |
22493 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
22494 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
247f5006 | 22495 | *) # Relative path. |
a0b9e27f MB |
22496 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
22497 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8284b0c5 | 22498 | esac |
10f2d63a | 22499 | |
a0b9e27f MB |
22500 | case "$ac_given_INSTALL" in |
22501 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
22502 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
22503 | esac | |
247f5006 | 22504 | |
a0b9e27f MB |
22505 | echo creating "$ac_file" |
22506 | rm -f "$ac_file" | |
22507 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
22508 | case "$ac_file" in | |
22509 | *Makefile*) ac_comsub="1i\\ | |
22510 | # $configure_input" ;; | |
22511 | *) ac_comsub= ;; | |
22512 | esac | |
247f5006 | 22513 | |
a0b9e27f MB |
22514 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
22515 | sed -e "$ac_comsub | |
22516 | s%@configure_input@%$configure_input%g | |
22517 | s%@srcdir@%$srcdir%g | |
22518 | s%@top_srcdir@%$top_srcdir%g | |
22519 | s%@INSTALL@%$INSTALL%g | |
22520 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
22521 | fi; done | |
22522 | rm -f conftest.s* | |
10f2d63a VZ |
22523 | |
22524 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22525 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22526 | # | |
22527 | # ac_d sets the value in "#define NAME VALUE" lines. | |
a0b9e27f MB |
22528 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22529 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
22530 | ac_dC='\3' | |
22531 | ac_dD='%g' | |
22532 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
22533 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22534 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 22535 | ac_uC=' ' |
a0b9e27f MB |
22536 | ac_uD='\4%g' |
22537 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
22538 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22539 | ac_eB='$%\1#\2define\3' | |
22540 | ac_eC=' ' | |
22541 | ac_eD='%g' | |
22542 | ||
22543 | if test "${CONFIG_HEADERS+set}" != set; then | |
22544 | EOF | |
22545 | cat >> $CONFIG_STATUS <<EOF | |
22546 | CONFIG_HEADERS="setup.h:setup.h.in" | |
22547 | EOF | |
22548 | cat >> $CONFIG_STATUS <<\EOF | |
22549 | fi | |
22550 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 22551 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
a0b9e27f MB |
22552 | case "$ac_file" in |
22553 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22554 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22555 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
22556 | esac |
22557 | ||
a0b9e27f MB |
22558 | echo creating $ac_file |
22559 | ||
22560 | rm -f conftest.frag conftest.in conftest.out | |
22561 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
22562 | cat $ac_file_inputs > conftest.in | |
22563 | ||
22564 | EOF | |
22565 | ||
22566 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
22567 | # the proper values into config.h.in to produce config.h. And first: | |
22568 | # Protect against being on the right side of a sed subst in config.status. | |
22569 | # Protect against being in an unquoted here document in config.status. | |
22570 | rm -f conftest.vals | |
22571 | cat > conftest.hdr <<\EOF | |
22572 | s/[\\&%]/\\&/g | |
22573 | s%[\\$`]%\\&%g | |
22574 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
22575 | s%ac_d%ac_u%gp | |
22576 | s%ac_u%ac_e%gp | |
22577 | EOF | |
22578 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
22579 | rm -f conftest.hdr | |
10f2d63a VZ |
22580 | |
22581 | # This sed command replaces #undef with comments. This is necessary, for | |
22582 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22583 | # on some systems where configure will not decide to define it. | |
a0b9e27f MB |
22584 | cat >> conftest.vals <<\EOF |
22585 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
22586 | EOF | |
22587 | ||
22588 | # Break up conftest.vals because some shells have a limit on | |
22589 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
22590 | |
22591 | rm -f conftest.tail | |
a0b9e27f | 22592 | while : |
10f2d63a | 22593 | do |
a0b9e27f MB |
22594 | ac_lines=`grep -c . conftest.vals` |
22595 | # grep -c gives empty output for an empty file on some AIX systems. | |
22596 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
22597 | # Write a limited-size here document to conftest.frag. | |
22598 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
22599 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 22600 | echo 'CEOF |
a0b9e27f MB |
22601 | sed -f conftest.frag conftest.in > conftest.out |
22602 | rm -f conftest.in | |
22603 | mv conftest.out conftest.in | |
22604 | ' >> $CONFIG_STATUS | |
22605 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
22606 | rm -f conftest.vals | |
22607 | mv conftest.tail conftest.vals | |
10f2d63a | 22608 | done |
a0b9e27f MB |
22609 | rm -f conftest.vals |
22610 | ||
22611 | cat >> $CONFIG_STATUS <<\EOF | |
22612 | rm -f conftest.frag conftest.h | |
22613 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
22614 | cat conftest.in >> conftest.h | |
22615 | rm -f conftest.in | |
22616 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
22617 | echo "$ac_file is unchanged" | |
22618 | rm -f conftest.h | |
10f2d63a | 22619 | else |
a0b9e27f MB |
22620 | # Remove last slash and all that follows it. Not all systems have dirname. |
22621 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22622 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22623 | # The file is in a subdirectory. | |
22624 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
247f5006 | 22625 | fi |
a0b9e27f MB |
22626 | rm -f $ac_file |
22627 | mv conftest.h $ac_file | |
247f5006 | 22628 | fi |
a0b9e27f MB |
22629 | fi; done |
22630 | ||
22631 | EOF | |
22632 | cat >> $CONFIG_STATUS <<EOF | |
22633 | ||
22634 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
22635 | LN_S="${LN_S}" | |
22636 | ||
22637 | ||
22638 | EOF | |
22639 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 22640 | |
652d930d | 22641 | if test ! -h wx-config; then |
991a5759 | 22642 | chmod +x wx-config |
3a922bb4 RL |
22643 | mv wx-config wx${TOOLCHAIN_NAME}-config |
22644 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 22645 | fi |
665bbe97 | 22646 | |
00cf1208 RR |
22647 | if test ! -d lib; then |
22648 | mkdir lib | |
22649 | fi | |
22650 | if test ! -d lib/wx; then | |
22651 | mkdir lib/wx | |
22652 | fi | |
22653 | if test ! -d lib/wx/include; then | |
22654 | mkdir lib/wx/include | |
22655 | fi | |
3a922bb4 RL |
22656 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
22657 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 22658 | fi |
3a922bb4 RL |
22659 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
22660 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
22661 | fi |
22662 | if test -f setup.h; then | |
3a922bb4 | 22663 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 22664 | fi |
a0b9e27f MB |
22665 | |
22666 | exit 0 | |
22667 | EOF | |
10f2d63a | 22668 | chmod +x $CONFIG_STATUS |
a0b9e27f MB |
22669 | rm -fr confdefs* $ac_clean_files |
22670 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 22671 | |
2224580a VZ |
22672 | if test "$no_recursion" != yes; then |
22673 | ||
22674 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
22675 | ac_sub_configure_args= | |
22676 | ac_prev= | |
22677 | for ac_arg in $ac_configure_args; do | |
22678 | if test -n "$ac_prev"; then | |
22679 | ac_prev= | |
22680 | continue | |
22681 | fi | |
a0b9e27f | 22682 | case "$ac_arg" in |
2224580a VZ |
22683 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
22684 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
22685 | ac_prev=cache_file ;; | |
22686 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
a0b9e27f | 22687 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
22688 | ;; |
22689 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
22690 | ac_prev=srcdir ;; | |
22691 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
22692 | ;; | |
22693 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
22694 | esac | |
22695 | done | |
22696 | ||
a0b9e27f | 22697 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
22698 | |
22699 | # Do not complain, so a configure script can configure whichever | |
22700 | # parts of a large source tree are present. | |
a0b9e27f MB |
22701 | if test ! -d $srcdir/$ac_config_dir; then |
22702 | continue | |
22703 | fi | |
2224580a | 22704 | |
a0b9e27f | 22705 | echo configuring in $ac_config_dir |
2224580a | 22706 | |
a0b9e27f MB |
22707 | case "$srcdir" in |
22708 | .) ;; | |
22709 | *) | |
22710 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
22711 | else | |
22712 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
22713 | fi | |
22714 | ;; | |
22715 | esac | |
2224580a | 22716 | |
a0b9e27f MB |
22717 | ac_popdir=`pwd` |
22718 | cd $ac_config_dir | |
247f5006 | 22719 | |
a0b9e27f MB |
22720 | # A "../" for each directory in /$ac_config_dir. |
22721 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
247f5006 | 22722 | |
a0b9e27f MB |
22723 | case "$srcdir" in |
22724 | .) # No --srcdir option. We are building in place. | |
22725 | ac_sub_srcdir=$srcdir ;; | |
22726 | /*) # Absolute path. | |
22727 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
22728 | *) # Relative path. | |
22729 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
22730 | esac | |
2224580a VZ |
22731 | |
22732 | # Check for guested configure; otherwise get Cygnus style configure. | |
a0b9e27f MB |
22733 | if test -f $ac_sub_srcdir/configure; then |
22734 | ac_sub_configure=$ac_sub_srcdir/configure | |
22735 | elif test -f $ac_sub_srcdir/configure.in; then | |
2224580a VZ |
22736 | ac_sub_configure=$ac_configure |
22737 | else | |
a0b9e27f | 22738 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
22739 | ac_sub_configure= |
22740 | fi | |
22741 | ||
22742 | # The recursion is here. | |
22743 | if test -n "$ac_sub_configure"; then | |
a0b9e27f | 22744 | |
2224580a | 22745 | # Make the cache file name correct relative to the subdirectory. |
a0b9e27f MB |
22746 | case "$cache_file" in |
22747 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 22748 | *) # Relative path. |
a0b9e27f | 22749 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 22750 | esac |
a0b9e27f MB |
22751 | case "$ac_given_INSTALL" in |
22752 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
22753 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
22754 | esac | |
2224580a | 22755 | |
a0b9e27f | 22756 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 22757 | # The eval makes quoting arguments work. |
a0b9e27f MB |
22758 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
22759 | then : | |
22760 | else | |
22761 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
22762 | fi | |
2224580a VZ |
22763 | fi |
22764 | ||
22765 | cd $ac_popdir | |
22766 | done | |
22767 | fi | |
22768 | ||
8284b0c5 | 22769 | |
2b5f62a0 VZ |
22770 | echo |
22771 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
22772 | echo "" | |
22773 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
22774 | ||
22775 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
22776 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
22777 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
22778 | ||
0c98a14e GD |
22779 | echo " What level of wxWindows compatibility should be enabled?" |
22780 | echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}" | |
22781 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-yes}" | |
22782 | ||
2b5f62a0 VZ |
22783 | echo " Which libraries should wxWindows use?" |
22784 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
22785 | echo " png ${wxUSE_LIBPNG-none}" | |
22786 | echo " regex ${wxUSE_REGEX}" | |
22787 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
22788 | echo " zlib ${wxUSE_ZLIB}" | |
22789 | ||
22790 | echo "" | |
22791 |